/*! For license information please see stlite.js.LICENSE.txt */
var stlite;(()=>{var __webpack_modules__={14098:(e,t,n)=>{"use strict";n.d(t,{Iz:()=>o.I,cF:()=>r.c});n(4932);var r=n(30885),o=n(579)},579:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});class r{constructor(){this.promise=new Promise(((e,t)=>{this.resolveInternal=e,this.rejectInternal=t}))}resolve(e){this.resolveInternal(e)}reject(e){this.rejectInternal(e)}}},30885:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});const r=/\s#.*$/;function o(e){return e.split("\n").filter((e=>!e.startsWith("#"))).map((e=>e.replace(r,""))).map((e=>e.trim())).filter((e=>""!==e))}},4932:(e,t,n)=>{"use strict";new RegExp("[[(<=>!~;@]")},62847:(e,t,n)=>{"use strict";n.d(t,{y0:()=>N,uv:()=>E,IF:()=>k,F6:()=>b,BZ:()=>m,$i:()=>O,uP:()=>x,ee:()=>A,v_:()=>y,O0:()=>w,KA:()=>S,Wq:()=>v});var r=n(14098),o=n(38232);function i(e,t){if(function(e){try{return new URL(e),!0}catch{return!1}}(e))return e;if(e.startsWith("./")){if(null==t)throw new Error("baseUrl is null");return o.URLExt.join(t,e)}const n=t?new URL(t).origin:window.location.origin;return o.URLExt.join(n,e)}const a=new Map;class s{constructor(e){if(function(e){return e.origin===window.location.origin}(e))console.debug(`Loading a worker script from the same origin: ${e}`),this.worker=new Worker(e);else{console.debug(`Loading a worker script from a different origin: ${e}`);const t=function(e){const t=e.toString(),n=a.get(t);if(n)return console.debug(`Using a cached worker blob URL for ${t}`),n;const r=new Blob([`importScripts("${t}");`],{type:"text/javascript"}),o=URL.createObjectURL(r);return a.set(t,o),o}(e);this.worker=new Worker(t)}}}function l(e){if(!function(e){return"object"===typeof e&&null!=e&&Object.entries(e).every((e=>{let[t,n]=e;return"string"===typeof t&&function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||null===e||void 0===e}(n)}))}(e))throw new Error(`Invalid streamlitConfig: ${e}`)}const c=n.p+"pypi/stlite_lib-0.1.0-py3-none-any.whl",u=n.p+"pypi/streamlit-1.39.0-cp312-none-any.whl",p=/\/+$/,d=/^\/+/;class b{constructor(e){var t,o,a;if(this._isDisposed=!1,this._loaded=new r.Iz,this.handleWebSocketMessage=null,this.basePath=(null!==(t=e.basePath)&&void 0!==t?t:window.location.pathname).replace(p,"").replace(d,""),this.hostConfigResponse=null!==(o=e.hostConfigResponse)&&void 0!==o?o:{},this.onProgress=e.onProgress,this.onLoad=e.onLoad,this.onError=e.onError,this.onModuleAutoLoad=e.onModuleAutoLoad,e.worker)this._worker=e.worker;else{const e=new s(new URL(n.p+n.u(1898),n.b));this._worker=e.worker}let b;if(this._worker.onmessage=e=>{const t=e.ports[0];this._processWorkerMessage(e.data,t)},!e.skipStliteWheelsInstall){console.debug("Custom wheel URLs:",{STLITE_LIB_WHEEL:c,STREAMLIT_WHEEL:u});b={stliteLib:i(c,e.wheelBaseUrl),streamlit:i(u,e.wheelBaseUrl)},console.debug("Custom wheel resolved URLs:",b)}null!=e.streamlitConfig&&l(e.streamlitConfig),this._workerInitData={entrypoint:e.entrypoint,files:e.files,archives:e.archives,requirements:e.requirements,prebuiltPackageNames:e.prebuiltPackageNames,pyodideUrl:e.pyodideUrl,wheels:b,streamlitConfig:e.streamlitConfig,idbfsMountpoints:e.idbfsMountpoints,moduleAutoLoad:null!==(a=e.moduleAutoLoad)&&void 0!==a&&a}}get loaded(){return this._loaded.promise}connectWebSocket(e){return this._asyncPostMessage({type:"websocket:connect",data:{path:e}})}sendWebSocketMessage(e){return this._asyncPostMessage({type:"websocket:send",data:{payload:e}})}onWebSocketMessage(e){this.handleWebSocketMessage=e}sendHttpRequest(e){return this._asyncPostMessage({type:"http:request",data:{request:e}},"http:response").then((e=>({...e.response,headers:new Headers(Object.fromEntries(e.response.headers))})))}writeFile(e,t,n){return this._asyncPostMessage({type:"file:write",data:{path:e,data:t,opts:n}})}renameFile(e,t){return this._asyncPostMessage({type:"file:rename",data:{oldPath:e,newPath:t}})}readFile(e,t){return this._asyncPostMessage({type:"file:read",data:{path:e,opts:t}},"reply:file:read").then((e=>e.content))}unlink(e){return this._asyncPostMessage({type:"file:unlink",data:{path:e}})}install(e){return this._asyncPostMessage({type:"install",data:{requirements:e}})}reboot(e){return this._asyncPostMessage({type:"reboot",data:{entrypoint:e}})}_asyncPostMessage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"reply";return new Promise(((n,r)=>{const o=new MessageChannel;o.port1.onmessage=e=>{o.port1.close();const i=e.data;if(i.error)r(i.error);else{if(i.type!==t)throw new Error(`Unexpected reply type "${i.type}"`);n(i.data)}},this._worker.postMessage(e,[o.port2])}))}_processWorkerMessage(e,t){switch(e.type){case"event:start":this._worker.postMessage({type:"initData",data:this._workerInitData});break;case"event:progress":this.onProgress&&this.onProgress(e.data.message);break;case"event:error":this.onError&&this.onError(e.data.error);break;case"event:loaded":this._loaded.resolve(),this.onLoad&&this.onLoad();break;case"websocket:message":{const{payload:t}=e.data;this.handleWebSocketMessage&&this.handleWebSocketMessage(t);break}case"event:moduleAutoLoad":if(null==t)throw new Error("Port is required for moduleAutoLoad event");this.onModuleAutoLoad&&this.onModuleAutoLoad(e.data.packagesToLoad,new Promise(((e,n)=>{t.onmessage=r=>{const o=r.data;"moduleAutoLoad:success"===o.type?e(o.data.loadedPackages):n(o.error),t.close()}})))}}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._worker.terminate(),this._isDisposed=!0)}}var f=n(37574),h=n(30969);const m=h.createContext(void 0),g=m.Provider;function O(e){const{children:t,kernel:n}=e,r=(0,h.useMemo)((()=>({kernel:n})),[n]);return(0,f.jsx)(g,{value:r,children:t})}function y(){const e=(0,h.useContext)(m);if(null==e)throw new Error("useStliteKernel() must be inside ");return e.kernel}function M(e,t){return e.sendHttpRequest({method:"GET",path:t,headers:{},body:""}).then((e=>{let{statusCode:t,headers:n,body:r}=e;if(200!==t)throw new Error(`Failed to fetch media object: ${t}`);const o=n.get("Content-Type"),i=new Blob([r],o?{type:o}:void 0);return URL.createObjectURL(i)}))}function z(e,t){return t.startsWith("/media")?M(e,t):Promise.resolve(t)}function A(e,t){return Promise.all([z(e,t.image),z(e,t.iconImage)]).then((e=>{let[n,r]=e;return t.image=n,t.iconImage=r,t}))}function v(e){const t=y(),[n,r]=(0,h.useState)(null);return(0,h.useEffect)((()=>{let n=!1;const o=[];return null==e?r(null):A(t,e).then((e=>{n||(o.push(e.image),o.push(e.iconImage),r(e))})),()=>{o.forEach((e=>{URL.revokeObjectURL(e)})),n=!0}}),[t,e]),n}function w(e){const t=y(),[n,r]=(0,h.useState)(e);return(0,h.useEffect)((()=>{if(null==t)return;if(!e.startsWith("/media"))return;let n=!1;const o=[];return M(t,e).then((e=>{n||(o.push(e),r(e))})),()=>{n=!0,o.forEach((e=>{URL.revokeObjectURL(e)}))}}),[t,e]),n}function S(e){const[t,n]=(0,h.useState)(e),r=y();return(0,h.useEffect)((()=>{if(null==r)return;let t=!1;const o=[],i=e.map((e=>null==e.url?e:e.url.startsWith("/media")?M(r,e.url).then((n=>t?e:(o.push(n),{...e,url:n}))):e));return Promise.all(i).then((e=>{t||n(e)})),()=>{t=!0,o.forEach((e=>{URL.revokeObjectURL(e)}))}}),[r,e]),t}function x(e,t){e.sendHttpRequest({method:"GET",path:`${t}?title=${encodeURIComponent(document.title)}`,headers:{},body:""}).then((e=>{let{statusCode:t,headers:n,body:r}=e;if(200!==t)return;const o=n.get("Content-Disposition"),i=null!=o?function(e){const t=/filename="([^"]*?)"/.exec(e);return null==t?"":t[1]}(o):"",a=n.get("Content-Type"),s=new Blob([r],a?{type:a}:void 0),l=URL.createObjectURL(s),c=document.createElement("a");c.setAttribute("href",l),c.setAttribute("target","_blank"),c.setAttribute("download",i),c.click(),URL.revokeObjectURL(l),c.remove()}))}const E="xxx",k=99999,q=E+":"+k.toString();function T(e){const t=e.split("/").slice(0,-1).join("/");return t.startsWith("/")?t:"/"+t}function _(e,t,n){const r=T(t);if(!(n.host===e&&n.pathname.startsWith(r)))return null;const o=n.pathname.slice(r.length);return o.startsWith("/")?o.slice(1):o}const R=h.forwardRef(((e,t)=>{let{src:n,...r}=e;const i=y(),[a,s]=(0,h.useState)();(0,h.useEffect)((()=>{if(null==i)return;if(!n.startsWith("/component"))return;let e=!1;return i.sendHttpRequest({method:"GET",path:n,headers:{},body:""}).then((t=>{let{statusCode:n,headers:r,body:o}=t;if(e)return;if(200!==n)return;const i=r.get("Content-Type");new Blob([o],i?{type:i}:void 0).text().then((t=>{e||s(t)}))})),()=>{e=!0}}),[i,n]);const l=(0,h.useCallback)((e=>{var t;const r=null===(t=e.target.contentWindow)||void 0===t?void 0:t.document;null!=r?function(e,t,n){const r=[],i=t.getElementsByTagName("script");for(const s of i){if(""===s.src)continue;const i=_(window.location.host,window.location.pathname,new URL(s.src));if(null==i)continue;const a=o.URLExt.join(n,i),l=e.sendHttpRequest({method:"GET",headers:{},path:a,body:""}).then((e=>{let{statusCode:n,headers:r,body:o}=e;if(200!==n)return;const i=r.get("Content-Type");return new Blob([o],i?{type:i}:void 0).text().then((e=>{const n=t.createElement("script");n.text=e,n.type="text/javascript",n.setAttribute("data-stlite",""),s.replaceWith(n)}))}));r.push(l)}const a=t.querySelectorAll("link[rel=stylesheet]");for(const s of a){const i=_(window.location.host,window.location.pathname,new URL(s.href));if(null==i)continue;const a=o.URLExt.join(n,i),l=e.sendHttpRequest({method:"GET",headers:{},path:a,body:""}).then((e=>{let{statusCode:n,headers:r,body:o}=e;if(200!==n)return;const i=r.get("Content-Type");return new Blob([o],i?{type:i}:void 0).text().then((e=>{const n=t.createElement("style");n.innerHTML=e,n.setAttribute("data-stlite",""),s.replaceWith(n)}))}));r.push(l)}Promise.all(r).then()}(i,r,T(n)):console.warn("document not found in iframe")}),[i,n]);return(0,f.jsx)("iframe",{...r,srcDoc:a,onLoad:l,ref:t})}));R.displayName="InnerIFrame";const C=h.forwardRef(((e,t)=>{const n=function(e,t){const n=(q+"/"+e).replace(/\/$/,""),r=new RegExp(`https?://${n}(/.*?$)`),o=t.match(r);return null==o?null:o[1]}(y().basePath,e.src);return null==n?(0,f.jsx)("iframe",{...e,ref:t}):(0,f.jsx)(R,{...e,src:n,ref:t})}));C.displayName="StliteCustomComponentIFrame";const N=C},69016:(e,t,n)=>{"use strict";n.d(t,{B:()=>o,td:()=>r});const r=3e3===+window.location.port,o=!1},95407:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(30969).createContext(!1)},60906:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(30969).createContext(!1)},64756:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(30969),o=n(2906);const i=r.createContext({isFullScreen:!1,setFullScreen:()=>{},addScriptFinishedHandler:()=>{},removeScriptFinishedHandler:()=>{},activeTheme:o.wE,setTheme:()=>{},availableThemes:[],addThemes:()=>{},onPageChange:()=>{},currentPageScriptHash:"",libConfig:{},fragmentIdsThisRun:[]})},94191:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f,O:()=>b});n(30969);var r=n(91439),o=n(21434),i=n(35197),a=n(76921),s=n(83405),l=n(3254),c=n(32160),u=n(84215);const p=(0,s.Z)("div",{target:"e1eexb540"})((e=>{let{theme:t}=e;return{display:"flex",gap:t.spacing.sm,width:"100%",[`${l.Er}, ${l.xL}, ${u.m}`]:{position:"relative",top:"2px"},[`${c.l1} code`]:{paddingRight:t.spacing.lg}}}),"");var d=n(37574);function b(e){switch(e){case r.bZ.Format.ERROR:return a.h.ERROR;case r.bZ.Format.INFO:return a.h.INFO;case r.bZ.Format.SUCCESS:return a.h.SUCCESS;case r.bZ.Format.WARNING:return a.h.WARNING;default:throw new Error(`Unexpected alert type: ${e}`)}}function f(e){let{icon:t,body:n,kind:r,width:s}=e;const l={width:t?"calc(100% - 1.75rem)":"100%"};return(0,d.jsx)("div",{className:"stAlert","data-testid":"stAlert",children:(0,d.jsx)(a.Z,{width:s,kind:r,children:(0,d.jsxs)(p,{children:[t&&(0,d.jsx)(i.p,{iconValue:t,size:"lg",testid:"stAlertDynamicIcon"}),(0,d.jsx)(o.ZP,{source:n,allowHTML:!1,style:l})]})})})}},15945:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>V});var r=n(30969),o=n(7896),i=n(56666);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return function(e){if(0===e.length||1===e.length)return e;var t=e.join(".");return l[t]||(l[t]=function(e){var t=e.length;return 0===t||1===t?e:2===t?[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])]:3===t?[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])]:t>=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0}(e)),l[t]}(e.filter((function(e){return"token"!==e}))).reduce((function(e,t){return s(s({},e),n[t])}),t)}function u(e){return e.join(" ")}function p(e){var t=e.node,n=e.stylesheet,i=e.style,a=void 0===i?{}:i,l=e.useInlineStyles,d=e.key,b=t.properties,f=t.type,h=t.tagName,m=t.value;if("text"===f)return m;if(h){var g,O=function(e,t){var n=0;return function(r){return n+=1,r.map((function(r,o){return p({node:r,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})}))}}(n,l);if(l){var y=Object.keys(n).reduce((function(e,t){return t.split(".").forEach((function(t){e.includes(t)||e.push(t)})),e}),[]),M=b.className&&b.className.includes("token")?["token"]:[],z=b.className&&M.concat(b.className.filter((function(e){return!y.includes(e)})));g=s(s({},b),{},{className:u(z)||void 0,style:c(b.className,Object.assign({},b.style,a),n)})}else g=s(s({},b),{},{className:u(b.className)});var A=O(t.children);return r.createElement(h,(0,o.Z)({key:d},g),A)}}var d=n(59740),b=n(38777);const f=function(e,t){return-1!==e.listLanguages().indexOf(t)};var h=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=0;r2&&void 0!==arguments[2]?arguments[2]:[];return t||c.length>0?function(e,t){return A({children:e,lineNumber:t,lineNumberStyle:s,largestLineNumber:a,showInlineLineNumbers:o,lineProps:n,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:r,wrapLongLines:l})}(e,i,c):function(e,t){if(r&&t&&o){var n=z(s,t,a);e.unshift(M(t,n))}return e}(e,i)}for(var h=function(){var e=u[b],t=e.children[0].value;if(t.match(O)){var n=t.split("\n");n.forEach((function(t,o){var a=r&&p.length+i,s={type:"text",value:"".concat(t,"\n")};if(0===o){var l=f(u.slice(d+1,b).concat(A({children:[s],className:e.properties.className})),a);p.push(l)}else if(o===n.length-1){var c=u[b+1]&&u[b+1].children&&u[b+1].children[0],h={type:"text",value:"".concat(t)};if(c){var m=A({children:[h],className:e.properties.className});u.splice(b+1,0,m)}else{var g=f([h],a,e.properties.className);p.push(g)}}else{var O=f([s],a,e.properties.className);p.push(O)}})),d=b}b++};b code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},function(e){var t=e.language,n=e.children,o=e.style,i=void 0===o?q:o,a=e.customStyle,s=void 0===a?{}:a,l=e.codeTagProps,c=void 0===l?{className:t?"language-".concat(t):void 0,style:g(g({},i['code[class*="language-"]']),i['code[class*="language-'.concat(t,'"]')])}:l,u=e.useInlineStyles,p=void 0===u||u,b=e.showLineNumbers,m=void 0!==b&&b,O=e.showInlineLineNumbers,M=void 0===O||O,z=e.startingLineNumber,A=void 0===z?1:z,v=e.lineNumberContainerStyle,E=e.lineNumberStyle,T=void 0===E?{}:E,_=e.wrapLines,R=e.wrapLongLines,C=void 0!==R&&R,N=e.lineProps,I=void 0===N?{}:N,W=e.renderer,P=e.PreTag,L=void 0===P?"pre":P,j=e.CodeTag,D=void 0===j?"code":j,B=e.code,F=void 0===B?(Array.isArray(n)?n[0]:n)||"":B,V=e.astGenerator,U=(0,d.Z)(e,h);V=V||k;var H=m?r.createElement(y,{containerStyle:v,codeStyle:c.style||{},numberStyle:T,startingLineNumber:A,codeString:F}):null,X=i.hljs||i['pre[class*="language-"]']||{backgroundColor:"#fff"},G=x(V)?"hljs":"prismjs",$=p?Object.assign({},U,{style:Object.assign({},X,s)}):Object.assign({},U,{className:U.className?"".concat(G," ").concat(U.className):G,style:Object.assign({},s)});if(c.style=g(g({},c.style),{},C?{whiteSpace:"pre-wrap"}:{whiteSpace:"pre"}),!V)return r.createElement(L,$,H,r.createElement(D,c,F));(void 0===_&&W||C)&&(_=!0),W=W||S;var K=[{type:"text",value:F}],Y=function(e){var t=e.astGenerator,n=e.language,r=e.code,o=e.defaultCodeValue;if(x(t)){var i=f(t,n);return"text"===n?{value:o,language:"text"}:i?t.highlight(n,r):t.highlightAuto(r)}try{return n&&"text"!==n?{value:t.highlight(r,n)}:{value:o}}catch(a){return{value:o}}}({astGenerator:V,language:t,code:F,defaultCodeValue:K});null===Y.language&&(Y.value=K);var Z=w(Y,_,I,m,M,A,Y.value.length+A,T,C);return r.createElement(L,$,r.createElement(D,c,!M&&H,W({rows:Z,stylesheet:i,useInlineStyles:p})))});T.supportedLanguages=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];const _=T;var R=n(26303),C=n.n(R),N=n(24974),I=n.n(N);function W(){return W=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var L=(0,r.forwardRef)((function(e,t){var n=e.color,o=void 0===n?"currentColor":n,i=e.size,a=void 0===i?24:i,s=P(e,["color","size"]);return r.createElement("svg",W({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:o,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),r.createElement("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),r.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"}))}));L.propTypes={color:I().string,size:I().oneOfType([I().string,I().number])},L.displayName="Copy";const j=L;var D=n(32160),B=n(37574);const F=e=>{let{text:t}=e;const n=(0,r.useRef)(null),o=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const e=n.current;var t;null!==e&&(o.current=new(C())(e,{container:null!==(t=e.parentElement)&&void 0!==t?t:void 0}));return()=>{null!==o.current&&o.current.destroy()}}),[]),(0,B.jsx)(D.qR,{"data-testid":"stCodeCopyButton",title:"Copy to clipboard",ref:n,"data-clipboard-text":t,style:{top:0,right:0},children:(0,B.jsx)(j,{size:"16"})})};function V(e){let{language:t,showLineNumbers:n,wrapLines:o,children:i}=e;const a=(0,r.useCallback)((e=>{let{rows:t,stylesheet:n,useInlineStyles:r}=e;return t.map(((e,t)=>{const o=e.children;if(o){const t=o.shift();t&&(e.children=[t,{children:o,properties:{className:[]},tagName:"span",type:"element"}])}return p({node:e,stylesheet:n,useInlineStyles:r,key:t})}))}),[]);return(0,B.jsxs)(D.l1,{className:"stCode","data-testid":"stCode",children:[(0,B.jsx)(D.nr,{children:(0,B.jsx)(_,{language:t,PreTag:"div",customStyle:{backgroundColor:"transparent"},style:{},lineNumberStyle:{},showLineNumbers:n,wrapLongLines:o,renderer:n&&o?a:void 0,children:i})}),"string"===typeof i&&""!==i.trim()&&(0,B.jsx)(D.ef,{children:(0,B.jsx)(F,{text:i})})]})}},32160:(e,t,n)=>{"use strict";n.d(t,{ef:()=>i,l1:()=>a,nr:()=>o,qR:()=>s});var r=n(83405);const o=(0,r.Z)("pre",{target:"e1ycw9pz3"})((e=>{let{theme:t}=e;return{margin:0,paddingRight:"2.75rem",color:t.colors.bodyText,borderRadius:t.radii.default,".comment.linenumber":{color:t.colors.fadedText40,fontSize:t.fontSizes.twoSm,alignSelf:"center",minWidth:`${t.spacing.threeXL} !important`},".token.comment, .token.prolog, .token.doctype, .token.cdata":{color:"slategray"},".token.punctuation":{color:"#999"},".namespace":{opacity:.7},".token.attr-name, .token.property, .token.variable":{color:t.colors.lightBlue80},".token.boolean, .token.constant, .token.symbol":{color:t.colors.green70},".token.number, .token.regex":{color:t.colors.blueGreen80},".token.string, .token.char, .token.attr-value":{color:t.colors.green80},".token.operator, .token.entity":{color:t.colors.orange90},".token.url":{color:t.colors.purple80},".token.decorator, .token.atrule":{color:t.colors.orange90},".token.keyword, .token.tag":{color:t.colors.blue70},".token.function, .token.class-name, .token.selector":{color:t.colors.blue70,fontWeight:"bold"},".token.important":{color:t.colors.red70,fontWeight:"bold"},".token.comment":{color:t.colors.gray70,fontStyle:"italic"},".token.italic":{fontStyle:"italic"},".token.entity":{cursor:"help"},".token.deleted.line, .token.deleted.prefix":{color:t.colors.red70},".token.inserted.line, .token.inserted.prefix":{color:t.colors.green70},".token.unchanged.line":{color:t.colors.gray70}}}),""),i=(0,r.Z)("div",{target:"e1ycw9pz2"})((e=>{let{theme:t}=e;return{opacity:0,padding:`${t.spacing.sm} ${t.spacing.sm} 0 0`,top:0,right:0,position:"absolute",width:"100%",height:"100%",backgroundColor:t.colors.transparent,zIndex:t.zIndices.sidebar+1,display:"flex",justifyContent:"flex-end",alignItems:"flex-start",transition:"opacity 300ms 150ms",pointerEvents:"none"}}),""),a=(0,r.Z)("div",{target:"e1ycw9pz1"})((e=>{let{theme:t}=e;return{position:"relative",marginLeft:t.spacing.none,marginRight:t.spacing.none,marginTop:t.spacing.none,marginBottom:void 0,"&:hover":{[`${i}`]:{opacity:1}}}}),""),s=(0,r.Z)("button",{target:"e1ycw9pz0"})((e=>{let{theme:t}=e;return{pointerEvents:"auto",height:t.iconSizes.threeXL,width:t.iconSizes.threeXL,padding:t.spacing.none,border:"none",backgroundColor:t.colors.transparent,color:t.colors.fadedText60,transform:"scale(0)",[`${a}:hover &, &:active, &:focus, &:hover`]:{opacity:1,transform:"scale(1)",outline:"none",transition:"none",color:t.colors.bodyText}}}),"")},24760:(e,t,n)=>{"use strict";n.d(t,{O:()=>m});var r=n(30969),o=n(91439),i=n(83405);const a={animationDuration:"750ms",animationName:n(54470).F4`
0%, 100% {
opacity: 0.5;
}
50% {
opacity: 1;
}
`,animationTimingFunction:"ease-in",animationDirection:"normal",animationIterationCount:"infinite"},s=(0,i.Z)("div",{target:"e1lmee1o4"})((e=>{let{theme:t}=e;return{display:"flex",flexDirection:"column",gap:t.spacing.lg}}),""),l=(0,i.Z)("div",{target:"e1lmee1o3"})((e=>{let{theme:t}=e;return{height:t.fontSizes.fourXL,width:"17rem",maxWidth:"75%",background:t.colors.skeletonBackgroundColor||t.colors.darkenedBgMix15,borderRadius:t.radii.default,...a}}),""),c=(0,i.Z)("div",{target:"e1lmee1o2"})((e=>{let{theme:t}=e;return{display:"flex",flexDirection:"column",gap:t.spacing.sm}}),""),u=(0,i.Z)("div",{target:"e1lmee1o1"})((e=>{let{theme:t,width:n}=e;return{height:t.fontSizes.md,width:n,background:t.colors.skeletonBackgroundColor||t.colors.darkenedBgMix15,borderRadius:t.radii.default,...a}}),""),p=(0,i.Z)("div",{target:"e1lmee1o0"})((e=>{let{theme:t,height:n,width:r}=e;return{height:null!==n&&void 0!==n?n:t.fontSizes.fourXL,width:null!==r&&void 0!==r?r:"100%",background:t.colors.skeletonBackgroundColor||t.colors.darkenedBgMix15,borderRadius:t.radii.default,...a}}),"");var d=n(37574);const b=()=>{const[e,t]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=setTimeout((()=>{t(!0)}),500);return()=>{clearTimeout(e)}}),[]),e?(0,d.jsxs)(s,{className:"stAppSkeleton","data-testid":"stAppSkeleton",children:[(0,d.jsx)(l,{}),(0,d.jsxs)(c,{children:[(0,d.jsx)(u,{width:"98%"}),(0,d.jsx)(u,{width:"100%"}),(0,d.jsx)(u,{width:"96%"}),(0,d.jsx)(u,{width:"65%"})]}),(0,d.jsx)(p,{width:"75%",height:"9rem"})]}):(0,d.jsx)(d.Fragment,{})},f=(0,r.memo)(b),h=e=>{let{element:t}=e;return t.style==o.Od.SkeletonStyle.APP?(0,d.jsx)(f,{}):(0,d.jsx)(p,{className:"stSkeleton","data-testid":"stSkeleton",height:null!==t&&void 0!==t&&t.height?t.height+"px":void 0})},m=(0,r.memo)(h)},76921:(e,t,n)=>{"use strict";n.d(t,{h:()=>M,Z:()=>A});var r=n(30969),o=n(96696),i=n(3147),a=n(70692);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{theme:t}=e;return{pre:{backgroundColor:t.colors.transparent,paddingTop:t.spacing.lg,paddingBottom:t.spacing.lg,paddingRight:t.spacing.lg,paddingLeft:t.spacing.lg,border:`${t.sizes.borderWidth} solid ${t.colors.borderColor}`,"pre, code":{backgroundColor:t.colors.transparent,color:"inherit"}},code:{backgroundColor:t.colors.transparent,padding:t.spacing.none},"pre, code":{color:"inherit"},a:{color:"inherit",textDecoration:"underline"}}}),"");var y=n(37574);let M=function(e){return e.ERROR="error",e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e}({});function z(e){switch(e){case M.ERROR:return o.TO.negative;case M.INFO:return o.TO.info;case M.SUCCESS:return o.TO.positive;case M.WARNING:return o.TO.warning;default:throw new Error(`Unexpected alert type: ${e}`)}}function A(e){let{kind:t,width:n,children:r}=e;const o=(0,g.u)(),i=t.charAt(0).toUpperCase()+t.slice(1);return(0,y.jsx)(m,{kind:z(t),overrides:{Body:{style:{marginTop:o.spacing.none,marginBottom:o.spacing.none,marginLeft:o.spacing.none,marginRight:o.spacing.none,width:n?n.toString():void 0,border:0,borderTopRightRadius:o.radii.default,borderBottomRightRadius:o.radii.default,borderTopLeftRadius:o.radii.default,borderBottomLeftRadius:o.radii.default},props:{"data-testid":"stAlertContainer",className:"stAlertContainer"}},InnerContainer:{style:{width:"100%",lineHeight:o.lineHeights.alert}}},children:(0,y.jsx)(O,{"data-testid":`stAlertContent${i}`,children:r})})}},64372:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>i});n(30969);var r=n(1454),o=n(37574);const i=function(e){var t,n;const{kind:i,size:a,disabled:s,onClick:l,fluidWidth:c,children:u,autoFocus:p}=e;let d=r.Db;return i===r.nW.SECONDARY?d=r.H7:i===r.nW.TERTIARY?d=r.ob:i===r.nW.LINK?d=r.UN:i===r.nW.SEGMENT?d=r.Qh:i===r.nW.SEGMENT_ACTIVE?d=r.AT:i===r.nW.PILLS?d=r.eY:i===r.nW.PILLS_ACTIVE?d=r.c7:i===r.nW.BORDERLESS_ICON?d=r.a1:i===r.nW.BORDERLESS_ICON_ACTIVE?d=r.qt:i===r.nW.MINIMAL?d=r.hV:i===r.nW.PRIMARY_FORM_SUBMIT?d=r.Hb:i===r.nW.SECONDARY_FORM_SUBMIT?d=r.MZ:i===r.nW.HEADER_BUTTON?d=r.X3:i===r.nW.HEADER_NO_PADDING?d=r.s8:i===r.nW.ELEMENT_TOOLBAR&&(d=r.Zc),(0,o.jsx)(d,{kind:i,size:null!==a&&void 0!==a?a:r.V5.MEDIUM,fluidWidth:c||!1,disabled:s||!1,onClick:l||(()=>{}),autoFocus:p||!1,"data-testid":null!==(t=e["data-testid"])&&void 0!==t?t:`stBaseButton-${i}`,"aria-label":null!==(n=e["aria-label"])&&void 0!==n?n:"",children:u})}},93548:(e,t,n)=>{"use strict";n.d(t,{t:()=>s});n(30969);var r=n(63705),o=n(62606),i=n(1454),a=n(37574);function s(e){let{children:t,help:n,placement:s}=e;return n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.PM,{children:(0,a.jsx)(r.Z,{content:n,placement:s||o.u.TOP,children:t})}),(0,a.jsx)(i.zU,{children:t})]}):t}},78482:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});n(30969);var r=n(35197),o=n(21434),i=n(37574);const a=e=>{let{icon:t,label:n}=e;const a=t.startsWith(":material"),s=a?"0 sm 0 0":"0 md 0 0";return(0,i.jsxs)(i.Fragment,{children:[t&&(0,i.jsx)(r.p,{size:a?"lg":"base",margin:n?s:"0",color:"inherit",iconValue:t}),n&&(0,i.jsx)(o.ZP,{source:n,allowHTML:!1,isLabel:!0,largerLabel:!0,disableLinks:!0})]})}},1454:(e,t,n)=>{"use strict";n.d(t,{AT:()=>g,Db:()=>c,H7:()=>u,Hb:()=>f,MZ:()=>h,PM:()=>w,Qh:()=>m,UN:()=>d,V5:()=>a,X3:()=>M,Zc:()=>x,a1:()=>A,c7:()=>y,eY:()=>O,hV:()=>b,nW:()=>i,ob:()=>p,qt:()=>v,s8:()=>z,zU:()=>S});var r=n(83405),o=n(41045);let i=function(e){return e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.LINK="link",e.SEGMENT="icon",e.SEGMENT_ACTIVE="iconActive",e.BORDERLESS_ICON="borderlessIcon",e.BORDERLESS_ICON_ACTIVE="borderlessIconActive",e.MINIMAL="minimal",e.PRIMARY_FORM_SUBMIT="primaryFormSubmit",e.SECONDARY_FORM_SUBMIT="secondaryFormSubmit",e.HEADER_BUTTON="header",e.HEADER_NO_PADDING="headerNoPadding",e.ELEMENT_TOOLBAR="elementToolbar",e.PILLS="pills",e.PILLS_ACTIVE="pillsActive",e}({}),a=function(e){return e.XSMALL="xsmall",e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e}({});function s(e,t){switch(e){case a.XSMALL:return{padding:`${t.spacing.twoXS} ${t.spacing.sm}`,fontSize:t.fontSizes.sm};case a.SMALL:return{padding:`${t.spacing.twoXS} ${t.spacing.md}`};case a.LARGE:return{padding:`${t.spacing.md} ${t.spacing.md}`};default:return{padding:`${t.spacing.xs} ${t.spacing.md}`}}}const l=(0,r.Z)("button",{target:"ef3psqc18"})((e=>{let{fluidWidth:t,size:n,theme:r}=e;const i="number"==typeof t?`${t}px`:"100%";return{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:r.fontWeights.normal,padding:`${r.spacing.xs} ${r.spacing.md}`,borderRadius:r.radii.default,minHeight:r.sizes.minElementHeight,margin:r.spacing.none,lineHeight:r.lineHeights.base,color:"inherit",width:t?i:"auto",userSelect:"none","&:focus":{outline:"none"},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${(0,o.DZ)(r.colors.primary,.5)}`},...s(n,r)}}),""),c=(0,r.Z)(l,{target:"ef3psqc17"})((e=>{let{theme:t}=e;return{backgroundColor:t.colors.primary,color:t.colors.white,border:`${t.sizes.borderWidth} solid ${t.colors.primary}`,"&:hover":{backgroundColor:(0,o._j)(t.colors.primary,.05)},"&:active":{backgroundColor:"transparent",color:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:t.colors.borderColor,backgroundColor:t.colors.transparent,color:t.colors.fadedText40,cursor:"not-allowed"}}}),""),u=(0,r.Z)(l,{target:"ef3psqc16"})((e=>{let{theme:t}=e;return{backgroundColor:t.colors.lightenedBg05,border:`${t.sizes.borderWidth} solid ${t.colors.borderColor}`,"&:hover":{borderColor:t.colors.primary,color:t.colors.primary},"&:active":{color:t.colors.white,borderColor:t.colors.primary,backgroundColor:t.colors.primary},"&:focus:not(:active)":{borderColor:t.colors.primary,color:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:t.colors.borderColor,backgroundColor:t.colors.transparent,color:t.colors.fadedText40,cursor:"not-allowed"}}}),""),p=(0,r.Z)(l,{target:"ef3psqc15"})((e=>{let{theme:t}=e;return{backgroundColor:t.colors.transparent,border:`${t.sizes.borderWidth} solid ${t.colors.transparent}`,"&:hover":{borderColor:t.colors.transparent,color:t.colors.primary},"&:active":{color:t.colors.primary,borderColor:t.colors.transparent,backgroundColor:t.colors.transparent},"&:focus:not(:active)":{borderColor:t.colors.transparent,color:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.lightGray,borderColor:t.colors.transparent,color:t.colors.gray}}}),""),d=(0,r.Z)(l,{target:"ef3psqc14"})((e=>{let{theme:t}=e;return{backgroundColor:t.colors.transparent,padding:t.spacing.none,border:"none",color:t.colors.primary,"&:hover":{textDecoration:"underline"},"&:active":{backgroundColor:t.colors.transparent,color:t.colors.primary,textDecoration:"underline"},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.lightGray,borderColor:t.colors.transparent,color:t.colors.gray}}}),""),b=(0,r.Z)(l,{target:"ef3psqc13"})((e=>{let{theme:t}=e;return{backgroundColor:t.colors.transparent,border:"none",boxShadow:"none",padding:t.spacing.none,"&:hover, &:active, &:focus-visible":{color:t.colors.primary}}}),""),f=(0,r.Z)(c,{target:"ef3psqc12"})(""),h=(0,r.Z)(u,{target:"ef3psqc11"})(""),m=(0,r.Z)(l,{target:"ef3psqc10"})((e=>{let{theme:t}=e;return{backgroundColor:t.colors.transparent,border:`${t.sizes.borderWidth} solid ${t.colors.borderColor}`,flex:"1 1 0",padding:0,"&:hover":{borderColor:t.colors.primary,color:t.colors.primary},"&:active":{backgroundColor:t.colors.primary,borderColor:t.colors.primary,color:t.colors.white},"&:not(:active)":{boxShadow:"none"},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.lightGray,borderColor:t.colors.transparent,color:t.colors.gray,cursor:"not-allowed"}}}),""),g=(0,r.Z)(m,{target:"ef3psqc9"})((e=>{let{theme:t}=e;return{backgroundColor:t.colors.primary,borderColor:t.colors.primary,color:t.colors.white,"&:hover":{backgroundColor:t.colors.transparent,borderColor:t.colors.primary,color:t.colors.primary}}}),""),O=(0,r.Z)(l,{target:"ef3psqc8"})((e=>{let{theme:t}=e;return{background:t.colors.bgColor,color:t.colors.text,border:`${t.sizes.borderWidth} solid ${t.colors.borderColor}`,borderRadius:t.radii.xxxl,padding:`${t.spacing.twoXS} ${t.spacing.md}`,fontSize:t.fontSizes.sm,lineHeight:t.lineHeights.base,fontWeight:t.fontWeights.normal,height:t.sizes.largeLogoHeight,minHeight:t.sizes.largeLogoHeight,maxWidth:t.sizes.contentMaxWidth,gap:t.spacing.xs,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&:hover":{borderColor:t.colors.primary,color:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{color:t.colors.fadedText20,borderColor:t.colors.fadedText20,cursor:"not-allowed"},"& div":{textOverflow:"ellipsis",overflow:"hidden"},"& p":{fontSize:t.fontSizes.sm,textOverflow:"ellipsis",overflow:"hidden"}}}),""),y=(0,r.Z)(O,{target:"ef3psqc7"})((e=>{let{theme:t}=e;return{backgroundColor:(0,o.DZ)(t.colors.primary,.9),borderColor:t.colors.primary,color:t.colors.primary,"&:hover":{backgroundColor:(0,o.DZ)(t.colors.primary,.8),borderColor:t.colors.primary,color:t.colors.primary}}}),""),M=(0,r.Z)(l,{target:"ef3psqc6"})((e=>{let{theme:t}=e;return{backgroundColor:t.colors.transparent,border:"none",padding:t.spacing.sm,fontSize:t.fontSizes.sm,marginLeft:t.spacing.threeXS,marginRight:t.spacing.threeXS,lineHeight:t.lineHeights.none,minWidth:t.spacing.threeXL,minHeight:t.spacing.threeXL,"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${(0,o.DZ)(t.colors.gray90,.8)}`},"&:hover":{backgroundColor:t.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.lightGray,borderColor:t.colors.transparent,color:t.colors.gray}}}),""),z=(0,r.Z)(M,{target:"ef3psqc5"})((()=>({padding:0})),""),A=(0,r.Z)(l,{target:"ef3psqc4"})((e=>{let{size:t,theme:n}=e;const r={[a.XSMALL]:n.spacing.threeXS,[a.SMALL]:n.spacing.twoXS,[a.MEDIUM]:n.spacing.md,[a.LARGE]:n.spacing.lg};return{backgroundColor:n.colors.transparent,color:n.colors.fadedText60,padding:r[t],marginLeft:n.spacing.none,marginRight:n.spacing.none,border:"none",display:"flex",minHeight:"unset","&:focus":{boxShadow:"none",outline:"none"},"&:hover":{color:n.colors.text},"&:disabled, &:disabled:hover, &:disabled:active":{color:n.colors.fadedText20,cursor:"not-allowed"}}}),""),v=(0,r.Z)(A,{target:"ef3psqc3"})((e=>{let{theme:t}=e;return{color:t.colors.bodyText}}),""),w=(0,r.Z)("div",{target:"ef3psqc2"})((e=>{let{theme:t}=e;return{display:"block",[`@media (max-width: ${t.breakpoints.sm})`]:{display:"none"}}}),""),S=(0,r.Z)("div",{target:"ef3psqc1"})((e=>{let{theme:t}=e;return{display:"none",[`@media (max-width: ${t.breakpoints.sm})`]:{display:"block"}}}),""),x=(0,r.Z)(l,{target:"ef3psqc0"})((e=>{let{theme:t}=e;return{backgroundColor:t.colors.transparent,border:"none",padding:t.spacing.xs,fontSize:t.fontSizes.twoSm,marginLeft:t.spacing.none,marginRight:t.spacing.none,display:"flex",gap:t.spacing.xs,alignItems:"center",minHeight:"unset",lineHeight:t.iconSizes.md,"&:focus":{outline:"none",border:"none",boxShadow:"none"},"&:focus-visible":{outline:"none",border:"none",boxShadow:"none",backgroundColor:t.colors.darkenedBgMix25},"&:hover":{backgroundColor:t.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.lightGray,borderColor:t.colors.transparent,color:t.colors.gray}}}),"")},18219:(e,t,n)=>{"use strict";n.d(t,{Z:()=>wa});var r=n(30969),o=n(61088),i=n(63201),a={},s=function(e,t,n,r){var o=e+"-"+t+"-"+n+(r?"-server":"");if(a[o])return a[o];var i=function(e,t,n,r){if("undefined"===typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var i=o.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,o.width,o.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),o.toDataURL()):null}(e,t,n,r);return a[o]=i,i},l=Object.assign||function(e){for(var t=1;ta?1:Math.round(100*u/a)/100,t.a!==p)return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}else{var d=void 0;if(r!==(d=c<0?0:c>i?1:Math.round(100*c/i)/100))return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}return null}(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"===typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},b(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),d(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,i.ZP)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:p({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return r.createElement("div",{style:n.alpha},r.createElement("div",{style:n.checkboard},r.createElement(u,{renderers:this.props.renderers})),r.createElement("div",{style:n.gradient}),r.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("div",{style:n.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:n.slider}))))}}]),t}(r.PureComponent||r.Component);var h=function(){function e(e,t){for(var n=0;n-1)){var o=n.getArrowOffset(),i=38===e.keyCode?r+o:r-o;n.setUpdatedValue(i,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+g++,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),h(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,i.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return r.createElement("div",{style:t.wrap},r.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?r.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(r.PureComponent||r.Component);var y=function(){function e(e,t){for(var n=0;ni?0:360*(-100*c/i+100)/100,n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var p=void 0;if(p=l<0?0:l>o?359:100*l/o*360/100,n.h!==p)return{h:p,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}(e,r.props.direction,r.props.hsl,r.container);t&&"function"===typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},M(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),y(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,o=(0,i.ZP)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return r.createElement("div",{style:o.hue},r.createElement("div",{className:"hue-"+n,style:o.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),r.createElement("div",{style:o.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:o.slider}))))}}]),t}(r.PureComponent||r.Component);var A=n(24974),v=n.n(A);const w=function(){this.__data__=[],this.size=0};const S=function(e,t){return e===t||e!==e&&t!==t};const x=function(e,t){for(var n=e.length;n--;)if(S(e[n][0],t))return n;return-1};var E=Array.prototype.splice;const k=function(e){var t=this.__data__,n=x(t,e);return!(n<0)&&(n==t.length-1?t.pop():E.call(t,n,1),--this.size,!0)};const q=function(e){var t=this.__data__,n=x(t,e);return n<0?void 0:t[n][1]};const T=function(e){return x(this.__data__,e)>-1};const _=function(e,t){var n=this.__data__,r=x(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function R(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991};const ut=function(e){return null!=e&&ct(e.length)&&!J(e)};const pt=function(e){return nt(e)&&ut(e)};const dt=function(){return!1};var bt="object"==typeof exports&&exports&&!exports.nodeType&&exports,ft=bt&&"object"==typeof module&&module&&!module.nodeType&&module,ht=ft&&ft.exports===bt?D.Buffer:void 0;const mt=(ht?ht.isBuffer:void 0)||dt;var gt=Function.prototype,Ot=Object.prototype,yt=gt.toString,Mt=Ot.hasOwnProperty,zt=yt.call(Object);const At=function(e){if(!nt(e)||"[object Object]"!=Y(e))return!1;var t=Je(e);if(null===t)return!0;var n=Mt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&yt.call(n)==zt};var vt={};vt["[object Float32Array]"]=vt["[object Float64Array]"]=vt["[object Int8Array]"]=vt["[object Int16Array]"]=vt["[object Int32Array]"]=vt["[object Uint8Array]"]=vt["[object Uint8ClampedArray]"]=vt["[object Uint16Array]"]=vt["[object Uint32Array]"]=!0,vt["[object Arguments]"]=vt["[object Array]"]=vt["[object ArrayBuffer]"]=vt["[object Boolean]"]=vt["[object DataView]"]=vt["[object Date]"]=vt["[object Error]"]=vt["[object Function]"]=vt["[object Map]"]=vt["[object Number]"]=vt["[object Object]"]=vt["[object RegExp]"]=vt["[object Set]"]=vt["[object String]"]=vt["[object WeakMap]"]=!1;const wt=function(e){return nt(e)&&ct(e.length)&&!!vt[Y(e)]};const St=function(e){return function(t){return e(t)}};var xt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Et=xt&&"object"==typeof module&&module&&!module.nodeType&&module,kt=Et&&Et.exports===xt&&L.process,qt=function(){try{var e=Et&&Et.require&&Et.require("util").types;return e||kt&&kt.binding&&kt.binding("util")}catch(t){}}();var Tt=qt&&qt.isTypedArray;const _t=Tt?St(Tt):wt;const Rt=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]};var Ct=Object.prototype.hasOwnProperty;const Nt=function(e,t,n){var r=e[t];Ct.call(e,t)&&S(r,n)&&(void 0!==n||t in e)||Pe(e,t,n)};const It=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Qt);const nn=function(e,t){return tn(Zt(e,t,$t),e+"")};const rn=function(e,t,n){if(!Z(n))return!1;var r=typeof t;return!!("number"==r?ut(n)&&Lt(t,n.length):"string"==r&&t in n)&&S(n[t],e)};const on=function(e){return nn((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&rn(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r=t||n<0||p&&e-c>=i}function h(){var e=ln();if(f(e))return m(e);s=setTimeout(h,function(e){var n=t-(e-l);return p?Mn(n,i-(e-c)):n}(e))}function m(e){return s=void 0,d&&r?b(e):(r=o=void 0,a)}function g(){var e=ln(),n=f(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(h,t),u?b(e):a}(l);if(p)return clearTimeout(s),s=setTimeout(h,t),b(l)}return void 0===s&&(s=setTimeout(h,t)),a}return t=On(t)||0,Z(n)&&(u=!!n.leading,i=(p="maxWait"in n)?yn(On(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),g.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},g.flush=function(){return void 0===s?a:m(ln())},g};const An=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Z(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),zn(e,t,{leading:r,maxWait:t,trailing:o})};var vn=function(){function e(e,t){for(var n=0;no&&(l=o),c<0?c=0:c>i&&(c=i);var u=l/o,p=1-c/i;return{h:t.h,s:u,v:p,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=An((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),vn(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,o=t.white,a=t.black,s=t.pointer,l=t.circle,c=(0,i.ZP)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:o,black:a,pointer:s,circle:l}},{custom:!!this.props.style});return r.createElement("div",{style:c.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),r.createElement("div",{style:c.white,className:"saturation-white"},r.createElement("div",{style:c.black,className:"saturation-black"}),r.createElement("div",{style:c.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:c.circle}))))}}]),t}(r.PureComponent||r.Component);const Sn=wn;const xn=function(e,t){for(var n=-1,r=null==e?0:e.length;++n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=rr(e,360),t=rr(t,100),n=rr(n,100),0===t)r=o=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),o=a(l,s,e),i=a(l,s,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,i),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a));var l,c,u;return n=nr(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function Ln(e,t,n){e=rr(e,255),t=rr(t,255),n=rr(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),s=(i+a)/2;if(i==a)r=o=0;else{var l=i-a;switch(o=s>.5?l/(2-i-a):l/(i+a),i){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(Pn(r));return i}function Qn(e,t){t=t||6;for(var n=Pn(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(Pn({h:r,s:o,v:i})),i=(i+s)%1;return a}Pn.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=nr(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=jn(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=jn(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=Ln(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Ln(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return Dn(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[ar(Math.round(e).toString(16)),ar(Math.round(t).toString(16)),ar(Math.round(n).toString(16)),ar(lr(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*rr(this._r,255))+"%",g:Math.round(100*rr(this._g,255))+"%",b:Math.round(100*rr(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*rr(this._r,255))+"%, "+Math.round(100*rr(this._g,255))+"%, "+Math.round(100*rr(this._b,255))+"%)":"rgba("+Math.round(100*rr(this._r,255))+"%, "+Math.round(100*rr(this._g,255))+"%, "+Math.round(100*rr(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(tr[Dn(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+Bn(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=Pn(e);n="#"+Bn(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return Pn(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Hn,arguments)},brighten:function(){return this._applyModification(Xn,arguments)},darken:function(){return this._applyModification(Gn,arguments)},desaturate:function(){return this._applyModification(Fn,arguments)},saturate:function(){return this._applyModification(Vn,arguments)},greyscale:function(){return this._applyModification(Un,arguments)},spin:function(){return this._applyModification($n,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Jn,arguments)},complement:function(){return this._applyCombination(Kn,arguments)},monochromatic:function(){return this._applyCombination(Qn,arguments)},splitcomplement:function(){return this._applyCombination(Zn,arguments)},triad:function(){return this._applyCombination(Yn,[3])},tetrad:function(){return this._applyCombination(Yn,[4])}},Pn.fromRatio=function(e,t){if("object"==Nn(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:sr(e[r]));e=n}return Pn(e,t)},Pn.equals=function(e,t){return!(!e||!t)&&Pn(e).toRgbString()==Pn(t).toRgbString()},Pn.random=function(){return Pn.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Pn.mix=function(e,t,n){n=0===n?0:n||50;var r=Pn(e).toRgb(),o=Pn(t).toRgb(),i=n/100;return Pn({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},Pn.readability=function(e,t){var n=Pn(e),r=Pn(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Pn.isReadable=function(e,t,n){var r,o,i=Pn.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},Pn.mostReadable=function(e,t,n){var r,o,i,a,s=null,l=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var c=0;cl&&(l=r,s=Pn(t[c]));return Pn.isReadable(e,s,{level:i,size:a})||!o?s:(n.includeFallbackColors=!1,Pn.mostReadable(e,["#fff","#000"],n))};var er=Pn.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},tr=Pn.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(er);function nr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function rr(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function or(e){return Math.min(1,Math.max(0,e))}function ir(e){return parseInt(e,16)}function ar(e){return 1==e.length?"0"+e:""+e}function sr(e){return e<=1&&(e=100*e+"%"),e}function lr(e){return Math.round(255*parseFloat(e)).toString(16)}function cr(e){return ir(e)/255}var ur=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function pr(e){return!!ur.CSS_UNIT.exec(e)}var dr=function(e){var t=0,n=0;return Cn(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e},br=function(e,t){var n=e.hex?Pn(e.hex):Pn(e),r=n.toHsl(),o=n.toHsv(),i=n.toRgb(),a=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{hsl:r,hex:"000000"===a&&0===i.a?"transparent":"#"+a,rgb:i,hsv:o,oldHue:e.h||t||r.h,source:e.source}},fr=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&Pn(e).isValid()},hr=function(e){if(!e)return"#fff";var t=br(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},mr=function(e,t){return Pn(t+" ("+e.replace("\xb0","")+")")._ok},gr=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var r=arguments.length,i=Array(r),a=0;as))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var p=-1,d=!0,b=2&n?new Rr:void 0;for(i.set(e,t),i.set(t,e);++p1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"===typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"===typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(Mi(e.s)?n.props.hsl.s:e.s),l:Number(Mi(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Ai(t,[{key:"render",value:function(){var e=this,t=(0,i.ZP)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=r.createElement("div",{style:t.fields,className:"flexbox-fix"},r.createElement("div",{style:t.field},r.createElement(O,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=r.createElement("div",{style:t.fields,className:"flexbox-fix"},r.createElement("div",{style:t.field},r.createElement(O,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(O,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(O,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),r.createElement("div",{style:t.alpha},r.createElement(O,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=r.createElement("div",{style:t.fields,className:"flexbox-fix"},r.createElement("div",{style:t.field},r.createElement(O,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(O,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(O,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),r.createElement("div",{style:t.alpha},r.createElement(O,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),r.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,r.createElement("div",{style:t.toggle},r.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},r.createElement(zi.Z,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(r.Component);vi.defaultProps={view:"hex"};const wi=vi;const Si=function(){var e=(0,i.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.createElement("div",{style:e.picker})};const xi=function(){var e=(0,i.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return r.createElement("div",{style:e.picker})};var Ei=function(e){var t=e.width,n=e.onChange,o=e.disableAlpha,a=e.rgb,s=e.hsl,l=e.hsv,c=e.hex,p=e.renderers,d=e.styles,b=void 0===d?{}:d,h=e.className,m=void 0===h?"":h,g=e.defaultView,O=(0,i.ZP)(on({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},b),{disableAlpha:o});return r.createElement("div",{style:O.picker,className:"chrome-picker "+m},r.createElement("div",{style:O.saturation},r.createElement(Sn,{style:O.Saturation,hsl:s,hsv:l,pointer:xi,onChange:n})),r.createElement("div",{style:O.body},r.createElement("div",{style:O.controls,className:"flexbox-fix"},r.createElement("div",{style:O.color},r.createElement("div",{style:O.swatch},r.createElement("div",{style:O.active}),r.createElement(u,{renderers:p}))),r.createElement("div",{style:O.toggles},r.createElement("div",{style:O.hue},r.createElement(z,{style:O.Hue,hsl:s,pointer:Si,onChange:n})),r.createElement("div",{style:O.alpha},r.createElement(f,{style:O.Alpha,rgb:a,hsl:s,pointer:Si,renderers:p,onChange:n})))),r.createElement(wi,{rgb:a,hsl:s,hex:c,view:g,onChange:n,disableAlpha:o})))};Ei.propTypes={width:v().oneOfType([v().string,v().number]),disableAlpha:v().bool,styles:v().object,defaultView:v().oneOf(["hex","rgb","hsl"])},Ei.defaultProps={width:225,disableAlpha:!1,styles:{}};const ki=yr(Ei);const qi=function(e){var t=e.color,n=e.onClick,o=void 0===n?function(){}:n,a=e.onSwatchHover,s=e.active,l=(0,i.ZP)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:hr(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:s,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.createElement(wr,{style:l.color,color:t,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+t}},r.createElement("div",{style:l.dot}))};const Ti=function(e){var t=e.hex,n=e.rgb,o=e.onChange,a=(0,i.ZP)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),s=function(e,t){e.r||e.g||e.b?o({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):o({hex:e.hex,source:"hex"},t)};return r.createElement("div",{style:a.fields,className:"flexbox-fix"},r.createElement("div",{style:a.active}),r.createElement(O,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:t,onChange:s}),r.createElement(O,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:s}),r.createElement(O,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:s}),r.createElement(O,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:s}))};var _i=function(e){var t=e.onChange,n=e.onSwatchHover,o=e.colors,a=e.hex,s=e.rgb,l=e.styles,c=void 0===l?{}:l,u=e.className,p=void 0===u?"":u,d=(0,i.ZP)(on({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},c)),b=function(e,n){e.hex?fr(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return r.createElement(sn,{style:d.Compact,styles:c},r.createElement("div",{style:d.compact,className:"compact-picker "+p},r.createElement("div",null,Yo(o,(function(e){return r.createElement(qi,{key:e,color:e,active:e.toLowerCase()===a,onClick:b,onSwatchHover:n})})),r.createElement("div",{style:d.clear})),r.createElement(Ti,{hex:a,rgb:s,onChange:b})))};_i.propTypes={colors:v().arrayOf(v().string),styles:v().object},_i.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};yr(_i);const Ri=(0,i.tz)((function(e){var t=e.hover,n=e.color,o=e.onClick,a=e.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},l=(0,i.ZP)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:t});return r.createElement("div",{style:l.swatch},r.createElement(wr,{color:n,onClick:o,onHover:a,focusStyle:s}))}));var Ci=function(e){var t=e.width,n=e.colors,o=e.onChange,a=e.onSwatchHover,s=e.triangle,l=e.styles,c=void 0===l?{}:l,u=e.className,p=void 0===u?"":u,d=(0,i.ZP)(on({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},c),{"hide-triangle":"hide"===s,"top-left-triangle":"top-left"===s,"top-right-triangle":"top-right"===s,"bottom-left-triangle":"bottom-left"===s,"bottom-right-triangle":"bottom-right"===s}),b=function(e,t){return o({hex:e,source:"hex"},t)};return r.createElement("div",{style:d.card,className:"github-picker "+p},r.createElement("div",{style:d.triangleShadow}),r.createElement("div",{style:d.triangle}),Yo(n,(function(e){return r.createElement(Ri,{color:e,key:e,onClick:b,onSwatchHover:a})})))};Ci.propTypes={width:v().oneOfType([v().string,v().number]),colors:v().arrayOf(v().string),triangle:v().oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:v().object},Ci.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};yr(Ci);const Ni=function(e){var t=e.direction,n=(0,i.ZP)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.createElement("div",{style:n.picker})};var Ii=Object.assign||function(e){for(var t=1;t.5});return r.createElement("div",{style:n.picker})};const ji=function(){var e=(0,i.ZP)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return r.createElement("div",{style:e.pointer},r.createElement("div",{style:e.left},r.createElement("div",{style:e.leftInside})),r.createElement("div",{style:e.right},r.createElement("div",{style:e.rightInside})))};const Di=function(e){var t=e.onClick,n=e.label,o=e.children,a=e.active,s=(0,i.ZP)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return r.createElement("div",{style:s.button,onClick:t},n||o)};const Bi=function(e){var t=e.rgb,n=e.currentColor,o=(0,i.ZP)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return r.createElement("div",null,r.createElement("div",{style:o.label},"new"),r.createElement("div",{style:o.swatches},r.createElement("div",{style:o.new}),r.createElement("div",{style:o.current})),r.createElement("div",{style:o.label},"current"))};var Fi=function(){function e(e,t){for(var n=0;n100&&(e.a=100),e.a/=100,t({h:o.h,s:o.s,l:o.l,a:e.a,source:"rgb"},r))};return r.createElement("div",{style:l.fields,className:"flexbox-fix"},r.createElement("div",{style:l.double},r.createElement(O,{style:{input:l.input,label:l.label},label:"hex",value:a.replace("#",""),onChange:c})),r.createElement("div",{style:l.single},r.createElement(O,{style:{input:l.input,label:l.label},label:"r",value:n.r,onChange:c,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:l.single},r.createElement(O,{style:{input:l.input,label:l.label},label:"g",value:n.g,onChange:c,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:l.single},r.createElement(O,{style:{input:l.input,label:l.label},label:"b",value:n.b,onChange:c,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:l.alpha},r.createElement(O,{style:{input:l.input,label:l.label},label:"a",value:Math.round(100*n.a),onChange:c,dragLabel:"true",dragMax:"100"})))};var Hi=Object.assign||function(e){for(var t=1;t{let{disabled:t,width:n,theme:r}=e;return{fontFamily:r.genericFonts.bodyFont,display:"flex",flexDirection:"column",alignItems:"flex-start",cursor:t?"not-allowed":"default",width:n}}),""),Oa=(0,ma.Z)("div",{target:"e1rgp0873"})((e=>{let{theme:t}=e;return{div:{fontFamily:`${t.genericFonts.bodyFont} !important`}}}),""),ya=(0,ma.Z)("div",{target:"e1rgp0872"})((e=>{let{disabled:t,theme:n}=e;return{height:n.sizes.minElementHeight,borderRadius:n.radii.default,borderColor:n.colors.borderColor,cursor:t?"not-allowed":"pointer",pointerEvents:t?"none":"auto",boxShadow:"none",lineHeight:n.lineHeights.base,"&:focus":{outline:"none"},display:"flex"}}),""),Ma=(0,ma.Z)("div",{target:"e1rgp0871"})((e=>{let{backgroundColor:t,disabled:n,theme:r}=e;return{width:r.sizes.minElementHeight,height:r.sizes.minElementHeight,borderRadius:r.radii.default,borderColor:r.colors.borderColor,borderWidth:r.sizes.borderWidth,opacity:n?"0.4":"",backgroundColor:t,borderStyle:"solid",padding:"2px 0.8rem",cursor:"pointer",lineHeight:r.lineHeights.base,"&:focus":{outline:"none"}}}),""),za=(0,ma.Z)("div",{target:"e1rgp0870"})((()=>({display:"flex",alignItems:"center",padding:"0 0.8rem",width:"95px"})),"");var Aa=n(37574);class va extends r.PureComponent{constructor(){super(...arguments),this.state={value:this.props.value},this.onColorChange=e=>{this.setState({value:e.hex})},this.onColorClose=()=>{this.props.onChange(this.state.value)}}componentDidUpdate(e){e.value!==this.props.value&&this.props.value!==this.state.value&&this.setState(((e,t)=>({value:t.value})))}componentDidCatch(e){if("SecurityError"!==(null===e||void 0===e?void 0:e.name))throw e;(0,ha.KE)(`Swallowing ColorPicker SecurityError '${e.name}: ${e.message}'`),this.forceUpdate()}render(){const{width:e,showValue:t,label:n,labelVisibility:r,help:i,disabled:a}=this.props,{value:s}=this.state;return(0,Aa.jsxs)(ga,{className:"stColorPicker","data-testid":"stColorPicker",width:e,disabled:a,children:[(0,Aa.jsx)(pa.O,{label:n,disabled:a,labelVisibility:r,children:i&&(0,Aa.jsx)(da.Hp,{children:(0,Aa.jsx)(ba.Z,{content:i,placement:fa.u.TOP_RIGHT})})}),(0,Aa.jsx)(o.Z,{onClose:this.onColorClose,content:()=>(0,Aa.jsx)(Oa,{"data-testid":"stColorPickerPopover",children:(0,Aa.jsx)(ki,{color:s,onChange:this.onColorChange,disableAlpha:!0})}),children:(0,Aa.jsxs)(ya,{disabled:a,children:[(0,Aa.jsx)(Ma,{"data-testid":"stColorPickerBlock",backgroundColor:s,disabled:a}),t&&(0,Aa.jsx)(za,{children:s.toUpperCase()})]})})]})}}const wa=va},30379:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>R,HX:()=>T});var r=n(30969),o=n(46578),i=n(41720),a=n(84172),s=n(3077),l=-1/0,c=1/0,u=-.005,p=-.005,d=-.01,b=1,f=.9,h=.8,m=.7,g=.6;function O(e){return e.toUpperCase()===e}function y(e,t,n,r){for(var o=e.length,i=t.length,a=e.toLowerCase(),s=t.toLowerCase(),c=function(e){for(var t,n=e.length,r=new Array(n),o="/",i=0;ifunction(e,t){e=e.toLowerCase(),t=t.toLowerCase();for(var n=e.length,r=0,o=0;rfunction(e,t){var n=e.length,r=t.length;if(!n||!r)return l;if(n===r)return c;if(r>1024)return l;var o=new Array(n),i=new Array(n);return y(e,t,o,i),i[n-1][r-1]}(t,e.label))).reverse()}class _ extends r.PureComponent{constructor(){super(...arguments),this.state={isEmpty:!1,value:this.props.value},this.onChange=e=>{if(0===e.value.length)return void this.setState({value:null},(()=>this.props.onChange(null)));const[t]=e.value;this.setState({value:parseInt(t.value,10)},(()=>this.props.onChange(this.state.value)))},this.onInputChange=e=>{const t=e.target.value;this.setState({isEmpty:!t})},this.onClose=()=>{this.setState({isEmpty:!1})},this.filterOptions=(e,t)=>T(e,t)}componentDidUpdate(e){e.value!==this.props.value&&this.state.value!==this.props.value&&this.setState(((e,t)=>({value:t.value})))}render(){const e={width:this.props.width},{label:t,labelVisibility:n,help:r,placeholder:s,theme:l,clearable:c}=this.props;let{disabled:u,options:p}=this.props,d=[];(0,v.le)(this.state.value)||this.state.isEmpty||(d=[{label:p.length>0?p[this.state.value]:q,value:this.state.value.toString()}]),0===p.length&&(p=[q],u=!0);const b=p.map(((e,t)=>({label:e,value:t.toString()}))),f=p.length>10;return(0,k.jsxs)("div",{className:"stSelectbox","data-testid":"stSelectbox",style:e,children:[(0,k.jsx)(x.O,{label:t,labelVisibility:n,disabled:u,children:r&&(0,k.jsx)(E.dT,{children:(0,k.jsx)(S.Z,{content:r,placement:w.u.TOP_RIGHT})})}),(0,k.jsx)(a.Z,{disabled:u,labelKey:"label","aria-label":t||"",onChange:this.onChange,onInputChange:this.onInputChange,onClose:this.onClose,options:b,filterOptions:this.filterOptions,clearable:c||!1,escapeClearsValue:c||!1,value:d,valueKey:"value",placeholder:s,overrides:{Root:{style:()=>({lineHeight:l.lineHeights.inputWidget})},Dropdown:{component:A.Z},ClearIcon:{props:{overrides:{Svg:{style:{color:l.colors.darkGray,transform:"scale(1.25)",width:l.spacing.twoXL,":hover":{fill:l.colors.bodyText}}}}}},ControlContainer:{style:()=>({height:l.sizes.minElementHeight,borderLeftWidth:l.sizes.borderWidth,borderRightWidth:l.sizes.borderWidth,borderTopWidth:l.sizes.borderWidth,borderBottomWidth:l.sizes.borderWidth})},IconsContainer:{style:()=>({paddingRight:l.spacing.sm})},ValueContainer:{style:()=>({paddingRight:l.spacing.sm,paddingLeft:l.spacing.sm,paddingBottom:l.spacing.sm,paddingTop:l.spacing.sm})},Input:{props:{readOnly:o.tq&&!1===f?"readonly":null},style:()=>({lineHeight:l.lineHeights.inputWidget})},Popover:{props:{overrides:{Body:{style:()=>({marginTop:l.spacing.px})}}}},SelectArrow:{component:i.Z,props:{overrides:{Svg:{style:()=>({width:l.iconSizes.xl,height:l.iconSizes.xl})}}}}}})]})}}const R=(0,s.b)(_)},88112:(e,t,n)=>{"use strict";n.d(t,{Z:()=>R});var r=n(30969),o=n(65278),i=n(7896),a=n(80753),s=n(81665),l=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function c(e,t){if(e.length!==t.length)return!1;for(var n=0;n=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var f=-1;function h(e){if(void 0===e&&(e=!1),-1===f||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),f=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return f}var m=null;function g(e){if(void 0===e&&(e=!1),null===m||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?m="positive-descending":(t.scrollLeft=1,m=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),m}return m}var O=function(e,t){return e};function y(e){var t,n=e.getItemOffset,o=e.getEstimatedTotalSize,l=e.getItemSize,c=e.getOffsetForIndexAndAlignment,p=e.getStartIndexForOffset,f=e.getStopIndexForStartIndex,m=e.initInstanceProps,y=e.shouldResetStyleCacheOnItemSizeChange,z=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,(0,a.Z)(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:(0,a.Z)(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=u((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=u((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,o=r.props,i=o.direction,a=o.itemSize,s=o.layout,c=r._getItemStyleCache(y&&a,y&&s,y&&i);if(c.hasOwnProperty(e))t=c[e];else{var u=n(r.props,e,r._instanceProps),p=l(r.props,e,r._instanceProps),d="horizontal"===i||"horizontal"===s,b="rtl"===i,f=d?u:0;c[e]=t={position:"absolute",left:b?void 0:f,right:b?f:void 0,top:d?0:u,height:d?"100%":p,width:d?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=u((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(g()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffsets.clientWidth?h():0:s.scrollHeight>s.clientHeight?h():0}this.scrollTo(c(this.props,e,t,i,this._instanceProps,a))},A.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"===typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},A.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(g()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},A.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&d(this._resetIsScrollingTimeoutId)},A.render=function(){var e=this.props,t=e.children,n=e.className,a=e.direction,s=e.height,l=e.innerRef,c=e.innerElementType,u=e.innerTagName,p=e.itemCount,d=e.itemData,b=e.itemKey,f=void 0===b?O:b,h=e.layout,m=e.outerElementType,g=e.outerTagName,y=e.style,M=e.useIsScrolling,z=e.width,A=this.state.isScrolling,v="horizontal"===a||"horizontal"===h,w=v?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),x=S[0],E=S[1],k=[];if(p>0)for(var q=x;q<=E;q++)k.push((0,r.createElement)(t,{data:d,key:f(q,d),index:q,isScrolling:M?A:void 0,style:this._getItemStyle(q)}));var T=o(this.props,this._instanceProps);return(0,r.createElement)(m||g||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:(0,i.Z)({position:"relative",height:s,width:z,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:a},y)},(0,r.createElement)(c||u||"div",{children:k,ref:l,style:{height:v?"100%":T,pointerEvents:A?"none":void 0,width:v?T:"100%"}}))},A._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"===typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},A._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var s=p(this.props,a,this._instanceProps),l=f(this.props,s,a,this._instanceProps),c=o&&"backward"!==i?1:Math.max(1,n),u=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,s-c),Math.max(0,Math.min(t-1,l+u)),s,l]},t}(r.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var M=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},z=y({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.itemCount,c=e.itemSize,u=e.layout,p=e.width,d="horizontal"===a||"horizontal"===u?p:s,b=Math.max(0,l*c-d),f=Math.min(b,t*c),h=Math.max(0,t*c-d+c+i);switch("smart"===n&&(n=r>=h-d&&r<=f+d?"auto":"center"),n){case"start":return f;case"end":return h;case"center":var m=Math.round(h+(f-h)/2);return mb+Math.floor(d/2)?b:m;default:return r>=h&&r<=f?r:r{const e=!(null===s||void 0===s||!s.current)&&s.current.offsetWidth{let{theme:t,$isHighlighted:n}=e;const r=t.inSidebar?t.colors.bgColor:t.colors.secondaryBg;return{display:"flex",alignItems:"center",paddingTop:t.spacing.none,paddingBottom:t.spacing.none,background:n?r:void 0,[`@media (max-width: ${t.breakpoints.md})`]:{minHeight:t.sizes.minElementHeight,height:"auto !important"},"&:hover, &:active, &:focus-visible":{background:r}}}),"");function T(e){const{data:t,index:n,style:r}=e,{item:o,overrides:i,...a}=t[n].props;return(0,w.jsx)(q,{style:r,...a,children:(0,w.jsx)(S,{content:o.label,placement:A.u.AUTO,children:o.label})},o.value)}const _=r.forwardRef(((e,t)=>{const n=r.Children.toArray(e.children);if(!n[0]||!n[0].props.item){const e=n[0]?n[0].props:{};return(0,w.jsx)(o.CK,{$style:{height:"90px"},ref:t,"data-testid":"stSelectboxVirtualDropdownEmpty",children:(0,w.jsx)(o.ey,{...e})})}const i=Math.min(300,40*n.length);return(0,w.jsx)(o.CK,{ref:t,$style:{paddingTop:0,paddingBottom:0},"data-testid":"stSelectboxVirtualDropdown",children:(0,w.jsx)(z,{width:"100%",height:i,itemCount:n.length,itemData:n,itemKey:(e,t)=>t[e].props.item.value,itemSize:40,children:T})})}));_.displayName="VirtualDropdown";const R=_},45162:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(30969),o=n(35354),i=n(1561),a=n(37574);class s extends r.PureComponent{constructor(){super(...arguments),this.state={error:null},this.componentDidCatch=e=>{(0,i.H)(`${e.name}: ${e.message}\n${e.stack}`)}}render(){const{error:e}=this.state;return e?"ChunkLoadError"===e.name?(0,a.jsx)(o.Z,{width:this.props.width,name:"Network issue",message:(0,a.jsxs)("p",{children:["Cannot load Streamlit frontend code. This can happen when you update Streamlit while a Streamlit app is running.",(0,a.jsx)("br",{}),"To fix this, simply reload this app by pressing ",(0,a.jsx)("kbd",{children:"F5"}),", ",(0,a.jsx)("kbd",{children:"Ctrl+R"}),", or ",(0,a.jsx)("kbd",{children:"Cmd+R"}),".",(0,a.jsx)("br",{}),"If the error persists, try force-clearing your browser's cache as described"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Cache_clearing_and_disabling",rel:"noopener noreferrer",target:"_blank",children:"here"})]})}):(0,a.jsx)(o.Z,{width:this.props.width,name:e.name,message:e.message,stack:e.stack}):this.props.children}}s.getDerivedStateFromError=e=>({error:e});const l=s},35354:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});n(30969);var r=n(76921);const o=(0,n(83405).Z)("pre",{target:"e1ixn3a00"})((e=>{let{theme:t}=e;return{padding:t.spacing.twoXS,whiteSpace:"pre-wrap",wordWrap:"break-word",color:"inherit",fontSize:t.fontSizes.sm}}),"");var i=n(37574);const a=function(e){const{name:t,message:n,stack:a,width:s}=e,l=a?a.split("\n"):[];l.shift();const c=l.map((e=>e.trim())).join("\n");return(0,i.jsxs)(r.Z,{kind:r.h.ERROR,width:s,children:[(0,i.jsxs)("strong",{children:[t,": "]}),n,a?(0,i.jsx)(o,{"data-testid":"stErrorElementStack",children:(0,i.jsx)("code",{children:c})}):null]})}},35197:(e,t,n)=>{"use strict";n.d(t,{p:()=>b});var r=n(30969),o=n(77746),i=n(90816),a=n.n(i),s=n(84215),l=n(37574);const c=e=>{let{size:t,margin:n,padding:r,color:o}=e;return{size:t||"md",margin:n||"",padding:r||"",color:o||"inherit"}},u=e=>{let{iconName:t,...n}=e;return(0,l.jsx)(s.m,{...c(n),"data-testid":n.testid||"stIconMaterial",children:a()(t)})};var p=n(3254);const d=e=>{let{iconValue:t,...n}=e;const{pack:r,icon:i}=function(e){const t=e.match(/^:(.+)\/(.+):$/);return null===t?{pack:"emoji",icon:e}:{pack:t[1],icon:t[2]}}(t);return"material"===r?"star_filled"===i?(0,l.jsx)(p.k6,{...n,children:(0,l.jsx)(p.g,{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTg2MF84NDMpIj48cGF0aCBkPSJNOS45OTk5NCAxNC4zOTE2TDEzLjQ1ODMgMTYuNDgzM0MxNC4wOTE2IDE2Ljg2NjYgMTQuODY2NiAxNi4zIDE0LjY5OTkgMTUuNTgzM0wxMy43ODMzIDExLjY1TDE2Ljg0MTYgOC45OTk5N0MxNy4zOTk5IDguNTE2NjMgMTcuMDk5OSA3LjU5OTk3IDE2LjM2NjYgNy41NDE2M0wxMi4zNDE2IDcuMTk5OTdMMTAuNzY2NiAzLjQ4MzNDMTAuNDgzMyAyLjgwODMgOS41MTY2MSAyLjgwODMgOS4yMzMyNyAzLjQ4MzNMNy42NTgyNyA3LjE5MTYzTDMuNjMzMjcgNy41MzMzQzIuODk5OTQgNy41OTE2MyAyLjU5OTk0IDguNTA4MyAzLjE1ODI3IDguOTkxNjNMNi4yMTY2MSAxMS42NDE2TDUuMjk5OTQgMTUuNTc1QzUuMTMzMjcgMTYuMjkxNiA1LjkwODI3IDE2Ljg1ODMgNi41NDE2MSAxNi40NzVMOS45OTk5NCAxNC4zOTE2WiIgZmlsbD0iI0ZBQ0EyQiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImNsaXAwXzE4NjBfODQzIj48cmVjdCB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIGZpbGw9IndoaXRlIi8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+","data-testid":n.testid||"stImageIcon"})}):(0,l.jsx)(p.k6,{...n,children:(0,l.jsx)(u,{pack:r,iconName:i,...n})}):(0,l.jsx)(p.k6,{...n,children:(0,l.jsx)(o.S,{...n,children:i})})},b=e=>(0,l.jsx)(r.Suspense,{fallback:(0,l.jsx)(p.k6,{...e,children:(0,l.jsx)(o.S,{...e,children:"\xa0"})}),children:(0,l.jsx)(d,{...e})},e.iconValue)},77746:(e,t,n)=>{"use strict";n.d(t,{S:()=>a,Z:()=>s});n(30969);var r=n(3254),o=n(37574);const i=e=>{let{size:t,margin:n,padding:r}=e;return{size:t||"md",margin:n||"",padding:r||""}},a=e=>{let{size:t,margin:n,padding:a,children:s,testid:l}=e;return(0,o.jsx)(r.Er,{"data-testid":l||"stIconEmoji","aria-hidden":"true",...i({size:t,margin:n,padding:a}),children:s})},s=e=>{let{content:t,color:n,size:a,margin:s,padding:l,testid:c}=e;return(0,o.jsx)(r.xL,{as:t,color:n||"inherit","aria-hidden":"true","data-testid":c,...i({size:a,margin:s,padding:l})})}},84215:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});var r=n(83405),o=n(36599);const i=(0,r.Z)("span",{target:"e16edly10"})((e=>{let{size:t,margin:n,padding:r,theme:i,color:a}=e;return{display:"inline-flex",alignItems:"center",justifyContents:"center",color:a,fontSize:i.iconSizes[t],width:i.iconSizes[t],height:i.iconSizes[t],margin:(0,o.ZB)(n,i),padding:(0,o.ZB)(r,i),userSelect:"none",fontFamily:"Material Symbols Rounded",fontWeight:"normal",fontStyle:"normal",lineHeight:i.lineHeights.none,letterSpacing:"normal",textTransform:"none",whiteSpace:"nowrap",wordWrap:"normal",direction:"ltr",fontFeatureSettings:"liga",MozFontFeatureSettings:"liga",WebkitFontFeatureSettings:"liga",WebkitFontSmoothing:"antialiased"}}),"")},3254:(e,t,n)=>{"use strict";n.d(t,{Er:()=>p,g:()=>u,k6:()=>c,qu:()=>s,xL:()=>l});var r=n(83405),o=n(69562),i=n(34088),a=n(36599);const s=(0,r.Z)(i.Q,{shouldForwardProp:e=>(0,o.Z)(e)&&!["size"].includes(e),target:"eyeqlp54"})((e=>{let{usingCustomTheme:t,size:n,margin:r,padding:o,theme:i}=e;return{width:i.iconSizes[n],height:i.iconSizes[n],fontSize:i.iconSizes[n],justifyContents:"center",margin:(0,a.ZB)(r,i),padding:(0,a.ZB)(o,i),borderColor:i.colors.borderColor,borderTopColor:t?i.colors.primary:i.colors.blue70,borderWidth:"0.15em",flexGrow:0,flexShrink:0}}),""),l=(0,r.Z)("span",{shouldForwardProp:e=>(0,o.Z)(e)&&!["size","as"].includes(e),target:"eyeqlp53"})((e=>{let{color:t,size:n,margin:r,padding:o,theme:i}=e;return{color:i.colors[t],fill:"currentColor",display:"inline-flex",alignItems:"center",justifyContents:"center",fontSize:i.iconSizes[n],width:i.iconSizes[n],height:i.iconSizes[n],margin:(0,a.ZB)(r,i),padding:(0,a.ZB)(o,i),flexShrink:0}}),""),c=(0,r.Z)("span",{target:"eyeqlp52"})((e=>{let{size:t="lg",margin:n="",padding:r="",theme:o}=e;return{fill:"currentColor",display:"inline-flex",alignItems:"center",justifyContents:"center",fontSize:o.iconSizes[t],width:o.iconSizes[t],height:o.iconSizes[t],margin:(0,a.ZB)(n,o),padding:(0,a.ZB)(r,o),flexShrink:0}}),""),u=(0,r.Z)("img",{target:"eyeqlp51"})((e=>{let{}=e;return{width:"100%",height:"100%"}}),""),p=(0,r.Z)("span",{target:"eyeqlp50"})((e=>{let{size:t,margin:n,padding:r,theme:o}=e;return{display:"inline-flex",alignItems:"center",justifyContents:"center",fontSize:o.iconSizes[t],width:o.iconSizes[t],height:o.iconSizes[t],margin:(0,a.ZB)(n,o),padding:(0,a.ZB)(r,o)}}),"")},21434:(e,t,n)=>{"use strict";n.d(t,{aF:()=>hd,cw:()=>yd,$G:()=>pd,ZP:()=>Ad});var r={};n.r(r),n.d(r,{attentionMarkers:()=>zt,contentInitial:()=>ht,disable:()=>At,document:()=>ft,flow:()=>gt,flowInitial:()=>mt,insideSpan:()=>Mt,string:()=>Ot,text:()=>yt});var o={};n.r(o),n.d(o,{boolean:()=>bn,booleanish:()=>fn,commaOrSpaceSeparated:()=>yn,commaSeparated:()=>On,number:()=>mn,overloadedBoolean:()=>hn,spaceSeparated:()=>gn});var i=n(30969);const a=function(e){if(void 0===e||null===e)return l;if("string"===typeof e)return function(e){return s(t);function t(t){return t&&t.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n1?n-1:0),o=1;o":"")+")"})}return u;function u(){let c,u,p,d=[];if((!t||o(a,s,l[l.length-1]||null))&&(d=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(n(a,l)),false===d[0]))return d;if(a.children&&"skip"!==d[0])for(u=(r?a.children.length:-1)+i,p=l.concat(a);u>-1&&ue.length){for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(o=i):(s=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(y(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){y(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const s=e.charCodeAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(){let e,t=-1;for(var n=arguments.length,r=new Array(n),o=0;o2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue}}else if(o.length>0){o="",i=0,a=l,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function y(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const M={cwd:function(){return"/"}};function z(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function A(e){if("string"===typeof e)e=new URL(e);else if(!z(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("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n1?l-1:0),u=1;uo.length;let c;l&&o.push(i);try{c=e.apply(this,o)}catch(r){if(l&&n)throw r;return i(r)}l||(c instanceof Promise?c.then(a,i):c instanceof Error?i(c):a(c))}function i(e){if(!n){n=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i1?t-1:0),s=1;s{if(!e&&t&&n){const o=a.stringify(t,n);void 0===o||null===o||("string"===typeof(r=o)||d(r)?n.value=o:n.result=o),i(e,n)}else i(e);var r}))}n(null,t)},a.processSync=function(e){let t;a.freeze(),I("processSync",a.Parser),W("processSync",a.Compiler);const n=D(e);return a.process(n,r),j("processSync","process",t),n;function r(e){t=!0,k(e)}},a;function a(){const t=e();let r=-1;for(;++ro?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a0?(U(e,e.length,0,t),e):t}const X={}.hasOwnProperty;function G(e){const t={};let n=-1;for(;++ni))return;const n=t.events.length;let o,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){s=t.events[l][1].end;break}o=!0}for(g(a),e=n;er;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function O(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},de={tokenize:function(e,t,n){return ce(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const be={tokenize:function(e,t,n){return function(t){return ie(t)?ce(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||re(e)?t(e):n(e)}},partial:!0};function fe(e){const t={};let n,r,o,i,a,s,l,c=-1;for(;++c=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0};const Oe={tokenize:function(e){const t=this,n=e.attempt(be,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,ce(e,e.attempt(this.parser.constructs.flow,r,e.attempt(me,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const ye={resolveAll:ve()},Me=Ae("string"),ze=Ae("text");function Ae(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return l(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o-1){const e=a[0];"string"===typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function f(){const{line:e,column:t,offset:n,_index:o,_bufferIndex:i}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:i}}function h(){let e;for(;r._index=3&&(null===i||re(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),ie(t)?ce(e,i,"whitespace")(t):i(t))}}};const ke={name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:ee(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(Ee,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return ee(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(be,r.interrupt?n:c,e.attempt(qe,p,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,p(e)}function u(t){return ie(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),p):n(t)}function p(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(be,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ce(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!ie(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Te,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ce(e,e.attempt(ke,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},qe={tokenize:function(e,t,n){const r=this;return ce(e,(function(e){const o=r.events[r.events.length-1];return!ie(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Te={tokenize:function(e,t,n){const r=this;return ce(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const _e={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return ie(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(ie(t))return ce(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(_e,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function Re(e,t,n,r,o,i,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),p;if(null===t||32===t||41===t||Q(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t)};function p(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(s),p(t)):null===t||60===t||re(t)?n(t):(e.consume(t),92===t?b:d)}function b(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function f(o){return u||null!==o&&41!==o&&!oe(o)?u999||null===p||91===p||93===p&&!s||94===p&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):93===p?(e.exit(i),e.enter(o),e.consume(p),e.exit(o),e.exit(r),t):re(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(t){return null===t||91===t||93===t||re(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!ie(t)),92===t?p:u)}function p(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Ne(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===a?(e.exit(i),s(a)):null===t?n(t):re(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ce(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||re(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function Ie(e,t){let n;return function r(o){if(re(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(ie(o))return ce(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}function We(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Pe={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Ce.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=We(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return oe(t)?Ie(e,s)(t):s(t)}function s(t){return Re(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Le,c,c)(t)}function c(t){return ie(t)?ce(e,u,"whitespace")(t):u(t)}function u(i){return null===i||re(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},Le={tokenize:function(e,t,n){return function(t){return oe(t)?Ie(e,r)(t):n(t)};function r(t){return Ne(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return ie(t)?ce(e,i,"whitespace")(t):i(t)}function i(e){return null===e||re(e)?t(e):n(e)}},partial:!0};const je={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ce(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):re(t)?e.attempt(De,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||re(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},De={tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):re(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):ce(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):re(e)?o(e):n(e)}},partial:!0};const Be={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||oe(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||re(n)?(e.exit("atxHeading"),t(n)):ie(n)?ce(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||oe(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}},resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},U(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const Fe={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),ie(t)?ce(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||re(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};const Ve=["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"],Ue=["pre","script","style","textarea"],He={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,i,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,b):63===s?(e.consume(s),o=3,r.interrupt?t:N):Y(s)?(e.consume(s),a=String.fromCharCode(s),f):n(s)}function u(i){return 45===i?(e.consume(i),o=2,p):91===i?(e.consume(i),o=5,s=0,d):Y(i)?(e.consume(i),o=4,r.interrupt?t:N):n(i)}function p(o){return 45===o?(e.consume(o),r.interrupt?t:N):n(o)}function d(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:x:d):n(o)}function b(t){return Y(t)?(e.consume(t),a=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||oe(s)){const l=47===s,c=a.toLowerCase();return l||i||!Ue.includes(c)?Ve.includes(a.toLowerCase())?(o=6,l?(e.consume(s),h):r.interrupt?t(s):x(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?m(s):g(s)):(o=1,r.interrupt?t(s):x(s))}return 45===s||Z(s)?(e.consume(s),a+=String.fromCharCode(s),f):n(s)}function h(o){return 62===o?(e.consume(o),r.interrupt?t:x):n(o)}function m(t){return ie(t)?(e.consume(t),m):w(t)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||Y(t)?(e.consume(t),O):ie(t)?(e.consume(t),g):w(t)}function O(t){return 45===t||46===t||58===t||95===t||Z(t)?(e.consume(t),O):y(t)}function y(t){return 61===t?(e.consume(t),M):ie(t)?(e.consume(t),y):g(t)}function M(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,z):ie(t)?(e.consume(t),M):A(t)}function z(t){return t===l?(e.consume(t),l=null,v):null===t||re(t)?n(t):(e.consume(t),z)}function A(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||oe(t)?y(t):(e.consume(t),A)}function v(e){return 47===e||62===e||ie(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||re(t)?x(t):ie(t)?(e.consume(t),S):n(t)}function x(t){return 45===t&&2===o?(e.consume(t),T):60===t&&1===o?(e.consume(t),_):62===t&&4===o?(e.consume(t),I):63===t&&3===o?(e.consume(t),N):93===t&&5===o?(e.consume(t),C):!re(t)||6!==o&&7!==o?null===t||re(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),x):(e.exit("htmlFlowData"),e.check(Xe,W,E)(t))}function E(t){return e.check(Ge,k,W)(t)}function k(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),q}function q(t){return null===t||re(t)?E(t):(e.enter("htmlFlowData"),x(t))}function T(t){return 45===t?(e.consume(t),N):x(t)}function _(t){return 47===t?(e.consume(t),a="",R):x(t)}function R(t){if(62===t){const n=a.toLowerCase();return Ue.includes(n)?(e.consume(t),I):x(t)}return Y(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),R):x(t)}function C(t){return 93===t?(e.consume(t),N):x(t)}function N(t){return 62===t?(e.consume(t),I):45===t&&2===o?(e.consume(t),N):x(t)}function I(t){return null===t||re(t)?(e.exit("htmlFlowData"),W(t)):(e.consume(t),I)}function W(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},Xe={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(be,t,n)}},partial:!0},Ge={tokenize:function(e,t,n){const r=this;return function(t){if(re(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const $e={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},Ke={name:"codeFenced",tokenize:function(e,t,n){const r=this,o={tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),ie(t)?ce(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=s?(e.exit("codeFencedFenceSequence"),ie(t)?ce(e,p,"whitespace")(t):p(t)):n(t)}function p(r){return null===r||re(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let i,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),ie(t)?ce(e,c,"whitespace")(t):c(t))}function c(n){return null===n||re(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check($e,b,O)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||re(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):ie(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ce(e,p,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function p(t){return null===t||re(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||re(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),d)}function b(t){return e.attempt(o,O,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return a>0&&ie(t)?ce(e,m,"linePrefix",a+1)(t):m(t)}function m(t){return null===t||re(t)?e.check($e,b,O)(t):(e.enter("codeFlowValue"),g(t))}function g(t){return null===t||re(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),g)}function O(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const Ye=document.createElement("i");function Ze(e){const t="&"+e+";";Ye.innerHTML=t;const n=Ye.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const Je={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,i=Z,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=te,c):(e.enter("characterReferenceValue"),o=7,i=ee,c(t))}function c(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==Z||Ze(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const p=Object.assign({},e[n][1].end),d=Object.assign({},e[u][1].start);lt(p,-s),lt(d,s),i={type:s>1?"strongSequence":"emphasisSequence",start:p,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:d},o={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},i.start),e[u][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=H(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=H(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=H(l,Se(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=H(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=H(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,U(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCharCode(n)}const St=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xt(e){return e.replace(St,Et)}function Et(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return wt(n.slice(t?2:1),t?16:10)}return Ze(n)||e}const kt={}.hasOwnProperty,qt=function(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ie),autolinkProtocol:k,autolinkEmail:k,atxHeading:s(te),blockQuote:s(Y),characterEscape:k,characterReference:k,codeFenced:s(Z),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(Z,l),codeText:s(J,l),codeTextData:k,data:k,codeFlowValue:k,definition:s(Q),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(ee),hardBreakEscape:s(ne),hardBreakTrailing:s(ne),htmlFlow:s(re,l),htmlFlowData:k,htmlText:s(re,l),htmlTextData:k,image:s(oe),label:l,link:s(ie),listItem:s(se),listItemValue:h,listOrdered:s(ae,f),listUnordered:s(ae),paragraph:s(le),reference:U,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(te),strong:s(ce),thematicBreak:s(pe)},exit:{atxHeading:u(),atxHeadingSequence:w,autolink:u(),autolinkEmail:K,autolinkProtocol:$,blockQuote:u(),characterEscapeValue:q,characterReferenceMarkerHexadecimal:X,characterReferenceMarkerNumeric:X,characterReferenceValue:G,codeFenced:u(y),codeFencedFence:O,codeFencedFenceInfo:m,codeFencedFenceMeta:g,codeFlowValue:q,codeIndented:u(M),codeText:u(N),codeTextData:q,data:q,definition:u(),definitionDestinationString:v,definitionLabelString:z,definitionTitleString:A,emphasis:u(),hardBreakEscape:u(_),hardBreakTrailing:u(_),htmlFlow:u(R),htmlFlowData:q,htmlText:u(C),htmlTextData:q,image:u(W),label:L,labelText:P,lineEnding:T,link:u(I),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:H,resourceDestinationString:j,resourceTitleString:D,resource:V,setextHeading:u(E),setextHeadingLineSequence:x,setextHeadingText:S,strong:u(),thematicBreak:u()}};_t(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let n={type:"root",children:[]};const r={stack:[n],tokenStack:[],config:t,enter:c,exit:p,buffer:l,resume:d,setData:i,getData:a},s=[];let u=-1;for(;++u0){const e=r.tokenStack[r.tokenStack.length-1];(e[1]||Ct).call(r,void 0,e[0])}for(n.position={start:Tt(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Tt(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u{const n=this.data("settings");return qt(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function It(e){const t=[];let n=-1,r=0,o=0;for(;++n55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="\ufffd"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}const Wt=Lt("start"),Pt=Lt("end");function Lt(e){return function(t){const n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}const jt={}.hasOwnProperty;function Dt(e){return String(e||"").toUpperCase()}function Bt(e,t){const n=String(t.identifier).toUpperCase(),r=It(n.toLowerCase()),o=e.footnoteOrder.indexOf(n);let i;-1===o?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,i=e.footnoteOrder.length):(e.footnoteCounts[n]++,i=o+1);const a=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function Ft(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function Vt(e){const t=e.spread;return void 0===t||null===t?e.children.length>1:t}const Ut=9,Ht=32;function Xt(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(Gt(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(Gt(t.slice(o),o>0,!1)),i.join("")}function Gt(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;t===Ut||t===Ht;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;t===Ut||t===Ht;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const $t={blockquote:function(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)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,o={};r&&(o.className=["language-"+r]);let i={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:Bt,footnote:function(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const o=String(r);return n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},Bt(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){const n=e.definition(t.identifier);if(!n)return Ft(e,t);const r={src:It(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:It(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(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)},linkReference:function(e,t){const n=e.definition(t.identifier);if(!n)return Ft(e,t);const r={href:It(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:It(t.url)};null!==t.title&&void 0!==t.title&&(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)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=Wt(t.children[1]),a=Pt(t.children[t.children.length-1]);i.line&&a.line&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let s=-1;const l=[];for(;++s{const n=Dt(e.identifier);n&&!jt.call(t,n)&&(t[n]=e)})),function(e){const n=Dt(e);return n&&jt.call(t,n)?t[n]:null}}(e),a.footnoteById=o,a.footnoteOrder=[],a.footnoteCounts={},a.patch=Jt,a.applyData=Qt,a.one=function(e,t){return en(a,e,t)},a.all=function(e){return tn(a,e)},a.wrap=nn,a.augment=i,u(e,"footnoteDefinition",(e=>{const t=String(e.identifier).toUpperCase();Yt.call(o,t)||(o[t]=e)})),a;function i(e,t){if(e&&"data"in e&&e.data){const n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){const n="type"in e?e:{position:e};(function(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column})(n)||(t.position={start:Wt(n),end:Pt(n)})}return t}function a(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),i(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}function Jt(e,t){e.position&&(t.position=function(e){return{start:Wt(e),end:Pt(e)}}(e))}function Qt(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"===typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&o&&(n.properties={...n.properties,...o}),"children"in n&&n.children&&null!==r&&void 0!==r&&(n.children=r)}return n}function en(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return Yt.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:tn(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){const n=t.data||{},r=!("value"in t)||Yt.call(n,"hProperties")||Yt.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:tn(e,t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}(e,t)}function tn(e,t){const n=[];if("children"in t){const r=t.children;let o=-1;for(;++o0&&n.push({type:"text",value:"\n"}),n}function rn(e,t){const n=Zt(e,t),r=n.one(e,null),o=function(e){const t=[];let n=-1;for(;++n1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};s>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(t)}const c=o[o.length-1];if(c&&"element"===c.type&&"p"===c.tagName){const e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else o.push(...l);const u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(o,!0)};e.patch(r,u),t.push(u)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return o&&r.children.push({type:"text",value:"\n"},o),Array.isArray(r)?{type:"root",children:r}:r}const on=function(e,t){return e&&"run"in e?function(e,t){return(n,r,o)=>{e.run(rn(n,t),r,(e=>{o(e)}))}}(e,t):function(e){return t=>rn(t,e)}(e||t)};var an=n(24974),sn=n.n(an);class ln{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function cn(e,t){const n={},r={};let o=-1;for(;++o"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),En=Sn({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function kn(e,t){return t in e?e[t]:t}function qn(e,t){return kn(e,t.toLowerCase())}const Tn=Sn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:qn,properties:{xmlns:null,xmlnsXLink:null}}),_n=Sn({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:fn,ariaAutoComplete:null,ariaBusy:fn,ariaChecked:fn,ariaColCount:mn,ariaColIndex:mn,ariaColSpan:mn,ariaControls:gn,ariaCurrent:null,ariaDescribedBy:gn,ariaDetails:null,ariaDisabled:fn,ariaDropEffect:gn,ariaErrorMessage:null,ariaExpanded:fn,ariaFlowTo:gn,ariaGrabbed:fn,ariaHasPopup:null,ariaHidden:fn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:gn,ariaLevel:mn,ariaLive:null,ariaModal:fn,ariaMultiLine:fn,ariaMultiSelectable:fn,ariaOrientation:null,ariaOwns:gn,ariaPlaceholder:null,ariaPosInSet:mn,ariaPressed:fn,ariaReadOnly:fn,ariaRelevant:null,ariaRequired:fn,ariaRoleDescription:gn,ariaRowCount:mn,ariaRowIndex:mn,ariaRowSpan:mn,ariaSelected:fn,ariaSetSize:mn,ariaSort:null,ariaValueMax:mn,ariaValueMin:mn,ariaValueNow:mn,ariaValueText:null,role:null}}),Rn=Sn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:qn,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:On,acceptCharset:gn,accessKey:gn,action:null,allow:null,allowFullScreen:bn,allowPaymentRequest:bn,allowUserMedia:bn,alt:null,as:null,async:bn,autoCapitalize:null,autoComplete:gn,autoFocus:bn,autoPlay:bn,blocking:gn,capture:bn,charSet:null,checked:bn,cite:null,className:gn,cols:mn,colSpan:null,content:null,contentEditable:fn,controls:bn,controlsList:gn,coords:mn|On,crossOrigin:null,data:null,dateTime:null,decoding:null,default:bn,defer:bn,dir:null,dirName:null,disabled:bn,download:hn,draggable:fn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:bn,formTarget:null,headers:gn,height:mn,hidden:bn,high:mn,href:null,hrefLang:null,htmlFor:gn,httpEquiv:gn,id:null,imageSizes:null,imageSrcSet:null,inert:bn,inputMode:null,integrity:null,is:null,isMap:bn,itemId:null,itemProp:gn,itemRef:gn,itemScope:bn,itemType:gn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:bn,low:mn,manifest:null,max:null,maxLength:mn,media:null,method:null,min:null,minLength:mn,multiple:bn,muted:bn,name:null,nonce:null,noModule:bn,noValidate:bn,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:bn,optimum:mn,pattern:null,ping:gn,placeholder:null,playsInline:bn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:bn,referrerPolicy:null,rel:gn,required:bn,reversed:bn,rows:mn,rowSpan:mn,sandbox:gn,scope:null,scoped:bn,seamless:bn,selected:bn,shadowRootDelegatesFocus:bn,shadowRootMode:null,shape:null,size:mn,sizes:null,slot:null,span:mn,spellCheck:fn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:mn,step:null,style:null,tabIndex:mn,target:null,title:null,translate:null,type:null,typeMustMatch:bn,useMap:null,value:fn,width:mn,wrap:null,align:null,aLink:null,archive:gn,axis:null,background:null,bgColor:null,border:mn,borderColor:null,bottomMargin:mn,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:bn,declare:bn,event:null,face:null,frame:null,frameBorder:null,hSpace:mn,leftMargin:mn,link:null,longDesc:null,lowSrc:null,marginHeight:mn,marginWidth:mn,noResize:bn,noHref:bn,noShade:bn,noWrap:bn,object:null,profile:null,prompt:null,rev:null,rightMargin:mn,rules:null,scheme:null,scrolling:fn,standby:null,summary:null,text:null,topMargin:mn,valueType:null,version:null,vAlign:null,vLink:null,vSpace:mn,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:bn,disableRemotePlayback:bn,prefix:null,property:null,results:mn,security:null,unselectable:null}}),Cn=Sn({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-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:kn,properties:{about:yn,accentHeight:mn,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:mn,amplitude:mn,arabicForm:null,ascent:mn,attributeName:null,attributeType:null,azimuth:mn,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:mn,by:null,calcMode:null,capHeight:mn,className:gn,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:mn,diffuseConstant:mn,direction:null,display:null,dur:null,divisor:mn,dominantBaseline:null,download:bn,dx:null,dy:null,edgeMode:null,editable:null,elevation:mn,enableBackground:null,end:null,event:null,exponent:mn,externalResourcesRequired:null,fill:null,fillOpacity:mn,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:On,g2:On,glyphName:On,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:mn,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:mn,horizOriginX:mn,horizOriginY:mn,id:null,ideographic:mn,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:mn,k:mn,k1:mn,k2:mn,k3:mn,k4:mn,kernelMatrix:yn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:mn,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:mn,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:mn,overlineThickness:mn,paintOrder:null,panose1:null,path:null,pathLength:mn,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:gn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:mn,pointsAtY:mn,pointsAtZ:mn,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yn,rev:yn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yn,requiredFeatures:yn,requiredFonts:yn,requiredFormats:yn,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:mn,specularExponent:mn,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:mn,strikethroughThickness:mn,string:null,stroke:null,strokeDashArray:yn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:mn,strokeOpacity:mn,strokeWidth:null,style:null,surfaceScale:mn,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yn,tabIndex:mn,tableValues:null,target:null,targetX:mn,targetY:mn,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:mn,underlineThickness:mn,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:mn,values:null,vAlphabetic:mn,vMathematical:mn,vectorEffect:null,vHanging:mn,vIdeographic:mn,version:null,vertAdvY:mn,vertOriginX:mn,vertOriginY:mn,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:mn,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Nn=cn([En,xn,Tn,_n,Rn],"html"),In=cn([En,xn,Tn,_n,Cn],"svg");function Wn(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{u(t,"element",((t,n,r)=>{const o=r;let i;if(e.allowedElements?i=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(t.tagName)),!i&&e.allowElement&&"number"===typeof n&&(i=!e.allowElement(t,n,o)),i&&"number"===typeof n)return e.unwrapDisallowed&&t.children?o.children.splice(n,1,...t.children):o.children.splice(n,1),n}))}}var Pn=n(89832);function Ln(e){const t=e&&"object"===typeof e&&"text"===e.type?e.value||"":e;return"string"===typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}const jn=/^data[-\w.:]+$/i,Dn=/-[a-z]/g,Bn=/[A-Z]/g;function Fn(e,t){const n=un(t);let r=t,o=pn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&jn.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Dn,Un);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Dn.test(e)){let n=e.replace(Bn,Vn);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=An}return new o(r,t)}function Vn(e){return"-"+e.toLowerCase()}function Un(e){return e.charAt(1).toUpperCase()}const Hn={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"};function Xn(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Gn(e){return e.join(" ").trim()}function $n(e){const t=[],n=String(e||"");let r=n.indexOf(","),o=0,i=!1;for(;!i;){-1===r&&(r=n.length,i=!0);const e=n.slice(o,r).trim();!e&&i||t.push(e),o=r+1,r=n.indexOf(",",o)}return t}function Kn(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}var Yn=n(27936);const Zn=n.n(Yn)(),Jn=["http","https","mailto","tel"];function Qn(e){const t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;const r=t.indexOf(":");if(-1===r)return t;let o=-1;for(;++oo?t:(o=t.indexOf("#"),-1!==o&&r>o?t:"javascript:void(0)")}const er={}.hasOwnProperty,tr=new Set(["table","thead","tbody","tfoot","tr"]);function nr(e,t){const n=[];let r,o=-1;for(;++o0?i.createElement(f,c,d):i.createElement(f,c)}function or(e,t){let n=-1,r=0;for(;++n for more info)`),delete cr[i]}const t=R().use(Nt).use(e.remarkPlugins||[]).use(on,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Wn,e),n=new w;"string"===typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if("root"!==r.type)throw new TypeError("Expected a `root` node");let o=i.createElement(i.Fragment,{},nr({options:e,schema:Nn,listDepth:0},r));return e.className&&(o=i.createElement("div",{className:e.className},o)),o}ur.propTypes={children:an.string,className:an.string,allowElement:an.func,allowedElements:an.arrayOf(an.string),disallowedElements:an.arrayOf(an.string),unwrapDisallowed:an.bool,remarkPlugins:an.arrayOf(an.oneOfType([an.object,an.func,an.arrayOf(an.oneOfType([an.bool,an.string,an.object,an.func,an.arrayOf(an.any)]))])),rehypePlugins:an.arrayOf(an.oneOfType([an.object,an.func,an.arrayOf(an.oneOfType([an.bool,an.string,an.object,an.func,an.arrayOf(an.any)]))])),sourcePos:an.bool,rawSourcePos:an.bool,skipHtml:an.bool,includeElementIndex:an.bool,transformLinkUri:an.oneOfType([an.func,an.bool]),linkTarget:an.oneOfType([an.func,an.string]),transformImageUri:an.func,components:an.object};var pr=n(34707),dr=n.n(pr),br=n(88674),fr=n.n(br);function hr(e,t,n,r,o,i,a,s,l,c,u,p,d,b,f){let h,m;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),g};function g(t){return 35===t?(h=a,O(t)):46===t?(h=s,O(t)):58===t||95===t||Y(t)?(e.enter(i),e.enter(l),e.consume(t),z):f&&ie(t)?ce(e,g,"whitespace")(t):!f&&oe(t)?Ie(e,g)(t):q(t)}function O(t){const n=h+"Marker";return e.enter(i),e.enter(h),e.enter(n),e.consume(t),e.exit(n),y}function y(t){if(null===t||34===t||35===t||39===t||46===t||60===t||61===t||62===t||96===t||125===t||oe(t))return n(t);const r=h+"Value";return e.enter(r),e.consume(t),M}function M(t){if(null===t||34===t||39===t||60===t||61===t||62===t||96===t)return n(t);if(35===t||46===t||125===t||oe(t)){const n=h+"Value";return e.exit(n),e.exit(h),e.exit(i),g(t)}return e.consume(t),M}function z(t){return 45===t||46===t||58===t||95===t||Z(t)?(e.consume(t),z):(e.exit(l),f&&ie(t)?ce(e,A,"whitespace")(t):!f&&oe(t)?Ie(e,A)(t):A(t))}function A(t){return 61===t?(e.enter(c),e.consume(t),e.exit(c),v):(e.exit(i),g(t))}function v(t){return null===t||60===t||61===t||62===t||96===t||125===t||f&&re(t)?n(t):34===t||39===t?(e.enter(u),e.enter(d),e.consume(t),e.exit(d),m=t,S):f&&ie(t)?ce(e,v,"whitespace")(t):!f&&oe(t)?Ie(e,v)(t):(e.enter(p),e.enter(b),e.consume(t),m=void 0,w)}function w(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?n(t):125===t||oe(t)?(e.exit(b),e.exit(p),e.exit(i),g(t)):(e.consume(t),w)}function S(t){return t===m?(e.enter(d),e.consume(t),e.exit(d),e.exit(u),e.exit(i),k):(e.enter(p),x(t))}function x(t){return t===m?(e.exit(p),S(t)):null===t?n(t):re(t)?f?n(t):Ie(e,x)(t):(e.enter(b),e.consume(t),E)}function E(t){return t===m||null===t||re(t)?(e.exit(b),x(t)):(e.consume(t),E)}function k(e){return 125===e||oe(e)?g(e):q(e)}function q(i){return 125===i?(e.enter(o),e.consume(i),e.exit(o),e.exit(r),t):n(i)}}function mr(e,t,n,r,o,i,a){let s,l=0,c=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),u};function u(n){return 93===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),p(n))}function p(t){if(93===t&&!c)return f(t);const n=e.enter("chunkText",{contentType:"text",previous:s});return s&&(s.next=n),s=n,d(t)}function d(t){return null===t||l>999||91===t&&++c>32?n(t):93!==t||c--?re(t)?a?n(t):(e.consume(t),e.exit("chunkText"),p):(e.consume(t),92===t?b:d):(e.exit("chunkText"),f(t))}function b(t){return 91===t||92===t||93===t?(e.consume(t),l++,d):d(t)}function f(n){return e.exit(i),e.enter(o),e.consume(n),e.exit(o),e.exit(r),t}}function gr(e,t,n,r){const o=this;return function(t){if(Y(t))return e.enter(r),e.consume(t),i;return n(t)};function i(a){return 45===a||95===a||Z(a)?(e.consume(a),i):(e.exit(r),45===o.previous||95===o.previous?n(a):t(a))}}const Or={tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1],i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0;let a,s=0;return function(t){return e.enter("directiveContainer"),e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),l(t)};function l(t){return 58===t?(e.consume(t),s++,l):s<3?n(t):(e.exit("directiveContainerSequence"),gr.call(r,e,c,n,"directiveContainerName")(t))}function c(t){return 91===t?e.attempt(yr,u,u)(t):u(t)}function u(t){return 123===t?e.attempt(Mr,p,p)(t):p(t)}function p(t){return ce(e,d,"whitespace")(t)}function d(o){return e.exit("directiveContainerFence"),null===o?b(o):re(o)?r.interrupt?t(o):e.attempt(zr,f,b)(o):n(o)}function b(n){return e.exit("directiveContainer"),t(n)}function f(n){return null===n?(e.exit("directiveContainer"),t(n)):(e.enter("directiveContainerContent"),h(n))}function h(t){return null===t?M(t):e.attempt({tokenize:z,partial:!0},M,i?ce(e,m,"linePrefix",i+1):m)(t)}function m(t){if(null===t)return M(t);const n=e.enter("chunkDocument",{contentType:"document",previous:a});return a&&(a.next=n),a=n,g(t)}function g(t){if(null===t){const n=e.exit("chunkDocument");return r.parser.lazy[n.start.line]=!1,M(t)}return re(t)?e.check(zr,O,y)(t):(e.consume(t),g)}function O(t){e.consume(t);const n=e.exit("chunkDocument");return r.parser.lazy[n.start.line]=!1,h}function y(t){const n=e.exit("chunkDocument");return r.parser.lazy[n.start.line]=!1,M(t)}function M(n){return e.exit("directiveContainerContent"),e.exit("directiveContainer"),t(n)}function z(e,t,n){let r=0;return ce(e,(function(t){return e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),o(t)}),"linePrefix",4);function o(t){return 58===t?(e.consume(t),r++,o):r=48&&t<=57}function _r(e){const t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Rr(e){return function(e){const t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||function(e){const t="string"===typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}(e)}const Cr=String.fromCharCode,Nr=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Ir(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n="string"===typeof t.additional?t.additional.charCodeAt(0):t.additional,r=[];let o,i,a=0,s=-1,l="";t.position&&("start"in t.position||"indent"in t.position?(i=t.position.indent,o=t.position.start):o=t.position);let c,u=(o?o.line:0)||1,p=(o?o.column:0)||1,d=b();for(a--;++a<=e.length;)if(10===c&&(p=(i?i[s]:0)||1),c=e.charCodeAt(a),38===c){const o=e.charCodeAt(a+1);if(9===o||10===o||12===o||32===o||38===o||60===o||Number.isNaN(o)||n&&o===n){l+=Cr(c),p++;continue}const i=a+1;let s,u=i,m=i;if(35===o){m=++u;const t=e.charCodeAt(m);88===t||120===t?(s="hexadecimal",m=++u):s="decimal"}else s="named";let g="",O="",y="";const M="named"===s?Rr:"decimal"===s?Tr:_r;for(m--;++m<=e.length;){const t=e.charCodeAt(m);if(!M(t))break;y+=Cr(t),"named"===s&&kr.includes(y)&&(g=y,O=Ze(y))}let z=59===e.charCodeAt(m);if(z){m++;const e="named"===s&&Ze(y);e&&(g=y,O=e)}let A=1+m-i,v="";if(z||!1!==t.nonTerminated)if(y)if("named"===s){if(z&&!O)f(5,1);else if(g!==y&&(m=u+g.length,A=1+m-u,z=!1),!z){const n=g?1:3;if(t.attribute){const t=e.charCodeAt(m);61===t?(f(n,A),O=""):Rr(t)?O="":f(n,A)}else f(n,A)}v=O}else{z||f(2,A);let e=Number.parseInt(y,"hexadecimal"===s?16:10);if(Wr(e))f(7,A),v=Cr(65533);else if(e in qr)f(6,A),v=qr[e];else{let t="";Pr(e)&&f(6,A),e>65535&&(e-=65536,t+=Cr(e>>>10|55296),e=56320|1023&e),v=t+Cr(e)}}else"named"!==s&&f(4,A);else;if(v){h(),d=b(),a=m-1,p+=m-i+1,r.push(v);const n=b();n.offset++,t.reference&&t.reference.call(t.referenceContext,v,{start:d,end:n},e.slice(i-1,m)),d=n}else y=e.slice(i-1,m),l+=y,p+=y.length,a=m-1}else 10===c&&(u++,s++,p=0),Number.isNaN(c)?h():(l+=Cr(c),p++);return r.join("");function b(){return{line:u,column:p,offset:a+((o?o.offset:0)||0)}}function f(e,n){let r;t.warning&&(r=b(),r.column+=n,r.offset+=n,t.warning.call(t.warningContext,Nr[e],r,e))}function h(){l&&(r.push(l),t.text&&t.text.call(t.textContext,l,{start:d,end:b()}),l="")}}function Wr(e){return e>=55296&&e<=57343||e>1114111}function Pr(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535===(65535&e)||65534===(65535&e)}function Lr(e,t){return e=e.replace(t.subset?function(e){const t=[];let n=-1;for(;++n`]/g,n),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function jr(e){return""+e.toString(16).toUpperCase()+";"}function Dr(e,t,n){const r=t.indexStack,o=e.children||[],i=t.createTracker(n),a=[];let s=-1;for(r.push(-1);++s0&&("\r"===s||"\n"===s)&&"html"===c.type&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(i.join(""))),i.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=i[i.length-1].slice(-1)}return r.pop(),i.join("")}function Vr(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,o=n.line||1,i=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),a=n[n.length-1];return o+=n.length-1,i=1===n.length?i+a.length:1+a.length+r,t},current:function(){return{now:{line:o,column:i},lineShift:r}},shift:function(e){r+=e}}}const Ur={}.hasOwnProperty,Hr=/^[^\t\n\r "#'.<=>`}]+$/;ro.peek=function(){return":"};const Xr={canContainEols:["textDirective"],enter:{directiveContainer:function(e){$r.call(this,"containerDirective",e)},directiveContainerAttributes:Yr,directiveContainerLabel:function(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)},directiveLeaf:function(e){$r.call(this,"leafDirective",e)},directiveLeafAttributes:Yr,directiveText:function(e){$r.call(this,"textDirective",e)},directiveTextAttributes:Yr},exit:{directiveContainer:no,directiveContainerAttributeClassValue:Jr,directiveContainerAttributeIdValue:Zr,directiveContainerAttributeName:eo,directiveContainerAttributeValue:Qr,directiveContainerAttributes:to,directiveContainerLabel:function(e){this.exit(e)},directiveContainerName:Kr,directiveLeaf:no,directiveLeafAttributeClassValue:Jr,directiveLeafAttributeIdValue:Zr,directiveLeafAttributeName:eo,directiveLeafAttributeValue:Qr,directiveLeafAttributes:to,directiveLeafName:Kr,directiveText:no,directiveTextAttributeClassValue:Jr,directiveTextAttributeIdValue:Zr,directiveTextAttributeName:eo,directiveTextAttributeValue:Qr,directiveTextAttributes:to,directiveTextName:Kr}},Gr={unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:"\n",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}],handlers:{containerDirective:ro,leafDirective:ro,textDirective:ro}};function $r(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function Kr(e){this.stack[this.stack.length-1].name=this.sliceSerialize(e)}function Yr(){this.setData("directiveAttributes",[]),this.buffer()}function Zr(e){this.getData("directiveAttributes").push(["id",Ir(this.sliceSerialize(e),{attribute:!0})])}function Jr(e){this.getData("directiveAttributes").push(["class",Ir(this.sliceSerialize(e),{attribute:!0})])}function Qr(e){const t=this.getData("directiveAttributes");t[t.length-1][1]=Ir(this.sliceSerialize(e),{attribute:!0})}function eo(e){this.getData("directiveAttributes").push([this.sliceSerialize(e),""])}function to(){const e=this.getData("directiveAttributes"),t={};let n=-1;for(;++nt&&(t=r)}})),t+=3):t="leafDirective"===e.type?2:1;return":".repeat(t)}(e),a=n.enter(e.type);let s,l=o.move(i+(e.name||""));if("containerDirective"===e.type){const t=(e.children||[])[0];s=oo(t)?t:void 0}else s=e;if(s&&s.children&&s.children.length>0){const t=n.enter("label"),r=`${e.type}Label`,i=n.enter(r);l+=o.move("["),l+=o.move(Fr(s,n,{...o.current(),before:l,after:"]"})),l+=o.move("]"),i(),t()}if(l+=o.move(function(e,t){const n=function(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}(t),r="textDirective"===e.type?[n]:[n,"\n","\r"],o=e.attributes||{},i=[];let a,s,l,c;for(c in o)if(Ur.call(o,c)&&void 0!==o[c]&&null!==o[c]){const e=String(o[c]);if("id"===c)l=Hr.test(e)?"#"+e:u("id",e);else if("class"===c){const t=e.split(/[\t\n\r ]+/g),n=[],r=[];let o=-1;for(;++o0?u("class",n.join(" ")):"",s=r.length>0?"."+r.join("."):""}else i.push(u(c,e))}a&&i.unshift(a);s&&i.unshift(s);l&&i.unshift(l);return i.length>0?"{"+i.join(" ")+"}":"";function u(e,t){return e+(t?"="+n+function(e,t){return Lr(e,Object.assign({format:jr},t))}(t,{subset:r})+n:"")}}(e,n)),"containerDirective"===e.type){let t=e;oo((e.children||[])[0])&&(t=Object.assign({},e,{children:e.children.slice(1)})),t&&t.children&&t.children.length>0&&(l+=o.move("\n"),l+=o.move(Dr(t,n,o.current()))),l+=o.move("\n"+i)}return a(),l}function oo(e){return Boolean(e&&"paragraph"===e.type&&e.data&&e.data.directiveLabel)}function io(){const e=this.data();function t(t,n){(e[t]?e[t]:e[t]=[]).push(n)}t("micromarkExtensions",{text:{58:Sr},flow:{58:[Or,Ar]}}),t("fromMarkdownExtensions",Xr),t("toMarkdownExtensions",Gr)}const ao={tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1],i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0;let a=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),s(t)};function s(t){return 36===t?(e.consume(t),a++,s):a<2?n(t):(e.exit("mathFlowFenceSequence"),ce(e,l,"whitespace")(t))}function l(t){return null===t||re(t)?u(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return null===t||re(t)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),u(t)):36===t?n(t):(e.consume(t),c)}function u(n){return e.exit("mathFlowFence"),r.interrupt?t(n):e.attempt(so,p,h)(n)}function p(t){return e.attempt({tokenize:m,partial:!0},h,d)(t)}function d(t){return(i?ce(e,b,"linePrefix",i+1):b)(t)}function b(t){return null===t?h(t):re(t)?e.attempt(so,p,h)(t):(e.enter("mathFlowValue"),f(t))}function f(t){return null===t||re(t)?(e.exit("mathFlowValue"),b(t)):(e.consume(t),f)}function h(n){return e.exit("mathFlow"),t(n)}function m(e,t,n){let o=0;return ce(e,(function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),i(t)}),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function i(t){return 36===t?(o++,e.consume(t),i):o=c||(e+1a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a}(o,"$")+1,2)),s=n.enter("mathFlow");let l=i.move(a);if(e.meta){const t=n.enter("mathFlowMeta");l+=i.move(ho(n,e.meta,{before:l,after:"\n",encode:["$"],...i.current()})),t()}l+=i.move("\n"),o&&(l+=i.move(o+"\n"));return l+=i.move(a),s(),l},inlineMath:n}};function n(e,n,r){let o=e.value||"",i=1;for(t||i++;new RegExp("(^|[^$])"+"\\$".repeat(i)+"([^$]|$)").test(o);)i++;const a="$".repeat(i);/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^\$|\$$/.test(o))&&(o=" "+o+" ");let s=-1;for(;++s0&&void 0!==arguments[0]?arguments[0]:{};const t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",function(e){return{flow:{36:ao},text:{36:lo(e)}}}(e)),n("fromMarkdownExtensions",function(){return{enter:{mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},e),this.buffer()}},exit:{mathFlow:function(e){const t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n=this.exit(e);n.value=t,n.data.hChildren[0].value=t,this.setData("mathFlowInside")},mathFlowFence:function(){this.getData("mathFlowInside")||(this.buffer(),this.setData("mathFlowInside",!0))},mathFlowFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},mathFlowValue:e,mathText:function(e){const t=this.resume(),n=this.exit(e);n.value=t,n.data.hChildren[0].value=t},mathTextData:e}};function e(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}()),n("toMarkdownExtensions",Oo(e))}var Mo=n(91305);const zo=/[#.]/g;const Ao=new Set(["menu","submit","reset","button"]),vo={}.hasOwnProperty;function wo(e,t,n){const r=n&&function(e){const t={};let n=-1;for(;++n2?s-2:0),c=2;c-1&&ee)return{line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e};return{line:void 0,column:void 0,offset:void 0}},toOffset:function(e){const t=e&&e.line,r=e&&e.column;if("number"===typeof t&&"number"===typeof r&&!Number.isNaN(t)&&!Number.isNaN(r)&&t-1 in n){const e=(n[t-2]||0)+r-1||0;if(e>-1&&e1?i-1:0),s=1;s{const r=e;if(r.value.stitch&&null!==n&&null!==t)return n.children[t]=r.value.stitch,t})),"root"!==e.type&&"root"===b.type&&1===b.children.length?b.children[0]:b;function f(e){let t=-1;if(e)for(;++t0&&void 0!==arguments[0]?arguments[0]:{};return(t,n)=>$o(t,n,e)}class ei{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new ei(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class ti{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new ti(t,ei.range(this,e))}}class ni{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n,r,o="KaTeX parse error: "+e,i=t&&t.loc;if(i&&i.start<=i.end){var a=i.lexer.input;n=i.start,r=i.end,n===a.length?o+=" at end of input: ":o+=" at position "+(n+1)+": ";var s=a.slice(n,r).replace(/[^]/g,"$&\u0332");o+=(n>15?"\u2026"+a.slice(n-15,n):a.slice(0,n))+s+(r+15":">","<":"<",'"':""","'":"'"},ii=/[&><"']/g;var ai=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},si={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(ii,(e=>oi[e]))},hyphenate:function(e){return e.replace(ri,"-$1").toLowerCase()},getBaseElem:ai,isCharacterBox:function(e){var t=ai(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^\s*([^\\/#]*?)(?::|*58|*3a)/i.exec(e);return null!=t?t[1]:"_relative"}},li={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 "},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 ",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 ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",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 ",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 ",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function ci(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if("string"!==typeof n)return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class ui{constructor(e){for(var t in 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,e=e||{},li)if(li.hasOwnProperty(t)){var n=li[t];this[t]=void 0!==e[t]?n.processor?n.processor(e[t]):e[t]:ci(n)}}reportNonstrict(e,t,n){var r=this.strict;if("function"===typeof r&&(r=r(e,t,n)),r&&"ignore"!==r){if(!0===r||"error"===r)throw new ni("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n);"warn"===r?"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,n){var r=this.strict;if("function"===typeof r)try{r=r(e,t,n)}catch(o){r="error"}return!(!r||"ignore"===r)&&(!0===r||"error"===r||("warn"===r?("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]"),!1)))}isTrusted(e){e.url&&!e.protocol&&(e.protocol=si.protocolFromUrl(e.url));var t="function"===typeof this.trust?this.trust(e):this.trust;return Boolean(t)}}class pi{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return di[bi[this.id]]}sub(){return di[fi[this.id]]}fracNum(){return di[hi[this.id]]}fracDen(){return di[mi[this.id]]}cramp(){return di[gi[this.id]]}text(){return di[Oi[this.id]]}isTight(){return this.size>=2}}var di=[new pi(0,0,!1),new pi(1,0,!0),new pi(2,1,!1),new pi(3,1,!0),new pi(4,2,!1),new pi(5,2,!0),new pi(6,3,!1),new pi(7,3,!0)],bi=[4,5,4,5,6,7,6,7],fi=[5,5,5,5,7,7,7,7],hi=[2,3,4,5,6,7,6,7],mi=[3,3,5,5,7,7,7,7],gi=[1,1,3,3,5,5,7,7],Oi=[0,1,2,3,2,3,2,3],yi={DISPLAY:di[0],TEXT:di[2],SCRIPT:di[4],SCRIPTSCRIPT:di[6]},Mi=[{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]]}];var zi=[];function Ai(e){for(var t=0;t=zi[t]&&e<=zi[t+1])return!0;return!1}Mi.forEach((e=>e.blocks.forEach((e=>zi.push(...e)))));var vi=80,wi={doubleleftarrow:"M262 157\nl10-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\n 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\n 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\nc2 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\n 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\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-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\n 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\n-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\n-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\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-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\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 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\n-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\nc-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\n 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\n 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\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 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\n 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\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 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\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-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\n-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\n-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\n 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\n-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\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 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\n-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\n 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\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-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\n-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\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.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\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-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\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 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\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.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\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 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\n-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\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.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\n60.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\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 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\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.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\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 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\n-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\n 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\n 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\n-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\n-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\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-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\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.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\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-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\n 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\n 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\n-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\n-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\n 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\n-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\n 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\nm0 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\n 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\n-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\n-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\n 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\n 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\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-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\n 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\n-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\n 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\nM399960 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\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-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\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 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\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 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\nc-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\n 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\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 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\n-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\n 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\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-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\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 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\n 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\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -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\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-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\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-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\n-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\n-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\n-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,\n-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,\n-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,\n-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,\n-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\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-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\ns-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\n121.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\ns2.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\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-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\n13.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\n-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\n-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\n-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\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,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\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-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\nc-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\nM0 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\nc1.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,\n1c0,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,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 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\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-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\nc-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\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class Si{constructor(e){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=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return si.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;te.toText())).join("")}}var xi={"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]}},Ei={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]},ki={"\xc5":"A","\xd0":"D","\xde":"o","\xe5":"a","\xf0":"d","\xfe":"o","\u0410":"A","\u0411":"B","\u0412":"B","\u0413":"F","\u0414":"A","\u0415":"E","\u0416":"K","\u0417":"3","\u0418":"N","\u0419":"N","\u041a":"K","\u041b":"N","\u041c":"M","\u041d":"H","\u041e":"O","\u041f":"N","\u0420":"P","\u0421":"C","\u0422":"T","\u0423":"y","\u0424":"O","\u0425":"X","\u0426":"U","\u0427":"h","\u0428":"W","\u0429":"W","\u042a":"B","\u042b":"X","\u042c":"B","\u042d":"3","\u042e":"X","\u042f":"R","\u0430":"a","\u0431":"b","\u0432":"a","\u0433":"r","\u0434":"y","\u0435":"e","\u0436":"m","\u0437":"e","\u0438":"n","\u0439":"n","\u043a":"n","\u043b":"n","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"n","\u0440":"p","\u0441":"c","\u0442":"o","\u0443":"y","\u0444":"b","\u0445":"x","\u0446":"n","\u0447":"n","\u0448":"w","\u0449":"w","\u044a":"a","\u044b":"m","\u044c":"a","\u044d":"e","\u044e":"m","\u044f":"r"};function qi(e,t,n){if(!xi[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),o=xi[t][r];if(!o&&e[0]in ki&&(r=ki[e[0]].charCodeAt(0),o=xi[t][r]),o||"text"!==n||Ai(r)&&(o=xi[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var Ti={};var _i=[[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]],Ri=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ci=function(e,t){return t.size<2?e:_i[e-1][t.size-1]};class Ni{constructor(e){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=e.style,this.color=e.color,this.size=e.size||Ni.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=Ri[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return new Ni(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Ci(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Ri[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=Ci(Ni.BASESIZE,e);return this.size===t&&this.textSize===Ni.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Ni.BASESIZE?["sizing","reset-size"+this.size,"size"+Ni.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!Ti[t=e>=5?0:e>=3?1:2]){var n=Ti[t]={cssEmPerMu:Ei.quad[t]/18};for(var r in Ei)Ei.hasOwnProperty(r)&&(n[r]=Ei[r][t])}return Ti[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Ni.BASESIZE=6;var Ii={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Wi={ex:!0,em:!0,mu:!0},Pi=function(e){return"string"!==typeof e&&(e=e.unit),e in Ii||e in Wi||"ex"===e},Li=function(e,t){var n;if(e.unit in Ii)n=Ii[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var r;if(r=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=r.fontMetrics().xHeight;else{if("em"!==e.unit)throw new ni("Invalid unit: '"+e.unit+"'");n=r.fontMetrics().quad}r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},ji=function(e){return+e.toFixed(4)+"em"},Di=function(e){return e.filter((e=>e)).join(" ")},Bi=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var r=t.getColor();r&&(this.style.color=r)}},Fi=function(e){var t=document.createElement(e);for(var n in t.className=Di(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&t.setAttribute(r,this.attributes[r]);for(var o=0;o";for(var i=0;i"};class Ui{constructor(e,t,n,r){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,Bi.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return si.contains(this.classes,e)}toNode(){return Fi.call(this,"span")}toMarkup(){return Vi.call(this,"span")}}class Hi{constructor(e,t,n,r){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,Bi.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return si.contains(this.classes,e)}toNode(){return Fi.call(this,"a")}toMarkup(){return Vi.call(this,"a")}}class Xi{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}hasClass(e){return si.contains(this.classes,e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e="
"}}var Gi={"\xee":"\u0131\u0302","\xef":"\u0131\u0308","\xed":"\u0131\u0301","\xec":"\u0131\u0300"};class $i{constructor(e,t,n,r,o,i,a,s){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=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=o||0,this.width=i||0,this.classes=a||[],this.style=s||{},this.maxFontSize=0;var l=function(e){for(var t=0;t=o[0]&&e<=o[1])return n.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=Gi[this.text])}hasClass(e){return si.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var n in this.italic>0&&((t=document.createElement("span")).style.marginRight=ji(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=Di(this.classes)),this.style)this.style.hasOwnProperty(n)&&((t=t||document.createElement("span")).style[n]=this.style[n]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(r)&&(n+=si.hyphenate(r)+":"+this.style[r]+";");n&&(e=!0,t+=' style="'+si.escape(n)+'"');var o=si.escape(this.text);return e?(t+=">",t+=o,t+=""):o}}class Ki{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n";for(var n=0;n"}}class Yi{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",wi[this.pathName]),e}toMarkup(){return this.alternate?"":""}}class Zi{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=""}}function Ji(e){if(e instanceof $i)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var Qi={bin:1,close:1,inner:1,open:1,punct:1,rel:1},ea={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ta={math:{},text:{}};function na(e,t,n,r,o,i){ta[e][o]={font:t,group:n,replace:r},i&&r&&(ta[e][r]=ta[e][o])}var ra="math",oa="text",ia="main",aa="ams",sa="accent-token",la="bin",ca="close",ua="inner",pa="mathord",da="op-token",ba="open",fa="punct",ha="rel",ma="spacing",ga="textord";na(ra,ia,ha,"\u2261","\\equiv",!0),na(ra,ia,ha,"\u227a","\\prec",!0),na(ra,ia,ha,"\u227b","\\succ",!0),na(ra,ia,ha,"\u223c","\\sim",!0),na(ra,ia,ha,"\u22a5","\\perp"),na(ra,ia,ha,"\u2aaf","\\preceq",!0),na(ra,ia,ha,"\u2ab0","\\succeq",!0),na(ra,ia,ha,"\u2243","\\simeq",!0),na(ra,ia,ha,"\u2223","\\mid",!0),na(ra,ia,ha,"\u226a","\\ll",!0),na(ra,ia,ha,"\u226b","\\gg",!0),na(ra,ia,ha,"\u224d","\\asymp",!0),na(ra,ia,ha,"\u2225","\\parallel"),na(ra,ia,ha,"\u22c8","\\bowtie",!0),na(ra,ia,ha,"\u2323","\\smile",!0),na(ra,ia,ha,"\u2291","\\sqsubseteq",!0),na(ra,ia,ha,"\u2292","\\sqsupseteq",!0),na(ra,ia,ha,"\u2250","\\doteq",!0),na(ra,ia,ha,"\u2322","\\frown",!0),na(ra,ia,ha,"\u220b","\\ni",!0),na(ra,ia,ha,"\u221d","\\propto",!0),na(ra,ia,ha,"\u22a2","\\vdash",!0),na(ra,ia,ha,"\u22a3","\\dashv",!0),na(ra,ia,ha,"\u220b","\\owns"),na(ra,ia,fa,".","\\ldotp"),na(ra,ia,fa,"\u22c5","\\cdotp"),na(ra,ia,ga,"#","\\#"),na(oa,ia,ga,"#","\\#"),na(ra,ia,ga,"&","\\&"),na(oa,ia,ga,"&","\\&"),na(ra,ia,ga,"\u2135","\\aleph",!0),na(ra,ia,ga,"\u2200","\\forall",!0),na(ra,ia,ga,"\u210f","\\hbar",!0),na(ra,ia,ga,"\u2203","\\exists",!0),na(ra,ia,ga,"\u2207","\\nabla",!0),na(ra,ia,ga,"\u266d","\\flat",!0),na(ra,ia,ga,"\u2113","\\ell",!0),na(ra,ia,ga,"\u266e","\\natural",!0),na(ra,ia,ga,"\u2663","\\clubsuit",!0),na(ra,ia,ga,"\u2118","\\wp",!0),na(ra,ia,ga,"\u266f","\\sharp",!0),na(ra,ia,ga,"\u2662","\\diamondsuit",!0),na(ra,ia,ga,"\u211c","\\Re",!0),na(ra,ia,ga,"\u2661","\\heartsuit",!0),na(ra,ia,ga,"\u2111","\\Im",!0),na(ra,ia,ga,"\u2660","\\spadesuit",!0),na(ra,ia,ga,"\xa7","\\S",!0),na(oa,ia,ga,"\xa7","\\S"),na(ra,ia,ga,"\xb6","\\P",!0),na(oa,ia,ga,"\xb6","\\P"),na(ra,ia,ga,"\u2020","\\dag"),na(oa,ia,ga,"\u2020","\\dag"),na(oa,ia,ga,"\u2020","\\textdagger"),na(ra,ia,ga,"\u2021","\\ddag"),na(oa,ia,ga,"\u2021","\\ddag"),na(oa,ia,ga,"\u2021","\\textdaggerdbl"),na(ra,ia,ca,"\u23b1","\\rmoustache",!0),na(ra,ia,ba,"\u23b0","\\lmoustache",!0),na(ra,ia,ca,"\u27ef","\\rgroup",!0),na(ra,ia,ba,"\u27ee","\\lgroup",!0),na(ra,ia,la,"\u2213","\\mp",!0),na(ra,ia,la,"\u2296","\\ominus",!0),na(ra,ia,la,"\u228e","\\uplus",!0),na(ra,ia,la,"\u2293","\\sqcap",!0),na(ra,ia,la,"\u2217","\\ast"),na(ra,ia,la,"\u2294","\\sqcup",!0),na(ra,ia,la,"\u25ef","\\bigcirc",!0),na(ra,ia,la,"\u2219","\\bullet",!0),na(ra,ia,la,"\u2021","\\ddagger"),na(ra,ia,la,"\u2240","\\wr",!0),na(ra,ia,la,"\u2a3f","\\amalg"),na(ra,ia,la,"&","\\And"),na(ra,ia,ha,"\u27f5","\\longleftarrow",!0),na(ra,ia,ha,"\u21d0","\\Leftarrow",!0),na(ra,ia,ha,"\u27f8","\\Longleftarrow",!0),na(ra,ia,ha,"\u27f6","\\longrightarrow",!0),na(ra,ia,ha,"\u21d2","\\Rightarrow",!0),na(ra,ia,ha,"\u27f9","\\Longrightarrow",!0),na(ra,ia,ha,"\u2194","\\leftrightarrow",!0),na(ra,ia,ha,"\u27f7","\\longleftrightarrow",!0),na(ra,ia,ha,"\u21d4","\\Leftrightarrow",!0),na(ra,ia,ha,"\u27fa","\\Longleftrightarrow",!0),na(ra,ia,ha,"\u21a6","\\mapsto",!0),na(ra,ia,ha,"\u27fc","\\longmapsto",!0),na(ra,ia,ha,"\u2197","\\nearrow",!0),na(ra,ia,ha,"\u21a9","\\hookleftarrow",!0),na(ra,ia,ha,"\u21aa","\\hookrightarrow",!0),na(ra,ia,ha,"\u2198","\\searrow",!0),na(ra,ia,ha,"\u21bc","\\leftharpoonup",!0),na(ra,ia,ha,"\u21c0","\\rightharpoonup",!0),na(ra,ia,ha,"\u2199","\\swarrow",!0),na(ra,ia,ha,"\u21bd","\\leftharpoondown",!0),na(ra,ia,ha,"\u21c1","\\rightharpoondown",!0),na(ra,ia,ha,"\u2196","\\nwarrow",!0),na(ra,ia,ha,"\u21cc","\\rightleftharpoons",!0),na(ra,aa,ha,"\u226e","\\nless",!0),na(ra,aa,ha,"\ue010","\\@nleqslant"),na(ra,aa,ha,"\ue011","\\@nleqq"),na(ra,aa,ha,"\u2a87","\\lneq",!0),na(ra,aa,ha,"\u2268","\\lneqq",!0),na(ra,aa,ha,"\ue00c","\\@lvertneqq"),na(ra,aa,ha,"\u22e6","\\lnsim",!0),na(ra,aa,ha,"\u2a89","\\lnapprox",!0),na(ra,aa,ha,"\u2280","\\nprec",!0),na(ra,aa,ha,"\u22e0","\\npreceq",!0),na(ra,aa,ha,"\u22e8","\\precnsim",!0),na(ra,aa,ha,"\u2ab9","\\precnapprox",!0),na(ra,aa,ha,"\u2241","\\nsim",!0),na(ra,aa,ha,"\ue006","\\@nshortmid"),na(ra,aa,ha,"\u2224","\\nmid",!0),na(ra,aa,ha,"\u22ac","\\nvdash",!0),na(ra,aa,ha,"\u22ad","\\nvDash",!0),na(ra,aa,ha,"\u22ea","\\ntriangleleft"),na(ra,aa,ha,"\u22ec","\\ntrianglelefteq",!0),na(ra,aa,ha,"\u228a","\\subsetneq",!0),na(ra,aa,ha,"\ue01a","\\@varsubsetneq"),na(ra,aa,ha,"\u2acb","\\subsetneqq",!0),na(ra,aa,ha,"\ue017","\\@varsubsetneqq"),na(ra,aa,ha,"\u226f","\\ngtr",!0),na(ra,aa,ha,"\ue00f","\\@ngeqslant"),na(ra,aa,ha,"\ue00e","\\@ngeqq"),na(ra,aa,ha,"\u2a88","\\gneq",!0),na(ra,aa,ha,"\u2269","\\gneqq",!0),na(ra,aa,ha,"\ue00d","\\@gvertneqq"),na(ra,aa,ha,"\u22e7","\\gnsim",!0),na(ra,aa,ha,"\u2a8a","\\gnapprox",!0),na(ra,aa,ha,"\u2281","\\nsucc",!0),na(ra,aa,ha,"\u22e1","\\nsucceq",!0),na(ra,aa,ha,"\u22e9","\\succnsim",!0),na(ra,aa,ha,"\u2aba","\\succnapprox",!0),na(ra,aa,ha,"\u2246","\\ncong",!0),na(ra,aa,ha,"\ue007","\\@nshortparallel"),na(ra,aa,ha,"\u2226","\\nparallel",!0),na(ra,aa,ha,"\u22af","\\nVDash",!0),na(ra,aa,ha,"\u22eb","\\ntriangleright"),na(ra,aa,ha,"\u22ed","\\ntrianglerighteq",!0),na(ra,aa,ha,"\ue018","\\@nsupseteqq"),na(ra,aa,ha,"\u228b","\\supsetneq",!0),na(ra,aa,ha,"\ue01b","\\@varsupsetneq"),na(ra,aa,ha,"\u2acc","\\supsetneqq",!0),na(ra,aa,ha,"\ue019","\\@varsupsetneqq"),na(ra,aa,ha,"\u22ae","\\nVdash",!0),na(ra,aa,ha,"\u2ab5","\\precneqq",!0),na(ra,aa,ha,"\u2ab6","\\succneqq",!0),na(ra,aa,ha,"\ue016","\\@nsubseteqq"),na(ra,aa,la,"\u22b4","\\unlhd"),na(ra,aa,la,"\u22b5","\\unrhd"),na(ra,aa,ha,"\u219a","\\nleftarrow",!0),na(ra,aa,ha,"\u219b","\\nrightarrow",!0),na(ra,aa,ha,"\u21cd","\\nLeftarrow",!0),na(ra,aa,ha,"\u21cf","\\nRightarrow",!0),na(ra,aa,ha,"\u21ae","\\nleftrightarrow",!0),na(ra,aa,ha,"\u21ce","\\nLeftrightarrow",!0),na(ra,aa,ha,"\u25b3","\\vartriangle"),na(ra,aa,ga,"\u210f","\\hslash"),na(ra,aa,ga,"\u25bd","\\triangledown"),na(ra,aa,ga,"\u25ca","\\lozenge"),na(ra,aa,ga,"\u24c8","\\circledS"),na(ra,aa,ga,"\xae","\\circledR"),na(oa,aa,ga,"\xae","\\circledR"),na(ra,aa,ga,"\u2221","\\measuredangle",!0),na(ra,aa,ga,"\u2204","\\nexists"),na(ra,aa,ga,"\u2127","\\mho"),na(ra,aa,ga,"\u2132","\\Finv",!0),na(ra,aa,ga,"\u2141","\\Game",!0),na(ra,aa,ga,"\u2035","\\backprime"),na(ra,aa,ga,"\u25b2","\\blacktriangle"),na(ra,aa,ga,"\u25bc","\\blacktriangledown"),na(ra,aa,ga,"\u25a0","\\blacksquare"),na(ra,aa,ga,"\u29eb","\\blacklozenge"),na(ra,aa,ga,"\u2605","\\bigstar"),na(ra,aa,ga,"\u2222","\\sphericalangle",!0),na(ra,aa,ga,"\u2201","\\complement",!0),na(ra,aa,ga,"\xf0","\\eth",!0),na(oa,ia,ga,"\xf0","\xf0"),na(ra,aa,ga,"\u2571","\\diagup"),na(ra,aa,ga,"\u2572","\\diagdown"),na(ra,aa,ga,"\u25a1","\\square"),na(ra,aa,ga,"\u25a1","\\Box"),na(ra,aa,ga,"\u25ca","\\Diamond"),na(ra,aa,ga,"\xa5","\\yen",!0),na(oa,aa,ga,"\xa5","\\yen",!0),na(ra,aa,ga,"\u2713","\\checkmark",!0),na(oa,aa,ga,"\u2713","\\checkmark"),na(ra,aa,ga,"\u2136","\\beth",!0),na(ra,aa,ga,"\u2138","\\daleth",!0),na(ra,aa,ga,"\u2137","\\gimel",!0),na(ra,aa,ga,"\u03dd","\\digamma",!0),na(ra,aa,ga,"\u03f0","\\varkappa"),na(ra,aa,ba,"\u250c","\\@ulcorner",!0),na(ra,aa,ca,"\u2510","\\@urcorner",!0),na(ra,aa,ba,"\u2514","\\@llcorner",!0),na(ra,aa,ca,"\u2518","\\@lrcorner",!0),na(ra,aa,ha,"\u2266","\\leqq",!0),na(ra,aa,ha,"\u2a7d","\\leqslant",!0),na(ra,aa,ha,"\u2a95","\\eqslantless",!0),na(ra,aa,ha,"\u2272","\\lesssim",!0),na(ra,aa,ha,"\u2a85","\\lessapprox",!0),na(ra,aa,ha,"\u224a","\\approxeq",!0),na(ra,aa,la,"\u22d6","\\lessdot"),na(ra,aa,ha,"\u22d8","\\lll",!0),na(ra,aa,ha,"\u2276","\\lessgtr",!0),na(ra,aa,ha,"\u22da","\\lesseqgtr",!0),na(ra,aa,ha,"\u2a8b","\\lesseqqgtr",!0),na(ra,aa,ha,"\u2251","\\doteqdot"),na(ra,aa,ha,"\u2253","\\risingdotseq",!0),na(ra,aa,ha,"\u2252","\\fallingdotseq",!0),na(ra,aa,ha,"\u223d","\\backsim",!0),na(ra,aa,ha,"\u22cd","\\backsimeq",!0),na(ra,aa,ha,"\u2ac5","\\subseteqq",!0),na(ra,aa,ha,"\u22d0","\\Subset",!0),na(ra,aa,ha,"\u228f","\\sqsubset",!0),na(ra,aa,ha,"\u227c","\\preccurlyeq",!0),na(ra,aa,ha,"\u22de","\\curlyeqprec",!0),na(ra,aa,ha,"\u227e","\\precsim",!0),na(ra,aa,ha,"\u2ab7","\\precapprox",!0),na(ra,aa,ha,"\u22b2","\\vartriangleleft"),na(ra,aa,ha,"\u22b4","\\trianglelefteq"),na(ra,aa,ha,"\u22a8","\\vDash",!0),na(ra,aa,ha,"\u22aa","\\Vvdash",!0),na(ra,aa,ha,"\u2323","\\smallsmile"),na(ra,aa,ha,"\u2322","\\smallfrown"),na(ra,aa,ha,"\u224f","\\bumpeq",!0),na(ra,aa,ha,"\u224e","\\Bumpeq",!0),na(ra,aa,ha,"\u2267","\\geqq",!0),na(ra,aa,ha,"\u2a7e","\\geqslant",!0),na(ra,aa,ha,"\u2a96","\\eqslantgtr",!0),na(ra,aa,ha,"\u2273","\\gtrsim",!0),na(ra,aa,ha,"\u2a86","\\gtrapprox",!0),na(ra,aa,la,"\u22d7","\\gtrdot"),na(ra,aa,ha,"\u22d9","\\ggg",!0),na(ra,aa,ha,"\u2277","\\gtrless",!0),na(ra,aa,ha,"\u22db","\\gtreqless",!0),na(ra,aa,ha,"\u2a8c","\\gtreqqless",!0),na(ra,aa,ha,"\u2256","\\eqcirc",!0),na(ra,aa,ha,"\u2257","\\circeq",!0),na(ra,aa,ha,"\u225c","\\triangleq",!0),na(ra,aa,ha,"\u223c","\\thicksim"),na(ra,aa,ha,"\u2248","\\thickapprox"),na(ra,aa,ha,"\u2ac6","\\supseteqq",!0),na(ra,aa,ha,"\u22d1","\\Supset",!0),na(ra,aa,ha,"\u2290","\\sqsupset",!0),na(ra,aa,ha,"\u227d","\\succcurlyeq",!0),na(ra,aa,ha,"\u22df","\\curlyeqsucc",!0),na(ra,aa,ha,"\u227f","\\succsim",!0),na(ra,aa,ha,"\u2ab8","\\succapprox",!0),na(ra,aa,ha,"\u22b3","\\vartriangleright"),na(ra,aa,ha,"\u22b5","\\trianglerighteq"),na(ra,aa,ha,"\u22a9","\\Vdash",!0),na(ra,aa,ha,"\u2223","\\shortmid"),na(ra,aa,ha,"\u2225","\\shortparallel"),na(ra,aa,ha,"\u226c","\\between",!0),na(ra,aa,ha,"\u22d4","\\pitchfork",!0),na(ra,aa,ha,"\u221d","\\varpropto"),na(ra,aa,ha,"\u25c0","\\blacktriangleleft"),na(ra,aa,ha,"\u2234","\\therefore",!0),na(ra,aa,ha,"\u220d","\\backepsilon"),na(ra,aa,ha,"\u25b6","\\blacktriangleright"),na(ra,aa,ha,"\u2235","\\because",!0),na(ra,aa,ha,"\u22d8","\\llless"),na(ra,aa,ha,"\u22d9","\\gggtr"),na(ra,aa,la,"\u22b2","\\lhd"),na(ra,aa,la,"\u22b3","\\rhd"),na(ra,aa,ha,"\u2242","\\eqsim",!0),na(ra,ia,ha,"\u22c8","\\Join"),na(ra,aa,ha,"\u2251","\\Doteq",!0),na(ra,aa,la,"\u2214","\\dotplus",!0),na(ra,aa,la,"\u2216","\\smallsetminus"),na(ra,aa,la,"\u22d2","\\Cap",!0),na(ra,aa,la,"\u22d3","\\Cup",!0),na(ra,aa,la,"\u2a5e","\\doublebarwedge",!0),na(ra,aa,la,"\u229f","\\boxminus",!0),na(ra,aa,la,"\u229e","\\boxplus",!0),na(ra,aa,la,"\u22c7","\\divideontimes",!0),na(ra,aa,la,"\u22c9","\\ltimes",!0),na(ra,aa,la,"\u22ca","\\rtimes",!0),na(ra,aa,la,"\u22cb","\\leftthreetimes",!0),na(ra,aa,la,"\u22cc","\\rightthreetimes",!0),na(ra,aa,la,"\u22cf","\\curlywedge",!0),na(ra,aa,la,"\u22ce","\\curlyvee",!0),na(ra,aa,la,"\u229d","\\circleddash",!0),na(ra,aa,la,"\u229b","\\circledast",!0),na(ra,aa,la,"\u22c5","\\centerdot"),na(ra,aa,la,"\u22ba","\\intercal",!0),na(ra,aa,la,"\u22d2","\\doublecap"),na(ra,aa,la,"\u22d3","\\doublecup"),na(ra,aa,la,"\u22a0","\\boxtimes",!0),na(ra,aa,ha,"\u21e2","\\dashrightarrow",!0),na(ra,aa,ha,"\u21e0","\\dashleftarrow",!0),na(ra,aa,ha,"\u21c7","\\leftleftarrows",!0),na(ra,aa,ha,"\u21c6","\\leftrightarrows",!0),na(ra,aa,ha,"\u21da","\\Lleftarrow",!0),na(ra,aa,ha,"\u219e","\\twoheadleftarrow",!0),na(ra,aa,ha,"\u21a2","\\leftarrowtail",!0),na(ra,aa,ha,"\u21ab","\\looparrowleft",!0),na(ra,aa,ha,"\u21cb","\\leftrightharpoons",!0),na(ra,aa,ha,"\u21b6","\\curvearrowleft",!0),na(ra,aa,ha,"\u21ba","\\circlearrowleft",!0),na(ra,aa,ha,"\u21b0","\\Lsh",!0),na(ra,aa,ha,"\u21c8","\\upuparrows",!0),na(ra,aa,ha,"\u21bf","\\upharpoonleft",!0),na(ra,aa,ha,"\u21c3","\\downharpoonleft",!0),na(ra,ia,ha,"\u22b6","\\origof",!0),na(ra,ia,ha,"\u22b7","\\imageof",!0),na(ra,aa,ha,"\u22b8","\\multimap",!0),na(ra,aa,ha,"\u21ad","\\leftrightsquigarrow",!0),na(ra,aa,ha,"\u21c9","\\rightrightarrows",!0),na(ra,aa,ha,"\u21c4","\\rightleftarrows",!0),na(ra,aa,ha,"\u21a0","\\twoheadrightarrow",!0),na(ra,aa,ha,"\u21a3","\\rightarrowtail",!0),na(ra,aa,ha,"\u21ac","\\looparrowright",!0),na(ra,aa,ha,"\u21b7","\\curvearrowright",!0),na(ra,aa,ha,"\u21bb","\\circlearrowright",!0),na(ra,aa,ha,"\u21b1","\\Rsh",!0),na(ra,aa,ha,"\u21ca","\\downdownarrows",!0),na(ra,aa,ha,"\u21be","\\upharpoonright",!0),na(ra,aa,ha,"\u21c2","\\downharpoonright",!0),na(ra,aa,ha,"\u21dd","\\rightsquigarrow",!0),na(ra,aa,ha,"\u21dd","\\leadsto"),na(ra,aa,ha,"\u21db","\\Rrightarrow",!0),na(ra,aa,ha,"\u21be","\\restriction"),na(ra,ia,ga,"\u2018","`"),na(ra,ia,ga,"$","\\$"),na(oa,ia,ga,"$","\\$"),na(oa,ia,ga,"$","\\textdollar"),na(ra,ia,ga,"%","\\%"),na(oa,ia,ga,"%","\\%"),na(ra,ia,ga,"_","\\_"),na(oa,ia,ga,"_","\\_"),na(oa,ia,ga,"_","\\textunderscore"),na(ra,ia,ga,"\u2220","\\angle",!0),na(ra,ia,ga,"\u221e","\\infty",!0),na(ra,ia,ga,"\u2032","\\prime"),na(ra,ia,ga,"\u25b3","\\triangle"),na(ra,ia,ga,"\u0393","\\Gamma",!0),na(ra,ia,ga,"\u0394","\\Delta",!0),na(ra,ia,ga,"\u0398","\\Theta",!0),na(ra,ia,ga,"\u039b","\\Lambda",!0),na(ra,ia,ga,"\u039e","\\Xi",!0),na(ra,ia,ga,"\u03a0","\\Pi",!0),na(ra,ia,ga,"\u03a3","\\Sigma",!0),na(ra,ia,ga,"\u03a5","\\Upsilon",!0),na(ra,ia,ga,"\u03a6","\\Phi",!0),na(ra,ia,ga,"\u03a8","\\Psi",!0),na(ra,ia,ga,"\u03a9","\\Omega",!0),na(ra,ia,ga,"A","\u0391"),na(ra,ia,ga,"B","\u0392"),na(ra,ia,ga,"E","\u0395"),na(ra,ia,ga,"Z","\u0396"),na(ra,ia,ga,"H","\u0397"),na(ra,ia,ga,"I","\u0399"),na(ra,ia,ga,"K","\u039a"),na(ra,ia,ga,"M","\u039c"),na(ra,ia,ga,"N","\u039d"),na(ra,ia,ga,"O","\u039f"),na(ra,ia,ga,"P","\u03a1"),na(ra,ia,ga,"T","\u03a4"),na(ra,ia,ga,"X","\u03a7"),na(ra,ia,ga,"\xac","\\neg",!0),na(ra,ia,ga,"\xac","\\lnot"),na(ra,ia,ga,"\u22a4","\\top"),na(ra,ia,ga,"\u22a5","\\bot"),na(ra,ia,ga,"\u2205","\\emptyset"),na(ra,aa,ga,"\u2205","\\varnothing"),na(ra,ia,pa,"\u03b1","\\alpha",!0),na(ra,ia,pa,"\u03b2","\\beta",!0),na(ra,ia,pa,"\u03b3","\\gamma",!0),na(ra,ia,pa,"\u03b4","\\delta",!0),na(ra,ia,pa,"\u03f5","\\epsilon",!0),na(ra,ia,pa,"\u03b6","\\zeta",!0),na(ra,ia,pa,"\u03b7","\\eta",!0),na(ra,ia,pa,"\u03b8","\\theta",!0),na(ra,ia,pa,"\u03b9","\\iota",!0),na(ra,ia,pa,"\u03ba","\\kappa",!0),na(ra,ia,pa,"\u03bb","\\lambda",!0),na(ra,ia,pa,"\u03bc","\\mu",!0),na(ra,ia,pa,"\u03bd","\\nu",!0),na(ra,ia,pa,"\u03be","\\xi",!0),na(ra,ia,pa,"\u03bf","\\omicron",!0),na(ra,ia,pa,"\u03c0","\\pi",!0),na(ra,ia,pa,"\u03c1","\\rho",!0),na(ra,ia,pa,"\u03c3","\\sigma",!0),na(ra,ia,pa,"\u03c4","\\tau",!0),na(ra,ia,pa,"\u03c5","\\upsilon",!0),na(ra,ia,pa,"\u03d5","\\phi",!0),na(ra,ia,pa,"\u03c7","\\chi",!0),na(ra,ia,pa,"\u03c8","\\psi",!0),na(ra,ia,pa,"\u03c9","\\omega",!0),na(ra,ia,pa,"\u03b5","\\varepsilon",!0),na(ra,ia,pa,"\u03d1","\\vartheta",!0),na(ra,ia,pa,"\u03d6","\\varpi",!0),na(ra,ia,pa,"\u03f1","\\varrho",!0),na(ra,ia,pa,"\u03c2","\\varsigma",!0),na(ra,ia,pa,"\u03c6","\\varphi",!0),na(ra,ia,la,"\u2217","*",!0),na(ra,ia,la,"+","+"),na(ra,ia,la,"\u2212","-",!0),na(ra,ia,la,"\u22c5","\\cdot",!0),na(ra,ia,la,"\u2218","\\circ",!0),na(ra,ia,la,"\xf7","\\div",!0),na(ra,ia,la,"\xb1","\\pm",!0),na(ra,ia,la,"\xd7","\\times",!0),na(ra,ia,la,"\u2229","\\cap",!0),na(ra,ia,la,"\u222a","\\cup",!0),na(ra,ia,la,"\u2216","\\setminus",!0),na(ra,ia,la,"\u2227","\\land"),na(ra,ia,la,"\u2228","\\lor"),na(ra,ia,la,"\u2227","\\wedge",!0),na(ra,ia,la,"\u2228","\\vee",!0),na(ra,ia,ga,"\u221a","\\surd"),na(ra,ia,ba,"\u27e8","\\langle",!0),na(ra,ia,ba,"\u2223","\\lvert"),na(ra,ia,ba,"\u2225","\\lVert"),na(ra,ia,ca,"?","?"),na(ra,ia,ca,"!","!"),na(ra,ia,ca,"\u27e9","\\rangle",!0),na(ra,ia,ca,"\u2223","\\rvert"),na(ra,ia,ca,"\u2225","\\rVert"),na(ra,ia,ha,"=","="),na(ra,ia,ha,":",":"),na(ra,ia,ha,"\u2248","\\approx",!0),na(ra,ia,ha,"\u2245","\\cong",!0),na(ra,ia,ha,"\u2265","\\ge"),na(ra,ia,ha,"\u2265","\\geq",!0),na(ra,ia,ha,"\u2190","\\gets"),na(ra,ia,ha,">","\\gt",!0),na(ra,ia,ha,"\u2208","\\in",!0),na(ra,ia,ha,"\ue020","\\@not"),na(ra,ia,ha,"\u2282","\\subset",!0),na(ra,ia,ha,"\u2283","\\supset",!0),na(ra,ia,ha,"\u2286","\\subseteq",!0),na(ra,ia,ha,"\u2287","\\supseteq",!0),na(ra,aa,ha,"\u2288","\\nsubseteq",!0),na(ra,aa,ha,"\u2289","\\nsupseteq",!0),na(ra,ia,ha,"\u22a8","\\models"),na(ra,ia,ha,"\u2190","\\leftarrow",!0),na(ra,ia,ha,"\u2264","\\le"),na(ra,ia,ha,"\u2264","\\leq",!0),na(ra,ia,ha,"<","\\lt",!0),na(ra,ia,ha,"\u2192","\\rightarrow",!0),na(ra,ia,ha,"\u2192","\\to"),na(ra,aa,ha,"\u2271","\\ngeq",!0),na(ra,aa,ha,"\u2270","\\nleq",!0),na(ra,ia,ma,"\xa0","\\ "),na(ra,ia,ma,"\xa0","\\space"),na(ra,ia,ma,"\xa0","\\nobreakspace"),na(oa,ia,ma,"\xa0","\\ "),na(oa,ia,ma,"\xa0"," "),na(oa,ia,ma,"\xa0","\\space"),na(oa,ia,ma,"\xa0","\\nobreakspace"),na(ra,ia,ma,null,"\\nobreak"),na(ra,ia,ma,null,"\\allowbreak"),na(ra,ia,fa,",",","),na(ra,ia,fa,";",";"),na(ra,aa,la,"\u22bc","\\barwedge",!0),na(ra,aa,la,"\u22bb","\\veebar",!0),na(ra,ia,la,"\u2299","\\odot",!0),na(ra,ia,la,"\u2295","\\oplus",!0),na(ra,ia,la,"\u2297","\\otimes",!0),na(ra,ia,ga,"\u2202","\\partial",!0),na(ra,ia,la,"\u2298","\\oslash",!0),na(ra,aa,la,"\u229a","\\circledcirc",!0),na(ra,aa,la,"\u22a1","\\boxdot",!0),na(ra,ia,la,"\u25b3","\\bigtriangleup"),na(ra,ia,la,"\u25bd","\\bigtriangledown"),na(ra,ia,la,"\u2020","\\dagger"),na(ra,ia,la,"\u22c4","\\diamond"),na(ra,ia,la,"\u22c6","\\star"),na(ra,ia,la,"\u25c3","\\triangleleft"),na(ra,ia,la,"\u25b9","\\triangleright"),na(ra,ia,ba,"{","\\{"),na(oa,ia,ga,"{","\\{"),na(oa,ia,ga,"{","\\textbraceleft"),na(ra,ia,ca,"}","\\}"),na(oa,ia,ga,"}","\\}"),na(oa,ia,ga,"}","\\textbraceright"),na(ra,ia,ba,"{","\\lbrace"),na(ra,ia,ca,"}","\\rbrace"),na(ra,ia,ba,"[","\\lbrack",!0),na(oa,ia,ga,"[","\\lbrack",!0),na(ra,ia,ca,"]","\\rbrack",!0),na(oa,ia,ga,"]","\\rbrack",!0),na(ra,ia,ba,"(","\\lparen",!0),na(ra,ia,ca,")","\\rparen",!0),na(oa,ia,ga,"<","\\textless",!0),na(oa,ia,ga,">","\\textgreater",!0),na(ra,ia,ba,"\u230a","\\lfloor",!0),na(ra,ia,ca,"\u230b","\\rfloor",!0),na(ra,ia,ba,"\u2308","\\lceil",!0),na(ra,ia,ca,"\u2309","\\rceil",!0),na(ra,ia,ga,"\\","\\backslash"),na(ra,ia,ga,"\u2223","|"),na(ra,ia,ga,"\u2223","\\vert"),na(oa,ia,ga,"|","\\textbar",!0),na(ra,ia,ga,"\u2225","\\|"),na(ra,ia,ga,"\u2225","\\Vert"),na(oa,ia,ga,"\u2225","\\textbardbl"),na(oa,ia,ga,"~","\\textasciitilde"),na(oa,ia,ga,"\\","\\textbackslash"),na(oa,ia,ga,"^","\\textasciicircum"),na(ra,ia,ha,"\u2191","\\uparrow",!0),na(ra,ia,ha,"\u21d1","\\Uparrow",!0),na(ra,ia,ha,"\u2193","\\downarrow",!0),na(ra,ia,ha,"\u21d3","\\Downarrow",!0),na(ra,ia,ha,"\u2195","\\updownarrow",!0),na(ra,ia,ha,"\u21d5","\\Updownarrow",!0),na(ra,ia,da,"\u2210","\\coprod"),na(ra,ia,da,"\u22c1","\\bigvee"),na(ra,ia,da,"\u22c0","\\bigwedge"),na(ra,ia,da,"\u2a04","\\biguplus"),na(ra,ia,da,"\u22c2","\\bigcap"),na(ra,ia,da,"\u22c3","\\bigcup"),na(ra,ia,da,"\u222b","\\int"),na(ra,ia,da,"\u222b","\\intop"),na(ra,ia,da,"\u222c","\\iint"),na(ra,ia,da,"\u222d","\\iiint"),na(ra,ia,da,"\u220f","\\prod"),na(ra,ia,da,"\u2211","\\sum"),na(ra,ia,da,"\u2a02","\\bigotimes"),na(ra,ia,da,"\u2a01","\\bigoplus"),na(ra,ia,da,"\u2a00","\\bigodot"),na(ra,ia,da,"\u222e","\\oint"),na(ra,ia,da,"\u222f","\\oiint"),na(ra,ia,da,"\u2230","\\oiiint"),na(ra,ia,da,"\u2a06","\\bigsqcup"),na(ra,ia,da,"\u222b","\\smallint"),na(oa,ia,ua,"\u2026","\\textellipsis"),na(ra,ia,ua,"\u2026","\\mathellipsis"),na(oa,ia,ua,"\u2026","\\ldots",!0),na(ra,ia,ua,"\u2026","\\ldots",!0),na(ra,ia,ua,"\u22ef","\\@cdots",!0),na(ra,ia,ua,"\u22f1","\\ddots",!0),na(ra,ia,ga,"\u22ee","\\varvdots"),na(ra,ia,sa,"\u02ca","\\acute"),na(ra,ia,sa,"\u02cb","\\grave"),na(ra,ia,sa,"\xa8","\\ddot"),na(ra,ia,sa,"~","\\tilde"),na(ra,ia,sa,"\u02c9","\\bar"),na(ra,ia,sa,"\u02d8","\\breve"),na(ra,ia,sa,"\u02c7","\\check"),na(ra,ia,sa,"^","\\hat"),na(ra,ia,sa,"\u20d7","\\vec"),na(ra,ia,sa,"\u02d9","\\dot"),na(ra,ia,sa,"\u02da","\\mathring"),na(ra,ia,pa,"\ue131","\\@imath"),na(ra,ia,pa,"\ue237","\\@jmath"),na(ra,ia,ga,"\u0131","\u0131"),na(ra,ia,ga,"\u0237","\u0237"),na(oa,ia,ga,"\u0131","\\i",!0),na(oa,ia,ga,"\u0237","\\j",!0),na(oa,ia,ga,"\xdf","\\ss",!0),na(oa,ia,ga,"\xe6","\\ae",!0),na(oa,ia,ga,"\u0153","\\oe",!0),na(oa,ia,ga,"\xf8","\\o",!0),na(oa,ia,ga,"\xc6","\\AE",!0),na(oa,ia,ga,"\u0152","\\OE",!0),na(oa,ia,ga,"\xd8","\\O",!0),na(oa,ia,sa,"\u02ca","\\'"),na(oa,ia,sa,"\u02cb","\\`"),na(oa,ia,sa,"\u02c6","\\^"),na(oa,ia,sa,"\u02dc","\\~"),na(oa,ia,sa,"\u02c9","\\="),na(oa,ia,sa,"\u02d8","\\u"),na(oa,ia,sa,"\u02d9","\\."),na(oa,ia,sa,"\xb8","\\c"),na(oa,ia,sa,"\u02da","\\r"),na(oa,ia,sa,"\u02c7","\\v"),na(oa,ia,sa,"\xa8",'\\"'),na(oa,ia,sa,"\u02dd","\\H"),na(oa,ia,sa,"\u25ef","\\textcircled");var Oa={"--":!0,"---":!0,"``":!0,"''":!0};na(oa,ia,ga,"\u2013","--",!0),na(oa,ia,ga,"\u2013","\\textendash"),na(oa,ia,ga,"\u2014","---",!0),na(oa,ia,ga,"\u2014","\\textemdash"),na(oa,ia,ga,"\u2018","`",!0),na(oa,ia,ga,"\u2018","\\textquoteleft"),na(oa,ia,ga,"\u2019","'",!0),na(oa,ia,ga,"\u2019","\\textquoteright"),na(oa,ia,ga,"\u201c","``",!0),na(oa,ia,ga,"\u201c","\\textquotedblleft"),na(oa,ia,ga,"\u201d","''",!0),na(oa,ia,ga,"\u201d","\\textquotedblright"),na(ra,ia,ga,"\xb0","\\degree",!0),na(oa,ia,ga,"\xb0","\\degree"),na(oa,ia,ga,"\xb0","\\textdegree",!0),na(ra,ia,ga,"\xa3","\\pounds"),na(ra,ia,ga,"\xa3","\\mathsterling",!0),na(oa,ia,ga,"\xa3","\\pounds"),na(oa,ia,ga,"\xa3","\\textsterling",!0),na(ra,aa,ga,"\u2720","\\maltese"),na(oa,aa,ga,"\u2720","\\maltese");for(var ya='0123456789/@."',Ma=0;Ma<14;Ma++){var za=ya.charAt(Ma);na(ra,ia,ga,za,za)}for(var Aa='0123456789!@*()-=+";:?/.,',va=0;va<25;va++){var wa=Aa.charAt(va);na(oa,ia,ga,wa,wa)}for(var Sa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",xa=0;xa<52;xa++){var Ea=Sa.charAt(xa);na(ra,ia,pa,Ea,Ea),na(oa,ia,ga,Ea,Ea)}na(ra,aa,ga,"C","\u2102"),na(oa,aa,ga,"C","\u2102"),na(ra,aa,ga,"H","\u210d"),na(oa,aa,ga,"H","\u210d"),na(ra,aa,ga,"N","\u2115"),na(oa,aa,ga,"N","\u2115"),na(ra,aa,ga,"P","\u2119"),na(oa,aa,ga,"P","\u2119"),na(ra,aa,ga,"Q","\u211a"),na(oa,aa,ga,"Q","\u211a"),na(ra,aa,ga,"R","\u211d"),na(oa,aa,ga,"R","\u211d"),na(ra,aa,ga,"Z","\u2124"),na(oa,aa,ga,"Z","\u2124"),na(ra,ia,pa,"h","\u210e"),na(oa,ia,pa,"h","\u210e");for(var ka="",qa=0;qa<52;qa++){var Ta=Sa.charAt(qa);na(ra,ia,pa,Ta,ka=String.fromCharCode(55349,56320+qa)),na(oa,ia,ga,Ta,ka),na(ra,ia,pa,Ta,ka=String.fromCharCode(55349,56372+qa)),na(oa,ia,ga,Ta,ka),na(ra,ia,pa,Ta,ka=String.fromCharCode(55349,56424+qa)),na(oa,ia,ga,Ta,ka),na(ra,ia,pa,Ta,ka=String.fromCharCode(55349,56580+qa)),na(oa,ia,ga,Ta,ka),na(ra,ia,pa,Ta,ka=String.fromCharCode(55349,56684+qa)),na(oa,ia,ga,Ta,ka),na(ra,ia,pa,Ta,ka=String.fromCharCode(55349,56736+qa)),na(oa,ia,ga,Ta,ka),na(ra,ia,pa,Ta,ka=String.fromCharCode(55349,56788+qa)),na(oa,ia,ga,Ta,ka),na(ra,ia,pa,Ta,ka=String.fromCharCode(55349,56840+qa)),na(oa,ia,ga,Ta,ka),na(ra,ia,pa,Ta,ka=String.fromCharCode(55349,56944+qa)),na(oa,ia,ga,Ta,ka),qa<26&&(na(ra,ia,pa,Ta,ka=String.fromCharCode(55349,56632+qa)),na(oa,ia,ga,Ta,ka),na(ra,ia,pa,Ta,ka=String.fromCharCode(55349,56476+qa)),na(oa,ia,ga,Ta,ka))}na(ra,ia,pa,"k",ka=String.fromCharCode(55349,56668)),na(oa,ia,ga,"k",ka);for(var _a=0;_a<10;_a++){var Ra=_a.toString();na(ra,ia,pa,Ra,ka=String.fromCharCode(55349,57294+_a)),na(oa,ia,ga,Ra,ka),na(ra,ia,pa,Ra,ka=String.fromCharCode(55349,57314+_a)),na(oa,ia,ga,Ra,ka),na(ra,ia,pa,Ra,ka=String.fromCharCode(55349,57324+_a)),na(oa,ia,ga,Ra,ka),na(ra,ia,pa,Ra,ka=String.fromCharCode(55349,57334+_a)),na(oa,ia,ga,Ra,ka)}for(var Ca="\xd0\xde\xfe",Na=0;Na<3;Na++){var Ia=Ca.charAt(Na);na(ra,ia,pa,Ia,Ia),na(oa,ia,ga,Ia,Ia)}var Wa=[["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"]],Pa=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],La=function(e,t,n){return ta[n][e]&&ta[n][e].replace&&(e=ta[n][e].replace),{value:e,metrics:qi(e,t,n)}},ja=function(e,t,n,r,o){var i,a=La(e,t,n),s=a.metrics;if(e=a.value,s){var l=s.italic;("text"===n||r&&"mathit"===r.font)&&(l=0),i=new $i(e,s.height,s.depth,l,s.skew,s.width,o)}else"undefined"!==typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+n+"'"),i=new $i(e,0,0,0,0,0,o);if(r){i.maxFontSize=r.sizeMultiplier,r.style.isTight()&&i.classes.push("mtight");var c=r.getColor();c&&(i.style.color=c)}return i},Da=(e,t)=>{if(Di(e.classes)!==Di(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var n=e.classes[0];if("mbin"===n||"mord"===n)return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var o in t.style)if(t.style.hasOwnProperty(o)&&e.style[o]!==t.style[o])return!1;return!0},Ba=function(e){for(var t=0,n=0,r=0,o=0;ot&&(t=i.height),i.depth>n&&(n=i.depth),i.maxFontSize>r&&(r=i.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},Fa=function(e,t,n,r){var o=new Ui(e,t,n,r);return Ba(o),o},Va=(e,t,n,r)=>new Ui(e,t,n,r),Ua=function(e){var t=new Si(e);return Ba(t),t},Ha=function(e,t,n){var r="";switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}return r+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},Xa={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"},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"}},Ga={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},$a={fontMap:Xa,makeSymbol:ja,mathsym:function(e,t,n,r){return void 0===r&&(r=[]),"boldsymbol"===n.font&&La(e,"Main-Bold",t).metrics?ja(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===ta[t][e].font?ja(e,"Main-Regular",t,n,r):ja(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},makeSpan:Fa,makeSvgSpan:Va,makeLineSpan:function(e,t,n){var r=Fa([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=ji(r.height),r.maxFontSize=1,r},makeAnchor:function(e,t,n,r){var o=new Hi(e,t,n,r);return Ba(o),o},makeFragment:Ua,wrapFragment:function(e,t){return e instanceof Si?Fa([],[e],t):e},makeVList:function(e,t){for(var{children:n,depth:r}=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,o=r,i=1;i0)return ja(o,l,r,t,i.concat(c));if(s){var u,p;if("boldsymbol"===s){var d=function(e,t,n,r,o){return"textord"!==o&&La(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(o,r,0,0,n);u=d.fontName,p=[d.fontClass]}else a?(u=Xa[s].fontName,p=[s]):(u=Ha(s,t.fontWeight,t.fontShape),p=[s,t.fontWeight,t.fontShape]);if(La(o,u,r).metrics)return ja(o,u,r,t,i.concat(p));if(Oa.hasOwnProperty(o)&&"Typewriter"===u.slice(0,10)){for(var b=[],f=0;f{var n=Fa(["mspace"],[],t),r=Li(e,t);return n.style.marginRight=ji(r),n},staticSvg:function(e,t){var[n,r,o]=Ga[e],i=new Yi(n),a=new Ki([i],{width:ji(r),height:ji(o),style:"width:"+ji(r),viewBox:"0 0 "+1e3*r+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),s=Va(["overlay"],[a],t);return s.height=o,s.style.height=ji(o),s.style.width=ji(r),s},svgData:Ga,tryCombineChars:e=>{for(var t=0;t{var n=t.classes[0],r=e.classes[0];"mbin"===n&&si.contains(cs,r)?t.classes[0]="mord":"mbin"===r&&si.contains(ls,n)&&(e.classes[0]="mord")}),{node:u},p,d),bs(o,((e,t)=>{var n=ms(t),r=ms(e),o=n&&r?e.hasClass("mtight")?Qa[n][r]:Ja[n][r]:null;if(o)return $a.makeGlue(o,l)}),{node:u},p,d),o},bs=function e(t,n,r,o,i){o&&t.push(o);for(var a=0;an=>{t.splice(e+1,0,n),a++})(a)}}o&&t.pop()},fs=function(e){return e instanceof Si||e instanceof Hi||e instanceof Ui&&e.hasClass("enclosing")?e:null},hs=function e(t,n){var r=fs(t);if(r){var o=r.children;if(o.length){if("right"===n)return e(o[o.length-1],"right");if("left"===n)return e(o[0],"left")}}return t},ms=function(e,t){return e?(t&&(e=hs(e,t)),ps[e.classes[0]]||null):null},gs=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return ss(t.concat(n))},Os=function(e,t,n){if(!e)return ss();if(ts[e.type]){var r=ts[e.type](e,t);if(n&&t.size!==n.size){r=ss(t.sizingClasses(n),[r],t);var o=t.sizeMultiplier/n.sizeMultiplier;r.height*=o,r.depth*=o}return r}throw new ni("Got group of unknown type: '"+e.type+"'")};function ys(e,t){var n=ss(["base"],e,t),r=ss(["strut"]);return r.style.height=ji(n.height+n.depth),n.depth&&(r.style.verticalAlign=ji(-n.depth)),n.children.unshift(r),n}function Ms(e,t){var n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);var r,o=ds(e,t,"root");2===o.length&&o[1].hasClass("tag")&&(r=o.pop());for(var i,a=[],s=[],l=0;l0&&(a.push(ys(s,t)),s=[]),a.push(o[l]));s.length>0&&a.push(ys(s,t)),n?((i=ys(ds(n,t,!0))).classes=["tag"],a.push(i)):r&&a.push(r);var u=ss(["katex-html"],a);if(u.setAttribute("aria-hidden","true"),i){var p=i.children[0];p.style.height=ji(u.height+u.depth),u.depth&&(p.style.verticalAlign=ji(-u.depth))}return u}function zs(e){return new Si(e)}class As{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Di(this.classes));for(var n=0;n0&&(e+=' class ="'+si.escape(Di(this.classes))+'"'),e+=">";for(var n=0;n"}toText(){return this.children.map((e=>e.toText())).join("")}}class vs{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return si.escape(this.toText())}toText(){return this.text}}var ws={MathNode:As,TextNode:vs,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?"\u200a":e>=.1666&&e<=.1667?"\u2009":e>=.2222&&e<=.2223?"\u2005":e>=.2777&&e<=.2778?"\u2005\u200a":e>=-.05556&&e<=-.05555?"\u200a\u2063":e>=-.1667&&e<=-.1666?"\u2009\u2063":e>=-.2223&&e<=-.2222?"\u205f\u2063":e>=-.2778&&e<=-.2777?"\u2005\u2063":null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",ji(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}},newDocumentFragment:zs},Ss=function(e,t,n){return!ta[t][e]||!ta[t][e].replace||55349===e.charCodeAt(0)||Oa.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.slice(4,6)||n.font&&"tt"===n.font.slice(4,6))||(e=ta[t][e].replace),new ws.TextNode(e)},xs=function(e){return 1===e.length?e[0]:new ws.MathNode("mrow",e)},Es=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var r=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var o=e.text;return si.contains(["\\imath","\\jmath"],o)?null:(ta[r][o]&&ta[r][o].replace&&(o=ta[r][o].replace),qi(o,$a.fontMap[n].fontName,r)?$a.fontMap[n].variant:null)},ks=function(e,t,n){if(1===e.length){var r=Ts(e[0],t);return n&&r instanceof As&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var o,i=[],a=0;a0&&(u.text=u.text.slice(0,1)+"\u0338"+u.text.slice(1),i.pop())}}}i.push(s),o=s}return i},qs=function(e,t,n){return xs(ks(e,t,n))},Ts=function(e,t){if(!e)return new ws.MathNode("mrow");if(ns[e.type])return ns[e.type](e,t);throw new ni("Got group of unknown type: '"+e.type+"'")};function _s(e,t,n,r,o){var i,a=ks(e,n);i=1===a.length&&a[0]instanceof As&&si.contains(["mrow","mtable"],a[0].type)?a[0]:new ws.MathNode("mrow",a);var s=new ws.MathNode("annotation",[new ws.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new ws.MathNode("semantics",[i,s]),c=new ws.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block");var u=o?"katex":"katex-mathml";return $a.makeSpan([u],[c])}var Rs=function(e){return new Ni({style:e.displayMode?yi.DISPLAY:yi.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Cs=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=$a.makeSpan(n,[e])}return e},Ns={widehat:"^",widecheck:"\u02c7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23df",overbrace:"\u23de",overgroup:"\u23e0",undergroup:"\u23e1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21d2",xRightarrow:"\u21d2",overleftharpoon:"\u21bc",xleftharpoonup:"\u21bc",overrightharpoon:"\u21c0",xrightharpoonup:"\u21c0",xLeftarrow:"\u21d0",xLeftrightarrow:"\u21d4",xhookleftarrow:"\u21a9",xhookrightarrow:"\u21aa",xmapsto:"\u21a6",xrightharpoondown:"\u21c1",xleftharpoondown:"\u21bd",xrightleftharpoons:"\u21cc",xleftrightharpoons:"\u21cb",xtwoheadleftarrow:"\u219e",xtwoheadrightarrow:"\u21a0",xlongequal:"=",xtofrom:"\u21c4",xrightleftarrows:"\u21c4",xrightequilibrium:"\u21cc",xleftequilibrium:"\u21cb","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},Is={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]},Ws=function(e,t,n,r,o){var i,a=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(i=$a.makeSpan(["stretchy",t],[],o),"fbox"===t){var s=o.color&&o.getColor();s&&(i.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new Zi({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new Zi({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new Ki(l,{width:"100%",height:ji(a)});i=$a.makeSvgSpan([],[c],o)}return i.height=a,i.style.height=ji(a),i},Ps=function(e){var t=new ws.MathNode("mo",[new ws.TextNode(Ns[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Ls=function(e,t){var{span:n,minWidth:r,height:o}=function(){var n=4e5,r=e.label.slice(1);if(si.contains(["widehat","widecheck","widetilde","utilde"],r)){var o,i,a,s="ordgroup"===(b=e.base).type?b.body.length:1;if(s>5)"widehat"===r||"widecheck"===r?(o=420,n=2364,a=.42,i=r+"4"):(o=312,n=2340,a=.34,i="tilde4");else{var l=[1,1,2,2,3,3][s];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][l],o=[0,239,300,360,420][l],a=[0,.24,.3,.3,.36,.42][l],i=r+l):(n=[0,600,1033,2339,2340][l],o=[0,260,286,306,312][l],a=[0,.26,.286,.3,.306,.34][l],i="tilde"+l)}var c=new Yi(i),u=new Ki([c],{width:"100%",height:ji(a),viewBox:"0 0 "+n+" "+o,preserveAspectRatio:"none"});return{span:$a.makeSvgSpan([],[u],t),minWidth:0,height:a}}var p,d,b,f=[],h=Is[r],[m,g,O]=h,y=O/1e3,M=m.length;if(1===M)p=["hide-tail"],d=[h[3]];else if(2===M)p=["halfarrow-left","halfarrow-right"],d=["xMinYMin","xMaxYMin"];else{if(3!==M)throw new Error("Correct katexImagesData or update code here to support\n "+M+" children.");p=["brace-left","brace-center","brace-right"],d=["xMinYMin","xMidYMin","xMaxYMin"]}for(var z=0;z0&&(n.style.minWidth=ji(r)),n};function js(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 Ds(e){var t=Bs(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 Bs(e){return e&&("atom"===e.type||ea.hasOwnProperty(e.type))?e:null}var Fs=(e,t)=>{var n,r,o;e&&"supsub"===e.type?(n=(r=js(e.base,"accent")).base,e.base=n,o=function(e){if(e instanceof Ui)return e;throw new Error("Expected span but got "+String(e)+".")}(Os(e,t)),e.base=r):n=(r=js(e,"accent")).base;var i=Os(n,t.havingCrampedStyle()),a=0;if(r.isShifty&&si.isCharacterBox(n)){var s=si.getBaseElem(n);a=Ji(Os(s,t.havingCrampedStyle())).skew}var l,c="\\c"===r.label,u=c?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight);if(r.isStretchy)l=Ls(r,t),l=$a.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:l,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+ji(2*a)+")",marginLeft:ji(2*a)}:void 0}]},t);else{var p,d;"\\vec"===r.label?(p=$a.staticSvg("vec",t),d=$a.svgData.vec[1]):((p=Ji(p=$a.makeOrd({mode:r.mode,text:r.label},t,"textord"))).italic=0,d=p.width,c&&(u+=p.depth)),l=$a.makeSpan(["accent-body"],[p]);var b="\\textcircled"===r.label;b&&(l.classes.push("accent-full"),u=i.height);var f=a;b||(f-=d/2),l.style.left=ji(f),"\\textcircled"===r.label&&(l.style.top=".2em"),l=$a.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-u},{type:"elem",elem:l}]},t)}var h=$a.makeSpan(["mord","accent"],[l],t);return o?(o.children[0]=h,o.height=Math.max(h.height,o.height),o.classes[0]="mord",o):h},Vs=(e,t)=>{var n=e.isStretchy?Ps(e.label):new ws.MathNode("mo",[Ss(e.label,e.mode)]),r=new ws.MathNode("mover",[Ts(e.base,t),n]);return r.setAttribute("accent","true"),r},Us=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((e=>"\\"+e)).join("|"));rs({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=is(t[0]),r=!Us.test(e.funcName),o=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:o,base:n}},htmlBuilder:Fs,mathmlBuilder:Vs}),rs({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"math"===r&&(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:Fs,mathmlBuilder:Vs}),rs({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:o}},htmlBuilder:(e,t)=>{var n=Os(e.base,t),r=Ls(e,t),o="\\utilde"===e.label?.12:0,i=$a.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]},t);return $a.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var n=Ps(e.label),r=new ws.MathNode("munder",[Ts(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Hs=e=>{var t=new ws.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};rs({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:o}=e;return{type:"xArrow",mode:r.mode,label:o,body:t[0],below:n[0]}},htmlBuilder(e,t){var n,r=t.style,o=t.havingStyle(r.sup()),i=$a.wrapFragment(Os(e.body,o,t),t),a="\\x"===e.label.slice(0,2)?"x":"cd";i.classes.push(a+"-arrow-pad"),e.below&&(o=t.havingStyle(r.sub()),(n=$a.wrapFragment(Os(e.below,o,t),t)).classes.push(a+"-arrow-pad"));var s,l=Ls(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,u=-t.fontMetrics().axisHeight-.5*l.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(u-=i.depth),n){var p=-t.fontMetrics().axisHeight+n.height+.5*l.height+.111;s=$a.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:l,shift:c},{type:"elem",elem:n,shift:p}]},t)}else s=$a.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:l,shift:c}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),$a.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder(e,t){var n,r=Ps(e.label);if(r.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var o=Hs(Ts(e.body,t));if(e.below){var i=Hs(Ts(e.below,t));n=new ws.MathNode("munderover",[r,i,o])}else n=new ws.MathNode("mover",[r,o])}else if(e.below){var a=Hs(Ts(e.below,t));n=new ws.MathNode("munder",[r,a])}else n=Hs(),n=new ws.MathNode("mover",[r,n]);return n}});var Xs=$a.makeSpan;function Gs(e,t){var n=ds(e.body,t,!0);return Xs([e.mclass],n,t)}function $s(e,t){var n,r=ks(e.body,t);return"minner"===e.mclass?n=new ws.MathNode("mpadded",r):"mord"===e.mclass?e.isCharacterBox?(n=r[0]).type="mi":n=new ws.MathNode("mi",r):(e.isCharacterBox?(n=r[0]).type="mo":n=new ws.MathNode("mo",r),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0em"):"minner"===e.mclass&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}rs({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,o=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:as(o),isCharacterBox:si.isCharacterBox(o)}},htmlBuilder:Gs,mathmlBuilder:$s});var Ks=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};rs({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Ks(t[0]),body:as(t[1]),isCharacterBox:si.isCharacterBox(t[1])}}}),rs({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var n,{parser:r,funcName:o}=e,i=t[1],a=t[0];n="\\stackrel"!==o?Ks(i):"mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==o,body:as(i)},l={type:"supsub",mode:a.mode,base:s,sup:"\\underset"===o?null:a,sub:"\\underset"===o?a:null};return{type:"mclass",mode:r.mode,mclass:n,body:[l],isCharacterBox:si.isCharacterBox(l)}},htmlBuilder:Gs,mathmlBuilder:$s}),rs({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Ks(t[0]),body:as(t[0])}},htmlBuilder(e,t){var n=ds(e.body,t,!0),r=$a.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=ks(e.body,t),r=new ws.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Ys={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Zs=e=>"textord"===e.type&&"@"===e.text,Js=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;function Qs(e,t,n){var r=Ys[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var o={type:"atom",text:r,mode:"math",family:"rel"},i={type:"ordgroup",mode:"math",body:[n.callFunction("\\\\cdleft",[t[0]],[]),n.callFunction("\\Big",[o],[]),n.callFunction("\\\\cdright",[t[1]],[])]};return n.callFunction("\\\\cdparent",[i],[]);case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return n.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}rs({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=$a.wrapFragment(Os(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=ji(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new ws.MathNode("mrow",[Ts(e.label,t)]);return(n=new ws.MathNode("mpadded",[n])).setAttribute("width","0"),"left"===e.side&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),(n=new ws.MathNode("mstyle",[n])).setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),rs({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=$a.wrapFragment(Os(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder:(e,t)=>new ws.MathNode("mrow",[Ts(e.fragment,t)])}),rs({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=js(t[0],"ordgroup").body,o="",i=0;i=1114111)throw new ni("\\@char with invalid code point "+o);return s<=65535?a=String.fromCharCode(s):(s-=65536,a=String.fromCharCode(55296+(s>>10),56320+(1023&s))),{type:"textord",mode:n.mode,text:a}}});var el=(e,t)=>{var n=ds(e.body,t.withColor(e.color),!1);return $a.makeFragment(n)},tl=(e,t)=>{var n=ks(e.body,t.withColor(e.color)),r=new ws.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};rs({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=js(t[0],"color-token").color,o=t[1];return{type:"color",mode:n.mode,color:r,body:as(o)}},htmlBuilder:el,mathmlBuilder:tl}),rs({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,o=js(t[0],"color-token").color;n.gullet.macros.set("\\current@color",o);var i=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:o,body:i}},htmlBuilder:el,mathmlBuilder:tl}),rs({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,o="["===r.gullet.future().text?r.parseSizeGroup(!0):null,i=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:i,size:o&&js(o,"size").value}},htmlBuilder(e,t){var n=$a.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=ji(Li(e.size,t)))),n},mathmlBuilder(e,t){var n=new ws.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",ji(Li(e.size,t)))),n}});var nl={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},rl=e=>{var t=e.text;if(/^(?:[\\{}$^_]|EOF)$/.test(t))throw new ni("Expected a control sequence",e);return t},ol=(e,t,n,r)=>{var o=e.gullet.macros.get(n.text);null==o&&(n.noexpand=!0,o={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,o,r)};rs({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(nl[r.text])return"\\global"!==n&&"\\\\globallong"!==n||(r.text=nl[r.text]),js(t.parseFunction(),"internal");throw new ni("Invalid token after macro prefix",r)}}),rs({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(),o=r.text;if(/^(?:[\\{}$^_]|EOF)$/.test(o))throw new ni("Expected a control sequence",r);for(var i,a=0,s=[[]];"{"!==t.gullet.future().text;)if("#"===(r=t.gullet.popToken()).text){if("{"===t.gullet.future().text){i=t.gullet.future(),s[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new ni('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new ni('Argument number "'+r.text+'" out of order');a++,s.push([])}else{if("EOF"===r.text)throw new ni("Expected a macro definition");s[a].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return i&&l.unshift(i),"\\edef"!==n&&"\\xdef"!==n||(l=t.gullet.expandTokens(l)).reverse(),t.gullet.macros.set(o,{tokens:l,numArgs:a,delimiters:s},n===nl[n]),{type:"internal",mode:t.mode}}}),rs({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=rl(t.gullet.popToken());t.gullet.consumeSpaces();var o=(e=>{var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t})(t);return ol(t,r,o,"\\\\globallet"===n),{type:"internal",mode:t.mode}}}),rs({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=rl(t.gullet.popToken()),o=t.gullet.popToken(),i=t.gullet.popToken();return ol(t,r,i,"\\\\globalfuture"===n),t.gullet.pushToken(i),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var il=function(e,t,n){var r=qi(ta.math[e]&&ta.math[e].replace||e,t,n);if(!r)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return r},al=function(e,t,n,r){var o=n.havingBaseStyle(t),i=$a.makeSpan(r.concat(o.sizingClasses(n)),[e],n),a=o.sizeMultiplier/n.sizeMultiplier;return i.height*=a,i.depth*=a,i.maxFontSize=o.sizeMultiplier,i},sl=function(e,t,n){var r=t.havingBaseStyle(n),o=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=ji(o),e.height-=o,e.depth+=o},ll=function(e,t,n,r,o,i){var a=function(e,t,n,r){return $a.makeSymbol(e,"Size"+t+"-Regular",n,r)}(e,t,o,r),s=al($a.makeSpan(["delimsizing","size"+t],[a],r),yi.TEXT,r,i);return n&&sl(s,r,yi.TEXT),s},cl=function(e,t,n){var r;return r="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:$a.makeSpan(["delimsizinginner",r],[$a.makeSpan([],[$a.makeSymbol(e,t,n)])])}},ul=function(e,t,n){var r=xi["Size4-Regular"][e.charCodeAt(0)]?xi["Size4-Regular"][e.charCodeAt(0)][4]:xi["Size1-Regular"][e.charCodeAt(0)][4],o=new Yi("inner",function(e,t){switch(e){case"\u239c":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"\u2223":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"\u2225":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"\u239f":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"\u23a2":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"\u23a5":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"\u23aa":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"\u23d0":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"\u2016":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),i=new Ki([o],{width:ji(r),height:ji(t),style:"width:"+ji(r),viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),a=$a.makeSvgSpan([],[i],n);return a.height=t,a.style.height=ji(t),a.style.width=ji(r),{type:"elem",elem:a}},pl={type:"kern",size:-.008},dl=["|","\\lvert","\\rvert","\\vert"],bl=["\\|","\\lVert","\\rVert","\\Vert"],fl=function(e,t,n,r,o,i){var a,s,l,c,u="",p=0;a=l=c=e,s=null;var d="Size1-Regular";"\\uparrow"===e?l=c="\u23d0":"\\Uparrow"===e?l=c="\u2016":"\\downarrow"===e?a=l="\u23d0":"\\Downarrow"===e?a=l="\u2016":"\\updownarrow"===e?(a="\\uparrow",l="\u23d0",c="\\downarrow"):"\\Updownarrow"===e?(a="\\Uparrow",l="\u2016",c="\\Downarrow"):si.contains(dl,e)?(l="\u2223",u="vert",p=333):si.contains(bl,e)?(l="\u2225",u="doublevert",p=556):"["===e||"\\lbrack"===e?(a="\u23a1",l="\u23a2",c="\u23a3",d="Size4-Regular",u="lbrack",p=667):"]"===e||"\\rbrack"===e?(a="\u23a4",l="\u23a5",c="\u23a6",d="Size4-Regular",u="rbrack",p=667):"\\lfloor"===e||"\u230a"===e?(l=a="\u23a2",c="\u23a3",d="Size4-Regular",u="lfloor",p=667):"\\lceil"===e||"\u2308"===e?(a="\u23a1",l=c="\u23a2",d="Size4-Regular",u="lceil",p=667):"\\rfloor"===e||"\u230b"===e?(l=a="\u23a5",c="\u23a6",d="Size4-Regular",u="rfloor",p=667):"\\rceil"===e||"\u2309"===e?(a="\u23a4",l=c="\u23a5",d="Size4-Regular",u="rceil",p=667):"("===e||"\\lparen"===e?(a="\u239b",l="\u239c",c="\u239d",d="Size4-Regular",u="lparen",p=875):")"===e||"\\rparen"===e?(a="\u239e",l="\u239f",c="\u23a0",d="Size4-Regular",u="rparen",p=875):"\\{"===e||"\\lbrace"===e?(a="\u23a7",s="\u23a8",c="\u23a9",l="\u23aa",d="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a="\u23ab",s="\u23ac",c="\u23ad",l="\u23aa",d="Size4-Regular"):"\\lgroup"===e||"\u27ee"===e?(a="\u23a7",c="\u23a9",l="\u23aa",d="Size4-Regular"):"\\rgroup"===e||"\u27ef"===e?(a="\u23ab",c="\u23ad",l="\u23aa",d="Size4-Regular"):"\\lmoustache"===e||"\u23b0"===e?(a="\u23a7",c="\u23ad",l="\u23aa",d="Size4-Regular"):"\\rmoustache"!==e&&"\u23b1"!==e||(a="\u23ab",c="\u23a9",l="\u23aa",d="Size4-Regular");var b=il(a,d,o),f=b.height+b.depth,h=il(l,d,o),m=h.height+h.depth,g=il(c,d,o),O=g.height+g.depth,y=0,M=1;if(null!==s){var z=il(s,d,o);y=z.height+z.depth,M=2}var A=f+O+y,v=A+Math.max(0,Math.ceil((t-A)/(M*m)))*M*m,w=r.fontMetrics().axisHeight;n&&(w*=r.sizeMultiplier);var S=v/2-w,x=[];if(u.length>0){var E=v-f-O,k=Math.round(1e3*v),q=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" 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\nc-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,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.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\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-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,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-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\nc-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\nc0,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\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-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.")}}(u,Math.round(1e3*E)),T=new Yi(u,q),_=(p/1e3).toFixed(3)+"em",R=(k/1e3).toFixed(3)+"em",C=new Ki([T],{width:_,height:R,viewBox:"0 0 "+p+" "+k}),N=$a.makeSvgSpan([],[C],r);N.height=k/1e3,N.style.width=_,N.style.height=R,x.push({type:"elem",elem:N})}else{if(x.push(cl(c,d,o)),x.push(pl),null===s){var I=v-f-O+.016;x.push(ul(l,I,r))}else{var W=(v-f-O-y)/2+.016;x.push(ul(l,W,r)),x.push(pl),x.push(cl(s,d,o)),x.push(pl),x.push(ul(l,W,r))}x.push(pl),x.push(cl(a,d,o))}var P=r.havingBaseStyle(yi.TEXT),L=$a.makeVList({positionType:"bottom",positionData:S,children:x},P);return al($a.makeSpan(["delimsizing","mult"],[L],P),yi.TEXT,r,i)},hl=.08,ml=function(e,t,n,r,o){var i=function(e,t,n){t*=1e3;var r="";switch(e){case"sqrtMain":r=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.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\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,vi);break;case"sqrtSize1":r=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,vi);break;case"sqrtSize2":r=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,vi);break;case"sqrtSize3":r=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-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\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,vi);break;case"sqrtSize4":r=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-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\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,vi);break;case"sqrtTall":r=function(e,t,n){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(n-54-t-e)+"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\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,vi,n)}return r}(e,r,n),a=new Yi(e,i),s=new Ki([a],{width:"400em",height:ji(t),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return $a.makeSvgSpan(["hide-tail"],[s],o)},gl=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Ol=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1"],yl=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Ml=[0,1.2,1.8,2.4,3],zl=[{type:"small",style:yi.SCRIPTSCRIPT},{type:"small",style:yi.SCRIPT},{type:"small",style:yi.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Al=[{type:"small",style:yi.SCRIPTSCRIPT},{type:"small",style:yi.SCRIPT},{type:"small",style:yi.TEXT},{type:"stack"}],vl=[{type:"small",style:yi.SCRIPTSCRIPT},{type:"small",style:yi.SCRIPT},{type:"small",style:yi.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],wl=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},Sl=function(e,t,n,r){for(var o=Math.min(2,3-r.style.size);ot)return n[o]}return n[n.length-1]},xl=function(e,t,n,r,o,i){var a;"<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),a=si.contains(yl,e)?zl:si.contains(gl,e)?vl:Al;var s=Sl(e,t,a,r);return"small"===s.type?function(e,t,n,r,o,i){var a=$a.makeSymbol(e,"Main-Regular",o,r),s=al(a,t,r,i);return n&&sl(s,r,t),s}(e,s.style,n,r,o,i):"large"===s.type?ll(e,s.size,n,r,o,i):fl(e,t,n,r,o,i)},El={sqrtImage:function(e,t){var n,r,o=t.havingBaseSizing(),i=Sl("\\surd",e*o.sizeMultiplier,vl,o),a=o.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,c=0,u=0;return"small"===i.type?(e<1?a=1:e<1.4&&(a=.7),c=(1+s)/a,(n=ml("sqrtMain",l=(1+s+hl)/a,u=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",r=.833/a):"large"===i.type?(u=1080*Ml[i.size],c=(Ml[i.size]+s)/a,l=(Ml[i.size]+s+hl)/a,(n=ml("sqrtSize"+i.size,l,u,s,t)).style.minWidth="1.02em",r=1/a):(l=e+s+hl,c=e+s,u=Math.floor(1e3*e+s)+80,(n=ml("sqrtTall",l,u,s,t)).style.minWidth="0.742em",r=1.056),n.height=c,n.style.height=ji(l),{span:n,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*a}},sizedDelim:function(e,t,n,r,o){if("<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),si.contains(gl,e)||si.contains(yl,e))return ll(e,t,!1,n,r,o);if(si.contains(Ol,e))return fl(e,Ml[t],!1,n,r,o);throw new ni("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:Ml,customSizedDelim:xl,leftRightDelim:function(e,t,n,r,o,i){var a=r.fontMetrics().axisHeight*r.sizeMultiplier,s=5/r.fontMetrics().ptPerEm,l=Math.max(t-a,n+a),c=Math.max(l/500*901,2*l-s);return xl(e,c,!0,r,o,i)}},kl={"\\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}},ql=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Tl(e,t){var n=Bs(e);if(n&&si.contains(ql,n.text))return n;throw new ni(n?"Invalid delimiter '"+n.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function _l(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}rs({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=Tl(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:kl[e.funcName].size,mclass:kl[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>"."===e.delim?$a.makeSpan([e.mclass]):El.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(Ss(e.delim,e.mode));var n=new ws.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=ji(El.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}}),rs({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!==typeof n)throw new ni("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Tl(t[0],e).text,color:n}}}),rs({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Tl(t[0],e),r=e.parser;++r.leftrightDepth;var o=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var i=js(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:o,left:n.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{_l(e);for(var n,r,o=ds(e.body,t,!0,["mopen","mclose"]),i=0,a=0,s=!1,l=0;l{_l(e);var n=ks(e.body,t);if("."!==e.left){var r=new ws.MathNode("mo",[Ss(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if("."!==e.right){var o=new ws.MathNode("mo",[Ss(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),n.push(o)}return xs(n)}}),rs({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Tl(t[0],e);if(!e.parser.leftrightDepth)throw new ni("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if("."===e.delim)n=gs(t,[]);else{n=El.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n="\\vert"===e.delim||"|"===e.delim?Ss("|","text"):Ss(e.delim,e.mode),r=new ws.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var Rl=(e,t)=>{var n,r,o,i=$a.wrapFragment(Os(e.body,t),t),a=e.label.slice(1),s=t.sizeMultiplier,l=0,c=si.isCharacterBox(e.body);if("sout"===a)(n=$a.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/s,l=-.5*t.fontMetrics().xHeight;else if("phase"===a){var u=Li({number:.6,unit:"pt"},t),p=Li({number:.35,unit:"ex"},t);s/=t.havingBaseSizing().sizeMultiplier;var d=i.height+i.depth+u+p;i.style.paddingLeft=ji(d/2+u);var b=Math.floor(1e3*d*s),f="M400000 "+(r=b)+" H0 L"+r/2+" 0 l65 45 L145 "+(r-80)+" H400000z",h=new Ki([new Yi("phase",f)],{width:"400em",height:ji(b/1e3),viewBox:"0 0 400000 "+b,preserveAspectRatio:"xMinYMin slice"});(n=$a.makeSvgSpan(["hide-tail"],[h],t)).style.height=ji(d),l=i.depth+u+p}else{/cancel/.test(a)?c||i.classes.push("cancel-pad"):"angl"===a?i.classes.push("anglpad"):i.classes.push("boxpad");var m=0,g=0,O=0;/box/.test(a)?(O=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),g=m=t.fontMetrics().fboxsep+("colorbox"===a?0:O)):"angl"===a?(m=4*(O=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),g=Math.max(0,.25-i.depth)):g=m=c?.2:0,n=Ws(i,a,m,g,t),/fbox|boxed|fcolorbox/.test(a)?(n.style.borderStyle="solid",n.style.borderWidth=ji(O)):"angl"===a&&.049!==O&&(n.style.borderTopWidth=ji(O),n.style.borderRightWidth=ji(O)),l=i.depth+g,e.backgroundColor&&(n.style.backgroundColor=e.backgroundColor,e.borderColor&&(n.style.borderColor=e.borderColor))}if(e.backgroundColor)o=$a.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:l},{type:"elem",elem:i,shift:0}]},t);else{var y=/cancel|phase/.test(a)?["svg-align"]:[];o=$a.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:n,shift:l,wrapperClasses:y}]},t)}return/cancel/.test(a)&&(o.height=i.height,o.depth=i.depth),/cancel/.test(a)&&!c?$a.makeSpan(["mord","cancel-lap"],[o],t):$a.makeSpan(["mord"],[o],t)},Cl=(e,t)=>{var n=0,r=new ws.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ts(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"),"\\fcolorbox"===e.label){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};rs({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:o}=e,i=js(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:r.mode,label:o,backgroundColor:i,body:a}},htmlBuilder:Rl,mathmlBuilder:Cl}),rs({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:o}=e,i=js(t[0],"color-token").color,a=js(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:o,backgroundColor:a,borderColor:i,body:s}},htmlBuilder:Rl,mathmlBuilder:Cl}),rs({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]}}}),rs({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,o=t[0];return{type:"enclose",mode:n.mode,label:r,body:o}},htmlBuilder:Rl,mathmlBuilder:Cl}),rs({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 Nl={};function Il(e){for(var{type:t,names:n,props:r,handler:o,htmlBuilder:i,mathmlBuilder:a}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},l=0;l{if(!e.parser.settings.displayMode)throw new ni("{"+e.envName+"} can be used only in display mode.")};function Dl(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function Bl(e,t,n){var{hskipBeforeAndAfter:r,addJot:o,cols:i,arraystretch:a,colSeparationType:s,autoTag:l,singleRow:c,emptySingleRow:u,maxNumCols:p,leqno:d}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!a){var b=e.gullet.expandMacroAsText("\\arraystretch");if(null==b)a=1;else if(!(a=parseFloat(b))||a<0)throw new ni("Invalid \\arraystretch: "+b)}e.gullet.beginGroup();var f=[],h=[f],m=[],g=[],O=null!=l?[]:void 0;function y(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function M(){O&&(e.gullet.macros.get("\\df@tag")?(O.push(e.subparse([new ti("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):O.push(Boolean(l)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(y(),g.push(Ll(e));;){var z=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),z={type:"ordgroup",mode:e.mode,body:z},n&&(z={type:"styling",mode:e.mode,style:n,body:[z]}),f.push(z);var A=e.fetch().text;if("&"===A){if(p&&f.length===p){if(c||s)throw new ni("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===A){M(),1===f.length&&"styling"===z.type&&0===z.body[0].body.length&&(h.length>1||!u)&&h.pop(),g.length0&&(g+=.25),l.push({pos:g,isDashed:e[t]})}for(O(i[0]),n=0;n0&&(z<(S+=m)&&(z=S),S=0),e.addJot&&(z+=b),A.height=M,A.depth=z,g+=M,A.pos=g,g+=z+S,s[n]=A,O(i[n+1])}var x,E,k=g/2+t.fontMetrics().axisHeight,q=e.cols||[],T=[],_=[];if(e.tags&&e.tags.some((e=>e)))for(n=0;n=a)){var B=void 0;(r>0||e.hskipBeforeAndAfter)&&0!==(B=si.deflt(W.pregap,p))&&((x=$a.makeSpan(["arraycolsep"],[])).style.width=ji(B),T.push(x));var F=[];for(n=0;n0){for(var X=$a.makeLineSpan("hline",t,c),G=$a.makeLineSpan("hdashline",t,c),$=[{type:"elem",elem:s,shift:0}];l.length>0;){var K=l.pop(),Y=K.pos-k;K.isDashed?$.push({type:"elem",elem:G,shift:Y}):$.push({type:"elem",elem:X,shift:Y})}s=$a.makeVList({positionType:"individualShift",children:$},t)}if(0===_.length)return $a.makeSpan(["mord"],[s],t);var Z=$a.makeVList({positionType:"individualShift",children:_},t);return Z=$a.makeSpan(["tag"],[Z],t),$a.makeFragment([s,Z])},Ul={c:"center ",l:"left ",r:"right "},Hl=function(e,t){for(var n=[],r=new ws.MathNode("mtd",[],["mtr-glue"]),o=new ws.MathNode("mtd",[],["mml-eqn-num"]),i=0;i0){var b=e.cols,f="",h=!1,m=0,g=b.length;"separator"===b[0].type&&(p+="top ",m=1),"separator"===b[b.length-1].type&&(p+="bottom ",g-=1);for(var O=m;O0?"left ":"",p+=v[v.length-1].length>0?"right ":"";for(var w=1;w-1?"alignat":"align",i="split"===e.envName,a=Bl(e.parser,{cols:r,addJot:!0,autoTag:i?void 0:Dl(e.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var c="",u=0;u0&&p&&(f=1),r[d]={type:"align",align:b,pregap:f,postgap:0}}return a.colSeparationType=p?"align":"alignat",a};Il({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=(Bs(t[0])?[t[0]]:js(t[0],"ordgroup").body).map((function(e){var t=Ds(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new ni("Unknown column alignment: "+t,e)})),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Bl(e.parser,r,Fl(e.envName))},htmlBuilder:Vl,mathmlBuilder:Hl}),Il({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 o=e.parser;if(o.consumeSpaces(),"["===o.fetch().text){if(o.consume(),o.consumeSpaces(),n=o.fetch().text,-1==="lcr".indexOf(n))throw new ni("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),r.cols=[{type:"align",align:n}]}}var i=Bl(e.parser,r,Fl(e.envName)),a=Math.max(0,...i.body.map((e=>e.length)));return i.cols=new Array(a).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:Vl,mathmlBuilder:Hl}),Il({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=Bl(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:Vl,mathmlBuilder:Hl}),Il({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=(Bs(t[0])?[t[0]]:js(t[0],"ordgroup").body).map((function(e){var t=Ds(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new ni("Unknown column alignment: "+t,e)}));if(n.length>1)throw new ni("{subarray} can contain only one column");var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((r=Bl(e.parser,r,"script")).body.length>0&&r.body[0].length>1)throw new ni("{subarray} can contain only one column");return r},htmlBuilder:Vl,mathmlBuilder:Hl}),Il({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=Bl(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Fl(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Vl,mathmlBuilder:Hl}),Il({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Xl,htmlBuilder:Vl,mathmlBuilder:Hl}),Il({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){si.contains(["gather","gather*"],e.envName)&&jl(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Dl(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Bl(e.parser,t,"display")},htmlBuilder:Vl,mathmlBuilder:Hl}),Il({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Xl,htmlBuilder:Vl,mathmlBuilder:Hl}),Il({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){jl(e);var t={autoTag:Dl(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Bl(e.parser,t,"display")},htmlBuilder:Vl,mathmlBuilder:Hl}),Il({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(jl(e),function(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){if("\\end"===n){0===t[t.length-1].length&&t.pop();break}throw new ni("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var r=[],o=[r],i=0;i-1);else{if(!("<>AV".indexOf(c)>-1))throw new ni('Expected one of "<>AV=|." after @',a[l]);for(var p=0;p<2;p++){for(var d=!0,b=l+1;b{var n=e.font,r=t.withFont(n);return Os(e.body,r)},Kl=(e,t)=>{var n=e.font,r=t.withFont(n);return Ts(e.body,r)},Yl={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};rs({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=is(t[0]),i=r;return i in Yl&&(i=Yl[i]),{type:"font",mode:n.mode,font:i.slice(1),body:o}},htmlBuilder:$l,mathmlBuilder:Kl}),rs({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],o=si.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:Ks(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:o}}}),rs({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:o}=e,{mode:i}=n,a=n.parseExpression(!0,o);return{type:"font",mode:i,font:"math"+r.slice(1),body:{type:"ordgroup",mode:n.mode,body:a}}},htmlBuilder:$l,mathmlBuilder:Kl});var Zl=(e,t)=>{var n=t;return"display"===e?n=n.id>=yi.SCRIPT.id?n.text():yi.DISPLAY:"text"===e&&n.size===yi.DISPLAY.size?n=yi.TEXT:"script"===e?n=yi.SCRIPT:"scriptscript"===e&&(n=yi.SCRIPTSCRIPT),n},Jl=(e,t)=>{var n,r=Zl(e.size,t.style),o=r.fracNum(),i=r.fracDen();n=t.havingStyle(o);var a=Os(e.numer,n,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;a.height=a.height0?3*p:7*p,f=t.fontMetrics().denom1):(u>0?(d=t.fontMetrics().num2,b=p):(d=t.fontMetrics().num3,b=3*p),f=t.fontMetrics().denom2),c){var M=t.fontMetrics().axisHeight;d-a.depth-(M+.5*u){var n=new ws.MathNode("mfrac",[Ts(e.numer,t),Ts(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var r=Li(e.barSize,t);n.setAttribute("linethickness",ji(r))}}else n.setAttribute("linethickness","0px");var o=Zl(e.size,t.style);if(o.size!==t.style.size){n=new ws.MathNode("mstyle",[n]);var i=o.size===yi.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",i),n.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var a=[];if(null!=e.leftDelim){var s=new ws.MathNode("mo",[new ws.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(n),null!=e.rightDelim){var l=new ws.MathNode("mo",[new ws.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),a.push(l)}return xs(a)}return n};rs({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var n,{parser:r,funcName:o}=e,i=t[0],a=t[1],s=null,l=null,c="auto";switch(o){case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,s="(",l=")";break;case"\\\\bracefrac":n=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":n=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(o){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text"}return{type:"genfrac",mode:r.mode,continued:!1,numer:i,denom:a,hasBarLine:n,leftDelim:s,rightDelim:l,size:c,barSize:null}},htmlBuilder:Jl,mathmlBuilder:Ql}),rs({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0],i=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:o,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),rs({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:n,funcName:r,token:o}=e;switch(r){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:o}}});var ec=["display","text","script","scriptscript"],tc=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};rs({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var n,{parser:r}=e,o=t[4],i=t[5],a=is(t[0]),s="atom"===a.type&&"open"===a.family?tc(a.text):null,l=is(t[1]),c="atom"===l.type&&"close"===l.family?tc(l.text):null,u=js(t[2],"size"),p=null;n=!!u.isBlank||(p=u.value).number>0;var d="auto",b=t[3];if("ordgroup"===b.type){if(b.body.length>0){var f=js(b.body[0],"textord");d=ec[Number(f.text)]}}else b=js(b,"textord"),d=ec[Number(b.text)];return{type:"genfrac",mode:r.mode,numer:o,denom:i,continued:!1,hasBarLine:n,barSize:p,leftDelim:s,rightDelim:c,size:d}},htmlBuilder:Jl,mathmlBuilder:Ql}),rs({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:o}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:js(t[0],"size").value,token:o}}}),rs({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0],i=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(js(t[1],"infix").size),a=t[2],s=i.number>0;return{type:"genfrac",mode:n.mode,numer:o,denom:a,continued:!1,hasBarLine:s,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Jl,mathmlBuilder:Ql});var nc=(e,t)=>{var n,r,o=t.style;"supsub"===e.type?(n=e.sup?Os(e.sup,t.havingStyle(o.sup()),t):Os(e.sub,t.havingStyle(o.sub()),t),r=js(e.base,"horizBrace")):r=js(e,"horizBrace");var i,a=Os(r.base,t.havingBaseStyle(yi.DISPLAY)),s=Ls(r,t);if(r.isOver?(i=$a.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=$a.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var l=$a.makeSpan(["mord",r.isOver?"mover":"munder"],[i],t);i=r.isOver?$a.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]},t):$a.makeVList({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return $a.makeSpan(["mord",r.isOver?"mover":"munder"],[i],t)};rs({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:nc,mathmlBuilder:(e,t)=>{var n=Ps(e.label);return new ws.MathNode(e.isOver?"mover":"munder",[Ts(e.base,t),n])}}),rs({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],o=js(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:as(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=ds(e.body,t,!1);return $a.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=qs(e.body,t);return n instanceof As||(n=new As("mrow",[n])),n.setAttribute("href",e.href),n}}),rs({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=js(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var o=[],i=0;inew ws.MathNode("mrow",ks(e.body,t))}),rs({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var n,{parser:r,funcName:o,token:i}=e,a=js(t[0],"raw").string,s=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(o){case"\\htmlClass":l.class=a,n={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,n={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,n={command:"\\htmlStyle",style:a};break;case"\\htmlData":for(var c=a.split(","),u=0;u{var n=ds(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var o=$a.makeSpan(r,n,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&o.setAttribute(i,e.attributes[i]);return o},mathmlBuilder:(e,t)=>qs(e.body,t)}),rs({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:as(t[0]),mathml:as(t[1])}},htmlBuilder:(e,t)=>{var n=ds(e.html,t,!1);return $a.makeFragment(n)},mathmlBuilder:(e,t)=>qs(e.mathml,t)});var rc=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new ni("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!Pi(n))throw new ni("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};rs({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,o={number:0,unit:"em"},i={number:.9,unit:"em"},a={number:0,unit:"em"},s="";if(n[0])for(var l=js(n[0],"raw").string.split(","),c=0;c{var n=Li(e.height,t),r=0;e.totalheight.number>0&&(r=Li(e.totalheight,t)-n);var o=0;e.width.number>0&&(o=Li(e.width,t));var i={height:ji(n+r)};o>0&&(i.width=ji(o)),r>0&&(i.verticalAlign=ji(-r));var a=new Xi(e.src,e.alt,i);return a.height=n,a.depth=r,a},mathmlBuilder:(e,t)=>{var n=new ws.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=Li(e.height,t),o=0;if(e.totalheight.number>0&&(o=Li(e.totalheight,t)-r,n.setAttribute("valign",ji(-o))),n.setAttribute("height",ji(r+o)),e.width.number>0){var i=Li(e.width,t);n.setAttribute("width",ji(i))}return n.setAttribute("src",e.src),n}}),rs({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,o=js(t[0],"size");if(n.settings.strict){var i="m"===r[1],a="mu"===o.value.unit;i?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+o.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder:(e,t)=>$a.makeGlue(e.dimension,t),mathmlBuilder(e,t){var n=Li(e.dimension,t);return new ws.SpaceNode(n)}}),rs({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:o}},htmlBuilder:(e,t)=>{var n;"clap"===e.alignment?(n=$a.makeSpan([],[Os(e.body,t)]),n=$a.makeSpan(["inner"],[n],t)):n=$a.makeSpan(["inner"],[Os(e.body,t)]);var r=$a.makeSpan(["fix"],[]),o=$a.makeSpan([e.alignment],[n,r],t),i=$a.makeSpan(["strut"]);return i.style.height=ji(o.height+o.depth),o.depth&&(i.style.verticalAlign=ji(-o.depth)),o.children.unshift(i),o=$a.makeSpan(["thinbox"],[o],t),$a.makeSpan(["mord","vbox"],[o],t)},mathmlBuilder:(e,t)=>{var n=new ws.MathNode("mpadded",[Ts(e.body,t)]);if("rlap"!==e.alignment){var r="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),rs({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,o=r.mode;r.switchMode("math");var i="\\("===n?"\\)":"$",a=r.parseExpression(!1,i);return r.expect(i),r.switchMode(o),{type:"styling",mode:r.mode,style:"text",body:a}}}),rs({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new ni("Mismatched "+e.funcName)}});var oc=(e,t)=>{switch(t.style.size){case yi.DISPLAY.size:return e.display;case yi.TEXT.size:return e.text;case yi.SCRIPT.size:return e.script;case yi.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};rs({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:as(t[0]),text:as(t[1]),script:as(t[2]),scriptscript:as(t[3])}},htmlBuilder:(e,t)=>{var n=oc(e,t),r=ds(n,t,!1);return $a.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=oc(e,t);return qs(n,t)}});var ic=(e,t,n,r,o,i,a)=>{e=$a.makeSpan([],[e]);var s,l,c,u=n&&si.isCharacterBox(n);if(t){var p=Os(t,r.havingStyle(o.sup()),r);l={elem:p,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-p.depth)}}if(n){var d=Os(n,r.havingStyle(o.sub()),r);s={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}if(l&&s){var b=r.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+a;c=$a.makeVList({positionType:"bottom",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:ji(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:ji(i)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(s){var f=e.height-a;c=$a.makeVList({positionType:"top",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:ji(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},r)}else{if(!l)return e;var h=e.depth+a;c=$a.makeVList({positionType:"bottom",positionData:h,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:ji(i)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}var m=[c];if(s&&0!==i&&!u){var g=$a.makeSpan(["mspace"],[],r);g.style.marginRight=ji(i),m.unshift(g)}return $a.makeSpan(["mop","op-limits"],m,r)},ac=["\\smallint"],sc=(e,t)=>{var n,r,o,i=!1;"supsub"===e.type?(n=e.sup,r=e.sub,o=js(e.base,"op"),i=!0):o=js(e,"op");var a,s=t.style,l=!1;if(s.size===yi.DISPLAY.size&&o.symbol&&!si.contains(ac,o.name)&&(l=!0),o.symbol){var c=l?"Size2-Regular":"Size1-Regular",u="";if("\\oiint"!==o.name&&"\\oiiint"!==o.name||(u=o.name.slice(1),o.name="oiint"===u?"\\iint":"\\iiint"),a=$a.makeSymbol(o.name,c,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),u.length>0){var p=a.italic,d=$a.staticSvg(u+"Size"+(l?"2":"1"),t);a=$a.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:d,shift:l?.08:0}]},t),o.name="\\"+u,a.classes.unshift("mop"),a.italic=p}}else if(o.body){var b=ds(o.body,t,!0);1===b.length&&b[0]instanceof $i?(a=b[0]).classes[0]="mop":a=$a.makeSpan(["mop"],b,t)}else{for(var f=[],h=1;h{var n;if(e.symbol)n=new As("mo",[Ss(e.name,e.mode)]),si.contains(ac,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new As("mo",ks(e.body,t));else{n=new As("mi",[new vs(e.name.slice(1))]);var r=new As("mo",[Ss("\u2061","text")]);n=e.parentIsSupSub?new As("mrow",[n,r]):zs([n,r])}return n},cc={"\u220f":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22c0":"\\bigwedge","\u22c1":"\\bigvee","\u22c2":"\\bigcap","\u22c3":"\\bigcup","\u2a00":"\\bigodot","\u2a01":"\\bigoplus","\u2a02":"\\bigotimes","\u2a04":"\\biguplus","\u2a06":"\\bigsqcup"};rs({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220f","\u2210","\u2211","\u22c0","\u22c1","\u22c2","\u22c3","\u2a00","\u2a01","\u2a02","\u2a04","\u2a06"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=r;return 1===o.length&&(o=cc[o]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:sc,mathmlBuilder:lc}),rs({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:as(r)}},htmlBuilder:sc,mathmlBuilder:lc});var uc={"\u222b":"\\int","\u222c":"\\iint","\u222d":"\\iiint","\u222e":"\\oint","\u222f":"\\oiint","\u2230":"\\oiiint"};rs({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:sc,mathmlBuilder:lc}),rs({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:sc,mathmlBuilder:lc}),rs({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222b","\u222c","\u222d","\u222e","\u222f","\u2230"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return 1===r.length&&(r=uc[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:sc,mathmlBuilder:lc});var pc=(e,t)=>{var n,r,o,i,a=!1;if("supsub"===e.type?(n=e.sup,r=e.sub,o=js(e.base,"operatorname"),a=!0):o=js(e,"operatorname"),o.body.length>0){for(var s=o.body.map((e=>{var t=e.text;return"string"===typeof t?{type:"textord",mode:e.mode,text:t}:e})),l=ds(s,t.withFont("mathrm"),!0),c=0;c{var{parser:n,funcName:r}=e,o=t[0];return{type:"operatorname",mode:n.mode,body:as(o),alwaysHandleSupSub:"\\operatornamewithlimits"===r,limits:!1,parentIsSupSub:!1}},htmlBuilder:pc,mathmlBuilder:(e,t)=>{for(var n=ks(e.body,t.withFont("mathrm")),r=!0,o=0;oe.toText())).join("");n=[new ws.TextNode(s)]}var l=new ws.MathNode("mi",n);l.setAttribute("mathvariant","normal");var c=new ws.MathNode("mo",[Ss("\u2061","text")]);return e.parentIsSupSub?new ws.MathNode("mrow",[l,c]):ws.newDocumentFragment([l,c])}}),Pl("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),os({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?$a.makeFragment(ds(e.body,t,!1)):$a.makeSpan(["mord"],ds(e.body,t,!0),t),mathmlBuilder:(e,t)=>qs(e.body,t,!0)}),rs({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=Os(e.body,t.havingCrampedStyle()),r=$a.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,i=$a.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:r},{type:"kern",size:o}]},t);return $a.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var n=new ws.MathNode("mo",[new ws.TextNode("\u203e")]);n.setAttribute("stretchy","true");var r=new ws.MathNode("mover",[Ts(e.body,t),n]);return r.setAttribute("accent","true"),r}}),rs({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:as(r)}},htmlBuilder:(e,t)=>{var n=ds(e.body,t.withPhantom(),!1);return $a.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=ks(e.body,t);return new ws.MathNode("mphantom",n)}}),rs({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=$a.makeSpan([],[Os(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=ks(as(e.body),t),r=new ws.MathNode("mphantom",n),o=new ws.MathNode("mpadded",[r]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}}),rs({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=$a.makeSpan(["inner"],[Os(e.body,t.withPhantom())]),r=$a.makeSpan(["fix"],[]);return $a.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=ks(as(e.body),t),r=new ws.MathNode("mphantom",n),o=new ws.MathNode("mpadded",[r]);return o.setAttribute("width","0px"),o}}),rs({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=js(t[0],"size").value,o=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:o}},htmlBuilder(e,t){var n=Os(e.body,t),r=Li(e.dy,t);return $a.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new ws.MathNode("mpadded",[Ts(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}}),rs({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),rs({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,o=n[0],i=js(t[0],"size"),a=js(t[1],"size");return{type:"rule",mode:r.mode,shift:o&&js(o,"size").value,width:i.value,height:a.value}},htmlBuilder(e,t){var n=$a.makeSpan(["mord","rule"],[],t),r=Li(e.width,t),o=Li(e.height,t),i=e.shift?Li(e.shift,t):0;return n.style.borderRightWidth=ji(r),n.style.borderTopWidth=ji(o),n.style.bottom=ji(i),n.width=r,n.height=o+i,n.depth=-i,n.maxFontSize=1.125*o*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Li(e.width,t),r=Li(e.height,t),o=e.shift?Li(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new ws.MathNode("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",ji(n)),a.setAttribute("height",ji(r));var s=new ws.MathNode("mpadded",[a]);return o>=0?s.setAttribute("height",ji(o)):(s.setAttribute("height",ji(o)),s.setAttribute("depth",ji(-o))),s.setAttribute("voffset",ji(o)),s}});var bc=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];rs({type:"sizing",names:bc,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:o}=e,i=o.parseExpression(!1,n);return{type:"sizing",mode:o.mode,size:bc.indexOf(r)+1,body:i}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return dc(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=ks(e.body,n),o=new ws.MathNode("mstyle",r);return o.setAttribute("mathsize",ji(n.sizeMultiplier)),o}}),rs({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,o=!1,i=!1,a=n[0]&&js(n[0],"ordgroup");if(a)for(var s="",l=0;l{var n=$a.makeSpan([],[Os(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new ws.MathNode("mpadded",[Ts(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),rs({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,o=n[0],i=t[0];return{type:"sqrt",mode:r.mode,body:i,index:o}},htmlBuilder(e,t){var n=Os(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=$a.wrapFragment(n,t);var r=t.fontMetrics().defaultRuleThickness,o=r;t.style.idn.height+n.depth+i&&(i=(i+u-n.height-n.depth)/2);var p=s.height-n.height-i-l;n.style.paddingLeft=ji(c);var d=$a.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+p)},{type:"elem",elem:s},{type:"kern",size:l}]},t);if(e.index){var b=t.havingStyle(yi.SCRIPTSCRIPT),f=Os(e.index,b,t),h=.6*(d.height-d.depth),m=$a.makeVList({positionType:"shift",positionData:-h,children:[{type:"elem",elem:f}]},t),g=$a.makeSpan(["root"],[m]);return $a.makeSpan(["mord","sqrt"],[g,d],t)}return $a.makeSpan(["mord","sqrt"],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new ws.MathNode("mroot",[Ts(n,t),Ts(r,t)]):new ws.MathNode("msqrt",[Ts(n,t)])}});var fc={display:yi.DISPLAY,text:yi.TEXT,script:yi.SCRIPT,scriptscript:yi.SCRIPTSCRIPT};rs({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:o}=e,i=o.parseExpression(!0,n),a=r.slice(1,r.length-5);return{type:"styling",mode:o.mode,style:a,body:i}},htmlBuilder(e,t){var n=fc[e.style],r=t.havingStyle(n).withFont("");return dc(e.body,r,t)},mathmlBuilder(e,t){var n=fc[e.style],r=t.havingStyle(n),o=ks(e.body,r),i=new ws.MathNode("mstyle",o),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",a[0]),i.setAttribute("displaystyle",a[1]),i}});os({type:"supsub",htmlBuilder(e,t){var n=function(e,t){var n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===yi.DISPLAY.size||n.alwaysHandleSupSub)?sc:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===yi.DISPLAY.size||n.limits)?pc:null:"accent"===n.type?si.isCharacterBox(n.base)?Fs:null:"horizBrace"===n.type&&!e.sub===n.isOver?nc:null:null}(e,t);if(n)return n(e,t);var r,o,i,{base:a,sup:s,sub:l}=e,c=Os(a,t),u=t.fontMetrics(),p=0,d=0,b=a&&si.isCharacterBox(a);if(s){var f=t.havingStyle(t.style.sup());r=Os(s,f,t),b||(p=c.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(l){var h=t.havingStyle(t.style.sub());o=Os(l,h,t),b||(d=c.depth+h.fontMetrics().subDrop*h.sizeMultiplier/t.sizeMultiplier)}i=t.style===yi.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var m,g=t.sizeMultiplier,O=ji(.5/u.ptPerEm/g),y=null;if(o){var M=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(c instanceof $i||M)&&(y=ji(-c.italic))}if(r&&o){p=Math.max(p,i,r.depth+.25*u.xHeight),d=Math.max(d,u.sub2);var z=4*u.defaultRuleThickness;if(p-r.depth-(o.height-d)0&&(p+=A,d-=A)}var v=[{type:"elem",elem:o,shift:d,marginRight:O,marginLeft:y},{type:"elem",elem:r,shift:-p,marginRight:O}];m=$a.makeVList({positionType:"individualShift",children:v},t)}else if(o){d=Math.max(d,u.sub1,o.height-.8*u.xHeight);var w=[{type:"elem",elem:o,marginLeft:y,marginRight:O}];m=$a.makeVList({positionType:"shift",positionData:d,children:w},t)}else{if(!r)throw new Error("supsub must have either sup or sub.");p=Math.max(p,i,r.depth+.25*u.xHeight),m=$a.makeVList({positionType:"shift",positionData:-p,children:[{type:"elem",elem:r,marginRight:O}]},t)}var S=ms(c,"right")||"mord";return $a.makeSpan([S],[c,$a.makeSpan(["msupsub"],[m])],t)},mathmlBuilder(e,t){var n,r=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(r=!0,n=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var o,i=[Ts(e.base,t)];if(e.sub&&i.push(Ts(e.sub,t)),e.sup&&i.push(Ts(e.sup,t)),r)o=n?"mover":"munder";else if(e.sub)if(e.sup){var a=e.base;o=a&&"op"===a.type&&a.limits&&t.style===yi.DISPLAY||a&&"operatorname"===a.type&&a.alwaysHandleSupSub&&(t.style===yi.DISPLAY||a.limits)?"munderover":"msubsup"}else{var s=e.base;o=s&&"op"===s.type&&s.limits&&(t.style===yi.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===yi.DISPLAY)?"munder":"msub"}else{var l=e.base;o=l&&"op"===l.type&&l.limits&&(t.style===yi.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===yi.DISPLAY)?"mover":"msup"}return new ws.MathNode(o,i)}}),os({type:"atom",htmlBuilder:(e,t)=>$a.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var n=new ws.MathNode("mo",[Ss(e.text,e.mode)]);if("bin"===e.family){var r=Es(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var hc={mi:"italic",mn:"normal",mtext:"normal"};os({type:"mathord",htmlBuilder:(e,t)=>$a.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){var n=new ws.MathNode("mi",[Ss(e.text,e.mode,t)]),r=Es(e,t)||"italic";return r!==hc[n.type]&&n.setAttribute("mathvariant",r),n}}),os({type:"textord",htmlBuilder:(e,t)=>$a.makeOrd(e,t,"textord"),mathmlBuilder(e,t){var n,r=Ss(e.text,e.mode,t),o=Es(e,t)||"normal";return n="text"===e.mode?new ws.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new ws.MathNode("mn",[r]):"\\prime"===e.text?new ws.MathNode("mo",[r]):new ws.MathNode("mi",[r]),o!==hc[n.type]&&n.setAttribute("mathvariant",o),n}});var mc={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},gc={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};os({type:"spacing",htmlBuilder(e,t){if(gc.hasOwnProperty(e.text)){var n=gc[e.text].className||"";if("text"===e.mode){var r=$a.makeOrd(e,t,"textord");return r.classes.push(n),r}return $a.makeSpan(["mspace",n],[$a.mathsym(e.text,e.mode,t)],t)}if(mc.hasOwnProperty(e.text))return $a.makeSpan(["mspace",mc[e.text]],[],t);throw new ni('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(!gc.hasOwnProperty(e.text)){if(mc.hasOwnProperty(e.text))return new ws.MathNode("mspace");throw new ni('Unknown type of space "'+e.text+'"')}return new ws.MathNode("mtext",[new ws.TextNode("\xa0")])}});var Oc=()=>{var e=new ws.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};os({type:"tag",mathmlBuilder(e,t){var n=new ws.MathNode("mtable",[new ws.MathNode("mtr",[Oc(),new ws.MathNode("mtd",[qs(e.body,t)]),Oc(),new ws.MathNode("mtd",[qs(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var yc={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Mc={"\\textbf":"textbf","\\textmd":"textmd"},zc={"\\textit":"textit","\\textup":"textup"},Ac=(e,t)=>{var n=e.font;return n?yc[n]?t.withTextFontFamily(yc[n]):Mc[n]?t.withTextFontWeight(Mc[n]):t.withTextFontShape(zc[n]):t};rs({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,o=t[0];return{type:"text",mode:n.mode,body:as(o),font:r}},htmlBuilder(e,t){var n=Ac(e,t),r=ds(e.body,n,!0);return $a.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=Ac(e,t);return qs(e.body,n)}}),rs({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=Os(e.body,t),r=$a.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,i=$a.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n}]},t);return $a.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var n=new ws.MathNode("mo",[new ws.TextNode("\u203e")]);n.setAttribute("stretchy","true");var r=new ws.MathNode("munder",[Ts(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),rs({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=Os(e.body,t),r=t.fontMetrics().axisHeight,o=.5*(n.height-r-(n.depth+r));return $a.makeVList({positionType:"shift",positionData:o,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:(e,t)=>new ws.MathNode("mpadded",[Ts(e.body,t)],["vcenter"])}),rs({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new ni("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=vc(e),r=[],o=t.havingStyle(t.style.text()),i=0;ie.body.replace(/ /g,e.star?"\u2423":"\xa0"),wc=es,Sc="[ \r\n\t]",xc="(\\\\[a-zA-Z@]+)"+Sc+"*",Ec="[\u0300-\u036f]",kc=new RegExp(Ec+"+$"),qc="("+Sc+"+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-\u2027\u202a-\ud7ff\uf900-\uffff]"+Ec+"*|[\ud800-\udbff][\udc00-\udfff]"+Ec+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+xc+"|\\\\[^\ud800-\udfff])";class Tc{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(qc,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new ti("EOF",new ei(this,t,t));var n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new ni("Unexpected character: '"+e[t]+"'",new ti(e[t],new ei(this,t,t+1)));var r=n[6]||n[3]||(n[2]?"\\ ":" ");if(14===this.catcodes[r]){var o=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===o?(this.tokenRegex.lastIndex=e.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=o+1,this.lex()}return new ti(r,new ei(this,t,this.tokenRegex.lastIndex))}}class _c{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new ni("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(void 0===n&&(n=!1),n){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var Rc=Wl;Pl("\\noexpand",(function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),Pl("\\expandafter",(function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),Pl("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),Pl("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),Pl("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),Pl("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Pl("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var Cc={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};Pl("\\char",(function(e){var t,n=e.popToken(),r="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])r=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new ni("\\char` missing argument");r=n.text.charCodeAt(0)}else t=10;if(t){if(null==(r=Cc[n.text])||r>=t)throw new ni("Invalid base-"+t+" digit "+n.text);for(var o;null!=(o=Cc[e.future().text])&&o{var r=e.consumeArg().tokens;if(1!==r.length)throw new ni("\\newcommand's first argument must be a macro name");var o=r[0].text,i=e.isDefined(o);if(i&&!t)throw new ni("\\newcommand{"+o+"} attempting to redefine "+o+"; use \\renewcommand");if(!i&&!n)throw new ni("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var a=0;if(1===(r=e.consumeArg().tokens).length&&"["===r[0].text){for(var s="",l=e.expandNextToken();"]"!==l.text&&"EOF"!==l.text;)s+=l.text,l=e.expandNextToken();if(!s.match(/^\s*[0-9]+\s*$/))throw new ni("Invalid number of arguments: "+s);a=parseInt(s),r=e.consumeArg().tokens}return e.macros.set(o,{tokens:r,numArgs:a}),""};Pl("\\newcommand",(e=>Nc(e,!1,!0))),Pl("\\renewcommand",(e=>Nc(e,!0,!1))),Pl("\\providecommand",(e=>Nc(e,!0,!0))),Pl("\\message",(e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map((e=>e.text)).join("")),""})),Pl("\\errmessage",(e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map((e=>e.text)).join("")),""})),Pl("\\show",(e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),wc[n],ta.math[n],ta.text[n]),""})),Pl("\\bgroup","{"),Pl("\\egroup","}"),Pl("~","\\nobreakspace"),Pl("\\lq","`"),Pl("\\rq","'"),Pl("\\aa","\\r a"),Pl("\\AA","\\r A"),Pl("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xa9}"),Pl("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Pl("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xae}"),Pl("\u212c","\\mathscr{B}"),Pl("\u2130","\\mathscr{E}"),Pl("\u2131","\\mathscr{F}"),Pl("\u210b","\\mathscr{H}"),Pl("\u2110","\\mathscr{I}"),Pl("\u2112","\\mathscr{L}"),Pl("\u2133","\\mathscr{M}"),Pl("\u211b","\\mathscr{R}"),Pl("\u212d","\\mathfrak{C}"),Pl("\u210c","\\mathfrak{H}"),Pl("\u2128","\\mathfrak{Z}"),Pl("\\Bbbk","\\Bbb{k}"),Pl("\xb7","\\cdotp"),Pl("\\llap","\\mathllap{\\textrm{#1}}"),Pl("\\rlap","\\mathrlap{\\textrm{#1}}"),Pl("\\clap","\\mathclap{\\textrm{#1}}"),Pl("\\mathstrut","\\vphantom{(}"),Pl("\\underbar","\\underline{\\text{#1}}"),Pl("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Pl("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Pl("\\ne","\\neq"),Pl("\u2260","\\neq"),Pl("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Pl("\u2209","\\notin"),Pl("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Pl("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Pl("\u225a","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225a}}"),Pl("\u225b","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225b}}"),Pl("\u225d","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225d}}"),Pl("\u225e","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225e}}"),Pl("\u225f","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225f}}"),Pl("\u27c2","\\perp"),Pl("\u203c","\\mathclose{!\\mkern-0.8mu!}"),Pl("\u220c","\\notni"),Pl("\u231c","\\ulcorner"),Pl("\u231d","\\urcorner"),Pl("\u231e","\\llcorner"),Pl("\u231f","\\lrcorner"),Pl("\xa9","\\copyright"),Pl("\xae","\\textregistered"),Pl("\ufe0f","\\textregistered"),Pl("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),Pl("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),Pl("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),Pl("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),Pl("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Pl("\u22ee","\\vdots"),Pl("\\varGamma","\\mathit{\\Gamma}"),Pl("\\varDelta","\\mathit{\\Delta}"),Pl("\\varTheta","\\mathit{\\Theta}"),Pl("\\varLambda","\\mathit{\\Lambda}"),Pl("\\varXi","\\mathit{\\Xi}"),Pl("\\varPi","\\mathit{\\Pi}"),Pl("\\varSigma","\\mathit{\\Sigma}"),Pl("\\varUpsilon","\\mathit{\\Upsilon}"),Pl("\\varPhi","\\mathit{\\Phi}"),Pl("\\varPsi","\\mathit{\\Psi}"),Pl("\\varOmega","\\mathit{\\Omega}"),Pl("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Pl("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),Pl("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Pl("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Pl("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Pl("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Ic={",":"\\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"};Pl("\\dots",(function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Ic?t=Ic[n]:("\\not"===n.slice(0,4)||n in ta.math&&si.contains(["bin","rel"],ta.math[n].group))&&(t="\\dotsb"),t}));var Wc={")":!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};Pl("\\dotso",(function(e){return e.future().text in Wc?"\\ldots\\,":"\\ldots"})),Pl("\\dotsc",(function(e){var t=e.future().text;return t in Wc&&","!==t?"\\ldots\\,":"\\ldots"})),Pl("\\cdots",(function(e){return e.future().text in Wc?"\\@cdots\\,":"\\@cdots"})),Pl("\\dotsb","\\cdots"),Pl("\\dotsm","\\cdots"),Pl("\\dotsi","\\!\\cdots"),Pl("\\dotsx","\\ldots\\,"),Pl("\\DOTSI","\\relax"),Pl("\\DOTSB","\\relax"),Pl("\\DOTSX","\\relax"),Pl("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Pl("\\,","\\tmspace+{3mu}{.1667em}"),Pl("\\thinspace","\\,"),Pl("\\>","\\mskip{4mu}"),Pl("\\:","\\tmspace+{4mu}{.2222em}"),Pl("\\medspace","\\:"),Pl("\\;","\\tmspace+{5mu}{.2777em}"),Pl("\\thickspace","\\;"),Pl("\\!","\\tmspace-{3mu}{.1667em}"),Pl("\\negthinspace","\\!"),Pl("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Pl("\\negthickspace","\\tmspace-{5mu}{.277em}"),Pl("\\enspace","\\kern.5em "),Pl("\\enskip","\\hskip.5em\\relax"),Pl("\\quad","\\hskip1em\\relax"),Pl("\\qquad","\\hskip2em\\relax"),Pl("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Pl("\\tag@paren","\\tag@literal{({#1})}"),Pl("\\tag@literal",(e=>{if(e.macros.get("\\df@tag"))throw new ni("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),Pl("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Pl("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Pl("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Pl("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Pl("\\newline","\\\\\\relax"),Pl("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Pc=ji(xi["Main-Regular"]["T".charCodeAt(0)][1]-.7*xi["Main-Regular"]["A".charCodeAt(0)][1]);Pl("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Pc+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Pl("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Pc+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Pl("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Pl("\\@hspace","\\hskip #1\\relax"),Pl("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Pl("\\ordinarycolon",":"),Pl("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Pl("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Pl("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Pl("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Pl("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Pl("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Pl("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Pl("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Pl("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Pl("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Pl("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Pl("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Pl("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Pl("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Pl("\u2237","\\dblcolon"),Pl("\u2239","\\eqcolon"),Pl("\u2254","\\coloneqq"),Pl("\u2255","\\eqqcolon"),Pl("\u2a74","\\Coloneqq"),Pl("\\ratio","\\vcentcolon"),Pl("\\coloncolon","\\dblcolon"),Pl("\\colonequals","\\coloneqq"),Pl("\\coloncolonequals","\\Coloneqq"),Pl("\\equalscolon","\\eqqcolon"),Pl("\\equalscoloncolon","\\Eqqcolon"),Pl("\\colonminus","\\coloneq"),Pl("\\coloncolonminus","\\Coloneq"),Pl("\\minuscolon","\\eqcolon"),Pl("\\minuscoloncolon","\\Eqcolon"),Pl("\\coloncolonapprox","\\Colonapprox"),Pl("\\coloncolonsim","\\Colonsim"),Pl("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Pl("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Pl("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Pl("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Pl("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220c}}"),Pl("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Pl("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Pl("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),Pl("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),Pl("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),Pl("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),Pl("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),Pl("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),Pl("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Pl("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Pl("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Pl("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Pl("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Pl("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Pl("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Pl("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Pl("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Pl("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Pl("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228a}"),Pl("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2acb}"),Pl("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228b}"),Pl("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2acc}"),Pl("\\imath","\\html@mathml{\\@imath}{\u0131}"),Pl("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),Pl("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27e6}}"),Pl("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27e7}}"),Pl("\u27e6","\\llbracket"),Pl("\u27e7","\\rrbracket"),Pl("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Pl("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Pl("\u2983","\\lBrace"),Pl("\u2984","\\rBrace"),Pl("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29b5}}"),Pl("\u29b5","\\minuso"),Pl("\\darr","\\downarrow"),Pl("\\dArr","\\Downarrow"),Pl("\\Darr","\\Downarrow"),Pl("\\lang","\\langle"),Pl("\\rang","\\rangle"),Pl("\\uarr","\\uparrow"),Pl("\\uArr","\\Uparrow"),Pl("\\Uarr","\\Uparrow"),Pl("\\N","\\mathbb{N}"),Pl("\\R","\\mathbb{R}"),Pl("\\Z","\\mathbb{Z}"),Pl("\\alef","\\aleph"),Pl("\\alefsym","\\aleph"),Pl("\\Alpha","\\mathrm{A}"),Pl("\\Beta","\\mathrm{B}"),Pl("\\bull","\\bullet"),Pl("\\Chi","\\mathrm{X}"),Pl("\\clubs","\\clubsuit"),Pl("\\cnums","\\mathbb{C}"),Pl("\\Complex","\\mathbb{C}"),Pl("\\Dagger","\\ddagger"),Pl("\\diamonds","\\diamondsuit"),Pl("\\empty","\\emptyset"),Pl("\\Epsilon","\\mathrm{E}"),Pl("\\Eta","\\mathrm{H}"),Pl("\\exist","\\exists"),Pl("\\harr","\\leftrightarrow"),Pl("\\hArr","\\Leftrightarrow"),Pl("\\Harr","\\Leftrightarrow"),Pl("\\hearts","\\heartsuit"),Pl("\\image","\\Im"),Pl("\\infin","\\infty"),Pl("\\Iota","\\mathrm{I}"),Pl("\\isin","\\in"),Pl("\\Kappa","\\mathrm{K}"),Pl("\\larr","\\leftarrow"),Pl("\\lArr","\\Leftarrow"),Pl("\\Larr","\\Leftarrow"),Pl("\\lrarr","\\leftrightarrow"),Pl("\\lrArr","\\Leftrightarrow"),Pl("\\Lrarr","\\Leftrightarrow"),Pl("\\Mu","\\mathrm{M}"),Pl("\\natnums","\\mathbb{N}"),Pl("\\Nu","\\mathrm{N}"),Pl("\\Omicron","\\mathrm{O}"),Pl("\\plusmn","\\pm"),Pl("\\rarr","\\rightarrow"),Pl("\\rArr","\\Rightarrow"),Pl("\\Rarr","\\Rightarrow"),Pl("\\real","\\Re"),Pl("\\reals","\\mathbb{R}"),Pl("\\Reals","\\mathbb{R}"),Pl("\\Rho","\\mathrm{P}"),Pl("\\sdot","\\cdot"),Pl("\\sect","\\S"),Pl("\\spades","\\spadesuit"),Pl("\\sub","\\subset"),Pl("\\sube","\\subseteq"),Pl("\\supe","\\supseteq"),Pl("\\Tau","\\mathrm{T}"),Pl("\\thetasym","\\vartheta"),Pl("\\weierp","\\wp"),Pl("\\Zeta","\\mathrm{Z}"),Pl("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Pl("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Pl("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Pl("\\bra","\\mathinner{\\langle{#1}|}"),Pl("\\ket","\\mathinner{|{#1}\\rangle}"),Pl("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Pl("\\Bra","\\left\\langle#1\\right|"),Pl("\\Ket","\\left|#1\\right\\rangle");var Lc=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,o=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=t=>n=>{e&&(n.macros.set("|",a),o.length&&n.macros.set("\\|",s));var i=t;!t&&o.length&&("|"===n.future().text&&(n.popToken(),i=!0));return{tokens:i?o:r,numArgs:0}};t.macros.set("|",l(!1)),o.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,u=t.expandTokens([...i,...c,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};Pl("\\bra@ket",Lc(!1)),Pl("\\bra@set",Lc(!0)),Pl("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),Pl("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),Pl("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),Pl("\\angln","{\\angl n}"),Pl("\\blue","\\textcolor{##6495ed}{#1}"),Pl("\\orange","\\textcolor{##ffa500}{#1}"),Pl("\\pink","\\textcolor{##ff00af}{#1}"),Pl("\\red","\\textcolor{##df0030}{#1}"),Pl("\\green","\\textcolor{##28ae7b}{#1}"),Pl("\\gray","\\textcolor{gray}{#1}"),Pl("\\purple","\\textcolor{##9d38bd}{#1}"),Pl("\\blueA","\\textcolor{##ccfaff}{#1}"),Pl("\\blueB","\\textcolor{##80f6ff}{#1}"),Pl("\\blueC","\\textcolor{##63d9ea}{#1}"),Pl("\\blueD","\\textcolor{##11accd}{#1}"),Pl("\\blueE","\\textcolor{##0c7f99}{#1}"),Pl("\\tealA","\\textcolor{##94fff5}{#1}"),Pl("\\tealB","\\textcolor{##26edd5}{#1}"),Pl("\\tealC","\\textcolor{##01d1c1}{#1}"),Pl("\\tealD","\\textcolor{##01a995}{#1}"),Pl("\\tealE","\\textcolor{##208170}{#1}"),Pl("\\greenA","\\textcolor{##b6ffb0}{#1}"),Pl("\\greenB","\\textcolor{##8af281}{#1}"),Pl("\\greenC","\\textcolor{##74cf70}{#1}"),Pl("\\greenD","\\textcolor{##1fab54}{#1}"),Pl("\\greenE","\\textcolor{##0d923f}{#1}"),Pl("\\goldA","\\textcolor{##ffd0a9}{#1}"),Pl("\\goldB","\\textcolor{##ffbb71}{#1}"),Pl("\\goldC","\\textcolor{##ff9c39}{#1}"),Pl("\\goldD","\\textcolor{##e07d10}{#1}"),Pl("\\goldE","\\textcolor{##a75a05}{#1}"),Pl("\\redA","\\textcolor{##fca9a9}{#1}"),Pl("\\redB","\\textcolor{##ff8482}{#1}"),Pl("\\redC","\\textcolor{##f9685d}{#1}"),Pl("\\redD","\\textcolor{##e84d39}{#1}"),Pl("\\redE","\\textcolor{##bc2612}{#1}"),Pl("\\maroonA","\\textcolor{##ffbde0}{#1}"),Pl("\\maroonB","\\textcolor{##ff92c6}{#1}"),Pl("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Pl("\\maroonD","\\textcolor{##ca337c}{#1}"),Pl("\\maroonE","\\textcolor{##9e034e}{#1}"),Pl("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Pl("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Pl("\\purpleC","\\textcolor{##aa87ff}{#1}"),Pl("\\purpleD","\\textcolor{##7854ab}{#1}"),Pl("\\purpleE","\\textcolor{##543b78}{#1}"),Pl("\\mintA","\\textcolor{##f5f9e8}{#1}"),Pl("\\mintB","\\textcolor{##edf2df}{#1}"),Pl("\\mintC","\\textcolor{##e0e5cc}{#1}"),Pl("\\grayA","\\textcolor{##f6f7f7}{#1}"),Pl("\\grayB","\\textcolor{##f0f1f2}{#1}"),Pl("\\grayC","\\textcolor{##e3e5e6}{#1}"),Pl("\\grayD","\\textcolor{##d6d8da}{#1}"),Pl("\\grayE","\\textcolor{##babec2}{#1}"),Pl("\\grayF","\\textcolor{##888d93}{#1}"),Pl("\\grayG","\\textcolor{##626569}{#1}"),Pl("\\grayH","\\textcolor{##3b3e40}{#1}"),Pl("\\grayI","\\textcolor{##21242c}{#1}"),Pl("\\kaBlue","\\textcolor{##314453}{#1}"),Pl("\\kaGreen","\\textcolor{##71B307}{#1}");var jc={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Dc{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new _c(Rc,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Tc(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:r,end:n}=this.consumeArg(["]"]))}else({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new ti("EOF",n.loc)),this.pushTokens(r),t.range(n,"")}consumeSpaces(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r,o=this.future(),i=0,a=0;do{if(r=this.popToken(),t.push(r),"{"===r.text)++i;else if("}"===r.text){if(-1===--i)throw new ni("Extra }",r)}else if("EOF"===r.text)throw new ni("Unexpected end of input in a macro argument, expected '"+(e&&n?e[a]:"}")+"'",r);if(e&&n)if((0===i||1===i&&"{"===e[a])&&r.text===e[a]){if(++a===e.length){t.splice(-a,a);break}}else a=0}while(0!==i||n);return"{"===o.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:o,end:r}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new ni("The length of delimiters doesn't match the number of args!");for(var n=t[0],r=0;rthis.settings.maxExpand)throw new ni("Too many expansions: infinite loop or need to increase maxExpand setting");var o=r.tokens,i=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs)for(var a=(o=o.slice()).length-1;a>=0;--a){var s=o[a];if("#"===s.text){if(0===a)throw new ni("Incomplete placeholder at end of macro body",s);if("#"===(s=o[--a]).text)o.splice(a+1,1);else{if(!/^[1-9]$/.test(s.text))throw new ni("Not a valid argument number",s);o.splice(a,2,...i[+s.text-1])}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new ti(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(!1===this.expandOnce(!0)){var r=this.stack.pop();r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),t.push(r)}return t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map((e=>e.text)).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var n=this.lexer.catcodes[e];if(null!=n&&13!==n)return}var r="function"===typeof t?t(this):t;if("string"===typeof r){var o=0;if(-1!==r.indexOf("#"))for(var i=r.replace(/##/g,"");-1!==i.indexOf("#"+(o+1));)++o;for(var a=new Tc(r,this.settings),s=[],l=a.lex();"EOF"!==l.text;)s.push(l),l=a.lex();return s.reverse(),{tokens:s,numArgs:o}}return r}isDefined(e){return this.macros.has(e)||wc.hasOwnProperty(e)||ta.math.hasOwnProperty(e)||ta.text.hasOwnProperty(e)||jc.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"===typeof t||"function"===typeof t||!t.unexpandable:wc.hasOwnProperty(e)&&!wc[e].primitive}}var Bc=/^[\u208a\u208b\u208c\u208d\u208e\u2080\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089\u2090\u2091\u2095\u1d62\u2c7c\u2096\u2097\u2098\u2099\u2092\u209a\u1d63\u209b\u209c\u1d64\u1d65\u2093\u1d66\u1d67\u1d68\u1d69\u1d6a]/,Fc=Object.freeze({"\u208a":"+","\u208b":"-","\u208c":"=","\u208d":"(","\u208e":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1d62":"i","\u2c7c":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209a":"p","\u1d63":"r","\u209b":"s","\u209c":"t","\u1d64":"u","\u1d65":"v","\u2093":"x","\u1d66":"\u03b2","\u1d67":"\u03b3","\u1d68":"\u03c1","\u1d69":"\u03d5","\u1d6a":"\u03c7","\u207a":"+","\u207b":"-","\u207c":"=","\u207d":"(","\u207e":")","\u2070":"0","\xb9":"1","\xb2":"2","\xb3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1d2c":"A","\u1d2e":"B","\u1d30":"D","\u1d31":"E","\u1d33":"G","\u1d34":"H","\u1d35":"I","\u1d36":"J","\u1d37":"K","\u1d38":"L","\u1d39":"M","\u1d3a":"N","\u1d3c":"O","\u1d3e":"P","\u1d3f":"R","\u1d40":"T","\u1d41":"U","\u2c7d":"V","\u1d42":"W","\u1d43":"a","\u1d47":"b","\u1d9c":"c","\u1d48":"d","\u1d49":"e","\u1da0":"f","\u1d4d":"g","\u02b0":"h","\u2071":"i","\u02b2":"j","\u1d4f":"k","\u02e1":"l","\u1d50":"m","\u207f":"n","\u1d52":"o","\u1d56":"p","\u02b3":"r","\u02e2":"s","\u1d57":"t","\u1d58":"u","\u1d5b":"v","\u02b7":"w","\u02e3":"x","\u02b8":"y","\u1dbb":"z","\u1d5d":"\u03b2","\u1d5e":"\u03b3","\u1d5f":"\u03b4","\u1d60":"\u03d5","\u1d61":"\u03c7","\u1dbf":"\u03b8"}),Vc={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"},"\u0327":{text:"\\c"}},Uc={"\xe1":"a\u0301","\xe0":"a\u0300","\xe4":"a\u0308","\u01df":"a\u0308\u0304","\xe3":"a\u0303","\u0101":"a\u0304","\u0103":"a\u0306","\u1eaf":"a\u0306\u0301","\u1eb1":"a\u0306\u0300","\u1eb5":"a\u0306\u0303","\u01ce":"a\u030c","\xe2":"a\u0302","\u1ea5":"a\u0302\u0301","\u1ea7":"a\u0302\u0300","\u1eab":"a\u0302\u0303","\u0227":"a\u0307","\u01e1":"a\u0307\u0304","\xe5":"a\u030a","\u01fb":"a\u030a\u0301","\u1e03":"b\u0307","\u0107":"c\u0301","\u1e09":"c\u0327\u0301","\u010d":"c\u030c","\u0109":"c\u0302","\u010b":"c\u0307","\xe7":"c\u0327","\u010f":"d\u030c","\u1e0b":"d\u0307","\u1e11":"d\u0327","\xe9":"e\u0301","\xe8":"e\u0300","\xeb":"e\u0308","\u1ebd":"e\u0303","\u0113":"e\u0304","\u1e17":"e\u0304\u0301","\u1e15":"e\u0304\u0300","\u0115":"e\u0306","\u1e1d":"e\u0327\u0306","\u011b":"e\u030c","\xea":"e\u0302","\u1ebf":"e\u0302\u0301","\u1ec1":"e\u0302\u0300","\u1ec5":"e\u0302\u0303","\u0117":"e\u0307","\u0229":"e\u0327","\u1e1f":"f\u0307","\u01f5":"g\u0301","\u1e21":"g\u0304","\u011f":"g\u0306","\u01e7":"g\u030c","\u011d":"g\u0302","\u0121":"g\u0307","\u0123":"g\u0327","\u1e27":"h\u0308","\u021f":"h\u030c","\u0125":"h\u0302","\u1e23":"h\u0307","\u1e29":"h\u0327","\xed":"i\u0301","\xec":"i\u0300","\xef":"i\u0308","\u1e2f":"i\u0308\u0301","\u0129":"i\u0303","\u012b":"i\u0304","\u012d":"i\u0306","\u01d0":"i\u030c","\xee":"i\u0302","\u01f0":"j\u030c","\u0135":"j\u0302","\u1e31":"k\u0301","\u01e9":"k\u030c","\u0137":"k\u0327","\u013a":"l\u0301","\u013e":"l\u030c","\u013c":"l\u0327","\u1e3f":"m\u0301","\u1e41":"m\u0307","\u0144":"n\u0301","\u01f9":"n\u0300","\xf1":"n\u0303","\u0148":"n\u030c","\u1e45":"n\u0307","\u0146":"n\u0327","\xf3":"o\u0301","\xf2":"o\u0300","\xf6":"o\u0308","\u022b":"o\u0308\u0304","\xf5":"o\u0303","\u1e4d":"o\u0303\u0301","\u1e4f":"o\u0303\u0308","\u022d":"o\u0303\u0304","\u014d":"o\u0304","\u1e53":"o\u0304\u0301","\u1e51":"o\u0304\u0300","\u014f":"o\u0306","\u01d2":"o\u030c","\xf4":"o\u0302","\u1ed1":"o\u0302\u0301","\u1ed3":"o\u0302\u0300","\u1ed7":"o\u0302\u0303","\u022f":"o\u0307","\u0231":"o\u0307\u0304","\u0151":"o\u030b","\u1e55":"p\u0301","\u1e57":"p\u0307","\u0155":"r\u0301","\u0159":"r\u030c","\u1e59":"r\u0307","\u0157":"r\u0327","\u015b":"s\u0301","\u1e65":"s\u0301\u0307","\u0161":"s\u030c","\u1e67":"s\u030c\u0307","\u015d":"s\u0302","\u1e61":"s\u0307","\u015f":"s\u0327","\u1e97":"t\u0308","\u0165":"t\u030c","\u1e6b":"t\u0307","\u0163":"t\u0327","\xfa":"u\u0301","\xf9":"u\u0300","\xfc":"u\u0308","\u01d8":"u\u0308\u0301","\u01dc":"u\u0308\u0300","\u01d6":"u\u0308\u0304","\u01da":"u\u0308\u030c","\u0169":"u\u0303","\u1e79":"u\u0303\u0301","\u016b":"u\u0304","\u1e7b":"u\u0304\u0308","\u016d":"u\u0306","\u01d4":"u\u030c","\xfb":"u\u0302","\u016f":"u\u030a","\u0171":"u\u030b","\u1e7d":"v\u0303","\u1e83":"w\u0301","\u1e81":"w\u0300","\u1e85":"w\u0308","\u0175":"w\u0302","\u1e87":"w\u0307","\u1e98":"w\u030a","\u1e8d":"x\u0308","\u1e8b":"x\u0307","\xfd":"y\u0301","\u1ef3":"y\u0300","\xff":"y\u0308","\u1ef9":"y\u0303","\u0233":"y\u0304","\u0177":"y\u0302","\u1e8f":"y\u0307","\u1e99":"y\u030a","\u017a":"z\u0301","\u017e":"z\u030c","\u1e91":"z\u0302","\u017c":"z\u0307","\xc1":"A\u0301","\xc0":"A\u0300","\xc4":"A\u0308","\u01de":"A\u0308\u0304","\xc3":"A\u0303","\u0100":"A\u0304","\u0102":"A\u0306","\u1eae":"A\u0306\u0301","\u1eb0":"A\u0306\u0300","\u1eb4":"A\u0306\u0303","\u01cd":"A\u030c","\xc2":"A\u0302","\u1ea4":"A\u0302\u0301","\u1ea6":"A\u0302\u0300","\u1eaa":"A\u0302\u0303","\u0226":"A\u0307","\u01e0":"A\u0307\u0304","\xc5":"A\u030a","\u01fa":"A\u030a\u0301","\u1e02":"B\u0307","\u0106":"C\u0301","\u1e08":"C\u0327\u0301","\u010c":"C\u030c","\u0108":"C\u0302","\u010a":"C\u0307","\xc7":"C\u0327","\u010e":"D\u030c","\u1e0a":"D\u0307","\u1e10":"D\u0327","\xc9":"E\u0301","\xc8":"E\u0300","\xcb":"E\u0308","\u1ebc":"E\u0303","\u0112":"E\u0304","\u1e16":"E\u0304\u0301","\u1e14":"E\u0304\u0300","\u0114":"E\u0306","\u1e1c":"E\u0327\u0306","\u011a":"E\u030c","\xca":"E\u0302","\u1ebe":"E\u0302\u0301","\u1ec0":"E\u0302\u0300","\u1ec4":"E\u0302\u0303","\u0116":"E\u0307","\u0228":"E\u0327","\u1e1e":"F\u0307","\u01f4":"G\u0301","\u1e20":"G\u0304","\u011e":"G\u0306","\u01e6":"G\u030c","\u011c":"G\u0302","\u0120":"G\u0307","\u0122":"G\u0327","\u1e26":"H\u0308","\u021e":"H\u030c","\u0124":"H\u0302","\u1e22":"H\u0307","\u1e28":"H\u0327","\xcd":"I\u0301","\xcc":"I\u0300","\xcf":"I\u0308","\u1e2e":"I\u0308\u0301","\u0128":"I\u0303","\u012a":"I\u0304","\u012c":"I\u0306","\u01cf":"I\u030c","\xce":"I\u0302","\u0130":"I\u0307","\u0134":"J\u0302","\u1e30":"K\u0301","\u01e8":"K\u030c","\u0136":"K\u0327","\u0139":"L\u0301","\u013d":"L\u030c","\u013b":"L\u0327","\u1e3e":"M\u0301","\u1e40":"M\u0307","\u0143":"N\u0301","\u01f8":"N\u0300","\xd1":"N\u0303","\u0147":"N\u030c","\u1e44":"N\u0307","\u0145":"N\u0327","\xd3":"O\u0301","\xd2":"O\u0300","\xd6":"O\u0308","\u022a":"O\u0308\u0304","\xd5":"O\u0303","\u1e4c":"O\u0303\u0301","\u1e4e":"O\u0303\u0308","\u022c":"O\u0303\u0304","\u014c":"O\u0304","\u1e52":"O\u0304\u0301","\u1e50":"O\u0304\u0300","\u014e":"O\u0306","\u01d1":"O\u030c","\xd4":"O\u0302","\u1ed0":"O\u0302\u0301","\u1ed2":"O\u0302\u0300","\u1ed6":"O\u0302\u0303","\u022e":"O\u0307","\u0230":"O\u0307\u0304","\u0150":"O\u030b","\u1e54":"P\u0301","\u1e56":"P\u0307","\u0154":"R\u0301","\u0158":"R\u030c","\u1e58":"R\u0307","\u0156":"R\u0327","\u015a":"S\u0301","\u1e64":"S\u0301\u0307","\u0160":"S\u030c","\u1e66":"S\u030c\u0307","\u015c":"S\u0302","\u1e60":"S\u0307","\u015e":"S\u0327","\u0164":"T\u030c","\u1e6a":"T\u0307","\u0162":"T\u0327","\xda":"U\u0301","\xd9":"U\u0300","\xdc":"U\u0308","\u01d7":"U\u0308\u0301","\u01db":"U\u0308\u0300","\u01d5":"U\u0308\u0304","\u01d9":"U\u0308\u030c","\u0168":"U\u0303","\u1e78":"U\u0303\u0301","\u016a":"U\u0304","\u1e7a":"U\u0304\u0308","\u016c":"U\u0306","\u01d3":"U\u030c","\xdb":"U\u0302","\u016e":"U\u030a","\u0170":"U\u030b","\u1e7c":"V\u0303","\u1e82":"W\u0301","\u1e80":"W\u0300","\u1e84":"W\u0308","\u0174":"W\u0302","\u1e86":"W\u0307","\u1e8c":"X\u0308","\u1e8a":"X\u0307","\xdd":"Y\u0301","\u1ef2":"Y\u0300","\u0178":"Y\u0308","\u1ef8":"Y\u0303","\u0232":"Y\u0304","\u0176":"Y\u0302","\u1e8e":"Y\u0307","\u0179":"Z\u0301","\u017d":"Z\u030c","\u1e90":"Z\u0302","\u017b":"Z\u0307","\u03ac":"\u03b1\u0301","\u1f70":"\u03b1\u0300","\u1fb1":"\u03b1\u0304","\u1fb0":"\u03b1\u0306","\u03ad":"\u03b5\u0301","\u1f72":"\u03b5\u0300","\u03ae":"\u03b7\u0301","\u1f74":"\u03b7\u0300","\u03af":"\u03b9\u0301","\u1f76":"\u03b9\u0300","\u03ca":"\u03b9\u0308","\u0390":"\u03b9\u0308\u0301","\u1fd2":"\u03b9\u0308\u0300","\u1fd1":"\u03b9\u0304","\u1fd0":"\u03b9\u0306","\u03cc":"\u03bf\u0301","\u1f78":"\u03bf\u0300","\u03cd":"\u03c5\u0301","\u1f7a":"\u03c5\u0300","\u03cb":"\u03c5\u0308","\u03b0":"\u03c5\u0308\u0301","\u1fe2":"\u03c5\u0308\u0300","\u1fe1":"\u03c5\u0304","\u1fe0":"\u03c5\u0306","\u03ce":"\u03c9\u0301","\u1f7c":"\u03c9\u0300","\u038e":"\u03a5\u0301","\u1fea":"\u03a5\u0300","\u03ab":"\u03a5\u0308","\u1fe9":"\u03a5\u0304","\u1fe8":"\u03a5\u0306","\u038f":"\u03a9\u0301","\u1ffa":"\u03a9\u0300"};class Hc{constructor(e,t){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 Dc(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new ni("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new ti("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,n}parseExpression(e,t){for(var n=[];;){"math"===this.mode&&this.consumeSpaces();var r=this.fetch();if(-1!==Hc.endOfExpression.indexOf(r.text))break;if(t&&r.text===t)break;if(e&&wc[r.text]&&wc[r.text].infix)break;var o=this.parseAtom(t);if(!o)break;"internal"!==o.type&&n.push(o)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var t,n=-1,r=0;r=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var a,s=ta[this.mode][t].group,l=ei.range(e);if(Qi.hasOwnProperty(s)){var c=s;a={type:"atom",mode:this.mode,family:c,loc:l,text:t}}else a={type:s,mode:this.mode,loc:l,text:t};o=a}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(Ai(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),o={type:"textord",mode:"text",loc:ei.range(e),text:t}}if(this.consume(),i)for(var u=0;u1?n-1:0),o=1;o{u(e,"element",(e=>{const o=e.properties&&Array.isArray(e.properties.className)?e.properties.className:[],i=o.includes("math-inline"),a=o.includes("math-display");if(!i&&!a)return;const s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n="children"in e?e.children:[],r=lu(e),o=du(e,{whitespace:t.whitespace||"normal",breakBefore:!1,breakAfter:!1}),i=[];"text"!==e.type&&"comment"!==e.type||i.push(...uu(e,{whitespace:o,breakBefore:!0,breakAfter:!0}));let a=-1;for(;++al&&(l=e):e&&(void 0!==l&&l>-1&&s.push("\n".repeat(l)||" "),l=-1,s.push(e))}return s.join("")}(e,{whitespace:"pre"});let l;try{l=Yc.renderToString(s,Ou({},t,{displayMode:a,throwOnError:!0}))}catch(u){const o=u,i=n?"fail":"message",c=[yu,o.name.toLowerCase()].join(":");if(r[i](o.message,e.position,c),"ParseError"!==o.name)return void(e.children=[{type:"element",tagName:"span",properties:{className:["katex-error"],title:String(o),style:"color:"+(t.errorColor||"#cc0000")},children:[{type:"text",value:s}]}]);l=Yc.renderToString(s,Ou({},t,{displayMode:a,throwOnError:!1,strict:"ignore"}))}const c=gu(l,{fragment:!0});e.children=c.children}))}}function zu(){return zu=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var vu=(0,i.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,s=Au(e,["color","size"]);return i.createElement("svg",zu({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),i.createElement("path",{d:"M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"}),i.createElement("line",{x1:"8",y1:"12",x2:"16",y2:"12"}))}));vu.propTypes={color:sn().string,size:sn().oneOfType([sn().string,sn().number])},vu.displayName="Link2";const wu=vu;var Su=n(14853);const xu=[{name:"angry",emoji:"\ud83d\ude20",tags:["mad","annoyed"],description:"angry face",emoticons:[">:(",">:[",">:-(",">:-[",">=(",">=[",">=-(",">=-["]},{name:"blush",emoji:"\ud83d\ude0a",tags:["proud"],description:"smiling face with smiling eyes",emoticons:[':")',':"]',':"D',':-")',':-"]',':-"D','=")','="]','="D','=-")','=-"]','=-"D']},{name:"broken_heart",emoji:"\ud83d\udc94",tags:[],description:"broken heart",emoticons:["<\\3","3"]},{name:"confused",emoji:"\ud83d\ude15",tags:[],description:"confused face",emoticons:[":/",":\\",":-/",":-\\","=/","=\\","=-/","=-\\"]},{name:"cry",emoji:"\ud83d\ude22",tags:["sad","tear"],description:"crying face",emoticons:[":,(",":,[",":,|",":,-(",":,-[",":,-|",":'(",":'[",":'|",":'-(",":'-[",":'-|","=,(","=,[","=,|","=,-(","=,-[","=,-|","='(","='[","='|","='-(","='-[","='-|"]},{name:"frowning",emoji:"\ud83d\ude26",tags:[],description:"frowning face with open mouth",emoticons:[":(",":[",":-(",":-[","=(","=[","=-(","=-["]},{name:"heart",emoji:"\u2764\ufe0f",tags:["love"],description:"red heart",emoticons:["<3"]},{name:"imp",emoji:"\ud83d\udc7f",tags:["angry","devil","evil","horns"],description:"angry face with horns",emoticons:["]:(","]:[","]:-(","]:-[","]=(","]=[","]=-(","]=-["]},{name:"innocent",emoji:"\ud83d\ude07",tags:["angel"],description:"smiling face with halo",emoticons:["o:)","o:]","o:D","o:-)","o:-]","o:-D","o=)","o=]","o=D","o=-)","o=-]","o=-D","O:)","O:]","O:D","O:-)","O:-]","O:-D","O=)","O=]","O=D","O=-)","O=-]","O=-D","0:)","0:]","0:D","0:-)","0:-]","0:-D","0=)","0=]","0=D","0=-)","0=-]","0=-D"]},{name:"joy",emoji:"\ud83d\ude02",tags:["tears"],description:"face with tears of joy",emoticons:[":,)",":,]",":,D",":,-)",":,-]",":,-D",":')",":']",":'D",":'-)",":'-]",":'-D","=,)","=,]","=,D","=,-)","=,-]","=,-D","=')","=']","='D","='-)","='-]","='-D"]},{name:"kissing",emoji:"\ud83d\ude17",tags:[],description:"kissing face",emoticons:[":*",":-*","=*","=-*"]},{name:"laughing",emoji:"\ud83d\ude06",tags:["happy","haha"],description:"grinning squinting face",emoticons:["x)","x]","xD","x-)","x-]","x-D","X)","X]","X-)","X-]","X-D"]},{name:"man",emoji:"\ud83d\udc68",tags:["mustache","father","dad"],description:"man",emoticons:[":3",":-3","=3","=-3",";3",";-3","x3","x-3","X3","X-3"]},{name:"neutral_face",emoji:"\ud83d\ude10",tags:["meh"],description:"neutral face",emoticons:[":|",":-|","=|","=-|"]},{name:"no_mouth",emoji:"\ud83d\ude36",tags:["mute","silence"],description:"face without mouth",emoticons:[":-"]},{name:"open_mouth",emoji:"\ud83d\ude2e",tags:["surprise","impressed","wow"],description:"face with open mouth",emoticons:[":o",":O",":0",":-o",":-O",":-0","=o","=O","=0","=-o","=-O","=-0"]},{name:"rage",emoji:"\ud83d\ude21",tags:["angry"],description:"pouting face",emoticons:[":@",":-@","=@","=-@"]},{name:"smile",emoji:"\ud83d\ude04",tags:["happy","joy","laugh","pleased"],description:"grinning face with smiling eyes",emoticons:[":D",":-D","=D","=-D"]},{name:"smiley",emoji:"\ud83d\ude03",tags:["happy","joy","haha"],description:"grinning face with big eyes",emoticons:[":)",":]",":-)",":-]","=)","=]","=-)","=-]"]},{name:"smiling_imp",emoji:"\ud83d\ude08",tags:["devil","evil","horns"],description:"smiling face with horns",emoticons:["]:)","]:]","]:D","]:-)","]:-]","]:-D","]=)","]=]","]=D","]=-)","]=-]","]=-D"]},{name:"sob",emoji:"\ud83d\ude2d",tags:["sad","cry","bawling"],description:"loudly crying face",emoticons:[":,'(",":,'[",":,'-(",":,'-[",":',(",":',[",":',-(",":',-[","=,'(","=,'[","=,'-(","=,'-[","=',(","=',[","=',-(","=',-["]},{name:"stuck_out_tongue",emoji:"\ud83d\ude1b",tags:[],description:"face with tongue",emoticons:[":p",":P",":d",":-p",":-P",":-d","=p","=P","=d","=-p","=-P","=-d"]},{name:"stuck_out_tongue_closed_eyes",emoji:"\ud83d\ude1d",tags:["prank"],description:"squinting face with tongue",emoticons:["xP","x-p","x-P","x-d","Xp","Xd","X-p","X-P","X-d"]},{name:"stuck_out_tongue_winking_eye",emoji:"\ud83d\ude1c",tags:["prank","silly"],description:"winking face with tongue",emoticons:[";p",";P",";d",";-p",";-P",";-d"]},{name:"sunglasses",emoji:"\ud83d\ude0e",tags:["cool"],description:"smiling face with sunglasses",emoticons:["8)","8]","8D","8-)","8-]","8-D","B)","B]","B-)","B-]","B-D"]},{name:"sweat",emoji:"\ud83d\ude13",tags:[],description:"downcast face with sweat",emoticons:[",:(",",:[",",:-(",",:-[",",=(",",=[",",=-(",",=-[","':(","':[","':-(","':-[","'=(","'=[","'=-(","'=-["]},{name:"sweat_smile",emoji:"\ud83d\ude05",tags:["hot"],description:"grinning face with sweat",emoticons:[",:)",",:]",",:D",",:-)",",:-]",",:-D",",=)",",=]",",=D",",=-)",",=-]",",=-D","':)","':]","':D","':-)","':-]","':-D","'=)","'=]","'=D","'=-)","'=-]","'=-D"]},{name:"unamused",emoji:"\ud83d\ude12",tags:["meh"],description:"unamused face",emoticons:[":$",":s",":z",":S",":Z",":-$",":-s",":-z",":-S",":-Z","=$","=s","=z","=S","=Z","=-$","=-s","=-z","=-S","=-Z"]},{name:"wink",emoji:"\ud83d\ude09",tags:["flirt"],description:"winking face",emoticons:[";)",";]",";D",";-)",";-]",";-D"]}];const Eu={}.hasOwnProperty,ku=function(e,t,n,r){let o,i;"string"===typeof t||t instanceof RegExp?(i=[[t,n]],o=r):(i=t,o=n),o||(o={});const s=a(o.ignore||[]),l=function(e){const t=[];if("object"!==typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n0?{type:"text",value:l}:void 0),!1!==l&&(i!==n&&c.push({type:"text",value:e.value.slice(i,n)}),Array.isArray(l)?c.push(...l):l&&c.push(l),i=n+p[0].length,s=!0),!r.global)break;p=r.exec(e.value)}s?(ie}const _u=/:\+1:|:-1:|:[\w-]+:/g,Ru=/[$@|*'",;.=:\-)([\]\\/<>038BOopPsSdDxXzZ]{2,5}/g,Cu=/_/g,Nu=/(?:_|-(?!1))/g,Iu={padSpaceAfter:!1,emoticon:!1,accessible:!1};function Wu(e){const t=Object.assign({},Iu,e),n=!!t.padSpaceAfter,r=!!t.emoticon,o=!!t.accessible;function i(e,t){return{type:"text",meta:null,value:e,data:{hName:"span",hProperties:{role:"img",ariaLabel:t},hChildren:[{type:"text",value:e}]}}}const a=[[_u,function(e){let t=Su.get(e);if(e.endsWith("_man:")&&t===e){const n="man-"+e.slice(1,-5).replace(Cu,"-"),r=Su.get(n);r!==n&&(t=r)}else if(e.endsWith("_woman:")&&t===e){const n="woman-"+e.slice(1,-7).replace(Cu,"-"),r=Su.get(n);r!==n&&(t=r)}if(t===e)return!1;if(n&&(t+=" "),o){return i(t,e.slice(1,-1).replace(Nu," ")+" emoji")}return t}]];return r&&a.push([Ru,function(e){const t=xu.find((t=>t.emoticons.includes(e))),r=xu.find((t=>t.emoticons.includes(e.slice(0,-1)))),a=t||r;if(!a)return!1;const s=!t&&r?e.slice(-1):"",l=n?" ":"",c=a.emoji+l+s;return o?i(c,a.name+" emoticon"):c}]),function(e){ku(e,a)}}const Pu={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},Lu={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(Du,l,s)(t):null===t||oe(t)||se(t)||45!==t&&ae(t)?l(t):(i=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function l(e){return o||r||!i?n(e):t(e)}},partial:!0},ju={tokenize:function(e,t){let n=0,r=0;return o;function o(a){return 40===a?(n++,e.consume(a),o):41===a&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Hu[43]=Uu,Hu[45]=Uu,Hu[46]=Uu,Hu[95]=Uu,Hu[72]=[Uu,Vu],Hu[104]=[Uu,Vu],Hu[87]=[Uu,Fu],Hu[119]=[Uu,Fu];const Qu={tokenize:function(e,t,n){const r=this;return ce(e,(function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function ep(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return n(o);const s=We(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function tp(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...l),e}function np(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!i||null===s||91===s||oe(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(We(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return oe(s)||(i=!0),a++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function rp(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!a||null===t||91===t||oe(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=We(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return oe(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),ce(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function op(e,t,n){return e.check(be,t,e.attempt(Qu,t,n))}function ip(e){e.exit("gfmFootnoteDefinition")}function ap(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,r){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){const l=at(o);if(126===i)return a>1?r(i):(e.consume(i),a++,s);if(a<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=at(i);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++ne[0]-t[0])),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function lp(e,t){let n=!1;const r=[];for(;t-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?M:s;if(i===M&&r.parser.lazy[r.now().line])return n(e);return i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return o=!0,a+=1,l(e)}(t)}function l(t){return null===t?n(t):re(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p):n(t):ie(t)?ce(e,l,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||oe(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,ie(t)?ce(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t))}function d(t){return 45===t||58===t?f(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),b):y(t)}function b(t){return ie(t)?ce(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),h):45===t?(a+=1,h(t)):null===t||re(t)?O(t):y(t)}function h(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):y(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(t))}function g(t){return ie(t)?ce(e,O,"whitespace")(t):O(t)}function O(n){return 124===n?d(n):(null===n||re(n))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function M(t){return e.enter("tableRow"),z(t)}function z(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),z):null===n||re(n)?(e.exit("tableRow"),t(n)):ie(n)?ce(e,z,"whitespace")(n):(e.enter("data"),A(n))}function A(t){return null===t||124===t||oe(t)?(e.exit("data"),z(t)):(e.consume(t),92===t?v:A)}function v(t){return 92===t||124===t?(e.consume(t),A):A(t)}},resolveAll:function(e,t){let n,r,o,i=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,p=0;const d=new sp;for(;++in[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==o&&(i.end=Object.assign({},dp(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function pp(e,t,n,r,o){const i=[],a=dp(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function dp(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const bp={tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return oe(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return re(r)?t(r):ie(r)?e.check({tokenize:hp},t,n)(r):n(r)}}},fp={text:{91:bp}};function hp(e,t,n){return ce(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}function mp(e,t){const n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}const gp="phrasing",Op=["autolink","link","image","label"],yp={transforms:[function(e){ku(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ap],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,vp]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:zp,literalAutolinkHttp:zp,literalAutolinkWww:zp},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}}},Mp={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:gp,notInConstruct:Op},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:gp,notInConstruct:Op},{character:":",before:"[ps]",after:"\\/",inConstruct:gp,notInConstruct:Op}]};function zp(e){this.config.enter.autolinkProtocol.call(this,e)}function Ap(e,t,n,r,o){let i="";if(!wp(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(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])))return!1;return!0}(n))return!1;const a=function(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 o=mp(e,"(");let i=mp(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function vp(e,t,n,r){return!(!wp(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function wp(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||se(n)||ae(n))&&(!t||47!==n)}function Sp(e){return e.label||!e.identifier?e.label||"":xt(e.identifier)}const xp=/\r?\n|\r/g;function Ep(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function kp(){this.buffer()}function qp(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=We(this.sliceSerialize(e)).toLowerCase()}function Tp(e){this.exit(e)}function _p(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Rp(){this.buffer()}function Cp(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=We(this.sliceSerialize(e)).toLowerCase()}function Np(e){this.exit(e)}function Ip(e,t,n,r){const o=Vr(r);let i=o.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return i+=o.move(ho(n,Sp(e),{...o.current(),before:i,after:"]"})),s(),a(),i+=o.move("]"),i}function Wp(e,t,n,r){const o=Vr(r);let i=o.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return i+=o.move(ho(n,Sp(e),{...o.current(),before:i,after:"]"})),s(),i+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),i+=o.move(function(e,t){const n=[];let r,o=0,i=0;for(;r=xp.exec(e);)a(e.slice(o,r.index)),n.push(r[0]),o=r.index+r[0].length,i++;return a(e.slice(o)),n.join("");function a(e){n.push(t(e,i,!e))}}(Dr(e,n,o.current()),Pp)),a(),i}function Pp(e,t,n){return 0===t?e:(n?"":" ")+e}Ip.peek=function(){return"["};Dp.peek=function(){return"~"};const Lp={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},jp={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:Dp}};function Dp(e,t,n,r){const o=Vr(r),i=n.enter("strikethrough");let a=o.move("~~");return a+=Fr(e,n,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function Bp(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i"none"===e?null:e)),children:[]},e),this.setData("inTable",!0)},tableData:Xp,tableHeader:Xp,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,Gp));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:Hp,tableHeader:Hp,tableRow:Hp}};function Hp(e){this.exit(e)}function Xp(e){this.enter({type:"tableCell",children:[]},e)}function Gp(e,t){return"|"===t?t:e}function $p(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o1&&void 0!==arguments[1]?arguments[1]:{};const n=(t.align||[]).concat(),r=t.stringLength||Fp,o=[],i=[],a=[],s=[];let l=0,c=-1;for(;++cl&&(l=e[c].length);++ps[p])&&(s[p]=e)}n.push(i)}i[c]=n,a[c]=o}var u;let p=-1;if("object"===typeof n&&"length"in n)for(;++ps[p]&&(s[p]=i),b[p]=i),d[p]=a}i.splice(1,0,d),a.splice(1,0,b),c=-1;const f=[];for(;++c-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e}));return l(),c}const Yp={exit:{taskListCheckValueChecked:Jp,taskListCheckValueUnchecked:Jp,paragraph:function(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"===typeof t.checked){const e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i0&&void 0!==arguments[0]?arguments[0]:{};const t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",function(e){return G([Xu,{document:{91:{tokenize:rp,continuation:{tokenize:op},exit:ip}},text:{91:{tokenize:np},93:{add:"after",tokenize:ep,resolveTo:tp}}},ap(e),cp,fp])}(e)),n("fromMarkdownExtensions",[yp,{enter:{gfmFootnoteDefinition:Ep,gfmFootnoteDefinitionLabelString:kp,gfmFootnoteCall:_p,gfmFootnoteCallString:Rp},exit:{gfmFootnoteDefinition:Tp,gfmFootnoteDefinitionLabelString:qp,gfmFootnoteCall:Np,gfmFootnoteCallString:Cp}},Lp,Up,Yp]),n("toMarkdownExtensions",function(e){return{extensions:[Mp,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Wp,footnoteReference:Ip}},jp,$p(e),Zp]}}(e))}var ed=n(13418),td=n.n(ed),nd=n(15945),rd=n(95407),od=n(60906),id=n(45162),ad=n(63705),sd=n(36599),ld=n(64756),cd=n(97218),ud=(n(81998),n(37574));let pd=function(e){return e.H1="h1",e.H2="h2",e.H3="h3",e}({});function dd(e){return e}const bd=dr()((e=>{e.scrollIntoView(!0)})),fd=e=>{let{elementId:t,help:n,hideAnchor:r}=e;return!n&&r?(0,ud.jsx)(ud.Fragment,{}):(0,ud.jsxs)(cd.O7,{"data-testid":"stHeaderActionElements",children:[n&&(0,ud.jsx)(ad.w,{content:n}),t&&!r&&(0,ud.jsx)(cd.Cv,{href:`#${t}`,children:(0,ud.jsx)(wu,{size:"18"})})]})},hd=e=>{let{tag:t,anchor:n,help:r,hideAnchor:o,children:a,tagProps:s}=e;const l=i.useContext(od.Z),c=i.useContext(rd.Z),[u,p]=i.useState(n),[d,b]=i.useState(null),{addScriptFinishedHandler:f,removeScriptFinishedHandler:h}=i.useContext(ld.E),m=i.useCallback((()=>{null!==d&&window.setTimeout((()=>{bd(d)}),300)}),[d]);i.useEffect((()=>(f(m),()=>{h(m)})),[f,h,m]);const g=i.useCallback((e=>{if(null===e)return;const t=n||function(e){let t="";return e&&/^[\x00-\x7F]*$/.test(e)?t=null===e||void 0===e?void 0:e.toLowerCase().split(/[^\p{L}\p{N}]+/gu).filter(Boolean).join("-"):e&&(t=td().h32(e,43981).toString(16)),t}(e.textContent);p(t);const r=window.location.hash.slice(1);r&&r===t&&b(e)}),[n]),O=l||c,y=(0,ud.jsx)(fd,{elementId:u,help:r,hideAnchor:o||O}),M=O?{}:{ref:g,id:u},z=i.createElement(t,{...s,...M},(0,ud.jsxs)(ud.Fragment,{children:[a,y]}));return O?z:(0,ud.jsx)(cd.iV,{"data-testid":"stHeadingWithActionElements",children:z})},md=e=>{let{node:t,children:n,...r}=e;const o=r["data-anchor"];return(0,ud.jsx)(hd,{tag:t.tagName,anchor:o,tagProps:r,children:n})},gd=e=>{let{inline:t,className:n,children:r,...o}=e;const i=/language-(\w+)/.exec(n||""),a=String(r).trim().replace(/\n$/,""),s=i&&i[1]||"";return t?(0,ud.jsx)("code",{className:n,...fr()(o,"node"),children:r}):(0,ud.jsx)(nd.default,{language:s,showLineNumbers:!1,children:a})},Od=e=>{let{children:t}=e;return(0,ud.jsx)(cd.IL,{"data-testid":"stMarkdownPre",children:t})};function yd(e){let{allowHTML:t,source:n,overrideComponents:r,isLabel:o,disableLinks:i}=e;const a={pre:Od,code:gd,a:zd,h1:md,h2:md,h3:md,h4:md,h5:md,h6:md,...r||{}},s=(0,p.u)(),{red:l,orange:c,yellow:d,green:b,blue:f,violet:h,purple:m,gray:g}=(0,sd.KQ)(s),{redbg:O,orangebg:y,yellowbg:M,greenbg:z,bluebg:A,violetbg:v,purplebg:w,graybg:S}=(0,sd.iX)(s),x=new Map(Object.entries({red:`color: ${l}`,blue:`color: ${f}`,green:`color: ${b}`,violet:`color: ${h}`,orange:`color: ${c}`,gray:`color: ${g}`,grey:`color: ${g}`,rainbow:`color: transparent; background-clip: text; -webkit-background-clip: text; background-image: linear-gradient(to right,\n ${l}, ${c}, ${d}, ${b}, ${f}, ${h}, ${m});`,"red-background":`background-color: ${O}`,"blue-background":`background-color: ${A}`,"green-background":`background-color: ${z}`,"violet-background":`background-color: ${v}`,"orange-background":`background-color: ${y}`,"gray-background":`background-color: ${S}`,"grey-background":`background-color: ${S}`,"rainbow-background":`background: linear-gradient(to right,\n ${O}, ${y}, ${M}, ${z}, ${A}, ${v}, ${w});`}));const E=[yo,Wu,Qp,io,function(){return e=>{u(e,"textDirective",((e,t,n)=>{const r=String(e.name);if(x.has(r)){const t=e.data||(e.data={}),n=x.get(r);t.hName="span",t.hProperties=t.hProperties||{},t.hProperties.style=n,n&&(/background-color:/.test(n)||/background:/.test(n))&&(t.hProperties.className=(t.hProperties.className||"")+" has-background-color")}else e.type="text",e.value=`:${r}`,e.data={}}))}},function(){return e=>(ku(e,[[/:material_(\w+):/g,function(e,t){return{type:"text",value:e,data:{hName:"span",hProperties:{role:"img",ariaLabel:t+" icon",style:{display:"inline-block",fontFamily:"Material Symbols Rounded",userSelect:"none",verticalAlign:"bottom",fontWeight:"normal",whiteSpace:"nowrap",wordWrap:"normal"}},hChildren:[{type:"text",value:t}]}}}]]),e)}],k=[Mu,...t?[Qo]:[]],q=n.replaceAll(":material/",":material_"),T=["img","table","thead","tbody","tr","th","td","h1","h2","h3","h4","h5","h6","ul","ol","li","input","hr","blockquote",...i?["a"]:[]];return(0,ud.jsx)(id.Z,{children:(0,ud.jsx)(ur,{remarkPlugins:E,rehypePlugins:k,components:a,transformLinkUri:dd,disallowedElements:o?T:[],unwrapDisallowed:!0,children:q})})}class Md extends i.PureComponent{constructor(){super(...arguments),this.context=void 0,this.componentDidCatch=()=>{const{source:e}=this.props;throw Object.assign(new Error,{name:"Error parsing Markdown or HTML in this string",message:(0,ud.jsx)("p",{children:e}),stack:null})}}render(){const{source:e,allowHTML:t,style:n,isCaption:r,isLabel:o,boldLabel:i,largerLabel:a,disableLinks:s,isToast:l}=this.props,c=this.context;return(0,ud.jsx)(cd.r$,{isCaption:Boolean(r),isInSidebar:c,isLabel:o,boldLabel:i,largerLabel:a,isToast:l,style:n,"data-testid":r?"stCaptionContainer":"stMarkdownContainer",children:(0,ud.jsx)(yd,{source:e,allowHTML:t,isLabel:o,disableLinks:s})})}}function zd(e){const{href:t}=e;if(t&&t.startsWith("#")){const{children:t,...n}=e;return(0,ud.jsx)("a",{...fr()(n,"node"),children:t})}const{title:n,children:r,target:o,rel:i,...a}=e;return(0,ud.jsx)("a",{href:t,title:n,target:o||"_blank",rel:i||"noopener noreferrer",...fr()(a,"node"),children:r})}Md.contextType=od.Z;const Ad=Md},97218:(e,t,n)=>{"use strict";n.d(t,{Cv:()=>s,IL:()=>p,IW:()=>u,O7:()=>c,iV:()=>l,r$:()=>a});var r=n(83405);function o(e){return e.replace(/rem$/,"em")}function i(e){return{a:{color:e.colors.linkText}}}const a=(0,r.Z)("div",{target:"e1nzilvr5"})((e=>{let{theme:t,isCaption:n,isInSidebar:r,isLabel:a,boldLabel:s,largerLabel:l,isToast:c}=e;const u=a&&!l||c;return{fontFamily:t.genericFonts.bodyFont,marginBottom:a?"":`-${t.spacing.lg}`,...i(t),p:{wordBreak:"break-word",marginBottom:a?t.spacing.none:"",fontWeight:s?t.fontWeights.bold:"",...u?{fontSize:t.fontSizes.sm}:{}},img:{maxWidth:"100%"},li:{margin:"0.2em 0 0.2em 1.2em",padding:"0 0 0 0.6em",fontSize:t.fontSizes.md},table:{marginBottom:t.spacing.lg},tr:{borderTop:`${t.sizes.borderWidth} solid ${t.colors.borderColor}`},"th, td":{padding:"6px 13px",border:`${t.sizes.borderWidth} solid ${t.colors.borderColor}`},"span.has-background-color":{padding:`${t.spacing.threeXS} ${t.spacing.twoXS}`,margin:t.spacing.none,borderRadius:t.radii.md},...c?{div:{display:"inline-flex"}}:{},...n?{color:r?t.colors.gray:t.colors.fadedText60,fontSize:t.fontSizes.sm,"p, ol, ul, dl, li":{fontSize:"inherit"},"h1, h2, h3, h4, h5, h6":{color:"inherit"},h1:{fontSize:o(r?t.fontSizes.xl:t.fontSizes.threeXL)},h2:{fontSize:o(r?t.fontSizes.lg:t.fontSizes.twoXL)},h3:{fontSize:o(r?t.fontSizes.mdLg:t.fontSizes.lg)},"h4, h5, h6":{fontSize:o(t.fontSizes.md)}}:{}}}),""),s=(0,r.Z)("a",{target:"e1nzilvr4"})((e=>{let{theme:t}=e;return{lineHeight:0,display:"inline-flex",alignItems:"center",justifyContent:"center",svg:{stroke:t.colors.fadedText60,strokeWidth:2.25},"&:hover svg":{stroke:t.colors.bodyText}}}),""),l=(0,r.Z)("div",{target:"e1nzilvr3"})((e=>{let{theme:t}=e;return{"h1, h2, h3, h4, h5, h6, span":{scrollMarginTop:t.sizes.headerHeight},...i(t),wordBreak:"break-word",textWrap:"pretty",[s]:{visibility:"hidden"},"&:hover":{[s]:{visibility:"visible"}}}}),""),c=(0,r.Z)("span",{target:"e1nzilvr2"})((e=>{let{theme:t}=e;return{marginLeft:t.spacing.sm,display:"inline-flex",gap:t.spacing.sm,verticalAlign:"middle","& > *":{marginLeft:"0 !important"}}}),""),u=(0,r.Z)("hr",{target:"e1nzilvr1"})((e=>{let{theme:t,rainbow:n,color:r}=e;return{height:"2px !important",marginTop:t.spacing.sm,marginBottom:t.spacing.none,border:"none",borderRadius:"3px",...n?{background:r}:{backgroundColor:r}}}),""),p=(0,r.Z)("div",{target:"e1nzilvr0"})((e=>{let{theme:t}=e;return{marginBottom:t.spacing.lg}}),"")},89976:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var r=n(83405);let o=function(e){return e.DANGER="danger",e}({});const i=(0,r.Z)("small",{target:"e1bju1570"})((e=>{let{kind:t,theme:n}=e;const{danger:r,fadedText60:i}=n.colors;return{color:t===o.DANGER?r:i,fontSize:n.fontSizes.sm,lineHeight:n.lineHeights.tight}}),"")},62606:(e,t,n)=>{"use strict";n.d(t,{u:()=>H,Z:()=>X});var r=n(30969),o=n(3077),i=n(9306),a=n(6846);const s={accessibilityType:a.SI.tooltip,focusLock:!1,autoFocus:!1,returnFocus:!1,onMouseEnterDelay:200,onMouseLeaveDelay:200,overrides:{},placement:a.r4.auto,popoverMargin:0,showArrow:!1,triggerType:a.gu.hover,renderAll:!1};function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function D(e){var t=e.children,n=j(e,L);return r.createElement(m,n,(function(e){return r.createElement(P,e,t)}))}D.defaultProps=m.defaultProps;const B=D;var F=n(36599),V=n(83971),U=n(37574);let H=function(e){return e.AUTO="auto",e.TOP_LEFT="topLeft",e.TOP="top",e.TOP_RIGHT="topRight",e.RIGHT_TOP="rightTop",e.RIGHT="right",e.RIGHT_BOTTOM="rightBottom",e.BOTTOM_RIGHT="bottomRight",e.BOTTOM="bottom",e.BOTTOM_LEFT="bottomLeft",e.LEFT_BOTTOM="leftBottom",e.LEFT="left",e.LEFT_TOP="leftTop",e}({});const X=function(e){let{content:t,placement:n,children:r,inline:i,style:s,onMouseEnterDelay:l}=e;const c=(0,o.u)(),{colors:u,fontSizes:p,radii:d}=c;return(0,U.jsx)(B,{content:t?(0,U.jsx)(V.Uo,{className:"stTooltipContent","data-testid":"stTooltipContent",children:t}):null,placement:a.r4[n],accessibilityType:a.SI.tooltip,showArrow:!1,popoverMargin:10,onMouseEnterDelay:l,overrides:{Body:{style:{borderTopLeftRadius:d.default,borderTopRightRadius:d.default,borderBottomLeftRadius:d.default,borderBottomRightRadius:d.default,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",backgroundColor:"transparent"}},Inner:{style:{backgroundColor:(0,F.Iy)(c)?u.bgColor:u.secondaryBg,color:u.bodyText,fontSize:p.sm,fontWeight:"normal",paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"}}},children:(0,U.jsx)("div",{style:{display:"flex",flexDirection:"row",justifyContent:i?"flex-end":"",...s},"data-testid":"stTooltipHoverTarget",className:"stTooltipHoverTarget",children:r})})}},83971:(e,t,n)=>{"use strict";n.d(t,{$k:()=>a,SD:()=>i,Uo:()=>s});var r=n(83405),o=n(41045);const i=(0,r.Z)("div",{target:"e1gc5fo22"})({name:"87mhkc",styles:"display:table;table-layout:fixed;width:100%"}),a=(0,r.Z)("div",{target:"e1gc5fo21"})({name:"sy3zga",styles:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:table-cell"}),s=(0,r.Z)("div",{target:"e1gc5fo20"})((e=>{let{theme:t}=e;return{boxSizing:"border-box",fontSize:`${t.fontSizes.sm}`,maxWidth:`calc(${t.sizes.contentMaxWidth} - 4rem)`,maxHeight:"300px",overflow:["auto","overlay"],padding:`${t.spacing.xs} ${t.spacing.md}`,[`@media (max-width: ${t.breakpoints.sm})`]:{maxWidth:`calc(100% - ${t.spacing.threeXL})`},img:{maxWidth:"100%"},code:{background:(0,o.DZ)(t.colors.darkenedBgMix100,.8)},"*":{fontSize:`${t.fontSizes.sm} !important`}}}),"")},63705:(e,t,n)=>{"use strict";n.d(t,{w:()=>m,Z:()=>g});var r=n(30969),o=n(24974),i=n.n(o);function a(){return a=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=(0,r.forwardRef)((function(e,t){var n=e.color,o=void 0===n?"currentColor":n,i=e.size,l=void 0===i?24:i,c=s(e,["color","size"]);return r.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 24 24",fill:"none",stroke:o,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},c),r.createElement("circle",{cx:"12",cy:"12",r:"10"}),r.createElement("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),r.createElement("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"}))}));l.propTypes={color:i().string,size:i().oneOfType([i().string,i().number])},l.displayName="HelpCircle";const c=l;var u=n(3077),p=n(62606),d=n(21434),b=n(81151),f=n(37574);function h(e){let{placement:t=p.u.AUTO,iconSize:n="16",isLatex:r=!1,content:o,children:i,markdownProps:a,onMouseEnterDelay:s}=e;const l=(0,u.u)();return(0,f.jsx)(b.Ib,{className:"stTooltipIcon","data-testid":"stTooltipIcon",isLatex:r,children:(0,f.jsx)(p.Z,{content:(0,f.jsx)(d.ZP,{style:{fontSize:l.fontSizes.sm},source:o,allowHTML:!1,...a||{}}),placement:t,onMouseEnterDelay:s,inline:!0,children:i||(0,f.jsx)(c,{className:"icon",size:n})})})}const m=e=>{let{placement:t=p.u.TOP_RIGHT,iconSize:n="16",isLatex:r=!1,content:o,children:i,markdownProps:a}=e;return(0,f.jsx)(b.PG,{children:(0,f.jsx)(h,{placement:t,iconSize:n,isLatex:r,content:o,markdownProps:a,children:i})})},g=h},81151:(e,t,n)=>{"use strict";n.d(t,{Ib:()=>o,KH:()=>i,PG:()=>a});var r=n(83405);const o=(0,r.Z)("div",{target:"ewgb6652"})((e=>{let{isLatex:t,theme:n}=e;return{display:"flex",alignItems:"center",marginTop:t?n.spacing.mdPx:"0","& .stTooltipHoverTarget > svg":{stroke:n.colors.fadedText60,strokeWidth:2.25}}}),""),i=(0,r.Z)("div",{target:"ewgb6651"})((()=>({display:"flex",visibility:"visible",verticalAlign:"middle",flexDirection:"row",alignItems:"center"})),""),a=(0,r.Z)("label",{target:"ewgb6650"})((e=>{let{theme:t}=e;return{marginLeft:t.spacing.xs,position:"relative",display:"flex",flexDirection:"row"}}),"")},85668:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});n(30969);var r=n(98170),o=n(21434),i=n(3146),a=n(37574);function s(e){let{label:t,children:n,disabled:s,labelVisibility:l,htmlFor:c}=e;return(0,r.le)(t)?(0,a.jsx)(a.Fragment,{}):(0,a.jsxs)(i.y8,{"data-testid":"stWidgetLabel","aria-hidden":"true",disabled:s,labelVisibility:l,htmlFor:c,children:[(0,a.jsx)(o.ZP,{source:t,allowHTML:!1,isLabel:!0}),n]})}},3146:(e,t,n)=>{"use strict";n.d(t,{Hp:()=>l,X7:()=>s,dT:()=>a,y8:()=>i});var r=n(83405),o=n(98170);const i=(0,r.Z)("label",{target:"e1y5xkzn3"})((e=>{let{disabled:t,labelVisibility:n,theme:r}=e;return{fontSize:r.fontSizes.sm,color:t?r.colors.fadedText40:r.colors.bodyText,display:n===o.Ws.Collapsed?"none":"flex",visibility:n===o.Ws.Hidden?"hidden":"visible",marginBottom:r.spacing.twoXS,height:"auto",minHeight:r.fontSizes.xl,verticalAlign:"middle",flexDirection:"row",alignItems:"center"}}),""),a=(0,r.Z)("div",{target:"e1y5xkzn2"})((()=>({display:"flex",flexDirection:"row",justifyContent:"flex-end",flex:1})),""),s=(0,r.Z)("div",{target:"e1y5xkzn1"})((e=>{let{theme:t}=e;return{fontSize:t.fontSizes.twoSm,color:t.colors.fadedText60,margin:t.spacing.none,textAlign:"right",position:"absolute",bottom:0,right:t.spacing.halfSmFont}}),""),l=(0,r.Z)("label",{target:"e1y5xkzn0"})((e=>{let{theme:t}=e;return{marginLeft:t.spacing.xs,position:"relative",display:"flex",flexDirection:"row"}}),"")},52857:(e,t,n)=>{"use strict";n.d(t,{H:()=>a,P:()=>i});var r=n(83405),o=n(98170);const i=(0,r.Z)("div",{target:"edwcd611"})((e=>{let{width:t,theme:n}=e;return{width:t,display:"flex",alignItems:"center",minHeight:n.sizes.minElementHeight}}),""),a=(0,r.Z)("div",{target:"edwcd610"})((e=>{let{visibility:t}=e;return{display:t===o.Ws.Collapsed?"none":"flex",visibility:t===o.Ws.Hidden?"hidden":"visible",verticalAlign:"middle",flexDirection:"row",alignItems:"center"}}),"")},53950:(e,t,n)=>{"use strict";n.d(t,{GI:()=>Ya,fu:()=>Ja});var r={};n.r(r),n.d(r,{valueToString:()=>b});var o={};n.r(o),n.d(o,{compareArrayLike:()=>ge,joinUint8Arrays:()=>W,memcpy:()=>I,rebaseValueOffsets:()=>me,toArrayBufferView:()=>P,toArrayBufferViewAsyncIterator:()=>ae,toArrayBufferViewIterator:()=>Y,toBigInt64Array:()=>B,toBigUint64Array:()=>H,toFloat32Array:()=>X,toFloat32ArrayAsyncIterator:()=>be,toFloat32ArrayIterator:()=>re,toFloat64Array:()=>G,toFloat64ArrayAsyncIterator:()=>fe,toFloat64ArrayIterator:()=>oe,toInt16Array:()=>j,toInt16ArrayAsyncIterator:()=>le,toInt16ArrayIterator:()=>J,toInt32Array:()=>D,toInt32ArrayAsyncIterator:()=>ce,toInt32ArrayIterator:()=>Q,toInt8Array:()=>L,toInt8ArrayAsyncIterator:()=>se,toInt8ArrayIterator:()=>Z,toUint16Array:()=>V,toUint16ArrayAsyncIterator:()=>pe,toUint16ArrayIterator:()=>te,toUint32Array:()=>U,toUint32ArrayAsyncIterator:()=>de,toUint32ArrayIterator:()=>ne,toUint8Array:()=>F,toUint8ArrayAsyncIterator:()=>ue,toUint8ArrayIterator:()=>ee,toUint8ClampedArray:()=>$,toUint8ClampedArrayAsyncIterator:()=>he,toUint8ClampedArrayIterator:()=>ie});var i={};n.r(i),n.d(i,{BN:()=>Te,bigNumToBigInt:()=>ke,bigNumToNumber:()=>xe,bigNumToString:()=>Ee,isArrowBigNumSymbol:()=>Me});var a={};n.r(a),n.d(a,{float64ToUint16:()=>Pt,uint16ToFloat64:()=>Wt});var s={};n.r(s),n.d(s,{clampRange:()=>Zn,createElementComparator:()=>er,wrapIndex:()=>Jn});var l={};n.r(l),n.d(l,{BitIterator:()=>gr,getBit:()=>br,getBool:()=>dr,packBools:()=>mr,popcnt_array:()=>yr,popcnt_bit_range:()=>Or,popcnt_uint32:()=>Mr,setBool:()=>fr,truncateBitmap:()=>hr});var c,u,p={};n.r(p),n.d(p,{BaseInt64:()=>Jo,Int128:()=>ti,Int64:()=>ei,Uint64:()=>Qo}),function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.Float=3]="Float",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct=13]="Struct",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Duration=18]="Duration",e[e.LargeBinary=19]="LargeBinary",e[e.LargeUtf8=20]="LargeUtf8",e[e.Dictionary=-1]="Dictionary",e[e.Int8=-2]="Int8",e[e.Int16=-3]="Int16",e[e.Int32=-4]="Int32",e[e.Int64=-5]="Int64",e[e.Uint8=-6]="Uint8",e[e.Uint16=-7]="Uint16",e[e.Uint32=-8]="Uint32",e[e.Uint64=-9]="Uint64",e[e.Float16=-10]="Float16",e[e.Float32=-11]="Float32",e[e.Float64=-12]="Float64",e[e.DateDay=-13]="DateDay",e[e.DateMillisecond=-14]="DateMillisecond",e[e.TimestampSecond=-15]="TimestampSecond",e[e.TimestampMillisecond=-16]="TimestampMillisecond",e[e.TimestampMicrosecond=-17]="TimestampMicrosecond",e[e.TimestampNanosecond=-18]="TimestampNanosecond",e[e.TimeSecond=-19]="TimeSecond",e[e.TimeMillisecond=-20]="TimeMillisecond",e[e.TimeMicrosecond=-21]="TimeMicrosecond",e[e.TimeNanosecond=-22]="TimeNanosecond",e[e.DenseUnion=-23]="DenseUnion",e[e.SparseUnion=-24]="SparseUnion",e[e.IntervalDayTime=-25]="IntervalDayTime",e[e.IntervalYearMonth=-26]="IntervalYearMonth",e[e.DurationSecond=-27]="DurationSecond",e[e.DurationMillisecond=-28]="DurationMillisecond",e[e.DurationMicrosecond=-29]="DurationMicrosecond",e[e.DurationNanosecond=-30]="DurationNanosecond"}(c||(c={})),function(e){e[e.OFFSET=0]="OFFSET",e[e.DATA=1]="DATA",e[e.VALIDITY=2]="VALIDITY",e[e.TYPE=3]="TYPE"}(u||(u={}));const d=void 0;function b(e){if(null===e)return"null";if(e===d)return"undefined";switch(typeof e){case"number":case"bigint":return`${e}`;case"string":return`"${e}"`}return"function"===typeof e[Symbol.toPrimitive]?e[Symbol.toPrimitive]("string"):ArrayBuffer.isView(e)?e instanceof BigInt64Array||e instanceof BigUint64Array?`[${[...e].map((e=>b(e)))}]`:`[${e}]`:ArrayBuffer.isView(e)?`[${e}]`:JSON.stringify(e,((e,t)=>"bigint"===typeof t?`${t}`:t))}var f=n(57469);const h=new TextDecoder("utf-8"),m=e=>h.decode(e),g=new TextEncoder,O=e=>g.encode(e),y=e=>"number"===typeof e,M=e=>"boolean"===typeof e,z=e=>"function"===typeof e,A=e=>null!=e&&Object(e)===e,v=e=>A(e)&&z(e.then),w=e=>A(e)&&z(e[Symbol.iterator]),S=e=>A(e)&&z(e[Symbol.asyncIterator]),x=e=>A(e)&&A(e.schema),E=e=>A(e)&&"done"in e&&"value"in e,k=e=>A(e)&&z(e.stat)&&y(e.fd),q=e=>A(e)&&_(e.body),T=e=>"_getDOMStream"in e&&"_getNodeStream"in e,_=e=>A(e)&&z(e.cancel)&&z(e.getReader)&&!T(e),R=e=>A(e)&&z(e.read)&&z(e.pipe)&&M(e.readable)&&!T(e),C=e=>A(e)&&z(e.clear)&&z(e.bytes)&&z(e.position)&&z(e.setPosition)&&z(e.capacity)&&z(e.getBufferIdentifier)&&z(e.createLong),N="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:ArrayBuffer;function I(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.byteLength;const o=e.byteLength,i=new Uint8Array(e.buffer,e.byteOffset,o),a=new Uint8Array(t.buffer,t.byteOffset,Math.min(r,o));return i.set(a,n),e}function W(e,t){const n=function(e){const t=e[0]?[e[0]]:[];let n,r,o,i;for(let a,s,l=0,c=0,u=e.length;++le+t.byteLength),0);let o,i,a,s=0,l=-1;const c=Math.min(t||Number.POSITIVE_INFINITY,r);for(const u=n.length;++lP(Int8Array,e),j=e=>P(Int16Array,e),D=e=>P(Int32Array,e),B=e=>P(BigInt64Array,e),F=e=>P(Uint8Array,e),V=e=>P(Uint16Array,e),U=e=>P(Uint32Array,e),H=e=>P(BigUint64Array,e),X=e=>P(Float32Array,e),G=e=>P(Float64Array,e),$=e=>P(Uint8ClampedArray,e),K=e=>(e.next(),e);function*Y(e,t){const n=function*(e){yield e},r="string"===typeof t||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof N?n(t):w(t)?t:n(t);return yield*K(function*(t){let n=null;do{n=t.next(yield P(e,n))}while(!n.done)}(r[Symbol.iterator]())),new e}const Z=e=>Y(Int8Array,e),J=e=>Y(Int16Array,e),Q=e=>Y(Int32Array,e),ee=e=>Y(Uint8Array,e),te=e=>Y(Uint16Array,e),ne=e=>Y(Uint32Array,e),re=e=>Y(Float32Array,e),oe=e=>Y(Float64Array,e),ie=e=>Y(Uint8ClampedArray,e);function ae(e,t){return(0,f.FC)(this,arguments,(function*(){if(v(t))return yield(0,f.qq)(yield(0,f.qq)(yield*(0,f.V2)((0,f.KL)(ae(e,yield(0,f.qq)(t))))));const n=function(e){return(0,f.FC)(this,arguments,(function*(){yield yield(0,f.qq)(yield(0,f.qq)(e))}))},r="string"===typeof t||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof N?n(t):w(t)?function(e){return(0,f.FC)(this,arguments,(function*(){yield(0,f.qq)(yield*(0,f.V2)((0,f.KL)(K(function*(e){let t=null;do{t=e.next(yield null===t||void 0===t?void 0:t.value)}while(!t.done)}(e[Symbol.iterator]())))))}))}(t):S(t)?t:n(t);return yield(0,f.qq)(yield*(0,f.V2)((0,f.KL)(K(function(t){return(0,f.FC)(this,arguments,(function*(){let n=null;do{n=yield(0,f.qq)(t.next(yield yield(0,f.qq)(P(e,n))))}while(!n.done)}))}(r[Symbol.asyncIterator]()))))),yield(0,f.qq)(new e)}))}const se=e=>ae(Int8Array,e),le=e=>ae(Int16Array,e),ce=e=>ae(Int32Array,e),ue=e=>ae(Uint8Array,e),pe=e=>ae(Uint16Array,e),de=e=>ae(Uint32Array,e),be=e=>ae(Float32Array,e),fe=e=>ae(Float64Array,e),he=e=>ae(Uint8ClampedArray,e);function me(e,t,n){if(0!==e)for(let r=-1,o=(n=n.slice(0,t)).length;++r0)do{if(e[n]!==t[n])return!1}while(++nNumber.MAX_SAFE_INTEGER))throw new TypeError(`${e} is not safe to convert to a number.`);return Number(e)}function ye(e,t){return Oe(e/t)+Oe(e%t)/Oe(t)}const Me=Symbol.for("isArrowBigNum");function ze(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:"default"){case"number":return xe(this);case"string":return Ee(this);case"default":return ke(this)}return Ee(this)},Object.setPrototypeOf(Ae.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(ve.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(we.prototype,Object.create(Uint32Array.prototype)),Object.assign(Ae.prototype,ze.prototype,{constructor:Ae,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(ve.prototype,ze.prototype,{constructor:ve,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(we.prototype,ze.prototype,{constructor:we,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});const Se=BigInt(4294967296)*BigInt(4294967296)-BigInt(1);function xe(e,t){const{buffer:n,byteOffset:r,byteLength:o,signed:i}=e,a=new BigUint64Array(n,r,o/8),s=i&&a.at(-1)&BigInt(1)<=0)return qe(e);t=t.slice();let n=1;for(let r=0;re[Symbol.toStringTag]="Null")(at.prototype);class st extends it{constructor(e,t){super(c.Int),this.isSigned=e,this.bitWidth=t}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}Le=Symbol.toStringTag,st[Le]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]="Int"))(st.prototype);class lt extends st{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(class extends st{constructor(){super(!0,8)}get ArrayType(){return Int8Array}}.prototype,"ArrayType",{value:Int8Array}),Object.defineProperty(class extends st{constructor(){super(!0,16)}get ArrayType(){return Int16Array}}.prototype,"ArrayType",{value:Int16Array}),Object.defineProperty(lt.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(class extends st{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}}.prototype,"ArrayType",{value:BigInt64Array}),Object.defineProperty(class extends st{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}}.prototype,"ArrayType",{value:Uint8Array}),Object.defineProperty(class extends st{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}}.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(class extends st{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}}.prototype,"ArrayType",{value:Uint32Array}),Object.defineProperty(class extends st{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}}.prototype,"ArrayType",{value:BigUint64Array});class ct extends it{constructor(e){super(c.Float),this.precision=e}get ArrayType(){switch(this.precision){case _e.HALF:return Uint16Array;case _e.SINGLE:return Float32Array;case _e.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}je=Symbol.toStringTag,ct[je]=(e=>(e.precision=null,e[Symbol.toStringTag]="Float"))(ct.prototype);Object.defineProperty(class extends ct{constructor(){super(_e.HALF)}}.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(class extends ct{constructor(){super(_e.SINGLE)}}.prototype,"ArrayType",{value:Float32Array}),Object.defineProperty(class extends ct{constructor(){super(_e.DOUBLE)}}.prototype,"ArrayType",{value:Float64Array});class ut extends it{constructor(){super(c.Binary)}toString(){return"Binary"}}De=Symbol.toStringTag,ut[De]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Binary"))(ut.prototype);class pt extends it{constructor(){super(c.LargeBinary)}toString(){return"LargeBinary"}}Be=Symbol.toStringTag,pt[Be]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]="LargeBinary"))(pt.prototype);class dt extends it{constructor(){super(c.Utf8)}toString(){return"Utf8"}}Fe=Symbol.toStringTag,dt[Fe]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Utf8"))(dt.prototype);class bt extends it{constructor(){super(c.LargeUtf8)}toString(){return"LargeUtf8"}}Ve=Symbol.toStringTag,bt[Ve]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]="LargeUtf8"))(bt.prototype);class ft extends it{constructor(){super(c.Bool)}toString(){return"Bool"}}Ue=Symbol.toStringTag,ft[Ue]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Bool"))(ft.prototype);class ht extends it{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;super(c.Decimal),this.scale=e,this.precision=t,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}He=Symbol.toStringTag,ht[He]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]="Decimal"))(ht.prototype);class mt extends it{constructor(e){super(c.Date),this.unit=e}toString(){return`Date${32*(this.unit+1)}<${Ce[this.unit]}>`}get ArrayType(){return this.unit===Ce.DAY?Int32Array:BigInt64Array}}Xe=Symbol.toStringTag,mt[Xe]=(e=>(e.unit=null,e[Symbol.toStringTag]="Date"))(mt.prototype);class gt extends it{constructor(e,t){super(c.Time),this.unit=e,this.bitWidth=t}toString(){return`Time${this.bitWidth}<${Re[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}Ge=Symbol.toStringTag,gt[Ge]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]="Time"))(gt.prototype);class Ot extends it{constructor(e,t){super(c.Timestamp),this.unit=e,this.timezone=t}toString(){return`Timestamp<${Re[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}$e=Symbol.toStringTag,Ot[$e]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]="Timestamp"))(Ot.prototype);class yt extends it{constructor(e){super(c.Interval),this.unit=e}toString(){return`Interval<${Ne[this.unit]}>`}}Ke=Symbol.toStringTag,yt[Ke]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Interval"))(yt.prototype);class Mt extends it{constructor(e){super(c.Duration),this.unit=e}toString(){return`Duration<${Re[this.unit]}>`}}Ye=Symbol.toStringTag,Mt[Ye]=(e=>(e.unit=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]="Duration"))(Mt.prototype);class zt extends it{constructor(e){super(c.List),this.children=[e]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}Ze=Symbol.toStringTag,zt[Ze]=(e=>(e.children=null,e[Symbol.toStringTag]="List"))(zt.prototype);class At extends it{constructor(e){super(c.Struct),this.children=e}toString(){return`Struct<{${this.children.map((e=>`${e.name}:${e.type}`)).join(", ")}}>`}}Je=Symbol.toStringTag,At[Je]=(e=>(e.children=null,e[Symbol.toStringTag]="Struct"))(At.prototype);class vt extends it{constructor(e,t,n){super(c.Union),this.mode=e,this.children=n,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce(((e,t,n)=>(e[t]=n)&&e||e),Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((e=>`${e.type}`)).join(" | ")}>`}}Qe=Symbol.toStringTag,vt[Qe]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]="Union"))(vt.prototype);class wt extends it{constructor(e){super(c.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}et=Symbol.toStringTag,wt[et]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]="FixedSizeBinary"))(wt.prototype);class St extends it{constructor(e,t){super(c.FixedSizeList),this.listSize=e,this.children=[t]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}tt=Symbol.toStringTag,St[tt]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]="FixedSizeList"))(St.prototype);class xt extends it{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n,r,o;if(super(c.Map),this.children=[e],this.keysSorted=t,e&&(e.name="entries",null===(n=null===e||void 0===e?void 0:e.type)||void 0===n?void 0:n.children)){const t=null===(r=null===e||void 0===e?void 0:e.type)||void 0===r?void 0:r.children[0];t&&(t.name="key");const n=null===(o=null===e||void 0===e?void 0:e.type)||void 0===o?void 0:o.children[1];n&&(n.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((e=>`${e.name}:${e.type}`)).join(", ")}}>`}}nt=Symbol.toStringTag,xt[nt]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]="Map_"))(xt.prototype);const Et=(kt=-1,()=>++kt);var kt;class qt extends it{constructor(e,t,n,r){super(c.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=r||!1,this.id=null==n?Et():Oe(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}function Tt(e){const t=e;switch(e.typeId){case c.Decimal:return e.bitWidth/32;case c.Interval:return 1+t.unit;case c.FixedSizeList:return t.listSize;case c.FixedSizeBinary:return t.byteWidth;default:return 1}}rt=Symbol.toStringTag,qt[rt]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]="Dictionary"))(qt.prototype);class _t{visitMany(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rthis.visit(e,...n.map((e=>e[t])))))}visit(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2])||arguments[2];if("number"===typeof t)return Rt(e,t,n);if("string"===typeof t&&t in c)return Rt(e,c[t],n);if(t&&t instanceof it)return Rt(e,Ct(t),n);if((null===t||void 0===t?void 0:t.type)&&t.type instanceof it)return Rt(e,Ct(t.type),n);return Rt(e,c.NONE,n)}(this,e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1])}getVisitFnByTypeId(e){return Rt(this,e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1])}visitNull(e){return null}visitBool(e){return null}visitInt(e){return null}visitFloat(e){return null}visitUtf8(e){return null}visitLargeUtf8(e){return null}visitBinary(e){return null}visitLargeBinary(e){return null}visitFixedSizeBinary(e){return null}visitDate(e){return null}visitTimestamp(e){return null}visitTime(e){return null}visitDecimal(e){return null}visitList(e){return null}visitStruct(e){return null}visitUnion(e){return null}visitDictionary(e){return null}visitInterval(e){return null}visitDuration(e){return null}visitFixedSizeList(e){return null}visitMap(e){return null}}function Rt(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=null;switch(t){case c.Null:r=e.visitNull;break;case c.Bool:r=e.visitBool;break;case c.Int:r=e.visitInt;break;case c.Int8:r=e.visitInt8||e.visitInt;break;case c.Int16:r=e.visitInt16||e.visitInt;break;case c.Int32:r=e.visitInt32||e.visitInt;break;case c.Int64:r=e.visitInt64||e.visitInt;break;case c.Uint8:r=e.visitUint8||e.visitInt;break;case c.Uint16:r=e.visitUint16||e.visitInt;break;case c.Uint32:r=e.visitUint32||e.visitInt;break;case c.Uint64:r=e.visitUint64||e.visitInt;break;case c.Float:r=e.visitFloat;break;case c.Float16:r=e.visitFloat16||e.visitFloat;break;case c.Float32:r=e.visitFloat32||e.visitFloat;break;case c.Float64:r=e.visitFloat64||e.visitFloat;break;case c.Utf8:r=e.visitUtf8;break;case c.LargeUtf8:r=e.visitLargeUtf8;break;case c.Binary:r=e.visitBinary;break;case c.LargeBinary:r=e.visitLargeBinary;break;case c.FixedSizeBinary:r=e.visitFixedSizeBinary;break;case c.Date:r=e.visitDate;break;case c.DateDay:r=e.visitDateDay||e.visitDate;break;case c.DateMillisecond:r=e.visitDateMillisecond||e.visitDate;break;case c.Timestamp:r=e.visitTimestamp;break;case c.TimestampSecond:r=e.visitTimestampSecond||e.visitTimestamp;break;case c.TimestampMillisecond:r=e.visitTimestampMillisecond||e.visitTimestamp;break;case c.TimestampMicrosecond:r=e.visitTimestampMicrosecond||e.visitTimestamp;break;case c.TimestampNanosecond:r=e.visitTimestampNanosecond||e.visitTimestamp;break;case c.Time:r=e.visitTime;break;case c.TimeSecond:r=e.visitTimeSecond||e.visitTime;break;case c.TimeMillisecond:r=e.visitTimeMillisecond||e.visitTime;break;case c.TimeMicrosecond:r=e.visitTimeMicrosecond||e.visitTime;break;case c.TimeNanosecond:r=e.visitTimeNanosecond||e.visitTime;break;case c.Decimal:r=e.visitDecimal;break;case c.List:r=e.visitList;break;case c.Struct:r=e.visitStruct;break;case c.Union:r=e.visitUnion;break;case c.DenseUnion:r=e.visitDenseUnion||e.visitUnion;break;case c.SparseUnion:r=e.visitSparseUnion||e.visitUnion;break;case c.Dictionary:r=e.visitDictionary;break;case c.Interval:r=e.visitInterval;break;case c.IntervalDayTime:r=e.visitIntervalDayTime||e.visitInterval;break;case c.IntervalYearMonth:r=e.visitIntervalYearMonth||e.visitInterval;break;case c.Duration:r=e.visitDuration;break;case c.DurationSecond:r=e.visitDurationSecond||e.visitDuration;break;case c.DurationMillisecond:r=e.visitDurationMillisecond||e.visitDuration;break;case c.DurationMicrosecond:r=e.visitDurationMicrosecond||e.visitDuration;break;case c.DurationNanosecond:r=e.visitDurationNanosecond||e.visitDuration;break;case c.FixedSizeList:r=e.visitFixedSizeList;break;case c.Map:r=e.visitMap}if("function"===typeof r)return r;if(!n)return()=>null;throw new Error(`Unrecognized type '${c[t]}'`)}function Ct(e){switch(e.typeId){case c.Null:return c.Null;case c.Int:{const{bitWidth:t,isSigned:n}=e;switch(t){case 8:return n?c.Int8:c.Uint8;case 16:return n?c.Int16:c.Uint16;case 32:return n?c.Int32:c.Uint32;case 64:return n?c.Int64:c.Uint64}return c.Int}case c.Float:switch(e.precision){case _e.HALF:return c.Float16;case _e.SINGLE:return c.Float32;case _e.DOUBLE:return c.Float64}return c.Float;case c.Binary:return c.Binary;case c.LargeBinary:return c.LargeBinary;case c.Utf8:return c.Utf8;case c.LargeUtf8:return c.LargeUtf8;case c.Bool:return c.Bool;case c.Decimal:return c.Decimal;case c.Time:switch(e.unit){case Re.SECOND:return c.TimeSecond;case Re.MILLISECOND:return c.TimeMillisecond;case Re.MICROSECOND:return c.TimeMicrosecond;case Re.NANOSECOND:return c.TimeNanosecond}return c.Time;case c.Timestamp:switch(e.unit){case Re.SECOND:return c.TimestampSecond;case Re.MILLISECOND:return c.TimestampMillisecond;case Re.MICROSECOND:return c.TimestampMicrosecond;case Re.NANOSECOND:return c.TimestampNanosecond}return c.Timestamp;case c.Date:switch(e.unit){case Ce.DAY:return c.DateDay;case Ce.MILLISECOND:return c.DateMillisecond}return c.Date;case c.Interval:switch(e.unit){case Ne.DAY_TIME:return c.IntervalDayTime;case Ne.YEAR_MONTH:return c.IntervalYearMonth}return c.Interval;case c.Duration:switch(e.unit){case Re.SECOND:return c.DurationSecond;case Re.MILLISECOND:return c.DurationMillisecond;case Re.MICROSECOND:return c.DurationMicrosecond;case Re.NANOSECOND:return c.DurationNanosecond}return c.Duration;case c.Map:return c.Map;case c.List:return c.List;case c.Struct:return c.Struct;case c.Union:switch(e.mode){case Ie.Dense:return c.DenseUnion;case Ie.Sparse:return c.SparseUnion}return c.Union;case c.FixedSizeBinary:return c.FixedSizeBinary;case c.FixedSizeList:return c.FixedSizeList;case c.Dictionary:return c.Dictionary}throw new Error(`Unrecognized type '${c[e.typeId]}'`)}_t.prototype.visitInt8=null,_t.prototype.visitInt16=null,_t.prototype.visitInt32=null,_t.prototype.visitInt64=null,_t.prototype.visitUint8=null,_t.prototype.visitUint16=null,_t.prototype.visitUint32=null,_t.prototype.visitUint64=null,_t.prototype.visitFloat16=null,_t.prototype.visitFloat32=null,_t.prototype.visitFloat64=null,_t.prototype.visitDateDay=null,_t.prototype.visitDateMillisecond=null,_t.prototype.visitTimestampSecond=null,_t.prototype.visitTimestampMillisecond=null,_t.prototype.visitTimestampMicrosecond=null,_t.prototype.visitTimestampNanosecond=null,_t.prototype.visitTimeSecond=null,_t.prototype.visitTimeMillisecond=null,_t.prototype.visitTimeMicrosecond=null,_t.prototype.visitTimeNanosecond=null,_t.prototype.visitDenseUnion=null,_t.prototype.visitSparseUnion=null,_t.prototype.visitIntervalDayTime=null,_t.prototype.visitIntervalYearMonth=null,_t.prototype.visitDuration=null,_t.prototype.visitDurationSecond=null,_t.prototype.visitDurationMillisecond=null,_t.prototype.visitDurationMicrosecond=null,_t.prototype.visitDurationNanosecond=null;const Nt=new Float64Array(1),It=new Uint32Array(Nt.buffer);function Wt(e){const t=(31744&e)>>10,n=(1023&e)/1024,r=Math.pow(-1,(32768&e)>>15);switch(t){case 31:return r*(n?Number.NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*Math.pow(2,t-15)*(1+n)}function Pt(e){if(e!==e)return 32256;Nt[0]=e;const t=(2147483648&It[1])>>16&65535;let n=2146435072&It[1],r=0;return n>=1089470464?It[0]>0?n=31744:(n=(2080374784&n)>>16,r=(1048575&It[1])>>10):n<=1056964608?(r=1048576+(1048575&It[1]),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=512+(1048575&It[1])>>10),t|n|65535&r}class Lt extends _t{}function jt(e){return(t,n,r)=>{if(t.setValid(n,null!=r))return e(t,n,r)}}const Dt=(e,t,n,r)=>{if(n+1{let{values:r}=e;r[t]=n},Ft=(e,t,n)=>{let{values:r}=e;r[t]=n},Vt=(e,t,n)=>{let{values:r}=e;r[t]=Pt(n)},Ut=(e,t,n)=>{let{values:r}=e;((e,t,n)=>{e[t]=Math.floor(n/864e5)})(r,t,n.valueOf())},Ht=(e,t,n)=>{let{values:r}=e;r[t]=BigInt(n)},Xt=(e,t,n)=>{let{values:r,valueOffsets:o}=e;return Dt(r,o,t,n)},Gt=(e,t,n)=>{let{values:r,valueOffsets:o}=e;return Dt(r,o,t,O(n))},$t=(e,t,n)=>{let{values:r}=e;r[t]=BigInt(n/1e3)},Kt=(e,t,n)=>{let{values:r}=e;r[t]=BigInt(n)},Yt=(e,t,n)=>{let{values:r}=e;r[t]=BigInt(1e3*n)},Zt=(e,t,n)=>{let{values:r}=e;r[t]=BigInt(1e6*n)},Jt=(e,t,n)=>{let{values:r}=e;r[t]=n},Qt=(e,t,n)=>{let{values:r}=e;r[t]=n},en=(e,t,n)=>{let{values:r}=e;r[t]=n},tn=(e,t,n)=>{let{values:r}=e;r[t]=n},nn=(e,t,n)=>{const r=e.type.typeIdToChildIndex[e.typeIds[t]],o=e.children[r];pn.visit(o,e.valueOffsets[t],n)},rn=(e,t,n)=>{const r=e.type.typeIdToChildIndex[e.typeIds[t]],o=e.children[r];pn.visit(o,t,n)},on=(e,t,n)=>{let{values:r}=e;r.set(n.subarray(0,2),2*t)},an=(e,t,n)=>{let{values:r}=e;r[t]=12*n[0]+n[1]%12},sn=(e,t,n)=>{let{values:r}=e;r[t]=n},ln=(e,t,n)=>{let{values:r}=e;r[t]=n},cn=(e,t,n)=>{let{values:r}=e;r[t]=n},un=(e,t,n)=>{let{values:r}=e;r[t]=n};Lt.prototype.visitBool=jt(((e,t,n)=>{let{offset:r,values:o}=e;const i=r+t;n?o[i>>3]|=1<>3]&=~(1<{switch(e.type.precision){case _e.HALF:return Vt(e,t,n);case _e.SINGLE:case _e.DOUBLE:return Ft(e,t,n)}})),Lt.prototype.visitFloat16=jt(Vt),Lt.prototype.visitFloat32=jt(Ft),Lt.prototype.visitFloat64=jt(Ft),Lt.prototype.visitUtf8=jt(Gt),Lt.prototype.visitLargeUtf8=jt(Gt),Lt.prototype.visitBinary=jt(Xt),Lt.prototype.visitLargeBinary=jt(Xt),Lt.prototype.visitFixedSizeBinary=jt(((e,t,n)=>{let{stride:r,values:o}=e;o.set(n.subarray(0,r),r*t)})),Lt.prototype.visitDate=jt(((e,t,n)=>{e.type.unit===Ce.DAY?Ut(e,t,n):Ht(e,t,n)})),Lt.prototype.visitDateDay=jt(Ut),Lt.prototype.visitDateMillisecond=jt(Ht),Lt.prototype.visitTimestamp=jt(((e,t,n)=>{switch(e.type.unit){case Re.SECOND:return $t(e,t,n);case Re.MILLISECOND:return Kt(e,t,n);case Re.MICROSECOND:return Yt(e,t,n);case Re.NANOSECOND:return Zt(e,t,n)}})),Lt.prototype.visitTimestampSecond=jt($t),Lt.prototype.visitTimestampMillisecond=jt(Kt),Lt.prototype.visitTimestampMicrosecond=jt(Yt),Lt.prototype.visitTimestampNanosecond=jt(Zt),Lt.prototype.visitTime=jt(((e,t,n)=>{switch(e.type.unit){case Re.SECOND:return Jt(e,t,n);case Re.MILLISECOND:return Qt(e,t,n);case Re.MICROSECOND:return en(e,t,n);case Re.NANOSECOND:return tn(e,t,n)}})),Lt.prototype.visitTimeSecond=jt(Jt),Lt.prototype.visitTimeMillisecond=jt(Qt),Lt.prototype.visitTimeMicrosecond=jt(en),Lt.prototype.visitTimeNanosecond=jt(tn),Lt.prototype.visitDecimal=jt(((e,t,n)=>{let{values:r,stride:o}=e;r.set(n.subarray(0,o),o*t)})),Lt.prototype.visitList=jt(((e,t,n)=>{const r=e.children[0],o=e.valueOffsets,i=pn.getVisitFn(r);if(Array.isArray(n))for(let a=-1,s=o[t],l=o[t+1];s{const r=e.type.children.map((e=>pn.getVisitFn(e.type))),o=n instanceof Map?(i=t,a=n,(e,t,n,r)=>t&&e(t,i,a.get(n.name))):n instanceof Rr?((e,t)=>(n,r,o,i)=>r&&n(r,e,t.get(i)))(t,n):Array.isArray(n)?((e,t)=>(n,r,o,i)=>r&&n(r,e,t[i]))(t,n):((e,t)=>(n,r,o,i)=>r&&n(r,e,t[o.name]))(t,n);var i,a;e.type.children.forEach(((t,n)=>o(r[n],e.children[n],t,n)))})),Lt.prototype.visitUnion=jt(((e,t,n)=>{e.type.mode===Ie.Dense?nn(e,t,n):rn(e,t,n)})),Lt.prototype.visitDenseUnion=jt(nn),Lt.prototype.visitSparseUnion=jt(rn),Lt.prototype.visitDictionary=jt(((e,t,n)=>{var r;null===(r=e.dictionary)||void 0===r||r.set(e.values[t],n)})),Lt.prototype.visitInterval=jt(((e,t,n)=>{e.type.unit===Ne.DAY_TIME?on(e,t,n):an(e,t,n)})),Lt.prototype.visitIntervalDayTime=jt(on),Lt.prototype.visitIntervalYearMonth=jt(an),Lt.prototype.visitDuration=jt(((e,t,n)=>{switch(e.type.unit){case Re.SECOND:return sn(e,t,n);case Re.MILLISECOND:return ln(e,t,n);case Re.MICROSECOND:return cn(e,t,n);case Re.NANOSECOND:return un(e,t,n)}})),Lt.prototype.visitDurationSecond=jt(sn),Lt.prototype.visitDurationMillisecond=jt(ln),Lt.prototype.visitDurationMicrosecond=jt(cn),Lt.prototype.visitDurationNanosecond=jt(un),Lt.prototype.visitFixedSizeList=jt(((e,t,n)=>{const{stride:r}=e,o=e.children[0],i=pn.getVisitFn(o);if(Array.isArray(n))for(let a=-1,s=t*r;++a{const r=e.children[0],{valueOffsets:o}=e,i=pn.getVisitFn(r);let{[t]:a,[t+1]:s}=o;const l=n instanceof Map?n.entries():Object.entries(n);for(const c of l)if(i(r,a,c),++a>=s)break}));const pn=new Lt,dn=Symbol.for("parent"),bn=Symbol.for("rowIndex");class fn{constructor(e,t){return this[dn]=e,this[bn]=t,new Proxy(this,new mn)}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[bn],t=this[dn],n=t.type.children,r={};for(let o=-1,i=n.length;++o{let[t,n]=e;return`${b(t)}: ${b(n)}`})).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new hn(this[dn],this[bn])}}class hn{constructor(e,t){this.childIndex=0,this.children=e.children,this.rowIndex=t,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const e=this.childIndex;return ee.name))}has(e,t){return-1!==e[dn].type.children.findIndex((e=>e.name===t))}getOwnPropertyDescriptor(e,t){if(-1!==e[dn].type.children.findIndex((e=>e.name===t)))return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];const n=e[dn].type.children.findIndex((e=>e.name===t));if(-1!==n){const r=Fn.visit(e[dn].children[n],e[bn]);return Reflect.set(e,t,r),r}}set(e,t,n){const r=e[dn].type.children.findIndex((e=>e.name===t));return-1!==r?(pn.visit(e[dn].children[r],e[bn],n),Reflect.set(e,t,n)):!(!Reflect.has(e,t)&&"symbol"!==typeof t)&&Reflect.set(e,t,n)}}class gn extends _t{}function On(e){return(t,n)=>t.getValid(n)?e(t,n):null}const yn=(e,t,n)=>{if(n+1>=t.length)return null;const r=Oe(t[n]),o=Oe(t[n+1]);return e.subarray(r,o)},Mn=(e,t)=>{let{values:n}=e;return((e,t)=>864e5*e[t])(n,t)},zn=(e,t)=>{let{values:n}=e;return Oe(n[t])},An=(e,t)=>{let{stride:n,values:r}=e;return r[n*t]},vn=(e,t)=>{let{values:n}=e;return n[t]},wn=(e,t)=>{let{values:n,valueOffsets:r}=e;return yn(n,r,t)},Sn=(e,t)=>{let{values:n,valueOffsets:r}=e;const o=yn(n,r,t);return null!==o?m(o):null},xn=(e,t)=>{let{values:n}=e;return 1e3*Oe(n[t])},En=(e,t)=>{let{values:n}=e;return Oe(n[t])},kn=(e,t)=>{let{values:n}=e;return ye(n[t],BigInt(1e3))},qn=(e,t)=>{let{values:n}=e;return ye(n[t],BigInt(1e6))},Tn=(e,t)=>{let{values:n}=e;return n[t]},_n=(e,t)=>{let{values:n}=e;return n[t]},Rn=(e,t)=>{let{values:n}=e;return n[t]},Cn=(e,t)=>{let{values:n}=e;return n[t]},Nn=(e,t)=>{const n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return Fn.visit(r,e.valueOffsets[t])},In=(e,t)=>{const n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return Fn.visit(r,t)},Wn=(e,t)=>{let{values:n}=e;return n.subarray(2*t,2*(t+1))},Pn=(e,t)=>{let{values:n}=e;const r=n[t],o=new Int32Array(2);return o[0]=Math.trunc(r/12),o[1]=Math.trunc(r%12),o},Ln=(e,t)=>{let{values:n}=e;return n[t]},jn=(e,t)=>{let{values:n}=e;return n[t]},Dn=(e,t)=>{let{values:n}=e;return n[t]},Bn=(e,t)=>{let{values:n}=e;return n[t]};gn.prototype.visitNull=On(((e,t)=>null)),gn.prototype.visitBool=On(((e,t)=>{let{offset:n,values:r}=e;const o=n+t;return 0!==(r[o>>3]&1<{let{values:n}=e;return n[t]})),gn.prototype.visitInt8=On(An),gn.prototype.visitInt16=On(An),gn.prototype.visitInt32=On(An),gn.prototype.visitInt64=On(vn),gn.prototype.visitUint8=On(An),gn.prototype.visitUint16=On(An),gn.prototype.visitUint32=On(An),gn.prototype.visitUint64=On(vn),gn.prototype.visitFloat=On(((e,t)=>{let{type:n,values:r}=e;return n.precision!==_e.HALF?r[t]:Wt(r[t])})),gn.prototype.visitFloat16=On(((e,t)=>{let{stride:n,values:r}=e;return Wt(r[n*t])})),gn.prototype.visitFloat32=On(An),gn.prototype.visitFloat64=On(An),gn.prototype.visitUtf8=On(Sn),gn.prototype.visitLargeUtf8=On(Sn),gn.prototype.visitBinary=On(wn),gn.prototype.visitLargeBinary=On(wn),gn.prototype.visitFixedSizeBinary=On(((e,t)=>{let{stride:n,values:r}=e;return r.subarray(n*t,n*(t+1))})),gn.prototype.visitDate=On(((e,t)=>e.type.unit===Ce.DAY?Mn(e,t):zn(e,t))),gn.prototype.visitDateDay=On(Mn),gn.prototype.visitDateMillisecond=On(zn),gn.prototype.visitTimestamp=On(((e,t)=>{switch(e.type.unit){case Re.SECOND:return xn(e,t);case Re.MILLISECOND:return En(e,t);case Re.MICROSECOND:return kn(e,t);case Re.NANOSECOND:return qn(e,t)}})),gn.prototype.visitTimestampSecond=On(xn),gn.prototype.visitTimestampMillisecond=On(En),gn.prototype.visitTimestampMicrosecond=On(kn),gn.prototype.visitTimestampNanosecond=On(qn),gn.prototype.visitTime=On(((e,t)=>{switch(e.type.unit){case Re.SECOND:return Tn(e,t);case Re.MILLISECOND:return _n(e,t);case Re.MICROSECOND:return Rn(e,t);case Re.NANOSECOND:return Cn(e,t)}})),gn.prototype.visitTimeSecond=On(Tn),gn.prototype.visitTimeMillisecond=On(_n),gn.prototype.visitTimeMicrosecond=On(Rn),gn.prototype.visitTimeNanosecond=On(Cn),gn.prototype.visitDecimal=On(((e,t)=>{let{values:n,stride:r}=e;return Te.decimal(n.subarray(r*t,r*(t+1)))})),gn.prototype.visitList=On(((e,t)=>{const{valueOffsets:n,stride:r,children:o}=e,{[t*r]:i,[t*r+1]:a}=n,s=o[0].slice(i,a-i);return new Rr([s])})),gn.prototype.visitStruct=On(((e,t)=>new fn(e,t))),gn.prototype.visitUnion=On(((e,t)=>e.type.mode===Ie.Dense?Nn(e,t):In(e,t))),gn.prototype.visitDenseUnion=On(Nn),gn.prototype.visitSparseUnion=On(In),gn.prototype.visitDictionary=On(((e,t)=>{var n;return null===(n=e.dictionary)||void 0===n?void 0:n.get(e.values[t])})),gn.prototype.visitInterval=On(((e,t)=>e.type.unit===Ne.DAY_TIME?Wn(e,t):Pn(e,t))),gn.prototype.visitIntervalDayTime=On(Wn),gn.prototype.visitIntervalYearMonth=On(Pn),gn.prototype.visitDuration=On(((e,t)=>{switch(e.type.unit){case Re.SECOND:return Ln(e,t);case Re.MILLISECOND:return jn(e,t);case Re.MICROSECOND:return Dn(e,t);case Re.NANOSECOND:return Bn(e,t)}})),gn.prototype.visitDurationSecond=On(Ln),gn.prototype.visitDurationMillisecond=On(jn),gn.prototype.visitDurationMicrosecond=On(Dn),gn.prototype.visitDurationNanosecond=On(Bn),gn.prototype.visitFixedSizeList=On(((e,t)=>{const{stride:n,children:r}=e,o=r[0].slice(t*n,n);return new Rr([o])})),gn.prototype.visitMap=On(((e,t)=>{const{valueOffsets:n,children:r}=e,{[t]:o,[t+1]:i}=n,a=r[0];return new Gn(a.slice(o,i-o))}));const Fn=new gn,Vn=Symbol.for("keys"),Un=Symbol.for("vals"),Hn=Symbol.for("kKeysAsStrings"),Xn=Symbol.for("_kKeysAsStrings");class Gn{constructor(e){return this[Vn]=new Rr([e.children[0]]).memoize(),this[Un]=e.children[1],new Proxy(this,new Kn)}get[Hn](){return this[Xn]||(this[Xn]=Array.from(this[Vn].toArray(),String))}[Symbol.iterator](){return new $n(this[Vn],this[Un])}get size(){return this[Vn].length}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[Vn],t=this[Un],n={};for(let r=-1,o=e.length;++r{let[t,n]=e;return`${b(t)}: ${b(n)}`})).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class $n{constructor(e,t){this.keys=e,this.vals=t,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){const e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),Fn.visit(this.vals,e)]})}}class Kn{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[Hn]}has(e,t){return e[Hn].includes(t)}getOwnPropertyDescriptor(e,t){if(-1!==e[Hn].indexOf(t))return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];const n=e[Hn].indexOf(t);if(-1!==n){const r=Fn.visit(Reflect.get(e,Un),n);return Reflect.set(e,t,r),r}}set(e,t,n){const r=e[Hn].indexOf(t);return-1!==r?(pn.visit(Reflect.get(e,Un),r,n),Reflect.set(e,t,n)):!!Reflect.has(e,t)&&Reflect.set(e,t,n)}}let Yn;function Zn(e,t,n,r){const{length:o=0}=e;let i="number"!==typeof t?0:t,a="number"!==typeof n?o:n;return i<0&&(i=(i%o+o)%o),a<0&&(a=(a%o+o)%o),ao&&(a=o),r?r(e,i,a):[i,a]}Object.defineProperties(Gn.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Vn]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Un]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Xn]:{writable:!0,enumerable:!1,configurable:!1,value:null}});const Jn=(e,t)=>e<0?t+e:e,Qn=e=>e!==e;function er(e){if("object"!==typeof e||null===e)return Qn(e)?Qn:t=>t===e;if(e instanceof Date){const t=e.valueOf();return e=>e instanceof Date&&e.valueOf()===t}return ArrayBuffer.isView(e)?t=>!!t&&ge(e,t):e instanceof Map?function(e){let t=-1;const n=[];for(const r of e.values())n[++t]=er(r);return tr(n)}(e):Array.isArray(e)?function(e){const t=[];for(let n=-1,r=e.length;++n1&&void 0!==arguments[1]&&arguments[1];const n=Object.keys(e);if(!t&&0===n.length)return()=>!1;const r=[];for(let o=-1,i=n.length;++o{if(!n||"object"!==typeof n)return!1;switch(n.constructor){case Array:return function(e,t){const n=e.length;if(t.length!==n)return!1;for(let r=-1;++r0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;this.numChunks=e,this.getChunkIterator=t,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndexe+t.nullCount),0)}function ir(e){return e.reduce(((e,t,n)=>(e[n+1]=e[n]+t.length,e)),new Uint32Array(e.length+1))}function ar(e,t,n,r){const o=[];for(let i=-1,a=e.length;++i=r)break;if(n>=s+l)continue;if(s>=n&&s+l<=r){o.push(a);continue}const c=Math.max(0,n-s),u=Math.min(r-s,l);o.push(a.slice(c,u-c))}return 0===o.length&&o.push(e[0].slice(0,0)),o}function sr(e,t,n,r){let o=0,i=0,a=t.length-1;do{if(o>=a-1)return n>r}function fr(e,t,n){return n?!!(e[t>>3]|=1<>3]&=~(1<0||n.byteLength>3):mr(new gr(n,e,t,null,dr)).subarray(0,r)),o}return n}function mr(e){const t=[];let n=0,r=0,o=0;for(const a of e)a&&(o|=1<0)&&(t[n++]=o);const i=new Uint8Array(t.length+7&-8);return i.set(t),i}class gr{constructor(e,t,n,r,o){this.bytes=e,this.length=n,this.context=r,this.get=o,this.bit=t%8,this.byteIndex=t>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index>3<<3,o=t+(t%8===0?0:8-t%8);return Or(e,t,o)+Or(e,r,n)+yr(e,o>>3,r-o>>3)}function yr(e,t,n){let r=0,o=Math.trunc(t);const i=new DataView(e.buffer,e.byteOffset,e.byteLength),a=void 0===n?e.byteLength:o+n;for(;a-o>=4;)r+=Mr(i.getUint32(o)),o+=4;for(;a-o>=2;)r+=Mr(i.getUint16(o)),o+=2;for(;a-o>=1;)r+=Mr(i.getUint8(o)),o+=1;return r}function Mr(e){let t=Math.trunc(e);return t-=t>>>1&1431655765,t=(858993459&t)+(t>>>2&858993459),16843009*(t+(t>>>4)&252645135)>>>24}class zr extends _t{}function Ar(e,t,n){if(void 0===t)return-1;if(null===t)switch(e.typeId){case c.Union:case c.Dictionary:break;default:return function(e,t){const{nullBitmap:n}=e;if(!n||e.nullCount<=0)return-1;let r=0;for(const o of new gr(n,e.offset+(t||0),e.length,n,dr)){if(!o)return r;++r}return-1}(e,n)}const r=Fn.getVisitFn(e),o=er(t);for(let i=(n||0)-1,a=e.length;++i0?0:-1},zr.prototype.visitBool=Ar,zr.prototype.visitInt=Ar,zr.prototype.visitInt8=Ar,zr.prototype.visitInt16=Ar,zr.prototype.visitInt32=Ar,zr.prototype.visitInt64=Ar,zr.prototype.visitUint8=Ar,zr.prototype.visitUint16=Ar,zr.prototype.visitUint32=Ar,zr.prototype.visitUint64=Ar,zr.prototype.visitFloat=Ar,zr.prototype.visitFloat16=Ar,zr.prototype.visitFloat32=Ar,zr.prototype.visitFloat64=Ar,zr.prototype.visitUtf8=Ar,zr.prototype.visitLargeUtf8=Ar,zr.prototype.visitBinary=Ar,zr.prototype.visitLargeBinary=Ar,zr.prototype.visitFixedSizeBinary=Ar,zr.prototype.visitDate=Ar,zr.prototype.visitDateDay=Ar,zr.prototype.visitDateMillisecond=Ar,zr.prototype.visitTimestamp=Ar,zr.prototype.visitTimestampSecond=Ar,zr.prototype.visitTimestampMillisecond=Ar,zr.prototype.visitTimestampMicrosecond=Ar,zr.prototype.visitTimestampNanosecond=Ar,zr.prototype.visitTime=Ar,zr.prototype.visitTimeSecond=Ar,zr.prototype.visitTimeMillisecond=Ar,zr.prototype.visitTimeMicrosecond=Ar,zr.prototype.visitTimeNanosecond=Ar,zr.prototype.visitDecimal=Ar,zr.prototype.visitList=Ar,zr.prototype.visitStruct=Ar,zr.prototype.visitUnion=Ar,zr.prototype.visitDenseUnion=vr,zr.prototype.visitSparseUnion=vr,zr.prototype.visitDictionary=Ar,zr.prototype.visitInterval=Ar,zr.prototype.visitIntervalDayTime=Ar,zr.prototype.visitIntervalYearMonth=Ar,zr.prototype.visitDuration=Ar,zr.prototype.visitDurationSecond=Ar,zr.prototype.visitDurationMillisecond=Ar,zr.prototype.visitDurationMicrosecond=Ar,zr.prototype.visitDurationNanosecond=Ar,zr.prototype.visitFixedSizeList=Ar,zr.prototype.visitMap=Ar;const wr=new zr;class Sr extends _t{}function xr(e){const{type:t}=e;if(0===e.nullCount&&1===e.stride&&(it.isInt(t)&&64!==t.bitWidth||it.isTime(t)&&64!==t.bitWidth||it.isFloat(t)&&t.precision!==_e.HALF))return new rr(e.data.length,(t=>{const n=e.data[t];return n.values.subarray(0,n.length)[Symbol.iterator]()}));let n=0;return new rr(e.data.length,(t=>{const r=e.data[t].length,o=e.slice(n,n+r);return n+=r,new Er(o)}))}class Er{constructor(e){this.vector=e,this.index=0}next(){return this.indexe.data)):e;if(0===o.length||o.some((e=>!(e instanceof Nr))))throw new TypeError("Vector constructor expects an Array of Data instances.");const i=null===(t=o[0])||void 0===t?void 0:t.type;switch(o.length){case 0:this._offsets=[0];break;case 1:{const{get:e,set:t,indexOf:n}=Tr[i.typeId],r=o[0];this.isValid=e=>lr(r,e),this.get=t=>e(r,t),this.set=(e,n)=>t(r,e,n),this.indexOf=e=>n(r,e),this._offsets=[0,r.length];break}default:Object.setPrototypeOf(this,_r[i.typeId]),this._offsets=ir(o)}this.data=o,this.type=i,this.stride=Tt(i),this.numChildren=null!==(r=null===(n=i.children)||void 0===n?void 0:n.length)&&void 0!==r?r:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce(((e,t)=>e+t.byteLength),0)}get nullable(){return this.data.some((e=>e.nullable))}get nullCount(){return or(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${c[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}at(e){return this.get(Jn(e,this.length))}set(e,t){}indexOf(e,t){return-1}includes(e,t){return this.indexOf(e,t)>-1}[Symbol.iterator](){return kr.visit(this)}concat(){for(var e=arguments.length,t=new Array(e),n=0;ne.data)).flat(Number.POSITIVE_INFINITY)))}slice(e,t){return new Rr(Zn(this,e,t,((e,t,n)=>{let{data:r,_offsets:o}=e;return ar(r,o,t,n)})))}toJSON(){return[...this]}toArray(){const{type:e,data:t,length:n,stride:r,ArrayType:o}=this;switch(e.typeId){case c.Int:case c.Float:case c.Decimal:case c.Time:case c.Timestamp:switch(t.length){case 0:return new o;case 1:return t[0].values.subarray(0,n*r);default:return t.reduce(((e,t)=>{let{values:n,length:o}=t;return e.array.set(n.subarray(0,o*r),e.offset),e.offset+=o*r,e}),{array:new o(n*r),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(e){var t;return this.getChildAt(null===(t=this.type.children)||void 0===t?void 0:t.findIndex((t=>t.name===e)))}getChildAt(e){return e>-1&&e{let{children:n}=t;return n[e]}))):null}get isMemoized(){return!!it.isDictionary(this.type)&&this.data[0].dictionary.isMemoized}memoize(){if(it.isDictionary(this.type)){const e=new Cr(this.data[0].dictionary),t=this.data.map((t=>{const n=t.clone();return n.dictionary=e,n}));return new Rr(t)}return new Cr(this)}unmemoize(){if(it.isDictionary(this.type)&&this.isMemoized){const e=this.data[0].dictionary.unmemoize(),t=this.data.map((t=>{const n=t.clone();return n.dictionary=e,n}));return new Rr(t)}return this}}qr=Symbol.toStringTag,Rr[qr]=(e=>{e.type=it.prototype,e.data=[],e.length=0,e.stride=1,e.numChildren=0,e._offsets=new Uint32Array([0]),e[Symbol.isConcatSpreadable]=!0;const t=Object.keys(c).map((e=>c[e])).filter((e=>"number"===typeof e&&e!==c.NONE));for(const n of t){const t=Fn.getVisitFnByTypeId(n),r=pn.getVisitFnByTypeId(n),o=wr.getVisitFnByTypeId(n);Tr[n]={get:t,set:r,indexOf:o},_r[n]=Object.create(e,{isValid:{value:cr(lr)},get:{value:cr(Fn.getVisitFnByTypeId(n))},set:{value:ur(pn.getVisitFnByTypeId(n))},indexOf:{value:pr(wr.getVisitFnByTypeId(n))}})}return"Vector"})(Rr.prototype);class Cr extends Rr{constructor(e){super(e.data);const t=this.get,n=this.set,r=this.slice,o=new Array(this.length);Object.defineProperty(this,"get",{value(e){const n=o[e];if(void 0!==n)return n;const r=t.call(this,e);return o[e]=r,r}}),Object.defineProperty(this,"set",{value(e,t){n.call(this,e,t),o[e]=t}}),Object.defineProperty(this,"slice",{value:(e,t)=>new Cr(r.call(this,e,t))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new Rr(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class Nr{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(0!==this._nullCount){const{type:e}=this;return it.isSparseUnion(e)||it.isDenseUnion(e)?this.children.some((e=>e.nullable)):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let e=0;const{valueOffsets:t,values:n,nullBitmap:r,typeIds:o}=this;return t&&(e+=t.byteLength),n&&(e+=n.byteLength),r&&(e+=r.byteLength),o&&(e+=o.byteLength),this.children.reduce(((e,t)=>e+t.byteLength),e)}get nullCount(){if(it.isUnion(this.type))return this.children.reduce(((e,t)=>e+t.nullCount),0);let e,t=this._nullCount;return t<=-1&&(e=this.nullBitmap)&&(this._nullCount=t=0===e.length?0:this.length-Or(e,this.offset,this.offset+this.length)),t}constructor(e,t,n,r,o){let i,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],s=arguments.length>6?arguments[6]:void 0;this.type=e,this.children=a,this.dictionary=s,this.offset=Math.floor(Math.max(t||0,0)),this.length=Math.floor(Math.max(n||0,0)),this._nullCount=Math.floor(Math.max(r||0,-1)),o instanceof Nr?(this.stride=o.stride,this.values=o.values,this.typeIds=o.typeIds,this.nullBitmap=o.nullBitmap,this.valueOffsets=o.valueOffsets):(this.stride=Tt(e),o&&((i=o[0])&&(this.valueOffsets=i),(i=o[1])&&(this.values=i),(i=o[2])&&(this.nullBitmap=i),(i=o[3])&&(this.typeIds=i)))}getValid(e){const{type:t}=this;if(it.isUnion(t)){const n=t,r=this.children[n.typeIdToChildIndex[this.typeIds[e]]],o=n.mode===Ie.Dense?this.valueOffsets[e]:e;return r.getValid(o)}if(this.nullable&&this.nullCount>0){const t=this.offset+e;return 0!==(this.nullBitmap[t>>3]&1<>3;(!r||r.byteLength<=l)&&(r=new Uint8Array((o+i+63&-64)>>3).fill(255),this.nullCount>0?(r.set(hr(o,i,this.nullBitmap),0),Object.assign(this,{nullBitmap:r})):Object.assign(this,{nullBitmap:r,_nullCount:0}));const c=r[l];n=0!==(c&s),r[l]=t?c|s:c&~s}return n!==!!t&&(this._nullCount=this.nullCount+(t?-1:1)),t}clone(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.type,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.offset,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.length,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this._nullCount,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:this.children;return new Nr(e,t,n,r,o,i,this.dictionary)}slice(e,t){const{stride:n,typeId:r,children:o}=this,i=+(0===this._nullCount)-1,a=16===r?n:1,s=this._sliceBuffers(e,t,n,r);return this.clone(this.type,this.offset+e,t,i,s,0===o.length||this.valueOffsets?o:this._sliceChildren(o,a*e,a*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===c.Null)return this.clone(this.type,0,e,0);const{length:t,nullCount:n}=this,r=new Uint8Array((e+63&-64)>>3).fill(255,0,t>>3);r[t>>3]=(1<0&&r.set(hr(this.offset,t,this.nullBitmap),0);const o=this.buffers;return o[u.VALIDITY]=r,this.clone(this.type,0,e,n+(e-t),o)}_sliceBuffers(e,t,n,r){let o;const{buffers:i}=this;return(o=i[u.TYPE])&&(i[u.TYPE]=o.subarray(e,e+t)),(o=i[u.OFFSET])&&(i[u.OFFSET]=o.subarray(e,e+t+1))||(o=i[u.DATA])&&(i[u.DATA]=6===r?o:o.subarray(n*e,n*(e+t))),i}_sliceChildren(e,t,n){return e.map((e=>e.slice(t,n)))}}Nr.prototype.children=Object.freeze([]);class Ir extends _t{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){const{type:t,offset:n=0,length:r=0}=e;return new Nr(t,n,r,r)}visitBool(e){const{type:t,offset:n=0}=e,r=F(e.nullBitmap),o=P(t.ArrayType,e.data),{length:i=o.length>>3,nullCount:a=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,i,a,[void 0,o,r])}visitInt(e){const{type:t,offset:n=0}=e,r=F(e.nullBitmap),o=P(t.ArrayType,e.data),{length:i=o.length,nullCount:a=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,i,a,[void 0,o,r])}visitFloat(e){const{type:t,offset:n=0}=e,r=F(e.nullBitmap),o=P(t.ArrayType,e.data),{length:i=o.length,nullCount:a=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,i,a,[void 0,o,r])}visitUtf8(e){const{type:t,offset:n=0}=e,r=F(e.data),o=F(e.nullBitmap),i=D(e.valueOffsets),{length:a=i.length-1,nullCount:s=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,a,s,[i,r,o])}visitLargeUtf8(e){const{type:t,offset:n=0}=e,r=F(e.data),o=F(e.nullBitmap),i=B(e.valueOffsets),{length:a=i.length-1,nullCount:s=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,a,s,[i,r,o])}visitBinary(e){const{type:t,offset:n=0}=e,r=F(e.data),o=F(e.nullBitmap),i=D(e.valueOffsets),{length:a=i.length-1,nullCount:s=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,a,s,[i,r,o])}visitLargeBinary(e){const{type:t,offset:n=0}=e,r=F(e.data),o=F(e.nullBitmap),i=B(e.valueOffsets),{length:a=i.length-1,nullCount:s=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,a,s,[i,r,o])}visitFixedSizeBinary(e){const{type:t,offset:n=0}=e,r=F(e.nullBitmap),o=P(t.ArrayType,e.data),{length:i=o.length/Tt(t),nullCount:a=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,i,a,[void 0,o,r])}visitDate(e){const{type:t,offset:n=0}=e,r=F(e.nullBitmap),o=P(t.ArrayType,e.data),{length:i=o.length/Tt(t),nullCount:a=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,i,a,[void 0,o,r])}visitTimestamp(e){const{type:t,offset:n=0}=e,r=F(e.nullBitmap),o=P(t.ArrayType,e.data),{length:i=o.length/Tt(t),nullCount:a=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,i,a,[void 0,o,r])}visitTime(e){const{type:t,offset:n=0}=e,r=F(e.nullBitmap),o=P(t.ArrayType,e.data),{length:i=o.length/Tt(t),nullCount:a=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,i,a,[void 0,o,r])}visitDecimal(e){const{type:t,offset:n=0}=e,r=F(e.nullBitmap),o=P(t.ArrayType,e.data),{length:i=o.length/Tt(t),nullCount:a=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,i,a,[void 0,o,r])}visitList(e){const{type:t,offset:n=0,child:r}=e,o=F(e.nullBitmap),i=D(e.valueOffsets),{length:a=i.length-1,nullCount:s=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,a,s,[i,void 0,o],[r])}visitStruct(e){const{type:t,offset:n=0,children:r=[]}=e,o=F(e.nullBitmap),{length:i=r.reduce(((e,t)=>{let{length:n}=t;return Math.max(e,n)}),0),nullCount:a=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,i,a,[void 0,void 0,o],r)}visitUnion(e){const{type:t,offset:n=0,children:r=[]}=e,o=P(t.ArrayType,e.typeIds),{length:i=o.length,nullCount:a=-1}=e;if(it.isSparseUnion(t))return new Nr(t,n,i,a,[void 0,void 0,void 0,o],r);const s=D(e.valueOffsets);return new Nr(t,n,i,a,[s,void 0,void 0,o],r)}visitDictionary(e){const{type:t,offset:n=0}=e,r=F(e.nullBitmap),o=P(t.indices.ArrayType,e.data),{dictionary:i=new Rr([(new Ir).visit({type:t.dictionary})])}=e,{length:a=o.length,nullCount:s=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,a,s,[void 0,o,r],[],i)}visitInterval(e){const{type:t,offset:n=0}=e,r=F(e.nullBitmap),o=P(t.ArrayType,e.data),{length:i=o.length/Tt(t),nullCount:a=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,i,a,[void 0,o,r])}visitDuration(e){const{type:t,offset:n=0}=e,r=F(e.nullBitmap),o=P(t.ArrayType,e.data),{length:i=o.length,nullCount:a=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,i,a,[void 0,o,r])}visitFixedSizeList(e){const{type:t,offset:n=0,child:r=(new Ir).visit({type:t.valueType})}=e,o=F(e.nullBitmap),{length:i=r.length/Tt(t),nullCount:a=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,i,a,[void 0,void 0,o],[r])}visitMap(e){const{type:t,offset:n=0,child:r=(new Ir).visit({type:t.childType})}=e,o=F(e.nullBitmap),i=D(e.valueOffsets),{length:a=i.length-1,nullCount:s=(e.nullBitmap?-1:0)}=e;return new Nr(t,n,a,s,[i,void 0,o],[r])}}const Wr=new Ir;function Pr(e){return Wr.visit(e)}var Lr;!function(e){e[e.V1=0]="V1",e[e.V2=1]="V2",e[e.V3=2]="V3",e[e.V4=3]="V4",e[e.V5=4]="V5"}(Lr||(Lr={}));class jr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Lr.V5;this.fields=e||[],this.metadata=t||new Map,n||(n=Fr(this.fields)),this.dictionaries=n,this.metadataVersion=r}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map((e=>e.name))}toString(){return`Schema<{ ${this.fields.map(((e,t)=>`${t}: ${e}`)).join(", ")} }>`}select(e){const t=new Set(e),n=this.fields.filter((e=>t.has(e.name)));return new jr(n,this.metadata)}selectAt(e){const t=e.map((e=>this.fields[e])).filter(Boolean);return new jr(t,this.metadata)}assign(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=o.findIndex((t=>t.name===e.name));return!~t||(o[t]=e.clone({metadata:Br(Br(new Map,o[t].metadata),e.metadata)}))&&!1})),s=Fr(a,new Map);return new jr([...o,...a],i,new Map([...this.dictionaries,...s]))}}jr.prototype.fields=null,jr.prototype.metadata=null,jr.prototype.dictionaries=null;class Dr{static new(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;this.name=e,this.type=t,this.nullable=n,this.metadata=r||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:new Map;for(let n=-1,r=e.length;++n0&&Fr(r.children,t)}return t}Dr.prototype.type=null,Dr.prototype.name=null,Dr.prototype.nullable=null,Dr.prototype.metadata=null;class Vr extends _t{compareSchemas(e,t){return e===t||t instanceof e.constructor&&this.compareManyFields(e.fields,t.fields)}compareManyFields(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(((e,n)=>this.compareFields(e,t[n])))}compareFields(e,t){return e===t||t instanceof e.constructor&&e.name===t.name&&e.nullable===t.nullable&&this.visit(e.type,t.type)}}function Ur(e,t){return t instanceof e.constructor}function Hr(e,t){return e===t||Ur(e,t)}function Xr(e,t){return e===t||Ur(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function Gr(e,t){return e===t||Ur(e,t)&&e.precision===t.precision}function $r(e,t){return e===t||Ur(e,t)&&e.unit===t.unit}function Kr(e,t){return e===t||Ur(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function Yr(e,t){return e===t||Ur(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function Zr(e,t){return e===t||Ur(e,t)&&e.mode===t.mode&&e.typeIds.every(((e,n)=>e===t.typeIds[n]))&&eo.compareManyFields(e.children,t.children)}function Jr(e,t){return e===t||Ur(e,t)&&e.unit===t.unit}function Qr(e,t){return e===t||Ur(e,t)&&e.unit===t.unit}Vr.prototype.visitNull=Hr,Vr.prototype.visitBool=Hr,Vr.prototype.visitInt=Xr,Vr.prototype.visitInt8=Xr,Vr.prototype.visitInt16=Xr,Vr.prototype.visitInt32=Xr,Vr.prototype.visitInt64=Xr,Vr.prototype.visitUint8=Xr,Vr.prototype.visitUint16=Xr,Vr.prototype.visitUint32=Xr,Vr.prototype.visitUint64=Xr,Vr.prototype.visitFloat=Gr,Vr.prototype.visitFloat16=Gr,Vr.prototype.visitFloat32=Gr,Vr.prototype.visitFloat64=Gr,Vr.prototype.visitUtf8=Hr,Vr.prototype.visitLargeUtf8=Hr,Vr.prototype.visitBinary=Hr,Vr.prototype.visitLargeBinary=Hr,Vr.prototype.visitFixedSizeBinary=function(e,t){return e===t||Ur(e,t)&&e.byteWidth===t.byteWidth},Vr.prototype.visitDate=$r,Vr.prototype.visitDateDay=$r,Vr.prototype.visitDateMillisecond=$r,Vr.prototype.visitTimestamp=Kr,Vr.prototype.visitTimestampSecond=Kr,Vr.prototype.visitTimestampMillisecond=Kr,Vr.prototype.visitTimestampMicrosecond=Kr,Vr.prototype.visitTimestampNanosecond=Kr,Vr.prototype.visitTime=Yr,Vr.prototype.visitTimeSecond=Yr,Vr.prototype.visitTimeMillisecond=Yr,Vr.prototype.visitTimeMicrosecond=Yr,Vr.prototype.visitTimeNanosecond=Yr,Vr.prototype.visitDecimal=Hr,Vr.prototype.visitList=function(e,t){return e===t||Ur(e,t)&&e.children.length===t.children.length&&eo.compareManyFields(e.children,t.children)},Vr.prototype.visitStruct=function(e,t){return e===t||Ur(e,t)&&e.children.length===t.children.length&&eo.compareManyFields(e.children,t.children)},Vr.prototype.visitUnion=Zr,Vr.prototype.visitDenseUnion=Zr,Vr.prototype.visitSparseUnion=Zr,Vr.prototype.visitDictionary=function(e,t){return e===t||Ur(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&eo.visit(e.indices,t.indices)&&eo.visit(e.dictionary,t.dictionary)},Vr.prototype.visitInterval=Jr,Vr.prototype.visitIntervalDayTime=Jr,Vr.prototype.visitIntervalYearMonth=Jr,Vr.prototype.visitDuration=Qr,Vr.prototype.visitDurationSecond=Qr,Vr.prototype.visitDurationMillisecond=Qr,Vr.prototype.visitDurationMicrosecond=Qr,Vr.prototype.visitDurationNanosecond=Qr,Vr.prototype.visitFixedSizeList=function(e,t){return e===t||Ur(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&eo.compareManyFields(e.children,t.children)},Vr.prototype.visitMap=function(e,t){return e===t||Ur(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&eo.compareManyFields(e.children,t.children)};const eo=new Vr;function to(e,t){return eo.compareSchemas(e,t)}var no,ro,oo;class io{constructor(){for(var e=arguments.length,t=new Array(e),n=0;nPr({type:e.type,nullCount:0})))})]=t,!(this.data instanceof Nr))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=ao(this.schema,this.data.children);break;case 1:{const[e]=t,{fields:n,children:r,length:o}=Object.keys(e).reduce(((t,n,r)=>(t.children[r]=e[n],t.length=Math.max(t.length,e[n].length),t.fields[r]=Dr.new({name:n,type:e[n].type,nullable:!0}),t)),{length:0,fields:new Array,children:new Array}),i=new jr(n),a=Pr({type:new At(n),length:o,children:r,nullCount:0});[this.schema,this.data]=ao(i,a.children,o);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=so(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return Fn.visit(this.data,e)}at(e){return this.get(Jn(e,this.numRows))}set(e,t){return pn.visit(this.data,e,t)}indexOf(e,t){return wr.visit(this.data,e,t)}[Symbol.iterator](){return kr.visit(new Rr([this.data]))}toArray(){return[...this]}concat(){for(var e=arguments.length,t=new Array(e),n=0;nt.name===e)))}getChildAt(e){return e>-1&&et.name===e)),t)}setChildAt(e,t){let n=this.schema,r=this.data;if(e>-1&&ee.name===o));~e&&(r[e]=this.data.children[e])}return new io(t,Pr({type:n,length:this.numRows,children:r}))}selectAt(e){const t=this.schema.selectAt(e),n=e.map((e=>this.data.children[e])).filter(Boolean),r=Pr({type:new At(t.fields),length:this.numRows,children:n});return new io(t,r)}}function ao(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.reduce(((e,t)=>Math.max(e,t.length)),0);var r;const o=[...e.fields],i=[...t],a=(n+63&-64)>>3;for(const[s,l]of e.fields.entries()){const e=t[s];e&&e.length===n||(o[s]=l.clone({nullable:!0}),i[s]=null!==(r=null===e||void 0===e?void 0:e._changeLengthAndBackfillNullBitmap(n))&&void 0!==r?r:Pr({type:l.type,length:n,nullCount:n,nullBitmap:new Uint8Array(a)}))}return[e.assign(o),Pr({type:new At(o),length:n,children:i})]}function so(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Map;var r,o;if((null!==(r=null===e||void 0===e?void 0:e.length)&&void 0!==r?r:0)>0&&(null===e||void 0===e?void 0:e.length)===(null===t||void 0===t?void 0:t.length))for(let i=-1,a=e.length;++i(e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(io.prototype);class lo extends io{constructor(e){const t=e.fields.map((e=>Pr({type:e.type})));super(e,Pr({type:new At(e.fields),nullCount:0,children:t}))}}function co(e,t){return function(e,t){const n=[...e.fields],r=[],o={numBatches:t.reduce(((e,t)=>Math.max(e,t.length)),0)};let i=0,a=0,s=-1;const l=t.length;let c,u=[];for(;o.numBatches-- >0;){for(a=Number.POSITIVE_INFINITY,s=-1;++s0&&(r[i++]=Pr({type:new At(n),length:a,nullCount:0,children:u.slice()})))}return[e=e.assign(n),r.map((t=>new io(e,t)))]}(e,t.map((e=>e.data.concat())))}function uo(e,t,n,r,o){var i;const a=(t+63&-64)>>3;for(let s=-1,l=r.length;++s=t)c===t?n[s]=l:(n[s]=l.slice(0,t),o.numBatches=Math.max(o.numBatches,r[s].unshift(l.slice(t,c-t))));else{const r=e[s];e[s]=r.clone({nullable:!0}),n[s]=null!==(i=null===l||void 0===l?void 0:l._changeLengthAndBackfillNullBitmap(t))&&void 0!==i?i:Pr({type:r.type,length:t,nullCount:t,nullBitmap:new Uint8Array(a)})}}return n}class po{constructor(){for(var e,t,n=arguments.length,r=new Array(n),o=0;o{if(e){if(e instanceof io)return[e];if(e instanceof po)return e.batches;if(e instanceof Nr){if(e.type instanceof At)return[new io(new jr(e.type.children),e)]}else{if(Array.isArray(e))return e.flatMap((e=>s(e)));if("function"===typeof e[Symbol.iterator])return[...e].flatMap((e=>s(e)));if("object"===typeof e){const t=Object.keys(e),n=t.map((t=>new Rr([e[t]]))),r=null!==i&&void 0!==i?i:new jr(t.map(((e,t)=>new Dr(String(e),n[t].type,n[t].nullable)))),[,o]=co(r,n);return 0===o.length?[new io(e)]:o}}}return[]},l=r.flatMap((e=>s(e)));if(i=null!==(t=null!==i&&void 0!==i?i:null===(e=l[0])||void 0===e?void 0:e.schema)&&void 0!==t?t:new jr([]),!(i instanceof jr))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(const c of l){if(!(c instanceof io))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!to(i,c.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=i,this.batches=l,this._offsets=null!==a&&void 0!==a?a:ir(this.data)}get data(){return this.batches.map((e=>{let{data:t}=e;return t}))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce(((e,t)=>e+t.length),0)}get nullCount(){return-1===this._nullCount&&(this._nullCount=or(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}at(e){return this.get(Jn(e,this.numRows))}set(e,t){}indexOf(e,t){return-1}[Symbol.iterator](){return this.batches.length>0?kr.visit(new Rr(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[\n ${this.toArray().join(",\n ")}\n]`}concat(){const e=this.schema;for(var t=arguments.length,n=new Array(t),r=0;r{let{data:t}=e;return t})));return new po(e,o.map((t=>new io(e,t))))}slice(e,t){const n=this.schema;[e,t]=Zn({length:this.numRows},e,t);const r=ar(this.data,this._offsets,e,t);return new po(n,r.map((e=>new io(n,e))))}getChild(e){return this.getChildAt(this.schema.fields.findIndex((t=>t.name===e)))}getChildAt(e){if(e>-1&&et.children[e]));if(0===t.length){const{type:n}=this.schema.fields[e],r=Pr({type:n,length:0,nullCount:0});t.push(r._changeLengthAndBackfillNullBitmap(this.numRows))}return new Rr(t)}return null}setChild(e,t){var n;return this.setChildAt(null===(n=this.schema.fields)||void 0===n?void 0:n.findIndex((t=>t.name===e)),t)}setChildAt(e,t){let n=this.schema,r=[...this.batches];if(e>-1&ðis.getChildAt(t)));[o[e],a[e]]=[i,t],[n,r]=co(n,a)}return new po(n,r)}select(e){const t=this.schema.fields.reduce(((e,t,n)=>e.set(t.name,n)),new Map);return this.selectAt(e.map((e=>t.get(e))).filter((e=>e>-1)))}selectAt(e){const t=this.schema.selectAt(e),n=this.batches.map((t=>t.selectAt(e)));return new po(t,n)}assign(e){const t=this.schema.fields,[n,r]=e.schema.fields.reduce(((e,n,r)=>{const[o,i]=e,a=t.findIndex((e=>e.name===n.name));return~a?i[a]=r:o.push(r),e}),[[],[]]),o=this.schema.assign(e.schema),i=[...t.map(((e,t)=>[t,r[t]])).map((t=>{let[n,r]=t;return void 0===r?this.getChildAt(n):e.getChildAt(r)})),...n.map((t=>e.getChildAt(t)))].filter(Boolean);return new po(...co(o,i))}}ro=Symbol.toStringTag,po[ro]=(e=>(e.schema=null,e.batches=[],e._offsets=new Uint32Array([0]),e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,e.isValid=cr(lr),e.get=cr(Fn.getVisitFn(c.Struct)),e.set=ur(pn.getVisitFn(c.Struct)),e.indexOf=pr(wr.getVisitFn(c.Struct)),"Table"))(po.prototype),function(e){e[e.NONE=0]="NONE",e[e.Schema=1]="Schema",e[e.DictionaryBatch=2]="DictionaryBatch",e[e.RecordBatch=3]="RecordBatch",e[e.Tensor=4]="Tensor",e[e.SparseTensor=5]="SparseTensor"}(oo||(oo={}));class bo{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,t,n,r){return e.prep(8,24),e.writeInt64(BigInt(null!==r&&void 0!==r?r:0)),e.pad(4),e.writeInt32(n),e.writeInt64(BigInt(null!==t&&void 0!==t?t:0)),e.offset()}}const fo=new Int32Array(2),ho=new Float32Array(fo.buffer),mo=new Float64Array(fo.buffer),go=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0];var Oo,yo,Mo,zo;!function(e){e[e.UTF8_BYTES=1]="UTF8_BYTES",e[e.UTF16_STRING=2]="UTF16_STRING"}(Oo||(Oo={}));class Ao{constructor(e){this.bytes_=e,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(e){return new Ao(new Uint8Array(e))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return BigInt.asIntN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<>8}writeUint16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeInt32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeUint32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeInt64(e,t){this.writeInt32(e,Number(BigInt.asIntN(32,t))),this.writeInt32(e+4,Number(BigInt.asIntN(32,t>>BigInt(32))))}writeUint64(e,t){this.writeUint32(e,Number(BigInt.asUintN(32,t))),this.writeUint32(e+4,Number(BigInt.asUintN(32,t>>BigInt(32))))}writeFloat32(e,t){ho[0]=t,this.writeInt32(e,fo[0])}writeFloat64(e,t){mo[0]=t,this.writeInt32(e,fo[go?0:1]),this.writeInt32(e+4,fo[go?1:0])}getBufferIdentifier(){if(this.bytes_.lengththis.minalign&&(this.minalign=e);const n=1+~(this.bb.capacity()-this.space+t)&e-1;for(;this.space=0&&0==this.vtable[t];t--);const n=t+1;for(;t>=0;t--)this.addInt16(0!=this.vtable[t]?e-this.vtable[t]:0);this.addInt16(e-this.object_start);const r=2*(n+2);this.addInt16(r);let o=0;const i=this.space;e:for(t=0;t=0;t--)this.writeInt8(e.charCodeAt(t))}this.prep(this.minalign,4+r),this.addOffset(e),r&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,t){this.finish(e,t,!0)}requiredField(e,t){const n=this.bb.capacity()-e,r=n-this.bb.readInt32(n);if(!(t=0;n--)e.addOffset(t[n]);return e.endVector()}static startChildrenVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(6,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endField(e){return e.endObject()}}class ko{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSchema(e,t){return(t||new ko).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,t){return e.setPosition(e.position()+4),(t||new ko).__init(e.readInt32(e.position())+e.position(),e)}endianness(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):yo.Little}fields(e,t){const n=this.bb.__offset(this.bb_pos,6);return n?(t||new Eo).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}fieldsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){const n=this.bb.__offset(this.bb_pos,8);return n?(t||new wo).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+8*e):BigInt(0)}featuresLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,t){e.addFieldInt16(0,t,yo.Little)}static addFields(e,t){e.addFieldOffset(1,t,0)}static createFieldsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startFieldsVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(2,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static addFeatures(e,t){e.addFieldOffset(3,t,0)}static createFeaturesVector(e,t){e.startVector(8,t.length,8);for(let n=t.length-1;n>=0;n--)e.addInt64(t[n]);return e.endVector()}static startFeaturesVector(e,t){e.startVector(8,t,8)}static endSchema(e){return e.endObject()}static finishSchemaBuffer(e,t){e.finish(t)}static finishSizePrefixedSchemaBuffer(e,t){e.finish(t,void 0,!0)}static createSchema(e,t,n,r,o){return ko.startSchema(e),ko.addEndianness(e,t),ko.addFields(e,n),ko.addCustomMetadata(e,r),ko.addFeatures(e,o),ko.endSchema(e)}}class qo{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFooter(e,t){return(t||new qo).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFooter(e,t){return e.setPosition(e.position()+4),(t||new qo).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Lr.V1}schema(e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new ko).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}dictionaries(e,t){const n=this.bb.__offset(this.bb_pos,8);return n?(t||new bo).__init(this.bb.__vector(this.bb_pos+n)+24*e,this.bb):null}dictionariesLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,t){const n=this.bb.__offset(this.bb_pos,10);return n?(t||new bo).__init(this.bb.__vector(this.bb_pos+n)+24*e,this.bb):null}recordBatchesLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){const n=this.bb.__offset(this.bb_pos,12);return n?(t||new wo).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,Lr.V1)}static addSchema(e,t){e.addFieldOffset(1,t,0)}static addDictionaries(e,t){e.addFieldOffset(2,t,0)}static startDictionariesVector(e,t){e.startVector(24,t,8)}static addRecordBatches(e,t){e.addFieldOffset(3,t,0)}static startRecordBatchesVector(e,t){e.startVector(24,t,8)}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,t){e.finish(t)}static finishSizePrefixedFooterBuffer(e,t){e.finish(t,void 0,!0)}}var To=vo,_o=Ao;class Ro{static decode(e){e=new _o(F(e));const t=qo.getRootAsFooter(e),n=jr.decode(t.schema(),new Map,t.version());return new Co(n,t)}static encode(e){const t=new To,n=jr.encode(t,e.schema);qo.startRecordBatchesVector(t,e.numRecordBatches);for(const i of[...e.recordBatches()].slice().reverse())No.encode(t,i);const r=t.endVector();qo.startDictionariesVector(t,e.numDictionaries);for(const i of[...e.dictionaryBatches()].slice().reverse())No.encode(t,i);const o=t.endVector();return qo.startFooter(t),qo.addSchema(t,n),qo.addVersion(t,Lr.V5),qo.addRecordBatches(t,r),qo.addDictionaries(t,o),qo.finishFooterBuffer(t,qo.endFooter(t)),t.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lr.V5,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;this.schema=e,this.version=t,n&&(this._recordBatches=n),r&&(this._dictionaryBatches=r)}*recordBatches(){for(let e,t=-1,n=this.numRecordBatches;++t=0&&e=0&&e=0&&e=0&&eWo(function*(e){let t,n,r,o,i=!1,a=[],s=0;function l(){return"peek"===r?W(a,o)[0]:([n,a,s]=W(a,o),n)}({cmd:r,size:o}=(yield null)||{cmd:"read",size:0});const c=ee(e)[Symbol.iterator]();try{do{if(({done:t,value:n}=Number.isNaN(o-s)?c.next():c.next(o-s)),!t&&n.byteLength>0&&(a.push(n),s+=n.byteLength),t||o<=s)do{({cmd:r,size:o}=yield l())}while(oWo(function(e){return(0,f.FC)(this,arguments,(function*(){let t,n,r,o,i=!1,a=[],s=0;function l(){return"peek"===r?W(a,o)[0]:([n,a,s]=W(a,o),n)}({cmd:r,size:o}=(yield yield(0,f.qq)(null))||{cmd:"read",size:0});const c=ue(e)[Symbol.asyncIterator]();try{do{if(({done:t,value:n}=Number.isNaN(o-s)?yield(0,f.qq)(c.next()):yield(0,f.qq)(c.next(o-s))),!t&&n.byteLength>0&&(a.push(n),s+=n.byteLength),t||o<=s)do{({cmd:r,size:o}=yield yield(0,f.qq)(l()))}while(oWo(function(e){return(0,f.FC)(this,arguments,(function*(){let t,n,r,o=!1,i=!1,a=[],s=0;function l(){return"peek"===n?W(a,r)[0]:([t,a,s]=W(a,r),t)}({cmd:n,size:r}=(yield yield(0,f.qq)(null))||{cmd:"read",size:0});const c=new Po(e);try{do{if(({done:o,value:t}=Number.isNaN(r-s)?yield(0,f.qq)(c.read()):yield(0,f.qq)(c.read(r-s))),!o&&t.byteLength>0&&(a.push(F(t)),s+=t.byteLength),o||r<=s)do{({cmd:n,size:r}=yield yield(0,f.qq)(l()))}while(rWo(function(e){return(0,f.FC)(this,arguments,(function*(){const t=[];let n,r,o,i="error",a=!1,s=null,l=0,c=[];function u(){return"peek"===n?W(c,r)[0]:([o,c,l]=W(c,r),o)}if(({cmd:n,size:r}=(yield yield(0,f.qq)(null))||{cmd:"read",size:0}),e.isTTY)return yield yield(0,f.qq)(new Uint8Array(0)),yield(0,f.qq)(null);try{t[0]=Lo(e,"end"),t[1]=Lo(e,"error");do{if(t[2]=Lo(e,"readable"),[i,s]=yield(0,f.qq)(Promise.race(t.map((e=>e[2])))),"error"===i)break;if((a="end"===i)||(Number.isFinite(r-l)?(o=F(e.read(r-l)),o.byteLength0&&(c.push(o),l+=o.byteLength)),a||r<=l)do{({cmd:n,size:r}=yield yield(0,f.qq)(u()))}while(r{for(const[n,a]of t)e.off(n,a);try{const t=e.destroy;t&&t.call(e,n),n=void 0}catch(i){n=i||n}finally{null!=n?o(n):r()}}))}}))}(e)),toDOMStream(e,t){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(e,t){throw new Error('"toNodeStream" not available in this environment')}},Wo=e=>(e.next(),e);class Po{constructor(e){this.source=e,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch((()=>{}))}get closed(){return this.reader?this.reader.closed.catch((()=>{})):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return(0,f.mG)(this,void 0,void 0,(function*(){const{reader:t,source:n}=this;t&&(yield t.cancel(e).catch((()=>{}))),n&&n.locked&&this.releaseLock()}))}read(e){return(0,f.mG)(this,void 0,void 0,(function*(){if(0===e)return{done:null==this.reader,value:new Uint8Array(0)};const t=yield this.reader.read();return!t.done&&(t.value=F(t)),t}))}}const Lo=(e,t)=>{const n=e=>r([t,e]);let r;return[t,n,new Promise((o=>(r=o)&&e.once(t,n)))]};const jo=Object.freeze({done:!0,value:void 0});class Do{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class Bo{tee(){return this._getDOMStream().tee()}pipe(e,t){return this._getNodeStream().pipe(e,t)}pipeTo(e,t){return this._getDOMStream().pipeTo(e,t)}pipeThrough(e,t){return this._getDOMStream().pipeThrough(e,t)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class Fo extends Bo{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise((e=>this._closedPromiseResolve=e))}get closed(){return this._closedPromise}cancel(e){return(0,f.mG)(this,void 0,void 0,(function*(){yield this.return(e)}))}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){const{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(jo);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return Io.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return Io.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return(0,f.mG)(this,void 0,void 0,(function*(){return yield this.abort(e),jo}))}return(e){return(0,f.mG)(this,void 0,void 0,(function*(){return yield this.close(),jo}))}read(e){return(0,f.mG)(this,void 0,void 0,(function*(){return(yield this.next(e,"read")).value}))}peek(e){return(0,f.mG)(this,void 0,void 0,(function*(){return(yield this.next(e,"peek")).value}))}next(){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise(((e,t)=>{this.resolvers.push({resolve:e,reject:t})})):Promise.resolve(jo)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}class Vo extends Fo{write(e){if((e=F(e)).byteLength>0)return super.write(e)}toString(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?m(this.toUint8Array(!0)):this.toUint8Array(!1).then(m)}toUint8Array(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?W(this._values)[0]:(()=>(0,f.mG)(this,void 0,void 0,(function*(){var e,t,n,r;const o=[];let i=0;try{for(var a,s=!0,l=(0,f.KL)(this);!(e=(a=yield l.next()).done);s=!0){r=a.value,s=!1;const e=r;o.push(e),i+=e.byteLength}}catch(c){t={error:c}}finally{try{s||e||!(n=l.return)||(yield n.call(l))}finally{if(t)throw t.error}}return W(o,i)[0]})))()}}class Uo{constructor(e){e&&(this.source=new Xo(Io.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class Ho{constructor(e){e instanceof Ho?this.source=e.source:e instanceof Vo?this.source=new Go(Io.fromAsyncIterable(e)):R(e)?this.source=new Go(Io.fromNodeStream(e)):_(e)?this.source=new Go(Io.fromDOMStream(e)):q(e)?this.source=new Go(Io.fromDOMStream(e.body)):w(e)?this.source=new Go(Io.fromIterable(e)):(v(e)||S(e))&&(this.source=new Go(Io.fromAsyncIterable(e)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class Xo{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,"peek").value}read(e){return this.next(e,"read").value}next(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"read";return this.source.next({cmd:t,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||jo)}return(e){return Object.create(this.source.return&&this.source.return(e)||jo)}}class Go{constructor(e){this.source=e,this._closedPromise=new Promise((e=>this._closedPromiseResolve=e))}cancel(e){return(0,f.mG)(this,void 0,void 0,(function*(){yield this.return(e)}))}get closed(){return this._closedPromise}read(e){return(0,f.mG)(this,void 0,void 0,(function*(){return(yield this.next(e,"read")).value}))}peek(e){return(0,f.mG)(this,void 0,void 0,(function*(){return(yield this.next(e,"peek")).value}))}next(e){return(0,f.mG)(this,arguments,void 0,(function(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"read";return function*(){return yield t.source.next({cmd:n,size:e})}()}))}throw(e){return(0,f.mG)(this,void 0,void 0,(function*(){const t=this.source.throw&&(yield this.source.throw(e))||jo;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)}))}return(e){return(0,f.mG)(this,void 0,void 0,(function*(){const t=this.source.return&&(yield this.source.return(e))||jo;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)}))}}class $o extends Uo{constructor(e,t){super(),this.position=0,this.buffer=F(e),this.size=void 0===t?this.buffer.byteLength:t}readInt32(e){const{buffer:t,byteOffset:n}=this.readAt(e,4);return new DataView(t,n).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),e(0,f.mG)(this,void 0,void 0,(function*(){this.size=(yield e.stat()).size,delete this._pending})))()}readInt32(e){return(0,f.mG)(this,void 0,void 0,(function*(){const{buffer:t,byteOffset:n}=yield this.readAt(e,4);return new DataView(t,n).getInt32(0,!0)}))}seek(e){return(0,f.mG)(this,void 0,void 0,(function*(){return this._pending&&(yield this._pending),this.position=Math.min(e,this.size),e>>16,65535&this.buffer[1],this.buffer[0]>>>16,65535&this.buffer[0]]),n=new Uint32Array([e.buffer[1]>>>16,65535&e.buffer[1],e.buffer[0]>>>16,65535&e.buffer[0]]);let r=t[3]*n[3];this.buffer[0]=65535&r;let o=r>>>16;return r=t[2]*n[3],o+=r,r=t[3]*n[2]>>>0,o+=r,this.buffer[0]+=o<<16,this.buffer[1]=o>>>0>>16,this.buffer[1]+=t[1]*n[3]+t[2]*n[2]+t[3]*n[1],this.buffer[1]+=t[0]*n[3]+t[1]*n[2]+t[2]*n[1]+t[3]*n[0]<<16,this}_plus(e){const t=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],t>>0&&++this.buffer[1],this.buffer[0]=t}lessThan(e){return this.buffer[1]1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return Qo.fromString("string"===typeof e?e:e.toString(),t)}static fromNumber(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return Qo.fromString(e.toString(),t)}static fromString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);const n=e.length,r=new Qo(t);for(let o=0;o1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return ei.fromString("string"===typeof e?e:e.toString(),t)}static fromNumber(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return ei.fromString(e.toString(),t)}static fromString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);const n=e.startsWith("-"),r=e.length,o=new ei(t);for(let i=n?1:0;i>>0,t[2]=this.buffer[2]+e.buffer[2]>>>0,t[1]=this.buffer[1]+e.buffer[1]>>>0,t[0]=this.buffer[0]+e.buffer[0]>>>0,t[0]>>0&&++t[1],t[1]>>0&&++t[2],t[2]>>0&&++t[3],this.buffer[3]=t[3],this.buffer[2]=t[2],this.buffer[1]=t[1],this.buffer[0]=t[0],this}hex(){return`${Yo(this.buffer[3])} ${Yo(this.buffer[2])} ${Yo(this.buffer[1])} ${Yo(this.buffer[0])}`}static multiply(e,t){return new ti(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new ti(new Uint32Array(e.buffer)).plus(t)}static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(4);return ti.fromString("string"===typeof e?e:e.toString(),t)}static fromNumber(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(4);return ti.fromString(e.toString(),t)}static fromString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(4);const n=e.startsWith("-"),r=e.length,o=new ti(t);for(let i=n?1:0;i4&&void 0!==arguments[4]?arguments[4]:Lr.V5;super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=e,this.nodes=t,this.buffers=n,this.dictionaries=r,this.metadataVersion=o}visit(e){return super.visit(e instanceof Dr?e.type:e)}visitNull(e){let{length:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t})}visitBool(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitInt(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitFloat(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitUtf8(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitLargeUtf8(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitBinary(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitLargeBinary(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitFixedSizeBinary(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitDate(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitTimestamp(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitTime(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitDecimal(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitList(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}visitStruct(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),children:this.visitMany(e.children)})}visitUnion(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return this.metadataVersion1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,typeIds:this.readTypeIds(e),valueOffsets:this.readOffsets(e),children:this.visitMany(e.children)})}visitSparseUnion(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,typeIds:this.readTypeIds(e),children:this.visitMany(e.children)})}visitDictionary(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e.indices),dictionary:this.readDictionary(e)})}visitInterval(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitDuration(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitFixedSizeList(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),child:this.visit(e.children[0])})}visitMap(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Pr({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nextBufferRange();return t>0&&this.readData(e,n)||new Uint8Array(0)}readOffsets(e,t){return this.readData(e,t)}readTypeIds(e,t){return this.readData(e,t)}readData(e){let{length:t,offset:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange();return this.bytes.subarray(n,n+t)}readDictionary(e){return this.dictionaries.get(e.id)}}class ri extends ni{constructor(e,t,n,r,o){super(new Uint8Array(0),t,n,r,o),this.sources=e}readNullBitmap(e,t){let{offset:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nextBufferRange();return t<=0?new Uint8Array(0):mr(this.sources[n])}readOffsets(e){let{offset:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange();return P(Uint8Array,P(e.OffsetArrayType,this.sources[t]))}readTypeIds(e){let{offset:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange();return P(Uint8Array,P(e.ArrayType,this.sources[t]))}readData(e){let{offset:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange();const{sources:n}=this;return it.isTimestamp(e)||(it.isInt(e)||it.isTime(e))&&64===e.bitWidth||it.isDuration(e)||it.isDate(e)&&e.unit===Ce.MILLISECOND?P(Uint8Array,ei.convertArray(n[t])):it.isDecimal(e)?P(Uint8Array,ti.convertArray(n[t])):it.isBinary(e)||it.isLargeBinary(e)||it.isFixedSizeBinary(e)?function(e){const t=e.join(""),n=new Uint8Array(t.length/2);for(let r=0;r>1]=Number.parseInt(t.slice(r,r+2),16);return n}(n[t]):it.isBool(e)?mr(n[t]):it.isUtf8(e)||it.isLargeUtf8(e)?O(n[t].join("")):P(Uint8Array,P(e.ArrayType,n[t].map((e=>+e))))}}var oi,ii;!function(e){e[e.BUFFER=0]="BUFFER"}(oi||(oi={})),function(e){e[e.LZ4_FRAME=0]="LZ4_FRAME",e[e.ZSTD=1]="ZSTD"}(ii||(ii={}));class ai{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBodyCompression(e,t){return(t||new ai).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,t){return e.setPosition(e.position()+4),(t||new ai).__init(e.readInt32(e.position())+e.position(),e)}codec(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):ii.LZ4_FRAME}method(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):oi.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,t){e.addFieldInt8(0,t,ii.LZ4_FRAME)}static addMethod(e,t){e.addFieldInt8(1,t,oi.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(e,t,n){return ai.startBodyCompression(e),ai.addCodec(e,t),ai.addMethod(e,n),ai.endBodyCompression(e)}}class si{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(e,t,n){return e.prep(8,16),e.writeInt64(BigInt(null!==n&&void 0!==n?n:0)),e.writeInt64(BigInt(null!==t&&void 0!==t?t:0)),e.offset()}}class li{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(e,t,n){return e.prep(8,16),e.writeInt64(BigInt(null!==n&&void 0!==n?n:0)),e.writeInt64(BigInt(null!==t&&void 0!==t?t:0)),e.offset()}}class ci{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsRecordBatch(e,t){return(t||new ci).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,t){return e.setPosition(e.position()+4),(t||new ci).__init(e.readInt32(e.position())+e.position(),e)}length(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}nodes(e,t){const n=this.bb.__offset(this.bb_pos,6);return n?(t||new li).__init(this.bb.__vector(this.bb_pos+n)+16*e,this.bb):null}nodesLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}buffers(e,t){const n=this.bb.__offset(this.bb_pos,8);return n?(t||new si).__init(this.bb.__vector(this.bb_pos+n)+16*e,this.bb):null}buffersLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}compression(e){const t=this.bb.__offset(this.bb_pos,10);return t?(e||new ai).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}static startRecordBatch(e){e.startObject(4)}static addLength(e,t){e.addFieldInt64(0,t,BigInt("0"))}static addNodes(e,t){e.addFieldOffset(1,t,0)}static startNodesVector(e,t){e.startVector(16,t,8)}static addBuffers(e,t){e.addFieldOffset(2,t,0)}static startBuffersVector(e,t){e.startVector(16,t,8)}static addCompression(e,t){e.addFieldOffset(3,t,0)}static endRecordBatch(e){return e.endObject()}}class ui{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryBatch(e,t){return(t||new ui).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,t){return e.setPosition(e.position()+4),(t||new ui).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}data(e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new ci).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}isDelta(){const e=this.bb.__offset(this.bb_pos,8);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}static startDictionaryBatch(e){e.startObject(3)}static addId(e,t){e.addFieldInt64(0,t,BigInt("0"))}static addData(e,t){e.addFieldOffset(1,t,0)}static addIsDelta(e,t){e.addFieldInt8(2,+t,0)}static endDictionaryBatch(e){return e.endObject()}}class pi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFloatingPoint(e,t){return(t||new pi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFloatingPoint(e,t){return e.setPosition(e.position()+4),(t||new pi).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):_e.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,t){e.addFieldInt16(0,t,_e.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,t){return pi.startFloatingPoint(e),pi.addPrecision(e,t),pi.endFloatingPoint(e)}}class di{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDecimal(e,t){return(t||new di).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,t){return e.setPosition(e.position()+4),(t||new di).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}scale(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}bitWidth(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):128}static startDecimal(e){e.startObject(3)}static addPrecision(e,t){e.addFieldInt32(0,t,0)}static addScale(e,t){e.addFieldInt32(1,t,0)}static addBitWidth(e,t){e.addFieldInt32(2,t,128)}static endDecimal(e){return e.endObject()}static createDecimal(e,t,n,r){return di.startDecimal(e),di.addPrecision(e,t),di.addScale(e,n),di.addBitWidth(e,r),di.endDecimal(e)}}class bi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDate(e,t){return(t||new bi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,t){return e.setPosition(e.position()+4),(t||new bi).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ce.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,Ce.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,t){return bi.startDate(e),bi.addUnit(e,t),bi.endDate(e)}}class fi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTime(e,t){return(t||new fi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTime(e,t){return e.setPosition(e.position()+4),(t||new fi).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Re.MILLISECOND}bitWidth(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):32}static startTime(e){e.startObject(2)}static addUnit(e,t){e.addFieldInt16(0,t,Re.MILLISECOND)}static addBitWidth(e,t){e.addFieldInt32(1,t,32)}static endTime(e){return e.endObject()}static createTime(e,t,n){return fi.startTime(e),fi.addUnit(e,t),fi.addBitWidth(e,n),fi.endTime(e)}}class hi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTimestamp(e,t){return(t||new hi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTimestamp(e,t){return e.setPosition(e.position()+4),(t||new hi).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Re.SECOND}timezone(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}static startTimestamp(e){e.startObject(2)}static addUnit(e,t){e.addFieldInt16(0,t,Re.SECOND)}static addTimezone(e,t){e.addFieldOffset(1,t,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(e,t,n){return hi.startTimestamp(e),hi.addUnit(e,t),hi.addTimezone(e,n),hi.endTimestamp(e)}}class mi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInterval(e,t){return(t||new mi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInterval(e,t){return e.setPosition(e.position()+4),(t||new mi).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ne.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,Ne.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(e,t){return mi.startInterval(e),mi.addUnit(e,t),mi.endInterval(e)}}class gi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDuration(e,t){return(t||new gi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDuration(e,t){return e.setPosition(e.position()+4),(t||new gi).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Re.MILLISECOND}static startDuration(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,Re.MILLISECOND)}static endDuration(e){return e.endObject()}static createDuration(e,t){return gi.startDuration(e),gi.addUnit(e,t),gi.endDuration(e)}}class Oi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUnion(e,t){return(t||new Oi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUnion(e,t){return e.setPosition(e.position()+4),(t||new Oi).__init(e.readInt32(e.position())+e.position(),e)}mode(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ie.Sparse}typeIds(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb.__vector(this.bb_pos+t)+4*e):0}typeIdsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}typeIdsArray(){const e=this.bb.__offset(this.bb_pos,6);return e?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}static startUnion(e){e.startObject(2)}static addMode(e,t){e.addFieldInt16(0,t,Ie.Sparse)}static addTypeIds(e,t){e.addFieldOffset(1,t,0)}static createTypeIdsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addInt32(t[n]);return e.endVector()}static startTypeIdsVector(e,t){e.startVector(4,t,4)}static endUnion(e){return e.endObject()}static createUnion(e,t,n){return Oi.startUnion(e),Oi.addMode(e,t),Oi.addTypeIds(e,n),Oi.endUnion(e)}}class yi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeBinary(e,t){return(t||new yi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,t){return e.setPosition(e.position()+4),(t||new yi).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeBinary(e){e.startObject(1)}static addByteWidth(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(e,t){return yi.startFixedSizeBinary(e),yi.addByteWidth(e,t),yi.endFixedSizeBinary(e)}}class Mi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeList(e,t){return(t||new Mi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,t){return e.setPosition(e.position()+4),(t||new Mi).__init(e.readInt32(e.position())+e.position(),e)}listSize(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeList(e){e.startObject(1)}static addListSize(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(e,t){return Mi.startFixedSizeList(e),Mi.addListSize(e,t),Mi.endFixedSizeList(e)}}class zi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMap(e,t){return(t||new zi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,t){return e.setPosition(e.position()+4),(t||new zi).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){const e=this.bb.__offset(this.bb_pos,4);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}static startMap(e){e.startObject(1)}static addKeysSorted(e,t){e.addFieldInt8(0,+t,0)}static endMap(e){return e.endObject()}static createMap(e,t){return zi.startMap(e),zi.addKeysSorted(e,t),zi.endMap(e)}}class Ai{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMessage(e,t){return(t||new Ai).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,t){return e.setPosition(e.position()+4),(t||new Ai).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Lr.V1}headerType(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):oo.NONE}header(e){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__union(e,this.bb_pos+t):null}bodyLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}customMetadata(e,t){const n=this.bb.__offset(this.bb_pos,12);return n?(t||new wo).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,Lr.V1)}static addHeaderType(e,t){e.addFieldInt8(1,t,oo.NONE)}static addHeader(e,t){e.addFieldOffset(2,t,0)}static addBodyLength(e,t){e.addFieldInt64(3,t,BigInt("0"))}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,t){e.finish(t)}static finishSizePrefixedMessageBuffer(e,t){e.finish(t,void 0,!0)}static createMessage(e,t,n,r,o,i){return Ai.startMessage(e),Ai.addVersion(e,t),Ai.addHeaderType(e,n),Ai.addHeader(e,r),Ai.addBodyLength(e,o),Ai.addCustomMetadata(e,i),Ai.endMessage(e)}}class vi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsNull(e,t){return(t||new vi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,t){return e.setPosition(e.position()+4),(t||new vi).__init(e.readInt32(e.position())+e.position(),e)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(e){return vi.startNull(e),vi.endNull(e)}}class wi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBinary(e,t){return(t||new wi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,t){return e.setPosition(e.position()+4),(t||new wi).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(e){return wi.startBinary(e),wi.endBinary(e)}}class Si{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeBinary(e,t){return(t||new Si).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeBinary(e,t){return e.setPosition(e.position()+4),(t||new Si).__init(e.readInt32(e.position())+e.position(),e)}static startLargeBinary(e){e.startObject(0)}static endLargeBinary(e){return e.endObject()}static createLargeBinary(e){return Si.startLargeBinary(e),Si.endLargeBinary(e)}}class xi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBool(e,t){return(t||new xi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,t){return e.setPosition(e.position()+4),(t||new xi).__init(e.readInt32(e.position())+e.position(),e)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(e){return xi.startBool(e),xi.endBool(e)}}class Ei{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUtf8(e,t){return(t||new Ei).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,t){return e.setPosition(e.position()+4),(t||new Ei).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return Ei.startUtf8(e),Ei.endUtf8(e)}}class ki{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeUtf8(e,t){return(t||new ki).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeUtf8(e,t){return e.setPosition(e.position()+4),(t||new ki).__init(e.readInt32(e.position())+e.position(),e)}static startLargeUtf8(e){e.startObject(0)}static endLargeUtf8(e){return e.endObject()}static createLargeUtf8(e){return ki.startLargeUtf8(e),ki.endLargeUtf8(e)}}class qi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsList(e,t){return(t||new qi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,t){return e.setPosition(e.position()+4),(t||new qi).__init(e.readInt32(e.position())+e.position(),e)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(e){return qi.startList(e),qi.endList(e)}}class Ti{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsStruct_(e,t){return(t||new Ti).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsStruct_(e,t){return e.setPosition(e.position()+4),(t||new Ti).__init(e.readInt32(e.position())+e.position(),e)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(e){return Ti.startStruct_(e),Ti.endStruct_(e)}}const _i=new class extends _t{visit(e,t){return null==e||null==t?void 0:super.visit(e,t)}visitNull(e,t){return vi.startNull(t),vi.endNull(t)}visitInt(e,t){return So.startInt(t),So.addBitWidth(t,e.bitWidth),So.addIsSigned(t,e.isSigned),So.endInt(t)}visitFloat(e,t){return pi.startFloatingPoint(t),pi.addPrecision(t,e.precision),pi.endFloatingPoint(t)}visitBinary(e,t){return wi.startBinary(t),wi.endBinary(t)}visitLargeBinary(e,t){return Si.startLargeBinary(t),Si.endLargeBinary(t)}visitBool(e,t){return xi.startBool(t),xi.endBool(t)}visitUtf8(e,t){return Ei.startUtf8(t),Ei.endUtf8(t)}visitLargeUtf8(e,t){return ki.startLargeUtf8(t),ki.endLargeUtf8(t)}visitDecimal(e,t){return di.startDecimal(t),di.addScale(t,e.scale),di.addPrecision(t,e.precision),di.addBitWidth(t,e.bitWidth),di.endDecimal(t)}visitDate(e,t){return bi.startDate(t),bi.addUnit(t,e.unit),bi.endDate(t)}visitTime(e,t){return fi.startTime(t),fi.addUnit(t,e.unit),fi.addBitWidth(t,e.bitWidth),fi.endTime(t)}visitTimestamp(e,t){const n=e.timezone&&t.createString(e.timezone)||void 0;return hi.startTimestamp(t),hi.addUnit(t,e.unit),void 0!==n&&hi.addTimezone(t,n),hi.endTimestamp(t)}visitInterval(e,t){return mi.startInterval(t),mi.addUnit(t,e.unit),mi.endInterval(t)}visitDuration(e,t){return gi.startDuration(t),gi.addUnit(t,e.unit),gi.endDuration(t)}visitList(e,t){return qi.startList(t),qi.endList(t)}visitStruct(e,t){return Ti.startStruct_(t),Ti.endStruct_(t)}visitUnion(e,t){Oi.startTypeIdsVector(t,e.typeIds.length);const n=Oi.createTypeIdsVector(t,e.typeIds);return Oi.startUnion(t),Oi.addMode(t,e.mode),Oi.addTypeIds(t,n),Oi.endUnion(t)}visitDictionary(e,t){const n=this.visit(e.indices,t);return xo.startDictionaryEncoding(t),xo.addId(t,BigInt(e.id)),xo.addIsOrdered(t,e.isOrdered),void 0!==n&&xo.addIndexType(t,n),xo.endDictionaryEncoding(t)}visitFixedSizeBinary(e,t){return yi.startFixedSizeBinary(t),yi.addByteWidth(t,e.byteWidth),yi.endFixedSizeBinary(t)}visitFixedSizeList(e,t){return Mi.startFixedSizeList(t),Mi.addListSize(t,e.listSize),Mi.endFixedSizeList(t)}visitMap(e,t){return zi.startMap(t),zi.addKeysSorted(t,e.keysSorted),zi.endMap(t)}};function Ri(e){return new Fi(e.count,Ni(e.columns),Ii(e.columns))}function Ci(e,t){return(e.children||[]).filter(Boolean).map((e=>Dr.fromJSON(e,t)))}function Ni(e){return(e||[]).reduce(((e,t)=>{return[...e,new Hi(t.count,(n=t.VALIDITY,(n||[]).reduce(((e,t)=>e+ +(0===t)),0))),...Ni(t.children)];var n}),[])}function Ii(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(let n=-1,r=(e||[]).length;++n0&&void 0!==arguments[0]?arguments[0]:[]).map((e=>{let{key:t,value:n}=e;return[t,n]})))}function Pi(e){return new st(e.isSigned,e.bitWidth)}function Li(e,t){const n=e.type.name;switch(n){case"NONE":case"null":return new at;case"binary":return new ut;case"largebinary":return new pt;case"utf8":return new dt;case"largeutf8":return new bt;case"bool":return new ft;case"list":return new zt((t||[])[0]);case"struct":case"struct_":return new At(t||[])}switch(n){case"int":{const t=e.type;return new st(t.isSigned,t.bitWidth)}case"floatingpoint":{const t=e.type;return new ct(_e[t.precision])}case"decimal":{const t=e.type;return new ht(t.scale,t.precision,t.bitWidth)}case"date":{const t=e.type;return new mt(Ce[t.unit])}case"time":{const t=e.type;return new gt(Re[t.unit],t.bitWidth)}case"timestamp":{const t=e.type;return new Ot(Re[t.unit],t.timezone)}case"interval":{const t=e.type;return new yt(Ne[t.unit])}case"duration":{const t=e.type;return new Mt(Re[t.unit])}case"union":{const n=e.type,[r,...o]=(n.mode+"").toLowerCase(),i=r.toUpperCase()+o.join("");return new vt(Ie[i],n.typeIds||[],t||[])}case"fixedsizebinary":{const t=e.type;return new wt(t.byteWidth)}case"fixedsizelist":{const n=e.type;return new St(n.listSize,(t||[])[0])}case"map":{const n=e.type;return new xt((t||[])[0],n.keysSorted)}}throw new Error(`Unrecognized type: "${n}"`)}var ji=vo,Di=Ao;class Bi{static fromJSON(e,t){const n=new Bi(0,Lr.V5,t);return n._createHeader=function(e,t){return()=>{switch(t){case oo.Schema:return jr.fromJSON(e);case oo.RecordBatch:return Fi.fromJSON(e);case oo.DictionaryBatch:return Vi.fromJSON(e)}throw new Error(`Unrecognized Message type: { name: ${oo[t]}, type: ${t} }`)}}(e,t),n}static decode(e){e=new Di(F(e));const t=Ai.getRootAsMessage(e),n=t.bodyLength(),r=t.version(),o=t.headerType(),i=new Bi(n,r,o);return i._createHeader=function(e,t){return()=>{switch(t){case oo.Schema:return jr.decode(e.header(new ko),new Map,e.version());case oo.RecordBatch:return Fi.decode(e.header(new ci),e.version());case oo.DictionaryBatch:return Vi.decode(e.header(new ui),e.version())}throw new Error(`Unrecognized Message type: { name: ${oo[t]}, type: ${t} }`)}}(t,o),i}static encode(e){const t=new ji;let n=-1;return e.isSchema()?n=jr.encode(t,e.header()):e.isRecordBatch()?n=Fi.encode(t,e.header()):e.isDictionaryBatch()&&(n=Vi.encode(t,e.header())),Ai.startMessage(t),Ai.addVersion(t,Lr.V5),Ai.addHeader(t,n),Ai.addHeaderType(t,e.headerType),Ai.addBodyLength(t,BigInt(e.bodyLength)),Ai.finishMessageBuffer(t,Ai.endMessage(t)),t.asUint8Array()}static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e instanceof jr)return new Bi(0,Lr.V5,oo.Schema,e);if(e instanceof Fi)return new Bi(t,Lr.V5,oo.RecordBatch,e);if(e instanceof Vi)return new Bi(t,Lr.V5,oo.DictionaryBatch,e);throw new Error(`Unrecognized Message header: ${e}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===oo.Schema}isRecordBatch(){return this.headerType===oo.RecordBatch}isDictionaryBatch(){return this.headerType===oo.DictionaryBatch}constructor(e,t,n,r){this._version=t,this._headerType=n,this.body=new Uint8Array(0),r&&(this._createHeader=()=>r),this._bodyLength=Oe(e)}}class Fi{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}constructor(e,t,n){this._nodes=t,this._buffers=n,this._length=Oe(e)}}class Vi{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._data=e,this._isDelta=n,this._id=Oe(t)}}class Ui{constructor(e,t){this.offset=Oe(e),this.length=Oe(t)}}class Hi{constructor(e,t){this.length=Oe(e),this.nullCount=Oe(t)}}function Xi(e,t){const n=[];for(let r,o=-1,i=-1,a=e.childrenLength();++oDr.encode(e,t))),l=Eo.createChildrenVector(e,s),c=t.metadata&&t.metadata.size>0?Eo.createCustomMetadataVector(e,[...t.metadata].map((t=>{let[n,r]=t;const o=e.createString(`${n}`),i=e.createString(`${r}`);return wo.startKeyValue(e),wo.addKey(e,o),wo.addValue(e,i),wo.endKeyValue(e)}))):-1;t.name&&(n=e.createString(t.name));Eo.startField(e),Eo.addType(e,r),Eo.addTypeType(e,a),Eo.addChildren(e,l),Eo.addNullable(e,!!t.nullable),-1!==n&&Eo.addName(e,n);-1!==o&&Eo.addDictionary(e,o);-1!==c&&Eo.addCustomMetadata(e,c);return Eo.endField(e)},Dr.decode=function(e,t){let n,r,o,i,a,s;t&&(s=e.dictionary())?t.has(n=Oe(s.id()))?(i=(i=s.indexType())?$i(i):new lt,a=new qt(t.get(n),i,n,s.isOrdered()),r=new Dr(e.name(),a,e.nullable(),Gi(e))):(i=(i=s.indexType())?$i(i):new lt,t.set(n,o=Ki(e,Xi(e,t))),a=new qt(o,i,n,s.isOrdered()),r=new Dr(e.name(),a,e.nullable(),Gi(e))):(o=Ki(e,Xi(e,t)),r=new Dr(e.name(),o,e.nullable(),Gi(e)));return r||null},Dr.fromJSON=function(e,t){let n,r,o,i,a,s;return t&&(i=e.dictionary)?t.has(n=i.id)?(r=(r=i.indexType)?Pi(r):new lt,s=new qt(t.get(n),r,n,i.isOrdered),o=new Dr(e.name,s,e.nullable,Wi(e.metadata))):(r=(r=i.indexType)?Pi(r):new lt,t.set(n,a=Li(e,Ci(e,t))),s=new qt(a,r,n,i.isOrdered),o=new Dr(e.name,s,e.nullable,Wi(e.metadata))):(a=Li(e,Ci(e,t)),o=new Dr(e.name,a,e.nullable,Wi(e.metadata))),o||null},jr.encode=function(e,t){const n=t.fields.map((t=>Dr.encode(e,t)));ko.startFieldsVector(e,n.length);const r=ko.createFieldsVector(e,n),o=t.metadata&&t.metadata.size>0?ko.createCustomMetadataVector(e,[...t.metadata].map((t=>{let[n,r]=t;const o=e.createString(`${n}`),i=e.createString(`${r}`);return wo.startKeyValue(e),wo.addKey(e,o),wo.addValue(e,i),wo.endKeyValue(e)}))):-1;ko.startSchema(e),ko.addFields(e,r),ko.addEndianness(e,Yi?yo.Little:yo.Big),-1!==o&&ko.addCustomMetadata(e,o);return ko.endSchema(e)},jr.decode=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lr.V5;const r=function(e,t){const n=[];for(let r,o=-1,i=-1,a=e.fieldsLength();++o1&&void 0!==arguments[1]?arguments[1]:new Map;return new jr(function(e,t){return(e.fields||[]).filter(Boolean).map((e=>Dr.fromJSON(e,t)))}(e,t),Wi(e.metadata),t)},Fi.encode=function(e,t){const n=t.nodes||[],r=t.buffers||[];ci.startNodesVector(e,n.length);for(const a of n.slice().reverse())Hi.encode(e,a);const o=e.endVector();ci.startBuffersVector(e,r.length);for(const a of r.slice().reverse())Ui.encode(e,a);const i=e.endVector();return ci.startRecordBatch(e),ci.addLength(e,BigInt(t.length)),ci.addNodes(e,o),ci.addBuffers(e,i),ci.endRecordBatch(e)},Fi.decode=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lr.V5;if(null!==e.compression())throw new Error("Record batch compression not implemented");return new Fi(e.length(),function(e){const t=[];for(let n,r=-1,o=-1,i=e.nodesLength();++r1&&void 0!==arguments[1]?arguments[1]:Lr.V5;return new Vi(Fi.decode(e.data(),t),e.id(),e.isDelta())},Vi.fromJSON=function(e){return new Vi(Ri(e.data),e.id,e.isDelta)},Hi.encode=function(e,t){return li.createFieldNode(e,BigInt(t.length),BigInt(t.nullCount))},Hi.decode=function(e){return new Hi(e.length(),e.nullCount())},Ui.encode=function(e,t){return si.createBuffer(e,BigInt(t.offset),BigInt(t.length))},Ui.decode=function(e){return new Ui(e.offset(),e.length())};const Yi=(()=>{const e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]})(),Zi=e=>`Expected ${oo[e]} Message in stream, but was null or length 0.`,Ji=e=>`Header pointer of flatbuffer-encoded ${oo[e]} Message is null or length 0.`,Qi=(e,t)=>`Expected to read ${e} metadata bytes, but only read ${t}.`,ea=(e,t)=>`Expected to read ${e} bytes for message body, but only read ${t}.`;class ta{constructor(e){this.source=e instanceof Uo?e:new Uo(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||-1===e.value&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?jo:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let t;if((t=this.next()).done)return null;if(null!=e&&t.value.headerType!==e)throw new Error(Zi(e));return t.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);const t=F(this.source.read(e));if(t.byteLength0&&void 0!==arguments[0]&&arguments[0];const t=oo.Schema,n=this.readMessage(t),r=null===n||void 0===n?void 0:n.header();if(e&&!r)throw new Error(Ji(t));return r}readMetadataLength(){const e=this.source.read(oa),t=e&&new Ao(e),n=(null===t||void 0===t?void 0:t.readInt32(0))||0;return{done:0===n,value:n}}readMetadata(e){const t=this.source.read(e);if(!t)return jo;if(t.byteLength0&&void 0!==arguments[0]&&arguments[0];return function*(){const n=oo.Schema,r=yield e.readMessage(n),o=null===r||void 0===r?void 0:r.header();if(t&&!o)throw new Error(Ji(n));return o}()}))}readMetadataLength(){return(0,f.mG)(this,void 0,void 0,(function*(){const e=yield this.source.read(oa),t=e&&new Ao(e),n=(null===t||void 0===t?void 0:t.readInt32(0))||0;return{done:0===n,value:n}}))}readMetadata(e){return(0,f.mG)(this,void 0,void 0,(function*(){const t=yield this.source.read(e);if(!t)return jo;if(t.byteLength[...t,...n.VALIDITY&&[n.VALIDITY]||[],...n.TYPE_ID&&[n.TYPE_ID]||[],...n.OFFSET&&[n.OFFSET]||[],...n.DATA&&[n.DATA]||[],...e(n.children)]),[])}(this._body)}readMessage(e){let t;if((t=this.next()).done)return null;if(null!=e&&t.value.headerType!==e)throw new Error(Zi(e));return t.value}readSchema(){const e=oo.Schema,t=this.readMessage(e),n=null===t||void 0===t?void 0:t.header();if(!t||!n)throw new Error(Ji(e));return n}}const oa=4,ia="ARROW1",aa=new Uint8Array(6);for(let Qa=0;Qa<6;Qa+=1)aa[Qa]=ia.codePointAt(Qa);function sa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(let n=-1,r=aa.length;++nthis)):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return Io.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return Io.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof pa?e:x(e)?function(e){return new da(new za(e))}(e):k(e)?function(e){return(0,f.mG)(this,void 0,void 0,(function*(){const{size:t}=yield e.stat(),n=new Ko(e,t);return t>=ua&&sa(yield n.readAt(0,la+7&-8))?new ha(new Ma(n)):new ba(new Oa(n))}))}(e):v(e)?(()=>(0,f.mG)(this,void 0,void 0,(function*(){return yield pa.from(yield e)})))():q(e)||_(e)||R(e)||S(e)?function(e){return(0,f.mG)(this,void 0,void 0,(function*(){const t=yield e.peek(la+7&-8);return t&&t.byteLength>=4?sa(t)?new fa(new ya(yield e.read())):new ba(new Oa(e)):new ba(new Oa(function(){return(0,f.FC)(this,arguments,(function*(){}))}()))}))}(new Ho(e)):function(e){const t=e.peek(la+7&-8);return t&&t.byteLength>=4?sa(t)?new fa(new ya(e.read())):new da(new ga(e)):new da(new ga(function*(){}()))}(new Uo(e))}static readAll(e){return e instanceof pa?e.isSync()?va(e):wa(e):x(e)||ArrayBuffer.isView(e)||w(e)||E(e)?va(e):wa(e)}}class da extends pa{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return(0,f.FC)(this,arguments,(function*(){yield(0,f.qq)(yield*(0,f.V2)((0,f.KL)(this[Symbol.iterator]())))}))}}class ba extends pa{constructor(e){super(e),this._impl=e}readAll(){return(0,f.mG)(this,void 0,void 0,(function*(){var e,t,n,r;const o=new Array;try{for(var i,a=!0,s=(0,f.KL)(this);!(e=(i=yield s.next()).done);a=!0){r=i.value,a=!1;const e=r;o.push(e)}}catch(l){t={error:l}}finally{try{a||e||!(n=s.return)||(yield n.call(s))}finally{if(t)throw t.error}}return o}))}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class fa extends da{constructor(e){super(e),this._impl=e}}class ha extends ba{constructor(e){super(e),this._impl=e}}class ma{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map;this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,t){const n=this._loadVectors(e,t,this.schema.fields),r=Pr({type:new At(this.schema.fields),length:e.length,children:n});return new io(this.schema,r)}_loadDictionaryBatch(e,t){const{id:n,isDelta:r}=e,{dictionaries:o,schema:i}=this,a=o.get(n),s=i.dictionaries.get(n),l=this._loadVectors(e.data,t,[s]);return(a&&r?a.concat(new Rr(l)):new Rr(l)).memoize()}_loadVectors(e,t,n){return new ni(t,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}}class ga extends ma{constructor(e,t){super(t),this._reader=x(e)?new ra(this._handle=e):new ta(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=Aa(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):jo}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):jo}next(){if(this.closed)return jo;let e;const{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else{if(e.isRecordBatch()){this._recordBatchIndex++;const n=e.header(),r=t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(n,r)}}if(e.isDictionaryBatch()){this._dictionaryIndex++;const n=e.header(),r=t.readMessageBody(e.bodyLength),o=this._loadDictionaryBatch(n,r);this.dictionaries.set(n.id,o)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new lo(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}}class Oa extends ma{constructor(e,t){super(t),this._reader=new na(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return(0,f.mG)(this,void 0,void 0,(function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}))}open(e){return(0,f.mG)(this,void 0,void 0,(function*(){return this.closed||(this.autoDestroy=Aa(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this}))}throw(e){return(0,f.mG)(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):jo}))}return(e){return(0,f.mG)(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):jo}))}next(){return(0,f.mG)(this,void 0,void 0,(function*(){if(this.closed)return jo;let e;const{_reader:t}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else{if(e.isRecordBatch()){this._recordBatchIndex++;const n=e.header(),r=yield t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(n,r)}}if(e.isDictionaryBatch()){this._dictionaryIndex++;const n=e.header(),r=yield t.readMessageBody(e.bodyLength),o=this._loadDictionaryBatch(n,r);this.dictionaries.set(n.id,o)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new lo(this.schema)}):yield this.return()}))}_readNextMessageAndValidate(e){return(0,f.mG)(this,void 0,void 0,(function*(){return yield this._reader.readMessage(e)}))}}class ya extends ga{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,t){super(e instanceof $o?e:new $o(e),t)}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const e of this._footer.dictionaryBatches())e&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var t;if(this.closed)return null;this._footer||this.open();const n=null===(t=this._footer)||void 0===t?void 0:t.getRecordBatch(e);if(n&&this._handle.seek(n.offset)){const e=this._reader.readMessage(oo.RecordBatch);if(null===e||void 0===e?void 0:e.isRecordBatch()){const t=e.header(),n=this._reader.readMessageBody(e.bodyLength);return this._loadRecordBatch(t,n)}}return null}_readDictionaryBatch(e){var t;const n=null===(t=this._footer)||void 0===t?void 0:t.getDictionaryBatch(e);if(n&&this._handle.seek(n.offset)){const e=this._reader.readMessage(oo.DictionaryBatch);if(null===e||void 0===e?void 0:e.isDictionaryBatch()){const t=e.header(),n=this._reader.readMessageBody(e.bodyLength),r=this._loadDictionaryBatch(t,n);this.dictionaries.set(t.id,r)}}}_readFooter(){const{_handle:e}=this,t=e.size-ca,n=e.readInt32(t),r=e.readAt(t-n,n);return Ro.decode(r)}_readNextMessageAndValidate(e){var t;if(this._footer||this.open(),this._footer&&this._recordBatchIndex1?t-1:0),r=1;rsuper.open}});return(0,f.mG)(this,void 0,void 0,(function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(const e of this._footer.dictionaryBatches())e&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield t.open.call(this,e)}))}readRecordBatch(e){return(0,f.mG)(this,void 0,void 0,(function*(){var t;if(this.closed)return null;this._footer||(yield this.open());const n=null===(t=this._footer)||void 0===t?void 0:t.getRecordBatch(e);if(n&&(yield this._handle.seek(n.offset))){const e=yield this._reader.readMessage(oo.RecordBatch);if(null===e||void 0===e?void 0:e.isRecordBatch()){const t=e.header(),n=yield this._reader.readMessageBody(e.bodyLength);return this._loadRecordBatch(t,n)}}return null}))}_readDictionaryBatch(e){return(0,f.mG)(this,void 0,void 0,(function*(){var t;const n=null===(t=this._footer)||void 0===t?void 0:t.getDictionaryBatch(e);if(n&&(yield this._handle.seek(n.offset))){const e=yield this._reader.readMessage(oo.DictionaryBatch);if(null===e||void 0===e?void 0:e.isDictionaryBatch()){const t=e.header(),n=yield this._reader.readMessageBody(e.bodyLength),r=this._loadDictionaryBatch(t,n);this.dictionaries.set(t.id,r)}}}))}_readFooter(){return(0,f.mG)(this,void 0,void 0,(function*(){const{_handle:e}=this;e._pending&&(yield e._pending);const t=e.size-ca,n=yield e.readInt32(t),r=yield e.readAt(t-n,n);return Ro.decode(r)}))}_readNextMessageAndValidate(e){return(0,f.mG)(this,void 0,void 0,(function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndexSa(e))):t.isAsync()?t.readAll().then((e=>new po(e))):new po(t.readAll())}const xa=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},i),p),l),a),o),s),r),{compareSchemas:to,compareFields:function(e,t){return eo.compareFields(e,t)},compareTypes:function(e,t){return eo.visit(e,t)}});var Ea=n(88563),ka=n(54932),qa=n.n(ka),Ta=n(2962),_a=n.n(Ta),Ra=n(10275),Ca=n.n(Ra),Na=n(18930),Ia=n.n(Na),Wa=n(97408),Pa=n.n(Wa),La=n(27801),ja=n.n(La),Da=n(98170),Ba=n(1561);let Fa;setTimeout((()=>n.e(6589).then(n.bind(n,46589)).then((e=>{Fa=e.readParquet}))));const Va=["SUN","MON","TUE","WED","THU","FRI","SAT"],Ua=e=>Pa()("19700101","YYYYMMDD").add(e,"ms").format("YYYY-MM-DD HH:mm:ss.SSS"),Ha=e=>Pa()("19700101","YYYYMMDD").add(e,"s").format("YYYY-MM-DD HH:mm:ss"),Xa=e=>Pa()("19700101","YYYYMMDD").add(e,"m").format("YYYY-MM-DD HH:mm"),Ga=e=>Pa()("19700101","YYYYMMDD").add(e,"h").format("YYYY-MM-DD HH:mm"),$a=e=>Pa()("19700101","YYYYMMDD").add(e,"y").format("YYYY"),Ka={L:Ua,ms:Ua,S:Ha,s:Ha,T:Xa,min:Xa,H:Ga,h:Ga,D:e=>Pa()("19700101","YYYYMMDD").add(e,"d").format("YYYY-MM-DD"),M:e=>Pa()("19700101","YYYYMMDD").add(e,"M").format("YYYY-MM"),W:(e,t)=>{if(!t)throw new Error('Frequency "W" requires parameter');const n=Va.indexOf(t);if(n<0)throw new Error(`Invalid value: ${t}. Supported values: ${JSON.stringify(Va)}`);return`${Pa()("19700101","YYYYMMDD").add(e,"w").day(n-6).format("YYYY-MM-DD")}/${Pa()("19700101","YYYYMMDD").add(e,"w").day(n).format("YYYY-MM-DD")}`},Q:e=>Pa()("19700101","YYYYMMDD").add(e,"Q").endOf("quarter").format("YYYY[Q]Q"),Y:$a,A:$a};let Ya=function(e){return e.CategoricalIndex="categorical",e.DatetimeIndex="datetime",e.Float64Index="float64",e.Int64Index="int64",e.RangeIndex="range",e.UInt64Index="uint64",e.UnicodeIndex="unicode",e.TimedeltaIndex="time",e}({}),Za=function(e){return e.BLANK="blank",e.INDEX="index",e.COLUMNS="columns",e.DATA="data",e}({});class Ja{constructor(e){this[Ea.sc]=!0,this._index=void 0,this._columns=void 0,this._indexNames=void 0,this._data=void 0,this._fields=void 0,this._types=void 0,this._styler=void 0;const t=Sa(e.data?Fa(e.data):e.data),n=Ja.parseSchema(t),r=Ja.getRawColumns(n),o=Ja.parseFields(t.schema),i=Ja.parseIndex(t,n),a=Ja.parseColumns(n),s=Ja.parseIndexNames(n),l=Ja.parseData(t,a,r),c=Ja.parseTypes(t,n),u=e.styler?Ja.parseStyler(e.styler):void 0;this._index=i,this._columns=a,this._data=l,this._types=c,this._fields=o,this._styler=u,this._indexNames=s}static parseSchema(e){const t=e.schema.metadata.get("pandas");if((0,Da.le)(t))throw new Error("Table schema is missing.");return JSON.parse(t)}static getRawColumns(e){return e.columns.map((e=>e.field_name)).filter((t=>!e.index_columns.includes(t)))}static parseIndex(e,t){return t.index_columns.map((t=>{if(Ja.isRangeIndex(t)){const{start:e,stop:n,step:r}=t;return qa()(e,n,r)}const n=e.getChild(t);return n instanceof Rr&&n.type instanceof at?null:n})).filter((e=>null!==e))}static parseIndexNames(e){return e.index_columns.map((e=>{if(Ja.isRangeIndex(e)){const{name:t}=e;return t||""}return e.startsWith("__index_level_")?"":e}))}static parseColumns(e){const t=e.column_indexes.length>1;return _a()(e.columns.map((e=>e.field_name)).filter((t=>!e.index_columns.includes(t))).map((e=>t?JSON.parse(e.replace(/\(/g,"[").replace(/\)/g,"]").replace(/'/g,'"')):[e])))}static parseData(e,t,n){const r=e.numRows,o=t.length>0?t[0].length:0;return 0===r||0===o?e.select([]):e.select(n)}static parseTypes(e,t){return{index:Ja.parseIndexType(t),data:Ja.parseDataType(e,t)}}static parseIndexType(e){return e.index_columns.map((t=>{if(Ja.isRangeIndex(t))return{pandas_type:Ya.RangeIndex,numpy_type:Ya.RangeIndex,meta:t};const n=e.columns.find((e=>e.field_name===t));if(!n)throw new Error(`${t} index not found.`);return{pandas_type:n.pandas_type,numpy_type:n.numpy_type,meta:n.metadata}}))}getCategoricalOptions(e){var t,n;const{dataColumns:r}=this.dimensions;if(e<0||e>=r)throw new Error(`Column index is out of range: ${e}`);if(!(this._fields[String(e)].type instanceof qt))return;const o=null===(t=this._data.getChildAt(e))||void 0===t||null===(n=t.data[0])||void 0===n?void 0:n.dictionary;if(o){const e=[];for(let t=0;t!t.index_columns.includes(e.field_name))).map((e=>({pandas_type:e.pandas_type,numpy_type:e.numpy_type,meta:e.metadata})))}static parseStyler(e){return{uuid:e.uuid,caption:e.caption,styles:e.styles,displayValues:new Ja({data:e.displayValues})}}concatIndexes(e,t){if(0===e.length)return this._index;if(0===this._index.length)return e;if(!Ja.sameIndexTypes(this._types.index,t)){const e=t.map((e=>Ja.getTypeName(e))),n=this._types.index.map((e=>Ja.getTypeName(e)));throw new Error(`\nUnsupported operation. The data passed into \`add_rows()\` must have the same\nindex signature as the original data.\n\nIn this case, \`add_rows()\` received \`${JSON.stringify(e)}\`\nbut was expecting \`${JSON.stringify(n)}\`.\n`)}if(0===this._types.index.length)throw new Error("There was an error while parsing index types.");if(this._types.index[0].pandas_type===Ya.RangeIndex){const{step:t,stop:n}=this._types.index[0].meta;e=[qa()(n,n+e[0].length*t,t)]}return Ca()(this._index,e).map((e=>e[0].concat(e[1])))}static sameIndexTypes(e,t){return e.length===t.length&&e.every(((e,n)=>ne.pandas_type)),n=this._types.data.map((e=>e.pandas_type));throw new Error(`\nUnsupported operation. The data passed into \`add_rows()\` must have the same\ndata signature as the original data.\n\nIn this case, \`add_rows()\` received \`${JSON.stringify(e)}\`\nbut was expecting \`${JSON.stringify(n)}\`.\n`)}const n=e.selectAt(qa()(0,this._data.numCols));return this._data.concat(n)}static sameDataTypes(e,t){return e.every(((e,n)=>{var r;return e.pandas_type===(null===(r=t[n])||void 0===r?void 0:r.pandas_type)}))}concatTypes(e){return{index:this.concatIndexTypes(e.index),data:this.concatDataTypes(e.data)}}concatIndexTypes(e){if(0===e.length)return this._types.index;if(0===this._types.index.length)return e;if(!Ja.sameIndexTypes(this._types.index,e)){const t=e.map((e=>Ja.getTypeName(e))),n=this._types.index.map((e=>Ja.getTypeName(e)));throw new Error(`\nUnsupported operation. The data passed into \`add_rows()\` must have the same\nindex signature as the original data.\n\nIn this case, \`add_rows()\` received \`${JSON.stringify(t)}\`\nbut was expecting \`${JSON.stringify(n)}\`.\n`)}return this._types.index.map((t=>{if(t.pandas_type===Ya.RangeIndex){const{stop:n,step:r}=t.meta,{start:o,stop:i,step:a}=e[0].meta,s=n+(i-o)/a*r;return{...t,meta:{...t.meta,stop:s}}}return t}))}concatDataTypes(e){return 0===this._types.data.length?e:this._types.data}static isRangeIndex(e){return"object"===typeof e&&"range"===e.kind}static formatIntervalType(e,t){const n=t.match(/interval\[(.+), (both|left|right|neither)\]/);if(null===n)throw new Error(`Invalid interval type: ${t}`);const[,r,o]=n;return this.formatInterval(e,r,o)}static formatInterval(e,t,n){const r=e.toJSON(),o="both"===n||"right"===n?"]":")";return`${("both"===n||"left"===n?"[":"(")+Ja.format(r.left,{pandas_type:t,numpy_type:t})}, ${Ja.format(r.right,{pandas_type:t,numpy_type:t})+o}`}static convertToSeconds(e,t){let n;if(1===t)n=1e3;else if(2===t)n=1e6;else{if(3!==t)return Number(e);n=1e9}return"bigint"!==typeof e||Number.isSafeInteger(Number(e))?Number(e)/n:Number(e/BigInt(n))}static formatTime(e,t){var n,r;const o=Ja.convertToSeconds(e,null!==(n=null===t||void 0===t||null===(r=t.type)||void 0===r?void 0:r.unit)&&void 0!==n?n:0);return Pa().unix(o).utc().format(o%1===0?"HH:mm:ss":"HH:mm:ss.SSS")}static formatDuration(e,t){var n,r;return Pa().duration(Ja.convertToSeconds(e,null!==(n=null===t||void 0===t||null===(r=t.type)||void 0===r?void 0:r.unit)&&void 0!==n?n:3),"seconds").humanize()}static formatDecimal(e,t){let n=xa.bigNumToString(new xa.BN(e)).padStart(t,"0");if(0===t)return n;let r="";n.startsWith("-")&&(r="-",n=n.slice(1));const o=n.slice(0,-t)||"0",i=Ia()(n.slice(-t),"0")||"";return`${r}${o}`+(i?`.${i}`:"")}static formatPeriodType(e,t){const n=t.match(/period\[(.*)]/);if(null===n)return(0,Ba.KE)(`Invalid period type: ${t}`),String(e);const[,r]=n;return this.formatPeriod(e,r)}static formatPeriod(e,t){const[n,r]=t.split("-",2),o=Ka[n];if(!o)return(0,Ba.KE)(`Unsupported period frequency: ${t}`),String(e);const i=Number(e);return Number.isSafeInteger(i)?o(i,r):((0,Ba.KE)(`Unsupported value: ${e}. Supported values: [${Number.MIN_SAFE_INTEGER}-${Number.MAX_SAFE_INTEGER}]`),String(e))}static formatCategoricalType(e,t){const n=t.metadata.get("ARROW:extension:name");if(n){const r=JSON.parse(t.metadata.get("ARROW:extension:metadata"));if("pandas.interval"===n){const{subtype:t,closed:n}=r;return Ja.formatInterval(e,t,n)}if("pandas.Period"===n){const{freq:t}=r;return Ja.formatPeriod(e,t)}}return String(e)}static getTypeName(e){return("object"===e.pandas_type?e.numpy_type:e.pandas_type).toLowerCase().trim()}static format(e,t,n){const r=t&&Ja.getTypeName(t);if((0,Da.le)(e))return"";const o=e instanceof Date||Number.isFinite(e);if(o&&"date"===r)return Pa().utc(e).format("YYYY-MM-DD");if("bigint"===typeof e&&"time"===r)return Ja.formatTime(Number(e),n);if(o&&"datetimetz"===r){const n=null===t||void 0===t?void 0:t.meta;let r=Pa()(e);return null!==n&&void 0!==n&&n.timezone&&(r=Pa().tz.zone(null===n||void 0===n?void 0:n.timezone)?r.tz(null===n||void 0===n?void 0:n.timezone):r.utcOffset(null===n||void 0===n?void 0:n.timezone)),r.format("YYYY-MM-DD HH:mm:ssZ")}return o&&null!==r&&void 0!==r&&r.startsWith("datetime")?Pa().utc(e).format("YYYY-MM-DD HH:mm:ss"):null!==r&&void 0!==r&&r.startsWith("interval")?Ja.formatIntervalType(e,r):null!==r&&void 0!==r&&r.startsWith("period")?Ja.formatPeriodType(e,r):"categorical"===r?this.formatCategoricalType(e,n):null!==r&&void 0!==r&&r.startsWith("timedelta")?this.formatDuration(e,n):"decimal"===r?this.formatDecimal(e,(null===n||void 0===n||null===(i=n.type)||void 0===i?void 0:i.scale)||0):"object"===r||null!==r&&void 0!==r&&r.startsWith("list")?(null===n||void 0===n?void 0:n.type)instanceof At?JSON.stringify(e,((e,t)=>{if((0,Da.bb)(t))return"bigint"===typeof t?Number(t):t})):JSON.stringify(e,((e,t)=>"bigint"===typeof t?Number(t):t)):"float64"===r&&Number.isFinite(e)?ja()(e).format("0,0.0000"):String(e);var i}get index(){return this._index}get indexNames(){return this._indexNames}get columns(){return this._columns}get data(){return this._data}get types(){return this._types}get cssId(){if(!(0,Da.le)(this._styler)&&!(0,Da.le)(this._styler.uuid))return`T_${this._styler.uuid}`}get cssStyles(){var e;return(null===(e=this._styler)||void 0===e?void 0:e.styles)||void 0}get caption(){var e;return(null===(e=this._styler)||void 0===e?void 0:e.caption)||void 0}get dimensions(){var e,t;const n=this._index.length||this.types.index.length||1,r=this._columns.length||1,o=this._data.numRows||0,i=this._data.numCols||(null===(e=this._columns)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.length)||0;return{headerRows:r,headerColumns:n,dataRows:o,dataColumns:i,rows:r+o,columns:n+i}}isEmpty(){return 0===this._index.length&&0===this._columns.length&&0===this._data.numRows&&0===this._data.numCols}getCell(e,t){var n,r;const{headerRows:o,headerColumns:i,rows:a,columns:s}=this.dimensions;if(e<0||e>=a)throw new Error(`Row index is out of range: ${e}`);if(t<0||t>=s)throw new Error(`Column index is out of range: ${t}`);const l=e>=o&&t=i;if(e0&&n.push(`level${e}`),{type:Za.BLANK,cssClass:n.join(" "),content:""}}if(l){var u;const n=e-o,r=null!==(u=this._styler)&&void 0!==u&&u.uuid?`${this.cssId}level${t}_row${n}`:void 0,a=["row_heading",`level${t}`,`row${n}`].join(" "),l=this._types.index[t],c=this.getIndexValue(n,t);let p=this._fields[`__index_level_${String(t)}__`];return void 0===p&&(p=this._fields[String(s-i)]),{type:Za.INDEX,cssId:r,cssClass:a,content:c,contentType:l,field:p}}if(c){const n=t-i,r=["col_heading",`level${e}`,`col${n}`].join(" ");return{type:Za.COLUMNS,cssClass:r,content:this._columns[e][n],contentType:{pandas_type:Ya.UnicodeIndex,numpy_type:"object"}}}const p=e-o,d=t-i,b=null!==(n=this._styler)&&void 0!==n&&n.uuid?`${this.cssId}row${p}_col${d}`:void 0,f=["data",`row${p}`,`col${d}`].join(" "),h=this._types.data[d],m=this._fields[String(d)],g=this.getDataValue(p,d),O=null!==(r=this._styler)&&void 0!==r&&r.displayValues?this._styler.displayValues.getCell(e,t).content:void 0;return{type:Za.DATA,cssId:b,cssClass:f,content:g,contentType:h,displayContent:O,field:m}}getIndexValue(e,t){const n=this._index[t];return n instanceof Rr?n.get(e):n[e]}getDataValue(e,t){var n;return null===(n=this._data.getChildAt(t))||void 0===n?void 0:n.get(e)}addRows(e){if(this._styler||e._styler)throw new Error("\nUnsupported operation. `add_rows()` does not support Pandas Styler objects.\n\nIf you do not need the Styler's styles, try passing the `.data` attribute of\nthe Styler object instead to concatenate just the underlying dataframe.\n\nFor example:\n```\nst.add_rows(my_styler.data)\n```\n");if(e.isEmpty())return(0,Ea.Uy)(this,(e=>e));if(this.isEmpty())return(0,Ea.Uy)(e,(e=>e));const t=this.concatIndexes(e._index,e._types.index),n=this.concatData(e._data,e._types.data),r=this.concatTypes(e._types);return(0,Ea.Uy)(this,(e=>{e._index=t,e._data=n,e._types=r}))}static parseFields(e){return Object.fromEntries((e.fields||[]).map(((e,t)=>[e.name.startsWith("__index_level_")?e.name:String(t),e])))}}},91439:(e,t,n)=>{"use strict";n.d(t,{AG:()=>N,BN:()=>w,De:()=>T,Eh:()=>c,Fp:()=>f,KR:()=>B,MA:()=>_,Od:()=>W,PW:()=>g,Pz:()=>C,UG:()=>E,W_:()=>A,XZ:()=>b,Y2:()=>R,Zh:()=>m,_b:()=>u,bZ:()=>l,eI:()=>v,ef:()=>S,gO:()=>p,hE:()=>d,hP:()=>I,hz:()=>M,iE:()=>D,iR:()=>P,jM:()=>O,jb:()=>k,kM:()=>x,nk:()=>j,oJ:()=>z,oi:()=>L,qj:()=>h,uh:()=>q,xO:()=>y});var r=n(49378);const o=r.Reader,i=r.Writer,a=r.util,s=r.roots.default||(r.roots.default={}),l=s.Alert=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n>>3){case 1:r.body=e.string();break;case 2:r.format=e.int32();break;case 3:r.icon=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.body&&e.hasOwnProperty("body")&&!a.isString(e.body))return"body: string expected";if(null!=e.format&&e.hasOwnProperty("format"))switch(e.format){default:return"format: enum value expected";case 0:case 1:case 2:case 3:case 4:}return null!=e.icon&&e.hasOwnProperty("icon")&&!a.isString(e.icon)?"icon: string expected":null},e.fromObject=function(e){if(e instanceof s.Alert)return e;let t=new s.Alert;switch(null!=e.body&&(t.body=String(e.body)),e.format){default:if("number"===typeof e.format){t.format=e.format;break}break;case"UNUSED":case 0:t.format=0;break;case"ERROR":case 1:t.format=1;break;case"WARNING":case 2:t.format=2;break;case"INFO":case 3:t.format=3;break;case"SUCCESS":case 4:t.format=4}return null!=e.icon&&(t.icon=String(e.icon)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.body="",n.format=t.enums===String?"UNUSED":0,n.icon=""),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),null!=e.format&&e.hasOwnProperty("format")&&(n.format=t.enums===String?void 0===s.Alert.Format[e.format]?e.format:s.Alert.Format[e.format]:e.format),null!=e.icon&&e.hasOwnProperty("icon")&&(n.icon=e.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/Alert"},e.Format=function(){const e={},t=Object.create(e);return t[e[0]="UNUSED"]=0,t[e[1]="ERROR"]=1,t[e[2]="WARNING"]=2,t[e[3]="INFO"]=3,t[e[4]="SUCCESS"]=4,t}(),e})(),c=(s.AppPage=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n>>3){case 1:r.pageScriptHash=e.string();break;case 2:r.pageName=e.string();break;case 3:r.icon=e.string();break;case 4:r.isDefault=e.bool();break;case 5:r.sectionHeader=e.string();break;case 6:r.urlPathname=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&!a.isString(e.pageScriptHash)?"pageScriptHash: string expected":null!=e.pageName&&e.hasOwnProperty("pageName")&&!a.isString(e.pageName)?"pageName: string expected":null!=e.icon&&e.hasOwnProperty("icon")&&!a.isString(e.icon)?"icon: string expected":null!=e.isDefault&&e.hasOwnProperty("isDefault")&&"boolean"!==typeof e.isDefault?"isDefault: boolean expected":null!=e.sectionHeader&&e.hasOwnProperty("sectionHeader")&&!a.isString(e.sectionHeader)?"sectionHeader: string expected":null!=e.urlPathname&&e.hasOwnProperty("urlPathname")&&!a.isString(e.urlPathname)?"urlPathname: string expected":null},e.fromObject=function(e){if(e instanceof s.AppPage)return e;let t=new s.AppPage;return null!=e.pageScriptHash&&(t.pageScriptHash=String(e.pageScriptHash)),null!=e.pageName&&(t.pageName=String(e.pageName)),null!=e.icon&&(t.icon=String(e.icon)),null!=e.isDefault&&(t.isDefault=Boolean(e.isDefault)),null!=e.sectionHeader&&(t.sectionHeader=String(e.sectionHeader)),null!=e.urlPathname&&(t.urlPathname=String(e.urlPathname)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.pageScriptHash="",n.pageName="",n.icon="",n.isDefault=!1,n.sectionHeader="",n.urlPathname=""),null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&(n.pageScriptHash=e.pageScriptHash),null!=e.pageName&&e.hasOwnProperty("pageName")&&(n.pageName=e.pageName),null!=e.icon&&e.hasOwnProperty("icon")&&(n.icon=e.icon),null!=e.isDefault&&e.hasOwnProperty("isDefault")&&(n.isDefault=e.isDefault),null!=e.sectionHeader&&e.hasOwnProperty("sectionHeader")&&(n.sectionHeader=e.sectionHeader),null!=e.urlPathname&&e.hasOwnProperty("urlPathname")&&(n.urlPathname=e.urlPathname),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/AppPage"},e})(),s.Arrow=(()=>{function e(e){if(this.columnOrder=[],this.selectionMode=[],e)for(let t=Object.keys(e),n=0;n>>3){case 1:r.data=e.bytes();break;case 2:r.styler=s.Styler.decode(e,e.uint32());break;case 3:r.width=e.uint32();break;case 4:r.height=e.uint32();break;case 5:r.useContainerWidth=e.bool();break;case 6:r.id=e.string();break;case 7:r.columns=e.string();break;case 8:r.editingMode=e.int32();break;case 9:r.disabled=e.bool();break;case 10:r.formId=e.string();break;case 11:r.columnOrder&&r.columnOrder.length||(r.columnOrder=[]),r.columnOrder.push(e.string());break;case 12:if(r.selectionMode&&r.selectionMode.length||(r.selectionMode=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos=0&&(t.data=e.data)),null!=e.styler){if("object"!==typeof e.styler)throw TypeError(".Arrow.styler: object expected");t.styler=s.Styler.fromObject(e.styler)}switch(null!=e.width&&(t.width=e.width>>>0),null!=e.height&&(t.height=e.height>>>0),null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),null!=e.id&&(t.id=String(e.id)),null!=e.columns&&(t.columns=String(e.columns)),e.editingMode){default:if("number"===typeof e.editingMode){t.editingMode=e.editingMode;break}break;case"READ_ONLY":case 0:t.editingMode=0;break;case"FIXED":case 1:t.editingMode=1;break;case"DYNAMIC":case 2:t.editingMode=2}if(null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.formId&&(t.formId=String(e.formId)),e.columnOrder){if(!Array.isArray(e.columnOrder))throw TypeError(".Arrow.columnOrder: array expected");t.columnOrder=[];for(let n=0;n{function e(e){if(e)for(let t=Object.keys(e),n=0;n>>3){case 1:r.uuid=e.string();break;case 2:r.caption=e.string();break;case 3:r.styles=e.string();break;case 4:r.displayValues=e.bytes();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.uuid&&e.hasOwnProperty("uuid")&&!a.isString(e.uuid)?"uuid: string expected":null!=e.caption&&e.hasOwnProperty("caption")&&!a.isString(e.caption)?"caption: string expected":null!=e.styles&&e.hasOwnProperty("styles")&&!a.isString(e.styles)?"styles: string expected":null!=e.displayValues&&e.hasOwnProperty("displayValues")&&!(e.displayValues&&"number"===typeof e.displayValues.length||a.isString(e.displayValues))?"displayValues: buffer expected":null},e.fromObject=function(e){if(e instanceof s.Styler)return e;let t=new s.Styler;return null!=e.uuid&&(t.uuid=String(e.uuid)),null!=e.caption&&(t.caption=String(e.caption)),null!=e.styles&&(t.styles=String(e.styles)),null!=e.displayValues&&("string"===typeof e.displayValues?a.base64.decode(e.displayValues,t.displayValues=a.newBuffer(a.base64.length(e.displayValues)),0):e.displayValues.length>=0&&(t.displayValues=e.displayValues)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.uuid="",n.caption="",n.styles="",t.bytes===String?n.displayValues="":(n.displayValues=[],t.bytes!==Array&&(n.displayValues=a.newBuffer(n.displayValues)))),null!=e.uuid&&e.hasOwnProperty("uuid")&&(n.uuid=e.uuid),null!=e.caption&&e.hasOwnProperty("caption")&&(n.caption=e.caption),null!=e.styles&&e.hasOwnProperty("styles")&&(n.styles=e.styles),null!=e.displayValues&&e.hasOwnProperty("displayValues")&&(n.displayValues=t.bytes===String?a.base64.encode(e.displayValues,0,e.displayValues.length):t.bytes===Array?Array.prototype.slice.call(e.displayValues):e.displayValues),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/Styler"},e})(),s.ArrowNamedDataSet=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n