PageSourceSearch

https://banna.manus.space/assets/index-DWizuOEr.js

js banna.manus.space collected 2026-10-03 05:00:17 UTC 1,579,394 bytes, 969 lines download raw bytes

vendor: 31,303 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 xM(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(r,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(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 r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();function gp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pg={exports:{}},Xc={};/**
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 I5;function bM(){if(I5)return Xc;I5=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,i){var l=null;if(i!==void 0&&(l=""+i),a.key!==void 0&&(l=""+a.key),"key"in a){i={};for(var u in a)u!=="key"&&(i[u]=a[u])}else i=a;return a=i.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:i}}return Xc.Fragment=t,Xc.jsx=n,Xc.jsxs=n,Xc}var L5;function yM(){return L5||(L5=1,Pg.exports=bM()),Pg.exports}var p=yM(),uo=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(){}},vM={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},EM=class{#t=vM;#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)}},Ql=new EM;function SM(e){setTimeout(e,0)}var Zl=typeof window>"u"||"Deno"in globalThis;function Er(){}function _M(e,t){return typeof e=="function"?e(t):e}function W2(e){return typeof e=="number"&&e>=0&&e!==1/0}function s_(e,t){return Math.max(e+(t||0)-Date.now(),0)}function rl(e,t){return typeof e=="function"?e(t):e}function Na(e,t){return typeof e=="function"?e(t):e}function j5(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==Ob(l,t.options))return!1}else if(!R0(t.queryKey,l))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||a&&a!==t.state.fetchStatus||i&&!i(t))}function B5(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(il(t.options.mutationKey)!==il(i))return!1}else if(!R0(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function Ob(e,t){return(t?.queryKeyHashFn||il)(e)}function il(e){return JSON.stringify(e,(t,n)=>Z2(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function R0(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>R0(e[n],t[n])):!1}var TM=Object.prototype.hasOwnProperty;function Mb(e,t){if(e===t)return e;const n=z5(e)&&z5(t);if(!n&&!(Z2(e)&&Z2(t)))return t;const a=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),l=i.length,u=n?new Array(l):{};let c=0;for(let f=0;f<l;f++){const g=n?f:i[f],h=e[g],x=t[g];if(h===x){u[g]=h,(n?f<a:TM.call(e,g))&&c++;continue}if(h===null||x===null||typeof h!="object"||typeof x!="object"){u[g]=x;continue}const b=Mb(h,x);u[g]=b,b===h&&c++}return a===l&&c===a?e:u}function O0(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function z5(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Z2(e){if(!F5(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!F5(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function F5(e){return Object.prototype.toString.call(e)==="[object Object]"}function wM(e){return new Promise(t=>{Ql.setTimeout(t,e)})}function J2(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Mb(e,t):t}function AM(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function CM(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var da=Symbol();function i_(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===da?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function l_(e,t){return typeof e=="function"?e(...t):!!e}var kM=class extends uo{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Zl&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Db=new kM;function ex(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var NM=SM;function PM(){let e=[],t=0,n=u=>{u()},r=u=>{u()},a=NM;const i=u=>{t?e.push(u):a(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&a(()=>{r(()=>{u.forEach(c=>{n(c)})})})};return{batch:u=>{let c;t++;try{c=u()}finally{t--,t||l()}return c},batchCalls:u=>(...c)=>{i(()=>{u(...c)})},schedule:i,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{a=u}}}var En=PM(),RM=class extends uo{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Zl&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},Ph=new RM;function OM(e){return Math.min(1e3*2**e,3e4)}function o_(e){return(e??"online")==="online"?Ph.isOnline():!0}var tx=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function u_(e){let t=!1,n=0,r;const a=ex(),i=()=>a.status!=="pending",l=_=>{if(!i()){const C=new tx(_);x(C),e.onCancel?.(C)}},u=()=>{t=!0},c=()=>{t=!1},f=()=>Db.isFocused()&&(e.networkMode==="always"||Ph.isOnline())&&e.canRun(),g=()=>o_(e.networkMode)&&e.canRun(),h=_=>{i()||(r?.(),a.resolve(_))},x=_=>{i()||(r?.(),a.reject(_))},b=()=>new Promise(_=>{r=C=>{(i()||f())&&_(C)},e.onPause?.()}).then(()=>{r=void 0,i()||e.onContinue?.()}),E=()=>{if(i())return;let _;const C=n===0?e.initialPromise:void 0;try{_=C??e.fn()}catch(w){_=Promise.reject(w)}Promise.resolve(_).then(h).catch(w=>{if(i())return;const N=e.retry??(Zl?0:3),R=e.retryDelay??OM,z=typeof R=="function"?R(n,w):R,B=N===!0||typeof N=="number"&&n<N||typeof N=="function"&&N(n,w);if(t||!B){x(w);return}n++,e.onFail?.(n,w),wM(z).then(()=>f()?void 0:b()).then(()=>{t?x(w):E()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(r?.(),a),cancelRetry:u,continueRetry:c,canStart:g,start:()=>(g()?E():b().then(E),a)}}var c_=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),W2(this.gcTime)&&(this.#t=Ql.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Zl?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Ql.clearTimeout(this.#t),this.#t=void 0)}},MM=class extends c_{#t;#e;#n;#a;#r;#s;#l;constructor(e){super(),this.#l=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=H5(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=H5(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=J2(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Er).catch(Er):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Na(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===da||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>rl(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:!s_(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#l?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(c=>c.options.queryFn);u&&this.setOptions(u.options)}const n=new AbortController,r=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#l=!0,n.signal)})},a=()=>{const u=i_(this.options,t),f=(()=>{const g={client:this.#a,queryKey:this.queryKey,meta:this.meta};return r(g),g})();return this.#l=!1,this.options.persister?this.options.persister(u,f,this):u(f)},l=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:a};return r(u),u})();this.options.behavior?.onFetch(l,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta}),this.#r=u_({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:u=>{u instanceof tx&&u.revert&&this.setState({...this.#e,fetchStatus:"idle"}),n.abort()},onFail:(u,c)=>{this.#i({type:"failed",failureCount:u,error:c})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const u=await this.#r.start();if(u===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(u),this.#n.config.onSuccess?.(u,this),this.#n.config.onSettled?.(u,this.state.error,this),u}catch(u){if(u instanceof tx){if(u.silent)return this.#r.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#i({type:"error",error:u}),this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this),u}finally{this.scheduleGc()}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...d_(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?r:void 0,r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),En.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function d_(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:o_(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function H5(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var W0=class extends uo{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#l=ex(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#s;#l;#i;#h;#d;#f;#u;#c;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),U5(this.#e,this.options)?this.#p():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return nx(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return nx(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#E(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Na(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!O0(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&q5(this.#e,n,this.options,t)&&this.#p(),this.updateResult(),r&&(this.#e!==n||Na(this.options.enabled,this.#e)!==Na(t.enabled,this.#e)||rl(this.options.staleTime,this.#e)!==rl(t.staleTime,this.#e))&&this.#g();const a=this.#x();r&&(this.#e!==n||Na(this.options.enabled,this.#e)!==Na(t.enabled,this.#e)||a!==this.#o)&&this.#b(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return IM(this,n)&&(this.#a=n,this.#s=this.options,this.#r=this.#e.state),n}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#p({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#p(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Er)),t}#g(){this.#v();const e=rl(this.options.staleTime,this.#e);if(Zl||this.#a.isStale||!W2(e))return;const n=s_(this.#a.dataUpdatedAt,e)+1;this.#u=Ql.setTimeout(()=>{this.#a.isStale||this.updateResult()},n)}#x(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#b(e){this.#E(),this.#o=e,!(Zl||Na(this.options.enabled,this.#e)===!1||!W2(this.#o)||this.#o===0)&&(this.#c=Ql.setInterval(()=>{(this.options.refetchIntervalInBackground||Db.isFocused())&&this.#p()},this.#o))}#y(){this.#g(),this.#b(this.#x())}#v(){this.#u&&(Ql.clearTimeout(this.#u),this.#u=void 0)}#E(){this.#c&&(Ql.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#a,i=this.#r,l=this.#s,c=e!==n?e.state:this.#n,{state:f}=e;let g={...f},h=!1,x;if(t._optimisticResults){const Y=this.hasListeners(),Z=!Y&&U5(e,t),$=Y&&q5(e,n,t,r);(Z||$)&&(g={...g,...d_(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:b,errorUpdatedAt:E,status:_}=g;x=g.data;let C=!1;if(t.placeholderData!==void 0&&x===void 0&&_==="pending"){let Y;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(Y=a.data,C=!0):Y=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,Y!==void 0&&(_="success",x=J2(a?.data,Y,t),h=!0)}if(t.select&&x!==void 0&&!C)if(a&&x===i?.data&&t.select===this.#h)x=this.#d;else try{this.#h=t.select,x=t.select(x),x=J2(a?.data,x,t),this.#d=x,this.#i=null}catch(Y){this.#i=Y}this.#i&&(b=this.#i,x=this.#d,E=Date.now(),_="error");const w=g.fetchStatus==="fetching",N=_==="pending",R=_==="error",z=N&&w,B=x!==void 0,L={status:_,fetchStatus:g.fetchStatus,isPending:N,isSuccess:_==="success",isError:R,isInitialLoading:z,isLoading:z,data:x,dataUpdatedAt:g.dataUpdatedAt,error:b,errorUpdatedAt:E,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>c.dataUpdateCount||g.errorUpdateCount>c.errorUpdateCount,isFetching:w,isRefetching:w&&!N,isLoadingError:R&&!B,isPaused:g.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:R&&B,isStale:Ib(e,t),refetch:this.refetch,promise:this.#l,isEnabled:Na(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const Y=te=>{L.status==="error"?te.reject(L.error):L.data!==void 0&&te.resolve(L.data)},Z=()=>{const te=this.#l=L.promise=ex();Y(te)},$=this.#l;switch($.status){case"pending":e.queryHash===n.queryHash&&Y($);break;case"fulfilled":(L.status==="error"||L.data!==$.value)&&Z();break;case"rejected":(L.status!=="error"||L.error!==$.reason)&&Z();break}}return L}updateResult(){const e=this.#a,t=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#s=this.options,this.#r.data!==void 0&&(this.#f=this.#e),O0(t,e))return;this.#a=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#m.size)return!0;const i=new Set(a??this.#m);return this.options.throwOnError&&i.add("error"),Object.keys(this.#a).some(l=>{const u=l;return this.#a[u]!==e[u]&&i.has(u)})};this.#_({listeners:n()})}#S(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#_(e){En.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function DM(e,t){return Na(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function U5(e,t){return DM(e,t)||e.state.data!==void 0&&nx(e,t,t.refetchOnMount)}function nx(e,t,n){if(Na(t.enabled,e)!==!1&&rl(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Ib(e,t)}return!1}function q5(e,t,n,r){return(e!==t||Na(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ib(e,n)}function Ib(e,t){return Na(t.enabled,e)!==!1&&e.isStaleByTime(rl(t.staleTime,e))}function IM(e,t){return!O0(e.getCurrentResult(),t)}function Rh(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},c=0;const f=async()=>{let g=!1;const h=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},x=i_(t.options,t.fetchOptions),b=async(E,_,C)=>{if(g)return Promise.reject();if(_==null&&E.pages.length)return Promise.resolve(E);const N=(()=>{const j={client:t.client,queryKey:t.queryKey,pageParam:_,direction:C?"backward":"forward",meta:t.options.meta};return h(j),j})(),R=await x(N),{maxPages:z}=t.options,B=C?CM:AM;return{pages:B(E.pages,R,z),pageParams:B(E.pageParams,_,z)}};if(a&&i.length){const E=a==="backward",_=E?f_:rx,C={pages:i,pageParams:l},w=_(r,C);u=await b(C,w,E)}else{const E=e??i.length;do{const _=c===0?l[0]??r.initialPageParam:rx(r,u);if(c>0&&_==null)break;u=await b(u,_),c++}while(c<E)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function rx(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function f_(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function LM(e,t){return t?rx(e,t)!=null:!1}function jM(e,t){return!t||!e.getPreviousPageParam?!1:f_(e,t)!=null}var h_=class extends W0{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:Rh()})}getOptimisticResult(e){return e.behavior=Rh(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,r=super.createResult(e,t),{isFetching:a,isRefetching:i,isError:l,isRefetchError:u}=r,c=n.fetchMeta?.fetchMore?.direction,f=l&&c==="forward",g=a&&c==="forward",h=l&&c==="backward",x=a&&c==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:LM(t,n.data),hasPreviousPage:jM(t,n.data),isFetchNextPageError:f,isFetchingNextPage:g,isFetchPreviousPageError:h,isFetchingPreviousPage:x,isRefetchError:u&&!f&&!h,isRefetching:i&&!g&&!x}}},BM=class extends c_{#t;#e;#n;#a;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||p_(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=u_({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(i,l)=>{this.#r({type:"failed",failureCount:i,error:l})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",a=!this.#a.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:a}),await this.#n.config.onMutate?.(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#r({type:"pending",context:l,variables:e,isPaused:a})}const i=await this.#a.start();return await this.#n.config.onSuccess?.(i,e,this.state.context,this,n),await this.options.onSuccess?.(i,e,this.state.context,n),await this.#n.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,e,this.state.context,n),this.#r({type:"success",data:i}),i}catch(i){try{throw await this.#n.config.onError?.(i,e,this.state.context,this,n),await this.options.onError?.(i,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,i,e,this.state.context,n),i}finally{this.#r({type:"error",error:i})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),En.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function p_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zM=class extends uo{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new BM({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=If(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=If(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=If(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=If(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){En.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>B5(t,n))}findAll(e={}){return this.getAll().filter(t=>B5(e,t))}notify(e){En.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>
vendor: 1,553 bytes, line 10
10t.state.isPaused);return En.batch(()=>Promise.all(e.map(t=>t.continue().catch(Er))))}};function If(e){return e.options.scope?.id}var FM=class extends uo{#t;#e=void 0;#n;#a;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),O0(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&il(n.mutationKey)!==il(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#s(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#s()}mutate(t,n){return this.#a=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??p_();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}}#s(t){En.batch(()=>{if(this.#a&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context,a={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#a.onSuccess?.(t.data,n,r,a),this.#a.onSettled?.(t.data,null,
10n,r,a)):t?.type==="error"&&(this.#a.onError?.(t.error,n,r,a),this.#a.onSettled?.(void 0,t.error,n,r,a))}this.listeners.forEach(n=>{n(this.#e)})})}};function $5(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function HM(e,t,n){const r=e.slice(0);return r[t]=n,r}var UM=class extends uo{#t;#e;#n;#a;#r;#s;#l;#i;#h=[];constructor(e,t,n){super(),this.#t=e,this.#a=n,this.#n=[],this.#r=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#r.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#a=t,En.batch(()=>{const n=this.#r,r=this.#u(this.#n);this.#h=r,r.forEach(g=>g.observer.setOptions(g.defaultedQueryOptions));const a=r.map(g=>g.observer),i=a.map(g=>g.getCurrentResult()),l=n.length!==a.length,u=a.some((g,h)=>g!==n[h]),c=l||u,f=c?!0:i.some((g,h)=>{const x=this.#e[h];return!x||!O0(g,x)});!c&&!f||(c&&(this.#r=a),this.#e=i,this.hasListeners()&&(c&&($5(n,a).forEach(g=>{g.destroy()}),$5(a,n).forEach(g=>{g.subscribe(h=>{this.#c(g,h)})})),this.#o()))})}getCurrentResult(){return this.#e}getQueries(){return this.#r.map(e=>e.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(e,t){const n=this.#u(e),r=n.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions));return[r,a=>this.#f(a??r,t),()=>this.#d(r,n)]}#d(e,t){return t.map((n,r)=>{const a=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?a:n.observer.trackResult(a,i=>{t.forEach(l=>{l.observer.trackProp(i)})})})}#f(e,t){return t?((!this.#s||this.#e!==this.#i||t!==this.#l)&&(this.#l=t,this.#i=this.#e,this.#s=Mb(this.#s,t(e))),this.#s):e}#u(e){const t=new Map(this.#r.map(r=>[r.options.queryHash,r])),n=[];return e.forEach(r=>{const a=this.#t.defaultQueryOptions(r),i=t.get(a.queryHash);i?n.push({defaultedQueryOptions:a,observer:i}):n.push({defaultedQueryOptions:a,observer:new W0(this.#t,a)})}),n}#c(e,t){const n=this.#r.indexOf(e);n!==-1&&(this.#e=HM(this.#e,n,t),this.#o())}#o(){if(this.hasListeners()){const e=this.#s,t=this.#d(this.#e,this.#h),n=this.#f(t,this.#a?.combine);e!==n&&En.batch(()=>{this.listeners.forEach(r=>{r(this.#e)})})}}},qM=class extends uo{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??Ob(r,t);let i=this.get(a);return i||(i=new MM({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),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(){En.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>j5(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>j5(e,n)):t}notify(e){En.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){En.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){En.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},$M=class{#t;#e;#n;#a;#r;#s;#l;#i;constructor(e={}){this.#t=e.queryCache||new qM,this.#e=e.mutationCache||new zM,this.#n=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#l=Db.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=Ph.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#l?.(),this.#l=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(rl(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#t.get(r.queryHash)?.state.data,l=_M(t,i);if(l!==void 0)return this.#t.build(this,r).setData(l,{...n,manual:!0})}
vendor: 8,241 bytes, lines 10-18
10setQueriesData(e,t,n){return En.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;En.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return En.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=En.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Er).catch(Er)}invalidateQueries(e,t={}){return En.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=En.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Er)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Er)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(rl(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Er).catch(Er)}fetchInfiniteQuery(e){return e.behavior=Rh(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Er).catch(Er)}ensureInfiniteQueryData(e){return e.behavior=Rh(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ph.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#a.set(il(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{R0(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(il(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{R0(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ob(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===da&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Rg={exports:{}},it={};/**
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 V5;function VM(){if(V5)return it;V5=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),x=Symbol.iterator;function b(G){return G===null||typeof G!="object"?null:(G=x&&G[x]||G["@@iterator"],typeof G=="function"?G:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,C={};function w(G,oe,M){this.props=G,this.context=oe,this.refs=C,this.updater=M||E}w.prototype.isReactComponent={},w.prototype.setState=function(G,oe){if(typeof G!="object"&&typeof G!="function"&&G!=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,G,oe,"setState")},w.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function N(){}N.prototype=w.prototype;function R(G,oe,M){this.props=G,this.context=oe,this.refs=C,this.updater=M||E}var z=R.prototype=new N;z.constructor=R,_(z,w.prototype),z.isPureReactComponent=!0;var B=Array.isArray;function j(){}var L={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function Z(G,oe,M){var pe=M.ref;return{$$typeof:e,type:G,key:oe,ref:pe!==void 0?pe:null,props:M}}function $(G,oe){return Z(G.type,oe,G.props)}function te(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function ee(G){var oe={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(M){return oe[M]})}var he=/\/+/g;function ie(G,oe){return typeof G=="object"&&G!==null&&G.key!=null?ee(""+G.key):oe.toString(36)}function ne(G){switch(G.status){case"fulfilled":return G.value;case"rejected":throw G.reason;default:switch(typeof G.status=="string"?G.then(j,j):(G.status="pending",G.then(function(oe){G.status==="pending"&&(G.status="fulfilled",G.value=oe)},function(oe){G.status==="pending"&&(G.status="rejected",G.reason=oe)})),G.status){case"fulfilled":return G.value;case"rejected":throw G.reason}}throw G}function H(G,oe,M,pe,_e){var Re=typeof G;(Re==="undefined"||Re==="boolean")&&(G=null);var ve=!1;if(G===null)ve=!0;else switch(Re){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(G.$$typeof){case e:case t:ve=!0;break;case g:return ve=G._init,H(ve(G._payload),oe,M,pe,_e)}}if(ve)return _e=_e(G),ve=pe===""?"."+ie(G,0):pe,B(_e)?(M="",ve!=null&&(M=ve.replace(he,"$&/")+"/"),H(_e,oe,M,"",function(Qe){return Qe})):_e!=null&&(te(_e)&&(_e=$(_e,M+(_e.key==null||G&&G.key===_e.key?"":(""+_e.key).replace(he,"$&/")+"/")+ve)),oe.push(_e)),1;ve=0;var Ie=pe===""?".":pe+":";if(B(G))for(var Ue=0;Ue<G.length;Ue++)pe=G[Ue],Re=Ie+ie(pe,Ue),ve+=H(pe,oe,M,Re,_e);else if(Ue=b(G),typeof Ue=="function")for(G=Ue.call(G),Ue=0;!(pe=G.next()).done;)pe=pe.value,Re=Ie+ie(pe,Ue++),ve+=H(pe,oe,M,Re,_e);else if(Re==="object"){if(typeof G.then=="function")return H(ne(G),oe,M,pe,_e);throw oe=String(G),Error("Objects are not valid as a React child (found: "+(oe==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":oe)+"). If you meant to render a collection of children, use an array instead.")}return ve}function re(G,oe,M){if(G==null)return G;var pe=[],_e=0;return H(G,pe,"","",function(Re){return oe.call(M,Re,_e++)}),pe}function J(G){if(G._status===-1){var oe=G._result;oe=oe(),oe.then(function(M){(G._status===0||G._status===-1)&&(G._status=1,G._result=M)},function(M){(G._status===0||G._status===-1)&&(G._status=2,G._result=M)}),G._status===-1&&(G._status=0,G._result=oe)}if(G._status===1)return G._result.default;throw G._result}var Te=typeof reportError=="function"?reportError:function(G){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var oe=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof G=="object"&&G!==null&&typeof G.message=="string"?String(G.message):String(G),error:G});if(!window.dispatchEvent(oe))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",G);return}console.error(G)},q={map:re,forEach:function(G,oe,M){re(G,function(){oe.apply(this,arguments)},M)},count:function(G){var oe=0;return re(G,function(){oe++}),oe},toArray:function(G){return re(G,function(oe){return oe})||[]},only:function(G){if(!te(G))throw Error("React.Children.only expected to receive a single React element child.");return G}};return it.Activity=h,it.Children=q,it.Component=w,it.Fragment=n,it.Profiler=a,it.PureComponent=R,it.StrictMode=r,it.Suspense=c,it.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,it.__COMPILER_RUNTIME={__proto__:null,c:function(G){return L.H.useMemoCache(G)}},it.cache=function(G){return function(){return G.apply(null,arguments)}},it.cacheSignal=function(){return null},it.cloneElement=function(G,oe,M){if(G==null)throw Error("The argument must be a React element, but you passed "+G+".");var pe=_({},G.props),_e=G.key;
18if(oe!=null)for(Re in oe.key!==void 0&&(_e=""+oe.key),oe)!Y.call(oe,Re)||Re==="key"||Re==="__self"||Re==="__source"||Re==="ref"&&oe.ref===void 0||(pe[Re]=oe[Re]);var Re=arguments.length-2;if(Re===1)pe.children=M;else if(1<Re){for(var ve=Array(Re),Ie=0;Ie<Re;Ie++)ve[Ie]=arguments[Ie+2];pe.children=ve}return Z(G.type,_e,pe)},it.createContext=function(G){return G={$$typeof:l,_currentValue:G,_currentValue2:G,_threadCount:0,Provider:null,Consumer:null},G.Provider=G,G.Consumer={$$typeof:i,_context:G},G},it.createElement=function(G,oe,M){var pe,_e={},Re=null;if(oe!=null)for(pe in oe.key!==void 0&&(Re=""+oe.key),oe)Y.call(oe,pe)&&pe!=="key"&&pe!=="__self"&&pe!=="__source"&&(_e[pe]=oe[pe]);var ve=arguments.length-2;if(ve===1)_e.children=M;else if(1<ve){for(var Ie=Array(ve),Ue=0;Ue<ve;Ue++)Ie[Ue]=arguments[Ue+2];_e.children=Ie}if(G&&G.defaultProps)for(pe in ve=G.defaultProps,ve)_e[pe]===void 0&&(_e[pe]=ve[pe]);return Z(G,Re,_e)},it.createRef=function(){return{current:null}},it.forwardRef=function(G){return{$$typeof:u,render:G}},it.isValidElement=te,it.lazy=function(G){return{$$typeof:g,_payload:{_status:-1,_result:G},_init:J}},it.memo=function(G,oe){return{$$typeof:f,type:G,compare:oe===void 0?null:oe}},it.startTransition=function(G){var oe=L.T,M={};L.T=M;try{var pe=G(),_e=L.S;_e!==null&&_e(M,pe),typeof pe=="object"&&pe!==null&&typeof pe.then=="function"&&pe.then(j,Te)}catch(Re){Te(Re)}finally{oe!==null&&M.types!==null&&(oe.types=M.types),L.T=oe}},it.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},it.use=function(G){return L.H.use(G)},it.useActionState=function(G,oe,M){return L.H.useActionState(G,oe,M)},it.useCallback=function(G,oe){return L.H.useCallback(G,oe)},it.useContext=function(G){return L.H.useContext(G)},it.useDebugValue=function(){},it.useDeferredValue=function(G,oe){return L.H.useDeferredValue(G,oe)},it.useEffect=function(G,oe){return L.H.useEffect(G,oe)},it.useEffectEvent=function(G){return L.H.useEffectEvent(G)},it.useId=function(){return L.H.useId()},it.useImperativeHandle=function(G,oe,M){return L.H.useImperativeHandle(G,oe,M)},it.useInsertionEffect=function(G,oe){return L.H.useInsertionEffect(G,oe)},it.useLayoutEffect=function(G,oe){return L.H.useLayoutEffect(G,oe)},it.useMemo=function(G,oe){return L.H.useMemo(G,oe)},it.useOptimistic=function(G,oe){return L.H.useOptimistic(G,oe)},it.useReducer=function(G,oe,M){return L.H.useReducer(G,oe,M)},it.useRef=function(G){return L.H.useRef(G)},it.useState=function(G){return L.H.useState(G)},it.useSyncExternalStore=function(G,oe,M){return L.H.useSyncExternalStore(G,oe,M)},it.useTransition=function(){return L.H.useTransition()},it.version="19.2.1",it}var G5;function xp(){return G5||(G5=1,Rg.exports=VM()),Rg.exports}var A=xp();const De=gp(A),bp=xM({__proto__:null,default:De},[A]);var m_=A.createContext(void 0),Z0=e=>{const t=A.useContext(m_);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},GM=({client:e,children:t})=>(A.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),p.jsx(m_.Provider,{value:e,children:t})),g_=A.createContext(!1),x_=()=>A.useContext(g_);g_.Provider;function YM(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var QM=A.createContext(YM()),b_=()=>A.useContext(QM),y_=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},v_=e=>{A.useEffect(()=>{e.clearReset()},[e])},E_=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||l_(n,[e.error,r])),Lb=(e,t)=>t.state.data===void 0,S_=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},__=(e,t)=>e.isLoading&&e.isFetching&&!t,ax=(e,t)=>e?.suspense&&t.isPending,Oh=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function T_({queries:e,...t},n){const r=Z0(n),a=x_(),i=b_(),l=A.useMemo(()=>e.map(_=>{const C=r.defaultQueryOptions(_);return C._optimisticResults=a?"isRestoring":"optimistic",C}),[e,r,a]);l.forEach(_=>{S_(_),y_(_,i)}),v_(i);const[u]=A.useState(()=>new UM(r,l,t)),[c,f,g]=u.getOptimisticResult(l,t.combine),h=!a&&t.subscribed!==!1;A.useSyncExternalStore(A.useCallback(_=>h?u.subscribe(En.batchCalls(_)):Er,[u,h]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),A.useEffect(()=>{u.setQueries(l,t)},[l,t,u]);const b=c.some((_,C)=>ax(l[C],_))?c.flatMap((_,C)=>{const w=l[C];if(w){const N=new W0(r,w);if(ax(w,_))return Oh(w,N,i);__(_,a)&&Oh(w,N,i)}return[]}):[];if(b.length>0)throw Promise.all(b);const E=c.find((_,C)=>{const w=l[C];return w&&E_({result:_,errorResetBoundary:i,throwOnError:w.throwOnError,query:r.getQueryCache().get(w.queryHash),suspense:w.suspense})});if(E?.error)throw E.error;return f(g())}
18function yp(e,t,n){const r=x_(),a=b_(),i=Z0(n),l=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",S_(l),y_(l,a),v_(a);const u=!i.getQueryCache().get(l.queryHash),[c]=A.useState(()=>new t(i,l)),f=c.getOptimisticResult(l),g=!r&&e.subscribed!==!1;if(A.useSyncExternalStore(A.useCallback(h=>{const x=g?c.subscribe(En.batchCalls(h)):Er;return c.updateResult(),x},[c,g]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),A.useEffect(()=>{c.setOptions(l)},[l,c]),ax(l,f))throw Oh(l,c,a);if(E_({result:f,errorResetBoundary:a,throwOnError:l.throwOnError,query:i.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw f.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(l,f),l.experimental_prefetchInRender&&!Zl&&__(f,r)&&(u?Oh(l,c,a):i.getQueryCache().get(l.queryHash)?.promise)?.catch(Er).finally(()=>{c.updateResult()}),l.notifyOnChangeProps?f:c.trackResult(f)}function XM(e,t){return yp(e,W0,t)}function KM(e,t){return yp({...e,enabled:!0,suspense:!0,throwOnError:Lb,placeholderData:void 0},W0,t)}function WM(e,t){return yp({...e,enabled:!0,suspense:!0,throwOnError:Lb},h_,t)}function ZM(e,t){return T_({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:Lb,enabled:!0,placeholderData:void 0}))},t)}function JM(e,t){const n=Z0(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function eD(e,t){const n=Z0(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function tD(e,t){const n=Z0(t),[r]=A.useState(()=>new FM(n,e));A.useEffect(()=>{r.setOptions(e)},[r,e]);const a=A.useSyncExternalStore(A.useCallback(l=>r.subscribe(En.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=A.useCallback((l,u)=>{r.mutate(l,u).catch(Er)},[r]);if(a.error&&l_(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:i,mutateAsync:a.mutate}}function nD(e,t){return yp(e,h_,t)}function Jl(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const rD=typeof Symbol=="function"&&!!Symbol.asyncIterator;function w_(e){return rD&&Jl(e)&&Symbol.asyncIterator in e}var aD=Object.create,A_=Object.defineProperty,sD=Object.getOwnPropertyDescriptor,C_=Object.getOwnPropertyNames,iD=Object.getPrototypeOf,lD=Object.prototype.hasOwnProperty,J0=(e,t)=>function(){return t||(0,e[C_(e)[0]])((t={exports:{}}).exports,t),t.exports},oD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=C_(t),i=0,l=a.length,u;i<l;i++)u=a[i],!lD.call(e,u)&&u!==n&&A_(e,u,{get:(c=>t[c]).bind(null,u),enumerable:!(r=sD(t,u))||r.enumerable});return e},vp=(e,t,n)=>(n=e!=null?aD(iD(e)):{},oD(A_(n,"default",{value:e,enumerable:!0}),e));const k_=()=>{},Y5=e=>{Object.freeze&&Object.freeze(e)};function N_(e,t,n){var r;const a=t.join(".");return(r=n[a])!==null&&r!==void 0||(n[a]=new Proxy(k_,{get(i,l){if(!(typeof l!="string"||l==="then"))return N_(e,[...t,l],n)},apply(i,l,u){const c=t[t.length-1];let f={args:u,path:t};return c==="call"?f={args:u.length>=2?[u[1]]:[],path:t.slice(0,-1)}:c==="apply"&&(f={args:u.length>=2?u[1]:[],path:t.slice(0,-1)}),Y5(f.args),Y5(f.path),e(f)}})),n[a]}const Ep=e=>N_(e,[],Object.create(null)),jb=e=>new Proxy(k_,{get(t,n){if(n!=="then")return e(n)}});var P_=J0({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),uD=J0({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=P_().default;function r(a,i){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var u=l.call(a,i||"default");if(n(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}
18t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),cD=J0({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=P_().default,r=uD();function a(i){var l=r(i,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),R_=J0({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=cD();function r(a,i,l){return(i=n(i))in a?Object.defineProperty(a,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[i]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Bb=J0({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=R_();function r(i,l){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);l&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(i,f).enumerable})),u.push.apply(u,c)}return u}function a(i){for(var l=1;l<arguments.length;l++){var u=arguments[l]!=null?arguments[l]:{};l%2?r(Object(u),!0).forEach(function(c){n(i,c,u[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):r(Object(u)).forEach(function(c){Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(u,c))})}return i}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});vp(Bb());vp(R_());var Lf=vp(Bb());function dD(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,Lf.default)((0,Lf.default)({},e),{},{error:r})}}return{ok:!0,result:(0,Lf.default)((0,Lf.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var Og=class extends Error{constructor(){super("Unable to transform response from server")}};function fD(e,t){let n;try{n=dD(e,t)}catch{throw new Og}if(!n.ok&&(!Jl(n.error.error)||typeof n.error.error.code!="number"))throw new Og;if(n.ok&&!Jl(n.result))throw new Og;return n}vp(Bb());function Sp(e){const t={subscribe(n){let r=null,a=!1,i=!1,l=!1;function u(){if(r===null){l=!0;return}i||(i=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(c){var f;a||(f=n.next)===null||f===void 0||f.call(n,c)},error(c){var f;a||(a=!0,(f=n.error)===null||f===void 0||f.call(n,c),u())},complete(){var c;a||(a=!0,(c=n.complete)===null||c===void 0||c.call(n),u())}}),l&&u(),{unsubscribe:u}},pipe(...n){return n.reduce(hD,t)}};return t}function hD(e,t){return t(e)}function pD(e){const t=new AbortController;return new Promise((r,a)=>{let i=!1;function l(){i||(i=!0,u.unsubscribe())}t.signal.addEventListener("abort",()=>{a(t.signal.reason)});const u=e.subscribe({next(c){i=!0,r(c),l()},error(c){a(c)},complete(){t.abort(),l()}})})}var mD=Object.create,O_=Object.defineProperty,gD=Object.getOwnPropertyDescriptor,M_=Object.getOwnPropertyNames,xD=Object.getPrototypeOf,bD=Object.prototype.hasOwnProperty,hl=(e,t)=>function(){return t||(0,e[M_(e)[0]])((t={exports:{}}).exports,t),t.exports},yD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=M_(t),i=0,l=a.length,u;i<l;i++)u=a[i],!bD.call(e,u)&&u!==n&&O_(e,u,{get:(c=>t[c]).bind(null,u),enumerable:!(r=gD(t,u))||r.enumerable});return e},co=(e,t,n)=>(n=e!=null?mD(xD(e)):{},yD(t||!e||!e.__esModule?O_(n,"default",{value:e,enumerable:!0}):n,e)),vD=hl({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,a){if(r==null)return{};var i={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(a.includes(l))continue;i[l]=r[l]}return i}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),ED=hl({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=vD();function r(a,i){if(a==null)return{};var l,u,c=n(a,i);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(u=0;u<f.length;u++)l=f[u],i.includes(l)||{}.propertyIsEnumerable.call(a,l)&&(c[l]=a[l])}return c}
18t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),D_=hl({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),SD=hl({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=D_().default;function r(a,i){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var u=l.call(a,i||"default");if(n(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),_D=hl({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=D_().default,r=SD();function a(i){var l=r(i,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),TD=hl({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=_D();function r(a,i,l){return(i=n(i))in a?Object.defineProperty(a,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[i]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),ed=hl({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=TD();function r(i,l){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);l&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(i,f).enumerable})),u.push.apply(u,c)}return u}function a(i){for(var l=1;l<arguments.length;l++){var u=arguments[l]!=null?arguments[l]:{};l%2?r(Object(u),!0).forEach(function(c){n(i,c,u[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):r(Object(u)).forEach(function(c){Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(u,c))})}return i}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),wD=co(ED(),1),Q5=co(ed(),1);const AD=["cursor","direction"];function ps(e,t,n){const r=e.flatMap(a=>a.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&Jl(t)&&("direction"in t||"cursor"in t)){const{cursor:a,direction:i}=t,l=(0,wD.default)(t,AD);return[r,{input:l,type:"infinite"}]}return[r,(0,Q5.default)((0,Q5.default)({},typeof t<"u"&&t!==da&&{input:t}),n&&n!=="any"&&{type:n})]}function xh(e){return ps(e,void 0,"any")}var CD=Object.create,I_=Object.defineProperty,kD=Object.getOwnPropertyDescriptor,L_=Object.getOwnPropertyNames,ND=Object.getPrototypeOf,PD=Object.prototype.hasOwnProperty,As=(e,t)=>function(){return t||(0,e[L_(e)[0]])((t={exports:{}}).exports,t),t.exports},RD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=L_(t),i=0,l=a.length,u;i<l;i++)u=a[i],!PD.call(e,u)&&u!==n&&I_(e,u,{get:(c=>t[c]).bind(null,u),enumerable:!(r=kD(t,u))||r.enumerable});return e},On=(e,t,n)=>(n=e!=null?CD(ND(e)):{},RD(t||!e||!e.__esModule?I_(n,"default",{value:e,enumerable:!0}):n,e)),j_=As({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),OD=As({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=j_().default;function r(a,i){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var u=l.call(a,i||"default");if(n(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}
18t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),MD=As({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=j_().default,r=OD();function a(i){var l=r(i,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),fo=As({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=MD();function r(a,i,l){return(i=n(i))in a?Object.defineProperty(a,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[i]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Wa=As({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=fo();function r(i,l){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);l&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(i,f).enumerable})),u.push.apply(u,c)}return u}function a(i){for(var l=1;l<arguments.length;l++){var u=arguments[l]!=null?arguments[l]:{};l%2?r(Object(u),!0).forEach(function(c){n(i,c,u[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):r(Object(u)).forEach(function(c){Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(u,c))})}return i}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});function DD(e){return t=>{let n=0,r=null;const a=[];function i(){r||(r=t.subscribe({next(u){for(const f of a){var c;(c=f.next)===null||c===void 0||c.call(f,u)}},error(u){for(const f of a){var c;(c=f.error)===null||c===void 0||c.call(f,u)}},complete(){for(const c of a){var u;(u=c.complete)===null||u===void 0||u.call(c)}}}))}function l(){if(n===0&&r){const u=r;r=null,u.unsubscribe()}}return Sp(u=>(n++,a.push(u),i(),{unsubscribe(){n--,l();const c=a.findIndex(f=>f===u);c>-1&&a.splice(c,1)}}))}}function ID(e){let t=e;const n=[],r=l=>{t!==void 0&&l.next(t),n.push(l)},a=l=>{n.splice(n.indexOf(l),1)},i=Sp(l=>(r(l),()=>{a(l)}));return i.next=l=>{if(t!==l){t=l;for(const u of n)u.next(l)}},i.get=()=>t,i}function LD(e){return Sp(t=>{function n(a=0,i=e.op){const l=e.links[a];if(!l)throw new Error("No more links to execute - did you forget to add an ending link?");return l({op:i,next(c){return n(a+1,c)}})}return n().subscribe(t)})}var jf=On(fo(),1),iu=On(Wa(),1);function jD(e){return e instanceof Ru}function BD(e){return Jl(e)&&Jl(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function zD(e,t){return typeof e=="string"?e:Jl(e)&&typeof e.message=="string"?e.message:t}
18var Ru=class bh extends Error{constructor(t,n){var r,a;const i=n?.cause;super(t,{cause:i}),(0,jf.default)(this,"cause",void 0),(0,jf.default)(this,"shape",void 0),(0,jf.default)(this,"data",void 0),(0,jf.default)(this,"meta",void 0),this.meta=n?.meta,this.cause=i,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(a=n.result)===null||a===void 0?void 0:a.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,bh.prototype)}static from(t,n={}){const r=t;return jD(r)?(n.meta&&(r.meta=(0,iu.default)((0,iu.default)({},r.meta),n.meta)),r):BD(r)?new bh(r.error.message,(0,iu.default)((0,iu.default)({},n),{},{result:r})):new bh(zD(r,"Unknown error"),(0,iu.default)((0,iu.default)({},n),{},{cause:r}))}};function FD(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const X5=e=>typeof e=="function";function HD(e){if(e)return e;if(typeof window<"u"&&X5(window.fetch))return window.fetch;if(typeof globalThis<"u"&&X5(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var m0=On(Wa());function UD(e){return{url:e.url.toString(),fetch:e.fetch,transformer:FD(e.transformer),methodOverride:e.methodOverride}}function qD(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const $D={query:"GET",mutation:"POST",subscription:"PATCH"};function B_(e){return"input"in e?e.transformer.input.serialize(e.input):qD(e.inputs.map(t=>e.transformer.input.serialize(t)))}const z_=e=>{const t=e.url.split("?");let r=t[0].replace(/\/$/,"")+"/"+e.path;const a=[];if(t[1]&&a.push(t[1]),"inputs"in e&&a.push("batch=1"),e.type==="query"||e.type==="subscription"){const i=B_(e);i!==void 0&&e.methodOverride!=="POST"&&a.push(`input=${encodeURIComponent(JSON.stringify(i))}`)}return a.length&&(r+="?"+a.join("&")),r},VD=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=B_(e);return t!==void 0?JSON.stringify(t):void 0},GD=e=>KD((0,m0.default)((0,m0.default)({},e),{},{contentTypeHeader:"application/json",getUrl:z_,getBody:VD}));var YD=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const QD=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 YD};async function XD(e){var t;QD(e.signal);const n=e.getUrl(e),r=e.getBody(e),a=(t=e.methodOverride)!==null&&t!==void 0?t:$D[e.type],i=await(async()=>{const u=await e.headers();return Symbol.iterator in u?Object.fromEntries(u):u})(),l=(0,m0.default)((0,m0.default)((0,m0.default)({},e.contentTypeHeader&&a!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),i);return HD(e.fetch)(n,{method:a,signal:e.signal,body:r,headers:l})}async function KD(e){const t={},n=await XD(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}On(Wa(),1);const K5=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function W5(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function a(u){const c=[[]];let f=0;for(;;){const x=u[f];if(!x)break;const b=c[c.length-1];if(x.aborted){var g;(g=x.reject)===null||g===void 0||g.call(x,new Error("Aborted")),f++;continue}if(e.validate(b.concat(x).map(_=>_.key))){b.push(x),f++;continue}if(b.length===0){var h;(h=x.reject)===null||h===void 0||h.call(x,new Error("Input is too big for a single dispatch")),f++;continue}c.push([])}return c}function i(){const u=a(t);r();for(const c of u){if(!c.length)continue;const f={items:c};for(const h of c)h.batch=f;e.fetch(f.items.map(h=>h.key)).then(async h=>{await Promise.all(h.map(async(b,E)=>{const _=f.items[E];try{var C;const N=await Promise.resolve(b);(C=_.resolve)===null||C===void 0||C.call(_,N)}catch(N){var w;(w=_.reject)===null||w===void 0||w.call(_,N)}_.batch=null,_.reject=null,_.resolve=null}));for(const b of f.items){var x;(x=b.reject)===null||x===void 0||x.call(b,new Error("Missing result")),b.batch=null}}).catch(h=>{for(const b of f.items){var x;(x=b.reject)===null||x===void 0||x.call(b,h),b.batch=null}})}}function l(u){var c;const f={aborted:!1,key:u,batch:null,resolve:K5,reject:K5},g=new Promise((h,x)=>{var b;f.reject=x,f.resolve=h,(b=t)!==null&&b!==void 0||(t=[]),t.push(f)});return(c=n)!==null&&c!==void 0||(n=setTimeout(i)),g}return{load:l}}function WD(...e){const t=new AbortController,n=e.length;let r=0;const a=()=>{++r===n&&t.abort()};for(const i of e)i?.aborted?a():i?.addEventListener("abort",a,{once:!0});return t.signal}var Bf=On(Wa(),1);function ZD(e){var t,n;const r=UD(e),a=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,i=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const l=g=>
18({validate(h){if(a===1/0&&i===1/0)return!0;if(h.length>i)return!1;const x=h.map(_=>_.path).join(","),b=h.map(_=>_.input);return z_((0,Bf.default)((0,Bf.default)({},r),{},{type:g,path:x,inputs:b,signal:null})).length<=a},async fetch(h){const x=h.map(N=>N.path).join(","),b=h.map(N=>N.input),E=WD(...h.map(N=>N.signal)),_=await GD((0,Bf.default)((0,Bf.default)({},r),{},{path:x,inputs:b,type:g,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:h}):e.headers:{}},signal:E}));return(Array.isArray(_.json)?_.json:h.map(()=>_.json)).map(N=>({meta:_.meta,json:N}))}}),u=W5(l("query")),c=W5(l("mutation")),f={query:u,mutation:c};return({op:g})=>Sp(h=>{/* istanbul ignore if -- @preserve */if(g.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const b=f[g.type].load(g);let E;return b.then(_=>{E=_;const C=fD(_.json,r.transformer.output);if(!C.ok){h.error(Ru.from(C.error,{meta:_.meta}));return}h.next({context:_.meta,result:C.result}),h.complete()}).catch(_=>{h.error(Ru.from(_,{meta:E?.meta}))}),()=>{}})}}On(Wa(),1);const F_=(e,...t)=>typeof e=="function"?e(...t):e;On(fo(),1);function JD(){let e,t;return{promise:new Promise((r,a)=>{e=r,t=a}),resolve:e,reject:t}}async function eI(e){const t=await F_(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function tI(e){const t={method:"connectionParams",data:await F_(e)};return JSON.stringify(t)}On(fo(),1);var $l=On(fo(),1);function nI(e){const{promise:t,resolve:n,reject:r}=JD();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function rI(e,{intervalMs:t,pongTimeoutMs:n}){let r,a;function i(){r=setTimeout(()=>{e.send("PING"),a=setTimeout(()=>{e.close()},n)},t)}function l(){clearTimeout(r),i()}function u(){clearTimeout(a),l()}e.addEventListener("open",i),e.addEventListener("message",({data:c})=>{clearTimeout(r),i(),c==="PONG"&&u()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(a)})}var aI=class sx{constructor(t){var n;if((0,$l.default)(this,"id",++sx.connectCount),(0,$l.default)(this,"WebSocketPonyfill",void 0),(0,$l.default)(this,"urlOptions",void 0),(0,$l.default)(this,"keepAliveOpts",void 0),(0,$l.default)(this,"wsObservable",ID(null)),(0,$l.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++sx.connectCount;const n=eI(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.addEventListener("message",function({data:a}){a==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&rI(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await nI(r),t.urlOptions.connectionParams&&r.send(await tI(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,$l.default)(aI,"connectCount",0);On(fo(),1);On(Wa(),1);var Mg=On(fo(),1),Z5=On(Wa(),1),_p=class{constructor(e){(0,Mg.default)(this,"links",void 0),(0,Mg.default)(this,"runtime",void 0),(0,Mg.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return LD({links:this.links,op:(0,Z5.default)((0,Z5.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(DD())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await pD(n)).result.data}catch(n){throw Ru.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n?.context,signal:n?.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n?.context,signal:n?.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(a){switch(a.result.type){case"state":{var i;(i=n.onConnectionStateChange)===null||i===void 0||i.call(n,a.result);break}case"started":{var l;(l=n.onStarted)===null||l===void 0||l.call(n,{context:a.context});break}case"stopped":{var u;(u=n.onStopped)===null||u===void 0||u.call(n);break}case"data":case void 0:{var c;
18(c=n.onData)===null||c===void 0||c.call(n,a.result.data);break}}},error(a){var i;(i=n.onError)===null||i===void 0||i.call(n,a)},complete(){var a;(a=n.onComplete)===null||a===void 0||a.call(n)}})}};const H_=Symbol.for("trpc_untypedClient"),sI={query:"query",mutate:"mutation",subscribe:"subscription"},iI=e=>sI[e];function U_(e){const t=Ep(({path:n,args:r})=>{const a=[...n],i=iI(a.pop()),l=a.join(".");return e[i](l,...r)});return jb(n=>n===H_?e:t[n])}function lI(e){const t=new _p(e);return U_(t)}function zb(e){return e[H_]}On(Wa(),1);On(Wa(),1);var oI=As({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var i,l,u,c=2;for(typeof Symbol<"u"&&(l=Symbol.asyncIterator,u=Symbol.iterator);c--;){if(l&&(i=a[l])!=null)return i.call(a);if(u&&(i=a[u])!=null)return new r(i.call(a));l="@@asyncIterator",u="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function i(l){if(Object(l)!==l)return Promise.reject(new TypeError(l+" is not an object."));var u=l.done;return Promise.resolve(l.value).then(function(c){return{value:c,done:u}})}return r=function(u){this.s=u,this.n=u.next},r.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(u){var c=this.s.return;return c===void 0?Promise.resolve({value:u,done:!0}):i(c.apply(this.s,arguments))},throw:function(u){var c=this.s.return;return c===void 0?Promise.reject(u):i(c.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});On(oI(),1);On(Wa(),1);var uI=As({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(u,c){var f=Error();return f.name="SuppressedError",f.error=u,f.suppressed=c,f},a={},i=[];function l(u,c){if(c!=null){if(Object(c)!==c)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(u)var f=c[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(f===void 0&&(f=c[Symbol.dispose||Symbol.for("Symbol.dispose")],u))var g=f;if(typeof f!="function")throw new TypeError("Object is not disposable.");g&&(f=function(){try{g.call(c)}catch(x){return Promise.reject(x)}}),i.push({v:c,d:f,a:u})}else u&&i.push({d:c,a:u});return c}return{e:a,u:l.bind(null,!1),a:l.bind(null,!0),d:function(){var c,f=this.e,g=0;function h(){for(;c=i.pop();)try{if(!c.a&&g===1)return g=0,i.push(c),Promise.resolve().then(h);if(c.d){var b=c.d.call(c.v);if(c.a)return g|=2,Promise.resolve(b).then(h,x)}else g|=1}catch(E){return x(E)}if(g===1)return f!==a?Promise.reject(f):Promise.resolve();if(f!==a)throw f}function x(b){return f=f!==a?new r(b,f):b,h()}return h()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),q_=As({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,a){this.v=r,this.k=a}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),cI=As({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=q_();function r(a){return new n(a,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),dI=As({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=q_();function r(i){return function(){return new a(i.apply(this,arguments))}}function a(i){var l,u;function c(g,h){try{var x=i[g](h),b=x.value,E=b instanceof n;Promise.resolve(E?b.v:b).then(function(_){if(E){var C=g==="return"?"return":"next";if(!b.k||_.done)return c(C,_);_=i[C](_).value}f(x.done?"return":"normal",_)},function(_){c("throw",_)})}catch(_){f("throw",_)}}function f(g,h){switch(g){case"return":l.resolve({value:h,done:!0});break;case"throw":l.reject(h);break;default:l.resolve({value:h,done:!1})}(l=l.next)?c(l.key,l.arg):u=null}this._invoke=function(g,h){return new Promise(function(x,b){var E={key:g,arg:h,resolve:x,reject:b,next:null};u?u=u.next=E:(l=u=E,c(g,h))})},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=r,t.exports.__esModule=!0,t.exports.default=t.exports}});On(uI(),1);On(cI(),1);On(dI(),1);On(Wa(),1);function fI(e){return Ep(({path:t,args:n})=>{var r;const a=[...t],i=a.pop();if(i==="useMutation")return e[i](a,...n);if(i==="_def")return{path:a};const[l,...u]=n,c=(r=u[0])!==null&&r!==void 0?r:{};return e[i](a,l,c)})}var Dg;const hI=["client","ssrContext","ssrState","abortOnUnmount"],pI=(Dg=A.createContext)===null||Dg===void 0?void 0:Dg.call(bp,null),mI=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 gI(e){return Ep(t=>{const n=[...t.path],r=n.pop(),a=[...t.args],i=a.shift(),l=mI(r),u=ps(n,i,l);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,u,a[0]),queryOptions:()=>e.queryOptions(n,u,...a),fetch:()=>e.fetchQuery(u,...a),fetchInfinite:()=>e.fetchInfiniteQuery(u,a[0]),prefetch:()=>e.prefetchQuery(u,...a),prefetchInfinite:()=>e.prefetchInfiniteQuery(u,a[0]),ensureData:()=>e.ensureQueryData(u,...a),invalidate:()=>e.invalidateQueries(u,...a),reset:()=>e.resetQueries(u,...a),refetch:()=>e.refetchQueries(u,...a),cancel:()=>e.cancelQuery(u,...a),setData:()=>{e.setQueryData(u,a[0],a[1])},setQueriesData:()=>e.setQueriesData(u,a[0],a[1],a[2]),setInfiniteData:()=>{e.setInfiniteQueryData(u,a[0],a[1])},getData:()=>e.getQueryData(u),getInfiniteData:()=>e.getInfiniteQueryData(u),setMutationDefaults:()=>e.setMutationDefaults(xh(n),i),getMutationDefaults:()=>e.getMutationDefaults(xh(n)),isMutating:()=>e.isMutating({mutationKey:xh(n)})}[r]()})}function xI(e){const t=U_(e.client),n=gI(e);return jb(r=>{const a=r;return a==="client"?t:hI.includes(a)?e[a]:n[r]})}var bI=co(ed(),1);function J5(e){const t=e instanceof _p?e:zb(e);return Ep(n=>{const r=n.path,a=r.join("."),[i,l]=n.args;return(0,bI.default)({queryKey:ps(r,i,"query"),queryFn:()=>t.query(a,i,l?.trpc)},l)})}var Ig=co(ed(),1);function Rr(e,t,n){var r;const a=e[0];let i=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var l;i=(0,Ig.default)((0,Ig.default)((0,Ig.default)({},(l=i)!==null&&l!==void 0?l:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[a.join("."),i,t?.trpc]}var yI=hl({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var i,l,u,c=2;for(typeof Symbol<"u"&&(l=Symbol.asyncIterator,u=Symbol.iterator);c--;){if(l&&(i=a[l])!=null)return i.call(a);if(u&&(i=a[u])!=null)return new r(i.call(a));l="@@asyncIterator",u="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function i(l){if(Object(l)!==l)return Promise.reject(new TypeError(l+" is not an object."));var u=l.done;return Promise.resolve(l.value).then(function(c){return{value:c,done:u}})}return r=function(u){this.s=u,this.n=u.next},r.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(u){var c=this.s.return;return c===void 0?Promise.resolve({value:u,done:!0}):i(c.apply(this.s,arguments))},throw:function(u){var c=this.s.return;return c===void 0?Promise.reject(u):i(c.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),vI=co(yI(),1);function ix(e){return{path:e.path.join(".")}}function Kc(e){const t=ix(e);return A.useMemo(()=>t,[t])}async function $_(e,t,n){const a=t.getQueryCache().build(t,{queryKey:n});a.setState({data:[],status:"success"});const i=[];var l=!1,u=!1,c;try{for(var f=(0,vI.default)(e),g;l=!(g=await f.next()).done;l=!1){const h=g.value;i.push(h),a.setState({data:[...i]})}}catch(h){u=!0,c=h}finally{try{l&&f.return!=null&&await f.return()}finally{if(u)throw c}}return i}var Bt=co(ed(),1);function EI(e){const{client:t,queryClient:n}=e,r=t instanceof _p?t:zb(t);return{infiniteQueryOptions:(a,i,l)=>{var u,c;const f=((u=i[1])===null||u===void 0?void 0:u.input)===da,g=async h=>{var x;const b=(0,Bt.default)((0,Bt.default)({},l),{},{trpc:(0,Bt.default)((0,Bt.default)({},l?.trpc),!(l==null||(x=l.trpc)===null||x===void 0)&&x.abortOnUnmount?{signal:h.signal}:{signal:null})});return await r.query(...Rr(i,b,{direction:h.direction,pageParam:h.pageParam}))};return Object.assign((0,Bt.default)((0,Bt.default)({},l),{},{initialData:l?.initialData,queryKey:i,queryFn:f?da:g,initialPageParam:(c=l?.initialCursor)!==null&&c!==void 0?c:null}),{trpc:ix({path:a})})},queryOptions:(a,i,l)=>{var u;const c=((u=i[1])===null||u===void 0?void 0:u.input)===da,f=async g=>{var h;const x=(0,Bt.default)((0,Bt.default)({},l),{},{trpc:(0,Bt.default)((0,Bt.default)({},l?.trpc),!(l==null||(h=l.trpc)===null||h===void 0)&&h.abortOnUnmount?{signal:g.signal}:{signal:null})}),b=await r.query(...Rr(i,x));return w_(b)?$_(b,n,i):b};return Object.assign((0,Bt.default)((0,Bt.default)({},l),{},{initialData:l?.initialData,queryKey:i,queryFn:c?da:f}),{trpc:ix({path:a})})},fetchQuery:(a,i)=>n.fetchQuery((0,Bt.default)((0,Bt.default)({},i),{},{queryKey:a,queryFn:()=>r.query(...Rr(a,i))})),fetchInfiniteQuery:(a,i)=>{var l;return n.fetchInfiniteQuery((0,Bt.default)((0,Bt.default)({},i),{},{queryKey:a,queryFn:({pageParam:u,direction:c})=>r.query(...Rr(a,i,{pageParam:u,direction:c})),initialPageParam:(l=i?.initialCursor)!==null&&l!==void 0?l:null}))},prefetchQuery:(a,i)=>n.prefetchQuery((0,Bt.default)((0,Bt.default)({},i),{},{queryKey:a,queryFn:()=>r.query(...Rr(a,i))})),prefetchInfiniteQuery:(a,i)=>{var l;return n.prefetchInfiniteQuery((0,Bt.default)((0,Bt.default)({},i),{},{queryKey:a,queryFn:({pageParam:u,direction:c})=>r.query(...Rr(a,i,{pageParam:u,direction:c})),initialPageParam:(l=i?.initialCursor)!==null&&l!==void 0?l:null}))},ensureQueryData:(a,i)=>n.ensureQueryData((0,Bt.default)((0,Bt.default)({},i),{},{queryKey:a,queryFn:()=>r.query(...Rr(a,i))})),invalidateQueries:(a,i,l)=>n.invalidateQueries((0,Bt.default)((0,Bt.default)({},i),{},{queryKey:a}),l),resetQueries:(a,i,l)=>n.resetQueries((0,Bt.default)((0,Bt.default)({},i),{},{queryKey:a}),l),refetchQueries:(a,i,l)=>n.refetchQueries((0,Bt.default)((0,Bt.default)({},i),{},{queryKey:a}),l),cancelQuery:(a,i)=>n.cancelQueries({queryKey:a},i),setQueryData:(a,i,l)=>n.setQueryData(a,i,l),setQueriesData:(a,i,l,u)=>n.setQueriesData((0,Bt.default)((0,Bt.default)({},i),{},{queryKey:a}),l,u),getQueryData:a=>n.getQueryData(a),setInfiniteQueryData:(a,i,l)=>n.setQueryData(a,i,l),getInfiniteQueryData:a=>n.getQueryData(a),setMutationDefaults:(a,i)=>{const l=a[0],u=c=>r.mutation(...Rr([l,{input:c}],e));return n.setMutationDefaults(a,typeof i=="function"?i({canonicalMutationFn:u}):i)},getMutationDefaults:a=>n.getMutationDefaults(a),isMutating:a=>n.isMutating((0,Bt.default)((0,Bt.default)({},a),{},{exact:!0}))}}var ze=co(ed());const e8=(e,t)=>
18new Proxy(e,{get(r,a){return t(a),r[a]}});function SI(e){var t,n;const r=(t=void 0)!==null&&t!==void 0?t:B=>B.originalFn(),a=(n=void 0)!==null&&n!==void 0?n:pI,i=lI,l=B=>{var j;const{abortOnUnmount:L=!1,queryClient:Y,ssrContext:Z}=B,[$,te]=A.useState((j=B.ssrState)!==null&&j!==void 0?j:!1),ee=B.client instanceof _p?B.client:zb(B.client),he=A.useMemo(()=>EI({client:ee,queryClient:Y}),[ee,Y]),ie=A.useMemo(()=>(0,ze.default)({abortOnUnmount:L,queryClient:Y,client:ee,ssrContext:Z??null,ssrState:$},he),[L,ee,he,Y,Z,$]);return A.useEffect(()=>{te(ne=>ne?"mounted":!1)},[]),p.jsx(a.Provider,{value:ie,children:B.children})};function u(){const B=A.useContext(a);if(!B)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return B}function c(B,j){var L;const{queryClient:Y,ssrState:Z}=u();return Z&&Z!=="mounted"&&((L=Y.getQueryCache().find({queryKey:B}))===null||L===void 0?void 0:L.state.status)==="error"?(0,ze.default)({retryOnMount:!1},j):j}function f(B,j,L){var Y,Z,$,te,ee;const he=u(),{abortOnUnmount:ie,client:ne,ssrState:H,queryClient:re,prefetchQuery:J}=he,Te=ps(B,j,"query"),q=re.getQueryDefaults(Te),G=j===da;typeof window>"u"&&H==="prepass"&&(L==null||(Y=L.trpc)===null||Y===void 0?void 0:Y.ssr)!==!1&&((Z=L?.enabled)!==null&&Z!==void 0?Z:q?.enabled)!==!1&&!G&&!re.getQueryCache().find({queryKey:Te})&&J(Te,L);const oe=c(Te,(0,ze.default)((0,ze.default)({},q),L)),M=($=(te=L==null||(ee=L.trpc)===null||ee===void 0?void 0:ee.abortOnUnmount)!==null&&te!==void 0?te:void 0)!==null&&$!==void 0?$:ie,pe=XM((0,ze.default)((0,ze.default)({},oe),{},{queryKey:Te,queryFn:G?j:async _e=>{const Re=(0,ze.default)((0,ze.default)({},oe),{},{trpc:(0,ze.default)((0,ze.default)({},oe?.trpc),M?{signal:_e.signal}:{signal:null})}),ve=await ne.query(...Rr(Te,Re));return w_(ve)?$_(ve,re,Te):ve}}),re);return pe.trpc=Kc({path:B}),pe}function g(B,j,L){var Y,Z,$;const te=u(),ee=ps(B,j,"query"),he=j===da,ie=(Y=(Z=L==null||($=L.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&Z!==void 0?Z:void 0)!==null&&Y!==void 0?Y:te.abortOnUnmount;JM((0,ze.default)((0,ze.default)({},L),{},{queryKey:ee,queryFn:he?j:ne=>{const H={trpc:(0,ze.default)((0,ze.default)({},L?.trpc),ie?{signal:ne.signal}:{})};return te.client.query(...Rr(ee,H))}}))}function h(B,j,L){var Y,Z,$;const te=u(),ee=ps(B,j,"query"),he=(Y=(Z=L==null||($=L.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&Z!==void 0?Z:void 0)!==null&&Y!==void 0?Y:te.abortOnUnmount,ie=KM((0,ze.default)((0,ze.default)({},L),{},{queryKey:ee,queryFn:ne=>{const H=(0,ze.default)((0,ze.default)({},L),{},{trpc:(0,ze.default)((0,ze.default)({},L?.trpc),he?{signal:ne.signal}:{signal:null})});return te.client.query(...Rr(ee,H))}}),te.queryClient);return ie.trpc=Kc({path:B}),[ie.data,ie]}function x(B,j){const{client:L,queryClient:Y}=u(),Z=xh(B),$=Y.defaultMutationOptions(Y.getMutationDefaults(Z)),te=tD((0,ze.default)((0,ze.default)({},j),{},{mutationKey:Z,mutationFn:ee=>L.mutation(...Rr([B,{input:ee}],j)),onSuccess(...ee){var he,ie;return r({originalFn:()=>{var H,re,J;return(H=j==null||(re=j.onSuccess)===null||re===void 0?void 0:re.call(j,...ee))!==null&&H!==void 0?H:$==null||(J=$.onSuccess)===null||J===void 0?void 0:J.call($,...ee)},queryClient:Y,meta:(he=(ie=j?.meta)!==null&&ie!==void 0?ie:$?.meta)!==null&&he!==void 0?he:{}})}}),Y);return te.trpc=Kc({path:B}),te}const b={data:void 0,error:null,status:"idle"},E={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function _(B,j,L){var Y;const Z=(Y=L?.enabled)!==null&&Y!==void 0?Y:j!==da,$=il(ps(B,j,"any")),{client:te}=u(),ee=A.useRef(L);A.useEffect(()=>{ee.current=L});const[he]=A.useState(new Set([])),ie=A.useCallback(G=>{he.add(G)},[he]),ne=A.useRef(null),H=A.useCallback(G=>{const oe=J.current,M=J.current=G(oe);let pe=!1;for(const _e of he)if(oe[_e]!==M[_e]){pe=!0;break}pe&&q(e8(M,ie))},[ie,he]),re=A.useCallback(()=>{var G;if((G=ne.current)===null||G===void 0||G.unsubscribe(),!Z){H(()=>(0,ze.default)((0,ze.default)({},b),{},{reset:re}));return}H(()=>(0,ze.default)((0,ze.default)({},E),{},{reset:re}));const oe=te.subscription(B.join("."),j??void 0,{onStarted:()=>{var M,pe;(M=(pe=ee.current).onStarted)===null||M===void 0||M.call(pe),H(_e=>(0,ze.default)((0,ze.default)({},_e),{},{status:"pending",error:null}))},onData:M=>{var pe,_e;(pe=(_e=ee.current).onData)===null||pe===void 0||pe.call(_e,M),H(Re=>(0,ze.default)((0,ze.default)({},Re),{},{status:"pending",data:M,error:null}))},onError:M=>{var pe,_e;(pe=(_e=ee.current).onError)===null||pe===void 0||pe.call(_e,M),H(Re=>(0,ze.default)((0,ze.default)({},Re),{},{status:"error",error:M}))},onConnectionStateChange:M=>{H(pe=>{switch(M.state){case"idle":return(0,ze.default)((0,ze.default)({},pe),{},{status:M.state,error:null,data:void 0});case"connecting":return(0,ze.default)((0,ze.default)({},pe),{},{error:M.error,status:M.state});
vendor: 11,510 bytes, lines 18-34
18case"pending":return pe}})},onComplete:()=>{var M,pe;(M=(pe=ee.current).onComplete)===null||M===void 0||M.call(pe),H(_e=>(0,ze.default)((0,ze.default)({},_e),{},{status:"idle",error:null,data:void 0}))}});ne.current=oe},[te,$,Z,H]);A.useEffect(()=>(re(),()=>{var G;(G=ne.current)===null||G===void 0||G.unsubscribe()}),[re]);const J=A.useRef(Z?(0,ze.default)((0,ze.default)({},E),{},{reset:re}):(0,ze.default)((0,ze.default)({},b),{},{reset:re})),[Te,q]=A.useState(e8(J.current,ie));return Te}function C(B,j,L){var Y,Z,$,te,ee;const{client:he,ssrState:ie,prefetchInfiniteQuery:ne,queryClient:H,abortOnUnmount:re}=u(),J=ps(B,j,"infinite"),Te=H.getQueryDefaults(J),q=j===da;typeof window>"u"&&ie==="prepass"&&(L==null||(Y=L.trpc)===null||Y===void 0?void 0:Y.ssr)!==!1&&((Z=L?.enabled)!==null&&Z!==void 0?Z:Te?.enabled)!==!1&&!q&&!H.getQueryCache().find({queryKey:J})&&ne(J,(0,ze.default)((0,ze.default)({},Te),L));const G=c(J,(0,ze.default)((0,ze.default)({},Te),L)),oe=($=L==null||(te=L.trpc)===null||te===void 0?void 0:te.abortOnUnmount)!==null&&$!==void 0?$:re,M=nD((0,ze.default)((0,ze.default)({},G),{},{initialPageParam:(ee=L.initialCursor)!==null&&ee!==void 0?ee:null,persister:L.persister,queryKey:J,queryFn:q?j:pe=>{var _e;const Re=(0,ze.default)((0,ze.default)({},G),{},{trpc:(0,ze.default)((0,ze.default)({},G?.trpc),oe?{signal:pe.signal}:{signal:null})});return he.query(...Rr(J,Re,{pageParam:(_e=pe.pageParam)!==null&&_e!==void 0?_e:L.initialCursor,direction:pe.direction}))}}),H);return M.trpc=Kc({path:B}),M}function w(B,j,L){var Y,Z,$;const te=u(),ee=ps(B,j,"infinite"),he=te.queryClient.getQueryDefaults(ee),ie=j===da,ne=c(ee,(0,ze.default)((0,ze.default)({},he),L)),H=(Y=L==null||(Z=L.trpc)===null||Z===void 0?void 0:Z.abortOnUnmount)!==null&&Y!==void 0?Y:te.abortOnUnmount;eD((0,ze.default)((0,ze.default)({},L),{},{initialPageParam:($=L.initialCursor)!==null&&$!==void 0?$:null,queryKey:ee,queryFn:ie?j:re=>{var J;const Te=(0,ze.default)((0,ze.default)({},ne),{},{trpc:(0,ze.default)((0,ze.default)({},ne?.trpc),H?{signal:re.signal}:{})});return te.client.query(...Rr(ee,Te,{pageParam:(J=re.pageParam)!==null&&J!==void 0?J:L.initialCursor,direction:re.direction}))}}))}function N(B,j,L){var Y,Z,$;const te=u(),ee=ps(B,j,"infinite"),he=te.queryClient.getQueryDefaults(ee),ie=c(ee,(0,ze.default)((0,ze.default)({},he),L)),ne=(Y=L==null||(Z=L.trpc)===null||Z===void 0?void 0:Z.abortOnUnmount)!==null&&Y!==void 0?Y:te.abortOnUnmount,H=WM((0,ze.default)((0,ze.default)({},L),{},{initialPageParam:($=L.initialCursor)!==null&&$!==void 0?$:null,queryKey:ee,queryFn:re=>{var J;const Te=(0,ze.default)((0,ze.default)({},ie),{},{trpc:(0,ze.default)((0,ze.default)({},ie?.trpc),ne?{signal:re.signal}:{})});return te.client.query(...Rr(ee,Te,{pageParam:(J=re.pageParam)!==null&&J!==void 0?J:L.initialCursor,direction:re.direction}))}}),te.queryClient);return H.trpc=Kc({path:B}),[H.data,H]}return{Provider:l,createClient:i,useContext:u,useUtils:u,useQuery:f,usePrefetchQuery:g,useSuspenseQuery:h,useQueries:(B,j)=>{const{ssrState:L,queryClient:Y,prefetchQuery:Z,client:$}=u(),te=J5($),ee=B(te);if(typeof window>"u"&&L==="prepass")for(const ie of ee){var he;const ne=ie;((he=ne.trpc)===null||he===void 0?void 0:he.ssr)!==!1&&!Y.getQueryCache().find({queryKey:ne.queryKey})&&Z(ne.queryKey,ne)}return T_({queries:ee.map(ie=>(0,ze.default)((0,ze.default)({},ie),{},{queryKey:ie.queryKey})),combine:j?.combine},Y)},useSuspenseQueries:B=>{const{queryClient:j,client:L}=u(),Y=J5(L),Z=B(Y),$=ZM({queries:Z.map(te=>(0,ze.default)((0,ze.default)({},te),{},{queryFn:te.queryFn,queryKey:te.queryKey}))},j);return[$.map(te=>te.data),$]},useMutation:x,useSubscription:_,useInfiniteQuery:C,usePrefetchInfiniteQuery:w,useSuspenseInfiniteQuery:N}}function _I(e){const t=fI(e);return jb(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return A.useMemo(()=>xI(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function TI(e){const t=SI();return _I(t)}const Dt=TI(),wI="Please login (10001)";var Lg={exports:{}},Wc={},jg={exports:{}},Bg={};/**
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 t8;function AI(){return t8||(t8=1,(function(e){function t(H,re){var J=H.length;H.push(re);e:for(;0<J;){var Te=J-1>>>1,q=H[Te];if(0<a(q,re))H[Te]=re,H[J]=q,J=Te;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var re=H[0],J=H.pop();if(J!==re){H[0]=J;e:for(var Te=0,q=H.length,G=q>>>1;Te<G;){var oe=2*(Te+1)-1,M=H[oe],pe=oe+1,_e=H[pe];if(0>a(M,J))pe<q&&0>a(_e,M)?(H[Te]=_e,H[pe]=J,Te=pe):(H[Te]=M,H[oe]=J,Te=oe);else if(pe<q&&0>a(_e,J))H[Te]=_e,H[pe]=J,Te=pe;else break e}}return re}function a(H,re){var J=H.sortIndex-re.sortIndex;return J!==0?J:H.id-re.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 l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var c=[],f=[],g=1,h=null,x=3,b=!1,E=!1,_=!1,C=!1,w=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function z(H){for(var re=n(f);re!==null;){if(re.callback===null)r(f);else if(re.startTime<=H)r(f),re.sortIndex=re.expirationTime,t(c,re);else break;re=n(f)}}function B(H){if(_=!1,z(H),!E)if(n(c)!==null)E=!0,j||(j=!0,ee());else{var re=n(f);re!==null&&ne(B,re.startTime-H)}}var j=!1,L=-1,Y=5,Z=-1;function $(){return C?!0:!(e.unstable_now()-Z<Y)}function te(){if(C=!1,j){var H=e.unstable_now();Z=H;var re=!0;try{e:{E=!1,_&&(_=!1,N(L),L=-1),b=!0;var J=x;try{t:{for(z(H),h=n(c);h!==null&&!(h.expirationTime>H&&$());){var Te=h.callback;if(typeof Te=="function"){h.callback=null,x=h.priorityLevel;var q=Te(h.expirationTime<=H);if(H=e.unstable_now(),typeof q=="function"){h.callback=q,z(H),re=!0;break t}h===n(c)&&r(c),z(H)}else r(c);h=n(c)}if(h!==null)re=!0;else{var G=n(f);G!==null&&ne(B,G.startTime-H),re=!1}}break e}finally{h=null,x=J,b=!1}re=void 0}}finally{re?ee():j=!1}}}var ee;if(typeof R=="function")ee=function(){R(te)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,ie=he.port2;he.port1.onmessage=te,ee=function(){ie.postMessage(null)}}else ee=function(){w(te,0)};function ne(H,re){L=w(function(){H(e.unstable_now())},re)}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(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(H){switch(x){case 1:case 2:case 3:var re=3;break;default:re=x}var J=x;x=re;try{return H()}finally{x=J}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(H,re){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var J=x;x=H;try{return re()}finally{x=J}},e.unstable_scheduleCallback=function(H,re,J){var Te=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?Te+J:Te):J=Te,H){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=J+q,H={id:g++,callback:re,priorityLevel:H,startTime:J,expirationTime:q,sortIndex:-1},J>Te?(H.sortIndex=J,t(f,H),n(c)===null&&H===n(f)&&(_?(N(L),L=-1):_=!0,ne(B,J-Te))):(H.sortIndex=q,t(c,H),E||b||(E=!0,j||(j=!0,ee()))),H},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(H){var re=x;return function(){var J=x;x=re;try{return H.apply(this,arguments)}finally{x=J}}}})(Bg)),Bg}var n8;function CI(){return n8||(n8=1,jg.exports=AI()),jg.exports}var zg={exports:{}},yr={};/**
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 r8;function kI(){if(r8)return yr;r8=1;var e=xp();function t(c){var f="https://react.dev/errors/"+c;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)f+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(c,f,g){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:h==null?null:""+h,children:c,containerInfo:f,implementation:g}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(c,f){if(c==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return yr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,yr.createPortal=function(c,f){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return i(c,f,null,g)},yr.flushSync=function(c){var f=l.T,g=r.p;try{if(l.T=null,r.p=2,c)return c()}finally{l.T=f,r.p=g,r.d.f()}},yr.preconnect=function(c,f){typeof c=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(c,f))},yr.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},yr.preinit=function(c,f){if(typeof c=="string"&&f&&typeof f.as=="string"){var g=f.as,h=u(g,f.crossOrigin),x=typeof f.integrity=="string"?f.integrity:void 0,b=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;g==="style"?r.d.S(c,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:h,integrity:x,fetchPriority:b}):g==="script"&&r.d.X(c,{crossOrigin:h,integrity:x,fetchPriority:b,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},yr.preinitModule=function(c,f){if(typeof c=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var g=u(f.as,f.crossOrigin);r.d.M(c,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(c)},yr.preload=function(c,f){if(typeof c=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var g=f.as,h=u(g,f.crossOrigin);r.d.L(c,g,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},yr.preloadModule=function(c,f){if(typeof c=="string")if(f){var g=u(f.as,f.crossOrigin);r.d.m(c,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(c)},yr.requestFormReset=function(c){r.d.r(c)},yr.unstable_batchedUpdates=function(c,f){return c(f)},yr.useFormState=function(c,f,g){return l.H.useFormState(c,f,g)},yr.useFormStatus=function(){return l.H.useHostTransitionStatus()}
vendor: 4,174 bytes, lines 34-42
34,yr.version="19.2.1",yr}var a8;function V_(){if(a8)return zg.exports;a8=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(),zg.exports=kI(),zg.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 s8;function NI(){if(s8)return Wc;s8=1;var e=CI(),t=xp(),n=V_();function r(s){var o="https://react.dev/errors/"+s;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)o+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+s+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function i(s){var o=s,d=s;if(s.alternate)for(;o.return;)o=o.return;else{s=o;do o=s,(o.flags&4098)!==0&&(d=o.return),s=o.return;while(s)}return o.tag===3?d:null}function l(s){if(s.tag===13){var o=s.memoizedState;if(o===null&&(s=s.alternate,s!==null&&(o=s.memoizedState)),o!==null)return o.dehydrated}return null}function u(s){if(s.tag===31){var o=s.memoizedState;if(o===null&&(s=s.alternate,s!==null&&(o=s.memoizedState)),o!==null)return o.dehydrated}return null}function c(s){if(i(s)!==s)throw Error(r(188))}function f(s){var o=s.alternate;if(!o){if(o=i(s),o===null)throw Error(r(188));return o!==s?null:s}for(var d=s,m=o;;){var y=d.return;if(y===null)break;var v=y.alternate;if(v===null){if(m=y.return,m!==null){d=m;continue}break}if(y.child===v.child){for(v=y.child;v;){if(v===d)return c(y),s;if(v===m)return c(y),o;v=v.sibling}throw Error(r(188))}if(d.return!==m.return)d=y,m=v;else{for(var P=!1,D=y.child;D;){if(D===d){P=!0,d=y,m=v;break}if(D===m){P=!0,m=y,d=v;break}D=D.sibling}if(!P){for(D=v.child;D;){if(D===d){P=!0,d=v,m=y;break}if(D===m){P=!0,m=v,d=y;break}D=D.sibling}if(!P)throw Error(r(189))}}if(d.alternate!==m)throw Error(r(190))}if(d.tag!==3)throw Error(r(188));return d.stateNode.current===d?s:o}function g(s){var o=s.tag;if(o===5||o===26||o===27||o===6)return s;for(s=s.child;s!==null;){if(o=g(s),o!==null)return o;s=s.sibling}return null}var h=Object.assign,x=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),R=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function ee(s){return s===null||typeof s!="object"?null:(s=te&&s[te]||s["@@iterator"],typeof s=="function"?s:null)}var he=Symbol.for("react.client.reference");function ie(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===he?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case _:return"Fragment";case w:return"Profiler";case C:return"StrictMode";case B:return"Suspense";case j:return"SuspenseList";case Z:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case E:return"Portal";case R:return s.displayName||"Context";case N:return(s._context.displayName||"Context")+".Consumer";case z:var o=s.render;return s=s.displayName,s||(s=o.displayName||o.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case L:return o=s.displayName||null,o!==null?o:ie(s.type)||"Memo";case Y:o=s._payload,s=s._init;try{return ie(s(o))}catch{}}return null}var ne=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},Te=[],q=-1;function G(s){return{current:s}}function oe(s){0>q||(s.current=Te[q],Te[q]=null,q--)}function M(s,o){q++,Te[q]=s.current,s.current=o}
vendor: 7,859 bytes, lines 42-49
42var pe=G(null),_e=G(null),Re=G(null),ve=G(null);function Ie(s,o){switch(M(Re,o),M(_e,s),M(pe,null),o.nodeType){case 9:case 11:s=(s=o.documentElement)&&(s=s.namespaceURI)?a5(s):0;break;default:if(s=o.tagName,o=o.namespaceURI)o=a5(o),s=s5(o,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}oe(pe),M(pe,s)}function Ue(){oe(pe),oe(_e),oe(Re)}function Qe(s){s.memoizedState!==null&&M(ve,s);var o=pe.current,d=s5(o,s.type);o!==d&&(M(_e,s),M(pe,d))}function rt(s){_e.current===s&&(oe(pe),oe(_e)),ve.current===s&&(oe(ve),Vc._currentValue=J)}var lt,hn;function Zt(s){if(lt===void 0)try{throw Error()}catch(d){var o=d.stack.trim().match(/\n( *(at )?)/);lt=o&&o[1]||"",hn=-1<d.stack.indexOf(`
43    at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
44`+lt+s+hn}var lr=!1;function Gn(s,o){if(!s||lr)return"";lr=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(o){var Se=function(){throw Error()};if(Object.defineProperty(Se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Se,[])}catch(ge){var me=ge}Reflect.construct(s,[],Se)}else{try{Se.call()}catch(ge){me=ge}s.call(Se.prototype)}}else{try{throw Error()}catch(ge){me=ge}(Se=s())&&typeof Se.catch=="function"&&Se.catch(function(){})}}catch(ge){if(ge&&me&&typeof ge.stack=="string")return[ge.stack,me.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=m.DetermineComponentFrameRoot(),P=v[0],D=v[1];if(P&&D){var W=P.split(`
45`),fe=D.split(`
46`);for(y=m=0;m<W.length&&!W[m].includes("DetermineComponentFrameRoot");)m++;for(;y<fe.length&&!fe[y].includes("DetermineComponentFrameRoot");)y++;if(m===W.length||y===fe.length)for(m=W.length-1,y=fe.length-1;1<=m&&0<=y&&W[m]!==fe[y];)y--;for(;1<=m&&0<=y;m--,y--)if(W[m]!==fe[y]){if(m!==1||y!==1)do if(m--,y--,0>y||W[m]!==fe[y]){var ye=`
47`+W[m].replace(" at new "," at ");return s.displayName&&ye.includes("<anonymous>")&&(ye=ye.replace("<anonymous>",s.displayName)),ye}while(1<=m&&0<=y);break}}}finally{lr=!1,Error.prepareStackTrace=d}return(d=s?s.displayName||s.name:"")?Zt(d):""}function Mn(s,o){switch(s.tag){case 26:case 27:case 5:return Zt(s.type);case 16:return Zt("Lazy");case 13:return s.child!==o&&o!==null?Zt("Suspense Fallback"):Zt("Suspense");case 19:return Zt("SuspenseList");case 0:case 15:return Gn(s.type,!1);case 11:return Gn(s.type.render,!1);case 1:return Gn(s.type,!0);case 31:return Zt("Activity");default:return""}}function Cr(s){try{var o="",d=null;do o+=Mn(s,d),d=s,s=s.return;while(s);return o}catch(m){return`
48Error generating stack: `+m.message+`
49`+m.stack}}var pn=Object.prototype.hasOwnProperty,Ce=e.unstable_scheduleCallback,xt=e.unstable_cancelCallback,ft=e.unstable_shouldYield,Yt=e.unstable_requestPaint,Jt=e.unstable_now,xa=e.unstable_getCurrentPriorityLevel,be=e.unstable_ImmediatePriority,Le=e.unstable_UserBlockingPriority,Ze=e.unstable_NormalPriority,ht=e.unstable_LowPriority,Et=e.unstable_IdlePriority,gr=e.log,xr=e.unstable_setDisableYieldValue,or=null,Tn=null;function ur(s){if(typeof gr=="function"&&xr(s),Tn&&typeof Tn.setStrictMode=="function")try{Tn.setStrictMode(or,s)}catch{}}var Ut=Math.clz32?Math.clz32:ns,ts=Math.log,kr=Math.LN2;function ns(s){return s>>>=0,s===0?32:31-(ts(s)/kr|0)|0}var yo=256,vo=262144,yl=4194304;function rs(s){var o=s&42;if(o!==0)return o;switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function at(s,o,d){var m=s.pendingLanes;if(m===0)return 0;var y=0,v=s.suspendedLanes,P=s.pingedLanes;s=s.warmLanes;var D=m&134217727;return D!==0?(m=D&~v,m!==0?y=rs(m):(P&=D,P!==0?y=rs(P):d||(d=D&~s,d!==0&&(y=rs(d))))):(D=m&~v,D!==0?y=rs(D):P!==0?y=rs(P):d||(d=m&~s,d!==0&&(y=rs(d)))),y===0?0:o!==0&&o!==y&&(o&v)===0&&(v=y&-y,d=o&-o,v>=d||v===32&&(d&4194048)!==0)?o:y}function un(s,o){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&o)===0}function er(s,o){switch(s){case 1:case 2:case 4:case 8:case 64:return o+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 o+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 br(){var s=yl;return yl<<=1,(yl&62914560)===0&&(yl=4194304),s}function yi(s){for(var o=[],d=0;31>d;d++)o.push(s);return o}function mn(s,o){s.pendingLanes|=o,o!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Lr(s,o,d,m,y,v){var P=s.pendingLanes;s.pendingLanes=d,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=d,s.entangledLanes&=d,s.errorRecoveryDisabledLanes&=d,s.shellSuspendCounter=0;var D=s.entanglements,W=s.expirationTimes,fe=s.hiddenUpdates;for(d=P&~d;0<d;){var ye=31-Ut(d),Se=1<<ye;D[ye]=0,W[ye]=-1;var me=fe[ye];if(me!==null)for(fe[ye]=null,ye=0;ye<me.length;ye++){var ge=me[ye];ge!==null&&(ge.lane&=-536870913)}d&=~Se}m!==0&&vl(s,m,0),v!==0&&y===0&&s.tag!==0&&(s.suspendedLanes|=v&~(P&~o))}function vl(s,o,d){s.pendingLanes|=o,s.suspendedLanes&=~o;var m=31-Ut(o);s.entangledLanes|=o,s.entanglements[m]=s.entanglements[m]|1073741824|d&261930}function jr(s,o){var d=s.entangledLanes|=o;for(s=s.entanglements;d;){var m=31-Ut(d),y=1<<m;y&o|s[m]&o&&(s[m]|=o),d&=~y}}function Br(s,o){var d=o&-o;return d=(d&42)!==0?1:Eo(d),(d&(s.suspendedLanes|o))!==0?0:d}function Eo(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function za(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function vm(){var s=re.p;return s!==0?s:(s=window.event,s===void 0?32:k5(s.type))}function $4(s,o){var d=re.p;try{return re.p=s,o()}finally{re.p=d}}var vi=Math.random().toString(36).slice(2),cr="__reactFiber$"+vi,zr="__reactProps$"+vi,So="__reactContainer$"+vi,Em="__reactEvents$"+vi,iR="__reactListeners$"+vi,lR="__reactHandles$"+vi,V4="__reactResources$"+vi,ic="__reactMarker$"+vi;function Sm(s){delete s[cr],delete s[zr],delete s[Em],delete s[iR],delete s[lR]}function _o(s){var o=s[cr];if(o)return o;for(var d=s.parentNode;d;){if(o=d[So]||d[cr]){if(d=o.alternate,o.child!==null||d!==null&&d.child!==null)for(s=f5(s);s!==null;){if(d=s[cr])return d;s=f5(s)}return o}s=d,d=s.parentNode}return null}function To(s){if(s=s[cr]||s[So]){var o=s.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return s}return null}function lc(s){var o=s.tag;if(o===5||o===26||o===27||o===6)return s.stateNode;throw Error(r(33))}function wo(s){var o=s[V4];return o||(o=s[V4]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function tr(s){s[ic]=!0}var G4=new Set,Y4={};function El(s,o){Ao(s,o),Ao(s+"Capture",o)}function Ao(s,o){for(Y4[s]=o,s=0;s<o.length;s++)G4.add(o[s])}var oR=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
49037D\\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]*$"),Q4={},X4={};function uR(s){return pn.call(X4,s)?!0:pn.call(Q4,s)?!1:oR.test(s)?X4[s]=!0:(Q4[s]=!0,!1)}function Sd(s,o,d){if(uR(o))if(d===null)s.removeAttribute(o);else{switch(typeof d){case"undefined":case"function":case"symbol":s.removeAttribute(o);return;case"boolean":var m=o.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){s.removeAttribute(o);return}}s.setAttribute(o,""+d)}}function _d(s,o,d){if(d===null)s.removeAttribute(o);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(o);return}s.setAttribute(o,""+d)}}function Ms(s,o,d,m){if(m===null)s.removeAttribute(d);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(d);return}s.setAttributeNS(o,d,""+m)}}function ba(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function K4(s){var o=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function cR(s,o,d){var m=Object.getOwnPropertyDescriptor(s.constructor.prototype,o);if(!s.hasOwnProperty(o)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var y=m.get,v=m.set;return Object.defineProperty(s,o,{configurable:!0,get:function(){return y.call(this)},set:function(P){d=""+P,v.call(this,P)}}),Object.defineProperty(s,o,{enumerable:m.enumerable}),{getValue:function(){return d},setValue:function(P){d=""+P},stopTracking:function(){s._valueTracker=null,delete s[o]}}}}function _m(s){if(!s._valueTracker){var o=K4(s)?"checked":"value";s._valueTracker=cR(s,o,""+s[o])}}function W4(s){if(!s)return!1;var o=s._valueTracker;if(!o)return!0;var d=o.getValue(),m="";return s&&(m=K4(s)?s.checked?"true":"false":s.value),s=m,s!==d?(o.setValue(s),!0):!1}function Td(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var dR=/[\n"\\]/g;function ya(s){return s.replace(dR,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Tm(s,o,d,m,y,v,P,D){s.name="",P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?s.type=P:s.removeAttribute("type"),o!=null?P==="number"?(o===0&&s.value===""||s.value!=o)&&(s.value=""+ba(o)):s.value!==""+ba(o)&&(s.value=""+ba(o)):P!=="submit"&&P!=="reset"||s.removeAttribute("value"),o!=null?wm(s,P,ba(o)):d!=null?wm(s,P,ba(d)):m!=null&&s.removeAttribute("value"),y==null&&v!=null&&(s.defaultChecked=!!v),y!=null&&(s.checked=y&&t
vendor: 5,691 bytes, line 49
49ypeof y!="function"&&typeof y!="symbol"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?s.name=""+ba(D):s.removeAttribute("name")}function Z4(s,o,d,m,y,v,P,D){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(s.type=v),o!=null||d!=null){if(!(v!=="submit"&&v!=="reset"||o!=null)){_m(s);return}d=d!=null?""+ba(d):"",o=o!=null?""+ba(o):d,D||o===s.value||(s.value=o),s.defaultValue=o}m=m??y,m=typeof m!="function"&&typeof m!="symbol"&&!!m,s.checked=D?s.checked:!!m,s.defaultChecked=!!m,P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"&&(s.name=P),_m(s)}function wm(s,o,d){o==="number"&&Td(s.ownerDocument)===s||s.defaultValue===""+d||(s.defaultValue=""+d)}function Co(s,o,d,m){if(s=s.options,o){o={};for(var y=0;y<d.length;y++)o["$"+d[y]]=!0;for(d=0;d<s.length;d++)y=o.hasOwnProperty("$"+s[d].value),s[d].selected!==y&&(s[d].selected=y),y&&m&&(s[d].defaultSelected=!0)}else{for(d=""+ba(d),o=null,y=0;y<s.length;y++){if(s[y].value===d){s[y].selected=!0,m&&(s[y].defaultSelected=!0);return}o!==null||s[y].disabled||(o=s[y])}o!==null&&(o.selected=!0)}}function J4(s,o,d){if(o!=null&&(o=""+ba(o),o!==s.value&&(s.value=o),d==null)){s.defaultValue!==o&&(s.defaultValue=o);return}s.defaultValue=d!=null?""+ba(d):""}function ev(s,o,d,m){if(o==null){if(m!=null){if(d!=null)throw Error(r(92));if(ne(m)){if(1<m.length)throw Error(r(93));m=m[0]}d=m}d==null&&(d=""),o=d}d=ba(o),s.defaultValue=d,m=s.textContent,m===d&&m!==""&&m!==null&&(s.value=m),_m(s)}function ko(s,o){if(o){var d=s.firstChild;if(d&&d===s.lastChild&&d.nodeType===3){d.nodeValue=o;return}}s.textContent=o}var fR=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 tv(s,o,d){var m=o.indexOf("--")===0;d==null||typeof d=="boolean"||d===""?m?s.setProperty(o,""):o==="float"?s.cssFloat="":s[o]="":m?s.setProperty(o,d):typeof d!="number"||d===0||fR.has(o)?o==="float"?s.cssFloat=d:s[o]=(""+d).trim():s[o]=d+"px"}function nv(s,o,d){if(o!=null&&typeof o!="object")throw Error(r(62));if(s=s.style,d!=null){for(var m in d)!d.hasOwnProperty(m)||o!=null&&o.hasOwnProperty(m)||(m.indexOf("--")===0?s.setProperty(m,""):m==="float"?s.cssFloat="":s[m]="");for(var y in o)m=o[y],o.hasOwnProperty(y)&&d[y]!==m&&tv(s,y,m)}else for(var v in o)o.hasOwnProperty(v)&&tv(s,v,o[v])}function Am(s){if(s.indexOf("-")===-1)return!1;switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var hR=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"]]),pR=/^[\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 wd(s){return pR.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}function Ds(){}var Cm=null;function km(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var No=null,Po=null;function rv(s){var o=To(s);if(o&&(s=o.stateNode)){var d=s[zr]||null;e:switch(s=o.stateNode,o.type){case"input":if(Tm(s,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name),o=d.name,d.type==="radio"&&o!=null){for(d=s;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll('input[name="'+ya(""+o)+'"][type="radio"]'),o=0;o<d.length;o++){var m=d[o];if(m!==s&&m.form===s.form){var y=m[zr]||null;if(!y)throw Error(r(90));Tm(m,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(o=0;o<d.length;o++)m=d[o],m.form===s.form&&W4(m)}break e;case"textarea":J4(s,d.value,d.defaultValue);break e;case"select":o=d.value,o!=null&&Co(s,!!d.multiple,o,!1)}}}var Nm=!1;function av(s,o,d){if(Nm)return s(o,d);Nm=!0;try{var m=s(o);return m}finally{if(Nm=!1,(No!==null||Po!==null)&&(hf(),No&&(o=No,s=Po,Po=No=null,rv(o),s)))for(o=0;o<s.length;o++)rv(s[o])}}function oc(s,o){var d=s.stateNode;if(d===null)return null;var m=d[zr]||null;if(m===null)return null;d=m[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(s=s.type,m=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!m;break e;default:s=!1}if(s)return null;if(d&&typeof d!="function")throw Error(r(231,o,typeof d));return d}var Is=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pm=!1;if(Is)try{var uc={};Object.defineProperty(uc,"passive",{get:function(){Pm=!0}}),window.addEventListener("test",uc,uc),window.removeEventListener("test",uc,uc)}catch{Pm=!1}var Ei=null,Rm=null,Ad=null;function sv(){if(Ad)return Ad;var s,o=Rm,d=o.length,m,y="value"in Ei?Ei.value:Ei.textContent,v=y.length;for(s=0;s<d&&o[s]===y[s];s++);var P=d-s;for(m=1;m<=P&&o[d-m]===y[v-m];m++);return Ad=y.slice(s,1<m?1-m:void 0)}function Cd(s){var o=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&o===13&&(s=13)):s=o,s===10&&(s=13),32<=s||s===13?s:0}function kd(){return!0}function iv(){return!1}function Fr(s){function o(d,m,y,v,P){this._reactName=d,this._targetInst=y,this.type=m,this.nativeEvent=v,this.target=P,this.currentTarget=null;for(var D in s)s.hasOwnProperty(D)&&(d=s[D],this[D]=d?d(v):v[D]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?kd:iv,this.isPropagationStopped=iv,this}return h(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=kd)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=kd)},persist:function(){},isPersistent:kd}),o}var Sl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nd=Fr(Sl),cc=h({},Sl,{view:0,detail:0}),mR=Fr(cc),Om,Mm,dc,Pd=h({},cc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Im,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==dc&&(dc&&s.type==="mousemove"?(Om=s.screenX-dc.screenX,Mm=s.screenY-dc.screenY):Mm=Om=0,dc=s),Om)},movementY:function(s){return"movementY"in s?s.movementY:Mm}}),lv=Fr(Pd),gR=h({},Pd,{dataTransfer:0}),xR=Fr(gR),bR=h({},cc,{relatedTarget:0}),Dm=Fr(bR),yR=h({},Sl,{animationName:0,elapsedTime:0,pseudoElement:0}),vR=Fr(yR),ER=h({},Sl,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),SR=Fr(ER),_R=h({},Sl,{data:0}),ov=Fr(_R),TR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wR={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"},AR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CR(s){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(s):(s=AR[s])?!!o[s]:!1}function Im(){return CR}var kR=h({},cc,{key:function(s){if(s.key){var o=TR[s.key]||s.key;if(o!=="Unidentified")return o}
vendor: 4,813 bytes, line 49
49return s.type==="keypress"?(s=Cd(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?wR[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Im,charCode:function(s){return s.type==="keypress"?Cd(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Cd(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),NR=Fr(kR),PR=h({},Pd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uv=Fr(PR),RR=h({},cc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Im}),OR=Fr(RR),MR=h({},Sl,{propertyName:0,elapsedTime:0,pseudoElement:0}),DR=Fr(MR),IR=h({},Pd,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),LR=Fr(IR),jR=h({},Sl,{newState:0,oldState:0}),BR=Fr(jR),zR=[9,13,27,32],Lm=Is&&"CompositionEvent"in window,fc=null;Is&&"documentMode"in document&&(fc=document.documentMode);var FR=Is&&"TextEvent"in window&&!fc,cv=Is&&(!Lm||fc&&8<fc&&11>=fc),dv=" ",fv=!1;function hv(s,o){switch(s){case"keyup":return zR.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pv(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Ro=!1;function HR(s,o){switch(s){case"compositionend":return pv(o);case"keypress":return o.which!==32?null:(fv=!0,dv);case"textInput":return s=o.data,s===dv&&fv?null:s;default:return null}}function UR(s,o){if(Ro)return s==="compositionend"||!Lm&&hv(s,o)?(s=sv(),Ad=Rm=Ei=null,Ro=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return cv&&o.locale!=="ko"?null:o.data;default:return null}}var qR={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 mv(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o==="input"?!!qR[s.type]:o==="textarea"}function gv(s,o,d,m){No?Po?Po.push(m):Po=[m]:No=m,o=vf(o,"onChange"),0<o.length&&(d=new Nd("onChange","change",null,d,m),s.push({event:d,listeners:o}))}var hc=null,pc=null;function $R(s){Z6(s,0)}function Rd(s){var o=lc(s);if(W4(o))return s}function xv(s,o){if(s==="change")return o}var bv=!1;if(Is){var jm;if(Is){var Bm="oninput"in document;if(!Bm){var yv=document.createElement("div");yv.setAttribute("oninput","return;"),Bm=typeof yv.oninput=="function"}jm=Bm}else jm=!1;bv=jm&&(!document.documentMode||9<document.documentMode)}function vv(){hc&&(hc.detachEvent("onpropertychange",Ev),pc=hc=null)}function Ev(s){if(s.propertyName==="value"&&Rd(pc)){var o=[];gv(o,pc,s,km(s)),av($R,o)}}function VR(s,o,d){s==="focusin"?(vv(),hc=o,pc=d,hc.attachEvent("onpropertychange",Ev)):s==="focusout"&&vv()}function GR(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Rd(pc)}function YR(s,o){if(s==="click")return Rd(o)}function QR(s,o){if(s==="input"||s==="change")return Rd(o)}function XR(s,o){return s===o&&(s!==0||1/s===1/o)||s!==s&&o!==o}var ta=typeof Object.is=="function"?Object.is:XR;function mc(s,o){if(ta(s,o))return!0;if(typeof s!="object"||s===null||typeof o!="object"||o===null)return!1;var d=Object.keys(s),m=Object.keys(o);if(d.length!==m.length)return!1;for(m=0;m<d.length;m++){var y=d[m];if(!pn.call(o,y)||!ta(s[y],o[y]))return!1}return!0}function Sv(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function _v(s,o){var d=Sv(s);s=0;for(var m;d;){if(d.nodeType===3){if(m=s+d.textContent.length,s<=o&&m>=o)return{node:d,offset:o-s};s=m}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=Sv(d)}}function Tv(s,o){return s&&o?s===o?!0:s&&s.nodeType===3?!1:o&&o.nodeType===3?Tv(s,o.parentNode):"contains"in s?s.contains(o):s.compareDocumentPosition?!!(s.compareDocumentPosition(o)&16):!1:!1}function wv(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var o=Td(s.document);o instanceof s.HTMLIFrameElement;){try{var d=typeof o.contentWindow.location.href=="string"}catch{d=!1}if(d)s=o.contentWindow;else break;o=Td(s.document)}return o}function zm(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o&&(o==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||o==="textarea"||s.contentEditable==="true")}var KR=Is&&"documentMode"in document&&11>
vendor: 23,209 bytes, line 49
49=document.documentMode,Oo=null,Fm=null,gc=null,Hm=!1;function Av(s,o,d){var m=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;Hm||Oo==null||Oo!==Td(m)||(m=Oo,"selectionStart"in m&&zm(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),gc&&mc(gc,m)||(gc=m,m=vf(Fm,"onSelect"),0<m.length&&(o=new Nd("onSelect","select",null,o,d),s.push({event:o,listeners:m}),o.target=Oo)))}function _l(s,o){var d={};return d[s.toLowerCase()]=o.toLowerCase(),d["Webkit"+s]="webkit"+o,d["Moz"+s]="moz"+o,d}var Mo={animationend:_l("Animation","AnimationEnd"),animationiteration:_l("Animation","AnimationIteration"),animationstart:_l("Animation","AnimationStart"),transitionrun:_l("Transition","TransitionRun"),transitionstart:_l("Transition","TransitionStart"),transitioncancel:_l("Transition","TransitionCancel"),transitionend:_l("Transition","TransitionEnd")},Um={},Cv={};Is&&(Cv=document.createElement("div").style,"AnimationEvent"in window||(delete Mo.animationend.animation,delete Mo.animationiteration.animation,delete Mo.animationstart.animation),"TransitionEvent"in window||delete Mo.transitionend.transition);function Tl(s){if(Um[s])return Um[s];if(!Mo[s])return s;var o=Mo[s],d;for(d in o)if(o.hasOwnProperty(d)&&d in Cv)return Um[s]=o[d];return s}var kv=Tl("animationend"),Nv=Tl("animationiteration"),Pv=Tl("animationstart"),WR=Tl("transitionrun"),ZR=Tl("transitionstart"),JR=Tl("transitioncancel"),Rv=Tl("transitionend"),Ov=new Map,qm="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(" ");qm.push("scrollEnd");function Fa(s,o){Ov.set(s,o),El(o,[s])}var Od=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)},va=[],Do=0,$m=0;function Md(){for(var s=Do,o=$m=Do=0;o<s;){var d=va[o];va[o++]=null;var m=va[o];va[o++]=null;var y=va[o];va[o++]=null;var v=va[o];if(va[o++]=null,m!==null&&y!==null){var P=m.pending;P===null?y.next=y:(y.next=P.next,P.next=y),m.pending=y}v!==0&&Mv(d,y,v)}}function Dd(s,o,d,m){va[Do++]=s,va[Do++]=o,va[Do++]=d,va[Do++]=m,$m|=m,s.lanes|=m,s=s.alternate,s!==null&&(s.lanes|=m)}function Vm(s,o,d,m){return Dd(s,o,d,m),Id(s)}function wl(s,o){return Dd(s,null,null,o),Id(s)}function Mv(s,o,d){s.lanes|=d;var m=s.alternate;m!==null&&(m.lanes|=d);for(var y=!1,v=s.return;v!==null;)v.childLanes|=d,m=v.alternate,m!==null&&(m.childLanes|=d),v.tag===22&&(s=v.stateNode,s===null||s._visibility&1||(y=!0)),s=v,v=v.return;return s.tag===3?(v=s.stateNode,y&&o!==null&&(y=31-Ut(d),s=v.hiddenUpdates,m=s[y],m===null?s[y]=[o]:m.push(o),o.lane=d|536870912),v):null}function Id(s){if(50<Bc)throw Bc=0,eg=null,Error(r(185));for(var o=s.return;o!==null;)s=o,o=s.return;return s.tag===3?s.stateNode:null}var Io={};function eO(s,o,d,m){this.tag=s,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function na(s,o,d,m){return new eO(s,o,d,m)}function Gm(s){return s=s.prototype,!(!s||!s.isReactComponent)}function Ls(s,o){var d=s.alternate;return d===null?(d=na(s.tag,o,s.key,s.mode),d.elementType=s.elementType,d.type=s.type,d.stateNode=s.stateNode,d.alternate=s,s.alternate=d):(d.pendingProps=o,d.type=s.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=s.flags&65011712,d.childLanes=s.childLanes,d.lanes=s.lanes,d.child=s.child,d.memoizedProps=s.memoizedProps,d.memoizedState=s.memoizedState,d.updateQueue=s.updateQueue,o=s.dependencies,d.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},d.sibling=s.sibling,d.index=s.index,d.ref=s.ref,d.refCleanup=s.refCleanup,d}function Dv(s,o){s.flags&=65011714;var d=s.alternate;return d===null?(s.childLanes=0,s.lanes=o,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=d.childLanes,s.lanes=d.lanes,s.child=d.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=d.memoizedProps,s.memoizedState=d.memoizedState,s.updateQueue=d.updateQueue,s.type=d.type,o=d.dependencies,s.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),s}function Ld(s,o,d,m,y,v){var P=0;if(m=s,typeof s=="function")Gm(s)&&(P=1);else if(typeof s=="string")P=sM(s,d,pe.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case Z:return s=na(31,d,o,y),s.elementType=Z,s.lanes=v,s;case _:return Al(d.children,y,v,o);case C:P=8,y|=24;break;case w:return s=na(12,d,o,y|2),s.elementType=w,s.lanes=v,s;case B:return s=na(13,d,o,y),s.elementType=B,s.lanes=v,s;case j:return s=na(19,d,o,y),s.elementType=j,s.lanes=v,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case R:P=10;break e;case N:P=9;break e;case z:P=11;break e;case L:P=14;break e;case Y:P=16,m=null;break e}P=29,d=Error(r(130,s===null?"null":typeof s,"")),m=null}return o=na(P,d,o,y),o.elementType=s,o.type=m,o.lanes=v,o}function Al(s,o,d,m){return s=na(7,s,m,o),s.lanes=d,s}function Ym(s,o,d){return s=na(6,s,null,o),s.lanes=d,s}function Iv(s){var o=na(18,null,null,0);return o.stateNode=s,o}function Qm(s,o,d){return o=na(4,s.children!==null?s.children:[],s.key,o),o.lanes=d,o.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},o}var Lv=new WeakMap;function Ea(s,o){if(typeof s=="object"&&s!==null){var d=Lv.get(s);return d!==void 0?d:(o={value:s,source:o,stack:Cr(o)},Lv.set(s,o),o)}return{value:s,source:o,stack:Cr(o)}}var Lo=[],jo=0,jd=null,xc=0,Sa=[],_a=0,Si=null,as=1,ss="";function js(s,o){Lo[jo++]=xc,Lo[jo++]=jd,jd=s,xc=o}function jv(s,o,d){Sa[_a++]=as,Sa[_a++]=ss,Sa[_a++]=Si,Si=s;var m=as;s=ss;var y=32-Ut(m)-1;m&=~(1<<y),d+=1;var v=32-Ut(o)+y;if(30<v){var P=y-y%5;v=(m&(1<<P)-1).toString(32),m>>=P,y-=P,as=1<<32-Ut(o)+y|d<<y|m,ss=v+s}else as=1<<v|d<<y|m,ss=s}function Xm(s){s.return!==null&&(js(s,1),jv(s,1,0))}function Km(s){for(;s===jd;)jd=Lo[--jo],Lo[jo]=null,xc=Lo[--jo],Lo[jo]=null;for(;s===Si;)Si=Sa[--_a],Sa[_a]=null,ss=Sa[--_a],Sa[_a]=null,as=Sa[--_a],Sa[_a]=null}function Bv(s,o){Sa[_a++]=as,Sa[_a++]=ss,Sa[_a++]=Si,as=o.id,ss=o.overflow,Si=s}var dr=null,ln=null,Pt=!1,_i=null,Ta=!1,Wm=Error(r(519));function Ti(s){var o=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bc(Ea(o,s)),Wm}function zv(s){var o=s.stateNode,d=s.type,m=s.memoizedProps;switch(o[cr]=s,o[zr]=m,d){case"dialog":_t("cancel",o),_t("close",o);break;case"iframe":case"object":case"embed":_t("load",o);break;case"video":case"audio":for(d=0;d<Fc.length;d++)_t(Fc[d],o);break;case"source":_t("error",o);break;case"img":case"image":case"link":_t("error",o),_t("load",o);break;case"details":_t("toggle",o);break;case"input":_t("invalid",o),Z4(o,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":_t("invalid",o);break;case"textarea":_t("invalid",o),ev(o,m.value,m.defaultValue,m.children)}d=m.children,typeof d!="string"&&typeof d!="number"&&typeof d!="bigint"||o.textContent===""+d||m.suppressHydrationWarning===!0||n5(o.textContent,d)?(m.popover!=null&&(_t("beforetoggle",o),_t("toggle",o)),m.onScroll!=null&&_t("scroll",o),m.onScrollEnd!=null&&_t("scrollend",o),m.onClick!=null&&(o.onclick=Ds),o=!0):o=!1,o||Ti(s,!0)}function Fv(s){for(dr=s.return;dr;)switch(dr.tag){case 5:case 31:case 13:Ta=!1;return;case 27:case 3:Ta=!0;return;default:dr=dr.return}}function Bo(s){if(s!==dr)return!1;if(!Pt)return Fv(s),Pt=!0,!1;var o=s.tag,d;if((d=o!==3&&o!==27)&&((d=o===5)&&(d=s.type,d=!(d!=="form"&&d!=="button")||mg(s.type,s.memoizedProps)),d=!d),d&&ln&&Ti(s),Fv(s),o===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));ln=d5(s)}else if(o===31){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));ln=d5(s)}else o===27?(o=ln,Bi(s.type)?(s=vg,vg=null,ln=s):ln=o):ln=dr?Aa(s.stateNode.nextSibling):null;return!0}function Cl(){ln=dr=null,Pt=!1}function Zm(){var s=_i;return s!==null&&($r===null?$r=s:$r.push.apply($r,s),_i=null),s}function bc(s){_i===null?_i=[s]:_i.push(s)}var Jm=G(null),kl=null,Bs=null;function wi(s,o,d){M(Jm,o._currentValue),o._currentValue=d}function zs(s){s._currentValue=Jm.current,oe(Jm)}function e1(s,o,d){for(;s!==null;){var m=s.alternate;if((s.childLanes&o)!==o?(s.childLanes|=o,m!==null&&(m.childLanes|=o)):m!==null&&(m.childLanes&o)!==o&&(m.childLanes|=o),s===d)break;s=s.return}}function t1(s,o,d,m){var y=s.child;for(y!==null&&(y.return=s);y!==null;){var v=y.dependencies;if(v!==null){var P=y.child;v=v.firstContext;e:for(;v!==null;){var D=v;v=y;for(var W=0;W<o.length;W++)if(D.context===o[W]){v.lanes|=d,D=v.alternate,D!==null&&(D.lanes|=d),e1(v.return,d,s),m||(P=null);break e}v=D.next}}else if(y.tag===18){if(P=y.return,P===null)throw Error(r(341));P.lanes|=d,v=P.alternate,v!==null&&(v.lanes|=d),e1(P,d,s),P=null}else P=y.child;if(P!==null)P.return=y;else for(P=y;P!==null;){if(P===s){P=null;break}if(y=P.sibling,y!==null){y.return=P.return,P=y;break}P=P.return}y=P}}function zo(s,o,d,m){s=null;for(var y=o,v=!1;y!==null;){if(!v){if((y.flags&524288)!==0)v=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var P=y.alternate;if(P===null)throw Error(r(387));if(P=P.memoizedProps,P!==null){var D=y.type;ta(y.pendingProps.value,P.value)||(s!==null?s.push(D):s=[D])}}else if(y===ve.current){if(P=y.alternate,P===null)throw Error(r(387));P.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(s!==null?s.push(Vc):s=[Vc])}y=y.return}s!==null&&t1(o,s,d,m),o.flags|=262144}function Bd(s){for(s=s.firstContext;s!==null;){if(!ta(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function Nl(s){kl=s,Bs=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function fr(s){return Hv(kl,s)}function zd(s,o){return kl===null&&Nl(s),Hv(s,o)}function Hv(s,o){var d=o._currentValue;if(o={context:o,memoizedValue:d,next:null},Bs===null){if(s===null)throw Error(r(308));Bs=o,s.dependencies={lanes:0,firstContext:o},s.flags|=524288}else Bs=Bs.next=o;return d}var tO=typeof AbortController<"u"?AbortController:function(){var s=[],o=this.signal={aborted:!1,addEventListener:function(d,m){s.push(m)}};this.abort=function(){o.aborted=!0,s.forEach(function(d){return d()})}},nO=e.unstable_scheduleCallback,rO=e.unstable_NormalPriority,Dn={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function n1(){return{controller:new tO,data:new Map,refCount:0}}function yc(s){s.refCount--,s.refCount===0&&nO(rO,function(){s.controller.abort()})}var vc=null,r1=0,Fo=0,Ho=null;function aO(s,o){if(vc===null){var d=vc=[];r1=0,Fo=ig(),Ho={status:"pending",value:void 0,then:function(m){d.push(m)}}}return r1++,o.then(Uv,Uv),o}function Uv(){if(--r1===0&&vc!==null){Ho!==null&&(Ho.status="fulfilled");var s=vc;vc=null,Fo=0,Ho=null;for(var o=0;o<s.length;o++)(0,s[o])()}}function sO(s,o){var d=[],m={status:"pending",value:null,reason:null,then:function(y){d.push(y)}};return s.then(function(){m.status="fulfilled",m.value=o;for(var y=0;y<d.length;y++)(0,d[y])(o)},function(y){for(m.status="rejected",m.reason=y,y=0;y<d.length;y++)(0,d[y])(void 0)}),m}var qv=H.S;H.S=function(s,o){A6=Jt(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&aO(s,o),qv!==null&&qv(s,o)};var Pl=G(null);function a1(){var s=Pl.current;return s!==null?s:en.pooledCache}function Fd(s,o){o===null?M(Pl,Pl.current):M(Pl,o.pool)}function $v(){var s=a1();return s===null?null:{parent:Dn._currentValue,pool:s}}var Uo=Error(r(460)),s1=Error(r(474)),Hd=Error(r(542)),Ud={then:function(){}};function Vv(s){return s=s.status,s==="fulfilled"||s==="rejected"}function Gv(s,o,d){switch(d=s[d],d===void 0?s.push(o):d!==o&&(o.then(Ds,Ds),o=d),o.status){case"fulfilled":return o.value;case"rejected":throw s=o.reason,Qv(s),s;default:if(typeof o.status=="string")o.then(Ds,Ds);else{if(s=en,s!==null&&100<s.shellSuspendCounter)throw Error(r(482));s=o,s.status="pending",s.then(function(m){if(o.status==="pending"){var y=o;y.status="fulfilled",y.value=m}},function(m){if(o.status==="pending"){var y=o;y.status="rejected",y.reason=m}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw s=o.reason,Qv(s),s}throw Ol=o,Uo}}function Rl(s){try{var o=s._init;return o(s._payload)}catch(d){throw d!==null&&typeof d=="object"&&typeof d.then=="function"?(Ol=d,Uo):d}}var Ol=null;function Yv(){if(Ol===null)throw Error(r(459));var s=Ol;return Ol=null,s}function Qv(s){if(s===Uo||s===Hd)throw Error(r(483))}var qo=null,Ec=0;function qd(s){var o=Ec;return Ec+=1,qo===null&&(qo=[]),Gv(qo,s,o)}function Sc(s,o){o=o.props.ref,s.ref=o!==void 0?o:null}function $d(s,o){throw o.$$typeof===x?Error(r(525)):(s=Object.prototype.toString.call(o),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":s)))}function Xv(s){function o(le,ae){if(s){var ce=le.deletions;ce===null?(le.deletions=[ae],le.flags|=16):ce.push(ae)}}function d(le,ae){if(!s)return null;for(;ae!==null;)o(le,ae),ae=ae.sibling;return null}function m(le){for(var ae=new Map;le!==null;)le.key!==null?ae.set(le.key,le):ae.set(le.index,le),le=le.sibling;return ae}function y(le,ae){return le=Ls(le,ae),le.index=0,le.sibling=null,le}function v(le,ae,ce){return le.index=ce,s?(ce=le.alternate,ce!==null?(ce=ce.index,ce<ae?(le.flags|=67108866,ae):ce):(le.flags|=67108866,ae)):(le.flags|=1048576,ae)}function P(le){return s&&le.alternate===null&&(le.flags|=67108866),le}function D(le,ae,ce,Ee){return ae===null||ae.tag!==6?(ae=Ym(ce,le.mode,Ee),ae.return=le,ae):(ae=y(ae,ce),ae.return=le,ae)}function W(le,ae,ce,Ee){var Xe=ce.type;return Xe===_?ye(le,ae,ce.props.children,Ee,ce.key):ae!==null&&(ae.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===Y&&Rl(Xe)===ae.type)?(ae=y(ae,ce.props),Sc(ae,ce),ae.return=le,ae):(ae=Ld(ce.type,ce.key,ce.props,null,le.mode,Ee),Sc(ae,ce),ae.return=le,ae)}function fe(le,ae,ce,Ee){return ae===null||ae.tag!==4||ae.stateNode.containerInfo!==ce.containerInfo||ae.stateNode.implementation!==ce.implementation?(ae=Qm(ce,le.mode,Ee),ae.return=le,ae):(ae=y(ae,ce.children||[]),ae.return=le,ae)}function ye(le,ae,ce,Ee,Xe){return ae===null||ae.tag!==7?(ae=Al(ce,le.mode,Ee,Xe),ae.return=le,ae):(ae=y(ae,ce),ae.return=le,ae)}function Se(le,ae,ce){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return ae=Ym(""+ae,le.mode,ce),ae.return=le,ae;if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case b:return ce=Ld(ae.type,ae.key,ae.props,null,le.mode,ce),Sc(ce,ae),ce.return=le,ce;case E:return ae=Qm(ae,le.mode,ce),ae.return=le,ae;case Y:return ae=Rl(ae),Se(le,ae,ce)}if(ne(ae)||ee(ae))return ae=Al(ae,le.mode,ce,null),ae.return=le,ae;if(typeof ae.then=="function")return Se(le,qd(ae),ce);if(ae.$$typeof===R)return Se(le,zd(le,ae),ce);$d(le,ae)}return null}function me(le,ae,ce,Ee){var Xe=ae!==null?ae.key:null;if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return Xe!==null?null:D(le,ae,""+ce,Ee);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case b:return ce.key===Xe?W(le,ae,ce,Ee):null;case E:return ce.key===Xe?fe(le,ae,ce,Ee):null;case Y:return ce=Rl(ce),me(le,ae,ce,Ee)}if(ne(ce)||ee(ce))return Xe!==null?null:ye(le,ae,ce,Ee,null);if(typeof ce.then=="function")return me(le,ae,qd(ce),Ee);if(ce.$$typeof===R)return me(le,ae,zd(le,ce),Ee);$d(le,ce)}return null}function ge(le,ae,ce,Ee,Xe){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number"||typeof Ee=="bigint")return le=le.get(ce)||null,D(ae,le,""+Ee,Xe);if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case b:return le=le.get(Ee.key===null?ce:Ee.key)||null,W(ae,le,Ee,Xe);case E:return le=le.get(Ee.key===null?ce:Ee.key)||null,fe(ae,le,Ee,Xe);case Y:return Ee=Rl(Ee),ge(le,ae,ce,Ee,Xe)}if(ne(Ee)||ee(Ee))return le=le.get(ce)||null,ye(ae,le,Ee,Xe,null);if(typeof Ee.then=="function")return ge(le,ae,ce,qd(Ee),Xe);if(Ee.$$typeof===R)return ge(le,ae,ce,zd(ae,Ee),Xe);$d(ae,Ee)}return null}function He(le,ae,ce,Ee){for(var Xe=null,Lt=null,Ve=ae,pt=ae=0,At=null;Ve!==null&&pt<ce.length;pt++){Ve.index>pt?(At=Ve,Ve=null):At=Ve.sibling;var jt=me(le,Ve,ce[pt],Ee);if(jt===null){Ve===null&&(Ve=At);break}s&&Ve&&jt.alternate===null&&o(le,Ve),ae=v(jt,ae,pt),Lt===null?Xe=jt:Lt.sibling=jt,Lt=jt,Ve=At}if(pt===ce.length)return d(le,Ve),Pt&&js(le,pt),Xe;if(Ve===null){for(;pt<ce.length;pt++)Ve=Se(le,ce[pt],Ee),Ve!==null&&(ae=v(Ve,ae,pt),Lt===null?Xe=Ve:Lt.sibling=Ve,Lt=Ve);return Pt&&js(le,pt),Xe}for(Ve=m(Ve);pt<ce.length;pt++)At=ge(Ve,le,pt,ce[pt],Ee),At!==null&&(s&&At.alternate!==null&&Ve.delete(At.key===null?pt:At.key),ae=v(At,ae,pt),Lt===null?Xe=At:Lt.sibling=At,Lt=At);return s&&Ve.forEach(function(qi){return o(le,qi)}),Pt&&js(le,pt),Xe}function Je(le,ae,ce,Ee){if(ce==null)throw Error(r(151));for(var Xe=null,Lt=null,Ve=ae,pt=ae=0,At=null,jt=ce.next();Ve!==null&&!jt.done;pt++,jt=ce.next()){Ve.index>pt?(At=Ve,Ve=null):At=Ve.sibling;var qi=me(le,Ve,jt.value,Ee);if(qi===null){Ve===null&&(Ve=At);break}s&&Ve&&qi.alternate===null&&o(le,Ve),ae=v(qi,ae,pt),Lt===null?Xe=qi:Lt.sibling=qi,Lt=qi,Ve=At}if(jt.done)return d(le,Ve),Pt&&js(le,pt),Xe;if(Ve===null){for(;!jt.done;pt++,jt=ce.next())jt=Se(le,jt.value,Ee),jt!==null&&(ae=v(jt,ae,pt),Lt===null?Xe=jt:Lt.sibling=jt,Lt=jt);return Pt&&js(le,pt),Xe}for(Ve=m(Ve);!jt.done;pt++,jt=ce.next())jt=ge(Ve,le,pt,jt.value,Ee),jt!==null&&(s&&jt.alternate!==null&&Ve.delete(jt.key===null?pt:jt.key),ae=v(jt,ae,pt),Lt===null?Xe=jt:Lt.sibling=jt,Lt=jt);return s&&Ve.forEach(function(gM){return o(le,gM)}),Pt&&js(le,pt),Xe}function Kt(le,ae,ce,Ee){if(typeof ce=="object"&&ce!==null&&ce.type===_&&ce.key===null&&(ce=ce.props.children),typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case b:e:{for(var Xe=ce.key;ae!==null;){if(ae.key===Xe){if(Xe=ce.type,Xe===_){if(ae.tag===7){d(le,ae.sibling),Ee=y(ae,ce.props.children),Ee.return=le,le=Ee;break e}}else if(ae.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===Y&&Rl(Xe)===ae.type){d(le,ae.sibling),Ee=y(ae,ce.props),Sc(Ee,ce),Ee.return=le,le=Ee;break e}d(le,ae);break}else o(le,ae);ae=ae.sibling}ce.type===_?(Ee=Al(ce.props.children,le.mode,Ee,ce.key),Ee.return=le,le=Ee):(Ee=Ld(ce.type,ce.key,ce.props,null,le.mode,Ee),Sc(Ee,ce),Ee.return=le,le=Ee)}return P(le);case E:e:{for(Xe=ce.key;ae!==null;){if(ae.key===Xe)if(ae.tag===4&&ae.stateNode.containerInfo===ce.containerInfo&&ae.stateNode.implementation===ce.implementation){d(le,ae.sibling),Ee=y(ae,ce.children||[]),Ee.return=le,le=Ee;break e}else{d(le,ae);break}else o(le,ae);ae=ae.sibling}Ee=Qm(ce,le.mode,Ee),Ee.return=le,le=Ee}return P(le);case Y:return ce=Rl(ce),Kt(le,ae,ce,Ee)}if(ne(ce))return He(le,ae,ce,Ee);if(ee(ce)){if(Xe=ee(ce),typeof Xe!="function")throw Error(r(150));return ce=Xe.call(ce),Je(le,ae,ce,Ee)}if(typeof ce.then=="function")return Kt(le,ae,qd(ce),Ee);if(ce.$$typeof===R)return Kt(le,ae,zd(le,ce),Ee);$d(le,ce)}return typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint"?(ce=""+ce,ae!==null&&ae.tag===6?(d(le,ae.sibling),Ee=y(ae,ce),Ee.return=le,le=Ee):(d(le,ae),Ee=Ym(ce,le.mode,Ee),Ee.return=le,le=Ee),P(le)):d(le,ae)}return function(le,ae,ce,Ee){try{Ec=0;var Xe=Kt(le,ae,ce,Ee);return qo=null,Xe}catch(Ve){if(Ve===Uo||Ve===Hd)throw Ve;var Lt=na(29,Ve,null,le.mode);return Lt.lanes=Ee,Lt.return=le,Lt}finally{}}}var Ml=Xv(!0),Kv=Xv(!1),Ai=!1;function i1(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function l1(s,o){s=s.updateQueue,o.updateQueue===s&&(o.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function Ci(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function ki(s,o,d){var m=s.updateQueue;if(m===null)return null;if(m=m.shared,(Ht&2)!==0){var y=m.pending;return y===null?o.next=o:(o.next=y.next,y.next=o),m.pending=o,o=Id(s),Mv(s,null,d),o}return Dd(s,m,o,d),Id(s)}function _c(s,o,d){if(o=o.updateQueue,o!==null&&(o=o.shared,(d&4194048)!==0)){var m=o.lanes;m&=s.pendingLanes,d|=m,o.lanes=d,jr(s,d)}}function o1(s,o){var d=s.updateQueue,m=s.alternate;if(m!==null&&(m=m.updateQueue,d===m)){var y=null,v=null;if(d=d.firstBaseUpdate,d!==null){do{var P={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};v===null?y=v=P:v=v.next=P,d=d.next}while(d!==null);v===null?y=v=o:v=v.next=o}else y=v=o;d={baseState:m.baseState,firstBaseUpdate:y,lastBaseUpdate:v,shared:m.shared,callbacks:m.callbacks},s.updateQueue=d;return}s=d.lastBaseUpdate,s===null?d.firstBaseUpdate=o:s.next=o,d.lastBaseUpdate=o}var u1=!1;function Tc(){if(u1){var s=Ho;if(s!==null)throw s}}function wc(s,o,d,m){u1=!1;var y=s.updateQueue;Ai=!1;var v=y.firstBaseUpdate,P=y.lastBaseUpdate,D=y.shared.pending;if(D!==null){y.shared.pending=null;var W=D,fe=W.next;W.next=null,P===null?v=fe:P.next=fe,P=W;var ye=s.alternate;ye!==null&&(ye=ye.updateQueue,D=ye.lastBaseUpdate,D!==P&&(D===null?ye.firstBaseUpdate=fe:D.next=fe,ye.lastBaseUpdate=W))}if(v!==null){var Se=y.baseState;P=0,ye=fe=W=null,D=v;do{var me=D.lane&-536870913,ge=me!==D.lane;if(ge?(wt&me)===me:(m&me)===me){me!==0&&me===Fo&&(u1=!0),ye!==null&&(ye=ye.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var He=s,Je=D;me=o;var Kt=d;switch(Je.tag){case 1:if(He=Je.payload,typeof He=="function"){Se=He.call(Kt,Se,me);break e}Se=He;break e;case 3:He.flags=He.flags&-65537|128;case 0:if(He=Je.payload,me=typeof He=="function"?He.call(Kt,Se,me):He,me==null)break e;Se=h({},Se,me);break e;case 2:Ai=!0}}me=D.callback,me!==null&&(s.flags|=64,ge&&(s.flags|=8192),ge=y.callbacks,ge===null?y.callbacks=[me]:ge.push(me))}else ge={lane:me,tag:D.tag,payload:D.payload,callback:D.callback,next:null},ye===null?(fe=ye=ge,W=Se):ye=ye.next=ge,P|=me;if(D=D.next,D===null){if(D=y.shared.pending,D===null)break;ge=D,D=ge.next,ge.next=null,y.lastBaseUpdate=ge,y.shared.pending=null}}while(!0);ye===null&&(W=Se),y.baseState=W,y.firstBaseUpdate=fe,y.lastBaseUpdate=ye,v===null&&(y.shared.lanes=0),Mi|=P,s.lanes=P,s.memoizedState=Se}}function Wv(s,o){if(typeof s!="function")throw Error(r(191,s));s.call(o)}function Zv(s,o){var d=s.callbacks;
vendor: 4,089 bytes, line 49
49if(d!==null)for(s.callbacks=null,s=0;s<d.length;s++)Wv(d[s],o)}var $o=G(null),Vd=G(0);function Jv(s,o){s=Qs,M(Vd,s),M($o,o),Qs=s|o.baseLanes}function c1(){M(Vd,Qs),M($o,$o.current)}function d1(){Qs=Vd.current,oe($o),oe(Vd)}var ra=G(null),wa=null;function Ni(s){var o=s.alternate;M(wn,wn.current&1),M(ra,s),wa===null&&(o===null||$o.current!==null||o.memoizedState!==null)&&(wa=s)}function f1(s){M(wn,wn.current),M(ra,s),wa===null&&(wa=s)}function e3(s){s.tag===22?(M(wn,wn.current),M(ra,s),wa===null&&(wa=s)):Pi()}function Pi(){M(wn,wn.current),M(ra,ra.current)}function aa(s){oe(ra),wa===s&&(wa=null),oe(wn)}var wn=G(0);function Gd(s){for(var o=s;o!==null;){if(o.tag===13){var d=o.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||bg(d)||yg(d)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Fs=0,ut=null,Qt=null,In=null,Yd=!1,Vo=!1,Dl=!1,Qd=0,Ac=0,Go=null,iO=0;function bn(){throw Error(r(321))}function h1(s,o){if(o===null)return!1;for(var d=0;d<o.length&&d<s.length;d++)if(!ta(s[d],o[d]))return!1;return!0}function p1(s,o,d,m,y,v){return Fs=v,ut=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,H.H=s===null||s.memoizedState===null?j3:N1,Dl=!1,v=d(m,y),Dl=!1,Vo&&(v=n3(o,d,m,y)),t3(s),v}function t3(s){H.H=Nc;var o=Qt!==null&&Qt.next!==null;if(Fs=0,In=Qt=ut=null,Yd=!1,Ac=0,Go=null,o)throw Error(r(300));s===null||Ln||(s=s.dependencies,s!==null&&Bd(s)&&(Ln=!0))}function n3(s,o,d,m){ut=s;var y=0;do{if(Vo&&(Go=null),Ac=0,Vo=!1,25<=y)throw Error(r(301));if(y+=1,In=Qt=null,s.updateQueue!=null){var v=s.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}H.H=B3,v=o(d,m)}while(Vo);return v}function lO(){var s=H.H,o=s.useState()[0];return o=typeof o.then=="function"?Cc(o):o,s=s.useState()[0],(Qt!==null?Qt.memoizedState:null)!==s&&(ut.flags|=1024),o}function m1(){var s=Qd!==0;return Qd=0,s}function g1(s,o,d){o.updateQueue=s.updateQueue,o.flags&=-2053,s.lanes&=~d}function x1(s){if(Yd){for(s=s.memoizedState;s!==null;){var o=s.queue;o!==null&&(o.pending=null),s=s.next}Yd=!1}Fs=0,In=Qt=ut=null,Vo=!1,Ac=Qd=0,Go=null}function Nr(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return In===null?ut.memoizedState=In=s:In=In.next=s,In}function An(){if(Qt===null){var s=ut.alternate;s=s!==null?s.memoizedState:null}else s=Qt.next;var o=In===null?ut.memoizedState:In.next;if(o!==null)In=o,Qt=s;else{if(s===null)throw ut.alternate===null?Error(r(467)):Error(r(310));Qt=s,s={memoizedState:Qt.memoizedState,baseState:Qt.baseState,baseQueue:Qt.baseQueue,queue:Qt.queue,next:null},In===null?ut.memoizedState=In=s:In=In.next=s}return In}function Xd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Cc(s){var o=Ac;return Ac+=1,Go===null&&(Go=[]),s=Gv(Go,s,o),o=ut,(In===null?o.memoizedState:In.next)===null&&(o=o.alternate,H.H=o===null||o.memoizedState===null?j3:N1),s}function Kd(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return Cc(s);if(s.$$typeof===R)return fr(s)}throw Error(r(438,String(s)))}function b1(s){var o=null,d=ut.updateQueue;if(d!==null&&(o=d.memoCache),o==null){var m=ut.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(o={data:m.data.map(function(y){return y.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),d===null&&(d=Xd(),ut.updateQueue=d),d.memoCache=o,d=o.data[o.index],d===void 0)for(d=o.data[o.index]=Array(s),m=0;m<s;m++)d[m]=$;return o.index++,d}function Hs(s,o){return typeof o=="function"?o(s):o}function Wd(s){var o=An();return y1(o,Qt,s)}function y1(s,o,d){var m=s.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=d;var y=s.baseQueue,v=m.pending;if(v!==null){if(y!==null){var P=y.next;
vendor: 18,357 bytes, line 49
49y.next=v.next,v.next=P}o.baseQueue=y=v,m.pending=null}if(v=s.baseState,y===null)s.memoizedState=v;else{o=y.next;var D=P=null,W=null,fe=o,ye=!1;do{var Se=fe.lane&-536870913;if(Se!==fe.lane?(wt&Se)===Se:(Fs&Se)===Se){var me=fe.revertLane;if(me===0)W!==null&&(W=W.next={lane:0,revertLane:0,gesture:null,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null}),Se===Fo&&(ye=!0);else if((Fs&me)===me){fe=fe.next,me===Fo&&(ye=!0);continue}else Se={lane:0,revertLane:fe.revertLane,gesture:null,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null},W===null?(D=W=Se,P=v):W=W.next=Se,ut.lanes|=me,Mi|=me;Se=fe.action,Dl&&d(v,Se),v=fe.hasEagerState?fe.eagerState:d(v,Se)}else me={lane:Se,revertLane:fe.revertLane,gesture:fe.gesture,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null},W===null?(D=W=me,P=v):W=W.next=me,ut.lanes|=Se,Mi|=Se;fe=fe.next}while(fe!==null&&fe!==o);if(W===null?P=v:W.next=D,!ta(v,s.memoizedState)&&(Ln=!0,ye&&(d=Ho,d!==null)))throw d;s.memoizedState=v,s.baseState=P,s.baseQueue=W,m.lastRenderedState=v}return y===null&&(m.lanes=0),[s.memoizedState,m.dispatch]}function v1(s){var o=An(),d=o.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=s;var m=d.dispatch,y=d.pending,v=o.memoizedState;if(y!==null){d.pending=null;var P=y=y.next;do v=s(v,P.action),P=P.next;while(P!==y);ta(v,o.memoizedState)||(Ln=!0),o.memoizedState=v,o.baseQueue===null&&(o.baseState=v),d.lastRenderedState=v}return[v,m]}function r3(s,o,d){var m=ut,y=An(),v=Pt;if(v){if(d===void 0)throw Error(r(407));d=d()}else d=o();var P=!ta((Qt||y).memoizedState,d);if(P&&(y.memoizedState=d,Ln=!0),y=y.queue,_1(i3.bind(null,m,y,s),[s]),y.getSnapshot!==o||P||In!==null&&In.memoizedState.tag&1){if(m.flags|=2048,Yo(9,{destroy:void 0},s3.bind(null,m,y,d,o),null),en===null)throw Error(r(349));v||(Fs&127)!==0||a3(m,o,d)}return d}function a3(s,o,d){s.flags|=16384,s={getSnapshot:o,value:d},o=ut.updateQueue,o===null?(o=Xd(),ut.updateQueue=o,o.stores=[s]):(d=o.stores,d===null?o.stores=[s]:d.push(s))}function s3(s,o,d,m){o.value=d,o.getSnapshot=m,l3(o)&&o3(s)}function i3(s,o,d){return d(function(){l3(o)&&o3(s)})}function l3(s){var o=s.getSnapshot;s=s.value;try{var d=o();return!ta(s,d)}catch{return!0}}function o3(s){var o=wl(s,2);o!==null&&Vr(o,s,2)}function E1(s){var o=Nr();if(typeof s=="function"){var d=s;if(s=d(),Dl){ur(!0);try{d()}finally{ur(!1)}}}return o.memoizedState=o.baseState=s,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hs,lastRenderedState:s},o}function u3(s,o,d,m){return s.baseState=d,y1(s,Qt,typeof m=="function"?m:Hs)}function oO(s,o,d,m,y){if(ef(s))throw Error(r(485));if(s=o.action,s!==null){var v={payload:y,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(P){v.listeners.push(P)}};H.T!==null?d(!0):v.isTransition=!1,m(v),d=o.pending,d===null?(v.next=o.pending=v,c3(o,v)):(v.next=d.next,o.pending=d.next=v)}}function c3(s,o){var d=o.action,m=o.payload,y=s.state;if(o.isTransition){var v=H.T,P={};H.T=P;try{var D=d(y,m),W=H.S;W!==null&&W(P,D),d3(s,o,D)}catch(fe){S1(s,o,fe)}finally{v!==null&&P.types!==null&&(v.types=P.types),H.T=v}}else try{v=d(y,m),d3(s,o,v)}catch(fe){S1(s,o,fe)}}function d3(s,o,d){d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(function(m){f3(s,o,m)},function(m){return S1(s,o,m)}):f3(s,o,d)}function f3(s,o,d){o.status="fulfilled",o.value=d,h3(o),s.state=d,o=s.pending,o!==null&&(d=o.next,d===o?s.pending=null:(d=d.next,o.next=d,c3(s,d)))}function S1(s,o,d){var m=s.pending;if(s.pending=null,m!==null){m=m.next;do o.status="rejected",o.reason=d,h3(o),o=o.next;while(o!==m)}s.action=null}function h3(s){s=s.listeners;for(var o=0;o<s.length;o++)(0,s[o])()}function p3(s,o){return o}function m3(s,o){if(Pt){var d=en.formState;if(d!==null){e:{var m=ut;if(Pt){if(ln){t:{for(var y=ln,v=Ta;y.nodeType!==8;){if(!v){y=null;break t}if(y=Aa(y.nextSibling),y===null){y=null;break t}}v=y.data,y=v==="F!"||v==="F"?y:null}if(y){ln=Aa(y.nextSibling),m=y.data==="F!";break e}}Ti(m)}m=!1}m&&(o=d[0])}}return d=Nr(),d.memoizedState=d.baseState=o,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:p3,lastRenderedState:o},d.queue=m,d=D3.bind(null,ut,m),m.dispatch=d,m=E1(!1),v=k1.bind(null,ut,!1,m.queue),m=Nr(),y={state:o,dispatch:null,action:s,pending:null},m.queue=y,d=oO.bind(null,ut,y,v,d),y.dispatch=d,m.memoizedState=s,[o,d,!1]}function g3(s){var o=An();return x3(o,Qt,s)}function x3(s,o,d){if(o=y1(s,o,p3)[0],s=Wd(Hs)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var m=Cc(o)}catch(P){throw P===Uo?Hd:P}else m=o;o=An();var y=o.queue,v=y.dispatch;return d!==o.memoizedState&&(ut.flags|=2048,Yo(9,{destroy:void 0},uO.bind(null,y,d),null)),[m,v,s]}function uO(s,o){s.action=o}function b3(s){var o=An(),d=Qt;if(d!==null)return x3(o,d,s);An(),o=o.memoizedState,d=An();var m=d.queue.dispatch;return d.memoizedState=s,[o,m,!1]}function Yo(s,o,d,m){return s={tag:s,create:d,deps:m,inst:o,next:null},o=ut.updateQueue,o===null&&(o=Xd(),ut.updateQueue=o),d=o.lastEffect,d===null?o.lastEffect=s.next=s:(m=d.next,d.next=s,s.next=m,o.lastEffect=s),s}function y3(){return An().memoizedState}function Zd(s,o,d,m){var y=Nr();ut.flags|=s,y.memoizedState=Yo(1|o,{destroy:void 0},d,m===void 0?null:m)}function Jd(s,o,d,m){var y=An();m=m===void 0?null:m;var v=y.memoizedState.inst;Qt!==null&&m!==null&&h1(m,Qt.memoizedState.deps)?y.memoizedState=Yo(o,v,d,m):(ut.flags|=s,y.memoizedState=Yo(1|o,v,d,m))}function v3(s,o){Zd(8390656,8,s,o)}function _1(s,o){Jd(2048,8,s,o)}function cO(s){ut.flags|=4;var o=ut.updateQueue;if(o===null)o=Xd(),ut.updateQueue=o,o.events=[s];else{var d=o.events;d===null?o.events=[s]:d.push(s)}}function E3(s){var o=An().memoizedState;return cO({ref:o,nextImpl:s}),function(){if((Ht&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}function S3(s,o){return Jd(4,2,s,o)}function _3(s,o){return Jd(4,4,s,o)}function T3(s,o){if(typeof o=="function"){s=s();var d=o(s);return function(){typeof d=="function"?d():o(null)}}if(o!=null)return s=s(),o.current=s,function(){o.current=null}}function w3(s,o,d){d=d!=null?d.concat([s]):null,Jd(4,4,T3.bind(null,o,s),d)}function T1(){}function A3(s,o){var d=An();o=o===void 0?null:o;var m=d.memoizedState;return o!==null&&h1(o,m[1])?m[0]:(d.memoizedState=[s,o],s)}function C3(s,o){var d=An();o=o===void 0?null:o;var m=d.memoizedState;if(o!==null&&h1(o,m[1]))return m[0];if(m=s(),Dl){ur(!0);try{s()}finally{ur(!1)}}return d.memoizedState=[m,o],m}function w1(s,o,d){return d===void 0||(Fs&1073741824)!==0&&(wt&261930)===0?s.memoizedState=o:(s.memoizedState=d,s=k6(),ut.lanes|=s,Mi|=s,d)}function k3(s,o,d,m){return ta(d,o)?d:$o.current!==null?(s=w1(s,d,m),ta(s,o)||(Ln=!0),s):(Fs&42)===0||(Fs&1073741824)!==0&&(wt&261930)===0?(Ln=!0,s.memoizedState=d):(s=k6(),ut.lanes|=s,Mi|=s,o)}function N3(s,o,d,m,y){var v=re.p;re.p=v!==0&&8>v?v:8;var P=H.T,D={};H.T=D,k1(s,!1,o,d);try{var W=y(),fe=H.S;if(fe!==null&&fe(D,W),W!==null&&typeof W=="object"&&typeof W.then=="function"){var ye=sO(W,m);kc(s,o,ye,la(s))}else kc(s,o,m,la(s))}catch(Se){kc(s,o,{then:function(){},status:"rejected",reason:Se},la())}finally{re.p=v,P!==null&&D.types!==null&&(P.types=D.types),H.T=P}}function dO(){}function A1(s,o,d,m){if(s.tag!==5)throw Error(r(476));var y=P3(s).queue;N3(s,y,o,J,d===null?dO:function(){return R3(s),d(m)})}function P3(s){var o=s.memoizedState;if(o!==null)return o;o={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hs,lastRenderedState:J},next:null};var d={};return o.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hs,lastRenderedState:d},next:null},s.memoizedState=o,s=s.alternate,s!==null&&(s.memoizedState=o),o}function R3(s){var o=P3(s);o.next===null&&(o=s.alternate.memoizedState),kc(s,o.next.queue,{},la())}function C1(){return fr(Vc)}function O3(){return An().memoizedState}function M3(){return An().memoizedState}function fO(s){for(var o=s.return;o!==null;){switch(o.tag){case 24:case 3:var d=la();s=Ci(d);var m=ki(o,s,d);m!==null&&(Vr(m,o,d),_c(m,o,d)),o={cache:n1()},s.payload=o;return}o=o.return}}function hO(s,o,d){var m=la();d={lane:m,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},ef(s)?I3(o,d):(d=Vm(s,o,d,m),d!==null&&(Vr(d,s,m),L3(d,o,m)))}function D3(s,o,d){var m=la();kc(s,o,d,m)}function kc(s,o,d,m){var y={lane:m,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null};if(ef(s))I3(o,y);else{var v=s.alternate;if(s.lanes===0&&(v===null||v.lanes===0)&&(v=o.lastRenderedReducer,v!==null))try{var P=o.lastRenderedState,D=v(P,d);if(y.hasEagerState=!0,y.eagerState=D,ta(D,P))return Dd(s,o,y,0),en===null&&Md(),!1}catch{}finally{}if(d=Vm(s,o,y,m),d!==null)return Vr(d,s,m),L3(d,o,m),!0}return!1}function k1(s,o,d,m){if(m={lane:2,revertLane:ig(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},ef(s)){if(o)throw Error(r(479))}else o=Vm(s,d,m,2),o!==null&&Vr(o,s,2)}function ef(s){var o=s.alternate;return s===ut||o!==null&&o===ut}function I3(s,o){Vo=Yd=!0;var d=s.pending;d===null?o.next=o:(o.next=d.next,d.next=o),s.pending=o}function L3(s,o,d){if((d&4194048)!==0){var m=o.lanes;m&=s.pendingLanes,d|=m,o.lanes=d,jr(s,d)}}var Nc={readContext:fr,use:Kd,useCallback:bn,useContext:bn,useEffect:bn,useImperativeHandle:bn,useLayoutEffect:bn,useInsertionEffect:bn,useMemo:bn,useReducer:bn,useRef:bn,useState:bn,useDebugValue:bn,useDeferredValue:bn,useTransition:bn,useSyncExternalStore:bn,useId:bn,useHostTransitionStatus:bn,useFormState:bn,useActionState:bn,useOptimistic:bn,useMemoCache:bn,useCacheRefresh:bn};Nc.useEffectEvent=bn;var j3={readContext:fr,use:Kd,useCallback:function(s,o){return Nr().memoizedState=[s,o===void 0?null:o],s},useContext:fr,useEffect:v3,useImperativeHandle:function(s,o,d){d=d!=null?d.concat([s]):null,Zd(4194308,4,T3.bind(null,o,s),d)},useLayoutEffect:function(s,o){return Zd(4194308,4,s,o)},useInsertionEffect:function(s,o){Zd(4,2,s,o)},useMemo:function(s,o){var d=Nr();o=o===void 0?null:o;var m=s();if(Dl){ur(!0);try{s()}finally{ur(!1)}}return d.memoizedState=[m,o],m},useReducer:function(s,o,d){var m=Nr();if(d!==void 0){var y=d(o);if(Dl){ur(!0);try{d(o)}finally{ur(!1)}}}else y=o;return m.memoizedState=m.baseState=y,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:y},m.queue=s,s=s.dispatch=hO.bind(null,ut,s),[m.memoizedState,s]},useRef:function(s){var o=Nr();return s={current:s},o.memoizedState=s},useState:function(s){s=E1(s);var o=s.queue,d=D3.bind(null,ut,o);return o.dispatch=d,[s.memoizedState,d]},useDebugValue:T1,useDeferredValue:function(s,o){var d=Nr();return w1(d,s,o)},useTransition:function(){var s=E1(!1);return s=N3.bind(null,ut,s.queue,!0,!1),Nr().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,o,d){var m=ut,y=Nr();if(Pt){if(d===void 0)throw Error(r(407));d=d()}else{if(d=o(),en===null)throw Error(r(349));(wt&127)!==0||a3(m,o,d)}y.memoizedState=d;var v={value:d,getSnapshot:o};return y.queue=v,v3(i3.bind(null,m,v,s),[s]),m.flags|=2048,Yo(9,{destroy:void 0},s3.bind(null,m,v,d,o),null),d},useId:function(){var s=Nr(),o=en.identifierPrefix;if(Pt){var d=ss,m=as;d=(m&~(1<<32-Ut(m)-1)).toString(32)+d,o="_"+o+"R_"+d,d=Qd++,0<d&&(o+="H"+d.toString(32)),o+="_"}else d=iO++,o="_"+o+"r_"+d.toString(32)+"_";return s.memoizedState=o},useHostTransitionStatus:C1,useFormState:m3,useActionState:m3,useOptimistic:function(s){var o=Nr();o.memoizedState=o.baseState=s;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=d,o=k1.bind(null,ut,!0,d),d.dispatch=o,[s,o]},useMemoCache:b1,useCacheRefresh:function(){return Nr().memoizedState=fO.bind(null,ut)},useEffectEvent:function(s){var o=Nr(),d={impl:s};return o.memoizedState=d,function(){if((Ht&2)!==0)throw Error(r(440));return d.impl.apply(void 0,arguments)}}},N1={readContext:fr,use:Kd,useCallback:A3,useContext:fr,useEffect:_1,useImperativeHandle:w3,useInsertionEffect:S3,useLayoutEffect:_3,useMemo:C3,useReducer:Wd,useRef:y3,useState:function(){return Wd(Hs)},useDebugValue:T1,useDeferredValue:function(s,o){var d=An();return k3(d,Qt.memoizedState,s,o)},useTransition:function(){var s=Wd(Hs)[0],o=An().memoizedState;return[typeof s=="boolean"?s:Cc(s),o]},useSyncExternalStore:r3,useId:O3,useHostTransitionStatus:C1,useFormState:g3,useActionState:g3,useOptimistic:function(s,o){var d=An();return u3(d,Qt,s,o)},useMemoCache:b1,useCacheRefresh:M3};N1.useEffectEvent=E3;var B3={readContext:fr,use:Kd,useCallback:A3,useContext:fr,useEffect:_1,useImperativeHandle:w3,useInsertionEffect:S3,useLayoutEffect:_3,useMemo:C3,useReducer:v1,useRef:y3,useState:function(){return v1(Hs)},useDebugValue:T1,useDeferredValue:function(s,o){var d=An();return Qt===null?w1(d,s,o):k3(d,Qt.memoizedState,s,o)},useTransition:function(){var s=v1(Hs)[0],o=An().memoizedState;return[typeof s=="boolean"?s:Cc(s),o]},useSyncExternalStore:r3,useId:O3,useHostTransitionStatus:C1,useFormState:b3,useActionState:b3,useOptimistic:function(s,o){var d=An();return Qt!==null?u3(d,Qt,s,o):(d.baseState=s,[s,d.queue.dispatch])},useMemoCache:b1,useCacheRefresh:M3};B3.useEffectEvent=E3;function P1(s,o,d,m){o=s.memoizedState,d=d(m,o),d=d==null?o:h({},o,d),s.memoizedState=d,s.lanes===0&&(s.updateQueue.baseState=d)}var R1={enqueueSetState:function(s,o,d){s=s._reactInternals;var m=la(),y=Ci(m);y.payload=o,d!=null&&(y.callback=d),o=ki(s,y,m),o!==null&&(Vr(o,s,m),_c(o,s,m))},enqueueReplaceState:function(s,o,d){s=s._reactInternals;var m=la(),y=Ci(m);y.tag=1,y.payload=o,d!=null&&(y.callback=d),o=ki(s,y,m),o!==null&&(Vr(o,s,m),_c(o,s,m))},enqueueForceUpdate:function(s,o){s=s._reactInternals;var d=la(),m=Ci(d);m.tag=2,o!=null&&(m.callback=o),o=ki(s,m,d),o!==null&&(Vr(o,s,d),_c(o,s,d))}};function z3(s,o,d,m,y,v,P){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(m,v,P):o.prototype&&o.prototype.isPureReactComponent?!mc(d,m)||!mc(y,v):!0}function F3(s,o,d,m){s=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(d,m),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(d,m),o.state!==s&&R1.enqueueReplaceState(o,o.state,null)}function Il(s,o){var d=o;if("ref"in o){d={};for(var m in o)m!=="ref"&&(d[m]=o[m])}if(s=s.defaultProps){d===o&&(d=h({},d));for(var y in s)d[y]===void 0&&(d[y]=s[y])}return d}function H3(s){Od(s)}function U3(s){console.error(s)}function q3(s){Od(s)}function tf(s,o){try{var d=s.onUncaughtError;d(o.value,{componentStack:o.stack})}catch(m){setTimeout(function(){throw m})}}function $3(s,o,d){try{var m=s.onCaughtError;m(d.value,{componentStack:d.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function O1(s,o,d){return d=Ci(d),d.tag=3,d.payload={element:null},d.callback=function(){tf(s,o)},d}function V3(s){return s=Ci(s),s.tag=3,s}function G3(s,o,d,m){var y=d.type.getDerivedStateFromError;if(typeof y=="function"){var v=m.value;s.payload=function(){return y(v)},s.callback=function(){$3(o,d,m)}}var P=d.stateNode;P!==null&&typeof P.componentDidCatch=="function"&&(s.callback=function(){$3(o,d,m),typeof y!="function"&&(Di===null?Di=new Set([this]):Di.add(this));var D=m.stack;this.componentDidCatch(m.value,{componentStack:D!==null?D:""})})}function pO(s,o,d,m,y){if(d.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(o=d.alternate,o!==null&&zo(o,d,y,!0),d=ra.current,d!==null){switch(d.tag){case 31:case 13:return wa===null?pf():d.alternate===null&&yn===0&&(yn=3),d.flags&=-257,d.flags|=65536,d.lanes=y,m===Ud?d.flags|=16384:(o=d.updateQueue,o===null?d.updateQueue=new Set([m]):o.add(m),rg(s,m,y)),!1;case 22:return d.flags|=65536,m===Ud?d.flags|=16384:(o=d.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([m])},d.updateQueue=o):(d=o.retryQueue,d===null?o.retryQueue=new Set([m]):d.add(m)),rg(s,m,y)),!1}throw Error(r(435,d.tag))}return rg(s,m,y),pf(),!1}if(Pt)return o=ra.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=y,m!==Wm&&(s=Error(r(422),{cause:m}),bc(Ea(s,d)))):(m!==Wm&&(o=Error(r(423),{cause:m}),bc(Ea(o,d))),s=s.current.alternate,s.flags|=65536,y&=-y,s.lanes|=y,m=Ea(m,d),y=O1(s.stateNode,m,y),o1(s,y),yn!==4&&(yn=2)),!1;var v=Error(r(520),{cause:m});if(v=Ea(v,d),jc===null?jc=[v]:jc.push(v),yn!==4&&(yn=2),o===null)return!0;m=Ea(m,d),d=o;do{switch(d.tag){case 3:return d.flags|=65536,s=y&-y,d.lanes|=s,s=O1(d.stateNode,m,s),o1(d,s),!1;case 1:if(o=d.type,v=d.stateNode,(d.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Di===null||!Di.has(v))))return d.flags|=65536,y&=-y,d.lanes|=y,y=V3(y),G3(y,s,d,m),o1(d,y),!1}d=d.return}while(d!==null);return!1}var M1=Error(r(461)),Ln=!1;function hr(s,o,d,m){o.child=s===null?Kv(o,null,d,m):Ml(o,s.child,d,m)}function Y3(s,o,d,m,y){d=d.render;var v=o.ref;if("ref"in m){var P={};for(var D in m)D!=="ref"&&(P[D]=m[D])}else P=m;return Nl(o),m=p1(s,o,d,P,v,y),D=m1(),s!==null&&!Ln?(g1(s,o,y),Us(s,o,y)):(Pt&&D&&Xm(o),o.flags|=1,hr(s,o,m,y),o.child)}function Q3(s,o,d,m,y){if(s===null){var v=d.type;return typeof v=="function"&&!Gm(v)&&v.defaultProps===void 0&&d.compare===null?(o.tag=15,o.type=v,X3(s,o,v,m,y)):(s=Ld(d.type,null,m,o,o.mode,y),s.ref=o.ref,s.return=o,o.child=s)}if(v=s.child,!H1(s,y)){var P=v.memoizedProps;if(d=d.compare,d=d!==null?d:mc,d(P,m)&&s.ref===o.ref)return Us(s,o,y)}return o.flags|=1,s=Ls(v,m),s.ref=o.ref,s.return=o,o.child=s}function X3(s,o,d,m,y){if(s!==null){var v=s.memoizedProps;if(mc(v,m)&&s.ref===o.ref)if(Ln=!1,o.pendingProps=m=v,H1(s,y))(s.flags&131072)!==0&&(Ln=!0);else return o.lanes=s.lanes,Us(s,o,y)}return D1(s,o,d,m,y)}function K3(s,o,d,m){var y=m.children,v=s!==null?s.memoizedState:null;if(s===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((o.flags&128)!==0){if(v=v!==null?v.baseLanes|d:d,s!==null){for(m=o.child=s.child,y=0;m!==null;)y=y|m.lanes|m.childLanes,m=m.sibling;m=y&~v}else m=0,o.child=null;return W3(s,o,v,d,m)}if((d&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},s!==null&&Fd(o,v!==null?v.cachePool:null),v!==null?Jv(o,v):c1(),e3(o);else return m=o.lanes=536870912,W3(s,o,v!==null?v.baseLanes|d:d,d,m)}
vendor: 8,501 bytes, line 49
49else v!==null?(Fd(o,v.cachePool),Jv(o,v),Pi(),o.memoizedState=null):(s!==null&&Fd(o,null),c1(),Pi());return hr(s,o,y,d),o.child}function Pc(s,o){return s!==null&&s.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function W3(s,o,d,m,y){var v=a1();return v=v===null?null:{parent:Dn._currentValue,pool:v},o.memoizedState={baseLanes:d,cachePool:v},s!==null&&Fd(o,null),c1(),e3(o),s!==null&&zo(s,o,m,!0),o.childLanes=y,null}function nf(s,o){return o=af({mode:o.mode,children:o.children},s.mode),o.ref=s.ref,s.child=o,o.return=s,o}function Z3(s,o,d){return Ml(o,s.child,null,d),s=nf(o,o.pendingProps),s.flags|=2,aa(o),o.memoizedState=null,s}function mO(s,o,d){var m=o.pendingProps,y=(o.flags&128)!==0;if(o.flags&=-129,s===null){if(Pt){if(m.mode==="hidden")return s=nf(o,m),o.lanes=536870912,Pc(null,s);if(f1(o),(s=ln)?(s=c5(s,Ta),s=s!==null&&s.data==="&"?s:null,s!==null&&(o.memoizedState={dehydrated:s,treeContext:Si!==null?{id:as,overflow:ss}:null,retryLane:536870912,hydrationErrors:null},d=Iv(s),d.return=o,o.child=d,dr=o,ln=null)):s=null,s===null)throw Ti(o);return o.lanes=536870912,null}return nf(o,m)}var v=s.memoizedState;if(v!==null){var P=v.dehydrated;if(f1(o),y)if(o.flags&256)o.flags&=-257,o=Z3(s,o,d);else if(o.memoizedState!==null)o.child=s.child,o.flags|=128,o=null;else throw Error(r(558));else if(Ln||zo(s,o,d,!1),y=(d&s.childLanes)!==0,Ln||y){if(m=en,m!==null&&(P=Br(m,d),P!==0&&P!==v.retryLane))throw v.retryLane=P,wl(s,P),Vr(m,s,P),M1;pf(),o=Z3(s,o,d)}else s=v.treeContext,ln=Aa(P.nextSibling),dr=o,Pt=!0,_i=null,Ta=!1,s!==null&&Bv(o,s),o=nf(o,m),o.flags|=4096;return o}return s=Ls(s.child,{mode:m.mode,children:m.children}),s.ref=o.ref,o.child=s,s.return=o,s}function rf(s,o){var d=o.ref;if(d===null)s!==null&&s.ref!==null&&(o.flags|=4194816);else{if(typeof d!="function"&&typeof d!="object")throw Error(r(284));(s===null||s.ref!==d)&&(o.flags|=4194816)}}function D1(s,o,d,m,y){return Nl(o),d=p1(s,o,d,m,void 0,y),m=m1(),s!==null&&!Ln?(g1(s,o,y),Us(s,o,y)):(Pt&&m&&Xm(o),o.flags|=1,hr(s,o,d,y),o.child)}function J3(s,o,d,m,y,v){return Nl(o),o.updateQueue=null,d=n3(o,m,d,y),t3(s),m=m1(),s!==null&&!Ln?(g1(s,o,v),Us(s,o,v)):(Pt&&m&&Xm(o),o.flags|=1,hr(s,o,d,v),o.child)}function e6(s,o,d,m,y){if(Nl(o),o.stateNode===null){var v=Io,P=d.contextType;typeof P=="object"&&P!==null&&(v=fr(P)),v=new d(m,v),o.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=R1,o.stateNode=v,v._reactInternals=o,v=o.stateNode,v.props=m,v.state=o.memoizedState,v.refs={},i1(o),P=d.contextType,v.context=typeof P=="object"&&P!==null?fr(P):Io,v.state=o.memoizedState,P=d.getDerivedStateFromProps,typeof P=="function"&&(P1(o,d,P,m),v.state=o.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(P=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),P!==v.state&&R1.enqueueReplaceState(v,v.state,null),wc(o,m,v,y),Tc(),v.state=o.memoizedState),typeof v.componentDidMount=="function"&&(o.flags|=4194308),m=!0}else if(s===null){v=o.stateNode;var D=o.memoizedProps,W=Il(d,D);v.props=W;var fe=v.context,ye=d.contextType;P=Io,typeof ye=="object"&&ye!==null&&(P=fr(ye));var Se=d.getDerivedStateFromProps;ye=typeof Se=="function"||typeof v.getSnapshotBeforeUpdate=="function",D=o.pendingProps!==D,ye||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(D||fe!==P)&&F3(o,v,m,P),Ai=!1;var me=o.memoizedState;v.state=me,wc(o,m,v,y),Tc(),fe=o.memoizedState,D||me!==fe||Ai?(typeof Se=="function"&&(P1(o,d,Se,m),fe=o.memoizedState),(W=Ai||z3(o,d,W,m,me,fe,P))?(ye||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(o.flags|=4194308)):(typeof v.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=m,o.memoizedState=fe),v.props=m,v.state=fe,v.context=P,m=W):(typeof v.componentDidMount=="function"&&(o.flags|=4194308),m=!1)}else{v=o.stateNode,l1(s,o),P=o.memoizedProps,ye=Il(d,P),v.props=ye,Se=o.pendingProps,me=v.context,fe=d.contextType,W=Io,typeof fe=="object"&&fe!==null&&(W=fr(fe)),D=d.getDerivedStateFromProps,(fe=typeof D=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(P!==Se||me!==W)&&F3(o,v,m,W),Ai=!1,me=o.memoizedState,v.state=me,wc(o,m,v,y),Tc();var ge=o.memoizedState;P!==Se||me!==ge||Ai||s!==null&&s.dependencies!==null&&Bd(s.dependencies)?(typeof D=="function"&&(P1(o,d,D,m),ge=o.memoizedState),(ye=Ai||z3(o,d,ye,m,me,ge,W)||s!==null&&s.dependencies!==null&&Bd(s.dependencies))?(fe||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(m,ge,W),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(m,ge,W)),typeof v.componentDidUpdate=="function"&&(o.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof v.componentDidUpdate!="function"||P===s.memoizedProps&&me===s.memoizedState||(o.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||P===s.memoizedProps&&me===s.memoizedState||(o.flags|=1024),o.memoizedProps=m,o.memoizedState=ge),v.props=m,v.state=ge,v.context=W,m=ye):(typeof v.componentDidUpdate!="function"||P===s.memoizedProps&&me===s.memoizedState||(o.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||P===s.memoizedProps&&me===s.memoizedState||(o.flags|=1024),m=!1)}return v=m,rf(s,o),m=(o.flags&128)!==0,v||m?(v=o.stateNode,d=m&&typeof d.getDerivedStateFromError!="function"?null:v.render(),o.flags|=1,s!==null&&m?(o.child=Ml(o,s.child,null,y),o.child=Ml(o,null,d,y)):hr(s,o,d,y),o.memoizedState=v.state,s=o.child):s=Us(s,o,y),s}function t6(s,o,d,m){return Cl(),o.flags|=256,hr(s,o,d,m),o.child}var I1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function L1(s){return{baseLanes:s,cachePool:$v()}}function j1(s,o,d){return s=s!==null?s.childLanes&~d:0,o&&(s|=ia),s}function n6(s,o,d){var m=o.pendingProps,y=!1,v=(o.flags&128)!==0,P;if((P=v)||(P=s!==null&&s.memoizedState===null?!1:(wn.current&2)!==0),P&&(y=!0,o.flags&=-129),P=(o.flags&32)!==0,o.flags&=-33,s===null){if(Pt){if(y?Ni(o):Pi(),(s=ln)?(s=c5(s,Ta),s=s!==null&&s.data!=="&"?s:null,s!==null&&(o.memoizedState={dehydrated:s,treeContext:Si!==null?{id:as,overflow:ss}:null,retryLane:536870912,hydrationErrors:null},d=Iv(s),d.return=o,o.child=d,dr=o,ln=null)):s=null,s===null)throw Ti(o);return yg(s)?o.lanes=32:o.lanes=536870912,null}var D=m.children;return m=m.fallback,y?(Pi(),y=o.mode,D=af({mode:"hidden",children:D},y),m=Al(m,y,d,null),D.return=o,m.return=o,D.sibling=m,o.child=D,m=o.child,m.memoizedState=L1(d),m.childLanes=j1(s,P,d),o.memoizedState=I1,Pc(null,m)):(Ni(o),B1(o,D))}var W=s.memoizedState;if(W!==null&&(D=W.dehydrated,D!==null)){if(v)o.flags&256?(Ni(o),o.flags&=-257,o=z1(s,o,d)):o.memoizedState!==null?(Pi(),o.child=s.child,o.flags|=128,o=null):(Pi(),D=m.fallback,y=o.mode,m=af({mode:"visible",children:m.children},y),D=Al(D,y,d,null),D.flags|=2,m.return=o,D.return=o,m.sibling=D,o.child=m,Ml(o,s.child,null,d),m=o.child,m.memoizedState=L1(d),m.childLanes=j1(s,P,d),o.memoizedState=I1,o=Pc(null,m));else if(Ni(o),yg(D)){if(P=D.nextSibling&&D.nextSibling.dataset,P)var fe=P.dgst;P=fe,m=Error(r(419)),m.stack="",m.digest=P,bc({value:m,source:null,stack:null}),o=z1(s,o,d)}else if(Ln||zo(s,o,d,!1),P=(d&s.childLanes)!==0,Ln||P){if(P=en,P!==null&&(m=Br(P,d),m!==0&&m!==W.retryLane))throw W.retryLane=m,wl(s,m),Vr(P,s,m),M1;bg(D)||pf(),o=z1(s,o,d)}else bg(D)?(o.flags|=192,o.child=s.child,o=null):(s=W.treeContext,ln=Aa(D.nextSibling),dr=o,Pt=!0,_i=null,Ta=!1,s!==null&&Bv(o,s),o=B1(o,m.children),o.flags|=4096);return o}return y?(Pi(),D=m.fallback,y=o.mode,W=s.child,fe=W.sibling,m=Ls(W,{mode:"hidden",children:m.children}),m.subtreeFlags=W.subtreeFlags&65011712,fe!==null?D=Ls(fe,D):(D=Al(D,y,d,null),D.flags|=2),D.return=o,m.return=o,m.sibling=D,o.child=m,Pc(null,m),m=o.child,D=s.child.memoizedState,D===null?D=L1(d):(y=D.cachePool,y!==null?(W=Dn._currentValue,y=y.parent!==W?{parent:W,pool:W}
vendor: 6,870 bytes, line 49
49:y):y=$v(),D={baseLanes:D.baseLanes|d,cachePool:y}),m.memoizedState=D,m.childLanes=j1(s,P,d),o.memoizedState=I1,Pc(s.child,m)):(Ni(o),d=s.child,s=d.sibling,d=Ls(d,{mode:"visible",children:m.children}),d.return=o,d.sibling=null,s!==null&&(P=o.deletions,P===null?(o.deletions=[s],o.flags|=16):P.push(s)),o.child=d,o.memoizedState=null,d)}function B1(s,o){return o=af({mode:"visible",children:o},s.mode),o.return=s,s.child=o}function af(s,o){return s=na(22,s,null,o),s.lanes=0,s}function z1(s,o,d){return Ml(o,s.child,null,d),s=B1(o,o.pendingProps.children),s.flags|=2,o.memoizedState=null,s}function r6(s,o,d){s.lanes|=o;var m=s.alternate;m!==null&&(m.lanes|=o),e1(s.return,o,d)}function F1(s,o,d,m,y,v){var P=s.memoizedState;P===null?s.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:m,tail:d,tailMode:y,treeForkCount:v}:(P.isBackwards=o,P.rendering=null,P.renderingStartTime=0,P.last=m,P.tail=d,P.tailMode=y,P.treeForkCount=v)}function a6(s,o,d){var m=o.pendingProps,y=m.revealOrder,v=m.tail;m=m.children;var P=wn.current,D=(P&2)!==0;if(D?(P=P&1|2,o.flags|=128):P&=1,M(wn,P),hr(s,o,m,d),m=Pt?xc:0,!D&&s!==null&&(s.flags&128)!==0)e:for(s=o.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&r6(s,d,o);else if(s.tag===19)r6(s,d,o);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}switch(y){case"forwards":for(d=o.child,y=null;d!==null;)s=d.alternate,s!==null&&Gd(s)===null&&(y=d),d=d.sibling;d=y,d===null?(y=o.child,o.child=null):(y=d.sibling,d.sibling=null),F1(o,!1,y,d,v,m);break;case"backwards":case"unstable_legacy-backwards":for(d=null,y=o.child,o.child=null;y!==null;){if(s=y.alternate,s!==null&&Gd(s)===null){o.child=y;break}s=y.sibling,y.sibling=d,d=y,y=s}F1(o,!0,d,null,v,m);break;case"together":F1(o,!1,null,null,void 0,m);break;default:o.memoizedState=null}return o.child}function Us(s,o,d){if(s!==null&&(o.dependencies=s.dependencies),Mi|=o.lanes,(d&o.childLanes)===0)if(s!==null){if(zo(s,o,d,!1),(d&o.childLanes)===0)return null}else return null;if(s!==null&&o.child!==s.child)throw Error(r(153));if(o.child!==null){for(s=o.child,d=Ls(s,s.pendingProps),o.child=d,d.return=o;s.sibling!==null;)s=s.sibling,d=d.sibling=Ls(s,s.pendingProps),d.return=o;d.sibling=null}return o.child}function H1(s,o){return(s.lanes&o)!==0?!0:(s=s.dependencies,!!(s!==null&&Bd(s)))}function gO(s,o,d){switch(o.tag){case 3:Ie(o,o.stateNode.containerInfo),wi(o,Dn,s.memoizedState.cache),Cl();break;case 27:case 5:Qe(o);break;case 4:Ie(o,o.stateNode.containerInfo);break;case 10:wi(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,f1(o),null;break;case 13:var m=o.memoizedState;if(m!==null)return m.dehydrated!==null?(Ni(o),o.flags|=128,null):(d&o.child.childLanes)!==0?n6(s,o,d):(Ni(o),s=Us(s,o,d),s!==null?s.sibling:null);Ni(o);break;case 19:var y=(s.flags&128)!==0;if(m=(d&o.childLanes)!==0,m||(zo(s,o,d,!1),m=(d&o.childLanes)!==0),y){if(m)return a6(s,o,d);o.flags|=128}if(y=o.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),M(wn,wn.current),m)break;return null;case 22:return o.lanes=0,K3(s,o,d,o.pendingProps);case 24:wi(o,Dn,s.memoizedState.cache)}return Us(s,o,d)}function s6(s,o,d){if(s!==null)if(s.memoizedProps!==o.pendingProps)Ln=!0;else{if(!H1(s,d)&&(o.flags&128)===0)return Ln=!1,gO(s,o,d);Ln=(s.flags&131072)!==0}else Ln=!1,Pt&&(o.flags&1048576)!==0&&jv(o,xc,o.index);switch(o.lanes=0,o.tag){case 16:e:{var m=o.pendingProps;if(s=Rl(o.elementType),o.type=s,typeof s=="function")Gm(s)?(m=Il(s,m),o.tag=1,o=e6(null,o,s,m,d)):(o.tag=0,o=D1(null,o,s,m,d));else{if(s!=null){var y=s.$$typeof;if(y===z){o.tag=11,o=Y3(null,o,s,m,d);break e}else if(y===L){o.tag=14,o=Q3(null,o,s,m,d);break e}}throw o=ie(s)||s,Error(r(306,o,""))}}return o;case 0:return D1(s,o,o.type,o.pendingProps,d);case 1:return m=o.type,y=Il(m,o.pendingProps),e6(s,o,m,y,d);case 3:e:{if(Ie(o,o.stateNode.containerInfo),s===null)throw Error(r(387));m=o.pendingProps;var v=o.memoizedState;y=v.element,l1(s,o),wc(o,m,null,d);var P=o.memoizedState;if(m=P.cache,wi(o,Dn,m),m!==v.cache&&t1(o,[Dn],d,!0),Tc(),m=P.element,v.isDehydrated)if(v={element:m,isDehydrated:!1,cache:P.cache},o.updateQueue.baseState=v,o.memoizedState=v,o.flags&256){o=t6(s,o,m,d);break e}else if(m!==y){y=Ea(Error(r(424)),o),bc(y),o=t6(s,o,m,d);break e}else{switch(s=o.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(ln=Aa(s.firstChild),dr=o,Pt=!0,_i=null,Ta=!0,d=Kv(o,null,m,d),o.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling}else{if(Cl(),m===y){o=Us(s,o,d);break e}hr(s,o,m,d)}o=o.child}return o;case 26:return rf(s,o),s===null?(d=g5(o.type,null,o.pendingProps,null))?o.memoizedState=d:Pt||(d=o.type,s=o.pendingProps,m=Ef(Re.current).createElement(d),m[cr]=o,m[zr]=s,pr(m,d,s),tr(m),o.stateNode=m):o.memoizedState=g5(o.type,s.memoizedProps,o.pendingProps,s.memoizedState),null;case 27:return Qe(o),s===null&&Pt&&(m=o.stateNode=h5(o.type,o.pendingProps,Re.current),dr=o,Ta=!0,y=ln,Bi(o.type)?(vg=y,ln=Aa(m.firstChild)):ln=y),hr(s,o,o.pendingProps.children,d),rf(s,o),s===null&&(o.flags|=4194304),o.child;case 5:return s===null&&Pt&&((y=m=ln)&&(m=GO(m,o.type,o.pendingProps,Ta),m!==null?(o.stateNode=m,dr=o,ln=Aa(m.firstChild),Ta=!1,y=!0):y=!1),y||Ti(o)),Qe(o),y=o.type,v=o.pendingProps,P=s!==null?s.memoizedProps:null,m=v.children,mg(y,v)?m=null:P!==null&&mg(y,P)&&(o.flags|=32),o.memoizedState!==null&&(y=p1(s,o,lO,null,null,d),Vc._currentValue=y),rf(s,o),hr(s,o,m,d),o.child;case 6:return s===null&&Pt&&((s=d=ln)&&(d=YO(d,o.pendingProps,Ta),d!==null?(o.stateNode=d,dr=o,ln=null,s=!0):s=!1),s||Ti(o)),null;case 13:return n6(s,o,d);case 4:return Ie(o,o.stateNode.containerInfo),m=o.pendingProps,s===null?o.child=Ml(o,null,m,d):hr(s,o,m,d),o.child;case 11:return Y3(s,o,o.type,o.pendingProps,d);case 7:return hr(s,o,o.pendingProps,d),o.child;case 8:return hr(s,o,o.pendingProps.children,d),o.child;case 12:return hr(s,o,o.pendingProps.children,d),o.child;case 10:return m=o.pendingProps,wi(o,o.type,m.value),hr(s,o,m.children,d),o.child;case 9:return y=o.type._context,m=o.pendingProps.children,Nl(o),y=fr(y),m=m(y),o.flags|=1,hr(s,o,m,d),o.child;case 14:return Q3(s,o,o.type,o.pendingProps,d);case 15:return X3(s,o,o.type,o.pendingProps,d);case 19:return a6(s,o,d);case 31:return mO(s,o,d);case 22:return K3(s,o,d,o.pendingProps);case 24:return Nl(o),m=fr(Dn),s===null?(y=a1(),y===null&&(y=en,v=n1(),y.pooledCache=v,v.refCount++,v!==null&&(y.pooledCacheLanes|=d),y=v),o.memoizedState={parent:m,cache:y},i1(o),wi(o,Dn,y)):((s.lanes&d)!==0&&(l1(s,o),wc(o,null,null,d),Tc()),y=s.memoizedState,v=o.memoizedState,y.parent!==m?(y={parent:m,cache:m},o.memoizedState=y,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=y),wi(o,Dn,m)):(m=v.cac
vendor: 6,768 bytes, line 49
49he,wi(o,Dn,m),m!==y.cache&&t1(o,[Dn],d,!0))),hr(s,o,o.pendingProps.children,d),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function qs(s){s.flags|=4}function U1(s,o,d,m,y){if((o=(s.mode&32)!==0)&&(o=!1),o){if(s.flags|=16777216,(y&335544128)===y)if(s.stateNode.complete)s.flags|=8192;else if(O6())s.flags|=8192;else throw Ol=Ud,s1}else s.flags&=-16777217}function i6(s,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!E5(o))if(O6())s.flags|=8192;else throw Ol=Ud,s1}function sf(s,o){o!==null&&(s.flags|=4),s.flags&16384&&(o=s.tag!==22?br():536870912,s.lanes|=o,Wo|=o)}function Rc(s,o){if(!Pt)switch(s.tailMode){case"hidden":o=s.tail;for(var d=null;o!==null;)o.alternate!==null&&(d=o),o=o.sibling;d===null?s.tail=null:d.sibling=null;break;case"collapsed":d=s.tail;for(var m=null;d!==null;)d.alternate!==null&&(m=d),d=d.sibling;m===null?o||s.tail===null?s.tail=null:s.tail.sibling=null:m.sibling=null}}function on(s){var o=s.alternate!==null&&s.alternate.child===s.child,d=0,m=0;if(o)for(var y=s.child;y!==null;)d|=y.lanes|y.childLanes,m|=y.subtreeFlags&65011712,m|=y.flags&65011712,y.return=s,y=y.sibling;else for(y=s.child;y!==null;)d|=y.lanes|y.childLanes,m|=y.subtreeFlags,m|=y.flags,y.return=s,y=y.sibling;return s.subtreeFlags|=m,s.childLanes=d,o}function xO(s,o,d){var m=o.pendingProps;switch(Km(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return on(o),null;case 1:return on(o),null;case 3:return d=o.stateNode,m=null,s!==null&&(m=s.memoizedState.cache),o.memoizedState.cache!==m&&(o.flags|=2048),zs(Dn),Ue(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(s===null||s.child===null)&&(Bo(o)?qs(o):s===null||s.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Zm())),on(o),null;case 26:var y=o.type,v=o.memoizedState;return s===null?(qs(o),v!==null?(on(o),i6(o,v)):(on(o),U1(o,y,null,m,d))):v?v!==s.memoizedState?(qs(o),on(o),i6(o,v)):(on(o),o.flags&=-16777217):(s=s.memoizedProps,s!==m&&qs(o),on(o),U1(o,y,s,m,d)),null;case 27:if(rt(o),d=Re.current,y=o.type,s!==null&&o.stateNode!=null)s.memoizedProps!==m&&qs(o);else{if(!m){if(o.stateNode===null)throw Error(r(166));return on(o),null}s=pe.current,Bo(o)?zv(o):(s=h5(y,m,d),o.stateNode=s,qs(o))}return on(o),null;case 5:if(rt(o),y=o.type,s!==null&&o.stateNode!=null)s.memoizedProps!==m&&qs(o);else{if(!m){if(o.stateNode===null)throw Error(r(166));return on(o),null}if(v=pe.current,Bo(o))zv(o);else{var P=Ef(Re.current);switch(v){case 1:v=P.createElementNS("http://www.w3.org/2000/svg",y);break;case 2:v=P.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;default:switch(y){case"svg":v=P.createElementNS("http://www.w3.org/2000/svg",y);break;case"math":v=P.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;case"script":v=P.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof m.is=="string"?P.createElement("select",{is:m.is}):P.createElement("select"),m.multiple?v.multiple=!0:m.size&&(v.size=m.size);break;default:v=typeof m.is=="string"?P.createElement(y,{is:m.is}):P.createElement(y)}}v[cr]=o,v[zr]=m;e:for(P=o.child;P!==null;){if(P.tag===5||P.tag===6)v.appendChild(P.stateNode);else if(P.tag!==4&&P.tag!==27&&P.child!==null){P.child.return=P,P=P.child;continue}if(P===o)break e;for(;P.sibling===null;){if(P.return===null||P.return===o)break e;P=P.return}P.sibling.return=P.return,P=P.sibling}o.stateNode=v;e:switch(pr(v,y,m),y){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&qs(o)}}return on(o),U1(o,o.type,s===null?null:s.memoizedProps,o.pendingProps,d),null;case 6:if(s&&o.stateNode!=null)s.memoizedProps!==m&&qs(o);else{if(typeof m!="string"&&o.stateNode===null)throw Error(r(166));if(s=Re.current,Bo(o)){if(s=o.stateNode,d=o.memoizedProps,m=null,y=dr,y!==null)switch(y.tag){case 27:case 5:m=y.memoizedProps}s[cr]=o,s=!!(s.nodeValue===d||m!==null&&m.suppressHydrationWarning===!0||n5(s.nodeValue,d)),s||Ti(o,!0)}else s=Ef(s).createTextNode(m),s[cr]=o,o.stateNode=s}return on(o),null;case 31:if(d=o.memoizedState,s===null||s.memoizedState!==null){if(m=Bo(o),d!==null){if(s===null){if(!m)throw Error(r(318));if(s=o.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(557));s[cr]=o}else Cl(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;on(o),s=!1}else d=Zm(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=d),s=!0;if(!s)return o.flags&256?(aa(o),o):(aa(o),null);if((o.flags&128)!==0)throw Error(r(558))}return on(o),null;case 13:if(m=o.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(y=Bo(o),m!==null&&m.dehydrated!==null){if(s===null){if(!y)throw Error(r(318));if(y=o.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[cr]=o}else Cl(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;on(o),y=!1}else y=Zm(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=y),y=!0;if(!y)return o.flags&256?(aa(o),o):(aa(o),null)}return aa(o),(o.flags&128)!==0?(o.lanes=d,o):(d=m!==null,s=s!==null&&s.memoizedState!==null,d&&(m=o.child,y=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(y=m.alternate.memoizedState.cachePool.pool),v=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(v=m.memoizedState.cachePool.pool),v!==y&&(m.flags|=2048)),d!==s&&d&&(o.child.flags|=8192),sf(o,o.updateQueue),on(o),null);case 4:return Ue(),s===null&&cg(o.stateNode.containerInfo),on(o),null;case 10:return zs(o.type),on(o),null;case 19:if(oe(wn),m=o.memoizedState,m===null)return on(o),null;if(y=(o.flags&128)!==0,v=m.rendering,v===null)if(y)Rc(m,!1);else{if(yn!==0||s!==null&&(s.flags&128)!==0)for(s=o.child;s!==null;){if(v=Gd(s),v!==null){for(o.flags|=128,Rc(m,!1),s=v.updateQueue,o.updateQueue=s,sf(o,s),o.subtreeFlags=0,s=d,d=o.child;d!==null;)Dv(d,s),d=d.sibling;return M(wn,wn.current&1|2),Pt&&js(o,m.treeForkCount),o.child}s=s.sibling}m.tail!==null&&Jt()>df&&(o.flags|=128,y=!0,Rc(m,!1),o.lanes=4194304)}else{if(!y)if(s=Gd(v),s!==null){if(o.flags|=128,y=!0,s=s.updateQueue,o.updateQueue=s,sf(o,s),Rc(m,!0),m.tail===null&&m.tailMode==="hidden"&&!v.alternate&&!Pt)return on(o),null}else 2*Jt()-m.renderingStartTime>df&&d!==536870912&&(o.flags|=128,y=!0,Rc(m,!1),o.lanes=4194304);m.isBackwards?(v.sibling=o.child,o.child=v):(s=m.last,s!==null?s.sibling=v:o.child=v,m.last=v)}return m.tail!==null?(s=m.tail,m.rendering=s,m.tail=s.sibling,m.renderingStartTime=Jt(),s.sibling=null,d=wn.current,M(wn,y?d&1|2:d&1),Pt&&js(o,m.treeForkCount),s):(on(o),null);case 22:case 23:return aa(o),d1(),m=o.memoizedState!==null,s!==null?s.memoizedState!==null!==m&&(o.flags|=8192):m&&(
vendor: 4,559 bytes, line 49
49o.flags|=8192),m?(d&536870912)!==0&&(o.flags&128)===0&&(on(o),o.subtreeFlags&6&&(o.flags|=8192)):on(o),d=o.updateQueue,d!==null&&sf(o,d.retryQueue),d=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),m=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),m!==d&&(o.flags|=2048),s!==null&&oe(Pl),null;case 24:return d=null,s!==null&&(d=s.memoizedState.cache),o.memoizedState.cache!==d&&(o.flags|=2048),zs(Dn),on(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function bO(s,o){switch(Km(o),o.tag){case 1:return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 3:return zs(Dn),Ue(),s=o.flags,(s&65536)!==0&&(s&128)===0?(o.flags=s&-65537|128,o):null;case 26:case 27:case 5:return rt(o),null;case 31:if(o.memoizedState!==null){if(aa(o),o.alternate===null)throw Error(r(340));Cl()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 13:if(aa(o),s=o.memoizedState,s!==null&&s.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Cl()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 19:return oe(wn),null;case 4:return Ue(),null;case 10:return zs(o.type),null;case 22:case 23:return aa(o),d1(),s!==null&&oe(Pl),s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 24:return zs(Dn),null;case 25:return null;default:return null}}function l6(s,o){switch(Km(o),o.tag){case 3:zs(Dn),Ue();break;case 26:case 27:case 5:rt(o);break;case 4:Ue();break;case 31:o.memoizedState!==null&&aa(o);break;case 13:aa(o);break;case 19:oe(wn);break;case 10:zs(o.type);break;case 22:case 23:aa(o),d1(),s!==null&&oe(Pl);break;case 24:zs(Dn)}}function Oc(s,o){try{var d=o.updateQueue,m=d!==null?d.lastEffect:null;if(m!==null){var y=m.next;d=y;do{if((d.tag&s)===s){m=void 0;var v=d.create,P=d.inst;m=v(),P.destroy=m}d=d.next}while(d!==y)}}catch(D){Gt(o,o.return,D)}}function Ri(s,o,d){try{var m=o.updateQueue,y=m!==null?m.lastEffect:null;if(y!==null){var v=y.next;m=v;do{if((m.tag&s)===s){var P=m.inst,D=P.destroy;if(D!==void 0){P.destroy=void 0,y=o;var W=d,fe=D;try{fe()}catch(ye){Gt(y,W,ye)}}}m=m.next}while(m!==v)}}catch(ye){Gt(o,o.return,ye)}}function o6(s){var o=s.updateQueue;if(o!==null){var d=s.stateNode;try{Zv(o,d)}catch(m){Gt(s,s.return,m)}}}function u6(s,o,d){d.props=Il(s.type,s.memoizedProps),d.state=s.memoizedState;try{d.componentWillUnmount()}catch(m){Gt(s,o,m)}}function Mc(s,o){try{var d=s.ref;if(d!==null){switch(s.tag){case 26:case 27:case 5:var m=s.stateNode;break;case 30:m=s.stateNode;break;default:m=s.stateNode}typeof d=="function"?s.refCleanup=d(m):d.current=m}}catch(y){Gt(s,o,y)}}function is(s,o){var d=s.ref,m=s.refCleanup;if(d!==null)if(typeof m=="function")try{m()}catch(y){Gt(s,o,y)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof d=="function")try{d(null)}catch(y){Gt(s,o,y)}else d.current=null}function c6(s){var o=s.type,d=s.memoizedProps,m=s.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":d.autoFocus&&m.focus();break e;case"img":d.src?m.src=d.src:d.srcSet&&(m.srcset=d.srcSet)}}catch(y){Gt(s,s.return,y)}}function q1(s,o,d){try{var m=s.stateNode;FO(m,s.type,d,o),m[zr]=o}catch(y){Gt(s,s.return,y)}}function d6(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&Bi(s.type)||s.tag===4}function $1(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||d6(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&Bi(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function V1(s,o,d){var m=s.tag;if(m===5||m===6)s=s.stateNode,o?(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d).insertBefore(s,o):(o=d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,o.appendChild(s),d=d._reactRootContainer,d!=null||o.onclick!==null||(o.onclick=Ds));else if(m!==4&&(m===27&&Bi(s.type)&&(d=s.stateNode,o=null),s=s.child,s!==null))for(V1(s,o,d),s=s.sibling;s!==null;)V1(s,o,d),s=s.sibling}function lf(s,o,d){var m=s.tag;if(m===5||m===6)s=s.stateNode,o?d.insertBefore(s,o):d.appendChild(s);else if(m!==4&&(m===27&&Bi(s.type)&&(d=s.stateNode),s=s.child,s!==null))for(lf(s,o,d),s=s.sibling;s!==null;)lf(s,o,d),s=s.sibling}function f6(s){var o=s.stateNode,d=s.memoizedProps;try{for(var m=s.type,y=o.attributes;y.length;)o.removeAttributeNode(y[0]);pr(o,m,d),o[cr]=s,o[zr]=d}catch(v){Gt(s,s.return,v)}}var $s=!1,jn=!1,G1=!1,h6=typeof WeakSet=="function"?WeakSet:Set,nr=null;
vendor: 5,005 bytes, line 49
49function yO(s,o){if(s=s.containerInfo,hg=kf,s=wv(s),zm(s)){if("selectionStart"in s)var d={start:s.selectionStart,end:s.selectionEnd};else e:{d=(d=s.ownerDocument)&&d.defaultView||window;var m=d.getSelection&&d.getSelection();if(m&&m.rangeCount!==0){d=m.anchorNode;var y=m.anchorOffset,v=m.focusNode;m=m.focusOffset;try{d.nodeType,v.nodeType}catch{d=null;break e}var P=0,D=-1,W=-1,fe=0,ye=0,Se=s,me=null;t:for(;;){for(var ge;Se!==d||y!==0&&Se.nodeType!==3||(D=P+y),Se!==v||m!==0&&Se.nodeType!==3||(W=P+m),Se.nodeType===3&&(P+=Se.nodeValue.length),(ge=Se.firstChild)!==null;)me=Se,Se=ge;for(;;){if(Se===s)break t;if(me===d&&++fe===y&&(D=P),me===v&&++ye===m&&(W=P),(ge=Se.nextSibling)!==null)break;Se=me,me=Se.parentNode}Se=ge}d=D===-1||W===-1?null:{start:D,end:W}}else d=null}d=d||{start:0,end:0}}else d=null;for(pg={focusedElem:s,selectionRange:d},kf=!1,nr=o;nr!==null;)if(o=nr,s=o.child,(o.subtreeFlags&1028)!==0&&s!==null)s.return=o,nr=s;else for(;nr!==null;){switch(o=nr,v=o.alternate,s=o.flags,o.tag){case 0:if((s&4)!==0&&(s=o.updateQueue,s=s!==null?s.events:null,s!==null))for(d=0;d<s.length;d++)y=s[d],y.ref.impl=y.nextImpl;break;case 11:case 15:break;case 1:if((s&1024)!==0&&v!==null){s=void 0,d=o,y=v.memoizedProps,v=v.memoizedState,m=d.stateNode;try{var He=Il(d.type,y);s=m.getSnapshotBeforeUpdate(He,v),m.__reactInternalSnapshotBeforeUpdate=s}catch(Je){Gt(d,d.return,Je)}}break;case 3:if((s&1024)!==0){if(s=o.stateNode.containerInfo,d=s.nodeType,d===9)xg(s);else if(d===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":xg(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(r(163))}if(s=o.sibling,s!==null){s.return=o.return,nr=s;break}nr=o.return}}function p6(s,o,d){var m=d.flags;switch(d.tag){case 0:case 11:case 15:Gs(s,d),m&4&&Oc(5,d);break;case 1:if(Gs(s,d),m&4)if(s=d.stateNode,o===null)try{s.componentDidMount()}catch(P){Gt(d,d.return,P)}else{var y=Il(d.type,o.memoizedProps);o=o.memoizedState;try{s.componentDidUpdate(y,o,s.__reactInternalSnapshotBeforeUpdate)}catch(P){Gt(d,d.return,P)}}m&64&&o6(d),m&512&&Mc(d,d.return);break;case 3:if(Gs(s,d),m&64&&(s=d.updateQueue,s!==null)){if(o=null,d.child!==null)switch(d.child.tag){case 27:case 5:o=d.child.stateNode;break;case 1:o=d.child.stateNode}try{Zv(s,o)}catch(P){Gt(d,d.return,P)}}break;case 27:o===null&&m&4&&f6(d);case 26:case 5:Gs(s,d),o===null&&m&4&&c6(d),m&512&&Mc(d,d.return);break;case 12:Gs(s,d);break;case 31:Gs(s,d),m&4&&x6(s,d);break;case 13:Gs(s,d),m&4&&b6(s,d),m&64&&(s=d.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(d=kO.bind(null,d),QO(s,d))));break;case 22:if(m=d.memoizedState!==null||$s,!m){o=o!==null&&o.memoizedState!==null||jn,y=$s;var v=jn;$s=m,(jn=o)&&!v?Ys(s,d,(d.subtreeFlags&8772)!==0):Gs(s,d),$s=y,jn=v}break;case 30:break;default:Gs(s,d)}}function m6(s){var o=s.alternate;o!==null&&(s.alternate=null,m6(o)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(o=s.stateNode,o!==null&&Sm(o)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var cn=null,Hr=!1;function Vs(s,o,d){for(d=d.child;d!==null;)g6(s,o,d),d=d.sibling}function g6(s,o,d){if(Tn&&typeof Tn.onCommitFiberUnmount=="function")try{Tn.onCommitFiberUnmount(or,d)}catch{}switch(d.tag){case 26:jn||is(d,o),Vs(s,o,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(d=d.stateNode,d.parentNode.removeChild(d));break;case 27:jn||is(d,o);var m=cn,y=Hr;Bi(d.type)&&(cn=d.stateNode,Hr=!1),Vs(s,o,d),Uc(d.stateNode),cn=m,Hr=y;break;case 5:jn||is(d,o);case 6:if(m=cn,y=Hr,cn=null,Vs(s,o,d),cn=m,Hr=y,cn!==null)if(Hr)try{(cn.nodeType===9?cn.body:cn.nodeName==="HTML"?cn.ownerDocument.body:cn).removeChild(d.stateNode)}catch(v){Gt(d,o,v)}else try{cn.removeChild(d.stateNode)}catch(v){Gt(d,o,v)}break;case 18:cn!==null&&(Hr?(s=cn,o5(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,d.stateNode),su(s)):o5(cn,d.stateNode));break;case 4:m=cn,y=Hr,cn=d.stateNode.containerInfo,Hr=!0,Vs(s,o,d),cn=m,Hr=y;break;case 0:case 11:case 14:case 15:Ri(2,d,o),jn||Ri(4,d,o),Vs(s,o,d);break;case 1:jn||(is(d,o),m=d.stateNode,typeof m.componentWillUnmount=="function"&&u6(d,o,m)),Vs(s,o,d);break;case 21:Vs(s,o,d);break;case 22:jn=(m=jn)||d.memoizedState!==null,Vs(s,o,d),jn=m;break;default:Vs(s,o,d)}}function x6(s,o){if(o.memoizedState===null&&(s=o.alternate,s!==null&&(s=s.memoizedState,s!==null))){s=s.dehydrated;try{su(s)}catch(d){Gt(o,o.return,d)}}}function b6(s,o){if(o.memoizedState===null&&(s=o.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{su(s)}catch(d){Gt(o,o.return,d)}}function vO(s){switch(s.tag){case 31:case 13:case 19:var o=s.stateNode;return o===null&&(o=s.stateNode=new h6),o;case 22:return s=s.stateNode,o=s._retryCache,o===null&&(o=s._retryCache=new h6),o;default:throw Error(r(435,s.tag))}}function of(s,o){var d=vO(s);o.forEach(function(m){if(!d.has(m)){d.add(m);var y=NO.bind(null,s,m);m.then(y,y)}})}
vendor: 11,898 bytes, line 49
49function Ur(s,o){var d=o.deletions;if(d!==null)for(var m=0;m<d.length;m++){var y=d[m],v=s,P=o,D=P;e:for(;D!==null;){switch(D.tag){case 27:if(Bi(D.type)){cn=D.stateNode,Hr=!1;break e}break;case 5:cn=D.stateNode,Hr=!1;break e;case 3:case 4:cn=D.stateNode.containerInfo,Hr=!0;break e}D=D.return}if(cn===null)throw Error(r(160));g6(v,P,y),cn=null,Hr=!1,v=y.alternate,v!==null&&(v.return=null),y.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)y6(o,s),o=o.sibling}var Ha=null;function y6(s,o){var d=s.alternate,m=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:Ur(o,s),qr(s),m&4&&(Ri(3,s,s.return),Oc(3,s),Ri(5,s,s.return));break;case 1:Ur(o,s),qr(s),m&512&&(jn||d===null||is(d,d.return)),m&64&&$s&&(s=s.updateQueue,s!==null&&(m=s.callbacks,m!==null&&(d=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=d===null?m:d.concat(m))));break;case 26:var y=Ha;if(Ur(o,s),qr(s),m&512&&(jn||d===null||is(d,d.return)),m&4){var v=d!==null?d.memoizedState:null;if(m=s.memoizedState,d===null)if(m===null)if(s.stateNode===null){e:{m=s.type,d=s.memoizedProps,y=y.ownerDocument||y;t:switch(m){case"title":v=y.getElementsByTagName("title")[0],(!v||v[ic]||v[cr]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=y.createElement(m),y.head.insertBefore(v,y.querySelector("head > title"))),pr(v,m,d),v[cr]=s,tr(v),m=v;break e;case"link":var P=y5("link","href",y).get(m+(d.href||""));if(P){for(var D=0;D<P.length;D++)if(v=P[D],v.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&v.getAttribute("rel")===(d.rel==null?null:d.rel)&&v.getAttribute("title")===(d.title==null?null:d.title)&&v.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){P.splice(D,1);break t}}v=y.createElement(m),pr(v,m,d),y.head.appendChild(v);break;case"meta":if(P=y5("meta","content",y).get(m+(d.content||""))){for(D=0;D<P.length;D++)if(v=P[D],v.getAttribute("content")===(d.content==null?null:""+d.content)&&v.getAttribute("name")===(d.name==null?null:d.name)&&v.getAttribute("property")===(d.property==null?null:d.property)&&v.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&v.getAttribute("charset")===(d.charSet==null?null:d.charSet)){P.splice(D,1);break t}}v=y.createElement(m),pr(v,m,d),y.head.appendChild(v);break;default:throw Error(r(468,m))}v[cr]=s,tr(v),m=v}s.stateNode=m}else v5(y,s.type,s.stateNode);else s.stateNode=b5(y,m,s.memoizedProps);else v!==m?(v===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):v.count--,m===null?v5(y,s.type,s.stateNode):b5(y,m,s.memoizedProps)):m===null&&s.stateNode!==null&&q1(s,s.memoizedProps,d.memoizedProps)}break;case 27:Ur(o,s),qr(s),m&512&&(jn||d===null||is(d,d.return)),d!==null&&m&4&&q1(s,s.memoizedProps,d.memoizedProps);break;case 5:if(Ur(o,s),qr(s),m&512&&(jn||d===null||is(d,d.return)),s.flags&32){y=s.stateNode;try{ko(y,"")}catch(He){Gt(s,s.return,He)}}m&4&&s.stateNode!=null&&(y=s.memoizedProps,q1(s,y,d!==null?d.memoizedProps:y)),m&1024&&(G1=!0);break;case 6:if(Ur(o,s),qr(s),m&4){if(s.stateNode===null)throw Error(r(162));m=s.memoizedProps,d=s.stateNode;try{d.nodeValue=m}catch(He){Gt(s,s.return,He)}}break;case 3:if(Tf=null,y=Ha,Ha=Sf(o.containerInfo),Ur(o,s),Ha=y,qr(s),m&4&&d!==null&&d.memoizedState.isDehydrated)try{su(o.containerInfo)}catch(He){Gt(s,s.return,He)}G1&&(G1=!1,v6(s));break;case 4:m=Ha,Ha=Sf(s.stateNode.containerInfo),Ur(o,s),qr(s),Ha=m;break;case 12:Ur(o,s),qr(s);break;case 31:Ur(o,s),qr(s),m&4&&(m=s.updateQueue,m!==null&&(s.updateQueue=null,of(s,m)));break;case 13:Ur(o,s),qr(s),s.child.flags&8192&&s.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(cf=Jt()),m&4&&(m=s.updateQueue,m!==null&&(s.updateQueue=null,of(s,m)));break;case 22:y=s.memoizedState!==null;var W=d!==null&&d.memoizedState!==null,fe=$s,ye=jn;if($s=fe||y,jn=ye||W,Ur(o,s),jn=ye,$s=fe,qr(s),m&8192)e:for(o=s.stateNode,o._visibility=y?o._visibility&-2:o._visibility|1,y&&(d===null||W||$s||jn||Ll(s)),d=null,o=s;;){if(o.tag===5||o.tag===26){if(d===null){W=d=o;try{if(v=W.stateNode,y)P=v.style,typeof P.setProperty=="function"?P.setProperty("display","none","important"):P.display="none";else{D=W.stateNode;var Se=W.memoizedProps.style,me=Se!=null&&Se.hasOwnProperty("display")?Se.display:null;D.style.display=me==null||typeof me=="boolean"?"":(""+me).trim()}}catch(He){Gt(W,W.return,He)}}}else if(o.tag===6){if(d===null){W=o;try{W.stateNode.nodeValue=y?"":W.memoizedProps}catch(He){Gt(W,W.return,He)}}}else if(o.tag===18){if(d===null){W=o;try{var ge=W.stateNode;y?u5(ge,!0):u5(W.stateNode,!1)}catch(He){Gt(W,W.return,He)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===s)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;d===o&&(d=null),o=o.return}d===o&&(d=null),o.sibling.return=o.return,o=o.sibling}m&4&&(m=s.updateQueue,m!==null&&(d=m.retryQueue,d!==null&&(m.retryQueue=null,of(s,d))));break;case 19:Ur(o,s),qr(s),m&4&&(m=s.updateQueue,m!==null&&(s.updateQueue=null,of(s,m)));break;case 30:break;case 21:break;default:Ur(o,s),qr(s)}}function qr(s){var o=s.flags;if(o&2){try{for(var d,m=s.return;m!==null;){if(d6(m)){d=m;break}m=m.return}if(d==null)throw Error(r(160));switch(d.tag){case 27:var y=d.stateNode,v=$1(s);lf(s,v,y);break;case 5:var P=d.stateNode;d.flags&32&&(ko(P,""),d.flags&=-33);var D=$1(s);lf(s,D,P);break;case 3:case 4:var W=d.stateNode.containerInfo,fe=$1(s);V1(s,fe,W);break;default:throw Error(r(161))}}catch(ye){Gt(s,s.return,ye)}s.flags&=-3}o&4096&&(s.flags&=-4097)}function v6(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var o=s;v6(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),s=s.sibling}}function Gs(s,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)p6(s,o.alternate,o),o=o.sibling}function Ll(s){for(s=s.child;s!==null;){var o=s;switch(o.tag){case 0:case 11:case 14:case 15:Ri(4,o,o.return),Ll(o);break;case 1:is(o,o.return);var d=o.stateNode;typeof d.componentWillUnmount=="function"&&u6(o,o.return,d),Ll(o);break;case 27:Uc(o.stateNode);case 26:case 5:is(o,o.return),Ll(o);break;case 22:o.memoizedState===null&&Ll(o);break;case 30:Ll(o);break;default:Ll(o)}s=s.sibling}}function Ys(s,o,d){for(d=d&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var m=o.alternate,y=s,v=o,P=v.flags;switch(v.tag){case 0:case 11:case 15:Ys(y,v,d),Oc(4,v);break;case 1:if(Ys(y,v,d),m=v,y=m.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(fe){Gt(m,m.return,fe)}if(m=v,y=m.updateQueue,y!==null){var D=m.stateNode;try{var W=y.shared.hiddenCallbacks;if(W!==null)for(y.shared.hiddenCallbacks=null,y=0;y<W.length;y++)Wv(W[y],D)}catch(fe){Gt(m,m.return,fe)}}d&&P&64&&o6(v),Mc(v,v.return);break;case 27:f6(v);case 26:case 5:Ys(y,v,d),d&&m===null&&P&4&&c6(v),Mc(v,v.return);break;case 12:Ys(y,v,d);break;case 31:Ys(y,v,d),d&&P&4&&x6(y,v);break;case 13:Ys(y,v,d),d&&P&4&&b6(y,v);break;case 22:v.memoizedState===null&&Ys(y,v,d),Mc(v,v.return);break;case 30:break;default:Ys(y,v,d)}o=o.sibling}}function Y1(s,o){var d=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),s=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),s!==d&&(s!=null&&s.refCount++,d!=null&&yc(d))}function Q1(s,o){s=null,o.alternate!==null&&(s=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==s&&(o.refCount++,s!=null&&yc(s))}function Ua(s,o,d,m){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)E6(s,o,d,m),o=o.sibling}function E6(s,o,d,m){var y=o.flags;switch(o.tag){case 0:case 11:case 15:Ua(s,o,d,m),y&2048&&Oc(9,o);break;case 1:Ua(s,o,d,m);break;case 3:Ua(s,o,d,m),y&2048&&(s=null,o.alternate!==null&&(s=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==s&&(o.refCount++,s!=null&&yc(s)));break;case 12:if(y&2048){Ua(s,o,d,m),s=o.stateNode;try{var v=o.memoizedProps,P=v.id,D=v.onPostCommit;typeof D=="function"&&D(P,o.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(W){Gt(o,o.return,W)}}else Ua(s,o,d,m);break;case 31:Ua(s,o,d,m);break;case 13:Ua(s,o,d,m);break;case 23:break;case 22:v=o.stateNode,P=o.alternate,o.memoizedState!==null?v._visibility&2?Ua(s,o,d,m):Dc(s,o):v._visibility&2?Ua(s,o,d,m):(v._visibility|=2,Qo(s,o,d,m,(o.subtreeFlags&10256)!==0||!1)),y&2048&&Y1(P,o);break;case 24:Ua(s,o,d,m),y&2048&&Q1(o.alternate,o);break;default:Ua(s,o,d,m)}}function Qo(s,o,d,m,y){for(y=y&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var v=s,P=o,D=d,W=m,fe=P.flags;switch(P.tag){case 0:case 11:case 15:Qo(v,P,D,W,y),Oc(8,P);break;case 23:break;case 22:var ye=P.stateNode;P.memoizedState!==null?ye._visibility&2?Qo(v,P,D,W,y):Dc(v,P):(ye._visibility|=2,Qo(v,P,D,W,y)),y&&fe&2048&&Y1(P.alternate,P);break;case 24:Qo(v,P,D,W,y),y&&fe&2048&&Q1(P.alternate,P);break;default:Qo(v,P,D,W,y)}o=o.sibling}}function Dc(s,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var d=s,m=o,y=m.flags;switch(m.tag){case 22:Dc(d,m),y&2048&&Y1(m.alternate,m);break;case 24:Dc(d,m),y&2048&&Q1(m.alternate,m);break;default:Dc(d,m)}o=o.sibling}}var Ic=8192;function Xo(s,o,d){if(s.subtreeFlags&Ic)for(s=s.child;s!==null;)S6(s,o,d),s=s.sibling}function S6(s,o,d){switch(s.tag){case 26:Xo(s,o,d),s.flags&Ic&&s.memoizedState!==null&&iM(d,Ha,s.memoizedState,s.memoizedProps);break;case 5:Xo(s,o,d);break;case 3:case 4:var m=Ha;Ha=Sf(s.stateNode.containerInfo),Xo(s,o,d),Ha=m;break;case 22:s.memoizedState===null&&(m=s.alternate,m!==null&&m.memoizedState!==null?(m=Ic,Ic=16777216,Xo(s,o,d),Ic=m):Xo(s,o,d));break;default:Xo(s,o,d)}}function _6(s){var o=s.alternate;if(o!==null&&(s=o.child,s!==null)){o.child=null;do o=s.sibling,s.sibling=null,s=o;while(s!==null)}}function Lc(s){var o=s.deletions;if((s.flags&16)!==0){if(o!==null)for(var d=0;d<o.length;d++){var m=o[d];nr=m,w6(m,s)}_6(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)T6(s),s=s.sibling}function T6(s){switch(s.tag){case 0:case 11:case 15:Lc(s),s.flags&2048&&Ri(9,s,s.return);break;case 3:Lc(s);break;case 12:Lc(s);break;case 22:var o=s.stateNode;s.memoizedState!==null&&o._visibility&2&&(s.return===null||s.return.tag!==13)?(o._visibility&=-3,uf(s)):Lc(s);break;default:Lc(s)}}function uf(s){var o=s.deletions;if((s.flags&16)!==0){if(o!==null)for(var d=0;d<o.length;d++){var m=o[d];nr=m,w6(m,s)}_6(s)}for(s=s.child;s!==null;){switch(o=s,o.tag){case 0:case 11:case 15:Ri(8,o,o.return),uf(o);break;case 22:d=o.stateNode,d._visibility&2&&(d._visibility&=-3,uf(o));break;default:uf(o)}s=s.sibling}}function w6(s,o){for(;nr!==null;){var d=nr;switch(d.tag){case 0:case 11:case 15:Ri(8,d,o);break;case 23:case 22:if(d.memoizedState!==null&&d.memoizedState.cachePool!==null){var m=d.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:yc(d.memoizedState.cache)}if(m=d.child,m!==null)m.return=d,nr=m;else e:for(d=s;nr!==null;){m=nr;var y=m.sibling,v=m.return;if(m6(m),m===d){nr=null;break e}if(y!==null){y.return=v,nr=y;break e}nr=v}}}var EO={getCacheForType:function(s){var o=fr(Dn),d=o.data.get(s);return d===void 0&&(d=s(),o.data.set(s,d)),d},cacheSignal:function(){return fr(Dn).controller.signal}},SO=typeof WeakMap=="function"?WeakMap:Map,Ht=0,en=null,St=null,wt=0,Vt=0,sa=null,Oi=!1,Ko=!1,X1=!1,Qs=0,yn=0,Mi=0,jl=0,K1=0,ia=0,Wo=0,jc=null,$r=null,W1=!1,cf=0,A6=0,df=1/0,ff=null,Di=null,Yn=0,Ii=null,Zo=null,Xs=0,Z1=0,J1=null,C6=null,Bc=0,eg=null;function la(){return(Ht&2)!==0&&wt!==0?wt&-wt:H.T!==null?ig():vm()}function k6(){if(ia===0)if((wt&536870912)===0||Pt){var s=vo;vo<<=1,(vo&3932160)===0&&(vo=262144),ia=s}else ia=536870912;return s=ra.current,s!==null&&(s.flags|=32),ia}function Vr(s,o,d){(s===en&&(Vt===2||Vt===9)||s.cancelPendingCommit!==null)&&(Jo(s,0),Li(s,wt,ia,!1)),mn(s,d),((Ht&2)===0||s!==en)&&(s===en&&((Ht&2)===0&&(jl|=d),yn===4&&Li(s,wt,ia,!1)),ls(s))}function N6(s,o,d){if((Ht&6)!==0)throw Error(r(327));var m=!d&&(o&127)===0&&(o&s.expiredLanes)===0||un(s,o),y=m?wO(s,o):ng(s,o,!0),v=m;do{if(y===0){Ko&&!m&&Li(s,o,0,!1);break}
vendor: 22,594 bytes, lines 49-50
49else{if(d=s.current.alternate,v&&!_O(d)){y=ng(s,o,!1),v=!1;continue}if(y===2){if(v=o,s.errorRecoveryDisabledLanes&v)var P=0;else P=s.pendingLanes&-536870913,P=P!==0?P:P&536870912?536870912:0;if(P!==0){o=P;e:{var D=s;y=jc;var W=D.current.memoizedState.isDehydrated;if(W&&(Jo(D,P).flags|=256),P=ng(D,P,!1),P!==2){if(X1&&!W){D.errorRecoveryDisabledLanes|=v,jl|=v,y=4;break e}v=$r,$r=y,v!==null&&($r===null?$r=v:$r.push.apply($r,v))}y=P}if(v=!1,y!==2)continue}}if(y===1){Jo(s,0),Li(s,o,0,!0);break}e:{switch(m=s,v=y,v){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:Li(m,o,ia,!Oi);break e;case 2:$r=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(y=cf+300-Jt(),10<y)){if(Li(m,o,ia,!Oi),at(m,0,!0)!==0)break e;Xs=o,m.timeoutHandle=i5(P6.bind(null,m,d,$r,ff,W1,o,ia,jl,Wo,Oi,v,"Throttled",-0,0),y);break e}P6(m,d,$r,ff,W1,o,ia,jl,Wo,Oi,v,null,-0,0)}}break}while(!0);ls(s)}function P6(s,o,d,m,y,v,P,D,W,fe,ye,Se,me,ge){if(s.timeoutHandle=-1,Se=o.subtreeFlags,Se&8192||(Se&16785408)===16785408){Se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ds},S6(o,v,Se);var He=(v&62914560)===v?cf-Jt():(v&4194048)===v?A6-Jt():0;if(He=lM(Se,He),He!==null){Xs=v,s.cancelPendingCommit=He(B6.bind(null,s,o,v,d,m,y,P,D,W,ye,Se,null,me,ge)),Li(s,v,P,!fe);return}}B6(s,o,v,d,m,y,P,D,W)}function _O(s){for(var o=s;;){var d=o.tag;if((d===0||d===11||d===15)&&o.flags&16384&&(d=o.updateQueue,d!==null&&(d=d.stores,d!==null)))for(var m=0;m<d.length;m++){var y=d[m],v=y.getSnapshot;y=y.value;try{if(!ta(v(),y))return!1}catch{return!1}}if(d=o.child,o.subtreeFlags&16384&&d!==null)d.return=o,o=d;else{if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Li(s,o,d,m){o&=~K1,o&=~jl,s.suspendedLanes|=o,s.pingedLanes&=~o,m&&(s.warmLanes|=o),m=s.expirationTimes;for(var y=o;0<y;){var v=31-Ut(y),P=1<<v;m[v]=-1,y&=~P}d!==0&&vl(s,d,o)}function hf(){return(Ht&6)===0?(zc(0),!1):!0}function tg(){if(St!==null){if(Vt===0)var s=St.return;else s=St,Bs=kl=null,x1(s),qo=null,Ec=0,s=St;for(;s!==null;)l6(s.alternate,s),s=s.return;St=null}}function Jo(s,o){var d=s.timeoutHandle;d!==-1&&(s.timeoutHandle=-1,qO(d)),d=s.cancelPendingCommit,d!==null&&(s.cancelPendingCommit=null,d()),Xs=0,tg(),en=s,St=d=Ls(s.current,null),wt=o,Vt=0,sa=null,Oi=!1,Ko=un(s,o),X1=!1,Wo=ia=K1=jl=Mi=yn=0,$r=jc=null,W1=!1,(o&8)!==0&&(o|=o&32);var m=s.entangledLanes;if(m!==0)for(s=s.entanglements,m&=o;0<m;){var y=31-Ut(m),v=1<<y;o|=s[y],m&=~v}return Qs=o,Md(),d}function R6(s,o){ut=null,H.H=Nc,o===Uo||o===Hd?(o=Yv(),Vt=3):o===s1?(o=Yv(),Vt=4):Vt=o===M1?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,sa=o,St===null&&(yn=1,tf(s,Ea(o,s.current)))}function O6(){var s=ra.current;return s===null?!0:(wt&4194048)===wt?wa===null:(wt&62914560)===wt||(wt&536870912)!==0?s===wa:!1}function M6(){var s=H.H;return H.H=Nc,s===null?Nc:s}function D6(){var s=H.A;return H.A=EO,s}function pf(){yn=4,Oi||(wt&4194048)!==wt&&ra.current!==null||(Ko=!0),(Mi&134217727)===0&&(jl&134217727)===0||en===null||Li(en,wt,ia,!1)}function ng(s,o,d){var m=Ht;Ht|=2;var y=M6(),v=D6();(en!==s||wt!==o)&&(ff=null,Jo(s,o)),o=!1;var P=yn;e:do try{if(Vt!==0&&St!==null){var D=St,W=sa;switch(Vt){case 8:tg(),P=6;break e;case 3:case 2:case 9:case 6:ra.current===null&&(o=!0);var fe=Vt;if(Vt=0,sa=null,eu(s,D,W,fe),d&&Ko){P=0;break e}break;default:fe=Vt,Vt=0,sa=null,eu(s,D,W,fe)}}TO(),P=yn;break}catch(ye){R6(s,ye)}while(!0);return o&&s.shellSuspendCounter++,Bs=kl=null,Ht=m,H.H=y,H.A=v,St===null&&(en=null,wt=0,Md()),P}function TO(){for(;St!==null;)I6(St)}function wO(s,o){var d=Ht;Ht|=2;var m=M6(),y=D6();en!==s||wt!==o?(ff=null,df=Jt()+500,Jo(s,o)):Ko=un(s,o);e:do try{if(Vt!==0&&St!==null){o=St;var v=sa;t:switch(Vt){case 1:Vt=0,sa=null,eu(s,o,v,1);break;case 2:case 9:if(Vv(v)){Vt=0,sa=null,L6(o);break}o=function(){Vt!==2&&Vt!==9||en!==s||(Vt=7),ls(s)},v.then(o,o);break e;case 3:Vt=7;break e;case 4:Vt=5;break e;case 7:Vv(v)?(Vt=0,sa=null,L6(o)):(Vt=0,sa=null,eu(s,o,v,7));break;case 5:var P=null;switch(St.tag){case 26:P=St.memoizedState;case 5:case 27:var D=St;if(P?E5(P):D.stateNode.complete){Vt=0,sa=null;var W=D.sibling;if(W!==null)St=W;else{var fe=D.return;fe!==null?(St=fe,mf(fe)):St=null}break t}}Vt=0,sa=null,eu(s,o,v,5);break;case 6:Vt=0,sa=null,eu(s,o,v,6);break;case 8:tg(),yn=6;break e;default:throw Error(r(462))}}AO();break}catch(ye){R6(s,ye)}while(!0);return Bs=kl=null,H.H=m,H.A=y,Ht=d,St!==null?0:(en=null,wt=0,Md(),yn)}function AO(){for(;St!==null&&!ft();)I6(St)}function I6(s){var o=s6(s.alternate,s,Qs);s.memoizedProps=s.pendingProps,o===null?mf(s):St=o}function L6(s){var o=s,d=o.alternate;switch(o.tag){case 15:case 0:o=J3(d,o,o.pendingProps,o.type,void 0,wt);break;case 11:o=J3(d,o,o.pendingProps,o.type.render,o.ref,wt);break;case 5:x1(o);default:l6(d,o),o=St=Dv(o,Qs),o=s6(d,o,Qs)}s.memoizedProps=s.pendingProps,o===null?mf(s):St=o}function eu(s,o,d,m){Bs=kl=null,x1(o),qo=null,Ec=0;var y=o.return;try{if(pO(s,y,o,d,wt)){yn=1,tf(s,Ea(d,s.current)),St=null;return}}catch(v){if(y!==null)throw St=y,v;yn=1,tf(s,Ea(d,s.current)),St=null;return}o.flags&32768?(Pt||m===1?s=!0:Ko||(wt&536870912)!==0?s=!1:(Oi=s=!0,(m===2||m===9||m===3||m===6)&&(m=ra.current,m!==null&&m.tag===13&&(m.flags|=16384))),j6(o,s)):mf(o)}function mf(s){var o=s;do{if((o.flags&32768)!==0){j6(o,Oi);return}s=o.return;var d=xO(o.alternate,o,Qs);if(d!==null){St=d;return}if(o=o.sibling,o!==null){St=o;return}St=o=s}while(o!==null);yn===0&&(yn=5)}function j6(s,o){do{var d=bO(s.alternate,s);if(d!==null){d.flags&=32767,St=d;return}if(d=s.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!o&&(s=s.sibling,s!==null)){St=s;return}St=s=d}while(s!==null);yn=6,St=null}function B6(s,o,d,m,y,v,P,D,W){s.cancelPendingCommit=null;do gf();while(Yn!==0);if((Ht&6)!==0)throw Error(r(327));if(o!==null){if(o===s.current)throw Error(r(177));if(v=o.lanes|o.childLanes,v|=$m,Lr(s,d,v,P,D,W),s===en&&(St=en=null,wt=0),Zo=o,Ii=s,Xs=d,Z1=v,J1=y,C6=m,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,PO(Ze,function(){return q6(),null})):(s.callbackNode=null,s.callbackPriority=0),m=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||m){m=H.T,H.T=null,y=re.p,re.p=2,P=Ht,Ht|=4;try{yO(s,o,d)}finally{Ht=P,re.p=y,H.T=m}}Yn=1,z6(),F6(),H6()}}function z6(){if(Yn===1){Yn=0;var s=Ii,o=Zo,d=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||d){d=H.T,H.T=null;var m=re.p;re.p=2;var y=Ht;Ht|=4;try{y6(o,s);var v=pg,P=wv(s.containerInfo),D=v.focusedElem,W=v.selectionRange;if(P!==D&&D&&D.ownerDocument&&Tv(D.ownerDocument.documentElement,D)){if(W!==null&&zm(D)){var fe=W.start,ye=W.end;if(ye===void 0&&(ye=fe),"selectionStart"in D)D.selectionStart=fe,D.selectionEnd=Math.min(ye,D.value.length);else{var Se=D.ownerDocument||document,me=Se&&Se.defaultView||window;if(me.getSelection){var ge=me.getSelection(),He=D.textContent.length,Je=Math.min(W.start,He),Kt=W.end===void 0?Je:Math.min(W.end,He);!ge.extend&&Je>Kt&&(P=Kt,Kt=Je,Je=P);var le=_v(D,Je),ae=_v(D,Kt);if(le&&ae&&(ge.rangeCount!==1||ge.anchorNode!==le.node||ge.anchorOffset!==le.offset||ge.focusNode!==ae.node||ge.focusOffset!==ae.offset)){var ce=Se.createRange();ce.setStart(le.node,le.offset),ge.removeAllRanges(),Je>Kt?(ge.addRange(ce),ge.extend(ae.node,ae.offset)):(ce.setEnd(ae.node,ae.offset),ge.addRange(ce))}}}}for(Se=[],ge=D;ge=ge.parentNode;)ge.nodeType===1&&Se.push({element:ge,left:ge.scrollLeft,top:ge.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<Se.length;D++){var Ee=Se[D];Ee.element.scrollLeft=Ee.left,Ee.element.scrollTop=Ee.top}}kf=!!hg,pg=hg=null}finally{Ht=y,re.p=m,H.T=d}}s.current=o,Yn=2}}function F6(){if(Yn===2){Yn=0;var s=Ii,o=Zo,d=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||d){d=H.T,H.T=null;var m=re.p;re.p=2;var y=Ht;Ht|=4;try{p6(s,o.alternate,o)}finally{Ht=y,re.p=m,H.T=d}}Yn=3}}function H6(){if(Yn===4||Yn===3){Yn=0,Yt();var s=Ii,o=Zo,d=Xs,m=C6;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?Yn=5:(Yn=0,Zo=Ii=null,U6(s,s.pendingLanes));var y=s.pendingLanes;if(y===0&&(Di=null),za(d),o=o.stateNode,Tn&&typeof Tn.onCommitFiberRoot=="function")try{Tn.onCommitFiberRoot(or,o,void 0,(o.current.flags&128)===128)}catch{}if(m!==null){o=H.T,y=re.p,re.p=2,H.T=null;try{for(var v=s.onRecoverableError,P=0;P<m.length;P++){var D=m[P];v(D.value,{componentStack:D.stack})}}finally{H.T=o,re.p=y}}(Xs&3)!==0&&gf(),ls(s),y=s.pendingLanes,(d&261930)!==0&&(y&42)!==0?s===eg?Bc++:(Bc=0,eg=s):Bc=0,zc(0)}}function U6(s,o){(s.pooledCacheLanes&=o)===0&&(o=s.pooledCache,o!=null&&(s.pooledCache=null,yc(o)))}function gf(){return z6(),F6(),H6(),q6()}function q6(){if(Yn!==5)return!1;var s=Ii,o=Z1;Z1=0;var d=za(Xs),m=H.T,y=re.p;try{re.p=32>d?32:d,H.T=null,d=J1,J1=null;var v=Ii,P=Xs;if(Yn=0,Zo=Ii=null,Xs=0,(Ht&6)!==0)throw Error(r(331));var D=Ht;if(Ht|=4,T6(v.current),E6(v,v.current,P,d),Ht=D,zc(0,!1),Tn&&typeof Tn.onPostCommitFiberRoot=="function")try{Tn.onPostCommitFiberRoot(or,v)}catch{}return!0}finally{re.p=y,H.T=m,U6(s,o)}}function $6(s,o,d){o=Ea(d,o),o=O1(s.stateNode,o,2),s=ki(s,o,2),s!==null&&(mn(s,2),ls(s))}function Gt(s,o,d){if(s.tag===3)$6(s,s,d);else for(;o!==null;){if(o.tag===3){$6(o,s,d);break}else if(o.tag===1){var m=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Di===null||!Di.has(m))){s=Ea(d,s),d=V3(2),m=ki(o,d,2),m!==null&&(G3(d,m,o,s),mn(m,2),ls(m));break}}o=o.return}}function rg(s,o,d){var m=s.pingCache;if(m===null){m=s.pingCache=new SO;var y=new Set;m.set(o,y)}else y=m.get(o),y===void 0&&(y=new Set,m.set(o,y));y.has(d)||(X1=!0,y.add(d),s=CO.bind(null,s,o,d),o.then(s,s))}function CO(s,o,d){var m=s.pingCache;m!==null&&m.delete(o),s.pingedLanes|=s.suspendedLanes&d,s.warmLanes&=~d,en===s&&(wt&d)===d&&(yn===4||yn===3&&(wt&62914560)===wt&&300>Jt()-cf?(Ht&2)===0&&Jo(s,0):K1|=d,Wo===wt&&(Wo=0)),ls(s)}function V6(s,o){o===0&&(o=br()),s=wl(s,o),s!==null&&(mn(s,o),ls(s))}function kO(s){var o=s.memoizedState,d=0;o!==null&&(d=o.retryLane),V6(s,d)}function NO(s,o){var d=0;switch(s.tag){case 31:case 13:var m=s.stateNode,y=s.memoizedState;y!==null&&(d=y.retryLane);break;case 19:m=s.stateNode;break;case 22:m=s.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(o),V6(s,d)}function PO(s,o){return Ce(s,o)}var xf=null,tu=null,ag=!1,bf=!1,sg=!1,ji=0;function ls(s){s!==tu&&s.next===null&&(tu===null?xf=tu=s:tu=tu.next=s),bf=!0,ag||(ag=!0,OO())}function zc(s,o){if(!sg&&bf){sg=!0;do for(var d=!1,m=xf;m!==null;){if(s!==0){var y=m.pendingLanes;if(y===0)var v=0;else{var P=m.suspendedLanes,D=m.pingedLanes;v=(1<<31-Ut(42|s)+1)-1,v&=y&~(P&~D),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(d=!0,X6(m,v))}else v=wt,v=at(m,m===en?v:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(v&3)===0||un(m,v)||(d=!0,X6(m,v));m=m.next}while(d);sg=!1}}function RO(){G6()}function G6(){bf=ag=!1;var s=0;ji!==0&&UO()&&(s=ji);for(var o=Jt(),d=null,m=xf;m!==null;){var y=m.next,v=Y6(m,o);v===0?(m.next=null,d===null?xf=y:d.next=y,y===null&&(tu=d)):(d=m,(s!==0||(v&3)!==0)&&(bf=!0)),m=y}Yn!==0&&Yn!==5||zc(s),ji!==0&&(ji=0)}function Y6(s,o){for(var d=s.suspendedLanes,m=s.pingedLanes,y=s.expirationTimes,v=s.pendingLanes&-62914561;0<v;){var P=31-Ut(v),D=1<<P,W=y[P];W===-1?((D&d)===0||(D&m)!==0)&&(y[P]=er(D,o)):W<=o&&(s.expiredLanes|=D),v&=~D}if(o=en,d=wt,d=at(s,s===o?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),m=s.callbackNode,d===0||s===o&&(Vt===2||Vt===9)||s.cancelPendingCommit!==null)return m!==null&&m!==null&&xt(m),s.callbackNode=null,s.callbackPriority=0;if((d&3)===0||un(s,d)){if(o=d&-d,o===s.callbackPriority)return o;switch(m!==null&&xt(m),za(d)){case 2:case 8:d=Le;break;case 32:d=Ze;break;case 268435456:d=Et;break;default:d=Ze}return m=Q6.bind(null,s),d=Ce(d,m),s.callbackPriority=o,s.callbackNode=d,o}return m!==null&&m!==null&&xt(m),s.callbackPriority=2,s.callbackNode=null,2}function Q6(s,o){if(Yn!==0&&Yn!==5)return s.callbackNode=null,s.callbackPriority=0,null;var d=s.callbackNode;if(gf()&&s.callbackNode!==d)return null;var m=wt;return m=at(s,s===en?m:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),m===0?null:(N6(s,m,o),Y6(s,Jt()),s.callbackNode!=null&&s.callbackNode===d?Q6.bind(null,s):null)}function X6(s,o){if(gf())return null;N6(s,o,!0)}function OO(){$O(function(){(Ht&6)!==0?Ce(be,RO):G6()})}function ig(){if(ji===0){var s=Fo;s===0&&(s=yo,yo<<=1,(yo&261888)===0&&(yo=256)),ji=s}return ji}function K6(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:wd(""+s)}function W6(s,o){var d=o.ownerDocument.createElement("input");return d.name=o.name,d.value=o.value,s.id&&d.setAttribute("form",s.id),o.parentNode.insertBefore(d,o),s=new FormData(s),d.parentNode.removeChild(d),s}function MO(s,o,d,m,y){if(o==="submit"&&d&&d.stateNode===y){var v=K6((y[zr]||null).action),P=m.submitter;P&&(o=(o=P[zr]||null)?K6(o.formAction):P.getAttribute("formAction"),o!==null&&(v=o,P=null));var D=new Nd("action","action",null,m,y);s.push({event:D,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(ji!==0){var W=P?W6(y,P):new FormData(y);A1(d,{pending:!0,data:W,method:y.method,action:v},null,W)}}else typeof v=="function"&&(D.preventDefault(),W=P?W6(y,P):new FormData(y),A1(d,{pending:!0,data:W,method:y.method,action:v},v,W))},currentTarget:y}]})}}for(var lg=0;lg<qm.length;lg++){var og=qm[lg],DO=og.toLowerCase(),IO=og[0].toUpperCase()+og.slice(1);Fa(DO,"on"+IO)}Fa(kv,"onAnimationEnd"),Fa(Nv,"onAnimationIteration"),Fa(Pv,"onAnimationStart"),Fa("dblclick","onDoubleClick"),Fa("focusin","onFocus"),Fa("focusout","onBlur"),Fa(WR,"onTransitionRun"),Fa(ZR,"onTransitionStart"),Fa(JR,"onTransitionCancel"),Fa(Rv,"onTransitionEnd"),Ao("onMouseEnter",["mouseout","mouseover"]),Ao("onMouseLeave",["mouseout","mouseover"]),Ao("onPointerEnter",["pointerout","pointerover"]),Ao("onPointerLeave",["pointerout","pointerover"]),El("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),El("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),El("onBeforeInput",["compositionend","keypress","textInput","paste"]),El("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),El("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),El("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fc="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(" "),LO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fc));function Z6(s,o){o=(o&4)!==0;for(var d=0;d<s.length;d++){var m=s[d],y=m.event;m=m.listeners;e:{var v=void 0;if(o)for(var P=m.length-1;0<=P;P--){var D=m[P],W=D.instance,fe=D.currentTarget;if(D=D.listener,W!==v&&y.isPropagationStopped())break e;v=D,y.currentTarget=fe;try{v(y)}catch(ye){Od(ye)}y.currentTarget=null,v=W}else for(P=0;P<m.length;P++){if(D=m[P],W=D.instance,fe=D.currentTarget,D=D.listener,W!==v&&y.isPropagationStopped())break e;v=D,y.currentTarget=fe;try{v(y)}catch(ye){Od(ye)}y.currentTarget=null,v=W}}}}function _t(s,o){var d=o[Em];d===void 0&&(d=o[Em]=new Set);var m=s+"__bubble";d.has(m)||(J6(o,s,2,!1),d.add(m))}function ug(s,o,d){var m=0;o&&(m|=4),J6(d,s,m,o)}var yf="_reactListening"+Math.random().toString(36).slice(2);function cg(s){if(!s[yf]){s[yf]=!0,G4.forEach(function(d){d!=="selectionchange"&&(LO.has(d)||ug(d,!1,s),ug(d,!0,s))});var o=s.nodeType===9?s:s.ownerDocument;o===null||o[yf]||(o[yf]=!0,ug("selectionchange",!1,o))}}function J6(s,o,d,m){switch(k5(o)){case 2:var y=cM;break;case 8:y=dM;break;default:y=wg}d=y.bind(null,o,d,s),y=void 0,!Pm||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(y=!0),m?y!==void 0?s.addEventListener(o,d,{capture:!0,passive:y}):s.addEventListener(o,d,!0):y!==void 0?s.addEventListener(o,d,{passive:y}):s.addEventListener(o,d,!1)}function dg(s,o,d,m,y){var v=m;if((o&1)===0&&(o&2)===0&&m!==null)e:for(;;){if(m===null)return;var P=m.tag;if(P===3||P===4){var D=m.stateNode.containerInfo;if(D===y)break;if(P===4)for(P=m.return;P!==null;){var W=P.tag;if((W===3||W===4)&&P.stateNode.containerInfo===y)return;P=P.return}for(;D!==null;){if(P=_o(D),P===null)return;if(W=P.tag,W===5||W===6||W===26||W===27){m=v=P;continue e}D=D.parentNode}}m=m.return}av(function(){var fe=v,ye=km(d),Se=[];e:{var me=Ov.get(s);if(me!==void 0){var ge=Nd,He=s;switch(s){case"keypress":if(Cd(d)===0)break e;case"keydown":case"keyup":ge=NR;break;case"focusin":He="focus",ge=Dm;break;case"focusout":He="blur",ge=Dm;break;case"beforeblur":case"afterblur":ge=Dm;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ge=lv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ge=xR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ge=OR;break;case kv:case Nv:case Pv:ge=vR;break;case Rv:ge=DR;break;case"scroll":case"scrollend":ge=mR;break;case"wheel":ge=LR;break;case"copy":case"cut":case"paste":ge=SR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ge=uv;break;case"toggle":case"beforetoggle":ge=BR}var Je=(o&4)!==0,Kt=!Je&&(s==="scroll"||s==="scrollend"),le=Je?me!==null?me+"Capture":null:me;Je=[];for(var ae=fe,ce;ae!==null;){var Ee=ae;if(ce=Ee.stateNode,Ee=Ee.tag,Ee!==5&&Ee!==26&&Ee!==27||ce===null||le===null||(Ee=oc(ae,le),Ee!=null&&Je.push(Hc(ae,Ee,ce))),Kt)break;ae=ae.return}0<Je.length&&(me=new ge(me,He,null,d,ye),Se.push({event:me,listeners:Je}))}}if((o&7)===0){e:{if(me=s==="mouseover"||s==="pointerover",ge=s==="mouseout"||s==="pointerout",me&&d!==Cm&&(He=d.relatedTarget||d.fromElement)&&(_o(He)||He[So]))break e;if((ge||me)&&(me=ye.window===ye?ye:(me=ye.ownerDocument)?me.defaultView||me.parentWindow:window,ge?(He=d.relatedTarget||d.toElement,ge=fe,He=He?_o(He):null,He!==null&&(Kt=i(He),Je=He.tag,He!==Kt||Je!==5&&Je!==27&&Je!==6)&&(He=null)):(ge=null,He=fe),ge!==He)){if(Je=lv,Ee="onMouseLeave",le="onMouseEnter",ae="mouse",(s==="pointerout"||s==="pointerover")&&(Je=uv,Ee="onPointerLeave",le="onPointerEnter",ae="pointer"),Kt=ge==null?me:lc(ge),ce=He==null?me:lc(He),me=new Je(Ee,ae+"leave",ge,d,ye),me.target=Kt,me.relatedTarget=ce,Ee=null,_o(ye)===fe&&(Je=new Je(le,ae+"enter",He,d,ye),Je.target=ce,Je.relatedTarget=Kt,Ee=Je),Kt=Ee,ge&&He)t:{for(Je=jO,le=ge,ae=He,ce=0,Ee=le;Ee;Ee=Je(Ee))ce++;Ee=0;for(var Xe=ae;Xe;Xe=Je(Xe))Ee++;for(;0<ce-Ee;)le=Je(le),ce--;for(;0<Ee-ce;)ae=Je(ae),Ee--;for(;ce--;){if(le===ae||ae!==null&&le===ae.alternate){Je=le;break t}le=Je(le),ae=Je(ae)}Je=null}else Je=null;ge!==null&&e5(Se,me,ge,Je,!1),He!==null&&Kt!==null&&e5(Se,Kt,He,Je,!0)}}e:{if(me=fe?lc(fe):window,ge=me.nodeName&&me.nodeName.toLowerCase(),ge==="select"||ge==="input"&&me.type==="file")var Lt=xv;else if(mv(me))if(bv)Lt=QR;else{Lt=GR;var Ve=VR}else ge=me.nodeName,!ge||ge.toLowerCase()!=="input"||me.type!=="checkbox"&&me.type!=="radio"?fe&&Am(fe.elementType)&&(Lt=xv):Lt=YR;if(Lt&&(Lt=Lt(s,fe))){gv(Se,Lt,d,ye);break e}Ve&&Ve(s,me,fe),s==="focusout"&&fe&&me.type==="number"&&fe.memoizedProps.value!=null&&wm(me,"number",me.value)}switch(Ve=fe?lc(fe):window,s){case"focusin":(mv(Ve)||Ve.contentEditable==="true")&&(Oo=Ve,Fm=fe,gc=null);break;case"focusout":gc=Fm=Oo=null;break;case"mousedown":Hm=!0;break;case"contextmenu":case"mouseup":case"dragend":Hm=!1,Av(Se,d,ye);break;case"selectionchange":if(KR)break;case"keydown":case"keyup":Av(Se,d,ye)}var pt;if(Lm)e:{switch(s){case"compositionstart":var At="onCompositionStart";break e;case"compositionend":At="onCompositionEnd";break e;case"compositionupdate":At="onCompositionUpdate";break e}At=void 0}else Ro?hv(s,d)&&(At="onCompositionEnd"):s==="keydown"&&d.keyCode===229&&(At="onCompositionStart");At&&(cv&&d.locale!=="ko"&&(Ro||At!=="onCompositionStart"?At==="onCompositionEnd"&&Ro&&(pt=sv()):(Ei=ye,Rm="value"in Ei?Ei.value:Ei.textContent,Ro=!0)),Ve=vf(fe,At),0<Ve.length&&(At=new ov(At,s,null,d,ye),Se.push({event:At,listeners:Ve}),pt?At.data=pt:(pt=pv(d),pt!==null&&(At.data=pt)))),(pt=FR?HR(s,d):UR(s,d))&&(At=vf(fe,"onBeforeInput"),0<At.length&&(Ve=new ov("onBeforeInput","beforeinput",null,d,ye),Se.push({event:Ve,listeners:At}),Ve.data=pt)),MO(Se,s,fe,d,ye)}Z6(Se,o)})}function Hc(s,o,d){return{instance:s,listener:o,currentTarget:d}}function vf(s,o){for(var d=o+"Capture",m=[];s!==null;){var y=s,v=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||v===null||(y=oc(s,d),y!=null&&m.unshift(Hc(s,y,v)),y=oc(s,o),y!=null&&m.push(Hc(s,y,v))),s.tag===3)return m;s=s.return}return[]}function jO(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function e5(s,o,d,m,y){for(var v=o._reactName,P=[];d!==null&&d!==m;){var D=d,W=D.alternate,fe=D.stateNode;if(D=D.tag,W!==null&&W===m)break;D!==5&&D!==26&&D!==27||fe===null||(W=fe,y?(fe=oc(d,v),fe!=null&&P.unshift(Hc(d,fe,W))):y||(fe=oc(d,v),fe!=null&&P.push(Hc(d,fe,W)))),d=d.return}P.length!==0&&s.push({event:o,listeners:P})}var BO=/\r\n?/g,zO=/\u0000|\uFFFD/g;function t5(s){return(typeof s=="string"?s:""+s).replace(BO,`
50`).replace(zO,"")}function n5(s,o){return o=t5(o),t5(s)===o}function Xt(s,o,d,m,y,v){switch(d){case"children":typeof m=="string"?o==="body"||o==="textarea"&&m===""||ko(s,m):(typeof m=="number"||typeof m=="bigint")&&o!=="body"&&ko(s,""+m);break;case"className":_d(s,"class",m);break;case"tabIndex":_d(s,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":_d(s,d,m);break;case"style":nv(s,m,v);break;case"data":if(o!=="object"){_d(s,"data",m);break}case"src":case"href":if(m===""&&(o!=="a"||d!=="href")){s.removeAttribute(d);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){s.removeAttribute(d);break}m=wd(""+m),s.setAttribute(d,m);break;case"action":case"formAction":if(typeof m=="function"){s.setAttribute(d,"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 v=="function"&&(d==="formAction"?(o!=="input"&&Xt(s,o,"n
50ame",y.name,y,null),Xt(s,o,"formEncType",y.formEncType,y,null),Xt(s,o,"formMethod",y.formMethod,y,null),Xt(s,o,"formTarget",y.formTarget,y,null)):(Xt(s,o,"encType",y.encType,y,null),Xt(s,o,"method",y.method,y,null),Xt(s,o,"target",y.target,y,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){s.removeAttribute(d);break}m=wd(""+m),s.setAttribute(d,m);break;case"onClick":m!=null&&(s.onclick=Ds);break;case"onScroll":m!=null&&_t("scroll",s);break;case"onScrollEnd":m!=null&&_t("scrollend",s);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(d=m.__html,d!=null){if(y.children!=null)throw Error(r(60));s.innerHTML=d}}break;case"multiple":s.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":s.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){s.removeAttribute("xlink:href");break}d=wd(""+m),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?s.setAttribute(d,""+m):s.removeAttribute(d);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"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?s.setAttribute(d,""):s.removeAttribute(d);break;case"capture":case"download":m===!0?s.setAttribute(d,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?s.setAttribute(d,m):s.removeAttribute(d);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?s.setAttribute(d,m):s.removeAttribute(d);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?s.removeAttribute(d):s.setAttribute(d,m);break;case"popover":_t("beforetoggle",s),_t("toggle",s),Sd(s,"popover",m);break;case"xlinkActuate":Ms(s,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Ms(s,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Ms(s,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Ms(s,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Ms(s,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Ms(s,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Ms(s,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Ms(s,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Ms(s,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Sd(s,"is",m);break;case"innerText":case"textContent":break;default:(!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=hR.get(d)||d,Sd(s,d,m))}}function fg(s,o,d,m,y,v){switch(d){case"style":nv(s,m,v);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(d=m.__html,d!=null){if(y.children!=null)throw Error(r(60));s.innerHTML=d}}break;case"children":typeof m=="string"?ko(s,m):(typeof m=="number"||typeof m=="bigint")&&ko(s,""+m);break;case"onScroll":m!=null&&_t("scroll",s);break;case"onScrollEnd":m!=null&&_t("scrollend",s);break;case"onClick":m!=null&&(s.onclick=Ds);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Y4.hasOwnProperty(d))e:{if(d[0]==="o"&&d[1]==="n"&&(y=d.endsWith("Capture"),o=d.slice(2,y?d.length-7:void 0),v=s[zr]||null,v=v!=null?v[d]:null,typeof v=="function"&&s.removeEventListener(o,v,y),typeof m=="function")){typeof v!="function"&&v!==null&&(d in s?s[d]=null:s.hasAttribute(d)&&s.removeAttribute(d)),s.addEventListener(o,m,y);break e}d in s?s[d]=m:m===!0?s.setAttribute(d,""):Sd(s,d,m)}}}function pr(s,o,d){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_t("error",s),_t("load",s);var m=!1,y=!1,v;for(v in d)if(d.hasOwnProperty(v)){var P=d[v];if(P!=null)switch(v){case"src":m=!0;break;case"srcSet":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:Xt(s,o,v,P,d,null)}}y&&Xt(s,o,"srcSet",d.srcSet,d,null),m&&Xt(s,o,"src",d.src,d,null);return;case"input":_t("invalid",s);var D=v=P=y=null,W=null,fe=null;for(m in d)if(d.hasOwnProperty(m)){var ye=d[m];if(ye!=null)switch(m){case"name":y=ye;break;case"type":P=ye;break;case"checked":W=ye;break;case"defaultChecked":fe=ye;break;case"value":v=ye;break;case"defaultValue":D=ye;break;case"children":case"dangerouslySetInnerHTML":if(ye!=null)throw Error(r(137,o));break;default:Xt(s,o,m,ye,d,null)}}Z4(s,v,D,W,fe,P,y,!1);return;case"select":_t("invalid",s),m=P=v=null;
vendor: 9,541 bytes, line 50
50for(y in d)if(d.hasOwnProperty(y)&&(D=d[y],D!=null))switch(y){case"value":v=D;break;case"defaultValue":P=D;break;case"multiple":m=D;default:Xt(s,o,y,D,d,null)}o=v,d=P,s.multiple=!!m,o!=null?Co(s,!!m,o,!1):d!=null&&Co(s,!!m,d,!0);return;case"textarea":_t("invalid",s),v=y=m=null;for(P in d)if(d.hasOwnProperty(P)&&(D=d[P],D!=null))switch(P){case"value":m=D;break;case"defaultValue":y=D;break;case"children":v=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(91));break;default:Xt(s,o,P,D,d,null)}ev(s,m,y,v);return;case"option":for(W in d)if(d.hasOwnProperty(W)&&(m=d[W],m!=null))switch(W){case"selected":s.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:Xt(s,o,W,m,d,null)}return;case"dialog":_t("beforetoggle",s),_t("toggle",s),_t("cancel",s),_t("close",s);break;case"iframe":case"object":_t("load",s);break;case"video":case"audio":for(m=0;m<Fc.length;m++)_t(Fc[m],s);break;case"image":_t("error",s),_t("load",s);break;case"details":_t("toggle",s);break;case"embed":case"source":case"link":_t("error",s),_t("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(fe in d)if(d.hasOwnProperty(fe)&&(m=d[fe],m!=null))switch(fe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:Xt(s,o,fe,m,d,null)}return;default:if(Am(o)){for(ye in d)d.hasOwnProperty(ye)&&(m=d[ye],m!==void 0&&fg(s,o,ye,m,d,void 0));return}}for(D in d)d.hasOwnProperty(D)&&(m=d[D],m!=null&&Xt(s,o,D,m,d,null))}function FO(s,o,d,m){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var y=null,v=null,P=null,D=null,W=null,fe=null,ye=null;for(ge in d){var Se=d[ge];if(d.hasOwnProperty(ge)&&Se!=null)switch(ge){case"checked":break;case"value":break;case"defaultValue":W=Se;default:m.hasOwnProperty(ge)||Xt(s,o,ge,null,m,Se)}}for(var me in m){var ge=m[me];if(Se=d[me],m.hasOwnProperty(me)&&(ge!=null||Se!=null))switch(me){case"type":v=ge;break;case"name":y=ge;break;case"checked":fe=ge;break;case"defaultChecked":ye=ge;break;case"value":P=ge;break;case"defaultValue":D=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(r(137,o));break;default:ge!==Se&&Xt(s,o,me,ge,m,Se)}}Tm(s,P,D,W,fe,ye,v,y);return;case"select":ge=P=D=me=null;for(v in d)if(W=d[v],d.hasOwnProperty(v)&&W!=null)switch(v){case"value":break;case"multiple":ge=W;default:m.hasOwnProperty(v)||Xt(s,o,v,null,m,W)}for(y in m)if(v=m[y],W=d[y],m.hasOwnProperty(y)&&(v!=null||W!=null))switch(y){case"value":me=v;break;case"defaultValue":D=v;break;case"multiple":P=v;default:v!==W&&Xt(s,o,y,v,m,W)}o=D,d=P,m=ge,me!=null?Co(s,!!d,me,!1):!!m!=!!d&&(o!=null?Co(s,!!d,o,!0):Co(s,!!d,d?[]:"",!1));return;case"textarea":ge=me=null;for(D in d)if(y=d[D],d.hasOwnProperty(D)&&y!=null&&!m.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:Xt(s,o,D,null,m,y)}for(P in m)if(y=m[P],v=d[P],m.hasOwnProperty(P)&&(y!=null||v!=null))switch(P){case"value":me=y;break;case"defaultValue":ge=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:y!==v&&Xt(s,o,P,y,m,v)}J4(s,me,ge);return;case"option":for(var He in d)if(me=d[He],d.hasOwnProperty(He)&&me!=null&&!m.hasOwnProperty(He))switch(He){case"selected":s.selected=!1;break;default:Xt(s,o,He,null,m,me)}for(W in m)if(me=m[W],ge=d[W],m.hasOwnProperty(W)&&me!==ge&&(me!=null||ge!=null))switch(W){case"selected":s.selected=me&&typeof me!="function"&&typeof me!="symbol";break;default:Xt(s,o,W,me,m,ge)}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 Je in d)me=d[Je],d.hasOwnProperty(Je)&&me!=null&&!m.hasOwnProperty(Je)&&Xt(s,o,Je,null,m,me);for(fe in m)if(me=m[fe],ge=d[fe],m.hasOwnProperty(fe)&&me!==ge&&(me!=null||ge!=null))switch(fe){case"children":case"dangerouslySetInnerHTML":if(me!=null)throw Error(r(137,o));break;default:Xt(s,o,fe,me,m,ge)}return;default:if(Am(o)){for(var Kt in d)me=d[Kt],d.hasOwnProperty(Kt)&&me!==void 0&&!m.hasOwnProperty(Kt)&&fg(s,o,Kt,void 0,m,me);for(ye in m)me=m[ye],ge=d[ye],!m.hasOwnProperty(ye)||me===ge||me===void 0&&ge===void 0||fg(s,o,ye,me,m,ge);return}}for(var le in d)me=d[le],d.hasOwnProperty(le)&&me!=null&&!m.hasOwnProperty(le)&&Xt(s,o,le,null,m,me);for(Se in m)me=m[Se],ge=d[Se],!m.hasOwnProperty(Se)||me===ge||me==null&&ge==null||Xt(s,o,Se,me,m,ge)}function r5(s){switch(s){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function HO(){if(typeof performance.getEntriesByType=="function"){for(var s=0,o=0,d=performance.getEntriesByType("resource"),m=0;m<d.length;m++){var y=d[m],v=y.transferSize,P=y.initiatorType,D=y.duration;if(v&&D&&r5(P)){for(P=0,D=y.responseEnd,m+=1;m<d.length;m++){var W=d[m],fe=W.startTime;if(fe>D)break;var ye=W.transferSize,Se=W.initiatorType;ye&&r5(Se)&&(W=W.responseEnd,P+=ye*(W<D?1:(D-fe)/(W-fe)))}if(--m,o+=8*(v+P)/(y.duration/1e3),s++,10<s)break}}if(0<s)return o/s/1e6}return navigator.connection&&(s=navigator.connection.downlink,typeof s=="number")?s:5}var hg=null,pg=null;function Ef(s){return s.nodeType===9?s:s.ownerDocument}function a5(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function s5(s,o){if(s===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&o==="foreignObject"?0:s}function mg(s,o){return s==="textarea"||s==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var gg=null;function UO(){var s=window.event;return s&&s.type==="popstate"?s===gg?!1:(gg=s,!0):(gg=null,!1)}var i5=typeof setTimeout=="function"?setTimeout:void 0,qO=typeof clearTimeout=="function"?clearTimeout:void 0,l5=typeof Promise=="function"?Promise:void 0,$O=typeof queueMicrotask=="function"?queueMicrotask:typeof l5<"u"?function(s){return l5.resolve(null).then(s).catch(VO)}:i5;function VO(s){setTimeout(function(){throw s})}function Bi(s){return s==="head"}function o5(s,o){var d=o,m=0;do{var y=d.nextSibling;if(s.removeChild(d),y&&y.nodeType===8)if(d=y.data,d==="/$"||d==="/&"){if(m===0){s.removeChild(y),su(o);return}m--}else if(d==="$"||d==="$?"||d==="$~"||d==="$!"||d==="&")m++;else if(d==="html")Uc(s.ownerDocument.documentElement);else if(d==="head"){d=s.ownerDocument.head,Uc(d);for(var v=d.firstChild;v;){var P=v.nextSibling,D=v.nodeName;v[ic]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&v.rel.toLowerCase()==="stylesheet"||d.removeChild(v),v=P}}else d==="body"&&Uc(s.ownerDocument.body);d=y}while(d);su(o)}function u5(s,o){var d=s;s=0;do{var m=d.nextSibling;if(d.nodeType===1?o?(d._stashedDisplay=d.style.display,d.style.display="none"):(d.style.display=d._stashedDisplay||"",d.getAttribute("style")===""&&d.removeAttribute("style")):d.nodeType===3&&(o?(d._stashedText=d.nodeValue,d.nodeValue=""):d.nodeValue=d._stashedText||""),m&&m.nodeType===8)if(d=m.data,d==="/$"){if(s===0)break;s--}else d!=="$"&&d!=="$?"&&d!=="$~"&&d!=="$!"||s++;d=m}while(d)}function xg(s){var o=s.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var d=o;switch(o=o.nextSibling,d.nodeName){case"HTML":case"HEAD":case"BODY":xg(d),Sm(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}s.removeChild(d)}}function GO(s,o,d,m){for(;s.nodeType===1;){var y=d;if(s.nodeName.toLowerCase()!==o.toLowerCase()){if(!m&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(m){if(!s[ic])switch(o){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(v=s.getAttribute("rel"),v==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(v!==y.rel||s.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||s.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||s.getAttribute("title")!==(y.title==null?null:y.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(v=s.getAttribute("src"),(v!==(y.src==null?null:y.src)||s.getAttribute("type")!==(y.type==null?null:y.type)||s.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&v&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(o==="input"&&s.type==="hidden"){var v=y.name==null?null:""+y.name;if(y.type==="hidden"&&s.getAttribute("name")===v)return s}else return s;if(s=Aa(s.nextSibling),s===null)break}return null}function YO(s,o,d){if(o==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!d||(s=Aa(s.nextSibling),s===null))return null;return s}function c5(s,o){for(;s.nodeType!==8;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!o||(s=Aa(s.nextSibling),s===null))return null;return s}function bg(s){return s.data==="$?"||s.data==="$~"}function yg(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState!=="loading"}function QO(s,o){var d=s.ownerDocument;if(s.data==="$~")s._reactRetry=o;else if(s.data!=="$?"||d.readyState!=="loading")o();else{var m=function(){o(),d.removeEventListener("DOMContentLoaded",m)};d.addEventListener("DOMContentLoaded",m),s._reactRetry=m}}function Aa(s){for(;s!=null;s=s.nextSibling){var o=s.nodeType;if(o===1||o===3)break;if(o===8){if(o=s.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;
vendor: 10,217 bytes, line 50
50if(o==="/$"||o==="/&")return null}}return s}var vg=null;function d5(s){s=s.nextSibling;for(var o=0;s;){if(s.nodeType===8){var d=s.data;if(d==="/$"||d==="/&"){if(o===0)return Aa(s.nextSibling);o--}else d!=="$"&&d!=="$!"&&d!=="$?"&&d!=="$~"&&d!=="&"||o++}s=s.nextSibling}return null}function f5(s){s=s.previousSibling;for(var o=0;s;){if(s.nodeType===8){var d=s.data;if(d==="$"||d==="$!"||d==="$?"||d==="$~"||d==="&"){if(o===0)return s;o--}else d!=="/$"&&d!=="/&"||o++}s=s.previousSibling}return null}function h5(s,o,d){switch(o=Ef(d),s){case"html":if(s=o.documentElement,!s)throw Error(r(452));return s;case"head":if(s=o.head,!s)throw Error(r(453));return s;case"body":if(s=o.body,!s)throw Error(r(454));return s;default:throw Error(r(451))}}function Uc(s){for(var o=s.attributes;o.length;)s.removeAttributeNode(o[0]);Sm(s)}var Ca=new Map,p5=new Set;function Sf(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var Ks=re.d;re.d={f:XO,r:KO,D:WO,C:ZO,L:JO,m:eM,X:nM,S:tM,M:rM};function XO(){var s=Ks.f(),o=hf();return s||o}function KO(s){var o=To(s);o!==null&&o.tag===5&&o.type==="form"?R3(o):Ks.r(s)}var nu=typeof document>"u"?null:document;function m5(s,o,d){var m=nu;if(m&&typeof o=="string"&&o){var y=ya(o);y='link[rel="'+s+'"][href="'+y+'"]',typeof d=="string"&&(y+='[crossorigin="'+d+'"]'),p5.has(y)||(p5.add(y),s={rel:s,crossOrigin:d,href:o},m.querySelector(y)===null&&(o=m.createElement("link"),pr(o,"link",s),tr(o),m.head.appendChild(o)))}}function WO(s){Ks.D(s),m5("dns-prefetch",s,null)}function ZO(s,o){Ks.C(s,o),m5("preconnect",s,o)}function JO(s,o,d){Ks.L(s,o,d);var m=nu;if(m&&s&&o){var y='link[rel="preload"][as="'+ya(o)+'"]';o==="image"&&d&&d.imageSrcSet?(y+='[imagesrcset="'+ya(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(y+='[imagesizes="'+ya(d.imageSizes)+'"]')):y+='[href="'+ya(s)+'"]';var v=y;switch(o){case"style":v=ru(s);break;case"script":v=au(s)}Ca.has(v)||(s=h({rel:"preload",href:o==="image"&&d&&d.imageSrcSet?void 0:s,as:o},d),Ca.set(v,s),m.querySelector(y)!==null||o==="style"&&m.querySelector(qc(v))||o==="script"&&m.querySelector($c(v))||(o=m.createElement("link"),pr(o,"link",s),tr(o),m.head.appendChild(o)))}}function eM(s,o){Ks.m(s,o);var d=nu;if(d&&s){var m=o&&typeof o.as=="string"?o.as:"script",y='link[rel="modulepreload"][as="'+ya(m)+'"][href="'+ya(s)+'"]',v=y;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=au(s)}if(!Ca.has(v)&&(s=h({rel:"modulepreload",href:s},o),Ca.set(v,s),d.querySelector(y)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector($c(v)))return}m=d.createElement("link"),pr(m,"link",s),tr(m),d.head.appendChild(m)}}}function tM(s,o,d){Ks.S(s,o,d);var m=nu;if(m&&s){var y=wo(m).hoistableStyles,v=ru(s);o=o||"default";var P=y.get(v);if(!P){var D={loading:0,preload:null};if(P=m.querySelector(qc(v)))D.loading=5;else{s=h({rel:"stylesheet",href:s,"data-precedence":o},d),(d=Ca.get(v))&&Eg(s,d);var W=P=m.createElement("link");tr(W),pr(W,"link",s),W._p=new Promise(function(fe,ye){W.onload=fe,W.onerror=ye}),W.addEventListener("load",function(){D.loading|=1}),W.addEventListener("error",function(){D.loading|=2}),D.loading|=4,_f(P,o,m)}P={type:"stylesheet",instance:P,count:1,state:D},y.set(v,P)}}}function nM(s,o){Ks.X(s,o);var d=nu;if(d&&s){var m=wo(d).hoistableScripts,y=au(s),v=m.get(y);v||(v=d.querySelector($c(y)),v||(s=h({src:s,async:!0},o),(o=Ca.get(y))&&Sg(s,o),v=d.createElement("script"),tr(v),pr(v,"link",s),d.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},m.set(y,v))}}function rM(s,o){Ks.M(s,o);var d=nu;if(d&&s){var m=wo(d).hoistableScripts,y=au(s),v=m.get(y);v||(v=d.querySelector($c(y)),v||(s=h({src:s,async:!0,type:"module"},o),(o=Ca.get(y))&&Sg(s,o),v=d.createElement("script"),tr(v),pr(v,"link",s),d.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},m.set(y,v))}}function g5(s,o,d,m){var y=(y=Re.current)?Sf(y):null;if(!y)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof d.precedence=="string"&&typeof d.href=="string"?(o=ru(d.href),d=wo(y).hoistableStyles,m=d.get(o),m||(m={type:"style",instance:null,count:0,state:null},d.set(o,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(d.rel==="stylesheet"&&typeof d.href=="string"&&typeof d.precedence=="string"){s=ru(d.href);var v=wo(y).hoistableStyles,P=v.get(s);if(P||(y=y.ownerDocument||y,P={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(s,P),(v=y.querySelector(qc(s)))&&!v._p&&(P.instance=v,P.state.loading=5),Ca.has(s)||(d={rel:"preload",as:"style",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy},Ca.set(s,d),v||aM(y,s,d,P.state))),o&&m===null)throw Error(r(528,""));return P}if(o&&m!==null)throw Error(r(529,""));return null;case"script":return o=d.async,d=d.src,typeof d=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=au(d),d=wo(y).hoistableScripts,m=d.get(o),m||(m={type:"script",instance:null,count:0,state:null},d.set(o,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function ru(s){return'href="'+ya(s)+'"'}function qc(s){return'link[rel="stylesheet"]['+s+"]"}function x5(s){return h({},s,{"data-precedence":s.precedence,precedence:null})}function aM(s,o,d,m){s.querySelector('link[rel="preload"][as="style"]['+o+"]")?m.loading=1:(o=s.createElement("link"),m.preload=o,o.addEventListener("load",function(){return m.loading|=1}),o.addEventListener("error",function(){return m.loading|=2}),pr(o,"link",d),tr(o),s.head.appendChild(o))}function au(s){return'[src="'+ya(s)+'"]'}function $c(s){return"script[async]"+s}function b5(s,o,d){if(o.count++,o.instance===null)switch(o.type){case"style":var m=s.querySelector('style[data-href~="'+ya(d.href)+'"]');if(m)return o.instance=m,tr(m),m;var y=h({},d,{"data-href":d.href,"data-precedence":d.precedence,href:null,precedence:null});return m=(s.ownerDocument||s).createElement("style"),tr(m),pr(m,"style",y),_f(m,d.precedence,s),o.instance=m;case"stylesheet":y=ru(d.href);var v=s.querySelector(qc(y));if(v)return o.state.loading|=4,o.instance=v,tr(v),v;m=x5(d),(y=Ca.get(y))&&Eg(m,y),v=(s.ownerDocument||s).createElement("link"),tr(v);var P=v;return P._p=new Promise(function(D,W){P.onload=D,P.onerror=W}),pr(v,"link",m),o.state.loading|=4,_f(v,d.precedence,s),o.instance=v;case"script":return v=au(d.src),(y=s.querySelector($c(v)))?(o.instance=y,tr(y),y):(m=d,(y=Ca.get(v))&&(m=h({},d),Sg(m,y)),s=s.ownerDocument||s,y=s.createElement("script"),tr(y),pr(y,"link",m),s.head.appendChild(y),o.instance=y);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(m=o.instance,o.state.loading|=4,_f(m,d.precedence,s));return o.instance}function _f(s,o,d){for(var m=d.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=m.length?m[m.length-1]:null,v=y,P=0;P<m.length;P++){var D=m[P];if(D.dataset.precedence===o)v=D;else if(v!==y)break}v?v.parentNode.insertBefore(s,v.nextSibling):(o=d.nodeType===9?d.head:d,o.insertBefore(s,o.firstChild))}function Eg(s,o){s.crossOrigin==null&&(s.crossOrigin=o.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=o.referrerPolicy),s.title==null&&(s.title=o.title)}function Sg(s,o){s.crossOrigin==null&&(s.crossOrigin=o.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=o.referrerPolicy),s.integrity==null&&(s.integrity=o.integrity)}var Tf=null;function y5(s,o,d){if(Tf===null){var m=new Map,y=Tf=new Map;y.set(d,m)}else y=Tf,m=y.get(d),m||(m=new Map,y.set(d,m));if(m.has(s))return m;for(m.set(s,null),d=d.getElementsByTagName(s),y=0;y<d.length;y++){var v=d[y];if(!(v[ic]||v[cr]||s==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var P=v.getAttribute(o)||"";P=s+P;var D=m.get(P);D?D.push(v):m.set(P,[v])}}return m}function v5(s,o,d){s=s.ownerDocument||s,s.head.insertBefore(d,o==="title"?s.querySelector("head > title"):null)}function sM(s,o,d){if(d===1||o.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return s=o.disabled,typeof o.precedence=="string"&&s==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function E5(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function iM(s,o,d,m){if(d.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(d.state.loading&4)===0){if(d.instance===null){var y=ru(m.href),v=o.querySelector(qc(y));if(v){o=v._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(s.count++,s=wf.bind(s),o.then(s,s)),d.state.loading|=4,d.instance=v,tr(v);return}v=o.ownerDocument||o,m=x5(m),(y=Ca.get(y))&&Eg(m,y),v=v.createElement("link"),tr(v);var P=v;P._p=new Promise(function(D,W){P.onload=D,P.onerror=W}),pr(v,"link",m),d.instance=v}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(d,o),(o=d.state.preload)&&(d.state.loading&3)===0&&(s.count++,d=wf.bind(s),o.addEventListener("load",d),o.addEventListener("error",d))}}var _g=0;function lM(s,o){return s.stylesheets&&s.count===0&&Cf(s,s.stylesheets),0<s.count||0<s.imgCount?function(d){var m=setTimeout(function(){if(s.stylesheets&&Cf(s,s.stylesheets),s.unsuspend){var v=s.unsuspend;s.unsuspend=null,v()}},6e4+o);0<s.imgBytes&&_g===0&&(_g=62500*HO());var y=setTimeout(function(){if(s.waitingForImages=!1,s.count===0&&(s.stylesheets&&Cf(s,s.stylesheets),s.unsuspend)){var v=s.unsuspend;s.unsuspend=null,v()}},(s.imgBytes>_g?50:800)+o);return s.unsuspend=d,function(){s.unsuspend=null,clearTimeout(m),clearTimeout(y)}}:null}function wf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Cf(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;
vendor: 12,616 bytes, line 50
50this.unsuspend=null,s()}}}var Af=null;function Cf(s,o){s.stylesheets=null,s.unsuspend!==null&&(s.count++,Af=new Map,o.forEach(oM,s),Af=null,wf.call(s))}function oM(s,o){if(!(o.state.loading&4)){var d=Af.get(s);if(d)var m=d.get(null);else{d=new Map,Af.set(s,d);for(var y=s.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<y.length;v++){var P=y[v];(P.nodeName==="LINK"||P.getAttribute("media")!=="not all")&&(d.set(P.dataset.precedence,P),m=P)}m&&d.set(null,m)}y=o.instance,P=y.getAttribute("data-precedence"),v=d.get(P)||m,v===m&&d.set(null,y),d.set(P,y),this.count++,m=wf.bind(this),y.addEventListener("load",m),y.addEventListener("error",m),v?v.parentNode.insertBefore(y,v.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(y,s.firstChild)),o.state.loading|=4}}var Vc={$$typeof:R,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function uM(s,o,d,m,y,v,P,D,W){this.tag=1,this.containerInfo=s,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=yi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yi(0),this.hiddenUpdates=yi(null),this.identifierPrefix=m,this.onUncaughtError=y,this.onCaughtError=v,this.onRecoverableError=P,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=W,this.incompleteTransitions=new Map}function S5(s,o,d,m,y,v,P,D,W,fe,ye,Se){return s=new uM(s,o,d,P,W,fe,ye,Se,D),o=1,v===!0&&(o|=24),v=na(3,null,null,o),s.current=v,v.stateNode=s,o=n1(),o.refCount++,s.pooledCache=o,o.refCount++,v.memoizedState={element:m,isDehydrated:d,cache:o},i1(v),s}function _5(s){return s?(s=Io,s):Io}function T5(s,o,d,m,y,v){y=_5(y),m.context===null?m.context=y:m.pendingContext=y,m=Ci(o),m.payload={element:d},v=v===void 0?null:v,v!==null&&(m.callback=v),d=ki(s,m,o),d!==null&&(Vr(d,s,o),_c(d,s,o))}function w5(s,o){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var d=s.retryLane;s.retryLane=d!==0&&d<o?d:o}}function Tg(s,o){w5(s,o),(s=s.alternate)&&w5(s,o)}function A5(s){if(s.tag===13||s.tag===31){var o=wl(s,67108864);o!==null&&Vr(o,s,67108864),Tg(s,67108864)}}function C5(s){if(s.tag===13||s.tag===31){var o=la();o=Eo(o);var d=wl(s,o);d!==null&&Vr(d,s,o),Tg(s,o)}}var kf=!0;function cM(s,o,d,m){var y=H.T;H.T=null;var v=re.p;try{re.p=2,wg(s,o,d,m)}finally{re.p=v,H.T=y}}function dM(s,o,d,m){var y=H.T;H.T=null;var v=re.p;try{re.p=8,wg(s,o,d,m)}finally{re.p=v,H.T=y}}function wg(s,o,d,m){if(kf){var y=Ag(m);if(y===null)dg(s,o,m,Nf,d),N5(s,m);else if(hM(y,s,o,d,m))m.stopPropagation();else if(N5(s,m),o&4&&-1<fM.indexOf(s)){for(;y!==null;){var v=To(y);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var P=rs(v.pendingLanes);if(P!==0){var D=v;for(D.pendingLanes|=2,D.entangledLanes|=2;P;){var W=1<<31-Ut(P);D.entanglements[1]|=W,P&=~W}ls(v),(Ht&6)===0&&(df=Jt()+500,zc(0))}}break;case 31:case 13:D=wl(v,2),D!==null&&Vr(D,v,2),hf(),Tg(v,2)}if(v=Ag(m),v===null&&dg(s,o,m,Nf,d),v===y)break;y=v}y!==null&&m.stopPropagation()}else dg(s,o,m,null,d)}}function Ag(s){return s=km(s),Cg(s)}var Nf=null;function Cg(s){if(Nf=null,s=_o(s),s!==null){var o=i(s);if(o===null)s=null;else{var d=o.tag;if(d===13){if(s=l(o),s!==null)return s;s=null}else if(d===31){if(s=u(o),s!==null)return s;s=null}else if(d===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;s=null}else o!==s&&(s=null)}}return Nf=s,null}function k5(s){switch(s){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(xa()){case be:return 2;case Le:return 8;case Ze:case ht:return 32;case Et:return 268435456;default:return 32}default:return 32}}var kg=!1,zi=null,Fi=null,Hi=null,Gc=new Map,Yc=new Map,Ui=[],fM="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 N5(s,o){switch(s){case"focusin":case"focusout":zi=null;break;case"dragenter":case"dragleave":Fi=null;break;case"mouseover":case"mouseout":Hi=null;break;case"pointerover":case"pointerout":Gc.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yc.delete(o.pointerId)}}function Qc(s,o,d,m,y,v){return s===null||s.nativeEvent!==v?(s={blockedOn:o,domEventName:d,eventSystemFlags:m,nativeEvent:v,targetContainers:[y]},o!==null&&(o=To(o),o!==null&&A5(o)),s):(s.eventSystemFlags|=m,o=s.targetContainers,y!==null&&o.indexOf(y)===-1&&o.push(y),s)}function hM(s,o,d,m,y){switch(o){case"focusin":return zi=Qc(zi,s,o,d,m,y),!0;case"dragenter":return Fi=Qc(Fi,s,o,d,m,y),!0;case"mouseover":return Hi=Qc(Hi,s,o,d,m,y),!0;case"pointerover":var v=y.pointerId;return Gc.set(v,Qc(Gc.get(v)||null,s,o,d,m,y)),!0;case"gotpointercapture":return v=y.pointerId,Yc.set(v,Qc(Yc.get(v)||null,s,o,d,m,y)),!0}return!1}function P5(s){var o=_o(s.target);if(o!==null){var d=i(o);if(d!==null){if(o=d.tag,o===13){if(o=l(d),o!==null){s.blockedOn=o,$4(s.priority,function(){C5(d)});return}}else if(o===31){if(o=u(d),o!==null){s.blockedOn=o,$4(s.priority,function(){C5(d)});return}}else if(o===3&&d.stateNode.current.memoizedState.isDehydrated){s.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Pf(s){if(s.blockedOn!==null)return!1;for(var o=s.targetContainers;0<o.length;){var d=Ag(s.nativeEvent);if(d===null){d=s.nativeEvent;var m=new d.constructor(d.type,d);Cm=m,d.target.dispatchEvent(m),Cm=null}else return o=To(d),o!==null&&A5(o),s.blockedOn=d,!1;o.shift()}return!0}function R5(s,o,d){Pf(s)&&d.delete(o)}function pM(){kg=!1,zi!==null&&Pf(zi)&&(zi=null),Fi!==null&&Pf(Fi)&&(Fi=null),Hi!==null&&Pf(Hi)&&(Hi=null),Gc.forEach(R5),Yc.forEach(R5)}function Rf(s,o){s.blockedOn===o&&(s.blockedOn=null,kg||(kg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,pM)))}var Of=null;function O5(s){Of!==s&&(Of=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Of===s&&(Of=null);for(var o=0;o<s.length;o+=3){var d=s[o],m=s[o+1],y=s[o+2];if(typeof m!="function"){if(Cg(m||d)===null)continue;break}var v=To(d);v!==null&&(s.splice(o,3),o-=3,A1(v,{pending:!0,data:y,method:d.method,action:m},m,y))}}))}function su(s){function o(W){return Rf(W,s)}zi!==null&&Rf(zi,s),Fi!==null&&Rf(Fi,s),Hi!==null&&Rf(Hi,s),Gc.forEach(o),Yc.forEach(o);for(var d=0;d<Ui.length;d++){var m=Ui[d];m.blockedOn===s&&(m.blockedOn=null)}for(;0<Ui.length&&(d=Ui[0],d.blockedOn===null);)P5(d),d.blockedOn===null&&Ui.shift();if(d=(s.ownerDocument||s).$$reactFormReplay,d!=null)for(m=0;m<d.length;m+=3){var y=d[m],v=d[m+1],P=y[zr]||null;if(typeof v=="function")P||O5(d);else if(P){var D=null;if(v&&v.hasAttribute("formAction")){if(y=v,P=v[zr]||null)D=P.formAction;else if(Cg(y)!==null)continue}else D=P.action;typeof D=="function"?d[m+1]=D:(d.splice(m,3),m-=3),O5(d)}}}function M5(){function s(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(P){return y=P})},focusReset:"manual",scroll:"manual"})}function o(){y!==null&&(y(),y=null),m||setTimeout(d,20)}function d(){if(!m&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,y=null;return navigation.addEventListener("navigate",s),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(d,100),function(){m=!0,navigation.removeEventListener("navigate",s),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),y!==null&&(y(),y=null)}}}function Ng(s){this._internalRoot=s}Mf.prototype.render=Ng.prototype.render=function(s){var o=this._internalRoot;if(o===null)throw Error(r(409));var d=o.current,m=la();T5(d,m,s,o,null,null)},Mf.prototype.unmount=Ng.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var o=s.containerInfo;T5(s.current,2,null,s,null,null),hf(),o[So]=null}};function Mf(s){this._internalRoot=s}Mf.prototype.unstable_scheduleHydration=function(s){if(s){var o=vm();s={blockedOn:null,target:s,priority:o};for(var d=0;d<Ui.length&&o!==0&&o<Ui[d].priority;d++);Ui.splice(d,0,s),d===0&&P5(s)}};var D5=t.version;if(D5!=="19.2.1")throw Error(r(527,D5,"19.2.1"));re.findDOMNode=function(s){var o=s._reactInternals;if(o===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=f(o),s=s!==null?g(s):null,s=s===null?null:s.stateNode,s};var mM={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Df=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Df.isDisabled&&Df.supportsFiber)try{or=Df.inject(mM),Tn=Df}catch{}}return Wc.createRoot=function(s,o){if(!a(s))throw Error(r(299));var d=!1,m="",y=H3,v=U3,P=q3;return o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(v=o.onCaughtError),o.onRecoverableError!==void 0&&(P=o.onRecoverableError)),o=S5(s,1,!1,null,null,d,m,null,y,v,P,M5),s[So]=o.current,cg(s),new Ng(o)},Wc.hydrateRoot=function(s,o,d){if(!a(s))throw Error(r(299));var m=!1,y="",v=H3,P=U3,D=q3,W=null;return d!=null&&(d.unstable_strictMode===!0&&(m=!0),d.identifierPrefix!==void 0&&(y=d.identifierPrefix),d.onUncaughtError!==void 0&&(v=d.onUncaughtError),d.onCaughtError!==void 0&&(P=d.onCaughtError),d.onRecoverableError!==void 0&&(D=d.onRecoverableError),d.formState!==void 0&&(W=d.formState)),o=S5(s,1,!0,o,d??null,m,y,W,v,P,D,M5),o.context=_5(null),d=o.current,m=la(),m=Eo(m),y=Ci(m),y.callback=null,ki(d,y,m),d=m,o.current.lanes=d,mn(o,d),ls(o),s[So]=o.current,cg(s),new Mf(o)},Wc.version="19.2.1",Wc}var i8;function PI(){if(i8)return Lg.exports;i8=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(),Lg.exports=NI(),Lg.exports}var RI=PI(),OI=(function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(t,n){this.keyToValue.set(t,n),this.valueToKey.set(n,t)},e.prototype.getByKey=function(t){return this.keyToValue.get(t)},e.prototype.getByValue=function(t){return this.valueToKey.get(t)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e})(),G_=(function(){function e(t){this.generateIdentifier=t,this.kv=new OI}return e.prototype.register=function(t,n){this.kv.getByValue(t)||(n||(n=this.generateIdentifier(t)),this.kv.set(n,t))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(t){return this.kv.getByValue(t)},e.prototype.getValue=function(t){return this.kv.getByKey(t)},e})(),MI=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}
50t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),DI=(function(e){MI(t,e);function t(){var n=e.call(this,function(r){return r.name})||this;return n.classToAllowedProps=new Map,n}return t.prototype.register=function(n,r){typeof r=="object"?(r.allowProps&&this.classToAllowedProps.set(n,r.allowProps),e.prototype.register.call(this,n,r.identifier)):e.prototype.register.call(this,n,r)},t.prototype.getAllowedProps=function(n){return this.classToAllowedProps.get(n)},t})(G_),II=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,i=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(u){l={error:u}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return i};function LI(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function jI(e,t){var n=LI(e);if("find"in n)return n.find(t);for(var r=n,a=0;a<r.length;a++){var i=r[a];if(t(i))return i}}function Ou(e,t){Object.entries(e).forEach(function(n){var r=II(n,2),a=r[0],i=r[1];return t(i,a)})}function yh(e,t){return e.indexOf(t)!==-1}function l8(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var BI=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return jI(this.transfomers,function(n){return n.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),zI=function(e){return Object.prototype.toString.call(e).slice(8,-1)},Y_=function(e){return typeof e>"u"},FI=function(e){return e===null},M0=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},lx=function(e){return M0(e)&&Object.keys(e).length===0},ll=function(e){return Array.isArray(e)},HI=function(e){return typeof e=="string"},UI=function(e){return typeof e=="number"&&!isNaN(e)},qI=function(e){return typeof e=="boolean"},$I=function(e){return e instanceof RegExp},D0=function(e){return e instanceof Map},I0=function(e){return e instanceof Set},Q_=function(e){return zI(e)==="Symbol"},VI=function(e){return e instanceof Date&&!isNaN(e.valueOf())},GI=function(e){return e instanceof Error},o8=function(e){return typeof e=="number"&&isNaN(e)},YI=function(e){return qI(e)||FI(e)||Y_(e)||UI(e)||HI(e)||Q_(e)},QI=function(e){return typeof e=="bigint"},XI=function(e){return e===1/0||e===-1/0},KI=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},WI=function(e){return e instanceof URL},X_=function(e){return e.replace(/\./g,"\\.")},Fg=function(e){return e.map(String).map(X_).join(".")},g0=function(e){for(var t=[],n="",r=0;r<e.length;r++){var a=e.charAt(r),i=a==="\\"&&e.charAt(r+1)===".";if(i){n+=".",r++;continue}var l=a===".";if(l){t.push(n),n="";continue}n+=a}var u=n;return t.push(u),t},ox=function(){return ox=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ox.apply(this,arguments)},ux=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,i=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(u){l={error:u}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return i},cx=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};function os(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var K_=[os(Y_,"undefined",function(){return null},function(){}),os(QI,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),os(VI,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),os(GI,"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(r){n[r]=e[r]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(r){n[r]=e[r]}),n}),os($I,"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}
50),os(I0,"set",function(e){return cx([],ux(e.values()))},function(e){return new Set(e)}),os(D0,"map",function(e){return cx([],ux(e.entries()))},function(e){return new Map(e)}),os(function(e){return o8(e)||XI(e)},"number",function(e){return o8(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),os(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),os(WI,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function Tp(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var W_=Tp(function(e,t){if(Q_(e)){var n=!!t.symbolRegistry.getIdentifier(e);return n}return!1},function(e,t){var n=t.symbolRegistry.getIdentifier(e);return["symbol",n]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),ZI=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),Z_=Tp(KI,function(e){return["typed-array",e.constructor.name]},function(e){return cx([],ux(e))},function(e,t){var n=ZI[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function J_(e,t){if(e?.constructor){var n=!!t.classRegistry.getIdentifier(e.constructor);return n}return!1}var eT=Tp(J_,function(e,t){var n=t.classRegistry.getIdentifier(e.constructor);return["class",n]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return ox({},e);var r={};return n.forEach(function(a){r[a]=e[a]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),tT=Tp(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return["custom",n.name]},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return n.serialize(e)},function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),JI=[eT,W_,tT,Z_],u8=function(e,t){var n=l8(JI,function(a){return a.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=l8(K_,function(a){return a.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation}},nT={};K_.forEach(function(e){nT[e.annotation]=e});var eL=function(e,t,n){if(ll(t))switch(t[0]){case"symbol":return W_.untransform(e,t,n);case"class":return eT.untransform(e,t,n);case"custom":return tT.untransform(e,t,n);case"typed-array":return Z_.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{var r=nT[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},Eu=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function rT(e){if(yh(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(yh(e,"prototype"))throw new Error("prototype is not allowed as a property");if(yh(e,"constructor"))throw new Error("constructor is not allowed as a property")}var tL=function(e,t){rT(t);for(var n=0;n<t.length;n++){var r=t[n];if(I0(e))e=Eu(e,+r);else if(D0(e)){var a=+r,i=+t[++n]==0?"key":"value",l=Eu(e,a);switch(i){case"key":e=l;break;case"value":e=e.get(l);break}}else e=e[r]}return e},dx=function(e,t,n){if(rT(t),t.length===0)return n(e);for(var r=e,a=0;a<t.length-1;a++){var i=t[a];if(ll(r)){var l=+i;r=r[l]}else if(M0(r))r=r[i];else if(I0(r)){var u=+i;r=Eu(r,u)}else if(D0(r)){var c=a===t.length-2;if(c)break;var u=+i,f=+t[++a]==0?"key":"value",g=Eu(r,u);switch(f){case"key":r=g;break;case"value":r=r.get(g);break}}}var h=t[t.length-1];if(ll(r)?r[+h]=n(r[+h]):M0(r)&&(r[h]=n(r[h])),I0(r)){var x=Eu(r,+h),b=n(x);x!==b&&(r.delete(x),r.add(b))}if(D0(r)){var u=+t[t.length-2],E=Eu(r,u),f=+h==0?"key":"value";switch(f){case"key":{var _=n(E);r.set(_,r.get(E)),_!==E&&r.delete(E);break}case"value":{r.set(E,n(r.get(E)));break}}}return e},ni=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,i=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(u){l={error:u}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return i},el=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};function fx(e,t,n){if(n===void 0&&(n=[]),!!e){if(!ll(e)){Ou(e,function(l,u){return fx(l,t,el(el([],ni(n)),ni(g0(u))))});return}var r=ni(e,2),a=r[0],i=r[1];i&&Ou(i,function(l,u){fx(l,t,el(el([],ni(n)),ni(g0(u))))}),t(a,n)}}function nL(e,t,n){return fx(t,function(r,a){e=dx(e,a,function(i){return eL(i,r,n)})}),e}function rL(e,t){function n(l,u){var c=tL(e,g0(u));
50l.map(g0).forEach(function(f){e=dx(e,f,function(){return c})})}if(ll(t)){var r=ni(t,2),a=r[0],i=r[1];a.forEach(function(l){e=dx(e,g0(l),function(){return e})}),i&&Ou(i,n)}else Ou(t,n);return e}var aL=function(e,t){return M0(e)||ll(e)||D0(e)||I0(e)||J_(e,t)};function sL(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}function iL(e,t){var n={},r=void 0;return e.forEach(function(a){if(!(a.length<=1)){t||(a=a.map(function(c){return c.map(String)}).sort(function(c,f){return c.length-f.length}));var i=ni(a),l=i[0],u=i.slice(1);l.length===0?r=u.map(Fg):n[Fg(l)]=u.map(Fg)}}),r?lx(n)?[r]:[r,n]:lx(n)?void 0:n}var aT=function(e,t,n,r,a,i,l){var u;a===void 0&&(a=[]),i===void 0&&(i=[]),l===void 0&&(l=new Map);var c=YI(e);if(!c){sL(e,a,t);var f=l.get(e);if(f)return r?{transformedValue:null}:f}if(!aL(e,n)){var g=u8(e,n),h=g?{transformedValue:g.value,annotations:[g.type]}:{transformedValue:e};return c||l.set(e,h),h}if(yh(i,e))return{transformedValue:null};var x=u8(e,n),b=(u=x?.value)!==null&&u!==void 0?u:e,E=ll(b)?[]:{},_={};Ou(b,function(w,N){var R=aT(w,t,n,r,el(el([],ni(a)),[N]),el(el([],ni(i)),[e]),l);E[N]=R.transformedValue,ll(R.annotations)?_[N]=R.annotations:M0(R.annotations)&&Ou(R.annotations,function(z,B){_[X_(N)+"."+B]=z})});var C=lx(_)?{transformedValue:E,annotations:x?[x.type]:void 0}:{transformedValue:E,annotations:x?[x.type,_]:_};return c||l.set(e,C),C};function sT(e){return Object.prototype.toString.call(e).slice(8,-1)}function c8(e){return sT(e)==="Array"}function lL(e){if(sT(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function oL(e,t,n,r,a){const i={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=n),a&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function hx(e,t={}){if(c8(e))return e.map(a=>hx(a,t));if(!lL(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((a,i)=>{if(c8(t.props)&&!t.props.includes(i))return a;const l=e[i],u=hx(l,t);return oL(a,i,u,e,t.nonenumerable),a},{})}var Gl=function(){return Gl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Gl.apply(this,arguments)},uL=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,i=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(u){l={error:u}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return i},cL=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e},mi=(function(){function e(t){var n=t===void 0?{}:t,r=n.dedupe,a=r===void 0?!1:r;this.classRegistry=new DI,this.symbolRegistry=new G_(function(i){var l;return(l=i.description)!==null&&l!==void 0?l:""}),this.customTransformerRegistry=new BI,this.allowedErrorProps=[],this.dedupe=a}return e.prototype.serialize=function(t){var n=new Map,r=aT(t,n,this,this.dedupe),a={json:r.transformedValue};r.annotations&&(a.meta=Gl(Gl({},a.meta),{values:r.annotations}));var i=iL(n,this.dedupe);return i&&(a.meta=Gl(Gl({},a.meta),{referentialEqualities:i})),a},e.prototype.deserialize=function(t){var n=t.json,r=t.meta,a=hx(n);return r?.values&&(a=nL(a,r.values,this)),r?.referentialEqualities&&(a=rL(a,r.referentialEqualities)),a},e.prototype.stringify=function(t){return JSON.stringify(this.serialize(t))},e.prototype.parse=function(t){return this.deserialize(JSON.parse(t))},e.prototype.registerClass=function(t,n){this.classRegistry.register(t,n)},e.prototype.registerSymbol=function(t,n){this.symbolRegistry.register(t,n)},e.prototype.registerCustom=function(t,n){this.customTransformerRegistry.register(Gl({name:n},t))},e.prototype.allowErrorProps=function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];(t=this.allowedErrorProps).push.apply(t,cL([],uL(n)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e})();mi.serialize;mi.deserialize;mi.stringify;mi.parse;mi.registerClass;mi.registerCustom;mi.registerSymbol;mi.allowErrorProps;var dL=(e,t,n,r,a,i,l,u)=>{let c=document.documentElement,f=["light","dark"];
vendor: 7,464 bytes, line 50
50function g(b){(Array.isArray(e)?e:[e]).forEach(E=>{let _=E==="class",C=_&&i?a.map(w=>i[w]||w):a;_?(c.classList.remove(...C),c.classList.add(i&&i[b]?i[b]:b)):c.setAttribute(E,b)}),h(b)}function h(b){u&&f.includes(b)&&(c.style.colorScheme=b)}function x(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)g(r);else try{let b=localStorage.getItem(t)||n,E=l&&b==="system"?x():b;g(E)}catch{}},fL=A.createContext(void 0),hL={setTheme:e=>{},themes:[]},pL=()=>{var e;return(e=A.useContext(fL))!=null?e:hL};A.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultTheme:i,value:l,themes:u,nonce:c,scriptProps:f})=>{let g=JSON.stringify([n,t,i,e,u,l,r,a]).slice(1,-1);return A.createElement("script",{...f,suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(${dL.toString()})(${g})`}})});var td=V_();const iT=gp(td);function mL(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const gL=e=>{switch(e){case"success":return yL;case"info":return EL;case"warning":return vL;case"error":return SL;default:return null}},xL=Array(12).fill(0),bL=({visible:e,className:t})=>De.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},De.createElement("div",{className:"sonner-spinner"},xL.map((n,r)=>De.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),yL=De.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},De.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"})),vL=De.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},De.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"})),EL=De.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},De.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"})),SL=De.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},De.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"})),_L=De.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"},De.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),De.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),TL=()=>{const[e,t]=De.useState(document.hidden);return De.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let px=1;class wL{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...a}=t,i=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:px++,l=this.toasts.find(c=>c.id===i),u=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),l?this.toasts=this.toasts.map(c=>c.id===i?(this.publish({...c,...t,id:i,title:r}),{...c,...t,id:i,dismissible:u,title:r}):c):this.addToast({title:r,...a,dismissible:u,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,l;const u=a.then(async f=>{if(l=["resolve",f],De.isValidElement(f))i=!1,this.create({id:r,type:"default",message:f});else if(CL(f)&&!f.ok){i=!1;const h=typeof n.error=="function"?await n.error(`HTTP error! status: ${f.status}`):n.error,x=typeof n.description=="function"?await n.description(`HTTP error! status: ${f.status}`):n.description,E=typeof h=="object"&&!De.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:x,...E})}else if(f instanceof Error){i=!1;const h=typeof n.error=="function"?await n.error(f):n.error,x=typeof n.description=="function"?await n.description(f):n.description,E=typeof h=="object"&&!De.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:x,...E})}else if(n.success!==void 0){i=!1;const h=typeof n.success=="function"?await n.success(f):n.success,x=typeof n.description=="function"?await n.description(f):n.description,E=typeof h=="object"&&!De.isValidElement(h)?h:{message:h};this.create({id:r,type:"success",description:x,...E})}}).catch(async f=>{if(l=["reject",f],n.error!==void 0){i=!1;const g=typeof n.error=="function"?await n.error(f):n.error,h=typeof n.description=="function"?await n.description(f):n.description,b=typeof g=="object"&&!De.isValidElement(g)?g:{message:g};this.create({id:r,type:"error",description:h,...b})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),c=()=>new Promise((f,g)=>u.then(()=>l[0]==="reject"?g(l[1]):f(l[1])).catch(g));return typeof r!="string"&&typeof r!="number"?{unwrap:c}:Object.assign(r,{unwrap:c})},this.custom=(t,n)=>{const r=n?.id||px++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Kr=new wL,AL=(e,t)=>{const n=t?.id||px++;return Kr.addToast({title:e,...t,id:n}),n},CL=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",kL=AL,NL=()=>Kr.toasts,PL=()=>Kr.getActiveToasts(),Ct=Object.assign(kL,{success:Kr.success,info:Kr.info,warning:Kr.warning,error:Kr.error,custom:Kr.custom,message:Kr.message,promise:Kr.promise,dismiss:Kr.dismiss,loading:Kr.loading},{getHistory:NL,getToasts:PL});mL
vendor: 14,873 bytes, line 50
50("[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: 1,342 bytes, line 50
50zf(e){return e.label!==void 0}const RL=3,OL="24px",ML="16px",d8=4e3,DL=356,IL=14,LL=45,jL=200;function us(...e){return e.filter(Boolean).join(" ")}function BL(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const zL=e=>{var t,n,r,a,i,l,u,c,f;const{invert:g,toast:h,unstyled:x,interacting:b,setHeights:E,visibleToasts:_,heights:C,index:w,toasts:N,expanded:R,removeToast:z,defaultRichColors:B,closeButton:j,style:L,cancelButtonStyle:Y,actionButtonStyle:Z,className:$="",descriptionClassName:te="",duration:ee,position:he,gap:ie,expandByDefault:ne,classNames:H,icons:re,closeButtonAriaLabel:J="Close toast"}=e,[Te,q]=De.useState(null),[G,oe]=De.useState(null),[M,pe]=De.useState(!1),[_e,Re]=De.useState(!1),[ve,Ie]=De.useState(!1),[Ue,Qe]=De.useState(!1),[rt,lt]=De.useState(!1),[hn,Zt]=De.useState(0),[lr,Gn]=De.useState(0),Mn=De.useRef(h.duration||ee||d8),Cr=De.useRef(null),pn=De.useRef(null),Ce=w===0,xt=w+1<=_,ft=h.type,Yt=h.dismissible!==!1,Jt=h.className||"",xa=h.descriptionClassName||"",be=De.useMemo(()=>C.findIndex(at=>at.toastId===h.id)||0,[C,h.id]),Le=De.useMemo(()=>{var at;return(at=h.closeButton)!=null?at:j},[h.closeButton,j]),Ze=De.useMemo(()=>h.duration||ee||d8,[h.duration,ee]),ht=De.useRef(0),Et=De.useRef(0),gr=De.useRef(0),xr=De.useRef(null),[or,Tn]=he.split("-"),ur=De.useMemo(()=>C.reduce((at,un,er)=>
vendor: 7,664 bytes, line 50
50er>=be?at:at+un.height,0),[C,be]),Ut=TL(),ts=h.invert||g,kr=ft==="loading";Et.current=De.useMemo(()=>be*ie+ur,[be,ur]),De.useEffect(()=>{Mn.current=Ze},[Ze]),De.useEffect(()=>{pe(!0)},[]),De.useEffect(()=>{const at=pn.current;if(at){const un=at.getBoundingClientRect().height;return Gn(un),E(er=>[{toastId:h.id,height:un,position:h.position},...er]),()=>E(er=>er.filter(br=>br.toastId!==h.id))}},[E,h.id]),De.useLayoutEffect(()=>{if(!M)return;const at=pn.current,un=at.style.height;at.style.height="auto";const er=at.getBoundingClientRect().height;at.style.height=un,Gn(er),E(br=>br.find(mn=>mn.toastId===h.id)?br.map(mn=>mn.toastId===h.id?{...mn,height:er}:mn):[{toastId:h.id,height:er,position:h.position},...br])},[M,h.title,h.description,E,h.id,h.jsx,h.action,h.cancel]);const ns=De.useCallback(()=>{Re(!0),Zt(Et.current),E(at=>at.filter(un=>un.toastId!==h.id)),setTimeout(()=>{z(h)},jL)},[h,z,E,Et]);De.useEffect(()=>{if(h.promise&&ft==="loading"||h.duration===1/0||h.type==="loading")return;let at;return R||b||Ut?(()=>{if(gr.current<ht.current){const br=new Date().getTime()-ht.current;Mn.current=Mn.current-br}gr.current=new Date().getTime()})():(()=>{Mn.current!==1/0&&(ht.current=new Date().getTime(),at=setTimeout(()=>{h.onAutoClose==null||h.onAutoClose.call(h,h),ns()},Mn.current))})(),()=>clearTimeout(at)},[R,b,h,ft,Ut,ns]),De.useEffect(()=>{h.delete&&(ns(),h.onDismiss==null||h.onDismiss.call(h,h))},[ns,h.delete]);function yo(){var at;if(re?.loading){var un;return De.createElement("div",{className:us(H?.loader,h==null||(un=h.classNames)==null?void 0:un.loader,"sonner-loader"),"data-visible":ft==="loading"},re.loading)}return De.createElement(bL,{className:us(H?.loader,h==null||(at=h.classNames)==null?void 0:at.loader),visible:ft==="loading"})}const vo=h.icon||re?.[ft]||gL(ft);var yl,rs;return De.createElement("li",{tabIndex:0,ref:pn,className:us($,Jt,H?.toast,h==null||(t=h.classNames)==null?void 0:t.toast,H?.default,H?.[ft],h==null||(n=h.classNames)==null?void 0:n[ft]),"data-sonner-toast":"","data-rich-colors":(yl=h.richColors)!=null?yl:B,"data-styled":!(h.jsx||h.unstyled||x),"data-mounted":M,"data-promise":!!h.promise,"data-swiped":rt,"data-removed":_e,"data-visible":xt,"data-y-position":or,"data-x-position":Tn,"data-index":w,"data-front":Ce,"data-swiping":ve,"data-dismissible":Yt,"data-type":ft,"data-invert":ts,"data-swipe-out":Ue,"data-swipe-direction":G,"data-expanded":!!(R||ne&&M),"data-testid":h.testId,style:{"--index":w,"--toasts-before":w,"--z-index":N.length-w,"--offset":`${_e?hn:Et.current}px`,"--initial-height":ne?"auto":`${lr}px`,...L,...h.style},onDragEnd:()=>{Ie(!1),q(null),xr.current=null},onPointerDown:at=>{at.button!==2&&(kr||!Yt||(Cr.current=new Date,Zt(Et.current),at.target.setPointerCapture(at.pointerId),at.target.tagName!=="BUTTON"&&(Ie(!0),xr.current={x:at.clientX,y:at.clientY})))},onPointerUp:()=>{var at,un,er;if(Ue||!Yt)return;xr.current=null;const br=Number(((at=pn.current)==null?void 0:at.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),yi=Number(((un=pn.current)==null?void 0:un.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),mn=new Date().getTime()-((er=Cr.current)==null?void 0:er.getTime()),Lr=Te==="x"?br:yi,vl=Math.abs(Lr)/mn;if(Math.abs(Lr)>=LL||vl>.11){Zt(Et.current),h.onDismiss==null||h.onDismiss.call(h,h),oe(Te==="x"?br>0?"right":"left":yi>0?"down":"up"),ns(),Qe(!0);return}else{var jr,Br;(jr=pn.current)==null||jr.style.setProperty("--swipe-amount-x","0px"),(Br=pn.current)==null||Br.style.setProperty("--swipe-amount-y","0px")}lt(!1),Ie(!1),q(null)},onPointerMove:at=>{var un,er,br;if(!xr.current||!Yt||((un=window.getSelection())==null?void 0:un.toString().length)>0)return;const mn=at.clientY-xr.current.y,Lr=at.clientX-xr.current.x;var vl;const jr=(vl=e.swipeDirections)!=null?vl:BL(he);!Te&&(Math.abs(Lr)>1||Math.abs(mn)>1)&&q(Math.abs(Lr)>Math.abs(mn)?"x":"y");let Br={x:0,y:0};const Eo=za=>1/(1.5+Math.abs(za)/20);if(Te==="y"){if(jr.includes("top")||jr.includes("bottom"))if(jr.includes("top")&&mn<0||jr.includes("bottom")&&mn>0)Br.y=mn;else{const za=mn*Eo(mn);Br.y=Math.abs(za)<Math.abs(mn)?za:mn}}else if(Te==="x"&&(jr.includes("left")||jr.includes("right")))if(jr.includes("left")&&Lr<0||jr.includes("right")&&Lr>0)Br.x=Lr;else{const za=Lr*Eo(Lr);Br.x=Math.abs(za)<Math.abs(Lr)?za:Lr}(Math.abs(Br.x)>0||Math.abs(Br.y)>0)&&lt(!0),(er=pn.current)==null||er.style.setProperty("--swipe-amount-x",`${Br.x}px`),(br=pn.current)==null||br.style.setProperty("--swipe-amount-y",`${Br.y}px`)}},Le&&!h.jsx&&ft!=="loading"?De.createElement("button",{"aria-label":J,"data-disabled":kr,"data-close-button":!0,onClick:kr||!Yt?()=>{}:()=>{ns(),h.onDismiss==null||h.onDismiss.call(h,h)},className:us(H?.closeButton,h==null||(r=h.classNames)==null?void 0:r.closeButton)},(rs=re?.close)!=null?rs:_L):null,(ft||h.icon||h.promise)&&h.icon!==null&&(re?.[ft]!==null||h.icon)?De.createElement("div",{"data-icon":"",className:us(H?.icon,h==null||(a=h.classNames)==null?void 0:a.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||yo():null,h.type!=="loading"?vo:null):null,De.createElement("div",{"data-content":"",className:us(H?.content,h==null||(i=h.classNames)==null?void 0:i.content)},De.createElement("div",{"data-title":"",className:us(H?.title,h==null||(l=h.classNames)==null?void 0:l.title)},h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title),h.description?De.createElement("div",{"data-description":"",className:us(te,xa,H?.description,h==null||(u=h.classNames)==null?void 0:u.description)},typeof h.description=="function"?h.description():h.description):null),De.isValidElement(h.cancel)?h.cancel:h.cancel&&zf(h.cancel)?De.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||Y,onClick:at=>{zf(h.cancel)&&Yt&&(h.cancel.onClick==null||h.cancel.onClick.call(h.cancel,at),ns())},className:us(H?.cancelButton,h==null||(c=h.classNames)==null?void 0:c.cancelButton)},h.cancel.label):null,De.isValidElement(h.action)?h.action:h.action&&zf(h.action)?De.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||Z,onClick:at=>{zf(h.action)&&(h.action.onClick==null||h.action.onClick.call(h.action,at),!at.defaultPrevented&&ns())},className:us(H?.actionButton,h==null||(f=h.classNames)==null?void 0:f.actionButton)},h.action.label):null)};function f8(){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 FL(e,t){const n={};return[e,t].forEach((r,a)=>{const i=a===1,l=i?"--mobile-offset":"--offset",u=i?ML:OL;function c(f){["top","right","bottom","left"].forEach(g=>{n[`${l}-${g}`]=typeof f=="number"?`${f}px`:f})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(f=>{r[f]===void 0?n[`${l}-${f}`]=u:n[`${l}-${f}`]=typeof r[f]=="number"?`${r[f]}px`:r[f]}):c(u)}),n}const HL=De.forwardRef(function(t,n){const{id:r,invert:a,position:i="bottom-right",hotkey:l=["altKey","KeyT"],expand:u,closeButton:c,className:f,offset:g,mobileOffset:h,theme:x="light",richColors:b,duration:E,style:_,visibleToasts:C=RL,toastOptions:w,dir:N=f8(),gap:R=IL,icons:z,containerAriaLabel:B="Notifications"}=t,[j,L]=De.useState([]),Y=De.useMemo(()=>r?j.filter(M=>M.toasterId===r):j.filter(M=>!M.toasterId),[j,r]),Z=De.useMemo(()=>Array.from(new Set([i].concat(Y.filter(M=>M.position).map(M=>M.position)))),[Y,i]),[$,te]=De.useState([]),[ee,he]=De.useState(!1),[ie,ne]=De.useState(!1),[H,re]=De.useState(x!=="system"?x:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
50k":"light"),J=De.useRef(null),Te=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),q=De.useRef(null),G=De.useRef(!1),oe=De.useCallback(M=>{L(pe=>{var _e;return(_e=pe.find(Re=>Re.id===M.id))!=null&&_e.delete||Kr.dismiss(M.id),pe.filter(({id:Re})=>Re!==M.id)})},[]);return De.useEffect(()=>Kr.subscribe(M=>{if(M.dismiss){requestAnimationFrame(()=>{L(pe=>pe.map(_e=>_e.id===M.id?{..._e,delete:!0}:_e))});return}setTimeout(()=>{iT.flushSync(()=>{L(pe=>{const _e=pe.findIndex(Re=>Re.id===M.id);return _e!==-1?[...pe.slice(0,_e),{...pe[_e],...M},...pe.slice(_e+1)]:[M,...pe]})})})}),[j]),De.useEffect(()=>{if(x!=="system"){re(x);return}if(x==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?re("dark"):re("light")),typeof window>"u")return;const M=window.matchMedia("(prefers-color-scheme: dark)");try{M.addEventListener("change",({matches:pe})=>{re(pe?"dark":"light")})}catch{M.addListener(({matches:_e})=>{try{re(_e?"dark":"light")}catch(Re){console.error(Re)}})}},[x]),De.useEffect(()=>{j.length<=1&&he(!1)},[j]),De.useEffect(()=>{const M=pe=>{var _e;if(l.every(Ie=>pe[Ie]||pe.code===Ie)){var ve;he(!0),(ve=J.current)==null||ve.focus()}pe.code==="Escape"&&(document.activeElement===J.current||(_e=J.current)!=null&&_e.contains(document.activeElement))&&he(!1)};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[l]),De.useEffect(()=>{if(J.current)return()=>{q.current&&(q.current.focus({preventScroll:!0}),q.current=null,G.current=!1)}},[J.current]),De.createElement("section",{ref:n,"aria-label":`${B} ${Te}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},Z.map((M,pe)=>{var _e;const[Re,ve]=M.split("-");return Y.length?De.createElement("ol",{key:M,dir:N==="auto"?f8():N,tabIndex:-1,ref:J,className:f,"data-sonner-toaster":!0,"data-sonner-theme":H,"data-y-position":Re,"data-x-position":ve,style:{"--front-toast-height":`${((_e=$[0])==null?void 0:_e.height)||0}px`,"--width":`${DL}px`,"--gap":`${R}px`,..._,...FL(g,h)},onBlur:Ie=>{G.current&&!Ie.currentTarget.contains(Ie.relatedTarget)&&(G.current=!1,q.current&&(q.current.focus({preventScroll:!0}),q.current=null))},onFocus:Ie=>{Ie.target instanceof HTMLElement&&Ie.target.dataset.dismissible==="false"||G.current||(G.current=!0,q.current=Ie.relatedTarget)},onMouseEnter:()=>he(!0),onMouseMove:()=>he(!0),onMouseLeave:()=>{ie||he(!1)},onDragEnd:()=>he(!1),onPointerDown:Ie=>{Ie.target instanceof HTMLElement&&Ie.target.dataset.dismissible==="false"||ne(!0)},onPointerUp:()=>ne(!1)},Y.filter(Ie=>!Ie.position&&pe===0||Ie.position===M).map((Ie,Ue)=>{var Qe,rt;return De.createElement(zL,{key:Ie.id,icons:z,index:Ue,toast:Ie,defaultRichColors:b,duration:(Qe=w?.duration)!=null?Qe:E,className:w?.className,descriptionClassName:w?.descriptionClassName,invert:a,visibleToasts:C,closeButton:(rt=w?.closeButton)!=null?rt:c,interacting:ie,position:M,style:w?.style,unstyled:w?.unstyled,classNames:w?.classNames,cancelButtonStyle:w?.cancelButtonStyle,actionButtonStyle:w?.actionButtonStyle,closeButtonAriaLabel:w?.closeButtonAriaLabel,removeToast:oe,toasts:Y.filter(lt=>lt.position==Ie.position),heights:$.filter(lt=>lt.position==Ie.position),setHeights:te,expandByDefault:u,gap:R,expanded:ee,swipeDirections:t.swipeDirections})})):null}))}),UL=({...e})=>{const{theme:t="system"}=pL();return p.jsx(HL,{"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 st(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function h8(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lT(...e){return t=>{let n=!1;const r=e.map(a=>{const i=h8(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<r.length;a++){const i=r[a];typeof i=="function"?i():h8(e[a],null)}}}}function $t(...e){return A.useCallback(lT(...e),e)}function qL(e,t){const n=A.createContext(t),r=i=>{const{children:l,...u}=i,c=A.useMemo(()=>u,Object.values(u));return p.jsx(n.Provider,{value:c,children:l})};r.displayName=e+"Provider";function a(i){const l=A.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,a]}function gi(e,t=[]){let n=[];function r(i,l){const u=A.createContext(l),c=n.length;n=[...n,l];const f=h=>{const{scope:x,children:b,...E}=h,_=x?.[e]?.[c]||u,C=A.useMemo(()=>E,Object.values(E));return p.jsx(_.Provider,{value:C,children:b})};f.displayName=i+"Provider";function g(h,x){const b=x?.[e]?.[c]||u,E=A.useContext(b);if(E)return E;if(l!==void 0)return l;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[f,g]}const a=()=>{const i=n.map(l=>A.createContext(l));return function(u){const c=u?.[e]||i;return A.useMemo(()=>({[`__scope${e}`]:{...u,[e]:c}}),[u,c])}};return a.scopeName=e,[r,$L(a,...t)]}function $L(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const l=r.reduce((u,{useScope:c,scopeName:f})=>{const h=c(i)[`__scope${f}`];return{...u,...h}},{});return A.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function Mu(e){const t=VL(e),n=A.forwardRef((r,a)=>{const{children:i,...l}=r,u=A.Children.toArray(i),c=u.find(YL);if(c){const f=c.props.children,g=u.map(h=>h===c?A.Children.count(f)>1?A.Children.only(null):A.isValidElement(f)?f.props.children:null:h);return p.jsx(t,{...l,ref:a,children:A.isValidElement(f)?A.cloneElement(f,void 0,g):null})}return p.jsx(t,{...l,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}var oT=Mu("Slot");function VL(e){const t=A.forwardRef((n,r)=>{const{children:a,...i}=n;
vendor: 5,406 bytes, line 50
50if(A.isValidElement(a)){const l=XL(a),u=QL(i,a.props);return a.type!==A.Fragment&&(u.ref=r?lT(r,l):l),A.cloneElement(a,u)}return A.Children.count(a)>1?A.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var uT=Symbol("radix.slottable");function GL(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=uT,t}function YL(e){return A.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===uT}function QL(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...u)=>{const c=i(...u);return a(...u),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function XL(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var KL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dt=KL.reduce((e,t)=>{const n=Mu(`Primitive.${t}`),r=A.forwardRef((a,i)=>{const{asChild:l,...u}=a,c=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...u,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function WL(e,t){e&&td.flushSync(()=>e.dispatchEvent(t))}function ui(e){const t=A.useRef(e);return A.useEffect(()=>{t.current=e}),A.useMemo(()=>(...n)=>t.current?.(...n),[])}function ZL(e,t=globalThis?.document){const n=ui(e);A.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var JL="DismissableLayer",mx="dismissableLayer.update",ej="dismissableLayer.pointerDownOutside",tj="dismissableLayer.focusOutside",p8,cT=A.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wp=A.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...c}=e,f=A.useContext(cT),[g,h]=A.useState(null),x=g?.ownerDocument??globalThis?.document,[,b]=A.useState({}),E=$t(t,L=>h(L)),_=Array.from(f.layers),[C]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=_.indexOf(C),N=g?_.indexOf(g):-1,R=f.layersWithOutsidePointerEventsDisabled.size>0,z=N>=w,B=aj(L=>{const Y=L.target,Z=[...f.branches].some($=>$.contains(Y));!z||Z||(a?.(L),l?.(L),L.defaultPrevented||u?.())},x),j=sj(L=>{const Y=L.target;[...f.branches].some($=>$.contains(Y))||(i?.(L),l?.(L),L.defaultPrevented||u?.())},x);return ZL(L=>{N===f.layers.size-1&&(r?.(L),!L.defaultPrevented&&u&&(L.preventDefault(),u()))},x),A.useEffect(()=>{if(g)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(p8=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(g)),f.layers.add(g),m8(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=p8)}},[g,x,n,f]),A.useEffect(()=>()=>{g&&(f.layers.delete(g),f.layersWithOutsidePointerEventsDisabled.delete(g),m8())},[g,f]),A.useEffect(()=>{const L=()=>b({});return document.addEventListener(mx,L),()=>document.removeEventListener(mx,L)},[]),p.jsx(dt.div,{...c,ref:E,style:{pointerEvents:R?z?"auto":"none":void 0,...e.style},onFocusCapture:st(e.onFocusCapture,j.onFocusCapture),onBlurCapture:st(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:st(e.onPointerDownCapture,B.onPointerDownCapture)})});wp.displayName=JL;var nj="DismissableLayerBranch",rj=A.forwardRef((e,t)=>{const n=A.useContext(cT),r=A.useRef(null),a=$t(t,r);return A.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(dt.div,{...e,ref:a})});rj.displayName=nj;function aj(e,t=globalThis?.document){const n=ui(e),r=A.useRef(!1),a=A.useRef(()=>{});return A.useEffect(()=>{const i=u=>{if(u.target&&!r.current){let c=function(){dT(ej,n,f,{discrete:!0})};const f={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}else t.removeEventListener("click",a.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function sj(e,t=globalThis?.document){const n=ui(e),r=A.useRef(!1);return A.useEffect(()=>{const a=i=>{i.target&&!r.current&&dT(tj,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function m8(){const e=new CustomEvent(mx);document.dispatchEvent(e)}function dT(e,t,n,{discrete:r}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?WL(a,i):a.dispatchEvent(i)}var Wn=globalThis?.document?A.useLayoutEffect:()=>{},ij=bp[" useId ".trim().toString()]||(()=>{}),lj=0;function al(e){const[t,n]=A.useState(ij());return Wn(()=>{n(r=>r??String(lj++))},[e]),e||(t?`radix-${t}`:"")}const oj=["top","right","bottom","left"],ol=Math.min,ca=Math.max,Mh=Math.round,Ff=Math.floor,Ts=e=>({x:e,y:e}
vendor: 18,859 bytes, line 50
50),uj={left:"right",right:"left",bottom:"top",top:"bottom"},cj={start:"end",end:"start"};function gx(e,t,n){return ca(e,ol(t,n))}function ci(e,t){return typeof e=="function"?e(t):e}function di(e){return e.split("-")[0]}function Uu(e){return e.split("-")[1]}function Fb(e){return e==="x"?"y":"x"}function Hb(e){return e==="y"?"height":"width"}const dj=new Set(["top","bottom"]);function vs(e){return dj.has(di(e))?"y":"x"}function Ub(e){return Fb(vs(e))}function fj(e,t,n){n===void 0&&(n=!1);const r=Uu(e),a=Ub(e),i=Hb(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Dh(l)),[l,Dh(l)]}function hj(e){const t=Dh(e);return[xx(e),t,xx(t)]}function xx(e){return e.replace(/start|end/g,t=>cj[t])}const g8=["left","right"],x8=["right","left"],pj=["top","bottom"],mj=["bottom","top"];function gj(e,t,n){switch(e){case"top":case"bottom":return n?t?x8:g8:t?g8:x8;case"left":case"right":return t?pj:mj;default:return[]}}function xj(e,t,n,r){const a=Uu(e);let i=gj(di(e),n==="start",r);return a&&(i=i.map(l=>l+"-"+a),t&&(i=i.concat(i.map(xx)))),i}function Dh(e){return e.replace(/left|right|bottom|top/g,t=>uj[t])}function bj(e){return{top:0,right:0,bottom:0,left:0,...e}}function fT(e){return typeof e!="number"?bj(e):{top:e,right:e,bottom:e,left:e}}function Ih(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function b8(e,t,n){let{reference:r,floating:a}=e;const i=vs(t),l=Ub(t),u=Hb(l),c=di(t),f=i==="y",g=r.x+r.width/2-a.width/2,h=r.y+r.height/2-a.height/2,x=r[u]/2-a[u]/2;let b;switch(c){case"top":b={x:g,y:r.y-a.height};break;case"bottom":b={x:g,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:h};break;case"left":b={x:r.x-a.width,y:h};break;default:b={x:r.x,y:r.y}}switch(Uu(t)){case"start":b[l]-=x*(n&&f?-1:1);break;case"end":b[l]+=x*(n&&f?-1:1);break}return b}const yj=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:l}=n,u=i.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:g,y:h}=b8(f,r,c),x=r,b={},E=0;for(let _=0;_<u.length;_++){const{name:C,fn:w}=u[_],{x:N,y:R,data:z,reset:B}=await w({x:g,y:h,initialPlacement:r,placement:x,strategy:a,middlewareData:b,rects:f,platform:l,elements:{reference:e,floating:t}});g=N??g,h=R??h,b={...b,[C]:{...b[C],...z}},B&&E<=50&&(E++,typeof B=="object"&&(B.placement&&(x=B.placement),B.rects&&(f=B.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):B.rects),{x:g,y:h}=b8(f,x,c)),_=-1)}return{x:g,y:h,placement:x,strategy:a,middlewareData:b}};async function L0(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:i,rects:l,elements:u,strategy:c}=e,{boundary:f="clippingAncestors",rootBoundary:g="viewport",elementContext:h="floating",altBoundary:x=!1,padding:b=0}=ci(t,e),E=fT(b),C=u[x?h==="floating"?"reference":"floating":h],w=Ih(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(C)))==null||n?C:C.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(u.floating)),boundary:f,rootBoundary:g,strategy:c})),N=h==="floating"?{x:r,y:a,width:l.floating.width,height:l.floating.height}:l.reference,R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u.floating)),z=await(i.isElement==null?void 0:i.isElement(R))?await(i.getScale==null?void 0:i.getScale(R))||{x:1,y:1}:{x:1,y:1},B=Ih(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:N,offsetParent:R,strategy:c}):N);return{top:(w.top-B.top+E.top)/z.y,bottom:(B.bottom-w.bottom+E.bottom)/z.y,left:(w.left-B.left+E.left)/z.x,right:(B.right-w.right+E.right)/z.x}}const vj=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:l,elements:u,middlewareData:c}=t,{element:f,padding:g=0}=ci(e,t)||{};if(f==null)return{};const h=fT(g),x={x:n,y:r},b=Ub(a),E=Hb(b),_=await l.getDimensions(f),C=b==="y",w=C?"top":"left",N=C?"bottom":"right",R=C?"clientHeight":"clientWidth",z=i.reference[E]+i.reference[b]-x[b]-i.floating[E],B=x[b]-i.reference[b],j=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let L=j?j[R]:0;(!L||!await(l.isElement==null?void 0:l.isElement(j)))&&(L=u.floating[R]||i.floating[E]);const Y=z/2-B/2,Z=L/2-_[E]/2-1,$=ol(h[w],Z),te=ol(h[N],Z),ee=$,he=L-_[E]-te,ie=L/2-_[E]/2+Y,ne=gx(ee,ie,he),H=!c.arrow&&Uu(a)!=null&&ie!==ne&&i.reference[E]/2-(ie<ee?$:te)-_[E]/2<0,re=H?ie<ee?ie-ee:ie-he:0;return{[b]:x[b]+re,data:{[b]:ne,centerOffset:ie-ne-re,...H&&{alignmentOffset:re}},reset:H}}}),Ej=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:i,rects:l,initialPlacement:u,platform:c,elements:f}=t,{mainAxis:g=!0,crossAxis:h=!0,fallbackPlacements:x,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:_=!0,...C}=ci(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=di(a),N=vs(u),R=di(u)===u,z=await(c.isRTL==null?void 0:c.isRTL(f.floating)),B=x||(R||!_?[Dh(u)]:hj(u)),j=E!=="none";!x&&j&&B.push(...xj(u,_,E,z));const L=[u,...B],Y=await L0(t,C),Z=[];let $=((r=i.flip)==null?void 0:r.overflows)||[];if(g&&Z.push(Y[w]),h){const ie=fj(a,l,z);Z.push(Y[ie[0]],Y[ie[1]])}if($=[...$,{placement:a,overflows:Z}],!Z.every(ie=>ie<=0)){var te,ee;const ie=(((te=i.flip)==null?void 0:te.index)||0)+1,ne=L[ie];if(ne&&(!(h==="alignment"?N!==vs(ne):!1)||$.every(J=>vs(J.placement)===N?J.overflows[0]>0:!0)))return{data:{index:ie,overflows:$},reset:{placement:ne}};let H=(ee=$.filter(re=>re.overflows[0]<=0).sort((re,J)=>re.overflows[1]-J.overflows[1])[0])==null?void 0:ee.placement;if(!H)switch(b){case"bestFit":{var he;const re=(he=$.filter(J=>{if(j){const Te=vs(J.placement);return Te===N||Te==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(Te=>Te>0).reduce((Te,q)=>Te+q,0)]).sort((J,Te)=>J[1]-Te[1])[0])==null?void 0:he[0];re&&(H=re);break}case"initialPlacement":H=u;break}if(a!==H)return{reset:{placement:H}}}return{}}}};function y8(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function v8(e){return oj.some(t=>e[t]>=0)}const Sj=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=ci(e,t);switch(r){case"referenceHidden":{const i=await L0(t,{...a,elementContext:"reference"}),l=y8(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:v8(l)}}}case"escaped":{const i=await L0(t,{...a,altBoundary:!0}),l=y8(i,n.floating);return{data:{escapedOffsets:l,escaped:v8(l)}}}default:return{}}}}},hT=new Set(["left","top"]);async function _j(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=di(n),u=Uu(n),c=vs(n)==="y",f=hT.has(l)?-1:1,g=i&&c?-1:1,h=ci(t,e);let{mainAxis:x,crossAxis:b,alignmentAxis:E}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return u&&typeof E=="number"&&(b=u==="end"?E*-1:E),c?{x:b*g,y:x*f}:{x:x*f,y:b*g}}const Tj=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:i,placement:l,middlewareData:u}=t,c=await _j(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:l}}}}},wj=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:u={fn:C=>{let{x:w,y:N}=C;return{x:w,y:N}}},...c}=ci(e,t),f={x:n,y:r},g=await L0(t,c),h=vs(di(a)),x=Fb(h);let b=f[x],E=f[h];if(i){const C=x==="y"?"top":"left",w=x==="y"?"bottom":"right",N=b+g[C],R=b-g[w];b=gx(N,b,R)}if(l){const C=h==="y"?"top":"left",w=h==="y"?"bottom":"right",N=E+g[C],R=E-g[w];E=gx(N,E,R)}const _=u.fn({...t,[x]:b,[h]:E});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[x]:i,[h]:l}}}}}},Aj=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:i,middlewareData:l}=t,{offset:u=0,mainAxis:c=!0,crossAxis:f=!0}=ci(e,t),g={x:n,y:r},h=vs(a),x=Fb(h);let b=g[x],E=g[h];const _=ci(u,t),C=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(c){const R=x==="y"?"height":"width",z=i.reference[x]-i.floating[R]+C.mainAxis,B=i.reference[x]+i.reference[R]-C.mainAxis;b<z?b=z:b>B&&(b=B)}if(f){var w,N;const R=x==="y"?"width":"height",z=hT.has(di(a)),B=i.reference[h]-i.floating[R]+(z&&((w=l.offset)==null?void 0:w[h])||0)+(z?0:C.crossAxis),j=i.reference[h]+i.reference[R]+(z?0:((N=l.offset)==null?void 0:N[h])||0)-(z?C.crossAxis:0);E<B?E=B:E>j&&(E=j)}return{[x]:b,[h]:E}}}},Cj=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:i,platform:l,elements:u}=t,{apply:c=()=>{},...f}=ci(e,t),g=await L0(t,f),h=di(a),x=Uu(a),b=vs(a)==="y",{width:E,height:_}=i.floating;let C,w;h==="top"||h==="bottom"?(C=h,w=x===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(w=h,C=x==="end"?"top":"bottom");const N=_-g.top-g.bottom,R=E-g.left-g.right,z=ol(_-g[C],N),B=ol(E-g[w],R),j=!t.middlewareData.shift;let L=z,Y=B;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(Y=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(L=N),j&&!x){const $=ca(g.left,0),te=ca(g.right,0),ee=ca(g.top,0),he=ca(g.bottom,0);b?Y=E-2*($!==0||te!==0?$+te:ca(g.left,g.right)):L=_-2*(ee!==0||he!==0?ee+he:ca(g.top,g.bottom))}await c({...t,availableWidth:Y,availableHeight:L});const Z=await l.getDimensions(u.floating);return E!==Z.width||_!==Z.height?{reset:{rects:!0}}:{}}}};function Ap(){return typeof window<"u"}function qu(e){return pT(e)?(e.nodeName||"").toLowerCase():"#document"}function ha(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Cs(e){var t;return(t=(pT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function pT(e){return Ap()?e instanceof Node||e instanceof ha(e).Node:!1}function Xa(e){return Ap()?e instanceof Element||e instanceof ha(e).Element:!1}function ws(e){return Ap()?e instanceof HTMLElement||e instanceof ha(e).HTMLElement:!1}function E8(e){return!Ap()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ha(e).ShadowRoot}const kj=new Set(["inline","contents"]);function nd(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Ka(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!kj.has(a)}const Nj=new Set(["table","td","th"]);function Pj(e){return Nj.has(qu(e))}const Rj=[":popover-open",":modal"];function Cp(e){return Rj.some(t=>{try{return e.matches(t)}catch{return!1}})}const Oj=["transform","translate","scale","rotate","perspective"],Mj=["transform","translate","scale","rotate","perspective","filter"],Dj=["paint","layout","strict","content"];function qb(e){const t=$b(),n=Xa(e)?Ka(e):e;return Oj.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Mj.some(r=>(n.willChange||"").includes(r))||Dj.some(r=>(n.contain||"").includes(r))}function Ij(e){let t=ul(e);for(;ws(t)&&!Du(t);){if(qb(t))return t;if(Cp(t))return null;t=ul(t)}return null}function $b(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Lj=new Set(["html","body","#document"]);function Du(e){return Lj.has(qu(e))}function Ka(e){return ha(e).getComputedStyle(e)}function kp(e){return Xa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ul(e){if(qu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||E8(e)&&e.host||Cs(e);return E8(t)?t.host:t}function mT(e){const t=ul(e);return Du(t)?e.ownerDocument?e.ownerDocument.body:e.body:ws(t)&&nd(t)?t:mT(t)}function j0(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=mT(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),l=ha(a);if(i){const u=bx(l);return t.concat(l,l.visualViewport||[],nd(a)?a:[],u&&n?j0(u):[])}return t.concat(a,j0(a,[],n))}function bx(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gT(e){const t=Ka(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=ws(e),i=a?e.offsetWidth:n,l=a?e.offsetHeight:r,u=Mh(n)!==i||Mh(r)!==l;return u&&(n=i,r=l),{width:n,height:r,$:u}}function Vb(e){return Xa(e)?e:e.contextElement}function Tu(e){const t=Vb(e);if(!ws(t))return Ts(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=gT(t);let l=(i?Mh(n.width):n.width)/r,u=(i?Mh(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const jj=Ts(0);function xT(e){const t=ha(e);return!$b()||!t.visualViewport?jj:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Bj(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ha(e)?!1:t}function eo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=Vb(e);let l=Ts(1);t&&(r?Xa(r)&&(l=Tu(r)):l=Tu(e));const u=Bj(i,n,r)?xT(i):Ts(0);let c=(a.left+u.x)/l.x,f=(a.top+u.y)/l.y,g=a.width/l.x,h=a.height/l.y;if(i){const x=ha(i),b=r&&Xa(r)?ha(r):r;let E=x,_=bx(E);for(;_&&r&&b!==E;){const C=Tu(_),w=_.getBoundingClientRect(),N=Ka(_),R=w.left+(_.clientLeft+parseFloat(N.paddingLeft))*C.x,z=w.top+(_.clientTop+parseFloat(N.paddingTop))*C.y;c*=C.x,f*=C.y,g*=C.x,h*=C.y,c+=R,f+=z,E=ha(_),_=bx(E)}}return Ih({width:g,height:h,x:c,y:f})}function Np(e,t){const n=kp(e).scrollLeft;return t?t.left+n:eo(Cs(e)).left+n}function bT(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Np(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function zj(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const i=a==="fixed",l=Cs(r),u=t?Cp(t.floating):!1;if(r===l||u&&i)return n;let c={scrollLeft:0,scrollTop:0},f=Ts(1);const g=Ts(0),h=ws(r);if((h||!h&&!i)&&((qu(r)!=="body"||nd(l))&&(c=kp(r)),ws(r))){const b=eo(r);f=Tu(r),g.x=b.x+r.clientLeft,g.y=b.y+r.clientTop}const x=l&&!h&&!i?bT(l,c):Ts(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+g.x+x.x,y:n.y*f.y-c.scrollTop*f.y+g.y+x.y}}function Fj(e){return Array.from(e.getClientRects())}function Hj(e){const t=Cs(e),n=kp(e),r=e.ownerDocument.body,a=ca(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ca(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Np(e);const u=-n.scrollTop;return Ka(r).direction==="rtl"&&(l+=ca(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:l,y:u}}const S8=25;function Uj(e,t){const n=ha(e),r=Cs(e),a=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,u=0,c=0;if(a){i=a.width,l=a.height;const g=$b();(!g||g&&t==="fixed")&&(u=a.offsetLeft,c=a.offsetTop)}const f=Np(r);if(f<=0){const g=r.ownerDocument,h=g.body,x=getComputedStyle(h),b=g.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,E=Math.abs(r.clientWidth-h.clientWidth-b);E<=S8&&(i-=E)}else f<=S8&&(i+=f);return{width:i,height:l,x:u,y:c}}const qj=new Set(["absolute","fixed"]);function $j(e,t){const n=eo(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=ws(e)?Tu(e):Ts(1),l=e.clientWidth*i.x,u=e.clientHeight*i.y,c=a*i.x,f=r*i.y;return{width:l,height:u,x:c,y:f}}function _8(e,t,n){let r;if(t==="viewport")r=Uj(e,n);else if(t==="document")r=Hj(Cs(e));else if(Xa(t))r=$j(t,n);else{const a=xT(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Ih(r)}function yT(e,t){const n=ul(e);return n===t||!Xa(n)||Du(n)?!1:Ka(n).position==="fixed"||yT(n,t)}function Vj(e,t){const n=t.get(e);if(n)return n;let r=j0(e,[],!1).filter(u=>Xa(u)&&qu(u)!=="body"),a=null;const i=Ka(e).position==="fixed";let l=i?ul(e):e;for(;Xa(l)&&!Du(l);){const u=Ka(l),c=qb(l);!c&&u.position==="fixed"&&(a=null),(i?!c&&!a:!c&&u.position==="static"&&!!a&&qj.has(a.position)||nd(l)&&!c&&yT(e,l))?r=r.filter(g=>g!==l):a=u,l=ul(l)}return t.set(e,r),r}function Gj(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const l=[...n==="clippingAncestors"?Cp(t)?[]:Vj(t,this._c):[].concat(n),r],u=l[0],c=l.reduce((f,g)=>{const h=_8(t,g,a);return f.top=ca(h.top,f.top),f.right=ol(h.right,f.right),f.bottom=ol(h.bottom,f.bottom),f.left=ca(h.left,f.left),f},_8(t,u,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Yj(e){const{width:t,height:n}=gT(e);return{width:t,height:n}}function Qj(e,t,n){const r=ws(t),a=Cs(t),i=n==="fixed",l=eo(e,!0,i,t);let u={scrollLeft:0,scrollTop:0};const c=Ts(0);function f(){c.x=Np(a)}if(r||!r&&!i)if((qu(t)!=="body"||nd(a))&&(u=kp(t)),r){const b=eo(t,!0,i,t);c.x=b.x+t.clientLeft,c.y=b.y+t.clientTop}else a&&f();i&&!r&&a&&f();const g=a&&!r&&!i?bT(a,u):Ts(0),h=l.left+u.scrollLeft-c.x-g.x,x=l.top+u.scrollTop-c.y-g.y;return{x:h,y:x,width:l.width,height:l.height}}function Hg(e){return Ka(e).position==="static"}function T8(e,t){if(!ws(e)||Ka(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Cs(e)===n&&(n=n.ownerDocument.body),n}function vT(e,t){const n=ha(e);if(Cp(e))return n;if(!ws(e)){let a=ul(e);for(;a&&!Du(a);){if(Xa(a)&&!Hg(a))return a;a=ul(a)}return n}let r=T8(e,t);for(;r&&Pj(r)&&Hg(r);)r=T8(r,t);return r&&Du(r)&&Hg(r)&&!qb(r)?n:r||Ij(e)||n}const Xj=async function(e){const t=this.getOffsetParent||vT,n=this.getDimensions,r=await n(e.floating);return{reference:Qj(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Kj(e){return Ka(e).direction==="rtl"}const Wj={convertOffsetParentRelativeRectToViewportRelativeRect:zj,getDocumentElement:Cs,getClippingRect:Gj,getOffsetParent:vT,getElementRects:Xj,getClientRects:Fj,getDimensions:Yj,getScale:Tu,isElement:Xa,isRTL:Kj};function ET(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Zj(e,t){let n=null,r;const a=Cs(e);function i(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function l(u,c){u===void 0&&(u=!1),c===void 0&&(c=1),i();const f=e.getBoundingClientRect(),{left:g,top:h,width:x,height:b}=f;if(u||t(),!x||!b)return;const E=Ff(h),_=Ff(a.clientWidth-(g+x)),C=Ff(a.clientHeight-(h+b)),w=Ff(g),R={rootMargin:-E+"px "+-_+"px "+-C+"px "+-w+"px",threshold:ca(0,ol(1,c))||1};let z=!0;function B(j){const L=j[0].intersectionRatio;if(L!==c){if(!z)return l();L?l(!1,L):r=setTimeout(()=>{l(!1,1e-7)},1e3)}L===1&&!ET(f,e.getBoundingClientRect())&&l(),z=!1}try{n=new IntersectionObserver(B,{...R,root:a.ownerDocument})}catch{n=new IntersectionObserver(B,R)}n.observe(e)}return l(!0),i}function Jj(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,f=Vb(e),g=a||i?[...f?j0(f):[],...j0(t)]:[];g.forEach(w=>{a&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const h=f&&u?Zj(f,n):null;let x=-1,b=null;
vendor: 7,185 bytes, line 50
50l&&(b=new ResizeObserver(w=>{let[N]=w;N&&N.target===f&&b&&(b.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var R;(R=b)==null||R.observe(t)})),n()}),f&&!c&&b.observe(f),b.observe(t));let E,_=c?eo(e):null;c&&C();function C(){const w=eo(e);_&&!ET(_,w)&&n(),_=w,E=requestAnimationFrame(C)}return n(),()=>{var w;g.forEach(N=>{a&&N.removeEventListener("scroll",n),i&&N.removeEventListener("resize",n)}),h?.(),(w=b)==null||w.disconnect(),b=null,c&&cancelAnimationFrame(E)}}const eB=Tj,tB=wj,nB=Ej,rB=Cj,aB=Sj,w8=vj,sB=Aj,iB=(e,t,n)=>{const r=new Map,a={platform:Wj,...n},i={...a.platform,_c:r};return yj(e,t,{...a,platform:i})};var lB=typeof document<"u",oB=function(){},vh=lB?A.useLayoutEffect:oB;function Lh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Lh(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const i=a[r];if(!(i==="_owner"&&e.$$typeof)&&!Lh(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ST(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function A8(e,t){const n=ST(e);return Math.round(t*n)/n}function Ug(e){const t=A.useRef(e);return vh(()=>{t.current=e}),t}function uB(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:i,floating:l}={},transform:u=!0,whileElementsMounted:c,open:f}=e,[g,h]=A.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,b]=A.useState(r);Lh(x,r)||b(r);const[E,_]=A.useState(null),[C,w]=A.useState(null),N=A.useCallback(J=>{J!==j.current&&(j.current=J,_(J))},[]),R=A.useCallback(J=>{J!==L.current&&(L.current=J,w(J))},[]),z=i||E,B=l||C,j=A.useRef(null),L=A.useRef(null),Y=A.useRef(g),Z=c!=null,$=Ug(c),te=Ug(a),ee=Ug(f),he=A.useCallback(()=>{if(!j.current||!L.current)return;const J={placement:t,strategy:n,middleware:x};te.current&&(J.platform=te.current),iB(j.current,L.current,J).then(Te=>{const q={...Te,isPositioned:ee.current!==!1};ie.current&&!Lh(Y.current,q)&&(Y.current=q,td.flushSync(()=>{h(q)}))})},[x,t,n,te,ee]);vh(()=>{f===!1&&Y.current.isPositioned&&(Y.current.isPositioned=!1,h(J=>({...J,isPositioned:!1})))},[f]);const ie=A.useRef(!1);vh(()=>(ie.current=!0,()=>{ie.current=!1}),[]),vh(()=>{if(z&&(j.current=z),B&&(L.current=B),z&&B){if($.current)return $.current(z,B,he);he()}},[z,B,he,$,Z]);const ne=A.useMemo(()=>({reference:j,floating:L,setReference:N,setFloating:R}),[N,R]),H=A.useMemo(()=>({reference:z,floating:B}),[z,B]),re=A.useMemo(()=>{const J={position:n,left:0,top:0};if(!H.floating)return J;const Te=A8(H.floating,g.x),q=A8(H.floating,g.y);return u?{...J,transform:"translate("+Te+"px, "+q+"px)",...ST(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Te,top:q}},[n,u,H.floating,g.x,g.y]);return A.useMemo(()=>({...g,update:he,refs:ne,elements:H,floatingStyles:re}),[g,he,ne,H,re])}const cB=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?w8({element:r.current,padding:a}).fn(n):{}:r?w8({element:r,padding:a}).fn(n):{}}}},dB=(e,t)=>({...eB(e),options:[e,t]}),fB=(e,t)=>({...tB(e),options:[e,t]}),hB=(e,t)=>({...sB(e),options:[e,t]}),pB=(e,t)=>({...nB(e),options:[e,t]}),mB=(e,t)=>({...rB(e),options:[e,t]}),gB=(e,t)=>({...aB(e),options:[e,t]}),xB=(e,t)=>({...cB(e),options:[e,t]});var bB="Arrow",_T=A.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...i}=e;return p.jsx(dt.svg,{...i,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});_T.displayName=bB;var yB=_T;function TT(e){const[t,n]=A.useState(void 0);return Wn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let l,u;if("borderBoxSize"in i){const c=i.borderBoxSize,f=Array.isArray(c)?c[0]:c;l=f.inlineSize,u=f.blockSize}else l=e.offsetWidth,u=e.offsetHeight;n({width:l,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Gb="Popper",[wT,Pp]=gi(Gb),[vB,AT]=wT(Gb),CT=e=>{const{__scopePopper:t,children:n}=e,[r,a]=A.useState(null);return p.jsx(vB,{scope:t,anchor:r,onAnchorChange:a,children:n})};CT.displayName=Gb;var kT="PopperAnchor",NT=A.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,i=AT(kT,n),l=A.useRef(null),u=$t(t,l),c=A.useRef(null);return A.useEffect(()=>{const f=c.current;c.current=r?.current||l.current,f!==c.current&&i.onAnchorChange(c.current)}),r?null:p.jsx(dt.div,{...a,ref:u})});NT.displayName=kT;var Yb="PopperContent",[EB,SB]=wT(Yb),PT=A.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:i="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:c=!0,collisionBoundary:f=[],collisionPadding:g=0,sticky:h="partial",hideWhenDetached:x=!1,updatePositionStrategy:b="optimized",onPlaced:E,..._}=e,C=AT(Yb,n),[w,N]=A.useState(null),R=$t(t,ve=>N(ve)),[z,B]=A.useState(null),j=TT(z),L=j?.width??0,Y=j?.height??0,Z=r+(i!=="center"?"-"+i:""),$=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},te=Array.isArray(f)?f:[f],ee=te.length>0,he={padding:$,boundary:te.filter(TB),altBoundary:ee},{refs:ie,floatingStyles:ne,placement:H,isPositioned:re,middlewareData:J}=uB({strategy:"fixed",placement:Z,whileElementsMounted:(...ve)=>Jj(...ve,{animationFrame:b==="always"}),elements:{reference:C.anchor},middleware:[dB({mainAxis:a+Y,alignmentAxis:l}),c&&fB({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?hB():void 0,...he}),c&&pB({...he}),mB({...he,apply:({elements:ve,rects:Ie,availableWidth:Ue,availableHeight:Qe})=>{const{width:rt,height:lt}=Ie.reference,hn=ve.floating.style;hn.setProperty("--radix-popper-available-width",`${Ue}px`),hn.setProperty("--radix-popper-available-height",`${Qe}px`),hn.setProperty("--radix-popper-anchor-width",`${rt}px`),hn.setProperty("--radix-popper-anchor-height",`${lt}px`)}}),z&&xB({element:z,padding:u}),wB({arrowWidth:L,arrowHeight:Y}),x&&gB({strategy:"referenceHidden",...he})]}),[Te,q]=MT(H),G=ui(E);Wn(()=>{re&&G?.()},[re,G]);const oe=J.arrow?.x,M=J.arrow?.y,pe=J.arrow?.centerOffset!==0,[_e,Re]=A.useState();return Wn(()=>{w&&Re(window.getComputedStyle(w).zIndex)},[w]),p.jsx("div",{ref:ie.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:re?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_e,"--radix-popper-transform-origin":[J.transformOrigin?.x,J.transformOrigin?.y].join(" "),...J.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(EB,{scope:n,placedSide:Te,onArrowChange:B,arrowX:oe,arrowY:M,shouldHideArrow:pe,children:p.jsx(dt.div,{"data-side":Te,"data-align":q,..._,ref:R,style:{..._.style,animation:re?void 0:"none"}})})})});PT.displayName=Yb;var RT="PopperArrow",_B={top:"bottom",right:"left",bottom:"top",left:"r
50ight"},OT=A.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,i=SB(RT,r),l=_B[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]: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:p.jsx(yB,{...a,ref:n,style:{...a.style,display:"block"}})})});OT.displayName=RT;function TB(e){return e!==null}var wB=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:a}=t,l=a.arrow?.centerOffset!==0,u=l?0:e.arrowWidth,c=l?0:e.arrowHeight,[f,g]=MT(n),h={start:"0%",center:"50%",end:"100%"}[g],x=(a.arrow?.x??0)+u/2,b=(a.arrow?.y??0)+c/2;let E="",_="";return f==="bottom"?(E=l?h:`${x}px`,_=`${-c}px`):f==="top"?(E=l?h:`${x}px`,_=`${r.floating.height+c}px`):f==="right"?(E=`${-c}px`,_=l?h:`${b}px`):f==="left"&&(E=`${r.floating.width+c}px`,_=l?h:`${b}px`),{data:{x:E,y:_}}}});function MT(e){const[t,n="center"]=e.split("-");return[t,n]}var AB=CT,DT=NT,IT=PT,LT=OT,CB="Portal",Qb=A.forwardRef((e,t)=>{const{container:n,...r}=e,[a,i]=A.useState(!1);Wn(()=>i(!0),[]);const l=n||a&&globalThis?.document?.body;return l?iT.createPortal(p.jsx(dt.div,{...r,ref:t}),l):null});Qb.displayName=CB;function kB(e,t){return A.useReducer((n,r)=>t[n][r]??n,e)}var $u=e=>{const{present:t,children:n}=e,r=NB(t),a=typeof n=="function"?n({present:r.isPresent}):A.Children.only(n),i=$t(r.ref,PB(a));return typeof n=="function"||r.isPresent?A.cloneElement(a,{ref:i}):null};$u.displayName="Presence";function NB(e){const[t,n]=A.useState(),r=A.useRef(null),a=A.useRef(e),i=A.useRef("none"),l=e?"mounted":"unmounted",[u,c]=kB(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return A.useEffect(()=>{const f=Hf(r.current);i.current=u==="mounted"?f:"none"},[u]),Wn(()=>{const f=r.current,g=a.current;if(g!==e){const x=i.current,b=Hf(f);e?c("MOUNT"):b==="none"||f?.display==="none"?c("UNMOUNT"):c(g&&x!==b?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),Wn(()=>{if(t){let f;const g=t.ownerDocument.defaultView??window,h=b=>{const _=Hf(r.current).includes(CSS.escape(b.animationName));if(b.target===t&&_&&(c("ANIMATION_END"),!a.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",f=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},x=b=>{b.target===t&&(i.current=Hf(r.current))};return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{g.clearTimeout(f),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:A.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function Hf(e){return e?.animationName||"none"}function PB(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var RB=bp[" useInsertionEffect ".trim().toString()]||Wn;function Iu({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,i,l]=OB({defaultProp:t,onChange:n}),u=e!==void 0,c=u?e:a;{const g=A.useRef(e!==void 0);A.useEffect(()=>{const h=g.current;h!==u&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${u?"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.`),g.current=u},[u,r])}const f=A.useCallback(g=>{if(u){const h=MB(g)?g(e):g;h!==e&&l.current?.(h)}else i(g)},[u,e,i,l]);return[c,f]}function OB({defaultProp:e,onChange:t}){const[n,r]=A.useState(e),a=A.useRef(n),i=A.useRef(t);return RB(()=>{i.current=t},[t]),A.useEffect(()=>{a.current!==n&&(i.current?.(n),a.current=n)},[n,a]),[n,r,i]}function MB(e){return typeof e=="function"}var jT=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"}),DB="VisuallyHidden",BT=A.forwardRef((e,t)=>
vendor: 2,767 bytes, line 50
50p.jsx(dt.span,{...e,ref:t,style:{...jT,...e.style}}));BT.displayName=DB;var IB=BT,[Rp]=gi("Tooltip",[Pp]),Xb=Pp(),zT="TooltipProvider",LB=700,C8="tooltip.open",[jB,FT]=Rp(zT),HT=e=>{const{__scopeTooltip:t,delayDuration:n=LB,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:i}=e,l=A.useRef(!0),u=A.useRef(!1),c=A.useRef(0);return A.useEffect(()=>{const f=c.current;return()=>window.clearTimeout(f)},[]),p.jsx(jB,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:A.useCallback(()=>{window.clearTimeout(c.current),l.current=!1},[]),onClose:A.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:u,onPointerInTransitChange:A.useCallback(f=>{u.current=f},[]),disableHoverableContent:a,children:i})};HT.displayName=zT;var UT="Tooltip",[Boe,Op]=Rp(UT),yx="TooltipTrigger",BB=A.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=Op(yx,n),i=FT(yx,n),l=Xb(n),u=A.useRef(null),c=$t(t,u,a.onTriggerChange),f=A.useRef(!1),g=A.useRef(!1),h=A.useCallback(()=>f.current=!1,[]);return A.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),p.jsx(DT,{asChild:!0,...l,children:p.jsx(dt.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:c,onPointerMove:st(e.onPointerMove,x=>{x.pointerType!=="touch"&&!g.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),g.current=!0)}),onPointerLeave:st(e.onPointerLeave,()=>{a.onTriggerLeave(),g.current=!1}),onPointerDown:st(e.onPointerDown,()=>{a.open&&a.onClose(),f.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:st(e.onFocus,()=>{f.current||a.onOpen()}),onBlur:st(e.onBlur,a.onClose),onClick:st(e.onClick,a.onClose)})})});BB.displayName=yx;var zB="TooltipPortal",[zoe,FB]=Rp(zB,{forceMount:void 0}),Lu="TooltipContent",HB=A.forwardRef((e,t)=>{const n=FB(Lu,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...i}=e,l=Op(Lu,e.__scopeTooltip);return p.jsx($u,{present:r||l.open,children:l.disableHoverableContent?p.jsx(qT,{side:a,...i,ref:t}):p.jsx(UB,{side:a,...i,ref:t})})}),UB=A.forwardRef((e,t)=>{const n=Op(Lu,e.__scopeTooltip),r=FT(Lu,e.__scopeTooltip),a=A.useRef(null),i=$t(t,a),[l,u]=A.useState(null),{trigger:c,onClose:f}=n,g=a.current,{onPointerInTransitChange:h}=r,x=A.useCallback(()=>{u(null),h(!1)},[h]),b=A.useCallback((E,_)=>{const C=E.currentTarget,w={x:E.clientX,y:E.clientY},N=YB(w,C.getBoundingClientRect()),R=QB(w,N),z=XB(_.getBoundingClientRect()),B=WB([...R,...z]);u(B),h(!0)},[h]);return A.useEffect(()=>()=>x(),[x]),A.useEffect(()=>{if(c&&g){const E=C=>b(C,g),_=C=>b(C,c);return c.addEventListener("pointerleave",E),g.addEventListener("pointerleave",_),()=>{c.removeEventListener("pointerleave",E),g.removeEventListener("pointerleave",_)}
vendor: 10,298 bytes, line 50
50}},[c,g,b,x]),A.useEffect(()=>{if(l){const E=_=>{const C=_.target,w={x:_.clientX,y:_.clientY},N=c?.contains(C)||g?.contains(C),R=!KB(w,l);N?x():R&&(x(),f())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[c,g,l,f,x]),p.jsx(qT,{...e,ref:i})}),[qB,$B]=Rp(UT,{isInside:!1}),VB=GL("TooltipContent"),qT=A.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:l,...u}=e,c=Op(Lu,n),f=Xb(n),{onClose:g}=c;return A.useEffect(()=>(document.addEventListener(C8,g),()=>document.removeEventListener(C8,g)),[g]),A.useEffect(()=>{if(c.trigger){const h=x=>{x.target?.contains(c.trigger)&&g()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,g]),p.jsx(wp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:h=>h.preventDefault(),onDismiss:g,children:p.jsxs(IT,{"data-state":c.stateAttribute,...f,...u,ref:t,style:{...u.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:[p.jsx(VB,{children:r}),p.jsx(qB,{scope:n,isInside:!0,children:p.jsx(IB,{id:c.contentId,role:"tooltip",children:a||r})})]})})});HB.displayName=Lu;var $T="TooltipArrow",GB=A.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=Xb(n);return $B($T,n).isInside?null:p.jsx(LT,{...a,...r,ref:t})});GB.displayName=$T;function YB(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,a,i)){case i:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function QB(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function XB(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function KB(e,t){const{x:n,y:r}=e;let a=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const u=t[i],c=t[l],f=u.x,g=u.y,h=c.x,x=c.y;g>r!=x>r&&n<(h-f)*(r-g)/(x-g)+f&&(a=!a)}return a}function WB(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),ZB(t)}function ZB(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(a.y-l.y)>=(i.y-l.y)*(a.x-l.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;n.length>=2;){const i=n[n.length-1],l=n[n.length-2];if((i.x-l.x)*(a.y-l.y)>=(i.y-l.y)*(a.x-l.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var JB=HT;function VT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=VT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Kb(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=VT(e))&&(r&&(r+=" "),r+=t);return r}const Wb="-",ez=e=>{const t=nz(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const u=l.split(Wb);return u[0]===""&&u.length!==1&&u.shift(),GT(u,t)||tz(l)},getConflictingClassGroupIds:(l,u)=>{const c=n[l]||[];return u&&r[l]?[...c,...r[l]]:c}}},GT=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?GT(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(Wb);return t.validators.find(({validator:l})=>l(i))?.classGroupId},k8=/^\[(.+)\]$/,tz=e=>{if(k8.test(e)){const t=k8.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},nz=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)vx(n[a],r,a,t);return r},vx=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:N8(t,a);i.classGroupId=n;return}if(typeof a=="function"){if(rz(a)){vx(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([i,l])=>{vx(l,N8(t,i),n,r)})})},N8=(e,t)=>{let n=e;return t.split(Wb).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},rz=e=>e.isThemeGetter,az=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(i,l)=>{n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return a(i,l),l},set(i,l){n.has(i)?n.set(i,l):a(i,l)}}},Ex="!",Sx=":",sz=Sx.length,iz=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const i=[];let l=0,u=0,c=0,f;for(let E=0;E<a.length;E++){let _=a[E];if(l===0&&u===0){if(_===Sx){i.push(a.slice(c,E)),c=E+sz;continue}if(_==="/"){f=E;continue}}_==="["?l++:_==="]"?l--:_==="("?u++:_===")"&&u--}const g=i.length===0?a:a.substring(c),h=lz(g),x=h!==g,b=f&&f>c?f-c:void 0;return{modifiers:i,hasImportantModifier:x,baseClassName:h,maybePostfixModifierPosition:b}};if(t){const a=t+Sx,i=r;r=l=>l.startsWith(a)?i(l.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const a=r;r=i=>n({className:i,parseClassName:a})}return r},lz=e=>e.endsWith(Ex)?e.substring(0,e.length-1):e.startsWith(Ex)?e.substring(1):e,oz=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const a=[];let i=[];return r.forEach(l=>{l[0]==="["||t[l]?(a.push(...i.sort(),l),i=[]):i.push(l)}),a.push(...i.sort()),a}},uz=e=>({cache:az(e.cacheSize),parseClassName:iz(e),sortModifiers:oz(e),...ez(e)}),cz=/\s+/,dz=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:i}=t,l=[],u=e.trim().split(cz);let c="";for(let f=u.length-1;f>=0;f-=1){const g=u[f],{isExternal:h,modifiers:x,hasImportantModifier:b,baseClassName:E,maybePostfixModifierPosition:_}=n(g);if(h){c=g+(c.length>0?" "+c:c);continue}let C=!!_,w=r(C?E.substring(0,_):E);if(!w){if(!C){c=g+(c.length>0?" "+c:c);continue}if(w=r(E),!w){c=g+(c.length>0?" "+c:c);continue}C=!1}const N=i(x).join(":"),R=b?N+Ex:N,z=R+w;if(l.includes(z))continue;l.push(z);const B=a(w,C);for(let j=0;j<B.length;++j){const L=B[j];l.push(R+L)}c=g+(c.length>0?" "+c:c)}return c};function fz(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=YT(t))&&(r&&(r+=" "),r+=n);return r}const YT=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=YT(e[r]))&&(n&&(n+=" "),n+=t);return n};function hz(e,...t){let n,r,a,i=l;function l(c){const f=t.reduce((g,h)=>h(g),e());return n=uz(f),r=n.cache.get,a=n.cache.set,i=u,u(c)}function u(c){const f=r(c);if(f)return f;const g=dz(c,n);return a(c,g),g}return function(){return i(fz.apply(null,arguments))}}const Qn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},QT=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,XT=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pz=/^\d+\/\d+$/,mz=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gz=/\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$/,xz=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bz=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yz=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lu=e=>pz.test(e),bt=e=>!!e&&!Number.isNaN(Number(e)),$i=e=>!!e&&Number.isInteger(Number(e)),qg=e=>e.endsWith("%")&&bt(e.slice(0,-1)),Ws=e=>mz.test(e),vz=()=>!0,Ez=e=>gz.test(e)&&!xz.test(e),KT=()=>!1,Sz=e=>bz.test(e),_z=e=>yz.test(e),Tz=e=>!qe(e)&&!$e(e),wz=e=>Vu(e,JT,KT),qe=e=>QT.test(e),Bl=e=>Vu(e,ew,Ez),$g=e=>Vu(e,Pz,bt),P8=e=>Vu(e,WT,KT),Az=e=>Vu(e,ZT,_z),Uf=e=>Vu(e,tw,Sz),$e=e=>XT.test(e),Zc=e=>Gu(e,ew),Cz=e=>Gu(e,Rz),R8=e=>Gu(e,WT),kz=e=>Gu(e,JT),Nz=e=>Gu(e,ZT),qf=e=>Gu(e,tw,!0),Vu=(e,t,n)=>{const r=QT.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Gu=(e,t,n=!1)=>{const r=XT.exec(e);return r?r[1]?t(r[1]):n:!1},WT=e=>e==="position"||e==="percentage",ZT=e=>e==="image"||e==="url",JT=e=>e==="length"||e==="size"||e==="bg-size",ew=e=>e==="length",Pz=e=>e==="number",Rz=e=>e==="family-name",tw=e=>e==="shadow",Oz=()=>{const e=Qn("color"),t=Qn("font"),n=Qn("text"),r=Qn("font-weight"),a=Qn("tracking"),i=Qn("leading"),l=Qn("breakpoint"),u=Qn("container"),c=Qn("spacing"),f=Qn("radius"),g=Qn("shadow"),h=Qn("inset-shadow"),x=Qn("text-shadow"),b=Qn("drop-shadow"),E=Qn("blur"),_=Qn("perspective"),C=Qn("aspect"),w=Qn("ease"),N=Qn("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...z(),$e,qe],j=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],Y=()=>[$e,qe,c],Z=()=>[lu,"full","auto",...Y()],$=()=>[$i,"none","subgrid",$e,qe],te=()=>["auto",{span:["full",$i,$e,qe]},$i,$e,qe],ee=()=>[$i,"auto",$e,qe],he=()=>["auto","min","max","fr",$e,qe],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...Y()],re=()=>[lu,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Y()],J=()=>[e,$e,qe],Te=()=>[...z(),R8,P8,{position:[$e,qe]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],G=()=>["auto","cover","contain",kz,wz,{size:[$e,qe]}],oe=()=>[qg,Zc,Bl],M=()=>["","none","full",f,$e,qe],pe=()=>["",bt,Zc,Bl],_e=()=>["solid","dashed","dotted","double"],Re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[bt,qg,R8,P8],Ie=()=>["","none",E,$e,qe],Ue=()=>
vendor: 6,365 bytes, line 50
50["none",bt,$e,qe],Qe=()=>["none",bt,$e,qe],rt=()=>[bt,$e,qe],lt=()=>[lu,"full",...Y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ws],breakpoint:[Ws],color:[vz],container:[Ws],"drop-shadow":[Ws],ease:["in","out","in-out"],font:[Tz],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ws],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ws],shadow:[Ws],spacing:["px",bt],text:[Ws],"text-shadow":[Ws],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",lu,qe,$e,C]}],container:["container"],columns:[{columns:[bt,qe,$e,u]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"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:B()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],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:[$i,"auto",$e,qe]}],basis:[{basis:[lu,"full","auto",u,...Y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[bt,lu,"auto","initial","none",qe]}],grow:[{grow:["",bt,$e,qe]}],shrink:[{shrink:["",bt,$e,qe]}],order:[{order:[$i,"first","last","none",$e,qe]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:Y()}],"gap-x":[{"gap-x":Y()}],"gap-y":[{"gap-y":Y()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:Y()}],px:[{px:Y()}],py:[{py:Y()}],ps:[{ps:Y()}],pe:[{pe:Y()}],pt:[{pt:Y()}],pr:[{pr:Y()}],pb:[{pb:Y()}],pl:[{pl:Y()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":Y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Y()}],"space-y-reverse":["space-y-reverse"],size:[{size:re()}],w:[{w:[u,"screen",...re()]}],"min-w":[{"min-w":[u,"screen","none",...re()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...re()]}],h:[{h:["screen","lh",...re()]}],"min-h":[{"min-h":["screen","lh","none",...re()]}],"max-h":[{"max-h":["screen","lh",...re()]}],"font-size":[{text:["base",n,Zc,Bl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,$e,$g]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",qg,qe]}],"font-family":[{font:[Cz,qe,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,$e,qe]}],"line-clamp":[{"line-clamp":[bt,"none",$e,$g]}],leading:[{leading:[i,...Y()]}],"list-image":[{"list-image":["none",$e,qe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$e,qe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:J()}],"text-color":[{text:J()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._e(),"wavy"]}],"text-decoration-thickness":[{decoration:[bt,"from-font","auto",$e,Bl]}],"text-decoration-color":[{decoration:J()}],"underline-offset":[{"underline-offset":[bt,"auto",$e,qe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$e,qe]}],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",$e,qe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Te()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:G()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$i,$e,qe],radial:["",$e,qe],conic:[$i,$e,qe]},Nz,Az]}],"bg-color":[{bg:J()}],"gradient-from-pos":[{from:oe()}
vendor: 7,242 bytes, line 50
50],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:J()}],"gradient-via":[{via:J()}],"gradient-to":[{to:J()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[..._e(),"hidden","none"]}],"divide-style":[{divide:[..._e(),"hidden","none"]}],"border-color":[{border:J()}],"border-color-x":[{"border-x":J()}],"border-color-y":[{"border-y":J()}],"border-color-s":[{"border-s":J()}],"border-color-e":[{"border-e":J()}],"border-color-t":[{"border-t":J()}],"border-color-r":[{"border-r":J()}],"border-color-b":[{"border-b":J()}],"border-color-l":[{"border-l":J()}],"divide-color":[{divide:J()}],"outline-style":[{outline:[..._e(),"none","hidden"]}],"outline-offset":[{"outline-offset":[bt,$e,qe]}],"outline-w":[{outline:["",bt,Zc,Bl]}],"outline-color":[{outline:J()}],shadow:[{shadow:["","none",g,qf,Uf]}],"shadow-color":[{shadow:J()}],"inset-shadow":[{"inset-shadow":["none",h,qf,Uf]}],"inset-shadow-color":[{"inset-shadow":J()}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:J()}],"ring-offset-w":[{"ring-offset":[bt,Bl]}],"ring-offset-color":[{"ring-offset":J()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":J()}],"text-shadow":[{"text-shadow":["none",x,qf,Uf]}],"text-shadow-color":[{"text-shadow":J()}],opacity:[{opacity:[bt,$e,qe]}],"mix-blend":[{"mix-blend":[...Re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Re()}],"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":[bt]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":J()}],"mask-image-linear-to-color":[{"mask-linear-to":J()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":J()}],"mask-image-t-to-color":[{"mask-t-to":J()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":J()}],"mask-image-r-to-color":[{"mask-r-to":J()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":J()}],"mask-image-b-to-color":[{"mask-b-to":J()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":J()}],"mask-image-l-to-color":[{"mask-l-to":J()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":J()}],"mask-image-x-to-color":[{"mask-x-to":J()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":J()}],"mask-image-y-to-color":[{"mask-y-to":J()}],"mask-image-radial":[{"mask-radial":[$e,qe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":J()}],"mask-image-radial-to-color":[{"mask-radial-to":J()}],"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":z()}],"mask-image-conic-pos":[{"mask-conic":[bt]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":J()}],"mask-image-conic-to-color":[{"mask-conic-to":J()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Te()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:G()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$e,qe]}],filter:[{filter:["","none",$e,qe]}],blur:[{blur:Ie()}],brightness:[{brightness:[bt,$e,qe]}],contrast:[{contrast:[bt,$e,qe]}],"drop-shadow":[{"drop-shadow":["","none",b,qf,Uf]}],"drop-shadow-color":[{"drop-shadow":J()}],grayscale:[{grayscale:["",bt,$e,qe]}],"hue-rotate":[{"hue-rotate":[bt,$e,qe]}],invert:[{invert:["",bt,$e,qe]}],saturate:[{saturate:[bt,$e,qe]}],sepia:[{sepia:["",bt,$e,qe]}],"backdrop-filter":[{"backdrop-filter":["","none",$e,qe]}],"backdrop-blur":[{"backdrop-blur":Ie()}],"backdrop-brightness":[{"backdrop-brightness":[bt,$e,qe]}],"backdrop-contrast":[{"backdrop-contrast":[bt,$e,qe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",bt,$e,qe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[bt,$e,qe]}],"backdrop-invert":[{"backdrop-invert":["",bt,$e,qe]}],"backdrop-opacity":[{"backdrop-opacity":[bt,$e,qe]}],"backdrop-saturate":[{"backdrop-saturate":[bt,$e,qe]}],"backdrop-sepia":[{"backdrop-sepia":["",bt,$e,qe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Y()}],"border-spacing-x":[{"border-spacing-x":Y()}],"border-spacing-y":[{"border-spacing-y":Y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$e,qe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[bt,"initial",$e,qe]}],ease:[{ease:["linear","initial",w,$e,qe]}],delay:[{delay:[bt,$e,qe]}],animate:[{animate:["none",N,$e,qe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,$e,qe]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:Ue()}],"rotate-x":[{"rotate-x":Ue()}],"rotate-y":[{"rotate-y":Ue()}],"rotate-z":[{"rotate-z":Ue()}],scale:[{scale:Qe()}],"scale-x":[{"scale-x":Qe()}],"scale-y":[{"scale-y":Qe()}],"scale-z":[{"scale-z":Qe()}],"scale-3d":["scale-3d"],skew:[{skew:rt()}],"skew-x":[{"skew-x":rt()}],"skew-y":[{"skew-y":rt()}],transform:[{transform:[$e,qe,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:lt()}],"translate-x":[{"translate-x":lt()}],"translate-y":[{"translate-y":lt()}],"translate-z":[{"translate-z":lt()}],"translate-none":["translate-none"],accent:[{accent:J()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:J()}
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",$e,qe]}],"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":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"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",$e,qe]}],fill:[{fill:["none",...J()]}],"stroke-w":[{stroke:[bt,Zc,Bl,$g]}],stroke:[{stroke:["none",...J()]}],"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"]}},nw=hz(Oz);function kt(...e){return nw(Kb(e))}function Mz({delayDuration:e=0,...t}){return p.jsx(JB,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:e,...t})}function Dz(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,a,i,l=[],u="",c=e.split("/");for(c[0]||c.shift();a=c.shift();)n=a[0],n==="*"?(l.push(n),u+=a[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=a.indexOf("?",1),i=a.indexOf(".",1),l.push(a.substring(1,~r?r:~i?i:a.length)),u+=~r&&!~i?"(?:/([^/]+?))?":"/([^/]+?)",~i&&(u+=(~r?"?":"")+"\\"+a.substring(i))):u+="/"+a;return{keys:l,pattern:new RegExp("^"+u+(t?"(?=$|/)":"/?$"),"i")}}var Vg={exports:{}},Gg={};/**
51 * @license React
52 * use-sync-external-store-shim.production.js
53 *
54 * Copyright (c) Meta Platforms, Inc. and affiliates.
55 *
56 * This source code is licensed under the MIT license found in the
57 * LICENSE file in the root directory of this source tree.
58 */var O8;function Iz(){if(O8)return Gg;O8=1;var e=xp();function t(h,x){return h===x&&(h!==0||1/h===1/x)||h!==h&&x!==x}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function u(h,x){var b=x(),E=r({inst:{value:b,getSnapshot:x}}),_=E[0].inst,C=E[1];return i(function(){_.value=b,_.getSnapshot=x,c(_)&&C({inst:_})},[h,b,x]),a(function(){return c(_)&&C({inst:_}),h(function(){c(_)&&C({inst:_})})},[h]),l(b),b}function c(h){var x=h.getSnapshot;h=h.value;try{var b=x();return!n(h,b)}catch{return!0}}function f(h,x){return x()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return Gg.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,Gg}var M8;function Lz(){return M8||(M8=1,Vg.exports=Iz()),Vg.exports}var rw=Lz();const jz=bp.useInsertionEffect,Bz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zz=Bz?A.useLayoutEffect:A.useEffect,Fz=jz||zz,aw=e
58=>{const t=A.useRef([e,(...n)=>t[0](...n)]).current;return Fz(()=>{t[0]=e}),t[1]},Hz="popstate",Zb="pushState",Jb="replaceState",Uz="hashchange",D8=[Hz,Zb,Jb,Uz],qz=e=>{for(const t of D8)addEventListener(t,e);return()=>{for(const t of D8)removeEventListener(t,e)}},sw=(e,t)=>rw.useSyncExternalStore(qz,e,t),$z=()=>location.search,Vz=({ssrSearch:e=""}={})=>sw($z,()=>e),I8=()=>location.pathname,Gz=({ssrPath:e}={})=>sw(I8,e?()=>e:I8),Yz=(e,{replace:t=!1,state:n=null}={})=>history[t?Jb:Zb](n,"",e),Qz=(e={})=>[Gz(e),Yz],L8=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[L8]>"u"){for(const e of[Zb,Jb]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,L8,{value:!0})}const Xz=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",iw=(e="")=>e==="/"?"":e,Kz=(e,t)=>e[0]==="~"?e.slice(1):iw(t)+e,Wz=(e="",t)=>Xz(j8(iw(e)),j8(t)),j8=e=>{try{return decodeURI(e)}catch{return e}},lw={hook:Qz,searchHook:Vz,parser:Dz,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},ow=A.createContext(lw),rd=()=>A.useContext(ow),uw={},cw=A.createContext(uw),ey=()=>A.useContext(cw),Mp=e=>{const[t,n]=e.hook(e);return[Wz(e.base,t),aw((r,a)=>n(Kz(r,e.base),a))]},dw=()=>Mp(rd()),fw=(e,t,n,r)=>{const{pattern:a,keys:i}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),l=a.exec(n)||[],[u,...c]=l;return u!==void 0?[!0,(()=>{const f=i!==!1?Object.fromEntries(i.map((h,x)=>[h,c[x]])):l.groups;let g={...c};return f&&Object.assign(g,f),g})(),...r?[u]:[]]:[!1,null]},Zz=({children:e,...t})=>{const n=rd(),r=t.hook?lw:n;let a=r;const[i,l]=t.ssrPath?.split("?")??[];l&&(t.ssrSearch=l,t.ssrPath=i),t.hrefs=t.hrefs??t.hook?.hrefs;let u=A.useRef({}),c=u.current,f=c;for(let g in r){const h=g==="base"?r[g]+(t[g]||""):t[g]||r[g];c===f&&h!==f[g]&&(u.current=f={...f}),f[g]=h,(h!==r[g]||h!==a[g])&&(a=f)}return A.createElement(ow.Provider,{value:a,children:e})},B8=({children:e,component:t},n)=>t?A.createElement(t,{params:n}):typeof e=="function"?e(n):e,Jz=e=>{let t=A.useRef(uw);const n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([r,a])=>a!==n[r])?e:n},Gr=({path:e,nest:t,match:n,...r})=>{const a=rd(),[i]=Mp(a),[l,u,c]=n??fw(a.parser,e,i,t),f=Jz({...ey(),...u});if(!l)return null;const g=c?A.createElement(Zz,{base:c},B8(r,f)):B8(r,f);return A.createElement(cw.Provider,{value:f,children:g})},Sr=A.forwardRef((e,t)=>{const n=rd(),[r,a]=Mp(n),{to:i="",href:l=i,onClick:u,asChild:c,children:f,className:g,replace:h,state:x,...b}=e,E=aw(C=>{C.ctrlKey||C.metaKey||C.altKey||C.shiftKey||C.button!==0||(u?.(C),C.defaultPrevented||(C.preventDefault(),a(l,e)))}),_=n.hrefs(l[0]==="~"?l.slice(1):n.base+l,n);return c&&A.isValidElement(f)?A.cloneElement(f,{onClick:E,href:_}):A.createElement("a",{...b,onClick:E,href:_,className:g?.call?g(r===l):g,children:f,ref:t})}),_x=e=>Array.isArray(e)?e.flatMap(t=>_x(t&&t.type===A.Fragment?t.props.children:t)):[e],eF=({children:e,location:t})=>{const n=rd(),[r]=Mp(n);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),_x(e).forEach(i=>{if(A.isValidElement(i)&&i.props.path){const l=i.props.path;window.__WOUTER_ROUTES__.includes(l)||window.__WOUTER_ROUTES__.push(l)}}));for(const a of _x(e)){let i=0;if(A.isValidElement(a)&&(i=fw(n.parser,a.props.path,t||r,a.props.nest))[0])return A.cloneElement(a,{match:i})}return null};/**
59 * @license lucide-react v0.453.0 - ISC
60 *
61 * This source code is licensed under the ISC license.
62 * See the LICENSE file in the root directory of this source tree.
63 */const tF=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),hw=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
64 * @license lucide-react v0.453.0 - ISC
65 *
66 * This source code is licensed under the ISC license.
67 * See the LICENSE file in the root directory of this source tree.
68 */var nF={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"};/**
69 * @license lucide-react v0.453.0 - ISC
70 *
71 * This source code is licensed under the ISC license.
72 * See the LICENSE file in the root directory of this source tree.
73 */const rF=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:l,...u},c)=>A.createElement("svg",{ref:c,...nF,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:hw("lucide",a),...u},[...l.map(([f,g])=>A.createElement(f,g)),...Array.isArray(i)?i:[i]]));/**
74 * @license lucide-react v0.453.0 - ISC
75 *
76 * This source code is licensed under the ISC license.
77 * See the LICENSE file in the root directory of this source tree.
78 */const Ye=(e,t)=>
78{const n=A.forwardRef(({className:r,...a},i)=>A.createElement(rF,{ref:i,iconNode:t,className:hw(`lucide-${tF(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
79 * @license lucide-react v0.453.0 - ISC
80 *
81 * This source code is licensed under the ISC license.
82 * See the LICENSE file in the root directory of this source tree.
83 */const aF=Ye("ArrowLeftRight",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]);/**
84 * @license lucide-react v0.453.0 - ISC
85 *
86 * This source code is licensed under the ISC license.
87 * See the LICENSE file in the root directory of this source tree.
88 */const jh=Ye("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
89 * @license lucide-react v0.453.0 - ISC
90 *
91 * This source code is licensed under the ISC license.
92 * See the LICENSE file in the root directory of this source tree.
93 */const sF=Ye("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
94 * @license lucide-react v0.453.0 - ISC
95 *
96 * This source code is licensed under the ISC license.
97 * See the LICENSE file in the root directory of this source tree.
98 */const iF=Ye("Bitcoin",[["path",{d:"M11.767 19.089c4.924.868 6.14-6.025 1.216-6.894m-1.216 6.894L5.86 18.047m5.908 1.042-.347 1.97m1.563-8.864c4.924.869 6.14-6.025 1.215-6.893m-1.215 6.893-3.94-.694m5.155-6.2L8.29 4.26m5.908 1.042.348-1.97M7.48 20.364l3.126-17.727",key:"yr8idg"}]]);/**
99 * @license lucide-react v0.453.0 - ISC
100 *
101 * This source code is licensed under the ISC license.
102 * See the LICENSE file in the root directory of this source tree.
103 */const Ji=Ye("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"}]]);/**
104 * @license lucide-react v0.453.0 - ISC
105 *
106 * This source code is licensed under the ISC license.
107 * See the LICENSE file in the root directory of this source tree.
108 */const lF=Ye("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"}]]);/**
109 * @license lucide-react v0.453.0 - ISC
110 *
111 * This source code is licensed under the ISC license.
112 * See the LICENSE file in the root directory of this source tree.
113 */const Dp=Ye("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/**
114 * @license lucide-react v0.453.0 - ISC
115 *
116 * This source code is licensed under the ISC license.
117 * See the LICENSE file in the root directory of this source tree.
118 */const ty=Ye("Calendar",[["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"}]]);/**
119 * @license lucide-react v0.453.0 - ISC
120 *
121 * This source code is licensed under the ISC license.
122 * See the LICENSE file in the root directory of this source tree.
123 */const pw=Ye("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
124 * @license lucide-react v0.453.0 - ISC
125 *
126 * This source code is licensed under the ISC license.
127 * See the LICENSE file in the root directory of this source tree.
128 */const mw=Ye("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
129 * @license lucide-react v0.453.0 - ISC
130 *
131 * This source code is licensed under the ISC license.
132 * See the LICENSE file in the root directory of this source tree.
133 */const oF=Ye("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
134 * @license lucide-react v0.453.0 - ISC
135 *
136 * This source code is licensed under the ISC license.
137 * See the LICENSE file in the root directory of this source tree.
138 */const uF=Ye("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"}]]);/**
139 * @license lucide-react v0.453.0 - ISC
140 *
141 * This source code is licensed under the ISC license.
142 * See the LICENSE file in the root directory of this source tree.
143 */const x0=Ye("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
144 * @license lucide-react v0.453.0 - ISC
145 *
146 * This source code is licensed under the ISC license.
147 * See the LICENSE file in the root directory of this source tree.
148 */const Tx=Ye("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",ke
148y:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
149 * @license lucide-react v0.453.0 - ISC
150 *
151 * This source code is licensed under the ISC license.
152 * See the LICENSE file in the root directory of this source tree.
153 */const cF=Ye("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
154 * @license lucide-react v0.453.0 - ISC
155 *
156 * This source code is licensed under the ISC license.
157 * See the LICENSE file in the root directory of this source tree.
158 */const ny=Ye("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"}]]);/**
159 * @license lucide-react v0.453.0 - ISC
160 *
161 * This source code is licensed under the ISC license.
162 * See the LICENSE file in the root directory of this source tree.
163 */const Ya=Ye("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/**
164 * @license lucide-react v0.453.0 - ISC
165 *
166 * This source code is licensed under the ISC license.
167 * See the LICENSE file in the root directory of this source tree.
168 */const dF=Ye("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
169 * @license lucide-react v0.453.0 - ISC
170 *
171 * This source code is licensed under the ISC license.
172 * See the LICENSE file in the root directory of this source tree.
173 */const fF=Ye("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
174 * @license lucide-react v0.453.0 - ISC
175 *
176 * This source code is licensed under the ISC license.
177 * See the LICENSE file in the root directory of this source tree.
178 */const ai=Ye("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"}]]);/**
179 * @license lucide-react v0.453.0 - ISC
180 *
181 * This source code is licensed under the ISC license.
182 * See the LICENSE file in the root directory of this source tree.
183 */const to=Ye("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
184 * @license lucide-react v0.453.0 - ISC
185 *
186 * This source code is licensed under the ISC license.
187 * See the LICENSE file in the root directory of this source tree.
188 */const hF=Ye("Hand",[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]);/**
189 * @license lucide-react v0.453.0 - ISC
190 *
191 * This source code is licensed under the ISC license.
192 * See the LICENSE file in the root directory of this source tree.
193 */const z8=Ye("HardHat",[["path",{d:"M2 18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v2z",key:"1dej2m"}],["path",{d:"M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5",key:"1p9q5i"}],["path",{d:"M4 15v-3a6 6 0 0 1 6-6",key:"9ciidu"}],["path",{d:"M14 6a6 6 0 0 1 6 6v3",key:"1hnv84"}]]);/**
194 * @license lucide-react v0.453.0 - ISC
195 *
196 * This source code is licensed under the ISC license.
197 * See the LICENSE file in the root directory of this source tree.
198 */const pF=Ye("History",[["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"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
199 * @license lucide-react v0.453.0 - ISC
200 *
201 * This source code is licensed under the ISC license.
202 * See the LICENSE file in the root directory of this source tree.
203 */const gw=Ye("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"}]]);/**
204 * @license lucide-react v0.453.0 - ISC
205 *
206 * This source code is licensed under the ISC license.
207 * See the LICENSE file in the root directory of this source tree.
208 */const wx=Ye("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
209 * @license lucide-react v0.453.0 - ISC
210 *
211 * This source code is licensed under the ISC license.
212 * See the LICENSE file in the root directory of this source tree.
213 */const B0=Ye("LayoutTemplate",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]]);/**
214 * @license lucide-react v0.453.0 - ISC
215 *
216 * This source code is licensed under the ISC license.
217 * See the LICENSE file in the root directory of this source tree.
218 */const ry=Ye("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
219 * @license lucide-react v0.453.0 - ISC
220 *
221 * This source code is licensed under the ISC license.
222 * See the LICENSE file in the root directory of this source tree.
223 */const mF=Ye("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
224 * @license lucide-react v0.453.0 - ISC
225 *
226 * This source code is licensed under the ISC license.
227 * See the LICENSE file in the root directory of this source tree.
228 */const wu=Ye("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
229 * @license lucide-react v0.453.0 - ISC
230 *
231 * This source code is licensed under the ISC license.
232 * See the LICENSE file in the root directory of this source tree.
233 */const Ip=Ye("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/**
234 * @license lucide-react v0.453.0 - ISC
235 *
236 * This source code is licensed under the ISC license.
237 * See the LICENSE file in the root directory of this source tree.
238 */const gF=Ye("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"}]]);/**
239 * @license lucide-react v0.453.0 - ISC
240 *
241 * This source code is licensed under the ISC license.
242 * See the LICENSE file in the root directory of this source tree.
243 */const xF=Ye("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"}]]);/**
244 * @license lucide-react v0.453.0 - ISC
245 *
246 * This source code is licensed under the ISC license.
247 * See the LICENSE file in the root directory of this source tree.
248 */const F8=Ye("Navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]]);/**
249 * @license lucide-react v0.453.0 - ISC
250 *
251 * This source code is licensed under the ISC license.
252 * See the LICENSE file in the root directory of this source tree.
253 */const Lp=Ye("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
254 * @license lucide-react v0.453.0 - ISC
255 *
256 * This source code is licensed under the ISC license.
257 * See the LICENSE file in the root directory of this source tree.
258 */const H8=Ye("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
259 * @license lucide-react v0.453.0 - ISC
260 *
261 * This source code is licensed under the ISC license.
262 * See the LICENSE file in the root directory of this source tree.
263 */const z0=Ye("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
264 * @license lucide-react v0.453.0 - ISC
265 *
266 * This source code is licensed under the ISC license.
267 * See the LICENSE file in the root directory of this source tree.
268 */const bF=Ye("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/**
269 * @license lucide-react v0.453.0 - ISC
270 *
271 * This source code is licensed under the ISC license.
272 * See the LICENSE file in the root directory of this source tree.
273 */const yF=Ye("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
274 * @license lucide-react v0.453.0 - ISC
275 *
276 * This source code is licensed under the ISC license.
277 * See the LICENSE file in the root directory of this source tree.
278 */const vF=Ye("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"}]]);/**
279 * @license lucide-react v0.453.0 - ISC
280 *
281 * This source code is licensed under the ISC license.
282 * See the LICENSE file in the root directory of this source tree.
283 */const Ax=Ye("Ruler",[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}
283],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]]);/**
284 * @license lucide-react v0.453.0 - ISC
285 *
286 * This source code is licensed under the ISC license.
287 * See the LICENSE file in the root directory of this source tree.
288 */const EF=Ye("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
289 * @license lucide-react v0.453.0 - ISC
290 *
291 * This source code is licensed under the ISC license.
292 * See the LICENSE file in the root directory of this source tree.
293 */const SF=Ye("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"}]]);/**
294 * @license lucide-react v0.453.0 - ISC
295 *
296 * This source code is licensed under the ISC license.
297 * See the LICENSE file in the root directory of this source tree.
298 */const xw=Ye("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"}]]);/**
299 * @license lucide-react v0.453.0 - ISC
300 *
301 * This source code is licensed under the ISC license.
302 * See the LICENSE file in the root directory of this source tree.
303 */const U8=Ye("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",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
304 * @license lucide-react v0.453.0 - ISC
305 *
306 * This source code is licensed under the ISC license.
307 * See the LICENSE file in the root directory of this source tree.
308 */const _F=Ye("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
309 * @license lucide-react v0.453.0 - ISC
310 *
311 * This source code is licensed under the ISC license.
312 * See the LICENSE file in the root directory of this source tree.
313 */const q8=Ye("Spline",[["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}],["path",{d:"M5 17A12 12 0 0 1 17 5",key:"1okkup"}]]);/**
314 * @license lucide-react v0.453.0 - ISC
315 *
316 * This source code is licensed under the ISC license.
317 * See the LICENSE file in the root directory of this source tree.
318 */const bw=Ye("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
319 * @license lucide-react v0.453.0 - ISC
320 *
321 * This source code is licensed under the ISC license.
322 * See the LICENSE file in the root directory of this source tree.
323 */const Cx=Ye("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
324 * @license lucide-react v0.453.0 - ISC
325 *
326 * This source code is licensed under the ISC license.
327 * See the LICENSE file in the root directory of this source tree.
328 */const ad=Ye("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
328],["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"}]]);/**
329 * @license lucide-react v0.453.0 - ISC
330 *
331 * This source code is licensed under the ISC license.
332 * See the LICENSE file in the root directory of this source tree.
333 */const yw=Ye("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"}]]);/**
334 * @license lucide-react v0.453.0 - ISC
335 *
336 * This source code is licensed under the ISC license.
337 * See the LICENSE file in the root directory of this source tree.
338 */const TF=Ye("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"}]]);/**
339 * @license lucide-react v0.453.0 - ISC
340 *
341 * This source code is licensed under the ISC license.
342 * See the LICENSE file in the root directory of this source tree.
343 */const wF=Ye("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
344 * @license lucide-react v0.453.0 - ISC
345 *
346 * This source code is licensed under the ISC license.
347 * See the LICENSE file in the root directory of this source tree.
348 */const vw=Ye("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"}]]);/**
349 * @license lucide-react v0.453.0 - ISC
350 *
351 * This source code is licensed under the ISC license.
352 * See the LICENSE file in the root directory of this source tree.
353 */const $8=Ye("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/**
354 * @license lucide-react v0.453.0 - ISC
355 *
356 * This source code is licensed under the ISC license.
357 * See the LICENSE file in the root directory of this source tree.
358 */const AF=Ye("Weight",[["circle",{cx:"12",cy:"5",r:"3",key:"rqqgnr"}],["path",{d:"M6.5 8a2 2 0 0 0-1.905 1.46L2.1 18.5A2 2 0 0 0 4 21h16a2 2 0 0 0 1.925-2.54L19.4 9.5A2 2 0 0 0 17.48 8Z",key:"56o5sh"}]]);/**
359 * @license lucide-react v0.453.0 - ISC
360 *
361 * This source code is licensed under the ISC license.
362 * See the LICENSE file in the root directory of this source tree.
363 */const ay=Ye("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
364 * @license lucide-react v0.453.0 - ISC
365 *
366 * This source code is licensed under the ISC license.
367 * See the LICENSE file in the root directory of this source tree.
368 */const kx=Ye("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);class CF extends A.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}render(){return this.state.hasError?p.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:p.jsxs("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[p.jsx(TF,{"data-loc":"client/src/components/ErrorBoundary.tsx:29",size:48,className:"text-destructive mb-6 flex-shrink-0"}),p.jsx("h2",{"data-loc":"client/src/components/ErrorBoundary.tsx:34",className:"text-xl mb-4",children:"An unexpected error occurred."}),p.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:p.jsx("pre",{"data-loc":"client/src/components/ErrorBoundary.tsx:37",className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),p.jsxs("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:kt("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[p.jsx(vF,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16}),"Reload Page"]})]})}):this.props.children}}const kF=A.createContext(void 0);function NF({children:e,defaultTheme:t="light",switchable:n=!1}){const[r,a]=A.useState(()=>n&&localStorage.getItem("theme")||t);A.useEffect(()=>{const l=document.documentElement;
368r==="dark"?l.classList.add("dark"):l.classList.remove("dark"),n&&localStorage.setItem("theme",r)},[r,n]);const i=n?()=>{a(l=>l==="light"?"dark":"light")}:void 0;return p.jsx(kF.Provider,{"data-loc":"client/src/contexts/ThemeContext.tsx:52",value:{theme:r,toggleTheme:i,switchable:n},children:e})}const Zr=()=>{const e="https://manus.im",t="HvSeAXn4yEA5cC67gSfbGi",n=`${window.location.origin}/api/oauth/callback`,r=btoa(n),a=new URL(`${e}/app-auth`);return a.searchParams.set("appId",t),a.searchParams.set("redirectUri",n),a.searchParams.set("state",r),a.searchParams.set("type","signIn"),a.toString()};function Za(e){const{redirectOnUnauthenticated:t=!1,redirectPath:n=Zr()}={},r=Dt.useUtils(),a=Dt.auth.me.useQuery(void 0,{retry:!1,refetchOnWindowFocus:!1}),i=Dt.auth.logout.useMutation({onSuccess:()=>{r.auth.me.setData(void 0,null)}}),l=A.useCallback(async()=>{try{await i.mutateAsync()}catch(c){if(c instanceof Ru&&c.data?.code==="UNAUTHORIZED")return;throw c}finally{r.auth.me.setData(void 0,null),await r.auth.me.invalidate()}},[i,r]),u=A.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 A.useEffect(()=>{t&&(a.isLoading||i.isPending||u.user||typeof window>"u"||window.location.pathname!==n&&(window.location.href=n))},[t,n,i.isPending,a.isLoading,u.user]),{...u,refresh:()=>a.refetch(),logout:l}}const V8=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,G8=Kb,Ew=(e,t)=>n=>{var r;if(t?.variants==null)return G8(e,n?.class,n?.className);const{variants:a,defaultVariants:i}=t,l=Object.keys(a).map(f=>{const g=n?.[f],h=i?.[f];if(g===null)return null;const x=V8(g)||V8(h);return a[f][x]}),u=n&&Object.entries(n).reduce((f,g)=>{let[h,x]=g;return x===void 0||(f[h]=x),f},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,g)=>{let{class:h,className:x,...b}=g;return Object.entries(b).every(E=>{let[_,C]=E;return Array.isArray(C)?C.includes({...i,...u}[_]):{...i,...u}[_]===C})?[...f,h,x]:f},[]);return G8(e,l,c,n?.class,n?.className)},PF=Ew("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 tt({className:e,variant:t,size:n,asChild:r=!1,...a}){const i=r?oT:"button";return p.jsx(i,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:kt(PF({variant:t,size:n,className:e})),...a})}const RF=Ew("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 Sn({className:e,variant:t,asChild:n=!1,...r}){const a=n?oT:"span";return p.jsx(a,{"data-loc":"client/src/components/ui/badge.tsx:38","data-slot":"badge",className:kt(RF({variant:t}),e),...r})}const OF=[{icon:Ip,title:"الخريطة والقياس",desc:"قياس مساحة القطعة بدقة عالية مع GPS وأدوات رسم متقدمة",color:"bg-blue-500/10 text-blue-600"},{icon:Dp,title:"الحاسبة الذكية",desc:"حاسبة هندسية متكاملة مع محول وحدات شامل",color:"bg-green-500/10 text-green-600"},{icon:Lp,title:"حساب المواد",desc:"احسب كميات الخرسانة والحديد والبلوك والبلاط بدقة",color:"bg-orange-500/10 text-orange-600"},{icon:Ji,title:"المساعد الذكي",desc:"مساعد AI متخصص في البناء يجيب على أسئلتك فوراً",color:"bg-purple-500/10 text-purple-600"},{icon:B0,title:"توليد الخرائط",desc:"اطلب مخططاً معمارياً بالذكاء الاصطناعي في ثوانٍ",color:"bg-
368amber-500/10 text-amber-600"},{icon:to,title:"إدارة المشاريع",desc:"جدول الكميات والأسعار BOQ مع حساب الضريبة والهامش",color:"bg-rose-500/10 text-rose-600"},{icon:ai,title:"تقارير PDF",desc:"أنشئ عروض أسعار احترافية قابلة للمشاركة",color:"bg-teal-500/10 text-teal-600"},{icon:ny,title:"دفع محلي",desc:"اشترك عبر ZainCash أو QiCard أو Binance Pay",color:"bg-indigo-500/10 text-indigo-600"}],MF=[{value:"+500",label:"مقاول نشط"},{value:"+2000",label:"مشروع مكتمل"},{value:"99%",label:"دقة الحسابات"},{value:"24/7",label:"مساعد ذكي"}];function DF(){const{isAuthenticated:e}=Za();return p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:34",className:"min-h-screen bg-background",dir:"rtl",children:[p.jsx("header",{"data-loc":"client/src/pages/Home.tsx:36",className:"fixed top-0 right-0 left-0 z-50 bg-background/80 backdrop-blur-md border-b border-border/50",children:p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:37",className:"container flex items-center justify-between h-16",children:[p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:38",className:"flex items-center gap-3",children:[p.jsx("div",{"data-loc":"client/src/pages/Home.tsx:39",className:"w-9 h-9 rounded-xl bg-primary flex items-center justify-center shadow-md",children:p.jsx("span",{"data-loc":"client/src/pages/Home.tsx:40",className:"text-primary-foreground font-black text-base",children:"ب"})}),p.jsx("span",{"data-loc":"client/src/pages/Home.tsx:42",className:"font-black text-xl",children:"بنّاء"})]}),p.jsxs("nav",{"data-loc":"client/src/pages/Home.tsx:44",className:"hidden md:flex items-center gap-6 text-sm font-medium text-muted-foreground",children:[p.jsx("a",{"data-loc":"client/src/pages/Home.tsx:45",href:"#features",className:"hover:text-foreground transition-colors",children:"المميزات"}),p.jsx("a",{"data-loc":"client/src/pages/Home.tsx:46",href:"#pricing",className:"hover:text-foreground transition-colors",children:"الأسعار"})]}),p.jsx("div",{"data-loc":"client/src/pages/Home.tsx:48",className:"flex items-center gap-3",children:e?p.jsx(Sr,{"data-loc":"client/src/pages/Home.tsx:50",href:"/dashboard",children:p.jsxs(tt,{"data-loc":"client/src/pages/Home.tsx:51",size:"sm",className:"gap-2",children:["لوحة التحكم ",p.jsx(jh,{"data-loc":"client/src/pages/Home.tsx:52",size:14})]})}):p.jsxs(p.Fragment,{children:[p.jsx(tt,{"data-loc":"client/src/pages/Home.tsx:57",variant:"ghost",size:"sm",onClick:()=>window.location.href=Zr(),children:"تسجيل الدخول"}),p.jsx(tt,{"data-loc":"client/src/pages/Home.tsx:60",size:"sm",onClick:()=>window.location.href=Zr(),children:"ابدأ مجاناً"})]})})]})}),p.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:70",className:"pt-32 pb-20 px-4 relative overflow-hidden",children:[p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:72",className:"absolute inset-0 -z-10",children:[p.jsx("div",{"data-loc":"client/src/pages/Home.tsx:73",className:"absolute top-20 right-1/4 w-96 h-96 bg-primary/5 rounded-full blur-3xl"}),p.jsx("div",{"data-loc":"client/src/pages/Home.tsx:74",className:"absolute bottom-10 left-1/4 w-64 h-64 bg-accent/5 rounded-full blur-3xl"})]}),p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:77",className:"container text-center max-w-4xl mx-auto",children:[p.jsxs(Sn,{"data-loc":"client/src/pages/Home.tsx:78",variant:"outline",className:"mb-6 px-4 py-1.5 text-sm border-primary/30 text-primary bg-primary/5",children:[p.jsx(kx,{"data-loc":"client/src/pages/Home.tsx:79",size:13,className:"ml-1.5"}),"مدعوم بالذكاء الاصطناعي"]}),p.jsxs("h1",{"data-loc":"client/src/pages/Home.tsx:83",className:"text-5xl md:text-7xl font-black text-foreground leading-tight mb-6",children:["المساعد الذكي",p.jsx("br",{"data-loc":"client/src/pages/Home.tsx:85"}),p.jsx("span",{"data-loc":"client/src/pages/Home.tsx:86",className:"gradient-text",children:"للمقاولين والمهندسين"})]}),p.jsx("p",{"data-loc":"client/src/pages/Home.tsx:89",className:"text-xl text-muted-foreground max-w-2xl mx-auto mb-10 leading-relaxed",children:"كل ما تحتاجه لإدارة مشاريعك الإنشائية في مكان واحد — من قياس القطعة إلى توليد المخططات وإعداد عروض الأسعار"}),p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:93",className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[p.jsxs(tt,{"data-loc":"client/src/pages/Home.tsx:94",size:"lg",className:"gap-3 text-base px-8 h-12 shadow-lg shadow-primary/20",onClick:()=>window.location.href=e?"/dashboard":Zr(),children:[p.jsx(z8,{"data-loc":"client/src/pages/Home.tsx:99",size:18}),"ابدأ مجاناً الآن"]}),p.jsx("a",{"data-loc":"client/src/pages/Home.tsx:102",href:"#features",children:p.jsxs(tt,{"data-loc":"client/src/pages/Home.tsx:103",variant:"outline",size:"lg",className:"gap-2 text-base px-8 h-12",children:["استكشف المميزات",p.jsx(jh,{"data-loc":"client/src/pages/Home.tsx:105",size:16})]})})]}),p.jsx("div",{"data-loc":"client/src/pages/Home.tsx:111",className:"grid grid-cols-2 md:grid-cols-4 gap-6 mt-20",children:MF.map(t=>p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:113",className:"text-center",children:[p.jsx("div",{"data-loc":"client/src/pages/Home.tsx:114",className:"text-3xl font-black text-primary mb-1",children:t.value}),p.jsx("div",{"data-loc":"client/src/pages/Home.tsx:115",className:"text-sm text-muted-foreground",children:t.label})]},t.label))})]})]}),p.jsx("section",{"data-loc":"client/src/pages/Home.tsx:123",id:"features",className:"py-20 px-4 bg-muted/30",children:p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:124",className:"container",children:[p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:125",className:"text-center mb-14",children:[p.jsx(Sn,{"data-loc":"client/src/pages/Home.tsx:126",variant:"outline",className:"mb-4 border-primary/30 text-primary bg-primary/5",children:"المميزات"}),p.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:127",className:"text-4xl font-black mb-4",children:"كل أدوات المقاول في تطبيق واحد"}),p.jsx("p",{"data-loc":"client/src/pages/Home.tsx:128",className:"text-muted-foreground text-lg max-w-xl mx-auto",children:"صُمِّم خصيصاً للمقاولين والمهندسين العراقيين والعرب"})]}),p.jsx("div",{"data-loc":"client/src/pages/Home.tsx:133",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-
3685",children:OF.map(t=>{const n=t.icon;return p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:137",className:"bg-card rounded-2xl p-6 border border-border card-hover group",children:[p.jsx("div",{"data-loc":"client/src/pages/Home.tsx:141",className:`w-12 h-12 rounded-xl ${t.color} flex items-center justify-center mb-4 group-hover:scale-110 transition-transform duration-200`,children:p.jsx(n,{"data-loc":"client/src/pages/Home.tsx:142",size:22})}),p.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:144",className:"font-bold text-base mb-2",children:t.title}),p.jsx("p",{"data-loc":"client/src/pages/Home.tsx:145",className:"text-muted-foreground text-sm leading-relaxed",children:t.desc})]},t.title)})})]})}),p.jsx("section",{"data-loc":"client/src/pages/Home.tsx:154",id:"pricing",className:"py-20 px-4",children:p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:155",className:"container max-w-4xl mx-auto",children:[p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:156",className:"text-center mb-14",children:[p.jsx(Sn,{"data-loc":"client/src/pages/Home.tsx:157",variant:"outline",className:"mb-4 border-primary/30 text-primary bg-primary/5",children:"الأسعار"}),p.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:158",className:"text-4xl font-black mb-4",children:"ابدأ مجاناً، طوّر عند الحاجة"})]}),p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:161",className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:163",className:"bg-card rounded-2xl p-8 border border-border",children:[p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:164",className:"mb-6",children:[p.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:165",className:"text-xl font-bold mb-1",children:"الخطة المجانية"}),p.jsx("div",{"data-loc":"client/src/pages/Home.tsx:166",className:"text-4xl font-black text-foreground",children:"مجاناً"}),p.jsx("p",{"data-loc":"client/src/pages/Home.tsx:167",className:"text-muted-foreground text-sm mt-2",children:"للأبد"})]}),p.jsx("ul",{"data-loc":"client/src/pages/Home.tsx:169",className:"space-y-3 mb-8",children:["الخريطة والقياس","الحاسبة الذكية","حساب المواد","5 مشاريع","المساعد الذكي (10 رسائل/يوم)"].map(t=>p.jsxs("li",{"data-loc":"client/src/pages/Home.tsx:171",className:"flex items-center gap-2 text-sm",children:[p.jsx(x0,{"data-loc":"client/src/pages/Home.tsx:172",size:16,className:"text-green-500 shrink-0"}),t]},t))}),p.jsx(tt,{"data-loc":"client/src/pages/Home.tsx:177",variant:"outline",className:"w-full",onClick:()=>window.location.href=Zr(),children:"ابدأ مجاناً"})]}),p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:183",className:"bg-accent rounded-2xl p-8 border border-primary/20 relative overflow-hidden premium-glow",children:[p.jsx("div",{"data-loc":"client/src/pages/Home.tsx:184",className:"absolute top-4 left-4",children:p.jsxs(Sn,{"data-loc":"client/src/pages/Home.tsx:185",className:"bg-primary text-primary-foreground gap-1",children:[p.jsx(bw,{"data-loc":"client/src/pages/Home.tsx:186",size:11}),"الأكثر شعبية"]})}),p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:189",className:"mb-6",children:[p.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:190",className:"text-xl font-bold text-accent-foreground mb-1",children:"الخطة المميزة"}),p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:191",className:"flex items-baseline gap-2",children:[p.jsx("span",{"data-loc":"client/src/pages/Home.tsx:192",className:"text-4xl font-black text-primary",children:"$1"}),p.jsx("span",{"data-loc":"client/src/pages/Home.tsx:193",className:"text-accent-foreground/60 text-sm",children:"/ شهرياً"})]}),p.jsx("p",{"data-loc":"client/src/pages/Home.tsx:195",className:"text-accent-foreground/60 text-sm mt-2",children:"≈ 1,300 دينار عراقي"})]}),p.jsx("ul",{"data-loc":"client/src/pages/Home.tsx:197",className:"space-y-3 mb-8",children:["كل مميزات المجاني","مشاريع غير محدودة","مساعد ذكي غير محدود","توليد خرائط معمارية بالـ AI","تقارير PDF احترافية","محول عملات عربية","دعم أولوي"].map(t=>p.jsxs("li",{"data-loc":"client/src/pages/Home.tsx:207",className:"flex items-center gap-2 text-sm text-accent-foreground",children:[p.jsx(x0,{"data-loc":"client/src/pages/Home.tsx:208",size:16,className:"text-primary shrink-0"}),t]},t))}),p.jsx(Sr,{"data-loc":"client/src/pages/Home.tsx:213",href:"/subscription",children:p.jsxs(tt,{"data-loc":"client/src/pages/Home.tsx:214",className:"w-full gap-2 shadow-lg shadow-primary/30",children:[p.jsx(kx,{"data-loc":"client/src/pages/Home.tsx:215",size:15}),"اشترك الآن"]})})]})]})]})}),p.jsx("section",{"data-loc":"client/src/pages/Home.tsx:225",className:"py-20 px-4 bg-accent text-accent-foreground",children:p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:226",className:"container text-center max-w-2xl mx-auto",children:[p.jsx(lF,{"data-loc":"client/src/pages/Home.tsx:227",size:48,className:"text-primary mx-auto mb-6 animate-float"}),p.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:228",className:"text-4xl font-black mb-4",children:"جاهز لتطوير أعمالك؟"}),p.jsx("p",{"data-loc":"client/src/pages/Home.tsx:229",className:"text-accent-foreground
368/70 text-lg mb-8",children:"انضم لآلاف المقاولين الذين يستخدمون بنّاء لإدارة مشاريعهم"}),p.jsxs(tt,{"data-loc":"client/src/pages/Home.tsx:232",size:"lg",className:"gap-3 text-base px-10 h-12",onClick:()=>window.location.href=e?"/dashboard":Zr(),children:[p.jsx(z8,{"data-loc":"client/src/pages/Home.tsx:237",size:18}),"ابدأ الآن مجاناً"]})]})}),p.jsx("footer",{"data-loc":"client/src/pages/Home.tsx:244",className:"py-8 px-4 border-t border-border",children:p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:245",className:"container flex flex-col md:flex-row items-center justify-between gap-4 text-sm text-muted-foreground",children:[p.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:246",className:"flex items-center gap-2",children:[p.jsx("div",{"data-loc":"client/src/pages/Home.tsx:247",className:"w-6 h-6 rounded-lg bg-primary flex items-center justify-center",children:p.jsx("span",{"data-loc":"client/src/pages/Home.tsx:248",className:"text-primary-foreground font-black text-xs",children:"ب"})}),p.jsx("span",{"data-loc":"client/src/pages/Home.tsx:250",className:"font-bold text-foreground",children:"بنّاء"}),p.jsx("span",{"data-loc":"client/src/pages/Home.tsx:251",children:"— المساعد الذكي للمقاولين"})]}),p.jsx("p",{"data-loc":"client/src/pages/Home.tsx:253",children:"© 2026 مؤسسة الإبداع الرقمي للحلول البرمجية"})]})})]})}function IF(){return rw.useSyncExternalStore(LF,()=>!0,()=>!1)}function LF(){return()=>{}}var sy="Avatar",[jF]=gi(sy),[BF,Sw]=jF(sy),_w=A.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[a,i]=A.useState("idle");return p.jsx(BF,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:i,children:p.jsx(dt.span,{...r,ref:t})})});_w.displayName=sy;var Tw="AvatarImage",zF=A.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:a=()=>{},...i}=e,l=Sw(Tw,n),u=FF(r,i),c=ui(f=>{a(f),l.onImageLoadingStatusChange(f)});return Wn(()=>{u!=="idle"&&c(u)},[u,c]),u==="loaded"?p.jsx(dt.img,{...i,ref:t,src:r}):null});zF.displayName=Tw;var ww="AvatarFallback",Aw=A.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...a}=e,i=Sw(ww,n),[l,u]=A.useState(r===void 0);return A.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>u(!0),r);return()=>window.clearTimeout(c)}},[r]),l&&i.imageLoadingStatus!=="loaded"?p.jsx(dt.span,{...a,ref:t}):null});Aw.displayName=ww;function Y8(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function FF(e,{referrerPolicy:t,crossOrigin:n}){const r=IF(),a=A.useRef(null),i=r?(a.current||(a.current=new window.Image),a.current):null,[l,u]=A.useState(()=>Y8(i,e));return Wn(()=>{u(Y8(i,e))},[i,e]),Wn(()=>{const c=h=>()=>{u(h)};if(!i)return;const f=c("loaded"),g=c("error");return i.addEventListener("load",f),i.addEventListener("error",g),t&&(i.referrerPolicy=t),typeof n=="string"&&(i.crossOrigin=n),()=>{i.removeEventListener("load",f),i.removeEventListener("error",g)}},[i,n,t]),l}var HF=_w,UF=Aw;function qF({className:e,...t}){return p.jsx(HF,{"data-loc":"client/src/components/ui/avatar.tsx:11","data-slot":"avatar",className:kt("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function $F({className:e,...t}){return p.jsx(UF,{"data-loc":"client/src/components/ui/avatar.tsx:40","data-slot":"avatar-fallback",className:kt("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const VF=[{href:"/dashboard",label:"الرئيسية",icon:gw},{href:"/map",label:"الخريطة والقياس",icon:Ip},{href:"/calculator",label:"الحاسبة الذكية",icon:Dp},{href:"/materials",label:"حساب المواد",icon:Lp},{href:"/projects",label:"المشاريع والمناقصات",icon:to},{href:"/assistant",label:"المساعد الذكي",icon:Ji},{href:"/floor-plans",label:"توليد الخرائط",icon:B0,premium:!0},{href:"/reports",label:"التقارير",icon:ai},{href:"/subscription",label:"الاشتراك المميز",icon:ny},{href:"/settings",label:"الإعدادات",icon:xw}];function mr({children:e}){const[t,n]=A.useState(!1),[r]=dw(),{user:a,isAuthenticated:i,logout:l}=Za(),{data:u}=Dt.subscription.status.useQuery(void 0,{enabled:i}),c=u?.tier==="premium";return p.jsxs("div",{"data-loc":"client/src/components/BannaaLayout.t
368sx:37",className:"min-h-screen bg-background flex",dir:"rtl",children:[t&&p.jsx("div",{"data-loc":"client/src/components/BannaaLayout.tsx:40",className:"fixed inset-0 bg-black/50 z-40 lg:hidden",onClick:()=>n(!1)}),p.jsxs("aside",{"data-loc":"client/src/components/BannaaLayout.tsx:47",className:kt("fixed top-0 right-0 h-full w-72 z-50 flex flex-col","bg-sidebar border-l border-sidebar-border","transition-transform duration-300 cubic-bezier(0.23,1,0.32,1)","lg:translate-x-0 lg:static lg:z-auto",t?"translate-x-0":"translate-x-full lg:translate-x-0"),children:[p.jsxs("div",{"data-loc":"client/src/components/BannaaLayout.tsx:57",className:"flex items-center justify-between px-6 py-5 border-b border-sidebar-border",children:[p.jsxs(Sr,{"data-loc":"client/src/components/BannaaLayout.tsx:58",href:"/",className:"flex items-center gap-3",children:[p.jsx("div",{"data-loc":"client/src/components/BannaaLayout.tsx:59",className:"w-10 h-10 rounded-xl bg-primary flex items-center justify-center shadow-lg",children:p.jsx("span",{"data-loc":"client/src/components/BannaaLayout.tsx:60",className:"text-primary-foreground font-black text-lg",children:"ب"})}),p.jsxs("div",{"data-loc":"client/src/components/BannaaLayout.tsx:62",children:[p.jsx("h1",{"data-loc":"client/src/components/BannaaLayout.tsx:63",className:"text-sidebar-foreground font-black text-xl leading-none",children:"بنّاء"}),p.jsx("p",{"data-loc":"client/src/components/BannaaLayout.tsx:64",className:"text-sidebar-foreground/50 text-xs mt-0.5",children:"المساعد الذكي"})]})]}),p.jsx("button",{"data-loc":"client/src/components/BannaaLayout.tsx:67",onClick:()=>n(!1),className:"lg:hidden text-sidebar-foreground/60 hover:text-sidebar-foreground p-1",children:p.jsx(ay,{"data-loc":"client/src/components/BannaaLayout.tsx:71",size:20})})]}),i&&a&&p.jsx("div",{"data-loc":"client/src/components/BannaaLayout.tsx:77",className:"px-4 py-4 border-b border-sidebar-border",children:p.jsxs("div",{"data-loc":"client/src/components/BannaaLayout.tsx:78",className:"flex items-center gap-3 p-3 rounded-xl bg-sidebar-accent/50",children:[p.jsx(qF,{"data-loc":"client/src/components/BannaaLayout.tsx:79",className:"w-10 h-10 border-2 border-primary/30",children:p.jsx($F,{"data-loc":"client/src/components/BannaaLayout.tsx:80",className:"bg-primary/20 text-primary font-bold text-sm",children:a.name?.charAt(0)??"م"})}),p.jsxs("div",{"data-loc":"client/src/components/BannaaLayout.tsx:84",className:"flex-1 min-w-0",children:[p.jsx("p",{"data-loc":"client/src/components/BannaaLayout.tsx:85",className:"text-sidebar-foreground font-semibold text-sm truncate",children:a.name??"مستخدم"}),p.jsx("div",{"data-loc":"client/src/components/BannaaLayout.tsx:86",className:"flex items-center gap-1.5 mt-0.5",children:c?p.jsxs(Sn,{"data-loc":"client/src/components/BannaaLayout.tsx:88",className:"bg-amber-500/20 text-amber-400 border-amber-500/30 text-xs px-1.5 py-0 h-4",children:[p.jsx(Ya,{"data-loc":"client/src/components/BannaaLayout.tsx:89",size:9,className:"ml-1"}),"مميز"]}):p.jsx(Sn,{"data-loc":"client/src/components/BannaaLayout.tsx:92",variant:"outline",className:"text-sidebar-foreground/50 border-sidebar-border text-xs px-1.5 py-0 h-4",children:"مجاني"})})]})]})}),p.jsx("nav",{"data-loc":"client/src/components/BannaaLayout.tsx:103",className:"flex-1 overflow-y-auto py-3 px-3",children:p.jsx("ul",{"data-loc":"client/src/components/BannaaLayout.tsx:104",className:"space-y-0.5",children:VF.map(f=>{const g=f.icon,h=r===f.href||f.href!=="/dashboard"&&r.startsWith(f.href),x=f.premium&&!c;return p.jsx("li",{"data-loc":"client/src/components/BannaaLayout.tsx:110",children:p.jsxs(Sr,{"data-loc":"client/src/components/BannaaLayout.tsx:111",href:f.href,onClick:()=>n(!1),className:kt("flex items-center gap-3 px-3 py-2.5 rounded-xl text-sm font-medium transition-all duration-150",h?"bg-sidebar-primary text-sidebar-primary-foreground shadow-sm":"text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"),children:[p.jsx(g,{"data-loc":"client/src/components/BannaaLayout.tsx:121",size:18,className:kt(h?"opacity-100":"opacity-70")}),p.jsx("span",{"data-loc":"client/src/components/BannaaLayout.t
368sx:122",className:"flex-1",children:f.label}),x&&p.jsx(Ya,{"data-loc":"client/src/components/BannaaLayout.tsx:123",size:13,className:"text-amber-400 opacity-80"})]})},f.href)})})}),p.jsx("div",{"data-loc":"client/src/components/BannaaLayout.tsx:132",className:"p-4 border-t border-sidebar-border space-y-2",children:i?p.jsxs(tt,{"data-loc":"client/src/components/BannaaLayout.tsx:134",variant:"ghost",size:"sm",className:"w-full justify-start text-sidebar-foreground/60 hover:text-destructive hover:bg-destructive/10 gap-2",onClick:()=>l(),children:[p.jsx(mF,{"data-loc":"client/src/components/BannaaLayout.tsx:140",size:16}),"تسجيل الخروج"]}):p.jsx(tt,{"data-loc":"client/src/components/BannaaLayout.tsx:144",size:"sm",className:"w-full gap-2",onClick:()=>window.location.href=Zr(),children:"تسجيل الدخول"})})]}),p.jsxs("div",{"data-loc":"client/src/components/BannaaLayout.tsx:156",className:"flex-1 flex flex-col min-w-0 lg:mr-0",children:[p.jsxs("header",{"data-loc":"client/src/components/BannaaLayout.tsx:158",className:"lg:hidden flex items-center justify-between px-4 py-3 border-b border-border bg-background/80 backdrop-blur-sm sticky top-0 z-30",children:[p.jsx("button",{"data-loc":"client/src/components/BannaaLayout.tsx:159",onClick:()=>n(!0),className:"p-2 rounded-lg hover:bg-muted transition-colors",children:p.jsx(gF,{"data-loc":"client/src/components/BannaaLayout.tsx:163",size:20})}),p.jsxs("div",{"data-loc":"client/src/components/BannaaLayout.tsx:165",className:"flex items-center gap-2",children:[p.jsx("div",{"data-loc":"client/src/components/BannaaLayout.tsx:166",className:"w-7 h-7 rounded-lg bg-primary flex items-center justify-center",children:p.jsx("span",{"data-loc":"client/src/components/BannaaLayout.tsx:167",className:"text-primary-foreground font-black text-sm",children:"ب"})}),p.jsx("span",{"data-loc":"client/src/components/BannaaLayout.tsx:169",className:"font-black text-lg",children:"بنّاء"})]}),p.jsx("div",{"data-loc":"client/src/components/BannaaLayout.tsx:171",className:"w-9"})]}),p.jsx("main",{"data-loc":"client/src/components/BannaaLayout.tsx:175",className:"flex-1 overflow-auto",children:e})]})]})}function Ot({className:e,...t}){return p.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:7","data-slot":"card",className:kt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function Pn({className:e,...t}){return p.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:20","data-slot":"card-header",className:kt("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Rn({className:e,...t}){return p.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:33","data-slot":"card-title",className:kt("leading-none font-semibold",e),...t})}function Mt({className:e,...t}){return p.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:66","data-slot":"card-content",className:kt("px-6",e),...t})}const GF=[{href:"/map",icon:Ip,label:"قياس قطعة",color:"bg-blue-500/10 text-blue-600 hover:bg-blue-500/20"},{href:"/calculator",icon:Dp,label:"الحاسبة",color:"bg-green-500/10 text-green-600 hover:bg-green-500/20"},{href:"/materials",icon:Lp,label:"حساب مواد",color:"bg-orange-500/10 text-orange-600 hover:bg-orange-500/20"},{href:"/assistant",icon:Ji,label:"المساعد",color:"bg-purple-500/10 text-purple-600 hover:bg-purple-500/20"},{href:"/floor-plans",icon:B0,label:"توليد خريطة",color:"bg-amber-500/10 text-amber-600 hover:bg-amber-500/20"},{href:"/projects",icon:to,label:"مشروع جديد",color:"bg-rose-500/10 text-rose-600 hover:bg-rose-500/20"}];function YF(){const{user:e,isAuthenticated:t}=Za(),{data:n}=Dt.projects.list.useQuery(void 0,{enabled:t}),{data:r}=Dt.measurements.list.useQuery(void 0,{enabled:t}),{data:a}=Dt.subscription.status.useQuery(void 0,{enabled:t}),{data:i}=Dt.reports.list.useQuery(void 0,{enabled:t});if(!t)return p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:32",className:"min-h-screen flex items-center justify-center bg-background p-4",children:p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:33",className:"text-center max-w-sm",children:[p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:34",className:"w-16 h-16 rounded-2xl bg-primary/10 flex items-center justify-center mx-auto mb-4",children:p.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:35",className:"text-primary font-black text-3xl",children:"ب"})}),p.jsx("h2",{"data-loc":"client/src/pages/Dashboard.tsx:37",className:"text-2xl font-black mb-2",children:"مرحباً بك في بنّاء"}),p.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:38",className:"text-muted-foreground mb-6",children:"سجّل دخولك للوصول إلى لوحة التحكم"}),p.jsx(tt,{"data-loc":"client/src/pages/Dashboard.tsx:39",className:"gap-2",onClick:()=>window.location.href=Zr(),children:"تسجيل الدخول"})]})});const l=a?.tier==="premium",u=()=>{const c=new Date().getHours();return c<12?"صباح الخير":c<17?"مساء الخير":"مساء النور"};return p.jsx(mr,{"data-loc":"client/src/pages/Dashboard.tsx:56",children:p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:57",className:"p-6 max-w-5xl mx-auto",children:[p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:59",className:"flex items-start justify-between mb-8",children:[p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:60",children:[p.jsxs("h1",{"data-loc":"client/src/pages/Dashboard.tsx:61",className:"text-3xl font-black mb-1",children:[u(),"، ",e?.name?.split(" ")[0]??"مستخدم"," 👋"]}),p.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:64",className:"text-muted-foreground",children:"ماذا تريد أن تفعل اليوم؟"})]}),!l&&p.jsx(Sr,{"data-loc":"client/src/pages/Dashboard.tsx:67",href:"/subscription",children:p.jsxs(Sn,{"data-loc":"client/src/pages/Dashboard.tsx:68",className:"bg-amber-500/10 text-amber-600 border-amber-500/30 gap-1.5 cursor-pointer hover:bg-amber-500/20 transition-colors px-3 py-1.5",children:[p.jsx(Ya,{"data-loc":"client/src/pages/Dashboard.tsx:69",size:13}),"ترقية للمميز"]})})]}),p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:77",className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-8",children:[{label:"المشاريع",value:n?.length??0,icon:to,color:"text-blue-600"},{label:"القياسات",value:r?.length??0,icon:Ip,color:"text-green-600"},{label:"الاشتراك",value:l?"مميز":"مجاني",icon:Ya,color:"text-amber-600"},{label:"التقارير",value:i?.length??0,icon:ai,color:"text-purple-600"}].map(c=>{const f=c.icon;return p.jsx(Ot,{"data-loc":"client/src/pages/Dashboard.tsx:86",className:"border-border",children:p.jsxs(Mt,{"data-loc":"client/src/pages/Dashboard.tsx:87",className:"p-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:88",className:"flex items-center justify-between mb-2",children:[p.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:89",className:"text-muted-foreground text-xs",children:c.label}),p.jsx(f,{"data-loc":"client/src/pages/Dashboard.tsx:90",size:16,className:c.color})]}),p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:92",className:"text-2xl font-black",children:c.value})]})},c.label)})}),p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:100",className:"mb-8",children:[p.jsx("h2",{"data-loc":"client/src/pages/Dashboard.tsx:101",className:"text-lg font-bold mb-4",children:"الإجراءات السريعة"}),p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:102",className:"grid grid-cols-3 md:grid-cols-6 gap-3",children:GF.map(c=>{const f=c.icon;return p.jsx(Sr,{"data-loc":"client/src/pages/Dashboard.tsx:106",href:c.href,children:p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:107",className:`rounded-2xl p-4 flex flex-col items-center gap-2 cursor-pointer transition-all duration-150 ${c.color}`,children:[p.jsx(f,{"data-loc":"client/src/pages/Dashboard.tsx:108",size:24}),p.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:109",className:"text-xs font-semibold text-center leading-tight",children:c.label})]})},c.href)})})]}),p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:118",children:[p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:119",className:"flex items-center justify-between mb-4",children:[p.jsx("h2",{"data-loc":"client/src/pages/Dashboard.tsx:120",className:"text-lg font-bold",children:"المشاريع الأخيرة"}),p.jsx(Sr,{"data-loc":"client/src/pages/Dashboard.tsx:121",href:"/projects",children:p.jsxs(tt,{"data-loc":"client/src/pages/Dashboard.tsx:122",variant:"ghost",size:"sm",className:"gap-1 text-muted-foreground",children:["عرض الكل ",p.jsx(jh,{"data-loc":"client/src/pages/Dashboard.tsx:123",size:14})]})})]}),!n||n.length===0?p.jsx(Ot,{"data-loc":"client/src/pages/Dashboard.tsx:129",className:"border-dashed border-2",children:p.jsxs(Mt,{"data-loc":"client/src/pages/Dashboard.tsx:130",className:"p-10 text-center",children:[p.jsx(to,{"data-loc":"client/src/pages/Dashboard.tsx:131",size:40,className:"text-muted-foreground
368/40 mx-auto mb-3"}),p.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:132",className:"text-muted-foreground mb-4",children:"لا توجد مشاريع بعد"}),p.jsx(Sr,{"data-loc":"client/src/pages/Dashboard.tsx:133",href:"/projects",children:p.jsxs(tt,{"data-loc":"client/src/pages/Dashboard.tsx:134",size:"sm",className:"gap-2",children:[p.jsx(z0,{"data-loc":"client/src/pages/Dashboard.tsx:135",size:15}),"أنشئ مشروعك الأول"]})})]})}):p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:142",className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:n.slice(0,4).map(c=>p.jsx(Sr,{"data-loc":"client/src/pages/Dashboard.tsx:144",href:`/projects/${c.id}`,children:p.jsx(Ot,{"data-loc":"client/src/pages/Dashboard.tsx:145",className:"border-border card-hover cursor-pointer",children:p.jsxs(Mt,{"data-loc":"client/src/pages/Dashboard.tsx:146",className:"p-5",children:[p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:147",className:"flex items-start justify-between mb-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:148",children:[p.jsx("h3",{"data-loc":"client/src/pages/Dashboard.tsx:149",className:"font-bold",children:c.name}),c.location&&p.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:151",className:"text-muted-foreground text-sm mt-0.5",children:c.location})]}),p.jsx(Sn,{"data-loc":"client/src/pages/Dashboard.tsx:154",variant:c.status==="active"?"default":"secondary",className:"text-xs",children:c.status==="active"?"نشط":c.status==="completed"?"مكتمل":"مؤرشف"})]}),p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:161",className:"flex items-center gap-4 text-xs text-muted-foreground",children:[p.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:162",className:"flex items-center gap-1",children:[p.jsx(yw,{"data-loc":"client/src/pages/Dashboard.tsx:163",size:12}),c.currency]}),p.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:166",children:new Date(c.createdAt).toLocaleDateString("ar-IQ")})]})]})})},c.id))})]})]})})}function o0(e){const t=A.useRef(e);t.current=e;const n=A.useRef(null);return n.current||(n.current=function(...r){return t.current.apply(this,r)}),n.current}const QF="c5t7hp4YeUTnGEq4P7Xwtb",XF="https://forge.manus.ai",KF=`${XF}/v1/maps/proxy`;function WF(){return new Promise(e=>{const t=document.createElement("script");t.src=`${KF}/maps/api/js?key=${QF}&v=weekly&libraries=marker,places,geocoding,geometry,drawing`,t.async=!0,t.crossOrigin="anonymous",t.onload=()=>{e(null),t.remove()},t.onerror=()=>{console.error("Failed to load Google Maps script")},document.head.appendChild(t)})}function ZF({className:e,initialCenter:t={lat:37.7749,lng:-122.4194},initialZoom:n=12,onMapReady:r}){const a=A.useRef(null),i=A.useRef(null),l=o0(async()=>{if(await WF(),!a.current){console.error("Map container not found");return}i.current=new window.google.maps.Map(a.current,{zoom:n,center:t,mapTypeControl:!0,fullscreenControl:!0,zoomControl:!0,streetViewControl:!0,mapId:"DEMO_MAP_ID"}),r&&r(i.current)});return A.useEffect(()=>{l()},[l]),p.jsx("div",{"data-loc":"client/src/components/Map.tsx:153",ref:a,className:kt("w-full h-[500px]",e)})}var Yg="focusScope.autoFocusOnMount",Qg="focusScope.autoFocusOnUnmount",Q8={bubbles:!1,cancelable:!0},JF="FocusScope",iy=A.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...l}=e,[u,c]=A.useState(null),f=ui(a),g=ui(i),h=A.useRef(null),x=$t(t,_=>c(_)),b=A.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;A.useEffect(()=>{if(r){let _=function(R){if(b.paused||!u)return;const z=R.target;u.contains(z)?h.current=z:Qi(h.current,{select:!0})},C=function(R){if(b.paused||!u)return;const z=R.relatedTarget;z!==null&&(u.contains(z)||Qi(h.current,{select:!0}))},w=function(R){if(document.activeElement===document.body)for(const B of R)B.removedNodes.length>0&&Qi(u)};document.addEventListener("focusin",_),document.addEventListener("focusout",C);const N=new MutationObserver(w);return u&&N.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",C),N.disconnect()}}},[r,u,b.paused]),A.useEffect(()=>{if(u){K8.add(b);const _=document.activeElement;if(!u.contains(_)){const w=new CustomEvent(Yg,Q8);u.addEventListener(Yg,f),u.dispatchEvent(w),w.defaultPrevented||(eH(sH(Cw(u)),{select:!0}),document.activeElement===_&&Qi(u))}return()=>{u.removeEventListener(Yg,f),setTimeout(()=>{const w=new CustomEvent(Qg,Q8);u.addEventListener(Qg,g),u.dispatchEvent(w),w.defaultPrevented||Qi(_??document.body,{select:!0}),u.removeEventListener(Qg,g),K8.remove(b)},0)}}},[u,f,g,b]);const E=A.useCallback(_=>{if(!n&&!r||b.paused)return;const C=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,w=document.activeElement;if(C&&w){const N=_.currentTarget,[R,z]=tH(N);R&&z?!_.shiftKey&&w===z?(_.preventDefault(),n&&Qi(R,{select:!0})):_.shiftKey&&w===R&&(_.preventDefault(),n&&Qi(z,{select:!0})):w===N&&_.preventDefault()}},[n,r,b.paused]);return p.jsx(dt.div,{tabIndex:-1,...l,ref:x,onKeyDown:E})});iy.displayName=JF;function eH(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Qi(r,{select:t}),document.activeElement!==n)return}function tH(e){const t=Cw(e),n=X8(t,e),r=X8(t.reverse(),e);return[n,r]}function Cw(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function X8(e,t){for(const n of e)if(!nH(n,{upTo:t}))return n}function nH(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 rH(e){return e instanceof HTMLInputElement&&"select"in e}function Qi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rH(e)&&t&&e.select()}}var K8=aH();function aH(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=W8(e,t),e.unshift(t)},remove(t){e=W8(e,t),e[0]?.resume()}}}function W8(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function sH(e){return e.filter(t=>t.tagName!=="A")}var Xg=0;function kw(){A.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Z8()),document.body.insertAdjacentElement("beforeend",e[1]??Z8()),Xg++,()=>{Xg===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Xg--}},[])}function Z8(){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,651 bytes, lines 368-383
368style.position="fixed",e.style.pointerEvents="none",e}var xs=function(){return xs=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},xs.apply(this,arguments)};function Nw(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function iH(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Eh="right-scroll-bar-position",Sh="width-before-scroll-bar",lH="with-scroll-bars-hidden",oH="--removed-body-scroll-bar-size";function Kg(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function uH(e,t){var n=A.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var cH=typeof window<"u"?A.useLayoutEffect:A.useEffect,J8=new WeakMap;function dH(e,t){var n=uH(null,function(r){return e.forEach(function(a){return Kg(a,r)})});return cH(function(){var r=J8.get(n);if(r){var a=new Set(r),i=new Set(e),l=n.current;a.forEach(function(u){i.has(u)||Kg(u,null)}),i.forEach(function(u){a.has(u)||Kg(u,l)})}J8.set(n,e)},[e]),n}function fH(e){return e}function hH(e,t){t===void 0&&(t=fH);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,r);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(i){for(r=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(u){return i(u)},filter:function(){return n}}},assignMedium:function(i){r=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(i),l=n}var c=function(){var g=l;l=[],g.forEach(i)},f=function(){return Promise.resolve().then(c)};f(),n={push:function(g){l.push(g),f()},filter:function(g){return l=l.filter(g),n}}}};return a}function pH(e){e===void 0&&(e={});var t=hH(null);return t.options=xs({async:!0,ssr:!1},e),t}var Pw=function(e){var t=e.sideCar,n=Nw(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return A.createElement(r,xs({},n))};Pw.isSideCarExport=!0;function mH(e,t){return e.useMedium(t),Pw}var Rw=pH(),Wg=function(){},jp=A.forwardRef(function(e,t){var n=A.useRef(null),r=A.useState({onScrollCapture:Wg,onWheelCapture:Wg,onTouchMoveCapture:Wg}),a=r[0],i=r[1],l=e.forwardProps,u=e.children,c=e.className,f=e.removeScrollBar,g=e.enabled,h=e.shards,x=e.sideCar,b=e.noRelative,E=e.noIsolation,_=e.inert,C=e.allowPinchZoom,w=e.as,N=w===void 0?"div":w,R=e.gapMode,z=Nw(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),B=x,j=dH([n,t]),L=xs(xs({},z),a);return A.createElement(A.Fragment,null,g&&A.createElement(B,{sideCar:Rw,removeScrollBar:f,shards:h,noRelative:b,noIsolation:E,inert:_,setCallbacks:i,allowPinchZoom:!!C,lockRef:n,gapMode:R}),l?A.cloneElement(A.Children.only(u),xs(xs({},L),{ref:j})):A.createElement(N,xs({},L,{className:c,ref:j}),u))});jp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jp.classNames={fullWidth:Sh,zeroRight:Eh};var gH=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xH(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=gH();return t&&e.setAttribute("nonce",t),e}function bH(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yH(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var vH=function(){var e=0,t=null;return{add:function(n){e==0&&(t=xH())&&(bH(t,n),yH(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},EH=function(){var e=vH();return function(t,n){A.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ow=function(){var e=EH(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},SH={left:0,top:0,right:0,gap:0},Zg=function(e){return parseInt(e||"",10)||0},_H=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Zg(n),Zg(r),Zg(a)]},TH=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return SH;var t=_H(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},wH=Ow(),Au="data-scroll-locked",AH=function(e,t,n,r){var a=e.left,i=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),`
369  .`.concat(lH,` {
370   overflow: hidden `).concat(r,`;
371   padding-right: `).concat(u,"px ").concat(r,`;
372  }
373  body[`).concat(Au,`] {
374    overflow: hidden `).concat(r,`;
375    overscroll-behavior: contain;
376    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
377    padding-left: `.concat(a,`px;
378    padding-top: `).concat(i,`px;
379    padding-right: `).concat(l,`px;
380    margin-left:0;
381    margin-top:0;
382    margin-right: `).concat(u,"px ").concat(r,`;
383    `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";
383")].filter(Boolean).join(""),`
384  }
385  
386  .`).concat(Eh,` {
387    right: `).concat(u,"px ").concat(r,`;
388  }
389  
390  .`).concat(Sh,` {
391    margin-right: `).concat(u,"px ").concat(r,`;
392  }
393  
394  .`).concat(Eh," .").concat(Eh,` {
395    right: 0 `).concat(r,`;
396  }
397  
398  .`).concat(Sh," .").concat(Sh,` {
399    margin-right: 0 `).concat(r,`;
400  }
401  
402  body[`).concat(Au,`] {
403    `).concat(oH,": ").concat(u,`px;
404  }
405`)},eE=function(){var e=parseInt(document.body.getAttribute(Au)||"0",10);return isFinite(e)?e:0},CH=function(){A.useEffect(function(){return document.body.setAttribute(Au,(eE()+1).toString()),function(){var e=eE()-1;e<=0?document.body.removeAttribute(Au):document.body.setAttribute(Au,e.toString())}},[])},kH=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;CH();var i=A.useMemo(function(){return TH(a)},[a]);return A.createElement(wH,{styles:AH(i,!t,a,n?"":"!important")})},Nx=!1;if(typeof window<"u")try{var $f=Object.defineProperty({},"passive",{get:function(){return Nx=!0,!0}});window.addEventListener("test",$f,$f),window.removeEventListener("test",$f,$f)}catch{Nx=!1}var ou=Nx?{passive:!1}:!1,NH=function(e){return e.tagName==="TEXTAREA"},Mw=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!NH(e)&&n[t]==="visible")},PH=function(e){return Mw(e,"overflowY")},RH=function(e){return Mw(e,"overflowX")},tE=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=Dw(e,r);if(a){var i=Iw(e,r),l=i[1],u=i[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},OH=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},MH=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Dw=function(e,t){return e==="v"?PH(t):RH(t)},Iw=function(e,t){return e==="v"?OH(t):MH(t)},DH=function(e,t){return e==="h"&&t==="rtl"?-1:1},IH=function(e,t,n,r,a){var i=DH(e,window.getComputedStyle(t).direction),l=i*r,u=n.target,c=t.contains(u),f=!1,g=l>0,h=0,x=0;do{if(!u)break;var b=Iw(e,u),E=b[0],_=b[1],C=b[2],w=_-C-i*E;(E||w)&&Dw(e,u)&&(h+=w,x+=E);var N=u.parentNode;u=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return(g&&Math.abs(h)<1||!g&&Math.abs(x)<1)&&(f=!0),f},Vf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nE=function(e){return[e.deltaX,e.deltaY]},rE=function(e){return e&&"current"in e?e.current:e},LH=function(e,t){return e[0]===t[0]&&e[1]===t[1]},jH=function(e){return`
406  .block-interactivity-`.concat(e,` {pointer-events: none;}
407  .allow-interactivity-`).concat(e,` {pointer-events: all;}
408`)},BH=0,uu=[];function zH(e){var t=A.useRef([]),n=A.useRef([0,0]),r=A.useRef(),a=A.useState(BH++)[0],i=A.useState(Ow)[0],l=A.useRef(e);A.useEffect(function(){l.current=e},[e]),A.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var _=iH([e.lockRef.current],(e.shards||[]).map(rE),!0).filter(Boolean);return _.forEach(function(C){return C.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),_.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var u=A.useCallback(function(_,C){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!l.current.allowPinchZoom;var w=Vf(_),N=n.current,R="deltaX"in _?_.deltaX:N[0]-w[0],z="deltaY"in _?_.deltaY:N[1]-w[1],B,j=_.target,L=Math.abs(R)>Math.abs(z)?"h":"v";if("touches"in _&&L==="h"&&j.type==="range")return!1;var Y=tE(L,j);if(!Y)return!0;if(Y?B=L:(B=L==="v"?"h":"v",Y=tE(L,j)),!Y)return!1;if(!r.current&&"changedTouches"in _&&(R||z)&&(r.current=B),!B)return!0;var Z=r.current||B;return IH(Z,C,_,Z==="h"?R:z)},[]),c=A.useCallback(function(_){var C=_;if(!(!uu.length||uu[uu.length-1]!==i)){var w="deltaY"in C?nE(C):Vf(C),N=t.current.filter(function(B){return B.name===C.type&&(B.target===C.target||C.target===B.shadowParent)&&LH(B.delta,w)})[0];if(N&&N.should){C.cancelable&&C.preventDefault();return}
vendor: 6,444 bytes, line 408
408if(!N){var R=(l.current.shards||[]).map(rE).filter(Boolean).filter(function(B){return B.contains(C.target)}),z=R.length>0?u(C,R[0]):!l.current.noIsolation;z&&C.cancelable&&C.preventDefault()}}},[]),f=A.useCallback(function(_,C,w,N){var R={name:_,delta:C,target:w,should:N,shadowParent:FH(w)};t.current.push(R),setTimeout(function(){t.current=t.current.filter(function(z){return z!==R})},1)},[]),g=A.useCallback(function(_){n.current=Vf(_),r.current=void 0},[]),h=A.useCallback(function(_){f(_.type,nE(_),_.target,u(_,e.lockRef.current))},[]),x=A.useCallback(function(_){f(_.type,Vf(_),_.target,u(_,e.lockRef.current))},[]);A.useEffect(function(){return uu.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:x}),document.addEventListener("wheel",c,ou),document.addEventListener("touchmove",c,ou),document.addEventListener("touchstart",g,ou),function(){uu=uu.filter(function(_){return _!==i}),document.removeEventListener("wheel",c,ou),document.removeEventListener("touchmove",c,ou),document.removeEventListener("touchstart",g,ou)}},[]);var b=e.removeScrollBar,E=e.inert;return A.createElement(A.Fragment,null,E?A.createElement(i,{styles:jH(a)}):null,b?A.createElement(kH,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function FH(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const HH=mH(Rw,zH);var ly=A.forwardRef(function(e,t){return A.createElement(jp,xs({},e,{ref:t,sideCar:HH}))});ly.classNames=jp.classNames;var UH=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},cu=new WeakMap,Gf=new WeakMap,Yf={},Jg=0,Lw=function(e){return e&&(e.host||Lw(e.parentNode))},qH=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Lw(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$H=function(e,t,n,r){var a=qH(t,Array.isArray(e)?e:[e]);Yf[n]||(Yf[n]=new WeakMap);var i=Yf[n],l=[],u=new Set,c=new Set(a),f=function(h){!h||u.has(h)||(u.add(h),f(h.parentNode))};a.forEach(f);var g=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(x){if(u.has(x))g(x);else try{var b=x.getAttribute(r),E=b!==null&&b!=="false",_=(cu.get(x)||0)+1,C=(i.get(x)||0)+1;cu.set(x,_),i.set(x,C),l.push(x),_===1&&E&&Gf.set(x,!0),C===1&&x.setAttribute(n,"true"),E||x.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",x,w)}})};return g(t),u.clear(),Jg++,function(){l.forEach(function(h){var x=cu.get(h)-1,b=i.get(h)-1;cu.set(h,x),i.set(h,b),x||(Gf.has(h)||h.removeAttribute(r),Gf.delete(h)),b||h.removeAttribute(n)}),Jg--,Jg||(cu=new WeakMap,cu=new WeakMap,Gf=new WeakMap,Yf={})}},jw=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=UH(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),$H(r,a,n,"aria-hidden")):function(){return null}},Bp="Dialog",[Bw]=gi(Bp),[VH,Ja]=Bw(Bp),zw=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,u=A.useRef(null),c=A.useRef(null),[f,g]=Iu({prop:r,defaultProp:a??!1,onChange:i,caller:Bp});return p.jsx(VH,{scope:t,triggerRef:u,contentRef:c,contentId:al(),titleId:al(),descriptionId:al(),open:f,onOpenChange:g,onOpenToggle:A.useCallback(()=>g(h=>!h),[g]),modal:l,children:n})};zw.displayName=Bp;var Fw="DialogTrigger",Hw=A.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ja(Fw,n),i=$t(t,a.triggerRef);return p.jsx(dt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":cy(a.open),...r,ref:i,onClick:st(e.onClick,a.onOpenToggle)})});Hw.displayName=Fw;var oy="DialogPortal",[GH,Uw]=Bw(oy,{forceMount:void 0}),qw=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,i=Ja(oy,t);return p.jsx(GH,{scope:t,forceMount:n,children:A.Children.map(r,l=>p.jsx($u,{present:n||i.open,children:p.jsx(Qb,{asChild:!0,container:a,children:l})}))})};qw.displayName=oy;var Bh="DialogOverlay",$w=A.forwardRef((e,t)=>{const n=Uw(Bh,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=Ja(Bh,e.__scopeDialog);return i.modal?p.jsx($u,{present:r||i.open,children:p.jsx(QH,{...a,ref:t})}):null});$w.displayName=Bh;var YH=Mu("DialogOverlay.RemoveScroll"),QH=A.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ja(Bh,n);return p.jsx(ly,{as:YH,allowPinchZoom:!0,shards:[a.contentRef],children:p.jsx(dt.div,{"data-state":cy(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),no="DialogContent",Vw=A.forwardRef((e,t)=>{const n=Uw(no,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=Ja(no,e.__scopeDialog);return p.jsx($u,{present:r||i.open,children:i.modal?p.jsx(XH,{...a,ref:t}):p.jsx(KH,{...a,ref:t})})});Vw.displayName=no;var XH=A.forwardRef((e,t)=>{const n=Ja(no,e.__scopeDialog),r=A.useRef(null),a=$t(t,n.contentRef,r);return A.useEffect(()=>{const i=r.current;if(i)return jw(i)},[]),p.jsx(Gw,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:st(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:st(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0;(l.button===2||u)&&i.preventDefault()}),onFocusOutside:st(e.onFocusOutside,i=>i.preventDefault())})}),KH=A.forwardRef((e,t)=>{const n=Ja(no,e.__scopeDialog),r=A.useRef(!1),a=A.useRef(!1);return p.jsx(Gw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=i.target;n.triggerRef.current?.contains(l)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),Gw=A.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,...l}=e,u=Ja(no,n),c=A.useRef(null),f=$t(t,c);return kw(),p.jsxs(p.Fragment,{children:[p.jsx(iy,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:p.jsx(wp,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":cy(u.open),...l,ref:f,onDismiss:()=>u.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(ZH,{titleId:u.titleId}
408),p.jsx(eU,{contentRef:c,descriptionId:u.descriptionId})]})]})}),uy="DialogTitle",Yw=A.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ja(uy,n);return p.jsx(dt.h2,{id:a.titleId,...r,ref:t})});Yw.displayName=uy;var Qw="DialogDescription",WH=A.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ja(Qw,n);return p.jsx(dt.p,{id:a.descriptionId,...r,ref:t})});WH.displayName=Qw;var Xw="DialogClose",Kw=A.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ja(Xw,n);return p.jsx(dt.button,{type:"button",...r,ref:t,onClick:st(e.onClick,()=>a.onOpenChange(!1))})});Kw.displayName=Xw;function cy(e){return e?"open":"closed"}var Ww="DialogTitleWarning",[Foe,Zw]=qL(Ww,{contentName:no,titleName:uy,docsSlug:"dialog"}),ZH=({titleId:e})=>{const t=Zw(Ww),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
409
410If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
411
412For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return A.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},JH="DialogDescriptionWarning",eU=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Zw(JH).contentName}}.`;return A.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},tU=zw,nU=Hw,rU=qw,aU=$w,sU=Vw,iU=Yw,lU=Kw;const Jw=A.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),dy=()=>A.useContext(Jw);function fy({...e}){const t=A.useRef(!1),n=A.useRef(!1),r=A.useRef(null),a=A.useMemo(()=>({isComposing:()=>t.current,setComposing:i=>{t.current=i},justEndedComposing:()=>n.current,markCompositionEnd:()=>{n.current=!0,r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{n.current=!1},150)}}),[]);return p.jsx(Jw.Provider,{"data-loc":"client/src/components/ui/dialog.tsx:50",value:a,children:p.jsx(tU,{"data-loc":"client/src/components/ui/dialog.tsx:51","data-slot":"dialog",...e})})}function e9({...e}){return p.jsx(nU,{"data-loc":"client/src/components/ui/dialog.tsx:59","data-slot":"dialog-trigger",...e})}function oU({...e}){return p.jsx(rU,{"data-loc":"client/src/components/ui/dialog.tsx:65","data-slot":"dialog-portal",...e})}function t9({className:e,...t}){return p.jsx(aU,{"data-loc":"client/src/components/ui/dialog.tsx:79","data-slot":"dialog-overlay",className:kt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}t9.displayName="DialogOverlay";function hy({className:e,children:t,showCloseButton:n=!0,onEscapeKeyDown:r,...a}){const{isComposing:i}=dy(),l=A.useCallback(u=>{if(u.isComposing||i()){u.preventDefault();return}r?.(u)},[i,r]);return p.jsxs(oU,{"data-loc":"client/src/components/ui/dialog.tsx:122","data-slot":"dialog-portal",children:[p.jsx(t9,{"data-loc":"client/src/components/ui/dialog.tsx:123"}),p.jsxs(sU,{"data-loc":"client/src/components/ui/dialog.tsx:124","data-slot":"dialog-content",className:kt("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),onEscapeKeyDown:l,...a,children:[t,n&&p.jsxs(lU,{"data-loc":"client/src/components/ui/dialog.tsx:135","data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[p.jsx(ay,{"data-loc":"client/src/components/ui/dialog.tsx:139"}),p.jsx("span",{"data-loc":"client/src/components/ui/dialog.tsx:140",className:"sr-only",children:"Close"})]})]})]})}function py({className:e,...t}){return p.jsx("div",{"data-loc":"client/src/components/ui/dialog.tsx:150","data-slot":"dialog-header",className:kt("flex flex-col gap-2 text-center sm:text-left",e),...t})}function my({className:e,...t}){return p.jsx(iU,{"data-loc":"client/src/components/ui/dialog.tsx:176","data-slot":"dialog-title",className:kt("text-lg leading-none font-semibold",e),...t})}function n9(e={}){const{onKeyDown:t,onCompositionStart:n,onCompositionEnd:r}=e,a=A.useRef(!1),i=A.useRef(null),l=A.useRef(null),u=o0(h=>{i.current&&(clearTimeout(i.current),i.current=null),l.current&&(clearTimeout(l.current),l.current=null),a.current=!0,n?.(h)}),c=o0(h=>{i.current=setTimeout(()=>{l.current=setTimeout(()=>{a.current=!1})}),r?.(h)}),f=o0(h=>{if(a.current&&(h.key==="Escape"||h.key==="Enter"&&!h.shiftKey)){h.stopPropagation();return}t?.(h)}),g=o0(()=>a.current);return{onCompositionStart:u,onCompositionEnd:c,onKeyDown:f,isComposing:g}}function qt({className:e,type:t,onKeyDown:n,onCompositionStart:r,onCompositionEnd:a,...i}){const l=dy(),{onCompositionStart:u,onCompositionEnd:c,onKeyDown:f}=n9({onKeyDown:g=>{const h=g.nativeEvent.isComposing||l.justEndedComposing();g.key==="Enter"&&h||n?.(g)},onCompositionStart:g=>{l.setComposing(!0),r?.(g)}
vendor: 19,161 bytes, line 412
412,onCompositionEnd:g=>{l.markCompositionEnd(),setTimeout(()=>{l.setComposing(!1)},100),a?.(g)}});return p.jsx("input",{"data-loc":"client/src/components/ui/input.tsx:53",type:t,"data-slot":"input",className:kt("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:u,onCompositionEnd:c,onKeyDown:f,...i})}var uU="Label",r9=A.forwardRef((e,t)=>p.jsx(dt.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));r9.displayName=uU;var cU=r9;function et({className:e,...t}){return p.jsx(cU,{"data-loc":"client/src/components/ui/label.tsx:11","data-slot":"label",className:kt("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 zh(e,[t,n]){return Math.min(n,Math.max(t,e))}function gy(e){const t=e+"CollectionProvider",[n,r]=gi(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=_=>{const{scope:C,children:w}=_,N=De.useRef(null),R=De.useRef(new Map).current;return p.jsx(a,{scope:C,itemMap:R,collectionRef:N,children:w})};l.displayName=t;const u=e+"CollectionSlot",c=Mu(u),f=De.forwardRef((_,C)=>{const{scope:w,children:N}=_,R=i(u,w),z=$t(C,R.collectionRef);return p.jsx(c,{ref:z,children:N})});f.displayName=u;const g=e+"CollectionItemSlot",h="data-radix-collection-item",x=Mu(g),b=De.forwardRef((_,C)=>{const{scope:w,children:N,...R}=_,z=De.useRef(null),B=$t(C,z),j=i(g,w);return De.useEffect(()=>(j.itemMap.set(z,{ref:z,...R}),()=>void j.itemMap.delete(z))),p.jsx(x,{[h]:"",ref:B,children:N})});b.displayName=g;function E(_){const C=i(e+"CollectionConsumer",_);return De.useCallback(()=>{const N=C.collectionRef.current;if(!N)return[];const R=Array.from(N.querySelectorAll(`[${h}]`));return Array.from(C.itemMap.values()).sort((j,L)=>R.indexOf(j.ref.current)-R.indexOf(L.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:l,Slot:f,ItemSlot:b},E,r]}var dU=A.createContext(void 0);function zp(e){const t=A.useContext(dU);return e||t||"ltr"}function a9(e){const t=A.useRef({value:e,previous:e});return A.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var fU=[" ","Enter","ArrowUp","ArrowDown"],hU=[" ","Enter"],ro="Select",[Fp,Hp,pU]=gy(ro),[Yu]=gi(ro,[pU,Pp]),Up=Pp(),[mU,pl]=Yu(ro),[gU,xU]=Yu(ro),s9=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:i,value:l,defaultValue:u,onValueChange:c,dir:f,name:g,autoComplete:h,disabled:x,required:b,form:E}=e,_=Up(t),[C,w]=A.useState(null),[N,R]=A.useState(null),[z,B]=A.useState(!1),j=zp(f),[L,Y]=Iu({prop:r,defaultProp:a??!1,onChange:i,caller:ro}),[Z,$]=Iu({prop:l,defaultProp:u,onChange:c,caller:ro}),te=A.useRef(null),ee=C?E||!!C.closest("form"):!0,[he,ie]=A.useState(new Set),ne=Array.from(he).map(H=>H.props.value).join(";");return p.jsx(AB,{..._,children:p.jsxs(mU,{required:b,scope:t,trigger:C,onTriggerChange:w,valueNode:N,onValueNodeChange:R,valueNodeHasChildren:z,onValueNodeHasChildrenChange:B,contentId:al(),value:Z,onValueChange:$,open:L,onOpenChange:Y,dir:j,triggerPointerDownPosRef:te,disabled:x,children:[p.jsx(Fp.Provider,{scope:t,children:p.jsx(gU,{scope:e.__scopeSelect,onNativeOptionAdd:A.useCallback(H=>{ie(re=>new Set(re).add(H))},[]),onNativeOptionRemove:A.useCallback(H=>{ie(re=>{const J=new Set(re);return J.delete(H),J})},[]),children:n})}),ee?p.jsxs(C9,{"aria-hidden":!0,required:b,tabIndex:-1,name:g,autoComplete:h,value:Z,onChange:H=>$(H.target.value),disabled:x,form:E,children:[Z===void 0?p.jsx("option",{value:""}):null,Array.from(he)]},ne):null]})})};s9.displayName=ro;var i9="SelectTrigger",l9=A.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,i=Up(n),l=pl(i9,n),u=l.disabled||r,c=$t(t,l.onTriggerChange),f=Hp(n),g=A.useRef("touch"),[h,x,b]=N9(_=>{const C=f().filter(R=>!R.disabled),w=C.find(R=>R.value===l.value),N=P9(C,_,w);N!==void 0&&l.onValueChange(N.value)}),E=_=>{u||(l.onOpenChange(!0),b()),_&&(l.triggerPointerDownPosRef.current={x:Math.round(_.pageX),y:Math.round(_.pageY)})};return p.jsx(DT,{asChild:!0,...i,children:p.jsx(dt.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":k9(l.value)?"":void 0,...a,ref:c,onClick:st(a.onClick,_=>{_.currentTarget.focus(),g.current!=="mouse"&&E(_)}),onPointerDown:st(a.onPointerDown,_=>{g.current=_.pointerType;const C=_.target;C.hasPointerCapture(_.pointerId)&&C.releasePointerCapture(_.pointerId),_.button===0&&_.ctrlKey===!1&&_.pointerType==="mouse"&&(E(_),_.preventDefault())}),onKeyDown:st(a.onKeyDown,_=>{const C=h.current!=="";!(_.ctrlKey||_.altKey||_.metaKey)&&_.key.length===1&&x(_.key),!(C&&_.key===" ")&&fU.includes(_.key)&&(E(),_.preventDefault())})})})});l9.displayName=i9;var o9="SelectValue",u9=A.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:i,placeholder:l="",...u}=e,c=pl(o9,n),{onValueNodeHasChildrenChange:f}=c,g=i!==void 0,h=$t(t,c.onValueNodeChange);return Wn(()=>{f(g)},[f,g]),p.jsx(dt.span,{...u,ref:h,style:{pointerEvents:"none"},children:k9(c.value)?p.jsx(p.Fragment,{children:l}):i})});u9.displayName=o9;var bU="SelectIcon",c9=A.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return p.jsx(dt.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})});c9.displayName=bU;var yU="SelectPortal",d9=e=>p.jsx(Qb,{asChild:!0,...e});d9.displayName=yU;var ao="SelectContent",f9=A.forwardRef((e,t)=>{const n=pl(ao,e.__scopeSelect),[r,a]=A.useState();if(Wn(()=>{a(new DocumentFragment)},[]),!n.open){const i=r;return i?td.createPortal(p.jsx(h9,{scope:e.__scopeSelect,children:p.jsx(Fp.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),i):null}return p.jsx(p9,{...e,ref:t})});f9.displayName=ao;var qa=10,[h9,ml]=Yu(ao),vU="SelectContentImpl",EU=Mu("SelectContent.RemoveScroll"),p9=A.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:i,onPointerDownOutside:l,side:u,sideOffset:c,align:f,alignOffset:g,arrowPadding:h,collisionBoundary:x,collisionPadding:b,sticky:E,hideWhenDetached:_,avoidCollisions:C,...w}=e,N=pl(ao,n),[R,z]=A.useState(null),[B,j]=A.useState(null),L=$t(t,ve=>z(ve)),[Y,Z]=A.useState(null),[$,te]=A.useState(null),ee=Hp(n),[he,ie]=A.useState(!1),ne=A.useRef(!1);A.useEffect(()=>{if(R)return jw(R)},[R]),kw();const H=A.useCallback(ve=>{const[Ie,...Ue]=ee().map(lt=>lt.ref.current),[Qe]=Ue.slice(-1),rt=document.activeElement;for(const lt of ve)if(lt===rt||(lt?.scrollIntoView({block:"nearest"}),lt===Ie&&B&&(B.scrollTop=0),lt===Qe&&B&&(B.scrollTop=B.scrollHeight),lt?.focus(),document.activeElement!==rt))return},[ee,B]),re=A.useCallback(()=>H([Y,R]),[H,Y,R]);A.useEffect(()=>{he&&re()},[he,re]);const{onOpenChange:J,triggerPointerDownPosRef:Te}=N;A.useEffect(()=>{if(R){let ve={x:0,y:0};const Ie=Qe=>{ve={x:Math.abs(Math.round(Qe.pageX)-(Te.current?.x??0)),y:Math.abs(Math.round(Qe.pageY)-(Te.current?.y??0))}},Ue=Qe=>{ve.x<=10&&ve.y<=10?Qe.preventDefault():R.contains(Qe.target)||J(!1),document.removeEventListener("pointermove",Ie),Te.current=null};return Te.current!==null&&(document.addEventListener("pointermove",Ie),document.addEventListener("pointerup",Ue,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ie),document.removeEventListener("pointerup",Ue,{capture:!0})}}},[R,J,Te]),A.useEffect(()=>{const ve=()=>J(!1);return window.addEventListener("blur",ve),window.addEventListener("resize",ve),()=>{window.removeEventListener("blur",ve),window.removeEventListener("resize",ve)}},[J]);const[q,G]=N9(ve=>{const Ie=ee().filter(rt=>!rt.disabled),Ue=Ie.find(rt=>rt.ref.current===document.activeElement),Qe=P9(Ie,ve,Ue);Qe&&setTimeout(()=>Qe.ref.current.focus())}),oe=A.useCallback((ve,Ie,Ue)=>{const Qe=!ne.current&&!Ue;(N.value!==void 0&&N.value===Ie||Qe)&&(Z(ve),Qe&&(ne.current=!0))},[N.value]),M=A.useCallback(()=>R?.focus(),[R]),pe=A.useCallback((ve,Ie,Ue)=>{const Qe=!ne.current&&!Ue;(N.value!==void 0&&N.value===Ie||Qe)&&te(ve)},[N.value]),_e=r==="popper"?Px:m9,Re=_e===Px?{side:u,sideOffset:c,align:f,alignOffset:g,arrowPadding:h,collisionBoundary:x,collisionPadding:b,sticky:E,hideWhenDetached:_,avoidCollisions:C}:{};return p.jsx(h9,{scope:n,content:R,viewport:B,onViewportChange:j,itemRefCallback:oe,selectedItem:Y,onItemLeave:M,itemTextRefCallback:pe,focusSelectedItem:re,selectedItemText:$,position:r,isPositioned:he,searchRef:q,children:p.jsx(ly,{as:EU,allowPinchZoom:!0,children:p.jsx(iy,{asChild:!0,trapped:N.open,onMountAutoFocus:ve=>{ve.preventDefault()},onUnmountAutoFocus:st(a,ve=>{N.trigger?.focus({preventScroll:!0}),ve.preventDefault()}),children:p.jsx(wp,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:ve=>ve.preventDefault(),onDismiss:()=>N.onOpenChange(!1),children:p.jsx(_e,{role:"listbox",id:N.contentId,"data-state":N.open?"open":"closed",dir:N.dir,onContextMenu:ve=>ve.preventDefault(),...w,...Re,onPlaced:()=>ie(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:st(w.onKeyDown,ve=>{const Ie=ve.ctrlKey||ve.altKey||ve.metaKey;if(ve.key==="Tab"&&ve.preventDefault(),!Ie&&ve.key.length===1&&G(ve.key),["ArrowUp","ArrowDown","Home","End"].includes(ve.key)){let Qe=ee().filter(rt=>!rt.disabled).map(rt=>rt.ref.current);if(["ArrowUp","End"].includes(ve.key)&&(Qe=Qe.slice().reverse()),["ArrowUp","ArrowDown"].includes(ve.key)){const rt=ve.target,lt=Qe.indexOf(rt);Qe=Qe.slice(lt+1)}setTimeout(()=>H(Qe)),ve.preventDefault()}})})})})})})});p9.displayName=vU;var SU="SelectItemAlignedPosition",m9=A.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,i=pl(ao,n),l=ml(ao,n),[u,c]=A.useState(null),[f,g]=A.useState(null),h=$t(t,L=>g(L)),x=Hp(n),b=A.useRef(!1),E=A.useRef(!0),{viewport:_,selectedItem:C,selectedItemText:w,focusSelectedItem:N}=l,R=A.useCallback(()=>{if(i.trigger&&i.valueNode&&u&&f&&_&&C&&w){const L=i.trigger.getBoundingClientRect(),Y=f.getBoundingClientRect(),Z=i.valueNode.getBoundingClientRect(),$=w.getBoundingClientRect();if(i.dir!=="rtl"){const rt=$.left-Y.left,lt=Z.left-rt,hn=L.left-lt,Zt=L.width+hn,lr=Math.max(Zt,Y.width),Gn=window.innerWidth-qa,Mn=zh(lt,[qa,Math.max(qa,Gn-lr)]);u.style.minWidth=Zt+"px",u.style.left=Mn+"px"}else{const rt=Y.right-$.right,lt=window.innerWidth-Z.right-rt,hn=window.innerWidth-L.right-lt,Zt=L.width+hn,lr=Math.max(Zt,Y.width),Gn=window.innerWidth-qa,Mn=zh(lt,[qa,Math.max(qa,Gn-lr)]);u.style.minWidth=Zt+"px",u.style.right=Mn+"px"}const te=x(),ee=window.innerHeight-qa*2,he=_.scrollHeight,ie=window.getComputedStyle(f),ne=parseInt(ie.borderTopWidth,10),H=parseInt(ie.paddingTop,10),re=parseInt(ie.borderBottomWidth,10),J=parseInt(ie.paddingBottom,10),Te=ne+H+he+J+re,q=Math.min(C.offsetHeight*5,Te),G=window.getComputedStyle(_),oe=parseInt(G.paddingTop,10),M=parseInt(G.paddingBottom,10),pe=L.top+L.height/2-qa,_e=ee-pe,Re=C.offsetHeight/2,ve=C.offsetTop+Re,Ie=ne+H+ve,Ue=Te-Ie;if(Ie<=pe){const rt=te.length>0&&C===te[te.length-1].ref.current;u.style.bottom="0px";const lt=f.clientHeight-_.offsetTop-_.offsetHeight,hn=Math.max(_e,Re+(rt?M:0)+lt+re),Zt=Ie+hn;u.style.height=Zt+"px"}else{const rt=te.length>0&&C===te[0].ref.current;u.style.top="0px";const hn=Math.max(pe,ne+_.offsetTop+(rt?oe:0)+Re)+Ue;u.style.height=hn+"px",_.scrollTop=Ie-pe+_.offsetTop}u.style.margin=`${qa}px 0`,u.style.minHeight=q+"px",u.style.maxHeight=ee+"px",r?.(),requestAnimationFrame(()=>b.current=!0)}},[x,i.trigger,i.valueNode,u,f,_,C,w,i.dir,r]);Wn(()=>R(),[R]);const[z,B]=A.useState();Wn(()=>{f&&B(window.getComputedStyle(f).zIndex)},[f]);const j=A.useCallback(L=>{L&&E.current===!0&&(R(),N?.(),E.current=!1)},[R,N]);return p.jsx(TU,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:b,onScrollButtonChange:j,children:p.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:z},children:p.jsx(dt.div,{...a,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});m9.displayName=SU;var _U="SelectPopperPosition",Px=A.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=qa,...i}=e,l=Up(n);return p.jsx(IT,{...l,...i,ref:t,align:r,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)"}})});Px.displayName=_U;var[TU,xy]=Yu(ao,{}),Rx="SelectViewport",g9=A.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,i=ml(Rx,n),l=xy(Rx,n),u=$t(t,i.onViewportChange),c=A.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(Fp.Slot,{scope:n,children:p.jsx(dt.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:st(a.onScroll,f=>{const g=f.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:x}=l;if(x?.current&&h){const b=Math.abs(c.current-g.scrollTop);if(b>0){const E=window.innerHeight-qa*2,_=parseFloat(h.style.minHeight),C=parseFloat(h.style.height),w=Math.max(_,C);if(w<E){const N=w+b,R=Math.min(E,N),z=N-R;h.style.height=R+"px",h.style.bottom==="0px"&&(g.scrollTop=z>0?z:0,h.style.justifyContent="flex-end")}}}c.current=g.scrollTop})})})]})});g9.displayName=Rx;var x9="SelectGroup",[wU,AU]=Yu(x9),CU=A.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=al();return p.jsx(wU,{scope:n,id:a,children:p.jsx(dt.div,{role:"group","aria-labelledby":a,...r,ref:t})})});CU.displayName=x9;var b9="SelectLabel",kU=A.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=AU(b9,n);return p.jsx(dt.div,{id:a.id,...r,ref:t})});kU.displayName=b9;var Fh="SelectItem",[NU,y9]=Yu(Fh),v9=A.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:i,...l}=e,u=pl(Fh,n),c=ml(Fh,n),f=u.value===r,[g,h]=A.useState(i??""),[x,b]=A.useState(!1),E=$t(t,N=>c.itemRefCallback?.(N,r,a)),_=al(),C=A.useRef("touch"),w=()=>{a||(u.onValueChange(r),u.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(NU,{scope:n,value:r,disabled:a,textId:_,isSelected:f,onItemTextChange:A.useCallback(N=>{h(R=>R||(N?.textContent??"").trim())},[]),children:p.jsx(Fp.ItemSlot,{scope:n,value:r,disabled:a,textValue:g,children:p.jsx(dt.div,{role:"option","aria-labelledby":_,"data-highlighted":x?"":void 0,"aria-selected":f&&x,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...l,ref:E,onFocus:st(l.onFocus,()=>b(!0)),onBlur:st(l.onBlur,()=>b(!1)),onClick:st(l.onClick,()=>{C.current!=="mouse"&&w()}),onPointerUp:st(l.onPointerUp,()=>{C.current==="mouse"&&w()}),onPointerDown:st(l.onPointerDown,N=>{C.current=N.pointerType}),onPointerMove:st(l.onPointerMove,N=>{C.current=N.pointerType,a?c.onItemLeave?.():C.current==="mouse"&&N.currentTarget.focus({preventScroll:!0})}),onPointerLeave:st(l.onPointerLeave,N=>{N.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:st(l.onKeyDown,N=>{c.searchRef?.current!==""&&N.key===" "||(hU.includes(N.key)&&w(),N.key===" "&&N.preventDefault())})})})})});v9.displayName=Fh;var u0="SelectItemText",E9=A.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...i}=e,l=pl(u0,n),u=ml(u0,n),c=y9(u0,n),f=xU(u0,n),[g,h]=A.useState(null),x=$t(t,w=>h(w),c.onItemTextChange,w=>u.itemTextRefCallback?.(w,c.value,c.disabled)),b=g?.textContent,E=A.useMemo(()=>p.jsx("option",{value:c.value,disabled:c.disabled,children:b},c.value),[c.disabled,c.value,b]),{onNativeOptionAdd:_,onNativeOptionRemove:C}=f;return Wn(()=>(_(E),()=>C(E)),[_,C,E]),p.jsxs(p.Fragment,{children:[p.jsx(dt.span,{id:c.textId,...i,ref:x}),c.isSelected&&l.valueNode&&!l.valueNodeHasChildren?td.createPortal(i.children,l.valueNode):null]})});E9.displayName=u0;var S9="SelectItemIndicator",_9=A.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return y9(S9,n).isSelected?p.jsx(dt.span,{"aria-hidden":!0,...r,ref:t}):null});_9.displayName=S9;var Ox="SelectScrollUpButton",T9=A.forwardRef((e,t)=>{const n=ml(Ox,e.__scopeSelect),r=xy(Ox,e.__scopeSelect),[a,i]=A.useState(!1),l=$t(t,r.onScrollButtonChange);return Wn(()=>{if(n.viewport&&n.isPositioned){let u=function(){const f=c.scrollTop>0;i(f)};const c=n.viewport;return u(),c.addEventListener("scroll",u),()=>c.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),a?p.jsx(A9,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:c}=n;u&&c&&(u.scrollTop=u.scrollTop-c.offsetHeight)}}):null});T9.displayName=Ox;var Mx="SelectScrollDownButton",w9=A.forwardRef((e,t)=>{const n=ml(Mx,e.__scopeSelect),r=xy(Mx,e.__scopeSelect),[a,i]=A.useState(!1),l=$t(t,r.onScrollButtonChange);return Wn(()=>{if(n.viewport&&n.isPositioned){let u=function(){const f=c.scrollHeight-c.clientHeight,g=Math.ceil(c.scrollTop)<f;i(g)};const c=n.viewport;return u(),c.addEventListener("scroll",u),()=>c.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),a?p.jsx(A9,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:c}=n;u&&c&&(u.scrollTop=u.scrollTop+c.offsetHeight)}}):null});w9.displayName=Mx;var A9=A.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,i=ml("SelectScrollButton",n),l=A.useRef(null),u=Hp(n),c=A.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return A.useEffect(()=>()=>c(),[c]),Wn(()=>{u().find(g=>g.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[u]),p.jsx(dt.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:st(a.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:st(a.onPointerMove,()=>{i.onItemLeave?.(),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:st(a.onPointerLeave,()=>{c()})})}),PU="SelectSeparator",RU=A.forwardRef((e,t)=>
vendor: 6,221 bytes, line 412
412{const{__scopeSelect:n,...r}=e;return p.jsx(dt.div,{"aria-hidden":!0,...r,ref:t})});RU.displayName=PU;var Dx="SelectArrow",OU=A.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=Up(n),i=pl(Dx,n),l=ml(Dx,n);return i.open&&l.position==="popper"?p.jsx(LT,{...a,...r,ref:t}):null});OU.displayName=Dx;var MU="SelectBubbleInput",C9=A.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const a=A.useRef(null),i=$t(r,a),l=a9(t);return A.useEffect(()=>{const u=a.current;if(!u)return;const c=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(c,"value").set;if(l!==t&&g){const h=new Event("change",{bubbles:!0});g.call(u,t),u.dispatchEvent(h)}},[l,t]),p.jsx(dt.select,{...n,style:{...jT,...n.style},ref:i,defaultValue:t})});C9.displayName=MU;function k9(e){return e===""||e===void 0}function N9(e){const t=ui(e),n=A.useRef(""),r=A.useRef(0),a=A.useCallback(l=>{const u=n.current+l;t(u),(function c(f){n.current=f,window.clearTimeout(r.current),f!==""&&(r.current=window.setTimeout(()=>c(""),1e3))})(u)},[t]),i=A.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return A.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,i]}function P9(e,t,n){const a=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let l=DU(e,Math.max(i,0));a.length===1&&(l=l.filter(f=>f!==n));const c=l.find(f=>f.textValue.toLowerCase().startsWith(a.toLowerCase()));return c!==n?c:void 0}function DU(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var IU=s9,LU=l9,jU=u9,BU=c9,zU=d9,FU=f9,HU=g9,UU=v9,qU=E9,$U=_9,VU=T9,GU=w9;function Hn({...e}){return p.jsx(IU,{"data-loc":"client/src/components/ui/select.tsx:10","data-slot":"select",...e})}function Un({...e}){return p.jsx(jU,{"data-loc":"client/src/components/ui/select.tsx:22","data-slot":"select-value",...e})}function qn({className:e,size:t="default",children:n,...r}){return p.jsxs(LU,{"data-loc":"client/src/components/ui/select.tsx:34","data-slot":"select-trigger","data-size":t,className:kt("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,p.jsx(BU,{"data-loc":"client/src/components/ui/select.tsx:44",asChild:!0,children:p.jsx(mw,{"data-loc":"client/src/components/ui/select.tsx:45",className:"size-4 opacity-50"})})]})}function $n({className:e,children:t,position:n="popper",align:r="center",...a}){return p.jsx(zU,{"data-loc":"client/src/components/ui/select.tsx:59",children:p.jsxs(FU,{"data-loc":"client/src/components/ui/select.tsx:60","data-slot":"select-content",className:kt("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",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:r,...a,children:[p.jsx(YU,{"data-loc":"client/src/components/ui/select.tsx:72"}),p.jsx(HU,{"data-loc":"client/src/components/ui/select.tsx:73",className:kt("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),p.jsx(QU,{"data-loc":"client/src/components/ui/select.tsx:82"})]})})}function Rt({className:e,children:t,...n}){return p.jsxs(UU,{"data-loc":"client/src/components/ui/select.tsx:107","data-slot":"select-item",className:kt("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[p.jsx("span",{"data-loc":"client/src/components/ui/select.tsx:115",className:"absolute right-2 flex size-3.5 items-center justify-center",children:p.jsx($U,{"data-loc":"client/src/components/ui/select.tsx:116",children:p.jsx(pw,{"data-loc":"client/src/components/ui/select.tsx:117",className:"size-4"})})}),p.jsx(qU,{"data-loc":"client/src/components/ui/select.tsx:120",children:t})]})}function YU({className:e,...t}){return p.jsx(VU,{"data-loc":"client/src/components/ui/select.tsx:143","data-slot":"select-scroll-up-button",className:kt("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(oF,{"data-loc":"client/src/components/ui/select.tsx:151",className:"size-4"})})}function QU({className:e,...t}){return p.jsx(GU,{"data-loc":"client/src/components/ui/select.tsx:161","data-slot":"select-scroll-down-button",className:kt("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(mw,{"data-loc":"client/src/components/ui/select.tsx:169",className:"size-4"})})}function XU(e,t){return(google.maps.geometry.spherical.computeHeading(e,t)+360)%360}function KU(e){const t=(e%360+360)%360;return t>=315||t<45?{code:"N",label:"شمال"}:t>=45&&t<135?{code:"E",label:"شرق"}:t>=135&&t<225?{code:"S",label:"جنوب"}:{code:"W",label:"غرب"}}
412const aE={N:"شمال",S:"جنوب",E:"شرق",W:"غرب"},WU={S:{level:"شمس قوية طوال اليوم",note:"مثالية للمعيشة النهارية",color:"text-orange-600"},N:{level:"الأبرد، أقل شمس",note:"مناسبة لغرف النوم والمخازن",color:"text-sky-600"},E:{level:"شمس الصباح اللطيفة",note:"مناسبة لغرف النوم والإفطار",color:"text-amber-500"},W:{level:"شمس الظهيرة الحارة",note:"يفضّل تقليل النوافذ أو وضع الخدمات",color:"text-red-600"}},Qf=[{key:"m2",label:"متر مربع (م²)",factor:1},{key:"dunam",label:"دونم",factor:.001},{key:"hectare",label:"هكتار",factor:1e-4},{key:"feddan",label:"فدان",factor:238e-6},{key:"ft2",label:"قدم مربع (ft²)",factor:10.7639},{key:"m2_1000",label:"ألف م²",factor:.001}];function ZU(e){return e.length<3?0:google.maps.geometry.spherical.computeArea(e)}function JU(e){if(e.length<2)return 0;let t=0;for(let n=0;n<e.length;n++){const r=e[(n+1)%e.length];t+=google.maps.geometry.spherical.computeDistanceBetween(e[n],r)}return t}function eq(e,t){if(e.length<=2)return e.map((i,l)=>l);const n=new Array(e.length).fill(!1);n[0]=!0,n[e.length-1]=!0;const r=[[0,e.length-1]];for(;r.length;){const[i,l]=r.pop();let u=0,c=-1;const f=e[i],g=e[l],h=g.x-f.x,x=g.y-f.y,b=Math.hypot(h,x)||1;for(let E=i+1;E<l;E++){const _=e[E],C=Math.abs(x*_.x-h*_.y+g.x*f.y-g.y*f.x)/b;C>u&&(u=C,c=E)}u>t&&c!==-1&&(n[c]=!0,r.push([i,c]),r.push([c,l]))}const a=[];for(let i=0;i<e.length;i++)n[i]&&a.push(i);return a}function tq(){const{isAuthenticated:e}=Za(),[t,n]=A.useState(null),[r,a]=A.useState(null),[i,l]=A.useState("m2"),[u,c]=A.useState(""),[f,g]=A.useState([]),[h,x]=A.useState("hybrid"),[b,E]=A.useState(!1),[_,C]=A.useState(0),[w,N]=A.useState("tap"),[R,z]=A.useState(""),[B,j]=A.useState([]),L=A.useRef(null),Y=A.useRef(null),Z=A.useRef([]),$=A.useRef([]),te=A.useRef(null),ee=A.useRef(null),he=A.useRef(null),ie=A.useRef(!1),ne=A.useRef("tap"),H=A.useRef([]),re=A.useRef(!1),J=Dt.measurements.create.useMutation({onSuccess:()=>{Ct.success("تم حفظ القياس بنجاح"),c("")},onError:()=>Ct.error("فشل حفظ القياس")}),Te=A.useCallback(()=>{$.current.forEach(Ce=>Ce.setMap(null)),$.current=[],L.current&&Z.current.forEach((Ce,xt)=>{const ft=new google.maps.Marker({position:Ce,map:L.current,draggable:!0,label:{text:String(xt+1),color:"#fff",fontSize:"10px",fontWeight:"bold"},icon:{path:google.maps.SymbolPath.CIRCLE,scale:8,fillColor:"#D97706",fillOpacity:1,strokeColor:"#fff",strokeWeight:2}});ft.addListener("drag",Yt=>{Yt.latLng&&(Z.current[xt]=Yt.latLng,ee.current&&ee.current.setPath(Z.current),te.current&&te.current.setPath(Z.current))}),ft.addListener("dragend",()=>q()),$.current.push(ft)})},[]),q=A.useCallback(()=>{const Ce=Z.current;C(Ce.length),g(Ce.map(xt=>({lat:xt.lat(),lng:xt.lng()}))),ee.current&&ee.current.setPath(Ce),Ce.length>=3?(!te.current&&L.current?te.current=new google.maps.Polygon({map:L.current,paths:Ce,fillColor:"#D97706",fillOpacity:.25,strokeColor:"#D97706",strokeWeight:2.5,clickable:!1}):te.current&&te.current.setPath(Ce),n(ZU(Ce)),a(JU(Ce))):(te.current&&(te.current.setMap(null),te.current=null),n(null),a(null))},[]),G=A.useCallback(()=>{q(),Te()},[q,Te]),oe=A.useCallback(()=>{!ee.current&&L.current&&(ee.current=new google.maps.Polyline({map:L.current,path:Z.current,strokeColor:"#D97706",strokeWeight:2.5}))},[]),M=A.useCallback(Ce=>{L.current&&(Z.current.push(Ce),G())},[G]),pe=A.useCallback(()=>{ie.current=!0,E(!0),oe(),ne.current==="pen"?(L.current?.setOptions({draggable:!1,gestureHandling:"none"}),Ct.info("اسحب إصبعك حول حدود القطعة لرسمها")):Ct.info("انقر على زوايا القطعة لإضافة النقاط")},[oe]),_e=A.useCallback(()=>{if(ie.current=!1,E(!1),L.current?.setOptions({draggable:!0,gestureHandling:"greedy"}),Z.current.length<3){Ct.error("أضف 3 نقاط على الأقل لتكوين مساحة");return}G(),Ct.success("تم إنهاء الرسم — يمكنك سحب أي نقطة لتعديلها")},[G]),Re=A.useCallback(()=>{Z.current.length!==0&&(Z.current.pop(),G())},[G]),ve=A.useCallback(()=>{Z.current=[],$.current.forEach(Ce=>Ce.setMap(null)),$.current=[],te.current&&(te.current.setMap(null),te.current=null),ee.current&&ee.current.setPath([]),ie.current=!1,E(!1),L.current?.setOptions({draggable:!0,gestureHandling:"greedy"}),n(null),a(null),g([]),C(0)},[]),Ie=A.useCallback((Ce,xt)=>
412{const ft=Y.current;if(!ft)return null;const Yt=ft.getProjection();return Yt?Yt.fromContainerPixelToLatLng(new google.maps.Point(Ce,xt)):null},[]),Ue=A.useCallback(()=>{const Ce=H.current;if(re.current=!1,Ce.length<3){H.current=[];return}const ft=eq(Ce,8).map(Jt=>Ce[Jt]),Yt=[];for(const Jt of ft){const xa=Ie(Jt.x,Jt.y);xa&&Yt.push(xa)}Yt.length>=3&&(Z.current=Yt,G()),H.current=[]},[Ie,G]),Qe=A.useCallback(Ce=>{if(!ie.current||ne.current!=="pen")return;Ce.preventDefault(),Ce.target.setPointerCapture(Ce.pointerId),re.current=!0,H.current=[],Z.current=[],$.current.forEach(ft=>ft.setMap(null)),$.current=[],te.current&&(te.current.setMap(null),te.current=null),oe();const xt=Ce.currentTarget.getBoundingClientRect();H.current.push(new google.maps.Point(Ce.clientX-xt.left,Ce.clientY-xt.top))},[oe]),rt=A.useCallback(Ce=>{if(!re.current)return;Ce.preventDefault();const xt=Ce.currentTarget.getBoundingClientRect(),ft=new google.maps.Point(Ce.clientX-xt.left,Ce.clientY-xt.top);if(H.current.push(ft),ee.current){const Yt=[];for(const Jt of H.current){const xa=Ie(Jt.x,Jt.y);xa&&Yt.push(xa)}ee.current.setPath(Yt)}},[Ie]),lt=A.useCallback(Ce=>{re.current&&(Ce.preventDefault(),Ue())},[Ue]),hn=A.useCallback(Ce=>{L.current=Ce,Ce.setMapTypeId(h);const xt=new google.maps.OverlayView;xt.onAdd=()=>{},xt.draw=()=>{},xt.onRemove=()=>{},xt.setMap(Ce),Y.current=xt,navigator.geolocation&&navigator.geolocation.getCurrentPosition(ft=>{Ce.setCenter({lat:ft.coords.latitude,lng:ft.coords.longitude}),Ce.setZoom(19)},()=>{Ce.setCenter({lat:33.3152,lng:44.3661}),Ce.setZoom(13)}),he.current=Ce.addListener("click",ft=>{ie.current&&ne.current==="tap"&&ft.latLng&&M(ft.latLng)})},[h,M]),Zt=(Ce,xt)=>{const ft=Qf.find(Yt=>Yt.key===xt);return ft?Ce*ft.factor:Ce},lr=Ce=>Ce<.001?Ce.toExponential(2):Ce>=1e6?(Ce/1e6).toFixed(3)+" مليون":Ce.toLocaleString("ar-IQ",{maximumFractionDigits:3}),Gn=A.useCallback(()=>{const Ce=Z.current;if(Ce.length<3){j([]);return}const xt=Ce.map((ft,Yt)=>{const Jt=Ce[(Yt+1)%Ce.length],be=(XU(ft,Jt)+90)%360,Le=KU(be);return{index:Yt,side:Le.code,label:Le.label,bearing:be}});j(xt)},[]);A.useEffect(()=>{Gn()},[t,f,Gn]);const Mn=()=>{if(!e){Ct.error("يجب تسجيل الدخول أولاً");return}if(!t){Ct.error("ارسم منطقة أولاً");return}if(!u.trim()){Ct.error("أدخل اسماً للقياس");return}const Ce=R?B.find(xt=>xt.side===R):void 0;J.mutate({name:u,areaM2:t,perimeterM:r??void 0,coordinates:f,streetSide:R||void 0,streetBearing:Ce?.bearing,streetEdgeIndex:Ce?.index})},Cr=Ce=>{ne.current=Ce,N(Ce)},pn=Qf.find(Ce=>Ce.key===i)?.label??"م²";return p.jsx(mr,{"data-loc":"client/src/pages/MapPage.tsx:426",children:p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:427",className:"flex flex-col h-[calc(100vh-0px)] lg:h-screen",children:[p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:429",className:"flex items-center justify-between px-4 py-3 border-b border-border bg-background/90 backdrop-blur-sm",children:[p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:430",className:"flex items-center gap-2",children:[p.jsx(Ax,{"data-loc":"client/src/pages/MapPage.tsx:431",size:18,className:"text-primary"}),p.jsx("h1",{"data-loc":"client/src/pages/MapPage.tsx:432",className:"font-bold text-lg",children:"الخريطة والقياس"})]}),p.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:434",className:"flex items-center gap-2",children:p.jsxs(Hn,{"data-loc":"client/src/pages/MapPage.tsx:435",value:h,onValueChange:Ce=>{x(Ce),L.current?.setMapTypeId(Ce)},children:[p.jsxs(qn,{"data-loc":"client/src/pages/MapPage.tsx:436",className:"w-28 h-8 text-xs",children:[p.jsx(wx,{"data-loc":"client/src/pages/MapPage.tsx:437",size:13,className:"ml-1"}),p.jsx(Un,{"data-loc":"client/src/pages/MapPage.tsx:438"})]}),p.jsxs($n,{"data-loc":"client/src/pages/MapPage.tsx:440",children:[p.jsx(Rt,{"data-loc":"client/src/pages/MapPage.tsx:441",value:"roadmap",children:"خريطة"}),p.jsx(Rt,{"data-loc":"client/src/pages/MapPage.tsx:442",value:"satellite",children:"قمر صناعي"}),p.jsx(Rt,{"data-loc":"client/src/pages/MapPage.tsx:443",value:"hybrid",children:"مختلط"})]})]})})]}),p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:449",className:"flex flex-1 overflow-y-auto lg:overflow-hidden flex-col lg:flex-row",children:[p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:451",className:"relative h-[55vh] min-h-[360px] lg:h-auto lg:flex-1",children:[p.jsx(ZF,{"data-loc":"client/src/pages/MapPage.tsx:452",onMapReady:hn,className:"w-full h-full"}),b&&w==="pen"&&p.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:456",className:"absolute inset-0 z-[5] touch-none cursor-crosshair",onPointerDown:Qe,onPointerMove:rt,onPointerUp:lt,onPointerCancel:lt}),p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:466",className:"absolute top-3 right-3 left-3 flex flex-col items-center gap-2 z-10",children:[p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:467",className:"flex items-center gap-1 bg-white rounded-xl shadow-lg p-1",children:[p.jsxs("button",{"data-loc":"client/src/pages/MapPage.tsx:468",onClick:()=>Cr("tap"),className:`flex items-center gap-1.5 px-3 h-9 rounded-lg text-xs font-bold transition-colors ${w==="tap"?"bg-primary text-white":"text-gray-600"}`,children:[p.jsx(wu,{"data-loc":"client/src/pages/MapPage.tsx:472",size:15}),"نقر"]}),p.jsxs("button",{"data-loc":"client/src/pages/MapPage.tsx:474",onClick:()=>Cr("pen"),className:`flex items-center gap-1.5 px-3 h-9 rounded-lg text-xs font-bold transition-colors ${w==="pen"?"bg-primary text-white":"text-gray-600"}`,children:[p.jsx(q8,{"data-loc":"client/src/pages/MapPage.tsx:478",size:15}),"قلم حر"]})]}),p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:482",className:"flex flex-wrap items-center justify-center gap-2",children:[b?p.jsxs(p.Fragment,{children:[p.jsxs(tt,{"data-loc":"client/src/pages/MapPage.tsx:490",onClick:_e,className:"gap-2 shadow-lg h-11 px-4 text-sm font-bold bg-green-600 hover:bg-green-700",children:[p.jsx(pw,{"data-loc":"client/src/pages/MapPage.tsx:491",size:17}),"إنهاء (",_,")"]}),w==="tap"&&p.jsxs(tt,{"data-loc":"client/src/pages/MapPage.tsx:494",onClick:Re,variant:"outline",className:"gap-1.5 shadow-lg h-11 px-3 text-sm bg-white",disabled:_===0,children:[p.jsx(wF,{"data-loc":"client/src/pages/MapPage.tsx:495",size:16}),"تراجع"]})]}):p.jsxs(tt,{"data-loc":"client/src/pages/MapPage.tsx:484",onClick:pe,className:"gap-2 shadow-lg h-11 px-5 text-sm font-bold",children:[w==="pen"?p.jsx(q8,{"data-loc":"client/src/pages/MapPage.tsx:485",size:17}):p.jsx(H8,{"data-loc":"client/src/pages/MapPage.tsx:485",size:17}),_>0?"متابعة الرسم":"ابدأ الرسم"]}),_>0&&p.jsxs(tt,{"data-loc":"client/src/pages/MapPage.tsx:501",onClick:ve,variant:"outline",className:"gap-1.5 shadow-lg h-11 px-3 text-sm bg-white",children:[p.jsx(ad,{"data-loc":"client/src/pages/MapPage.tsx:502",size:16}),"مسح"]})]}),b&&w==="pen"&&p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:508",className:"bg-primary/90 text-white text-xs px-3 py-1.5 rounded-full shadow flex items-center gap-1.5",children:[p.jsx(hF,{"data-loc":"client/src/pages/MapPage.tsx:509",size:13}),"اسحب إصبعك حول حدود القطعة"]})]}),p.jsx("button",{"data-loc":"client/src/pages/MapPage.tsx:515",className:"absolute bottom-6 left-4 z-10 w-12 h-12 bg-white rounded-full shadow-lg flex items-center justify-center hover:bg-gray-50 transition-colors active:scale-95",onClick:()=>{navigator.geolocation&&navigator.geolocation.getCurrentPosition(Ce=>{L.current&&(L.current.setCenter({lat:Ce.coords.latitude,lng:Ce.coords.longitude}),L.current.setZoom(19)),Ct.success("تم تحديد موقعك")},()=>Ct.error("تعذر تحديد الموقع"))},children:p.jsx(F8,{"data-loc":"client/src/pages/MapPage.tsx:532",size:20,className:"text-primary"})})]}),p.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:537",className:"w-full lg:w-80 shrink-0 border-t lg:border-t-0 lg:border-r border-border bg-background lg:overflow-y-auto",children:p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:538",className:"p-4 space-y-4",children:[p.jsxs(Ot,{"data-loc":"client/src/pages/MapPage.tsx:540",className:t?"border-primary/30 bg-primary/5":"border-border",children:[p.jsx(Pn,{"data-loc":"client/src/pages/MapPage.tsx:541",className:"pb-2 pt-4 px-4",children:p.jsxs(Rn,{"data-loc":"client/src/pages/MapPage.tsx:542",className:"text-sm font-semibold flex items-center gap-2",children:[p.jsx(wu,{"data-loc":"client/src/pages/MapPage.tsx:543",size:15,className:"text-primary"}),"نتيجة القياس"]})}),p.jsx(Mt,{"data-loc":"client/src/pages/MapPage.tsx:547",className:"px-4 pb-4",children:t?p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:549",className:"space-y-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:550",children:[p.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:551",className:"text-3xl font-black text-primary",children:lr(Zt(t,i))}),p.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:554",className:"text-sm text-muted-foreground mt-0.5",children:pn})]}),r&&p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:557",className:"text-sm text-muted-foreground",children:["المحيط: ",p.jsxs("span",{"data-loc":"client/src/pages/MapPage.tsx:558",className:"font-semibold text-foreground",children:[r.toFixed(1)," م"]})]}),p.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:562",className:"space-y-1.5 pt-2 border-t border-border",children:Qf.map(Ce=>p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:564",className:"flex justify-between text-xs",children:[p.jsx("span",{"data-loc":"client/src/pages/MapPage.tsx:565",className:"text-muted-foreground",children:Ce.label}),p.jsx("span",{"data-loc":"client/src/pages/MapPage.tsx:566",className:"font-medium",children:(t*Ce.factor).toLocaleStr
412ing("ar-IQ",{maximumFractionDigits:4})})]},Ce.key))})]}):p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:572",className:"text-center py-4",children:[p.jsx(Ax,{"data-loc":"client/src/pages/MapPage.tsx:573",size:32,className:"text-muted-foreground/30 mx-auto mb-2"}),p.jsx("p",{"data-loc":"client/src/pages/MapPage.tsx:574",className:"text-muted-foreground text-sm",children:"اختر وضع الرسم ثم ارسم حدود القطعة"})]})})]}),p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:581",children:[p.jsx(et,{"data-loc":"client/src/pages/MapPage.tsx:582",className:"text-xs font-semibold mb-1.5 block",children:"وحدة العرض"}),p.jsxs(Hn,{"data-loc":"client/src/pages/MapPage.tsx:583",value:i,onValueChange:l,children:[p.jsx(qn,{"data-loc":"client/src/pages/MapPage.tsx:584",className:"h-9",children:p.jsx(Un,{"data-loc":"client/src/pages/MapPage.tsx:585"})}),p.jsx($n,{"data-loc":"client/src/pages/MapPage.tsx:587",children:Qf.map(Ce=>p.jsx(Rt,{"data-loc":"client/src/pages/MapPage.tsx:589",value:Ce.key,children:Ce.label},Ce.key))})]})]}),t&&p.jsxs(Ot,{"data-loc":"client/src/pages/MapPage.tsx:597",className:"border-amber-300/40 bg-amber-50/40",children:[p.jsx(Pn,{"data-loc":"client/src/pages/MapPage.tsx:598",className:"pb-2 pt-4 px-4",children:p.jsxs(Rn,{"data-loc":"client/src/pages/MapPage.tsx:599",className:"text-sm font-semibold flex items-center gap-2",children:[p.jsx(Tx,{"data-loc":"client/src/pages/MapPage.tsx:600",size:15,className:"text-amber-600"}),"اتجاه القطعة والشارع"]})}),p.jsxs(Mt,{"data-loc":"client/src/pages/MapPage.tsx:604",className:"px-4 pb-4 space-y-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:605",children:[p.jsx(et,{"data-loc":"client/src/pages/MapPage.tsx:606",className:"text-xs font-semibold mb-1.5 block",children:"على أي جهة يقع الشارع؟"}),p.jsxs(Hn,{"data-loc":"client/src/pages/MapPage.tsx:607",value:R,onValueChange:z,children:[p.jsx(qn,{"data-loc":"client/src/pages/MapPage.tsx:608",className:"h-9",children:p.jsx(Un,{"data-loc":"client/src/pages/MapPage.tsx:609",placeholder:"اختر جهة الشارع"})}),p.jsxs($n,{"data-loc":"client/src/pages/MapPage.tsx:611",children:[p.jsx(Rt,{"data-loc":"client/src/pages/MapPage.tsx:612",value:"N",children:"شمال"}),p.jsx(Rt,{"data-loc":"client/src/pages/MapPage.tsx:613",value:"S",children:"جنÙ
412ˆØ¨"}),p.jsx(Rt,{"data-loc":"client/src/pages/MapPage.tsx:614",value:"E",children:"شرق"}),p.jsx(Rt,{"data-loc":"client/src/pages/MapPage.tsx:615",value:"W",children:"غرب"})]})]})]}),B.length>0&&p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:620",className:"space-y-2",children:[p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:622",className:"flex items-center gap-2 text-[11px] text-muted-foreground",children:[p.jsx("span",{"data-loc":"client/src/pages/MapPage.tsx:623",className:"inline-flex items-center justify-center w-7 h-7 rounded-full bg-white border border-amber-200 shrink-0",children:p.jsx(F8,{"data-loc":"client/src/pages/MapPage.tsx:624",size:14,className:"text-red-600",style:{transform:"rotate(0deg)"}})}),p.jsxs("span",{"data-loc":"client/src/pages/MapPage.tsx:626",children:["الشمال للأعلى — أضلاع القطعة: ",Array.from(new Set(B.map(Ce=>Ce.label))).join("، ")]})]}),p.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:629",className:"grid grid-cols-2 gap-1.5",children:Array.from(new Set(B.map(Ce=>Ce.side))).map(Ce=>{const xt=WU[Ce];return xt?p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:634",className:"bg-white rounded-lg p-2 border border-amber-100",children:[p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:635",className:"flex items-center gap-1",children:[p.jsx(Cx,{"data-loc":"client/src/pages/MapPage.tsx:636",size:11,className:xt.color}),p.jsxs("span",{"data-loc":"client/src/pages/MapPage.tsx:637",className:"text-[11px] font-bold text-foreground",children:["واجهة ",aE[Ce]]})]}),p.jsx("p",{"data-loc":"client/src/pages/MapPage.tsx:639",className:`text-[10px] font-semibold ${xt.color}`,children:xt.level}),p.jsx("p",{"data-loc":"client/src/pages/MapPage.tsx:640",className:"text-[10px] text-muted-foreground leading-tight",children:xt.note})]},Ce):null})})]}),R&&p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:648",className:"flex items-start gap-2 bg-white rounded-lg p-2.5 border border-amber-200",children:[p.jsx(Cx,{"data-loc":"client/src/pages/MapPage.tsx:649",size:14,className:"text-amber-500 mt-0.5 shrink-0"}),p.jsxs("p",{"data-loc":"client/src/pages/MapPage.tsx:650",className:"text-[11px] text-muted-foreground leading-relaxed",children:["الشارع جهة ",p.jsx("span",{"data-loc":"client/src/pages/MapPage.tsx:651",className:"font-bold text-foreground",children:aE[R]})," — سيوضع المدخل والمجلس قرب الشارع، وتوجَّه غرف النوم نحو ",R==="S"?"الشمال (أبرد)":"الجنوب/الشرق للإضاءة"," لمراعاة الشمس والخصوصية."]})]})]})]}),t&&e&&p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:661",className:"space-y-2",children:[p.jsx(et,{"data-loc":"client/src/pages/MapPage.tsx:662",className:"text-xs font-semibold",children:"حفظ القطعة باسم"}),p.jsx(qt,{"data-loc":"client/src/pages/MapPage.tsx:663",placeholder:"اسم القطعة (مثال: قطعة الكرادة)",value:u,onChange:Ce=>c(Ce.target.value),className:"h-9 text-sm"}),p.jsxs(tt,{"data-loc":"client/src/pages/MapPage.tsx:669",className:"w-full gap-2 h-9",onClick:Mn,disabled:J.isPending,children:[p.jsx(EF,{"data-loc":"client/src/pages/MapPage.tsx:670",size:15}),J.isPending?"جاري الحفظ...":"حفظ القطعة بالتفاصيل"]}),p.jsx(Sr,{"data-loc":"client/src/pages/MapPage.tsx:673",href:"/floor-plans",children:p.jsxs(tt,{"data-loc":"client/src/pages/MapPage.tsx:674",variant:"outline",className:"w-full gap-2 h-9 bg-white",children:[p.jsx(H8,{"data-loc":"client/src/pages/MapPage.tsx:675",size:15}),"توليد خريطة بناء لهذه القطعة"]})})]}),p.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:683",className:"bg-muted/50 rounded-xl p-3 space-y-1.5",children:[p.jsx("p",{"data-loc":"client/src/pages/MapPage.tsx:684",className:"text-xs font-semibold text-muted-foreground",children:"كيفية الاستخدام:"}),p.jsxs("ol",{"data-loc":"client/src/pages/MapPage.tsx:685",className:"text-xs text-muted-foreground space-y-1 list-decimal list-inside",children:[p.jsxs("li",{"data-loc":"client/src/pages/MapPage.tsx:686",children:[p.jsx("span",{"data-loc":"client/src/pages/MapPage.tsx:686",className:"font-semibold",children:"قلم حر:"}),' اضغط "ابدأ الرسم" ثم اسحب إصبعك حول حدود القطعة']}),p.jsxs("li",{"data-loc":"client/src/pages/MapPage.tsx:687",children:[p.jsx("span",{"data-loc":"client/src/pages/MapPage.tsx:687",className:"font-semibold",children:"نقر:"})," انقر على كل زاوية من زوايا القطعة"]}),p.jsx("li",{"data-loc":"client/src/pages/MapPage.tsx:688",children:"بعد الرسم اسحب أي نقطة لتصحيح موقعها"}),p.jsx("li",{"data-loc":"client/src/pages/MapPage.tsx:689",children:"تظهر المساحة وكل الوحدات تلقائياً"})]})]})]})})]})]})})}var e2="rovingFocusGroup.onEntryFocus",nq={bubbles:!1,cancelable:!0},sd="RovingFocusGroup",[Ix,R9,rq]=gy(sd),[aq,O9]=gi(sd,[rq]),[sq,iq]=aq(sd),M9=A.forwardRef((e,t)=>
vendor: 1,318 bytes, line 412
412p.jsx(Ix.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Ix.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(lq,{...e,ref:t})})}));M9.displayName=sd;var lq=A.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:c,onEntryFocus:f,preventScrollOnEntryFocus:g=!1,...h}=e,x=A.useRef(null),b=$t(t,x),E=zp(i),[_,C]=Iu({prop:l,defaultProp:u??null,onChange:c,caller:sd}),[w,N]=A.useState(!1),R=ui(f),z=R9(n),B=A.useRef(!1),[j,L]=A.useState(0);return A.useEffect(()=>{const Y=x.current;if(Y)return Y.addEventListener(e2,R),()=>Y.removeEventListener(e2,R)},[R]),p.jsx(sq,{scope:n,orientation:r,dir:E,loop:a,currentTabStopId:_,onItemFocus:A.useCallback(Y=>C(Y),[C]),onItemShiftTab:A.useCallback(()=>N(!0),[]),onFocusableItemAdd:A.useCallback(()=>L(Y=>Y+1),[]),onFocusableItemRemove:A.useCallback(()=>L(Y=>Y-1),[]),children:p.jsx(dt.div,{tabIndex:w||j===0?-1:0,"data-orientation":r,...h,ref:b,style:{outline:"none",...e.style},onMouseDown:st(e.onMouseDown,()=>{B.current=!0}),onFocus:st(e.onFocus,Y=>{const Z=!B.current;if(Y.target===Y.currentTarget&&Z&&!w){const $=new CustomEvent(e2,nq);if(Y.currentTarget.dispatchEvent($),!$.defaultPrevented){const te=z().filter(H=>H.focusable),ee=te.find(H=>H.active),he=te.find(H=>
vendor: 5,036 bytes, line 412
412H.id===_),ne=[ee,he,...te].filter(Boolean).map(H=>H.ref.current);L9(ne,g)}}B.current=!1}),onBlur:st(e.onBlur,()=>N(!1))})})}),D9="RovingFocusGroupItem",I9=A.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:i,children:l,...u}=e,c=al(),f=i||c,g=iq(D9,n),h=g.currentTabStopId===f,x=R9(n),{onFocusableItemAdd:b,onFocusableItemRemove:E,currentTabStopId:_}=g;return A.useEffect(()=>{if(r)return b(),()=>E()},[r,b,E]),p.jsx(Ix.ItemSlot,{scope:n,id:f,focusable:r,active:a,children:p.jsx(dt.span,{tabIndex:h?0:-1,"data-orientation":g.orientation,...u,ref:t,onMouseDown:st(e.onMouseDown,C=>{r?g.onItemFocus(f):C.preventDefault()}),onFocus:st(e.onFocus,()=>g.onItemFocus(f)),onKeyDown:st(e.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){g.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const w=cq(C,g.orientation,g.dir);if(w!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let R=x().filter(z=>z.focusable).map(z=>z.ref.current);if(w==="last")R.reverse();else if(w==="prev"||w==="next"){w==="prev"&&R.reverse();const z=R.indexOf(C.currentTarget);R=g.loop?dq(R,z+1):R.slice(z+1)}setTimeout(()=>L9(R))}}),children:typeof l=="function"?l({isCurrentTabStop:h,hasTabStop:_!=null}):l})})});I9.displayName=D9;var oq={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uq(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function cq(e,t,n){const r=uq(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return oq[r]}function L9(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function dq(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var fq=M9,hq=I9,qp="Tabs",[pq]=gi(qp,[O9]),j9=O9(),[mq,by]=pq(qp),B9=A.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:i,orientation:l="horizontal",dir:u,activationMode:c="automatic",...f}=e,g=zp(u),[h,x]=Iu({prop:r,onChange:a,defaultProp:i??"",caller:qp});return p.jsx(mq,{scope:n,baseId:al(),value:h,onValueChange:x,orientation:l,dir:g,activationMode:c,children:p.jsx(dt.div,{dir:g,"data-orientation":l,...f,ref:t})})});B9.displayName=qp;var z9="TabsList",F9=A.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...a}=e,i=by(z9,n),l=j9(n);return p.jsx(fq,{asChild:!0,...l,orientation:i.orientation,dir:i.dir,loop:r,children:p.jsx(dt.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:t})})});F9.displayName=z9;var H9="TabsTrigger",U9=A.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:a=!1,...i}=e,l=by(H9,n),u=j9(n),c=V9(l.baseId,r),f=G9(l.baseId,r),g=r===l.value;return p.jsx(hq,{asChild:!0,...u,focusable:!a,active:g,children:p.jsx(dt.button,{type:"button",role:"tab","aria-selected":g,"aria-controls":f,"data-state":g?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c,...i,ref:t,onMouseDown:st(e.onMouseDown,h=>{!a&&h.button===0&&h.ctrlKey===!1?l.onValueChange(r):h.preventDefault()}),onKeyDown:st(e.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&l.onValueChange(r)}),onFocus:st(e.onFocus,()=>{const h=l.activationMode!=="manual";!g&&!a&&h&&l.onValueChange(r)})})})});U9.displayName=H9;var q9="TabsContent",$9=A.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:a,children:i,...l}=e,u=by(q9,n),c=V9(u.baseId,r),f=G9(u.baseId,r),g=r===u.value,h=A.useRef(g);return A.useEffect(()=>{const x=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(x)},[]),p.jsx($u,{present:a||g,children:({present:x})=>p.jsx(dt.div,{"data-state":g?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":c,hidden:!x,id:f,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:x&&i})})});$9.displayName=q9;function V9(e,t){return`${e}-trigger-${t}`}function G9(e,t){return`${e}-content-${t}`}var gq=B9,xq=F9,bq=U9,yq=$9;function yy({className:e,...t}){return p.jsx(gq,{"data-loc":"client/src/components/ui/tabs.tsx:11","data-slot":"tabs",className:kt("flex flex-col gap-2",e),...t})}function vy({className:e,...t}){return p.jsx(xq,{"data-loc":"client/src/components/ui/tabs.tsx:24","data-slot":"tabs-list",className:kt("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function bs({className:e,...t}){return p.jsx(bq,{"data-loc":"client/src/components/ui/tabs.tsx:40","data-slot":"tabs-trigger",className:kt("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focu
412s-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function ys({className:e,...t}){return p.jsx(yq,{"data-loc":"client/src/components/ui/tabs.tsx:56","data-slot":"tabs-content",className:kt("flex-1 outline-none",e),...t})}function vq(){const[e,t]=A.useState("0"),[n,r]=A.useState(null),[a,i]=A.useState(null),[l,u]=A.useState([]),[c,f]=A.useState(!1),g=R=>{c?(t(R),f(!1)):t(e==="0"?R:e+R)},h=()=>{if(c){t("0."),f(!1);return}e.includes(".")||t(e+".")},x=R=>{const z=parseFloat(e);if(n!==null&&a&&!c){const B=b(parseFloat(n),z,a),j=`${n} ${a} ${e} = ${B}`;u(L=>[j,...L.slice(0,9)]),t(String(B)),r(String(B))}else r(e);i(R),f(!0)},b=(R,z,B)=>{switch(B){case"+":return R+z;case"−":return R-z;case"×":return R*z;case"÷":return z!==0?R/z:0;case"%":return R*z/100;default:return z}},E=()=>{if(!a||n===null)return;const R=parseFloat(e),z=b(parseFloat(n),R,a),B=`${n} ${a} ${e} = ${z}`;u(j=>[B,...j.slice(0,9)]),t(String(z)),r(null),i(null),f(!0)},_=()=>{t("0"),r(null),i(null),f(!1)},C=()=>t(String(parseFloat(e)*-1)),w=()=>t(String(parseFloat(e)/100)),N=(R,z,B="num")=>{const j={num:"bg-card hover:bg-muted border border-border text-foreground font-semibold",op:"bg-primary/10 hover:bg-primary/20 text-primary font-bold",eq:"bg-primary hover:bg-primary/90 text-primary-foreground font-bold",fn:"bg-muted hover:bg-muted/80 text-muted-foreground font-medium"};return p.jsx("button",{"data-loc":"client/src/pages/CalculatorPage.tsx:79",onClick:z,className:`h-14 rounded-2xl text-lg transition-all duration-100 active:scale-95 ${j[B]}`,children:R},R)};return p.jsxs("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:90",className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[p.jsx("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:91",className:"lg:col-span-2",children:p.jsxs(Ot,{"data-loc":"client/src/pages/CalculatorPage.tsx:92",className:"overflow-hidden",children:[p.jsxs("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:93",className:"bg-accent p-6 pb-4",children:[p.jsx("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:94",className:"text-accent-foreground/50 text-sm h-6 text-left ltr-only",children:n&&a?`${n} ${a}`:""}),p.jsx("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:97",className:"text-accent-foreground text-5xl font-black text-left ltr-only overflow-hidden text-ellipsis",children:parseFloat(e).toLocaleString("ar-IQ")})]}),p.jsx(Mt,{"data-loc":"client/src/pages/CalculatorPage.tsx:101",className:"p-4",children:p.jsxs("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:102",className:"grid grid-cols-4 gap-2",children:[N("AC",_,"fn"),N("+/-",C,"fn"),N("%",w,"fn"),N("÷",()=>x("÷"),"op"),N("7",()=>g("7")),N("8",()=>g("8")),N("9",()=>g("9")),N("×",()=>x("×"),"op"),N("4",()=>g("4")),N("5",()=>g("5")),N("6",()=>g("6")),N("−",()=>x("−"),"op"),N("1",()=>g("1")),N("2",()=>g("2")),N("3",()=>g("3")),N("+",()=>x("+"),"op"),p.jsx("button",{"data-loc":"client/src/pages/CalculatorPage.tsx:119",onClick:()=>g("0"),className:"col-span-2 h-14 rounded-2xl bg-card hover:bg-muted border border-border text-foreground font-semibold text-lg transition-all active:scale-95",children:"0"}),N(".",h),N("=",E,"eq")]})})]})}),p.jsxs(Ot,{"data-loc":"client/src/pages/CalculatorPage.tsx:128",children:[p.jsx(Pn,{"data-loc":"client/src/pages/CalculatorPage.tsx:129",className:"pb-3",children:p.jsxs(Rn,{"data-loc":"client/src/pages/CalculatorPage.tsx:130",className:"text-sm flex items-center gap-2",children:[p.jsx(pF,{"data-loc":"client/src/pages/CalculatorPage.tsx:131",size:15}),"السجل"]})}),p.jsxs(Mt,{"data-loc":"client/src/pages/CalculatorPage.tsx:134",children:[l.length===0?p.jsx("p",{"data-loc":"client/src/pages/CalculatorPage.tsx:136",className:"text-muted-foreground text-sm text-center py-4",children:"لا توجد عمليات بعد"}):p.jsx("ul",{"data-loc":"client/src/pages/CalculatorPage.tsx:138",className:"space-y-2",children:l.map((R,z)=>p.jsx("li",{"data-loc":"client/src/pages/CalculatorPage.tsx:140",className:"text-sm bg-muted/50 rounded-lg px-3 py-2 font-mono ltr-only text-left",children:R},z))}),l.length>0&&p.jsxs(tt,{"data-loc":"client/src/pages/CalculatorPage.tsx:145",variant:"ghost",size:"sm",className:"w-full mt-3 text-muted-foreground gap-1",onClick:()=>u([]),children:[p.jsx(ay,{"data-loc":"client/src/pages/CalculatorPage.tsx:146",size:13}),"مسح السجل"]})]})]})]})}const sE={length:{label:"الطول",icon:Ax,units:[{key:"m",label:"متر (م)",factor:1},{key:"cm",label:"سنتيمتر (سم)",factor:100},{key:"mm",label:"ملليمتر (مم)",factor:1e3},{key:"km",label:"كيلومتر (كم)",factor:.001},{key:"ft",label:"قدم (ft)",factor:3.28084},{key:"in",label:"بوصة (in)",factor:39.3701},{key:"yard",label:"ياردة",factor:1.09361}]},area:{label:"المساحة",icon:wx,units:[{key:"m2",label:"متر مربع (م²)",factor:1},{key:"cm2",label:"سنتيمتر مربع",factor:1e4},{key:"km2",label:"كيلومتر مربع",factor:1e-6},{key:"dunam",label:"دونم",factor:.001},{key:"hectare",label:"هكتار",factor:1e-4},{key:"feddan",label:"فدان",factor:238e-6},{key:"ft2",label:"قدم مربع (ft²)",factor:10.7639}]},volume:{label:"الحجم",icon:wx,units:[{key:"m3",label:"متر مكعب (م³)",factor:1},{key:"cm3",label:"سنتيمتر مكعب",factor:1e6},{key:"liter",label:"لتر",factor:1e3},{key:"ml",label:"ملليلتر",factor:1e6},{key:"gallon",label:"جالون (US)",factor:264.172},{key:"ft3",label:"قدم مكعب",factor:35.3147}]},weight:{label:"الوزن",icon:AF,units:[{key:"kg",label:"كيلوغرام (كغ)",factor:1},{key:"g",label:"غرام (غ)",factor:1e3},{key:"ton",label:"طن متري",factor:.001},{key:"lb",label:"رطل (lb)",factor:2.20462},{key:"oz",label:"أوقية (oz)",factor:35.274}]}};function Eq(){const[e,t]=A.useState("length"),[n,r]=A.useState("m"),[a,i]=A.useState("cm"),[l,u]=A.useState("1"),c=sE[e],f=c.units.find(b=>b.key===n)?.factor??1,g=c.units.find(b=>b.key===a)?.factor??1,h=parseFloat(l||"0")/f,x=h*g;return p.jsxs(Ot,{"data-loc":"client/src/pages/CalculatorPage.tsx:217",className:"max-w-2xl mx-auto",children:[p.jsx(Pn,{"data-loc":"client/src/pages/CalculatorPage.tsx:218",children:p.jsx(Rn,{"data-loc":"client/src/pages/CalculatorPage.tsx:219",className:"text-base",children:"محول الوحدات"})}),p.jsxs(Mt,{"data-loc":"client/src/pages/CalculatorPage.tsx:221",className:"space-y-5",children:[p.jsx("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:223",className:"flex gap-2 flex-wrap",children:Object.entries(sE).map(([b,E])=>p.jsx("button",{"data-loc":"client/src/pages/CalculatorPage.tsx:225",onClick:()=>{t(b),r(E.units[0].key),i(E.units[1].key)},className:`px-4 py-1.5 rounded-full text-sm font-medium transition-all ${e===b?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-muted/80"}`,children:E.label},b))}),p.jsxs("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:235",className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:236",className:"space-y-2",children:[p.jsx(et,{"data-loc":"client/src/pages/CalculatorPage.tsx:237",children:"من"}),p.jsxs(Hn,{"data-loc":"client/src/pages/CalculatorPage.tsx:238",value:n,onValueChange:r,children:[p.jsx(qn,{"data-loc":"client/src/pages/CalculatorPage.tsx:239",children:p.jsx(Un,{"data-loc":"client/src/pages/CalculatorPage.tsx:239"})}),p.jsx($n,{"data-loc":"client/src/pages/CalculatorPage.tsx:240",children:c.units.map(b=>p.jsx(Rt,{"data-loc":"client/src/pages/CalculatorPage.tsx:240",value:b.key,children:b.label},b.key))})]}),p.jsx(qt,{"data-loc":"client/src/pages/CalculatorPage.tsx:242",type:"number",value:l,onCh
412ange:b=>u(b.target.value),className:"text-lg font-bold h-12 ltr-input"})]}),p.jsxs("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:244",className:"space-y-2",children:[p.jsx(et,{"data-loc":"client/src/pages/CalculatorPage.tsx:245",children:"إلى"}),p.jsxs(Hn,{"data-loc":"client/src/pages/CalculatorPage.tsx:246",value:a,onValueChange:i,children:[p.jsx(qn,{"data-loc":"client/src/pages/CalculatorPage.tsx:247",children:p.jsx(Un,{"data-loc":"client/src/pages/CalculatorPage.tsx:247"})}),p.jsx($n,{"data-loc":"client/src/pages/CalculatorPage.tsx:248",children:c.units.map(b=>p.jsx(Rt,{"data-loc":"client/src/pages/CalculatorPage.tsx:248",value:b.key,children:b.label},b.key))})]}),p.jsx("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:250",className:"h-12 bg-primary/5 border border-primary/20 rounded-lg flex items-center px-3",children:p.jsx("span",{"data-loc":"client/src/pages/CalculatorPage.tsx:251",className:"text-lg font-black text-primary ltr-only",children:isNaN(x)?"—":x.toLocaleString("ar-IQ",{maximumFractionDigits:6})})})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:257",className:"bg-muted/40 rounded-xl p-4",children:[p.jsxs("p",{"data-loc":"client/src/pages/CalculatorPage.tsx:258",className:"text-xs font-semibold text-muted-foreground mb-3",children:["جميع التحويلات من ",parseFloat(l||"0")," ",c.units.find(b=>b.key===n)?.label]}),p.jsx("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:259",className:"grid grid-cols-2 gap-2",children:c.units.map(b=>p.jsxs("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:261",className:"flex justify-between text-sm",children:[p.jsx("span",{"data-loc":"client/src/pages/CalculatorPage.tsx:262",className:"text-muted-foreground",children:b.label}),p.jsx("span",{"data-loc":"client/src/pages/CalculatorPage.tsx:263",className:"font-semibold",children:(h*b.factor).toLocaleString("ar-IQ",{maximumFractionDigits:4})})]},b.key))})]})]})]})}function Sq(){const[e,t]=A.useState(""),[n,r]=A.useState(""),[a,i]=A.useState(""),l=parseFloat(e)||0,u=parseFloat(n)||0,c=parseFloat(a)||0,f=l*u,g=l*u*c,h=2*(l+u),x=Math.sqrt(l*l+u*u),b=Math.sqrt(l*l+u*u+c*c);return p.jsxs(Ot,{"data-loc":"client/src/pages/CalculatorPage.tsx:290",className:"max-w-2xl mx-auto",children:[p.jsx(Pn,{"data-loc":"client/src/pages/CalculatorPage.tsx:291",children:p.jsx(Rn,{"data-loc":"client/src/pages/CalculatorPage.tsx:292",className:"text-base",children:"حاسبة الأبعاد"})}),p.jsxs(Mt,{"data-loc":"client/src/pages/CalculatorPage.tsx:294",className:"space-y-5",children:[p.jsx("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:295",className:"grid grid-cols-3 gap-3",children:[{label:"الطول (م)",value:e,set:t},{label:"العرض (م)",value:n,set:r},{label:"الارتفاع (م)",value:a,set:i}].map(E=>p.jsxs("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:301",className:"space-y-1.5",children:[p.jsx(et,{"data-loc":"client/src/pages/CalculatorPage.tsx:302",className:"text-xs",children:E.label}),p.jsx(qt,{"data-loc":"client/src/pages/CalculatorPage.tsx:303",type:"number",placeholder:"0",value:E.value,onChange:_=>E.set(_.target.value),className:"ltr-input h-10"})]},E.label))}),p.jsx("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:308",className:"grid grid-cols-2 gap-3",children:[{label:"المساحة (م²)",value:f,show:l>0&&u>0},{label:"الحجم (م³)",value:g,show:l>0&&u>0&&c>0},{label:"المحيط (م)",value:h,show:l>0&&u>0},{label:"القطر (م)",value:x,show:l>0&&u>0},{label:"القطر الفضائي (م)",value:b,show:l>0&&u>0&&c>0}].filter(E=>E.show).map(E=>p.jsxs("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:316",className:"bg-muted/50 rounded-xl p-4",children:[p.jsx("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:317",className:"text-xs text-muted-foreground mb-1",children:E.label}),p.jsx("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:318",className:"text-2xl font-black text-primary",children:E.value.toLocaleString("ar-IQ",{maximumFractionDigits:3})})]},E.label))})]})]})}function _q(){return p.jsx(mr,{"data-loc":"client/src/pages/CalculatorPage.tsx:329",children:p.jsxs("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:330",className:"p-6",children:[p.jsxs("div",{"data-loc":"client/src/pages/CalculatorPage.tsx:331",className:"flex items-center gap-2 mb-6",children:[p.jsx(Dp,{"data-loc":"client/src/pages/CalculatorPage.tsx:332",size:20,className:"text-primary"}),p.jsx("h1",{"data-loc":"client/src/pages/CalculatorPage.tsx:333",className:"text-2xl font-black",children:"الحاسبة الذكية"})]}),p.jsxs(yy,{"data-loc":"client/src/pages/CalculatorPage.tsx:335",defaultValue:"standard",children:[p.jsxs(vy,{"data-loc":"client/src/pages/CalculatorPage.tsx:336",className:"mb-6",children:[p.jsx(bs,{"data-loc":"client/src/pages/CalculatorPage.tsx:337",value:"standard",children:"الحاسبة"}),p.jsx(bs,{"data-loc":"client/src/pages/CalculatorPage.tsx:338",value:"converter",children:"محول الوحدات"}),p.jsx(bs,{"data-loc":"client/src/pages/CalculatorPage.tsx:339",value:"dimensions",children:"حاسبة الأبعاد"})]}),p.jsx(ys,{"data-loc":"client/src/pages/CalculatorPage.tsx:341",value:"standard",children:p.jsx(vq,{"data-loc":"client/src/pages/CalculatorPage.tsx:341"})}),p.jsx(ys,{"data-loc":"client/src/pages/CalculatorPage.tsx:342",value:"converter",children:p.jsx(Eq,{"data-loc":"client/src/pages/CalculatorPage.tsx:342"})}),p.jsx(ys,{"data-loc":"client/src/pages/CalculatorPage.tsx:343",value:"dimensions",children:p.jsx(Sq,{"data-loc":"client/src/pages/CalculatorPage.tsx:343"})})]})]})})}const id=e=>
412e.toLocaleString("ar-IQ")+" د.ع";function Tq(){const[e,t]=A.useState(""),[n,r]=A.useState(""),[a,i]=A.useState("0.2"),[l,u]=A.useState("1:2:4"),[c,f]=A.useState("25000"),[g,h]=A.useState("80000"),[x,b]=A.useState("60000"),E={"1:1.5:3":[1,1.5,3],"1:2:4":[1,2,4],"1:3:6":[1,3,6]},[_,C,w]=E[l]??[1,2,4],N=_+C+w,R=(parseFloat(e)||0)*(parseFloat(n)||0)*(parseFloat(a)||0)*1.3,z=R*(_/N)*1.5*1440,B=R*(C/N)*1.5,j=R*(w/N)*1.5,L=Math.ceil(z/50),Y=L*parseFloat(c)+B*parseFloat(g)+j*parseFloat(x);return p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:33",className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[p.jsxs(Ot,{"data-loc":"client/src/pages/MaterialsPage.tsx:34",children:[p.jsx(Pn,{"data-loc":"client/src/pages/MaterialsPage.tsx:35",children:p.jsx(Rn,{"data-loc":"client/src/pages/MaterialsPage.tsx:35",className:"text-base",children:"مدخلات الحساب"})}),p.jsxs(Mt,{"data-loc":"client/src/pages/MaterialsPage.tsx:36",className:"space-y-4",children:[p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:37",className:"grid grid-cols-3 gap-3",children:[{l:"الطول (م)",v:e,s:t},{l:"العرض (م)",v:n,s:r},{l:"العمق (م)",v:a,s:i}].map(Z=>p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:39",children:[p.jsx(et,{"data-loc":"client/src/pages/MaterialsPage.tsx:39",className:"text-xs",children:Z.l}),p.jsx(qt,{"data-loc":"client/src/pages/MaterialsPage.tsx:39",type:"number",value:Z.v,onChange:$=>Z.s($.target.value),className:"ltr-input mt-1"})]},Z.l))}),p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:42",children:[p.jsx(et,{"data-loc":"client/src/pages/MaterialsPage.tsx:42",className:"text-xs",children:"نسبة الخلط"}),p.jsxs(Hn,{"data-loc":"client/src/pages/MaterialsPage.tsx:43",value:l,onValueChange:u,children:[p.jsx(qn,{"data-loc":"client/src/pages/MaterialsPage.tsx:44",className:"mt-1",children:p.jsx(Un,{"data-loc":"client/src/pages/MaterialsPage.tsx:44"})}),p.jsxs($n,{"data-loc":"client/src/pages/MaterialsPage.tsx:45",children:[p.jsx(Rt,{"data-loc":"client/src/pages/MaterialsPage.tsx:46",value:"1:1.5:3",children:"1:1.5:3 — عالي المقاومة"}),p.jsx(Rt,{"data-loc":"client/src/pages/MaterialsPage.tsx:47",value:"1:2:4",children:"1:2:4 — عادي (الأكثر شيوعاً)"}),p.jsx(Rt,{"data-loc":"client/src/pages/MaterialsPage.tsx:48",value:"1:3:6",children:"1:3:6 — خفيف"})]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:52",className:"border-t pt-3 space-y-3",children:[p.jsx("p",{"data-loc":"client/src/pages/MaterialsPage.tsx:53",className:"text-xs font-semibold text-muted-foreground",children:"أسعار المواد (دينار عراقي)"}),[{l:"كيس أسمنت 50كغ",v:c,s:f},{l:"م³ رمل",v:g,s:h},{l:"م³ حصى",v:x,s:b}].map(Z=>p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:55",children:[p.jsx(et,{"data-loc":"client/src/pages/MaterialsPage.tsx:55",className:"text-xs",children:Z.l}),p.jsx(qt,{"data-loc":"client/src/pages/MaterialsPage.tsx:55",type:"number",value:Z.v,onChange:$=>Z.s($.target.value),className:"ltr-input mt-1"})]},Z.l))]})]})]}),p.jsxs(Ot,{"data-loc":"client/src/pages/MaterialsPage.tsx:60",className:R>0?"border-primary/30":"",children:[p.jsx(Pn,{"data-loc":"client/src/pages/MaterialsPage.tsx:61",children:p.jsx(Rn,{"data-loc":"client/src/pages/MaterialsPage.tsx:61",className:"text-base",children:"النتائج"})}),p.jsx(Mt,{"data-loc":"client/src/pages/MaterialsPage.tsx:62",children:R>0?p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:64",className:"space-y-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:65",className:"bg-primary/5 rounded-xl p-4 text-center",children:[p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:66",className:"text-3xl font-black text-primary",children:[R.toFixed(2)," م³"]}),p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:67",className:"text-sm text-muted-foreground mt-1",children:"حجم الخرسانة (مع 30% هدر)"})]}),[{l:"أكياس أسمنت (50كغ)",v:`${L} كيس`},{l:"رمل",v:`${B.toFixed(2)} م³`},{l:"حصى",v:`${j.toFixed(2)} م³`}].map(Z=>p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:70",className:"flex justify-between items-center py-2 border-b border-border last:border-0",children:[p.jsx("span",{"data-loc":"client/src/pages/MaterialsPage.tsx:71",className:"text-sm text-muted-foreground",children:Z.l}),p.jsx(Sn,{"data-loc":"client/src/pages/MaterialsPage.tsx:72",variant:"secondary",className:"font-bold",children:Z.v})]},Z.l)),p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:75",className:"bg-green-500/10 rounded-xl p-4 text-center mt-2",children:[p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:76",className:"text-2xl font-black text-green-600",children:id(Math.round(Y))}),p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:77",className:"text-sm text-muted-foreground mt-1",children:"التكلفة التقديرية"})]})]}):p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:80",className:"text-center py-8 text-muted-foreground text-sm",children:"أدخل الأبعاد لحساب الكميات"})})]})]})}function wq(){const[e,t]=A.useState(""),[n,r]=A.useState(""),[a,i]=A.useState("0.2"),[l,u]=A.useState("block"),[c,f]=A.useState("500"),[g,h]=A.useState("25000"),x={block:{w:.4,h:.2,d:.2,label:"بلوك (40×20×20)"},brick:{w:.24,h:.115,d:.115,label:"طابوق (24×11.5×11.5)"},"half-block":{w:.4,h:.2,d:.1,label:"نصف بلوك (40×20×10)"}}
412,b=x[l],E=(parseFloat(e)||0)*(parseFloat(n)||0),_=b.w*b.h,C=Math.ceil(E/_*1.05),w=Math.ceil(E*.01*1440/50),N=C*parseFloat(c)+w*parseFloat(g);return p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:105",className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[p.jsxs(Ot,{"data-loc":"client/src/pages/MaterialsPage.tsx:106",children:[p.jsx(Pn,{"data-loc":"client/src/pages/MaterialsPage.tsx:107",children:p.jsx(Rn,{"data-loc":"client/src/pages/MaterialsPage.tsx:107",className:"text-base",children:"مدخلات الحساب"})}),p.jsxs(Mt,{"data-loc":"client/src/pages/MaterialsPage.tsx:108",className:"space-y-4",children:[p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:109",className:"grid grid-cols-2 gap-3",children:[{l:"طول الجدار (م)",v:e,s:t},{l:"ارتفاع الجدار (م)",v:n,s:r}].map(R=>p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:111",children:[p.jsx(et,{"data-loc":"client/src/pages/MaterialsPage.tsx:111",className:"text-xs",children:R.l}),p.jsx(qt,{"data-loc":"client/src/pages/MaterialsPage.tsx:111",type:"number",value:R.v,onChange:z=>R.s(z.target.value),className:"ltr-input mt-1"})]},R.l))}),p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:114",children:[p.jsx(et,{"data-loc":"client/src/pages/MaterialsPage.tsx:114",className:"text-xs",children:"نوع البلوك/الطابوق"}),p.jsxs(Hn,{"data-loc":"client/src/pages/MaterialsPage.tsx:115",value:l,onValueChange:u,children:[p.jsx(qn,{"data-loc":"client/src/pages/MaterialsPage.tsx:116",className:"mt-1",children:p.jsx(Un,{"data-loc":"client/src/pages/MaterialsPage.tsx:116"})}),p.jsx($n,{"data-loc":"client/src/pages/MaterialsPage.tsx:117",children:Object.entries(x).map(([R,z])=>p.jsx(Rt,{"data-loc":"client/src/pages/MaterialsPage.tsx:117",value:R,children:z.label},R))})]})]}),p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:120",className:"grid grid-cols-2 gap-3",children:[{l:"سعر الوحدة (دينار)",v:c,s:f},{l:"كيس ملاط (دينار)",v:g,s:h}].map(R=>p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:122",children:[p.jsx(et,{"data-loc":"client/src/pages/MaterialsPage.tsx:122",className:"text-xs",children:R.l}),p.jsx(qt,{"data-loc":"client/src/pages/MaterialsPage.tsx:122",type:"number",value:R.v,onChange:z=>R.s(z.target.value),className:"ltr-input mt-1"})]},R.l))})]})]}),p.jsxs(Ot,{"data-loc":"client/src/pages/MaterialsPage.tsx:127",className:E>0?"border-primary/30":"",children:[p.jsx(Pn,{"data-loc":"client/src/pages/MaterialsPage.tsx:128",children:p.jsx(Rn,{"data-loc":"client/src/pages/MaterialsPage.tsx:128",className:"text-base",children:"النتائج"})}),p.jsx(Mt,{"data-loc":"client/src/pages/MaterialsPage.tsx:129",children:E>0?p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:131",className:"space-y-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:132",className:"bg-primary/5 rounded-xl p-4 text-center",children:[p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:133",className:"text-3xl font-black text-primary",children:C.toLocaleString("ar-IQ")}),p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:134",className:"text-sm text-muted-foreground mt-1",children:["وحدة ",x[l].label]})]}),[{l:"مساحة الجدار",v:`${E.toFixed(2)} م²`},{l:"أكياس ملاط",v:`${w} كيس`}].map(R=>p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:137",className:"flex justify-between items-center py-2 border-b border-border last:border-0",children:[p.jsx("span",{"data-loc":"client/src/pages/MaterialsPage.tsx:138",className:"text-sm text-muted-foreground",children:R.l}),p.jsx(Sn,{"data-loc":"client/src/pages/MaterialsPage.tsx:139",variant:"secondary",className:"font-bold",children:R.v})]},R.l)),p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:142",className:"bg-green-500/10 rounded-xl p-4 text-center mt-2",children:[p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:143",className:"text-2xl font-black text-green-600",children:id(Math.round(N))}),p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:144",className:"text-sm text-muted-foreground mt-1",children:"التكلفة التقديرية"})]})]}):p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:147",className:"text-center py-8 text-muted-foreground text-sm",children:"أدخل الأبعاد لحساب الكميات"})})]})]})}function Aq(){const[e,t]=A.useState(""),[n,r]=A.useState(""),[a,i]=A.useState("60"),[l,u]=A.useState("8000"),c=(parseFloat(e)||0)*(parseFloat(n)||0),f=parseFloat(a)/100,g=f*f,h=Math.ceil(c/g*1.1),x=Math.ceil(h/(a==="60"?4:a==="80"?2:6)),b=h*parseFloat(l);return p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:167",className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[p.jsxs(Ot,{"data-loc":"client/src/pages/MaterialsPage.tsx:168",children:[p.jsx(Pn,{"data-loc":"client/src/pages/MaterialsPage.tsx:169",children:p.jsx(Rn,{"data-loc":"client/src/pages/MaterialsPage.tsx:169",className:"text-base",children:"مدخلات الحساب"})}),p.jsxs(Mt,{"data-loc":"client/src/pages/MaterialsPage.tsx:170",className:"space-y-4",children:[p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:171",className:"grid grid-cols-2 gap-3",children:[{l:"طول الغرفة (م)",v:e,s:t},{l:"عرض الغرفة (م)",v:n,s:r}].map(E=>p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:173",children:[p.jsx(et,{"data-loc":"client/src/pages/MaterialsPage.tsx:173",className:"text-xs",children:E.l}),p.jsx(qt,{"data-loc":"client/src/pages/MaterialsPage.tsx:173",type:"number",value:E.v,onChange:_=>E.s(_.target.value),className:"ltr-input mt-1"})]},E.l))}),p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:176",children:[p.jsx(et,{"data-loc":"client/src/pages/MaterialsPage.tsx:176",className:"text-xs",children:"مقاس البلاط (سم)"}),p.jsxs(Hn,{"data-loc":"client/src/pages/MaterialsPage.tsx:177",value:a,onValueChange:i,children:[p.jsx(qn,{"data-loc":"client/src/pages/MaterialsPage.tsx:178",className:"mt-1",children:p.jsx(Un,{"data-loc":"client/src/pages/MaterialsPage.tsx:178"})}),p.jsx($n,{"data-loc":"client/src/pages/MaterialsPage.tsx:179",children:["30","40","50","60","80","100","120"].map(E=>p.jsxs(Rt,{"data-loc":"client/src/pages/MaterialsPage.tsx:180",value:E,children:[E,"×",E," سم"]},E))})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:184",children:[p.jsx(et,{"data-loc":"client/src/pages/MaterialsPage.tsx:184",className:"text-xs",children:"سعر البلاطة (دينار)"}),p.jsx(qt,{"data-loc":"client/src/pages/MaterialsPage.tsx:184",type:"number",value:l,onCh
412ange:E=>u(E.target.value),className:"ltr-input mt-1"})]})]})]}),p.jsxs(Ot,{"data-loc":"client/src/pages/MaterialsPage.tsx:187",className:c>0?"border-primary/30":"",children:[p.jsx(Pn,{"data-loc":"client/src/pages/MaterialsPage.tsx:188",children:p.jsx(Rn,{"data-loc":"client/src/pages/MaterialsPage.tsx:188",className:"text-base",children:"النتائج"})}),p.jsx(Mt,{"data-loc":"client/src/pages/MaterialsPage.tsx:189",children:c>0?p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:191",className:"space-y-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:192",className:"bg-primary/5 rounded-xl p-4 text-center",children:[p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:193",className:"text-3xl font-black text-primary",children:h.toLocaleString("ar-IQ")}),p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:194",className:"text-sm text-muted-foreground mt-1",children:["بلاطة ",a,"×",a," سم (مع 10% هدر)"]})]}),[{l:"مساحة الغرفة",v:`${c.toFixed(2)} م²`},{l:"عدد الكراتين",v:`≈ ${x}`}].map(E=>p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:197",className:"flex justify-between items-center py-2 border-b border-border last:border-0",children:[p.jsx("span",{"data-loc":"client/src/pages/MaterialsPage.tsx:198",className:"text-sm text-muted-foreground",children:E.l}),p.jsx(Sn,{"data-loc":"client/src/pages/MaterialsPage.tsx:199",variant:"secondary",className:"font-bold",children:E.v})]},E.l)),p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:202",className:"bg-green-500/10 rounded-xl p-4 text-center mt-2",children:[p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:203",className:"text-2xl font-black text-green-600",children:id(Math.round(b))}),p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:204",className:"text-sm text-muted-foreground mt-1",children:"التكلفة التقديرية"})]})]}):p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:207",className:"text-center py-8 text-muted-foreground text-sm",children:"أدخل الأبعاد لحساب الكميات"})})]})]})}function Cq(){const[e,t]=A.useState(""),[n,r]=A.useState("2"),[a,i]=A.useState("35000"),l=parseFloat(e)||0,c=Math.ceil(l*parseInt(n)/10*1.1),f=Math.ceil(c/4),g=f*parseFloat(a);return p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:224",className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[p.jsxs(Ot,{"data-loc":"client/src/pages/MaterialsPage.tsx:225",children:[p.jsx(Pn,{"data-loc":"client/src/pages/MaterialsPage.tsx:226",children:p.jsx(Rn,{"data-loc":"client/src/pages/MaterialsPage.tsx:226",className:"text-base",children:"مدخلات الحساب"})}),p.jsxs(Mt,{"data-loc":"client/src/pages/MaterialsPage.tsx:227",className:"space-y-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:228",children:[p.jsx(et,{"data-loc":"client/src/pages/MaterialsPage.tsx:228",className:"text-xs",children:"مساحة الجدران (م²)"}),p.jsx(qt,{"data-loc":"client/src/pages/MaterialsPage.tsx:228",type:"number",value:e,onChange:h=>t(h.target.value),className:"ltr-input mt-1"})]}),p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:229",children:[p.jsx(et,{"data-loc":"client/src/pages/MaterialsPage.tsx:229",className:"text-xs",children:"عدد الطبقات"}),p.jsxs(Hn,{"data-loc":"client/src/pages/MaterialsPage.tsx:230",value:n,onValueChange:r,children:[p.jsx(qn,{"data-loc":"client/src/pages/MaterialsPage.tsx:231",className:"mt-1",children:p.jsx(Un,{"data-loc":"client/src/pages/MaterialsPage.tsx:231"})}),p.jsx($n,{"data-loc":"client/src/pages/MaterialsPage.tsx:232",children:["1","2","3"].map(h=>p.jsxs(Rt,{"data-loc":"client/src/pages/MaterialsPage.tsx:232",value:h,children:[h," طبقات"]},h))})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:235",children:[p.jsx(et,{"data-loc":"client/src/pages/MaterialsPage.tsx:235",className:"text-xs",children:"سعر علبة 4 لتر (دينار)"}),p.jsx(qt,{"data-loc":"client/src/pages/MaterialsPage.tsx:235",type:"number",value:a,onChange:h=>i(h.target.value),className:"ltr-input mt-1"})]})]})]}),p.jsxs(Ot,{"data-loc":"client/src/pages/MaterialsPage.tsx:238",className:l>0?"border-primary/30":"",children:[p.jsx(Pn,{"data-loc":"client/src/pages/MaterialsPage.tsx:239",children:p.jsx(Rn,{"data-loc":"client/src/pages/MaterialsPage.tsx:239",className:"text-base",children:"النتائج"})}),p.jsx(Mt,{"data-loc":"client/src/pages/MaterialsPage.tsx:240",children:l>0?p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:242",className:"space-y-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:243",className:"bg-primary/5 rounded-xl p-4 text-center",children:[p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:244",className:"text-3xl font-black text-primary",children:[c," لتر"]}),p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:245",className:"text-sm text-muted-foreground mt-1",children:"كمية الدهان المطلوبة"})]}),[{l:"علب 4 لتر",v:`${f} علبة`}].map(h=>p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:248",className:"flex justify-between items-center py-2 border-b border-border",children:[p.jsx("span",{"data-loc":"client/src/pages/MaterialsPage.tsx:249",className:"text-sm text-muted-foreground",children:h.l}),p.jsx(Sn,{"data-loc":"client/src/pages/MaterialsPage.tsx:250",variant:"secondary",className:"font-bold",children:h.v})]},h.l)),p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:253",className:"bg-green-500/10 rounded-xl p-4 text-center mt-2",children:[p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:254",className:"text-2xl font-black text-green-600",children:id(Math.round(g))}),p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:255",className:"text-sm text-muted-foreground mt-1",children:"التكلفة التقديرية"})]})]}):p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:258",className:"text-center py-8 text-muted-foreground text-sm",children:"أدخل المساحة لحساب الكميات"})})]})]})}function kq(){const[e,t]=A.useState(""),[n,r]=A.useState(""),[a,i]=A.useState("20"),[l,u]=A.useState("12"),[c,f]=A.useState("1800000"),g=parseFloat(e)||0,h=parseFloat(n)||0,x=parseFloat(a)/100,b=parseFloat(l)/1e3,E=Math.ceil(h/x)+1,_=Math.ceil(g/x)+1,C=(E*g+_*h)*2,w=Math.PI*(b/2)**2*7850,N=C*w,R=N/1e3,z=R*parseFloat(c);return p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:281",className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[p.jsxs(Ot,{"data-loc":"client/src/pages/MaterialsPage.tsx:282",children:[p.jsx(Pn,{"data-loc":"client/src/pages/MaterialsPage.tsx:283",children:p.jsx(Rn,{"data-loc":"client/src/pages/MaterialsPage.tsx:283",className:"text-base",children:"مدخلات الحساب"})}),p.jsxs(Mt,{"data-loc":"client/src/pages/MaterialsPage.tsx:284",className:"space-y-4",children:[p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:285",className:"grid grid-cols-2 gap-3",children:[{l:"طول السقف (م)",v:e,s:t},{l:"عرض السقف (م)",v:n,s:r}].map(B=>p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:287",children:[p.jsx(et,{"data-loc":"client/src/pages/MaterialsPage.tsx:287",className:"text-xs",children:B.l}),p.jsx(qt,{"data-loc":"client/src/pages/MaterialsPage.tsx:287",type:"number",value:B.v,onChange:j=>B.s(j.target.value),className:"ltr-input mt-1"})]},B.l))}),p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:290",className:"grid grid-cols-2 gap-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:291",children:[p.jsx(et,{"data-loc":"client/src/pages/MaterialsPage.tsx:291",className:"text-xs",children:"قطر الحديد (مم)"}),p.jsxs(Hn,{"data-loc":"client/src/pages/MaterialsPage.tsx:292",value:l,onValueChange:u,children:[p.jsx(qn,{"data-loc":"client/src/pages/MaterialsPage.tsx:293",className:"mt-1",children:p.jsx(Un,{"data-loc":"client/src/pages/MaterialsPage.tsx:293"})}),p.jsx($n,{"data-loc":"client/src/pages/MaterialsPage.tsx:294",children:["8","10","12","14","16","20","25"].map(B=>p.jsxs(Rt,{"data-loc":"client/src/pages/MaterialsPage.tsx:294",value:B,children:["Ø",B," مم"]},B))})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:297",children:[p.jsx(et,{"data-loc":"client/src/pages/MaterialsPage.tsx:297",className:"text-xs",children:"المسافة بين القضبان (سم)"}),p.jsxs(Hn,{"data-loc":"client/src/pages/MaterialsPage.tsx:298",value:a,onValueChange:i,children:[p.jsx(qn,{"data-loc":"client/src/pages/MaterialsPage.tsx:299",className:"mt-1",children:p.jsx(Un,{"data-loc":"client/src/pages/MaterialsPage.tsx:299"})}),p.jsx($n,{"data-loc":"client/src/pages/MaterialsPage.tsx:300",children:["10","15","20","25","30"].map(B=>p.jsxs(Rt,{"data-loc":"client/src/pages/MaterialsPage.tsx:300",value:
412B,children:[B," سم"]},B))})]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:304",children:[p.jsx(et,{"data-loc":"client/src/pages/MaterialsPage.tsx:304",className:"text-xs",children:"سعر الطن (دينار)"}),p.jsx(qt,{"data-loc":"client/src/pages/MaterialsPage.tsx:304",type:"number",value:c,onChange:B=>f(B.target.value),className:"ltr-input mt-1"})]})]})]}),p.jsxs(Ot,{"data-loc":"client/src/pages/MaterialsPage.tsx:307",className:g>0&&h>0?"border-primary/30":"",children:[p.jsx(Pn,{"data-loc":"client/src/pages/MaterialsPage.tsx:308",children:p.jsx(Rn,{"data-loc":"client/src/pages/MaterialsPage.tsx:308",className:"text-base",children:"النتائج"})}),p.jsx(Mt,{"data-loc":"client/src/pages/MaterialsPage.tsx:309",children:g>0&&h>0?p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:311",className:"space-y-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:312",className:"bg-primary/5 rounded-xl p-4 text-center",children:[p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:313",className:"text-3xl font-black text-primary",children:[N.toFixed(0)," كغ"]}),p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:314",className:"text-sm text-muted-foreground mt-1",children:"وزن الحديد الكلي"})]}),[{l:"الطول الكلي",v:`${C.toFixed(0)} م`},{l:"عدد القضبان (X)",v:`${E}`},{l:"عدد القضبان (Y)",v:`${_}`},{l:"الوزن بالطن",v:`${R.toFixed(3)} طن`}].map(B=>p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:317",className:"flex justify-between items-center py-2 border-b border-border last:border-0",children:[p.jsx("span",{"data-loc":"client/src/pages/MaterialsPage.tsx:318",className:"text-sm text-muted-foreground",children:B.l}),p.jsx(Sn,{"data-loc":"client/src/pages/MaterialsPage.tsx:319",variant:"secondary",className:"font-bold",children:B.v})]},B.l)),p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:322",className:"bg-green-500/10 rounded-xl p-4 text-center mt-2",children:[p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:323",className:"text-2xl font-black text-green-600",children:id(Math.round(z))}),p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:324",className:"text-sm text-muted-foreground mt-1",children:"التكلفة التقديرية"})]})]}):p.jsx("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:327",className:"text-center py-8 text-muted-foreground text-sm",children:"أدخل الأبعاد لحساب الكميات"})})]})]})}function Nq(){return p.jsx(mr,{"data-loc":"client/src/pages/MaterialsPage.tsx:336",children:p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:337",className:"p-6",children:[p.jsxs("div",{"data-loc":"client/src/pages/MaterialsPage.tsx:338",className:"flex items-center gap-2 mb-6",children:[p.jsx(Lp,{"data-loc":"client/src/pages/MaterialsPage.tsx:339",size:20,className:"text-primary"}),p.jsx("h1",{"data-loc":"client/src/pages/MaterialsPage.tsx:340",className:"text-2xl font-black",children:"حساب كميات المواد"})]}),p.jsxs(yy,{"data-loc":"client/src/pages/MaterialsPage.tsx:342",defaultValue:"concrete",children:[p.jsxs(vy,{"data-loc":"client/src/pages/MaterialsPage.tsx:343",className:"mb-6 flex-wrap h-auto gap-1",children:[p.jsx(bs,{"data-loc":"client/src/pages/MaterialsPage.tsx:344",value:"concrete",children:"الخرسانة"}),p.jsx(bs,{"data-loc":"client/src/pages/MaterialsPage.tsx:345",value:"bricks",children:"البلوك والطابوق"}),p.jsx(bs,{"data-loc":"client/src/pages/MaterialsPage.tsx:346",value:"rebar",children:"حديد التسليح"}),p.jsx(bs,{"data-loc":"client/src/pages/MaterialsPage.tsx:347",value:"tiles",children:"البلاط"}),p.jsx(bs,{"data-loc":"client/src/pages/MaterialsPage.tsx:348",value:"paint",children:"الدهان"})]}),p.jsx(ys,{"data-loc":"client/src/pages/MaterialsPage.tsx:350",value:"concrete",children:p.jsx(Tq,{"data-loc":"client/src/pages/MaterialsPage.tsx:350"})}),p.jsx(ys,{"data-loc":"client/src/pages/MaterialsPage.tsx:351",value:"bricks",children:p.jsx(wq,{"data-loc":"client/src/pages/MaterialsPage.tsx:351"})}),p.jsx(ys,{"data-loc":"client/src/pages/MaterialsPage.tsx:352",value:"rebar",children:p.jsx(kq,{"data-loc":"client/src/pages/MaterialsPage.tsx:352"})}),p.jsx(ys,{"data-loc":"client/src/pages/MaterialsPage.tsx:353",value:"tiles",children:p.jsx(Aq,{"data-loc":"client/src/pages/MaterialsPage.tsx:353"})}),p.jsx(ys,{"data-loc":"client/src/pages/MaterialsPage.tsx:354",value:"paint",children:p.jsx(Cq,{"data-loc":"client/src/pages/MaterialsPage.tsx:354"})})]})]})})}function Y9({className:e,onKeyDown:t,onCompositionStart:n,onCompositionEnd:r,...a}){const i=dy(),{onCompositionStart:l,onCompositionEnd:u,onKeyDown:c}=n9({onKeyDown:f=>{const g=f.nativeEvent.isComposing||i.justEndedComposing();f.key==="Enter"&&!f.shiftKey&&g||t?.(f)},onCompositionStart:f=>{i.setComposing(!0),n?.(f)},onCompositionEnd:f=>{i.markCompositionEnd(),setTimeout(()=>{i.setComposing(!1)},100),r?.(f)}});return p.jsx("textarea",{"data-loc":"client/src/components/ui/textarea.tsx:53","data-slot":"textarea",className:kt("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),onCompositionStart:l,onCompositionEnd:u,onKeyDown:c,...a})}function iE({onCreated:e}){const[t,n]=A.useState(!1),[r,a]=A.useState(""),[i,l]=A.useState(""),[u,c]=A.useState(""),[f,g]=A.useState(""),[h,x]=A.useState(""),[b,E]=A.useState("IQD"),[_,C]=A.useState("0"),[w,N]=A.useState("0"),R=Dt.projects.create.useMutation({onSuccess:()=>{Ct.success("تم إنشاء المشروع"),n(!1),e(),a("")},onError:()=>Ct.error("فشل إنشاء المشروع")});return p.jsxs(fy,{"data-loc":"client/src/pages/ProjectsPage.tsx:31",open:t,onOpenChange:n,children:[p.jsx(e9,{"data-loc":"client/src/pages/ProjectsPage.tsx:32",asChild:!0,children:p.jsxs(tt,{"data-loc":"client/src/pages/ProjectsPage.tsx:33",className:"gap-2",children:[p.jsx(z0,{"data-loc":"client/src/pages/ProjectsPage.tsx:33",size:16}),"مشروع جديد"]})}),p.jsxs(hy,{"data-loc":"client/src/pages/ProjectsPage.tsx:35",className:"max-w-lg",dir:"rtl",children:[p.jsx(py,{"data-loc":"client/src/pages/ProjectsPage.tsx:36",children:p.jsx(my,{"data-loc":"client/src/pages/ProjectsPage.tsx:37",children:"إنشاء مشروع جديد"})}),p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:39",className:"space-y-4 mt
412-2",children:[p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:40",children:[p.jsx(et,{"data-loc":"client/src/pages/ProjectsPage.tsx:40",children:"اسم المشروع *"}),p.jsx(qt,{"data-loc":"client/src/pages/ProjectsPage.tsx:40",value:r,onChange:z=>a(z.target.value),placeholder:"مثال: بناء فيلا الكرادة",className:"mt-1"})]}),p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:41",className:"grid grid-cols-2 gap-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:42",children:[p.jsx(et,{"data-loc":"client/src/pages/ProjectsPage.tsx:42",className:"text-xs",children:"الموقع"}),p.jsx(qt,{"data-loc":"client/src/pages/ProjectsPage.tsx:42",value:i,onChange:z=>l(z.target.value),placeholder:"بغداد - الكرادة",className:"mt-1"})]}),p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:43",children:[p.jsx(et,{"data-loc":"client/src/pages/ProjectsPage.tsx:43",className:"text-xs",children:"العملة"}),p.jsxs(Hn,{"data-loc":"client/src/pages/ProjectsPage.tsx:44",value:b,onValueChange:E,children:[p.jsx(qn,{"data-loc":"client/src/pages/ProjectsPage.tsx:45",className:"mt-1",children:p.jsx(Un,{"data-loc":"client/src/pages/ProjectsPage.tsx:45"})}),p.jsx($n,{"data-loc":"client/src/pages/ProjectsPage.tsx:46",children:["IQD","USD","SAR","AED","KWD","QAR","EGP","JOD"].map(z=>p.jsx(Rt,{"data-loc":"client/src/pages/ProjectsPage.tsx:47",value:z,children:z},z))})]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:52",className:"grid grid-cols-2 gap-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:53",children:[p.jsx(et,{"data-loc":"client/src/pages/ProjectsPage.tsx:53",className:"text-xs",children:"اسم صاحب المشروع"}),p.jsx(qt,{"data-loc":"client/src/pages/ProjectsPage.tsx:53",value:u,onChange:z=>c(z.target.value),className:"mt-1"})]}),p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:54",children:[p.jsx(et,{"data-loc":"client/src/pages/ProjectsPage.tsx:54",className:"text-xs",children:"اسم المقاول"}),p.jsx(qt,{"data-loc":"client/src/pages/ProjectsPage.tsx:54",value:f,onChange:z=>g(z.target.value),className:"mt-1"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:56",className:"grid grid-cols-2 gap-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:57",children:[p.jsx(et,{"data-loc":"client/src/pages/ProjectsPage.tsx:57",className:"text-xs",children:"نسبة الضريبة %"}),p.jsx(qt,{"data-loc":"client/src/pages/ProjectsPage.tsx:57",type:"number",value:_,onChange:z=>C(z.target.value),className:"ltr-input mt-1"})]}),p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:58",children:[p.jsx(et,{"data-loc":"client/src/pages/ProjectsPage.tsx:58",className:"text-xs",children:"هامش الربح %"}),p.jsx(qt,{"data-loc":"client/src/pages/ProjectsPage.tsx:58",type:"number",value:w,onChange:z=>N(z.target.value),className:"ltr-input mt-1"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:60",children:[p.jsx(et,{"data-loc":"client/src/pages/ProjectsPage.tsx:60",className:"text-xs",children:"الوصف"}),p.jsx(Y9,{"data-loc":"client/src/pages/ProjectsPage.tsx:60",value:h,onChange:z=>x(z.target.value),className:"mt-1",rows:2})]}),p.jsx(tt,{"data-loc":"client/src/pages/ProjectsPage.tsx:61",className:"w-full",onClick:()=>R.mutate({name:r,location:i,ownerName:u,contractorName:f,description:h,currency:b,taxRate:parseFloat(_)||0,marginRate:parseFloat(w)||0}),disabled:!r.trim()||R.isPending,children:R.isPending?"جاري الإنشاء...":"إنشاء المشروع"})]})]})]})}function Pq(){const{isAuthenticated:e}=Za(),t=Dt.useUtils(),{data:n,isLoading:r}=Dt.projects.list.useQuery(void 0,{enabled:e}),a=Dt.projects.delete.useMutation({onSuccess:()=>{Ct.success("تم حذف المشروع"),t.projects.list.invalidate()},onError:()=>Ct.error("فشل الحذف")});if(!e)return p.jsx("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:81",className:"min-h-screen flex items-center justify-center p-4",children:p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:82",className:"text-center",children:[p.jsx("p",{"data-loc":"client/src/pages/ProjectsPage.tsx:83",className:"text-muted-foreground mb-4",children:"يجب تسجيل الدخول للوصول إلى المشاريع"}),p.jsx(tt,{"data-loc":"client/src/pages/ProjectsPage.tsx:84",onClick:()=>window.location.href=Zr(),children:"تسجيل الدخول"})]})});const i={active:"bg-green-500/10 text-green-600 border-green-500/20",completed:"bg-blue-500/10 text-blue-600 border-blue-500/20",archived:"bg-gray-500/10 text-gray-600 border-gray-500/20"},l={active:"نشط",completed:"مكتمل",archived:"مؤرشف"};return p.jsx(mr,{"data-loc":"client/src/pages/ProjectsPage.tsx:98",children:p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:99",className:"p-6",children:[p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:100",className:"flex items-center justify-between mb-6",children:[p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:101",className:"flex items-center gap-2",children:[p.jsx(to,{"data-loc":"client/src/pages/ProjectsPage.tsx:102",size:20,className:"text-primary"}),p.jsx("h1",{"data-loc":"client/src/pages/ProjectsPage.tsx:103",className:"text-2xl font-black",children:"المشاريع والمناقصات"})]}),p.jsx(iE,{"data-loc":"client/src/pages/ProjectsPage.tsx:105",onCreated:()=>
412t.projects.list.invalidate()})]}),r?p.jsx("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:109",className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[1,2,3].map(u=>p.jsx("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:110",className:"h-40 bg-muted animate-pulse rounded-2xl"},u))}):!n||n.length===0?p.jsx(Ot,{"data-loc":"client/src/pages/ProjectsPage.tsx:113",className:"border-dashed border-2",children:p.jsxs(Mt,{"data-loc":"client/src/pages/ProjectsPage.tsx:114",className:"p-16 text-center",children:[p.jsx(to,{"data-loc":"client/src/pages/ProjectsPage.tsx:115",size:48,className:"text-muted-foreground/30 mx-auto mb-4"}),p.jsx("h3",{"data-loc":"client/src/pages/ProjectsPage.tsx:116",className:"text-lg font-bold mb-2",children:"لا توجد مشاريع"}),p.jsx("p",{"data-loc":"client/src/pages/ProjectsPage.tsx:117",className:"text-muted-foreground mb-6",children:"أنشئ مشروعك الأول لبدء إدارة المناقصات وجداول الكميات"}),p.jsx(iE,{"data-loc":"client/src/pages/ProjectsPage.tsx:118",onCreated:()=>t.projects.list.invalidate()})]})}):p.jsx("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:122",className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:n.map(u=>p.jsx(Ot,{"data-loc":"client/src/pages/ProjectsPage.tsx:124",className:"border-border card-hover group",children:p.jsxs(Mt,{"data-loc":"client/src/pages/ProjectsPage.tsx:125",className:"p-5",children:[p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:126",className:"flex items-start justify-between mb-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:127",className:"flex-1 min-w-0",children:[p.jsx("h3",{"data-loc":"client/src/pages/ProjectsPage.tsx:128",className:"font-bold truncate",children:u.name}),u.location&&p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:130",className:"flex items-center gap-1 text-muted-foreground text-xs mt-1",children:[p.jsx(wu,{"data-loc":"client/src/pages/ProjectsPage.tsx:131",size:11}),u.location]})]}),p.jsx(Sn,{"data-loc":"client/src/pages/ProjectsPage.tsx:135",className:`text-xs shrink-0 mr-2 ${i[u.status]}`,children:l[u.status]})]}),(u.ownerName||u.contractorName)&&p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:141",className:"text-xs text-muted-foreground space-y-0.5 mb-3",children:[u.ownerName&&p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:142",children:["صاحب: ",u.ownerName]}),u.contractorName&&p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:143",children:["مقاول: ",u.contractorName]})]}),p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:147",className:"flex items-center justify-between text-xs text-muted-foreground mb-4",children:[p.jsxs("span",{"data-loc":"client/src/pages/ProjectsPage.tsx:148",className:"flex items-center gap-1",children:[p.jsx(yw,{"data-loc":"client/src/pages/ProjectsPage.tsx:148",size:11}),u.currency]}),p.jsxs("span",{"data-loc":"client/src/pages/ProjectsPage.tsx:149",className:"flex items-center gap-1",children:[p.jsx(ty,{"data-loc":"client/src/pages/ProjectsPage.tsx:149",size:11}),new Date(u.createdAt).toLocaleDateString("ar-IQ")]})]}),p.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:152",className:"flex gap-2",children:[p.jsx(Sr,{"data-loc":"client/src/pages/ProjectsPage.tsx:153",href:`/projects/${u.id}`,className:"flex-1",children:p.jsxs(tt,{"data-loc":"client/src/pages/ProjectsPage.tsx:154",size:"sm",className:"w-full gap-1.5 h-8 text-xs",children:["فتح المشروع ",p.jsx(jh,{"data-loc":"client/src/pages/ProjectsPage.tsx:155",size:12})]})}),p.jsx(tt,{"data-loc":"client/src/pages/ProjectsPage.tsx:158",size:"sm",variant:"ghost",className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive opacity-0 group-hover:opacity-100 transition-opacity",onClick:()=>{confirm("حذف المشروع؟")&&a.mutate({id:u.id})},children:p.jsx(ad,{"data-loc":"client/src/pages/ProjectsPage.tsx:163",size:14})})]})]})},u.id))})]})})}const du=e=>e.toLocaleString("ar-IQ"),Rq=["أعمال الحفر والردم","الأساسات","الهيكل الإنشائي","الجدران والبناء","التشطيبات","الكهرباء","السباكة","التكييف","الأعمال الخارجية","أخرى"];function lE({projectId:e,onAdded:t}){const[n,r]=A.useState(!1),[a,i]=A.useState(""),[l,u]=A.useState("م²"),[c,f]=A.useState(""),[g,h]=A.useState(""),[x,b]=A.useState("أخرى"),[E,_]=A.useState(""),C=Dt.boq.create.useMutation({onSuccess:()=>{Ct.success("تم إضافة البند"),r(!1),t(),i(""),f(""),h("")},onError:()=>Ct.error("فشل الإضافة")});return p.jsxs(fy,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:29",open:n,onOpenChange:r,children:[p.jsx(e9,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:30",asChild:!0,children:p.jsxs(tt,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:31",size:"sm",className:"gap-2 h-8",children:[p.jsx(z0,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:31",size:14}),"إضافة بند"]})}),p.jsxs(hy,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:33",className:"max-w-md",dir:"rtl",children:[p.jsx(py,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:34",children:p.jsx(my,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:34",children:"إضافة بند جديد"})}),p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:35",className:"space-y-3 mt-2",children:[p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:36",children:[p.jsx(et,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:36",className:"text-xs",children:"اسم البند *"}),p.jsx(qt,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:36",value:a,onChange:w=>i(w.target.value),placeholder:"مثال: صب خرسانة الأساسات",className:"mt-1"})]}),p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:37",children:[p.jsx(et,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:37",className:"text-xs",children:"التصنيف"}),p.jsxs(Hn,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:38",value:x,onValueChange:b,children:[p.jsx(qn,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:39",className:"mt-1",children:p.jsx(Un,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:39"})}),p.jsx($n,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:40",children:Rq.map(w=>p.jsx(Rt,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:40",value:w,children:w}
412,w))})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:43",className:"grid grid-cols-3 gap-2",children:[p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:44",children:[p.jsx(et,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:44",className:"text-xs",children:"الوحدة"}),p.jsxs(Hn,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:45",value:l,onValueChange:u,children:[p.jsx(qn,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:46",className:"mt-1",children:p.jsx(Un,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:46"})}),p.jsx($n,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:47",children:["م²","م³","م.ط","طن","كغ","كيس","وحدة","يوم","ساعة"].map(w=>p.jsx(Rt,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:47",value:w,children:w},w))})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:50",children:[p.jsx(et,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:50",className:"text-xs",children:"الكمية"}),p.jsx(qt,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:50",type:"number",value:c,onChange:w=>f(w.target.value),className:"ltr-input mt-1"})]}),p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:51",children:[p.jsx(et,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:51",className:"text-xs",children:"سعر الوحدة"}),p.jsx(qt,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:51",type:"number",value:g,onChange:w=>h(w.target.value),className:"ltr-input mt-1"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:53",children:[p.jsx(et,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:53",className:"text-xs",children:"الوصف"}),p.jsx(qt,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:53",value:E,onChange:w=>_(w.target.value),className:"mt-1"})]}),p.jsx(tt,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:54",className:"w-full",onClick:()=>C.mutate({projectId:e,name:a,unit:l,quantity:parseFloat(c)||0,unitPrice:parseFloat(g)||0,category:x,description:E}),disabled:!a||!c||!g||C.isPending,children:C.isPending?"جاري الإضافة...":"إضافة البند"})]})]})]})}function Oq(){const{id:e}=ey(),t=parseInt(e??"0"),n=Dt.useUtils(),{data:r,isLoading:a}=Dt.projects.get.useQuery({id:t}),{data:i,isLoading:l}=Dt.boq.list.useQuery({projectId:t}),u=Dt.boq.delete.useMutation({onSuccess:()=>{Ct.success("تم حذف البند"),n.boq.list.invalidate({projectId:t})},onError:()=>Ct.error("فشل الحذف")}),c=Dt.reports.create.useMutation({onSuccess:C=>{Ct.success("تم إنشاء التقرير");const w=`${window.location.origin}/report/${C.shareToken}`;navigator.clipboard.writeText(w).then(()=>Ct.info("تم نسخ رابط التقرير"))},onError:()=>Ct.error("فشل إنشاء التقرير")});if(a)return p.jsx(mr,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:85",children:p.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:85",className:"p-6",children:p.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:85",className:"h-8 w-48 bg-muted animate-pulse rounded"})})});if(!r)return p.jsx(mr,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:86",children:p.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:86",className:"p-6 text-center text-muted-foreground",children:"المشروع غير موجود"})});const f=(i??[]).reduce((C,w)=>C+parseFloat(w.quantity)*parseFloat(w.unitPrice),0),g=parseFloat(r.taxRate??"0")/100,h=parseFloat(r.marginRate??"0")/100,x=f*g,b=f*h,E=f+x+b,_=(i??[]).reduce((C,w)=>{const N=w.category??"أخرى";return C[N]||(C[N]=[]),C[N].push(w),C},{});return p.jsx(mr,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:103",children:p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:104",className:"p-6 max-w-5xl mx-auto",children:[p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:106",className:"flex items-center gap-3 mb-6",children:[p.jsx(Sr,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:107",href:"/projects",children:p.jsxs(tt,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:108",variant:"ghost",size:"sm",className:"gap-1.5 text-muted-foreground",children:[p.jsx(sF,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:109",size:15}),"المشاريع"]})}),p.jsx("span",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:112",className:"text-muted-foreground",children:"/"}),p.jsx("h1",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:113",className:"text-xl font-black",children:r.name}),p.jsx(Sn,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:114",variant:"outline",className:"text-xs",children:r.currency})]}),p.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:118",className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-6",children:[{label:"الموقع",value:r.location||"—"},{label:"صاحب المشروع",value:r.ownerName||"—"},{label:"المقاول",value:r.contractorName||"—"},{label:"الحالة",value:r.status==="active"?"نشط":r.status==="completed"?"مكتمل":"مؤرشف"}].map(C=>p.jsx(Ot,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:125",children:p.jsxs(Mt,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:126",className:"p-3",children:[p.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:127",className:"text-xs text-muted-foreground",children:C.label}),p.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:128",className:"font-semibold text-sm mt-0.5 truncate",children:C.value})]})},C.label))}),p.jsxs(Ot,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:135",children:[p.jsx(Pn,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:136",className:"pb-3",children:p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:137",className:"flex items-center justify-between",children:[p.jsx(Rn,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:138",className:"text-base",children:"جدول الكميات والأسعار (BOQ)"}),p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:139",className:"flex gap-2",children:[p.jsxs(tt,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:140",variant:"outline",size:"sm",className:"gap-1.5 h-8 text-xs",onClick:()=>c.mutate({projectId:t,title:`تقرير ${r.name}`,isPublic:!0}),disabled:c.isPending||!i?.length,children:[p.jsx(ai,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:145",size:13}),c.isPending?"جاري...":"إنشاء تقرير"]}),p.jsx(lE,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:148",projectId:t,onAdded:()=>
412n.boq.list.invalidate({projectId:t})})]})]})}),p.jsx(Mt,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:152",children:l?p.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:154",className:"space-y-2",children:[1,2,3].map(C=>p.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:154",className:"h-10 bg-muted animate-pulse rounded"},C))}):i?.length?p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:161",className:"space-y-4",children:[Object.entries(_).map(([C,w])=>p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:163",children:[p.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:164",className:"text-xs font-bold text-muted-foreground uppercase tracking-wide mb-2 px-1",children:C}),p.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:165",className:"rounded-xl border border-border overflow-hidden",children:p.jsxs("table",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:166",className:"w-full text-sm",children:[p.jsx("thead",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:167",children:p.jsxs("tr",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:168",className:"bg-muted/50 text-muted-foreground text-xs",children:[p.jsx("th",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:169",className:"text-right px-3 py-2 font-medium",children:"البند"}),p.jsx("th",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:170",className:"text-center px-3 py-2 font-medium w-16",children:"الوحدة"}),p.jsx("th",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:171",className:"text-center px-3 py-2 font-medium w-20",children:"الكمية"}),p.jsx("th",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:172",className:"text-center px-3 py-2 font-medium w-28",children:"سعر الوحدة"}),p.jsx("th",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:173",className:"text-center px-3 py-2 font-medium w-28",children:"الإجمالي"}),p.jsx("th",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:174",className:"w-10"})]})}),p.jsx("tbody",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:177",children:w?.map(N=>{const R=parseFloat(N.quantity)*parseFloat(N.unitPrice);return p.jsxs("tr",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:181",className:"border-t border-border hover:bg-muted/30 transition-colors group",children:[p.jsxs("td",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:182",className:"px-3 py-2.5",children:[p.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:183",className:"font-medium",children:N.name}),N.description&&p.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:184",className:"text-xs text-muted-foreground",children:N.description})]}),p.jsx("td",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:186",className:"px-3 py-2.5 text-center text-muted-foreground",children:N.unit}),p.jsx("td",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:187",className:"px-3 py-2.5 text-center ltr-only",children:parseFloat(N.quantity).toLocaleString("ar-IQ")}),p.jsx("td",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:188",className:"px-3 py-2.5 text-center ltr-only",children:du(parseFloat(N.unitPrice))}),p.jsx("td",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:189",className:"px-3 py-2.5 text-center font-semibold text-primary",children:du(R)}),p.jsx("td",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:190",className:"px-2",children:p.jsx("button",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:191",className:"opacity-0 group-hover:opacity-100 transition-opacity p-1 text-muted-foreground hover:text-destructive",onClick:()=>u.mutate({id:N.id}),children:p.jsx(ad,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:195",size:13})})})]},N.id)})})]})})]},C)),p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:208",className:"bg-muted/30 rounded-xl p-4 space-y-2 mt-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:209",className:"flex justify-between text-sm",children:[p.jsx("span",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:210",className:"text-muted-foreground",children:"المجموع الفرعي"}),p.jsxs("span",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:211",className:"font-semibold",children:[du(f)," ",r.currency]})]}),g>0&&p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:214",className:"flex justify-between text-sm",children:[p.jsxs("span",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:215",className:"text-muted-foreground",children:["الضريبة (",r.taxRate,"%)"]}),p.jsxs("span",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:216",children:[du(x)," ",r.currency]})]}),h>0&&p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:220",className:"flex justify-between text-sm",children:[p.jsxs("span",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:221",className:"text-muted-foreground",children:["هامش الربح (",r.marginRate,"%)"]}),p.jsxs("span",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:222",children:[du(b)," ",r.currency]})]}),p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:225",className:"flex justify-between text-base font-black pt-2 border-t border-border",children:[p.jsx("span",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:226",children:"الإجمالي الكلي"}),p.jsxs("span",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:227",className:"text-primary",children:[du(E)," ",r.currency]})]})]})]}):p.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:156",className:"text-center py-10 text-muted-foreground",children:[p.jsx("p",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:157",className:"mb-3",children:"لا توجد بنود بعد"}),p.jsx(lE,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:158",projectId:t,onAdded:()=>
vendor: 4,435 bytes, line 412
412n.boq.list.invalidate({projectId:t})})]})})]})]})})}const Mq="modulepreload",Dq=function(e){return"/"+e},oE={},U=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let c=function(f){return Promise.all(f.map(g=>Promise.resolve(g).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),u=l?.nonce||l?.getAttribute("nonce");a=c(n.map(f=>{if(f=Dq(f),f in oE)return;oE[f]=!0;const g=f.endsWith(".css"),h=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${h}`))return;const x=document.createElement("link");if(x.rel=g?"stylesheet":Mq,g||(x.as="script"),x.crossOrigin="",x.href=f,u&&x.setAttribute("nonce",u),document.head.appendChild(x),g)return new Promise((b,E)=>{x.addEventListener("load",b),x.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${f}`)))})}))}function i(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return a.then(l=>{for(const u of l||[])u.status==="rejected"&&i(u.reason);return t().catch(i)})};function uE(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const l=n.slice(a,r).trim();(l||!i)&&t.push(l),a=r+1,r=n.indexOf(",",a)}return t}function Ey(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Iq=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Lq=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jq={};function cE(e,t){return(jq.jsx?Lq:Iq).test(e)}const Bq=/[ \t\n\f\r]/g;function $p(e){return typeof e=="object"?e.type==="text"?dE(e.value):!1:dE(e)}function dE(e){return e.replace(Bq,"")===""}let ld=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};ld.prototype.normal={};ld.prototype.property={};ld.prototype.space=void 0;function Q9(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new ld(n,r,t)}function F0(e){return e.toLowerCase()}let Jr=class{constructor(t,n){this.attribute=n,this.property=t}};Jr.prototype.attribute="";Jr.prototype.booleanish=!1;Jr.prototype.boolean=!1;Jr.prototype.commaOrSpaceSeparated=!1;Jr.prototype.commaSeparated=!1;Jr.prototype.defined=!1;Jr.prototype.mustUseProperty=!1;Jr.prototype.number=!1;Jr.prototype.overloadedBoolean=!1;Jr.prototype.property="";Jr.prototype.spaceSeparated=!1;Jr.prototype.space=void 0;let zq=0;const mt=ho(),Bn=ho(),Lx=ho(),Oe=ho(),rn=ho(),Cu=ho(),oa=ho();function ho(){return 2**++zq}const jx=Object.freeze(Object.defineProperty({__proto__:null,boolean:mt,booleanish:Bn,commaOrSpaceSeparated:oa,commaSeparated:Cu,number:Oe,overloadedBoolean:Lx,spaceSeparated:rn},Symbol.toStringTag,{value:"Module"})),t2=Object.keys(jx);let Sy=class extends Jr{constructor(t,n,r,a){let i=-1;if(super(t,n),fE(this,"space",a),typeof r=="number")for(;++i<t2.length;){const l=t2[i];fE(this,t2[i],(r&jx[l])===jx[l])}}};Sy.prototype.defined=!0;function fE(e,t,n){n&&(e[t]=n)}function Qu(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new Sy(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[F0(r)]=r,n[F0(i.attribute)]=r}return new ld(t,n,e.space)}const X9=Qu({properties:{ariaActiveDescendant:null,ariaAtomic:Bn,ariaAutoComplete:null,ariaBusy:Bn,ariaChecked:Bn,ariaColCount:Oe,ariaColIndex:Oe,ariaColSpan:Oe,ariaControls:rn,ariaCurrent:null,ariaDescribedBy:rn,ariaDetails:null,ariaDisabled:Bn,ariaDropEffect:rn,ariaErrorMessage:null,ariaExpanded:Bn,ariaFlowTo:rn,ariaGrabbed:Bn,ariaHasPopup:null,ariaHidden:Bn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:rn,ariaLevel:Oe,ariaLive:null,ariaModal:Bn,ariaMultiLine:Bn,ariaMultiSelectable:Bn,ariaOrientation:null,ariaOwns:rn,ariaPlaceholder:null,ariaPosInSet:Oe,ariaPressed:Bn,ariaReadOnly:Bn,ariaRelevant:null,ariaRequired:Bn,ariaRoleDescription:rn,ariaRowCount:Oe,ariaRowIndex:Oe,ariaRowSpan:Oe,ariaSelected:Bn,ariaSetSize:Oe,ariaSort:null,ariaValueMax:Oe,ariaValueMin:Oe,ariaValueNow:Oe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function K9(e,t){return t in e?e[t]:t}function W9(e,t){return K9(e,t.toLowerCase())}const Fq=Qu({attributes:{acceptcharset:"accept-charset",classname:"
412class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Cu,acceptCharset:rn,accessKey:rn,action:null,allow:null,allowFullScreen:mt,allowPaymentRequest:mt,allowUserMedia:mt,alt:null,as:null,async:mt,autoCapitalize:null,autoComplete:rn,autoFocus:mt,autoPlay:mt,blocking:rn,capture:null,charSet:null,checked:mt,cite:null,className:rn,cols:Oe,colSpan:null,content:null,contentEditable:Bn,controls:mt,controlsList:rn,coords:Oe|Cu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:mt,defer:mt,dir:null,dirName:null,disabled:mt,download:Lx,draggable:Bn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:mt,formTarget:null,headers:rn,height:Oe,hidden:Lx,high:Oe,href:null,hrefLang:null,htmlFor:rn,httpEquiv:rn,id:null,imageSizes:null,imageSrcSet:null,inert:mt,inputMode:null,integrity:null,is:null,isMap:mt,itemId:null,itemProp:rn,itemRef:rn,itemScope:mt,itemType:rn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:mt,low:Oe,manifest:null,max:null,maxLength:Oe,media:null,method:null,min:null,minLength:Oe,multiple:mt,muted:mt,name:null,nonce:null,noModule:mt,noValidate:mt,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:mt,optimum:Oe,pattern:null,ping:rn,placeholder:null,playsInline:mt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:mt,referrerPolicy:null,rel:rn,required:mt,reversed:mt,rows:Oe,rowSpan:Oe,sandbox:rn,scope:null,scoped:mt,seamless:mt,selected:mt,shadowRootClonable:mt,shadowRootDelegatesFocus:mt,shadowRootMode:null,shape:null,size:Oe,sizes:null,slot:null,span:Oe,spellCheck:Bn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Oe,step:null,style:null,tabIndex:Oe,target:null,title:null,translate:null,type:null,typeMustMatch:mt,useMap:null,value:Bn,width:Oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:rn,axis:null,background:null,bgColor:null,border:Oe,borderColor:null,bottomMargin:Oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:mt,declare:mt,event:null,face:null,frame:null,frameBorder:null,hSpace:Oe,leftMargin:Oe,link:null,longDesc:null,lowSrc:null,marginHeight:Oe,marginWidth:Oe,noResize:mt,noHref:mt,noShade:mt,noWrap:mt,object:null,profile:null,prompt:null,rev:null,rightMargin:Oe,rules:null,scheme:null,scrolling:Bn,standby:null,summary:null,text:null,topMargin:Oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Oe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:mt,disableRemotePlayback:mt,prefix:null,property:null,results:Oe,security:null,unselectable:null},space:"html",transform:W9}),Hq=Qu({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
412dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:oa,accentHeight:Oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Oe,amplitude:Oe,arabicForm:null,ascent:Oe,attributeName:null,attributeType:null,azimuth:Oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Oe,by:null,calcMode:null,capHeight:Oe,className:rn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
412dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Oe,diffuseConstant:Oe,direction:null,display:null,dur:null,divisor:Oe,dominantBaseline:null,download:mt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Oe,enableBackground:null,end:null,event:null,exponent:Oe,externalResourcesRequired:null,fill:null,fillOpacity:Oe,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:Cu,g2:Cu,glyphName:Cu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Oe,horizOriginX:Oe,horizOriginY:Oe,id:null,ideographic:Oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Oe,k:Oe,k1:Oe,k2:Oe,k3:Oe,k4:Oe,kernelMatrix:oa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Oe,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:Oe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Oe,overlineThickness:Oe,paintOrder:null,panose1:null,path:null,pathLength:Oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:rn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Oe,pointsAtY:Oe,pointsAtZ:Oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:oa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:oa,rev:oa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:oa,requiredFeatures:oa,requiredFonts:oa,requiredFormats:oa,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:Oe,specularExponent:Oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Oe,strikethroughThickness:Oe,string:null,stroke:null,strokeDashArray:oa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Oe,strokeOpacity:Oe,strokeWidth:null,style:null,surfaceScale:Oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:oa,tabIndex:Oe,tableValues:null,target:null,targetX:Oe,targetY:Oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:oa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Oe,underlineThickness:Oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Oe,values:null,vAlphabetic:Oe,vMathematical:Oe,vectorEffect:null,vHanging:Oe,vIdeographic:Oe,version:null,vertAdvY:Oe,vertOriginX:Oe,vertOriginY:Oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:K9}),Z9=Qu({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 4,322 bytes, lines 412-413
412,space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),J9=Qu({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:W9}),eA=Qu({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Uq={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"},qq=/[A-Z]/g,hE=/-[a-z]/g,$q=/^data[-\w.:]+$/i;function Vp(e,t){const n=F0(t);let r=t,a=Jr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&$q.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(hE,Gq);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!hE.test(i)){let l=i.replace(qq,Vq);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=Sy}return new a(r,t)}function Vq(e){return"-"+e.toLowerCase()}function Gq(e){return e.charAt(1).toUpperCase()}const od=Q9([X9,Fq,Z9,J9,eA],"html"),gl=Q9([X9,Hq,Z9,J9,eA],"svg");function pE(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function _y(e){return e.join(" ").trim()}var fu={},n2,mE;function Yq(){if(mE)return n2;mE=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,c=`
413`,f="/",g="*",h="",x="comment",b="declaration";n2=function(_,C){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];C=C||{};var w=1,N=1;function R(he){var ie=he.match(t);ie&&(w+=ie.length);var ne=he.lastIndexOf(c);N=~ne?he.length-ne:N+he.length}function z(){var he={line:w,column:N};return function(ie){return ie.position=new B(he),Y(),ie}}function B(he){this.start=he,this.end={line:w,column:N},this.source=C.source}B.prototype.content=_;function j(he){var ie=new Error(C.source+":"+w+":"+N+": "+he);if(ie.reason=he,ie.filename=C.source,ie.line=w,ie.column=N,ie.source=_,!C.silent)throw ie}function L(he){var ie=he.exec(_);if(ie){var ne=ie[0];return R(ne),_=_.slice(ne.length),ie}}function Y(){L(n)}function Z(he){var ie;for(he=he||[];ie=$();)ie!==!1&&he.push(ie);return he}function $(){var he=z();if(!(f!=_.charAt(0)||g!=_.charAt(1))){for(var ie=2;h!=_.charAt(ie)&&(g!=_.charAt(ie)||f!=_.charAt(ie+1));)++ie;if(ie+=2,h===_.charAt(ie-1))return j("End of comment missing");var ne=_.slice(2,ie-2);return N+=2,R(ne),_=_.slice(ie),N+=2,he({type:x,comment:ne})}}function te(){var he=z(),ie=L(r);if(ie){if($(),!L(a))return j("property missing ':'");var ne=L(i),H=he({type:b,property:E(ie[0].replace(e,h)),value:ne?E(ne[0].replace(e,h)):h});return L(l),H}}function ee(){var he=[];Z(he);for(var ie;ie=te();)ie!==!1&&(he.push(ie),Z(he));return he}return Y(),ee()};function E(_){return _?_.replace(u,h):h}return n2}var gE;function Qq(){if(gE)return fu;gE=1;var e=fu&&fu.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(fu,"__esModule",{value:!0}),fu.default=n;const t=e(Yq());function n(r,a){let i=null;if(!r||typeof r!="string")return i;const l=(0,t.default)(r),u=typeof a=="function";return l.forEach(c=>{if(c.type!=="declaration")return;const{property:f,value:g}=c;u?a(f,g,c):g&&(i=i||{},i[f]=g)}),i}return fu}var Jc={},xE;function Xq(){if(xE)return Jc;xE=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(f){return!f||n.test(f)||e.test(f)},l=function(f,g){return g.toUpperCase()},u=function(f,g){return"".concat(g,"-")},c=function(f,g){return g===void 0&&(g={}),i(f)?f:(f=f.toLowerCase(),g.reactCompat?f=f.replace(a,u):f=f.replace(r,u),f.replace(t,l))};return Jc.camelCase=c,Jc}var e0,bE;function Kq(){if(bE)return e0;bE=1;var e=e0&&e0.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(Qq()),n=Xq();function r(a,i){var l={};return!a||typeof a!="string"||(0,t.default)(a,function(u,c){u&&c&&(l[(0,n.camel
vendor: 2,654 bytes, line 413
413Case)(u,i)]=c)}),l}return r.default=r,e0=r,e0}var Wq=Kq();const Zq=gp(Wq),Gp=tA("end"),ks=tA("start");function tA(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Jq(e){const t=ks(e),n=Gp(e);if(t&&n)return{start:t,end:n}}function b0(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?yE(e.position):"start"in e||"end"in e?yE(e):"line"in e||"column"in e?Bx(e):""}function Bx(e){return vE(e&&e.line)+":"+vE(e&&e.column)}function yE(e){return Bx(e&&e.start)+"-"+Bx(e&&e.end)}function vE(e){return e&&typeof e=="number"?e:1}class wr extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},l=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(l=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?i.ruleId=r:(i.source=r.slice(0,c),i.ruleId=r.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const u=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=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=u?u.line:void 0,this.name=b0(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=l&&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}}wr.prototype.file="";wr.prototype.name="";wr.prototype.reason="";wr.prototype.message="";wr.prototype.stack="";wr.prototype.column=void 0;wr.prototype.line=void 0;wr.prototype.ancestors=void 0;wr.prototype.cause=void 0;wr.prototype.fatal=void 0;wr.prototype.place=void 0;wr.prototype.ruleId=void 0;wr.prototype.source=void 0;const Ty={}.hasOwnProperty,e$=new Map,t$=/[A-Z]/g,n$=new Set(["table","tbody","thead","tfoot","tr"]),r$=new Set(["td","th"]),nA="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function a$(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=f$(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,302 bytes, line 413
413if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=d$(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?gl:od,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=rA(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function rA(e,t,n){if(t.type==="element")return s$(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return i$(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return o$(e,t,n);if(t.type==="mdxjsEsm")return l$(e,t);if(t.type==="root")return u$(e,t,n);if(t.type==="text")return c$(e,t)}function s$(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=gl,e.schema=a),e.ancestors.push(t);const i=sA(e,t.tagName,!1),l=h$(e,t);let u=Ay(e,t);return n$.has(t.tagName)&&(u=u.filter(function(c){return typeof c=="string"?!$p(c):!0})),aA(e,l,i,t),wy(l,u),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}function i$(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}H0(e,t.position)}function l$(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);H0(e,t.position)}function o$(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=gl,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:sA(e,t.name,!0),l=p$(e,t),u=Ay(e,t);return aA(e,l,i,t),wy(l,u),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}function u$(e,t,n){const r={};return wy(r,Ay(e,t)),e.create(t,e.Fragment,r,n)}function c$(e,t){return t.value}function aA(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function wy(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function d$(e,t,n){return r;function r(a,i,l,u){const f=Array.isArray(l.children)?n:t;return u?f(i,l,u):f(i,l)}}function f$(e,t){return n;function n(r,a,i,l){const u=Array.isArray(i.children),c=ks(r);return t(a,i,l,u,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function h$(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&Ty.call(t.properties,a)){const i=m$(e,a,t.properties[a]);if(i){const[l,u]=i;e.tableCellAlignToStyle&&l==="align"&&typeof u=="string"&&r$.has(t.tagName)?r=u:n[l]=u}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function p$(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const l=i.expression;l.type;const u=l.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else H0(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,i=e.evaluater.evaluateExpression(u.expression)}else H0(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function Ay(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:e$;for(;++r<t.children.length;){const i=t.children[r];let l;if(e.passKeys){const c=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(c){const f=a.get(c)||0;l=c+"-"+f,a.set(c,f+1)}}const u=rA(e,i,l);u!==void 0&&n.push(u)}return n}function m$(e,t,n){const r=Vp(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Ey(n):_y(n)),r.property==="style"){let a=typeof n=="object"?n:g$(e,String(n));return e.stylePropertyNameCase==="css"&&(a=x$(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Uq[r.property]||r.property:r.attribute,n]}}function g$(e,t){try{return Zq(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new wr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=nA+"#cannot-parse-style-attribute",a}}function sA(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,l;for(;++i<a.length;){const u=cE(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};l=l?{type:"MemberExpression",object:l,property:u,computed:!!(i&&u.type==="Literal"),optional:!1}:u}r=l}else r=cE(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return Ty.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);H0(e)}function H0(e,t){const n=new wr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=nA+"#cannot-handle-mdx-estrees-without-createevaluater",n}function x$(e){const t={};let n;for(n in e)Ty.call(e,n)&&(t[b$(n)]=e[n]);return t}function b$(e){let t=e.replace(t$,y$);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function y$(e){return"-"+e.toLowerCase()}const r2={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"]},v$={};function Cy(e,t){const n=v$,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return iA(e,r,a)}function iA(e,t,n){if(E$(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return EE(e.children,t,n)}return Array.isArray(e)?EE(e,t,n):""}function EE(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=iA(e[a],t,n);return r.join("")}function E$(e){return!!(e&&typeof e=="object")}const SE=document.createElement("i");function ky(e){const t="&"+e+";";SE.innerHTML=t;const n=SE.textContent;
vendor: 10,880 bytes, line 413
413return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function pa(e,t,n,r){const a=e.length;let i=0,l;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);i<r.length;)l=r.slice(i,i+1e4),l.unshift(t,0),e.splice(...l),i+=1e4,t+=1e4}function Pa(e,t){return e.length>0?(pa(e,e.length,0,t),e):t}const _E={}.hasOwnProperty;function lA(e){const t={};let n=-1;for(;++n<e.length;)S$(t,e[n]);return t}function S$(e,t){let n;for(n in t){const a=(_E.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let l;if(i)for(l in i){_E.call(a,l)||(a[l]=[]);const u=i[l];_$(a[l],Array.isArray(u)?u:u?[u]:[])}}}function _$(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);pa(e,0,0,r)}function oA(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Qa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Or=xl(/[A-Za-z]/),Tr=xl(/[\dA-Za-z]/),T$=xl(/[#-'*+\--9=?A-Z^-~]/);function Hh(e){return e!==null&&(e<32||e===127)}const zx=xl(/\d/),w$=xl(/[\dA-Fa-f]/),A$=xl(/[!-/:-@[-`{-~]/);function Ge(e){return e!==null&&e<-2}function tn(e){return e!==null&&(e<0||e===32)}function Tt(e){return e===-2||e===-1||e===32}const Yp=xl(new RegExp("\\p{P}|\\p{S}","u")),so=xl(/\s/);function xl(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Xu(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let l="";if(i===37&&Tr(e.charCodeAt(n+1))&&Tr(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(l=String.fromCharCode(i));else if(i>55295&&i<57344){const u=e.charCodeAt(n+1);i<56320&&u>56319&&u<57344?(l=String.fromCharCode(i,u),a=1):l="�"}else l=String.fromCharCode(i);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+a+1,l=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function vt(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(c){return Tt(c)?(e.enter(n),u(c)):t(c)}function u(c){return Tt(c)&&i++<a?(e.consume(c),u):(e.exit(n),t(c))}}const C$={tokenize:k$};function k$(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),vt(e,t,"linePrefix")}function a(u){return e.enter("paragraph"),i(u)}function i(u){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,l(u)}function l(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return Ge(u)?(e.consume(u),e.exit("chunkText"),i):(e.consume(u),l)}}const N$={tokenize:P$},TE={tokenize:R$};function P$(e){const t=this,n=[];let r=0,a,i,l;return u;function u(R){if(r<n.length){const z=n[r];return t.containerState=z[1],e.attempt(z[0].continuation,c,f)(R)}return f(R)}function c(R){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&N();const z=t.events.length;let B=z,j;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){j=t.events[B][1].end;break}w(r);let L=z;for(;L<t.events.length;)t.events[L][1].end={...j},L++;return pa(t.events,B+1,0,t.events.slice(z)),t.events.length=L,f(R)}return u(R)}function f(R){if(r===n.length){if(!a)return x(R);if(a.currentConstruct&&a.currentConstruct.concrete)return E(R);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(TE,g,h)(R)}function g(R){return a&&N(),w(r),x(R)}function h(R){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,E(R)}function x(R){return t.containerState={},e.attempt(TE,b,E)(R)}function b(R){return r++,n.push([t.currentConstruct,t.containerState]),x(R)}function E(R){if(R===null){a&&N(),w(0),e.consume(R);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),_(R)}function _(R){if(R===null){C(e.exit("chunkFlow"),!0),w(0),e.consume(R);return}return Ge(R)?(e.consume(R),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(R),_)}function C(R,z){const B=t.sliceStream(R);if(z&&B.push(null),R.previous=i,i&&(i.next=R),i=R,a.defineSkip(R.start),a.write(B),t.parser.lazy[R.start.line]){let j=a.events.length;for(;j--;)if(a.events[j][1].start.offset<l&&(!a.events[j][1].end||a.events[j][1].end.offset>l))return;const L=t.events.length;let Y=L,Z,$;for(;Y--;)if(t.events[Y][0]==="exit"&&t.events[Y][1].type==="chunkFlow"){if(Z){$=t.events[Y][1].end;break}Z=!0}for(w(r),j=L;j<t.events.length;)t.events[j][1].end={...$},j++;pa(t.events,Y+1,0,t.events.slice(L)),t.events.length=j}}function w(R){let z=n.length;for(;z-- >R;){const B=n[z];t.containerState=B[1],B[0].exit.call(t,e)}n.length=R}function N(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function R$(e,t,n){return vt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ju(e){if(e===null||tn(e)||so(e))return 1;if(Yp(e))return 2}function Qp(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Fx={name:"attention",resolveAll:O$,tokenize:M$};function O$(e,t){let n=-1,r,a,i,l,u,c,f,g;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},x={...e[n][1].start};wE(h,-c),wE(x,c),l={type:c>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},u={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:x},i={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:c>1?"strong":"emphasis",start:{...l.start},end:{...u.end}},e[r][1].end={...l.start},e[n][1].start={...u.end},f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=Pa(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=Pa(f,[["enter",a,t],["enter",l,t],["exit",l,t],["enter",i,t]]),f=Pa(f,Qp(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),f=Pa(f,[["exit",i,t],["enter",u,t],["exit",u,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(g=2,f=Pa(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):g=0,pa(e,r-1,n-r+3,f),n=r+f.length-g-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function M$(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=ju(r);let i;return l;function l(c){return i=c,e.enter("attentionSequence"),u(c)}function u(c){if(c===i)return e.consume(c),u;const f=e.exit("attentionSequence"),g=ju(c),h=!g||g===2&&a||n.includes(c),x=!a||a===2&&g||n.includes(r);return f._open=!!(i===42?h:h&&(a||!x)),f._close=!!(i===42?x:x&&(g||!h)),t(c)}}function wE(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const D$={name:"autolink",tokenize:I$};function I$(e,t,n){let r=0;return a;function a(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(b){return Or(b)?(e.consume(b),l):b===64?n(b):f(b)}function l(b){return b===43||b===45||b===46||Tr(b)?(r=1,u(b)):f(b)}function u(b){return b===58?(e.consume(b),r=0,c):(b===43||b===45||b===46||Tr(b))&&r++<32?(e.consume(b),u):(r=0,f(b))}function c(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||Hh(b)?n(b):(e.consume(b),c)}function f(b){return b===64?(e.consume(b),g):T$(b)?(e.consume(b),f):n(b)}function g(b){return Tr(b)?h(b):n(b)}function h(b){return b===46?(e.consume(b),r=0,g):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):x(b)}function x(b){if((b===45||Tr(b))&&r++<63){const E=b===45?x:h;return e.consume(b),E}return n(b)}}const ud={partial:!0,tokenize:L$};function L$(e,t,n){return r;function r(i){return Tt(i)?vt(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||Ge(i)?t(i):n(i)}}const uA={continuation:{tokenize:B$},exit:z$,name:"blockQuote",tokenize:j$};function j$(e,t,n){const r=this;return a;function a(l){if(l===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),i}return n(l)}function i(l){return Tt(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function B$(e,t,n){const r=this;return a;function a(l){return Tt(l)?vt(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return e.attempt(uA,t,n)(l)}}function z$(e){e.exit("blockQuote")}const cA={name:"characterEscape",tokenize:F$};function F$(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return A$(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const dA={name:"characterReference",tokenize:H$};function H$(e,t,n){const r=this;let a=0,i,l;return u;function u(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),c}function c(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),i=31,l=Tr,g(h))}function f(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,l=w$,g):(e.enter("characterReferenceValue"),i=7,l=zx,g(h))}function g(h){if(h===59&&a){const x=e.exit("characterReferenceValue");return l===Tr&&!ky(r.sliceSerialize(x))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(h)&&a++<i?(e.consume(h),g):n(h)}}const AE={partial:!0,tokenize:q$},CE={concrete:!0,name:"codeFenced",tokenize:U$};function U$(e,t,n){const r=this,a={partial:!0,tokenize:B};let i=0,l=0,u;return c;function c(j){return f(j)}function f(j){const L=r.events[r.events.length-1];return i=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,u=j,e.enter("co
413deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(j)}function g(j){return j===u?(l++,e.consume(j),g):l<3?n(j):(e.exit("codeFencedFenceSequence"),Tt(j)?vt(e,h,"whitespace")(j):h(j))}function h(j){return j===null||Ge(j)?(e.exit("codeFencedFence"),r.interrupt?t(j):e.check(AE,_,z)(j)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),x(j))}function x(j){return j===null||Ge(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(j)):Tt(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),vt(e,b,"whitespace")(j)):j===96&&j===u?n(j):(e.consume(j),x)}function b(j){return j===null||Ge(j)?h(j):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(j))}function E(j){return j===null||Ge(j)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(j)):j===96&&j===u?n(j):(e.consume(j),E)}function _(j){return e.attempt(a,z,C)(j)}function C(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),w}function w(j){return i>0&&Tt(j)?vt(e,N,"linePrefix",i+1)(j):N(j)}function N(j){return j===null||Ge(j)?e.check(AE,_,z)(j):(e.enter("codeFlowValue"),R(j))}function R(j){return j===null||Ge(j)?(e.exit("codeFlowValue"),N(j)):(e.consume(j),R)}function z(j){return e.exit("codeFenced"),t(j)}function B(j,L,Y){let Z=0;return $;function $(ne){return j.enter("lineEnding"),j.consume(ne),j.exit("lineEnding"),te}function te(ne){return j.enter("codeFencedFence"),Tt(ne)?vt(j,ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):ee(ne)}function ee(ne){return ne===u?(j.enter("codeFencedFenceSequence"),he(ne)):Y(ne)}function he(ne){return ne===u?(Z++,j.consume(ne),he):Z>=l?(j.exit("codeFencedFenceSequence"),Tt(ne)?vt(j,ie,"whitespace")(ne):ie(ne)):Y(ne)}function ie(ne){return ne===null||Ge(ne)?(j.exit("codeFencedFence"),L(ne)):Y(ne)}}}function q$(e,t,n){const r=this;return a;function a(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i)}function i(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const a2={name:"codeIndented",tokenize:V$},$$={partial:!0,tokenize:G$};function V$(e,t,n){const r=this;return a;function a(f){return e.enter("codeIndented"),vt(e,i,"linePrefix",5)(f)}function i(f){const g=r.events[r.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?l(f):n(f)}function l(f){return f===null?c(f):Ge(f)?e.attempt($$,l,c)(f):(e.enter("codeFlowValue"),u(f))}function u(f){return f===null||Ge(f)?(e.exit("codeFlowValue"),l(f)):(e.consume(f),u)}function c(f){return e.exit("codeIndented"),t(f)}}function G$(e,t,n){const r=this;return a;function a(l){return r.parser.lazy[r.now().line]?n(l):Ge(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):vt(e,i,"linePrefix",5)(l)}function i(l){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):Ge(l)?a(l):n(l)}}const Y$={name:"codeText",previous:X$,resolve:Q$,tokenize:K$};function Q$(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function X$(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function K$(e,t,n){let r=0,a,i;return l;function l(h){return e.enter("codeText"),e.enter("codeTextSequence"),u(h)}function u(h){return h===96?(e.consume(h),r++,u):(e.exit("codeTextSequence"),c(h))}function c(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),c):h===96?(i=e.enter("codeTextSequence"),a=0,g(h)):Ge(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("codeTextData"),f(h))}function f(h){return h===null||h===32||h===96||Ge(h)?(e.exit("codeTextData"),c(h)):(e.consume(h),f)}function g(h){return h===96?(e.consume(h),a++,g):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(i.type="codeTextData",f(h))}}class W${constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&t0(this.left,r),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),t0(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),t0(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);t0(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);t0(this.left,n.reverse())}}}function t0(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function fA(e){const t={};let n=-1,r,a,i,l,u,c,f;const g=new W$(e);for(;++n<g.length;){for(;n in t;)n=t[n];if(r=g.get(n),n&&r[1].type==="chunkFlow"&&g.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,i=0,i<c.length&&c[i][1].type==="lineEndingBlank"&&(i+=2),i<c.length&&c[i][1].type==="content"))for(;++i<c.length&&c[i][1].type!=="content";)c[i][1].type==="chunkText"&&(c[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Z$(g,n)),n=t[n],f=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(l=g.get(i),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(a&&(g.get(a)[1].type="lineEndingBlank"),l[1].type="lineEnding",a=i);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;a&&(r[1].end={...g.get(a)[1].start},u=g.slice(a,n),u.unshift(r),g.splice(a,n-a+1,u))}}return pa(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!f}function Z$(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const u=l.events,c=[],f={};let g,h,x=-1,b=n,E=0,_=0;const C=[_];for(;b;){for(;e.get(++a)[1]!==b;);i.push(a),b._tokenizer||(g=r.sliceStream(b),b.next||g.push(null),h&&l.defineSki
vendor: 18,623 bytes, line 413
413p(b.start),b._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(g),b._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),h=b,b=b.next}for(b=n;++x<u.length;)u[x][0]==="exit"&&u[x-1][0]==="enter"&&u[x][1].type===u[x-1][1].type&&u[x][1].start.line!==u[x][1].end.line&&(_=x+1,C.push(_),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(l.events=[],b?(b._tokenizer=void 0,b.previous=void 0):C.pop(),x=C.length;x--;){const w=u.slice(C[x],C[x+1]),N=i.pop();c.push([N,N+w.length-1]),e.splice(N,2,w)}for(c.reverse(),x=-1;++x<c.length;)f[E+c[x][0]]=E+c[x][1],E+=c[x][1]-c[x][0]-1;return f}const J$={resolve:tV,tokenize:nV},eV={partial:!0,tokenize:rV};function tV(e){return fA(e),e}function nV(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(u)}function a(u){return u===null?i(u):Ge(u)?e.check(eV,l,i)(u):(e.consume(u),a)}function i(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function l(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function rV(e,t,n){const r=this;return a;function a(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),vt(e,i,"linePrefix")}function i(l){if(l===null||Ge(l))return n(l);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function hA(e,t,n,r,a,i,l,u,c){const f=c||Number.POSITIVE_INFINITY;let g=0;return h;function h(w){return w===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(w),e.exit(i),x):w===null||w===32||w===41||Hh(w)?n(w):(e.enter(r),e.enter(l),e.enter(u),e.enter("chunkString",{contentType:"string"}),_(w))}function x(w){return w===62?(e.enter(i),e.consume(w),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),b(w))}function b(w){return w===62?(e.exit("chunkString"),e.exit(u),x(w)):w===null||w===60||Ge(w)?n(w):(e.consume(w),w===92?E:b)}function E(w){return w===60||w===62||w===92?(e.consume(w),b):b(w)}function _(w){return!g&&(w===null||w===41||tn(w))?(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),t(w)):g<f&&w===40?(e.consume(w),g++,_):w===41?(e.consume(w),g--,_):w===null||w===32||w===40||Hh(w)?n(w):(e.consume(w),w===92?C:_)}function C(w){return w===40||w===41||w===92?(e.consume(w),_):_(w)}}function pA(e,t,n,r,a,i){const l=this;let u=0,c;return f;function f(b){return e.enter(r),e.enter(a),e.consume(b),e.exit(a),e.enter(i),g}function g(b){return u>999||b===null||b===91||b===93&&!c||b===94&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs?n(b):b===93?(e.exit(i),e.enter(a),e.consume(b),e.exit(a),e.exit(r),t):Ge(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===null||b===91||b===93||Ge(b)||u++>999?(e.exit("chunkString"),g(b)):(e.consume(b),c||(c=!Tt(b)),b===92?x:h)}function x(b){return b===91||b===92||b===93?(e.consume(b),u++,h):h(b)}}function mA(e,t,n,r,a,i){let l;return u;function u(x){return x===34||x===39||x===40?(e.enter(r),e.enter(a),e.consume(x),e.exit(a),l=x===40?41:x,c):n(x)}function c(x){return x===l?(e.enter(a),e.consume(x),e.exit(a),e.exit(r),t):(e.enter(i),f(x))}function f(x){return x===l?(e.exit(i),c(l)):x===null?n(x):Ge(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),vt(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===l||x===null||Ge(x)?(e.exit("chunkString"),f(x)):(e.consume(x),x===92?h:g)}function h(x){return x===l||x===92?(e.consume(x),g):g(x)}}function y0(e,t){let n;return r;function r(a){return Ge(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):Tt(a)?vt(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const aV={name:"definition",tokenize:iV},sV={partial:!0,tokenize:lV};function iV(e,t,n){const r=this;let a;return i;function i(b){return e.enter("definition"),l(b)}function l(b){return pA.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function u(b){return a=Qa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),c):n(b)}function c(b){return tn(b)?y0(e,f)(b):f(b)}function f(b){return hA(e,g,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function g(b){return e.attempt(sV,h,h)(b)}function h(b){return Tt(b)?vt(e,x,"whitespace")(b):x(b)}function x(b){return b===null||Ge(b)?(e.exit("definition"),r.parser.defined.push(a),t(b)):n(b)}}function lV(e,t,n){return r;function r(u){return tn(u)?y0(e,a)(u):n(u)}function a(u){return mA(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function i(u){return Tt(u)?vt(e,l,"whitespace")(u):l(u)}function l(u){return u===null||Ge(u)?t(u):n(u)}}const oV={name:"hardBreakEscape",tokenize:uV};function uV(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return Ge(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const cV={name:"headingAtx",resolve:dV,tokenize:fV};function dV(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},pa(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function fV(e,t,n){let r=0;return a;function a(g){return e.enter("atxHeading"),i(g)}function i(g){return e.enter("atxHeadingSequence"),l(g)}function l(g){return g===35&&r++<6?(e.consume(g),l):g===null||tn(g)?(e.exit("atxHeadingSequence"),u(g)):n(g)}function u(g){return g===35?(e.enter("atxHeadingSequence"),c(g)):g===null||Ge(g)?(e.exit("atxHeading"),t(g)):Tt(g)?vt(e,u,"whitespace")(g):(e.enter("atxHeadingText"),f(g))}function c(g){return g===35?(e.consume(g),c):(e.exit("atxHeadingSequence"),u(g))}function f(g){return g===null||g===35||tn(g)?(e.exit("atxHeadingText"),u(g)):(e.consume(g),f)}}const hV=["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"],kE=["pre","script","style","textarea"],pV={concrete:!0,name:"htmlFlow",resolveTo:xV,tokenize:bV},mV={partial:!0,tokenize:vV},gV={partial:!0,tokenize:yV};function xV(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 bV(e,t,n){const r=this;let a,i,l,u,c;return f;function f(M){return g(M)}function g(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),h}function h(M){return M===33?(e.consume(M),x):M===47?(e.consume(M),i=!0,_):M===63?(e.consume(M),a=3,r.interrupt?t:q):Or(M)?(e.consume(M),l=String.fromCharCode(M),C):n(M)}function x(M){return M===45?(e.consume(M),a=2,b):M===91?(e.consume(M),a=5,u=0,E):Or(M)?(e.consume(M),a=4,r.interrupt?t:q):n(M)}function b(M){return M===45?(e.consume(M),r.interrupt?t:q):n(M)}function E(M){const pe="CDATA[";return M===pe.charCodeAt(u++)?(e.consume(M),u===pe.length?r.interrupt?t:ee:E):n(M)}function _(M){return Or(M)?(e.consume(M),l=String.fromCharCode(M),C):n(M)}function C(M){if(M===null||M===47||M===62||tn(M)){const pe=M===47,_e=l.toLowerCase();return!pe&&!i&&kE.includes(_e)?(a=1,r.interrupt?t(M):ee(M)):hV.includes(l.toLowerCase())?(a=6,pe?(e.consume(M),w):r.interrupt?t(M):ee(M)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(M):i?N(M):R(M))}return M===45||Tr(M)?(e.consume(M),l+=String.fromCharCode(M),C):n(M)}function w(M){return M===62?(e.consume(M),r.interrupt?t:ee):n(M)}function N(M){return Tt(M)?(e.consume(M),N):$(M)}function R(M){return M===47?(e.consume(M),$):M===58||M===95||Or(M)?(e.consume(M),z):Tt(M)?(e.consume(M),R):$(M)}function z(M){return M===45||M===46||M===58||M===95||Tr(M)?(e.consume(M),z):B(M)}function B(M){return M===61?(e.consume(M),j):Tt(M)?(e.consume(M),B):R(M)}function j(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),c=M,L):Tt(M)?(e.consume(M),j):Y(M)}function L(M){return M===c?(e.consume(M),c=null,Z):M===null||Ge(M)?n(M):(e.consume(M),L)}function Y(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||tn(M)?B(M):(e.consume(M),Y)}function Z(M){return M===47||M===62||Tt(M)?R(M):n(M)}function $(M){return M===62?(e.consume(M),te):n(M)}function te(M){return M===null||Ge(M)?ee(M):Tt(M)?(e.consume(M),te):n(M)}function ee(M){return M===45&&a===2?(e.consume(M),H):M===60&&a===1?(e.consume(M),re):M===62&&a===4?(e.consume(M),G):M===63&&a===3?(e.consume(M),q):M===93&&a===5?(e.consume(M),Te):Ge(M)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(mV,oe,he)(M)):M===null||Ge(M)?(e.exit("htmlFlowData"),he(M)):(e.consume(M),ee)}function he(M){return e.check(gV,ie,oe)(M)}function ie(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),ne}function ne(M){return M===null||Ge(M)?he(M):(e.enter("htmlFlowData"),ee(M))}function H(M){return M===45?(e.consume(M),q):ee(M)}function re(M){return M===47?(e.consume(M),l="",J):ee(M)}function J(M){if(M===62){const pe=l.toLowerCase();return kE.includes(pe)?(e.consume(M),G):ee(M)}return Or(M)&&l.length<8?(e.consume(M),l+=String.fromCharCode(M),J):ee(M)}function Te(M){return M===93?(e.consume(M),q):ee(M)}function q(M){return M===62?(e.consume(M),G):M===45&&a===2?(e.consume(M),q):ee(M)}function G(M){return M===null||Ge(M)?(e.exit("htmlFlowData"),oe(M)):(e.consume(M),G)}function oe(M){return e.exit("htmlFlow"),t(M)}}function yV(e,t,n){const r=this;return a;function a(l){return Ge(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):n(l)}function i(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function vV(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(ud,t,n)}}const EV={name:"htmlText",tokenize:SV};function SV(e,t,n){const r=this;let a,i,l;return u;function u(q){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(q),c}function c(q){return q===33?(e.consume(q),f):q===47?(e.consume(q),B):q===63?(e.consume(q),R):Or(q)?(e.consume(q),Y):n(q)}function f(q){return q===45?(e.consume(q),g):q===91?(e.consume(q),i=0,E):Or(q)?(e.consume(q),N):n(q)}function g(q){return q===45?(e.consume(q),b):n(q)}function h(q){return q===null?n(q):q===45?(e.consume(q),x):Ge(q)?(l=h,re(q)):(e.consume(q),h)}function x(q){return q===45?(e.consume(q),b):h(q)}function b(q){return q===62?H(q):q===45?x(q):h(q)}function E(q){const G="CDATA[";return q===G.charCodeAt(i++)?(e.consume(q),i===G.length?_:E):n(q)}function _(q){return q===null?n(q):q===93?(e.consume(q),C):Ge(q)?(l=_,re(q)):(e.consume(q),_)}function C(q){return q===93?(e.consume(q),w):_(q)}function w(q){return q===62?H(q):q===93?(e.consume(q),w):_(q)}function N(q){return q===null||q===62?H(q):Ge(q)?(l=N,re(q)):(e.consume(q),N)}function R(q){return q===null?n(q):q===63?(e.consume(q),z):Ge(q)?(l=R,re(q)):(e.consume(q),R)}function z(q){return q===62?H(q):R(q)}function B(q){return Or(q)?(e.consume(q),j):n(q)}function j(q){return q===45||Tr(q)?(e.consume(q),j):L(q)}function L(q){return Ge(q)?(l=L,re(q)):Tt(q)?(e.consume(q),L):H(q)}function Y(q){return q===45||Tr(q)?(e.consume(q),Y):q===47||q===62||tn(q)?Z(q):n(q)}function Z(q){return q===47?(e.consume(q),H):q===58||q===95||Or(q)?(e.consume(q),$):Ge(q)?(l=Z,re(q)):Tt(q)?(e.consume(q),Z):H(q)}function $(q){return q===45||q===46||q===58||q===95||Tr(q)?(e.consume(q),$):te(q)}function te(q){return q===61?(e.consume(q),ee):Ge(q)?(l=te,re(q)):Tt(q)?(e.consume(q),te):Z(q)}function ee(q){return q===null||q===60||q===61||q===62||q===96?n(q):q===34||q===39?(e.consume(q),a=q,he):Ge(q)?(l=ee,re(q)):Tt(q)?(e.consume(q),ee):(e.consume(q),ie)}function he(q){return q===a?(e.consume(q),a=void 0,ne):q===null?n(q):Ge(q)?(l=he,re(q)):(e.consume(q),he)}function ie(q){return q===null||q===34||q===39||q===60||q===61||q===96?n(q):q===47||q===62||tn(q)?Z(q):(e.consume(q),ie)}function ne(q){return q===47||q===62||tn(q)?Z(q):n(q)}function H(q){return q===62?(e.consume(q),e.exit("htmlTextData"),e.exit("htmlText"),t):n(q)}function re(q){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(q),e.exit("lineEnding"),J}function J(q){return Tt(q)?vt(e,Te,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):Te(q)}function Te(q){return e.enter("htmlTextData"),l(q)}}const Ny={name:"labelEnd",resolveAll:AV,resolveTo:CV,tokenize:kV},_V={tokenize:NV},TV={tokenize:PV},wV={tokenize:RV};function AV(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&pa(e,0,e.length,n),e}function CV(e,t){let n=e.length,r=0,a,i,l,u;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(l=n);const c={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[i][1].start},end:{...e[l][1].end}},g={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[l-2][1].start}};return u=[["enter",c,t],["enter",f,t]],u=Pa(u,e.slice(i+1,i+r+3)),u=Pa(u,[["enter",g,t]]),u=Pa(u,Qp(t.parser.constructs.insideSpan.null,e.slice(i+r+4,l-3),t)),u=Pa(u,[["exit",g,t],e[l-2],e[l-1],["exit",f,t]]),u=Pa(u,e.slice(l+1)),u=Pa(u,[["exit",c,t]]),pa(e,i,e.length,u),e}function kV(e,t,n){const r=this;let a=r.events.length,i,l;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return u;function u(x){return i?i._inactive?h(x):(l=r.parser.defined.includes(Qa(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(x),e.exit("labelMarker"),e.exit("labelEnd"),c):n(x)}function c(x){return x===40?e.attempt(_V,g,l?g:h)(x):x===91?e.attempt(TV,g,l?f:h)(x):l?g(x):h(x)}function f(x){return e.attempt(wV,g,h)(x)}function g(x){return t(x)}function h(x){return i._balanced=!0,n(x)}}function NV(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),a}function a(h){return tn(h)?y0(e,i)(h):i(h)}function i(h){return h===41?g(h):hA(e,l,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function l(h){return tn(h)?y0(e,c)(h):g(h)}function u(h){return n(h)}function c(h){return h===34||h===39||h===40?mA(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):g(h)}function f(h){return tn(h)?y0(e,g)(h):g(h)}function g(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function PV(e,t,n){const r=this;return a;function a(u){return pA.call(r,e,i,l,"reference","referenceMarker","referenceString")(u)}function i(u){return r.parser.defined.includes(Qa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function l(u){return n(u)}}function RV(e,t,n){return r;function r(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):n(i)}}const OV={name:"labelStartImage",resolveAll:Ny.resolveAll,tokenize:MV};function MV(e,t,n){const r=this;return a;function a(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),i}function i(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),l):n(u)}function l(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const DV={name:"labelStartLink",resolveAll:Ny.resolveAll,tokenize:IV};function IV(e,t,n){const r=this;return a;function a(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),i}function i(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const s2={name:"lineEnding",tokenize:LV};function LV(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),vt(e,t,"linePrefix")}}const _h={name:"thematicBreak",tokenize:jV};function jV(e,t,n){let r=0,a;return i;function i(f){return e.enter("thematicBreak"),l(f)}function l(f){return a=f,u(f)}function u(f){return f===a?(e.enter("thematicBreakSequence"),c(f)):r>=3&&(f===null||Ge(f))?(e.exit("thematicBreak"),t(f)):n(f)}function c(f){return f===a?(e.consume(f),r++,c):(e.exit("thematicBreakSequence"),Tt(f)?vt(e,u,"whitespace")(f):u(f))}}const Qr={continuation:{tokenize:HV},exit:qV,name:"list",tokenize:FV},BV={partial:!0,tokenize:$V},zV={partial:!0,tokenize:UV};function FV(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,l=0;return u;function u(b){const E=r.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||b===r.containerState.marker:zx(b)){if(r.containerState.type||(r.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(_h,n,f)(b):f(b);if(!r.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(b)}return n(b)}function c(b){return zx(b)&&++l<10?(e.consume(b),c):(!r.interrupt||l<2)&&(r.containerState.marker?b===r.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),f(b)):n(b)}function f(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||b,e.check(ud,r.interrupt?n:g,e.attempt(BV,x,h))}
vendor: 4,728 bytes, line 413
413function g(b){return r.containerState.initialBlankLine=!0,i++,x(b)}function h(b){return Tt(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),x):n(b)}function x(b){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function HV(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(ud,a,i);function a(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,vt(e,t,"listItemIndent",r.containerState.size+1)(u)}function i(u){return r.containerState.furtherBlankLines||!Tt(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(zV,t,l)(u))}function l(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,vt(e,e.attempt(Qr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function UV(e,t,n){const r=this;return vt(e,a,"listItemIndent",r.containerState.size+1);function a(i){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(i):n(i)}}function qV(e){e.exit(this.containerState.type)}function $V(e,t,n){const r=this;return vt(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const l=r.events[r.events.length-1];return!Tt(i)&&l&&l[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const NE={name:"setextUnderline",resolveTo:VV,tokenize:GV};function VV(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",l,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function GV(e,t,n){const r=this;let a;return i;function i(f){let g=r.events.length,h;for(;g--;)if(r.events[g][1].type!=="lineEnding"&&r.events[g][1].type!=="linePrefix"&&r.events[g][1].type!=="content"){h=r.events[g][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),a=f,l(f)):n(f)}function l(f){return e.enter("setextHeadingLineSequence"),u(f)}function u(f){return f===a?(e.consume(f),u):(e.exit("setextHeadingLineSequence"),Tt(f)?vt(e,c,"lineSuffix")(f):c(f))}function c(f){return f===null||Ge(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const YV={tokenize:QV};function QV(e){const t=this,n=e.attempt(ud,r,e.attempt(this.parser.constructs.flowInitial,a,vt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(J$,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const XV={resolveAll:xA()},KV=gA("string"),WV=gA("text");function gA(e){return{resolveAll:xA(e==="text"?ZV:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,l,u);return l;function l(g){return f(g)?i(g):u(g)}function u(g){if(g===null){n.consume(g);return}return n.enter("data"),n.consume(g),c}function c(g){return f(g)?(n.exit("data"),i(g)):(n.consume(g),c)}function f(g){if(g===null)return!0;const h=a[g];let x=-1;if(h)for(;++x<h.length;){const b=h[x];if(!b.previous||b.previous.call(r,r.previous))return!0}return!1}}}function xA(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function ZV(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,l=-1,u=0,c;for(;i--;){const f=a[i];if(typeof f=="string"){for(l=f.length;f.charCodeAt(l-1)===32;)u++,l--;if(l)break;l=-1}else if(f===-2)c=!0,u++;else if(f!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const f={type:n===e.length||c||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?l:r.start._bufferIndex+l,_index:r.start._index+i,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...f.start},r.start.offset===r.end.offset?Object.assign(r,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}
vendor: 5,163 bytes, lines 413-415
413const JV={42:Qr,43:Qr,45:Qr,48:Qr,49:Qr,50:Qr,51:Qr,52:Qr,53:Qr,54:Qr,55:Qr,56:Qr,57:Qr,62:uA},eG={91:aV},tG={[-2]:a2,[-1]:a2,32:a2},nG={35:cV,42:_h,45:[NE,_h],60:pV,61:NE,95:_h,96:CE,126:CE},rG={38:dA,92:cA},aG={[-5]:s2,[-4]:s2,[-3]:s2,33:OV,38:dA,42:Fx,60:[D$,EV],91:DV,92:[oV,cA],93:Ny,95:Fx,96:Y$},sG={null:[Fx,XV]},iG={null:[42,95]},lG={null:[]},oG=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:iG,contentInitial:eG,disable:lG,document:JV,flow:nG,flowInitial:tG,insideSpan:sG,string:rG,text:aG},Symbol.toStringTag,{value:"Module"}));function uG(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let l=[],u=[];const c={attempt:L(B),check:L(j),consume:N,enter:R,exit:z,interrupt:L(j,{interrupt:!0})},f={code:null,containerState:{},defineSkip:_,events:[],now:E,parser:e,previous:null,sliceSerialize:x,sliceStream:b,write:h};let g=t.tokenize.call(f,c);return t.resolveAll&&i.push(t),f;function h(te){return l=Pa(l,te),C(),l[l.length-1]!==null?[]:(Y(t,0),f.events=Qp(i,f.events,f),f.events)}function x(te,ee){return dG(b(te),ee)}function b(te){return cG(l,te)}function E(){const{_bufferIndex:te,_index:ee,line:he,column:ie,offset:ne}=r;return{_bufferIndex:te,_index:ee,line:he,column:ie,offset:ne}}function _(te){a[te.line]=te.column,$()}function C(){let te;for(;r._index<l.length;){const ee=l[r._index];if(typeof ee=="string")for(te=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===te&&r._bufferIndex<ee.length;)w(ee.charCodeAt(r._bufferIndex));else w(ee)}}function w(te){g=g(te)}function N(te){Ge(te)?(r.line++,r.column=1,r.offset+=te===-3?2:1,$()):te!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=te}function R(te,ee){const he=ee||{};return he.type=te,he.start=E(),f.events.push(["enter",he,f]),u.push(he),he}function z(te){const ee=u.pop();return ee.end=E(),f.events.push(["exit",ee,f]),ee}function B(te,ee){Y(te,ee.from)}function j(te,ee){ee.restore()}function L(te,ee){return he;function he(ie,ne,H){let re,J,Te,q;return Array.isArray(ie)?oe(ie):"tokenize"in ie?oe([ie]):G(ie);function G(Re){return ve;function ve(Ie){const Ue=Ie!==null&&Re[Ie],Qe=Ie!==null&&Re.null,rt=[...Array.isArray(Ue)?Ue:Ue?[Ue]:[],...Array.isArray(Qe)?Qe:Qe?[Qe]:[]];return oe(rt)(Ie)}}function oe(Re){return re=Re,J=0,Re.length===0?H:M(Re[J])}function M(Re){return ve;function ve(Ie){return q=Z(),Te=Re,Re.partial||(f.currentConstruct=Re),Re.name&&f.parser.constructs.disable.null.includes(Re.name)?_e():Re.tokenize.call(ee?Object.assign(Object.create(f),ee):f,c,pe,_e)(Ie)}}function pe(Re){return te(Te,q),ne}function _e(Re){return q.restore(),++J<re.length?M(re[J]):H}}}function Y(te,ee){te.resolveAll&&!i.includes(te)&&i.push(te),te.resolve&&pa(f.events,ee,f.events.length-ee,te.resolve(f.events.slice(ee),f)),te.resolveTo&&(f.events=te.resolveTo(f.events,f))}function Z(){const te=E(),ee=f.previous,he=f.currentConstruct,ie=f.events.length,ne=Array.from(u);return{from:ie,restore:H};function H(){r=te,f.previous=ee,f.currentConstruct=he,f.events.length=ie,u=ne,$()}}function $(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function cG(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let l;if(n===a)l=[e[n].slice(r,i)];else{if(l=e.slice(n,a),r>-1){const u=l[0];typeof u=="string"?l[0]=u.slice(r):l.shift()}i>0&&l.push(e[a].slice(0,i))}return l}function dG(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let l;if(typeof i=="string")l=i;else switch(i){case-5:{l="\r";break}case-4:{l=`
414`;break}case-3:{l=`\r
415`;break}case-2:{l=t?" ":"	";break}case-1:{if(!t&&a)continue;l=" ";break}default:l=String.fromCharCode(i)}a=i===-2,r.push(l)}return r.join("")}function fG(e){const r={constructs:lA([oG,...(e||{}).extensions||[]]),content:a(C$),defined:[],document:a(N$),flow:a(YV),lazy:{},string:a(KV),text:a(WV)};return r;function a(i){return l;function l(u){return uG(r,i,u)}}}function hG(e){for(;!fA(e););return e}const PE=/[\0\t\n\r]/g;function pG(){let e=1,t="",n=!0,r;return a;function a(i,l,u){const c=[];let f,g,h,x,b;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(l||void 0).decode(i)),h=0,t="",n&&(i.charCodeAt(0)===65279&&h++,n=void 0);h<i.length;){if(PE.lastIndex=h,f=PE.exec(i),x=f&&f.index!==void 0?f.index:i.length,b=i.charCodeAt(x),!f){t=i.slice(h);break}if(b===10&&h===x&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),h<x&&(c.push(i.slice(h,x)),e+=x-h),b){case 0:{c.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,c.push(-2);e++<g;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}h=x+1}return u&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const mG=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function gG(e){return e.replace(mG,xG)}function xG(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return oA(n.slice(i?2:1),i?16:10)}return ky(n)||e}const bA={}.hasOwnProperty;function bG(e,t,n){return typeof t!="string"&&(n=t,t=void 0),yG(n)(hG(fG(n).document().write(pG()(e,t,!0))
vendor: 14,141 bytes, lines 415-417
415))}function yG(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(pn),autolinkProtocol:Z,autolinkEmail:Z,atxHeading:i(lr),blockQuote:i(Qe),characterEscape:Z,characterReference:Z,codeFenced:i(rt),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:i(rt,l),codeText:i(lt,l),codeTextData:Z,data:Z,codeFlowValue:Z,definition:i(hn),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:i(Zt),hardBreakEscape:i(Gn),hardBreakTrailing:i(Gn),htmlFlow:i(Mn,l),htmlFlowData:Z,htmlText:i(Mn,l),htmlTextData:Z,image:i(Cr),label:l,link:i(pn),listItem:i(xt),listItemValue:x,listOrdered:i(Ce,h),listUnordered:i(Ce),paragraph:i(ft),reference:M,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:i(lr),strong:i(Yt),thematicBreak:i(xa)},exit:{atxHeading:c(),atxHeadingSequence:B,autolink:c(),autolinkEmail:Ue,autolinkProtocol:Ie,blockQuote:c(),characterEscapeValue:$,characterReferenceMarkerHexadecimal:_e,characterReferenceMarkerNumeric:_e,characterReferenceValue:Re,characterReference:ve,codeFenced:c(C),codeFencedFence:_,codeFencedFenceInfo:b,codeFencedFenceMeta:E,codeFlowValue:$,codeIndented:c(w),codeText:c(ne),codeTextData:$,data:$,definition:c(),definitionDestinationString:z,definitionLabelString:N,definitionTitleString:R,emphasis:c(),hardBreakEscape:c(ee),hardBreakTrailing:c(ee),htmlFlow:c(he),htmlFlowData:$,htmlText:c(ie),htmlTextData:$,image:c(re),label:Te,labelText:J,lineEnding:te,link:c(H),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:pe,resourceDestinationString:q,resourceTitleString:G,resource:oe,setextHeading:c(Y),setextHeadingLineSequence:L,setextHeadingText:j,strong:c(),thematicBreak:c()}};yA(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(be){let Le={type:"root",children:[]};const Ze={stack:[Le],tokenStack:[],config:t,enter:u,exit:f,buffer:l,resume:g,data:n},ht=[];let Et=-1;for(;++Et<be.length;)if(be[Et][1].type==="listOrdered"||be[Et][1].type==="listUnordered")if(be[Et][0]==="enter")ht.push(Et);else{const gr=ht.pop();Et=a(be,gr,Et)}for(Et=-1;++Et<be.length;){const gr=t[be[Et][0]];bA.call(gr,be[Et][1].type)&&gr[be[Et][1].type].call(Object.assign({sliceSerialize:be[Et][2].sliceSerialize},Ze),be[Et][1])}if(Ze.tokenStack.length>0){const gr=Ze.tokenStack[Ze.tokenStack.length-1];(gr[1]||RE).call(Ze,void 0,gr[0])}for(Le.position={start:Vi(be.length>0?be[0][1].start:{line:1,column:1,offset:0}),end:Vi(be.length>0?be[be.length-2][1].end:{line:1,column:1,offset:0})},Et=-1;++Et<t.transforms.length;)Le=t.transforms[Et](Le)||Le;return Le}function a(be,Le,Ze){let ht=Le-1,Et=-1,gr=!1,xr,or,Tn,ur;for(;++ht<=Ze;){const Ut=be[ht];switch(Ut[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ut[0]==="enter"?Et++:Et--,ur=void 0;break}case"lineEndingBlank":{Ut[0]==="enter"&&(xr&&!ur&&!Et&&!Tn&&(Tn=ht),ur=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ur=void 0}if(!Et&&Ut[0]==="enter"&&Ut[1].type==="listItemPrefix"||Et===-1&&Ut[0]==="exit"&&(Ut[1].type==="listUnordered"||Ut[1].type==="listOrdered")){if(xr){let ts=ht;for(or=void 0;ts--;){const kr=be[ts];if(kr[1].type==="lineEnding"||kr[1].type==="lineEndingBlank"){if(kr[0]==="exit")continue;or&&(be[or][1].type="lineEndingBlank",gr=!0),kr[1].type="lineEnding",or=ts}else if(!(kr[1].type==="linePrefix"||kr[1].type==="blockQuotePrefix"||kr[1].type==="blockQuotePrefixWhitespace"||kr[1].type==="blockQuoteMarker"||kr[1].type==="listItemIndent"))break}Tn&&(!or||Tn<or)&&(xr._spread=!0),xr.end=Object.assign({},or?be[or][1].start:Ut[1].end),be.splice(or||ht,0,["exit",xr,Ut[2]]),ht++,Ze++}if(Ut[1].type==="listItemPrefix"){const ts={type:"listItem",_spread:!1,start:Object.assign({},Ut[1].start),end:void 0};xr=ts,be.splice(ht,0,["enter",ts,Ut[2]]),ht++,Ze++,Tn=void 0,ur=!0}}}return be[Le][1]._spread=gr,Ze}function i(be,Le){return Ze;function Ze(ht){u.call(this,be(ht),ht),Le&&Le.call(this,ht)}}function l(){this.stack.push({type:"fragment",children:[]})}function u(be,Le,Ze){this.stack[this.stack.length-1].children.push(be),this.stack.push(be),this.tokenStack.push([Le,Ze||void 0]),be.position={start:Vi(Le.start),end:void 0}}function c(be){return Le;function Le(Ze){be&&be.call(this,Ze),f.call(this,Ze)}}function f(be,Le){const Ze=this.stack.pop(),ht=this.tokenStack.pop();if(ht)ht[0].type!==be.type&&(Le?Le.call(this,be,ht[0]):(ht[1]||RE).call(this,be,ht[0]));else throw new Error("Cannot close `"+be.type+"` ("+b0({start:be.start,end:be.end})+"): it’s not open");Ze.position.end=Vi(be.end)}function g(){return Cy(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function x(be){if(this.data.expectingFirstListItemValue){const Le=this.stack[this.stack.length-2];Le.start=Number.parseInt(this.sliceSerialize(be),10),this.data.expectingFirstListItemValue=void 0}}function b(){const be=this.resume(),Le=this.stack[this.stack.length-1];Le.lang=be}function E(){const be=this.resume(),Le=this.stack[this.stack.length-1];Le.meta=be}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const be=this.resume(),Le=this.stack[this.stack.length-1];Le.value=be.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const be=this.resume(),Le=this.stack[this.stack.length-1];Le.value=be.replace(/(\r?\n|\r)$/g,"")}function N(be){const Le=this.resume(),Ze=this.stack[this.stack.length-1];Ze.label=Le,Ze.identifier=Qa(this.sliceSerialize(be)).toLowerCase()}function R(){const be=this.resume(),Le=this.stack[this.stack.length-1];Le.title=be}function z(){const be=this.resume(),Le=this.stack[this.stack.length-1];Le.url=be}function B(be){const Le=this.stack[this.stack.length-1];if(!Le.depth){const Ze=this.sliceSerialize(be).length;Le.depth=Ze}}function j(){this.data.setextHeadingSlurpLineEnding=!0}function L(be){const Le=this.stack[this.stack.length-1];Le.depth=this.sliceSerialize(be).codePointAt(0)===61?1:2}function Y(){this.data.setextHeadingSlurpLineEnding=void 0}function Z(be){const Ze=this.stack[this.stack.length-1].children;let ht=Ze[Ze.length-1];(!ht||ht.type!=="text")&&(ht=Jt(),ht.position={start:Vi(be.start),end:void 0},Ze.push(ht)),this.stack.push(ht)}function $(be){const Le=this.stack.pop();Le.value+=this.sliceSerialize(be),Le.position.end=Vi(be.end)}function te(be){const Le=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ze=Le.children[Le.children.length-1];Ze.position.end=Vi(be.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Le.type)&&(Z.call(this,be),$.call(this,be))}function ee(){this.data.atHardBreak=!0}function he(){const be=this.resume(),Le=this.stack[this.stack.length-1];Le.value=be}function ie(){const be=this.resume(),Le=this.stack[this.stack.length-1];Le.value=be}function ne(){const be=this.resume(),Le=this.stack[this.stack.length-1];Le.value=be}function H(){const be=this.stack[this.stack.length-1];if(this.data.inReference){const Le=this.data.referenceType||"shortcut";be.type+="Reference",be.referenceType=Le,delete be.url,delete be.title}else delete be.identifier,delete be.label;this.data.referenceType=void 0}function re(){const be=this.stack[this.stack.length-1];if(this.data.inReference){const Le=this.data.referenceType||"shortcut";be.type+="Reference",be.referenceType=Le,delete be.url,delete be.title}else delete be.identifier,delete be.label;this.data.referenceType=void 0}function J(be){const Le=this.sliceSerialize(be),Ze=this.stack[this.stack.length-2];Ze.label=gG(Le),Ze.identifier=Qa(Le).toLowerCase()}function Te(){const be=this.stack[this.stack.length-1],Le=this.resume(),Ze=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ze.type==="link"){const ht=be.children;Ze.children=ht}else Ze.alt=Le}function q(){const be=this.resume(),Le=this.stack[this.stack.length-1];Le.url=be}function G(){const be=this.resume(),Le=this.stack[this.stack.length-1];Le.title=be}function oe(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function pe(be){const Le=this.resume(),Ze=this.stack[this.stack.length-1];Ze.label=Le,Ze.identifier=Qa(this.sliceSerialize(be)).toLowerCase(),this.data.referenceType="full"}function _e(be){this.data.characterReferenceType=be.type}function Re(be){const Le=this.sliceSerialize(be),Ze=this.data.characterReferenceType;let ht;Ze?(ht=oA(Le,Ze==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ht=ky(Le);const Et=this.stack[this.stack.length-1];Et.value+=ht}function ve(be){const Le=this.stack.pop();Le.position.end=Vi(be.end)}function Ie(be){$.call(this,be);const Le=this.stack[this.stack.length-1];Le.url=this.sliceSerialize(be)}function Ue(be){$.call(this,be);const Le=this.stack[this.stack.length-1];Le.url="mailto:"+this.sliceSerialize(be)}function Qe(){return{type:"blockquote",children:[]}}function rt(){return{type:"code",lang:null,meta:null,value:""}}function lt(){return{type:"inlineCode",value:""}}function hn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Zt(){return{type:"emphasis",children:[]}}function lr(){return{type:"heading",depth:0,children:[]}}function Gn(){return{type:"break"}}function Mn(){return{type:"html",value:""}}function Cr(){return{type:"image",title:null,url:"",alt:null}}function pn(){return{type:"link",title:null,url:"",children:[]}}function Ce(be){return{type:"list",ordered:be.type==="listOrdered",start:null,spread:be._spread,children:[]}}function xt(be){return{type:"listItem",spread:be._spread,checked:null,children:[]}}function ft(){return{type:"paragraph",children:[]}}function Yt(){return{type:"strong",children:[]}}function Jt(){return{type:"text",value:""}}function xa(){return{type:"thematicBreak"}}}function Vi(e){return{line:e.line,column:e.column,offset:e.offset}}function yA(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?yA(e,r):vG(e,r)}}function vG(e,t){let n;for(n in t)if(bA.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function RE(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+b0({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+b0({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+b0({start:t.start,end:t.end})+") is still open")}function EG(e){const t=this;t.parser=n;function n(r){return bG(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function SG(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function _G(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
416`}]}function TG(e,t){const n=t.value?t.value+`
417`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function wG(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function AG(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function CG(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=Xu(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let l,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=i+1,u+=1,e.footnoteCounts.set(r,u);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,c);const f={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,f),e.applyData(t,f)}function kG(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function NG(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function vA(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const l=a[a.length-1];return l&&l.type==="text"?l.value+=r:a.push({type:"text",value:r}),a}function PG(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return vA(e,t);const a={src:Xu(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function RG(e,t){const n={src:Xu(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function OG(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function MG(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return vA(e,t);const a={href:Xu(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function DG(e,t){const n={href:Xu(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function IG(e,t,n){const r=e.all(t),a=n?LG(n):EA(t),i={},l=[];
vendor: 6,834 bytes, lines 417-419
417if(typeof t.checked=="boolean"){const g=r[0];let h;g&&g.type==="element"&&g.tagName==="p"?h=g:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const g=r[u];(a||u!==0||g.type!=="element"||g.tagName!=="p")&&l.push({type:"text",value:`
418`}),g.type==="element"&&g.tagName==="p"&&!a?l.push(...g.children):l.push(g)}const c=r[r.length-1];c&&(a||c.type!=="element"||c.tagName!=="p")&&l.push({type:"text",value:`
419`});const f={type:"element",tagName:"li",properties:i,children:l};return e.patch(t,f),e.applyData(t,f)}function LG(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=EA(n[r])}return t}function EA(e){const t=e.spread;return t??e.children.length>1}function jG(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const l=r[a];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function BG(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zG(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function FG(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function HG(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),a.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=ks(t.children[1]),c=Gp(t.children[t.children.length-1]);u&&c&&(l.position={start:u,end:c}),a.push(l)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function UG(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,u=l?l.length:t.children.length;let c=-1;const f=[];for(;++c<u;){const h=t.children[c],x={},b=l?l[c]:void 0;b&&(x.align=b);let E={type:"element",tagName:i,properties:x,children:[]};h&&(E.children=e.all(h),e.patch(h,E),E=e.applyData(h,E)),f.push(E)}const g={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(t,g),e.applyData(t,g)}function qG(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const OE=9,ME=32;function $G(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const i=[];for(;r;)i.push(DE(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(DE(t.slice(a),a>0,!1)),i.join("")}function DE(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===OE||i===ME;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===OE||i===ME;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function VG(e,t){const n={type:"text",value:$G(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function GG(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const YG={blockquote:SG,break:_G,code:TG,delete:wG,emphasis:AG,footnoteReference:CG,heading:kG,html:NG,imageReference:PG,image:RG,inlineCode:OG,linkReference:MG,link:DG,listItem:IG,list:jG,paragraph:BG,root:zG,strong:FG,table:HG,tableCell:qG,tableRow:UG,text:VG,thematicBreak:GG,toml:Xf,yaml:Xf,definition:Xf,footnoteDefinition:Xf};function Xf(){}const SA=-1,Xp=0,v0=1,Uh=2,Py=3,Ry=4,Oy=5,My=6,_A=7,TA=8,IE=typeof self=="object"?self:globalThis,QG=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,l]=t[a];switch(i){case Xp:case SA:return n(l,a);case v0:{const u=n([],a);for(const c of l)u.push(r(c));return u}case Uh:{const u=n({},a);for(const[c,f]of l)u[r(c)]=r(f);return u}case Py:return n(new Date(l),a);case Ry:{const{source:u,flags:c}=l;return n(new RegExp(u,c),a)}case Oy:{const u=n(new Map,a);for(const[c,f]of l)u.set(r(c),r(f));return u}case My:{const u=n(new Set,a);for(const c of l)u.add(r(c));return u}case _A:{const{name:u,message:c}=l;return n(new IE[u](c),a)}case TA:return n(BigInt(l),a);case"BigInt":return n(Object(BigInt(l)),a);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:u}=new Uint8Array(l);return n(new DataView(u),l)}}return n(new IE[i](l),a)};return r},LE=e=>QG(new Map,e)(0),hu="",{toString:XG}={},{keys:KG}=Object,n0=e=>{const t=typeof e;if(t!=="object"||!e)return[Xp,t];const n=XG.call(e).slice(8,-1);switch(n){case"Array":return[v0,hu];case"Object":return[Uh,hu];case"Date":return[Py,hu];case"RegExp":return[Ry,hu];case"Map":return[Oy,hu];case"Set":return[My,hu];case"DataView":return[v0,n]}return n.includes("Array")?[v0,n]:n.includes("Error")?[_A,n]:[Uh,n]},Kf=([e,t])=>e===Xp&&(t==="function"||t==="symbol"),WG=(e,t,n,r)=>{const a=(l,u)=>{const c=r.push(l)-1;return n.set(u,c),c},i=l=>{if(n.has(l))return n.get(l);let[u,c]=n0(l);switch(u){case Xp:{let g=l;switch(c){case"bigint":u=TA,g=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);g=null;break;case"undefined":return a([SA],l)}return a([u,g],l)}case v0:{if(c){let x=l;return c==="DataView"?x=new Uint8Array(l.buffer):c==="ArrayBuffer"&&(x=new Uint8Array(l)),a([c,[...x]],l)}const g=[],h=a([u,g],l);for(const x of l)g.push(i(x));return h}case Uh:{if(c)switch(c){case"BigInt":return a([c,l.toString()],l);case"Boolean":case"Number":case"String":return a([c,l.valueOf()],l)}if(t&&"toJSON"in l)return i(l.toJSON());const g=[],h=a([u,g],l);for(const x of KG(l))(e||!Kf(n0(l[x])))&&g.push([i(x),i(l[x])]);return h}case Py:return a([u,l.toISOString()],l);case Ry:{const{source:g,flags:h}=l;return a([u,{source:g,flags:h}],l)}case Oy:{const g=[],h=a([u,g],l);for(const[x,b]of l)(e||!(Kf(n0(x))||Kf(n0(b))))&&g.push([i(x),i(b)]);return h}case My:{const g=[],h=a([u,g],l);for(const x of l)(e||!Kf(n0(x)))&&g.push(i(x));return h}}const{message:f}=l;return a([u,{name:c,message:f}],l)};return i},jE=(e,{json:t,lossy:n}={})=>{const r=[];return WG(!(t||n),!!t,new Map,r)(e),r},Bu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?LE(jE(e,t)):structuredClone(e):(e,t)=>LE(jE(e,t));function ZG(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function JG(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}
vendor: 5,814 bytes, lines 419-425
419function eY(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||ZG,r=e.options.footnoteBackLabel||JG,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let c=-1;for(;++c<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[c]);if(!f)continue;const g=e.all(f),h=String(f.identifier).toUpperCase(),x=Xu(h.toLowerCase());let b=0;const E=[],_=e.footnoteCounts.get(h);for(;_!==void 0&&++b<=_;){E.length>0&&E.push({type:"text",value:" "});let N=typeof n=="string"?n:n(c,b);typeof N=="string"&&(N={type:"text",value:N}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+x+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,b),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const C=g[g.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const N=C.children[C.children.length-1];N&&N.type==="text"?N.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...E)}else g.push(...E);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+x},children:e.wrap(g,!0)};e.patch(f,w),u.push(w)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Bu(l),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
420`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
421`}]}}const cd=(function(e){if(e==null)return aY;if(typeof e=="function")return Kp(e);if(typeof e=="object")return Array.isArray(e)?tY(e):nY(e);if(typeof e=="string")return rY(e);throw new Error("Expected function, string, or object as test")});function tY(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=cd(e[n]);return Kp(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function nY(e){const t=e;return Kp(n);function n(r){const a=r;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function rY(e){return Kp(t);function t(n){return n&&n.type===e}}function Kp(e){return t;function t(n,r,a){return!!(sY(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function aY(){return!0}function sY(e){return e!==null&&typeof e=="object"&&"type"in e}const wA=[],c0=!0,Hx=!1,qh="skip";function Dy(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const i=cd(a),l=r?-1:1;u(e,void 0,[])();function u(c,f,g){const h=c&&typeof c=="object"?c:{};if(typeof h.type=="string"){const b=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(c.type+(b?"<"+b+">":""))+")"})}return x;function x(){let b=wA,E,_,C;if((!t||i(c,f,g[g.length-1]||void 0))&&(b=iY(n(c,g)),b[0]===Hx))return b;if("children"in c&&c.children){const w=c;if(w.children&&b[0]!==qh)for(_=(r?w.children.length:-1)+l,C=g.concat(w);_>-1&&_<w.children.length;){const N=w.children[_];if(E=u(N,_,C)(),E[0]===Hx)return E;_=typeof E[1]=="number"?E[1]:_+l}}return b}}}function iY(e){return Array.isArray(e)?e:typeof e=="number"?[c0,e]:e==null?wA:[e]}function io(e,t,n,r){let a,i,l;typeof t=="function"&&typeof n!="function"?(i=void 0,l=t,a=n):(i=t,l=n,a=r),Dy(e,i,u,a);function u(c,f){const g=f[f.length-1],h=g?g.children.indexOf(c):void 0;return l(c,h,g)}}const Ux={}.hasOwnProperty,lY={};function oY(e,t){const n=t||lY,r=new Map,a=new Map,i=new Map,l={...YG,...n.handlers},u={all:f,applyData:cY,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:l,one:c,options:n,patch:uY,wrap:fY};return io(e,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const h=g.type==="definition"?r:a,x=String(g.identifier).toUpperCase();h.has(x)||h.set(x,g)}}),u;function c(g,h){const x=g.type,b=u.handlers[x];if(Ux.call(u.handlers,x)&&b)return b(u,g,h);if(u.options.passThrough&&u.options.passThrough.includes(x)){if("children"in g){const{children:_,...C}=g,w=Bu(C);return w.children=u.all(g),w}return Bu(g)}return(u.options.unknownHandler||dY)(u,g,h)}function f(g){const h=[];if("children"in g){const x=g.children;let b=-1;for(;++b<x.length;){const E=u.one(x[b],g);if(E){if(b&&x[b-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=BE(E.value)),!Array.isArray(E)&&E.type==="element")){const _=E.children[0];_&&_.type==="text"&&(_.value=BE(_.value))}Array.isArray(E)?h.push(...E):h.push(E)}}}return h}}function uY(e,t){e.position&&(t.position=Jq(e))}function cY(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&i&&Object.assign(n.properties,Bu(i)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function dY(e,t){const n=t.data||{},r="value"in t&&!(Ux.call(n,"hProperties")||Ux.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function fY(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
422`});++r<e.length;)r&&n.push({type:"text",value:`
423`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
424`}),n}function BE(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function zE(e,t){const n=oY(e,t),r=n.one(e,void 0),a=eY(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
425`},a),i}function hY(e,t){return e&&"run"in e?async function(n,r){const a=zE(n,{file:r,...t});await e.run(a,r)}:function(n,r){return zE(n,{file:r,...e||t})}}function FE(e){if(e)throw e}var i2,HE;
vendor: 8,092 bytes, line 425
425function pY(){if(HE)return i2;HE=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},i=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var g=e.call(f,"constructor"),h=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!g&&!h)return!1;var x;for(x in f);return typeof x>"u"||e.call(f,x)},l=function(f,g){n&&g.name==="__proto__"?n(f,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):f[g.name]=g.newValue},u=function(f,g){if(g==="__proto__")if(e.call(f,g)){if(r)return r(f,g).value}else return;return f[g]};return i2=function c(){var f,g,h,x,b,E,_=arguments[0],C=1,w=arguments.length,N=!1;for(typeof _=="boolean"&&(N=_,_=arguments[1]||{},C=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});C<w;++C)if(f=arguments[C],f!=null)for(g in f)h=u(_,g),x=u(f,g),_!==x&&(N&&x&&(i(x)||(b=a(x)))?(b?(b=!1,E=h&&a(h)?h:[]):E=h&&i(h)?h:{},l(_,{name:g,newValue:c(N,E,x)})):typeof x<"u"&&l(_,{name:g,newValue:x}));return _},i2}var mY=pY();const l2=gp(mY);function qx(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function gY(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const l=a.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);u(null,...a);function u(c,...f){const g=e[++i];let h=-1;if(c){l(c);return}for(;++h<a.length;)(f[h]===null||f[h]===void 0)&&(f[h]=a[h]);a=f,g?xY(g,u)(...f):l(null,...f)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function xY(e,t){let n;return r;function r(...l){const u=e.length>l.length;let c;u&&l.push(a);try{c=e.apply(this,l)}catch(f){const g=f;if(u&&n)throw g;return a(g)}u||(c&&c.then&&typeof c.then=="function"?c.then(i,a):c instanceof Error?a(c):i(c))}function a(l,...u){n||(n=!0,t(l,...u))}function i(l){a(null,l)}}const hs={basename:bY,dirname:yY,extname:vY,join:EY,sep:"/"};function bY(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');dd(e);let n=0,r=-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){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,u=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else l<0&&(i=!0,l=a+1),u>-1&&(e.codePointAt(a)===t.codePointAt(u--)?u<0&&(r=a):(u=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function yY(e){if(dd(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function vY(e){dd(e);let t=e.length,n=-1,r=0,a=-1,i=0,l;for(;t--;){const u=e.codePointAt(t);if(u===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),u===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function EY(...e){let t=-1,n;for(;++t<e.length;)dd(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":SY(n)}function SY(e){dd(e);const t=e.codePointAt(0)===47;let n=_Y(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function _Y(e,t){let n="",r=0,a=-1,i=0,l=-1,u,c;for(;++l<=e.length;){if(l<e.length)u=e.codePointAt(l);else{if(u===47)break;u=47}if(u===47){if(!(a===l-1||i===1))if(a!==l-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),a=l,i=0;continue}}else if(n.length>0){n="",r=0,a=l,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),r=l-a-1;a=l,i=0}else u===46&&i>-1?i++:i=-1}return n}function dd(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const TY={cwd:wY};function wY(){return"/"}function $x(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function AY(e){if(typeof e=="string")e=new URL(e);else if(!$x(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 CY(e)}function CY(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const o2=["history","path","basename","stem","extname","dirname"];class AA{constructor(t){let n;t?$x(t)?n={path:t}:typeof t=="string"||kY(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":TY.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<o2.length;){const i=o2[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)o2.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?hs.basename(this.path):void 0}set basename(t){c2(t,"basename"),u2(t,"basename"),this.path=hs.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?hs.dirname(this.path):void 0}set dirname(t){UE(this.basename,"dirname"),this.path=hs.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?hs.extname(this.path):void 0}set extname(t){if(u2(t,"extname"),UE(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=hs.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){$x(t)&&(t=AY(t)),c2(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?hs.basename(this.path,this.extname):void 0}set stem(t){c2(t,"stem"),u2(t,"stem"),this.path=hs.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new wr(t,n,r);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 u2(e,t){if(e&&e.includes(hs.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+hs.sep+"`")}function c2(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function UE(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function kY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const NY=(function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,r),i}),PY={}.hasOwnProperty;class Iy extends NY{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=gY()}copy(){const t=new Iy;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(l2(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(h2("data",this.frozen),this.namespace[t]=n,this):PY.call(this.namespace,t)&&this.namespace[t]||void 0:t?(h2
vendor: 6,554 bytes, line 425
425("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Wf(t),r=this.parser||this.Parser;return d2("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),d2("process",this.parser||this.Parser),f2("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,l){const u=Wf(t),c=r.parse(u);r.run(c,u,function(g,h,x){if(g||!h||!x)return f(g);const b=h,E=r.stringify(b,x);MY(E)?x.value=E:x.result=E,f(g,x)});function f(g,h){g||!h?l(g):i?i(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),d2("processSync",this.parser||this.Parser),f2("processSync",this.compiler||this.Compiler),this.process(t,a),$E("processSync","process",n),r;function a(i,l){n=!0,FE(i),r=l}}run(t,n,r){qE(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(l,u){const c=Wf(n);a.run(t,c,f);function f(g,h,x){const b=h||t;g?u(g):l?l(b):r(void 0,b,x)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),$E("runSync","run",r),a;function i(l,u){FE(l),a=u,r=!0}}stringify(t,n){this.freeze();const r=Wf(n),a=this.compiler||this.Compiler;return f2("stringify",a),qE(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(h2("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(f){if(typeof f=="function")c(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[g,...h]=f;c(g,h)}else l(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function l(f){if(!("plugins"in f)&&!("settings"in f))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");u(f.plugins),f.settings&&(a.settings=l2(!0,a.settings,f.settings))}function u(f){let g=-1;if(f!=null)if(Array.isArray(f))for(;++g<f.length;){const h=f[g];i(h)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function c(f,g){let h=-1,x=-1;for(;++h<r.length;)if(r[h][0]===f){x=h;break}if(x===-1)r.push([f,...g]);else if(g.length>0){let[b,...E]=g;const _=r[x][1];qx(_)&&qx(b)&&(b=l2(!0,_,b)),r[x]=[f,b,...E]}}}}const RY=new Iy().freeze();function d2(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function f2(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function h2(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 qE(e){if(!qx(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function $E(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Wf(e){return OY(e)?e:new AA(e)}function OY(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function MY(e){return typeof e=="string"||DY(e)}function DY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const IY="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",VE=[],GE={allowDangerousHtml:!0},LY=/^(https?|ircs?|mailto|xmpp)$/i,jY=[{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 BY(e){const t=zY(e),n=FY(e);return HY(t.runSync(t.parse(n),n),e)}function zY(e){const t=e.rehypePlugins||VE,n=e.remarkPlugins||VE,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...GE}:GE;return RY().use(EG).use(n).use(hY,r).use(t)}function FY(e){const t=e.children||"",n=new AA;return typeof t=="string"&&(n.value=t),n}function HY(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,i=t.disallowedElements,l=t.skipHtml,u=t.unwrapDisallowed,c=t.urlTransform||UY;for(const g of jY)Object.hasOwn(t,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+IY+g.id,void 0);return io(e,f),a$(e,{Fragment:p.Fragment,components:a,ignoreInvalidStyle:!0,jsx:p.jsx,jsxs:p.jsxs,passKeys:!0,passNode:!0});function f(g,h,x){if(g.type==="raw"&&x&&typeof h=="number")return l?x.children.splice(h,1):x.children[h]={type:"text",value:g.value},h;if(g.type==="element"){let b;for(b in r2)if(Object.hasOwn(r2,b)&&Object.hasOwn(g.properties,b)){const E=g.properties[b],_=r2[b];(_===null||_.includes(g.tagName))&&(g.properties[b]=c(String(E||""),b,g))}}if(g.type==="element"){let b=n?!n.includes(g.tagName):i?i.includes(g.tagName):!1;if(!b&&r&&typeof h=="number"&&(b=!r(g,h,x)),b&&x&&typeof h=="number")return u&&g.children?x.children.splice(h,1,...g.children):x.children.splice(h,1),h}}}function UY(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||LY.test(e.slice(0,t))?e:""}const YE=/[#.]/g;function qY(e,t){const n=e||"",r={};let a=0,i,l;for(;a<n.length;){YE.lastIndex=a;const u=YE.exec(n),c=n.slice(a,u?u.index:n.length);c&&(i?i==="#"?r.id=c:Array.isArray(r.className)?r.className.push(c):r.className=[c]:l=c,a+=c.length),u&&(i=u[0],a++)}return{type:"element",tagName:l||t||"div",properties:r,children:[]}}
vendor: 10,802 bytes, lines 425-427
425function CA(e,t,n){const r=n?YY(n):void 0;function a(i,l,...u){let c;if(i==null){c={type:"root",children:[]};const f=l;u.unshift(f)}else{c=qY(i,t);const f=c.tagName.toLowerCase(),g=r?r.get(f):void 0;if(c.tagName=g||f,$Y(l))u.unshift(l);else for(const[h,x]of Object.entries(l))VY(e,c.properties,h,x)}for(const f of u)Vx(c.children,f);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return a}function $Y(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const l of i)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function VY(e,t,n,r){const a=Vp(e,n);let i;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;i=r}else typeof r=="boolean"?i=r:typeof r=="string"?a.spaceSeparated?i=pE(r):a.commaSeparated?i=uE(r):a.commaOrSpaceSeparated?i=pE(uE(r).join(" ")):i=QE(a,a.property,r):Array.isArray(r)?i=[...r]:i=a.property==="style"?GY(r):String(r);if(Array.isArray(i)){const l=[];for(const u of i)l.push(QE(a,a.property,u));i=l}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function Vx(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 n of t)Vx(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Vx(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function QE(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||F0(n)===F0(t)))return!0}return n}function GY(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function YY(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const QY=["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"],kA=CA(od,"div"),NA=CA(gl,"g",QY),Es={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 XY(e,t){return PA(e,{})||{type:"root",children:[]}}function PA(e,t){const n=KY(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function KY(e,t){switch(e.nodeType){case 1:return eQ(e,t);case 3:return ZY(e);case 8:return JY(e);case 9:return XE(e,t);case 10:return WY();case 11:return XE(e,t);default:return}}function XE(e,t){return{type:"root",children:RA(e,t)}}function WY(){return{type:"doctype"}}function ZY(e){return{type:"text",value:e.nodeValue||""}}function JY(e){return{type:"comment",value:e.nodeValue||""}}function eQ(e,t){const n=e.namespaceURI,r=n===Es.svg?NA:kA,a=n===Es.html?e.tagName.toLowerCase():e.tagName,i=n===Es.html&&a==="template"?e.content:e,l=e.getAttributeNames(),u={};let c=-1;for(;++c<l.length;)u[l[c]]=e.getAttribute(l[c])||"";return r(a,u,RA(i,t))}function RA(e,t){const n=e.childNodes,r=[];let a=-1;for(;++a<n.length;){const i=PA(n[a],t);i!==void 0&&r.push(i)}return r}new DOMParser;function tQ(e,t){const n=nQ(e);return XY(n)}function nQ(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const KE=(function(e,t,n){const r=cd(n);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(r(e.children[t],t,e))return e.children[t]}),po=(function(e){if(e==null)return sQ;if(typeof e=="string")return aQ(e);if(typeof e=="object")return rQ(e);if(typeof e=="function")return Ly(e);throw new Error("Expected function, string, or array as `test`")});function rQ(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=po(e[n]);return Ly(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function aQ(e){return Ly(t);function t(n){return n.tagName===e}}function Ly(e){return t;function t(n,r,a){return!!(iQ(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function sQ(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function iQ(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const WE=/\n/g,ZE=/[\t ]+/g,Gx=po("br"),JE=po(pQ),lQ=po("p"),e7=po("tr"),oQ=po(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",hQ,mQ]),OA=po(["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 uQ(e,t){const n=t||{},r="children"in e?e.children:[],a=OA(e),i=IA(e,{whitespace:n.whitespace||"normal"}),l=[];(e.type==="text"||e.type==="comment")&&l.push(...DA(e,{breakBefore:!0,breakAfter:!0}));let u=-1;for(;++u<r.length;)l.push(...MA(r[u],e,{whitespace:i,breakBefore:u?void 0:a,breakAfter:u<r.length-1?Gx(r[u+1]):a}));const c=[];let f;for(u=-1;++u<l.length;){const g=l[u];typeof g=="number"?f!==void 0&&g>f&&(f=g):g&&(f!==void 0&&f>-1&&c.push(`
426`.repeat(f)||" "),f=-1,c.push(g))}return c.join("")}function MA(e,t,n){return e.type==="element"?cQ(e,t,n):e.type==="text"?n.whitespace==="normal"?DA(e,n):dQ(e):[]}function cQ(e,t,n){const r=IA(e,n),a=e.children||[];let i=-1,l=[];if(oQ(e))return l;let u,c;for(Gx(e)||e7(e)&&KE(t,e,e7)?c=`
427`:lQ(e)?(u=2,c=2):OA(e)&&(u=1,c=1);++i<a.length;)l=l.concat(MA(a[i],e,{whitespace:r,breakBefore:i?void 0:u,breakAfter:i<a.length-1?Gx(a[i+1]):c}));return JE(e)&&KE(t,e,JE)&&l.push("	"),u&&l.unshift(u),c&&l.push(c),l}function DA(e,t){const n=String(e.value),r=[],a=[];let i=0;for(;i<=n.length;){WE.lastIndex=i;const c=WE.exec(n),f=c&&"index"in c?c.index:n.length;r.push(fQ(n.slice(i,f).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),i===0?t.breakBefore:!0,f===n.length?t.breakAfter:!0)),i=f+1}let l=-1,u;for(;++l<r.length;)r[l].charCodeAt(r[l].length-1)===8203||l<r.length-1&&r[l+1].charCodeAt(0)===8203?(a.push(r[l]),u=void 0):r[l]?(typeof u=="number"&&a.push(u),a.push(r[l]),u=0):(l===0||l===r.length-1)&&a.push(0);return a}function dQ(e){return[String(e.value)]}function fQ(e,t,n){const r=[];let a=0,i;for(;a<e.length;){ZE.lastIndex=a;const l=ZE.exec(e);i=l?l.index:e.length,!a&&!i&&l&&!t&&r.push(""),a!==i&&r.push(e.slice(a,i)),a=l?i+l[0].length:i}return a!==i&&!n&&r.push(""),r.join(" ")}function IA(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function hQ(e){return!!(e.properties||{}).hidden}function pQ(e){return e.tagName==="td"||e.tagName==="th"}function mQ(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class Wr{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new Wr(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class ma{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new ma(n,Wr.range(this,t))}}class Pe{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,a,i,l=n&&n.loc;if(l&&l.start<=l.end){var u=l.lexer.input;a=l.start,i=l.end,a===u.length?r+=" at end of input: ":r+=" at position "+(a+1)+": ";var c=u.slice(a,i).replace(/[^]/g,"$&̲"),f;a>15?f="…"+u.slice(a-15,a):f=u.slice(0,a);var g;i+15<u.length?g=u.slice(i,i+15)+"…":g=u.slice(i),r+=f+c+g}var h=new Error(r);return h.name="ParseError",h.__proto__=Pe.prototype,h.position=a,a!=null&&i!=null&&(h.length=i-a),h.rawMessage=t,h}}Pe.prototype.__proto__=Error.prototype;var gQ=function(t,n){return t===void 0?n:t},xQ=/([A-Z])/g,bQ=function(t){return t.replace(xQ,"-$1").toLowerCase()},yQ={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},vQ=/[&><"']/g;function EQ(e){return String(e).replace(vQ,t=>yQ[t])}var LA=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},SQ=function(t){var n=LA(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},_Q=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},TQ=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},zt={deflt:gQ,escape:EQ,hyphenate:bQ,getBaseElem:LA,isCharacterBox:SQ,protocolFromUrl:TQ},E0={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)=>
vendor: 4,516 bytes, line 427
427(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 wQ(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class jy{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 n in E0)if(E0.hasOwnProperty(n)){var r=E0[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:wQ(r)}}reportNonstrict(t,n,r){var a=this.strict;if(typeof a=="function"&&(a=a(t,n,r)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new Pe("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var a=this.strict;if(typeof a=="function")try{a=a(t,n,r)}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': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=zt.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class Gi{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return ms[AQ[this.id]]}sub(){return ms[CQ[this.id]]}fracNum(){return ms[kQ[this.id]]}fracDen(){return ms[NQ[this.id]]}cramp(){return ms[PQ[this.id]]}text(){return ms[RQ[this.id]]}isTight(){return this.size>=2}}var By=0,$h=1,ku=2,ii=3,U0=4,Da=5,zu=6,Mr=7,ms=[new Gi(By,0,!1),new Gi($h,0,!0),new Gi(ku,1,!1),new Gi(ii,1,!0),new Gi(U0,2,!1),new Gi(Da,2,!0),new Gi(zu,3,!1),new Gi(Mr,3,!0)],AQ=[U0,Da,U0,Da,zu,Mr,zu,Mr],CQ=[Da,Da,Da,Da,Mr,Mr,Mr,Mr],kQ=[ku,ii,U0,Da,zu,Mr,zu,Mr],NQ=[ii,ii,Da,Da,Mr,Mr,Mr,Mr],PQ=[$h,$h,ii,ii,Da,Da,Mr,Mr],RQ=[By,$h,ku,ii,ku,ii,ku,ii],We={DISPLAY:ms[By],TEXT:ms[ku],SCRIPT:ms[U0],SCRIPTSCRIPT:ms[zu]},Yx=[{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 OQ(e){for(var t=0;t<Yx.length;t++)for(var n=Yx[t],r=0;r<n.blocks.length;r++){var a=n.blocks[r];if(e>=a[0]&&e<=a[1])return n.name}return null}var Th=[];
vendor: 4,398 bytes, lines 427-478
427Yx.forEach(e=>e.blocks.forEach(t=>Th.push(...t)));function jA(e){for(var t=0;t<Th.length;t+=2)if(e>=Th[t]&&e<=Th[t+1])return!0;return!1}var pu=80,MQ=function(t,n){return"M95,"+(622+t+n)+`
428c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
429c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
430c44.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
431s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
432c69,-144,104.5,-217.7,106.5,-221
433l`+t/2.075+" -"+t+`
434c5.3,-9.3,12,-14,20,-14
435H400000v`+(40+t)+`H845.2724
436s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
437c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
438M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},DQ=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119
439c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
440c340,-704.7,510.7,-1060.3,512,-1067
441l`+t/2.084+" -"+t+`
442c4.7,-7.3,11,-11,19,-11
443H40000v`+(40+t)+`H1012.3
444s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
445c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
446s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
447c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
448M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},IQ=function(t,n){return"M983 "+(10+t+n)+`
449l`+t/3.13+" -"+t+`
450c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
451H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
452s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
453c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
454c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
455c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
456c53.7,-170.3,84.5,-266.8,92.5,-289.5z
457M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},LQ=function(t,n){return"M424,"+(2398+t+n)+`
458c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
459c0,-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
460s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
461s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
462l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
463v`+(40+t)+`H1014.6
464s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
465c-2,6,-10,9,-24,9
466c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+`
467h400000v`+(40+t)+"h-400000z"},jQ=function(t,n){return"M473,"+(2713+t+n)+`
468c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
469c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
470s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
471c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
472c0,-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
473s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
474606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},BQ=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},zQ=function(t,n,r){var a=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+`
475H742v`+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
476h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
477c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
478219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},FQ=function(t,n,r){n=1e3*n;var a="";switch(t){case"sqrtMain":a=MQ(n,pu);break;case"sqrtSize1":a=DQ(n,pu);break;case"sqrtSize2":a=IQ(n,pu);break;case"sqrtSize3":a=LQ(n,pu);break;case"sqrtSize4":a=jQ(n,pu);break;case"sqrtTall":a=zQ(n,pu,r)}return a},HQ=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},t7
vendor: 15,381 bytes, lines 478-653
478={doubleleftarrow:`M262 157
479l10-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
480 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
481 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
482c2 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
483 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
484-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
485-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
486m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
487-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
488 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
489-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
490-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
491-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
492c-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
493-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
494 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
495-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
496c-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
497 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
498 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
499 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
500-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
501 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
502 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
503 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
504-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
505H435C64 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
506 435 0h399565z`,leftgroupunder:`M400000 262
507H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
508 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
509-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
510-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
511-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
512 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
513-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
514-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
515m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
516 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
517 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
518-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
519 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
520-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
521v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
522-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
523-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
524 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
525M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
526M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
527-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
528c28.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
529 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
530M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
531c-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
532-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
533 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
534 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
535c100.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
536 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
537 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
538-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
539-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
540m368.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
54160.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
542-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
543m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
544c0 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
545-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
546m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
54785.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
548-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
549m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
550c0 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
551-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
552 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
553 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
554-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
555-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
556 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
557-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
558s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
559c124.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
560 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
561-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
562 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
563 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
564-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
565-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
566 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
567-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
568 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
569m0 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
570 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
571-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
572-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
573 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
574 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
575-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
576m0-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
577 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
578-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
579 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
580M399960 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
581 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
582-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
583-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
584 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
585-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
586-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
587-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
588 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
589c-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
590 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
591 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
592-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
593 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
594-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
595 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
596 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
597-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
598-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
599 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
600c1 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
601 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
602-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
603 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
604 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
605 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
606-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
607 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
608 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
609 -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
6103.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
61110.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
612-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
613-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
614H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
615c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
616c-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
617-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
618-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
619-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,
620-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,
621-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,
622-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,
623-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
624c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
625c-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
626s-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
627121.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
628s2.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
629c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
630M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
631-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
63213.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
633-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
634-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
635-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
636151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
637c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
638c2,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
639c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
640c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
641M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
642c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
643-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
644c-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
645M0 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
646c1.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,
6471c0,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,
648-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
649M93 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
650c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
651-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
652c-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
653M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
vendor: 3,205 bytes, lines 653-681
653UQ=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84
654H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z
655M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
656c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
657c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
658c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
659c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
660M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
661c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
662c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z
663MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
664MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
665M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
666M347 1759 V0 h-84 V1759 v`+n+" 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
667c-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,
668-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
669949.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
670c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
671-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
672l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
673-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,
67463,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
675c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
676c-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
677c-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
678c0,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
679c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
680l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
681-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 fd=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(),n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){for(var t="",n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t}toText(){var t=n=>n.toText();return this.children.map(t).join("")}};var Ss
vendor: 57,629 bytes, line 681
681={"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,744 bytes, line 681
681Zf={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]},n7={Å:"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 BA(e,t){Ss[e]=t}function zy(e,t,n){if(!Ss[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),a=Ss[t][r];if(!a&&e[0]in n7&&(r=n7[e[0]].charCodeAt(0),a=Ss[t][r]),!a&&n==="text"&&jA(r)&&(a=Ss[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var p2={};function qQ(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!p2[t]){var n=p2[t]={cssEmPerMu:Zf.quad[t]/18};for(var r in Zf)Zf.hasOwnProperty(r)&&(n[r]=Zf[r][t])}return p2[t]}var $Q=[[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]],r7=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],a7=function(t,n){return n.size<2?t:$Q[t-1][n.size-1]};class ti{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||ti.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=r7[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,ph
vendor: 12,692 bytes, line 681
681antom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new ti(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:a7(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:r7[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=a7(ti.BASESIZE,t);return this.size===n&&this.textSize===ti.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}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!==ti.BASESIZE?["sizing","reset-size"+this.size,"size"+ti.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=qQ(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}ti.BASESIZE=6;var Qx={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},VQ={ex:!0,em:!0,mu:!0},zA=function(t){return typeof t!="string"&&(t=t.unit),t in Qx||t in VQ||t==="ex"},xn=function(t,n){var r;if(t.unit in Qx)r=Qx[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var a;if(n.style.isTight()?a=n.havingStyle(n.style.text()):a=n,t.unit==="ex")r=a.fontMetrics().xHeight;else if(t.unit==="em")r=a.fontMetrics().quad;else throw new Pe("Invalid unit: '"+t.unit+"'");a!==n&&(r*=a.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},je=function(t){return+t.toFixed(4)+"em"},cl=function(t){return t.filter(n=>n).join(" ")},FA=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var a=n.getColor();a&&(this.style.color=a)}},HA=function(t){var n=document.createElement(t);n.className=cl(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&n.setAttribute(a,this.attributes[a]);for(var i=0;i<this.children.length;i++)n.appendChild(this.children[i].toNode());return n},GQ=/[\s"'>/=\x00-\x1f]/,UA=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+zt.escape(cl(this.classes))+'"');var r="";for(var a in this.style)this.style.hasOwnProperty(a)&&(r+=zt.hyphenate(a)+":"+this.style[a]+";");r&&(n+=' style="'+zt.escape(r)+'"');for(var i in this.attributes)if(this.attributes.hasOwnProperty(i)){if(GQ.test(i))throw new Pe("Invalid attribute name '"+i+"'");n+=" "+i+'="'+zt.escape(this.attributes[i])+'"'}n+=">";for(var l=0;l<this.children.length;l++)n+=this.children[l].toMarkup();return n+="</"+t+">",n};class hd{constructor(t,n,r,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,FA.call(this,t,r,a),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return HA.call(this,"span")}toMarkup(){return UA.call(this,"span")}}class Fy{constructor(t,n,r,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,FA.call(this,n,a),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return HA.call(this,"a")}toMarkup(){return UA.call(this,"a")}}class YQ{constructor(t,n,r){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=n,this.src=t,this.classes=["mord"],this.style=r}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 n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t='<img src="'+zt.escape(this.src)+'"'+(' alt="'+zt.escape(this.alt)+'"'),n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=zt.hyphenate(r)+":"+this.style[r]+";");return n&&(t+=' style="'+zt.escape(n)+'"'),t+="'/>",t}}var QQ={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class La{constructor(t,n,r,a,i,l,u,c){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=n||0,this.depth=r||0,this.italic=a||0,this.skew=i||0,this.width=l||0,this.classes=u||[],this.style=c||{},this.maxFontSize=0;var f=OQ(this.text.charCodeAt(0));f&&this.classes.push(f+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=QQ[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=je(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=cl(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=zt.escape(cl(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+this.italic+"em;");for(var a in this.style)this.style.hasOwnProperty(a)&&(r+=zt.hyphenate(a)+":"+this.style[a]+";");r&&(t=!0,n+=' style="'+zt.escape(r)+'"');var i=zt.escape(this.text);return t?(n+=">",n+=i,n+="</span>",n):i}}class fi{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var a=0;a<this.children.length;a++)n.appendChild(this.children[a].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+zt.escape(this.attributes[n])+'"');t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</svg>",t}}class dl{constructor(t,n){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=n}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",t7[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+zt.escape(this.alternate)+'"/>':'<path d="'+zt.escape(t7[this.pathName])+'"/>'}}class Xx{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t="<line";for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+zt.escape(this.attributes[n])+'"');return t+="/>",t}}function s7(e){if(e instanceof La)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function XQ(e){if(e instanceof hd)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var KQ={bin:1,close:1,inner:1,open:1,punct:1,rel:1},WQ={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},sn={math:{},text:{}};function T(e,t,n,r,a,i){sn[e][a]={font:t,group:n,replace:r},i&&r&&(sn[e][r]=sn[e][a])}var k="math",we="text",O="main",Q="ams",fn="accent-token",Fe="bin",Ir="close",Ku="inner",Ke="mathord",Vn="op-token",ga="open",Wp="punct",X="rel",xi="spacing",se="textord";T(k,O,X,"≡","\\equiv",!0);T(k,O,X,"≺","\\prec",!0);T(k,O,X,"≻","\\succ",!0);T(k,O,X,"∼","\\sim",!0);T(k,O,X,"⊥","\\perp");T(k,O,X,"⪯","\\preceq",!0);T(k,O,X,"⪰","\\succeq",!0);T(k,O,X,"≃","\\simeq",!0);T(k,O,X,"∣","\\mid",!0);T(k,O,X,"≪","\\ll",!0);T(k,O,X,"≫","\\gg",!0);T(k,O,X,"≍","\\asymp",!0);T(k,O,X,"∥","\\parallel");T(k,O,X,"⋈","\\bowtie",!0);T(k,O,X,"⌣","\\smile",!0);T(k,O,X,"⊑","\\sqsubseteq",!0);T(k,O,X,"⊒","\\sqsupseteq",!0);T(k,O,X,"≐","\\doteq",!0);T(k,O,X,"⌢","\\frown",!0);T(k,O,X,"∋","\\ni",!0);T(k,O,X,"∝","\\propto",!0);T(k,O,X,"⊢","\\vdash",!0);T(k,O,X,"⊣","\\dashv",!0);T(k,O,X,"∋","\\owns");T(k,O,Wp,".","\\ldotp");T(k,O,Wp,"⋅","\\cdotp");T(k,O,se,"#","\\#");T(we,O,se,"#","\\#");T(k,O,se,"&","\\&");T(we,O,se,"&","\\&");T(k,O,se,"ℵ","\\aleph",!0);T(k,O,se,"∀","\\forall",!0);T(k,O,se,"ℏ","\\hbar",!0);T(k,O,se,"∃","\\exists",!0);T(k,O,se,"∇","\\nabla",!0);T(k,O,se,"♭","\\flat",!0);T(k,O,se,"ℓ","\\ell",!0);T(k,O,se,"♮","\\natural",!0);T(k,O,se,"♣","\\clubsuit",!0);T(k,O,se,"℘","\\wp",!0);T(k,O,se,"♯","\\sharp",!0);T(k,O,se,"♢","\\diamondsuit",!0);T(k,O,se,"ℜ","\\Re",!0);T(k,O,se,"♡","\\heartsuit",!0);T(k,O,se,"ℑ","\\Im",!0);T(k,O,se,"♠","\\spadesuit",!0);T(k,O,se,"§","\\S",!0);T(we,O,se,"§","\\S");T(k,O,se,"¶","\\P",!0);T(we,O,se,"¶","\\P");T(k,O,se,"†","\\dag");T(we,O,se,"†","\\dag");T(we,O,se,"†","\\textdagger");T(k,O,se,"‡","\\ddag");T(we,O,se,"‡","\\ddag");T(we,O,se,"‡","\\textdaggerdbl");T(k,O,Ir,"⎱","\\rmoustache",!0);T(k,O,ga,"⎰","\\lmoustache",!0);T(k,O,Ir,"⟯","\\rgroup",!0);T(k,O,ga,"⟮","\\lgroup",!0);T(k,O,Fe,"∓","\\mp",!0);T(k,O,Fe,"⊖","\\ominus",!0);T(k,O,Fe,"⊎","\\uplus",!0);T(k,O,Fe,"⊓","\\sqcap",!0);T(k,O,Fe,"∗","\\ast");T(k,O,Fe,"⊔","\\sqcup",!0);T(k,O,Fe,"◯","\\bigcirc",!0);T(k,O,Fe,"∙","\\bullet",!0);T(k,O,Fe,"‡","\\ddagger");T(k,O,Fe,"≀","\\wr",!0);T(k,O,Fe,"⨿","\\amalg");T(k,O,Fe,"&","\\And");T(k,O,X,"⟵","\\longleftarrow",!0);T(k,O,X,"⇐","\\Leftarrow",!0);T(k,O,X,"⟸","\\Longleftarrow",!0);T(k,O,X,"⟶","\\longrightarrow",!0);T(k,O,X,"⇒","\\Rightarrow",!0);T(k,O,X,"⟹","\\Longrightarrow",!0);T(k,O,X,"↔","\\leftrightarrow",!0);T(k,O,X,"⟷","\\longleftrightarrow",!0);T(k,O,X,"⇔","\\Leftrightarrow",!0);T(k,O,X,"⟺","\\Longleftrightarrow",!0);T(k,O,X,"↦","\\mapsto",!0);T(k,O,X,"⟼","\\longmapsto",!0);T(k,O,X,"↗","\\nearrow",!0);T(k,O,X,"↩","\\hookleftarrow",!0);T(k,O,X,"↪","\\hookrightarrow",!0);T(k,O,X,"↘","\\searrow",!0);T(k,O,X,"↼","\\leftharpoonup",!0);T(k,O,X,"⇀","\\rightharpoonup",!0);T(k,O,X,"↙","\\swarrow",!0);T(k,O,X,"↽","\\leftharpoondown",!0);T(k,O,X,"⇁","\\rightharpoondown",!0);T(k,O,X,"↖","\\nwarrow",!0);T(k,O,X,"⇌","\\rightleftharpoons",!0);T(k,Q,X,"≮","\\nless",!0);T(k,Q,X,"","\\@nleqslant");T(k,Q,X,"","\\@nleqq");T(k,Q,X,"⪇","\\lneq",!0);T(k,Q,X,"≨","\\lneqq",!0);T(k,Q,X,"","\\@lvertneqq");T(k,Q,X,"⋦","\\lnsim",!0);T(k,Q,X,"⪉","\\lnapprox",!0);T(k,Q,X,"⊀","\\nprec",!0);T(k,Q,X,"⋠","\\npreceq",!0);T(k,Q,X,"⋨","\\precnsim",!0);T(k,Q,X,"⪹","\\precnapprox",!0);T(k,Q,X,"≁","\\nsim",!0);T(k,Q,X,"","\\@nshortmid");T(k,Q,X,"∤","\\nmid",!0);T(k,Q,X,"⊬","\\nvdash",!0);T(k,Q,X,"⊭","\\nvDash",!0);T(k,Q,X,"⋪","\\ntriangleleft");T(k,Q,X,"⋬","\\ntrianglelefteq",!0);T(k,Q,X,"⊊","\\subsetneq",!0);T(k,Q,X,"","\\@varsubsetneq");T(k,Q,X,"⫋","\\subsetneqq",!0);T(k,Q,X,"","\\@varsubsetneqq");T(k,Q,X,"≯","\\ngtr",!0);T(k,Q,X,"","\\@ngeqslant");T(k,Q,X,"","\\@ngeqq");T(k,Q,X,"⪈","\\gneq",!0);T(k,Q,X,"≩","\\gneqq",!0);T(k,Q,X,"","\\@gvertneqq");T(k,Q,X,"⋧","\\gnsim",!0);T(k,Q,X,"⪊","\\gnapprox",!0);T(k,Q,X,"⊁","\\nsucc",!0);T(k,Q,X,"⋡","\\nsucceq",!0);T(k,Q,X,"⋩","\\succnsim",!0);T(k,Q,X,"⪺","\\succnapprox",!0);T(k,Q,X,"≆","\\ncong",!0);T(k,Q,X,"","\\@nshortparallel");T(k,Q,X,"∦","\\nparallel",!0);T(k,Q,X,"⊯","\\nVDash",!0);T(k,Q,X,"⋫","\\ntriangleright");T(k,Q,X,"⋭","\\ntrianglerighteq",!0);T(k,Q,X,"","\\@nsupseteqq");T(k,Q,X,"⊋","\\supsetneq",!0);T(k,Q,X,"","\\@varsupsetneq");T(k,Q,X,"⫌","\\supsetneqq",!0);T(k,Q,X,"","\\@varsupsetneqq");T(k,Q,X,"⊮","\\nVdash",!0);T(k,Q,X,"⪵","\\precneqq",!0);T(k,Q,X,"⪶","\\succneqq",!0);
681T(k,Q,X,"","\\@nsubseteqq");T(k,Q,Fe,"⊴","\\unlhd");T(k,Q,Fe,"⊵","\\unrhd");T(k,Q,X,"↚","\\nleftarrow",!0);T(k,Q,X,"↛","\\nrightarrow",!0);T(k,Q,X,"⇍","\\nLeftarrow",!0);T(k,Q,X,"⇏","\\nRightarrow",!0);T(k,Q,X,"↮","\\nleftrightarrow",!0);T(k,Q,X,"⇎","\\nLeftrightarrow",!0);T(k,Q,X,"△","\\vartriangle");T(k,Q,se,"ℏ","\\hslash");T(k,Q,se,"▽","\\triangledown");T(k,Q,se,"◊","\\lozenge");T(k,Q,se,"Ⓢ","\\circledS");T(k,Q,se,"®","\\circledR");T(we,Q,se,"®","\\circledR");T(k,Q,se,"∡","\\measuredangle",!0);T(k,Q,se,"∄","\\nexists");T(k,Q,se,"℧","\\mho");T(k,Q,se,"Ⅎ","\\Finv",!0);T(k,Q,se,"⅁","\\Game",!0);T(k,Q,se,"‵","\\backprime");T(k,Q,se,"▲","\\blacktriangle");T(k,Q,se,"▼","\\blacktriangledown");T(k,Q,se,"■","\\blacksquare");T(k,Q,se,"⧫","\\blacklozenge");T(k,Q,se,"★","\\bigstar");T(k,Q,se,"∢","\\sphericalangle",!0);T(k,Q,se,"∁","\\complement",!0);T(k,Q,se,"ð","\\eth",!0);T(we,O,se,"ð","ð");T(k,Q,se,"╱","\\diagup");T(k,Q,se,"╲","\\diagdown");T(k,Q,se,"□","\\square");T(k,Q,se,"□","\\Box");T(k,Q,se,"◊","\\Diamond");T(k,Q,se,"¥","\\yen",!0);T(we,Q,se,"¥","\\yen",!0);T(k,Q,se,"✓","\\checkmark",!0);T(we,Q,se,"✓","\\checkmark");T(k,Q,se,"ℶ","\\beth",!0);T(k,Q,se,"ℸ","\\daleth",!0);T(k,Q,se,"ℷ","\\gimel",!0);T(k,Q,se,"ϝ","\\digamma",!0);T(k,Q,se,"ϰ","\\varkappa");T(k,Q,ga,"┌","\\@ulcorner",!0);T(k,Q,Ir,"┐","\\@urcorner",!0);T(k,Q,ga,"└","\\@llcorner",!0);T(k,Q,Ir,"┘","\\@lrcorner",!0);T(k,Q,X,"≦","\\leqq",!0);T(k,Q,X,"⩽","\\leqslant",!0);T(k,Q,X,"⪕","\\eqslantless",!0);T(k,Q,X,"≲","\\lesssim",!0);T(k,Q,X,"⪅","\\lessapprox",!0);T(k,Q,X,"≊","\\approxeq",!0);T(k,Q,Fe,"⋖","\\lessdot");T(k,Q,X,"⋘","\\lll",!0);T(k,Q,X,"≶","\\lessgtr",!0);T(k,Q,X,"⋚","\\lesseqgtr",!0);T(k,Q,X,"⪋","\\lesseqqgtr",!0);T(k,Q,X,"≑","\\doteqdot");T(k,Q,X,"≓","\\risingdotseq",!0);T(k,Q,X,"≒","\\fallingdotseq",!0);T(k,Q,X,"∽","\\backsim",!0);T(k,Q,X,"⋍","\\backsimeq",!0);T(k,Q,X,"⫅","\\subseteqq",!0);T(k,Q,X,"⋐","\\Subset",!0);T(k,Q,X,"⊏","\\sqsubset",!0);T(k,Q,X,"≼","\\preccurlyeq",!0);T(k,Q,X,"⋞","\\curlyeqprec",!0);T(k,Q,X,"≾","\\precsim",!0);T(k,Q,X,"⪷","\\precapprox",!0);T(k,Q,X,"⊲","\\vartriangleleft");T(k,Q,X,"⊴","\\trianglelefteq");T(k,Q,X,"⊨","\\vDash",!0);T(k,Q,X,"⊪","\\Vvdash",!0);T(k,Q,X,"⌣","\\smallsmile");T(k,Q,X,"⌢","\\smallfrown");T(k,Q,X,"≏","\\bumpeq",!0);T(k,Q,X,"≎","\\Bumpeq",!0);T(k,Q,X,"≧","\\geqq",!0);T(k,Q,X,"⩾","\\geqslant",!0);T(k,Q,X,"⪖","\\eqslantgtr",!0);T(k,Q,X,"≳","\\gtrsim",!0);T(k,Q,X,"⪆","\\gtrapprox",!0);T(k,Q,Fe,"⋗","\\gtrdot");T(k,Q,X,"⋙","\\ggg",!0);T(k,Q,X,"≷","\\gtrless",!0);T(k,Q,X,"⋛","\\gtreqless",!0);T(k,Q,X,"⪌","\\gtreqqless",!0);T(k,Q,X,"≖","\\eqcirc",!0);T(k,Q,X,"≗","\\circeq",!0);T(k,Q,X,"≜","\\triangleq",!0);T(k,Q,X,"∼","\\thicksim");T(k,Q,X,"≈","\\thickapprox");T(k,Q,X,"⫆","\\supseteqq",!0);T(k,Q,X,"⋑","\\Supset",!0);T(k,Q,X,"⊐","\\sqsupset",!0);T(k,Q,X,"≽","\\succcurlyeq",!0);T(k,Q,X,"⋟","\\curlyeqsucc",!0);T(k,Q,X,"≿","\\succsim",!0);T(k,Q,X,"⪸","\\succapprox",!0);T(k,Q,X,"⊳","\\vartriangleright");T(k,Q,X,"⊵","\\trianglerighteq");T(k,Q,X,"⊩","\\Vdash",!0);T(k,Q,X,"∣","\\shortmid");T(k,Q,X,"∥","\\shortparallel");T(k,Q,X,"≬","\\between",!0);T(k,Q,X,"⋔","\\pitchfork",!0);T(k,Q,X,"∝","\\varpropto");T(k,Q,X,"◀","\\blacktriangleleft");T(k,Q,X,"∴","\\therefore",!0);T(k,Q,X,"∍","\\backepsilon");T(k,Q,X,"▶","\\blacktriangleright");T(k,Q,X,"∵","\\because",!0);T(k,Q,X,"⋘","\\llless");T(k,Q,X,"⋙","\\gggtr");T(k,Q,Fe,"⊲","\\lhd");T(k,Q,Fe,"⊳","\\rhd");T(k,Q,X,"≂","\\eqsim",!0);T(k,O,X,"⋈","\\Join");T(k,Q,X,"≑","\\Doteq",!0);T(k,Q,Fe,"∔","\\dotplus",!0);T(k,Q,Fe,"∖","\\smallsetminus");T(k,Q,Fe,"⋒","\\Cap",!0);T(k,Q,Fe,"⋓","\\Cup",!0);T(k,Q,Fe,"⩞","\\doublebarwedge",!0);T(k,Q,Fe,"⊟","\\boxminus",!0);T(k,Q,Fe,"⊞","\\boxplus",!0);T(k,Q,Fe,"⋇","\\divideontimes",!0);T(k,Q,Fe,"⋉","\\ltimes",!0);T(k,Q,Fe,"⋊","\\rtimes",!0);T(k,Q,Fe,"⋋","\\leftthreetimes",!0);T(k,Q,Fe,"⋌","\\rightthreetimes",!0);T(k,Q,Fe,"⋏","\\curlywedge",!0);T(k,Q,Fe,"⋎","\\curlyvee",!0);T(k,Q,Fe,"⊝","\\circleddash",!0);T(k,Q,Fe,"⊛","\\circledast",!0);T(k,Q,Fe,"⋅","\\centerdot");T(k,Q,Fe,"⊺","\\intercal",!0);T(k,Q,Fe,"⋒","\\doublecap");T(k,Q,Fe,"⋓","\\doublecup");T(k,Q,Fe,"⊠","\\boxtimes",!0);T(k,Q,X,"⇢","\\dashrightarrow",!0);T(k,Q,X,"⇠","\\dashleftarrow",!0);T(k,Q,X,"⇇","\\leftleftarrows",!0);T(k,Q,X,"⇆","\\leftrightarrows",!0);T(k,Q,X,"⇚","\\Lleftarrow",!0);T(k,Q,X,"↞","\\twoheadleftarrow",!0);T(k,Q,X,"↢","\\leftarrowtail",!0);T(k,Q,X,"↫","\\looparrowleft",!0);T(k,Q,X,"⇋","\\leftrightharpoons",!0);T(k,Q,X,"↶","\\curvearrowleft",!0);T(k,Q,X,"↺","\\circlearrowleft",!0);T(k,Q,X,"↰","\\Lsh",!0);T(k,Q,X,"⇈","\\upuparrows",!0);T(k,Q,X,"↿","\\upharpoonleft",!0);T(k,Q,X,"⇃","\\downharpoonleft",!0);T(k,O,X,"⊶","\\origof",!0);T(k,O,X,"⊷","\\imageof",!0);T(k,Q,X,"⊸","\\multimap",!0);T(k,Q,X,"↭","\\leftrightsquigarrow",!0);T(k,Q,X,"⇉","\\rightrightarrows",!0);T(k,Q,X,"⇄","\\rightleftarrows",!0);T(k,Q,X,"↠","\\twoheadrightarrow",!0);T(k,Q,X,"↣","\\rightarrowtail",!0);T(k,Q,X,"↬","\\looparrowright",!0);T(k,Q,X,"↷","\\curvearrowright",!0);T(k,Q,X,"↻","\\circlearrowright",!0);T(k,Q,X,"↱","\\Rsh",!0);T(k,Q,X,"⇊","\\downdownarrows",!0);T(k,Q,X,"↾","\\upharpoonright",!0);T(k,Q,X,"⇂","\\downharpoonright",!0);T(k,Q,X,"⇝","\\rightsquigarrow",!0);T(k,Q,X,"⇝","\\leadsto");T(k,Q,X,"⇛","\\Rrightarrow",!0);T(k,Q,X,"↾","\\restriction");T(k,O,se,"‘","`");T(k,O,se,"$","\\$");T(we,O,se,"$","\\$");T(we,O,se,"$","\\textdollar");T(k,O,se,"%","\\%");T(we,O,se,"%","\\%");T(k,O,se,"_","\\_");T(we,O,se,"_","\\_");T(we,O,se,"_","\\textunderscore");T(k,O,se,"∠","\\angle",!0);T(k,O,se,"∞","\\infty",!0);T(k,O,se,"′","\\prime");T(k,O,se,"△","\\triangle");T(k,O,se,"Γ","\\Gamma",!0);T(k,O,se,"Δ","\\Delta",!0);T(k,O,se,"Θ","\\Theta",!0);T(k,O,se,"Λ","\\Lambda",!0);T(k,O,se,"Ξ","\\Xi",!0);T(k,O,se,"Π","\\Pi",!0);T(k,O,se,"Σ","\\Sigma",!0);T(k,O,se,"Υ","\\Upsilon",!0);T(k,O,se,"Φ","\\Phi",!0);T(k,O,se,"Ψ","\\Psi",!0);T(k,O,se,"Ω","\\Omega",!0);T(k,O,se,"A","Α");T(k,O,se,"B","Β");T(k,O,se,"E","Ε");T(k,O,se,"Z","Ζ");T(k,O,se,"H","Η");T(k,O,se,"I","Ι");T(k,O,se,"K","Κ");T(k,O,se,"M","Μ");T(k,O,se,"N","Ν");T(k,O,se,"O","Ο");T(k,O,se,"P","Ρ");T(k,O,se,"T","Τ");T(k,O,se,"X","Χ");T(k,O,se,"¬","\\neg",!0);T(k,O,se,"¬","\\lnot");T(k,O,se,"⊤","\\top");T(k,O,se,"⊥","\\bot");T(k,O,se,"∅","\\emptyset");T(k,Q,se,"∅","\\varnothing");T(k,O,Ke,"α","\\alpha",!0);T(k,O,Ke,"β","\\beta",!0);T(k,O,Ke,"γ","\\gamma",!0);T(k,O,Ke,"δ","\\delta",!0);T(k,O,Ke,"ϵ","\\epsilon",!0);T(k,O,Ke,"ζ","\\zeta",!0);T(k,O,Ke,"η","\\eta",!0);T(k,O,Ke,"θ","\\theta",!0);T(k,O,Ke,"ι","\\iota",!0);T(k,O,Ke,"κ","\\kappa",!0);T(k,O,Ke,"λ","\\lambda",!0);T(k,O,Ke,"μ","\\mu",!0);T(k,O,Ke,"ν","\\nu",!0);T(k,O,Ke,"ξ","\\xi",!0);T(k,O,Ke,"ο","\\omicron",!0);T(k,O,Ke,"π","\\pi",!0);T(k,O,Ke,"ρ","\\rho",!0);T(k,O,Ke,"σ","\\sigma",!0);T(k,O,Ke,"τ","\\tau",!0);T(k,O,Ke,"υ","\\upsilon",!0);T(k,O,Ke,"ϕ","\\phi",!0);T(k,O,Ke,"χ","\\chi",!0);T(k,O,Ke,"ψ","\\psi",!0);T(k,O,Ke,"ω","\\omega",!0);T(k,O,Ke,"ε","\\varepsilon",!0);T(k,O,Ke,"ϑ","\\vartheta",!0);T(k,O,Ke,"ϖ","\\varpi",!0);T(k,O,Ke,"ϱ","\\varrho",!0);T(k,O,Ke,"ς","\\varsigma",!0);T(k,O,Ke,"φ","\\varphi",!0);T(k,O,Fe,"∗","*",!0);T(k,O,Fe,"+","+");T(k,O,Fe,"−","-",!0);T(k,O,Fe,"⋅","\\cdot",!0);T(k,O,Fe,"∘","\\circ",!0);T(k,O,Fe,"÷","\\div",!0);T(k,O,Fe,"±","\\pm",!0);T(k,O,Fe,"×","\\times",!0);T(k,O,Fe,"∩","\\cap",!0);T(k,O,Fe,"∪","\\cup",!0);T(k,O,Fe,"∖","\\setminus",!0);T(k,O,Fe,"∧","\\land");T(k,O,Fe,"∨","\\lor");T(k,O,Fe,"∧","\\wedge",!0);T(k,O,Fe,"∨","\\vee",!0);T(k,O,se,"√","\\surd");T(k,O,ga,"⟨","\\langle",!0);T(k,O,ga,"∣","\\lvert");T(k,O,ga,"∥","\\lVert");T(k,O,Ir,"?","?");T(k,O,Ir,"!","!");T(k,O,Ir,"⟩","\\rangle",!0);T(k,O,Ir,"∣","\\rvert");T(k,O,Ir,"∥","\\rVert");T(k,O,X,"=","=");T(k,O,X,":",":");T(k,O,X,"≈","\\approx",!0);T(k,O,X,"≅","\\cong",!0);T(k,O,X,"≥","\\ge");T(k,O,X,"≥","\\geq",!0);T(k,O,X,"←","\\gets");T(k,O,X,">","\\gt",!0);T(k,O,X,"∈","\\in",!0);T(k,O,X,"","\\@not");T(k,O,X,"⊂","\\subset",!0);T(k,O,X,"⊃","\\supset",!0);T(k,O,X,"⊆","\\subseteq",!0);T(k,O,X,"⊇","\\supseteq",!0);T(k,Q,X,"⊈","\\nsubseteq",!0);T(k,Q,X,"⊉","\\nsupseteq",!0);T(k,O,X,"⊨","\\models");T(k,O,X,"←","\\leftarrow",!0);T(k,O,X,"≤","\\le");T(k,O,X,"≤","\\leq",!0);T(k,O,X,"<","\\lt",!0);T(k,O,X,"→","\\rightarrow",!0);T(k,O,X,"→","\\to");T(k,Q,X,"≱","\\ngeq",!0);T(k,Q,X,"≰","\\nleq",!0);T(k,O,xi," ","\\ ");T(k,O,xi," ","\\space");T(k,O,xi," ","\\nobreakspace");T(we,O,xi," ","\\ ");T(we,O,xi," "," ");T(we,O,xi," ","\\space");T(we,O,xi," ","\\nobreakspace");T(k,O,xi,null,"\\nobreak");T(k,O,xi,null,"\\allowbreak");T(k,O,Wp,",",",");T(k,O,Wp,";",";");T(k,Q,Fe,"⊼","\\barwedge",!0);T(k,Q,Fe,"⊻","\\veebar",!0);T(k,O,Fe,"⊙","\\odot",!0);T(k,O,Fe,"⊕","\\oplus",!0);T(k,O,Fe,"⊗","\\otimes",!0);T(k,O,se,"∂","\\partial",!0);T(k,O,Fe,"⊘","\\oslash",!0);T(k,Q,Fe,"⊚","\\circledcirc",!0);T(k,Q,Fe,"⊡","\\boxdot",!0);
vendor: 8,384 bytes, line 681
681T(k,O,Fe,"△","\\bigtriangleup");T(k,O,Fe,"▽","\\bigtriangledown");T(k,O,Fe,"†","\\dagger");T(k,O,Fe,"⋄","\\diamond");T(k,O,Fe,"⋆","\\star");T(k,O,Fe,"◃","\\triangleleft");T(k,O,Fe,"▹","\\triangleright");T(k,O,ga,"{","\\{");T(we,O,se,"{","\\{");T(we,O,se,"{","\\textbraceleft");T(k,O,Ir,"}","\\}");T(we,O,se,"}","\\}");T(we,O,se,"}","\\textbraceright");T(k,O,ga,"{","\\lbrace");T(k,O,Ir,"}","\\rbrace");T(k,O,ga,"[","\\lbrack",!0);T(we,O,se,"[","\\lbrack",!0);T(k,O,Ir,"]","\\rbrack",!0);T(we,O,se,"]","\\rbrack",!0);T(k,O,ga,"(","\\lparen",!0);T(k,O,Ir,")","\\rparen",!0);T(we,O,se,"<","\\textless",!0);T(we,O,se,">","\\textgreater",!0);T(k,O,ga,"⌊","\\lfloor",!0);T(k,O,Ir,"⌋","\\rfloor",!0);T(k,O,ga,"⌈","\\lceil",!0);T(k,O,Ir,"⌉","\\rceil",!0);T(k,O,se,"\\","\\backslash");T(k,O,se,"∣","|");T(k,O,se,"∣","\\vert");T(we,O,se,"|","\\textbar",!0);T(k,O,se,"∥","\\|");T(k,O,se,"∥","\\Vert");T(we,O,se,"∥","\\textbardbl");T(we,O,se,"~","\\textasciitilde");T(we,O,se,"\\","\\textbackslash");T(we,O,se,"^","\\textasciicircum");T(k,O,X,"↑","\\uparrow",!0);T(k,O,X,"⇑","\\Uparrow",!0);T(k,O,X,"↓","\\downarrow",!0);T(k,O,X,"⇓","\\Downarrow",!0);T(k,O,X,"↕","\\updownarrow",!0);T(k,O,X,"⇕","\\Updownarrow",!0);T(k,O,Vn,"∐","\\coprod");T(k,O,Vn,"⋁","\\bigvee");T(k,O,Vn,"⋀","\\bigwedge");T(k,O,Vn,"⨄","\\biguplus");T(k,O,Vn,"⋂","\\bigcap");T(k,O,Vn,"⋃","\\bigcup");T(k,O,Vn,"∫","\\int");T(k,O,Vn,"∫","\\intop");T(k,O,Vn,"∬","\\iint");T(k,O,Vn,"∭","\\iiint");T(k,O,Vn,"∏","\\prod");T(k,O,Vn,"∑","\\sum");T(k,O,Vn,"⨂","\\bigotimes");T(k,O,Vn,"⨁","\\bigoplus");T(k,O,Vn,"⨀","\\bigodot");T(k,O,Vn,"∮","\\oint");T(k,O,Vn,"∯","\\oiint");T(k,O,Vn,"∰","\\oiiint");T(k,O,Vn,"⨆","\\bigsqcup");T(k,O,Vn,"∫","\\smallint");T(we,O,Ku,"…","\\textellipsis");T(k,O,Ku,"…","\\mathellipsis");T(we,O,Ku,"…","\\ldots",!0);T(k,O,Ku,"…","\\ldots",!0);T(k,O,Ku,"⋯","\\@cdots",!0);T(k,O,Ku,"⋱","\\ddots",!0);T(k,O,se,"⋮","\\varvdots");T(we,O,se,"⋮","\\varvdots");T(k,O,fn,"ˊ","\\acute");T(k,O,fn,"ˋ","\\grave");T(k,O,fn,"¨","\\ddot");T(k,O,fn,"~","\\tilde");T(k,O,fn,"ˉ","\\bar");T(k,O,fn,"˘","\\breve");T(k,O,fn,"ˇ","\\check");T(k,O,fn,"^","\\hat");T(k,O,fn,"⃗","\\vec");T(k,O,fn,"˙","\\dot");T(k,O,fn,"˚","\\mathring");T(k,O,Ke,"","\\@imath");T(k,O,Ke,"","\\@jmath");T(k,O,se,"ı","ı");T(k,O,se,"ȷ","ȷ");T(we,O,se,"ı","\\i",!0);T(we,O,se,"ȷ","\\j",!0);T(we,O,se,"ß","\\ss",!0);T(we,O,se,"æ","\\ae",!0);T(we,O,se,"œ","\\oe",!0);T(we,O,se,"ø","\\o",!0);T(we,O,se,"Æ","\\AE",!0);T(we,O,se,"Œ","\\OE",!0);T(we,O,se,"Ø","\\O",!0);T(we,O,fn,"ˊ","\\'");T(we,O,fn,"ˋ","\\`");T(we,O,fn,"ˆ","\\^");T(we,O,fn,"˜","\\~");T(we,O,fn,"ˉ","\\=");T(we,O,fn,"˘","\\u");T(we,O,fn,"˙","\\.");T(we,O,fn,"¸","\\c");T(we,O,fn,"˚","\\r");T(we,O,fn,"ˇ","\\v");T(we,O,fn,"¨",'\\"');T(we,O,fn,"˝","\\H");T(we,O,fn,"◯","\\textcircled");var qA={"--":!0,"---":!0,"``":!0,"''":!0};T(we,O,se,"–","--",!0);T(we,O,se,"–","\\textendash");T(we,O,se,"—","---",!0);T(we,O,se,"—","\\textemdash");T(we,O,se,"‘","`",!0);T(we,O,se,"‘","\\textquoteleft");T(we,O,se,"’","'",!0);T(we,O,se,"’","\\textquoteright");T(we,O,se,"“","``",!0);T(we,O,se,"“","\\textquotedblleft");T(we,O,se,"”","''",!0);T(we,O,se,"”","\\textquotedblright");T(k,O,se,"°","\\degree",!0);T(we,O,se,"°","\\degree");T(we,O,se,"°","\\textdegree",!0);T(k,O,se,"£","\\pounds");T(k,O,se,"£","\\mathsterling",!0);T(we,O,se,"£","\\pounds");T(we,O,se,"£","\\textsterling",!0);T(k,Q,se,"✠","\\maltese");T(we,Q,se,"✠","\\maltese");var i7='0123456789/@."';for(var m2=0;m2<i7.length;m2++){var l7=i7.charAt(m2);T(k,O,se,l7,l7)}var o7='0123456789!@*()-=+";:?/.,';for(var g2=0;g2<o7.length;g2++){var u7=o7.charAt(g2);T(we,O,se,u7,u7)}var Vh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var x2=0;x2<Vh.length;x2++){var Jf=Vh.charAt(x2);T(k,O,Ke,Jf,Jf),T(we,O,se,Jf,Jf)}T(k,Q,se,"C","ℂ");T(we,Q,se,"C","ℂ");T(k,Q,se,"H","ℍ");T(we,Q,se,"H","ℍ");T(k,Q,se,"N","ℕ");T(we,Q,se,"N","ℕ");T(k,Q,se,"P","ℙ");T(we,Q,se,"P","ℙ");T(k,Q,se,"Q","ℚ");T(we,Q,se,"Q","ℚ");T(k,Q,se,"R","ℝ");T(we,Q,se,"R","ℝ");T(k,Q,se,"Z","ℤ");T(we,Q,se,"Z","ℤ");T(k,O,Ke,"h","ℎ");T(we,O,Ke,"h","ℎ");var nt="";for(var Pr=0;Pr<Vh.length;Pr++){var vn=Vh.charAt(Pr);nt=String.fromCharCode(55349,56320+Pr),T(k,O,Ke,vn,nt),T(we,O,se,vn,nt),nt=String.fromCharCode(55349,56372+Pr),T(k,O,Ke,vn,nt),T(we,O,se,vn,nt),nt=String.fromCharCode(55349,56424+Pr),T(k,O,Ke,vn,nt),T(we,O,se,vn,nt),nt=String.fromCharCode(55349,56580+Pr),T(k,O,Ke,vn,nt),T(we,O,se,vn,nt),nt=String.fromCharCode(55349,56684+Pr),T(k,O,Ke,vn,nt),T(we,O,se,vn,nt),nt=String.fromCharCode(55349,56736+Pr),T(k,O,Ke,vn,nt),T(we,O,se,vn,nt),nt=String.fromCharCode(55349,56788+Pr),T(k,O,Ke,vn,nt),T(we,O,se,vn,nt),nt=String.fromCharCode(55349,56840+Pr),T(k,O,Ke,vn,nt),T(we,O,se,vn,nt),nt=String.fromCharCode(55349,56944+Pr),T(k,O,Ke,vn,nt),T(we,O,se,vn,nt),Pr<26&&(nt=String.fromCharCode(55349,56632+Pr),T(k,O,Ke,vn,nt),T(we,O,se,vn,nt),nt=String.fromCharCode(55349,56476+Pr),T(k,O,Ke,vn,nt),T(we,O,se,vn,nt))}nt="𝕜";T(k,O,Ke,"k",nt);T(we,O,se,"k",nt);for(var zl=0;zl<10;zl++){var Yi=zl.toString();nt=String.fromCharCode(55349,57294+zl),T(k,O,Ke,Yi,nt),T(we,O,se,Yi,nt),nt=String.fromCharCode(55349,57314+zl),T(k,O,Ke,Yi,nt),T(we,O,se,Yi,nt),nt=String.fromCharCode(55349,57324+zl),T(k,O,Ke,Yi,nt),T(we,O,se,Yi,nt),nt=String.fromCharCode(55349,57334+zl),T(k,O,Ke,Yi,nt),T(we,O,se,Yi,nt)}var Kx="ÐÞþ";for(var b2=0;b2<Kx.length;b2++){var eh=Kx.charAt(b2);T(k,O,Ke,eh,eh),T(we,O,se,eh,eh)}var th=[["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"]],c7=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],ZQ=function(t,n){var r=t.charCodeAt(0),a=t.charCodeAt(1),i=(r-55296)*1024+(a-56320)+65536,l=n==="math"?0:1;if(119808<=i&&i<120484){var u=Math.floor((i-119808)/26);return[th[u][2],th[u][l]]}else if(120782<=i&&i<=120831){var c=Math.floor((i-120782)/10);return[c7[c][2],c7[c][l]]}else{if(i===120485||i===120486)return[th[0][2],th[0][l]];if(120486<i&&i<120782)return["",""];throw new Pe("Unsupported character: "+t)}},Zp=function(t,n,r){return sn[r][t]&&sn[r][t].replace&&(t=sn[r][t].replace),{value:t,metrics:zy(t,n,r)}},$a=function(t,n,r,a,i){var l=Zp(t,n,r),u=l.metrics;t=l.value;var c;if(u){var f=u.italic;(r==="text"||a&&a.font==="mathit")&&(f=0),c=new La(t,u.height,u.depth,f,u.skew,u.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+r+"'")),c=new La(t,0,0,0,0,0,i);if(a){c.maxFontSize=a.sizeMultiplier,a.style.isTight()&&c.classes.push("mtight");var g=a.getColor();g&&(c.style.color=g)}return c},JQ=function(t,n,r,a){return a===void 0&&(a=[]),r.font==="boldsymbol"&&Zp(t,"Main-Bold",n).metrics?$a(t,"Main-Bold",n,r,a.concat(["mathbf"])):t==="\\"||sn[n][t].font==="main"?$a(t,"Main-Regular",n,r,a):$a(t,"AMS-Regular",n,r,a.concat(["amsrm"]))},eX=function(t,n,r,a,i){return i!=="textord"&&Zp(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},tX=function(t,n,r){var a=t.mode,i=t.text,l=["mord"],u=a==="math"||a==="text"&&n.font,c=u?n.font:n.fontFamily,f="",g="";if(i.charCodeAt(0)===55349&&([f,g]=ZQ(i,a)),f.length>0)return $a(i,f,a,n,l.concat(g));if(c){var h,x;if(c==="boldsymbol"){var b=eX(i,a,n,l,r);h=b.fontName,x=[b.fontClass]}
vendor: 5,220 bytes, line 681
681else u?(h=GA[c].fontName,x=[c]):(h=nh(c,n.fontWeight,n.fontShape),x=[c,n.fontWeight,n.fontShape]);if(Zp(i,h,a).metrics)return $a(i,h,a,n,l.concat(x));if(qA.hasOwnProperty(i)&&h.slice(0,10)==="Typewriter"){for(var E=[],_=0;_<i.length;_++)E.push($a(i[_],h,a,n,l.concat(x)));return VA(E)}}if(r==="mathord")return $a(i,"Math-Italic",a,n,l.concat(["mathnormal"]));if(r==="textord"){var C=sn[a][i]&&sn[a][i].font;if(C==="ams"){var w=nh("amsrm",n.fontWeight,n.fontShape);return $a(i,w,a,n,l.concat("amsrm",n.fontWeight,n.fontShape))}else if(C==="main"||!C){var N=nh("textrm",n.fontWeight,n.fontShape);return $a(i,N,a,n,l.concat(n.fontWeight,n.fontShape))}else{var R=nh(C,n.fontWeight,n.fontShape);return $a(i,R,a,n,l.concat(R,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+r+" in makeOrd")},nX=(e,t)=>{if(cl(e.classes)!==cl(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var a in t.style)if(t.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;return!0},rX=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof La&&r instanceof La&&nX(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},Hy=function(t){for(var n=0,r=0,a=0,i=0;i<t.children.length;i++){var l=t.children[i];l.height>n&&(n=l.height),l.depth>r&&(r=l.depth),l.maxFontSize>a&&(a=l.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=a},Xr=function(t,n,r,a){var i=new hd(t,n,r,a);return Hy(i),i},$A=(e,t,n,r)=>new hd(e,t,n,r),aX=function(t,n,r){var a=Xr([t],[],n);return a.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),a.style.borderBottomWidth=je(a.height),a.maxFontSize=1,a},sX=function(t,n,r,a){var i=new Fy(t,n,r,a);return Hy(i),i},VA=function(t){var n=new fd(t);return Hy(n),n},iX=function(t,n){return t instanceof fd?Xr([],[t],n):t},lX=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],a=-n[0].shift-n[0].elem.depth,i=a,l=1;l<n.length;l++){var u=-n[l].shift-i-n[l].elem.depth,c=u-(n[l-1].elem.height+n[l-1].elem.depth);i=i+u,r.push({type:"kern",size:c}),r.push(n[l])}return{children:r,depth:a}}var f;if(t.positionType==="top"){for(var g=t.positionData,h=0;h<t.children.length;h++){var x=t.children[h];g-=x.type==="kern"?x.size:x.elem.height+x.elem.depth}f=g}else if(t.positionType==="bottom")f=-t.positionData;else{var b=t.children[0];if(b.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")f=-b.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")f=-b.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:f}},oX=function(t,n){for(var{children:r,depth:a}=lX(t),i=0,l=0;l<r.length;l++){var u=r[l];if(u.type==="elem"){var c=u.elem;i=Math.max(i,c.maxFontSize,c.height)}}i+=2;var f=Xr(["pstrut"],[]);f.style.height=je(i);for(var g=[],h=a,x=a,b=a,E=0;E<r.length;E++){var _=r[E];if(_.type==="kern")b+=_.size;else{var C=_.elem,w=_.wrapperClasses||[],N=_.wrapperStyle||{},R=Xr(w,[f,C],void 0,N);R.style.top=je(-i-b-C.depth),_.marginLeft&&(R.style.marginLeft=_.marginLeft),_.marginRight&&(R.style.marginRight=_.marginRight),g.push(R),b+=C.height+C.depth}h=Math.min(h,b),x=Math.max(x,b)}var z=Xr(["vlist"],g);z.style.height=je(x);var B;if(h<0){var j=Xr([],[]),L=Xr(["vlist"],[j]);L.style.height=je(-h);var Y=Xr(["vlist-s"],[new La("​")]);B=[Xr(["vlist-r"],[z,Y]),Xr(["vlist-r"],[L])]}else B=[Xr(["vlist-r"],[z])];var Z=Xr(["vlist-t"],B);return B.length===2&&Z.classes.push("vlist-t2"),Z.height=x,Z.depth=-h,Z},uX=(e,t)=>{var n=Xr(["mspace"],[],t),r=xn(e,t);return n.style.marginRight=je(r),n},nh=function(t,n,r){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 n==="textbf"&&r==="textit"?i="BoldItalic":n==="textbf"?i="Bold":n==="textit"?i="Italic":i="Regular",a+"-"+i},GA={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"}},YA={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},cX=function(t,n){var[r,a,i]=YA[t],l=new dl(r),u=new fi([l],{width:je(a),height:je(i),style:"width:"+je(a),viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),c=$A(["overlay"],[u],n);return c.height=i,c.style.height=je(i),c.style.width=je(a),c}
vendor: 15,303 bytes, line 681
681,de={fontMap:GA,makeSymbol:$a,mathsym:JQ,makeSpan:Xr,makeSvgSpan:$A,makeLineSpan:aX,makeAnchor:sX,makeFragment:VA,wrapFragment:iX,makeVList:oX,makeOrd:tX,makeGlue:uX,staticSvg:cX,svgData:YA,tryCombineChars:rX},gn={number:3,unit:"mu"},Fl={number:4,unit:"mu"},Zs={number:5,unit:"mu"},dX={mord:{mop:gn,mbin:Fl,mrel:Zs,minner:gn},mop:{mord:gn,mop:gn,mrel:Zs,minner:gn},mbin:{mord:Fl,mop:Fl,mopen:Fl,minner:Fl},mrel:{mord:Zs,mop:Zs,mopen:Zs,minner:Zs},mopen:{},mclose:{mop:gn,mbin:Fl,mrel:Zs,minner:gn},mpunct:{mord:gn,mop:gn,mrel:Zs,mopen:gn,mclose:gn,mpunct:gn,minner:gn},minner:{mord:gn,mop:gn,mbin:Fl,mrel:Zs,mopen:gn,mpunct:gn,minner:gn}},fX={mord:{mop:gn},mop:{mord:gn,mop:gn},mbin:{},mrel:{},mopen:{},mclose:{mop:gn},mpunct:{},minner:{mop:gn}},QA={},Gh={},Yh={};function Be(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:i,mathmlBuilder:l}=e,u={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:a},c=0;c<n.length;++c)QA[n[c]]=u;t&&(i&&(Gh[t]=i),l&&(Yh[t]=l))}function mo(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Be({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var Qh=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Nn=function(t){return t.type==="ordgroup"?t.body:[t]},hi=de.makeSpan,hX=["leftmost","mbin","mopen","mrel","mop","mpunct"],pX=["rightmost","mrel","mclose","mpunct"],mX={display:We.DISPLAY,text:We.TEXT,script:We.SCRIPT,scriptscript:We.SCRIPTSCRIPT},gX={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Zn=function(t,n,r,a){a===void 0&&(a=[null,null]);for(var i=[],l=0;l<t.length;l++){var u=It(t[l],n);if(u instanceof fd){var c=u.children;i.push(...c)}else i.push(u)}if(de.tryCombineChars(i),!r)return i;var f=n;if(t.length===1){var g=t[0];g.type==="sizing"?f=n.havingSize(g.size):g.type==="styling"&&(f=n.havingStyle(mX[g.style]))}var h=hi([a[0]||"leftmost"],[],n),x=hi([a[1]||"rightmost"],[],n),b=r==="root";return d7(i,(E,_)=>{var C=_.classes[0],w=E.classes[0];C==="mbin"&&pX.includes(w)?_.classes[0]="mord":w==="mbin"&&hX.includes(C)&&(E.classes[0]="mord")},{node:h},x,b),d7(i,(E,_)=>{var C=Wx(_),w=Wx(E),N=C&&w?E.hasClass("mtight")?fX[C][w]:dX[C][w]:null;if(N)return de.makeGlue(N,f)},{node:h},x,b),i},d7=function e(t,n,r,a,i){a&&t.push(a);for(var l=0;l<t.length;l++){var u=t[l],c=XA(u);if(c){e(c.children,n,r,null,i);continue}var f=!u.hasClass("mspace");if(f){var g=n(u,r.node);g&&(r.insertAfter?r.insertAfter(g):(t.unshift(g),l++))}f?r.node=u:i&&u.hasClass("newline")&&(r.node=hi(["leftmost"])),r.insertAfter=(h=>x=>{t.splice(h+1,0,x),l++})(l)}a&&t.pop()},XA=function(t){return t instanceof fd||t instanceof Fy||t instanceof hd&&t.hasClass("enclosing")?t:null},xX=function e(t,n){var r=XA(t);if(r){var a=r.children;if(a.length){if(n==="right")return e(a[a.length-1],"right");if(n==="left")return e(a[0],"left")}}return t},Wx=function(t,n){return t?(n&&(t=xX(t,n)),gX[t.classes[0]]||null):null},q0=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return hi(n.concat(r))},It=function(t,n,r){if(!t)return hi();if(Gh[t.type]){var a=Gh[t.type](t,n);if(r&&n.size!==r.size){a=hi(n.sizingClasses(r),[a],n);var i=n.sizeMultiplier/r.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new Pe("Got group of unknown type: '"+t.type+"'")};function rh(e,t){var n=hi(["base"],e,t),r=hi(["strut"]);return r.style.height=je(n.height+n.depth),n.depth&&(r.style.verticalAlign=je(-n.depth)),n.children.unshift(r),n}function Zx(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=Zn(e,t,"root"),a;r.length===2&&r[1].hasClass("tag")&&(a=r.pop());for(var i=[],l=[],u=0;u<r.length;u++)if(l.push(r[u]),r[u].hasClass("mbin")||r[u].hasClass("mrel")||r[u].hasClass("allowbreak")){for(var c=!1;u<r.length-1&&r[u+1].hasClass("mspace")&&!r[u+1].hasClass("newline");)u++,l.push(r[u]),r[u].hasClass("nobreak")&&(c=!0);c||(i.push(rh(l,t)),l=[])}else r[u].hasClass("newline")&&(l.pop(),l.length>0&&(i.push(rh(l,t)),l=[]),i.push(r[u]));l.length>0&&i.push(rh(l,t));var f;n?(f=rh(Zn(n,t,!0)),f.classes=["tag"],i.push(f)):a&&i.push(a);var g=hi(["katex-html"],i);if(g.setAttribute("aria-hidden","true"),f){var h=f.children[0];h.style.height=je(g.height+g.depth),g.depth&&(h.style.verticalAlign=je(-g.depth))}return g}function KA(e){return new fd(e)}class fa{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=cl(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof _s&&this.children[r+1]instanceof _s){for(var a=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof _s;)a+=this.children[++r].toText();t.appendChild(new _s(a).toNode())}else t.appendChild(this.children[r].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=zt.escape(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+zt.escape(cl(this.classes))+'"'),t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class _s{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return zt.escape(this.toText())}toText(){return this.text}}class bX{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",je(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+je(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Ne={MathNode:fa,TextNode:_s,SpaceNode:bX,newDocumentFragment:KA},ja=function(t,n,r){return sn[n][t]&&sn[n][t].replace&&t.charCodeAt(0)!==55349&&!(qA.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=sn[n][t].replace),new Ne.TextNode(t)},Uy=function(t){return t.length===1?t[0]:new Ne.MathNode("mrow",t)},qy=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var a=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var i=t.text;if(["\\imath","\\jmath"].includes(i))return null;sn[a][i]&&sn[a][i].replace&&(i=sn[a][i].replace);var l=de.fontMap[r].fontName;return zy(i,l,a)?de.fontMap[r].variant:null};function y2(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof _s&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof _s&&n.text===","}else return!1}var ea=function(t,n,r){if(t.length===1){var a=nn(t[0],n);return r&&a instanceof fa&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],l,u=0;u<t.length;u++){var c=nn(t[u],n);if(c instanceof fa&&l instanceof fa){if(c.type==="mtext"&&l.type==="mtext"&&c.getAttribute("mathvariant")===l.getAttribute("mathvariant")){l.children.push(...c.children);continue}else if(c.type==="mn"&&l.type==="mn"){l.children.push(...c.children);continue}else if(y2(c)&&l.type==="mn"){l.children.push(...c.children);continue}else if(c.type==="mn"&&y2(l))c.children=[...l.children,...c.children],i.pop();else if((c.type==="msup"||c.type==="msub")&&c.children.length>=1&&(l.type==="mn"||y2(l))){var f=c.children[0];f instanceof fa&&f.type==="mn"&&(f.children=[...l.children,...f.children],i.pop())}else if(l.type==="mi"&&l.children.length===1){var g=l.children[0];if(g instanceof _s&&g.text==="̸"&&(c.type==="mo"||c.type==="mi"||c.type==="mn")){var h=c.children[0];h instanceof _s&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),i.pop())}}}i.push(c),l=c}return i},fl=function(t,n,r){return Uy(ea(t,n,r))},nn=function(t,n){if(!t)return new Ne.MathNode("mrow");if(Yh[t.type]){var r=Yh[t.type](t,n);return r}else throw new Pe("Got group of unknown type: '"+t.type+"'")};function f7(e,t,n,r,a){var i=ea(e,n),l;i.length===1&&i[0]instanceof fa&&["mrow","mtable"].includes(i[0].type)?l=i[0]:l=new Ne.MathNode("mrow",i);var u=new Ne.MathNode("annotation",[new Ne.TextNode(t)]);u.setAttribute("encoding","application/x-tex");var c=new Ne.MathNode("semantics",[l,u]),f=new Ne.MathNode("math",[c]);f.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&f.setAttribute("display","block");var g=a?"katex":"katex-mathml";return de.makeSpan([g],[f])}var WA=function(t){return new ti({style:t.displayMode?We.DISPLAY:We.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},ZA=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=de.makeSpan(r,[t])}return t},yX=function(t,n,r){var a=WA(r),i;if(r.output==="mathml")return f7(t,n,a,r.displayMode,!0);if(r.output==="html"){var l=Zx(t,a);i=de.makeSpan(["katex"],[l])}else{var u=f7(t,n,a,r.displayMode,!1),c=Zx(t,a);i=de.makeSpan(["katex"],[u,c])}return ZA(i,r)},vX=function(t,n,r){var a=WA(r),i=Zx(t,a),l=de.makeSpan(["katex"],[i]);return ZA(l,r)},EX={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":"="},SX=function(t){var n=new Ne.MathNode("mo",[new Ne.TextNode(EX[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},_X={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]},TX=function(t){return t.type==="ordgroup"?t.body.length:1},wX=function(t,n){function r(){var u=4e5,c=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(c)){var f=t,g=TX(f.base),h,x,b;if(g>5)c==="widehat"||c==="widecheck"?(h=420,u=2364,b=.42,x=c+"4"):(h=312,u=2340,b=.34,x="tilde4");else{var E=[1,1,2,2,3,3][g];c==="widehat"||c==="widecheck"?(u=[0,1062,2364,2364,2364][E],h=[0,239,300,360,420][E],b=[0,.24,.3,.3,.36,.42][E],x=c+E):(u=[0,600,1033,2339,2340][E],h=[0,260,286,306,312][E],b=[0,.26,.286,.3,.306,.34][E],x="tilde"+E)}var _=new dl(x),C=new fi([_],{width:"100%",height:je(b),viewBox:"0 0 "+u+" "+h,preserveAspectRatio:"none"});return{span:de.makeSvgSpan([],[C],n),minWidth:0,height:b}}else{var w=[],N=_X[c],[R,z,B]=N,j=B/1e3,L=R.length,Y,Z;if(L===1){var $=N[3];Y=["hide-tail"],Z=[$]}else if(L===2)Y=["halfarrow-left","halfarrow-right"],Z=["xMinYMin","xMaxYMin"];else if(L===3)Y=["brace-left","brace-center","brace-right"],Z=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to supp
681ort
682                    `+L+" children.");for(var te=0;te<L;te++){var ee=new dl(R[te]),he=new fi([ee],{width:"400em",height:je(j),viewBox:"0 0 "+u+" "+B,preserveAspectRatio:Z[te]+" slice"}),ie=de.makeSvgSpan([Y[te]],[he],n);if(L===1)return{span:ie,minWidth:z,height:j};ie.style.height=je(j),w.push(ie)}return{span:de.makeSpan(["stretchy"],w,n),minWidth:z,height:j}}}var{span:a,minWidth:i,height:l}=r();return a.height=l,a.style.height=je(l),i>0&&(a.style.minWidth=je(i)),a},AX=function(t,n,r,a,i){var l,u=t.height+t.depth+r+a;if(/fbox|color|angl/.test(n)){if(l=de.makeSpan(["stretchy",n],[],i),n==="fbox"){var c=i.color&&i.getColor();c&&(l.style.borderColor=c)}}else{var f=[];/^[bx]cancel$/.test(n)&&f.push(new Xx({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&f.push(new Xx({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var g=new fi(f,{width:"100%",height:je(u)});l=de.makeSvgSpan([],[g],i)}return l.height=u,l.style.height=je(u),l},pi={encloseSpan:AX,mathMLnode:SX,svgSpan:wX};function gt(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 $y(e){var t=Jp(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 Jp(e){return e&&(e.type==="atom"||WQ.hasOwnProperty(e.type))?e:null}var Vy=(e,t)=>{var n,r,a;e&&e.type==="supsub"?(r=gt(e.base,"accent"),n=r.base,e.base=n,a=XQ(It(e,t)),e.base=r):(r=gt(e,"accent"),n=r.base);var i=It(n,t.havingCrampedStyle()),l=r.isShifty&&zt.isCharacterBox(n),u=0;if(l){var c=zt.getBaseElem(n),f=It(c,t.havingCrampedStyle());u=s7(f).skew}var g=r.label==="\\c",h=g?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight),x;if(r.isStretchy)x=pi.svgSpan(r,t),x=de.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:x,wrapperClasses:["svg-align"],wrapperStyle:u>0?{width:"calc(100% - "+je(2*u)+")",marginLeft:je(2*u)}:void 0}]},t);else{var b,E;r.label==="\\vec"?(b=de.staticSvg("vec",t),E=de.svgData.vec[1]):(b=de.makeOrd({mode:r.mode,text:r.label},t,"textord"),b=s7(b),b.italic=0,E=b.width,g&&(h+=b.depth)),x=de.makeSpan(["accent-body"],[b]);var _=r.label==="\\textcircled";_&&(x.classes.push("accent-full"),h=i.height);var C=u;_||(C-=E/2),x.style.left=je(C),r.label==="\\textcircled"&&(x.style.top=".2em"),x=de.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-h},{type:"elem",elem:x}]},t)}var w=de.makeSpan(["mord","accent"],[x],t);return a?(a.children[0]=w,a.height=Math.max(w.height,a.height),a.classes[0]="mord",a):w},JA=(e,t)=>{var n=e.isStretchy?pi.mathMLnode(e.label):new Ne.MathNode("mo",[ja(e.label,e.mode)]),r=new Ne.MathNode("mover",[nn(e.base,t),n]);return r.setAttribute("accent","true"),r},CX=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Be({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 n=Qh(t[0]),r=!CX.test(e.funcName),a=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:a,base:n}},htmlBuilder:Vy,mathmlBuilder:JA});Be({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Vy,mathmlBuilder:JA});Be({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:a}},htmlBuilder:(e,t)=>{var n=It(e.base,t),r=pi.svgSpan(e,t),a=e.label==="\\utilde"?.12:0,i=de.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:n}]},t);return de.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var n=pi.mathMLnode(e.label),r=new Ne.MathNode("munder",[nn(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var ah=e=>{var t=new Ne.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Be({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,n){var{parser:r,funcName:a}=e;return{type:"xArrow",mode:r.mode,label:a,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),a=de.wrapFragment(It(e.body,r,t),t),i=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var l;e.below&&(r=t.havingStyle(n.sub()),l=de.wrapFragment(It(e.below,r,t),t),l.classes.push(i+"-arrow-pad"));var u=pi.svgSpan(e,t),c=-t.fontMetrics().axisHeight+.5*u.height,f=-t.fontMetrics().axisHeight-.5*u.height-.111;(a.depth>.25||e.label==="\\xleftequilibrium")&&(f-=a.depth);var g;if(l){var h=-t.fontMetrics().axisHeight+l.height+.5*u.height+.111;g=de.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:f},{type:"elem",elem:u,shift:c},{type:"elem",elem:l,shift:h}]},t)}else g=de.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:f},{type:"elem",elem:u,shift:c}]},t);return g.children[0].children[0].children[1].classes.push("svg-align"),de.makeSpan(["mrel","x-arrow"],[g],t)},mathmlBuilder(e,t){var n=pi.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var a=ah(nn(e.body,t));if(e.below){var i=ah(nn(e.below,t));r=new Ne.MathNode("munderover",[n,i,a])}else r=new Ne.MathNode("mover",[n,a])}else if(e.below){var l=ah(nn(e.below,t));r=new Ne.MathNode("munder",[n,l])}else r=ah(),r=new Ne.MathNode("mover",[n,r]);return r}});var kX=de.makeSpan;function eC(e,t){var n=Zn(e.body,t,!0);return kX([e.mclass],n,t)}function tC(e,t){var n,r=ea(e.body,t);return e.mclass==="minner"?n=new Ne.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new Ne.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new Ne.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}Be({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:Nn(a),isCharacterBox:zt.isCharacterBox(a)}},htmlBuilder:eC,mathmlBuilder:tC});var em=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"};Be({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:em(t[0]),body:Nn(t[1]),isCharacterBox:zt.isCharacterBox(t[1])}}});Be({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,a=t[1],i=t[0],l;r!=="\\stackrel"?l=em(a):l="mrel";var u={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:Nn(a)},c={type:"supsub",mode:i.mode,base:u,sup:r==="\\underset"?null:i,sub:r==="\\underset"?i:null};return{type:"mclass",mode:n.mode,mclass:l,body:[c],isCharacterBox:zt.isCharacterBox(c)}},htmlBuilder:eC,mathmlBuilder:tC});Be({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:em(t[0]),body:Nn(t[0])}},htmlBuilder(e,t){var n=Zn(e.body,t,!0),r=de.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=ea(e.body,t),r=new Ne.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var NX={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},h7=()=>({type:"styling",body:[],mode:"math",style:"display"}),p7=e=>e.type==="textord"&&e.text==="@",PX=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function RX(e,t,n){var r=NX[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var a=n.callFunction("\\\\cdleft",[t[0]],[]),i={type:"atom",text:r,mode:"math",family:"rel"},l=n.callFunction("\\Big",[i],[]),u=n.callFunction("\\\\cdright",[t[1]],[]),c={type:"ordgroup",mode:"math",body:[a,l,u]};return n.callFunction("\\\\cdparent",[c],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);
vendor: 4,123 bytes, line 682
682case"\\Vert":{var f={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[f],[])}default:return{type:"textord",text:" ",mode:"math"}}}function OX(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 n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Pe("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],a=[r],i=0;i<t.length;i++){for(var l=t[i],u=h7(),c=0;c<l.length;c++)if(!p7(l[c]))u.body.push(l[c]);else{r.push(u),c+=1;var f=$y(l[c]).text,g=new Array(2);if(g[0]={type:"ordgroup",mode:"math",body:[]},g[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(f)>-1))if("<>AV".indexOf(f)>-1)for(var h=0;h<2;h++){for(var x=!0,b=c+1;b<l.length;b++){if(PX(l[b],f)){x=!1,c=b;break}if(p7(l[b]))throw new Pe("Missing a "+f+" character to complete a CD arrow.",l[b]);g[h].body.push(l[b])}if(x)throw new Pe("Missing a "+f+" character to complete a CD arrow.",l[c])}else throw new Pe('Expected one of "<>AV=|." after @',l[c]);var E=RX(f,g,e),_={type:"styling",body:[E],mode:"math",style:"display"};r.push(_),u=h7()}i%2===0?r.push(u):r.shift(),r=[],a.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var C=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:C,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}Be({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=de.wrapFragment(It(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=je(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Ne.MathNode("mrow",[nn(e.label,t)]);return n=new Ne.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Ne.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});Be({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=de.wrapFragment(It(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Ne.MathNode("mrow",[nn(e.fragment,t)])}});Be({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=gt(t[0],"ordgroup"),a=r.body,i="",l=0;l<a.length;l++){var u=gt(a[l],"textord");i+=u.text}var c=parseInt(i),f;if(isNaN(c))throw new Pe("\\@char has non-numeric argument "+i);if(c<0||c>=1114111)throw new Pe("\\@char with invalid code point "+i);return c<=65535?f=String.fromCharCode(c):(c-=65536,f=String.fromCharCode((c>>10)+55296,(c&1023)+56320)),{type:"textord",mode:n.mode,text:f}}});var nC=(e,t)=>{var n=Zn(e.body,t.withColor(e.color),!1);return de.makeFragment(n)},rC=(e,t)=>{var n=ea(e.body,t.withColor(e.color)),r=new Ne.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};Be({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=gt(t[0],"color-token").color,a=t[1];return{type:"color",mode:n.mode,color:r,body:Nn(a)}},htmlBuilder:nC,mathmlBuilder:rC});Be({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,a=gt(t[0],"color-token").color;n.gullet.macros.set("\\current@color",a);var i=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:a,body:i}},htmlBuilder:nC,mathmlBuilder:rC});Be({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,a=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,i=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTe
682X, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:i,size:a&&gt(a,"size").value}},htmlBuilder(e,t){var n=de.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=je(xn(e.size,t)))),n},mathmlBuilder(e,t){var n=new Ne.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",je(xn(e.size,t)))),n}});var Jx={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},aC=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Pe("Expected a control sequence",e);return t},MX=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},sC=(e,t,n,r)=>{var a=e.gullet.macros.get(n.text);a==null&&(n.noexpand=!0,a={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,a,r)};Be({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(Jx[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=Jx[r.text]),gt(t.parseFunction(),"internal");throw new Pe("Invalid token after macro prefix",r)}});Be({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),a=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new Pe("Expected a control sequence",r);for(var i=0,l,u=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){l=t.gullet.future(),u[i].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Pe('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==i+1)throw new Pe('Argument number "'+r.text+'" out of order');i++,u.push([])}else{if(r.text==="EOF")throw new Pe("Expected a macro definition");u[i].push(r.text)}var{tokens:c}=t.gullet.consumeArg();return l&&c.unshift(l),(n==="\\edef"||n==="\\xdef")&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(a,{tokens:c,numArgs:i,delimiters:u},n===Jx[n]),{type:"internal",mode:t.mode}}});Be({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=aC(t.gullet.popToken());t.gullet.consumeSpaces();var a=MX(t);return sC(t,r,a,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});Be({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=aC(t.gullet.popToken()),a=t.gullet.popToken(),i=t.gullet.popToken();return sC(t,r,i,n==="\\\\globalfuture"),t.gullet.pushToken(i),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var d0=function(t,n,r){var a=sn.math[t]&&sn.math[t].replace,i=zy(a||t,n,r);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return i},Gy=function(t,n,r,a){var i=r.havingBaseStyle(n),l=de.makeSpan(a.concat(i.sizingClasses(r)),[t],r),u=i.sizeMultiplier/r.sizeMultiplier;return l.height*=u,l.depth*=u,l.maxFontSize=i.sizeMultiplier,l},iC=function(t,n,r){var a=n.havingBaseStyle(r),i=(1-n.sizeMultiplier/a.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=je(i),t.height-=i,t.depth+=i},DX=function(t,n,r,a,i,l){var u=de.makeSymbol(t,"Main-Regular",i,a),c=Gy(u,n,a,l);return r&&iC(c,a,n),c},IX=function(t,n,r,a){return de.makeSymbol(t,"Size"+n+"-Regular",r,a)},lC=function(t,n,r,a,i,l){var u=IX(t,n,i,a),c=Gy(de.makeSpan(["delimsizing","size"+n],[u],a),We.TEXT,a,l);return r&&iC(c,a,We.TEXT),c},v2=function(t,n,r){var a;n==="Size1-Regular"?a="delim-size1":a="delim-size4";var i=de.makeSpan(["delimsizinginner",a],[de.makeSpan([],[de.makeSymbol(t,n,r)])]);return{type:"elem",elem:i}},E2=function(t,n,r){var a=Ss["Size4-Regular"][t.charCodeAt(0)]?Ss["Size4-Regular"][t.charCodeAt(0)][4]:Ss["Size1-Regular"][t.charCodeAt(0)][4],i=new dl("inner",HQ(t,Math.round(1e3*n))),l=new fi([i],{width:je(a),height:je(n),style:"width:"+je(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),u=de.makeSvgSpan([],[l],r);return u.height=n,u.style.height=je(n),u.style.width=je(a),{type:"elem",elem:u}},eb=.008,sh={type:"kern",size:-1*eb},LX=["|","\\lvert","\\rvert","\\vert"],jX=["\\|","\\lVert","\\rVert","\\Vert"],oC=function(t,n,r,a,i,l){var u,c,f,g,h="",x=0;u=f=g=t,c=null;var b="Size1-Regular";t==="\\uparrow"?f=g="⏐":t==="\\Uparrow"?f=g="‖":t==="\\downarrow"?u=f="⏐":t==="\\Downarrow"?u=f="‖":t==="\\updownarrow"?(u="\\uparrow",f="⏐",g="\\downarrow"):t==="\\Updownarrow"?(u="\\Uparrow",f="‖",g="\\Downarrow"):LX.includes(t)?(f="∣",h="vert",x=333):jX.includes(t)?(f="∥",h="doublevert",x=556):t==="["||t==="\\lbrack"?(u="⎡",f="⎢",g="⎣",b="Size4-Regular",h="lbrack",x=667):t==="]"||t==="\\rbrack"?(u="⎤",f="⎥",g="⎦",b="Size4-Regular",h="rbrack",x=667):t==="\\lfloor"||t==="⌊"?(f=u="⎢",g="⎣",b="Size4-Regular",h="lfloor",x=667):t==="\\lceil"||t==="⌈"?(u="⎡",f=g="⎢",b="Size4-Regular",h="lceil",x=667):t==="\\rfloor"||t==="⌋"?(f=u="⎥",g="⎦",b="Size4-Regular",h="rfloor",x=667):t==="\\rceil"||t==="⌉"?(u="⎤",f=g="⎥",b="Size4-Regular",h="rceil",x=667):t==="("||t==="\\lparen"?(u="⎛",f="⎜",g="⎝",b="Size4-Regular",h="lparen",x=875):t===")"||t==="\\rparen"?(u="⎞",f="⎟",g="⎠",b="Size4-Regular",h="rparen",x=875):t==="\\{"||t==="\\lbrace"?(u="⎧",c="⎨",g="⎩",f="⎪",b="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(u="⎫",c="⎬",g="⎭",f="⎪",b="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(u="⎧",g="⎩",f="⎪",b="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(u="⎫",g="⎭",f="⎪",b="Size4-Regular"):t==="\\lmou
682stache"||t==="⎰"?(u="⎧",g="⎭",f="⎪",b="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(u="⎫",g="⎩",f="⎪",b="Size4-Regular");var E=d0(u,b,i),_=E.height+E.depth,C=d0(f,b,i),w=C.height+C.depth,N=d0(g,b,i),R=N.height+N.depth,z=0,B=1;if(c!==null){var j=d0(c,b,i);z=j.height+j.depth,B=2}var L=_+R+z,Y=Math.max(0,Math.ceil((n-L)/(B*w))),Z=L+Y*B*w,$=a.fontMetrics().axisHeight;r&&($*=a.sizeMultiplier);var te=Z/2-$,ee=[];if(h.length>0){var he=Z-_-R,ie=Math.round(Z*1e3),ne=UQ(h,Math.round(he*1e3)),H=new dl(h,ne),re=(x/1e3).toFixed(3)+"em",J=(ie/1e3).toFixed(3)+"em",Te=new fi([H],{width:re,height:J,viewBox:"0 0 "+x+" "+ie}),q=de.makeSvgSpan([],[Te],a);q.height=ie/1e3,q.style.width=re,q.style.height=J,ee.push({type:"elem",elem:q})}else{if(ee.push(v2(g,b,i)),ee.push(sh),c===null){var G=Z-_-R+2*eb;ee.push(E2(f,G,a))}else{var oe=(Z-_-R-z)/2+2*eb;ee.push(E2(f,oe,a)),ee.push(sh),ee.push(v2(c,b,i)),ee.push(sh),ee.push(E2(f,oe,a))}ee.push(sh),ee.push(v2(u,b,i))}var M=a.havingBaseStyle(We.TEXT),pe=de.makeVList({positionType:"bottom",positionData:te,children:ee},M);return Gy(de.makeSpan(["delimsizing","mult"],[pe],M),We.TEXT,a,l)},S2=80,_2=.08,T2=function(t,n,r,a,i){var l=FQ(t,a,r),u=new dl(t,l),c=new fi([u],{width:"400em",height:je(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return de.makeSvgSpan(["hide-tail"],[c],i)},BX=function(t,n){var r=n.havingBaseSizing(),a=fC("\\surd",t*r.sizeMultiplier,dC,r),i=r.sizeMultiplier,l=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),u,c=0,f=0,g=0,h;return a.type==="small"?(g=1e3+1e3*l+S2,t<1?i=1:t<1.4&&(i=.7),c=(1+l+_2)/i,f=(1+l)/i,u=T2("sqrtMain",c,g,l,n),u.style.minWidth="0.853em",h=.833/i):a.type==="large"?(g=(1e3+S2)*S0[a.size],f=(S0[a.size]+l)/i,c=(S0[a.size]+l+_2)/i,u=T2("sqrtSize"+a.size,c,g,l,n),u.style.minWidth="1.02em",h=1/i):(c=t+l+_2,f=t+l,g=Math.floor(1e3*t+l)+S2,u=T2("sqrtTall",c,g,l,n),u.style.minWidth="0.742em",h=1.056),u.height=f,u.style.height=je(c),{span:u,advanceWidth:h,ruleWidth:(n.fontMetrics().sqrtRuleThickness+l)*i}},uC=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],zX=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],cC=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],S0=[0,1.2,1.8,2.4,3],FX=function(t,n,r,a,i){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),uC.includes(t)||cC.includes(t))return lC(t,n,!1,r,a,i);if(zX.includes(t))return oC(t,S0[n],!1,r,a,i);throw new Pe("Illegal delimiter: '"+t+"'")},HX=[{type:"small",style:We.SCRIPTSCRIPT},{type:"small",style:We.SCRIPT},{type:"small",style:We.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],UX=[{type:"small",style:We.SCRIPTSCRIPT},{type:"small",style:We.SCRIPT},{type:"small",style:We.TEXT},{type:"stack"}],dC=[{type:"small",style:We.SCRIPTSCRIPT},{type:"small",style:We.SCRIPT},{type:"small",style:We.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],qX=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.")},fC=function(t,n,r,a){for(var i=Math.min(2,3-a.style.size),l=i;l<r.length&&r[l].type!=="stack";l++){var u=d0(t,qX(r[l]),"math"),c=u.height+u.depth;if(r[l].type==="small"){var f=a.havingBaseStyle(r[l].style);c*=f.sizeMultiplier}if(c>n)return r[l]}return r[r.length-1]},hC=function(t,n,r,a,i,l){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var u;cC.includes(t)?u=HX:uC.includes(t)?u=dC:u=UX;var c=fC(t,n,u,a);return c.type==="small"?DX(t,c.style,r,a,i,l):c.type==="large"?lC(t,c.size,r,a,i,l):oC(t,n,r,a,i,l)},$X=function(t,n,r,a,i,l){var u=a.fontMetrics().axisHeight*a.sizeMultiplier,c=901,f=5/a.fontMetrics().ptPerEm,g=Math.max(n-u,r+u),h=Math.max(g/500*c,2*g-f);return hC(t,h,!0,a,i,l)},li={sqrtImage:BX,sizedDelim:FX,sizeToMaxHeight:S0,customSizedDelim:hC,leftRightDelim:$X},m7={"\\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}},VX=["(","\\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 tm(e,t){var n=Jp(e);if(n&&VX.includes(n.text))return n;throw n?new Pe("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Pe
vendor: 13,365 bytes, line 682
682("Invalid delimiter type '"+e.type+"'",e)}Be({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 n=tm(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:m7[e.funcName].size,mclass:m7[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?de.makeSpan([e.mclass]):li.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(ja(e.delim,e.mode));var n=new Ne.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=je(li.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function g7(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Be({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Pe("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:tm(t[0],e).text,color:n}}});Be({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=tm(t[0],e),r=e.parser;++r.leftrightDepth;var a=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var i=gt(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:a,left:n.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{g7(e);for(var n=Zn(e.body,t,!0,["mopen","mclose"]),r=0,a=0,i=!1,l=0;l<n.length;l++)n[l].isMiddle?i=!0:(r=Math.max(n[l].height,r),a=Math.max(n[l].depth,a));r*=t.sizeMultiplier,a*=t.sizeMultiplier;var u;if(e.left==="."?u=q0(t,["mopen"]):u=li.leftRightDelim(e.left,r,a,t,e.mode,["mopen"]),n.unshift(u),i)for(var c=1;c<n.length;c++){var f=n[c],g=f.isMiddle;g&&(n[c]=li.leftRightDelim(g.delim,r,a,g.options,e.mode,[]))}var h;if(e.right===".")h=q0(t,["mclose"]);else{var x=e.rightColor?t.withColor(e.rightColor):t;h=li.leftRightDelim(e.right,r,a,x,e.mode,["mclose"])}return n.push(h),de.makeSpan(["minner"],n,t)},mathmlBuilder:(e,t)=>{g7(e);var n=ea(e.body,t);if(e.left!=="."){var r=new Ne.MathNode("mo",[ja(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var a=new Ne.MathNode("mo",[ja(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),n.push(a)}return Uy(n)}});Be({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=tm(t[0],e);if(!e.parser.leftrightDepth)throw new Pe("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=q0(t,[]);else{n=li.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?ja("|","text"):ja(e.delim,e.mode),r=new Ne.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var Yy=(e,t)=>{var n=de.wrapFragment(It(e.body,t),t),r=e.label.slice(1),a=t.sizeMultiplier,i,l=0,u=zt.isCharacterBox(e.body);if(r==="sout")i=de.makeSpan(["stretchy","sout"]),i.height=t.fontMetrics().defaultRuleThickness/a,l=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var c=xn({number:.6,unit:"pt"},t),f=xn({number:.35,unit:"ex"},t),g=t.havingBaseSizing();a=a/g.sizeMultiplier;var h=n.height+n.depth+c+f;n.style.paddingLeft=je(h/2+c);var x=Math.floor(1e3*h*a),b=BQ(x),E=new fi([new dl("phase",b)],{width:"400em",height:je(x/1e3),viewBox:"0 0 400000 "+x,preserveAspectRatio:"xMinYMin slice"});i=de.makeSvgSpan(["hide-tail"],[E],t),i.style.height=je(h),l=n.depth+c+f}else{/cancel/.test(r)?u||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var _=0,C=0,w=0;/box/.test(r)?(w=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),_=t.fontMetrics().fboxsep+(r==="colorbox"?0:w),C=_):r==="angl"?(w=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),_=4*w,C=Math.max(0,.25-n.depth)):(_=u?.2:0,C=_),i=pi.encloseSpan(n,r,_,C,t),/fbox|boxed|fcolorbox/.test(r)?(i.style.borderStyle="solid",i.style.borderWidth=je(w)):r==="angl"&&w!==.049&&(i.style.borderTopWidth=je(w),i.style.borderRightWidth=je(w)),l=n.depth+C,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}var N;if(e.backgroundColor)N=de.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:n,shift:0}]},t);else{var R=/cancel|phase/.test(r)?["svg-align"]:[];N=de.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:i,shift:l,wrapperClasses:R}]},t)}return/cancel/.test(r)&&(N.height=n.height,N.depth=n.depth),/cancel/.test(r)&&!u?de.makeSpan(["mord","cancel-lap"],[N],t):de.makeSpan(["mord"],[N],t)},Qy=(e,t)=>{var n=0,r=new Ne.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[nn(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+a+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};Be({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:a}=e,i=gt(t[0],"color-token").color,l=t[1];return{type:"enclose",mode:r.mode,label:a,backgroundColor:i,body:l}},htmlBuilder:Yy,mathmlBuilder:Qy});Be({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:a}=e,i=gt(t[0],"color-token").color,l=gt(t[1],"color-token").color,u=t[2];return{type:"enclose",mode:r.mode,label:a,backgroundColor:l,borderColor:i,body:u}},htmlBuilder:Yy,mathmlBuilder:Qy});Be({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});Be({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"enclose",mode:n.mode,label:r,body:a}},htmlBuilder:Yy,mathmlBuilder:Qy});Be({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var pC={};function Ns(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:i,mathmlBuilder:l}=e,u={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},c=0;c<n.length;++c)pC[n[c]]=u;i&&(Gh[t]=i),l&&(Yh[t]=l)}var mC={};function I(e,t){mC[e]=t}function x7(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var nm=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Pe("{"+e.envName+"} can be used only in display mode.")};function Xy(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function bl(e,t,n){var{hskipBeforeAndAfter:r,addJot:a,cols:i,arraystretch:l,colSeparationType:u,autoTag:c,singleRow:f,emptySingleRow:g,maxNumCols:h,leqno:x}=t;if(e.gullet.beginGroup(),f||e.gullet.macros.set("\\cr","\\\\\\relax"),!l){var b=e.gullet.expandMacroAsText("\\arraystretch");if(b==null)l=1;else if(l=parseFloat(b),!l||l<0)throw new Pe("Invalid \\arraystretch: "+b)}e.gullet.beginGroup();var E=[],_=[E],C=[],w=[],N=c!=null?[]:void 0;function R(){c&&e.gullet.macros.set("\\@eqnsw","1",!0)}function z(){N&&(e.gullet.macros.get("\\df@tag")?(N.push(e.subparse([new ma("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):N.push(!!c&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(R(),w.push(x7(e));;){var B=e.parseExpression(!1,f?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),B={type:"ordgroup",mode:e.mode,body:B},n&&(B={type:"styling",mode:e.mode,style:n,body:[B]}),E.push(B);var j=e.fetch().text;if(j==="&"){if(h&&E.length===h){if(f||u)throw new Pe("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(j==="\\end"){z(),E.length===1&&B.type==="styling"&&B.body[0].body.length===0&&(_.length>1||!g)&&_.pop(),w.length<_.length+1&&w.push([]);break}else if(j==="\\\\"){e.consume();var L=void 0;e.gullet.future().text!==" "&&(L=e.parseSizeGroup(!0)),C.push(L?L.value:null),z(),w.push(x7(e)),E=[],_.push(E),R()}else throw new Pe("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:l,body:_,cols:i,rowGaps:C,hskipBeforeAndAfter:r,hLinesBeforeRow:w,colSeparationType:u,tags:N,leqno:x}}function Ky(e){return e.slice(0,1)==="d"?"display":"text"}var Ps=function(t,n){var r,a,i=t.body.length,l=t.hLinesBeforeRow,u=0,c=new Array(i),f=[],g=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),h=1/n.fontMetrics().ptPerEm,x=5*h;if(t.colSeparationType&&t.colSeparationType==="small"){var b=n.havingStyle(We.SCRIPT).sizeMultiplier;x=.2778*(b/n.sizeMultiplier)}var E=t.colSeparationType==="CD"?xn({number:3,unit:"ex"},n):12*h,_=3*h,C=t.arraystretch*E,w=.7*C,N=.3*C,R=0;function z(Cr){for(var pn=0;pn<Cr.length;++pn)pn>0&&(R+=.25),f.push({pos:R,isDashed:Cr[pn]})}for(z(l[0]),r=0;r<t.body.length;++r){var B=t.body[r],j=w,L=N;u<B.length&&(u=B.length);var Y=new Array(B.length);for(a=0;a<B.length;++a){var Z=It(B[a],n);L<Z.depth&&(L=Z.depth),j<Z.height&&(j=Z.height),Y[a]=Z}var $=t.rowGaps[r],te=0;$&&(te=xn($,n),te>0&&(te+=N,L<te&&(L=te),te=0)),t.addJot&&(L+=_),Y.height=j,Y.depth=L,R+=j,Y.pos=R,R+=L+te,c[r]=Y,z(l[r+1])}var ee=R/2+n.fontMetrics().axisHeight,he=t.cols||[],ie=[],ne,H,re=[];if(t.tags&&t.tags.some(Cr=>Cr))for(r=0;r<i;++r){var J=c[r],Te=J.pos-ee,q=t.tags[r],G=void 0;q===!0?G=de.makeSpan(["eqn-num"],[],n):q===!1?G=de.makeSpan([],[],n):G=de.makeSpan([],Zn(q,n,!0),n),G.depth=J.depth,G.height=J.height,re.push({type:"elem",elem:G,shift:Te})}for(a=0,H=0;a<u||H<he.length;++a,++H){for(var oe=he[H]||{},M=!0;oe.type==="separator";){if(M||(ne=de.makeSpan(["arraycolsep"],[]),ne.style.width=je(n.fontMetrics().doubleRuleSep),ie.push(ne)),oe.separator==="|"||oe.separator===":"){var pe=oe.separator==="|"?"solid":"dashed",_e=de.makeSpan(["vertical-separator"],[],n);_e.style.height=je(R),_e.style.borderRightWidth=je(g),_e.style.borderRightStyle=pe,_e.style.margin="0 "+je(-g/2);var Re=R-ee;Re&&(_e.style.verticalAlign=je(-Re)),ie.push(_e)}else throw new Pe("Invalid separator type: "+oe.separator);H++,oe=he[H]||{},M=!1}if(!(a>=u)){var ve=void 0;(a>0||t.hskipBeforeAndAfter)&&(ve=zt.deflt(oe.pregap,x),ve!==0&&(ne=de.makeSpan(["arraycolsep"],[]),ne.style.width=je(ve),ie.push(ne)));var Ie=[];for(r=0;r<i;++r){var Ue=c[r],Qe=Ue[a];if(Qe){var rt=Ue.pos-ee;Qe.depth=Ue.depth,Qe.height=Ue.height,Ie.push({type:"elem",elem:Qe,shift:rt})}}Ie=de.makeVList({positionType:"individualShift",children:Ie},n),Ie=de.makeSpan(["col-align-"+(oe.align||"c")],[Ie]),ie.push(Ie),(a<u-1||t.hskipBeforeAndAfter)&&(ve=zt.deflt(oe.postgap,x),ve!==0&&(ne=de.makeSpan(["arraycolsep"],[]),ne.style.width=je(ve),ie.push(ne)))}}if(c=de.makeSpan(["mtable"],ie),f.length>0){for(var lt=de.makeLineSpan("hline",n,g),hn=de.makeLineSpan("hdashline",n,g),Zt=[{type:"elem",elem:c,shift:0}];f.length>0;){var lr=f.pop(),Gn=lr.pos-ee;lr.isDashed?Zt.push({type:"elem",elem:hn,shift:Gn}):Zt.push({type:"elem",elem:lt,shift:Gn})}c=de.makeVList({positionType:"individualShift",children:Zt},n)}if(re.length===0)return de.makeSpan(["mord"],[c],n);var Mn=de.makeVList({positionType:"individualShift",children:re},n);return Mn=de.makeSpan(["tag"],[Mn],n),de.makeFragment([c,Mn])},GX={c:"center ",l:"left ",r:"right "},Rs=function(t,n){for(var r=[],a=new Ne.MathNode("mtd",[],["mtr-glue"]),i=new Ne.MathNode("mtd",[],["mml-eqn-num"]),l=0;l<t.body.length;l++){for(var u=t.body[l],c=[],f=0;f<u.length;f++)c.push(new Ne.MathNode("mtd",[nn(u[f],n)]));t.tags&&t.tags[l]&&(c.unshift(a),c.push(a),t.leqno?c.unshift(i):c.push(i)),r.push(new Ne.MathNode("mtr",c))}var g=new Ne.MathNode("mtable",r),h=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);g.setAttribute("rowspacing",je(h));var x="",b="";if(t.cols&&t.cols.length>0){var E=t.cols,_="",C=!1,w=0,N=E.length;E[0].type==="separator"&&(x+="top ",w=1),E[E.length-1].type==="separator"&&(x+="bottom ",N-=1);for(var R=w;R<N;
vendor: 6,373 bytes, line 682
682R++)E[R].type==="align"?(b+=GX[E[R].align],C&&(_+="none "),C=!0):E[R].type==="separator"&&C&&(_+=E[R].separator==="|"?"solid ":"dashed ",C=!1);g.setAttribute("columnalign",b.trim()),/[sd]/.test(_)&&g.setAttribute("columnlines",_.trim())}if(t.colSeparationType==="align"){for(var z=t.cols||[],B="",j=1;j<z.length;j++)B+=j%2?"0em ":"1em ";g.setAttribute("columnspacing",B.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?g.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?g.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?g.setAttribute("columnspacing","0.5em"):g.setAttribute("columnspacing","1em");var L="",Y=t.hLinesBeforeRow;x+=Y[0].length>0?"left ":"",x+=Y[Y.length-1].length>0?"right ":"";for(var Z=1;Z<Y.length-1;Z++)L+=Y[Z].length===0?"none ":Y[Z][0]?"dashed ":"solid ";return/[sd]/.test(L)&&g.setAttribute("rowlines",L.trim()),x!==""&&(g=new Ne.MathNode("menclose",[g]),g.setAttribute("notation",x.trim())),t.arraystretch&&t.arraystretch<1&&(g=new Ne.MathNode("mstyle",[g]),g.setAttribute("scriptlevel","1")),g},gC=function(t,n){t.envName.indexOf("ed")===-1&&nm(t);var r=[],a=t.envName.indexOf("at")>-1?"alignat":"align",i=t.envName==="split",l=bl(t.parser,{cols:r,addJot:!0,autoTag:i?void 0:Xy(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:i?2:void 0,leqno:t.parser.settings.leqno},"display"),u,c=0,f={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var g="",h=0;h<n[0].body.length;h++){var x=gt(n[0].body[h],"textord");g+=x.text}u=Number(g),c=u*2}var b=!c;l.body.forEach(function(w){for(var N=1;N<w.length;N+=2){var R=gt(w[N],"styling"),z=gt(R.body[0],"ordgroup");z.body.unshift(f)}if(b)c<w.length&&(c=w.length);else{var B=w.length/2;if(u<B)throw new Pe("Too many math in a row: "+("expected "+u+", but got "+B),w[0])}});for(var E=0;E<c;++E){var _="r",C=0;E%2===1?_="l":E>0&&b&&(C=1),r[E]={type:"align",align:_,pregap:C,postgap:0}}return l.colSeparationType=b?"align":"alignat",l};Ns({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Jp(t[0]),r=n?[t[0]]:gt(t[0],"ordgroup").body,a=r.map(function(l){var u=$y(l),c=u.text;if("lcr".indexOf(c)!==-1)return{type:"align",align:c};if(c==="|")return{type:"separator",separator:"|"};if(c===":")return{type:"separator",separator:":"};throw new Pe("Unknown column alignment: "+c,l)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return bl(e.parser,i,Ky(e.envName))},htmlBuilder:Ps,mathmlBuilder:Rs});Ns({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("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var a=e.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),n=a.fetch().text,"lcr".indexOf(n)===-1)throw new Pe("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),r.cols=[{type:"align",align:n}]}}var i=bl(e.parser,r,Ky(e.envName)),l=Math.max(0,...i.body.map(u=>u.length));return i.cols=new Array(l).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:Ps,mathmlBuilder:Rs});Ns({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=bl(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Ps,mathmlBuilder:Rs});Ns({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Jp(t[0]),r=n?[t[0]]:gt(t[0],"ordgroup").body,a=r.map(function(l){var u=$y(l),c=u.text;if("lc".indexOf(c)!==-1)return{type:"align",align:c};throw new Pe("Unknown column alignment: "+c,l)});if(a.length>1)throw new Pe("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5};if(i=bl(e.parser,i,"script"),i.body.length>0&&i.body[0].length>1)throw new Pe("{subarray} can contain only one column");return i},htmlBuilder:Ps,mathmlBuilder:Rs});Ns({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}]},n=bl(e.parser,t,Ky(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Ps,mathmlBuilder:Rs});Ns({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:gC,htmlBuilder:Ps,mathmlBuilder:Rs});Ns({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&nm(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Xy(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return bl(e.parser,t,"display")},htmlBuilder:Ps,mathmlBuilder:Rs});Ns({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:gC,htmlBuilder:Ps,mathmlBuilder:Rs});Ns({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){nm(e);var t={autoTag:Xy(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return bl(e.parser,t,"display")},htmlBuilder:Ps,mathmlBuilder:Rs});Ns({type:"array",names:["CD"],props:{numArgs:0},handler(e){return nm(e),OX(e.parser)},htmlBuilder:Ps,mathmlBuilder:Rs});I("\\nonumber","\\gdef\\@eqnsw{0}");I("\\notag","\\nonumber");Be({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Pe(e.funcName+" valid only within array environment")}});var b7=pC;Be({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];if(a.type!=="ordgroup")throw new Pe("Invalid environment name",a);for(var i="",l=0;l<a.body.length;++l)i+=gt(a.body[l],"textord").text;if(r==="\\begin"){if(!b7.hasOwnProperty(i))throw new Pe("No such environment: "+i,a);var u=b7[i],{args:c,optArgs:f}=n.parseArguments("\\begin{"+i+"}",u),g={mode:n.mode,envName:i,parser:n},h=u.handler(g,c,f);n.expect("\\end",!1);var x=n.nextToken,b=gt(n.parseFunction(),"environment");
vendor: 17,052 bytes, line 682
682if(b.name!==i)throw new Pe("Mismatch: \\begin{"+i+"} matched by \\end{"+b.name+"}",x);return h}return{type:"environment",mode:n.mode,name:i,nameGroup:a}}});var xC=(e,t)=>{var n=e.font,r=t.withFont(n);return It(e.body,r)},bC=(e,t)=>{var n=e.font,r=t.withFont(n);return nn(e.body,r)},y7={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Be({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:n,funcName:r}=e,a=Qh(t[0]),i=r;return i in y7&&(i=y7[i]),{type:"font",mode:n.mode,font:i.slice(1),body:a}},htmlBuilder:xC,mathmlBuilder:bC});Be({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],a=zt.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:em(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:a}}});Be({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:a}=e,{mode:i}=n,l=n.parseExpression(!0,a),u="math"+r.slice(1);return{type:"font",mode:i,font:u,body:{type:"ordgroup",mode:n.mode,body:l}}},htmlBuilder:xC,mathmlBuilder:bC});var yC=(e,t)=>{var n=t;return e==="display"?n=n.id>=We.SCRIPT.id?n.text():We.DISPLAY:e==="text"&&n.size===We.DISPLAY.size?n=We.TEXT:e==="script"?n=We.SCRIPT:e==="scriptscript"&&(n=We.SCRIPTSCRIPT),n},Wy=(e,t)=>{var n=yC(e.size,t.style),r=n.fracNum(),a=n.fracDen(),i;i=t.havingStyle(r);var l=It(e.numer,i,t);if(e.continued){var u=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;l.height=l.height<u?u:l.height,l.depth=l.depth<c?c:l.depth}i=t.havingStyle(a);var f=It(e.denom,i,t),g,h,x;e.hasBarLine?(e.barSize?(h=xn(e.barSize,t),g=de.makeLineSpan("frac-line",t,h)):g=de.makeLineSpan("frac-line",t),h=g.height,x=g.height):(g=null,h=0,x=t.fontMetrics().defaultRuleThickness);var b,E,_;n.size===We.DISPLAY.size||e.size==="display"?(b=t.fontMetrics().num1,h>0?E=3*x:E=7*x,_=t.fontMetrics().denom1):(h>0?(b=t.fontMetrics().num2,E=x):(b=t.fontMetrics().num3,E=3*x),_=t.fontMetrics().denom2);var C;if(g){var N=t.fontMetrics().axisHeight;b-l.depth-(N+.5*h)<E&&(b+=E-(b-l.depth-(N+.5*h))),N-.5*h-(f.height-_)<E&&(_+=E-(N-.5*h-(f.height-_)));var R=-(N-.5*h);C=de.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:_},{type:"elem",elem:g,shift:R},{type:"elem",elem:l,shift:-b}]},t)}else{var w=b-l.depth-(f.height-_);w<E&&(b+=.5*(E-w),_+=.5*(E-w)),C=de.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:_},{type:"elem",elem:l,shift:-b}]},t)}i=t.havingStyle(n),C.height*=i.sizeMultiplier/t.sizeMultiplier,C.depth*=i.sizeMultiplier/t.sizeMultiplier;var z;n.size===We.DISPLAY.size?z=t.fontMetrics().delim1:n.size===We.SCRIPTSCRIPT.size?z=t.havingStyle(We.SCRIPT).fontMetrics().delim2:z=t.fontMetrics().delim2;var B,j;return e.leftDelim==null?B=q0(t,["mopen"]):B=li.customSizedDelim(e.leftDelim,z,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?j=de.makeSpan([]):e.rightDelim==null?j=q0(t,["mclose"]):j=li.customSizedDelim(e.rightDelim,z,!0,t.havingStyle(n),e.mode,["mclose"]),de.makeSpan(["mord"].concat(i.sizingClasses(t)),[B,de.makeSpan(["mfrac"],[C]),j],t)},Zy=(e,t)=>{var n=new Ne.MathNode("mfrac",[nn(e.numer,t),nn(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=xn(e.barSize,t);n.setAttribute("linethickness",je(r))}var a=yC(e.size,t.style);if(a.size!==t.style.size){n=new Ne.MathNode("mstyle",[n]);var i=a.size===We.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",i),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var l=[];if(e.leftDelim!=null){var u=new Ne.MathNode("mo",[new Ne.TextNode(e.leftDelim.replace("\\",""))]);u.setAttribute("fence","true"),l.push(u)}if(l.push(n),e.rightDelim!=null){var c=new Ne.MathNode("mo",[new Ne.TextNode(e.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),l.push(c)}return Uy(l)}return n};Be({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],i=t[1],l,u=null,c=null,f="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":l=!0;break;case"\\\\atopfrac":l=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":l=!1,u="(",c=")";break;case"\\\\bracefrac":l=!1,u="\\{",c="\\}";break;case"\\\\brackfrac":l=!1,u="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":f="display";break;case"\\tfrac":case"\\tbinom":f="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:a,denom:i,hasBarLine:l,leftDelim:u,rightDelim:c,size:f,barSize:null}},htmlBuilder:Wy,mathmlBuilder:Zy});Be({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],i=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:a,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});Be({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,a;switch(n){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:r}}});var v7=["display","text","script","scriptscript"],E7=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};Be({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],a=t[5],i=Qh(t[0]),l=i.type==="atom"&&i.family==="open"?E7(i.text):null,u=Qh(t[1]),c=u.type==="atom"&&u.family==="close"?E7(u.text):null,f=gt(t[2],"size"),g,h=null;f.isBlank?g=!0:(h=f.value,g=h.number>0);var x="auto",b=t[3];if(b.type==="ordgroup"){if(b.body.length>0){var E=gt(b.body[0],"textord");x=v7[Number(E.text)]}}else b=gt(b,"textord"),x=v7[Number(b.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:g,barSize:h,leftDelim:l,rightDelim:c,size:x}},htmlBuilder:Wy,mathmlBuilder:Zy});Be({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:a}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:gt(t[0],"size").value,token:a}}});Be({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],i=_Q(gt(t[1],"infix").size),l=t[2],u=i.number>0;return{type:"genfrac",mode:n.mode,numer:a,denom:l,continued:!1,hasBarLine:u,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Wy,mathmlBuilder:Zy});var vC=(e,t)=>{var n=t.style,r,a;e.type==="supsub"?(r=e.sup?It(e.sup,t.havingStyle(n.sup()),t):It(e.sub,t.havingStyle(n.sub()),t),a=gt(e.base,"horizBrace")):a=gt(e,"horizBrace");var i=It(a.base,t.havingBaseStyle(We.DISPLAY)),l=pi.svgSpan(a,t),u;if(a.isOver?(u=de.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:l}]},t),u.children[0].children[0].children[1].classes.push("svg-align")):(u=de.makeVList({positionType:"bottom",positionData:i.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:i}]},t),u.children[0].children[0].children[0].classes.push("svg-align")),r){var c=de.makeSpan(["mord",a.isOver?"mover":"munder"],[u],t);a.isOver?u=de.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:r}]},t):u=de.makeVList({positionType:"bottom",positionData:c.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:c}]},t)}return de.makeSpan(["mord",a.isOver?"mover":"munder"],[u],t)},YX=(e,t)=>{var n=pi.mathMLnode(e.label);return new Ne.MathNode(e.isOver?"mover":"munder",[nn(e.base,t),n])};Be({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:vC,mathmlBuilder:YX});Be({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],a=gt(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:n.mode,href:a,body:Nn(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=Zn(e.body,t,!1);return de.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=fl(e.body,t);return n instanceof fa||(n=new fa("mrow",[n])),n.setAttribute("href",e.href),n}});Be({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=gt(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<r.length;i++){var l=r[i];l==="~"&&(l="\\textasciitilde"),a.push({type:"textord",mode:"text",text:l})}var u={type:"text",mode:n.mode,font:"\\texttt",body:a};return{type:"href",mode:n.mode,href:r,body:Nn(u)}}});Be({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:Nn(t[0])}},htmlBuilder(e,t){var n=Zn(e.body,t,!1);return de.makeFragment(n)},mathmlBuilder(e,t){return new Ne.MathNode("mrow",ea(e.body,t))}});Be({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:a}=e,i=gt(t[0],"raw").string,l=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var u,c={};switch(r){case"\\htmlClass":c.class=i,u={command:"\\htmlClass",class:i};break;case"\\htmlId":c.id=i,u={command:"\\htmlId",id:i};break;case"\\htmlStyle":c.style=i,u={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var f=i.split(","),g=0;g<f.length;g++){var h=f[g].split("=");if(h.length!==2)throw new Pe("Error parsing key-value for \\htmlData");c["data-"+h[0].trim()]=h[1].trim()}u={command:"\\htmlData",attributes:c};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(u)?{type:"html",mode:n.mode,attributes:c,body:Nn(l)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=Zn(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var a=de.makeSpan(r,n,t);for(var i in e.attributes)i!=="class"&&e.attributes.hasOwnProperty(i)&&a.setAttribute(i,e.attributes[i]);return a},mathmlBuilder:(e,t)=>fl(e.body,t)});Be({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:Nn(t[0]),mathml:Nn(t[1])}},htmlBuilder:(e,t)=>{var n=Zn(e.html,t,!1);return de.makeFragment(n)},mathmlBuilder:(e,t)=>fl(e.mathml,t)});var w2=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Pe("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!zA(r))throw new Pe("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};Be({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,a={number:0,unit:"em"},i={number:.9,unit:"em"},l={number:0,unit:"em"},u="";if(n[0])for(var c=gt(n[0],"raw").string,f=c.split(","),g=0;g<f.length;g++){var h=f[g].split("=");if(h.length===2){var x=h[1].trim();switch(h[0].trim()){case"alt":u=x;break;case"width":a=w2(x);break;case"height":i=w2(x);break;case"totalheight":l=w2(x);break;default:throw new Pe("Invalid key: '"+h[0]+"' in \\includegraphics.")}}}var b=gt(t[0],"url").url;return u===""&&(u=b,u=u.replace(/^.*[\\/]/,""),u=u.substring(0,u.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:b})?{type:"includegraphics",mode:r.mode,alt:u,width:a,height:i,totalheight:l,src:b}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=xn(e.height,t),r=0;e.totalheight.number>0&&(r=xn(e.totalheight,t)-n);var a=0;e.width.number>0&&(a=xn(e.width,t));var i={height:je(n+r)};a>0&&(i.width=je(a)),r>0&&(i.verticalAlign=je(-r));var l=new YQ(e.src,e.alt,i);return l.height=n,l.depth=r,l},mathmlBuilder:(e,t)=>{var n=new Ne.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=xn(e.height,t),a=0;if(e.totalheight.number>0&&(a=xn(e.totalheight,t)-r,n.setAttribute("valign",je(-a))),n.setAttribute("height",je(r+a)),e.width.number>0){var i=xn(e.width,t);n.setAttribute("width",je(i))}return n.setAttribute("src",e.src),n}});Be({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,a=gt(t[0],"size");if(n.settings.strict){var i=r[1]==="m",l=a.value.unit==="mu";i?(l||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+a.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):l&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:a.value}},htmlBuilder(e,t){return de.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=xn(e.dimension,t);return new Ne.SpaceNode(n)}});Be({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:a}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=de.makeSpan([],[It(e.body,t)]),n=de.makeSpan(["inner"],[n],t)):n=de.makeSpan(["inner"],[It(e.body,t)]);var r=de.makeSpan(["fix"],[]),a=de.makeSpan([e.alignment],[n,r],t),i=de.makeSpan(["strut"]);return i.style.height=je(a.height+a.depth),a.depth&&(i.style.verticalAlign=je(-a.depth)),a.children.unshift(i),a=de.makeSpan(["thinbox"],[a],t),de.makeSpan(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var n=new Ne.MathNode("mpadded",[nn(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});Be({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,a=r.mode;r.switchMode("math");var i=n==="\\("?"\\)":"$",l=r.parseExpression(!1,i);return r.expect(i),r.switchMode(a),{type:"styling",mode:r.mode,style:"text",body:l}}});Be({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Pe("Mismatched "+e.funcName)}});var S7=(e,t)=>{switch(t.style.size){case We.DISPLAY.size:return e.display;case We.TEXT.size:return e.text;case We.SCRIPT.size:return e.script;case We.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Be({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Nn(t[0]),text:Nn(t[1]),script:Nn(t[2]),scriptscript:Nn(t[3])}},htmlBuilder:(e,t)=>{var n=S7(e,t),r=Zn(n,t,!1);return de.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=S7(e,t);return fl(n,t)}});var EC=(e,t,n,r,a,i,l)=>{e=de.makeSpan([],[e]);var u=n&&zt.isCharacterBox(n),c,f;if(t){var g=It(t,r.havingStyle(a.sup()),r);f={elem:g,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-g.depth)}}if(n){var h=It(n,r.havingStyle(a.sub()),r);c={elem:h,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-h.height)}}var x;if(f&&c){var b=r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+l;x=de.makeVList({positionType:"bottom",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:je(-i)},{type:"kern",size:c.kern},{type:"elem",elem:e},{type:"kern",size:f.kern},{type:"elem",elem:f.elem,marginLeft:je(i)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(c){var E=e.height-l;x=de.makeVList({positionType:"top",positionData:E,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:je(-i)},{type:"kern",size:c.kern},{type:"elem",elem:e}]},r)}else if(f){var _=e.depth+l;x=de.makeVList({positionType:"bottom",positionData:_,children:[{type:"elem",elem:e},{type:"kern",size:f.kern},{type:"elem",elem:f.elem,marginLeft:je(i)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var C=[x];if(c&&i!==0&&!u){var w=de.makeSpan(["mspace"],[],r);w.style.marginRight=je(i),C.unshift(w)}return de.makeSpan(["mop","op-limits"],C,r)},SC=["\\smallint"],Wu=(e,t)=>
vendor: 4,906 bytes, line 682
682{var n,r,a=!1,i;e.type==="supsub"?(n=e.sup,r=e.sub,i=gt(e.base,"op"),a=!0):i=gt(e,"op");var l=t.style,u=!1;l.size===We.DISPLAY.size&&i.symbol&&!SC.includes(i.name)&&(u=!0);var c;if(i.symbol){var f=u?"Size2-Regular":"Size1-Regular",g="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(g=i.name.slice(1),i.name=g==="oiint"?"\\iint":"\\iiint"),c=de.makeSymbol(i.name,f,"math",t,["mop","op-symbol",u?"large-op":"small-op"]),g.length>0){var h=c.italic,x=de.staticSvg(g+"Size"+(u?"2":"1"),t);c=de.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:x,shift:u?.08:0}]},t),i.name="\\"+g,c.classes.unshift("mop"),c.italic=h}}else if(i.body){var b=Zn(i.body,t,!0);b.length===1&&b[0]instanceof La?(c=b[0],c.classes[0]="mop"):c=de.makeSpan(["mop"],b,t)}else{for(var E=[],_=1;_<i.name.length;_++)E.push(de.mathsym(i.name[_],i.mode,t));c=de.makeSpan(["mop"],E,t)}var C=0,w=0;return(c instanceof La||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift&&(C=(c.height-c.depth)/2-t.fontMetrics().axisHeight,w=c.italic),a?EC(c,n,r,t,l,w,C):(C&&(c.style.position="relative",c.style.top=je(C)),c)},pd=(e,t)=>{var n;if(e.symbol)n=new fa("mo",[ja(e.name,e.mode)]),SC.includes(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new fa("mo",ea(e.body,t));else{n=new fa("mi",[new _s(e.name.slice(1))]);var r=new fa("mo",[ja("⁡","text")]);e.parentIsSupSub?n=new fa("mrow",[n,r]):n=KA([n,r])}return n},QX={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Be({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:n,funcName:r}=e,a=r;return a.length===1&&(a=QX[a]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Wu,mathmlBuilder:pd});Be({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Nn(r)}},htmlBuilder:Wu,mathmlBuilder:pd});var XX={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Be({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:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Wu,mathmlBuilder:pd});Be({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Wu,mathmlBuilder:pd});Be({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=XX[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Wu,mathmlBuilder:pd});var _C=(e,t)=>{var n,r,a=!1,i;e.type==="supsub"?(n=e.sup,r=e.sub,i=gt(e.base,"operatorname"),a=!0):i=gt(e,"operatorname");var l;if(i.body.length>0){for(var u=i.body.map(h=>{var x=h.text;return typeof x=="string"?{type:"textord",mode:h.mode,text:x}:h}),c=Zn(u,t.withFont("mathrm"),!0),f=0;f<c.length;f++){var g=c[f];g instanceof La&&(g.text=g.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}l=de.makeSpan(["mop"],c,t)}else l=de.makeSpan(["mop"],[],t);return a?EC(l,n,r,t,t.style,0,0):l},KX=(e,t)=>{for(var n=ea(e.body,t.withFont("mathrm")),r=!0,a=0;a<n.length;a++){var i=n[a];if(!(i instanceof Ne.SpaceNode))if(i instanceof Ne.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var l=i.children[0];i.children.length===1&&l instanceof Ne.TextNode?l.text=l.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){var u=n.map(g=>g.toText()).join("");n=[new Ne.TextNode(u)]}var c=new Ne.MathNode("mi",n);c.setAttribute("mathvariant","normal");var f=new Ne.MathNode("mo",[ja("⁡","text")]);return e.parentIsSupSub?new Ne.MathNode("mrow",[c,f]):Ne.newDocumentFragment([c,f])};Be({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"operatorname",mode:n.mode,body:Nn(a),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:_C,mathmlBuilder:KX}
vendor: 11,002 bytes, line 682
682);I("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");mo({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?de.makeFragment(Zn(e.body,t,!1)):de.makeSpan(["mord"],Zn(e.body,t,!0),t)},mathmlBuilder(e,t){return fl(e.body,t,!0)}});Be({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=It(e.body,t.havingCrampedStyle()),r=de.makeLineSpan("overline-line",t),a=t.fontMetrics().defaultRuleThickness,i=de.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r},{type:"kern",size:a}]},t);return de.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var n=new Ne.MathNode("mo",[new Ne.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Ne.MathNode("mover",[nn(e.body,t),n]);return r.setAttribute("accent","true"),r}});Be({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:Nn(r)}},htmlBuilder:(e,t)=>{var n=Zn(e.body,t.withPhantom(),!1);return de.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=ea(e.body,t);return new Ne.MathNode("mphantom",n)}});Be({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=de.makeSpan([],[It(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=de.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),de.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=ea(Nn(e.body),t),r=new Ne.MathNode("mphantom",n),a=new Ne.MathNode("mpadded",[r]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}});Be({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=de.makeSpan(["inner"],[It(e.body,t.withPhantom())]),r=de.makeSpan(["fix"],[]);return de.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=ea(Nn(e.body),t),r=new Ne.MathNode("mphantom",n),a=new Ne.MathNode("mpadded",[r]);return a.setAttribute("width","0px"),a}});Be({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=gt(t[0],"size").value,a=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:a}},htmlBuilder(e,t){var n=It(e.body,t),r=xn(e.dy,t);return de.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new Ne.MathNode("mpadded",[nn(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});Be({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Be({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,a=n[0],i=gt(t[0],"size"),l=gt(t[1],"size");return{type:"rule",mode:r.mode,shift:a&&gt(a,"size").value,width:i.value,height:l.value}},htmlBuilder(e,t){var n=de.makeSpan(["mord","rule"],[],t),r=xn(e.width,t),a=xn(e.height,t),i=e.shift?xn(e.shift,t):0;return n.style.borderRightWidth=je(r),n.style.borderTopWidth=je(a),n.style.bottom=je(i),n.width=r,n.height=a+i,n.depth=-i,n.maxFontSize=a*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=xn(e.width,t),r=xn(e.height,t),a=e.shift?xn(e.shift,t):0,i=t.color&&t.getColor()||"black",l=new Ne.MathNode("mspace");l.setAttribute("mathbackground",i),l.setAttribute("width",je(n)),l.setAttribute("height",je(r));var u=new Ne.MathNode("mpadded",[l]);return a>=0?u.setAttribute("height",je(a)):(u.setAttribute("height",je(a)),u.setAttribute("depth",je(-a))),u.setAttribute("voffset",je(a)),u}});function TC(e,t,n){for(var r=Zn(e,t,!1),a=t.sizeMultiplier/n.sizeMultiplier,i=0;i<r.length;i++){var l=r[i].classes.indexOf("sizing");l<0?Array.prototype.push.apply(r[i].classes,t.sizingClasses(n)):r[i].classes[l+1]==="reset-size"+t.size&&(r[i].classes[l+1]="reset-size"+n.size),r[i].height*=a,r[i].depth*=a}return de.makeFragment(r)}var _7=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],WX=(e,t)=>{var n=t.havingSize(e.size);return TC(e.body,n,t)};Be({type:"sizing",names:_7,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:a}=e,i=a.parseExpression(!1,n);return{type:"sizing",mode:a.mode,size:_7.indexOf(r)+1,body:i}},htmlBuilder:WX,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=ea(e.body,n),a=new Ne.MathNode("mstyle",r);return a.setAttribute("mathsize",je(n.sizeMultiplier)),a}});Be({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,a=!1,i=!1,l=n[0]&&gt(n[0],"ordgroup");if(l)for(var u="",c=0;c<l.body.length;++c){var f=l.body[c];if(u=f.text,u==="t")a=!0;else if(u==="b")i=!0;else{a=!1,i=!1;break}}else a=!0,i=!0;var g=t[0];return{type:"smash",mode:r.mode,body:g,smashHeight:a,smashDepth:i}},htmlBuilder:(e,t)=>{var n=de.makeSpan([],[It(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var a=0;a<n.children.length;a++)n.children[a].depth=0;var i=de.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return de.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var n=new Ne.MathNode("mpadded",[nn(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});Be({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,a=n[0],i=t[0];return{type:"sqrt",mode:r.mode,body:i,index:a}},htmlBuilder(e,t){var n=It(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=de.wrapFragment(n,t);var r=t.fontMetrics(),a=r.defaultRuleThickness,i=a;t.style.id<We.TEXT.id&&(i=t.fontMetrics().xHeight);var l=a+i/4,u=n.height+n.depth+l+a,{span:c,ruleWidth:f,advanceWidth:g}=li.sqrtImage(u,t),h=c.height-f;h>n.height+n.depth+l&&(l=(l+h-n.height-n.depth)/2);var x=c.height-n.height-l-f;n.style.paddingLeft=je(g);var b=de.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+x)},{type:"elem",elem:c},{type:"kern",size:f}]},t);if(e.index){var E=t.havingStyle(We.SCRIPTSCRIPT),_=It(e.index,E,t),C=.6*(b.height-b.depth),w=de.makeVList({positionType:"shift",positionData:-C,children:[{type:"elem",elem:_}]},t),N=de.makeSpan(["root"],[w]);return de.makeSpan(["mord","sqrt"],[N,b],t)}else return de.makeSpan(["mord","sqrt"],[b],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Ne.MathNode("mroot",[nn(n,t),nn(r,t)]):new Ne.MathNode("msqrt",[nn(n,t)])}});var T7={display:We.DISPLAY,text:We.TEXT,script:We.SCRIPT,scriptscript:We.SCRIPTSCRIPT};Be({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:a}=e,i=a.parseExpression(!0,n),l=r.slice(1,r.length-5);return{type:"styling",mode:a.mode,style:l,body:i}},htmlBuilder(e,t){var n=T7[e.style],r=t.havingStyle(n).withFont("");return TC(e.body,r,t)},mathmlBuilder(e,t){var n=T7[e.style],r=t.havingStyle(n),a=ea(e.body,r),i=new Ne.MathNode("mstyle",a),l={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},u=l[e.style];return i.setAttribute("scriptlevel",u[0]),i.setAttribute("displaystyle",u[1]),i}});var ZX=function(t,n){var r=t.base;if(r)if(r.type==="op"){var a=r.limits&&(n.style.size===We.DISPLAY.size||r.alwaysHandleSupSub);return a?Wu:null}else if(r.type==="operatorname"){var i=r.alwaysHandleSupSub&&(n.style.size===We.DISPLAY.size||r.limits);return i?_C:null}else{if(r.type==="accent")return zt.isCharacterBox(r.base)?Vy:null;if(r.type==="horizBrace"){var l=!t.sub;return l===r.isOver?vC:null}else return null}else return null};mo({type:"supsub",htmlBuilder(e,t){var n=ZX(e,t);if(n)return n(e,t);var{base:r,sup:a,sub:i}=e,l=It(r,t),u,c,f=t.fontMetrics(),g=0,h=0,x=r&&zt.isCharacterBox(r);if(a){var b=t.havingStyle(t.style.sup());u=It(a,b,t),x||(g=l.height-b.fontMetrics().supDrop*b.sizeMultiplier/t.sizeMultiplier)}if(i){var E=t.havingStyle(t.style.sub());c=It(i,E,t),x||(h=l.depth+E.fontMetrics().subDrop*E.sizeMultiplier/t.sizeMultiplier)}var _;t.style===We.DISPLAY?_=f.sup1:t.style.cramped?_=f.sup3:_=f.sup2;var C=t.sizeMultiplier,w=je(.5/f.ptPerEm/C),N=null;if(c){var R=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(l instanceof La||R)&&(N=je(-l.italic))}var z;if(u&&c){g=Math.max(g,_,u.depth+.25*f.xHeight),h=Math.max(h,f.sub2);var B=f.defaultRuleThickness,j=4*B;if(g-u.depth-(c.height-h)<j){h=j-(g-u.depth)+c.height;var L=.8*f.xHeight-(g-u.depth);L>0&&(g+=L,h-=L)}var Y=[{type:"elem",elem:c,shift:h,marginRight:w,marginLeft:N},{type:"elem",elem:u,shift:-g,marginRight:w}];z=de.makeVList({positionType:"individualShift",children:Y},t)}else if(c){h=Math.max(h,f.sub1,c.height-.8*f.xHeight);var Z=[{type:"elem",elem:c,marginLeft:N,marginRight:w}];z=de.makeVList({positionType:"shift",positionData:h,children:Z},t)}else if(u)g=Math.max(g,_,u.depth+.25*f.xHeight),z=de.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:u,marginRight:w}]},t);else throw new Error("supsub must have either sup or sub.");var $=Wx(l,"right")||"mord";return de.makeSpan([$],[l,de.makeSpan(["msupsub"],[z])],t)},mathmlBuilder(e,t){var n=!1,r,a;e.base&&e.base.type==="horizBrace"&&(a=!!e.sup,a===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var i=[nn(e.base,t)];e.sub&&i.push(nn(e.sub,t)),e.sup&&i.push(nn(e.sup,t));var l;if(n)l=r?"mover":"munder";else if(e.sub)if(e.sup){var f=e.base;f&&f.type==="op"&&f.limits&&t.style===We.DISPLAY||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(t.style===We.DISPLAY||f.limits)?l="munderover":l="msubsup"}else{var c=e.base;c&&c.type==="op"&&c.limits&&(t.style===We.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||t.style===We.DISPLAY)?l="munder":l="msub"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===We.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===We.DISPLAY)?l="mover":l="msup"}return new Ne.MathNode(l,i)}});mo({type:"atom",htmlBuilder(e,t){return de.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Ne.MathNode("mo",[ja(e.text,e.mode)]);if(e.family==="bin"){var r=qy(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}
vendor: 9,344 bytes, lines 682-686
682else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var wC={mi:"italic",mn:"normal",mtext:"normal"};mo({type:"mathord",htmlBuilder(e,t){return de.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new Ne.MathNode("mi",[ja(e.text,e.mode,t)]),r=qy(e,t)||"italic";return r!==wC[n.type]&&n.setAttribute("mathvariant",r),n}});mo({type:"textord",htmlBuilder(e,t){return de.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=ja(e.text,e.mode,t),r=qy(e,t)||"normal",a;return e.mode==="text"?a=new Ne.MathNode("mtext",[n]):/[0-9]/.test(e.text)?a=new Ne.MathNode("mn",[n]):e.text==="\\prime"?a=new Ne.MathNode("mo",[n]):a=new Ne.MathNode("mi",[n]),r!==wC[a.type]&&a.setAttribute("mathvariant",r),a}});var A2={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},C2={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};mo({type:"spacing",htmlBuilder(e,t){if(C2.hasOwnProperty(e.text)){var n=C2[e.text].className||"";if(e.mode==="text"){var r=de.makeOrd(e,t,"textord");return r.classes.push(n),r}else return de.makeSpan(["mspace",n],[de.mathsym(e.text,e.mode,t)],t)}else{if(A2.hasOwnProperty(e.text))return de.makeSpan(["mspace",A2[e.text]],[],t);throw new Pe('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(C2.hasOwnProperty(e.text))n=new Ne.MathNode("mtext",[new Ne.TextNode(" ")]);else{if(A2.hasOwnProperty(e.text))return new Ne.MathNode("mspace");throw new Pe('Unknown type of space "'+e.text+'"')}return n}});var w7=()=>{var e=new Ne.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};mo({type:"tag",mathmlBuilder(e,t){var n=new Ne.MathNode("mtable",[new Ne.MathNode("mtr",[w7(),new Ne.MathNode("mtd",[fl(e.body,t)]),w7(),new Ne.MathNode("mtd",[fl(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var A7={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},C7={"\\textbf":"textbf","\\textmd":"textmd"},JX={"\\textit":"textit","\\textup":"textup"},k7=(e,t)=>{var n=e.font;if(n){if(A7[n])return t.withTextFontFamily(A7[n]);if(C7[n])return t.withTextFontWeight(C7[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(JX[n])};Be({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:n,funcName:r}=e,a=t[0];return{type:"text",mode:n.mode,body:Nn(a),font:r}},htmlBuilder(e,t){var n=k7(e,t),r=Zn(e.body,n,!0);return de.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=k7(e,t);return fl(e.body,n)}});Be({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=It(e.body,t),r=de.makeLineSpan("underline-line",t),a=t.fontMetrics().defaultRuleThickness,i=de.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:a},{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n}]},t);return de.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var n=new Ne.MathNode("mo",[new Ne.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Ne.MathNode("munder",[nn(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});Be({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=It(e.body,t),r=t.fontMetrics().axisHeight,a=.5*(n.height-r-(n.depth+r));return de.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new Ne.MathNode("mpadded",[nn(e.body,t)],["vcenter"])}});Be({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Pe("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=N7(e),r=[],a=t.havingStyle(t.style.text()),i=0;i<n.length;i++){var l=n[i];l==="~"&&(l="\\textasciitilde"),r.push(de.makeSymbol(l,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return de.makeSpan(["mord","text"].concat(a.sizingClasses(t)),de.tryCombineChars(r),a)},mathmlBuilder(e,t){var n=new Ne.TextNode(N7(e)),r=new Ne.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var N7=e=>e.body.replace(/ /g,e.star?"␣":" "),tl=QA,AC=`[ \r
683	]`,eK="\\\\[a-zA-Z@]+",tK="\\\\[^\uD800-\uDFFF]",nK="("+eK+")"+AC+"*",rK=`\\\\(
684|[ \r	]+
685?)[ \r	]*`,tb="[̀-ͯ]",aK=new RegExp(tb+"+$"),sK="("+AC+"+)|"+(rK+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(tb+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(tb+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+nK)+("|"+tK+")");class P7{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(sK,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new ma("EOF",new Wr(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new Pe("Unexpected character: '"+t[n]+"'",new ma(t[n],new Wr(this,n,n+1)));var a=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=t.indexOf(`
686`,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 ma(a,new Wr(this,n,this.tokenRegex.lastIndex))}}class iK{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Pe("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}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,n,r){if(r===void 0&&(r=!1),r){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]=n)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(t)&&(i[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var lK=mC;I("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});I("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});I("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});I("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});I("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});I("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");I("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var R7={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};I("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Pe("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=R7[t.text],r==null||r>=n)throw new Pe("Invalid base-"+n+" digit "+t.text);for(var a;(a=R7[e.future().text])!=null&&a<n;)r*=n,r+=a,e.popToken()}return"\\@char{"+r+"}"});var Jy=(e,t,n,r)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new Pe("\\newcommand's first argument must be a macro name");var i=a[0].text,l=e.isDefined(i);if(l&&!t)throw new Pe("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!l&&!n)throw new Pe("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var u=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var c="",f=e.expandNextToken();f.text!=="]"&&f.text!=="EOF";)c+=f.text,f=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new Pe("Invalid number of arguments: "+c);u=parseInt(c),a=e.consumeArg().tokens}return l&&r||e.macros.set(i,{tokens:a,numArgs:u}),""};I("\\newcommand",e=>Jy(e,!1,!0,!1));I("\\renewcommand",e=>Jy(e,!0,!1,!1));I("\\providecommand",e=>Jy(e,!0,!0,!0));I("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});I("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});I("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),tl[n],sn.math[n],sn.text[n]),""});I("\\bgroup","{");I("\\egroup","}");
686I("~","\\nobreakspace");I("\\lq","`");I("\\rq","'");I("\\aa","\\r a");I("\\AA","\\r A");I("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");I("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");I("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");I("ℬ","\\mathscr{B}");I("ℰ","\\mathscr{E}");I("ℱ","\\mathscr{F}");I("ℋ","\\mathscr{H}");I("ℐ","\\mathscr{I}");I("ℒ","\\mathscr{L}");I("ℳ","\\mathscr{M}");I("ℛ","\\mathscr{R}");I("ℭ","\\mathfrak{C}");I("ℌ","\\mathfrak{H}");I("ℨ","\\mathfrak{Z}");I("\\Bbbk","\\Bbb{k}");I("·","\\cdotp");I("\\llap","\\mathllap{\\textrm{#1}}");I("\\rlap","\\mathrlap{\\textrm{#1}}");I("\\clap","\\mathclap{\\textrm{#1}}");I("\\mathstrut","\\vphantom{(}");I("\\underbar","\\underline{\\text{#1}}");I("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');I("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");I("\\ne","\\neq");I("≠","\\neq");I("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");I("∉","\\notin");I("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");I("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");I("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");I("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");I("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");I("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");I("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");I("⟂","\\perp");I("‼","\\mathclose{!\\mkern-0.8mu!}");I("∌","\\notni");I("⌜","\\ulcorner");I("⌝","\\urcorner");I("⌞","\\llcorner");I("⌟","\\lrcorner");I("©","\\copyright");I("®","\\textregistered");I("️","\\textregistered");
vendor: 4,526 bytes, line 686
686I("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');I("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');I("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');I("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');I("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");I("⋮","\\vdots");I("\\varGamma","\\mathit{\\Gamma}");I("\\varDelta","\\mathit{\\Delta}");I("\\varTheta","\\mathit{\\Theta}");I("\\varLambda","\\mathit{\\Lambda}");I("\\varXi","\\mathit{\\Xi}");I("\\varPi","\\mathit{\\Pi}");I("\\varSigma","\\mathit{\\Sigma}");I("\\varUpsilon","\\mathit{\\Upsilon}");I("\\varPhi","\\mathit{\\Phi}");I("\\varPsi","\\mathit{\\Psi}");I("\\varOmega","\\mathit{\\Omega}");I("\\substack","\\begin{subarray}{c}#1\\end{subarray}");I("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");I("\\boxed","\\fbox{$\\displaystyle{#1}$}");I("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");I("\\implies","\\DOTSB\\;\\Longrightarrow\\;");I("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");I("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");I("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var O7={",":"\\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"};I("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in O7?t=O7[n]:(n.slice(0,4)==="\\not"||n in sn.math&&["bin","rel"].includes(sn.math[n].group))&&(t="\\dotsb"),t});var e4={")":!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};I("\\dotso",function(e){var t=e.future().text;return t in e4?"\\ldots\\,":"\\ldots"});I("\\dotsc",function(e){var t=e.future().text;return t in e4&&t!==","?"\\ldots\\,":"\\ldots"});I("\\cdots",function(e){var t=e.future().text;return t in e4?"\\@cdots\\,":"\\@cdots"});I("\\dotsb","\\cdots");I("\\dotsm","\\cdots");I("\\dotsi","\\!\\cdots");I("\\dotsx","\\ldots\\,");I("\\DOTSI","\\relax");I("\\DOTSB","\\relax");I("\\DOTSX","\\relax");I("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");I("\\,","\\tmspace+{3mu}{.1667em}");I("\\thinspace","\\,");I("\\>","\\mskip{4mu}");I("\\:","\\tmspace+{4mu}{.2222em}");I("\\medspace","\\:");I("\\;","\\tmspace+{5mu}{.2777em}");I("\\thickspace","\\;");I("\\!","\\tmspace-{3mu}{.1667em}");I("\\negthinspace","\\!");I("\\negmedspace","\\tmspace-{4mu}{.2222em}");I("\\negthickspace","\\tmspace-{5mu}{.277em}");I("\\enspace","\\kern.5em ");I("\\enskip","\\hskip.5em\\relax");I("\\quad","\\hskip1em\\relax");I("\\qquad","\\hskip2em\\relax");I("\\tag","\\@ifstar\\tag@literal\\tag@paren");I("\\tag@paren","\\tag@literal{({#1})}");I("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Pe("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});I("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");I("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");I("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");I("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");I("\\newline","\\\\\\relax");I("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var CC=je(Ss["Main-Regular"][84][1]-.7*Ss["Main-Regular"][65][1]);I("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+CC+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");
686I("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+CC+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");I("\\hspace","\\@ifstar\\@hspacer\\@hspace");I("\\@hspace","\\hskip #1\\relax");I("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");I("\\ordinarycolon",":");I("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");I("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');I("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');I("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');I("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');I("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');I("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');I("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');I("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');I("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');I("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');I("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');I("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');I("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');I("∷","\\dblcolon");I("∹","\\eqcolon");I("≔","\\coloneqq");I("≕","\\eqqcolon");I("⩴","\\Coloneqq");I("\\ratio","\\vcentcolon");I("\\coloncolon","\\dblcolon");I("\\colonequals","\\coloneqq");I("\\coloncolonequals","\\Coloneqq");I("\\equalscolon","\\eqqcolon");I("\\equalscoloncolon","\\Eqqcolon");I("\\colonminus","\\coloneq");I("\\coloncolonminus","\\Coloneq");I("\\minuscolon","\\eqcolon");I("\\minuscoloncolon","\\Eqcolon");I("\\coloncolonapprox","\\Colonapprox");I("\\coloncolonsim","\\Colonsim");I("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");I("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");I("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");I("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");I("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");I("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");I("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");I("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");I("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");I("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");I("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");I("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");I("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");I("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");I("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");I("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");I("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");I("\\nleqq","\\html@mathml{\\@nleqq}{≰}");I("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");I("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");I("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");I("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");I("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");I("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");I("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");I("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");I("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");I("\\imath","\\html@mathml{\\@imath}{ı}");I("\\jmath","\\html@mathml{\\@jmath}{ȷ}");I("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");I("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");I("⟦","\\llbracket");I("⟧","\\rrbracket");I("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}
686{\\mathopen{\\char`⦃}}");I("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");I("⦃","\\lBrace");I("⦄","\\rBrace");I("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");I("⦵","\\minuso");I("\\darr","\\downarrow");I("\\dArr","\\Downarrow");I("\\Darr","\\Downarrow");I("\\lang","\\langle");I("\\rang","\\rangle");I("\\uarr","\\uparrow");I("\\uArr","\\Uparrow");I("\\Uarr","\\Uparrow");I("\\N","\\mathbb{N}");I("\\R","\\mathbb{R}");I("\\Z","\\mathbb{Z}");I("\\alef","\\aleph");I("\\alefsym","\\aleph");I("\\Alpha","\\mathrm{A}");I("\\Beta","\\mathrm{B}");I("\\bull","\\bullet");I("\\Chi","\\mathrm{X}");I("\\clubs","\\clubsuit");I("\\cnums","\\mathbb{C}");I("\\Complex","\\mathbb{C}");I("\\Dagger","\\ddagger");I("\\diamonds","\\diamondsuit");I("\\empty","\\emptyset");I("\\Epsilon","\\mathrm{E}");I("\\Eta","\\mathrm{H}");I("\\exist","\\exists");I("\\harr","\\leftrightarrow");I("\\hArr","\\Leftrightarrow");I("\\Harr","\\Leftrightarrow");I("\\hearts","\\heartsuit");I("\\image","\\Im");I("\\infin","\\infty");I("\\Iota","\\mathrm{I}");I("\\isin","\\in");I("\\Kappa","\\mathrm{K}");I("\\larr","\\leftarrow");I("\\lArr","\\Leftarrow");I("\\Larr","\\Leftarrow");I("\\lrarr","\\leftrightarrow");I("\\lrArr","\\Leftrightarrow");I("\\Lrarr","\\Leftrightarrow");I("\\Mu","\\mathrm{M}");I("\\natnums","\\mathbb{N}");I("\\Nu","\\mathrm{N}");I("\\Omicron","\\mathrm{O}");I("\\plusmn","\\pm");I("\\rarr","\\rightarrow");I("\\rArr","\\Rightarrow");I("\\Rarr","\\Rightarrow");I("\\real","\\Re");I("\\reals","\\mathbb{R}");I("\\Reals","\\mathbb{R}");I("\\Rho","\\mathrm{P}");I("\\sdot","\\cdot");I("\\sect","\\S");I("\\spades","\\spadesuit");I("\\sub","\\subset");I("\\sube","\\subseteq");I("\\supe","\\supseteq");I("\\Tau","\\mathrm{T}");I("\\thetasym","\\vartheta");I("\\weierp","\\wp");I("\\Zeta","\\mathrm{Z}");I("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");I("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");I("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");I("\\bra","\\mathinner{\\langle{#1}|}");I("\\ket","\\mathinner{|{#1}\\rangle}");I("\\braket","\\mathinner{\\langle{#1}\\rangle}");I("\\Bra","\\left\\langle#1\\right|");I("\\Ket","\\left|#1\\right\\rangle");var kC=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,a=t.consumeArg().tokens,i=t.consumeArg().tokens,l=t.macros.get("|"),u=t.macros.get("\\|");t.macros.beginGroup();var c=h=>x=>{e&&(x.macros.set("|",l),a.length&&x.macros.set("\\|",u));var b=h;if(!h&&a.length){var E=x.future();E.text==="|"&&(x.popToken(),b=!0)}return{tokens:b?a:r,numArgs:0}};t.macros.set("|",c(!1)),a.length&&t.macros.set("\\|",c(!0));var f=t.consumeArg().tokens,g=t.expandTokens([...i,...f,...n]);return t.macros.endGroup(),{tokens:g.reverse(),numArgs:0}};I("\\bra@ket",kC(!1));I("\\bra@set",kC(!0));I("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");I("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");I("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");I("\\angln","{\\angl n}");I("\\blue","\\textcolor{##6495ed}{#1}");I("\\orange","\\textcolor{##ffa500}{#1}");I("\\pink","\\textcolor{##ff00af}{#1}");I("\\red","\\textcolor{##df0030}{#1}");I("\\green","\\textcolor{##28ae7b}{#1}");I("\\gray","\\textcolor{gray}{#1}");I("\\purple","\\textcolor{##9d38bd}{#1}");I("\\blueA","\\textcolor{##ccfaff}{#1}");I("\\blueB","\\textcolor{##80f6ff}{#1}");I("\\blueC","\\textcolor{##63d9ea}{#1}");I("\\blueD","\\textcolor{##11accd}{#1}");I("\\blueE","\\textcolor{##0c7f99}{#1}");I("\\tealA","\\textcolor{##94fff5}{#1}");I("\\tealB","\\textcolor{##26edd5}{#1}");I("\\tealC","\\textcolor{##01d1c1}{#1}");I("\\tealD","\\textcolor{##01a995}{#1}");I("\\tealE","\\textcolor{##208170}{#1}");I("\\greenA","\\textcolor{##b6ffb0}{#1}");I("\\greenB","\\textcolor{##8af281}{#1}");I("\\greenC","\\textcolor{##74cf70}{#1}");I("\\greenD","\\textcolor{##1fab54}{#1}");I("\\greenE","\\textcolor{##0d923f}{#1}");I("\\goldA","\\textcolor{##ffd0a9}{#1}");I("\\goldB","\\textcolor{##ffbb71}{#1}");I("\\goldC","\\textcolor{##ff9c39}{#1}");I("\\goldD","\\textcolor{##e07d10}{#1}");I("\\goldE","\\textcolor{##a75a05}{#1}");I("\\redA","\\textcolor{##fca9a9}{#1}");I("\\redB","\\textcolor{##ff8482}{#1}");I("\\redC","\\textcolor{##f9685d}{#1}");I("\\redD","\\textcolor{##e84d39}{#1}");
vendor: 4,555 bytes, line 686
686I("\\redE","\\textcolor{##bc2612}{#1}");I("\\maroonA","\\textcolor{##ffbde0}{#1}");I("\\maroonB","\\textcolor{##ff92c6}{#1}");I("\\maroonC","\\textcolor{##ed5fa6}{#1}");I("\\maroonD","\\textcolor{##ca337c}{#1}");I("\\maroonE","\\textcolor{##9e034e}{#1}");I("\\purpleA","\\textcolor{##ddd7ff}{#1}");I("\\purpleB","\\textcolor{##c6b9fc}{#1}");I("\\purpleC","\\textcolor{##aa87ff}{#1}");I("\\purpleD","\\textcolor{##7854ab}{#1}");I("\\purpleE","\\textcolor{##543b78}{#1}");I("\\mintA","\\textcolor{##f5f9e8}{#1}");I("\\mintB","\\textcolor{##edf2df}{#1}");I("\\mintC","\\textcolor{##e0e5cc}{#1}");I("\\grayA","\\textcolor{##f6f7f7}{#1}");I("\\grayB","\\textcolor{##f0f1f2}{#1}");I("\\grayC","\\textcolor{##e3e5e6}{#1}");I("\\grayD","\\textcolor{##d6d8da}{#1}");I("\\grayE","\\textcolor{##babec2}{#1}");I("\\grayF","\\textcolor{##888d93}{#1}");I("\\grayG","\\textcolor{##626569}{#1}");I("\\grayH","\\textcolor{##3b3e40}{#1}");I("\\grayI","\\textcolor{##21242c}{#1}");I("\\kaBlue","\\textcolor{##314453}{#1}");I("\\kaGreen","\\textcolor{##71B307}{#1}");var NC={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class oK{constructor(t,n,r){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=n,this.expansionCount=0,this.feed(t),this.macros=new iK(lK,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new P7(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 n,r,a;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:a,end:r}=this.consumeArg(["]"])}else({tokens:a,start:n,end:r}=this.consumeArg());return this.pushToken(new ma("EOF",r.loc)),this.pushTokens(a),new ma("",Wr.range(n,r))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var a=this.future(),i,l=0,u=0;do{if(i=this.popToken(),n.push(i),i.text==="{")++l;else if(i.text==="}"){if(--l,l===-1)throw new Pe("Extra }",i)}else if(i.text==="EOF")throw new Pe("Unexpected end of input in a macro argument, expected '"+(t&&r?t[u]:"}")+"'",i);if(t&&r)if((l===0||l===1&&t[u]==="{")&&i.text===t[u]){if(++u,u===t.length){n.splice(-u,u);break}}else u=0}while(l!==0||r);return a.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:a,end:i}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Pe("The length of delimiters doesn't match the number of args!");for(var r=n[0],a=0;a<r.length;a++){var i=this.popToken();if(r[a]!==i.text)throw new Pe("Use of the macro doesn't match its definition",i)}}for(var l=[],u=0;u<t;u++)l.push(this.consumeArg(n&&n[u+1]).tokens);return l}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Pe("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,a=n.noexpand?null:this._getExpansion(r);if(a==null||t&&a.unexpandable){if(t&&a==null&&r[0]==="\\"&&!this.isDefined(r))throw new Pe("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var i=a.tokens,l=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var u=i.length-1;u>=0;--u){var c=i[u];if(c.text==="#"){if(u===0)throw new Pe("Incomplete placeholder at end of macro body",c);if(c=i[--u],c.text==="#")i.splice(u+1,1);else if(/^[1-9]$/.test(c.text))i.splice(u,2,...l[+c.text-1]);else throw new Pe("Not a valid argument number",c)}}}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 ma(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),n.push(a)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];
vendor: 5,115 bytes, line 686
686if(r!=null&&r!==13)return}var a=typeof n=="function"?n(this):n;if(typeof a=="string"){var i=0;if(a.indexOf("#")!==-1)for(var l=a.replace(/##/g,"");l.indexOf("#"+(i+1))!==-1;)++i;for(var u=new P7(a,this.settings),c=[],f=u.lex();f.text!=="EOF";)c.push(f),f=u.lex();c.reverse();var g={tokens:c,numArgs:i};return g}return a}isDefined(t){return this.macros.has(t)||tl.hasOwnProperty(t)||sn.math.hasOwnProperty(t)||sn.text.hasOwnProperty(t)||NC.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:tl.hasOwnProperty(t)&&!tl[t].primitive}}var M7=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,ih=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),k2={"́":{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"}},D7={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ
vendor: 16,763 bytes, lines 686-688
686:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let PC=class RC{constructor(t,n){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 oK(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Pe("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&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 n=this.nextToken;this.consume(),this.gullet.pushToken(new ma("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(RC.endOfExpression.indexOf(a.text)!==-1||n&&a.text===n||t&&tl[a.text]&&tl[a.text].infix)break;var i=this.parseAtom(n);if(i){if(i.type==="internal")continue}else break;r.push(i)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,a=0;a<t.length;a++)if(t[a].type==="infix"){if(n!==-1)throw new Pe("only one infix operator per group",t[a].token);n=a,r=t[a].replaceWith}if(n!==-1&&r){var i,l,u=t.slice(0,n),c=t.slice(n+1);u.length===1&&u[0].type==="ordgroup"?i=u[0]:i={type:"ordgroup",mode:this.mode,body:u},c.length===1&&c[0].type==="ordgroup"?l=c[0]:l={type:"ordgroup",mode:this.mode,body:c};var f;return r==="\\\\abovefrac"?f=this.callFunction(r,[i,t[n],l],[]):f=this.callFunction(r,[i,l],[]),[f]}else return t}handleSupSubscript(t){var n=this.fetch(),r=n.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 Pe("Expected group after '"+r+"'",n);return a}formatUnsupportedCmd(t){for(var n=[],r=0;r<t.length;r++)n.push({type:"textord",mode:"text",text:t[r]});var a={type:"text",mode:this.mode,body:n},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return i}parseAtom(t){var n=this.parseGroup("atom",t);if(n?.type==="internal"||this.mode==="text")return n;for(var r,a;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(n&&n.type==="op"){var l=i.text==="\\limits";n.limits=l,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=i.text==="\\limits");else throw new Pe("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(r)throw new Pe("Double superscript",i);r=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(a)throw new Pe("Double subscript",i);a=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(r)throw new Pe("Double superscript",i);var u={type:"textord",mode:this.mode,text:"\\prime"},c=[u];for(this.consume();this.fetch().text==="'";)c.push(u),this.consume();this.fetch().text==="^"&&c.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:c}}else if(ih[i.text]){var f=M7.test(i.text),g=[];for(g.push(new ma(ih[i.text])),this.consume();;){var h=this.fetch().text;if(!ih[h]||M7.test(h)!==f)break;g.unshift(new ma(ih[h])),this.consume()}var x=this.subparse(g);f?a={type:"ordgroup",mode:"math",body:x}:r={type:"ordgroup",mode:"math",body:x}}else break}return r||a?{type:"supsub",mode:this.mode,base:n,sup:r,sub:a}:n}parseFunction(t,n){var r=this.fetch(),a=r.text,i=tl[a];if(!i)return null;if(this.consume(),n&&n!=="atom"&&!i.allowedInArgument)throw new Pe("Got function '"+a+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!i.allowedInText)throw new Pe("Can't use function '"+a+"' in text mode",r);if(this.mode==="math"&&i.allowedInMath===!1)throw new Pe("Can't use function '"+a+"' in math mode",r);var{args:l,optArgs:u}=this.parseArguments(a,i);return this.callFunction(a,l,u,r,t)}callFunction(t,n,r,a,i){var l={funcName:t,parser:this,token:a,breakOnTokenText:i},u=tl[t];if(u&&u.handler)return u.handler(l,n,r);throw new Pe("No function handler for "+t)}parseArguments(t,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var a=[],i=[],l=0;l<r;l++){var u=n.argTypes&&n.argTypes[l],c=l<n.numOptionalArgs;(n.primitive&&u==null||n.type==="sqrt"&&l===1&&i[0]==null)&&(u="primitive");var f=this.parseGroupOfType("argument to '"+t+"'",u,c);if(c)i.push(f);else if(f!=null)a.push(f);else throw new Pe("Null argument, please report this as a bug")}return{args:a,optArgs:i}}parseGroupOfType(t,n,r){switch(n){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,n);case"hbox":{var a=this.parseArgumentGroup(r,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text"}:null}case"raw":{var i=this.parseStringGroup("raw",r);return i!=null?{type:"raw",mode:"text",string:i.text}:null}case"primitive":{if(r)throw new Pe("A primitive argument cannot be optional");var l=this.parseGroup(t);if(l==null)throw new Pe("Expected group as "+t,this.fetch());return l}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new Pe("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var a="",i;(i=this.fetch()).text!=="EOF";)a+=i.text,this.consume();return this.consume(),r.text=a,r}parseRegexGroup(t,n){for(var r=this.fetch(),a=r,i="",l;(l=this.fetch()).text!=="EOF"&&t.test(i+l.text);)a=l,i+=a.text,this.consume();if(i==="")throw new Pe("Invalid "+n+": '"+r.text+"'",r);return r.range(a,i)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var r=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!r)throw new Pe("Invalid color: '"+n.text+"'",n);var a=r[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(t){var n,r=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",t),!n)return null;!t&&n.text.length===0&&(n.text="0pt",r=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!a)throw new Pe("Invalid size: '"+n.text+"'",n);var i={number:+(a[1]+a[2]),unit:a[3]};if(!zA(i))throw new Pe("Invalid unit: '"+i.unit+"'",n);return{type:"size",mode:this.mode,value:i,isBlank:r}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(t,n){var r=this.gullet.scanArgument(t);if(r==null)return null;var a=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var l={type:"ordgroup",mode:this.mode,loc:r.loc,body:i};return n&&this.switchMode(a),l}parseGroup(t,n){var r=this.fetch(),a=r.text,i;if(a==="{"||a==="\\begingroup"){this.consume();var l=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var u=this.parseExpression(!1,l),c=this.fetch();this.expect(l),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:Wr.range(r,c),body:u,semisimple:a==="\\begingroup"||void 0}}else if(i=this.parseFunction(n,t)||this.parseSymbol(),i==null&&a[0]==="\\"&&!NC.hasOwnProperty(a)){if(this.settings.throwOnError)throw new Pe("Undefined control sequence: "+a,r);i=this.formatUnsupportedCmd(a),this.consume()}return i}formLigatures(t){for(var n=t.length-1,r=0;r<n;++r){var a=t[r],i=a.text;i==="-"&&t[r+1].text==="-"&&(r+1<n&&t[r+2].text==="-"?(t.splice(r,3,{type:"textord",mode:"text",loc:Wr.range(a,t[r+2]),text:"---"}),n-=2):(t.splice(r,2,{type:"textord",mode:"text",loc:Wr.range(a,t[r+1]),text:"--"}),n-=1)),(i==="'"||i==="`")&&t[r+1].text===i&&(t.splice(r,2,{type:"textord",mode:"text",loc:Wr.range(a,t[r+1]),text:i+i}),n-=1)}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),a=r.charAt(0)==="*";if(a&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new Pe(`\\verb assertion failed --
687                    please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:a}}D7.hasOwnProperty(n[0])&&!sn[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=D7[n[0]]+n.slice(1));var i=aK.exec(n);i&&(n=n.substring(0,i.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var l;if(sn[this.mode][n]){this.settings.strict&&this.mode==="math"&&Kx.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var u=sn[this.mode][n].group,c=Wr.range(t),f;if(KQ.hasOwnProperty(u)){var g=u;f={type:"atom",mode:this.mode,family:g,loc:c,text:n}}else f={type:u,mode:this.mode,loc:c,text:n};l=f}else if(n.charCodeAt(0)>=128)this.settings.strict&&(jA(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),l={type:"textord",mode:"text",loc:Wr.range(t),text:n};else return null;if(this.consume(),i)for(var h=0;h<i[0].length;h++){var x=i[0][h];if(!k2[x])throw new Pe("Unknown accent ' "+x+"'",t);var b=k2[x][this.mode]||k2[x].text;if(!b)throw new Pe("Accent "+x+" unsupported in "+this.mode+" mode",t);l={type:"accent",mode:this.mode,loc:Wr.range(t),label:b,isStretchy:!1,isShifty:!0,base:l}}return l}};PC.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var t4=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new PC(t,n);delete r.gullet.macros.current["\\df@tag"];var a=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new Pe("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:r.subparse([new ma("\\df@tag")])}]}return a},n4=function(t,n,r){n.textContent="";var a=rm(t,r).toNode();n.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."),n4=function(){throw new Pe("KaTeX doesn't work in quirks mode.")});var OC=function(t,n){var r=rm(t,n).toMarkup();return r},MC=function(t,n){var r=new jy(n);return t4(t,r)},DC=function(t,n,r){if(r.throwOnError||!(t instanceof Pe))throw t;var a=de.makeSpan(["katex-error"],[new La(n)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+r.errorColor),a},rm=function(t,n){var r=new jy(n);try{var a=t4(t,r);return yX(a,t,r)}catch(i){return DC(i,t,r)}},IC=function(t,n){var r=new jy(n);try{var a=t4(t,r);return vX(a,t,r)}catch(i){return DC(i,t,r)}},LC="0.16.25",jC={Span:hd,Anchor:Fy,SymbolNode:La,SvgNode:fi,PathNode:dl,LineNode:Xx},nb={version:LC,render:n4,renderToString:OC,ParseError:Pe,SETTINGS_SCHEMA:E0,__parse:MC,__renderToDomTree:rm,__renderToHTMLTree:IC,__setFontMetrics:BA,__defineSymbol:T,__defineFunction:Be,__defineMacro:I,__domTree:jC};const Voe=Object.freeze(Object.defineProperty({__proto__:null,ParseError:Pe,SETTINGS_SCHEMA:E0,__defineFunction:Be,__defineMacro:I,__defineSymbol:T,__domTree:jC,__parse:MC,__renderToDomTree:rm,__renderToHTMLTree:IC,__setFontMetrics:BA,default:nb,get render(){return n4},renderToString:OC,version:LC},Symbol.toStringTag,{value:"Module"})),uK={},cK=[];function dK(e){const t=e||uK;return function(n,r){Dy(n,"element",function(a,i){const l=Array.isArray(a.properties.className)?a.properties.className:cK,u=l.includes("language-math"),c=l.includes("math-display"),f=l.includes("math-inline");let g=c;if(!u&&!c&&!f)return;let h=i[i.length-1],x=a;if(a.tagName==="code"&&u&&h&&h.type==="element"&&h.tagName==="pre"&&(x=h,h=i[i.length-2],g=!0),!h)return;const b=uQ(x,{whitespace:"pre"});let E;try{E=nb.renderToString(b,{...t,displayMode:g,throwOnError:!0})}catch(C){const w=C,N=w.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...i,a],cause:w,place:a.position,ruleId:N,source:"rehype-katex"});try{E=nb.renderToString(b,{...t,displayMode:g,strict:"ignore",throwOnError:!1})}catch{E=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(C)},children:[{type:"text",value:b}]}]}}typeof E=="string"&&(E=tQ(E).children);const _=h.children.indexOf(x);return h.children.splice(_,1,...E),qh})}}function fK(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=t.length){let l=0;for(;;){let u=n[l];if(u===void 0){const c=I7(t,n[l-1]);u=c===-1?t.length+1:c+1,n[l]=u}if(u>i)return{line:l+1,column:i-(l>0?n[l-1]:0)+1,offset:i};l++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const u=n[n.length-1],c=I7(t,u),f=c===-1?t.length+1:c+1;if(u===f)break;n.push(f)}const l=(i.line>1?n[i.line-2]:0)+i.column-1;if(l<n[i.line-1])return l}}}function I7(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
688`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const BC={}.hasOwnProperty,hK=Object.prototype;function pK(e,t){const n=t||{};return r4({file:n.file||void 0,location:!1,schema:n.space==="svg"?gl:od,verbose:n.verbose||!1},e)}function r4(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},wh(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:zC(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),l=fK(i),u=l.toPoint(0),c=l.toPoint(i.length);n.position={start:u,end:c}}return n}case"#documentType":{const r=t;return n={type:"doctype"},wh(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},wh(e,r,n),n}default:return n=mK(e,t),n}}function zC(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=r4(e,t[n]);r.push(a)}return r}function mK(e,t){const n=e.schema;e.schema=t.namespaceURI===Es.svg?gl:od;let r=-1;const a={};for(;++r<t.attrs.length;){const u=t.attrs[r],c=(u.prefix?u.prefix+":":"")+u.name;BC.call(hK,c)||(a[c]=u.value)}const l=(e.schema.space==="svg"?NA:kA)(t.tagName,a,zC(e,t.childNodes));if(wh(e,t,l),l.tagName==="template"){const u=t,c=u.sourceCodeLocation,f=c&&c.startTag&&Su(c.startTag),g=c&&c.endTag&&Su(c.endTag),h=r4(e,u.content);f&&g&&e.file&&(h.position={start:f.end,end:g.start}),l.content=h}return e.schema=n,l}function wh(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=gK(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function gK(e,t,n){const r=Su(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const i={};let l;if(n.attrs)for(l in n.attrs)BC.call(n.attrs,l)&&(i[Vp(e.schema,l).property]=Su(n.attrs[l]));n.startTag;const u=Su(n.startTag),c=n.endTag?Su(n.endTag):void 0,f={opening:u};c&&(f.closing=c),f.properties=i,t.data={position:f}}}return r}function Su(e){const t=L7({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=L7({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function L7(e){return e.line&&e.column?e:void 0}class md{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}md.prototype.property={};md.prototype.normal={};md.prototype.space=null;function FC(e,t){const n={},r={};let a=-1;for(;++a<e.length;
vendor: 4,191 bytes, line 688
688)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new md(n,r,t)}function rb(e){return e.toLowerCase()}class Ba{constructor(t,n){this.property=t,this.attribute=n}}Ba.prototype.space=null;Ba.prototype.boolean=!1;Ba.prototype.booleanish=!1;Ba.prototype.overloadedBoolean=!1;Ba.prototype.number=!1;Ba.prototype.commaSeparated=!1;Ba.prototype.spaceSeparated=!1;Ba.prototype.commaOrSpaceSeparated=!1;Ba.prototype.mustUseProperty=!1;Ba.prototype.defined=!1;let xK=0;const ct=go(),zn=go(),HC=go(),Me=go(),an=go(),Nu=go(),ua=go();function go(){return 2**++xK}const ab=Object.freeze(Object.defineProperty({__proto__:null,boolean:ct,booleanish:zn,commaOrSpaceSeparated:ua,commaSeparated:Nu,number:Me,overloadedBoolean:HC,spaceSeparated:an},Symbol.toStringTag,{value:"Module"})),N2=Object.keys(ab);class a4 extends Ba{constructor(t,n,r,a){let i=-1;if(super(t,n),j7(this,"space",a),typeof r=="number")for(;++i<N2.length;){const l=N2[i];j7(this,N2[i],(r&ab[l])===ab[l])}}}a4.prototype.defined=!0;function j7(e,t,n){n&&(e[t]=n)}const bK={}.hasOwnProperty;function Zu(e){const t={},n={};let r;for(r in e.properties)if(bK.call(e.properties,r)){const a=e.properties[r],i=new a4(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[rb(r)]=r,n[rb(i.attribute)]=r}return new md(t,n,e.space)}const UC=Zu({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}}),qC=Zu({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function $C(e,t){return t in e?e[t]:t}function VC(e,t){return $C(e,t.toLowerCase())}const GC=Zu({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:VC,properties:{xmlns:null,xmlnsXLink:null}}),YC=Zu({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:zn,ariaAutoComplete:null,ariaBusy:zn,ariaChecked:zn,ariaColCount:Me,ariaColIndex:Me,ariaColSpan:Me,ariaControls:an,ariaCurrent:null,ariaDescribedBy:an,ariaDetails:null,ariaDisabled:zn,ariaDropEffect:an,ariaErrorMessage:null,ariaExpanded:zn,ariaFlowTo:an,ariaGrabbed:zn,ariaHasPopup:null,ariaHidden:zn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:an,ariaLevel:Me,ariaLive:null,ariaModal:zn,ariaMultiLine:zn,ariaMultiSelectable:zn,ariaOrientation:null,ariaOwns:an,ariaPlaceholder:null,ariaPosInSet:Me,ariaPressed:zn,ariaReadOnly:zn,ariaRelevant:null,ariaRequired:zn,ariaRoleDescription:an,ariaRowCount:Me,ariaRowIndex:Me,ariaRowSpan:Me,ariaSelected:zn,ariaSetSize:Me,ariaSort:null,ariaValueMax:Me,ariaValueMin:Me,ariaValueNow:Me,ariaValueText:null,role:null}}),yK=Zu({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:VC,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Nu,acceptCharset:an,accessKey:an,action:null,allow:null,allowFullScreen:ct,allowPaymentRequest:ct,allowUserMedia:ct,alt:null,as:null,async:ct,autoCapitalize:null,autoComplete:an,autoFocus:ct,autoPlay:ct,blocking:an,capture:null,charSet:null,checked:ct,cite:null,className:an,cols:Me,colSpan:null,content:null,contentEditable:zn,controls:ct,controlsList:an,coords:Me|Nu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ct,defer:ct,dir:null,dirName:null,disabled:ct,download:HC,draggable:zn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ct,formTarget:null,headers:an,height:Me,hidden:ct,high:Me,href:null,hrefLang:null,htmlFor:an,httpEquiv:an,id:null,imageSizes:null,imageSrcSet:null,inert:ct,inputMode:null,integrity:null,is:null,isMap:ct,itemId:null,itemProp:an,itemRef:an,itemScope:ct,itemType:an,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ct,low:Me,manifest:null,max:null,maxLength:Me,media:null,method:null,min:null,minLength:Me,multiple:ct,muted:ct,name:null,nonce:null,noModule:ct,noValidate:ct,onAbort:null,onAfterPrint:null,onAuxCl
688ick: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:ct,optimum:Me,pattern:null,ping:an,placeholder:null,playsInline:ct,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ct,referrerPolicy:null,rel:an,required:ct,reversed:ct,rows:Me,rowSpan:Me,sandbox:an,scope:null,scoped:ct,seamless:ct,selected:ct,shadowRootClonable:ct,shadowRootDelegatesFocus:ct,shadowRootMode:null,shape:null,size:Me,sizes:null,slot:null,span:Me,spellCheck:zn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Me,step:null,style:null,tabIndex:Me,target:null,title:null,translate:null,type:null,typeMustMatch:ct,useMap:null,value:zn,width:Me,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:an,axis:null,background:null,bgColor:null,border:Me,borderColor:null,bottomMargin:Me,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ct,declare:ct,event:null,face:null,frame:null,frameBorder:null,hSpace:Me,leftMargin:Me,link:null,longDesc:null,lowSrc:null,marginHeight:Me,marginWidth:Me,noResize:ct,noHref:ct,noShade:ct,noWrap:ct,object:null,profile:null,prompt:null,rev:null,rightMargin:Me,rules:null,scheme:null,scrolling:zn,standby:null,summary:null,text:null,topMargin:Me,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Me,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ct,disableRemotePlayback:ct,prefix:null,property:null,results:Me,security:null,unselectable:null}}),vK=Zu({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
688-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:$C,properties:{about:ua,accentHeight:Me,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Me,amplitude:Me,arabicForm:null,ascent:Me,attributeName:null,attributeType:null,azimuth:Me,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Me,by:null,calcMode:null,capHeight:Me,className:an,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:Me,diffuseConstant:Me,direction:null,display:null,dur:null,divisor:Me,dominantBaseline:null,download:ct,dx:null,dy:null,edgeMode:null,editable:null,elevation:Me,enableBackgroun
vendor: 5,416 bytes, line 688
688d:null,end:null,event:null,exponent:Me,externalResourcesRequired:null,fill:null,fillOpacity:Me,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:Nu,g2:Nu,glyphName:Nu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Me,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Me,horizOriginX:Me,horizOriginY:Me,id:null,ideographic:Me,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Me,k:Me,k1:Me,k2:Me,k3:Me,k4:Me,kernelMatrix:ua,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Me,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:Me,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Me,overlineThickness:Me,paintOrder:null,panose1:null,path:null,pathLength:Me,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:an,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Me,pointsAtY:Me,pointsAtZ:Me,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ua,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ua,rev:ua,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ua,requiredFeatures:ua,requiredFonts:ua,requiredFormats:ua,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:Me,specularExponent:Me,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Me,strikethroughThickness:Me,string:null,stroke:null,strokeDashArray:ua,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Me,strokeOpacity:Me,strokeWidth:null,style:null,surfaceScale:Me,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ua,tabIndex:Me,tableValues:null,target:null,targetX:Me,targetY:Me,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ua,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Me,underlineThickness:Me,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Me,values:null,vAlphabetic:Me,vMathematical:Me,vectorEffect:null,vHanging:Me,vIdeographic:Me,version:null,vertAdvY:Me,vertOriginX:Me,vertOriginY:Me,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Me,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),EK=/^data[-\w.:]+$/i,B7=/-[a-z]/g,SK=/[A-Z]/g;function _K(e,t){const n=rb(t);let r=t,a=Ba;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&EK.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(B7,wK);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!B7.test(i)){let l=i.replace(SK,TK);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=a4}return new a(r,t)}function TK(e){return"-"+e.toLowerCase()}function wK(e){return e.charAt(1).toUpperCase()}const AK=FC([qC,UC,GC,YC,yK],"html"),QC=FC([qC,UC,GC,YC,vK],"svg"),z7={}.hasOwnProperty;function s4(e,t){const n=t||{};
vendor: 4,594 bytes, line 688
688function r(a,...i){let l=r.invalid;const u=r.handlers;if(a&&z7.call(a,e)){const c=String(a[e]);l=z7.call(u,c)?u[c]:r.unknown}if(l)return l.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const CK={},kK={}.hasOwnProperty,XC=s4("type",{handlers:{root:PK,element:IK,text:MK,comment:DK,doctype:OK}});function NK(e,t){const r=(t||CK).space;return XC(e,r==="svg"?QC:AK)}function PK(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=i4(e.children,n,t),Ju(e,n),n}function RK(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=i4(e.children,n,t),Ju(e,n),n}function OK(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Ju(e,t),t}function MK(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Ju(e,t),t}function DK(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Ju(e,t),t}function IK(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=QC);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&kK.call(e.properties,i)){const c=LK(r,i,e.properties[i]);c&&a.push(c)}}const l=r.space,u={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Es[l],childNodes:[],parentNode:null};return u.childNodes=i4(e.children,u,r),Ju(e,u),e.tagName==="template"&&e.content&&(u.content=RK(e.content,r)),u}function LK(e,t,n){const r=_K(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Ey(n):_y(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=Es[r.space]}return a}function i4(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=XC(e[r],n);i.parentNode=t,a.push(i)}return a}function Ju(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const KC=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],jK=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]),dn="�";var F;(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"})(F||(F={}));const Yr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function WC(e){return e>=55296&&e<=57343}function BK(e){return e>=56320&&e<=57343}function zK(e,t){return(e-55296)*1024+9216+t}function ZC(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function JC(e){return e>=64976&&e<=65007||jK.has(e)}var xe;(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.invali
vendor: 6,673 bytes, line 688
688dFirstCharacterOfTagName="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.invalidCharacterSequenceAfterDoctypeName="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"})(xe||(xe={}));const FK=65536;class HK{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=FK,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,n){const{line:r,col:a,offset:i}=this,l=a+n,u=i+n;return{code:t,startLine:r,endLine:r,startCol:l,endCol:l,startOffset:u,endOffset:u}}_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 n=this.html.charCodeAt(this.pos+1);if(BK(n))return this.pos++,this._addGap(),zK(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,F.EOF;return this._err(xe.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,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,F.EOF;const r=this.html.charCodeAt(n);return r===F.CARRIAGE_RETURN?F.LINE_FEED:r}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,F.EOF;let t=this.html.charCodeAt(this.pos);return t===F.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,F.LINE_FEED):t===F.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,WC(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===F.LINE_FEED||t===F.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){ZC(t)?this._err(xe.controlCharacterInInputStream):JC(t)&&this._err(xe.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var yt;(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"})(yt||(yt={}));function ek(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const UK=new Uint16Array('
vendor: 16,129 bytes, line 688
688ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\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 688
688䐻Ȁ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 688
688astЃ⹧⹲຅脀¶;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;怌
688'.split("").map(e=>e.charCodeAt(0))),qK=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 $K(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=qK.get(e))!==null&&t!==void 0?t:e}var sr;(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"})(sr||(sr={}));const VK=32;var nl;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(nl||(nl={}));function sb(e){return e>=sr.ZERO&&e<=sr.NINE}function GK(e){return e>=sr.UPPER_A&&e<=sr.UPPER_F||e>=sr.LOWER_A&&e<=sr.LOWER_F}function YK(e){return e>=sr.UPPER_A&&e<=sr.UPPER_Z||e>=sr.LOWER_A&&e<=sr.LOWER_Z||sb(e)}function QK(e){return e===sr.EQUALS||YK(e)}var rr;(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"})(rr||(rr={}));var ri;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ri||(ri={}));class XK{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=rr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ri.Strict}startEntity(t){this.decodeMode=t,this.state=rr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case rr.EntityStart:return t.charCodeAt(n)===sr.NUM?(this.state=rr.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=rr.NamedEntity,this.stateNamedEntity(t,n));case rr.NumericStart:return this.stateNumericStart(t,n);case rr.NumericDecimal:return this.stateNumericDecimal(t,n);case rr.NumericHex:return this.stateNumericHex(t,n);case rr.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|VK)===sr.LOWER_X?(this.state=rr.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=rr.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+Number.parseInt(t.substr(n,i),a),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(sb(a)||GK(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(sb(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===sr.SEMI)this.consumed+=1;else if(this.decodeMode===ri.Strict)return 0;return this.emitCodePoint($K(this.result),this.consumed),this.errors&&(t!==sr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&nl.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const l=t.charCodeAt(n);if(this.treeIndex=KK(r,a,this.treeIndex+Math.max(1,i),l),this.treeIndex<0)return this.result===0||this.decodeMode===ri.Attribute&&(i===0||QK(l))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&nl.VALUE_LENGTH)>>14,i!==0){if(l===sr.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==ri.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&nl.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~nl.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case rr.NamedEntity:return this.result!==0&&(this.decodeMode!==ri.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case rr.NumericDecimal:return this.emitNumericEntity(0,2);case rr.NumericHex:return this.emitNumericEntity(0,3);case rr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case rr.EntityStart:return 0}}}function KK(e,t,n,r){const a=(t&nl.BRANCH_LENGTH)>>7,i=t&nl.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const c=r-i;return c<0||c>=a?-1:e[n+c]-1}let l=n,u=l+a-1;for(;l<=u;){const c=l+u>>>1,f=e[c];if(f<r)l=c+1;else if(f>r)u=c-1;else return e[c+a]}return-1}var Ae;(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/"})(Ae||(Ae={}));var Wl;(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"})(Wl||(Wl={}));var Ra;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ra||(Ra={}));var ue;(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
688ike",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"})(ue||(ue={}));var S;(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"})(S||(S={}));const WK=new Map([[ue.A,S.A],[ue.ADDRESS,S.ADDRESS],[ue.ANNOTATION_XML,S.ANNOTATION_XML],[ue.APPLET,S.APPLET],[ue.AREA,S.AREA],[ue.ARTICLE,S.ARTICLE],[ue.ASIDE,S.ASIDE],[ue.B,S.B],[ue.BASE,S.BASE],[ue.BASEFONT,S.BASEFONT],[ue.BGSOUND,S.BGSOUND],[ue.BIG,S.BIG],[ue.BLOCKQUOTE,S.BLOCKQUOTE],[ue.BODY,S.BODY],[ue.BR,S.BR],[ue.BUTTON,S.BUTTON],[ue.CAPTION,S.CAPTION],[ue.CENTER,S.CENTER],[ue.CODE,S.CODE],[ue.COL,S.COL],[ue.COLGROUP,S.COLGROUP],[ue.DD,S.DD],[ue.DESC,S.DESC],[ue.DETAILS,S.DETAILS],[ue.DIALOG,S.DIALOG],[ue.DIR,S.DIR],[ue.DIV,S.DIV],[ue.DL,S.DL],[ue.DT,S.DT],[ue.EM,S.EM],[ue.EMBED,S.EMBED],[ue.FIELDSET,S.FIELDSET],[ue.FIGCAPTION,S.FIGCAPTION],[ue.FIGURE,S.FIGURE],[ue.FONT,S.FONT],[ue.FOOTER,S.FOOTER],[ue.FOREIGN_OBJECT,S.FOREIGN_OBJECT],[ue.FORM,S.FORM],[ue.FRAME,S.FRAME],[ue.FRAMESET,S.FRAMESET],[ue.H1,S.H1],[ue.H2,S.H2],[ue.H3,S.H3],[ue.H4,S.H4],[ue.H5,S.H5],[ue.H6,S.H6],[ue.HEAD,S.HEAD],[ue.HEADER,S.HEADER],[ue.HGROUP,S.HGROUP],[ue.HR,S.HR],[ue.HTML,S.HTML],[ue.I,S.I],[ue.IMG,S.IMG],[ue.IMAGE,S.IMAGE],[ue.INPUT,S.INPUT],[ue.IFRAME,S.IFRAME],[ue.KEYGEN,S.KEYGEN],[ue.LABEL,S.LABEL],[ue.LI,S.LI],[ue.LINK,S.LINK],[ue.LISTING,S.LISTING],[ue.MAIN,S.MAIN],[ue.MALIGNMARK,S.MALIGNMARK],[ue.MARQUEE,S.MARQUEE],[ue.MATH,S.MATH],[ue.MENU,S.MENU],[ue.META,S.META],[ue.MGLYPH,S.MGLYPH],[ue.MI,S.MI],[ue.MO,S.MO],[ue.MN,S.MN],[ue.MS,S.MS],[ue.MTEXT,S.MTEXT],[ue.NAV,S.NAV],[ue.NOBR,S.NOBR],[ue.NOFRAMES,S.NOFRAMES],[ue.NOEMBED,S.NOEMBED],[ue.NOSCRIPT,S.NOSCRIPT],[ue.OBJECT,S.OBJECT],[ue.OL,S.OL],[ue.OPTGROUP,S.OPTGROUP],[ue.OPTION,S.OPTION],[ue.P,S.P],[ue.PARAM,S.PARAM],[ue.PLAINTEXT,S.PLAINTEXT],[ue.PRE,S.PRE],[ue.RB,S.RB],[ue.RP,S.RP],[ue.RT,S.RT],[ue.RTC,S.RTC],[ue.RUBY,S.RUBY],[ue.S,S.S],[ue.SCRIPT,S.SCRIPT],[ue.SEARCH,S.SEARCH],[ue.SECTION,S.SECTION],[ue.SELECT,S.SELECT],[ue.SOURCE,S.SOURCE],[ue.SMALL,S.SMALL],[ue.SPAN,S.SPAN],[ue.STRIKE,S.STRIKE],[ue.STRONG,S.STRONG],[ue.STYLE,S.STYLE],[ue.SUB,S.SUB],[ue.SUMMARY,S.SUMMARY],[ue.SUP,S.SUP],[ue.TABLE,S.TABLE],[ue.TBODY,S.TBODY],[ue.TEMPLATE,S.TEMPLATE],[ue.TEXTAREA,S.TEXTAREA],[ue.TFOOT,S.TFOOT],[ue.TD,S.TD],[ue.TH,S.TH],[ue.THEAD,S.THEAD],[ue.TITLE,S.TITLE],[ue.TR,S.TR],[ue.TRACK,S.TRACK],[ue.TT,S.TT],[ue.U,S.U],[ue.UL,S.UL],[ue.SVG,S.SVG],[ue.VAR,S.VAR],[ue.WBR,S.WBR],[ue.XMP,S.XMP]]);function ec(e){var t;return(t=WK.get(e))!==null&&t!==void 0?t:S.UNKNOWN}const ke=S,ZK={[Ae.HTML]:new Set([ke.ADDRESS,ke.APPLET,ke.AREA,ke.ARTICLE,ke.ASIDE,ke.BASE,ke.BASEFONT,ke.BGSOUND,ke.BLOCKQUOTE,ke.BODY,ke.BR,ke.BUTTON,ke.CAPTION,ke.CENT
vendor: 117,105 bytes, line 688
688ER,ke.COL,ke.COLGROUP,ke.DD,ke.DETAILS,ke.DIR,ke.DIV,ke.DL,ke.DT,ke.EMBED,ke.FIELDSET,ke.FIGCAPTION,ke.FIGURE,ke.FOOTER,ke.FORM,ke.FRAME,ke.FRAMESET,ke.H1,ke.H2,ke.H3,ke.H4,ke.H5,ke.H6,ke.HEAD,ke.HEADER,ke.HGROUP,ke.HR,ke.HTML,ke.IFRAME,ke.IMG,ke.INPUT,ke.LI,ke.LINK,ke.LISTING,ke.MAIN,ke.MARQUEE,ke.MENU,ke.META,ke.NAV,ke.NOEMBED,ke.NOFRAMES,ke.NOSCRIPT,ke.OBJECT,ke.OL,ke.P,ke.PARAM,ke.PLAINTEXT,ke.PRE,ke.SCRIPT,ke.SECTION,ke.SELECT,ke.SOURCE,ke.STYLE,ke.SUMMARY,ke.TABLE,ke.TBODY,ke.TD,ke.TEMPLATE,ke.TEXTAREA,ke.TFOOT,ke.TH,ke.THEAD,ke.TITLE,ke.TR,ke.TRACK,ke.UL,ke.WBR,ke.XMP]),[Ae.MATHML]:new Set([ke.MI,ke.MO,ke.MN,ke.MS,ke.MTEXT,ke.ANNOTATION_XML]),[Ae.SVG]:new Set([ke.TITLE,ke.FOREIGN_OBJECT,ke.DESC]),[Ae.XLINK]:new Set,[Ae.XML]:new Set,[Ae.XMLNS]:new Set},ib=new Set([ke.H1,ke.H2,ke.H3,ke.H4,ke.H5,ke.H6]);ue.STYLE,ue.SCRIPT,ue.XMP,ue.IFRAME,ue.NOEMBED,ue.NOFRAMES,ue.PLAINTEXT;var V;(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"})(V||(V={}));const kn={DATA:V.DATA,RCDATA:V.RCDATA,RAWTEXT:V.RAWTEXT,SCRIPT_DATA:V.SCRIPT_DATA,PLAINTEXT:V.PLAINTEXT,CDATA_SECTION:V.CDATA_SECTION};function JK(e){return e>=F.DIGIT_0&&e<=F.DIGIT_9}function f0(e){return e>=F.LATIN_CAPITAL_A&&e<=F.LATIN_CAPITAL_Z}function eW(e){return e>=F.LATIN_SMALL_A&&e<=F.LATIN_SMALL_Z}function Xi(e){return eW(e)||f0(e)}function F7(e){return Xi(e)||JK(e)}function lh(e){return e+32}function tk(e){return e===F.SPACE||e===F.LINE_FEED||e===F.TABULATION||e===F.FORM_FEED}function H7(e){return tk(e)||e===F.SOLIDUS||e===F.GREATER_THAN_SIGN}function tW(e){return e===F.NULL?xe.nullCharacterReference:e>1114111?xe.characterReferenceOutsideUnicodeRange:WC(e)?xe.surrogateCharacterReference:JC(e)?xe.noncharacterCharacterReference:ZC(e)||e===F.CARRIAGE_RETURN?xe.controlCharacterReference:null}class nW{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=V.DATA,this.returnState=V.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new HK(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new XK(UK,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(xe.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(xe.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=tW(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}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,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}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 n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:yt.START_TAG,tagName:"",tagID:S.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:yt.END_TAG,tagName:"",tagID:S.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:yt.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:yt.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(ek(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(xe.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=ec(t.tagName),t.type===yt.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(xe.endTagWithAttributes),t.selfClosing&&this._err(xe.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 yt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case yt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case yt.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:yt.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=tk(t)?yt.WHITESPACE_CHARACTER:t===F.NULL?yt.NULL_CHARACTER:yt.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(yt.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=V.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ri.Attribute:ri.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===V.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===V.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===V.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case V.DATA:{this._stateData(t);break}case V.RCDATA:{this._stateRcdata(t);break}case V.RAWTEXT:{this._stateRawtext(t);break}case V.SCRIPT_DATA:{this._stateScriptData(t);break}case V.PLAINTEXT:{this._statePlaintext(t);break}case V.TAG_OPEN:{this._stateTagOpen(t);break}case V.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case V.TAG_NAME:{this._stateTagName(t);break}case V.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case V.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case V.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case V.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case V.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case V.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case V.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case V.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case V.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case V.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case V.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case V.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case V.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case V.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case V.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case V.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case V.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case V.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case V.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case V.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case V.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case V.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case V.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case V.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case V.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case V.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case V.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case V.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case V.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case V.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case V.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case V.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case V.BOGUS_COMMENT:{this._stateBogusComment(t);break}case V.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case V.COMMENT_START:{this._stateCommentStart(t);break}case V.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case V.COMMENT:{this._stateComment(t);break}case V.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case V.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case V.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case V.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case V.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case V.COMMENT_END:{this._stateCommentEnd(t);break}case V.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case V.DOCTYPE:{this._stateDoctype(t);break}case V.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case V.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case V.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case V.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case V.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case V.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case V.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case V.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case V.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case V.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case V.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case V.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case V.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case V.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case V.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case V.CDATA_SECTION:{this._stateCdataSection(t);break}case V.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case V.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case V.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case V.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case F.LESS_THAN_SIGN:{this.state=V.TAG_OPEN;break}case F.AMPERSAND:{this._startCharacterReference();break}case F.NULL:{this._err(xe.unexpectedNullCharacter),this._emitCodePoint(t);break}case F.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case F.AMPERSAND:{this._startCharacterReference();break}case F.LESS_THAN_SIGN:{this.state=V.RCDATA_LESS_THAN_SIGN;break}case F.NULL:{this._err(xe.unexpectedNullCharacter),this._emitChars(dn);break}case F.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case F.LESS_THAN_SIGN:{this.state=V.RAWTEXT_LESS_THAN_SIGN;break}case F.NULL:{this._err(xe.unexpectedNullCharacter),this._emitChars(dn);break}case F.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case F.LESS_THAN_SIGN:{this.state=V.SCRIPT_DATA_LESS_THAN_SIGN;break}case F.NULL:{this._err(xe.unexpectedNullCharacter),this._emitChars(dn);break}case F.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case F.NULL:{this._err(xe.unexpectedNullCharacter),this._emitChars(dn);break}case F.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Xi(t))this._createStartTagToken(),this.state=V.TAG_NAME,this._stateTagName(t);else switch(t){case F.EXCLAMATION_MARK:{this.state=V.MARKUP_DECLARATION_OPEN;break}case F.SOLIDUS:{this.state=V.END_TAG_OPEN;break}case F.QUESTION_MARK:{this._err(xe.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=V.BOGUS_COMMENT,this._stateBogusComment(t);break}case F.EOF:{this._err(xe.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(xe.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=V.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Xi(t))this._createEndTagToken(),this.state=V.TAG_NAME,this._stateTagName(t);else switch(t){case F.GREATER_THAN_SIGN:{this._err(xe.missingEndTagName),this.state=V.DATA;break}case F.EOF:{this._err(xe.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(xe.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=V.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:{this.state=V.BEFORE_ATTRIBUTE_NAME;break}case F.SOLIDUS:{this.state=V.SELF_CLOSING_START_TAG;break}case F.GREATER_THAN_SIGN:{this.state=V.DATA,this.emitCurrentTagToken();break}case F.NULL:{this._err(xe.unexpectedNullCharacter),n.tagName+=dn;break}case F.EOF:{this._err(xe.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(f0(t)?lh(t):t)}}_stateRcdataLessThanSign(t){t===F.SOLIDUS?this.state=V.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=V.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Xi(t)?(this.state=V.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=V.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=V.BEFORE_ATTRIBUTE_NAME,!1;case F.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=V.SELF_CLOSING_START_TAG,!1;case F.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=V.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=V.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===F.SOLIDUS?this.state=V.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=V.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Xi(t)?(this.state=V.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=V.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=V.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case F.SOLIDUS:{this.state=V.SCRIPT_DATA_END_TAG_OPEN;break}case F.EXCLAMATION_MARK:{this.state=V.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=V.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Xi(t)?(this.state=V.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=V.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=V.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===F.HYPHEN_MINUS?(this.state=V.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=V.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===F.HYPHEN_MINUS?(this.state=V.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=V.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case F.HYPHEN_MINUS:{this.state=V.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case F.LESS_THAN_SIGN:{this.state=V.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case F.NULL:{this._err(xe.unexpectedNullCharacter),this._emitChars(dn);break}case F.EOF:{this._err(xe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case F.HYPHEN_MINUS:{this.state=V.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case F.LESS_THAN_SIGN:{this.state=V.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case F.NULL:{this._err(xe.unexpectedNullCharacter),this.state=V.SCRIPT_DATA_ESCAPED,this._emitChars(dn);break}case F.EOF:{this._err(xe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=V.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case F.HYPHEN_MINUS:{this._emitChars("-");break}case F.LESS_THAN_SIGN:{this.state=V.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case F.GREATER_THAN_SIGN:{this.state=V.SCRIPT_DATA,this._emitChars(">");break}case F.NULL:{this._err(xe.unexpectedNullCharacter),this.state=V.SCRIPT_DATA_ESCAPED,this._emitChars(dn);break}case F.EOF:{this._err(xe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=V.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===F.SOLIDUS?this.state=V.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Xi(t)?(this._emitChars("<"),this.state=V.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=V.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Xi(t)?(this.state=V.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=V.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=V.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Yr.SCRIPT,!1)&&H7(this.preprocessor.peek(Yr.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Yr.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=V.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=V.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case F.HYPHEN_MINUS:{this.state=V.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case F.LESS_THAN_SIGN:{this.state=V.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case F.NULL:{this._err(xe.unexpectedNullCharacter),this._emitChars(dn);break}case F.EOF:{this._err(xe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case F.HYPHEN_MINUS:{this.state=V.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case F.LESS_THAN_SIGN:{this.state=V.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case F.NULL:{this._err(xe.unexpectedNullCharacter),this.state=V.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(dn);break}case F.EOF:{this._err(xe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=V.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case F.HYPHEN_MINUS:{this._emitChars("-");break}case F.LESS_THAN_SIGN:{this.state=V.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case F.GREATER_THAN_SIGN:{this.state=V.SCRIPT_DATA,this._emitChars(">");break}case F.NULL:{this._err(xe.unexpectedNullCharacter),this.state=V.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(dn);break}case F.EOF:{this._err(xe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=V.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===F.SOLIDUS?(this.state=V.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=V.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Yr.SCRIPT,!1)&&H7(this.preprocessor.peek(Yr.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Yr.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=V.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=V.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:break;case F.SOLIDUS:case F.GREATER_THAN_SIGN:case F.EOF:{this.state=V.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case F.EQUALS_SIGN:{this._err(xe.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=V.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=V.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:case F.SOLIDUS:case F.GREATER_THAN_SIGN:case F.EOF:{this._leaveAttrName(),this.state=V.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case F.EQUALS_SIGN:{this._leaveAttrName(),this.state=V.BEFORE_ATTRIBUTE_VALUE;break}case F.QUOTATION_MARK:case F.APOSTROPHE:case F.LESS_THAN_SIGN:{this._err(xe.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case F.NULL:{this._err(xe.unexpectedNullCharacter),this.currentAttr.name+=dn;break}default:this.currentAttr.name+=String.fromCodePoint(f0(t)?lh(t):t)}}_stateAfterAttributeName(t){switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:break;case F.SOLIDUS:{this.state=V.SELF_CLOSING_START_TAG;break}case F.EQUALS_SIGN:{this.state=V.BEFORE_ATTRIBUTE_VALUE;break}case F.GREATER_THAN_SIGN:{this.state=V.DATA,this.emitCurrentTagToken();break}case F.EOF:{this._err(xe.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=V.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:break;case F.QUOTATION_MARK:{this.state=V.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case F.APOSTROPHE:{this.state=V.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case F.GREATER_THAN_SIGN:{this._err(xe.missingAttributeValue),this.state=V.DATA,this.emitCurrentTagToken();break}default:this.state=V.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case F.QUOTATION_MARK:{this.state=V.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case F.AMPERSAND:{this._startCharacterReference();break}case F.NULL:{this._err(xe.unexpectedNullCharacter),this.currentAttr.value+=dn;break}case F.EOF:{this._err(xe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case F.APOSTROPHE:{this.state=V.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case F.AMPERSAND:{this._startCharacterReference();break}case F.NULL:{this._err(xe.unexpectedNullCharacter),this.currentAttr.value+=dn;break}case F.EOF:{this._err(xe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:{this._leaveAttrValue(),this.state=V.BEFORE_ATTRIBUTE_NAME;break}case F.AMPERSAND:{this._startCharacterReference();break}case F.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=V.DATA,this.emitCurrentTagToken();break}case F.NULL:{this._err(xe.unexpectedNullCharacter),this.currentAttr.value+=dn;break}case F.QUOTATION_MARK:case F.APOSTROPHE:case F.LESS_THAN_SIGN:case F.EQUALS_SIGN:case F.GRAVE_ACCENT:{this._err(xe.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case F.EOF:{this._err(xe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:{this._leaveAttrValue(),this.state=V.BEFORE_ATTRIBUTE_NAME;break}case F.SOLIDUS:{this._leaveAttrValue(),this.state=V.SELF_CLOSING_START_TAG;break}case F.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=V.DATA,this.emitCurrentTagToken();break}case F.EOF:{this._err(xe.eofInTag),this._emitEOFToken();break}default:this._err(xe.missingWhitespaceBetweenAttributes),this.state=V.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case F.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=V.DATA,this.emitCurrentTagToken();break}case F.EOF:{this._err(xe.eofInTag),this._emitEOFToken();break}default:this._err(xe.unexpectedSolidusInTag),this.state=V.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case F.GREATER_THAN_SIGN:{this.state=V.DATA,this.emitCurrentComment(n);break}case F.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case F.NULL:{this._err(xe.unexpectedNullCharacter),n.data+=dn;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Yr.DASH_DASH,!0)?(this._createCommentToken(Yr.DASH_DASH.length+1),this.state=V.COMMENT_START):this._consumeSequenceIfMatch(Yr.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Yr.DOCTYPE.length+1),this.state=V.DOCTYPE):this._consumeSequenceIfMatch(Yr.CDATA_START,!0)?this.inForeignNode?this.state=V.CDATA_SECTION:(this._err(xe.cdataInHtmlContent),this._createCommentToken(Yr.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=V.BOGUS_COMMENT):this._ensureHibernation()||(this._err(xe.incorrectlyOpenedComment),this._createCommentToken(2),this.state=V.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case F.HYPHEN_MINUS:{this.state=V.COMMENT_START_DASH;break}case F.GREATER_THAN_SIGN:{this._err(xe.abruptClosingOfEmptyComment),this.state=V.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=V.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case F.HYPHEN_MINUS:{this.state=V.COMMENT_END;break}case F.GREATER_THAN_SIGN:{this._err(xe.abruptClosingOfEmptyComment),this.state=V.DATA,this.emitCurrentComment(n);break}case F.EOF:{this._err(xe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=V.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case F.HYPHEN_MINUS:{this.state=V.COMMENT_END_DASH;break}case F.LESS_THAN_SIGN:{n.data+="<",this.state=V.COMMENT_LESS_THAN_SIGN;break}case F.NULL:{this._err(xe.unexpectedNullCharacter),n.data+=dn;break}case F.EOF:{this._err(xe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case F.EXCLAMATION_MARK:{n.data+="!",this.state=V.COMMENT_LESS_THAN_SIGN_BANG;break}case F.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=V.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===F.HYPHEN_MINUS?this.state=V.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=V.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===F.HYPHEN_MINUS?this.state=V.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=V.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==F.GREATER_THAN_SIGN&&t!==F.EOF&&this._err(xe.nestedComment),this.state=V.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case F.HYPHEN_MINUS:{this.state=V.COMMENT_END;break}case F.EOF:{this._err(xe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=V.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case F.GREATER_THAN_SIGN:{this.state=V.DATA,this.emitCurrentComment(n);break}case F.EXCLAMATION_MARK:{this.state=V.COMMENT_END_BANG;break}case F.HYPHEN_MINUS:{n.data+="-";break}case F.EOF:{this._err(xe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=V.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case F.HYPHEN_MINUS:{n.data+="--!",this.state=V.COMMENT_END_DASH;break}case F.GREATER_THAN_SIGN:{this._err(xe.incorrectlyClosedComment),this.state=V.DATA,this.emitCurrentComment(n);break}case F.EOF:{this._err(xe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=V.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:{this.state=V.BEFORE_DOCTYPE_NAME;break}case F.GREATER_THAN_SIGN:{this.state=V.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case F.EOF:{this._err(xe.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(xe.missingWhitespaceBeforeDoctypeName),this.state=V.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(f0(t))this._createDoctypeToken(String.fromCharCode(lh(t))),this.state=V.DOCTYPE_NAME;else switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:break;case F.NULL:{this._err(xe.unexpectedNullCharacter),this._createDoctypeToken(dn),this.state=V.DOCTYPE_NAME;break}case F.GREATER_THAN_SIGN:{this._err(xe.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=V.DATA;break}case F.EOF:{this._err(xe.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=V.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:{this.state=V.AFTER_DOCTYPE_NAME;break}case F.GREATER_THAN_SIGN:{this.state=V.DATA,this.emitCurrentDoctype(n);break}case F.NULL:{this._err(xe.unexpectedNullCharacter),n.name+=dn;break}case F.EOF:{this._err(xe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(f0(t)?lh(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:break;case F.GREATER_THAN_SIGN:{this.state=V.DATA,this.emitCurrentDoctype(n);break}case F.EOF:{this._err(xe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Yr.PUBLIC,!1)?this.state=V.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Yr.SYSTEM,!1)?this.state=V.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(xe.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=V.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:{this.state=V.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case F.QUOTATION_MARK:{this._err(xe.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=V.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case F.APOSTROPHE:{this._err(xe.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=V.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case F.GREATER_THAN_SIGN:{this._err(xe.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=V.DATA,this.emitCurrentDoctype(n);break}case F.EOF:{this._err(xe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(xe.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=V.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:break;case F.QUOTATION_MARK:{n.publicId="",this.state=V.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case F.APOSTROPHE:{n.publicId="",this.state=V.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case F.GREATER_THAN_SIGN:{this._err(xe.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=V.DATA,this.emitCurrentDoctype(n);break}case F.EOF:{this._err(xe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(xe.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=V.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case F.QUOTATION_MARK:{this.state=V.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case F.NULL:{this._err(xe.unexpectedNullCharacter),n.publicId+=dn;break}case F.GREATER_THAN_SIGN:{this._err(xe.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=V.DATA;break}case F.EOF:{this._err(xe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case F.APOSTROPHE:{this.state=V.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case F.NULL:{this._err(xe.unexpectedNullCharacter),n.publicId+=dn;break}case F.GREATER_THAN_SIGN:{this._err(xe.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=V.DATA;break}case F.EOF:{this._err(xe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:{this.state=V.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case F.GREATER_THAN_SIGN:{this.state=V.DATA,this.emitCurrentDoctype(n);break}case F.QUOTATION_MARK:{this._err(xe.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=V.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case F.APOSTROPHE:{this._err(xe.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=V.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case F.EOF:{this._err(xe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(xe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=V.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:break;case F.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=V.DATA;break}case F.QUOTATION_MARK:{n.systemId="",this.state=V.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case F.APOSTROPHE:{n.systemId="",this.state=V.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case F.EOF:{this._err(xe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(xe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=V.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:{this.state=V.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case F.QUOTATION_MARK:{this._err(xe.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=V.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case F.APOSTROPHE:{this._err(xe.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=V.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case F.GREATER_THAN_SIGN:{this._err(xe.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=V.DATA,this.emitCurrentDoctype(n);break}case F.EOF:{this._err(xe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(xe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=V.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:break;case F.QUOTATION_MARK:{n.systemId="",this.state=V.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case F.APOSTROPHE:{n.systemId="",this.state=V.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case F.GREATER_THAN_SIGN:{this._err(xe.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=V.DATA,this.emitCurrentDoctype(n);break}case F.EOF:{this._err(xe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(xe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=V.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case F.QUOTATION_MARK:{this.state=V.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case F.NULL:{this._err(xe.unexpectedNullCharacter),n.systemId+=dn;break}case F.GREATER_THAN_SIGN:{this._err(xe.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=V.DATA;break}case F.EOF:{this._err(xe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case F.APOSTROPHE:{this.state=V.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case F.NULL:{this._err(xe.unexpectedNullCharacter),n.systemId+=dn;break}case F.GREATER_THAN_SIGN:{this._err(xe.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=V.DATA;break}case F.EOF:{this._err(xe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:break;case F.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=V.DATA;break}case F.EOF:{this._err(xe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(xe.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=V.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case F.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=V.DATA;break}case F.NULL:{this._err(xe.unexpectedNullCharacter);break}case F.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case F.RIGHT_SQUARE_BRACKET:{this.state=V.CDATA_SECTION_BRACKET;break}case F.EOF:{this._err(xe.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===F.RIGHT_SQUARE_BRACKET?this.state=V.CDATA_SECTION_END:(this._emitChars("]"),this.state=V.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case F.GREATER_THAN_SIGN:{this.state=V.DATA;break}case F.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=V.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(F.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&F7(this.preprocessor.peek(1))?V.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){F7(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===F.SEMICOLON&&this._err(xe.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const nk=new Set([S.DD,S.DT,S.LI,S.OPTGROUP,S.OPTION,S.P,S.RB,S.RP,S.RT,S.RTC]),U7=new Set([...nk,S.CAPTION,S.COLGROUP,S.TBODY,S.TD,S.TFOOT,S.TH,S.THEAD,S.TR]),Xh=new Set([S.APPLET,S.CAPTION,S.HTML,S.MARQUEE,S.OBJECT,S.TABLE,S.TD,S.TEMPLATE,S.TH]),rW=new Set([...Xh,S.OL,S.UL]),aW=new Set([...Xh,S.BUTTON]),q7=new Set([S.ANNOTATION_XML,S.MI,S.MN,S.MO,S.MS,S.MTEXT]),$7=new Set([S.DESC,S.FOREIGN_OBJECT,S.TITLE]),sW=new Set([S.TR,S.TEMPLATE,S.HTML]),iW=new Set([S.TBODY,S.TFOOT,S.THEAD,S.TEMPLATE,S.HTML]),lW=new Set([S.TABLE,S.TEMPLATE,S.HTML]),oW=new Set([S.TD,S.TH]);class uW{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=S.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===S.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Ae.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),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 n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Ae.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(ib,Ae.HTML)}popUntilTableCellPopped(){this.popUntilPopped(oW,Ae.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(lW,Ae.HTML)}clearBackToTableBodyContext(){this.clearBackTo(iW,Ae.HTML)}clearBackToTableRowContext(){this.clearBackTo(sW,Ae.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===S.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===S.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Ae.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case Ae.SVG:{if($7.has(a))return!1;break}case Ae.MATHML:{if(q7.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Xh)}hasInListItemScope(t){return this.hasInDynamicScope(t,rW)}hasInButtonScope(t){return this.hasInDynamicScope(t,aW)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Ae.HTML:{if(ib.has(n))return!0;if(Xh.has(n))return!1;break}case Ae.SVG:{if($7.has(n))return!1;break}case Ae.MATHML:{if(q7.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Ae.HTML)switch(this.tagIDs[n]){case t:return!0;case S.TABLE:case S.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Ae.HTML)switch(this.tagIDs[t]){case S.TBODY:case S.THEAD:case S.TFOOT:return!0;case S.TABLE:case S.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Ae.HTML)switch(this.tagIDs[n]){case t:return!0;case S.OPTION:case S.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&nk.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&U7.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&U7.has(this.currentTagId);)this.pop()}}const P2=3;var gs;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(gs||(gs={}));const V7={type:gs.Marker};class cW{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(t),l=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){const c=this.entries[u];if(c.type===gs.Marker)break;const{element:f}=c;if(this.treeAdapter.getTagName(f)===i&&this.treeAdapter.getNamespaceURI(f)===l){const g=this.treeAdapter.getAttrList(f);g.length===a&&r.push({idx:u,attrs:g})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<P2)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<P2)return;const a=new Map(n.map(l=>[l.name,l.value]));let i=0;for(let l=0;l<r.length;l++){const u=r[l];u.attrs.every(c=>a.get(c.name)===c.value)&&(i+=1,i>=P2&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(V7)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:gs.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:gs.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(V7);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===gs.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===gs.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===gs.Element&&n.element===t)}}const Ki={createDocument(){return{nodeName:"#document",mode:Ra.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,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,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Ki.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 n=e.childNodes[e.childNodes.length-1];if(Ki.isTextNode(n)){n.value+=t;return}}Ki.appendChild(e,Ki.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Ki.isTextNode(r)?r.value+=t:Ki.insertBefore(e,Ki.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},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}}},rk="html",dW="about:legacy-compat",fW="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ak=["+//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//"],hW=[...ak,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],pW=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),sk=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],mW=[...sk,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function G7(e,t){return t.some(n=>e.startsWith(n))}function gW(e){return e.name===rk&&e.publicId===null&&(e.systemId===null||e.systemId===dW)}function xW(e){if(e.name!==rk)return Ra.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===fW)return Ra.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),pW.has(n))return Ra.QUIRKS;let r=t===null?hW:ak;if(G7(n,r))return Ra.QUIRKS;if(r=t===null?sk:mW,G7(n,r))return Ra.LIMITED_QUIRKS}return Ra.NO_QUIRKS}const Y7={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},bW="definitionurl",yW="definitionURL",vW=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])),EW=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Ae.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Ae.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Ae.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Ae.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Ae.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Ae.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Ae.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Ae.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Ae.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Ae.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Ae.XMLNS}]]),SW=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])),_W=new Set([S.B,S.BIG,S.BLOCKQUOTE,S.BODY,S.BR,S.CENTER,S.CODE,S.DD,S.DIV,S.DL,S.DT,S.EM,S.EMBED,S.H1,S.H2,S.H3,S.H4,S.H5,S.H6,S.HEAD,S.HR,S.I,S.IMG,S.LI,S.LISTING,S.MENU,S.META,S.NOBR,S.OL,S.P,S.PRE,S.RUBY,S.S,S.SMALL,S.SPAN,S.STRONG,S.STRIKE,S.SUB,S.SUP,S.TABLE,S.TT,S.U,S.UL,S.VAR]);function TW(e){const t=e.tagID;return t===S.FONT&&e.attrs.some(({name:r})=>r===Wl.COLOR||r===Wl.SIZE||r===Wl.FACE)||_W.has(t)}function ik(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===bW){e.attrs[t].name=yW;break}}function lk(e){for(let t=0;t<e.attrs.length;t++){const n=vW.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function l4(e){for(let t=0;t<e.attrs.length;t++){const n=EW.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function wW(e){const t=SW.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ec(e.tagName))}function AW(e,t){return t===Ae.MATHML&&(e===S.MI||e===S.MO||e===S.MN||e===S.MS||e===S.MTEXT)}function CW(e,t,n){if(t===Ae.MATHML&&e===S.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Wl.ENCODING){const a=n[r].value.toLowerCase();return a===Y7.TEXT_HTML||a===Y7.APPLICATION_XML}}return t===Ae.SVG&&(e===S.FOREIGN_OBJECT||e===S.DESC||e===S.TITLE)}function kW(e,t,n,r){return(!r||r===Ae.HTML)&&CW(e,t,n)||(!r||r===Ae.MATHML)&&AW(e,t)}const NW="hidden",PW=8,RW=3;var K;(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"})(K||(K={}));const OW={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},ok=new Set([S.TABLE,S.TBODY,S.TFOOT,S.THEAD,S.TR]),Q7={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ki,onParseError:null};class X7{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=K.INITIAL,this.originalInsertionMode=K.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={...Q7,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new nW(this.options,this),this.activeFormattingElements=new cW(this.treeAdapter),this.fragmentContextID=r?ec(this.treeAdapter.getTagName(r)):S.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new uW(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Q7,...n};t??(t=r.treeAdapter.createElement(ue.TEMPLATE,Ae.HTML,[]));const a=r.treeAdapter.createElement("documentmock",Ae.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===S.TEMPLATE&&i.tmplInsertionModeStack.unshift(K.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:OW,l={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(l)}onItemPush(t,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let i,l;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,l=this.fragmentContextID):{current:i,currentTagId:l}=this.openElements,this._setContextModes(i,l)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Ae.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Ae.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=K.TEXT}switchToPlaintextParsing(){this.insertionMode=K.TEXT,this.originalInsertionMode=K.IN_BODY,this.tokenizer.state=kn.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)===ue.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Ae.HTML))switch(this.fragmentContextID){case S.TITLE:case S.TEXTAREA:{this.tokenizer.state=kn.RCDATA;break}case S.STYLE:case S.XMP:case S.IFRAME:case S.NOEMBED:case S.NOFRAMES:case S.NOSCRIPT:{this.tokenizer.state=kn.RAWTEXT;break}case S.SCRIPT:{this.tokenizer.state=kn.SCRIPT_DATA;break}case S.PLAINTEXT:{this.tokenizer.state=kn.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const l=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));l&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Ae.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Ae.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(ue.HTML,Ae.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,S.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,l=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:c,endCol:f,endOffset:g}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:c,endCol:f,endOffset:g})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),i=n.type===yt.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===S.SVG&&this.treeAdapter.getTagName(n)===ue.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Ae.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===S.MGLYPH||t.tagID===S.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Ae.HTML)}_processToken(t){switch(t.type){case yt.CHARACTER:{this.onCharacter(t);break}case yt.NULL_CHARACTER:{this.onNullCharacter(t);break}case yt.COMMENT:{this.onComment(t);break}case yt.DOCTYPE:{this.onDoctype(t);break}case yt.START_TAG:{this._processStartTag(t);break}case yt.END_TAG:{this.onEndTag(t);break}case yt.EOF:{this.onEof(t);break}case yt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return kW(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===gs.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;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=K.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(S.P),this.openElements.popUntilTagNamePopped(S.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case S.TR:{this.insertionMode=K.IN_ROW;return}case S.TBODY:case S.THEAD:case S.TFOOT:{this.insertionMode=K.IN_TABLE_BODY;return}case S.CAPTION:{this.insertionMode=K.IN_CAPTION;return}case S.COLGROUP:{this.insertionMode=K.IN_COLUMN_GROUP;return}case S.TABLE:{this.insertionMode=K.IN_TABLE;return}case S.BODY:{this.insertionMode=K.IN_BODY;return}case S.FRAMESET:{this.insertionMode=K.IN_FRAMESET;return}case S.SELECT:{this._resetInsertionModeForSelect(t);return}case S.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case S.HTML:{this.insertionMode=this.headElement?K.AFTER_HEAD:K.BEFORE_HEAD;return}case S.TD:case S.TH:{if(t>0){this.insertionMode=K.IN_CELL;return}break}case S.HEAD:{if(t>0){this.insertionMode=K.IN_HEAD;return}break}}this.insertionMode=K.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===S.TEMPLATE)break;if(r===S.TABLE){this.insertionMode=K.IN_SELECT_IN_TABLE;return}}this.insertionMode=K.IN_SELECT}_isElementCausesFosterParenting(t){return ok.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 n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case S.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Ae.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case S.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return ZK[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){oJ(this,t);return}switch(this.insertionMode){case K.INITIAL:{r0(this,t);break}case K.BEFORE_HTML:{_0(this,t);break}case K.BEFORE_HEAD:{T0(this,t);break}case K.IN_HEAD:{w0(this,t);break}case K.IN_HEAD_NO_SCRIPT:{A0(this,t);break}case K.AFTER_HEAD:{C0(this,t);break}case K.IN_BODY:case K.IN_CAPTION:case K.IN_CELL:case K.IN_TEMPLATE:{ck(this,t);break}case K.TEXT:case K.IN_SELECT:case K.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case K.IN_TABLE:case K.IN_TABLE_BODY:case K.IN_ROW:{R2(this,t);break}case K.IN_TABLE_TEXT:{gk(this,t);break}case K.IN_COLUMN_GROUP:{Kh(this,t);break}case K.AFTER_BODY:{Wh(this,t);break}case K.AFTER_AFTER_BODY:{Ah(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){lJ(this,t);return}switch(this.insertionMode){case K.INITIAL:{r0(this,t);break}case K.BEFORE_HTML:{_0(this,t);break}case K.BEFORE_HEAD:{T0(this,t);break}case K.IN_HEAD:{w0(this,t);break}case K.IN_HEAD_NO_SCRIPT:{A0(this,t);break}case K.AFTER_HEAD:{C0(this,t);break}case K.TEXT:{this._insertCharacters(t);break}case K.IN_TABLE:case K.IN_TABLE_BODY:case K.IN_ROW:{R2(this,t);break}case K.IN_COLUMN_GROUP:{Kh(this,t);break}case K.AFTER_BODY:{Wh(this,t);break}case K.AFTER_AFTER_BODY:{Ah(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){lb(this,t);return}switch(this.insertionMode){case K.INITIAL:case K.BEFORE_HTML:case K.BEFORE_HEAD:case K.IN_HEAD:case K.IN_HEAD_NO_SCRIPT:case K.AFTER_HEAD:case K.IN_BODY:case K.IN_TABLE:case K.IN_CAPTION:case K.IN_COLUMN_GROUP:case K.IN_TABLE_BODY:case K.IN_ROW:case K.IN_CELL:case K.IN_SELECT:case K.IN_SELECT_IN_TABLE:case K.IN_TEMPLATE:case K.IN_FRAMESET:case K.AFTER_FRAMESET:{lb(this,t);break}case K.IN_TABLE_TEXT:{a0(this,t);break}case K.AFTER_BODY:{zW(this,t);break}case K.AFTER_AFTER_BODY:case K.AFTER_AFTER_FRAMESET:{FW(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case K.INITIAL:{HW(this,t);break}case K.BEFORE_HEAD:case K.IN_HEAD:case K.IN_HEAD_NO_SCRIPT:case K.AFTER_HEAD:{this._err(t,xe.misplacedDoctype);break}case K.IN_TABLE_TEXT:{a0(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,xe.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?uJ(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case K.INITIAL:{r0(this,t);break}case K.BEFORE_HTML:{UW(this,t);break}case K.BEFORE_HEAD:{$W(this,t);break}case K.IN_HEAD:{es(this,t);break}case K.IN_HEAD_NO_SCRIPT:{YW(this,t);break}case K.AFTER_HEAD:{XW(this,t);break}case K.IN_BODY:{Ar(this,t);break}case K.IN_TABLE:{Fu(this,t);break}case K.IN_TABLE_TEXT:{a0(this,t);break}case K.IN_CAPTION:{VZ(this,t);break}case K.IN_COLUMN_GROUP:{c4(this,t);break}case K.IN_TABLE_BODY:{im(this,t);break}case K.IN_ROW:{lm(this,t);break}case K.IN_CELL:{QZ(this,t);break}case K.IN_SELECT:{yk(this,t);break}case K.IN_SELECT_IN_TABLE:{KZ(this,t);break}case K.IN_TEMPLATE:{ZZ(this,t);break}case K.AFTER_BODY:{eJ(this,t);break}case K.IN_FRAMESET:{tJ(this,t);break}case K.AFTER_FRAMESET:{rJ(this,t);break}case K.AFTER_AFTER_BODY:{sJ(this,t);break}case K.AFTER_AFTER_FRAMESET:{iJ(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?cJ(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case K.INITIAL:{r0(this,t);break}case K.BEFORE_HTML:{qW(this,t);break}case K.BEFORE_HEAD:{VW(this,t);break}case K.IN_HEAD:{GW(this,t);break}case K.IN_HEAD_NO_SCRIPT:{QW(this,t);break}case K.AFTER_HEAD:{KW(this,t);break}case K.IN_BODY:{sm(this,t);break}case K.TEXT:{IZ(this,t);break}case K.IN_TABLE:{$0(this,t);break}case K.IN_TABLE_TEXT:{a0(this,t);break}case K.IN_CAPTION:{GZ(this,t);break}case K.IN_COLUMN_GROUP:{YZ(this,t);break}case K.IN_TABLE_BODY:{ob(this,t);break}case K.IN_ROW:{bk(this,t);break}case K.IN_CELL:{XZ(this,t);break}case K.IN_SELECT:{vk(this,t);break}case K.IN_SELECT_IN_TABLE:{WZ(this,t);break}case K.IN_TEMPLATE:{JZ(this,t);break}case K.AFTER_BODY:{Sk(this,t);break}case K.IN_FRAMESET:{nJ(this,t);break}case K.AFTER_FRAMESET:{aJ(this,t);break}case K.AFTER_AFTER_BODY:{Ah(this,t);break}}}onEof(t){switch(this.insertionMode){case K.INITIAL:{r0(this,t);break}case K.BEFORE_HTML:{_0(this,t);break}case K.BEFORE_HEAD:{T0(this,t);break}case K.IN_HEAD:{w0(this,t);break}case K.IN_HEAD_NO_SCRIPT:{A0(this,t);break}case K.AFTER_HEAD:{C0(this,t);break}case K.IN_BODY:case K.IN_TABLE:case K.IN_CAPTION:case K.IN_COLUMN_GROUP:case K.IN_TABLE_BODY:case K.IN_ROW:case K.IN_CELL:case K.IN_SELECT:case K.IN_SELECT_IN_TABLE:{pk(this,t);break}case K.TEXT:{LZ(this,t);break}case K.IN_TABLE_TEXT:{a0(this,t);break}case K.IN_TEMPLATE:{Ek(this,t);break}case K.AFTER_BODY:case K.IN_FRAMESET:case K.AFTER_FRAMESET:case K.AFTER_AFTER_BODY:case K.AFTER_AFTER_FRAMESET:{u4(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===F.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 K.IN_HEAD:case K.IN_HEAD_NO_SCRIPT:case K.AFTER_HEAD:case K.TEXT:case K.IN_COLUMN_GROUP:case K.IN_SELECT:case K.IN_SELECT_IN_TABLE:case K.IN_FRAMESET:case K.AFTER_FRAMESET:{this._insertCharacters(t);break}case K.IN_BODY:case K.IN_CAPTION:case K.IN_CELL:case K.IN_TEMPLATE:case K.AFTER_BODY:case K.AFTER_AFTER_BODY:case K.AFTER_AFTER_FRAMESET:{uk(this,t);break}case K.IN_TABLE:case K.IN_TABLE_BODY:case K.IN_ROW:{R2(this,t);break}case K.IN_TABLE_TEXT:{mk(this,t);break}}}}function MW(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):hk(e,t),n}function DW(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function IW(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,l=a;l!==n;i++,l=a){a=e.openElements.getCommonAncestor(l);const u=e.activeFormattingElements.getElementEntry(l),c=u&&i>=RW;!u||c?(c&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(l)):(l=LW(e,u),r===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(l,r),r=l)}return r}function LW(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function jW(e,t,n){const r=e.treeAdapter.getTagName(t),a=ec(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===S.TEMPLATE&&i===Ae.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function BW(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}function o4(e,t){for(let n=0;n<PW;n++){const r=MW(e,t);if(!r)break;const a=DW(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=IW(e,a,r.element),l=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),l&&jW(e,l,i),BW(e,a,r)}}function lb(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function zW(e,t){e._appendCommentNode(t,e.openElements.items[0])}function FW(e,t){e._appendCommentNode(t,e.document)}function u4(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],l=e.treeAdapter.getNodeSourceCodeLocation(i);l&&!l.endTag&&e._setEndLocation(i,t)}}}}function HW(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ra.QUIRKS:xW(t);gW(t)||e._err(t,xe.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=K.BEFORE_HTML}function r0(e,t){e._err(t,xe.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ra.QUIRKS),e.insertionMode=K.BEFORE_HTML,e._processToken(t)}function UW(e,t){t.tagID===S.HTML?(e._insertElement(t,Ae.HTML),e.insertionMode=K.BEFORE_HEAD):_0(e,t)}function qW(e,t){const n=t.tagID;(n===S.HTML||n===S.HEAD||n===S.BODY||n===S.BR)&&_0(e,t)}function _0(e,t){e._insertFakeRootElement(),e.insertionMode=K.BEFORE_HEAD,e._processToken(t)}function $W(e,t){switch(t.tagID){case S.HTML:{Ar(e,t);break}case S.HEAD:{e._insertElement(t,Ae.HTML),e.headElement=e.openElements.current,e.insertionMode=K.IN_HEAD;break}default:T0(e,t)}}function VW(e,t){const n=t.tagID;n===S.HEAD||n===S.BODY||n===S.HTML||n===S.BR?T0(e,t):e._err(t,xe.endTagWithoutMatchingOpenElement)}function T0(e,t){e._insertFakeElement(ue.HEAD,S.HEAD),e.headElement=e.openElements.current,e.insertionMode=K.IN_HEAD,e._processToken(t)}function es(e,t){switch(t.tagID){case S.HTML:{Ar(e,t);break}case S.BASE:case S.BASEFONT:case S.BGSOUND:case S.LINK:case S.META:{e._appendElement(t,Ae.HTML),t.ackSelfClosing=!0;break}case S.TITLE:{e._switchToTextParsing(t,kn.RCDATA);break}case S.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,kn.RAWTEXT):(e._insertElement(t,Ae.HTML),e.insertionMode=K.IN_HEAD_NO_SCRIPT);break}case S.NOFRAMES:case S.STYLE:{e._switchToTextParsing(t,kn.RAWTEXT);break}case S.SCRIPT:{e._switchToTextParsing(t,kn.SCRIPT_DATA);break}case S.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=K.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(K.IN_TEMPLATE);break}case S.HEAD:{e._err(t,xe.misplacedStartTagForHeadElement);break}default:w0(e,t)}}function GW(e,t){switch(t.tagID){case S.HEAD:{e.openElements.pop(),e.insertionMode=K.AFTER_HEAD;break}case S.BODY:case S.BR:case S.HTML:{w0(e,t);break}case S.TEMPLATE:{xo(e,t);break}default:e._err(t,xe.endTagWithoutMatchingOpenElement)}}function xo(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==S.TEMPLATE&&e._err(t,xe.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,xe.endTagWithoutMatchingOpenElement)}function w0(e,t){e.openElements.pop(),e.insertionMode=K.AFTER_HEAD,e._processToken(t)}function YW(e,t){switch(t.tagID){case S.HTML:{Ar(e,t);break}case S.BASEFONT:case S.BGSOUND:case S.HEAD:case S.LINK:case S.META:case S.NOFRAMES:case S.STYLE:{es(e,t);break}case S.NOSCRIPT:{e._err(t,xe.nestedNoscriptInHead);break}default:A0(e,t)}}function QW(e,t){switch(t.tagID){case S.NOSCRIPT:{e.openElements.pop(),e.insertionMode=K.IN_HEAD;break}case S.BR:{A0(e,t);break}default:e._err(t,xe.endTagWithoutMatchingOpenElement)}}function A0(e,t){const n=t.type===yt.EOF?xe.openElementsLeftAfterEof:xe.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=K.IN_HEAD,e._processToken(t)}function XW(e,t){switch(t.tagID){case S.HTML:{Ar(e,t);break}case S.BODY:{e._insertElement(t,Ae.HTML),e.framesetOk=!1,e.insertionMode=K.IN_BODY;break}case S.FRAMESET:{e._insertElement(t,Ae.HTML),e.insertionMode=K.IN_FRAMESET;break}case S.BASE:case S.BASEFONT:case S.BGSOUND:case S.LINK:case S.META:case S.NOFRAMES:case S.SCRIPT:case S.STYLE:case S.TEMPLATE:case S.TITLE:{e._err(t,xe.abandonedHeadElementChild),e.openElements.push(e.headElement,S.HEAD),es(e,t),e.openElements.remove(e.headElement);break}case S.HEAD:{e._err(t,xe.misplacedStartTagForHeadElement);break}default:C0(e,t)}}function KW(e,t){switch(t.tagID){case S.BODY:case S.HTML:case S.BR:{C0(e,t);break}case S.TEMPLATE:{xo(e,t);break}default:e._err(t,xe.endTagWithoutMatchingOpenElement)}}function C0(e,t){e._insertFakeElement(ue.BODY,S.BODY),e.insertionMode=K.IN_BODY,am(e,t)}function am(e,t){switch(t.type){case yt.CHARACTER:{ck(e,t);break}case yt.WHITESPACE_CHARACTER:{uk(e,t);break}case yt.COMMENT:{lb(e,t);break}case yt.START_TAG:{Ar(e,t);break}case yt.END_TAG:{sm(e,t);break}case yt.EOF:{pk(e,t);break}}}function uk(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ck(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function WW(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function ZW(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function JW(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Ae.HTML),e.insertionMode=K.IN_FRAMESET)}function eZ(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,Ae.HTML)}function tZ(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&ib.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Ae.HTML)}function nZ(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,Ae.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function rZ(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,Ae.HTML),n||(e.formElement=e.openElements.current))}function aZ(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===S.LI&&a===S.LI||(n===S.DD||n===S.DT)&&(a===S.DD||a===S.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==S.ADDRESS&&a!==S.DIV&&a!==S.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,Ae.HTML)}function sZ(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,Ae.HTML),e.tokenizer.state=kn.PLAINTEXT}function iZ(e,t){e.openElements.hasInScope(S.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML),e.framesetOk=!1}function lZ(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(ue.A);n&&(o4(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function oZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function uZ(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(S.NOBR)&&(o4(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function cZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function dZ(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ra.QUIRKS&&e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,Ae.HTML),e.framesetOk=!1,e.insertionMode=K.IN_TABLE}function dk(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function fk(e){const t=ek(e,Wl.TYPE);return t!=null&&t.toLowerCase()===NW}function fZ(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ae.HTML),fk(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function hZ(e,t){e._appendElement(t,Ae.HTML),t.ackSelfClosing=!0}function pZ(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._appendElement(t,Ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function mZ(e,t){t.tagName=ue.IMG,t.tagID=S.IMG,dk(e,t)}function gZ(e,t){e._insertElement(t,Ae.HTML),e.skipNextNewLine=!0,e.tokenizer.state=kn.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=K.TEXT}function xZ(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,kn.RAWTEXT)}function bZ(e,t){e.framesetOk=!1,e._switchToTextParsing(t,kn.RAWTEXT)}function K7(e,t){e._switchToTextParsing(t,kn.RAWTEXT)}function yZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===K.IN_TABLE||e.insertionMode===K.IN_CAPTION||e.insertionMode===K.IN_TABLE_BODY||e.insertionMode===K.IN_ROW||e.insertionMode===K.IN_CELL?K.IN_SELECT_IN_TABLE:K.IN_SELECT}function vZ(e,t){e.openElements.currentTagId===S.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML)}function EZ(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Ae.HTML)}function SZ(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(S.RTC),e._insertElement(t,Ae.HTML)}function _Z(e,t){e._reconstructActiveFormattingElements(),ik(t),l4(t),t.selfClosing?e._appendElement(t,Ae.MATHML):e._insertElement(t,Ae.MATHML),t.ackSelfClosing=!0}function TZ(e,t){e._reconstructActiveFormattingElements(),lk(t),l4(t),t.selfClosing?e._appendElement(t,Ae.SVG):e._insertElement(t,Ae.SVG),t.ackSelfClosing=!0}function W7(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML)}function Ar(e,t){switch(t.tagID){case S.I:case S.S:case S.B:case S.U:case S.EM:case S.TT:case S.BIG:case S.CODE:case S.FONT:case S.SMALL:case S.STRIKE:case S.STRONG:{oZ(e,t);break}case S.A:{lZ(e,t);break}case S.H1:case S.H2:case S.H3:case S.H4:case S.H5:case S.H6:{tZ(e,t);break}case S.P:case S.DL:case S.OL:case S.UL:case S.DIV:case S.DIR:case S.NAV:case S.MAIN:case S.MENU:case S.ASIDE:case S.CENTER:case S.FIGURE:case S.FOOTER:case S.HEADER:case S.HGROUP:case S.DIALOG:case S.DETAILS:case S.ADDRESS:case S.ARTICLE:case S.SEARCH:case S.SECTION:case S.SUMMARY:case S.FIELDSET:case S.BLOCKQUOTE:case S.FIGCAPTION:{eZ(e,t);break}case S.LI:case S.DD:case S.DT:{aZ(e,t);break}case S.BR:case S.IMG:case S.WBR:case S.AREA:case S.EMBED:case S.KEYGEN:{dk(e,t);break}case S.HR:{pZ(e,t);break}case S.RB:case S.RTC:{EZ(e,t);break}case S.RT:case S.RP:{SZ(e,t);break}case S.PRE:case S.LISTING:{nZ(e,t);break}case S.XMP:{xZ(e,t);break}case S.SVG:{TZ(e,t);break}case S.HTML:{WW(e,t);break}case S.BASE:case S.LINK:case S.META:case S.STYLE:case S.TITLE:case S.SCRIPT:case S.BGSOUND:case S.BASEFONT:case S.TEMPLATE:{es(e,t);break}case S.BODY:{ZW(e,t);break}case S.FORM:{rZ(e,t);break}case S.NOBR:{uZ(e,t);break}case S.MATH:{_Z(e,t);break}case S.TABLE:{dZ(e,t);break}case S.INPUT:{fZ(e,t);break}case S.PARAM:case S.TRACK:case S.SOURCE:{hZ(e,t);break}case S.IMAGE:{mZ(e,t);break}case S.BUTTON:{iZ(e,t);break}case S.APPLET:case S.OBJECT:case S.MARQUEE:{cZ(e,t);break}case S.IFRAME:{bZ(e,t);break}case S.SELECT:{yZ(e,t);break}case S.OPTION:case S.OPTGROUP:{vZ(e,t);break}case S.NOEMBED:case S.NOFRAMES:{K7(e,t);break}case S.FRAMESET:{JW(e,t);break}case S.TEXTAREA:{gZ(e,t);break}case S.NOSCRIPT:{e.options.scriptingEnabled?K7(e,t):W7(e,t);break}case S.PLAINTEXT:{sZ(e,t);break}case S.COL:case S.TH:case S.TD:case S.TR:case S.HEAD:case S.FRAME:case S.TBODY:case S.TFOOT:case S.THEAD:case S.CAPTION:case S.COLGROUP:break;default:W7(e,t)}}function wZ(e,t){if(e.openElements.hasInScope(S.BODY)&&(e.insertionMode=K.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function AZ(e,t){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=K.AFTER_BODY,Sk(e,t))}function CZ(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function kZ(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(S.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(S.FORM):n&&e.openElements.remove(n))}function NZ(e){e.openElements.hasInButtonScope(S.P)||e._insertFakeElement(ue.P,S.P),e._closePElement()}function PZ(e){e.openElements.hasInListItemScope(S.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(S.LI),e.openElements.popUntilTagNamePopped(S.LI))}function RZ(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function OZ(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function MZ(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function DZ(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(ue.BR,S.BR),e.openElements.pop(),e.framesetOk=!1}function hk(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],l=e.openElements.tagIDs[a];if(r===l&&(r!==S.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,l))break}}function sm(e,t){switch(t.tagID){case S.A:case S.B:case S.I:case S.S:case S.U:case S.EM:case S.TT:case S.BIG:case S.CODE:case S.FONT:case S.NOBR:case S.SMALL:case S.STRIKE:case S.STRONG:{o4(e,t);break}case S.P:{NZ(e);break}case S.DL:case S.UL:case S.OL:case S.DIR:case S.DIV:case S.NAV:case S.PRE:case S.MAIN:case S.MENU:case S.ASIDE:case S.BUTTON:case S.CENTER:case S.FIGURE:case S.FOOTER:case S.HEADER:case S.HGROUP:case S.DIALOG:case S.ADDRESS:case S.ARTICLE:case S.DETAILS:case S.SEARCH:case S.SECTION:case S.SUMMARY:case S.LISTING:case S.FIELDSET:case S.BLOCKQUOTE:case S.FIGCAPTION:{CZ(e,t);break}case S.LI:{PZ(e);break}case S.DD:case S.DT:{RZ(e,t);break}case S.H1:case S.H2:case S.H3:case S.H4:case S.H5:case S.H6:{OZ(e);break}case S.BR:{DZ(e);break}case S.BODY:{wZ(e,t);break}case S.HTML:{AZ(e,t);break}case S.FORM:{kZ(e);break}case S.APPLET:case S.OBJECT:case S.MARQUEE:{MZ(e,t);break}case S.TEMPLATE:{xo(e,t);break}default:hk(e,t)}}function pk(e,t){e.tmplInsertionModeStack.length>0?Ek(e,t):u4(e,t)}function IZ(e,t){var n;t.tagID===S.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function LZ(e,t){e._err(t,xe.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function R2(e,t){if(e.openElements.currentTagId!==void 0&&ok.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=K.IN_TABLE_TEXT,t.type){case yt.CHARACTER:{gk(e,t);break}case yt.WHITESPACE_CHARACTER:{mk(e,t);break}}else gd(e,t)}function jZ(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Ae.HTML),e.insertionMode=K.IN_CAPTION}function BZ(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ae.HTML),e.insertionMode=K.IN_COLUMN_GROUP}function zZ(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ue.COLGROUP,S.COLGROUP),e.insertionMode=K.IN_COLUMN_GROUP,c4(e,t)}function FZ(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ae.HTML),e.insertionMode=K.IN_TABLE_BODY}function HZ(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ue.TBODY,S.TBODY),e.insertionMode=K.IN_TABLE_BODY,im(e,t)}function UZ(e,t){e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function qZ(e,t){fk(t)?e._appendElement(t,Ae.HTML):gd(e,t),t.ackSelfClosing=!0}function $Z(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Ae.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Fu(e,t){switch(t.tagID){case S.TD:case S.TH:case S.TR:{HZ(e,t);break}case S.STYLE:case S.SCRIPT:case S.TEMPLATE:{es(e,t);break}case S.COL:{zZ(e,t);break}case S.FORM:{$Z(e,t);break}case S.TABLE:{UZ(e,t);break}case S.TBODY:case S.TFOOT:case S.THEAD:{FZ(e,t);break}case S.INPUT:{qZ(e,t);break}case S.CAPTION:{jZ(e,t);break}case S.COLGROUP:{BZ(e,t);break}default:gd(e,t)}}function $0(e,t){switch(t.tagID){case S.TABLE:{e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode());break}case S.TEMPLATE:{xo(e,t);break}case S.BODY:case S.CAPTION:case S.COL:case S.COLGROUP:case S.HTML:case S.TBODY:case S.TD:case S.TFOOT:case S.TH:case S.THEAD:case S.TR:break;default:gd(e,t)}}function gd(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,am(e,t),e.fosterParentingEnabled=n}function mk(e,t){e.pendingCharacterTokens.push(t)}function gk(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function a0(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)gd(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const xk=new Set([S.CAPTION,S.COL,S.COLGROUP,S.TBODY,S.TD,S.TFOOT,S.TH,S.THEAD,S.TR]);function VZ(e,t){const n=t.tagID;xk.has(n)?e.openElements.hasInTableScope(S.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=K.IN_TABLE,Fu(e,t)):Ar(e,t)}function GZ(e,t){const n=t.tagID;switch(n){case S.CAPTION:case S.TABLE:{e.openElements.hasInTableScope(S.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=K.IN_TABLE,n===S.TABLE&&$0(e,t));break}case S.BODY:case S.COL:case S.COLGROUP:case S.HTML:case S.TBODY:case S.TD:case S.TFOOT:case S.TH:case S.THEAD:case S.TR:break;default:sm(e,t)}}function c4(e,t){switch(t.tagID){case S.HTML:{Ar(e,t);break}case S.COL:{e._appendElement(t,Ae.HTML),t.ackSelfClosing=!0;break}case S.TEMPLATE:{es(e,t);break}default:Kh(e,t)}}function YZ(e,t){switch(t.tagID){case S.COLGROUP:{e.openElements.currentTagId===S.COLGROUP&&(e.openElements.pop(),e.insertionMode=K.IN_TABLE);break}case S.TEMPLATE:{xo(e,t);break}case S.COL:break;default:Kh(e,t)}}function Kh(e,t){e.openElements.currentTagId===S.COLGROUP&&(e.openElements.pop(),e.insertionMode=K.IN_TABLE,e._processToken(t))}function im(e,t){switch(t.tagID){case S.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Ae.HTML),e.insertionMode=K.IN_ROW;break}case S.TH:case S.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(ue.TR,S.TR),e.insertionMode=K.IN_ROW,lm(e,t);break}case S.CAPTION:case S.COL:case S.COLGROUP:case S.TBODY:case S.TFOOT:case S.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE,Fu(e,t));break}default:Fu(e,t)}}function ob(e,t){const n=t.tagID;switch(t.tagID){case S.TBODY:case S.TFOOT:case S.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE);break}case S.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE,$0(e,t));break}case S.BODY:case S.CAPTION:case S.COL:case S.COLGROUP:case S.HTML:case S.TD:case S.TH:case S.TR:break;default:$0(e,t)}}function lm(e,t){switch(t.tagID){case S.TH:case S.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Ae.HTML),e.insertionMode=K.IN_CELL,e.activeFormattingElements.insertMarker();break}case S.CAPTION:case S.COL:case S.COLGROUP:case S.TBODY:case S.TFOOT:case S.THEAD:case S.TR:{e.openElements.hasInTableScope(S.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE_BODY,im(e,t));break}default:Fu(e,t)}}function bk(e,t){switch(t.tagID){case S.TR:{e.openElements.hasInTableScope(S.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE_BODY);break}case S.TABLE:{e.openElements.hasInTableScope(S.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE_BODY,ob(e,t));break}case S.TBODY:case S.TFOOT:case S.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(S.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE_BODY,ob(e,t));break}case S.BODY:case S.CAPTION:case S.COL:case S.COLGROUP:case S.HTML:case S.TD:case S.TH:break;default:$0(e,t)}}function QZ(e,t){const n=t.tagID;xk.has(n)?(e.openElements.hasInTableScope(S.TD)||e.openElements.hasInTableScope(S.TH))&&(e._closeTableCell(),lm(e,t)):Ar(e,t)}function XZ(e,t){const n=t.tagID;switch(n){case S.TD:case S.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=K.IN_ROW);break}case S.TABLE:case S.TBODY:case S.TFOOT:case S.THEAD:case S.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),bk(e,t));break}case S.BODY:case S.CAPTION:case S.COL:case S.COLGROUP:case S.HTML:break;default:sm(e,t)}}function yk(e,t){switch(t.tagID){case S.HTML:{Ar(e,t);break}case S.OPTION:{e.openElements.currentTagId===S.OPTION&&e.openElements.pop(),e._insertElement(t,Ae.HTML);break}case S.OPTGROUP:{e.openElements.currentTagId===S.OPTION&&e.openElements.pop(),e.openElements.currentTagId===S.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Ae.HTML);break}case S.HR:{e.openElements.currentTagId===S.OPTION&&e.openElements.pop(),e.openElements.currentTagId===S.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Ae.HTML),t.ackSelfClosing=!0;break}case S.INPUT:case S.KEYGEN:case S.TEXTAREA:case S.SELECT:{e.openElements.hasInSelectScope(S.SELECT)&&(e.openElements.popUntilTagNamePopped(S.SELECT),e._resetInsertionMode(),t.tagID!==S.SELECT&&e._processStartTag(t));break}case S.SCRIPT:case S.TEMPLATE:{es(e,t);break}}}function vk(e,t){switch(t.tagID){case S.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===S.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===S.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===S.OPTGROUP&&e.openElements.pop();break}case S.OPTION:{e.openElements.currentTagId===S.OPTION&&e.openElements.pop();break}case S.SELECT:{e.openElements.hasInSelectScope(S.SELECT)&&(e.openElements.popUntilTagNamePopped(S.SELECT),e._resetInsertionMode());break}case S.TEMPLATE:{xo(e,t);break}}}function KZ(e,t){const n=t.tagID;n===S.CAPTION||n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR||n===S.TD||n===S.TH?(e.openElements.popUntilTagNamePopped(S.SELECT),e._resetInsertionMode(),e._processStartTag(t)):yk(e,t)}function WZ(e,t){const n=t.tagID;n===S.CAPTION||n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR||n===S.TD||n===S.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(S.SELECT),e._resetInsertionMode(),e.onEndTag(t)):vk(e,t)}function ZZ(e,t){switch(t.tagID){case S.BASE:case S.BASEFONT:case S.BGSOUND:case S.LINK:case S.META:case S.NOFRAMES:case S.SCRIPT:case S.STYLE:case S.TEMPLATE:case S.TITLE:{es(e,t);break}case S.CAPTION:case S.COLGROUP:case S.TBODY:case S.TFOOT:case S.THEAD:{e.tmplInsertionModeStack[0]=K.IN_TABLE,e.insertionMode=K.IN_TABLE,Fu(e,t);break}case S.COL:{e.tmplInsertionModeStack[0]=K.IN_COLUMN_GROUP,e.insertionMode=K.IN_COLUMN_GROUP,c4(e,t);break}case S.TR:{e.tmplInsertionModeStack[0]=K.IN_TABLE_BODY,e.insertionMode=K.IN_TABLE_BODY,im(e,t);break}case S.TD:case S.TH:{e.tmplInsertionModeStack[0]=K.IN_ROW,e.insertionMode=K.IN_ROW,lm(e,t);break}default:e.tmplInsertionModeStack[0]=K.IN_BODY,e.insertionMode=K.IN_BODY,Ar(e,t)}}function JZ(e,t){t.tagID===S.TEMPLATE&&xo(e,t)}function Ek(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):u4(e,t)}function eJ(e,t){t.tagID===S.HTML?Ar(e,t):Wh(e,t)}function Sk(e,t){var n;if(t.tagID===S.HTML){if(e.fragmentContext||(e.insertionMode=K.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===S.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Wh(e,t)}function Wh(e,t){e.insertionMode=K.IN_BODY,am(e,t)}function tJ(e,t){switch(t.tagID){case S.HTML:{Ar(e,t);break}case S.FRAMESET:{e._insertElement(t,Ae.HTML);break}case S.FRAME:{e._appendElement(t,Ae.HTML),t.ackSelfClosing=!0;break}case S.NOFRAMES:{es(e,t);break}}}function nJ(e,t){t.tagID===S.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==S.FRAMESET&&(e.insertionMode=K.AFTER_FRAMESET))}function rJ(e,t){switch(t.tagID){case S.HTML:{Ar(e,t);break}case S.NOFRAMES:{es(e,t);break}}}function aJ(e,t){t.tagID===S.HTML&&(e.insertionMode=K.AFTER_AFTER_FRAMESET)}function sJ(e,t){t.tagID===S.HTML?Ar(e,t):Ah(e,t)}function Ah(e,t){e.insertionMode=K.IN_BODY,am(e,t)}function iJ(e,t){switch(t.tagID){case S.HTML:{Ar(e,t);break}case S.NOFRAMES:{es(e,t);break}}}function lJ(e,t){t.chars=dn,e._insertCharacters(t)}function oJ(e,t){e._insertCharacters(t),e.framesetOk=!1}function _k(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Ae.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function uJ(e,t){if(TW(t))_k(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Ae.MATHML?ik(t):r===Ae.SVG&&(wW(t),lk(t)),l4(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function cJ(e,t){if(t.tagID===S.P||t.tagID===S.BR){_k(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Ae.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}ue.AREA,ue.BASE,ue.BASEFONT,ue.BGSOUND,ue.BR,ue.COL,ue.EMBED,ue.FRAME,ue.HR,ue.IMG,ue.INPUT,ue.KEYGEN,ue.LINK,ue.META,ue.PARAM,ue.SOURCE,ue.TRACK,ue.WBR;const dJ=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,fJ=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Z7={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Tk(e,t){const n=SJ(e),r=s4("type",{handlers:{root:hJ,element:pJ,text:mJ,comment:Ak,doctype:gJ,raw:bJ},unknown:yJ}),a={parser:n?new X7(Z7):X7.getFragmentParser(void 0,Z7),handle(u){r(u,a)},stitches:!1,options:t||{}};r(e,a),tc(a,ks());const i=n?a.parser.document:a.parser.getFragment(),l=pK(i,{file:a.options.file});return a.stitches&&io(l,"comment",function(u,c,f){const g=u;if(g.value.stitch&&f&&c!==void 0){const h=f.children;return h[c]=g.value.stitch,c}}),l.type==="root"&&l.children.length===1&&l.children[0].type===e.type?l.children[0]:l}function wk(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function hJ(e,t){wk(e.children,t)}function pJ(e,t){vJ(e,t),wk(e.children,t),EJ(e,t)}function mJ(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:yt.CHARACTER,chars:e.value,location:xd(e)};tc(t,ks(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function gJ(e,t){const n={type:yt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:xd(e)};tc(t,ks(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function xJ(e,t){t.stitches=!0;const n=_J(e);if("children"in e&&"children"in n){const r=Tk({type:"root",children:e.children},t.options);n.children=r.children}Ak({type:"comment",value:{stitch:n}},t)}function Ak(e,t){const n=e.value,r={type:yt.COMMENT,data:n,location:xd(e)};tc(t,ks(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function bJ(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,Ck(t,ks(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(dJ,"&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 n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function yJ(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))xJ(n,t);else{let r="";throw fJ.has(n.type)&&(r=". 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 `"+n.type+"` node"+r)}}function tc(e,t){Ck(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,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=kn.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 Ck(e,t){if(t&&t.offset!==void 0){const n={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=n}}function vJ(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===kn.PLAINTEXT)return;tc(t,ks(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Es.html;a===Es.html&&n==="svg"&&(a=Es.svg);const i=NK({...e,children:[]},{space:a===Es.svg?"svg":"html"}),l={type:yt.START_TAG,tagName:n,tagID:ec(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:xd(e)};t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function EJ(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&KC.includes(n)||t.parser.tokenizer.state===kn.PLAINTEXT)return;tc(t,Gp(e));const r={type:yt.END_TAG,tagName:n,tagID:ec(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:xd(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===kn.RCDATA||t.parser.tokenizer.state===kn.RAWTEXT||t.parser.tokenizer.state===kn.SCRIPT_DATA)&&(t.parser.tokenizer.state=kn.DATA)}function SJ(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function xd(e){const t=ks(e)||{line:void 0,column:void 0,offset:void 0},n=Gp(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function _J(e){return"children"in e?Bu({...e,children:[]}):Bu(e)}function TJ(e){return function(t,n){return Tk(t,{...e,file:n})}}function Zh(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function wJ(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function AJ(e,t,n){const a=cd((n||{}).ignore||[]),i=CJ(t);let l=-1;for(;++l<i.length;)Dy(e,"text",u);function u(f,g){let h=-1,x;for(;++h<g.length;){const b=g[h],E=x?x.children:void 0;if(a(b,E?E.indexOf(b):void 0,x))return;x=b}if(x)return c(f,g)}function c(f,g){const h=g[g.length-1],x=i[l][0],b=i[l][1];let E=0;const C=h.children.indexOf(f);let w=!1,N=[];x.lastIndex=0;let R=x.exec(f.value);for(;R;){const z=R.index,B={index:R.index,input:R.input,stack:[...g,f]};let j=b(...R,B);if(typeof j=="string"&&(j=j.length>0?{type:"text",value:j}:void 0),j===!1?x.lastIndex=z+1:(E!==z&&N.push({type:"text",value:f.value.slice(E,z)}),Array.isArray(j)?N.push(...j):j&&N.push(j),E=z+R[0].length,w=!0),!x.global)break;R=x.exec(f.value)}return w?(E<f.value.length&&N.push({type:"text",value:f.value.slice(E)}),h.children.splice(C,1,...N)):N=[f],C+N.length}}function CJ(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([kJ(a[0]),NJ(a[1])])}return t}function kJ(e){return typeof e=="string"?new RegExp(wJ(e),"g"):e}function NJ(e){return typeof e=="function"?e:function(){return e}}const O2="phrasing",M2=["autolink","link","image","label"];
vendor: 4,801 bytes, lines 688-689
688function PJ(){return{transforms:[jJ],enter:{literalAutolink:OJ,literalAutolinkEmail:D2,literalAutolinkHttp:D2,literalAutolinkWww:D2},exit:{literalAutolink:LJ,literalAutolinkEmail:IJ,literalAutolinkHttp:MJ,literalAutolinkWww:DJ}}}function RJ(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:O2,notInConstruct:M2},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:O2,notInConstruct:M2},{character:":",before:"[ps]",after:"\\/",inConstruct:O2,notInConstruct:M2}]}}function OJ(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function D2(e){this.config.enter.autolinkProtocol.call(this,e)}function MJ(e){this.config.exit.autolinkProtocol.call(this,e)}function DJ(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 IJ(e){this.config.exit.autolinkEmail.call(this,e)}function LJ(e){this.exit(e)}function jJ(e){AJ(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,BJ],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),zJ]],{ignore:["link","linkReference"]})}function BJ(e,t,n,r,a){let i="";if(!kk(a)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!FJ(n)))return!1;const l=HJ(n+r);if(!l[0])return!1;const u={type:"link",title:null,url:i+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[u,{type:"text",value:l[1]}]:u}function zJ(e,t,n,r){return!kk(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function FJ(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 HJ(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=Zh(e,"(");let i=Zh(e,")");for(;r!==-1&&a>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function kk(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||so(n)||Yp(n))&&(!t||n!==47)}Nk.peek=KJ;function UJ(){this.buffer()}function qJ(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function $J(){this.buffer()}function VJ(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function GJ(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Qa(this.sliceSerialize(e)).toLowerCase(),n.label=t}function YJ(e){this.exit(e)}function QJ(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Qa(this.sliceSerialize(e)).toLowerCase(),n.label=t}function XJ(e){this.exit(e)}function KJ(){return"["}function Nk(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const l=n.enter("footnoteReference"),u=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),u(),l(),i+=a.move("]"),i}function WJ(){return{enter:{gfmFootnoteCallString:UJ,gfmFootnoteCall:qJ,gfmFootnoteDefinitionLabelString:$J,gfmFootnoteDefinition:VJ},exit:{gfmFootnoteCallString:GJ,gfmFootnoteCall:YJ,gfmFootnoteDefinitionLabelString:QJ,gfmFootnoteDefinition:XJ}}}function ZJ(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Nk},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,i,l){const u=i.createTracker(l);let c=u.move("[^");const f=i.enter("footnoteDefinition"),g=i.enter("label");return c+=u.move(i.safe(i.associationId(r),{before:c,after:"]"})),g(),c+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),c+=u.move((t?`
689`:" ")+i.indentLines(i.containerFlow(r,u.current()),t?Pk:JJ))),f(),c}}function JJ(e,t,n){return t===0?e:Pk(e,t,n)}function Pk(e,t,n){return(n?"":"    ")+e}const eee=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Rk.peek=see;function tee(){return{canContainEols:["delete"],enter:{strikethrough:ree},exit:{strikethrough:aee}}}function nee(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:eee}],handlers:{delete:Rk}}}function ree(e){this.enter({type:"delete",children:[]},e)}function aee(e){this.exit(e)}function Rk(e,t,n,r){const a=n.createTracker(r),i=n.enter("strikethrough");let l=a.move("~~");return l+=n.containerPhrasing(e,{...a.current(),before:l,after:"~"}),l+=a.move("~~"),i(),l}function see(){return"~"}function iee(e){return e.length}function lee(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||iee,i=[],l=[],u=[],c=[];let f=0,g=-1;for(;++g<e.length;){const _=[],C=[];let w=-1;for(e[g].length>f&&(f=e[g].length);++w<e[g].length;){const N=oee(e[g][w]);if(n.alignDelimiters!==!1){const R=a(N);C[w]=R,(c[w]===void 0||R>c[w])&&(c[w]=R)}_.push(N)}l[g]=_,u[g]=C}let h=-1;if(typeof r=="object"&&"length"in r)for(;
vendor: 10,892 bytes, lines 689-701
689++h<f;)i[h]=J7(r[h]);else{const _=J7(r);for(;++h<f;)i[h]=_}h=-1;const x=[],b=[];for(;++h<f;){const _=i[h];let C="",w="";_===99?(C=":",w=":"):_===108?C=":":_===114&&(w=":");let N=n.alignDelimiters===!1?1:Math.max(1,c[h]-C.length-w.length);const R=C+"-".repeat(N)+w;n.alignDelimiters!==!1&&(N=C.length+N+w.length,N>c[h]&&(c[h]=N),b[h]=N),x[h]=R}l.splice(1,0,x),u.splice(1,0,b),g=-1;const E=[];for(;++g<l.length;){const _=l[g],C=u[g];h=-1;const w=[];for(;++h<f;){const N=_[h]||"";let R="",z="";if(n.alignDelimiters!==!1){const B=c[h]-(C[h]||0),j=i[h];j===114?R=" ".repeat(B):j===99?B%2?(R=" ".repeat(B/2+.5),z=" ".repeat(B/2-.5)):(R=" ".repeat(B/2),z=R):z=" ".repeat(B)}n.delimiterStart!==!1&&!h&&w.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&N==="")&&(n.delimiterStart!==!1||h)&&w.push(" "),n.alignDelimiters!==!1&&w.push(R),w.push(N),n.alignDelimiters!==!1&&w.push(z),n.padding!==!1&&w.push(" "),(n.delimiterEnd!==!1||h!==f-1)&&w.push("|")}E.push(n.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return E.join(`
690`)}function oee(e){return e==null?"":String(e)}function J7(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 uee(e,t,n,r){const a=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const l=n.indentLines(n.containerFlow(e,i.current()),cee);return a(),l}function cee(e,t,n){return">"+(n?"":" ")+e}function dee(e,t){return eS(e,t.inConstruct,!0)&&!eS(e,t.notInConstruct,!1)}function eS(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function tS(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
691`&&dee(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
692`}function Ok(e,t){const n=String(e);let r=n.indexOf(t),a=r,i=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++i>l&&(l=i):i=1,a=r+t.length,r=n.indexOf(t,a);return l}function fee(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 hee(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 pee(e,t,n,r){const a=hee(n),i=e.value||"",l=a==="`"?"GraveAccent":"Tilde";if(fee(e,n)){const h=n.enter("codeIndented"),x=n.indentLines(i,mee);return h(),x}const u=n.createTracker(r),c=a.repeat(Math.max(Ok(i,a)+1,3)),f=n.enter("codeFenced");let g=u.move(c);if(e.lang){const h=n.enter(`codeFencedLang${l}`);g+=u.move(n.safe(e.lang,{before:g,after:" ",encode:["`"],...u.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${l}`);g+=u.move(" "),g+=u.move(n.safe(e.meta,{before:g,after:`
693`,encode:["`"],...u.current()})),h()}return g+=u.move(`
694`),i&&(g+=u.move(i+`
695`)),g+=u.move(c),f(),g}function mee(e,t,n){return(n?"":"    ")+e}function d4(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 gee(e,t,n,r){const a=d4(n),i=a==='"'?"Quote":"Apostrophe",l=n.enter("definition");let u=n.enter("label");const c=n.createTracker(r);let f=c.move("[");return f+=c.move(n.safe(n.associationId(e),{before:f,after:"]",...c.current()})),f+=c.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),f+=c.move("<"),f+=c.move(n.safe(e.url,{before:f,after:">",...c.current()})),f+=c.move(">")):(u=n.enter("destinationRaw"),f+=c.move(n.safe(e.url,{before:f,after:e.title?" ":`
696`,...c.current()}))),u(),e.title&&(u=n.enter(`title${i}`),f+=c.move(" "+a),f+=c.move(n.safe(e.title,{before:f,after:a,...c.current()})),f+=c.move(a),u()),l(),f}function xee(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 V0(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Jh(e,t,n){const r=ju(e),a=ju(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===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}}Mk.peek=bee;function Mk(e,t,n,r){const a=xee(n),i=n.enter("emphasis"),l=n.createTracker(r),u=l.move(a);let c=l.move(n.containerPhrasing(e,{after:a,before:u,...l.current()}));const f=c.charCodeAt(0),g=Jh(r.before.charCodeAt(r.before.length-1),f,a);g.inside&&(c=V0(f)+c.slice(1));const h=c.charCodeAt(c.length-1),x=Jh(r.after.charCodeAt(0),h,a);x.inside&&(c=c.slice(0,-1)+V0(h));const b=l.move(a);return i(),n.attentionEncodeSurroundingInfo={after:x.outside,before:g.outside},u+c+b}function bee(e,t,n){return n.options.emphasis||"*"}function yee(e,t){let n=!1;return io(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Hx}),!!((!e.depth||e.depth<3)&&Cy(e)&&(t.options.setext||n))}function vee(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(yee(e,n)){const g=n.enter("headingSetext"),h=n.enter("phrasing"),x=n.containerPhrasing(e,{...i.current(),before:`
697`,after:`
698`});return h(),g(),x+`
699`+(a===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
700`))+1))}const l="#".repeat(a),u=n.enter("headingAtx"),c=n.enter("phrasing");i.move(l+" ");let f=n.containerPhrasing(e,{before:"# ",after:`
701`,...i.current()});return/^[\t ]/.test(f)&&(f=V0(f.charCodeAt(0))+f.slice(1)),f=f?l+" "+f:l,n.options.closeAtx&&(f+=" "+l),c(),u(),f}Dk.peek=Eee;function Dk(e){return e.value||""}function Eee(){return"<"}Ik.peek=See;function Ik(e,t,n,r){const a=d4(n),i=a==='"'?"Quote":"Apostrophe",l=n.enter("image");let u=n.enter("label");const c=n.createTracker(r);let f=c.move("![");return f+=c.move(n.safe(e.alt,{before:f,after:"]",...c.current()})),f+=c.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),f+=c.move("<"),f+=c.move(n.safe(e.url,{before:f,after:">",...c.current()})),f+=c.move(">")):(u=n.enter("destinationRaw"),f+=c.move(n.safe(e.url,{before:f,after:e.title?" ":")",...c.current()}))),u(),e.title&&(u=n.enter(`title${i}`),f+=c.move(" "+a),f+=c.move(n.safe(e.title,{before:f,after:a,...c.current()})),f+=c.move(a),u()),f+=c.move(")"),l(),f}function See(){return"!"}Lk.peek=_ee;function Lk(e,t,n,r){const a=e.referenceType,i=n.enter("imageReference");let l=n.enter("label");const u=n.createTracker(r);let c=u.move("![");const f=n.safe(e.alt,{before:c,after:"]",...u.current()});c+=u.move(f+"]["),l();const g=n.stack;n.stack=[],l=n.enter("reference");const h=n.safe(n.associationId(e),{before:c,after:"]",...u.current()});return l(),n.stack=g,i(),a==="full"||!f||f!==h?c+=u.move(h+"]"):a==="shortcut"?c=c.slice(0,-1):c+=u.move("]"),c}function _ee(){return"!"}jk.peek=Tee;function jk(e,t,n){let r=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const l=n.unsafe[i],u=n.compilePattern(l);let c;if(l.atBreak)for(;c=u.exec(r);){let f=c.index;r.charCodeAt(f)===10&&r.charCodeAt(f-1)===13&&f--,r=r.slice(0,f)+" "+r.slice(c.index+1)}}return a+r+a}function Tee(){return"`"}function Bk(e,t){const n=Cy(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}zk.peek=wee;function zk(e,t,n,r){const a=d4(n),i=a==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let u,c;if(Bk(e,n)){const g=n.stack;n.stack=[],u=n.enter("autolink");let h=l.move("<");return h+=l.move(n.containerPhrasing(e,{before:h,after:">",...l.current()})),h+=l.move(">"),u(),n.stack=g,h}u=n.enter("link"),c=n.enter("label");let f=l.move("[");return f+=l.move(n.containerPhrasing(e,{before:f,after:"](",...l.current()})),f+=l.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=l.move("<"),f+=l.move(n.safe(e.url,{before:f,after:">",...l.current()})),f+=l.move(">")):(c=n.enter("destinationRaw"),f+=l.move(n.safe(e.url,{before:f,after:e.title?" ":")",...l.current()}))),c(),e.title&&(c=n.enter(`title${i}`),f+=l.move(" "+a),f+=l.move(n.safe(e.title,{before:f,after:a,...l.current()})),f+=l.move(a),c()),f+=l.move(")"),u(),f}function wee(e,t,n){return Bk(e,n)?"<":"["}Fk.peek=Aee;function Fk(e,t,n,r){const a=e.referenceType,i=n.enter("linkReference");let l=n.enter("label");const u=n.createTracker(r);let c=u.move("[");const f=n.containerPhrasing(e,{before:c,after:"]",...u.current()});c+=u.move(f+"]["),l();const g=n.stack;n.stack=[],l=n.enter("reference");const h=n.safe(n.associationId(e),{before:c,after:"]",...u.current()});return l(),n.stack=g,i(),a==="full"||!f||f!==h?c+=u.move(h+"]"):a==="shortcut"?c=c.slice(0,-1):c+=u.move("]"),c}function Aee(){return"["}function f4(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 Cee(e){const t=f4(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function kee(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 Hk(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 Nee(e,t,n,r){const a=n.enter("list"),i=n.bulletCurrent;let l=e.ordered?kee(n):f4(n);const u=e.ordered?l==="."?")":".":Cee(n);let c=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const g=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&g&&(!g.children||!g.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),Hk(n)===l&&g){let h=-1;for(;++h<e.children.length;){const x=e.children[h];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(l=u),n.bulletCurrent=l;const f=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=i,a(),f}function Pee(e){const t=e.options.listItemIndent||"one";
vendor: 7,007 bytes, lines 701-703
701if(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 Ree(e,t,n,r){const a=Pee(n);let i=n.bulletCurrent||f4(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let l=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const u=n.createTracker(r);u.move(i+" ".repeat(l-i.length)),u.shift(l);const c=n.enter("listItem"),f=n.indentLines(n.containerFlow(e,u.current()),g);return c(),f;function g(h,x,b){return x?(b?"":" ".repeat(l))+h:(b?i:i+" ".repeat(l-i.length))+h}}function Oee(e,t,n,r){const a=n.enter("paragraph"),i=n.enter("phrasing"),l=n.containerPhrasing(e,r);return i(),a(),l}const Mee=cd(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Dee(e,t,n,r){return(e.children.some(function(l){return Mee(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Iee(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Uk.peek=Lee;function Uk(e,t,n,r){const a=Iee(n),i=n.enter("strong"),l=n.createTracker(r),u=l.move(a+a);let c=l.move(n.containerPhrasing(e,{after:a,before:u,...l.current()}));const f=c.charCodeAt(0),g=Jh(r.before.charCodeAt(r.before.length-1),f,a);g.inside&&(c=V0(f)+c.slice(1));const h=c.charCodeAt(c.length-1),x=Jh(r.after.charCodeAt(0),h,a);x.inside&&(c=c.slice(0,-1)+V0(h));const b=l.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:x.outside,before:g.outside},u+c+b}function Lee(e,t,n){return n.options.strong||"*"}function jee(e,t,n,r){return n.safe(e.value,r)}function Bee(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 zee(e,t,n){const r=(Hk(n)+(n.options.ruleSpaces?" ":"")).repeat(Bee(n));return n.options.ruleSpaces?r.slice(0,-1):r}const qk={blockquote:uee,break:tS,code:pee,definition:gee,emphasis:Mk,hardBreak:tS,heading:vee,html:Dk,image:Ik,imageReference:Lk,inlineCode:jk,link:zk,linkReference:Fk,list:Nee,listItem:Ree,paragraph:Oee,root:Dee,strong:Uk,text:jee,thematicBreak:zee};function Fee(){return{enter:{table:Hee,tableData:nS,tableHeader:nS,tableRow:qee},exit:{codeText:$ee,table:Uee,tableData:I2,tableHeader:I2,tableRow:I2}}}function Hee(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Uee(e){this.exit(e),this.data.inTable=void 0}function qee(e){this.enter({type:"tableRow",children:[]},e)}function I2(e){this.exit(e)}function nS(e){this.enter({type:"tableCell",children:[]},e)}function $ee(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Vee));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Vee(e,t){return t==="|"?t:e}function Gee(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
702`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:l,tableCell:c,tableRow:u}};function l(b,E,_,C){return f(g(b,_,C),b.align)}function u(b,E,_,C){const w=h(b,_,C),N=f([w]);return N.slice(0,N.indexOf(`
703`))}function c(b,E,_,C){const w=_.enter("tableCell"),N=_.enter("phrasing"),R=_.containerPhrasing(b,{...C,before:i,after:i});return N(),w(),R}function f(b,E){return lee(b,{align:E,alignDelimiters:r,padding:n,stringLength:a})}function g(b,E,_){const C=b.children;let w=-1;const N=[],R=E.enter("table");for(;++w<C.length;)N[w]=h(C[w],E,_);return R(),N}function h(b,E,_){const C=b.children;let w=-1;const N=[],R=E.enter("tableRow");for(;++w<C.length;)N[w]=c(C[w],b,E,_);return R(),N}function x(b,E,_){let C=qk.inlineCode(b,E,_);return _.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function Yee(){return{exit:{taskListCheckValueChecked:rS,taskListCheckValueUnchecked:rS,paragraph:Xee}}}function Qee(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Kee}}}function rS(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Xee(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let i=-1,l;for(;++i<a.length;){const u=a[i];if(u.type==="paragraph"){l=u;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Kee(e,t,n,r){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);i&&u.move(l);let c=qk.listItem(e,t,n,{...r,...u.current()});return i&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),c;function f(g){return g+l}}function Wee(){return[PJ(),WJ(),tee(),Fee(),Yee()]}function Zee(e){return{extensions:[RJ(),ZJ(e),nee(),Gee(e),Qee()]}}const Jee={tokenize:ste,partial:!0},$k={tokenize:ite,partial:!0},Vk={tokenize:lte,partial:!0},Gk={tokenize:ote,partial:!0},ete={tokenize:ute,partial:!0},Yk={name:"wwwAutolink",tokenize:rte,previous:Xk},Qk={name:"protocolAutolink",tokenize:ate,previous:Kk},bi={name:"emailAutolink",tokenize:nte,previous:Wk},Os={};function tte(){return{text:Os}}let Hl=48;for(;Hl<123;)Os[Hl]=bi,Hl++,Hl===58?Hl=65:Hl===91&&(Hl=97);Os[43]=bi;Os[45]=bi;Os[46]=bi;Os[95]=bi;Os[72]=[bi,Qk];Os[104]=[bi,Qk];Os[87]=[bi,Yk];Os[119]=[bi,Yk];function nte(e,t,n){const r=this;let a,i;return l;function l(h){return!ub(h)||!Wk.call(r,r.previous)||h4(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(h))}function u(h){return ub(h)?(e.consume(h),u):h===64?(e.consume(h),c):n(h)}function c(h){return h===46?e.check(ete,g,f)(h):h===45||h===95||Tr(h)?(i=!0,e.consume(h),c):g(h)}function f(h){return e.consume(h),a=!0,c}function g(h){return i&&a&&Or(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function rte(e,t,n){const r=this;return a;function a(l){return l!==87&&l!==119||!Xk.call(r,r.previous)||h4(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Jee,e.attempt($k,e.attempt(Vk,i),n),n)(l))}function i(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function ate(e,t,n){const r=this;let a="",i=!1;return l;
vendor: 5,883 bytes, line 703
703function l(h){return(h===72||h===104)&&Kk.call(r,r.previous)&&!h4(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(h),e.consume(h),u):n(h)}function u(h){if(Or(h)&&a.length<5)return a+=String.fromCodePoint(h),e.consume(h),u;if(h===58){const x=a.toLowerCase();if(x==="http"||x==="https")return e.consume(h),c}return n(h)}function c(h){return h===47?(e.consume(h),i?f:(i=!0,c)):n(h)}function f(h){return h===null||Hh(h)||tn(h)||so(h)||Yp(h)?n(h):e.attempt($k,e.attempt(Vk,g),n)(h)}function g(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function ste(e,t,n){let r=0;return a;function a(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),a):l===46&&r===3?(e.consume(l),i):n(l)}function i(l){return l===null?n(l):t(l)}}function ite(e,t,n){let r,a,i;return l;function l(f){return f===46||f===95?e.check(Gk,c,u)(f):f===null||tn(f)||so(f)||f!==45&&Yp(f)?c(f):(i=!0,e.consume(f),l)}function u(f){return f===95?r=!0:(a=r,r=void 0),e.consume(f),l}function c(f){return a||r||!i?n(f):t(f)}}function lte(e,t){let n=0,r=0;return a;function a(l){return l===40?(n++,e.consume(l),a):l===41&&r<n?i(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Gk,t,i)(l):l===null||tn(l)||so(l)?t(l):(e.consume(l),a)}function i(l){return l===41&&r++,e.consume(l),a}}function ote(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),i):u===93?(e.consume(u),a):u===60||u===null||tn(u)||so(u)?t(u):n(u)}function a(u){return u===null||u===40||u===91||tn(u)||so(u)?t(u):r(u)}function i(u){return Or(u)?l(u):n(u)}function l(u){return u===59?(e.consume(u),r):Or(u)?(e.consume(u),l):n(u)}}function ute(e,t,n){return r;function r(i){return e.consume(i),a}function a(i){return Tr(i)?n(i):t(i)}}function Xk(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||tn(e)}function Kk(e){return!Or(e)}function Wk(e){return!(e===47||ub(e))}function ub(e){return e===43||e===45||e===46||e===95||Tr(e)}function h4(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const cte={tokenize:bte,partial:!0};function dte(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:mte,continuation:{tokenize:gte},exit:xte}},text:{91:{name:"gfmFootnoteCall",tokenize:pte},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:fte,resolveTo:hte}}}}function fte(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;a--;){const c=r.events[a][1];if(c.type==="labelImage"){l=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return u;function u(c){if(!l||!l._balanced)return n(c);const f=Qa(r.sliceSerialize({start:l.end,end:r.now()}));return f.codePointAt(0)!==94||!i.includes(f.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function hte(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+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)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function pte(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,l;return u;function u(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),c}function c(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(h){if(i>999||h===93&&!l||h===null||h===91||tn(h))return n(h);if(h===93){e.exit("chunkString");const x=e.exit("gfmFootnoteCallString");return a.includes(Qa(r.sliceSerialize(x)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return tn(h)||(l=!0),i++,e.consume(h),h===92?g:f}function g(h){return h===91||h===92||h===93?(e.consume(h),i++,f):f(h)}}function mte(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,l=0,u;return c;function c(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",g):n(E)}function g(E){if(l>999||E===93&&!u||E===null||E===91||tn(E))return n(E);if(E===93){e.exit("chunkString");const _=e.exit("gfmFootnoteDefinitionLabelString");return i=Qa(r.sliceSerialize(_)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),x}return tn(E)||(u=!0),l++,e.consume(E),E===92?h:g}
vendor: 8,640 bytes, line 703
703function h(E){return E===91||E===92||E===93?(e.consume(E),l++,g):g(E)}function x(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),a.includes(i)||a.push(i),vt(e,b,"gfmFootnoteDefinitionWhitespace")):n(E)}function b(E){return t(E)}}function gte(e,t,n){return e.check(ud,t,e.attempt(cte,t,n))}function xte(e){e.exit("gfmFootnoteDefinition")}function bte(e,t,n){const r=this;return vt(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(i):n(i)}}function yte(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(l,u){let c=-1;for(;++c<l.length;)if(l[c][0]==="enter"&&l[c][1].type==="strikethroughSequenceTemporary"&&l[c][1]._close){let f=c;for(;f--;)if(l[f][0]==="exit"&&l[f][1].type==="strikethroughSequenceTemporary"&&l[f][1]._open&&l[c][1].end.offset-l[c][1].start.offset===l[f][1].end.offset-l[f][1].start.offset){l[c][1].type="strikethroughSequence",l[f][1].type="strikethroughSequence";const g={type:"strikethrough",start:Object.assign({},l[f][1].start),end:Object.assign({},l[c][1].end)},h={type:"strikethroughText",start:Object.assign({},l[f][1].end),end:Object.assign({},l[c][1].start)},x=[["enter",g,u],["enter",l[f][1],u],["exit",l[f][1],u],["enter",h,u]],b=u.parser.constructs.insideSpan.null;b&&pa(x,x.length,0,Qp(b,l.slice(f+1,c),u)),pa(x,x.length,0,[["exit",h,u],["enter",l[c][1],u],["exit",l[c][1],u],["exit",g,u]]),pa(l,f-1,c-f+3,x),c=f+x.length-2;break}}for(c=-1;++c<l.length;)l[c][1].type==="strikethroughSequenceTemporary"&&(l[c][1].type="data");return l}function i(l,u,c){const f=this.previous,g=this.events;let h=0;return x;function x(E){return f===126&&g[g.length-1][1].type!=="characterEscape"?c(E):(l.enter("strikethroughSequenceTemporary"),b(E))}function b(E){const _=ju(f);if(E===126)return h>1?c(E):(l.consume(E),h++,b);if(h<2&&!n)return c(E);const C=l.exit("strikethroughSequenceTemporary"),w=ju(E);return C._open=!w||w===2&&!!_,C._close=!_||_===2&&!!w,u(E)}}}class vte{constructor(){this.map=[]}add(t,n,r){Ete(this,t,n,r)}consume(t){if(this.map.sort(function(i,l){return i[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const i of a)t.push(i);a=r.pop()}this.map.length=0}}function Ete(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function Ste(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function _te(){return{flow:{null:{name:"table",tokenize:Tte,resolveAll:wte}}}}function Tte(e,t,n){const r=this;let a=0,i=0,l;return u;function u($){let te=r.events.length-1;for(;te>-1;){const ie=r.events[te][1].type;if(ie==="lineEnding"||ie==="linePrefix")te--;else break}const ee=te>-1?r.events[te][1].type:null,he=ee==="tableHead"||ee==="tableRow"?j:c;return he===j&&r.parser.lazy[r.now().line]?n($):he($)}function c($){return e.enter("tableHead"),e.enter("tableRow"),f($)}function f($){return $===124||(l=!0,i+=1),g($)}function g($){return $===null?n($):Ge($)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),b):n($):Tt($)?vt(e,g,"whitespace")($):(i+=1,l&&(l=!1,a+=1),$===124?(e.enter("tableCellDivider"),e.consume($),e.exit("tableCellDivider"),l=!0,g):(e.enter("data"),h($)))}function h($){return $===null||$===124||tn($)?(e.exit("data"),g($)):(e.consume($),$===92?x:h)}function x($){return $===92||$===124?(e.consume($),h):h($)}function b($){return r.interrupt=!1,r.parser.lazy[r.now().line]?n($):(e.enter("tableDelimiterRow"),l=!1,Tt($)?vt(e,E,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):E($))}function E($){return $===45||$===58?C($):$===124?(l=!0,e.enter("tableCellDivider"),e.consume($),e.exit("tableCellDivider"),_):B($)}function _($){return Tt($)?vt(e,C,"whitespace")($):C($)}function C($){return $===58?(i+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume($),e.exit("tableDelimiterMarker"),w):$===45?(i+=1,w($)):$===null||Ge($)?z($):B($)}function w($){return $===45?(e.enter("tableDelimiterFiller"),N($)):B($)}function N($){return $===45?(e.consume($),N):$===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume($),e.exit("tableDelimiterMarker"),R):(e.exit("tableDelimiterFiller"),R($))}function R($){return Tt($)?vt(e,z,"whitespace")($):z($)}function z($){return $===124?E($):$===null||Ge($)?!l||a!==i?B($):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t($)):B($)}function B($){return n($)}function j($){return e.enter("tableRow"),L($)}function L($){return $===124?(e.enter("tableCellDivider"),e.consume($),e.exit("tableCellDivider"),L):$===null||Ge($)?(e.exit("tableRow"),t($)):Tt($)?vt(e,L,"whitespace")($):(e.enter("data"),Y($))}function Y($){return $===null||$===124||tn($)?(e.exit("data"),L($)):(e.consume($),$===92?Z:Y)}function Z($){return $===92||$===124?(e.consume($),Y):Y($)}}function wte(e,t){let n=-1,r=!0,a=0,i=[0,0,0,0],l=[0,0,0,0],u=!1,c=0,f,g,h;const x=new vte;for(;++n<e.length;){const b=e[n],E=b[1];b[0]==="enter"?E.type==="tableHead"?(u=!1,c!==0&&(aS(x,t,c,f,g),g=void 0,c=0),f={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},x.add(n,0,[["enter",f,t]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(r=!0,h=void 0,i=[0,0,0,0],l=[0,n+1,0,0],u&&(u=!1,g={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},x.add(n,0,[["enter",g,t]])),a=E.type==="tableDelimiterRow"?2:g?3:1):a&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(i[1]!==0&&(l[0]=l[1],h=oh(x,t,i,a,void 0,h),i=[0,0,0,0]),l[2]=n)):E.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(l[0]=l[1],h=oh(x,t,i,a,void 0,h)),i=l,l=[i[1],n,0,0])):E.type==="tableHead"?(u=!0,c=n):E.type==="tableRow"||E.type==="tableDelimiterRow"?(c=n,i[1]!==0?(l[0]=l[1],h=oh(x,t,i,a,n,h)):l[1]!==0&&(h=oh(x,t,l,a,n,h)),a=0):a&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(l[3]=n)}for(c!==0&&aS(x,t,c,f,g),x.consume(t.events),n=-1;++n<t.events.length;){const b=t.events[n];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=Ste(t.events,n))}return e}function oh(e,t,n,r,a,i){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(i.end=Object.assign({},bu(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const c=bu(t.events,n[1]);if(i={type:l,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const f=bu(t.events,n[2]),g=bu(t.events,n[3]),h={type:u,start:Object.assign({},f),end:Object.assign({},g)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const x=t.events[n[2]],b=t.events[n[3]];if(x[1].end=Object.assign({},b[1].end),x[1].type="chunkText",x[1].contentType="text",n[3]>n[2]+1){const E=n[2]+1,_=n[3]-n[2]-1;e.add(E,_,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return a!==void 0&&(i.end=Object.assign({},bu(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function aS(e,t,n,r,a){const i=[],l=bu(t.events,n);a&&(a.end=Object.assign({},l),i.push(["exit",a,t])),r.end=Object.assign({},l),i.push(["exit",r,t]),e.add(n+1,0,i)}function bu(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Ate={name:"tasklistCheck",tokenize:kte};function Cte(){return{text:{91:Ate}}}function kte(e,t,n){const r=this;return a;function a(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),i)}function i(c){return tn(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),l):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),l):n(c)}function l(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(c)}function u(c){return Ge(c)?t(c):Tt(c)?e.check({tokenize:Nte},t,n)(c):n(c)}}
vendor: 11,264 bytes, lines 703-742
703function Nte(e,t,n){return vt(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function Pte(e){return lA([tte(),dte(),yte(e),_te(),Cte()])}const Rte={};function Ote(e){const t=this,n=e||Rte,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(Pte(n)),i.push(Wee()),l.push(Zee(n))}function Mte(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:i},exit:{mathFlow:a,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:u,mathText:l,mathTextData:u}};function e(c){const f={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[f]}},c)}function t(){this.buffer()}function n(){const c=this.resume(),f=this.stack[this.stack.length-1];f.type,f.meta=c}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function a(c){const f=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),g=this.stack[this.stack.length-1];g.type,this.exit(c),g.value=f;const h=g.data.hChildren[0];h.type,h.tagName,h.children.push({type:"text",value:f}),this.data.mathFlowInside=void 0}function i(c){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},c),this.buffer()}function l(c){const f=this.resume(),g=this.stack[this.stack.length-1];g.type,this.exit(c),g.value=f,g.data.hChildren.push({type:"text",value:f})}function u(c){this.config.enter.data.call(this,c),this.config.exit.data.call(this,c)}}function Dte(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=a,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
704`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(i,l,u,c){const f=i.value||"",g=u.createTracker(c),h="$".repeat(Math.max(Ok(f,"$")+1,2)),x=u.enter("mathFlow");let b=g.move(h);if(i.meta){const E=u.enter("mathFlowMeta");b+=g.move(u.safe(i.meta,{after:`
705`,before:b,encode:["$"],...g.current()})),E()}return b+=g.move(`
706`),f&&(b+=g.move(f+`
707`)),b+=g.move(h),x(),b}function r(i,l,u){let c=i.value||"",f=1;for(t||f++;new RegExp("(^|[^$])"+"\\$".repeat(f)+"([^$]|$)").test(c);)f++;const g="$".repeat(f);/[^ \r\n]/.test(c)&&(/^[ \r\n]/.test(c)&&/[ \r\n]$/.test(c)||/^\$|\$$/.test(c))&&(c=" "+c+" ");let h=-1;for(;++h<u.unsafe.length;){const x=u.unsafe[h];if(!x.atBreak)continue;const b=u.compilePattern(x);let E;for(;E=b.exec(c);){let _=E.index;c.codePointAt(_)===10&&c.codePointAt(_-1)===13&&_--,c=c.slice(0,_)+" "+c.slice(E.index+1)}}return g+c+g}function a(){return"$"}}const Ite={tokenize:Lte,concrete:!0,name:"mathFlow"},sS={tokenize:jte,partial:!0};function Lte(e,t,n){const r=this,a=r.events[r.events.length-1],i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let l=0;return u;function u(N){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),c(N)}function c(N){return N===36?(e.consume(N),l++,c):l<2?n(N):(e.exit("mathFlowFenceSequence"),vt(e,f,"whitespace")(N))}function f(N){return N===null||Ge(N)?h(N):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(N))}function g(N){return N===null||Ge(N)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),h(N)):N===36?n(N):(e.consume(N),g)}function h(N){return e.exit("mathFlowFence"),r.interrupt?t(N):e.attempt(sS,x,C)(N)}function x(N){return e.attempt({tokenize:w,partial:!0},C,b)(N)}function b(N){return(i?vt(e,E,"linePrefix",i+1):E)(N)}function E(N){return N===null?C(N):Ge(N)?e.attempt(sS,x,C)(N):(e.enter("mathFlowValue"),_(N))}function _(N){return N===null||Ge(N)?(e.exit("mathFlowValue"),E(N)):(e.consume(N),_)}function C(N){return e.exit("mathFlow"),t(N)}function w(N,R,z){let B=0;return vt(N,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function j(Z){return N.enter("mathFlowFence"),N.enter("mathFlowFenceSequence"),L(Z)}function L(Z){return Z===36?(B++,N.consume(Z),L):B<l?z(Z):(N.exit("mathFlowFenceSequence"),vt(N,Y,"whitespace")(Z))}function Y(Z){return Z===null||Ge(Z)?(N.exit("mathFlowFence"),R(Z)):z(Z)}}}function jte(e,t,n){const r=this;return a;function a(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i)}function i(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function Bte(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:zte,previous:Fte,name:"mathText"};function r(a,i,l){let u=0,c,f;return g;function g(_){return a.enter("mathText"),a.enter("mathTextSequence"),h(_)}function h(_){return _===36?(a.consume(_),u++,h):u<2&&!n?l(_):(a.exit("mathTextSequence"),x(_))}function x(_){return _===null?l(_):_===36?(f=a.enter("mathTextSequence"),c=0,E(_)):_===32?(a.enter("space"),a.consume(_),a.exit("space"),x):Ge(_)?(a.enter("lineEnding"),a.consume(_),a.exit("lineEnding"),x):(a.enter("mathTextData"),b(_))}function b(_){return _===null||_===32||_===36||Ge(_)?(a.exit("mathTextData"),x(_)):(a.consume(_),b)}function E(_){return _===36?(a.consume(_),c++,E):c===u?(a.exit("mathTextSequence"),a.exit("mathText"),i(_)):(f.type="mathTextData",b(_))}}}function zte(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="mathTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function Fte(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Hte(e){return{flow:{36:Ite},text:{36:Bte(e)}}}const Ute={};function qte(e){const t=this,n=e||Ute,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(Hte(n)),i.push(Mte()),l.push(Dte(n))}function $te({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!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 l=t.length&&!t.every(c=>c==="*"),u=n.length&&!n.every(c=>c==="*");if(!e&&(l||u))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return c=>{const f=Yte(e,t,n,r,a,i);io(c,f)}}function iS(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 Vte(e){return typeof e!="string"?!1:e.startsWith("/")}const Gte=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:"]);function lS(e,t,n,r=!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&&r&&e.startsWith("data:image/")?e:null;const i=iS(e,n);if(!i||!Gte.has(i.protocol))return null;if(i.protocol==="mailto:")return i.href;const l=Vte(e);return i&&t.some(u=>{const c=iS(u,n);return!c||c.origin!==i.origin?!1:i.href.startsWith(c.href)})?l?i.pathname+i.search+i.hash:i.href:t.includes("*")?i.protocol!=="https:"&&i.protocol!=="http:"?null:l?i.pathname+i.search+i.hash:i.href:null}const L2=Symbol("node-seen"),Yte=(e,t,n,r,a,i)=>{const l=(u,c,f)=>{if(u.type!=="element"||u[L2])return c0;if(u.tagName==="a"){const g=lS(u.properties.href,t,e,!1,!1);return g===null?(u[L2]=!0,io(u,l),f&&typeof c=="number"&&(f.children[c]={type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(u.properties.href),class:i},children:[...u.children,{type:"text",value:" [blocked]"}]}),qh):(u.properties.href=g,u.properties.target="_blank",u.properties.rel="noopener noreferrer",c0)}if(u.tagName==="img"){const g=lS(u.properties.src,n,e,r,!0);return g===null?(u[L2]=!0,io(u,l),f&&typeof c=="number"&&(f.children[c]={type:"element",tagName:"span",properties:{class:a},children:[{type:"text",value:"[Image blocked: "+String(u.properties.alt||"No description")+"]"}]}),qh):(u.properties.src=g,c0)}return c0};return l};/**
708 * @license lucide-react v0.542.0 - ISC
709 *
710 * This source code is licensed under the ISC license.
711 * See the LICENSE file in the root directory of this source tree.
712 */const Qte=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Xte=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),oS=e=>{const t=Xte(e);return t.charAt(0).toUpperCase()+t.slice(1)},Zk=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Kte=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
713 * @license lucide-react v0.542.0 - ISC
714 *
715 * This source code is licensed under the ISC license.
716 * See the LICENSE file in the root directory of this source tree.
717 */var Wte={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"};/**
718 * @license lucide-react v0.542.0 - ISC
719 *
720 * This source code is licensed under the ISC license.
721 * See the LICENSE file in the root directory of this source tree.
722 */const Zte=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:l,...u},c)=>A.createElement("svg",{ref:c,...Wte,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Zk("lucide",a),...!i&&!Kte(u)&&{"aria-hidden":"true"},...u},[...l.map(([f,g])=>A.createElement(f,g)),...Array.isArray(i)?i:[i]]));/**
723 * @license lucide-react v0.542.0 - ISC
724 *
725 * This source code is licensed under the ISC license.
726 * See the LICENSE file in the root directory of this source tree.
727 */const p4=(e,t)=>{const n=A.forwardRef(({className:r,...a},i)=>A.createElement(Zte,{ref:i,iconNode:t,className:Zk(`lucide-${Qte(oS(e))}`,`lucide-${e}`,r),...a}));return n.displayName=oS(e),n};/**
728 * @license lucide-react v0.542.0 - ISC
729 *
730 * This source code is licensed under the ISC license.
731 * See the LICENSE file in the root directory of this source tree.
732 */const Jte=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Jk=p4("check",Jte);/**
733 * @license lucide-react v0.542.0 - ISC
734 *
735 * This source code is licensed under the ISC license.
736 * See the LICENSE file in the root directory of this source tree.
737 */const ene=[["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"}]],eN=p4("copy",ene);/**
738 * @license lucide-react v0.542.0 - ISC
739 *
740 * This source code is licensed under the ISC license.
741 * See the LICENSE file in the root directory of this source tree.
742 */const tne=[["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"}]],m4=p4("download",tne);
vendor: 44,321 bytes, lines 742-744
742let Fn=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function nne(e){return g4(e)}function g4(e){return Array.isArray(e)?rne(e):e instanceof RegExp?e:typeof e=="object"?ane(e):e}function rne(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=g4(e[n]);return t}function ane(e){let t={};for(let n in e)t[n]=g4(e[n]);return t}function tN(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function nN(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?nN(e.substring(0,e.length-1)):e.substr(~t+1)}var j2=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,uh=class{static hasCaptures(e){return e===null?!1:(j2.lastIndex=0,j2.test(e))}static replaceCaptures(e,t,n){return e.replace(j2,(r,a,i,l)=>{let u=n[parseInt(a||i,10)];if(u){let c=t.substring(u.start,u.end);for(;c[0]===".";)c=c.substring(1);switch(l){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return r})}};function rN(e,t){return e<t?-1:e>t?1:0}function aN(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let a=0;a<n;a++){let i=rN(e[a],t[a]);if(i!==0)return i}return 0}return n-r}function uS(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 sN(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var iN=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}},ep=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(lne(e),t)}static createFromParsedTheme(e,t){return une(e,t)}_cachedMatchRoot=new iN(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,r=this._cachedMatchRoot.get(t).find(a=>sne(e.parent,a.parentScopes));return r?new lN(r.fontStyle,r.foreground,r.background):null}},B2=class Ch{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Ch(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Ch(n,t[r]);return n}push(t){return new Ch(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function sne(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!ine(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function ine(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var lN=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function lne(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,i=t.length;a<i;a++){let l=t[a];if(!l.settings)continue;let u;if(typeof l.scope=="string"){let h=l.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),u=h.split(",")}else Array.isArray(l.scope)?u=l.scope:u=[""];let c=-1;if(typeof l.settings.fontStyle=="string"){c=0;let h=l.settings.fontStyle.split(" ");for(let x=0,b=h.length;x<b;x++)switch(h[x]){case"italic":c=c|1;break;case"bold":c=c|2;break;case"underline":c=c|4;break;case"strikethrough":c=c|8;break}}let f=null;typeof l.settings.foreground=="string"&&uS(l.settings.foreground)&&(f=l.settings.foreground);let g=null;typeof l.settings.background=="string"&&uS(l.settings.background)&&(g=l.settings.background);for(let h=0,x=u.length;h<x;h++){let E=u[h].trim().split(" "),_=E[E.length-1],C=null;E.length>1&&(C=E.slice(0,E.length-1),C.reverse()),n[r++]=new one(_,C,a,c,f,g)}}return n}var one=class{constructor(e,t,n,r,a,i){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=a,this.background=i}},_r=(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))(_r||{});function une(e,t){e.sort((c,f)=>{let g=rN(c.scope,f.scope);return g!==0||(g=aN(c.parentScopes,f.parentScopes),g!==0)?g:c.index-f.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let c=e.shift();c.fontStyle!==-1&&(n=c.fontStyle),c.foreground!==null&&(r=c.foreground),c.background!==null&&(a=c.background)}let i=new cne(t),l=new lN(n,i.getId(r),i.getId(a)),u=new fne(new cb(0,null,-1,0,0),[]);for(let c=0,f=e.length;c<f;c++){let g=e[c];u.insert(0,g.scope,g.parentScopes,g.fontStyle,i.getId(g.foreground),i.getId(g.background))}return new ep(i,l,u)}var cne=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,n=e.length;t<n;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)}},dne=Object.freeze([]),cb=class oN{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,i){this.scopeDepth=t,this.parentScopes=n||dne,this.fontStyle=r,this.foreground=a,this.background=i}clone(){return new oN(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},fne=class db{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const i=n.parentScopes[a].length-t.parentScopes[r].length;if(i!==0)return i;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,i;if(r===-1?(a=t,i=""):(a=t.substring(0,r),i=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(i)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(db._cmpBySpecificity),n}insert(t,n,r,a,i,l){if(n===""){this._doInsertHere(t,r,a,i,l);return}let u=n.indexOf("."),c,f;u===-1?(c=n,f=""):(c=n.substring(0,u),f=n.substring(u+1));let g;this._children.hasOwnProperty(c)?g=this._children[c]:(g=new db(this._mainRule.clone(),cb.cloneArr(this._rulesWithParentScopes)),this._children[c]=g),g.insert(t+1,f,r,a,i,l)}_doInsertHere(t,n,r,a,i){if(n===null){this._mainRule.acceptOverwrite(t,r,a,i);return}for(let l=0,u=this._rulesWithParentScopes.length;l<u;l++){let c=this._rulesWithParentScopes[l];if(aN(c.parentScopes,n)===0){c.acceptOverwrite(t,r,a,i);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new cb(t,n,r,a,i))}},Hu=class ka{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=ka.getLanguageId(t),r=ka.getTokenType(t),a=ka.getFontStyle(t),i=ka.getForeground(t),l=ka.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:i,background:l})}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,n,r,a,i,l,u){let c=ka.getLanguageId(t),f=ka.getTokenType(t),g=ka.containsBalancedBrackets(t)?1:0,h=ka.getFontStyle(t),x=ka.getForeground(t),b=ka.getBackground(t);return n!==0&&(c=n),r!==8&&(f=r),a!==null&&(g=a?1:0),i!==-1&&(h=i),l!==0&&(x=l),u!==0&&(b=u),(c<<0|f<<8|g<<10|h<<11|x<<15|b<<24)>>>0}};function tp(e,t){const n=[],r=hne(e);let a=r.next();for(;a!==null;){let c=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let f=l();if(n.push({matcher:f,priority:c}),a!==",")break;a=r.next()}return n;function i(){if(a==="-"){a=r.next();const c=i();return f=>!!c&&!c(f)}if(a==="("){a=r.next();const c=u();return a===")"&&(a=r.next()),c}if(cS(a)){const c=[];do c.push(a),a=r.next();while(cS(a));return f=>t(c,f)}return null}function l(){const c=[];let f=i();for(;f;)c.push(f),f=i();return g=>c.every(h=>h(g))}function u(){const c=[];let f=l();for(;f&&(c.push(f),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");f=l()}return g=>c.some(h=>h(g))}}function cS(e){return!!e&&!!e.match(/[\w\.:]+/)}function hne(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function uN(e){typeof e.dispose=="function"&&e.dispose()}var G0=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},pne=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},mne=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))}},gne=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new G0(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new mne;for(const n of e)xne(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof G0){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function xne(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const i=n.lookup(t);e instanceof G0?kh({baseGrammar:i,selfGrammar:a},r):fb(e.ruleName,{baseGrammar:i,selfGrammar:a,repository:a.repository},r);const l=n.injections(e.scopeName);if(l)for(const u of l)r.add(new G0(u))}function fb(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];np([r],t,n)}}function kh(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&np(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&np(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function np(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?tN({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&np(r.patterns,{...t,repository:a},n);const i=r.include;if(!i)continue;const l=cN(i);switch(l.kind){case 0:kh({...t,selfGrammar:t.baseGrammar},n);break;case 1:kh(t,n);break;case 2:fb(l.ruleName,{...t,repository:a},n);break;case 3:case 4:const u=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(u){const c={baseGrammar:t.baseGrammar,selfGrammar:u,repository:a};l.kind===4?fb(l.ruleName,c,n):kh(c,n)}else l.kind===4?n.add(new pne(l.scopeName,l.ruleName)):n.add(new G0(l.scopeName));break}}}var bne=class{kind=0},yne=class{kind=1},vne=class{constructor(e){this.ruleName=e}kind=2},Ene=class{constructor(e){this.scopeName=e}kind=3},Sne=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function cN(e){if(e==="$base")return new bne;if(e==="$self")return new yne;const t=e.indexOf("#");if(t===-1)return new Ene(e);if(t===0)return new vne(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Sne(n,r)}}var _ne=/\\(\d+)/,dS=/\\(\d+)/g,Tne=-1,dN=-2;var bd=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=uh.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=uh.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${nN(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:uh.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:uh.replaceCaptures(this._contentName,e,t)}},wne=class extends bd{retokenizeCapturedWithRuleId;constructor(e,t,n,r,a){super(e,t,n,r),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},Ane=class extends bd{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,a){super(e,t,n,null),this._match=new Y0(r,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,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Q0,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},fS=class extends bd{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,a){super(e,t,n,r),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 n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Q0,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},hb=class extends bd{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,a,i,l,u,c,f){super(e,t,n,r),this._begin=new Y0(a,this.id),this.beginCaptures=i,this._end=new Y0(l||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=u,this.applyEndPatternLast=c||!1,this.patterns=f.patterns,this.hasMissingPatterns=f.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,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Q0;for(const n of this.patterns)e.getRule(n).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}},rp=class extends bd{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,a,i,l,u,c){super(e,t,n,r),this._begin=new Y0(a,this.id),this.beginCaptures=i,this.whileCaptures=u,this._while=new Y0(l,dN),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.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,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Q0;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,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Q0,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}},fN=class vr{static createCaptureRule(t,n,r,a,i){return t.registerRule(l=>new wne(n,l,r,a,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new Ane(t.$vscodeTextmateLocation,t.id,t.name,t.match,vr._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=tN({},r,t.repository));let i=t.patterns;return typeof i>"u"&&t.include&&(i=[{include:t.include}]),new fS(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,vr._compilePatterns(i,n,r))}return t.while?new rp(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,vr._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,vr._compileCaptures(t.whileCaptures||t.captures,n,r),vr._compilePatterns(t.patterns,n,r)):new hb(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,vr._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,vr._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,vr._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let i=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const u=parseInt(l,10);u>i&&(i=u)}for(let l=0;l<=i;l++)a[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const u=parseInt(l,10);let c=0;t[l].patterns&&(c=vr.getCompiledRuleId(t[l],n,r)),a[u]=vr.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,c)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let i=0,l=t.length;i<l;i++){const u=t[i];let c=-1;if(u.include){const f=cN(u.include);switch(f.kind){case 0:case 1:c=vr.getCompiledRuleId(r[u.include],n,r);break;case 2:let g=r[f.ruleName];g&&(c=vr.getCompiledRuleId(g,n,r));break;case 3:case 4:const h=f.scopeName,x=f.kind===4?f.ruleName:null,b=n.getExternalGrammar(h,r);if(b)if(x){let E=b.repository[x];E&&(c=vr.getCompiledRuleId(E,n,b.repository))}else c=vr.getCompiledRuleId(b.repository.$self,n,b.repository);break}}else c=vr.getCompiledRuleId(u,n,r);if(c!==-1){const f=n.getRule(c);let g=!1;if((f instanceof fS||f instanceof hb||f instanceof rp)&&f.hasMissingPatterns&&f.patterns.length===0&&(g=!0),g)continue;a.push(c)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},Y0=class hN{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let a=0,i=[],l=!1;for(let u=0;u<r;u++)if(t.charAt(u)==="\\"&&u+1<r){const f=t.charAt(u+1);f==="z"?(i.push(t.substring(a,u)),i.push("$(?!\\n)(?<!\\n)"),a=u+2):(f==="A"||f==="G")&&(l=!0),u++}this.hasAnchor=l,a===0?this.source=t:(i.push(t.substring(a,r)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=_ne.test(this.source):this.hasBackReferences=!1}clone(){return new hN(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(a=>t.substring(a.start,a.end));return dS.lastIndex=0,this.source.replace(dS,(a,i)=>sN(r[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=[],n=[],r=[],a=[],i,l,u,c;for(i=0,l=this.source.length;i<l;i++)u=this.source.charAt(i),t[i]=u,n[i]=u,r[i]=u,a[i]=u,u==="\\"&&i+1<l&&(c=this.source.charAt(i+1),c==="A"?(t[i+1]="ï¿¿",n[i+1]="ï¿¿",r[i+1]="A",a[i+1]="A"):c==="G"?(t[i+1]="ï¿¿",n[i+1]="G",r[i+1]="ï¿¿",a[i+1]="G"):(t[i+1]=c,n[i+1]=c,r[i+1]=c,a[i+1]=c),i++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Q0=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(n=>n.source);this._cached=new hS(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(a=>a.resolveAnchors(t,n));return new hS(e,r,this._items.map(a=>a.ruleId))}},hS=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
743`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},z2=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Cne=class pb{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new z2(t,8),this._embeddedLanguagesMatcher=new kne(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?pb._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new z2(0,0);_getBasicScopeAttributes=new iN(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new z2(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(pb.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[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/},kne=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(([n,r])=>sN(n));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])}},pS=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function pN(e,t,n,r,a,i,l,u){const c=t.content.length;let f=!1,g=-1;if(l){const b=Nne(e,t,n,r,a,i);a=b.stack,r=b.linePos,n=b.isFirstLine,g=b.anchorPosition}const h=Date.now();for(;!f;){if(u!==0&&Date.now()-h>u)return new pS(a,!0);x()}return new pS(a,!1);function x(){const b=Pne(e,t,n,r,a,g);if(!b){i.produce(a,c),f=!0;return}const E=b.captureIndices,_=b.matchedRuleId,C=E&&E.length>0?E[0].end>r:!1;if(_===Tne){const w=a.getRule(e);i.produce(a,E[0].start),a=a.withContentNameScopesList(a.nameScopesList),h0(e,t,n,a,i,w.endCaptures,E),i.produce(a,E[0].end);const N=a;if(a=a.parent,g=N.getAnchorPos(),!C&&N.getEnterPos()===r){a=N,i.produce(a,c),f=!0;return}}else{const w=e.getRule(_);i.produce(a,E[0].start);const N=a,R=w.getName(t.content,E),z=a.contentNameScopesList.pushAttributed(R,e);if(a=a.push(_,r,g,E[0].end===c,null,z,z),w instanceof hb){const B=w;h0(e,t,n,a,i,B.beginCaptures,E),i.produce(a,E[0].end),g=E[0].end;const j=B.getContentName(t.content,E),L=z.pushAttributed(j,e);if(a=a.withContentNameScopesList(L),B.endHasBackReferences&&(a=a.withEndRule(B.getEndWithResolvedBackReferences(t.content,E))),!C&&N.hasSameRuleAs(a)){a=a.pop(),i.produce(a,c),f=!0;return}}else if(w instanceof rp){const B=w;h0(e,t,n,a,i,B.beginCaptures,E),i.produce(a,E[0].end),g=E[0].end;const j=B.getContentName(t.content,E),L=z.pushAttributed(j,e);if(a=a.withContentNameScopesList(L),B.whileHasBackReferences&&(a=a.withEndRule(B.getWhileWithResolvedBackReferences(t.content,E))),!C&&N.hasSameRuleAs(a)){a=a.pop(),i.produce(a,c),f=!0;return}}else if(h0(e,t,n,a,i,w.captures,E),i.produce(a,E[0].end),a=a.pop(),!C){a=a.safePop(),i.produce(a,c),f=!0;return}}E[0].end>r&&(r=E[0].end,n=!1)}}function Nne(e,t,n,r,a,i){let l=a.beginRuleCapturedEOL?0:-1;const u=[];for(let c=a;c;c=c.pop()){const f=c.getRule(e);f instanceof rp&&u.push({rule:f,stack:c})}for(let c=u.pop();c;c=u.pop()){const{ruleScanner:f,findOptions:g}=Mne(c.rule,e,c.stack.endRule,n,r===l),h=f.findNextMatchSync(t,r,g);if(h){if(h.ruleId!==dN){a=c.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(i.produce(c.stack,h.captureIndices[0].start),h0(e,t,n,c.stack,i,c.rule.whileCaptures,h.captureIndices),i.produce(c.stack,h.captureIndices[0].end),l=h.captureIndices[0].end,h.captureIndices[0].end>r&&(r=h.captureIndices[0].end,n=!1))}else{a=c.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:l,isFirstLine:n}}function Pne(e,t,n,r,a,i){const l=Rne(e,t,n,r,a,i),u=e.getInjections();if(u.length===0)return l;const c=One(u,e,t,n,r,a,i);if(!c)return l;if(!l)return c;const f=l.captureIndices[0].start,g=c.captureIndices[0].start;return g<f||c.priorityMatch&&g===f?c:l}function Rne(e,t,n,r,a,i){const l=a.getRule(e),{ruleScanner:u,findOptions:c}=mN(l,e,a.endRule,n,r===i),f=u.findNextMatchSync(t,r,c);return f?{captureIndices:f.captureIndices,matchedRuleId:f.ruleId}:null}function One(e,t,n,r,a,i,l){let u=Number.MAX_VALUE,c=null,f,g=0;const h=i.contentNameScopesList.getScopeNames();for(let x=0,b=e.length;x<b;x++){const E=e[x];if(!E.matcher(h))continue;const _=t.getRule(E.ruleId),{ruleScanner:C,findOptions:w}=mN(_,t,null,r,a===l),N=C.findNextMatchSync(n,a,w);if(!N)continue;const R=N.captureIndices[0].start;if(!(R>=u)&&(u=R,c=N.captureIndices,f=N.ruleId,g=E.priority,u===a))break}return c?{priorityMatch:g===-1,captureIndices:c,matchedRuleId:f}:null}function mN(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function Mne(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function h0(e,t,n,r,a,i,l){if(i.length===0)return;const u=t.content,c=Math.min(i.length,l.length),f=[],g=l[0].end;for(let h=0;h<c;h++){const x=i[h];if(x===null)continue;const b=l[h];if(b.length===0)continue;if(b.start>g)break;for(;f.length>0&&f[f.length-1].endPos<=b.start;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop();if(f.length>0?a.produceFromScopes(f[f.length-1].scopes,b.start):a.produce(r,b.start),x.retokenizeCapturedWithRuleId){const _=x.getName(u,l),C=r.contentNameScopesList.pushAttributed(_,e),w=x.getContentName(u,l),N=C.pushAttributed(w,e),R=r.push(x.retokenizeCapturedWithRuleId,b.start,-1,!1,null,C,N),z=e.createOnigString(u.substring(0,b.end));pN(e,z,n&&b.start===0,b.start,R,a,!1,0),uN(z);continue}const E=x.getName(u,l);if(E!==null){const C=(f.length>0?f[f.length-1].scopes:r.contentNameScopesList).pushAttributed(E,e);f.push(new Dne(C,b.end))}}for(;f.length>0;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop()}var Dne=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function Ine(e,t,n,r,a,i,l,u){return new jne(e,t,n,r,a,i,l,u)}function mS(e,t,n,r,a){const i=tp(t,ap),l=fN.getCompiledRuleId(n,r,a.repository);for(const u of i)e.push({debugSelector:t,matcher:u.matcher,ruleId:l,grammar:a,priority:u.priority})}function ap(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let a=n;a<t.length;a++)if(Lne(t[a],r))return n=a+1,!0;return!1})}function Lne(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var jne=class{constructor(e,t,n,r,a,i,l,u){if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=u,this._basicScopeAttributesProvider=new Cne(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=gS(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const c of Object.keys(a)){const f=tp(c,ap);for(const g of f)this._tokenTypeMatchers.push({matcher:g.matcher,type:a[c]})}}_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=[],n=this._rootScopeName,r=e.lookup(n);if(r){const a=r.injections;if(a)for(let l in a)mS(t,l,a[l],this,r);const i=this._grammarRepository.injections(n);i&&i.forEach(l=>{const u=this.getExternalGrammar(l);if(u){const c=u.injectionSelector;c&&mS(t,c,u,this,u)}})}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,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=gS(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=fN.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===mb.NULL){a=!0;const f=this._basicScopeAttributesProvider.getDefaultAttributes(),g=this.themeProvider.getDefaults(),h=Hu.set(0,f.languageId,f.tokenType,null,g.fontStyle,g.foregroundId,g.backgroundId),x=this.getRule(this._rootId).getName(null,null);let b;x?b=k0.createRootAndLookUpScopeName(x,h,this):b=k0.createRoot("unknown",h),t=new mb(null,this._rootId,-1,-1,!1,null,b,b)}else a=!1,t.reset();e=e+`
744`;const i=this.createOnigString(e),l=i.content.length,u=new zne(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=pN(this,i,a,0,t,u,!0,r);return uN(i),{lineLength:l,lineTokens:u,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function gS(e,t){return e=nne(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 k0=class cs{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=t?.scopePath??null;for(const i of n)a=B2.push(a,i.scopeNames),r=new cs(r,a,i.encodedTokenAttributes);return r}static createRoot(t,n){return new cs(null,new B2(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),i=new B2(null,t),l=r.themeProvider.themeMatch(i),u=cs.mergeAttributes(n,a,l);return new cs(null,i,u)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return cs.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let a=-1,i=0,l=0;return r!==null&&(a=r.fontStyle,i=r.foregroundId,l=r.backgroundId),Hu.set(t,n.languageId,n.tokenType,null,a,i,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return cs._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const i of r)a=cs._pushAttributed(a,i,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),i=t.scopePath.push(n),l=r.themeProvider.themeMatch(i),u=cs.mergeAttributes(t.tokenAttributes,a,l);return new cs(t,i,u)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},mb=class Vl{constructor(t,n,r,a,i,l,u,c){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=i,this.endRule=l,this.nameScopesList=u,this.contentNameScopesList=c,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new Vl(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Vl._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?k0.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){Vl._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,i,l,u){return new Vl(this,t,n,r,a,i,l,u)}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,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}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 Vl(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.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,n){const r=k0.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new Vl(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,k0.fromExtension(r,n.contentNameScopesList))}},Bne=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):tp(n,ap).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>tp(n,ap).map(r=>r.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}},zne=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,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 r=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 l of this._tokenTypeOverrides)l.matcher(i)&&(r=Hu.set(r,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(i))}if(a&&(r=Hu.set(r,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),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 n=new Uint32Array(this._binaryTokens.length);for(let r=0,a=this._binaryTokens.length;r<a;r++)n[r]=this._binaryTokens[r];return n}},Fne=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,n,r,a){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,Ine(e,i,t,n,r,a,this,this._onigLib))}return this._grammars.get(e)}},Hne=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new Fne(ep.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(ep.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new Bne(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,i){const l=new gne(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(u=>this._loadSingleGrammar(u.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,a,i)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,a=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,a)}_grammarForScopeName(t,n=0,r=null,a=null,i=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,i)}},gb=mb.NULL;const Une=/["&'<>`]/g,qne=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$ne=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Vne=/[|\\{}()[\]^$+*?.]/g,xS=new WeakMap;function Gne(e,t){if(e=e.replace(t.subset?Yne(t.subset):Une,r),t.subset||t.escapeOnly)return e;return e.replace(qne,n).replace($ne,r);function n(a,i,l){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(i+2),t)}function r(a,i,l){return t.format(a.charCodeAt(0),l.charCodeAt(i+1),t)}}function Yne(e){let t=xS.get(e);return t||(t=Qne(e),xS.set(e,t)),t}function Qne(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Vne,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Xne=/[\dA-Fa-f]/;function Kne(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Xne.test(String.fromCharCode(t))?r:r+";"}const Wne=/\d/;function Zne(e,t,n){const r="&#"+String(e);return n&&t&&!Wne.test(String.fromCharCode(t))?r:r+";"}const Jne=["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
744h","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],F2={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,421 bytes, lines 744-753
744:"⊄",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:"€"},ere=["cent","copy","divide","gt","lt","not","para","times"],gN={}.hasOwnProperty,xb={};let ch;for(ch in F2)gN.call(F2,ch)&&(xb[F2[ch]]=ch);const tre=/[^\dA-Za-z]/;function nre(e,t,n,r){const a=String.fromCharCode(e);if(gN.call(xb,a)){const i=xb[a],l="&"+i;return n&&Jne.includes(i)&&!ere.includes(i)&&(!r||t&&t!==61&&tre.test(String.fromCharCode(t)))?l:l+";"}return""}function rre(e,t,n){let r=Kne(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=nre(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=Zne(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function Pu(e,t){return Gne(e,Object.assign({format:rre},t))}const are=/^>|^->|<!--|-->|--!>|<!-$/g,sre=[">"],ire=["<",">"];function lre(e,t,n,r){return r.settings.bogusComments?"<?"+Pu(e.value,Object.assign({},r.settings.characterReferences,{subset:sre}))+">":"<!--"+e.value.replace(are,a)+"-->";function a(i){return Pu(i,Object.assign({},r.settings.characterReferences,{subset:ire}))}}function ore(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}const Jn=bN(1),xN=bN(-1),ure=[];function bN(e){return t;function t(n,r,a){const i=n?n.children:ure;let l=(r||0)+e,u=i[l];if(!a)for(;u&&$p(u);)l+=e,u=i[l];return u}}const cre={}.hasOwnProperty;function yN(e){return t;function t(n,r,a){return cre.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const x4=yN({body:fre,caption:H2,colgroup:H2,dd:gre,dt:mre,head:H2,html:dre,li:pre,optgroup:xre,option:bre,p:hre,rp:bS,rt:bS,tbody:vre,td:yS,tfoot:Ere,th:yS,thead:yre,tr:Sre});function H2(e,t,n){const r=Jn(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&$p(r.value.charAt(0)))}function dre(e,t,n){const r=Jn(n,t);return!r||r.type!=="comment"}function fre(e,t,n){const r=Jn(n,t);return!r||r.type!=="comment"}function hre(e,t,n){const r=Jn(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function pre(e,t,n){const r=Jn(n,t);return!r||r.type==="element"&&r.tagName==="li"}function mre(e,t,n){const r=Jn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function gre(e,t,n){const r=Jn(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function bS(e,t,n){const r=Jn(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function xre(e,t,n){const r=Jn(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function bre(e,t,n){const r=Jn(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function yre(e,t,n){const r=Jn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function vre(e,t,n){const r=Jn(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Ere(e,t,n){return!Jn(n,t)}function Sre(e,t,n){const r=Jn(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function yS(e,t,n){const r=Jn(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const _re=yN({body:Are,colgroup:Cre,head:wre,html:Tre,tbody:kre});function Tre(e){const t=Jn(e,-1);return!t||t.type!=="comment"}function wre(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function Are(e){const t=Jn(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&$p(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Cre(e,t,n){const r=xN(n,t),a=Jn(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&x4(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function kre(e,t,n){const r=xN(n,t),a=Jn(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&x4(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const dh={name:[[`	
745\f\r &/=>`.split(""),`	
746\f\r "&'/=>\``.split("")],[`\0	
747\f\r "&'/<=>`.split(""),`\0	
748\f\r "&'/<=>\``.split("")]],unquoted:[[`	
749\f\r &>`.split(""),`\0	
750\f\r "&'<=>\``.split("")],[`\0	
751\f\r "&'<=>\``.split(""),`\0	
752\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Nre(e,t,n,r){const a=r.schema,i=a.space==="svg"?!1:r.settings.omitOptionalTags;let l=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const u=[];let c;a.space==="html"&&e.tagName==="svg"&&(r.schema=gl);const f=Pre(r,e.properties),g=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,g&&(l=!1),(f||!i||!_re(e,t,n))&&(u.push("<",e.tagName,f?" "+f:""),l&&(a.space==="svg"||r.settings.closeSelfClosing)&&(c=f.charAt(f.length-1),(!r.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&u.push(" "),u.push("/")),u.push(">")),u.push(g),!l&&(!i||!x4(e,t,n))&&u.push("</"+e.tagName+">"),u.join("")}function Pre(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const i=Rre(e,a,t[a]);i&&n.push(i)}}for(;++r<n.length;){const i=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&i!=='"'&&i!=="'"&&(n[r]+=" ")}return n.join("")}function Rre(e,t,n){const r=Vp(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1;let l=e.quote,u;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const c=Pu(r.attribute,Object.assign({},e.settings.characterReferences,{subset:dh.name[a][i]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Ey:_y)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(u=Pu(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:dh.unquoted[a][i]}))),u!==n&&(e.settings.quoteSmart&&Zh(n,l)>Zh(n,e.alternative)&&(l=e.alternative),u=l+Pu(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?dh.single:dh.double)[a][i],attribute:!0}))+l),c+(u&&"="+u))}const Ore=["<","&"];function vN(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Pu(e.value,Object.assign({},r.settings.characterReferences,{subset:Ore}))}function Mre(e,t,n,r){return r.settings.allowDangerousHtml?e.value:vN(e,t,n,r)}function Dre(e,t,n,r){return r.all(e)}const Ire=s4("type",{invalid:Lre,unknown:jre,handlers:{comment:lre,doctype:ore,element:Nre,raw:Mre,root:Dre,text:vN}});function Lre(e){throw new Error("Expected node, not `"+e+"`")}function jre(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const Bre={},zre={},Fre=[];function Hre(e,t){const n=t||Bre,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Ure,all:qre,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||KC,characterReferences:n.characterReferences||zre,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?gl:od,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Ure(e,t,n){return Ire(e,t,n,this)}function qre(e){const t=[],n=e&&e.children||Fre;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function sp(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,i]of Object.entries(t?.colorReplacements||{}))typeof i=="string"?n[a]=i:a===r&&Object.assign(n,i);return n}function sl(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function $re(e){return Array.isArray(e)?e:[e]}async function EN(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function b4(e){return!e||["plaintext","txt","text","plain"].includes(e)}function SN(e){return e==="ansi"||b4(e)}function y4(e){return e==="none"}function _N(e){return y4(e)}function TN(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 n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function om(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let i=0;i<n.length;i+=2){const l=t?n[i]+(n[i+1]||""):n[i];a.push([l,r]),r+=n[i].length,r+=n[i+1]?.length||0}return a}function Vre(e){const t=om(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let i=a,l=0;for(const u of t){if(i<u.length)break;i-=u.length,l++}return{line:l,character:i}}function r(a,i){let l=0;for(let u=0;u<a;u++)l+=t[u].length;return l+=i,l}return{lines:t,indexToPos:n,posToIndex:r}}const v4="light-dark()",Gre=["color","background-color"];function Yre(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function Qre(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const i=n.filter(l=>a.offset<l&&l<a.offset+a.content.length).map(l=>l-a.offset).sort((l,u)=>l-u);return i.length?Yre(a,i):a})):e}function Xre(e,t,n,r,a="css-vars"){const i={content:e.content,explanation:e.explanation,offset:e.offset},l=t.map(g=>ip(e.variants[g])),u=new Set(l.flatMap(g=>Object.keys(g))),c={},f=(g,h)=>{const x=h==="color"?"":h==="background-color"?"-bg":`-${h}`;return n+t[g]+(h==="color"?"":x)};return l.forEach((g,h)=>{for(const x of u){const b=g[x]||"inherit";if(h===0&&r&&Gre.includes(x))if(r===v4&&l.length>1){const E=t.findIndex(N=>N==="light"),_=t.findIndex(N=>N==="dark");if(E===-1||_===-1)throw new Fn('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const C=l[E][x]||"inherit",w=l[_][x]||"inherit";c[x]=`light-dark(${C}, ${w})`,a==="css-vars"&&(c[f(h,x)]=b)}else c[x]=b;else a==="css-vars"&&(c[f(h,x)]=b)}}),i.htmlStyle=c,i}function ip(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&_r.Italic&&(t["font-style"]="italic"),e.fontStyle&_r.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&_r.Underline&&n.push("underline"),e.fontStyle&_r.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function bb(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const wN=new WeakMap;function um(e,t){wN.set(e,t)}function X0(e){return wN.get(e)}class nc{_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,n){return new nc(Object.fromEntries($re(n).map(r=>[r,gb])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,a]=t;this.lang=r,this._stacks={[a]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return Kre(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function Kre(e){const t=[],n=new Set;function r(a){if(n.has(a))return;n.add(a);const i=a?.nameScopesList?.scopeName;i&&t.push(i),a.parent&&r(a.parent)}return r(e),t}function Wre(e,t){if(!(e instanceof nc))throw new Fn("Invalid grammar state");return e.getInternalStack(t)}function Zre(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(l){if(typeof l=="number"){if(l<0||l>n.source.length)throw new Fn(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...a.indexToPos(l),offset:l}}else{const u=a.lines[l.line];if(u===void 0)throw new Fn(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${a.lines.length}`);let c=l.character;if(c<0&&(c=u.length+c),c<0||c>u.length)throw new Fn(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${u.length}`);return{...l,character:c,offset:a.posToIndex(l.line,c)}}};const a=Vre(n.source),i=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));Jre(i),e.set(n.meta,{decorations:i,converter:a,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const a=t(this).decorations.flatMap(l=>[l.start.offset,l.end.offset]);return Qre(n,a)},code(n){if(!this.options.decorations?.length)return;const r=t(this),a=Array.from(n.children).filter(g=>g.type==="element"&&g.tagName==="span");if(a.length!==r.converter.lines.length)throw new Fn(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function i(g,h,x,b){const E=a[g];let _="",C=-1,w=-1;if(h===0&&(C=0),x===0&&(w=0),x===Number.POSITIVE_INFINITY&&(w=E.children.length),C===-1||w===-1)for(let R=0;R<E.children.length;R++)_+=AN(E.children[R]),C===-1&&_.length===h&&(C=R+1),w===-1&&_.length===x&&(w=R+1);if(C===-1)throw new Fn(`Failed to find start index for decoration ${JSON.stringify(b.start)}`);if(w===-1)throw new Fn(`Failed to find end index for decoration ${JSON.stringify(b.end)}`);const N=E.children.slice(C,w);if(!b.alwaysWrap&&N.length===E.children.length)u(E,b,"line");else if(!b.alwaysWrap&&N.length===1&&N[0].type==="element")u(N[0],b,"token");else{const R={type:"element",tagName:"span",properties:{},children:N};u(R,b,"wrapper"),E.children.splice(C,N.length,R)}}function l(g,h){a[g]=u(a[g],h,"line")}function u(g,h,x){const b=h.properties||{},E=h.transform||(_=>_);return g.tagName=h.tagName||"span",g.properties={...g.properties,...b,class:g.properties.class},h.properties?.class&&TN(g,h.properties.class),g=E(g,x)||g,g}const c=[],f=r.decorations.sort((g,h)=>h.start.offset-g.start.offset||g.end.offset-h.end.offset);for(const g of f){const{start:h,end:x}=g;if(h.line===x.line)i(h.line,h.character,x.character,g);else if(h.line<x.line){i(h.line,h.character,Number.POSITIVE_INFINITY,g);for(let b=h.line+1;b<x.line;b++)c.unshift(()=>l(b,g));i(x.line,0,x.character,g)}}c.forEach(g=>g())}}}function Jre(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Fn(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],i=n.start.offset<=a.start.offset&&a.start.offset<n.end.offset,l=n.start.offset<a.end.offset&&a.end.offset<=n.end.offset,u=a.start.offset<=n.start.offset&&n.start.offset<a.end.offset,c=a.start.offset<n.end.offset&&n.end.offset<=a.end.offset;if(i||l||u||c){if(i&&l||u&&c||u&&n.start.offset===n.end.offset||l&&a.start.offset===a.end.offset)continue;throw new Fn(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function AN(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(AN).join(""):""}const eae=[Zre()];function lp(e){const t=tae(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...eae]}function tae(e){const t=[],n=[],r=[];for(const a of e)switch(a.enforce){case"pre":t.push(a);break;case"post":n.push(a);break;default:r.push(a)}return{pre:t,post:n,normal:r}}var Xl=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],U2={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function nae(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function vS(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function rae(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)U2[r]&&t.push({type:"setDecoration",value:U2[r]});else if(r<=29){const a=U2[r-20];a&&(t.push({type:"resetDecoration",value:a}),a==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Xl[r-30]}});else if(r===38){const a=vS(e);a&&t.push({type:"setForegroundColor",value:a})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Xl[r-40]}});else if(r===48){const a=vS(e);a&&t.push({type:"setBackgroundColor",value:a})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Xl[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Xl[r-100+8]}})}return t}function aae(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let i=0;do{const l=nae(r,i),u=l.sequence?r.substring(i,l.startPosition):r.substring(i);if(u.length>0&&a.push({value:u,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const c=rae(l.sequence);for(const f of c)f.type==="resetAll"?(e=null,t=null,n.clear()):f.type==="resetForegroundColor"?e=null:f.type==="resetBackgroundColor"?t=null:f.type==="resetDecoration"&&n.delete(f.value);for(const f of c)f.type==="setForegroundColor"?e=f.value:f.type==="setBackgroundColor"?t=f.value:f.type==="setDecoration"&&n.add(f.value)}i=l.position}while(i<r.length);return a}}}var sae={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 iae(e=sae){function t(u){return e[u]}function n(u){return`#${u.map(c=>Math.max(0,Math.min(c,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let f=0;f<Xl.length;f++)r.push(t(Xl[f]));let u=[0,95,135,175,215,255];for(let f=0;f<6;f++)for(let g=0;g<6;g++)for(let h=0;h<6;h++)r.push(n([u[f],u[g],u[h]]));let c=8;for(let f=0;f<24;f++,c+=10)r.push(n([c,c,c]));return r}function i(u){return a()[u]}function l(u){switch(u.type){case"named":return t(u.name);case"rgb":return n(u.rgb);case"table":return i(u.index)}}return{value:l}}function lae(e,t,n){const r=sp(e,n),a=om(t),i=iae(Object.fromEntries(Xl.map(u=>[u,e.colors?.[`terminal.ansi${u[0].toUpperCase()}${u.substring(1)}`]]))),l=aae();return a.map(u=>l.parse(u[0]).map(c=>{let f,g;c.decorations.has("reverse")?(f=c.background?i.value(c.background):e.bg,g=c.foreground?i.value(c.foreground):e.fg):(f=c.foreground?i.value(c.foreground):e.fg,g=c.background?i.value(c.background):void 0),f=sl(f,r),g=sl(g,r),c.decorations.has("dim")&&(f=oae(f));let h=_r.None;return c.decorations.has("bold")&&(h|=_r.Bold),c.decorations.has("italic")&&(h|=_r.Italic),c.decorations.has("underline")&&(h|=_r.Underline),c.decorations.has("strikethrough")&&(h|=_r.Strikethrough),{content:c.value,offset:u[1],color:f,bgColor:g,fontStyle:h}}))}function oae(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function E4(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(b4(r)||y4(a))return om(t).map(c=>[{content:c[0],offset:c[1]}]);const{theme:i,colorMap:l}=e.setTheme(a);if(r==="ansi")return lae(i,t,n);const u=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==u.name)throw new Fn(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${u.name}"`);if(!n.grammarState.themes.includes(i.name))throw new Fn(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return cae(t,u,i,l,n)}function uae(...e){if(e.length===2)return X0(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:i=t.getLoadedThemes()[0]}=r;if(b4(a)||y4(i))throw new Fn("Plain language does not have grammar state");if(a==="ansi")throw new Fn("ANSI language does not have grammar state");const{theme:l,colorMap:u}=t.setTheme(i),c=t.getLanguage(a);return new nc(op(n,c,l,u,r).stateStack,c.name,l.name)}function cae(e,t,n,r,a){const i=op(e,t,n,r,a),l=new nc(op(e,t,n,r,a).stateStack,t.name,n.name);return um(i.tokens,l),i.tokens}function op(e,t,n,r,a){const i=sp(n,a),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:u=500}=a,c=om(e);let f=a.grammarState?Wre(a.grammarState,n.name)??gb:a.grammarContextCode!=null?op(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:gb,g=[];const h=[];for(let x=0,b=c.length;x<b;x++){const[E,_]=c[x];if(E===""){g=[],h.push([]);continue}if(l>0&&E.length>=l){g=[],h.push([{content:E,offset:_,color:"",fontStyle:0}]);continue}let C,w,N;a.includeExplanation&&(C=t.tokenizeLine(E,f,u),w=C.tokens,N=0);const R=t.tokenizeLine2(E,f,u),z=R.tokens.length/2;for(let B=0;B<z;B++){const j=R.tokens[2*B],L=B+1<z?R.tokens[2*B+2]:E.length;if(j===L)continue;const Y=R.tokens[2*B+1],Z=sl(r[Hu.getForeground(Y)],i),$=Hu.getFontStyle(Y),te={content:E.substring(j,L),offset:_+j,color:Z,fontStyle:$};if(a.includeExplanation){const ee=[];if(a.includeExplanation!=="scopeName")for(const ie of n.settings){let ne;switch(typeof ie.scope){case"string":ne=ie.scope.split(/,/).map(H=>H.trim());break;case"object":ne=ie.scope;break;default:continue}ee.push({settings:ie,selectors:ne.map(H=>H.split(/ /))})}te.explanation=[];let he=0;for(;j+he<L;){const ie=w[N],ne=E.substring(ie.startIndex,ie.endIndex);he+=ne.length,te.explanation.push({content:ne,scopes:a.includeExplanation==="scopeName"?dae(ie.scopes):fae(ee,ie.scopes)}),N+=1}}g.push(te)}h.push(g),g=[],f=R.ruleStack}return{tokens:h,stateStack:f}}function dae(e){return e.map(t=>({scopeName:t}))}function fae(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const i=t[r];n[r]={scopeName:i,themeMatches:pae(e,i,t.slice(0,r))}}return n}function ES(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function hae(e,t,n){if(!ES(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)ES(e[r],n[a])&&(r-=1),a-=1;return r===-1}function pae(e,t,n){const r=[];for(const{selectors:a,settings:i}of e)for(const l of a)if(hae(l,t,n)){r.push(i);break}return r}function CN(e,t,n){const r=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),a=r.map(c=>{const f=E4(e,t,{...n,theme:c.theme}),g=X0(f),h=typeof c.theme=="string"?c.theme:c.theme.name;return{tokens:f,state:g,theme:h}}),i=mae(...a.map(c=>c.tokens)),l=i[0].map((c,f)=>c.map((g,h)=>{const x={content:g.content,variants:{},offset:g.offset};return"includeExplanation"in n&&n.includeExplanation&&(x.explanation=g.explanation),i.forEach((b,E)=>{const{content:_,explanation:C,offset:w,...N}=b[f][h];x.variants[r[E].color]=N}),x})),u=a[0].state?new nc(Object.fromEntries(a.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),a[0].state.lang):void 0;return u&&um(l,u),l}function mae(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(c=>c[r]),i=t.map(()=>[]);t.forEach((c,f)=>c.push(i[f]));const l=a.map(()=>0),u=a.map(c=>c[0]);for(;u.every(c=>c);){const c=Math.min(...u.map(f=>f.content.length));for(let f=0;f<n;f++){const g=u[f];g.content.length===c?(i[f].push(g),l[f]+=1,u[f]=a[f][l[f]]):(i[f].push({...g,content:g.content.slice(0,c)}),u[f]={...g,content:g.content.slice(c),offset:g.offset+c})}}}return t}function up(e,t,n){let r,a,i,l,u,c;if("themes"in n){const{defaultColor:f="light",cssVariablePrefix:g="--shiki-",colorsRendering:h="css-vars"}=n,x=Object.entries(n.themes).filter(w=>w[1]).map(w=>({color:w[0],theme:w[1]})).sort((w,N)=>w.color===f?-1:N.color===f?1:0);if(x.length===0)throw new Fn("`themes` option must not be empty");const b=CN(e,t,n);if(c=X0(b),f&&v4!==f&&!x.find(w=>w.color===f))throw new Fn(`\`themes\` option must contain the defaultColor key \`${f}\``);const E=x.map(w=>e.getTheme(w.theme)),_=x.map(w=>w.color);i=b.map(w=>w.map(N=>Xre(N,_,g,f,h))),c&&um(i,c);const C=x.map(w=>sp(w.theme,n));a=SS(x,E,C,g,f,"fg",h),r=SS(x,E,C,g,f,"bg",h),l=`shiki-themes ${E.map(w=>w.name).join(" ")}`,u=f?void 0:[a,r].join(";")}else if("theme"in n){const f=sp(n.theme,n);i=E4(e,t,n);const g=e.getTheme(n.theme);r=sl(g.bg,f),a=sl(g.fg,f),l=g.name,c=X0(i)}else throw new Fn("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:a,bg:r,themeName:l,rootStyle:u,grammarState:c}}function SS(e,t,n,r,a,i,l){return e.map((u,c)=>{const f=sl(t[c][i],n[c])||"inherit",g=`${r+u.color}${i==="bg"?"-bg":""}:${f}`;if(c===0&&a){if(a===v4&&e.length>1){const h=e.findIndex(_=>_.color==="light"),x=e.findIndex(_=>_.color==="dark");if(h===-1||x===-1)throw new Fn('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const b=sl(t[h][i],n[h])||"inherit",E=sl(t[x][i],n[x])||"inherit";return`light-dark(${b}, ${E});${g}`}return f}return l==="css-vars"?g:null}).filter(u=>!!u).join(";")}function cp(e,t,n,r={meta:{},options:n,codeToHast:(a,i)=>cp(e,a,i),codeToTokens:(a,i)=>up(e,a,i)}){let a=t;for(const E of lp(n))a=E.preprocess?.call(r,a,n)||a;let{tokens:i,fg:l,bg:u,themeName:c,rootStyle:f,grammarState:g}=up(e,a,n);const{mergeWhitespaces:h=!0,mergeSameStyleTokens:x=!1}=n;h===!0?i=xae(i):h==="never"&&(i=bae(i)),x&&(i=yae(i));const b={...r,get source(){return a}};for(const E of lp(n))i=E.tokens?.call(b,i)||i;return gae(i,{...n,fg:l,bg:u,themeName:c,rootStyle:f},b,g)}function gae(e,t,n,r=X0(e)){const a=lp(t),i=[],l={type:"root",children:[]},{structure:u="classic",tabindex:c="0"}=t;let f={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...c!==!1&&c!=null?{tabindex:c.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([E])=>!E.startsWith("_")))},children:[]},g={type:"element",tagName:"code",properties:{},children:i};const h=[],x={...n,structure:u,addClassToHast:TN,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return f},get code(){return g},get lines(){return h}};if(e.forEach((E,_)=>{_&&(u==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):u==="classic"&&i.push({type:"text",value:`
753`}));let C={type:"element",tagName:"span",properties:{class:"line"},children:[]},w=0;for(const N of E){let R={type:"element",tagName:"span",properties:{...N.htmlAttrs},children:[{type:"text",value:N.content}]};const z=bb(N.htmlStyle||ip(N));z&&(R.properties.style=z);for(const B of a)R=B?.span?.call(x,R,_+1,w,C,N)||R;u==="inline"?l.children.push(R):u==="classic"&&C.children.push(R),w+=N.content.length}if(u==="classic"){for(const N of a)C=N?.line?.call(x,C,_+1)||C;h.push(C),i.push(C)}}),u==="classic"){for(const E of a)g=E?.code?.call(x,g)||g;f.children.push(g);for(const E of a)f=E?.pre?.call(x,f)||f;l.children.push(f)}let b=l;for(const E of a)b=E?.root?.call(x,b)||b;return r&&um(b,r),b}function xae(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((i,l)=>{const c=!(i.fontStyle&&(i.fontStyle&_r.Underline||i.fontStyle&_r.Strikethrough));c&&i.content.match(/^\s+$/)&&t[l+1]?(a||(a=i.offset),r+=i.content):r?(c?n.push({...i,offset:a,content:r+i.content}):n.push({content:r,offset:a},i),a=0,r=""):n.push(i)}),n})}function bae(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,a,i,l]=r;if(!a&&!l)return n;const u=[{...n,offset:n.offset+a.length,content:i}];return a&&u.unshift({content:a,offset:n.offset}),l&&u.push({content:l,offset:n.offset+a.length+i.length}),u}))}function yae(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const a=n[n.length-1],i=bb(a.htmlStyle||ip(a)),l=bb(r.htmlStyle||ip(r)),u=a.fontStyle&&(a.fontStyle&_r.Underline||a.fontStyle&_r.Strikethrough),c=r.fontStyle&&(r.fontStyle&_r.Underline||r.fontStyle&_r.Strikethrough);!u&&!c&&i===l?a.content+=r.content:n.push({...r})}return n})}const vae=Hre;function Eae(e,t,n){const r={meta:{},options:n,codeToHast:(i,l)=>cp(e,i,l),codeToTokens:(i,l)=>up(e,i,l)};let a=vae(cp(e,t,n,r));for(const i of lp(n))a=i.postprocess?.call(r,a,n)||a;return a}const _S={light:"#333333",dark:"#bbbbbb"},TS={light:"#fffffe",dark:"#1e1e1e"},wS="__shiki_resolved";function S4(e){if(e?.[wS])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:n,fg:r}=t;if(!n||!r){const u=t.settings?t.settings.find(c=>!c.name&&!c.scope):void 0;u?.settings?.foreground&&(r=u.settings.foreground),u?.settings?.background&&(n=u.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?_S.light:_S.dark),n||(n=t.type==="light"?TS.light:TS.dark),t.fg=r,t.bg=n}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 l(u){if(i.has(u))return i.get(u);a+=1;const c=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${c}`]?l(u):(i.set(u,c),c)}t.settings=t.settings.map(u=>{const c=u.settings?.foreground&&!u.settings.foreground.startsWith("#"),f=u.settings?.background&&!u.settings.background.startsWith("#");if(!c&&!f)return u;const g={...u,settings:{...u.settings}};if(c){const h=l(u.settings.foreground);t.colorReplacements[h]=u.settings.foreground,g.settings.foreground=h}if(f){const h=l(u.settings.background);t.colorReplacements[h]=u.settings.background,g.settings.background=h}return g});for(const u of Object.keys(t.colors||{}))if((u==="editor.foreground"||u==="editor.background"||u.startsWith("terminal.ansi"))&&!t.colors[u]?.startsWith("#")){const c=l(t.colors[u]);t.colorReplacements[c]=t.colors[u],t.colors[u]=c}return Object.defineProperty(t,wS,{enumerable:!1,writable:!1,value:!0}),t}async function kN(e){return Array.from(new Set((await Promise.all(e.filter(t=>!SN(t)).map(async t=>await EN(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function NN(e){return(await Promise.all(e.map(async n=>_N(n)?null:S4(await EN(n))))).filter(n=>!!n)}let Sae=3;function _ae(e,t=3){t>Sae||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let _u=class extends Error{constructor(t){super(t),this.name="ShikiError"}};class Tae extends Hne{constructor(t,n,r,a={}){super(t),this._resolver=t,this._themes=n,this._langs=r,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 n=S4(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=ep.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new _u(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(i=>i.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,r);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,n.size)for(const i of n)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 n=Array.from(this._langGraph.entries()),r=n.filter(([a,i])=>!i);if(r.length){const a=n.filter(([i,l])=>l&&l.embeddedLangs?.some(u=>r.map(([c])=>c).includes(u))).filter(i=>!r.includes(i));throw new _u(`Missing languages ${r.map(([i])=>`\`${i}\``).join(", ")}, required by ${a.map(([i])=>`\`${i}\``).join(", ")}`)}for(const[a,i]of n)this._resolver.addLanguage(i);for(const[a,i]of n)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 n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class wae{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}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(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let a=1;a<=n.length;a++){const i=n.slice(0,a).join(".");r=[...r,...this._injections.get(i)||[]]}return r}}let s0=0;function Aae(e){s0+=1,e.warnings!==!1&&s0>=10&&s0%10===0&&console.warn(`[Shiki] ${s0} 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 _u("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(S4),a=new wae(e.engine,n),i=new Tae(a,r,n,e.langAlias);let l;function u(N){C();const R=i.getGrammar(typeof N=="string"?N:N.name);if(!R)throw new _u(`Language \`${N}\` not found, you may need to load it first`);return R}function c(N){if(N==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};C();const R=i.getTheme(N);if(!R)throw new _u(`Theme \`${N}\` not found, you may need to load it first`);return R}function f(N){C();const R=c(N);l!==N&&(i.setTheme(R),l=N);const z=i.getColorMap();return{theme:R,colorMap:z}}function g(){return C(),i.getLoadedThemes()}function h(){return C(),i.getLoadedLanguages()}function x(...N){C(),i.loadLanguages(N.flat(1))}async function b(...N){return x(await kN(N))}function E(...N){C();for(const R of N.flat(1))i.loadTheme(R)}async function _(...N){return C(),E(await NN(N))}function C(){if(t)throw new _u("Shiki instance has been disposed")}function w(){t||(t=!0,i.dispose(),s0-=1)}return{setTheme:f,getTheme:c,getLanguage:u,getLoadedThemes:g,getLoadedLanguages:h,loadLanguage:b,loadLanguageSync:x,loadTheme:_,loadThemeSync:E,dispose:w,[Symbol.dispose]:w}}async function Cae(e){e.engine||_ae("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([NN(e.themes||[]),kN(e.langs||[]),e.engine]);return Aae({...e,themes:t,langs:n,engine:r})}async function kae(e){const t=await Cae(e);return{getLastGrammarState:(...n)=>uae(t,...n),codeToTokensBase:(n,r)=>E4(t,n,r),codeToTokensWithThemes:(n,r)=>CN(t,n,r),codeToTokens:(n,r)=>up(t,n,r),codeToHast:(n,r)=>cp(t,n,r),codeToHtml:(n,r)=>Eae(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Nae(e){const t=e.langs,n=e.themes,r=e.engine;async function a(i){function l(h){if(typeof h=="string"){if(SN(h))return[];h=i.langAlias?.[h]||h;const x=t[h];if(!x)throw new Fn(`Language \`${h}\` is not included in this bundle. You may want to load it from external source.`);return x}return h}function u(h){if(_N(h))return"none";if(typeof h=="string"){const x=n[h];if(!x)throw new Fn(`Theme \`${h}\` is not included in this bundle. You may want to load it from external source.`);return x}return h}const c=(i.themes??[]).map(h=>u(h)),f=(i.langs??[]).map(h=>l(h)),g=await kae({engine:i.engine??r(),...i,themes:c,langs:f});return{...g,loadLanguage(...h){return g.loadLanguage(...h.map(l))},loadTheme(...h){return g.loadTheme(...h.map(u))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return a}const PN=[{id:"abap",name:"ABAP",import:(()=>U(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>U(()=>import("./actionscript-3-CfeIJUat.js"),[]))},{id:"ada",name:"Ada",import:(()=>U(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>U(()=>import("./angular-html-CU67Zn6k.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>U(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>U(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>U(()=>import("./apex-C7Pw0Ztw.js"),[]))},{id:"apl",name:"APL",import:(()=>U(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>U(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>U(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>U(()=>import("./asciidoc-Dv7Oe6Be.js"),[]))},{id:"asm",name:"Assembly",import:(()=>U(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>U(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>U(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>U(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>U(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>U(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>U(()=>import("./berry-D08WgyRC.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>U(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>U(()=>import("./bicep-6nHXG8SA.js"),[]))},{id:"blade",name:"Blade",import:(()=>U(()=>import("./blade-DVc8C-J4.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>U(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>U(()=>import("./c-BIGW1oBm.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>U(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>U(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>U(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>U(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>U(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>U(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>U(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>U(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>U(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>U(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>U(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>U(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>U(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>U(()=>import("./csharp-CX12Zw3r.js"),[]))},{id:"css",name:"CSS",import:(()=>U(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>U(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>U(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>U(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>U(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>U(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>U(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>U(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>U(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>U(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>U(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>U(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>U(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>U(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>U(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>U(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>U(()=>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:(()=>U(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>U(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>U(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>U(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>U(()=>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:(()=>U(()=>import("./fortran-free-form-D22FLkUw.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>U(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",import:(()=>U(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",import:(()=>U(()=>import("./gdscript-DTMYz4Jt.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>U(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>U(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>U(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>U(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>U(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>U(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>U(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>U(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>U(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gnuplot",name:"Gnuplot",import:(()=>U(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>U(()=>import("./go-Dn2_MT6a.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>U(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>U(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>U(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>U(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>U(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>U(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>U(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>U(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>U(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>U(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>U(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>U(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>U(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>U(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>U(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>U(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>U(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>U(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>U(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>U(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>U(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>U(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>U(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>U(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>U(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>U(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>U(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>U(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>U(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>U(()=>import("./julia-C8NyazO9.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"kdl",name:"KDL",import:(()=>U(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>U(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>U(()=>import("./kusto-BvAqAH-y.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>U(()=>import("./latex-BUKiar2Z.js"),__vite__mapDeps([63,64,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>U(()=>import("./lean-DP1Csr6i.js"),[]))},{id:"less",name:"Less",import:(()=>U(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>U(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([65,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>U(()=>import("./llvm-BtvRca6l.js"),[]))},{id:"log",name:"Log file",import:(()=>U(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>U(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>U(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>U(()=>import("./luau-CXu1NL6O.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>U(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>U(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>U(()=>import("./marko-CPi9NSCl.js"),__vite__mapDeps([66,3,67,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>U(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>U(()=>import("./mdc-DUICxH0z.js"),__vite__mapDeps([68,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>U(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>U(()=>import("./mermaid-DKYwYmdq.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>U(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>U(()=>import("./mojo-1DNp92w6.js"),[]))},{id:"move",name:"Move",import:(()=>U(()=>import("./move-Bu9oaDYs.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>U(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>U(()=>import("./nextflow-CUEJCptM.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>U(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([69,37,26])))},{id:"nim",name:"Nim",import:(()=>U(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>U(()=>import("./nix-BbRYJGeE.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>U(()=>import("./nushell-C-sUppwS.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>U(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>U(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>U(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>U(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>U(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([71,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>U(()=>import("./php-CDn_0X-4.js"),__vite__mapDeps([72,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>U(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>U(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>U(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>U(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>U(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>U(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>U(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>U(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>U(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>U(()=>import("./proto-DyJlTyXw.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>U(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([73,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>U(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>U(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>U(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>U(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([74,2])))},{id:"qmldir",name:"QML Directory",import:(()=>U(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>U(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>U(()=>import("./r-DiinP2Uv.js"),[]))},{id:"racket",name:"Racket",import:(()=>U(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>U(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>U(()=>import("./razor-WgofotgN.js"),__vite__mapDeps([75,1,2,3,76])))},{id:"reg",name:"Windows Registry Script",import:(()=>U(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>U(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>U(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>U(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>U(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>U(()=>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:(()=>U(()=>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:(()=>U(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>U(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([79,16])))},{id:"sass",name:"Sass",import:(()=>U(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>U(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>U(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>U(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>U(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>U(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([80,81])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>U(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>U(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([82,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>U(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>U(()=>import("./solidity-BbcW6ACK.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>U(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([83,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>U(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([84,85])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>U(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>U(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>U(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>U(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([86,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>U(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"svelte",name:"Svelte",import:(()=>U(()=>import("./svelte-3Dk4HxPD.js"),__vite__mapDeps([87,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>U(()=>import("./swift-Dg5xB15N.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>U(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>U(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>U(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>U(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>U(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>U(()=>import("./templ-W15q3VgB.js"),__vite__mapDeps([88,89,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>U(()=>import("./terraform-BETggiCN.js"),[]))}
753,{id:"tex",name:"TeX",import:(()=>U(()=>import("./tex-Cppo0RY3.js"),__vite__mapDeps([64,62])))},{id:"toml",name:"TOML",import:(()=>U(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>U(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([90,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>U(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>U(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>U(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>U(()=>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:(()=>U(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>U(()=>import("./typespec-Df68jz8_.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>U(()=>import("./typst-DHCkPAjA.js"),[]))}
vendor: 5,484 bytes, line 753
753,{id:"v",name:"V",import:(()=>U(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>U(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>U(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>U(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>U(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>U(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>U(()=>import("./vue-CCoi5OLL.js"),__vite__mapDeps([92,3,2,11,9,15,1])))},{id:"vue-html",name:"Vue HTML",import:(()=>U(()=>import("./vue-html-DAAvJJDi.js"),__vite__mapDeps([93,92,3,2,11,9,15,1])))},{id:"vue-vine",name:"Vue Vine",import:(()=>U(()=>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:(()=>U(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>U(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>U(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>U(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>U(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>U(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>U(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>U(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>U(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([96,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>U(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>U(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>U(()=>import("./zig-VOosw3JB.js"),[]))}],Pae=Object.fromEntries(PN.map(e=>[e.id,e.import])),Rae=Object.fromEntries(PN.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),RN={...Pae,...Rae},Oae=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>U(()=>import("./andromeeda-C-Jbm3Hp.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>U(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>U(()=>import("./ayu-dark-Cv9koXgw.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>U(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>U(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>U(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>U(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>U(()=>import("./dark-plus-eOWES_5F.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>U(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>U(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>U(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>U(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>U(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>U(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>U(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>U(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>U(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>U(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>U(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>U(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>U(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>U(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>U(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>U(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>U(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>U(()=>
753import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>U(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>U(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>U(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>U(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>U(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>U(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>U(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>U(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>U(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>U(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>U(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>U(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>U(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>U(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>U(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>U(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>U(()=>import("./one-light-PoHY5YXO.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>U(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>U(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>U(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>U(()=>import("./rose-pine-BHrmToEH.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>U(()=>import("./rose-pine-dawn-CnK8MTSM.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>U(()=>import("./rose-pine-moon-NleAzG8P.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>U(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>U(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>U(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>U(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>U(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>U(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>U(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>U(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>U(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>U(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>U(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],Mae=Object.fromEntries(Oae.map(e=>[e.id,e.import]));
vendor: 20,506 bytes, lines 753-785
753class _4 extends Error{constructor(t){super(t),this.name="ShikiError"}}function Dae(){return 2147483648}function Iae(){return typeof performance<"u"?performance.now():Date.now()}const Lae=(e,t)=>e+(t-e%t)%t;async function jae(e){let t,n;const r={};function a(b){n=b,r.HEAPU8=new Uint8Array(b),r.HEAPU32=new Uint32Array(b)}function i(b,E,_){r.HEAPU8.copyWithin(b,E,E+_)}function l(b){try{return t.grow(b-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function u(b){const E=r.HEAPU8.length;b=b>>>0;const _=Dae();if(b>_)return!1;for(let C=1;C<=4;C*=2){let w=E*(1+.2/C);w=Math.min(w,b+100663296);const N=Math.min(_,Lae(Math.max(b,w),65536));if(l(N))return!0}return!1}const c=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function f(b,E,_=1024){const C=E+_;let w=E;for(;b[w]&&!(w>=C);)++w;if(w-E>16&&b.buffer&&c)return c.decode(b.subarray(E,w));let N="";for(;E<w;){let R=b[E++];if(!(R&128)){N+=String.fromCharCode(R);continue}const z=b[E++]&63;if((R&224)===192){N+=String.fromCharCode((R&31)<<6|z);continue}const B=b[E++]&63;if((R&240)===224?R=(R&15)<<12|z<<6|B:R=(R&7)<<18|z<<12|B<<6|b[E++]&63,R<65536)N+=String.fromCharCode(R);else{const j=R-65536;N+=String.fromCharCode(55296|j>>10,56320|j&1023)}}return N}function g(b,E){return b?f(r.HEAPU8,b,E):""}const h={emscripten_get_now:Iae,emscripten_memcpy_big:i,emscripten_resize_heap:u,fd_write:()=>0};async function x(){const E=await e({env:h,wasi_snapshot_preview1:h});t=E.memory,a(t.buffer),Object.assign(r,E),r.UTF8ToString=g}return await x(),r}var Bae=Object.defineProperty,zae=(e,t,n)=>t in e?Bae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xn=(e,t,n)=>zae(e,typeof t!="symbol"?t+"":t,n);let ar=null;function Fae(e){throw new _4(e.UTF8ToString(e.getLastOnigError()))}class cm{constructor(t){Xn(this,"utf16Length"),Xn(this,"utf8Length"),Xn(this,"utf16Value"),Xn(this,"utf8Value"),Xn(this,"utf16OffsetToUtf8"),Xn(this,"utf8OffsetToUtf16");const n=t.length,r=cm._utf8ByteLength(t),a=r!==n,i=a?new Uint32Array(n+1):null;a&&(i[n]=r);const l=a?new Uint32Array(r+1):null;a&&(l[r]=n);const u=new Uint8Array(r);let c=0;for(let f=0;f<n;f++){const g=t.charCodeAt(f);let h=g,x=!1;if(g>=55296&&g<=56319&&f+1<n){const b=t.charCodeAt(f+1);b>=56320&&b<=57343&&(h=(g-55296<<10)+65536|b-56320,x=!0)}a&&(i[f]=c,x&&(i[f+1]=c),h<=127?l[c+0]=f:h<=2047?(l[c+0]=f,l[c+1]=f):h<=65535?(l[c+0]=f,l[c+1]=f,l[c+2]=f):(l[c+0]=f,l[c+1]=f,l[c+2]=f,l[c+3]=f)),h<=127?u[c++]=h:h<=2047?(u[c++]=192|(h&1984)>>>6,u[c++]=128|(h&63)>>>0):h<=65535?(u[c++]=224|(h&61440)>>>12,u[c++]=128|(h&4032)>>>6,u[c++]=128|(h&63)>>>0):(u[c++]=240|(h&1835008)>>>18,u[c++]=128|(h&258048)>>>12,u[c++]=128|(h&4032)>>>6,u[c++]=128|(h&63)>>>0),x&&f++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=u,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=l}static _utf8ByteLength(t){let n=0;for(let r=0,a=t.length;r<a;r++){const i=t.charCodeAt(r);let l=i,u=!1;if(i>=55296&&i<=56319&&r+1<a){const c=t.charCodeAt(r+1);c>=56320&&c<=57343&&(l=(i-55296<<10)+65536|c-56320,u=!0)}l<=127?n+=1:l<=2047?n+=2:l<=65535?n+=3:n+=4,u&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const dm=class ds{constructor(t){if(Xn(this,"id",++ds.LAST_ID),Xn(this,"_onigBinding"),Xn(this,"content"),Xn(this,"utf16Length"),Xn(this,"utf8Length"),Xn(this,"utf16OffsetToUtf8"),Xn(this,"utf8OffsetToUtf16"),Xn(this,"ptr"),!ar)throw new _4("Must invoke loadWasm first.");this._onigBinding=ar,this.content=t;const n=new cm(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!ds._sharedPtrInUse?(ds._sharedPtr||(ds._sharedPtr=ar.omalloc(1e4)),ds._sharedPtrInUse=!0,ar.HEAPU8.set(n.utf8Value,ds._sharedPtr),this.ptr=ds._sharedPtr):this.ptr=n.createString(ar)}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===ds._sharedPtr?ds._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Xn(dm,"LAST_ID",0);Xn(dm,"_sharedPtr",0);Xn(dm,"_sharedPtrInUse",!1);let ON=dm;class Hae{constructor(t){if(Xn(this,"_onigBinding"),Xn(this,"_ptr"),!ar)throw new _4("Must invoke loadWasm first.");const n=[],r=[];for(let u=0,c=t.length;u<c;u++){const f=new cm(t[u]);n[u]=f.createString(ar),r[u]=f.utf8Length}const a=ar.omalloc(4*t.length);ar.HEAPU32.set(n,a/4);const i=ar.omalloc(4*t.length);ar.HEAPU32.set(r,i/4);const l=ar.createOnigScanner(a,i,t.length);for(let u=0,c=t.length;u<c;u++)ar.ofree(n[u]);ar.ofree(i),ar.ofree(a),l===0&&Fae(ar),this._onigBinding=ar,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let a=0;if(typeof r=="number"&&(a=r),typeof t=="string"){t=new ON(t);const i=this._findNextMatchSync(t,n,!1,a);return t.dispose(),i}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,r,a){const i=this._onigBinding,l=i.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(l===0)return null;const u=i.HEAPU32;let c=l/4;const f=u[c++],g=u[c++],h=[];for(let x=0;x<g;x++){const b=t.convertUtf8OffsetToUtf16(u[c++]),E=t.convertUtf8OffsetToUtf16(u[c++]);h[x]={start:b,end:E,length:E-b}}return{index:f,captureIndices:h}}}function Uae(e){return typeof e.instantiator=="function"}function qae(e){return typeof e.default=="function"}function $ae(e){return typeof e.data<"u"}function Vae(e){return typeof Response<"u"&&e instanceof Response}function Gae(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 fh;function Yae(e){if(fh)return fh;async function t(){ar=await jae(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),Uae(r)?r=await r.instantiator(n):qae(r)?r=await r.default(n):($ae(r)&&(r=r.data),Vae(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Qae(r)(n):r=await Xae(r)(n):Gae(r)?r=await q2(r)(n):r instanceof WebAssembly.Module?r=await q2(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await q2(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return fh=t(),fh}function q2(e){return t=>WebAssembly.instantiate(e,t)}function Qae(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Xae(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function Kae(e){return e&&await Yae(e),{createScanner(t){return new Hae(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new ON(t)}}}const AS=Nae({langs:RN,themes:Mae,engine:()=>Kae(U(()=>import("./wasm-CG6Dc4jp.js"),[]))});function rc(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function Wae(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const T4=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),ir=String.raw;function ac(e,t){if(e==null)throw new Error(t??"Value expected");return e}const MN=ir`\[\^?`,DN=`c.? | C(?:-.?)?|${ir`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${ir`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${ir`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${ir`o\{[^\}]*\}?`}|${ir`\d{1,3}`}`,w4=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,hh=new RegExp(ir`
754  \\ (?:
755    ${DN}
756    | [gk]<[^>]*>?
757    | [gk]'[^']*'?
758    | .
759  )
760  | \( (?:
761    \? (?:
762      [:=!>({]
763      | <[=!]
764      | <[^>]*>
765      | '[^']*'
766      | ~\|?
767      | #(?:[^)\\]|\\.?)*
768      | [^:)]*[:)]
769    )?
770    | \*[^\)]*\)?
771  )?
772  | (?:${w4.source})+
773  | ${MN}
774  | .
775`.replace(/\s+/g,""),"gsu"),$2=new RegExp(ir`
776  \\ (?:
777    ${DN}
778    | .
779  )
780  | \[:(?:\^?\p{Alpha}+|\^):\]
781  | ${MN}
782  | &&
783  | .
784`.replace(/\s+/g,""),"gsu");function Zae(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=xse(n.flags),a=[r.extended],i={captureGroup:n.rules.captureGroup,getCurrentModX(){return a.at(-1)},numOpenGroups:0,popModX(){a.pop()},pushModX(h){a.push(h)},replaceCurrentModX(h){a[a.length-1]=h},singleline:n.rules.singleline};let l=[],u;for(hh.lastIndex=0;u=hh.exec(e);){const h=Jae(i,e,u[0],hh.lastIndex);h.tokens?l.push(...h.tokens):h.token&&l.push(h.token),h.lastIndex!==void 0&&(hh.lastIndex=h.lastIndex)}const c=[];let f=0;l.filter(h=>h.type==="GroupOpen").forEach(h=>{h.kind==="capturing"?h.number=++f:h.raw==="("&&c.push(h)}),f||c.forEach((h,x)=>{h.kind="capturing",h.number=x+1});const g=f||c.length;return{tokens:l.map(h=>h.type==="EscapedNumber"?yse(h,g):h).flat(),flags:r}}function Jae(e,t,n,r){const[a,i]=n;if(n==="["||n==="[^"){const l=ese(t,n,r);return{tokens:l.tokens,lastIndex:l.lastIndex}}if(a==="\\"){if("AbBGyYzZ".includes(i))return{token:CS(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:cse(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:LN(n)}}if(i==="K")return{token:jN("keep",n)};if(i==="N"||i==="R")return{token:Kl("newline",n,{negate:i==="N"})};if(i==="O")return{token:Kl("any",n)};if(i==="X")return{token:Kl("text_segment",n)};const l=IN(n,{inCharClass:!1});return Array.isArray(l)?{tokens:l}:{token:l}}if(a==="("){if(i==="*")return{token:pse(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:hse(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:yu("group",n)};if(n==="(?>")return{token:yu("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:yu(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:yu("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:yu("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:lse(n)}}if(e.getCurrentModX()){if(n==="#"){const l=t.indexOf(`
785`,r);return{lastIndex:l===-1?t.length:l}}if(/^\s$/.test(n)){const l=/\s+/y;return l.lastIndex=r,{lastIndex:l.exec(t)?l.lastIndex:r}}}if(n===".")return{token:Kl("dot",n)};if(n==="^"||n==="$"){const l=e.singleline?{"^":ir`\A`,$:ir`\Z`}[n]:n;return{token:CS(l,n)}}return n==="|"?{token:nse(n)}:w4.test(n)?{tokens:vse(n)}:{token:si(rc(n),n)}}function ese(e,t,n){const r=[kS(t[1]==="^",t)];let a=1,i;for($2.lastIndex=n;i=$2.exec(e);){const l=i[0];if(l[0]==="["&&l[1]!==":")a++,r.push(kS(l[1]==="^",l));else if(l==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(si(93,l));else if(a--,r.push(rse(l)),!a)break}else{const u=tse(l);Array.isArray(u)?r.push(...u):r.push(u)}}return{tokens:r,lastIndex:$2.lastIndex||e.length}}function tse(e){if(e[0]==="\\")return IN(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!T4.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return Kl("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?ase(e):e==="&&"?sse(e):si(rc(e),e)}function IN(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return fse(e);if("dDhHsSwW".includes(n))return mse(e);if(e.startsWith(ir`\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 gse(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const r=e.split(/\\x/).slice(1).map(l=>parseInt(l,16)),a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),i=new TextEncoder;return[...a].map(l=>{const u=[...i.encode(l)].map(c=>`\\x${c.toString(16)}`).join("");return si(rc(l),u)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return si(bse(e),e);if(NS.has(n))return si(NS.get(n),e);if(/\d/.test(n))return ise(t,e);if(e==="\\")throw new Error(ir`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return si(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function nse(e){return{type:"Alternator",raw:e}}function CS(e,t){return{type:"Assertion",kind:e,raw:t}}function LN(e){return{type:"Backreference",raw:e}}function si(e,t){return{type:"Character",value:e,raw:t}}function rse(e){return{type:"CharacterClassClose",raw:e}}function ase(e){return{type:"CharacterClassHyphen",raw:e}}function sse(e){return{type:"CharacterClassIntersector",raw:e}}function kS(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function Kl(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function jN(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:ac(n.flags),raw:t}}function ise(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function lse(e){return{type:"GroupClose",raw:e}}function yu(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function ose(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function use(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function cse(e){return{type:"Subroutine",raw:e}}const dse=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),NS=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function fse(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 si(rc(t.toUpperCase())-64,e)}function hse(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??="";const a=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),i=RS(n),l=RS(r),u={};if(i&&(u.enable=i),l&&(u.disable=l),e.endsWith(")"))return t.replaceCurrentModX(a),jN("flags",e,{flags:u});if(e.endsWith(":"))return t.pushModX(a),t.numOpenGroups++,yu("group",e,{...(i||l)&&{flags:u}});throw new Error(`Unexpected flag modifier "${e}"`)}function pse(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:n,tag:r,args:a}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const i=a?a.split(",").filter(g=>g!=="").map(g=>/^[+-]?\d+$/.test(g)?+g:g):[],[l,u,c]=i,f=dse.has(n)?n.toLowerCase():"custom";switch(f){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 l=="string")throw new Error(`Named callout argument must be a number "${l}"`);break;case"max":if(!i.length||i.length>2)throw new Error(`Named callout must have one or two arguments "${i}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument one must be a tag or number "${l}"`);if(i.length===2&&(typeof u=="number"||!/^[<>X]$/.test(u)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${u}"`);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 l=="number"||!/^[<>X]$/.test(l)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${l}"`);break;case"cmp":if(i.length!==3)throw new Error(`Named callout must have three arguments "${i}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument one must be a tag or number "${l}"`);if(typeof u=="number"||!/^(?:[<>!=]=|[<>])$/.test(u))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${u}"`);if(typeof c=="string"&&!/^[A-Za-z_]\w*$/.test(c))throw new Error(`Named callout argument three must be a tag or number "${c}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${f}"`)}return ose(f,r??null,a?.split(",")??null,e)}function PS(e){let t=null,n,r;if(e[0]==="{"){const{minStr:a,maxStr:i}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,l=1e5;if(+a>l||i&&+i>l)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+a,r=i===void 0?+a:i===""?1/0:+i,n>r&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=e[0]==="+"?1:0,r=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return use(t,n,r,e)}function mse(e){const t=e[1].toLowerCase();return Kl({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function gse(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return Kl("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function RS(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 xse(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){const r=e[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(e.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[n+2]==="g"?"grapheme":"word",n+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return t}function bse(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 yse(e,t){const{raw:n,inCharClass:r}=e,a=n.slice(1);if(!r&&(a!=="0"&&a.length===1||a[0]!=="0"&&+a<=t))return[LN(n)];const i=[],l=a.match(/^[0-7]+|\d/g);for(let u=0;u<l.length;u++){const c=l[u];let f;if(u===0&&c!=="8"&&c!=="9"){if(f=parseInt(c,8),f>127)throw new Error(ir`Octal encoded byte above 177 unsupported "${n}"`)}else f=rc(c);i.push(si(f,(u===0?"\\":"")+c))}return i}function vse(e){const t=[],n=new RegExp(w4,"gy");let r;for(;r=n.exec(e);){const a=r[0];if(a[0]==="{"){const i=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(a);if(i){const{min:l,max:u}=i.groups;if(+l>+u&&a.endsWith("?")){n.lastIndex--,t.push(PS(a.slice(0,-1)));continue}}}t.push(PS(a))}return t}function BN(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const n=e.body[0];return!t||Object.keys(t).every(r=>t[r]===n[r])}function Ese(e){return Sse.has(e.type)}const Sse=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function zN(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=Zae(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),a=(x,b)=>{const E=r.tokens[i.nextIndex];switch(i.parent=x,i.nextIndex++,E.type){case"Alternator":return lo();case"Assertion":return _se(E);case"Backreference":return Tse(E,i);case"Character":return fm(E.value,{useLastValid:!!b.isCheckingRangeEnd});case"CharacterClassHyphen":return wse(E,i,b);case"CharacterClassOpen":return Ase(E,i,b);case"CharacterSet":return Cse(E,i);case"Directive":return Mse(E.kind,{flags:E.flags});case"GroupOpen":return kse(E,i,b);case"NamedCallout":return Ise(E.kind,E.tag,E.arguments);case"Quantifier":return Nse(E,i);
vendor: 2,018 bytes, line 785
785case"Subroutine":return Pse(E,i);default:throw new Error(`Unexpected token type "${E.type}"`)}},i={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:a},l=jse(Dse(r.flags));let u=l.body[0];for(;i.nextIndex<r.tokens.length;){const x=a(u,{});x.type==="Alternative"?(l.body.push(x),u=x):u.body.push(x)}const{capturingGroups:c,hasNumberedRef:f,namedGroupsByName:g,subroutines:h}=i;if(f&&g.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:x}of h)if(typeof x=="number"){if(x>c.length)throw new Error("Subroutine uses a group number that's not defined");x&&(c[x-1].isSubroutined=!0)}else if(g.has(x)){if(g.get(x).length>1)throw new Error(ir`Subroutine uses a duplicate group name "\g<${x}>"`);g.get(x)[0].isSubroutined=!0}else throw new Error(ir`Subroutine uses a group name that's not defined "\g<${x}>"`);return l}function _se({kind:e}){return yb(ac({"^":"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===ir`\B`||e===ir`\Y`})}function Tse({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),a=(i,l=!1)=>{const u=t.capturingGroups.length;let c=!1;if(i>u)if(t.skipBackrefValidation)c=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,vb(l?u+1-i:i,{orphan:c})};if(n){const i=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(i)return a(+i.groups.num,!!i.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${e}"`);
vendor: 8,037 bytes, line 785
785if(!t.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${e}"`);return vb(r)}return a(+r)}function wse(e,t,n){const{tokens:r,walk:a}=t,i=t.parent,l=i.body.at(-1),u=r[t.nextIndex];if(!n.isCheckingRangeEnd&&l&&l.type!=="CharacterClass"&&l.type!=="CharacterClassRange"&&u&&u.type!=="CharacterClassOpen"&&u.type!=="CharacterClassClose"&&u.type!=="CharacterClassIntersector"){const c=a(i,{...n,isCheckingRangeEnd:!0});if(l.type==="Character"&&c.type==="Character")return i.body.pop(),Ose(l,c);throw new Error("Invalid character class range")}return fm(rc("-"))}function Ase({negate:e},t,n){const{tokens:r,walk:a}=t,i=r[t.nextIndex],l=[Nh()];let u=DS(i);for(;u.type!=="CharacterClassClose";){if(u.type==="CharacterClassIntersector")l.push(Nh()),t.nextIndex++;else{const f=l.at(-1);f.body.push(a(f,n))}u=DS(r[t.nextIndex],i)}const c=Nh({negate:e});return l.length===1?c.body=l[0].body:(c.kind="intersection",c.body=l.map(f=>f.body.length===1?f.body[0]:f)),t.nextIndex++,c}function Cse({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:a,skipPropertyNameValidation:i,unicodePropertyMap:l}=r;if(e==="property"){const u=hm(n);if(T4.has(u)&&!l?.has(u))e="posix",n=u;else return vu(n,{negate:t,normalizeUnknownPropertyNames:a,skipPropertyNameValidation:i,unicodePropertyMap:l})}return e==="posix"?Lse(n,{negate:t}):Eb(e,{negate:t})}function kse(e,t,n){const{tokens:r,capturingGroups:a,namedGroupsByName:i,skipLookbehindValidation:l,walk:u}=t,c=Bse(e),f=c.type==="AbsenceFunction",g=MS(c),h=g&&c.negate;if(c.type==="CapturingGroup"&&(a.push(c),c.name&&Wae(i,c.name,[]).push(c)),f&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let x=IS(r[t.nextIndex]);for(;x.type!=="GroupClose";){if(x.type==="Alternator")c.body.push(lo()),t.nextIndex++;else{const b=c.body.at(-1),E=u(b,{...n,isInAbsenceFunction:n.isInAbsenceFunction||f,isInLookbehind:n.isInLookbehind||g,isInNegLookbehind:n.isInNegLookbehind||h});if(b.body.push(E),(g||n.isInLookbehind)&&!l){const _="Lookbehind includes a pattern not allowed by Oniguruma";if(h||n.isInNegLookbehind){if(OS(E)||E.type==="CapturingGroup")throw new Error(_)}else if(OS(E)||MS(E)&&E.negate)throw new Error(_)}}x=IS(r[t.nextIndex])}return t.nextIndex++,c}function Nse({kind:e,min:t,max:n},r){const a=r.parent,i=a.body.at(-1);if(!i||!Ese(i))throw new Error("Quantifier requires a repeatable token");const l=HN(e,t,n,i);return a.body.pop(),l}function Pse({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let a=e.slice(3,-1);const i=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(a);if(i){const u=+i.groups.num,c=n.length;if(t.hasNumberedRef=!0,a={"":u,"+":c+u,"-":c+1-u}[i.groups.sign],a<1)throw new Error("Invalid subroutine number")}else a==="0"&&(a=0);const l=UN(a);return r.push(l),l}function Rse(e,t){return{type:"AbsenceFunction",kind:e,body:yd(t?.body)}}function lo(e){return{type:"Alternative",body:qN(e?.body)}}function yb(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!t?.negate),n}function vb(e,t){const n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function FN(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!zse(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:yd(t?.body)}}function fm(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:e}}function Nh(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:qN(e?.body)}}function Ose(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function Eb(e,t){const n=!!t?.negate,r={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(r.negate=n),(e==="text_segment"||e==="newline"&&!n)&&(r.variableLength=!0),r}function Mse(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:ac(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function Dse(e){return{type:"Flags",...e}}function Ga(e){const t=e?.atomic,n=e?.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:yd(e?.body)}}function Yl(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:yd(e?.body)}}function Ise(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function Lse(e,t){const n=!!t?.negate;if(!T4.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function HN(e,t,n,r){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function jse(e,t){return{type:"Regex",body:yd(t?.body),flags:e}}function UN(e){return{type:"Subroutine",ref:e}}function vu(e,t){const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=n.unicodePropertyMap?.get(hm(e));if(!r){if(n.normalizeUnknownPropertyNames)r=Fse(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(ir`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function Bse({flags:e,kind:t,name:n,negate:r,number:a}){switch(t){case"absence_repeater":return Rse("repeater");case"atomic":return Ga({atomic:!0});case"capturing":return FN(a,{name:n});case"group":return Ga({flags:e});case"lookahead":case"lookbehind":return Yl({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function yd(e){if(e===void 0)e=[lo()];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 qN(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 OS(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function MS(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function zse(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function Fse(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 hm(e){return e.replace(/[- _]+/g,"").toLowerCase()}function DS(e,t){return ac(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function IS(e){return ac(e,"Unclosed group")}function N0(e,t,n=null){function r(i,l){for(let u=0;u<i.length;u++){const c=a(i[u],l,u,i);u=Math.max(-1,u+c)}}function a(i,l=null,u=null,c=null){let f=0,g=!1;const h={node:i,parent:l,key:u,container:c,root:e,remove(){ph(c).splice(Math.max(0,mu(u)+f),1),f--,g=!0},removeAllNextSiblings(){return ph(c).splice(mu(u)+1)},removeAllPrevSiblings(){const w=mu(u)+f;return f-=w,ph(c).splice(0,Math.max(0,w))},replaceWith(w,N={}){const R=!!N.traverse;c?c[Math.max(0,mu(u)+f)]=w:ac(l,"Can't replace root node")[u]=w,R&&a(w,l,u,c),g=!0},replaceWithMultiple(w,N={}){const R=!!N.traverse;if(ph(c).splice(Math.max(0,mu(u)+f),1,...w),f+=w.length-1,R){let z=0;for(let B=0;B<w.length;B++)z+=a(w[B],l,mu(u)+B+z,c)}g=!0},skip(){g=!0}},{type:x}=i,b=t["*"],E=t[x],_=typeof b=="function"?b:b?.enter,C=typeof E=="function"?E:E?.enter;if(_?.(h,n),C?.(h,n),!g)switch(x){case"AbsenceFunction":case"CapturingGroup":case"Group":r(i.body,i);break;case"Alternative":case"CharacterClass":r(i.body,i);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subrout
785ine":break;case"CharacterClassRange":a(i.min,i,"min"),a(i.max,i,"max");break;case"LookaroundAssertion":r(i.body,i);break;case"Quantifier":a(i.body,i,"body");break;case"Regex":r(i.body,i),a(i.flags,i,"flags");break;default:throw new Error(`Unexpected node type "${x}"`)}return E?.exit?.(h,n),b?.exit?.(h,n),f}return a(e),e}function ph(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function mu(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const Hse=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function Use(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function qse(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const Ia=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function A4(e,t,n,r){const a=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),i=[!1];let l=0,u="";for(const c of e.matchAll(a)){const{0:f,groups:{$skip:g}}=c;if(!g&&(!r||r===Ia.DEFAULT==!l)){n instanceof Function?u+=n(c,{context:l?Ia.CHAR_CLASS:Ia.DEFAULT,negated:i[i.length-1]}):u+=n;continue}f[0]==="["?(l++,i.push(f[1]==="^")):f==="]"&&l&&(l--,i.pop()),u+=f}return u}function $N(e,t,n,r){A4(e,t,n,r)}function $se(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const a=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=n;let i=0,l;for(;l=a.exec(e);){const{0:u,groups:{$skip:c}}=l;if(!c&&(!r||r===Ia.DEFAULT==!i))return l;u==="["?i++:u==="]"&&i&&i--,a.lastIndex==l.index&&a.lastIndex++}return null}function mh(e,t,n){return!!$se(e,t,0,n)}function Vse(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,a=0,i=1,l;for(;l=n.exec(e);){const[u]=l;if(u==="[")a++;else if(a)u==="]"&&a--;else if(u==="(")i++;else if(u===")"&&(i--,!i)){r=l.index;break}}return e.slice(t,r)}const LS=new RegExp(String.raw`(?<noncapturingStart>${Hse})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function Gse(e,t){const n=t?.hiddenCaptures??[];let r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const a="(?>",i="(?:(?=(",l=[0],u=[];let c=0,f=0,g=NaN,h;do{h=!1;let x=0,b=0,E=!1,_;for(LS.lastIndex=Number.isNaN(g)?0:g+i.length;_=LS.exec(e);){const{0:C,index:w,groups:{capturingStart:N,noncapturingStart:R}}=_;if(C==="[")x++;else if(x)C==="]"&&x--;else if(C===a&&!E)g=w,E=!0;else if(E&&R)b++;else if(N)E?b++:(c++,l.push(c+f));else if(C===")"&&E){if(!b){f++;const z=c+f;if(e=`${e.slice(0,g)}${i}${e.slice(g+a.length,w)}))<$$${z}>)${e.slice(w+1)}`,h=!0,u.push(z),Use(n,z),r.size){const B=new Map;r.forEach((j,L)=>{B.set(L>=z?L+1:L,j.map(Y=>Y>=z?Y+1:Y))}),r=B}break}b--}}}while(h);return n.push(...u),e=A4(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:x,groups:{backrefNum:b,wrappedBackrefNum:E}})=>{if(b){const _=+b;if(_>l.length-1)throw new Error(`Backref "${x}" greater than number of captures`);return`\\${l[_]}`}return`\\${E}`},Ia.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const VN=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,V2=new RegExp(String.raw`
786\\(?: \d+
787  | c[A-Za-z]
788  | [gk]<[^>]+>
789  | [pPu]\{[^\}]+\}
790  | u[A-Fa-f\d]{4}
791  | x[A-Fa-f\d]{2}
792  )
793| \((?: \? (?: [:=!>]
794  | <(?:[=!]|[^>]+>)
795  | [A-Za-z\-]+:
796  | \(DEFINE\)
797  ))?
798| (?<qBase>${VN})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
799| \\?.
800`.replace(/\s+/g,""),"gsu");function Yse(e){if(!new RegExp(`${VN}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,a="",i=0,l;for(V2.lastIndex=0;l=V2.exec(e);){const{0:u,index:c,groups:{qBase:f,qMod:g,invalidQ:h}}=l;if(u==="[")i||(r=c),i++;else if(u==="]")i?i--:r=null;else if(!i)if(g==="+"&&a&&!a.startsWith("(")){if(h)throw new Error(`Invalid quantifier "${u}"`);let x=-1;if(/^\{\d+\}$/.test(f))e=qse(e,c+f.length,g,"");else{if(a===")"||a==="]"){const b=a===")"?n:r;if(b===null)throw new Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,b)}(?>${e.slice(b,c)}${f})${e.slice(c+u.length)}`}else e=`${e.slice(0,c-a.length)}(?>${a}${f})${e.slice(c+u.length)}`;x+=4}V2.lastIndex+=x}else u[0]==="("?t.push(c):u===")"&&(n=t.length?t.pop():null);a=u}return{pattern:e}}const Ma=String.raw,Qse=Ma`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Sb=Ma`\(\?R=(?<rDepth>[^\)]+)\)|${Qse}
800`,pm=Ma`\(\?<(?![=!])(?<captureName>[^>]+)>`,GN=Ma`${pm}|(?<unnamed>\()(?!\?)`,Ul=new RegExp(Ma`${pm}|${Sb}|\(\?|\\?.`,"gsu"),G2="Cannot use multiple overlapping recursions";function Xse(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let a=t?.captureTransfers??new Map;if(!new RegExp(Sb,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:n};if(r==="plugin"&&mh(e,Ma`\(\?\(DEFINE\)`,Ia.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const i=[],l=mh(e,Ma`\\[1-9]`,Ia.DEFAULT),u=new Map,c=[];let f=!1,g=0,h=0,x;for(Ul.lastIndex=0;x=Ul.exec(e);){const{0:b,groups:{captureName:E,rDepth:_,gRNameOrNum:C,gRDepth:w}}=x;if(b==="[")g++;else if(g)b==="]"&&g--;else if(_){if(jS(_),f)throw new Error(G2);if(l)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const N=e.slice(0,x.index),R=e.slice(Ul.lastIndex);if(mh(R,Sb,Ia.DEFAULT))throw new Error(G2);const z=+_-1;e=BS(N,R,z,!1,n,i,h),a=FS(a,N,z,i.length,0,h);break}else if(C){jS(w);let N=!1;for(const ee of c)if(ee.name===C||ee.num===+C){if(N=!0,ee.hasRecursedWithin)throw new Error(G2);break}if(!N)throw new Error(Ma`Recursive \g cannot be used outside the referenced group "${r==="external"?C:Ma`\g<${C}&R=${w}>`}"`);const R=u.get(C),z=Vse(e,R);if(l&&mh(z,Ma`${pm}|\((?!\?)`,Ia.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const B=e.slice(R,x.index),j=z.slice(B.length+b.length),L=i.length,Y=+w-1,Z=BS(B,j,Y,!0,n,i,h);a=FS(a,B,Y,i.length-L,L,h);const $=e.slice(0,R),te=e.slice(R+z.length);e=`${$}${Z}${te}`,Ul.lastIndex+=Z.length-b.length-B.length-j.length,c.forEach(ee=>ee.hasRecursedWithin=!0),f=!0}else if(E)h++,u.set(String(h),Ul.lastIndex),u.set(E,Ul.lastIndex),c.push({num:h,name:E});else if(b[0]==="("){const N=b==="(";N&&(h++,u.set(String(h),Ul.lastIndex)),c.push(N?{num:h}:{})}else b===")"&&c.pop()}return n.push(...i),{pattern:e,captureTransfers:a,hiddenCaptures:n}}function jS(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 BS(e,t,n,r,a,i,l){const u=new Set;r&&$N(e+t,pm,({groups:{captureName:f}})=>{u.add(f)},Ia.DEFAULT);const c=[n,r?u:null,a,i,l];return`${e}${zS(`(?:${e}`,"forward",...c)}(?:)${zS(`${t})`,"backward",...c)}${t}`}function zS(e,t,n,r,a,i,l){const c=g=>t==="forward"?g+2:n-g+2-1;let f="";for(let g=0;g<n;g++){const h=c(g);f+=A4(e,Ma`${GN}|\\k<(?<backref>[^>]+)>`,({0:x,groups:{captureName:b,unnamed:E,backref:_}})=>{if(_&&r&&!r.has(_))return x;const C=`_$${h}`;if(E||b){const w=l+i.length+1;return i.push(w),Kse(a,w),E?x:`(?<${b}${C}>`}return Ma`\k<${_}${C}>`},Ia.DEFAULT)}return f}function Kse(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function FS(e,t,n,r,a,i){if(e.size&&r){let l=0;$N(t,GN,()=>l++,Ia.DEFAULT);const u=i-l+a,c=new Map;return e.forEach((f,g)=>{const h=(r-l*n)/n,x=l*n,b=g>u+l?g+r:g,E=[];for(const _ of f)if(_<=u)E.push(_);else if(_>u+l+h)E.push(_+r);else if(_<=u+l)for(let C=0;C<=n;C++)E.push(_+l*C);else for(let C=0;C<=n;C++)E.push(_+x+h*C);c.set(b,E)}),c}return e}var Kn=String.fromCodePoint,ot=String.raw,oi={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("","v")}catch{return!1}return!0})()};oi.bugFlagVLiteralHyphenIsRange=oi.unicodeSets?(()=>{try{new RegExp(ot`[\d\-a]`,"v")}catch{return!0}return!1})():!1;oi.bugNestedClassIgnoresNegation=oi.unicodeSets&&new RegExp("[[^a]]","v").test("a");function dp(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function K0(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function _b(e,t){return HS[e]>=HS[t]}function Wse(e,t){if(e==null)throw new Error(t??"Value expected");return e}var HS={ES2025:2025,ES2024:2024,ES2018:2018},Zse={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function YN(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");
vendor: 2,285 bytes, lines 800-882
800if(e.target!==void 0&&!Zse[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=oi.flagGroups?"ES2025":oi.unicodeSets?"ES2024":"ES2018"),t}var Jse="[	-\r ]",eie=new Set([Kn(304),Kn(305)]),Js=ot`[\p{L}\p{M}\p{N}\p{Pc}]`;function QN(e){if(eie.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),a=rie.get(n),i=tie.get(n),l=nie.get(n);return[...r].length===1&&t.add(r),l&&t.add(l),a&&t.add(a),t.add(n),i&&t.add(i),[...t]}var C4=new Map(`C Other
801Cc Control cntrl
802Cf Format
803Cn Unassigned
804Co Private_Use
805Cs Surrogate
806L Letter
807LC Cased_Letter
808Ll Lowercase_Letter
809Lm Modifier_Letter
810Lo Other_Letter
811Lt Titlecase_Letter
812Lu Uppercase_Letter
813M Mark Combining_Mark
814Mc Spacing_Mark
815Me Enclosing_Mark
816Mn Nonspacing_Mark
817N Number
818Nd Decimal_Number digit
819Nl Letter_Number
820No Other_Number
821P Punctuation punct
822Pc Connector_Punctuation
823Pd Dash_Punctuation
824Pe Close_Punctuation
825Pf Final_Punctuation
826Pi Initial_Punctuation
827Po Other_Punctuation
828Ps Open_Punctuation
829S Symbol
830Sc Currency_Symbol
831Sk Modifier_Symbol
832Sm Math_Symbol
833So Other_Symbol
834Z Separator
835Zl Line_Separator
836Zp Paragraph_Separator
837Zs Space_Separator
838ASCII
839ASCII_Hex_Digit AHex
840Alphabetic Alpha
841Any
842Assigned
843Bidi_Control Bidi_C
844Bidi_Mirrored Bidi_M
845Case_Ignorable CI
846Cased
847Changes_When_Casefolded CWCF
848Changes_When_Casemapped CWCM
849Changes_When_Lowercased CWL
850Changes_When_NFKC_Casefolded CWKCF
851Changes_When_Titlecased CWT
852Changes_When_Uppercased CWU
853Dash
854Default_Ignorable_Code_Point DI
855Deprecated Dep
856Diacritic Dia
857Emoji
858Emoji_Component EComp
859Emoji_Modifier EMod
860Emoji_Modifier_Base EBase
861Emoji_Presentation EPres
862Extended_Pictographic ExtPict
863Extender Ext
864Grapheme_Base Gr_Base
865Grapheme_Extend Gr_Ext
866Hex_Digit Hex
867IDS_Binary_Operator IDSB
868IDS_Trinary_Operator IDST
869ID_Continue IDC
870ID_Start IDS
871Ideographic Ideo
872Join_Control Join_C
873Logical_Order_Exception LOE
874Lowercase Lower
875Math
876Noncharacter_Code_Point NChar
877Pattern_Syntax Pat_Syn
878Pattern_White_Space Pat_WS
879Quotation_Mark QMark
880Radical
881Regional_Indicator RI
882Sentence_Terminal STerm
883Soft_Dotted SD
884Terminal_Punctuation Term
885Unified_Ideograph UIdeo
886Uppercase Upper
887Variation_Selector VS
888White_Space space
889XID_Continue XIDC
890XID_Start XIDS`.split(/\s/).map(e=>[hm(e),e])),tie=new Map([["s",Kn(383)],[Kn(383),"s"]]),nie=new Map([[Kn(223),Kn(7838)],[Kn(107),Kn(8490)],[Kn(229),Kn(8491)],[Kn(969),Kn(8486)]]),rie=new Map([Wi(453),Wi(456),Wi(459),Wi(498),...Y2(8072,8079),...Y2(8088,8095),...Y2(8104,8111),Wi(8124),Wi(8140),Wi(8188)]),aie=new Map([["alnum",ot`[\p{Alpha}\p{Nd}]`],["alpha",ot`\p{Alpha}`],["ascii",ot`\p{ASCII}`],["blank",ot`[\p{Zs}\t]`],["cntrl",ot`\p{Cc}`],["digit",ot`\p{Nd}`],["graph",ot`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",ot`\p{Lower}`],["print",ot`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",ot`[\p{P}\p{S}]`],["space",ot`\p{space}`],["upper",ot`\p{Upper}`],["word",ot`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",ot`\p{AHex}`]]);function sie(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Wi(e){const t=Kn(e);return[t.toLowerCase(),t]}function Y2(e,t){return sie(e,t).map(n=>Wi(n))}var XN=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function iie(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};KN(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:_b(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};N0(e,lie,r);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:r.subroutineRefMap};N0(e,oie,i);const l={groupsByName:i.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:i.reffedNodesByReferencer};return N0(e,uie,l),e._originMap=i.groupOriginByCopy,e._strategy=r.strategy,e}var lie={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:a}=e;if(a==="repeater"){const i=Ga();i.body[0].body.push(Yl({negate:!0,body:r}),vu("Any"));const l=Ga();l.body[0].body.push(HN("greedy",0,1/0,i)),n(Cn(l,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const a=e.body.filter(i=>i.kind==="flags");for(let i=n+1;i<t.body.length;i++){const l=t.body[i];K0(r,l,[]).push(...a)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const n=ZN(t.get(e));if(n){const r=Ga({flags:n});r.body[0].body=e.body,e.body=[Cn(r,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:a,remove:i,replaceWith:l},u){const{kind:c,negate:f}=e,{asciiWordBoundaries:g,avoidSubclass:h,supportedGNodes:x,wordIsAscii:b}=u;if(c==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${f?"Y":"y"}"`);if(c==="line_end")l(Cn(Yl({body:[lo({body:[yb("string_end")]}),lo({body:[fm(10)]})]}),t));else if(c==="line_start")l(Cn(ei(ot`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(c==="search_start")if(x.has(e))a.flags.sticky=!0,i();else{const E=r[n-1];if(E&&mie(E))l(Cn(Yl({negate:!0}),t));else{if(h)throw new Error(ot`Uses "\G" in a way that requires a subclass`);l(Zi(yb("string_start"),t)),u.strategy="clip_search"}}else if(!(c==="string_end"||c==="string_start"))if(c==="string_end_newline")l(Cn(ei(ot`(?=\n?\z)`),t));else if(c==="word_boundary"){if(!b&&!g){const E=`(?:(?<=${Js})(?!${Js})|(?<!${Js})(?=${Js}))`,_=`(?:(?<=${Js})(?=${Js})|(?<!${Js})(?!${Js}))`;l(Cn(ei(f?_:E),t))}}else throw new Error(`Unexpected assertion kind "${c}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!X2(n)&&(n=Q2(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!X2(r)&&(r=Q2(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){if(t.kind==="intersection"){const r=Nh({body:[e]});n(Cn(r,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:a,digitIsAscii:i,spaceIsAscii:l,wordIsAscii:u}){const{kind:c,negate:f,value:g}=e;
vendor: 23,131 bytes, lines 890-893
890if(i&&(c==="digit"||g==="digit")){n(Zi(Eb("digit",{negate:f}),t));return}if(l&&(c==="space"||g==="space")){n(Cn(K2(ei(Jse),f),t));return}if(u&&(c==="word"||g==="word")){n(Zi(Eb("word",{negate:f}),t));return}if(c==="any")n(Zi(vu("Any"),t));else if(c==="digit")n(Zi(vu("Nd",{negate:f}),t));else if(c!=="dot")if(c==="text_segment"){if(r==="strict")throw new Error(ot`Use of "\X" requires non-strict accuracy`);const h="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",x=ot`\p{RI}{2}|${h}(?:\u200D${h})*`;n(Cn(ei(ot`(?>\r\n|${a?ot`\p{RGI_Emoji}`:x}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c==="hex")n(Zi(vu("AHex",{negate:f}),t));else if(c==="newline")n(Cn(ei(f?`[^
891]`:`(?>\r
892?|[
893\v\f…\u2028\u2029])`),t));else if(c==="posix")if(!a&&(g==="graph"||g==="print")){if(r==="strict")throw new Error(`POSIX class "${g}" requires min target ES2024 or non-strict accuracy`);let h={graph:"!-~",print:" -~"}[g];f&&(h=`\0-${Kn(h.codePointAt(0)-1)}${Kn(h.codePointAt(2)+1)}-􏿿`),n(Cn(ei(`[${h}]`),t))}else n(Cn(K2(ei(aie.get(g)),f),t));else if(c==="property")C4.has(hm(g))||(e.key="sc");else if(c==="space")n(Zi(vu("space",{negate:f}),t));else if(c==="word")n(Cn(K2(ei(Js),f),t));else throw new Error(`Unexpected character set kind "${c}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:a,removeAllPrevSiblings:i,removeAllNextSiblings:l}){const{kind:u,flags:c}=e;if(u==="flags")if(!c.enable&&!c.disable)r();else{const f=Ga({flags:c});f.body[0].body=l(),a(Cn(f,t),{traverse:!0})}else if(u==="keep"){const f=n.body[0],h=n.body.length===1&&BN(f,{type:"Group"})&&f.body[0].body.length===1?f.body[0]:n;if(t.parent!==h||h.body.length>1)throw new Error(ot`Uses "\K" in a way that's unsupported`);const x=Yl({behind:!0});x.body[0].body=i(),a(Cn(x,t))}else throw new Error(`Unexpected directive kind "${u}"`)},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(n=>delete e[n]),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:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if(r==="fail")n(Cn(Yl({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=Ga();t.body[0].body.push(e.body),e.body=Cn(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!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 l=eP(i.body);l?(r=!0,Array.isArray(l)?n.push(...l):n.push(l)):a=!0}r&&!a&&n.forEach(i=>t.add(i))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(ot`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!X2(n)&&(n=Q2(n,t),e.ref=n)}},oie={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:a}=e;r||n.set(e,[...t.get(a).map(({node:i})=>i)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:a,groupsByName:i,multiplexCapturesToLeftByRef:l,openRefs:u,reffedNodesByReferencer:c}){const f=a.get(e);if(f&&u.has(e.number)){const h=Zi(US(e.number),t);c.set(h,u.get(e.number)),n(h);return}u.set(e.number,e),l.set(e.number,[]),e.name&&K0(l,e.name,[]);const g=l.get(e.name??e.number);for(let h=0;h<g.length;h++){const x=g[h];if(f===x.node||f&&f===x.origin||e===x.origin){g.splice(h,1);break}}if(l.get(e.number).push({node:e,origin:f}),e.name&&l.get(e.name).push({node:e,origin:f}),e.name){const h=K0(i,e.name,new Map);let x=!1;if(f)x=!0;else for(const b of h.values())if(!b.hasDuplicateNameToRemove){x=!0;break}i.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:x})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=dp(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:a,ref:i}=e;if(a){let g=t;for(;(g=g.parent)&&!(g.type==="CapturingGroup"&&(g.name===i||g.number===i)););r.reffedNodesByReferencer.set(e,g);return}const l=r.subroutineRefMap.get(i),u=i===0,c=u?US(0):WN(l,r.groupOriginByCopy,null);let f=c;if(!u){const g=ZN(fie(l,x=>x.type==="Group"&&!!x.flags)),h=g?dp(r.globalFlags,g):r.globalFlags;cie(h,r.currentFlags)||(f=Ga({flags:hie(h)}),f.body[0].body.push(c))}n(Cn(f,t),{traverse:!u})}},uie={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const i=r.reffedNodesByReferencer.get(e).filter(l=>die(l,e));if(!i.length)n(Cn(Yl({negate:!0}),t));else if(i.length>1){const l=Ga({atomic:!0,body:i.reverse().map(u=>lo({body:[vb(u.number)]}))});n(Cn(l,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 n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const a=FN();e.body.at(-1).body.push(a)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function KN(e){N0(e,{"*"({node:t,parent:n}){t.parent=n}})}function cie(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function die(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=JN(n.parent);for(const a of r){if(a===n)break;if(a===e||tP(a,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function WN(e,t,n,r){const a=Array.isArray(e)?[]:{};for(const[i,l]of Object.entries(e))i==="parent"?a.parent=Array.isArray(n)?r:n:l&&typeof l=="object"?a[i]=WN(l,t,a,n):(i==="type"&&l==="CapturingGroup"&&t.set(a,t.get(e)??e),a[i]=l);return a}function US(e){const t=UN(e);return t.isRecursive=!0,t}function fie(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function Q2(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function ZN(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(a=>{r.enable?.[a]&&(delete n.disable[a],n.enable[a]=!0),r.disable?.[a]&&(n.disable[a]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function hie({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function JN(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function eP(e){const t=e.find(n=>n.kind==="search_start"||gie(n,{negate:!1})||!pie(n));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 n=[];for(const r of t.body){const a=eP(r.body);if(!a)return null;Array.isArray(a)?n.push(...a):n.push(a)}return n}return null}function tP(e,t){const n=JN(e)??[];for(const r of n)if(r===t||tP(r,t))return!0;return!1}function pie({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function mie(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function gie(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&BN(e.body[0],{type:"Assertion",kind:"search_start"})}function X2(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function ei(e,t){const r=zN(e,{...t,unicodePropertyMap:C4}).body;return r.length>1||r[0].body.length>1?Ga({body:r}):r[0].body[0]}function K2(e,t){return e.negate=t,e}function Zi(e,t){return e.parent=t,e}function Cn(e,t){return KN(e),e.parent=t,e}function xie(e,t){const n=YN(t),r=_b(n.target,"ES2024"),a=_b(n.target,"ES2025"),i=n.rules.recursionLimit;if(!Number.isInteger(i)||i<2||i>20)throw new Error("Invalid recursionLimit; use 2-20");let l=null,u=null;if(!a){const b=[e.flags.ignoreCase];N0(e,bie,{getCurrentModI:()=>b.at(-1),popModI(){b.pop()},pushModI(E){b.push(E)},setHasCasedChar(){b.at(-1)?l=!0:u=!0}})}const c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||l)&&!u)};let f=e;const g={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:f,originMap:e._originMap,recursionLimit:i,useAppliedIgnoreCase:!!(!a&&l&&u),useFlagMods:a,useFlagV:r,verbose:n.verbose};function h(b){return g.lastNode=f,f=b,Wse(yie[b.type],`Unexpected node type "${b.type}"`)(b,g,h)}const x={pattern:e.body.map(h).join("|"),flags:h(e.flags),options:{...e.options}};return r||(delete x.options.force.v,x.options.disable.v=!0,x.options.unicodeSetsPlugin=null),x._captureTransfers=new Map,x._hiddenCaptures=[],g.captureMap.forEach((b,E)=>{b.hidden&&x._hiddenCaptures.push(E),b.transferTo&&K0(x._captureTransfers,b.transferTo,[]).push(E)}),x}var bie={"*":{enter({node:e},t){if($S(e)){const n=t.getCurrentModI();t.pushModI(e.flags?dp({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){$S(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){k4(Kn(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),nP(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&XN.has(e.value)&&t.setHasCasedChar()}},yie={Alternative({body:e},t,n){return e.map(n).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?ot`\B`:ot`\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,n){const{body:r,name:a,number:i}=e,l={ignoreCase:t.currentFlags.ignoreCase},u=t.originMap.get(e);return u&&(l.hidden=!0,i>u.number&&(l.transferTo=u.number)),t.captureMap.set(i,l),`(${a?`?<${a}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=Kn(e),r=gu(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&k4(n)){const a=QN(n);return t.inCharClass?a.join(""):a.length>1?`[${a.join("")}]`:a[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:a,parent:i}=e;let{body:l}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of class intersection requires min target ES2024");oi.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&l.some(VS)&&(l=[fm(45),...l.filter(f=>!VS(f))]);const u=()=>`[${a?"^":""}${l.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||oi.bugNestedClassIgnoresNegation)&&!a){const g=l.filter(h=>h.type==="CharacterClass"&&h.kind==="union"&&h.negate);if(g.length){const h=Ga(),x=h.body[0];return h.parent=i,x.parent=h,l=l.filter(b=>!g.includes(b)),e.body=l,l.length?(e.parent=x,x.body.push(e)):h.body.pop(),g.forEach(b=>{const E=lo({body:[b]});b.parent=E,E.parent=h,h.body.push(E)}),n(h)}}t.inCharClass=!0;const f=u();return t.inCharClass=!1,f}const c=l[0];if(r==="union"&&!a&&c&&((!t.useFlagV||!t.verbose)&&i.kind==="union"&&!(oi.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&i.kind==="intersection"&&l.length===1&&c.type!=="CharacterClassRange"))return l.map(n).join("");if(!t.useFlagV&&i.type==="CharacterClass")throw new Error("Use of nested character class requires min target ES2024");return u()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,a={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},i=gu(n,a),l=gu(r,a),u=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const c=nP(e);Tie(c).forEach(g=>{u.add(Array.isArray(g)?`${gu(g[0],a)}-${gu(g[1],a)}`:gu(g,a))})}return`${i}-${l}${[...u].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},a){if(e==="dot")return a.currentFlags.dotAll?a.appliedGlobalFlags.dotAll||a.useFlagMods?".":"[^]":ot`[^\n]`;if(e==="digit")return t?ot`\D`:ot`\d`;if(e==="property"){if(a.useAppliedIgnoreCase&&a.currentFlags.ignoreCase&&XN.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?ot`\P`:ot`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?ot`\W`:ot`\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:n,parent:r},a,i){const l=a.currentFlags;n&&(a.currentFlags=dp(l,n));const u=t.map(i).join("|"),c=!a.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!a.useFlagMods||!n)?u:`(?${wie(e,n,a.useFlagMods)}${u})`;return a.currentFlags=l,c},LookaroundAssertion({body:e,kind:t,negate:n},r,a){return`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(a).join("|")})`},Quantifier(e,t,n){return n(e.body)+Aie(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return t===0?`(?R=${r})`:ot`\g<${t}&R=${r}>`}},vie=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Eie=new Set(["-","\\","]","^","["]),Sie=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),qS=new Map([[9,ot`\t`],[10,ot`\n`],[11,ot`\v`],[12,ot`\f`],[13,ot`\r`],[8232,ot`\u2028`],[8233,ot`\u2029`],[65279,ot`\uFEFF`]]),_ie=new RegExp("^\\p{Cased}$","u");function k4(e){return _ie.test(e)}function nP(e,t){const n=!!t?.firstOnly,r=e.min.value,a=e.max.value,i=[];if(r<65&&(a===65535||a>=131071)||r===65536&&a>=131071)return i;for(let l=r;l<=a;l++){const u=Kn(l);if(!k4(u))continue;const c=QN(u).filter(f=>{const g=f.codePointAt(0);return g<r||g>a});if(c.length&&(i.push(...c),n))break}return i}function gu(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(qS.has(e))return qS.get(e);if(e<32||e>126&&e<160||e>262143||t&&Cie(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const a=n?r?Sie:Eie:vie,i=Kn(e);return(a.has(i)?"\\":"")+i}function Tie(e){const t=e.map(a=>a.codePointAt(0)).sort((a,i)=>a-i),n=[];let r=null;for(let a=0;a<t.length;a++)t[a+1]===t[a]+1?r??=t[a]:r===null?n.push(t[a]):(n.push([r,t[a]]),r=null);return n}function wie(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:a,disable:i}=t;r=(a?.ignoreCase?"i":"")+(a?.dotAll?"s":"")+(i?"-":"")+(i?.ignoreCase?"i":"")+(i?.dotAll?"s":"")}return`${r}:`}function Aie({kind:e,max:t,min:n}){let r;return!n&&t===1?r="?":!n&&t===1/0?r="*":n===1&&t===1/0?r="+":n===t?r=`{${n}}`:r=`{${n},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[e]}function $S({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function Cie(e){return e>47&&e<58}function VS({type:e,value:t}){return e==="Character"&&t===45}var kie=class Tb extends RegExp{#t=new Map;#e=null;#n;#a=null;#r=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,n,r){const a=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw new Error("Cannot provide options when copying a regexp");const i=t;super(i,n),this.#n=i.source,i instanceof Tb&&(this.#t=i.#t,this.#a=i.#a,this.#r=i.#r,this.rawOptions=i.rawOptions)}else{const i={hiddenCaptures:[],strategy:null,transfers:[],...r};super(a?"":t,n),this.#n=t,this.#t=Pie(i.hiddenCaptures,i.transfers),this.#r=i.strategy,this.rawOptions=r??{}}a||(this.#e=this)}exec(t){if(!this.#e){const{lazyCompile:a,...i}=this.rawOptions;this.#e=new Tb(this.#n,this.flags,i)}const n=this.global||this.sticky,r=this.lastIndex;if(this.#r==="clip_search"&&n&&r){this.lastIndex=0;const a=this.#s(t.slice(r));return a&&(Nie(a,r,t,this.hasIndices),this.lastIndex+=r),a}return this.#s(t)}#s(t){this.#e.lastIndex=this.lastIndex;const n=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!n||!this.#t.size)return n;const r=[...n];n.length=1;let a;this.hasIndices&&(a=[...n.indices],n.indices.length=1);const i=[0];for(let l=1;l<r.length;l++){const{hidden:u,transferTo:c}=this.#t.get(l)??{};if(u?i.push(null):(i.push(n.length),n.push(r[l]),this.hasIndices&&n.indices.push(a[l])),c&&r[l]!==void 0){const f=i[c];if(!f)throw new Error(`Invalid capture transfer to "${f}"`);if(n[f]=r[l],this.hasIndices&&(n.indices[f]=a[l]),n.groups){this.#a||(this.#a=Rie(this.source));const g=this.#a.get(c);g&&(n.groups[g]=r[l],this.hasIndices&&(n.indices.groups[g]=a[l]))}}}return n}};function Nie(e,t,n,r){if(e.index+=t,e.input=n,r){const a=e.indices;for(let l=0;l<a.length;l++){const u=a[l];u&&(a[l]=[u[0]+t,u[1]+t])}const i=a.groups;i&&Object.keys(i).forEach(l=>{const u=i[l];u&&(i[l]=[u[0]+t,u[1]+t])})}}function Pie(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,a]of t)for(const i of a)K0(n,i,{}).transferTo=r;return n}function Rie(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,a=0,i;for(;i=t.exec(e);){const{0:l,groups:{capture:u,name:c}}=i;l==="["?r++:r?l==="]"&&r--:u&&(a++,c&&n.set(a,c))}return n}function Oie(e,t){const n=Mie(e,t);return n.options?new kie(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function Mie(e,t){const n=YN(t),r=zN(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:C4}),a=iie(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=xie(a,n),l=Xse(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),u=Yse(l.pattern),c=Gse(u.pattern,{captureTransfers:l.captureTransfers,hiddenCaptures:l.hiddenCaptures}),f={pattern:c.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${i.flags}${i.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const g=c.hiddenCaptures.sort((E,_)=>E-_),h=Array.from(c.captureTransfers),x=a._strategy,b=f.pattern.length>=n.lazyCompileLength;(g.length||h.length||x||b)&&(f.options={...g.length&&{hiddenCaptures:g},...h.length&&{transfers:h},...x&&{strategy:x},...b&&{lazyCompile:b}})}return f}const GS=4294967295;class Die{constructor(t,n={}){this.patterns=t,this.options=n;const{forgiving:r=!1,cache:a,regexConstructor:i}=n;if(!i)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(l=>{if(typeof l!="string")return l;const u=a?.get(l);if(u){if(u instanceof RegExp)return u;if(r)return null;throw u}try{const c=i(l);return a?.set(l,c),c}catch(c){if(a?.set(l,c),r)return null;throw c}})}regexps;findNextMatchSync(t,n,r){const a=typeof t=="string"?t:t.content,i=[];function l(u,c,f=0){return{index:u,captureIndices:c.indices.map(g=>g==null?{start:GS,end:GS,length:0}:{start:g[0]+f,end:g[1]+f,length:g[1]-g[0]})}}for(let u=0;u<this.regexps.length;u++){const c=this.regexps[u];if(c)try{c.lastIndex=n;const f=c.exec(a);if(!f)continue;if(f.index===n)return l(u,f,0);i.push([u,f,0])}catch(f){if(this.options.forgiving)continue;throw f}}if(i.length){const u=Math.min(...i.map(c=>c[1].index));for(const[c,f,g]of i)if(f.index===u)return l(c,f,g)}return null}}function Iie(e,t){return Oie(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function Lie(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=n=>Iie(n,{target:t.target}),{createScanner(n){return new Die(n,t)},createString(n){return{content:n}}}}function N4(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var bo=N4();function rP(e){bo=e}var P0={exec:()=>null};function Ft(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(a,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(Dr.caret,"$1"),n=n.replace(a,l),r},getRegex:()=>new RegExp(n,t)};return r}var Dr={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")},jie=/^(?:[ \t]*(?:\n|$))+/,Bie=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,zie=/^ {0,3}(`{3,}
vendor: 5,094 bytes, lines 893-894
893(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,vd=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Fie=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,P4=/(?:[*+-]|\d{1,9}[.)])/,aP=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,sP=Ft(aP).replace(/bull/g,P4).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(),Hie=Ft(aP).replace(/bull/g,P4).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(),R4=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Uie=/^[^\n]+/,O4=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,qie=Ft(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",O4).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$ie=Ft(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,P4).getRegex(),mm="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",M4=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Vie=Ft("^ {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",M4).replace("tag",mm).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),iP=Ft(R4).replace("hr",vd).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",mm).getRegex(),Gie=Ft(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",iP).getRegex(),D4={blockquote:Gie,code:Bie,def:qie,fences:zie,heading:Fie,hr:vd,html:Vie,lheading:sP,list:$ie,newline:jie,paragraph:iP,table:P0,text:Uie},YS=Ft("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",vd).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",mm).getRegex(),Yie={...D4,lheading:Hie,table:YS,paragraph:Ft(R4).replace("hr",vd).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",YS).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",mm).getRegex()},Qie={...D4,html:Ft(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",M4).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:P0,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ft(R4).replace("hr",vd).replace("heading",` *#{1,6} *[^
894]`).replace("lheading",sP).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Xie=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Kie=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,lP=/^( {2,}|\\)\n(?!\s*$)/,Wie=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,gm=/[\p{P}\p{S}]/u,I4=/[\s\p{P}\p{S}]/u,oP=/[^\s\p{P}\p{S}]/u,Zie=Ft(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,I4).getRegex(),uP=/(?!~)[\p{P}\p{S}]/u,Jie=/(?!~)[\s\p{P}\p{S}]/u,ele=/(?:[^\s\p{P}\p{S}
vendor: 7,383 bytes, lines 894-909
894]|~)/u,tle=Ft(/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(),cP=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,nle=Ft(cP,"u").replace(/punct/g,gm).getRegex(),rle=Ft(cP,"u").replace(/punct/g,uP).getRegex(),dP="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ale=Ft(dP,"gu").replace(/notPunctSpace/g,oP).replace(/punctSpace/g,I4).replace(/punct/g,gm).getRegex(),sle=Ft(dP,"gu").replace(/notPunctSpace/g,ele).replace(/punctSpace/g,Jie).replace(/punct/g,uP).getRegex(),ile=Ft("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,oP).replace(/punctSpace/g,I4).replace(/punct/g,gm).getRegex(),lle=Ft(/\\(punct)/,"gu").replace(/punct/g,gm).getRegex(),ole=Ft(/^<(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(),ule=Ft(M4).replace("(?:-->|$)","-->").getRegex(),cle=Ft("^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",ule).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),fp=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,dle=Ft(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",fp).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),fP=Ft(/^!?\[(label)\]\[(ref)\]/).replace("label",fp).replace("ref",O4).getRegex(),hP=Ft(/^!?\[(ref)\](?:\[\])?/).replace("ref",O4).getRegex(),fle=Ft("reflink|nolink(?!\\()","g").replace("reflink",fP).replace("nolink",hP).getRegex(),QS=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,L4={_backpedal:P0,anyPunctuation:lle,autolink:ole,blockSkip:tle,br:lP,code:Kie,del:P0,emStrongLDelim:nle,emStrongRDelimAst:ale,emStrongRDelimUnd:ile,escape:Xie,link:dle,nolink:hP,punctuation:Zie,reflink:fP,reflinkSearch:fle,tag:cle,text:Wie,url:P0},hle={...L4,link:Ft(/^!?\[(label)\]\((.*?)\)/).replace("label",fp).getRegex(),reflink:Ft(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fp).getRegex()},wb={...L4,emStrongRDelimAst:sle,emStrongLDelim:rle,url:Ft(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",QS).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:Ft(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",QS).getRegex()},ple={...wb,br:Ft(lP).replace("{2,}","*").getRegex(),text:Ft(wb.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},gh={normal:D4,gfm:Yie,pedantic:Qie},i0={normal:L4,gfm:wb,breaks:ple,pedantic:hle},mle={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},XS=e=>mle[e];function fs(e,t){if(t){if(Dr.escapeTest.test(e))return e.replace(Dr.escapeReplace,XS)}else if(Dr.escapeTestNoEncode.test(e))return e.replace(Dr.escapeReplaceNoEncode,XS);return e}function KS(e){try{e=encodeURI(e).replace(Dr.percentDecode,"%")}catch{return null}return e}function WS(e,t){let n=e.replace(Dr.findPipe,(i,l,u)=>{let c=!1,f=l;for(;--f>=0&&u[f]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Dr.splitPipe),a=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;a<r.length;a++)r[a]=r[a].trim().replace(Dr.slashPipe,"|");return r}function l0(e,t,n){let r=e.length;if(r===0)return"";let a=0;for(;a<r&&e.charAt(r-a-1)===t;)a++;return e.slice(0,r-a)}function gle(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function ZS(e,t,n,r,a){let i=t.href,l=t.title||null,u=e[1].replace(a.other.outputLinkReplace,"$1");r.state.inLink=!0;let c={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:l,text:u,tokens:r.inlineTokens(u)};return r.state.inLink=!1,c}function xle(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let a=r[1];return t.split(`
895`).map(i=>{let l=i.match(n.other.beginningSpace);if(l===null)return i;let[u]=l;return u.length>=a.length?i.slice(a.length):i}).join(`
896`)}var hp=class{options;rules;lexer;constructor(e){this.options=e||bo}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:l0(n,`
897`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=xle(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=l0(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:l0(t[0],`
898`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=l0(t[0],`
899`).split(`
900`),r="",a="",i=[];for(;n.length>0;){let l=!1,u=[],c;for(c=0;c<n.length;c++)if(this.rules.other.blockquoteStart.test(n[c]))u.push(n[c]),l=!0;else if(!l)u.push(n[c]);else break;n=n.slice(c);let f=u.join(`
901`),g=f.replace(this.rules.other.blockquoteSetextReplace,`
902    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
903${f}`:f,a=a?`${a}
904${g}`:g;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(g,i,!0),this.lexer.state.top=h,n.length===0)break;let x=i.at(-1);if(x?.type==="code")break;if(x?.type==="blockquote"){let b=x,E=b.raw+`
905`+n.join(`
906`),_=this.blockquote(E);i[i.length-1]=_,r=r.substring(0,r.length-b.raw.length)+_.raw,a=a.substring(0,a.length-b.text.length)+_.text;break}else if(x?.type==="list"){let b=x,E=b.raw+`
907`+n.join(`
908`),_=this.list(E);i[i.length-1]=_,r=r.substring(0,r.length-x.raw.length)+_.raw,a=a.substring(0,a.length-b.raw.length)+_.raw,n=E.substring(i.at(-1).raw.length).split(`
909`);continue}}return{type:"blockquote",raw:r,tokens:i,text:a}}}list(e){let t=this.rules.block.list.exec(e);
vendor: 4,776 bytes, lines 909-918
909if(t){let n=t[1].trim(),r=n.length>1,a={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),l=!1;for(;e;){let c=!1,f="",g="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;f=t[0],e=e.substring(f.length);let h=t[2].split(`
910`,1)[0].replace(this.rules.other.listReplaceTabs,w=>" ".repeat(3*w.length)),x=e.split(`
911`,1)[0],b=!h.trim(),E=0;if(this.options.pedantic?(E=2,g=h.trimStart()):b?E=t[1].length+1:(E=t[2].search(this.rules.other.nonSpaceChar),E=E>4?1:E,g=h.slice(E),E+=t[1].length),b&&this.rules.other.blankLine.test(x)&&(f+=x+`
912`,e=e.substring(x.length+1),c=!0),!c){let w=this.rules.other.nextBulletRegex(E),N=this.rules.other.hrRegex(E),R=this.rules.other.fencesBeginRegex(E),z=this.rules.other.headingBeginRegex(E),B=this.rules.other.htmlBeginRegex(E);for(;e;){let j=e.split(`
913`,1)[0],L;if(x=j,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting,"  "),L=x):L=x.replace(this.rules.other.tabCharGlobal,"    "),R.test(x)||z.test(x)||B.test(x)||w.test(x)||N.test(x))break;if(L.search(this.rules.other.nonSpaceChar)>=E||!x.trim())g+=`
914`+L.slice(E);else{if(b||h.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||R.test(h)||z.test(h)||N.test(h))break;g+=`
915`+x}!b&&!x.trim()&&(b=!0),f+=j+`
916`,e=e.substring(j.length+1),h=L.slice(E)}}a.loose||(l?a.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(l=!0));let _=null,C;this.options.gfm&&(_=this.rules.other.listIsTask.exec(g),_&&(C=_[0]!=="[ ] ",g=g.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:f,task:!!_,checked:C,loose:!1,text:g,tokens:[]}),a.raw+=f}let u=a.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let c=0;c<a.items.length;c++)if(this.lexer.state.top=!1,a.items[c].tokens=this.lexer.blockTokens(a.items[c].text,[]),!a.loose){let f=a.items[c].tokens.filter(h=>h.type==="space"),g=f.length>0&&f.some(h=>this.rules.other.anyLine.test(h.raw));a.loose=g}if(a.loose)for(let c=0;c<a.items.length;c++)a.items[c].loose=!0;return a}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:a}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=WS(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
917`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let l of r)this.rules.other.tableAlignRight.test(l)?i.align.push("right"):this.rules.other.tableAlignCenter.test(l)?i.align.push("center"):this.rules.other.tableAlignLeft.test(l)?i.align.push("left"):i.align.push(null);for(let l=0;l<n.length;l++)i.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:i.align[l]});for(let l of a)i.rows.push(WS(l,i.header.length).map((u,c)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:i.align[c]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
918`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if
vendor: 3,820 bytes, lines 918-919
918(!this.rules.other.endAngleBracket.test(n))return;let i=l0(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=gle(t[2],"()");if(i===-2)return;if(i>-1){let l=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let r=t[2],a="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(r);i&&(r=i[1],a=i[3])}else a=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),ZS(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=t[r.toLowerCase()];if(!a){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return ZS(n,a,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let a=[...r[0]].length-1,i,l,u=a,c=0,f=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,t=t.slice(-1*e.length+a);(r=f.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(l=[...i].length,r[3]||r[4]){u+=l;continue}else if((r[5]||r[6])&&a%3&&!((a+l)%3)){c+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+c);let g=[...r[0]][0].length,h=e.slice(0,a+r.index+g+l);if(Math.min(a,l)%2){let b=h.slice(1,-1);return{type:"em",raw:h,text:b,tokens:this.lexer.inlineTokens(b)}}let x=h.slice(2,-2);return{type:"strong",raw:h,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),a=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&a&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,r;if(t[2]==="@")n=t[0],r="mailto:"+n;else{let a;do a=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(a!==t[0]);n=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},Oa=class Ab{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||bo,this.options.tokenizer=this.options.tokenizer||new hp,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 n={other:Dr,block:gh.normal,inline:i0.normal};this.options.pedantic?(n.block=gh.pedantic,n.inline=i0.pedantic):this.options.gfm&&(n.block=gh.gfm,this.options.breaks?n.inline=i0.breaks:n.inline=i0.gfm),this.tokenizer.rules=n}static get rules(){return{block:gh,inline:i0}}static lex(t,n){return new Ab(n).lex(t)}static lexInline(t,n){return new Ab(n).inlineTokens(t)}lex(t){t=t.replace(Dr.carriageReturn,`
919`),this.blockTokens(t,this.tokens);for(let n=0;
vendor: 4,989 bytes, lines 919-932
919n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){for(this.options.pedantic&&(t=t.replace(Dr.tabCharGlobal,"    ").replace(Dr.spaceLine,""));t;){let a;if(this.options.extensions?.block?.some(l=>(a=l.call({lexer:this},t,n))?(t=t.substring(a.raw.length),n.push(a),!0):!1))continue;if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length);let l=n.at(-1);a.raw.length===1&&l!==void 0?l.raw+=`
920`:n.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
921`)?"":`
922`)+a.raw,l.text+=`
923`+a.text,this.inlineQueue.at(-1).src=l.text):n.push(a);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
924`)?"":`
925`)+a.raw,l.text+=`
926`+a.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},n.push(a));continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),n.push(a);continue}let i=t;if(this.options.extensions?.startBlock){let l=1/0,u=t.slice(1),c;this.options.extensions.startBlock.forEach(f=>{c=f.call({lexer:this},u),typeof c=="number"&&c>=0&&(l=Math.min(l,c))}),l<1/0&&l>=0&&(i=t.substring(0,l+1))}if(this.state.top&&(a=this.tokenizer.paragraph(i))){let l=n.at(-1);r&&l?.type==="paragraph"?(l.raw+=(l.raw.endsWith(`
927`)?"":`
928`)+a.raw,l.text+=`
929`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(a),r=i.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length);let l=n.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(`
930`)?"":`
931`)+a.raw,l.text+=`
932`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(a);continue}if(t){let l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r=t,a=null;if(this.tokens.links){let u=Object.keys(this.tokens.links);if(u.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,a.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(a=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let i=!1,l="";for(;t;){i||(l=""),i=!1;let u;if(this.options.extensions?.inline?.some(f=>(u=f.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.escape(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.tag(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.link(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(u.raw.length);let f=n.at(-1);u.type==="text"&&f?.type==="text"?(f.raw+=u.raw,f.text+=u.text):n.push(u);continue}if(u=this.tokenizer.emStrong(t,r,l)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.codespan(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.br(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.del(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.autolink(t)){t=t.substring(u.raw.length),n.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(t))){t=t.substring(u.raw.length),n.push(u);continue}let c=t;if(this.options.extensions?.startInline){let f=1/0,g=t.slice(1),h;this.options.extensions.startInline.forEach(x=>{h=x.call({lexer:this},g),typeof h=="number"&&h>=0&&(f=Math.min(f,h))}),f<1/0&&f>=0&&(c=t.substring(0,f+1))}if(u=this.tokenizer.inlineText(c)){t=t.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(l=u.raw.slice(-1)),i=!0;let f=n.at(-1);f?.type==="text"?(f.raw+=u.raw,f.text+=u.text):n.push(u);continue}if(t){let f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return n}}
vendor: 6,384 bytes, lines 932-951
932,pp=class{options;parser;constructor(t){this.options=t||bo}space(t){return""}code({text:t,lang:n,escaped:r}){let a=(n||"").match(Dr.notSpaceStart)?.[0],i=t.replace(Dr.endingNewline,"")+`
933`;return a?'<pre><code class="language-'+fs(a)+'">'+(r?i:fs(i,!0))+`</code></pre>
934`:"<pre><code>"+(r?i:fs(i,!0))+`</code></pre>
935`}blockquote({tokens:t}){return`<blockquote>
936${this.parser.parse(t)}</blockquote>
937`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
938`}hr(t){return`<hr>
939`}list(t){let n=t.ordered,r=t.start,a="";for(let u=0;u<t.items.length;u++){let c=t.items[u];a+=this.listitem(c)}let i=n?"ol":"ul",l=n&&r!==1?' start="'+r+'"':"";return"<"+i+l+`>
940`+a+"</"+i+`>
941`}listitem(t){let n="";if(t.task){let r=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=r+" "+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=r+" "+fs(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):n+=r+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
942`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
943`}table(t){let n="",r="";for(let i=0;i<t.header.length;i++)r+=this.tablecell(t.header[i]);n+=this.tablerow({text:r});let a="";for(let i=0;i<t.rows.length;i++){let l=t.rows[i];r="";for(let u=0;u<l.length;u++)r+=this.tablecell(l[u]);a+=this.tablerow({text:r})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
944<thead>
945`+n+`</thead>
946`+a+`</table>
947`}tablerow({text:t}){return`<tr>
948${t}</tr>
949`}tablecell(t){let n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
950`}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>${fs(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){let a=this.parser.parseInline(r),i=KS(t);if(i===null)return a;t=i;let l='<a href="'+t+'"';return n&&(l+=' title="'+fs(n)+'"'),l+=">"+a+"</a>",l}image({href:t,title:n,text:r,tokens:a}){a&&(r=this.parser.parseInline(a,this.parser.textRenderer));let i=KS(t);if(i===null)return fs(r);t=i;let l=`<img src="${t}" alt="${r}"`;return n&&(l+=` title="${fs(n)}"`),l+=">",l}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:fs(t.text)}},j4=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""}},Va=class Cb{options;renderer;textRenderer;constructor(t){this.options=t||bo,this.options.renderer=this.options.renderer||new pp,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new j4}static parse(t,n){return new Cb(n).parse(t)}static parseInline(t,n){return new Cb(n).parseInline(t)}parse(t,n=!0){let r="";for(let a=0;a<t.length;a++){let i=t[a];if(this.options.extensions?.renderers?.[i.type]){let u=i,c=this.options.extensions.renderers[u.type].call({parser:this},u);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(u.type)){r+=c||"";continue}}let l=i;switch(l.type){case"space":{r+=this.renderer.space(l);continue}case"hr":{r+=this.renderer.hr(l);continue}case"heading":{r+=this.renderer.heading(l);continue}case"code":{r+=this.renderer.code(l);continue}case"table":{r+=this.renderer.table(l);continue}case"blockquote":{r+=this.renderer.blockquote(l);continue}case"list":{r+=this.renderer.list(l);continue}case"html":{r+=this.renderer.html(l);continue}case"def":{r+=this.renderer.def(l);continue}case"paragraph":{r+=this.renderer.paragraph(l);continue}case"text":{let u=l,c=this.renderer.text(u);for(;a+1<t.length&&t[a+1].type==="text";)u=t[++a],c+=`
951`+this.renderer.text(u);n?r+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c,escaped:!0}]}):r+=c;continue}default:{let u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}parseInline(t,n=this.renderer){let r="";for(let a=0;a<t.length;a++){let i=t[a];if(this.options.extensions?.renderers?.[i.type]){let u=this.options.extensions.renderers[i.type].call({parser:this},i);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=u||"";continue}}let l=i;switch(l.type){case"escape":{r+=n.text(l);break}case"html":{r+=n.html(l);break}case"link":{r+=n.link(l);break}case"image":{r+=n.image(l);break}case"strong":{r+=n.strong(l);break}case"em":{r+=n.em(l);break}case"codespan":{r+=n.codespan(l);break}case"br":{r+=n.br(l);break}case"del":{r+=n.del(l);break}case"text":{r+=n.text(l);break}default:{let u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}},p0=class{options;block;constructor(e){this.options=e||bo}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?Oa.lex:Oa.lexInline}provideParser(){return this.block?Va.parse:Va.parseInline}},ble=class{defaults=N4();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Va;Renderer=pp;TextRenderer=j4;Lexer=Oa;Tokenizer=hp;Hooks=p0;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let a=r;for(let i of a.header)n=n.concat(this.walkTokens(i.tokens,t));for(let i of a.rows)for(let l of i)n=n.concat(this.walkTokens(l.tokens,t));break}case"list":{let a=r;n=n.concat(this.walkTokens(a.items,t));break}default:{let a=r;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(i=>
vendor: 4,739 bytes, lines 951-952
951{let l=a[i].flat(1/0);n=n.concat(this.walkTokens(l,t))}):a.tokens&&(n=n.concat(this.walkTokens(a.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.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(...l){let u=a.renderer.apply(this,l);return u===!1&&(u=i.apply(this,l)),u}: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)}),r.extensions=t),n.renderer){let a=this.defaults.renderer||new pp(this.defaults);for(let i in n.renderer){if(!(i in a))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let l=i,u=n.renderer[l],c=a[l];a[l]=(...f)=>{let g=u.apply(a,f);return g===!1&&(g=c.apply(a,f)),g||""}}r.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new hp(this.defaults);for(let i in n.tokenizer){if(!(i in a))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let l=i,u=n.tokenizer[l],c=a[l];a[l]=(...f)=>{let g=u.apply(a,f);return g===!1&&(g=c.apply(a,f)),g}}r.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new p0;for(let i in n.hooks){if(!(i in a))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let l=i,u=n.hooks[l],c=a[l];p0.passThroughHooks.has(i)?a[l]=f=>{if(this.defaults.async&&p0.passThroughHooksRespectAsync.has(i))return(async()=>{let h=await u.call(a,f);return c.call(a,h)})();let g=u.call(a,f);return c.call(a,g)}:a[l]=(...f)=>{if(this.defaults.async)return(async()=>{let h=await u.apply(a,f);return h===!1&&(h=await c.apply(a,f)),h})();let g=u.apply(a,f);return g===!1&&(g=c.apply(a,f)),g}}r.hooks=a}if(n.walkTokens){let a=this.defaults.walkTokens,i=n.walkTokens;r.walkTokens=function(l){let u=[];return u.push(i.call(this,l)),a&&(u=u.concat(a.call(this,l))),u}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Oa.lex(e,t??this.defaults)}parser(e,t){return Va.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},a={...this.defaults,...r},i=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&r.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 l=a.hooks?await a.hooks.preprocess(t):t,u=await(a.hooks?await a.hooks.provideLexer():e?Oa.lex:Oa.lexInline)(l,a),c=a.hooks?await a.hooks.processAllTokens(u):u;a.walkTokens&&await Promise.all(this.walkTokens(c,a.walkTokens));let f=await(a.hooks?await a.hooks.provideParser():e?Va.parse:Va.parseInline)(c,a);return a.hooks?await a.hooks.postprocess(f):f})().catch(i);try{a.hooks&&(t=a.hooks.preprocess(t));let l=(a.hooks?a.hooks.provideLexer():e?Oa.lex:Oa.lexInline)(t,a);a.hooks&&(l=a.hooks.processAllTokens(l)),a.walkTokens&&this.walkTokens(l,a.walkTokens);let u=(a.hooks?a.hooks.provideParser():e?Va.parse:Va.parseInline)(l,a);return a.hooks&&(u=a.hooks.postprocess(u)),u}catch(l){return i(l)}}}onError(e,t){return n=>{if(n.message+=`
952Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+fs(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},oo=new ble;function Wt(e,t){return oo.parse(e,t)}Wt.options=Wt.setOptions=function(e){return oo.setOptions(e),Wt.defaults=oo.defaults,rP(Wt.defaults),Wt};Wt.getDefaults=N4;Wt.defaults=bo;Wt.use=function(...e){return oo.use(...e),Wt.defaults=oo.defaults,rP(Wt.defaults),Wt};Wt.walkTokens=function(e,t){return oo.walkTokens(e,t)};Wt.parseInline=oo.parseInline;Wt.Parser=Va;Wt.parser=Va.parse;Wt.Renderer=pp;Wt.TextRenderer=j4;Wt.Lexer=Oa;Wt.lexer=Oa.lex;Wt.Tokenizer=hp;Wt.Hooks=p0;Wt.parse=Wt;Wt.options;Wt.setOptions;Wt.use;Wt.walkTokens;Wt.parseInline;Va.parse;Oa.lex;var Nt=(...e)=>
952nw(Kb(e)),B4=(e,t,n)=>{let r=typeof t=="string"?new Blob([t],{type:n}):t,a=URL.createObjectURL(r),i=document.createElement("a");i.href=a,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(a)},yle=/<pre(\s|>)/,z4=A.createContext({code:""}),vle=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(RN,e)}getFallbackLanguage(){return"text"}async ensureHighlightersInitialized(e,t){var n,r;let[a,i]=e,l=Lie({forgiving:!0}),u=!this.lightHighlighter||this.lightTheme!==a,c=!this.darkHighlighter||this.darkTheme!==i;(u||c)&&this.loadedLanguages.clear();let f=this.isLanguageSupported(t),g=!this.loadedLanguages.has(t)&&f;if(u?(this.lightHighlighter=await AS({themes:[a],langs:f?[t]:[],engine:l}),this.lightTheme=a,f&&this.loadedLanguages.add(t)):g&&await((n=this.lightHighlighter)==null?void 0:n.loadLanguage(t)),c){let h=g?[...this.loadedLanguages].concat(f?[t]:[]):Array.from(this.loadedLanguages);this.darkHighlighter=await AS({themes:[i],langs:h.length>0?h:f?[t]:[],engine:l}),this.darkTheme=i}else g&&await((r=this.darkHighlighter)==null?void 0:r.loadLanguage(t));g&&this.loadedLanguages.add(t)}async highlightCode(e,t,n,r){var a,i;this.initializationPromise&&await this.initializationPromise,this.initializationPromise=this.ensureHighlightersInitialized(n,t),await this.initializationPromise,this.initializationPromise=null;let[l,u]=n,c=this.isLanguageSupported(t)?t:this.getFallbackLanguage(),f=(a=this.lightHighlighter)==null?void 0:a.codeToHtml(e,{lang:c,theme:l}),g=(i=this.darkHighlighter)==null?void 0:i.codeToHtml(e,{lang:c,theme:u}),h=x=>r?x.replace(yle,`<pre class="${r}"$1`):x;return[h(f),h(g)]}},Ele=new vle,Sle=({code:e,language:t,className:n,children:r,preClassName:a,...i})=>{let[l,u]=A.useState(""),[c,f]=A.useState(""),g=A.useRef(!1),[h,x]=A.useContext(UP);return A.useEffect(()=>(g.current=!0,Ele.highlightCode(e,t,[h,x],a).then(([b,E])=>{g.current&&(u(b),f(E))}),()=>{g.current=!1}),[e,t,h,x,a]),p.jsx(z4.Provider,{value:{code:e},children:p.jsxs("div",{className:"my-4 w-full overflow-hidden rounded-xl border","data-code-block-container":!0,"data-language":t,children:[p.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:[p.jsx("span",{className:"ml-1 font-mono lowercase",children:t}),p.jsx("div",{className:"flex items-center gap-2",children:r})]}),p.jsx("div",{className:"w-full",children:p.jsxs("div",{className:"min-w-full",children:[p.jsx("div",{className:Nt("overflow-x-auto dark:hidden",n),dangerouslySetInnerHTML:{__html:l},"data-code-block":!0,"data-language":t,...i}),p.jsx("div",{className:Nt("hidden overflow-x-auto dark:block",n),dangerouslySetInnerHTML:{__html:c},"data-code-block":!0,"data-language":t,...i})]})})]})})},JS={"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"},e_=({onDownload:e,onError:t,language:n,children:r,className:a,code:i,...l})=>{let{code:u}=A.useContext(z4),{isAnimating:c}=A.useContext(Ed),f=i??u,g=`file.${n&&n in JS?JS[n]:"txt"}`,h="text/plain",x=()=>{try{B4(g,f,h),e?.()}catch(b){t?.(b)}};return p.jsx("button",{className:Nt("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),disabled:c,onClick:x,title:"Download file",type:"button",...l,children:r??p.jsx(m4,{size:14})})},t_=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:a,code:i,...l})=>{let[u,c]=A.useState(!1),f=A.useRef(0),{code:g}=A.useContext(z4),{isAnimating:h}=A.useContext(Ed),x=i??g,b=async()=>{var _;if(typeof window>"u"||!((_=navigator?.clipboard)!=null&&_.writeText)){t?.(new Error("Clipboard API not available"));return}try{u||(await navigator.clipboard.writeText(x),c(!0),e?.(),f.current=window.setTimeout(()=>c(!1),n))}catch(C){t?.(C)}};A.useEffect(()=>()=>{window.clearTimeout(f.current)},[]);let E=u?Jk:eN;return p.jsx("button",{className:Nt("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),disabled:h,onClick:b,type:"button",...l,children:r??p.jsx(E,{size:14})})},_le=({node:e,className:t,src:n,alt:r,...a})=>{let i=async()=>{var l;if(n)try{let u=await(await fetch(n)).blob(),c=new URL(n,window.location.origin).pathname.split("/").pop()||"",f=c.includes(".")&&((l=c.split(".").pop())==null?void 0:l.length)<=4,g="";if(f)g=c;else{let h=u.type,x="png";h.includes("jpeg")||h.includes("jpg")?x="jpg":h.includes("png")?x="png":h.includes("svg")?x="svg":h.includes("gif")?x="gif":h.includes("webp")&&(x="webp"),g=`${(r||c||"image").replace(/\.[^/.]+$/,"")}.${x}`}B4(g,u,u.type)}catch(u){console.error("Failed to download image:",u)}};return n?p.jsxs("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[p.jsx("img",{alt:r,className:Nt("max-w-full rounded-lg",t),"data-streamdown":"image",src:n,...a}),p.jsx("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),p.jsx("button",{className:Nt("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:p.jsx(m4,{size:14})})]}):null},Tle=async e=>{let t={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0,...e},n=(await U(async()=>{const{default:r}=await import("./mermaid.core-B4S_ieIK.js").then(a=>a.bC);return{default:r}},[])).default;return n.initialize(t),n},wle=({chart:e,className:t,config:n})=>{let[r,a]=A.useState(null),[i,l]=A.useState(!0),[u,c]=A.useState(""),[f,g]=A.useState("");
952if(A.useEffect(()=>{(async()=>{try{a(null),l(!0);let x=await Tle(n),b=e.split("").reduce((C,w)=>(C<<5)-C+w.charCodeAt(0)|0,0),E=`mermaid-${Math.abs(b)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:_}=await x.render(E,e);c(_),g(_)}catch(x){if(!(f||u)){let b=x instanceof Error?x.message:"Failed to render Mermaid chart";a(b)}}finally{l(!1)}})()},[e,n]),i&&!u&&!f)return p.jsx("div",{className:Nt("my-4 flex justify-center p-4",t),children:p.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[p.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),p.jsx("span",{className:"text-sm",children:"Loading diagram..."})]})});if(r&&!u&&!f)return p.jsxs("div",{className:Nt("rounded-lg border border-red-200 bg-red-50 p-4",t),children:[p.jsxs("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",r]}),p.jsxs("details",{className:"mt-2",children:[p.jsx("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),p.jsx("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]});let h=u||f;return p.jsx("div",{"aria-label":"Mermaid chart",className:Nt("my-4 flex justify-center",t),dangerouslySetInnerHTML:{__html:h},role:"img"})};function pP(e){var t,n;let r=[],a=[],i=e.querySelectorAll("thead th");for(let u of i)r.push(((t=u.textContent)==null?void 0:t.trim())||"");let l=e.querySelectorAll("tbody tr");for(let u of l){let c=[],f=u.querySelectorAll("td");for(let g of f)c.push(((n=g.textContent)==null?void 0:n.trim())||"");a.push(c)}return{headers:r,rows:a}}function mP(e){let{headers:t,rows:n}=e,r=i=>i.includes(",")||i.includes('"')||i.includes(`
953`)?`"${i.replace(/"/g,'""')}"`:i,a=[];t.length>0&&a.push(t.map(r).join(","));for(let i of n)a.push(i.map(r).join(","));return a.join(`
954`)}function gP(e){let{headers:t,rows:n}=e;if(t.length===0)return"";let r=[],a=t.map(i=>i.replace(/\|/g,"\\|"));r.push(`| ${a.join(" | ")} |`),r.push(`| ${t.map(()=>"---").join(" | ")} |`);for(let i of n){let l=[...i];for(;l.length<t.length;)l.push("");let u=l.map(c=>c.replace(/\|/g,"\\|"));r.push(`| ${u.join(" | ")} |`)}return r.join(`
955`)}var Ale=({children:e,className:t,onCopy:n,onError:r,timeout:a=2e3,format:i="markdown"})=>{let[l,u]=A.useState(!1),c=A.useRef(0),{isAnimating:f}=A.useContext(Ed),g=async x=>{var b;if(typeof window>"u"||!((b=navigator?.clipboard)!=null&&b.write)){r?.(new Error("Clipboard API not available"));return}try{if(!l){let E=x.currentTarget.closest('[data-streamdown="table-wrapper"]'),_=E?.querySelector("table");if(!_){r?.(new Error("Table not found"));return}let C=pP(_),w=new ClipboardItem({"text/plain":i==="markdown"?gP(C):mP(C),"text/html":new Blob([_.outerHTML],{type:"text/html"})});await navigator.clipboard.write([w]),u(!0),n?.(),c.current=window.setTimeout(()=>u(!1),a)}}catch(E){r?.(E)}};A.useEffect(()=>()=>{window.clearTimeout(c.current)},[]);let h=l?Jk:eN;return p.jsx("button",{className:Nt("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:f,onClick:g,title:`Copy table as ${i}`,type:"button",children:e??p.jsx(h,{size:14})})},Cle=({children:e,className:t,onDownload:n,onError:r})=>{let[a,i]=A.useState(!1),l=A.useRef(null),{isAnimating:u}=A.useContext(Ed),c=f=>{var g;try{let h=(g=l.current)==null?void 0:g.closest('[data-streamdown="table-wrapper"]'),x=h?.querySelector("table");if(!x){r?.(new Error("Table not found"));return}let b=pP(x),E=f==="csv"?mP(b):gP(b);B4(`table.${f==="csv"?"csv":"md"}`,E,f==="csv"?"text/csv":"text/markdown"),i(!1),n?.(f)}catch(h){r?.(h)}};return A.useEffect(()=>{let f=g=>{l.current&&!l.current.contains(g.target)&&i(!1)};return document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}},[]),p.jsxs("div",{className:"relative",ref:l,children:[p.jsx("button",{className:Nt("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:()=>i(!a),title:"Download table",type:"button",children:e??p.jsx(m4,{size:14})}),a&&p.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:[p.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("csv"),type:"button",children:"CSV"}),p.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("markdown"),type:"button",children:"Markdown"})]})]})},kle=/language-([^\s]+)/;function xm(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;
955if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let n=e.position.start,r=t.position.start,a=e.position.end,i=t.position.end;return n?.line===r?.line&&n?.column===r?.column&&a?.line===i?.line&&a?.column===i?.column}function _n(e,t){return e.className===t.className&&xm(e.node,t.node)}var kb=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,F4=A.memo(({children:e,className:t,node:n,...r})=>p.jsx("ol",{className:Nt("ml-4 list-outside list-decimal whitespace-normal",t),"data-streamdown":"ordered-list",...r,children:e}),(e,t)=>_n(e,t));F4.displayName="MarkdownOl";var xP=A.memo(({children:e,className:t,node:n,...r})=>p.jsx("li",{className:Nt("py-1",t),"data-streamdown":"list-item",...r,children:e}),(e,t)=>e.className===t.className&&xm(e.node,t.node));xP.displayName="MarkdownLi";var bP=A.memo(({children:e,className:t,node:n,...r})=>p.jsx("ul",{className:Nt("ml-4 list-outside list-disc whitespace-normal",t),"data-streamdown":"unordered-list",...r,children:e}),(e,t)=>_n(e,t));bP.displayName="MarkdownUl";var yP=A.memo(({className:e,node:t,...n})=>p.jsx("hr",{className:Nt("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n}),(e,t)=>_n(e,t));yP.displayName="MarkdownHr";var vP=A.memo(({children:e,className:t,node:n,...r})=>p.jsx("span",{className:Nt("font-semibold",t),"data-streamdown":"strong",...r,children:e}),(e,t)=>_n(e,t));vP.displayName="MarkdownStrong";var EP=A.memo(({children:e,className:t,href:n,node:r,...a})=>{let i=n==="streamdown:incomplete-link";return p.jsx("a",{className:Nt("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":i,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...a,children:e})},(e,t)=>_n(e,t)&&e.href===t.href);EP.displayName="MarkdownA";var SP=A.memo(({children:e,className:t,node:n,...r})=>p.jsx("h1",{className:Nt("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e}),(e,t)=>_n(e,t));SP.displayName="MarkdownH1";var _P=A.memo(({children:e,className:t,node:n,...r})=>p.jsx("h2",{className:Nt("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e}),(e,t)=>_n(e,t));_P.displayName="MarkdownH2";var TP=A.memo(({children:e,className:t,node:n,...r})=>p.jsx("h3",{className:Nt("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e}),(e,t)=>_n(e,t));TP.displayName="MarkdownH3";var wP=A.memo(({children:e,className:t,node:n,...r})=>p.jsx("h4",{className:Nt("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e}),(e,t)=>_n(e,t));wP.displayName="MarkdownH4";var AP=A.memo(({children:e,className:t,node:n,...r})=>p.jsx("h5",{className:Nt("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e}),(e,t)=>_n(e,t));AP.displayName="MarkdownH5";var CP=A.memo(({children:e,className:t,node:n,...r})=>p.jsx("h6",{className:Nt("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e}),(e,t)=>_n(e,t));CP.displayName="MarkdownH6";var kP=A.memo(({children:e,className:t,node:n,...r})=>{let a=A.useContext(H4),i=kb(a,"table");return p.jsxs("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[i&&p.jsxs("div",{className:"flex items-center justify-end gap-1",children:[p.jsx(Ale,{}),p.jsx(Cle,{})]}),p.jsx("div",{className:"overflow-x-auto",children:p.jsx("table",{className:Nt("w-full border-collapse border border-border",t),"data-streamdown":"table",...r,children:e})})]})},(e,t)=>_n(e,t));kP.displayName="MarkdownTable";var NP=A.memo(({children:e,className:t,node:n,...r})=>p.jsx("thead",{className:Nt("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e}),(e,t)=>_n(e,t));NP.displayName="MarkdownThead";var PP=A.memo(({children:e,className:t,node:n,...r})=>p.jsx("tbody",{className:Nt("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...r,children:e}),(e,t)=>_n(e,t));PP.displayName="MarkdownTbody";var RP=A.memo(({children:e,className:t,node:n,...r})=>p.jsx("tr",{className:Nt("border-border border-b",t),"data-streamdown":"table-row",...r,children:e}),(e,t)=>_n(e,t));RP.displayName="MarkdownTr";var OP=A.memo(({children:e,className:t,node:n,...r})=>p.jsx("th",{className:Nt("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e}),(e,t)=>_n(e,t));OP.displayName="MarkdownTh";var MP=A.memo(({children:e,className:t,node:n,...r})=>p.jsx("td",{className:Nt("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e}),(e,t)=>_n(e,t));MP.displayName="MarkdownTd";var DP=A.memo(({children:e,className:t,node:n,...r})=>
955p.jsx("blockquote",{className:Nt("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e}),(e,t)=>_n(e,t));DP.displayName="MarkdownBlockquote";var IP=A.memo(({children:e,className:t,node:n,...r})=>p.jsx("sup",{className:Nt("text-sm",t),"data-streamdown":"superscript",...r,children:e}),(e,t)=>_n(e,t));IP.displayName="MarkdownSup";var LP=A.memo(({children:e,className:t,node:n,...r})=>p.jsx("sub",{className:Nt("text-sm",t),"data-streamdown":"subscript",...r,children:e}),(e,t)=>_n(e,t));LP.displayName="MarkdownSub";var jP=A.memo(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let a=l=>{var u,c;if(!A.isValidElement(l))return!1;let f=Array.isArray(l.props.children)?l.props.children:[l.props.children],g=!1,h=!1;for(let x of f)if(x){if(typeof x=="string")x.trim()!==""&&(g=!0);else if(A.isValidElement(x))if(((u=x.props)==null?void 0:u["data-footnote-backref"])!==void 0)h=!0;else{let b=Array.isArray(x.props.children)?x.props.children:[x.props.children];for(let E of b){if(typeof E=="string"&&E.trim()!==""){g=!0;break}if(A.isValidElement(E)&&((c=E.props)==null?void 0:c["data-footnote-backref"])===void 0){g=!0;break}}}}return h&&!g},i=Array.isArray(e)?e.map(l=>{if(!A.isValidElement(l))return l;if(l.type===F4){let u=(Array.isArray(l.props.children)?l.props.children:[l.props.children]).filter(c=>!a(c));return u.length===0?null:{...l,props:{...l.props,children:u}}}return l}):e;return(Array.isArray(i)?i.some(l=>l!==null):i!==null)?p.jsx("section",{className:t,...r,children:i}):null}return p.jsx("section",{className:t,...r,children:e})},(e,t)=>_n(e,t));jP.displayName="MarkdownSection";var Nle=({node:e,className:t,children:n,...r})=>{var a,i,l;let u=((a=e?.position)==null?void 0:a.start.line)===((i=e?.position)==null?void 0:i.end.line),c=A.useContext(qP),f=A.useContext(H4);if(u)return p.jsx("code",{className:Nt("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let g=t?.match(kle),h=(l=g?.at(1))!=null?l:"",x="";if(A.isValidElement(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?x=n.props.children:typeof n=="string"&&(x=n),h==="mermaid"){let E=kb(f,"mermaid");return p.jsxs("div",{className:Nt("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[E&&p.jsxs("div",{className:"flex items-center justify-end gap-2",children:[p.jsx(e_,{code:x,language:h}),p.jsx(t_,{code:x})]}),p.jsx(wle,{chart:x,config:c})]})}let b=kb(f,"code");return p.jsx(Sle,{className:Nt("overflow-x-auto border-t",t),code:x,"data-language":h,"data-streamdown":"code-block",language:h,preClassName:"overflow-x-auto font-mono text-xs p-4 bg-muted/40",children:b&&p.jsxs(p.Fragment,{children:[p.jsx(e_,{code:x,language:h}),p.jsx(t_,{})]})})},BP=A.memo(Nle,(e,t)=>e.className===t.className&&xm(e.node,t.node));BP.displayName="MarkdownCode";var zP=A.memo(_le,(e,t)=>e.className===t.className&&xm(e.node,t.node));zP.displayName="MarkdownImg";var FP=A.memo(({children:e,className:t,node:n,...r})=>{var a;let i=(Array.isArray(e)?e:[e]).filter(l=>l!=null&&l!=="");return i.length===1&&A.isValidElement(i[0])&&((a=i[0].props.node)==null?void 0:a.tagName)==="img"?p.jsx(p.Fragment,{children:e}):p.jsx("p",{className:t,...r,children:e})},(e,t)=>_n(e,t));FP.displayName="MarkdownParagraph";var Ple={ol:F4,li:xP,ul:bP,hr:yP,strong:vP,a:EP,h1:SP,h2:_P,h3:TP,h4:wP,h5:AP,h6:CP,table:kP,thead:NP,tbody:PP,tr:RP,th:OP,td:MP,blockquote:DP,code:BP,img:zP,pre:({children:e})=>e,sup:IP,sub:LP,p:FP,section:jP},Rle=e=>{let t=/\[\^[^\]\s]{1,200}\](?!:)/.test(e),n=/\[\^[^\]\s]{1,200}\]:/.test(e);if(t||n)return[e];let r=Oa.lex(e,{gfm:!0}),a=[],i=[];for(let l=0;l<r.length;l++){let u=r[l],c=u.raw;if(i.length>0){if(a[a.length-1]+=c,u.type==="html"){let f=c.match(/<\/(\w+)>/);if(f){let g=f[1];i[i.length-1]===g&&i.pop()}}continue}if(u.type==="html"&&u.block){let f=c.match(/<(\w+)[\s>]/);if(f){let g=f[1];c.includes(`</${g}>`)||i.push(g)}}if(c.trim()==="$$"&&a.length>0){let f=a.at(-1);if(!f){a.push(c);continue}let g=f.trimStart().startsWith("$$"),h=(f.match(/\$\$/g)||[]).length;if(g&&h%2===1){a[a.length-1]=f+c;continue}}if(a.length>0&&c.trimEnd().endsWith("$$")){let f=a.at(-1);if(!f){a.push(c);continue}let g=f.trimStart().startsWith("$$"),h=(f.match(/\$\$/g)||[]).length,x=(c.match(/\$\$/g)||[]).length;if(g&&h%2===1&&!c.trimStart().startsWith("$$")&&x===1){a[a.length-1]=f+c;continue}}a.push(c)}return a},Ole=/(!?\[)([^\]]*?)$/,Mle=/(\*\*)([^*]*?)$/,Dle=/(__)([^_]*?)$/,Ile=/(\*\*\*)([^*]*?)$/,Lle=/(\*)([^*]*?)$/,jle=/(_)([^_]*?)$/,Ble=/(`)([^`]*?)$/,zle=/(~~)([^~]*?)$/,bm=e=>{let t=(e.match(/```/g)||[]).length;return t>0&&t%2===0&&e.includes(`
956`)},Fle=e=>{let t=/(!?)\[([^\]]+)\]\(([^)]+)$/,n=e.match(t);if(n){let a=n[1]==="!",i=n[2],l=n[3],u=e.lastIndexOf(`${a?"!":""}[${i}](${l}`),c=e.substring(0,u);return a?c:`${c}[${i}](streamdown:incomplete-link)`}let r=e.match(Ole);if(r){if(r[1].startsWith("!")){let a=e.lastIndexOf(r[1]);return e.substring(0,a)}return`${e}
956](streamdown:incomplete-link)`}return e},Hle=e=>{if(bm(e))return e;let t=e.match(Mle);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;let r=e.lastIndexOf(t[1]),a=e.substring(0,r).lastIndexOf(`
957`),i=a===-1?0:a+1,l=e.substring(i,r);if(/^[\s]*[-*+][\s]+$/.test(l)&&n.includes(`
958`))return e;if((e.match(/\*\*/g)||[]).length%2===1)return`${e}**`}return e},Ule=e=>{let t=e.match(Dle);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;let r=e.lastIndexOf(t[1]),a=e.substring(0,r).lastIndexOf(`
959`),i=a===-1?0:a+1,l=e.substring(i,r);if(/^[\s]*[-*+][\s]+$/.test(l)&&n.includes(`
960`))return e;if((e.match(/__/g)||[]).length%2===1)return`${e}__`}return e},qle=e=>e.split("").reduce((t,n,r)=>{if(n==="*"){let a=e[r-1],i=e[r+1];if(a==="\\")return t;let l=r;for(let u=r-1;u>=0;u--){if(e[u]===`
961`){l=u+1;break}if(u===0){l=0;break}}if(e.substring(l,r).trim()===""&&(i===" "||i==="	"))return t;if(a!=="*"&&i!=="*")return t+1}return t},0),$le=e=>{if(bm(e))return e;if(e.match(Lle)){let t=-1;for(let r=0;r<e.length;r++)if(e[r]==="*"&&e[r-1]!=="*"&&e[r+1]!=="*"){t=r;break}if(t===-1)return e;let n=e.substring(t+1);if(!n||/^[\s_~*`]*$/.test(n))return e;if(qle(e)%2===1)return`${e}*`}return e},HP=(e,t)=>{let n=!1,r=!1;for(let a=0;a<e.length&&a<t;a++){if(e[a]==="\\"&&e[a+1]==="$"){a++;continue}e[a]==="$"&&(e[a+1]==="$"?(r=!r,a++,n=!1):r||(n=!n))}return n||r},Vle=e=>e.split("").reduce((t,n,r)=>{if(n==="_"){let a=e[r-1],i=e[r+1];if(a==="\\"||HP(e,r)||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),Gle=e=>{if(bm(e))return e;if(e.match(jle)){let t=-1;for(let r=0;r<e.length;r++)if(e[r]==="_"&&e[r-1]!=="_"&&e[r+1]!=="_"&&e[r-1]!=="\\"&&!HP(e,r)){let a=r>0?e[r-1]:"",i=r<e.length-1?e[r+1]:"";if(a&&i&&/[\p{L}\p{N}_]/u.test(a)&&/[\p{L}\p{N}_]/u.test(i))continue;t=r;break}if(t===-1)return e;let n=e.substring(t+1);if(!n||/^[\s_~*`]*$/.test(n))return e;if(Vle(e)%2===1){let r=e.match(/\n+$/);return r?`${e.slice(0,-r[0].length)}_${r[0]}`:`${e}_`}}return e},Yle=(e,t)=>{let n=e.substring(t,t+3)==="```",r=t>0&&e.substring(t-1,t+2)==="```",a=t>1&&e.substring(t-2,t+1)==="```";return n||r||a},Qle=e=>{let t=0;for(let n=0;n<e.length;n++)e[n]==="`"&&!Yle(e,n)&&t++;return t},Xle=e=>{if(e.match(/^```[^`\n]*```?$/)&&!e.includes(`
962`))return e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e;let t=(e.match(/```/g)||[]).length,n=t%2===1;if(t>0&&t%2===0&&e.includes(`
963`)||(e.endsWith("```\n")||e.endsWith("```"))&&t%2===0)return e;let r=e.match(Ble);if(r&&!n){let a=r[2];if(!a||/^[\s_~*`]*$/.test(a))return e;if(Qle(e)%2===1)return`${e}\``}return e},Kle=e=>{let t=e.match(zle);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;if((e.match(/~~/g)||[]).length%2===1)return`${e}~~`}return e},Wle=e=>{if((e.match(/\$\$/g)||[]).length%2===0)return e;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
964`,t)!==-1&&!e.endsWith(`
965`)?`${e}
966$$`:`${e}$$`},Zle=e=>{let t=0,n=e.match(/\*+/g)||[];for(let r of n){let a=r.length;a>=3&&(t+=Math.floor(a/3))}return t},Jle=e=>{if(bm(e)||/^\*{4,}$/.test(e))return e;let t=e.match(Ile);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;if(Zle(e)%2===1)return`${e}***`}return e},eoe=e=>{if(!e||typeof e!="string")return e;let t=e,n=Fle(t);return n.endsWith("](streamdown:incomplete-link)")?n:(t=n,t=Jle(t),t=Hle(t),t=Ule(t),t=$le(t),t=Gle(t),t=Xle(t),t=Kle(t),t=Wle(t),t)},toe={harden:[$te,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],defaultOrigin:void 0,allowDataImages:!0}],raw:TJ,katex:[dK,{errorColor:"var(--color-muted-foreground)"}]},noe={gfm:[Ote,{}],math:[qte,{singleDollarTextMath:!1}]},UP=A.createContext(["github-light","github-dark"]),qP=A.createContext(void 0),H4=A.createContext(!0),Ed=A.createContext({isAnimating:!1}),$P=A.memo(({content:e,shouldParseIncompleteMarkdown:t,...n})=>{let r=A.useMemo(()=>typeof e=="string"&&t?eoe(e.trim()):e,[e,t]);return p.jsx(BY,{...n,children:r})},(e,t)=>e.content===t.content);$P.displayName="Block";var U4=A.memo(({children:e,parseIncompleteMarkdown:t=!0,components:n,rehypePlugins:r=Object.values(toe),remarkPlugins:a=Object.values(noe),className:i,shikiTheme:l=["github-light","github-dark"],mermaidConfig:u,controls:c=!0,isAnimating:f=!1,...g})=>{let h=A.useId(),x=A.useMemo(()=>Rle(typeof e=="string"?e:""),[e]);return p.jsx(UP.Provider,{value:l,children:p.jsx(qP.Provider,{value:u,children:p.jsx(H4.Provider,{value:c,children:p.jsx(Ed.Provider,{value:{isAnimating:f},children:p.jsx("div",{className:Nt("space-y-4",i),children:x.map((b,E)=>p.jsx($P,{components:{...Ple,...n},content:b,rehypePlugins:r,remarkPlugins:a,shouldParseIncompleteMarkdown:t,...g},`${h}-block-${E}`))})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating);U4.displayName="Streamdown";const roe=["كيف أحسب كمية الخرسانة لأساس 10×8 متر؟","ما هي أفضل أنواع العزل الحراري للمناخ العراقي؟","كيف أقدر تكلفة بناء منزل 200 متر مربع؟","ما هي نسب خلط الخرسانة الصحيحة؟","كيف أحسب كمية الحديد للسقف؟","ما الفرق بين الأساس العادي والأساس الشريطي؟"];function aoe(){const{isAuthenticated:e}=Za(),[t,n]=A.useState(""),[r,a]=A.useState("none"),[i,l]=A.useState([]),[u,c]=A.useState(!1),f=A.useRef(null),g=A.useRef(null),{data:h}=Dt.projects.list.useQuery(void 0,{enabled:e}),{data:x}=Dt.assistant.history.useQuery({projectId:r!=="none"?parseInt(r):void 0},{enabled:e}),b=Dt.assistant.chat.useMutation({onSuccess:w=>{l(N=>[...N,{role:"assistant",content:w.reply}]),c(!1)},onError:()=>{Ct.error("فشل إرسال الرسالة"),c(!1)}}),E=[...(x??[]).map(w=>({role:w.role,content:w.content})),...i];A.useEffect(()=>{f.current?.scrollIntoView({behavior:"smooth"})},[E,u]);const _=w=>{if(!(!w.trim()||u)){if(!e){Ct.error("يجب تسجيل الدخول أولاً");return}l(N=>[...N,{role:"user",content:w}]),n(""),c(!0),b.mutate({message:w,projectId:r!=="none"?parseInt(r):void 0})}},C=w=>{w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),_(t))};return e?p.jsx(mr,{"data-loc":"client/src/pages/AssistantPage.tsx:92",children:p.jsxs("div",{"data-loc":"client/src/pages/AssistantPage.tsx:93",className:"flex flex-col h-[calc(100vh-64px)] lg:h-screen",children:[p.jsxs("div",{"data-loc":"client/src/pages/AssistantPage.tsx:95",className:"flex items-center justify-between px-4 py-3 border-b border-border bg-background/90 backdrop-blur-sm",children:[p.jsxs("div",{"data-loc":"client/src/pages/AssistantPage.tsx:96",className:"flex items-center gap-2",children:[p.jsx("div",{"data-loc":"client/src/pages/AssistantPage.tsx:97",className:"w-8 h-8 rounded-xl bg-primary/10 flex items-center justify-center",children:p.jsx(Ji,{"data-loc":"client/src/pages/AssistantPage.tsx:98",size:16,className:"text-primary"})}),p.jsxs("div",{"data-loc":"client/src/pages/AssistantPage.tsx:100",children:[p.jsx("h1",{"data-loc":"client/src/pages/AssistantPage.tsx:101",className:"font-bold text-sm",children:"المساعد الذكي"}),p.jsx("p",{"data-loc":"client/src/pages/AssistantPage.tsx:102",className:"text-xs text-muted-foreground",children:"متخصص في البناء والمقاولات"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/AssistantPage.tsx:105",className:"flex items-center gap-2",children:[h&&h.length>0&&p.jsxs(Hn,{"data-loc":"client/src/pages/AssistantPage.tsx:107",value:r,onValueChange:a,children:[p.jsx(qn,{"data-loc":"client/src/pages/AssistantPage.tsx:108",className:"w-44 h-8 text-xs",children:p.jsx(Un,{"data-loc":"client/src/pages/AssistantPage.tsx:109",placeholder:"ربط بمشروع"})}),p.jsxs($n,{"data-loc":"client/src/pages/AssistantPage.tsx:111",children:[p.jsx(Rt,{"data-loc":"client/src/pages/AssistantPage.tsx:112",value:"none",children:"بدون مشروع"}),h.map(w=>p.jsx(Rt,{"data-loc":"client/src/pages/AssistantPage.tsx:113",value:String(w.id),children:w.name},w.id))]})]}),p.jsxs(tt,{"data-loc":"client/src/pages/AssistantPage.tsx:117",variant:"ghost",size:"sm",className:"h-8 gap-1.5 text-xs text-muted-foreground",onClick:()=>l([]),children:[p.jsx(ad,{"data-loc":"client/src/pages/AssistantPage.tsx:118",size:13}),"مسح"]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/AssistantPage.tsx:124",className:"flex-1 overflow-y-auto px-4 py-4 space-y-4",children:[E.length===0&&p.jsxs("div",{"data-loc":"client/src/pages/AssistantPage.tsx:126",className:"flex flex-col items-center justify-center h-full text-center px-4",children:[p.jsx("div",{"data-loc":"client/src/pages/AssistantPage.tsx:127",className:"w-16 h-16 rounded-2xl bg-primary/10 flex items-center justify-center mb-4",children:p.jsx(Ji,{"data-loc":"client/src/pages/AssistantPage.tsx:128",size:28,className:"text-primary"})}),p.jsx("h2",{"data-loc":"client/src/pages/AssistantPage.tsx:130",className:"text-xl font-bold mb-2",children:"مرحباً! أنا مساعدك الذكي"}),p.jsx("p",{"data-loc":"client/src/pages/AssistantPage.tsx:131",className:"text-muted-foreground text-sm max-w-sm mb-6",children:"أنا متخصص في البناء والمقاولات. اسألني عن الحسابات الهندسية، المواد، التكاليف، أو أي شيء يخص مشاريعك."}),p.jsx("div",{"data-loc":"client/src/pages/AssistantPage.tsx:134",className:"grid grid-cols-1 sm:grid-cols-2 gap-2 w-full max-w-lg",children:roe.map(w=>p.jsx("button",{"data-loc":"client/src/pages/AssistantPage.tsx:136",onClick:()=>_(w),className:"text-right text-sm bg-muted/50 hover:bg-muted rounded-xl px-4 py-3 transition-colors border border-border hover:border-primary/30",children:w}
966,w))})]}),E.map((w,N)=>p.jsxs("div",{"data-loc":"client/src/pages/AssistantPage.tsx:149",className:kt("flex gap-3",w.role==="user"?"flex-row-reverse":"flex-row"),children:[p.jsx("div",{"data-loc":"client/src/pages/AssistantPage.tsx:150",className:kt("w-8 h-8 rounded-xl flex items-center justify-center shrink-0 mt-1",w.role==="user"?"bg-primary text-primary-foreground":"bg-muted"),children:w.role==="user"?p.jsx(vw,{"data-loc":"client/src/pages/AssistantPage.tsx:154",size:15}):p.jsx(Ji,{"data-loc":"client/src/pages/AssistantPage.tsx:154",size:15,className:"text-primary"})}),p.jsx("div",{"data-loc":"client/src/pages/AssistantPage.tsx:156",className:kt("max-w-[80%] rounded-2xl px-4 py-3 text-sm",w.role==="user"?"bg-primary text-primary-foreground rounded-tl-sm":"bg-muted text-foreground rounded-tr-sm"),children:w.role==="assistant"?p.jsx(U4,{"data-loc":"client/src/pages/AssistantPage.tsx:163",className:"prose prose-sm dark:prose-invert max-w-none [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:w.content}):p.jsx("p",{"data-loc":"client/src/pages/AssistantPage.tsx:167",className:"leading-relaxed",children:w.content})})]},N)),u&&p.jsxs("div",{"data-loc":"client/src/pages/AssistantPage.tsx:174",className:"flex gap-3",children:[p.jsx("div",{"data-loc":"client/src/pages/AssistantPage.tsx:175",className:"w-8 h-8 rounded-xl bg-muted flex items-center justify-center shrink-0",children:p.jsx(Ji,{"data-loc":"client/src/pages/AssistantPage.tsx:176",size:15,className:"text-primary"})}),p.jsx("div",{"data-loc":"client/src/pages/AssistantPage.tsx:178",className:"bg-muted rounded-2xl rounded-tr-sm px-4 py-3",children:p.jsxs("div",{"data-loc":"client/src/pages/AssistantPage.tsx:179",className:"flex gap-1.5 items-center",children:[p.jsx("div",{"data-loc":"client/src/pages/AssistantPage.tsx:180",className:"w-2 h-2 bg-primary/60 rounded-full animate-bounce",style:{animationDelay:"0ms"}}),p.jsx("div",{"data-loc":"client/src/pages/AssistantPage.tsx:181",className:"w-2 h-2 bg-primary/60 rounded-full animate-bounce",style:{animationDelay:"150ms"}}),p.jsx("div",{"data-loc":"client/src/pages/AssistantPage.tsx:182",className:"w-2 h-2 bg-primary/60 rounded-full animate-bounce",style:{animationDelay:"300ms"}})]})})]}),p.jsx("div",{"data-loc":"client/src/pages/AssistantPage.tsx:187",ref:f})]}),p.jsxs("div",{"data-loc":"client/src/pages/AssistantPage.tsx:191",className:"p-4 border-t border-border bg-background/90 backdrop-blur-sm",children:[r!=="none"&&p.jsx("div",{"data-loc":"client/src/pages/AssistantPage.tsx:193",className:"mb-2",children:p.jsxs(Sn,{"data-loc":"client/src/pages/AssistantPage.tsx:194",variant:"outline",className:"text-xs gap-1 border-primary/30 text-primary",children:[p.jsx(xF,{"data-loc":"client/src/pages/AssistantPage.tsx:195",size:10}),"مرتبط بمشروع: ",h?.find(w=>String(w.id)===r)?.name]})}),p.jsxs("div",{"data-loc":"client/src/pages/AssistantPage.tsx:200",className:"flex gap-2 items-end",children:[p.jsx(Y9,{"data-loc":"client/src/pages/AssistantPage.tsx:201",ref:g,value:t,onChange:w=>n(w.target.value),onKeyDown:C,placeholder:"اكتب سؤالك هنا... (Enter للإرسال، Shift+Enter لسطر جديد)",className:"flex-1 min-h-[44px] max-h-32 resize-none text-sm",rows:1}),p.jsx(tt,{"data-loc":"client/src/pages/AssistantPage.tsx:210",size:"icon",className:"h-11 w-11 shrink-0",onClick:()=>_(t),disabled:!t.trim()||u,children:u?p.jsx(ry,{"data-loc":"client/src/pages/AssistantPage.tsx:216",size:16,className:"animate-spin"}):p.jsx(SF,{"data-loc":"client/src/pages/AssistantPage.tsx:216",size:16})})]}),p.jsx("p",{"data-loc":"client/src/pages/AssistantPage.tsx:219",className:"text-xs text-muted-foreground mt-2 text-center",children:"المساعد الذكي قد يخطئ — تحقق دائماً من المعلومات المهمة"})]})]})}):p.jsx(mr,{"data-loc":"client/src/pages/AssistantPage.tsx:78",children:p.jsx("div",{"data-loc":"client/src/pages/AssistantPage.tsx:79",className:"flex items-center justify-center h-full p-8",children:p.jsxs("div",{"data-loc":"client/src/pages/AssistantPage.tsx:80",className:"text-center max-w-sm",children:[p.jsx(Ji,{"data-loc":"client/src/pages/AssistantPage.tsx:81",size:48,className:"text-primary mx-auto mb-4"}),p.jsx("h2",{"data-loc":"client/src/pages/AssistantPage.tsx:82",className:"text-xl font-bold mb-2",children:"المساعد الذكي"}),p.jsx("p",{"data-loc":"client/src/pages/AssistantPage.tsx:83",className:"text-muted-foreground mb-4",children:"سجّل دخولك للتحدث مع المساعد"}),p.jsx(tt,{"data-loc":"client/src/pages/AssistantPage.tsx:84",onClick:()=>window.location.href=Zr(),children:"تسجيل الدخول"})]})})})}var VP=["PageUp","PageDown"],GP=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],YP={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},sc="Slider",[Nb,soe,ioe]=gy(sc),[QP]=gi(sc,[ioe]),[loe,ym]=QP(sc),XP=A.forwardRef((e,t)=>
vendor: 4,216 bytes, line 966
966{const{name:n,min:r=0,max:a=100,step:i=1,orientation:l="horizontal",disabled:u=!1,minStepsBetweenThumbs:c=0,defaultValue:f=[r],value:g,onValueChange:h=()=>{},onValueCommit:x=()=>{},inverted:b=!1,form:E,..._}=e,C=A.useRef(new Set),w=A.useRef(0),R=l==="horizontal"?ooe:uoe,[z=[],B]=Iu({prop:g,defaultProp:f,onChange:te=>{[...C.current][w.current]?.focus(),h(te)}}),j=A.useRef(z);function L(te){const ee=poe(z,te);$(te,ee)}function Y(te){$(te,w.current)}function Z(){const te=j.current[w.current];z[w.current]!==te&&x(z)}function $(te,ee,{commit:he}={commit:!1}){const ie=boe(i),ne=yoe(Math.round((te-r)/i)*i+r,ie),H=zh(ne,[r,a]);B((re=[])=>{const J=foe(re,H,ee);if(xoe(J,c*i)){w.current=J.indexOf(H);const Te=String(J)!==String(re);return Te&&he&&x(J),Te?J:re}else return re})}return p.jsx(loe,{scope:e.__scopeSlider,name:n,disabled:u,min:r,max:a,valueIndexToChangeRef:w,thumbs:C.current,values:z,orientation:l,form:E,children:p.jsx(Nb.Provider,{scope:e.__scopeSlider,children:p.jsx(Nb.Slot,{scope:e.__scopeSlider,children:p.jsx(R,{"aria-disabled":u,"data-disabled":u?"":void 0,..._,ref:t,onPointerDown:st(_.onPointerDown,()=>{u||(j.current=z)}),min:r,max:a,inverted:b,onSlideStart:u?void 0:L,onSlideMove:u?void 0:Y,onSlideEnd:u?void 0:Z,onHomeKeyDown:()=>!u&&$(r,0,{commit:!0}),onEndKeyDown:()=>!u&&$(a,z.length-1,{commit:!0}),onStepKeyDown:({event:te,direction:ee})=>{if(!u){const ne=VP.includes(te.key)||te.shiftKey&&GP.includes(te.key)?10:1,H=w.current,re=z[H],J=i*ne*ee;$(re+J,H,{commit:!0})}}})})})})});XP.displayName=sc;var[KP,WP]=QP(sc,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ooe=A.forwardRef((e,t)=>{const{min:n,max:r,dir:a,inverted:i,onSlideStart:l,onSlideMove:u,onSlideEnd:c,onStepKeyDown:f,...g}=e,[h,x]=A.useState(null),b=$t(t,R=>x(R)),E=A.useRef(void 0),_=zp(a),C=_==="ltr",w=C&&!i||!C&&i;function N(R){const z=E.current||h.getBoundingClientRect(),B=[0,z.width],L=q4(B,w?[n,r]:[r,n]);return E.current=z,L(R-z.left)}return p.jsx(KP,{scope:e.__scopeSlider,startEdge:w?"left":"right",endEdge:w?"right":"left",direction:w?1:-1,size:"width",children:p.jsx(ZP,{dir:_,"data-orientation":"horizontal",...g,ref:b,style:{...g.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:R=>{const z=N(R.clientX);l?.(z)},onSlideMove:R=>{const z=N(R.clientX);u?.(z)},onSlideEnd:()=>{E.current=void 0,c?.()},onStepKeyDown:R=>{const B=YP[w?"from-left":"from-right"].includes(R.key);f?.({event:R,direction:B?-1:1})}})})}),uoe=A.forwardRef((e,t)=>{const{min:n,max:r,inverted:a,onSlideStart:i,onSlideMove:l,onSlideEnd:u,onStepKeyDown:c,...f}=e,g=A.useRef(null),h=$t(t,g),x=A.useRef(void 0),b=!a;function E(_){const C=x.current||g.current.getBoundingClientRect(),w=[0,C.height],R=q4(w,b?[r,n]:[n,r]);return x.current=C,R(_-C.top)}return p.jsx(KP,{scope:e.__scopeSlider,startEdge:b?"bottom":"top",endEdge:b?"top":"bottom",size:"height",direction:b?1:-1,children:p.jsx(ZP,{"data-orientation":"vertical",...f,ref:h,style:{...f.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:_=>{const C=E(_.clientY);i?.(C)},onSlideMove:_=>{const C=E(_.clientY);l?.(C)},onSlideEnd:()=>{x.current=void 0,u?.()},onStepKeyDown:_=>{const w=YP[b?"from-bottom":"from-top"].includes(_.key);c?.({event:_,direction:w?-1:1})}})})}),ZP=A.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:a,onSlideEnd:i,onHomeKeyDown:l,onEndKeyDown:u,onStepKeyDown:c,...f}=e,g=ym(sc,n);return p.jsx(dt.span,{...f,ref:t,onKeyDown:st(e.onKeyDown,h=>{h.key==="Home"?(l(h),h.preventDefault()):h.key==="End"?(u(h),h.preventDefault()):VP.concat(GP).includes(h.key)&&(c(h),h.preventDefault())}),onPointerDown:st(e.onPointerDown,h=>{const x=h.target;x.setPointerCapture(h.pointerId),h.preventDefault(),g.thumbs.has(x)?x.focus():r(h)}),onPointerMove:st(e.onPointerMove,h=>{h.target.hasPointerCapture(h.pointerId)&&a(h)}),onPointerUp:st(e.onPointerUp,h=>{const x=h.target;x.hasPointerCapture(h.pointerId)&&(x.releasePointerCapture(h.pointerId),i(h))})})}),JP="SliderTrack",eR=A.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,a=ym(JP,n);return p.jsx(dt.span,{"data-disabled":a.disabled?"":void 0,"data-orientation":a.orientation,...r,ref:t})});eR.displayName=JP;var Pb="SliderRange",tR=A.forwardRef((e,t)=>
966{const{__scopeSlider:n,...r}=e,a=ym(Pb,n),i=WP(Pb,n),l=A.useRef(null),u=$t(t,l),c=a.values.length,f=a.values.map(x=>aR(x,a.min,a.max)),g=c>1?Math.min(...f):0,h=100-Math.max(...f);return p.jsx(dt.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,...r,ref:u,style:{...e.style,[i.startEdge]:g+"%",[i.endEdge]:h+"%"}})});tR.displayName=Pb;var Rb="SliderThumb",nR=A.forwardRef((e,t)=>{const n=soe(e.__scopeSlider),[r,a]=A.useState(null),i=$t(t,u=>a(u)),l=A.useMemo(()=>r?n().findIndex(u=>u.ref.current===r):-1,[n,r]);return p.jsx(coe,{...e,ref:i,index:l})}),coe=A.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:a,...i}=e,l=ym(Rb,n),u=WP(Rb,n),[c,f]=A.useState(null),g=$t(t,N=>f(N)),h=c?l.form||!!c.closest("form"):!0,x=TT(c),b=l.values[r],E=b===void 0?0:aR(b,l.min,l.max),_=hoe(r,l.values.length),C=x?.[u.size],w=C?moe(C,E,u.direction):0;return A.useEffect(()=>{if(c)return l.thumbs.add(c),()=>{l.thumbs.delete(c)}},[c,l.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[u.startEdge]:`calc(${E}% + ${w}px)`},children:[p.jsx(Nb.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(dt.span,{role:"slider","aria-label":e["aria-label"]||_,"aria-valuemin":l.min,"aria-valuenow":b,"aria-valuemax":l.max,"aria-orientation":l.orientation,"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,tabIndex:l.disabled?void 0:0,...i,ref:g,style:b===void 0?{display:"none"}:e.style,onFocus:st(e.onFocus,()=>{l.valueIndexToChangeRef.current=r})})}),h&&p.jsx(rR,{name:a??(l.name?l.name+(l.values.length>1?"[]":""):void 0),form:l.form,value:b},r)]})});nR.displayName=Rb;var doe="RadioBubbleInput",rR=A.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const a=A.useRef(null),i=$t(a,r),l=a9(t);return A.useEffect(()=>{const u=a.current;if(!u)return;const c=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(c,"value").set;if(l!==t&&g){const h=new Event("input",{bubbles:!0});g.call(u,t),u.dispatchEvent(h)}},[l,t]),p.jsx(dt.input,{style:{display:"none"},...n,ref:i,defaultValue:t})});rR.displayName=doe;function foe(e=[],t,n){const r=[...e];return r[n]=t,r.sort((a,i)=>a-i)}function aR(e,t,n){const i=100/(n-t)*(e-t);return zh(i,[0,100])}function hoe(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function poe(e,t){if(e.length===1)return 0;const n=e.map(a=>Math.abs(a-t)),r=Math.min(...n);return n.indexOf(r)}function moe(e,t,n){const r=e/2,i=q4([0,50],[0,r]);return(r-i(t)*n)*n}function goe(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function xoe(e,t){if(t>0){const n=goe(e);return Math.min(...n)>=t}return!0}function q4(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function boe(e){return(String(e).split(".")[1]||"").length}function yoe(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var voe=XP,Eoe=eR,Soe=tR,_oe=nR;function n_({className:e,defaultValue:t,value:n,min:r=0,max:a=100,...i}){const l=A.useMemo(()=>Array.isArray(n)?n:Array.isArray(t)?t:[r,a],[n,t,r,a]);return p.jsxs(voe,{"data-loc":"client/src/components/ui/slider.tsx:25","data-slot":"slider",defaultValue:t,value:n,min:r,max:a,className:kt("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",e),...i,children:[p.jsx(Eoe,{"data-loc":"client/src/components/ui/slider.tsx:37","data-slot":"slider-track",className:kt("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:p.jsx(Soe,{"data-loc":"client/src/components/ui/slider.tsx:43","data-slot":"slider-range",className:kt("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:l.length},(u,c)=>p.jsx(_oe,{"data-loc":"client/src/components/ui/slider.tsx:51","data-slot":"slider-thumb",className:"border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},c))]})}const Toe=[{key:"iraqi",label:"العراقي التقليدي",desc:"فناء داخلي (حوش) ومجلس منفصل للضيوف",icon:"🏛️"},{key:"eastern",label:"الشرقي الإسلامي",desc:"مشربيات وأقواس وخصوصية بصرية عالية",icon:"🕌"},{key:"modern",label:"الحديث المعاصر",desc:"مساحات مفتوحة وواجهات زجاجية",icon:"🏢"}
966],woe={N:"شمال",S:"جنوب",E:"شرق",W:"غرب"};function Aoe(){const{isAuthenticated:e}=Za(),[t,n]=A.useState("iraqi"),[r,a]=A.useState(1),[i,l]=A.useState(3),[u,c]=A.useState("none"),[f,g]=A.useState("200"),[h,x]=A.useState(""),[b,E]=A.useState(""),[_,C]=A.useState("medium"),[w,N]=A.useState("none"),[R,z]=A.useState(null),[B,j]=A.useState(null),[L,Y]=A.useState(!1),{data:Z}=Dt.subscription.status.useQuery(void 0,{enabled:e}),$=Z?.tier==="premium",{data:te}=Dt.measurements.list.useQuery(void 0,{enabled:e}),ee=A.useMemo(()=>te?.find(ne=>String(ne.id)===u),[te,u]),he=Dt.floorPlans.generate.useMutation({onSuccess:ne=>{const H=ne.generatedOptions;H?.options&&Array.isArray(H.options)?(j(H.options),z(null)):typeof H=="string"?(z(H),j(null)):H?.plan||H?.description?(z(H.plan??H.description),j(null)):(z(JSON.stringify(H,null,2)),j(null)),Y(!1),Ct.success("تم توليد المخططات بنجاح!")},onError:ne=>{Ct.error(ne.message||"فشل توليد المخطط"),Y(!1)}}),ie=()=>{if(!e){Ct.error("يجب تسجيل الدخول");return}if(!$){Ct.error("هذه الميزة للمشتركين المميزين فقط");return}Y(!0),j(null),z(null);const ne=w!=="none"?w:ee?.streetSide??void 0;he.mutate({style:t,floors:r,rooms:i,measurementId:u!=="none"?Number(u):void 0,buildingAreaM2:f?Number(f):void 0,livingRoomDims:h||void 0,receptionRoomDims:b||void 0,privacyLevel:_,streetSide:ne})};return p.jsx(mr,{"data-loc":"client/src/pages/FloorPlansPage.tsx:109",children:p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:110",className:"p-6 max-w-6xl mx-auto",children:[p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:111",className:"flex items-center gap-2 mb-2",children:[p.jsx(B0,{"data-loc":"client/src/pages/FloorPlansPage.tsx:112",size:20,className:"text-primary"}),p.jsx("h1",{"data-loc":"client/src/pages/FloorPlansPage.tsx:113",className:"text-2xl font-black",children:"توليد خرائط البناء الذكية"}),p.jsxs(Sn,{"data-loc":"client/src/pages/FloorPlansPage.tsx:114",className:"bg-amber-500/10 text-amber-600 border-amber-500/30 gap-1",children:[p.jsx(Ya,{"data-loc":"client/src/pages/FloorPlansPage.tsx:115",size:11}),"مميز"]})]}),p.jsx("p",{"data-loc":"client/src/pages/FloorPlansPage.tsx:118",className:"text-muted-foreground text-sm mb-6",children:"مخططات تراعي مساحة قطعتك واتجاه الشارع والشمس ومتطلبات الخصوصية"}),!$&&e&&p.jsx(Ot,{"data-loc":"client/src/pages/FloorPlansPage.tsx:123",className:"border-amber-500/30 bg-amber-500/5 mb-6",children:p.jsxs(Mt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:124",className:"p-4 flex items-center justify-between flex-wrap gap-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:125",className:"flex items-center gap-3",children:[p.jsx(Ya,{"data-loc":"client/src/pages/FloorPlansPage.tsx:126",size:20,className:"text-amber-500"}),p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:127",children:[p.jsx("p",{"data-loc":"client/src/pages/FloorPlansPage.tsx:128",className:"font-semibold text-sm",children:"هذه الميزة للمشتركين المميزين"}),p.jsx("p",{"data-loc":"client/src/pages/FloorPlansPage.tsx:129",className:"text-xs text-muted-foreground",children:"اشترك للوصول إلى توليد الخرائط الذكية"})]})]}),p.jsx(Sr,{"data-loc":"client/src/pages/FloorPlansPage.tsx:132",href:"/subscription",children:p.jsxs(tt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:133",size:"sm",className:"gap-1.5",children:[p.jsx(Ya,{"data-loc":"client/src/pages/FloorPlansPage.tsx:133",size:13}),"اشترك الآن"]})})]})}),p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:139",className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:141",className:"space-y-5",children:[p.jsxs(Ot,{"data-loc":"client/src/pages/FloorPlansPage.tsx:143",className:"border-primary/20 bg-primary/5",children:[p.jsx(Pn,{"data-loc":"client/src/pages/FloorPlansPage.tsx:144",className:"pb-3",children:p.jsxs(Rn,{"data-loc":"client/src/pages/FloorPlansPage.tsx:145",className:"text-sm flex items-center gap-2",children:[p.jsx(wu,{"data-loc":"client/src/pages/FloorPlansPage.tsx:146",size:15,className:"text-primary"}),"القطعة المحفوظة"]})}),p.jsxs(Mt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:149",className:"space-y-3",children:[p.jsxs(Hn,{"data-loc":"client/src/pages/FloorPlansPage.tsx:150",value:u,onValueChange:c,children:[p.jsx(qn,{"data-loc":"client/src/pages/FloorPlansPage.tsx:151",className:"h-9",children:p.jsx(Un,{"data-loc":"client/src/pages/FloorPlansPage.tsx:152",placeholder:"اختر قطعة محفوظة (اختياري)"})}),p.jsxs($n,{"data-loc":"client/src/pages/FloorPlansPage.tsx:154",children:[p.jsx(Rt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:155",value:"none",children:"بدون قطعة (إدخال يدوي)"}),te?.map(ne=>p.jsxs(Rt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:157",value:String(ne.id),children:[ne.name," — ",Number(ne.areaM2).toLocaleStr
966ing("ar-IQ",{maximumFractionDigits:0})," م²"]},ne.id))]})]}),ee&&p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:164",className:"flex flex-wrap gap-2 text-xs",children:[p.jsxs("span",{"data-loc":"client/src/pages/FloorPlansPage.tsx:165",className:"bg-white border border-primary/20 rounded-full px-2.5 py-1",children:["المساحة: ",Number(ee.areaM2).toLocaleString("ar-IQ",{maximumFractionDigits:0})," م²"]}),ee.streetSide&&p.jsxs("span",{"data-loc":"client/src/pages/FloorPlansPage.tsx:169",className:"bg-white border border-primary/20 rounded-full px-2.5 py-1 flex items-center gap-1",children:[p.jsx(Tx,{"data-loc":"client/src/pages/FloorPlansPage.tsx:170",size:11}),"الشارع: ",woe[ee.streetSide]??ee.streetSide]})]}),p.jsx(Sr,{"data-loc":"client/src/pages/FloorPlansPage.tsx:175",href:"/map",children:p.jsxs(tt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:176",variant:"outline",size:"sm",className:"w-full bg-white gap-1.5 h-8 text-xs",children:[p.jsx(wu,{"data-loc":"client/src/pages/FloorPlansPage.tsx:177",size:12}),"قياس قطعة جديدة على الخريطة"]})})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:184",children:[p.jsx(et,{"data-loc":"client/src/pages/FloorPlansPage.tsx:185",className:"font-semibold mb-3 block",children:"الطراز المعماري"}),p.jsx("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:186",className:"grid grid-cols-1 gap-3",children:Toe.map(ne=>p.jsx("button",{"data-loc":"client/src/pages/FloorPlansPage.tsx:188",onClick:()=>n(ne.key),className:`text-right p-3.5 rounded-2xl border-2 transition-all duration-150 ${t===ne.key?"border-primary bg-primary/5":"border-border hover:border-primary/40 bg-card"}`,children:p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:193",className:"flex items-center gap-3",children:[p.jsx("span",{"data-loc":"client/src/pages/FloorPlansPage.tsx:194",className:"text-2xl",children:ne.icon}),p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:195",className:"flex-1",children:[p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:196",className:"flex items-center gap-2",children:[p.jsx("span",{"data-loc":"client/src/pages/FloorPlansPage.tsx:197",className:"font-bold text-sm",children:ne.label}),t===ne.key&&p.jsx(Sn,{"data-loc":"client/src/pages/FloorPlansPage.tsx:198",className:"text-xs h-4 px-1.5",children:"محدد"})]}),p.jsx("p",{"data-loc":"client/src/pages/FloorPlansPage.tsx:200",className:"text-xs text-muted-foreground mt-0.5",children:ne.desc})]})]})},ne.key))})]}),p.jsxs(Ot,{"data-loc":"client/src/pages/FloorPlansPage.tsx:209",children:[p.jsx(Pn,{"data-loc":"client/src/pages/FloorPlansPage.tsx:210",className:"pb-3",children:p.jsx(Rn,{"data-loc":"client/src/pages/FloorPlansPage.tsx:210",className:"text-sm",children:"مواصفات المبنى"})}),p.jsxs(Mt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:211",className:"space-y-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:212",children:[p.jsxs(et,{"data-loc":"client/src/pages/FloorPlansPage.tsx:213",className:"text-xs flex justify-between mb-2",children:[p.jsx("span",{"data-loc":"client/src/pages/FloorPlansPage.tsx:214",children:"عدد الطوابق"}),p.jsx("span",{"data-loc":"client/src/pages/FloorPlansPage.tsx:214",className:"font-bold text-primary",children:r})]}),p.jsx(n_,{"data-loc":"client/src/pages/FloorPlansPage.tsx:216",value:[r],onValueChange:([ne])=>a(ne),min:1,max:4,step:1})]}),p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:218",children:[p.jsxs(et,{"data-loc":"client/src/pages/FloorPlansPage.tsx:219",className:"text-xs flex justify-between mb-2",children:[p.jsx("span",{"data-loc":"client/src/pages/FloorPlansPage.tsx:220",children:"عدد الغرف"}),p.jsx("span",{"data-loc":"client/src/pages/FloorPlansPage.tsx:220",className:"font-bold text-primary",children:i})]}),p.jsx(n_,{"data-loc":"client/src/pages/FloorPlansPage.tsx:222",value:[i],onValueChange:([ne])=>l(ne),min:1,max:10,step:1})]}),p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:224",children:[p.jsx(et,{"data-loc":"client/src/pages/FloorPlansPage.tsx:225",className:"text-xs",children:"مساحة البناء لكل طابق (م²)"}),p.jsx(qt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:226",type:"number",value:f,onChange:ne=>g(ne.target.value),className:"ltr-input mt-1",placeholder:"مثال: 200"})]}),p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:228",className:"grid grid-cols-2 gap-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:229",children:[p.jsx(et,{"data-loc":"client/src/pages/FloorPlansPage.tsx:230",className:"text-xs",children:"أبعاد غرفة المعيشة"}),p.jsx(qt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:231",value:h,onChange:ne=>x(ne.target.value),className:"mt-1",placeholder:"مثال: 5×6 م"})]}),p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:233",children:[p.jsx(et,{"data-loc":"client/src/pages/FloorPlansPage.tsx:234",className:"text-xs",children:"أبعاد الاستقبال/المجلس"}),p.jsx(qt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:235",value:b,onChange:ne=>E(ne.target.value),className:"mt-1",placeholder:"مثال: 4×5 م"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:238",className:"grid grid-cols-2 gap-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:239",children:[p.jsxs(et,{"data-loc":"client/src/pages/FloorPlansPage.tsx:240",className:"text-xs flex items-center gap-1",children:[p.jsx(U8,{"data-loc":"client/src/pages/FloorPlansPage.tsx:240",size:12}),"مستوى الخصوصية"]}),p.jsxs(Hn,{"data-loc":"client/src/pages/FloorPlansPage.tsx:241",value:_,onValueChange:ne=>C(ne),children:[p.jsx(qn,{"data-loc":"client/src/pages/FloorPlansPage.tsx:242",className:"h-9 mt-1",children:p.jsx(Un,{"data-loc":"client/src/pages/FloorPlansPage.tsx:242"})}),p.jsxs($n,{"data-loc":"client/src/pages/FloorPlansPage.tsx:243",children:[p.jsx(Rt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:244",value:"low",children:"منخفض"}),p.jsx(Rt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:245",value:"medium",children:"متوسط"}),p.jsx(Rt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:246",value:"high",children:"عالٍ"})]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:250",children:[p.jsxs(et,{"data-loc":"client/src/pages/FloorPlansPage.tsx:251",className:"text-xs flex items-center gap-1",children:[p.jsx(Tx,{"data-loc":"client/src/pages/FloorPlansPage.tsx:251",size:12}),"جهة الشارع"]}),p.jsxs(Hn,{"data-loc":"client/src/pages/FloorPlansPage.tsx:252",value:w,onValueChange:N,children:[p.jsx(qn,{"data-loc":"client/src/pages/FloorPlansPage.tsx:253",className:"h-9 mt-1",children:p.jsx(Un,{"data-loc":"client/src/pages/FloorPlansPage.tsx:253",placeholder:"تلقائي"})}),p.jsxs($n,{"data-loc":"client/src/pages/FloorPlansPage.tsx:254",children:[p.jsx(Rt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:255",value:"none",children:"تلقائي / من القطعة"}),p.jsx(Rt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:256",value:"N",children:"شمال"}),p.jsx(Rt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:257",value:"S",children:"جنÙ
966ˆØ¨"}),p.jsx(Rt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:258",value:"E",children:"شرق"}),p.jsx(Rt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:259",value:"W",children:"غرب"})]})]})]})]})]})]}),p.jsx(tt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:267",className:"w-full gap-2 h-12 text-base",onClick:ie,disabled:L||!$,children:L?p.jsxs(p.Fragment,{children:[p.jsx(ry,{"data-loc":"client/src/pages/FloorPlansPage.tsx:268",size:18,className:"animate-spin"}),"جاري التوليد..."]}):p.jsxs(p.Fragment,{children:[p.jsx($8,{"data-loc":"client/src/pages/FloorPlansPage.tsx:268",size:18}),"توليد 3 مخططات"]})})]}),p.jsx("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:273",children:p.jsxs(Ot,{"data-loc":"client/src/pages/FloorPlansPage.tsx:274",className:`h-full min-h-96 ${B||R?"border-primary/30":"border-dashed"}`,children:[p.jsx(Pn,{"data-loc":"client/src/pages/FloorPlansPage.tsx:275",className:"pb-3",children:p.jsxs(Rn,{"data-loc":"client/src/pages/FloorPlansPage.tsx:276",className:"text-sm flex items-center justify-between",children:[p.jsx("span",{"data-loc":"client/src/pages/FloorPlansPage.tsx:277",children:"المخططات المُولَّدة"}),(B||R)&&p.jsxs(tt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:279",variant:"ghost",size:"sm",className:"h-7 gap-1.5 text-xs",onClick:ie,children:[p.jsx(yF,{"data-loc":"client/src/pages/FloorPlansPage.tsx:280",size:12}),"توليد آخر"]})]})}),p.jsx(Mt,{"data-loc":"client/src/pages/FloorPlansPage.tsx:285",children:L?p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:287",className:"flex flex-col items-center justify-center py-16 gap-4",children:[p.jsx("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:288",className:"w-16 h-16 rounded-2xl bg-primary/10 flex items-center justify-center",children:p.jsx($8,{"data-loc":"client/src/pages/FloorPlansPage.tsx:289",size:28,className:"text-primary animate-pulse"})}),p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:291",className:"text-center",children:[p.jsx("p",{"data-loc":"client/src/pages/FloorPlansPage.tsx:292",className:"font-semibold",children:"جاري توليد المخططات..."}),p.jsx("p",{"data-loc":"client/src/pages/FloorPlansPage.tsx:293",className:"text-sm text-muted-foreground mt-1",children:"قد يستغرق ذلك 15-30 ثانية"})]})]}):B&&B.length>0?p.jsx("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:297",className:"space-y-4",children:B.map((ne,H)=>p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:299",className:"rounded-2xl border border-border p-4 bg-card",children:[p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:300",className:"flex items-center gap-2 mb-2",children:[p.jsx("span",{"data-loc":"client/src/pages/FloorPlansPage.tsx:301",className:"w-6 h-6 rounded-full bg-primary text-white text-xs font-bold flex items-center justify-center",children:H+1}),p.jsx("h3",{"data-loc":"client/src/pages/FloorPlansPage.tsx:302",className:"font-bold text-sm",children:ne.title||`الخيار ${H+1}`})]}),ne.description&&p.jsx("p",{"data-loc":"client/src/pages/FloorPlansPage.tsx:304",className:"text-xs text-muted-foreground mb-2 leading-relaxed",children:ne.description}),ne.entrance&&p.jsxs("p",{"data-loc":"client/src/pages/FloorPlansPage.tsx:306",className:"text-xs flex items-start gap-1.5 mb-2",children:[p.jsx(wu,{"data-loc":"client/src/pages/FloorPlansPage.tsx:306",size:12,className:"text-primary mt-0.5 shrink-0"}),p.jsxs("span",{"data-loc":"client/src/pages/FloorPlansPage.tsx:306",className:"text-muted-foreground",children:["المدخل: ",ne.entrance]})]}),ne.rooms&&ne.rooms.length>0&&p.jsx("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:309",className:"rounded-xl border border-border overflow-hidden mb-2",children:p.jsxs("table",{"data-loc":"client/src/pages/FloorPlansPage.tsx:310",className:"w-full text-[11px]",children:[p.jsx("thead",{"data-loc":"client/src/pages/FloorPlansPage.tsx:311",className:"bg-muted/60",children:p.jsxs("tr",{"data-loc":"client/src/pages/FloorPlansPage.tsx:312",children:[p.jsx("th",{"data-loc":"client/src/pages/FloorPlansPage.tsx:313",className:"text-right font-semibold px-2 py-1.5",children:"الغرفة"}),p.jsx("th",{"data-loc":"client/src/pages/FloorPlansPage.tsx:314",className:"text-right font-semibold px-2 py-1.5",children:"الأبعاد"}),p.jsx("th",{"data-loc":"client/src/pages/FloorPlansPage.tsx:315",className:"text-right font-semibold px-2 py-1.5",children:"الجهة"})]})}),p.jsx("tbody",{"data-loc":"client/src/pages/FloorPlansPage.tsx:318",children:ne.rooms.map((re,J)=>p.jsxs("tr",{"data-loc":"client/src/pages/FloorPlansPage.tsx:320",className:"border-t border-border",children:[p.jsxs("td",{"data-loc":"client/src/pages/FloorPlansPage.tsx:321",className:"px-2 py-1.5",children:[re.
966name,re.floor?` (ط${re.floor})`:""]}),p.jsx("td",{"data-loc":"client/src/pages/FloorPlansPage.tsx:322",className:"px-2 py-1.5 text-muted-foreground",children:re.size||"-"}),p.jsx("td",{"data-loc":"client/src/pages/FloorPlansPage.tsx:323",className:"px-2 py-1.5 text-muted-foreground",children:re.orientation||"-"})]},J))})]})}),ne.features&&ne.features.length>0&&p.jsx("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:331",className:"flex flex-wrap gap-1.5 mb-2",children:ne.features.map((re,J)=>p.jsx("span",{"data-loc":"client/src/pages/FloorPlansPage.tsx:333",className:"text-xs bg-primary/10 text-primary px-2 py-0.5 rounded-full",children:re},J))}),p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:337",className:"space-y-1.5 mt-2",children:[ne.sunNotes&&p.jsxs("p",{"data-loc":"client/src/pages/FloorPlansPage.tsx:339",className:"text-xs flex items-start gap-1.5",children:[p.jsx(Cx,{"data-loc":"client/src/pages/FloorPlansPage.tsx:339",size:12,className:"text-amber-500 mt-0.5 shrink-0"}),p.jsx("span",{"data-loc":"client/src/pages/FloorPlansPage.tsx:339",className:"text-muted-foreground",children:ne.sunNotes})]}),ne.privacyNotes&&p.jsxs("p",{"data-loc":"client/src/pages/FloorPlansPage.tsx:342",className:"text-xs flex items-start gap-1.5",children:[p.jsx(U8,{"data-loc":"client/src/pages/FloorPlansPage.tsx:342",size:12,className:"text-green-600 mt-0.5 shrink-0"}),p.jsx("span",{"data-loc":"client/src/pages/FloorPlansPage.tsx:342",className:"text-muted-foreground",children:ne.privacyNotes})]}),ne.tips&&p.jsxs("p",{"data-loc":"client/src/pages/FloorPlansPage.tsx:345",className:"text-xs text-muted-foreground leading-relaxed pt-1 border-t border-border mt-2",children:["💡 ",ne.tips]})]})]},H))}):R?p.jsx("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:352",className:"prose prose-sm dark:prose-invert max-w-none",children:p.jsx(U4,{"data-loc":"client/src/pages/FloorPlansPage.tsx:353",children:R})}):p.jsxs("div",{"data-loc":"client/src/pages/FloorPlansPage.tsx:356",className:"flex flex-col items-center justify-center py-16 text-center",children:[p.jsx(B0,{"data-loc":"client/src/pages/FloorPlansPage.tsx:357",size:48,className:"text-muted-foreground/20 mb-4"}),p.jsx("p",{"data-loc":"client/src/pages/FloorPlansPage.tsx:358",className:"text-muted-foreground text-sm",children:$?"اختر القطعة والمواصفات ثم اضغط توليد المخططات":"اشترك في الخطة المميزة للوصول إلى هذه الميزة"})]})})]})})]})]})})}const r_=["مشاريع غير محدودة","مساعد ذكي غير محدود","توليد خرائط معمارية بالـ AI","تقارير PDF احترافية","محول عملات عربية","حفظ قياسات غير محدودة","دعم أولوي","تحديثات مستمرة"],a_=[{key:"zaincash",label:"ZainCash",desc:"الدفع عبر محفظة زين كاش العراقية",icon:_F,color:"bg-blue-500/10 border-blue-500/30 text-blue-600",iconColor:"text-blue-500",instructions:`أرسل 1,300 دينار عراقي إلى رقم ZainCash: 07825063189
967أرسل اسم المستخدم ورقم العملية في الحقل أدناه`},{key:"qicard",label:"QiCard",desc:"الدفع عبر بطاقة QiCard العراقية",icon:ny,color:"bg-green-500/10 border-green-500/30 text-green-600",iconColor:"text-green-500",instructions:`أرسل المبلغ إلى رقم QiCard: 07825063189
968أرسل رقم العملية في الحقل أدناه للتحقق`},{key:"binance",label:"Binance Pay",desc:"الدفع عبر Binance Pay بالعملات الرقمية",icon:iF,color:"bg-amber-500/10 border-amber-500/30 text-amber-600",iconColor:"text-amber-500",instructions:`أرسل $1 USDT إلى عنوان Binance Pay: [email protected]
969أو امسح رمز QR وأرسل رقم العملية`}];function Coe(){const{isAuthenticated:e}=Za(),[t,n]=A.useState(null),[r,a]=A.useState(""),[i,l]=A.useState(!1),{data:u,refetch:c}=Dt.subscription.status.useQuery(void 0,{enabled:e}),f=Dt.subscription.initiate.useMutation({onSuccess:()=>{Ct.success("تم إرسال طلب الاشتراك! سيتم التفعيل خلال 24 ساعة بعد التحقق."),l(!1),a(""),c()},onError:b=>Ct.error(b.message||"فشل إرسال الطلب")}),g=u?.tier==="premium",h=a_.find(b=>b.key===t),x=()=>
969{if(!r.trim()){Ct.error("أدخل رقم العملية");return}f.mutate({method:t??"zaincash",amount:1,currency:"USD"}),Ct.info(`رقم العملية المحفوظ: ${r}`)};return e?p.jsx(mr,{"data-loc":"client/src/pages/SubscriptionPage.tsx:99",children:p.jsxs("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:100",className:"p-6 max-w-3xl mx-auto",children:[p.jsxs("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:101",className:"flex items-center gap-2 mb-6",children:[p.jsx(Ya,{"data-loc":"client/src/pages/SubscriptionPage.tsx:102",size:20,className:"text-amber-500"}),p.jsx("h1",{"data-loc":"client/src/pages/SubscriptionPage.tsx:103",className:"text-2xl font-black",children:"الاشتراك المميز"})]}),g?p.jsx(Ot,{"data-loc":"client/src/pages/SubscriptionPage.tsx:107",className:"border-amber-500/30 bg-amber-500/5 mb-6",children:p.jsxs(Mt,{"data-loc":"client/src/pages/SubscriptionPage.tsx:108",className:"p-6 text-center",children:[p.jsx("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:109",className:"w-16 h-16 rounded-2xl bg-amber-500/20 flex items-center justify-center mx-auto mb-4",children:p.jsx(Ya,{"data-loc":"client/src/pages/SubscriptionPage.tsx:110",size:28,className:"text-amber-500"})}),p.jsx("h2",{"data-loc":"client/src/pages/SubscriptionPage.tsx:112",className:"text-xl font-bold mb-1",children:"أنت مشترك مميز! 🎉"}),p.jsxs("p",{"data-loc":"client/src/pages/SubscriptionPage.tsx:113",className:"text-muted-foreground text-sm",children:["اشتراكك نشط حتى: ",u?.expiresAt?new Date(u.expiresAt).toLocaleDateString("ar-IQ"):"غير محدد"]}),p.jsx("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:116",className:"grid grid-cols-2 gap-2 mt-4 text-right",children:r_.map(b=>p.jsxs("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:118",className:"flex items-center gap-2 text-sm",children:[p.jsx(x0,{"data-loc":"client/src/pages/SubscriptionPage.tsx:119",size:14,className:"text-amber-500 shrink-0"}),b]},b))})]})}):p.jsxs(p.Fragment,{children:[p.jsx(Ot,{"data-loc":"client/src/pages/SubscriptionPage.tsx:129",className:"border-primary/20 bg-accent mb-6",children:p.jsxs(Mt,{"data-loc":"client/src/pages/SubscriptionPage.tsx:130",className:"p-6",children:[p.jsxs("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:131",className:"flex items-start justify-between mb-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:132",children:[p.jsxs("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:133",className:"flex items-center gap-2 mb-1",children:[p.jsx("h2",{"data-loc":"client/src/pages/SubscriptionPage.tsx:134",className:"text-xl font-black text-accent-foreground",children:"الخطة المميزة"}),p.jsxs(Sn,{"data-loc":"client/src/pages/SubscriptionPage.tsx:135",className:"bg-primary text-primary-foreground gap-1 text-xs",children:[p.jsx(bw,{"data-loc":"client/src/pages/SubscriptionPage.tsx:136",size:10}),"الأكثر شعبية"]})]}),p.jsxs("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:139",className:"flex items-baseline gap-2",children:[p.jsx("span",{"data-loc":"client/src/pages/SubscriptionPage.tsx:140",className:"text-4xl font-black text-primary",children:"$1"}),p.jsx("span",{"data-loc":"client/src/pages/SubscriptionPage.tsx:141",className:"text-accent-foreground/60",children:"/ شهرياً"})]}),p.jsx("p",{"data-loc":"client/src/pages/SubscriptionPage.tsx:143",className:"text-accent-foreground/60 text-sm mt-1",children:"≈ 1,300 دينار عراقي"})]}),p.jsx(Ya,{"data-loc":"client/src/pages/SubscriptionPage.tsx:145",size:32,className:"text-amber-400"})]}),p.jsx("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:147",className:"grid grid-cols-2 gap-2",children:r_.map(b=>p.jsxs("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:149",className:"flex items-center gap-2 text-sm text-accent-foreground",children:[p.jsx(x0,{"data-loc":"client/src/pages/SubscriptionPage.tsx:150",size:14,className:"text-primary shrink-0"}),b]},b))})]})}),p.jsx("h2",{"data-loc":"client/src/pages/SubscriptionPage.tsx:159",className:"font-bold text-lg mb-3",children:"اختر طريقة الدفع"}),p.jsx("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:160",className:"grid grid-cols-1 gap-3 mb-6",children:a_.map(b=>{const E=b.icon;return p.jsxs("button",{"data-loc":"client/src/pages/SubscriptionPage.tsx:164",onClick:()=>{n(b.key),l(!0)},className:`flex items-center gap-4 p-4 rounded-2xl border-2 text-right transition-all duration-150 hover:scale-[1.01] ${b.color} bg-card`,children:[p.jsx("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:169",className:"w-12 h-12 rounded-xl bg-white/50 flex items-center justify-center shrink-0",children:p.jsx(E,{"data-loc":"client/src/pages/SubscriptionPage.tsx:170",size:22,className:b.iconColor})}),p.jsxs("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:172",className:"flex-1",children:[p.jsx("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:173",className:"font-bold",children:b.label}),p.jsx("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:174",className:"text-sm opacity-70",children:b.desc})]}),p.jsx(kx,{"data-loc":"client/src/pages/SubscriptionPage.tsx:176",size:16,className:"opacity-50"})]},b.key)})}),p.jsx("p",{"data-loc":"client/src/pages/SubscriptionPage.tsx:182",className:"text-xs text-muted-foreground text-center",children:"بعد الدفع، أرسل رقم العملية وسيتم تفعيل اشتراكك خلال 24 ساعة"})]}),p.jsx(fy,{"data-loc":"client/src/pages/SubscriptionPage.tsx:189",open:i,onOpenChange:l,children:p.jsxs(hy,{"data-loc":"client/src/pages/SubscriptionPage.tsx:190",className:"max-w-md",dir:"rtl",children:[p.jsx(py,{"data-loc":"client/src/pages/SubscriptionPage.tsx:191",children:p.jsxs(my,{"data-loc":"client/src/pages/SubscriptionPage.tsx:192",className:"flex items-center gap-2",children:[h&&p.jsx(h.icon,{"data-loc":"client/src/pages/SubscriptionPage.tsx:193",size:18,className:h.iconColor}),"الدفع عبر ",h?.label]})}),h&&p.jsxs("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:198",className:"space-y-4 mt
969-2",children:[p.jsx("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:199",className:"bg-muted/50 rounded-xl p-4 text-sm whitespace-pre-line leading-relaxed",children:h.instructions}),p.jsxs("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:202",children:[p.jsx(et,{"data-loc":"client/src/pages/SubscriptionPage.tsx:203",children:"رقم العملية / Transaction ID *"}),p.jsx(qt,{"data-loc":"client/src/pages/SubscriptionPage.tsx:204",value:r,onChange:b=>a(b.target.value),placeholder:"أدخل رقم العملية بعد الدفع",className:"mt-1 ltr-input"})]}),p.jsx(tt,{"data-loc":"client/src/pages/SubscriptionPage.tsx:211",className:"w-full gap-2",onClick:x,disabled:f.isPending||!r.trim(),children:f.isPending?p.jsxs(p.Fragment,{children:[p.jsx(ry,{"data-loc":"client/src/pages/SubscriptionPage.tsx:217",size:16,className:"animate-spin"}),"جاري الإرسال..."]}):p.jsxs(p.Fragment,{children:[p.jsx(x0,{"data-loc":"client/src/pages/SubscriptionPage.tsx:219",size:16}),"تأكيد الدفع"]})}),p.jsx("p",{"data-loc":"client/src/pages/SubscriptionPage.tsx:222",className:"text-xs text-muted-foreground text-center",children:"سيتم مراجعة طلبك وتفعيل الاشتراك خلال 24 ساعة"})]})]})})]})}):p.jsx(mr,{"data-loc":"client/src/pages/SubscriptionPage.tsx:85",children:p.jsx("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:86",className:"flex items-center justify-center h-full p-8",children:p.jsxs("div",{"data-loc":"client/src/pages/SubscriptionPage.tsx:87",className:"text-center",children:[p.jsx(Ya,{"data-loc":"client/src/pages/SubscriptionPage.tsx:88",size:48,className:"text-amber-500 mx-auto mb-4"}),p.jsx("h2",{"data-loc":"client/src/pages/SubscriptionPage.tsx:89",className:"text-xl font-bold mb-2",children:"الاشتراك المميز"}),p.jsx("p",{"data-loc":"client/src/pages/SubscriptionPage.tsx:90",className:"text-muted-foreground mb-4",children:"سجّل دخولك للاشتراك"}),p.jsx(tt,{"data-loc":"client/src/pages/SubscriptionPage.tsx:91",onClick:()=>window.location.href=Zr(),children:"تسجيل الدخول"})]})})})}function koe(){const{isAuthenticated:e}=Za();Dt.useUtils();const{data:t,isLoading:n}=Dt.reports.list.useQuery(void 0,{enabled:e}),r=i=>{Ct.info("حذف التقرير قيد التطوير")},a=i=>{const l=`${window.location.origin}/report/${i}`;navigator.clipboard.writeText(l),Ct.success("تم نسخ الرابط")};return e?p.jsx(mr,{"data-loc":"client/src/pages/ReportsPage.tsx:42",children:p.jsxs("div",{"data-loc":"client/src/pages/ReportsPage.tsx:43",className:"p-6 max-w-4xl mx-auto",children:[p.jsxs("div",{"data-loc":"client/src/pages/ReportsPage.tsx:44",className:"flex items-center justify-between mb-6",children:[p.jsxs("div",{"data-loc":"client/src/pages/ReportsPage.tsx:45",className:"flex items-center gap-2",children:[p.jsx(ai,{"data-loc":"client/src/pages/ReportsPage.tsx:46",size:20,className:"text-primary"}),p.jsx("h1",{"data-loc":"client/src/pages/ReportsPage.tsx:47",className:"text-2xl font-black",children:"التقارير"})]}),p.jsx(Sr,{"data-loc":"client/src/pages/ReportsPage.tsx:49",href:"/projects",children:p.jsxs(tt,{"data-loc":"client/src/pages/ReportsPage.tsx:50",variant:"outline",size:"sm",className:"gap-1.5",children:[p.jsx(z0,{"data-loc":"client/src/pages/ReportsPage.tsx:51",size:14}),"إنشاء تقرير من مشروع"]})})]}),n?p.jsx("div",{"data-loc":"client/src/pages/ReportsPage.tsx:57",className:"space-y-3",children:[1,2,3].map(i=>p.jsx("div",{"data-loc":"client/src/pages/ReportsPage.tsx:57",className:"h-20 bg-muted animate-pulse rounded-2xl"},i))}):t?.length?p.jsx("div",{"data-loc":"client/src/pages/ReportsPage.tsx:72",className:"space-y-3",children:t.map(i=>p.jsx(Ot,{"data-loc":"client/src/pages/ReportsPage.tsx:74",className:"border-border card-hover group",children:p.jsxs(Mt,{"data-loc":"client/src/pages/ReportsPage.tsx:75",className:"p-4 flex items-center gap-4",children:[p.jsx("div",{"data-loc":"client/src/pages/ReportsPage.tsx:76",className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center shrink-0",children:p.jsx(ai,{"data-loc":"client/src/pages/ReportsPage.tsx:77",size:18,className:"text-primary"})}),p.jsxs("div",{"data-loc":"client/src/pages/ReportsPage.tsx:79",className:"flex-1 min-w-0",children:[p.jsx("h3",{"data-loc":"client/src/pages/ReportsPage.tsx:80",className:"font-bold truncate",children:i.title}),p.jsxs("div",{"data-loc":"client/src/pages/ReportsPage.tsx:81",className:"flex items-center gap-3 text-xs text-muted-foreground mt-0.5",children:[p.jsxs("span",{"data-loc":"client/src/pages/ReportsPage.tsx:82",className:"flex items-center gap-1",children:[p.jsx(ty,{"data-loc":"client/src/pages/ReportsPage.tsx:83",size:11}),new Date(i.createdAt).toLocaleDateString("ar-IQ")]}),p.jsx(Sn,{"data-loc":"client/src/pages/ReportsPage.tsx:86",variant:i.isPublic?"default":"secondary",className:"text-xs h-4 px-1.5",children:i.isPublic?"عام":"خاص"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/ReportsPage.tsx:91",className:"flex items-center gap-1.5 opacity-0 group-hover:opacity-100 transition-opacity",children:[p.jsx(tt,{"data-loc":"client/src/pages/ReportsPage.tsx:92",variant:"ghost",size:"sm",className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",onClick:()=>a(i.shareToken??""),children:p.jsx(cF,{"data-loc":"client/src/pages/ReportsPage.tsx:97",size:14})}),p.jsx("a",{"data-loc":"client/src/pages/ReportsPage.tsx:99",href:`/report/${i.shareToken}`,target:"_blank",rel:"noopener noreferrer",children:p.jsx(tt,{"data-loc":"client/src/pages/ReportsPage.tsx:100",variant:"ghost",size:"sm",className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",children:p.jsx(fF,{"data-loc":"client/src/pages/ReportsPage.tsx:101",size:14})})}),p.jsx(tt,{"data-loc":"client/src/pages/ReportsPage.tsx:104",variant:"ghost",size:"sm",className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",onClick:()=>{confirm("حذف التقرير؟")&&r(i.id)},children:p.jsx(ad,{"data-loc":"client/src/pages/ReportsPage.tsx:109",size:14})})]})]})},i.id))}):p.jsx(Ot,{"data-loc":"client/src/pages/ReportsPage.tsx:59",className:"border-dashed border-2",children:p.jsxs(Mt,{"data-loc":"client/src/pages/ReportsPage.tsx:60",className:"p-16 text-center",children:[p.jsx(ai,{"data-loc":"client/src/pages/ReportsPage.tsx:61",size:48,className:"text-muted-foreground
969/20 mx-auto mb-4"}),p.jsx("h3",{"data-loc":"client/src/pages/ReportsPage.tsx:62",className:"text-lg font-bold mb-2",children:"لا توجد تقارير"}),p.jsx("p",{"data-loc":"client/src/pages/ReportsPage.tsx:63",className:"text-muted-foreground text-sm mb-6",children:"أنشئ تقارير PDF من مشاريعك لمشاركتها مع العملاء"}),p.jsx(Sr,{"data-loc":"client/src/pages/ReportsPage.tsx:66",href:"/projects",children:p.jsxs(tt,{"data-loc":"client/src/pages/ReportsPage.tsx:67",size:"sm",className:"gap-2",children:[p.jsx(z0,{"data-loc":"client/src/pages/ReportsPage.tsx:67",size:14}),"اذهب إلى المشاريع"]})})]})})]})}):p.jsx(mr,{"data-loc":"client/src/pages/ReportsPage.tsx:29",children:p.jsx("div",{"data-loc":"client/src/pages/ReportsPage.tsx:30",className:"flex items-center justify-center h-full p-8",children:p.jsxs("div",{"data-loc":"client/src/pages/ReportsPage.tsx:31",className:"text-center",children:[p.jsx(ai,{"data-loc":"client/src/pages/ReportsPage.tsx:32",size:48,className:"text-muted-foreground/30 mx-auto mb-4"}),p.jsx("p",{"data-loc":"client/src/pages/ReportsPage.tsx:33",className:"text-muted-foreground mb-4",children:"سجّل دخولك لعرض التقارير"}),p.jsx(tt,{"data-loc":"client/src/pages/ReportsPage.tsx:34",onClick:()=>window.location.href=Zr(),children:"تسجيل الدخول"})]})})})}const xu=e=>e.toLocaleString("ar-IQ");function Noe(){const{token:e}=ey(),{data:t,isLoading:n,error:r}=Dt.reports.getByToken.useQuery({token:e??""},{enabled:!!e});if(n)return p.jsx("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:16",className:"min-h-screen flex items-center justify-center bg-background",dir:"rtl",children:p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:17",className:"text-center",children:[p.jsx("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:18",className:"w-12 h-12 border-4 border-primary border-t-transparent rounded-full animate-spin mx-auto mb-4"}),p.jsx("p",{"data-loc":"client/src/pages/SharedReportPage.tsx:19",className:"text-muted-foreground",children:"جاري تحميل التقرير..."})]})});if(r||!t)return p.jsx("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:27",className:"min-h-screen flex items-center justify-center bg-background",dir:"rtl",children:p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:28",className:"text-center",children:[p.jsx(ai,{"data-loc":"client/src/pages/SharedReportPage.tsx:29",size:48,className:"text-muted-foreground/20 mx-auto mb-4"}),p.jsx("h2",{"data-loc":"client/src/pages/SharedReportPage.tsx:30",className:"text-xl font-bold mb-2",children:"التقرير غير موجود"}),p.jsx("p",{"data-loc":"client/src/pages/SharedReportPage.tsx:31",className:"text-muted-foreground",children:"الرابط غير صحيح أو انتهت صلاحية التقرير"})]})});const a=t.project,i=t.boqItems??[],l=i.reduce((b,E)=>b+parseFloat(E.quantity)*parseFloat(E.unitPrice),0),u=parseFloat(a?.taxRate??"0")/100,c=parseFloat(a?.marginRate??"0")/100,f=l*u,g=l*c,h=l+f+g,x=i.reduce((b,E)=>{const _=E.category??"أخرى";return b[_]||(b[_]=[]),b[_].push(E),b},{});return p.jsx("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:54",className:"min-h-screen bg-gray-50 py-8 px-4",dir:"rtl",children:p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:55",className:"max-w-4xl mx-auto",children:[p.jsx("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:57",className:"flex justify-end mb-4 print:hidden",children:p.jsxs(tt,{"data-loc":"client/src/pages/SharedReportPage.tsx:58",variant:"outline",size:"sm",className:"gap-2",onClick:()=>window.print(),children:[p.jsx(bF,{"data-loc":"client/src/pages/SharedReportPage.tsx:59",size:14}),"طباعة / PDF"]})}),p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:64",className:"bg-white rounded-2xl shadow-sm border border-gray-200 overflow-hidden print:shadow-none print:rounded-none",children:[p.jsx("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:66",className:"bg-gradient-to-l from-primary to-primary/80 p-8 text-primary-foreground",children:p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:67",className:"flex items-start justify-between",children:[p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:68",children:[p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:69",className:"flex items-center gap-3 mb-3",children:[p.jsx("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:70",className:"w-10 h-10 rounded-xl bg-white/20 flex items-center justify-center",children:p.jsx("span",{"data-loc":"client/src/pages/SharedReportPage.tsx:71",className:"font-black text-lg",children:"ب"})}),p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:73",children:[p.jsx("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:74",className:"font-black text-xl",children:"بنّاء"}),p.jsx("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:75",className:"text-primary-foreground
969/70 text-xs",children:"المساعد الذكي للمقاولين"})]})]}),p.jsx("h1",{"data-loc":"client/src/pages/SharedReportPage.tsx:78",className:"text-2xl font-black",children:t.title})]}),p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:80",className:"text-left text-sm text-primary-foreground/80 space-y-1",children:[p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:81",className:"flex items-center gap-1.5 justify-end",children:[p.jsx(ty,{"data-loc":"client/src/pages/SharedReportPage.tsx:82",size:13}),new Date(t.createdAt).toLocaleDateString("ar-IQ")]}),p.jsx(Sn,{"data-loc":"client/src/pages/SharedReportPage.tsx:85",className:"bg-white/20 text-white border-white/30",children:"عرض سعر"})]})]})}),a&&p.jsx("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:92",className:"p-6 border-b border-gray-100",children:p.jsx("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:93",className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[{label:"اسم المشروع",value:a.name},{label:"الموقع",value:a.location||"—"},{label:"صاحب المشروع",value:a.ownerName||"—"},{label:"المقاول",value:a.contractorName||"—"}].map(b=>p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:100",children:[p.jsx("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:101",className:"text-xs text-gray-500 mb-0.5",children:b.label}),p.jsx("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:102",className:"font-semibold text-sm",children:b.value})]},b.label))})}),p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:110",className:"p-6",children:[p.jsx("h2",{"data-loc":"client/src/pages/SharedReportPage.tsx:111",className:"font-bold text-lg mb-4",children:"جدول الكميات والأسعار"}),i.length===0?p.jsx("p",{"data-loc":"client/src/pages/SharedReportPage.tsx:114",className:"text-gray-500 text-sm text-center py-8",children:"لا توجد بنود في هذا التقرير"}):p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:116",className:"space-y-4",children:[Object.entries(x).map(([b,E])=>p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:118",children:[p.jsx("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:119",className:"text-xs font-bold text-gray-500 uppercase tracking-wide mb-2",children:b}),p.jsxs("table",{"data-loc":"client/src/pages/SharedReportPage.tsx:120",className:"w-full text-sm border-collapse",children:[p.jsx("thead",{"data-loc":"client/src/pages/SharedReportPage.tsx:121",children:p.jsxs("tr",{"data-loc":"client/src/pages/SharedReportPage.tsx:122",className:"bg-gray-50 text-gray-600 text-xs",children:[p.jsx("th",{"data-loc":"client/src/pages/SharedReportPage.tsx:123",className:"text-right px-3 py-2 border border-gray-200 font-medium",children:"البند"}),p.jsx("th",{"data-loc":"client/src/pages/SharedReportPage.tsx:124",className:"text-center px-3 py-2 border border-gray-200 font-medium w-16",children:"الوحدة"}),p.jsx("th",{"data-loc":"client/src/pages/SharedReportPage.tsx:125",className:"text-center px-3 py-2 border border-gray-200 font-medium w-20",children:"الكمية"}),p.jsx("th",{"data-loc":"client/src/pages/SharedReportPage.tsx:126",className:"text-center px-3 py-2 border border-gray-200 font-medium w-28",children:"سعر الوحدة"}),p.jsx("th",{"data-loc":"client/src/pages/SharedReportPage.tsx:127",className:"text-center px-3 py-2 border border-gray-200 font-medium w-28",children:"الإجمالي"})]})}),p.jsx("tbody",{"data-loc":"client/src/pages/SharedReportPage.tsx:130",children:E?.map((_,C)=>{const w=parseFloat(_.quantity)*parseFloat(_.unitPrice);return p.jsxs("tr",{"data-loc":"client/src/pages/SharedReportPage.tsx:134",className:C%2===0?"bg-white":"bg-gray-50/50",children:[p.jsxs("td",{"data-loc":"client/src/pages/SharedReportPage.tsx:135",className:"px-3 py-2 border border-gray-200",children:[p.jsx("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:136",className:"font-medium",children:_.name}),_.description&&p.jsx("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:137",className:"text-xs text-gray-500",children:_.description})]}),p.jsx("td",{"data-loc":"client/src/pages/SharedReportPage.tsx:139",className:"px-3 py-2 border border-gray-200 text-center text-gray-600",children:_.unit}),p.jsx("td",{"data-loc":"client/src/pages/SharedReportPage.tsx:140",className:"px-3 py-2 border border-gray-200 text-center",children:parseFloat(_.quantity).toLocaleStr
969ing("ar-IQ")}),p.jsx("td",{"data-loc":"client/src/pages/SharedReportPage.tsx:141",className:"px-3 py-2 border border-gray-200 text-center",children:xu(parseFloat(_.unitPrice))}),p.jsx("td",{"data-loc":"client/src/pages/SharedReportPage.tsx:142",className:"px-3 py-2 border border-gray-200 text-center font-semibold",children:xu(w)})]},_.id)})})]})]},b)),p.jsx("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:152",className:"flex justify-end mt-4",children:p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:153",className:"w-72 space-y-2",children:[p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:154",className:"flex justify-between text-sm py-1.5 border-b border-gray-200",children:[p.jsx("span",{"data-loc":"client/src/pages/SharedReportPage.tsx:155",className:"text-gray-600",children:"المجموع الفرعي"}),p.jsxs("span",{"data-loc":"client/src/pages/SharedReportPage.tsx:156",className:"font-semibold",children:[xu(l)," ",a?.currency]})]}),u>0&&p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:159",className:"flex justify-between text-sm py-1.5 border-b border-gray-200",children:[p.jsxs("span",{"data-loc":"client/src/pages/SharedReportPage.tsx:160",className:"text-gray-600",children:["الضريبة (",a?.taxRate,"%)"]}),p.jsxs("span",{"data-loc":"client/src/pages/SharedReportPage.tsx:161",children:[xu(f)," ",a?.currency]})]}),c>0&&p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:165",className:"flex justify-between text-sm py-1.5 border-b border-gray-200",children:[p.jsxs("span",{"data-loc":"client/src/pages/SharedReportPage.tsx:166",className:"text-gray-600",children:["هامش الربح (",a?.marginRate,"%)"]}),p.jsxs("span",{"data-loc":"client/src/pages/SharedReportPage.tsx:167",children:[xu(g)," ",a?.currency]})]}),p.jsxs("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:170",className:"flex justify-between text-base font-black py-2 bg-primary/5 rounded-lg px-3",children:[p.jsx("span",{"data-loc":"client/src/pages/SharedReportPage.tsx:171",children:"الإجمالي الكلي"}),p.jsxs("span",{"data-loc":"client/src/pages/SharedReportPage.tsx:172",className:"text-primary",children:[xu(h)," ",a?.currency]})]})]})})]})]}),p.jsx("div",{"data-loc":"client/src/pages/SharedReportPage.tsx:181",className:"px-6 py-4 bg-gray-50 border-t border-gray-200 text-center text-xs text-gray-500",children:"تم إنشاء هذا التقرير بواسطة منصة بنّاء — المساعد الذكي للمقاولين والمهندسين"})]})]})})}const ql=[{code:"IQD",name:"دينار عراقي",flag:"🇮🇶",rate:1310},{code:"USD",name:"دولار أمريكي",flag:"🇺🇸",rate:1},{code:"SAR",name:"ريال سعودي",flag:"🇸🇦",rate:3.75},{code:"AED",name:"درهم إماراتي",flag:"🇦🇪",rate:3.67},{code:"KWD",name:"دينار كويتي",flag:"🇰🇼",rate:.307},{code:"QAR",name:"ريال قطري",flag:"🇶🇦",rate:3.64},{code:"BHD",name:"دينار بحريني",flag:"🇧🇭",rate:.376},{code:"OMR",name:"ريال عماني",flag:"🇴🇲",rate:.385},{code:"JOD",name:"دينار أردني",flag:"🇯🇴",rate:.709},{code:"EGP",name:"جنيه مصري",flag:"🇪🇬",rate:30.9},{code:"LYD",name:"دينار ليبي",flag:"🇱🇾",rate:4.82},{code:"TND",name:"دينار تونسي",flag:"🇹🇳",rate:3.1},{code:"MAD",name:"درهم مغربي",flag:"🇲🇦",rate:9.9},{code:"DZD",name:"دينار جزائري",flag:"🇩🇿",rate:134}];function Poe(){const[e,t]=A.useState("1000000"),[n,r]=A.useState("IQD"),[a,i]=A.useState("USD"),l=ql.find(h=>h.code===n)?.rate??1,u=ql.find(h=>h.code===a)?.rate??1,c=parseFloat(e.replace(/,/g,""))||0,f=c/l*u,g=()=>{r(a),i(n)};return p.jsxs(Ot,{"data-loc":"client/src/pages/SettingsPage.tsx:47",children:[p.jsx(Pn,{"data-loc":"client/src/pages/SettingsPage.tsx:48",children:p.jsxs(Rn,{"data-loc":"client/src/pages/SettingsPage.tsx:48",className:"text-base flex items-center gap-2",children:[p.jsx(dF,{"data-loc":"client/src/pages/SettingsPage.tsx:48",size:16}),"محول العملات العربية"]})}),p.jsxs(Mt,{"data-loc":"client/src/pages/SettingsPage.tsx:49",className:"space-y-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/SettingsPage.tsx:50",className:"grid grid-cols-1 gap-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/SettingsPage.tsx:51",className:"space-y-2",children:[p.jsx(et,{"data-loc":"client/src/pages/SettingsPage.tsx:52",className:"text-xs",children:"المبلغ"}),p.jsx(qt,{"data-loc":"client/src/pages/SettingsPage.tsx:53",type:"number",value:e,onCh
969ange:h=>t(h.target.value),className:"text-lg font-bold h-12 ltr-input"})]}),p.jsxs("div",{"data-loc":"client/src/pages/SettingsPage.tsx:60",className:"grid grid-cols-[1fr,auto,1fr] gap-2 items-end",children:[p.jsxs("div",{"data-loc":"client/src/pages/SettingsPage.tsx:61",className:"space-y-1.5",children:[p.jsx(et,{"data-loc":"client/src/pages/SettingsPage.tsx:62",className:"text-xs",children:"من"}),p.jsxs(Hn,{"data-loc":"client/src/pages/SettingsPage.tsx:63",value:n,onValueChange:r,children:[p.jsx(qn,{"data-loc":"client/src/pages/SettingsPage.tsx:64",className:"h-10",children:p.jsx(Un,{"data-loc":"client/src/pages/SettingsPage.tsx:65"})}),p.jsx($n,{"data-loc":"client/src/pages/SettingsPage.tsx:67",children:ql.map(h=>p.jsx(Rt,{"data-loc":"client/src/pages/SettingsPage.tsx:69",value:h.code,children:p.jsxs("span",{"data-loc":"client/src/pages/SettingsPage.tsx:70",className:"flex items-center gap-2",children:[h.flag," ",h.code," — ",h.name]})},h.code))})]})]}),p.jsx(tt,{"data-loc":"client/src/pages/SettingsPage.tsx:76",variant:"outline",size:"icon",className:"h-10 w-10 mb-0",onClick:g,children:p.jsx(aF,{"data-loc":"client/src/pages/SettingsPage.tsx:77",size:14})}),p.jsxs("div",{"data-loc":"client/src/pages/SettingsPage.tsx:79",className:"space-y-1.5",children:[p.jsx(et,{"data-loc":"client/src/pages/SettingsPage.tsx:80",className:"text-xs",children:"إلى"}),p.jsxs(Hn,{"data-loc":"client/src/pages/SettingsPage.tsx:81",value:a,onValueChange:i,children:[p.jsx(qn,{"data-loc":"client/src/pages/SettingsPage.tsx:82",className:"h-10",children:p.jsx(Un,{"data-loc":"client/src/pages/SettingsPage.tsx:83"})}),p.jsx($n,{"data-loc":"client/src/pages/SettingsPage.tsx:85",children:ql.map(h=>p.jsx(Rt,{"data-loc":"client/src/pages/SettingsPage.tsx:87",value:h.code,children:p.jsxs("span",{"data-loc":"client/src/pages/SettingsPage.tsx:88",className:"flex items-center gap-2",children:[h.flag," ",h.code," — ",h.name]})},h.code))})]})]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/SettingsPage.tsx:98",className:"bg-primary/5 border border-primary/20 rounded-xl p-5 text-center",children:[p.jsx("div",{"data-loc":"client/src/pages/SettingsPage.tsx:99",className:"text-3xl font-black text-primary",children:f.toLocaleString("ar-IQ",{maximumFractionDigits:2})}),p.jsxs("div",{"data-loc":"client/src/pages/SettingsPage.tsx:102",className:"text-sm text-muted-foreground mt-1",children:[ql.find(h=>h.code===a)?.flag," ",a," — ",ql.find(h=>h.code===a)?.name]})]}),p.jsxs("div",{"data-loc":"client/src/pages/SettingsPage.tsx:108",className:"bg-muted/40 rounded-xl p-4",children:[p.jsxs("p",{"data-loc":"client/src/pages/SettingsPage.tsx:109",className:"text-xs font-semibold text-muted-foreground mb-3",children:["تحويل ",c.toLocaleString("ar-IQ")," ",n," إلى جميع العملات"]}),p.jsx("div",{"data-loc":"client/src/pages/SettingsPage.tsx:112",className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:ql.filter(h=>h.code!==n).map(h=>{const x=c/l*h.rate;return p.jsxs("div",{"data-loc":"client/src/pages/SettingsPage.tsx:116",className:"flex justify-between items-center text-sm py-1",children:[p.jsxs("span",{"data-loc":"client/src/pages/SettingsPage.tsx:117",className:"text-muted-foreground flex items-center gap-1.5",children:[p.jsx("span",{"data-loc":"client/src/pages/SettingsPage.tsx:118",children:h.flag}),h.code]}),p.jsx("span",{"data-loc":"client/src/pages/SettingsPage.tsx:120",className:"font-semibold",children:x.toLocaleString("ar-IQ",{maximumFractionDigits:2})})]},h.code)})}),p.jsx("p",{"data-loc":"client/src/pages/SettingsPage.tsx:125",className:"text-xs text-muted-foreground mt-3",children:"* الأسعار تقريبية وقد تختلف عن السوق الفعلي"})]})]})]})}function Roe(){const{user:e}=Za(),[t,n]=A.useState(e?.name??""),r=Dt.profile.update.useMutation({onSuccess:()=>Ct.success("تم حفظ الملف الشخصي"),onError:()=>Ct.error("فشل الحفظ")});return p.jsxs(Ot,{"data-loc":"client/src/pages/SettingsPage.tsx:141",children:[p.jsx(Pn,{"data-loc":"client/src/pages/SettingsPage.tsx:142",children:p.jsxs(Rn,{"data-loc":"client/src/pages/SettingsPage.tsx:142",className:"text-base flex items-center gap-2",children:[p.jsx(vw,{"data-loc":"client/src/pages/SettingsPage.tsx:142",size:16}),"الملف الشخصي"]})}),p.jsxs(Mt,{"data-loc":"client/src/pages/SettingsPage.tsx:143",className:"space-y-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/SettingsPage.tsx:144",children:[p.jsx(et,{"data-loc":"client/src/pages/SettingsPage.tsx:145",children:"الاسم"}),p.jsx(qt,{"data-loc":"client/src/pages/SettingsPage.tsx:146",value:t,onChange:a=>n(a.target.value),className:"mt-1"})]}),p.jsxs("div",{"data-loc":"client/src/pages/SettingsPage.tsx:148",children:[p.jsx(et,{"data-loc":"client/src/pages/SettingsPage.tsx:149",children:"البريد الإلكتروني"}),p.jsx(qt,{"data-loc":"client/src/pages/SettingsPage.tsx:150",value:e?.email??"",disabled:!0,className:"mt-1 bg-muted"})]}),p.jsxs("div",{"data-loc":"client/src/pages/SettingsPage.tsx:152",children:[p.jsx(et,{"data-loc":"client/src/pages/SettingsPage.tsx:153",className:"text-xs text-muted-foreground",children:"الدور"}),p.jsx("div",{"data-loc":"client/src/pages/SettingsPage.tsx:154",className:"mt-1",children:p.jsx(Sn,{"data-loc":"client/src/pages/SettingsPage.tsx:155",variant:e?.role==="admin"?"default":"secondary",children:e?.role==="admin"?"مدير":"مستخدم"})})]}),p.jsx(tt,{"data-loc":"client/src/pages/SettingsPage.tsx:160",onClick:()=>r.mutate({companyName:t}),disabled:r.isPending||!t.trim(),children:r.isPending?"جاري الحفظ...":"حفظ التغييرات"})]})]})}function Ooe(){const{isAuthenticated:e}=Za();return e?p.jsx(mr,{"data-loc":"client/src/pages/SettingsPage.tsx:188",children:p.jsxs("div",{"data-loc":"client/src/pages/SettingsPage.tsx:189",className:"p-6 max-w-3xl mx-auto",children:[p.jsxs("div",{"data-loc":"client/src/pages/SettingsPage.tsx:190",className:"flex items-center gap-2 mb-6",children:[p.jsx(xw,{"data-loc":"client/src/pages/SettingsPage.tsx:191",size:20,className:"text-primary"}),p.jsx("h1",{"data-loc":"client/src/pages/SettingsPage.tsx:192",className:"text-2xl font-black",children:"الإعدادات"})]}),p.jsxs(yy,{"data-loc":"client/src/pages/SettingsPage.tsx:195",defaultValue:"currency",children:[p.jsxs(vy,{"data-loc":"client/src/pages/SettingsPage.tsx:196",className:"mb-6",children:[p.jsx(bs,{"data-loc":"client/src/pages/SettingsPage.tsx:197",value:"currency",children:"محول العملات"}),p.jsx(bs,{"data-loc":"client/src/pages/SettingsPage.tsx:198",value:"profile",children:"الملف الشخصي"})]}),p.jsx(ys,{"data-loc":"client/src/pages/SettingsPage.tsx:200",value:"currency",children:p.jsx(Poe,{"data-loc":"client/src/pages/SettingsPage.tsx:200"})}),p.jsx(ys,{"data-loc":"client/src/pages/SettingsPage.tsx:201",value:"profile",children:p.jsx(Roe,{"data-loc":"client/src/pages/SettingsPage.tsx:201"})})]})]})}):p.jsx(mr,{"data-loc":"client/src/pages/SettingsPage.tsx:176",children:p.jsx("div",{"data-loc":"client/src/pages/SettingsPage.tsx:177",className:"flex items-center justify-center h-full p-8",children:p.jsxs("div",{"data-loc":"client/src/pages/SettingsPage.tsx:178",className:"text-center",children:[p.jsx("p",{"data-loc":"client/src/pages/SettingsPage.tsx:179",className:"text-muted-foreground mb-4",children:"سجّل دخولك للوصول إلى الإعدادات"}),p.jsx(tt,{"data-loc":"client/src/pages/SettingsPage.tsx:180",onClick:()=>window.location.href=Zr(),children:"تسجيل الدخول"})]})})})}function Moe(){const[,e]=dw(),t=()=>{e("/")};return p.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:p.jsx(Ot,{"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:p.jsxs(Mt,{"data-loc":"client/src/pages/NotFound.tsx:16",className:"pt-8 pb-8 text-center",children:[p.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:17",className:"flex justify-center mb-6",children:p.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:18",className:"relative",children:[p.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:19",className:"absolute inset-0 bg-red-100 rounded-full animate-pulse"}),p.jsx(uF,{"data-loc":"client/src/pages/NotFound.tsx:20",className:"relative h-16 w-16 text-red-500"})]})}),p.jsx("h1",{"data-loc":"client/src/pages/NotFound.tsx:24",className:"text-4xl font-bold text-slate-900 mb-2",children:"404"}),p.jsx("h2",{"data-loc":"client/src/pages/NotFound.tsx:26",className:"text-xl font-semibold text-slate-700 mb-4",children:"Page Not Found"}),p.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.",p.jsx("br",{"data-loc":"client/src/pages/NotFound.tsx:32"}),"It may have been moved or deleted."]}),p.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:p.jsxs(tt,{"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:[p.jsx(gw,{"data-loc":"client/src/pages/NotFound.tsx:44",className:"w-4 h-4 mr-2"}),"Go Home"]})})]})})})}function Doe(){return p.jsxs(eF,{"data-loc":"client/src/App.tsx:23",children:[p.jsx(Gr,{"data-loc":"client/src/App.tsx:24",path:"/",component:DF}),p.jsx(Gr,{"data-loc":"client/src/App.tsx:25",path:"/dashboard",component:YF}),p.jsx(Gr,{"data-loc":"client/src/App.tsx:26",path:"/map",component:tq}),p.jsx(Gr,{"data-loc":"client/src/App.tsx:27",path:"/calculator",component:_q}),p.jsx(Gr,{"data-loc":"client/src/App.tsx:28",path:"/materials",component:Nq}),p.jsx(Gr,{"data-loc":"client/src/App.tsx:29",path:"/projects",component:Pq}),p.jsx(Gr,{"data-loc":"client/src/App.tsx:30",path:"/projects/:id",component:Oq}),p.jsx(Gr,{"data-loc":"client/src/App.tsx:31",path:"/assistant",component:aoe}),p.jsx(Gr,{"data-loc":"client/src/App.tsx:32",path:"/floor-plans",component:Aoe}),p.jsx(Gr,{"data-loc":"client/src/App.tsx:33",path:"/subscription",component:Coe}),p.jsx(Gr,{"data-loc":"client/src/App.tsx:34",path:"/reports",component:koe}),p.jsx(Gr,{"data-loc":"client/src/App.tsx:35",path:"/report/:token",component:Noe}),p.jsx(Gr,{"data-loc":"client/src/App.tsx:36",path:"/settings",component:Ooe}),p.jsx(Gr,{"data-loc":"client/src/App.tsx:37",component:Moe})]})}function Ioe(){return p.jsx(CF,{"data-loc":"client/src/App.tsx:44",children:p.jsx(NF,{"data-loc":"client/src/App.tsx:45",defaultTheme:"light",children:p.jsxs(Mz,{"data-loc":"client/src/App.tsx:46",children:[p.jsx(UL,{"data-loc":"client/src/App.tsx:47",position:"top-center",richColors:!0}),p.jsx(Doe,{"data-loc":"client/src/App.tsx:48"})]})})})}const mp=new $M,sR=e=>
969{!(e instanceof Ru)||typeof window>"u"||!(e.message===wI)||(window.location.href=Zr())};mp.getQueryCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.query.state.error;sR(t),console.error("[API Query Error]",t)}});mp.getMutationCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.mutation.state.error;sR(t),console.error("[API Mutation Error]",t)}});const Loe=Dt.createClient({links:[ZD({url:"/api/trpc",transformer:mi,fetch(e,t){return globalThis.fetch(e,{...t??{},credentials:"include"})}})]});RI.createRoot(document.getElementById("root")).render(p.jsx(Dt.Provider,{"data-loc":"client/src/main.tsx:56",client:Loe,queryClient:mp,children:p.jsx(GM,{"data-loc":"client/src/main.tsx:57",client:mp,children:p.jsx(Ioe,{"data-loc":"client/src/main.tsx:58"})})}));export{U as _,Voe as a,gp as g,Wt as k};

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.