|
|
!(function(){var ec=Math.pow;var Sc=(cn,yn,de)=>new Promise((re,xe)=>{var tt=Ne=>{try{Pe(de.next(Ne))}catch(je){xe(je)}},At=Ne=>{try{Pe(de.throw(Ne))}catch(je){xe(je)}},Pe=Ne=>Ne.done?re(Ne.value):Promise.resolve(Ne.value).then(tt,At);Pe((de=de.apply(cn,yn)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[41953],{55304:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return je}});var re=de(87462),xe=de(67294),tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},At=tt,Pe=de(84089),Ne=function(ye,qe){return xe.createElement(Pe.Z,(0,re.Z)({},ye,{ref:qe,icon:At}))},je=xe.forwardRef(Ne)},24018:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return je}});var re=de(87462),xe=de(67294),tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},At=tt,Pe=de(84089),Ne=function(ye,qe){return xe.createElement(Pe.Z,(0,re.Z)({},ye,{ref:qe,icon:At}))},je=xe.forwardRef(Ne)},40043:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return je}});var re=de(87462),xe=de(67294),tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},At=tt,Pe=de(84089),Ne=function(ye,qe){return xe.createElement(Pe.Z,(0,re.Z)({},ye,{ref:qe,icon:At}))},je=xe.forwardRef(Ne)},38308:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return je}});var re=de(87462),xe=de(67294),tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},At=tt,Pe=de(84089),Ne=function(ye,qe){return xe.createElement(Pe.Z,(0,re.Z)({},ye,{ref:qe,icon:At}))},je=xe.forwardRef(Ne)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(cn,yn){"use strict";yn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},52654:function(cn,yn){"use strict";yn.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var cn={},yn="5.0",de={},re=null,xe=!1,tt=!1,At=null,Pe=!1,Ne=null,je=null,Ee=0;Ee<arguments.length;Ee++){var ye=arguments[Ee];if(ye!==null)switch(typeof ye){case"number":yn=ye.toFixed(1);break;case"string":ye.match(new RegExp("^[0-9]\\.[0-9]+$"))?yn=ye:At=ye;break;case"object":typeof ye.is3D!="undefined"?re=ye:de=ye;break;case"boolean":xe=ye,tt=!0;break}}re===null&&(re={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},de.material_id!==void 0&&!tt&&(xe=!0)),At!==null&&de.id===void 0&&(de.id=At);var qe="",it="",he=!1,gt=null,kt=null,Xe=null,ft=!1,Ze=null,Je=null,et=null,Ye=null,We=null;de.height!==void 0&&(de.height=Math.round(de.height)),de.width!==void 0&&(de.width=Math.round(de.width));var $e=function(vt){return parseFloat(vt)>4?parseFloat(vt):5};cn.setHTML5Codebase=function(vt,nt){je=vt,Nt(vt,nt)},cn.setJavaCodebase=cn.setJavaCodebaseVersion=cn.isCompiledInstalled=cn.setPreCompiledScriptPath=cn.setPreCompiledResourcePath=function(){},cn.setHTML5CodebaseVersion=function(vt,nt){var Vt=parseFloat(vt);if(Vt!==NaN&&Vt<5){console.log("The GeoGebra HTML5 codebase version "+Vt+" is deprecated. Using version latest instead.");return}Ne=vt,Le(vt,nt)},cn.getHTML5CodebaseVersion=function(){return kt},cn.getParameters=function(){return de},cn.setFontsCSSURL=function(vt){Ye=vt},cn.setGiacJSURL=function(vt){},cn.setJNLPFile=function(vt){qe=vt},cn.setJNLPBaseDir=function(vt){},cn.inject=function(){function vt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var nt="auto",Vt=de.id,un,Ut=!1,fn=0;fn<arguments.length;fn++){var en=arguments[fn];typeof en=="string"?(en=en.toLowerCase(),en.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?nt=en:Vt=arguments[fn]):typeof en=="boolean"?Ut=en:en instanceof HTMLElement&&(un=en)}En();function En(){if(!Pe){setTimeout(En,200);return}nt=jt(nt);var _n=un||document.getElementById(Vt);if(!_n){console.log("possibly bug on ajax loading? ");return}if(cn.removeExistingApplet(_n,!1),de.width===void 0&&_n.clientWidth&&(de.width=_n.clientWidth),de.height===void 0&&_n.clientHeight&&(de.height=_n.clientHeight),!(de.width&&de.height)&&nt==="html5"&&(delete de.width,delete de.height),gt=nt,nt==="screenshot")Ve(_n,de);else{var Ce=!1;de.hasOwnProperty("playButton")&&de.playButton||de.hasOwnProperty("clickToLoad")&&de.clickToLoad?Ce=!0:de.hasOwnProperty("playButtonAutoDecide")&&de.playButtonAutoDecide&&(Ce=(!lt()||vt())&&Tt()),Ce?(gt="screenshot",Fe(_n,de,Ut,nt)):pt(_n,de,Ut)}}};function lt(){try{return window.self!==window.top}catch(vt){return!0}}function Tt(){return de.hasOwnProperty("screenshotGenerator")&&de.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}cn.getViews=function(){return re},cn.isJavaInstalled=function(){return!1};var _t=function(vt){var nt=function(fn){var en=JSON.parse(fn),En=function(se){return se.type=="G"||se.type=="E"},_n=en.elements?en.elements.filter(En)[0]:en;if(!_n||!_n.url){Vt();return}de.fileName=_n.url,Ot(_n.settings||{}),re.is3D=!0;var Ce="https://www.geogebra.org/images/";cn.setPreviewImage(Ze||_n.previewUrl,Ce+"GeoGebra_loading.png",Ce+"applet_play.png"),vt()},Vt=function(){de.onError&&de.onError(),Rt("Error: Fetching material (id "+de.material_id+") failed.",de)},un=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ut="/materials/"+de.material_id+"?scope=basic";st("https://"+un+"/api/proxy.php?path="+encodeURIComponent(Ut),nt,Vt)};function Ot(vt){var nt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Vt){vt[Vt]=!!vt[Vt]}),nt.forEach(function(Vt){de[Vt]===void 0&&vt[Vt]!==void 0&&(de[Vt]=vt[Vt])}),de.showToolBarHelp===void 0&&(de.showToolBarHelp=de.showToolBar)}function st(vt,nt,Vt){var un=new XMLHttpRequest;un.open("GET",vt),un.onload=function(){nt(un.responseText)},un.onerror=Vt,un.send()}cn.isHTML5Installed=function(){return!0},cn.getLoadedAppletType=function(){return gt},cn.setPreviewImage=function(vt,nt,Vt){Ze=vt,Je=nt,et=Vt},cn.removeExistingApplet=function(vt,nt){var Vt;typeof vt=="string"&&(vt=document.getElementById(vt)),gt=null;var un=null;for(Vt=0;Vt<vt.childNodes.length;Vt++){var Ut=vt.childNodes[Vt],fn=Ut.className;fn==="applet_screenshot"?nt?(Ut.style.display="block",gt="screenshot"):Ut.style.display="none":fn!=="applet_scaler prerender"&&(vt.removeChild(Ut),un=fn&&fn.indexOf("appletParameters")!=-1?Ut.id:null,Vt--)}var en=de.id!==void 0?de.id:un,En=window[en];En&&typeof En.getBase64=="function"&&(En.remove(),window[en]=null)},cn.refreshHitPoints=function(){if($e(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var vt=cn.getAppletObject();return vt&&typeof vt.recalculateEnvironments=="function"?(vt.recalculateEnvironments(),!0):!1},cn.startAnimation=function(){var vt=cn.getAppletObject();return vt&&typeof vt.startAnimation=="function"?(vt.startAnimation(),!0):!1},cn.stopAnimation=function(){var vt=cn.getAppletObject();return vt&&typeof vt.stopAnimation=="function"?(vt.stopAnimation(),!0):!1},cn.getAppletObject=function(){var vt=de.id!==void 0?de.id:"ggbApplet";return window[vt]},cn.resize=function(){};var ct=function(vt,nt,Vt){var un=document.createElement("param");un.setAttribute("name",nt),un.setAttribute("value",Vt),vt.appendChild(un)},He=function(vt){return vt&&vt!=="false"},pt=function(vt,nt,Vt){$e(kt)<=4.2&&(Vt=!0);var un=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==kt||ggbHTML5LoadedCodebaseIsWebSimple&&!ft)&&(un=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ut=document.createElement("div");Ut.classList.add("appletParameters","notranslate");var fn=nt.width,en=nt.height;if(nt.disableAutoScale=nt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():nt.disableAutoScale,nt.width!==void 0)if($e(kt)<=4.4)He(nt.showToolBar)&&(nt.height-=7),He(nt.showAlgebraInput)&&(nt.height-=37),nt.width<605&&He(nt.showToolBar)&&(nt.width=605,fn=605);else{var En=100;(He(nt.showToolBar)||He(nt.showMenuBar))&&(nt.hasOwnProperty("customToolBar")&&(nt.customToolbar=nt.customToolBar),En=He(nt.showMenuBar)?245:155),fn<En&&(nt.width=En,fn=En)}Ut.style.border="none",Ut.style.display="inline-block";for(var _n in nt)nt.hasOwnProperty(_n)&&_n!=="appletOnLoad"&&Ut.setAttribute("data-param-"+_n,nt[_n]);Ye&&Ut.setAttribute("data-param-fontscssurl",Ye),cn.resize=function(){GGBAppletUtils.responsiveResize(vt,nt)},window.addEventListener("resize",function(Kt){cn.resize()});var Ce=typeof nt.appletOnLoad=="function"?nt.appletOnLoad:function(){};if(!Vt&&nt.width!==void 0){nt.hasOwnProperty("showSplash")||Ut.setAttribute("data-param-showSplash","false");var se=vt.querySelector(".applet_scaler.prerender"),ue=se!==null;if(ue)var ge=se.querySelector(".ggb_preview");else{var ge=Mt(fn,en,nt.borderColor,!1);se=document.createElement("div"),se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.style.width=fn+"px",se.style.height=en+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(se,"66%"),$e(kt)>=5?(nt.appletOnLoad=function(Kt){var sr=vt.querySelector(".ggb_preview");sr&&sr.parentNode.removeChild(sr),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(se),window.GGBT_wsf_view&&$(window).trigger("resize"),Ce(Kt)},ue||se.appendChild(ge)):Ut.appendChild(ge),se.appendChild(Ut),ue||vt.appendChild(se),setTimeout(function(){cn.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(Ut),vt.appendChild(pe),nt.appletOnLoad=function(Kt){cn.resize(),Ce(Kt)}}function le(Kt,sr){sr&&typeof sr.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Kt,sr.appletOnLoad):renderGGBElement(Kt),Rt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",sr)}function ze(Kt,sr){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Kt,params:sr}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(mr){le(mr.article,mr.params)}),html5AppletsToProcess=null)},$e(kt)<5&&(Kt.className+=" geogebraweb")):le(Kt,sr)}if(un){scriptLoadStarted=!0;for(var bt=0;bt<Ut.childNodes.length;bt++){var Pt=Ut.childNodes[bt].tagName;Pt==="TABLE"&&(Ut.removeChild(Ut.childNodes[bt]),bt--)}if(ggbHTML5LoadedScript!==null){var mn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');mn!=null&&mn.parentNode.removeChild(mn)}var ln=document.createElement("script"),Xt=function(){ze(Ut,nt)};ln.src=it+Xe,ggbHTML5LoadedCodebaseIsWebSimple=ft,ggbHTML5LoadedCodebaseVersion=kt,ggbHTML5LoadedScript=ln.src,Rt("GeoGebra HTML5 codebase loaded: '"+it+"'.",nt),!je&&(!Ne||Ne=="5.0")?(ft?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Xt()):it.requirejs?__webpack_require__.e(12).then(function(){var Kt=[__webpack_require__(12)];Xt.apply(null,Kt)}.bind(this)).catch(__webpack_require__.oe):(ln.onload=Xt,vt.appendChild(ln))}else ze(Ut,nt);nt.height=en,nt.width=fn},Ve=function(vt,nt,Vt){var un=Mt(nt.width,nt.height,nt.borderColor,Vt),Ut=document.createElement("div");Ut.style.position="relative",Ut.style.display="block",Ut.style.width=nt.width+"px",Ut.style.height=nt.height+"px",Ut.className="applet_screenshot applet_scaler"+(Vt?" applet_screenshot_play":""),Ut.appendChild(un);var fn=GGBAppletUtils.getScale(nt,vt,Vt);Vt?(vt.appendChild(wt()),window.GGBT_wsf_view||(vt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ut,"66%"),vt.appendChild(Ut),fn!==1&&!isNaN(fn)&&(GGBAppletUtils.scaleElement(Ut,fn),Ut.style.width=nt.width+"px",Ut.style.height=nt.height+"px",Ut.parentNode.style.width=nt.width*fn+"px",Ut.parentNode.style.height=nt.height*fn+"px"),cn.resize=function(){Qe(vt,un,Ut,Vt)},window.addEventListener("resize",function(en){cn.resize()}),cn.resize()};function Qe(vt,nt,Vt,un){if(vt.contains(nt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(vt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(vt)}var Ut=GGBAppletUtils.getScale(de,vt,un);Vt.parentNode!==null&&(!isNaN(Ut)&&Ut!==1?(GGBAppletUtils.scaleElement(Vt,Ut),Vt.parentNode.style.width=de.width*Ut+"px",Vt.parentNode.style.height=de.height*Ut+"px"):(GGBAppletUtils.scaleElement(Vt,1),Vt.parentNode.style.width=de.width+"px",Vt.parentNode.style.height=de.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(vt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}cn.onExitFullscreen=function(vt,nt){nt.appendChild(vt)};var Fe=function(vt,nt,Vt,un){Ve(vt,nt,!0);for(var Ut=function(){var En=[];for(en=0;en<vt.childNodes.length;en++)En.push(vt.childNodes[en]);if(window.GGBT_wsf_view){var _n=window.GGBT_wsf_view.renderFullScreen(vt,nt.id),Ce=document.getElementById("fullscreencontainer"),se=jQuery(vt).find(".fullscreencontent");se.length>0?(_n.remove(),se.attr("id","fullscreencontent").show(),jQuery(Ce).append(se),window.dispatchEvent(new Event("resize"))):pt(_n,nt,!1),window.GGBT_wsf_view.launchFullScreen(Ce)}else gt=un,pt(vt,nt,!1);if(!window.GGBT_wsf_view)for(en=0;en<En.length;en++)vt.removeChild(En[en])},fn=vt.getElementsByClassName("ggb_preview_play"),en=0;en<fn.length;en++)fn[en].addEventListener("click",Ut,!1),fn[en].addEventListener("ontouchstart",Ut,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(vt),Tt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},wt=function(){var vt=document.createElement("div");if(vt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var nt='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Vt=document.createElement("style");Vt.styleSheet?Vt.styleSheet.cssText=nt:Vt.appendChild(document.createTextNode(nt)),document.getElementsByTagName("head")[0].appendChild(Vt)}return vt},Mt=function(vt,nt,Vt,un){var Ut=document.createElement("div");Ut.className="ggb_preview",Ut.style.position="absolute",Ut.style.zIndex="90",Ut.style.width=vt-2+"px",Ut.style.height=nt-2+"px",Ut.style.top="0px",Ut.style.left="0px",Ut.style.overflow="hidden",Ut.style.backgroundColor="white";var fn="lightgrey";Vt!==void 0&&(Vt==="none"?fn="transparent":fn=Vt),Ut.style.border="1px solid "+fn;var en=document.createElement("img");if(en.style.position="relative",en.style.zIndex="1000",en.style.top="-1px",en.style.left="-1px",Ze!==null&&en.setAttribute("src",Ze),en.style.opacity=.7,Je!==null){var En,_n,Ce;if(!un){En=document.createElement("img"),En.style.position="absolute",En.style.zIndex="1001",En.style.opacity=1,en.style.opacity=.3,_n=360,_n>vt/4*3&&(_n=vt/4*3),Ce=_n/5.8,En.setAttribute("src",Je),En.setAttribute("width",_n),En.setAttribute("height",Ce);var se=(vt-_n)/2,ue=(nt-Ce)/2;En.style.left=se+"px",En.style.top=ue+"px",Ut.appendChild(En)}}return Ut.appendChild(en),Ut},jt=function(vt){return vt=vt.toLowerCase(),vt==="html5"||vt==="screenshot"?vt:"html5"},Re=["web","webSimple","web3d","tablet","tablet3d","phone"],Le=function(vt,nt){if(kt=vt,nt){Nt(kt,!0);return}var Vt=!xe;if(Vt){var un=$e(kt);!isNaN(un)&&un<4.4&&(Vt=!1)}var Ut,fn;window.location.protocol.substr(0,4)==="http"?Ut=window.location.protocol:Ut="http:";var en=kt.indexOf("//");en>0?fn=kt:en===0?fn=Ut+kt:fn="https://www.geogebra.org/apps/5.2.814.0/";for(var En in Re)if(kt.slice(Re[En].length*-1)===Re[En]||kt.slice((Re[En].length+1)*-1)===Re[En]+"/"){Nt(fn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Vt&&!re.is3D&&!re.AV&&!re.SV&&!re.CV&&!re.EV2&&!re.CP&&!re.PC&&!re.DA&&!re.FI&&!re.PV&&!He(de.showToolBar)&&!He(de.showMenuBar)&&!He(de.showAlgebraInput)&&!He(de.enableRightClick)&&(!de.appName||de.appName=="classic")?fn+="webSimple/":fn+="web3d/",Nt(fn,!1)},Nt=function(vt,nt){if(vt.requirejs){it=vt;return}vt.slice(-1)!=="/"&&(vt+="/"),it=vt,nt===null&&(nt=vt.indexOf("http")===-1),he=nt,Xe="web.nocache.js",ft=!1;var Vt=it.split("/");Vt.length>1&&(!nt&&Vt[Vt.length-2]==="webSimple"?(Xe="webSimple.nocache.js",ft=!0):Re.indexOf(Vt[Vt.length-2])>=0&&(Xe=Vt[Vt.length-2]+".nocache.js")),Vt=vt.split("/"),kt=Vt[Vt.length-3],kt.substr(0,4)==="test"?kt=kt.substr(4,1)+"."+kt.substr(5,1):(kt.substr(0,3)==="war"||kt.substr(0,4)==="beta")&&(kt="5.0");var un=parseFloat(kt);un!==NaN&&un<5&&vt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+un+" is deprecated. Using version latest instead."),Le("5.0",nt))},Rt=function(vt,nt){window.console&&window.console.log&&(!nt||typeof nt.showLogging=="undefined"||nt.showLogging&&nt.showLogging!=="false")&&console.log(vt)};de.material_id!==void 0?_t(Yt):Yt();function Yt(){var vt=yn;Ne!==null?vt=Ne:parseFloat(vt)<5&&(vt="5.0"),Le(vt,!1),je!==null&&Nt(je,he),Pe=!0}return cn},GGBAppletUtils=function(){"use strict";function cn(){return window.GGBT_wsf_edit!==void 0}function yn(Pe,Ne){Ne!=1?(Pe.style.transformOrigin="0% 0% 0px",Pe.style.webkitTransformOrigin="0% 0% 0px",Pe.style.transform="scale("+Ne+","+Ne+")",Pe.style.webkitTransform="scale("+Ne+","+Ne+")",Pe.style.maxWidth="initial",Pe.querySelector(".ggb_preview")!==null&&(Pe.querySelector(".ggb_preview").style.maxWidth="initial"),Pe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Pe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Pe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Pe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Pe.style.transform="none",Pe.style.webkitTransform="none")}function de(Pe,Ne,je,Ee,ye,qe){var it=null;if(qe!=null&&qe!="")for(var he=Pe.parentNode;he!=null;)if((" "+he.className+" ").indexOf(" "+qe+" ")>-1){it=he;break}else he=he.parentNode;var gt=0,kt=0,Xe=0,ft=0,Ze=0,Je=0,et=0;if(it)gt=it.offsetWidth,kt=Math.max(Ee?it.offsetWidth:0,it.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(gt=Math.min(window.innerWidth,document.documentElement.clientWidth),kt=Math.min(window.innerHeight,document.documentElement.clientHeight),Xe=gt):(gt=window.innerWidth,kt=window.innerHeight,Xe=window.innerWidth),Pe){var Ye=Pe.getBoundingClientRect();Ye.left>0&&Ye.left<=gt&&(ye===void 0||!ye)&&(document.dir==="rtl"?(Ze=gt-Ye.width-Ye.left,Je=Xe<=480?10:30):(Je=Ye.left,Ze=Xe<=480?10:30),ft=Je+Ze)}if(Pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var We=Pe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ft=40,et=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ft=0,et=40)}}return Pe&&((je===void 0||!je)&&Ne>0&&Ne+ft<gt?gt=Ne:gt-=ft,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(je===void 0||!je)&&(kt-=et)),{width:gt,height:kt}}function re(Pe,Ne,je,Ee,ye){if(Pe.isScreenshoGenerator)return 1;var qe=Ee!==void 0&&Ee,it=Pe.noScaleMargin!=null&&Pe.noScaleMargin,he=function(We){return We&&We!=="false"},gt=he(Pe.autoHeight),kt=de(Ne,Pe.width,je,gt,qe&&window.GGBT_wsf_view||it,ye),Xe=parseInt(kt.width),ft=Pe.width,Ze=Pe.height;if(ft===void 0){var Je=Ne.querySelector(".appletParameters");Je&&(ft=Je.offsetWidth,Ze=Je.offsetHeight)}var et=Xe/ft,Ye=qe?1:kt.height/Ze;return je!==void 0&&!je&&(et=Math.min(1,et),Ye=Math.min(1,Ye)),Math.min(et,Ye)}function xe(Pe,Ne,je){var Ee=1,ye,qe=!1;if(Pe.hasOwnProperty("allowUpscale")&&(qe=Pe.allowUpscale),Pe.hasOwnProperty("scale")&&(Ee=parseFloat(Pe.scale),(isNaN(Ee)||Ee===null||Ee===0)&&(Ee=1),Ee>1&&(qe=!0)),Ne&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(qe=!0),!(Pe.hasOwnProperty("disableAutoScale")&&Pe.disableAutoScale))ye=re(Pe,Ne,qe,je,Pe.scaleContainerClass);else return Ee;return qe&&(!Pe.hasOwnProperty("scale")||Ee===1)?ye:Math.min(Ee,ye)}function tt(Pe){var Ne=Math.min(window.innerWidth,document.documentElement.clientWidth),je=Math.min(window.innerHeight,document.documentElement.clientHeight),Ee=Pe.getBoundingClientRect(),ye=(Ne-Ee.width)/2,qe=(je-Ee.height)/2;qe<0&&(qe=0),Pe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ye<40?Pe.style.left="40px":Pe.style.left=ye+"px",Pe.style.top=qe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(qe<40?Pe.style.top="40px":Pe.style.top=qe+"px",Pe.style.left=ye+"px")}function At(Pe,Ne){var je=Pe.querySelector(".appletParameters");if(je){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ne.id!==je.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Pe)}if(je.parentElement&&/fullscreen/.test(je.parentElement.className))return;var Ee=xe(Ne,Pe);cn()&&je.setAttribute("data-param-scale",Ee);for(var ye=null,qe=0;qe<Pe.childNodes.length;qe++)if(Pe.childNodes[qe].className!==void 0&&Pe.childNodes[qe].className.match(/^applet_scaler/)){ye=Pe.childNodes[qe];break}if(ye!==null&&ye.querySelector(".noscale")!==null)return;var it=Ne.id!==void 0?Ne.id:"ggbApplet",he=window[it];(he==null||!he.recalculateEnvironments)&&ye!==null&&!ye.className.match(/fullscreen/)&&(ye.parentNode.style.transform="",!isNaN(Ee)&&Ee!==1?(ye.parentNode.style.width=Ne.width*Ee+"px",ye.parentNode.style.height=Ne.height*Ee+"px",yn(ye,Ee)):(yn(ye,1),ye.parentNode.style.width=Ne.width+"px",ye.parentNode.style.height=Ne.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&tt(Pe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(je).parents(".content-added-content"))}}return{responsiveResize:At,isFlexibleWorksheetEditor:cn,positionCenter:tt,getScale:xe,scaleElement:yn}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var cn=n.location.search;return cn.indexOf(J)!=-1||cn.indexOf(K)!=-1}function q(cn,yn){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(cn){var yn=s[L].bindings;s[L].bindings=function(){for(var de=yn?yn():{},re=cn[webModule.__softPermutationId],xe=O;xe<re.length;xe++){var tt=re[xe];de[tt[O]]=tt[P]}return de}};var t;function u(){return v(),t}function v(){if(!t){var cn=o.createElement(Q);if(cn.id=L,cn.style.cssText=R+S,cn.tabIndex=-1,o.body.appendChild(cn),t=cn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var yn=document.compatMode==U?V:W;t.write(yn+X),t.close()}}}function w(cn){function yn(re){function xe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var tt=xe();if(tt){re();return}function At(){if(!tt){if(!xe())return;tt=!0,re(),o.removeEventListener&&o.removeEventListener(Z,At,!1),Pe&&clearInterval(Pe)}}o.addEventListener&&o.addEventListener(Z,At,!1);var Pe=setInterval(function(){At()},$)}function de(re){var xe=u(),tt=xe.body,At=xe.createElement(_);At.language=ab,At.crossOrigin=W,At.src=re,webModule.__errFn&&(At.onerror=function(){webModule.__errFn(L,new Error(bb+re))}),tt.appendChild(At)}yn(function(){de(cn)})}webModule.__startLoadingFragment=function(cn){return C(cn)},webModule.__installRunAsyncCode=function(cn){var yn=u(),de=yn.body,re=yn.createElement(_);re.language=ab,re.text=cn,de.appendChild(re),de.removeChild(re)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(cn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(cn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(cn){var yn=c[cn];return yn==null?null:yn},r=d,webModule.__errFn=e}function B(){function cn(Pe){var Ne=Pe.lastIndexOf(rb);Ne==-1&&(Ne=Pe.length);var je=Pe.indexOf(sb);je==-1&&(je=Pe.length);var Ee=Pe.lastIndexOf(tb,Math.min(je,Ne));return Ee>=O?Pe.substring(O,Ee+P):W}function yn(Pe){if(!Pe.match(/^\w+:\/\//)){var Ne=o.createElement(ub);Ne.src=Pe+vb,Pe=cn(Ne.src)}return Pe}function de(){var Pe=__gwt_getMetaProperty(wb);return Pe!=null?Pe:W}function re(){for(var Pe=o.getElementsByTagName(_),Ne=O;Ne<Pe.length;++Ne)if(Pe[Ne].src.indexOf(xb)!=-1)return cn(Pe[Ne].src);return W}function xe(){var Pe=o.getElementsByTagName(yb);return Pe.length>O?Pe[Pe.length-P].href:W}function tt(){var Pe=o.location;return Pe.href==Pe.protocol+zb+Pe.host+Pe.pathname+Pe.search+Pe.hash}var At=de();return At==W&&(At=re()),At==W&&(At=xe()),At==W&&tt()&&(At=cn(o.location.href)),At=yn(At),At}function C(cn){return cn.match(/^\//)||cn.match(/^[a-zA-Z]+:\/\//)?cn:webModule.__moduleBase+cn}function D(){var cn=[],yn=O,de=[],re=[];function xe(Pe){var Ne=re[Pe](),je=de[Pe];if(Ne in je)return Ne;var Ee=[];for(var ye in je)Ee[je[ye]]=ye;throw r&&r(Pe,Ee,Ne),null}if(__gwt_isKnownPropertyValue=function(Pe,Ne){return Ne in de[Pe]},webModule.__getPropMap=function(){var Pe={};for(var Ne in de)de.hasOwnProperty(Ne)&&(Pe[Ne]=xe(Ne));return Pe},webModule.__computePropValue=xe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var tt;try{tt=Cb;var At=tt.indexOf(Db);At!=-1&&(yn=parseInt(tt.substring(At+P),$),tt=tt.substring(O,At))}catch(Pe){}return webModule.__softPermutationId=yn,C(tt+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(cn,yn,de){"use strict";de.d(yn,{Ax:function(){return At},Ds:function(){return Pe},KI:function(){return je},SI:function(){return tt},f1:function(){return xe}});var re=de(11320);function xe(Ee){let ye=!0;if(Ee.length>0){for(let qe=0;qe<Ee.length;qe++)if(Ee[qe].compile_success==0||!Ee[qe].compile_success){ye=!1;break}}else ye=!1;return ye}function tt(Ee,ye=""){let qe=[];for(let it=0;it<Ee.length;it++){let he=Ee[it],gt=ye?`${ye}/${he.name}`:`${he.name}`;qe.push({title:he.name,type:he.type,isLeaf:he.type!=="tree",key:gt})}return qe}function At(Ee,ye,qe){for(let it=0;it<Ee.length;it++){let he=Ee[it];if(he.key===ye){he.children=qe;break}he.children&&At(he.children,ye,qe)}return Ee}function Pe(Ee,ye,qe){let it;return function(){let he=this,gt=arguments,kt=function(){it=null,qe||Ee.apply(he,gt)},Xe=qe&&!it;clearTimeout(it),it=setTimeout(kt,ye),Xe&&Ee.apply(he,gt)}}const Ne=!0,je=re.Z.API_SERVER},60580:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return kt}});var re=de(71577),xe=de(67294),tt=Object.defineProperty,At=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,ye=(Xe,ft,Ze)=>ft in Xe?tt(Xe,ft,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Xe[ft]=Ze,qe=(Xe,ft)=>{for(var Ze in ft||(ft={}))je.call(ft,Ze)&&ye(Xe,Ze,ft[Ze]);if(Ne)for(var Ze of Ne(ft))Ee.call(ft,Ze)&&ye(Xe,Ze,ft[Ze]);return Xe},it=(Xe,ft)=>At(Xe,Pe(ft)),he=(Xe,ft)=>{var Ze={};for(var Je in Xe)je.call(Xe,Je)&&ft.indexOf(Je)<0&&(Ze[Je]=Xe[Je]);if(Xe!=null&&Ne)for(var Je of Ne(Xe))ft.indexOf(Je)<0&&Ee.call(Xe,Je)&&(Ze[Je]=Xe[Je]);return Ze},gt=(Xe,ft,Ze)=>new Promise((Je,et)=>{var Ye=lt=>{try{$e(Ze.next(lt))}catch(Tt){et(Tt)}},We=lt=>{try{$e(Ze.throw(lt))}catch(Tt){et(Tt)}},$e=lt=>lt.done?Je(lt.value):Promise.resolve(lt.value).then(Ye,We);$e((Ze=Ze.apply(Xe,ft)).next())});const kt=Xe=>{var ft=Xe,{children:Ze}=ft,Je=he(ft,["children"]);const[et,Ye]=(0,xe.useState)(!1);return xe.createElement(re.ZP,it(qe({},Je),{loading:et,onClick:We=>gt(void 0,null,function*(){try{Ye(!0),yield Je.onClick(We),Ye(!1)}catch($e){console.error($e),Ye(!1)}})}),Ze)}},56243:function(cn,yn,de){"use strict";var re=de(17187),xe=de.n(re),tt=Object.defineProperty,At=(Ee,ye,qe)=>ye in Ee?tt(Ee,ye,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ee[ye]=qe,Pe=(Ee,ye,qe)=>At(Ee,typeof ye!="symbol"?ye+"":ye,qe),Ne=(Ee,ye,qe)=>new Promise((it,he)=>{var gt=ft=>{try{Xe(qe.next(ft))}catch(Ze){he(Ze)}},kt=ft=>{try{Xe(qe.throw(ft))}catch(Ze){he(Ze)}},Xe=ft=>ft.done?it(ft.value):Promise.resolve(ft.value).then(gt,kt);Xe((qe=qe.apply(Ee,ye)).next())});class je extends re.EventEmitter{constructor(ye,qe){super(),Pe(this,"url"),Pe(this,"body"),Pe(this,"fullContent",""),Pe(this,"controller",null),Pe(this,"buffer",""),this.url=ye,this.body=qe}startStream(){return Ne(this,null,function*(){this.controller=new AbortController;const{signal:ye}=this.controller;try{const qe=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:ye});if(!qe.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${qe.status}`);const it=qe.headers.get("content-type");if(!it)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(it.includes("application/json")){const kt=yield qe.json();this.emit("error",kt);return}if(!it.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const he=qe.body.getReader(),gt=new TextDecoder("utf-8");for(;;){const{done:kt,value:Xe}=yield he.read();if(kt)break;const ft=gt.decode(Xe,{stream:!0});this.buffer+=ft;const Ze=this.buffer.split(`
|
|
|
`);this.buffer=Ze.pop()||"";for(const Je of Ze)if(Je.startsWith("data:")){const et=Je.slice(5).trim();if(et==="[DONE]")break;try{const Ye=JSON.parse(et);Ye.data&&this.handleData(Ye.data)}catch(Ye){this.buffer=Je+`
|
|
|
`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",Ye)}}}this.emit("done",this.fullContent)}catch(qe){qe.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",qe.message)}})}handleData(ye){ye.content&&(this.fullContent+=ye.content,this.emit("data",{chunk:ye,full:this.fullContent}))}cancelRequest(){var ye;(ye=this.controller)==null||ye.abort()}}yn.Z=je},21826:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return Re}});var re=de(67294),xe=de(94668),tt=de(91733),At=de(17274),Pe=de(86032),Ne=de(74855),je={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ee=de(2453),ye=de(99398),qe=de(36576),it=de(41807),he=de(67127),gt=de(81897),kt=de(72565),Xe=de(71230),ft=de(15746),Ze={smartWrp:"smartWrp___NjRcB"},Je=de(36295),et=de(64743),Ye=de(60580),We=de(67294),$e=(Le,Nt,Rt)=>new Promise((Yt,vt)=>{var nt=Ut=>{try{un(Rt.next(Ut))}catch(fn){vt(fn)}},Vt=Ut=>{try{un(Rt.throw(Ut))}catch(fn){vt(fn)}},un=Ut=>Ut.done?Yt(Ut.value):Promise.resolve(Ut.value).then(nt,Vt);un((Rt=Rt.apply(Le,Nt)).next())});const lt=`<!DOCTYPE html>
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
<title>\u5FEB\u901F\u6392\u5E8F\u6F14\u793A</title>
|
|
|
<style>
|
|
|
body {
|
|
|
font-family: Arial, sans-serif;
|
|
|
text-align: center;
|
|
|
margin: 20px;
|
|
|
}
|
|
|
.array-container {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: flex-end;
|
|
|
height: 300px;
|
|
|
margin-top: 20px;
|
|
|
}
|
|
|
.bar {
|
|
|
width: 30px;
|
|
|
margin: 0 2px;
|
|
|
background-color: #4caf50;
|
|
|
color: white;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
border-radius: 5px;
|
|
|
transition: all 0.3s ease;
|
|
|
}
|
|
|
.bar.sorted {
|
|
|
background-color: #ff9800;
|
|
|
}
|
|
|
.bar.pivot {
|
|
|
background-color: #f44336;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
<h1>\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u6F14\u793A</h1>
|
|
|
<button id="start-sort">\u5F00\u59CB\u6392\u5E8F</button>
|
|
|
<div class="array-container" id="array-container"></div>
|
|
|
|
|
|
<script>
|
|
|
const array = [34, 7, 23, 32, 5, 62]; // \u56FA\u5B9A\u6570\u7EC4
|
|
|
let bars = [];
|
|
|
|
|
|
// \u521D\u59CB\u5316\u6570\u7EC4\u663E\u793A
|
|
|
function initArrayDisplay() {
|
|
|
const container = document.getElementById('array-container');
|
|
|
container.innerHTML = '';
|
|
|
bars = array.map(value => {
|
|
|
const bar = document.createElement('div');
|
|
|
bar.className = 'bar';
|
|
|
bar.style.height = \`\${value * 5}px\`;
|
|
|
bar.textContent = value;
|
|
|
container.appendChild(bar);
|
|
|
return bar;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
// \u9AD8\u4EAE\u67D0\u4E2A\u8303\u56F4\u5185\u7684\u67F1\u5B50
|
|
|
function highlightBars(indices, className) {
|
|
|
indices.forEach(index => bars[index].classList.add(className));
|
|
|
}
|
|
|
|
|
|
// \u79FB\u9664\u9AD8\u4EAE
|
|
|
function removeHighlightBars(indices, className) {
|
|
|
indices.forEach(index => bars[index].classList.remove(className));
|
|
|
}
|
|
|
|
|
|
// \u5FEB\u901F\u6392\u5E8F\u4E3B\u51FD\u6570
|
|
|
async function quickSort(arr, left = 0, right = arr.length - 1) {
|
|
|
if (left >= right) return;
|
|
|
|
|
|
const pivotIndex = await partition(arr, left, right);
|
|
|
await quickSort(arr, left, pivotIndex - 1);
|
|
|
await quickSort(arr, pivotIndex + 1, right);
|
|
|
}
|
|
|
|
|
|
// \u5206\u533A\u51FD\u6570
|
|
|
async function partition(arr, left, right) {
|
|
|
const pivot = arr[right];
|
|
|
let i = left - 1;
|
|
|
|
|
|
highlightBars([right], 'pivot'); // \u9AD8\u4EAE\u57FA\u51C6\u503C
|
|
|
|
|
|
for (let j = left; j < right; j++) {
|
|
|
highlightBars([j], 'sorted'); // \u9AD8\u4EAE\u5F53\u524D\u6BD4\u8F83\u5143\u7D20
|
|
|
await sleep(500);
|
|
|
|
|
|
if (arr[j] <= pivot) {
|
|
|
i++;
|
|
|
[arr[i], arr[j]] = [arr[j], arr[i]];
|
|
|
|
|
|
// \u66F4\u65B0\u67F1\u5B50\u9AD8\u5EA6
|
|
|
bars[i].style.height = \`\${arr[i] * 5}px\`;
|
|
|
bars[i].textContent = arr[i];
|
|
|
bars[j].style.height = \`\${arr[j] * 5}px\`;
|
|
|
bars[j].textContent = arr[j];
|
|
|
|
|
|
await sleep(500);
|
|
|
}
|
|
|
|
|
|
removeHighlightBars([j], 'sorted'); // \u79FB\u9664\u9AD8\u4EAE
|
|
|
}
|
|
|
|
|
|
// \u5C06\u57FA\u51C6\u503C\u653E\u5230\u6B63\u786E\u4F4D\u7F6E
|
|
|
[arr[i + 1], arr[right]] = [arr[right], arr[i + 1]];
|
|
|
bars[i + 1].style.height = \`\${arr[i + 1] * 5}px\`;
|
|
|
bars[i + 1].textContent = arr[i + 1];
|
|
|
bars[right].style.height = \`\${arr[right] * 5}px\`;
|
|
|
bars[right].textContent = arr[right];
|
|
|
|
|
|
removeHighlightBars([right], 'pivot'); // \u79FB\u9664\u57FA\u51C6\u503C\u9AD8\u4EAE
|
|
|
highlightBars([i + 1], 'sorted'); // \u9AD8\u4EAE\u6700\u7EC8\u4F4D\u7F6E
|
|
|
await sleep(500);
|
|
|
removeHighlightBars([i + 1], 'sorted');
|
|
|
|
|
|
return i + 1;
|
|
|
}
|
|
|
|
|
|
// \u5EF6\u8FDF\u51FD\u6570
|
|
|
function sleep(ms) {
|
|
|
return new Promise(resolve => setTimeout(resolve, ms));
|
|
|
}
|
|
|
|
|
|
// \u5F00\u59CB\u6392\u5E8F\u6309\u94AE\u70B9\u51FB\u4E8B\u4EF6
|
|
|
document.getElementById('start-sort').addEventListener('click', () => {
|
|
|
quickSort(array);
|
|
|
});
|
|
|
|
|
|
// \u521D\u59CB\u5316\u9875\u9762
|
|
|
initArrayDisplay();
|
|
|
<\/script>
|
|
|
</body>
|
|
|
</html>`;function Tt({open:Le=!0,onChange:Nt,defaultValue:Rt,placement:Yt,width:vt,height:nt,extra:Vt,onDynamic:un,showExtra:Ut=!0}){const fn=(0,re.useRef)(null),en=(0,re.useRef)(null),[En,_n]=(0,re.useState)(Rt||""),[Ce,se]=(0,re.useState)(Rt||""),[ue,ge]=(0,re.useState)(!!Le),[pe,le]=(0,re.useState)(1),ze={selectOnLineNumbers:!0};(0,re.useEffect)(()=>{Le&&(_n(Rt),se(Rt),ge(!0))},[Le,Rt]),(0,re.useEffect)(()=>{En!==""&&(clearTimeout(en.current),en.current=setTimeout(()=>{const Pt=document.createElement("iframe");if(Pt.style.width="100%",Pt.style.height="100%",Pt.style.border="0",fn.current){fn.current.innerHTML="",fn.current.appendChild(Pt);const mn=Pt.contentDocument||Pt.contentWindow.document;mn.open(),mn.write(En),mn.close()}},1e3))},[Le,En]);const bt=Pt=>{_n(Pt),Nt==null||Nt(Pt,Ce)};return We.createElement(kt.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ue,width:Ut?700:"100%",height:nt||"100vh",rootClassName:Ze.smartWrp,destroyOnClose:!0,onClose:()=>ge(!1),extra:Ut&&We.createElement("div",null,We.createElement(et.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:pe,onChange:Pt=>le(Pt)}),We.createElement(Ye.Z,{type:"primary",className:"ml20",onClick:()=>$e(this,null,function*(){yield un(En,()=>{ge(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},We.createElement(Xe.Z,{className:"h100"},We.createElement(ft.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:pe===1?"block":"none"}},We.createElement("div",{className:"h100",ref:fn})),We.createElement(ft.Z,{flex:"1",style:{display:pe===2?"block":"none"}},We.createElement(Je.ZP,{height:"90vh",value:Rt,language:"html",theme:"vs",showMiniMap:!1,options:ze,onChange:bt}))))}var _t=Tt,Ot=Object.defineProperty,st=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Qe=(Le,Nt,Rt)=>Nt in Le?Ot(Le,Nt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):Le[Nt]=Rt,Fe=(Le,Nt)=>{for(var Rt in Nt||(Nt={}))pt.call(Nt,Rt)&&Qe(Le,Rt,Nt[Rt]);if(He)for(var Rt of He(Nt))Ve.call(Nt,Rt)&&Qe(Le,Rt,Nt[Rt]);return Le},wt=(Le,Nt)=>st(Le,ct(Nt)),Mt=(Le,Nt)=>{var Rt={};for(var Yt in Le)pt.call(Le,Yt)&&Nt.indexOf(Yt)<0&&(Rt[Yt]=Le[Yt]);if(Le!=null&&He)for(var Yt of He(Le))Nt.indexOf(Yt)<0&&Ve.call(Le,Yt)&&(Rt[Yt]=Le[Yt]);return Rt},Re=({onFinish:Le,value:Nt,streamingStatus:Rt,cancelIndex:Yt,loadImage:vt,onDynamic:nt})=>{const[Vt,un]=(0,re.useState)(""),[Ut,fn]=(0,re.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[en,En]=(0,re.useState)(0),[_n,Ce]=(0,re.useState)(!1),se=pe=>pe.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(le,ze)=>`<mathx data-text="${ze.trim()}">$$${ze.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),ue=()=>{Ce(!0),Le==null||Le()};(0,re.useEffect)(()=>{const pe=vt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
|
|
|
|
|
|
${Nt}`:Nt,le=se(pe);if(!_n)if(vt||!Rt||Yt>0){un(le),En(le.length),(!Rt||Yt>0)&&!vt&&ue();return}else if((le==null?void 0:le.length)<4)un(le),En(le.length);else if(en<le.length){const ze=le.length-en,bt=setInterval(()=>{un(le.slice(0,en+2)),En(Pt=>Pt+2)},ze>10?Math.max(500/(ze/2),20):50);return()=>clearInterval(bt)}else Rt||ue()},[Nt,Rt,Yt,vt,en]);const ge=(0,re.useMemo)(()=>re.createElement("section",{className:`${je.answer} fadeIn animated edu_md`},re.createElement(xe.U,{remarkPlugins:[it.Z,he.Z],rehypePlugins:[qe.Z,At.Z],components:{code(pe){var le=pe,{node:ze,inline:bt,className:Pt,children:mn}=le,ln=Mt(le,["node","inline","className","children"]);const Xt=/language-(\w+)/.exec(Pt||""),Kt=String(mn).trim();return bt||!Xt?re.createElement("code",Fe({className:Pt},ln),mn):re.createElement("code",{className:je.codeCopy,"data-text":`\`\`\`${Xt?Xt[1]:""}
|
|
|
${mn}
|
|
|
\`\`\``},re.createElement(Ne.CopyToClipboard,{text:Kt,onCopy:()=>Ee.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},re.createElement("button",null,"\u590D\u5236")),Xt[1]==="html"&&_n&&re.createElement("button",{className:je.runCode,onClick:()=>{fn(Fe({},wt(Fe({},Ut),{open:++Ut.open,defaultValue:Kt,language:Xt[1]})))}},"\u8FD0\u884CHTML"),re.createElement(tt.Z,Fe({wrapLongLines:!0,style:Pe.Z,language:Xt[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},ln),Kt))},img({node:pe}){var le;const ze=(le=pe.properties)==null?void 0:le.src;return re.createElement(ye.Z,{src:ze,width:320,"data-text":ze,onLoad:()=>vt&&setTimeout(()=>ue(),500)})}}},_n?Vt:`${Vt}__`)),[Vt]);return re.createElement(re.Fragment,null,re.createElement(_t,{defaultValue:Ut.defaultValue,open:Ut.open,language:Ut.language,height:Ut.height,onChange:(pe,le)=>{un(Vt.replaceAll(le,pe))},onDynamic:nt}),ge)}},17173:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return _t}});var re=de(67294),xe=de(2453),tt=de(72565),At=de(71230),Pe=de(14446),Ne=de(69677),je=de(59810),Ee=de(83062),ye=de(15746),qe=de(31795),it={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},he=de(64743),gt=de(11320),kt=de(38478),Xe=de(33170),ft=de(43158),Ze=de(28706),Je=de(93299),et=de(62442),Ye=de(49627),We=de(74867),$e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAHr1JREFUa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hxnD7NoblVbOs05Z339vNfttvsTxpp46e+x8GRBMfTwlHWPtX+jZ+fgeS+/PJzY3VUkLNm4YS1JK8n69q1sH2inoEaotmvJZOAT71/FGw47ADuVonVuPWvu3c0TT3ejogAVCFI1VTy6fZjISuM1TWfPygOwizAr20fwzIOkkvW8fcUcLGesFAbhz+y0/OYFV13w7/8XgH1X76avXbJ0167iN/r6/Hf6JdyUrMMVHuvaNpPN7SFfHKMQSWa1VnH+h9/I3FlNuOkUtfU1bHsiYvczKbbn2ri340nePH8l20ZGsL0QT3ceSz4zptUyNDrK4oXzeGGTHxxbt/jujuoXv/nd+/9rYqPZX7Lmn3rvH7Lwa3/og0d+eklP78j5c2vmntZUO7V27e5nGM2NsGtoF65dxQmHz+NDZxxBKpEkNSVFmE3w8iMOj2x5kZ78ANWJBNPqpyESJQIZUvJDk8Km1qUpFovDc2e13Mp4+vIv/uasf/i/Wf4R0vqri/mh2RfXLlow66St+fXvbu/qOW4o3z/1iMXzxOnvOIpUlYNjW2QaUvSvTbFlS462PQMUo2EaG2pIpjzT+y4UlQpDuUchH3ec6DdeUqy5+M7P/v/1j1p/aiXuv/zyxDOP7ViyYP7Ug9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",lt=(Ot,st,ct)=>new Promise((He,pt)=>{var Ve=wt=>{try{Fe(ct.next(wt))}catch(Mt){pt(Mt)}},Qe=wt=>{try{Fe(ct.throw(wt))}catch(Mt){pt(Mt)}},Fe=wt=>wt.done?He(wt.value):Promise.resolve(wt.value).then(Ve,Qe);Fe((ct=ct.apply(Ot,st)).next())}),_t=(0,re.forwardRef)(({onUpdateNum:Ot,onSave:st},ct)=>{var He;const pt=`\u8BF7\u8F93\u5165\u51FA\u9898\u8981\u6C42\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u5148\u4E0A\u4F20\u6750\u6599\u4E4B\u540E\u518D\u6839\u636E\u6750\u6599\u51FA\u9898
|
|
|
\u4F8B\uFF1A\u8BF7\u751F\u6210\u5173\u4E8E\u300APython\u7A0B\u5E8F\u8BBE\u8BA1\u300B\u7684\u8BD5\u9898\u3002\u8003\u5BDF\u77E5\u8BC6\u70B9\uFF1A\u53D8\u91CF\u5B9A\u4E49\u3001\u6570\u636E\u7C7B\u578B\u3001\u8FD0\u7B97\u7B26\u548C\u63A7\u5236\u7ED3\u6784\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020%`,[Ve,Qe]=(0,re.useState)(!1),[Fe,wt]=(0,re.useState)([]),[Mt,jt]=(0,re.useState)(null),[Re,Le]=(0,re.useState)([]),[Nt,Rt]=(0,re.useState)(0),[Yt,vt]=(0,re.useState)(0),[nt,Vt]=(0,re.useState)(!1),[un,Ut]=(0,re.useState)(""),[fn,en]=(0,re.useState)(0),[En,_n]=(0,re.useState)(0),[Ce,se]=(0,re.useState)(0),[ue,ge]=(0,re.useState)(0),[pe,le]=(0,re.useState)(0),[ze,bt]=(0,re.useState)(0),[Pt,mn]=(0,re.useState)(0),[ln,Xt]=(0,re.useState)(0),[Kt,sr]=(0,re.useState)(We.Q),{contentRef:mr,value:Gt,status:rn,open:Jr,close:_r}=Kt,xr=(0,et.Z)({contentRef:mr,status:rn}),{openProgress:wr,closeProgress:Ji,CreateProgressModal:Ir,progressOpen:Wr}=(0,Je.Z)();(0,re.useEffect)(()=>{Mt&&Wi(),Mt===!1&&(_r(),Ot==null||Ot(),wt([]),Ut(""),en(0),_n(0),se(0),ge(0),le(0),bt(0),mn(0),Xt(0))},[Mt]);const Tr=()=>{jt(!0)};(0,re.useImperativeHandle)(ct,()=>({onClick:Tr}));const si=Dn=>{Vt(!0),Rt(Dn),vt(0)},pi=Dn=>lt(void 0,null,function*(){const Mr=Dn.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(Mr)==-1?(xe.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):Dn.size/1024/1024>10?(xe.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),Wi=()=>lt(void 0,null,function*(){const Dn=yield(0,Xe.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});Dn.status===0&&(Rt(Dn.total_number),vt(Dn.remaining_number))}),bi=Dn=>(Dn=Dn||"",Dn=String(Dn),Dn=Dn.replace(/\s+/g,""),Dn),kr=(Dn=!0)=>lt(void 0,null,function*(){var Mr,vn;const Vn=[{name:"\u5355\u9009\u9898",num:fn||0},{name:"\u591A\u9009\u9898",num:En||0},{name:"\u5224\u65AD\u9898",num:Ce||0},{name:"\u586B\u7A7A\u9898",num:ue||0},{name:"\u7B80\u7B54\u9898",num:pe||0},{name:"\u7EC4\u5408\u9898",num:ln||0},{name:"\u7F16\u7A0B\u9898",num:ze||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:Pt||0}];if(Dn){if(bi(un)){if(un.length>1e3){xe.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{xe.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!bi(un)&&!(Fe!=null&&Fe.length)){xe.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const er=Vn.reduce((ia,Gi)=>ia+Gi.num,0);if(er===0){xe.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(er>30){xe.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}if(Nt!==-1){Vt(!0);return}}Vt(!1);const fi={scene_type:6,request_identifier:Math.random(),file_id:(vn=(Mr=Fe[0])==null?void 0:Mr.response)==null?void 0:vn.id,content:un,count_arr:Vn.map(er=>er.num).join(",")};yield Jr(fi),Wi()}),an=()=>lt(void 0,null,function*(){const Dn=xr();if(st){jt(!1),st(Dn);return}wr(),Qe(!0),Le([]);const Mr=new FormData;Mr.append("html",Dn);const vn=yield(0,Xe.ZP)("/api/intelligent_imports/import.json",{method:"post",body:Mr},!0);if((vn==null?void 0:vn.status)===0)if(vn!=null&&vn.data){Ji(100),Le(vn==null?void 0:vn.data);return}else xe.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");Qe(!1),Ji()}),Nn=()=>lt(void 0,null,function*(){const Dn=xr();(0,Ze.RG)(Dn)}),On=["uploading","error"].includes((He=Fe==null?void 0:Fe[0])==null?void 0:He.status);return re.createElement(re.Fragment,null,re.createElement(Ye.Z,{visible:nt,totalCount:Nt,usedCount:Yt,onCancel:()=>Vt(!1),onOk:()=>kr(!1)}),re.createElement(tt.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:re.createElement("div",{className:it.extraHeader},re.createElement(At.Z,{align:"middle"},!rn&&!!Gt&&re.createElement(re.Fragment,null,re.createElement(he.op,{onClick:an,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),re.createElement(he.op,{onClick:Nn,shape:"default",type:"text"},re.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),re.createElement("i",{onClick:()=>{const Dn=Mr=>{Pe.default.confirm({centered:!0,icon:null,width:500,zIndex:1101,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Mr,onOk:()=>{jt(!1)}})};if(rn){Dn("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else Gt?Dn("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):jt(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Mt},re.createElement("div",{className:it.wrap},re.createElement("div",{className:it.left},re.createElement("div",{className:it.tip},re.createElement("img",{src:$e}),re.createElement("span",null,"\u60A8\u597D\uFF01\u6211\u662F\u60A8\u7684\u667A\u80FD\u51FA\u9898\u52A9\u624B\uFF0C\u6211\u5DF2\u5B66\u4E60\u4E86\u5E73\u53F0\u4EE5\u53CA\u4E92\u8054\u7F51\u4E0A\u6D77\u91CF\u7684\u8BD5\u9898\u77E5\u8BC6\u5E93\u3002\u53EF\u4EE5\u6839\u636E\u60A8\u7684\u8981\u6C42\u548C\u4E0A\u4F20\u7684\u6750\u6599\u7075\u6D3B\u751F\u6210\u5404\u7C7B\u8BD5\u9898\u3002\u6B22\u8FCE\u968F\u65F6\u4E0E\u6211\u4E92\u52A8\uFF0C\u8BA9\u6211\u4EEC\u4E00\u8D77\u6253\u9020\u66F4\u9AD8\u6548\u3001\u66F4\u4F18\u8D28\u7684\u8BD5\u9898\uFF01")),re.createElement("div",{className:"mb10 mt20 c-black"},re.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),re.createElement(Ne.default.TextArea,{style:{height:160},className:"mb20",value:un,placeholder:pt,onChange:Dn=>{Ut(Dn.target.value)}}),re.createElement(je.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${gt.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:Fe,withCredentials:!0,data:{upload_type:1},beforeUpload:pi,onChange:({file:Dn})=>{var Mr,vn;Dn.status!=="removed"&&(Dn.status==="done"&&((Mr=Dn==null?void 0:Dn.response)==null?void 0:Mr.status)!==0&&(Dn.status="error",Dn.response=(vn=Dn==null?void 0:Dn.response)==null?void 0:vn.message),wt([Dn]))},onRemove:()=>wt([])},re.createElement(Ee.Z,{title:"\u5355\u6B21\u4EC5\u652F\u6301\u4E0A\u4F201\u4E2A\u6587\u6863\u62161\u5F20\u56FE\u7247\uFF0C\u6587\u6863\u652F\u6301PDF/Word\u683C\u5F0F\uFF0C\u56FE\u7247\u652F\u63011\u5F20\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247"},re.createElement(he.op,{style:{borderRadius:2}},re.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),re.createElement("div",{className:"c-black mt20"},re.createElement("div",{className:"mb10 c-black"},re.createElement("b",null,"\u51FA\u9898\u6570\u91CF"),re.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u4FDD\u8BC1\u51FA\u9898\u4F53\u9A8C\uFF0C\u5355\u6B21\u51FA\u9898\u603B\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7",re.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"30"),"\u9053\uFF09")),re.createElement(At.Z,{style:{gap:16}},re.createElement(ye.Z,null,re.createElement("label",null,"\u5355\u9009\u9898"),re.createElement(qe.Z,{min:0,max:10,value:fn,onChange:en,style:{marginLeft:"8px"}})),re.createElement(ye.Z,null,re.createElement("label",null,"\u591A\u9009\u9898"),re.createElement(qe.Z,{min:0,max:10,value:En,onChange:_n,style:{marginLeft:"8px"}})),re.createElement(ye.Z,null,re.createElement("label",null,"\u5224\u65AD\u9898"),re.createElement(qe.Z,{min:0,max:10,value:Ce,onChange:se,style:{marginLeft:"8px"}})),re.createElement(ye.Z,null,re.createElement("label",null,"\u586B\u7A7A\u9898"),re.createElement(qe.Z,{min:0,max:10,value:ue,onChange:ge,style:{marginLeft:"8px"}})),re.createElement(ye.Z,null,re.createElement("label",null,"\u7B80\u7B54\u9898"),re.createElement(qe.Z,{min:0,max:10,value:pe,onChange:le,style:{marginLeft:"8px"}})),re.createElement(ye.Z,null,re.createElement("label",null,"\u7EC4\u5408\u9898"),re.createElement(qe.Z,{min:0,max:10,value:ln,onChange:Xt,style:{marginLeft:"8px"}})),re.createElement(ye.Z,null,re.createElement("label",null,"\u7F16\u7A0B\u9898"),re.createElement(qe.Z,{min:0,max:10,value:ze,onChange:bt,style:{marginLeft:"8px"}})),re.createElement(ye.Z,null,re.createElement("label",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898"),re.createElement(qe.Z,{min:0,max:10,value:Pt,onChange:mn,style:{marginLeft:"8px"}})))),rn?re.createElement("div",{onClick:_r,className:it.bottomBtn},re.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):On?re.createElement("div",{className:`${it.bottomBtn} ${it.disabled}`},re.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):re.createElement("div",{onClick:()=>{kr()},className:it.bottomBtn},re.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),re.createElement(We.Z,{onStatusChange:sr,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!Wr,noRestrictModal:si,stringTransformer:ft.o,onError:Dn=>{Object.prototype.toString.call(Dn)==="[object Object]"&&Dn.status===-9&&si(Dn.data)}}))),re.createElement(tt.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Ve},re.createElement(At.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},re.createElement("img",{src:de(36413),alt:"\u667A\u80FD\u51FA\u9898"}),re.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u9898")),re.createElement(kt.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:Re,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>Qe(!1),onSuccess:()=>{Qe(!1),jt(!1)}}),re.createElement("div",{style:{height:70}})),Ir("\u5904\u7406\u4E2D"))})},66146:function(cn,yn,de){"use strict";var re=de(67294);const xe=({scrollBoxRef:tt,bottomInspectRef:At,contentRef:Pe,status:Ne,rootMargin:je="70px",bottomOffset:Ee=110})=>{const[ye,qe]=(0,re.useState)(!0),it=(0,re.useRef)(!1);return(0,re.useEffect)(()=>{if(!tt.current||!At.current)return;const he=new IntersectionObserver(([gt])=>{var kt,Xe,ft,Ze;if(!document.contains(gt.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((kt=gt.rootBounds)==null?void 0:kt.width)===0&&((Xe=gt.rootBounds)==null?void 0:Xe.height)===0){console.log("root\uFF08\u6EDA\u52A8\u5BB9\u5668\uFF09\u65E0\u6548\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664");return}if(((ft=gt.boundingClientRect)==null?void 0:ft.width)===0&&((Ze=gt.boundingClientRect)==null?void 0:Ze.height)===0){console.log("\u76EE\u6807\u5143\u7D20\u5BBD\u9AD8\u4E3A 0\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664\u6216 display: none");return}qe(gt.isIntersecting)},{root:tt.current,rootMargin:je,threshold:0});return he.observe(At.current),()=>{he.disconnect()}},[tt.current,At.current,je]),(0,re.useEffect)(()=>{if(!Ne)return;const he=tt.current,gt=Pe.current;it.current=!1;let kt=he.scrollTop;const Xe=()=>{const{scrollTop:Ze,scrollHeight:Je,clientHeight:et}=he;Ze>kt?Ze+et>=Je-Ee&&(he.scrollTop=he.scrollHeight,it.current=!1):Ze<kt&&(it.current=!0),kt=Ze};he.addEventListener("scroll",Xe);const ft=new ResizeObserver(()=>{it.current||(he.scrollTop=he.scrollHeight)});return ft.observe(gt),()=>{setTimeout(()=>{ft.unobserve(gt)},250),he.removeEventListener("scroll",Xe)}},[Ne]),ye};yn.Z=xe},62442:function(cn,yn,de){"use strict";var re=de(67294);const xe=({contentRef:tt,status:At})=>((0,re.useEffect)(()=>{!At&&(tt!=null&&tt.current)&&tt.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(je=>{je.tagName.toLowerCase()==="code"?je.parentElement&&(je.parentElement.contentEditable="false"):je.tagName.toLowerCase()==="mathx"&&(je.contentEditable="false")})},[At]),(Ne=!1)=>{const je=it=>{const he={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" ","©":"\xA9","®":"\xAE","€":"\u20AC"};return it.replace(/&[^;]+;/g,gt=>he[gt]||gt)};if(!tt.current)return"";const Ee=tt.current.cloneNode(!0);Ee.querySelectorAll("code[data-text], mathx[data-text]").forEach(it=>{let he=it.getAttribute("data-text");it.tagName.toLowerCase()==="code"?he=he.replace(/```.*\n|\n```/g,""):it.tagName.toLowerCase()==="mathx"&&(he=`$$${he}$$`);const gt=document.createTextNode(he);it.parentNode.replaceChild(gt,it)}),Ne&&Ee.querySelectorAll('[data-select="disabled"]').forEach(he=>{var gt;const kt=he.textContent||"",Xe=document.createTextNode(kt+`
|
|
|
`);(gt=he.parentNode)==null||gt.replaceChild(Xe,he)});let qe=Ee.innerHTML;return Ne||(qe=qe.replace(/<[^>]*data-select="disabled"[^>]*>.*?<\/[^>]*>/g,"")),qe=qe.replace(/<p>/g,""),qe=qe.replace(/<\/p>/g,`
|
|
|
`),qe=qe.replace(/<br>/g,`
|
|
|
`),qe=qe.replace(/\r\n/g,`
|
|
|
`),qe=qe.replace(/<[^>]*>/g,""),qe=je(qe),qe});yn.Z=xe},93299:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return he}});var re=de(67294),xe=de(14446),tt=de(71230),At=de(38703),Pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABYCAYAAAAORCLFAAAAAXNSR0IArs4c6QAAIABJREFUeF7lfQecXFXZ/nNumT6zvWeTTSWkEEJooUgRpSMooiLfxycqTcQGIvipAf1UsNFEUAQBQTpSDCgtIQVTSAgJ6ckm2ZJt2dnd6XPL+fuec8/sZAmSbAKBv/P73Z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Nf2VAxAf9Z49k5yNw3g7bualQDK7wfemy7puFk2TplgYL89psNDZEoLCyKVoVY3gvLqpKCcBcrD+Uw2PPDCEzxpQ99TjXTX4Y/H7XXy14+fUG4NWe/6wAIj7oT/8gu8CXzo1SOjcXPf9yL5Au83IpvsjeLY22AqWpkeFtoatbuTBjArBMo8wF2LhpBK8cyGrrTDgjYeB/+pXt+/4aT14bdZ56taR6fY8/64CI3+5//mZuoXTstwewbvK94DI/IKdE1pctMavJxrzZDurrLGV5DY4E2H+4gF2dY8jmQ139KsVj+Xzx9v1fWtD1+pLy33b2sxqI+K3d+U250Pdz7wiRuMn3/UuDQLpFz1ftgIIw1LXN7G7gk3tYbWT1e2H4yR33tH1NG7Nn9/ZrA0ScjB/8x9zCQijfIWHd5BWDS4t+6KpWC4FAoejl/NB+oFD0/9uWP5914uwmf3l0v5ZAxIn7nr/MdWSRv84vhA1eaO3PZ/Kbnv7cnN5fFwDMOP8vz4/Uk8nae+oAAAAASUVORK5CYII=",Ee={dotLoading:"dotLoading___s6Sh4",showHide:"showHide___Dfprh",progress:"progress___QUpqo"},ye=de(67294);const qe=["\u6587\u4EF6\u89E3\u6790\u8BFB\u53D6\u4E2D","\u5185\u5BB9\u7406\u89E3\u5206\u6790\u4E2D","\u7ED3\u6784\u5316\u63D0\u53D6\u4E2D"];var he=()=>{const[gt,kt]=(0,re.useState)(0),[Xe,ft]=(0,re.useState)(!1),[Ze,Je]=(0,re.useState)(!0),et=(0,re.useRef)(null);(0,re.useEffect)(()=>{if(Ze)return;const _t=()=>{kt(Ot=>Ot>=99?(clearInterval(et.current),99):Ot+1)};return et.current=setInterval(_t,5e4/99),()=>clearInterval(et.current)},[Ze]);const Ye=()=>{kt(0),ft(!0),Je(!1)},We=(_t=0)=>{Je(!0),kt(_t),ft(!1)},$e=_t=>{const Ot=_t/1048576;let st;return Ot<=.3?st=3:Ot<=.5?st=5:Ot<=1?st=10:Ot<=2?st=20:Ot<=3?st=30:Ot<=10?st=Ot*10:st=100,` \u9884\u8BA1\u5904\u7406\u65F6\u957F\u4E3A${st}\u5206\u949F\uFF0C\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3`},lt=()=>ye.createElement("span",{className:Ee.dotLoading},ye.createElement("span",null,"."),ye.createElement("span",null,"."),ye.createElement("span",null,"."));return{progress:gt,progressOpen:Xe,openProgress:Ye,closeProgress:We,toggleLock:()=>Je(_t=>!_t),CreateProgressModal:(_t=qe,Ot)=>(typeof _t=="string"&&(_t=[_t,_t,_t]),ye.createElement(xe.default,{centered:!0,closable:!1,destroyOnClose:!0,zIndex:1200,open:Xe,title:null,footer:null,width:500,afterClose:()=>kt(0)},ye.createElement(tt.Z,{align:"middle",className:"mt40 mb20",style:{flexDirection:"column"}},gt<=30&&ye.createElement(ye.Fragment,null,ye.createElement("img",{src:Pe,alt:"Step 1"}),ye.createElement("div",{className:"mt20 c-light-primary"},_t[0],lt())),gt>30&><60&&ye.createElement(ye.Fragment,null,ye.createElement("img",{src:Ne,alt:"Step 2"}),ye.createElement("div",{className:"mt20 c-light-primary"},_t[1],lt())),gt>=60&&ye.createElement(ye.Fragment,null,ye.createElement("img",{src:je,alt:"Step 3"}),ye.createElement("div",{className:"mt20 c-light-primary"},_t[2],lt())),ye.createElement(At.Z,{className:Ee.progress,status:"active",style:{width:"auto"},size:[300,8],percent:gt}),!!Ot&&ye.createElement("div",{className:"c-grey-999"},$e(Ot)))))}}},11146:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return Nt}});var re=de(67294),xe=de(85418),tt=de(2453),At=de(83062),Pe=de(69677),Ne=de(71577),je=de(21826),Ee={wrap:"wrap___AasCO",chatContainer:"chatContainer___n6e3E",btnContainer:"btnContainer___yKyVB",btn:"btn___Y_09T",inputContainer:"inputContainer____bM3M",sendBtn:"sendBtn___UHHLj",sendBtnDisabled:"sendBtnDisabled___AoSRc",cancelBtn:"cancelBtn___yql4C",loadingWrp:"loadingWrp___gYLGT","dot-fade":"dot-fade___LruoO"},qe=({position:Rt,children:Yt})=>{const{left:vt=0,top:nt=0}=Rt||{},[Vt,un]=(0,re.useState)(vt),[Ut,fn]=(0,re.useState)(nt),en=(0,re.useRef)(null),En=()=>{if(en.current){const _n=en.current.offsetWidth,Ce=en.current.offsetHeight,se=window.innerWidth,ue=window.innerHeight;let ge=vt,pe=nt;vt+_n>se&&(ge=se-_n),ge<0&&(ge=0),nt+Ce>ue&&(pe=ue-Ce),pe<0&&(pe=0),un(ge),fn(pe)}};return(0,re.useEffect)(()=>{if(!en.current||!Rt)return;const _n=new ResizeObserver(()=>{En()});return _n.observe(en.current),()=>{_n.disconnect()}},[vt,nt,Rt]),(0,re.useEffect)(()=>{Rt&&En()},[vt,nt,Rt]),Rt?re.createElement("div",{ref:en,style:{position:"fixed",left:`${Vt}px`,top:`${Ut}px`,zIndex:1050}},Yt):null},it=de(11320),he=de(74855),gt=de(56243),kt=Object.defineProperty,Xe=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Ye=(Rt,Yt,vt)=>Yt in Rt?kt(Rt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:vt}):Rt[Yt]=vt,We=(Rt,Yt)=>{for(var vt in Yt||(Yt={}))Je.call(Yt,vt)&&Ye(Rt,vt,Yt[vt]);if(Ze)for(var vt of Ze(Yt))et.call(Yt,vt)&&Ye(Rt,vt,Yt[vt]);return Rt},$e=(Rt,Yt)=>Xe(Rt,ft(Yt)),lt=(Rt,Yt,vt)=>new Promise((nt,Vt)=>{var un=en=>{try{fn(vt.next(en))}catch(En){Vt(En)}},Ut=en=>{try{fn(vt.throw(en))}catch(En){Vt(En)}},fn=en=>en.done?nt(en.value):Promise.resolve(en.value).then(un,Ut);fn((vt=vt.apply(Rt,Yt)).next())}),_t=({visible:Rt,position:Yt,selectText:vt,applyRefinedText:nt,fetchUrl:Vt,noRestrictModal:un})=>{var Ut;const[fn,en]=(0,re.useState)(!1),[En,_n]=(0,re.useState)([]),[Ce,se]=(0,re.useState)(""),[ue,ge]=(0,re.useState)(1),[pe,le]=(0,re.useState)(""),[ze,bt]=(0,re.useState)(!1),Pt=(0,re.useRef)(null),[mn,ln]=(0,re.useState)(!1),[Xt,Kt]=(0,re.useState)(0),sr=(0,re.useRef)(!1),mr=((Ut=En==null?void 0:En[(En==null?void 0:En.length)-1])==null?void 0:Ut.loading)===!0;(0,re.useEffect)(()=>{if(Rt){ge(1);return}ln(!1),en(!1),Gt(),Kt(0),_n([]),ge(0)},[Rt]);const Gt=()=>{var kr,an;se(""),le(""),(an=(kr=Pt.current)==null?void 0:kr.cancelRequest)==null||an.call(kr)},rn=(...kr)=>lt(void 0,[...kr],function*(an="",Nn=En){const On=Date.now(),Dn=[...Nn,{text:an,key:On,sender:"user",show:!0},{loading:!0,key:On,sender:"AI",show:!0}];ge(2),_n(Dn);const Mr=_r(Nn),vn={no_record_times:!0,prompt:an,history:Mr};Pt.current=new gt.Z(it.Z.API_SERVER+Vt,vn),yield new Promise(Vn=>{Pt.current.on("data",Xr=>{const{chunk:{msg:fi},full:er}=Xr,ia=fi==="error";ln(!0),le(Wr(er)),_n(Gi=>Gi.map((Br,lr)=>lr===Gi.length-1?$e(We({},Br),{text:er,loading:!1,error:ia}):Br))}),Pt.current.on("done",()=>Vn()),Pt.current.on("error",Xr=>{const fi="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Object.prototype.toString.call(Xr)==="[object Object]"&&Xr.status===-9&&(ge(1),un(Xr.data)),_n(er=>er.map((ia,Gi)=>Gi===er.length-1?$e(We({},ia),{text:fi,loading:!1,error:!0}):ia)),Vn()}),Pt.current.on("cancelled",()=>Vn()),Pt.current.startStream()}),en(!1)}),Jr=kr=>{se(kr.target.value)},_r=kr=>kr.reduce((Nn,On)=>{if(On.sender==="user"){const Dn=kr.find(Mr=>Mr.key===On.key&&Mr.sender==="AI");Dn&&(Dn!=null&&Dn.text)&&!(Dn!=null&&Dn.error)&&Nn.push({question:On.text,answer:Dn.text})}return Nn},[]),xr=()=>{if(bi)return;const kr=Tr("\u6539\u5199");Gt(),en(!0),rn(kr)},wr=kr=>{if(kr.key==="Enter"&&!kr.shiftKey){if(kr.preventDefault(),sr.current||Wi)return;xr()}},Ji=()=>{var kr,an;Kt(Nn=>Nn+1),(an=(kr=Pt.current)==null?void 0:kr.cancelRequest)==null||an.call(kr),en(!1),ln(!1)},Ir=[{key:"1",label:re.createElement("span",null," ",re.createElement("i",{className:"iconfont icon-runse font14 mr10"}),"\u6DA6\u8272 ")},{key:"2",label:re.createElement("span",null,re.createElement("i",{className:"iconfont icon-kuoxie font14 mr10"}),"\u6269\u5199")},{key:"3",label:re.createElement("span",null," ",re.createElement("i",{className:"iconfont icon-suoxie font14 mr10"}),"\u7F29\u5199")}],Wr=(kr="")=>{const an=["\u7B54\u6848\uFF1A","\u96BE\u5EA6\uFF1A","\u89E3\u6790\uFF1A","\u77E5\u8BC6\u70B9\uFF1A","\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09","\u7F16\u7A0B\u8BED\u8A00\uFF1A","\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A","\u7A0B\u5E8F\u4EE3\u7801\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"];return Array.from({length:20}).forEach((Nn,On)=>{an.push(`\u7B54\u6848${On+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${On+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${On+1})\u8F93\u51FA\uFF1A`)}),an.forEach(Nn=>{const On=new RegExp(Nn,"g");kr=kr.replace(On,`**${Nn}** `)}),kr},Tr=kr=>kr==="\u6539\u5199"?`${Ce}\uFF0C\u6839\u636E\u4E0A\u8FF0\u8981\u6C42\u6539\u5199\u8FD9\u53E5\u8BDD\uFF0C${vt}\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`:`${vt}\uFF0C${kr}\u4E0A\u9762\u8FD9\u53E5\u8BDD\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`,si=kr=>{let an="";kr.key==="1"&&(an=Tr("\u6DA6\u8272")),kr.key==="2"&&(an=Tr("\u6269\u5199")),kr.key==="3"&&(an=Tr("\u7F29\u5199")),Gt(),en(!0),rn(an)},pi=()=>{const kr=En.splice(En.length-2),{text:an}=(kr==null?void 0:kr[0])||{};Gt(),en(!0),rn(an,En)},Wi=fn||mn,bi=(Ce==null?void 0:Ce.trim())==="";return Rt?re.createElement(xe.Z,{open:bi&&!Wi&&(ze||!pe),overlayStyle:{minWidth:200},menu:{items:Ir,onClick:si}},re.createElement(qe,{position:Yt},re.createElement("div",{className:Ee.wrap},ue===2&&re.createElement(re.Fragment,null,re.createElement("div",{className:Ee.chatContainer},mr&&re.createElement("div",{className:Ee.loadingWrp},re.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),re.createElement("div",{className:"ai-loading"})),pe&&re.createElement(je.Z,{cancelIndex:Xt,streamingStatus:fn,loadImage:!1,onFinish:()=>lt(void 0,null,function*(){Kt(0),setTimeout(()=>ln(!1),0)}),value:pe})),re.createElement("div",{className:Ee.btnContainer},re.createElement("div",{onClick:()=>nt(!0,pe),className:Ee.btn,style:{padding:"0 16px",width:"initial"}},re.createElement("i",{className:"iconfont icon-tihuan mr10 font14"}),"\u66FF\u6362"),re.createElement("div",{onClick:()=>nt(!1,pe),className:Ee.btn,style:{padding:"0 16px",width:"initial"}},re.createElement("i",{className:"iconfont icon-charu mr10 font14"}),"\u63D2\u5165"),re.createElement(he.CopyToClipboard,{text:pe,onCopy:()=>tt.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},re.createElement(At.Z,{title:"\u590D\u5236"},re.createElement("div",{className:Ee.btn,style:{marginLeft:"auto"}},re.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),re.createElement(At.Z,{title:"\u91CD\u65B0\u751F\u6210"},re.createElement("div",{onClick:pi,className:Ee.btn},re.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),re.createElement(At.Z,{title:"\u5220\u9664"},re.createElement("div",{onClick:()=>{ge(1),Gt(),_n([])},className:Ee.btn},re.createElement("i",{className:"iconfont icon-shanchu14 font14"}))))),re.createElement("div",{className:Ee.inputContainer},re.createElement(Pe.default.TextArea,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u6587\u672C\u4F18\u5316\u5EFA\u8BAE",value:Ce,bordered:!1,onFocus:()=>bt(!0),onBlur:()=>setTimeout(()=>bt(!1),300),onChange:Jr,onPressEnter:wr,onCompositionStart:()=>sr.current=!0,onCompositionEnd:()=>sr.current=!1}),mn?re.createElement("div",{className:`iconfont icon-tingzhihuida ${Ee.cancelBtn}`,onClick:Ji}):re.createElement(Ne.ZP,{className:bi?Ee.sendBtnDisabled:Ee.sendBtn,icon:re.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Wi,onClick:xr}))))):re.createElement(re.Fragment,null)},Ot={"hover-line-container":"hover-line-container___kkYQN","hover-line-content":"hover-line-content___ZkD9e","line-button-container":"line-button-container___A79j9",button:"button___X_Iu7"},st=Object.defineProperty,ct=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,Ve=(Rt,Yt,vt)=>Yt in Rt?st(Rt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:vt}):Rt[Yt]=vt,Qe=(Rt,Yt)=>{for(var vt in Yt||(Yt={}))He.call(Yt,vt)&&Ve(Rt,vt,Yt[vt]);if(ct)for(var vt of ct(Yt))pt.call(Yt,vt)&&Ve(Rt,vt,Yt[vt]);return Rt};const Fe=Rt=>React.createElement("svg",Qe({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Rt),React.createElement("title",null,"AI\u6539\u5199"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"26.797%",y1:"22.073%",x2:"82.181%",y2:"80.474%",id:"rewrite_svg__a"},React.createElement("stop",{stopColor:"#5C64FF",offset:"0%"}),React.createElement("stop",{stopColor:"#6988F8",offset:"100%"}))),React.createElement("path",{d:"m10.406 4.741.007.015h-.007v-.022.007Zm-.04-.04.855-1.495 1.497-.855-1.496-.855L10.366 0l-.854 1.497-1.497.855 1.496.854.855 1.495ZM3.1 8.442l1.71 3.1 1.603-3.1 3.1-1.71L6.52 5.023l-1.71-3.1-1.71 3.1L0 6.733l3.099 1.709H3.1Zm6.84 3.1 1.069 1.924 1.068-1.924L14 10.473l-1.924-1.069-1.069-1.923L9.94 9.405l-1.924 1.068 1.924 1.07v-.001Z",fill:"url(#rewrite_svg__a)",fillRule:"nonzero"}));var wt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",jt=(0,re.forwardRef)(({initialContent:Rt,onButtonClick:Yt},vt)=>{const[nt,Vt]=(0,re.useState)(null),[un,Ut]=(0,re.useState)(null),[fn,en]=(0,re.useState)(""),[En,_n]=(0,re.useState)(null),Ce=vt,se=Pt=>{const mn=document.elementFromPoint(10,Pt),ln=document.createRange();let Xt=null;const Kt=document.createTreeWalker(Ce.current,NodeFilter.SHOW_TEXT,{acceptNode:xr=>{const wr=document.createRange();wr.selectNodeContents(xr);const Ji=wr.getBoundingClientRect();return Ji.top<=Pt&&Ji.bottom>=Pt?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let sr="",mr,Gt,rn=null,Jr=null,_r=null;for(;mr=Kt.nextNode();){mr.parentNode.getAttribute("data-select")==="disabled"&&(Gt=!0),sr+=mr.textContent,Jr||(Jr=mr),_r=mr;const xr=document.createRange();xr.selectNodeContents(mr);const wr=xr.getBoundingClientRect();rn===null&&(rn=wr.top)}if(Jr&&_r&&!Gt){const xr=document.createRange();xr.setStart(Jr,0),xr.setEnd(_r,_r.textContent.length),_n(xr)}else _n(null);return Ut(rn-1),Gt?"":sr.trim()};function ue(Pt){for(;Pt.parentElement&&Pt.parentElement.tagName.toLowerCase()!=="section";){var mn=window.getComputedStyle(Pt.parentElement);if(mn.pointerEvents==="none")return!0;Pt=Pt.parentElement}return!1}const ge=Pt=>{var mn,ln;if(ue(Pt.target)){Ut(-1e6);return}if(((ln=(mn=document.getSelection())==null?void 0:mn.toString)==null?void 0:ln.call(mn))!==""){Ut(-1e6);return}const Xt=se(Pt.clientY);if((Xt==null?void 0:Xt.trim())===""){Ut(-1e6);return}const Kt=Ce.current.getBoundingClientRect();Vt(Kt.left-30),en(Xt)},pe=()=>{},le=Pt=>{Yt&&fn&&Yt(fn,Pt.clientX,Pt.clientY,En)},ze=()=>{if(En){const Pt=window.getSelection();Pt.removeAllRanges(),Pt.addRange(En)}},bt=()=>{window.getSelection().removeAllRanges()};return(0,re.useEffect)(()=>{const Pt=Ce.current;return Pt.addEventListener("mousemove",ge),Pt.addEventListener("mouseleave",pe),()=>{Pt.removeEventListener("mousemove",ge),Pt.removeEventListener("mouseleave",pe),bt()}},[Rt]),re.createElement("div",{className:Ot["hover-line-container2"]},un!==null&&re.createElement("div",{className:Ot["line-button-container"],style:{top:un,left:nt},onMouseEnter:()=>{ze()},onMouseLeave:()=>{bt(),Ut(null),en(""),_n(null)}},re.createElement("div",{className:Ot.button,onClick:le},re.createElement("img",{src:wt}),re.createElement("span",null,"AI\u6539\u5199"))))}),Re={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},Nt=({nodeRef:Rt,noRestrictModal:Yt})=>{const[vt,nt]=(0,re.useState)(null),[Vt,un]=(0,re.useState)(null),[Ut,fn]=(0,re.useState)(!1),[en,En]=(0,re.useState)(null),[_n,Ce]=(0,re.useState)(!1),[se,ue]=(0,re.useState)(!1),ge=Rt,pe=(0,re.useRef)(null),le=(0,re.useRef)(null),[ze,bt]=(0,re.useState)("");(0,re.useEffect)(()=>{vt!=null&&vt.toString()&&bt(vt==null?void 0:vt.toString())},[vt==null?void 0:vt.toString()]);const Pt=()=>{const Kt=window.getSelection(),sr=ge.current.scrollTop,mr=ge.current.getBoundingClientRect();if(Kt.rangeCount>0&&Kt.toString().length>0){const Gt=Kt.getRangeAt(0);nt(Gt.cloneRange());const rn=Gt.getBoundingClientRect(),Jr=40;let _r=rn.top+sr-5+Jr;_r<sr&&(_r=rn.bottom-mr.top+sr+5);const xr=ge.current.scrollHeight-Jr;_r=Math.min(Math.max(_r,sr),xr),un({top:_r+6,left:rn.left})}else nt(null),un(null),fn(!1);mn(Kt)},mn=Kt=>{if(!Kt||Kt.rangeCount===0){Ce(!1);return}const mr=Kt.getRangeAt(0).getBoundingClientRect(),Gt=window.getComputedStyle(ge.current),rn=parseInt(Gt.lineHeight),Jr=parseInt(Gt.paddingTop),_r=ge.current.scrollTop,xr=ge.current.getBoundingClientRect(),wr=mr.top-xr.top+_r,Ji=Math.floor((wr-Jr)/rn),Ir=Jr+Ji*rn-_r;En(Ir),Ce(!0)},ln=Kt=>{ge.current&&!ge.current.contains(Kt.target)&&ue(!1)};(0,re.useEffect)(()=>{const Kt=ge.current;return Kt.addEventListener("scroll",Pt),Kt.addEventListener("input",Pt),Kt.addEventListener("click",Pt),Kt.addEventListener("mouseup",Pt),Kt.addEventListener("keyup",Pt),Kt.addEventListener("click",Pt),document.addEventListener("mousedown",ln),()=>{Kt.removeEventListener("scroll",Pt),Kt.removeEventListener("input",Pt),Kt.removeEventListener("click",Pt),Kt.removeEventListener("mouseup",Pt),Kt.removeEventListener("keyup",Pt),Kt.removeEventListener("click",Pt),document.removeEventListener("mousedown",ln)}},[]);const Xt=(Kt=!0,sr)=>{if(!vt)return;const mr=le.current.querySelector("section.edu_md").innerHTML.replace(/<p[^>]*>([\s\S]*?)<\/p>/g,"$1"),Gt=vt.cloneRange(),rn=window.getSelection();if(rn.removeAllRanges(),rn.addRange(Gt),Kt){Gt.deleteContents();const Jr=document.createElement("div");Jr.innerHTML=mr;const _r=Array.from(Jr.childNodes);for(;_r.length>0;)Gt.insertNode(_r.pop())}else{Gt.collapse(!1);const Jr=document.createElement("div");Jr.innerHTML=" "+mr;const _r=Array.from(Jr.childNodes);for(;_r.length>0;)Gt.insertNode(_r.pop())}rn.removeAllRanges(),nt(null),fn(!1),un(null)};return re.createElement("section",{ref:le},Vt&&re.createElement("div",{ref:pe,className:Re.toolbar,style:{top:Vt==null?void 0:Vt.top,left:Vt==null?void 0:Vt.left}},re.createElement("div",{className:Re.button,onClick:()=>fn(!0)},re.createElement("img",{src:wt}),re.createElement("span",null,"AI\u6539\u5199"))),re.createElement(_t,{key:JSON.stringify(Vt),noRestrictModal:Yt,visible:Ut,position:Vt,selectText:ze,applyRefinedText:Xt,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),ge.current&&re.createElement(jt,{ref:ge,onButtonClick:(Kt,sr,mr,Gt)=>{nt(Gt),fn(!0),bt(Kt),un({left:sr,top:mr+20})}}))}},49627:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return Pe}});var re=de(67294),xe=de(14446),tt={num:"num___VQiqB"},Pe=({visible:Ne,usedCount:je,totalCount:Ee,onOk:ye,onCancel:qe})=>{const it=()=>je>0?re.createElement("div",null,"\u672C\u6B21\u5C06\u6D88\u80171\u6B21\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\uFF08\u6BCF\u65E5",Ee,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",re.createElement("span",{className:tt.num},je),"\u6B21\uFF09\uFF0C\u786E\u5B9A\u64CD\u4F5C\u5417\uFF1F"):re.createElement("div",{className:"mb20"},"\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5",Ee,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",re.createElement("span",{className:tt.num},je),"\u6B21\uFF09\u3002");return re.createElement(xe.default,{centered:!0,open:Ne,title:"\u63D0\u793A",width:620,zIndex:1100,onCancel:qe,onOk:ye,footer:je>0?void 0:null},it())}},74867:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return ft},Q:function(){return kt}});var re=de(67294),xe={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},tt=de(56243),At=de(11320),Pe=de(21826),Ne=de(11146),je=de(66146),Ee=de(9117),ye="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAADGlJREFUeF7tnVlQHMcZx7/umT0AcSjGBonDOmxdgV2Ww0iWIsmxrfIhJ1VJ2W+uilgEjqtclTwmLxQvyYur8uCKYmFQXMmbXUlV4lw+YsmHkBECdhdkSZZlyUJgScEWh7h2d7pTvcUuw2hhp3dm2dmleWPn66+/+f+me7p7vplGkOQfpRTVt56vgJCyARAtpAg5knS1JosRhBQMdMpJbddPd+68jhCiyQiBkil0sO2qc2J4yoMQLU6mvCizVAFCyLdFlUX9p9o3z/Fqww2Qtbxa7+BuAY9X6pXtGcSBEzVneFsiN8C6lqFKqihuc8MX3pgCTrAFurt2fc2jBj/AI/5GiuGBaCVIgtv2vOnAmd89OstT8Vq33fPL7pzgdJ6LKotaAoLx/k73Jzza8ANs8h1SD1gcBdMfCHg8ki/aMojzk3lPRH9hAxtfp+tfPN64AdZ6/c+pK+jvcr/DU6GwXaqAUT0FwDRfUQJgmgEYrV4ANKpgmssLgGkGYLR6AdCogmkuLwCmGYDR6gVAowqmubwAmGYARqsXAI0qmObyAmCaARitXgA0qmCaywuAaQZgtHoB0KiCaS4vAKYZgNHqBUCjCqa5vACYZgBGqxcAjSqY5vKmARR5nmkmmaD65fJII0/kRZ6nteFpo1PnkSKR55lZ8KLRxvJIRZ5nZgJkUbM8UlSnyfPcXpkLPz1QBPm5mXti2Rj51AzAXz4ah0vXZ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PKcTVLmbITM27E0k8zD2FRCFACTvfFxllsOopQr9fYeq7rJ6S5mzg2wrsl3SD0SEx891y99PIgU0MRAl+tj/V6WWvIDPOJvVH9WQ2w7wCe9FiLTr6/D3cPnZdGaH2DLUCVVFHeyFWZKuVQmBrP36MPzZBtCNFiG7w8Yef2bG+BCptVudapcpkDhiTOVAHniSGTLDTA6IZ4YnvJkM8SsBsggRl5pbj1fASFlQ6IlpkRXkRWPZwrA/wPlJnpuyspBOgAAAABJRU5ErkJggg==",qe=de(94184),it=de.n(qe),he=de(2453),gt=(Ze,Je,et)=>new Promise((Ye,We)=>{var $e=_t=>{try{Tt(et.next(_t))}catch(Ot){We(Ot)}},lt=_t=>{try{Tt(et.throw(_t))}catch(Ot){We(Ot)}},Tt=_t=>_t.done?Ye(_t.value):Promise.resolve(_t.value).then($e,lt);Tt((et=et.apply(Ze,Je)).next())});const kt={contentRef:{current:null},value:null,status:!1,open:()=>gt(void 0,null,function*(){}),close:()=>{}};var ft=({className:Ze,style:Je,onChange:et,onSuccess:Ye,onCancel:We,onError:$e,fetchUrl:lt,noRestrictModal:Tt=()=>{},showEditableToolbar:_t,bottomOffset:Ot=110,loadingText:st,showEmptyData:ct=!0,onStatusChange:He,stringTransformer:pt,bottomContainerNode:Ve})=>{const[Qe,Fe]=(0,re.useState)(!1),[wt,Mt]=(0,re.useState)(""),[jt,Re]=(0,re.useState)(0),[Le,Nt]=(0,re.useState)(!1),Rt=(0,re.useRef)(null),Yt=(0,re.useRef)(null),vt=(0,re.useRef)(null),nt=(0,re.useRef)(null),Vt=(0,je.Z)({scrollBoxRef:nt,bottomInspectRef:vt,contentRef:Yt,status:Le,bottomOffset:Ot}),un=Qe||Le;(0,re.useEffect)(()=>{et==null||et(wt)},[wt]),(0,re.useEffect)(()=>{He==null||He({contentRef:Yt,status:un,value:wt,open:Ut,close:fn})},[un,wt]);const Ut=En=>gt(void 0,null,function*(){Fe(!0),Mt(""),Re(0);const _n=lt;En!=null&&En.fetchUrl&&delete En.fetchUrl,Rt.current=new tt.Z(`${At.Z.API_SERVER}${_n}`,En),yield new Promise((Ce,se)=>{Rt.current.on("data",ue=>{let{chunk:{content:ge,type:pe}}=ue;Nt(!0),pe==="text"&&Mt(le=>pt?pt(le+ge):le+ge)}),Rt.current.on("done",()=>{Ce()}),Rt.current.on("error",ue=>{Object.prototype.toString.call(ue)==="[object Object]"&&ue.status===-1&&he.ZP.warning((ue==null?void 0:ue.message)||""),Ce(),$e==null||$e(ue)}),Rt.current.on("cancelled",()=>{Ce(),We==null||We()}),Rt.current.startStream()}),Fe(!1)}),fn=()=>{var En,_n;Re(1),(_n=(En=Rt.current)==null?void 0:En.cancelRequest)==null||_n.call(En),Fe(!1),Nt(!1)},en=(0,re.useMemo)(()=>Yt.current?re.createElement(Ne.Z,{noRestrictModal:Tt,nodeRef:Yt}):re.createElement(re.Fragment,null),[Yt.current]);return re.createElement(re.Fragment,null,re.createElement("div",{className:it()(xe.container,Ze),style:Je,ref:nt},re.createElement("div",{ref:Yt,className:xe.liWrap,contentEditable:!un},wt&&re.createElement(Pe.Z,{cancelIndex:jt,streamingStatus:Qe,loadImage:!1,onFinish:()=>gt(void 0,null,function*(){Re(0),setTimeout(()=>Nt(!1),0),Ye==null||Ye(wt)}),value:wt})),!wt&&!un&&re.createElement("div",{className:xe.imgBox},re.createElement("img",{width:56,src:ye}),re.createElement("span",null,"\u9884\u89C8\u533A")),ct&&un&&re.createElement(Ee.Z,{text:st}),!Vt&&re.createElement("div",{className:xe.backBottom,onClick:()=>{nt.current.scrollTop=nt.current.scrollHeight}},re.createElement("i",{className:"iconfont icon-huidaodibu"})),re.createElement("div",{ref:vt}),Ve),!un&&_t&&en)}},9117:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return At}});var re=de(67294),xe={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},At=({text:Pe})=>re.createElement("div",null,re.createElement("div",{className:xe.loading},re.createElement("div",{className:xe.dot}),re.createElement("div",{className:xe.dot}),re.createElement("div",{className:xe.dot})),!!Pe&&re.createElement("div",{className:"mt5"},Pe))},43158:function(cn,yn,de){"use strict";de.d(yn,{o:function(){return re}});const re=xe=>(xe=xe.replace(new RegExp("(?<!\\*)\\*\\*\\*\\*([^\\n*]+?)\\*\\*\\*\\*(?!\\*)","g"),'<h2 data-select="disabled" data-type="title" contenteditable="false" class="c-black">$1</h2>'),xe=xe.replace(new RegExp("(?<!\\*)\\*\\*\\*([^\\n*]+?)\\*\\*\\*(?!\\*)","g"),`
|
|
|
|
|
|
<h3 data-select="disabled" contenteditable="false" class="c-black font18">$1</h3>
|
|
|
|
|
|
`),xe)},10208:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return Je}});var re=de(67294),xe=de(79870),tt={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},At=de(73631),Pe=de(5623),Ne=de(38244),je=Object.defineProperty,Ee=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,gt=(et,Ye,We)=>Ye in et?je(et,Ye,{enumerable:!0,configurable:!0,writable:!0,value:We}):et[Ye]=We,kt=(et,Ye)=>{for(var We in Ye||(Ye={}))it.call(Ye,We)&>(et,We,Ye[We]);if(qe)for(var We of qe(Ye))he.call(Ye,We)&>(et,We,Ye[We]);return et},Xe=(et,Ye)=>Ee(et,ye(Ye)),ft=(et,Ye,We)=>new Promise(($e,lt)=>{var Tt=st=>{try{Ot(We.next(st))}catch(ct){lt(ct)}},_t=st=>{try{Ot(We.throw(st))}catch(ct){lt(ct)}},Ot=st=>st.done?$e(st.value):Promise.resolve(st.value).then(Tt,_t);Ot((We=We.apply(et,Ye)).next())}),Je=({value:et,onChange:Ye,scrollId:We})=>{const[$e,lt]=(0,re.useState)([]);(0,re.useEffect)(()=>{Tt()},[]);const Tt=()=>ft(void 0,null,function*(){const pt=yield(0,Ne.NZ)({});if(pt!=null&&pt.data){const Ve=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:re.createElement("img",{src:At,className:tt.folderIcon}),isLeaf:!1,children:_t(pt.data||[])}];lt(Ve)}}),_t=pt=>pt.map(Ve=>({title:Ve.name,key:Ve.group_id,icon:re.createElement("img",{src:At,className:tt.folderIcon}),isLeaf:Ve.children.length===0,children:_t(Ve.children)})),Ot=(pt,Ve,Qe)=>pt.map(Fe=>Fe.key===Ve?kt(kt({},Fe),Qe):Fe.children?Xe(kt({},Fe),{children:Ot(Fe.children,Ve,Qe)}):Fe),st=(pt,Ve,Qe)=>pt.map(Fe=>{if(Fe.key===Ve)return Xe(kt({},Fe),{icon:Qe?re.createElement("img",{src:Pe,className:tt.folderIcon}):re.createElement("img",{src:At,className:tt.folderIcon})});if(Fe.children)return Xe(kt({},Fe),{children:st(Fe.children,Ve,Qe)})}),ct=(pt,Ve)=>{lt(Qe=>st(Qe,Ve.node.key,Ve.expanded))},He=et?{selectedKeys:et,defaultExpandedKeys:et}:{};return $e.length>0&&re.createElement("div",{id:We||""},re.createElement(xe.default,kt({showLine:{showLeafIcon:!1},showIcon:!0,treeData:$e,className:tt.folderWrapper,onSelect:Ye,onExpand:ct},He)))}},63205:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return it}});var re=de(67294),xe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},tt=de(94184),At=de.n(tt),Pe=de(57953),Ne=de(15979),je=de(33170),Ee=de(28706),ye=(he,gt,kt)=>new Promise((Xe,ft)=>{var Ze=Ye=>{try{et(kt.next(Ye))}catch(We){ft(We)}},Je=Ye=>{try{et(kt.throw(Ye))}catch(We){ft(We)}},et=Ye=>Ye.done?Xe(Ye.value):Promise.resolve(Ye.value).then(Ze,Je);et((kt=kt.apply(he,gt)).next())}),it=({data:he,className:gt,fullWidth:kt,style:Xe={},onClose:ft,onOk:Ze,showFullTools:Je,noAssociationId:et})=>{const Ye=(0,re.useRef)(null),We=(0,re.useRef)(null),$e=(0,re.useRef)(null),lt=(0,re.useRef)(null),[Tt,_t]=(0,re.useState)(!1),[Ot,st]=(0,re.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,re.useEffect)(()=>{$e.current||($e.current=document.createElement("style"),document.head.appendChild($e.current)),he!=null&&he.visible?(document.body.setAttribute("data-custom","y-hidden"),$e.current.innerHTML=" html { overflow-y: hidden; }",he!=null&&he.src&&ct()):(document.body.removeAttribute("data-custom"),$e.current&&(document.head.removeChild($e.current),$e.current=null))},[he==null?void 0:he.visible]);const ct=()=>ye(void 0,null,function*(){_t(!0),st("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Fe=yield(0,Ee.ZJ)(he==null?void 0:he.src);Ye.current.src="",Ye.current.src=Fe,Ye.current.onload=function(){Qe()},_t(!1),st("")}),He=()=>{document.body.removeAttribute("data-custom"),$e.current.innerHTML=" ",ft()},pt=Fe=>ye(void 0,null,function*(){_t(!0),st("\u6B63\u5728\u4FDD\u5B58\u4E2D");const wt=yield(0,je.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:he.title,file:Fe.dataUrl}});wt!=null&&wt.id&&!et?(yield(0,je.ZP)(`/api/attachments/${he.id}/add_subitem.json`,{method:"post",body:{subitem_id:wt==null?void 0:wt.id,settings:JSON.stringify(Fe.state)}})).status===0&&Ze():wt!=null&&wt.id&&Ze(wt),document.body.removeAttribute("data-custom"),$e.current.innerHTML=" ",_t(!1),st("")}),Ve=()=>{const Fe=document.querySelector('a[href="https://markerjs.com/"]');Fe&&Fe.parentNode&&(Fe.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Mt=>{const jt=document.querySelector(Mt.name);jt&&jt.setAttribute("title",Mt.title)})},Qe=()=>{We.current=new Ne.hP(Ye.current),We.current.targetRoot=lt.current,We.current.addEventListener("render",pt),We.current.addEventListener("beforeclose",He),Je&&(We.current.availableMarkerTypes=We.current.ALL_MARKER_TYPES,We.current.uiStyleSettings.redoButtonVisible=!0,We.current.uiStyleSettings.notesButtonVisible=!0,We.current.uiStyleSettings.zoomButtonVisible=!0,We.current.uiStyleSettings.zoomOutButtonVisible=!0,We.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=We.current.uiStyleSettings,We.current.show(),he!=null&&he.snapshotData&&We.current.restoreState(he.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ve()},300)};return re.createElement(re.Fragment,null,(he==null?void 0:he.visible)&&re.createElement(Pe.Z,{spinning:Tt,tip:Ot,style:{position:"absolute"}},re.createElement("div",{ref:lt,className:At()(xe.imageDimensions,gt,kt?xe.fullWidth:""),style:Xe},re.createElement("img",{className:xe.img,ref:Ye}))))}},38478:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return ue},$:function(){return se}});var re=de(67294),xe={flex_box_center:"flex_box_center___ILe3s",flex_space_between:"flex_space_between___c0XhE",flex_box_vertical_center:"flex_box_vertical_center___Iusj1",flex_box_center_end:"flex_box_center_end___DIVMO",flex_box_column:"flex_box_column___x06LA",intelligentBox:"intelligentBox___M5xO7",red:"red___oyEWt",imgBox:"imgBox___DdoNI",underpin:"underpin___fwUex",row:"row___W9MrK",leftLayout:"leftLayout___MMjoZ",rightLayout:"rightLayout___EsxRX",head:"head___Q7Od8",centerBox:"centerBox___j58Ut",title:"title___rMcNx",tip:"tip___gLHFS",leftBox:"leftBox___DJ6lp",question:"question___THjM9",rightBox:"rightBox___CuMdf",error:"error___PHzCG",actionHead:"actionHead___vTHMx",edit:"edit___EaRLy",option:"option___z4UTy",active:"active___o8wNJ",fill:"fill___g760n",text:"text___L_lug",liWrap:"liWrap___LDwxe",li:"li___k4Mcf",buttonFixed:"buttonFixed___QxKdm",buttonWrap:"buttonWrap___OEep5",button:"button___b2y4h",menu:"menu___aQ4xO",tabs:"tabs___QmlP4",dotLoading:"dotLoading___zUYOu",showHide:"showHide___fHrAG"},tt=de(94184),At=de.n(tt),Pe=de(22150),Ne=de(2453),je=de(14446),Ee=de(31795),ye=de(71230),qe=de(84567),it=de(85418),he=de(59810),gt=de(71577),kt=de(38703),Xe=de(85546),ft=de(69677),Ze=de(64743),Je=de(11320),et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAABk1JREFUWEd1lwlsVkUQx3/7ClGMSMSrHCKXHCpQhYhCNB5AYqRQGq1AiKgEEAiokAJFFIoipcVE5EYFyn23IGCJgoTDQimWSJSzCIKIcglUEIGu2bdv3+77vo+XfPl2Z2Zn5z8zuzsjSPDJ0tZV2ftfGog0BG0Q1AbuRABCgJDBvxorWqDE5xkZh+4porNGjRXNyKvlMuCbf2OXDPRIWYHnnQJKqaSQOimFos3s67HmG1NCupzxWDcgD2Qjf0P1qT/fqGAcGh4Yb4x1ZZSsCySy3oAV4LnOCByi9Pl7CQ00HPvIDb0cz8sUqSUFLqgQkJRjPCavzEFUZoaecz2oNjYAjXGJgEQi5Bio1kYiZYDEOEt5z4+ecZ4D2I2kGePl0eWlkUJkVxp/+yvkpOa5IDOtxxIAiE2nuEg5RhjZ2EiFhgYpF6ZfTNq662KzI+TpgOGJPJFaMjwEJCc06YZgtY5AENLMA7HpCcVTYfd0TR/yi+Vvy4F9CyG5BaQviV9nKBeOwNr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=>{try{ln(le.throw(Xt))}catch(Kt){bt(Kt)}},ln=Xt=>Xt.done?ze(Xt.value):Promise.resolve(Xt.value).then(Pt,mn);ln((le=le.apply(ge,pe)).next())}),Fe=re.memo(({tagName:ge="div",value:pe="",className:le,style:ze={},onBlur:bt,id:Pt})=>{const mn=(0,re.useRef)(null);(0,re.useEffect)(()=>{if(!mn.current)return;Ve(void 0,null,function*(){const Kt=mn.current;Kt.innerHTML="";const sr=pe==null?void 0:pe.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const mr of sr)if(mr.startsWith("$$")&&mr.endsWith("$$")||mr.startsWith("`$$")&&mr.endsWith("$$`")){const Gt=mr.startsWith("`$$")?mr.slice(3,-3):mr.slice(2,-2),rn=document.createElement("span");rn.setAttribute("contentEditable","false"),rn.setAttribute("title",mr),rn.className="edu_latex",Kt.appendChild(rn),pt().render(Gt,rn,{throwOnError:!1})}else{const Gt=mr==null?void 0:mr.replace(/<[^>]*>/g,rn=>rn.startsWith("<img")?rn:rn.replace(/</g,"<"));Kt.insertAdjacentHTML("beforeend",Gt)}})},[Pt]);const ln=()=>{var Xt,Kt;if(bt&&mn.current){const mr=mn.current.cloneNode(!0),Gt=mr.querySelectorAll("span.edu_latex");for(let rn of Gt){const Jr=rn.getAttribute("title"),_r=document.createTextNode(Jr||""),xr=rn;(Kt=(Xt=xr.parentNode)==null?void 0:Xt.replaceChild)==null||Kt.call(Xt,_r,xr)}bt(mr.innerHTML)}};return re.createElement(re.Fragment,null,re.createElement(ge,{ref:mn,contentEditable:!0,className:le,style:ze,onBlur:ln}))}),wt=de(52262),Mt=de(33054),jt=de(17173),Re=Object.defineProperty,Le=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,nt=(ge,pe,le)=>pe in ge?Re(ge,pe,{enumerable:!0,configurable:!0,writable:!0,value:le}):ge[pe]=le,Vt=(ge,pe)=>{for(var le in pe||(pe={}))Yt.call(pe,le)&&nt(ge,le,pe[le]);if(Rt)for(var le of Rt(pe))vt.call(pe,le)&&nt(ge,le,pe[le]);return ge},un=(ge,pe)=>Le(ge,Nt(pe)),Ut=(ge,pe,le)=>new Promise((ze,bt)=>{var Pt=Xt=>{try{ln(le.next(Xt))}catch(Kt){bt(Kt)}},mn=Xt=>{try{ln(le.throw(Xt))}catch(Kt){bt(Kt)}},ln=Xt=>Xt.done?ze(Xt.value):Promise.resolve(Xt.value).then(Pt,mn);ln((le=le.apply(ge,pe)).next())});const fn=ge=>{ge.preventDefault();let le=(ge.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,le)},en=ge=>{ge.key==="Enter"&&ge.preventDefault()},En=({children:ge,style:pe})=>re.createElement("div",{className:xe.leftBox,style:pe,onPaste:fn},ge),_n=({children:ge,style:pe,className:le})=>re.createElement("div",{className:At()(xe.rightBox,le),style:pe,onPaste:fn},ge),Ce=({className:ge,style:pe={},width:le=1200,onCancel:ze=()=>{},onSuccess:bt=()=>{},gather:Pt={},mode:mn=1,stickyTop:ln=0,subDisciplineId:Xt=[],hideWordFeatures:Kt,dataSource:sr=[],customLeftHeadNode:mr,customRightHeadNode:Gt,customLeftContent:rn,hideRecognition:Jr=!1,onExchange:_r,isSingleSelection:xr=!1,underpinBackgroundStyle:wr={},headExtraNode:Ji,isRefreshItemBank:Ir=!1,okText:Wr="\u786E\u5B9A\u5BFC\u5165",onSave:Tr})=>{var si;const[pi,Wi]=(0,re.useState)(1),[bi,kr]=(0,re.useState)(0),[an,Nn]=(0,re.useState)(""),[On,Dn]=(0,re.useState)(!1),[Mr,vn]=(0,re.useState)([]),[Vn,Xr]=(0,re.useState)([]),[fi,er]=(0,re.useState)(!1),[ia,Gi]=(0,re.useState)(!1),[Br,lr]=(0,re.useState)(!1),[qr,xa]=(0,re.useState)(!1),[vi,ca]=(0,re.useState)([]),[li,wi]=(0,re.useState)(1),[Li,oi]=(0,re.useState)(!1),[ir,Aa]=(0,re.useState)(!0),[Ka,Ca]=(0,re.useState)(0),[va,mo]=(0,re.useState)(!1),[ja]=Pe.default.useForm(),[wa]=Pe.default.useForm(),Qn=(0,re.useRef)(null),Ri=(0,re.useRef)(null),Ms=(0,re.useRef)(),ms=(0,re.useRef)(null),Oo=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],io=["C","C++","Java","Python","JavaScript","Ruby"];(0,re.useEffect)(()=>{sr!=null&&sr.length&&bs(sr)},[sr]),(0,re.useEffect)(()=>{pi===2&&Qn.current.focus()},[pi]),(0,re.useEffect)(()=>{Br&&ma()},[Br]);const rl=()=>{if(pi===1){Ne.ZP.warning("\u8BF7\u5148\u4E0A\u4F20\u8BD5\u9898\uFF01");return}je.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u6E05\u7A7A\u64CD\u4F5C\u5C06\u5220\u9664\u8BD5\u9898\u7F16\u8F91\u533A\u57DF\u7684\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u5B9A\u4E00\u952E\u6E05\u7A7A\u5417\uFF1F",onOk:()=>Ut(void 0,null,function*(){Wi(1)})})},ma=()=>Ut(void 0,null,function*(){const we=yield(0,lt.ZP)("/api/disciplines.json",{method:"get",params:{source:mn===1?"new_question":"subject"}});ca(we.disciplines||[])}),il=we=>{const ht=[],St=(Qt,Dt)=>{Qt.length>=2&&ht.push(Qt.join(""));for(let Cn=Dt;Cn<we.length;Cn++)Qt.push(we[Cn]),St(Qt,Cn+1),Qt.pop()};return St([],0),ht},zn=we=>(we=we||"",we=String(we),we=we.replace(/\s+/g,""),we),wo=we=>(we=we||"",we=String(we),we=we.replace(/<div>/g,""),we=we.replace(/<br>/g,`
|
|
|
`),we=we.replace(/<\/div>/g,`
|
|
|
`),we=_s(we),we),Ro=we=>we.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),_s=we=>we.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"),gs=we=>{var ht;const St=we.clipboardData;if(St){const Qt=St.types.toString(),Dt=St.items;if(Qt==="Files"||St.types.indexOf("Files")>-1){we.preventDefault();try{let Cn=Dt[1];((ht=Dt[0])==null?void 0:ht.kind)==="file"&&(Cn=Dt[0]);const Ln=Cn.getAsFile();(0,ct.I)(Ln,Mn=>{var gn;if(Mn.id){if(((gn=Ln==null?void 0:Ln.type)==null?void 0:gn.indexOf("image"))>-1){const Jt=`<img src='${Je.Z.API_SERVER}${Mn.url}'>`;document.execCommand("insertText",!1,Jt)}}else(Mn==null?void 0:Mn.status)===401&&(document.location.href="/user/login")})}catch(Cn){Ne.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function Uo(we,ht){return Ut(this,null,function*(){if(typeof we=="string")return yield ht(we);if(typeof we!="object"||we===null)return we;if(Array.isArray(we))return yield Promise.all(we.map(Dt=>Ut(this,null,function*(){return yield Uo(Dt,ht)})));const St={};for(const Qt in we)if(Object.prototype.hasOwnProperty.call(we,Qt)){const Dt=we[Qt];typeof Dt=="string"?St[Qt]=yield ht(Dt):typeof Dt=="object"?St[Qt]=yield Uo(Dt,ht):St[Qt]=Dt}return St})}const is=()=>Ut(void 0,null,function*(){var we;Dn(!0),Nn("\u5904\u7406\u4E2D"),yield new Promise(Qt=>setTimeout(Qt,1e3));let ht=(we=Ri.current)==null?void 0:we.querySelectorAll('[data-text="edit"]'),St="";try{ht.forEach(function(Qt){var Dt,Cn,Ln,Mn;const gn=Qt.cloneNode(!0),Jt=gn.querySelectorAll("span.edu_latex");for(let An of Jt){const Bn=An.getAttribute("title"),zr=document.createTextNode(Bn),ei=An;(Cn=(Dt=ei.parentNode)==null?void 0:Dt.replaceChild)==null||Cn.call(Dt,zr,ei)}const bn=gn.querySelectorAll("span[style]");for(let An of bn)if(An.style.fontFamily){const Bn=An.innerHTML,zr=document.createTextNode(Bn),ei=An;(Mn=(Ln=ei.parentNode)==null?void 0:Ln.replaceChild)==null||Mn.call(Ln,zr,ei)}gn==null||gn.childNodes.forEach(function(An){An.nodeType===Node.ELEMENT_NODE&&An.localName!=="h5"&&An.localName!=="h4"?St+=`<p>${An.innerHTML}</p>`:An.nodeType===Node.TEXT_NODE&&(St+=`<p>${An.textContent}</p>`)})}),Go("/api/intelligent_imports/import.json",{html:_s(St)})}catch(Qt){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",Qt)}}),Ks=we=>{let ht=we.filter(St=>!!(St!=null&&St.type));return ht=ht.map(St=>{var Qt;const Dt=(Qt=Wo.find(Ln=>Ln.id===(St==null?void 0:St.type)))==null?void 0:Qt.deal,Cn=un(Vt({},St),{id:String(Math.random()).slice(-6),knowledgePoint:zn(St==null?void 0:St.knowledgePoint)});return Dt?Dt(Cn):Cn}),ht},Eo=()=>{if(pi===1){Ne.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!");return}je.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u91CD\u65B0\u8BC6\u522B\u4F1A\u8986\u76D6\u53F3\u4FA7\u5DF2\u8BC6\u522B\u7ED3\u679C\uFF0C\u5305\u62EC\u4EBA\u5DE5\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u786E\u5B9A\u91CD\u65B0\u8BC6\u522B\u5417?",onOk:is})},jo=()=>re.createElement("div",{className:xe.row},re.createElement("div",{className:xe.leftLayout},re.createElement(En,{style:{height:675}},pi===1&&re.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>Wi(2)},re.createElement("div",{style:{color:"#9096A3",fontSize:12}},"1.\u672C\u529F\u80FD\u652F\u6301\u5BFC\u5165\u7684\u9898\u578B\uFF1A\u5355\u9009\u9898\u3001\u591A\u9009\u9898\u3001\u586B\u7A7A\u9898\u3001\u5224\u65AD\u9898\u3001\u7B80\u7B54\u9898\u3001 \u7EC4\u5408\u9898\u3001\u7F16\u7A0B\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u3002",re.createElement("br",null),"2.\u82E5\u8981\u5BFC\u5165\u7EC4\u5408\u9898\uFF0C\u8BF7\u5728\u9898\u76EE\u524D\u540E\u4F7F\u7528\u4E00\u5BF9\u201C","{{\u201D\u3001\u201C}}","\u201D\u5C06\u5185\u5BB9\u6807\u51FA\uFF1B\u5927\u9898\u9898\u5E72\u548C\u5C0F\u9898\u9898\u5E72\u4E4B\u95F4\u4E0D\u9700\u8981\u7A7A\u884C\uFF1B\u5927\u9898\u548C\u5C0F\u9898\u9898\u5E72\u90FD\u9700\u6807\u6CE8\u9898\u53F7\uFF1B\u5C0F\u9898\u7B54\u6848\u53EF\u8DDF\u5728\u5C0F\u9898\u9898\u5E72\u540E\uFF0C\u5E76\u7528\u7A7A\u683C\u4E0E\u9898\u5E72\u5185\u5BB9\u9694\u5F00\u3002\u8303\u4F8B\u53EF\u53C2\u8003\u63A8\u8350\u683C\u5F0F\u3002",re.createElement("br",null),"3.\u5BFC\u5165\u652F\u6301\u6587\u672C\u3001\u56FE\u7247\u3001\u516C\u5F0F\u3002\u9898\u76EE\u7ED3\u6784\u652F\u6301\u8BC6\u522B\u7B54\u6848\u3001\u89E3\u6790\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9\u3002",re.createElement("br",null),"4.\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u4FEE\u6539\u9898\u76EE\u5185\u5BB9\u540E\u91CD\u65B0\u8BC6\u522B\uFF0C\u6216\u4E0B\u8F7D\u63A8\u8350\u683C\u5F0F\uFF0C\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u5BFC\u5165\u8BC6\u522B\u3002",re.createElement("br",null)),re.createElement("div",{className:xe.imgBox,style:{marginTop:75}},re.createElement("img",{width:56,src:Ye}),re.createElement("span",null,"\u7F16\u8F91\u533A"))),pi===2&&re.createElement("div",{"data-text":"edit",onBlur:()=>{Qn.current.innerHTML||Wi(1)},ref:Qn,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),re.createElement("div",{className:xe.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},re.createElement("div",{className:xe.imgBox,style:{marginTop:240}},re.createElement("img",{width:56,src:We}),re.createElement("span",null,"\u9884\u89C8\u533A")))),Oa=(we,ht,St,Qt)=>{var Dt;console.log(we,ht,St,Qt,"onDataChange\u4FEE\u6539\u6570\u503C");const Cn=JSON.parse(JSON.stringify(Vn));Qt===void 0?Cn[ht][we]=St:Cn[ht].questions[Qt][we]=St;const Ln=Vt({},Cn[ht]),Mn=(Dt=Wo.find(gn=>gn.id===(Ln==null?void 0:Ln.type)))==null?void 0:Dt.deal;Cn[ht]=Mn(Ln),Xr(Cn)},$o=(we,ht,St)=>{var Qt;const Dt=St!==void 0,Cn=(Qt=Wo.find(gn=>gn.id===(we==null?void 0:we.type)))==null?void 0:Qt.type,Ln=`${ht+1}.${St===void 0?"":St+1+"."}`,Mn=`${(we==null?void 0:we.type)==="7"?"{{":""}${Ln}\u3010${Cn}\u3011${(we==null?void 0:we.question)||""}`;return re.createElement(re.Fragment,null,Dt&&re.createElement("h4",{contentEditable:!0}),re.createElement(Fe,{id:we==null?void 0:we.id,tagName:"div",value:Mn}))},Bl=(we,ht)=>Ut(void 0,null,function*(){var St;const Qt=yield _r(we,ht),Dt=(St=Qt==null?void 0:Qt.data)==null?void 0:St.content;if(Dt!=null&&Dt.length){const Cn=Ks(Dt)[0];Mr.splice(ht,1,Cn),Vn.splice(ht,1,Cn),vn([...Mr]),Xr([...Vn])}}),vs=(we,ht,St)=>{var Qt;const Dt=St!==void 0,Cn=(Qt=Wo.find(Mn=>Mn.id===(we==null?void 0:we.type)))==null?void 0:Qt.type,Ln=`${ht+1}.${St===void 0?"":St+1+"."}`;return Dt?re.createElement("div",{style:{padding:"10px 18px"}},`${Ln}\u3010${Cn}\u3011`,re.createElement(Fe,{id:we==null?void 0:we.id,tagName:"span",className:xe.edit,onBlur:Mn=>Oa("question",ht,Mn,St),value:(we==null?void 0:we.question)||""})):re.createElement(re.Fragment,null,re.createElement("div",{className:xe.actionHead},re.createElement("div",{className:"c-light-primary"},`${Ln}\u3010${Cn}\u3011`),mn!==1&&re.createElement(Ee.Z,{disabled:(we==null?void 0:we.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:Mn=>Oa("score",ht,Mn,St),value:we==null?void 0:we.score}),re.createElement(ye.Z,{align:"middle",style:{marginLeft:"auto"}},!!_r&&re.createElement("span",{className:"current c-light-primary mr30",onClick:()=>Bl(we,ht)},re.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),re.createElement(qe.default,{onChange:Mn=>Oa("checked",ht,Mn.target.checked,St),checked:!!(we!=null&&we.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),re.createElement(Fe,{id:we==null?void 0:we.id,tagName:"div",style:{padding:"10px 18px"},className:xe.edit,onBlur:Mn=>Oa("question",ht,Mn,St),value:we==null?void 0:we.question}))},al=(we,ht,St)=>re.createElement(re.Fragment,null,["0","1","2","4"].includes(we==null?void 0:we.type)&&re.createElement(Fe,{id:we==null?void 0:we.id,value:`\u7B54\u6848\uFF1A${ht||""}`,tagName:"p"}),!St&&re.createElement(Fe,{id:we==null?void 0:we.id,value:`\u96BE\u5EA6\uFF1A${(we==null?void 0:we.difficulty)||""}`,tagName:"p"}),(we==null?void 0:we.type)!=="7"&&re.createElement(Fe,{id:we==null?void 0:we.id,value:`\u89E3\u6790\uFF1A${(we==null?void 0:we.analyze)||""}`,tagName:"p"}),!St&&re.createElement(Fe,{id:we==null?void 0:we.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(we==null?void 0:we.knowledgePoint)||""}`,tagName:"p"})),es=(we,ht,St,Qt)=>{const Dt=Qt!==void 0,Cn=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Ln=Dt&&!we.last&&!we.errorMsg?{marginBottom:10}:{},Mn=Cn.map(gn=>({key:gn,label:gn,onClick:()=>Oa("difficulty",St,gn,Qt)}));return re.createElement("div",{className:xe.liWrap,style:Ln},["4"].includes(we==null?void 0:we.type)&&re.createElement("div",{className:xe.li},re.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),re.createElement(Fe,{id:we==null?void 0:we.id,tagName:"div",className:`${xe.edit} c-black`,onBlur:gn=>Oa("answer",St,[gn],Qt),value:ht})),!Dt&&re.createElement("div",{className:xe.li},re.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),re.createElement("div",{className:"c-black"},re.createElement(it.Z,{menu:{items:Mn}},re.createElement("span",{className:"c-light-primary"},we==null?void 0:we.difficulty,re.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(we==null?void 0:we.type)!=="7"&&re.createElement("div",{className:xe.li},re.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),re.createElement(Fe,{id:we==null?void 0:we.id,tagName:"div",className:`${xe.edit} c-grey-333`,onBlur:gn=>Oa("analyze",St,gn,Qt),value:we==null?void 0:we.analyze})),!Dt&&re.createElement("div",{onKeyDown:en,className:xe.li},re.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),re.createElement(Fe,{id:we==null?void 0:we.id,tagName:"div",value:(we==null?void 0:we.knowledgePoint)||"",className:`${xe.edit} c-grey-333`,onBlur:gn=>Oa("knowledgePoint",St,zn(wo(gn)),Qt)})))},$a=we=>re.createElement(re.Fragment,null,typeof(we==null?void 0:we.errorMsg)=="string"&&!!(we!=null&&we.errorMsg)&&re.createElement("h5",{contentEditable:!1},re.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),re.createElement("div",null,we==null?void 0:we.errorMsg))),Bs=we=>re.createElement(re.Fragment,null,typeof(we==null?void 0:we.errorMsg)=="string"&&!!(we!=null&&we.errorMsg)&&re.createElement("h5",null,re.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),re.createElement("div",null,we==null?void 0:we.errorMsg))),Xs=(we,ht,St,Qt)=>{let Dt="flex";return(xr&&Ka!==Qt||fi&&!(St!=null&&St.errorMsg))&&(Dt="none"),re.createElement("div",{className:xe.row,style:{display:Dt}},re.createElement("div",{className:xe.leftLayout},rn||re.createElement(En,null,re.createElement("div",{"data-text":"edit",contentEditable:!0,className:xe.question},we))),re.createElement("div",{className:xe.rightLayout},re.createElement(_n,{className:St!=null&&St.errorMsg?xe.error:""},ht)))},Wo=[{id:"0",type:"\u5355\u9009\u9898",element:(we,ht,St)=>{var Qt,Dt;const Cn=St!==void 0;let Ln=(Qt=we==null?void 0:we.answer)==null?void 0:Qt[0];const Mn=re.createElement(re.Fragment,null,$o(we,ht,St),(Dt=we==null?void 0:we.options)==null?void 0:Dt.map((An,Bn)=>re.createElement(Fe,{id:we==null?void 0:we.id,key:Bn,value:`${Oo[Bn]}.${An}`,tagName:"p"})),al(we,Ln,Cn),$a(we));let gn=Cn?we:Vn[ht];const Jt=gn==null?void 0:gn.options,bn=re.createElement(re.Fragment,null,vs(gn,ht,St),Jt==null?void 0:Jt.map((An,Bn)=>{var zr;return re.createElement("div",{key:Bn,className:xe.option},re.createElement("aside",{className:((zr=gn==null?void 0:gn.answer)==null?void 0:zr[0])===Oo[Bn]?xe.active:"",onClick:()=>Oa("answer",ht,[Oo[Bn]],St)},Oo[Bn]),re.createElement(Fe,{id:gn==null?void 0:gn.id,tagName:"div",className:`${xe.text}`,onBlur:ei=>{Jt[Bn]=ei,Oa("options",ht,Jt,St)},value:An}))}),es(gn,"",ht,St),Bs(gn));return Cn?[Mn,bn]:Xs(Mn,bn,gn,ht)},deal:we=>{var ht,St,Qt;we.score=we.score===void 0?2:we.score;let Dt=zn((ht=we==null?void 0:we.answer)==null?void 0:ht[0]).toUpperCase();we.answer=Dt?[Dt]:[];let Cn=[];if(!(we!=null&&we.options))Cn.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{we.options=(St=we.options)==null?void 0:St.slice(0,8);const Ln=we.options.map(gn=>gn==null?void 0:gn.trim().replace(/^\s+|\s+$/g,""));new Set(Ln).size!==Ln.length&&Cn.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return Dt||Cn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),Dt&&(Oo.slice(0,((Qt=we==null?void 0:we.options)==null?void 0:Qt.length)||8).includes(Dt)||Cn.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D")),zn(we==null?void 0:we.question)||Cn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),we.errorMsg=Cn.join(`
|
|
|
`),we}},{id:"1",type:"\u591A\u9009\u9898",element:(we,ht,St)=>{var Qt,Dt;const Cn=St!==void 0;let Ln=(Qt=we==null?void 0:we.answer)==null?void 0:Qt[0];const Mn=re.createElement(re.Fragment,null,$o(we,ht,St),(Dt=we==null?void 0:we.options)==null?void 0:Dt.map((An,Bn)=>re.createElement(Fe,{id:we==null?void 0:we.id,key:Bn,value:`${Oo[Bn]}.${An}`,tagName:"p"})),al(we,Ln,Cn),$a(we));let gn=Cn?we:Vn[ht];const Jt=gn==null?void 0:gn.options,bn=re.createElement(re.Fragment,null,vs(gn,ht,St),Jt==null?void 0:Jt.map((An,Bn)=>{var zr,ei;return re.createElement("div",{key:Bn,className:xe.option},re.createElement("aside",{className:(ei=(zr=gn==null?void 0:gn.answer)==null?void 0:zr[0])!=null&&ei.includes(Oo[Bn])?xe.active:"",onClick:()=>{var _i;let Mi=((_i=gn==null?void 0:gn.answer)==null?void 0:_i[0])||"";const ta=Oo[Bn];Mi.includes(ta)?Mi=Mi.replace(new RegExp(ta,"g"),""):Mi+=ta,Mi=Mi.split("").sort().join(""),Oa("answer",ht,[Mi],St)}},Oo[Bn]),re.createElement(Fe,{id:gn==null?void 0:gn.id,tagName:"div",className:`${xe.text}`,onBlur:_i=>{Jt[Bn]=_i,Oa("options",ht,Jt,St)},value:An}))}),es(gn,"",ht,St),Bs(gn));return Cn?[Mn,bn]:Xs(Mn,bn,gn,ht)},deal:we=>{var ht,St,Qt;we.score=we.score===void 0?2:we.score;let Dt=zn((ht=we==null?void 0:we.answer)==null?void 0:ht[0]).toUpperCase().split("").sort().join("");we.answer=Dt?[Dt]:[];let Cn=[];if(!(we!=null&&we.options))Cn.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{we.options=(St=we.options)==null?void 0:St.slice(0,8);const Ln=we.options.map(gn=>gn==null?void 0:gn.trim().replace(/^\s+|\s+$/g,""));new Set(Ln).size!==Ln.length&&Cn.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(Dt||Cn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),Dt){const Ln=Oo.slice(0,((Qt=we==null?void 0:we.options)==null?void 0:Qt.length)||8);il(Ln).includes(Dt)||Cn.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D")}return zn(we==null?void 0:we.question)||Cn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),we.errorMsg=Cn.join(`
|
|
|
`),we}},{id:"2",type:"\u5224\u65AD\u9898",element:(we,ht,St)=>{var Qt,Dt;const Cn=St!==void 0;let Ln=(Qt=we==null?void 0:we.answer)==null?void 0:Qt[0];const Mn=re.createElement(re.Fragment,null,$o(we,ht,St),al(we,Ln,Cn),$a(we));let gn=Cn?we:Vn[ht];const Jt=["\u6B63\u786E","\u9519\u8BEF"];let bn=((Dt=gn==null?void 0:gn.answer)==null?void 0:Dt[0])||"";["\u6B63\u786E","\u5BF9","T","True","t","true"].includes(bn)?bn="\u6B63\u786E":["\u9519\u8BEF","\u9519","T","true","t","false"].includes(bn)&&(bn="\u9519\u8BEF");const An=re.createElement(re.Fragment,null,vs(gn,ht,St),Jt==null?void 0:Jt.map((Bn,zr)=>re.createElement("div",{key:zr,className:xe.option},re.createElement("aside",{style:{borderRadius:2},className:bn===Bn?xe.active:"",onClick:()=>Oa("answer",ht,[Bn],St)},Bn==="\u6B63\u786E"?"T":"F"),re.createElement("div",{style:{pointerEvents:"none"},className:`${xe.text}`},Bn))),es(gn,"",ht,St),Bs(gn));return Cn?[Mn,An]:Xs(Mn,An,gn,ht)},deal:we=>{var ht;we.score=we.score===void 0?2:we.score;let St=zn((ht=we==null?void 0:we.answer)==null?void 0:ht[0]);we.answer=St?[St]:[];let Qt=[];return St||Qt.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),St&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(St)&&Qt.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),zn(we==null?void 0:we.question)||Qt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),we.errorMsg=Qt.join(`
|
|
|
`),we}},{id:"3",type:"\u586B\u7A7A\u9898",element:(we,ht,St)=>{var Qt,Dt;const Cn=St!==void 0,Ln=re.createElement(re.Fragment,null,$o(we,ht,St),(Qt=we==null?void 0:we.answer)==null?void 0:Qt.map((Jt,bn)=>re.createElement(Fe,{id:we==null?void 0:we.id,key:bn,tagName:"p",value:`\u7B54\u6848${bn+1}\uFF1A${Jt.text||""}`})),al(we,"",Cn),$a(we));let Mn=Cn?we:Vn[ht];const gn=re.createElement(re.Fragment,null,vs(Mn,ht,St),(Dt=Mn==null?void 0:Mn.answer)==null?void 0:Dt.map((Jt,bn)=>re.createElement("div",{key:bn,className:xe.option},re.createElement("aside",{className:xe.fill},"\u586B\u7A7A\u9879",bn+1),Jt.model===1&&re.createElement(Fe,{id:Mn==null?void 0:Mn.id,tagName:"div",onBlur:An=>{Mn.answer[bn].latex=wo(An),Oa("answer",ht,Mn.answer,St)},className:`${xe.text}`,value:Jt.latex}),Jt.model===2&&re.createElement(st.Z,{value:Jt.latex,onChange:An=>{Mn.answer[bn].latex=An,Oa("answer",ht,Mn.answer,St)}}))),es(Mn,"",ht,St),Bs(Mn));return Cn?[Ln,gn]:Xs(Ln,gn,Mn,ht)},deal:we=>{var ht;we.score=we.score===void 0?2:we.score;const St=(ht=we.answer)==null?void 0:ht.map(Dt=>{if(Object.prototype.toString.call(Dt)==="[object Object]")return Dt;Dt=Dt==null?void 0:Dt.trim();const Cn={model:1,text:Dt,latex:Dt};return Dt.startsWith("$$")&&Dt.endsWith("$$")||Dt.startsWith("`$$")&&Dt.endsWith("$$`")?(Cn.model=2,Cn.latex=Dt.slice(2,-2)):Cn.latex=wo(Dt),Cn});we.answer=St;let Qt=[];return St||Qt.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),zn(we==null?void 0:we.question)||Qt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),we.errorMsg=Qt.join(`
|
|
|
`),we}},{id:"4",type:"\u7B80\u7B54\u9898",element:(we,ht,St)=>{var Qt,Dt;const Cn=St!==void 0;let Ln=(Qt=we==null?void 0:we.answer)==null?void 0:Qt[0];const Mn=re.createElement(re.Fragment,null,$o(we,ht,St),al(we,Ln,Cn),$a(we));let gn=Cn?we:Vn[ht];const Jt=re.createElement(re.Fragment,null,vs(gn,ht,St),es(gn,(Dt=gn==null?void 0:gn.answer)==null?void 0:Dt[0],ht,St),Bs(gn));return Cn?[Mn,Jt]:Xs(Mn,Jt,gn,ht)},deal:we=>{we.score=we.score===void 0?5:we.score;let ht=[];return zn(we==null?void 0:we.question)||ht.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),we.errorMsg=ht.join(`
|
|
|
`),we}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(we,ht)=>{var St,Qt;const Dt=Vn[ht],Cn=io.slice(0,4).map(Ln=>({key:Ln,label:Ln,onClick:()=>Oa("platform",ht,Ln)}));return re.createElement("div",{className:xe.row,style:{display:fi?Dt!=null&&Dt.errorMsg?"flex":"none":"flex"}},re.createElement("div",{className:xe.leftLayout},re.createElement(En,null,re.createElement("div",{"data-text":"edit",contentEditable:!0,className:xe.question},$o(we,ht),re.createElement(Fe,{id:we==null?void 0:we.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(we==null?void 0:we.description)||""}`,tagName:"p"}),al(we),re.createElement(Fe,{id:we==null?void 0:we.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${we==null?void 0:we.timeLimit}`,tagName:"p"}),re.createElement(Fe,{id:we==null?void 0:we.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(we==null?void 0:we.platform)||""}`,tagName:"p"}),re.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),re.createElement("h4",null),re.createElement(Fe,{id:we==null?void 0:we.id,value:(we==null?void 0:we.code)||"",tagName:"div"}),(St=we==null?void 0:we.inputs)==null?void 0:St.map((Ln,Mn)=>{var gn;return re.createElement(re.Fragment,{key:Mn},re.createElement("h4",null),re.createElement(Fe,{id:we==null?void 0:we.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Mn+1})\u8F93\u5165\uFF1A${Ln||""}`,tagName:"div"}),re.createElement(Fe,{id:we==null?void 0:we.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Mn+1})\u8F93\u51FA\uFF1A${((gn=we==null?void 0:we.outputs)==null?void 0:gn[Mn])||""}`,tagName:"div"}))}),$a(we)))),re.createElement("div",{className:xe.rightLayout},re.createElement(_n,{className:Dt!=null&&Dt.errorMsg?xe.error:""},vs(Dt,ht),re.createElement("div",{className:xe.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},re.createElement("div",{className:xe.li},re.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),re.createElement(Fe,{className:xe.edit,id:Dt==null?void 0:Dt.id,value:Dt==null?void 0:Dt.description,tagName:"div",onBlur:Ln=>Oa("description",ht,Ln)}))),es(Dt,"",ht),re.createElement("div",{className:xe.liWrap},re.createElement("div",{className:xe.li},re.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),re.createElement(Fe,{className:xe.edit,id:Dt==null?void 0:Dt.id,value:Dt==null?void 0:Dt.timeLimit,tagName:"div",onBlur:Ln=>Oa("timeLimit",ht,wo(Ln))})),re.createElement("div",{className:xe.li},re.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),re.createElement("div",{className:"c-black"},re.createElement(it.Z,{menu:{items:Cn}},re.createElement("span",{className:"c-light-primary"},Dt==null?void 0:Dt.platform,re.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),re.createElement("div",{className:xe.li,style:{flexDirection:"column",alignItems:"start"}},re.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),re.createElement(Fe,{className:xe.edit,id:Dt==null?void 0:Dt.id,value:(Dt==null?void 0:Dt.code)||"",onBlur:Ln=>Oa("code",ht,wo(Ln)),tagName:"div"}))),(Qt=Dt==null?void 0:Dt.inputs)==null?void 0:Qt.map((Ln,Mn)=>{var gn;return re.createElement("div",{className:xe.liWrap,key:Mn},re.createElement("div",{className:xe.li},re.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Mn+1,")\u8F93\u5165\uFF1A"),re.createElement(Fe,{id:Dt==null?void 0:Dt.id,value:Ln||"",className:xe.edit,onBlur:Jt=>{const bn=[...(Dt==null?void 0:Dt.inputs)||[]];bn[Mn]=wo(Jt),Oa("inputs",ht,bn)},tagName:"div"})),re.createElement("div",{className:xe.li},re.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Mn+1,")\u8F93\u51FA\uFF1A"),re.createElement(Fe,{id:Dt==null?void 0:Dt.id,value:((gn=Dt==null?void 0:Dt.outputs)==null?void 0:gn[Mn])||"",className:xe.edit,onBlur:Jt=>{const bn=[...(Dt==null?void 0:Dt.outputs)||[]];bn[Mn]=wo(Jt),Oa("outputs",ht,bn)},tagName:"div"})))}),Bs(Dt))))},deal:we=>{var ht,St,Qt;we.score=we.score===void 0?10:we.score,we.code=(ht=we.code)==null?void 0:ht.trim();let Dt=[];zn(we==null?void 0:we.question)?((St=we==null?void 0:we.question)==null?void 0:St.length)>60&&Dt.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):Dt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),zn(we==null?void 0:we.description)||Dt.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const Cn=zn(String((we==null?void 0:we.timeLimit)||""));if(we.timeLimit=Cn,(!Cn||Cn&&!["3","4","5","6","7","8","9","10"].includes(Cn))&&Dt.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),we.platform=zn(we==null?void 0:we.platform),we!=null&&we.platform){const Ln=["c","c++","java","python"],Mn=(Qt=we==null?void 0:we.platform)==null?void 0:Qt.toLowerCase(),gn=Ln.findIndex(Jt=>Jt===Mn);gn>-1?we.platform=io[gn]:Dt.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else Dt.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(we!=null&&we.inputs)||!(we!=null&&we.outputs))we.inputs=[],we.outputs=[],Dt.push("\u672A\u8BC6\u522B\u5230\u6D4B\u8BD5\u7528\u4F8B\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u5165\uFF1A1\uFF1B\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u51FA\uFF1A2");else{const Ln=Math.min(we.inputs.length,we.outputs.length);we.inputs=we.inputs.slice(0,Ln),we.outputs=we.outputs.slice(0,Ln),we.outputs.some(Mn=>!zn(Mn))&&Dt.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return we.errorMsg=Dt.join(`
|
|
|
`),we}},{id:"7",type:"\u7EC4\u5408\u9898",element:(we,ht)=>{var St,Qt;const Dt=Vn[ht];return re.createElement("div",{className:xe.row,style:{display:fi?Dt!=null&&Dt.errorMsg?"flex":"none":"flex"}},re.createElement("div",{className:xe.leftLayout},re.createElement(En,null,re.createElement("div",{"data-text":"edit",contentEditable:!0,className:xe.question},$o(we,ht),al(we),(St=we==null?void 0:we.questions)==null?void 0:St.map((Cn,Ln)=>{var Mn;const gn=(Mn=Wo.find(Jt=>Jt.id===(Cn==null?void 0:Cn.type)))==null?void 0:Mn.element;return re.createElement(re.Fragment,{key:`left-${we.id}-${Ln}`},gn(Cn,ht,Ln)[0])}),$a(we),re.createElement("p",{contentEditable:!0},"}}")))),re.createElement("div",{className:xe.rightLayout},re.createElement(_n,{className:Dt!=null&&Dt.errorMsg?xe.error:""},vs(Dt,ht),es(Dt,"",ht),(Qt=Dt==null?void 0:Dt.questions)==null?void 0:Qt.map((Cn,Ln)=>{var Mn;const gn=(Mn=Wo.find(Jt=>Jt.id===(Cn==null?void 0:Cn.type)))==null?void 0:Mn.element;return re.createElement(re.Fragment,{key:`right-${Dt.id}-${Ln}`},gn(Cn,ht,Ln)[1])}),Bs(Dt))))},deal:we=>{var ht,St,Qt,Dt,Cn;const Ln=Ks,Mn=[...Wo],gn=Mn.findIndex(Bn=>Bn.id==="0"),Jt=Mn.findIndex(Bn=>Bn.id==="1");if(gn!==-1){const Bn=Mn[gn].deal;Mn[gn].deal=zr=>{const ei=Bn(zr);return ei.errorMsg&&(ei.errorMsg=ei.errorMsg.split(`
|
|
|
`).filter(_i=>_i!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
|
|
|
`)),ei}}if(Jt!==-1){const Bn=Mn[Jt].deal;Mn[Jt].deal=zr=>{const ei=Bn(zr);return ei.errorMsg&&(ei.errorMsg=ei.errorMsg.split(`
|
|
|
`).filter(_i=>_i!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
|
|
|
`)),ei}}we.questions=(ht=we.questions)!=null&&ht.length?Ks(we.questions.slice(0,20)):[],we.questions=(St=we.questions)==null?void 0:St.map((Bn,zr)=>{var ei;if(Bn.type==="0"||Bn.type==="1"){const _i=(ei=Bn.options)==null?void 0:ei.map(Mi=>Mi==null?void 0:Mi.trim().replace(/^\s+|\s+$/g,""));_i&&new Set(_i).size!==_i.length&&(Bn.errorMsg=(Bn.errorMsg?Bn.errorMsg+`
|
|
|
`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return un(Vt({},Bn),{last:zr===we.questions.length-1})});const bn=(Qt=we.questions)==null?void 0:Qt.reduce((Bn,zr)=>{const ei=parseFloat(zr.score);return isNaN(ei)?Bn:Bn+ei},0);we.score=bn;let An=[];return(Dt=we.questions)!=null&&Dt.length?we.errorMsg=((Cn=we.questions)==null?void 0:Cn.findIndex(Bn=>!!Bn.errorMsg))>-1:An.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),zn(we==null?void 0:we.question)||An.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),An.length&&(we.errorMsg=An.join(`
|
|
|
`)),we}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(we,ht)=>{var St,Qt;const Dt=Vn[ht],Cn=io.map(Ln=>({key:Ln,label:Ln,onClick:()=>Oa("platform",ht,Ln)}));return re.createElement("div",{className:xe.row,style:{display:fi?Dt!=null&&Dt.errorMsg?"flex":"none":"flex"}},re.createElement("div",{className:xe.leftLayout},re.createElement(En,null,re.createElement("div",{"data-text":"edit",contentEditable:!0,className:xe.question},$o(we,ht),al(we),re.createElement(Fe,{id:we==null?void 0:we.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${we==null?void 0:we.timeLimit}`,tagName:"p"}),re.createElement(Fe,{id:we==null?void 0:we.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(we==null?void 0:we.platform)||""}`,tagName:"p"}),re.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),re.createElement("h4",null),re.createElement(Fe,{id:we==null?void 0:we.id,value:(we==null?void 0:we.code)||"",tagName:"div"}),re.createElement("h4",null),re.createElement(Fe,{id:we==null?void 0:we.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(we==null?void 0:we.input)||""}`,tagName:"p"}),re.createElement(Fe,{id:we==null?void 0:we.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(we==null?void 0:we.output)||""}`,tagName:"p"}),(St=we==null?void 0:we.answer)==null?void 0:St.map((Ln,Mn)=>re.createElement(Fe,{key:Mn,id:we==null?void 0:we.id,value:`\u7B54\u6848${Mn+1}\uFF1A${Ln||""}`,tagName:"p"})),$a(we)))),re.createElement("div",{className:xe.rightLayout},re.createElement(_n,{className:Dt!=null&&Dt.errorMsg?xe.error:""},vs(Dt,ht),es(Dt,"",ht),re.createElement("div",{className:xe.liWrap},re.createElement("div",{className:xe.li,onKeyDown:en},re.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),re.createElement(Fe,{className:xe.edit,id:Dt==null?void 0:Dt.id,value:Dt==null?void 0:Dt.timeLimit,tagName:"div",onBlur:Ln=>Oa("timeLimit",ht,wo(Ln))})),re.createElement("div",{className:xe.li},re.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),re.createElement("div",{className:"c-black"},re.createElement(it.Z,{menu:{items:Cn}},re.createElement("span",{className:"c-light-primary"},Dt==null?void 0:Dt.platform,re.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),re.createElement("div",{className:xe.li,style:{flexDirection:"column",alignItems:"start"}},re.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),re.createElement(Fe,{className:xe.edit,id:Dt==null?void 0:Dt.id,value:(Dt==null?void 0:Dt.code)||"",onBlur:Ln=>Oa("code",ht,wo(Ln)),tagName:"div"})),re.createElement("div",{className:xe.li},re.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),re.createElement(Fe,{className:xe.edit,id:Dt==null?void 0:Dt.id,value:(Dt==null?void 0:Dt.input)||"",onBlur:Ln=>Oa("input",ht,wo(Ln)),tagName:"div"})),re.createElement("div",{className:xe.li},re.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),re.createElement(Fe,{className:xe.edit,id:Dt==null?void 0:Dt.id,value:(Dt==null?void 0:Dt.output)||"",onBlur:Ln=>Oa("output",ht,wo(Ln)),tagName:"div"}))),re.createElement("div",{className:xe.liWrap},(Qt=Dt==null?void 0:Dt.answer)==null?void 0:Qt.map((Ln,Mn)=>re.createElement("div",{className:xe.li,key:Mn},re.createElement("aside",null,"\u7B54\u6848",Mn+1,"\uFF1A"),re.createElement(Fe,{id:Dt==null?void 0:Dt.id,value:Ln||"",className:xe.edit,onBlur:gn=>{const Jt=[...(Dt==null?void 0:Dt.answer)||[]];Jt[Mn]=wo(gn),Oa("output",ht,Jt)},tagName:"div"})))),Bs(Dt))))},deal:we=>{var ht,St,Qt,Dt,Cn,Ln,Mn,gn;we.score=we.score===void 0?10:we.score,we.code=(Qt=(St=(ht=we.code)==null?void 0:ht.trim())==null?void 0:St.replace(/@_@/g,"@\u2581@"))==null?void 0:Qt.replace(/@__@/g,"@\u2581\u2581@");let Jt=[];if(zn(we==null?void 0:we.question)||Jt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),zn(we==null?void 0:we.code)?/@▁@|@▁▁@/.test(we==null?void 0:we.code)?(Dt=we==null?void 0:we.answer)!=null&&Dt.length&&((Cn=we==null?void 0:we.code.match(/@▁@|@▁▁@/g))==null?void 0:Cn.length)!==((Ln=we==null?void 0:we.answer)==null?void 0:Ln.length)&&Jt.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Jt.push("\u7A0B\u5E8F\u4EE3\u7801\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u7A0B\u5E8F\u4EE3\u7801\u4E2D\u7684\u586B\u7A7A\u9879\u9700\u8981\u4F7F\u7528 @\u2581@ \u7B26\u53F7\u6807\u8BC6\u51FA\u6765"):Jt.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),we!=null&&we.answer?(Mn=we.answer)!=null&&Mn.some(An=>!zn(An))&&Jt.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):Jt.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),we.platform=zn(we==null?void 0:we.platform),we!=null&&we.platform){const An=["c","c++","java","python","javascript","ruby"],Bn=(gn=we==null?void 0:we.platform)==null?void 0:gn.toLowerCase(),zr=An.findIndex(ei=>ei===Bn);zr>-1?we.platform=io[zr]:Jt.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else Jt.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");zn(we==null?void 0:we.output)||Jt.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const bn=zn(String((we==null?void 0:we.timeLimit)||""));return we.timeLimit=bn,(!bn||bn&&!["3","4","5","6","7","8","9","10"].includes(bn))&&Jt.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),we.errorMsg=Jt.join(`
|
|
|
`),we}}],ys=()=>re.createElement(re.Fragment,null,Mr.filter(we=>{var ht;return!!((ht=Wo.find(Qt=>Qt.id===(we==null?void 0:we.type)))==null?void 0:ht.element)}).map((we,ht)=>{var St;const Qt=(St=Wo.find(Dt=>Dt.id===(we==null?void 0:we.type)))==null?void 0:St.element;return re.createElement(re.Fragment,{key:we.id},Qt(we,ht))})),Ds=()=>Ut(void 0,null,function*(){const we=Vn.filter(ht=>!ht.checked);if(pi!==3||!we.length){Ne.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if(Tr){mo(!0),yield Tr(Vn),mo(!1);return}ja.setFieldsValue({sub_discipline_id:Xt}),lr(!0)}),Fs=(we,ht=[])=>{if(typeof we=="string")return we.trim();if(Array.isArray(we))return we.map(St=>Fs(St,ht));if(typeof we=="object"&&we!==null){const St={};for(const Qt in we)we.hasOwnProperty(Qt)&&(ht.includes(Qt)?St[Qt]=we[Qt]:St[Qt]=Fs(we[Qt],ht));return St}return we},bs=we=>Ut(void 0,null,function*(){const ht=Ks(Fs(we));vn(ht),Xr(JSON.parse(JSON.stringify(ht))),Wi(3),Dn(!1),er(!1)});(0,re.useEffect)(()=>{if(ir)return;const we=()=>{kr(ht=>ht>=90?(clearInterval(Ms.current),90):ht+1)};return Ms.current=setInterval(we,5e4/90),()=>clearInterval(Ms.current)},[ir]);const Go=(we,ht)=>{Aa(!1);const St=new FormData;Object.keys(ht).forEach(Dt=>{St.append(Dt,ht[Dt])});const Qt=new window.XMLHttpRequest;Qt.withCredentials=!0,Qt.addEventListener("load",function(Dt){return Ut(this,null,function*(){var Cn,Ln;try{const Mn=JSON.parse((Cn=Dt==null?void 0:Dt.target)==null?void 0:Cn.response);if(Aa(!0),kr(100),yield new Promise(gn=>setTimeout(()=>gn(),780)),Mn.status===0){if(!((Ln=Mn==null?void 0:Mn.data)!=null&&Ln.length)){Ne.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),Dn(!1);return}bs((Mn==null?void 0:Mn.data)||[])}else Dn(!1),Ne.ZP.warning(Mn==null?void 0:Mn.message)}catch(Mn){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",Mn)}})}),Qt.addEventListener("error",()=>{Dn(!1)}),Qt.open("POST",`${Je.Z.API_SERVER}${we}`),Qt.send(St)},Te=we=>Ut(void 0,null,function*(){const ht=we.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf(ht)==-1?(Ne.ZP.error(`${we.name}\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\uFF0C\u5F53\u524D\u4EC5\u9650\u652F\u6301\u683C\u5F0F\u4E3Adocx\u6587\u4EF6\uFF08Microsoft Word 2007\u4EE5\u4E0A\u7684\u7248\u672C\uFF09`),Promise.reject()):(Dn(!0),Nn("\u5904\u7406\u4E2D"),Go("/api/intelligent_imports/import.json",{file:we}),Promise.reject())});let Ue=[{key:1,label:re.createElement(he.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:Te},re.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,wt.Ny)()||(0,wt.$O)())&&Ue.push({key:2,label:re.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{ms.current.onClick()}});const tn=[Vn.length,(si=Vn.filter(we=>!!(we!=null&&we.errorMsg)))==null?void 0:si.length];return re.createElement("div",{className:At()(xe.intelligentBox,"intelligent-body-curb",ge),style:un(Vt({},pe),{width:le}),ref:Ri},re.createElement("div",{className:xe.underpin},re.createElement("b",{style:wr}),re.createElement("b",{style:wr})),re.createElement("div",{className:xe.head,style:{top:ln}},re.createElement("div",{className:xe.leftLayout},mr||re.createElement(re.Fragment,null,re.createElement(ye.Z,{align:"middle"},re.createElement("div",{className:xe.title},"\u8BD5\u9898\u7F16\u8F91"),!Kt&&re.createElement(Ze.op,{href:`${Je.Z.API_SERVER}/api/intelligent_imports/download_template`,download:!0,type:"link"},"\u4E0B\u8F7DWord\u6A21\u7248",re.createElement("i",{className:"iconfont icon-xiazai4 font14 ml10"})),re.createElement(Ze.op,{onClick:rl,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!Kt&&re.createElement(it.Z,{overlayClassName:xe.menu,menu:{items:Ue}},re.createElement(Ze.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!Ji&&Ji),re.createElement("div",{className:xe.tip},re.createElement("i",{className:"iconfont icon-tishi7 font12 mr10"}),"\u63D0\u793A\uFF1A\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u7F16\u8F91\u533A\u70B9\u51FB\u5BF9\u5E94\u7684\u8BD5\u9898\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u8BC6\u522B"))),re.createElement(ye.Z,{className:xe.rightLayout,style:{alignItems:"start"}},Gt||re.createElement(re.Fragment,null,re.createElement("div",{className:xe.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(pi)&&re.createElement(qe.default,{className:"ml20",checked:fi,onChange:we=>er(we.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(pi)&&re.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",re.createElement("span",{className:"ml5 mr5 c-light-primary"},tn[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",re.createElement("span",{className:"ml5 mr5 c-red-e53"},tn[1]),"\u9898")),xr&&re.createElement("div",{className:xe.tabs},Mr==null?void 0:Mr.map((we,ht)=>re.createElement("div",{onClick:()=>{Ca(ht)},className:Ka===ht&&xe.active,key:ht},"\u65B0\u9898",ht+1)))),re.createElement("div",{className:xe.centerBox},re.createElement("img",{className:"mb10",src:$e,width:56}),!Jr&&re.createElement(Ze.op,{onClick:Eo},"\u8BC6\u522B"))),[1,2].includes(pi)&&jo(),[3].includes(pi)&&ys(),re.createElement("div",{className:"pb10"}),re.createElement("div",{className:xe.buttonFixed},re.createElement("div",{className:xe.buttonWrap},re.createElement(gt.ZP,{size:"middle",className:`${xe.button} mr20`,onClick:ze},"\u53D6\u6D88"),re.createElement(gt.ZP,{size:"middle",type:"primary",loading:va,className:`${xe.button}`,onClick:Ds},Wr))),re.createElement(je.default,{centered:!0,closable:!1,destroyOnClose:!0,open:On,title:null,footer:null,width:320,afterClose:()=>kr(0)},re.createElement(ye.Z,{align:"middle",style:{flexDirection:"column"}},re.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},an,re.createElement("span",{className:xe.dotLoading},re.createElement("span",null,"."),re.createElement("span",null,"."),re.createElement("span",null,"."))),re.createElement(kt.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:bi}),re.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",re.createElement("span",{className:"ml5 c-light-primary"},bi,"%")))),re.createElement(je.default,{centered:!0,open:Br,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:ia,width:480,onCancel:()=>lr(!1),onOk:()=>ja.submit(),afterClose:()=>{ja.resetFields()}},re.createElement(Pe.default,{style:{maxHeight:550},form:ja,layout:"horizontal",colon:!1,size:"large",onFinish:we=>Ut(void 0,null,function*(){var ht,St,Qt,Dt,Cn;const Ln=Vn.filter(Jt=>!Jt.checked&&!Jt.errorMsg);Gi(!0);const Mn=()=>Ut(void 0,null,function*(){var Jt,bn;const An=yield(0,lt.ZP)("/api/intelligent_imports/save.json",{method:"post",body:un(Vt(Vt({},Pt),we),{list:Ln,mode:mn})});An.status===0&&(Ir&&((Jt=An==null?void 0:An.data)!=null&&Jt.success)&&window.location.pathname==="/problemset"&&(Mt.Z.publish("refresh-item-bank",we.group_id),yield new Promise(Bn=>setTimeout(()=>Bn(),1500))),Ne.ZP.success(`\u6210\u529F\u5BFC\u5165${(bn=An==null?void 0:An.data)==null?void 0:bn.success}\u9053\u8BD5\u9898`,3),bt(An),lr(!1)),Gi(!1)});if(mn!==1){yield Mn();return}const gn=yield(0,lt.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:Vn,mode:mn}});if(gn.status===0){if(!((ht=gn==null?void 0:gn.data)!=null&&ht.error_size)){yield Mn();return}je.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{Gi(!1)},title:"\u63D0\u793A",content:re.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",re.createElement("span",{className:"c-light-primary ml5 mr5"},(St=gn==null?void 0:gn.data)==null?void 0:St.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",re.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(Qt=gn==null?void 0:gn.data)==null?void 0:Qt.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",re.createElement("span",{className:"ml5 mr5"},(Cn=(Dt=gn==null?void 0:gn.data)==null?void 0:Dt.index)==null?void 0:Cn.join("\u3001")),"\u9053\uFF09\uFF0C\u91CD\u590D\u8BD5\u9898\u5C06\u4F1A\u4E3A\u60A8\u81EA\u52A8\u8FC7\u6EE4\uFF0C\u786E\u5B9A\u5BFC\u5165\u5417\uFF1F"),onOk:Mn})}})},re.createElement("div",{className:"c-grey-999 mb20"},"\u63D0\u793A\uFF1A\u8BC6\u522B\u6709\u8BEF\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u5BFC\u5165"),re.createElement(Pe.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"sub_discipline_id",labelCol:{span:5},wrapperCol:{span:19},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"}]},re.createElement(Xe.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",fieldNames:{label:"name",value:"id",children:"sub_disciplines"},options:vi})),mn===1&&re.createElement(Pe.default.Item,{label:re.createElement(ye.Z,{align:"middle",style:{justifyContent:"space-between"}},re.createElement("span",null,"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55"),re.createElement("div",{onClick:()=>xa(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},re.createElement("img",{className:"mr5 primary-hover",src:_t}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"group_id",labelCol:{span:24},wrapperCol:{span:24}},re.createElement(Tt.Z,{key:li})))),re.createElement(je.default,{centered:!0,open:qr,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:Li,onCancel:()=>xa(!1),onOk:()=>wa.submit(),afterClose:()=>{wa.resetFields()}},re.createElement(Pe.default,{style:{maxHeight:550},form:wa,layout:"horizontal",colon:!1,size:"large",onFinish:we=>Ut(void 0,null,function*(){var ht;oi(!0),(yield(0,lt.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:we.name,parent_id:(ht=we==null?void 0:we.parent_id)==null?void 0:ht[0]}})).status===0?(wi(li+1),setTimeout(()=>{Ne.ZP.success("\u64CD\u4F5C\u6210\u529F"),xa(!1),oi(!1)},1e3)):oi(!1)})},re.createElement(Pe.default.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},re.createElement(ft.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"})),re.createElement(Pe.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},re.createElement(Tt.Z,null)))),re.createElement(jt.Z,{onSave:we=>{Dn(!0),Nn("\u5904\u7406\u4E2D"),Go("/api/intelligent_imports/import.json",{html:we})},ref:ms}))},se=et;var ue=Ce},4069:function(cn,yn,de){"use strict";de.d(yn,{N:function(){return ft}});var re=de(67294),xe=de(11713),tt=de(14446),At=de(69677),Pe=de(2453),Ne=de(71230),je=de(15746),Ee=de(33170),ye={wrap:"wrap___F7E3F",selectWrapper:"selectWrapper____kESB",tips:"tips___aHjQY",linkBtn:"linkBtn___uggVr",mainText:"mainText____S1I0",public_tips:"public_tips___sZVWd",inputCss:"inputCss___t66EO",bt:"bt___lXptu",add_style:"add_style___knrMF"},qe=de(94184),it=de.n(qe),he=de(55304),gt=de(67294),kt=(Ze,Je,et)=>new Promise((Ye,We)=>{var $e=_t=>{try{Tt(et.next(_t))}catch(Ot){We(Ot)}},lt=_t=>{try{Tt(et.throw(_t))}catch(Ot){We(Ot)}},Tt=_t=>_t.done?Ye(_t.value):Promise.resolve(_t.value).then($e,lt);Tt((et=et.apply(Ze,Je)).next())});const{Option:Xe}=xe.default,ft=({subId:Ze,value:Je,selectvalues:et,disabled:Ye,knowledgeOptions:We=[],className:$e,height:lt,onChange:Tt=()=>{},onAddKnowledgeFinish:_t=()=>{},zIndex:Ot=1e3})=>{const st=(0,re.useRef)(),[ct,He]=(0,re.useState)([]);Je=Je||[];const pt=(Qe,Fe)=>{Qe?(He([...Fe]),Tt([...Fe])):(He([]),Tt([]))};(0,re.useEffect)(()=>{(et==null?void 0:et.length)>0?(He([...et]),Tt([...et])):(He([]),Tt([]))},[We]),(0,re.useEffect)(()=>{(Je==null?void 0:Je.length)>0&&Tt([...Je])},[We]);const Ve=Qe=>{Qe.preventDefault(),st.current="",tt.default.confirm({centered:!0,width:585,zIndex:Ot,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",className:"custom-modal-divider",content:gt.createElement("div",{className:"font14"},gt.createElement("div",{className:ye.public_tips},gt.createElement(he.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),gt.createElement("div",{style:{display:"flex",alignItems:"center"}},gt.createElement("div",{style:{width:"95px"}},gt.createElement("span",{className:ye.bt},"*"),"\u77E5\u8BC6\u70B9\u540D\u79F0"),gt.createElement(At.default,{className:ye.inputCss,style:{width:"calc(100% - 95px)"},maxLength:20,size:"middle",showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:st.current,onChange:Fe=>{st.current=Fe.target.value}}))),onOk:()=>new Promise((Fe,wt)=>kt(void 0,null,function*(){if(!st.current)return Pe.ZP.warning("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),wt();if(st.current.length>20)return Pe.ZP.warning("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),wt();const Mt=yield(0,Ee.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:st.current,sub_discipline_id:Ze}});if((Mt==null?void 0:Mt.status)===0){_t({id:Mt.tag_discipline_id,name:st.current,type:"personal"});let jt=et||[];jt.push(Mt.tag_discipline_id),Tt([...jt]),He([...jt]),Tt([...jt])}return Fe()}))})};return gt.createElement(Ne.Z,{wrap:!1,align:"middle",className:it()(ye.wrap,$e)},gt.createElement(je.Z,null,gt.createElement(xe.default,{mode:"multiple",disabled:!Ze||Ye,className:ye.selectWrapper,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",onChange:pt,style:{width:lt||490},showSearch:!0,allowClear:!0,value:ct,filterOption:(Qe,Fe)=>Fe.label.indexOf(Qe.toLowerCase())>=0},We==null?void 0:We.map(Qe=>gt.createElement(Xe,{key:Qe.id,value:Qe.id,label:Qe.name},gt.createElement("div",{style:{display:"flex",alignItems:"center"}},gt.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},Qe.name),(Qe==null?void 0:Qe.type)==="personal"&>.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),Ze&>.createElement(je.Z,{className:`ml20 ${lt&&ye.add_style}`},gt.createElement("span",{className:ye.tips},"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),gt.createElement("span",{className:ye.linkBtn,onClick:Ve},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))}},35713:function(cn,yn,de){"use strict";var re=de(67294),xe=de(71736),tt=de(84279),At=de(36527),Pe=de(14446),Ne=de(67294);const je=(0,re.forwardRef)(({callback:Ee,width:ye,onChange:qe,disabled:it,readOnly:he,type:gt="",value:kt="",style:Xe={}},ft)=>{const Ze=(0,re.useRef)(),Je=(0,re.useRef)(),[et,Ye]=(0,re.useState)(0),[We,$e]=(0,re.useState)(0),[lt,Tt]=(0,re.useState)(!1),_t=()=>{var He=document.createElement("div");He.innerHTML=Ze.current.getValue();var pt=He.innerText;return Ee&&Ee(pt),pt};(0,re.useImperativeHandle)(ft,()=>({getData:_t}));const Ot=He=>{He.preventDefault();const pt=He.clientX-et,Ve=He.clientY-We;document.body.onmousemove=Qe=>{let Fe=Qe.clientX-pt,wt=Qe.clientY-Ve;const Mt=document.getElementsByClassName("markdown-popup-form")[0],jt=window.innerWidth-Mt.offsetWidth,Re=window.innerHeight-Mt.offsetHeight;Fe=Math.max(0,Math.min(Fe,jt)),wt=Math.max(0,Math.min(wt,Re)),st(Qe.clientX,Qe.clientY,pt,Ve)&&(Ye(Fe),$e(wt))},document.body.onmouseup=function(){document.body.onmousemove=null}},st=(He,pt,Ve,Qe)=>{const Fe=document.body.clientHeight,wt=document.body.clientWidth;return He<20&&Ve>He||He>wt-20&&Ve<He||pt<20&&Qe>pt||pt>Fe-20&&Qe<pt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,re.useEffect)(()=>{lt&&setTimeout(()=>{const He=document.getElementsByClassName("markdown-popup-form")[0],pt=window.innerWidth/2-He.offsetWidth/2,Ve=window.innerHeight/2-He.offsetHeight/2;Ye(pt),$e(Ve)},0)},[lt]);const ct=()=>{it||he||Tt(!0)};return Ne.createElement("div",{style:Xe},Ne.createElement("div",{style:{width:ye||"100%",position:"relative"},className:`${xe.Z.mathFillWrap} ${it||he?"cursorDefault":""}`,onClick:()=>ct()},Ne.createElement("math-field",{disabled:it,locale:"zh_cn",class:`${xe.Z.mathField} ${gt}`,readOnly:he,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:Ze,style:{width:"100%",fontSize:kt?18:14},value:kt||""})),Ne.createElement(Pe.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:et,top:We},title:Ne.createElement("div",{style:{cursor:"move"},onMouseDown:Ot},"\u8F93\u5165\u516C\u5F0F"),open:lt,onOk:()=>{const He=Je.current.getData();Ze.current.setValue(He),qe(He),Tt(!1)},onCancel:()=>{Tt(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Ne.createElement(At.Z,{value:kt,ref:Je,onChange:qe,showSaveButton:!1})))});yn.Z=je},36527:function(cn,yn,de){"use strict";var re=de(67294),xe=de(71230),tt=de(15746),At=de(66368),Pe=de(71577),Ne=de(35598),je=de(71736),Ee=de(84279),ye=de(67294);const qe=(0,re.forwardRef)(({callback:it,showSaveButton:he,value:gt=""},kt)=>{const Xe=(0,re.useRef)(),ft=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],Ze=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],Je=We=>{Xe.current.setValue(Xe.current.getValue()+" "+We.value+" ")},et=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ye.createElement(xe.Z,{className:je.Z.lists,gutter:[10,10]},ft.map((We,$e)=>ye.createElement(tt.Z,{flex:"110px",className:je.Z.item},ye.createElement("div",null,ye.createElement(Ne.Z,{value:`$$${We.value}$$`}),We.name),ye.createElement("div",{className:je.Z.children},We.children.map((lt,Tt)=>ye.createElement("div",{key:Tt},ye.createElement("h1",null,lt.name),ye.createElement(xe.Z,{gutter:[10,10]},lt.data.map((_t,Ot)=>ye.createElement(tt.Z,{key:Ot,onClick:()=>Je(_t),className:je.Z.diamond},ye.createElement(Ne.Z,{value:"`$$"+_t.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ye.createElement(xe.Z,{className:je.Z.lists,gutter:[10,10]},Ze.map((We,$e)=>ye.createElement(tt.Z,{flex:"110px",className:je.Z.item},ye.createElement("div",null,ye.createElement(Ne.Z,{value:"`$$"+We.value+"$$`"}),We.name),ye.createElement("div",{className:je.Z.children},We.children.map((lt,Tt)=>ye.createElement("div",{key:Tt},lt.name&&ye.createElement("h1",null,lt.name),ye.createElement(xe.Z,{gutter:[10,10]},lt.data.map((_t,Ot)=>ye.createElement(tt.Z,{key:Ot,onClick:()=>Je(_t),className:je.Z.diamond},ye.createElement(Ne.Z,{value:"`$$"+_t.value+"$$`"}))))))))))}],Ye=()=>{var We=document.createElement("div");We.innerHTML=Xe.current.getValue();var $e=We.innerText;return it&&it($e),$e};return(0,re.useImperativeHandle)(kt,()=>({getData:Ye})),ye.createElement("div",{className:je.Z.mathWrap},ye.createElement(At.default,{defaultActiveKey:"1",items:et}),ye.createElement("math-field",{locale:"zh_cn",className:je.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Xe,style:{width:800,marginTop:30,fontSize:18}},gt||""),he&&ye.createElement("div",{className:je.Z.button},ye.createElement(Pe.ZP,{size:"large",onClick:Ye,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});yn.Z=qe},15312:function(cn,yn,de){"use strict";de.d(yn,{t:function(){return ue}});var re=de(67294),xe=de(69677),tt=de(22150),At=de(14446),Pe=de(71230),Ne=de(15746),je=de(31795),Ee=de(11713),ye=de(78045),qe=de(41307),it=de(35973),he=de(52654),gt=de(2453),kt=de(71577),Xe=de(57953),ft=de(19575),Ze={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},Je=de(33170),et=de(88742),Ye=de(91304),We=de(74855),$e=de(96707),lt=de(67294),Tt=Object.defineProperty,_t=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,pt=(ge,pe,le)=>pe in ge?Tt(ge,pe,{enumerable:!0,configurable:!0,writable:!0,value:le}):ge[pe]=le,Ve=(ge,pe)=>{for(var le in pe||(pe={}))ct.call(pe,le)&&pt(ge,le,pe[le]);if(st)for(var le of st(pe))He.call(pe,le)&&pt(ge,le,pe[le]);return ge},Qe=(ge,pe)=>_t(ge,Ot(pe)),Fe=(ge,pe,le)=>new Promise((ze,bt)=>{var Pt=Xt=>{try{ln(le.next(Xt))}catch(Kt){bt(Kt)}},mn=Xt=>{try{ln(le.throw(Xt))}catch(Kt){bt(Kt)}},ln=Xt=>Xt.done?ze(Xt.value):Promise.resolve(Xt.value).then(Pt,mn);ln((le=le.apply(ge,pe)).next())}),Mt=({buttonProps:ge,buttonText:pe,form:le,hackIdentifier:ze="",answerKey:bt,data:Pt})=>{const[mn,ln]=(0,re.useState)(!1),[Xt,Kt]=(0,re.useState)(!1),[sr,mr]=(0,re.useState)(!1),[Gt,rn]=(0,re.useState)({}),[Jr,_r]=(0,re.useState)(""),[xr,wr]=(0,re.useState)(""),Ji=(0,re.useRef)(ze),Ir=(0,re.useRef)(""),Wr=(0,re.useRef)(!1);(0,re.useEffect)(()=>{sr&&Wi()},[sr]),(0,re.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const Tr=()=>new Date().getTime(),si=Pt==null?void 0:Pt.code,pi=()=>{var an,Nn;let On=si?Pt==null?void 0:Pt.code:(an=le.getFieldValue("hack_codes"))==null?void 0:an.code,Dn=si?Pt==null?void 0:Pt.answer_content:le.getFieldValue(bt),Mr=si?Pt==null?void 0:Pt.input:(Nn=le.getFieldValue("hack_sets"))==null?void 0:Nn.input;Dn==null||Dn.forEach(vn=>{const Vn=vn.value||vn.answer_text||"";On=On.replace(/(@▁@|@▁▁@)/,Vn)}),wr(Mr),_r(On),rn({}),mr(!0)},Wi=()=>Fe(void 0,null,function*(){var an,Nn,On,Dn;const Mr=Tr(),vn=si?Pt==null?void 0:Pt.time_limit:(an=le.getFieldsValue())==null?void 0:an.hack.time_limit,Vn=si?(Nn=Pt==null?void 0:Pt.answer_content)==null?void 0:Nn.length:(Dn=(On=le.getFieldsValue())==null?void 0:On.standard_answers)==null?void 0:Dn.length;ln(!0),yield(0,et.bM)(Ir.current,{test_hack_code:Jr,test_input:xr});function Xr(){return Fe(this,null,function*(){const{status:fi,data:er}=yield(0,et.rX)(Ir.current,"submit"),Gi=Tr()-Mr>(vn+3)*1e3*Vn;if(Wr.current){if(Gi){gt.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),ln(!1);return}if(fi===0){ln(!1),rn(Qe(Ve({},er),{showText:!0}));return}setTimeout(Xr,1e3)}})}Xr()}),bi=()=>Fe(void 0,null,function*(){var an,Nn,On,Dn,Mr,vn,Vn;if(!Pt){try{yield le.validateFields()}catch(ia){(On=(Nn=(an=ia==null?void 0:ia.errorFields)==null?void 0:an[0])==null?void 0:Nn.name)!=null&&On.includes("standard_answers")?gt.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):gt.ZP.error(ia.errorFields[0].errors[0]),le.scrollToField(ia.errorFields[0].name,{behavior:"smooth",block:"center"});return}Kt(!0);let fi="";const er=le.getFieldsValue();Ji.current?fi=yield(0,Je.ZP)(`/api/problems/${Ji.current}.json`,{method:"put",body:Qe(Ve({},er),{hack:Qe(Ve({},er==null?void 0:er.hack),{sub_discipline_id:(Vn=(vn=er==null?void 0:er.hack)==null?void 0:vn.sub_discipline_id)==null?void 0:Vn[1],difficult:er.difficulty,item_banks_group_id:er.item_banks_group_id}),hack_codes:Qe(Ve({},er.hack_codes),{code:ft.Base64.encode(er.hack_codes.code)}),update_hack_sets:[Ve({},er.hack_sets)],is_blank:!0})}):(fi=yield(0,Je.ZP)("/api/problems.json",{method:"post",body:Qe(Ve({},er),{hack:Qe(Ve({},er==null?void 0:er.hack),{sub_discipline_id:(Mr=(Dn=er==null?void 0:er.hack)==null?void 0:Dn.sub_discipline_id)==null?void 0:Mr[1],difficult:er.difficulty,item_banks_group_id:er.item_banks_group_id}),hack_codes:Qe(Ve({},er.hack_codes),{code:ft.Base64.encode(er.hack_codes.code)}),hack_sets:[Ve({},er.hack_sets)],is_blank:!0})}),Ji.current=fi==null?void 0:fi.identifier,sessionStorage.projectFill=fi==null?void 0:fi.identifier)}const Xr=yield(0,Je.ZP)(`/api/problems/${Ji.current}/start.json`,{method:"get"});if((Xr==null?void 0:Xr.status)===0){Ir.current=Xr==null?void 0:Xr.identifier,Wr.current=!0,Kt(!1),pi();return}Kt(!1)}),kr=an=>{const{status:Nn,error_msg:On,execute_time:Dn,output:Mr,input:vn,expected_output:Vn}=an;let Xr=null;switch(Nn){case $e.h.OK:Xr=lt.createElement(lt.Fragment,null,lt.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Dn/1e3,"\u79D2"),lt.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case $e.h.NOMATCH:Xr=lt.createElement(lt.Fragment,null,lt.createElement("div",null,"\u8F93\u5165\uFF1A"),lt.createElement("pre",{style:{fontFamily:"initial"}},vn),lt.createElement("div",null,"\u8F93\u51FA\uFF1A"),lt.createElement("pre",{style:{fontFamily:"initial"}},Mr&&ft.Base64.decode(Mr)),lt.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),lt.createElement("pre",{style:{fontFamily:"initial"}},Vn&&ft.Base64.decode(Vn)));break;case $e.h.EXECUTEFAILURE:Xr=lt.createElement(lt.Fragment,null,lt.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",lt.createElement("pre",null,vn)),lt.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),lt.createElement("pre",{className:"error"},ft.Base64.decode(On)));break;case $e.h.COMPILEFAILURE:Xr=lt.createElement(lt.Fragment,null,lt.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",lt.createElement("pre",null,vn)),lt.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),lt.createElement("pre",{className:"error"},ft.Base64.decode(On)));break;case $e.h.PODFAILURE:Xr=lt.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case $e.h.TIMEOUT:Xr=lt.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return lt.createElement(lt.Fragment,null," ",Xr," ")};return lt.createElement("div",null,lt.createElement(kt.ZP,Qe(Ve({loading:Xt},ge),{onClick:bi}),pe),lt.createElement(At.default,{open:sr,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:mn,cancelButtonProps:{style:{display:"none"}},onOk:()=>Wi(),onCancel:()=>{Wr.current=!1,mr(!1)}},lt.createElement("div",{className:Ze.result},lt.createElement("div",{className:Ze.left},lt.createElement("div",{className:"mb20"},lt.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!Pt&<.createElement(We.CopyToClipboard,{text:Jr,onCopy:()=>gt.ZP.success("\u590D\u5236\u6210\u529F")},lt.createElement("span",{style:{float:"right"},className:"current c-light-primary"},lt.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),lt.createElement(Ye.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:Jr,onChange:an=>_r(an)})),lt.createElement("div",{className:Ze.right},lt.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),lt.createElement("div",{className:Ze.box},lt.createElement("div",{className:Ze.li},lt.createElement(xe.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:xr,onChange:an=>wr(an.target.value),bordered:!1,style:{height:180}}))),lt.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),lt.createElement("div",{className:Ze.box},lt.createElement(Xe.Z,{spinning:mn,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},lt.createElement("div",{className:Ze.li,style:{height:196,overflow:"auto",padding:10}},kr(Gt))))))))},jt=de(55304),Re=de(67294),Le=Object.defineProperty,Nt=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,Yt=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,Vt=(ge,pe,le)=>pe in ge?Le(ge,pe,{enumerable:!0,configurable:!0,writable:!0,value:le}):ge[pe]=le,un=(ge,pe)=>{for(var le in pe||(pe={}))vt.call(pe,le)&&Vt(ge,le,pe[le]);if(Yt)for(var le of Yt(pe))nt.call(pe,le)&&Vt(ge,le,pe[le]);return ge},Ut=(ge,pe)=>Nt(ge,Rt(pe)),fn=(ge,pe)=>{var le={};for(var ze in ge)vt.call(ge,ze)&&pe.indexOf(ze)<0&&(le[ze]=ge[ze]);if(ge!=null&&Yt)for(var ze of Yt(ge))pe.indexOf(ze)<0&&nt.call(ge,ze)&&(le[ze]=ge[ze]);return le};const{TextArea:en}=xe.default,En=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],_n=({value:ge,onChange:pe})=>Re.createElement(Switch,{checked:ge,onChange:le=>{pe(le)}}),Ce="@\u2581@",se="@\u2581\u2581@",ue=({questionTitlePlaceholder:ge,form:pe,scoreByBlank:le=!1,hackidentifier:ze,answerKey:bt})=>{const[Pt,mn]=(0,re.useState)(!1),[ln,Xt]=(0,re.useState)(!1),sr=(0,it.useParams)().type==="edit",mr=(Ir,Wr)=>{const Tr=Wr.line;let si=0;for(let Wi=0;Wi<Tr;Wi++)si+=Ir.getLine(Wi).split(Ce).length-1;for(let Wi=0;Wi<Tr;Wi++)si+=Ir.getLine(Wi).split(se).length-1;const pi=Ir.getLine(Tr).substring(0,Wr.ch);return si+=pi.split(Ce).length-1,si+=pi.split(se).length-1,si},Gt=(Ir,Wr,Tr,si)=>{const pi=Ir.getRange(Wr.from,Wr.to);let Wi=0;if(Wr.text.forEach(bi=>{Wi+=bi.split(Ce).length-1}),Wr.text.forEach(bi=>{Wi+=bi.split(se).length-1}),Wr.origin!=="setValue"){if(pi&&(pi.indexOf(Ce)!==-1||pi.indexOf(se)!==-1)){const bi=pi.split(Ce).length-1+pi.split(se).length-1,kr=mr(Ir,Wr.from);if(console.log(`\u5220\u9664${bi}\u4E2A\uFF0C \u524D\u9762\u6709${kr}\u4E2A\uFF0C\u65B0\u589E${Wi}\u4E2A`),bi>1){const an=Array.from({length:bi},(Nn,On)=>kr+On);si(an)}else si(kr)}else if(Wi>0){const bi=mr(Ir,Wr.from);console.log(`\u65B0\u589E${Wi}\u4E2A\uFF0C\u4E4B\u524D\u6709${bi}\u4E2A`),Tr(Wi,bi)}}},rn=()=>{const Ir=pe.getFieldValue(bt);pe.setFieldsValue({[bt]:Ir==null?void 0:Ir.map((Wr,Tr)=>Ut(un({},Wr),{position:Tr+1}))})},Jr=(0,re.useRef)(),_r=(Ir,Wr)=>{for(let Tr=0;Tr<Ir;Tr++)Jr.current({position:null,answer_text:""},Wr+Tr);rn()},xr=(0,re.useRef)(),wr=Ir=>{xr.current(Ir),rn()},Ji=tt.default.useWatch(bt,pe);return Re.createElement("div",{className:he.Z.wrap},Re.createElement(tt.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},Re.createElement(qe.h,{scrollId:"name",watch:!0,height:140})),Re.createElement("div",{className:he.Z.questionTitleEditorWrap},Re.createElement(tt.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},Re.createElement(qe.h,{scrollId:"name",watch:!0,height:400,hidetoolBar:!0,showNullProgramButton:!0,onChange:(Ir,Wr)=>{const Tr=pe.getFieldValue(bt);console.log("--preAnswerData",Tr,Wr),pe.setFieldsValue({[bt]:Tr==null?void 0:Tr.map((si,pi)=>{var Wi;return Ut(un({},si),{position:pi+1,multi_line:(Wi=Wr==null?void 0:Wr[pi])==null?void 0:Wi.multiLine})})})},placeholder:ge,onCMBeforeChange:(Ir,Wr)=>{Gt(Ir,Wr,_r,wr)}}))),Re.createElement(tt.default.List,{name:bt,rules:[{validator(Ir,Wr){if(!(Wr!=null&&Wr.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Tr of Wr){const{answer_text:si}=Tr||{};if((si==null?void 0:si.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Ir,{add:Wr,remove:Tr},{errors:si})=>(Jr.current=Wr,xr.current=Tr,Re.createElement(Re.Fragment,null,Re.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},Re.createElement(tt.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),Re.createElement("div",{onClick:()=>{At.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:Re.createElement("div",null,Re.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",Re.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),Re.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},Re.createElement(jt.Z,{style:{marginRight:3,color:"#3061D0"}}),Re.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Ir.map((pi,Wi)=>{var bi=pi,{key:kr,name:an}=bi,Nn=fn(bi,["key","name"]),On,Dn;return Re.createElement(Pe.Z,{className:"mb20",key:kr,align:"middle",wrap:!1},Re.createElement(Ne.Z,{flex:"0 0 auto",className:`${he.Z.blankIndex}`},"\u586B\u7A7A\u9879",Wi+1),Re.createElement(Ne.Z,{flex:1},Re.createElement(Pe.Z,{align:"top",justify:"space-between",wrap:!1},Re.createElement(Ne.Z,null,Re.createElement(tt.default.Item,Ut(un({},Nn),{name:[an,"answer_text"],noStyle:!0}),(On=Ji==null?void 0:Ji[an])!=null&&On.multi_line||(Dn=Ji==null?void 0:Ji[an])!=null&&Dn.multiLine?Re.createElement(en,{spellCheck:!1,style:{marginLeft:10,width:550}}):Re.createElement(xe.default,{style:{marginLeft:10,width:550},className:he.Z.blankInput,size:"large",maxLength:1e3,onBlur:Mr=>{}}))),le&&Re.createElement(Ne.Z,{flex:"224px"},Re.createElement(tt.default.Item,Ut(un({},Nn),{name:[an,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),Re.createElement(je.Z,{size:"large",className:he.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),Re.createElement("div",{onClick:()=>mn(!0)},Re.createElement(tt.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Re.createElement(qe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Pt}))),Re.createElement(tt.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},Re.createElement(Ee.default,{size:"large"},En.map(Ir=>Re.createElement(Ee.default.Option,{key:Ir.title,value:Ir.key}," ",Ir.title)))),Re.createElement(tt.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},Re.createElement(tt.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},Re.createElement(je.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),Re.createElement("span",{className:"ml10 font14"},"\u79D2")),Re.createElement(tt.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},Re.createElement(ye.ZP.Group,{style:{marginTop:-10}},Re.createElement(ye.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),Re.createElement(ye.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),Re.createElement(ye.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),Re.createElement(tt.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),Re.createElement("div",{style:{background:"#F6F7F9",padding:15}},Re.createElement(tt.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},Re.createElement(en,{rows:4})),Re.createElement(tt.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},Re.createElement(en,{rows:4}))),Re.createElement(Mt,{form:pe,answerKey:bt,hackIdentifier:ze,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:Re.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},11776:function(cn,yn,de){"use strict";de.d(yn,{u:function(){return lt}});var re=de(67294),xe=de(71230),tt=de(15746),At=de(83062),Pe=de(22150),Ne=de(52654),je=de(40043),Ee=de(24018),ye=de(41307),qe=de(67294),it=Object.defineProperty,he=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,Ze=(Tt,_t,Ot)=>_t in Tt?it(Tt,_t,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):Tt[_t]=Ot,Je=(Tt,_t)=>{for(var Ot in _t||(_t={}))Xe.call(_t,Ot)&&Ze(Tt,Ot,_t[Ot]);if(kt)for(var Ot of kt(_t))ft.call(_t,Ot)&&Ze(Tt,Ot,_t[Ot]);return Tt},et=(Tt,_t)=>he(Tt,gt(_t)),Ye=(Tt,_t)=>{var Ot={};for(var st in Tt)Xe.call(Tt,st)&&_t.indexOf(st)<0&&(Ot[st]=Tt[st]);if(Tt!=null&&kt)for(var st of kt(Tt))_t.indexOf(st)<0&&ft.call(Tt,st)&&(Ot[st]=Tt[st]);return Ot};const We=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],$e=({value:Tt,onChange:_t,choiceTextKey:Ot,answerKey:st,index:ct,isEdit:He,setInputActive:pt,form:Ve,choiceOptionsPath:Qe,allowChangeMode:Fe,showAddIcon:wt,addItem:Mt,deleteItem:jt})=>{console.log(Tt,"value");const Re=(Tt==null?void 0:Tt[st])===1,Le=()=>{const Rt=Ve.getFieldValue(Qe);Ve.setFieldValue(Qe,Rt.map(Yt=>et(Je({},Yt),{[st]:0})))},Nt=()=>{Re?_t(et(Je({},Tt),{[st]:0})):(Fe||Le(),_t(et(Je({},Tt),{[st]:1})))};return qe.createElement(xe.Z,{className:Ne.Z.choiceWrap,align:"middle",wrap:!1},qe.createElement(tt.Z,{onClick:Nt,className:`${Ne.Z.choiceIndex} ${Re?Ne.Z.activeAnswer:""}`},We[ct]),qe.createElement(tt.Z,{flex:1,className:`${Ne.Z.editorWrap} ml15`,onClick:pt},qe.createElement(ye.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:He,value:Tt==null?void 0:Tt[Ot],onChange:Rt=>{_t(et(Je({},Tt),{[Ot]:Rt}))}})),qe.createElement(tt.Z,{flex:"0 0 auto",className:"ml15"},qe.createElement("div",{onClick:Nt,className:`${Ne.Z.setAnswerBtn} ${Re?Ne.Z.activeAnswer:""}`},Re?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),qe.createElement(tt.Z,{className:Ne.Z.actionWrapper},qe.createElement(At.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},qe.createElement(je.Z,{className:Ne.Z.addIcon,onClick:Mt,style:{visibility:wt?"visible":"hidden"}})),qe.createElement(At.Z,{title:"\u5220\u9664"},qe.createElement(Ee.Z,{className:Ne.Z.deleteIcon,onClick:jt,style:{visibility:ct>1?"visible":"hidden"}}))))},lt=({questionTitlePlaceholder:Tt,titleKey:_t,choiceKey:Ot,analysisKey:st,choiceTextKey:ct,answerKey:He,choiceOptionsPath:pt,allowChangeMode:Ve=!0,form:Qe,showAnalysis:Fe=!0})=>{const[wt,Mt]=(0,re.useState)(),[jt,Re]=(0,re.useState)(!1);return qe.createElement("div",{className:Ne.Z.wrap},qe.createElement("div",{className:Ne.Z.questionTitleEditorWrap},qe.createElement(Pe.default.Item,{label:"\u9898\u5E72",name:_t,labelCol:{span:24},rules:[{required:!0}]},qe.createElement(ye.h,{scrollId:Array.isArray(_t)?_t.join("_"):`${_t}`,watch:!0,height:140,placeholder:Tt}))),qe.createElement(Pe.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),qe.createElement(Pe.default.List,{name:Ot,rules:[{validator(Le,Nt){const Rt=Nt.some(vt=>vt[He]===1),Yt=Nt.findIndex(vt=>{var nt;return((nt=vt[ct])==null?void 0:nt.length)<=0});return Yt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${We[Yt]}\u9009\u9879\u7684\u5185\u5BB9`)):Rt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Le,{add:Nt,remove:Rt})=>qe.createElement("div",{id:Array.isArray(pt)?pt.join("_"):`${pt}`},Le.map((Yt,vt)=>{var nt=Yt,{key:Vt,name:un}=nt,Ut=Ye(nt,["key","name"]);const fn=wt===Vt,en=()=>{Mt(Vt)},En=vt<7&&vt===Le.length-1,_n=()=>Nt({[ct]:"",[He]:0}),Ce=()=>Rt(un);return qe.createElement(Pe.default.Item,et(Je({},Ut),{key:Vt,name:un,className:Ne.Z.choiceListWrap,rules:[{validator(se,ue){return ue!=null&&ue.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${We[vt]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),qe.createElement($e,{choiceTextKey:ct,answerKey:He,index:vt,isEdit:fn,setInputActive:en,form:Qe,choiceOptionsPath:pt,allowChangeMode:Ve,showAddIcon:En,addItem:_n,deleteItem:Ce}))}),Le.length<8&&qe.createElement("div",{className:`${Ne.Z.addBtn} mb30`,onClick:()=>Nt({[ct]:"",[He]:0})},"\u6DFB\u52A0\u9009\u9879"))),Fe&&qe.createElement("div",{onClick:()=>Re(!0)},qe.createElement(Pe.default.Item,{name:st,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},qe.createElement(ye.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:jt}))))}},81580:function(cn,yn,de){"use strict";de.d(yn,{u:function(){return Qe}});var re=de(67294),xe=de(14446),tt=de(71230),At=de(15746),Pe=de(69677),Ne=de(83062),je=de(47897),Ee=de(22150),ye=de(78045),qe=de(31795),it=de(71577),he=de(41307),gt=de(24018),kt=de(40043),Xe=de(17663),ft=de(52654),Ze=de(35713),Je=de(67294),et=Object.defineProperty,Ye=Object.defineProperties,We=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable,_t=(Fe,wt,Mt)=>wt in Fe?et(Fe,wt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Fe[wt]=Mt,Ot=(Fe,wt)=>{for(var Mt in wt||(wt={}))lt.call(wt,Mt)&&_t(Fe,Mt,wt[Mt]);if($e)for(var Mt of $e(wt))Tt.call(wt,Mt)&&_t(Fe,Mt,wt[Mt]);return Fe},st=(Fe,wt)=>Ye(Fe,We(wt)),ct=(Fe,wt)=>{var Mt={};for(var jt in Fe)lt.call(Fe,jt)&&wt.indexOf(jt)<0&&(Mt[jt]=Fe[jt]);if(Fe!=null&&$e)for(var jt of $e(Fe))wt.indexOf(jt)<0&&Tt.call(Fe,jt)&&(Mt[jt]=Fe[jt]);return Mt};const He=({value:Fe,onChange:wt,position:Mt,removeBlank:jt})=>{const Re=Nt=>{xe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ft.Z.modal,onOk:()=>{const Rt=[...Fe];Rt.splice(Nt,1),Rt.length===0?jt(Mt-1):wt(Rt)}})},Le=()=>{const Nt=[...Fe];Nt.push(""),wt(Nt)};return Je.createElement(tt.Z,{className:"ml20"},Je.createElement(At.Z,{flex:1},Fe==null?void 0:Fe.map((Nt,Rt)=>Je.createElement(tt.Z,{key:`${Nt}_${Rt}`,className:"mb20"},Je.createElement(Pe.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Nt,autoSize:{maxRows:3},maxLength:1e3,onBlur:Yt=>{const vt=[...Fe],nt=Yt.target.value.trim();vt[Rt]=nt,wt(vt)}}),Je.createElement(Ne.Z,{title:"\u5220\u9664"},Je.createElement(gt.Z,{className:ft.Z.deleteIcon,style:{marginLeft:15,visibility:Mt===1&&Rt===0?"hidden":"visible"},onClick:()=>Re(Rt)})),Je.createElement(Ne.Z,{title:"\u65B0\u589E\u7B54\u6848"},Je.createElement(kt.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Rt===0?"visible":"hidden"},onClick:()=>{Le()}}))))))},pt=({value:Fe,onChange:wt,position:Mt,removeBlank:jt})=>{const Re=Nt=>{xe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ft.Z.modal,onOk:()=>{const Rt=[...Fe];Rt.splice(Nt,1),Rt.length===0?jt(Mt-1):wt(Rt)}})},Le=()=>{const Nt=[...Fe];Nt.push(""),wt(Nt)};return Je.createElement(tt.Z,{className:"ml20"},Je.createElement(At.Z,{flex:1},Fe==null?void 0:Fe.map((Nt,Rt)=>Je.createElement(tt.Z,{key:`${Nt}_${Rt}`,align:"middle",className:"mb20"},Je.createElement(Ze.Z,{value:Nt,style:{flex:1},onChange:Yt=>{const vt=[...Fe];vt[Rt]=Yt,wt(vt)}}),Je.createElement(Ne.Z,{title:"\u5220\u9664"},Je.createElement(gt.Z,{className:ft.Z.deleteIcon,style:{marginLeft:15,visibility:Mt===1&&Rt===0?"hidden":"visible"},onClick:()=>Re(Rt)})),Je.createElement(Ne.Z,{title:"\u65B0\u589E\u7B54\u6848"},Je.createElement(kt.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Rt===0?"visible":"hidden"},onClick:()=>{Le()}}))))))},Ve=({value:Fe=!0,onChange:wt})=>Je.createElement(je.Z,{checked:!Fe,onChange:Mt=>{wt(!Mt)}}),Qe=({questionTitlePlaceholder:Fe,form:wt,scoreByBlank:Mt=!1,answerKey:jt})=>{const[Re,Le]=(0,re.useState)(!1),Nt=()=>{const un=wt.getFieldValue(jt);wt.setFieldsValue({[jt]:un.map((Ut,fn)=>st(Ot({},Ut),{position:fn+1}))})},Rt=(0,re.useRef)(),Yt=(un,Ut)=>{for(let fn=0;fn<un;fn++)Rt.current({position:null,answer_text:[""],model:1},Ut+fn);Nt()},vt=(0,re.useRef)(),nt=un=>{vt.current(un),Nt()},Vt=Ee.default.useWatch(jt,wt);return Je.createElement("div",{className:ft.Z.wrap},Je.createElement("div",{className:ft.Z.questionTitleEditorWrap},Je.createElement(Ee.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Je.createElement(he.h,{scrollId:"name",watch:!0,height:140,placeholder:Fe,showNullButton:!0,onAddBlank:()=>{const un=wt.getFieldValue(jt);Yt(1,un==null?void 0:un.length)}}))),Je.createElement(Ee.default.List,{name:jt,rules:[{validator(un,Ut){if(!(Ut!=null&&Ut.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const fn of Ut){const{answer_text:en}=fn||{};if(en!=null&&en.some(En=>(En==null?void 0:En.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(un,{add:Ut,remove:fn},{errors:en})=>(Rt.current=Ut,vt.current=fn,Je.createElement(Je.Fragment,null,Je.createElement(Ee.default.Item,{label:Je.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),un.map((En,_n)=>{var Ce=En,{key:se,name:ue}=Ce,ge=ct(Ce,["key","name"]),pe,le;return Je.createElement("div",{style:{marginBottom:10},key:se},Je.createElement(tt.Z,{className:"mb20",align:"middle",wrap:!1},Je.createElement(At.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${ft.Z.blankIndex}`},"\u586B\u7A7A\u9879",_n+1),Je.createElement(Ee.default.Item,st(Ot({},ge),{name:[ue,"model"],noStyle:!0}),Je.createElement(ye.ZP.Group,{onChange:()=>{const ze=wt.getFieldValue(jt);wt.setFieldsValue({[jt]:ze.map((bt,Pt)=>st(Ot({},bt),{answer_text:ue===Pt?[""]:bt.answer_text}))})}},Je.createElement(ye.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",Je.createElement(Ne.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},Je.createElement(Xe.Z,null))),Je.createElement(ye.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",Je.createElement(Ne.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},Je.createElement(Xe.Z,null)))))),Je.createElement(tt.Z,{style:{marginLeft:20},align:"middle",wrap:!1},Je.createElement(At.Z,{flex:1},Je.createElement(tt.Z,{align:"top",justify:"space-between",wrap:!1},Je.createElement(At.Z,{flex:1},Je.createElement(Ee.default.Item,st(Ot({},ge),{name:[ue,"answer_text"],noStyle:!0}),((le=(pe=wt.getFieldValue(jt))==null?void 0:pe[ue])==null?void 0:le.model)===1?Je.createElement(He,{removeBlank:nt,position:_n+1}):Je.createElement(pt,{removeBlank:nt,position:_n+1}))),Mt&&Je.createElement(At.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},Je.createElement(Ee.default.Item,st(Ot({},ge),{name:[ue,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ft.Z.blankInputNumberWrapper}),Je.createElement(qe.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Je.createElement(Ee.default.Item,st(Ot({},ge),{name:[ue,"position"],noStyle:!0}),Je.createElement(Pe.default,{type:"hidden"})))))})))),Je.createElement(it.ZP,{className:"mb20",onClick:()=>Yt(1,Vt==null?void 0:Vt.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Je.createElement(tt.Z,{align:"middle"},Je.createElement(Ee.default.Item,{name:"downcase",valuePropName:"checked"},Je.createElement(je.Z,null)),Je.createElement(At.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Je.createElement(tt.Z,{align:"middle"},Je.createElement(Ee.default.Item,{name:"no_space",valuePropName:"checked"},Je.createElement(je.Z,null)),Je.createElement(At.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Vt==null?void 0:Vt.length)>1&&Je.createElement(tt.Z,{align:"middle",className:(Vt==null?void 0:Vt.length)>1?"mb30":`${ft.Z.hide}`},Je.createElement(Ee.default.Item,{name:"is_ordered"},Je.createElement(Ve,null)),Je.createElement(At.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Je.createElement("div",{onClick:()=>Le(!0)},Je.createElement(Ee.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Je.createElement(he.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Re}))))}},66495:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return Ye}});var re=de(67294),xe=de(71230),tt=de(15746),At=de(22150),Pe=de(52654),Ne=de(41307),je=de(67294),Ee=Object.defineProperty,ye=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,kt=(We,$e,lt)=>$e in We?Ee(We,$e,{enumerable:!0,configurable:!0,writable:!0,value:lt}):We[$e]=lt,Xe=(We,$e)=>{for(var lt in $e||($e={}))he.call($e,lt)&&kt(We,lt,$e[lt]);if(it)for(var lt of it($e))gt.call($e,lt)&&kt(We,lt,$e[lt]);return We},ft=(We,$e)=>ye(We,qe($e)),Ze=(We,$e)=>{var lt={};for(var Tt in We)he.call(We,Tt)&&$e.indexOf(Tt)<0&&(lt[Tt]=We[Tt]);if(We!=null&&it)for(var Tt of it(We))$e.indexOf(Tt)<0&>.call(We,Tt)&&(lt[Tt]=We[Tt]);return lt};const Je={\u6B63\u786E:"T",\u9519\u8BEF:"F"},et=({value:We,onChange:$e,form:lt})=>{const Tt=(We==null?void 0:We.is_answer)===1,_t=We==null?void 0:We.choice_text,Ot=()=>{const st=lt.getFieldsValue().choices.map(ct=>({choice_text:ct.choice_text,is_answer:0}));lt.setFieldsValue({choices:st}),$e(ft(Xe({},We),{is_answer:1}))};return je.createElement(xe.Z,{className:Pe.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},je.createElement(tt.Z,{onClick:Ot,className:`${Pe.Z.choiceIndex} ${Pe.Z.judgementIndex} ${Tt?Pe.Z.activeAnswer:""}`},Je[_t]),je.createElement(tt.Z,{flex:1,className:`${Pe.Z.editorWrap} ml15`},je.createElement("div",{className:`${Pe.Z.inputBorder} ${Pe.Z.placeholder} ${Tt?Pe.Z.activeJudgementAnswer:""}`},_t)),je.createElement(tt.Z,{flex:"0 0 auto",className:"ml15"},je.createElement("div",{onClick:Ot,className:`${Pe.Z.setAnswerBtn} ${Tt?Pe.Z.activeAnswer:""}`},Tt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},Ye=({questionTitlePlaceholder:We,choiceKey:$e,form:lt})=>{const[Tt,_t]=(0,re.useState)(!1);return je.createElement("div",{className:Pe.Z.wrap},je.createElement("div",{className:Pe.Z.questionTitleEditorWrap},je.createElement(At.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},je.createElement(Ne.h,{scrollId:"name",watch:!0,height:140,placeholder:We}))),je.createElement(At.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},je.createElement(At.default.List,{name:"choices",rules:[{validator(Ot,st){return st.some(He=>(He==null?void 0:He.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Ot=>je.createElement("div",{id:"choices"},Ot.map(st=>{var ct=st,{key:He,name:pt}=ct,Ve=Ze(ct,["key","name"]);return je.createElement(At.default.Item,ft(Xe({},Ve),{key:He,name:pt,noStyle:!0}),je.createElement(et,{form:lt}))})))),je.createElement("div",{onClick:()=>_t(!0)},je.createElement(At.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},je.createElement(Ne.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Tt}))))}},41307:function(cn,yn,de){"use strict";de.d(yn,{h:function(){return Xe},x:function(){return ft}});var re=de(91304),xe=de(52654),tt=de(35598),At=de(67294),Pe=Object.defineProperty,Ne=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,it=(Ze,Je,et)=>Je in Ze?Pe(Ze,Je,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[Je]=et,he=(Ze,Je)=>{for(var et in Je||(Je={}))ye.call(Je,et)&&it(Ze,et,Je[et]);if(Ee)for(var et of Ee(Je))qe.call(Je,et)&&it(Ze,et,Je[et]);return Ze},gt=(Ze,Je)=>Ne(Ze,je(Je)),kt=(Ze,Je)=>{var et={};for(var Ye in Ze)ye.call(Ze,Ye)&&Je.indexOf(Ye)<0&&(et[Ye]=Ze[Ye]);if(Ze!=null&&Ee)for(var Ye of Ee(Ze))Je.indexOf(Ye)<0&&qe.call(Ze,Ye)&&(et[Ye]=Ze[Ye]);return et};const Xe=Ze=>{var Je=Ze,{value:et,onChange:Ye,scrollId:We}=Je,$e=kt(Je,["value","onChange","scrollId"]);return At.createElement("div",{id:We||""},At.createElement(re.Z,gt(he({},$e),{defaultValue:et,onChange:(lt,Tt)=>{Tt!=null&&Tt.length?Ye(lt,Tt):Ye(lt)}})))},ft=({value:Ze,onChange:Je,placeholder:et,height:Ye=140,isEdit:We,miniToolbar:$e,watch:lt=!0})=>We?At.createElement(re.Z,{watch:lt,isFocus:!0,height:Ye||void 0,placeholder:et,defaultValue:Ze,onChange:Je,miniToolbar:$e}):At.createElement("div",{style:{cursor:"pointer"}},Ze?At.createElement(tt.Z,{className:xe.Z.inputBorder,value:Ze}):At.createElement("div",{className:`${xe.Z.inputBorder} ${xe.Z.placeholder} inputBorderError`},et))},77792:function(cn,yn,de){"use strict";de.d(yn,{W:function(){return ct}});var re=de(67294),xe=de(2453),tt=de(66309),At=de(22150),Pe=de(47897),Ne=de(71230),je=de(15746),Ee=de(83062),ye=de(69677),qe=de(31795),it=de(52654),he=de(41307),gt=de(91304),kt=de(17663),Xe=Object.defineProperty,ft=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,We=(He,pt,Ve)=>pt in He?Xe(He,pt,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):He[pt]=Ve,$e=(He,pt)=>{for(var Ve in pt||(pt={}))et.call(pt,Ve)&&We(He,Ve,pt[Ve]);if(Je)for(var Ve of Je(pt))Ye.call(pt,Ve)&&We(He,Ve,pt[Ve]);return He},lt=(He,pt)=>ft(He,Ze(pt)),Tt=(He,pt)=>{var Ve={};for(var Qe in He)et.call(He,Qe)&&pt.indexOf(Qe)<0&&(Ve[Qe]=He[Qe]);if(He!=null&&Je)for(var Qe of Je(He))pt.indexOf(Qe)<0&&Ye.call(He,Qe)&&(Ve[Qe]=He[Qe]);return Ve};const _t=He=>{var pt=He,{value:Ve,onChange:Qe}=pt,Fe=Tt(pt,["value","onChange"]);const wt=Mt=>{Qe([Mt])};return re.createElement(gt.Z,lt($e({},Fe),{defaultValue:Ve==null?void 0:Ve[0],onChange:wt}))},Ot=He=>{if(!He)return!1;if(/^s*$/.test(He)||He.trim()===""){xe.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let pt=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return He==="|"?(xe.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},st=({value:He=[],onClose:pt})=>re.createElement(tt.Z,{closable:!0,onClose:pt,className:it.Z.keywordTag},re.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},He.join(" \u6216 "))),ct=({questionTitlePlaceholder:He,form:pt,showKeywords:Ve,isMustKeyWords:Qe=Ve})=>{const[Fe,wt]=(0,re.useState)(!1),[Mt,jt]=(0,re.useState)(""),Re=At.default.useWatch("use_keywords",pt),Le=At.default.useWatch("question_score",pt);return re.createElement("div",{className:it.Z.wrap},re.createElement("div",{className:it.Z.questionTitleEditorWrap},re.createElement(At.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},re.createElement(he.h,{scrollId:"name",watch:!0,height:140,placeholder:He}))),re.createElement(At.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},re.createElement(_t,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Ve&&!Qe&&re.createElement(At.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},re.createElement(Pe.Z,{defaultChecked:!0})),Ve&&Qe&&re.createElement(Ne.Z,{align:"middle",className:"mb30"},re.createElement(At.default.Item,{name:"use_keywords",valuePropName:"checked"},re.createElement(Pe.Z,null)),re.createElement(je.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),re.createElement(je.Z,null,re.createElement(Ee.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},re.createElement(kt.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Re||!Qe)&&re.createElement(At.default.List,{name:"keywords",rules:[{validator(Nt,Rt){return Qe?Rt!=null&&Rt.length?(Rt==null?void 0:Rt.reduce((vt,nt)=>vt+nt.score,0))>parseFloat(Le)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(Nt,{add:Rt,remove:Yt})=>re.createElement(re.Fragment,null,re.createElement("div",{className:`${it.Z.title} mb10`},Qe?"\u5173\u952E\u8BCD":re.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),re.createElement(Ne.Z,{align:"middle",className:"font14 mb30"},re.createElement(je.Z,{flex:1},re.createElement(ye.default,{value:Mt,onChange:vt=>{jt(vt.target.value)},maxLength:50,allowClear:!0,onPressEnter:vt=>{var nt,Vt,un,Ut;const fn=`${(nt=vt.target)==null?void 0:nt.value}`,en=(un=(Vt=fn==null?void 0:fn.split("|"))==null?void 0:Vt.filter(Ce=>!!Ce))==null?void 0:un.map(Ce=>Ce==null?void 0:Ce.trim()),En=pt.getFieldValue("keywords"),_n=((Ut=En==null?void 0:En.map(Ce=>Ce==null?void 0:Ce.keyword))==null?void 0:Ut.flat())||[];for(const Ce of en)if(_n.includes(Ce)){xe.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Ot(fn)&&(Rt({keyword:en,score:1}),jt(""))},className:it.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),re.createElement(je.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Nt.map(vt=>{var nt=vt,{key:Vt,name:un}=nt,Ut=Tt(nt,["key","name"]);return re.createElement(Ne.Z,{key:Vt,className:"mb20",style:{marginRight:148}},re.createElement(je.Z,{flex:1},re.createElement(Ne.Z,{align:"middle",justify:"space-between"},re.createElement(At.default.Item,lt($e({},Ut),{name:[un,"keyword"]}),re.createElement(st,{onClose:()=>Yt(un)})),Qe&&re.createElement(At.default.Item,lt($e({},Ut),{name:[un,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:it.Z.blankInputNumberWrapper}),re.createElement(qe.Z,{className:it.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),re.createElement("div",{onClick:()=>wt(!0)},re.createElement(At.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},re.createElement(he.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Fe}))))}},30351:function(cn,yn,de){"use strict";de.d(yn,{tc:function(){return kr.t},uh:function(){return re.u},rL:function(){return bi},u8:function(){return tt.u},ZZ:function(){return xe.Z},Wk:function(){return At.W}});var re=de(11776),xe=de(66495),tt=de(81580),At=de(77792),Pe=de(67294),Ne=de(47221),je=de(22150),Ee=de(71230),ye=de(15746),qe=de(31795),it=de(83062),he=de(85418),gt=de(52654),kt=de(24018),Xe=de(41307),ft=de(14446),Ze=de(69677),Je=de(47897),et=de(71577),Ye=de(40043),We=de(67294),$e=Object.defineProperty,lt=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,ct=(an,Nn,On)=>Nn in an?$e(an,Nn,{enumerable:!0,configurable:!0,writable:!0,value:On}):an[Nn]=On,He=(an,Nn)=>{for(var On in Nn||(Nn={}))Ot.call(Nn,On)&&ct(an,On,Nn[On]);if(_t)for(var On of _t(Nn))st.call(Nn,On)&&ct(an,On,Nn[On]);return an},pt=(an,Nn)=>lt(an,Tt(Nn)),Ve=(an,Nn)=>{var On={};for(var Dn in an)Ot.call(an,Dn)&&Nn.indexOf(Dn)<0&&(On[Dn]=an[Dn]);if(an!=null&&_t)for(var Dn of _t(an))Nn.indexOf(Dn)<0&&st.call(an,Dn)&&(On[Dn]=an[Dn]);return On};const Qe=({value:an,onChange:Nn,position:On,removeBlank:Dn})=>{const Mr=Vn=>{ft.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:gt.Z.modal,onOk:()=>{const Xr=[...an];Xr.splice(Vn,1),Xr.length===0?Dn(On-1):Nn(Xr)}})},vn=()=>{const Vn=[...an];Vn.push(""),Nn(Vn)};return We.createElement(Ee.Z,{className:"ml20"},We.createElement(ye.Z,{flex:1},an==null?void 0:an.map((Vn,Xr)=>We.createElement(Ee.Z,{key:`${Vn}_${Xr}`,className:"mb20"},We.createElement(Ze.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Vn,autoSize:{maxRows:3},maxLength:1e3,onBlur:fi=>{const er=[...an],ia=fi.target.value.trim();er[Xr]=ia,Nn(er)}}),We.createElement(it.Z,{title:"\u5220\u9664"},We.createElement(kt.Z,{className:gt.Z.deleteIcon,style:{marginLeft:15,visibility:On===1&&Xr===0?"hidden":"visible"},onClick:()=>Mr(Xr)})),We.createElement(it.Z,{title:"\u65B0\u589E\u7B54\u6848"},We.createElement(Ye.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Xr===0?"visible":"hidden"},onClick:()=>{vn()}}))))))},Fe=({value:an=!0,onChange:Nn})=>We.createElement(Je.Z,{checked:!an,onChange:On=>{Nn(!On)}}),wt=({questionTitlePlaceholder:an,form:Nn,name:On,scoreByBlank:Dn=!1,answerKey:Mr,titleKey:vn="name",analysisKey:Vn="analysis",isOrdered:Xr="is_ordered"})=>{var fi,er;const[ia,Gi]=(0,Pe.useState)(!1),Br=()=>{const li=Nn.getFieldValue(["sub_item_banks",...Mr]);Nn.setFieldValue(["sub_item_banks",...Mr],li==null?void 0:li.map((wi,Li)=>pt(He({},wi),{position:Li+1})))},lr=(0,Pe.useRef)(),qr=(li,wi)=>{for(let Li=0;Li<li;Li++)lr.current({position:null,answer_text:[""]},wi+Li);Br()},xa=(0,Pe.useRef)(),vi=li=>{xa.current(li),Br()},ca=(er=(fi=Nn.getFieldValue("sub_item_banks"))==null?void 0:fi[Mr==null?void 0:Mr[0]])==null?void 0:er[Mr==null?void 0:Mr[1]];return We.createElement("div",{className:gt.Z.wrap},We.createElement("div",{className:gt.Z.questionTitleEditorWrap},We.createElement(je.default.Item,{label:"\u9898\u5E72",name:vn,labelCol:{span:24},rules:[{required:!0}]},We.createElement(Xe.h,{scrollId:"name",watch:!0,height:140,placeholder:an,showNullButton:!0,onAddBlank:()=>{const li=Nn.getFieldValue(["sub_item_banks",...Mr]);qr(1,li==null?void 0:li.length)}}))),We.createElement(je.default.List,{name:Mr,rules:[{validator(li,wi){if((wi==null?void 0:wi.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Li of wi){const{answer_text:oi}=Li||{};if(oi!=null&&oi.some(ir=>(ir==null?void 0:ir.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(li,{add:wi,remove:Li},{errors:oi})=>(lr.current=wi,xa.current=Li,We.createElement(We.Fragment,null,We.createElement(je.default.Item,{label:We.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),li.map((ir,Aa)=>{var Ka=ir,{key:Ca,name:va}=Ka,mo=Ve(Ka,["key","name"]);return We.createElement(Ee.Z,{align:"top",key:Ca},We.createElement(ye.Z,{className:`${gt.Z.blankIndex} pt5`},"\u586B\u7A7A\u9879",Aa+1),We.createElement(ye.Z,{flex:1},We.createElement(Ee.Z,{align:"top",justify:"space-between"},We.createElement(ye.Z,{flex:1},We.createElement(je.default.Item,pt(He({},mo),{name:[va,"answer_text"],noStyle:!0}),We.createElement(Qe,{removeBlank:vi,position:Aa+1}))),Dn&&We.createElement(ye.Z,{flex:"224px"},We.createElement(je.default.Item,pt(He({},mo),{name:[va,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:gt.Z.blankInputNumberWrapper}),We.createElement(qe.Z,{className:gt.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),We.createElement(je.default.Item,pt(He({},mo),{name:[va,"position"],noStyle:!0}),We.createElement(Ze.default,{type:"hidden"}))))})))),We.createElement(et.ZP,{className:"mb20",onClick:()=>qr(1,ca==null?void 0:ca.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),We.createElement(Ee.Z,{align:"middle"},We.createElement(je.default.Item,{name:[On,"downcase"],valuePropName:"checked"},We.createElement(Je.Z,null)),We.createElement(ye.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),We.createElement(Ee.Z,{align:"middle"},We.createElement(je.default.Item,{name:[On,"no_space"],valuePropName:"checked"},We.createElement(Je.Z,null)),We.createElement(ye.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(ca==null?void 0:ca.length)>1&&We.createElement(Ee.Z,{align:"middle",className:(ca==null?void 0:ca.length)>1?"mb30":`${gt.Z.hide}`},We.createElement(je.default.Item,{name:Xr},We.createElement(Fe,null)),We.createElement(ye.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),We.createElement("div",{className:"mt30",onClick:()=>Gi(!0)},We.createElement(je.default.Item,{name:Vn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},We.createElement(Xe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ia}))))};var Mt=de(67294),jt=Object.defineProperty,Re=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,vt=(an,Nn,On)=>Nn in an?jt(an,Nn,{enumerable:!0,configurable:!0,writable:!0,value:On}):an[Nn]=On,nt=(an,Nn)=>{for(var On in Nn||(Nn={}))Rt.call(Nn,On)&&vt(an,On,Nn[On]);if(Nt)for(var On of Nt(Nn))Yt.call(Nn,On)&&vt(an,On,Nn[On]);return an},Vt=(an,Nn)=>Re(an,Le(Nn)),un=(an,Nn)=>{var On={};for(var Dn in an)Rt.call(an,Dn)&&Nn.indexOf(Dn)<0&&(On[Dn]=an[Dn]);if(an!=null&&Nt)for(var Dn of Nt(an))Nn.indexOf(Dn)<0&&Yt.call(an,Dn)&&(On[Dn]=an[Dn]);return On};const Ut={\u6B63\u786E:"T",\u9519\u8BEF:"F"},fn=({value:an,onChange:Nn,form:On,choiceKey:Dn})=>{const Mr=(an==null?void 0:an.is_answer)===1,vn=an==null?void 0:an.choice_text,Vn=()=>{var Xr;const fi=(Xr=On==null?void 0:On.getFieldValue(["sub_item_banks",...Dn]))==null?void 0:Xr.map(er=>({choice_text:er.choice_text,is_answer:0}));On==null||On.setFieldValue(["sub_item_banks",...Dn],fi),Nn(Vt(nt({},an),{is_answer:1}))};return Mt.createElement(Ee.Z,{className:gt.Z.choiceWrap,align:"middle",wrap:!1},Mt.createElement(ye.Z,{onClick:Vn,className:`${gt.Z.choiceIndex} ${gt.Z.judgementIndex} ${Mr?gt.Z.activeAnswer:""}`},Ut[vn]),Mt.createElement(ye.Z,{flex:1,className:`${gt.Z.editorWrap} ml15`},Mt.createElement("div",{className:`${gt.Z.inputBorder} ${gt.Z.placeholder} ${Mr?gt.Z.activeJudgementAnswer:""}`},vn)),Mt.createElement(ye.Z,{flex:"0 0 auto",className:"ml15"},Mt.createElement("div",{onClick:Vn,className:`${gt.Z.setAnswerBtn} ${Mr?gt.Z.activeAnswer:""}`},Mr?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},en=({questionTitlePlaceholder:an,choiceKey:Nn="choices",form:On,titleKey:Dn="name",analysisKey:Mr="analysis"})=>{const[vn,Vn]=(0,Pe.useState)(!1);return Mt.createElement("div",{className:gt.Z.wrap},Mt.createElement("div",{className:gt.Z.questionTitleEditorWrap},Mt.createElement(je.default.Item,{label:"\u9898\u5E72",name:Dn,labelCol:{span:24},rules:[{required:!0}]},Mt.createElement(Xe.h,{scrollId:"name",watch:!0,height:140,placeholder:an}))),Mt.createElement(je.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Mt.createElement(je.default.List,{name:Nn,rules:[{validator(Xr,fi){return fi.some(ia=>(ia==null?void 0:ia.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Xr=>Mt.createElement("div",{id:"choices",style:{display:"flex",flexDirection:"column",gap:"20px"}},Xr.map(fi=>{var er=fi,{key:ia,name:Gi}=er,Br=un(er,["key","name"]);return Mt.createElement(je.default.Item,Vt(nt({},Br),{key:ia,name:Gi,noStyle:!0}),Mt.createElement(fn,{form:On,choiceKey:Nn}))})))),Mt.createElement("div",{className:"mt30",onClick:()=>Vn(!0)},Mt.createElement(je.default.Item,{name:Mr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Mt.createElement(Xe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:vn}))))};var En=de(2453),_n=de(66309),Ce=de(91304),se=de(17663),ue=Object.defineProperty,ge=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Pt=(an,Nn,On)=>Nn in an?ue(an,Nn,{enumerable:!0,configurable:!0,writable:!0,value:On}):an[Nn]=On,mn=(an,Nn)=>{for(var On in Nn||(Nn={}))ze.call(Nn,On)&&Pt(an,On,Nn[On]);if(le)for(var On of le(Nn))bt.call(Nn,On)&&Pt(an,On,Nn[On]);return an},ln=(an,Nn)=>ge(an,pe(Nn)),Xt=(an,Nn)=>{var On={};for(var Dn in an)ze.call(an,Dn)&&Nn.indexOf(Dn)<0&&(On[Dn]=an[Dn]);if(an!=null&&le)for(var Dn of le(an))Nn.indexOf(Dn)<0&&bt.call(an,Dn)&&(On[Dn]=an[Dn]);return On};const Kt=an=>{var Nn=an,{value:On,onChange:Dn}=Nn,Mr=Xt(Nn,["value","onChange"]);const vn=Vn=>{Dn([Vn])};return Pe.createElement(Ce.Z,ln(mn({},Mr),{defaultValue:On==null?void 0:On[0],onChange:vn}))},sr=an=>{if(!an)return!1;let Nn=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return an==="|"?(En.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},mr=({value:an=[],onClose:Nn})=>Pe.createElement(_n.Z,{closable:!0,onClose:Nn,className:gt.Z.keywordTag},Pe.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},an.join(" \u6216 "))),Gt=({questionTitlePlaceholder:an,form:Nn,showKeywords:On,isMustKeyWords:Dn=On,titleKey:Mr="name",analysisKey:vn="analysis",answerTexts:Vn="answer_texts",keywords:Xr="keywords",useKeywords:fi="use_keywords",indexs:er})=>{const[ia,Gi]=(0,Pe.useState)(!1),[Br,lr]=(0,Pe.useState)(""),[qr,xa]=(0,Pe.useState)(!1),vi=je.default.useWatch("question_score",Nn);return Pe.createElement("div",{className:gt.Z.wrap},Pe.createElement("div",{className:gt.Z.questionTitleEditorWrap},Pe.createElement(je.default.Item,{label:"\u9898\u5E72",name:Mr,labelCol:{span:24},rules:[{required:!0}]},Pe.createElement(Xe.h,{scrollId:"name",watch:!0,height:140,placeholder:an}))),Pe.createElement(je.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:Vn,labelCol:{span:24}},Pe.createElement(Kt,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),On&&!Dn&&Pe.createElement(je.default.Item,{hidden:!0,name:fi,valuePropName:"checked"},Pe.createElement(Je.Z,{defaultChecked:!0})),On&&Dn&&Pe.createElement(Ee.Z,{align:"middle",className:"mb30"},Pe.createElement(je.default.Item,{name:fi,valuePropName:"checked"},Pe.createElement(Je.Z,{onChange:()=>{var ca,li,wi,Li,oi,ir;console.log(Nn.getFieldsValue()),xa((wi=(li=(ca=Nn.getFieldsValue())==null?void 0:ca.sub_item_banks)==null?void 0:li[er])==null?void 0:wi.use_keywords),console.log((ir=(oi=(Li=Nn.getFieldsValue())==null?void 0:Li.sub_item_banks)==null?void 0:oi[er])==null?void 0:ir.use_keywords),console.log(qr)}})),Pe.createElement(ye.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),Pe.createElement(ye.Z,null,Pe.createElement(it.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},Pe.createElement(se.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(qr||!Dn)&&Pe.createElement(je.default.List,{name:Xr,rules:[{validator(ca,li){return Dn?li!=null&&li.length?(li==null?void 0:li.reduce((Li,oi)=>Li+oi.score,0))>parseFloat(vi)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(ca,{add:li,remove:wi})=>Pe.createElement(Pe.Fragment,null,Pe.createElement("div",{className:`${gt.Z.title} mb10`},Dn?"\u5173\u952E\u8BCD":Pe.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),Pe.createElement(Ee.Z,{align:"middle",className:"font14 mb30"},Pe.createElement(ye.Z,{flex:1},Pe.createElement(Ze.default,{value:Br,onChange:Li=>{lr(Li.target.value)},maxLength:50,allowClear:!0,onPressEnter:Li=>{var oi,ir,Aa,Ka;const Ca=`${(oi=Li.target)==null?void 0:oi.value}`,va=(Aa=(ir=Ca==null?void 0:Ca.split("|"))==null?void 0:ir.filter(wa=>!!wa))==null?void 0:Aa.map(wa=>wa==null?void 0:wa.trim()),mo=Nn.getFieldValue(["sub_item_banks",...Xr]),ja=((Ka=mo==null?void 0:mo.map(wa=>wa==null?void 0:wa.keyword))==null?void 0:Ka.flat())||[];for(const wa of va)if(ja.includes(wa)){En.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}sr(Ca)&&(li({keyword:va,score:1}),lr(""))},className:gt.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),Pe.createElement(ye.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),ca.map(Li=>{var oi=Li,{key:ir,name:Aa}=oi,Ka=Xt(oi,["key","name"]);return Pe.createElement(Ee.Z,{key:ir,className:"mb20",style:{marginRight:148}},Pe.createElement(ye.Z,{flex:1},Pe.createElement(Ee.Z,{align:"middle",justify:"space-between"},Pe.createElement(je.default.Item,ln(mn({},Ka),{name:[Aa,"keyword"]}),Pe.createElement(mr,{onClose:()=>wi(Aa)})),Dn&&Pe.createElement(je.default.Item,ln(mn({},Ka),{name:[Aa,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:gt.Z.blankInputNumberWrapper}),Pe.createElement(qe.Z,{className:gt.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),Pe.createElement("div",{onClick:()=>Gi(!0)},Pe.createElement(je.default.Item,{name:vn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Pe.createElement(Xe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ia}))))};var rn=de(67294),Jr=Object.defineProperty,_r=Object.defineProperties,xr=Object.getOwnPropertyDescriptors,wr=Object.getOwnPropertySymbols,Ji=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable,Wr=(an,Nn,On)=>Nn in an?Jr(an,Nn,{enumerable:!0,configurable:!0,writable:!0,value:On}):an[Nn]=On,Tr=(an,Nn)=>{for(var On in Nn||(Nn={}))Ji.call(Nn,On)&&Wr(an,On,Nn[On]);if(wr)for(var On of wr(Nn))Ir.call(Nn,On)&&Wr(an,On,Nn[On]);return an},si=(an,Nn)=>_r(an,xr(Nn)),pi=(an,Nn)=>{var On={};for(var Dn in an)Ji.call(an,Dn)&&Nn.indexOf(Dn)<0&&(On[Dn]=an[Dn]);if(an!=null&&wr)for(var Dn of wr(an))Nn.indexOf(Dn)<0&&Ir.call(an,Dn)&&(On[Dn]=an[Dn]);return On};const{Panel:Wi}=Ne.default,bi=({questionTitlePlaceholder:an,choiceKey:Nn,form:On,withScore:Dn})=>{const[Mr,vn]=(0,Pe.useState)([]),Vn=Xr=>{vn(Xr)};return rn.createElement("div",{className:gt.Z.wrap},rn.createElement("div",{className:gt.Z.questionTitleEditorWrap},rn.createElement(je.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},rn.createElement(Xe.h,{scrollId:"name",watch:!0,height:140,placeholder:an}))),rn.createElement(je.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),rn.createElement(je.default.List,{name:"sub_item_banks",rules:[{validator(Xr,fi){return fi?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Xr,{add:fi,remove:er,move:ia})=>{const Gi=On.getFieldValue("sub_item_banks");return rn.createElement(rn.Fragment,null,rn.createElement(Ne.default,{className:Xr.length>0?gt.Z.collapseWrapper:"",bordered:!1,activeKey:Mr,onChange:Vn,expandIcon:({isActive:Br})=>rn.createElement("i",{className:`iconfont icon-weizhankai ${Br?gt.Z.open:gt.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},Xr.map((Br,lr)=>{var qr=Br,{key:xa,name:vi}=qr,ca=pi(qr,["key","name"]),li,wi,Li,oi,ir,Aa,Ka,Ca,va,mo;return rn.createElement(Wi,{className:gt.Z.panel,forceRender:!0,header:rn.createElement("div",{className:gt.Z.panelHeader},"\u7B2C",lr+1,"\u5C0F\u9898",rn.createElement("span",null,"\uFF08",((li=Gi==null?void 0:Gi[vi])==null?void 0:li.item_type)=="SINGLE"?"\u5355\u9009\u9898":((wi=Gi==null?void 0:Gi[vi])==null?void 0:wi.item_type)=="MULTIPLE"?"\u591A\u9009\u9898":((Li=Gi==null?void 0:Gi[vi])==null?void 0:Li.item_type)=="COMPLETION"?"\u586B\u7A7A\u9898":((oi=Gi==null?void 0:Gi[vi])==null?void 0:oi.item_type)=="JUDGMENT"?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:vi,extra:rn.createElement(Ee.Z,{align:"middle",onClick:ja=>ja.stopPropagation()},Dn&&rn.createElement(ye.Z,null,rn.createElement(je.default.Item,si(Tr({},ca),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[vi,"question_score"],className:gt.Z.blankInputNumberWrapper}),rn.createElement(qe.Z,{className:gt.Z.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u5C0F\u9898\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}}))),rn.createElement(ye.Z,null,rn.createElement(Ee.Z,{align:"middle",className:"pl40",justify:"end"},lr!==0&&rn.createElement("div",{onClick:()=>{var ja;ia(lr,lr-1);const wa=(ja=On.getFieldValue("sub_item_banks"))==null?void 0:ja.map((Qn,Ri)=>(Xr.map((Ms,ms)=>{Ri===ms&&(Qn.q_position=Number(Ms.name)+1)}),Qn));On.setFieldValue("sub_item_banks",wa)}},rn.createElement(it.Z,{title:"\u4E0A\u79FB"},rn.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),lr<Xr.length-1&&rn.createElement("div",{onClick:()=>{var ja;ia(lr,lr+1);const wa=(ja=On.getFieldValue("sub_item_banks"))==null?void 0:ja.map((Qn,Ri)=>(Xr.map((Ms,ms)=>{Ri===ms&&(Qn.q_position=Number(Ms.name)+1)}),Qn));On.setFieldValue("sub_item_banks",wa)},className:lr===0?"":"ml15"},rn.createElement(it.Z,{title:"\u4E0B\u79FB"},rn.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"}))))),rn.createElement(ye.Z,null,rn.createElement(it.Z,{title:"\u5220\u9664"},rn.createElement(kt.Z,{className:`${gt.Z.deleteIcon} ml15`,onClick:()=>er(vi)}))))},rn.createElement(je.default.Item,si(Tr({},ca),{name:vi}),(((ir=Gi==null?void 0:Gi[vi])==null?void 0:ir.item_type)=="SINGLE"||((Aa=Gi==null?void 0:Gi[vi])==null?void 0:Aa.item_type)=="MULTIPLE")&&rn.createElement(re.u,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((Ka=Gi==null?void 0:Gi[vi])==null?void 0:Ka.item_type)=="MULTIPLE",form:On,choiceKey:[vi,"choices"],titleKey:[vi,"name"],analysisKey:[vi,"analysis"],choiceOptionsPath:["sub_item_banks",vi,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((Ca=Gi==null?void 0:Gi[vi])==null?void 0:Ca.item_type)=="COMPLETION"&&rn.createElement(wt,{form:On,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:!1,name:vi,titleKey:[vi,"name"],analysisKey:[vi,"analysis"],isOrdered:[vi,"is_ordered"],answerKey:[vi,"standard_answers"]}),((va=Gi==null?void 0:Gi[vi])==null?void 0:va.item_type)=="JUDGMENT"&&rn.createElement(en,{form:On,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[vi,"name"],analysisKey:[vi,"analysis"],choiceKey:[vi,"choices"]}),((mo=Gi==null?void 0:Gi[vi])==null?void 0:mo.item_type)=="SUBJECTIVE"&&rn.createElement(Gt,{showKeywords:!0,isMustKeyWords:!1,form:On,titleKey:[vi,"name"],analysisKey:[vi,"analysis"],answerTexts:[vi,"answer_texts"],useKeywords:[vi,"use_keywords"],keywords:[vi,"keywords"],indexs:vi,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})),Xr.length<20&&rn.createElement(he.Z,{menu:{items:[{label:rn.createElement("div",{onClick:()=>{fi({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"SINGLE"}),vn([Xr==null?void 0:Xr.length,...Mr])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:rn.createElement("div",{onClick:()=>{fi({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"MULTIPLE"}),vn([Xr==null?void 0:Xr.length,...Mr])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:rn.createElement("div",{onClick:()=>{fi({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",item_type:"JUDGMENT"}),vn([Xr==null?void 0:Xr.length,...Mr])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:rn.createElement("div",{onClick:()=>{fi({name:"",analysis:"",is_ordered:!0,standard_answers:[{position:1,answer_text:[""]}],item_type:"COMPLETION",downcase:!0,no_space:!0}),vn([Xr==null?void 0:Xr.length,...Mr])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:rn.createElement("div",{onClick:()=>{fi({name:"",answer_texts:[],keywords:[],use_keywords:!0,analysis:"",item_type:"SUBJECTIVE"}),vn([Xr==null?void 0:Xr.length,...Mr])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(Br=>Br.show).map(Br=>({label:Br.label,key:Br.key}))}},rn.createElement("div",{className:`${gt.Z.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var kr=de(15312)},57444:function(cn,yn,de){"use strict";de.d(yn,{h:function(){return We}});var re=de(67294),xe=de(11713),tt=de(22150),At=de(71577),Pe=de(4631),Ne=de.n(Pe),je=de(71749),Ee=de(30483),ye=Object.defineProperty,qe=Object.defineProperties,it=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,Xe=($e,lt,Tt)=>lt in $e?ye($e,lt,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):$e[lt]=Tt,ft=($e,lt)=>{for(var Tt in lt||(lt={}))gt.call(lt,Tt)&&Xe($e,Tt,lt[Tt]);if(he)for(var Tt of he(lt))kt.call(lt,Tt)&&Xe($e,Tt,lt[Tt]);return $e},Ze=($e,lt)=>qe($e,it(lt));const Je=xe.default.Option,et={labelCol:{span:4},wrapperCol:{span:20}},Ye={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};yn.Z=({callback:$e,onCancel:lt})=>{const[Tt,_t]=(0,re.useState)("python");function Ot(ct){_t(Ye[ct][1])}function st(ct){$e(ct)}return re.createElement(tt.default,Ze(ft({},et),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:st,style:{width:500}}),re.createElement(tt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},re.createElement(xe.default,{getPopupContainer:ct=>ct.parentNode,onChange:Ot},Object.keys(Ye).map(ct=>re.createElement(Je,{key:ct,value:ct},Ye[ct][0])))),re.createElement(tt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},re.createElement(We,{mode:Tt})),re.createElement("div",{className:"flex-container flex-end"},re.createElement(At.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(At.ZP,{type:"ghost",onClick:lt},"\u53D6\u6D88")))};function We({value:$e,onChange:lt,mode:Tt,options:_t={}}){const Ot=(0,re.useRef)(),[st,ct]=(0,re.useState)();return(0,re.useEffect)(()=>{if(st){let He=function(pt){const Ve=pt.getValue();lt&<(Ve)};return st.on("change",He),()=>{st.off("change",He)}}},[st,lt]),(0,re.useEffect)(()=>{st&&st.setOption("mode",Tt)},[st,Tt]),(0,re.useEffect)(()=>{st&&($e!==st.getValue()||$e==="")&&setTimeout(()=>{st.setValue($e||"")},300)},[st,$e]),(0,re.useEffect)(()=>{if(Ot.current&&!st){const He=Ne().fromTextArea(Ot.current,ft({mode:Tt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},_t));ct(He)}},[Ot.current,st]),re.createElement("div",{className:"my-codemirror-container"},re.createElement("textarea",{ref:Ot}))}},91304:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return Gi}});var re=de(67294),xe=de(4631),tt=de.n(xe),At=de(91033),Pe=de(71749),Ne=de(57341),je=de(82801),Ee=de(88386),ye=de(49047),qe=de(80785),it=de(35598),he=({value:Br="",className:lr,showTextOnly:qr,showLines:xa,style:vi={}})=>{const ca=(0,re.useMemo)(()=>"",[Br]);return re.createElement(re.Fragment,null,re.createElement("div",{dangerouslySetInnerHTML:{__html:ca}}))},gt=de(67294),kt=Object.defineProperty,Xe=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Ye=(Br,lr,qr)=>lr in Br?kt(Br,lr,{enumerable:!0,configurable:!0,writable:!0,value:qr}):Br[lr]=qr,We=(Br,lr)=>{for(var qr in lr||(lr={}))Je.call(lr,qr)&&Ye(Br,qr,lr[qr]);if(Ze)for(var qr of Ze(lr))et.call(lr,qr)&&Ye(Br,qr,lr[qr]);return Br},$e=(Br,lr)=>Xe(Br,ft(lr));let lt=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Tt({onActionCallback:Br,title:lr,icon:qr,actionName:xa,className:vi="",children:ca}){function li(){Br(xa)}return gt.createElement("a",{title:lr,className:vi,onClick:li},gt.createElement("i",{className:`${qr}`}),ca)}var _t=({watch:Br,showNullButton:lr,showNullProgramButton:qr,onActionCallback:xa,fullScreen:vi,insertTemp:ca,hidetoolBar:li,extraUse:wi})=>{const Li=[...lt,{title:`${Br?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Br?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return gt.createElement("ul",{className:"markdown-toolbar-container"},!li&&Li.map((oi,ir)=>gt.createElement("li",{key:ir},oi.actionName?gt.createElement(Tt,$e(We({},oi),{onActionCallback:xa})):gt.createElement("span",{className:"v-line"}))),lr?gt.createElement("li",null,gt.createElement(Tt,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:xa},gt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,qr?gt.createElement(gt.Fragment,null,gt.createElement("li",null,gt.createElement(Tt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:xa},gt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),gt.createElement("li",null,gt.createElement(Tt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:xa},gt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ca&>.createElement("li",null,gt.createElement(Tt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ca}`,onActionCallback:xa},gt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),wi&>.createElement("li",null,wi),gt.createElement("li",{className:"btn-full-screen"},gt.createElement(Tt,{icon:`${vi?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:vi?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:xa})))},Ot=de(76621),st=de(22150),ct=de(69677),He=de(71577),pt=Object.defineProperty,Ve=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,jt=(Br,lr,qr)=>lr in Br?pt(Br,lr,{enumerable:!0,configurable:!0,writable:!0,value:qr}):Br[lr]=qr,Re=(Br,lr)=>{for(var qr in lr||(lr={}))wt.call(lr,qr)&&jt(Br,qr,lr[qr]);if(Fe)for(var qr of Fe(lr))Mt.call(lr,qr)&&jt(Br,qr,lr[qr]);return Br},Le=(Br,lr)=>Ve(Br,Qe(lr));const Nt={labelCol:{span:4},wrapperCol:{span:20}};var Rt=({callback:Br,onCancel:lr})=>{function qr(xa){Br(xa)}return re.createElement(st.default,Le(Re({},Nt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:qr,style:{width:500}}),re.createElement(st.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},re.createElement(ct.default,null)),re.createElement(st.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},re.createElement(ct.default,null)),re.createElement("div",{className:"flex-container flex-end"},re.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(He.ZP,{type:"ghost",onClick:lr},"\u53D6\u6D88")))},Yt=de(57444),vt=de(70859),nt=de(14446),Vt=de(71230),un=de(63205),Ut=de(67294),fn=({callback:Br,onCancel:lr})=>{const qr=document.createElement("canvas"),xa=qr.getContext("2d");qr.width=1e3,qr.height=800,xa.fillStyle="#ffffff",xa.fillRect(0,0,qr.width,qr.height);const vi=qr.toDataURL("image/png");return Ut.createElement(nt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ut.createElement(Vt.Z,{style:{height:"100vh"}},Ut.createElement(un.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:vi,visible:!0,title:String(Date.now())},onOk:ca=>{Br({src:ca.url})},onClose:lr})))},en=de(72565),En=de(15746),_n=de(2453),Ce={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},se=de(67294),ge=(0,re.forwardRef)(({onCancel:Br,editImgId:lr,callback:qr},xa)=>{let vi=(0,re.useRef)(),ca=(0,re.useRef)(),li=(0,re.useRef)(),wi=(0,re.useRef)(!1);const Li=(0,re.useRef)(!1);console.log("ref:",xa);const[oi,ir]=(0,re.useState)(0),[Aa,Ka]=(0,re.useState)("100vh");return(0,re.useEffect)(()=>{ir(1);try{indexedDB.databases().then(Ca=>{Ca.forEach(va=>indexedDB.deleteDatabase(va.name))})}catch(Ca){}},[]),(0,re.useImperativeHandle)(xa,()=>({setHeight:Ka})),se.createElement("div",{ref:Li,className:"body-overflow-initial"},se.createElement(en.Z,{width:"100vw",height:Aa,footer:null,closable:!0,placement:"bottom",open:!!oi,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Ce.drawerWrap}`,onClose:()=>{window.saveDrawData(Ca=>{qr({src:`/api/attachments/${Ca}`,id:Ca})})},title:se.createElement(Vt.Z,{align:"middle"},se.createElement(En.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),se.createElement(En.Z,{onClick:()=>{Ka(Aa==="60px"?"100vh":"60px")}},se.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),se.createElement(En.Z,{onClick:()=>{window.saveDrawData(Ca=>{if(Ca===null){_n.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}_n.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),qr({src:`/api/attachments/${Ca}`,id:Ca,disabledClose:!0})})}},se.createElement(He.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},se.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${lr||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:ca})))}),pe=de(11320),le=de(78045),ze=de(31795);const bt=le.ZP.Group,Pt={margin:"0 8px"};var mn=({callback:Br,onCancel:lr})=>{function qr(xa){Br(xa)}return re.createElement(st.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:qr},re.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},re.createElement("span",{style:Pt},"\u5355\u5143\u683C\u6570\uFF1A"),re.createElement("span",{style:Pt},"\u884C\u6570"),re.createElement(st.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},re.createElement(ze.Z,null)),re.createElement("span",{style:Pt},"\u5217\u6570"),re.createElement(st.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},re.createElement(ze.Z,null))),re.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},re.createElement("span",{style:Pt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),re.createElement(st.default.Item,{name:"align"},re.createElement(bt,null,re.createElement(le.ZP,{value:"default"},re.createElement("i",{className:"fa fa-align-justify"})),re.createElement(le.ZP,{value:"left"},re.createElement("i",{className:"fa fa-align-left"})),re.createElement(le.ZP,{value:"center"},re.createElement("i",{className:"fa fa-align-center"})),re.createElement(le.ZP,{value:"right"},re.createElement("i",{className:"fa fa-align-right"}))))),re.createElement("div",{className:"flex-container flex-end"},re.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(He.ZP,{type:"ghost",onClick:lr},"\u53D6\u6D88")))},ln=de(47897),Xt=de(61016),Kt=de.n(Xt),mr=(0,re.forwardRef)(({use3d:Br,width:lr,height:qr,callback:xa,showSaveButton:vi},ca)=>{const li=(0,re.useRef)(),wi=(0,re.useRef)(),[Li,oi]=(0,re.useState)(!1),ir=(0,re.useRef)({id:li,appName:"graphing",width:lr||1e3,height:qr||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,re.useEffect)(()=>{wi.current=new(Kt())(ir.current,!0),window.onload=function(){wi.current.inject("applet_container")}},[]);const Aa=()=>{var Ka=window.ggbApplet.getPNGBase64(1,!0,72);return xa&&xa(Ka),Ka};return(0,re.useEffect)(()=>{ir.current.appName=Li?"3D":"graphing",wi.current.inject("applet_container")},[Li]),(0,re.useEffect)(()=>{oi(Br)},[Br]),(0,re.useImperativeHandle)(ca,()=>({getImgData:Aa})),re.createElement(re.Fragment,null,re.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:li}),re.createElement(Vt.Z,{align:"middle"},re.createElement(En.Z,{flex:1},re.createElement(ln.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Li,onChange:Ka=>oi(Ka)})),re.createElement(En.Z,null,re.createElement(He.ZP,{size:"large",onClick:Aa,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Gt=de(36527),rn=de(25934);const Jr="link",_r="upload-image",xr="add-flowchart",wr="draw-image",Ji="add-flowchart",Ir="code-block",Wr="add-table",Tr="------------",si={default:Tr,left:`:${Tr}`,center:`:${Tr}:`,right:`${Tr}:`};var pi=de(99914),Wi=(Br,lr,qr)=>new Promise((xa,vi)=>{var ca=Li=>{try{wi(qr.next(Li))}catch(oi){vi(oi)}},li=Li=>{try{wi(qr.throw(Li))}catch(oi){vi(oi)}},wi=Li=>Li.done?xa(Li.value):Promise.resolve(Li.value).then(ca,li);wi((qr=qr.apply(Br,lr)).next())});function bi(){}let kr=0;const an=1e4,Nn="\u2581",On="@\u2581\u2581@",Dn="@\u2581@",Mr=`
|
|
|
**\u6A21\u677F\u6807\u9898**
|
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,vn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Vn(Br){return/^\d+$/.test(Br)?`${Br}px`:Br}const fi=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",er={[fi+"-B"]:"bold",[fi+"-I"]:"italic"},ia={[Jr]:"\u6DFB\u52A0\u94FE\u63A5",[Ir]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[_r]:"\u6DFB\u52A0\u56FE\u7247",[wr]:"\u6DFB\u52A0\u753B\u56FE",[xr]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Wr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Gi=({defaultValue:Br="",onChange:lr,width:qr="100%",height:xa=400,miniToolbar:vi=!1,isFocus:ca=!1,watch:li,insertTemp:wi,mode:Li="markdown",id:oi="markdown-editor-id",showResizeBar:ir=!1,noStorage:Aa=!1,showNullButton:Ka=!1,showNullProgramButton:Ca=!1,hidetoolBar:va=!1,fullScreen:mo=!1,onBlur:ja,onCMBeforeChange:wa,onFullScreen:Qn,className:Ri="",disablePaste:Ms=!1,disabled:ms=!1,disabledFill:Oo=!1,placeholder:io="",values:rl="",extraUse:ma,onAddBlank:il})=>{const[zn,wo]=(0,re.useState)(null),[Ro,_s]=(0,re.useState)(Br),[gs,Uo]=(0,re.useState)(li),[is,Ks]=(0,re.useState)(mo),[Eo,jo]=(0,re.useState)(""),[Oa,$o]=(0,re.useState)(0),[Bl,vs]=(0,re.useState)(xa),[al,es]=(0,re.useState)(!1),$a=(0,re.useRef)((0,rn.Z)()),Bs=(0,re.useRef)(!1),Xs=(0,re.useRef)(),[as,pl]=(0,re.useState)(0),[os,ss]=(0,re.useState)(0),Hs=(0,re.useRef)(),qs=(0,re.useRef)(),Ga=(0,re.useRef)(),ls=(0,re.useRef)(),Wo=(0,re.useRef)(),ys=(0,re.useRef)(),Ds=()=>Wi(void 0,null,function*(){var Jt;const bn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:$a.current}});(Jt=bn==null?void 0:bn.attachments)!=null&&Jt.length&&(console.log("cm:",zn,Hs),bn.attachments.map(An=>{An.content_type.indexOf("image")>-1?zn.replaceSelection(``):An.content_type.indexOf("video")>-1?zn.replaceSelection(`<video width="100%" controls src="${pe.Z.API_SERVER}/api/attachments/${data.id}"></video>`):An.content_type.indexOf("pdf")>-1?zn.replaceSelection(`<a href="${pe.Z.API_SERVER}/api/attachments/${An.id}?type=${An.content_type}&disposition=inline" target="_blank">${An.name}</a>`):zn.replaceSelection(`[${An.name}](${pe.Z.API_SERVER}/api/attachments/${An.id}?type=${An.content_type})`)}))});(0,re.useEffect)(()=>{const Jt=window.scrollY||window.pageYOffset;_s(rl),zn==null||zn.setValue(rl),window.scrollTo(0,Jt)},[rl]),(0,re.useEffect)(()=>{Qn==null||Qn(is)},[is]),(0,re.useEffect)(()=>{if(Hs.current){let Jt=function(An,Bn){var zr;if(Ms){Bn.preventDefault();return}const ei=Bn.clipboardData;if(ei){const _i=ei.types.toString(),Mi=ei.items;if(_i==="Files"||ei.types.indexOf("Files")>-1){if(Bn.preventDefault(),Li=="stex")return;try{let ta=Mi[1];((zr=Mi[0])==null?void 0:zr.kind)==="file"&&(ta=Mi[0]);const la=ta.getAsFile(),Ta=la.name.split(".").pop();(0,vt.I)(la,Ma=>{var Wa,Sa,Ja;Ma.id?((Wa=la==null?void 0:la.type)==null?void 0:Wa.indexOf("image"))>-1?bn.replaceSelection(`<img width="100%" src="/api/attachments/${Ma.id}?type=${Ma.content_type})" alt="" />`):((Sa=la==null?void 0:la.type)==null?void 0:Sa.indexOf("video"))>-1?bn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ma.id}"></video>`):((Ja=la==null?void 0:la.type)==null?void 0:Ja.indexOf("pdf"))>-1?bn.replaceSelection(`<a href="/api/attachments/${Ma.id}?type=${la.type}&disposition=inline" target="_blank">${la.name}</a>`):vn.includes(Ta)?bn.replaceSelection(`<a href="/api/attachments/${Ma.id}?type=office&disposition=inline" target="_blank">${la.name}</a>`):bn.replaceSelection(`[${la.name}](/api/attachments/${Ma.id}?type=${Ma.content_type})`):(Ma==null?void 0:Ma.status)===401&&(_n.ZP.warning((Ma==null?void 0:Ma.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(ta){_n.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const bn=tt().fromTextArea(Hs.current,{mode:Li,lineNumbers:!vi,lineWrapping:!0,value:Br,autoCloseTags:!Ca,autoCloseBrackets:!0});return bn.on("keyup",function(An,Bn){Bn.keyCode===8&&(An.getValue()==""?bn.setOption("placeholder",io):bn.setOption("placeholder",null))}),bn.on("keydown",function(An,Bn){if(Bn.keyCode===8){var zr=bs(An);zr&&Bn.preventDefault()}}),ca&&bn.focus(),bn.on("paste",Jt),bn.on("dragleave",function(An,Bn){qs.current.classList.remove("mouse-hover-md")}),ms&&bn.on("beforeChange",function(An,Bn){(Bn.origin==="paste"||Bn.origin==="+input")&&Bn.cancel()}),wo(bn),()=>{bn.off("paste",Jt)}}},[]);const Fs=(0,re.useCallback)(()=>{if(qs.current)try{}catch(Jt){console.log(Jt,"---- to set md editor body height")}},[Bl,qs,is]);(0,re.useEffect)(()=>{function Jt(){let bn=new At.Z(An=>{for(let Bn of An)(Bn.target.offsetHeight>0||Bn.target.offsetWidth>0)&&(Fs(),zn.setSize("100%","100%"),zn.refresh())});return bn.observe(Hs.current.parentElement),bn}if(zn){const bn=Jt();return()=>{var An,Bn;(An=Hs.current)!=null&&An.parentElement&&bn.unobserve((Bn=Hs.current)==null?void 0:Bn.parentElement)}}},[zn,Fs]),(0,re.useEffect)(()=>{if(zn){let Jt=[];for(const[bn,An]of Object.entries(er)){let Bn={[bn]:()=>{Go(An)}};Jt.push(Bn),zn.addKeyMap(Bn)}return Xs.current=setInterval(()=>{Bs.current&&Ds()},4e3),()=>{clearInterval(Xs.current);for(let bn of Jt)zn.removeKeyMap(bn)}}},[zn]),(0,re.useEffect)(()=>{mo!==is&&Ks(mo)},[mo]),(0,pi.Z)(()=>{if(!Aa&&Oa>0){let Jt=new Date().getTime(),bn=window.sessionStorage.getItem(oi);Jt>=Oa+an&&(!bn||bn!==Ro)&&(window.sessionStorage.setItem(oi,Ro),es(!0))}},an),(0,re.useEffect)(()=>{Uo(li)},[zn,li]),(0,re.useEffect)(()=>{zn&&ca&&zn.focus()},[zn,ca]),(0,re.useEffect)(()=>{if(gs&&zn){let Jt=function(An){let Bn=An.target;if(ls.current){let zr=Bn.scrollTop/Bn.scrollHeight;ls.current.scrollTop=ls.current.scrollHeight*zr}};const bn=zn.getScrollerElement();return bn.addEventListener("scroll",Jt),()=>{bn.removeEventListener("scroll",Jt)}}},[zn,gs]),(0,re.useEffect)(()=>{if(zn&&wa){let Jt=function(bn,An){wa(bn,An)};return zn.on("beforeChange",Jt),()=>{zn.off("beforeChange",Jt)}}},[zn,wa]),(0,re.useEffect)(()=>{if(zn&&ja){let Jt=function(){ja(zn.getValue())};return zn.on("blur",Jt),()=>{zn.off("blur",Jt)}}},[zn,ja]);function bs(Jt,bn){var An=Jt.getDoc(),Bn=An.getCursor(),zr=An.getLine(Bn.line),ei=zr.charAt(Bn.ch-1),_i=zr.lastIndexOf("@\u2581@",Bn.ch),Mi=zr.lastIndexOf("@\u2581\u2581@",Bn.ch),ta=_i>Mi?_i:Mi,la=_i>Mi?3:4;if(On.indexOf(ei)===-1)return null;if(console.log("change1:",bn,Jt,zr,Bn,ta,_i,Mi,ei),ta>=0&&Bn.ch-ta<5){var Ta=ta+la;return An.replaceRange("",{line:Bn.line,ch:ta},{line:Bn.line,ch:Ta}),{line:Bn.line,ch:Ta}}return null}(0,re.useEffect)(()=>{if(zn){let Jt=function(bn,An){const Bn=bn.getValue();_s(Bn),$o(new Date().getTime()),bn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),lr&&(Ca?lr(Bn,Dt(Bn)):lr(Bn))};return zn.on("change",Jt),()=>{zn.off("change",Jt)}}},[zn,lr]),(0,re.useEffect)(()=>{if(zn)if(Br==null)zn.setValue(""),_s("");else{const Jt=window.scrollY||window.pageYOffset;Br!==zn.getValue()&&(zn.setValue(Br),_s(Br),zn.setCursor(ms?1:zn.lineCount(),0),window.scrollTo(0,Jt))}},[zn,Br]);const Go=(0,re.useCallback)(Jt=>{const bn=zn.getCursor(),An=zn.getSelection();let Bn=An.split(`
|
|
|
`);switch(Jt){case"bold":return zn.replaceSelection("**"+An+"**"),An===""&&zn.setCursor(bn.line,bn.ch+2),zn.focus();case"italic":return zn.replaceSelection("*"+An+"*"),An===""&&zn.setCursor(bn.line,bn.ch+1),zn.focus();case"code":return zn.replaceSelection("`"+An+"`"),An===""&&zn.setCursor(bn.line,bn.ch+1),zn.focus();case"inline-latex":return jo("inline-latex"),zn.focus();case"latex":return zn.replaceSelection("```latex\n"+An+"\n```"),zn.setCursor(bn.line+1,An.length+1),zn.focus();case"line-break":return zn.replaceSelection(`<br/>
|
|
|
`),zn.focus();case"list-ul":return An===""?zn.replaceSelection("- "+An):zn.replaceSelection(Bn.map(zr=>zr===""?"":`- ${zr}`).join(`
|
|
|
`)),zn.focus();case"list-ol":return An===""?zn.replaceSelection("1. "+An):zn.replaceSelection(Bn.map((zr,ei)=>zr===""?"":`${ei+1}. ${zr}`).join(`
|
|
|
`)),zn.focus();case"add-null-ch":il==null||il();return;case"add-signal":return An===""&&zn.setCursor(bn.line,bn.ch),zn.replaceSelection(Dn),zn.focus();case"add-multiple":return An===""&&zn.setCursor(bn.line,bn.ch),zn.replaceSelection(On),zn.focus();case"inster-template-1":return An===""&&zn.setCursor(bn.line,bn.ch),zn.replaceSelection(Mr),zn.focus();case"eraser":return zn.setValue(""),zn.focus();case"trigger-watch":return Uo(!gs),zn.focus();case"trigger-full-screen":return Ks(!is),zn.focus();case Jr:jo(Jr);return;case Ir:jo(Ir);return;case _r:jo(_r);return;case wr:jo(wr);return;case"maths-latex":jo("maths-latex");return;case xr:Wo.current="",sessionStorage.removeItem("file_id"),jo(xr);return;case Wr:jo(Wr);return;default:throw new Error}},[zn,gs,is]),Te=(0,re.useCallback)((Jt,bn)=>{var An,Bn,zr,ei,_i,Mi;jo("");const{src:ta,alt:la,id:Ta}=Jt||{};switch(Eo){case Jr:const{title:ao,link:zt}=Jt;return zn.replaceSelection(`[${ao}](${zt})`),zn.focus();case Ir:const{language:Wt,content:qt}=Jt;return zn.replaceSelection(["```"+Wt,qt,"```"].join(`
|
|
|
`)),zn.focus();case"maths-latex":for(var Ma=atob(Jt),Wa=new Uint8Array(Ma.length),Sa=0;Sa<Ma.length;Sa++)Wa[Sa]=Ma.charCodeAt(Sa);var Ja=new Blob([Wa],{type:"image/png"});(0,vt.I)(Ja,Ki=>{Ki.id?zn.replaceSelection(``):(Ki==null?void 0:Ki.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":zn.replaceSelection("`$$"+Jt+"$$`");break;case Ji:if(!Ta)return;zn.focus(),zn.getValue().indexOf(ta)===-1?zn.replaceSelection(`<center><img id="${Ta}" width="80%" src="${ta}" class="draw-flowchart" alt="${la||""}" /></center>`):document.getElementById(Ta).src=pe.Z.API_SERVER+ta+"?t="+Date.now();try{setTimeout(()=>{ja(zn.getValue())},100)}catch(Ki){}break;case _r:case wr:const Fn=bn,Gr=(zr=(Bn=(An=Fn==null?void 0:Fn.name)==null?void 0:An.split("."))==null?void 0:Bn.pop)==null?void 0:zr.call(Bn);return((ei=Fn==null?void 0:Fn.type)==null?void 0:ei.indexOf("image"))>-1||!(Fn!=null&&Fn.type)?Fn!=null&&Fn.align||Fn!=null&&Fn.width?zn.replaceSelection(`<p style="text-align:${Fn.align||"initial"}"><img width="${Fn.width?Fn.width+"%":"initial"}" src="${ta}" alt="${la||""}" /></p>`):zn.replaceSelection(`<img width="100%" src="${ta}" alt="${la||""}" />`):((_i=Fn==null?void 0:Fn.type)==null?void 0:_i.indexOf("video"))>-1?zn.replaceSelection(`<video width="100%" controls src="${ta}"></video>`):((Mi=Fn==null?void 0:Fn.type)==null?void 0:Mi.indexOf("pdf"))>-1?zn.replaceSelection(`<a href="${ta}?type=${Fn.type}&disposition=inline" target="_blank">${Fn.name}</a>`):vn.includes(Gr)?zn.replaceSelection(`<a href="${ta}?type=office&disposition=inline" target="_blank">${Fn.name}</a>`):zn.replaceSelection(`[${Fn.name}](${ta})`),zn.focus();case Wr:const{row:Ti,col:In,align:Ar}=Jt;let ci=`
|
|
|
`;for(let Ki=0;Ki<Ti;Ki++){let Lr=[],nr=[];for(let Pi=0;Pi<In;Pi++)Ki===1&&nr.push(si[Ar]),Lr.push(" ");Ki===1&&(ci+=`| ${nr.join(" | ")} |
|
|
|
`),ci+=`| ${Lr.join(In===1?"":" | ")} |
|
|
|
`}return zn.replaceSelection(ci+`
|
|
|
`),zn.focus();default:throw new Error}},[zn,Eo]),Ue=(0,re.useMemo)(()=>{switch(Eo){case Jr:return re.createElement(Rt,{callback:Te,onCancel:tn});case Ir:return re.createElement(Yt.Z,{callback:Te,onCancel:tn});case _r:return re.createElement(vt.Z,{callback:Te,onCancel:tn});case xr:return re.createElement(ge,{editImgId:Wo.current,callback:Te,onCancel:tn});case Wr:return re.createElement(mn,{callback:Te,onCancel:tn});case"maths-latex":return re.createElement(mr,{showSaveButton:!0,callback:Te});case"inline-latex":return re.createElement(Gt.Z,{showSaveButton:!0,callback:Te});default:return null}},[Eo]);function tn(){jo("")}(0,re.useEffect)(()=>{if(Ga.current){let Jt=function(_i){zr=!0,ei=_i.pageY},bn=function(){zr=!1},An=function(_i){if(zr){let Mi=_i.pageY-ei;Mi<0&&(Mi=0),Mi>300&&(Mi=300);let ta=xa+Mi+"px";vs(ta)}},Bn=Ga.current,zr=!1,ei=0;return Bn.addEventListener("mousedown",Jt),document.addEventListener("mousemove",An),document.addEventListener("mouseup",bn),()=>{Bn.removeEventListener("mousedown",Jt),document.removeEventListener("mousemove",An),document.removeEventListener("mouseup",bn)}}},[zn,Ga]),(0,re.useEffect)(()=>{vs(xa)},[xa]);const we=Vn(qr),ht=Vn(Bl),St={width:we,height:ht},Qt=(0,re.useMemo)(()=>{if(Oa){let Jt=new Date(Oa),bn=Jt.getHours(),An=Jt.getMinutes(),Bn=Jt.getSeconds();return bn=bn<10?"0"+bn:bn,An=An<10?"0"+An:An,Bn=Bn<10?"0"+Bn:Bn,`${bn}:${An}:${Bn}`}return 0},[Oa]),Dt=Jt=>{const bn=[];if(Ca){let An=-1;Jt=Jt.replace(/(@▁▁@|@▁@)/g,function(Bn,zr,ei){bn.push({multiLine:Bn!==Dn})})}return bn};function Cn(){window.sessionStorage.removeItem(oi),es(!1),$o(0)}function Ln(){es(!1),$o(0),zn.setValue(window.sessionStorage.getItem(oi))}(0,re.useEffect)(()=>{ia[Eo]&&Eo!==wr&&Eo!==xr&&setTimeout(()=>{const Jt=document.getElementsByClassName("markdown-popup-form")[0],bn=window.innerWidth/2-Jt.offsetWidth/2,An=window.innerHeight/2-Jt.offsetHeight/2;pl(bn),ss(An)},0)},[Eo]);const Mn=Jt=>{Jt.preventDefault();const bn=Jt.clientX-as,An=Jt.clientY-os;document.body.onmousemove=Bn=>{let zr=Bn.clientX-bn,ei=Bn.clientY-An;const _i=document.getElementsByClassName("markdown-popup-form")[0],Mi=window.innerWidth-_i.offsetWidth,ta=window.innerHeight-_i.offsetHeight;zr=Math.max(0,Math.min(zr,Mi)),ei=Math.max(0,Math.min(ei,ta)),gn(Bn.clientX,Bn.clientY,bn,An)&&(pl(zr),ss(ei))},document.body.onmouseup=function(){document.body.onmousemove=null}},gn=(Jt,bn,An,Bn)=>{const zr=document.body.clientHeight,ei=document.body.clientWidth;return Jt<20&&An>Jt||Jt>ei-20&&An<Jt||bn<20&&Bn>bn||bn>zr-20&&Bn<bn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return re.createElement(re.Fragment,null,re.createElement("div",{className:"markdown-editor-wrapper",ref:qs},re.createElement("div",{className:`markdown-editor-container ${Ri} ${gs?"on-preview":""} ${vi?"mini":""} ${is?"full-screen":""}`,style:St},re.createElement(_t,{insertTemp:wi,watch:gs,fullScreen:is,showNullButton:Ka,showNullProgramButton:Ca,onActionCallback:Go,hidetoolBar:va,extraUse:ma}),re.createElement("div",{className:"markdown-editor-body"},re.createElement("div",{className:"codemirror-container"},re.createElement("textarea",{ref:Hs,placeholder:io})),gs?re.createElement("div",{ref:ls,className:"preview-container"},Li==="stex"&&re.createElement(he,{value:Ro}),Li!=="stex"&&re.createElement(it.Z,{edit:!0,disabledFill:Oo,showProgramFill:Ca,value:Ro,openEditor:Jt=>{var bn;Wo.current=Jt,(bn=ys.current)==null||bn.setHeight("100vh"),setTimeout(()=>{jo("add-flowchart")},150)}})):null))),ir?re.createElement("a",{ref:Ga,className:"editor-resize"}):null,Eo===wr&&re.createElement(fn,{callback:Te,onCancel:tn}),Eo===xr&&re.createElement(ge,{ref:ys,editImgId:Wo.current,callback:Te,onCancel:tn}),re.createElement(Ot.Z,null,ia[Eo]&&Eo!==wr&&Eo!==xr?re.createElement(nt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:as,top:os},title:re.createElement("div",{style:{cursor:"move"},onMouseDown:Mn},ia[Eo]),open:!0,onCancel:tn,footer:null,destroyOnClose:!0,width:Eo===xr?"1200px":null,height:Eo===xr?"80vh":null,className:"markdown-popup-form"},Ue):null))}},70859:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return Tt},I:function(){return Ot}});var re=de(22150),xe=de(2453),tt=de(69677),At=de(93421),Pe=de(31795),Ne=de(78045),je=de(71577),Ee=de(15476),ye=de(67294),qe=de(52262),it=de(67294),he=Object.defineProperty,gt=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Je=(st,ct,He)=>ct in st?he(st,ct,{enumerable:!0,configurable:!0,writable:!0,value:He}):st[ct]=He,et=(st,ct)=>{for(var He in ct||(ct={}))ft.call(ct,He)&&Je(st,He,ct[He]);if(Xe)for(var He of Xe(ct))Ze.call(ct,He)&&Je(st,He,ct[He]);return st},Ye=(st,ct)=>gt(st,kt(ct));const{useForm:We}=re.default,$e={width:280,marginRight:10},lt={labelCol:{span:5},wrapperCol:{span:19}};var Tt=({callback:st,onCancel:ct})=>{const[He]=We();let pt=(0,ye.useRef)();function Ve(wt){pt.current.width=He.getFieldValue("width"),pt.current.align=He.getFieldValue("align"),st(wt,pt.current)}function Qe(wt,Mt){if(wt.status===-1){xe.ZP.error(wt.message);return}He.setFieldsValue({src:`/api/attachments/${wt.id}`,type:Mt.type})}function Fe(wt){let Mt=wt.target.files[0];pt.current=Mt,Ot(Mt,Qe)}return it.createElement(re.default,Ye(et({form:He},lt),{className:"upload-image-panel",onFinish:Ve,style:{width:470,overflow:"hidden"}}),it.createElement(re.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},it.createElement("div",{className:"flex-container"},it.createElement(re.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},it.createElement(tt.default,{style:$e})),it.createElement(_t,{onFileChange:Fe}))),it.createElement(re.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},it.createElement(tt.default,{style:{width:264}})),it.createElement(re.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},it.createElement(At.Z,null,it.createElement(re.default.Item,{name:"width",style:{margin:0}},it.createElement(Pe.Z,{style:{width:264}})),it.createElement("span",{className:"ml8"},"%"))),it.createElement(re.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},it.createElement(Ne.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),it.createElement("aside",null,it.createElement(re.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},it.createElement(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),it.createElement(je.ZP,{type:"default",onClick:ct},"\u53D6\u6D88"))))};function _t({onFileChange:st}){return it.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",it.createElement("input",{type:"file",onChange:st}))}function Ot(st,ct){if(!st)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,qe.bg)())throw xe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let He=new FormData;He.append("editormd-image-file",st),He.append("file_param_name","editormd-image-file"),He.append("byxhr","true");var pt=new window.XMLHttpRequest;pt.withCredentials=!0,pt.addEventListener("load",function(Ve){ct(JSON.parse(Ve.target.responseText),st)},!1),pt.addEventListener("error",function(Ve){console.error(Ve)},!1),pt.open("POST",`${Ee.KI}/api/attachments.json`),pt.send(He)}},76621:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return tt}});var re=de(67294),xe=de(73935);class tt extends re.Component{constructor(Pe){super(Pe);const Ne=window.document;this.node=Ne.createElement("div"),Ne.body.appendChild(this.node)}render(){const{children:Pe}=this.props;return(0,xe.createPortal)(Pe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},5476:function(cn,yn,de){"use strict";de.d(yn,{i:function(){return lt},Z:function(){return _t}});var re={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},xe=de(57953),tt=de(83062),At=de(38703),Pe=de(94184),Ne=de.n(Pe),je=de(28706),Ee=de(26194),ye=de(52262),qe=de(79005),it=de(20345),he=de(77882),gt=de(31081),kt=de(75309),Xe=de(71979),ft=de(47558),Ze=de(60345),Je=de(66832),et=de(96593),Ye=de(19664),We=de(91833),$e=de(67294);const lt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:qe,swimg:it},{name:"101\u8BA1\u5212",ptimg:he,swimg:gt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:kt,swimg:Xe},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:ft,swimg:Ze},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Je,swimg:et},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Ye,swimg:We}];var _t=({className:Ot,dataSource:st=[],col:ct=4,right:He,bottom:pt=23,precision:Ve=0,wrapWidth:Qe=1200,trackEventItems:Fe,loading:wt,onRemove:Mt=()=>{},isCurrent:jt=!0,showAlias:Re=!1,showProgress:Le=!1})=>{const Nt=Math.floor((Qe-(ct-1)*He)/ct),Rt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(Yt=>(window.ENV==="build"&&(Yt.ptimg=`/react/build${Yt.ptimg}`,Yt.swimg=`/react/build${Yt.swimg}`),Yt));return $e.createElement(xe.Z,{spinning:wt},$e.createElement("div",{className:Ne()(re.list,Ot)},!!(st!=null&&st.length)&&(st==null?void 0:st.map((Yt,vt)=>{var nt,Vt,un,Ut,fn,en;const{name:En,id:_n,identifier:Ce,featured:se,school_name:ue,image_url:ge,excellent:pe,is_plan:le}=Yt;return $e.createElement("div",{key:_n,className:jt&&Le?re.wrapisCurrent:re.wrap,style:{width:Nt,marginRight:(1+vt)%ct===0?0:He+Ve,marginBottom:pt}},$e.createElement("a",{className:re.li,onClick:ze=>{ze.preventDefault(),ze.stopPropagation(),Fe&&(0,je.L9)([Fe]),(0,je.xg)(`/paths/${Ce}`)}},$e.createElement("div",{className:re.img},$e.createElement("img",{className:re.cover,src:`${ge}`}),jt&&(0,ye.bg)()&&(Yt==null?void 0:Yt.studying)&&$e.createElement("div",{className:`${re.movebq} user-path-items`,onClick:ze=>{ze.stopPropagation(),Mt(Yt)}},$e.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),$e.createElement("span",{className:"c-red"},"\u79FB\u9664")),(nt=Yt==null?void 0:Yt.subject_tags)==null?void 0:nt.map((ze,bt)=>{var Pt,mn;if(bt===0){const Xt=(Pt=Rt.find(Kt=>Kt.name==ze))==null?void 0:Pt.swimg;return $e.createElement("img",{className:re.sign,src:Xt,style:{left:"-4px"}})}const ln=(mn=Rt.find(Xt=>Xt.name==ze))==null?void 0:mn.ptimg;return $e.createElement("img",{className:re.sign,src:ln,style:{left:`${48+52*(bt-1)+2*bt}px`}})}),$e.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Yt==null?void 0:Yt.excellent)&&$e.createElement("div",{className:re.bq},"\u5F00\u653E\u8BFE\u7A0B"))),$e.createElement("div",{className:re.name},$e.createElement(tt.Z,{title:Re&&(Yt!=null&&Yt.excellent_alias_name)?$e.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${En}`,$e.createElement("br",null),$e.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Yt==null?void 0:Yt.excellent_alias_name}`)):En},$e.createElement("span",{className:re.e},Re&&(Yt==null?void 0:Yt.excellent_alias_name)||En))),jt&&Le&&((Vt=Yt==null?void 0:Yt.progress)==null?void 0:Vt.all_score)!=0&&$e.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},$e.createElement(At.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((un=Yt==null?void 0:Yt.progress)==null?void 0:un.my_score)/((Ut=Yt==null?void 0:Yt.progress)==null?void 0:Ut.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(fn=Yt==null?void 0:Yt.progress)==null?void 0:fn.my_score,"/",(en=Yt==null?void 0:Yt.progress)==null?void 0:en.all_score),(!jt||!Le)&&$e.createElement("div",{className:re.tags},$e.createElement("div",null,$e.createElement(tt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},$e.createElement("span",null,$e.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),$e.createElement("span",null,Yt.stages_count))),$e.createElement(tt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},$e.createElement("span",null,$e.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),$e.createElement("span",null,Yt.members_count)))))))})),!st.length&&$e.createElement(Ee.Z,null)))}},78311:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return Ne}});var re=de(67294),xe={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},tt=de(94184),At=de.n(tt),Ne=({dataSource:je=[],value:Ee,onChange:ye,className:qe,style:it={}})=>re.createElement("div",{style:it,className:At()(xe.tabs,qe)},je.map(he=>re.createElement("span",{onClick:()=>ye(he.id),className:Ee===he.id?xe.active:"",key:he.id},he.name)))},64743:function(cn,yn,de){"use strict";de.d(yn,{jL:function(){return Pe},w9:function(){return fi},vv:function(){return vi},dN:function(){return Br},QD:function(){return Xs},cQ:function(){return le.Z},vg:function(){return Dn},Oz:function(){return Wi},op:function(){return Bl},O5:function(){return St},_b:function(){return qs},t7:function(){return ct},tT:function(){return Ve},Gi:function(){return ja},YG:function(){return Li},Ed:function(){return va},kT:function(){return Aa},qp:function(){return Ze},Um:function(){return lt},K3:function(){return Ye},vr:function(){return os},qE:function(){return es},Je:function(){return wt},wb:function(){return Ut},rC:function(){return pe},lB:function(){return En},cq:function(){return Oo},kO:function(){return il},tp:function(){return Tt.Z},Si:function(){return Cn},k8:function(){return ao},Du:function(){return zr}});var re=de(67294),xe={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AA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k8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Pe=({dataSource:zt=[],img:Wt,imgWidth:qt=346,title:Fn,sunTitle:Gr,bannerExtraContent:Ti})=>re.createElement("div",{className:xe.banner},re.createElement("div",{className:xe.content},re.createElement("aside",null,re.createElement("p",null,re.createElement("b",null,Fn),re.createElement("span",null,Gr)),zt.length>0&&re.createElement("div",{className:xe.btns},zt.map((In,Ar)=>re.createElement("div",{key:Ar,onClick:In.click},In.name,In.sign?re.createElement("img",{src:tt,width:39}):null))),Ti),Wt&&re.createElement("img",{style:{marginTop:33,marginRight:38},src:Wt,width:qt}))),Ne={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},je=de(94184),Ee=de.n(je),ye=de(96486),qe=Object.defineProperty,it=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,kt=(zt,Wt,qt)=>Wt in zt?qe(zt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):zt[Wt]=qt,Xe=(zt,Wt)=>{for(var qt in Wt||(Wt={}))he.call(Wt,qt)&&kt(zt,qt,Wt[qt]);if(it)for(var qt of it(Wt))gt.call(Wt,qt)&&kt(zt,qt,Wt[qt]);return zt},Ze=({dataSource:zt=[],value:Wt,onChange:qt,onTitleChange:Fn,className:Gr,title:Ti,titleWidth:In=41,style:Ar={},fontColor:ci="#6A7283",showCount:Ki,classNameActive:Lr,styleItem:nr={}})=>{const[Pi,ua]=(0,re.useState)(0),[pa,mi]=(0,re.useState)(!1),ri=(0,re.useRef)(null),Na=(0,re.useRef)(null);return(0,re.useEffect)(()=>{var Ba;zt.length!==0&&(((Ba=ri==null?void 0:ri.current)==null?void 0:Ba.clientHeight)>97?ua(1):ua(0)),zt.length===0&&ua(0),mi(!1)},[zt]),re.createElement("div",{className:Ee()(Ne.row,Gr),style:Ar},re.createElement("div",{onClick:(0,ye.throttle)(()=>Fn==null?void 0:Fn(),2e3),style:{width:In,marginTop:pa?12:4},className:`${Ne.title} ${Fn?"current":""}`},Ti),re.createElement("div",{className:pa?`${Ne.tagsWrap} ${Ne.tagsBorderWrap}`:Ne.tagsWrap},re.createElement("div",{className:Ne.bar,ref:Na,style:Pi>0?{height:Pi===1?97:"auto",overflow:Pi===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},re.createElement("div",{className:Ne.tag,ref:ri},zt==null?void 0:zt.map(Ba=>re.createElement("span",{onClick:()=>qt(Ba.id),key:Ba.id,style:Xe(Xe({color:ci},nr),(Ba==null?void 0:Ba.style)||{}),className:Wt===Ba.id?Ee()(Lr||Ne.active,Ba.classNameActive):""},re.createElement("span",{title:Ba.name,className:Ne.name},Ba.name),!!Ki&&re.createElement("span",{className:Ne.num},Ba.count))))),!!Pi&&re.createElement(re.Fragment,null,Pi===1?re.createElement("div",{onClick:()=>{var Ba;ua(2),((Ba=ri==null?void 0:ri.current)==null?void 0:Ba.clientHeight)>245?mi(!0):mi(!1)},className:Ne.action},"\u5C55\u5F00",re.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):re.createElement("div",{onClick:()=>{Na.current.scrollTop=0,ua(1),mi(!1)},className:Ne.action},"\u6536\u8D77",re.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Je={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},Ye=({dataSource:zt=[],value:Wt,onChange:qt,onTitleChange:Fn,className:Gr,title:Ti,titleWidth:In=41,style:Ar={},fontColor:ci="#6A7283",showCount:Ki,expand:Lr=!0})=>{const[nr,Pi]=(0,re.useState)(0),[ua,pa]=(0,re.useState)(!1),mi=(0,re.useRef)(null),ri=(0,re.useRef)(null),[Na,Ba]=(0,re.useState)(Lr);return re.createElement("div",{className:Ee()(Je.row,Gr),style:Ar},re.createElement("div",{className:"flex item-center justify-between"},re.createElement("div",{onClick:(0,ye.throttle)(()=>Fn==null?void 0:Fn(),2e3),style:{width:In,marginTop:ua?12:4},className:`${Je.title} ${Fn?"current":""}`},Ti),re.createElement("i",{className:`iconfont ${Na?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:Na?8:10},onClick:()=>Ba(!Na)})),Na&&re.createElement("div",{className:ua?`${Je.tagsWrap} ${Je.tagsBorderWrap}`:Je.tagsWrap},re.createElement("div",{className:Je.fenge}),re.createElement("div",{className:Je.bar,ref:ri},re.createElement("div",{className:Je.tag,ref:mi},zt==null?void 0:zt.map(oo=>re.createElement("span",{onClick:()=>qt(oo.id),key:oo.id,style:{color:ci},className:Wt===oo.id?Je.active:""},re.createElement("span",{title:oo.name,className:Je.name},oo.name),!!Ki&&re.createElement("span",{className:Je.num},oo.count)))))))},We={flex_box_center:"flex_box_center___kXy2O",flex_space_between:"flex_space_between___EKVqf",flex_box_vertical_center:"flex_box_vertical_center___KJzcw",flex_box_center_end:"flex_box_center_end___V4Nm9",flex_box_column:"flex_box_column___g6Cee",row:"row___pqtGl",title:"title___eewYd",tagsWrap:"tagsWrap___AWV66",action:"action___Toj3O",bar:"bar___NZVtB",tag:"tag___z872k",name:"name___m2dAl",num:"num___EhDNX",active:"active___GSjsu",tagsBorderWrap:"tagsBorderWrap___VoQL3"},lt=({dataSource:zt=[],value:Wt,onChange:qt,onTitleChange:Fn,className:Gr,title:Ti,titleWidth:In=41,style:Ar={},fontColor:ci="#fff",showCount:Ki,expand:Lr=!0})=>{const[nr,Pi]=(0,re.useState)(0),[ua,pa]=(0,re.useState)(!1),mi=(0,re.useRef)(null),ri=(0,re.useRef)(null),[Na,Ba]=(0,re.useState)(Lr);return re.createElement("div",{className:Ee()(We.row,Gr),style:Ar},re.createElement("div",{className:"flex item-center justify-between"},re.createElement("div",{onClick:(0,ye.throttle)(()=>Fn==null?void 0:Fn(),2e3),style:{width:In},className:`${We.title} ${Fn?"current":""}`},Ti),re.createElement("i",{className:`iconfont ${Na?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:Na?"#00DDC7":"#037F74",fontSize:Na?10:12},onClick:()=>Ba(!Na)})),Na&&re.createElement("div",{className:ua?`${We.tagsWrap} ${We.tagsBorderWrap}`:We.tagsWrap},re.createElement("div",{className:We.bar,ref:ri},re.createElement("div",{className:We.tag,ref:mi},zt==null?void 0:zt.map(oo=>re.createElement("span",{onClick:()=>qt(oo.id),key:oo.id,style:{color:ci},className:Wt===oo.id?We.active:""},re.createElement("span",{title:oo.name,className:We.name},oo.name),!!Ki&&re.createElement("span",{className:We.num},oo.count)))))))},Tt=de(78311),_t={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Ot=de(69677),ct=({dataSource:zt=[],value:Wt="",onChange:qt,onInputChange:Fn=()=>{},className:Gr,style:Ti={},placeholder:In,allowClear:Ar=!1})=>{var ci;const[Ki,Lr]=(0,re.useState)(""),[nr,Pi]=(0,re.useState)("");(0,re.useEffect)(()=>{var mi;let ri=Wt;(mi=JSON.stringify(Wt))!=null&&mi.includes("{")&&(Lr(Wt.id),ri=Wt.value||"");try{Pi(decodeURIComponent(ri||""))}catch(Na){Pi(decodeURIComponent(ri||""))}},[Wt]);const ua=()=>{qt(encodeURIComponent(nr),Ki||null)},pa=mi=>{mi!==Ki&&(Lr(mi),qt(encodeURIComponent(nr),mi))};return re.createElement("div",{className:Ee()(_t.input,Gr),style:Ti},!!zt.length&&re.createElement("div",{className:_t.dropdown},re.createElement("div",{className:_t.text},(ci=zt.find(mi=>mi.id===Ki))==null?void 0:ci.name,re.createElement("i",{className:"iconfont icon-zhankai4"}),re.createElement("b",{className:_t.b1}),re.createElement("b",{className:_t.b2})),re.createElement("div",{className:_t.menu},zt.map((mi,ri)=>re.createElement("div",{key:ri,onClick:()=>pa(mi.id)},mi.name)))),re.createElement(Ot.default,{onPressEnter:ua,value:nr,onChange:mi=>{Pi(mi.target.value),Fn(encodeURIComponent(mi.target.value),Ki||null)},bordered:!1,placeholder:In}),re.createElement("i",{onClick:ua,className:"iconfont icon-sousuo9 font14 pl10 current"}))},He={flex_box_center:"flex_box_center___pVsOk",flex_space_between:"flex_space_between___bQwBe",flex_box_vertical_center:"flex_box_vertical_center___gdKht",flex_box_center_end:"flex_box_center_end___wJuEm",flex_box_column:"flex_box_column___F50s0",input:"input___f7GZE",dropdown:"dropdown___oJkxW",menu:"menu___RplGU",text:"text___EgRKl"},Ve=({dataSource:zt=[],value:Wt="",onChange:qt,onInputChange:Fn=()=>{},className:Gr,style:Ti={},placeholder:In,allowClear:Ar=!1})=>{var ci;const[Ki,Lr]=(0,re.useState)(""),[nr,Pi]=(0,re.useState)("");(0,re.useEffect)(()=>{var mi;let ri=Wt;(mi=JSON.stringify(Wt))!=null&&mi.includes("{")&&(Lr(Wt.id),ri=Wt.value||"");try{Pi(decodeURIComponent(ri||""))}catch(Na){Pi(decodeURIComponent(ri||""))}},[Wt]);const ua=()=>{qt(encodeURIComponent(nr),Ki||null)},pa=mi=>{mi!==Ki&&(Lr(mi),qt(encodeURIComponent(nr),mi))};return re.createElement("div",{className:Ee()(He.input,Gr),style:Ti},!!zt.length&&re.createElement("div",{className:He.dropdown},re.createElement("div",{className:He.text},(ci=zt.find(mi=>mi.id===Ki))==null?void 0:ci.name,re.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),re.createElement("div",{className:He.menu},zt.map((mi,ri)=>re.createElement("div",{key:ri,onClick:()=>pa(mi.id)},mi.name)))),re.createElement(Ot.default,{onPressEnter:ua,value:nr,onChange:mi=>{Pi(mi.target.value),Fn(encodeURIComponent(mi.target.value),Ki||null)},bordered:!1,placeholder:In}),re.createElement("i",{onClick:ua,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Qe={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},wt=({value:zt,onChange:Wt,className:qt,total:Fn,pageSize:Gr,style:Ti={}})=>{const In=zt<2,Ar=zt>=Math.ceil(Fn/Gr);return Fn<=Gr?re.createElement(re.Fragment,null):re.createElement("div",{className:Ee()(Qe.quickPager,qt),style:Ti},re.createElement("div",{onClick:()=>{In||Wt(zt-1,"prev")},className:In?Qe.disabled:""},"\u4E0A\u4E00\u9875"),re.createElement("div",{onClick:()=>{Ar||Wt(zt+1,"next")},className:Ar?Qe.disabled:""},"\u4E0B\u4E00\u9875"))},Mt={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},jt=de(57953),Re=de(83062),Le=de(12604),Nt=de(11320),Rt=de(28706),Yt=de(96908),vt=de(57177),nt=de(81378),Vt=de(26194),Ut=({className:zt,dataSource:Wt=[],col:qt=4,right:Fn,bottom:Gr=23,precision:Ti=0,wrapWidth:In=1200,trackEventItems:Ar,loading:ci})=>{const Ki=Math.floor((In-(qt-1)*Fn)/qt);return re.createElement(jt.Z,{spinning:ci},re.createElement("div",{className:Ee()(Mt.list,zt)},!!Wt.length&&Wt.map((Lr,nr)=>{const{name:Pi,id:ua,identifier:pa,power:mi,cover_image_id:ri,pic:Na}=Lr;return re.createElement("div",{className:Mt.wrap,key:ua,style:{width:Ki,marginRight:(1+nr)%qt===0?0:Fn+Ti,marginBottom:Gr}},re.createElement("a",{target:"_blank",href:`/shixuns/${pa}/challenges`,className:Mt.li,onClick:Ba=>{Ba.preventDefault(),Ar&&(0,Rt.L9)([Ar]),mi&&(0,Rt.xg)(`/shixuns/${pa}/challenges`)}},re.createElement("div",{className:Mt.img},re.createElement("img",{className:Mt.cover,src:`${Na}`}),Lr.is_jupyter&&re.createElement("img",{className:Mt.sign,src:Yt}),Lr.is_jupyter_lab&&re.createElement("img",{className:Mt.sign,src:vt}),Lr.is_unity_3d&&re.createElement("img",{className:Mt.sign,src:nt})),re.createElement("div",{className:Mt.name},re.createElement(Re.Z,{title:Pi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},re.createElement("span",{className:Mt.e},Pi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),re.createElement("div",{className:Mt.tags},re.createElement(Re.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},re.createElement("span",null,re.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),re.createElement("span",null,Lr.challenges_count))),!!Lr.myshixuns_count&&re.createElement(Re.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},re.createElement("span",null,re.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),re.createElement("span",null,Lr.myshixuns_count))),re.createElement(Re.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},re.createElement("span",null,re.createElement("span",null,Lr.level))),re.createElement("div",{className:Mt.rate},re.createElement(Le.Z,{allowHalf:!0,disabled:!0,defaultValue:Lr.score_info}),re.createElement("span",null,"\xA0",Lr.score_info?`${Lr.score_info}\u5206`:"5\u5206")))),!mi&&re.createElement("div",{className:Mt.lockWrap},re.createElement("img",{src:`${Nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),re.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Wt.length&&re.createElement(Vt.Z,null)))},fn={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},En=({className:zt,dataSource:Wt=[],col:qt=4,right:Fn,bottom:Gr=23,precision:Ti=0,wrapWidth:In=1200,wrapClassName:Ar,trackEventItems:ci,loading:Ki})=>{const Lr=Math.floor((In-(qt-1)*Fn)/qt);return re.createElement(jt.Z,{spinning:Ki},re.createElement("div",{className:Ee()(fn.list,zt)},!!Wt.length&&Wt.map((nr,Pi)=>{const{name:ua,id:pa,identifier:mi,power:ri,cover_image_id:Na,pic:Ba}=nr;return re.createElement("div",{className:Ee()(fn.wrap,Ar),key:pa,style:{width:Lr,marginRight:(1+Pi)%qt===0?0:Fn+Ti,marginBottom:Gr}},re.createElement("a",{target:"_blank",href:`/shixuns/${mi}/challenges`,className:fn.li,onClick:oo=>{oo.preventDefault(),ci&&(0,Rt.L9)([ci]),ri&&(0,Rt.xg)(`/shixuns/${mi}/challenges`)}},re.createElement("img",{src:de(79633),className:fn.titleBg}),re.createElement("div",{className:fn.name},re.createElement(Re.Z,{title:ua||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},re.createElement("span",{className:fn.e},ua||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),re.createElement("div",{style:{padding:"14px",paddingBottom:0}},re.createElement("div",{className:fn.img},re.createElement("img",{className:fn.cover,src:Na?`${Nt.Z.API_SERVER}/api/attachments/${Na}`:`${Nt.Z.IMG_SERVER+Ba}`}),nr.is_jupyter&&re.createElement("div",{className:fn.bq},"Jupyter"),nr.is_jupyter_lab&&re.createElement("div",{className:fn.bq},"JupyterLab"),nr.is_unity_3d&&re.createElement("div",{className:fn.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),re.createElement("div",{className:"mt20 flex item-center justify-between"},re.createElement("div",null,re.createElement("span",{className:fn.text},"\u5B66\u4E60\u4EBA\u6570"),re.createElement("span",{className:fn.value},nr.myshixuns_count)),re.createElement("div",null,re.createElement("span",{className:fn.text},"\u56F0\u96BE\u7B49\u7EA7"),re.createElement("span",{className:fn.value},nr.level))),re.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},re.createElement("div",null,re.createElement("span",{className:fn.text},"\u5173\u5361\u6570"),re.createElement("span",{className:fn.value},nr.challenges_count)),re.createElement("div",{className:fn.rate},re.createElement(Le.Z,{allowHalf:!0,disabled:!0,defaultValue:nr.score_info}),re.createElement("span",{className:fn.value,style:{color:"#FF9C00"}},"\xA0",nr.score_info?`${nr.score_info}\u5206`:"5\u5206"))))),!ri&&re.createElement("div",{className:fn.lockWrap},re.createElement("img",{src:`${Nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),re.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Wt.length&&re.createElement(Vt.Z,null)))},_n={flex_box_center:"flex_box_center___MoMqv",flex_space_between:"flex_space_between___G_1Pa",flex_box_vertical_center:"flex_box_vertical_center___vHNpc",flex_box_center_end:"flex_box_center_end___dt_Dx",flex_box_column:"flex_box_column___gK3h_",list:"list___GYKT6",wrap:"wrap___uLNQf",lockWrap:"lockWrap___lZQo7",li:"li___X7Rkc",img:"img___bih4x",cover:"cover___UiMEf",sign:"sign___WPSew",name:"name___ZLjiX",e:"e___tB29O",tags:"tags___a3FKn",rate:"rate___dh30H"},Ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+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FoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",pe=({className:zt,dataSource:Wt=[],col:qt=4,right:Fn,bottom:Gr=23,precision:Ti=0,wrapWidth:In=1200,trackEventItems:Ar,loading:ci,wrapClassName:Ki,imgClassName:Lr})=>{const nr=Math.floor((In-(qt-1)*Fn)/qt);return re.createElement(jt.Z,{spinning:ci},re.createElement("div",{className:Ee()(_n.list,zt)},!!Wt.length&&Wt.map((Pi,ua)=>{const{name:pa,id:mi,identifier:ri,power:Na,cover_image_id:Ba,pic:oo}=Pi;return re.createElement("div",{className:Ee()(_n.wrap,Ki),key:mi,style:{width:nr,marginRight:(1+ua)%qt===0?0:Fn+Ti,marginBottom:Gr}},re.createElement("a",{target:"_blank",href:`/shixuns/${ri}/challenges`,className:_n.li,onClick:Qo=>{Qo.preventDefault(),Ar&&(0,Rt.L9)([Ar]),Na&&(0,Rt.xg)(`/shixuns/${ri}/challenges`)}},re.createElement("div",{className:Ee()(_n.img,Lr)},re.createElement("img",{className:_n.cover,src:Ba?`${Nt.Z.API_SERVER}/api/attachments/${Ba}`:`${Nt.Z.IMG_SERVER+oo}`}),Pi.is_jupyter&&re.createElement("img",{className:_n.sign,src:Ce}),Pi.is_jupyter_lab&&re.createElement("img",{className:_n.sign,src:se}),Pi.is_unity_3d&&re.createElement("img",{className:_n.sign,src:ue})),re.createElement("div",{className:_n.name},re.createElement(Re.Z,{title:pa||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},re.createElement("span",{className:_n.e},pa||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),re.createElement("div",{className:_n.tags},re.createElement(Re.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},re.createElement("span",null,re.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),re.createElement("span",null,Pi.challenges_count))),!!Pi.myshixuns_count&&re.createElement(Re.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},re.createElement("span",null,re.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),re.createElement("span",null,Pi.myshixuns_count))),re.createElement(Re.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},re.createElement("span",null,re.createElement("span",null,Pi.level))),re.createElement("div",{className:_n.rate},re.createElement(Le.Z,{allowHalf:!0,disabled:!0,defaultValue:Pi.score_info}),re.createElement("span",null,"\xA0",Pi.score_info?`${Pi.score_info}\u5206`:"5\u5206")))),!Na&&re.createElement("div",{className:_n.lockWrap},re.createElement("img",{src:`${Nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),re.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Wt.length&&re.createElement(Vt.Z,null)))},le=de(5476),ze={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},bt=de(79005),Pt=de(20345),mn=de(77882),ln=de(31081),Xt=de(75309),Kt=de(71979),sr=de(47558),mr=de(60345),Gt=de(66832),rn=de(96593),Jr=de(19664),_r=de(91833),xr=Object.defineProperty,wr=Object.getOwnPropertySymbols,Ji=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable,Wr=(zt,Wt,qt)=>Wt in zt?xr(zt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):zt[Wt]=qt,Tr=(zt,Wt)=>{for(var qt in Wt||(Wt={}))Ji.call(Wt,qt)&&Wr(zt,qt,Wt[qt]);if(wr)for(var qt of wr(Wt))Ir.call(Wt,qt)&&Wr(zt,qt,Wt[qt]);return zt};const si=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:bt,swimg:Pt},{name:"101\u8BA1\u5212",ptimg:mn,swimg:ln},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Xt,swimg:Kt},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:sr,swimg:mr},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Gt,swimg:rn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Jr,swimg:_r}];var Wi=({className:zt,dataSource:Wt=[],col:qt=4,right:Fn,bottom:Gr=23,precision:Ti=0,wrapWidth:In=1200,trackEventItems:Ar,loading:ci,wrapClassName:Ki,imgClassName:Lr,isArrow:nr=!1,imgStyle:Pi={}})=>{const ua=Math.floor((In-(qt-1)*Fn)/qt),[pa,mi]=(0,re.useState)(),[ri,Na]=(0,re.useState)(),Ba=Qo=>mi(Qo),oo=()=>mi(-1);return re.createElement(jt.Z,{spinning:ci},re.createElement("div",{className:Ee()(ze.list,zt)},!!(Wt!=null&&Wt.length)&&(Wt==null?void 0:Wt.map((Qo,js)=>{var us;const{name:ml,id:so,identifier:Yo,featured:vo,school_name:co,image_url:Ls,excellent:zs,is_plan:Yi}=Qo;return re.createElement("div",{key:so,className:Ee()(ze.wrap,Ki),style:{width:ua,marginRight:(1+js)%qt===0?0:Fn+Ti,marginBottom:Gr}},re.createElement("a",{target:"_blank",href:`/paths/${Yo}`,className:ze.li,onClick:_o=>{_o.preventDefault(),Ar&&(0,Rt.L9)([Ar]),(0,Rt.xg)(`/paths/${Yo}`)}},re.createElement("img",{src:de(39057),className:ze.titleBg}),re.createElement("div",{className:ze.name},re.createElement(Re.Z,{title:ml},re.createElement("span",{className:ze.e,style:{color:nr&&pa===js?"#145DFF":"#000000"},onMouseEnter:()=>{Ba(js)},onMouseLeave:oo},ml))),re.createElement("div",{style:{padding:"14px",paddingBottom:0}},re.createElement("div",{className:Ee()(ze.img,Lr)},re.createElement("img",{className:ze.cover,style:Tr({},Pi),src:`${Nt.Z.IMG_SERVER+Ls}`}),(us=Qo==null?void 0:Qo.subject_tags)==null?void 0:us.map((_o,Ts)=>{var cs,$s;if(Ts===0){const El=(cs=si.find(Gs=>Gs.name==_o))==null?void 0:cs.swimg;return re.createElement("img",{className:ze.sign,src:El,style:{left:"-4px"}})}const Ha=($s=si.find(El=>El.name==_o))==null?void 0:$s.ptimg;return re.createElement("img",{className:ze.sign,src:Ha,style:{left:`${48+52*(Ts-1)+2*Ts}px`}})}),re.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(Qo==null?void 0:Qo.excellent)&&re.createElement("div",{className:ze.bq},"\u5F00\u653E\u8BFE\u7A0B"))),re.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},re.createElement("div",null,re.createElement("span",{className:ze.text},"\u7AE0\u8282\u6570"),re.createElement("span",{className:ze.value},Qo.stages_count)),re.createElement("div",null,re.createElement("span",{className:ze.text},"\u5B66\u4E60\u4EBA\u6570"),re.createElement("span",{className:ze.value},Qo.members_count))))))})),!Wt.length&&re.createElement(Vt.Z,null)))},bi={flex_box_center:"flex_box_center___o6B0Z",flex_space_between:"flex_space_between___Uz22Q",flex_box_vertical_center:"flex_box_vertical_center___nWLOj",flex_box_center_end:"flex_box_center_end___eqMdD",flex_box_column:"flex_box_column___ypdJv",list:"list___qA19p",wrap:"wrap___YaRtD",lockWrap:"lockWrap___Cle7R",li:"li___Hpfsl",img:"img___li1Ky",cover:"cover___iuyl5",bq:"bq___BpHtR",sign:"sign___ajRAC",titleBg:"titleBg___h8Qq7",name:"name___mAV5m",e:"e___YPSD7",text:"text___nDpTk",value:"value___guywy",unit:"unit___aTzYz",tags:"tags___X1lul",tag1:"tag1___AHRAc",tag2:"tag2___Pska6"},kr=de(52262),an=de(67294);const Nn=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:bt,swimg:Pt},{name:"101\u8BA1\u5212",ptimg:mn,swimg:ln},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Xt,swimg:Kt},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:sr,swimg:mr},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Gt,swimg:rn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Jr,swimg:_r}];var Dn=({className:zt,dataSource:Wt=[],col:qt=4,right:Fn,bottom:Gr=23,precision:Ti=0,wrapWidth:In=1200,trackEventItems:Ar,loading:ci,onRemove:Ki=()=>{},isCurrent:Lr=!0,showAlias:nr=!1,wrapClassName:Pi,imgClassName:ua})=>{const pa=Math.floor((In-(qt-1)*Fn)/qt),mi=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(ri=>(window.ENV==="build"&&(ri.ptimg=`/react/build${ri.ptimg}`,ri.swimg=`/react/build${ri.swimg}`),ri));return an.createElement(jt.Z,{spinning:ci},an.createElement("div",{className:Ee()(bi.list,zt)},!!(Wt!=null&&Wt.length)&&(Wt==null?void 0:Wt.map((ri,Na)=>{var Ba;const{name:oo,id:Qo,identifier:js,featured:us,school_name:ml,image_url:so,excellent:Yo,is_plan:vo}=ri;return an.createElement("div",{key:Qo,className:Ee()(bi.wrap,Pi),style:{width:pa,marginRight:(1+Na)%qt===0?0:Fn+Ti,marginBottom:Gr}},an.createElement("a",{className:bi.li,onClick:co=>{co.preventDefault(),co.stopPropagation(),Ar&&(0,Rt.L9)([Ar]),(0,Rt.xg)(`/paths/${js}`)}},an.createElement("div",{className:Ee()(bi.img,ua)},an.createElement("img",{className:bi.cover,src:`${Nt.Z.IMG_SERVER+so}`}),Lr&&(0,kr.bg)()&&(ri==null?void 0:ri.studying)&&an.createElement("div",{className:`${bi.movebq} user-path-items`,onClick:co=>{co.stopPropagation(),Ki(ri)}},an.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),an.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Ba=ri==null?void 0:ri.subject_tags)==null?void 0:Ba.map((co,Ls)=>{var zs,Yi;if(Ls===0){const Ts=(zs=mi.find(cs=>cs.name==co))==null?void 0:zs.swimg;return an.createElement("img",{className:bi.sign,src:Ts,style:{left:"-4px"}})}const _o=(Yi=mi.find(Ts=>Ts.name==co))==null?void 0:Yi.ptimg;return an.createElement("img",{className:bi.sign,src:_o,style:{left:`${48+52*(Ls-1)+2*Ls}px`}})}),an.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},(ri==null?void 0:ri.excellent)&&an.createElement("div",{className:bi.bq},"\u5F00\u653E\u8BFE\u7A0B"))),an.createElement("div",{className:bi.name},an.createElement(Re.Z,{title:nr&&(ri!=null&&ri.excellent_alias_name)?an.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${oo}`,an.createElement("br",null),an.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${ri==null?void 0:ri.excellent_alias_name}`)):oo},an.createElement("span",{className:bi.e},nr&&(ri==null?void 0:ri.excellent_alias_name)||oo))),an.createElement("div",{className:bi.tags},an.createElement("div",null,an.createElement(Re.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},an.createElement("span",null,an.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),an.createElement("span",null,ri.stages_count))),an.createElement(Re.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},an.createElement("span",null,an.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),an.createElement("span",null,ri.members_count)))))))})),!Wt.length&&an.createElement(Vt.Z,null)))},Mr={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},vn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhO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VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Vn=de(67294),fi=({className:zt,dataSource:Wt=[],col:qt=4,right:Fn,bottom:Gr=23,precision:Ti=0,wrapWidth:In=1200,trackEventItems:Ar,loading:ci})=>{const Ki=Math.floor((In-(qt-1)*Fn)/qt);return Vn.createElement(jt.Z,{spinning:ci},Vn.createElement("div",{className:Ee()(Mr.list,zt)},!!Wt.length&&Wt.map((Lr,nr)=>{const{subject_identifier:Pi,id:ua,identifier:pa,power:mi}=Lr,ri=Lr.is_public!=0&&Lr.is_public;return Vn.createElement("div",{className:Mr.wrap,key:ua,style:{width:Ki,marginRight:(1+nr)%qt===0?0:Fn+Ti,marginBottom:Gr}},Vn.createElement("a",{className:Mr.li,onClick:Na=>{Na.preventDefault(),Ar&&(0,Rt.L9)([Ar]),(0,Rt.xg)(Lr.first_category_url)}},Vn.createElement("div",{className:Mr.top},Vn.createElement(Re.Z,{title:Lr.name},Vn.createElement("div",{className:Mr.name},Lr.name)),Vn.createElement("img",{className:Mr.img,src:Nt.Z.IMG_SERVER+"/images/"+Lr.avatar_url}),Vn.createElement("div",{className:Mr.text,title:Lr.creator},Lr.creator),Pi&&Vn.createElement("div",{className:Mr.btns},Vn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Vn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ri&&Vn.createElement("div",{className:Mr.sign},"\u516C\u5F00")),Vn.createElement("div",{className:Mr.bottom},Lr.visits>0&&Vn.createElement(Re.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Vn.createElement("span",null,Vn.createElement("i",{className:"iconfont icon-liulanyan"}),Vn.createElement("span",null,Lr.visits))),Lr.course_members_count>0&&Vn.createElement(Re.Z,{title:"\u6210\u5458",placement:"bottom"},Vn.createElement("span",null,Vn.createElement("i",{className:"iconfont icon-chengyuan"}),Lr.course_members_count)),Lr.tasks_count>0&&Vn.createElement(Re.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Vn.createElement("span",null,Vn.createElement("i",{className:"iconfont icon-zuoye"}),Lr.tasks_count)),Lr.is_end?Vn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Vn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Lr.is_accessible&&Vn.createElement("div",{className:Mr.lockWrap},Vn.createElement("img",{src:`${Nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Vn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Wt.length&&Vn.createElement(Vt.Z,null)))},er={flex_box_center:"flex_box_center___PuarE",flex_space_between:"flex_space_between___q4lAa",flex_box_vertical_center:"flex_box_vertical_center___wsb8w",flex_box_center_end:"flex_box_center_end___H781P",flex_box_column:"flex_box_column___bHK1y",list:"list___e2XDo",wrap:"wrap___cz7sh",lockWrap:"lockWrap___EPuRr",creator:"creator___Y6Xjp",img:"img___kSEud",text:"text___GIlhY",top:"top___K4GCD",sign:"sign___KCjEP",name:"name___z3U4d",middle:"middle___LeUM5",row:"row___VBzfJ",value:"value___qigWu",btns:"btns___kGysm",bottom:"bottom___yPYd5",warpStyle:"warpStyle___pH3uC"},ia="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18y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200,wrapClassName:Ar,trackEventItems:ci,loading:Ki})=>{const Lr=Math.floor((In-(qt-1)*Fn)/qt);return re.createElement(jt.Z,{spinning:Ki},re.createElement("div",{className:Ee()(er.list,zt)},!!Wt.length&&Wt.map((nr,Pi)=>{const{subject_identifier:ua,id:pa,identifier:mi,power:ri}=nr,Na=nr.is_public!=0&&nr.is_public;return re.createElement("div",{className:Ee()(`${er.wrap} ${nr.is_accessible?"":er.warpStyle}`,Ar),key:pa,style:{width:Lr,marginRight:(1+Pi)%qt===0?0:Fn+Ti,marginBottom:Gr}},re.createElement("a",{className:er.li,onClick:Ba=>{Ba.preventDefault(),ci&&(0,Rt.L9)([ci]),(0,Rt.xg)(nr.first_category_url)}},re.createElement("div",{className:er.creator},re.createElement("img",{className:er.img,src:Nt.Z.IMG_SERVER+"/images/"+nr.avatar_url}),re.createElement("div",{className:er.text,title:nr.creator},nr.creator)),re.createElement("div",{className:er.top},re.createElement(Re.Z,{title:nr.name},re.createElement("div",{className:er.name},nr.name)),Na&&re.createElement("div",{className:er.sign},"\u516C\u5F00")),re.createElement("div",{className:er.middle},re.createElement("div",{className:er.row,style:{marginBottom:6}},re.createElement("div",null,re.createElement("span",{className:er.text},"\u8BBF\u95EE\u91CF"),re.createElement("span",{className:er.value},(nr==null?void 0:nr.visits)||0)),re.createElement("div",null,re.createElement("span",{className:er.text},"\u6210\u5458"),re.createElement("span",{className:er.value},(nr==null?void 0:nr.course_members_count)||0))),re.createElement("div",{className:er.row},re.createElement("div",null,re.createElement("span",{className:er.text,style:{width:42}},"\u4F5C",re.createElement("span",{style:{marginLeft:14}},"\u4E1A")),re.createElement("span",{className:er.value},(nr==null?void 0:nr.tasks_count)||0)),re.createElement("div",null,re.createElement("span",{className:er.text},"\u72B6\u6001"),nr.is_end?re.createElement("span",{className:er.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):re.createElement("span",{className:er.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),ua&&re.createElement("div",{className:er.btns},re.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),re.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!nr.is_accessible&&re.createElement("div",{className:er.lockWrap},re.createElement("img",{src:`${Nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),re.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Wt.length&&re.createElement(Vt.Z,null)))},lr={flex_box_center:"flex_box_center___eJQtn",flex_space_between:"flex_space_between___lzV1x",flex_box_vertical_center:"flex_box_vertical_center___IYfoZ",flex_box_center_end:"flex_box_center_end___lcJOu",flex_box_column:"flex_box_column____ShCG",list:"list___YXSRr",wrap:"wrap___ZGdF6",lockWrap:"lockWrap___VKZgR",creator:"creator___tLnuI",img:"img___P8alm",text:"text___ijpmj",top:"top___md6mc",sign:"sign___ydolt",name:"name___OEush",middle:"middle___WFQ2R",row:"row___MFUrm",value:"value___rEYMy",btns:"btns___Y5S2B",bottom:"bottom___RsfJC",warpStyle:"warpStyle___R8xtx"},qr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30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vvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",vi=({className:zt,dataSource:Wt=[],col:qt=4,right:Fn,bottom:Gr=23,precision:Ti=0,wrapWidth:In=1200,wrapClassName:Ar,trackEventItems:ci,loading:Ki})=>{const Lr=Math.floor((In-(qt-1)*Fn)/qt);return re.createElement(jt.Z,{spinning:Ki},re.createElement("div",{className:Ee()(lr.list,zt)},!!Wt.length&&Wt.map((nr,Pi)=>{const{subject_identifier:ua,id:pa,identifier:mi,power:ri}=nr,Na=nr.is_public!=0&&nr.is_public;return re.createElement("div",{className:Ee()(`${lr.wrap} ${nr.is_accessible?"":lr.warpStyle}`,Ar),key:pa,style:{width:Lr,marginRight:(1+Pi)%qt===0?0:Fn+Ti,marginBottom:Gr}},re.createElement("a",{className:lr.li,onClick:Ba=>{Ba.preventDefault(),ci&&(0,Rt.L9)([ci]),(0,Rt.xg)(nr.first_category_url)}},re.createElement("div",{className:lr.creator},re.createElement("img",{className:lr.img,src:Nt.Z.IMG_SERVER+"/images/"+nr.avatar_url}),re.createElement("div",{className:lr.text,title:nr.creator},nr.creator)),re.createElement("div",{className:lr.top},re.createElement(Re.Z,{title:nr.name},re.createElement("div",{className:lr.name},nr.name)),Na&&re.createElement("div",{className:lr.sign})),re.createElement("div",{className:lr.middle},re.createElement("div",{className:lr.row,style:{marginBottom:6}},re.createElement("div",null,re.createElement("span",{className:lr.text},"\u8BBF\u95EE\u91CF"),re.createElement("span",{className:lr.value},(nr==null?void 0:nr.visits)||0)),re.createElement("div",null,re.createElement("span",{className:lr.text},"\u6210\u5458"),re.createElement("span",{className:lr.value},(nr==null?void 0:nr.course_members_count)||0))),re.createElement("div",{className:lr.row},re.createElement("div",null,re.createElement("span",{className:lr.text,style:{width:42}},"\u4F5C",re.createElement("span",{style:{marginLeft:14}},"\u4E1A")),re.createElement("span",{className:lr.value},(nr==null?void 0:nr.tasks_count)||0)),re.createElement("div",null,re.createElement("span",{className:lr.text},"\u72B6\u6001"),nr.is_end?re.createElement("span",{className:lr.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):re.createElement("span",{className:lr.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),ua&&re.createElement("div",{className:lr.btns},re.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),re.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!nr.is_accessible&&re.createElement("div",{className:lr.lockWrap},re.createElement("img",{src:`${Nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),re.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Wt.length&&re.createElement(Vt.Z,null)))},ca={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},li=de(35973),Li=({dataSource:zt=[],value:Wt,onChange:qt,className:Fn,style:Gr={},tabBarExtraContent:Ti})=>re.createElement("div",{className:Ee()(ca.tabs,Fn),style:Gr},re.createElement("div",{className:ca.tabsWrap},zt.map((In,Ar)=>re.createElement("aside",{className:ca.tab,onClick:()=>{qt(In.id),In.link&&li.history.push(In.link)},key:Ar},re.createElement("div",{className:Wt===In.id?ca.active:""},In.name),(In==null?void 0:In.resetCount)==null&&(In==null?void 0:In.total)!==void 0&&re.createElement("span",null,"\uFF08",In==null?void 0:In.total,"\uFF09"),(In==null?void 0:In.resetCount)!==void 0&&(In==null?void 0:In.total)!==void 0&&re.createElement(Re.Z,{title:(In==null?void 0:In.tip)!=null?In==null?void 0:In.tip:""},re.createElement("span",{style:{color:"#9096A3"}},"\uFF08",re.createElement("span",{style:{color:"#000"}},In==null?void 0:In.resetCount),"/",re.createElement("span",null,In==null?void 0:In.total),"\uFF09"))))),re.createElement("div",{className:ca.tabBar},Ti)),oi={flex_box_center:"flex_box_center___itkVp",flex_space_between:"flex_space_between___F4yZx",flex_box_vertical_center:"flex_box_vertical_center___ko4cu",flex_box_center_end:"flex_box_center_end___cCBYR",flex_box_column:"flex_box_column___Mpq6K",tabs:"tabs___qRAhL",tabsWrap:"tabsWrap___CGRvS",tab:"tab___eYne_",active:"active___swSx6"},Aa=({dataSource:zt=[],value:Wt,onChange:qt,className:Fn,style:Gr={},tabBarExtraContent:Ti})=>re.createElement("div",{className:Ee()(oi.tabs,Fn),style:Gr},re.createElement("div",{className:oi.tabsWrap},zt.map((In,Ar)=>re.createElement("aside",{className:oi.tab,onClick:()=>{qt(In.id),In.link&&li.history.push(In.link)},key:Ar},re.createElement("div",{className:Wt===In.id?oi.active:""},In.name),(In==null?void 0:In.resetCount)==null&&(In==null?void 0:In.total)!==void 0&&re.createElement("span",null,"\uFF08",In==null?void 0:In.total,"\uFF09"),(In==null?void 0:In.resetCount)!==void 0&&(In==null?void 0:In.total)!==void 0&&re.createElement(Re.Z,{title:(In==null?void 0:In.tip)!=null?In==null?void 0:In.tip:""},re.createElement("span",{style:{color:"#9096A3"}},"\uFF08",re.createElement("span",{style:{color:"#000"}},In==null?void 0:In.resetCount),"/",re.createElement("span",null,In==null?void 0:In.total),"\uFF09"))))),re.createElement("div",{className:oi.tabBar},Ti)),Ka={flex_box_center:"flex_box_center___uWCU1",flex_space_between:"flex_space_between___pKZJo",flex_box_vertical_center:"flex_box_vertical_center___NKr7Z",flex_box_center_end:"flex_box_center_end___ycaEu",flex_box_column:"flex_box_column___dDKjA",tabs:"tabs___cNVh5",tabsWrap:"tabsWrap___IJpOg",tab:"tab___fitSZ",active:"active___LBYdH"},va=({dataSource:zt=[],value:Wt,onChange:qt,className:Fn,style:Gr={},tabBarExtraContent:Ti})=>re.createElement("div",{className:Ee()(Ka.tabs,Fn),style:Gr},re.createElement("div",{className:Ka.tabsWrap},zt.map((In,Ar)=>re.createElement("aside",{className:`${Ka.tab} ${Wt===In.id?Ka.active:""}`,onClick:()=>{qt(In.id),In.link&&li.history.push(In.link)},key:Ar},re.createElement("div",null,In.name),(In==null?void 0:In.resetCount)==null&&(In==null?void 0:In.total)!==void 0&&re.createElement("span",null,"\uFF08",In==null?void 0:In.total,"\uFF09"),(In==null?void 0:In.resetCount)!==void 0&&(In==null?void 0:In.total)!==void 0&&re.createElement(Re.Z,{title:(In==null?void 0:In.tip)!=null?In==null?void 0:In.tip:""},re.createElement("span",{style:{color:"#9096A3"}},"\uFF08",re.createElement("span",{style:{color:"#000"}},In==null?void 0:In.resetCount),"/",re.createElement("span",null,In==null?void 0:In.total),"\uFF09"))))),re.createElement("div",{className:Ka.tabBar},Ti)),ja=({className:zt,style:Wt={},children:qt})=>re.createElement("div",{className:Ee()(zt),style:Wt},qt),wa={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Qn=de(85418),Ri=de(68508);const Ms=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Oo=({sortValue:zt,dropValue:Wt,className:qt,onSort:Fn,onDrop:Gr,dataSource:Ti=Ms})=>{var In;return re.createElement("div",{className:Ee()(wa.orderWrap,qt)},re.createElement(Qn.Z,{dropdownRender:()=>re.createElement(Ri.default,null,Ti.map((Ar,ci)=>re.createElement(Ri.default.Item,{key:ci,onClick:()=>Gr(Ar.id)},Ar.name)))},re.createElement("span",{className:wa.orderTextWrap},(In=Ti.find(Ar=>Wt===Ar.id))==null?void 0:In.name)),re.createElement("span",{className:wa.orderIconWrap},re.createElement("span",{className:wa.orderAsc},re.createElement("i",{className:zt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${wa.cursorPointer} ${wa.active}`:`iconfont icon-sanjiaoxing-up font12 ${wa.cursorPointer}`,onClick:()=>Fn(zt==="asc"?"desc":"asc")})),re.createElement("span",{className:wa.orderDesc},re.createElement("i",{className:zt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${wa.cursorPointer} ${wa.active}`:`iconfont icon-sanjiaoxing-down font12 ${wa.cursorPointer}`,onClick:()=>Fn(zt==="asc"?"desc":"asc")}))))},io={flex_box_center:"flex_box_center___JJ9sS",flex_space_between:"flex_space_between___t8Vfh",flex_box_vertical_center:"flex_box_vertical_center___NXwpW",flex_box_center_end:"flex_box_center_end___d7nF9",flex_box_column:"flex_box_column___RWkXa",orderWrap:"orderWrap___Z6UhI",orderIconWrap:"orderIconWrap___vT5et",orderAsc:"orderAsc___Xrpfj",orderDesc:"orderDesc___FgOA0",active:"active___ryj8i",cursorPointer:"cursorPointer___Gg3bB",orderTextWrap:"orderTextWrap___BAYWJ"};const rl=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var il=({sortValue:zt,dropValue:Wt,className:qt,onSort:Fn,onDrop:Gr,dataSource:Ti=rl})=>{var In;return re.createElement("div",{className:Ee()(io.orderWrap,qt)},re.createElement(Qn.Z,{dropdownRender:()=>re.createElement(Ri.default,null,Ti.map((Ar,ci)=>re.createElement(Ri.default.Item,{key:ci,onClick:()=>Gr(Ar.id)},Ar.name)))},re.createElement("span",{className:io.orderTextWrap},(In=Ti.find(Ar=>Wt===Ar.id))==null?void 0:In.name)),re.createElement("span",{className:io.orderIconWrap},re.createElement("span",{className:io.orderAsc},re.createElement("i",{className:zt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${io.cursorPointer} ${io.active}`:`iconfont icon-sanjiaoxing-up font12 ${io.cursorPointer}`,onClick:()=>Fn(zt==="asc"?"desc":"asc")})),re.createElement("span",{className:io.orderDesc},re.createElement("i",{className:zt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${io.cursorPointer} ${io.active}`:`iconfont icon-sanjiaoxing-down font12 ${io.cursorPointer}`,onClick:()=>Fn(zt==="asc"?"desc":"asc")}))))},zn={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v",ThemeOne:"ThemeOne___iCQio"},wo=de(71577),Ro=de(52810),_s=Object.defineProperty,gs=Object.getOwnPropertySymbols,Uo=Object.prototype.hasOwnProperty,is=Object.prototype.propertyIsEnumerable,Ks=(zt,Wt,qt)=>Wt in zt?_s(zt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):zt[Wt]=qt,Eo=(zt,Wt)=>{for(var qt in Wt||(Wt={}))Uo.call(Wt,qt)&&Ks(zt,qt,Wt[qt]);if(gs)for(var qt of gs(Wt))is.call(Wt,qt)&&Ks(zt,qt,Wt[qt]);return zt},jo=(zt,Wt)=>{var qt={};for(var Fn in zt)Uo.call(zt,Fn)&&Wt.indexOf(Fn)<0&&(qt[Fn]=zt[Fn]);if(zt!=null&&gs)for(var Fn of gs(zt))Wt.indexOf(Fn)<0&&is.call(zt,Fn)&&(qt[Fn]=zt[Fn]);return qt},Oa=(zt,Wt,qt)=>new Promise((Fn,Gr)=>{var Ti=ci=>{try{Ar(qt.next(ci))}catch(Ki){Gr(Ki)}},In=ci=>{try{Ar(qt.throw(ci))}catch(Ki){Gr(Ki)}},Ar=ci=>ci.done?Fn(ci.value):Promise.resolve(ci.value).then(Ti,In);Ar((qt=qt.apply(zt,Wt)).next())}),Bl=zt=>{var Wt=zt,{className:qt,style:Fn,children:Gr,loading:Ti=!1,openLoading:In,onClick:Ar=()=>{},size:ci="middle",shape:Ki="round",theme:Lr}=Wt,nr=jo(Wt,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[Pi,ua]=(0,re.useState)(!1),pa=(0,re.useMemo)(()=>{switch(Lr){case Ro.Fy.THEMEONE:return zn.ThemeOne;case Ro.Fy.DEFAULT:default:return zn.btn}},[Lr]);return re.createElement(wo.ZP,Eo({onClick:(0,ye.throttle)(mi=>Oa(void 0,null,function*(){In&&ua(!0);try{yield Ar(mi)}catch(ri){console.log("error",ri)}In&&ua(!1)}),2e3,{leading:!0,trailing:!1}),className:Ee()(pa,zn[`${ci}-${Ki}`],qt),style:Fn,size:ci,shape:Ki,loading:Pi||Ti},nr),Gr)},vs={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},es=({className:zt,style:Wt,children:qt=null,onClick:Fn,title:Gr})=>re.createElement("div",{className:Ee()(vs.head,zt),style:Wt},re.createElement("span",{className:"primary-hover",onClick:Fn},re.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),re.createElement("b",{title:Gr},Gr),re.createElement("div",{className:vs.node},qt)),$a={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Xs=({confirmShow:zt=!0,confirmTitle:Wt,confirmClick:qt,cancelShow:Fn=!0,cancelTitle:Gr,cancelClick:Ti,className:In,style:Ar,confirmLoading:ci=!1})=>re.createElement("div",{className:Ee()($a.btns,In),style:Ar},zt&&re.createElement(wo.ZP,{loading:ci,onClick:qt,type:"primary",className:$a.confirm},Wt),Fn&&re.createElement(wo.ZP,{onClick:Ti,className:$a.cancel},Gr)),as={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},os=({className:zt,style:Wt={},LeftContent:qt,children:Fn,RightContent:Gr})=>re.createElement("div",{className:Ee()(as.fixedBottom,zt),style:Wt},re.createElement("div",{className:as.wrap},re.createElement("div",{className:as.left},qt),re.createElement("div",{className:as.center},Fn),re.createElement("div",{className:as.right},Gr))),ss={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},qs=({className:zt,style:Wt={},dataSource:qt=[]})=>re.createElement("div",{className:Ee()(ss.crumbs,zt),style:Wt},qt.map((Fn,Gr)=>Gr<qt.length-1?re.createElement(re.Fragment,{key:Gr},Fn.path||Fn.onClick?re.createElement("span",{className:ss.hover,onClick:Fn!=null&&Fn.onClick?Fn.onClick:()=>li.history.push(Fn.path)},Fn.name):re.createElement("span",null,Fn.name),re.createElement("span",null,"\xA0",">","\xA0")):re.createElement("span",{key:Gr,style:{color:"#5F6368"}},Fn.name))),Ga=de(55054),ls=Object.defineProperty,Wo=Object.defineProperties,ys=Object.getOwnPropertyDescriptors,Ds=Object.getOwnPropertySymbols,Fs=Object.prototype.hasOwnProperty,bs=Object.prototype.propertyIsEnumerable,Go=(zt,Wt,qt)=>Wt in zt?ls(zt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):zt[Wt]=qt,Te=(zt,Wt)=>{for(var qt in Wt||(Wt={}))Fs.call(Wt,qt)&&Go(zt,qt,Wt[qt]);if(Ds)for(var qt of Ds(Wt))bs.call(Wt,qt)&&Go(zt,qt,Wt[qt]);return zt},Ue=(zt,Wt)=>Wo(zt,ys(Wt)),tn=(zt,Wt)=>{var qt={};for(var Fn in zt)Fs.call(zt,Fn)&&Wt.indexOf(Fn)<0&&(qt[Fn]=zt[Fn]);if(zt!=null&&Ds)for(var Fn of Ds(zt))Wt.indexOf(Fn)<0&&bs.call(zt,Fn)&&(qt[Fn]=zt[Fn]);return qt};const{Countdown:we}=Ga.default;var St=zt=>{var Wt=zt,{onChange:qt}=Wt,Fn=tn(Wt,["onChange"]);const[Gr,Ti]=(0,re.useState)(null);(0,re.useEffect)(()=>{typeof Gr=="number"&&Gr>=0&&qt(Gr)},[Gr]);const In=Ar=>{const ci=Math.floor(Ar/1e3);Ti(ci)};return re.createElement(we,Ue(Te({},Fn),{onChange:In}))},Qt={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},Cn=({DataProps:zt,className:Wt,style:qt={}})=>{var Fn;return re.createElement("div",{className:Ee()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",Qt.ClassRoomItem,Wt),style:qt,onClick:()=>{(0,Rt.xg)(zt==null?void 0:zt.first_category_url)}},re.createElement("div",{className:"flex flex-col item-center"},re.createElement("img",{src:`${(Fn=Nt.Z)==null?void 0:Fn.IMG_SERVER}/images/${zt==null?void 0:zt.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(zt==null?void 0:zt.subject_identifier)&&re.createElement("div",{className:"mt-40px"},re.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),re.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),re.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},re.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(zt!=null&&zt.is_public)&&re.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),re.createElement("span",{className:Ee()("text-16px font-medium",Qt.TitleDom)},zt==null?void 0:zt.name)),re.createElement("div",{className:"c-grey-333 font-medium"},zt==null?void 0:zt.creator),re.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",zt==null?void 0:zt.course_members_count),re.createElement("div",{className:"c-grey-333 flex item-center justify-between"},re.createElement("div",null,"\u4F5C\u4E1A\uFF1A",zt==null?void 0:zt.tasks_count),zt!=null&&zt.is_end?re.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):re.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},Ln=Object.defineProperty,Mn=Object.getOwnPropertySymbols,gn=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,bn=(zt,Wt,qt)=>Wt in zt?Ln(zt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):zt[Wt]=qt,An=(zt,Wt)=>{for(var qt in Wt||(Wt={}))gn.call(Wt,qt)&&bn(zt,qt,Wt[qt]);if(Mn)for(var qt of Mn(Wt))Jt.call(Wt,qt)&&bn(zt,qt,Wt[qt]);return zt},zr=({DataProps:zt=[],selectValue:Wt,onChange:qt,className:Fn,style:Gr={},extra:Ti,classNameItem:In,styleItem:Ar={},barHidden:ci})=>{const[Ki,Lr]=(0,re.useState)();return(0,re.useEffect)(()=>{Lr(Array.isArray(Wt)?Wt:[Wt])},[Wt]),re.createElement("div",{className:Ee()("flex px-20px py-10px gap-40px",Fn),style:An({borderBottom:"1px solid #D3F0FF"},Gr)},zt==null?void 0:zt.map(nr=>re.createElement("div",{key:nr==null?void 0:nr.id,className:Ee()("flex item-center justify-center current c-grey-333 text-16 relative",In,nr==null?void 0:nr.className),style:An(An({color:Ki!=null&&Ki.includes(nr==null?void 0:nr.id)?"#1890FF":"",minWidth:88},Ar),(nr==null?void 0:nr.style)||{}),onClick:Pi=>{qt==null||qt({domEvent:Pi,item:nr}),nr!=null&&nr.link&&li.history.push(nr==null?void 0:nr.link)}},nr==null?void 0:nr.name,!ci&&(Ki==null?void 0:Ki.includes(nr==null?void 0:nr.id))&&re.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),re.createElement("div",{className:"ml-auto"},Ti))},ei=Object.defineProperty,_i=Object.defineProperties,Mi=Object.getOwnPropertyDescriptors,ta=Object.getOwnPropertySymbols,la=Object.prototype.hasOwnProperty,Ta=Object.prototype.propertyIsEnumerable,Ma=(zt,Wt,qt)=>Wt in zt?ei(zt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):zt[Wt]=qt,Wa=(zt,Wt)=>{for(var qt in Wt||(Wt={}))la.call(Wt,qt)&&Ma(zt,qt,Wt[qt]);if(ta)for(var qt of ta(Wt))Ta.call(Wt,qt)&&Ma(zt,qt,Wt[qt]);return zt},Sa=(zt,Wt)=>_i(zt,Mi(Wt)),ao=({value:zt,onChange:Wt,onInputChange:qt,className:Fn,style:Gr={},InputProps:Ti})=>{const[In,Ar]=(0,re.useState)(zt);return re.createElement("div",{className:Ee()("flex item-center rounded-full px-10px py-2px",Fn),style:Wa({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},Gr)},re.createElement(Ot.default,Sa(Wa({bordered:!1},Ti),{onChange:ci=>{Ar(ci.target.value),qt==null||qt(encodeURIComponent(ci.target.value))},onPressEnter:ci=>{Wt==null||Wt({domEvent:ci,item:{value:In}})}})),re.createElement("img",{className:"h-22px current",src:de(25365),height:22,onClick:ci=>{Wt==null||Wt({domEvent:ci,item:{value:In}})}}))}},99914:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return xe}});var re=de(67294);function xe(tt,At){const Pe=(0,re.useRef)();(0,re.useEffect)(()=>{Pe.current=tt}),(0,re.useEffect)(()=>{function Ne(){Pe.current()}if(At!==null){let je=setInterval(Ne,At);return()=>clearInterval(je)}},[At])}},96707:function(cn,yn,de){"use strict";de.d(yn,{h:function(){return re}});var re=(xe=>(xe[xe.NOMATCH=-1]="NOMATCH",xe[xe.OK=0]="OK",xe[xe.TIMEOUT=2]="TIMEOUT",xe[xe.PODFAILURE=3]="PODFAILURE",xe[xe.COMPILEFAILURE=4]="COMPILEFAILURE",xe[xe.EXECUTEFAILURE=5]="EXECUTEFAILURE",xe[xe.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",xe))(re||{})},88742:function(cn,yn,de){"use strict";de.d(yn,{H7:function(){return Xe},MK:function(){return kt},MU:function(){return qe},X6:function(){return he},bM:function(){return ye},fi:function(){return ft},fu:function(){return Ee},n4:function(){return Ze},rX:function(){return gt},vl:function(){return Je},zO:function(){return it}});var re=de(33170),xe=Object.defineProperty,tt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,Ne=(et,Ye,We)=>Ye in et?xe(et,Ye,{enumerable:!0,configurable:!0,writable:!0,value:We}):et[Ye]=We,je=(et,Ye)=>{for(var We in Ye||(Ye={}))At.call(Ye,We)&&Ne(et,We,Ye[We]);if(tt)for(var We of tt(Ye))Pe.call(Ye,We)&&Ne(et,We,Ye[We]);return et};function Ee(et,Ye){return(0,re.U2)(`myproblems/${et}.json`,je({hidePopLogin:!0},Ye||{}))}function ye(et,Ye){return(0,re.v_)(`myproblems/${et}/code_submit.json`,Ye)}function qe(et,Ye){return(0,re.v_)(`myproblems/${et}/code_debug.json`,Ye)}function it(et,Ye){return Ye.language&&(Ye.language=encodeURIComponent(Ye.language)),(0,re.U2)(`myproblems/${et}/submit_records.json`,Ye)}function he(et){return(0,re.U2)("myproblems/record_detail.json",{id:et})}function gt(et,Ye){return(0,re.U2)(`myproblems/${et}/result.json`,{mode:Ye})}function kt(et,Ye){return(0,re.v_)(`myproblems/${et}/add_notes.json`,Ye)}function Xe(et,Ye){return(0,re.v_)(`myproblems/${et}/restore_initial_code.json`,Ye)}function ft(et){return(0,re.v_)(`myproblems/${et}/sync_code.json`)}function Ze(et,Ye){return(0,re.v_)(`myproblems/${et}/update_code.json`,Ye)}function Je(et,Ye){return(0,re.v_)(`discusses/${et}/plus.json`,Ye)}},44048:function(cn,yn,de){"use strict";de.d(yn,{D0:function(){return je},R8:function(){return At},jw:function(){return Ne},y3:function(){return Ee}});var re=de(11713),xe=de(67294);const{Option:tt}=re.default;var At=(ye=>(ye[ye.language=0]="language",ye[ye.difficult=1]="difficult",ye[ye.category=2]="category",ye[ye.openOrNot=3]="openOrNot",ye))(At||{});const Pe={0:[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],1:[{title:"\u7B80\u5355",key:1},{title:"\u4E2D\u7B49",key:2},{title:"\u56F0\u96BE",key:3}],2:[{title:"\u7A0B\u5E8F\u8BBE\u8BA1",key:1},{title:"\u7B97\u6CD5",key:2}],3:[{title:"\u516C\u5F00",key:1},{title:"\u79C1\u6709",key:0}]};function Ne(ye){return Pe[ye].map(qe=>xe.createElement(tt,{key:qe.title,value:qe.key}," ",qe.title," "))}function je(ye,qe){ye.map(it=>{const{id:he,name:gt,sub_disciplines:kt}=it;let Xe={value:he,label:gt};qe.push(Xe),kt&&kt.length>0&&(Xe.children=[],je(kt,Xe.children))})}function Ee(ye,qe){var it;let he=[];for(let gt=0;gt<ye.length;gt++){const kt=ye[gt];if(((it=kt.sub_disciplines)==null?void 0:it.length)>0){he[0]=kt.id;for(let Xe=0;Xe<kt.sub_disciplines.length;Xe++){const ft=kt.sub_disciplines[Xe];if(ft.id===qe)return he[1]=ft.id,[he,ft.tag_disciplines||ft.sub_disciplines||[]]}}}return[he,[]]}},86137:function(cn,yn,de){"use strict";de.r(yn),de.d(yn,{default:function(){return vt}});var re=de(67294),xe=de(35973),tt=de(22150),At=de(2453),Pe=de(14446),Ne=de(85673),je=de(78045),Ee=de(71230),ye=de(85546),qe=de(11713),it=de(48305),he=de(83062),gt=de(59810),kt=de(9430),Xe=de(71577),ft=de(11320),Ze={bgWrapper:"bgWrapper___yZrnF",bg:"bg___DMAyj",main:"main___l1oS8",addTypeRadio:"addTypeRadio___eH2zI",formWrap:"formWrap___ydPvR",questionTypeRadio:"questionTypeRadio___jQze1",difficultyWrapper:"difficultyWrapper___W9ML_",cascaderWrapper:"cascaderWrapper___AUd1O",courseCascader:"courseCascader___UEeI3",knowledgeWrapper:"knowledgeWrapper___sIao8",treeWrapper:"treeWrapper___t5heq",uploadTips:"uploadTips___v_XSU",uploadTipsIcon:"uploadTipsIcon___gfQUD",downloadBtn:"downloadBtn___BqNPb",uploadBtn:"uploadBtn___p7bAk",buttonFixed:"buttonFixed___j1UZJ",buttonWrap:"buttonWrap___FfqsJ",button:"button___TuRr2",topicWrap:"topicWrap___v5_lJ",cascaderPopup:"cascaderPopup___nXZ4B",unfold:"unfold____IJ2y"},Je=de(30351),et=de(28706),Ye=de(4069),We=de(17663),$e=de(33170),lt=de(38478),Tt=de(44048),_t=de(19575),Ot=de(38244),st=de(67294),ct=Object.defineProperty,He=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,wt=(nt,Vt,un)=>Vt in nt?ct(nt,Vt,{enumerable:!0,configurable:!0,writable:!0,value:un}):nt[Vt]=un,Mt=(nt,Vt)=>{for(var un in Vt||(Vt={}))Qe.call(Vt,un)&&wt(nt,un,Vt[un]);if(Ve)for(var un of Ve(Vt))Fe.call(Vt,un)&&wt(nt,un,Vt[un]);return nt},jt=(nt,Vt)=>He(nt,pt(Vt)),Re=(nt,Vt,un)=>new Promise((Ut,fn)=>{var en=Ce=>{try{_n(un.next(Ce))}catch(se){fn(se)}},En=Ce=>{try{_n(un.throw(Ce))}catch(se){fn(se)}},_n=Ce=>Ce.done?Ut(Ce.value):Promise.resolve(Ce.value).then(en,En);_n((un=un.apply(nt,Vt)).next())});const Le=nt=>nt==="SINGLE"||nt==="MULTIPLE"?"SELECT":nt,Nt=nt=>nt.map(Vt=>jt(Mt({},Vt),{is_answer:Vt.is_answer?1:0})),Rt=({form:nt,currentItemType:Vt,editId:un})=>({SELECT:st.createElement(Je.uh,{form:nt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",titleKey:"name",choiceKey:"choices",analysisKey:"analysis",choiceOptionsPath:"choices",choiceTextKey:"choice_text",answerKey:"is_answer",allowChangeMode:!0}),JUDGMENT:st.createElement(Je.ZZ,{form:nt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",choiceKey:"choices"}),COMPLETION:st.createElement(Je.u8,{form:nt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:!1,answerKey:"standard_answers"}),SUBJECTIVE:st.createElement(Je.Wk,{showKeywords:!0,isMustKeyWords:!1,form:nt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"}),COMBINATION:st.createElement(Je.rL,{form:nt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7EC4\u5408\u9898\u9898\u5E72\u5185\u5BB9",choiceKey:"choices",withScore:!1}),BPROGRAM:st.createElement(Je.tc,{form:nt,hackidentifier:un,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,answerKey:"standard_answers"})})[Vt]||null,Yt=({problemset:nt,loading:Vt,dispatch:un})=>{var Ut,fn,en,En;const _n=(0,xe.useParams)(),[Ce]=(0,xe.useSearchParams)(),[se]=tt.default.useForm(),[ue,ge]=(0,re.useState)(),[pe,le]=(0,re.useState)([]),ze=(0,re.useRef)(),[bt,Pt]=(0,re.useState)(1),[mn,ln]=(0,re.useState)([]),[Xt,Kt]=(0,re.useState)(),[sr,mr]=(0,re.useState)(!1),[Gt,rn]=(0,re.useState)(),[Jr,_r]=(0,re.useState)("SELECT"),xr=tt.default.useWatch("knowledge",se),[wr,Ji]=(0,re.useState)([]);(0,re.useEffect)(()=>{Wr()},[]);const Ir=vn=>vn.map(Vn=>({title:Vn.name,value:Vn.group_id,children:Ir(Vn.children)})),Wr=()=>Re(void 0,null,function*(){const vn=yield(0,Ot.NZ)({});if(vn!=null&&vn.data){const Vn=[{title:"\u6839\u76EE\u5F55",value:0,children:Ir(vn.data||[])}];Ji(Vn)}});(0,re.useEffect)(()=>(un({type:"globalSetting/footerToggle",payload:!1}),()=>{un({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,re.useEffect)(()=>(bt===1&&window.addEventListener("beforeunload",si),()=>{window.removeEventListener("beforeunload",si)}),[bt]),(0,re.useEffect)(()=>{const vn=Ce.get("pages");ge(vn);const Vn=_n.id;ze.current=Vn},[]);const Tr=_n.type==="edit";(0,re.useEffect)(()=>{function vn(){return Re(this,null,function*(){const Vn=yield un({type:"problemset/getEditDisciplines",payload:{source:"new_question"}})})}vn(),Ce.get("type")==="1"?ze.current&&un({type:"problemset/getEditDataBprogram",payload:{id:ze.current}}):ze.current&&un({type:"problemset/getEditData",payload:{id:ze.current}})},[]),(0,re.useEffect)(()=>{var vn,Vn,Xr,fi,er,ia;if(!Tr)rn({item_type:"SELECT",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),difficulty:2,item_banks_group_id:[Number(Ce.get("group_id"))||0]});else{if(!(nt!=null&&nt.editData))return;const{discipline:Gi,sub_discipline:Br,sub_discipline_id:lr,tag_disciplines:qr,item_type:xa,choices:vi=[],sub_item_banks:ca=[]}=(nt==null?void 0:nt.editData)||{};if(Ce.get("type")==="1"){if(_r("BPROGRAM"),(vn=nt==null?void 0:nt.disciplinesData)!=null&&vn.disciplines){const[li,wi]=(0,Tt.y3)((Vn=nt==null?void 0:nt.disciplinesData)==null?void 0:Vn.disciplines,lr),Li={item_type:"BPROGRAM",standard_answers:nt.editData.standard_answer,difficulty:nt.editData.difficult,item_banks_group_id:nt.editData.item_banks_group_id,course:li,knowledge:(Xr=nt.editData)==null?void 0:Xr.tag_discipline_ids,hack:Mt({},nt.editData),hack_codes:jt(Mt({},nt.editData),{code:_t.Base64.decode(((fi=nt.editData)==null?void 0:fi.code)||"")}),hack_sets:Mt({},(ia=(er=nt.editData)==null?void 0:er.hack_sets)==null?void 0:ia[0])};rn(Li),lr&&Dn(lr).then(oi=>{})}}else{const li=jt(Mt({},nt==null?void 0:nt.editData),{item_type:Le(xa),choices:Nt(vi),course:[Gi==null?void 0:Gi.id,Br==null?void 0:Br.id],knowledge:qr==null?void 0:qr.map(wi=>wi.id),sub_item_banks:ca.map(wi=>jt(Mt({},wi),{choices:Nt(wi.choices)}))});rn(li),_r(Le(xa)),Br!=null&&Br.id&&Dn(Br==null?void 0:Br.id).then(wi=>{var Li;const oi=wi==null?void 0:wi.map(ir=>ir.id);oi!=null&&oi.includes((Li=qr==null?void 0:qr[0])==null?void 0:Li.id)||le(ir=>[...ir,...qr])})}}},[nt.editData,nt==null?void 0:nt.disciplinesData]);const si=vn=>{vn.preventDefault(),vn.returnValue=""},pi=vn=>{const{course:Vn,knowledge:Xr,difficulty:fi,item_banks_group_id:er}=se.getFieldsValue(),ia={item_type:vn,course:Vn,knowledge:Xr,difficulty:fi,item_banks_group_id:er};switch(se.resetFields(),se.setFieldsValue(ia),_r(vn),vn){case"SELECT":se.setFieldsValue({choices:Array.from({length:4},()=>({choice_text:"",is_answer:0}))});break;case"JUDGMENT":se.setFieldsValue({choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}]});break;case"COMPLETION":se.setFieldsValue({standard_answers:[{position:1,answer_text:[""],model:1}],downcase:!0,no_space:!0});break;case"SUBJECTIVE":se.setFieldsValue({answer_texts:[],use_keywords:!0});break;case"COMBINATION":break;case"PROGRAM":break;case"BPROGRAM":se.setFieldsValue({hack:{time_limit:3,allow_student_debug:!1,submit_rule:1}});break}},Wi=(vn,Vn)=>{var Xr;if(console.log(vn,"changedValues"),vn!=null&&vn.item_type){if((vn==null?void 0:vn.item_type)==="PROGRAM"){const{course:fi,knowledge:er,difficulty:ia,item_banks_group_id:Gi}=se.getFieldsValue();console.log({course:fi,knowledge:er,difficulty:ia,item_banks_group_id:Gi},"resetInitValues"),(0,et.xg)(`/problems/newcreate?discipline_id=${(fi==null?void 0:fi[0])||""}&sub_discipline_id=${(fi==null?void 0:fi[1])||""}&difficult=${ia||""}&banksIds=${Gi||""}&tagIds=${er==null?void 0:er.map(lr=>lr.value).join(",")}`)}pi(vn==null?void 0:vn.item_type)}if(vn!=null&&vn.course){const[fi,er]=vn.course;Dn(er),se.setFieldsValue({knowledge:[]})}if((Xr=vn==null?void 0:vn.hack)!=null&&Xr.sub_discipline_id){const[fi,er]=vn.hack.sub_discipline_id;Dn(er),se.setFieldsValue({hack:{tag_discipline_ids:[]}})}},bi=vn=>{le([...pe,Mt({},vn)])},[kr,an]=(0,re.useState)("");(0,re.useEffect)(()=>{an(new Date)},[se.getFieldValue("course")]);const Nn=()=>Re(void 0,null,function*(){var vn,Vn,Xr,fi;const er=se.getFieldsValue(),ia=li=>{if(!(li!=null&&li.length))return!1;const wi=li.map(oi=>{var ir;return(ir=oi.choice_text)==null?void 0:ir.trim().replace(/^\s+|\s+$/g,"")});return new Set(wi).size!==wi.length};if(er.item_type==="SELECT"&&ia(er.choices)){At.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}if(er.item_type==="COMBINATION"&&((vn=er.sub_item_banks)==null?void 0:vn.some(wi=>wi.item_type==="SINGLE"||wi.item_type==="MULTIPLE"?ia(wi.choices):!1))){At.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}(er==null?void 0:er.item_type)=="COMPLETION"&&er.is_ordered==null&&(er.is_ordered=!0);let{course:Gi=[],item_type:Br,item_banks_group_id:lr,knowledge:qr=[],choices:xa}=er||{};const[vi,ca]=Gi;if(bt===1){if(Br==="PROGRAM"){(0,et.xg)("/problems/newcreate");return}let li=[];(qr==null?void 0:qr.length)>0&&((Vn=qr==null?void 0:qr[0])!=null&&Vn.value?qr==null||qr.map(ir=>{li.push(ir==null?void 0:ir.value)}):li=qr);const wi=Array.isArray(lr)?lr:[lr];if(Br==="BPROGRAM"){let ir=jt(Mt({},er),{knowledge:li,item_banks_group_ids:wi,hack:jt(Mt({},er==null?void 0:er.hack),{sub_discipline_id:ca,difficult:er.difficulty,item_banks_group_ids:wi,tag_discipline_ids:li}),hack_codes:jt(Mt({},er.hack_codes),{code:_t.Base64.encode(er.hack_codes.code)}),hack_sets:[Mt({},er.hack_sets)],update_hack_sets:[Mt({},er.hack_sets)],is_blank:!0});console.log(ir,"datas"),Tr||sessionStorage.projectFill?(yield(0,$e.ZP)(`/api/problems/${ze.current||sessionStorage.projectFill}.json`,{method:"put",body:Mt({},ir)})).status===0&&xe.history.replace(`/problemset?tabs_key=${Ce.get("tabs_key")||"0"}${Ce.get("tabs_key")!=="3"?`&group_id=${er.item_banks_group_id}`:""}&page=${Ce.get("page")}`):(yield(0,$e.ZP)("/api/problems.json",{method:"post",body:Mt({},ir)})).status===0&&Pe.default.confirm({title:"\u63D0\u793A",centered:!0,icon:null,content:"\u8BD5\u9898\u65B0\u589E\u6210\u529F",okText:"\u7EE7\u7EED\u65B0\u589E",cancelText:"\u8FD4\u56DE\u5217\u8868",onOk(){pi(Jr)},onCancel(){xe.history.replace(`/problemset?group_id=${lr}`)}});return}if(Br==="SELECT"&&(Br=xa.filter(ir=>ir.is_answer===1).length>1?"MULTIPLE":"SINGLE"),Br==="COMBINATION"){let{sub_item_banks:ir}=er||{};er.sub_item_banks=ir==null?void 0:ir.map(Aa=>Mt({},Aa))}const Li=jt(Mt({},er),{discipline_id:vi,sub_discipline_id:ca,item_banks_group_ids:wi,tag_discipline_ids:li,knowledge:li,item_type:Br});let oi;Tr?oi=yield un({type:"problemset/editProblemset",payload:jt(Mt({},Li),{id:ze.current})}):oi=yield un({type:"problemset/addProblemset",payload:Li}),oi.status===0&&(Tr?xe.history.replace(`/problemset?tabs_key=${Ce.get("tabs_key")||"0"}${Ce.get("tabs_key")!=="3"?`&group_id=${lr}`:""}&page=${Ce.get("page")}`):Pe.default.confirm({title:"\u63D0\u793A",centered:!0,icon:null,content:"\u8BD5\u9898\u65B0\u589E\u6210\u529F",okText:"\u7EE7\u7EED\u65B0\u589E",cancelText:"\u8FD4\u56DE\u5217\u8868",onOk(){pi(Jr)},onCancel(){xe.history.replace(`/problemset?group_id=${lr}`)}}))}else{if((mn==null?void 0:mn.length)<=0){At.ZP.info("\u8BF7\u4E0A\u4F20\u8BD5\u9898\u6587\u4EF6");return}mr(!0);const li=new FormData;li.append("file",mn[0]),li.append("sub_discipline_id",ca);const wi=yield(0,$e.ZP)("/api/item_banks/file_import.json",{method:"post",body:li},!0);if(mr(!1),(wi==null?void 0:wi.status)===0){if(((Xr=wi==null?void 0:wi.fail)==null?void 0:Xr.length)>0){Kt(wi==null?void 0:wi.fail),At.ZP.error("\u4E0A\u4F20\u5931\u8D25\u9898\u6570\u4E3A"+((fi=wi==null?void 0:wi.fail)==null?void 0:fi.length)+"\uFF0C\u53EF\u5728\u5E95\u90E8\u8BD5\u9898\u5217\u8868\u67E5\u770B\u9519\u8BEF\u539F\u56E0\u3002");return}se.setFieldsValue({course:[]}),ln([]),Kt([]),At.ZP.info("\u4E0A\u4F20\u6210\u529F")}}}),On=vn=>Re(void 0,null,function*(){var Vn,Xr,fi,er,ia;vn.errorFields[0].name.includes("standard_answers")?((fi=(Xr=(Vn=vn==null?void 0:vn.errorFields)==null?void 0:Vn[0])==null?void 0:Xr.errors)==null?void 0:fi[0])==="\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"?((0,et.pE)(),At.ZP.error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879")):At.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):At.ZP.error(vn.errorFields[0].errors[0]),se.scrollToField((ia=(er=vn==null?void 0:vn.errorFields)==null?void 0:er[0])==null?void 0:ia.name,{behavior:"smooth",block:"center"})}),Dn=vn=>Re(void 0,null,function*(){const Vn=yield un({type:"exercise/getTagDiscipline",payload:{sub_discipline_id:vn}});return le(Vn.tag_disciplines),Vn==null?void 0:Vn.tag_disciplines}),Mr=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",key:"name"},{title:"\u9519\u8BEF\u539F\u56E0",dataIndex:"message",key:"message"}];return st.createElement("div",{className:Ze.bgWrapper},st.createElement("section",{className:Ze.bg},st.createElement(Ne.Z,{className:"mb20",separator:">"},st.createElement(Ne.Z.Item,{href:"/problemset"},"\u8BD5\u9898\u5E93"),st.createElement(Ne.Z.Item,null,Tr?"\u7F16\u8F91":"\u65B0\u589E","\u8BD5\u9898")),st.createElement("div",{className:Ze.main},!Tr&&st.createElement(je.ZP.Group,{className:Ze.addTypeRadio,optionType:"button",options:[{label:"\u5355\u4E2A\u6DFB\u52A0",value:1},{label:"\u6279\u91CF\u5BFC\u5165",value:2},{label:st.createElement("div",null,st.createElement("img",{width:26,style:{position:"absolute",top:-5},src:lt.$}),st.createElement("span",null,"\u667A\u80FD\u5BFC\u5165")),value:3}],onChange:vn=>{Pt(vn.target.value),ln([]),Kt([])},value:bt}),bt===1&&Gt&&st.createElement(tt.default,{form:se,className:Ze.formWrap,layout:"horizontal",colon:!1,onValuesChange:Wi,onFinish:Nn,onFinishFailed:On,initialValues:Gt},st.createElement(tt.default.Item,{label:"\u8BD5\u9898\u7C7B\u578B",name:"item_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9898\u578B"}]},st.createElement(je.ZP.Group,{disabled:Tr,optionType:"button",className:Ze.questionTypeRadio,options:[{label:"\u9009\u62E9\u9898",value:"SELECT"},{label:"\u5224\u65AD\u9898",value:"JUDGMENT"},{label:"\u586B\u7A7A\u9898",value:"COMPLETION"},{label:"\u7B80\u7B54\u9898",value:"SUBJECTIVE"},{label:"\u7F16\u7A0B\u9898",value:"PROGRAM"},{label:"\u7EC4\u5408\u9898",value:"COMBINATION"},{label:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM"}]})),st.createElement("div",{style:{display:Jr==="PROGRAM"?"none":"flex",background:"#F6F7F9",alignItems:"center",padding:"27px 20px"}},st.createElement(Ee.Z,{align:"middle"},st.createElement(tt.default.Item,{label:"\u77E5\u8BC6\u70B9",labelCol:{flex:"62px"},className:Ze.cascaderWrapper,name:"course"},st.createElement(ye.Z,{className:Ze.courseCascader,popupClassName:Ze.cascaderPopup,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14},showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",allowClear:!0,options:nt.courseOptions,style:{width:177},onChange:vn=>{vn||se.setFieldsValue({knowledge:[]})}})),st.createElement(tt.default.Item,{label:"",name:"knowledge",className:"mb0"},st.createElement(Ye.N,{key:kr,height:260,selectvalues:xr,subId:((Ut=se.getFieldsValue().course)==null?void 0:Ut[1])||((En=(en=(fn=se.getFieldsValue())==null?void 0:fn.hack)==null?void 0:en.sub_discipline_id)==null?void 0:En[1]),knowledgeOptions:pe,onAddKnowledgeFinish:bi,className:Ze.knowledgeWrapper}))),st.createElement(tt.default.Item,{name:"difficulty",label:"\u96BE\u5EA6",className:Ze.difficultyWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},st.createElement(qe.default,{style:{width:120,height:46}},st.createElement(qe.default.Option,{value:1},"\u7B80\u5355"),st.createElement(qe.default.Option,{value:2},"\u9002\u4E2D"),st.createElement(qe.default.Option,{value:3},"\u56F0\u96BE"))),st.createElement(tt.default.Item,{label:"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55",className:Ze.difficultyWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"item_banks_group_id",style:{marginLeft:"auto"}},st.createElement(it.default,{style:{width:270},treeDefaultExpandedKeys:[0],placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",popupClassName:Ze.treeWrapper,treeData:wr}))),st.createElement("div",{className:Ze.topicWrap},st.createElement(Rt,{editId:ze.current,currentItemType:Jr,form:se}))),bt===2&&st.createElement("div",null,st.createElement(tt.default,{form:se,className:Ze.formWrap,layout:"vertical",onValuesChange:Wi,onFinish:Nn},st.createElement(tt.default.Item,{className:Ze.cascaderWrapper,label:"\u65B9\u5411&\u8BFE\u7A0B\uFF1A",name:"course",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"}]},st.createElement(ye.Z,{className:Ze.courseCascader,popupClassName:Ze.cascaderPopup,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14},placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",showArrow:!0,allowClear:!1,options:nt.courseOptions,style:{width:490}})),st.createElement("div",{className:"mb30"},st.createElement("span",{className:Ze.uploadTips},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898",st.createElement(he.Z,{title:st.createElement("div",null,st.createElement("div",null,"\u63D0\u793A:"),st.createElement("div",null,"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B"),st.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),st.createElement("div",null,"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),st.createElement("div",null,"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))},st.createElement(We.Z,{className:Ze.uploadTipsIcon}))),st.createElement("a",{className:`${Ze.downloadBtn} ml30`,href:ft.Z.API_SERVER+"/api/item_banks/down_template",download:!0},"\u4E0B\u8F7D\u8BD5\u9898\u6A21\u7248",st.createElement("i",{className:"iconfont icon-xiazai4 ml10",style:{fontSize:14}}))),st.createElement(gt.default,{onRemove:()=>{ln([])},beforeUpload:vn=>{if(console.log(vn),(vn==null?void 0:vn.size)>1024*1024*50)return At.ZP.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;let Vn=[];return Vn.push(vn),ln([...Vn]),!1},fileList:mn,accept:".xls,.xlsx",showUploadList:{removeIcon:st.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160"}})}},st.createElement("div",{className:Ze.uploadBtn},st.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}}),"\u70B9\u51FB\u4E0A\u4F20"))),st.createElement("br",null),(Xt==null?void 0:Xt.length)>0&&st.createElement("span",{style:{fontSize:"18px",display:"flex",width:"100%",justifyContent:"center"}},"\u9519\u8BEF\u5217\u8868"),(Xt==null?void 0:Xt.length)>0&&st.createElement(kt.default,{style:{marginTop:"10px"},dataSource:Xt,columns:Mr})),bt===3&&st.createElement(lt.Z,{mode:1,onCancel:()=>xe.history.push("/problemset")})),bt!==3&&st.createElement("div",{className:Ze.buttonFixed},st.createElement("div",{className:Ze.buttonWrap},st.createElement(Xe.ZP,{size:"middle",className:`${Ze.button} mr20`,onClick:()=>xe.history.push(`/problemset?page=${Ce.get("page")}`)},"\u53D6\u6D88"),st.createElement(Xe.ZP,{size:"middle",type:"primary",className:`${Ze.button} mr20`,onClick:()=>se.submit(),loading:Vt["problemset/editProblemset"]||Vt["problemset/addProblemset"]||sr},Jr==="PROGRAM"&&bt===1?"\u7ACB\u5373\u521B\u5EFA":"\u4FDD\u5B58\u9898\u76EE")))))};var vt=(0,xe.connect)(({problemset:nt,loading:Vt,globalSetting:un})=>({problemset:nt,globalSetting:un,loading:Vt.effects}))(Yt)},85673:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return Qe}});var re=de(94184),xe=de.n(re),tt=de(37419),At=de(1337),Pe=de(67294),Ne=de(96159),je=de(53124),Ee=de(42922),ye=de(35874);const qe=Fe=>{let{children:wt}=Fe;const{getPrefixCls:Mt}=Pe.useContext(je.E_),jt=Mt("breadcrumb");return Pe.createElement("li",{className:`${jt}-separator`,"aria-hidden":"true"},wt===""?wt:wt||"/")};qe.__ANT_BREADCRUMB_SEPARATOR=!0;var it=qe,he=function(Fe,wt){var Mt={};for(var jt in Fe)Object.prototype.hasOwnProperty.call(Fe,jt)&&wt.indexOf(jt)<0&&(Mt[jt]=Fe[jt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,jt=Object.getOwnPropertySymbols(Fe);Re<jt.length;Re++)wt.indexOf(jt[Re])<0&&Object.prototype.propertyIsEnumerable.call(Fe,jt[Re])&&(Mt[jt[Re]]=Fe[jt[Re]]);return Mt};function gt(Fe,wt){if(Fe.title===void 0||Fe.title===null)return null;const Mt=Object.keys(wt).join("|");return typeof Fe.title=="object"?Fe.title:String(Fe.title).replace(new RegExp(`:(${Mt})`,"g"),(jt,Re)=>wt[Re]||jt)}function kt(Fe,wt,Mt,jt){if(Mt==null)return null;const{className:Re,onClick:Le}=wt,Nt=he(wt,["className","onClick"]),Rt=Object.assign(Object.assign({},(0,At.Z)(Nt,{data:!0,aria:!0})),{onClick:Le});return jt!==void 0?Pe.createElement("a",Object.assign({},Rt,{className:xe()(`${Fe}-link`,Re),href:jt}),Mt):Pe.createElement("span",Object.assign({},Rt,{className:xe()(`${Fe}-link`,Re)}),Mt)}function Xe(Fe,wt){return(jt,Re,Le,Nt,Rt)=>{if(wt)return wt(jt,Re,Le,Nt);const Yt=gt(jt,Re);return kt(Fe,jt,Yt,Rt)}}var ft=function(Fe,wt){var Mt={};for(var jt in Fe)Object.prototype.hasOwnProperty.call(Fe,jt)&&wt.indexOf(jt)<0&&(Mt[jt]=Fe[jt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,jt=Object.getOwnPropertySymbols(Fe);Re<jt.length;Re++)wt.indexOf(jt[Re])<0&&Object.prototype.propertyIsEnumerable.call(Fe,jt[Re])&&(Mt[jt[Re]]=Fe[jt[Re]]);return Mt};const Ze=Fe=>{const{prefixCls:wt,separator:Mt="/",children:jt,menu:Re,overlay:Le,dropdownProps:Nt,href:Rt}=Fe,vt=(nt=>{if(Re||Le){const Vt=Object.assign({},Nt);if(Re){const un=Re||{},{items:Ut}=un,fn=ft(un,["items"]);Vt.menu=Object.assign(Object.assign({},fn),{items:Ut==null?void 0:Ut.map((en,En)=>{var{key:_n,title:Ce,label:se,path:ue}=en,ge=ft(en,["key","title","label","path"]);let pe=se!=null?se:Ce;return ue&&(pe=Pe.createElement("a",{href:`${Rt}${ue}`},pe)),Object.assign(Object.assign({},ge),{key:_n!=null?_n:En,label:pe})})})}else Le&&(Vt.overlay=Le);return Pe.createElement(ye.Z,Object.assign({placement:"bottom"},Vt),Pe.createElement("span",{className:`${wt}-overlay-link`},nt,Pe.createElement(Ee.Z,null)))}return nt})(jt);return vt!=null?Pe.createElement(Pe.Fragment,null,Pe.createElement("li",null,vt),Mt&&Pe.createElement(it,null,Mt)):null},Je=Fe=>{const{prefixCls:wt,children:Mt,href:jt}=Fe,Re=ft(Fe,["prefixCls","children","href"]),{getPrefixCls:Le}=Pe.useContext(je.E_),Nt=Le("breadcrumb",wt);return Pe.createElement(Ze,Object.assign({},Re,{prefixCls:Nt}),kt(Nt,Re,Mt,jt))};Je.__ANT_BREADCRUMB_ITEM=!0;var et=Je,Ye=de(14747),We=de(67968),$e=de(45503);const lt=Fe=>{const{componentCls:wt,iconCls:Mt}=Fe;return{[wt]:Object.assign(Object.assign({},(0,Ye.Wf)(Fe)),{color:Fe.itemColor,fontSize:Fe.fontSize,[Mt]:{fontSize:Fe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Fe.linkColor,transition:`color ${Fe.motionDurationMid}`,padding:`0 ${Fe.paddingXXS}px`,borderRadius:Fe.borderRadiusSM,height:Fe.lineHeight*Fe.fontSize,display:"inline-block",marginInline:-Fe.marginXXS,"&:hover":{color:Fe.linkHoverColor,backgroundColor:Fe.colorBgTextHover}},(0,Ye.Qy)(Fe)),"li:last-child":{color:Fe.lastItemColor},[`${wt}-separator`]:{marginInline:Fe.separatorMargin,color:Fe.separatorColor},[`${wt}-link`]:{[`
|
|
|
> ${Mt} + span,
|
|
|
> ${Mt} + a
|
|
|
`]:{marginInlineStart:Fe.marginXXS}},[`${wt}-overlay-link`]:{borderRadius:Fe.borderRadiusSM,height:Fe.lineHeight*Fe.fontSize,display:"inline-block",padding:`0 ${Fe.paddingXXS}px`,marginInline:-Fe.marginXXS,[`> ${Mt}`]:{marginInlineStart:Fe.marginXXS,fontSize:Fe.fontSizeIcon},"&:hover":{color:Fe.linkHoverColor,backgroundColor:Fe.colorBgTextHover,a:{color:Fe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Fe.componentCls}-rtl`]:{direction:"rtl"}})}};var Tt=(0,We.Z)("Breadcrumb",Fe=>{const wt=(0,$e.TS)(Fe,{});return[lt(wt)]},Fe=>({itemColor:Fe.colorTextDescription,lastItemColor:Fe.colorText,iconFontSize:Fe.fontSize,linkColor:Fe.colorTextDescription,linkHoverColor:Fe.colorText,separatorColor:Fe.colorTextDescription,separatorMargin:Fe.marginXS})),_t=function(Fe,wt){var Mt={};for(var jt in Fe)Object.prototype.hasOwnProperty.call(Fe,jt)&&wt.indexOf(jt)<0&&(Mt[jt]=Fe[jt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,jt=Object.getOwnPropertySymbols(Fe);Re<jt.length;Re++)wt.indexOf(jt[Re])<0&&Object.prototype.propertyIsEnumerable.call(Fe,jt[Re])&&(Mt[jt[Re]]=Fe[jt[Re]]);return Mt};function Ot(Fe){const{breadcrumbName:wt,children:Mt}=Fe,jt=_t(Fe,["breadcrumbName","children"]),Re=Object.assign({title:wt},jt);return Mt&&(Re.menu={items:Mt.map(Le=>{var{breadcrumbName:Nt}=Le,Rt=_t(Le,["breadcrumbName"]);return Object.assign(Object.assign({},Rt),{title:Nt})})}),Re}function st(Fe,wt){return(0,Pe.useMemo)(()=>Fe||(wt?wt.map(Ot):null),[Fe,wt])}var ct=function(Fe,wt){var Mt={};for(var jt in Fe)Object.prototype.hasOwnProperty.call(Fe,jt)&&wt.indexOf(jt)<0&&(Mt[jt]=Fe[jt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,jt=Object.getOwnPropertySymbols(Fe);Re<jt.length;Re++)wt.indexOf(jt[Re])<0&&Object.prototype.propertyIsEnumerable.call(Fe,jt[Re])&&(Mt[jt[Re]]=Fe[jt[Re]]);return Mt};const He=(Fe,wt)=>{if(wt===void 0)return wt;let Mt=(wt||"").replace(/^\//,"");return Object.keys(Fe).forEach(jt=>{Mt=Mt.replace(`:${jt}`,Fe[jt])}),Mt},pt=Fe=>{const{prefixCls:wt,separator:Mt="/",style:jt,className:Re,rootClassName:Le,routes:Nt,items:Rt,children:Yt,itemRender:vt,params:nt={}}=Fe,Vt=ct(Fe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:un,direction:Ut,breadcrumb:fn}=Pe.useContext(je.E_);let en;const En=un("breadcrumb",wt),[_n,Ce]=Tt(En),se=st(Rt,Nt),ue=Xe(En,vt);if(se&&se.length>0){const le=[],ze=Rt||Nt;en=se.map((bt,Pt)=>{const{path:mn,key:ln,type:Xt,menu:Kt,overlay:sr,onClick:mr,className:Gt,separator:rn,dropdownProps:Jr}=bt,_r=He(nt,mn);_r!==void 0&&le.push(_r);const xr=ln!=null?ln:Pt;if(Xt==="separator")return Pe.createElement(it,{key:xr},rn);const wr={},Ji=Pt===se.length-1;Kt?wr.menu=Kt:sr&&(wr.overlay=sr);let{href:Ir}=bt;return le.length&&_r!==void 0&&(Ir=`#/${le.join("/")}`),Pe.createElement(Ze,Object.assign({key:xr},wr,(0,At.Z)(bt,{data:!0,aria:!0}),{className:Gt,dropdownProps:Jr,href:Ir,separator:Ji?"":Mt,onClick:mr,prefixCls:En}),ue(bt,nt,ze,le,Ir))})}else if(Yt){const le=(0,tt.Z)(Yt).length;en=(0,tt.Z)(Yt).map((ze,bt)=>{if(!ze)return ze;const Pt=bt===le-1;return(0,Ne.Tm)(ze,{separator:Pt?"":Mt,key:bt})})}const ge=xe()(En,fn==null?void 0:fn.className,{[`${En}-rtl`]:Ut==="rtl"},Re,Le,Ce),pe=Object.assign(Object.assign({},fn==null?void 0:fn.style),jt);return _n(Pe.createElement("nav",Object.assign({className:ge,style:pe},Vt),Pe.createElement("ol",null,en)))};pt.Item=et,pt.Separator=it;var Ve=pt,Qe=Ve},85546:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return Do}});var re=de(74902),xe=de(67294),tt=de(22751),At=de(3407),Pe=de(91034),Ne=de(94184),je=de.n(Ne),Ee=de(87462),ye=de(97685),qe=de(45987),it=de(4942),he=de(1413),gt=de(71002);function kt(Be){var Ie=xe.useRef();Ie.current=Be;var Ct=xe.useCallback(function(){for(var Et,$t=arguments.length,hn=new Array($t),kn=0;kn<$t;kn++)hn[kn]=arguments[kn];return(Et=Ie.current)===null||Et===void 0?void 0:Et.call.apply(Et,[Ie].concat(hn))},[]);return Ct}function Xe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ft=Xe()?xe.useLayoutEffect:xe.useEffect,Ze=ft,Je=function(Ie,Ct){var Et=xe.useRef(!0);ft(function(){if(!Et.current)return Ie()},Ct),ft(function(){return Et.current=!1,function(){Et.current=!0}},[])};function et(Be){var Ie=xe.useRef(!1),Ct=xe.useState(Be),Et=(0,ye.Z)(Ct,2),$t=Et[0],hn=Et[1];xe.useEffect(function(){return Ie.current=!1,function(){Ie.current=!0}},[]);function kn(Jn,$n){$n&&Ie.current||hn(Jn)}return[$t,kn]}function Ye(Be){return Be!==void 0}function We(Be,Ie){var Ct=Ie||{},Et=Ct.defaultValue,$t=Ct.value,hn=Ct.onChange,kn=Ct.postState,Jn=et(function(){return Ye($t)?$t:Ye(Et)?typeof Et=="function"?Et():Et:typeof Be=="function"?Be():Be}),$n=(0,ye.Z)(Jn,2),ur=$n[0],$r=$n[1],Sr=$t!==void 0?$t:ur,ii=kn?kn(Sr):Sr,yr=kt(hn),Ur=et([Sr]),Pr=(0,ye.Z)(Ur,2),ai=Pr[0],Ei=Pr[1];Je(function(){var Oe=ai[0];ur!==Oe&&yr(ur,Oe)},[ai]),Je(function(){Ye($t)||$r($t)},[$t]);var Ae=kt(function(Oe,dt){$r(Oe,dt),Ei([Sr],dt)});return[ii,Ae]}var $e={};function lt(Be,Ie){}function Tt(Be,Ie){}function _t(){$e={}}function Ot(Be,Ie,Ct){!Ie&&!$e[Ct]&&(Be(!1,Ct),$e[Ct]=!0)}function st(Be,Ie){Ot(lt,Be,Ie)}function ct(Be,Ie){Ot(Tt,Be,Ie)}var He=st,pt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Be=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Be)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Be==null?void 0:Be.substr(0,4))},Ve={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ie){var Ct=Ie.keyCode;if(Ie.altKey&&!Ie.ctrlKey||Ie.metaKey||Ct>=Ve.F1&&Ct<=Ve.F12)return!1;switch(Ct){case Ve.ALT:case Ve.CAPS_LOCK:case Ve.CONTEXT_MENU:case Ve.CTRL:case Ve.DOWN:case Ve.END:case Ve.ESC:case Ve.HOME:case Ve.INSERT:case Ve.LEFT:case Ve.MAC_FF_META:case Ve.META:case Ve.NUMLOCK:case Ve.NUM_CENTER:case Ve.PAGE_DOWN:case Ve.PAGE_UP:case Ve.PAUSE:case Ve.PRINT_SCREEN:case Ve.RIGHT:case Ve.SHIFT:case Ve.UP:case Ve.WIN_KEY:case Ve.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ie){if(Ie>=Ve.ZERO&&Ie<=Ve.NINE||Ie>=Ve.NUM_ZERO&&Ie<=Ve.NUM_MULTIPLY||Ie>=Ve.A&&Ie<=Ve.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ie===0)return!0;switch(Ie){case Ve.SPACE:case Ve.QUESTION_MARK:case Ve.NUM_PLUS:case Ve.NUM_MINUS:case Ve.NUM_PERIOD:case Ve.NUM_DIVISION:case Ve.SEMICOLON:case Ve.DASH:case Ve.EQUALS:case Ve.COMMA:case Ve.PERIOD:case Ve.SLASH:case Ve.APOSTROPHE:case Ve.SINGLE_QUOTE:case Ve.OPEN_SQUARE_BRACKET:case Ve.BACKSLASH:case Ve.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Qe=Ve,Fe=de(16357);function wt(Be,Ie,Ct){var Et=xe.useRef({});return(!("value"in Et.current)||Ct(Et.current.condition,Ie))&&(Et.current.value=Be(),Et.current.condition=Ie),Et.current.value}function Mt(Be,Ie){typeof Be=="function"?Be(Ie):(0,gt.Z)(Be)==="object"&&Be&&"current"in Be&&(Be.current=Ie)}function jt(){for(var Be=arguments.length,Ie=new Array(Be),Ct=0;Ct<Be;Ct++)Ie[Ct]=arguments[Ct];var Et=Ie.filter(function($t){return $t});return Et.length<=1?Et[0]:function($t){Ie.forEach(function(hn){Mt(hn,$t)})}}function Re(){for(var Be=arguments.length,Ie=new Array(Be),Ct=0;Ct<Be;Ct++)Ie[Ct]=arguments[Ct];return wt(function(){return jt.apply(void 0,Ie)},Ie,function(Et,$t){return Et.length===$t.length&&Et.every(function(hn,kn){return hn===$t[kn]})})}function Le(Be){var Ie,Ct,Et=isMemo(Be)?Be.type.type:Be.type;return!(typeof Et=="function"&&!((Ie=Et.prototype)!==null&&Ie!==void 0&&Ie.render)||typeof Be=="function"&&!((Ct=Be.prototype)!==null&&Ct!==void 0&&Ct.render))}var Nt=function(Ie){var Ct=Ie.className,Et=Ie.customizeIcon,$t=Ie.customizeIconProps,hn=Ie.onMouseDown,kn=Ie.onClick,Jn=Ie.children,$n;return typeof Et=="function"?$n=Et($t):$n=Et,xe.createElement("span",{className:Ct,onMouseDown:function($r){$r.preventDefault(),hn&&hn($r)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:kn,"aria-hidden":!0},$n!==void 0?$n:xe.createElement("span",{className:je()(Ct.split(/\s+/).map(function(ur){return"".concat(ur,"-icon")}))},Jn))},Rt=Nt;function Yt(Be,Ie,Ct,Et,$t){var hn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,kn=arguments.length>6?arguments[6]:void 0,Jn=arguments.length>7?arguments[7]:void 0,$n=xe.useMemo(function(){if((0,gt.Z)(Et)==="object")return Et.clearIcon;if($t)return $t},[Et,$t]),ur=xe.useMemo(function(){return!!(!hn&&Et&&(Ct.length||kn)&&!(Jn==="combobox"&&kn===""))},[Et,hn,Ct.length,kn,Jn]);return{allowClear:ur,clearIcon:xe.createElement(Rt,{className:"".concat(Be,"-clear"),onMouseDown:Ie,customizeIcon:$n},"\xD7")}}var vt=xe.createContext(null);function nt(){return xe.useContext(vt)}function Vt(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ie=xe.useState(!1),Ct=(0,ye.Z)(Ie,2),Et=Ct[0],$t=Ct[1],hn=xe.useRef(null),kn=function(){window.clearTimeout(hn.current)};xe.useEffect(function(){return kn},[]);var Jn=function(ur,$r){kn(),hn.current=window.setTimeout(function(){$t(ur),$r&&$r()},Be)};return[Et,Jn,kn]}function un(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ie=xe.useRef(null),Ct=xe.useRef(null);xe.useEffect(function(){return function(){window.clearTimeout(Ct.current)}},[]);function Et($t){($t||Ie.current===null)&&(Ie.current=$t),window.clearTimeout(Ct.current),Ct.current=window.setTimeout(function(){Ie.current=null},Be)}return[function(){return Ie.current},Et]}function Ut(Be,Ie,Ct,Et){var $t=xe.useRef(null);$t.current={open:Ie,triggerOpen:Ct,customizedTrigger:Et},xe.useEffect(function(){function hn(kn){var Jn;if(!((Jn=$t.current)!==null&&Jn!==void 0&&Jn.customizedTrigger)){var $n=kn.target;$n.shadowRoot&&kn.composed&&($n=kn.composedPath()[0]||$n),$t.current.open&&Be().filter(function(ur){return ur}).every(function(ur){return!ur.contains($n)&&ur!==$n})&&$t.current.triggerOpen(!1)}}return window.addEventListener("mousedown",hn),function(){return window.removeEventListener("mousedown",hn)}},[])}var fn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,en=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,En="".concat(fn," ").concat(en).split(/[\s\n]+/),_n="aria-",Ce="data-";function se(Be,Ie){return Be.indexOf(Ie)===0}function ue(Be){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ct;Ie===!1?Ct={aria:!0,data:!0,attr:!0}:Ie===!0?Ct={aria:!0}:Ct=(0,he.Z)({},Ie);var Et={};return Object.keys(Be).forEach(function($t){(Ct.aria&&($t==="role"||se($t,_n))||Ct.data&&se($t,Ce)||Ct.attr&&En.includes($t))&&(Et[$t]=Be[$t])}),Et}var ge=de(48555);function pe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var le=pe()?xe.useLayoutEffect:xe.useEffect,ze=function(Ie,Ct){var Et=xe.useRef(!0);le(function(){return Ie(Et.current)},Ct),le(function(){return Et.current=!1,function(){Et.current=!0}},[])},bt=function(Ie,Ct){ze(function(Et){if(!Et)return Ie()},Ct)},Pt=ze,mn=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ln=void 0;function Xt(Be,Ie){var Ct=Be.prefixCls,Et=Be.invalidate,$t=Be.item,hn=Be.renderItem,kn=Be.responsive,Jn=Be.responsiveDisabled,$n=Be.registerSize,ur=Be.itemKey,$r=Be.className,Sr=Be.style,ii=Be.children,yr=Be.display,Ur=Be.order,Pr=Be.component,ai=Pr===void 0?"div":Pr,Ei=(0,qe.Z)(Be,mn),Ae=kn&&!yr;function Oe(Bt){$n(ur,Bt)}xe.useEffect(function(){return function(){Oe(null)}},[]);var dt=hn&&$t!==ln?hn($t):ii,Se;Et||(Se={opacity:Ae?0:1,height:Ae?0:ln,overflowY:Ae?"hidden":ln,order:kn?Ur:ln,pointerEvents:Ae?"none":ln,position:Ae?"absolute":ln});var at={};Ae&&(at["aria-hidden"]=!0);var mt=xe.createElement(ai,(0,Ee.Z)({className:je()(!Et&&Ct,$r),style:(0,he.Z)((0,he.Z)({},Se),Sr)},at,Ei,{ref:Ie}),dt);return kn&&(mt=xe.createElement(ge.Z,{onResize:function(Ge){var ot=Ge.offsetWidth;Oe(ot)},disabled:Jn},mt)),mt}var Kt=xe.forwardRef(Xt);Kt.displayName="Item";var sr=Kt;function mr(Be){var Ie=xe.useRef();Ie.current=Be;var Ct=xe.useCallback(function(){for(var Et,$t=arguments.length,hn=new Array($t),kn=0;kn<$t;kn++)hn[kn]=arguments[kn];return(Et=Ie.current)===null||Et===void 0?void 0:Et.call.apply(Et,[Ie].concat(hn))},[]);return Ct}var Gt=de(73935),rn=function(Ie){return+setTimeout(Ie,16)},Jr=function(Ie){return clearTimeout(Ie)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(rn=function(Ie){return window.requestAnimationFrame(Ie)},Jr=function(Ie){return window.cancelAnimationFrame(Ie)});var _r=0,xr=new Map;function wr(Be){xr.delete(Be)}var Ji=function(Ie){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;_r+=1;var Et=_r;function $t(hn){if(hn===0)wr(Et),Ie();else{var kn=rn(function(){$t(hn-1)});xr.set(Et,kn)}}return $t(Ct),Et};Ji.cancel=function(Be){var Ie=xr.get(Be);return wr(Ie),Jr(Ie)};var Ir=Ji;function Wr(Be){if(typeof MessageChannel=="undefined")Ir(Be);else{var Ie=new MessageChannel;Ie.port1.onmessage=function(){return Be()},Ie.port2.postMessage(void 0)}}function Tr(){var Be=xe.useRef(null),Ie=function(Et){Be.current||(Be.current=[],Wr(function(){(0,Gt.unstable_batchedUpdates)(function(){Be.current.forEach(function($t){$t()}),Be.current=null})})),Be.current.push(Et)};return Ie}function si(Be,Ie){var Ct=xe.useState(Ie),Et=(0,ye.Z)(Ct,2),$t=Et[0],hn=Et[1],kn=mr(function(Jn){Be(function(){hn(Jn)})});return[$t,kn]}var pi=xe.createContext(null),Wi=["component"],bi=["className"],kr=["className"],an=function(Ie,Ct){var Et=xe.useContext(pi);if(!Et){var $t=Ie.component,hn=$t===void 0?"div":$t,kn=(0,qe.Z)(Ie,Wi);return xe.createElement(hn,(0,Ee.Z)({},kn,{ref:Ct}))}var Jn=Et.className,$n=(0,qe.Z)(Et,bi),ur=Ie.className,$r=(0,qe.Z)(Ie,kr);return xe.createElement(pi.Provider,{value:null},xe.createElement(sr,(0,Ee.Z)({ref:Ct,className:je()(Jn,ur)},$n,$r)))},Nn=xe.forwardRef(an);Nn.displayName="RawItem";var On=Nn,Dn=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Mr="responsive",vn="invalidate";function Vn(Be){return"+ ".concat(Be.length," ...")}function Xr(Be,Ie){var Ct=Be.prefixCls,Et=Ct===void 0?"rc-overflow":Ct,$t=Be.data,hn=$t===void 0?[]:$t,kn=Be.renderItem,Jn=Be.renderRawItem,$n=Be.itemKey,ur=Be.itemWidth,$r=ur===void 0?10:ur,Sr=Be.ssr,ii=Be.style,yr=Be.className,Ur=Be.maxCount,Pr=Be.renderRest,ai=Be.renderRawRest,Ei=Be.suffix,Ae=Be.component,Oe=Ae===void 0?"div":Ae,dt=Be.itemComponent,Se=Be.onVisibleChange,at=(0,qe.Z)(Be,Dn),mt=Sr==="full",Bt=Tr(),Ge=si(Bt,null),ot=(0,ye.Z)(Ge,2),ut=ot[0],It=ot[1],Zt=ut||0,nn=si(Bt,new Map),Ht=(0,ye.Z)(nn,2),on=Ht[0],wn=Ht[1],Tn=si(Bt,0),dn=(0,ye.Z)(Tn,2),Xn=dn[0],Pn=dn[1],Wn=si(Bt,0),ar=(0,ye.Z)(Wn,2),Rn=ar[0],br=ar[1],gr=si(Bt,0),rr=(0,ye.Z)(gr,2),Yn=rr[0],Kn=rr[1],dr=(0,xe.useState)(null),Gn=(0,ye.Z)(dr,2),hr=Gn[0],vr=Gn[1],fr=(0,xe.useState)(null),qn=(0,ye.Z)(fr,2),Or=qn[0],Vr=qn[1],Vi=xe.useMemo(function(){return Or===null&&mt?Number.MAX_SAFE_INTEGER:Or||0},[Or,ut]),Ni=(0,xe.useState)(!1),Ii=(0,ye.Z)(Ni,2),na=Ii[0],Ci=Ii[1],ya="".concat(Et,"-item"),Ia=Math.max(Xn,Rn),Qr=Ur===Mr,Er=hn.length&&Qr,hi=Ur===vn,Oi=Er||typeof Ur=="number"&&hn.length>Ur,gi=(0,xe.useMemo)(function(){var ti=hn;return Er?ut===null&&mt?ti=hn:ti=hn.slice(0,Math.min(hn.length,Zt/$r)):typeof Ur=="number"&&(ti=hn.slice(0,Ur)),ti},[hn,$r,ut,Ur,Er]),Xi=(0,xe.useMemo)(function(){return Er?hn.slice(Vi+1):hn.slice(gi.length)},[hn,gi,Er,Vi]),yi=(0,xe.useCallback)(function(ti,Un){var Dr;return typeof $n=="function"?$n(ti):(Dr=$n&&(ti==null?void 0:ti[$n]))!==null&&Dr!==void 0?Dr:Un},[$n]),Zi=(0,xe.useCallback)(kn||function(ti){return ti},[kn]);function da(ti,Un,Dr){Or===ti&&(Un===void 0||Un===hr)||(Vr(ti),Dr||(Ci(ti<hn.length-1),Se==null||Se(ti)),Un!==void 0&&vr(Un))}function Da(ti,Un){It(Un.clientWidth)}function Ra(ti,Un){wn(function(Dr){var Hr=new Map(Dr);return Un===null?Hr.delete(ti):Hr.set(ti,Un),Hr})}function Hi(ti,Un){br(Un),Pn(Rn)}function Ai(ti,Un){Kn(Un)}function ba(ti){return on.get(yi(gi[ti],ti))}Pt(function(){if(Zt&&typeof Ia=="number"&&gi){var ti=Yn,Un=gi.length,Dr=Un-1;if(!Un){da(0,null);return}for(var Hr=0;Hr<Un;Hr+=1){var or=ba(Hr);if(mt&&(or=or||0),or===void 0){da(Hr-1,void 0,!0);break}if(ti+=or,Dr===0&&ti<=Zt||Hr===Dr-1&&ti+ba(Dr)<=Zt){da(Dr,null);break}else if(ti+Ia>Zt){da(Hr-1,ti-or-Yn+Rn);break}}Ei&&ba(0)+Yn>Zt&&vr(null)}},[Zt,on,Rn,Yn,yi,gi]);var fa=na&&!!Xi.length,aa={};hr!==null&&Er&&(aa={position:"absolute",left:hr,top:0});var qi={prefixCls:ya,responsive:Er,component:dt,invalidate:hi},Yr=Jn?function(ti,Un){var Dr=yi(ti,Un);return xe.createElement(pi.Provider,{key:Dr,value:(0,he.Z)((0,he.Z)({},qi),{},{order:Un,item:ti,itemKey:Dr,registerSize:Ra,display:Un<=Vi})},Jn(ti,Un))}:function(ti,Un){var Dr=yi(ti,Un);return xe.createElement(sr,(0,Ee.Z)({},qi,{order:Un,key:Dr,item:ti,renderItem:Zi,itemKey:Dr,registerSize:Ra,display:Un<=Vi}))},Si,oa={order:fa?Vi:Number.MAX_SAFE_INTEGER,className:"".concat(ya,"-rest"),registerSize:Hi,display:fa};if(ai)ai&&(Si=xe.createElement(pi.Provider,{value:(0,he.Z)((0,he.Z)({},qi),oa)},ai(Xi)));else{var $i=Pr||Vn;Si=xe.createElement(sr,(0,Ee.Z)({},qi,oa),typeof $i=="function"?$i(Xi):$i)}var Fa=xe.createElement(Oe,(0,Ee.Z)({className:je()(!hi&&Et,yr),style:ii,ref:Ie},at),gi.map(Yr),Oi?Si:null,Ei&&xe.createElement(sr,(0,Ee.Z)({},qi,{responsive:Qr,responsiveDisabled:!Er,order:Vi,className:"".concat(ya,"-suffix"),registerSize:Ai,display:!0,style:aa}),Ei));return Qr&&(Fa=xe.createElement(ge.Z,{onResize:Da,disabled:!Er},Fa)),Fa}var fi=xe.forwardRef(Xr);fi.displayName="Overflow",fi.Item=On,fi.RESPONSIVE=Mr,fi.INVALIDATE=vn;var er=fi,ia=er,Gi=function(Ie,Ct){var Et,$t,hn=Ie.prefixCls,kn=Ie.id,Jn=Ie.inputElement,$n=Ie.disabled,ur=Ie.tabIndex,$r=Ie.autoFocus,Sr=Ie.autoComplete,ii=Ie.editable,yr=Ie.activeDescendantId,Ur=Ie.value,Pr=Ie.maxLength,ai=Ie.onKeyDown,Ei=Ie.onMouseDown,Ae=Ie.onChange,Oe=Ie.onPaste,dt=Ie.onCompositionStart,Se=Ie.onCompositionEnd,at=Ie.open,mt=Ie.attrs,Bt=Jn||xe.createElement("input",null),Ge=Bt,ot=Ge.ref,ut=Ge.props,It=ut.onKeyDown,Zt=ut.onChange,nn=ut.onMouseDown,Ht=ut.onCompositionStart,on=ut.onCompositionEnd,wn=ut.style;return"maxLength"in Bt.props,Bt=xe.cloneElement(Bt,(0,he.Z)((0,he.Z)((0,he.Z)({type:"search"},ut),{},{id:kn,ref:jt(Ct,ot),disabled:$n,tabIndex:ur,autoComplete:Sr||"off",autoFocus:$r,className:je()("".concat(hn,"-selection-search-input"),(Et=Bt)===null||Et===void 0||($t=Et.props)===null||$t===void 0?void 0:$t.className),role:"combobox","aria-label":"Search","aria-expanded":at||!1,"aria-haspopup":"listbox","aria-owns":"".concat(kn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(kn,"_list"),"aria-activedescendant":at?yr:void 0},mt),{},{value:ii?Ur:"",maxLength:Pr,readOnly:!ii,unselectable:ii?null:"on",style:(0,he.Z)((0,he.Z)({},wn),{},{opacity:ii?null:0}),onKeyDown:function(dn){ai(dn),It&&It(dn)},onMouseDown:function(dn){Ei(dn),nn&&nn(dn)},onChange:function(dn){Ae(dn),Zt&&Zt(dn)},onCompositionStart:function(dn){dt(dn),Ht&&Ht(dn)},onCompositionEnd:function(dn){Se(dn),on&&on(dn)},onPaste:Oe})),Bt},Br=xe.forwardRef(Gi);Br.displayName="Input";var lr=Br;function qr(Be){return Array.isArray(Be)?Be:Be!==void 0?[Be]:[]}var xa=typeof window!="undefined"&&window.document&&window.document.documentElement,vi=xa;function ca(Be){return Be!=null}function li(Be){return!Be&&Be!==0}function wi(Be){return["string","number"].includes((0,gt.Z)(Be))}function Li(Be){var Ie=void 0;return Be&&(wi(Be.title)?Ie=Be.title.toString():wi(Be.label)&&(Ie=Be.label.toString())),Ie}function oi(Be,Ie){vi?xe.useLayoutEffect(Be,Ie):xe.useEffect(Be,Ie)}function ir(Be){var Ie;return(Ie=Be.key)!==null&&Ie!==void 0?Ie:Be.value}var Aa=function(Ie){Ie.preventDefault(),Ie.stopPropagation()},Ka=function(Ie){var Ct=Ie.id,Et=Ie.prefixCls,$t=Ie.values,hn=Ie.open,kn=Ie.searchValue,Jn=Ie.autoClearSearchValue,$n=Ie.inputRef,ur=Ie.placeholder,$r=Ie.disabled,Sr=Ie.mode,ii=Ie.showSearch,yr=Ie.autoFocus,Ur=Ie.autoComplete,Pr=Ie.activeDescendantId,ai=Ie.tabIndex,Ei=Ie.removeIcon,Ae=Ie.maxTagCount,Oe=Ie.maxTagTextLength,dt=Ie.maxTagPlaceholder,Se=dt===void 0?function(vr){return"+ ".concat(vr.length," ...")}:dt,at=Ie.tagRender,mt=Ie.onToggleOpen,Bt=Ie.onRemove,Ge=Ie.onInputChange,ot=Ie.onInputPaste,ut=Ie.onInputKeyDown,It=Ie.onInputMouseDown,Zt=Ie.onInputCompositionStart,nn=Ie.onInputCompositionEnd,Ht=xe.useRef(null),on=(0,xe.useState)(0),wn=(0,ye.Z)(on,2),Tn=wn[0],dn=wn[1],Xn=(0,xe.useState)(!1),Pn=(0,ye.Z)(Xn,2),Wn=Pn[0],ar=Pn[1],Rn="".concat(Et,"-selection"),br=hn||Sr==="multiple"&&Jn===!1||Sr==="tags"?kn:"",gr=Sr==="tags"||Sr==="multiple"&&Jn===!1||ii&&(hn||Wn);oi(function(){dn(Ht.current.scrollWidth)},[br]);function rr(vr,fr,qn,Or,Vr){return xe.createElement("span",{className:je()("".concat(Rn,"-item"),(0,it.Z)({},"".concat(Rn,"-item-disabled"),qn)),title:Li(vr)},xe.createElement("span",{className:"".concat(Rn,"-item-content")},fr),Or&&xe.createElement(Rt,{className:"".concat(Rn,"-item-remove"),onMouseDown:Aa,onClick:Vr,customizeIcon:Ei},"\xD7"))}function Yn(vr,fr,qn,Or,Vr){var Vi=function(Ii){Aa(Ii),mt(!hn)};return xe.createElement("span",{onMouseDown:Vi},at({label:fr,value:vr,disabled:qn,closable:Or,onClose:Vr}))}function Kn(vr){var fr=vr.disabled,qn=vr.label,Or=vr.value,Vr=!$r&&!fr,Vi=qn;if(typeof Oe=="number"&&(typeof qn=="string"||typeof qn=="number")){var Ni=String(Vi);Ni.length>Oe&&(Vi="".concat(Ni.slice(0,Oe),"..."))}var Ii=function(Ci){Ci&&Ci.stopPropagation(),Bt(vr)};return typeof at=="function"?Yn(Or,Vi,fr,Vr,Ii):rr(vr,Vi,fr,Vr,Ii)}function dr(vr){var fr=typeof Se=="function"?Se(vr):Se;return rr({title:fr},fr,!1)}var Gn=xe.createElement("div",{className:"".concat(Rn,"-search"),style:{width:Tn},onFocus:function(){ar(!0)},onBlur:function(){ar(!1)}},xe.createElement(lr,{ref:$n,open:hn,prefixCls:Et,id:Ct,inputElement:null,disabled:$r,autoFocus:yr,autoComplete:Ur,editable:gr,activeDescendantId:Pr,value:br,onKeyDown:ut,onMouseDown:It,onChange:Ge,onPaste:ot,onCompositionStart:Zt,onCompositionEnd:nn,tabIndex:ai,attrs:ue(Ie,!0)}),xe.createElement("span",{ref:Ht,className:"".concat(Rn,"-search-mirror"),"aria-hidden":!0},br,"\xA0")),hr=xe.createElement(ia,{prefixCls:"".concat(Rn,"-overflow"),data:$t,renderItem:Kn,renderRest:dr,suffix:Gn,itemKey:ir,maxCount:Ae});return xe.createElement(xe.Fragment,null,hr,!$t.length&&!br&&xe.createElement("span",{className:"".concat(Rn,"-placeholder")},ur))},Ca=Ka,va=function(Ie){var Ct=Ie.inputElement,Et=Ie.prefixCls,$t=Ie.id,hn=Ie.inputRef,kn=Ie.disabled,Jn=Ie.autoFocus,$n=Ie.autoComplete,ur=Ie.activeDescendantId,$r=Ie.mode,Sr=Ie.open,ii=Ie.values,yr=Ie.placeholder,Ur=Ie.tabIndex,Pr=Ie.showSearch,ai=Ie.searchValue,Ei=Ie.activeValue,Ae=Ie.maxLength,Oe=Ie.onInputKeyDown,dt=Ie.onInputMouseDown,Se=Ie.onInputChange,at=Ie.onInputPaste,mt=Ie.onInputCompositionStart,Bt=Ie.onInputCompositionEnd,Ge=Ie.title,ot=xe.useState(!1),ut=(0,ye.Z)(ot,2),It=ut[0],Zt=ut[1],nn=$r==="combobox",Ht=nn||Pr,on=ii[0],wn=ai||"";nn&&Ei&&!It&&(wn=Ei),xe.useEffect(function(){nn&&Zt(!1)},[nn,Ei]);var Tn=$r!=="combobox"&&!Sr&&!Pr?!1:!!wn,dn=Ge===void 0?Li(on):Ge,Xn=function(){if(on)return null;var Wn=Tn?{visibility:"hidden"}:void 0;return xe.createElement("span",{className:"".concat(Et,"-selection-placeholder"),style:Wn},yr)};return xe.createElement(xe.Fragment,null,xe.createElement("span",{className:"".concat(Et,"-selection-search")},xe.createElement(lr,{ref:hn,prefixCls:Et,id:$t,open:Sr,inputElement:Ct,disabled:kn,autoFocus:Jn,autoComplete:$n,editable:Ht,activeDescendantId:ur,value:wn,onKeyDown:Oe,onMouseDown:dt,onChange:function(Wn){Zt(!0),Se(Wn)},onPaste:at,onCompositionStart:mt,onCompositionEnd:Bt,tabIndex:Ur,attrs:ue(Ie,!0),maxLength:nn?Ae:void 0})),!nn&&on?xe.createElement("span",{className:"".concat(Et,"-selection-item"),title:dn,style:Tn?{visibility:"hidden"}:void 0},on.label):null,Xn())},mo=va;function ja(Be){return![Qe.ESC,Qe.SHIFT,Qe.BACKSPACE,Qe.TAB,Qe.WIN_KEY,Qe.ALT,Qe.META,Qe.WIN_KEY_RIGHT,Qe.CTRL,Qe.SEMICOLON,Qe.EQUALS,Qe.CAPS_LOCK,Qe.CONTEXT_MENU,Qe.F1,Qe.F2,Qe.F3,Qe.F4,Qe.F5,Qe.F6,Qe.F7,Qe.F8,Qe.F9,Qe.F10,Qe.F11,Qe.F12].includes(Be)}var wa=function(Ie,Ct){var Et=(0,xe.useRef)(null),$t=(0,xe.useRef)(!1),hn=Ie.prefixCls,kn=Ie.open,Jn=Ie.mode,$n=Ie.showSearch,ur=Ie.tokenWithEnter,$r=Ie.autoClearSearchValue,Sr=Ie.onSearch,ii=Ie.onSearchSubmit,yr=Ie.onToggleOpen,Ur=Ie.onInputKeyDown,Pr=Ie.domRef;xe.useImperativeHandle(Ct,function(){return{focus:function(){Et.current.focus()},blur:function(){Et.current.blur()}}});var ai=un(0),Ei=(0,ye.Z)(ai,2),Ae=Ei[0],Oe=Ei[1],dt=function(wn){var Tn=wn.which;(Tn===Qe.UP||Tn===Qe.DOWN)&&wn.preventDefault(),Ur&&Ur(wn),Tn===Qe.ENTER&&Jn==="tags"&&!$t.current&&!kn&&(ii==null||ii(wn.target.value)),ja(Tn)&&yr(!0)},Se=function(){Oe(!0)},at=(0,xe.useRef)(null),mt=function(wn){Sr(wn,!0,$t.current)!==!1&&yr(!0)},Bt=function(){$t.current=!0},Ge=function(wn){$t.current=!1,Jn!=="combobox"&&mt(wn.target.value)},ot=function(wn){var Tn=wn.target.value;if(ur&&at.current&&/[\r\n]/.test(at.current)){var dn=at.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Tn=Tn.replace(dn,at.current)}at.current=null,mt(Tn)},ut=function(wn){var Tn=wn.clipboardData,dn=Tn.getData("text");at.current=dn},It=function(wn){var Tn=wn.target;if(Tn!==Et.current){var dn=document.body.style.msTouchAction!==void 0;dn?setTimeout(function(){Et.current.focus()}):Et.current.focus()}},Zt=function(wn){var Tn=Ae();wn.target!==Et.current&&!Tn&&Jn!=="combobox"&&wn.preventDefault(),(Jn!=="combobox"&&(!$n||!Tn)||!kn)&&(kn&&$r!==!1&&Sr("",!0,!1),yr())},nn={inputRef:Et,onInputKeyDown:dt,onInputMouseDown:Se,onInputChange:ot,onInputPaste:ut,onInputCompositionStart:Bt,onInputCompositionEnd:Ge},Ht=Jn==="multiple"||Jn==="tags"?xe.createElement(Ca,(0,Ee.Z)({},Ie,nn)):xe.createElement(mo,(0,Ee.Z)({},Ie,nn));return xe.createElement("div",{ref:Pr,className:"".concat(hn,"-selector"),onClick:It,onMouseDown:Zt},Ht)},Qn=xe.forwardRef(wa);Qn.displayName="Selector";var Ri=Qn,Ms=de(62709),ms=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Oo=function(Ie){var Ct=Ie===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ct,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ct,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ct,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ct,adjustY:1},htmlRegion:"scroll"}}},io=function(Ie,Ct){var Et=Ie.prefixCls,$t=Ie.disabled,hn=Ie.visible,kn=Ie.children,Jn=Ie.popupElement,$n=Ie.animation,ur=Ie.transitionName,$r=Ie.dropdownStyle,Sr=Ie.dropdownClassName,ii=Ie.direction,yr=ii===void 0?"ltr":ii,Ur=Ie.placement,Pr=Ie.builtinPlacements,ai=Ie.dropdownMatchSelectWidth,Ei=Ie.dropdownRender,Ae=Ie.dropdownAlign,Oe=Ie.getPopupContainer,dt=Ie.empty,Se=Ie.getTriggerDOMNode,at=Ie.onPopupVisibleChange,mt=Ie.onPopupMouseEnter,Bt=(0,qe.Z)(Ie,ms),Ge="".concat(Et,"-dropdown"),ot=Jn;Ei&&(ot=Ei(Jn));var ut=xe.useMemo(function(){return Pr||Oo(ai)},[Pr,ai]),It=$n?"".concat(Ge,"-").concat($n):ur,Zt=typeof ai=="number",nn=xe.useMemo(function(){return Zt?null:ai===!1?"minWidth":"width"},[ai,Zt]),Ht=$r;Zt&&(Ht=(0,he.Z)((0,he.Z)({},Ht),{},{width:ai}));var on=xe.useRef(null);return xe.useImperativeHandle(Ct,function(){return{getPopupElement:function(){return on.current}}}),xe.createElement(Ms.Z,(0,Ee.Z)({},Bt,{showAction:at?["click"]:[],hideAction:at?["click"]:[],popupPlacement:Ur||(yr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ut,prefixCls:Ge,popupTransitionName:It,popup:xe.createElement("div",{ref:on,onMouseEnter:mt},ot),stretch:nn,popupAlign:Ae,popupVisible:hn,getPopupContainer:Oe,popupClassName:je()(Sr,(0,it.Z)({},"".concat(Ge,"-empty"),dt)),popupStyle:Ht,getTriggerDOMNode:Se,onPopupVisibleChange:at}),kn)},rl=xe.forwardRef(io);rl.displayName="SelectTrigger";var ma=rl,il=de(84506);function zn(Be,Ie){var Ct=Be.key,Et;return"value"in Be&&(Et=Be.value),Ct!=null?Ct:Et!==void 0?Et:"rc-index-key-".concat(Ie)}function wo(Be,Ie){var Ct=Be||{},Et=Ct.label,$t=Ct.value,hn=Ct.options,kn=Ct.groupLabel,Jn=Et||(Ie?"children":"label");return{label:Jn,value:$t||"value",options:hn||"options",groupLabel:kn||Jn}}function Ro(Be){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ct=Ie.fieldNames,Et=Ie.childrenAsData,$t=[],hn=wo(Ct,!1),kn=hn.label,Jn=hn.value,$n=hn.options,ur=hn.groupLabel;function $r(Sr,ii){Sr.forEach(function(yr){if(ii||!($n in yr)){var Ur=yr[Jn];$t.push({key:zn(yr,$t.length),groupOption:ii,data:yr,label:yr[kn],value:Ur})}else{var Pr=yr[ur];Pr===void 0&&Et&&(Pr=yr.label),$t.push({key:zn(yr,$t.length),group:!0,data:yr,label:Pr}),$r(yr[$n],!0)}})}return $r(Be,!1),$t}function _s(Be){var Ie=(0,he.Z)({},Be);return"props"in Ie||Object.defineProperty(Ie,"props",{get:function(){return He(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ie}}),Ie}function gs(Be,Ie){if(!Ie||!Ie.length)return null;var Ct=!1;function Et(hn,kn){var Jn=(0,il.Z)(kn),$n=Jn[0],ur=Jn.slice(1);if(!$n)return[hn];var $r=hn.split($n);return Ct=Ct||$r.length>1,$r.reduce(function(Sr,ii){return[].concat((0,re.Z)(Sr),(0,re.Z)(Et(ii,ur)))},[]).filter(function(Sr){return Sr})}var $t=Et(Be,Ie);return Ct?$t:null}var Uo=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],is=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Ks(Be){return Be==="tags"||Be==="multiple"}var Eo=xe.forwardRef(function(Be,Ie){var Ct,Et,$t=Be.id,hn=Be.prefixCls,kn=Be.className,Jn=Be.showSearch,$n=Be.tagRender,ur=Be.direction,$r=Be.omitDomProps,Sr=Be.displayValues,ii=Be.onDisplayValuesChange,yr=Be.emptyOptions,Ur=Be.notFoundContent,Pr=Ur===void 0?"Not Found":Ur,ai=Be.onClear,Ei=Be.mode,Ae=Be.disabled,Oe=Be.loading,dt=Be.getInputElement,Se=Be.getRawInputElement,at=Be.open,mt=Be.defaultOpen,Bt=Be.onDropdownVisibleChange,Ge=Be.activeValue,ot=Be.onActiveValueChange,ut=Be.activeDescendantId,It=Be.searchValue,Zt=Be.autoClearSearchValue,nn=Be.onSearch,Ht=Be.onSearchSplit,on=Be.tokenSeparators,wn=Be.allowClear,Tn=Be.suffixIcon,dn=Be.clearIcon,Xn=Be.OptionList,Pn=Be.animation,Wn=Be.transitionName,ar=Be.dropdownStyle,Rn=Be.dropdownClassName,br=Be.dropdownMatchSelectWidth,gr=Be.dropdownRender,rr=Be.dropdownAlign,Yn=Be.placement,Kn=Be.builtinPlacements,dr=Be.getPopupContainer,Gn=Be.showAction,hr=Gn===void 0?[]:Gn,vr=Be.onFocus,fr=Be.onBlur,qn=Be.onKeyUp,Or=Be.onKeyDown,Vr=Be.onMouseDown,Vi=(0,qe.Z)(Be,Uo),Ni=Ks(Ei),Ii=(Jn!==void 0?Jn:Ni)||Ei==="combobox",na=(0,he.Z)({},Vi);is.forEach(function(Di){delete na[Di]}),$r==null||$r.forEach(function(Di){delete na[Di]});var Ci=xe.useState(!1),ya=(0,ye.Z)(Ci,2),Ia=ya[0],Qr=ya[1];xe.useEffect(function(){Qr(pt())},[]);var Er=xe.useRef(null),hi=xe.useRef(null),Oi=xe.useRef(null),gi=xe.useRef(null),Xi=xe.useRef(null),yi=Vt(),Zi=(0,ye.Z)(yi,3),da=Zi[0],Da=Zi[1],Ra=Zi[2];xe.useImperativeHandle(Ie,function(){var Di,Qi;return{focus:(Di=gi.current)===null||Di===void 0?void 0:Di.focus,blur:(Qi=gi.current)===null||Qi===void 0?void 0:Qi.blur,scrollTo:function(ko){var ho;return(ho=Xi.current)===null||ho===void 0?void 0:ho.scrollTo(ko)}}});var Hi=xe.useMemo(function(){var Di;if(Ei!=="combobox")return It;var Qi=(Di=Sr[0])===null||Di===void 0?void 0:Di.value;return typeof Qi=="string"||typeof Qi=="number"?String(Qi):""},[It,Ei,Sr]),Ai=Ei==="combobox"&&typeof dt=="function"&&dt()||null,ba=typeof Se=="function"&&Se(),fa=Re(hi,ba==null||(Ct=ba.props)===null||Ct===void 0?void 0:Ct.ref),aa=xe.useState(!1),qi=(0,ye.Z)(aa,2),Yr=qi[0],Si=qi[1];Ze(function(){Si(!0)},[]);var oa=We(!1,{defaultValue:mt,value:at}),$i=(0,ye.Z)(oa,2),Fa=$i[0],ti=$i[1],Un=Yr?Fa:!1,Dr=!Pr&&yr;(Ae||Dr&&Un&&Ei==="combobox")&&(Un=!1);var Hr=Dr?!1:Un,or=xe.useCallback(function(Di){var Qi=Di!==void 0?Di:!Un;Ae||(ti(Qi),Un!==Qi&&(Bt==null||Bt(Qi)))},[Ae,Un,ti,Bt]),zi=xe.useMemo(function(){return(on||[]).some(function(Di){return[`
|
|
|
`,`\r
|
|
|
`].includes(Di)})},[on]),ga=function(Qi,Va,ko){var ho=!0,fs=Qi;ot==null||ot(null);var Fo=ko?null:gs(Qi,on);return Ei!=="combobox"&&Fo&&(fs="",Ht==null||Ht(Fo),or(!1),ho=!1),nn&&Hi!==fs&&nn(fs,{source:Va?"typing":"effect"}),ho},eo=function(Qi){!Qi||!Qi.trim()||nn(Qi,{source:"submit"})};xe.useEffect(function(){!Un&&!Ni&&Ei!=="combobox"&&ga("",!1,!1)},[Un]),xe.useEffect(function(){Fa&&Ae&&ti(!1),Ae&&Da(!1)},[Ae]);var Qa=un(),go=(0,ye.Z)(Qa,2),to=go[0],ts=go[1],Jo=function(Qi){var Va=to(),ko=Qi.which;if(ko===Qe.ENTER&&(Ei!=="combobox"&&Qi.preventDefault(),Un||or(!0)),ts(!!Hi),ko===Qe.BACKSPACE&&!Va&&Ni&&!Hi&&Sr.length){for(var ho=(0,re.Z)(Sr),fs=null,Fo=ho.length-1;Fo>=0;Fo-=1){var yl=ho[Fo];if(!yl.disabled){ho.splice(Fo,1),fs=yl;break}}fs&&ii(ho,{type:"remove",values:[fs]})}for(var tl=arguments.length,Xo=new Array(tl>1?tl-1:0),ns=1;ns<tl;ns++)Xo[ns-1]=arguments[ns];if(Un&&Xi.current){var Rl;(Rl=Xi.current).onKeyDown.apply(Rl,[Qi].concat(Xo))}Or==null||Or.apply(void 0,[Qi].concat(Xo))},Ko=function(Qi){for(var Va=arguments.length,ko=new Array(Va>1?Va-1:0),ho=1;ho<Va;ho++)ko[ho-1]=arguments[ho];if(Un&&Xi.current){var fs;(fs=Xi.current).onKeyUp.apply(fs,[Qi].concat(ko))}qn==null||qn.apply(void 0,[Qi].concat(ko))},xs=function(Qi){var Va=Sr.filter(function(ko){return ko!==Qi});ii(Va,{type:"remove",values:[Qi]})},Ns=xe.useRef(!1),ws=function(){Da(!0),Ae||(vr&&!Ns.current&&vr.apply(void 0,arguments),hr.includes("focus")&&or(!0)),Ns.current=!0},vl=function(){Da(!1,function(){Ns.current=!1,or(!1)}),!Ae&&(Hi&&(Ei==="tags"?nn(Hi,{source:"submit"}):Ei==="multiple"&&nn("",{source:"blur"})),fr&&fr.apply(void 0,arguments))},ea=[];xe.useEffect(function(){return function(){ea.forEach(function(Di){return clearTimeout(Di)}),ea.splice(0,ea.length)}},[]);var Rr=function(Qi){var Va,ko=Qi.target,ho=(Va=Oi.current)===null||Va===void 0?void 0:Va.getPopupElement();if(ho&&ho.contains(ko)){var fs=setTimeout(function(){var Xo=ea.indexOf(fs);if(Xo!==-1&&ea.splice(Xo,1),Ra(),!Ia&&!ho.contains(document.activeElement)){var ns;(ns=gi.current)===null||ns===void 0||ns.focus()}});ea.push(fs)}for(var Fo=arguments.length,yl=new Array(Fo>1?Fo-1:0),tl=1;tl<Fo;tl++)yl[tl-1]=arguments[tl];Vr==null||Vr.apply(void 0,[Qi].concat(yl))},Bi=xe.useState({}),Hn=(0,ye.Z)(Bi,2),Ui=Hn[1];function yo(){Ui({})}var fo;ba&&(fo=function(Qi){or(Qi)}),Ut(function(){var Di;return[Er.current,(Di=Oi.current)===null||Di===void 0?void 0:Di.getPopupElement()]},Hr,or,!!ba);var So=xe.useMemo(function(){return(0,he.Z)((0,he.Z)({},Be),{},{notFoundContent:Pr,open:Un,triggerOpen:Hr,id:$t,showSearch:Ii,multiple:Ni,toggleOpen:or})},[Be,Pr,Hr,Un,$t,Ii,Ni,or]),uo=!!Tn||Oe,el;uo&&(el=xe.createElement(Rt,{className:je()("".concat(hn,"-arrow"),(0,it.Z)({},"".concat(hn,"-arrow-loading"),Oe)),customizeIcon:Tn,customizeIconProps:{loading:Oe,searchValue:Hi,open:Un,focused:da,showSearch:Ii}}));var ds=function(){var Qi;ai==null||ai(),(Qi=gi.current)===null||Qi===void 0||Qi.focus(),ii([],{type:"clear",values:Sr}),ga("",!1,!1)},kl=Yt(hn,ds,Sr,wn,dn,Ae,Hi,Ei),za=kl.allowClear,ka=kl.clearIcon,no=xe.createElement(Xn,{ref:Xi}),Za=je()(hn,kn,(Et={},(0,it.Z)(Et,"".concat(hn,"-focused"),da),(0,it.Z)(Et,"".concat(hn,"-multiple"),Ni),(0,it.Z)(Et,"".concat(hn,"-single"),!Ni),(0,it.Z)(Et,"".concat(hn,"-allow-clear"),wn),(0,it.Z)(Et,"".concat(hn,"-show-arrow"),uo),(0,it.Z)(Et,"".concat(hn,"-disabled"),Ae),(0,it.Z)(Et,"".concat(hn,"-loading"),Oe),(0,it.Z)(Et,"".concat(hn,"-open"),Un),(0,it.Z)(Et,"".concat(hn,"-customize-input"),Ai),(0,it.Z)(Et,"".concat(hn,"-show-search"),Ii),Et)),Ao=xe.createElement(ma,{ref:Oi,disabled:Ae,prefixCls:hn,visible:Hr,popupElement:no,animation:Pn,transitionName:Wn,dropdownStyle:ar,dropdownClassName:Rn,direction:ur,dropdownMatchSelectWidth:br,dropdownRender:gr,dropdownAlign:rr,placement:Yn,builtinPlacements:Kn,getPopupContainer:dr,empty:yr,getTriggerDOMNode:function(){return hi.current},onPopupVisibleChange:fo,onPopupMouseEnter:yo},ba?xe.cloneElement(ba,{ref:fa}):xe.createElement(Ri,(0,Ee.Z)({},Be,{domRef:hi,prefixCls:hn,inputElement:Ai,ref:gi,id:$t,showSearch:Ii,autoClearSearchValue:Zt,mode:Ei,activeDescendantId:ut,tagRender:$n,values:Sr,open:Un,onToggleOpen:or,activeValue:Ge,searchValue:Hi,onSearch:ga,onSearchSubmit:eo,onRemove:xs,tokenWithEnter:zi}))),Ho;return ba?Ho=Ao:Ho=xe.createElement("div",(0,Ee.Z)({className:Za},na,{ref:Er,onMouseDown:Rr,onKeyDown:Jo,onKeyUp:Ko,onFocus:ws,onBlur:vl}),da&&!Un&&xe.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Sr.map(function(Di){var Qi=Di.label,Va=Di.value;return["number","string"].includes((0,gt.Z)(Qi))?Qi:Va}).join(", "))),Ao,el,za&&ka),xe.createElement(vt.Provider,{value:So},Ho)}),jo=Eo,Oa=function(Be,Ie){var Ct=xe.useRef({values:new Map,options:new Map}),Et=xe.useMemo(function(){var hn=Ct.current,kn=hn.values,Jn=hn.options,$n=Be.map(function(Sr){if(Sr.label===void 0){var ii;return(0,he.Z)((0,he.Z)({},Sr),{},{label:(ii=kn.get(Sr.value))===null||ii===void 0?void 0:ii.label})}return Sr}),ur=new Map,$r=new Map;return $n.forEach(function(Sr){ur.set(Sr.value,Sr),$r.set(Sr.value,Ie.get(Sr.value)||Jn.get(Sr.value))}),Ct.current.values=ur,Ct.current.options=$r,$n},[Be,Ie]),$t=xe.useCallback(function(hn){return Ie.get(hn)||Ct.current.options.get(hn)},[Ie]);return[Et,$t]};function $o(Be,Ie){return qr(Be).join("").toUpperCase().includes(Ie)}var Bl=function(Be,Ie,Ct,Et,$t){return xe.useMemo(function(){if(!Ct||Et===!1)return Be;var hn=Ie.options,kn=Ie.label,Jn=Ie.value,$n=[],ur=typeof Et=="function",$r=Ct.toUpperCase(),Sr=ur?Et:function(yr,Ur){return $t?$o(Ur[$t],$r):Ur[hn]?$o(Ur[kn!=="children"?kn:"label"],$r):$o(Ur[Jn],$r)},ii=ur?function(yr){return _s(yr)}:function(yr){return yr};return Be.forEach(function(yr){if(yr[hn]){var Ur=Sr(Ct,ii(yr));if(Ur)$n.push(yr);else{var Pr=yr[hn].filter(function(ai){return Sr(Ct,ii(ai))});Pr.length&&$n.push((0,he.Z)((0,he.Z)({},yr),{},(0,it.Z)({},hn,Pr)))}return}Sr(Ct,ii(yr))&&$n.push(yr)}),$n},[Be,Et,$t,Ct,Ie])},vs=0,al=Xe();function es(){var Be;return al?(Be=vs,vs+=1):Be="TEST_OR_SSR",Be}function $a(Be){var Ie=xe.useState(),Ct=(0,ye.Z)(Ie,2),Et=Ct[0],$t=Ct[1];return xe.useEffect(function(){$t("rc_select_".concat(es()))},[]),Be||Et}function Bs(Be){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ct=[];return xe.Children.forEach(Be,function(Et){Et==null&&!Ie.keepEmpty||(Array.isArray(Et)?Ct=Ct.concat(Bs(Et)):(0,Fe.isFragment)(Et)&&Et.props?Ct=Ct.concat(Bs(Et.props.children,Ie)):Ct.push(Et))}),Ct}var Xs=["children","value"],as=["children"];function pl(Be){var Ie=Be,Ct=Ie.key,Et=Ie.props,$t=Et.children,hn=Et.value,kn=(0,qe.Z)(Et,Xs);return(0,he.Z)({key:Ct,value:hn!==void 0?hn:Ct,children:$t},kn)}function os(Be){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Bs(Be).map(function(Ct,Et){if(!xe.isValidElement(Ct)||!Ct.type)return null;var $t=Ct,hn=$t.type.isSelectOptGroup,kn=$t.key,Jn=$t.props,$n=Jn.children,ur=(0,qe.Z)(Jn,as);return Ie||!hn?pl(Ct):(0,he.Z)((0,he.Z)({key:"__RC_SELECT_GRP__".concat(kn===null?Et:kn,"__"),label:kn},ur),{},{options:os($n)})}).filter(function(Ct){return Ct})}function ss(Be,Ie,Ct,Et,$t){return xe.useMemo(function(){var hn=Be,kn=!Be;kn&&(hn=os(Ie));var Jn=new Map,$n=new Map,ur=function(ii,yr,Ur){Ur&&typeof Ur=="string"&&ii.set(yr[Ur],yr)};function $r(Sr){for(var ii=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yr=0;yr<Sr.length;yr+=1){var Ur=Sr[yr];!Ur[Ct.options]||ii?(Jn.set(Ur[Ct.value],Ur),ur($n,Ur,Ct.label),ur($n,Ur,Et),ur($n,Ur,$t)):$r(Ur[Ct.options],!0)}}return $r(hn),{options:hn,valueOptions:Jn,labelOptions:$n}},[Be,Ie,Ct,Et,$t])}function Hs(Be){var Ie=xe.useRef();Ie.current=Be;var Ct=xe.useCallback(function(){return Ie.current.apply(Ie,arguments)},[]);return Ct}var qs=function(){return null};qs.isSelectOptGroup=!0;var Ga=qs,ls=function(){return null};ls.isSelectOption=!0;var Wo=ls;function ys(Be,Ie){var Ct=(0,he.Z)({},Be);return Array.isArray(Ie)&&Ie.forEach(function(Et){delete Ct[Et]}),Ct}var Ds=de(73299),Fs=xe.createContext(null),bs=Fs;function Go(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Te=["disabled","title","children","style","className"];function Ue(Be){return typeof Be=="string"||typeof Be=="number"}var tn=function(Ie,Ct){var Et=nt(),$t=Et.prefixCls,hn=Et.id,kn=Et.open,Jn=Et.multiple,$n=Et.mode,ur=Et.searchValue,$r=Et.toggleOpen,Sr=Et.notFoundContent,ii=Et.onPopupScroll,yr=xe.useContext(bs),Ur=yr.flattenOptions,Pr=yr.onActiveValue,ai=yr.defaultActiveFirstOption,Ei=yr.onSelect,Ae=yr.menuItemSelectedIcon,Oe=yr.rawValues,dt=yr.fieldNames,Se=yr.virtual,at=yr.direction,mt=yr.listHeight,Bt=yr.listItemHeight,Ge="".concat($t,"-item"),ot=wt(function(){return Ur},[kn,Ur],function(rr,Yn){return Yn[0]&&rr[1]!==Yn[1]}),ut=xe.useRef(null),It=function(Yn){Yn.preventDefault()},Zt=function(Yn){ut.current&&ut.current.scrollTo(typeof Yn=="number"?{index:Yn}:Yn)},nn=function(Yn){for(var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,dr=ot.length,Gn=0;Gn<dr;Gn+=1){var hr=(Yn+Gn*Kn+dr)%dr,vr=ot[hr],fr=vr.group,qn=vr.data;if(!fr&&!qn.disabled)return hr}return-1},Ht=xe.useState(function(){return nn(0)}),on=(0,ye.Z)(Ht,2),wn=on[0],Tn=on[1],dn=function(Yn){var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Tn(Yn);var dr={source:Kn?"keyboard":"mouse"},Gn=ot[Yn];if(!Gn){Pr(null,-1,dr);return}Pr(Gn.value,Yn,dr)};(0,xe.useEffect)(function(){dn(ai!==!1?nn(0):-1)},[ot.length,ur]);var Xn=xe.useCallback(function(rr){return Oe.has(rr)&&$n!=="combobox"},[$n,(0,re.Z)(Oe).toString(),Oe.size]);(0,xe.useEffect)(function(){var rr=setTimeout(function(){if(!Jn&&kn&&Oe.size===1){var Kn=Array.from(Oe)[0],dr=ot.findIndex(function(Gn){var hr=Gn.data;return hr.value===Kn});dr!==-1&&(dn(dr),Zt(dr))}});if(kn){var Yn;(Yn=ut.current)===null||Yn===void 0||Yn.scrollTo(void 0)}return function(){return clearTimeout(rr)}},[kn,ur,Ur.length]);var Pn=function(Yn){Yn!==void 0&&Ei(Yn,{selected:!Oe.has(Yn)}),Jn||$r(!1)};if(xe.useImperativeHandle(Ct,function(){return{onKeyDown:function(Yn){var Kn=Yn.which,dr=Yn.ctrlKey;switch(Kn){case Qe.N:case Qe.P:case Qe.UP:case Qe.DOWN:{var Gn=0;if(Kn===Qe.UP?Gn=-1:Kn===Qe.DOWN?Gn=1:Go()&&dr&&(Kn===Qe.N?Gn=1:Kn===Qe.P&&(Gn=-1)),Gn!==0){var hr=nn(wn+Gn,Gn);Zt(hr),dn(hr,!0)}break}case Qe.ENTER:{var vr=ot[wn];vr&&!vr.data.disabled?Pn(vr.value):Pn(void 0),kn&&Yn.preventDefault();break}case Qe.ESC:$r(!1),kn&&Yn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Yn){Zt(Yn)}}}),ot.length===0)return xe.createElement("div",{role:"listbox",id:"".concat(hn,"_list"),className:"".concat(Ge,"-empty"),onMouseDown:It},Sr);var Wn=Object.keys(dt).map(function(rr){return dt[rr]}),ar=function(Yn){return Yn.label};function Rn(rr,Yn){var Kn=rr.group;return{role:Kn?"presentation":"option",id:"".concat(hn,"_list_").concat(Yn)}}var br=function(Yn){var Kn=ot[Yn];if(!Kn)return null;var dr=Kn.data||{},Gn=dr.value,hr=Kn.group,vr=ue(dr,!0),fr=ar(Kn);return Kn?xe.createElement("div",(0,Ee.Z)({"aria-label":typeof fr=="string"&&!hr?fr:null},vr,{key:Yn},Rn(Kn,Yn),{"aria-selected":Xn(Gn)}),Gn):null},gr={role:"listbox",id:"".concat(hn,"_list")};return xe.createElement(xe.Fragment,null,Se&&xe.createElement("div",(0,Ee.Z)({},gr,{style:{height:0,width:0,overflow:"hidden"}}),br(wn-1),br(wn),br(wn+1)),xe.createElement(Ds.Z,{itemKey:"key",ref:ut,data:ot,height:mt,itemHeight:Bt,fullHeight:!1,onMouseDown:It,onScroll:ii,virtual:Se,direction:at,innerProps:Se?null:gr},function(rr,Yn){var Kn,dr=rr.group,Gn=rr.groupOption,hr=rr.data,vr=rr.label,fr=rr.value,qn=hr.key;if(dr){var Or,Vr=(Or=hr.title)!==null&&Or!==void 0?Or:Ue(vr)?vr.toString():void 0;return xe.createElement("div",{className:je()(Ge,"".concat(Ge,"-group")),title:Vr},vr!==void 0?vr:qn)}var Vi=hr.disabled,Ni=hr.title,Ii=hr.children,na=hr.style,Ci=hr.className,ya=(0,qe.Z)(hr,Te),Ia=ys(ya,Wn),Qr=Xn(fr),Er="".concat(Ge,"-option"),hi=je()(Ge,Er,Ci,(Kn={},(0,it.Z)(Kn,"".concat(Er,"-grouped"),Gn),(0,it.Z)(Kn,"".concat(Er,"-active"),wn===Yn&&!Vi),(0,it.Z)(Kn,"".concat(Er,"-disabled"),Vi),(0,it.Z)(Kn,"".concat(Er,"-selected"),Qr),Kn)),Oi=ar(rr),gi=!Ae||typeof Ae=="function"||Qr,Xi=typeof Oi=="number"?Oi:Oi||fr,yi=Ue(Xi)?Xi.toString():void 0;return Ni!==void 0&&(yi=Ni),xe.createElement("div",(0,Ee.Z)({},ue(Ia),Se?{}:Rn(rr,Yn),{"aria-selected":Qr,className:hi,title:yi,onMouseMove:function(){wn===Yn||Vi||dn(Yn)},onClick:function(){Vi||Pn(fr)},style:na}),xe.createElement("div",{className:"".concat(Er,"-content")},Xi),xe.isValidElement(Ae)||Qr,gi&&xe.createElement(Rt,{className:"".concat(Ge,"-option-state"),customizeIcon:Ae,customizeIconProps:{isSelected:Qr}},Qr?"\u2713":null))}))},we=xe.forwardRef(tn);we.displayName="OptionList";var ht=we;function St(Be){var Ie=Be.mode,Ct=Be.options,Et=Be.children,$t=Be.backfill,hn=Be.allowClear,kn=Be.placeholder,Jn=Be.getInputElement,$n=Be.showSearch,ur=Be.onSearch,$r=Be.defaultOpen,Sr=Be.autoFocus,ii=Be.labelInValue,yr=Be.value,Ur=Be.inputValue,Pr=Be.optionLabelProp,ai=isMultiple(Ie),Ei=$n!==void 0?$n:ai||Ie==="combobox",Ae=Ct||convertChildrenToData(Et);if(warning(Ie!=="tags"||Ae.every(function(at){return!at.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ie==="tags"||Ie==="combobox"){var Oe=Ae.some(function(at){return at.options?at.options.some(function(mt){return typeof("value"in mt?mt.value:mt.key)=="number"}):typeof("value"in at?at.value:at.key)=="number"});warning(!Oe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ie!=="combobox"||!Pr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ie==="combobox"||!$t,"`backfill` only works with `combobox` mode."),warning(Ie==="combobox"||!Jn,"`getInputElement` only work with `combobox` mode."),noteOnce(Ie!=="combobox"||!Jn||!hn||!kn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ur&&!Ei&&Ie!=="combobox"&&Ie!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!$r||Sr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),yr!=null){var dt=toArray(yr);warning(!ii||dt.every(function(at){return _typeof(at)==="object"&&("key"in at||"value"in at)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!ai||Array.isArray(yr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Et){var Se=null;toNodeArray(Et).some(function(at){if(!React.isValidElement(at)||!at.type)return!1;var mt=at,Bt=mt.type;if(Bt.isSelectOption)return!1;if(Bt.isSelectOptGroup){var Ge=toNodeArray(at.props.children).every(function(ot){return!React.isValidElement(ot)||!at.type||ot.type.isSelectOption?!0:(Se=ot.type,!1)});return!Ge}return Se=Bt,!0}),Se&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Se.displayName||Se.name||Se,"`.")),warning(Ur===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Qt(Be,Ie){if(Be){var Ct=function Et($t){for(var hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,kn=0;kn<$t.length;kn++){var Jn=$t[kn];if(Jn[Ie==null?void 0:Ie.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!hn&&Array.isArray(Jn[Ie==null?void 0:Ie.options])&&Et(Jn[Ie==null?void 0:Ie.options],!0))break}};Ct(Be)}}var Dt=null,Cn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Ln=["inputValue"];function Mn(Be){return!Be||(0,gt.Z)(Be)!=="object"}var gn=xe.forwardRef(function(Be,Ie){var Ct=Be.id,Et=Be.mode,$t=Be.prefixCls,hn=$t===void 0?"rc-select":$t,kn=Be.backfill,Jn=Be.fieldNames,$n=Be.inputValue,ur=Be.searchValue,$r=Be.onSearch,Sr=Be.autoClearSearchValue,ii=Sr===void 0?!0:Sr,yr=Be.onSelect,Ur=Be.onDeselect,Pr=Be.dropdownMatchSelectWidth,ai=Pr===void 0?!0:Pr,Ei=Be.filterOption,Ae=Be.filterSort,Oe=Be.optionFilterProp,dt=Be.optionLabelProp,Se=Be.options,at=Be.children,mt=Be.defaultActiveFirstOption,Bt=Be.menuItemSelectedIcon,Ge=Be.virtual,ot=Be.direction,ut=Be.listHeight,It=ut===void 0?200:ut,Zt=Be.listItemHeight,nn=Zt===void 0?20:Zt,Ht=Be.value,on=Be.defaultValue,wn=Be.labelInValue,Tn=Be.onChange,dn=(0,qe.Z)(Be,Cn),Xn=$a(Ct),Pn=Ks(Et),Wn=!!(!Se&&at),ar=xe.useMemo(function(){return Ei===void 0&&Et==="combobox"?!1:Ei},[Ei,Et]),Rn=xe.useMemo(function(){return wo(Jn,Wn)},[JSON.stringify(Jn),Wn]),br=We("",{value:ur!==void 0?ur:$n,postState:function(Dr){return Dr||""}}),gr=(0,ye.Z)(br,2),rr=gr[0],Yn=gr[1],Kn=ss(Se,at,Rn,Oe,dt),dr=Kn.valueOptions,Gn=Kn.labelOptions,hr=Kn.options,vr=xe.useCallback(function(Un){var Dr=qr(Un);return Dr.map(function(Hr){var or,zi,ga,eo,Qa;if(Mn(Hr))or=Hr;else{var go;ga=Hr.key,zi=Hr.label,or=(go=Hr.value)!==null&&go!==void 0?go:ga}var to=dr.get(or);if(to){var ts;if(zi===void 0&&(zi=to==null?void 0:to[dt||Rn.label]),ga===void 0&&(ga=(ts=to==null?void 0:to.key)!==null&&ts!==void 0?ts:or),eo=to==null?void 0:to.disabled,Qa=to==null?void 0:to.title,0)var Jo}return{label:zi,value:or,key:ga,disabled:eo,title:Qa}})},[Rn,dt,dr]),fr=We(on,{value:Ht}),qn=(0,ye.Z)(fr,2),Or=qn[0],Vr=qn[1],Vi=xe.useMemo(function(){var Un,Dr=vr(Or);return Et==="combobox"&&li((Un=Dr[0])===null||Un===void 0?void 0:Un.value)?[]:Dr},[Or,vr,Et]),Ni=Oa(Vi,dr),Ii=(0,ye.Z)(Ni,2),na=Ii[0],Ci=Ii[1],ya=xe.useMemo(function(){if(!Et&&na.length===1){var Un=na[0];if(Un.value===null&&(Un.label===null||Un.label===void 0))return[]}return na.map(function(Dr){var Hr;return(0,he.Z)((0,he.Z)({},Dr),{},{label:(Hr=Dr.label)!==null&&Hr!==void 0?Hr:Dr.value})})},[Et,na]),Ia=xe.useMemo(function(){return new Set(na.map(function(Un){return Un.value}))},[na]);xe.useEffect(function(){if(Et==="combobox"){var Un,Dr=(Un=na[0])===null||Un===void 0?void 0:Un.value;Yn(ca(Dr)?String(Dr):"")}},[na]);var Qr=Hs(function(Un,Dr){var Hr,or=Dr!=null?Dr:Un;return Hr={},(0,it.Z)(Hr,Rn.value,Un),(0,it.Z)(Hr,Rn.label,or),Hr}),Er=xe.useMemo(function(){if(Et!=="tags")return hr;var Un=(0,re.Z)(hr),Dr=function(or){return dr.has(or)};return(0,re.Z)(na).sort(function(Hr,or){return Hr.value<or.value?-1:1}).forEach(function(Hr){var or=Hr.value;Dr(or)||Un.push(Qr(or,Hr.label))}),Un},[Qr,hr,dr,na,Et]),hi=Bl(Er,Rn,rr,ar,Oe),Oi=xe.useMemo(function(){return Et!=="tags"||!rr||hi.some(function(Un){return Un[Oe||"value"]===rr})||hi.some(function(Un){return Un[Rn.value]===rr})?hi:[Qr(rr)].concat((0,re.Z)(hi))},[Qr,Oe,Et,hi,rr,Rn]),gi=xe.useMemo(function(){return Ae?(0,re.Z)(Oi).sort(function(Un,Dr){return Ae(Un,Dr)}):Oi},[Oi,Ae]),Xi=xe.useMemo(function(){return Ro(gi,{fieldNames:Rn,childrenAsData:Wn})},[gi,Rn,Wn]),yi=function(Dr){var Hr=vr(Dr);if(Vr(Hr),Tn&&(Hr.length!==na.length||Hr.some(function(ga,eo){var Qa;return((Qa=na[eo])===null||Qa===void 0?void 0:Qa.value)!==(ga==null?void 0:ga.value)}))){var or=wn?Hr:Hr.map(function(ga){return ga.value}),zi=Hr.map(function(ga){return _s(Ci(ga.value))});Tn(Pn?or:or[0],Pn?zi:zi[0])}},Zi=xe.useState(null),da=(0,ye.Z)(Zi,2),Da=da[0],Ra=da[1],Hi=xe.useState(0),Ai=(0,ye.Z)(Hi,2),ba=Ai[0],fa=Ai[1],aa=mt!==void 0?mt:Et!=="combobox",qi=xe.useCallback(function(Un,Dr){var Hr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},or=Hr.source,zi=or===void 0?"keyboard":or;fa(Dr),kn&&Et==="combobox"&&Un!==null&&zi==="keyboard"&&Ra(String(Un))},[kn,Et]),Yr=function(Dr,Hr,or){var zi=function(){var Ns,ws=Ci(Dr);return[wn?{label:ws==null?void 0:ws[Rn.label],value:Dr,key:(Ns=ws==null?void 0:ws.key)!==null&&Ns!==void 0?Ns:Dr}:Dr,_s(ws)]};if(Hr&&yr){var ga=zi(),eo=(0,ye.Z)(ga,2),Qa=eo[0],go=eo[1];yr(Qa,go)}else if(!Hr&&Ur&&or!=="clear"){var to=zi(),ts=(0,ye.Z)(to,2),Jo=ts[0],Ko=ts[1];Ur(Jo,Ko)}},Si=Hs(function(Un,Dr){var Hr,or=Pn?Dr.selected:!0;or?Hr=Pn?[].concat((0,re.Z)(na),[Un]):[Un]:Hr=na.filter(function(zi){return zi.value!==Un}),yi(Hr),Yr(Un,or),Et==="combobox"?Ra(""):(!Ks||ii)&&(Yn(""),Ra(""))}),oa=function(Dr,Hr){yi(Dr);var or=Hr.type,zi=Hr.values;(or==="remove"||or==="clear")&&zi.forEach(function(ga){Yr(ga.value,!1,or)})},$i=function(Dr,Hr){if(Yn(Dr),Ra(null),Hr.source==="submit"){var or=(Dr||"").trim();if(or){var zi=Array.from(new Set([].concat((0,re.Z)(Ia),[or])));yi(zi),Yr(or,!0),Yn("")}return}Hr.source!=="blur"&&(Et==="combobox"&&yi(Dr),$r==null||$r(Dr))},Fa=function(Dr){var Hr=Dr;Et!=="tags"&&(Hr=Dr.map(function(zi){var ga=Gn.get(zi);return ga==null?void 0:ga.value}).filter(function(zi){return zi!==void 0}));var or=Array.from(new Set([].concat((0,re.Z)(Ia),(0,re.Z)(Hr))));yi(or),or.forEach(function(zi){Yr(zi,!0)})},ti=xe.useMemo(function(){var Un=Ge!==!1&&ai!==!1;return(0,he.Z)((0,he.Z)({},Kn),{},{flattenOptions:Xi,onActiveValue:qi,defaultActiveFirstOption:aa,onSelect:Si,menuItemSelectedIcon:Bt,rawValues:Ia,fieldNames:Rn,virtual:Un,direction:ot,listHeight:It,listItemHeight:nn,childrenAsData:Wn})},[Kn,Xi,qi,aa,Si,Bt,Ia,Rn,Ge,ai,It,nn,Wn]);return xe.createElement(bs.Provider,{value:ti},xe.createElement(jo,(0,Ee.Z)({},dn,{id:Xn,prefixCls:hn,ref:Ie,omitDomProps:Ln,mode:Et,displayValues:ya,onDisplayValuesChange:oa,direction:ot,searchValue:rr,onSearch:$i,autoClearSearchValue:ii,onSearchSplit:Fa,dropdownMatchSelectWidth:ai,OptionList:ht,emptyOptions:!Xi.length,activeValue:Da,activeDescendantId:"".concat(Xn,"_list_").concat(ba)})))}),Jt=gn;Jt.Option=Wo,Jt.OptGroup=Ga;var bn=null,An=null,Bn=de(17341);function zr(Be){var Ie=xe.useRef(!1),Ct=xe.useState(Be),Et=(0,ye.Z)(Ct,2),$t=Et[0],hn=Et[1];xe.useEffect(function(){return Ie.current=!1,function(){Ie.current=!0}},[]);function kn(Jn,$n){$n&&Ie.current||hn(Jn)}return[$t,kn]}function ei(Be){return Be!==void 0}function _i(Be,Ie){var Ct=Ie||{},Et=Ct.defaultValue,$t=Ct.value,hn=Ct.onChange,kn=Ct.postState,Jn=zr(function(){return ei($t)?$t:ei(Et)?typeof Et=="function"?Et():Et:typeof Be=="function"?Be():Be}),$n=(0,ye.Z)(Jn,2),ur=$n[0],$r=$n[1],Sr=$t!==void 0?$t:ur,ii=kn?kn(Sr):Sr,yr=mr(hn),Ur=zr([Sr]),Pr=(0,ye.Z)(Ur,2),ai=Pr[0],Ei=Pr[1];bt(function(){var Oe=ai[0];ur!==Oe&&yr(ur,Oe)},[ai]),bt(function(){ei($t)||$r($t)},[$t]);var Ae=mr(function(Oe,dt){$r(Oe,dt),Ei([Sr],dt)});return[ii,Ae]}var Mi=xe.createContext(null),ta=Mi,la="__rc_cascader_search_mark__",Ta=function(Ie,Ct,Et){var $t=Et.label;return Ct.some(function(hn){return String(hn[$t]).toLowerCase().includes(Ie.toLowerCase())})},Ma=function(Ie,Ct,Et,$t){return Ct.map(function(hn){return hn[$t.label]}).join(" / ")},Wa=function(Be,Ie,Ct,Et,$t,hn){var kn=$t.filter,Jn=kn===void 0?Ta:kn,$n=$t.render,ur=$n===void 0?Ma:$n,$r=$t.limit,Sr=$r===void 0?50:$r,ii=$t.sort;return xe.useMemo(function(){var yr=[];if(!Be)return[];function Ur(Pr,ai){var Ei=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Pr.forEach(function(Ae){if(!(!ii&&Sr!==!1&&Sr>0&&yr.length>=Sr)){var Oe=[].concat((0,re.Z)(ai),[Ae]),dt=Ae[Ct.children],Se=Ei||Ae.disabled;if((!dt||dt.length===0||hn)&&Jn(Be,Oe,{label:Ct.label})){var at;yr.push((0,he.Z)((0,he.Z)({},Ae),{},(at={disabled:Se},(0,it.Z)(at,Ct.label,ur(Be,Oe,Et,Ct)),(0,it.Z)(at,la,Oe),(0,it.Z)(at,Ct.children,void 0),at)))}dt&&Ur(Ae[Ct.children],Oe,Se)}})}return Ur(Ie,[]),ii&&yr.sort(function(Pr,ai){return ii(Pr[la],ai[la],Be,Ct)}),Sr!==!1&&Sr>0?yr.slice(0,Sr):yr},[Be,Ie,Ct,Et,ur,hn,Jn,ii,Sr])},Sa="__RC_CASCADER_SPLIT__",Ja="SHOW_PARENT",ao="SHOW_CHILD";function zt(Be){return Be.join(Sa)}function Wt(Be){return Be.map(zt)}function qt(Be){return Be.split(Sa)}function Fn(Be){var Ie=Be||{},Ct=Ie.label,Et=Ie.value,$t=Ie.children,hn=Et||"value";return{label:Ct||"label",value:hn,key:hn,children:$t||"children"}}function Gr(Be,Ie){var Ct,Et;return(Ct=Be.isLeaf)!==null&&Ct!==void 0?Ct:!((Et=Be[Ie.children])!==null&&Et!==void 0&&Et.length)}function Ti(Be){var Ie=Be.parentElement;if(Ie){var Ct=Be.offsetTop-Ie.offsetTop;Ct-Ie.scrollTop<0?Ie.scrollTo({top:Ct}):Ct+Be.offsetHeight-Ie.scrollTop>Ie.offsetHeight&&Ie.scrollTo({top:Ct+Be.offsetHeight-Ie.offsetHeight})}}function In(Be,Ie){return Be.map(function(Ct){var Et;return(Et=Ct[la])===null||Et===void 0?void 0:Et.map(function($t){return $t[Ie.value]})})}function Ar(Be,Ie,Ct){var Et=new Set(Be),$t=Ie();return Be.filter(function(hn){var kn=$t[hn],Jn=kn?kn.parent:null,$n=kn?kn.children:null;return kn&&kn.node.disabled?!0:Ct===ao?!($n&&$n.some(function(ur){return ur.key&&Et.has(ur.key)})):!(Jn&&!Jn.node.disabled&&Et.has(Jn.key))})}function ci(Be,Ie,Ct){for(var Et=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,$t=Ie,hn=[],kn=function(){var ur,$r,Sr,ii=Be[Jn],yr=(ur=$t)===null||ur===void 0?void 0:ur.findIndex(function(Pr){var ai=Pr[Ct.value];return Et?String(ai)===String(ii):ai===ii}),Ur=yr!==-1?($r=$t)===null||$r===void 0?void 0:$r[yr]:null;hn.push({value:(Sr=Ur==null?void 0:Ur[Ct.value])!==null&&Sr!==void 0?Sr:ii,index:yr,option:Ur}),$t=Ur==null?void 0:Ur[Ct.children]},Jn=0;Jn<Be.length;Jn+=1)kn();return hn}var Ki=function(Be,Ie,Ct,Et,$t){return xe.useMemo(function(){var hn=$t||function(kn){var Jn=Et?kn.slice(-1):kn,$n=" / ";return Jn.every(function(ur){return["string","number"].includes((0,gt.Z)(ur))})?Jn.join($n):Jn.reduce(function(ur,$r,Sr){var ii=xe.isValidElement($r)?xe.cloneElement($r,{key:Sr}):$r;return Sr===0?[ii]:[].concat((0,re.Z)(ur),[$n,ii])},[])};return Be.map(function(kn){var Jn,$n,ur=ci(kn,Ie,Ct),$r=hn(ur.map(function(ii){var yr,Ur=ii.option,Pr=ii.value;return(yr=Ur==null?void 0:Ur[Ct.label])!==null&&yr!==void 0?yr:Pr}),ur.map(function(ii){var yr=ii.option;return yr})),Sr=zt(kn);return{label:$r,value:Sr,key:Sr,valueCells:kn,disabled:(Jn=ur[ur.length-1])===null||Jn===void 0||($n=Jn.option)===null||$n===void 0?void 0:$n.disabled}})},[Be,Ie,Ct,$t,Et])},Lr=de(1089),nr=function(Be,Ie){var Ct=xe.useRef({options:null,info:null}),Et=xe.useCallback(function(){return Ct.current.options!==Be&&(Ct.current.options=Be,Ct.current.info=(0,Lr.I8)(Be,{fieldNames:Ie,initWrapper:function(hn){return(0,he.Z)((0,he.Z)({},hn),{},{pathKeyEntities:{}})},processEntity:function(hn,kn){var Jn=hn.nodes.map(function($n){return $n[Ie.value]}).join(Sa);kn.pathKeyEntities[Jn]=hn,hn.key=Jn}})),Ct.current.info.pathKeyEntities},[Ie,Be]);return Et},Pi=function(Be,Ie){return xe.useCallback(function(Ct){var Et=[],$t=[];return Ct.forEach(function(hn){var kn=ci(hn,Be,Ie);kn.every(function(Jn){return Jn.option})?$t.push(hn):Et.push(hn)}),[$t,Et]},[Be,Ie])},ua={},pa=[],mi=function(Ie){pa.push(Ie)};function ri(Be,Ie){if(0)var Ct}function Na(Be,Ie){if(0)var Ct}function Ba(){ua={}}function oo(Be,Ie,Ct){!Ie&&!ua[Ct]&&(Be(!1,Ct),ua[Ct]=!0)}function Qo(Be,Ie){oo(ri,Be,Ie)}function js(Be,Ie){oo(Na,Be,Ie)}Qo.preMessage=mi,Qo.resetWarned=Ba,Qo.noteOnce=js;var us=null;function ml(Be){return xe.useMemo(function(){if(!Be)return[!1,{}];var Ie={matchInputWidth:!0,limit:50};return Be&&(0,gt.Z)(Be)==="object"&&(Ie=(0,he.Z)((0,he.Z)({},Ie),Be)),Ie.limit<=0&&delete Ie.limit,[!0,Ie]},[Be])}var so=xe.memo(function(Be){var Ie=Be.children;return Ie},function(Be,Ie){return!Ie.open}),Yo=so;function vo(Be){var Ie,Ct=Be.prefixCls,Et=Be.checked,$t=Be.halfChecked,hn=Be.disabled,kn=Be.onClick,Jn=Be.disableCheckbox,$n=xe.useContext(ta),ur=$n.checkable,$r=typeof ur!="boolean"?ur:null;return xe.createElement("span",{className:je()("".concat(Ct),(Ie={},(0,it.Z)(Ie,"".concat(Ct,"-checked"),Et),(0,it.Z)(Ie,"".concat(Ct,"-indeterminate"),!Et&&$t),(0,it.Z)(Ie,"".concat(Ct,"-disabled"),hn||Jn),Ie)),onClick:kn},$r)}var co="__cascader_fix_label__";function Ls(Be){var Ie=Be.prefixCls,Ct=Be.multiple,Et=Be.options,$t=Be.activeValue,hn=Be.prevValuePath,kn=Be.onToggleOpen,Jn=Be.onSelect,$n=Be.onActive,ur=Be.checkedSet,$r=Be.halfCheckedSet,Sr=Be.loadingKeys,ii=Be.isSelectable,yr=Be.searchValue,Ur="".concat(Ie,"-menu"),Pr="".concat(Ie,"-menu-item"),ai=xe.useContext(ta),Ei=ai.fieldNames,Ae=ai.changeOnSelect,Oe=ai.expandTrigger,dt=ai.expandIcon,Se=ai.loadingIcon,at=ai.dropdownMenuColumnStyle,mt=Oe==="hover",Bt=xe.useMemo(function(){return Et.map(function(Ge){var ot,ut=Ge.disabled,It=Ge.disableCheckbox,Zt=Ge[la],nn=(ot=Ge[co])!==null&&ot!==void 0?ot:Ge[Ei.label],Ht=Ge[Ei.value],on=Gr(Ge,Ei),wn=Zt?Zt.map(function(Wn){return Wn[Ei.value]}):[].concat((0,re.Z)(hn),[Ht]),Tn=zt(wn),dn=Sr.includes(Tn),Xn=ur.has(Tn),Pn=$r.has(Tn);return{disabled:ut,label:nn,value:Ht,isLeaf:on,isLoading:dn,checked:Xn,halfChecked:Pn,option:Ge,disableCheckbox:It,fullPath:wn,fullPathKey:Tn}})},[Et,ur,Ei,$r,Sr,hn]);return xe.createElement("ul",{className:Ur,role:"menu"},Bt.map(function(Ge){var ot,ut=Ge.disabled,It=Ge.label,Zt=Ge.value,nn=Ge.isLeaf,Ht=Ge.isLoading,on=Ge.checked,wn=Ge.halfChecked,Tn=Ge.option,dn=Ge.fullPath,Xn=Ge.fullPathKey,Pn=Ge.disableCheckbox,Wn=function(){if(!(ut||yr)){var gr=(0,re.Z)(dn);mt&&nn&&gr.pop(),$n(gr)}},ar=function(){ii(Tn)&&Jn(dn,nn)},Rn;return typeof Tn.title=="string"?Rn=Tn.title:typeof It=="string"&&(Rn=It),xe.createElement("li",{key:Xn,className:je()(Pr,(ot={},(0,it.Z)(ot,"".concat(Pr,"-expand"),!nn),(0,it.Z)(ot,"".concat(Pr,"-active"),$t===Zt||$t===Xn),(0,it.Z)(ot,"".concat(Pr,"-disabled"),ut),(0,it.Z)(ot,"".concat(Pr,"-loading"),Ht),ot)),style:at,role:"menuitemcheckbox",title:Rn,"aria-checked":on,"data-path-key":Xn,onClick:function(){Wn(),!Pn&&(!Ct||nn)&&ar()},onDoubleClick:function(){Ae&&kn(!1)},onMouseEnter:function(){mt&&Wn()},onMouseDown:function(gr){gr.preventDefault()}},Ct&&xe.createElement(vo,{prefixCls:"".concat(Ie,"-checkbox"),checked:on,halfChecked:wn,disabled:ut||Pn,disableCheckbox:Pn,onClick:function(gr){Pn||(gr.stopPropagation(),ar())}}),xe.createElement("div",{className:"".concat(Pr,"-content")},It),!Ht&&dt&&!nn&&xe.createElement("div",{className:"".concat(Pr,"-expand-icon")},dt),Ht&&Se&&xe.createElement("div",{className:"".concat(Pr,"-loading-icon")},Se))}))}var zs=function(){var Be=nt(),Ie=Be.multiple,Ct=Be.open,Et=xe.useContext(ta),$t=Et.values,hn=xe.useState([]),kn=(0,ye.Z)(hn,2),Jn=kn[0],$n=kn[1];return xe.useEffect(function(){if(Ct&&!Ie){var ur=$t[0];$n(ur||[])}},[Ct]),[Jn,$n]},Yi={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ie){var Ct=Ie.keyCode;if(Ie.altKey&&!Ie.ctrlKey||Ie.metaKey||Ct>=Yi.F1&&Ct<=Yi.F12)return!1;switch(Ct){case Yi.ALT:case Yi.CAPS_LOCK:case Yi.CONTEXT_MENU:case Yi.CTRL:case Yi.DOWN:case Yi.END:case Yi.ESC:case Yi.HOME:case Yi.INSERT:case Yi.LEFT:case Yi.MAC_FF_META:case Yi.META:case Yi.NUMLOCK:case Yi.NUM_CENTER:case Yi.PAGE_DOWN:case Yi.PAGE_UP:case Yi.PAUSE:case Yi.PRINT_SCREEN:case Yi.RIGHT:case Yi.SHIFT:case Yi.UP:case Yi.WIN_KEY:case Yi.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ie){if(Ie>=Yi.ZERO&&Ie<=Yi.NINE||Ie>=Yi.NUM_ZERO&&Ie<=Yi.NUM_MULTIPLY||Ie>=Yi.A&&Ie<=Yi.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ie===0)return!0;switch(Ie){case Yi.SPACE:case Yi.QUESTION_MARK:case Yi.NUM_PLUS:case Yi.NUM_MINUS:case Yi.NUM_PERIOD:case Yi.NUM_DIVISION:case Yi.SEMICOLON:case Yi.DASH:case Yi.EQUALS:case Yi.COMMA:case Yi.PERIOD:case Yi.SLASH:case Yi.APOSTROPHE:case Yi.SINGLE_QUOTE:case Yi.OPEN_SQUARE_BRACKET:case Yi.BACKSLASH:case Yi.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},_o=Yi,Ts=function(Be,Ie,Ct,Et,$t,hn){var kn=nt(),Jn=kn.direction,$n=kn.searchValue,ur=kn.toggleOpen,$r=kn.open,Sr=Jn==="rtl",ii=xe.useMemo(function(){for(var at=-1,mt=Ie,Bt=[],Ge=[],ot=Et.length,ut=In(Ie,Ct),It=function(Tn){var dn=mt.findIndex(function(Xn,Pn){return(ut[Pn]?zt(ut[Pn]):Xn[Ct.value])===Et[Tn]});if(dn===-1)return"break";at=dn,Bt.push(at),Ge.push(Et[Tn]),mt=mt[at][Ct.children]},Zt=0;Zt<ot&&mt;Zt+=1){var nn=It(Zt);if(nn==="break")break}for(var Ht=Ie,on=0;on<Bt.length-1;on+=1)Ht=Ht[Bt[on]][Ct.children];return[Ge,at,Ht,ut]},[Et,Ct,Ie]),yr=(0,ye.Z)(ii,4),Ur=yr[0],Pr=yr[1],ai=yr[2],Ei=yr[3],Ae=function(mt){$t(mt)},Oe=function(mt){var Bt=ai.length,Ge=Pr;Ge===-1&&mt<0&&(Ge=Bt);for(var ot=0;ot<Bt;ot+=1){Ge=(Ge+mt+Bt)%Bt;var ut=ai[Ge];if(ut&&!ut.disabled){var It=Ur.slice(0,-1).concat(Ei[Ge]?zt(Ei[Ge]):ut[Ct.value]);Ae(It);return}}},dt=function(){if(Ur.length>1){var mt=Ur.slice(0,-1);Ae(mt)}else ur(!1)},Se=function(){var mt,Bt=((mt=ai[Pr])===null||mt===void 0?void 0:mt[Ct.children])||[],Ge=Bt.find(function(ut){return!ut.disabled});if(Ge){var ot=[].concat((0,re.Z)(Ur),[Ge[Ct.value]]);Ae(ot)}};xe.useImperativeHandle(Be,function(){return{onKeyDown:function(mt){var Bt=mt.which;switch(Bt){case _o.UP:case _o.DOWN:{var Ge=0;Bt===_o.UP?Ge=-1:Bt===_o.DOWN&&(Ge=1),Ge!==0&&Oe(Ge);break}case _o.LEFT:{if($n)break;Sr?Se():dt();break}case _o.RIGHT:{if($n)break;Sr?dt():Se();break}case _o.BACKSPACE:{$n||dt();break}case _o.ENTER:{if(Ur.length){var ot=ai[Pr],ut=(ot==null?void 0:ot[la])||[];ut.length?hn(ut.map(function(It){return It[Ct.value]}),ut[ut.length-1]):hn(Ur,ai[Pr])}break}case _o.ESC:ur(!1),$r&&mt.stopPropagation()}},onKeyUp:function(){}}})},cs=xe.forwardRef(function(Be,Ie){var Ct,Et,$t,hn,kn=nt(),Jn=kn.prefixCls,$n=kn.multiple,ur=kn.searchValue,$r=kn.toggleOpen,Sr=kn.notFoundContent,ii=kn.direction,yr=kn.open,Ur=xe.useRef(),Pr=ii==="rtl",ai=xe.useContext(ta),Ei=ai.options,Ae=ai.values,Oe=ai.halfValues,dt=ai.fieldNames,Se=ai.changeOnSelect,at=ai.onSelect,mt=ai.searchOptions,Bt=ai.dropdownPrefixCls,Ge=ai.loadData,ot=ai.expandTrigger,ut=Bt||Jn,It=xe.useState([]),Zt=(0,ye.Z)(It,2),nn=Zt[0],Ht=Zt[1],on=function(qn){if(!(!Ge||ur)){var Or=ci(qn,Ei,dt),Vr=Or.map(function(Ii){var na=Ii.option;return na}),Vi=Vr[Vr.length-1];if(Vi&&!Gr(Vi,dt)){var Ni=zt(qn);Ht(function(Ii){return[].concat((0,re.Z)(Ii),[Ni])}),Ge(Vr)}}};xe.useEffect(function(){nn.length&&nn.forEach(function(fr){var qn=qt(fr),Or=ci(qn,Ei,dt,!0).map(function(Vi){var Ni=Vi.option;return Ni}),Vr=Or[Or.length-1];(!Vr||Vr[dt.children]||Gr(Vr,dt))&&Ht(function(Vi){return Vi.filter(function(Ni){return Ni!==fr})})})},[Ei,nn,dt]);var wn=xe.useMemo(function(){return new Set(Wt(Ae))},[Ae]),Tn=xe.useMemo(function(){return new Set(Wt(Oe))},[Oe]),dn=zs(),Xn=(0,ye.Z)(dn,2),Pn=Xn[0],Wn=Xn[1],ar=function(qn){Wn(qn),on(qn)},Rn=function(qn){var Or=qn.disabled,Vr=Gr(qn,dt);return!Or&&(Vr||Se||$n)},br=function(qn,Or){var Vr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;at(qn),!$n&&(Or||Se&&(ot==="hover"||Vr))&&$r(!1)},gr=xe.useMemo(function(){return ur?mt:Ei},[ur,mt,Ei]),rr=xe.useMemo(function(){for(var fr=[{options:gr}],qn=gr,Or=In(qn,dt),Vr=function(){var na=Pn[Vi],Ci=qn.find(function(Ia,Qr){return(Or[Qr]?zt(Or[Qr]):Ia[dt.value])===na}),ya=Ci==null?void 0:Ci[dt.children];if(!(ya!=null&&ya.length))return"break";qn=ya,fr.push({options:ya})},Vi=0;Vi<Pn.length;Vi+=1){var Ni=Vr();if(Ni==="break")break}return fr},[gr,Pn,dt]),Yn=function(qn,Or){Rn(Or)&&br(qn,Gr(Or,dt),!0)};Ts(Ie,gr,dt,Pn,ar,Yn),xe.useEffect(function(){for(var fr=0;fr<Pn.length;fr+=1){var qn,Or=Pn.slice(0,fr+1),Vr=zt(Or),Vi=(qn=Ur.current)===null||qn===void 0?void 0:qn.querySelector('li[data-path-key="'.concat(Vr.replace(/\\{0,2}"/g,'\\"'),'"]'));Vi&&Ti(Vi)}},[Pn]);var Kn=!((Ct=rr[0])!==null&&Ct!==void 0&&(Et=Ct.options)!==null&&Et!==void 0&&Et.length),dr=[($t={},(0,it.Z)($t,dt.value,"__EMPTY__"),(0,it.Z)($t,co,Sr),(0,it.Z)($t,"disabled",!0),$t)],Gn=(0,he.Z)((0,he.Z)({},Be),{},{multiple:!Kn&&$n,onSelect:br,onActive:ar,onToggleOpen:$r,checkedSet:wn,halfCheckedSet:Tn,loadingKeys:nn,isSelectable:Rn}),hr=Kn?[{options:dr}]:rr,vr=hr.map(function(fr,qn){var Or=Pn.slice(0,qn),Vr=Pn[qn];return xe.createElement(Ls,(0,Ee.Z)({key:qn},Gn,{searchValue:ur,prefixCls:ut,options:fr.options,prevValuePath:Or,activeValue:Vr}))});return xe.createElement(Yo,{open:yr},xe.createElement("div",{className:je()("".concat(ut,"-menus"),(hn={},(0,it.Z)(hn,"".concat(ut,"-menu-empty"),Kn),(0,it.Z)(hn,"".concat(ut,"-rtl"),Pr),hn)),ref:Ur},vr))}),$s=cs;function Ha(Be){var Ie=Be.onPopupVisibleChange,Ct=Be.popupVisible,Et=Be.popupClassName,$t=Be.popupPlacement;warning(!Ie,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Ct===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Et===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning($t===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function El(Be,Ie){if(Be){var Ct=function Et($t){for(var hn=0;hn<$t.length;hn++){var kn=$t[hn];if(kn[Ie==null?void 0:Ie.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(kn[Ie==null?void 0:Ie.children])&&Et(kn[Ie==null?void 0:Ie.children]))return!0}};Ct(Be)}}var Gs=null,gl=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function hu(Be){return Array.isArray(Be)&&Array.isArray(Be[0])}function pu(Be){return Be?hu(Be)?Be:(Be.length===0?[]:[Be]).map(function(Ie){return Array.isArray(Ie)?Ie:[Ie]}):[]}var Ps=xe.forwardRef(function(Be,Ie){var Ct=Be.id,Et=Be.prefixCls,$t=Et===void 0?"rc-cascader":Et,hn=Be.fieldNames,kn=Be.defaultValue,Jn=Be.value,$n=Be.changeOnSelect,ur=Be.onChange,$r=Be.displayRender,Sr=Be.checkable,ii=Be.autoClearSearchValue,yr=ii===void 0?!0:ii,Ur=Be.searchValue,Pr=Be.onSearch,ai=Be.showSearch,Ei=Be.expandTrigger,Ae=Be.options,Oe=Be.dropdownPrefixCls,dt=Be.loadData,Se=Be.popupVisible,at=Be.open,mt=Be.popupClassName,Bt=Be.dropdownClassName,Ge=Be.dropdownMenuColumnStyle,ot=Be.popupPlacement,ut=Be.placement,It=Be.onDropdownVisibleChange,Zt=Be.onPopupVisibleChange,nn=Be.expandIcon,Ht=nn===void 0?">":nn,on=Be.loadingIcon,wn=Be.children,Tn=Be.dropdownMatchSelectWidth,dn=Tn===void 0?!1:Tn,Xn=Be.showCheckedStrategy,Pn=Xn===void 0?Ja:Xn,Wn=(0,qe.Z)(Be,gl),ar=$a(Ct),Rn=!!Sr,br=_i(kn,{value:Jn,postState:pu}),gr=(0,ye.Z)(br,2),rr=gr[0],Yn=gr[1],Kn=xe.useMemo(function(){return Fn(hn)},[JSON.stringify(hn)]),dr=xe.useMemo(function(){return Ae||[]},[Ae]),Gn=nr(dr,Kn),hr=xe.useCallback(function(qi){var Yr=Gn();return qi.map(function(Si){var oa=Yr[Si].nodes;return oa.map(function($i){return $i[Kn.value]})})},[Gn,Kn]),vr=_i("",{value:Ur,postState:function(Yr){return Yr||""}}),fr=(0,ye.Z)(vr,2),qn=fr[0],Or=fr[1],Vr=function(Yr,Si){Or(Yr),Si.source!=="blur"&&Pr&&Pr(Yr)},Vi=ml(ai),Ni=(0,ye.Z)(Vi,2),Ii=Ni[0],na=Ni[1],Ci=Wa(qn,dr,Kn,Oe||$t,na,$n),ya=Pi(dr,Kn),Ia=xe.useMemo(function(){var qi=ya(rr),Yr=(0,ye.Z)(qi,2),Si=Yr[0],oa=Yr[1];if(!Rn||!rr.length)return[Si,[],oa];var $i=Wt(Si),Fa=Gn(),ti=(0,Bn.S)($i,!0,Fa),Un=ti.checkedKeys,Dr=ti.halfCheckedKeys;return[hr(Un),hr(Dr),oa]},[Rn,rr,Gn,hr,ya]),Qr=(0,ye.Z)(Ia,3),Er=Qr[0],hi=Qr[1],Oi=Qr[2],gi=xe.useMemo(function(){var qi=Wt(Er),Yr=Ar(qi,Gn,Pn);return[].concat((0,re.Z)(Oi),(0,re.Z)(hr(Yr)))},[Er,Gn,hr,Oi,Pn]),Xi=Ki(gi,dr,Kn,Rn,$r),yi=mr(function(qi){if(Yn(qi),ur){var Yr=pu(qi),Si=Yr.map(function(Fa){return ci(Fa,dr,Kn).map(function(ti){return ti.option})}),oa=Rn?Yr:Yr[0],$i=Rn?Si:Si[0];ur(oa,$i)}}),Zi=mr(function(qi){if((!Rn||yr)&&Or(""),!Rn)yi(qi);else{var Yr=zt(qi),Si=Wt(Er),oa=Wt(hi),$i=Si.includes(Yr),Fa=Oi.some(function(Qa){return zt(Qa)===Yr}),ti=Er,Un=Oi;if(Fa&&!$i)Un=Oi.filter(function(Qa){return zt(Qa)!==Yr});else{var Dr=$i?Si.filter(function(Qa){return Qa!==Yr}):[].concat((0,re.Z)(Si),[Yr]),Hr=Gn(),or;if($i){var zi=(0,Bn.S)(Dr,{checked:!1,halfCheckedKeys:oa},Hr);or=zi.checkedKeys}else{var ga=(0,Bn.S)(Dr,!0,Hr);or=ga.checkedKeys}var eo=Ar(or,Gn,Pn);ti=hr(eo)}yi([].concat((0,re.Z)(Un),(0,re.Z)(ti)))}}),da=function(Yr,Si){if(Si.type==="clear"){yi([]);return}var oa=Si.values[0],$i=oa.valueCells;Zi($i)},Da=at!==void 0?at:Se,Ra=Bt||mt,Hi=ut||ot,Ai=function(Yr){It==null||It(Yr),Zt==null||Zt(Yr)},ba=xe.useMemo(function(){return{options:dr,fieldNames:Kn,values:Er,halfValues:hi,changeOnSelect:$n,onSelect:Zi,checkable:Sr,searchOptions:Ci,dropdownPrefixCls:Oe,loadData:dt,expandTrigger:Ei,expandIcon:Ht,loadingIcon:on,dropdownMenuColumnStyle:Ge}},[dr,Kn,Er,hi,$n,Zi,Sr,Ci,Oe,dt,Ei,Ht,on,Ge]),fa=!(qn?Ci:dr).length,aa=qn&&na.matchInputWidth||fa?{}:{minWidth:"auto"};return xe.createElement(ta.Provider,{value:ba},xe.createElement(jo,(0,Ee.Z)({},Wn,{ref:Ie,id:ar,prefixCls:$t,autoClearSearchValue:yr,dropdownMatchSelectWidth:dn,dropdownStyle:aa,displayValues:Xi,onDisplayValuesChange:da,mode:Rn?"multiple":void 0,searchValue:qn,onSearch:Vr,showSearch:Ii,OptionList:$s,emptyOptions:fa,open:Da,dropdownClassName:Ra,placement:Hi,onDropdownVisibleChange:Ai,getRawInputElement:function(){return wn}})))});Ps.SHOW_PARENT=Ja,Ps.SHOW_CHILD=ao;var mu=Ps,Cl=mu,Gl=de(10366),Ql=de(33603),zl=de(8745),Wl=de(9708),Zl=de(53124),nu=de(88258),Ws=de(98866),Yl=de(98675),Sl=de(65223),Dl=de(87244),ru=de(13458),iu=de(78642),gu=de(46163),Pu=de(4173),Nl=de(63185),au=de(14747),ol=de(80110),Vl=de(67968);const Qs=Be=>{const{prefixCls:Ie,componentCls:Ct,antCls:Et}=Be,$t=`${Ct}-menu-item`,hn=`
|
|
|
&${$t}-expand ${$t}-expand-icon,
|
|
|
${$t}-loading-icon
|
|
|
`;return[{[Ct]:{width:Be.controlWidth}},{[`${Ct}-dropdown`]:[(0,Nl.C2)(`${Ie}-checkbox`,Be),{[`&${Et}-select-dropdown`]:{padding:0}},{[Ct]:{"&-checkbox":{top:0,marginInlineEnd:Be.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Ct}-menu-empty`]:{[`${Ct}-menu`]:{width:"100%",height:"auto",[$t]:{color:Be.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:Be.controlItemWidth,height:Be.dropdownHeight,margin:0,padding:Be.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Be.lineWidth}px ${Be.lineType} ${Be.colorSplit}`},"&-item":Object.assign(Object.assign({},au.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Be.optionPadding,lineHeight:Be.lineHeight,cursor:"pointer",transition:`all ${Be.motionDurationMid}`,borderRadius:Be.borderRadiusSM,"&:hover":{background:Be.controlItemBgHover},"&-disabled":{color:Be.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[hn]:{color:Be.colorTextDisabled}},[`&-active:not(${$t}-disabled)`]:{"&, &:hover":{fontWeight:Be.optionSelectedFontWeight,backgroundColor:Be.optionSelectedBg}},"&-content":{flex:"auto"},[hn]:{marginInlineStart:Be.paddingXXS,color:Be.colorTextDescription,fontSize:Be.fontSizeIcon},"&-keyword":{color:Be.colorHighlight}})}}}]},{[`${Ct}-dropdown-rtl`]:{direction:"rtl"}},(0,ol.c)(Be)]};var Al=(0,Vl.Z)("Cascader",Be=>[Qs(Be)],Be=>{const Ie=Math.round((Be.controlHeight-Be.fontSize*Be.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Be.controlItemBgActive,optionSelectedFontWeight:Be.fontWeightStrong,optionPadding:`${Ie}px ${Be.paddingSM}px`,menuPadding:Be.paddingXXS}}),Il=function(Be,Ie){var Ct={};for(var Et in Be)Object.prototype.hasOwnProperty.call(Be,Et)&&Ie.indexOf(Et)<0&&(Ct[Et]=Be[Et]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Et=Object.getOwnPropertySymbols(Be);$t<Et.length;$t++)Ie.indexOf(Et[$t])<0&&Object.prototype.propertyIsEnumerable.call(Be,Et[$t])&&(Ct[Et[$t]]=Be[Et[$t]]);return Ct};const{SHOW_CHILD:Jl,SHOW_PARENT:Ol}=Cl;function Fl(Be,Ie,Ct){const Et=Be.toLowerCase().split(Ie).reduce((kn,Jn,$n)=>$n===0?[Jn]:[].concat((0,re.Z)(kn),[Ie,Jn]),[]),$t=[];let hn=0;return Et.forEach((kn,Jn)=>{const $n=hn+kn.length;let ur=Be.slice(hn,$n);hn=$n,Jn%2===1&&(ur=xe.createElement("span",{className:`${Ct}-menu-item-keyword`,key:`separator-${Jn}`},ur)),$t.push(ur)}),$t}const lo=(Be,Ie,Ct,Et)=>{const $t=[],hn=Be.toLowerCase();return Ie.forEach((kn,Jn)=>{Jn!==0&&$t.push(" / ");let $n=kn[Et.label];const ur=typeof $n;(ur==="string"||ur==="number")&&($n=Fl(String($n),hn,Ct)),$t.push($n)}),$t},Ea=xe.forwardRef((Be,Ie)=>{const{prefixCls:Ct,size:Et,disabled:$t,className:hn,rootClassName:kn,multiple:Jn,bordered:$n=!0,transitionName:ur,choiceTransitionName:$r="",popupClassName:Sr,dropdownClassName:ii,expandIcon:yr,placement:Ur,showSearch:Pr,allowClear:ai=!0,notFoundContent:Ei,direction:Ae,getPopupContainer:Oe,status:dt,showArrow:Se,builtinPlacements:at,style:mt}=Be,Bt=Il(Be,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Ge=(0,Gl.Z)(Bt,["suffixIcon"]),{getPopupContainer:ot,getPrefixCls:ut,renderEmpty:It,direction:Zt,popupOverflow:nn,cascader:Ht}=xe.useContext(Zl.E_),on=Ae||Zt,wn=on==="rtl",{status:Tn,hasFeedback:dn,isFormItemInput:Xn,feedbackIcon:Pn}=xe.useContext(Sl.aM),Wn=(0,Wl.F)(Tn,dt),ar=Ei||(It==null?void 0:It("Cascader"))||xe.createElement(nu.Z,{componentName:"Cascader"}),Rn=ut(),br=ut("select",Ct),gr=ut("cascader",Ct),[rr,Yn]=(0,Dl.Z)(br),[Kn]=Al(gr),{compactSize:dr,compactItemClassnames:Gn}=(0,Pu.ri)(br,Ae),hr=je()(Sr||ii,`${gr}-dropdown`,{[`${gr}-dropdown-rtl`]:on==="rtl"},kn,Yn),vr=xe.useMemo(()=>{if(!Pr)return Pr;let Oi={render:lo};return typeof Pr=="object"&&(Oi=Object.assign(Object.assign({},Oi),Pr)),Oi},[Pr]),fr=(0,Yl.Z)(Oi=>{var gi;return(gi=Et!=null?Et:dr)!==null&&gi!==void 0?gi:Oi}),qn=xe.useContext(Ws.Z),Or=$t!=null?$t:qn;let Vr=yr;yr||(Vr=wn?xe.createElement(tt.Z,null):xe.createElement(Pe.Z,null));const Vi=xe.createElement("span",{className:`${br}-menu-item-loading-icon`},xe.createElement(At.Z,{spin:!0})),Ni=xe.useMemo(()=>Jn?xe.createElement("span",{className:`${gr}-checkbox-inner`}):!1,[Jn]),Ii=(0,iu.Z)(Be.suffixIcon,Se),{suffixIcon:na,removeIcon:Ci,clearIcon:ya}=(0,gu.Z)(Object.assign(Object.assign({},Be),{hasFeedback:dn,feedbackIcon:Pn,showSuffixIcon:Ii,multiple:Jn,prefixCls:br,componentName:"Cascader"})),Ia=xe.useMemo(()=>Ur!==void 0?Ur:wn?"bottomRight":"bottomLeft",[Ur,wn]),Qr=(0,ru.Z)(at,nn),Er=ai===!0?{clearIcon:ya}:ai,hi=xe.createElement(Cl,Object.assign({prefixCls:br,className:je()(!Ct&&gr,{[`${br}-lg`]:fr==="large",[`${br}-sm`]:fr==="small",[`${br}-rtl`]:wn,[`${br}-borderless`]:!$n,[`${br}-in-form-item`]:Xn},(0,Wl.Z)(br,Wn,dn),Gn,Ht==null?void 0:Ht.className,hn,kn,Yn),disabled:Or,style:Object.assign(Object.assign({},Ht==null?void 0:Ht.style),mt)},Ge,{builtinPlacements:Qr,direction:on,placement:Ia,notFoundContent:ar,allowClear:Er,showSearch:vr,expandIcon:Vr,suffixIcon:na,removeIcon:Ci,loadingIcon:Vi,checkable:Ni,dropdownClassName:hr,dropdownPrefixCls:Ct||gr,choiceTransitionName:(0,Ql.m)(Rn,"",$r),transitionName:(0,Ql.m)(Rn,"slide-up",ur),getPopupContainer:Oe||ot,ref:Ie}));return Kn(rr(hi))}),Co=(0,zl.Z)(Ea);Ea.SHOW_PARENT=Ol,Ea.SHOW_CHILD=Jl,Ea._InternalPanelDoNotUseOrYouWillBeFired=Co;var Do=Ea},47221:function(cn,yn,de){"use strict";de.d(yn,{default:function(){return _n}});var re=de(91034),xe=de(94184),tt=de.n(xe),At=de(97685),Pe=de(74902),Ne=de(71002),je=de(21770),Ee=de(80334),ye=de(67294),qe=de(87462),it=de(45987),he=de(50344),gt=de(4942),kt=de(62874),Xe=de(15105),ft=ye.forwardRef(function(Ce,se){var ue,ge=Ce.prefixCls,pe=Ce.forceRender,le=Ce.className,ze=Ce.style,bt=Ce.children,Pt=Ce.isActive,mn=Ce.role,ln=ye.useState(Pt||pe),Xt=(0,At.Z)(ln,2),Kt=Xt[0],sr=Xt[1];return ye.useEffect(function(){(pe||Pt)&&sr(!0)},[pe,Pt]),Kt?ye.createElement("div",{ref:se,className:tt()("".concat(ge,"-content"),(ue={},(0,gt.Z)(ue,"".concat(ge,"-content-active"),Pt),(0,gt.Z)(ue,"".concat(ge,"-content-inactive"),!Pt),ue),le),style:ze,role:mn},ye.createElement("div",{className:"".concat(ge,"-content-box")},bt)):null});ft.displayName="PanelContent";var Ze=ft,Je=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],et=ye.forwardRef(function(Ce,se){var ue,ge,pe=Ce.showArrow,le=pe===void 0?!0:pe,ze=Ce.headerClass,bt=Ce.isActive,Pt=Ce.onItemClick,mn=Ce.forceRender,ln=Ce.className,Xt=Ce.prefixCls,Kt=Ce.collapsible,sr=Ce.accordion,mr=Ce.panelKey,Gt=Ce.extra,rn=Ce.header,Jr=Ce.expandIcon,_r=Ce.openMotion,xr=Ce.destroyInactivePanel,wr=Ce.children,Ji=(0,it.Z)(Ce,Je),Ir=Kt==="disabled",Wr=Kt==="header",Tr=Kt==="icon",si=Gt!=null&&typeof Gt!="boolean",pi=function(){Pt==null||Pt(mr)},Wi=function(Dn){(Dn.key==="Enter"||Dn.keyCode===Xe.Z.ENTER||Dn.which===Xe.Z.ENTER)&&pi()},bi=typeof Jr=="function"?Jr(Ce):ye.createElement("i",{className:"arrow"});bi&&(bi=ye.createElement("div",{className:"".concat(Xt,"-expand-icon"),onClick:["header","icon"].includes(Kt)?pi:void 0},bi));var kr=tt()((ue={},(0,gt.Z)(ue,"".concat(Xt,"-item"),!0),(0,gt.Z)(ue,"".concat(Xt,"-item-active"),bt),(0,gt.Z)(ue,"".concat(Xt,"-item-disabled"),Ir),ue),ln),an=tt()(ze,(ge={},(0,gt.Z)(ge,"".concat(Xt,"-header"),!0),(0,gt.Z)(ge,"".concat(Xt,"-header-collapsible-only"),Wr),(0,gt.Z)(ge,"".concat(Xt,"-icon-collapsible-only"),Tr),ge)),Nn={className:an,"aria-expanded":bt,"aria-disabled":Ir,onKeyDown:Wi};return!Wr&&!Tr&&(Nn.onClick=pi,Nn.role=sr?"tab":"button",Nn.tabIndex=Ir?-1:0),ye.createElement("div",(0,qe.Z)({},Ji,{ref:se,className:kr}),ye.createElement("div",Nn,le&&bi,ye.createElement("span",{className:"".concat(Xt,"-header-text"),onClick:Kt==="header"?pi:void 0},rn),si&&ye.createElement("div",{className:"".concat(Xt,"-extra")},Gt)),ye.createElement(kt.Z,(0,qe.Z)({visible:bt,leavedClassName:"".concat(Xt,"-content-hidden")},_r,{forceRender:mn,removeOnLeave:xr}),function(On,Dn){var Mr=On.className,vn=On.style;return ye.createElement(Ze,{ref:Dn,prefixCls:Xt,className:Mr,style:vn,isActive:bt,forceRender:mn,role:sr?"tabpanel":void 0},wr)}))}),Ye=et,We=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],$e=function(se,ue){var ge=ue.prefixCls,pe=ue.accordion,le=ue.collapsible,ze=ue.destroyInactivePanel,bt=ue.onItemClick,Pt=ue.activeKey,mn=ue.openMotion,ln=ue.expandIcon;return se.map(function(Xt,Kt){var sr=Xt.children,mr=Xt.label,Gt=Xt.key,rn=Xt.collapsible,Jr=Xt.onItemClick,_r=Xt.destroyInactivePanel,xr=(0,it.Z)(Xt,We),wr=String(Gt!=null?Gt:Kt),Ji=rn!=null?rn:le,Ir=_r!=null?_r:ze,Wr=function(pi){Ji!=="disabled"&&(bt(pi),Jr==null||Jr(pi))},Tr=!1;return pe?Tr=Pt[0]===wr:Tr=Pt.indexOf(wr)>-1,ye.createElement(Ye,(0,qe.Z)({},xr,{prefixCls:ge,key:wr,panelKey:wr,isActive:Tr,accordion:pe,openMotion:mn,expandIcon:ln,header:mr,collapsible:Ji,onItemClick:Wr,destroyInactivePanel:Ir}),sr)})},lt=function(se,ue,ge){if(!se)return null;var pe=ge.prefixCls,le=ge.accordion,ze=ge.collapsible,bt=ge.destroyInactivePanel,Pt=ge.onItemClick,mn=ge.activeKey,ln=ge.openMotion,Xt=ge.expandIcon,Kt=se.key||String(ue),sr=se.props,mr=sr.header,Gt=sr.headerClass,rn=sr.destroyInactivePanel,Jr=sr.collapsible,_r=sr.onItemClick,xr=!1;le?xr=mn[0]===Kt:xr=mn.indexOf(Kt)>-1;var wr=Jr!=null?Jr:ze,Ji=function(Tr){wr!=="disabled"&&(Pt(Tr),_r==null||_r(Tr))},Ir={key:Kt,panelKey:Kt,header:mr,headerClass:Gt,isActive:xr,prefixCls:pe,destroyInactivePanel:rn!=null?rn:bt,openMotion:ln,accordion:le,children:se.props.children,onItemClick:Ji,expandIcon:Xt,collapsible:wr};return typeof se.type=="string"?se:(Object.keys(Ir).forEach(function(Wr){typeof Ir[Wr]=="undefined"&&delete Ir[Wr]}),ye.cloneElement(se,Ir))};function Tt(Ce,se,ue){return Array.isArray(Ce)?$e(Ce,ue):(0,he.Z)(se).map(function(ge,pe){return lt(ge,pe,ue)})}var _t=Tt;function Ot(Ce){var se=Ce;if(!Array.isArray(se)){var ue=(0,Ne.Z)(se);se=ue==="number"||ue==="string"?[se]:[]}return se.map(function(ge){return String(ge)})}var st=ye.forwardRef(function(Ce,se){var ue=Ce.prefixCls,ge=ue===void 0?"rc-collapse":ue,pe=Ce.destroyInactivePanel,le=pe===void 0?!1:pe,ze=Ce.style,bt=Ce.accordion,Pt=Ce.className,mn=Ce.children,ln=Ce.collapsible,Xt=Ce.openMotion,Kt=Ce.expandIcon,sr=Ce.activeKey,mr=Ce.defaultActiveKey,Gt=Ce.onChange,rn=Ce.items,Jr=tt()(ge,Pt),_r=(0,je.Z)([],{value:sr,onChange:function(si){return Gt==null?void 0:Gt(si)},defaultValue:mr,postState:Ot}),xr=(0,At.Z)(_r,2),wr=xr[0],Ji=xr[1],Ir=function(si){return Ji(function(){if(bt)return wr[0]===si?[]:[si];var pi=wr.indexOf(si),Wi=pi>-1;return Wi?wr.filter(function(bi){return bi!==si}):[].concat((0,Pe.Z)(wr),[si])})};(0,Ee.ZP)(!mn,"`children` will be removed in next major version. Please use `items` instead.");var Wr=_t(rn,mn,{prefixCls:ge,accordion:bt,openMotion:Xt,expandIcon:Kt,collapsible:ln,destroyInactivePanel:le,onItemClick:Ir,activeKey:wr});return ye.createElement("div",{ref:se,className:Jr,style:ze,role:bt?"tablist":void 0},Wr)}),ct=Object.assign(st,{Panel:Ye}),He=ct,pt=ct.Panel,Ve=de(37419),Qe=de(10366),Fe=de(33603),wt=de(96159),Mt=de(53124),jt=de(98675),Le=ye.forwardRef((Ce,se)=>{const{getPrefixCls:ue}=ye.useContext(Mt.E_),{prefixCls:ge,className:pe,showArrow:le=!0}=Ce,ze=ue("collapse",ge),bt=tt()({[`${ze}-no-arrow`]:!le},pe);return ye.createElement(He.Panel,Object.assign({ref:se},Ce,{prefixCls:ze,className:bt}))}),Nt=de(14747),Rt=de(33507),Yt=de(67968),vt=de(45503);const nt=Ce=>{const{componentCls:se,contentBg:ue,padding:ge,headerBg:pe,headerPadding:le,collapseHeaderPaddingSM:ze,collapseHeaderPaddingLG:bt,collapsePanelBorderRadius:Pt,lineWidth:mn,lineType:ln,colorBorder:Xt,colorText:Kt,colorTextHeading:sr,colorTextDisabled:mr,fontSize:Gt,fontSizeLG:rn,lineHeight:Jr,marginSM:_r,paddingSM:xr,paddingLG:wr,paddingXS:Ji,motionDurationSlow:Ir,fontSizeIcon:Wr,contentPadding:Tr}=Ce,si=`${mn}px ${ln} ${Xt}`;return{[se]:Object.assign(Object.assign({},(0,Nt.Wf)(Ce)),{backgroundColor:pe,border:si,borderBottom:0,borderRadius:`${Pt}px`,"&-rtl":{direction:"rtl"},[`& > ${se}-item`]:{borderBottom:si,"&:last-child":{[`
|
|
|
&,
|
|
|
& > ${se}-header`]:{borderRadius:`0 0 ${Pt}px ${Pt}px`}},[`> ${se}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:le,color:sr,lineHeight:Jr,cursor:"pointer",transition:`all ${Ir}, visibility 0s`,[`> ${se}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${se}-expand-icon`]:{height:Gt*Jr,display:"flex",alignItems:"center",paddingInlineEnd:_r},[`${se}-arrow`]:Object.assign(Object.assign({},(0,Nt.Ro)()),{fontSize:Wr,svg:{transition:`transform ${Ir}`}}),[`${se}-header-text`]:{marginInlineEnd:"auto"}},[`${se}-header-collapsible-only`]:{cursor:"default",[`${se}-header-text`]:{flex:"none",cursor:"pointer"}},[`${se}-icon-collapsible-only`]:{cursor:"default",[`${se}-expand-icon`]:{cursor:"pointer"}}},[`${se}-content`]:{color:Kt,backgroundColor:ue,borderTop:si,[`& > ${se}-content-box`]:{padding:Tr},"&-hidden":{display:"none"}},"&-small":{[`> ${se}-item`]:{[`> ${se}-header`]:{padding:ze,paddingInlineStart:Ji,[`> ${se}-expand-icon`]:{marginInlineStart:xr-Ji}},[`> ${se}-content > ${se}-content-box`]:{padding:xr}}},"&-large":{[`> ${se}-item`]:{fontSize:rn,[`> ${se}-header`]:{padding:bt,paddingInlineStart:ge,[`> ${se}-expand-icon`]:{height:rn*Jr,marginInlineStart:wr-ge}},[`> ${se}-content > ${se}-content-box`]:{padding:wr}}},[`${se}-item:last-child`]:{[`> ${se}-content`]:{borderRadius:`0 0 ${Pt}px ${Pt}px`}},[`& ${se}-item-disabled > ${se}-header`]:{"\n &,\n & > .arrow\n ":{color:mr,cursor:"not-allowed"}},[`&${se}-icon-position-end`]:{[`& > ${se}-item`]:{[`> ${se}-header`]:{[`${se}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:_r}}}}})}},Vt=Ce=>{const{componentCls:se}=Ce,ue=`> ${se}-item > ${se}-header ${se}-arrow svg`;return{[`${se}-rtl`]:{[ue]:{transform:"rotate(180deg)"}}}},un=Ce=>{const{componentCls:se,headerBg:ue,paddingXXS:ge,colorBorder:pe}=Ce;return{[`${se}-borderless`]:{backgroundColor:ue,border:0,[`> ${se}-item`]:{borderBottom:`1px solid ${pe}`},[`
|
|
|
> ${se}-item:last-child,
|
|
|
> ${se}-item:last-child ${se}-header
|
|
|
`]:{borderRadius:0},[`> ${se}-item:last-child`]:{borderBottom:0},[`> ${se}-item > ${se}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${se}-item > ${se}-content > ${se}-content-box`]:{paddingTop:ge}}}},Ut=Ce=>{const{componentCls:se,paddingSM:ue}=Ce;return{[`${se}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${se}-item`]:{borderBottom:0,[`> ${se}-content`]:{backgroundColor:"transparent",border:0,[`> ${se}-content-box`]:{paddingBlock:ue}}}}}};var fn=(0,Yt.Z)("Collapse",Ce=>{const se=(0,vt.TS)(Ce,{collapseHeaderPaddingSM:`${Ce.paddingXS}px ${Ce.paddingSM}px`,collapseHeaderPaddingLG:`${Ce.padding}px ${Ce.paddingLG}px`,collapsePanelBorderRadius:Ce.borderRadiusLG});return[nt(se),un(se),Ut(se),Vt(se),(0,Rt.Z)(se)]},Ce=>({headerPadding:`${Ce.paddingSM}px ${Ce.padding}px`,headerBg:Ce.colorFillAlter,contentPadding:`${Ce.padding}px 16px`,contentBg:Ce.colorBgContainer})),En=Object.assign(ye.forwardRef((Ce,se)=>{const{getPrefixCls:ue,direction:ge,collapse:pe}=ye.useContext(Mt.E_),{prefixCls:le,className:ze,rootClassName:bt,style:Pt,bordered:mn=!0,ghost:ln,size:Xt,expandIconPosition:Kt="start",children:sr,expandIcon:mr}=Ce,Gt=(0,jt.Z)(si=>{var pi;return(pi=Xt!=null?Xt:si)!==null&&pi!==void 0?pi:"middle"}),rn=ue("collapse",le),Jr=ue(),[_r,xr]=fn(rn),wr=ye.useMemo(()=>Kt==="left"?"start":Kt==="right"?"end":Kt,[Kt]),Ji=function(){let si=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const pi=mr?mr(si):ye.createElement(re.Z,{rotate:si.isActive?90:void 0});return(0,wt.Tm)(pi,()=>({className:tt()(pi.props.className,`${rn}-arrow`)}))},Ir=tt()(`${rn}-icon-position-${wr}`,{[`${rn}-borderless`]:!mn,[`${rn}-rtl`]:ge==="rtl",[`${rn}-ghost`]:!!ln,[`${rn}-${Gt}`]:Gt!=="middle"},pe==null?void 0:pe.className,ze,bt,xr),Wr=Object.assign(Object.assign({},(0,Fe.Z)(Jr)),{motionAppear:!1,leavedClassName:`${rn}-content-hidden`}),Tr=ye.useMemo(()=>sr?(0,Ve.Z)(sr).map((si,pi)=>{var Wi,bi;if(!((Wi=si.props)===null||Wi===void 0)&&Wi.disabled){const kr=(bi=si.key)!==null&&bi!==void 0?bi:String(pi),{disabled:an,collapsible:Nn}=si.props,On=Object.assign(Object.assign({},(0,Qe.Z)(si.props,["disabled"])),{key:kr,collapsible:Nn!=null?Nn:an?"disabled":void 0});return(0,wt.Tm)(si,On)}return si}):null,[sr]);return _r(ye.createElement(He,Object.assign({ref:se,openMotion:Wr},(0,Qe.Z)(Ce,["rootClassName"]),{expandIcon:Ji,prefixCls:rn,className:Ir,style:Object.assign(Object.assign({},pe==null?void 0:pe.style),Pt)}),Tr))}),{Panel:Le}),_n=En},47897:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return ge}});var re=de(3407),xe=de(94184),tt=de.n(xe);function At(){return At=Object.assign?Object.assign.bind():function(pe){for(var le=1;le<arguments.length;le++){var ze=arguments[le];for(var bt in ze)Object.prototype.hasOwnProperty.call(ze,bt)&&(pe[bt]=ze[bt])}return pe},At.apply(this,arguments)}function Pe(pe){"@babel/helpers - typeof";return Pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(le){return typeof le}:function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},Pe(pe)}function Ne(pe,le){if(Pe(pe)!=="object"||pe===null)return pe;var ze=pe[Symbol.toPrimitive];if(ze!==void 0){var bt=ze.call(pe,le||"default");if(Pe(bt)!=="object")return bt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(le==="string"?String:Number)(pe)}function je(pe){var le=Ne(pe,"string");return Pe(le)==="symbol"?le:String(le)}function Ee(pe,le,ze){return le=je(le),le in pe?Object.defineProperty(pe,le,{value:ze,enumerable:!0,configurable:!0,writable:!0}):pe[le]=ze,pe}function ye(pe){if(Array.isArray(pe))return pe}function qe(pe,le){var ze=pe==null?null:typeof Symbol!="undefined"&&pe[Symbol.iterator]||pe["@@iterator"];if(ze!=null){var bt,Pt,mn,ln,Xt=[],Kt=!0,sr=!1;try{if(mn=(ze=ze.call(pe)).next,le===0){if(Object(ze)!==ze)return;Kt=!1}else for(;!(Kt=(bt=mn.call(ze)).done)&&(Xt.push(bt.value),Xt.length!==le);Kt=!0);}catch(mr){sr=!0,Pt=mr}finally{try{if(!Kt&&ze.return!=null&&(ln=ze.return(),Object(ln)!==ln))return}finally{if(sr)throw Pt}}return Xt}}function it(pe,le){(le==null||le>pe.length)&&(le=pe.length);for(var ze=0,bt=new Array(le);ze<le;ze++)bt[ze]=pe[ze];return bt}function he(pe,le){if(pe){if(typeof pe=="string")return it(pe,le);var ze=Object.prototype.toString.call(pe).slice(8,-1);if(ze==="Object"&&pe.constructor&&(ze=pe.constructor.name),ze==="Map"||ze==="Set")return Array.from(pe);if(ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ze))return it(pe,le)}}function gt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kt(pe,le){return ye(pe)||qe(pe,le)||he(pe,le)||gt()}function Xe(pe,le){if(pe==null)return{};var ze={},bt=Object.keys(pe),Pt,mn;for(mn=0;mn<bt.length;mn++)Pt=bt[mn],!(le.indexOf(Pt)>=0)&&(ze[Pt]=pe[Pt]);return ze}function ft(pe,le){if(pe==null)return{};var ze=Xe(pe,le),bt,Pt;if(Object.getOwnPropertySymbols){var mn=Object.getOwnPropertySymbols(pe);for(Pt=0;Pt<mn.length;Pt++)bt=mn[Pt],!(le.indexOf(bt)>=0)&&Object.prototype.propertyIsEnumerable.call(pe,bt)&&(ze[bt]=pe[bt])}return ze}var Ze=de(67294);function Je(pe){if(Array.isArray(pe))return pe}function et(pe,le){var ze=pe==null?null:typeof Symbol!="undefined"&&pe[Symbol.iterator]||pe["@@iterator"];if(ze!=null){var bt,Pt,mn,ln,Xt=[],Kt=!0,sr=!1;try{if(mn=(ze=ze.call(pe)).next,le===0){if(Object(ze)!==ze)return;Kt=!1}else for(;!(Kt=(bt=mn.call(ze)).done)&&(Xt.push(bt.value),Xt.length!==le);Kt=!0);}catch(mr){sr=!0,Pt=mr}finally{try{if(!Kt&&ze.return!=null&&(ln=ze.return(),Object(ln)!==ln))return}finally{if(sr)throw Pt}}return Xt}}function Ye(pe,le){(le==null||le>pe.length)&&(le=pe.length);for(var ze=0,bt=new Array(le);ze<le;ze++)bt[ze]=pe[ze];return bt}function We(pe,le){if(pe){if(typeof pe=="string")return Ye(pe,le);var ze=Object.prototype.toString.call(pe).slice(8,-1);if(ze==="Object"&&pe.constructor&&(ze=pe.constructor.name),ze==="Map"||ze==="Set")return Array.from(pe);if(ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ze))return Ye(pe,le)}}function $e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lt(pe,le){return Je(pe)||et(pe,le)||We(pe,le)||$e()}function Tt(pe){var le=Ze.useRef();le.current=pe;var ze=Ze.useCallback(function(){for(var bt,Pt=arguments.length,mn=new Array(Pt),ln=0;ln<Pt;ln++)mn[ln]=arguments[ln];return(bt=le.current)===null||bt===void 0?void 0:bt.call.apply(bt,[le].concat(mn))},[]);return ze}function _t(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ot=_t()?Ze.useLayoutEffect:Ze.useEffect,st=function(le,ze){var bt=Ze.useRef(!0);Ot(function(){return le(bt.current)},ze),Ot(function(){return bt.current=!1,function(){bt.current=!0}},[])},ct=function(le,ze){st(function(bt){if(!bt)return le()},ze)},He=null;function pt(pe){var le=Ze.useRef(!1),ze=Ze.useState(pe),bt=lt(ze,2),Pt=bt[0],mn=bt[1];Ze.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function ln(Xt,Kt){Kt&&le.current||mn(Xt)}return[Pt,ln]}function Ve(pe){return pe!==void 0}function Qe(pe,le){var ze=le||{},bt=ze.defaultValue,Pt=ze.value,mn=ze.onChange,ln=ze.postState,Xt=pt(function(){return Ve(Pt)?Pt:Ve(bt)?typeof bt=="function"?bt():bt:typeof pe=="function"?pe():pe}),Kt=lt(Xt,2),sr=Kt[0],mr=Kt[1],Gt=Pt!==void 0?Pt:sr,rn=ln?ln(Gt):Gt,Jr=Tt(mn),_r=pt([Gt]),xr=lt(_r,2),wr=xr[0],Ji=xr[1];ct(function(){var Wr=wr[0];sr!==Wr&&Jr(sr,Wr)},[wr]),ct(function(){Ve(Pt)||mr(Pt)},[Pt]);var Ir=Tt(function(Wr,Tr){mr(Wr,Tr),Ji([Gt],Tr)});return[rn,Ir]}var Fe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(le){var ze=le.keyCode;if(le.altKey&&!le.ctrlKey||le.metaKey||ze>=Fe.F1&&ze<=Fe.F12)return!1;switch(ze){case Fe.ALT:case Fe.CAPS_LOCK:case Fe.CONTEXT_MENU:case Fe.CTRL:case Fe.DOWN:case Fe.END:case Fe.ESC:case Fe.HOME:case Fe.INSERT:case Fe.LEFT:case Fe.MAC_FF_META:case Fe.META:case Fe.NUMLOCK:case Fe.NUM_CENTER:case Fe.PAGE_DOWN:case Fe.PAGE_UP:case Fe.PAUSE:case Fe.PRINT_SCREEN:case Fe.RIGHT:case Fe.SHIFT:case Fe.UP:case Fe.WIN_KEY:case Fe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=Fe.ZERO&&le<=Fe.NINE||le>=Fe.NUM_ZERO&&le<=Fe.NUM_MULTIPLY||le>=Fe.A&&le<=Fe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case Fe.SPACE:case Fe.QUESTION_MARK:case Fe.NUM_PLUS:case Fe.NUM_MINUS:case Fe.NUM_PERIOD:case Fe.NUM_DIVISION:case Fe.SEMICOLON:case Fe.DASH:case Fe.EQUALS:case Fe.COMMA:case Fe.PERIOD:case Fe.SLASH:case Fe.APOSTROPHE:case Fe.SINGLE_QUOTE:case Fe.OPEN_SQUARE_BRACKET:case Fe.BACKSLASH:case Fe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},wt=Fe,Mt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],jt=Ze.forwardRef(function(pe,le){var ze,bt=pe.prefixCls,Pt=bt===void 0?"rc-switch":bt,mn=pe.className,ln=pe.checked,Xt=pe.defaultChecked,Kt=pe.disabled,sr=pe.loadingIcon,mr=pe.checkedChildren,Gt=pe.unCheckedChildren,rn=pe.onClick,Jr=pe.onChange,_r=pe.onKeyDown,xr=ft(pe,Mt),wr=Qe(!1,{value:ln,defaultValue:Xt}),Ji=kt(wr,2),Ir=Ji[0],Wr=Ji[1];function Tr(bi,kr){var an=Ir;return Kt||(an=bi,Wr(an),Jr==null||Jr(an,kr)),an}function si(bi){bi.which===wt.LEFT?Tr(!1,bi):bi.which===wt.RIGHT&&Tr(!0,bi),_r==null||_r(bi)}function pi(bi){var kr=Tr(!Ir,bi);rn==null||rn(kr,bi)}var Wi=tt()(Pt,mn,(ze={},Ee(ze,"".concat(Pt,"-checked"),Ir),Ee(ze,"".concat(Pt,"-disabled"),Kt),ze));return Ze.createElement("button",At({},xr,{type:"button",role:"switch","aria-checked":Ir,disabled:Kt,className:Wi,ref:le,onKeyDown:si,onClick:pi}),sr,Ze.createElement("span",{className:"".concat(Pt,"-inner")},Ze.createElement("span",{className:"".concat(Pt,"-inner-checked")},mr),Ze.createElement("span",{className:"".concat(Pt,"-inner-unchecked")},Gt)))});jt.displayName="Switch";var Re=jt,Le=de(45353),Nt=de(53124),Rt=de(98866),Yt=de(98675),vt=de(84780),nt=de(14747),Vt=de(67968),un=de(45503);const Ut=pe=>{const{componentCls:le,trackHeightSM:ze,trackPadding:bt,trackMinWidthSM:Pt,innerMinMarginSM:mn,innerMaxMarginSM:ln,handleSizeSM:Xt}=pe,Kt=`${le}-inner`;return{[le]:{[`&${le}-small`]:{minWidth:Pt,height:ze,lineHeight:`${ze}px`,[`${le}-inner`]:{paddingInlineStart:ln,paddingInlineEnd:mn,[`${Kt}-checked`]:{marginInlineStart:`calc(-100% + ${Xt+bt*2}px - ${ln*2}px)`,marginInlineEnd:`calc(100% - ${Xt+bt*2}px + ${ln*2}px)`},[`${Kt}-unchecked`]:{marginTop:-ze,marginInlineStart:0,marginInlineEnd:0}},[`${le}-handle`]:{width:Xt,height:Xt},[`${le}-loading-icon`]:{top:(Xt-pe.switchLoadingIconSize)/2,fontSize:pe.switchLoadingIconSize},[`&${le}-checked`]:{[`${le}-inner`]:{paddingInlineStart:mn,paddingInlineEnd:ln,[`${Kt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Kt}-unchecked`]:{marginInlineStart:`calc(100% - ${Xt+bt*2}px + ${ln*2}px)`,marginInlineEnd:`calc(-100% + ${Xt+bt*2}px - ${ln*2}px)`}},[`${le}-handle`]:{insetInlineStart:`calc(100% - ${Xt+bt}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${Kt}`]:{[`${Kt}-unchecked`]:{marginInlineStart:pe.marginXXS/2,marginInlineEnd:-pe.marginXXS/2}},[`&${le}-checked ${Kt}`]:{[`${Kt}-checked`]:{marginInlineStart:-pe.marginXXS/2,marginInlineEnd:pe.marginXXS/2}}}}}}},fn=pe=>{const{componentCls:le,handleSize:ze}=pe;return{[le]:{[`${le}-loading-icon${pe.iconCls}`]:{position:"relative",top:(ze-pe.fontSize)/2,color:pe.switchLoadingIconColor,verticalAlign:"top"},[`&${le}-checked ${le}-loading-icon`]:{color:pe.switchColor}}}},en=pe=>{const{componentCls:le,motion:ze,trackPadding:bt,handleBg:Pt,handleShadow:mn,handleSize:ln}=pe,Xt=`${le}-handle`;return{[le]:{[Xt]:{position:"absolute",top:bt,insetInlineStart:bt,width:ln,height:ln,transition:`all ${pe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Pt,borderRadius:ln/2,boxShadow:mn,transition:`all ${pe.switchDuration} ease-in-out`,content:'""'}},[`&${le}-checked ${Xt}`]:{insetInlineStart:`calc(100% - ${ln+bt}px)`},[`&:not(${le}-disabled):active`]:ze?{[`${Xt}::before`]:{insetInlineEnd:pe.switchHandleActiveInset,insetInlineStart:0},[`&${le}-checked ${Xt}::before`]:{insetInlineEnd:0,insetInlineStart:pe.switchHandleActiveInset}}:{}}}},En=pe=>{const{componentCls:le,trackHeight:ze,trackPadding:bt,innerMinMargin:Pt,innerMaxMargin:mn,handleSize:ln}=pe,Xt=`${le}-inner`;return{[le]:{[Xt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:mn,paddingInlineEnd:Pt,transition:`padding-inline-start ${pe.switchDuration} ease-in-out, padding-inline-end ${pe.switchDuration} ease-in-out`,[`${Xt}-checked, ${Xt}-unchecked`]:{display:"block",color:pe.colorTextLightSolid,fontSize:pe.fontSizeSM,transition:`margin-inline-start ${pe.switchDuration} ease-in-out, margin-inline-end ${pe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Xt}-checked`]:{marginInlineStart:`calc(-100% + ${ln+bt*2}px - ${mn*2}px)`,marginInlineEnd:`calc(100% - ${ln+bt*2}px + ${mn*2}px)`},[`${Xt}-unchecked`]:{marginTop:-ze,marginInlineStart:0,marginInlineEnd:0}},[`&${le}-checked ${Xt}`]:{paddingInlineStart:Pt,paddingInlineEnd:mn,[`${Xt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Xt}-unchecked`]:{marginInlineStart:`calc(100% - ${ln+bt*2}px + ${mn*2}px)`,marginInlineEnd:`calc(-100% + ${ln+bt*2}px - ${mn*2}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${Xt}`]:{[`${Xt}-unchecked`]:{marginInlineStart:bt*2,marginInlineEnd:-bt*2}},[`&${le}-checked ${Xt}`]:{[`${Xt}-checked`]:{marginInlineStart:-bt*2,marginInlineEnd:bt*2}}}}}},_n=pe=>{const{componentCls:le,trackHeight:ze,trackMinWidth:bt}=pe;return{[le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,nt.Wf)(pe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:bt,height:ze,lineHeight:`${ze}px`,verticalAlign:"middle",background:pe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${pe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${le}-disabled)`]:{background:pe.colorTextTertiary}}),(0,nt.Qy)(pe)),{[`&${le}-checked`]:{background:pe.switchColor,[`&:hover:not(${le}-disabled)`]:{background:pe.colorPrimaryHover}},[`&${le}-loading, &${le}-disabled`]:{cursor:"not-allowed",opacity:pe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${le}-rtl`]:{direction:"rtl"}})}};var Ce=(0,Vt.Z)("Switch",pe=>{const le=(0,un.TS)(pe,{switchDuration:pe.motionDurationMid,switchColor:pe.colorPrimary,switchDisabledOpacity:pe.opacityLoading,switchLoadingIconSize:pe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${pe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[_n(le),En(le),en(le),fn(le),Ut(le)]},pe=>{const{fontSize:le,lineHeight:ze,controlHeight:bt,colorWhite:Pt}=pe,mn=le*ze,ln=bt/2,Xt=2,Kt=mn-Xt*2,sr=ln-Xt*2;return{trackHeight:mn,trackHeightSM:ln,trackMinWidth:Kt*2+Xt*4,trackMinWidthSM:sr*2+Xt*2,trackPadding:Xt,handleBg:Pt,handleSize:Kt,handleSizeSM:sr,handleShadow:`0 2px 4px 0 ${new vt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Kt/2,innerMaxMargin:Kt+Xt+Xt*2,innerMinMarginSM:sr/2,innerMaxMarginSM:sr+Xt+Xt*2}}),se=function(pe,le){var ze={};for(var bt in pe)Object.prototype.hasOwnProperty.call(pe,bt)&&le.indexOf(bt)<0&&(ze[bt]=pe[bt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,bt=Object.getOwnPropertySymbols(pe);Pt<bt.length;Pt++)le.indexOf(bt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(pe,bt[Pt])&&(ze[bt[Pt]]=pe[bt[Pt]]);return ze};const ue=Ze.forwardRef((pe,le)=>{const{prefixCls:ze,size:bt,disabled:Pt,loading:mn,className:ln,rootClassName:Xt,style:Kt}=pe,sr=se(pe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:mr,direction:Gt,switch:rn}=Ze.useContext(Nt.E_),Jr=Ze.useContext(Rt.Z),_r=(Pt!=null?Pt:Jr)||mn,xr=mr("switch",ze),wr=Ze.createElement("div",{className:`${xr}-handle`},mn&&Ze.createElement(re.Z,{className:`${xr}-loading-icon`})),[Ji,Ir]=Ce(xr),Wr=(0,Yt.Z)(bt),Tr=tt()(rn==null?void 0:rn.className,{[`${xr}-small`]:Wr==="small",[`${xr}-loading`]:mn,[`${xr}-rtl`]:Gt==="rtl"},ln,Xt,Ir),si=Object.assign(Object.assign({},rn==null?void 0:rn.style),Kt);return Ji(Ze.createElement(Le.Z,{component:"Switch"},Ze.createElement(Re,Object.assign({},sr,{prefixCls:xr,className:Tr,style:si,disabled:_r,ref:le,loadingIcon:wr}))))});ue.__ANT_SWITCH=!0;var ge=ue},66368:function(cn,yn,de){"use strict";de.d(yn,{default:function(){return Go}});var re=de(73475),xe=de(25877),tt=de(38308),At=de(94184),Pe=de.n(At),Ne=de(87462),je=de(4942),Ee=de(1413),ye=de(97685),qe=de(71002),it=de(45987),he=de(67294),gt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Te=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Te)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Te==null?void 0:Te.substr(0,4))};function kt(Te){var Ue=he.useRef();Ue.current=Te;var tn=he.useCallback(function(){for(var we,ht=arguments.length,St=new Array(ht),Qt=0;Qt<ht;Qt++)St[Qt]=arguments[Qt];return(we=Ue.current)===null||we===void 0?void 0:we.call.apply(we,[Ue].concat(St))},[]);return tn}function Xe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ft=Xe()?he.useLayoutEffect:he.useEffect,Ze=function(Ue,tn){var we=he.useRef(!0);ft(function(){return Ue(we.current)},tn),ft(function(){return we.current=!1,function(){we.current=!0}},[])},Je=function(Ue,tn){Ze(function(we){if(!we)return Ue()},tn)},et=null;function Ye(Te){var Ue=he.useRef(!1),tn=he.useState(Te),we=(0,ye.Z)(tn,2),ht=we[0],St=we[1];he.useEffect(function(){return Ue.current=!1,function(){Ue.current=!0}},[]);function Qt(Dt,Cn){Cn&&Ue.current||St(Dt)}return[ht,Qt]}function We(Te){return Te!==void 0}function $e(Te,Ue){var tn=Ue||{},we=tn.defaultValue,ht=tn.value,St=tn.onChange,Qt=tn.postState,Dt=Ye(function(){return We(ht)?ht:We(we)?typeof we=="function"?we():we:typeof Te=="function"?Te():Te}),Cn=(0,ye.Z)(Dt,2),Ln=Cn[0],Mn=Cn[1],gn=ht!==void 0?ht:Ln,Jt=Qt?Qt(gn):gn,bn=kt(St),An=Ye([gn]),Bn=(0,ye.Z)(An,2),zr=Bn[0],ei=Bn[1];Je(function(){var Mi=zr[0];Ln!==Mi&&bn(Ln,Mi)},[zr]),Je(function(){We(ht)||Mn(ht)},[ht]);var _i=kt(function(Mi,ta){Mn(Mi,ta),ei([gn],ta)});return[Jt,_i]}var lt=de(62874),Tt=(0,he.createContext)(null),_t=he.forwardRef(function(Te,Ue){var tn=Te.prefixCls,we=Te.className,ht=Te.style,St=Te.id,Qt=Te.active,Dt=Te.tabKey,Cn=Te.children;return he.createElement("div",{id:St&&"".concat(St,"-panel-").concat(Dt),role:"tabpanel",tabIndex:Qt?0:-1,"aria-labelledby":St&&"".concat(St,"-tab-").concat(Dt),"aria-hidden":!Qt,style:ht,className:Pe()(tn,Qt&&"".concat(tn,"-active"),we),ref:Ue},Cn)}),Ot=_t,st=["key","forceRender","style","className"];function ct(Te){var Ue=Te.id,tn=Te.activeKey,we=Te.animated,ht=Te.tabPosition,St=Te.destroyInactiveTabPane,Qt=he.useContext(Tt),Dt=Qt.prefixCls,Cn=Qt.tabs,Ln=we.tabPane,Mn="".concat(Dt,"-tabpane");return he.createElement("div",{className:Pe()("".concat(Dt,"-content-holder"))},he.createElement("div",{className:Pe()("".concat(Dt,"-content"),"".concat(Dt,"-content-").concat(ht),(0,je.Z)({},"".concat(Dt,"-content-animated"),Ln))},Cn.map(function(gn){var Jt=gn.key,bn=gn.forceRender,An=gn.style,Bn=gn.className,zr=(0,it.Z)(gn,st),ei=Jt===tn;return he.createElement(lt.Z,(0,Ne.Z)({key:Jt,visible:ei,forceRender:bn,removeOnLeave:!!St,leavedClassName:"".concat(Mn,"-hidden")},we.tabPaneMotion),function(_i,Mi){var ta=_i.style,la=_i.className;return he.createElement(Ot,(0,Ne.Z)({},zr,{prefixCls:Mn,id:Ue,tabKey:Jt,animated:Ln,active:ei,style:(0,Ee.Z)((0,Ee.Z)({},An),ta),className:Pe()(Bn,la),ref:Mi}))})})))}var He=de(74902),pt=de(48555),Ve=de(59864);function Qe(Te,Ue,tn){var we=he.useRef({});return(!("value"in we.current)||tn(we.current.condition,Ue))&&(we.current.value=Te(),we.current.condition=Ue),we.current.value}function Fe(Te,Ue){typeof Te=="function"?Te(Ue):(0,qe.Z)(Te)==="object"&&Te&&"current"in Te&&(Te.current=Ue)}function wt(){for(var Te=arguments.length,Ue=new Array(Te),tn=0;tn<Te;tn++)Ue[tn]=arguments[tn];var we=Ue.filter(function(ht){return ht});return we.length<=1?we[0]:function(ht){Ue.forEach(function(St){Fe(St,ht)})}}function Mt(){for(var Te=arguments.length,Ue=new Array(Te),tn=0;tn<Te;tn++)Ue[tn]=arguments[tn];return Qe(function(){return wt.apply(void 0,Ue)},Ue,function(we,ht){return we.length===ht.length&&we.every(function(St,Qt){return St===ht[Qt]})})}function jt(Te){var Ue,tn,we=isMemo(Te)?Te.type.type:Te.type;return!(typeof we=="function"&&!((Ue=we.prototype)!==null&&Ue!==void 0&&Ue.render)||typeof Te=="function"&&!((tn=Te.prototype)!==null&&tn!==void 0&&tn.render))}var Re={width:0,height:0,left:0,top:0};function Le(Te,Ue,tn){return(0,he.useMemo)(function(){for(var we,ht=new Map,St=Ue.get((we=Te[0])===null||we===void 0?void 0:we.key)||Re,Qt=St.left+St.width,Dt=0;Dt<Te.length;Dt+=1){var Cn=Te[Dt].key,Ln=Ue.get(Cn);if(!Ln){var Mn;Ln=Ue.get((Mn=Te[Dt-1])===null||Mn===void 0?void 0:Mn.key)||Re}var gn=ht.get(Cn)||(0,Ee.Z)({},Ln);gn.right=Qt-gn.left-gn.width,ht.set(Cn,gn)}return ht},[Te.map(function(we){return we.key}).join("_"),Ue,tn])}function Nt(Te,Ue){var tn=he.useRef(Te),we=he.useState({}),ht=(0,ye.Z)(we,2),St=ht[1];function Qt(Dt){var Cn=typeof Dt=="function"?Dt(tn.current):Dt;Cn!==tn.current&&Ue(Cn,tn.current),tn.current=Cn,St({})}return[tn.current,Qt]}var Rt=.1,Yt=.01,vt=20,nt=Math.pow(.995,vt);function Vt(Te,Ue){var tn=(0,he.useState)(),we=(0,ye.Z)(tn,2),ht=we[0],St=we[1],Qt=(0,he.useState)(0),Dt=(0,ye.Z)(Qt,2),Cn=Dt[0],Ln=Dt[1],Mn=(0,he.useState)(0),gn=(0,ye.Z)(Mn,2),Jt=gn[0],bn=gn[1],An=(0,he.useState)(),Bn=(0,ye.Z)(An,2),zr=Bn[0],ei=Bn[1],_i=(0,he.useRef)();function Mi(Sa){var Ja=Sa.touches[0],ao=Ja.screenX,zt=Ja.screenY;St({x:ao,y:zt}),window.clearInterval(_i.current)}function ta(Sa){if(ht){Sa.preventDefault();var Ja=Sa.touches[0],ao=Ja.screenX,zt=Ja.screenY;St({x:ao,y:zt});var Wt=ao-ht.x,qt=zt-ht.y;Ue(Wt,qt);var Fn=Date.now();Ln(Fn),bn(Fn-Cn),ei({x:Wt,y:qt})}}function la(){if(ht&&(St(null),ei(null),zr)){var Sa=zr.x/Jt,Ja=zr.y/Jt,ao=Math.abs(Sa),zt=Math.abs(Ja);if(Math.max(ao,zt)<Rt)return;var Wt=Sa,qt=Ja;_i.current=window.setInterval(function(){if(Math.abs(Wt)<Yt&&Math.abs(qt)<Yt){window.clearInterval(_i.current);return}Wt*=nt,qt*=nt,Ue(Wt*vt,qt*vt)},vt)}}var Ta=(0,he.useRef)();function Ma(Sa){var Ja=Sa.deltaX,ao=Sa.deltaY,zt=0,Wt=Math.abs(Ja),qt=Math.abs(ao);Wt===qt?zt=Ta.current==="x"?Ja:ao:Wt>qt?(zt=Ja,Ta.current="x"):(zt=ao,Ta.current="y"),Ue(-zt,-zt)&&Sa.preventDefault()}var Wa=(0,he.useRef)(null);Wa.current={onTouchStart:Mi,onTouchMove:ta,onTouchEnd:la,onWheel:Ma},he.useEffect(function(){function Sa(Wt){Wa.current.onTouchStart(Wt)}function Ja(Wt){Wa.current.onTouchMove(Wt)}function ao(Wt){Wa.current.onTouchEnd(Wt)}function zt(Wt){Wa.current.onWheel(Wt)}return document.addEventListener("touchmove",Ja,{passive:!1}),document.addEventListener("touchend",ao,{passive:!1}),Te.current.addEventListener("touchstart",Sa,{passive:!1}),Te.current.addEventListener("wheel",zt),function(){document.removeEventListener("touchmove",Ja),document.removeEventListener("touchend",ao)}},[])}function un(Te){var Ue=(0,he.useState)(0),tn=(0,ye.Z)(Ue,2),we=tn[0],ht=tn[1],St=(0,he.useRef)(0),Qt=(0,he.useRef)();return Qt.current=Te,Je(function(){var Dt;(Dt=Qt.current)===null||Dt===void 0||Dt.call(Qt)},[we]),function(){St.current===we&&(St.current+=1,ht(St.current))}}function Ut(Te){var Ue=(0,he.useRef)([]),tn=(0,he.useState)({}),we=(0,ye.Z)(tn,2),ht=we[1],St=(0,he.useRef)(typeof Te=="function"?Te():Te),Qt=un(function(){var Cn=St.current;Ue.current.forEach(function(Ln){Cn=Ln(Cn)}),Ue.current=[],St.current=Cn,ht({})});function Dt(Cn){Ue.current.push(Cn),Qt()}return[St.current,Dt]}var fn={width:0,height:0,left:0,top:0,right:0};function en(Te,Ue,tn,we,ht,St,Qt){var Dt=Qt.tabs,Cn=Qt.tabPosition,Ln=Qt.rtl,Mn,gn,Jt;return["top","bottom"].includes(Cn)?(Mn="width",gn=Ln?"right":"left",Jt=Math.abs(tn)):(Mn="height",gn="top",Jt=-tn),(0,he.useMemo)(function(){if(!Dt.length)return[0,0];for(var bn=Dt.length,An=bn,Bn=0;Bn<bn;Bn+=1){var zr=Te.get(Dt[Bn].key)||fn;if(zr[gn]+zr[Mn]>Jt+Ue){An=Bn-1;break}}for(var ei=0,_i=bn-1;_i>=0;_i-=1){var Mi=Te.get(Dt[_i].key)||fn;if(Mi[gn]<Jt){ei=_i+1;break}}return ei>=An?[0,0]:[ei,An]},[Te,Ue,we,ht,St,Jt,Cn,Dt.map(function(bn){return bn.key}).join("_"),Ln])}function En(Te){var Ue;return Te instanceof Map?(Ue={},Te.forEach(function(tn,we){Ue[we]=tn})):Ue=Te,JSON.stringify(Ue)}var _n="TABS_DQ";function Ce(Te){return String(Te).replace(/"/g,_n)}function se(Te,Ue,tn,we){return!(!tn||we||Te===!1||Te===void 0&&(Ue===!1||Ue===null))}function ue(Te,Ue){var tn=Te.prefixCls,we=Te.editable,ht=Te.locale,St=Te.style;return!we||we.showAdd===!1?null:he.createElement("button",{ref:Ue,type:"button",className:"".concat(tn,"-nav-add"),style:St,"aria-label":(ht==null?void 0:ht.addAriaLabel)||"Add tab",onClick:function(Dt){we.onEdit("add",{event:Dt})}},we.addIcon||"+")}var ge=he.forwardRef(ue),pe=he.forwardRef(function(Te,Ue){var tn=Te.position,we=Te.prefixCls,ht=Te.extra;if(!ht)return null;var St,Qt={};return(0,qe.Z)(ht)==="object"&&!he.isValidElement(ht)?Qt=ht:Qt.right=ht,tn==="right"&&(St=Qt.right),tn==="left"&&(St=Qt.left),St?he.createElement("div",{className:"".concat(we,"-extra-content"),ref:Ue},St):null}),le=pe,ze=de(62709);function bt(Te,Ue,tn){var we=React.useRef({});return(!("value"in we.current)||tn(we.current.condition,Ue))&&(we.current.value=Te(),we.current.condition=Ue),we.current.value}function Pt(Te,Ue){typeof Te=="function"?Te(Ue):(0,qe.Z)(Te)==="object"&&Te&&"current"in Te&&(Te.current=Ue)}function mn(){for(var Te=arguments.length,Ue=new Array(Te),tn=0;tn<Te;tn++)Ue[tn]=arguments[tn];var we=Ue.filter(function(ht){return ht});return we.length<=1?we[0]:function(ht){Ue.forEach(function(St){Pt(St,ht)})}}function ln(){for(var Te=arguments.length,Ue=new Array(Te),tn=0;tn<Te;tn++)Ue[tn]=arguments[tn];return useMemo(function(){return mn.apply(void 0,Ue)},Ue,function(we,ht){return we.length===ht.length&&we.every(function(St,Qt){return St===ht[Qt]})})}function Xt(Te){var Ue,tn,we=(0,Ve.isMemo)(Te)?Te.type.type:Te.type;return!(typeof we=="function"&&!((Ue=we.prototype)!==null&&Ue!==void 0&&Ue.render)||typeof Te=="function"&&!((tn=Te.prototype)!==null&&tn!==void 0&&tn.render))}var Kt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ue){var tn=Ue.keyCode;if(Ue.altKey&&!Ue.ctrlKey||Ue.metaKey||tn>=Kt.F1&&tn<=Kt.F12)return!1;switch(tn){case Kt.ALT:case Kt.CAPS_LOCK:case Kt.CONTEXT_MENU:case Kt.CTRL:case Kt.DOWN:case Kt.END:case Kt.ESC:case Kt.HOME:case Kt.INSERT:case Kt.LEFT:case Kt.MAC_FF_META:case Kt.META:case Kt.NUMLOCK:case Kt.NUM_CENTER:case Kt.PAGE_DOWN:case Kt.PAGE_UP:case Kt.PAUSE:case Kt.PRINT_SCREEN:case Kt.RIGHT:case Kt.SHIFT:case Kt.UP:case Kt.WIN_KEY:case Kt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ue){if(Ue>=Kt.ZERO&&Ue<=Kt.NINE||Ue>=Kt.NUM_ZERO&&Ue<=Kt.NUM_MULTIPLY||Ue>=Kt.A&&Ue<=Kt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ue===0)return!0;switch(Ue){case Kt.SPACE:case Kt.QUESTION_MARK:case Kt.NUM_PLUS:case Kt.NUM_MINUS:case Kt.NUM_PERIOD:case Kt.NUM_DIVISION:case Kt.SEMICOLON:case Kt.DASH:case Kt.EQUALS:case Kt.COMMA:case Kt.PERIOD:case Kt.SLASH:case Kt.APOSTROPHE:case Kt.SINGLE_QUOTE:case Kt.OPEN_SQUARE_BRACKET:case Kt.BACKSLASH:case Kt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},sr=Kt,mr=function(Ue){return+setTimeout(Ue,16)},Gt=function(Ue){return clearTimeout(Ue)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(mr=function(Ue){return window.requestAnimationFrame(Ue)},Gt=function(Ue){return window.cancelAnimationFrame(Ue)});var rn=0,Jr=new Map;function _r(Te){Jr.delete(Te)}var xr=function(Ue){var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rn+=1;var we=rn;function ht(St){if(St===0)_r(we),Ue();else{var Qt=mr(function(){ht(St-1)});Jr.set(we,Qt)}}return ht(tn),we};xr.cancel=function(Te){var Ue=Jr.get(Te);return _r(Ue),Gt(Ue)};var wr=xr,Ji=sr.ESC,Ir=sr.TAB;function Wr(Te){var Ue=Te.visible,tn=Te.triggerRef,we=Te.onVisibleChange,ht=Te.autoFocus,St=Te.overlayRef,Qt=he.useRef(!1),Dt=function(){if(Ue){var gn,Jt;(gn=tn.current)===null||gn===void 0||(Jt=gn.focus)===null||Jt===void 0||Jt.call(gn),we==null||we(!1)}},Cn=function(){var gn;return(gn=St.current)!==null&&gn!==void 0&&gn.focus?(St.current.focus(),Qt.current=!0,!0):!1},Ln=function(gn){switch(gn.keyCode){case Ji:Dt();break;case Ir:{var Jt=!1;Qt.current||(Jt=Cn()),Jt?gn.preventDefault():Dt();break}}};he.useEffect(function(){return Ue?(window.addEventListener("keydown",Ln),ht&&wr(Cn,3),function(){window.removeEventListener("keydown",Ln),Qt.current=!1}):function(){Qt.current=!1}},[Ue])}var Tr=(0,he.forwardRef)(function(Te,Ue){var tn=Te.overlay,we=Te.arrow,ht=Te.prefixCls,St=(0,he.useMemo)(function(){var Dt;return typeof tn=="function"?Dt=tn():Dt=tn,Dt},[tn]),Qt=mn(Ue,St==null?void 0:St.ref);return he.createElement(he.Fragment,null,we&&he.createElement("div",{className:"".concat(ht,"-arrow")}),he.cloneElement(St,{ref:Xt(St)?Qt:void 0}))}),si=Tr,pi={adjustX:1,adjustY:1},Wi=[0,0],bi={topLeft:{points:["bl","tl"],overflow:pi,offset:[0,-4],targetOffset:Wi},top:{points:["bc","tc"],overflow:pi,offset:[0,-4],targetOffset:Wi},topRight:{points:["br","tr"],overflow:pi,offset:[0,-4],targetOffset:Wi},bottomLeft:{points:["tl","bl"],overflow:pi,offset:[0,4],targetOffset:Wi},bottom:{points:["tc","bc"],overflow:pi,offset:[0,4],targetOffset:Wi},bottomRight:{points:["tr","br"],overflow:pi,offset:[0,4],targetOffset:Wi}},kr=bi,an=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Nn(Te,Ue){var tn,we=Te.arrow,ht=we===void 0?!1:we,St=Te.prefixCls,Qt=St===void 0?"rc-dropdown":St,Dt=Te.transitionName,Cn=Te.animation,Ln=Te.align,Mn=Te.placement,gn=Mn===void 0?"bottomLeft":Mn,Jt=Te.placements,bn=Jt===void 0?kr:Jt,An=Te.getPopupContainer,Bn=Te.showAction,zr=Te.hideAction,ei=Te.overlayClassName,_i=Te.overlayStyle,Mi=Te.visible,ta=Te.trigger,la=ta===void 0?["hover"]:ta,Ta=Te.autoFocus,Ma=Te.overlay,Wa=Te.children,Sa=Te.onVisibleChange,Ja=(0,it.Z)(Te,an),ao=he.useState(),zt=(0,ye.Z)(ao,2),Wt=zt[0],qt=zt[1],Fn="visible"in Te?Mi:Wt,Gr=he.useRef(null),Ti=he.useRef(null),In=he.useRef(null);he.useImperativeHandle(Ue,function(){return Gr.current});var Ar=function(ri){qt(ri),Sa==null||Sa(ri)};Wr({visible:Fn,triggerRef:In,onVisibleChange:Ar,autoFocus:Ta,overlayRef:Ti});var ci=function(ri){var Na=Te.onOverlayClick;qt(!1),Na&&Na(ri)},Ki=function(){return he.createElement(si,{ref:Ti,overlay:Ma,prefixCls:Qt,arrow:ht})},Lr=function(){return typeof Ma=="function"?Ki:Ki()},nr=function(){var ri=Te.minOverlayWidthMatchTrigger,Na=Te.alignPoint;return"minOverlayWidthMatchTrigger"in Te?ri:!Na},Pi=function(){var ri=Te.openClassName;return ri!==void 0?ri:"".concat(Qt,"-open")},ua=he.cloneElement(Wa,{className:Pe()((tn=Wa.props)===null||tn===void 0?void 0:tn.className,Fn&&Pi()),ref:Xt(Wa)?mn(In,Wa.ref):void 0}),pa=zr;return!pa&&la.indexOf("contextMenu")!==-1&&(pa=["click"]),he.createElement(ze.Z,(0,Ne.Z)({builtinPlacements:bn},Ja,{prefixCls:Qt,ref:Gr,popupClassName:Pe()(ei,(0,je.Z)({},"".concat(Qt,"-show-arrow"),ht)),popupStyle:_i,action:la,showAction:Bn,hideAction:pa,popupPlacement:gn,popupAlign:Ln,popupTransitionName:Dt,popupAnimation:Cn,popupVisible:Fn,stretch:nr()?"minWidth":"",popup:Lr(),onPopupVisibleChange:Ar,onPopupClick:ci,getPopupContainer:An}),ua)}var On=he.forwardRef(Nn),Dn=On,Mr=de(78595),vn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ue){var tn=Ue.keyCode;if(Ue.altKey&&!Ue.ctrlKey||Ue.metaKey||tn>=vn.F1&&tn<=vn.F12)return!1;switch(tn){case vn.ALT:case vn.CAPS_LOCK:case vn.CONTEXT_MENU:case vn.CTRL:case vn.DOWN:case vn.END:case vn.ESC:case vn.HOME:case vn.INSERT:case vn.LEFT:case vn.MAC_FF_META:case vn.META:case vn.NUMLOCK:case vn.NUM_CENTER:case vn.PAGE_DOWN:case vn.PAGE_UP:case vn.PAUSE:case vn.PRINT_SCREEN:case vn.RIGHT:case vn.SHIFT:case vn.UP:case vn.WIN_KEY:case vn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ue){if(Ue>=vn.ZERO&&Ue<=vn.NINE||Ue>=vn.NUM_ZERO&&Ue<=vn.NUM_MULTIPLY||Ue>=vn.A&&Ue<=vn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ue===0)return!0;switch(Ue){case vn.SPACE:case vn.QUESTION_MARK:case vn.NUM_PLUS:case vn.NUM_MINUS:case vn.NUM_PERIOD:case vn.NUM_DIVISION:case vn.SEMICOLON:case vn.DASH:case vn.EQUALS:case vn.COMMA:case vn.PERIOD:case vn.SLASH:case vn.APOSTROPHE:case vn.SINGLE_QUOTE:case vn.OPEN_SQUARE_BRACKET:case vn.BACKSLASH:case vn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Vn=vn;function Xr(Te,Ue){var tn=Te.prefixCls,we=Te.id,ht=Te.tabs,St=Te.locale,Qt=Te.mobile,Dt=Te.moreIcon,Cn=Dt===void 0?"More":Dt,Ln=Te.moreTransitionName,Mn=Te.style,gn=Te.className,Jt=Te.editable,bn=Te.tabBarGutter,An=Te.rtl,Bn=Te.removeAriaLabel,zr=Te.onTabClick,ei=Te.getPopupContainer,_i=Te.popupClassName,Mi=(0,he.useState)(!1),ta=(0,ye.Z)(Mi,2),la=ta[0],Ta=ta[1],Ma=(0,he.useState)(null),Wa=(0,ye.Z)(Ma,2),Sa=Wa[0],Ja=Wa[1],ao="".concat(we,"-more-popup"),zt="".concat(tn,"-dropdown"),Wt=Sa!==null?"".concat(ao,"-").concat(Sa):null,qt=St==null?void 0:St.dropdownAriaLabel;function Fn(Lr,nr){Lr.preventDefault(),Lr.stopPropagation(),Jt.onEdit("remove",{key:nr,event:Lr})}var Gr=he.createElement(Mr.ZP,{onClick:function(nr){var Pi=nr.key,ua=nr.domEvent;zr(Pi,ua),Ta(!1)},prefixCls:"".concat(zt,"-menu"),id:ao,tabIndex:-1,role:"listbox","aria-activedescendant":Wt,selectedKeys:[Sa],"aria-label":qt!==void 0?qt:"expanded dropdown"},ht.map(function(Lr){var nr=Lr.closable,Pi=Lr.disabled,ua=Lr.closeIcon,pa=Lr.key,mi=Lr.label,ri=se(nr,ua,Jt,Pi);return he.createElement(Mr.sN,{key:pa,id:"".concat(ao,"-").concat(pa),role:"option","aria-controls":we&&"".concat(we,"-panel-").concat(pa),disabled:Pi},he.createElement("span",null,mi),ri&&he.createElement("button",{type:"button","aria-label":Bn||"remove",tabIndex:0,className:"".concat(zt,"-menu-item-remove"),onClick:function(Ba){Ba.stopPropagation(),Fn(Ba,pa)}},ua||Jt.removeIcon||"\xD7"))}));function Ti(Lr){for(var nr=ht.filter(function(ri){return!ri.disabled}),Pi=nr.findIndex(function(ri){return ri.key===Sa})||0,ua=nr.length,pa=0;pa<ua;pa+=1){Pi=(Pi+Lr+ua)%ua;var mi=nr[Pi];if(!mi.disabled){Ja(mi.key);return}}}function In(Lr){var nr=Lr.which;if(!la){[Vn.DOWN,Vn.SPACE,Vn.ENTER].includes(nr)&&(Ta(!0),Lr.preventDefault());return}switch(nr){case Vn.UP:Ti(-1),Lr.preventDefault();break;case Vn.DOWN:Ti(1),Lr.preventDefault();break;case Vn.ESC:Ta(!1);break;case Vn.SPACE:case Vn.ENTER:Sa!==null&&zr(Sa,Lr);break}}(0,he.useEffect)(function(){var Lr=document.getElementById(Wt);Lr&&Lr.scrollIntoView&&Lr.scrollIntoView(!1)},[Sa]),(0,he.useEffect)(function(){la||Ja(null)},[la]);var Ar=(0,je.Z)({},An?"marginRight":"marginLeft",bn);ht.length||(Ar.visibility="hidden",Ar.order=1);var ci=Pe()((0,je.Z)({},"".concat(zt,"-rtl"),An)),Ki=Qt?null:he.createElement(Dn,{prefixCls:zt,overlay:Gr,trigger:["hover"],visible:ht.length?la:!1,transitionName:Ln,onVisibleChange:Ta,overlayClassName:Pe()(ci,_i),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:ei},he.createElement("button",{type:"button",className:"".concat(tn,"-nav-more"),style:Ar,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":ao,id:"".concat(we,"-more"),"aria-expanded":la,onKeyDown:In},Cn));return he.createElement("div",{className:Pe()("".concat(tn,"-nav-operations"),gn),style:Mn,ref:Ue},Ki,he.createElement(ge,{prefixCls:tn,locale:St,editable:Jt}))}var fi=he.memo(he.forwardRef(Xr),function(Te,Ue){return Ue.tabMoving});function er(Te){var Ue,tn=Te.prefixCls,we=Te.id,ht=Te.active,St=Te.tab,Qt=St.key,Dt=St.label,Cn=St.disabled,Ln=St.closeIcon,Mn=Te.closable,gn=Te.renderWrapper,Jt=Te.removeAriaLabel,bn=Te.editable,An=Te.onClick,Bn=Te.onFocus,zr=Te.style,ei="".concat(tn,"-tab"),_i=se(Mn,Ln,bn,Cn);function Mi(Ta){Cn||An(Ta)}function ta(Ta){Ta.preventDefault(),Ta.stopPropagation(),bn.onEdit("remove",{key:Qt,event:Ta})}var la=he.createElement("div",{key:Qt,"data-node-key":Ce(Qt),className:Pe()(ei,(Ue={},(0,je.Z)(Ue,"".concat(ei,"-with-remove"),_i),(0,je.Z)(Ue,"".concat(ei,"-active"),ht),(0,je.Z)(Ue,"".concat(ei,"-disabled"),Cn),Ue)),style:zr,onClick:Mi},he.createElement("div",{role:"tab","aria-selected":ht,id:we&&"".concat(we,"-tab-").concat(Qt),className:"".concat(ei,"-btn"),"aria-controls":we&&"".concat(we,"-panel-").concat(Qt),"aria-disabled":Cn,tabIndex:Cn?null:0,onClick:function(Ma){Ma.stopPropagation(),Mi(Ma)},onKeyDown:function(Ma){[Vn.SPACE,Vn.ENTER].includes(Ma.which)&&(Ma.preventDefault(),Mi(Ma))},onFocus:Bn},Dt),_i&&he.createElement("button",{type:"button","aria-label":Jt||"remove",tabIndex:0,className:"".concat(ei,"-remove"),onClick:function(Ma){Ma.stopPropagation(),ta(Ma)}},Ln||bn.removeIcon||"\xD7"));return gn?gn(la):la}var ia=er,Gi=function(Ue){return+setTimeout(Ue,16)},Br=function(Ue){return clearTimeout(Ue)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Gi=function(Ue){return window.requestAnimationFrame(Ue)},Br=function(Ue){return window.cancelAnimationFrame(Ue)});var lr=0,qr=new Map;function xa(Te){qr.delete(Te)}var vi=function(Ue){var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;lr+=1;var we=lr;function ht(St){if(St===0)xa(we),Ue();else{var Qt=Gi(function(){ht(St-1)});qr.set(we,Qt)}}return ht(tn),we};vi.cancel=function(Te){var Ue=qr.get(Te);return xa(Ue),Br(Ue)};var ca=vi,li=function(Ue){var tn=Ue.activeTabOffset,we=Ue.horizontal,ht=Ue.rtl,St=Ue.indicatorSize,Qt=(0,he.useState)(),Dt=(0,ye.Z)(Qt,2),Cn=Dt[0],Ln=Dt[1],Mn=(0,he.useRef)(),gn=function(An){return typeof St=="function"?St(An):typeof St=="number"?St:An};function Jt(){ca.cancel(Mn.current)}return(0,he.useEffect)(function(){var bn={};return tn&&(we?(ht?(bn.right=tn.right+tn.width/2,bn.transform="translateX(50%)"):(bn.left=tn.left+tn.width/2,bn.transform="translateX(-50%)"),bn.width=gn(tn.width)):(bn.top=tn.top+tn.height/2,bn.transform="translateY(-50%)",bn.height=gn(tn.height))),Jt(),Mn.current=ca(function(){Ln(bn)}),Jt},[tn,we,ht,St]),{style:Cn}},wi=li,Li=function(Ue){var tn=Ue.current||{},we=tn.offsetWidth,ht=we===void 0?0:we,St=tn.offsetHeight,Qt=St===void 0?0:St;return[ht,Qt]},oi=function(Ue,tn){return Ue[tn?0:1]};function ir(Te,Ue){var tn,we=he.useContext(Tt),ht=we.prefixCls,St=we.tabs,Qt=Te.className,Dt=Te.style,Cn=Te.id,Ln=Te.animated,Mn=Te.activeKey,gn=Te.rtl,Jt=Te.extra,bn=Te.editable,An=Te.locale,Bn=Te.tabPosition,zr=Te.tabBarGutter,ei=Te.children,_i=Te.onTabClick,Mi=Te.onTabScroll,ta=Te.indicatorSize,la=(0,he.useRef)(),Ta=(0,he.useRef)(),Ma=(0,he.useRef)(),Wa=(0,he.useRef)(),Sa=(0,he.useRef)(),Ja=(0,he.useRef)(),ao=(0,he.useRef)(),zt=Bn==="top"||Bn==="bottom",Wt=Nt(0,function(lo,Ea){zt&&Mi&&Mi({direction:lo>Ea?"left":"right"})}),qt=(0,ye.Z)(Wt,2),Fn=qt[0],Gr=qt[1],Ti=Nt(0,function(lo,Ea){!zt&&Mi&&Mi({direction:lo>Ea?"top":"bottom"})}),In=(0,ye.Z)(Ti,2),Ar=In[0],ci=In[1],Ki=(0,he.useState)([0,0]),Lr=(0,ye.Z)(Ki,2),nr=Lr[0],Pi=Lr[1],ua=(0,he.useState)([0,0]),pa=(0,ye.Z)(ua,2),mi=pa[0],ri=pa[1],Na=(0,he.useState)([0,0]),Ba=(0,ye.Z)(Na,2),oo=Ba[0],Qo=Ba[1],js=(0,he.useState)([0,0]),us=(0,ye.Z)(js,2),ml=us[0],so=us[1],Yo=Ut(new Map),vo=(0,ye.Z)(Yo,2),co=vo[0],Ls=vo[1],zs=Le(St,co,mi[0]),Yi=oi(nr,zt),_o=oi(mi,zt),Ts=oi(oo,zt),cs=oi(ml,zt),$s=Yi<_o+Ts,Ha=$s?Yi-cs:Yi-Ts,El="".concat(ht,"-nav-operations-hidden"),Gs=0,gl=0;zt&&gn?(Gs=0,gl=Math.max(0,_o-Ha)):(Gs=Math.min(0,Ha-_o),gl=0);function hu(lo){return lo<Gs?Gs:lo>gl?gl:lo}var pu=(0,he.useRef)(),Ps=(0,he.useState)(),mu=(0,ye.Z)(Ps,2),Cl=mu[0],Gl=mu[1];function Ql(){Gl(Date.now())}function zl(){window.clearTimeout(pu.current)}Vt(Wa,function(lo,Ea){function Co(Do,Be){Do(function(Ie){var Ct=hu(Ie+Be);return Ct})}return $s?(zt?Co(Gr,lo):Co(ci,Ea),zl(),Ql(),!0):!1}),(0,he.useEffect)(function(){return zl(),Cl&&(pu.current=window.setTimeout(function(){Gl(0)},100)),zl},[Cl]);var Wl=en(zs,Ha,zt?Fn:Ar,_o,Ts,cs,(0,Ee.Z)((0,Ee.Z)({},Te),{},{tabs:St})),Zl=(0,ye.Z)(Wl,2),nu=Zl[0],Ws=Zl[1],Yl=kt(function(){var lo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mn,Ea=zs.get(lo)||{width:0,height:0,left:0,right:0,top:0};if(zt){var Co=Fn;gn?Ea.right<Fn?Co=Ea.right:Ea.right+Ea.width>Fn+Ha&&(Co=Ea.right+Ea.width-Ha):Ea.left<-Fn?Co=-Ea.left:Ea.left+Ea.width>-Fn+Ha&&(Co=-(Ea.left+Ea.width-Ha)),ci(0),Gr(hu(Co))}else{var Do=Ar;Ea.top<-Ar?Do=-Ea.top:Ea.top+Ea.height>-Ar+Ha&&(Do=-(Ea.top+Ea.height-Ha)),Gr(0),ci(hu(Do))}}),Sl={};Bn==="top"||Bn==="bottom"?Sl[gn?"marginRight":"marginLeft"]=zr:Sl.marginTop=zr;var Dl=St.map(function(lo,Ea){var Co=lo.key;return he.createElement(ia,{id:Cn,prefixCls:ht,key:Co,tab:lo,style:Ea===0?void 0:Sl,closable:lo.closable,editable:bn,active:Co===Mn,renderWrapper:ei,removeAriaLabel:An==null?void 0:An.removeAriaLabel,onClick:function(Be){_i(Co,Be)},onFocus:function(){Yl(Co),Ql(),Wa.current&&(gn||(Wa.current.scrollLeft=0),Wa.current.scrollTop=0)}})}),ru=function(){return Ls(function(){var Ea=new Map;return St.forEach(function(Co){var Do,Be=Co.key,Ie=(Do=Sa.current)===null||Do===void 0?void 0:Do.querySelector('[data-node-key="'.concat(Ce(Be),'"]'));Ie&&Ea.set(Be,{width:Ie.offsetWidth,height:Ie.offsetHeight,left:Ie.offsetLeft,top:Ie.offsetTop})}),Ea})};(0,he.useEffect)(function(){ru()},[St.map(function(lo){return lo.key}).join("_")]);var iu=un(function(){var lo=Li(la),Ea=Li(Ta),Co=Li(Ma);Pi([lo[0]-Ea[0]-Co[0],lo[1]-Ea[1]-Co[1]]);var Do=Li(ao);Qo(Do);var Be=Li(Ja);so(Be);var Ie=Li(Sa);ri([Ie[0]-Do[0],Ie[1]-Do[1]]),ru()}),gu=St.slice(0,nu),Pu=St.slice(Ws+1),Nl=[].concat((0,He.Z)(gu),(0,He.Z)(Pu)),au=zs.get(Mn),ol=wi({activeTabOffset:au,horizontal:zt,rtl:gn,indicatorSize:ta}),Vl=ol.style;(0,he.useEffect)(function(){Yl()},[Mn,Gs,gl,En(au),En(zs),zt]),(0,he.useEffect)(function(){iu()},[gn]);var Qs=!!Nl.length,Al="".concat(ht,"-nav-wrap"),Il,Jl,Ol,Fl;return zt?gn?(Jl=Fn>0,Il=Fn!==gl):(Il=Fn<0,Jl=Fn!==Gs):(Ol=Ar<0,Fl=Ar!==Gs),he.createElement(pt.Z,{onResize:iu},he.createElement("div",{ref:Mt(Ue,la),role:"tablist",className:Pe()("".concat(ht,"-nav"),Qt),style:Dt,onKeyDown:function(){Ql()}},he.createElement(le,{ref:Ta,position:"left",extra:Jt,prefixCls:ht}),he.createElement(pt.Z,{onResize:iu},he.createElement("div",{className:Pe()(Al,(tn={},(0,je.Z)(tn,"".concat(Al,"-ping-left"),Il),(0,je.Z)(tn,"".concat(Al,"-ping-right"),Jl),(0,je.Z)(tn,"".concat(Al,"-ping-top"),Ol),(0,je.Z)(tn,"".concat(Al,"-ping-bottom"),Fl),tn)),ref:Wa},he.createElement(pt.Z,{onResize:iu},he.createElement("div",{ref:Sa,className:"".concat(ht,"-nav-list"),style:{transform:"translate(".concat(Fn,"px, ").concat(Ar,"px)"),transition:Cl?"none":void 0}},Dl,he.createElement(ge,{ref:ao,prefixCls:ht,locale:An,editable:bn,style:(0,Ee.Z)((0,Ee.Z)({},Dl.length===0?void 0:Sl),{},{visibility:Qs?"hidden":null})}),he.createElement("div",{className:Pe()("".concat(ht,"-ink-bar"),(0,je.Z)({},"".concat(ht,"-ink-bar-animated"),Ln.inkBar)),style:Vl}))))),he.createElement(fi,(0,Ne.Z)({},Te,{removeAriaLabel:An==null?void 0:An.removeAriaLabel,ref:Ja,prefixCls:ht,tabs:Nl,className:!Qs&&El,tabMoving:!!Cl})),he.createElement(le,{ref:Ma,position:"right",extra:Jt,prefixCls:ht})))}var Aa=he.forwardRef(ir),Ka=["renderTabBar"],Ca=["label","key"];function va(Te){var Ue=Te.renderTabBar,tn=(0,it.Z)(Te,Ka),we=he.useContext(Tt),ht=we.tabs;if(Ue){var St=(0,Ee.Z)((0,Ee.Z)({},tn),{},{panes:ht.map(function(Qt){var Dt=Qt.label,Cn=Qt.key,Ln=(0,it.Z)(Qt,Ca);return he.createElement(Ot,(0,Ne.Z)({tab:Dt,key:Cn,tabKey:Cn},Ln))})});return Ue(St,Aa)}return he.createElement(Aa,tn)}var mo={},ja=[],wa=function(Ue){ja.push(Ue)};function Qn(Te,Ue){if(0)var tn}function Ri(Te,Ue){if(0)var tn}function Ms(){mo={}}function ms(Te,Ue,tn){!Ue&&!mo[tn]&&(Te(!1,tn),mo[tn]=!0)}function Oo(Te,Ue){ms(Qn,Te,Ue)}function io(Te,Ue){ms(Ri,Te,Ue)}Oo.preMessage=wa,Oo.resetWarned=Ms,Oo.noteOnce=io;var rl=null;function ma(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Ue;return Te===!1?Ue={inkBar:!1,tabPane:!1}:Te===!0?Ue={inkBar:!0,tabPane:!1}:Ue=(0,Ee.Z)({inkBar:!0},(0,qe.Z)(Te)==="object"?Te:{}),Ue.tabPaneMotion&&Ue.tabPane===void 0&&(Ue.tabPane=!0),!Ue.tabPaneMotion&&Ue.tabPane&&(Ue.tabPane=!1),Ue}var il=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],zn=0;function wo(Te,Ue){var tn,we=Te.id,ht=Te.prefixCls,St=ht===void 0?"rc-tabs":ht,Qt=Te.className,Dt=Te.items,Cn=Te.direction,Ln=Te.activeKey,Mn=Te.defaultActiveKey,gn=Te.editable,Jt=Te.animated,bn=Te.tabPosition,An=bn===void 0?"top":bn,Bn=Te.tabBarGutter,zr=Te.tabBarStyle,ei=Te.tabBarExtraContent,_i=Te.locale,Mi=Te.moreIcon,ta=Te.moreTransitionName,la=Te.destroyInactiveTabPane,Ta=Te.renderTabBar,Ma=Te.onChange,Wa=Te.onTabClick,Sa=Te.onTabScroll,Ja=Te.getPopupContainer,ao=Te.popupClassName,zt=Te.indicatorSize,Wt=(0,it.Z)(Te,il),qt=he.useMemo(function(){return(Dt||[]).filter(function(so){return so&&(0,qe.Z)(so)==="object"&&"key"in so})},[Dt]),Fn=Cn==="rtl",Gr=ma(Jt),Ti=(0,he.useState)(!1),In=(0,ye.Z)(Ti,2),Ar=In[0],ci=In[1];(0,he.useEffect)(function(){ci(gt())},[]);var Ki=$e(function(){var so;return(so=qt[0])===null||so===void 0?void 0:so.key},{value:Ln,defaultValue:Mn}),Lr=(0,ye.Z)(Ki,2),nr=Lr[0],Pi=Lr[1],ua=(0,he.useState)(function(){return qt.findIndex(function(so){return so.key===nr})}),pa=(0,ye.Z)(ua,2),mi=pa[0],ri=pa[1];(0,he.useEffect)(function(){var so=qt.findIndex(function(vo){return vo.key===nr});if(so===-1){var Yo;so=Math.max(0,Math.min(mi,qt.length-1)),Pi((Yo=qt[so])===null||Yo===void 0?void 0:Yo.key)}ri(so)},[qt.map(function(so){return so.key}).join("_"),nr,mi]);var Na=$e(null,{value:we}),Ba=(0,ye.Z)(Na,2),oo=Ba[0],Qo=Ba[1];(0,he.useEffect)(function(){we||(Qo("rc-tabs-".concat(zn)),zn+=1)},[]);function js(so,Yo){Wa==null||Wa(so,Yo);var vo=so!==nr;Pi(so),vo&&(Ma==null||Ma(so))}var us={id:oo,activeKey:nr,animated:Gr,tabPosition:An,rtl:Fn,mobile:Ar},ml=(0,Ee.Z)((0,Ee.Z)({},us),{},{editable:gn,locale:_i,moreIcon:Mi,moreTransitionName:ta,tabBarGutter:Bn,onTabClick:js,onTabScroll:Sa,extra:ei,style:zr,panes:null,getPopupContainer:Ja,popupClassName:ao,indicatorSize:zt});return he.createElement(Tt.Provider,{value:{tabs:qt,prefixCls:St}},he.createElement("div",(0,Ne.Z)({ref:Ue,id:we,className:Pe()(St,"".concat(St,"-").concat(An),(tn={},(0,je.Z)(tn,"".concat(St,"-mobile"),Ar),(0,je.Z)(tn,"".concat(St,"-editable"),gn),(0,je.Z)(tn,"".concat(St,"-rtl"),Fn),tn),Qt)},Wt),he.createElement(va,(0,Ne.Z)({},ml,{renderTabBar:Ta})),he.createElement(ct,(0,Ne.Z)({destroyInactiveTabPane:la},us,{animated:Gr}))))}var Ro=he.forwardRef(wo),_s=Ro,gs=_s,Uo=de(53124),is=de(98675),Eo=()=>null,jo=de(33603);const Oa={motionAppear:!1,motionEnter:!0,motionLeave:!0};function $o(Te){let Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},tn;return Ue===!1?tn={inkBar:!1,tabPane:!1}:Ue===!0?tn={inkBar:!0,tabPane:!0}:tn=Object.assign({inkBar:!0},typeof Ue=="object"?Ue:{}),tn.tabPane&&(tn.tabPaneMotion=Object.assign(Object.assign({},Oa),{motionName:(0,jo.m)(Te,"switch")})),tn}var Bl=de(37419),vs=function(Te,Ue){var tn={};for(var we in Te)Object.prototype.hasOwnProperty.call(Te,we)&&Ue.indexOf(we)<0&&(tn[we]=Te[we]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,we=Object.getOwnPropertySymbols(Te);ht<we.length;ht++)Ue.indexOf(we[ht])<0&&Object.prototype.propertyIsEnumerable.call(Te,we[ht])&&(tn[we[ht]]=Te[we[ht]]);return tn};function al(Te){return Te.filter(Ue=>Ue)}function es(Te,Ue){if(Te)return Te;const tn=(0,Bl.Z)(Ue).map(we=>{if(he.isValidElement(we)){const{key:ht,props:St}=we,Qt=St||{},{tab:Dt}=Qt,Cn=vs(Qt,["tab"]);return Object.assign(Object.assign({key:String(ht)},Cn),{label:Dt})}return null});return al(tn)}var $a=de(14747),Bs=de(67968),Xs=de(45503),as=de(67771),os=Te=>{const{componentCls:Ue,motionDurationSlow:tn}=Te;return[{[Ue]:{[`${Ue}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${tn}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${tn}`}}}}},[(0,as.oN)(Te,"slide-up"),(0,as.oN)(Te,"slide-down")]]};const ss=Te=>{const{componentCls:Ue,tabsCardPadding:tn,cardBg:we,cardGutter:ht,colorBorderSecondary:St,itemSelectedColor:Qt}=Te;return{[`${Ue}-card`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab`]:{margin:0,padding:tn,background:we,border:`${Te.lineWidth}px ${Te.lineType} ${St}`,transition:`all ${Te.motionDurationSlow} ${Te.motionEaseInOut}`},[`${Ue}-tab-active`]:{color:Qt,background:Te.colorBgContainer},[`${Ue}-ink-bar`]:{visibility:"hidden"}},[`&${Ue}-top, &${Ue}-bottom`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab + ${Ue}-tab`]:{marginLeft:{_skip_check_:!0,value:`${ht}px`}}}},[`&${Ue}-top`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab`]:{borderRadius:`${Te.borderRadiusLG}px ${Te.borderRadiusLG}px 0 0`},[`${Ue}-tab-active`]:{borderBottomColor:Te.colorBgContainer}}},[`&${Ue}-bottom`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab`]:{borderRadius:`0 0 ${Te.borderRadiusLG}px ${Te.borderRadiusLG}px`},[`${Ue}-tab-active`]:{borderTopColor:Te.colorBgContainer}}},[`&${Ue}-left, &${Ue}-right`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab + ${Ue}-tab`]:{marginTop:`${ht}px`}}},[`&${Ue}-left`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Te.borderRadiusLG}px 0 0 ${Te.borderRadiusLG}px`}},[`${Ue}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Te.colorBgContainer}}}},[`&${Ue}-right`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Te.borderRadiusLG}px ${Te.borderRadiusLG}px 0`}},[`${Ue}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Te.colorBgContainer}}}}}}},Hs=Te=>{const{componentCls:Ue,itemHoverColor:tn,dropdownEdgeChildVerticalPadding:we}=Te;return{[`${Ue}-dropdown`]:Object.assign(Object.assign({},(0,$a.Wf)(Te)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Te.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Ue}-dropdown-menu`]:{maxHeight:Te.tabsDropdownHeight,margin:0,padding:`${we}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Te.colorBgContainer,backgroundClip:"padding-box",borderRadius:Te.borderRadiusLG,outline:"none",boxShadow:Te.boxShadowSecondary,"&-item":Object.assign(Object.assign({},$a.vS),{display:"flex",alignItems:"center",minWidth:Te.tabsDropdownWidth,margin:0,padding:`${Te.paddingXXS}px ${Te.paddingSM}px`,color:Te.colorText,fontWeight:"normal",fontSize:Te.fontSize,lineHeight:Te.lineHeight,cursor:"pointer",transition:`all ${Te.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Te.marginSM},color:Te.colorTextDescription,fontSize:Te.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:tn}},"&:hover":{background:Te.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Te.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},qs=Te=>{const{componentCls:Ue,margin:tn,colorBorderSecondary:we,horizontalMargin:ht,verticalItemPadding:St,verticalItemMargin:Qt}=Te;return{[`${Ue}-top, ${Ue}-bottom`]:{flexDirection:"column",[`> ${Ue}-nav, > div > ${Ue}-nav`]:{margin:ht,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Te.lineWidth}px ${Te.lineType} ${we}`,content:"''"},[`${Ue}-ink-bar`]:{height:Te.lineWidthBold,"&-animated":{transition:`width ${Te.motionDurationSlow}, left ${Te.motionDurationSlow},
|
|
|
right ${Te.motionDurationSlow}`}},[`${Ue}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Te.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Te.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Te.boxShadowTabsOverflowRight},[`&${Ue}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Ue}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Ue}-top`]:{[`> ${Ue}-nav,
|
|
|
> div > ${Ue}-nav`]:{"&::before":{bottom:0},[`${Ue}-ink-bar`]:{bottom:0}}},[`${Ue}-bottom`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{order:1,marginTop:`${tn}px`,marginBottom:0,"&::before":{top:0},[`${Ue}-ink-bar`]:{top:0}},[`> ${Ue}-content-holder, > div > ${Ue}-content-holder`]:{order:0}},[`${Ue}-left, ${Ue}-right`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{flexDirection:"column",minWidth:Te.controlHeight*1.25,[`${Ue}-tab`]:{padding:St,textAlign:"center"},[`${Ue}-tab + ${Ue}-tab`]:{margin:Qt},[`${Ue}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Te.controlHeight},"&::before":{top:0,boxShadow:Te.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Te.boxShadowTabsOverflowBottom},[`&${Ue}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Ue}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Ue}-ink-bar`]:{width:Te.lineWidthBold,"&-animated":{transition:`height ${Te.motionDurationSlow}, top ${Te.motionDurationSlow}`}},[`${Ue}-nav-list, ${Ue}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Ue}-left`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Ue}-content-holder, > div > ${Ue}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Te.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Te.lineWidth}px ${Te.lineType} ${Te.colorBorder}`},[`> ${Ue}-content > ${Ue}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Te.paddingLG}}}},[`${Ue}-right`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{order:1,[`${Ue}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Ue}-content-holder, > div > ${Ue}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Te.lineWidth},borderRight:{_skip_check_:!0,value:`${Te.lineWidth}px ${Te.lineType} ${Te.colorBorder}`},[`> ${Ue}-content > ${Ue}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Te.paddingLG}}}}}},Ga=Te=>{const{componentCls:Ue,cardPaddingSM:tn,cardPaddingLG:we,horizontalItemPaddingSM:ht,horizontalItemPaddingLG:St}=Te;return{[Ue]:{"&-small":{[`> ${Ue}-nav`]:{[`${Ue}-tab`]:{padding:ht,fontSize:Te.titleFontSizeSM}}},"&-large":{[`> ${Ue}-nav`]:{[`${Ue}-tab`]:{padding:St,fontSize:Te.titleFontSizeLG}}}},[`${Ue}-card`]:{[`&${Ue}-small`]:{[`> ${Ue}-nav`]:{[`${Ue}-tab`]:{padding:tn}},[`&${Ue}-bottom`]:{[`> ${Ue}-nav ${Ue}-tab`]:{borderRadius:`0 0 ${Te.borderRadius}px ${Te.borderRadius}px`}},[`&${Ue}-top`]:{[`> ${Ue}-nav ${Ue}-tab`]:{borderRadius:`${Te.borderRadius}px ${Te.borderRadius}px 0 0`}},[`&${Ue}-right`]:{[`> ${Ue}-nav ${Ue}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Te.borderRadius}px ${Te.borderRadius}px 0`}}},[`&${Ue}-left`]:{[`> ${Ue}-nav ${Ue}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Te.borderRadius}px 0 0 ${Te.borderRadius}px`}}}},[`&${Ue}-large`]:{[`> ${Ue}-nav`]:{[`${Ue}-tab`]:{padding:we}}}}}},ls=Te=>{const{componentCls:Ue,itemActiveColor:tn,itemHoverColor:we,iconCls:ht,tabsHorizontalItemMargin:St,horizontalItemPadding:Qt,itemSelectedColor:Dt,itemColor:Cn}=Te,Ln=`${Ue}-tab`;return{[Ln]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Qt,fontSize:Te.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Cn,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:tn}},(0,$a.Qy)(Te)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Te.marginXXS},marginLeft:{_skip_check_:!0,value:Te.marginXS},color:Te.colorTextDescription,fontSize:Te.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Te.motionDurationSlow}`,"&:hover":{color:Te.colorTextHeading}},"&:hover":{color:we},[`&${Ln}-active ${Ln}-btn`]:{color:Dt,textShadow:Te.tabsActiveTextShadow},[`&${Ln}-disabled`]:{color:Te.colorTextDisabled,cursor:"not-allowed"},[`&${Ln}-disabled ${Ln}-btn, &${Ln}-disabled ${Ue}-remove`]:{"&:focus, &:active":{color:Te.colorTextDisabled}},[`& ${Ln}-remove ${ht}`]:{margin:0},[ht]:{marginRight:{_skip_check_:!0,value:Te.marginSM}}},[`${Ln} + ${Ln}`]:{margin:{_skip_check_:!0,value:St}}}},Wo=Te=>{const{componentCls:Ue,tabsHorizontalItemMarginRTL:tn,iconCls:we,cardGutter:ht}=Te;return{[`${Ue}-rtl`]:{direction:"rtl",[`${Ue}-nav`]:{[`${Ue}-tab`]:{margin:{_skip_check_:!0,value:tn},[`${Ue}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[we]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Te.marginSM}px`}},[`${Ue}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Te.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Te.marginXXS}px`},[we]:{margin:0}}}},[`&${Ue}-left`]:{[`> ${Ue}-nav`]:{order:1},[`> ${Ue}-content-holder`]:{order:0}},[`&${Ue}-right`]:{[`> ${Ue}-nav`]:{order:0},[`> ${Ue}-content-holder`]:{order:1}},[`&${Ue}-card${Ue}-top, &${Ue}-card${Ue}-bottom`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab + ${Ue}-tab`]:{marginRight:{_skip_check_:!0,value:ht},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Ue}-dropdown-rtl`]:{direction:"rtl"},[`${Ue}-menu-item`]:{[`${Ue}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ys=Te=>{const{componentCls:Ue,tabsCardPadding:tn,cardHeight:we,cardGutter:ht,itemHoverColor:St,itemActiveColor:Qt,colorBorderSecondary:Dt}=Te;return{[Ue]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,$a.Wf)(Te)),{display:"flex",[`> ${Ue}-nav, > div > ${Ue}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Ue}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${Te.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Ue}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Te.motionDurationSlow}`},[`${Ue}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Ue}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Ue}-nav-more`]:{position:"relative",padding:tn,background:"transparent",border:0,color:Te.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Te.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Ue}-nav-add`]:Object.assign({minWidth:we,marginLeft:{_skip_check_:!0,value:ht},padding:`0 ${Te.paddingXS}px`,background:"transparent",border:`${Te.lineWidth}px ${Te.lineType} ${Dt}`,borderRadius:`${Te.borderRadiusLG}px ${Te.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Te.colorText,transition:`all ${Te.motionDurationSlow} ${Te.motionEaseInOut}`,"&:hover":{color:St},"&:active, &:focus:not(:focus-visible)":{color:Qt}},(0,$a.Qy)(Te))},[`${Ue}-extra-content`]:{flex:"none"},[`${Ue}-ink-bar`]:{position:"absolute",background:Te.inkBarColor,pointerEvents:"none"}}),ls(Te)),{[`${Ue}-content`]:{position:"relative",width:"100%"},[`${Ue}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Ue}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Ue}-centered`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-nav-wrap`]:{[`&:not([class*='${Ue}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Ds=(0,Bs.Z)("Tabs",Te=>{const Ue=(0,Xs.TS)(Te,{tabsCardPadding:Te.cardPadding||`${(Te.cardHeight-Math.round(Te.fontSize*Te.lineHeight))/2-Te.lineWidth}px ${Te.padding}px`,dropdownEdgeChildVerticalPadding:Te.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Te.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Te.horizontalItemGutter}px`});return[Ga(Ue),Wo(Ue),qs(Ue),Hs(Ue),ss(Ue),ys(Ue),os(Ue)]},Te=>{const Ue=Te.controlHeightLG;return{zIndexPopup:Te.zIndexPopupBase+50,cardBg:Te.colorFillAlter,cardHeight:Ue,cardPadding:"",cardPaddingSM:`${Te.paddingXXS*1.5}px ${Te.padding}px`,cardPaddingLG:`${Te.paddingXS}px ${Te.padding}px ${Te.paddingXXS*1.5}px`,titleFontSize:Te.fontSize,titleFontSizeLG:Te.fontSizeLG,titleFontSizeSM:Te.fontSize,inkBarColor:Te.colorPrimary,horizontalMargin:`0 0 ${Te.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Te.paddingSM}px 0`,horizontalItemPaddingSM:`${Te.paddingXS}px 0`,horizontalItemPaddingLG:`${Te.padding}px 0`,verticalItemPadding:`${Te.paddingXS}px ${Te.paddingLG}px`,verticalItemMargin:`${Te.margin}px 0 0 0`,itemColor:Te.colorText,itemSelectedColor:Te.colorPrimary,itemHoverColor:Te.colorPrimaryHover,itemActiveColor:Te.colorPrimaryActive,cardGutter:Te.marginXXS/2}}),Fs=function(Te,Ue){var tn={};for(var we in Te)Object.prototype.hasOwnProperty.call(Te,we)&&Ue.indexOf(we)<0&&(tn[we]=Te[we]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,we=Object.getOwnPropertySymbols(Te);ht<we.length;ht++)Ue.indexOf(we[ht])<0&&Object.prototype.propertyIsEnumerable.call(Te,we[ht])&&(tn[we[ht]]=Te[we[ht]]);return tn};const bs=Te=>{const{type:Ue,className:tn,rootClassName:we,size:ht,onEdit:St,hideAdd:Qt,centered:Dt,addIcon:Cn,popupClassName:Ln,children:Mn,items:gn,animated:Jt,style:bn,indicatorSize:An}=Te,Bn=Fs(Te,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:zr,moreIcon:ei=he.createElement(xe.Z,null)}=Bn,{direction:_i,tabs:Mi,getPrefixCls:ta,getPopupContainer:la}=he.useContext(Uo.E_),Ta=ta("tabs",zr),[Ma,Wa]=Ds(Ta);let Sa;Ue==="editable-card"&&(Sa={onEdit:(Fn,Gr)=>{let{key:Ti,event:In}=Gr;St==null||St(Fn==="add"?In:Ti,Fn)},removeIcon:he.createElement(re.Z,null),addIcon:Cn||he.createElement(tt.Z,null),showAdd:Qt!==!0});const Ja=ta(),ao=es(gn,Mn),zt=$o(Ta,Jt),Wt=(0,is.Z)(ht),qt=Object.assign(Object.assign({},Mi==null?void 0:Mi.style),bn);return Ma(he.createElement(gs,Object.assign({direction:_i,getPopupContainer:la,moreTransitionName:`${Ja}-slide-up`},Bn,{items:ao,className:Pe()({[`${Ta}-${Wt}`]:Wt,[`${Ta}-card`]:["card","editable-card"].includes(Ue),[`${Ta}-editable-card`]:Ue==="editable-card",[`${Ta}-centered`]:Dt},Mi==null?void 0:Mi.className,tn,we,Wa),popupClassName:Pe()(Ln,Wa),style:qt,editable:Sa,moreIcon:ei,prefixCls:Ta,animated:zt,indicatorSize:An!=null?An:Mi==null?void 0:Mi.indicatorSize})))};bs.TabPane=Eo;var Go=bs},66309:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return ct}});var re=de(67294),xe=de(73475),tt=de(94184),At=de.n(tt),Pe=de(98787),Ne=de(69760),je=de(45353),Ee=de(53124),ye=de(14747),qe=de(45503),it=de(67968);const he=He=>{const{paddingXXS:pt,lineWidth:Ve,tagPaddingHorizontal:Qe,componentCls:Fe}=He,wt=Qe-Ve,Mt=pt-Ve;return{[Fe]:Object.assign(Object.assign({},(0,ye.Wf)(He)),{display:"inline-block",height:"auto",marginInlineEnd:He.marginXS,paddingInline:wt,fontSize:He.tagFontSize,lineHeight:He.tagLineHeight,whiteSpace:"nowrap",background:He.defaultBg,border:`${He.lineWidth}px ${He.lineType} ${He.colorBorder}`,borderRadius:He.borderRadiusSM,opacity:1,transition:`all ${He.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Fe}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:He.defaultColor},[`${Fe}-close-icon`]:{marginInlineStart:Mt,color:He.colorTextDescription,fontSize:He.tagIconSize,cursor:"pointer",transition:`all ${He.motionDurationMid}`,"&:hover":{color:He.colorTextHeading}},[`&${Fe}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${He.iconCls}-close, ${He.iconCls}-close:hover`]:{color:He.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Fe}-checkable-checked):hover`]:{color:He.colorPrimary,backgroundColor:He.colorFillSecondary},"&:active, &-checked":{color:He.colorTextLightSolid},"&-checked":{backgroundColor:He.colorPrimary,"&:hover":{backgroundColor:He.colorPrimaryHover}},"&:active":{backgroundColor:He.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${He.iconCls} + span, > span + ${He.iconCls}`]:{marginInlineStart:wt}}),[`${Fe}-borderless`]:{borderColor:"transparent",background:He.tagBorderlessBg}}},gt=He=>{const{lineWidth:pt,fontSizeIcon:Ve}=He,Qe=He.fontSizeSM,Fe=`${He.lineHeightSM*Qe}px`;return(0,qe.TS)(He,{tagFontSize:Qe,tagLineHeight:Fe,tagIconSize:Ve-2*pt,tagPaddingHorizontal:8,tagBorderlessBg:He.colorFillTertiary})},kt=He=>({defaultBg:He.colorFillQuaternary,defaultColor:He.colorText});var Xe=(0,it.Z)("Tag",He=>{const pt=gt(He);return he(pt)},kt),ft=function(He,pt){var Ve={};for(var Qe in He)Object.prototype.hasOwnProperty.call(He,Qe)&&pt.indexOf(Qe)<0&&(Ve[Qe]=He[Qe]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Qe=Object.getOwnPropertySymbols(He);Fe<Qe.length;Fe++)pt.indexOf(Qe[Fe])<0&&Object.prototype.propertyIsEnumerable.call(He,Qe[Fe])&&(Ve[Qe[Fe]]=He[Qe[Fe]]);return Ve},Je=He=>{const{prefixCls:pt,style:Ve,className:Qe,checked:Fe,onChange:wt,onClick:Mt}=He,jt=ft(He,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Re,tag:Le}=re.useContext(Ee.E_),Nt=Vt=>{wt==null||wt(!Fe),Mt==null||Mt(Vt)},Rt=Re("tag",pt),[Yt,vt]=Xe(Rt),nt=At()(Rt,`${Rt}-checkable`,{[`${Rt}-checkable-checked`]:Fe},Le==null?void 0:Le.className,Qe,vt);return Yt(re.createElement("span",Object.assign({},jt,{style:Object.assign(Object.assign({},Ve),Le==null?void 0:Le.style),className:nt,onClick:Nt})))},et=de(98719);const Ye=He=>(0,et.Z)(He,(pt,Ve)=>{let{textColor:Qe,lightBorderColor:Fe,lightColor:wt,darkColor:Mt}=Ve;return{[`${He.componentCls}-${pt}`]:{color:Qe,background:wt,borderColor:Fe,"&-inverse":{color:He.colorTextLightSolid,background:Mt,borderColor:Mt},[`&${He.componentCls}-borderless`]:{borderColor:"transparent"}}}});var We=(0,it.b)(["Tag","preset"],He=>{const pt=gt(He);return Ye(pt)},kt);function $e(He){return typeof He!="string"?He:He.charAt(0).toUpperCase()+He.slice(1)}const lt=(He,pt,Ve)=>{const Qe=$e(Ve);return{[`${He.componentCls}-${pt}`]:{color:He[`color${Ve}`],background:He[`color${Qe}Bg`],borderColor:He[`color${Qe}Border`],[`&${He.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Tt=(0,it.b)(["Tag","status"],He=>{const pt=gt(He);return[lt(pt,"success","Success"),lt(pt,"processing","Info"),lt(pt,"error","Error"),lt(pt,"warning","Warning")]},kt),_t=function(He,pt){var Ve={};for(var Qe in He)Object.prototype.hasOwnProperty.call(He,Qe)&&pt.indexOf(Qe)<0&&(Ve[Qe]=He[Qe]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Qe=Object.getOwnPropertySymbols(He);Fe<Qe.length;Fe++)pt.indexOf(Qe[Fe])<0&&Object.prototype.propertyIsEnumerable.call(He,Qe[Fe])&&(Ve[Qe[Fe]]=He[Qe[Fe]]);return Ve};const Ot=(He,pt)=>{const{prefixCls:Ve,className:Qe,rootClassName:Fe,style:wt,children:Mt,icon:jt,color:Re,onClose:Le,closeIcon:Nt,closable:Rt,bordered:Yt=!0}=He,vt=_t(He,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:nt,direction:Vt,tag:un}=re.useContext(Ee.E_),[Ut,fn]=re.useState(!0);re.useEffect(()=>{"visible"in vt&&fn(vt.visible)},[vt.visible]);const en=(0,Pe.o2)(Re),En=(0,Pe.yT)(Re),_n=en||En,Ce=Object.assign(Object.assign({backgroundColor:Re&&!_n?Re:void 0},un==null?void 0:un.style),wt),se=nt("tag",Ve),[ue,ge]=Xe(se),pe=At()(se,un==null?void 0:un.className,{[`${se}-${Re}`]:_n,[`${se}-has-color`]:Re&&!_n,[`${se}-hidden`]:!Ut,[`${se}-rtl`]:Vt==="rtl",[`${se}-borderless`]:!Yt},Qe,Fe,ge),le=Xt=>{Xt.stopPropagation(),Le==null||Le(Xt),!Xt.defaultPrevented&&fn(!1)},[,ze]=(0,Ne.Z)(Rt,Nt,Xt=>Xt===null?re.createElement(xe.Z,{className:`${se}-close-icon`,onClick:le}):re.createElement("span",{className:`${se}-close-icon`,onClick:le},Xt),null,!1),bt=typeof vt.onClick=="function"||Mt&&Mt.type==="a",Pt=jt||null,mn=Pt?re.createElement(re.Fragment,null,Pt,Mt&&re.createElement("span",null,Mt)):Mt,ln=re.createElement("span",Object.assign({},vt,{ref:pt,className:pe,style:Ce}),mn,ze,en&&re.createElement(We,{key:"preset",prefixCls:se}),En&&re.createElement(Tt,{key:"status",prefixCls:se}));return ue(bt?re.createElement(je.Z,{component:"Tag"},ln):ln)},st=re.forwardRef(Ot);st.CheckableTag=Je;var ct=st},48305:function(cn,yn,de){"use strict";de.d(yn,{default:function(){return Ei}});var re=de(94184),xe=de.n(re),tt=de(87462),At=de(74902),Pe=de(1413),Ne=de(97685),je=de(45987),Ee=de(71002),ye=de(4942),qe=de(21770),it=de(80334),he=de(67294),gt=de(8410),kt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Ae=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Ae)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Ae==null?void 0:Ae.substr(0,4))},Xe=de(15105),ft=de(42550),Ze=function(Oe){var dt=Oe.className,Se=Oe.customizeIcon,at=Oe.customizeIconProps,mt=Oe.onMouseDown,Bt=Oe.onClick,Ge=Oe.children,ot;return typeof Se=="function"?ot=Se(at):ot=Se,he.createElement("span",{className:dt,onMouseDown:function(It){It.preventDefault(),mt&&mt(It)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Bt,"aria-hidden":!0},ot!==void 0?ot:he.createElement("span",{className:xe()(dt.split(/\s+/).map(function(ut){return"".concat(ut,"-icon")}))},Ge))},Je=Ze;function et(Ae,Oe,dt,Se,at){var mt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Bt=arguments.length>6?arguments[6]:void 0,Ge=arguments.length>7?arguments[7]:void 0,ot=he.useMemo(function(){if((0,Ee.Z)(Se)==="object")return Se.clearIcon;if(at)return at},[Se,at]),ut=he.useMemo(function(){return!!(!mt&&Se&&(dt.length||Bt)&&!(Ge==="combobox"&&Bt===""))},[Se,mt,dt.length,Bt,Ge]);return{allowClear:ut,clearIcon:he.createElement(Je,{className:"".concat(Ae,"-clear"),onMouseDown:Oe,customizeIcon:ot},"\xD7")}}var Ye=he.createContext(null);function We(){return he.useContext(Ye)}function $e(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Oe=he.useState(!1),dt=(0,Ne.Z)(Oe,2),Se=dt[0],at=dt[1],mt=he.useRef(null),Bt=function(){window.clearTimeout(mt.current)};he.useEffect(function(){return Bt},[]);var Ge=function(ut,It){Bt(),mt.current=window.setTimeout(function(){at(ut),It&&It()},Ae)};return[Se,Ge,Bt]}function lt(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Oe=he.useRef(null),dt=he.useRef(null);he.useEffect(function(){return function(){window.clearTimeout(dt.current)}},[]);function Se(at){(at||Oe.current===null)&&(Oe.current=at),window.clearTimeout(dt.current),dt.current=window.setTimeout(function(){Oe.current=null},Ae)}return[function(){return Oe.current},Se]}function Tt(Ae,Oe,dt,Se){var at=he.useRef(null);at.current={open:Oe,triggerOpen:dt,customizedTrigger:Se},he.useEffect(function(){function mt(Bt){var Ge;if(!((Ge=at.current)!==null&&Ge!==void 0&&Ge.customizedTrigger)){var ot=Bt.target;ot.shadowRoot&&Bt.composed&&(ot=Bt.composedPath()[0]||ot),at.current.open&&Ae().filter(function(ut){return ut}).every(function(ut){return!ut.contains(ot)&&ut!==ot})&&at.current.triggerOpen(!1)}}return window.addEventListener("mousedown",mt),function(){return window.removeEventListener("mousedown",mt)}},[])}var _t=de(64217),Ot=de(48555);function st(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ct=st()?he.useLayoutEffect:he.useEffect,He=function(Oe,dt){var Se=he.useRef(!0);ct(function(){return Oe(Se.current)},dt),ct(function(){return Se.current=!1,function(){Se.current=!0}},[])},pt=function(Oe,dt){He(function(Se){if(!Se)return Oe()},dt)},Ve=He,Qe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Fe=void 0;function wt(Ae,Oe){var dt=Ae.prefixCls,Se=Ae.invalidate,at=Ae.item,mt=Ae.renderItem,Bt=Ae.responsive,Ge=Ae.responsiveDisabled,ot=Ae.registerSize,ut=Ae.itemKey,It=Ae.className,Zt=Ae.style,nn=Ae.children,Ht=Ae.display,on=Ae.order,wn=Ae.component,Tn=wn===void 0?"div":wn,dn=(0,je.Z)(Ae,Qe),Xn=Bt&&!Ht;function Pn(gr){ot(ut,gr)}he.useEffect(function(){return function(){Pn(null)}},[]);var Wn=mt&&at!==Fe?mt(at):nn,ar;Se||(ar={opacity:Xn?0:1,height:Xn?0:Fe,overflowY:Xn?"hidden":Fe,order:Bt?on:Fe,pointerEvents:Xn?"none":Fe,position:Xn?"absolute":Fe});var Rn={};Xn&&(Rn["aria-hidden"]=!0);var br=he.createElement(Tn,(0,tt.Z)({className:xe()(!Se&&dt,It),style:(0,Pe.Z)((0,Pe.Z)({},ar),Zt)},Rn,dn,{ref:Oe}),Wn);return Bt&&(br=he.createElement(Ot.Z,{onResize:function(rr){var Yn=rr.offsetWidth;Pn(Yn)},disabled:Ge},br)),br}var Mt=he.forwardRef(wt);Mt.displayName="Item";var jt=Mt;function Re(Ae){var Oe=he.useRef();Oe.current=Ae;var dt=he.useCallback(function(){for(var Se,at=arguments.length,mt=new Array(at),Bt=0;Bt<at;Bt++)mt[Bt]=arguments[Bt];return(Se=Oe.current)===null||Se===void 0?void 0:Se.call.apply(Se,[Oe].concat(mt))},[]);return dt}var Le=de(73935),Nt=function(Oe){return+setTimeout(Oe,16)},Rt=function(Oe){return clearTimeout(Oe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Nt=function(Oe){return window.requestAnimationFrame(Oe)},Rt=function(Oe){return window.cancelAnimationFrame(Oe)});var Yt=0,vt=new Map;function nt(Ae){vt.delete(Ae)}var Vt=function(Oe){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Yt+=1;var Se=Yt;function at(mt){if(mt===0)nt(Se),Oe();else{var Bt=Nt(function(){at(mt-1)});vt.set(Se,Bt)}}return at(dt),Se};Vt.cancel=function(Ae){var Oe=vt.get(Ae);return nt(Oe),Rt(Oe)};var un=Vt;function Ut(Ae){if(typeof MessageChannel=="undefined")un(Ae);else{var Oe=new MessageChannel;Oe.port1.onmessage=function(){return Ae()},Oe.port2.postMessage(void 0)}}function fn(){var Ae=he.useRef(null),Oe=function(Se){Ae.current||(Ae.current=[],Ut(function(){(0,Le.unstable_batchedUpdates)(function(){Ae.current.forEach(function(at){at()}),Ae.current=null})})),Ae.current.push(Se)};return Oe}function en(Ae,Oe){var dt=he.useState(Oe),Se=(0,Ne.Z)(dt,2),at=Se[0],mt=Se[1],Bt=Re(function(Ge){Ae(function(){mt(Ge)})});return[at,Bt]}var En=he.createContext(null),_n=["component"],Ce=["className"],se=["className"],ue=function(Oe,dt){var Se=he.useContext(En);if(!Se){var at=Oe.component,mt=at===void 0?"div":at,Bt=(0,je.Z)(Oe,_n);return he.createElement(mt,(0,tt.Z)({},Bt,{ref:dt}))}var Ge=Se.className,ot=(0,je.Z)(Se,Ce),ut=Oe.className,It=(0,je.Z)(Oe,se);return he.createElement(En.Provider,{value:null},he.createElement(jt,(0,tt.Z)({ref:dt,className:xe()(Ge,ut)},ot,It)))},ge=he.forwardRef(ue);ge.displayName="RawItem";var pe=ge,le=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ze="responsive",bt="invalidate";function Pt(Ae){return"+ ".concat(Ae.length," ...")}function mn(Ae,Oe){var dt=Ae.prefixCls,Se=dt===void 0?"rc-overflow":dt,at=Ae.data,mt=at===void 0?[]:at,Bt=Ae.renderItem,Ge=Ae.renderRawItem,ot=Ae.itemKey,ut=Ae.itemWidth,It=ut===void 0?10:ut,Zt=Ae.ssr,nn=Ae.style,Ht=Ae.className,on=Ae.maxCount,wn=Ae.renderRest,Tn=Ae.renderRawRest,dn=Ae.suffix,Xn=Ae.component,Pn=Xn===void 0?"div":Xn,Wn=Ae.itemComponent,ar=Ae.onVisibleChange,Rn=(0,je.Z)(Ae,le),br=Zt==="full",gr=fn(),rr=en(gr,null),Yn=(0,Ne.Z)(rr,2),Kn=Yn[0],dr=Yn[1],Gn=Kn||0,hr=en(gr,new Map),vr=(0,Ne.Z)(hr,2),fr=vr[0],qn=vr[1],Or=en(gr,0),Vr=(0,Ne.Z)(Or,2),Vi=Vr[0],Ni=Vr[1],Ii=en(gr,0),na=(0,Ne.Z)(Ii,2),Ci=na[0],ya=na[1],Ia=en(gr,0),Qr=(0,Ne.Z)(Ia,2),Er=Qr[0],hi=Qr[1],Oi=(0,he.useState)(null),gi=(0,Ne.Z)(Oi,2),Xi=gi[0],yi=gi[1],Zi=(0,he.useState)(null),da=(0,Ne.Z)(Zi,2),Da=da[0],Ra=da[1],Hi=he.useMemo(function(){return Da===null&&br?Number.MAX_SAFE_INTEGER:Da||0},[Da,Kn]),Ai=(0,he.useState)(!1),ba=(0,Ne.Z)(Ai,2),fa=ba[0],aa=ba[1],qi="".concat(Se,"-item"),Yr=Math.max(Vi,Ci),Si=on===ze,oa=mt.length&&Si,$i=on===bt,Fa=oa||typeof on=="number"&&mt.length>on,ti=(0,he.useMemo)(function(){var ea=mt;return oa?Kn===null&&br?ea=mt:ea=mt.slice(0,Math.min(mt.length,Gn/It)):typeof on=="number"&&(ea=mt.slice(0,on)),ea},[mt,It,Kn,on,oa]),Un=(0,he.useMemo)(function(){return oa?mt.slice(Hi+1):mt.slice(ti.length)},[mt,ti,oa,Hi]),Dr=(0,he.useCallback)(function(ea,Rr){var Bi;return typeof ot=="function"?ot(ea):(Bi=ot&&(ea==null?void 0:ea[ot]))!==null&&Bi!==void 0?Bi:Rr},[ot]),Hr=(0,he.useCallback)(Bt||function(ea){return ea},[Bt]);function or(ea,Rr,Bi){Da===ea&&(Rr===void 0||Rr===Xi)||(Ra(ea),Bi||(aa(ea<mt.length-1),ar==null||ar(ea)),Rr!==void 0&&yi(Rr))}function zi(ea,Rr){dr(Rr.clientWidth)}function ga(ea,Rr){qn(function(Bi){var Hn=new Map(Bi);return Rr===null?Hn.delete(ea):Hn.set(ea,Rr),Hn})}function eo(ea,Rr){ya(Rr),Ni(Ci)}function Qa(ea,Rr){hi(Rr)}function go(ea){return fr.get(Dr(ti[ea],ea))}Ve(function(){if(Gn&&typeof Yr=="number"&&ti){var ea=Er,Rr=ti.length,Bi=Rr-1;if(!Rr){or(0,null);return}for(var Hn=0;Hn<Rr;Hn+=1){var Ui=go(Hn);if(br&&(Ui=Ui||0),Ui===void 0){or(Hn-1,void 0,!0);break}if(ea+=Ui,Bi===0&&ea<=Gn||Hn===Bi-1&&ea+go(Bi)<=Gn){or(Bi,null);break}else if(ea+Yr>Gn){or(Hn-1,ea-Ui-Er+Ci);break}}dn&&go(0)+Er>Gn&&yi(null)}},[Gn,fr,Ci,Er,Dr,ti]);var to=fa&&!!Un.length,ts={};Xi!==null&&oa&&(ts={position:"absolute",left:Xi,top:0});var Jo={prefixCls:qi,responsive:oa,component:Wn,invalidate:$i},Ko=Ge?function(ea,Rr){var Bi=Dr(ea,Rr);return he.createElement(En.Provider,{key:Bi,value:(0,Pe.Z)((0,Pe.Z)({},Jo),{},{order:Rr,item:ea,itemKey:Bi,registerSize:ga,display:Rr<=Hi})},Ge(ea,Rr))}:function(ea,Rr){var Bi=Dr(ea,Rr);return he.createElement(jt,(0,tt.Z)({},Jo,{order:Rr,key:Bi,item:ea,renderItem:Hr,itemKey:Bi,registerSize:ga,display:Rr<=Hi}))},xs,Ns={order:to?Hi:Number.MAX_SAFE_INTEGER,className:"".concat(qi,"-rest"),registerSize:eo,display:to};if(Tn)Tn&&(xs=he.createElement(En.Provider,{value:(0,Pe.Z)((0,Pe.Z)({},Jo),Ns)},Tn(Un)));else{var ws=wn||Pt;xs=he.createElement(jt,(0,tt.Z)({},Jo,Ns),typeof ws=="function"?ws(Un):ws)}var vl=he.createElement(Pn,(0,tt.Z)({className:xe()(!$i&&Se,Ht),style:nn,ref:Oe},Rn),ti.map(Ko),Fa?xs:null,dn&&he.createElement(jt,(0,tt.Z)({},Jo,{responsive:Si,responsiveDisabled:!oa,order:Hi,className:"".concat(qi,"-suffix"),registerSize:Qa,display:!0,style:ts}),dn));return Si&&(vl=he.createElement(Ot.Z,{onResize:zi,disabled:!oa},vl)),vl}var ln=he.forwardRef(mn);ln.displayName="Overflow",ln.Item=pe,ln.RESPONSIVE=ze,ln.INVALIDATE=bt;var Xt=ln,Kt=Xt,sr=function(Oe,dt){var Se,at,mt=Oe.prefixCls,Bt=Oe.id,Ge=Oe.inputElement,ot=Oe.disabled,ut=Oe.tabIndex,It=Oe.autoFocus,Zt=Oe.autoComplete,nn=Oe.editable,Ht=Oe.activeDescendantId,on=Oe.value,wn=Oe.maxLength,Tn=Oe.onKeyDown,dn=Oe.onMouseDown,Xn=Oe.onChange,Pn=Oe.onPaste,Wn=Oe.onCompositionStart,ar=Oe.onCompositionEnd,Rn=Oe.open,br=Oe.attrs,gr=Ge||he.createElement("input",null),rr=gr,Yn=rr.ref,Kn=rr.props,dr=Kn.onKeyDown,Gn=Kn.onChange,hr=Kn.onMouseDown,vr=Kn.onCompositionStart,fr=Kn.onCompositionEnd,qn=Kn.style;return(0,it.Kp)(!("maxLength"in gr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),gr=he.cloneElement(gr,(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({type:"search"},Kn),{},{id:Bt,ref:(0,ft.sQ)(dt,Yn),disabled:ot,tabIndex:ut,autoComplete:Zt||"off",autoFocus:It,className:xe()("".concat(mt,"-selection-search-input"),(Se=gr)===null||Se===void 0||(at=Se.props)===null||at===void 0?void 0:at.className),role:"combobox","aria-label":"Search","aria-expanded":Rn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Bt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Bt,"_list"),"aria-activedescendant":Rn?Ht:void 0},br),{},{value:nn?on:"",maxLength:wn,readOnly:!nn,unselectable:nn?null:"on",style:(0,Pe.Z)((0,Pe.Z)({},qn),{},{opacity:nn?null:0}),onKeyDown:function(Vr){Tn(Vr),dr&&dr(Vr)},onMouseDown:function(Vr){dn(Vr),hr&&hr(Vr)},onChange:function(Vr){Xn(Vr),Gn&&Gn(Vr)},onCompositionStart:function(Vr){Wn(Vr),vr&&vr(Vr)},onCompositionEnd:function(Vr){ar(Vr),fr&&fr(Vr)},onPaste:Pn})),gr},mr=he.forwardRef(sr);mr.displayName="Input";var Gt=mr;function rn(Ae){return Array.isArray(Ae)?Ae:Ae!==void 0?[Ae]:[]}var Jr=typeof window!="undefined"&&window.document&&window.document.documentElement,_r=Jr;function xr(Ae){return Ae!=null}function wr(Ae){return!Ae&&Ae!==0}function Ji(Ae){return["string","number"].includes((0,Ee.Z)(Ae))}function Ir(Ae){var Oe=void 0;return Ae&&(Ji(Ae.title)?Oe=Ae.title.toString():Ji(Ae.label)&&(Oe=Ae.label.toString())),Oe}function Wr(Ae,Oe){_r?he.useLayoutEffect(Ae,Oe):he.useEffect(Ae,Oe)}function Tr(Ae){var Oe;return(Oe=Ae.key)!==null&&Oe!==void 0?Oe:Ae.value}var si=function(Oe){Oe.preventDefault(),Oe.stopPropagation()},pi=function(Oe){var dt=Oe.id,Se=Oe.prefixCls,at=Oe.values,mt=Oe.open,Bt=Oe.searchValue,Ge=Oe.autoClearSearchValue,ot=Oe.inputRef,ut=Oe.placeholder,It=Oe.disabled,Zt=Oe.mode,nn=Oe.showSearch,Ht=Oe.autoFocus,on=Oe.autoComplete,wn=Oe.activeDescendantId,Tn=Oe.tabIndex,dn=Oe.removeIcon,Xn=Oe.maxTagCount,Pn=Oe.maxTagTextLength,Wn=Oe.maxTagPlaceholder,ar=Wn===void 0?function(yi){return"+ ".concat(yi.length," ...")}:Wn,Rn=Oe.tagRender,br=Oe.onToggleOpen,gr=Oe.onRemove,rr=Oe.onInputChange,Yn=Oe.onInputPaste,Kn=Oe.onInputKeyDown,dr=Oe.onInputMouseDown,Gn=Oe.onInputCompositionStart,hr=Oe.onInputCompositionEnd,vr=he.useRef(null),fr=(0,he.useState)(0),qn=(0,Ne.Z)(fr,2),Or=qn[0],Vr=qn[1],Vi=(0,he.useState)(!1),Ni=(0,Ne.Z)(Vi,2),Ii=Ni[0],na=Ni[1],Ci="".concat(Se,"-selection"),ya=mt||Zt==="multiple"&&Ge===!1||Zt==="tags"?Bt:"",Ia=Zt==="tags"||Zt==="multiple"&&Ge===!1||nn&&(mt||Ii);Wr(function(){Vr(vr.current.scrollWidth)},[ya]);function Qr(yi,Zi,da,Da,Ra){return he.createElement("span",{className:xe()("".concat(Ci,"-item"),(0,ye.Z)({},"".concat(Ci,"-item-disabled"),da)),title:Ir(yi)},he.createElement("span",{className:"".concat(Ci,"-item-content")},Zi),Da&&he.createElement(Je,{className:"".concat(Ci,"-item-remove"),onMouseDown:si,onClick:Ra,customizeIcon:dn},"\xD7"))}function Er(yi,Zi,da,Da,Ra){var Hi=function(ba){si(ba),br(!mt)};return he.createElement("span",{onMouseDown:Hi},Rn({label:Zi,value:yi,disabled:da,closable:Da,onClose:Ra}))}function hi(yi){var Zi=yi.disabled,da=yi.label,Da=yi.value,Ra=!It&&!Zi,Hi=da;if(typeof Pn=="number"&&(typeof da=="string"||typeof da=="number")){var Ai=String(Hi);Ai.length>Pn&&(Hi="".concat(Ai.slice(0,Pn),"..."))}var ba=function(aa){aa&&aa.stopPropagation(),gr(yi)};return typeof Rn=="function"?Er(Da,Hi,Zi,Ra,ba):Qr(yi,Hi,Zi,Ra,ba)}function Oi(yi){var Zi=typeof ar=="function"?ar(yi):ar;return Qr({title:Zi},Zi,!1)}var gi=he.createElement("div",{className:"".concat(Ci,"-search"),style:{width:Or},onFocus:function(){na(!0)},onBlur:function(){na(!1)}},he.createElement(Gt,{ref:ot,open:mt,prefixCls:Se,id:dt,inputElement:null,disabled:It,autoFocus:Ht,autoComplete:on,editable:Ia,activeDescendantId:wn,value:ya,onKeyDown:Kn,onMouseDown:dr,onChange:rr,onPaste:Yn,onCompositionStart:Gn,onCompositionEnd:hr,tabIndex:Tn,attrs:(0,_t.Z)(Oe,!0)}),he.createElement("span",{ref:vr,className:"".concat(Ci,"-search-mirror"),"aria-hidden":!0},ya,"\xA0")),Xi=he.createElement(Kt,{prefixCls:"".concat(Ci,"-overflow"),data:at,renderItem:hi,renderRest:Oi,suffix:gi,itemKey:Tr,maxCount:Xn});return he.createElement(he.Fragment,null,Xi,!at.length&&!ya&&he.createElement("span",{className:"".concat(Ci,"-placeholder")},ut))},Wi=pi,bi=function(Oe){var dt=Oe.inputElement,Se=Oe.prefixCls,at=Oe.id,mt=Oe.inputRef,Bt=Oe.disabled,Ge=Oe.autoFocus,ot=Oe.autoComplete,ut=Oe.activeDescendantId,It=Oe.mode,Zt=Oe.open,nn=Oe.values,Ht=Oe.placeholder,on=Oe.tabIndex,wn=Oe.showSearch,Tn=Oe.searchValue,dn=Oe.activeValue,Xn=Oe.maxLength,Pn=Oe.onInputKeyDown,Wn=Oe.onInputMouseDown,ar=Oe.onInputChange,Rn=Oe.onInputPaste,br=Oe.onInputCompositionStart,gr=Oe.onInputCompositionEnd,rr=Oe.title,Yn=he.useState(!1),Kn=(0,Ne.Z)(Yn,2),dr=Kn[0],Gn=Kn[1],hr=It==="combobox",vr=hr||wn,fr=nn[0],qn=Tn||"";hr&&dn&&!dr&&(qn=dn),he.useEffect(function(){hr&&Gn(!1)},[hr,dn]);var Or=It!=="combobox"&&!Zt&&!wn?!1:!!qn,Vr=rr===void 0?Ir(fr):rr,Vi=function(){if(fr)return null;var Ii=Or?{visibility:"hidden"}:void 0;return he.createElement("span",{className:"".concat(Se,"-selection-placeholder"),style:Ii},Ht)};return he.createElement(he.Fragment,null,he.createElement("span",{className:"".concat(Se,"-selection-search")},he.createElement(Gt,{ref:mt,prefixCls:Se,id:at,open:Zt,inputElement:dt,disabled:Bt,autoFocus:Ge,autoComplete:ot,editable:vr,activeDescendantId:ut,value:qn,onKeyDown:Pn,onMouseDown:Wn,onChange:function(Ii){Gn(!0),ar(Ii)},onPaste:Rn,onCompositionStart:br,onCompositionEnd:gr,tabIndex:on,attrs:(0,_t.Z)(Oe,!0),maxLength:hr?Xn:void 0})),!hr&&fr?he.createElement("span",{className:"".concat(Se,"-selection-item"),title:Vr,style:Or?{visibility:"hidden"}:void 0},fr.label):null,Vi())},kr=bi;function an(Ae){return![Xe.Z.ESC,Xe.Z.SHIFT,Xe.Z.BACKSPACE,Xe.Z.TAB,Xe.Z.WIN_KEY,Xe.Z.ALT,Xe.Z.META,Xe.Z.WIN_KEY_RIGHT,Xe.Z.CTRL,Xe.Z.SEMICOLON,Xe.Z.EQUALS,Xe.Z.CAPS_LOCK,Xe.Z.CONTEXT_MENU,Xe.Z.F1,Xe.Z.F2,Xe.Z.F3,Xe.Z.F4,Xe.Z.F5,Xe.Z.F6,Xe.Z.F7,Xe.Z.F8,Xe.Z.F9,Xe.Z.F10,Xe.Z.F11,Xe.Z.F12].includes(Ae)}var Nn=function(Oe,dt){var Se=(0,he.useRef)(null),at=(0,he.useRef)(!1),mt=Oe.prefixCls,Bt=Oe.open,Ge=Oe.mode,ot=Oe.showSearch,ut=Oe.tokenWithEnter,It=Oe.autoClearSearchValue,Zt=Oe.onSearch,nn=Oe.onSearchSubmit,Ht=Oe.onToggleOpen,on=Oe.onInputKeyDown,wn=Oe.domRef;he.useImperativeHandle(dt,function(){return{focus:function(){Se.current.focus()},blur:function(){Se.current.blur()}}});var Tn=lt(0),dn=(0,Ne.Z)(Tn,2),Xn=dn[0],Pn=dn[1],Wn=function(qn){var Or=qn.which;(Or===Xe.Z.UP||Or===Xe.Z.DOWN)&&qn.preventDefault(),on&&on(qn),Or===Xe.Z.ENTER&&Ge==="tags"&&!at.current&&!Bt&&(nn==null||nn(qn.target.value)),an(Or)&&Ht(!0)},ar=function(){Pn(!0)},Rn=(0,he.useRef)(null),br=function(qn){Zt(qn,!0,at.current)!==!1&&Ht(!0)},gr=function(){at.current=!0},rr=function(qn){at.current=!1,Ge!=="combobox"&&br(qn.target.value)},Yn=function(qn){var Or=qn.target.value;if(ut&&Rn.current&&/[\r\n]/.test(Rn.current)){var Vr=Rn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Or=Or.replace(Vr,Rn.current)}Rn.current=null,br(Or)},Kn=function(qn){var Or=qn.clipboardData,Vr=Or.getData("text");Rn.current=Vr},dr=function(qn){var Or=qn.target;if(Or!==Se.current){var Vr=document.body.style.msTouchAction!==void 0;Vr?setTimeout(function(){Se.current.focus()}):Se.current.focus()}},Gn=function(qn){var Or=Xn();qn.target!==Se.current&&!Or&&Ge!=="combobox"&&qn.preventDefault(),(Ge!=="combobox"&&(!ot||!Or)||!Bt)&&(Bt&&It!==!1&&Zt("",!0,!1),Ht())},hr={inputRef:Se,onInputKeyDown:Wn,onInputMouseDown:ar,onInputChange:Yn,onInputPaste:Kn,onInputCompositionStart:gr,onInputCompositionEnd:rr},vr=Ge==="multiple"||Ge==="tags"?he.createElement(Wi,(0,tt.Z)({},Oe,hr)):he.createElement(kr,(0,tt.Z)({},Oe,hr));return he.createElement("div",{ref:wn,className:"".concat(mt,"-selector"),onClick:dr,onMouseDown:Gn},vr)},On=he.forwardRef(Nn);On.displayName="Selector";var Dn=On,Mr=de(62709),vn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Vn=function(Oe){var dt=Oe===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:dt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:dt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:dt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:dt,adjustY:1},htmlRegion:"scroll"}}},Xr=function(Oe,dt){var Se=Oe.prefixCls,at=Oe.disabled,mt=Oe.visible,Bt=Oe.children,Ge=Oe.popupElement,ot=Oe.animation,ut=Oe.transitionName,It=Oe.dropdownStyle,Zt=Oe.dropdownClassName,nn=Oe.direction,Ht=nn===void 0?"ltr":nn,on=Oe.placement,wn=Oe.builtinPlacements,Tn=Oe.dropdownMatchSelectWidth,dn=Oe.dropdownRender,Xn=Oe.dropdownAlign,Pn=Oe.getPopupContainer,Wn=Oe.empty,ar=Oe.getTriggerDOMNode,Rn=Oe.onPopupVisibleChange,br=Oe.onPopupMouseEnter,gr=(0,je.Z)(Oe,vn),rr="".concat(Se,"-dropdown"),Yn=Ge;dn&&(Yn=dn(Ge));var Kn=he.useMemo(function(){return wn||Vn(Tn)},[wn,Tn]),dr=ot?"".concat(rr,"-").concat(ot):ut,Gn=typeof Tn=="number",hr=he.useMemo(function(){return Gn?null:Tn===!1?"minWidth":"width"},[Tn,Gn]),vr=It;Gn&&(vr=(0,Pe.Z)((0,Pe.Z)({},vr),{},{width:Tn}));var fr=he.useRef(null);return he.useImperativeHandle(dt,function(){return{getPopupElement:function(){return fr.current}}}),he.createElement(Mr.Z,(0,tt.Z)({},gr,{showAction:Rn?["click"]:[],hideAction:Rn?["click"]:[],popupPlacement:on||(Ht==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Kn,prefixCls:rr,popupTransitionName:dr,popup:he.createElement("div",{ref:fr,onMouseEnter:br},Yn),stretch:hr,popupAlign:Xn,popupVisible:mt,getPopupContainer:Pn,popupClassName:xe()(Zt,(0,ye.Z)({},"".concat(rr,"-empty"),Wn)),popupStyle:vr,getTriggerDOMNode:ar,onPopupVisibleChange:Rn}),Bt)},fi=he.forwardRef(Xr);fi.displayName="SelectTrigger";var er=fi,ia=de(84506);function Gi(Ae,Oe){var dt=Ae.key,Se;return"value"in Ae&&(Se=Ae.value),dt!=null?dt:Se!==void 0?Se:"rc-index-key-".concat(Oe)}function Br(Ae,Oe){var dt=Ae||{},Se=dt.label,at=dt.value,mt=dt.options,Bt=dt.groupLabel,Ge=Se||(Oe?"children":"label");return{label:Ge,value:at||"value",options:mt||"options",groupLabel:Bt||Ge}}function lr(Ae){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dt=Oe.fieldNames,Se=Oe.childrenAsData,at=[],mt=Br(dt,!1),Bt=mt.label,Ge=mt.value,ot=mt.options,ut=mt.groupLabel;function It(Zt,nn){Zt.forEach(function(Ht){if(nn||!(ot in Ht)){var on=Ht[Ge];at.push({key:Gi(Ht,at.length),groupOption:nn,data:Ht,label:Ht[Bt],value:on})}else{var wn=Ht[ut];wn===void 0&&Se&&(wn=Ht.label),at.push({key:Gi(Ht,at.length),group:!0,data:Ht,label:wn}),It(Ht[ot],!0)}})}return It(Ae,!1),at}function qr(Ae){var Oe=(0,Pe.Z)({},Ae);return"props"in Oe||Object.defineProperty(Oe,"props",{get:function(){return(0,it.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Oe}}),Oe}function xa(Ae,Oe){if(!Oe||!Oe.length)return null;var dt=!1;function Se(mt,Bt){var Ge=(0,ia.Z)(Bt),ot=Ge[0],ut=Ge.slice(1);if(!ot)return[mt];var It=mt.split(ot);return dt=dt||It.length>1,It.reduce(function(Zt,nn){return[].concat((0,At.Z)(Zt),(0,At.Z)(Se(nn,ut)))},[]).filter(function(Zt){return Zt})}var at=Se(Ae,Oe);return dt?at:null}var vi=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ca=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function li(Ae){return Ae==="tags"||Ae==="multiple"}var wi=he.forwardRef(function(Ae,Oe){var dt,Se,at=Ae.id,mt=Ae.prefixCls,Bt=Ae.className,Ge=Ae.showSearch,ot=Ae.tagRender,ut=Ae.direction,It=Ae.omitDomProps,Zt=Ae.displayValues,nn=Ae.onDisplayValuesChange,Ht=Ae.emptyOptions,on=Ae.notFoundContent,wn=on===void 0?"Not Found":on,Tn=Ae.onClear,dn=Ae.mode,Xn=Ae.disabled,Pn=Ae.loading,Wn=Ae.getInputElement,ar=Ae.getRawInputElement,Rn=Ae.open,br=Ae.defaultOpen,gr=Ae.onDropdownVisibleChange,rr=Ae.activeValue,Yn=Ae.onActiveValueChange,Kn=Ae.activeDescendantId,dr=Ae.searchValue,Gn=Ae.autoClearSearchValue,hr=Ae.onSearch,vr=Ae.onSearchSplit,fr=Ae.tokenSeparators,qn=Ae.allowClear,Or=Ae.suffixIcon,Vr=Ae.clearIcon,Vi=Ae.OptionList,Ni=Ae.animation,Ii=Ae.transitionName,na=Ae.dropdownStyle,Ci=Ae.dropdownClassName,ya=Ae.dropdownMatchSelectWidth,Ia=Ae.dropdownRender,Qr=Ae.dropdownAlign,Er=Ae.placement,hi=Ae.builtinPlacements,Oi=Ae.getPopupContainer,gi=Ae.showAction,Xi=gi===void 0?[]:gi,yi=Ae.onFocus,Zi=Ae.onBlur,da=Ae.onKeyUp,Da=Ae.onKeyDown,Ra=Ae.onMouseDown,Hi=(0,je.Z)(Ae,vi),Ai=li(dn),ba=(Ge!==void 0?Ge:Ai)||dn==="combobox",fa=(0,Pe.Z)({},Hi);ca.forEach(function(_a){delete fa[_a]}),It==null||It.forEach(function(_a){delete fa[_a]});var aa=he.useState(!1),qi=(0,Ne.Z)(aa,2),Yr=qi[0],Si=qi[1];he.useEffect(function(){Si(kt())},[]);var oa=he.useRef(null),$i=he.useRef(null),Fa=he.useRef(null),ti=he.useRef(null),Un=he.useRef(null),Dr=$e(),Hr=(0,Ne.Z)(Dr,3),or=Hr[0],zi=Hr[1],ga=Hr[2];he.useImperativeHandle(Oe,function(){var _a,di;return{focus:(_a=ti.current)===null||_a===void 0?void 0:_a.focus,blur:(di=ti.current)===null||di===void 0?void 0:di.blur,scrollTo:function(Es){var Cs;return(Cs=Un.current)===null||Cs===void 0?void 0:Cs.scrollTo(Es)}}});var eo=he.useMemo(function(){var _a;if(dn!=="combobox")return dr;var di=(_a=Zt[0])===null||_a===void 0?void 0:_a.value;return typeof di=="string"||typeof di=="number"?String(di):""},[dr,dn,Zt]),Qa=dn==="combobox"&&typeof Wn=="function"&&Wn()||null,go=typeof ar=="function"&&ar(),to=(0,ft.x1)($i,go==null||(dt=go.props)===null||dt===void 0?void 0:dt.ref),ts=he.useState(!1),Jo=(0,Ne.Z)(ts,2),Ko=Jo[0],xs=Jo[1];(0,gt.Z)(function(){xs(!0)},[]);var Ns=(0,qe.Z)(!1,{defaultValue:br,value:Rn}),ws=(0,Ne.Z)(Ns,2),vl=ws[0],ea=ws[1],Rr=Ko?vl:!1,Bi=!wn&&Ht;(Xn||Bi&&Rr&&dn==="combobox")&&(Rr=!1);var Hn=Bi?!1:Rr,Ui=he.useCallback(function(_a){var di=_a!==void 0?_a:!Rr;Xn||(ea(di),Rr!==di&&(gr==null||gr(di)))},[Xn,Rr,ea,gr]),yo=he.useMemo(function(){return(fr||[]).some(function(_a){return[`
|
|
|
`,`\r
|
|
|
`].includes(_a)})},[fr]),fo=function(di,Ua,Es){var Cs=!0,Zo=di;Yn==null||Yn(null);var _l=Es?null:xa(di,fr);return dn!=="combobox"&&_l&&(Zo="",vr==null||vr(_l),Ui(!1),Cs=!1),hr&&eo!==Zo&&hr(Zo,{source:Ua?"typing":"effect"}),Cs},So=function(di){!di||!di.trim()||hr(di,{source:"submit"})};he.useEffect(function(){!Rr&&!Ai&&dn!=="combobox"&&fo("",!1,!1)},[Rr]),he.useEffect(function(){vl&&Xn&&ea(!1),Xn&&zi(!1)},[Xn]);var uo=lt(),el=(0,Ne.Z)(uo,2),ds=el[0],kl=el[1],za=function(di){var Ua=ds(),Es=di.which;if(Es===Xe.Z.ENTER&&(dn!=="combobox"&&di.preventDefault(),Rr||Ui(!0)),kl(!!eo),Es===Xe.Z.BACKSPACE&&!Ua&&Ai&&!eo&&Zt.length){for(var Cs=(0,At.Z)(Zt),Zo=null,_l=Cs.length-1;_l>=0;_l-=1){var zo=Cs[_l];if(!zo.disabled){Cs.splice(_l,1),Zo=zo;break}}Zo&&nn(Cs,{type:"remove",values:[Zo]})}for(var ql=arguments.length,Ou=new Array(ql>1?ql-1:0),vu=1;vu<ql;vu++)Ou[vu-1]=arguments[vu];if(Rr&&Un.current){var cc;(cc=Un.current).onKeyDown.apply(cc,[di].concat(Ou))}Da==null||Da.apply(void 0,[di].concat(Ou))},ka=function(di){for(var Ua=arguments.length,Es=new Array(Ua>1?Ua-1:0),Cs=1;Cs<Ua;Cs++)Es[Cs-1]=arguments[Cs];if(Rr&&Un.current){var Zo;(Zo=Un.current).onKeyUp.apply(Zo,[di].concat(Es))}da==null||da.apply(void 0,[di].concat(Es))},no=function(di){var Ua=Zt.filter(function(Es){return Es!==di});nn(Ua,{type:"remove",values:[di]})},Za=he.useRef(!1),Ao=function(){zi(!0),Xn||(yi&&!Za.current&&yi.apply(void 0,arguments),Xi.includes("focus")&&Ui(!0)),Za.current=!0},Ho=function(){zi(!1,function(){Za.current=!1,Ui(!1)}),!Xn&&(eo&&(dn==="tags"?hr(eo,{source:"submit"}):dn==="multiple"&&hr("",{source:"blur"})),Zi&&Zi.apply(void 0,arguments))},Di=[];he.useEffect(function(){return function(){Di.forEach(function(_a){return clearTimeout(_a)}),Di.splice(0,Di.length)}},[]);var Qi=function(di){var Ua,Es=di.target,Cs=(Ua=Fa.current)===null||Ua===void 0?void 0:Ua.getPopupElement();if(Cs&&Cs.contains(Es)){var Zo=setTimeout(function(){var Ou=Di.indexOf(Zo);if(Ou!==-1&&Di.splice(Ou,1),ga(),!Yr&&!Cs.contains(document.activeElement)){var vu;(vu=ti.current)===null||vu===void 0||vu.focus()}});Di.push(Zo)}for(var _l=arguments.length,zo=new Array(_l>1?_l-1:0),ql=1;ql<_l;ql++)zo[ql-1]=arguments[ql];Ra==null||Ra.apply(void 0,[di].concat(zo))},Va=he.useState({}),ko=(0,Ne.Z)(Va,2),ho=ko[1];function fs(){ho({})}var Fo;go&&(Fo=function(di){Ui(di)}),Tt(function(){var _a;return[oa.current,(_a=Fa.current)===null||_a===void 0?void 0:_a.getPopupElement()]},Hn,Ui,!!go);var yl=he.useMemo(function(){return(0,Pe.Z)((0,Pe.Z)({},Ae),{},{notFoundContent:wn,open:Rr,triggerOpen:Hn,id:at,showSearch:ba,multiple:Ai,toggleOpen:Ui})},[Ae,wn,Hn,Rr,at,ba,Ai,Ui]),tl=!!Or||Pn,Xo;tl&&(Xo=he.createElement(Je,{className:xe()("".concat(mt,"-arrow"),(0,ye.Z)({},"".concat(mt,"-arrow-loading"),Pn)),customizeIcon:Or,customizeIconProps:{loading:Pn,searchValue:eo,open:Rr,focused:or,showSearch:ba}}));var ns=function(){var di;Tn==null||Tn(),(di=ti.current)===null||di===void 0||di.focus(),nn([],{type:"clear",values:Zt}),fo("",!1,!1)},Rl=et(mt,ns,Zt,qn,Vr,Xn,eo,dn),Nu=Rl.allowClear,Iu=Rl.clearIcon,jc=he.createElement(Vi,{ref:Un}),Gc=xe()(mt,Bt,(Se={},(0,ye.Z)(Se,"".concat(mt,"-focused"),or),(0,ye.Z)(Se,"".concat(mt,"-multiple"),Ai),(0,ye.Z)(Se,"".concat(mt,"-single"),!Ai),(0,ye.Z)(Se,"".concat(mt,"-allow-clear"),qn),(0,ye.Z)(Se,"".concat(mt,"-show-arrow"),tl),(0,ye.Z)(Se,"".concat(mt,"-disabled"),Xn),(0,ye.Z)(Se,"".concat(mt,"-loading"),Pn),(0,ye.Z)(Se,"".concat(mt,"-open"),Rr),(0,ye.Z)(Se,"".concat(mt,"-customize-input"),Qa),(0,ye.Z)(Se,"".concat(mt,"-show-search"),ba),Se)),Ac=he.createElement(er,{ref:Fa,disabled:Xn,prefixCls:mt,visible:Hn,popupElement:jc,animation:Ni,transitionName:Ii,dropdownStyle:na,dropdownClassName:Ci,direction:ut,dropdownMatchSelectWidth:ya,dropdownRender:Ia,dropdownAlign:Qr,placement:Er,builtinPlacements:hi,getPopupContainer:Oi,empty:Ht,getTriggerDOMNode:function(){return $i.current},onPopupVisibleChange:Fo,onPopupMouseEnter:fs},go?he.cloneElement(go,{ref:to}):he.createElement(Dn,(0,tt.Z)({},Ae,{domRef:$i,prefixCls:mt,inputElement:Qa,ref:ti,id:at,showSearch:ba,autoClearSearchValue:Gn,mode:dn,activeDescendantId:Kn,tagRender:ot,values:Zt,open:Rr,onToggleOpen:Ui,activeValue:rr,searchValue:eo,onSearch:fo,onSearchSubmit:So,onRemove:no,tokenWithEnter:yo}))),Xl;return go?Xl=Ac:Xl=he.createElement("div",(0,tt.Z)({className:Gc},fa,{ref:oa,onMouseDown:Qi,onKeyDown:za,onKeyUp:ka,onFocus:Ao,onBlur:Ho}),or&&!Rr&&he.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Zt.map(function(_a){var di=_a.label,Ua=_a.value;return["number","string"].includes((0,Ee.Z)(di))?di:Ua}).join(", "))),Ac,Xo,Nu&&Iu),he.createElement(Ye.Provider,{value:yl},Xl)}),Li=wi,oi=function(Ae,Oe){var dt=he.useRef({values:new Map,options:new Map}),Se=he.useMemo(function(){var mt=dt.current,Bt=mt.values,Ge=mt.options,ot=Ae.map(function(Zt){if(Zt.label===void 0){var nn;return(0,Pe.Z)((0,Pe.Z)({},Zt),{},{label:(nn=Bt.get(Zt.value))===null||nn===void 0?void 0:nn.label})}return Zt}),ut=new Map,It=new Map;return ot.forEach(function(Zt){ut.set(Zt.value,Zt),It.set(Zt.value,Oe.get(Zt.value)||Ge.get(Zt.value))}),dt.current.values=ut,dt.current.options=It,ot},[Ae,Oe]),at=he.useCallback(function(mt){return Oe.get(mt)||dt.current.options.get(mt)},[Oe]);return[Se,at]};function ir(Ae,Oe){return rn(Ae).join("").toUpperCase().includes(Oe)}var Aa=function(Ae,Oe,dt,Se,at){return he.useMemo(function(){if(!dt||Se===!1)return Ae;var mt=Oe.options,Bt=Oe.label,Ge=Oe.value,ot=[],ut=typeof Se=="function",It=dt.toUpperCase(),Zt=ut?Se:function(Ht,on){return at?ir(on[at],It):on[mt]?ir(on[Bt!=="children"?Bt:"label"],It):ir(on[Ge],It)},nn=ut?function(Ht){return qr(Ht)}:function(Ht){return Ht};return Ae.forEach(function(Ht){if(Ht[mt]){var on=Zt(dt,nn(Ht));if(on)ot.push(Ht);else{var wn=Ht[mt].filter(function(Tn){return Zt(dt,nn(Tn))});wn.length&&ot.push((0,Pe.Z)((0,Pe.Z)({},Ht),{},(0,ye.Z)({},mt,wn)))}return}Zt(dt,nn(Ht))&&ot.push(Ht)}),ot},[Ae,Se,at,dt,Oe])},Ka=de(98924),Ca=0,va=(0,Ka.Z)();function mo(){var Ae;return va?(Ae=Ca,Ca+=1):Ae="TEST_OR_SSR",Ae}function ja(Ae){var Oe=he.useState(),dt=(0,Ne.Z)(Oe,2),Se=dt[0],at=dt[1];return he.useEffect(function(){at("rc_select_".concat(mo()))},[]),Ae||Se}var wa=de(50344),Qn=["children","value"],Ri=["children"];function Ms(Ae){var Oe=Ae,dt=Oe.key,Se=Oe.props,at=Se.children,mt=Se.value,Bt=(0,je.Z)(Se,Qn);return(0,Pe.Z)({key:dt,value:mt!==void 0?mt:dt,children:at},Bt)}function ms(Ae){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,wa.Z)(Ae).map(function(dt,Se){if(!he.isValidElement(dt)||!dt.type)return null;var at=dt,mt=at.type.isSelectOptGroup,Bt=at.key,Ge=at.props,ot=Ge.children,ut=(0,je.Z)(Ge,Ri);return Oe||!mt?Ms(dt):(0,Pe.Z)((0,Pe.Z)({key:"__RC_SELECT_GRP__".concat(Bt===null?Se:Bt,"__"),label:Bt},ut),{},{options:ms(ot)})}).filter(function(dt){return dt})}function Oo(Ae,Oe,dt,Se,at){return he.useMemo(function(){var mt=Ae,Bt=!Ae;Bt&&(mt=ms(Oe));var Ge=new Map,ot=new Map,ut=function(nn,Ht,on){on&&typeof on=="string"&&nn.set(Ht[on],Ht)};function It(Zt){for(var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ht=0;Ht<Zt.length;Ht+=1){var on=Zt[Ht];!on[dt.options]||nn?(Ge.set(on[dt.value],on),ut(ot,on,dt.label),ut(ot,on,Se),ut(ot,on,at)):It(on[dt.options],!0)}}return It(mt),{options:mt,valueOptions:Ge,labelOptions:ot}},[Ae,Oe,dt,Se,at])}function io(Ae){var Oe=he.useRef();Oe.current=Ae;var dt=he.useCallback(function(){return Oe.current.apply(Oe,arguments)},[]);return dt}var rl=function(){return null};rl.isSelectOptGroup=!0;var ma=rl,il=function(){return null};il.isSelectOption=!0;var zn=il,wo=de(56982),Ro=de(98423),_s=de(73299),gs=he.createContext(null),Uo=gs;function is(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ks=["disabled","title","children","style","className"];function Eo(Ae){return typeof Ae=="string"||typeof Ae=="number"}var jo=function(Oe,dt){var Se=We(),at=Se.prefixCls,mt=Se.id,Bt=Se.open,Ge=Se.multiple,ot=Se.mode,ut=Se.searchValue,It=Se.toggleOpen,Zt=Se.notFoundContent,nn=Se.onPopupScroll,Ht=he.useContext(Uo),on=Ht.flattenOptions,wn=Ht.onActiveValue,Tn=Ht.defaultActiveFirstOption,dn=Ht.onSelect,Xn=Ht.menuItemSelectedIcon,Pn=Ht.rawValues,Wn=Ht.fieldNames,ar=Ht.virtual,Rn=Ht.direction,br=Ht.listHeight,gr=Ht.listItemHeight,rr="".concat(at,"-item"),Yn=(0,wo.Z)(function(){return on},[Bt,on],function(Qr,Er){return Er[0]&&Qr[1]!==Er[1]}),Kn=he.useRef(null),dr=function(Er){Er.preventDefault()},Gn=function(Er){Kn.current&&Kn.current.scrollTo(typeof Er=="number"?{index:Er}:Er)},hr=function(Er){for(var hi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Oi=Yn.length,gi=0;gi<Oi;gi+=1){var Xi=(Er+gi*hi+Oi)%Oi,yi=Yn[Xi],Zi=yi.group,da=yi.data;if(!Zi&&!da.disabled)return Xi}return-1},vr=he.useState(function(){return hr(0)}),fr=(0,Ne.Z)(vr,2),qn=fr[0],Or=fr[1],Vr=function(Er){var hi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Or(Er);var Oi={source:hi?"keyboard":"mouse"},gi=Yn[Er];if(!gi){wn(null,-1,Oi);return}wn(gi.value,Er,Oi)};(0,he.useEffect)(function(){Vr(Tn!==!1?hr(0):-1)},[Yn.length,ut]);var Vi=he.useCallback(function(Qr){return Pn.has(Qr)&&ot!=="combobox"},[ot,(0,At.Z)(Pn).toString(),Pn.size]);(0,he.useEffect)(function(){var Qr=setTimeout(function(){if(!Ge&&Bt&&Pn.size===1){var hi=Array.from(Pn)[0],Oi=Yn.findIndex(function(gi){var Xi=gi.data;return Xi.value===hi});Oi!==-1&&(Vr(Oi),Gn(Oi))}});if(Bt){var Er;(Er=Kn.current)===null||Er===void 0||Er.scrollTo(void 0)}return function(){return clearTimeout(Qr)}},[Bt,ut,on.length]);var Ni=function(Er){Er!==void 0&&dn(Er,{selected:!Pn.has(Er)}),Ge||It(!1)};if(he.useImperativeHandle(dt,function(){return{onKeyDown:function(Er){var hi=Er.which,Oi=Er.ctrlKey;switch(hi){case Xe.Z.N:case Xe.Z.P:case Xe.Z.UP:case Xe.Z.DOWN:{var gi=0;if(hi===Xe.Z.UP?gi=-1:hi===Xe.Z.DOWN?gi=1:is()&&Oi&&(hi===Xe.Z.N?gi=1:hi===Xe.Z.P&&(gi=-1)),gi!==0){var Xi=hr(qn+gi,gi);Gn(Xi),Vr(Xi,!0)}break}case Xe.Z.ENTER:{var yi=Yn[qn];yi&&!yi.data.disabled?Ni(yi.value):Ni(void 0),Bt&&Er.preventDefault();break}case Xe.Z.ESC:It(!1),Bt&&Er.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Er){Gn(Er)}}}),Yn.length===0)return he.createElement("div",{role:"listbox",id:"".concat(mt,"_list"),className:"".concat(rr,"-empty"),onMouseDown:dr},Zt);var Ii=Object.keys(Wn).map(function(Qr){return Wn[Qr]}),na=function(Er){return Er.label};function Ci(Qr,Er){var hi=Qr.group;return{role:hi?"presentation":"option",id:"".concat(mt,"_list_").concat(Er)}}var ya=function(Er){var hi=Yn[Er];if(!hi)return null;var Oi=hi.data||{},gi=Oi.value,Xi=hi.group,yi=(0,_t.Z)(Oi,!0),Zi=na(hi);return hi?he.createElement("div",(0,tt.Z)({"aria-label":typeof Zi=="string"&&!Xi?Zi:null},yi,{key:Er},Ci(hi,Er),{"aria-selected":Vi(gi)}),gi):null},Ia={role:"listbox",id:"".concat(mt,"_list")};return he.createElement(he.Fragment,null,ar&&he.createElement("div",(0,tt.Z)({},Ia,{style:{height:0,width:0,overflow:"hidden"}}),ya(qn-1),ya(qn),ya(qn+1)),he.createElement(_s.Z,{itemKey:"key",ref:Kn,data:Yn,height:br,itemHeight:gr,fullHeight:!1,onMouseDown:dr,onScroll:nn,virtual:ar,direction:Rn,innerProps:ar?null:Ia},function(Qr,Er){var hi,Oi=Qr.group,gi=Qr.groupOption,Xi=Qr.data,yi=Qr.label,Zi=Qr.value,da=Xi.key;if(Oi){var Da,Ra=(Da=Xi.title)!==null&&Da!==void 0?Da:Eo(yi)?yi.toString():void 0;return he.createElement("div",{className:xe()(rr,"".concat(rr,"-group")),title:Ra},yi!==void 0?yi:da)}var Hi=Xi.disabled,Ai=Xi.title,ba=Xi.children,fa=Xi.style,aa=Xi.className,qi=(0,je.Z)(Xi,Ks),Yr=(0,Ro.Z)(qi,Ii),Si=Vi(Zi),oa="".concat(rr,"-option"),$i=xe()(rr,oa,aa,(hi={},(0,ye.Z)(hi,"".concat(oa,"-grouped"),gi),(0,ye.Z)(hi,"".concat(oa,"-active"),qn===Er&&!Hi),(0,ye.Z)(hi,"".concat(oa,"-disabled"),Hi),(0,ye.Z)(hi,"".concat(oa,"-selected"),Si),hi)),Fa=na(Qr),ti=!Xn||typeof Xn=="function"||Si,Un=typeof Fa=="number"?Fa:Fa||Zi,Dr=Eo(Un)?Un.toString():void 0;return Ai!==void 0&&(Dr=Ai),he.createElement("div",(0,tt.Z)({},(0,_t.Z)(Yr),ar?{}:Ci(Qr,Er),{"aria-selected":Si,className:$i,title:Dr,onMouseMove:function(){qn===Er||Hi||Vr(Er)},onClick:function(){Hi||Ni(Zi)},style:fa}),he.createElement("div",{className:"".concat(oa,"-content")},Un),he.isValidElement(Xn)||Si,ti&&he.createElement(Je,{className:"".concat(rr,"-option-state"),customizeIcon:Xn,customizeIconProps:{isSelected:Si}},Si?"\u2713":null))}))},Oa=he.forwardRef(jo);Oa.displayName="OptionList";var $o=Oa;function Bl(Ae){var Oe=Ae.mode,dt=Ae.options,Se=Ae.children,at=Ae.backfill,mt=Ae.allowClear,Bt=Ae.placeholder,Ge=Ae.getInputElement,ot=Ae.showSearch,ut=Ae.onSearch,It=Ae.defaultOpen,Zt=Ae.autoFocus,nn=Ae.labelInValue,Ht=Ae.value,on=Ae.inputValue,wn=Ae.optionLabelProp,Tn=isMultiple(Oe),dn=ot!==void 0?ot:Tn||Oe==="combobox",Xn=dt||convertChildrenToData(Se);if(warning(Oe!=="tags"||Xn.every(function(Rn){return!Rn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Oe==="tags"||Oe==="combobox"){var Pn=Xn.some(function(Rn){return Rn.options?Rn.options.some(function(br){return typeof("value"in br?br.value:br.key)=="number"}):typeof("value"in Rn?Rn.value:Rn.key)=="number"});warning(!Pn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Oe!=="combobox"||!wn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Oe==="combobox"||!at,"`backfill` only works with `combobox` mode."),warning(Oe==="combobox"||!Ge,"`getInputElement` only work with `combobox` mode."),noteOnce(Oe!=="combobox"||!Ge||!mt||!Bt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ut&&!dn&&Oe!=="combobox"&&Oe!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!It||Zt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ht!=null){var Wn=toArray(Ht);warning(!nn||Wn.every(function(Rn){return _typeof(Rn)==="object"&&("key"in Rn||"value"in Rn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Tn||Array.isArray(Ht),"`value` should be array when `mode` is `multiple` or `tags`")}if(Se){var ar=null;toNodeArray(Se).some(function(Rn){if(!React.isValidElement(Rn)||!Rn.type)return!1;var br=Rn,gr=br.type;if(gr.isSelectOption)return!1;if(gr.isSelectOptGroup){var rr=toNodeArray(Rn.props.children).every(function(Yn){return!React.isValidElement(Yn)||!Rn.type||Yn.type.isSelectOption?!0:(ar=Yn.type,!1)});return!rr}return ar=gr,!0}),ar&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ar.displayName||ar.name||ar,"`.")),warning(on===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function vs(Ae,Oe){if(Ae){var dt=function Se(at){for(var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bt=0;Bt<at.length;Bt++){var Ge=at[Bt];if(Ge[Oe==null?void 0:Oe.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!mt&&Array.isArray(Ge[Oe==null?void 0:Oe.options])&&Se(Ge[Oe==null?void 0:Oe.options],!0))break}};dt(Ae)}}var al=null,es=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],$a=["inputValue"];function Bs(Ae){return!Ae||(0,Ee.Z)(Ae)!=="object"}var Xs=he.forwardRef(function(Ae,Oe){var dt=Ae.id,Se=Ae.mode,at=Ae.prefixCls,mt=at===void 0?"rc-select":at,Bt=Ae.backfill,Ge=Ae.fieldNames,ot=Ae.inputValue,ut=Ae.searchValue,It=Ae.onSearch,Zt=Ae.autoClearSearchValue,nn=Zt===void 0?!0:Zt,Ht=Ae.onSelect,on=Ae.onDeselect,wn=Ae.dropdownMatchSelectWidth,Tn=wn===void 0?!0:wn,dn=Ae.filterOption,Xn=Ae.filterSort,Pn=Ae.optionFilterProp,Wn=Ae.optionLabelProp,ar=Ae.options,Rn=Ae.children,br=Ae.defaultActiveFirstOption,gr=Ae.menuItemSelectedIcon,rr=Ae.virtual,Yn=Ae.direction,Kn=Ae.listHeight,dr=Kn===void 0?200:Kn,Gn=Ae.listItemHeight,hr=Gn===void 0?20:Gn,vr=Ae.value,fr=Ae.defaultValue,qn=Ae.labelInValue,Or=Ae.onChange,Vr=(0,je.Z)(Ae,es),Vi=ja(dt),Ni=li(Se),Ii=!!(!ar&&Rn),na=he.useMemo(function(){return dn===void 0&&Se==="combobox"?!1:dn},[dn,Se]),Ci=he.useMemo(function(){return Br(Ge,Ii)},[JSON.stringify(Ge),Ii]),ya=(0,qe.Z)("",{value:ut!==void 0?ut:ot,postState:function(Bi){return Bi||""}}),Ia=(0,Ne.Z)(ya,2),Qr=Ia[0],Er=Ia[1],hi=Oo(ar,Rn,Ci,Pn,Wn),Oi=hi.valueOptions,gi=hi.labelOptions,Xi=hi.options,yi=he.useCallback(function(Rr){var Bi=rn(Rr);return Bi.map(function(Hn){var Ui,yo,fo,So,uo;if(Bs(Hn))Ui=Hn;else{var el;fo=Hn.key,yo=Hn.label,Ui=(el=Hn.value)!==null&&el!==void 0?el:fo}var ds=Oi.get(Ui);if(ds){var kl;if(yo===void 0&&(yo=ds==null?void 0:ds[Wn||Ci.label]),fo===void 0&&(fo=(kl=ds==null?void 0:ds.key)!==null&&kl!==void 0?kl:Ui),So=ds==null?void 0:ds.disabled,uo=ds==null?void 0:ds.title,0)var za}return{label:yo,value:Ui,key:fo,disabled:So,title:uo}})},[Ci,Wn,Oi]),Zi=(0,qe.Z)(fr,{value:vr}),da=(0,Ne.Z)(Zi,2),Da=da[0],Ra=da[1],Hi=he.useMemo(function(){var Rr,Bi=yi(Da);return Se==="combobox"&&wr((Rr=Bi[0])===null||Rr===void 0?void 0:Rr.value)?[]:Bi},[Da,yi,Se]),Ai=oi(Hi,Oi),ba=(0,Ne.Z)(Ai,2),fa=ba[0],aa=ba[1],qi=he.useMemo(function(){if(!Se&&fa.length===1){var Rr=fa[0];if(Rr.value===null&&(Rr.label===null||Rr.label===void 0))return[]}return fa.map(function(Bi){var Hn;return(0,Pe.Z)((0,Pe.Z)({},Bi),{},{label:(Hn=Bi.label)!==null&&Hn!==void 0?Hn:Bi.value})})},[Se,fa]),Yr=he.useMemo(function(){return new Set(fa.map(function(Rr){return Rr.value}))},[fa]);he.useEffect(function(){if(Se==="combobox"){var Rr,Bi=(Rr=fa[0])===null||Rr===void 0?void 0:Rr.value;Er(xr(Bi)?String(Bi):"")}},[fa]);var Si=io(function(Rr,Bi){var Hn,Ui=Bi!=null?Bi:Rr;return Hn={},(0,ye.Z)(Hn,Ci.value,Rr),(0,ye.Z)(Hn,Ci.label,Ui),Hn}),oa=he.useMemo(function(){if(Se!=="tags")return Xi;var Rr=(0,At.Z)(Xi),Bi=function(Ui){return Oi.has(Ui)};return(0,At.Z)(fa).sort(function(Hn,Ui){return Hn.value<Ui.value?-1:1}).forEach(function(Hn){var Ui=Hn.value;Bi(Ui)||Rr.push(Si(Ui,Hn.label))}),Rr},[Si,Xi,Oi,fa,Se]),$i=Aa(oa,Ci,Qr,na,Pn),Fa=he.useMemo(function(){return Se!=="tags"||!Qr||$i.some(function(Rr){return Rr[Pn||"value"]===Qr})||$i.some(function(Rr){return Rr[Ci.value]===Qr})?$i:[Si(Qr)].concat((0,At.Z)($i))},[Si,Pn,Se,$i,Qr,Ci]),ti=he.useMemo(function(){return Xn?(0,At.Z)(Fa).sort(function(Rr,Bi){return Xn(Rr,Bi)}):Fa},[Fa,Xn]),Un=he.useMemo(function(){return lr(ti,{fieldNames:Ci,childrenAsData:Ii})},[ti,Ci,Ii]),Dr=function(Bi){var Hn=yi(Bi);if(Ra(Hn),Or&&(Hn.length!==fa.length||Hn.some(function(fo,So){var uo;return((uo=fa[So])===null||uo===void 0?void 0:uo.value)!==(fo==null?void 0:fo.value)}))){var Ui=qn?Hn:Hn.map(function(fo){return fo.value}),yo=Hn.map(function(fo){return qr(aa(fo.value))});Or(Ni?Ui:Ui[0],Ni?yo:yo[0])}},Hr=he.useState(null),or=(0,Ne.Z)(Hr,2),zi=or[0],ga=or[1],eo=he.useState(0),Qa=(0,Ne.Z)(eo,2),go=Qa[0],to=Qa[1],ts=br!==void 0?br:Se!=="combobox",Jo=he.useCallback(function(Rr,Bi){var Hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ui=Hn.source,yo=Ui===void 0?"keyboard":Ui;to(Bi),Bt&&Se==="combobox"&&Rr!==null&&yo==="keyboard"&&ga(String(Rr))},[Bt,Se]),Ko=function(Bi,Hn,Ui){var yo=function(){var Za,Ao=aa(Bi);return[qn?{label:Ao==null?void 0:Ao[Ci.label],value:Bi,key:(Za=Ao==null?void 0:Ao.key)!==null&&Za!==void 0?Za:Bi}:Bi,qr(Ao)]};if(Hn&&Ht){var fo=yo(),So=(0,Ne.Z)(fo,2),uo=So[0],el=So[1];Ht(uo,el)}else if(!Hn&&on&&Ui!=="clear"){var ds=yo(),kl=(0,Ne.Z)(ds,2),za=kl[0],ka=kl[1];on(za,ka)}},xs=io(function(Rr,Bi){var Hn,Ui=Ni?Bi.selected:!0;Ui?Hn=Ni?[].concat((0,At.Z)(fa),[Rr]):[Rr]:Hn=fa.filter(function(yo){return yo.value!==Rr}),Dr(Hn),Ko(Rr,Ui),Se==="combobox"?ga(""):(!li||nn)&&(Er(""),ga(""))}),Ns=function(Bi,Hn){Dr(Bi);var Ui=Hn.type,yo=Hn.values;(Ui==="remove"||Ui==="clear")&&yo.forEach(function(fo){Ko(fo.value,!1,Ui)})},ws=function(Bi,Hn){if(Er(Bi),ga(null),Hn.source==="submit"){var Ui=(Bi||"").trim();if(Ui){var yo=Array.from(new Set([].concat((0,At.Z)(Yr),[Ui])));Dr(yo),Ko(Ui,!0),Er("")}return}Hn.source!=="blur"&&(Se==="combobox"&&Dr(Bi),It==null||It(Bi))},vl=function(Bi){var Hn=Bi;Se!=="tags"&&(Hn=Bi.map(function(yo){var fo=gi.get(yo);return fo==null?void 0:fo.value}).filter(function(yo){return yo!==void 0}));var Ui=Array.from(new Set([].concat((0,At.Z)(Yr),(0,At.Z)(Hn))));Dr(Ui),Ui.forEach(function(yo){Ko(yo,!0)})},ea=he.useMemo(function(){var Rr=rr!==!1&&Tn!==!1;return(0,Pe.Z)((0,Pe.Z)({},hi),{},{flattenOptions:Un,onActiveValue:Jo,defaultActiveFirstOption:ts,onSelect:xs,menuItemSelectedIcon:gr,rawValues:Yr,fieldNames:Ci,virtual:Rr,direction:Yn,listHeight:dr,listItemHeight:hr,childrenAsData:Ii})},[hi,Un,Jo,ts,xs,gr,Yr,Ci,rr,Tn,dr,hr,Ii]);return he.createElement(Uo.Provider,{value:ea},he.createElement(Li,(0,tt.Z)({},Vr,{id:Vi,prefixCls:mt,ref:Oe,omitDomProps:$a,mode:Se,displayValues:qi,onDisplayValuesChange:Ns,direction:Yn,searchValue:Qr,onSearch:ws,autoClearSearchValue:nn,onSearchSplit:vl,dropdownMatchSelectWidth:Tn,OptionList:$o,emptyOptions:!Un.length,activeValue:zi,activeDescendantId:"".concat(Vi,"_list_").concat(go)})))}),as=Xs;as.Option=zn,as.OptGroup=ma;var pl=null,os=null,ss=de(17341),Hs=function(Ae){var Oe=he.useRef({valueLabels:new Map});return he.useMemo(function(){var dt=Oe.current.valueLabels,Se=new Map,at=Ae.map(function(mt){var Bt,Ge=mt.value,ot=(Bt=mt.label)!==null&&Bt!==void 0?Bt:dt.get(Ge);return Se.set(Ge,ot),(0,Pe.Z)((0,Pe.Z)({},mt),{},{label:ot})});return Oe.current.valueLabels=Se,[at]},[Ae])},qs=function(Ae,Oe,dt,Se){return he.useMemo(function(){var at=Ae.map(function(ot){var ut=ot.value;return ut}),mt=Oe.map(function(ot){var ut=ot.value;return ut}),Bt=at.filter(function(ot){return!Se[ot]});if(dt){var Ge=(0,ss.S)(at,!0,Se);at=Ge.checkedKeys,mt=Ge.halfCheckedKeys}return[Array.from(new Set([].concat((0,At.Z)(Bt),(0,At.Z)(at)))),mt]},[Ae,Oe,dt,Se])},Ga=de(1089),ls=function(Ae,Oe){return he.useMemo(function(){var dt=(0,Ga.I8)(Ae,{fieldNames:Oe,initWrapper:function(at){return(0,Pe.Z)((0,Pe.Z)({},at),{},{valueEntities:new Map})},processEntity:function(at,mt){var Bt=at.node[Oe.value];if(0)var Ge;mt.valueEntities.set(Bt,at)}});return dt},[Ae,Oe])},Wo=function(){return null},ys=Wo,Ds=["children","value"];function Fs(Ae){return(0,wa.Z)(Ae).map(function(Oe){if(!he.isValidElement(Oe)||!Oe.type)return null;var dt=Oe,Se=dt.key,at=dt.props,mt=at.children,Bt=at.value,Ge=(0,je.Z)(at,Ds),ot=(0,Pe.Z)({key:Se,value:Bt},Ge),ut=Fs(mt);return ut.length&&(ot.children=ut),ot}).filter(function(Oe){return Oe})}function bs(Ae){if(!Ae)return Ae;var Oe=(0,Pe.Z)({},Ae);return"props"in Oe||Object.defineProperty(Oe,"props",{get:function(){return(0,it.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Oe}}),Oe}function Go(Ae,Oe,dt,Se,at,mt){var Bt=null,Ge=null;function ot(){function ut(It){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return It.map(function(Ht,on){var wn="".concat(Zt,"-").concat(on),Tn=Ht[mt.value],dn=dt.includes(Tn),Xn=ut(Ht[mt.children]||[],wn,dn),Pn=he.createElement(ys,Ht,Xn.map(function(ar){return ar.node}));if(Oe===Tn&&(Bt=Pn),dn){var Wn={pos:wn,node:Pn,children:Xn};return nn||Ge.push(Wn),Wn}return null}).filter(function(Ht){return Ht})}Ge||(Ge=[],ut(Se),Ge.sort(function(It,Zt){var nn=It.node.props.value,Ht=Zt.node.props.value,on=dt.indexOf(nn),wn=dt.indexOf(Ht);return on-wn}))}Object.defineProperty(Ae,"triggerNode",{get:function(){return(0,it.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),ot(),Bt}}),Object.defineProperty(Ae,"allCheckedNodes",{get:function(){return(0,it.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),ot(),at?Ge:Ge.map(function(It){var Zt=It.node;return Zt})}})}var Te=function(Ae,Oe,dt){var Se=dt.treeNodeFilterProp,at=dt.filterTreeNode,mt=dt.fieldNames,Bt=mt.children;return he.useMemo(function(){if(!Oe||at===!1)return Ae;var Ge;if(typeof at=="function")Ge=at;else{var ot=Oe.toUpperCase();Ge=function(Zt,nn){var Ht=nn[Se];return String(Ht).toUpperCase().includes(ot)}}function ut(It){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return It.reduce(function(nn,Ht){var on=Ht[Bt],wn=Zt||Ge(Oe,bs(Ht)),Tn=ut(on||[],wn);return(wn||Tn.length)&&nn.push((0,Pe.Z)((0,Pe.Z)({},Ht),{},(0,ye.Z)({isLeaf:void 0},Bt,Tn))),nn},[])}return ut(Ae)},[Ae,Oe,Bt,Se,at])};function Ue(Ae){var Oe=he.useRef();Oe.current=Ae;var dt=he.useCallback(function(){return Oe.current.apply(Oe,arguments)},[]);return dt}function tn(Ae,Oe){var dt=Oe.id,Se=Oe.pId,at=Oe.rootPId,mt={},Bt=[],Ge=Ae.map(function(ot){var ut=(0,Pe.Z)({},ot),It=ut[dt];return mt[It]=ut,ut.key=ut.key||It,ut});return Ge.forEach(function(ot){var ut=ot[Se],It=mt[ut];It&&(It.children=It.children||[],It.children.push(ot)),(ut===at||!It&&at===null)&&Bt.push(ot)}),Bt}function we(Ae,Oe,dt){return he.useMemo(function(){return Ae?dt?tn(Ae,(0,Pe.Z)({id:"id",pId:"pId",rootPId:null},dt!==!0?dt:{})):Ae:Fs(Oe)},[Oe,dt,Ae])}var ht=he.createContext(null),St=ht,Qt=de(15671),Dt=de(43144),Cn=de(97326),Ln=de(60136),Mn=de(51630),gn=de(27822),Jt=de(10225),bn=de(36459),An=he.forwardRef(function(Ae,Oe){var dt=Ae.height,Se=Ae.offset,at=Ae.children,mt=Ae.prefixCls,Bt=Ae.onInnerResize,Ge=Ae.innerProps,ot={},ut={display:"flex",flexDirection:"column"};return Se!==void 0&&(ot={height:dt,position:"relative",overflow:"hidden"},ut=(0,Pe.Z)((0,Pe.Z)({},ut),{},{transform:"translateY(".concat(Se,"px)"),position:"absolute",left:0,right:0,top:0})),he.createElement("div",{style:ot},he.createElement(Ot.Z,{onResize:function(Zt){var nn=Zt.offsetHeight;nn&&Bt&&Bt()}},he.createElement("div",(0,tt.Z)({style:ut,className:xe()((0,ye.Z)({},"".concat(mt,"-holder-inner"),mt)),ref:Oe},Ge),at)))});An.displayName="Filler";var Bn=An,zr=de(75164),ei=20;function _i(Ae){return"touches"in Ae?Ae.touches[0].pageY:Ae.pageY}var Mi=function(Ae){(0,Ln.Z)(dt,Ae);var Oe=(0,Mn.Z)(dt);function dt(){var Se;(0,Qt.Z)(this,dt);for(var at=arguments.length,mt=new Array(at),Bt=0;Bt<at;Bt++)mt[Bt]=arguments[Bt];return Se=Oe.call.apply(Oe,[this].concat(mt)),Se.moveRaf=null,Se.scrollbarRef=he.createRef(),Se.thumbRef=he.createRef(),Se.visibleTimeout=null,Se.state={dragging:!1,pageY:null,startTop:null,visible:!1},Se.delayHidden=function(){clearTimeout(Se.visibleTimeout),Se.setState({visible:!0}),Se.visibleTimeout=setTimeout(function(){Se.setState({visible:!1})},2e3)},Se.onScrollbarTouchStart=function(Ge){Ge.preventDefault()},Se.onContainerMouseDown=function(Ge){Ge.stopPropagation(),Ge.preventDefault()},Se.patchEvents=function(){window.addEventListener("mousemove",Se.onMouseMove),window.addEventListener("mouseup",Se.onMouseUp),Se.thumbRef.current.addEventListener("touchmove",Se.onMouseMove),Se.thumbRef.current.addEventListener("touchend",Se.onMouseUp)},Se.removeEvents=function(){var Ge;window.removeEventListener("mousemove",Se.onMouseMove),window.removeEventListener("mouseup",Se.onMouseUp),(Ge=Se.scrollbarRef.current)===null||Ge===void 0||Ge.removeEventListener("touchstart",Se.onScrollbarTouchStart),Se.thumbRef.current&&(Se.thumbRef.current.removeEventListener("touchstart",Se.onMouseDown),Se.thumbRef.current.removeEventListener("touchmove",Se.onMouseMove),Se.thumbRef.current.removeEventListener("touchend",Se.onMouseUp)),zr.Z.cancel(Se.moveRaf)},Se.onMouseDown=function(Ge){var ot=Se.props.onStartMove;Se.setState({dragging:!0,pageY:_i(Ge),startTop:Se.getTop()}),ot(),Se.patchEvents(),Ge.stopPropagation(),Ge.preventDefault()},Se.onMouseMove=function(Ge){var ot=Se.state,ut=ot.dragging,It=ot.pageY,Zt=ot.startTop,nn=Se.props.onScroll;if(zr.Z.cancel(Se.moveRaf),ut){var Ht=_i(Ge)-It,on=Zt+Ht,wn=Se.getEnableScrollRange(),Tn=Se.getEnableHeightRange(),dn=Tn?on/Tn:0,Xn=Math.ceil(dn*wn);Se.moveRaf=(0,zr.Z)(function(){nn(Xn)})}},Se.onMouseUp=function(){var Ge=Se.props.onStopMove;Se.setState({dragging:!1}),Ge(),Se.removeEvents()},Se.getSpinHeight=function(){var Ge=Se.props,ot=Ge.height,ut=Ge.count,It=ot/ut*10;return It=Math.max(It,ei),It=Math.min(It,ot/2),Math.floor(It)},Se.getEnableScrollRange=function(){var Ge=Se.props,ot=Ge.scrollHeight,ut=Ge.height;return ot-ut||0},Se.getEnableHeightRange=function(){var Ge=Se.props.height,ot=Se.getSpinHeight();return Ge-ot||0},Se.getTop=function(){var Ge=Se.props.scrollTop,ot=Se.getEnableScrollRange(),ut=Se.getEnableHeightRange();if(Ge===0||ot===0)return 0;var It=Ge/ot;return It*ut},Se.showScroll=function(){var Ge=Se.props,ot=Ge.height,ut=Ge.scrollHeight;return ut>ot},Se}return(0,Dt.Z)(dt,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(at){at.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var at=this.state,mt=at.dragging,Bt=at.visible,Ge=this.props.prefixCls,ot=this.getSpinHeight(),ut=this.getTop(),It=this.showScroll(),Zt=It&&Bt;return he.createElement("div",{ref:this.scrollbarRef,className:xe()("".concat(Ge,"-scrollbar"),(0,ye.Z)({},"".concat(Ge,"-scrollbar-show"),It)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:Zt?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},he.createElement("div",{ref:this.thumbRef,className:xe()("".concat(Ge,"-scrollbar-thumb"),(0,ye.Z)({},"".concat(Ge,"-scrollbar-thumb-moving"),mt)),style:{width:"100%",height:ot,top:ut,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),dt}(he.Component);function ta(Ae){var Oe=Ae.children,dt=Ae.setRef,Se=he.useCallback(function(at){dt(at)},[]);return he.cloneElement(Oe,{ref:Se})}function la(Ae,Oe,dt,Se,at,mt){var Bt=mt.getKey;return Ae.slice(Oe,dt+1).map(function(Ge,ot){var ut=Oe+ot,It=at(Ge,ut,{}),Zt=Bt(Ge);return he.createElement(ta,{key:Zt,setRef:function(Ht){return Se(Ge,Ht)}},It)})}var Ta=de(34203),Ma=function(){function Ae(){(0,Qt.Z)(this,Ae),this.maps=void 0,this.maps=Object.create(null)}return(0,Dt.Z)(Ae,[{key:"set",value:function(dt,Se){this.maps[dt]=Se}},{key:"get",value:function(dt){return this.maps[dt]}}]),Ae}(),Wa=Ma;function Sa(Ae,Oe,dt){var Se=he.useState(0),at=(0,Ne.Z)(Se,2),mt=at[0],Bt=at[1],Ge=(0,he.useRef)(new Map),ot=(0,he.useRef)(new Wa),ut=(0,he.useRef)();function It(){zr.Z.cancel(ut.current)}function Zt(){It(),ut.current=(0,zr.Z)(function(){Ge.current.forEach(function(Ht,on){if(Ht&&Ht.offsetParent){var wn=(0,Ta.Z)(Ht),Tn=wn.offsetHeight;ot.current.get(on)!==Tn&&ot.current.set(on,wn.offsetHeight)}}),Bt(function(Ht){return Ht+1})})}function nn(Ht,on){var wn=Ae(Ht),Tn=Ge.current.get(wn);on?(Ge.current.set(wn,on),Zt()):Ge.current.delete(wn),!Tn!=!on&&(on?Oe==null||Oe(Ht):dt==null||dt(Ht))}return(0,he.useEffect)(function(){return It},[]),[nn,Zt,ot.current,mt]}function Ja(Ae,Oe,dt,Se,at,mt,Bt,Ge){var ot=he.useRef();return function(ut){if(ut==null){Ge();return}if(zr.Z.cancel(ot.current),typeof ut=="number")Bt(ut);else if(ut&&(0,Ee.Z)(ut)==="object"){var It,Zt=ut.align;"index"in ut?It=ut.index:It=Oe.findIndex(function(wn){return at(wn)===ut.key});var nn=ut.offset,Ht=nn===void 0?0:nn,on=function wn(Tn,dn){if(!(Tn<0||!Ae.current)){var Xn=Ae.current.clientHeight,Pn=!1,Wn=dn;if(Xn){for(var ar=dn||Zt,Rn=0,br=0,gr=0,rr=Math.min(Oe.length,It),Yn=0;Yn<=rr;Yn+=1){var Kn=at(Oe[Yn]);br=Rn;var dr=dt.get(Kn);gr=br+(dr===void 0?Se:dr),Rn=gr,Yn===It&&dr===void 0&&(Pn=!0)}var Gn=null;switch(ar){case"top":Gn=br-Ht;break;case"bottom":Gn=gr-Xn+Ht;break;default:{var hr=Ae.current.scrollTop,vr=hr+Xn;br<hr?Wn="top":gr>vr&&(Wn="bottom")}}Gn!==null&&Gn!==Ae.current.scrollTop&&Bt(Gn)}ot.current=(0,zr.Z)(function(){Pn&&mt(),wn(Tn-1,Wn)},2)}};on(3)}}}function ao(Ae,Oe,dt,Se){var at=dt-Ae,mt=Oe-dt,Bt=Math.min(at,mt)*2;if(Se<=Bt){var Ge=Math.floor(Se/2);return Se%2?dt+Ge+1:dt-Ge}return at>mt?dt-(Se-mt):dt+(Se-at)}function zt(Ae,Oe,dt){var Se=Ae.length,at=Oe.length,mt,Bt;if(Se===0&&at===0)return null;Se<at?(mt=Ae,Bt=Oe):(mt=Oe,Bt=Ae);var Ge={__EMPTY_ITEM__:!0};function ot(on){return on!==void 0?dt(on):Ge}for(var ut=null,It=Math.abs(Se-at)!==1,Zt=0;Zt<Bt.length;Zt+=1){var nn=ot(mt[Zt]),Ht=ot(Bt[Zt]);if(nn!==Ht){ut=Zt,It=It||nn!==ot(Bt[Zt+1]);break}}return ut===null?null:{index:ut,multiple:It}}function Wt(Ae,Oe,dt){var Se=he.useState(Ae),at=(0,Ne.Z)(Se,2),mt=at[0],Bt=at[1],Ge=he.useState(null),ot=(0,Ne.Z)(Ge,2),ut=ot[0],It=ot[1];return he.useEffect(function(){var Zt=zt(mt||[],Ae||[],Oe);(Zt==null?void 0:Zt.index)!==void 0&&(dt==null||dt(Zt.index),It(Ae[Zt.index])),Bt(Ae)},[Ae]),[ut]}var qt=(typeof navigator=="undefined"?"undefined":(0,Ee.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Fn=qt,Gr=function(Ae,Oe){var dt=(0,he.useRef)(!1),Se=(0,he.useRef)(null);function at(){clearTimeout(Se.current),dt.current=!0,Se.current=setTimeout(function(){dt.current=!1},50)}var mt=(0,he.useRef)({top:Ae,bottom:Oe});return mt.current.top=Ae,mt.current.bottom=Oe,function(Bt){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ot=Bt<0&&mt.current.top||Bt>0&&mt.current.bottom;return Ge&&ot?(clearTimeout(Se.current),dt.current=!1):(!ot||dt.current)&&at(),!dt.current&&ot}};function Ti(Ae,Oe,dt,Se){var at=(0,he.useRef)(0),mt=(0,he.useRef)(null),Bt=(0,he.useRef)(null),Ge=(0,he.useRef)(!1),ot=Gr(Oe,dt);function ut(Zt){if(Ae){zr.Z.cancel(mt.current);var nn=Zt.deltaY;at.current+=nn,Bt.current=nn,!ot(nn)&&(Fn||Zt.preventDefault(),mt.current=(0,zr.Z)(function(){var Ht=Ge.current?10:1;Se(at.current*Ht),at.current=0}))}}function It(Zt){Ae&&(Ge.current=Zt.detail===Bt.current)}return[ut,It]}var In=14/15;function Ar(Ae,Oe,dt){var Se=(0,he.useRef)(!1),at=(0,he.useRef)(0),mt=(0,he.useRef)(null),Bt=(0,he.useRef)(null),Ge,ot=function(nn){if(Se.current){var Ht=Math.ceil(nn.touches[0].pageY),on=at.current-Ht;at.current=Ht,dt(on)&&nn.preventDefault(),clearInterval(Bt.current),Bt.current=setInterval(function(){on*=In,(!dt(on,!0)||Math.abs(on)<=.1)&&clearInterval(Bt.current)},16)}},ut=function(){Se.current=!1,Ge()},It=function(nn){Ge(),nn.touches.length===1&&!Se.current&&(Se.current=!0,at.current=Math.ceil(nn.touches[0].pageY),mt.current=nn.target,mt.current.addEventListener("touchmove",ot),mt.current.addEventListener("touchend",ut))};Ge=function(){mt.current&&(mt.current.removeEventListener("touchmove",ot),mt.current.removeEventListener("touchend",ut))},(0,gt.Z)(function(){return Ae&&Oe.current.addEventListener("touchstart",It),function(){var Zt;(Zt=Oe.current)===null||Zt===void 0||Zt.removeEventListener("touchstart",It),Ge(),clearInterval(Bt.current)}},[Ae])}var ci=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange","innerProps"],Ki=[],Lr={overflowY:"auto",overflowAnchor:"none"};function nr(Ae,Oe){var dt=Ae.prefixCls,Se=dt===void 0?"rc-virtual-list":dt,at=Ae.className,mt=Ae.height,Bt=Ae.itemHeight,Ge=Ae.fullHeight,ot=Ge===void 0?!0:Ge,ut=Ae.style,It=Ae.data,Zt=Ae.children,nn=Ae.itemKey,Ht=Ae.virtual,on=Ae.component,wn=on===void 0?"div":on,Tn=Ae.onScroll,dn=Ae.onVisibleChange,Xn=Ae.innerProps,Pn=(0,je.Z)(Ae,ci),Wn=!!(Ht!==!1&&mt&&Bt),ar=Wn&&It&&Bt*It.length>mt,Rn=(0,he.useState)(0),br=(0,Ne.Z)(Rn,2),gr=br[0],rr=br[1],Yn=(0,he.useState)(!1),Kn=(0,Ne.Z)(Yn,2),dr=Kn[0],Gn=Kn[1],hr=xe()(Se,at),vr=It||Ki,fr=(0,he.useRef)(),qn=(0,he.useRef)(),Or=(0,he.useRef)(),Vr=he.useCallback(function(or){return typeof nn=="function"?nn(or):or==null?void 0:or[nn]},[nn]),Vi={getKey:Vr};function Ni(or){rr(function(zi){var ga;typeof or=="function"?ga=or(zi):ga=or;var eo=ba(ga);return fr.current.scrollTop=eo,eo})}var Ii=(0,he.useRef)({start:0,end:vr.length}),na=(0,he.useRef)(),Ci=Wt(vr,Vr),ya=(0,Ne.Z)(Ci,1),Ia=ya[0];na.current=Ia;var Qr=Sa(Vr,null,null),Er=(0,Ne.Z)(Qr,4),hi=Er[0],Oi=Er[1],gi=Er[2],Xi=Er[3],yi=he.useMemo(function(){if(!Wn)return{scrollHeight:void 0,start:0,end:vr.length-1,offset:void 0};if(!ar){var or;return{scrollHeight:((or=qn.current)===null||or===void 0?void 0:or.offsetHeight)||0,start:0,end:vr.length-1,offset:void 0}}for(var zi=0,ga,eo,Qa,go=vr.length,to=0;to<go;to+=1){var ts=vr[to],Jo=Vr(ts),Ko=gi.get(Jo),xs=zi+(Ko===void 0?Bt:Ko);xs>=gr&&ga===void 0&&(ga=to,eo=zi),xs>gr+mt&&Qa===void 0&&(Qa=to),zi=xs}return ga===void 0&&(ga=0,eo=0,Qa=Math.ceil(mt/Bt)),Qa===void 0&&(Qa=vr.length-1),Qa=Math.min(Qa+1,vr.length),{scrollHeight:zi,start:ga,end:Qa,offset:eo}},[ar,Wn,gr,vr,Xi,mt]),Zi=yi.scrollHeight,da=yi.start,Da=yi.end,Ra=yi.offset;Ii.current.start=da,Ii.current.end=Da;var Hi=Zi-mt,Ai=(0,he.useRef)(Hi);Ai.current=Hi;function ba(or){var zi=or;return Number.isNaN(Ai.current)||(zi=Math.min(zi,Ai.current)),zi=Math.max(zi,0),zi}var fa=gr<=0,aa=gr>=Hi,qi=Gr(fa,aa);function Yr(or){var zi=or;Ni(zi)}function Si(or){var zi=or.currentTarget.scrollTop;zi!==gr&&Ni(zi),Tn==null||Tn(or)}var oa=Ti(Wn,fa,aa,function(or){Ni(function(zi){var ga=zi+or;return ga})}),$i=(0,Ne.Z)(oa,2),Fa=$i[0],ti=$i[1];Ar(Wn,fr,function(or,zi){return qi(or,zi)?!1:(Fa({preventDefault:function(){},deltaY:or}),!0)}),(0,gt.Z)(function(){function or(zi){Wn&&zi.preventDefault()}return fr.current.addEventListener("wheel",Fa),fr.current.addEventListener("DOMMouseScroll",ti),fr.current.addEventListener("MozMousePixelScroll",or),function(){fr.current&&(fr.current.removeEventListener("wheel",Fa),fr.current.removeEventListener("DOMMouseScroll",ti),fr.current.removeEventListener("MozMousePixelScroll",or))}},[Wn]);var Un=Ja(fr,vr,gi,Bt,Vr,Oi,Ni,function(){var or;(or=Or.current)===null||or===void 0||or.delayHidden()});he.useImperativeHandle(Oe,function(){return{scrollTo:Un}}),(0,gt.Z)(function(){if(dn){var or=vr.slice(da,Da+1);dn(or,vr)}},[da,Da,vr]);var Dr=la(vr,da,Da,hi,Zt,Vi),Hr=null;return mt&&(Hr=(0,Pe.Z)((0,ye.Z)({},ot?"height":"maxHeight",mt),Lr),Wn&&(Hr.overflowY="hidden",dr&&(Hr.pointerEvents="none"))),he.createElement("div",(0,tt.Z)({style:(0,Pe.Z)((0,Pe.Z)({},ut),{},{position:"relative"}),className:hr},Pn),he.createElement(wn,{className:"".concat(Se,"-holder"),style:Hr,ref:fr,onScroll:Si},he.createElement(Bn,{prefixCls:Se,height:Zi,offset:Ra,onInnerResize:Oi,ref:qn,innerProps:Xn},Dr)),Wn&&he.createElement(Mi,{ref:Or,prefixCls:Se,scrollTop:gr,height:mt,scrollHeight:Zi,count:vr.length,onScroll:Yr,onStartMove:function(){Gn(!0)},onStopMove:function(){Gn(!1)}}))}var Pi=he.forwardRef(nr);Pi.displayName="List";var ua=Pi,pa=ua,mi=de(62874),ri=de(86128),Na=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ba=function(Oe,dt){var Se=Oe.className,at=Oe.style,mt=Oe.motion,Bt=Oe.motionNodes,Ge=Oe.motionType,ot=Oe.onMotionStart,ut=Oe.onMotionEnd,It=Oe.active,Zt=Oe.treeNodeRequiredProps,nn=(0,je.Z)(Oe,Na),Ht=he.useState(!0),on=(0,Ne.Z)(Ht,2),wn=on[0],Tn=on[1],dn=he.useContext(gn.k),Xn=dn.prefixCls,Pn=he.useRef(!1),Wn=function(){Pn.current||ut(),Pn.current=!0};return(0,he.useEffect)(function(){Bt&&Ge==="hide"&&wn&&Tn(!1)},[Bt]),(0,he.useEffect)(function(){return Bt&&ot(),function(){Bt&&Wn()}},[]),Bt?he.createElement(mi.Z,(0,tt.Z)({ref:dt,visible:wn},mt,{motionAppear:Ge==="show",onAppearEnd:Wn,onLeaveEnd:Wn}),function(ar,Rn){var br=ar.className,gr=ar.style;return he.createElement("div",{ref:Rn,className:xe()("".concat(Xn,"-treenode-motion"),br),style:gr},Bt.map(function(rr){var Yn=(0,tt.Z)({},((0,bn.Z)(rr.data),rr.data)),Kn=rr.title,dr=rr.key,Gn=rr.isStart,hr=rr.isEnd;delete Yn.children;var vr=(0,Ga.H8)(dr,Zt);return he.createElement(ri.Z,(0,tt.Z)({},Yn,vr,{title:Kn,active:It,data:rr.data,key:dr,isStart:Gn,isEnd:hr}))}))}):he.createElement(ri.Z,(0,tt.Z)({domRef:dt,className:Se,style:at},nn,{active:It}))};Ba.displayName="MotionTreeNode";var oo=he.forwardRef(Ba),Qo=oo;function js(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],dt=Ae.length,Se=Oe.length;if(Math.abs(dt-Se)!==1)return{add:!1,key:null};function at(mt,Bt){var Ge=new Map;mt.forEach(function(ut){Ge.set(ut,!0)});var ot=Bt.filter(function(ut){return!Ge.has(ut)});return ot.length===1?ot[0]:null}return dt<Se?{add:!0,key:at(Ae,Oe)}:{add:!1,key:at(Oe,Ae)}}function us(Ae,Oe,dt){var Se=Ae.findIndex(function(Ge){return Ge.key===dt}),at=Ae[Se+1],mt=Oe.findIndex(function(Ge){return Ge.key===dt});if(at){var Bt=Oe.findIndex(function(Ge){return Ge.key===at.key});return Oe.slice(mt+1,Bt)}return Oe.slice(mt+1)}var ml=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],so={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Yo=function(){},vo="RC_TREE_MOTION_".concat(Math.random()),co={key:vo},Ls={key:vo,level:0,index:0,pos:"0",node:co,nodes:[co]},zs={parent:null,children:[],pos:Ls.pos,data:co,title:null,key:vo,isStart:[],isEnd:[]};function Yi(Ae,Oe,dt,Se){return Oe===!1||!dt?Ae:Ae.slice(0,Math.ceil(dt/Se)+1)}function _o(Ae){var Oe=Ae.key,dt=Ae.pos;return(0,Ga.km)(Oe,dt)}function Ts(Ae){for(var Oe=String(Ae.data.key),dt=Ae;dt.parent;)dt=dt.parent,Oe="".concat(dt.data.key," > ").concat(Oe);return Oe}var cs=he.forwardRef(function(Ae,Oe){var dt=Ae.prefixCls,Se=Ae.data,at=Ae.selectable,mt=Ae.checkable,Bt=Ae.expandedKeys,Ge=Ae.selectedKeys,ot=Ae.checkedKeys,ut=Ae.loadedKeys,It=Ae.loadingKeys,Zt=Ae.halfCheckedKeys,nn=Ae.keyEntities,Ht=Ae.disabled,on=Ae.dragging,wn=Ae.dragOverNodeKey,Tn=Ae.dropPosition,dn=Ae.motion,Xn=Ae.height,Pn=Ae.itemHeight,Wn=Ae.virtual,ar=Ae.focusable,Rn=Ae.activeItem,br=Ae.focused,gr=Ae.tabIndex,rr=Ae.onKeyDown,Yn=Ae.onFocus,Kn=Ae.onBlur,dr=Ae.onActiveChange,Gn=Ae.onListChangeStart,hr=Ae.onListChangeEnd,vr=(0,je.Z)(Ae,ml),fr=he.useRef(null),qn=he.useRef(null);he.useImperativeHandle(Oe,function(){return{scrollTo:function(qi){fr.current.scrollTo(qi)},getIndentWidth:function(){return qn.current.offsetWidth}}});var Or=he.useState(Bt),Vr=(0,Ne.Z)(Or,2),Vi=Vr[0],Ni=Vr[1],Ii=he.useState(Se),na=(0,Ne.Z)(Ii,2),Ci=na[0],ya=na[1],Ia=he.useState(Se),Qr=(0,Ne.Z)(Ia,2),Er=Qr[0],hi=Qr[1],Oi=he.useState([]),gi=(0,Ne.Z)(Oi,2),Xi=gi[0],yi=gi[1],Zi=he.useState(null),da=(0,Ne.Z)(Zi,2),Da=da[0],Ra=da[1],Hi=he.useRef(Se);Hi.current=Se;function Ai(){var aa=Hi.current;ya(aa),hi(aa),yi([]),Ra(null),hr()}he.useEffect(function(){Ni(Bt);var aa=js(Vi,Bt);if(aa.key!==null)if(aa.add){var qi=Ci.findIndex(function(ti){var Un=ti.key;return Un===aa.key}),Yr=Yi(us(Ci,Se,aa.key),Wn,Xn,Pn),Si=Ci.slice();Si.splice(qi+1,0,zs),hi(Si),yi(Yr),Ra("show")}else{var oa=Se.findIndex(function(ti){var Un=ti.key;return Un===aa.key}),$i=Yi(us(Se,Ci,aa.key),Wn,Xn,Pn),Fa=Se.slice();Fa.splice(oa+1,0,zs),hi(Fa),yi($i),Ra("hide")}else Ci!==Se&&(ya(Se),hi(Se))},[Bt,Se]),he.useEffect(function(){on||Ai()},[on]);var ba=dn?Er:Se,fa={expandedKeys:Bt,selectedKeys:Ge,loadedKeys:ut,loadingKeys:It,checkedKeys:ot,halfCheckedKeys:Zt,dragOverNodeKey:wn,dropPosition:Tn,keyEntities:nn};return he.createElement(he.Fragment,null,br&&Rn&&he.createElement("span",{style:so,"aria-live":"assertive"},Ts(Rn)),he.createElement("div",null,he.createElement("input",{style:so,disabled:ar===!1||Ht,tabIndex:ar!==!1?gr:null,onKeyDown:rr,onFocus:Yn,onBlur:Kn,value:"",onChange:Yo,"aria-label":"for screen reader"})),he.createElement("div",{className:"".concat(dt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},he.createElement("div",{className:"".concat(dt,"-indent")},he.createElement("div",{ref:qn,className:"".concat(dt,"-indent-unit")}))),he.createElement(pa,(0,tt.Z)({},vr,{data:ba,itemKey:_o,height:Xn,fullHeight:!1,virtual:Wn,itemHeight:Pn,prefixCls:"".concat(dt,"-list"),ref:fr,onVisibleChange:function(qi,Yr){var Si=new Set(qi),oa=Yr.filter(function($i){return!Si.has($i)});oa.some(function($i){return _o($i)===vo})&&Ai()}}),function(aa){var qi=aa.pos,Yr=(0,tt.Z)({},((0,bn.Z)(aa.data),aa.data)),Si=aa.title,oa=aa.key,$i=aa.isStart,Fa=aa.isEnd,ti=(0,Ga.km)(oa,qi);delete Yr.key,delete Yr.children;var Un=(0,Ga.H8)(ti,fa);return he.createElement(Qo,(0,tt.Z)({},Yr,Un,{title:Si,active:!!Rn&&oa===Rn.key,pos:qi,data:aa.data,isStart:$i,isEnd:Fa,motion:dn,motionNodes:oa===vo?Xi:null,motionType:Da,onMotionStart:Gn,onMotionEnd:Ai,treeNodeRequiredProps:fa,onMouseMove:function(){dr(null)}}))}))});cs.displayName="NodeList";var $s=cs;function Ha(Ae){var Oe=Ae.dropPosition,dt=Ae.dropLevelOffset,Se=Ae.indent,at={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Oe){case-1:at.top=0,at.left=-dt*Se;break;case 1:at.bottom=0,at.left=-dt*Se;break;case 0:at.bottom=0,at.left=Se;break}return he.createElement("div",{style:at})}var El=10,Gs=function(Ae){(0,Ln.Z)(dt,Ae);var Oe=(0,Mn.Z)(dt);function dt(){var Se;(0,Qt.Z)(this,dt);for(var at=arguments.length,mt=new Array(at),Bt=0;Bt<at;Bt++)mt[Bt]=arguments[Bt];return Se=Oe.call.apply(Oe,[this].concat(mt)),Se.destroyed=!1,Se.delayedDragEnterLogic=void 0,Se.loadingRetryTimes={},Se.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Ga.w$)()},Se.dragStartMousePosition=null,Se.dragNode=void 0,Se.currentMouseOverDroppableNodeKey=null,Se.listRef=he.createRef(),Se.onNodeDragStart=function(Ge,ot){var ut=Se.state,It=ut.expandedKeys,Zt=ut.keyEntities,nn=Se.props.onDragStart,Ht=ot.props.eventKey;Se.dragNode=ot,Se.dragStartMousePosition={x:Ge.clientX,y:Ge.clientY};var on=(0,Jt._5)(It,Ht);Se.setState({draggingNodeKey:Ht,dragChildrenKeys:(0,Jt.wA)(Ht,Zt),indent:Se.listRef.current.getIndentWidth()}),Se.setExpandedKeys(on),window.addEventListener("dragend",Se.onWindowDragEnd),nn==null||nn({event:Ge,node:(0,Ga.F)(ot.props)})},Se.onNodeDragEnter=function(Ge,ot){var ut=Se.state,It=ut.expandedKeys,Zt=ut.keyEntities,nn=ut.dragChildrenKeys,Ht=ut.flattenNodes,on=ut.indent,wn=Se.props,Tn=wn.onDragEnter,dn=wn.onExpand,Xn=wn.allowDrop,Pn=wn.direction,Wn=ot.props,ar=Wn.pos,Rn=Wn.eventKey,br=(0,Cn.Z)(Se),gr=br.dragNode;if(Se.currentMouseOverDroppableNodeKey!==Rn&&(Se.currentMouseOverDroppableNodeKey=Rn),!gr){Se.resetDragState();return}var rr=(0,Jt.OM)(Ge,gr,ot,on,Se.dragStartMousePosition,Xn,Ht,Zt,It,Pn),Yn=rr.dropPosition,Kn=rr.dropLevelOffset,dr=rr.dropTargetKey,Gn=rr.dropContainerKey,hr=rr.dropTargetPos,vr=rr.dropAllowed,fr=rr.dragOverNodeKey;if(nn.indexOf(dr)!==-1||!vr){Se.resetDragState();return}if(Se.delayedDragEnterLogic||(Se.delayedDragEnterLogic={}),Object.keys(Se.delayedDragEnterLogic).forEach(function(qn){clearTimeout(Se.delayedDragEnterLogic[qn])}),gr.props.eventKey!==ot.props.eventKey&&(Ge.persist(),Se.delayedDragEnterLogic[ar]=window.setTimeout(function(){if(Se.state.draggingNodeKey!==null){var qn=(0,At.Z)(It),Or=Zt[ot.props.eventKey];Or&&(Or.children||[]).length&&(qn=(0,Jt.L0)(It,ot.props.eventKey)),"expandedKeys"in Se.props||Se.setExpandedKeys(qn),dn==null||dn(qn,{node:(0,Ga.F)(ot.props),expanded:!0,nativeEvent:Ge.nativeEvent})}},800)),gr.props.eventKey===dr&&Kn===0){Se.resetDragState();return}Se.setState({dragOverNodeKey:fr,dropPosition:Yn,dropLevelOffset:Kn,dropTargetKey:dr,dropContainerKey:Gn,dropTargetPos:hr,dropAllowed:vr}),Tn==null||Tn({event:Ge,node:(0,Ga.F)(ot.props),expandedKeys:It})},Se.onNodeDragOver=function(Ge,ot){var ut=Se.state,It=ut.dragChildrenKeys,Zt=ut.flattenNodes,nn=ut.keyEntities,Ht=ut.expandedKeys,on=ut.indent,wn=Se.props,Tn=wn.onDragOver,dn=wn.allowDrop,Xn=wn.direction,Pn=(0,Cn.Z)(Se),Wn=Pn.dragNode;if(Wn){var ar=(0,Jt.OM)(Ge,Wn,ot,on,Se.dragStartMousePosition,dn,Zt,nn,Ht,Xn),Rn=ar.dropPosition,br=ar.dropLevelOffset,gr=ar.dropTargetKey,rr=ar.dropContainerKey,Yn=ar.dropAllowed,Kn=ar.dropTargetPos,dr=ar.dragOverNodeKey;It.indexOf(gr)!==-1||!Yn||(Wn.props.eventKey===gr&&br===0?Se.state.dropPosition===null&&Se.state.dropLevelOffset===null&&Se.state.dropTargetKey===null&&Se.state.dropContainerKey===null&&Se.state.dropTargetPos===null&&Se.state.dropAllowed===!1&&Se.state.dragOverNodeKey===null||Se.resetDragState():Rn===Se.state.dropPosition&&br===Se.state.dropLevelOffset&&gr===Se.state.dropTargetKey&&rr===Se.state.dropContainerKey&&Kn===Se.state.dropTargetPos&&Yn===Se.state.dropAllowed&&dr===Se.state.dragOverNodeKey||Se.setState({dropPosition:Rn,dropLevelOffset:br,dropTargetKey:gr,dropContainerKey:rr,dropTargetPos:Kn,dropAllowed:Yn,dragOverNodeKey:dr}),Tn==null||Tn({event:Ge,node:(0,Ga.F)(ot.props)}))}},Se.onNodeDragLeave=function(Ge,ot){Se.currentMouseOverDroppableNodeKey===ot.props.eventKey&&!Ge.currentTarget.contains(Ge.relatedTarget)&&(Se.resetDragState(),Se.currentMouseOverDroppableNodeKey=null);var ut=Se.props.onDragLeave;ut==null||ut({event:Ge,node:(0,Ga.F)(ot.props)})},Se.onWindowDragEnd=function(Ge){Se.onNodeDragEnd(Ge,null,!0),window.removeEventListener("dragend",Se.onWindowDragEnd)},Se.onNodeDragEnd=function(Ge,ot){var ut=Se.props.onDragEnd;Se.setState({dragOverNodeKey:null}),Se.cleanDragState(),ut==null||ut({event:Ge,node:(0,Ga.F)(ot.props)}),Se.dragNode=null,window.removeEventListener("dragend",Se.onWindowDragEnd)},Se.onNodeDrop=function(Ge,ot){var ut,It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Zt=Se.state,nn=Zt.dragChildrenKeys,Ht=Zt.dropPosition,on=Zt.dropTargetKey,wn=Zt.dropTargetPos,Tn=Zt.dropAllowed;if(Tn){var dn=Se.props.onDrop;if(Se.setState({dragOverNodeKey:null}),Se.cleanDragState(),on!==null){var Xn=(0,Pe.Z)((0,Pe.Z)({},(0,Ga.H8)(on,Se.getTreeNodeRequiredProps())),{},{active:((ut=Se.getActiveItem())===null||ut===void 0?void 0:ut.key)===on,data:Se.state.keyEntities[on].node}),Pn=nn.indexOf(on)!==-1;(0,it.ZP)(!Pn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Wn=(0,Jt.yx)(wn),ar={event:Ge,node:(0,Ga.F)(Xn),dragNode:Se.dragNode?(0,Ga.F)(Se.dragNode.props):null,dragNodesKeys:[Se.dragNode.props.eventKey].concat(nn),dropToGap:Ht!==0,dropPosition:Ht+Number(Wn[Wn.length-1])};It||dn==null||dn(ar),Se.dragNode=null}}},Se.cleanDragState=function(){var Ge=Se.state.draggingNodeKey;Ge!==null&&Se.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Se.dragStartMousePosition=null,Se.currentMouseOverDroppableNodeKey=null},Se.triggerExpandActionExpand=function(Ge,ot){var ut=Se.state,It=ut.expandedKeys,Zt=ut.flattenNodes,nn=ot.expanded,Ht=ot.key,on=ot.isLeaf;if(!(on||Ge.shiftKey||Ge.metaKey||Ge.ctrlKey)){var wn=Zt.filter(function(dn){return dn.key===Ht})[0],Tn=(0,Ga.F)((0,Pe.Z)((0,Pe.Z)({},(0,Ga.H8)(Ht,Se.getTreeNodeRequiredProps())),{},{data:wn.data}));Se.setExpandedKeys(nn?(0,Jt._5)(It,Ht):(0,Jt.L0)(It,Ht)),Se.onNodeExpand(Ge,Tn)}},Se.onNodeClick=function(Ge,ot){var ut=Se.props,It=ut.onClick,Zt=ut.expandAction;Zt==="click"&&Se.triggerExpandActionExpand(Ge,ot),It==null||It(Ge,ot)},Se.onNodeDoubleClick=function(Ge,ot){var ut=Se.props,It=ut.onDoubleClick,Zt=ut.expandAction;Zt==="doubleClick"&&Se.triggerExpandActionExpand(Ge,ot),It==null||It(Ge,ot)},Se.onNodeSelect=function(Ge,ot){var ut=Se.state.selectedKeys,It=Se.state,Zt=It.keyEntities,nn=It.fieldNames,Ht=Se.props,on=Ht.onSelect,wn=Ht.multiple,Tn=ot.selected,dn=ot[nn.key],Xn=!Tn;Xn?wn?ut=(0,Jt.L0)(ut,dn):ut=[dn]:ut=(0,Jt._5)(ut,dn);var Pn=ut.map(function(Wn){var ar=Zt[Wn];return ar?ar.node:null}).filter(function(Wn){return Wn});Se.setUncontrolledState({selectedKeys:ut}),on==null||on(ut,{event:"select",selected:Xn,node:ot,selectedNodes:Pn,nativeEvent:Ge.nativeEvent})},Se.onNodeCheck=function(Ge,ot,ut){var It=Se.state,Zt=It.keyEntities,nn=It.checkedKeys,Ht=It.halfCheckedKeys,on=Se.props,wn=on.checkStrictly,Tn=on.onCheck,dn=ot.key,Xn,Pn={event:"check",node:ot,checked:ut,nativeEvent:Ge.nativeEvent};if(wn){var Wn=ut?(0,Jt.L0)(nn,dn):(0,Jt._5)(nn,dn),ar=(0,Jt._5)(Ht,dn);Xn={checked:Wn,halfChecked:ar},Pn.checkedNodes=Wn.map(function(Kn){return Zt[Kn]}).filter(function(Kn){return Kn}).map(function(Kn){return Kn.node}),Se.setUncontrolledState({checkedKeys:Wn})}else{var Rn=(0,ss.S)([].concat((0,At.Z)(nn),[dn]),!0,Zt),br=Rn.checkedKeys,gr=Rn.halfCheckedKeys;if(!ut){var rr=new Set(br);rr.delete(dn);var Yn=(0,ss.S)(Array.from(rr),{checked:!1,halfCheckedKeys:gr},Zt);br=Yn.checkedKeys,gr=Yn.halfCheckedKeys}Xn=br,Pn.checkedNodes=[],Pn.checkedNodesPositions=[],Pn.halfCheckedKeys=gr,br.forEach(function(Kn){var dr=Zt[Kn];if(dr){var Gn=dr.node,hr=dr.pos;Pn.checkedNodes.push(Gn),Pn.checkedNodesPositions.push({node:Gn,pos:hr})}}),Se.setUncontrolledState({checkedKeys:br},!1,{halfCheckedKeys:gr})}Tn==null||Tn(Xn,Pn)},Se.onNodeLoad=function(Ge){var ot=Ge.key,ut=new Promise(function(It,Zt){Se.setState(function(nn){var Ht=nn.loadedKeys,on=Ht===void 0?[]:Ht,wn=nn.loadingKeys,Tn=wn===void 0?[]:wn,dn=Se.props,Xn=dn.loadData,Pn=dn.onLoad;if(!Xn||on.indexOf(ot)!==-1||Tn.indexOf(ot)!==-1)return null;var Wn=Xn(Ge);return Wn.then(function(){var ar=Se.state.loadedKeys,Rn=(0,Jt.L0)(ar,ot);Pn==null||Pn(Rn,{event:"load",node:Ge}),Se.setUncontrolledState({loadedKeys:Rn}),Se.setState(function(br){return{loadingKeys:(0,Jt._5)(br.loadingKeys,ot)}}),It()}).catch(function(ar){if(Se.setState(function(br){return{loadingKeys:(0,Jt._5)(br.loadingKeys,ot)}}),Se.loadingRetryTimes[ot]=(Se.loadingRetryTimes[ot]||0)+1,Se.loadingRetryTimes[ot]>=El){var Rn=Se.state.loadedKeys;(0,it.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Se.setUncontrolledState({loadedKeys:(0,Jt.L0)(Rn,ot)}),It()}Zt(ar)}),{loadingKeys:(0,Jt.L0)(Tn,ot)}})});return ut.catch(function(){}),ut},Se.onNodeMouseEnter=function(Ge,ot){var ut=Se.props.onMouseEnter;ut==null||ut({event:Ge,node:ot})},Se.onNodeMouseLeave=function(Ge,ot){var ut=Se.props.onMouseLeave;ut==null||ut({event:Ge,node:ot})},Se.onNodeContextMenu=function(Ge,ot){var ut=Se.props.onRightClick;ut&&(Ge.preventDefault(),ut({event:Ge,node:ot}))},Se.onFocus=function(){var Ge=Se.props.onFocus;Se.setState({focused:!0});for(var ot=arguments.length,ut=new Array(ot),It=0;It<ot;It++)ut[It]=arguments[It];Ge==null||Ge.apply(void 0,ut)},Se.onBlur=function(){var Ge=Se.props.onBlur;Se.setState({focused:!1}),Se.onActiveChange(null);for(var ot=arguments.length,ut=new Array(ot),It=0;It<ot;It++)ut[It]=arguments[It];Ge==null||Ge.apply(void 0,ut)},Se.getTreeNodeRequiredProps=function(){var Ge=Se.state,ot=Ge.expandedKeys,ut=Ge.selectedKeys,It=Ge.loadedKeys,Zt=Ge.loadingKeys,nn=Ge.checkedKeys,Ht=Ge.halfCheckedKeys,on=Ge.dragOverNodeKey,wn=Ge.dropPosition,Tn=Ge.keyEntities;return{expandedKeys:ot||[],selectedKeys:ut||[],loadedKeys:It||[],loadingKeys:Zt||[],checkedKeys:nn||[],halfCheckedKeys:Ht||[],dragOverNodeKey:on,dropPosition:wn,keyEntities:Tn}},Se.setExpandedKeys=function(Ge){var ot=Se.state,ut=ot.treeData,It=ot.fieldNames,Zt=(0,Ga.oH)(ut,Ge,It);Se.setUncontrolledState({expandedKeys:Ge,flattenNodes:Zt},!0)},Se.onNodeExpand=function(Ge,ot){var ut=Se.state.expandedKeys,It=Se.state,Zt=It.listChanging,nn=It.fieldNames,Ht=Se.props,on=Ht.onExpand,wn=Ht.loadData,Tn=ot.expanded,dn=ot[nn.key];if(!Zt){var Xn=ut.indexOf(dn),Pn=!Tn;if((0,it.ZP)(Tn&&Xn!==-1||!Tn&&Xn===-1,"Expand state not sync with index check"),Pn?ut=(0,Jt.L0)(ut,dn):ut=(0,Jt._5)(ut,dn),Se.setExpandedKeys(ut),on==null||on(ut,{node:ot,expanded:Pn,nativeEvent:Ge.nativeEvent}),Pn&&wn){var Wn=Se.onNodeLoad(ot);Wn&&Wn.then(function(){var ar=(0,Ga.oH)(Se.state.treeData,ut,nn);Se.setUncontrolledState({flattenNodes:ar})}).catch(function(){var ar=Se.state.expandedKeys,Rn=(0,Jt._5)(ar,dn);Se.setExpandedKeys(Rn)})}}},Se.onListChangeStart=function(){Se.setUncontrolledState({listChanging:!0})},Se.onListChangeEnd=function(){setTimeout(function(){Se.setUncontrolledState({listChanging:!1})})},Se.onActiveChange=function(Ge){var ot=Se.state.activeKey,ut=Se.props.onActiveChange;ot!==Ge&&(Se.setState({activeKey:Ge}),Ge!==null&&Se.scrollTo({key:Ge}),ut==null||ut(Ge))},Se.getActiveItem=function(){var Ge=Se.state,ot=Ge.activeKey,ut=Ge.flattenNodes;return ot===null?null:ut.find(function(It){var Zt=It.key;return Zt===ot})||null},Se.offsetActiveKey=function(Ge){var ot=Se.state,ut=ot.flattenNodes,It=ot.activeKey,Zt=ut.findIndex(function(on){var wn=on.key;return wn===It});Zt===-1&&Ge<0&&(Zt=ut.length),Zt=(Zt+Ge+ut.length)%ut.length;var nn=ut[Zt];if(nn){var Ht=nn.key;Se.onActiveChange(Ht)}else Se.onActiveChange(null)},Se.onKeyDown=function(Ge){var ot=Se.state,ut=ot.activeKey,It=ot.expandedKeys,Zt=ot.checkedKeys,nn=ot.fieldNames,Ht=Se.props,on=Ht.onKeyDown,wn=Ht.checkable,Tn=Ht.selectable;switch(Ge.which){case Xe.Z.UP:{Se.offsetActiveKey(-1),Ge.preventDefault();break}case Xe.Z.DOWN:{Se.offsetActiveKey(1),Ge.preventDefault();break}}var dn=Se.getActiveItem();if(dn&&dn.data){var Xn=Se.getTreeNodeRequiredProps(),Pn=dn.data.isLeaf===!1||!!(dn.data[nn.children]||[]).length,Wn=(0,Ga.F)((0,Pe.Z)((0,Pe.Z)({},(0,Ga.H8)(ut,Xn)),{},{data:dn.data,active:!0}));switch(Ge.which){case Xe.Z.LEFT:{Pn&&It.includes(ut)?Se.onNodeExpand({},Wn):dn.parent&&Se.onActiveChange(dn.parent.key),Ge.preventDefault();break}case Xe.Z.RIGHT:{Pn&&!It.includes(ut)?Se.onNodeExpand({},Wn):dn.children&&dn.children.length&&Se.onActiveChange(dn.children[0].key),Ge.preventDefault();break}case Xe.Z.ENTER:case Xe.Z.SPACE:{wn&&!Wn.disabled&&Wn.checkable!==!1&&!Wn.disableCheckbox?Se.onNodeCheck({},Wn,!Zt.includes(ut)):!wn&&Tn&&!Wn.disabled&&Wn.selectable!==!1&&Se.onNodeSelect({},Wn);break}}}on==null||on(Ge)},Se.setUncontrolledState=function(Ge){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Se.destroyed){var It=!1,Zt=!0,nn={};Object.keys(Ge).forEach(function(Ht){if(Ht in Se.props){Zt=!1;return}It=!0,nn[Ht]=Ge[Ht]}),It&&(!ot||Zt)&&Se.setState((0,Pe.Z)((0,Pe.Z)({},nn),ut))}},Se.scrollTo=function(Ge){Se.listRef.current.scrollTo(Ge)},Se}return(0,Dt.Z)(dt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var at=this.props.activeKey;at!==void 0&&at!==this.state.activeKey&&(this.setState({activeKey:at}),at!==null&&this.scrollTo({key:at}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var at,mt=this.state,Bt=mt.focused,Ge=mt.flattenNodes,ot=mt.keyEntities,ut=mt.draggingNodeKey,It=mt.activeKey,Zt=mt.dropLevelOffset,nn=mt.dropContainerKey,Ht=mt.dropTargetKey,on=mt.dropPosition,wn=mt.dragOverNodeKey,Tn=mt.indent,dn=this.props,Xn=dn.prefixCls,Pn=dn.className,Wn=dn.style,ar=dn.showLine,Rn=dn.focusable,br=dn.tabIndex,gr=br===void 0?0:br,rr=dn.selectable,Yn=dn.showIcon,Kn=dn.icon,dr=dn.switcherIcon,Gn=dn.draggable,hr=dn.checkable,vr=dn.checkStrictly,fr=dn.disabled,qn=dn.motion,Or=dn.loadData,Vr=dn.filterTreeNode,Vi=dn.height,Ni=dn.itemHeight,Ii=dn.virtual,na=dn.titleRender,Ci=dn.dropIndicatorRender,ya=dn.onContextMenu,Ia=dn.onScroll,Qr=dn.direction,Er=dn.rootClassName,hi=dn.rootStyle,Oi=(0,_t.Z)(this.props,{aria:!0,data:!0}),gi;return Gn&&((0,Ee.Z)(Gn)==="object"?gi=Gn:typeof Gn=="function"?gi={nodeDraggable:Gn}:gi={}),he.createElement(gn.k.Provider,{value:{prefixCls:Xn,selectable:rr,showIcon:Yn,icon:Kn,switcherIcon:dr,draggable:gi,draggingNodeKey:ut,checkable:hr,checkStrictly:vr,disabled:fr,keyEntities:ot,dropLevelOffset:Zt,dropContainerKey:nn,dropTargetKey:Ht,dropPosition:on,dragOverNodeKey:wn,indent:Tn,direction:Qr,dropIndicatorRender:Ci,loadData:Or,filterTreeNode:Vr,titleRender:na,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},he.createElement("div",{role:"tree",className:xe()(Xn,Pn,Er,(at={},(0,ye.Z)(at,"".concat(Xn,"-show-line"),ar),(0,ye.Z)(at,"".concat(Xn,"-focused"),Bt),(0,ye.Z)(at,"".concat(Xn,"-active-focused"),It!==null),at)),style:hi},he.createElement($s,(0,tt.Z)({ref:this.listRef,prefixCls:Xn,style:Wn,data:Ge,disabled:fr,selectable:rr,checkable:!!hr,motion:qn,dragging:ut!==null,height:Vi,itemHeight:Ni,virtual:Ii,focusable:Rn,focused:Bt,tabIndex:gr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ya,onScroll:Ia},this.getTreeNodeRequiredProps(),Oi))))}}],[{key:"getDerivedStateFromProps",value:function(at,mt){var Bt=mt.prevProps,Ge={prevProps:at};function ot(Rn){return!Bt&&Rn in at||Bt&&Bt[Rn]!==at[Rn]}var ut,It=mt.fieldNames;if(ot("fieldNames")&&(It=(0,Ga.w$)(at.fieldNames),Ge.fieldNames=It),ot("treeData")?ut=at.treeData:ot("children")&&((0,it.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ut=(0,Ga.zn)(at.children)),ut){Ge.treeData=ut;var Zt=(0,Ga.I8)(ut,{fieldNames:It});Ge.keyEntities=(0,Pe.Z)((0,ye.Z)({},vo,Ls),Zt.keyEntities)}var nn=Ge.keyEntities||mt.keyEntities;if(ot("expandedKeys")||Bt&&ot("autoExpandParent"))Ge.expandedKeys=at.autoExpandParent||!Bt&&at.defaultExpandParent?(0,Jt.r7)(at.expandedKeys,nn):at.expandedKeys;else if(!Bt&&at.defaultExpandAll){var Ht=(0,Pe.Z)({},nn);delete Ht[vo],Ge.expandedKeys=Object.keys(Ht).map(function(Rn){return Ht[Rn].key})}else!Bt&&at.defaultExpandedKeys&&(Ge.expandedKeys=at.autoExpandParent||at.defaultExpandParent?(0,Jt.r7)(at.defaultExpandedKeys,nn):at.defaultExpandedKeys);if(Ge.expandedKeys||delete Ge.expandedKeys,ut||Ge.expandedKeys){var on=(0,Ga.oH)(ut||mt.treeData,Ge.expandedKeys||mt.expandedKeys,It);Ge.flattenNodes=on}if(at.selectable&&(ot("selectedKeys")?Ge.selectedKeys=(0,Jt.BT)(at.selectedKeys,at):!Bt&&at.defaultSelectedKeys&&(Ge.selectedKeys=(0,Jt.BT)(at.defaultSelectedKeys,at))),at.checkable){var wn;if(ot("checkedKeys")?wn=(0,Jt.E6)(at.checkedKeys)||{}:!Bt&&at.defaultCheckedKeys?wn=(0,Jt.E6)(at.defaultCheckedKeys)||{}:ut&&(wn=(0,Jt.E6)(at.checkedKeys)||{checkedKeys:mt.checkedKeys,halfCheckedKeys:mt.halfCheckedKeys}),wn){var Tn=wn,dn=Tn.checkedKeys,Xn=dn===void 0?[]:dn,Pn=Tn.halfCheckedKeys,Wn=Pn===void 0?[]:Pn;if(!at.checkStrictly){var ar=(0,ss.S)(Xn,!0,nn);Xn=ar.checkedKeys,Wn=ar.halfCheckedKeys}Ge.checkedKeys=Xn,Ge.halfCheckedKeys=Wn}}return ot("loadedKeys")&&(Ge.loadedKeys=at.loadedKeys),Ge}}]),dt}(he.Component);Gs.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Ha,allowDrop:function(){return!0},expandAction:!1},Gs.TreeNode=ri.Z;var gl=Gs,hu=gl,pu=he.createContext(null),Ps=pu;function mu(Ae){return Array.isArray(Ae)?Ae:Ae!==void 0?[Ae]:[]}function Cl(Ae){var Oe=Ae||{},dt=Oe.label,Se=Oe.value,at=Oe.children,mt=Se||"value";return{_title:dt?[dt]:["title","label"],value:mt,key:mt,children:at||"children"}}function Gl(Ae){return!Ae||Ae.disabled||Ae.disableCheckbox||Ae.checkable===!1}function Ql(Ae,Oe){var dt=[];function Se(at){at.forEach(function(mt){var Bt=mt[Oe.children];Bt&&(dt.push(mt[Oe.value]),Se(Bt))})}return Se(Ae),dt}function zl(Ae){return Ae==null}var Wl={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Zl=function(Oe,dt){var Se=We(),at=Se.prefixCls,mt=Se.multiple,Bt=Se.searchValue,Ge=Se.toggleOpen,ot=Se.open,ut=Se.notFoundContent,It=he.useContext(Ps),Zt=It.virtual,nn=It.listHeight,Ht=It.listItemHeight,on=It.treeData,wn=It.fieldNames,Tn=It.onSelect,dn=It.dropdownMatchSelectWidth,Xn=It.treeExpandAction,Pn=he.useContext(St),Wn=Pn.checkable,ar=Pn.checkedKeys,Rn=Pn.halfCheckedKeys,br=Pn.treeExpandedKeys,gr=Pn.treeDefaultExpandAll,rr=Pn.treeDefaultExpandedKeys,Yn=Pn.onTreeExpand,Kn=Pn.treeIcon,dr=Pn.showTreeIcon,Gn=Pn.switcherIcon,hr=Pn.treeLine,vr=Pn.treeNodeFilterProp,fr=Pn.loadData,qn=Pn.treeLoadedKeys,Or=Pn.treeMotion,Vr=Pn.onTreeLoad,Vi=Pn.keyEntities,Ni=he.useRef(),Ii=(0,wo.Z)(function(){return on},[ot,on],function(Yr,Si){return Si[0]&&Yr[1]!==Si[1]}),na=he.useState(null),Ci=(0,Ne.Z)(na,2),ya=Ci[0],Ia=Ci[1],Qr=Vi[ya],Er=he.useMemo(function(){return Wn?{checked:ar,halfChecked:Rn}:null},[Wn,ar,Rn]);he.useEffect(function(){if(ot&&!mt&&ar.length){var Yr;(Yr=Ni.current)===null||Yr===void 0||Yr.scrollTo({key:ar[0]}),Ia(ar[0])}},[ot]);var hi=String(Bt).toLowerCase(),Oi=function(Si){return hi?String(Si[vr]).toLowerCase().includes(hi):!1},gi=he.useState(rr),Xi=(0,Ne.Z)(gi,2),yi=Xi[0],Zi=Xi[1],da=he.useState(null),Da=(0,Ne.Z)(da,2),Ra=Da[0],Hi=Da[1],Ai=he.useMemo(function(){return br?(0,At.Z)(br):Bt?Ra:yi},[yi,Ra,br,Bt]);he.useEffect(function(){Bt&&Hi(Ql(on,wn))},[Bt]);var ba=function(Si){Zi(Si),Hi(Si),Yn&&Yn(Si)},fa=function(Si){Si.preventDefault()},aa=function(Si,oa){var $i=oa.node;Wn&&Gl($i)||(Tn($i.key,{selected:!ar.includes($i.key)}),mt||Ge(!1))};if(he.useImperativeHandle(dt,function(){var Yr;return{scrollTo:(Yr=Ni.current)===null||Yr===void 0?void 0:Yr.scrollTo,onKeyDown:function(oa){var $i,Fa=oa.which;switch(Fa){case Xe.Z.UP:case Xe.Z.DOWN:case Xe.Z.LEFT:case Xe.Z.RIGHT:($i=Ni.current)===null||$i===void 0||$i.onKeyDown(oa);break;case Xe.Z.ENTER:{if(Qr){var ti=(Qr==null?void 0:Qr.node)||{},Un=ti.selectable,Dr=ti.value;Un!==!1&&aa(null,{node:{key:ya},selected:!ar.includes(Dr)})}break}case Xe.Z.ESC:Ge(!1)}},onKeyUp:function(){}}}),Ii.length===0)return he.createElement("div",{role:"listbox",className:"".concat(at,"-empty"),onMouseDown:fa},ut);var qi={fieldNames:wn};return qn&&(qi.loadedKeys=qn),Ai&&(qi.expandedKeys=Ai),he.createElement("div",{onMouseDown:fa},Qr&&ot&&he.createElement("span",{style:Wl,"aria-live":"assertive"},Qr.node.value),he.createElement(hu,(0,tt.Z)({ref:Ni,focusable:!1,prefixCls:"".concat(at,"-tree"),treeData:Ii,height:nn,itemHeight:Ht,virtual:Zt!==!1&&dn!==!1,multiple:mt,icon:Kn,showIcon:dr,switcherIcon:Gn,showLine:hr,loadData:Bt?null:fr,motion:Or,activeKey:ya,checkable:Wn,checkStrictly:!0,checkedKeys:Er,selectedKeys:Wn?[]:ar,defaultExpandAll:gr},qi,{onActiveChange:Ia,onSelect:aa,onCheck:aa,onExpand:ba,onLoad:Vr,filterTreeNode:Oi,expandAction:Xn})))},nu=he.forwardRef(Zl);nu.displayName="OptionList";var Ws=nu,Yl="SHOW_ALL",Sl="SHOW_PARENT",Dl="SHOW_CHILD";function ru(Ae,Oe,dt,Se){var at=new Set(Ae);return Oe===Dl?Ae.filter(function(mt){var Bt=dt[mt];return!(Bt&&Bt.children&&Bt.children.some(function(Ge){var ot=Ge.node;return at.has(ot[Se.value])})&&Bt.children.every(function(Ge){var ot=Ge.node;return Gl(ot)||at.has(ot[Se.value])}))}):Oe===Sl?Ae.filter(function(mt){var Bt=dt[mt],Ge=Bt?Bt.parent:null;return!(Ge&&!Gl(Ge.node)&&at.has(Ge.key))}):Ae}function iu(Ae){var Oe=Ae.searchPlaceholder,dt=Ae.treeCheckStrictly,Se=Ae.treeCheckable,at=Ae.labelInValue,mt=Ae.value,Bt=Ae.multiple;warning(!Oe,"`searchPlaceholder` has been removed."),dt&&at===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(at||dt)&&warning(toArray(mt).every(function(Ge){return Ge&&_typeof(Ge)==="object"&&"value"in Ge}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),dt||Bt||Se?warning(!mt||Array.isArray(mt),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(mt),"`value` should not be array when `TreeSelect` is single mode.")}var gu=null,Pu=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function Nl(Ae){return!Ae||(0,Ee.Z)(Ae)!=="object"}var au=he.forwardRef(function(Ae,Oe){var dt=Ae.id,Se=Ae.prefixCls,at=Se===void 0?"rc-tree-select":Se,mt=Ae.value,Bt=Ae.defaultValue,Ge=Ae.onChange,ot=Ae.onSelect,ut=Ae.onDeselect,It=Ae.searchValue,Zt=Ae.inputValue,nn=Ae.onSearch,Ht=Ae.autoClearSearchValue,on=Ht===void 0?!0:Ht,wn=Ae.filterTreeNode,Tn=Ae.treeNodeFilterProp,dn=Tn===void 0?"value":Tn,Xn=Ae.showCheckedStrategy,Pn=Ae.treeNodeLabelProp,Wn=Ae.multiple,ar=Ae.treeCheckable,Rn=Ae.treeCheckStrictly,br=Ae.labelInValue,gr=Ae.fieldNames,rr=Ae.treeDataSimpleMode,Yn=Ae.treeData,Kn=Ae.children,dr=Ae.loadData,Gn=Ae.treeLoadedKeys,hr=Ae.onTreeLoad,vr=Ae.treeDefaultExpandAll,fr=Ae.treeExpandedKeys,qn=Ae.treeDefaultExpandedKeys,Or=Ae.onTreeExpand,Vr=Ae.treeExpandAction,Vi=Ae.virtual,Ni=Ae.listHeight,Ii=Ni===void 0?200:Ni,na=Ae.listItemHeight,Ci=na===void 0?20:na,ya=Ae.onDropdownVisibleChange,Ia=Ae.dropdownMatchSelectWidth,Qr=Ia===void 0?!0:Ia,Er=Ae.treeLine,hi=Ae.treeIcon,Oi=Ae.showTreeIcon,gi=Ae.switcherIcon,Xi=Ae.treeMotion,yi=(0,je.Z)(Ae,Pu),Zi=ja(dt),da=ar&&!Rn,Da=ar||Rn,Ra=Rn||br,Hi=Da||Wn,Ai=(0,qe.Z)(Bt,{value:mt}),ba=(0,Ne.Z)(Ai,2),fa=ba[0],aa=ba[1],qi=he.useMemo(function(){return ar?Xn||Dl:Yl},[Xn,ar]),Yr=he.useMemo(function(){return Cl(gr)},[JSON.stringify(gr)]),Si=(0,qe.Z)("",{value:It!==void 0?It:Zt,postState:function(ka){return ka||""}}),oa=(0,Ne.Z)(Si,2),$i=oa[0],Fa=oa[1],ti=function(ka){Fa(ka),nn==null||nn(ka)},Un=we(Yn,Kn,rr),Dr=ls(Un,Yr),Hr=Dr.keyEntities,or=Dr.valueEntities,zi=he.useCallback(function(za){var ka=[],no=[];return za.forEach(function(Za){or.has(Za)?no.push(Za):ka.push(Za)}),{missingRawValues:ka,existRawValues:no}},[or]),ga=Te(Un,$i,{fieldNames:Yr,treeNodeFilterProp:dn,filterTreeNode:wn}),eo=he.useCallback(function(za){if(za){if(Pn)return za[Pn];for(var ka=Yr._title,no=0;no<ka.length;no+=1){var Za=za[ka[no]];if(Za!==void 0)return Za}}},[Yr,Pn]),Qa=he.useCallback(function(za){var ka=mu(za);return ka.map(function(no){return Nl(no)?{value:no}:no})},[]),go=he.useCallback(function(za){var ka=Qa(za);return ka.map(function(no){var Za=no.label,Ao=no.value,Ho=no.halfChecked,Di,Qi=or.get(Ao);if(Qi){var Va;Za=(Va=Za)!==null&&Va!==void 0?Va:eo(Qi.node),Di=Qi.node.disabled}else if(Za===void 0){var ko=Qa(fa).find(function(ho){return ho.value===Ao});Za=ko.label}return{label:Za,value:Ao,halfChecked:Ho,disabled:Di}})},[or,eo,Qa,fa]),to=he.useMemo(function(){return Qa(fa)},[Qa,fa]),ts=he.useMemo(function(){var za=[],ka=[];return to.forEach(function(no){no.halfChecked?ka.push(no):za.push(no)}),[za,ka]},[to]),Jo=(0,Ne.Z)(ts,2),Ko=Jo[0],xs=Jo[1],Ns=he.useMemo(function(){return Ko.map(function(za){return za.value})},[Ko]),ws=qs(Ko,xs,da,Hr),vl=(0,Ne.Z)(ws,2),ea=vl[0],Rr=vl[1],Bi=he.useMemo(function(){var za=ru(ea,qi,Hr,Yr),ka=za.map(function(Ho){var Di,Qi,Va;return(Di=(Qi=Hr[Ho])===null||Qi===void 0||(Va=Qi.node)===null||Va===void 0?void 0:Va[Yr.value])!==null&&Di!==void 0?Di:Ho}),no=ka.map(function(Ho){var Di=Ko.find(function(Qi){return Qi.value===Ho});return{value:Ho,label:Di==null?void 0:Di.label}}),Za=go(no),Ao=Za[0];return!Hi&&Ao&&zl(Ao.value)&&zl(Ao.label)?[]:Za.map(function(Ho){var Di;return(0,Pe.Z)((0,Pe.Z)({},Ho),{},{label:(Di=Ho.label)!==null&&Di!==void 0?Di:Ho.value})})},[Yr,Hi,ea,Ko,go,qi,Hr]),Hn=Hs(Bi),Ui=(0,Ne.Z)(Hn,1),yo=Ui[0],fo=Ue(function(za,ka,no){var Za=go(za);if(aa(Za),on&&Fa(""),Ge){var Ao=za;if(da){var Ho=ru(za,qi,Hr,Yr);Ao=Ho.map(function(Xo){var ns=or.get(Xo);return ns?ns.node[Yr.value]:Xo})}var Di=ka||{triggerValue:void 0,selected:void 0},Qi=Di.triggerValue,Va=Di.selected,ko=Ao;if(Rn){var ho=xs.filter(function(Xo){return!Ao.includes(Xo.value)});ko=[].concat((0,At.Z)(ko),(0,At.Z)(ho))}var fs=go(ko),Fo={preValue:Ko,triggerValue:Qi},yl=!0;(Rn||no==="selection"&&!Va)&&(yl=!1),Go(Fo,Qi,za,Un,yl,Yr),Da?Fo.checked=Va:Fo.selected=Va;var tl=Ra?fs:fs.map(function(Xo){return Xo.value});Ge(Hi?tl:tl[0],Ra?null:fs.map(function(Xo){return Xo.label}),Fo)}}),So=he.useCallback(function(za,ka){var no,Za=ka.selected,Ao=ka.source,Ho=Hr[za],Di=Ho==null?void 0:Ho.node,Qi=(no=Di==null?void 0:Di[Yr.value])!==null&&no!==void 0?no:za;if(!Hi)fo([Qi],{selected:!0,triggerValue:Qi},"option");else{var Va=Za?[].concat((0,At.Z)(Ns),[Qi]):ea.filter(function(ns){return ns!==Qi});if(da){var ko=zi(Va),ho=ko.missingRawValues,fs=ko.existRawValues,Fo=fs.map(function(ns){return or.get(ns).key}),yl;if(Za){var tl=(0,ss.S)(Fo,!0,Hr);yl=tl.checkedKeys}else{var Xo=(0,ss.S)(Fo,{checked:!1,halfCheckedKeys:Rr},Hr);yl=Xo.checkedKeys}Va=[].concat((0,At.Z)(ho),(0,At.Z)(yl.map(function(ns){return Hr[ns].node[Yr.value]})))}fo(Va,{selected:Za,triggerValue:Qi},Ao||"option")}Za||!Hi?ot==null||ot(Qi,bs(Di)):ut==null||ut(Qi,bs(Di))},[zi,or,Hr,Yr,Hi,Ns,fo,da,ot,ut,ea,Rr]),uo=he.useCallback(function(za){if(ya){var ka={};Object.defineProperty(ka,"documentClickClose",{get:function(){return(0,it.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),ya(za,ka)}},[ya]),el=Ue(function(za,ka){var no=za.map(function(Za){return Za.value});if(ka.type==="clear"){fo(no,{},"selection");return}ka.values.length&&So(ka.values[0].value,{selected:!1,source:"selection"})}),ds=he.useMemo(function(){return{virtual:Vi,dropdownMatchSelectWidth:Qr,listHeight:Ii,listItemHeight:Ci,treeData:ga,fieldNames:Yr,onSelect:So,treeExpandAction:Vr}},[Vi,Qr,Ii,Ci,ga,Yr,So,Vr]),kl=he.useMemo(function(){return{checkable:Da,loadData:dr,treeLoadedKeys:Gn,onTreeLoad:hr,checkedKeys:ea,halfCheckedKeys:Rr,treeDefaultExpandAll:vr,treeExpandedKeys:fr,treeDefaultExpandedKeys:qn,onTreeExpand:Or,treeIcon:hi,treeMotion:Xi,showTreeIcon:Oi,switcherIcon:gi,treeLine:Er,treeNodeFilterProp:dn,keyEntities:Hr}},[Da,dr,Gn,hr,ea,Rr,vr,fr,qn,Or,hi,Xi,Oi,gi,Er,dn,Hr]);return he.createElement(Ps.Provider,{value:ds},he.createElement(St.Provider,{value:kl},he.createElement(Li,(0,tt.Z)({ref:Oe},yi,{id:Zi,prefixCls:at,mode:Hi?"multiple":void 0,displayValues:yo,onDisplayValuesChange:el,searchValue:$i,onSearch:ti,OptionList:Ws,emptyOptions:!Un.length,onDropdownVisibleChange:uo,dropdownMatchSelectWidth:Qr}))))}),ol=au;ol.TreeNode=ys,ol.SHOW_ALL=Yl,ol.SHOW_PARENT=Sl,ol.SHOW_CHILD=Dl;var Vl=ol,Qs=Vl,Al=de(10366),Il=de(8745),Jl=de(33603),Ol=de(9708),Fl=de(53124),lo=de(98866),Ea=de(88258),Co=de(98675),Do=de(65223),Be=de(87244),Ie=de(13458),Ct=de(78642),Et=de(46163),$t=de(4173),hn=de(99184),kn=de(63185),Jn=de(45503),$n=de(67968),ur=de(32157);const $r=Ae=>{const{componentCls:Oe,treePrefixCls:dt,colorBgElevated:Se}=Ae,at=`.${dt}`;return[{[`${Oe}-dropdown`]:[{padding:`${Ae.paddingXS}px ${Ae.paddingXS/2}px`},(0,ur.Yk)(dt,(0,Jn.TS)(Ae,{colorBgContainer:Se})),{[at]:{borderRadius:0,[`${at}-list-holder-inner`]:{alignItems:"stretch",[`${at}-treenode`]:{[`${at}-node-content-wrapper`]:{flex:"auto"}}}}},(0,kn.C2)(`${dt}-checkbox`,Ae),{"&-rtl":{direction:"rtl",[`${at}-switcher${at}-switcher_close`]:{[`${at}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Sr(Ae,Oe){return(0,$n.Z)("TreeSelect",dt=>{const Se=(0,Jn.TS)(dt,{treePrefixCls:Oe});return[$r(Se)]},ur.TM)(Ae)}var ii=function(Ae,Oe){var dt={};for(var Se in Ae)Object.prototype.hasOwnProperty.call(Ae,Se)&&Oe.indexOf(Se)<0&&(dt[Se]=Ae[Se]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Se=Object.getOwnPropertySymbols(Ae);at<Se.length;at++)Oe.indexOf(Se[at])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Se[at])&&(dt[Se[at]]=Ae[Se[at]]);return dt};const yr=(Ae,Oe)=>{var dt,{prefixCls:Se,size:at,disabled:mt,bordered:Bt=!0,className:Ge,rootClassName:ot,treeCheckable:ut,multiple:It,listHeight:Zt=256,listItemHeight:nn=26,placement:Ht,notFoundContent:on,switcherIcon:wn,treeLine:Tn,getPopupContainer:dn,popupClassName:Xn,dropdownClassName:Pn,treeIcon:Wn=!1,transitionName:ar,choiceTransitionName:Rn="",status:br,treeExpandAction:gr,builtinPlacements:rr,dropdownMatchSelectWidth:Yn,popupMatchSelectWidth:Kn,allowClear:dr}=Ae,Gn=ii(Ae,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:hr,getPrefixCls:vr,renderEmpty:fr,direction:qn,virtual:Or,popupMatchSelectWidth:Vr,popupOverflow:Vi}=he.useContext(Fl.E_),Ni=vr(),Ii=vr("select",Se),na=vr("select-tree",Se),Ci=vr("tree-select",Se),{compactSize:ya,compactItemClassnames:Ia}=(0,$t.ri)(Ii,qn),[Qr,Er]=(0,Be.Z)(Ii),[hi]=Sr(Ci,na),Oi=xe()(Xn||Pn,`${Ci}-dropdown`,{[`${Ci}-dropdown-rtl`]:qn==="rtl"},ot,Er),gi=!!(ut||It),Xi=(0,Ct.Z)(Gn.suffixIcon,Gn.showArrow),yi=(dt=Kn!=null?Kn:Yn)!==null&&dt!==void 0?dt:Vr,{status:Zi,hasFeedback:da,isFormItemInput:Da,feedbackIcon:Ra}=he.useContext(Do.aM),Hi=(0,Ol.F)(Zi,br),{suffixIcon:Ai,removeIcon:ba,clearIcon:fa}=(0,Et.Z)(Object.assign(Object.assign({},Gn),{multiple:gi,showSuffixIcon:Xi,hasFeedback:da,feedbackIcon:Ra,prefixCls:Ii,componentName:"TreeSelect"})),aa=dr===!0?{clearIcon:fa}:dr;let qi;on!==void 0?qi=on:qi=(fr==null?void 0:fr("Select"))||he.createElement(Ea.Z,{componentName:"Select"});const Yr=(0,Al.Z)(Gn,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),Si=he.useMemo(()=>Ht!==void 0?Ht:qn==="rtl"?"bottomRight":"bottomLeft",[Ht,qn]),oa=(0,Ie.Z)(rr,Vi),$i=(0,Co.Z)(or=>{var zi;return(zi=at!=null?at:ya)!==null&&zi!==void 0?zi:or}),Fa=he.useContext(lo.Z),ti=mt!=null?mt:Fa,Un=xe()(!Se&&Ci,{[`${Ii}-lg`]:$i==="large",[`${Ii}-sm`]:$i==="small",[`${Ii}-rtl`]:qn==="rtl",[`${Ii}-borderless`]:!Bt,[`${Ii}-in-form-item`]:Da},(0,Ol.Z)(Ii,Hi,da),Ia,Ge,ot,Er),Dr=or=>he.createElement(hn.Z,{prefixCls:na,switcherIcon:wn,treeNodeProps:or,showLine:Tn}),Hr=he.createElement(Qs,Object.assign({virtual:Or,disabled:ti},Yr,{dropdownMatchSelectWidth:yi,builtinPlacements:oa,ref:Oe,prefixCls:Ii,className:Un,listHeight:Zt,listItemHeight:nn,treeCheckable:ut&&he.createElement("span",{className:`${Ii}-tree-checkbox-inner`}),treeLine:!!Tn,suffixIcon:Ai,multiple:gi,placement:Si,removeIcon:ba,allowClear:aa,switcherIcon:Dr,showTreeIcon:Wn,notFoundContent:qi,getPopupContainer:dn||hr,treeMotion:null,dropdownClassName:Oi,choiceTransitionName:(0,Jl.m)(Ni,"",Rn),transitionName:(0,Jl.m)(Ni,"slide-up",ar),treeExpandAction:gr}));return Qr(hi(Hr))},Pr=he.forwardRef(yr),ai=(0,Il.Z)(Pr);Pr.TreeNode=ys,Pr.SHOW_ALL=Yl,Pr.SHOW_PARENT=Sl,Pr.SHOW_CHILD=Dl,Pr._InternalPanelDoNotUseOrYouWillBeFired=ai;var Ei=Pr},88386:function(cn,yn,de){(function(re){re(de(4631))})(function(re){re.defineOption("placeholder","",function(Ee,ye,qe){var it=qe&&qe!=re.Init;if(ye&&!it)Ee.on("blur",Pe),Ee.on("change",Ne),Ee.on("swapDoc",Ne),re.on(Ee.getInputField(),"compositionupdate",Ee.state.placeholderCompose=function(){At(Ee)}),Ne(Ee);else if(!ye&&it){Ee.off("blur",Pe),Ee.off("change",Ne),Ee.off("swapDoc",Ne),re.off(Ee.getInputField(),"compositionupdate",Ee.state.placeholderCompose),xe(Ee);var he=Ee.getWrapperElement();he.className=he.className.replace(" CodeMirror-empty","")}ye&&!Ee.hasFocus()&&Pe(Ee)});function xe(Ee){Ee.state.placeholder&&(Ee.state.placeholder.parentNode.removeChild(Ee.state.placeholder),Ee.state.placeholder=null)}function tt(Ee){xe(Ee);var ye=Ee.state.placeholder=document.createElement("pre");ye.style.cssText="height: 0; overflow: visible",ye.style.direction=Ee.getOption("direction"),ye.className="CodeMirror-placeholder CodeMirror-line-like";var qe=Ee.getOption("placeholder");typeof qe=="string"&&(qe=document.createTextNode(qe)),ye.appendChild(qe),Ee.display.lineSpace.insertBefore(ye,Ee.display.lineSpace.firstChild)}function At(Ee){setTimeout(function(){var ye=!1,qe=Ee.getInputField();qe.nodeName=="TEXTAREA"?ye=!qe.value:Ee.lineCount()==1&&(ye=!/[^\u200b]/.test(qe.querySelector(".CodeMirror-line").textContent)),ye?tt(Ee):xe(Ee)},20)}function Pe(Ee){je(Ee)&&tt(Ee)}function Ne(Ee){var ye=Ee.getWrapperElement(),qe=je(Ee);ye.className=ye.className.replace(" CodeMirror-empty","")+(qe?" CodeMirror-empty":""),qe?tt(Ee):xe(Ee)}function je(Ee){return Ee.lineCount()===1&&Ee.getLine(0)===""}})},82801:function(cn,yn,de){(function(re){re(de(4631))})(function(re){var xe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},tt=re.Pos;re.defineOption("autoCloseBrackets",!1,function(Xe,ft,Ze){Ze&&Ze!=re.Init&&(Xe.removeKeyMap(Pe),Xe.state.closeBrackets=null),ft&&(Ne(At(ft,"pairs")),Xe.state.closeBrackets=ft,Xe.addKeyMap(Pe))});function At(Xe,ft){return ft=="pairs"&&typeof Xe=="string"?Xe:typeof Xe=="object"&&Xe[ft]!=null?Xe[ft]:xe[ft]}var Pe={Backspace:ye,Enter:qe};function Ne(Xe){for(var ft=0;ft<Xe.length;ft++){var Ze=Xe.charAt(ft),Je="'"+Ze+"'";Pe[Je]||(Pe[Je]=je(Ze))}}Ne(xe.pairs+"`");function je(Xe){return function(ft){return he(ft,Xe)}}function Ee(Xe){var ft=Xe.state.closeBrackets;if(!ft||ft.override)return ft;var Ze=Xe.getModeAt(Xe.getCursor());return Ze.closeBrackets||ft}function ye(Xe){var ft=Ee(Xe);if(!ft||Xe.getOption("disableInput"))return re.Pass;for(var Ze=At(ft,"pairs"),Je=Xe.listSelections(),et=0;et<Je.length;et++){if(!Je[et].empty())return re.Pass;var Ye=gt(Xe,Je[et].head);if(!Ye||Ze.indexOf(Ye)%2!=0)return re.Pass}for(var et=Je.length-1;et>=0;et--){var We=Je[et].head;Xe.replaceRange("",tt(We.line,We.ch-1),tt(We.line,We.ch+1),"+delete")}}function qe(Xe){var ft=Ee(Xe),Ze=ft&&At(ft,"explode");if(!Ze||Xe.getOption("disableInput"))return re.Pass;for(var Je=Xe.listSelections(),et=0;et<Je.length;et++){if(!Je[et].empty())return re.Pass;var Ye=gt(Xe,Je[et].head);if(!Ye||Ze.indexOf(Ye)%2!=0)return re.Pass}Xe.operation(function(){var We=Xe.lineSeparator()||`
|
|
|
`;Xe.replaceSelection(We+We,null),Xe.execCommand("goCharLeft"),Je=Xe.listSelections();for(var $e=0;$e<Je.length;$e++){var lt=Je[$e].head.line;Xe.indentLine(lt,null,!0),Xe.indentLine(lt+1,null,!0)}})}function it(Xe){var ft=re.cmpPos(Xe.anchor,Xe.head)>0;return{anchor:new tt(Xe.anchor.line,Xe.anchor.ch+(ft?-1:1)),head:new tt(Xe.head.line,Xe.head.ch+(ft?1:-1))}}function he(Xe,ft){var Ze=Ee(Xe);if(!Ze||Xe.getOption("disableInput"))return re.Pass;var Je=At(Ze,"pairs"),et=Je.indexOf(ft);if(et==-1)return re.Pass;for(var Ye=At(Ze,"closeBefore"),We=At(Ze,"triples"),$e=Je.charAt(et+1)==ft,lt=Xe.listSelections(),Tt=et%2==0,_t,Ot=0;Ot<lt.length;Ot++){var st=lt[Ot],ct=st.head,He,pt=Xe.getRange(ct,tt(ct.line,ct.ch+1));if(Tt&&!st.empty())He="surround";else if(($e||!Tt)&&pt==ft)$e&&kt(Xe,ct)?He="both":We.indexOf(ft)>=0&&Xe.getRange(ct,tt(ct.line,ct.ch+3))==ft+ft+ft?He="skipThree":He="skip";else if($e&&ct.ch>1&&We.indexOf(ft)>=0&&Xe.getRange(tt(ct.line,ct.ch-2),ct)==ft+ft){if(ct.ch>2&&/\bstring/.test(Xe.getTokenTypeAt(tt(ct.line,ct.ch-2))))return re.Pass;He="addFour"}else if($e){var Ve=ct.ch==0?" ":Xe.getRange(tt(ct.line,ct.ch-1),ct);if(!re.isWordChar(pt)&&Ve!=ft&&!re.isWordChar(Ve))He="both";else return re.Pass}else if(Tt&&(pt.length===0||/\s/.test(pt)||Ye.indexOf(pt)>-1))He="both";else return re.Pass;if(!_t)_t=He;else if(_t!=He)return re.Pass}var Qe=et%2?Je.charAt(et-1):ft,Fe=et%2?ft:Je.charAt(et+1);Xe.operation(function(){if(_t=="skip")Xe.execCommand("goCharRight");else if(_t=="skipThree")for(var wt=0;wt<3;wt++)Xe.execCommand("goCharRight");else if(_t=="surround"){for(var Mt=Xe.getSelections(),wt=0;wt<Mt.length;wt++)Mt[wt]=Qe+Mt[wt]+Fe;Xe.replaceSelections(Mt,"around"),Mt=Xe.listSelections().slice();for(var wt=0;wt<Mt.length;wt++)Mt[wt]=it(Mt[wt]);Xe.setSelections(Mt)}else _t=="both"?(Xe.replaceSelection(Qe+Fe,null),Xe.triggerElectric(Qe+Fe),Xe.execCommand("goCharLeft")):_t=="addFour"&&(Xe.replaceSelection(Qe+Qe+Qe+Qe,"before"),Xe.execCommand("goCharRight"))})}function gt(Xe,ft){var Ze=Xe.getRange(tt(ft.line,ft.ch-1),tt(ft.line,ft.ch+1));return Ze.length==2?Ze:null}function kt(Xe,ft){var Ze=Xe.getTokenAt(tt(ft.line,ft.ch+1));return/\bstring/.test(Ze.type)&&Ze.start==ft.ch&&(ft.ch==0||!/\bstring/.test(Xe.getTokenTypeAt(ft)))}})},57341:function(cn,yn,de){(function(re){re(de(4631),de(4786))})(function(re){re.defineOption("autoCloseTags",!1,function(ye,qe,it){if(it!=re.Init&&it&&ye.removeKeyMap("autoCloseTags"),!!qe){var he={name:"autoCloseTags"};(typeof qe!="object"||qe.whenClosing!==!1)&&(he["'/'"]=function(gt){return Ne(gt)}),(typeof qe!="object"||qe.whenOpening!==!1)&&(he["'>'"]=function(gt){return At(gt)}),ye.addKeyMap(he)}});var xe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],tt=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function At(ye){if(ye.getOption("disableInput"))return re.Pass;for(var qe=ye.listSelections(),it=[],he=ye.getOption("autoCloseTags"),gt=0;gt<qe.length;gt++){if(!qe[gt].empty())return re.Pass;var kt=qe[gt].head,Xe=ye.getTokenAt(kt),ft=re.innerMode(ye.getMode(),Xe.state),Ze=ft.state,Je=ft.mode.xmlCurrentTag&&ft.mode.xmlCurrentTag(Ze),et=Je&&Je.name;if(!et)return re.Pass;var Ye=ft.mode.configuration=="html",We=typeof he=="object"&&he.dontCloseTags||Ye&&xe,$e=typeof he=="object"&&he.indentTags||Ye&&tt;Xe.end>kt.ch&&(et=et.slice(0,et.length-Xe.end+kt.ch));var lt=et.toLowerCase();if(!et||Xe.type=="string"&&(Xe.end!=kt.ch||!/[\"\']/.test(Xe.string.charAt(Xe.string.length-1))||Xe.string.length==1)||Xe.type=="tag"&&Je.close||Xe.string.indexOf("/")==kt.ch-Xe.start-1||We&&je(We,lt)>-1||Ee(ye,ft.mode.xmlCurrentContext&&ft.mode.xmlCurrentContext(Ze)||[],et,kt,!0))return re.Pass;var Tt=typeof he=="object"&&he.emptyTags;if(Tt&&je(Tt,et)>-1){it[gt]={text:"/>",newPos:re.Pos(kt.line,kt.ch+2)};continue}var _t=$e&&je($e,lt)>-1;it[gt]={indent:_t,text:">"+(_t?`
|
|
|
|
|
|
`:"")+"</"+et+">",newPos:_t?re.Pos(kt.line+1,0):re.Pos(kt.line,kt.ch+1)}}for(var Ot=typeof he=="object"&&he.dontIndentOnAutoClose,gt=qe.length-1;gt>=0;gt--){var st=it[gt];ye.replaceRange(st.text,qe[gt].head,qe[gt].anchor,"+insert");var ct=ye.listSelections().slice(0);ct[gt]={head:st.newPos,anchor:st.newPos},ye.setSelections(ct),!Ot&&st.indent&&(ye.indentLine(st.newPos.line,null,!0),ye.indentLine(st.newPos.line+1,null,!0))}}function Pe(ye,qe){for(var it=ye.listSelections(),he=[],gt=qe?"/":"</",kt=ye.getOption("autoCloseTags"),Xe=typeof kt=="object"&&kt.dontIndentOnSlash,ft=0;ft<it.length;ft++){if(!it[ft].empty())return re.Pass;var Ze=it[ft].head,Je=ye.getTokenAt(Ze),et=re.innerMode(ye.getMode(),Je.state),Ye=et.state;if(qe&&(Je.type=="string"||Je.string.charAt(0)!="<"||Je.start!=Ze.ch-1))return re.Pass;var We,$e=et.mode.name!="xml"&&ye.getMode().name=="htmlmixed";if($e&&et.mode.name=="javascript")We=gt+"script";else if($e&&et.mode.name=="css")We=gt+"style";else{var lt=et.mode.xmlCurrentContext&&et.mode.xmlCurrentContext(Ye);if(!lt||lt.length&&Ee(ye,lt,lt[lt.length-1],Ze))return re.Pass;We=gt+lt[lt.length-1]}ye.getLine(Ze.line).charAt(Je.end)!=">"&&(We+=">"),he[ft]=We}if(ye.replaceSelections(he),it=ye.listSelections(),!Xe)for(var ft=0;ft<it.length;ft++)(ft==it.length-1||it[ft].head.line<it[ft+1].head.line)&&ye.indentLine(it[ft].head.line)}function Ne(ye){return ye.getOption("disableInput")?re.Pass:Pe(ye,!0)}re.commands.closeTag=function(ye){return Pe(ye)};function je(ye,qe){if(ye.indexOf)return ye.indexOf(qe);for(var it=0,he=ye.length;it<he;++it)if(ye[it]==qe)return it;return-1}function Ee(ye,qe,it,he,gt){if(!re.scanForClosingTag)return!1;var kt=Math.min(ye.lastLine()+1,he.line+500),Xe=re.scanForClosingTag(ye,he,null,kt);if(!Xe||Xe.tag!=it)return!1;for(var ft=gt?1:0,Ze=qe.length-1;Ze>=0&&qe[Ze]==it;Ze--)++ft;he=Xe.to;for(var Ze=1;Ze<ft;Ze++){var Je=re.scanForClosingTag(ye,he,null,kt);if(!Je||Je.tag!=it)return!1;he=Je.to}return!0}})},4786:function(cn,yn,de){(function(re){re(de(4631))})(function(re){"use strict";var xe=re.Pos;function tt(Ze,Je){return Ze.line-Je.line||Ze.ch-Je.ch}var At="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Pe=At+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ne=new RegExp("<(/?)(["+At+"]["+Pe+"]*)","g");function je(Ze,Je,et,Ye){this.line=Je,this.ch=et,this.cm=Ze,this.text=Ze.getLine(Je),this.min=Ye?Math.max(Ye.from,Ze.firstLine()):Ze.firstLine(),this.max=Ye?Math.min(Ye.to-1,Ze.lastLine()):Ze.lastLine()}function Ee(Ze,Je){var et=Ze.cm.getTokenTypeAt(xe(Ze.line,Je));return et&&/\btag\b/.test(et)}function ye(Ze){if(!(Ze.line>=Ze.max))return Ze.ch=0,Ze.text=Ze.cm.getLine(++Ze.line),!0}function qe(Ze){if(!(Ze.line<=Ze.min))return Ze.text=Ze.cm.getLine(--Ze.line),Ze.ch=Ze.text.length,!0}function it(Ze){for(;;){var Je=Ze.text.indexOf(">",Ze.ch);if(Je==-1){if(ye(Ze))continue;return}if(!Ee(Ze,Je+1)){Ze.ch=Je+1;continue}var et=Ze.text.lastIndexOf("/",Je),Ye=et>-1&&!/\S/.test(Ze.text.slice(et+1,Je));return Ze.ch=Je+1,Ye?"selfClose":"regular"}}function he(Ze){for(;;){var Je=Ze.ch?Ze.text.lastIndexOf("<",Ze.ch-1):-1;if(Je==-1){if(qe(Ze))continue;return}if(!Ee(Ze,Je+1)){Ze.ch=Je;continue}Ne.lastIndex=Je,Ze.ch=Je;var et=Ne.exec(Ze.text);if(et&&et.index==Je)return et}}function gt(Ze){for(;;){Ne.lastIndex=Ze.ch;var Je=Ne.exec(Ze.text);if(!Je){if(ye(Ze))continue;return}if(!Ee(Ze,Je.index+1)){Ze.ch=Je.index+1;continue}return Ze.ch=Je.index+Je[0].length,Je}}function kt(Ze){for(;;){var Je=Ze.ch?Ze.text.lastIndexOf(">",Ze.ch-1):-1;if(Je==-1){if(qe(Ze))continue;return}if(!Ee(Ze,Je+1)){Ze.ch=Je;continue}var et=Ze.text.lastIndexOf("/",Je),Ye=et>-1&&!/\S/.test(Ze.text.slice(et+1,Je));return Ze.ch=Je+1,Ye?"selfClose":"regular"}}function Xe(Ze,Je){for(var et=[];;){var Ye=gt(Ze),We,$e=Ze.line,lt=Ze.ch-(Ye?Ye[0].length:0);if(!Ye||!(We=it(Ze)))return;if(We!="selfClose")if(Ye[1]){for(var Tt=et.length-1;Tt>=0;--Tt)if(et[Tt]==Ye[2]){et.length=Tt;break}if(Tt<0&&(!Je||Je==Ye[2]))return{tag:Ye[2],from:xe($e,lt),to:xe(Ze.line,Ze.ch)}}else et.push(Ye[2])}}function ft(Ze,Je){for(var et=[];;){var Ye=kt(Ze);if(!Ye)return;if(Ye=="selfClose"){he(Ze);continue}var We=Ze.line,$e=Ze.ch,lt=he(Ze);if(!lt)return;if(lt[1])et.push(lt[2]);else{for(var Tt=et.length-1;Tt>=0;--Tt)if(et[Tt]==lt[2]){et.length=Tt;break}if(Tt<0&&(!Je||Je==lt[2]))return{tag:lt[2],from:xe(Ze.line,Ze.ch),to:xe(We,$e)}}}}re.registerHelper("fold","xml",function(Ze,Je){for(var et=new je(Ze,Je.line,0);;){var Ye=gt(et);if(!Ye||et.line!=Je.line)return;var We=it(et);if(!We)return;if(!Ye[1]&&We!="selfClose"){var $e=xe(et.line,et.ch),lt=Xe(et,Ye[2]);return lt&&tt(lt.from,$e)>0?{from:$e,to:lt.from}:null}}}),re.findMatchingTag=function(Ze,Je,et){var Ye=new je(Ze,Je.line,Je.ch,et);if(!(Ye.text.indexOf(">")==-1&&Ye.text.indexOf("<")==-1)){var We=it(Ye),$e=We&&xe(Ye.line,Ye.ch),lt=We&&he(Ye);if(!(!We||!lt||tt(Ye,Je)>0)){var Tt={from:xe(Ye.line,Ye.ch),to:$e,tag:lt[2]};return We=="selfClose"?{open:Tt,close:null,at:"open"}:lt[1]?{open:ft(Ye,lt[2]),close:Tt,at:"close"}:(Ye=new je(Ze,$e.line,$e.ch,et),{open:Tt,close:Xe(Ye,lt[2]),at:"open"})}}},re.findEnclosingTag=function(Ze,Je,et,Ye){for(var We=new je(Ze,Je.line,Je.ch,et);;){var $e=ft(We,Ye);if(!$e)break;var lt=new je(Ze,Je.line,Je.ch,et),Tt=Xe(lt,$e.tag);if(Tt)return{open:$e,close:Tt}}},re.scanForClosingTag=function(Ze,Je,et,Ye){var We=new je(Ze,Je.line,Je.ch,Ye?{from:0,to:Ye}:null);return Xe(We,et)}})},4631:function(cn){(function(yn,de){cn.exports=de()})(this,function(){"use strict";var yn=navigator.userAgent,de=navigator.platform,re=/gecko\/\d/i.test(yn),xe=/MSIE \d/.test(yn),tt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(yn),At=/Edge\/(\d+)/.exec(yn),Pe=xe||tt||At,Ne=Pe&&(xe?document.documentMode||6:+(At||tt)[1]),je=!At&&/WebKit\//.test(yn),Ee=je&&/Qt\/\d+\.\d+/.test(yn),ye=!At&&/Chrome\//.test(yn),qe=/Opera\//.test(yn),it=/Apple Computer/.test(navigator.vendor),he=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(yn),gt=/PhantomJS/.test(yn),kt=!At&&/AppleWebKit/.test(yn)&&/Mobile\/\w+/.test(yn),Xe=/Android/.test(yn),ft=kt||Xe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(yn),Ze=kt||/Mac/.test(de),Je=/\bCrOS\b/.test(yn),et=/win/i.test(de),Ye=qe&&yn.match(/Version\/(\d*\.\d*)/);Ye&&(Ye=Number(Ye[1])),Ye&&Ye>=15&&(qe=!1,je=!0);var We=Ze&&(Ee||qe&&(Ye==null||Ye<12.11)),$e=re||Pe&&Ne>=9;function lt(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var Tt=function(x,z){var ne=x.className,te=lt(z).exec(ne);if(te){var ae=ne.slice(te.index+te[0].length);x.className=ne.slice(0,te.index)+(ae?te[1]+ae:"")}};function _t(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function Ot(x,z){return _t(x).appendChild(z)}function st(x,z,ne,te){var ae=document.createElement(x);if(ne&&(ae.className=ne),te&&(ae.style.cssText=te),typeof z=="string")ae.appendChild(document.createTextNode(z));else if(z)for(var ce=0;ce<z.length;++ce)ae.appendChild(z[ce]);return ae}function ct(x,z,ne,te){var ae=st(x,z,ne,te);return ae.setAttribute("role","presentation"),ae}var He;document.createRange?He=function(x,z,ne,te){var ae=document.createRange();return ae.setEnd(te||x,ne),ae.setStart(x,z),ae}:He=function(x,z,ne){var te=document.body.createTextRange();try{te.moveToElementText(x.parentNode)}catch(ae){return te}return te.collapse(!0),te.moveEnd("character",ne),te.moveStart("character",z),te};function pt(x,z){if(z.nodeType==3&&(z=z.parentNode),x.contains)return x.contains(z);do if(z.nodeType==11&&(z=z.host),z==x)return!0;while(z=z.parentNode)}function Ve(){var x;try{x=document.activeElement}catch(z){x=document.body||null}for(;x&&x.shadowRoot&&x.shadowRoot.activeElement;)x=x.shadowRoot.activeElement;return x}function Qe(x,z){var ne=x.className;lt(z).test(ne)||(x.className+=(ne?" ":"")+z)}function Fe(x,z){for(var ne=x.split(" "),te=0;te<ne.length;te++)ne[te]&&!lt(ne[te]).test(z)&&(z+=" "+ne[te]);return z}var wt=function(x){x.select()};kt?wt=function(x){x.selectionStart=0,x.selectionEnd=x.value.length}:Pe&&(wt=function(x){try{x.select()}catch(z){}});function Mt(x){var z=Array.prototype.slice.call(arguments,1);return function(){return x.apply(null,z)}}function jt(x,z,ne){z||(z={});for(var te in x)x.hasOwnProperty(te)&&(ne!==!1||!z.hasOwnProperty(te))&&(z[te]=x[te]);return z}function Re(x,z,ne,te,ae){z==null&&(z=x.search(/[^\s\u00a0]/),z==-1&&(z=x.length));for(var ce=te||0,ve=ae||0;;){var Me=x.indexOf(" ",ce);if(Me<0||Me>=z)return ve+(z-ce);ve+=Me-ce,ve+=ne-ve%ne,ce=Me+1}}var Le=function(){this.id=null,this.f=null,this.time=0,this.handler=Mt(this.onTimeout,this)};Le.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},Le.prototype.set=function(x,z){this.f=z;var ne=+new Date+x;(!this.id||ne<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,x),this.time=ne)};function Nt(x,z){for(var ne=0;ne<x.length;++ne)if(x[ne]==z)return ne;return-1}var Rt=50,Yt={toString:function(){return"CodeMirror.Pass"}},vt={scroll:!1},nt={origin:"*mouse"},Vt={origin:"+move"};function un(x,z,ne){for(var te=0,ae=0;;){var ce=x.indexOf(" ",te);ce==-1&&(ce=x.length);var ve=ce-te;if(ce==x.length||ae+ve>=z)return te+Math.min(ve,z-ae);if(ae+=ce-te,ae+=ne-ae%ne,te=ce+1,ae>=z)return te}}var Ut=[""];function fn(x){for(;Ut.length<=x;)Ut.push(en(Ut)+" ");return Ut[x]}function en(x){return x[x.length-1]}function En(x,z){for(var ne=[],te=0;te<x.length;te++)ne[te]=z(x[te],te);return ne}function _n(x,z,ne){for(var te=0,ae=ne(z);te<x.length&&ne(x[te])<=ae;)te++;x.splice(te,0,z)}function Ce(){}function se(x,z){var ne;return Object.create?ne=Object.create(x):(Ce.prototype=x,ne=new Ce),z&&jt(z,ne),ne}var ue=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ge(x){return/\w/.test(x)||x>"\x80"&&(x.toUpperCase()!=x.toLowerCase()||ue.test(x))}function pe(x,z){return z?z.source.indexOf("\\w")>-1&&ge(x)?!0:z.test(x):ge(x)}function le(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var ze=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function bt(x){return x.charCodeAt(0)>=768&&ze.test(x)}function Pt(x,z,ne){for(;(ne<0?z>0:z<x.length)&&bt(x.charAt(z));)z+=ne;return z}function mn(x,z,ne){for(var te=z>ne?-1:1;;){if(z==ne)return z;var ae=(z+ne)/2,ce=te<0?Math.ceil(ae):Math.floor(ae);if(ce==z)return x(ce)?z:ne;x(ce)?ne=ce:z=ce+te}}function ln(x,z,ne,te){if(!x)return te(z,ne,"ltr",0);for(var ae=!1,ce=0;ce<x.length;++ce){var ve=x[ce];(ve.from<ne&&ve.to>z||z==ne&&ve.to==z)&&(te(Math.max(ve.from,z),Math.min(ve.to,ne),ve.level==1?"rtl":"ltr",ce),ae=!0)}ae||te(z,ne,"ltr")}var Xt=null;function Kt(x,z,ne){var te;Xt=null;for(var ae=0;ae<x.length;++ae){var ce=x[ae];if(ce.from<z&&ce.to>z)return ae;ce.to==z&&(ce.from!=ce.to&&ne=="before"?te=ae:Xt=ae),ce.from==z&&(ce.from!=ce.to&&ne!="before"?te=ae:Xt=ae)}return te!=null?te:Xt}var sr=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(_e){return _e<=247?x.charAt(_e):1424<=_e&&_e<=1524?"R":1536<=_e&&_e<=1785?z.charAt(_e-1536):1774<=_e&&_e<=2220?"r":8192<=_e&&_e<=8203?"w":_e==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ae=/[stwN]/,ce=/[LRr]/,ve=/[Lb1n]/,Me=/[1n]/;function De(_e,yt,Lt){this.level=_e,this.from=yt,this.to=Lt}return function(_e,yt){var Lt=yt=="ltr"?"L":"R";if(_e.length==0||yt=="ltr"&&!te.test(_e))return!1;for(var pn=_e.length,sn=[],jn=0;jn<pn;++jn)sn.push(ne(_e.charCodeAt(jn)));for(var pr=0,Zr=Lt;pr<pn;++pr){var ui=sn[pr];ui=="m"?sn[pr]=Zr:Zr=ui}for(var xi=0,ni=Lt;xi<pn;++xi){var ki=sn[xi];ki=="1"&&ni=="r"?sn[xi]="n":ce.test(ki)&&(ni=ki,ki=="r"&&(sn[xi]="R"))}for(var sa=1,ha=sn[0];sa<pn-1;++sa){var Ya=sn[sa];Ya=="+"&&ha=="1"&&sn[sa+1]=="1"?sn[sa]="1":Ya==","&&ha==sn[sa+1]&&(ha=="1"||ha=="n")&&(sn[sa]=ha),ha=Ya}for(var Po=0;Po<pn;++Po){var nl=sn[Po];if(nl==",")sn[Po]="N";else if(nl=="%"){var hs=void 0;for(hs=Po+1;hs<pn&&sn[hs]=="%";++hs);for(var Ll=Po&&sn[Po-1]=="!"||hs<pn&&sn[hs]=="1"?"1":"N",Tl=Po;Tl<hs;++Tl)sn[Tl]=Ll;Po=hs-1}}for(var Vs=0,Pl=Lt;Vs<pn;++Vs){var Pa=sn[Vs];Pl=="L"&&Pa=="1"?sn[Vs]="L":ce.test(Pa)&&(Pl=Pa)}for(var Ss=0;Ss<pn;++Ss)if(ae.test(sn[Ss])){var ps=void 0;for(ps=Ss+1;ps<pn&&ae.test(sn[ps]);++ps);for(var As=(Ss?sn[Ss-1]:Lt)=="L",Is=(ps<pn?sn[ps]:Lt)=="L",ic=As==Is?As?"L":"R":Lt,Kl=Ss;Kl<ps;++Kl)sn[Kl]=ic;Ss=ps-1}for(var ul=[],bo,Ys=0;Ys<pn;)if(ve.test(sn[Ys])){var rd=Ys;for(++Ys;Ys<pn&&ve.test(sn[Ys]);++Ys);ul.push(new De(0,rd,Ys))}else{var Fu=Ys,Wu=ul.length,wu=yt=="rtl"?1:0;for(++Ys;Ys<pn&&sn[Ys]!="L";++Ys);for(var Us=Fu;Us<Ys;)if(Me.test(sn[Us])){Fu<Us&&(ul.splice(Wu,0,new De(1,Fu,Us)),Wu+=wu);var ac=Us;for(++Us;Us<Ys&&Me.test(sn[Us]);++Us);ul.splice(Wu,0,new De(2,ac,Us)),Wu+=wu,Fu=Us}else++Us;Fu<Ys&&ul.splice(Wu,0,new De(1,Fu,Ys))}return yt=="ltr"&&(ul[0].level==1&&(bo=_e.match(/^\s+/))&&(ul[0].from=bo[0].length,ul.unshift(new De(0,0,bo[0].length))),en(ul).level==1&&(bo=_e.match(/\s+$/))&&(en(ul).to-=bo[0].length,ul.push(new De(0,pn-bo[0].length,pn)))),yt=="rtl"?ul.reverse():ul}}();function mr(x,z){var ne=x.order;return ne==null&&(ne=x.order=sr(x.text,z)),ne}var Gt=[],rn=function(x,z,ne){if(x.addEventListener)x.addEventListener(z,ne,!1);else if(x.attachEvent)x.attachEvent("on"+z,ne);else{var te=x._handlers||(x._handlers={});te[z]=(te[z]||Gt).concat(ne)}};function Jr(x,z){return x._handlers&&x._handlers[z]||Gt}function _r(x,z,ne){if(x.removeEventListener)x.removeEventListener(z,ne,!1);else if(x.detachEvent)x.detachEvent("on"+z,ne);else{var te=x._handlers,ae=te&&te[z];if(ae){var ce=Nt(ae,ne);ce>-1&&(te[z]=ae.slice(0,ce).concat(ae.slice(ce+1)))}}}function xr(x,z){var ne=Jr(x,z);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),ae=0;ae<ne.length;++ae)ne[ae].apply(null,te)}function wr(x,z,ne){return typeof z=="string"&&(z={type:z,preventDefault:function(){this.defaultPrevented=!0}}),xr(x,ne||z.type,x,z),pi(z)||z.codemirrorIgnore}function Ji(x){var z=x._handlers&&x._handlers.cursorActivity;if(z)for(var ne=x.curOp.cursorActivityHandlers||(x.curOp.cursorActivityHandlers=[]),te=0;te<z.length;++te)Nt(ne,z[te])==-1&&ne.push(z[te])}function Ir(x,z){return Jr(x,z).length>0}function Wr(x){x.prototype.on=function(z,ne){rn(this,z,ne)},x.prototype.off=function(z,ne){_r(this,z,ne)}}function Tr(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function si(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function pi(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function Wi(x){Tr(x),si(x)}function bi(x){return x.target||x.srcElement}function kr(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),Ze&&x.ctrlKey&&z==1&&(z=3),z}var an=function(){if(Pe&&Ne<9)return!1;var x=st("div");return"draggable"in x||"dragDrop"in x}(),Nn;function On(x){if(Nn==null){var z=st("span","\u200B");Ot(x,st("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(Nn=z.offsetWidth<=1&&z.offsetHeight>2&&!(Pe&&Ne<8))}var ne=Nn?st("span","\u200B"):st("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var Dn;function Mr(x){if(Dn!=null)return Dn;var z=Ot(x,document.createTextNode("A\u062EA")),ne=He(z,0,1).getBoundingClientRect(),te=He(z,1,2).getBoundingClientRect();return _t(x),!ne||ne.left==ne.right?!1:Dn=te.right-ne.right<3}var vn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(x){for(var z=0,ne=[],te=x.length;z<=te;){var ae=x.indexOf(`
|
|
|
`,z);ae==-1&&(ae=x.length);var ce=x.slice(z,x.charAt(ae-1)=="\r"?ae-1:ae),ve=ce.indexOf("\r");ve!=-1?(ne.push(ce.slice(0,ve)),z+=ve+1):(ne.push(ce),z=ae+1)}return ne}:function(x){return x.split(/\r\n?|\n/)},Vn=window.getSelection?function(x){try{return x.selectionStart!=x.selectionEnd}catch(z){return!1}}:function(x){var z;try{z=x.ownerDocument.selection.createRange()}catch(ne){}return!z||z.parentElement()!=x?!1:z.compareEndPoints("StartToEnd",z)!=0},Xr=function(){var x=st("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),fi=null;function er(x){if(fi!=null)return fi;var z=Ot(x,st("span","x")),ne=z.getBoundingClientRect(),te=He(z,0,1).getBoundingClientRect();return fi=Math.abs(ne.left-te.left)>1}var ia={},Gi={};function Br(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),ia[x]=z}function lr(x,z){Gi[x]=z}function qr(x){if(typeof x=="string"&&Gi.hasOwnProperty(x))x=Gi[x];else if(x&&typeof x.name=="string"&&Gi.hasOwnProperty(x.name)){var z=Gi[x.name];typeof z=="string"&&(z={name:z}),x=se(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return qr("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return qr("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function xa(x,z){z=qr(z);var ne=ia[z.name];if(!ne)return xa(x,"text/plain");var te=ne(x,z);if(vi.hasOwnProperty(z.name)){var ae=vi[z.name];for(var ce in ae)ae.hasOwnProperty(ce)&&(te.hasOwnProperty(ce)&&(te["_"+ce]=te[ce]),te[ce]=ae[ce])}if(te.name=z.name,z.helperType&&(te.helperType=z.helperType),z.modeProps)for(var ve in z.modeProps)te[ve]=z.modeProps[ve];return te}var vi={};function ca(x,z){var ne=vi.hasOwnProperty(x)?vi[x]:vi[x]={};jt(z,ne)}function li(x,z){if(z===!0)return z;if(x.copyState)return x.copyState(z);var ne={};for(var te in z){var ae=z[te];ae instanceof Array&&(ae=ae.concat([])),ne[te]=ae}return ne}function wi(x,z){for(var ne;x.innerMode&&(ne=x.innerMode(z),!(!ne||ne.mode==x));)z=ne.state,x=ne.mode;return ne||{mode:x,state:z}}function Li(x,z,ne){return x.startState?x.startState(z,ne):!0}var oi=function(x,z,ne){this.pos=this.start=0,this.string=x,this.tabSize=z||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ne};oi.prototype.eol=function(){return this.pos>=this.string.length},oi.prototype.sol=function(){return this.pos==this.lineStart},oi.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},oi.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},oi.prototype.eat=function(x){var z=this.string.charAt(this.pos),ne;if(typeof x=="string"?ne=z==x:ne=z&&(x.test?x.test(z):x(z)),ne)return++this.pos,z},oi.prototype.eatWhile=function(x){for(var z=this.pos;this.eat(x););return this.pos>z},oi.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},oi.prototype.skipToEnd=function(){this.pos=this.string.length},oi.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},oi.prototype.backUp=function(x){this.pos-=x},oi.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Re(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Re(this.string,this.lineStart,this.tabSize):0)},oi.prototype.indentation=function(){return Re(this.string,null,this.tabSize)-(this.lineStart?Re(this.string,this.lineStart,this.tabSize):0)},oi.prototype.match=function(x,z,ne){if(typeof x=="string"){var te=function(ve){return ne?ve.toLowerCase():ve},ae=this.string.substr(this.pos,x.length);if(te(ae)==te(x))return z!==!1&&(this.pos+=x.length),!0}else{var ce=this.string.slice(this.pos).match(x);return ce&&ce.index>0?null:(ce&&z!==!1&&(this.pos+=ce[0].length),ce)}},oi.prototype.current=function(){return this.string.slice(this.start,this.pos)},oi.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},oi.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},oi.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function ir(x,z){if(z-=x.first,z<0||z>=x.size)throw new Error("There is no line "+(z+x.first)+" in the document.");for(var ne=x;!ne.lines;)for(var te=0;;++te){var ae=ne.children[te],ce=ae.chunkSize();if(z<ce){ne=ae;break}z-=ce}return ne.lines[z]}function Aa(x,z,ne){var te=[],ae=z.line;return x.iter(z.line,ne.line+1,function(ce){var ve=ce.text;ae==ne.line&&(ve=ve.slice(0,ne.ch)),ae==z.line&&(ve=ve.slice(z.ch)),te.push(ve),++ae}),te}function Ka(x,z,ne){var te=[];return x.iter(z,ne,function(ae){te.push(ae.text)}),te}function Ca(x,z){var ne=z-x.height;if(ne)for(var te=x;te;te=te.parent)te.height+=ne}function va(x){if(x.parent==null)return null;for(var z=x.parent,ne=Nt(z.lines,x),te=z.parent;te;z=te,te=te.parent)for(var ae=0;te.children[ae]!=z;++ae)ne+=te.children[ae].chunkSize();return ne+z.first}function mo(x,z){var ne=x.first;e:do{for(var te=0;te<x.children.length;++te){var ae=x.children[te],ce=ae.height;if(z<ce){x=ae;continue e}z-=ce,ne+=ae.chunkSize()}return ne}while(!x.lines);for(var ve=0;ve<x.lines.length;++ve){var Me=x.lines[ve],De=Me.height;if(z<De)break;z-=De}return ne+ve}function ja(x,z){return z>=x.first&&z<x.first+x.size}function wa(x,z){return String(x.lineNumberFormatter(z+x.firstLineNumber))}function Qn(x,z,ne){if(ne===void 0&&(ne=null),!(this instanceof Qn))return new Qn(x,z,ne);this.line=x,this.ch=z,this.sticky=ne}function Ri(x,z){return x.line-z.line||x.ch-z.ch}function Ms(x,z){return x.sticky==z.sticky&&Ri(x,z)==0}function ms(x){return Qn(x.line,x.ch)}function Oo(x,z){return Ri(x,z)<0?z:x}function io(x,z){return Ri(x,z)<0?x:z}function rl(x,z){return Math.max(x.first,Math.min(z,x.first+x.size-1))}function ma(x,z){if(z.line<x.first)return Qn(x.first,0);var ne=x.first+x.size-1;return z.line>ne?Qn(ne,ir(x,ne).text.length):il(z,ir(x,z.line).text.length)}function il(x,z){var ne=x.ch;return ne==null||ne>z?Qn(x.line,z):ne<0?Qn(x.line,0):x}function zn(x,z){for(var ne=[],te=0;te<z.length;te++)ne[te]=ma(x,z[te]);return ne}var wo=function(x,z){this.state=x,this.lookAhead=z},Ro=function(x,z,ne,te){this.state=z,this.doc=x,this.line=ne,this.maxLookAhead=te||0,this.baseTokens=null,this.baseTokenPos=1};Ro.prototype.lookAhead=function(x){var z=this.doc.getLine(this.line+x);return z!=null&&x>this.maxLookAhead&&(this.maxLookAhead=x),z},Ro.prototype.baseToken=function(x){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=x;)this.baseTokenPos+=2;var z=this.baseTokens[this.baseTokenPos+1];return{type:z&&z.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-x}},Ro.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ro.fromSaved=function(x,z,ne){return z instanceof wo?new Ro(x,li(x.mode,z.state),ne,z.lookAhead):new Ro(x,li(x.mode,z),ne)},Ro.prototype.save=function(x){var z=x!==!1?li(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new wo(z,this.maxLookAhead):z};function _s(x,z,ne,te){var ae=[x.state.modeGen],ce={};Bl(x,z.text,x.doc.mode,ne,function(_e,yt){return ae.push(_e,yt)},ce,te);for(var ve=ne.state,Me=function(_e){ne.baseTokens=ae;var yt=x.state.overlays[_e],Lt=1,pn=0;ne.state=!0,Bl(x,z.text,yt.mode,ne,function(sn,jn){for(var pr=Lt;pn<sn;){var Zr=ae[Lt];Zr>sn&&ae.splice(Lt,1,sn,ae[Lt+1],Zr),Lt+=2,pn=Math.min(sn,Zr)}if(jn)if(yt.opaque)ae.splice(pr,Lt-pr,sn,"overlay "+jn),Lt=pr+2;else for(;pr<Lt;pr+=2){var ui=ae[pr+1];ae[pr+1]=(ui?ui+" ":"")+"overlay "+jn}},ce),ne.state=ve,ne.baseTokens=null,ne.baseTokenPos=1},De=0;De<x.state.overlays.length;++De)Me(De);return{styles:ae,classes:ce.bgClass||ce.textClass?ce:null}}function gs(x,z,ne){if(!z.styles||z.styles[0]!=x.state.modeGen){var te=Uo(x,va(z)),ae=z.text.length>x.options.maxHighlightLength&&li(x.doc.mode,te.state),ce=_s(x,z,te);ae&&(te.state=ae),z.stateAfter=te.save(!ae),z.styles=ce.styles,ce.classes?z.styleClasses=ce.classes:z.styleClasses&&(z.styleClasses=null),ne===x.doc.highlightFrontier&&(x.doc.modeFrontier=Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return z.styles}function Uo(x,z,ne){var te=x.doc,ae=x.display;if(!te.mode.startState)return new Ro(te,!0,z);var ce=vs(x,z,ne),ve=ce>te.first&&ir(te,ce-1).stateAfter,Me=ve?Ro.fromSaved(te,ve,ce):new Ro(te,Li(te.mode),ce);return te.iter(ce,z,function(De){is(x,De.text,Me);var _e=Me.line;De.stateAfter=_e==z-1||_e%5==0||_e>=ae.viewFrom&&_e<ae.viewTo?Me.save():null,Me.nextLine()}),ne&&(te.modeFrontier=Me.line),Me}function is(x,z,ne,te){var ae=x.doc.mode,ce=new oi(z,x.options.tabSize,ne);for(ce.start=ce.pos=te||0,z==""&&Ks(ae,ne.state);!ce.eol();)Eo(ae,ce,ne.state),ce.start=ce.pos}function Ks(x,z){if(x.blankLine)return x.blankLine(z);if(x.innerMode){var ne=wi(x,z);if(ne.mode.blankLine)return ne.mode.blankLine(ne.state)}}function Eo(x,z,ne,te){for(var ae=0;ae<10;ae++){te&&(te[0]=wi(x,ne).mode);var ce=x.token(z,ne);if(z.pos>z.start)return ce}throw new Error("Mode "+x.name+" failed to advance stream.")}var jo=function(x,z,ne){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=ne};function Oa(x,z,ne,te){var ae=x.doc,ce=ae.mode,ve;z=ma(ae,z);var Me=ir(ae,z.line),De=Uo(x,z.line,ne),_e=new oi(Me.text,x.options.tabSize,De),yt;for(te&&(yt=[]);(te||_e.pos<z.ch)&&!_e.eol();)_e.start=_e.pos,ve=Eo(ce,_e,De.state),te&&yt.push(new jo(_e,ve,li(ae.mode,De.state)));return te?yt:new jo(_e,ve,De.state)}function $o(x,z){if(x)for(;;){var ne=x.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ne)break;x=x.slice(0,ne.index)+x.slice(ne.index+ne[0].length);var te=ne[1]?"bgClass":"textClass";z[te]==null?z[te]=ne[2]:new RegExp("(?:^|\\s)"+ne[2]+"(?:$|\\s)").test(z[te])||(z[te]+=" "+ne[2])}return x}function Bl(x,z,ne,te,ae,ce,ve){var Me=ne.flattenSpans;Me==null&&(Me=x.options.flattenSpans);var De=0,_e=null,yt=new oi(z,x.options.tabSize,te),Lt,pn=x.options.addModeClass&&[null];for(z==""&&$o(Ks(ne,te.state),ce);!yt.eol();){if(yt.pos>x.options.maxHighlightLength?(Me=!1,ve&&is(x,z,te,yt.pos),yt.pos=z.length,Lt=null):Lt=$o(Eo(ne,yt,te.state,pn),ce),pn){var sn=pn[0].name;sn&&(Lt="m-"+(Lt?sn+" "+Lt:sn))}if(!Me||_e!=Lt){for(;De<yt.start;)De=Math.min(yt.start,De+5e3),ae(De,_e);_e=Lt}yt.start=yt.pos}for(;De<yt.pos;){var jn=Math.min(yt.pos,De+5e3);ae(jn,_e),De=jn}}function vs(x,z,ne){for(var te,ae,ce=x.doc,ve=ne?-1:z-(x.doc.mode.innerMode?1e3:100),Me=z;Me>ve;--Me){if(Me<=ce.first)return ce.first;var De=ir(ce,Me-1),_e=De.stateAfter;if(_e&&(!ne||Me+(_e instanceof wo?_e.lookAhead:0)<=ce.modeFrontier))return Me;var yt=Re(De.text,null,x.options.tabSize);(ae==null||te>yt)&&(ae=Me-1,te=yt)}return ae}function al(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontier<z-10)){for(var ne=x.first,te=z-1;te>ne;te--){var ae=ir(x,te).stateAfter;if(ae&&(!(ae instanceof wo)||te+ae.lookAhead<z)){ne=te+1;break}}x.highlightFrontier=Math.min(x.highlightFrontier,ne)}}var es=!1,$a=!1;function Bs(){es=!0}function Xs(){$a=!0}function as(x,z,ne){this.marker=x,this.from=z,this.to=ne}function pl(x,z){if(x)for(var ne=0;ne<x.length;++ne){var te=x[ne];if(te.marker==z)return te}}function os(x,z){for(var ne,te=0;te<x.length;++te)x[te]!=z&&(ne||(ne=[])).push(x[te]);return ne}function ss(x,z){x.markedSpans=x.markedSpans?x.markedSpans.concat([z]):[z],z.marker.attachLine(x)}function Hs(x,z,ne){var te;if(x)for(var ae=0;ae<x.length;++ae){var ce=x[ae],ve=ce.marker,Me=ce.from==null||(ve.inclusiveLeft?ce.from<=z:ce.from<z);if(Me||ce.from==z&&ve.type=="bookmark"&&(!ne||!ce.marker.insertLeft)){var De=ce.to==null||(ve.inclusiveRight?ce.to>=z:ce.to>z);(te||(te=[])).push(new as(ve,ce.from,De?null:ce.to))}}return te}function qs(x,z,ne){var te;if(x)for(var ae=0;ae<x.length;++ae){var ce=x[ae],ve=ce.marker,Me=ce.to==null||(ve.inclusiveRight?ce.to>=z:ce.to>z);if(Me||ce.from==z&&ve.type=="bookmark"&&(!ne||ce.marker.insertLeft)){var De=ce.from==null||(ve.inclusiveLeft?ce.from<=z:ce.from<z);(te||(te=[])).push(new as(ve,De?null:ce.from-z,ce.to==null?null:ce.to-z))}}return te}function Ga(x,z){if(z.full)return null;var ne=ja(x,z.from.line)&&ir(x,z.from.line).markedSpans,te=ja(x,z.to.line)&&ir(x,z.to.line).markedSpans;if(!ne&&!te)return null;var ae=z.from.ch,ce=z.to.ch,ve=Ri(z.from,z.to)==0,Me=Hs(ne,ae,ve),De=qs(te,ce,ve),_e=z.text.length==1,yt=en(z.text).length+(_e?ae:0);if(Me)for(var Lt=0;Lt<Me.length;++Lt){var pn=Me[Lt];if(pn.to==null){var sn=pl(De,pn.marker);sn?_e&&(pn.to=sn.to==null?null:sn.to+yt):pn.to=ae}}if(De)for(var jn=0;jn<De.length;++jn){var pr=De[jn];if(pr.to!=null&&(pr.to+=yt),pr.from==null){var Zr=pl(Me,pr.marker);Zr||(pr.from=yt,_e&&(Me||(Me=[])).push(pr))}else pr.from+=yt,_e&&(Me||(Me=[])).push(pr)}Me&&(Me=ls(Me)),De&&De!=Me&&(De=ls(De));var ui=[Me];if(!_e){var xi=z.text.length-2,ni;if(xi>0&&Me)for(var ki=0;ki<Me.length;++ki)Me[ki].to==null&&(ni||(ni=[])).push(new as(Me[ki].marker,null,null));for(var sa=0;sa<xi;++sa)ui.push(ni);ui.push(De)}return ui}function ls(x){for(var z=0;z<x.length;++z){var ne=x[z];ne.from!=null&&ne.from==ne.to&&ne.marker.clearWhenEmpty!==!1&&x.splice(z--,1)}return x.length?x:null}function Wo(x,z,ne){var te=null;if(x.iter(z.line,ne.line+1,function(sn){if(sn.markedSpans)for(var jn=0;jn<sn.markedSpans.length;++jn){var pr=sn.markedSpans[jn].marker;pr.readOnly&&(!te||Nt(te,pr)==-1)&&(te||(te=[])).push(pr)}}),!te)return null;for(var ae=[{from:z,to:ne}],ce=0;ce<te.length;++ce)for(var ve=te[ce],Me=ve.find(0),De=0;De<ae.length;++De){var _e=ae[De];if(!(Ri(_e.to,Me.from)<0||Ri(_e.from,Me.to)>0)){var yt=[De,1],Lt=Ri(_e.from,Me.from),pn=Ri(_e.to,Me.to);(Lt<0||!ve.inclusiveLeft&&!Lt)&&yt.push({from:_e.from,to:Me.from}),(pn>0||!ve.inclusiveRight&&!pn)&&yt.push({from:Me.to,to:_e.to}),ae.splice.apply(ae,yt),De+=yt.length-3}}return ae}function ys(x){var z=x.markedSpans;if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.detachLine(x);x.markedSpans=null}}function Ds(x,z){if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.attachLine(x);x.markedSpans=z}}function Fs(x){return x.inclusiveLeft?-1:0}function bs(x){return x.inclusiveRight?1:0}function Go(x,z){var ne=x.lines.length-z.lines.length;if(ne!=0)return ne;var te=x.find(),ae=z.find(),ce=Ri(te.from,ae.from)||Fs(x)-Fs(z);if(ce)return-ce;var ve=Ri(te.to,ae.to)||bs(x)-bs(z);return ve||z.id-x.id}function Te(x,z){var ne=$a&&x.markedSpans,te;if(ne)for(var ae=void 0,ce=0;ce<ne.length;++ce)ae=ne[ce],ae.marker.collapsed&&(z?ae.from:ae.to)==null&&(!te||Go(te,ae.marker)<0)&&(te=ae.marker);return te}function Ue(x){return Te(x,!0)}function tn(x){return Te(x,!1)}function we(x,z){var ne=$a&&x.markedSpans,te;if(ne)for(var ae=0;ae<ne.length;++ae){var ce=ne[ae];ce.marker.collapsed&&(ce.from==null||ce.from<z)&&(ce.to==null||ce.to>z)&&(!te||Go(te,ce.marker)<0)&&(te=ce.marker)}return te}function ht(x,z,ne,te,ae){var ce=ir(x,z),ve=$a&&ce.markedSpans;if(ve)for(var Me=0;Me<ve.length;++Me){var De=ve[Me];if(De.marker.collapsed){var _e=De.marker.find(0),yt=Ri(_e.from,ne)||Fs(De.marker)-Fs(ae),Lt=Ri(_e.to,te)||bs(De.marker)-bs(ae);if(!(yt>=0&&Lt<=0||yt<=0&&Lt>=0)&&(yt<=0&&(De.marker.inclusiveRight&&ae.inclusiveLeft?Ri(_e.to,ne)>=0:Ri(_e.to,ne)>0)||yt>=0&&(De.marker.inclusiveRight&&ae.inclusiveLeft?Ri(_e.from,te)<=0:Ri(_e.from,te)<0)))return!0}}}function St(x){for(var z;z=Ue(x);)x=z.find(-1,!0).line;return x}function Qt(x){for(var z;z=tn(x);)x=z.find(1,!0).line;return x}function Dt(x){for(var z,ne;z=tn(x);)x=z.find(1,!0).line,(ne||(ne=[])).push(x);return ne}function Cn(x,z){var ne=ir(x,z),te=St(ne);return ne==te?z:va(te)}function Ln(x,z){if(z>x.lastLine())return z;var ne=ir(x,z),te;if(!Mn(x,ne))return z;for(;te=tn(ne);)ne=te.find(1,!0).line;return va(ne)+1}function Mn(x,z){var ne=$a&&z.markedSpans;if(ne){for(var te=void 0,ae=0;ae<ne.length;++ae)if(te=ne[ae],!!te.marker.collapsed){if(te.from==null)return!0;if(!te.marker.widgetNode&&te.from==0&&te.marker.inclusiveLeft&&gn(x,z,te))return!0}}}function gn(x,z,ne){if(ne.to==null){var te=ne.marker.find(1,!0);return gn(x,te.line,pl(te.line.markedSpans,ne.marker))}if(ne.marker.inclusiveRight&&ne.to==z.text.length)return!0;for(var ae=void 0,ce=0;ce<z.markedSpans.length;++ce)if(ae=z.markedSpans[ce],ae.marker.collapsed&&!ae.marker.widgetNode&&ae.from==ne.to&&(ae.to==null||ae.to!=ne.from)&&(ae.marker.inclusiveLeft||ne.marker.inclusiveRight)&&gn(x,z,ae))return!0}function Jt(x){x=St(x);for(var z=0,ne=x.parent,te=0;te<ne.lines.length;++te){var ae=ne.lines[te];if(ae==x)break;z+=ae.height}for(var ce=ne.parent;ce;ne=ce,ce=ne.parent)for(var ve=0;ve<ce.children.length;++ve){var Me=ce.children[ve];if(Me==ne)break;z+=Me.height}return z}function bn(x){if(x.height==0)return 0;for(var z=x.text.length,ne,te=x;ne=Ue(te);){var ae=ne.find(0,!0);te=ae.from.line,z+=ae.from.ch-ae.to.ch}for(te=x;ne=tn(te);){var ce=ne.find(0,!0);z-=te.text.length-ce.from.ch,te=ce.to.line,z+=te.text.length-ce.to.ch}return z}function An(x){var z=x.display,ne=x.doc;z.maxLine=ir(ne,ne.first),z.maxLineLength=bn(z.maxLine),z.maxLineChanged=!0,ne.iter(function(te){var ae=bn(te);ae>z.maxLineLength&&(z.maxLineLength=ae,z.maxLine=te)})}var Bn=function(x,z,ne){this.text=x,Ds(this,z),this.height=ne?ne(this):1};Bn.prototype.lineNo=function(){return va(this)},Wr(Bn);function zr(x,z,ne,te){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),ys(x),Ds(x,ne);var ae=te?te(x):1;ae!=x.height&&Ca(x,ae)}function ei(x){x.parent=null,ys(x)}var _i={},Mi={};function ta(x,z){if(!x||/^\s*$/.test(x))return null;var ne=z.addModeClass?Mi:_i;return ne[x]||(ne[x]=x.replace(/\S+/g,"cm-$&"))}function la(x,z){var ne=ct("span",null,null,je?"padding-right: .1px":null),te={pre:ct("pre",[ne],"CodeMirror-line"),content:ne,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};z.measure={};for(var ae=0;ae<=(z.rest?z.rest.length:0);ae++){var ce=ae?z.rest[ae-1]:z.line,ve=void 0;te.pos=0,te.addToken=Ma,Mr(x.display.measure)&&(ve=mr(ce,x.doc.direction))&&(te.addToken=Sa(te.addToken,ve)),te.map=[];var Me=z!=x.display.externalMeasured&&va(ce);ao(ce,te,gs(x,ce,Me)),ce.styleClasses&&(ce.styleClasses.bgClass&&(te.bgClass=Fe(ce.styleClasses.bgClass,te.bgClass||"")),ce.styleClasses.textClass&&(te.textClass=Fe(ce.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(On(x.display.measure))),ae==0?(z.measure.map=te.map,z.measure.cache={}):((z.measure.maps||(z.measure.maps=[])).push(te.map),(z.measure.caches||(z.measure.caches=[])).push({}))}if(je){var De=te.content.lastChild;(/\bcm-tab\b/.test(De.className)||De.querySelector&&De.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return xr(x,"renderLine",x,z.line,te.pre),te.pre.className&&(te.textClass=Fe(te.pre.className,te.textClass||"")),te}function Ta(x){var z=st("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function Ma(x,z,ne,te,ae,ce,ve){if(z){var Me=x.splitSpaces?Wa(z,x.trailingSpace):z,De=x.cm.state.specialChars,_e=!1,yt;if(!De.test(z))x.col+=z.length,yt=document.createTextNode(Me),x.map.push(x.pos,x.pos+z.length,yt),Pe&&Ne<9&&(_e=!0),x.pos+=z.length;else{yt=document.createDocumentFragment();for(var Lt=0;;){De.lastIndex=Lt;var pn=De.exec(z),sn=pn?pn.index-Lt:z.length-Lt;if(sn){var jn=document.createTextNode(Me.slice(Lt,Lt+sn));Pe&&Ne<9?yt.appendChild(st("span",[jn])):yt.appendChild(jn),x.map.push(x.pos,x.pos+sn,jn),x.col+=sn,x.pos+=sn}if(!pn)break;Lt+=sn+1;var pr=void 0;if(pn[0]==" "){var Zr=x.cm.options.tabSize,ui=Zr-x.col%Zr;pr=yt.appendChild(st("span",fn(ui),"cm-tab")),pr.setAttribute("role","presentation"),pr.setAttribute("cm-text"," "),x.col+=ui}else pn[0]=="\r"||pn[0]==`
|
|
|
`?(pr=yt.appendChild(st("span",pn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),pr.setAttribute("cm-text",pn[0]),x.col+=1):(pr=x.cm.options.specialCharPlaceholder(pn[0]),pr.setAttribute("cm-text",pn[0]),Pe&&Ne<9?yt.appendChild(st("span",[pr])):yt.appendChild(pr),x.col+=1);x.map.push(x.pos,x.pos+1,pr),x.pos++}}if(x.trailingSpace=Me.charCodeAt(z.length-1)==32,ne||te||ae||_e||ce||ve){var xi=ne||"";te&&(xi+=te),ae&&(xi+=ae);var ni=st("span",[yt],xi,ce);if(ve)for(var ki in ve)ve.hasOwnProperty(ki)&&ki!="style"&&ki!="class"&&ni.setAttribute(ki,ve[ki]);return x.content.appendChild(ni)}x.content.appendChild(yt)}}function Wa(x,z){if(x.length>1&&!/ /.test(x))return x;for(var ne=z,te="",ae=0;ae<x.length;ae++){var ce=x.charAt(ae);ce==" "&&ne&&(ae==x.length-1||x.charCodeAt(ae+1)==32)&&(ce="\xA0"),te+=ce,ne=ce==" "}return te}function Sa(x,z){return function(ne,te,ae,ce,ve,Me,De){ae=ae?ae+" cm-force-border":"cm-force-border";for(var _e=ne.pos,yt=_e+te.length;;){for(var Lt=void 0,pn=0;pn<z.length&&(Lt=z[pn],!(Lt.to>_e&&Lt.from<=_e));pn++);if(Lt.to>=yt)return x(ne,te,ae,ce,ve,Me,De);x(ne,te.slice(0,Lt.to-_e),ae,ce,null,Me,De),ce=null,te=te.slice(Lt.to-_e),_e=Lt.to}}}function Ja(x,z,ne,te){var ae=!te&&ne.widgetNode;ae&&x.map.push(x.pos,x.pos+z,ae),!te&&x.cm.display.input.needsContentAttribute&&(ae||(ae=x.content.appendChild(document.createElement("span"))),ae.setAttribute("cm-marker",ne.id)),ae&&(x.cm.display.input.setUneditable(ae),x.content.appendChild(ae)),x.pos+=z,x.trailingSpace=!1}function ao(x,z,ne){var te=x.markedSpans,ae=x.text,ce=0;if(!te){for(var ve=1;ve<ne.length;ve+=2)z.addToken(z,ae.slice(ce,ce=ne[ve]),ta(ne[ve+1],z.cm.options));return}for(var Me=ae.length,De=0,_e=1,yt="",Lt,pn,sn=0,jn,pr,Zr,ui,xi;;){if(sn==De){jn=pr=Zr=pn="",xi=null,ui=null,sn=1/0;for(var ni=[],ki=void 0,sa=0;sa<te.length;++sa){var ha=te[sa],Ya=ha.marker;if(Ya.type=="bookmark"&&ha.from==De&&Ya.widgetNode)ni.push(Ya);else if(ha.from<=De&&(ha.to==null||ha.to>De||Ya.collapsed&&ha.to==De&&ha.from==De)){if(ha.to!=null&&ha.to!=De&&sn>ha.to&&(sn=ha.to,pr=""),Ya.className&&(jn+=" "+Ya.className),Ya.css&&(pn=(pn?pn+";":"")+Ya.css),Ya.startStyle&&ha.from==De&&(Zr+=" "+Ya.startStyle),Ya.endStyle&&ha.to==sn&&(ki||(ki=[])).push(Ya.endStyle,ha.to),Ya.title&&((xi||(xi={})).title=Ya.title),Ya.attributes)for(var Po in Ya.attributes)(xi||(xi={}))[Po]=Ya.attributes[Po];Ya.collapsed&&(!ui||Go(ui.marker,Ya)<0)&&(ui=ha)}else ha.from>De&&sn>ha.from&&(sn=ha.from)}if(ki)for(var nl=0;nl<ki.length;nl+=2)ki[nl+1]==sn&&(pr+=" "+ki[nl]);if(!ui||ui.from==De)for(var hs=0;hs<ni.length;++hs)Ja(z,0,ni[hs]);if(ui&&(ui.from||0)==De){if(Ja(z,(ui.to==null?Me+1:ui.to)-De,ui.marker,ui.from==null),ui.to==null)return;ui.to==De&&(ui=!1)}}if(De>=Me)break;for(var Ll=Math.min(Me,sn);;){if(yt){var Tl=De+yt.length;if(!ui){var Vs=Tl>Ll?yt.slice(0,Ll-De):yt;z.addToken(z,Vs,Lt?Lt+jn:jn,Zr,De+Vs.length==sn?pr:"",pn,xi)}if(Tl>=Ll){yt=yt.slice(Ll-De),De=Ll;break}De=Tl,Zr=""}yt=ae.slice(ce,ce=ne[_e++]),Lt=ta(ne[_e++],z.cm.options)}}}function zt(x,z,ne){this.line=z,this.rest=Dt(z),this.size=this.rest?va(en(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=Mn(x,z)}function Wt(x,z,ne){for(var te=[],ae,ce=z;ce<ne;ce=ae){var ve=new zt(x.doc,ir(x.doc,ce),ce);ae=ce+ve.size,te.push(ve)}return te}var qt=null;function Fn(x){qt?qt.ops.push(x):x.ownsGroup=qt={ops:[x],delayedCallbacks:[]}}function Gr(x){var z=x.delayedCallbacks,ne=0;do{for(;ne<z.length;ne++)z[ne].call(null);for(var te=0;te<x.ops.length;te++){var ae=x.ops[te];if(ae.cursorActivityHandlers)for(;ae.cursorActivityCalled<ae.cursorActivityHandlers.length;)ae.cursorActivityHandlers[ae.cursorActivityCalled++].call(null,ae.cm)}}while(ne<z.length)}function Ti(x,z){var ne=x.ownsGroup;if(ne)try{Gr(ne)}finally{qt=null,z(ne)}}var In=null;function Ar(x,z){var ne=Jr(x,z);if(ne.length){var te=Array.prototype.slice.call(arguments,2),ae;qt?ae=qt.delayedCallbacks:In?ae=In:(ae=In=[],setTimeout(ci,0));for(var ce=function(Me){ae.push(function(){return ne[Me].apply(null,te)})},ve=0;ve<ne.length;++ve)ce(ve)}}function ci(){var x=In;In=null;for(var z=0;z<x.length;++z)x[z]()}function Ki(x,z,ne,te){for(var ae=0;ae<z.changes.length;ae++){var ce=z.changes[ae];ce=="text"?ua(x,z):ce=="gutter"?mi(x,z,ne,te):ce=="class"?pa(x,z):ce=="widget"&&ri(x,z,te)}z.changes=null}function Lr(x){return x.node==x.text&&(x.node=st("div",null,null,"position: relative"),x.text.parentNode&&x.text.parentNode.replaceChild(x.node,x.text),x.node.appendChild(x.text),Pe&&Ne<8&&(x.node.style.zIndex=2)),x.node}function nr(x,z){var ne=z.bgClass?z.bgClass+" "+(z.line.bgClass||""):z.line.bgClass;if(ne&&(ne+=" CodeMirror-linebackground"),z.background)ne?z.background.className=ne:(z.background.parentNode.removeChild(z.background),z.background=null);else if(ne){var te=Lr(z);z.background=te.insertBefore(st("div",null,ne),te.firstChild),x.display.input.setUneditable(z.background)}}function Pi(x,z){var ne=x.display.externalMeasured;return ne&&ne.line==z.line?(x.display.externalMeasured=null,z.measure=ne.measure,ne.built):la(x,z)}function ua(x,z){var ne=z.text.className,te=Pi(x,z);z.text==z.node&&(z.node=te.pre),z.text.parentNode.replaceChild(te.pre,z.text),z.text=te.pre,te.bgClass!=z.bgClass||te.textClass!=z.textClass?(z.bgClass=te.bgClass,z.textClass=te.textClass,pa(x,z)):ne&&(z.text.className=ne)}function pa(x,z){nr(x,z),z.line.wrapClass?Lr(z).className=z.line.wrapClass:z.node!=z.text&&(z.node.className="");var ne=z.textClass?z.textClass+" "+(z.line.textClass||""):z.line.textClass;z.text.className=ne||""}function mi(x,z,ne,te){if(z.gutter&&(z.node.removeChild(z.gutter),z.gutter=null),z.gutterBackground&&(z.node.removeChild(z.gutterBackground),z.gutterBackground=null),z.line.gutterClass){var ae=Lr(z);z.gutterBackground=st("div",null,"CodeMirror-gutter-background "+z.line.gutterClass,"left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px; width: "+te.gutterTotalWidth+"px"),x.display.input.setUneditable(z.gutterBackground),ae.insertBefore(z.gutterBackground,z.text)}var ce=z.line.gutterMarkers;if(x.options.lineNumbers||ce){var ve=Lr(z),Me=z.gutter=st("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px");if(x.display.input.setUneditable(Me),ve.insertBefore(Me,z.text),z.line.gutterClass&&(Me.className+=" "+z.line.gutterClass),x.options.lineNumbers&&(!ce||!ce["CodeMirror-linenumbers"])&&(z.lineNumber=Me.appendChild(st("div",wa(x.options,ne),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+te.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px"))),ce)for(var De=0;De<x.display.gutterSpecs.length;++De){var _e=x.display.gutterSpecs[De].className,yt=ce.hasOwnProperty(_e)&&ce[_e];yt&&Me.appendChild(st("div",[yt],"CodeMirror-gutter-elt","left: "+te.gutterLeft[_e]+"px; width: "+te.gutterWidth[_e]+"px"))}}}function ri(x,z,ne){z.alignable&&(z.alignable=null);for(var te=lt("CodeMirror-linewidget"),ae=z.node.firstChild,ce=void 0;ae;ae=ce)ce=ae.nextSibling,te.test(ae.className)&&z.node.removeChild(ae);Ba(x,z,ne)}function Na(x,z,ne,te){var ae=Pi(x,z);return z.text=z.node=ae.pre,ae.bgClass&&(z.bgClass=ae.bgClass),ae.textClass&&(z.textClass=ae.textClass),pa(x,z),mi(x,z,ne,te),Ba(x,z,te),z.node}function Ba(x,z,ne){if(oo(x,z.line,z,ne,!0),z.rest)for(var te=0;te<z.rest.length;te++)oo(x,z.rest[te],z,ne,!1)}function oo(x,z,ne,te,ae){if(z.widgets)for(var ce=Lr(ne),ve=0,Me=z.widgets;ve<Me.length;++ve){var De=Me[ve],_e=st("div",[De.node],"CodeMirror-linewidget"+(De.className?" "+De.className:""));De.handleMouseEvents||_e.setAttribute("cm-ignore-events","true"),Qo(De,_e,ne,te),x.display.input.setUneditable(_e),ae&&De.above?ce.insertBefore(_e,ne.gutter||ne.text):ce.appendChild(_e),Ar(De,"redraw")}}function Qo(x,z,ne,te){if(x.noHScroll){(ne.alignable||(ne.alignable=[])).push(z);var ae=te.wrapperWidth;z.style.left=te.fixedPos+"px",x.coverGutter||(ae-=te.gutterTotalWidth,z.style.paddingLeft=te.gutterTotalWidth+"px"),z.style.width=ae+"px"}x.coverGutter&&(z.style.zIndex=5,z.style.position="relative",x.noHScroll||(z.style.marginLeft=-te.gutterTotalWidth+"px"))}function js(x){if(x.height!=null)return x.height;var z=x.doc.cm;if(!z)return 0;if(!pt(document.body,x.node)){var ne="position: relative;";x.coverGutter&&(ne+="margin-left: -"+z.display.gutters.offsetWidth+"px;"),x.noHScroll&&(ne+="width: "+z.display.wrapper.clientWidth+"px;"),Ot(z.display.measure,st("div",[x.node],null,ne))}return x.height=x.node.parentNode.offsetHeight}function us(x,z){for(var ne=bi(z);ne!=x.wrapper;ne=ne.parentNode)if(!ne||ne.nodeType==1&&ne.getAttribute("cm-ignore-events")=="true"||ne.parentNode==x.sizer&&ne!=x.mover)return!0}function ml(x){return x.lineSpace.offsetTop}function so(x){return x.mover.offsetHeight-x.lineSpace.offsetHeight}function Yo(x){if(x.cachedPaddingH)return x.cachedPaddingH;var z=Ot(x.measure,st("pre","x","CodeMirror-line-like")),ne=window.getComputedStyle?window.getComputedStyle(z):z.currentStyle,te={left:parseInt(ne.paddingLeft),right:parseInt(ne.paddingRight)};return!isNaN(te.left)&&!isNaN(te.right)&&(x.cachedPaddingH=te),te}function vo(x){return Rt-x.display.nativeBarWidth}function co(x){return x.display.scroller.clientWidth-vo(x)-x.display.barWidth}function Ls(x){return x.display.scroller.clientHeight-vo(x)-x.display.barHeight}function zs(x,z,ne){var te=x.options.lineWrapping,ae=te&&co(x);if(!z.measure.heights||te&&z.measure.width!=ae){var ce=z.measure.heights=[];if(te){z.measure.width=ae;for(var ve=z.text.firstChild.getClientRects(),Me=0;Me<ve.length-1;Me++){var De=ve[Me],_e=ve[Me+1];Math.abs(De.bottom-_e.bottom)>2&&ce.push((De.bottom+_e.top)/2-ne.top)}}ce.push(ne.bottom-ne.top)}}function Yi(x,z,ne){if(x.line==z)return{map:x.measure.map,cache:x.measure.cache};for(var te=0;te<x.rest.length;te++)if(x.rest[te]==z)return{map:x.measure.maps[te],cache:x.measure.caches[te]};for(var ae=0;ae<x.rest.length;ae++)if(va(x.rest[ae])>ne)return{map:x.measure.maps[ae],cache:x.measure.caches[ae],before:!0}}function _o(x,z){z=St(z);var ne=va(z),te=x.display.externalMeasured=new zt(x.doc,z,ne);te.lineN=ne;var ae=te.built=la(x,te);return te.text=ae.pre,Ot(x.display.lineMeasure,ae.pre),te}function Ts(x,z,ne,te){return Ha(x,$s(x,z),ne,te)}function cs(x,z){if(z>=x.display.viewFrom&&z<x.display.viewTo)return x.display.view[lo(x,z)];var ne=x.display.externalMeasured;if(ne&&z>=ne.lineN&&z<ne.lineN+ne.size)return ne}function $s(x,z){var ne=va(z),te=cs(x,ne);te&&!te.text?te=null:te&&te.changes&&(Ki(x,te,ne,Al(x)),x.curOp.forceUpdate=!0),te||(te=_o(x,z));var ae=Yi(te,z,ne);return{line:z,view:te,rect:null,map:ae.map,cache:ae.cache,before:ae.before,hasHeights:!1}}function Ha(x,z,ne,te,ae){z.before&&(ne=-1);var ce=ne+(te||""),ve;return z.cache.hasOwnProperty(ce)?ve=z.cache[ce]:(z.rect||(z.rect=z.view.text.getBoundingClientRect()),z.hasHeights||(zs(x,z.view,z.rect),z.hasHeights=!0),ve=hu(x,z,ne,te),ve.bogus||(z.cache[ce]=ve)),{left:ve.left,right:ve.right,top:ae?ve.rtop:ve.top,bottom:ae?ve.rbottom:ve.bottom}}var El={left:0,right:0,top:0,bottom:0};function Gs(x,z,ne){for(var te,ae,ce,ve,Me,De,_e=0;_e<x.length;_e+=3)if(Me=x[_e],De=x[_e+1],z<Me?(ae=0,ce=1,ve="left"):z<De?(ae=z-Me,ce=ae+1):(_e==x.length-3||z==De&&x[_e+3]>z)&&(ce=De-Me,ae=ce-1,z>=De&&(ve="right")),ae!=null){if(te=x[_e+2],Me==De&&ne==(te.insertLeft?"left":"right")&&(ve=ne),ne=="left"&&ae==0)for(;_e&&x[_e-2]==x[_e-3]&&x[_e-1].insertLeft;)te=x[(_e-=3)+2],ve="left";if(ne=="right"&&ae==De-Me)for(;_e<x.length-3&&x[_e+3]==x[_e+4]&&!x[_e+5].insertLeft;)te=x[(_e+=3)+2],ve="right";break}return{node:te,start:ae,end:ce,collapse:ve,coverStart:Me,coverEnd:De}}function gl(x,z){var ne=El;if(z=="left")for(var te=0;te<x.length&&(ne=x[te]).left==ne.right;te++);else for(var ae=x.length-1;ae>=0&&(ne=x[ae]).left==ne.right;ae--);return ne}function hu(x,z,ne,te){var ae=Gs(z.map,ne,te),ce=ae.node,ve=ae.start,Me=ae.end,De=ae.collapse,_e;if(ce.nodeType==3){for(var yt=0;yt<4;yt++){for(;ve&&bt(z.line.text.charAt(ae.coverStart+ve));)--ve;for(;ae.coverStart+Me<ae.coverEnd&&bt(z.line.text.charAt(ae.coverStart+Me));)++Me;if(Pe&&Ne<9&&ve==0&&Me==ae.coverEnd-ae.coverStart?_e=ce.parentNode.getBoundingClientRect():_e=gl(He(ce,ve,Me).getClientRects(),te),_e.left||_e.right||ve==0)break;Me=ve,ve=ve-1,De="right"}Pe&&Ne<11&&(_e=pu(x.display.measure,_e))}else{ve>0&&(De=te="right");var Lt;x.options.lineWrapping&&(Lt=ce.getClientRects()).length>1?_e=Lt[te=="right"?Lt.length-1:0]:_e=ce.getBoundingClientRect()}if(Pe&&Ne<9&&!ve&&(!_e||!_e.left&&!_e.right)){var pn=ce.parentNode.getClientRects()[0];pn?_e={left:pn.left,right:pn.left+Qs(x.display),top:pn.top,bottom:pn.bottom}:_e=El}for(var sn=_e.top-z.rect.top,jn=_e.bottom-z.rect.top,pr=(sn+jn)/2,Zr=z.view.measure.heights,ui=0;ui<Zr.length-1&&!(pr<Zr[ui]);ui++);var xi=ui?Zr[ui-1]:0,ni=Zr[ui],ki={left:(De=="right"?_e.right:_e.left)-z.rect.left,right:(De=="left"?_e.left:_e.right)-z.rect.left,top:xi,bottom:ni};return!_e.left&&!_e.right&&(ki.bogus=!0),x.options.singleCursorHeightPerLine||(ki.rtop=sn,ki.rbottom=jn),ki}function pu(x,z){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!er(x))return z;var ne=screen.logicalXDPI/screen.deviceXDPI,te=screen.logicalYDPI/screen.deviceYDPI;return{left:z.left*ne,right:z.right*ne,top:z.top*te,bottom:z.bottom*te}}function Ps(x){if(x.measure&&(x.measure.cache={},x.measure.heights=null,x.rest))for(var z=0;z<x.rest.length;z++)x.measure.caches[z]={}}function mu(x){x.display.externalMeasure=null,_t(x.display.lineMeasure);for(var z=0;z<x.display.view.length;z++)Ps(x.display.view[z])}function Cl(x){mu(x),x.display.cachedCharWidth=x.display.cachedTextHeight=x.display.cachedPaddingH=null,x.options.lineWrapping||(x.display.maxLineChanged=!0),x.display.lineNumChars=null}function Gl(){return ye&&Xe?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ql(){return ye&&Xe?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function zl(x){var z=0;if(x.widgets)for(var ne=0;ne<x.widgets.length;++ne)x.widgets[ne].above&&(z+=js(x.widgets[ne]));return z}function Wl(x,z,ne,te,ae){if(!ae){var ce=zl(z);ne.top+=ce,ne.bottom+=ce}if(te=="line")return ne;te||(te="local");var ve=Jt(z);if(te=="local"?ve+=ml(x.display):ve-=x.display.viewOffset,te=="page"||te=="window"){var Me=x.display.lineSpace.getBoundingClientRect();ve+=Me.top+(te=="window"?0:Ql());var De=Me.left+(te=="window"?0:Gl());ne.left+=De,ne.right+=De}return ne.top+=ve,ne.bottom+=ve,ne}function Zl(x,z,ne){if(ne=="div")return z;var te=z.left,ae=z.top;if(ne=="page")te-=Gl(),ae-=Ql();else if(ne=="local"||!ne){var ce=x.display.sizer.getBoundingClientRect();te+=ce.left,ae+=ce.top}var ve=x.display.lineSpace.getBoundingClientRect();return{left:te-ve.left,top:ae-ve.top}}function nu(x,z,ne,te,ae){return te||(te=ir(x.doc,z.line)),Wl(x,te,Ts(x,te,z.ch,ae),ne)}function Ws(x,z,ne,te,ae,ce){te=te||ir(x.doc,z.line),ae||(ae=$s(x,te));function ve(jn,pr){var Zr=Ha(x,ae,jn,pr?"right":"left",ce);return pr?Zr.left=Zr.right:Zr.right=Zr.left,Wl(x,te,Zr,ne)}var Me=mr(te,x.doc.direction),De=z.ch,_e=z.sticky;if(De>=te.text.length?(De=te.text.length,_e="before"):De<=0&&(De=0,_e="after"),!Me)return ve(_e=="before"?De-1:De,_e=="before");function yt(jn,pr,Zr){var ui=Me[pr],xi=ui.level==1;return ve(Zr?jn-1:jn,xi!=Zr)}var Lt=Kt(Me,De,_e),pn=Xt,sn=yt(De,Lt,_e=="before");return pn!=null&&(sn.other=yt(De,pn,_e!="before")),sn}function Yl(x,z){var ne=0;z=ma(x.doc,z),x.options.lineWrapping||(ne=Qs(x.display)*z.ch);var te=ir(x.doc,z.line),ae=Jt(te)+ml(x.display);return{left:ne,right:ne,top:ae,bottom:ae+te.height}}function Sl(x,z,ne,te,ae){var ce=Qn(x,z,ne);return ce.xRel=ae,te&&(ce.outside=te),ce}function Dl(x,z,ne){var te=x.doc;if(ne+=x.display.viewOffset,ne<0)return Sl(te.first,0,null,-1,-1);var ae=mo(te,ne),ce=te.first+te.size-1;if(ae>ce)return Sl(te.first+te.size-1,ir(te,ce).text.length,null,1,1);z<0&&(z=0);for(var ve=ir(te,ae);;){var Me=Pu(x,ve,ae,z,ne),De=we(ve,Me.ch+(Me.xRel>0||Me.outside>0?1:0));if(!De)return Me;var _e=De.find(1);if(_e.line==ae)return _e;ve=ir(te,ae=_e.line)}}function ru(x,z,ne,te){te-=zl(z);var ae=z.text.length,ce=mn(function(ve){return Ha(x,ne,ve-1).bottom<=te},ae,0);return ae=mn(function(ve){return Ha(x,ne,ve).top>te},ce,ae),{begin:ce,end:ae}}function iu(x,z,ne,te){ne||(ne=$s(x,z));var ae=Wl(x,z,Ha(x,ne,te),"line").top;return ru(x,z,ne,ae)}function gu(x,z,ne,te){return x.bottom<=ne?!1:x.top>ne?!0:(te?x.left:x.right)>z}function Pu(x,z,ne,te,ae){ae-=Jt(z);var ce=$s(x,z),ve=zl(z),Me=0,De=z.text.length,_e=!0,yt=mr(z,x.doc.direction);if(yt){var Lt=(x.options.lineWrapping?au:Nl)(x,z,ne,ce,yt,te,ae);_e=Lt.level!=1,Me=_e?Lt.from:Lt.to-1,De=_e?Lt.to:Lt.from-1}var pn=null,sn=null,jn=mn(function(sa){var ha=Ha(x,ce,sa);return ha.top+=ve,ha.bottom+=ve,gu(ha,te,ae,!1)?(ha.top<=ae&&ha.left<=te&&(pn=sa,sn=ha),!0):!1},Me,De),pr,Zr,ui=!1;if(sn){var xi=te-sn.left<sn.right-te,ni=xi==_e;jn=pn+(ni?0:1),Zr=ni?"after":"before",pr=xi?sn.left:sn.right}else{!_e&&(jn==De||jn==Me)&&jn++,Zr=jn==0?"after":jn==z.text.length?"before":Ha(x,ce,jn-(_e?1:0)).bottom+ve<=ae==_e?"after":"before";var ki=Ws(x,Qn(ne,jn,Zr),"line",z,ce);pr=ki.left,ui=ae<ki.top?-1:ae>=ki.bottom?1:0}return jn=Pt(z.text,jn,1),Sl(ne,jn,Zr,ui,te-pr)}function Nl(x,z,ne,te,ae,ce,ve){var Me=mn(function(Lt){var pn=ae[Lt],sn=pn.level!=1;return gu(Ws(x,Qn(ne,sn?pn.to:pn.from,sn?"before":"after"),"line",z,te),ce,ve,!0)},0,ae.length-1),De=ae[Me];if(Me>0){var _e=De.level!=1,yt=Ws(x,Qn(ne,_e?De.from:De.to,_e?"after":"before"),"line",z,te);gu(yt,ce,ve,!0)&&yt.top>ve&&(De=ae[Me-1])}return De}function au(x,z,ne,te,ae,ce,ve){var Me=ru(x,z,te,ve),De=Me.begin,_e=Me.end;/\s/.test(z.text.charAt(_e-1))&&_e--;for(var yt=null,Lt=null,pn=0;pn<ae.length;pn++){var sn=ae[pn];if(!(sn.from>=_e||sn.to<=De)){var jn=sn.level!=1,pr=Ha(x,te,jn?Math.min(_e,sn.to)-1:Math.max(De,sn.from)).right,Zr=pr<ce?ce-pr+1e9:pr-ce;(!yt||Lt>Zr)&&(yt=sn,Lt=Zr)}}return yt||(yt=ae[ae.length-1]),yt.from<De&&(yt={from:De,to:yt.to,level:yt.level}),yt.to>_e&&(yt={from:yt.from,to:_e,level:yt.level}),yt}var ol;function Vl(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(ol==null){ol=st("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)ol.appendChild(document.createTextNode("x")),ol.appendChild(st("br"));ol.appendChild(document.createTextNode("x"))}Ot(x.measure,ol);var ne=ol.offsetHeight/50;return ne>3&&(x.cachedTextHeight=ne),_t(x.measure),ne||1}function Qs(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=st("span","xxxxxxxxxx"),ne=st("pre",[z],"CodeMirror-line-like");Ot(x.measure,ne);var te=z.getBoundingClientRect(),ae=(te.right-te.left)/10;return ae>2&&(x.cachedCharWidth=ae),ae||10}function Al(x){for(var z=x.display,ne={},te={},ae=z.gutters.clientLeft,ce=z.gutters.firstChild,ve=0;ce;ce=ce.nextSibling,++ve){var Me=x.display.gutterSpecs[ve].className;ne[Me]=ce.offsetLeft+ce.clientLeft+ae,te[Me]=ce.clientWidth}return{fixedPos:Il(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:z.wrapper.clientWidth}}function Il(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function Jl(x){var z=Vl(x.display),ne=x.options.lineWrapping,te=ne&&Math.max(5,x.display.scroller.clientWidth/Qs(x.display)-3);return function(ae){if(Mn(x.doc,ae))return 0;var ce=0;if(ae.widgets)for(var ve=0;ve<ae.widgets.length;ve++)ae.widgets[ve].height&&(ce+=ae.widgets[ve].height);return ne?ce+(Math.ceil(ae.text.length/te)||1)*z:ce+z}}function Ol(x){var z=x.doc,ne=Jl(x);z.iter(function(te){var ae=ne(te);ae!=te.height&&Ca(te,ae)})}function Fl(x,z,ne,te){var ae=x.display;if(!ne&&bi(z).getAttribute("cm-not-content")=="true")return null;var ce,ve,Me=ae.lineSpace.getBoundingClientRect();try{ce=z.clientX-Me.left,ve=z.clientY-Me.top}catch(Lt){return null}var De=Dl(x,ce,ve),_e;if(te&&De.xRel>0&&(_e=ir(x.doc,De.line).text).length==De.ch){var yt=Re(_e,_e.length,x.options.tabSize)-_e.length;De=Qn(De.line,Math.max(0,Math.round((ce-Yo(x.display).left)/Qs(x.display))-yt))}return De}function lo(x,z){if(z>=x.display.viewTo||(z-=x.display.viewFrom,z<0))return null;for(var ne=x.display.view,te=0;te<ne.length;te++)if(z-=ne[te].size,z<0)return te}function Ea(x,z,ne,te){z==null&&(z=x.doc.first),ne==null&&(ne=x.doc.first+x.doc.size),te||(te=0);var ae=x.display;if(te&&ne<ae.viewTo&&(ae.updateLineNumbers==null||ae.updateLineNumbers>z)&&(ae.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=ae.viewTo)$a&&Cn(x.doc,z)<ae.viewTo&&Do(x);else if(ne<=ae.viewFrom)$a&&Ln(x.doc,ne+te)>ae.viewFrom?Do(x):(ae.viewFrom+=te,ae.viewTo+=te);else if(z<=ae.viewFrom&&ne>=ae.viewTo)Do(x);else if(z<=ae.viewFrom){var ce=Be(x,ne,ne+te,1);ce?(ae.view=ae.view.slice(ce.index),ae.viewFrom=ce.lineN,ae.viewTo+=te):Do(x)}else if(ne>=ae.viewTo){var ve=Be(x,z,z,-1);ve?(ae.view=ae.view.slice(0,ve.index),ae.viewTo=ve.lineN):Do(x)}else{var Me=Be(x,z,z,-1),De=Be(x,ne,ne+te,1);Me&&De?(ae.view=ae.view.slice(0,Me.index).concat(Wt(x,Me.lineN,De.lineN)).concat(ae.view.slice(De.index)),ae.viewTo+=te):Do(x)}var _e=ae.externalMeasured;_e&&(ne<_e.lineN?_e.lineN+=te:z<_e.lineN+_e.size&&(ae.externalMeasured=null))}function Co(x,z,ne){x.curOp.viewChanged=!0;var te=x.display,ae=x.display.externalMeasured;if(ae&&z>=ae.lineN&&z<ae.lineN+ae.size&&(te.externalMeasured=null),!(z<te.viewFrom||z>=te.viewTo)){var ce=te.view[lo(x,z)];if(ce.node!=null){var ve=ce.changes||(ce.changes=[]);Nt(ve,ne)==-1&&ve.push(ne)}}}function Do(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function Be(x,z,ne,te){var ae=lo(x,z),ce,ve=x.display.view;if(!$a||ne==x.doc.first+x.doc.size)return{index:ae,lineN:ne};for(var Me=x.display.viewFrom,De=0;De<ae;De++)Me+=ve[De].size;if(Me!=z){if(te>0){if(ae==ve.length-1)return null;ce=Me+ve[ae].size-z,ae++}else ce=Me-z;z+=ce,ne+=ce}for(;Cn(x.doc,ne)!=ne;){if(ae==(te<0?0:ve.length-1))return null;ne+=te*ve[ae-(te<0?1:0)].size,ae+=te}return{index:ae,lineN:ne}}function Ie(x,z,ne){var te=x.display,ae=te.view;ae.length==0||z>=te.viewTo||ne<=te.viewFrom?(te.view=Wt(x,z,ne),te.viewFrom=z):(te.viewFrom>z?te.view=Wt(x,z,te.viewFrom).concat(te.view):te.viewFrom<z&&(te.view=te.view.slice(lo(x,z))),te.viewFrom=z,te.viewTo<ne?te.view=te.view.concat(Wt(x,te.viewTo,ne)):te.viewTo>ne&&(te.view=te.view.slice(0,lo(x,ne)))),te.viewTo=ne}function Ct(x){for(var z=x.display.view,ne=0,te=0;te<z.length;te++){var ae=z[te];!ae.hidden&&(!ae.node||ae.changes)&&++ne}return ne}function Et(x){x.display.input.showSelection(x.display.input.prepareSelection())}function $t(x,z){z===void 0&&(z=!0);for(var ne=x.doc,te={},ae=te.cursors=document.createDocumentFragment(),ce=te.selection=document.createDocumentFragment(),ve=0;ve<ne.sel.ranges.length;ve++)if(!(!z&&ve==ne.sel.primIndex)){var Me=ne.sel.ranges[ve];if(!(Me.from().line>=x.display.viewTo||Me.to().line<x.display.viewFrom)){var De=Me.empty();(De||x.options.showCursorWhenSelecting)&&hn(x,Me.head,ae),De||Jn(x,Me,ce)}}return te}function hn(x,z,ne){var te=Ws(x,z,"div",null,null,!x.options.singleCursorHeightPerLine),ae=ne.appendChild(st("div","\xA0","CodeMirror-cursor"));if(ae.style.left=te.left+"px",ae.style.top=te.top+"px",ae.style.height=Math.max(0,te.bottom-te.top)*x.options.cursorHeight+"px",te.other){var ce=ne.appendChild(st("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ce.style.display="",ce.style.left=te.other.left+"px",ce.style.top=te.other.top+"px",ce.style.height=(te.other.bottom-te.other.top)*.85+"px"}}function kn(x,z){return x.top-z.top||x.left-z.left}function Jn(x,z,ne){var te=x.display,ae=x.doc,ce=document.createDocumentFragment(),ve=Yo(x.display),Me=ve.left,De=Math.max(te.sizerWidth,co(x)-te.sizer.offsetLeft)-ve.right,_e=ae.direction=="ltr";function yt(ni,ki,sa,ha){ki<0&&(ki=0),ki=Math.round(ki),ha=Math.round(ha),ce.appendChild(st("div",null,"CodeMirror-selected","position: absolute; left: "+ni+`px;
|
|
|
top: `+ki+"px; width: "+(sa==null?De-ni:sa)+`px;
|
|
|
height: `+(ha-ki)+"px"))}function Lt(ni,ki,sa){var ha=ir(ae,ni),Ya=ha.text.length,Po,nl;function hs(Vs,Pl){return nu(x,Qn(ni,Vs),"div",ha,Pl)}function Ll(Vs,Pl,Pa){var Ss=iu(x,ha,null,Vs),ps=Pl=="ltr"==(Pa=="after")?"left":"right",As=Pa=="after"?Ss.begin:Ss.end-(/\s/.test(ha.text.charAt(Ss.end-1))?2:1);return hs(As,ps)[ps]}var Tl=mr(ha,ae.direction);return ln(Tl,ki||0,sa==null?Ya:sa,function(Vs,Pl,Pa,Ss){var ps=Pa=="ltr",As=hs(Vs,ps?"left":"right"),Is=hs(Pl-1,ps?"right":"left"),ic=ki==null&&Vs==0,Kl=sa==null&&Pl==Ya,ul=Ss==0,bo=!Tl||Ss==Tl.length-1;if(Is.top-As.top<=3){var Ys=(_e?ic:Kl)&&ul,rd=(_e?Kl:ic)&&bo,Fu=Ys?Me:(ps?As:Is).left,Wu=rd?De:(ps?Is:As).right;yt(Fu,As.top,Wu-Fu,As.bottom)}else{var wu,Us,ac,cl;ps?(wu=_e&&ic&&ul?Me:As.left,Us=_e?De:Ll(Vs,Pa,"before"),ac=_e?Me:Ll(Pl,Pa,"after"),cl=_e&&Kl&&bo?De:Is.right):(wu=_e?Ll(Vs,Pa,"before"):Me,Us=!_e&&ic&&ul?De:As.right,ac=!_e&&Kl&&bo?Me:Is.left,cl=_e?Ll(Pl,Pa,"after"):De),yt(wu,As.top,Us-wu,As.bottom),As.bottom<Is.top&&yt(Me,As.bottom,null,Is.top),yt(ac,Is.top,cl-ac,Is.bottom)}(!Po||kn(As,Po)<0)&&(Po=As),kn(Is,Po)<0&&(Po=Is),(!nl||kn(As,nl)<0)&&(nl=As),kn(Is,nl)<0&&(nl=Is)}),{start:Po,end:nl}}var pn=z.from(),sn=z.to();if(pn.line==sn.line)Lt(pn.line,pn.ch,sn.ch);else{var jn=ir(ae,pn.line),pr=ir(ae,sn.line),Zr=St(jn)==St(pr),ui=Lt(pn.line,pn.ch,Zr?jn.text.length+1:null).end,xi=Lt(sn.line,Zr?0:null,sn.ch).start;Zr&&(ui.top<xi.top-2?(yt(ui.right,ui.top,null,ui.bottom),yt(Me,xi.top,xi.left,xi.bottom)):yt(ui.right,ui.top,xi.left-ui.right,ui.bottom)),ui.bottom<xi.top&&yt(Me,ui.bottom,null,xi.top)}ne.appendChild(ce)}function $n(x){if(x.state.focused){var z=x.display;clearInterval(z.blinker);var ne=!0;z.cursorDiv.style.visibility="",x.options.cursorBlinkRate>0?z.blinker=setInterval(function(){x.hasFocus()||ii(x),z.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function ur(x){x.state.focused||(x.display.input.focus(),Sr(x))}function $r(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,ii(x))},100)}function Sr(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(xr(x,"focus",x,z),x.state.focused=!0,Qe(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),je&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),$n(x))}function ii(x,z){x.state.delayingBlurEvent||(x.state.focused&&(xr(x,"blur",x,z),x.state.focused=!1,Tt(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function yr(x){for(var z=x.display,ne=z.lineDiv.offsetTop,te=0;te<z.view.length;te++){var ae=z.view[te],ce=x.options.lineWrapping,ve=void 0,Me=0;if(!ae.hidden){if(Pe&&Ne<8){var De=ae.node.offsetTop+ae.node.offsetHeight;ve=De-ne,ne=De}else{var _e=ae.node.getBoundingClientRect();ve=_e.bottom-_e.top,!ce&&ae.text.firstChild&&(Me=ae.text.firstChild.getBoundingClientRect().right-_e.left-1)}var yt=ae.line.height-ve;if((yt>.005||yt<-.005)&&(Ca(ae.line,ve),Ur(ae.line),ae.rest))for(var Lt=0;Lt<ae.rest.length;Lt++)Ur(ae.rest[Lt]);if(Me>x.display.sizerWidth){var pn=Math.ceil(Me/Qs(x.display));pn>x.display.maxLineLength&&(x.display.maxLineLength=pn,x.display.maxLine=ae.line,x.display.maxLineChanged=!0)}}}}function Ur(x){if(x.widgets)for(var z=0;z<x.widgets.length;++z){var ne=x.widgets[z],te=ne.node.parentNode;te&&(ne.height=te.offsetHeight)}}function Pr(x,z,ne){var te=ne&&ne.top!=null?Math.max(0,ne.top):x.scroller.scrollTop;te=Math.floor(te-ml(x));var ae=ne&&ne.bottom!=null?ne.bottom:te+x.wrapper.clientHeight,ce=mo(z,te),ve=mo(z,ae);if(ne&&ne.ensure){var Me=ne.ensure.from.line,De=ne.ensure.to.line;Me<ce?(ce=Me,ve=mo(z,Jt(ir(z,Me))+x.wrapper.clientHeight)):Math.min(De,z.lastLine())>=ve&&(ce=mo(z,Jt(ir(z,De))-x.wrapper.clientHeight),ve=De)}return{from:ce,to:Math.max(ve,ce+1)}}function ai(x,z){if(!wr(x,"scrollCursorIntoView")){var ne=x.display,te=ne.sizer.getBoundingClientRect(),ae=null;if(z.top+te.top<0?ae=!0:z.bottom+te.top>(window.innerHeight||document.documentElement.clientHeight)&&(ae=!1),ae!=null&&!gt){var ce=st("div","\u200B",null,`position: absolute;
|
|
|
top: `+(z.top-ne.viewOffset-ml(x.display))+`px;
|
|
|
height: `+(z.bottom-z.top+vo(x)+ne.barHeight)+`px;
|
|
|
left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(ce),ce.scrollIntoView(ae),x.display.lineSpace.removeChild(ce)}}}function Ei(x,z,ne,te){te==null&&(te=0);var ae;!x.options.lineWrapping&&z==ne&&(z=z.ch?Qn(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,ne=z.sticky=="before"?Qn(z.line,z.ch+1,"before"):z);for(var ce=0;ce<5;ce++){var ve=!1,Me=Ws(x,z),De=!ne||ne==z?Me:Ws(x,ne);ae={left:Math.min(Me.left,De.left),top:Math.min(Me.top,De.top)-te,right:Math.max(Me.left,De.left),bottom:Math.max(Me.bottom,De.bottom)+te};var _e=Oe(x,ae),yt=x.doc.scrollTop,Lt=x.doc.scrollLeft;if(_e.scrollTop!=null&&(ot(x,_e.scrollTop),Math.abs(x.doc.scrollTop-yt)>1&&(ve=!0)),_e.scrollLeft!=null&&(It(x,_e.scrollLeft),Math.abs(x.doc.scrollLeft-Lt)>1&&(ve=!0)),!ve)break}return ae}function Ae(x,z){var ne=Oe(x,z);ne.scrollTop!=null&&ot(x,ne.scrollTop),ne.scrollLeft!=null&&It(x,ne.scrollLeft)}function Oe(x,z){var ne=x.display,te=Vl(x.display);z.top<0&&(z.top=0);var ae=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ne.scroller.scrollTop,ce=Ls(x),ve={};z.bottom-z.top>ce&&(z.bottom=z.top+ce);var Me=x.doc.height+so(ne),De=z.top<te,_e=z.bottom>Me-te;if(z.top<ae)ve.scrollTop=De?0:z.top;else if(z.bottom>ae+ce){var yt=Math.min(z.top,(_e?Me:z.bottom)-ce);yt!=ae&&(ve.scrollTop=yt)}var Lt=x.options.fixedGutter?0:ne.gutters.offsetWidth,pn=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ne.scroller.scrollLeft-Lt,sn=co(x)-ne.gutters.offsetWidth,jn=z.right-z.left>sn;return jn&&(z.right=z.left+sn),z.left<10?ve.scrollLeft=0:z.left<pn?ve.scrollLeft=Math.max(0,z.left+Lt-(jn?0:10)):z.right>sn+pn-3&&(ve.scrollLeft=z.right+(jn?0:10)-sn),ve}function dt(x,z){z!=null&&(Bt(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function Se(x){Bt(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function at(x,z,ne){(z!=null||ne!=null)&&Bt(x),z!=null&&(x.curOp.scrollLeft=z),ne!=null&&(x.curOp.scrollTop=ne)}function mt(x,z){Bt(x),x.curOp.scrollToPos=z}function Bt(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var ne=Yl(x,z.from),te=Yl(x,z.to);Ge(x,ne,te,z.margin)}}function Ge(x,z,ne,te){var ae=Oe(x,{left:Math.min(z.left,ne.left),top:Math.min(z.top,ne.top)-te,right:Math.max(z.right,ne.right),bottom:Math.max(z.bottom,ne.bottom)+te});at(x,ae.scrollLeft,ae.scrollTop)}function ot(x,z){Math.abs(x.doc.scrollTop-z)<2||(re||na(x,{top:z}),ut(x,z,!0),re&&na(x),vr(x,100))}function ut(x,z,ne){z=Math.max(0,Math.min(x.display.scroller.scrollHeight-x.display.scroller.clientHeight,z)),!(x.display.scroller.scrollTop==z&&!ne)&&(x.doc.scrollTop=z,x.display.scrollbars.setScrollTop(z),x.display.scroller.scrollTop!=z&&(x.display.scroller.scrollTop=z))}function It(x,z,ne,te){z=Math.max(0,Math.min(z,x.display.scroller.scrollWidth-x.display.scroller.clientWidth)),!((ne?z==x.doc.scrollLeft:Math.abs(x.doc.scrollLeft-z)<2)&&!te)&&(x.doc.scrollLeft=z,Qr(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function Zt(x){var z=x.display,ne=z.gutters.offsetWidth,te=Math.round(x.doc.height+so(x.display));return{clientHeight:z.scroller.clientHeight,viewHeight:z.wrapper.clientHeight,scrollWidth:z.scroller.scrollWidth,clientWidth:z.scroller.clientWidth,viewWidth:z.wrapper.clientWidth,barLeft:x.options.fixedGutter?ne:0,docHeight:te,scrollHeight:te+vo(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ne}}var nn=function(x,z,ne){this.cm=ne;var te=this.vert=st("div",[st("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ae=this.horiz=st("div",[st("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ae.tabIndex=-1,x(te),x(ae),rn(te,"scroll",function(){te.clientHeight&&z(te.scrollTop,"vertical")}),rn(ae,"scroll",function(){ae.clientWidth&&z(ae.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Pe&&Ne<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};nn.prototype.update=function(x){var z=x.scrollWidth>x.clientWidth+1,ne=x.scrollHeight>x.clientHeight+1,te=x.nativeBarWidth;if(ne){this.vert.style.display="block",this.vert.style.bottom=z?te+"px":"0";var ae=x.viewHeight-(z?te:0);this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+ae)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(z){this.horiz.style.display="block",this.horiz.style.right=ne?te+"px":"0",this.horiz.style.left=x.barLeft+"px";var ce=x.viewWidth-x.barLeft-(ne?te:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+ce)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&x.clientHeight>0&&(te==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ne?te:0,bottom:z?te:0}},nn.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},nn.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},nn.prototype.zeroWidthHack=function(){var x=Ze&&!he?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Le,this.disableVert=new Le},nn.prototype.enableZeroWidthBar=function(x,z,ne){x.style.pointerEvents="auto";function te(){var ae=x.getBoundingClientRect(),ce=ne=="vert"?document.elementFromPoint(ae.right-1,(ae.top+ae.bottom)/2):document.elementFromPoint((ae.right+ae.left)/2,ae.bottom-1);ce!=x?x.style.pointerEvents="none":z.set(1e3,te)}z.set(1e3,te)},nn.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var Ht=function(){};Ht.prototype.update=function(){return{bottom:0,right:0}},Ht.prototype.setScrollLeft=function(){},Ht.prototype.setScrollTop=function(){},Ht.prototype.clear=function(){};function on(x,z){z||(z=Zt(x));var ne=x.display.barWidth,te=x.display.barHeight;wn(x,z);for(var ae=0;ae<4&&ne!=x.display.barWidth||te!=x.display.barHeight;ae++)ne!=x.display.barWidth&&x.options.lineWrapping&&yr(x),wn(x,Zt(x)),ne=x.display.barWidth,te=x.display.barHeight}function wn(x,z){var ne=x.display,te=ne.scrollbars.update(z);ne.sizer.style.paddingRight=(ne.barWidth=te.right)+"px",ne.sizer.style.paddingBottom=(ne.barHeight=te.bottom)+"px",ne.heightForcer.style.borderBottom=te.bottom+"px solid transparent",te.right&&te.bottom?(ne.scrollbarFiller.style.display="block",ne.scrollbarFiller.style.height=te.bottom+"px",ne.scrollbarFiller.style.width=te.right+"px"):ne.scrollbarFiller.style.display="",te.bottom&&x.options.coverGutterNextToScrollbar&&x.options.fixedGutter?(ne.gutterFiller.style.display="block",ne.gutterFiller.style.height=te.bottom+"px",ne.gutterFiller.style.width=z.gutterWidth+"px"):ne.gutterFiller.style.display=""}var Tn={native:nn,null:Ht};function dn(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&Tt(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new Tn[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),rn(z,"mousedown",function(){x.state.focused&&setTimeout(function(){return x.display.input.focus()},0)}),z.setAttribute("cm-not-content","true")},function(z,ne){ne=="horizontal"?It(x,z):ot(x,z)},x),x.display.scrollbars.addClass&&Qe(x.display.wrapper,x.display.scrollbars.addClass)}var Xn=0;function Pn(x){x.curOp={cm:x,viewChanged:!1,startHeight:x.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Xn},Fn(x.curOp)}function Wn(x){var z=x.curOp;z&&Ti(z,function(ne){for(var te=0;te<ne.ops.length;te++)ne.ops[te].cm.curOp=null;ar(ne)})}function ar(x){for(var z=x.ops,ne=0;ne<z.length;ne++)Rn(z[ne]);for(var te=0;te<z.length;te++)br(z[te]);for(var ae=0;ae<z.length;ae++)gr(z[ae]);for(var ce=0;ce<z.length;ce++)rr(z[ce]);for(var ve=0;ve<z.length;ve++)Yn(z[ve])}function Rn(x){var z=x.cm,ne=z.display;Or(z),x.updateMaxLine&&An(z),x.mustUpdate=x.viewChanged||x.forceUpdate||x.scrollTop!=null||x.scrollToPos&&(x.scrollToPos.from.line<ne.viewFrom||x.scrollToPos.to.line>=ne.viewTo)||ne.maxLineChanged&&z.options.lineWrapping,x.update=x.mustUpdate&&new qn(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function br(x){x.updatedDisplay=x.mustUpdate&&Ni(x.cm,x.update)}function gr(x){var z=x.cm,ne=z.display;x.updatedDisplay&&yr(z),x.barMeasure=Zt(z),ne.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=Ts(z,ne.maxLine,ne.maxLine.text.length).left+3,z.display.sizerWidth=x.adjustWidthTo,x.barMeasure.scrollWidth=Math.max(ne.scroller.clientWidth,ne.sizer.offsetLeft+x.adjustWidthTo+vo(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+x.adjustWidthTo-co(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ne.input.prepareSelection())}function rr(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft<z.doc.scrollLeft&&It(z,Math.min(z.display.scroller.scrollLeft,x.maxScrollLeft),!0),z.display.maxLineChanged=!1);var ne=x.focus&&x.focus==Ve();x.preparedSelection&&z.display.input.showSelection(x.preparedSelection,ne),(x.updatedDisplay||x.startHeight!=z.doc.height)&&on(z,x.barMeasure),x.updatedDisplay&&Ia(z,x.barMeasure),x.selectionChanged&&$n(z),z.state.focused&&x.updateInput&&z.display.input.reset(x.typing),ne&&ur(x.cm)}function Yn(x){var z=x.cm,ne=z.display,te=z.doc;if(x.updatedDisplay&&Ii(z,x.update),ne.wheelStartX!=null&&(x.scrollTop!=null||x.scrollLeft!=null||x.scrollToPos)&&(ne.wheelStartX=ne.wheelStartY=null),x.scrollTop!=null&&ut(z,x.scrollTop,x.forceScroll),x.scrollLeft!=null&&It(z,x.scrollLeft,!0,!0),x.scrollToPos){var ae=Ei(z,ma(te,x.scrollToPos.from),ma(te,x.scrollToPos.to),x.scrollToPos.margin);ai(z,ae)}var ce=x.maybeHiddenMarkers,ve=x.maybeUnhiddenMarkers;if(ce)for(var Me=0;Me<ce.length;++Me)ce[Me].lines.length||xr(ce[Me],"hide");if(ve)for(var De=0;De<ve.length;++De)ve[De].lines.length&&xr(ve[De],"unhide");ne.wrapper.offsetHeight&&(te.scrollTop=z.display.scroller.scrollTop),x.changeObjs&&xr(z,"changes",z,x.changeObjs),x.update&&x.update.finish()}function Kn(x,z){if(x.curOp)return z();Pn(x);try{return z()}finally{Wn(x)}}function dr(x,z){return function(){if(x.curOp)return z.apply(x,arguments);Pn(x);try{return z.apply(x,arguments)}finally{Wn(x)}}}function Gn(x){return function(){if(this.curOp)return x.apply(this,arguments);Pn(this);try{return x.apply(this,arguments)}finally{Wn(this)}}}function hr(x){return function(){var z=this.cm;if(!z||z.curOp)return x.apply(this,arguments);Pn(z);try{return x.apply(this,arguments)}finally{Wn(z)}}}function vr(x,z){x.doc.highlightFrontier<x.display.viewTo&&x.state.highlight.set(z,Mt(fr,x))}function fr(x){var z=x.doc;if(!(z.highlightFrontier>=x.display.viewTo)){var ne=+new Date+x.options.workTime,te=Uo(x,z.highlightFrontier),ae=[];z.iter(te.line,Math.min(z.first+z.size,x.display.viewTo+500),function(ce){if(te.line>=x.display.viewFrom){var ve=ce.styles,Me=ce.text.length>x.options.maxHighlightLength?li(z.mode,te.state):null,De=_s(x,ce,te,!0);Me&&(te.state=Me),ce.styles=De.styles;var _e=ce.styleClasses,yt=De.classes;yt?ce.styleClasses=yt:_e&&(ce.styleClasses=null);for(var Lt=!ve||ve.length!=ce.styles.length||_e!=yt&&(!_e||!yt||_e.bgClass!=yt.bgClass||_e.textClass!=yt.textClass),pn=0;!Lt&&pn<ve.length;++pn)Lt=ve[pn]!=ce.styles[pn];Lt&&ae.push(te.line),ce.stateAfter=te.save(),te.nextLine()}else ce.text.length<=x.options.maxHighlightLength&&is(x,ce.text,te),ce.stateAfter=te.line%5==0?te.save():null,te.nextLine();if(+new Date>ne)return vr(x,x.options.workDelay),!0}),z.highlightFrontier=te.line,z.modeFrontier=Math.max(z.modeFrontier,te.line),ae.length&&Kn(x,function(){for(var ce=0;ce<ae.length;ce++)Co(x,ae[ce],"text")})}}var qn=function(x,z,ne){var te=x.display;this.viewport=z,this.visible=Pr(te,x.doc,z),this.editorIsHidden=!te.wrapper.offsetWidth,this.wrapperHeight=te.wrapper.clientHeight,this.wrapperWidth=te.wrapper.clientWidth,this.oldDisplayWidth=co(x),this.force=ne,this.dims=Al(x),this.events=[]};qn.prototype.signal=function(x,z){Ir(x,z)&&this.events.push(arguments)},qn.prototype.finish=function(){for(var x=0;x<this.events.length;x++)xr.apply(null,this.events[x])};function Or(x){var z=x.display;!z.scrollbarsClipped&&z.scroller.offsetWidth&&(z.nativeBarWidth=z.scroller.offsetWidth-z.scroller.clientWidth,z.heightForcer.style.height=vo(x)+"px",z.sizer.style.marginBottom=-z.nativeBarWidth+"px",z.sizer.style.borderRightWidth=vo(x)+"px",z.scrollbarsClipped=!0)}function Vr(x){if(x.hasFocus())return null;var z=Ve();if(!z||!pt(x.display.lineDiv,z))return null;var ne={activeElt:z};if(window.getSelection){var te=window.getSelection();te.anchorNode&&te.extend&&pt(x.display.lineDiv,te.anchorNode)&&(ne.anchorNode=te.anchorNode,ne.anchorOffset=te.anchorOffset,ne.focusNode=te.focusNode,ne.focusOffset=te.focusOffset)}return ne}function Vi(x){if(!(!x||!x.activeElt||x.activeElt==Ve())&&(x.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(x.activeElt.nodeName)&&x.anchorNode&&pt(document.body,x.anchorNode)&&pt(document.body,x.focusNode))){var z=window.getSelection(),ne=document.createRange();ne.setEnd(x.anchorNode,x.anchorOffset),ne.collapse(!1),z.removeAllRanges(),z.addRange(ne),z.extend(x.focusNode,x.focusOffset)}}function Ni(x,z){var ne=x.display,te=x.doc;if(z.editorIsHidden)return Do(x),!1;if(!z.force&&z.visible.from>=ne.viewFrom&&z.visible.to<=ne.viewTo&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo)&&ne.renderedView==ne.view&&Ct(x)==0)return!1;Er(x)&&(Do(x),z.dims=Al(x));var ae=te.first+te.size,ce=Math.max(z.visible.from-x.options.viewportMargin,te.first),ve=Math.min(ae,z.visible.to+x.options.viewportMargin);ne.viewFrom<ce&&ce-ne.viewFrom<20&&(ce=Math.max(te.first,ne.viewFrom)),ne.viewTo>ve&&ne.viewTo-ve<20&&(ve=Math.min(ae,ne.viewTo)),$a&&(ce=Cn(x.doc,ce),ve=Ln(x.doc,ve));var Me=ce!=ne.viewFrom||ve!=ne.viewTo||ne.lastWrapHeight!=z.wrapperHeight||ne.lastWrapWidth!=z.wrapperWidth;Ie(x,ce,ve),ne.viewOffset=Jt(ir(x.doc,ne.viewFrom)),x.display.mover.style.top=ne.viewOffset+"px";var De=Ct(x);if(!Me&&De==0&&!z.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var _e=Vr(x);return De>4&&(ne.lineDiv.style.display="none"),Ci(x,ne.updateLineNumbers,z.dims),De>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,Vi(_e),_t(ne.cursorDiv),_t(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,Me&&(ne.lastWrapHeight=z.wrapperHeight,ne.lastWrapWidth=z.wrapperWidth,vr(x,400)),ne.updateLineNumbers=null,!0}function Ii(x,z){for(var ne=z.viewport,te=!0;;te=!1){if(!te||!x.options.lineWrapping||z.oldDisplayWidth==co(x)){if(ne&&ne.top!=null&&(ne={top:Math.min(x.doc.height+so(x.display)-Ls(x),ne.top)}),z.visible=Pr(x.display,x.doc,ne),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else te&&(z.visible=Pr(x.display,x.doc,ne));if(!Ni(x,z))break;yr(x);var ae=Zt(x);Et(x),on(x,ae),Ia(x,ae),z.force=!1}z.signal(x,"update",x),(x.display.viewFrom!=x.display.reportedViewFrom||x.display.viewTo!=x.display.reportedViewTo)&&(z.signal(x,"viewportChange",x,x.display.viewFrom,x.display.viewTo),x.display.reportedViewFrom=x.display.viewFrom,x.display.reportedViewTo=x.display.viewTo)}function na(x,z){var ne=new qn(x,z);if(Ni(x,ne)){yr(x),Ii(x,ne);var te=Zt(x);Et(x),on(x,te),Ia(x,te),ne.finish()}}function Ci(x,z,ne){var te=x.display,ae=x.options.lineNumbers,ce=te.lineDiv,ve=ce.firstChild;function Me(jn){var pr=jn.nextSibling;return je&&Ze&&x.display.currentWheelTarget==jn?jn.style.display="none":jn.parentNode.removeChild(jn),pr}for(var De=te.view,_e=te.viewFrom,yt=0;yt<De.length;yt++){var Lt=De[yt];if(!Lt.hidden)if(!Lt.node||Lt.node.parentNode!=ce){var pn=Na(x,Lt,_e,ne);ce.insertBefore(pn,ve)}else{for(;ve!=Lt.node;)ve=Me(ve);var sn=ae&&z!=null&&z<=_e&&Lt.lineNumber;Lt.changes&&(Nt(Lt.changes,"gutter")>-1&&(sn=!1),Ki(x,Lt,_e,ne)),sn&&(_t(Lt.lineNumber),Lt.lineNumber.appendChild(document.createTextNode(wa(x.options,_e)))),ve=Lt.node.nextSibling}_e+=Lt.size}for(;ve;)ve=Me(ve)}function ya(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function Ia(x,z){x.display.sizer.style.minHeight=z.docHeight+"px",x.display.heightForcer.style.top=z.docHeight+"px",x.display.gutters.style.height=z.docHeight+x.display.barHeight+vo(x)+"px"}function Qr(x){var z=x.display,ne=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var te=Il(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ae=z.gutters.offsetWidth,ce=te+"px",ve=0;ve<ne.length;ve++)if(!ne[ve].hidden){x.options.fixedGutter&&(ne[ve].gutter&&(ne[ve].gutter.style.left=ce),ne[ve].gutterBackground&&(ne[ve].gutterBackground.style.left=ce));var Me=ne[ve].alignable;if(Me)for(var De=0;De<Me.length;De++)Me[De].style.left=ce}x.options.fixedGutter&&(z.gutters.style.left=te+ae+"px")}}function Er(x){if(!x.options.lineNumbers)return!1;var z=x.doc,ne=wa(x.options,z.first+z.size-1),te=x.display;if(ne.length!=te.lineNumChars){var ae=te.measure.appendChild(st("div",[st("div",ne)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ce=ae.firstChild.offsetWidth,ve=ae.offsetWidth-ce;return te.lineGutter.style.width="",te.lineNumInnerWidth=Math.max(ce,te.lineGutter.offsetWidth-ve)+1,te.lineNumWidth=te.lineNumInnerWidth+ve,te.lineNumChars=te.lineNumInnerWidth?ne.length:-1,te.lineGutter.style.width=te.lineNumWidth+"px",ya(x.display),!0}return!1}function hi(x,z){for(var ne=[],te=!1,ae=0;ae<x.length;ae++){var ce=x[ae],ve=null;if(typeof ce!="string"&&(ve=ce.style,ce=ce.className),ce=="CodeMirror-linenumbers")if(z)te=!0;else continue;ne.push({className:ce,style:ve})}return z&&!te&&ne.push({className:"CodeMirror-linenumbers",style:null}),ne}function Oi(x){var z=x.gutters,ne=x.gutterSpecs;_t(z),x.lineGutter=null;for(var te=0;te<ne.length;++te){var ae=ne[te],ce=ae.className,ve=ae.style,Me=z.appendChild(st("div",null,"CodeMirror-gutter "+ce));ve&&(Me.style.cssText=ve),ce=="CodeMirror-linenumbers"&&(x.lineGutter=Me,Me.style.width=(x.lineNumWidth||1)+"px")}z.style.display=ne.length?"":"none",ya(x)}function gi(x){Oi(x.display),Ea(x),Qr(x)}function Xi(x,z,ne,te){var ae=this;this.input=ne,ae.scrollbarFiller=st("div",null,"CodeMirror-scrollbar-filler"),ae.scrollbarFiller.setAttribute("cm-not-content","true"),ae.gutterFiller=st("div",null,"CodeMirror-gutter-filler"),ae.gutterFiller.setAttribute("cm-not-content","true"),ae.lineDiv=ct("div",null,"CodeMirror-code"),ae.selectionDiv=st("div",null,null,"position: relative; z-index: 1"),ae.cursorDiv=st("div",null,"CodeMirror-cursors"),ae.measure=st("div",null,"CodeMirror-measure"),ae.lineMeasure=st("div",null,"CodeMirror-measure"),ae.lineSpace=ct("div",[ae.measure,ae.lineMeasure,ae.selectionDiv,ae.cursorDiv,ae.lineDiv],null,"position: relative; outline: none");var ce=ct("div",[ae.lineSpace],"CodeMirror-lines");ae.mover=st("div",[ce],null,"position: relative"),ae.sizer=st("div",[ae.mover],"CodeMirror-sizer"),ae.sizerWidth=null,ae.heightForcer=st("div",null,null,"position: absolute; height: "+Rt+"px; width: 1px;"),ae.gutters=st("div",null,"CodeMirror-gutters"),ae.lineGutter=null,ae.scroller=st("div",[ae.sizer,ae.heightForcer,ae.gutters],"CodeMirror-scroll"),ae.scroller.setAttribute("tabIndex","-1"),ae.wrapper=st("div",[ae.scrollbarFiller,ae.gutterFiller,ae.scroller],"CodeMirror"),Pe&&Ne<8&&(ae.gutters.style.zIndex=-1,ae.scroller.style.paddingRight=0),!je&&!(re&&ft)&&(ae.scroller.draggable=!0),x&&(x.appendChild?x.appendChild(ae.wrapper):x(ae.wrapper)),ae.viewFrom=ae.viewTo=z.first,ae.reportedViewFrom=ae.reportedViewTo=z.first,ae.view=[],ae.renderedView=null,ae.externalMeasured=null,ae.viewOffset=0,ae.lastWrapHeight=ae.lastWrapWidth=0,ae.updateLineNumbers=null,ae.nativeBarWidth=ae.barHeight=ae.barWidth=0,ae.scrollbarsClipped=!1,ae.lineNumWidth=ae.lineNumInnerWidth=ae.lineNumChars=null,ae.alignWidgets=!1,ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.maxLine=null,ae.maxLineLength=0,ae.maxLineChanged=!1,ae.wheelDX=ae.wheelDY=ae.wheelStartX=ae.wheelStartY=null,ae.shift=!1,ae.selForContextMenu=null,ae.activeTouch=null,ae.gutterSpecs=hi(te.gutters,te.lineNumbers),Oi(ae),ne.init(ae)}var yi=0,Zi=null;Pe?Zi=-.53:re?Zi=15:ye?Zi=-.7:it&&(Zi=-1/3);function da(x){var z=x.wheelDeltaX,ne=x.wheelDeltaY;return z==null&&x.detail&&x.axis==x.HORIZONTAL_AXIS&&(z=x.detail),ne==null&&x.detail&&x.axis==x.VERTICAL_AXIS?ne=x.detail:ne==null&&(ne=x.wheelDelta),{x:z,y:ne}}function Da(x){var z=da(x);return z.x*=Zi,z.y*=Zi,z}function Ra(x,z){var ne=da(z),te=ne.x,ae=ne.y,ce=x.display,ve=ce.scroller,Me=ve.scrollWidth>ve.clientWidth,De=ve.scrollHeight>ve.clientHeight;if(te&&Me||ae&&De){if(ae&&Ze&&je){e:for(var _e=z.target,yt=ce.view;_e!=ve;_e=_e.parentNode)for(var Lt=0;Lt<yt.length;Lt++)if(yt[Lt].node==_e){x.display.currentWheelTarget=_e;break e}}if(te&&!re&&!qe&&Zi!=null){ae&&De&&ot(x,Math.max(0,ve.scrollTop+ae*Zi)),It(x,Math.max(0,ve.scrollLeft+te*Zi)),(!ae||ae&&De)&&Tr(z),ce.wheelStartX=null;return}if(ae&&Zi!=null){var pn=ae*Zi,sn=x.doc.scrollTop,jn=sn+ce.wrapper.clientHeight;pn<0?sn=Math.max(0,sn+pn-50):jn=Math.min(x.doc.height,jn+pn+50),na(x,{top:sn,bottom:jn})}yi<20&&(ce.wheelStartX==null?(ce.wheelStartX=ve.scrollLeft,ce.wheelStartY=ve.scrollTop,ce.wheelDX=te,ce.wheelDY=ae,setTimeout(function(){if(ce.wheelStartX!=null){var pr=ve.scrollLeft-ce.wheelStartX,Zr=ve.scrollTop-ce.wheelStartY,ui=Zr&&ce.wheelDY&&Zr/ce.wheelDY||pr&&ce.wheelDX&&pr/ce.wheelDX;ce.wheelStartX=ce.wheelStartY=null,ui&&(Zi=(Zi*yi+ui)/(yi+1),++yi)}},200)):(ce.wheelDX+=te,ce.wheelDY+=ae))}}var Hi=function(x,z){this.ranges=x,this.primIndex=z};Hi.prototype.primary=function(){return this.ranges[this.primIndex]},Hi.prototype.equals=function(x){if(x==this)return!0;if(x.primIndex!=this.primIndex||x.ranges.length!=this.ranges.length)return!1;for(var z=0;z<this.ranges.length;z++){var ne=this.ranges[z],te=x.ranges[z];if(!Ms(ne.anchor,te.anchor)||!Ms(ne.head,te.head))return!1}return!0},Hi.prototype.deepCopy=function(){for(var x=[],z=0;z<this.ranges.length;z++)x[z]=new Ai(ms(this.ranges[z].anchor),ms(this.ranges[z].head));return new Hi(x,this.primIndex)},Hi.prototype.somethingSelected=function(){for(var x=0;x<this.ranges.length;x++)if(!this.ranges[x].empty())return!0;return!1},Hi.prototype.contains=function(x,z){z||(z=x);for(var ne=0;ne<this.ranges.length;ne++){var te=this.ranges[ne];if(Ri(z,te.from())>=0&&Ri(x,te.to())<=0)return ne}return-1};var Ai=function(x,z){this.anchor=x,this.head=z};Ai.prototype.from=function(){return io(this.anchor,this.head)},Ai.prototype.to=function(){return Oo(this.anchor,this.head)},Ai.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ba(x,z,ne){var te=x&&x.options.selectionsMayTouch,ae=z[ne];z.sort(function(pn,sn){return Ri(pn.from(),sn.from())}),ne=Nt(z,ae);for(var ce=1;ce<z.length;ce++){var ve=z[ce],Me=z[ce-1],De=Ri(Me.to(),ve.from());if(te&&!ve.empty()?De>0:De>=0){var _e=io(Me.from(),ve.from()),yt=Oo(Me.to(),ve.to()),Lt=Me.empty()?ve.from()==ve.head:Me.from()==Me.head;ce<=ne&&--ne,z.splice(--ce,2,new Ai(Lt?yt:_e,Lt?_e:yt))}}return new Hi(z,ne)}function fa(x,z){return new Hi([new Ai(x,z||x)],0)}function aa(x){return x.text?Qn(x.from.line+x.text.length-1,en(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function qi(x,z){if(Ri(x,z.from)<0)return x;if(Ri(x,z.to)<=0)return aa(z);var ne=x.line+z.text.length-(z.to.line-z.from.line)-1,te=x.ch;return x.line==z.to.line&&(te+=aa(z).ch-z.to.ch),Qn(ne,te)}function Yr(x,z){for(var ne=[],te=0;te<x.sel.ranges.length;te++){var ae=x.sel.ranges[te];ne.push(new Ai(qi(ae.anchor,z),qi(ae.head,z)))}return ba(x.cm,ne,x.sel.primIndex)}function Si(x,z,ne){return x.line==z.line?Qn(ne.line,x.ch-z.ch+ne.ch):Qn(ne.line+(x.line-z.line),x.ch)}function oa(x,z,ne){for(var te=[],ae=Qn(x.first,0),ce=ae,ve=0;ve<z.length;ve++){var Me=z[ve],De=Si(Me.from,ae,ce),_e=Si(aa(Me),ae,ce);if(ae=Me.to,ce=_e,ne=="around"){var yt=x.sel.ranges[ve],Lt=Ri(yt.head,yt.anchor)<0;te[ve]=new Ai(Lt?_e:De,Lt?De:_e)}else te[ve]=new Ai(De,De)}return new Hi(te,x.sel.primIndex)}function $i(x){x.doc.mode=xa(x.options,x.doc.modeOption),Fa(x)}function Fa(x){x.doc.iter(function(z){z.stateAfter&&(z.stateAfter=null),z.styles&&(z.styles=null)}),x.doc.modeFrontier=x.doc.highlightFrontier=x.doc.first,vr(x,100),x.state.modeGen++,x.curOp&&Ea(x)}function ti(x,z){return z.from.ch==0&&z.to.ch==0&&en(z.text)==""&&(!x.cm||x.cm.options.wholeLineUpdateBefore)}function Un(x,z,ne,te){function ae(xi){return ne?ne[xi]:null}function ce(xi,ni,ki){zr(xi,ni,ki,te),Ar(xi,"change",xi,z)}function ve(xi,ni){for(var ki=[],sa=xi;sa<ni;++sa)ki.push(new Bn(_e[sa],ae(sa),te));return ki}var Me=z.from,De=z.to,_e=z.text,yt=ir(x,Me.line),Lt=ir(x,De.line),pn=en(_e),sn=ae(_e.length-1),jn=De.line-Me.line;if(z.full)x.insert(0,ve(0,_e.length)),x.remove(_e.length,x.size-_e.length);else if(ti(x,z)){var pr=ve(0,_e.length-1);ce(Lt,Lt.text,sn),jn&&x.remove(Me.line,jn),pr.length&&x.insert(Me.line,pr)}else if(yt==Lt)if(_e.length==1)ce(yt,yt.text.slice(0,Me.ch)+pn+yt.text.slice(De.ch),sn);else{var Zr=ve(1,_e.length-1);Zr.push(new Bn(pn+yt.text.slice(De.ch),sn,te)),ce(yt,yt.text.slice(0,Me.ch)+_e[0],ae(0)),x.insert(Me.line+1,Zr)}else if(_e.length==1)ce(yt,yt.text.slice(0,Me.ch)+_e[0]+Lt.text.slice(De.ch),ae(0)),x.remove(Me.line+1,jn);else{ce(yt,yt.text.slice(0,Me.ch)+_e[0],ae(0)),ce(Lt,pn+Lt.text.slice(De.ch),sn);var ui=ve(1,_e.length-1);jn>1&&x.remove(Me.line+1,jn-1),x.insert(Me.line+1,ui)}Ar(x,"change",x,z)}function Dr(x,z,ne){function te(ae,ce,ve){if(ae.linked)for(var Me=0;Me<ae.linked.length;++Me){var De=ae.linked[Me];if(De.doc!=ce){var _e=ve&&De.sharedHist;ne&&!_e||(z(De.doc,_e),te(De.doc,ae,_e))}}}te(x,null,!0)}function Hr(x,z){if(z.cm)throw new Error("This document is already in use.");x.doc=z,z.cm=x,Ol(x),$i(x),or(x),x.options.lineWrapping||An(x),x.options.mode=z.modeOption,Ea(x)}function or(x){(x.doc.direction=="rtl"?Qe:Tt)(x.display.lineDiv,"CodeMirror-rtl")}function zi(x){Kn(x,function(){or(x),Ea(x)})}function ga(x){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=x||1}function eo(x,z){var ne={from:ms(z.from),to:aa(z),text:Aa(x,z.from,z.to)};return xs(x,ne,z.from.line,z.to.line+1),Dr(x,function(te){return xs(te,ne,z.from.line,z.to.line+1)},!0),ne}function Qa(x){for(;x.length;){var z=en(x);if(z.ranges)x.pop();else break}}function go(x,z){if(z)return Qa(x.done),en(x.done);if(x.done.length&&!en(x.done).ranges)return en(x.done);if(x.done.length>1&&!x.done[x.done.length-2].ranges)return x.done.pop(),en(x.done)}function to(x,z,ne,te){var ae=x.history;ae.undone.length=0;var ce=+new Date,ve,Me;if((ae.lastOp==te||ae.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&ae.lastModTime>ce-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(ve=go(ae,ae.lastOp==te)))Me=en(ve.changes),Ri(z.from,z.to)==0&&Ri(z.from,Me.to)==0?Me.to=aa(z):ve.changes.push(eo(x,z));else{var De=en(ae.done);for((!De||!De.ranges)&&Ko(x.sel,ae.done),ve={changes:[eo(x,z)],generation:ae.generation},ae.done.push(ve);ae.done.length>ae.undoDepth;)ae.done.shift(),ae.done[0].ranges||ae.done.shift()}ae.done.push(ne),ae.generation=++ae.maxGeneration,ae.lastModTime=ae.lastSelTime=ce,ae.lastOp=ae.lastSelOp=te,ae.lastOrigin=ae.lastSelOrigin=z.origin,Me||xr(x,"historyAdded")}function ts(x,z,ne,te){var ae=z.charAt(0);return ae=="*"||ae=="+"&&ne.ranges.length==te.ranges.length&&ne.somethingSelected()==te.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function Jo(x,z,ne,te){var ae=x.history,ce=te&&te.origin;ne==ae.lastSelOp||ce&&ae.lastSelOrigin==ce&&(ae.lastModTime==ae.lastSelTime&&ae.lastOrigin==ce||ts(x,ce,en(ae.done),z))?ae.done[ae.done.length-1]=z:Ko(z,ae.done),ae.lastSelTime=+new Date,ae.lastSelOrigin=ce,ae.lastSelOp=ne,te&&te.clearRedo!==!1&&Qa(ae.undone)}function Ko(x,z){var ne=en(z);ne&&ne.ranges&&ne.equals(x)||z.push(x)}function xs(x,z,ne,te){var ae=z["spans_"+x.id],ce=0;x.iter(Math.max(x.first,ne),Math.min(x.first+x.size,te),function(ve){ve.markedSpans&&((ae||(ae=z["spans_"+x.id]={}))[ce]=ve.markedSpans),++ce})}function Ns(x){if(!x)return null;for(var z,ne=0;ne<x.length;++ne)x[ne].marker.explicitlyCleared?z||(z=x.slice(0,ne)):z&&z.push(x[ne]);return z?z.length?z:null:x}function ws(x,z){var ne=z["spans_"+x.id];if(!ne)return null;for(var te=[],ae=0;ae<z.text.length;++ae)te.push(Ns(ne[ae]));return te}function vl(x,z){var ne=ws(x,z),te=Ga(x,z);if(!ne)return te;if(!te)return ne;for(var ae=0;ae<ne.length;++ae){var ce=ne[ae],ve=te[ae];if(ce&&ve)e:for(var Me=0;Me<ve.length;++Me){for(var De=ve[Me],_e=0;_e<ce.length;++_e)if(ce[_e].marker==De.marker)continue e;ce.push(De)}else ve&&(ne[ae]=ve)}return ne}function ea(x,z,ne){for(var te=[],ae=0;ae<x.length;++ae){var ce=x[ae];if(ce.ranges){te.push(ne?Hi.prototype.deepCopy.call(ce):ce);continue}var ve=ce.changes,Me=[];te.push({changes:Me});for(var De=0;De<ve.length;++De){var _e=ve[De],yt=void 0;if(Me.push({from:_e.from,to:_e.to,text:_e.text}),z)for(var Lt in _e)(yt=Lt.match(/^spans_(\d+)$/))&&Nt(z,Number(yt[1]))>-1&&(en(Me)[Lt]=_e[Lt],delete _e[Lt])}}return te}function Rr(x,z,ne,te){if(te){var ae=x.anchor;if(ne){var ce=Ri(z,ae)<0;ce!=Ri(ne,ae)<0?(ae=z,z=ne):ce!=Ri(z,ne)<0&&(z=ne)}return new Ai(ae,z)}else return new Ai(ne||z,z)}function Bi(x,z,ne,te,ae){ae==null&&(ae=x.cm&&(x.cm.display.shift||x.extend)),uo(x,new Hi([Rr(x.sel.primary(),z,ne,ae)],0),te)}function Hn(x,z,ne){for(var te=[],ae=x.cm&&(x.cm.display.shift||x.extend),ce=0;ce<x.sel.ranges.length;ce++)te[ce]=Rr(x.sel.ranges[ce],z[ce],null,ae);var ve=ba(x.cm,te,x.sel.primIndex);uo(x,ve,ne)}function Ui(x,z,ne,te){var ae=x.sel.ranges.slice(0);ae[z]=ne,uo(x,ba(x.cm,ae,x.sel.primIndex),te)}function yo(x,z,ne,te){uo(x,fa(z,ne),te)}function fo(x,z,ne){var te={ranges:z.ranges,update:function(ae){this.ranges=[];for(var ce=0;ce<ae.length;ce++)this.ranges[ce]=new Ai(ma(x,ae[ce].anchor),ma(x,ae[ce].head))},origin:ne&&ne.origin};return xr(x,"beforeSelectionChange",x,te),x.cm&&xr(x.cm,"beforeSelectionChange",x.cm,te),te.ranges!=z.ranges?ba(x.cm,te.ranges,te.ranges.length-1):z}function So(x,z,ne){var te=x.history.done,ae=en(te);ae&&ae.ranges?(te[te.length-1]=z,el(x,z,ne)):uo(x,z,ne)}function uo(x,z,ne){el(x,z,ne),Jo(x,x.sel,x.cm?x.cm.curOp.id:NaN,ne)}function el(x,z,ne){(Ir(x,"beforeSelectionChange")||x.cm&&Ir(x.cm,"beforeSelectionChange"))&&(z=fo(x,z,ne));var te=ne&&ne.bias||(Ri(z.primary().head,x.sel.primary().head)<0?-1:1);ds(x,za(x,z,te,!0)),!(ne&&ne.scroll===!1)&&x.cm&&Se(x.cm)}function ds(x,z){z.equals(x.sel)||(x.sel=z,x.cm&&(x.cm.curOp.updateInput=1,x.cm.curOp.selectionChanged=!0,Ji(x.cm)),Ar(x,"cursorActivity",x))}function kl(x){ds(x,za(x,x.sel,null,!1))}function za(x,z,ne,te){for(var ae,ce=0;ce<z.ranges.length;ce++){var ve=z.ranges[ce],Me=z.ranges.length==x.sel.ranges.length&&x.sel.ranges[ce],De=no(x,ve.anchor,Me&&Me.anchor,ne,te),_e=no(x,ve.head,Me&&Me.head,ne,te);(ae||De!=ve.anchor||_e!=ve.head)&&(ae||(ae=z.ranges.slice(0,ce)),ae[ce]=new Ai(De,_e))}return ae?ba(x.cm,ae,z.primIndex):z}function ka(x,z,ne,te,ae){var ce=ir(x,z.line);if(ce.markedSpans)for(var ve=0;ve<ce.markedSpans.length;++ve){var Me=ce.markedSpans[ve],De=Me.marker,_e="selectLeft"in De?!De.selectLeft:De.inclusiveLeft,yt="selectRight"in De?!De.selectRight:De.inclusiveRight;if((Me.from==null||(_e?Me.from<=z.ch:Me.from<z.ch))&&(Me.to==null||(yt?Me.to>=z.ch:Me.to>z.ch))){if(ae&&(xr(De,"beforeCursorEnter"),De.explicitlyCleared))if(ce.markedSpans){--ve;continue}else break;if(!De.atomic)continue;if(ne){var Lt=De.find(te<0?1:-1),pn=void 0;if((te<0?yt:_e)&&(Lt=Za(x,Lt,-te,Lt&&Lt.line==z.line?ce:null)),Lt&&Lt.line==z.line&&(pn=Ri(Lt,ne))&&(te<0?pn<0:pn>0))return ka(x,Lt,z,te,ae)}var sn=De.find(te<0?-1:1);return(te<0?_e:yt)&&(sn=Za(x,sn,te,sn.line==z.line?ce:null)),sn?ka(x,sn,z,te,ae):null}}return z}function no(x,z,ne,te,ae){var ce=te||1,ve=ka(x,z,ne,ce,ae)||!ae&&ka(x,z,ne,ce,!0)||ka(x,z,ne,-ce,ae)||!ae&&ka(x,z,ne,-ce,!0);return ve||(x.cantEdit=!0,Qn(x.first,0))}function Za(x,z,ne,te){return ne<0&&z.ch==0?z.line>x.first?ma(x,Qn(z.line-1)):null:ne>0&&z.ch==(te||ir(x,z.line)).text.length?z.line<x.first+x.size-1?Qn(z.line+1,0):null:new Qn(z.line,z.ch+ne)}function Ao(x){x.setSelection(Qn(x.firstLine(),0),Qn(x.lastLine()),vt)}function Ho(x,z,ne){var te={canceled:!1,from:z.from,to:z.to,text:z.text,origin:z.origin,cancel:function(){return te.canceled=!0}};return ne&&(te.update=function(ae,ce,ve,Me){ae&&(te.from=ma(x,ae)),ce&&(te.to=ma(x,ce)),ve&&(te.text=ve),Me!==void 0&&(te.origin=Me)}),xr(x,"beforeChange",x,te),x.cm&&xr(x.cm,"beforeChange",x.cm,te),te.canceled?(x.cm&&(x.cm.curOp.updateInput=2),null):{from:te.from,to:te.to,text:te.text,origin:te.origin}}function Di(x,z,ne){if(x.cm){if(!x.cm.curOp)return dr(x.cm,Di)(x,z,ne);if(x.cm.state.suppressEdits)return}if(!((Ir(x,"beforeChange")||x.cm&&Ir(x.cm,"beforeChange"))&&(z=Ho(x,z,!0),!z))){var te=es&&!ne&&Wo(x,z.from,z.to);if(te)for(var ae=te.length-1;ae>=0;--ae)Qi(x,{from:te[ae].from,to:te[ae].to,text:ae?[""]:z.text,origin:z.origin});else Qi(x,z)}}function Qi(x,z){if(!(z.text.length==1&&z.text[0]==""&&Ri(z.from,z.to)==0)){var ne=Yr(x,z);to(x,z,ne,x.cm?x.cm.curOp.id:NaN),ho(x,z,ne,Ga(x,z));var te=[];Dr(x,function(ae,ce){!ce&&Nt(te,ae.history)==-1&&(Xo(ae.history,z),te.push(ae.history)),ho(ae,z,null,Ga(ae,z))})}}function Va(x,z,ne){var te=x.cm&&x.cm.state.suppressEdits;if(!(te&&!ne)){for(var ae=x.history,ce,ve=x.sel,Me=z=="undo"?ae.done:ae.undone,De=z=="undo"?ae.undone:ae.done,_e=0;_e<Me.length&&(ce=Me[_e],!(ne?ce.ranges&&!ce.equals(x.sel):!ce.ranges));_e++);if(_e!=Me.length){for(ae.lastOrigin=ae.lastSelOrigin=null;;)if(ce=Me.pop(),ce.ranges){if(Ko(ce,De),ne&&!ce.equals(x.sel)){uo(x,ce,{clearRedo:!1});return}ve=ce}else if(te){Me.push(ce);return}else break;var yt=[];Ko(ve,De),De.push({changes:yt,generation:ae.generation}),ae.generation=ce.generation||++ae.maxGeneration;for(var Lt=Ir(x,"beforeChange")||x.cm&&Ir(x.cm,"beforeChange"),pn=function(pr){var Zr=ce.changes[pr];if(Zr.origin=z,Lt&&!Ho(x,Zr,!1))return Me.length=0,{};yt.push(eo(x,Zr));var ui=pr?Yr(x,Zr):en(Me);ho(x,Zr,ui,vl(x,Zr)),!pr&&x.cm&&x.cm.scrollIntoView({from:Zr.from,to:aa(Zr)});var xi=[];Dr(x,function(ni,ki){!ki&&Nt(xi,ni.history)==-1&&(Xo(ni.history,Zr),xi.push(ni.history)),ho(ni,Zr,null,vl(ni,Zr))})},sn=ce.changes.length-1;sn>=0;--sn){var jn=pn(sn);if(jn)return jn.v}}}}function ko(x,z){if(z!=0&&(x.first+=z,x.sel=new Hi(En(x.sel.ranges,function(ae){return new Ai(Qn(ae.anchor.line+z,ae.anchor.ch),Qn(ae.head.line+z,ae.head.ch))}),x.sel.primIndex),x.cm)){Ea(x.cm,x.first,x.first-z,z);for(var ne=x.cm.display,te=ne.viewFrom;te<ne.viewTo;te++)Co(x.cm,te,"gutter")}}function ho(x,z,ne,te){if(x.cm&&!x.cm.curOp)return dr(x.cm,ho)(x,z,ne,te);if(z.to.line<x.first){ko(x,z.text.length-1-(z.to.line-z.from.line));return}if(!(z.from.line>x.lastLine())){if(z.from.line<x.first){var ae=z.text.length-1-(x.first-z.from.line);ko(x,ae),z={from:Qn(x.first,0),to:Qn(z.to.line+ae,z.to.ch),text:[en(z.text)],origin:z.origin}}var ce=x.lastLine();z.to.line>ce&&(z={from:z.from,to:Qn(ce,ir(x,ce).text.length),text:[z.text[0]],origin:z.origin}),z.removed=Aa(x,z.from,z.to),ne||(ne=Yr(x,z)),x.cm?fs(x.cm,z,te):Un(x,z,te),el(x,ne,vt),x.cantEdit&&no(x,Qn(x.firstLine(),0))&&(x.cantEdit=!1)}}function fs(x,z,ne){var te=x.doc,ae=x.display,ce=z.from,ve=z.to,Me=!1,De=ce.line;x.options.lineWrapping||(De=va(St(ir(te,ce.line))),te.iter(De,ve.line+1,function(sn){if(sn==ae.maxLine)return Me=!0,!0})),te.sel.contains(z.from,z.to)>-1&&Ji(x),Un(te,z,ne,Jl(x)),x.options.lineWrapping||(te.iter(De,ce.line+z.text.length,function(sn){var jn=bn(sn);jn>ae.maxLineLength&&(ae.maxLine=sn,ae.maxLineLength=jn,ae.maxLineChanged=!0,Me=!1)}),Me&&(x.curOp.updateMaxLine=!0)),al(te,ce.line),vr(x,400);var _e=z.text.length-(ve.line-ce.line)-1;z.full?Ea(x):ce.line==ve.line&&z.text.length==1&&!ti(x.doc,z)?Co(x,ce.line,"text"):Ea(x,ce.line,ve.line+1,_e);var yt=Ir(x,"changes"),Lt=Ir(x,"change");if(Lt||yt){var pn={from:ce,to:ve,text:z.text,removed:z.removed,origin:z.origin};Lt&&Ar(x,"change",x,pn),yt&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(pn)}x.display.selForContextMenu=null}function Fo(x,z,ne,te,ae){var ce;te||(te=ne),Ri(te,ne)<0&&(ce=[te,ne],ne=ce[0],te=ce[1]),typeof z=="string"&&(z=x.splitLines(z)),Di(x,{from:ne,to:te,text:z,origin:ae})}function yl(x,z,ne,te){ne<x.line?x.line+=te:z<x.line&&(x.line=z,x.ch=0)}function tl(x,z,ne,te){for(var ae=0;ae<x.length;++ae){var ce=x[ae],ve=!0;if(ce.ranges){ce.copied||(ce=x[ae]=ce.deepCopy(),ce.copied=!0);for(var Me=0;Me<ce.ranges.length;Me++)yl(ce.ranges[Me].anchor,z,ne,te),yl(ce.ranges[Me].head,z,ne,te);continue}for(var De=0;De<ce.changes.length;++De){var _e=ce.changes[De];if(ne<_e.from.line)_e.from=Qn(_e.from.line+te,_e.from.ch),_e.to=Qn(_e.to.line+te,_e.to.ch);else if(z<=_e.to.line){ve=!1;break}}ve||(x.splice(0,ae+1),ae=0)}}function Xo(x,z){var ne=z.from.line,te=z.to.line,ae=z.text.length-(te-ne)-1;tl(x.done,ne,te,ae),tl(x.undone,ne,te,ae)}function ns(x,z,ne,te){var ae=z,ce=z;return typeof z=="number"?ce=ir(x,rl(x,z)):ae=va(z),ae==null?null:(te(ce,ae)&&x.cm&&Co(x.cm,ae,ne),ce)}function Rl(x){this.lines=x,this.parent=null;for(var z=0,ne=0;ne<x.length;++ne)x[ne].parent=this,z+=x[ne].height;this.height=z}Rl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(x,z){for(var ne=x,te=x+z;ne<te;++ne){var ae=this.lines[ne];this.height-=ae.height,ei(ae),Ar(ae,"delete")}this.lines.splice(x,z)},collapse:function(x){x.push.apply(x,this.lines)},insertInner:function(x,z,ne){this.height+=ne,this.lines=this.lines.slice(0,x).concat(z).concat(this.lines.slice(x));for(var te=0;te<z.length;++te)z[te].parent=this},iterN:function(x,z,ne){for(var te=x+z;x<te;++x)if(ne(this.lines[x]))return!0}};function Nu(x){this.children=x;for(var z=0,ne=0,te=0;te<x.length;++te){var ae=x[te];z+=ae.chunkSize(),ne+=ae.height,ae.parent=this}this.size=z,this.height=ne,this.parent=null}Nu.prototype={chunkSize:function(){return this.size},removeInner:function(x,z){this.size-=z;for(var ne=0;ne<this.children.length;++ne){var te=this.children[ne],ae=te.chunkSize();if(x<ae){var ce=Math.min(z,ae-x),ve=te.height;if(te.removeInner(x,ce),this.height-=ve-te.height,ae==ce&&(this.children.splice(ne--,1),te.parent=null),(z-=ce)==0)break;x=0}else x-=ae}if(this.size-z<25&&(this.children.length>1||!(this.children[0]instanceof Rl))){var Me=[];this.collapse(Me),this.children=[new Rl(Me)],this.children[0].parent=this}},collapse:function(x){for(var z=0;z<this.children.length;++z)this.children[z].collapse(x)},insertInner:function(x,z,ne){this.size+=z.length,this.height+=ne;for(var te=0;te<this.children.length;++te){var ae=this.children[te],ce=ae.chunkSize();if(x<=ce){if(ae.insertInner(x,z,ne),ae.lines&&ae.lines.length>50){for(var ve=ae.lines.length%25+25,Me=ve;Me<ae.lines.length;){var De=new Rl(ae.lines.slice(Me,Me+=25));ae.height-=De.height,this.children.splice(++te,0,De),De.parent=this}ae.lines=ae.lines.slice(0,ve),this.maybeSpill()}break}x-=ce}},maybeSpill:function(){if(!(this.children.length<=10)){var x=this;do{var z=x.children.splice(x.children.length-5,5),ne=new Nu(z);if(x.parent){x.size-=ne.size,x.height-=ne.height;var ae=Nt(x.parent.children,x);x.parent.children.splice(ae+1,0,ne)}else{var te=new Nu(x.children);te.parent=x,x.children=[te,ne],x=te}ne.parent=x.parent}while(x.children.length>10);x.parent.maybeSpill()}},iterN:function(x,z,ne){for(var te=0;te<this.children.length;++te){var ae=this.children[te],ce=ae.chunkSize();if(x<ce){var ve=Math.min(z,ce-x);if(ae.iterN(x,ve,ne))return!0;if((z-=ve)==0)break;x=0}else x-=ce}}};var Iu=function(x,z,ne){if(ne)for(var te in ne)ne.hasOwnProperty(te)&&(this[te]=ne[te]);this.doc=x,this.node=z};Iu.prototype.clear=function(){var x=this.doc.cm,z=this.line.widgets,ne=this.line,te=va(ne);if(!(te==null||!z)){for(var ae=0;ae<z.length;++ae)z[ae]==this&&z.splice(ae--,1);z.length||(ne.widgets=null);var ce=js(this);Ca(ne,Math.max(0,ne.height-ce)),x&&(Kn(x,function(){jc(x,ne,-ce),Co(x,te,"widget")}),Ar(x,"lineWidgetCleared",x,this,te))}},Iu.prototype.changed=function(){var x=this,z=this.height,ne=this.doc.cm,te=this.line;this.height=null;var ae=js(this)-z;ae&&(Mn(this.doc,te)||Ca(te,te.height+ae),ne&&Kn(ne,function(){ne.curOp.forceUpdate=!0,jc(ne,te,ae),Ar(ne,"lineWidgetChanged",ne,x,va(te))}))},Wr(Iu);function jc(x,z,ne){Jt(z)<(x.curOp&&x.curOp.scrollTop||x.doc.scrollTop)&&dt(x,ne)}function Gc(x,z,ne,te){var ae=new Iu(x,ne,te),ce=x.cm;return ce&&ae.noHScroll&&(ce.display.alignWidgets=!0),ns(x,z,"widget",function(ve){var Me=ve.widgets||(ve.widgets=[]);if(ae.insertAt==null?Me.push(ae):Me.splice(Math.min(Me.length-1,Math.max(0,ae.insertAt)),0,ae),ae.line=ve,ce&&!Mn(x,ve)){var De=Jt(ve)<x.scrollTop;Ca(ve,ve.height+js(ae)),De&&dt(ce,ae.height),ce.curOp.forceUpdate=!0}return!0}),ce&&Ar(ce,"lineWidgetAdded",ce,ae,typeof z=="number"?z:va(z)),ae}var Ac=0,Xl=function(x,z){this.lines=[],this.type=z,this.doc=x,this.id=++Ac};Xl.prototype.clear=function(){if(!this.explicitlyCleared){var x=this.doc.cm,z=x&&!x.curOp;if(z&&Pn(x),Ir(this,"clear")){var ne=this.find();ne&&Ar(this,"clear",ne.from,ne.to)}for(var te=null,ae=null,ce=0;ce<this.lines.length;++ce){var ve=this.lines[ce],Me=pl(ve.markedSpans,this);x&&!this.collapsed?Co(x,va(ve),"text"):x&&(Me.to!=null&&(ae=va(ve)),Me.from!=null&&(te=va(ve))),ve.markedSpans=os(ve.markedSpans,Me),Me.from==null&&this.collapsed&&!Mn(this.doc,ve)&&x&&Ca(ve,Vl(x.display))}if(x&&this.collapsed&&!x.options.lineWrapping)for(var De=0;De<this.lines.length;++De){var _e=St(this.lines[De]),yt=bn(_e);yt>x.display.maxLineLength&&(x.display.maxLine=_e,x.display.maxLineLength=yt,x.display.maxLineChanged=!0)}te!=null&&x&&this.collapsed&&Ea(x,te,ae+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&kl(x.doc)),x&&Ar(x,"markerCleared",x,this,te,ae),z&&Wn(x),this.parent&&this.parent.clear()}},Xl.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var ne,te,ae=0;ae<this.lines.length;++ae){var ce=this.lines[ae],ve=pl(ce.markedSpans,this);if(ve.from!=null&&(ne=Qn(z?ce:va(ce),ve.from),x==-1))return ne;if(ve.to!=null&&(te=Qn(z?ce:va(ce),ve.to),x==1))return te}return ne&&{from:ne,to:te}},Xl.prototype.changed=function(){var x=this,z=this.find(-1,!0),ne=this,te=this.doc.cm;!z||!te||Kn(te,function(){var ae=z.line,ce=va(z.line),ve=cs(te,ce);if(ve&&(Ps(ve),te.curOp.selectionChanged=te.curOp.forceUpdate=!0),te.curOp.updateMaxLine=!0,!Mn(ne.doc,ae)&&ne.height!=null){var Me=ne.height;ne.height=null;var De=js(ne)-Me;De&&Ca(ae,ae.height+De)}Ar(te,"markerChanged",te,x)})},Xl.prototype.attachLine=function(x){if(!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(!z.maybeHiddenMarkers||Nt(z.maybeHiddenMarkers,this)==-1)&&(z.maybeUnhiddenMarkers||(z.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(x)},Xl.prototype.detachLine=function(x){if(this.lines.splice(Nt(this.lines,x),1),!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(z.maybeHiddenMarkers||(z.maybeHiddenMarkers=[])).push(this)}},Wr(Xl);function _a(x,z,ne,te,ae){if(te&&te.shared)return Ua(x,z,ne,te,ae);if(x.cm&&!x.cm.curOp)return dr(x.cm,_a)(x,z,ne,te,ae);var ce=new Xl(x,ae),ve=Ri(z,ne);if(te&&jt(te,ce,!1),ve>0||ve==0&&ce.clearWhenEmpty!==!1)return ce;if(ce.replacedWith&&(ce.collapsed=!0,ce.widgetNode=ct("span",[ce.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||ce.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(ce.widgetNode.insertLeft=!0)),ce.collapsed){if(ht(x,z.line,z,ne,ce)||z.line!=ne.line&&ht(x,ne.line,z,ne,ce))throw new Error("Inserting collapsed marker partially overlapping an existing one");Xs()}ce.addToHistory&&to(x,{from:z,to:ne,origin:"markText"},x.sel,NaN);var Me=z.line,De=x.cm,_e;if(x.iter(Me,ne.line+1,function(Lt){De&&ce.collapsed&&!De.options.lineWrapping&&St(Lt)==De.display.maxLine&&(_e=!0),ce.collapsed&&Me!=z.line&&Ca(Lt,0),ss(Lt,new as(ce,Me==z.line?z.ch:null,Me==ne.line?ne.ch:null)),++Me}),ce.collapsed&&x.iter(z.line,ne.line+1,function(Lt){Mn(x,Lt)&&Ca(Lt,0)}),ce.clearOnEnter&&rn(ce,"beforeCursorEnter",function(){return ce.clear()}),ce.readOnly&&(Bs(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),ce.collapsed&&(ce.id=++Ac,ce.atomic=!0),De){if(_e&&(De.curOp.updateMaxLine=!0),ce.collapsed)Ea(De,z.line,ne.line+1);else if(ce.className||ce.startStyle||ce.endStyle||ce.css||ce.attributes||ce.title)for(var yt=z.line;yt<=ne.line;yt++)Co(De,yt,"text");ce.atomic&&kl(De.doc),Ar(De,"markerAdded",De,ce)}return ce}var di=function(x,z){this.markers=x,this.primary=z;for(var ne=0;ne<x.length;++ne)x[ne].parent=this};di.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var x=0;x<this.markers.length;++x)this.markers[x].clear();Ar(this,"clear")}},di.prototype.find=function(x,z){return this.primary.find(x,z)},Wr(di);function Ua(x,z,ne,te,ae){te=jt(te),te.shared=!1;var ce=[_a(x,z,ne,te,ae)],ve=ce[0],Me=te.widgetNode;return Dr(x,function(De){Me&&(te.widgetNode=Me.cloneNode(!0)),ce.push(_a(De,ma(De,z),ma(De,ne),te,ae));for(var _e=0;_e<De.linked.length;++_e)if(De.linked[_e].isParent)return;ve=en(ce)}),new di(ce,ve)}function Es(x){return x.findMarks(Qn(x.first,0),x.clipPos(Qn(x.lastLine())),function(z){return z.parent})}function Cs(x,z){for(var ne=0;ne<z.length;ne++){var te=z[ne],ae=te.find(),ce=x.clipPos(ae.from),ve=x.clipPos(ae.to);if(Ri(ce,ve)){var Me=_a(x,ce,ve,te.primary,te.primary.type);te.markers.push(Me),Me.parent=te}}}function Zo(x){for(var z=function(te){var ae=x[te],ce=[ae.primary.doc];Dr(ae.primary.doc,function(De){return ce.push(De)});for(var ve=0;ve<ae.markers.length;ve++){var Me=ae.markers[ve];Nt(ce,Me.doc)==-1&&(Me.parent=null,ae.markers.splice(ve--,1))}},ne=0;ne<x.length;ne++)z(ne)}var _l=0,zo=function(x,z,ne,te,ae){if(!(this instanceof zo))return new zo(x,z,ne,te,ae);ne==null&&(ne=0),Nu.call(this,[new Rl([new Bn("",null)])]),this.first=ne,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ne;var ce=Qn(ne,0);this.sel=fa(ce),this.history=new ga(null),this.id=++_l,this.modeOption=z,this.lineSep=te,this.direction=ae=="rtl"?"rtl":"ltr",this.extend=!1,typeof x=="string"&&(x=this.splitLines(x)),Un(this,{from:ce,to:ce,text:x}),uo(this,fa(ce),vt)};zo.prototype=se(Nu.prototype,{constructor:zo,iter:function(x,z,ne){ne?this.iterN(x-this.first,z-x,ne):this.iterN(this.first,this.first+this.size,x)},insert:function(x,z){for(var ne=0,te=0;te<z.length;++te)ne+=z[te].height;this.insertInner(x-this.first,z,ne)},remove:function(x,z){this.removeInner(x-this.first,z)},getValue:function(x){var z=Ka(this,this.first,this.first+this.size);return x===!1?z:z.join(x||this.lineSeparator())},setValue:hr(function(x){var z=Qn(this.first,0),ne=this.first+this.size-1;Di(this,{from:z,to:Qn(ne,ir(this,ne).text.length),text:this.splitLines(x),origin:"setValue",full:!0},!0),this.cm&&at(this.cm,0,0),uo(this,fa(z),vt)}),replaceRange:function(x,z,ne,te){z=ma(this,z),ne=ne?ma(this,ne):z,Fo(this,x,z,ne,te)},getRange:function(x,z,ne){var te=Aa(this,ma(this,x),ma(this,z));return ne===!1?te:te.join(ne||this.lineSeparator())},getLine:function(x){var z=this.getLineHandle(x);return z&&z.text},getLineHandle:function(x){if(ja(this,x))return ir(this,x)},getLineNumber:function(x){return va(x)},getLineHandleVisualStart:function(x){return typeof x=="number"&&(x=ir(this,x)),St(x)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(x){return ma(this,x)},getCursor:function(x){var z=this.sel.primary(),ne;return x==null||x=="head"?ne=z.head:x=="anchor"?ne=z.anchor:x=="end"||x=="to"||x===!1?ne=z.to():ne=z.from(),ne},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:hr(function(x,z,ne){yo(this,ma(this,typeof x=="number"?Qn(x,z||0):x),null,ne)}),setSelection:hr(function(x,z,ne){yo(this,ma(this,x),ma(this,z||x),ne)}),extendSelection:hr(function(x,z,ne){Bi(this,ma(this,x),z&&ma(this,z),ne)}),extendSelections:hr(function(x,z){Hn(this,zn(this,x),z)}),extendSelectionsBy:hr(function(x,z){var ne=En(this.sel.ranges,x);Hn(this,zn(this,ne),z)}),setSelections:hr(function(x,z,ne){if(x.length){for(var te=[],ae=0;ae<x.length;ae++)te[ae]=new Ai(ma(this,x[ae].anchor),ma(this,x[ae].head));z==null&&(z=Math.min(x.length-1,this.sel.primIndex)),uo(this,ba(this.cm,te,z),ne)}}),addSelection:hr(function(x,z,ne){var te=this.sel.ranges.slice(0);te.push(new Ai(ma(this,x),ma(this,z||x))),uo(this,ba(this.cm,te,te.length-1),ne)}),getSelection:function(x){for(var z=this.sel.ranges,ne,te=0;te<z.length;te++){var ae=Aa(this,z[te].from(),z[te].to());ne=ne?ne.concat(ae):ae}return x===!1?ne:ne.join(x||this.lineSeparator())},getSelections:function(x){for(var z=[],ne=this.sel.ranges,te=0;te<ne.length;te++){var ae=Aa(this,ne[te].from(),ne[te].to());x!==!1&&(ae=ae.join(x||this.lineSeparator())),z[te]=ae}return z},replaceSelection:function(x,z,ne){for(var te=[],ae=0;ae<this.sel.ranges.length;ae++)te[ae]=x;this.replaceSelections(te,z,ne||"+input")},replaceSelections:hr(function(x,z,ne){for(var te=[],ae=this.sel,ce=0;ce<ae.ranges.length;ce++){var ve=ae.ranges[ce];te[ce]={from:ve.from(),to:ve.to(),text:this.splitLines(x[ce]),origin:ne}}for(var Me=z&&z!="end"&&oa(this,te,z),De=te.length-1;De>=0;De--)Di(this,te[De]);Me?So(this,Me):this.cm&&Se(this.cm)}),undo:hr(function(){Va(this,"undo")}),redo:hr(function(){Va(this,"redo")}),undoSelection:hr(function(){Va(this,"undo",!0)}),redoSelection:hr(function(){Va(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,z=0,ne=0,te=0;te<x.done.length;te++)x.done[te].ranges||++z;for(var ae=0;ae<x.undone.length;ae++)x.undone[ae].ranges||++ne;return{undo:z,redo:ne}},clearHistory:function(){var x=this;this.history=new ga(this.history.maxGeneration),Dr(this,function(z){return z.history=x.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(x){return x&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(x){return this.history.generation==(x||this.cleanGeneration)},getHistory:function(){return{done:ea(this.history.done),undone:ea(this.history.undone)}},setHistory:function(x){var z=this.history=new ga(this.history.maxGeneration);z.done=ea(x.done.slice(0),null,!0),z.undone=ea(x.undone.slice(0),null,!0)},setGutterMarker:hr(function(x,z,ne){return ns(this,x,"gutter",function(te){var ae=te.gutterMarkers||(te.gutterMarkers={});return ae[z]=ne,!ne&&le(ae)&&(te.gutterMarkers=null),!0})}),clearGutter:hr(function(x){var z=this;this.iter(function(ne){ne.gutterMarkers&&ne.gutterMarkers[x]&&ns(z,ne,"gutter",function(){return ne.gutterMarkers[x]=null,le(ne.gutterMarkers)&&(ne.gutterMarkers=null),!0})})}),lineInfo:function(x){var z;if(typeof x=="number"){if(!ja(this,x)||(z=x,x=ir(this,x),!x))return null}else if(z=va(x),z==null)return null;return{line:z,handle:x,text:x.text,gutterMarkers:x.gutterMarkers,textClass:x.textClass,bgClass:x.bgClass,wrapClass:x.wrapClass,widgets:x.widgets}},addLineClass:hr(function(x,z,ne){return ns(this,x,z=="gutter"?"gutter":"class",function(te){var ae=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass";if(!te[ae])te[ae]=ne;else{if(lt(ne).test(te[ae]))return!1;te[ae]+=" "+ne}return!0})}),removeLineClass:hr(function(x,z,ne){return ns(this,x,z=="gutter"?"gutter":"class",function(te){var ae=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass",ce=te[ae];if(ce)if(ne==null)te[ae]=null;else{var ve=ce.match(lt(ne));if(!ve)return!1;var Me=ve.index+ve[0].length;te[ae]=ce.slice(0,ve.index)+(!ve.index||Me==ce.length?"":" ")+ce.slice(Me)||null}else return!1;return!0})}),addLineWidget:hr(function(x,z,ne){return Gc(this,x,z,ne)}),removeLineWidget:function(x){x.clear()},markText:function(x,z,ne){return _a(this,ma(this,x),ma(this,z),ne,ne&&ne.type||"range")},setBookmark:function(x,z){var ne={replacedWith:z&&(z.nodeType==null?z.widget:z),insertLeft:z&&z.insertLeft,clearWhenEmpty:!1,shared:z&&z.shared,handleMouseEvents:z&&z.handleMouseEvents};return x=ma(this,x),_a(this,x,x,ne,"bookmark")},findMarksAt:function(x){x=ma(this,x);var z=[],ne=ir(this,x.line).markedSpans;if(ne)for(var te=0;te<ne.length;++te){var ae=ne[te];(ae.from==null||ae.from<=x.ch)&&(ae.to==null||ae.to>=x.ch)&&z.push(ae.marker.parent||ae.marker)}return z},findMarks:function(x,z,ne){x=ma(this,x),z=ma(this,z);var te=[],ae=x.line;return this.iter(x.line,z.line+1,function(ce){var ve=ce.markedSpans;if(ve)for(var Me=0;Me<ve.length;Me++){var De=ve[Me];!(De.to!=null&&ae==x.line&&x.ch>=De.to||De.from==null&&ae!=x.line||De.from!=null&&ae==z.line&&De.from>=z.ch)&&(!ne||ne(De.marker))&&te.push(De.marker.parent||De.marker)}++ae}),te},getAllMarks:function(){var x=[];return this.iter(function(z){var ne=z.markedSpans;if(ne)for(var te=0;te<ne.length;++te)ne[te].from!=null&&x.push(ne[te].marker)}),x},posFromIndex:function(x){var z,ne=this.first,te=this.lineSeparator().length;return this.iter(function(ae){var ce=ae.text.length+te;if(ce>x)return z=x,!0;x-=ce,++ne}),ma(this,Qn(ne,z))},indexFromPos:function(x){x=ma(this,x);var z=x.ch;if(x.line<this.first||x.ch<0)return 0;var ne=this.lineSeparator().length;return this.iter(this.first,x.line,function(te){z+=te.text.length+ne}),z},copy:function(x){var z=new zo(Ka(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return z.scrollTop=this.scrollTop,z.scrollLeft=this.scrollLeft,z.sel=this.sel,z.extend=!1,x&&(z.history.undoDepth=this.history.undoDepth,z.setHistory(this.getHistory())),z},linkedDoc:function(x){x||(x={});var z=this.first,ne=this.first+this.size;x.from!=null&&x.from>z&&(z=x.from),x.to!=null&&x.to<ne&&(ne=x.to);var te=new zo(Ka(this,z,ne),x.mode||this.modeOption,z,this.lineSep,this.direction);return x.sharedHist&&(te.history=this.history),(this.linked||(this.linked=[])).push({doc:te,sharedHist:x.sharedHist}),te.linked=[{doc:this,isParent:!0,sharedHist:x.sharedHist}],Cs(te,Es(this)),te},unlinkDoc:function(x){if(x instanceof La&&(x=x.doc),this.linked)for(var z=0;z<this.linked.length;++z){var ne=this.linked[z];if(ne.doc==x){this.linked.splice(z,1),x.unlinkDoc(this),Zo(Es(this));break}}if(x.history==this.history){var te=[x.id];Dr(x,function(ae){return te.push(ae.id)},!0),x.history=new ga(null),x.history.done=ea(this.history.done,te),x.history.undone=ea(this.history.undone,te)}},iterLinkedDocs:function(x){Dr(this,x)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(x){return this.lineSep?x.split(this.lineSep):vn(x)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:hr(function(x){x!="rtl"&&(x="ltr"),x!=this.direction&&(this.direction=x,this.iter(function(z){return z.order=null}),this.cm&&zi(this.cm))})}),zo.prototype.eachLine=zo.prototype.iter;var ql=0;function Ou(x){var z=this;if(dc(z),!(wr(z,x)||us(z.display,x))){Tr(x),Pe&&(ql=+new Date);var ne=Fl(z,x,!0),te=x.dataTransfer.files;if(!(!ne||z.isReadOnly()))if(te&&te.length&&window.FileReader&&window.File)for(var ae=te.length,ce=Array(ae),ve=0,Me=function(){++ve==ae&&dr(z,function(){ne=ma(z.doc,ne);var sn={from:ne,to:ne,text:z.doc.splitLines(ce.filter(function(jn){return jn!=null}).join(z.doc.lineSeparator())),origin:"paste"};Di(z.doc,sn),So(z.doc,fa(ma(z.doc,ne),ma(z.doc,aa(sn))))})()},De=function(sn,jn){if(z.options.allowDropFileTypes&&Nt(z.options.allowDropFileTypes,sn.type)==-1){Me();return}var pr=new FileReader;pr.onerror=function(){return Me()},pr.onload=function(){var Zr=pr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Zr)){Me();return}ce[jn]=Zr,Me()},pr.readAsText(sn)},_e=0;_e<te.length;_e++)De(te[_e],_e);else{if(z.state.draggingText&&z.doc.sel.contains(ne)>-1){z.state.draggingText(x),setTimeout(function(){return z.display.input.focus()},20);return}try{var yt=x.dataTransfer.getData("Text");if(yt){var Lt;if(z.state.draggingText&&!z.state.draggingText.copy&&(Lt=z.listSelections()),el(z.doc,fa(ne,ne)),Lt)for(var pn=0;pn<Lt.length;++pn)Fo(z.doc,"",Lt[pn].anchor,Lt[pn].head,"drag");z.replaceSelection(yt,"around","paste"),z.display.input.focus()}}catch(sn){}}}}function vu(x,z){if(Pe&&(!x.state.draggingText||+new Date-ql<100)){Wi(z);return}if(!(wr(x,z)||us(x.display,z))&&(z.dataTransfer.setData("Text",x.getSelection()),z.dataTransfer.effectAllowed="copyMove",z.dataTransfer.setDragImage&&!it)){var ne=st("img",null,null,"position: fixed; left: 0; top: 0;");ne.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",qe&&(ne.width=ne.height=1,x.display.wrapper.appendChild(ne),ne._top=ne.offsetTop),z.dataTransfer.setDragImage(ne,0,0),qe&&ne.parentNode.removeChild(ne)}}function cc(x,z){var ne=Fl(x,z);if(ne){var te=document.createDocumentFragment();hn(x,ne,te),x.display.dragCursor||(x.display.dragCursor=st("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv)),Ot(x.display.dragCursor,te)}}function dc(x){x.display.dragCursor&&(x.display.lineSpace.removeChild(x.display.dragCursor),x.display.dragCursor=null)}function fc(x){if(document.getElementsByClassName){for(var z=document.getElementsByClassName("CodeMirror"),ne=[],te=0;te<z.length;te++){var ae=z[te].CodeMirror;ae&&ne.push(ae)}ne.length&&ne[0].operation(function(){for(var ce=0;ce<ne.length;ce++)x(ne[ce])})}}var Nr=!1;function Cd(){Nr||(Qc(),Nr=!0)}function Qc(){var x;rn(window,"resize",function(){x==null&&(x=setTimeout(function(){x=null,fc(Yc)},100))}),rn(window,"blur",function(){return fc(ii)})}function Yc(x){var z=x.display;z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.scrollbarsClipped=!1,x.setSize()}for(var ou={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},kc=0;kc<10;kc++)ou[kc+48]=ou[kc+96]=String(kc);for(var Jc=65;Jc<=90;Jc++)ou[Jc]=String.fromCharCode(Jc);for(var Mc=1;Mc<=12;Mc++)ou[Mc+111]=ou[Mc+63235]="F"+Mc;var Lo={};Lo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Lo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Lo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Lo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Lo.default=Ze?Lo.macDefault:Lo.pcDefault;function nh(x){var z=x.split(/-(?!$)/);x=z[z.length-1];for(var ne,te,ae,ce,ve=0;ve<z.length-1;ve++){var Me=z[ve];if(/^(cmd|meta|m)$/i.test(Me))ce=!0;else if(/^a(lt)?$/i.test(Me))ne=!0;else if(/^(c|ctrl|control)$/i.test(Me))te=!0;else if(/^s(hift)?$/i.test(Me))ae=!0;else throw new Error("Unrecognized modifier name: "+Me)}return ne&&(x="Alt-"+x),te&&(x="Ctrl-"+x),ce&&(x="Cmd-"+x),ae&&(x="Shift-"+x),x}function Sd(x){var z={};for(var ne in x)if(x.hasOwnProperty(ne)){var te=x[ne];if(/^(name|fallthrough|(de|at)tach)$/.test(ne))continue;if(te=="..."){delete x[ne];continue}for(var ae=En(ne.split(" "),nh),ce=0;ce<ae.length;ce++){var ve=void 0,Me=void 0;ce==ae.length-1?(Me=ae.join(" "),ve=te):(Me=ae.slice(0,ce+1).join(" "),ve="...");var De=z[Me];if(!De)z[Me]=ve;else if(De!=ve)throw new Error("Inconsistent bindings for "+Me)}delete x[ne]}for(var _e in z)x[_e]=z[_e];return x}function ku(x,z,ne,te){z=Ml(z);var ae=z.call?z.call(x,te):z[x];if(ae===!1)return"nothing";if(ae==="...")return"multi";if(ae!=null&&ne(ae))return"handled";if(z.fallthrough){if(Object.prototype.toString.call(z.fallthrough)!="[object Array]")return ku(x,z.fallthrough,ne,te);for(var ce=0;ce<z.fallthrough.length;ce++){var ve=ku(x,z.fallthrough[ce],ne,te);if(ve)return ve}}}function Bc(x){var z=typeof x=="string"?x:ou[x.keyCode];return z=="Ctrl"||z=="Alt"||z=="Shift"||z=="Mod"}function Ru(x,z,ne){var te=x;return z.altKey&&te!="Alt"&&(x="Alt-"+x),(We?z.metaKey:z.ctrlKey)&&te!="Ctrl"&&(x="Ctrl-"+x),(We?z.ctrlKey:z.metaKey)&&te!="Mod"&&(x="Cmd-"+x),!ne&&z.shiftKey&&te!="Shift"&&(x="Shift-"+x),x}function tc(x,z){if(qe&&x.keyCode==34&&x.char)return!1;var ne=ou[x.keyCode];return ne==null||x.altGraphKey?!1:(x.keyCode==3&&x.code&&(ne=x.code),Ru(ne,x,z))}function Ml(x){return typeof x=="string"?Lo[x]:x}function $l(x,z){for(var ne=x.doc.sel.ranges,te=[],ae=0;ae<ne.length;ae++){for(var ce=z(ne[ae]);te.length&&Ri(ce.from,en(te).to)<=0;){var ve=te.pop();if(Ri(ve.from,ce.from)<0){ce.from=ve.from;break}}te.push(ce)}Kn(x,function(){for(var Me=te.length-1;Me>=0;Me--)Fo(x.doc,"",te[Me].from,te[Me].to,"+delete");Se(x)})}function sl(x,z,ne){var te=Pt(x.text,z+ne,ne);return te<0||te>x.text.length?null:te}function yu(x,z,ne){var te=sl(x,z.ch,ne);return te==null?null:new Qn(z.line,te,ne<0?"after":"before")}function nc(x,z,ne,te,ae){if(x){z.doc.direction=="rtl"&&(ae=-ae);var ce=mr(ne,z.doc.direction);if(ce){var ve=ae<0?en(ce):ce[0],Me=ae<0==(ve.level==1),De=Me?"after":"before",_e;if(ve.level>0||z.doc.direction=="rtl"){var yt=$s(z,ne);_e=ae<0?ne.text.length-1:0;var Lt=Ha(z,yt,_e).top;_e=mn(function(pn){return Ha(z,yt,pn).top==Lt},ae<0==(ve.level==1)?ve.from:ve.to-1,_e),De=="before"&&(_e=sl(ne,_e,1))}else _e=ae<0?ve.to:ve.from;return new Qn(te,_e,De)}}return new Qn(te,ae<0?ne.text.length:0,ae<0?"before":"after")}function bu(x,z,ne,te){var ae=mr(z,x.doc.direction);if(!ae)return yu(z,ne,te);ne.ch>=z.text.length?(ne.ch=z.text.length,ne.sticky="before"):ne.ch<=0&&(ne.ch=0,ne.sticky="after");var ce=Kt(ae,ne.ch,ne.sticky),ve=ae[ce];if(x.doc.direction=="ltr"&&ve.level%2==0&&(te>0?ve.to>ne.ch:ve.from<ne.ch))return yu(z,ne,te);var Me=function(ui,xi){return sl(z,ui instanceof Qn?ui.ch:ui,xi)},De,_e=function(ui){return x.options.lineWrapping?(De=De||$s(x,z),iu(x,z,De,ui)):{begin:0,end:z.text.length}},yt=_e(ne.sticky=="before"?Me(ne,-1):ne.ch);if(x.doc.direction=="rtl"||ve.level==1){var Lt=ve.level==1==te<0,pn=Me(ne,Lt?1:-1);if(pn!=null&&(Lt?pn<=ve.to&&pn<=yt.end:pn>=ve.from&&pn>=yt.begin)){var sn=Lt?"before":"after";return new Qn(ne.line,pn,sn)}}var jn=function(ui,xi,ni){for(var ki=function(Po,nl){return nl?new Qn(ne.line,Me(Po,1),"before"):new Qn(ne.line,Po,"after")};ui>=0&&ui<ae.length;ui+=xi){var sa=ae[ui],ha=xi>0==(sa.level!=1),Ya=ha?ni.begin:Me(ni.end,-1);if(sa.from<=Ya&&Ya<sa.to||(Ya=ha?sa.from:Me(sa.to,-1),ni.begin<=Ya&&Ya<ni.end))return ki(Ya,ha)}},pr=jn(ce+te,te,yt);if(pr)return pr;var Zr=te>0?yt.end:Me(yt.begin,-1);return Zr!=null&&!(te>0&&Zr==z.text.length)&&(pr=jn(te>0?0:ae.length-1,te,_e(Zr)),pr)?pr:null}var hc={selectAll:Ao,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),vt)},killLine:function(x){return $l(x,function(z){if(z.empty()){var ne=ir(x.doc,z.head.line).text.length;return z.head.ch==ne&&z.head.line<x.lastLine()?{from:z.head,to:Qn(z.head.line+1,0)}:{from:z.head,to:Qn(z.head.line,ne)}}else return{from:z.from(),to:z.to()}})},deleteLine:function(x){return $l(x,function(z){return{from:Qn(z.from().line,0),to:ma(x.doc,Qn(z.to().line+1,0))}})},delLineLeft:function(x){return $l(x,function(z){return{from:Qn(z.from().line,0),to:z.from()}})},delWrappedLineLeft:function(x){return $l(x,function(z){var ne=x.charCoords(z.head,"div").top+5,te=x.coordsChar({left:0,top:ne},"div");return{from:te,to:z.from()}})},delWrappedLineRight:function(x){return $l(x,function(z){var ne=x.charCoords(z.head,"div").top+5,te=x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ne},"div");return{from:z.from(),to:te}})},undo:function(x){return x.undo()},redo:function(x){return x.redo()},undoSelection:function(x){return x.undoSelection()},redoSelection:function(x){return x.redoSelection()},goDocStart:function(x){return x.extendSelection(Qn(x.firstLine(),0))},goDocEnd:function(x){return x.extendSelection(Qn(x.lastLine()))},goLineStart:function(x){return x.extendSelectionsBy(function(z){return Ad(x,z.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(x){return x.extendSelectionsBy(function(z){return cf(x,z.head)},{origin:"+move",bias:1})},goLineEnd:function(x){return x.extendSelectionsBy(function(z){return kd(x,z.head.line)},{origin:"+move",bias:-1})},goLineRight:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ne},"div")},Vt)},goLineLeft:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:0,top:ne},"div")},Vt)},goLineLeftSmart:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5,te=x.coordsChar({left:0,top:ne},"div");return te.ch<x.getLine(te.line).search(/\S/)?cf(x,z.head):te},Vt)},goLineUp:function(x){return x.moveV(-1,"line")},goLineDown:function(x){return x.moveV(1,"line")},goPageUp:function(x){return x.moveV(-1,"page")},goPageDown:function(x){return x.moveV(1,"page")},goCharLeft:function(x){return x.moveH(-1,"char")},goCharRight:function(x){return x.moveH(1,"char")},goColumnLeft:function(x){return x.moveH(-1,"column")},goColumnRight:function(x){return x.moveH(1,"column")},goWordLeft:function(x){return x.moveH(-1,"word")},goGroupRight:function(x){return x.moveH(1,"group")},goGroupLeft:function(x){return x.moveH(-1,"group")},goWordRight:function(x){return x.moveH(1,"word")},delCharBefore:function(x){return x.deleteH(-1,"codepoint")},delCharAfter:function(x){return x.deleteH(1,"char")},delWordBefore:function(x){return x.deleteH(-1,"word")},delWordAfter:function(x){return x.deleteH(1,"word")},delGroupBefore:function(x){return x.deleteH(-1,"group")},delGroupAfter:function(x){return x.deleteH(1,"group")},indentAuto:function(x){return x.indentSelection("smart")},indentMore:function(x){return x.indentSelection("add")},indentLess:function(x){return x.indentSelection("subtract")},insertTab:function(x){return x.replaceSelection(" ")},insertSoftTab:function(x){for(var z=[],ne=x.listSelections(),te=x.options.tabSize,ae=0;ae<ne.length;ae++){var ce=ne[ae].from(),ve=Re(x.getLine(ce.line),ce.ch,te);z.push(fn(te-ve%te))}x.replaceSelections(z)},defaultTab:function(x){x.somethingSelected()?x.indentSelection("add"):x.execCommand("insertTab")},transposeChars:function(x){return Kn(x,function(){for(var z=x.listSelections(),ne=[],te=0;te<z.length;te++)if(z[te].empty()){var ae=z[te].head,ce=ir(x.doc,ae.line).text;if(ce){if(ae.ch==ce.length&&(ae=new Qn(ae.line,ae.ch-1)),ae.ch>0)ae=new Qn(ae.line,ae.ch+1),x.replaceRange(ce.charAt(ae.ch-1)+ce.charAt(ae.ch-2),Qn(ae.line,ae.ch-2),ae,"+transpose");else if(ae.line>x.doc.first){var ve=ir(x.doc,ae.line-1).text;ve&&(ae=new Qn(ae.line,1),x.replaceRange(ce.charAt(0)+x.doc.lineSeparator()+ve.charAt(ve.length-1),Qn(ae.line-1,ve.length-1),ae,"+transpose"))}}ne.push(new Ai(ae,ae))}x.setSelections(ne)})},newlineAndIndent:function(x){return Kn(x,function(){for(var z=x.listSelections(),ne=z.length-1;ne>=0;ne--)x.replaceRange(x.doc.lineSeparator(),z[ne].anchor,z[ne].head,"+input");z=x.listSelections();for(var te=0;te<z.length;te++)x.indentLine(z[te].from().line,null,!0);Se(x)})},openLine:function(x){return x.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(x){return x.toggleOverwrite()}};function Ad(x,z){var ne=ir(x.doc,z),te=St(ne);return te!=ne&&(z=va(te)),nc(!0,x,te,z,1)}function kd(x,z){var ne=ir(x.doc,z),te=Qt(ne);return te!=ne&&(z=va(te)),nc(!0,x,ne,z,-1)}function cf(x,z){var ne=Ad(x,z.line),te=ir(x.doc,ne.line),ae=mr(te,x.doc.direction);if(!ae||ae[0].level==0){var ce=Math.max(ne.ch,te.text.search(/\S/)),ve=z.line==ne.line&&z.ch<=ce&&z.ch;return Qn(ne.line,ve?0:ce,ne.sticky)}return ne}function Zs(x,z,ne){if(typeof z=="string"&&(z=hc[z],!z))return!1;x.display.input.ensurePolled();var te=x.display.shift,ae=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),ne&&(x.display.shift=!1),ae=z(x)!=Yt}finally{x.display.shift=te,x.state.suppressEdits=!1}return ae}function xu(x,z,ne){for(var te=0;te<x.state.keyMaps.length;te++){var ae=ku(z,x.state.keyMaps[te],ne,x);if(ae)return ae}return x.options.extraKeys&&ku(z,x.options.extraKeys,ne,x)||ku(z,x.options.keyMap,ne,x)}var rh=new Le;function pc(x,z,ne,te){var ae=x.state.keySeq;if(ae){if(Bc(z))return"handled";if(/\'$/.test(z)?x.state.keySeq=null:rh.set(50,function(){x.state.keySeq==ae&&(x.state.keySeq=null,x.display.input.reset())}),Xc(x,ae+" "+z,ne,te))return!0}return Xc(x,z,ne,te)}function Xc(x,z,ne,te){var ae=xu(x,z,te);return ae=="multi"&&(x.state.keySeq=z),ae=="handled"&&Ar(x,"keyHandled",x,z,ne),(ae=="handled"||ae=="multi")&&(Tr(ne),$n(x)),!!ae}function qa(x,z){var ne=tc(z,!0);return ne?z.shiftKey&&!x.state.keySeq?pc(x,"Shift-"+ne,z,function(te){return Zs(x,te,!0)})||pc(x,ne,z,function(te){if(typeof te=="string"?/^go[A-Z]/.test(te):te.motion)return Zs(x,te)}):pc(x,ne,z,function(te){return Zs(x,te)}):!1}function mc(x,z,ne){return pc(x,"'"+ne+"'",z,function(te){return Zs(x,te,!0)})}var Mu=null;function Dc(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&(z.curOp.focus=Ve(),!wr(z,x))){Pe&&Ne<11&&x.keyCode==27&&(x.returnValue=!1);var ne=x.keyCode;z.display.shift=ne==16||x.shiftKey;var te=qa(z,x);qe&&(Mu=te?ne:null,!te&&ne==88&&!Xr&&(Ze?x.metaKey:x.ctrlKey)&&z.replaceSelection("",null,"cut")),re&&!Ze&&!te&&ne==46&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut"),ne==18&&!/\bCodeMirror-crosshair\b/.test(z.display.lineDiv.className)&&Zn(z)}}function Zn(x){var z=x.display.lineDiv;Qe(z,"CodeMirror-crosshair");function ne(te){(te.keyCode==18||!te.altKey)&&(Tt(z,"CodeMirror-crosshair"),_r(document,"keyup",ne),_r(document,"mouseover",ne))}rn(document,"keyup",ne),rn(document,"mouseover",ne)}function df(x){x.keyCode==16&&(this.doc.sel.shift=!1),wr(this,x)}function ff(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&!(us(z.display,x)||wr(z,x)||x.ctrlKey&&!x.altKey||Ze&&x.metaKey)){var ne=x.keyCode,te=x.charCode;if(qe&&ne==Mu){Mu=null,Tr(x);return}if(!(qe&&(!x.which||x.which<10)&&qa(z,x))){var ae=String.fromCharCode(te==null?ne:te);ae!="\b"&&(mc(z,x,ae)||z.display.input.onKeyPress(x))}}}var Md=400,Bd=function(x,z,ne){this.time=x,this.pos=z,this.button=ne};Bd.prototype.compare=function(x,z,ne){return this.time+Md>x&&Ri(z,this.pos)==0&&ne==this.button};var Bu,Fc;function ih(x,z){var ne=+new Date;return Fc&&Fc.compare(ne,x,z)?(Bu=Fc=null,"triple"):Bu&&Bu.compare(ne,x,z)?(Fc=new Bd(ne,x,z),Bu=null,"double"):(Bu=new Bd(ne,x,z),Fc=null,"single")}function ll(x){var z=this,ne=z.display;if(!(wr(z,x)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=x.shiftKey,us(ne,x)){je||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!bl(z,x)){var te=Fl(z,x),ae=kr(x),ce=te?ih(te,ae):"single";window.focus(),ae==1&&z.state.selectingText&&z.state.selectingText(x),!(te&&_u(z,ae,te,ce,x))&&(ae==1?te?$c(z,te,ce,x):bi(x)==ne.scroller&&Tr(x):ae==2?(te&&Bi(z.doc,te),setTimeout(function(){return ne.input.focus()},20)):ae==3&&($e?z.display.input.onContextMenu(x):$r(z)))}}}function _u(x,z,ne,te,ae){var ce="Click";return te=="double"?ce="Double"+ce:te=="triple"&&(ce="Triple"+ce),ce=(z==1?"Left":z==2?"Middle":"Right")+ce,pc(x,Ru(ce,ae),ae,function(ve){if(typeof ve=="string"&&(ve=hc[ve]),!ve)return!1;var Me=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),Me=ve(x,ne)!=Yt}finally{x.state.suppressEdits=!1}return Me})}function qc(x,z,ne){var te=x.getOption("configureMouse"),ae=te?te(x,z,ne):{};if(ae.unit==null){var ce=Je?ne.shiftKey&&ne.metaKey:ne.altKey;ae.unit=ce?"rectangle":z=="single"?"char":z=="double"?"word":"line"}return(ae.extend==null||x.doc.extend)&&(ae.extend=x.doc.extend||ne.shiftKey),ae.addNew==null&&(ae.addNew=Ze?ne.metaKey:ne.ctrlKey),ae.moveOnDrag==null&&(ae.moveOnDrag=!(Ze?ne.altKey:ne.ctrlKey)),ae}function $c(x,z,ne,te){Pe?setTimeout(Mt(ur,x),0):x.curOp.focus=Ve();var ae=qc(x,ne,te),ce=x.doc.sel,ve;x.options.dragDrop&&an&&!x.isReadOnly()&&ne=="single"&&(ve=ce.contains(z))>-1&&(Ri((ve=ce.ranges[ve]).from(),z)<0||z.xRel>0)&&(Ri(ve.to(),z)>0||z.xRel<0)?ah(x,te,z,ae):Dd(x,te,z,ae)}function ah(x,z,ne,te){var ae=x.display,ce=!1,ve=dr(x,function(_e){je&&(ae.scroller.draggable=!1),x.state.draggingText=!1,_r(ae.wrapper.ownerDocument,"mouseup",ve),_r(ae.wrapper.ownerDocument,"mousemove",Me),_r(ae.scroller,"dragstart",De),_r(ae.scroller,"drop",ve),ce||(Tr(_e),te.addNew||Bi(x.doc,ne,null,null,te.extend),je&&!it||Pe&&Ne==9?setTimeout(function(){ae.wrapper.ownerDocument.body.focus({preventScroll:!0}),ae.input.focus()},20):ae.input.focus())}),Me=function(_e){ce=ce||Math.abs(z.clientX-_e.clientX)+Math.abs(z.clientY-_e.clientY)>=10},De=function(){return ce=!0};je&&(ae.scroller.draggable=!0),x.state.draggingText=ve,ve.copy=!te.moveOnDrag,ae.scroller.dragDrop&&ae.scroller.dragDrop(),rn(ae.wrapper.ownerDocument,"mouseup",ve),rn(ae.wrapper.ownerDocument,"mousemove",Me),rn(ae.scroller,"dragstart",De),rn(ae.scroller,"drop",ve),$r(x),setTimeout(function(){return ae.input.focus()},20)}function hf(x,z,ne){if(ne=="char")return new Ai(z,z);if(ne=="word")return x.findWordAt(z);if(ne=="line")return new Ai(Qn(z.line,0),ma(x.doc,Qn(z.line+1,0)));var te=ne(x,z);return new Ai(te.from,te.to)}function Dd(x,z,ne,te){var ae=x.display,ce=x.doc;Tr(z);var ve,Me,De=ce.sel,_e=De.ranges;if(te.addNew&&!te.extend?(Me=ce.sel.contains(ne),Me>-1?ve=_e[Me]:ve=new Ai(ne,ne)):(ve=ce.sel.primary(),Me=ce.sel.primIndex),te.unit=="rectangle")te.addNew||(ve=new Ai(ne,ne)),ne=Fl(x,z,!0,!0),Me=-1;else{var yt=hf(x,ne,te.unit);te.extend?ve=Rr(ve,yt.anchor,yt.head,te.extend):ve=yt}te.addNew?Me==-1?(Me=_e.length,uo(ce,ba(x,_e.concat([ve]),Me),{scroll:!1,origin:"*mouse"})):_e.length>1&&_e[Me].empty()&&te.unit=="char"&&!te.extend?(uo(ce,ba(x,_e.slice(0,Me).concat(_e.slice(Me+1)),0),{scroll:!1,origin:"*mouse"}),De=ce.sel):Ui(ce,Me,ve,nt):(Me=0,uo(ce,new Hi([ve],0),nt),De=ce.sel);var Lt=ne;function pn(ni){if(Ri(Lt,ni)!=0)if(Lt=ni,te.unit=="rectangle"){for(var ki=[],sa=x.options.tabSize,ha=Re(ir(ce,ne.line).text,ne.ch,sa),Ya=Re(ir(ce,ni.line).text,ni.ch,sa),Po=Math.min(ha,Ya),nl=Math.max(ha,Ya),hs=Math.min(ne.line,ni.line),Ll=Math.min(x.lastLine(),Math.max(ne.line,ni.line));hs<=Ll;hs++){var Tl=ir(ce,hs).text,Vs=un(Tl,Po,sa);Po==nl?ki.push(new Ai(Qn(hs,Vs),Qn(hs,Vs))):Tl.length>Vs&&ki.push(new Ai(Qn(hs,Vs),Qn(hs,un(Tl,nl,sa))))}ki.length||ki.push(new Ai(ne,ne)),uo(ce,ba(x,De.ranges.slice(0,Me).concat(ki),Me),{origin:"*mouse",scroll:!1}),x.scrollIntoView(ni)}else{var Pl=ve,Pa=hf(x,ni,te.unit),Ss=Pl.anchor,ps;Ri(Pa.anchor,Ss)>0?(ps=Pa.head,Ss=io(Pl.from(),Pa.anchor)):(ps=Pa.anchor,Ss=Oo(Pl.to(),Pa.head));var As=De.ranges.slice(0);As[Me]=pf(x,new Ai(ma(ce,Ss),ps)),uo(ce,ba(x,As,Me),nt)}}var sn=ae.wrapper.getBoundingClientRect(),jn=0;function pr(ni){var ki=++jn,sa=Fl(x,ni,!0,te.unit=="rectangle");if(sa)if(Ri(sa,Lt)!=0){x.curOp.focus=Ve(),pn(sa);var ha=Pr(ae,ce);(sa.line>=ha.to||sa.line<ha.from)&&setTimeout(dr(x,function(){jn==ki&&pr(ni)}),150)}else{var Ya=ni.clientY<sn.top?-20:ni.clientY>sn.bottom?20:0;Ya&&setTimeout(dr(x,function(){jn==ki&&(ae.scroller.scrollTop+=Ya,pr(ni))}),50)}}function Zr(ni){x.state.selectingText=!1,jn=1/0,ni&&(Tr(ni),ae.input.focus()),_r(ae.wrapper.ownerDocument,"mousemove",ui),_r(ae.wrapper.ownerDocument,"mouseup",xi),ce.history.lastSelOrigin=null}var ui=dr(x,function(ni){ni.buttons===0||!kr(ni)?Zr(ni):pr(ni)}),xi=dr(x,Zr);x.state.selectingText=xi,rn(ae.wrapper.ownerDocument,"mousemove",ui),rn(ae.wrapper.ownerDocument,"mouseup",xi)}function pf(x,z){var ne=z.anchor,te=z.head,ae=ir(x.doc,ne.line);if(Ri(ne,te)==0&&ne.sticky==te.sticky)return z;var ce=mr(ae);if(!ce)return z;var ve=Kt(ce,ne.ch,ne.sticky),Me=ce[ve];if(Me.from!=ne.ch&&Me.to!=ne.ch)return z;var De=ve+(Me.from==ne.ch==(Me.level!=1)?0:1);if(De==0||De==ce.length)return z;var _e;if(te.line!=ne.line)_e=(te.line-ne.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var yt=Kt(ce,te.ch,te.sticky),Lt=yt-ve||(te.ch-ne.ch)*(Me.level==1?-1:1);yt==De-1||yt==De?_e=Lt<0:_e=Lt>0}var pn=ce[De+(_e?-1:0)],sn=_e==(pn.level==1),jn=sn?pn.from:pn.to,pr=sn?"after":"before";return ne.ch==jn&&ne.sticky==pr?z:new Ai(new Qn(ne.line,jn,pr),te)}function Lc(x,z,ne,te){var ae,ce;if(z.touches)ae=z.touches[0].clientX,ce=z.touches[0].clientY;else try{ae=z.clientX,ce=z.clientY}catch(pn){return!1}if(ae>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;te&&Tr(z);var ve=x.display,Me=ve.lineDiv.getBoundingClientRect();if(ce>Me.bottom||!Ir(x,ne))return pi(z);ce-=Me.top-ve.viewOffset;for(var De=0;De<x.display.gutterSpecs.length;++De){var _e=ve.gutters.childNodes[De];if(_e&&_e.getBoundingClientRect().right>=ae){var yt=mo(x.doc,ce),Lt=x.display.gutterSpecs[De];return xr(x,ne,x,yt,Lt.className,z),pi(z)}}}function bl(x,z){return Lc(x,z,"gutterClick",!0)}function Ku(x,z){us(x.display,z)||mf(x,z)||wr(x,z,"contextmenu")||$e||x.display.input.onContextMenu(z)}function mf(x,z){return Ir(x,"gutterContextMenu")?Lc(x,z,"gutterContextMenu",!1):!1}function Fd(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Cl(x)}var Hu={toString:function(){return"CodeMirror.Init"}},gf={},ed={};function oh(x){var z=x.optionHandlers;function ne(te,ae,ce,ve){x.defaults[te]=ae,ce&&(z[te]=ve?function(Me,De,_e){_e!=Hu&&ce(Me,De,_e)}:ce)}x.defineOption=ne,x.Init=Hu,ne("value","",function(te,ae){return te.setValue(ae)},!0),ne("mode",null,function(te,ae){te.doc.modeOption=ae,$i(te)},!0),ne("indentUnit",2,$i,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){Fa(te),Cl(te),Ea(te)},!0),ne("lineSeparator",null,function(te,ae){if(te.doc.lineSep=ae,!!ae){var ce=[],ve=te.doc.first;te.doc.iter(function(De){for(var _e=0;;){var yt=De.text.indexOf(ae,_e);if(yt==-1)break;_e=yt+ae.length,ce.push(Qn(ve,yt))}ve++});for(var Me=ce.length-1;Me>=0;Me--)Fo(te.doc,ae,ce[Me],Qn(ce[Me].line,ce[Me].ch+ae.length))}}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,ae,ce){te.state.specialChars=new RegExp(ae.source+(ae.test(" ")?"":"| "),"g"),ce!=Hu&&te.refresh()}),ne("specialCharPlaceholder",Ta,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",ft?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ne("spellcheck",!1,function(te,ae){return te.getInputField().spellcheck=ae},!0),ne("autocorrect",!1,function(te,ae){return te.getInputField().autocorrect=ae},!0),ne("autocapitalize",!1,function(te,ae){return te.getInputField().autocapitalize=ae},!0),ne("rtlMoveVisually",!et),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){Fd(te),gi(te)},!0),ne("keyMap","default",function(te,ae,ce){var ve=Ml(ae),Me=ce!=Hu&&Ml(ce);Me&&Me.detach&&Me.detach(te,ve),ve.attach&&ve.attach(te,Me||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,vf,!0),ne("gutters",[],function(te,ae){te.display.gutterSpecs=hi(ae,te.options.lineNumbers),gi(te)},!0),ne("fixedGutter",!0,function(te,ae){te.display.gutters.style.left=ae?Il(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return on(te)},!0),ne("scrollbarStyle","native",function(te){dn(te),on(te),te.display.scrollbars.setScrollTop(te.doc.scrollTop),te.display.scrollbars.setScrollLeft(te.doc.scrollLeft)},!0),ne("lineNumbers",!1,function(te,ae){te.display.gutterSpecs=hi(te.options.gutters,ae),gi(te)},!0),ne("firstLineNumber",1,gi,!0),ne("lineNumberFormatter",function(te){return te},gi,!0),ne("showCursorWhenSelecting",!1,Et,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ae){ae=="nocursor"&&(ii(te),te.display.input.blur()),te.display.input.readOnlyChanged(ae)}),ne("screenReaderLabel",null,function(te,ae){ae=ae===""?null:ae,te.display.input.screenReaderLabelChanged(ae)}),ne("disableInput",!1,function(te,ae){ae||te.display.input.reset()},!0),ne("dragDrop",!0,sh),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,Et,!0),ne("singleCursorHeightPerLine",!0,Et,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,Fa,!0),ne("addModeClass",!1,Fa,!0),ne("pollInterval",100),ne("undoDepth",200,function(te,ae){return te.doc.history.undoDepth=ae}),ne("historyEventDelay",1250),ne("viewportMargin",10,function(te){return te.refresh()},!0),ne("maxHighlightLength",1e4,Fa,!0),ne("moveInputWithCursor",!0,function(te,ae){ae||te.display.input.resetPosition()}),ne("tabindex",null,function(te,ae){return te.display.input.getField().tabIndex=ae||""}),ne("autofocus",null),ne("direction","ltr",function(te,ae){return te.doc.setDirection(ae)},!0),ne("phrases",null)}function sh(x,z,ne){var te=ne&&ne!=Hu;if(!z!=!te){var ae=x.display.dragFunctions,ce=z?rn:_r;ce(x.display.scroller,"dragstart",ae.start),ce(x.display.scroller,"dragenter",ae.enter),ce(x.display.scroller,"dragover",ae.over),ce(x.display.scroller,"dragleave",ae.leave),ce(x.display.scroller,"drop",ae.drop)}}function vf(x){x.options.lineWrapping?(Qe(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(Tt(x.display.wrapper,"CodeMirror-wrap"),An(x)),Ol(x),Ea(x),Cl(x),setTimeout(function(){return on(x)},100)}function La(x,z){var ne=this;if(!(this instanceof La))return new La(x,z);this.options=z=z?jt(z):{},jt(gf,z,!1);var te=z.value;typeof te=="string"?te=new zo(te,z.mode,null,z.lineSeparator,z.direction):z.mode&&(te.modeOption=z.mode),this.doc=te;var ae=new La.inputStyles[z.inputStyle](this),ce=this.display=new Xi(x,te,ae,z);ce.wrapper.CodeMirror=this,Fd(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),dn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Le,keySeq:null,specialChars:null},z.autofocus&&!ft&&ce.input.focus(),Pe&&Ne<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),lh(this),Cd(),Pn(this),this.curOp.forceUpdate=!0,Hr(this,te),z.autofocus&&!ft||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&Sr(ne)},20):ii(this);for(var ve in ed)ed.hasOwnProperty(ve)&&ed[ve](this,z[ve],Hu);Er(this),z.finishInit&&z.finishInit(this);for(var Me=0;Me<Ld.length;++Me)Ld[Me](this);Wn(this),je&&z.lineWrapping&&getComputedStyle(ce.lineDiv).textRendering=="optimizelegibility"&&(ce.lineDiv.style.textRendering="auto")}La.defaults=gf,La.optionHandlers=ed;function lh(x){var z=x.display;rn(z.scroller,"mousedown",dr(x,ll)),Pe&&Ne<11?rn(z.scroller,"dblclick",dr(x,function(De){if(!wr(x,De)){var _e=Fl(x,De);if(!(!_e||bl(x,De)||us(x.display,De))){Tr(De);var yt=x.findWordAt(_e);Bi(x.doc,yt.anchor,yt.head)}}})):rn(z.scroller,"dblclick",function(De){return wr(x,De)||Tr(De)}),rn(z.scroller,"contextmenu",function(De){return Ku(x,De)}),rn(z.input.getField(),"contextmenu",function(De){z.scroller.contains(De.target)||Ku(x,De)});var ne,te={end:0};function ae(){z.activeTouch&&(ne=setTimeout(function(){return z.activeTouch=null},1e3),te=z.activeTouch,te.end=+new Date)}function ce(De){if(De.touches.length!=1)return!1;var _e=De.touches[0];return _e.radiusX<=1&&_e.radiusY<=1}function ve(De,_e){if(_e.left==null)return!0;var yt=_e.left-De.left,Lt=_e.top-De.top;return yt*yt+Lt*Lt>20*20}rn(z.scroller,"touchstart",function(De){if(!wr(x,De)&&!ce(De)&&!bl(x,De)){z.input.ensurePolled(),clearTimeout(ne);var _e=+new Date;z.activeTouch={start:_e,moved:!1,prev:_e-te.end<=300?te:null},De.touches.length==1&&(z.activeTouch.left=De.touches[0].pageX,z.activeTouch.top=De.touches[0].pageY)}}),rn(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),rn(z.scroller,"touchend",function(De){var _e=z.activeTouch;if(_e&&!us(z,De)&&_e.left!=null&&!_e.moved&&new Date-_e.start<300){var yt=x.coordsChar(z.activeTouch,"page"),Lt;!_e.prev||ve(_e,_e.prev)?Lt=new Ai(yt,yt):!_e.prev.prev||ve(_e,_e.prev.prev)?Lt=x.findWordAt(yt):Lt=new Ai(Qn(yt.line,0),ma(x.doc,Qn(yt.line+1,0))),x.setSelection(Lt.anchor,Lt.head),x.focus(),Tr(De)}ae()}),rn(z.scroller,"touchcancel",ae),rn(z.scroller,"scroll",function(){z.scroller.clientHeight&&(ot(x,z.scroller.scrollTop),It(x,z.scroller.scrollLeft,!0),xr(x,"scroll",x))}),rn(z.scroller,"mousewheel",function(De){return Ra(x,De)}),rn(z.scroller,"DOMMouseScroll",function(De){return Ra(x,De)}),rn(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(De){wr(x,De)||Wi(De)},over:function(De){wr(x,De)||(cc(x,De),Wi(De))},start:function(De){return vu(x,De)},drop:dr(x,Ou),leave:function(De){wr(x,De)||dc(x)}};var Me=z.input.getField();rn(Me,"keyup",function(De){return df.call(x,De)}),rn(Me,"keydown",dr(x,Dc)),rn(Me,"keypress",dr(x,ff)),rn(Me,"focus",function(De){return Sr(x,De)}),rn(Me,"blur",function(De){return ii(x,De)})}var Ld=[];La.defineInitHook=function(x){return Ld.push(x)};function su(x,z,ne,te){var ae=x.doc,ce;ne==null&&(ne="add"),ne=="smart"&&(ae.mode.indent?ce=Uo(x,z).state:ne="prev");var ve=x.options.tabSize,Me=ir(ae,z),De=Re(Me.text,null,ve);Me.stateAfter&&(Me.stateAfter=null);var _e=Me.text.match(/^\s*/)[0],yt;if(!te&&!/\S/.test(Me.text))yt=0,ne="not";else if(ne=="smart"&&(yt=ae.mode.indent(ce,Me.text.slice(_e.length),Me.text),yt==Yt||yt>150)){if(!te)return;ne="prev"}ne=="prev"?z>ae.first?yt=Re(ir(ae,z-1).text,null,ve):yt=0:ne=="add"?yt=De+x.options.indentUnit:ne=="subtract"?yt=De-x.options.indentUnit:typeof ne=="number"&&(yt=De+ne),yt=Math.max(0,yt);var Lt="",pn=0;if(x.options.indentWithTabs)for(var sn=Math.floor(yt/ve);sn;--sn)pn+=ve,Lt+=" ";if(pn<yt&&(Lt+=fn(yt-pn)),Lt!=_e)return Fo(ae,Lt,Qn(z,0),Qn(z,_e.length),"+input"),Me.stateAfter=null,!0;for(var jn=0;jn<ae.sel.ranges.length;jn++){var pr=ae.sel.ranges[jn];if(pr.head.line==z&&pr.head.ch<_e.length){var Zr=Qn(z,_e.length);Ui(ae,jn,new Ai(Zr,Zr));break}}}var lu=null;function zu(x){lu=x}function Td(x,z,ne,te,ae){var ce=x.doc;x.display.shift=!1,te||(te=ce.sel);var ve=+new Date-200,Me=ae=="paste"||x.state.pasteIncoming>ve,De=vn(z),_e=null;if(Me&&te.ranges.length>1)if(lu&&lu.text.join(`
|
|
|
`)==z){if(te.ranges.length%lu.text.length==0){_e=[];for(var yt=0;yt<lu.text.length;yt++)_e.push(ce.splitLines(lu.text[yt]))}}else De.length==te.ranges.length&&x.options.pasteLinesPerSelection&&(_e=En(De,function(ui){return[ui]}));for(var Lt=x.curOp.updateInput,pn=te.ranges.length-1;pn>=0;pn--){var sn=te.ranges[pn],jn=sn.from(),pr=sn.to();sn.empty()&&(ne&&ne>0?jn=Qn(jn.line,jn.ch-ne):x.state.overwrite&&!Me?pr=Qn(pr.line,Math.min(ir(ce,pr.line).text.length,pr.ch+en(De).length)):Me&&lu&&lu.lineWise&&lu.text.join(`
|
|
|
`)==De.join(`
|
|
|
`)&&(jn=pr=Qn(jn.line,0)));var Zr={from:jn,to:pr,text:_e?_e[pn%_e.length]:De,origin:ae||(Me?"paste":x.state.cutIncoming>ve?"cut":"+input")};Di(x.doc,Zr),Ar(x,"inputRead",x,Zr)}z&&!Me&&Nd(x,z),Se(x),x.curOp.updateInput<2&&(x.curOp.updateInput=Lt),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function Pd(x,z){var ne=x.clipboardData&&x.clipboardData.getData("Text");if(ne)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&Kn(z,function(){return Td(z,ne,0,null,"paste")}),!0}function Nd(x,z){if(!(!x.options.electricChars||!x.options.smartIndent))for(var ne=x.doc.sel,te=ne.ranges.length-1;te>=0;te--){var ae=ne.ranges[te];if(!(ae.head.ch>100||te&&ne.ranges[te-1].head.line==ae.head.line)){var ce=x.getModeAt(ae.head),ve=!1;if(ce.electricChars){for(var Me=0;Me<ce.electricChars.length;Me++)if(z.indexOf(ce.electricChars.charAt(Me))>-1){ve=su(x,ae.head.line,"smart");break}}else ce.electricInput&&ce.electricInput.test(ir(x.doc,ae.head.line).text.slice(0,ae.head.ch))&&(ve=su(x,ae.head.line,"smart"));ve&&Ar(x,"electricInput",x,ae.head.line)}}}function gc(x){for(var z=[],ne=[],te=0;te<x.doc.sel.ranges.length;te++){var ae=x.doc.sel.ranges[te].head.line,ce={anchor:Qn(ae,0),head:Qn(ae+1,0)};ne.push(ce),z.push(x.getRange(ce.anchor,ce.head))}return{text:z,ranges:ne}}function yf(x,z,ne,te){x.setAttribute("autocorrect",ne?"":"off"),x.setAttribute("autocapitalize",te?"":"off"),x.setAttribute("spellcheck",!!z)}function Id(){var x=st("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),z=st("div",[x],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return je?x.style.width="1000px":x.setAttribute("wrap","off"),kt&&(x.style.border="1px solid black"),yf(x),z}function Od(x){var z=x.optionHandlers,ne=x.helpers={};x.prototype={constructor:x,focus:function(){window.focus(),this.display.input.focus()},setOption:function(te,ae){var ce=this.options,ve=ce[te];ce[te]==ae&&te!="mode"||(ce[te]=ae,z.hasOwnProperty(te)&&dr(this,z[te])(this,ae,ve),xr(this,"optionChange",this,te))},getOption:function(te){return this.options[te]},getDoc:function(){return this.doc},addKeyMap:function(te,ae){this.state.keyMaps[ae?"push":"unshift"](Ml(te))},removeKeyMap:function(te){for(var ae=this.state.keyMaps,ce=0;ce<ae.length;++ce)if(ae[ce]==te||ae[ce].name==te)return ae.splice(ce,1),!0},addOverlay:Gn(function(te,ae){var ce=te.token?te:x.getMode(this.options,te);if(ce.startState)throw new Error("Overlays may not be stateful.");_n(this.state.overlays,{mode:ce,modeSpec:te,opaque:ae&&ae.opaque,priority:ae&&ae.priority||0},function(ve){return ve.priority}),this.state.modeGen++,Ea(this)}),removeOverlay:Gn(function(te){for(var ae=this.state.overlays,ce=0;ce<ae.length;++ce){var ve=ae[ce].modeSpec;if(ve==te||typeof te=="string"&&ve.name==te){ae.splice(ce,1),this.state.modeGen++,Ea(this);return}}}),indentLine:Gn(function(te,ae,ce){typeof ae!="string"&&typeof ae!="number"&&(ae==null?ae=this.options.smartIndent?"smart":"prev":ae=ae?"add":"subtract"),ja(this.doc,te)&&su(this,te,ae,ce)}),indentSelection:Gn(function(te){for(var ae=this.doc.sel.ranges,ce=-1,ve=0;ve<ae.length;ve++){var Me=ae[ve];if(Me.empty())Me.head.line>ce&&(su(this,Me.head.line,te,!0),ce=Me.head.line,ve==this.doc.sel.primIndex&&Se(this));else{var De=Me.from(),_e=Me.to(),yt=Math.max(ce,De.line);ce=Math.min(this.lastLine(),_e.line-(_e.ch?0:1))+1;for(var Lt=yt;Lt<ce;++Lt)su(this,Lt,te);var pn=this.doc.sel.ranges;De.ch==0&&ae.length==pn.length&&pn[ve].from().ch>0&&Ui(this.doc,ve,new Ai(De,pn[ve].to()),vt)}}}),getTokenAt:function(te,ae){return Oa(this,te,ae)},getLineTokens:function(te,ae){return Oa(this,Qn(te),ae,!0)},getTokenTypeAt:function(te){te=ma(this.doc,te);var ae=gs(this,ir(this.doc,te.line)),ce=0,ve=(ae.length-1)/2,Me=te.ch,De;if(Me==0)De=ae[2];else for(;;){var _e=ce+ve>>1;if((_e?ae[_e*2-1]:0)>=Me)ve=_e;else if(ae[_e*2+1]<Me)ce=_e+1;else{De=ae[_e*2+2];break}}var yt=De?De.indexOf("overlay "):-1;return yt<0?De:yt==0?null:De.slice(0,yt-1)},getModeAt:function(te){var ae=this.doc.mode;return ae.innerMode?x.innerMode(ae,this.getTokenAt(te).state).mode:ae},getHelper:function(te,ae){return this.getHelpers(te,ae)[0]},getHelpers:function(te,ae){var ce=[];if(!ne.hasOwnProperty(ae))return ce;var ve=ne[ae],Me=this.getModeAt(te);if(typeof Me[ae]=="string")ve[Me[ae]]&&ce.push(ve[Me[ae]]);else if(Me[ae])for(var De=0;De<Me[ae].length;De++){var _e=ve[Me[ae][De]];_e&&ce.push(_e)}else Me.helperType&&ve[Me.helperType]?ce.push(ve[Me.helperType]):ve[Me.name]&&ce.push(ve[Me.name]);for(var yt=0;yt<ve._global.length;yt++){var Lt=ve._global[yt];Lt.pred(Me,this)&&Nt(ce,Lt.val)==-1&&ce.push(Lt.val)}return ce},getStateAfter:function(te,ae){var ce=this.doc;return te=rl(ce,te==null?ce.first+ce.size-1:te),Uo(this,te+1,ae).state},cursorCoords:function(te,ae){var ce,ve=this.doc.sel.primary();return te==null?ce=ve.head:typeof te=="object"?ce=ma(this.doc,te):ce=te?ve.from():ve.to(),Ws(this,ce,ae||"page")},charCoords:function(te,ae){return nu(this,ma(this.doc,te),ae||"page")},coordsChar:function(te,ae){return te=Zl(this,te,ae||"page"),Dl(this,te.left,te.top)},lineAtHeight:function(te,ae){return te=Zl(this,{top:te,left:0},ae||"page").top,mo(this.doc,te+this.display.viewOffset)},heightAtLine:function(te,ae,ce){var ve=!1,Me;if(typeof te=="number"){var De=this.doc.first+this.doc.size-1;te<this.doc.first?te=this.doc.first:te>De&&(te=De,ve=!0),Me=ir(this.doc,te)}else Me=te;return Wl(this,Me,{top:0,left:0},ae||"page",ce||ve).top+(ve?this.doc.height-Jt(Me):0)},defaultTextHeight:function(){return Vl(this.display)},defaultCharWidth:function(){return Qs(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ae,ce,ve,Me){var De=this.display;te=Ws(this,ma(this.doc,te));var _e=te.bottom,yt=te.left;if(ae.style.position="absolute",ae.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ae),De.sizer.appendChild(ae),ve=="over")_e=te.top;else if(ve=="above"||ve=="near"){var Lt=Math.max(De.wrapper.clientHeight,this.doc.height),pn=Math.max(De.sizer.clientWidth,De.lineSpace.clientWidth);(ve=="above"||te.bottom+ae.offsetHeight>Lt)&&te.top>ae.offsetHeight?_e=te.top-ae.offsetHeight:te.bottom+ae.offsetHeight<=Lt&&(_e=te.bottom),yt+ae.offsetWidth>pn&&(yt=pn-ae.offsetWidth)}ae.style.top=_e+"px",ae.style.left=ae.style.right="",Me=="right"?(yt=De.sizer.clientWidth-ae.offsetWidth,ae.style.right="0px"):(Me=="left"?yt=0:Me=="middle"&&(yt=(De.sizer.clientWidth-ae.offsetWidth)/2),ae.style.left=yt+"px"),ce&&Ae(this,{left:yt,top:_e,right:yt+ae.offsetWidth,bottom:_e+ae.offsetHeight})},triggerOnKeyDown:Gn(Dc),triggerOnKeyPress:Gn(ff),triggerOnKeyUp:df,triggerOnMouseDown:Gn(ll),execCommand:function(te){if(hc.hasOwnProperty(te))return hc[te].call(null,this)},triggerElectric:Gn(function(te){Nd(this,te)}),findPosH:function(te,ae,ce,ve){var Me=1;ae<0&&(Me=-1,ae=-ae);for(var De=ma(this.doc,te),_e=0;_e<ae&&(De=td(this.doc,De,Me,ce,ve),!De.hitSide);++_e);return De},moveH:Gn(function(te,ae){var ce=this;this.extendSelectionsBy(function(ve){return ce.display.shift||ce.doc.extend||ve.empty()?td(ce.doc,ve.head,te,ae,ce.options.rtlMoveVisually):te<0?ve.from():ve.to()},Vt)}),deleteH:Gn(function(te,ae){var ce=this.doc.sel,ve=this.doc;ce.somethingSelected()?ve.replaceSelection("",null,"+delete"):$l(this,function(Me){var De=td(ve,Me.head,te,ae,!1);return te<0?{from:De,to:Me.head}:{from:Me.head,to:De}})}),findPosV:function(te,ae,ce,ve){var Me=1,De=ve;ae<0&&(Me=-1,ae=-ae);for(var _e=ma(this.doc,te),yt=0;yt<ae;++yt){var Lt=Ws(this,_e,"div");if(De==null?De=Lt.left:Lt.left=De,_e=bf(this,Lt,Me,ce),_e.hitSide)break}return _e},moveV:Gn(function(te,ae){var ce=this,ve=this.doc,Me=[],De=!this.display.shift&&!ve.extend&&ve.sel.somethingSelected();if(ve.extendSelectionsBy(function(yt){if(De)return te<0?yt.from():yt.to();var Lt=Ws(ce,yt.head,"div");yt.goalColumn!=null&&(Lt.left=yt.goalColumn),Me.push(Lt.left);var pn=bf(ce,Lt,te,ae);return ae=="page"&&yt==ve.sel.primary()&&dt(ce,nu(ce,pn,"div").top-Lt.top),pn},Vt),Me.length)for(var _e=0;_e<ve.sel.ranges.length;_e++)ve.sel.ranges[_e].goalColumn=Me[_e]}),findWordAt:function(te){var ae=this.doc,ce=ir(ae,te.line).text,ve=te.ch,Me=te.ch;if(ce){var De=this.getHelper(te,"wordChars");(te.sticky=="before"||Me==ce.length)&&ve?--ve:++Me;for(var _e=ce.charAt(ve),yt=pe(_e,De)?function(Lt){return pe(Lt,De)}:/\s/.test(_e)?function(Lt){return/\s/.test(Lt)}:function(Lt){return!/\s/.test(Lt)&&!pe(Lt)};ve>0&&yt(ce.charAt(ve-1));)--ve;for(;Me<ce.length&&yt(ce.charAt(Me));)++Me}return new Ai(Qn(te.line,ve),Qn(te.line,Me))},toggleOverwrite:function(te){te!=null&&te==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Qe(this.display.cursorDiv,"CodeMirror-overwrite"):Tt(this.display.cursorDiv,"CodeMirror-overwrite"),xr(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ve()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Gn(function(te,ae){at(this,te,ae)}),getScrollInfo:function(){var te=this.display.scroller;return{left:te.scrollLeft,top:te.scrollTop,height:te.scrollHeight-vo(this)-this.display.barHeight,width:te.scrollWidth-vo(this)-this.display.barWidth,clientHeight:Ls(this),clientWidth:co(this)}},scrollIntoView:Gn(function(te,ae){te==null?(te={from:this.doc.sel.primary().head,to:null},ae==null&&(ae=this.options.cursorScrollMargin)):typeof te=="number"?te={from:Qn(te,0),to:null}:te.from==null&&(te={from:te,to:null}),te.to||(te.to=te.from),te.margin=ae||0,te.from.line!=null?mt(this,te):Ge(this,te.from,te.to,te.margin)}),setSize:Gn(function(te,ae){var ce=this,ve=function(De){return typeof De=="number"||/^\d+$/.test(String(De))?De+"px":De};te!=null&&(this.display.wrapper.style.width=ve(te)),ae!=null&&(this.display.wrapper.style.height=ve(ae)),this.options.lineWrapping&&mu(this);var Me=this.display.viewFrom;this.doc.iter(Me,this.display.viewTo,function(De){if(De.widgets){for(var _e=0;_e<De.widgets.length;_e++)if(De.widgets[_e].noHScroll){Co(ce,Me,"widget");break}}++Me}),this.curOp.forceUpdate=!0,xr(this,"refresh",this)}),operation:function(te){return Kn(this,te)},startOperation:function(){return Pn(this)},endOperation:function(){return Wn(this)},refresh:Gn(function(){var te=this.display.cachedTextHeight;Ea(this),this.curOp.forceUpdate=!0,Cl(this),at(this,this.doc.scrollLeft,this.doc.scrollTop),ya(this.display),(te==null||Math.abs(te-Vl(this.display))>.5||this.options.lineWrapping)&&Ol(this),xr(this,"refresh",this)}),swapDoc:Gn(function(te){var ae=this.doc;return ae.cm=null,this.state.selectingText&&this.state.selectingText(),Hr(this,te),Cl(this),this.display.input.reset(),at(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,Ar(this,"swapDoc",this,ae),ae}),phrase:function(te){var ae=this.options.phrases;return ae&&Object.prototype.hasOwnProperty.call(ae,te)?ae[te]:te},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Wr(x),x.registerHelper=function(te,ae,ce){ne.hasOwnProperty(te)||(ne[te]=x[te]={_global:[]}),ne[te][ae]=ce},x.registerGlobalHelper=function(te,ae,ce,ve){x.registerHelper(te,ae,ve),ne[te]._global.push({pred:ce,val:ve})}}function td(x,z,ne,te,ae){var ce=z,ve=ne,Me=ir(x,z.line),De=ae&&x.direction=="rtl"?-ne:ne;function _e(){var xi=z.line+De;return xi<x.first||xi>=x.first+x.size?!1:(z=new Qn(xi,z.ch,z.sticky),Me=ir(x,xi))}function yt(xi){var ni;if(te=="codepoint"){var ki=Me.text.charCodeAt(z.ch+(te>0?0:-1));isNaN(ki)?ni=null:ni=new Qn(z.line,Math.max(0,Math.min(Me.text.length,z.ch+ne*(ki>=55296&&ki<56320?2:1))),-ne)}else ae?ni=bu(x.cm,Me,z,ne):ni=yu(Me,z,ne);if(ni==null)if(!xi&&_e())z=nc(ae,x.cm,Me,z.line,De);else return!1;else z=ni;return!0}if(te=="char"||te=="codepoint")yt();else if(te=="column")yt(!0);else if(te=="word"||te=="group")for(var Lt=null,pn=te=="group",sn=x.cm&&x.cm.getHelper(z,"wordChars"),jn=!0;!(ne<0&&!yt(!jn));jn=!1){var pr=Me.text.charAt(z.ch)||`
|
|
|
`,Zr=pe(pr,sn)?"w":pn&&pr==`
|
|
|
`?"n":!pn||/\s/.test(pr)?null:"p";if(pn&&!jn&&!Zr&&(Zr="s"),Lt&&Lt!=Zr){ne<0&&(ne=1,yt(),z.sticky="after");break}if(Zr&&(Lt=Zr),ne>0&&!yt(!jn))break}var ui=no(x,z,ce,ve,!0);return Ms(ce,ui)&&(ui.hitSide=!0),ui}function bf(x,z,ne,te){var ae=x.doc,ce=z.left,ve;if(te=="page"){var Me=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),De=Math.max(Me-.5*Vl(x.display),3);ve=(ne>0?z.bottom:z.top)+ne*De}else te=="line"&&(ve=ne>0?z.bottom+3:z.top-3);for(var _e;_e=Dl(x,ce,ve),!!_e.outside;){if(ne<0?ve<=0:ve>=ae.height){_e.hitSide=!0;break}ve+=ne*5}return _e}var Mo=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Mo.prototype.init=function(x){var z=this,ne=this,te=ne.cm,ae=ne.div=x.lineDiv;yf(ae,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function ce(Me){for(var De=Me.target;De;De=De.parentNode){if(De==ae)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(De.className))break}return!1}rn(ae,"paste",function(Me){!ce(Me)||wr(te,Me)||Pd(Me,te)||Ne<=11&&setTimeout(dr(te,function(){return z.updateFromDOM()}),20)}),rn(ae,"compositionstart",function(Me){z.composing={data:Me.data,done:!1}}),rn(ae,"compositionupdate",function(Me){z.composing||(z.composing={data:Me.data,done:!1})}),rn(ae,"compositionend",function(Me){z.composing&&(Me.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),rn(ae,"touchstart",function(){return ne.forceCompositionEnd()}),rn(ae,"input",function(){z.composing||z.readFromDOMSoon()});function ve(Me){if(!(!ce(Me)||wr(te,Me))){if(te.somethingSelected())zu({lineWise:!1,text:te.getSelections()}),Me.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var De=gc(te);zu({lineWise:!0,text:De.text}),Me.type=="cut"&&te.operation(function(){te.setSelections(De.ranges,0,vt),te.replaceSelection("",null,"cut")})}else return;if(Me.clipboardData){Me.clipboardData.clearData();var _e=lu.text.join(`
|
|
|
`);if(Me.clipboardData.setData("Text",_e),Me.clipboardData.getData("Text")==_e){Me.preventDefault();return}}var yt=Id(),Lt=yt.firstChild;te.display.lineSpace.insertBefore(yt,te.display.lineSpace.firstChild),Lt.value=lu.text.join(`
|
|
|
`);var pn=document.activeElement;wt(Lt),setTimeout(function(){te.display.lineSpace.removeChild(yt),pn.focus(),pn==ae&&ne.showPrimarySelection()},50)}}rn(ae,"copy",ve),rn(ae,"cut",ve)},Mo.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},Mo.prototype.prepareSelection=function(){var x=$t(this.cm,!1);return x.focus=document.activeElement==this.div,x},Mo.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},Mo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Mo.prototype.showPrimarySelection=function(){var x=this.getSelection(),z=this.cm,ne=z.doc.sel.primary(),te=ne.from(),ae=ne.to();if(z.display.viewTo==z.display.viewFrom||te.line>=z.display.viewTo||ae.line<z.display.viewFrom){x.removeAllRanges();return}var ce=nd(z,x.anchorNode,x.anchorOffset),ve=nd(z,x.focusNode,x.focusOffset);if(!(ce&&!ce.bad&&ve&&!ve.bad&&Ri(io(ce,ve),te)==0&&Ri(Oo(ce,ve),ae)==0)){var Me=z.display.view,De=te.line>=z.display.viewFrom&&xf(z,te)||{node:Me[0].measure.map[2],offset:0},_e=ae.line<z.display.viewTo&&xf(z,ae);if(!_e){var yt=Me[Me.length-1].measure,Lt=yt.maps?yt.maps[yt.maps.length-1]:yt.map;_e={node:Lt[Lt.length-1],offset:Lt[Lt.length-2]-Lt[Lt.length-3]}}if(!De||!_e){x.removeAllRanges();return}var pn=x.rangeCount&&x.getRangeAt(0),sn;try{sn=He(De.node,De.offset,_e.offset,_e.node)}catch(jn){}sn&&(!re&&z.state.focused?(x.collapse(De.node,De.offset),sn.collapsed||(x.removeAllRanges(),x.addRange(sn))):(x.removeAllRanges(),x.addRange(sn)),pn&&x.anchorNode==null?x.addRange(pn):re&&this.startGracePeriod()),this.rememberSelection()}},Mo.prototype.startGracePeriod=function(){var x=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){x.gracePeriod=!1,x.selectionChanged()&&x.cm.operation(function(){return x.cm.curOp.selectionChanged=!0})},20)},Mo.prototype.showMultipleSelections=function(x){Ot(this.cm.display.cursorDiv,x.cursors),Ot(this.cm.display.selectionDiv,x.selection)},Mo.prototype.rememberSelection=function(){var x=this.getSelection();this.lastAnchorNode=x.anchorNode,this.lastAnchorOffset=x.anchorOffset,this.lastFocusNode=x.focusNode,this.lastFocusOffset=x.focusOffset},Mo.prototype.selectionInEditor=function(){var x=this.getSelection();if(!x.rangeCount)return!1;var z=x.getRangeAt(0).commonAncestorContainer;return pt(this.div,z)},Mo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Mo.prototype.blur=function(){this.div.blur()},Mo.prototype.getField=function(){return this.div},Mo.prototype.supportsTouch=function(){return!0},Mo.prototype.receivedFocus=function(){var x=this;this.selectionInEditor()?this.pollSelection():Kn(this.cm,function(){return x.cm.curOp.selectionChanged=!0});function z(){x.cm.state.focused&&(x.pollSelection(),x.polling.set(x.cm.options.pollInterval,z))}this.polling.set(this.cm.options.pollInterval,z)},Mo.prototype.selectionChanged=function(){var x=this.getSelection();return x.anchorNode!=this.lastAnchorNode||x.anchorOffset!=this.lastAnchorOffset||x.focusNode!=this.lastFocusNode||x.focusOffset!=this.lastFocusOffset},Mo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var x=this.getSelection(),z=this.cm;if(Xe&&ye&&this.cm.display.gutterSpecs.length&&uh(x.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ne=nd(z,x.anchorNode,x.anchorOffset),te=nd(z,x.focusNode,x.focusOffset);ne&&te&&Kn(z,function(){uo(z.doc,fa(ne,te),vt),(ne.bad||te.bad)&&(z.curOp.selectionChanged=!0)})}}},Mo.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var x=this.cm,z=x.display,ne=x.doc.sel.primary(),te=ne.from(),ae=ne.to();if(te.ch==0&&te.line>x.firstLine()&&(te=Qn(te.line-1,ir(x.doc,te.line-1).length)),ae.ch==ir(x.doc,ae.line).text.length&&ae.line<x.lastLine()&&(ae=Qn(ae.line+1,0)),te.line<z.viewFrom||ae.line>z.viewTo-1)return!1;var ce,ve,Me;te.line==z.viewFrom||(ce=lo(x,te.line))==0?(ve=va(z.view[0].line),Me=z.view[0].node):(ve=va(z.view[ce].line),Me=z.view[ce-1].node.nextSibling);var De=lo(x,ae.line),_e,yt;if(De==z.view.length-1?(_e=z.viewTo-1,yt=z.lineDiv.lastChild):(_e=va(z.view[De+1].line)-1,yt=z.view[De+1].node.previousSibling),!Me)return!1;for(var Lt=x.doc.splitLines(ch(x,Me,yt,ve,_e)),pn=Aa(x.doc,Qn(ve,0),Qn(_e,ir(x.doc,_e).text.length));Lt.length>1&&pn.length>1;)if(en(Lt)==en(pn))Lt.pop(),pn.pop(),_e--;else if(Lt[0]==pn[0])Lt.shift(),pn.shift(),ve++;else break;for(var sn=0,jn=0,pr=Lt[0],Zr=pn[0],ui=Math.min(pr.length,Zr.length);sn<ui&&pr.charCodeAt(sn)==Zr.charCodeAt(sn);)++sn;for(var xi=en(Lt),ni=en(pn),ki=Math.min(xi.length-(Lt.length==1?sn:0),ni.length-(pn.length==1?sn:0));jn<ki&&xi.charCodeAt(xi.length-jn-1)==ni.charCodeAt(ni.length-jn-1);)++jn;if(Lt.length==1&&pn.length==1&&ve==te.line)for(;sn&&sn>te.ch&&xi.charCodeAt(xi.length-jn-1)==ni.charCodeAt(ni.length-jn-1);)sn--,jn++;Lt[Lt.length-1]=xi.slice(0,xi.length-jn).replace(/^\u200b+/,""),Lt[0]=Lt[0].slice(sn).replace(/\u200b+$/,"");var sa=Qn(ve,sn),ha=Qn(_e,pn.length?en(pn).length-jn:0);if(Lt.length>1||Lt[0]||Ri(sa,ha))return Fo(x.doc,Lt,sa,ha,"+input"),!0},Mo.prototype.ensurePolled=function(){this.forceCompositionEnd()},Mo.prototype.reset=function(){this.forceCompositionEnd()},Mo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Mo.prototype.readFromDOMSoon=function(){var x=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(x.readDOMTimeout=null,x.composing)if(x.composing.done)x.composing=null;else return;x.updateFromDOM()},80))},Mo.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&Kn(this.cm,function(){return Ea(x.cm)})},Mo.prototype.setUneditable=function(x){x.contentEditable="false"},Mo.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||dr(this.cm,Td)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},Mo.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},Mo.prototype.onContextMenu=function(){},Mo.prototype.resetPosition=function(){},Mo.prototype.needsContentAttribute=!0;function xf(x,z){var ne=cs(x,z.line);if(!ne||ne.hidden)return null;var te=ir(x.doc,z.line),ae=Yi(ne,te,z.line),ce=mr(te,x.doc.direction),ve="left";if(ce){var Me=Kt(ce,z.ch);ve=Me%2?"right":"left"}var De=Gs(ae.map,z.ch,ve);return De.offset=De.collapse=="right"?De.end:De.start,De}function uh(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function vc(x,z){return z&&(x.bad=!0),x}function ch(x,z,ne,te,ae){var ce="",ve=!1,Me=x.doc.lineSeparator(),De=!1;function _e(sn){return function(jn){return jn.id==sn}}function yt(){ve&&(ce+=Me,De&&(ce+=Me),ve=De=!1)}function Lt(sn){sn&&(yt(),ce+=sn)}function pn(sn){if(sn.nodeType==1){var jn=sn.getAttribute("cm-text");if(jn){Lt(jn);return}var pr=sn.getAttribute("cm-marker"),Zr;if(pr){var ui=x.findMarks(Qn(te,0),Qn(ae+1,0),_e(+pr));ui.length&&(Zr=ui[0].find(0))&&Lt(Aa(x.doc,Zr.from,Zr.to).join(Me));return}if(sn.getAttribute("contenteditable")=="false")return;var xi=/^(pre|div|p|li|table|br)$/i.test(sn.nodeName);if(!/^br$/i.test(sn.nodeName)&&sn.textContent.length==0)return;xi&&yt();for(var ni=0;ni<sn.childNodes.length;ni++)pn(sn.childNodes[ni]);/^(pre|p)$/i.test(sn.nodeName)&&(De=!0),xi&&(ve=!0)}else sn.nodeType==3&&Lt(sn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;pn(z),z!=ne;)z=z.nextSibling,De=!1;return ce}function nd(x,z,ne){var te;if(z==x.display.lineDiv){if(te=x.display.lineDiv.childNodes[ne],!te)return vc(x.clipPos(Qn(x.display.viewTo-1)),!0);z=null,ne=0}else for(te=z;;te=te.parentNode){if(!te||te==x.display.lineDiv)return null;if(te.parentNode&&te.parentNode==x.display.lineDiv)break}for(var ae=0;ae<x.display.view.length;ae++){var ce=x.display.view[ae];if(ce.node==te)return dh(ce,z,ne)}}function dh(x,z,ne){var te=x.text.firstChild,ae=!1;if(!z||!pt(te,z))return vc(Qn(va(x.line),0),!0);if(z==te&&(ae=!0,z=te.childNodes[ne],ne=0,!z)){var ce=x.rest?en(x.rest):x.line;return vc(Qn(va(ce),ce.text.length),ae)}var ve=z.nodeType==3?z:null,Me=z;for(!ve&&z.childNodes.length==1&&z.firstChild.nodeType==3&&(ve=z.firstChild,ne&&(ne=ve.nodeValue.length));Me.parentNode!=te;)Me=Me.parentNode;var De=x.measure,_e=De.maps;function yt(Zr,ui,xi){for(var ni=-1;ni<(_e?_e.length:0);ni++)for(var ki=ni<0?De.map:_e[ni],sa=0;sa<ki.length;sa+=3){var ha=ki[sa+2];if(ha==Zr||ha==ui){var Ya=va(ni<0?x.line:x.rest[ni]),Po=ki[sa]+xi;return(xi<0||ha!=Zr)&&(Po=ki[sa+(xi?1:0)]),Qn(Ya,Po)}}}var Lt=yt(ve,Me,ne);if(Lt)return vc(Lt,ae);for(var pn=Me.nextSibling,sn=ve?ve.nodeValue.length-ne:0;pn;pn=pn.nextSibling){if(Lt=yt(pn,pn.firstChild,0),Lt)return vc(Qn(Lt.line,Lt.ch-sn),ae);sn+=pn.textContent.length}for(var jn=Me.previousSibling,pr=ne;jn;jn=jn.previousSibling){if(Lt=yt(jn,jn.firstChild,-1),Lt)return vc(Qn(Lt.line,Lt.ch+pr),ae);pr+=jn.textContent.length}}var To=function(x){this.cm=x,this.prevInput="",this.pollingFast=!1,this.polling=new Le,this.hasSelection=!1,this.composing=null};To.prototype.init=function(x){var z=this,ne=this,te=this.cm;this.createField(x);var ae=this.textarea;x.wrapper.insertBefore(this.wrapper,x.wrapper.firstChild),kt&&(ae.style.width="0px"),rn(ae,"input",function(){Pe&&Ne>=9&&z.hasSelection&&(z.hasSelection=null),ne.poll()}),rn(ae,"paste",function(ve){wr(te,ve)||Pd(ve,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function ce(ve){if(!wr(te,ve)){if(te.somethingSelected())zu({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var Me=gc(te);zu({lineWise:!0,text:Me.text}),ve.type=="cut"?te.setSelections(Me.ranges,null,vt):(ne.prevInput="",ae.value=Me.text.join(`
|
|
|
`),wt(ae))}else return;ve.type=="cut"&&(te.state.cutIncoming=+new Date)}}rn(ae,"cut",ce),rn(ae,"copy",ce),rn(x.scroller,"paste",function(ve){if(!(us(x,ve)||wr(te,ve))){if(!ae.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var Me=new Event("paste");Me.clipboardData=ve.clipboardData,ae.dispatchEvent(Me)}}),rn(x.lineSpace,"selectstart",function(ve){us(x,ve)||Tr(ve)}),rn(ae,"compositionstart",function(){var ve=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:ve,range:te.markText(ve,te.getCursor("to"),{className:"CodeMirror-composing"})}}),rn(ae,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},To.prototype.createField=function(x){this.wrapper=Id(),this.textarea=this.wrapper.firstChild},To.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},To.prototype.prepareSelection=function(){var x=this.cm,z=x.display,ne=x.doc,te=$t(x);if(x.options.moveInputWithCursor){var ae=Ws(x,ne.sel.primary().head,"div"),ce=z.wrapper.getBoundingClientRect(),ve=z.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ae.top+ve.top-ce.top)),te.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ae.left+ve.left-ce.left))}return te},To.prototype.showSelection=function(x){var z=this.cm,ne=z.display;Ot(ne.cursorDiv,x.cursors),Ot(ne.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},To.prototype.reset=function(x){if(!(this.contextMenuPending||this.composing)){var z=this.cm;if(z.somethingSelected()){this.prevInput="";var ne=z.getSelection();this.textarea.value=ne,z.state.focused&&wt(this.textarea),Pe&&Ne>=9&&(this.hasSelection=ne)}else x||(this.prevInput=this.textarea.value="",Pe&&Ne>=9&&(this.hasSelection=null))}},To.prototype.getField=function(){return this.textarea},To.prototype.supportsTouch=function(){return!1},To.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ft||Ve()!=this.textarea))try{this.textarea.focus()}catch(x){}},To.prototype.blur=function(){this.textarea.blur()},To.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},To.prototype.receivedFocus=function(){this.slowPoll()},To.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},To.prototype.fastPoll=function(){var x=!1,z=this;z.pollingFast=!0;function ne(){var te=z.poll();!te&&!x?(x=!0,z.polling.set(60,ne)):(z.pollingFast=!1,z.slowPoll())}z.polling.set(20,ne)},To.prototype.poll=function(){var x=this,z=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!z.state.focused||Vn(ne)&&!te&&!this.composing||z.isReadOnly()||z.options.disableInput||z.state.keySeq)return!1;var ae=ne.value;if(ae==te&&!z.somethingSelected())return!1;if(Pe&&Ne>=9&&this.hasSelection===ae||Ze&&/[\uf700-\uf7ff]/.test(ae))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var ce=ae.charCodeAt(0);if(ce==8203&&!te&&(te="\u200B"),ce==8666)return this.reset(),this.cm.execCommand("undo")}for(var ve=0,Me=Math.min(te.length,ae.length);ve<Me&&te.charCodeAt(ve)==ae.charCodeAt(ve);)++ve;return Kn(z,function(){Td(z,ae.slice(ve),te.length-ve,null,x.composing?"*compose":null),ae.length>1e3||ae.indexOf(`
|
|
|
`)>-1?ne.value=x.prevInput="":x.prevInput=ae,x.composing&&(x.composing.range.clear(),x.composing.range=z.markText(x.composing.start,z.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},To.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},To.prototype.onKeyPress=function(){Pe&&Ne>=9&&(this.hasSelection=null),this.fastPoll()},To.prototype.onContextMenu=function(x){var z=this,ne=z.cm,te=ne.display,ae=z.textarea;z.contextMenuPending&&z.contextMenuPending();var ce=Fl(ne,x),ve=te.scroller.scrollTop;if(!ce||qe)return;var Me=ne.options.resetSelectionOnContextMenu;Me&&ne.doc.sel.contains(ce)==-1&&dr(ne,uo)(ne.doc,fa(ce),vt);var De=ae.style.cssText,_e=z.wrapper.style.cssText,yt=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",ae.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(x.clientY-yt.top-5)+"px; left: "+(x.clientX-yt.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Pe?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Lt;je&&(Lt=window.scrollY),te.input.focus(),je&&window.scrollTo(null,Lt),te.input.reset(),ne.somethingSelected()||(ae.value=z.prevInput=" "),z.contextMenuPending=sn,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function pn(){if(ae.selectionStart!=null){var pr=ne.somethingSelected(),Zr="\u200B"+(pr?ae.value:"");ae.value="\u21DA",ae.value=Zr,z.prevInput=pr?"":"\u200B",ae.selectionStart=1,ae.selectionEnd=Zr.length,te.selForContextMenu=ne.doc.sel}}function sn(){if(z.contextMenuPending==sn&&(z.contextMenuPending=!1,z.wrapper.style.cssText=_e,ae.style.cssText=De,Pe&&Ne<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=ve),ae.selectionStart!=null)){(!Pe||Pe&&Ne<9)&&pn();var pr=0,Zr=function(){te.selForContextMenu==ne.doc.sel&&ae.selectionStart==0&&ae.selectionEnd>0&&z.prevInput=="\u200B"?dr(ne,Ao)(ne):pr++<10?te.detectingSelectAll=setTimeout(Zr,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(Zr,200)}}if(Pe&&Ne>=9&&pn(),$e){Wi(x);var jn=function(){_r(window,"mouseup",jn),setTimeout(sn,20)};rn(window,"mouseup",jn)}else setTimeout(sn,50)},To.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},To.prototype.setUneditable=function(){},To.prototype.needsContentAttribute=!1;function rc(x,z){if(z=z?jt(z):{},z.value=x.value,!z.tabindex&&x.tabIndex&&(z.tabindex=x.tabIndex),!z.placeholder&&x.placeholder&&(z.placeholder=x.placeholder),z.autofocus==null){var ne=Ve();z.autofocus=ne==x||x.getAttribute("autofocus")!=null&&ne==document.body}function te(){x.value=Me.getValue()}var ae;if(x.form&&(rn(x.form,"submit",te),!z.leaveSubmitMethodAlone)){var ce=x.form;ae=ce.submit;try{var ve=ce.submit=function(){te(),ce.submit=ae,ce.submit(),ce.submit=ve}}catch(De){}}z.finishInit=function(De){De.save=te,De.getTextArea=function(){return x},De.toTextArea=function(){De.toTextArea=isNaN,te(),x.parentNode.removeChild(De.getWrapperElement()),x.style.display="",x.form&&(_r(x.form,"submit",te),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ae))}},x.style.display="none";var Me=La(function(De){return x.parentNode.insertBefore(De,x.nextSibling)},z);return Me}function yc(x){x.off=_r,x.on=rn,x.wheelEventPixels=Da,x.Doc=zo,x.splitLines=vn,x.countColumn=Re,x.findColumn=un,x.isWordChar=ge,x.Pass=Yt,x.signal=xr,x.Line=Bn,x.changeEnd=aa,x.scrollbarModel=Tn,x.Pos=Qn,x.cmpPos=Ri,x.modes=ia,x.mimeModes=Gi,x.resolveMode=qr,x.getMode=xa,x.modeExtensions=vi,x.extendMode=ca,x.copyState=li,x.startState=Li,x.innerMode=wi,x.commands=hc,x.keyMap=Lo,x.keyName=tc,x.isModifierKey=Bc,x.lookupKey=ku,x.normalizeKeyMap=Sd,x.StringStream=oi,x.SharedTextMarker=di,x.TextMarker=Xl,x.LineWidget=Iu,x.e_preventDefault=Tr,x.e_stopPropagation=si,x.e_stop=Wi,x.addClass=Qe,x.contains=pt,x.rmClass=Tt,x.keyNames=ou}oh(La),Od(La);var Du="iter insert remove copy getEditor constructor".split(" ");for(var eu in zo.prototype)zo.prototype.hasOwnProperty(eu)&&Nt(Du,eu)<0&&(La.prototype[eu]=function(x){return function(){return x.apply(this.doc,arguments)}}(zo.prototype[eu]));return Wr(zo),La.inputStyles={textarea:To,contenteditable:Mo},La.defineMode=function(x){!La.defaults.mode&&x!="null"&&(La.defaults.mode=x),Br.apply(this,arguments)},La.defineMIME=lr,La.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),La.defineMIME("text/plain","null"),La.defineExtension=function(x,z){La.prototype[x]=z},La.defineDocExtension=function(x,z){zo.prototype[x]=z},La.fromTextArea=rc,yc(La),La.version="5.58.2",La})},49047:function(cn,yn,de){(function(re){re(de(4631),de(29589),de(52539))})(function(re){"use strict";re.defineMode("markdown",function(xe,tt){var At=re.getMode(xe,"text/html"),Pe=At.name=="null";function Ne(Re){if(re.findModeByName){var Le=re.findModeByName(Re);Le&&(Re=Le.mime||Le.mimes[0])}var Nt=re.getMode(xe,Re);return Nt.name=="null"?null:Nt}tt.highlightFormatting===void 0&&(tt.highlightFormatting=!1),tt.maxBlockquoteDepth===void 0&&(tt.maxBlockquoteDepth=0),tt.taskLists===void 0&&(tt.taskLists=!1),tt.strikethrough===void 0&&(tt.strikethrough=!1),tt.emoji===void 0&&(tt.emoji=!1),tt.fencedCodeBlockHighlighting===void 0&&(tt.fencedCodeBlockHighlighting=!0),tt.fencedCodeBlockDefaultMode===void 0&&(tt.fencedCodeBlockDefaultMode="text/plain"),tt.xml===void 0&&(tt.xml=!0),tt.tokenTypeOverrides===void 0&&(tt.tokenTypeOverrides={});var je={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Ee in je)je.hasOwnProperty(Ee)&&tt.tokenTypeOverrides[Ee]&&(je[Ee]=tt.tokenTypeOverrides[Ee]);var ye=/^([*\-_])(?:\s*\1){2,}\s*$/,qe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,it=/^\[(x| )\](?=\s)/i,he=tt.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,gt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,kt=/^[^#!\[\]*_\\<>` "'(~:]+/,Xe=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ft=/^\s*\[[^\]]+?\]:.*$/,Ze=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,Je=" ";function et(Re,Le,Nt){return Le.f=Le.inline=Nt,Nt(Re,Le)}function Ye(Re,Le,Nt){return Le.f=Le.block=Nt,Nt(Re,Le)}function We(Re){return!Re||!/\S/.test(Re.string)}function $e(Re){if(Re.linkTitle=!1,Re.linkHref=!1,Re.linkText=!1,Re.em=!1,Re.strong=!1,Re.strikethrough=!1,Re.quote=0,Re.indentedCode=!1,Re.f==Tt){var Le=Pe;if(!Le){var Nt=re.innerMode(At,Re.htmlState);Le=Nt.mode.name=="xml"&&Nt.state.tagStart===null&&!Nt.state.context&&Nt.state.tokenize.isInText}Le&&(Re.f=ct,Re.block=lt,Re.htmlState=null)}return Re.trailingSpace=0,Re.trailingSpaceNewLine=!1,Re.prevLine=Re.thisLine,Re.thisLine={stream:null},null}function lt(Re,Le){var Nt=Re.column()===Le.indentation,Rt=We(Le.prevLine.stream),Yt=Le.indentedCode,vt=Le.prevLine.hr,nt=Le.list!==!1,Vt=(Le.listStack[Le.listStack.length-1]||0)+3;Le.indentedCode=!1;var un=Le.indentation;if(Le.indentationDiff===null&&(Le.indentationDiff=Le.indentation,nt)){for(Le.list=null;un<Le.listStack[Le.listStack.length-1];)Le.listStack.pop(),Le.listStack.length?Le.indentation=Le.listStack[Le.listStack.length-1]:Le.list=!1;Le.list!==!1&&(Le.indentationDiff=un-Le.listStack[Le.listStack.length-1])}var Ut=!Rt&&!vt&&!Le.prevLine.header&&(!nt||!Yt)&&!Le.prevLine.fencedCodeEnd,fn=(Le.list===!1||vt||Rt)&&Le.indentation<=Vt&&Re.match(ye),en=null;if(Le.indentationDiff>=4&&(Yt||Le.prevLine.fencedCodeEnd||Le.prevLine.header||Rt))return Re.skipToEnd(),Le.indentedCode=!0,je.code;if(Re.eatSpace())return null;if(Nt&&Le.indentation<=Vt&&(en=Re.match(he))&&en[1].length<=6)return Le.quote=0,Le.header=en[1].length,Le.thisLine.header=!0,tt.highlightFormatting&&(Le.formatting="header"),Le.f=Le.inline,Ot(Le);if(Le.indentation<=Vt&&Re.eat(">"))return Le.quote=Nt?1:Le.quote+1,tt.highlightFormatting&&(Le.formatting="quote"),Re.eatSpace(),Ot(Le);if(!fn&&!Le.setext&&Nt&&Le.indentation<=Vt&&(en=Re.match(qe))){var En=en[1]?"ol":"ul";return Le.indentation=un+Re.current().length,Le.list=!0,Le.quote=0,Le.listStack.push(Le.indentation),Le.em=!1,Le.strong=!1,Le.code=!1,Le.strikethrough=!1,tt.taskLists&&Re.match(it,!1)&&(Le.taskList=!0),Le.f=Le.inline,tt.highlightFormatting&&(Le.formatting=["list","list-"+En]),Ot(Le)}else{if(Nt&&Le.indentation<=Vt&&(en=Re.match(Xe,!0)))return Le.quote=0,Le.fencedEndRE=new RegExp(en[1]+"+ *$"),Le.localMode=tt.fencedCodeBlockHighlighting&&Ne(en[2]||tt.fencedCodeBlockDefaultMode),Le.localMode&&(Le.localState=re.startState(Le.localMode)),Le.f=Le.block=_t,tt.highlightFormatting&&(Le.formatting="code-block"),Le.code=-1,Ot(Le);if(Le.setext||(!Ut||!nt)&&!Le.quote&&Le.list===!1&&!Le.code&&!fn&&!ft.test(Re.string)&&(en=Re.lookAhead(1))&&(en=en.match(gt)))return Le.setext?(Le.header=Le.setext,Le.setext=0,Re.skipToEnd(),tt.highlightFormatting&&(Le.formatting="header")):(Le.header=en[0].charAt(0)=="="?1:2,Le.setext=Le.header),Le.thisLine.header=!0,Le.f=Le.inline,Ot(Le);if(fn)return Re.skipToEnd(),Le.hr=!0,Le.thisLine.hr=!0,je.hr;if(Re.peek()==="[")return et(Re,Le,Fe)}return et(Re,Le,Le.inline)}function Tt(Re,Le){var Nt=At.token(Re,Le.htmlState);if(!Pe){var Rt=re.innerMode(At,Le.htmlState);(Rt.mode.name=="xml"&&Rt.state.tagStart===null&&!Rt.state.context&&Rt.state.tokenize.isInText||Le.md_inside&&Re.current().indexOf(">")>-1)&&(Le.f=ct,Le.block=lt,Le.htmlState=null)}return Nt}function _t(Re,Le){var Nt=Le.listStack[Le.listStack.length-1]||0,Rt=Le.indentation<Nt,Yt=Nt+3;if(Le.fencedEndRE&&Le.indentation<=Yt&&(Rt||Re.match(Le.fencedEndRE))){tt.highlightFormatting&&(Le.formatting="code-block");var vt;return Rt||(vt=Ot(Le)),Le.localMode=Le.localState=null,Le.block=lt,Le.f=ct,Le.fencedEndRE=null,Le.code=0,Le.thisLine.fencedCodeEnd=!0,Rt?Ye(Re,Le,Le.block):vt}else return Le.localMode?Le.localMode.token(Re,Le.localState):(Re.skipToEnd(),je.code)}function Ot(Re){var Le=[];if(Re.formatting){Le.push(je.formatting),typeof Re.formatting=="string"&&(Re.formatting=[Re.formatting]);for(var Nt=0;Nt<Re.formatting.length;Nt++)Le.push(je.formatting+"-"+Re.formatting[Nt]),Re.formatting[Nt]==="header"&&Le.push(je.formatting+"-"+Re.formatting[Nt]+"-"+Re.header),Re.formatting[Nt]==="quote"&&(!tt.maxBlockquoteDepth||tt.maxBlockquoteDepth>=Re.quote?Le.push(je.formatting+"-"+Re.formatting[Nt]+"-"+Re.quote):Le.push("error"))}if(Re.taskOpen)return Le.push("meta"),Le.length?Le.join(" "):null;if(Re.taskClosed)return Le.push("property"),Le.length?Le.join(" "):null;if(Re.linkHref?Le.push(je.linkHref,"url"):(Re.strong&&Le.push(je.strong),Re.em&&Le.push(je.em),Re.strikethrough&&Le.push(je.strikethrough),Re.emoji&&Le.push(je.emoji),Re.linkText&&Le.push(je.linkText),Re.code&&Le.push(je.code),Re.image&&Le.push(je.image),Re.imageAltText&&Le.push(je.imageAltText,"link"),Re.imageMarker&&Le.push(je.imageMarker)),Re.header&&Le.push(je.header,je.header+"-"+Re.header),Re.quote&&(Le.push(je.quote),!tt.maxBlockquoteDepth||tt.maxBlockquoteDepth>=Re.quote?Le.push(je.quote+"-"+Re.quote):Le.push(je.quote+"-"+tt.maxBlockquoteDepth)),Re.list!==!1){var Rt=(Re.listStack.length-1)%3;Rt?Rt===1?Le.push(je.list2):Le.push(je.list3):Le.push(je.list1)}return Re.trailingSpaceNewLine?Le.push("trailing-space-new-line"):Re.trailingSpace&&Le.push("trailing-space-"+(Re.trailingSpace%2?"a":"b")),Le.length?Le.join(" "):null}function st(Re,Le){if(Re.match(kt,!0))return Ot(Le)}function ct(Re,Le){var Nt=Le.text(Re,Le);if(typeof Nt!="undefined")return Nt;if(Le.list)return Le.list=null,Ot(Le);if(Le.taskList){var Rt=Re.match(it,!0)[1]===" ";return Rt?Le.taskOpen=!0:Le.taskClosed=!0,tt.highlightFormatting&&(Le.formatting="task"),Le.taskList=!1,Ot(Le)}if(Le.taskOpen=!1,Le.taskClosed=!1,Le.header&&Re.match(/^#+$/,!0))return tt.highlightFormatting&&(Le.formatting="header"),Ot(Le);var Yt=Re.next();if(Le.linkTitle){Le.linkTitle=!1;var vt=Yt;Yt==="("&&(vt=")"),vt=(vt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var nt="^\\s*(?:[^"+vt+"\\\\]+|\\\\\\\\|\\\\.)"+vt;if(Re.match(new RegExp(nt),!0))return je.linkHref}if(Yt==="`"){var Vt=Le.formatting;tt.highlightFormatting&&(Le.formatting="code"),Re.eatWhile("`");var un=Re.current().length;if(Le.code==0&&(!Le.quote||un==1))return Le.code=un,Ot(Le);if(un==Le.code){var Ut=Ot(Le);return Le.code=0,Ut}else return Le.formatting=Vt,Ot(Le)}else if(Le.code)return Ot(Le);if(Yt==="\\"&&(Re.next(),tt.highlightFormatting)){var fn=Ot(Le),en=je.formatting+"-escape";return fn?fn+" "+en:en}if(Yt==="!"&&Re.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Le.imageMarker=!0,Le.image=!0,tt.highlightFormatting&&(Le.formatting="image"),Ot(Le);if(Yt==="["&&Le.imageMarker&&Re.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Le.imageMarker=!1,Le.imageAltText=!0,tt.highlightFormatting&&(Le.formatting="image"),Ot(Le);if(Yt==="]"&&Le.imageAltText){tt.highlightFormatting&&(Le.formatting="image");var fn=Ot(Le);return Le.imageAltText=!1,Le.image=!1,Le.inline=Le.f=pt,fn}if(Yt==="["&&!Le.image)return Le.linkText&&Re.match(/^.*?\]/)||(Le.linkText=!0,tt.highlightFormatting&&(Le.formatting="link")),Ot(Le);if(Yt==="]"&&Le.linkText){tt.highlightFormatting&&(Le.formatting="link");var fn=Ot(Le);return Le.linkText=!1,Le.inline=Le.f=Re.match(/\(.*?\)| ?\[.*?\]/,!1)?pt:ct,fn}if(Yt==="<"&&Re.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Le.f=Le.inline=He,tt.highlightFormatting&&(Le.formatting="link");var fn=Ot(Le);return fn?fn+=" ":fn="",fn+je.linkInline}if(Yt==="<"&&Re.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Le.f=Le.inline=He,tt.highlightFormatting&&(Le.formatting="link");var fn=Ot(Le);return fn?fn+=" ":fn="",fn+je.linkEmail}if(tt.xml&&Yt==="<"&&Re.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var En=Re.string.indexOf(">",Re.pos);if(En!=-1){var _n=Re.string.substring(Re.start,En);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(_n)&&(Le.md_inside=!0)}return Re.backUp(1),Le.htmlState=re.startState(At),Ye(Re,Le,Tt)}if(tt.xml&&Yt==="<"&&Re.match(/^\/\w*?>/))return Le.md_inside=!1,"tag";if(Yt==="*"||Yt==="_"){for(var Ce=1,se=Re.pos==1?" ":Re.string.charAt(Re.pos-2);Ce<3&&Re.eat(Yt);)Ce++;var ue=Re.peek()||" ",ge=!/\s/.test(ue)&&(!Ze.test(ue)||/\s/.test(se)||Ze.test(se)),pe=!/\s/.test(se)&&(!Ze.test(se)||/\s/.test(ue)||Ze.test(ue)),le=null,ze=null;if(Ce%2&&(!Le.em&&ge&&(Yt==="*"||!pe||Ze.test(se))?le=!0:Le.em==Yt&&pe&&(Yt==="*"||!ge||Ze.test(ue))&&(le=!1)),Ce>1&&(!Le.strong&&ge&&(Yt==="*"||!pe||Ze.test(se))?ze=!0:Le.strong==Yt&&pe&&(Yt==="*"||!ge||Ze.test(ue))&&(ze=!1)),ze!=null||le!=null){tt.highlightFormatting&&(Le.formatting=le==null?"strong":ze==null?"em":"strong em"),le===!0&&(Le.em=Yt),ze===!0&&(Le.strong=Yt);var Ut=Ot(Le);return le===!1&&(Le.em=!1),ze===!1&&(Le.strong=!1),Ut}}else if(Yt===" "&&(Re.eat("*")||Re.eat("_"))){if(Re.peek()===" ")return Ot(Le);Re.backUp(1)}if(tt.strikethrough){if(Yt==="~"&&Re.eatWhile(Yt)){if(Le.strikethrough){tt.highlightFormatting&&(Le.formatting="strikethrough");var Ut=Ot(Le);return Le.strikethrough=!1,Ut}else if(Re.match(/^[^\s]/,!1))return Le.strikethrough=!0,tt.highlightFormatting&&(Le.formatting="strikethrough"),Ot(Le)}else if(Yt===" "&&Re.match(/^~~/,!0)){if(Re.peek()===" ")return Ot(Le);Re.backUp(2)}}if(tt.emoji&&Yt===":"&&Re.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Le.emoji=!0,tt.highlightFormatting&&(Le.formatting="emoji");var bt=Ot(Le);return Le.emoji=!1,bt}return Yt===" "&&(Re.match(/^ +$/,!1)?Le.trailingSpace++:Le.trailingSpace&&(Le.trailingSpaceNewLine=!0)),Ot(Le)}function He(Re,Le){var Nt=Re.next();if(Nt===">"){Le.f=Le.inline=ct,tt.highlightFormatting&&(Le.formatting="link");var Rt=Ot(Le);return Rt?Rt+=" ":Rt="",Rt+je.linkInline}return Re.match(/^[^>]+/,!0),je.linkInline}function pt(Re,Le){if(Re.eatSpace())return null;var Nt=Re.next();return Nt==="("||Nt==="["?(Le.f=Le.inline=Qe(Nt==="("?")":"]"),tt.highlightFormatting&&(Le.formatting="link-string"),Le.linkHref=!0,Ot(Le)):"error"}var Ve={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Qe(Re){return function(Le,Nt){var Rt=Le.next();if(Rt===Re){Nt.f=Nt.inline=ct,tt.highlightFormatting&&(Nt.formatting="link-string");var Yt=Ot(Nt);return Nt.linkHref=!1,Yt}return Le.match(Ve[Re]),Nt.linkHref=!0,Ot(Nt)}}function Fe(Re,Le){return Re.match(/^([^\]\\]|\\.)*\]:/,!1)?(Le.f=wt,Re.next(),tt.highlightFormatting&&(Le.formatting="link"),Le.linkText=!0,Ot(Le)):et(Re,Le,ct)}function wt(Re,Le){if(Re.match(/^\]:/,!0)){Le.f=Le.inline=Mt,tt.highlightFormatting&&(Le.formatting="link");var Nt=Ot(Le);return Le.linkText=!1,Nt}return Re.match(/^([^\]\\]|\\.)+/,!0),je.linkText}function Mt(Re,Le){return Re.eatSpace()?null:(Re.match(/^[^\s]+/,!0),Re.peek()===void 0?Le.linkTitle=!0:Re.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Le.f=Le.inline=ct,je.linkHref+" url")}var jt={startState:function(){return{f:lt,prevLine:{stream:null},thisLine:{stream:null},block:lt,htmlState:null,indentation:0,inline:ct,text:st,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Re){return{f:Re.f,prevLine:Re.prevLine,thisLine:Re.thisLine,block:Re.block,htmlState:Re.htmlState&&re.copyState(At,Re.htmlState),indentation:Re.indentation,localMode:Re.localMode,localState:Re.localMode?re.copyState(Re.localMode,Re.localState):null,inline:Re.inline,text:Re.text,formatting:!1,linkText:Re.linkText,linkTitle:Re.linkTitle,linkHref:Re.linkHref,code:Re.code,em:Re.em,strong:Re.strong,strikethrough:Re.strikethrough,emoji:Re.emoji,header:Re.header,setext:Re.setext,hr:Re.hr,taskList:Re.taskList,list:Re.list,listStack:Re.listStack.slice(0),quote:Re.quote,indentedCode:Re.indentedCode,trailingSpace:Re.trailingSpace,trailingSpaceNewLine:Re.trailingSpaceNewLine,md_inside:Re.md_inside,fencedEndRE:Re.fencedEndRE}},token:function(Re,Le){if(Le.formatting=!1,Re!=Le.thisLine.stream){if(Le.header=0,Le.hr=!1,Re.match(/^\s*$/,!0))return $e(Le),null;if(Le.prevLine=Le.thisLine,Le.thisLine={stream:Re},Le.taskList=!1,Le.trailingSpace=0,Le.trailingSpaceNewLine=!1,!Le.localState&&(Le.f=Le.block,Le.f!=Tt)){var Nt=Re.match(/^\s*/,!0)[0].replace(/\t/g,Je).length;if(Le.indentation=Nt,Le.indentationDiff=null,Nt>0)return null}}return Le.f(Re,Le)},innerMode:function(Re){return Re.block==Tt?{state:Re.htmlState,mode:At}:Re.localState?{state:Re.localState,mode:Re.localMode}:{state:Re,mode:jt}},indent:function(Re,Le,Nt){return Re.block==Tt&&At.indent?At.indent(Re.htmlState,Le,Nt):Re.localState&&Re.localMode.indent?Re.localMode.indent(Re.localState,Le,Nt):re.Pass},blankLine:$e,getType:Ot,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return jt},"xml"),re.defineMIME("text/markdown","markdown"),re.defineMIME("text/x-markdown","markdown")})},52539:function(cn,yn,de){(function(re){re(de(4631))})(function(re){"use strict";re.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var xe=0;xe<re.modeInfo.length;xe++){var tt=re.modeInfo[xe];tt.mimes&&(tt.mime=tt.mimes[0])}re.findModeByMIME=function(At){At=At.toLowerCase();for(var Pe=0;Pe<re.modeInfo.length;Pe++){var Ne=re.modeInfo[Pe];if(Ne.mime==At)return Ne;if(Ne.mimes){for(var je=0;je<Ne.mimes.length;je++)if(Ne.mimes[je]==At)return Ne}}if(/\+xml$/.test(At))return re.findModeByMIME("application/xml");if(/\+json$/.test(At))return re.findModeByMIME("application/json")},re.findModeByExtension=function(At){At=At.toLowerCase();for(var Pe=0;Pe<re.modeInfo.length;Pe++){var Ne=re.modeInfo[Pe];if(Ne.ext){for(var je=0;je<Ne.ext.length;je++)if(Ne.ext[je]==At)return Ne}}},re.findModeByFileName=function(At){for(var Pe=0;Pe<re.modeInfo.length;Pe++){var Ne=re.modeInfo[Pe];if(Ne.file&&Ne.file.test(At))return Ne}var je=At.lastIndexOf("."),Ee=je>-1&&At.substring(je+1,At.length);if(Ee)return re.findModeByExtension(Ee)},re.findModeByName=function(At){At=At.toLowerCase();for(var Pe=0;Pe<re.modeInfo.length;Pe++){var Ne=re.modeInfo[Pe];if(Ne.name.toLowerCase()==At)return Ne;if(Ne.alias){for(var je=0;je<Ne.alias.length;je++)if(Ne.alias[je].toLowerCase()==At)return Ne}}}})},80785:function(cn,yn,de){(function(re){re(de(4631))})(function(re){"use strict";re.defineMode("stex",function(xe,tt){"use strict";function At(kt,Xe){kt.cmdState.push(Xe)}function Pe(kt){return kt.cmdState.length>0?kt.cmdState[kt.cmdState.length-1]:null}function Ne(kt){var Xe=kt.cmdState.pop();Xe&&Xe.closeBracket()}function je(kt){for(var Xe=kt.cmdState,ft=Xe.length-1;ft>=0;ft--){var Ze=Xe[ft];if(Ze.name!="DEFAULT")return Ze}return{styleIdentifier:function(){return null}}}function Ee(kt,Xe,ft){return function(){this.name=kt,this.bracketNo=0,this.style=Xe,this.styles=ft,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ye={};ye.importmodule=Ee("importmodule","tag",["string","builtin"]),ye.documentclass=Ee("documentclass","tag",["","atom"]),ye.usepackage=Ee("usepackage","tag",["atom"]),ye.begin=Ee("begin","tag",["atom"]),ye.end=Ee("end","tag",["atom"]),ye.label=Ee("label","tag",["atom"]),ye.ref=Ee("ref","tag",["atom"]),ye.eqref=Ee("eqref","tag",["atom"]),ye.cite=Ee("cite","tag",["atom"]),ye.bibitem=Ee("bibitem","tag",["atom"]),ye.Bibitem=Ee("Bibitem","tag",["atom"]),ye.RBibitem=Ee("RBibitem","tag",["atom"]),ye.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function qe(kt,Xe){kt.f=Xe}function it(kt,Xe){var ft;if(kt.match(/^\\[a-zA-Z@]+/)){var Ze=kt.current().slice(1);return ft=ye.hasOwnProperty(Ze)?ye[Ze]:ye.DEFAULT,ft=new ft,At(Xe,ft),qe(Xe,gt),ft.style}if(kt.match(/^\\[$&%#{}_]/)||kt.match(/^\\[,;!\/\\]/))return"tag";if(kt.match("\\["))return qe(Xe,function(et,Ye){return he(et,Ye,"\\]")}),"keyword";if(kt.match("\\("))return qe(Xe,function(et,Ye){return he(et,Ye,"\\)")}),"keyword";if(kt.match("$$"))return qe(Xe,function(et,Ye){return he(et,Ye,"$$")}),"keyword";if(kt.match("$"))return qe(Xe,function(et,Ye){return he(et,Ye,"$")}),"keyword";var Je=kt.next();if(Je=="%")return kt.skipToEnd(),"comment";if(Je=="}"||Je=="]"){if(ft=Pe(Xe),ft)ft.closeBracket(Je),qe(Xe,gt);else return"error";return"bracket"}else return Je=="{"||Je=="["?(ft=ye.DEFAULT,ft=new ft,At(Xe,ft),"bracket"):/\d/.test(Je)?(kt.eatWhile(/[\w.%]/),"atom"):(kt.eatWhile(/[\w\-_]/),ft=je(Xe),ft.name=="begin"&&(ft.argument=kt.current()),ft.styleIdentifier())}function he(kt,Xe,ft){if(kt.eatSpace())return null;if(ft&&kt.match(ft))return qe(Xe,it),"keyword";if(kt.match(/^\\[a-zA-Z@]+/))return"tag";if(kt.match(/^[a-zA-Z]+/))return"variable-2";if(kt.match(/^\\[$&%#{}_]/)||kt.match(/^\\[,;!\/]/)||kt.match(/^[\^_&]/))return"tag";if(kt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(kt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ze=kt.next();return Ze=="{"||Ze=="}"||Ze=="["||Ze=="]"||Ze=="("||Ze==")"?"bracket":Ze=="%"?(kt.skipToEnd(),"comment"):"error"}function gt(kt,Xe){var ft=kt.peek(),Ze;return ft=="{"||ft=="["?(Ze=Pe(Xe),Ze.openBracket(ft),kt.eat(ft),qe(Xe,it),"bracket"):/[ \t\r]/.test(ft)?(kt.eat(ft),null):(qe(Xe,it),Ne(Xe),it(kt,Xe))}return{startState:function(){var kt=tt.inMathMode?function(Xe,ft){return he(Xe,ft)}:it;return{cmdState:[],f:kt}},copyState:function(kt){return{cmdState:kt.cmdState.slice(),f:kt.f}},token:function(kt,Xe){return Xe.f(kt,Xe)},blankLine:function(kt){kt.f=it,kt.cmdState.length=0},lineComment:"%"}}),re.defineMIME("text/x-stex","stex"),re.defineMIME("text/x-latex","stex")})},29589:function(cn,yn,de){(function(re){re(de(4631))})(function(re){"use strict";var xe={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},tt={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};re.defineMode("xml",function(At,Pe){var Ne=At.indentUnit,je={},Ee=Pe.htmlMode?xe:tt;for(var ye in Ee)je[ye]=Ee[ye];for(var ye in Pe)je[ye]=Pe[ye];var qe,it;function he(He,pt){function Ve(wt){return pt.tokenize=wt,wt(He,pt)}var Qe=He.next();if(Qe=="<")return He.eat("!")?He.eat("[")?He.match("CDATA[")?Ve(Xe("atom","]]>")):null:He.match("--")?Ve(Xe("comment","-->")):He.match("DOCTYPE",!0,!0)?(He.eatWhile(/[\w\._\-]/),Ve(ft(1))):null:He.eat("?")?(He.eatWhile(/[\w\._\-]/),pt.tokenize=Xe("meta","?>"),"meta"):(qe=He.eat("/")?"closeTag":"openTag",pt.tokenize=gt,"tag bracket");if(Qe=="&"){var Fe;return He.eat("#")?He.eat("x")?Fe=He.eatWhile(/[a-fA-F\d]/)&&He.eat(";"):Fe=He.eatWhile(/[\d]/)&&He.eat(";"):Fe=He.eatWhile(/[\w\.\-:]/)&&He.eat(";"),Fe?"atom":"error"}else return He.eatWhile(/[^&<]/),null}he.isInText=!0;function gt(He,pt){var Ve=He.next();if(Ve==">"||Ve=="/"&&He.eat(">"))return pt.tokenize=he,qe=Ve==">"?"endTag":"selfcloseTag","tag bracket";if(Ve=="=")return qe="equals",null;if(Ve=="<"){pt.tokenize=he,pt.state=Ye,pt.tagName=pt.tagStart=null;var Qe=pt.tokenize(He,pt);return Qe?Qe+" tag error":"tag error"}else return/[\'\"]/.test(Ve)?(pt.tokenize=kt(Ve),pt.stringStartCol=He.column(),pt.tokenize(He,pt)):(He.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function kt(He){var pt=function(Ve,Qe){for(;!Ve.eol();)if(Ve.next()==He){Qe.tokenize=gt;break}return"string"};return pt.isInAttribute=!0,pt}function Xe(He,pt){return function(Ve,Qe){for(;!Ve.eol();){if(Ve.match(pt)){Qe.tokenize=he;break}Ve.next()}return He}}function ft(He){return function(pt,Ve){for(var Qe;(Qe=pt.next())!=null;){if(Qe=="<")return Ve.tokenize=ft(He+1),Ve.tokenize(pt,Ve);if(Qe==">")if(He==1){Ve.tokenize=he;break}else return Ve.tokenize=ft(He-1),Ve.tokenize(pt,Ve)}return"meta"}}function Ze(He,pt,Ve){this.prev=He.context,this.tagName=pt,this.indent=He.indented,this.startOfLine=Ve,(je.doNotIndent.hasOwnProperty(pt)||He.context&&He.context.noIndent)&&(this.noIndent=!0)}function Je(He){He.context&&(He.context=He.context.prev)}function et(He,pt){for(var Ve;;){if(!He.context||(Ve=He.context.tagName,!je.contextGrabbers.hasOwnProperty(Ve)||!je.contextGrabbers[Ve].hasOwnProperty(pt)))return;Je(He)}}function Ye(He,pt,Ve){return He=="openTag"?(Ve.tagStart=pt.column(),We):He=="closeTag"?$e:Ye}function We(He,pt,Ve){return He=="word"?(Ve.tagName=pt.current(),it="tag",_t):je.allowMissingTagName&&He=="endTag"?(it="tag bracket",_t(He,pt,Ve)):(it="error",We)}function $e(He,pt,Ve){if(He=="word"){var Qe=pt.current();return Ve.context&&Ve.context.tagName!=Qe&&je.implicitlyClosed.hasOwnProperty(Ve.context.tagName)&&Je(Ve),Ve.context&&Ve.context.tagName==Qe||je.matchClosing===!1?(it="tag",lt):(it="tag error",Tt)}else return je.allowMissingTagName&&He=="endTag"?(it="tag bracket",lt(He,pt,Ve)):(it="error",Tt)}function lt(He,pt,Ve){return He!="endTag"?(it="error",lt):(Je(Ve),Ye)}function Tt(He,pt,Ve){return it="error",lt(He,pt,Ve)}function _t(He,pt,Ve){if(He=="word")return it="attribute",Ot;if(He=="endTag"||He=="selfcloseTag"){var Qe=Ve.tagName,Fe=Ve.tagStart;return Ve.tagName=Ve.tagStart=null,He=="selfcloseTag"||je.autoSelfClosers.hasOwnProperty(Qe)?et(Ve,Qe):(et(Ve,Qe),Ve.context=new Ze(Ve,Qe,Fe==Ve.indented)),Ye}return it="error",_t}function Ot(He,pt,Ve){return He=="equals"?st:(je.allowMissing||(it="error"),_t(He,pt,Ve))}function st(He,pt,Ve){return He=="string"?ct:He=="word"&&je.allowUnquoted?(it="string",_t):(it="error",_t(He,pt,Ve))}function ct(He,pt,Ve){return He=="string"?ct:_t(He,pt,Ve)}return{startState:function(He){var pt={tokenize:he,state:Ye,indented:He||0,tagName:null,tagStart:null,context:null};return He!=null&&(pt.baseIndent=He),pt},token:function(He,pt){if(!pt.tagName&&He.sol()&&(pt.indented=He.indentation()),He.eatSpace())return null;qe=null;var Ve=pt.tokenize(He,pt);return(Ve||qe)&&Ve!="comment"&&(it=null,pt.state=pt.state(qe||Ve,He,pt),it&&(Ve=it=="error"?Ve+" error":it)),Ve},indent:function(He,pt,Ve){var Qe=He.context;if(He.tokenize.isInAttribute)return He.tagStart==He.indented?He.stringStartCol+1:He.indented+Ne;if(Qe&&Qe.noIndent)return re.Pass;if(He.tokenize!=gt&&He.tokenize!=he)return Ve?Ve.match(/^(\s*)/)[0].length:0;if(He.tagName)return je.multilineTagIndentPastTag!==!1?He.tagStart+He.tagName.length+2:He.tagStart+Ne*(je.multilineTagIndentFactor||1);if(je.alignCDATA&&/<!\[CDATA\[/.test(pt))return 0;var Fe=pt&&/^<(\/)?([\w_:\.-]*)/.exec(pt);if(Fe&&Fe[1])for(;Qe;)if(Qe.tagName==Fe[2]){Qe=Qe.prev;break}else if(je.implicitlyClosed.hasOwnProperty(Qe.tagName))Qe=Qe.prev;else break;else if(Fe)for(;Qe;){var wt=je.contextGrabbers[Qe.tagName];if(wt&&wt.hasOwnProperty(Fe[2]))Qe=Qe.prev;else break}for(;Qe&&Qe.prev&&!Qe.startOfLine;)Qe=Qe.prev;return Qe?Qe.indent+Ne:He.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:je.htmlMode?"html":"xml",helperType:je.htmlMode?"html":"xml",skipAttribute:function(He){He.state==st&&(He.state=_t)},xmlCurrentTag:function(He){return He.tagName?{name:He.tagName,close:He.type=="closeTag"}:null},xmlCurrentContext:function(He){for(var pt=[],Ve=He.context;Ve;Ve=Ve.prev)Ve.tagName&&pt.push(Ve.tagName);return pt.reverse()}}}),re.defineMIME("text/xml","xml"),re.defineMIME("application/xml","xml"),re.mimeModes.hasOwnProperty("text/html")||re.defineMIME("text/html",{name:"xml",htmlMode:!0})})},19575:function(cn,yn,de){var re,xe;(function(tt,At){cn.exports=At(tt)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof de.g!="undefined"?de.g:this,function(tt){"use strict";tt=tt||{};var At=tt.Base64,Pe="2.6.4",Ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",je=function(Ve){for(var Qe={},Fe=0,wt=Ve.length;Fe<wt;Fe++)Qe[Ve.charAt(Fe)]=Fe;return Qe}(Ne),Ee=String.fromCharCode,ye=function(Ve){if(Ve.length<2){var Qe=Ve.charCodeAt(0);return Qe<128?Ve:Qe<2048?Ee(192|Qe>>>6)+Ee(128|Qe&63):Ee(224|Qe>>>12&15)+Ee(128|Qe>>>6&63)+Ee(128|Qe&63)}else{var Qe=65536+(Ve.charCodeAt(0)-55296)*1024+(Ve.charCodeAt(1)-56320);return Ee(240|Qe>>>18&7)+Ee(128|Qe>>>12&63)+Ee(128|Qe>>>6&63)+Ee(128|Qe&63)}},qe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,it=function(Ve){return Ve.replace(qe,ye)},he=function(Ve){var Qe=[0,2,1][Ve.length%3],Fe=Ve.charCodeAt(0)<<16|(Ve.length>1?Ve.charCodeAt(1):0)<<8|(Ve.length>2?Ve.charCodeAt(2):0),wt=[Ne.charAt(Fe>>>18),Ne.charAt(Fe>>>12&63),Qe>=2?"=":Ne.charAt(Fe>>>6&63),Qe>=1?"=":Ne.charAt(Fe&63)];return wt.join("")},gt=tt.btoa&&typeof tt.btoa=="function"?function(Ve){return tt.btoa(Ve)}:function(Ve){if(Ve.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ve.replace(/[\s\S]{1,3}/g,he)},kt=function(Ve){return gt(it(String(Ve)))},Xe=function(Ve){return Ve.replace(/[+\/]/g,function(Qe){return Qe=="+"?"-":"_"}).replace(/=/g,"")},ft=function(Ve,Qe){return Qe?Xe(kt(Ve)):kt(Ve)},Ze=function(Ve){return ft(Ve,!0)},Je;tt.Uint8Array&&(Je=function(Ve,Qe){for(var Fe="",wt=0,Mt=Ve.length;wt<Mt;wt+=3){var jt=Ve[wt],Re=Ve[wt+1],Le=Ve[wt+2],Nt=jt<<16|Re<<8|Le;Fe+=Ne.charAt(Nt>>>18)+Ne.charAt(Nt>>>12&63)+(typeof Re!="undefined"?Ne.charAt(Nt>>>6&63):"=")+(typeof Le!="undefined"?Ne.charAt(Nt&63):"=")}return Qe?Xe(Fe):Fe});var et=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Ye=function(Ve){switch(Ve.length){case 4:var Qe=(7&Ve.charCodeAt(0))<<18|(63&Ve.charCodeAt(1))<<12|(63&Ve.charCodeAt(2))<<6|63&Ve.charCodeAt(3),Fe=Qe-65536;return Ee((Fe>>>10)+55296)+Ee((Fe&1023)+56320);case 3:return Ee((15&Ve.charCodeAt(0))<<12|(63&Ve.charCodeAt(1))<<6|63&Ve.charCodeAt(2));default:return Ee((31&Ve.charCodeAt(0))<<6|63&Ve.charCodeAt(1))}},We=function(Ve){return Ve.replace(et,Ye)},$e=function(Ve){var Qe=Ve.length,Fe=Qe%4,wt=(Qe>0?je[Ve.charAt(0)]<<18:0)|(Qe>1?je[Ve.charAt(1)]<<12:0)|(Qe>2?je[Ve.charAt(2)]<<6:0)|(Qe>3?je[Ve.charAt(3)]:0),Mt=[Ee(wt>>>16),Ee(wt>>>8&255),Ee(wt&255)];return Mt.length-=[0,0,2,1][Fe],Mt.join("")},lt=tt.atob&&typeof tt.atob=="function"?function(Ve){return tt.atob(Ve)}:function(Ve){return Ve.replace(/\S{1,4}/g,$e)},Tt=function(Ve){return lt(String(Ve).replace(/[^A-Za-z0-9\+\/]/g,""))},_t=function(Ve){return We(lt(Ve))},Ot=function(Ve){return String(Ve).replace(/[-_]/g,function(Qe){return Qe=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},st=function(Ve){return _t(Ot(Ve))},ct;tt.Uint8Array&&(ct=function(Ve){return Uint8Array.from(Tt(Ot(Ve)),function(Qe){return Qe.charCodeAt(0)})});var He=function(){var Ve=tt.Base64;return tt.Base64=At,Ve};if(tt.Base64={VERSION:Pe,atob:Tt,btoa:gt,fromBase64:st,toBase64:ft,utob:it,encode:ft,encodeURI:Ze,btou:We,decode:st,noConflict:He,fromUint8Array:Je,toUint8Array:ct},typeof Object.defineProperty=="function"){var pt=function(Ve){return{value:Ve,enumerable:!1,writable:!0,configurable:!0}};tt.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",pt(function(){return st(this)})),Object.defineProperty(String.prototype,"toBase64",pt(function(Ve){return ft(this,Ve)})),Object.defineProperty(String.prototype,"toBase64URI",pt(function(){return ft(this,!0)}))}}return tt.Meteor&&(Base64=tt.Base64),cn.exports?cn.exports.Base64=tt.Base64:(re=[],xe=function(){return tt.Base64}.apply(yn,re),xe!==void 0&&(cn.exports=xe)),{Base64:tt.Base64}})},15979:function(cn,yn,de){"use strict";de.d(yn,{hP:function(){return _n}});var re=function(Ce,se){return(re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,ge){ue.__proto__=ge}||function(ue,ge){for(var pe in ge)Object.prototype.hasOwnProperty.call(ge,pe)&&(ue[pe]=ge[pe])})(Ce,se)};function xe(Ce,se){function ue(){this.constructor=Ce}re(Ce,se),Ce.prototype=se===null?Object.create(se):(ue.prototype=se.prototype,new ue)}function tt(Ce,se,ue,ge){return new(ue||(ue=Promise))(function(pe,le){function ze(mn){try{Pt(ge.next(mn))}catch(ln){le(ln)}}function bt(mn){try{Pt(ge.throw(mn))}catch(ln){le(ln)}}function Pt(mn){var ln;mn.done?pe(mn.value):(ln=mn.value,ln instanceof ue?ln:new ue(function(Xt){Xt(ln)})).then(ze,bt)}Pt((ge=ge.apply(Ce,se||[])).next())})}function At(Ce,se){var ue,ge,pe,le,ze={label:0,sent:function(){if(1&pe[0])throw pe[1];return pe[1]},trys:[],ops:[]};return le={next:bt(0),throw:bt(1),return:bt(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function bt(Pt){return function(mn){return function(ln){if(ue)throw new TypeError("Generator is already executing.");for(;ze;)try{if(ue=1,ge&&(pe=2&ln[0]?ge.return:ln[0]?ge.throw||((pe=ge.return)&&pe.call(ge),0):ge.next)&&!(pe=pe.call(ge,ln[1])).done)return pe;switch(ge=0,pe&&(ln=[2&ln[0],pe.value]),ln[0]){case 0:case 1:pe=ln;break;case 4:return ze.label++,{value:ln[1],done:!1};case 5:ze.label++,ge=ln[1],ln=[0];continue;case 7:ln=ze.ops.pop(),ze.trys.pop();continue;default:if(pe=ze.trys,!((pe=pe.length>0&&pe[pe.length-1])||ln[0]!==6&&ln[0]!==2)){ze=0;continue}if(ln[0]===3&&(!pe||ln[1]>pe[0]&&ln[1]<pe[3])){ze.label=ln[1];break}if(ln[0]===6&&ze.label<pe[1]){ze.label=pe[1],pe=ln;break}if(pe&&ze.label<pe[2]){ze.label=pe[2],ze.ops.push(ln);break}pe[2]&&ze.ops.pop(),ze.trys.pop();continue}ln=se.call(Ce,ze)}catch(Xt){ln=[6,Xt],ge=0}finally{ue=pe=0}if(5&ln[0])throw ln[1];return{value:ln[0]?ln[1]:void 0,done:!0}}([Pt,mn])}}}function Pe(){for(var Ce=0,se=0,ue=arguments.length;se<ue;se++)Ce+=arguments[se].length;var ge=Array(Ce),pe=0;for(se=0;se<ue;se++)for(var le=arguments[se],ze=0,bt=le.length;ze<bt;ze++,pe++)ge[pe]=le[ze];return ge}var Ne=function(){function Ce(){}return Ce.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ce.setAttributes=function(se,ue){for(var ge=0,pe=ue;ge<pe.length;ge++){var le=pe[ge],ze=le[0],bt=le[1];se.setAttribute(ze,bt)}},Ce.createRect=function(se,ue,ge){var pe=document.createElementNS("http://www.w3.org/2000/svg","rect");return pe.setAttribute("width",se.toString()),pe.setAttribute("height",ue.toString()),ge&&Ce.setAttributes(pe,ge),pe},Ce.createLine=function(se,ue,ge,pe,le){var ze=document.createElementNS("http://www.w3.org/2000/svg","line");return ze.setAttribute("x1",se.toString()),ze.setAttribute("y1",ue.toString()),ze.setAttribute("x2",ge.toString()),ze.setAttribute("y2",pe.toString()),le&&Ce.setAttributes(ze,le),ze},Ce.createPolygon=function(se,ue){var ge=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ge.setAttribute("points",se),ue&&Ce.setAttributes(ge,ue),ge},Ce.createCircle=function(se,ue){var ge=document.createElementNS("http://www.w3.org/2000/svg","circle");return ge.setAttribute("cx",(se/2).toString()),ge.setAttribute("cy",(se/2).toString()),ge.setAttribute("r",se.toString()),ue&&Ce.setAttributes(ge,ue),ge},Ce.createEllipse=function(se,ue,ge){var pe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return pe.setAttribute("cx",(se/2).toString()),pe.setAttribute("cy",(ue/2).toString()),pe.setAttribute("rx",(se/2).toString()),pe.setAttribute("ry",(ue/2).toString()),ge&&Ce.setAttributes(pe,ge),pe},Ce.createGroup=function(se){var ue=document.createElementNS("http://www.w3.org/2000/svg","g");return se&&Ce.setAttributes(ue,se),ue},Ce.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ce.createMarker=function(se,ue,ge,pe,le,ze,bt){var Pt=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ce.setAttributes(Pt,[["id",se],["orient",ue],["markerWidth",ge.toString()],["markerHeight",pe.toString()],["refX",le.toString()],["refY",ze.toString()]]),Pt.appendChild(bt),Pt},Ce.createText=function(se){var ue=document.createElementNS("http://www.w3.org/2000/svg","text");return ue.setAttribute("x","0"),ue.setAttribute("y","0"),se&&Ce.setAttributes(ue,se),ue},Ce.createTSpan=function(se,ue){var ge=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ge.textContent=se,ue&&Ce.setAttributes(ge,ue),ge},Ce.createImage=function(se){var ue=document.createElementNS("http://www.w3.org/2000/svg","image");return se&&Ce.setAttributes(ue,se),ue},Ce.createPoint=function(se,ue){var ge=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ge.x=se,ge.y=ue,ge},Ce.createPath=function(se,ue){var ge=document.createElementNS("http://www.w3.org/2000/svg","path");return ge.setAttribute("d",se),ue&&Ce.setAttributes(ge,ue),ge},Ce}(),je=function(){function Ce(){}return Ce.addKey=function(se){Ce.key=se},Object.defineProperty(Ce,"isLicensed",{get:function(){return!!Ce.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Ce.key)},enumerable:!1,configurable:!0}),Ce}(),Ee=function(){function Ce(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Ce.prototype.rasterize=function(se,ue,ge){var pe=this;return new Promise(function(le){var ze=ge!==void 0?ge:document.createElement("canvas");se===null&&(pe.markersOnly=!0,pe.naturalSize=!1);var bt=document.createElementNS("http://www.w3.org/2000/svg","svg");bt.setAttribute("xmlns","http://www.w3.org/2000/svg"),bt.setAttribute("width",ue.width.baseVal.valueAsString),bt.setAttribute("height",ue.height.baseVal.valueAsString),bt.setAttribute("viewBox","0 0 "+ue.viewBox.baseVal.width.toString()+" "+ue.viewBox.baseVal.height.toString()),bt.innerHTML=ue.innerHTML,pe.naturalSize===!0?(bt.width.baseVal.value=se.naturalWidth,bt.height.baseVal.value=se.naturalHeight):pe.width!==void 0&&pe.height!==void 0&&(bt.width.baseVal.value=pe.width,bt.height.baseVal.value=pe.height),ze.width=bt.width.baseVal.value,ze.height=bt.height.baseVal.value;var Pt=bt.outerHTML,mn=ze.getContext("2d");pe.markersOnly!==!0&&mn.drawImage(se,0,0,ze.width,ze.height);var ln=window.URL,Xt=new Image(ze.width,ze.height);Xt.setAttribute("crossOrigin","anonymous");var Kt=new Blob([Pt],{type:"image/svg+xml"}),sr=ln.createObjectURL(Kt);Xt.onload=function(){mn.drawImage(Xt,0,0),ln.revokeObjectURL(sr);var mr=ze.toDataURL(pe.imageType,pe.imageQuality);le(mr)},Xt.src=sr})},Ce}(),ye=function(){},qe=function(){function Ce(se){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+se+"_"}return Object.defineProperty(Ce.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Ce.prototype.addClass=function(se){return this.styleSheet===void 0&&this.addStyleSheet(),se.name=""+this.classNamePrefix+se.localName,this.classes.push(se),this.styleSheet.sheet.insertRule("."+se.name+" {"+se.style+"}",this.styleSheet.sheet.cssRules.length),se},Ce.prototype.addRule=function(se){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(se),this.styleSheet.sheet.insertRule(se.selector+" {"+se.style+"}",this.styleSheet.sheet.cssRules.length)},Ce.prototype.addStyleSheet=function(){var se;this.styleSheet=document.createElement("style"),((se=this.styleSheetRoot)!==null&&se!==void 0?se:document.head).appendChild(this.styleSheet),this.addRule(new it("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new it("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new it("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new he("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new he("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},Ce.prototype.removeStyleSheet=function(){var se;this.styleSheet&&(((se=this.styleSheetRoot)!==null&&se!==void 0?se:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ce}(),it=function(Ce,se){this.selector=Ce,this.style=se},he=function(Ce,se){this.localName=Ce,this.style=se},gt=function(){function Ce(se,ue,ge,pe,le){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=se,this.displayMode=ue,this.markerItems=ge,this.uiStyleSettings=pe,this.styles=le,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Ce.prototype.show=function(se){var ue=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=se,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ge=document.createElement("div");ge.className=this.toolbarBlockStyleClass.name,ge.style.whiteSpace="nowrap",this.uiContainer.appendChild(ge),this.addActionButton(ge,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(ge,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ge,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ge,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ge,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ge,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ge,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ge,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(le){var ze=document.createElement("div");ze.className=""+ue.toolbarButtonStyleClass.name,ze.setAttribute("data-type-name",le.typeName),ze.innerHTML=le.icon,ze.addEventListener("click",function(){ue.markerToolbarButtonClicked(ze,le)}),ue.buttons.push(ze),ue.markerButtons.push(ze)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var pe=document.createElement("div");pe.className=this.toolbarBlockStyleClass.name,pe.style.whiteSpace="nowrap",pe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(pe),this.addActionButton(pe,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(pe,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Ce.prototype.addButtonClickListener=function(se){this.buttonClickListeners.push(se)},Ce.prototype.removeButtonClickListener=function(se){this.buttonClickListeners.indexOf(se)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(se),1)},Ce.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ce.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var se=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ue=0;ue<this.markerButtons.length;ue++)ue<se||ue===se&&this.markerButtons.length-1===se?this.markerButtonBlock.appendChild(this.markerButtons[ue]):(ue===se&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ue]))}},Ce.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},Ce.prototype.resetButtonStyles=function(){var se=this;this.buttons.forEach(function(ue){ue.className=ue.className.replace(se.uiStyleSettings.toolbarButtonStyleColorsClassName?se.uiStyleSettings.toolbarButtonStyleColorsClassName:se.toolbarButtonStyleColorsClass.name,"").trim(),ue.className=ue.className.replace(se.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?se.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:se.toolbarActiveButtonStyleColorsClass.name,"").trim(),ue.className+=" "+(se.uiStyleSettings.toolbarButtonStyleColorsClassName?se.uiStyleSettings.toolbarButtonStyleColorsClassName:se.toolbarButtonStyleColorsClass.name)})},Ce.prototype.addActionButton=function(se,ue,ge){var pe=this,le=document.createElement("div");switch(le.className=""+this.toolbarButtonStyleClass.name,le.innerHTML=ue,le.setAttribute("data-action",ge),le.addEventListener("click",function(){pe.actionToolbarButtonClicked(le,ge)}),ge){case"select":le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":le.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":le.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":le.style.fill=this.uiStyleSettings.closeButtonColor}se.appendChild(le),this.buttons.push(le)},Ce.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new he("toolbar",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new he("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new he("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new he("toolbar-overflow-block",`
|
|
|
position: absolute;
|
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
z-index: 10;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new he("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var se=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new he("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*se)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*se)+`px;
|
|
|
padding: `+se+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new he("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new he("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new it("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new it("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},Ce.prototype.markerToolbarButtonClicked=function(se,ue){this.setActiveButton(se),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ge){return ge("marker",ue)}),this.markerButtonOverflowBlock.style.display="none"},Ce.prototype.actionToolbarButtonClicked=function(se,ue){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ge){return ge("action",ue)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ce.prototype.setActiveButton=function(se){this.resetButtonStyles(),se.className=se.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),se.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Ce.prototype.setActiveMarkerButton=function(se){var ue=this.markerButtons.find(function(ge){return ge.getAttribute("data-type-name")===se});ue&&this.setActiveButton(ue)},Ce.prototype.setCurrentMarker=function(se){var ue=this;this.currentMarker=se,this.buttons.filter(function(ge){return/delete|notes/.test(ge.getAttribute("data-action"))}).forEach(function(ge){ue.currentMarker===void 0?(ge.style.fillOpacity="0.4",ge.style.pointerEvents="none"):(ge.style.fillOpacity="1",ge.style.pointerEvents="all")})},Ce}(),kt=function(){function Ce(se,ue,ge,pe){this.panels=[],this.panelButtons=[],this.markerjsContainer=se,this.displayMode=ue,this.uiStyleSettings=ge,this.styles=pe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ce.prototype.addStyles=function(){var se;this.toolboxStyleClass=this.styles.addClass(new he("toolbox",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
font-family: sans-serif;
|
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new he("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var ue=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new he("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new he("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new he("toolbox-panel-row",`
|
|
|
display: flex;
|
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
cursor: default;
|
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new he("toolbox-panel-row_colors",`
|
|
|
background-color: `+((se=this.uiStyleSettings.toolboxBackgroundColor)!==null&&se!==void 0?se:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new he("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ue)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ue)+`px;
|
|
|
padding: `+ue+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new he("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new he("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new it("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new it("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},Ce.prototype.show=function(se){var ue;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=se,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ue=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ue!==void 0?ue:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ce.prototype.setPanelButtons=function(se){var ue,ge,pe=this;this.panels=se,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ue=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ue!==void 0?ue:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ge=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ge!==void 0?ge:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(le){var ze;le.uiStyleSettings=pe.uiStyleSettings;var bt=document.createElement("div");bt.className=pe.toolboxButtonStyleClass.name+" "+((ze=pe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ze!==void 0?ze:pe.toolboxButtonStyleColorsClass.name),bt.innerHTML=le.icon,bt.title=le.title,bt.addEventListener("click",function(){pe.panelButtonClick(le)}),pe.panelButtons.push(bt),pe.buttonRow.appendChild(bt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ce.prototype.panelButtonClick=function(se){var ue=this,ge=-1;if(se!==this.activePanel){ge=this.panels.indexOf(se),this.panelRow.innerHTML="";var pe=se.getUi();pe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(pe),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=se}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ue.displayMode==="inline"?ue.panelRow.style.display="none":ue.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(le,ze){var bt,Pt;le.className=ue.toolboxButtonStyleClass.name+" "+(ze===ge?""+((bt=ue.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&bt!==void 0?bt:ue.toolboxActiveButtonStyleColorsClass.name):""+((Pt=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Pt!==void 0?Pt:ue.toolboxButtonStyleColorsClass.name))})},Ce}(),Xe=function(Ce,se){this.title=Ce,this.icon=se},ft=function(Ce){function se(ue,ge,pe,le){var ze=Ce.call(this,ue,le||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return ze.colors=[],ze.addTransparent=!1,ze.colorBoxes=[],ze.colors=ge,ze.currentColor=pe,ze.setCurrentColor=ze.setCurrentColor.bind(ze),ze.getColorBox=ze.getColorBox.bind(ze),ze}return xe(se,Ce),se.prototype.getUi=function(){var ue=this,ge=document.createElement("div");return ge.style.overflow="hidden",ge.style.whiteSpace="nowrap",this.colors.forEach(function(pe){var le=ue.getColorBox(pe);ge.appendChild(le),ue.colorBoxes.push(le)}),ge},se.prototype.getColorBox=function(ue){var ge=this,pe=this.uiStyleSettings.toolbarHeight/4,le=this.uiStyleSettings.toolbarHeight-pe,ze=document.createElement("div");ze.style.display="inline-block",ze.style.boxSizing="content-box",ze.style.width=le-2+"px",ze.style.height=le-2+"px",ze.style.padding="1px",ze.style.marginRight="2px",ze.style.marginBottom="2px",ze.style.borderWidth="2px",ze.style.borderStyle="solid",ze.style.borderRadius=(le+2)/2+"px",ze.style.borderColor=ue===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ze.addEventListener("click",function(){ge.setCurrentColor(ue,ze)});var bt=document.createElement("div");return bt.style.display="inline-block",bt.style.width=le-2+"px",bt.style.height=le-2+"px",bt.style.backgroundColor=ue,bt.style.borderRadius=le/2+"px",ue==="transparent"&&(bt.style.fill=this.uiStyleSettings.toolboxAccentColor,bt.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),ze.appendChild(bt),ze},se.prototype.setCurrentColor=function(ue,ge){var pe=this;this.currentColor=ue,this.colorBoxes.forEach(function(le){le.style.borderColor=le===ge?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ue)},se}(Xe),Ze=function(){function Ce(se,ue,ge){this._state="new",this._isSelected=!1,this._container=se,this._overlayContainer=ue,this.globalSettings=ge,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ce.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ce.prototype.ownsTarget=function(se){return!1},Object.defineProperty(Ce.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ce.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ce.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ce.prototype.pointerDown=function(se,ue){},Ce.prototype.dblClick=function(se,ue){},Ce.prototype.manipulate=function(se){},Ce.prototype.pointerUp=function(se){this.stateChanged()},Ce.prototype.dispose=function(){},Ce.prototype.addMarkerVisualToContainer=function(se){this.container.childNodes.length>0?this.container.insertBefore(se,this.container.childNodes[0]):this.container.appendChild(se)},Ce.prototype.getState=function(){return{typeName:Ce.typeName,state:this.state,notes:this.notes}},Ce.prototype.restoreState=function(se){this._state=se.state,this.notes=se.notes},Ce.prototype.scale=function(se,ue){},Ce.prototype.colorChanged=function(se){this.onColorChanged&&this.onColorChanged(se),this.stateChanged()},Ce.prototype.fillColorChanged=function(se){this.onFillColorChanged&&this.onFillColorChanged(se),this.stateChanged()},Ce.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var se=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),se.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(se)&&this.onStateChanged(this)}},Ce.typeName="MarkerBase",Ce}(),Je=function(){function Ce(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ce.prototype.findGripByVisual=function(se){return this.topLeft.ownsTarget(se)?this.topLeft:this.topCenter.ownsTarget(se)?this.topCenter:this.topRight.ownsTarget(se)?this.topRight:this.centerLeft.ownsTarget(se)?this.centerLeft:this.centerRight.ownsTarget(se)?this.centerRight:this.bottomLeft.ownsTarget(se)?this.bottomLeft:this.bottomCenter.ownsTarget(se)?this.bottomCenter:this.bottomRight.ownsTarget(se)?this.bottomRight:void 0},Ce}(),et=function(){function Ce(){this.GRIP_SIZE=10,this.visual=Ne.createGroup(),this.visual.appendChild(Ne.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ne.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ce.prototype.ownsTarget=function(se){return se===this.visual||se===this.visual.childNodes[0]||se===this.visual.childNodes[1]},Ce}(),Ye=function(){function Ce(){}return Ce.toITransformMatrix=function(se){return{a:se.a,b:se.b,c:se.c,d:se.d,e:se.e,f:se.f}},Ce.toSVGMatrix=function(se,ue){return se.a=ue.a,se.b=ue.b,se.c=ue.c,se.d=ue.d,se.e=ue.e,se.f=ue.f,se},Ce}(),We=function(Ce){function se(ue,ge,pe){var le=Ce.call(this,ue,ge,pe)||this;return le.left=0,le.top=0,le.width=0,le.height=0,le.defaultSize={x:50,y:20},le.offsetX=0,le.offsetY=0,le.rotationAngle=0,le.CB_DISTANCE=10,le._suppressMarkerCreateEvent=!1,le.container.transform.baseVal.appendItem(Ne.createTransform()),le.setupControlBox(),le}return xe(se,Ce),Object.defineProperty(se.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"visual",{get:function(){return this._visual},set:function(ue){this._visual=ue;var ge=Ne.createTransform();this._visual.transform.baseVal.appendItem(ge)},enumerable:!1,configurable:!0}),se.prototype.ownsTarget=function(ue){return!!Ce.prototype.ownsTarget.call(this,ue)||!!(this.controlGrips.findGripByVisual(ue)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ue))},se.prototype.pointerDown=function(ue,ge){Ce.prototype.pointerDown.call(this,ue,ge),this.state==="new"&&(this.left=ue.x,this.top=ue.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var pe=this.unrotatePoint(ue);if(this.manipulationStartX=pe.x,this.manipulationStartY=pe.y,this.offsetX=pe.x-this.left,this.offsetY=pe.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ge),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ge)){this.activeGrip=this.rotatorGrip;var le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=le.x-this.width/2,this.top=le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ze=this.container.transform.baseVal.getItem(0);ze.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ze,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},se.prototype.pointerUp=function(ue){var ge=this.state;Ce.prototype.pointerUp.call(this,ue),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ue),this._state="select",ge==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},se.prototype.moveVisual=function(ue){this.visual.style.transform="translate("+ue.x+"px, "+ue.y+"px)"},se.prototype.manipulate=function(ue){var ge=this.unrotatePoint(ue);this.state==="creating"?this.resize(ue):this.state==="move"?(this.left=this.manipulationStartLeft+(ge.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ge.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ge):this.state==="rotate"&&this.rotate(ue)},se.prototype.resize=function(ue){var ge=this.manipulationStartLeft,pe=this.manipulationStartWidth,le=this.manipulationStartTop,ze=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ge=this.manipulationStartLeft+ue.x-this.manipulationStartX,pe=this.manipulationStartWidth+this.manipulationStartLeft-ge;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:pe=this.manipulationStartWidth+ue.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:le=this.manipulationStartTop+ue.y-this.manipulationStartY,ze=this.manipulationStartHeight+this.manipulationStartTop-le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ze=this.manipulationStartHeight+ue.y-this.manipulationStartY}pe>=0?(this.left=ge,this.width=pe):(this.left=ge+pe,this.width=-pe),ze>=0?(this.top=le,this.height=ze):(this.top=le+ze,this.height=-ze),this.setSize()},se.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},se.prototype.rotate=function(ue){if(Math.abs(ue.x-this.centerX)>.1){var ge=Math.sign(ue.x-this.centerX);this.rotationAngle=180*Math.atan((ue.y-this.centerY)/(ue.x-this.centerX))/Math.PI+90*ge,this.applyRotation()}},se.prototype.applyRotation=function(){var ue=this.container.transform.baseVal.getItem(0);ue.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ue,0)},se.prototype.rotatePoint=function(ue){if(this.rotationAngle===0)return ue;var ge=this.container.getCTM(),pe=Ne.createPoint(ue.x,ue.y);return{x:(pe=pe.matrixTransform(ge)).x,y:pe.y}},se.prototype.unrotatePoint=function(ue){if(this.rotationAngle===0)return ue;var ge=this.container.getCTM();ge=ge.inverse();var pe=Ne.createPoint(ue.x,ue.y);return{x:(pe=pe.matrixTransform(ge)).x,y:pe.y}},se.prototype.select=function(){Ce.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},se.prototype.deselect=function(){Ce.prototype.deselect.call(this),this.controlBox.style.display="none"},se.prototype.setupControlBox=function(){this.controlBox=Ne.createGroup();var ue=Ne.createTransform();ue.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ue),this.container.appendChild(this.controlBox),this.controlRect=Ne.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Ne.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Je,this.addControlGrips(),this.controlBox.style.display="none"},se.prototype.adjustControlBox=function(){var ue=this.controlBox.transform.baseVal.getItem(0);ue.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ue,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},se.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},se.prototype.createGrip=function(){var ue=new et;return ue.visual.transform.baseVal.appendItem(Ne.createTransform()),this.controlBox.appendChild(ue.visual),ue},se.prototype.positionGrips=function(){var ue=this.controlGrips.topLeft.GRIP_SIZE,ge=-ue/2,pe=ge,le=(this.width+this.CB_DISTANCE)/2-ue/2,ze=(this.height+this.CB_DISTANCE)/2-ue/2,bt=this.height+this.CB_DISTANCE-ue/2,Pt=this.width+this.CB_DISTANCE-ue/2;this.positionGrip(this.controlGrips.topLeft.visual,ge,pe),this.positionGrip(this.controlGrips.topCenter.visual,le,pe),this.positionGrip(this.controlGrips.topRight.visual,Pt,pe),this.positionGrip(this.controlGrips.centerLeft.visual,ge,ze),this.positionGrip(this.controlGrips.centerRight.visual,Pt,ze),this.positionGrip(this.controlGrips.bottomLeft.visual,ge,bt),this.positionGrip(this.controlGrips.bottomCenter.visual,le,bt),this.positionGrip(this.controlGrips.bottomRight.visual,Pt,bt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,le,pe-3*this.CB_DISTANCE)},se.prototype.positionGrip=function(ue,ge,pe){var le=ue.transform.baseVal.getItem(0);le.setTranslate(ge,pe),ue.transform.baseVal.replaceItem(le,0)},se.prototype.hideControlBox=function(){this.controlBox.style.display="none"},se.prototype.showControlBox=function(){this.controlBox.style.display=""},se.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ye.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ye.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ce.prototype.getState.call(this))},se.prototype.restoreState=function(ue){Ce.prototype.restoreState.call(this,ue);var ge=ue;this.left=ge.left,this.top=ge.top,this.width=ge.width,this.height=ge.height,this.rotationAngle=ge.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ye.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ge.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ye.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ge.containerTransformMatrix))},se.prototype.scale=function(ue,ge){Ce.prototype.scale.call(this,ue,ge);var pe=this.rotatePoint({x:this.left,y:this.top}),le=this.unrotatePoint({x:pe.x*ue,y:pe.y*ge});this.left=le.x,this.top=le.y,this.width=this.width*ue,this.height=this.height*ge,this.adjustControlBox()},se}(Ze),$e=function(Ce){function se(ue,ge,pe){var le=Ce.call(this,ue,ge,pe)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le}return xe(se,Ce),se.prototype.ownsTarget=function(ue){return!(!Ce.prototype.ownsTarget.call(this,ue)&&ue!==this.visual)},se.prototype.createVisual=function(){this.visual=Ne.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},se.prototype.pointerDown=function(ue,ge){Ce.prototype.pointerDown.call(this,ue,ge),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},se.prototype.manipulate=function(ue){Ce.prototype.manipulate.call(this,ue)},se.prototype.resize=function(ue){Ce.prototype.resize.call(this,ue),this.setSize()},se.prototype.setSize=function(){Ce.prototype.setSize.call(this),Ne.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},se.prototype.pointerUp=function(ue){Ce.prototype.pointerUp.call(this,ue),this.setSize()},se.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.visual&&Ne.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ue),this.stateChanged()},se.prototype.setFillColor=function(ue){this.fillColor=ue,this.visual&&Ne.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},se.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.visual&&Ne.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},se.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.visual&&Ne.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},se.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ce.prototype.getState.call(this))},se.prototype.restoreState=function(ue){var ge=ue;this.fillColor=ge.fillColor,this.strokeColor=ge.strokeColor,this.strokeWidth=ge.strokeWidth,this.strokeDasharray=ge.strokeDasharray,this.opacity=ge.opacity,this.createVisual(),Ce.prototype.restoreState.call(this,ue),this.setSize()},se.prototype.scale=function(ue,ge){Ce.prototype.scale.call(this,ue,ge),this.setSize()},se.title="Rectangle marker",se}(We),lt=function(Ce){function se(ue,ge,pe,le){var ze=Ce.call(this,ue,le||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ze.widths=[],ze.widthBoxes=[],ze.widths=ge,ze.currentWidth=pe,ze.setCurrentWidth=ze.setCurrentWidth.bind(ze),ze}return xe(se,Ce),se.prototype.getUi=function(){var ue=this,ge=document.createElement("div");return ge.style.display="flex",ge.style.overflow="hidden",ge.style.flexGrow="2",this.widths.forEach(function(pe){var le=document.createElement("div");le.style.display="flex",le.style.flexGrow="2",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=pe===ue.currentWidth?ue.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ue.setCurrentWidth(pe,le)}),ge.appendChild(le);var ze=document.createElement("div");ze.innerText=pe.toString(),ze.style.marginRight="5px",le.appendChild(ze);var bt=document.createElement("div");bt.style.minHeight="20px",bt.style.flexGrow="2",bt.style.display="flex",bt.style.alignItems="center";var Pt=document.createElement("hr");Pt.style.minWidth="20px",Pt.style.border="0px",Pt.style.borderTop=pe+"px solid "+ue.uiStyleSettings.toolboxColor,Pt.style.flexGrow="2",bt.appendChild(Pt),le.appendChild(bt),ue.widthBoxes.push(le)}),ge},se.prototype.setCurrentWidth=function(ue,ge){var pe=this;this.currentWidth=ue,this.widthBoxes.forEach(function(le){le.style.borderColor=le===ge?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},se}(Xe),Tt=function(Ce){function se(ue,ge,pe,le){var ze=Ce.call(this,ue,le||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return ze.styles=[],ze.styleBoxes=[],ze.styles=ge,ze.currentStyle=pe,ze.setCurrentStyle=ze.setCurrentStyle.bind(ze),ze}return xe(se,Ce),se.prototype.getUi=function(){var ue=this,ge=document.createElement("div");return ge.style.display="flex",ge.style.overflow="hidden",ge.style.flexGrow="2",this.styles.forEach(function(pe){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ue.styles.length-5+"%",le.style.borderColor=pe===ue.currentStyle?ue.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ue.setCurrentStyle(pe,le)}),ge.appendChild(le);var ze=document.createElement("div");ze.style.minHeight="20px",ze.style.flexGrow="2",ze.style.overflow="hidden";var bt=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ue.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(pe!==""?'stroke-dasharray="'+pe+'"':"")+` />
|
|
|
</svg>`;ze.innerHTML=bt,le.appendChild(ze),ue.styleBoxes.push(le)}),ge},se.prototype.setCurrentStyle=function(ue,ge){var pe=this;this.currentStyle=ue,this.styleBoxes.forEach(function(le){le.style.borderColor=le===ge?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},se}(Xe),_t=function(Ce){function se(ue,ge,pe){var le=Ce.call(this,ue,ge,pe)||this;return le.strokeColor=pe.defaultColor,le.strokeWidth=pe.defaultStrokeWidth,le.strokeDasharray=pe.defaultStrokeDasharray,le.strokePanel=new ft("Line color",pe.defaultColorSet,pe.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new lt("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Tt("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return xe(se,Ce),Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ue=Ce.prototype.getState.call(this);return ue.typeName=se.typeName,ue},se.typeName="FrameMarker",se.title="Frame marker",se.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',se}($e),Ot=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},st=function(Ce){function se(ue,ge,pe){var le=Ce.call(this,ue,ge,pe)||this;return le.x1=0,le.y1=0,le.x2=0,le.y2=0,le.defaultLength=50,le.manipulationStartX=0,le.manipulationStartY=0,le.manipulationStartX1=0,le.manipulationStartY1=0,le.manipulationStartX2=0,le.manipulationStartY2=0,le.setupControlBox(),le}return xe(se,Ce),se.prototype.ownsTarget=function(ue){return!!Ce.prototype.ownsTarget.call(this,ue)||!(!this.grip1.ownsTarget(ue)&&!this.grip2.ownsTarget(ue))},se.prototype.pointerDown=function(ue,ge){Ce.prototype.pointerDown.call(this,ue,ge),this.manipulationStartX=ue.x,this.manipulationStartY=ue.y,this.state==="new"&&(this.x1=ue.x,this.y1=ue.y,this.x2=ue.x,this.y2=ue.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(ge)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ge)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},se.prototype.pointerUp=function(ue){var ge=this.state;Ce.prototype.pointerUp.call(this,ue),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ue),this._state="select",ge==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},se.prototype.adjustVisual=function(){},se.prototype.manipulate=function(ue){this.state==="creating"?this.resize(ue):this.state==="move"?(this.x1=this.manipulationStartX1+ue.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ue.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ue.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ue.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ue)},se.prototype.resize=function(ue){switch(this.activeGrip){case this.grip1:this.x1=ue.x,this.y1=ue.y;break;case this.grip2:case void 0:this.x2=ue.x,this.y2=ue.y}this.adjustVisual(),this.adjustControlBox()},se.prototype.select=function(){Ce.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},se.prototype.deselect=function(){Ce.prototype.deselect.call(this),this.controlBox.style.display="none"},se.prototype.setupControlBox=function(){this.controlBox=Ne.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},se.prototype.adjustControlBox=function(){this.positionGrips()},se.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},se.prototype.createGrip=function(){var ue=new et;return ue.visual.transform.baseVal.appendItem(Ne.createTransform()),this.controlBox.appendChild(ue.visual),ue},se.prototype.positionGrips=function(){var ue=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ue/2,this.y1-ue/2),this.positionGrip(this.grip2.visual,this.x2-ue/2,this.y2-ue/2)},se.prototype.positionGrip=function(ue,ge,pe){var le=ue.transform.baseVal.getItem(0);le.setTranslate(ge,pe),ue.transform.baseVal.replaceItem(le,0)},se.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ce.prototype.getState.call(this))},se.prototype.restoreState=function(ue){Ce.prototype.restoreState.call(this,ue);var ge=ue;this.x1=ge.x1,this.y1=ge.y1,this.x2=ge.x2,this.y2=ge.y2},se.prototype.scale=function(ue,ge){Ce.prototype.scale.call(this,ue,ge),this.x1=this.x1*ue,this.y1=this.y1*ge,this.x2=this.x2*ue,this.y2=this.y2*ge,this.adjustVisual(),this.adjustControlBox()},se}(Ze),ct=function(Ce){function se(ue,ge,pe){var le=Ce.call(this,ue,ge,pe)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.strokeColor=pe.defaultColor,le.strokeWidth=pe.defaultStrokeWidth,le.strokeDasharray=pe.defaultStrokeDasharray,le.strokePanel=new ft("Line color",pe.defaultColorSet,pe.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new lt("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Tt("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return xe(se,Ce),se.prototype.ownsTarget=function(ue){return!(!Ce.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.selectorLine&&ue!==this.visibleLine)},se.prototype.createVisual=function(){this.visual=Ne.createGroup(),this.selectorLine=Ne.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ne.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},se.prototype.pointerDown=function(ue,ge){Ce.prototype.pointerDown.call(this,ue,ge),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},se.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Ne.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ne.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ne.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},se.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.adjustVisual(),this.colorChanged(ue)},se.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.adjustVisual()},se.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.adjustVisual(),this.stateChanged()},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ue=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ce.prototype.getState.call(this));return ue.typeName=se.typeName,ue},se.prototype.restoreState=function(ue){Ce.prototype.restoreState.call(this,ue);var ge=ue;this.strokeColor=ge.strokeColor,this.strokeWidth=ge.strokeWidth,this.strokeDasharray=ge.strokeDasharray,this.createVisual(),this.adjustVisual()},se.typeName="LineMarker",se.title="Line marker",se.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',se}(st),He=function(Ce){function se(ue,ge,pe,le){var ze=Ce.call(this,ue,le||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return ze.fonts=[],ze.fontBoxes=[],ze.fonts=ge,ze.currentFont=pe,ze.setCurrentFont=ze.setCurrentFont.bind(ze),ze}return xe(se,Ce),se.prototype.getUi=function(){var ue=this,ge=document.createElement("div");return ge.style.overflow="hidden",ge.style.flexGrow="2",this.fonts.forEach(function(pe){var le=document.createElement("div");le.style.display="inline-block",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ue.fonts.length-5+"%",le.style.borderColor=pe===ue.currentFont?ue.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ue.setCurrentFont(pe,le)}),ge.appendChild(le);var ze=document.createElement("div");ze.style.display="flex",ze.style.minHeight="20px",ze.style.flexGrow="2",ze.style.fontFamily=pe,ze.style.overflow="hidden";var bt=document.createElement("div");bt.style.whiteSpace="nowrap",bt.style.overflow="hidden",bt.style.textOverflow="ellipsis",bt.innerHTML="The quick brown fox jumps over the lazy dog",ze.appendChild(bt),le.appendChild(ze),ue.fontBoxes.push(le)}),ge},se.prototype.setCurrentFont=function(ue,ge){var pe=this;this.currentFont=ue,this.fontBoxes.forEach(function(le){le.style.borderColor=le===ge?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},se}(Xe),pt=function(Ce){function se(ue,ge,pe){var le=Ce.call(this,ue,ge,pe)||this;return le.color="transparent",le.padding=5,le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",le.text=le.DEFAULT_TEXT,le.isMoved=!1,le.color=pe.defaultColor,le.fontFamily=pe.defaultFontFamily,le.defaultSize={x:100,y:30},le.setColor=le.setColor.bind(le),le.setFont=le.setFont.bind(le),le.renderText=le.renderText.bind(le),le.sizeText=le.sizeText.bind(le),le.textEditDivClicked=le.textEditDivClicked.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.setSize=le.setSize.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.colorPanel=new ft("Color",pe.defaultColorSet,pe.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.fontFamilyPanel=new He("Font",pe.defaultFontFamilies,pe.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le}return xe(se,Ce),se.prototype.ownsTarget=function(ue){if(Ce.prototype.ownsTarget.call(this,ue)||ue===this.visual||ue===this.textElement||ue===this.bgRectangle)return!0;var ge=!1;return this.textElement.childNodes.forEach(function(pe){pe===ue&&(ge=!0)}),ge},se.prototype.createVisual=function(){this.visual=Ne.createGroup(),this.bgRectangle=Ne.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ne.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ne.createTransform()),this.textElement.transform.baseVal.appendItem(Ne.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},se.prototype.pointerDown=function(ue,ge){Ce.prototype.pointerDown.call(this,ue,ge),this.isMoved=!1,this.pointerDownPoint=ue,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},se.prototype.renderText=function(){var ue=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(ge){ue.textElement.appendChild(Ne.createTSpan(ge.trim()===""?" ":ge.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},se.prototype.getTextScale=function(){var ue=this.textElement.getBBox(),ge=1;if(ue.width>0&&ue.height>0){var pe=(1*this.width-this.width*this.padding*2/100)/ue.width,le=(1*this.height-this.height*this.padding*2/100)/ue.height;ge=Math.min(pe,le)}return ge},se.prototype.getTextPosition=function(ue){var ge=this.textElement.getBBox(),pe=0,le=0;return ge.width>0&&ge.height>0&&(pe=(this.width-ge.width*ue)/2,le=this.height/2-ge.height*ue/2),{x:pe,y:le}},se.prototype.sizeText=function(){var ue=this.textElement.getBBox(),ge=this.getTextScale(),pe=this.getTextPosition(ge);pe.y-=ue.y*ge,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+pe.x+"px, "+pe.y+"px) scale("+ge+", "+ge+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(pe.x,pe.y),this.textElement.transform.baseVal.getItem(1).setScale(ge,ge))},se.prototype.manipulate=function(ue){Ce.prototype.manipulate.call(this,ue),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ue.x-this.pointerDownPoint.x)>5||Math.abs(ue.y-this.pointerDownPoint.y)>5)},se.prototype.resize=function(ue){Ce.prototype.resize.call(this,ue),this.isMoved=!0,this.setSize(),this.sizeText()},se.prototype.setSize=function(){Ce.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ne.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ne.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},se.prototype.pointerUp=function(ue){var ge=this.state;ge==="creating"&&(this._suppressMarkerCreateEvent=!0),Ce.prototype.pointerUp.call(this,ue),this.setSize(),(ge==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},se.prototype.showTextEditor=function(){var ue=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(ge){ge.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ge=Number.parseFloat(ue.textEditor.style.fontSize);ue.textEditor.clientWidth>=Number.parseInt(ue.textEditor.style.maxWidth)&&ge>.9;)ge-=.1,ue.textEditor.style.fontSize=Math.max(ge,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ge){ge.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ge){if(ge.clipboardData){var pe=ge.clipboardData.getData("text"),le=window.getSelection();if(!le.rangeCount)return!1;le.deleteFromDocument(),le.getRangeAt(0).insertNode(document.createTextNode(pe)),ge.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ue.textEditDivClicked(ue.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},se.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ue=this.getTextScale(),ge=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),pe=this.textElement.getBBox(),le={x:pe.width*ue,y:pe.height*ue};ge.x-=le.x/2,ge.y-=le.y/2,this.textEditor.style.top=ge.y+"px",this.textEditor.style.left=ge.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ge.x+"px",this.textEditor.style.fontSize=Math.max(16*ue,12)+"px",this.textElement.style.display="none"}},se.prototype.textEditDivClicked=function(ue){this.text=ue.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},se.prototype.select=function(){Ce.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},se.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ce.prototype.deselect.call(this)},se.prototype.dblClick=function(ue,ge){Ce.prototype.dblClick.call(this,ue,ge),this.showTextEditor()},se.prototype.setColor=function(ue){this.textElement&&Ne.setAttributes(this.textElement,[["fill",ue]]),this.color=ue,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ue)},se.prototype.setFont=function(ue){this.textElement&&Ne.setAttributes(this.textElement,[["font-family",ue]]),this.fontFamily=ue,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},se.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},se.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ue=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ce.prototype.getState.call(this));return ue.typeName=se.typeName,ue},se.prototype.restoreState=function(ue){var ge=ue;this.color=ge.color,this.fontFamily=ge.fontFamily,this.padding=ge.padding,this.text=ge.text,this.createVisual(),Ce.prototype.restoreState.call(this,ue),this.setSize()},se.prototype.scale=function(ue,ge){Ce.prototype.scale.call(this,ue,ge),this.setSize(),this.sizeText(),this.positionTextEditor()},se.typeName="TextMarker",se.title="Text marker",se.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',se}(We),Ve=function(Ce){function se(ue,ge,pe){var le=Ce.call(this,ue,ge,pe)||this;return le.color="transparent",le.lineWidth=3,le.drawing=!1,le.pixelRatio=1,le.color=pe.defaultColor,le.lineWidth=pe.defaultStrokeWidth,le.pixelRatio=pe.freehandPixelRatio,le.setColor=le.setColor.bind(le),le.addCanvas=le.addCanvas.bind(le),le.finishCreation=le.finishCreation.bind(le),le.setLineWidth=le.setLineWidth.bind(le),le.colorPanel=new ft("Color",pe.defaultColorSet,pe.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.lineWidthPanel=new lt("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),le.lineWidthPanel.onWidthChanged=le.setLineWidth,le}return xe(se,Ce),se.prototype.ownsTarget=function(ue){return!(!Ce.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.drawingImage)},se.prototype.createVisual=function(){this.visual=Ne.createGroup(),this.drawingImage=Ne.createImage(),this.visual.appendChild(this.drawingImage);var ue=Ne.createTransform();this.visual.transform.baseVal.appendItem(ue),this.addMarkerVisualToContainer(this.visual)},se.prototype.pointerDown=function(ue,ge){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ue.x,ue.y),this.drawing=!0):Ce.prototype.pointerDown.call(this,ue,ge)},se.prototype.manipulate=function(ue){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ue.x,ue.y),this.canvasContext.stroke()):Ce.prototype.manipulate.call(this,ue)},se.prototype.resize=function(ue){Ce.prototype.resize.call(this,ue),Ne.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ne.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},se.prototype.pointerUp=function(ue){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ce.prototype.pointerUp.call(this,ue)},se.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},se.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ce.prototype.select.call(this)},se.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ce.prototype.deselect.call(this)},se.prototype.finishCreation=function(){for(var ue=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ge=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],pe=ge[0],le=ge[1],ze=ge[2],bt=ge[3],Pt=!1,mn=0;mn<this.canvasElement.height;mn++)for(var ln=0;ln<this.canvasElement.width;ln++)ue.data[mn*this.canvasElement.width*4+4*ln+3]>0&&(Pt=!0,mn<le&&(le=mn),ln<pe&&(pe=ln),mn>bt&&(bt=mn),ln>ze&&(ze=ln));if(Pt){this.left=pe/this.pixelRatio,this.top=le/this.pixelRatio,this.width=(ze-pe)/this.pixelRatio,this.height=(bt-le)/this.pixelRatio;var Xt=document.createElement("canvas");Xt.width=ze-pe,Xt.height=bt-le,Xt.getContext("2d").putImageData(this.canvasContext.getImageData(pe,le,ze-pe,bt-le),0,0),this.drawingImgUrl=Xt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},se.prototype.setDrawingImage=function(){Ne.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ne.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},se.prototype.setColor=function(ue){this.color=ue,this.colorChanged(ue)},se.prototype.setLineWidth=function(ue){this.lineWidth=ue},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ue=Object.assign({drawingImgUrl:this.drawingImgUrl},Ce.prototype.getState.call(this));return ue.typeName=se.typeName,ue},se.prototype.restoreState=function(ue){this.createVisual(),Ce.prototype.restoreState.call(this,ue),this.drawingImgUrl=ue.drawingImgUrl,this.setDrawingImage()},se.prototype.scale=function(ue,ge){Ce.prototype.scale.call(this,ue,ge),this.setDrawingImage()},se.typeName="FreehandMarker",se.title="Freehand marker",se.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',se}(We),Qe=function(Ce){function se(ue,ge,pe){var le=Ce.call(this,ue,pe||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return le.typeBoxes=[],le.currentType=ge,le.setCurrentType=le.setCurrentType.bind(le),le}return xe(se,Ce),se.prototype.getUi=function(){var ue=this,ge=document.createElement("div");ge.style.display="flex",ge.style.overflow="hidden",ge.style.flexGrow="2";for(var pe=function(bt){var Pt="both";switch(bt){case 0:Pt="both";break;case 1:Pt="start";break;case 2:Pt="end";break;case 3:Pt="none"}var mn=document.createElement("div");if(mn.style.display="flex",mn.style.flexGrow="2",mn.style.alignItems="center",mn.style.justifyContent="space-between",mn.style.padding="5px",mn.style.borderWidth="2px",mn.style.borderStyle="solid",mn.style.borderColor=Pt===le.currentType?le.uiStyleSettings.toolboxAccentColor:"transparent",mn.addEventListener("click",function(){ue.setCurrentType(Pt,mn)}),ge.appendChild(mn),Pt==="both"||Pt==="start"){var ln=document.createElement("div");ln.style.display="flex",ln.style.alignItems="center",ln.style.minHeight="20px",ln.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,5 10,0 10,10" fill="`+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,ln.style.marginLeft="5px",mn.appendChild(ln)}var Xt=document.createElement("div");Xt.style.display="flex",Xt.style.alignItems="center",Xt.style.minHeight="20px",Xt.style.flexGrow="2";var Kt=document.createElement("hr");if(Kt.style.minWidth="20px",Kt.style.border="0px",Kt.style.borderTop="3px solid "+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee"),Kt.style.flexGrow="2",Xt.appendChild(Kt),mn.appendChild(Xt),Pt==="both"||Pt==="end"){var sr=document.createElement("div");sr.style.display="flex",sr.style.alignItems="center",sr.style.minHeight="20px",sr.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,0 10,5 0,10" fill="`+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,sr.style.marginRight="5px",mn.appendChild(sr)}le.typeBoxes.push(mn)},le=this,ze=0;ze<4;ze++)pe(ze);return ge},se.prototype.setCurrentType=function(ue,ge){var pe=this;this.currentType=ue,this.typeBoxes.forEach(function(le){le.style.borderColor=le===ge?pe.uiStyleSettings!==void 0?pe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},se}(Xe),Fe=function(Ce){function se(ue,ge,pe){var le=Ce.call(this,ue,ge,pe)||this;return le.arrowType="end",le.arrowBaseHeight=10,le.arrowBaseWidth=10,le.getArrowPoints=le.getArrowPoints.bind(le),le.setArrowType=le.setArrowType.bind(le),le.arrowTypePanel=new Qe("Arrow type","end"),le.arrowTypePanel.onArrowTypeChanged=le.setArrowType,le}return xe(se,Ce),se.prototype.ownsTarget=function(ue){return!(!Ce.prototype.ownsTarget.call(this,ue)&&ue!==this.arrow1&&ue!==this.arrow2)},se.prototype.getArrowPoints=function(ue,ge){var pe=this.arrowBaseWidth+2*this.strokeWidth,le=this.arrowBaseHeight+2*this.strokeWidth;return ue-pe/2+","+(ge+le/2)+" "+ue+","+(ge-le/2)+" "+(ue+pe/2)+","+(ge+le/2)},se.prototype.createTips=function(){this.arrow1=Ne.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ne.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ne.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ne.createTransform()),this.visual.appendChild(this.arrow2)},se.prototype.pointerDown=function(ue,ge){Ce.prototype.pointerDown.call(this,ue,ge),this.state==="creating"&&this.createTips()},se.prototype.adjustVisual=function(){if(Ce.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Ne.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ne.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ue=0;Math.abs(this.x1-this.x2)>.1&&(ue=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ge=this.arrow1.transform.baseVal.getItem(0);ge.setRotate(ue,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ge,0);var pe=this.arrow2.transform.baseVal.getItem(0);pe.setRotate(ue+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(pe,0)}},se.prototype.setArrowType=function(ue){this.arrowType=ue,this.adjustVisual(),this.stateChanged()},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ue=Object.assign({arrowType:this.arrowType},Ce.prototype.getState.call(this));return ue.typeName=se.typeName,ue},se.prototype.restoreState=function(ue){Ce.prototype.restoreState.call(this,ue);var ge=ue;this.arrowType=ge.arrowType,this.createTips(),this.adjustVisual()},se.typeName="ArrowMarker",se.title="Arrow marker",se.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',se}(ct),wt=function(Ce){function se(ue,ge,pe){var le=Ce.call(this,ue,ge,pe)||this;return le.fillColor=pe.defaultFillColor,le.strokeWidth=0,le.fillPanel=new ft("Color",pe.defaultColorSet,pe.defaultFillColor),le.fillPanel.onColorChanged=le.setFillColor,le}return xe(se,Ce),Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ue=Ce.prototype.getState.call(this);return ue.typeName=se.typeName,ue},se.typeName="CoverMarker",se.title="Cover marker",se.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',se}($e),Mt=function(Ce){function se(ue,ge,pe,le){var ze=Ce.call(this,ue,le||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return ze.opacities=[],ze.opacityBoxes=[],ze.opacities=ge,ze.currentOpacity=pe,ze.setCurrentOpacity=ze.setCurrentOpacity.bind(ze),ze}return xe(se,Ce),se.prototype.getUi=function(){var ue=this,ge=document.createElement("div");return ge.style.display="flex",ge.style.overflow="hidden",ge.style.flexGrow="2",ge.style.justifyContent="space-between",this.opacities.forEach(function(pe){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="center",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=pe===ue.currentOpacity?ue.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ue.setCurrentOpacity(pe,le)}),ge.appendChild(le);var ze=document.createElement("div");ze.innerText=100*pe+"%",le.appendChild(ze),ue.opacityBoxes.push(le)}),ge},se.prototype.setCurrentOpacity=function(ue,ge){var pe=this;this.currentOpacity=ue,this.opacityBoxes.forEach(function(le){le.style.borderColor=le===ge?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},se}(Xe),jt=function(Ce){function se(ue,ge,pe){var le=Ce.call(this,ue,ge,pe)||this;return le.setOpacity=le.setOpacity.bind(le),le.fillColor=pe.defaultHighlightColor,le.strokeWidth=0,le.opacity=pe.defaultHighlightOpacity,le.fillPanel=new ft("Color",pe.defaultColorSet,le.fillColor),le.fillPanel.onColorChanged=le.setFillColor,le.opacityPanel=new Mt("Opacity",pe.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return xe(se,Ce),se.prototype.setOpacity=function(ue){this.opacity=ue,this.visual&&Ne.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ue=Ce.prototype.getState.call(this);return ue.typeName=se.typeName,ue},se.typeName="HighlightMarker",se.title="Highlight marker",se.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',se}(wt),Re='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',Le='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Nt=function(Ce){function se(ue,ge,pe){var le=Ce.call(this,ue,ge,pe)||this;return le.bgColor="transparent",le.tipPosition={x:0,y:0},le.tipBase1Position={x:0,y:0},le.tipBase2Position={x:0,y:0},le.tipMoving=!1,le.color=pe.defaultStrokeColor,le.bgColor=pe.defaultFillColor,le.fontFamily=pe.defaultFontFamily,le.defaultSize={x:100,y:30},le.setBgColor=le.setBgColor.bind(le),le.getTipPoints=le.getTipPoints.bind(le),le.positionTip=le.positionTip.bind(le),le.setTipPoints=le.setTipPoints.bind(le),le.colorPanel=new ft("Text color",pe.defaultColorSet,le.color,Re),le.colorPanel.onColorChanged=le.setColor,le.bgColorPanel=new ft("Fill color",pe.defaultColorSet,le.bgColor,Le),le.bgColorPanel.onColorChanged=le.setBgColor,le.fontFamilyPanel=new He("Font",pe.defaultFontFamilies,pe.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.tipGrip=new et,le.tipGrip.visual.transform.baseVal.appendItem(Ne.createTransform()),le.controlBox.appendChild(le.tipGrip.visual),le}return xe(se,Ce),se.prototype.ownsTarget=function(ue){return Ce.prototype.ownsTarget.call(this,ue)||this.tipGrip.ownsTarget(ue)||this.tip===ue},se.prototype.createTip=function(){Ne.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ne.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},se.prototype.pointerDown=function(ue,ge){this.state==="new"&&Ce.prototype.pointerDown.call(this,ue,ge),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ge)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ce.prototype.pointerDown.call(this,ue,ge)},se.prototype.pointerUp=function(ue){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ce.prototype.pointerUp.call(this,ue);else{var ge=this.state==="creating";Ce.prototype.pointerUp.call(this,ue),this.setTipPoints(ge),this.positionTip()}},se.prototype.manipulate=function(ue){if(this.tipMoving){var ge=this.unrotatePoint(ue);this.tipPosition={x:ge.x-this.manipulationStartLeft,y:ge.y-this.manipulationStartTop},this.positionTip()}else Ce.prototype.manipulate.call(this,ue)},se.prototype.setBgColor=function(ue){this.bgRectangle&&this.tip&&(Ne.setAttributes(this.bgRectangle,[["fill",ue]]),Ne.setAttributes(this.tip,[["fill",ue]])),this.bgColor=ue,this.fillColorChanged(ue)},se.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},se.prototype.setTipPoints=function(ue){ue===void 0&&(ue=!1);var ge=Math.min(this.height/2,15),pe=this.height/5;ue&&(this.tipPosition={x:ge+pe/2,y:this.height+20});var le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?le<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(pe=this.width/5,ge=Math.min(this.width/2,15),this.tipBase1Position={x:ge,y:0},this.tipBase2Position={x:ge+pe,y:0}):(this.tipBase1Position={x:0,y:ge},this.tipBase2Position={x:0,y:ge+pe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?le<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(pe=this.width/5,ge=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ge-pe,y:0},this.tipBase2Position={x:this.width-ge,y:0}):(this.tipBase1Position={x:this.width,y:ge},this.tipBase2Position={x:this.width,y:ge+pe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?le<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(pe=this.width/5,ge=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ge-pe,y:this.height},this.tipBase2Position={x:this.width-ge,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ge-pe},this.tipBase2Position={x:this.width,y:this.height-ge}):le<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(pe=this.width/5,ge=Math.min(this.width/2,15),this.tipBase1Position={x:ge,y:this.height},this.tipBase2Position={x:ge+pe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ge},this.tipBase2Position={x:0,y:this.height-ge-pe})},se.prototype.resize=function(ue){Ce.prototype.resize.call(this,ue),this.positionTip()},se.prototype.positionTip=function(){Ne.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ue=this.tipGrip.visual.transform.baseVal.getItem(0);ue.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ue,0)},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),se.prototype.select=function(){this.positionTip(),Ce.prototype.select.call(this)},se.prototype.getState=function(){var ue=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Ce.prototype.getState.call(this));return ue.typeName=se.typeName,ue},se.prototype.restoreState=function(ue){var ge=ue;this.bgColor=ge.bgColor,this.tipPosition=ge.tipPosition,Ce.prototype.restoreState.call(this,ue),this.createTip(),this.setTipPoints()},se.prototype.scale=function(ue,ge){Ce.prototype.scale.call(this,ue,ge),this.tipPosition={x:this.tipPosition.x*ue,y:this.tipPosition.y*ge},this.positionTip()},se.typeName="CalloutMarker",se.title="Callout marker",se.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',se}(pt),Rt=function(Ce){function se(ue,ge,pe){var le=Ce.call(this,ue,ge,pe)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.strokeColor=pe.defaultColor,le.strokeWidth=pe.defaultStrokeWidth,le.strokeDasharray=pe.defaultStrokeDasharray,le.fillColor=pe.defaultFillColor,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.setOpacity=le.setOpacity.bind(le),le.createVisual=le.createVisual.bind(le),le.strokePanel=new ft("Line color",Pe(pe.defaultColorSet,["transparent"]),pe.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new ft("Fill color",Pe(pe.defaultColorSet,["transparent"]),le.fillColor,Le),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new lt("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Tt("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.opacityPanel=new Mt("Opacity",pe.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return xe(se,Ce),se.prototype.ownsTarget=function(ue){return!(!Ce.prototype.ownsTarget.call(this,ue)&&ue!==this.visual)},se.prototype.createVisual=function(){this.visual=Ne.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},se.prototype.pointerDown=function(ue,ge){Ce.prototype.pointerDown.call(this,ue,ge),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},se.prototype.manipulate=function(ue){Ce.prototype.manipulate.call(this,ue)},se.prototype.resize=function(ue){Ce.prototype.resize.call(this,ue),this.setSize()},se.prototype.setSize=function(){Ce.prototype.setSize.call(this),Ne.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},se.prototype.pointerUp=function(ue){Ce.prototype.pointerUp.call(this,ue),this.setSize()},se.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.visual&&Ne.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ue),this.stateChanged()},se.prototype.setFillColor=function(ue){this.fillColor=ue,this.visual&&Ne.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ue),this.stateChanged()},se.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.visual&&Ne.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},se.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.visual&&Ne.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},se.prototype.setOpacity=function(ue){this.opacity=ue,this.visual&&Ne.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ue=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ce.prototype.getState.call(this));return ue.typeName=se.typeName,ue},se.prototype.restoreState=function(ue){var ge=ue;this.fillColor=ge.fillColor,this.strokeColor=ge.strokeColor,this.strokeWidth=ge.strokeWidth,this.strokeDasharray=ge.strokeDasharray,this.opacity=ge.opacity,this.createVisual(),Ce.prototype.restoreState.call(this,ue),this.setSize()},se.prototype.scale=function(ue,ge){Ce.prototype.scale.call(this,ue,ge),this.setSize()},se.typeName="EllipseMarker",se.title="Ellipse marker",se.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',se}(We),Yt=function(Ce){function se(ue,ge,pe){return Ce.call(this,ue,ge,pe)||this}return xe(se,Ce),Object.defineProperty(se.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),se.prototype.ownsTarget=function(ue){return!(!Ce.prototype.ownsTarget.call(this,ue)&&ue!==this.tip1&&ue!==this.tip2)},se.prototype.createTips=function(){this.tip1=Ne.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Ne.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Ne.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Ne.createTransform()),this.visual.appendChild(this.tip2)},se.prototype.pointerDown=function(ue,ge){Ce.prototype.pointerDown.call(this,ue,ge),this.state==="creating"&&this.createTips()},se.prototype.adjustVisual=function(){if(Ce.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Ne.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Ne.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var ue=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ge=this.tip1.transform.baseVal.getItem(0);ge.setRotate(ue,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ge,0);var pe=this.tip2.transform.baseVal.getItem(0);pe.setRotate(ue+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(pe,0)}},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ue=Ce.prototype.getState.call(this);return ue.typeName=se.typeName,ue},se.prototype.restoreState=function(ue){Ce.prototype.restoreState.call(this,ue),this.createTips(),this.adjustVisual()},se.typeName="MeasurementMarker",se.title="Measurement marker",se.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',se}(ct),vt=function(Ce){function se(ue,ge,pe){var le=Ce.call(this,ue,ge,pe)||this;return le.strokePanel.colors=pe.defaultColorSet,le.fillColor="transparent",le}return xe(se,Ce),Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ue=Ce.prototype.getState.call(this);return ue.typeName=se.typeName,ue},se.typeName="EllipseFrameMarker",se.title="Ellipse frame marker",se.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',se}(Rt),nt=function(){function Ce(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ce.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ce.prototype.addUndoStep=function(se){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(se)||(this.undoStack.push(se),JSON.stringify(this.lastRedoStep)!==JSON.stringify(se)&&this.redoStack.splice(0,this.redoStack.length))},Ce.prototype.replaceLastUndoStep=function(se){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=se)},Ce.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ce.prototype.undo=function(){if(this.undoStack.length>1){var se=this.undoStack.pop();return se!==void 0&&this.redoStack.push(se),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Ce.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ce}(),Vt=function(Ce){function se(ue,ge,pe){var le=Ce.call(this,ue,ge,pe)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.curveX=0,le.curveY=0,le.manipulationStartCurveX=0,le.manipulationStartCurveY=0,le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.positionGrips=le.positionGrips.bind(le),le.addControlGrips=le.addControlGrips.bind(le),le.adjustVisual=le.adjustVisual.bind(le),le.setupControlBox=le.setupControlBox.bind(le),le.resize=le.resize.bind(le),le.strokeColor=pe.defaultColor,le.strokeWidth=pe.defaultStrokeWidth,le.strokeDasharray=pe.defaultStrokeDasharray,le.strokePanel=new ft("Line color",pe.defaultColorSet,pe.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new lt("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Tt("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return xe(se,Ce),se.prototype.ownsTarget=function(ue){return!(!Ce.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.selectorCurve&&ue!==this.visibleCurve&&!this.curveGrip.ownsTarget(ue))},se.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},se.prototype.createVisual=function(){this.visual=Ne.createGroup(),this.selectorCurve=Ne.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ne.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},se.prototype.pointerDown=function(ue,ge){Ce.prototype.pointerDown.call(this,ue,ge),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ue.x,this.curveY=ue.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ge)&&(this.activeGrip=this.curveGrip,this._state="resize")},se.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ne.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ne.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ne.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},se.prototype.setupControlBox=function(){Ce.prototype.setupControlBox.call(this),this.curveControlLine1=Ne.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ne.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},se.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ce.prototype.addControlGrips.call(this)},se.prototype.positionGrips=function(){Ce.prototype.positionGrips.call(this);var ue=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ue/2,this.curveY-ue/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},se.prototype.manipulate=function(ue){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ue.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ue.y-this.manipulationStartY),Ce.prototype.manipulate.call(this,ue)},se.prototype.resize=function(ue){this.activeGrip===this.curveGrip&&(this.curveX=ue.x,this.curveY=ue.y),Ce.prototype.resize.call(this,ue),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},se.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.adjustVisual(),this.colorChanged(ue)},se.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.adjustVisual()},se.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.adjustVisual()},se.prototype.scale=function(ue,ge){this.curveX=this.curveX*ue,this.curveY=this.curveY*ge,Ce.prototype.scale.call(this,ue,ge)},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ue=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ce.prototype.getState.call(this));return ue.typeName=se.typeName,ue},se.prototype.restoreState=function(ue){Ce.prototype.restoreState.call(this,ue);var ge=ue;this.strokeColor=ge.strokeColor,this.strokeWidth=ge.strokeWidth,this.strokeDasharray=ge.strokeDasharray,this.curveX=ge.curveX,this.curveY=ge.curveY,this.createVisual(),this.adjustVisual()},se.typeName="CurveMarker",se.title="Curve marker",se.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',se}(st),un=function(Ce){function se(ue,ge,pe){var le=Ce.call(this,ue,ge,pe)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.textColor="transparent",le.fontSize="1rem",le.isMoved=!1,le.captionText="Caption",le.PADDING=5,le.captionBoxWidth=0,le.captionBoxHeight=0,le.strokeColor=pe.defaultColor,le.strokeWidth=pe.defaultStrokeWidth,le.strokeDasharray=pe.defaultStrokeDasharray,le.fillColor=pe.defaultFillColor,le.textColor=pe.defaultStrokeColor,le.fontFamily=pe.defaultFontFamily,le.fontSize=pe.defaultCaptionFontSize,le.captionText=pe.defaultCaptionText,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le.sizeCaption=le.sizeCaption.bind(le),le.setCaptionText=le.setCaptionText.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.finishTextEditing=le.finishTextEditing.bind(le),le.setFont=le.setFont.bind(le),le.setTextColor=le.setTextColor.bind(le),le.strokePanel=new ft("Line color",Pe(pe.defaultColorSet,["transparent"]),le.strokeColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new ft("Fill color",Pe(pe.defaultColorSet,["transparent"]),le.fillColor,Le),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new lt("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Tt("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.fontFamilyPanel=new He("Font",pe.defaultFontFamilies,pe.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.textColorPanel=new ft("Text color",pe.defaultColorSet,le.textColor,Re),le.textColorPanel.onColorChanged=le.setTextColor,le}return xe(se,Ce),se.prototype.ownsTarget=function(ue){return!(!Ce.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.frame&&ue!==this.captionBg&&ue!==this.captionElement)},se.prototype.createVisual=function(){this.visual=Ne.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ne.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ne.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Ne.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},se.prototype.setCaptionText=function(ue){this.captionText=ue,this.captionElement.textContent=this.captionText,this.sizeCaption()},se.prototype.pointerDown=function(ue,ge){Ce.prototype.pointerDown.call(this,ue,ge),this.isMoved=!1,this.pointerDownPoint=ue,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},se.prototype.manipulate=function(ue){Ce.prototype.manipulate.call(this,ue),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ue.x-this.pointerDownPoint.x)>5||Math.abs(ue.y-this.pointerDownPoint.y)>5)},se.prototype.resize=function(ue){Ce.prototype.resize.call(this,ue),this.setSize()},se.prototype.sizeCaption=function(){var ue=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ue.width+2*this.PADDING,this.captionBoxHeight=ue.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ne.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Ne.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},se.prototype.showTextEditor=function(){var ue=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(ge){ge.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ge){ge.key==="Enter"&&ue.finishTextEditing(ue.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ge){ge.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ue.finishTextEditing(ue.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ue.finishTextEditing(ue.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},se.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},se.prototype.finishTextEditing=function(ue){this.setCaptionText(ue.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},se.prototype.setFont=function(ue){this.captionElement&&Ne.setAttributes(this.captionElement,[["font-family",ue]]),this.fontFamily=ue,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},se.prototype.setTextColor=function(ue){this.captionElement&&Ne.setAttributes(this.captionElement,[["fill",ue]]),this.textColor=ue,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},se.prototype.setSize=function(){Ce.prototype.setSize.call(this),Ne.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},se.prototype.pointerUp=function(ue){Ce.prototype.pointerUp.call(this,ue),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},se.prototype.dblClick=function(ue,ge){Ce.prototype.dblClick.call(this,ue,ge),this.showTextEditor()},se.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.frame&&Ne.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ue),this.stateChanged()},se.prototype.setFillColor=function(ue){this.fillColor=ue,this.captionBg&&Ne.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ue),this.stateChanged()},se.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.frame&&Ne.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},se.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.frame&&Ne.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ue=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},Ce.prototype.getState.call(this));return ue.typeName=this.typeName,ue},se.prototype.restoreState=function(ue){var ge=ue;this.fillColor=ge.fillColor,this.strokeColor=ge.strokeColor,this.strokeWidth=ge.strokeWidth,this.strokeDasharray=ge.strokeDasharray,this.textColor=ge.textColor,this.fontFamily=ge.fontFamily,this.captionText=ge.captionText,this.fontSize=ge.fontSize,this.createVisual(),Ce.prototype.restoreState.call(this,ue),this.setSize()},se.prototype.scale=function(ue,ge){Ce.prototype.scale.call(this,ue,ge),this.setSize()},se.typeName="CaptionFrameMarker",se.title="Caption frame marker",se.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',se}(We),Ut=function(){function Ce(se,ue){ue===void 0&&(ue=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=se,this.cancelable=ue}return Object.defineProperty(Ce.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ce.prototype.preventDefault=function(){this._defaultPrevented=!0},Ce}(),fn=function(Ce){function se(ue,ge,pe){var le=Ce.call(this,ue,!1)||this;return le.dataUrl=ge,le.state=pe,le}return xe(se,Ce),se}(Ut),en=function(Ce){function se(ue,ge,pe){pe===void 0&&(pe=!1);var le=Ce.call(this,ue,pe)||this;return le.marker=ge,le}return xe(se,Ce),se}(Ut),En=function(){function Ce(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return Ce.prototype.addEventListener=function(se,ue){this[se].push(ue)},Ce.prototype.removeEventListener=function(se,ue){var ge=this[se].indexOf(ue);ge>-1&&this[se].splice(ge,1)},Ce}(),_n=function(){function Ce(se){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ot,this._isOpen=!1,this.undoRedoManager=new nt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new En,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ce.instanceCounter++,this.styles=new qe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=se,this.targetRoot=document.body,this.width=se.clientWidth,this.height=se.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(Ce.prototype,"ALL_MARKER_TYPES",{get:function(){return[_t,Ve,Fe,pt,vt,Rt,jt,Nt,Yt,wt,ct,Vt,un]},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[_t,Ve,Fe,pt,Rt,jt,Nt]},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"BASIC_MARKER_TYPES",{get:function(){return[_t,Ve,Fe,pt,jt]},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(se){var ue=this;this._availableMarkerTypes.splice(0),se.forEach(function(ge){if(typeof ge=="string"){var pe=ue.ALL_MARKER_TYPES.find(function(le){return le.typeName===ge});pe!==void 0&&ue._availableMarkerTypes.push(pe)}else ue._availableMarkerTypes.push(ge)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(se){this._zoomLevel=se,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ce.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),je.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ce.prototype.show=function(){var se=this;this.styles.styleSheetRoot===void 0&&ye.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ye.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ue){return ue(new Ut(se))})},Ce.prototype.render=function(){return tt(this,void 0,void 0,function(){var se;return At(this,function(ue){switch(ue.label){case 0:return this.setCurrentMarker(),(se=new Ee).naturalSize=this.renderAtNaturalSize,se.imageType=this.renderImageType,se.imageQuality=this.renderImageQuality,se.markersOnly=this.renderMarkersOnly,se.width=this.renderWidth,se.height=this.renderHeight,[4,se.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ue.sent(),[4,se.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ue.sent()]}})})},Ce.prototype.close=function(se){var ue=this;if(se===void 0&&(se=!1),this.isOpen){var ge=!1;se||this.eventListeners.beforeclose.forEach(function(pe){var le=new Ut(ue,!0);pe(le),le.defaultPrevented&&(ge=!0)}),ge||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(pe){return pe(new Ut(ue))}),this.detachEvents(),this._isOpen=!1)}},Ce.prototype.addMarkersToToolbar=function(){for(var se,ue=[],ge=0;ge<arguments.length;ge++)ue[ge]=arguments[ge];(se=this._availableMarkerTypes).push.apply(se,ue)},Ce.prototype.addRenderEventListener=function(se){this.addEventListener("render",function(ue){se(ue.dataUrl,ue.state)})},Ce.prototype.removeRenderEventListener=function(se){},Ce.prototype.addCloseEventListener=function(se){this.addEventListener("close",function(){se()})},Ce.prototype.removeCloseEventListener=function(se){},Ce.prototype.setupResizeObserver=function(){var se=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){se.resize(se.target.clientWidth,se.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return se.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Ce.prototype.onPopupTargetResize=function(){var se=1*this.target.clientWidth/this.target.clientHeight,ue=this.editorCanvas.clientWidth/se>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*se:this.editorCanvas.clientWidth,ge=ue<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/se;this.resize(ue,ge)},Ce.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ce.prototype.resize=function(se,ue){this._isResizing=!0;var ge=se/this.imageWidth,pe=ue/this.imageHeight;this.imageWidth=Math.round(se),this.imageHeight=Math.round(ue),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(ge,pe),this._isResizing=!1},Ce.prototype.scaleMarkers=function(se,ue){var ge,pe=this;this._currentMarker&&this._currentMarker instanceof pt?this._currentMarker.scale(se,ue):(ge=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(le){le!==pe._currentMarker&&le.scale(se,ue)}),ge!==void 0&&this.setCurrentMarker(ge)},Ce.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},Ce.prototype.setTopLeft=function(){var se=this.editingTarget.getBoundingClientRect(),ue=this.editorCanvas.getBoundingClientRect();this.left=se.left-ue.left,this.top=se.top-ue.top},Ce.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},Ce.prototype.addDefs=function(){for(var se,ue=[],ge=0;ge<arguments.length;ge++)ue[ge]=arguments[ge];this.defs=Ne.createDefs(),this.addDefsToImage(),(se=this.defs).append.apply(se,ue)},Ce.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Ce.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},Ce.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Ce.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Ce.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},Ce.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Ce.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},Ce.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var se=document.createElement("a");se.href="https://markerjs.com/",se.target="_blank",se.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',se.title="Powered by marker.js",se.style.display="grid",se.style.alignItems="center",se.style.justifyItems="center",se.style.padding="3px",se.style.width="20px",se.style.height="20px",this.logoUI.appendChild(se),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Ce.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},Ce.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},Ce.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ce.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var se=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=se+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new gt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new kt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Ce.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Ce.prototype.removeMarker=function(se){this.markerImage.removeChild(se.container),this.markers.indexOf(se)>-1&&this.markers.splice(this.markers.indexOf(se),1),se.dispose()},Ce.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},Ce.prototype.toolbarButtonClicked=function(se,ue){if(se==="marker"&&ue!==void 0)this.createNewMarker(ue);else if(se==="action")switch(ue){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Ce.prototype.deleteSelectedMarker=function(){var se=this;if(this._currentMarker!==void 0){var ue=!1;if(this.eventListeners.markerbeforedelete.forEach(function(pe){var le=new en(se,se._currentMarker,!0);pe(le),le.defaultPrevented&&(ue=!0)}),!ue){var ge=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(pe){return pe(new en(se,ge))})}}},Ce.prototype.clear=function(){var se=this,ue=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ze){var bt=new en(se,void 0,!0);ze(bt),bt.defaultPrevented&&(ue=!0)}),!ue)){this.setCurrentMarker();for(var ge=function(ze){var bt=pe.markers[ze];pe.setCurrentMarker(pe.markers[ze]),pe._currentMarker.dispose(),pe.markerImage.removeChild(pe._currentMarker.container),pe.markers.splice(pe.markers.indexOf(pe._currentMarker),1),pe.eventListeners.markerdelete.forEach(function(Pt){return Pt(new en(se,bt))})},pe=this,le=this.markers.length-1;le>=0;le--)ge(le);this.addUndoStep()}},Object.defineProperty(Ce.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ce.prototype.showNotesEditor=function(){var se;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(se=this._currentMarker.notes)!==null&&se!==void 0?se:"",this.overlayContainer.appendChild(this.notesArea))},Ce.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},Ce.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ce.prototype.addUndoStep=function(){var se=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ue=this.getState(),ge=this.undoRedoManager.getLastUndoStep();if(!ge||ge.width===ue.width&&ge.height===ue.height){var pe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ue),pe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(le){return le(new Ut(se))})}else this.undoRedoManager.replaceLastUndoStep(ue),this.eventListeners.statechange.forEach(function(le){return le(new Ut(se))})}},Ce.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Ce.prototype.undoStep=function(){var se=this,ue=this.undoRedoManager.undo();ue!==void 0&&(this.restoreState(ue),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ge){return ge(new Ut(se))}))},Ce.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Ce.prototype.redoStep=function(){var se=this,ue=this.undoRedoManager.redo();ue!==void 0&&(this.restoreState(ue),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ge){return ge(new Ut(se))}))},Ce.prototype.stepZoom=function(){var se=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=se<this.zoomSteps.length-1?this.zoomSteps[se+1]:this.zoomSteps[0]},Ce.prototype.panTo=function(se){this.contentDiv.scrollBy({left:this.prevPanPoint.x-se.x,top:this.prevPanPoint.y-se.y}),this.prevPanPoint=se},Ce.prototype.startRenderAndClose=function(){return tt(this,void 0,void 0,function(){var se,ue,ge=this;return At(this,function(pe){switch(pe.label){case 0:return[4,this.render()];case 1:return se=pe.sent(),ue=this.getState(),this.eventListeners.render.forEach(function(le){return le(new fn(ge,se,ue))}),this.close(!0),[2]}})})},Ce.prototype.getState=function(se){se===!0&&this.setCurrentMarker();var ue={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ge){return ue.markers.push(ge.getState())}),ue},Ce.prototype.restoreState=function(se){var ue=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);se.markers.forEach(function(ge){var pe=ue._availableMarkerTypes.find(function(ze){return ze.typeName===ge.typeName});if(pe!==void 0){var le=ue.addNewMarker(pe);le.restoreState(ge),ue.markers.push(le)}}),se.width&&se.height&&(se.width!==this.imageWidth||se.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/se.width,this.imageHeight/se.height),this.eventListeners.restorestate.forEach(function(ge){return ge(new Ut(ue))})},Ce.prototype.addNewMarker=function(se){var ue=Ne.createGroup();return this.markerImage.appendChild(ue),new se(ue,this.overlayContainer,this.settings)},Ce.prototype.createNewMarker=function(se){var ue,ge=this;(ue=typeof se=="string"?this._availableMarkerTypes.find(function(pe){return pe.typeName===se}):se)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ue),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(ue.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(pe){return pe(new en(ge,ge._currentMarker))}))},Ce.prototype.markerCreated=function(se){var ue=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(se),this.setCurrentMarker(se),se instanceof Ve&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ve):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ge){return ge(new en(ue,ue._currentMarker))})},Ce.prototype.colorChanged=function(se){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=se,this.settings.defaultStrokeColor=se)},Ce.prototype.fillColorChanged=function(se){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=se)},Ce.prototype.markerStateChanged=function(se){var ue=this;this.eventListeners.markerchange.forEach(function(ge){return ge(new en(ue,se))})},Ce.prototype.setCurrentMarker=function(se){var ue=this;this._currentMarker!==se&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ge){return ge(new en(ue,ue._currentMarker))})),this._currentMarker=se,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(ge){return ge(new en(ue,ue._currentMarker))}))},Ce.prototype.onPointerDown=function(se){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||se.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ue=this.markers.find(function(ge){return ge.ownsTarget(se.target)});ue!==void 0?(this.setCurrentMarker(ue),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(se.clientX,se.clientY),se.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:se.clientX,y:se.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(se.clientX,se.clientY))},Ce.prototype.onDblClick=function(se){if(this._isFocused||this.focus(),this.mode==="select"){var ue=this.markers.find(function(ge){return ge.ownsTarget(se.target)});ue!==void 0&&ue!==this._currentMarker&&this.setCurrentMarker(ue),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(se.clientX,se.clientY),se.target):this.setCurrentMarker()}},Ce.prototype.onPointerMove=function(se){this.touchPoints!==1&&se.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||se.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(se.clientX,se.clientY)):this.zoomLevel>1&&this.panTo({x:se.clientX,y:se.clientY}))},Ce.prototype.onPointerUp=function(se){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(se.clientX,se.clientY)),this.isDragging=!1,this.addUndoStep()},Ce.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ce.prototype.onKeyUp=function(se){this._currentMarker===void 0||this.notesArea!==void 0||se.key!=="Delete"&&se.key!=="Backspace"||this.deleteSelectedMarker()},Ce.prototype.clientToLocalCoordinates=function(se,ue){var ge=this.markerImage.getBoundingClientRect();return{x:(se-ge.left)/this.zoomLevel,y:(ue-ge.top)/this.zoomLevel}},Ce.prototype.onWindowResize=function(){this.positionUI()},Ce.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var se=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=se+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},Ce.prototype.addLicenseKey=function(se){je.addKey(se)},Ce.prototype.addEventListener=function(se,ue){this.eventListeners.addEventListener(se,ue)},Ce.prototype.removeEventListener=function(se,ue){this.eventListeners.removeEventListener(se,ue)},Ce.prototype.renderState=function(se){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(se),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ce.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ce.prototype.focus=function(){var se=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ue){return ue(new Ut(se))}))},Ce.prototype.blur=function(){var se=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ue){return ue(new Ut(se))}))},Ce.instanceCounter=0,Ce}()},42767:function(cn,yn){"use strict";var de;var re=typeof Symbol=="function"&&Symbol.for,xe=re?Symbol.for("react.element"):60103,tt=re?Symbol.for("react.portal"):60106,At=re?Symbol.for("react.fragment"):60107,Pe=re?Symbol.for("react.strict_mode"):60108,Ne=re?Symbol.for("react.profiler"):60114,je=re?Symbol.for("react.provider"):60109,Ee=re?Symbol.for("react.context"):60110,ye=re?Symbol.for("react.async_mode"):60111,qe=re?Symbol.for("react.concurrent_mode"):60111,it=re?Symbol.for("react.forward_ref"):60112,he=re?Symbol.for("react.suspense"):60113,gt=re?Symbol.for("react.suspense_list"):60120,kt=re?Symbol.for("react.memo"):60115,Xe=re?Symbol.for("react.lazy"):60116,ft=re?Symbol.for("react.block"):60121,Ze=re?Symbol.for("react.fundamental"):60117,Je=re?Symbol.for("react.responder"):60118,et=re?Symbol.for("react.scope"):60119;function Ye($e){if(typeof $e=="object"&&$e!==null){var lt=$e.$$typeof;switch(lt){case xe:switch($e=$e.type,$e){case ye:case qe:case At:case Ne:case Pe:case he:return $e;default:switch($e=$e&&$e.$$typeof,$e){case Ee:case it:case Xe:case kt:case je:return $e;default:return lt}}case tt:return lt}}}function We($e){return Ye($e)===qe}de=ye,de=qe,de=Ee,de=je,de=xe,de=it,de=At,de=Xe,de=kt,de=tt,de=Ne,de=Pe,de=he,de=function($e){return We($e)||Ye($e)===ye},de=We,de=function($e){return Ye($e)===Ee},de=function($e){return Ye($e)===je},de=function($e){return typeof $e=="object"&&$e!==null&&$e.$$typeof===xe},de=function($e){return Ye($e)===it},yn.isFragment=function($e){return Ye($e)===At},de=function($e){return Ye($e)===Xe},de=function($e){return Ye($e)===kt},de=function($e){return Ye($e)===tt},de=function($e){return Ye($e)===Ne},de=function($e){return Ye($e)===Pe},de=function($e){return Ye($e)===he},de=function($e){return typeof $e=="string"||typeof $e=="function"||$e===At||$e===qe||$e===Ne||$e===Pe||$e===he||$e===gt||typeof $e=="object"&&$e!==null&&($e.$$typeof===Xe||$e.$$typeof===kt||$e.$$typeof===je||$e.$$typeof===Ee||$e.$$typeof===it||$e.$$typeof===Ze||$e.$$typeof===Je||$e.$$typeof===et||$e.$$typeof===ft)},de=Ye},16357:function(cn,yn,de){"use strict";cn.exports=de(42767)},86128:function(cn,yn,de){"use strict";de.d(yn,{Z:function(){return Tt}});var re=de(87462),xe=de(4942),tt=de(45987),At=de(1413),Pe=de(15671),Ne=de(43144),je=de(97326),Ee=de(60136),ye=de(51630),qe=de(67294),it=de(94184),he=de.n(it),gt=de(64217),kt=de(27822),Xe=function(Ot){for(var st=Ot.prefixCls,ct=Ot.level,He=Ot.isStart,pt=Ot.isEnd,Ve="".concat(st,"-indent-unit"),Qe=[],Fe=0;Fe<ct;Fe+=1){var wt;Qe.push(qe.createElement("span",{key:Fe,className:he()(Ve,(wt={},(0,xe.Z)(wt,"".concat(Ve,"-start"),He[Fe]),(0,xe.Z)(wt,"".concat(Ve,"-end"),pt[Fe]),wt))}))}return qe.createElement("span",{"aria-hidden":"true",className:"".concat(st,"-indent")},Qe)},ft=qe.memo(Xe),Ze=de(1089),Je=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],et="open",Ye="close",We="---",$e=function(_t){(0,Ee.Z)(st,_t);var Ot=(0,ye.Z)(st);function st(){var ct;(0,Pe.Z)(this,st);for(var He=arguments.length,pt=new Array(He),Ve=0;Ve<He;Ve++)pt[Ve]=arguments[Ve];return ct=Ot.call.apply(Ot,[this].concat(pt)),ct.state={dragNodeHighlight:!1},ct.selectHandle=void 0,ct.onSelectorClick=function(Qe){var Fe=ct.props.context.onNodeClick;Fe(Qe,(0,Ze.F)(ct.props)),ct.isSelectable()?ct.onSelect(Qe):ct.onCheck(Qe)},ct.onSelectorDoubleClick=function(Qe){var Fe=ct.props.context.onNodeDoubleClick;Fe(Qe,(0,Ze.F)(ct.props))},ct.onSelect=function(Qe){if(!ct.isDisabled()){var Fe=ct.props.context.onNodeSelect;Qe.preventDefault(),Fe(Qe,(0,Ze.F)(ct.props))}},ct.onCheck=function(Qe){if(!ct.isDisabled()){var Fe=ct.props,wt=Fe.disableCheckbox,Mt=Fe.checked,jt=ct.props.context.onNodeCheck;if(!(!ct.isCheckable()||wt)){Qe.preventDefault();var Re=!Mt;jt(Qe,(0,Ze.F)(ct.props),Re)}}},ct.onMouseEnter=function(Qe){var Fe=ct.props.context.onNodeMouseEnter;Fe(Qe,(0,Ze.F)(ct.props))},ct.onMouseLeave=function(Qe){var Fe=ct.props.context.onNodeMouseLeave;Fe(Qe,(0,Ze.F)(ct.props))},ct.onContextMenu=function(Qe){var Fe=ct.props.context.onNodeContextMenu;Fe(Qe,(0,Ze.F)(ct.props))},ct.onDragStart=function(Qe){var Fe=ct.props.context.onNodeDragStart;Qe.stopPropagation(),ct.setState({dragNodeHighlight:!0}),Fe(Qe,(0,je.Z)(ct));try{Qe.dataTransfer.setData("text/plain","")}catch(wt){}},ct.onDragEnter=function(Qe){var Fe=ct.props.context.onNodeDragEnter;Qe.preventDefault(),Qe.stopPropagation(),Fe(Qe,(0,je.Z)(ct))},ct.onDragOver=function(Qe){var Fe=ct.props.context.onNodeDragOver;Qe.preventDefault(),Qe.stopPropagation(),Fe(Qe,(0,je.Z)(ct))},ct.onDragLeave=function(Qe){var Fe=ct.props.context.onNodeDragLeave;Qe.stopPropagation(),Fe(Qe,(0,je.Z)(ct))},ct.onDragEnd=function(Qe){var Fe=ct.props.context.onNodeDragEnd;Qe.stopPropagation(),ct.setState({dragNodeHighlight:!1}),Fe(Qe,(0,je.Z)(ct))},ct.onDrop=function(Qe){var Fe=ct.props.context.onNodeDrop;Qe.preventDefault(),Qe.stopPropagation(),ct.setState({dragNodeHighlight:!1}),Fe(Qe,(0,je.Z)(ct))},ct.onExpand=function(Qe){var Fe=ct.props,wt=Fe.loading,Mt=Fe.context.onNodeExpand;wt||Mt(Qe,(0,Ze.F)(ct.props))},ct.setSelectHandle=function(Qe){ct.selectHandle=Qe},ct.getNodeState=function(){var Qe=ct.props.expanded;return ct.isLeaf()?null:Qe?et:Ye},ct.hasChildren=function(){var Qe=ct.props.eventKey,Fe=ct.props.context.keyEntities,wt=Fe[Qe]||{},Mt=wt.children;return!!(Mt||[]).length},ct.isLeaf=function(){var Qe=ct.props,Fe=Qe.isLeaf,wt=Qe.loaded,Mt=ct.props.context.loadData,jt=ct.hasChildren();return Fe===!1?!1:Fe||!Mt&&!jt||Mt&&wt&&!jt},ct.isDisabled=function(){var Qe=ct.props.disabled,Fe=ct.props.context.disabled;return!!(Fe||Qe)},ct.isCheckable=function(){var Qe=ct.props.checkable,Fe=ct.props.context.checkable;return!Fe||Qe===!1?!1:Fe},ct.syncLoadData=function(Qe){var Fe=Qe.expanded,wt=Qe.loading,Mt=Qe.loaded,jt=ct.props.context,Re=jt.loadData,Le=jt.onNodeLoad;wt||Re&&Fe&&!ct.isLeaf()&&!ct.hasChildren()&&!Mt&&Le((0,Ze.F)(ct.props))},ct.isDraggable=function(){var Qe=ct.props,Fe=Qe.data,wt=Qe.context.draggable;return!!(wt&&(!wt.nodeDraggable||wt.nodeDraggable(Fe)))},ct.renderDragHandler=function(){var Qe=ct.props.context,Fe=Qe.draggable,wt=Qe.prefixCls;return Fe!=null&&Fe.icon?qe.createElement("span",{className:"".concat(wt,"-draggable-icon")},Fe.icon):null},ct.renderSwitcherIconDom=function(Qe){var Fe=ct.props.switcherIcon,wt=ct.props.context.switcherIcon,Mt=Fe||wt;return typeof Mt=="function"?Mt((0,At.Z)((0,At.Z)({},ct.props),{},{isLeaf:Qe})):Mt},ct.renderSwitcher=function(){var Qe=ct.props.expanded,Fe=ct.props.context.prefixCls;if(ct.isLeaf()){var wt=ct.renderSwitcherIconDom(!0);return wt!==!1?qe.createElement("span",{className:he()("".concat(Fe,"-switcher"),"".concat(Fe,"-switcher-noop"))},wt):null}var Mt=he()("".concat(Fe,"-switcher"),"".concat(Fe,"-switcher_").concat(Qe?et:Ye)),jt=ct.renderSwitcherIconDom(!1);return jt!==!1?qe.createElement("span",{onClick:ct.onExpand,className:Mt},jt):null},ct.renderCheckbox=function(){var Qe=ct.props,Fe=Qe.checked,wt=Qe.halfChecked,Mt=Qe.disableCheckbox,jt=ct.props.context.prefixCls,Re=ct.isDisabled(),Le=ct.isCheckable();if(!Le)return null;var Nt=typeof Le!="boolean"?Le:null;return qe.createElement("span",{className:he()("".concat(jt,"-checkbox"),Fe&&"".concat(jt,"-checkbox-checked"),!Fe&&wt&&"".concat(jt,"-checkbox-indeterminate"),(Re||Mt)&&"".concat(jt,"-checkbox-disabled")),onClick:ct.onCheck},Nt)},ct.renderIcon=function(){var Qe=ct.props.loading,Fe=ct.props.context.prefixCls;return qe.createElement("span",{className:he()("".concat(Fe,"-iconEle"),"".concat(Fe,"-icon__").concat(ct.getNodeState()||"docu"),Qe&&"".concat(Fe,"-icon_loading"))})},ct.renderSelector=function(){var Qe=ct.state.dragNodeHighlight,Fe=ct.props,wt=Fe.title,Mt=wt===void 0?We:wt,jt=Fe.selected,Re=Fe.icon,Le=Fe.loading,Nt=Fe.data,Rt=ct.props.context,Yt=Rt.prefixCls,vt=Rt.showIcon,nt=Rt.icon,Vt=Rt.loadData,un=Rt.titleRender,Ut=ct.isDisabled(),fn="".concat(Yt,"-node-content-wrapper"),en;if(vt){var En=Re||nt;en=En?qe.createElement("span",{className:he()("".concat(Yt,"-iconEle"),"".concat(Yt,"-icon__customize"))},typeof En=="function"?En(ct.props):En):ct.renderIcon()}else Vt&&Le&&(en=ct.renderIcon());var _n;typeof Mt=="function"?_n=Mt(Nt):un?_n=un(Nt):_n=Mt;var Ce=qe.createElement("span",{className:"".concat(Yt,"-title")},_n);return qe.createElement("span",{ref:ct.setSelectHandle,title:typeof Mt=="string"?Mt:"",className:he()("".concat(fn),"".concat(fn,"-").concat(ct.getNodeState()||"normal"),!Ut&&(jt||Qe)&&"".concat(Yt,"-node-selected")),onMouseEnter:ct.onMouseEnter,onMouseLeave:ct.onMouseLeave,onContextMenu:ct.onContextMenu,onClick:ct.onSelectorClick,onDoubleClick:ct.onSelectorDoubleClick},en,Ce,ct.renderDropIndicator())},ct.renderDropIndicator=function(){var Qe=ct.props,Fe=Qe.disabled,wt=Qe.eventKey,Mt=ct.props.context,jt=Mt.draggable,Re=Mt.dropLevelOffset,Le=Mt.dropPosition,Nt=Mt.prefixCls,Rt=Mt.indent,Yt=Mt.dropIndicatorRender,vt=Mt.dragOverNodeKey,nt=Mt.direction,Vt=!!jt,un=!Fe&&Vt&&vt===wt;return un?Yt({dropPosition:Le,dropLevelOffset:Re,indent:Rt,prefixCls:Nt,direction:nt}):null},ct}return(0,Ne.Z)(st,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var He=this.props.selectable,pt=this.props.context.selectable;return typeof He=="boolean"?He:pt}},{key:"render",value:function(){var He,pt=this.props,Ve=pt.eventKey,Qe=pt.className,Fe=pt.style,wt=pt.dragOver,Mt=pt.dragOverGapTop,jt=pt.dragOverGapBottom,Re=pt.isLeaf,Le=pt.isStart,Nt=pt.isEnd,Rt=pt.expanded,Yt=pt.selected,vt=pt.checked,nt=pt.halfChecked,Vt=pt.loading,un=pt.domRef,Ut=pt.active,fn=pt.data,en=pt.onMouseMove,En=pt.selectable,_n=(0,tt.Z)(pt,Je),Ce=this.props.context,se=Ce.prefixCls,ue=Ce.filterTreeNode,ge=Ce.keyEntities,pe=Ce.dropContainerKey,le=Ce.dropTargetKey,ze=Ce.draggingNodeKey,bt=this.isDisabled(),Pt=(0,gt.Z)(_n,{aria:!0,data:!0}),mn=ge[Ve]||{},ln=mn.level,Xt=Nt[Nt.length-1],Kt=this.isDraggable(),sr=!bt&&Kt,mr=ze===Ve,Gt=En!==void 0?{"aria-selected":!!En}:void 0;return qe.createElement("div",(0,re.Z)({ref:un,className:he()(Qe,"".concat(se,"-treenode"),(He={},(0,xe.Z)(He,"".concat(se,"-treenode-disabled"),bt),(0,xe.Z)(He,"".concat(se,"-treenode-switcher-").concat(Rt?"open":"close"),!Re),(0,xe.Z)(He,"".concat(se,"-treenode-checkbox-checked"),vt),(0,xe.Z)(He,"".concat(se,"-treenode-checkbox-indeterminate"),nt),(0,xe.Z)(He,"".concat(se,"-treenode-selected"),Yt),(0,xe.Z)(He,"".concat(se,"-treenode-loading"),Vt),(0,xe.Z)(He,"".concat(se,"-treenode-active"),Ut),(0,xe.Z)(He,"".concat(se,"-treenode-leaf-last"),Xt),(0,xe.Z)(He,"".concat(se,"-treenode-draggable"),Kt),(0,xe.Z)(He,"dragging",mr),(0,xe.Z)(He,"drop-target",le===Ve),(0,xe.Z)(He,"drop-container",pe===Ve),(0,xe.Z)(He,"drag-over",!bt&&wt),(0,xe.Z)(He,"drag-over-gap-top",!bt&&Mt),(0,xe.Z)(He,"drag-over-gap-bottom",!bt&&jt),(0,xe.Z)(He,"filter-node",ue&&ue((0,Ze.F)(this.props))),He)),style:Fe,draggable:sr,"aria-grabbed":mr,onDragStart:sr?this.onDragStart:void 0,onDragEnter:Kt?this.onDragEnter:void 0,onDragOver:Kt?this.onDragOver:void 0,onDragLeave:Kt?this.onDragLeave:void 0,onDrop:Kt?this.onDrop:void 0,onDragEnd:Kt?this.onDragEnd:void 0,onMouseMove:en},Gt,Pt),qe.createElement(ft,{prefixCls:se,level:ln,isStart:Le,isEnd:Nt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),st}(qe.Component),lt=function(Ot){return qe.createElement(kt.k.Consumer,null,function(st){return qe.createElement($e,(0,re.Z)({},Ot,{context:st}))})};lt.displayName="TreeNode",lt.isTreeNode=1;var Tt=lt},27822:function(cn,yn,de){"use strict";de.d(yn,{k:function(){return xe}});var re=de(67294),xe=re.createContext(null)},10225:function(cn,yn,de){"use strict";de.d(yn,{BT:function(){return ft},Ds:function(){return it},E6:function(){return et},L0:function(){return Ee},OM:function(){return Xe},_5:function(){return je},bt:function(){return qe},r7:function(){return Ye},wA:function(){return he},yx:function(){return ye}});var re=de(74902),xe=de(71002),tt=de(67294),At=de(80334),Pe=de(86128),Ne=null;function je(We,$e){if(!We)return[];var lt=We.slice(),Tt=lt.indexOf($e);return Tt>=0&<.splice(Tt,1),lt}function Ee(We,$e){var lt=(We||[]).slice();return lt.indexOf($e)===-1&<.push($e),lt}function ye(We){return We.split("-")}function qe(We,$e){return"".concat(We,"-").concat($e)}function it(We){return We&&We.type&&We.type.isTreeNode}function he(We,$e){var lt=[],Tt=$e[We];function _t(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ot.forEach(function(st){var ct=st.key,He=st.children;lt.push(ct),_t(He)})}return _t(Tt.children),lt}function gt(We){if(We.parent){var $e=ye(We.pos);return Number($e[$e.length-1])===We.parent.children.length-1}return!1}function kt(We){var $e=ye(We.pos);return Number($e[$e.length-1])===0}function Xe(We,$e,lt,Tt,_t,Ot,st,ct,He,pt){var Ve,Qe=We.clientX,Fe=We.clientY,wt=We.target.getBoundingClientRect(),Mt=wt.top,jt=wt.height,Re=(pt==="rtl"?-1:1)*(((_t==null?void 0:_t.x)||0)-Qe),Le=(Re-12)/Tt,Nt=ct[lt.props.eventKey];if(Fe<Mt+jt/2){var Rt=st.findIndex(function(se){return se.key===Nt.key}),Yt=Rt<=0?0:Rt-1,vt=st[Yt].key;Nt=ct[vt]}var nt=Nt.key,Vt=Nt,un=Nt.key,Ut=0,fn=0;if(!He.includes(nt))for(var en=0;en<Le&>(Nt);en+=1)Nt=Nt.parent,fn+=1;var En=$e.props.data,_n=Nt.node,Ce=!0;return kt(Nt)&&Nt.level===0&&Fe<Mt+jt/2&&Ot({dragNode:En,dropNode:_n,dropPosition:-1})&&Nt.key===lt.props.eventKey?Ut=-1:(Vt.children||[]).length&&He.includes(un)?Ot({dragNode:En,dropNode:_n,dropPosition:0})?Ut=0:Ce=!1:fn===0?Le>-1.5?Ot({dragNode:En,dropNode:_n,dropPosition:1})?Ut=1:Ce=!1:Ot({dragNode:En,dropNode:_n,dropPosition:0})?Ut=0:Ot({dragNode:En,dropNode:_n,dropPosition:1})?Ut=1:Ce=!1:Ot({dragNode:En,dropNode:_n,dropPosition:1})?Ut=1:Ce=!1,{dropPosition:Ut,dropLevelOffset:fn,dropTargetKey:Nt.key,dropTargetPos:Nt.pos,dragOverNodeKey:un,dropContainerKey:Ut===0?null:((Ve=Nt.parent)===null||Ve===void 0?void 0:Ve.key)||null,dropAllowed:Ce}}function ft(We,$e){if(We){var lt=$e.multiple;return lt?We.slice():We.length?[We[0]]:We}}var Ze=function($e){return $e};function Je(We,$e){if(!We)return[];var lt=$e||{},Tt=lt.processProps,_t=Tt===void 0?Ze:Tt,Ot=Array.isArray(We)?We:[We];return Ot.map(function(st){var ct=st.children,He=_objectWithoutProperties(st,Ne),pt=Je(ct,$e);return React.createElement(TreeNode,_extends({key:He.key},_t(He)),pt)})}function et(We){if(!We)return null;var $e;if(Array.isArray(We))$e={checkedKeys:We,halfCheckedKeys:void 0};else if((0,xe.Z)(We)==="object")$e={checkedKeys:We.checked||void 0,halfCheckedKeys:We.halfChecked||void 0};else return(0,At.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return $e}function Ye(We,$e){var lt=new Set;function Tt(_t){if(!lt.has(_t)){var Ot=$e[_t];if(Ot){lt.add(_t);var st=Ot.parent,ct=Ot.node;ct.disabled||st&&Tt(st.key)}}}return(We||[]).forEach(function(_t){Tt(_t)}),(0,re.Z)(lt)}},17341:function(cn,yn,de){"use strict";de.d(yn,{S:function(){return Ne}});var re=de(80334);function xe(je,Ee){var ye=new Set;return je.forEach(function(qe){Ee.has(qe)||ye.add(qe)}),ye}function tt(je){var Ee=je||{},ye=Ee.disabled,qe=Ee.disableCheckbox,it=Ee.checkable;return!!(ye||qe)||it===!1}function At(je,Ee,ye,qe){for(var it=new Set(je),he=new Set,gt=0;gt<=ye;gt+=1){var kt=Ee.get(gt)||new Set;kt.forEach(function(Je){var et=Je.key,Ye=Je.node,We=Je.children,$e=We===void 0?[]:We;it.has(et)&&!qe(Ye)&&$e.filter(function(lt){return!qe(lt.node)}).forEach(function(lt){it.add(lt.key)})})}for(var Xe=new Set,ft=ye;ft>=0;ft-=1){var Ze=Ee.get(ft)||new Set;Ze.forEach(function(Je){var et=Je.parent,Ye=Je.node;if(!(qe(Ye)||!Je.parent||Xe.has(Je.parent.key))){if(qe(Je.parent.node)){Xe.add(et.key);return}var We=!0,$e=!1;(et.children||[]).filter(function(lt){return!qe(lt.node)}).forEach(function(lt){var Tt=lt.key,_t=it.has(Tt);We&&!_t&&(We=!1),!$e&&(_t||he.has(Tt))&&($e=!0)}),We&&it.add(et.key),$e&&he.add(et.key),Xe.add(et.key)}})}return{checkedKeys:Array.from(it),halfCheckedKeys:Array.from(xe(he,it))}}function Pe(je,Ee,ye,qe,it){for(var he=new Set(je),gt=new Set(Ee),kt=0;kt<=qe;kt+=1){var Xe=ye.get(kt)||new Set;Xe.forEach(function(et){var Ye=et.key,We=et.node,$e=et.children,lt=$e===void 0?[]:$e;!he.has(Ye)&&!gt.has(Ye)&&!it(We)&<.filter(function(Tt){return!it(Tt.node)}).forEach(function(Tt){he.delete(Tt.key)})})}gt=new Set;for(var ft=new Set,Ze=qe;Ze>=0;Ze-=1){var Je=ye.get(Ze)||new Set;Je.forEach(function(et){var Ye=et.parent,We=et.node;if(!(it(We)||!et.parent||ft.has(et.parent.key))){if(it(et.parent.node)){ft.add(Ye.key);return}var $e=!0,lt=!1;(Ye.children||[]).filter(function(Tt){return!it(Tt.node)}).forEach(function(Tt){var _t=Tt.key,Ot=he.has(_t);$e&&!Ot&&($e=!1),!lt&&(Ot||gt.has(_t))&&(lt=!0)}),$e||he.delete(Ye.key),lt&>.add(Ye.key),ft.add(Ye.key)}})}return{checkedKeys:Array.from(he),halfCheckedKeys:Array.from(xe(gt,he))}}function Ne(je,Ee,ye,qe){var it=[],he;qe?he=qe:he=tt;var gt=new Set(je.filter(function(Ze){var Je=!!ye[Ze];return Je||it.push(Ze),Je})),kt=new Map,Xe=0;Object.keys(ye).forEach(function(Ze){var Je=ye[Ze],et=Je.level,Ye=kt.get(et);Ye||(Ye=new Set,kt.set(et,Ye)),Ye.add(Je),Xe=Math.max(Xe,et)}),(0,re.ZP)(!it.length,"Tree missing follow keys: ".concat(it.slice(0,100).map(function(Ze){return"'".concat(Ze,"'")}).join(", ")));var ft;return Ee===!0?ft=At(gt,kt,Xe,he):ft=Pe(gt,Ee.halfCheckedKeys,kt,Xe,he),ft}},1089:function(cn,yn,de){"use strict";de.d(yn,{F:function(){return Je},H8:function(){return Ze},I8:function(){return ft},km:function(){return qe},oH:function(){return kt},w$:function(){return it},zn:function(){return gt}});var re=de(71002),xe=de(74902),tt=de(1413),At=de(45987),Pe=de(98423),Ne=de(50344),je=de(80334),Ee=de(10225),ye=["children"];function qe(et,Ye){return et!=null?et:Ye}function it(et){var Ye=et||{},We=Ye.title,$e=Ye._title,lt=Ye.key,Tt=Ye.children,_t=We||"title";return{title:_t,_title:$e||[_t],key:lt||"key",children:Tt||"children"}}function he(et,Ye){var We=new Map;function $e(lt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(lt||[]).forEach(function(_t){var Ot=_t[Ye.key],st=_t[Ye.children];warning(Ot!=null,"Tree node must have a certain key: [".concat(Tt).concat(Ot,"]"));var ct=String(Ot);warning(!We.has(ct)||Ot===null||Ot===void 0,"Same 'key' exist in the Tree: ".concat(ct)),We.set(ct,!0),$e(st,"".concat(Tt).concat(ct," > "))})}$e(et)}function gt(et){function Ye(We){var $e=(0,Ne.Z)(We);return $e.map(function(lt){if(!(0,Ee.Ds)(lt))return(0,je.ZP)(!lt,"Tree/TreeNode can only accept TreeNode as children."),null;var Tt=lt.key,_t=lt.props,Ot=_t.children,st=(0,At.Z)(_t,ye),ct=(0,tt.Z)({key:Tt},st),He=Ye(Ot);return He.length&&(ct.children=He),ct}).filter(function(lt){return lt})}return Ye(et)}function kt(et,Ye,We){var $e=it(We),lt=$e._title,Tt=$e.key,_t=$e.children,Ot=new Set(Ye===!0?[]:Ye),st=[];function ct(He){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return He.map(function(Ve,Qe){for(var Fe=(0,Ee.bt)(pt?pt.pos:"0",Qe),wt=qe(Ve[Tt],Fe),Mt,jt=0;jt<lt.length;jt+=1){var Re=lt[jt];if(Ve[Re]!==void 0){Mt=Ve[Re];break}}var Le=(0,tt.Z)((0,tt.Z)({},(0,Pe.Z)(Ve,[].concat((0,xe.Z)(lt),[Tt,_t]))),{},{title:Mt,key:wt,parent:pt,pos:Fe,children:null,data:Ve,isStart:[].concat((0,xe.Z)(pt?pt.isStart:[]),[Qe===0]),isEnd:[].concat((0,xe.Z)(pt?pt.isEnd:[]),[Qe===He.length-1])});return st.push(Le),Ye===!0||Ot.has(wt)?Le.children=ct(Ve[_t]||[],Le):Le.children=[],Le})}return ct(et),st}function Xe(et,Ye,We){var $e={};(0,re.Z)(We)==="object"?$e=We:$e={externalGetKey:We},$e=$e||{};var lt=$e,Tt=lt.childrenPropName,_t=lt.externalGetKey,Ot=lt.fieldNames,st=it(Ot),ct=st.key,He=st.children,pt=Tt||He,Ve;_t?typeof _t=="string"?Ve=function(wt){return wt[_t]}:typeof _t=="function"&&(Ve=function(wt){return _t(wt)}):Ve=function(wt,Mt){return qe(wt[ct],Mt)};function Qe(Fe,wt,Mt,jt){var Re=Fe?Fe[pt]:et,Le=Fe?(0,Ee.bt)(Mt.pos,wt):"0",Nt=Fe?[].concat((0,xe.Z)(jt),[Fe]):[];if(Fe){var Rt=Ve(Fe,Le),Yt={node:Fe,index:wt,pos:Le,key:Rt,parentPos:Mt.node?Mt.pos:null,level:Mt.level+1,nodes:Nt};Ye(Yt)}Re&&Re.forEach(function(vt,nt){Qe(vt,nt,{node:Fe,pos:Le,level:Mt?Mt.level+1:-1},Nt)})}Qe(null)}function ft(et){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},We=Ye.initWrapper,$e=Ye.processEntity,lt=Ye.onProcessFinished,Tt=Ye.externalGetKey,_t=Ye.childrenPropName,Ot=Ye.fieldNames,st=arguments.length>2?arguments[2]:void 0,ct=Tt||st,He={},pt={},Ve={posEntities:He,keyEntities:pt};return We&&(Ve=We(Ve)||Ve),Xe(et,function(Qe){var Fe=Qe.node,wt=Qe.index,Mt=Qe.pos,jt=Qe.key,Re=Qe.parentPos,Le=Qe.level,Nt=Qe.nodes,Rt={node:Fe,nodes:Nt,index:wt,key:jt,pos:Mt,level:Le},Yt=qe(jt,Mt);He[Mt]=Rt,pt[Yt]=Rt,Rt.parent=He[Re],Rt.parent&&(Rt.parent.children=Rt.parent.children||[],Rt.parent.children.push(Rt)),$e&&$e(Rt,Ve)},{externalGetKey:ct,childrenPropName:_t,fieldNames:Ot}),lt&<(Ve),Ve}function Ze(et,Ye){var We=Ye.expandedKeys,$e=Ye.selectedKeys,lt=Ye.loadedKeys,Tt=Ye.loadingKeys,_t=Ye.checkedKeys,Ot=Ye.halfCheckedKeys,st=Ye.dragOverNodeKey,ct=Ye.dropPosition,He=Ye.keyEntities,pt=He[et],Ve={eventKey:et,expanded:We.indexOf(et)!==-1,selected:$e.indexOf(et)!==-1,loaded:lt.indexOf(et)!==-1,loading:Tt.indexOf(et)!==-1,checked:_t.indexOf(et)!==-1,halfChecked:Ot.indexOf(et)!==-1,pos:String(pt?pt.pos:""),dragOver:st===et&&ct===0,dragOverGapTop:st===et&&ct===-1,dragOverGapBottom:st===et&&ct===1};return Ve}function Je(et){var Ye=et.data,We=et.expanded,$e=et.selected,lt=et.checked,Tt=et.loaded,_t=et.loading,Ot=et.halfChecked,st=et.dragOver,ct=et.dragOverGapTop,He=et.dragOverGapBottom,pt=et.pos,Ve=et.active,Qe=et.eventKey,Fe=(0,tt.Z)((0,tt.Z)({},Ye),{},{expanded:We,selected:$e,checked:lt,loaded:Tt,loading:_t,halfChecked:Ot,dragOver:st,dragOverGapTop:ct,dragOverGapBottom:He,pos:pt,active:Ve,key:Qe});return"props"in Fe||Object.defineProperty(Fe,"props",{get:function(){return(0,je.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),et}}),Fe}},73631:function(cn){"use strict";cn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhG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t2dfFvP9869xhk4pdVk7K28wg7U6MCR/2PwaTTJBM8cAxiYZIiH2GuxTHKDflgKQafrVjnLxBP/VsIowYKFhNLOcFasSkQHlSneyVFXAVk7wgOXFKJowGSAH7OgFm7hSoQrGZMUkUWN1TquIY77Eqjlk5W/5VVxIUSK6YpBSe2RsSS9sI9ka1gUo2HlAdIBRIXgFijHMZosE7c+cF6WbmGwIHHtGmoM09ziVVmxYTNwmSMV3knZXj2OcadKQOb3B15y0BWdmb5+ValhWvDM6zWEwcZz5O+ikNSjAmqclULdu9DT89GBl4CIWvy0xUSlFGGGMwMhCT9P2peMS0vUEUNJjETXFS+oa7c5gkV7wuchoGl0C62g6GBA/MJHMMWVWunf6PqlZIUPOsnC3zPrV59NeR2WoA3qkocJmh1miWmxmq0h0ihx7lsHwgkHTrXAAlCGlMq3qnWlUcM2KS192p3IqhFa5AJ7dBoXKBJIN7QJCcEWPvpJDAyIhV1N81GOOIAZNJDkhmYZTdrTFUAhtrrOzUt1ujxj4C2E201JZgcZ/VNWkawOh62secBqLWufgcqCvLDs0z3+CAZIwYe9xdLVepXJScFOKWhWQOd1rVoqqDTMGnV2U85AEN2cQw5h245yd7OLo8oxt4wVyYGyQnkXUadIa6K4xARA9+HALJ8vvfsW0kKnen3JQDkptFyiUKAIUrctSaSGh56uZGIGn3ZTLJ+99dlOpz/lcFOSQxrizjSBCQboZJdYMkWxgekNxFTckgs9cTNM7IZpxqypkTriKZzoPt3xpREzYp6t7x2f8ARtZc8eay0EoAAAAASUVORK5CYII="},39057:function(cn){"use strict";cn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7svWuXJMdxJWgRmVmP7gYIgEOOtLMjUY/R7v//OfthZ85KsyNRIgg0+lFVmRkx59o1czf38HhkVjXQAFE8TVRlRvjD3Nzsur28k19/fqXArxT4lQK/UuBXCvxKgV8p8EIU6F6onV+b+ZUCv1LgVwr8So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wY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},79633:function(cn){"use strict";cn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7tvXlzJzmSJQaSeWcd3TOzvT270mpN0ppM3/+raDWS6TJp/9jpObq6rqw8SZkDcI+HB3ccwR+zsruZZlUkI3A4HH48OByIq/T475EDjxx45MAjBx458MiBRw5ciANXF2rnsZlHDjxy4JEDjxx45MAjBx45kK7+l/96ezfigyCPq6vyX0p3SX4MK0yZev8Wpl18YQVu73z8djFU5zRUpyvlCYv+yUTS+2N2yksu4s09NuE0me7ch6Xv3B81WmSt/JNX/F6ba9rVNpgYaWTAA26bWaVVc5+VOTKdV3exHiD92J7ydqoBNsBa22MwlhmNrw5+2icNPOs9zIFYCW8uXNHCipX/1057Xl2WryHPPLma6H4jJo4wu6qK5Zy5EBnqmvIGUgX6fvbz0AuHzY3e7JhBT+RGup7fBfyXx9d3Kd3e3KWfn3xKN7UhnMuq+VnGblNKz9N1evXpOin/R/o1Gpe09ae3KX26U5/Vqj/qu44vkmtpS8aIY/3965RePUmJvaZnfphF6kvRJBkL71L6539N6c0vh01UWm9vqw0UWuS/2zI+fZ7L1Xe5z0w4/ON5qv7c6KmCdF3tcfb3oq+itPrzKqXbTym9/puUXv+mt8md3ZwBC62gRJRO7z4TuNg1hzuqxB7nEuru9397W2cKXl8EVLSaWhxBVYTIuYkQyjv9ucqxyLbmLkGJG3lGgYZ+i7RWhVfFrQxpjOXAeWs/HWgZORt+N2m/4SFYXmtGgQYxURVzhA/U6Lj8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f1UWSToAKj1Yi7ziIX8Gh3E8hl2H9/LZeiHUXHytHkniFL+8k/0ISO2WLRCIZuI015KOCAgYCDCAingSgQvU8otu9YEsL1zYFWOjW0SUjFiISapNUjDDKIWTY38AXuCALtYt/52lHR8VOC9WDnZ/XB6vTiA7UEB8QlNpHG30Ew3PIM8viGVa28CiSM16WskpraQnHMzInbKZmpmdlLr05dKxRw9sF71WH1Kx+UJRo6ofnxBe6O1tEjexMCk61P5me3GcFVsIa2cs1yar5EGzvG3FRopivTKxnuWGKOyDIdNe/+YbOM8CCLYRHqqpDMyd0p8Is4oC0STt4cZs628wWBbYnBECByU2ty32e5U9kTU7JoOMIGzAVIDuVTbZOOyETtJIz2r35ytseAijkAqz3KQnAQAvf0Kb2Rm1r4Miz470qd10IuBCQ8WrjeCpvH5AZs2GqjHnj5iOmDaiABrs28DSJNizJpTcp3VYd/cKAhVIZWBTjTqR9M2fIQGDFIbLznvV9tHncq8n3XY4cs9c+P0O6vTFw+4dYHW+ONu9veFb4GIm+J/LaXmBtdsEFdgFAA8Up9wTiocZaDRgbuB3DNjNmjQGvQ74fwJl5+NYwSun8H2aBo8h54oZTxALkTR9Zd/uT1Gsoi0bHIRf3l902VNxoWm3ctqzAaaBjmYGLDsTw9gg6XeY7graRINU7FDwtiyyExzvWOA+AneF5t9UF43Rvya0MzrR74jwhAqtE1YdjrUyTrQ5JypT/LI+izkPjTQJ67DEWrh1j/oWACsm/+FryLzaOpzYAg2TFI8kFGoP8Cq+8yTvVE1Chl4PeF1gIizRKgb+rPC5FLHYM72PZRw48cuCRA48ceOTAIwceOTDB2o8MeuTAIwceOfDIgUcOPHLgkQOX4cD/Dy5hqdeaBa56AAAAAElFTkSuQmCC"},84279:function(cn,yn,de){"use strict";var re=Object.defineProperty,xe=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,At=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,je=(a,y,b)=>y in a?re(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,Ee=(a,y)=>{for(var b in y||(y={}))Pe.call(y,b)&&je(a,b,y[b]);if(At)for(var b of At(y))Ne.call(y,b)&&je(a,b,y[b]);return a},ye=(a,y)=>xe(a,tt(y)),qe=a=>typeof a=="symbol"?a:a+"",it=(a,y)=>{var b={};for(var E in a)Pe.call(a,E)&&y.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&At)for(var E of At(a))y.indexOf(E)<0&&Ne.call(a,E)&&(b[E]=a[E]);return b};function he(a){return Array.isArray(a)}var gt={en:{"keyboard.tooltip.symbols":"\u7B26\u53F7","keyboard.tooltip.greek":"\u5E0C\u814A\u5B57\u6BCD","keyboard.tooltip.numeric":"\u6570\u5B57","keyboard.tooltip.alphabetic":"\u7F57\u9A6C\u5B57\u6BCD","tooltip.cut to clipboard":"\u526A\u5207\u5230\u526A\u8D34\u677F","tooltip.copy to clipboard":"\u590D\u5236\u5230\u526A\u8D34\u677F","tooltip.paste from clipboard":"\u7C98\u8D34","tooltip.redo":"\u91CD\u505A","tooltip.toggle virtual keyboard":"\u5207\u6362\u865A\u62DF\u952E\u76D8","tooltip.undo":"\u64A4\u6D88","menu.insert matrix":"\u63D2\u5165\u77E9\u9635","menu.borders":"\u77E9\u9635\u5206\u9694\u7B26","menu.array.add row above":"\u5728\u540E\u9762\u6DFB\u52A0\u884C","menu.array.add row below":"\u5728\u524D\u9762\u6DFB\u52A0\u884C","menu.array.add column after":"\u5728\u540E\u9762\u6DFB\u52A0\u5217r","menu.array.add column before":"\u5728\u524D\u9762\u6DFB\u52A0\u5217","menu.array.delete row":"\u5220\u9664\u884C","menu.array.delete rows":"\u5220\u9664\u9009\u5B9A\u884C","menu.array.delete column":"\u5220\u9664\u5217","menu.array.delete columns":"\u5220\u9664\u9009\u5B9A\u7684\u5217","menu.mode":"\u6A21\u5F0F","menu.mode-math":"\u6570\u5B66","menu.mode-text":"\u6587\u672C","menu.mode-latex":"LaTeX","tooltip.blackboard":"\u9ED1\u677F","tooltip.bold":"\u7C97\u4F53","tooltip.italic":"\u659C\u4F53","tooltip.fraktur":"Fraktur","tooltip.script":"\u811A\u672C","tooltip.caligraphic":"\u8349\u4E66","tooltip.typewriter":"\u6253\u5B57\u673A","tooltip.roman-upright":"\u7F57\u9A6C\u76F4\u7ACB","tooltip.row-by-col":"%@ \xD7 %@","menu.font-style":"\u5B57\u4F53\u6837\u5F0F","menu.accent":"\u91CD\u97F3","menu.decoration":"\u88C5\u9970","menu.color":"\u989C\u8272","menu.background-color":"\u80CC\u666F","menu.evaluate":"\u8BA1\u7B97","menu.simplify":"\u7B80\u5316","menu.solve":"\u6C42\u89E3","menu.solve-for":"\u6C42\u89E3 %@","menu.cut":"\u526A\u5207","menu.copy":"\u590D\u5236","menu.copy-as-latex":"\u590D\u5236\u4E3A LaTeX","menu.copy-as-ascii-math":"\u590D\u5236\u4E3A ASCII Math","menu.copy-as-mathml":"\u590D\u5236\u4E3A MathML","menu.paste":"\u7C98\u8D34","menu.select-all":"\u5168\u9009","color.red":"\u7EA2\u8272","color.orange":"\u6A59\u8272","color.yellow":"\u9EC4\u8272","color.lime":"\u7EFF\u9EC4\u8272","color.green":"\u7EFF\u8272","color.teal":"\u9752\u8272","color.cyan":"\u84DD\u7EFF\u8272","color.blue":"\u84DD\u8272","color.indigo":"\u975B\u84DD\u8272","color.purple":"\u7D2B\u8272","color.magenta":"\u6D0B\u7EA2\u8272","color.black":"\u9ED1\u8272","color.dark-grey":"\u6DF1\u7070\u8272","color.grey":"\u7070\u8272","color.light-grey":"\u6D45\u7070\u8272","color.white":"\u767D\u8272"}};function kt(){return"window"in globalThis&&"document"in globalThis}function Xe(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function ft(){return typeof navigator.vibrate=="function"}function Ze(){var a,y;if(!kt())return"other";const b=(y=(a=navigator.userAgentData)==null?void 0:a.platform)!=null?y:navigator.platform;return/^mac/i.test(b)?navigator.maxTouchPoints===5?"ios":"macos":/^win/i.test(b)?"windows":/android/i.test(navigator.userAgent)?"android":/iphone|ipod|ipad/i.test(navigator.userAgent)?"ios":/\bcros\b/i.test(navigator.userAgent)?"chromeos":"other"}function Je(){if(!kt())return!0;if(/firefox/i.test(navigator.userAgent)){const a=navigator.userAgent.match(/firefox\/(\d+)/i);return a?parseInt(a[1])>=78:!1}if(/trident/i.test(navigator.userAgent))return!1;if(/edge/i.test(navigator.userAgent)){const a=navigator.userAgent.match(/edg\/(\d+)/i);return a?parseInt(a[1])>=79:!1}return!0}function et(){return HTMLElement.prototype.hasOwnProperty("popover")}var Ye={strings:gt,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return Ye._locale||(Ye._locale=kt()?navigator.language.slice(0,5):"en-US"),Ye._locale},set locale(a){Ye._locale=a,Ye._numberFormatter=void 0,Ye.dirty=!0},get numberFormatter(){return Ye._numberFormatter||(Ye._numberFormatter=new Intl.NumberFormat(Ye.locale)),Ye._numberFormatter},merge(a,y){if(typeof a=="string"&&y)Ye.strings[a]=Ee(Ee({},Ye.strings[a]),y),Ye.dirty=!0;else for(const b of Object.keys(a))Ye.merge(b,a[b])},get dirty(){return Ye._dirty},set dirty(a){Ye._dirty||Ye._dirty===a||(Ye._dirty=!0,setTimeout(()=>{Ye._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return Ye._subscribers.push(a),Ye._subscribers.length-1},unsubscribe(a){a<0||a>=Ye._subscribers.length||(Ye._subscribers[a]=void 0)},update(a){let y=a.querySelectorAll("[data-l10n-tooltip]");for(const b of y){const E=b.getAttribute("data-l10n-tooltip");if(E){const ee=We(E);ee&&b.setAttribute("data-tooltip",ee)}}y=a.querySelectorAll("[data-l10n-arial-label]");for(const b of y){const E=b.getAttribute("data-l10n-arial-label");if(E){const ee=We(E);ee&&b.setAttribute("aria-label",ee)}}}};function We(a,...y){if(a===void 0)return;let b="";const E=Ye.locale;Ye.strings[E]&&(b=Ye.strings[E][a]);const ee=E.slice(0,2);if(!b&&Ye.strings[ee]&&(b=Ye.strings[ee][a]),b||(b=Ye.strings.en[a]),!b)return;const ie=/(%@|%([0-9]+)\$@)/g;let oe=ie.exec(b),fe=0;for(;oe;){if(y[fe++]){const be=oe[2]?parseInt(oe[2],10)-1:fe-1;let ke=y[be];typeof ke=="number"&&(ke=Ye.numberFormatter.format(ke)),b=b.replace(oe[1],ke)}oe=ie.exec(b)}return b=b.replace(/%%/g,"%"),b}var $e={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},lt={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},Tt={red:"#fbbbb6",orange:"#ffe0c2",yellow:"#fff1c2",lime:"#d0e8b9",green:"#bceac4",teal:"#b9f1f1",cyan:"#b8e5c9",blue:"#b6d9fb",indigo:"#d1c2f0",purple:"#e3baf8",magenta:"#f9c8e0",black:"#353535","dark-grey":"#8C8C8C",grey:"#D0D0D0","light-grey":"#F0F0F0",white:"#ffffff"},_t={red:"#d7170b",orange:"#fe8a2b",yellow:"#ffc02b",lime:"#63b215",green:"#21ba3a",teal:"#17cfcf",cyan:"#13a7ec",blue:"#0d80f2",indigo:"#63c",purple:"#a219e6",magenta:"#eb4799",black:"#000","dark-grey":"#666",grey:"#A6A6A6","light-grey":"#d4d5d2",white:"#ffffff"},Ot={Red:"red",Orange:"orange",Yellow:"yellow",LimeGreen:"lime",Green:"green",TealBlue:"teal",Blue:"blue",Violet:"indigo",Purple:"purple",Magenta:"magenta",Black:"black",Gray:"grey",White:"white"},st={Apricot:"#FBB982",Aquamarine:"#00B5BE",Bittersweet:"#C04F17",Black:"#221E1F",Blue:"#2D2F92",BlueGreen:"#00B3B8",BlueViolet:"#473992",BrickRed:"#B6321C",Brown:"#792500",BurntOrange:"#F7921D",CadetBlue:"#74729A",CarnationPink:"#F282B4",Cerulean:"#00A2E3",CornflowerBlue:"#41B0E4",Cyan:"#00AEEF",Dandelion:"#FDBC42",DarkOrchid:"#A4538A",Emerald:"#00A99D",ForestGreen:"#009B55",Fuchsia:"#8C368C",Goldenrod:"#FFDF42",Gray:"#949698",Green:"#00A64F",GreenYellow:"#DFE674",JungleGreen:"#00A99A",Lavender:"#F49EC4",Limegreen:"#8DC73E",Magenta:"#EC008C",Mahogany:"#A9341F",Maroon:"#AF3235",Melon:"#F89E7B",MidnightBlue:"#006795",Mulberry:"#A93C93",NavyBlue:"#006EB8",OliveGreen:"#3C8031",Orange:"#F58137",OrangeRed:"#ED135A",Orchid:"#AF72B0",Peach:"#F7965A",Periwinkle:"#7977B8",PineGreen:"#008B72",Plum:"#92268F",ProcessBlue:"#00B0F0",Purple:"#99479B",RawSienna:"#974006",Red:"#ED1B23",RedOrange:"#F26035",RedViolet:"#A1246B",Rhodamine:"#EF559F",RoyalBlue:"#0071BC",RoyalPurple:"#613F99",RubineRed:"#ED017D",Salmon:"#F69289",SeaGreen:"#3FBC9D",Sepia:"#671800",SkyBlue:"#46C5DD",SpringGreen:"#C6DC67",Tan:"#DA9D76",TealBlue:"#00AEB3",Thistle:"#D883B7",Turquoise:"#00B4CE",Violet:"#58429B",VioletRed:"#EF58A0",White:"#FFFFFF",WildStrawberry:"#EE2967",Yellow:"#FFF200",YellowGreen:"#98CC70",YellowOrange:"#FAA21A"};function ct(a){var y,b,E,ee,ie,oe;const fe=a.split("!");let me,be,ke,Ke=255,rt=255,xt=255,Ft=-1;const Sn=fe.length>0&&fe[0].startsWith("-");Sn&&(fe[0]=fe[0].slice(1));for(let Fr=0;Fr<fe.length;Fr++){me=Ke,be=rt,ke=xt;const xn=(y=fe[Fr].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],tr=xn==null?void 0:xn.toLowerCase(),Kr=xn&&(oe=(ie=(ee=(E=(b=_t[tr])!=null?b:_t[Ot[xn]])!=null?E:lt[xn])!=null?ee:st[xn])!=null?ie:$e[xn])!=null?oe:fe[Fr].trim();let cr=Kr.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(cr!=null&&cr[1]&&cr[2]&&cr[3])Ke=Math.max(0,Math.min(255,Number.parseInt(cr[1],16))),rt=Math.max(0,Math.min(255,Number.parseInt(cr[2],16))),xt=Math.max(0,Math.min(255,Number.parseInt(cr[3],16)));else if(cr=Kr.match(/^#([\da-f]{3})$/i),cr!=null&&cr[1]){const Fi=Number.parseInt(cr[1][0],16),ra=Number.parseInt(cr[1][1],16),ji=Number.parseInt(cr[1][2],16);Ke=Math.max(0,Math.min(255,Fi*16+Fi)),rt=Math.max(0,Math.min(255,ra*16+ra)),xt=Math.max(0,Math.min(255,ji*16+ji))}else if(cr=Kr.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),cr!=null&&cr[1]&&cr[2]&&cr[3])Ke=Math.max(0,Math.min(255,Number.parseInt(cr[1]))),rt=Math.max(0,Math.min(255,Number.parseInt(cr[2]))),xt=Math.max(0,Math.min(255,Number.parseInt(cr[3])));else return;Ft>=0&&(Ke=(1-Ft)*Ke+Ft*me,rt=(1-Ft)*rt+Ft*be,xt=(1-Ft)*xt+Ft*ke,Ft=-1),Fr+1<fe.length&&(Ft=Math.max(0,Math.min(100,Number.parseInt(fe[++Fr])))/100)}return Ft>=0&&(Ke=Ft*Ke+(1-Ft)*me,rt=Ft*rt+(1-Ft)*be,xt=Ft*xt+(1-Ft)*ke),Sn&&(Ke=255-Ke,rt=255-rt,xt=255-xt),"#"+("00"+Math.round(Ke).toString(16)).slice(-2)+("00"+Math.round(rt).toString(16)).slice(-2)+("00"+Math.round(xt).toString(16)).slice(-2)}function He(a){var y,b;return a=a.trim(),(b=(y=Tt[a.toLowerCase()])!=null?y:Tt[Ot[a]])!=null?b:ct(a)}function pt(a){if(!a||a[0]!=="#")return;a=a.slice(1);let y;return a.length<=4?(y={r:parseInt(a[0]+a[0],16),g:parseInt(a[1]+a[1],16),b:parseInt(a[2]+a[2],16)},a.length===4&&(y.a=parseInt(a[3]+a[3],16)/255)):(y={r:parseInt(a[0]+a[1],16),g:parseInt(a[2]+a[3],16),b:parseInt(a[4]+a[5],16)},a.length===8&&(y.a=parseInt(a[6]+a[7],16)/255)),y&&y.a===void 0&&(y.a=1),y}function Ve(a,y,b){return b<0&&(b+=6),b>=6&&(b-=6),b<1?(y-a)*b+a:b<3?y:b<4?(y-a)*(4-b)+a:a}function Qe(a){let[y,b,E]=[a.h,a.s,a.l];y=(y+360)%360/60,E=Math.max(0,Math.min(E,1)),b=Math.max(0,Math.min(b,1));const ee=E<=.5?E*(b+1):E+b-E*b,ie=E*2-ee;return{r:Math.round(255*Ve(ie,ee,y+2)),g:Math.round(255*Ve(ie,ee,y)),b:Math.round(255*Ve(ie,ee,y-2))}}function Fe(a){return a<0?0:a>255?255:Math.round(a)}function wt(a){const{r:y,g:b,b:E}=a;let ee=((1<<24)+(Fe(y)<<16)+(Fe(b)<<8)+Fe(E)).toString(16).slice(1);return ee[0]===ee[1]&&ee[2]===ee[3]&&ee[4]===ee[5]&&ee[6]===ee[7]&&(ee=ee[0]+ee[2]+ee[4]),"#"+ee}function Mt(a){let{r:y,g:b,b:E}=a;y=y/255,b=b/255,E=E/255;const ee=Math.min(y,b,E),ie=Math.max(y,b,E),oe=ie-ee;let fe,me;ie===ee?fe=0:y===ie?fe=(b-E)/oe:b===ie?fe=2+(E-y)/oe:E===ie&&(fe=4+(y-b)/oe),fe=Math.min(fe*60,360),fe<0&&(fe+=360);const be=(ee+ie)/2;return ie===ee?me=0:be<=.5?me=oe/(ie+ee):me=oe/(2-ie-ee),{h:fe,s:me,l:be}}function jt(a){let y=pt(a);if(!y)return a;let{h:b,s:E,l:ee}=Mt(y);return E+=.1,ee-=.1,wt(Qe({h:b,s:E,l:ee}))}var Re={60:"\\lt",62:"\\gt",111:"o",38:"\\&",123:"\\lbrace",125:"\\rbrace",91:"\\lbrack",93:"\\rbrack",58:"\\colon",160:"~",172:"\\neg",183:"\\cdot",188:"\\frac{1}{4}",189:"\\frac{1}{2}",190:"\\frac{3}{4}",8304:"^{0}",8305:"^{i}",185:"^{1}",178:"^{2}",179:"^{3}",8224:"\\dagger",8225:"\\ddagger",8230:"\\ldots",8308:"^{4}",8309:"^{5}",8310:"^{6}",8311:"^{7}",8312:"^{8}",8313:"^{9}",8314:"^{+}",8315:"^{-}",8316:"^{=}",8319:"^{n}",8320:"_{0}",8321:"_{1}",8322:"_{2}",8323:"_{3}",8324:"_{4}",8325:"_{5}",8326:"_{6}",8327:"_{7}",8328:"_{8}",8329:"_{9}",8330:"_{+}",8331:"_{-}",8332:"_{=}",8336:"_{a}",8337:"_{e}",8338:"_{o}",8339:"_{x}",8242:"\\prime",39:"\\prime",8592:"\\gets",8594:"\\to",9651:"\\triangle",9661:"\\triangledown",8715:"\\owns",8727:"\\ast",8739:"\\vert",8741:"\\Vert",8743:"\\land",8744:"\\lor",8901:"\\cdot",8904:"\\bowtie",8800:"\\ne",8804:"\\le",8805:"\\ge",8869:"\\bot",10231:"\\biconditional",10232:"\\impliedby",10233:"\\implies",10234:"\\iff",8450:"\\mathbb{C}",8469:"\\mathbb{N}",8473:"\\mathbb{P}",8474:"\\mathbb{Q}",8477:"\\mathbb{R}",8484:"\\mathbb{Z}",8461:"\\mathbb{H}",8476:"\\Re",8465:"\\Im",42:"\\ast",11036:"\\square",9633:"\\square",8720:"\\coprod",8716:"\\not\\ni",9671:"\\diamond",8846:"\\uplus",8851:"\\sqcap",8852:"\\sqcup",8768:"\\wr",8750:"\\oint",8226:"\\textbullet",8722:"-",978:"\\Upsilon"},Le={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},Nt=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function Rt(a,y,b){if(!/[A-Za-z\d]/.test(a)||(b==="up"&&(b=void 0),!y&&!b))return a;const E=a.codePointAt(0);if(E===void 0)return a;for(const ee of Nt)if((!y||ee.variant===y)&&(!b||ee.style===b)&&E>=ee.offset&&E<ee.offset+ee.len){const ie=ee.start+E-ee.offset;return String.fromCodePoint(Le[ie]||ie)}return a}function Yt(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in Le)if(Le[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of Nt)if(a>=b.start&&a<b.start+b.len)return{char:String.fromCodePoint(a-b.start+b.offset),variant:b.variant,style:b.style};return{char:String.fromCodePoint(a)}}function vt(a){var y;let b="";for(const E of a){if("{}<>[]$&#^_%:'\u02DC".includes(E)){b+=E;continue}const ee=(y=E.codePointAt(0))!=null?y:0;let ie=Re[ee];if(ie)ie.startsWith("\\")?b+=ie+" ":b+=ie;else{const{char:oe,variant:fe,style:me}=Yt(ee);switch(ie=oe,fe){case"double-struck":ie=`\\mathbb{${ie}}`;break;case"fraktur":ie=`\\mathfrak{${ie}}`;break;case"script":ie=`\\mathscr{${ie}}`;break;case"sans-serif":ie=`\\mathsf{${ie}}`;break;case"monospace":ie=`\\mathtt{${ie}}`;break;case"calligraphic":ie=`\\mathcal{${ie}}`;break}switch(me){case"bold":ie=`\\mathbf{${ie}}`;break;case"italic":ie=`\\mathit{${ie}}`;break;case"bolditalic":ie=`\\mathbfit{${ie}}`;break}b+=ie}}return b}function nt(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var Vt={},un=Ee({},Re),Ut={},fn={},en={darr:"\\downarrow",dArr:"\\Downarrow",Darr:"\\Downarrow",lang:"\\langle",rang:"\\rangle",uarr:"\\uparrow",uArr:"\\Uparrow",Uarr:"\\Uparrow",N:"\\mathbb{N}",R:"\\mathbb{R}",Z:"\\mathbb{Z}",alef:"\\aleph",alefsym:"\\aleph",Alpha:"\\mathrm{A}",Beta:"\\mathrm{B}",bull:"\\bullet",Chi:"\\mathrm{X}",clubs:"\\clubsuit",cnums:"\\mathbb{C}",Complex:"\\mathbb{C}",Dagger:"\\ddagger",diamonds:"\\diamondsuit",empty:"\\emptyset",Epsilon:"\\mathrm{E}",Eta:"\\mathrm{H}",exist:"\\exists",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",Harr:"\\Leftrightarrow",hearts:"\\heartsuit",image:"\\Im",infin:"\\infty",Iota:"\\mathrm{I}",isin:"\\in",Kappa:"\\mathrm{K}",larr:"\\leftarrow",lArr:"\\Leftarrow",Larr:"\\Leftarrow",lrarr:"\\leftrightarrow",lrArr:"\\Leftrightarrow",Lrarr:"\\Leftrightarrow",Mu:"\\mathrm{M}",natnums:"\\mathbb{N}",Nu:"\\mathrm{N}",Omicron:"\\mathrm{O}",plusmn:"\\pm",rarr:"\\rightarrow",rArr:"\\Rightarrow",Rarr:"\\Rightarrow",real:"\\Re",reals:"\\mathbb{R}",Reals:"\\mathbb{R}",Rho:"\\mathrm{P}",sdot:"\\cdot",sect:"\\S",spades:"\\spadesuit",sub:"\\subset",sube:"\\subseteq",supe:"\\supseteq",Tau:"\\mathrm{T}",thetasym:"\\vartheta",weierp:"\\wp",Zeta:"\\mathrm{Z}"},En={varGamma:"\\mathit{\\Gamma}",varDelta:"\\mathit{\\Delta}",varTheta:"\\mathit{\\Theta}",varLambda:"\\mathit{\\Lambda}",varXi:"\\mathit{\\Xi}",varPi:"\\mathit{\\Pi}",varSigma:"\\mathit{\\Sigma}",varUpsilon:"\\mathit{\\Upsilon}",varPhi:"\\mathit{\\Phi}",varPsi:"\\mathit{\\Psi}",varOmega:"\\mathit{\\Omega}",pmod:{def:"\\quad(\\operatorname{mod}\\ #1)",args:1,expand:!1,captureSelection:!1},mod:{def:"\\quad\\operatorname{mod}\\,\\,#1",args:1,expand:!1},bmod:{def:"\\;\\mathbin{\\operatorname{mod }}",expand:!1}},_n={bra:{def:"\\mathinner{\\langle{#1}|}",args:1,captureSelection:!1},ket:{def:"\\mathinner{|{#1}\\rangle}",args:1,captureSelection:!1},braket:{def:"\\mathinner{\\langle{#1}\\rangle}",args:1,captureSelection:!1},set:{def:"\\mathinner{\\lbrace #1 \\rbrace}",args:1,captureSelection:!1},Bra:{def:"\\left\\langle #1\\right|",args:1,captureSelection:!1},Ket:{def:"\\left|#1\\right\\rangle",args:1,captureSelection:!1},Braket:{def:"\\left\\langle{#1}\\right\\rangle",args:1,captureSelection:!1},Set:{def:"\\left\\lbrace #1 \\right\\rbrace",args:1,captureSelection:!1}},Ce={iff:{primitive:!0,captureSelection:!0,def:"\\;\u27FA\\;"},nicefrac:"^{#1}\\!\\!/\\!_{#2}",phase:{def:"\\enclose{phasorangle}{#1}",args:1,captureSelection:!1},rd:"\\mathrm{d}",rD:"\\mathrm{D}",doubleStruckCapitalN:"\\mathbb{N}",doubleStruckCapitalR:"\\mathbb{R}",doubleStruckCapitalQ:"\\mathbb{Q}",doubleStruckCapitalZ:"\\mathbb{Z}",doubleStruckCapitalP:"\\mathbb{P}",scriptCapitalE:"\\mathscr{E}",scriptCapitalH:"\\mathscr{H}",scriptCapitalL:"\\mathscr{L}",gothicCapitalC:"\\mathfrak{C}",gothicCapitalH:"\\mathfrak{H}",gothicCapitalI:"\\mathfrak{I}",gothicCapitalR:"\\mathfrak{R}",imaginaryI:"\\mathrm{i}",imaginaryJ:"\\mathrm{j}",exponentialE:"\\mathrm{e}",differentialD:"\\mathrm{d}",capitalDifferentialD:"\\mathrm{D}",mathstrut:{def:"\\vphantom{(}",primitive:!0},angl:"\\enclose{actuarial}{#1}",angln:"\\enclose{actuarial}{n}",anglr:"\\enclose{actuarial}{r}",anglk:"\\enclose{actuarial}{k}",mathtools:{primitive:!0,package:{ordinarycolon:":",vcentcolon:"\\mathrel{\\mathop\\ordinarycolon}",dblcolon:'{\\mathop{\\char"2237}}',coloneqq:'{\\mathop{\\char"2254}}',Coloneqq:'{\\mathop{\\char"2237\\char"3D}}',coloneq:'{\\mathop{\\char"3A\\char"2212}}',Coloneq:'{\\mathop{\\char"2237\\char"2212}}',eqqcolon:'{\\mathop{\\char"2255}}',Eqqcolon:'{\\mathop{\\char"3D\\char"2237}}',eqcolon:'{\\mathop{\\char"2239}}',Eqcolon:'{\\mathop{\\char"2212\\char"2237}}',colonapprox:'{\\mathop{\\char"003A\\char"2248}}',Colonapprox:'{\\mathop{\\char"2237\\char"2248}}',colonsim:'{\\mathop{\\char"3A\\char"223C}}',Colonsim:'{\\mathop{\\char"2237\\char"223C}}',colondash:"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",Colondash:"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}"}},ratio:"\\vcentcolon",coloncolon:"\\dblcolon",colonequals:"\\coloneq",coloncolonequals:"\\Coloneq",equalscolon:"\\eqcolon",equalscoloncolon:"\\Eqcolon",colonminus:"\\colondash",coloncolonminus:"\\Colondash",minuscolon:"\\dashcolon",minuscoloncolon:"\\Dashcolon",coloncolonapprox:"\\Colonapprox",coloncolonsim:"\\Colonsim",simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",simcoloncolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcoloncolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",notni:"\\mathrel{\\char`\u220C}",limsup:"\\operatorname*{lim\\,sup}",liminf:"\\operatorname*{lim\\,inf}",injlim:"\\operatorname*{inj\\,lim}",projlim:"\\operatorname*{proj\\,lim}",varlimsup:"\\operatorname*{\\overline{lim}}",varliminf:"\\operatorname*{\\underline{lim}}",varinjlim:"\\operatorname*{\\underrightarrow{lim}}",varprojlim:"\\operatorname*{\\underleftarrow{lim}}",argmin:"\\operatorname*{arg\\,min}",argmax:"\\operatorname*{arg\\,max}",plim:"\\mathop{\\operatorname{plim}}\\limits",tripledash:{def:"\\vphantom{-}\\raise{4mu}{\\mkern1.5mu\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2mu}}",expand:!0},"braket.sty":{package:_n},"amsmath.sty":{package:En,primitive:!0},"texvc.sty":{package:en,primitive:!1}},se={" ":32,"\\!":33,"\\#":35,"\\$":36,"\\%":37,"\\&":38,"-":45,"\\textunderscore":95,"\\euro":8364,"\\maltese":10016,"\\{":123,"\\}":125,"\\textbraceleft":123,"\\textbraceright":125,"\\lbrace":123,"\\rbrace":125,"\\lbrack":91,"\\rbrack":93,"\\nobreakspace":160,"\\ldots":8230,"\\textellipsis":8230,"\\backslash":92,"`":8216,"'":8217,"``":8220,"''":8221,"\\degree":176,"\\textasciicircum":94,"\\textasciitilde":126,"\\textasteriskcentered":42,"\\textbackslash":92,"\\textbullet":8226,"\\textdollar":36,"\\textsterling":163,"\\textdagger":8224,"\\textdaggerdbl":8225,"\u2013":8211,"\u2014":8212,"\u2018":8216,"\u2019":8217,"\u201C":8220,"\u201D":8221,'"':8221,"\\ss":223,"\\ae":230,"\\oe":339,"\\AE":198,"\\OE":338,"\\O":216,"\\i":305,"\\j":567,"\\aa":229,"\\AA":197},ue=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,ge,pe;Je()?(ge=new RegExp("\\p{Letter}","u"),pe=new RegExp("[0-9\\p{Letter}]","u")):(ge=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,pe=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function le(a,y,b="mord",E){y!==void 0&&(Vt[a]={definitionType:"symbol",type:b,variant:E,codepoint:y},un[y]||(un[y]=a))}function ze(a,y,b){if(typeof a=="string"){for(let E=0;E<a.length;E++){const ee=a.charAt(E);le(ee,ee.codePointAt(0))}return}for(const[E,ee,ie,oe]of a)le(E,ee,ie!=null?ie:y,oe!=null?oe:b)}function bt(a,y){for(let b=a;b<=y;b++)le(String.fromCodePoint(b),b)}function Pt(a){var y;return(y=fn[a])!=null?y:null}function mn(a,y){var b,E;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ee=[];for(const oe in Ut)oe.startsWith(y)&&!Ut[oe].infix&&ee.push({match:oe,frequency:(b=Ut[oe].frequency)!=null?b:0});for(const oe in Vt)oe.startsWith(y)&&ee.push({match:oe,frequency:(E=Vt[oe].frequency)!=null?E:0});const ie=y.substring(1);for(const oe of Object.keys(a.options.macros))oe.startsWith(ie)&&ee.push({match:"\\"+oe,frequency:0});return ee.sort((oe,fe)=>{var me,be;return oe.frequency===fe.frequency?oe.match.length===fe.match.length?oe.match<fe.match?-1:1:oe.match.length-fe.match.length:((me=fe.frequency)!=null?me:0)-((be=oe.frequency)!=null?be:0)}),ee.map(oe=>oe.match)}function ln(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function Xt(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:ln(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...Xt(b[E]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:ln(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...Xt(b[E]))}return y}function Kt(a){if(!a)return"";let y="",b=!0;for(const E of a)typeof E.value=="string"?y+=E.value:b=!1;return b?y:""}function sr(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const E of a)fn[E]=b}function mr(a,y,b){typeof a=="string"&&(a=[a]);const ee={tabular:!0,params:Xt(y),createAtom:b};for(const ie of a)fn[ie]=ee}function Gt(a,y,b){var E,ee;b||(b={});const ie={definitionType:"function",params:Xt(y),ifMode:b.ifMode,isFunction:(E=b.isFunction)!=null?E:!1,applyMode:b.applyMode,infix:(ee=b.infix)!=null?ee:!1,parse:b.parse,createAtom:b.createAtom,applyStyle:b.applyStyle,serialize:b.serialize,render:b.render};if(typeof a=="string")Ut["\\"+a]=ie;else for(const oe of a)Ut["\\"+oe]=ie}var rn;function Jr(a){return rn||(rn=xr(Ce)),a?xr(Ee(Ee({},rn),a)):rn}function _r(a,y){var b,E,ee,ie;if(typeof a=="string"){let oe=0;const fe=a;return/(^|[^\\])#1/.test(fe)&&(oe=1),/(^|[^\\])#2/.test(fe)&&(oe=2),/(^|[^\\])#3/.test(fe)&&(oe=3),/(^|[^\\])#4/.test(fe)&&(oe=4),/(^|[^\\])#5/.test(fe)&&(oe=5),/(^|[^\\])#6/.test(fe)&&(oe=6),/(^|[^\\])#7/.test(fe)&&(oe=7),/(^|[^\\])#8/.test(fe)&&(oe=8),/(^|[^\\])#9/.test(fe)&&(oe=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(E=y==null?void 0:y.captureSelection)!=null?E:!0,args:oe,def:fe}}return Ee({expand:(ee=y==null?void 0:y.expand)!=null?ee:!0,captureSelection:(ie=y==null?void 0:y.captureSelection)!=null?ie:!0,args:0},a)}function xr(a){if(!a)return{};const y={};for(const b of Object.keys(a)){const E=a[b];if(E==null)delete y[b];else if(typeof E=="object"&&"package"in E)for(const ee of Object.keys(E.package))y[ee]=_r(E.package[ee],{expand:!E.primitive,captureSelection:E.captureSelection});else y[b]=_r(E)}return y}function wr(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=Ut[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=Vt[a]:se[a]&&(b={definitionType:"symbol",type:"mord",codepoint:se[a]})}else if(y==="math"){if(b=Vt[a],!b&&a.length===1){const E=Ir("math",a.codePointAt(0));return E.startsWith("\\")?ye(Ee({},wr(E,"math")),{command:E}):null}}else se[a]?b={definitionType:"symbol",type:"mord",codepoint:se[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function Ji(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function Ir(a,y){if(y===void 0)return"";if(a==="math"&&un[y])return un[y];if(a==="text"){const b=Object.keys(se).find(E=>se[E]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var Wr=[0,.68889,0,0,.72222],Tr=[0,.68889,0,0,.66667],si=[0,.68889,0,0,.77778],pi=[0,.68889,0,0,.61111],Wi=[.16667,.68889,0,0,.77778],bi=[0,.68889,0,0,.55556],kr=[0,0,0,0,.25],an=[0,.825,0,0,2.33334],Nn=[0,.9,0,0,2.33334],On=[0,.68889,0,0,.54028],Dn=[-.03598,.46402,0,0,.5],Mr=[-.13313,.36687,0,0,1],vn=[.01354,.52239,0,0,1],Vn=[.01354,.52239,0,0,1.11111],Xr=[0,.54986,0,0,1],fi=[0,.69224,0,0,.5],er=[0,.43056,0,0,1],ia=[.08198,.58198,0,0,.77778],Gi=[.19444,.69224,0,0,.41667],Br=[.1808,.675,0,0,1],lr=[.19444,.69224,0,0,.83334],qr=[.13667,.63667,0,0,1],xa=[-.064,.437,0,0,1.334],vi=[.08167,.58167,0,0,.77778],ca=[0,.69224,0,0,.72222],li=[0,.69224,0,0,.66667],wi=[-.13313,.36687,0,0,.77778],Li=[.06062,.54986,0,0,.77778],oi=[0,.69224,0,0,.77778],ir=[.25583,.75583,0,0,.77778],Aa=[.25142,.75726,0,0,.77778],Ka=[.20576,.70576,0,0,.77778],Ca=[.30274,.79383,0,0,.77778],va=[.22958,.72958,0,0,.77778],mo=[.1808,.675,0,0,.77778],ja=[.13667,.63667,0,0,.77778],wa=[.13597,.63597,0,0,.77778],Qn=[.03517,.54986,0,0,.77778],Ri=[0,.675,0,0,.77778],Ms=[.19444,.69224,0,0,.61111],ms=[0,.54986,0,0,.76042],Oo=[0,.54986,0,0,.66667],io=[.0391,.5391,0,0,.77778],rl=[.03517,.54986,0,0,1.33334],ma=[.38569,.88569,0,0,.77778],il=[.23222,.74111,0,0,.77778],zn=[.19444,.69224,0,0,.77778],wo=[0,.37788,0,0,.5],Ro=[0,.54986,0,0,.72222],_s=[0,.69224,0,0,.83334],gs=[.11111,.69224,0,0,.66667],Uo=[.26167,.75726,0,0,.77778],is=[.48256,.98256,0,0,.77778],Ks=[.28481,.79383,0,0,.77778],Eo=[.08167,.58167,0,0,.22222],jo=[.08167,.58167,0,0,.38889],Oa=[0,.43056,.04028,0,.66667],$o=[.41951,.91951,0,0,.77778],Bl=[.24982,.74947,0,0,.38865],vs=[.08319,.58283,0,0,.75623],al=[0,.10803,0,0,.27764],es=[0,.47534,0,0,.50181],$a=[.18906,.47534,0,0,.50181],Bs=[0,.69141,0,0,.50181],Xs=[.24982,.74947,0,0,.27764],as=[0,.69141,0,0,.21471],pl=[.25,.75,0,0,.44722],os=[0,.64444,0,0,.575],ss=[.08556,.58556,0,0,.89444],Hs=[0,.69444,0,0,.89444],qs=[0,.68611,0,0,.9],Ga=[0,.68611,0,0,.86944],ls=[.25,.75,0,0,.575],Wo=[.25,.75,0,0,.31944],ys=[0,.69444,0,0,.63889],Ds=[0,.69444,0,0,.31944],Fs=[0,.44444,0,0,.63889],bs=[0,.44444,0,0,.51111],Go=[0,.69444,0,0,.575],Te=[.13333,.63333,0,0,.89444],Ue=[0,.44444,0,0,.31944],tn=[0,.69444,0,0,.86944],we=[0,.68611,0,0,.69166],ht=[0,.68611,0,0,.83055],St=[0,.68611,0,0,.89444],Qt=[0,.69444,0,0,.60278],Dt=[.19444,.69444,0,0,.51111],Cn=[0,.69444,0,0,.83055],Ln=[-.10889,.39111,0,0,1.14999],Mn=[.19444,.69444,0,0,.575],gn=[.19444,.69444,0,0,1.14999],Jt=[.19444,.69444,0,0,.70277],bn=[.05556,.75,0,0,.575],An=[0,.68611,0,0,.95833],Bn=[.08556,.58556,0,0,.76666],zr=[-.02639,.47361,0,0,.575],ei=[0,.44444,0,0,.89444],_i=[0,.55556,0,0,.76666],Mi=[-.10889,.39111,0,0,.89444],ta=[.00222,.50222,0,0,.89444],la=[.19667,.69667,0,0,.89444],Ta=[.08556,.58556,0,0,1.14999],Ma=[0,.69444,0,0,.70277],Wa=[-.02778,.47222,0,0,.575],Sa=[.25,.75,0,0,.51111],Ja=[-.13889,.36111,0,0,1.14999],ao=[.19444,.69444,0,0,1.02222],zt=[.12963,.69444,0,0,.89444],Wt=[.19444,.69444,0,0,.44722],qt=[0,.64444,.13167,0,.59111],Fn=[.19444,.64444,.13167,0,.59111],Gr=[0,.68611,.17208,0,.8961],Ti=[.19444,.44444,.105,0,.53222],In=[0,.44444,.085,0,.82666],Ar=[0,.69444,.06709,0,.59111],ci=[0,.69444,.12945,0,.35555],Ki=[0,.69444,0,0,.94888],Lr=[0,.69444,.11472,0,.59111],nr=[0,.68611,.10778,0,.88555],Pi=[0,.69444,.07939,0,.62055],ua=[0,.69444,.12417,0,.30667],pa=[0,.64444,.13556,0,.51111],mi=[.19444,.64444,.13556,0,.51111],ri=[0,.68333,.16389,0,.74333],Na=[.19444,.43056,.08847,0,.46],Ba=[0,.43056,.07514,0,.71555],oo=[0,.69444,.06646,0,.51111],Qo=[0,.69444,0,0,.83129],js=[0,.69444,.1225,0,.51111],us=[0,.68333,.09403,0,.76666],ml=[0,.68333,.11111,0,.76666],so=[0,.69444,.06961,0,.51444],Yo=[0,.69444,0,0,.27778],vo=[.25,.75,0,0,.38889],co=[0,.64444,0,0,.5],Ls=[0,.69444,0,0,.77778],zs=[0,.68333,0,0,.75],Yi=[0,.68333,0,0,.77778],_o=[0,.68333,0,0,.68056],Ts=[0,.68333,0,0,.72222],cs=[.25,.75,0,0,.5],$s=[.25,.75,0,0,.27778],Ha=[0,.69444,0,0,.5],El=[0,.69444,0,0,.55556],Gs=[0,.43056,0,0,.44445],gl=[0,.43056,0,0,.5],hu=[.19444,.43056,0,0,.55556],pu=[0,.43056,0,0,.55556],Ps=[.08333,.58333,0,0,.77778],mu=[0,.43056,0,0,.27778],Cl=[0,.66786,0,0,.27778],Gl=[0,.69444,0,0,.75],Ql=[0,.66786,0,0,.5],zl=[0,.68333,0,0,.625],Wl=[.19444,.69444,0,0,.44445],Zl=[0,.69444,0,0,.72222],nu=[.19444,.69444,0,0,.5],Ws=[.19444,.69444,0,0,1],Yl=[.011,.511,0,0,1.126],Sl=[.19444,.69444,0,0,.61111],Dl=[.05556,.75,0,0,.5],ru=[0,.68333,0,0,.83334],iu=[.0391,.5391,0,0,.66667],gu=[-.05555,.44445,0,0,.5],Pu=[0,.43056,0,0,.77778],Nl=[0,.55556,0,0,.66667],au=[-.03625,.46375,0,0,.77778],ol=[-.01688,.48312,0,0,.77778],Vl=[.0391,.5391,0,0,1],Qs=[0,.69444,0,0,.61111],Al=[-.03472,.46528,0,0,.5],Il=[.25,.75,0,0,.44445],Jl=[-.14236,.35764,0,0,1],Ol=[.244,.744,0,0,.412],Fl=[.19444,.69444,0,0,.88889],lo=[.12963,.69444,0,0,.77778],Ea=[.19444,.69444,0,0,.38889],Co=[.011,.511,0,0,1.638],Do=[.19444,.69444,0,0,0],Be=[0,.44444,0,0,.575],Ie=[.19444,.44444,0,0,.575],Ct=[0,.68611,0,0,.75555],Et=[0,.69444,0,0,.66759],$t=[0,.68611,0,0,.80555],hn=[0,.68611,.08229,0,.98229],kn=[0,.68611,0,0,.76666],Jn=[0,.44444,0,0,.58472],$n=[.19444,.44444,0,0,.6118],ur=[.19444,.43056,0,0,.5],$r=[0,.68333,.02778,.08334,.76278],Sr=[0,.68333,.08125,.05556,.83125],ii=[0,.43056,0,.05556,.48472],yr=[.19444,.43056,0,.08334,.51702],Ur=[.25,.75,0,0,.42778],Pr=[0,.69444,0,0,.55],ai=[0,.69444,0,0,.73334],Ei=[0,.69444,0,0,.79445],Ae=[0,.69444,0,0,.51945],Oe=[0,.69444,0,0,.70278],dt=[0,.69444,0,0,.76389],Se=[.25,.75,0,0,.34306],at=[0,.69444,0,0,.56111],mt=[0,.69444,0,0,.25556],Bt=[.19444,.45833,0,0,.56111],Ge=[0,.45833,0,0,.56111],ot=[0,.69444,0,0,.30556],ut=[0,.69444,0,0,.58056],It=[0,.69444,0,0,.67223],Zt=[0,.69444,0,0,.85556],nn=[0,.69444,0,0,.55834],Ht=[0,.65556,.11156,0,.5],on=[0,.69444,.08094,0,.70834],wn=[.17014,0,0,0,.44445],Tn=[0,.69444,.0799,0,.5],dn=[0,.69444,0,0,.73752],Xn=[0,.69444,.09205,0,.5],Pn=[0,.69444,.09031,0,.77778],Wn=[0,.69444,.07816,0,.27778],ar=[0,.69444,.00316,0,.5],Rn=[.19444,.69444,0,0,.83334],br=[.05556,.75,0,0,.83334],gr=[0,.75,0,0,.5],rr=[.125,.08333,0,0,.27778],Yn=[0,.08333,0,0,.27778],Kn=[0,.65556,0,0,.5],dr=[0,.69444,0,0,.47222],Gn=[0,.69444,0,0,.66667],hr=[0,.69444,0,0,.59722],vr=[0,.69444,0,0,.54167],fr=[0,.69444,0,0,.70834],qn=[.25,.75,0,0,.28889],Or=[0,.69444,0,0,.51667],Vr=[0,.44444,0,0,.44445],Vi=[.19444,.44444,0,0,.51667],Ni=[0,.44444,0,0,.38333],Ii=[0,.44444,0,0,.51667],na=[0,.69444,0,0,.83334],Ci=[.35001,.85,0,0,.45834],ya=[.35001,.85,0,0,.57778],Ia=[.35001,.85,0,0,.41667],Qr=[.35001,.85,0,0,.58334],Er=[0,.72222,0,0,.55556],hi=[1e-5,.6,0,0,.66667],Oi=[1e-5,.6,0,0,.77778],gi=[.25001,.75,0,0,.94445],Xi=[.306,.805,.19445,0,.47222],yi=[.30612,.805,.19445,0,.47222],Zi=[.25001,.75,0,0,.83334],da=[.35001,.85,0,0,.47222],Da=[.25001,.75,0,0,1.11111],Ra=[.65002,1.15,0,0,.59722],Hi=[.65002,1.15,0,0,.81111],Ai=[.65002,1.15,0,0,.47222],ba=[.65002,1.15,0,0,.66667],fa=[0,.75,0,0,1],aa=[.55001,1.05,0,0,1.27778],qi=[.862,1.36,.44445,0,.55556],Yr=[.86225,1.36,.44445,0,.55556],Si=[.55001,1.05,0,0,1.11111],oa=[.65002,1.15,0,0,.52778],$i=[.65002,1.15,0,0,.61111],Fa=[.55001,1.05,0,0,1.51112],ti=[.95003,1.45,0,0,.73611],Un=[.95003,1.45,0,0,1.04445],Dr=[.95003,1.45,0,0,.52778],Hr=[.95003,1.45,0,0,.75],or=[0,.75,0,0,1.44445],zi=[.95003,1.45,0,0,.58334],ga=[1.25003,1.75,0,0,.79167],eo=[1.25003,1.75,0,0,1.27778],Qa=[1.25003,1.75,0,0,.58334],go=[1.25003,1.75,0,0,.80556],to=[0,.825,0,0,1.8889],ts=[1.25003,1.75,0,0,.63889],Jo=[.64502,1.155,0,0,.875],Ko=[1e-5,.6,0,0,.875],xs=[-99e-5,.601,0,0,.66667],Ns=[.64502,1.155,0,0,.66667],ws=[1e-5,.9,0,0,.88889],vl=[.65002,1.15,0,0,.88889],ea=[.90001,0,0,0,.88889],Rr=[-.00499,.605,0,0,1.05556],Bi=[0,.12,0,0,.45],Hn=[0,.61111,0,0,.525],Ui=[.08333,.69444,0,0,.525],yo=[-.08056,.53055,0,0,.525],fo=[-.05556,.55556,0,0,.525],So=[0,.43056,0,0,.525],uo=[.22222,.43056,0,0,.525],el=[0,0,0,0,.525],ds={"AMS-Regular":{32:kr,65:Wr,66:Tr,67:Wr,68:Wr,69:Tr,70:pi,71:si,72:si,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:si,76:Tr,77:[0,.68889,0,0,.94445],78:Wr,79:Wi,80:pi,81:Wi,82:Wr,83:bi,84:Tr,85:Wr,86:Wr,87:[0,.68889,0,0,1],88:Wr,89:Wr,90:Tr,107:bi,160:kr,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:bi,295:On,710:an,732:Nn,770:an,771:Nn,989:vi,1008:Oa,8245:[0,.54986,0,0,.275],8463:On,8487:Wr,8498:bi,8502:Tr,8503:[0,.68889,0,0,.44445],8504:Tr,8513:[0,.68889,0,0,.63889],8592:Dn,8594:Dn,8602:Mr,8603:Mr,8606:vn,8608:vn,8610:Vn,8611:Vn,8619:Xr,8620:Xr,8621:[-.13313,.37788,0,0,1.38889],8622:Mr,8624:fi,8625:fi,8630:er,8631:er,8634:ia,8635:ia,8638:Gi,8639:Gi,8642:Gi,8643:Gi,8644:Br,8646:Br,8647:Br,8648:lr,8649:Br,8650:lr,8651:vn,8652:vn,8653:Mr,8654:Mr,8655:Mr,8666:qr,8667:qr,8669:[-.13313,.37788,0,0,1],8672:xa,8674:xa,8705:[0,.825,0,0,.5],8708:bi,8709:vi,8717:[0,.43056,0,0,.42917],8722:Dn,8724:[.08198,.69224,0,0,.77778],8726:vi,8733:oi,8736:ca,8737:ca,8738:[.03517,.52239,0,0,.72222],8739:Eo,8740:[.25142,.74111,0,0,.27778],8741:jo,8742:[.25142,.74111,0,0,.5],8756:li,8757:li,8764:wi,8765:[-.13313,.37788,0,0,.77778],8769:wi,8770:au,8774:Ca,8776:ol,8778:vi,8782:Li,8783:Li,8785:ia,8786:ia,8787:ia,8790:oi,8791:va,8796:[.08198,.91667,0,0,.77778],8806:ir,8807:ir,8808:Aa,8809:Aa,8812:[.25583,.75583,0,0,.5],8814:Ka,8815:Ka,8816:Ca,8817:Ca,8818:va,8819:va,8822:mo,8823:mo,8828:ja,8829:ja,8830:va,8831:va,8832:Ka,8833:Ka,8840:Ca,8841:Ca,8842:wa,8843:wa,8847:Qn,8848:Qn,8858:ia,8859:ia,8861:ia,8862:Ri,8863:Ri,8864:Ri,8865:Ri,8872:[0,.69224,0,0,.61111],8873:ca,8874:[0,.69224,0,0,.88889],8876:pi,8877:pi,8878:Wr,8879:Wr,8882:Qn,8883:Qn,8884:ja,8885:ja,8888:[0,.54986,0,0,1.11111],8890:hu,8891:Ms,8892:Ms,8901:[0,.54986,0,0,.27778],8903:vi,8905:vi,8906:vi,8907:oi,8908:oi,8909:[-.03598,.46402,0,0,.77778],8910:ms,8911:ms,8912:Qn,8913:Qn,8914:Oo,8915:Oo,8916:li,8918:io,8919:io,8920:rl,8921:rl,8922:ma,8923:ma,8926:ja,8927:ja,8928:Ca,8929:Ca,8934:il,8935:il,8936:il,8937:il,8938:Ka,8939:Ka,8940:Ca,8941:Ca,8994:zn,8995:zn,9416:[.15559,.69224,0,0,.90222],9484:fi,9488:fi,9492:wo,9496:wo,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:Ri,9633:Ri,9650:Ro,9651:Ro,9654:Qn,9660:Ro,9661:Ro,9664:Qn,9674:gs,9733:[.19444,.69224,0,0,.94445],10003:_s,10016:_s,10731:gs,10846:[.19444,.75583,0,0,.61111],10877:ja,10878:ja,10885:ir,10886:ir,10887:wa,10888:wa,10889:Uo,10890:Uo,10891:is,10892:is,10901:ja,10902:ja,10933:Aa,10934:Aa,10935:Uo,10936:Uo,10937:Uo,10938:Uo,10949:ir,10950:ir,10955:Ks,10956:Ks,57350:Eo,57351:jo,57352:vi,57353:Oa,57356:Aa,57357:Aa,57358:$o,57359:Ca,57360:Ca,57361:$o,57366:Aa,57367:Aa,57368:Aa,57369:Aa,57370:wa,57371:wa},"Caligraphic-Regular":{32:kr,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:kr},"Fraktur-Regular":{32:kr,33:[0,.69141,0,0,.29574],34:as,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:Bl,41:Bl,42:[0,.62119,0,0,.27764],43:vs,44:al,45:vs,46:al,47:[.24982,.74947,0,0,.50181],48:es,49:es,50:es,51:$a,52:$a,53:$a,54:Bs,55:$a,56:Bs,57:$a,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:Xs,93:Xs,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:kr,8216:as,8217:as,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:kr,33:[0,.69444,0,0,.35],34:Qt,35:[.19444,.69444,0,0,.95833],36:bn,37:[.05556,.75,0,0,.95833],38:Hs,39:Ds,40:pl,41:pl,42:[0,.75,0,0,.575],43:Te,44:[.19444,.15556,0,0,.31944],45:Ni,46:[0,.15556,0,0,.31944],47:ls,48:os,49:os,50:os,51:os,52:os,53:os,54:os,55:os,56:os,57:os,58:Ue,59:[.19444,.44444,0,0,.31944],60:ss,61:Mi,62:ss,63:[0,.69444,0,0,.54305],64:Hs,65:Ga,66:[0,.68611,0,0,.81805],67:ht,68:[0,.68611,0,0,.88194],69:Ct,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:qs,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:we,77:[0,.68611,0,0,1.09166],78:qs,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:Ga,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Wo,92:ls,93:Wo,94:Go,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:ys,99:bs,100:ys,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:ys,105:Ds,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:Ds,109:[0,.44444,0,0,.95833],110:Fs,111:Be,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:Fs,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:bs,123:ls,124:Wo,125:ls,126:[.35,.34444,0,0,.575],160:kr,163:[0,.69444,0,0,.86853],168:Go,172:[0,.44444,0,0,.76666],176:tn,177:Te,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Te,216:[.04861,.73472,0,0,.89444],223:hr,230:[0,.44444,0,0,.83055],247:Te,248:[.09722,.54167,0,0,.575],305:Ue,338:[0,.68611,0,0,1.16944],339:ei,567:[.19444,.44444,0,0,.35139],710:Go,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Go,715:Go,728:Go,729:Ds,730:tn,732:Go,733:Go,915:we,916:An,920:St,923:$t,926:kn,928:qs,931:ht,933:St,934:ht,936:St,937:ht,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:Ds,8217:Ds,8220:Qt,8221:Qt,8224:Dt,8225:Dt,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:Et,8465:Cn,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:Cn,8501:Ma,8592:Ln,8593:Mn,8594:Ln,8595:Mn,8596:Ln,8597:ls,8598:gn,8599:gn,8600:gn,8601:gn,8636:Ln,8637:Ln,8640:Ln,8641:Ln,8656:Ln,8657:Jt,8658:Ln,8659:Jt,8660:Ln,8661:[.25,.75,0,0,.70277],8704:ys,8706:[0,.69444,.06389,0,.62847],8707:ys,8709:bn,8711:An,8712:Bn,8715:Bn,8722:Te,8723:Te,8725:ls,8726:ls,8727:Wa,8728:zr,8729:zr,8730:[.18,.82,0,0,.95833],8733:ei,8734:[0,.44444,0,0,1.14999],8736:ca,8739:Wo,8741:ls,8743:_i,8744:_i,8745:_i,8746:_i,8747:[.19444,.69444,.12778,0,.56875],8764:Mi,8768:[.19444,.69444,0,0,.31944],8771:ta,8776:[.02444,.52444,0,0,.89444],8781:ta,8801:ta,8804:la,8805:la,8810:Ta,8811:Ta,8826:ss,8827:ss,8834:ss,8835:ss,8838:la,8839:la,8846:_i,8849:la,8850:la,8851:_i,8852:_i,8853:Te,8854:Te,8855:Te,8856:Te,8857:Te,8866:Ma,8867:Ma,8868:Hs,8869:Hs,8900:zr,8901:[-.02639,.47361,0,0,.31944],8902:Wa,8968:Sa,8969:Sa,8970:Sa,8971:Sa,8994:Ja,8995:Ja,9651:ao,9657:Wa,9661:ao,9667:Wa,9711:gn,9824:zt,9825:zt,9826:zt,9827:zt,9837:[0,.75,0,0,.44722],9838:Wt,9839:Wt,10216:pl,10217:pl,10815:qs,10927:la,10928:la,57376:Do},"Main-BoldItalic":{32:kr,33:[0,.69444,.11417,0,.38611],34:Pi,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:ci,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:qt,49:qt,50:qt,51:qt,52:Fn,53:qt,54:qt,55:Fn,56:qt,57:qt,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Lr,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:Gr,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:Gr,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:Ar,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:Ti,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:Ti,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:kr,168:[0,.69444,.11473,0,.59111],176:Ki,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:In,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:In,567:[.19444,.44444,.04611,0,.385],710:Ar,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:ci,730:Ki,732:Lr,733:Lr,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:Gr,931:[0,.68611,.11431,0,.82666],933:nr,934:[0,.68611,.05632,0,.82666],936:nr,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:ci,8217:ci,8220:[0,.69444,.16772,0,.62055],8221:Pi},"Main-Italic":{32:kr,33:ua,34:so,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:ua,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:pa,49:pa,50:pa,51:pa,52:mi,53:pa,54:pa,55:mi,56:pa,57:pa,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:js,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:ri,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:ri,79:us,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:ri,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:oo,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:Na,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:Na,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:kr,168:[0,.66786,.10474,0,.51111],176:Qo,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:Ba,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:Ba,710:oo,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:Qo,732:[0,.66786,.11585,0,.51111],733:js,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:us,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:ri,931:[0,.68333,.12028,0,.71555],933:ml,934:[0,.68333,.05986,0,.71555],936:ml,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:ua,8217:ua,8220:[0,.69444,.1685,0,.51444],8221:so,8463:On},"Main-Regular":{32:kr,33:Yo,34:Ha,35:Rn,36:Dl,37:br,38:Ls,39:Yo,40:vo,41:vo,42:gr,43:Ps,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:cs,48:co,49:co,50:co,51:co,52:co,53:co,54:co,55:co,56:co,57:co,58:mu,59:[.19444,.43056,0,0,.27778],60:io,61:wi,62:io,63:dr,64:Ls,65:zs,66:[0,.68333,0,0,.70834],67:Ts,68:[0,.68333,0,0,.76389],69:_o,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:zs,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Yi,76:zl,77:[0,.68333,0,0,.91667],78:zs,79:Yi,80:_o,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:Ts,85:zs,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:zs,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:$s,92:cs,93:$s,94:Ha,95:[.31,.12056,.02778,0,.5],97:gl,98:El,99:Gs,100:El,101:Gs,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:El,105:Cl,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:Yo,109:[0,.43056,0,0,.83334],110:pu,111:gl,112:hu,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:pu,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:Gs,123:cs,124:$s,125:cs,126:[.35,.31786,0,0,.5],160:kr,163:[0,.69444,0,0,.76909],167:Wl,168:Ql,172:[0,.43056,0,0,.66667],176:Gl,177:Ps,182:Sl,184:wn,198:[0,.68333,0,0,.90278],215:Ps,216:[.04861,.73194,0,0,.77778],223:Ha,230:[0,.43056,0,0,.72222],247:Ps,248:[.09722,.52778,0,0,.5],305:mu,338:[0,.68333,0,0,1.01389],339:Pu,567:[.19444,.43056,0,0,.30556],710:Ha,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:Ha,715:Ha,728:Ha,729:Cl,730:Gl,732:Ql,733:Ha,915:zl,916:ru,920:Yi,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:zs,931:Ts,933:Yi,934:Ts,936:Yi,937:Ts,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:Yo,8217:Yo,8220:Ha,8221:Ha,8224:Wl,8225:Wl,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:On,8465:Zl,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Zl,8501:Qs,8592:Mr,8593:nu,8594:Mr,8595:nu,8596:Mr,8597:cs,8598:Ws,8599:Ws,8600:Ws,8601:Ws,8614:[.011,.511,0,0,1],8617:Yl,8618:Yl,8636:Mr,8637:Mr,8640:Mr,8641:Mr,8652:[.011,.671,0,0,1],8656:Mr,8657:Sl,8658:Mr,8659:Sl,8660:Mr,8661:[.25,.75,0,0,.61111],8704:El,8706:[0,.69444,.05556,.08334,.5309],8707:El,8709:Dl,8711:ru,8712:iu,8715:iu,8722:Ps,8723:Ps,8725:cs,8726:cs,8727:Al,8728:gu,8729:gu,8730:[.2,.8,0,0,.83334],8733:Pu,8734:er,8736:ca,8739:$s,8741:cs,8743:Nl,8744:Nl,8745:Nl,8746:Nl,8747:[.19444,.69444,.11111,0,.41667],8764:wi,8768:[.19444,.69444,0,0,.27778],8771:au,8773:[-.022,.589,0,0,1],8776:ol,8781:au,8784:[-.133,.67,0,0,.778],8801:au,8804:wa,8805:wa,8810:Vl,8811:Vl,8826:io,8827:io,8834:io,8835:io,8838:wa,8839:wa,8846:Nl,8849:wa,8850:wa,8851:Nl,8852:Nl,8853:Ps,8854:Ps,8855:Ps,8856:Ps,8857:Ps,8866:Qs,8867:Qs,8868:Ls,8869:Ls,8872:[.249,.75,0,0,.867],8900:gu,8901:[-.05555,.44445,0,0,.27778],8902:Al,8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:Il,8969:Il,8970:Il,8971:Il,8994:Jl,8995:Jl,9136:Ol,9137:Ol,9651:Fl,9657:Al,9661:Fl,9667:Al,9711:Ws,9824:lo,9825:lo,9826:lo,9827:lo,9837:[0,.75,0,0,.38889],9838:Ea,9839:Ea,10216:vo,10217:vo,10222:Ol,10223:Ol,10229:[.011,.511,0,0,1.609],10230:Co,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:Co,10815:zs,10927:wa,10928:wa,57376:Do},"Math-BoldItalic":{32:kr,48:Be,49:Be,50:Be,51:Ie,52:Ie,53:Ie,54:os,55:Ie,56:os,57:Ie,65:Ga,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:hn,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Ct,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:Et,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:Jn,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:kr,915:[0,.68611,.15972,0,.65694],916:An,920:[0,.68611,.03194,0,.86722],923:$t,926:[0,.68611,.07458,0,.84125],928:hn,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:kn,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:Jn,960:[0,.44444,.03704,0,.68241],961:$n,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:$n,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:kr,48:gl,49:gl,50:gl,51:ur,52:ur,53:ur,54:co,55:ur,56:co,57:ur,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:Sr,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:$r,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:ii,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:kr,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:$r,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Sr,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:ii,960:[0,.43056,.03588,0,.57003],961:yr,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:yr,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:kr,33:[0,.69444,0,0,.36667],34:nn,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:ot,40:Ur,41:Ur,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:Pr,49:Pr,50:Pr,51:Pr,52:Pr,53:Pr,54:Pr,55:Pr,56:Pr,57:Pr,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:Ae,64:ai,65:ai,66:ai,67:Oe,68:Ei,69:[0,.69444,0,0,.64167],70:Qs,71:ai,72:Ei,73:[0,.69444,0,0,.33056],74:Ae,75:dt,76:ut,77:[0,.69444,0,0,.97778],78:Ei,79:Ei,80:Oe,81:[.10556,.69444,0,0,.79445],82:Oe,83:Qs,84:ai,85:dt,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:ai,89:[0,.69444,.0275,0,.73334],90:It,91:Se,93:Se,94:Pr,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:at,99:[0,.45833,0,0,.48889],100:at,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:at,105:mt,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:mt,109:[0,.45833,0,0,.86667],110:Ge,111:[0,.45833,0,0,.55],112:Bt,113:Bt,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:Ge,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:kr,168:Pr,176:ai,180:Pr,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:Pr,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:Pr,729:ot,730:ai,732:Pr,733:Pr,915:ut,916:[0,.69444,0,0,.91667],920:Zt,923:It,926:ai,928:Ei,931:Ei,933:Zt,934:Ei,936:Zt,937:Ei,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:ot,8217:ot,8220:nn,8221:nn},"SansSerif-Italic":{32:kr,33:[0,.69444,.05733,0,.31945],34:ar,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:Wn,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:rr,45:[0,.44444,.01946,0,.33333],46:Yn,47:[.25,.75,.13164,0,.5],48:Ht,49:Ht,50:Ht,51:Ht,52:Ht,53:Ht,54:Ht,55:Ht,56:Ht,57:Ht,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:Gn,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:on,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:vr,77:[0,.69444,.08094,0,.875],78:on,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:Tn,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:kr,168:[0,.67937,.06385,0,.5],176:dn,184:wn,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Tn,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Xn,715:Ha,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:dn,732:[0,.67659,.08826,0,.5],733:Xn,915:[0,.69444,.13372,0,.54167],916:na,920:[0,.69444,.07555,0,.77778],923:Qs,926:[0,.69444,.12816,0,.66667],928:on,931:[0,.69444,.11983,0,.72222],933:Pn,934:[0,.69444,.04603,0,.72222],936:Pn,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:Wn,8217:Wn,8220:[0,.69444,.14205,0,.5],8221:ar},"SansSerif-Regular":{32:kr,33:[0,.69444,0,0,.31945],34:Ha,35:Rn,36:Dl,37:br,38:[0,.69444,0,0,.75834],39:Yo,40:vo,41:vo,42:gr,43:Ps,44:rr,45:[0,.44444,0,0,.33333],46:Yn,47:cs,48:Kn,49:Kn,50:Kn,51:Kn,52:Kn,53:Kn,54:Kn,55:Kn,56:Kn,57:Kn,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:dr,64:Gn,65:Gn,66:Gn,67:ys,68:[0,.69444,0,0,.72223],69:hr,70:[0,.69444,0,0,.56945],71:Gn,72:fr,73:Yo,74:dr,75:[0,.69444,0,0,.69445],76:vr,77:[0,.69444,0,0,.875],78:fr,79:[0,.69444,0,0,.73611],80:ys,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:El,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:Gn,89:[0,.69444,.025,0,.66667],90:Qs,91:qn,93:qn,94:Ha,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:Or,99:Vr,100:Or,101:Vr,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:Or,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:Ii,111:[0,.44444,0,0,.5],112:Vi,113:Vi,114:[0,.44444,.01389,0,.34167],115:Ni,116:[0,.57143,0,0,.36111],117:Ii,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:kr,168:[0,.67937,0,0,.5],176:Gn,184:wn,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:Ha,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:Ha,715:Ha,728:Ha,729:[0,.67937,0,0,.27778],730:Gn,732:[0,.67659,0,0,.5],733:Ha,915:vr,916:na,920:Ls,923:Qs,926:Gn,928:fr,931:Zl,933:Ls,934:Zl,936:Ls,937:Zl,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:Yo,8217:Yo,8220:Ha,8221:Ha},"Script-Regular":{32:kr,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:kr},"Size1-Regular":{32:kr,40:Ci,41:Ci,47:ya,91:Ia,92:ya,93:Ia,123:Qr,125:Qr,160:kr,710:Er,732:Er,770:Er,771:Er,8214:[-99e-5,.601,0,0,.77778],8593:hi,8595:hi,8657:Oi,8659:Oi,8719:gi,8720:gi,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:yi,8748:Xi,8749:Xi,8750:yi,8896:Zi,8897:Zi,8898:Zi,8899:Zi,8968:da,8969:da,8970:da,8971:da,9168:xs,10216:da,10217:da,10752:Da,10753:Da,10754:Da,10756:Zi,10758:Zi},"Size2-Regular":{32:kr,40:Ra,41:Ra,47:Hi,91:Ai,92:Hi,93:Ai,123:ba,125:ba,160:kr,710:fa,732:fa,770:fa,771:fa,8719:aa,8720:aa,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:Yr,8748:qi,8749:qi,8750:Yr,8896:Si,8897:Si,8898:Si,8899:Si,8968:oa,8969:oa,8970:oa,8971:oa,10216:$i,10217:$i,10752:Fa,10753:Fa,10754:Fa,10756:Si,10758:Si},"Size3-Regular":{32:kr,40:ti,41:ti,47:Un,91:Dr,92:Un,93:Dr,123:Hr,125:Hr,160:kr,710:or,732:or,770:or,771:or,8730:[.95003,1.45,0,0,1],8968:zi,8969:zi,8970:zi,8971:zi,10216:Hr,10217:Hr},"Size4-Regular":{32:kr,40:ga,41:ga,47:eo,91:Qa,92:eo,93:Qa,123:go,125:go,160:kr,710:to,732:to,770:to,771:to,8730:[1.25003,1.75,0,0,1],8968:ts,8969:ts,8970:ts,8971:ts,9115:Jo,9116:Ko,9117:Jo,9118:Jo,9119:Ko,9120:Jo,9121:Ns,9122:xs,9123:Ns,9124:Ns,9125:xs,9126:Ns,9127:ws,9128:vl,9129:ea,9130:[0,.3,0,0,.88889],9131:ws,9132:vl,9133:ea,9143:[.88502,.915,0,0,1.05556],10216:go,10217:go,57344:Rr,57345:Rr,57680:Bi,57681:Bi,57682:Bi,57683:Bi},"Typewriter-Regular":{32:el,33:Hn,34:Hn,35:Hn,36:Ui,37:Ui,38:Hn,39:Hn,40:Ui,41:Ui,42:[0,.52083,0,0,.525],43:yo,44:[.13889,.125,0,0,.525],45:yo,46:[0,.125,0,0,.525],47:Ui,48:Hn,49:Hn,50:Hn,51:Hn,52:Hn,53:Hn,54:Hn,55:Hn,56:Hn,57:Hn,58:So,59:[.13889,.43056,0,0,.525],60:fo,61:[-.19549,.41562,0,0,.525],62:fo,63:Hn,64:Hn,65:Hn,66:Hn,67:Hn,68:Hn,69:Hn,70:Hn,71:Hn,72:Hn,73:Hn,74:Hn,75:Hn,76:Hn,77:Hn,78:Hn,79:Hn,80:Hn,81:[.13889,.61111,0,0,.525],82:Hn,83:Hn,84:Hn,85:Hn,86:Hn,87:Hn,88:Hn,89:Hn,90:Hn,91:Ui,92:Ui,93:Ui,94:Hn,95:[.09514,0,0,0,.525],96:Hn,97:So,98:Hn,99:So,100:Hn,101:So,102:Hn,103:uo,104:Hn,105:Hn,106:[.22222,.61111,0,0,.525],107:Hn,108:Hn,109:So,110:So,111:So,112:uo,113:uo,114:So,115:So,116:[0,.55358,0,0,.525],117:So,118:So,119:So,120:So,121:uo,122:So,123:Ui,124:Ui,125:Ui,126:Hn,127:Hn,160:el,176:Hn,184:[.19445,0,0,0,.525],305:So,567:uo,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:Hn,715:Hn,728:Hn,730:Hn,770:Hn,771:Hn,776:Hn,915:Hn,916:Hn,920:Hn,923:Hn,926:Hn,928:Hn,931:Hn,933:Hn,934:Hn,936:Hn,937:Hn,8216:Hn,8217:Hn,8242:Hn,9251:[.11111,.21944,0,0,.525]}},kl=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,za=10,ka=.25,no=1.2,Za=.431,Ao={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[Za,Za,Za],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.5,.732,.925],num2:[.394,.384,.5],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:[ka,ka,ka],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]},Ho=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Di=5,Qi={"\xA0":" ","\u200B":" ",\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"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 Va(a,y){a===void 0&&(a=77);const b=ds[y][a];if(b)return{defaultMetrics:!1,depth:b[0],height:b[1],italic:b[2],skew:b[3],width:b[4]};if(a===11034)return{defaultMetrics:!0,depth:.2,height:.8,italic:0,skew:0,width:.8};const E=String.fromCodePoint(a);if(E in Qi)a=Qi[E].codePointAt(0);else if(kl.test(E))return a=77,{defaultMetrics:!0,depth:.2,height:.9,italic:0,skew:0,width:1};return{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0,width:.8}}var ko={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"],longrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],longleftarrow:[["leftarrow"],1.469,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"],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],longleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],longrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],longleftrightharpoons:[["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],xleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],longleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],longRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716],longLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},ho={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34],overarc:[1061,159,.3],underarc:[1061,159,.3]},fs={doubleleftarrow:`M262 157
|
|
|
l10-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
|
|
|
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
|
|
|
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
|
|
|
c2 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
|
|
|
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
|
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
|
-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
|
|
|
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
|
|
|
-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
|
|
|
-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
|
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
|
c-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
|
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
|
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
|
|
|
-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
|
|
|
c-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
|
|
|
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
|
|
|
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
|
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
|
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
|
|
|
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
|
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,overarc:"M529 0c179 0 524 115 524 115 5 1 9 5 9 10 0 1-1 2-1 3l-4 22c-1 5-5 9-11 9h-2s-338-93-512-92c-174 0-513 92-513 92h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13 0 0 342-115 520-115z",underarc:`m 529 160
|
|
|
c -179 0 -524 -115 -524 -115
|
|
|
c -5 -1 -9 -5 -9 -10
|
|
|
c 0 -1 1 -2 1 -3
|
|
|
l 4 -22
|
|
|
c 1 -5 5 -9 11 -9
|
|
|
h 2
|
|
|
s 338 93 512 92
|
|
|
c 174 0 513 -92 513 -92
|
|
|
h 2
|
|
|
c 5 0 9 4 11 9
|
|
|
l 5 22
|
|
|
c 1 6 -2 12 -8 13
|
|
|
c 0 0 -342 115 -520 115
|
|
|
z
|
|
|
`,leftgroup:`M400000 80
|
|
|
H435C64 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
|
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
|
-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
|
|
|
-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
|
|
|
-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
|
|
|
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
|
|
|
-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
|
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
|
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
|
|
|
-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
|
|
|
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
|
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
|
-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
|
|
|
-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
|
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 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-70-101l-7-8h399905v-40H95l7-8
|
|
|
c28.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
|
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
|
c-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
|
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
|
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
|
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
|
c100.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
|
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
|
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
|
|
|
-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
|
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
|
m368.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
|
|
|
60.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
|
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
|
c0 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
|
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
|
85.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
|
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
|
c0 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
|
|
|
-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
|
|
|
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
|
|
|
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
|
|
|
-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
|
|
|
-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
|
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
|
-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
|
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
|
c124.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
|
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
|
-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
|
|
|
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
|
|
|
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
|
|
|
-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
|
|
|
-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
|
|
|
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
|
|
|
-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
|
|
|
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
|
|
|
m0 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
|
|
|
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
|
|
|
-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
|
|
|
-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
|
|
|
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
|
|
|
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
|
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
|
m0-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
|
|
|
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
|
|
|
-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
|
|
|
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
|
|
|
M399960 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
|
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
|
-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
|
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
|
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
|
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
|
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
|
|
|
c-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
|
|
|
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
|
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,widetilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
|
-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
|
|
|
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
|
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
|
-68.267.847-113-73.952-191-73.952z`,widetilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
|
-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
|
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
|
c1 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
|
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,widetilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
|
-338 0-409-156.573-744-156.573z`,widetilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
|
-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
|
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
|
-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
|
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
|
c-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
|
|
|
-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
|
|
|
-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
|
|
|
-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,
|
|
|
-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,
|
|
|
-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,
|
|
|
-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,
|
|
|
-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
|
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
|
c-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
|
|
|
s-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
|
|
|
121.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
|
|
|
s2.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
|
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-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 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 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-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
|
|
|
-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
|
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
|
c2,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
|
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-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
|
|
|
c-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
|
|
|
M0 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
|
|
|
c1.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,
|
|
|
1c0,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,
|
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
|
M93 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
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-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
|
|
|
c-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
|
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`};function Fo(a){if(ho[a]){const[be,ke,Ke]=ho[a],rt=`<span class="stretchy" style="height:${Ke}em"><svg width="100%" height="${Ke}em" viewBox="0 0 ${be} ${ke}" preserveAspectRatio="none" ><path fill="currentcolor" d="${fs[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Ke/2)/100}em;min-width:0">${rt}</span>`}const[y,b,E,ee]=ko[a];let ie,oe;const fe=E/1e3;y.length===3?(ie=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],oe=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(ie=["slice-1-of-2","slice-2-of-2"],oe=["xMinYMin","xMaxYMin"]):(ie=["slice-1-of-1"],oe=[ee]);const me=y.map((be,ke)=>`<span class="${ie[ke]}" style=height:${fe}em><svg width=400em height=${fe}em viewBox="0 0 400000 ${E}" preserveAspectRatio="${oe[ke]} slice"><path fill="currentcolor" d="${fs[be]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${fe}em;min-width:${b}em;">${me}</span>`}function yl(a){return ko[a]?ko[a][2]/1e3:ho[a][2]}function tl(a){const y=[];for(let b=0;b<a.length;b++){let E=a.charCodeAt(b);if(E===13&&a.charCodeAt(b+1)===10&&(E=10,b++),(E===13||E===12)&&(E=10),E===0&&(E=65533),E>=55296&&E<=56319){const ee=a.charCodeAt(b+1);if(ee>=56320&&ee<=57343){const ie=E-55296,oe=ee-56320;E=ec(2,16)+ie*ec(2,10)+oe,b++}}y.push(E)}return y}var Xo=8205,ns=[[Xo,1],[65038,2],[127995,5],[129456,4],[917536,96]],Rl,Nu=[127462,127487];function Iu(a){var y;if(Rl===void 0){Rl={};for(const b of ns)for(let E=b[0];E<=b[0]+b[1]-1;E++)Rl[E]=!0}return(y=Rl[a])!=null?y:!1}function jc(a){return a>=Nu[0]&&a<=Nu[1]}function Gc(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=tl(a);let E=0;for(;E<b.length;){const ee=b[E++],ie=b[E];if(ie===Xo){const oe=E-1;for(E+=2;b[E]===Xo;)E+=2;y.push(String.fromCodePoint(...b.slice(oe,E-oe+1)))}else if(Iu(ie)){const oe=E-1;for(;Iu(b[E]);)E+=b[E]===Xo?2:1;y.push(String.fromCodePoint(...b.slice(oe,2*E-oe-1)))}else jc(ee)?(E+=1,y.push(String.fromCodePoint(...b.slice(E-2,2)))):y.push(String.fromCodePoint(ee))}return y}var Ac=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=Gc(a)}end(){return this.pos>=this.s.length}get(){return this.pos<this.s.length?this.s[this.pos++]:""}peek(){return this.s[this.pos]}match(a){const y=typeof this.s=="string"?a.exec(this.s.slice(this.pos)):a.exec(this.s.slice(this.pos).join(""));return y!=null&&y[0]?(this.pos+=y[0].length,y[0]):""}next(){if(this.end())return null;if(!this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]+/)||this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]/))return"<space>";const a=this.get();if(a==="\\"){if(!this.end()){let y=this.match(/^[a-zA-Z\*]+/);return y?this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]*/):y=this.get(),"\\"+y}}else{if(a==="{")return"<{>";if(a==="}")return"<}>";if(a==="^"){if(this.peek()==="^"){this.get();const y=this.match(/^(\^(\^(\^(\^[\da-f])?[\da-f])?[\da-f])?[\da-f])?[\da-f]{2}/);if(y)return String.fromCodePoint(Number.parseInt(y.slice(y.lastIndexOf("^")+1),16))}return a}else if(a==="#"){if(!this.end()){let y=!1;if(/[\d?@]/.test(this.peek())&&(y=!0,this.pos+1<this.s.length)){const b=this.s[this.pos+1];y=/[^\dA-Za-z]/.test(b)}return y?"#"+this.get():"#"}}else if(a==="$")return this.peek()==="$"?(this.get(),"<$$>"):"<$>"}return a}};function Xl(a,y){var b,E,ee,ie;const oe=[];let fe=a.next();if(fe&&fe!=="\\relax"){if(fe==="\\noexpand")fe=a.next(),fe&&oe.push(fe);else if(fe==="\\obeyspaces")a.obeyspaces=!0;else if(fe==="\\bgroup")oe.push("<{>");else if(fe==="\\egroup")oe.push("<}>");else if(fe==="\\string"){if(fe=a.next(),fe)if(fe.startsWith("\\"))for(const me of fe)oe.push(me==="\\"?"\\backslash":me);else fe==="<{>"?oe.push("\\{"):fe==="<space>"?oe.push("~"):fe==="<}>"&&oe.push("\\}")}else if(fe==="\\csname"){for(;a.peek()==="<space>";)a.next();let me="",be=!1,ke=[];do{if(ke.length===0)if(/^#[\d?@]$/.test(a.peek())){const Ke=a.get().slice(1);ke=_a((E=(b=y==null?void 0:y(Ke))!=null?b:y==null?void 0:y("?"))!=null?E:"\\placeholder{}",y),fe=ke[0]}else fe=a.next(),ke=fe?[fe]:[];be=ke.length===0,!be&&fe==="\\endcsname"&&(be=!0,ke.shift()),be||(be=fe==="<$>"||fe==="<$$>"||fe==="<{>"||fe==="<}>"||typeof fe=="string"&&fe.length>1&&fe.startsWith("\\")),be||(me+=ke.shift())}while(!be);me&&oe.push("\\"+me),oe.push(...ke)}else if(fe!=="\\endcsname")if(fe.length>1&&fe.startsWith("#")){const me=fe.slice(1);oe.push(..._a((ie=(ee=y==null?void 0:y(me))!=null?ee:y==null?void 0:y("?"))!=null?ie:"\\placeholder{}",y))}else oe.push(fe)}return oe}function _a(a,y=null){const b=[];let E="";for(const oe of a.toString().split(/\r?\n/)){E&&b.push(E),E=" ";const fe=oe.match(/((?:\\%)|[^%])*/);fe!==null&&b.push(fe[0])}const ee=new Ac(vt(b.join(""))),ie=[];do ie.push(...Xl(ee,y));while(!ee.end());return ie}function di(a){let y="";const b=[];for(const E of a)E&&(y&&/^[a-zA-Z\*]/.test(E)&&b.push(y),b.push(E),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(E)&&b.push(" "),y=/\\[a-zA-Z]+\*?$/.test(E)?" ":"");return b.join("")}function Ua(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:di([a,...y.map(b=>`{${b}}`)])}function Es(a){return di(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var Cs=class uf{constructor(y){uf._registry[y]=this}static createAtom(y,b,E){return uf._registry[y].createAtom(b,wr(b,y),E)}static serialize(y,b){var E;if(!y||y.length===0)return"";if((E=b.skipStyles)!=null&&E){const ee=[];for(const ie of _l(y)){const oe=uf._registry[ie[0].mode];ee.push(...oe.serialize(ie,b))}return di(ee)}return di(vu(y,b))}static getFont(y,b,E){return uf._registry[y].getFont(b,E)}};Cs._registry={};var Zo=Cs;function _l(a){const y=[];let b=[],E="NONE";for(const ee of a)ee.type!=="first"&&(ee.mode!==E?(b.length>0&&y.push(b),b=[ee],E=ee.mode):b.push(ee));return b.length>0&&y.push(b),y}function zo(a,y){const b=[];let E=[],ee;for(const ie of a)if(ie.type!=="first"&&ie.style){let oe;y==="variant"?(oe=ie.style.variant,ie.style.variantStyle&&ie.style.variantStyle!=="up"&&(oe+="-"+ie.style.variantStyle)):oe=ie.style[y],oe===ee?E.push(ie):(E.length>0&&b.push(E),E=[ie],ee=oe)}return E.length>0&&b.push(E),b}function ql(a,y){var b;const{parent:E}=a[0],ee=E==null?void 0:E.computedStyle.color,ie=[];for(const oe of _l(a)){const fe=y.defaultMode;for(const me of zo(oe,"color")){const be=me[0].computedStyle,ke=Zo._registry[me[0].mode].serialize(me,ye(Ee({},y),{defaultMode:fe==="text"?"text":"math"}));!y.skipStyles&&be.color&&be.color!=="none"&&(!E||ee!==be.color)?ie.push(Ua("\\textcolor",(b=be.verbatimColor)!=null?b:be.color,di(ke))):ie.push(di(ke))}}return ie}function Ou(a,y){const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.backgroundColor;return zo(a,"backgroundColor").map(ee=>{var ie;if(ee.length>0||ee[0].type!=="box"){const oe=ee[0].computedStyle;if(oe.backgroundColor&&oe.backgroundColor!=="none"&&(!b||E!==oe.backgroundColor))return Ua("\\colorbox",(ie=oe.verbatimBackgroundColor)!=null?ie:oe.backgroundColor,di(ql(ee,ye(Ee({},y),{defaultMode:"text"}))))}return di(ql(ee,y))})}function vu(a,y){if(a.length===0)return[];const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.fontSize,ee=[];for(const ie of zo(a,"fontSize")){const oe=ie[0].computedStyle.fontSize,fe=Ou(ie,y);fe&&(oe&&oe!=="auto"&&(!b||E!==oe)?ee.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][oe],...fe):ee.push(...fe))}return ee}function cc(a){return a?{mord:"ord",mbin:"bin",mop:"op",mrel:"rel",mopen:"open",mclose:"close",mpunct:"punct",minner:"inner",spacing:"ignore",latex:"latex",composition:"inner",error:"inner",placeholder:"ord",supsub:"ignore"}[a]:void 0}function dc(a){if(a.length===0)return"ord";const y=cc(a[0].type),b=cc(a[a.length-1].type);return y&&y===b?y:"ord"}function fc(a,y){if(typeof a=="string")return a;if(typeof a=="number"){console.assert(Number.isFinite(a));const b=Math.ceil(100*a)/100;return b===0?"0":b.toString()+(y!=null?y:"")}return""}var Nr=class Sp{constructor(y,b){var E,ee,ie,oe,fe;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:he(y)?this.children=y.filter(be=>be!==null):y&&y instanceof Sp&&(this.children=[y]),this.children)for(const be of this.children)be.parent=this;this.type=(E=b==null?void 0:b.type)!=null?E:"ignore",this.isSelected=(b==null?void 0:b.isSelected)===!0,b!=null&&b.caret&&(this.caret=b.caret),this.classes=(ee=b==null?void 0:b.classes)!=null?ee:"",this.isTight=(ie=b==null?void 0:b.isTight)!=null?ie:!1,b!=null&&b.attributes&&(this.attributes=b.attributes);let me=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(me=(fe=Zo.getFont((oe=b.mode)!=null?oe:"math",this,ye(Ee({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?fe:void 0),me||(me="Main-Regular"),this._height=0,this._depth=0,this._width=0,this.hasExplicitWidth=!1,this.skew=0,this.italic=0,this.maxFontSize=0,this.scale=1,(b==null?void 0:b.maxFontSize)!==void 0&&(this.maxFontSize=b.maxFontSize),kc(this,me)}set atomID(y){y===void 0||y.length===0||(this.id=y)}selected(y){if(this.isSelected!==y&&(this.isSelected=y,this.children))for(const b of this.children)b.selected(y)}setStyle(y,b,E){if(b===void 0)return;const ee=fc(b,E);ee.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[y]=ee)}setTop(y){Number.isFinite(y)&&Math.abs(y)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=fc(y,"em"),this.height-=y,this.depth+=y)}get left(){var y;return(y=this.cssProperties)!=null&&y["margin-left"]?Number.parseFloat(this.cssProperties["margin-left"]):0}set left(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-left"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-left"]=fc(y,"em")))}set right(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-right"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-right"]=fc(y,"em")))}set bottom(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-bottom"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-bottom"]=fc(y,"em")))}get width(){return this._width*this.scale}set width(y){this._width=y,this.hasExplicitWidth=!0}set softWidth(y){}get height(){return this._height*this.scale}set height(y){this._height=y}get depth(){return this._depth*this.scale}set depth(y){this._depth=y}wrap(y){const b=y.parent;if(!b)return this;y.isPhantom&&this.setStyle("opacity",0);const E=y.color;E&&E!==b.color&&this.setStyle("color",E);let ee=y.backgroundColor;this.isSelected&&(ee=jt(ee)),ee&&ee!==b.backgroundColor&&(this.setStyle("background-color",ee),this.setStyle("display","inline-block"));const ie=y.scalingFactor;return this.scale=ie,this.skew*=ie,this.italic*=ie,this}toMarkup(){var y,b,E,ee;let ie=(y=this.value)!=null?y:"";if(this.children)for(const xt of this.children)ie+=xt.toMarkup();let oe="";if(this.svgBody)oe=Fo(this.svgBody);else if(this.svgOverlay){oe='<span style="',oe+="display: inline-block;",oe+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,oe+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,oe+='">',oe+=ie,oe+="</span>",oe+='<svg style="position:absolute;overflow:visible;',oe+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const xt=(b=this.cssProperties)==null?void 0:b.padding;xt?(oe+=`top:${xt};`,oe+=`left:${xt};`,oe+=`width:calc(100% - 2 * ${xt} );`):oe+="top:0;left:0;width:100%;",oe+="z-index:2;",oe+='"',this.svgStyle&&(oe+=this.svgStyle),oe+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,oe+=`>${this.svgOverlay}</svg>`}let fe="";const me=this.classes.split(" ");me.push((E={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?E:""),this.caret==="latex"&&me.push("ML__latex-caret"),this.isSelected&&me.push("ML__selected");const be=me.length===1?me[0]:me.filter((xt,Ft,Sn)=>xt.length>0&&Sn.indexOf(xt)===Ft).join(" ");if(be.length>0&&(fe+=` class="${be}"`),this.id&&(fe+=` data-atom-id=${this.id}`),this.cssId&&(fe+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(fe+=" "+Object.keys(this.attributes).map(xt=>`${xt}="${this.attributes[xt]}"`).join(" ")),this.htmlData){const xt=this.htmlData.split(",");for(const Ft of xt){const Sn=Ft.match(/([^=]+)=(.+$)/);if(Sn){const Fr=Sn[1].trim().replace(/ /g,"-");Fr&&(fe+=` data-${Fr}="${Sn[2]}" `)}else{const Fr=Ft.trim().replace(/ /g,"-");Fr&&(fe+=` data-${Fr} `)}}}const ke=(ee=this.cssProperties)!=null?ee:{};this.hasExplicitWidth&&ke.width===void 0&&(ke.width=`${Math.ceil(this._width*100)/100}em`);const Ke=Object.keys(ke).map(xt=>`${xt}:${ke[xt]}`);if(this.scale!==void 0&&this.scale!==1&&(ie.length>0||oe.length>0)&&Ke.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const xt=this.htmlStyle.split(";");let Ft="";for(const Sn of xt){const Fr=Sn.match(/([^=]+):(.+$)/);if(Fr){const xn=Fr[1].trim().replace(/ /g,"-");xn&&(Ft+=`${xn}:${Fr[2]};`)}}Ft&&(fe+=` style="${Ft}"`)}Ke.length>0&&(fe+=` style="${Ke.join(";")}"`);let rt="";return fe.length>0||oe.length>0?rt=`<span${fe}>${ie}${oe}</span>`:rt=ie,this.caret==="text"?rt+='<span class="ML__text-caret"></span>':this.caret==="math"&&(rt+='<span class="ML__caret"></span>'),rt}tryCoalesceWith(y){if(this.svgBody||!this.value||y.svgBody||!y.value)return!1;const b=this.children&&this.children.length>0,E=y.children&&y.children.length>0;if(b||E)return!1;if(y.cssProperties||this.cssProperties){for(const me of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&me in y.cssProperties||this.cssProperties&&me in this.cssProperties)return!1}const ee=this.cssProperties?Object.keys(this.cssProperties).length:0,ie=y.cssProperties?Object.keys(y.cssProperties).length:0;if(ee!==ie)return!1;if(ee>0){for(const me of Object.keys(this.cssProperties))if(this.cssProperties[me]!==y.cssProperties[me])return!1}const oe=this.classes.trim().replace(/\s+/g," ").split(" "),fe=y.classes.trim().replace(/\s+/g," ").split(" ");if(oe.length!==fe.length)return!1;oe.sort(),fe.sort();for(const[me,be]of oe.entries())if(be==="vertical-separator"||be!==fe[me])return!1;return this.value+=y.value,this.height=Math.max(this.height,y.height),this.depth=Math.max(this.depth,y.depth),this._width=this._width+y._width,this.maxFontSize=Math.max(this.maxFontSize,y.maxFontSize),this.italic=y.italic,!0}};function Cd(a){if(!a||a.length===0)return[];a[0].children=Cd(a[0].children);const y=[a[0]];for(let b=1;b<a.length;b++)y[y.length-1].tryCoalesceWith(a[b])||(a[b].children=Cd(a[b].children),y.push(a[b]));return y}function Qc(a){return a.children&&(a.children=Cd(a.children)),a}function Yc(a,y){if(!a)return new Nr(null,y);const b=new Nr(null,{classes:"ML__strut",type:"ignore"});b.setStyle("height",Math.max(0,a.height),"em");const E=[b];if(a.depth!==0){const ee=new Nr(null,{classes:"ML__strut--bottom",type:"ignore"});ee.setStyle("height",a.height+a.depth,"em"),ee.setStyle("vertical-align",-a.depth,"em"),E.push(ee)}return E.push(a),new Nr(E,ye(Ee({},y),{type:"lift"}))}function ou(a){const y=yl(a)/2,b=new Nr(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function kc(a,y){var b;if(a.type==="latex"){a.height=.9,a.depth=.2,a._width=1;return}if(a.value){a.height=-1/0,a.depth=-1/0,a._width=0,a.skew=-1/0,a.italic=-1/0;for(let E=0;E<a.value.length;E++){const ee=Va(a.value.codePointAt(E),y);a.height=Math.max(a.height,ee.height),a.depth=Math.max(a.depth,ee.depth),a._width+=ee.width,a.skew=ee.skew,a.italic=ee.italic}return}if(a.children&&a.children.length>0){let E=-1/0,ee=-1/0,ie=0;for(const oe of a.children)oe.height>E&&(E=oe.height),oe.depth>ee&&(ee=oe.depth),ie=Math.max(ie,(b=oe.maxFontSize)!=null?b:0);a.height=E,a.depth=ee,a._width=a.children.reduce((oe,fe)=>oe+fe.width,0),a.maxFontSize=ie}}function Jc(a){if("individualShift"in a){const y=a.individualShift;let b=y[0];const E=[b],ee=-b.shift-b.box.depth;let ie=ee;for(let oe=1;oe<y.length;oe++){const fe=y[oe],me=-fe.shift-ie-fe.box.depth,be=me-(b.box.height+b.box.depth);ie=ie+me,E.push(be),E.push(fe),b=fe}return[E,ee]}if("top"in a){let y=a.top;for(const b of a.children)y-=typeof b=="number"?b:b.box.height+b.box.depth;return[a.children,y]}else{if("bottom"in a)return[a.children,-a.bottom];if("firstBaseline"in a){const y=a.firstBaseline[0];if(typeof y=="number")throw new Error("First child must be an element.");return[a.firstBaseline,-y.box.depth]}else if("shift"in a){const y=a.children[0];if(typeof y=="number")throw new Error("First child must be an element.");return[a.children,-y.box.depth-a.shift]}}return[null,0]}function Mc(a){var y;const[b,E]=Jc(a);if(!b)return[[],0,0];const ee=new Nr(null,{classes:"pstrut"});let ie=0;for(const Ft of b)if(typeof Ft!="number"){const Sn=Ft.box;ie=Math.max(ie,Sn.maxFontSize,Sn.height)}ie+=2,ee.height=ie,ee.setStyle("height",ie,"em");const oe=[];let fe=E,me=E,be=E,ke=0;for(const Ft of b){if(typeof Ft=="number")be+=Ft;else{const Sn=Ft.box,Fr=(y=Ft.classes)!=null?y:[],xn=new Nr([ee,Sn],{classes:Fr.join(" "),style:Ft.style});Sn.setStyle("height",Sn.height+Sn.depth,"em"),Sn.setStyle("display","inline-block"),xn.setStyle("top",-ie-be-Sn.depth,"em"),Ft.marginLeft&&xn.setStyle("margin-left",Ft.marginLeft,"em"),Ft.marginRight&&xn.setStyle("margin-right",Ft.marginRight,"em"),oe.push(xn),be+=Sn.height+Sn.depth,ke=Math.max(ke,xn.width)}fe=Math.min(fe,be),me=Math.max(me,be)}oe.forEach(Ft=>{Ft.softWidth=ke});const Ke=new Nr(oe,{classes:"vlist"});if(Ke.softWidth=ke,Ke.height=me,Ke.setStyle("height",me,"em"),fe>=0)return[[new Nr(Ke,{classes:"vlist-r"})],me,-fe];const rt=new Nr(new Nr(null),{classes:"vlist"});rt.height=-fe,rt.setStyle("height",-fe,"em");const xt=new Nr(8203,{classes:"vlist-s",maxFontSize:0});return xt.softWidth=0,xt.height=0,xt.depth=0,[[new Nr([Ke,xt],{classes:"vlist-r"}),new Nr(rt,{classes:"vlist-r"})],me,-fe]}var Lo=class extends Nr{constructor(a,y){var b;const[E,ee,ie]=Mc(a);super(E.length===1?E[0]:E,{type:y==null?void 0:y.type,classes:((b=y==null?void 0:y.classes)!=null?b:"")+" vlist-t"+(E.length===2?" vlist-t2":"")}),this.height=ee,this.depth=ie,this.softWidth=E.reduce((oe,fe)=>Math.max(oe,fe.width),0)}};function nh(a,y){var b,E,ee,ie,oe;const fe=a.metrics,me=new Nr(y.base),be=(b=y.baseShift)!=null?b:0,ke=(E=y.slant)!=null?E:0;let Ke=0,rt=0;y.above&&(Ke=(ee=y.aboveShift)!=null?ee:Math.max(fe.bigOpSpacing1,fe.bigOpSpacing3-y.above.depth)),y.below&&(rt=(ie=y.belowShift)!=null?ie:Math.max(fe.bigOpSpacing2,fe.bigOpSpacing4-y.below.height));let xt=null;if(y.below&&y.above){const Ft=fe.bigOpSpacing5+y.below.height+y.below.depth+rt+me.depth+be;xt=new Lo({bottom:Ft,children:[fe.bigOpSpacing5,{box:y.below,marginLeft:-ke,classes:["ML__center"]},rt,{box:me,classes:["ML__center"]},Ke,{box:y.above,marginLeft:ke,classes:["ML__center"]},fe.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)xt=new Lo({top:me.height-be,children:[fe.bigOpSpacing5,{box:y.below,marginLeft:-ke,classes:["ML__center"]},rt,{box:me,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const Ft=me.depth+be;xt=new Lo({bottom:Ft,children:[{box:me,classes:["ML__center"]},Ke,{box:y.above,marginLeft:ke,classes:["ML__center"]},fe.bigOpSpacing5]}).wrap(a)}else{const Ft=me.depth+be;xt=new Lo({bottom:Ft,children:[{box:me},fe.bigOpSpacing5]}).wrap(a)}return new Nr(xt,{type:(oe=y.type)!=null?oe:"op"})}var Sd=7,ku=6,Bc=5,Ru=4,tc=3,Ml=2,$l=1,sl=0,yu=class{constructor(a,y,b){this.id=a,this.sizeDelta=y,this.cramped=b;const E={"-4":2,"-3":1,0:0}[y];this.metrics=Object.keys(Ao).reduce((ee,ie)=>ye(Ee({},ee),{[ie]:Ao[ie][E]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return bu[[sl,$l,sl,$l,Ml,tc,Ml,tc][this.id]]}get sub(){return bu[[sl,sl,sl,sl,Ml,Ml,Ml,Ml][this.id]]}get fracNum(){return bu[[sl,$l,sl,$l,Ml,tc,Ru,Bc][this.id]]}get fracDen(){return bu[[sl,sl,sl,sl,Ml,Ml,Ru,Ru][this.id]]}get cramp(){return bu[[sl,sl,Ml,Ml,Ru,Ru,ku,ku][this.id]]}get isTight(){return this.sizeDelta<0}},nc={7:new yu(Sd,0,!1),6:new yu(ku,0,!0),5:new yu(Bc,0,!1),4:new yu(Ru,0,!0),3:new yu(tc,-3,!1),2:new yu(Ml,-3,!0),1:new yu($l,-4,!1),0:new yu(sl,-4,!0)},bu=ye(Ee({},nc),{displaystyle:nc[Sd],textstyle:nc[Bc],scriptstyle:nc[tc],scriptscriptstyle:nc[$l]});function hc(a,y){var b;if(!a)return 0;const E={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:za,bp:803/800,dd:1238/1157,pc:12,in:72.27,mu:10/18}[(b=a.unit)!=null?b:"pt"];if(Number.isFinite(y)){const ee=ec(10,y);return Math.round(a.dimension/za*E*ee)/ee}return a.dimension*E}function Ad(a,y){if(a===null)return 0;const b=hc(a)/za;if(Number.isFinite(y)){const E=ec(10,y);return Math.round(b*E)/E}return b}function kd(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function cf(a){let y=kd(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${kd(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${kd(a.shrink)}`),y}function Zs(a){var y,b;if(a==null)return null;let E="";if("dimension"in a&&(E=`${a.dimension}${(y=a.unit)!=null?y:"pt"}`),"glue"in a&&(E=cf(a)),"number"in a)if(!("base"in a)||a.base==="decimal")E=Number(a.number).toString();else if(a.base==="alpha")E=`\`${String.fromCodePoint(a.number)}`;else{const ee=Math.round(a.number)>>>0;a.base==="hexadecimal"?(E=Number(ee).toString(16).toUpperCase(),ee<=255?E=E.padStart(2,"0"):ee<=65535?E=E.padStart(4,"0"):ee<=16777215?E=E.padStart(6,"0"):E=E.padStart(8,"0"),E=`"${E}`):a.base==="octal"&&(E=Number(ee).toString(8),ee<=63?E=E.padStart(2,"0"):ee<=30583?E=E.padStart(4,"0"):E=E.padStart(8,"0"),E=`'${E}`)}return"register"in a&&("factor"in a&&(a.factor===-1?E="-":a.factor!==1&&(E=Number(a.factor).toString())),"global"in a&&a.global&&(E+="\\global"),E+=`\\${a.register}`),"string"in a&&(E=a.string),(b=a.relax)!=null&&b&&(E+="\\relax"),E}function xu(a,y){return a==null?null:"number"in a?ye(Ee({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?ye(Ee({},a),{factor:a.factor*y}):ye(Ee({},a),{factor:y}):"dimension"in a?ye(Ee({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:xu(a.glue,y),shrink:xu(a.shrink,y),grow:xu(a.grow,y)}:a.shrink?{glue:xu(a.glue,y),shrink:xu(a.shrink,y)}:a.grow?{glue:xu(a.glue,y),grow:xu(a.grow,y)}:{glue:xu(a.glue,y)}:null}var rh={"p@":{dimension:1},"z@":{dimension:0},maxdimen:{dimension:16383.99999},hfuzz:{dimension:.1},vfuzz:{dimension:.1},overfullrule:{dimension:5},hsize:{dimension:6.5,unit:"in"},vsize:{dimension:8.9,unit:"in"},parindent:{dimension:20},maxdepth:{dimension:4},splitmaxdepth:{register:"maxdimen"},boxmaxdepth:{register:"maxdimen"},delimitershortfall:{dimension:5},nulldelimiterspace:{dimension:1.2,unit:"pt"},scriptspace:{dimension:.5},topskip:{dimension:10},splittopskip:{dimension:10},normalbaselineskip:{dimension:12},normallineskip:{dimension:1},normallineskiplimit:{dimension:0},jot:{dimension:3},doublerulesep:{dimension:2},arrayrulewidth:{dimension:.4},arraycolsep:{dimension:5},fboxsep:{dimension:3},fboxrule:{dimension:.4},"z@skip":{glue:{dimension:0},shrink:{dimension:0},grow:{dimension:0}},hideskip:{glue:{dimension:-1e3},grow:{dimension:1,unit:"fill"}},"@flushglue":{glue:{dimension:0},grow:{dimension:1,unit:"fill"}},parskip:{glue:{dimension:0},grow:{dimension:1}},abovedisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},abovedisplayshortskip:{glue:{dimension:0},grow:{dimension:3}},belowdisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},belowdisplayshortskip:{glue:{dimension:7},grow:{dimension:3},shrink:{dimension:4}},parfillskip:{glue:{dimension:0},grow:{dimension:1,unit:"fil"}},thinmuskip:{glue:{dimension:3,unit:"mu"}},medmuskip:{glue:{dimension:4,unit:"mu"},grow:{dimension:2,unit:"mu"},shrink:{dimension:4,unit:"mu"}},thickmuskip:{glue:{dimension:5,unit:"mu"},grow:{dimension:5,unit:"mu"}},smallskipamount:{glue:{dimension:3},grow:{dimension:1},shrink:{dimension:1}},medskipamount:{glue:{dimension:6},grow:{dimension:2},shrink:{dimension:3}},bigskipamount:{glue:{dimension:12},grow:{dimension:2},shrink:{dimension:4}},pretolerance:100,tolerance:200,hbadness:1e3,vbadness:1e3,linepenalty:10,hyphenpenalty:50,exhyphenpenalty:50,binoppenalty:700,relpenalty:500,clubpenalty:150,widowpenalty:150,displaywidowpenalty:50,brokenpenalty:100,predisplaypenalty:1e4,doublehyphendemerits:1e4,finalhyphendemerits:5e3,adjdemerits:1e4,tracinglostchars:1,uchyph:1,delimiterfactor:901,defaulthyphenchar:"\\-",defaultskewchar:-1,newlinechar:-1,showboxbreadth:5,showboxdepth:3,errorcontextlines:5,interdisplaylinepenalty:100,interfootnotelinepenalty:100,baselineSkip:1.2,arraystretch:1,month:new Date().getMonth()+1,day:new Date().getDate(),year:new Date().getFullYear()};function pc(){return Ee({},rh)}function Xc(){return{registers:pc(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:Ye.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:ct,backgroundColorMap:He,getMacro:a=>Ji(a,Jr())}}var qa=class Ap{constructor(y,b){var E,ee,ie,oe,fe,me,be,ke,Ke,rt,xt,Ft,Sn,Fr,xn;let tr;y!=null&&y.parent?(this.parent=y.parent,tr=y.parent,this.registers={}):(tr=Ee(Ee({},Xc()),(E=y==null?void 0:y.from)!=null?E:{}),this.registers=tr.registers),tr.atomIdsSettings&&(this.atomIdsSettings=Ee({},tr.atomIdsSettings)),this.renderPlaceholder=tr.renderPlaceholder,this.isPhantom=(oe=(ie=y==null?void 0:y.isPhantom)!=null?ie:(ee=this.parent)==null?void 0:ee.isPhantom)!=null?oe:!1,this.letterShapeStyle=tr.letterShapeStyle,this.minFontScale=tr.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(me=(fe=this.parent)==null?void 0:fe.color)!=null?me:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(ke=(be=this.parent)==null?void 0:be.backgroundColor)!=null?ke:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((Ke=this.parent)==null?void 0:Ke.size)?this.size=b.fontSize:this.size=(xt=(rt=this.parent)==null?void 0:rt.size)!=null?xt:Di;let Kr=(Sn=(Ft=this.parent)==null?void 0:Ft.mathstyle)!=null?Sn:bu.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(tr instanceof Ap)switch(y.mathstyle){case"cramp":Kr=Kr.cramp;break;case"superscript":Kr=Kr.sup;break;case"subscript":Kr=Kr.sub;break;case"numerator":Kr=Kr.fracNum;break;case"denominator":Kr=Kr.fracDen;break}switch(y.mathstyle){case"textstyle":Kr=bu.textstyle;break;case"displaystyle":Kr=bu.displaystyle;break;case"scriptstyle":Kr=bu.scriptstyle;break;case"scriptscriptstyle":Kr=bu.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Kr,this.smartFence=tr.smartFence,this.placeholderSymbol=tr.placeholderSymbol,this.colorMap=(Fr=tr.colorMap)!=null?Fr:cr=>cr,this.backgroundColorMap=(xn=tr.backgroundColorMap)!=null?xn:cr=>cr,this.getMacro=tr.getMacro,console.assert(this.parent!==void 0||this.registers!==void 0)}makeID(){if(!this.atomIdsSettings)return;if(this.atomIdsSettings.overrideID)return this.atomIdsSettings.overrideID;if(typeof this.atomIdsSettings.seed!="number")return`${Date.now().toString(36).slice(-2)}${Math.floor(Math.random()*1e5).toString(36)}`;const y=this.atomIdsSettings.seed.toString(36);return this.atomIdsSettings.seed+=1,y}scale(y){return y*this.effectiveFontSize}get scalingFactor(){return this.parent?this.effectiveFontSize/this.parent.effectiveFontSize:1}get isDisplayStyle(){return this.mathstyle.id===Sd||this.mathstyle.id===ku}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(Ho[Math.max(1,this.size+this.mathstyle.sizeDelta)],this.minFontScale)}getRegister(y){var b;if((b=this.registers)!=null&&b[y])return this.registers[y];if(this.parent)return this.parent.getRegister(y)}getRegisterAsNumber(y){const b=this.getRegister(y);if(typeof b=="number")return b;if(typeof b=="string")return Number(b)}getRegisterAsGlue(y){var b;if((b=this.registers)!=null&&b[y]){const E=this.registers[y];return typeof E=="object"&&"glue"in E?E:typeof E=="object"&&"dimension"in E?{glue:{dimension:E.dimension}}:typeof E=="number"?{glue:{dimension:E}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(y)}getRegisterAsEm(y,b){return Ad(this.getRegisterAsDimension(y),b)}getRegisterAsDimension(y){var b;if((b=this.registers)!=null&&b[y]){const E=this.registers[y];return typeof E=="object"&&"glue"in E?E.glue:typeof E=="object"&&"dimension"in E?E:typeof E=="number"?{dimension:E}:void 0}if(this.parent)return this.parent.getRegisterAsDimension(y)}setRegister(y,b){if(b===void 0){delete this.registers[y];return}this.registers[y]=b}evaluate(y){if(!y||!("register"in y))return y;let b=this;if("global"in y&&y.global)for(;b.parent;)b=b.parent;let E=1;"factor"in y&&y.factor!==1&&y.factor!==void 0&&(E=y.factor);const ee=b.getRegister(y.register);if(ee===void 0)return;if(typeof ee=="string")return{string:Number(ee).toString()+ee};if(typeof ee=="number")return{number:E*ee};const ie=b.evaluate(ee);if(ie!==void 0)return"string"in ie?{string:Number(ee).toString()+ie.string}:"number"in ie?{number:E*ie.number}:"dimension"in ie?ye(Ee({},ie),{dimension:E*ie.dimension}):"glue"in ie?ye(Ee({},ie),{glue:ye(Ee({},ie.glue),{dimension:E*ie.glue.dimension}),shrink:ie.shrink?ye(Ee({},ie.shrink),{dimension:E*ie.shrink.dimension}):void 0,grow:ie.grow?ye(Ee({},ie.grow),{dimension:E*ie.grow.dimension}):void 0}):y}toDimension(y){const b=this.evaluate(y);return b===void 0?null:"dimension"in b?b:"glue"in b?b.glue:"number"in b?{dimension:b.number}:null}toEm(y,b){if(y===null)return 0;const E=this.toDimension(y);return E===null?0:hc(E,b)/za}toNumber(y){if(y===null)return null;const b=this.evaluate(y);return b===void 0?null:"number"in b?b.number:"dimension"in b?b.dimension:"glue"in b?b.glue.dimension:"string"in b?Number(b.string):null}toColor(y){var b,E;if(y===null)return null;const ee=this.evaluate(y);return ee===void 0?null:"string"in ee?(E=(b=this.colorMap)==null?void 0:b.call(this,ee.string))!=null?E:ee.string:null}toBackgroundColor(y){var b,E;if(y===null)return null;const ee=this.evaluate(y);return ee===void 0?null:"string"in ee?(E=(b=this.backgroundColorMap)==null?void 0:b.call(this,ee.string))!=null?E:ee.string:null}},mc=["body","above","below","superscript","subscript"];function Mu(a){return typeof a=="string"&&mc.includes(a)}function Dc(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var Zn=class lc{constructor(y){var b,E,ee,ie,oe,fe;this.type=y.type,typeof y.value=="string"&&(this.value=y.value),this.command=(E=(b=y.command)!=null?b:this.value)!=null?E:"",this.mode=(ee=y.mode)!=null?ee:"math",y.isFunction&&(this.isFunction=!0),y.limits&&(this.subsupPlacement=y.limits),this.style=Ee({},y.style),this.displayContainsHighlight=(ie=y.displayContainsHighlight)!=null?ie:!1,this.captureSelection=(oe=y.captureSelection)!=null?oe:!1,this.skipBoundary=(fe=y.skipBoundary)!=null?fe:!1,y.verbatimLatex!==void 0&&y.verbatimLatex!==null&&(this.verbatimLatex=y.verbatimLatex),y.args&&(this.args=y.args),y.body&&(this.body=y.body),this._changeCounter=0}static createBox(y,b,E){var ee;if(!b)return null;const ie=df(b),oe=[];for(const me of ie){const be=me[0].style,ke=ff(y,me,{style:{color:be.color,backgroundColor:be.backgroundColor,fontSize:be.fontSize}});ke&&oe.push(ke)}if(oe.length===0)return null;const fe=((ee=E==null?void 0:E.classes)!=null?ee:"").trim();return oe.length===1&&!fe&&!(E!=null&&E.type)?oe[0].wrap(y):new Nr(oe,{classes:fe,type:E==null?void 0:E.type}).wrap(y)}static serialize(y,b){return Zo.serialize(y,b)}static commonAncestor(y,b){if(y===b||y.parent===b.parent)return y.parent;const E=new WeakSet;let{parent:ee}=y;for(;ee;)E.add(ee),ee=ee.parent;for(ee=b.parent;ee;){if(E.has(ee))return ee;ee=ee.parent}console.assert(!!ee)}static fromJson(y){return typeof y=="string"?new lc({type:"mord",value:y,mode:"math"}):new lc(y)}get latexMode(){return this.mode==="math"?"math":"text"}toJson(){const y={};if(this.type&&(y.type=this.type),this.mode!=="math"&&(y.mode=this.mode),this.command&&this.command!==this.value&&(y.command=this.command),this.value!==void 0&&(y.value=this.value),this.style&&Object.keys(this.style).length>0&&(y.style=Ee({},this.style)),this.verbatimLatex!==void 0&&(y.verbatimLatex=this.verbatimLatex),this.subsupPlacement&&(y.subsupPlacement=this.subsupPlacement),this.explicitSubsupPlacement&&(y.explicitSubsupPlacement=!0),this.isFunction&&(y.isFunction=!0),this.displayContainsHighlight&&(y.displayContainsHighlight=!0),this.isExtensibleSymbol&&(y.isExtensibleSymbol=!0),this.skipBoundary&&(y.skipBoundary=!0),this.captureSelection&&(y.captureSelection=!0),this.args&&(y.args=Bd(this.args)),this._branches)for(const b of Object.keys(this._branches))this._branches[b]&&(y[b]=this._branches[b].filter(E=>E.type!=="first").map(E=>E.toJson()));return y.type==="mord"&&Object.keys(y).length===2&&"value"in y?y.value:y}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(y){if(y){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:b}=this;for(;b;)b.parent||b._changeCounter++,"verbatimLatex"in b&&(b.verbatimLatex=void 0),b._children=void 0,b=b.parent}}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=wr(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?di([Ua(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?di([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return Zo.serialize(this.body,ye(Ee({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return Zo.serialize(this.above,y)}belowToLatex(y){return Zo.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=ye(Ee({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const E=Zo.serialize(this.subscript,y);E.length===0?b+="_{}":E.length===1?/^[0-9]$/.test(E)?b+=`_${E}`:b+=`_{${E}}`:b+=`_{${E}}`}if(this.branch("superscript")!==void 0){const E=Zo.serialize(this.superscript,y);E.length===0?b+="^{}":E.length===1?E==="\u2032"?b+="^\\prime ":E==="\u2033"?b+="^\\doubleprime ":/^[0-9]$/.test(E)?b+=`^${E}`:b+=`^{${E}}`:b+=`^{${E}}`}return b}get treeDepth(){let y=1,b=this.parent;for(;b;)b=b.parent,y+=1;return y}get inCaptureSelection(){let y=this;for(;y;){if(y.captureSelection)return!0;y=y.parent}return!1}get parentPrompt(){let y=this.parent;for(;y;){if(y.type==="prompt"&&!y.captureSelection)return y;y=y.parent}return null}branch(y){if(Mu(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of mc)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(Mu(y)),Mu(y)?(this._branches?this._branches[y]||(this._branches[y]=[this.makeFirstAtom(y)]):this._branches={[y]:[this.makeFirstAtom(y)]},this.isDirty=!0,this._branches[y]):[]}get row(){return Dc(this.parentBranch)?this.parentBranch[0]:-1}get col(){return Dc(this.parentBranch)?this.parentBranch[1]:-1}get body(){var y;return(y=this._branches)==null?void 0:y.body}set body(y){this.setChildren(y,"body")}get superscript(){var y;return(y=this._branches)==null?void 0:y.superscript}set superscript(y){this.setChildren(y,"superscript")}get subscript(){var y;return(y=this._branches)==null?void 0:y.subscript}set subscript(y){this.setChildren(y,"subscript")}get above(){var y;return(y=this._branches)==null?void 0:y.above}set above(y){this.setChildren(y,"above")}get below(){var y;return(y=this._branches)==null?void 0:y.below}set below(y){this.setChildren(y,"below")}get computedStyle(){var y,b;const E=typeof this.style.verbatimColor=="string",ee=typeof this.style.verbatimBackgroundColor=="string",ie=Ee(Ee({},(b=(y=this.parent)==null?void 0:y.computedStyle)!=null?b:{}),this.style);return delete ie.variant,delete ie.variantStyle,ee||delete ie.verbatimBackgroundColor,E||delete ie.verbatimColor,ie}applyStyle(y){this.isDirty=!0,this.style=Ee(Ee({},this.style),y),this.style.fontFamily==="none"&&delete this.style.fontFamily,this.style.fontShape==="auto"&&delete this.style.fontShape,this.style.fontSeries==="auto"&&delete this.style.fontSeries,this.style.color==="none"&&(delete this.style.color,delete this.style.verbatimColor),this.style.backgroundColor==="none"&&(delete this.style.backgroundColor,delete this.style.verbatimBackgroundColor),this.style.fontSize==="auto"&&delete this.style.fontSize;for(const b of this.children)b.applyStyle(y)}getInitialBaseElement(){var y,b,E;return this.hasEmptyBranch("body")?this:(console.assert(((y=this.body)==null?void 0:y[0].type)==="first"),(E=(b=this.body[1])==null?void 0:b.getInitialBaseElement())!=null?E:this)}getFinalBaseElement(){return this.hasEmptyBranch("body")?this:this.body[this.body.length-1].getFinalBaseElement()}isCharacterBox(){return this.type==="leftright"||this.type==="genfrac"||this.type==="subsup"||this.type==="delim"||this.type==="array"||this.type==="surd"?!1:this.getFinalBaseElement().type==="mord"}hasEmptyBranch(y){const b=this.branch(y);return b?(console.assert(b.length>0),console.assert(b[0].type==="first"),b.length===1):!0}setChildren(y,b){var E;if(!y||(console.assert(Mu(b)),!Mu(b)))return;console.assert(((E=y[0])==null?void 0:E.type)!=="first");const ee=[this.makeFirstAtom(b),...y];this._branches?this._branches[b]=ee:this._branches={[b]:ee};for(const ie of y)ie.parent=this,ie.parentBranch=b;this.isDirty=!0}makeFirstAtom(y){const b=new lc({type:"first",mode:this.mode});return b.parent=this,b.parentBranch=y,b}addChild(y,b){console.assert(y.type!=="first"),this.createBranch(b).push(y),this.isDirty=!0,y.parent=this,y.parentBranch=b}addChildBefore(y,b){console.assert(b.parentBranch!==void 0);const E=this.createBranch(b.parentBranch);E.splice(E.indexOf(b),0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildAfter(y,b){console.assert(b.parentBranch!==void 0);const E=this.createBranch(b.parentBranch);E.splice(E.indexOf(b)+1,0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildren(y,b){const E=this.createBranch(b);for(const ee of y)ee.parent=this,ee.parentBranch=b,E.push(ee);this.isDirty=!0}addChildrenAfter(y,b){console.assert(y.length===0||y[0].type!=="first"),console.assert(b.parentBranch!==void 0);const E=this.createBranch(b.parentBranch);E.splice(E.indexOf(b)+1,0,...y),this.isDirty=!0;for(const ee of y)ee.parent=this,ee.parentBranch=b.parentBranch;return y[y.length-1]}removeBranch(y){const b=this.branch(y);if(Mu(y)&&(this._branches[y]=void 0),!b)return[];for(const E of b)E.parent=void 0,E.parentBranch=void 0;return console.assert(b[0].type==="first"),b.shift(),this.isDirty=!0,b}removeChild(y){if(console.assert(y.parent===this),y.type==="first")return;const b=this.branch(y.parentBranch),E=b.indexOf(y);console.assert(E>=0),b.splice(E,1),this.isDirty=!0,y.parent=void 0,y.parentBranch=void 0}get siblings(){return this.parent?this.parent.branch(this.parentBranch):[]}get firstSibling(){return this.siblings[0]}get lastSibling(){const{siblings:y}=this;return y[y.length-1]}get isFirstSibling(){return this===this.firstSibling}get isLastSibling(){return this===this.lastSibling}get hasNoSiblings(){return this.siblings.length===1}get leftSibling(){console.assert(this.parent!==void 0);const y=this.parent.branch(this.parentBranch);return y[y.indexOf(this)-1]}get rightSibling(){console.assert(this.parent!==void 0);const y=this.parent.branch(this.parentBranch);return y[y.indexOf(this)+1]}get hasChildren(){return!!(this._branches&&this.children.length>0)}get firstChild(){return console.assert(this.hasChildren),this.children[0]}get lastChild(){console.assert(this.hasChildren);const{children:y}=this;return y[y.length-1]}get children(){if(this._children)return this._children;if(!this._branches)return[];const y=[];for(const b of mc)if(this._branches[b])for(const E of this._branches[b])y.push(...E.children),y.push(E);return this._children=y,y}render(y){if(this.type==="first"&&!y.atomIdsSettings)return null;const b=wr(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const E=new qa({parent:y},this.style);let ee=this.createBox(E,{classes:this.parent?"":"ML__base"});return ee?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(ee=this.attachSupsub(E,{base:ee})),ee.wrap(E)):null}attachSupsub(y,b){var E;const ee=b.base,ie=this.superscript,oe=this.subscript;if(!ie&&!oe)return ee;let fe=null,me=null;const be=(E=b.isCharacterBox)!=null?E:this.isCharacterBox();let ke=0;if(ie){const Sn=new qa({parent:y,mathstyle:"superscript"});fe=lc.createBox(Sn,ie),be||(ke=ee.height-y.metrics.supDrop*Sn.scalingFactor)}let Ke=0;if(oe){const Sn=new qa({parent:y,mathstyle:"subscript"});me=lc.createBox(Sn,oe),be||(Ke=ee.depth+y.metrics.subDrop*Sn.scalingFactor)}let rt;y.isDisplayStyle?rt=y.metrics.sup1:y.isCramped?rt=y.metrics.sup3:rt=y.metrics.sup2;const xt=.5/za/y.scalingFactor;let Ft=null;if(me&&fe){ke=Math.max(ke,rt,fe.depth+.25*y.metrics.xHeight),Ke=Math.max(Ke,y.metrics.sub2);const Sn=y.metrics.defaultRuleThickness;if(ke-fe.depth-(me.height-Ke)<4*Sn){Ke=4*Sn-(ke-fe.depth)+me.height;const xn=.8*y.metrics.xHeight-(ke-fe.depth);xn>0&&(ke+=xn,Ke-=xn)}const Fr=this.isExtensibleSymbol&&ee.italic?-ee.italic:0;Ft=new Lo({individualShift:[{box:me,shift:Ke,marginLeft:Fr},{box:fe,shift:-ke}]}).wrap(y)}else me&&!fe?(Ke=Math.max(Ke,y.metrics.sub1,me.height-.8*Za),Ft=new Lo({shift:Ke,children:[{box:me,marginRight:xt,marginLeft:this.isCharacterBox()?-ee.italic:0}]})):!me&&fe&&(ke=Math.max(ke,rt,fe.depth+.25*Za),Ft=new Lo({shift:-ke,children:[{box:fe,marginRight:xt}]}));return new Nr([ee,new Nr(Ft,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const E=this.superscript?lc.createBox(new qa({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ee=this.subscript?lc.createBox(new qa({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!E&&!ee?b.base.wrap(y):nh(y,ye(Ee({},b),{above:E,below:ee}))}bind(y,b){if(!b||y.isPhantom||this.value==="\u200B")return b;let E=this.parent;for(;E&&!E.captureSelection;)E=E.parent;return E!=null&&E.captureSelection||(this.id||(this.id=y.makeID()),b.atomID=this.id),b}createBox(y,b){var E,ee,ie,oe;const fe=(E=this.value)!=null?E:this.body,me=(ee=b==null?void 0:b.boxType)!=null?ee:cc(this.type);let be=(ie=b==null?void 0:b.classes)!=null?ie:"";this.mode==="text"&&(be+=" ML__text");const ke=typeof fe=="string"||fe===void 0?new Nr(fe!=null?fe:null,{type:me,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:ye(Ee({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:be}):(oe=lc.createBox(y,fe,{type:me,classes:be}))!=null?oe:new Nr(null);return y.isTight&&(ke.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(ke.italic=0),ke.right=ke.italic,this.bind(y,ke),this.caret&&!this.superscript&&!this.subscript&&(ke.caret=this.caret),ke}isDigit(){var y;return this.type==="mord"&&this.value?/^[\d,\.]$/.test(this.value):this.type==="group"&&((y=this.body)==null?void 0:y.length)===2?this.body[0].type==="first"&&this.body[1].value===",":!1}asDigit(){var y;return this.type==="mord"&&this.value&&/^[\d,\.]$/.test(this.value)?this.value:this.type==="group"&&((y=this.body)==null?void 0:y.length)===2&&this.body[0].type==="first"&&this.body[1].value===","?".":""}};function df(a){let y;const b=[];let E=[];for(const ee of a)if(!y&&!ee.style)E.push(ee);else{const ie=ee.computedStyle;y&&ie.color===y.color&&ie.backgroundColor===y.backgroundColor&&ie.fontSize===y.fontSize?E.push(ee):(E.length>0&&b.push(E),E=[ee],y=ie)}return E.length>0&&b.push(E),b}function ff(a,y,b){var E,ee,ie,oe,fe;if(!y||y.length===0)return null;const me=new qa({parent:a},b.style),be=!((E=me.atomIdsSettings)!=null&&E.groupNumbers);let ke=[];if(y.length===1){const rt=y[0],xt=rt.render(me);xt&&(be&&rt.isSelected&&xt.selected(!0),ke=[xt])}else{let rt="",xt=!0;for(const Ft of y){(ee=me.atomIdsSettings)!=null&&ee.groupNumbers&&rt&&(xt&&Ft.isDigit()||!xt&&Md(Ft))&&(me.atomIdsSettings.overrideID=rt);const Sn=Ft.render(me);me.atomIdsSettings&&(me.atomIdsSettings.overrideID=void 0),Sn&&((ie=me.atomIdsSettings)!=null&&ie.groupNumbers&&((Ft.isDigit()||Md(Ft))&&(!rt||xt!==Ft.isDigit())&&(xt=Ft.isDigit(),rt=(oe=Ft.id)!=null?oe:""),rt&&(!(Ft.isDigit()||Md(Ft))||!Ft.hasEmptyBranch("superscript")||!Ft.hasEmptyBranch("subscript"))&&(rt="")),be&&Ft.isSelected&&Sn.selected(!0),ke.push(Sn))}}if(ke.length===0)return null;const Ke=new Nr(ke,ye(Ee({isTight:me.isTight},b),{type:(fe=b.type)!=null?fe:"lift"}));return Ke.isSelected=ke.every(rt=>rt.isSelected),Ke.wrap(me)}function Md(a){return a.mode==="text"}function Bd(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof Zn?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var Bu=class kp extends Zn{constructor(y,b,E){super({type:"text",command:y,mode:"text",displayContainsHighlight:!0}),this.value=b,this.verbatimLatex=b,this.applyStyle(E)}static fromJson(y){return new kp(y.command,y.value,y.style)}render(y){const b=this.createBox(y);return this.caret&&(b.caret=this.caret),b}_serialize(y){var b;return(b=this.verbatimLatex)!=null?b:Ir("text",this.value.codePointAt(0))}};function Fc(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let E=0;for(;E<b&&ih(a.ranges[E],y.ranges[E])==="equal";)E++;return E===b?"equal":"different"}}return"different"}function ih(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function ll(a){let y=1/0,b=-1/0;for(const E of a.ranges)y=Math.min(y,E[0],E[1]),b=Math.max(b,E[0],E[1]);return[y,b]}function _u(a){return typeof a=="number"&&!Number.isNaN(a)}function qc(a){return Array.isArray(a)&&a.length===2}function $c(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function ah(a,y){const b=a.at(y);let E;if(b){E=b.mode;let ee=b.parent;for(;!E&ⅇ)ee&&(E=ee.mode),ee=ee.parent}return E}function hf(a,y){if(!y)return"";if(typeof y=="string")return y;if(!a||y.after===void 0)return y.value;let b=!1,E=!1,ee=!1,ie=!1,oe=!1,fe=!1,me=!1,be=!1,ke=!1,Ke=!1,rt=!1,xt=!1,Ft=!1,Sn=!1,Fr=!1,xn=a[0],tr=0;for(;xn!=null&&xn.type&&/^(subsup|placeholder)$/.test(xn.type);)tr+=1,xn=a[tr];return b=!xn||xn.type==="first",xn&&(Sn=xn.mode==="text",E=!Sn&&xn.type==="mord"&&ge.test(xn.value),ee=!Sn&&xn.type==="mord"&&/\d+$/.test(xn.value),ie=!Sn&&xn.isFunction,oe=xn.type==="genfrac",fe=xn.type==="surd",me=xn.type==="mbin",be=xn.type==="mrel",ke=xn.type==="mop"||xn.type==="operator"||xn.type==="extensible-symbol",Ke=xn.type==="mpunct"||xn.type==="minner",rt=xn.type==="array",xt=xn.type==="mopen",Ft=xn.type==="mclose"||xn.type==="leftright",Fr=xn.type==="space"),y.after.includes("nothing")&&b||y.after.includes("letter")&&E||y.after.includes("digit")&&ee||y.after.includes("function")&&ie||y.after.includes("frac")&&oe||y.after.includes("surd")&&fe||y.after.includes("binop")&&me||y.after.includes("relop")&&be||y.after.includes("operator")&&ke||y.after.includes("punct")&&Ke||y.after.includes("array")&&rt||y.after.includes("openfence")&&xt||y.after.includes("closefence")&&Ft||y.after.includes("text")&&Sn||y.after.includes("space")&&Fr?y.value:""}function Dd(a,y,b){return b?hf(a,b[y]):""}var pf={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\doubleprime}","'''":"^{\\prime\\prime\\prime}","''''":"^{\\prime\\prime\\prime\\prime}",alpha:"\\alpha",delta:"\\delta",Delta:"\\Delta",pi:"\\pi",Pi:"\\Pi",theta:"\\theta",Theta:"\\Theta",ii:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryI"},jj:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryJ"},ee:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\exponentialE"},nabla:"\\nabla",grad:"\\nabla",del:"\\partial",deg:{after:"digit+space",value:"\\degree"},infty:"\\infty","\u221E":"\\infty",oo:{after:"nothing+digit+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\infty"},"\u2211":"\\sum",sum:"\\sum_{#?}^{#?}",int:"\\int_{#?}^{#?}",prod:"\\prod_{#?}^{#?}",sqrt:"\\sqrt{#?}","\u2206":"\\differentialD","\u2202":"\\differentialD",arcsin:"\\arcsin",arccos:"\\arccos",arctan:"\\arctan",arcsec:"\\arcsec",arccsc:"\\arccsc",arsinh:"\\arsinh",arcosh:"\\arcosh",artanh:"\\artanh",arcsech:"\\arcsech",arccsch:"\\arccsch",arg:"\\arg",ch:"\\ch",cosec:"\\cosec",cosh:"\\cosh",cot:"\\cot",cotg:"\\cotg",coth:"\\coth",csc:"\\csc",ctg:"\\ctg",cth:"\\cth",sec:"\\sec",sinh:"\\sinh",sh:"\\sh",tanh:"\\tanh",tg:"\\tg",th:"\\th",sin:"\\sin",cos:"\\cos",tan:"\\tan",lg:"\\lg",lb:"\\lb",log:"\\log",ln:"\\ln",exp:"\\exp",lim:"\\lim_{#?}",dx:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD x"},dy:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD y"},dt:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD t"},AA:"\\forall",EE:"\\exists","!EE":"\\nexists","&&":"\\land",xin:{after:"nothing+text+relop+punct+openfence+space",value:"x \\in"},sint:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\sin t"},in:{after:"nothing+letter+closefence",value:"\\in"},"!in":"\\notin",NN:"\\mathbb{N}",ZZ:"\\Z",QQ:"\\Q",RR:"\\R",CC:"\\C",xx:"\\times","+-":"\\pm","\u2260":"\\ne","!=":"\\ne","\u2265":"\\ge",">=":"\\ge","\u2264":"\\le","<=":"\\le","<<":"\\ll",">>":"\\gg","~~":"\\approx","\u2248":"\\approx","?=":"\\questeq","\xF7":"\\div","\xAC":"\\neg",":=":"\\coloneq","::":"\\Colon","(:":"\\langle",":)":"\\rangle",beta:"\\beta",chi:"\\chi",epsilon:"\\epsilon",varepsilon:"\\varepsilon",eta:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta"},gamma:"\\gamma",Gamma:"\\Gamma",iota:"\\iota",kappa:"\\kappa",lambda:"\\lambda",Lambda:"\\Lambda",mu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu"},nu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu"},\u00B5:"\\mu",phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\phi"},Phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Phi"},varphi:"\\varphi",psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\psi"},Psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Psi"},rho:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\rho"},sigma:"\\sigma",Sigma:"\\Sigma",tau:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\tau"},vartheta:"\\vartheta",upsilon:"\\upsilon",xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\xi"},Xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Xi"},zeta:"\\zeta",omega:"\\omega",Omega:"\\Omega",\u03A9:"\\omega",forall:"\\forall",exists:"\\exists","!exists":"\\nexists",":.":"\\therefore",liminf:"\\liminf_{#?}",limsup:"\\limsup_{#?}",argmin:"\\operatorname*{arg~min}_{#?}",argmax:"\\operatorname*{arg~max}_{#?}",det:"\\det",mod:"\\bmod{#?}","(mod":"\\pmod{#?}",max:"\\max",min:"\\min",erf:"\\operatorname{erf}",erfc:"\\operatorname{erfc}",bessel:"\\operatorname{bessel}",mean:"\\operatorname{mean}",median:"\\operatorname{median}",fft:"\\operatorname{fft}",lcm:"\\operatorname{lcm}",gcd:"\\operatorname{gcd}",randomReal:"\\operatorname{randomReal}",randomInteger:"\\operatorname{randomInteger}",Re:"\\operatorname{Re}",Im:"\\operatorname{Im}",mm:{after:"nothing+digit+operator",value:"\\operatorname{mm}"},cm:{after:"nothing+digit+operator",value:"\\operatorname{cm}"},km:{after:"nothing+digit+operator",value:"\\operatorname{km}"},kg:{after:"nothing+digit+operator",value:"\\operatorname{kg}"},"...":"\\ldots","+...":"+\\cdots","-...":"-\\cdots","->...":"\\to\\cdots","-->...":"\\longrightarrow\\cdots","->":"\\to","|->":"\\mapsto","-->":"\\longrightarrow","<--":"\\longleftarrow","=>":"\\Rightarrow","==>":"\\Longrightarrow","<=>":"\\Leftrightarrow","<->":"\\leftrightarrow","(.)":"\\odot","(+)":"\\oplus","(/)":"\\oslash","(*)":"\\otimes","(-)":"\\ominus","||":"\\Vert","*":"\\cdot","**":"\\star","***":"\\ast","//":"\\slash","\\\\":"\\backslash",setminus:"\\backslash","|><":"\\ltimes","><|":"\\rtimes","|><|":"\\bowtie","-:":"\\div",divide:"\\div","@":"\\circ","^^":"\\wedge","^^^":"\\bigwedge",vv:"\\vee",vvv:"\\bigvee",nn:"\\cap",nnn:"\\bigcap",uu:"\\cup",uuu:"\\bigcup","-=":"\\equiv","~=":"\\cong",lt:"<","lt=":"\\leq",gt:">","gt=":"\\geq","-<":"\\prec","-lt":"\\prec","-<=":"\\preceq",">-=":"\\succeq",prop:"\\propto",diamond:"\\diamond",square:"\\square",iff:"\\iff",sub:"\\subset",sup:"\\supset",sube:"\\subseteq",supe:"\\supseteq",uarr:"\\uparrow",darr:"\\downarrow",rarr:"\\rightarrow",rArr:"\\Rightarrow",larr:"\\leftarrow",lArr:"\\Leftarrow",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",aleph:"\\aleph",and:"\\land",or:"\\lor",not:"\\neg","_|_":"\\bot",TT:"\\top","|--":"\\vdash","|==":"\\models","|__":"\\lfloor","__|":"\\rfloor","|~":"\\lceil","~|":"\\rceil",">->":"\\rightarrowtail","->>":"\\twoheadrightarrow",">->>":"\\twoheadrightarrowtail",frac:"\\frac{#?}{#?}",cbrt:"\\sqrt[3]{#?}",nthroot:"\\sqrt[#?]{#?}"};function Lc(a,y){var b;let E=(b=y==null?void 0:y.format)!=null?b:"auto";return E==="auto"&&([E,a]=gf(a)),E==="ascii-math"?(a=a.replace(/\u2061/gu,""),a=a.replace(/\u3016/gu,"{"),a=a.replace(/\u3017/gu,"}"),a=a.replace(/([^\\])sinx/g,"$1\\sin x"),a=a.replace(/([^\\])cosx/g,"$1\\cos x "),a=a.replace(/\u2013/g,"-"),["ascii-math",bl(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function bl(a,y){var b,E,ee;if(!a)return"";let ie=!1,oe;const fe=(b=y.inlineShortcuts)!=null?b:pf;if(!ie&&(a.startsWith("^")||a.startsWith("_"))&&(oe=Ku(a.slice(1),{inlineShortcuts:fe,noWrap:!0}),a=a[0]+"{"+oe.match+"}",a+=bl(oe.rest,y),ie=!0),ie||(oe=a.match(/^(sqrt|\u221A)(.*)/),oe&&(oe=Ku(oe[2],{inlineShortcuts:fe,noWrap:!0}),a="\\sqrt{"+((E=oe.match)!=null?E:"\\placeholder{}")+"}",a+=bl(oe.rest,y),ie=!0)),ie||(oe=a.match(/^(\\cbrt|\u221B)(.*)/),oe&&(oe=Ku(oe[2],{inlineShortcuts:fe,noWrap:!0}),a="\\sqrt[3]{"+((ee=oe.match)!=null?ee:"\\placeholder{}")+"}",a+=bl(oe.rest,y),ie=!0)),ie||(oe=a.match(/^abs(.*)/),oe&&(oe=Ku(oe[1],{inlineShortcuts:fe,noWrap:!0}),a="\\left|"+oe.match+"\\right|",a+=bl(oe.rest,y),ie=!0)),ie||(oe=a.match(/^["”“](.*?)["”“](.*)/),oe&&(a="\\text{"+oe[1]+"}",a+=bl(oe[2],y),ie=!0)),ie||(oe=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),oe&&(a=mf(oe[1],fe),a+=bl(oe[2],y),ie=!0)),!ie&&/^([fgh])[^a-zA-Z]/.test(a)&&(oe=Ku(a.slice(1),{inlineShortcuts:fe,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+oe.match+"\\right)":a[0]+oe.match,a+=bl(oe.rest,y),ie=!0),ie||(oe=a.match(/^([a-zA-Z]+)(.*)/),oe&&(a=mf(oe[1],fe),a+=bl(oe[2],y),ie=!0)),!ie)if(oe=Ku(a,{inlineShortcuts:fe,noWrap:!0}),oe.match&&oe.rest[0]==="/"){const me=Ku(oe.rest.slice(1),{inlineShortcuts:fe,noWrap:!0});me.match&&(a="\\frac{"+oe.match+"}{"+me.match+"}"+bl(me.rest,y)),ie=!0}else oe.match&&(a=a.startsWith("(")?"\\left("+oe.match+"\\right)"+bl(oe.rest,y):oe.match+bl(oe.rest,y),ie=!0);return ie||(oe=a.match(/^(\s+)(.*)$/),oe&&(a=" "+bl(oe[2],y),ie=!0)),a}function Ku(a,y){let b="";a=a.trim();let E=a,ee=a.charAt(0),ie={"(":")","{":"}","[":"]"}[ee];if(ie){let oe=1,fe=1;for(;fe<a.length&&oe>0;)a[fe]===ee&&oe++,a[fe]===ie&&oe--,fe++;oe===0?(y.noWrap&&ee==="("?b=bl(a.substring(1,fe-1),y):(ee==="{"&&ie==="}"&&(ee="\\{",ie="\\}"),b="\\left"+ee+bl(a.substring(1,fe-1),y)+"\\right"+ie),E=a.slice(Math.max(0,fe))):(b=a.substring(1,fe),E="")}else{let oe=a.match(/^([a-zA-Z]+)/);if(oe){let fe=Dd(null,a,y.inlineShortcuts);if(fe)return fe=fe.replace("_{#?}",""),fe=fe.replace("^{#?}",""),{match:fe,rest:a.slice(fe.length)}}if(oe=a.match(/^([a-zA-Z])/),oe)return{match:oe[1],rest:a.slice(1)};if(oe=a.match(/^(-)?\d+(\.\d*)?/),oe)return{match:oe[0],rest:a.slice(oe[0].length)};/^\\(left|right)/.test(a)||(oe=a.match(/^(\\[a-zA-Z]+)/),oe&&(E=a.slice(oe[1].length),b=oe[1]))}return{match:b,rest:E}}function mf(a,y){let b=Dd(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var Fd=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function Hu(a){const y=a.trim();for(const b of Fd)if(y.startsWith(b[0])&&y.endsWith(b[1]))return[!0,y.substring(b[0].length,y.length-b[1].length)];return[!1,a]}function gf(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=Hu(a),y?["latex",a]:a.startsWith("`")&&a.endsWith("`")?(a=a.substring(1,a.length-1),["ascii-math",a]):a.includes("\\")?["latex",a]:/\$.+\$/.test(a)?["latex",`\\text{${a}}`]:[void 0,a]}var ed="$$",oh="$$",sh=(a,y,b)=>(Fd.some(E=>y.startsWith(E[0])&&y.endsWith(E[1]))||(y=`${ed} ${y} ${oh}`),y),vf=class th{constructor(y){th._modes[y]=this}static onPaste(y,b,E){var ee;if(!b.contentEditable&&b.userSelect==="none")return b.model.announce("plonk"),!1;if(typeof E=="string"){const oe=new DataTransfer;oe.setData("text/plain",E),E=oe}const ie=new ClipboardEvent("paste",{clipboardData:E,cancelable:!0});return(ee=b.host)!=null&&ee.dispatchEvent(ie)?th._modes[y].onPaste(b,E):!1}static copyToClipboard(y,b){if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const E=y.model,ee=E.selectionIsCollapsed?[0,E.lastOffset]:ll(E.selection),ie=E.getValue(ee,b);navigator.clipboard.writeText(ie).then(()=>{},()=>y.model.announce("plonk"))}static onCopy(y,b){var E;if(!b.clipboardData)return;if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const ee=y.model,ie=ee.selectionIsCollapsed?[0,ee.lastOffset]:ll(ee.selection);let oe=ee.getAtoms(ie);if(oe.every(fe=>fe.mode==="text"||!fe.mode))b.clipboardData.setData("text/plain",oe.filter(fe=>fe instanceof Bu).map(fe=>fe.value).join(""));else if(oe.every(fe=>fe.mode==="latex"))b.clipboardData.setData("text/plain",ee.getAtoms(ie,{includeChildren:!0}).map(fe=>{var me;return(me=fe.value)!=null?me:""}).join(""));else{let fe;oe.length===1&&oe[0].verbatimLatex!==void 0?fe=oe[0].verbatimLatex:fe=ee.getValue(ie,"latex-expanded"),b.clipboardData.setData("application/x-latex",fe);try{b.clipboardData.setData("text/plain",y.options.onExport(y,fe,ie))}catch(me){}if(oe.length===1){const me=oe[0];(me.type==="root"||me.type==="group")&&(oe=me.body.filter(be=>be.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(oe.map(me=>me.toJson())))}catch(me){}if((E=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&E.ComputeEngine){const me=window.MathfieldElement.computeEngine;if(me)try{const be=me.jsonSerializationOptions;me.jsonSerializationOptions={metadata:["latex"]};const ke=me.parse(ee.getValue(ie,"latex-unstyled"));me.jsonSerializationOptions=be;const Ke=JSON.stringify(ke.json);Ke&&b.clipboardData.setData("application/json",Ke)}catch(be){}}}b.preventDefault()}static insert(y,b,E={}){var ee;const ie=E.mode==="auto"?y.mode:(ee=E.mode)!=null?ee:y.mode;return th._modes[ie].insert(y,b,E)}onPaste(y,b){return!1}insert(y,b,E){return!1}};vf._modes={};var La=vf,lh=[{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendSelectionBackward"},{key:"shift+[ArrowRight]",command:"extendSelectionForward"},{key:"shift+[ArrowUp]",command:"extendSelectionUpward"},{key:"shift+[ArrowDown]",command:"extendSelectionDownward"},{key:"[Backspace]",command:"deleteBackward"},{key:"alt+[Delete]",command:"deleteBackward"},{key:"[Delete]",command:"deleteForward"},{key:"alt+[Backspace]",command:"deleteForward"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"shift+alt+[ArrowLeft]",command:"extendToPreviousWord"},{key:"shift+alt+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"shift+ctrl+[ArrowLeft]",command:"extendToGroupStart"},{key:"shift+ctrl+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Home]",command:"moveToMathfieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathfieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"shift+cmd+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathfieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathfieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"shift+cmd+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",command:"moveToNextGroup"},{key:"shift+[Tab]",command:"moveToPreviousGroup"},{key:"[Escape]",ifMode:"math",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"text",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"latex",command:["complete","complete",{selectItem:"true"}]},{key:"\\",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[IntlBackslash]",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[Tab]",ifMode:"latex",command:["complete","accept-suggestion"]},{key:"[Return]",ifMode:"latex",command:"complete"},{key:"[Enter]",ifMode:"latex",command:"complete"},{key:"shift+[Escape]",ifMode:"latex",command:["complete","reject"]},{key:"[ArrowDown]",ifMode:"latex",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"latex",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deleteBackward"},{key:"[Undo]",command:"undo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"cmd+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"ctrl+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"cmd+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"ctrl+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"cmd+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+y",command:"redo"},{key:"shift+ctrl+z",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+z",command:"redo"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathfieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathfieldEnd"},{key:"shift+ctrl+b",ifPlatform:"macos",command:"extendSelectionBackward"},{key:"shift+ctrl+f",ifPlatform:"macos",command:"extendSelectionForward"},{key:"shift+ctrl+p",ifPlatform:"macos",command:"extendSelectionUpward"},{key:"shift+ctrl+n",ifPlatform:"macos",command:"extendSelectionDownward"},{key:"shift+ctrl+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"shift+ctrl+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"alt+ctrl+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"alt+ctrl+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"shift+alt+ctrl+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"shift+alt+ctrl+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deleteBackward"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteForward"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"alt+p",ifMode:"math",command:["insert","\\pi"]},{key:"alt+v",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"alt+o",ifMode:"math",command:["insert","\\emptyset"]},{key:"alt+d",ifMode:"math",command:["insert","\\differentialD"]},{key:"shift+alt+o",ifMode:"math",command:["insert","\\varnothing"]},{key:"shift+alt+d",ifMode:"math",command:["insert","\\partial"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","\\backslash"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+alt+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleContextMenu"},{key:"alt+shift+[Space]",command:"toggleVirtualKeyboard"},{key:"alt+ctrl+[ArrowUp]",command:["speak","all",{withHighlighting:!1}]},{key:"alt+ctrl+[ArrowDown]",command:["speak","selection",{withHighlighting:!1}]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["switchMode","text","",""]},{key:"shift+alt+[KeyT]",ifMode:"math",command:["switchMode","text","",""]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"text",command:["switchMode","math","",""]},{key:"shift+alt+[KeyT]",ifMode:"text",command:["switchMode","math","",""]},{key:"/",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+shift+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrack #0 \\right\\rbrack"]},{key:"ctrl+[Minus]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"moveToSubscript"},{key:"shift+alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrace #0 \\right\\rbrace"]},{key:"ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"shift+ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"shift+cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Backspace]",ifMode:"math",command:"removeRow"},{key:"cmd+[Backspace]",ifMode:"math",command:"removeRow"},{key:"alt+[Tab]",ifMode:"math",command:"addColumnAfter"},{key:"shift+alt+[Tab]",ifMode:"math",command:"addColumnBefore"},{key:"alt+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Enter]",ifMode:"math",command:"addRowBefore"},{key:"alt+[Return]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Return]",ifMode:"math",command:"addRowBefore"},{key:"shift+[Backspace]",ifMode:"math",command:"removeColumn"},{key:"alt+[Digit5]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","$\\infty"]},{key:"alt+[Digit9]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert",")"]},{key:"alt+|",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","|"]},{key:"shift+[Backquote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\~"]},{key:"[Backquote]",ifLayout:["windows.french","linux.french"],ifMode:"math",command:["insert","^2"]},{key:"[Backquote]",ifLayout:["windows.german","linux.german"],ifMode:"math",command:["insert","^"]},{key:"[IntlBackslash]",ifLayout:["apple.german"],ifMode:"math",command:["insert","^"]}],Ld={"\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\infty":"alt+[Digit5]","\\differentialD":"alt+d","\\partial":"shift+alt+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"shift+alt+o","\\~":"~"};function su(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function lu(a){var y,b;return(b=(y=a.querySelector(".ML__caret"))!=null?y:a.querySelector(".ML__text-caret"))!=null?b:a.querySelector(".ML__latex-caret")}function zu(a){const y=lu(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function Td(a){var y;if(!a.parent)return"root";let b=(y=a.parent.id)!=null?y:"";return b+=typeof a.parentBranch=="string"?"-"+a.parentBranch:`-${a.parentBranch[0]}/${a.parentBranch[0]}`,b}function Pd(a,y,b){if(!y)return null;const E=a.field.getBoundingClientRect(),ee=y.right-y.left,ie=y.bottom-y.top,oe=Math.ceil(y.left-E.left+a.field.scrollLeft*b),fe=Math.ceil(y.top-E.top);return{left:oe,right:oe+ee,top:fe,bottom:fe+ie}}function Nd(a){const y=a.getBoundingClientRect(),b=parseInt(getComputedStyle(a).marginRight),E={top:y.top-1,bottom:y.bottom,left:y.left,right:y.right-1+b};if(a.children.length===0||a.tagName.toUpperCase()==="SVG")return E;for(const ee of a.children)if(ee.nodeType===1&&"atomId"in ee.dataset&&!ee.classList.contains("pstrut")){const ie=Nd(ee);E.left=Math.min(E.left,ie.left),E.right=Math.max(E.right,ie.right),E.top=Math.min(E.top,ie.top),E.bottom=Math.max(E.bottom,ie.bottom)}return E}function gc(a,y){var b,E;if(!y.id)return null;let ee=(E=(b=a.atomBoundsCache)==null?void 0:b.get(y.id))!=null?E:null;if(ee!==null)return ee;const ie=a.field.querySelector(`[data-atom-id="${y.id}"]`);return ee=ie?Nd(ie):null,a.atomBoundsCache&&(ee?a.atomBoundsCache.set(y.id,ee):a.atomBoundsCache.delete(y.id)),ee!=null?ee:null}function yf(a,y,b){const E=new Map;for(const ee of a.model.getAtoms(y,{includeChildren:!0})){if(b!=null&&b.excludeAtomsWithBackground&&ee.style.backgroundColor)continue;const ie=a.field,oe=ie.offsetWidth;let me=Math.floor(ie.getBoundingClientRect().width)/oe;me=isNaN(me)?1:me;const be=Pd(a,gc(a,ee),me);if(be){const ke=Td(ee);if(E.has(ke)){const Ke=E.get(ke);E.set(ke,{left:Math.min(Ke.left,be.left),right:Math.max(Ke.right,be.right),top:Math.min(Ke.top,be.top),bottom:Math.max(Ke.bottom,be.bottom)})}else E.set(ke,be)}}return[...E.values()]}function Id(a,y){return a.model.selection.ranges.reduce((b,E)=>b.concat(...yf(a,E,y)),[])}function Od(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function td(a){let y=0,b=0;const E=a.offsetWidth,ee=a.offsetHeight;for(;a instanceof HTMLElement;)y+=a.offsetTop,b+=a.offsetLeft,a=a.offsetParent;return new DOMRect(b,y,E,ee)}var bf=`@keyframes ML__caret-blink {
|
|
|
0%,
|
|
|
100% {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
50% {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
}
|
|
|
.ML__container {
|
|
|
display: inline-flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: space-between;
|
|
|
align-items: flex-end;
|
|
|
min-height: 39px;
|
|
|
/* Need some room for the virtual keyboard toggle */
|
|
|
width: 100%;
|
|
|
/* Encourage browsers to consider allocating a hardware accelerated
|
|
|
layer for this element. */
|
|
|
isolation: isolate;
|
|
|
/* Prevent the browser from trying to interpret touch gestures in the field */
|
|
|
/* "Disabling double-tap to zoom removes the need for browsers to
|
|
|
delay the generation of click events when the user taps the screen." */
|
|
|
touch-action: none;
|
|
|
--_caret-color: var(--caret-color, hsl(var(--_hue), 40%, 49%));
|
|
|
--_selection-color: var(--selection-color, #000);
|
|
|
--_selection-background-color: var(--selection-background-color, hsl(var(--_hue), 70%, 85%));
|
|
|
--_text-highlight-background-color: var(--highlight-text, hsla(var(--_hue), 40%, 50%, 0.1));
|
|
|
--_contains-highlight-background-color: var(--contains-highlight-background-color, hsl(var(--_hue), 40%, 95%));
|
|
|
--_smart-fence-color: var(--smart-fence-color, currentColor);
|
|
|
--_smart-fence-opacity: var(--smart-fence-opacity, 0.5);
|
|
|
--_latex-color: var(--latex-color, hsl(var(--_hue), 80%, 40%));
|
|
|
--_correct-color: var(--correct-color, #10a000);
|
|
|
--_incorrect-color: var(--incorrect-color, #a01b00);
|
|
|
--_composition-background-color: var(--composition-background-color, #fff1c2);
|
|
|
--_composition-text-color: var(--composition-text-color, black);
|
|
|
--_composition-underline-color: var(--composition-underline-color, transparent);
|
|
|
}
|
|
|
/* This is the actual field content (formula) */
|
|
|
.ML__content {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
align-self: center;
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
padding: 2px 3px 2px 1px;
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle,
|
|
|
.ML__menu-toggle {
|
|
|
box-sizing: border-box;
|
|
|
display: flex;
|
|
|
align-self: center;
|
|
|
align-items: center;
|
|
|
flex-shrink: 0;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
width: 34px;
|
|
|
height: 34px;
|
|
|
padding: 0;
|
|
|
margin-right: 4px;
|
|
|
cursor: pointer;
|
|
|
/* Avoid some weird blinking with :hover */
|
|
|
border-radius: 8px;
|
|
|
border: 1px solid transparent;
|
|
|
transition: background 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
|
|
|
color: hsl(var(--_hue), 40%, 50%);
|
|
|
fill: currentColor;
|
|
|
background: transparent;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle:hover,
|
|
|
.ML__menu-toggle:hover {
|
|
|
background: hsla(0, 0%, 70%, 0.3);
|
|
|
color: #333;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle > span,
|
|
|
.ML__menu-toggle > span {
|
|
|
display: flex;
|
|
|
align-self: center;
|
|
|
align-items: center;
|
|
|
}
|
|
|
/* The invisible element used to capture keyboard events. We're just trying
|
|
|
really hard to make sure it doesn't show. */
|
|
|
.ML__keyboard-sink {
|
|
|
display: inline-block;
|
|
|
resize: none;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
/* Need these for Microsoft Edge */
|
|
|
position: fixed;
|
|
|
clip: rect(0 0 0 0);
|
|
|
/* Need this to prevent iOS Safari from auto-zooming */
|
|
|
font-size: 1em;
|
|
|
font-family: KaTeX_Main;
|
|
|
line-height: 0.5;
|
|
|
/* On Chromium, if this is 0, no keyboard events are received */
|
|
|
}
|
|
|
[part="placeholder"] {
|
|
|
color: var(--neutral-400);
|
|
|
}
|
|
|
.ML__composition {
|
|
|
background: var(--_composition-background-color);
|
|
|
color: var(--_composition-text-color);
|
|
|
text-decoration: underline var(--_composition-underline-color);
|
|
|
}
|
|
|
.ML__caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
width: 0;
|
|
|
display: inline-block;
|
|
|
height: 0.76em;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_caret-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.045em;
|
|
|
bottom: -0.05em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__text-caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
width: 0;
|
|
|
display: inline-block;
|
|
|
height: 0.76em;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_caret-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.045em;
|
|
|
bottom: -0.05em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__latex-caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_latex-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.019em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__focused .ML__latex-caret::after,
|
|
|
.ML__focused .ML__text-caret::after,
|
|
|
.ML__focused .ML__caret::after {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.ML__focused .ML__text {
|
|
|
background: var(--_text-highlight-background-color);
|
|
|
}
|
|
|
/* When using smartFence, the anticipated closing fence is displayed
|
|
|
with this style */
|
|
|
.ML__smart-fence__close {
|
|
|
opacity: var(--_smart-fence-opacity);
|
|
|
color: var(--_smart-fence-color);
|
|
|
}
|
|
|
.ML__selected,
|
|
|
.ML__focused .ML__selected .ML__contains-caret,
|
|
|
.ML__focused .ML__selected .ML__smart-fence__close,
|
|
|
.ML__focused .ML__selected .ML__placeholder {
|
|
|
color: var(--_selection-color);
|
|
|
opacity: 1;
|
|
|
}
|
|
|
.ML__selection {
|
|
|
box-sizing: border-box;
|
|
|
background: var(--_selection-background-color) !important;
|
|
|
}
|
|
|
.ML__contains-caret.ML__close,
|
|
|
.ML__contains-caret.ML__open,
|
|
|
.ML__contains-caret > .ML__close,
|
|
|
.ML__contains-caret > .ML__open,
|
|
|
.ML__contains-caret .ML__sqrt-sign,
|
|
|
.ML__contains-caret .ML__sqrt-line {
|
|
|
color: var(--_caret-color);
|
|
|
}
|
|
|
.ML__contains-highlight {
|
|
|
box-sizing: border-box;
|
|
|
background: transparent;
|
|
|
}
|
|
|
.ML__focused .ML__contains-highlight {
|
|
|
background: var(--_contains-highlight-background-color);
|
|
|
}
|
|
|
.ML__raw-latex {
|
|
|
font-family: 'Berkeley Mono', 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
|
|
|
font-weight: 400;
|
|
|
font-size: 0.8em;
|
|
|
letter-spacing: -0.05em;
|
|
|
color: var(--_latex-color);
|
|
|
}
|
|
|
.ML__suggestion {
|
|
|
color: var(--neutral-500);
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle.is-visible.is-pressed:hover {
|
|
|
background: hsl(var(--_hue), 25%, 35%);
|
|
|
color: #fafafa;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle:focus {
|
|
|
outline: none;
|
|
|
border-radius: 8px;
|
|
|
border: 2px solid hsl(var(--_hue), 40%, 50%);
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle.is-pressed,
|
|
|
.ML__virtual-keyboard-toggle.is-active:hover,
|
|
|
.ML__virtual-keyboard-toggle.is-active {
|
|
|
background: hsl(var(--_hue), 25%, 35%);
|
|
|
color: #fafafa;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
/* Add an attribute 'data-tooltip' to automatically show a
|
|
|
tooltip over a element on hover.
|
|
|
*/
|
|
|
[data-tooltip] {
|
|
|
position: relative;
|
|
|
}
|
|
|
[data-tooltip]::after {
|
|
|
content: attr(data-tooltip);
|
|
|
position: absolute;
|
|
|
display: block;
|
|
|
z-index: 2;
|
|
|
pointer-events: none;
|
|
|
right: auto;
|
|
|
top: calc(-100% - 4px);
|
|
|
width: max-content;
|
|
|
max-width: 200px;
|
|
|
padding: 8px 8px;
|
|
|
border-radius: 4px;
|
|
|
background: #616161;
|
|
|
color: #fff;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
text-align: center;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-style: normal;
|
|
|
font-weight: 400;
|
|
|
font-size: 13px;
|
|
|
/* Phone */
|
|
|
opacity: 0;
|
|
|
transform: scale(0.5);
|
|
|
}
|
|
|
@media only screen and (max-width: 767px) {
|
|
|
[data-tooltip]::after {
|
|
|
padding: 8px 16px;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
}
|
|
|
menu [data-tooltip]::after {
|
|
|
left: 100%;
|
|
|
top: 0%;
|
|
|
}
|
|
|
menu .ML__base {
|
|
|
cursor: default;
|
|
|
}
|
|
|
/** Don't display if we're tracking, i.e. have the pointer down */
|
|
|
.tracking [data-tooltip]:hover::after {
|
|
|
/* Use visibility, not display. Display will remove the after from the DOM, and the override below will not work */
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
/** But do display if tracking and inside a menu */
|
|
|
.tracking menu li[data-tooltip]:hover::after,
|
|
|
[data-tooltip]:hover::after {
|
|
|
visibility: visible;
|
|
|
opacity: 1;
|
|
|
transform: scale(1);
|
|
|
transition-property: opacity, scale;
|
|
|
transition-duration: 0.15s;
|
|
|
transition-delay: 1s;
|
|
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__prompt {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.ML__editablePromptBox {
|
|
|
outline: 1px solid #acacac;
|
|
|
border-radius: 2px;
|
|
|
z-index: -1;
|
|
|
}
|
|
|
.ML__focusedPromptBox {
|
|
|
outline: highlight auto 1px;
|
|
|
}
|
|
|
.ML__lockedPromptBox {
|
|
|
background-color: rgba(142, 142, 141, 0.4);
|
|
|
z-index: -1;
|
|
|
}
|
|
|
.ML__correctPromptBox {
|
|
|
outline: 1px solid var(--_correct-color);
|
|
|
box-shadow: 0 0 5px var(--_correct-color);
|
|
|
}
|
|
|
.ML__incorrectPromptBox {
|
|
|
outline: 1px solid var(--_incorrect-color);
|
|
|
box-shadow: 0 0 5px var(--_incorrect-color);
|
|
|
}
|
|
|
.variant-submenu {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
padding: 8px;
|
|
|
}
|
|
|
.variant-submenu [part=menu-item] {
|
|
|
font-size: 2rem;
|
|
|
text-align: center;
|
|
|
margin: 0;
|
|
|
}
|
|
|
.insert-matrix-submenu {
|
|
|
display: grid;
|
|
|
padding: 8px;
|
|
|
align-content: center;
|
|
|
justify-content: center;
|
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
|
}
|
|
|
.insert-matrix-submenu [part=menu-item] {
|
|
|
font-size: 21px;
|
|
|
border: none;
|
|
|
border-radius: 0;
|
|
|
line-height: 21px;
|
|
|
text-align: center;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
}
|
|
|
.border-submenu [part=menu-item] {
|
|
|
font-size: 2rem;
|
|
|
line-height: 1.2;
|
|
|
text-align: center;
|
|
|
}
|
|
|
.swatches-submenu {
|
|
|
--_swatch-size: 2rem;
|
|
|
--_columns: 4;
|
|
|
display: flex;
|
|
|
flex-flow: wrap;
|
|
|
padding: 8px;
|
|
|
max-width: calc(var(--_columns) * (var(--_swatch-size) + 18px) + 16px);
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.menu-swatch {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
box-sizing: border-box;
|
|
|
width: fit-content;
|
|
|
height: fit-content;
|
|
|
margin: 2px;
|
|
|
padding: 0;
|
|
|
background: var(--neutral-200);
|
|
|
}
|
|
|
.menu-swatch > .label {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
line-height: 0;
|
|
|
}
|
|
|
.menu-swatch > .label > span {
|
|
|
display: inline-block;
|
|
|
margin: 6px;
|
|
|
min-width: var(--_swatch-size);
|
|
|
min-height: var(--_swatch-size);
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
.menu-swatch.active {
|
|
|
background: var(--neutral-100);
|
|
|
scale: 1.4;
|
|
|
}
|
|
|
.menu-swatch.active > .label > span {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.menu-swatch .ui-checkmark,
|
|
|
.menu-swatch .ui-mixedmark {
|
|
|
position: absolute;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
color: white;
|
|
|
}
|
|
|
.menu-swatch.dark-contrast .ui-checkmark,
|
|
|
.menu-swatch.dark-contrast .ui-mixedmark {
|
|
|
color: #000;
|
|
|
}
|
|
|
`,Mo=`.ML__container {
|
|
|
min-height: auto !important;
|
|
|
--_hue: var(--hue, 212);
|
|
|
--_placeholder-color: var(--placeholder-color, hsl(var(--_hue), 40%, 49%));
|
|
|
--_placeholder-opacity: var(--placeholder-opacity, 0.4);
|
|
|
--_text-font-family: var(--text-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif);
|
|
|
}
|
|
|
.ML__sr-only {
|
|
|
position: absolute;
|
|
|
width: 1px;
|
|
|
height: 1px;
|
|
|
margin: -1px;
|
|
|
padding: 0;
|
|
|
overflow: hidden;
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
clip-path: inset(50%);
|
|
|
white-space: nowrap;
|
|
|
border: 0;
|
|
|
}
|
|
|
.ML__is-inline {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__base {
|
|
|
visibility: inherit;
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
cursor: text;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
box-sizing: content-box;
|
|
|
border: 0;
|
|
|
outline: 0;
|
|
|
vertical-align: baseline;
|
|
|
font-weight: inherit;
|
|
|
font-family: inherit;
|
|
|
font-style: inherit;
|
|
|
text-decoration: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__strut,
|
|
|
.ML__strut--bottom {
|
|
|
display: inline-block;
|
|
|
min-height: 0.5em;
|
|
|
}
|
|
|
.ML__small-delim {
|
|
|
font-family: KaTeX_Main;
|
|
|
}
|
|
|
/* Text mode */
|
|
|
.ML__text {
|
|
|
font-family: var(--_text-font-family);
|
|
|
white-space: pre;
|
|
|
}
|
|
|
/* Use cmr for 'math upright' */
|
|
|
.ML__cmr {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-style: normal;
|
|
|
}
|
|
|
.ML__mathit {
|
|
|
font-family: KaTeX_Math;
|
|
|
/* The KaTeX_Math font is italic by default, so the font-style below is only
|
|
|
useful when a fallback font is used
|
|
|
*/
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__mathbf {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
/* Lowercase greek symbols should stick to math font when \\mathbf is applied
|
|
|
to match TeX idiosyncratic behavior */
|
|
|
.lcGreek.ML__mathbf {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: normal;
|
|
|
}
|
|
|
.ML__mathbfit {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: bold;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__ams {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
/* Blackboard */
|
|
|
.ML__bb {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
.ML__cal {
|
|
|
font-family: KaTeX_Caligraphic;
|
|
|
}
|
|
|
.ML__frak {
|
|
|
font-family: KaTeX_Fraktur;
|
|
|
}
|
|
|
.ML__tt {
|
|
|
font-family: KaTeX_Typewriter;
|
|
|
}
|
|
|
.ML__script {
|
|
|
font-family: KaTeX_Script;
|
|
|
}
|
|
|
.ML__sans {
|
|
|
font-family: KaTeX_SansSerif;
|
|
|
}
|
|
|
.ML__series_ul {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_el {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_l {
|
|
|
font-weight: 200;
|
|
|
}
|
|
|
.ML__series_sl {
|
|
|
font-weight: 300;
|
|
|
}
|
|
|
.ML__series_sb {
|
|
|
font-weight: 500;
|
|
|
}
|
|
|
.ML__bold,
|
|
|
.ML__boldsymbol {
|
|
|
font-weight: 700;
|
|
|
}
|
|
|
.ML__series_eb {
|
|
|
font-weight: 800;
|
|
|
}
|
|
|
.ML__series_ub {
|
|
|
font-weight: 900;
|
|
|
}
|
|
|
.ML__series_uc {
|
|
|
font-stretch: ultra-condensed;
|
|
|
}
|
|
|
.ML__series_ec {
|
|
|
font-stretch: extra-condensed;
|
|
|
}
|
|
|
.ML__series_c {
|
|
|
font-stretch: condensed;
|
|
|
}
|
|
|
.ML__series_sc {
|
|
|
font-stretch: semi-condensed;
|
|
|
}
|
|
|
.ML__series_sx {
|
|
|
font-stretch: semi-expanded;
|
|
|
}
|
|
|
.ML__series_x {
|
|
|
font-stretch: expanded;
|
|
|
}
|
|
|
.ML__series_ex {
|
|
|
font-stretch: extra-expanded;
|
|
|
}
|
|
|
.ML__series_ux {
|
|
|
font-stretch: ultra-expanded;
|
|
|
}
|
|
|
.ML__it {
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__shape_ol {
|
|
|
-webkit-text-stroke: 1px black;
|
|
|
text-stroke: 1px black;
|
|
|
color: transparent;
|
|
|
}
|
|
|
.ML__shape_sc {
|
|
|
font-variant: small-caps;
|
|
|
}
|
|
|
.ML__shape_sl {
|
|
|
font-style: oblique;
|
|
|
}
|
|
|
/* First level emphasis */
|
|
|
.ML__emph {
|
|
|
color: #bc2612;
|
|
|
}
|
|
|
/* Second level emphasis */
|
|
|
.ML__emph .ML__emph {
|
|
|
color: #0c7f99;
|
|
|
}
|
|
|
.ML__highlight {
|
|
|
color: #007cb2;
|
|
|
background: #edd1b0;
|
|
|
}
|
|
|
.ML__center {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__label_padding {
|
|
|
padding: 0 0.5em;
|
|
|
}
|
|
|
.ML__frac-line {
|
|
|
width: 100%;
|
|
|
min-height: 1px;
|
|
|
}
|
|
|
.ML__frac-line:after {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: max(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
/* There's a bug since Chrome 62 where
|
|
|
sub-pixel border lines don't draw at some zoom
|
|
|
levels (110%, 90%).
|
|
|
Setting the min-height used to work around it, but that workaround
|
|
|
broke in Chrome 84 or so.
|
|
|
Setting the background (and the min-height) seems to work for now.
|
|
|
*/
|
|
|
background: currentColor;
|
|
|
box-sizing: content-box;
|
|
|
/* Vuetify sets the box-sizing to inherit
|
|
|
causes the fraction line to not draw at all sizes (see #26) */
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__sqrt-sign {
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__sqrt-line {
|
|
|
display: inline-block;
|
|
|
height: max(1px, 0.04em);
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__sqrt-line:before {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: min(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
background: currentColor;
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt-line:after {
|
|
|
border-bottom-width: 1px;
|
|
|
content: ' ';
|
|
|
display: block;
|
|
|
margin-top: -0.1em;
|
|
|
}
|
|
|
.ML__sqrt-index {
|
|
|
margin-left: 0.27777778em;
|
|
|
margin-right: -0.55555556em;
|
|
|
}
|
|
|
.ML__delim-size1 {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-size2 {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__delim-size3 {
|
|
|
font-family: KaTeX_Size3;
|
|
|
}
|
|
|
.ML__delim-size4 {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size1 > span {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size4 > span {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__accent-body > span {
|
|
|
font-family: KaTeX_Main;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__accent-vec {
|
|
|
position: relative;
|
|
|
left: 0.24em;
|
|
|
}
|
|
|
/** The markup for a LaTeX formula, either in an editable mathfield or
|
|
|
in a static display.
|
|
|
*/
|
|
|
.ML__latex {
|
|
|
display: inline-block;
|
|
|
direction: ltr;
|
|
|
text-align: left;
|
|
|
text-indent: 0;
|
|
|
text-rendering: auto;
|
|
|
font-family: KaTeX_Main, 'Times New Roman', serif;
|
|
|
font-style: normal;
|
|
|
font-size-adjust: none;
|
|
|
font-stretch: normal;
|
|
|
font-variant-caps: normal;
|
|
|
letter-spacing: normal;
|
|
|
line-height: 1.2;
|
|
|
word-wrap: normal;
|
|
|
word-spacing: normal;
|
|
|
white-space: nowrap;
|
|
|
text-shadow: none;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__latex .style-wrap {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .mfrac {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .left-right {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist-t {
|
|
|
display: inline-table;
|
|
|
table-layout: fixed;
|
|
|
border-collapse: collapse;
|
|
|
}
|
|
|
.ML__latex .vlist-r {
|
|
|
display: table-row;
|
|
|
}
|
|
|
.ML__latex .vlist {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span {
|
|
|
display: block;
|
|
|
height: 0;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span > span {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist > span > .pstrut {
|
|
|
overflow: hidden;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__latex .vlist-t2 {
|
|
|
margin-right: -2px;
|
|
|
}
|
|
|
.ML__latex .vlist-s {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
font-size: 1px;
|
|
|
width: 2px;
|
|
|
min-width: 2px;
|
|
|
}
|
|
|
.ML__latex .msubsup {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .negativethinspace {
|
|
|
display: inline-block;
|
|
|
margin-left: -0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thinspace {
|
|
|
display: inline-block;
|
|
|
width: 0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .mediumspace {
|
|
|
display: inline-block;
|
|
|
width: 0.22222em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thickspace {
|
|
|
display: inline-block;
|
|
|
width: 0.27778em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .enspace {
|
|
|
display: inline-block;
|
|
|
width: 0.5em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .quad {
|
|
|
display: inline-block;
|
|
|
width: 1em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .qquad {
|
|
|
display: inline-block;
|
|
|
width: 2em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .llap,
|
|
|
.ML__latex .rlap {
|
|
|
width: 0;
|
|
|
position: relative;
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner,
|
|
|
.ML__latex .rlap > .inner {
|
|
|
position: absolute;
|
|
|
}
|
|
|
.ML__latex .llap > .fix,
|
|
|
.ML__latex .rlap > .fix {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner {
|
|
|
right: 0;
|
|
|
}
|
|
|
.ML__latex .rlap > .inner {
|
|
|
left: 0;
|
|
|
}
|
|
|
.ML__latex .rule {
|
|
|
display: inline-block;
|
|
|
border: solid 0;
|
|
|
position: relative;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line,
|
|
|
.ML__latex .underline .underline-line {
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:before,
|
|
|
.ML__latex .underline .underline-line:before {
|
|
|
content: '';
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
display: block;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:after,
|
|
|
.ML__latex .underline .underline-line:after {
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: -1px;
|
|
|
}
|
|
|
.ML__latex .stretchy {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .stretchy:before,
|
|
|
.ML__latex .stretchy:after {
|
|
|
content: '';
|
|
|
}
|
|
|
.ML__latex .stretchy svg {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
height: inherit;
|
|
|
fill: currentColor;
|
|
|
stroke: currentColor;
|
|
|
fill-rule: nonzero;
|
|
|
fill-opacity: 1;
|
|
|
stroke-width: 1;
|
|
|
stroke-linecap: butt;
|
|
|
stroke-linejoin: miter;
|
|
|
stroke-miterlimit: 4;
|
|
|
stroke-dasharray: none;
|
|
|
stroke-dashoffset: 0;
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 25%;
|
|
|
width: 50%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-3-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-1 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .nulldelimiter {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-group {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-symbol {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .op-symbol.small-op {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__latex .op-symbol.large-op {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__latex .mtable .vertical-separator {
|
|
|
display: inline-block;
|
|
|
min-width: 1px;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .mtable .arraycolsep {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-m > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-c > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-l > .vlist-t {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-r > .vlist-t {
|
|
|
text-align: right;
|
|
|
}
|
|
|
.ML__error {
|
|
|
display: inline-block;
|
|
|
background-image: radial-gradient(ellipse at center, hsl(341, 100%, 40%), rgba(0, 0, 0, 0) 70%);
|
|
|
background-color: hsla(341, 100%, 40%, 0.1);
|
|
|
background-repeat: repeat-x;
|
|
|
background-size: 3px 3px;
|
|
|
padding-bottom: 3px;
|
|
|
background-position: 0 100%;
|
|
|
}
|
|
|
.ML__error > .ML__error {
|
|
|
background: transparent;
|
|
|
padding: 0;
|
|
|
}
|
|
|
.ML__placeholder {
|
|
|
color: var(--_placeholder-color);
|
|
|
opacity: var(--_placeholder-opacity);
|
|
|
padding-left: 0.4ex;
|
|
|
padding-right: 0.4ex;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
}
|
|
|
.ML__notation {
|
|
|
position: absolute;
|
|
|
box-sizing: border-box;
|
|
|
line-height: 0;
|
|
|
}
|
|
|
/* This class is used to implement the \`\\mathtip\` and \`\\texttip\` commands
|
|
|
For UI elements, see \`[data-ML__tooltip]\`
|
|
|
*/
|
|
|
.ML__tooltip-container {
|
|
|
position: relative;
|
|
|
transform: scale(0);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content {
|
|
|
position: fixed;
|
|
|
display: inline-table;
|
|
|
visibility: hidden;
|
|
|
z-index: 2;
|
|
|
width: max-content;
|
|
|
max-width: 400px;
|
|
|
padding: 12px 12px;
|
|
|
border-radius: 8px;
|
|
|
background: #616161;
|
|
|
--_selection-color: #fff;
|
|
|
color: #fff;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
opacity: 0;
|
|
|
transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__text {
|
|
|
white-space: normal;
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__base {
|
|
|
display: contents;
|
|
|
}
|
|
|
.ML__tooltip-container:hover .ML__tooltip-content {
|
|
|
visibility: visible;
|
|
|
opacity: 1;
|
|
|
font-size: 0.75em;
|
|
|
transform: scale(1) translate(0, 3em);
|
|
|
}
|
|
|
`,xf=`#mathlive-environment-popover.is-visible {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
#mathlive-environment-popover {
|
|
|
--_environment-panel-height: var(--environment-panel-height, 70px);
|
|
|
--_accent-color: var(--accent-color, #aaa);
|
|
|
--_background: var(--environment-panel-background, #fff);
|
|
|
--_button-background: var(--environment-panel-button-background, white);
|
|
|
--_button-background-hover: var(--environment-panel-button-background-hover, #f5f5f7);
|
|
|
--_button-background-active: var(--environment-panel-button-background-active, #f5f5f7);
|
|
|
--_button-text: var(--environment-panel-button-text, #e3e4e8);
|
|
|
position: absolute;
|
|
|
width: calc(var(--_environment-panel-height) * 2);
|
|
|
height: var(--_environment-panel-height);
|
|
|
border-radius: 4px;
|
|
|
border: 1.5px solid var(--_accent-color);
|
|
|
background-color: var(--_background);
|
|
|
box-shadow: 0 0 30px 0 var(--environment-shadow, rgba(0, 0, 0, 0.4));
|
|
|
pointer-events: all;
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons {
|
|
|
height: calc(var(--_environment-panel-height) * 5/4);
|
|
|
width: calc(var(--_environment-panel-height) * 5/4);
|
|
|
margin-left: calc(0px - var(--_environment-panel-height) * 0.16);
|
|
|
margin-top: calc(0px - var(--_environment-panel-height) * 0.19);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .font {
|
|
|
fill: white;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons circle {
|
|
|
fill: #7f7f7f;
|
|
|
transition: fill 300ms;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .MLEP__array-insert-background {
|
|
|
fill-opacity: 1;
|
|
|
fill: var(--_background);
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-width: 3px;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons line {
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-opacity: 0;
|
|
|
stroke-width: 40;
|
|
|
pointer-events: none;
|
|
|
transition: stroke-opacity 300ms;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover line {
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls {
|
|
|
height: 100%;
|
|
|
width: 50%;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options {
|
|
|
width: var(--_environment-panel-height);
|
|
|
height: var(--_environment-panel-height);
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-around;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg {
|
|
|
pointer-events: all;
|
|
|
margin-top: 2px;
|
|
|
width: calc(var(--_environment-panel-height) / 3 * 28 / 24);
|
|
|
height: calc(var(--_environment-panel-height) / 3 - 2px);
|
|
|
border-radius: calc(var(--_environment-panel-height) / 25);
|
|
|
background-color: var(--_button-background);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg:hover {
|
|
|
background-color: var(--_button-background-hover);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg line {
|
|
|
stroke: var(--_button-text);
|
|
|
stroke-width: 2;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg rect,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path {
|
|
|
fill-opacity: 0;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active {
|
|
|
pointer-events: none;
|
|
|
background-color: var(--_button-background-active);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active line {
|
|
|
stroke: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
`,uh=`/* The element that display info while in latex mode */
|
|
|
#mathlive-suggestion-popover {
|
|
|
background-color: rgba(97, 97, 97);
|
|
|
color: #fff;
|
|
|
text-align: center;
|
|
|
border-radius: 8px;
|
|
|
position: fixed;
|
|
|
z-index: 1;
|
|
|
display: none;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
|
|
}
|
|
|
#mathlive-suggestion-popover.top-tip::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
top: -15px;
|
|
|
left: calc(50% - 15px);
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-left: 15px solid transparent;
|
|
|
border-right: 15px solid transparent;
|
|
|
border-bottom: 15px solid rgba(97, 97, 97);
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.bottom-tip::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
bottom: -15px;
|
|
|
left: calc(50% - 15px);
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-left: 15px solid transparent;
|
|
|
border-right: 15px solid transparent;
|
|
|
border-top: 15px solid rgba(97, 97, 97);
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.is-animated {
|
|
|
transition: all 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
|
|
|
animation: ML__fade-in cubic-bezier(0, 0, 0.2, 1) 0.15s;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.is-visible {
|
|
|
display: flex;
|
|
|
}
|
|
|
@keyframes ML__fade-in {
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
/* The wrapper class for the entire content of the popover panel */
|
|
|
#mathlive-suggestion-popover ul {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
list-style: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
align-items: flex-start;
|
|
|
max-height: 400px;
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
margin: 8px;
|
|
|
padding: 8px;
|
|
|
width: calc(100% - 16px - 16px);
|
|
|
column-gap: 1em;
|
|
|
border-radius: 8px;
|
|
|
cursor: pointer;
|
|
|
/* Since the content can be clicked on, provide feedback on hover */
|
|
|
}
|
|
|
#mathlive-suggestion-popover li a {
|
|
|
color: #5ea6fd;
|
|
|
padding-top: 0.3em;
|
|
|
margin-top: 0.4em;
|
|
|
display: block;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li a:hover {
|
|
|
color: #5ea6fd;
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li:hover,
|
|
|
#mathlive-suggestion-popover li.is-pressed,
|
|
|
#mathlive-suggestion-popover li.is-active {
|
|
|
background: rgba(255, 255, 255, 0.1);
|
|
|
}
|
|
|
/* The command inside a popover (inside a #mathlive-suggestion-popover) */
|
|
|
.ML__popover__command {
|
|
|
font-size: 1.6rem;
|
|
|
font-family: KaTeX_Main;
|
|
|
}
|
|
|
.ML__popover__current {
|
|
|
background: #5ea6fd;
|
|
|
color: #fff;
|
|
|
}
|
|
|
.ML__popover__latex {
|
|
|
font-family: 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
|
|
|
align-self: center;
|
|
|
}
|
|
|
/* The keyboard shortcuts for a symbol as displayed in the popover */
|
|
|
.ML__popover__keybinding {
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 0.8em;
|
|
|
opacity: 0.7;
|
|
|
}
|
|
|
/* Style for the character that joins the modifiers of a keyboard shortcut
|
|
|
(usually a "+" sign)*/
|
|
|
.ML__shortcut-join {
|
|
|
opacity: 0.5;
|
|
|
}
|
|
|
`,vc=`/* The element that displays the keys as the user type them */
|
|
|
#mathlive-keystroke-caption-panel {
|
|
|
visibility: hidden;
|
|
|
/*min-width: 160px;*/
|
|
|
/*background-color: rgba(97, 97, 200, .95);*/
|
|
|
background: var(--secondary, hsl(var(--_hue), 19%, 26%));
|
|
|
border-color: var(--secondary-border, hsl(0, 0%, 91%));
|
|
|
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
|
|
|
text-align: center;
|
|
|
border-radius: 6px;
|
|
|
padding: 16px;
|
|
|
position: absolute;
|
|
|
z-index: 1;
|
|
|
display: flex;
|
|
|
flex-direction: row-reverse;
|
|
|
justify-content: center;
|
|
|
--keystroke: white;
|
|
|
--on-keystroke: #555;
|
|
|
--keystroke-border: #f7f7f7;
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
body:not([theme='light']) #mathlive-keystroke-caption-panel {
|
|
|
--keystroke: hsl(var(--_hue), 50%, 30%);
|
|
|
--on-keystroke: hsl(0, 0%, 98%);
|
|
|
--keystroke-border: hsl(var(--_hue), 50%, 25%);
|
|
|
}
|
|
|
}
|
|
|
body[theme='dark'] #mathlive-keystroke-caption-panel {
|
|
|
--keystroke: hsl(var(--_hue), 50%, 30%);
|
|
|
--on-keystroke: hsl(0, 0%, 98%);
|
|
|
--keystroke-border: hsl(var(--_hue), 50%, 25%);
|
|
|
}
|
|
|
#mathlive-keystroke-caption-panel > span {
|
|
|
min-width: 14px;
|
|
|
/*height: 8px;*/
|
|
|
margin: 0 8px 0 0;
|
|
|
padding: 4px;
|
|
|
background-color: var(--keystroke);
|
|
|
color: var(--on-keystroke);
|
|
|
fill: currentColor;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 1em;
|
|
|
border-radius: 6px;
|
|
|
border: 2px solid var(--keystroke-border);
|
|
|
/*box-shadow: 0 7px 14px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.22);*/
|
|
|
}
|
|
|
`,ch=`.ML__keyboard {
|
|
|
--_keyboard-height: 0;
|
|
|
--_keyboard-zindex: var(--keyboard-zindex, 105);
|
|
|
--_accent-color: var(--keyboard-accent-color, #0c75d8);
|
|
|
--_background: var(--keyboard-background, #cacfd7);
|
|
|
--_border: var(--keyboard-border, #ddd);
|
|
|
--_padding-horizontal: var(--keyboard-padding-horizontal, 0px);
|
|
|
--_padding-top: var(--keyboard-padding-top, 5px);
|
|
|
--_padding-bottom: var(--keyboard-padding-bottom, 0px);
|
|
|
--_row-padding-left: var(--keyboard-row-padding-left, 0px);
|
|
|
--_row-padding-right: var(--keyboard-row-padding-right, 0px);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
|
|
|
--_toolbar-text-active: var(--keyboard-toolbar-text-active, var(--_accent-color));
|
|
|
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
|
|
|
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
|
|
|
--_toolbar-font-size: var(--keyboard-toolbar-font-size, '135%');
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
|
|
|
--_keycap-background: var(--keycap-background, white);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
|
|
|
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
|
|
|
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
|
|
|
--_keycap-border: var(--keycap-border, #e5e6e9);
|
|
|
--_keycap-border-bottom: var(--keycap-border-bottom, #8d8f92);
|
|
|
--_keycap-text: var(--keycap-text, #000);
|
|
|
--_keycap-text-active: var(--keycap-text-active, #fff);
|
|
|
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
|
|
|
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
|
|
|
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
|
|
|
--_keycap-primary-background: var(--keycap-primary-background, var(--_accent-color));
|
|
|
--_keycap-primary-text: var(--keycap-primary-text, #ddd);
|
|
|
--_keycap-primary-background-hover: var(--keycap-primary-background-hover, #0d80f2);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
|
|
|
--_keycap-height: var(--keycap-height, 60px);
|
|
|
/* Keycap width (incl. margin) */
|
|
|
--_keycap-max-width: var(--keycap-max-width, 100px);
|
|
|
--_keycap-gap: var(--keycap-gap, 8px);
|
|
|
--_keycap-font-size: var(--keycap-font-size, clamp(16px, 4cqw, 24px));
|
|
|
--_keycap-small-font-size: var(--keycap-small-font-size, calc(var(--keycap-font-size) * 0.8));
|
|
|
--_keycap-extra-small-font-size: var(--keycap-extra-small-font-size, calc(var(--keycap-font-size) / 1.42));
|
|
|
--_variant-panel-background: var(--variant-panel-background, #fff);
|
|
|
--_variant-keycap-text: var(--variant-keycap-text, var(--_keycap-text));
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
|
|
|
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 70px);
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 30px);
|
|
|
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 12px);
|
|
|
--_keycap-shift-font-size: var(--keycap-shift-font-size, 16px);
|
|
|
--_keycap-shift-color: var(--keycap-shift-color, var(--_accent-color));
|
|
|
--_box-placeholder-color: var(--box-placeholder-color, var(--_accent-color));
|
|
|
--_box-placeholder-pressed-color: var(--box-placeholder-pressed-color, var(--keycap-text-pressed));
|
|
|
}
|
|
|
.is-math-mode .MLK__rows .if-text-mode,
|
|
|
.is-text-mode .MLK__rows .if-math-mode {
|
|
|
display: none;
|
|
|
}
|
|
|
.if-can-undo,
|
|
|
.if-can-redo,
|
|
|
.if-can-copy,
|
|
|
.if-can-cut,
|
|
|
.if-can-paste {
|
|
|
opacity: 0.4;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.can-undo .if-can-undo,
|
|
|
.can-redo .if-can-redo,
|
|
|
.can-copy .if-can-copy,
|
|
|
.can-cut .if-can-cut,
|
|
|
.can-paste .if-can-paste {
|
|
|
opacity: 1;
|
|
|
pointer-events: all;
|
|
|
}
|
|
|
body > .ML__keyboard {
|
|
|
position: fixed;
|
|
|
--_padding-bottom: calc(var(--keyboard-padding-bottom, 0px) + env(safe-area-inset-bottom, 0));
|
|
|
}
|
|
|
body > .ML__keyboard.is-visible > .MLK__backdrop {
|
|
|
box-shadow: 0 -5px 6px rgba(0, 0, 0, 0.08);
|
|
|
border-top: 1px solid var(--_border);
|
|
|
}
|
|
|
body > .ML__keyboard.backdrop-is-transparent.is-visible > .MLK__backdrop {
|
|
|
box-shadow: none;
|
|
|
border: none;
|
|
|
}
|
|
|
body > .ML__keyboard.is-visible.animate > .MLK__backdrop {
|
|
|
transition: 0.28s cubic-bezier(0, 0, 0.2, 1);
|
|
|
transition-property: transform, opacity;
|
|
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__keyboard {
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
z-index: var(--_keyboard-zindex);
|
|
|
box-sizing: border-box;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
line-height: 1;
|
|
|
overflow-wrap: unset;
|
|
|
text-align: left;
|
|
|
vertical-align: baseline;
|
|
|
cursor: auto;
|
|
|
white-space: pre;
|
|
|
box-shadow: none;
|
|
|
opacity: 1;
|
|
|
transform: none;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.ML__keyboard :where(div) {
|
|
|
box-sizing: border-box;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
line-height: 1;
|
|
|
overflow-wrap: unset;
|
|
|
text-align: left;
|
|
|
vertical-align: baseline;
|
|
|
cursor: auto;
|
|
|
white-space: pre;
|
|
|
box-shadow: none;
|
|
|
transform: none;
|
|
|
}
|
|
|
.MLK__backdrop {
|
|
|
position: absolute;
|
|
|
bottom: calc(-1 * var(--_keyboard-height));
|
|
|
width: 100%;
|
|
|
height: var(--_keyboard-height);
|
|
|
box-sizing: border-box;
|
|
|
padding-top: var(--_padding-top);
|
|
|
padding-bottom: var(--_padding-bottom);
|
|
|
padding-left: var(--_padding-horizontal);
|
|
|
padding-right: var(--_padding-horizontal);
|
|
|
opacity: 0;
|
|
|
visibility: hidden;
|
|
|
transform: translate(0, 0);
|
|
|
background: var(--_background);
|
|
|
}
|
|
|
.backdrop-is-transparent .MLK__backdrop {
|
|
|
background: transparent;
|
|
|
}
|
|
|
/* If a custom layout has a custom container/backdrop
|
|
|
(backdrop-is-transparent), make sure to let pointer event go through. */
|
|
|
.backdrop-is-transparent .MLK__plate {
|
|
|
background: transparent;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
/* If a custom layout has a custom container/backdrop, make sure to
|
|
|
allow pointer events on it. */
|
|
|
.backdrop-is-transparent .MLK__layer > div > div {
|
|
|
pointer-events: all;
|
|
|
}
|
|
|
.ML__keyboard.is-visible > .MLK__backdrop {
|
|
|
transform: translate(0, calc(-1 * var(--_keyboard-height)));
|
|
|
opacity: 1;
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.caps-lock-indicator {
|
|
|
display: none;
|
|
|
width: 8px;
|
|
|
height: 8px;
|
|
|
background: #0cbc0c;
|
|
|
box-shadow: inset 0 0 4px 0 #13ca13, 0 0 4px 0 #a9ef48;
|
|
|
border-radius: 8px;
|
|
|
right: 8px;
|
|
|
top: 8px;
|
|
|
position: absolute;
|
|
|
}
|
|
|
.ML__keyboard.is-caps-lock .caps-lock-indicator {
|
|
|
display: block;
|
|
|
}
|
|
|
.ML__keyboard.is-caps-lock .shift {
|
|
|
background: var(--_keycap-background-active);
|
|
|
color: var(--_keycap-text-active);
|
|
|
}
|
|
|
.MLK__plate {
|
|
|
position: absolute;
|
|
|
top: var(--_padding-top);
|
|
|
left: var(--_padding-horizontal);
|
|
|
width: calc(100% - 2 * var(--_padding-horizontal));
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
box-sizing: border-box;
|
|
|
container-type: inline-size;
|
|
|
touch-action: none;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
pointer-events: all;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 16px;
|
|
|
/* Size of toolbar labels */
|
|
|
font-weight: 400;
|
|
|
text-shadow: none;
|
|
|
}
|
|
|
.ML__box-placeholder {
|
|
|
color: var(--_box-placeholder-color);
|
|
|
}
|
|
|
.MLK__tex {
|
|
|
font-family: KaTeX_Main, KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__tex-math {
|
|
|
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.MLK__layer {
|
|
|
display: none;
|
|
|
outline: none;
|
|
|
}
|
|
|
.MLK__layer.is-visible {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
}
|
|
|
/* Keyboard layouts are made or rows of keys... */
|
|
|
.MLK__rows {
|
|
|
--_keycap-width: min(var(--_keycap-max-width), 10cqw);
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
border-collapse: separate;
|
|
|
clear: both;
|
|
|
border: 0;
|
|
|
margin: 0;
|
|
|
margin-bottom: var(--_keycap-gap);
|
|
|
gap: var(--_keycap-gap);
|
|
|
/* If the styling include, e.g., some shadows, they will be
|
|
|
cut off by the overflow. In that case, set the padding to
|
|
|
compensate. */
|
|
|
padding-left: var(--_row-padding-left);
|
|
|
padding-right: var(--_row-padding-right);
|
|
|
overflow: visible;
|
|
|
touch-action: none;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row {
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: center;
|
|
|
width: 100%;
|
|
|
gap: var(--_keycap-gap);
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
/* For the alignment of the text on some modifiers (e.g. shift) */
|
|
|
/* Extra spacing between two adjacent keys */
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .tex {
|
|
|
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .tex-math {
|
|
|
font-family: KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .big-op {
|
|
|
font-size: calc(1.25 * var(--_keycap-font-size));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .small {
|
|
|
font-size: var(--_keycap-small-font-size);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .bottom {
|
|
|
justify-content: flex-end;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .left {
|
|
|
align-items: flex-start;
|
|
|
padding-left: 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .right {
|
|
|
align-items: flex-end;
|
|
|
padding-right: 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w0 {
|
|
|
width: 0;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w5 {
|
|
|
width: calc(0.5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w15 {
|
|
|
width: calc(1.5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w20 {
|
|
|
width: calc(2 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w40 {
|
|
|
width: calc(4 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w50 {
|
|
|
width: calc(5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .MLK__keycap.w50 {
|
|
|
font-size: 80%;
|
|
|
padding-top: 10px;
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .separator {
|
|
|
background: transparent;
|
|
|
border: none;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .horizontal-rule {
|
|
|
height: 6px;
|
|
|
margin-top: 3px;
|
|
|
margin-bottom: 0;
|
|
|
width: 100%;
|
|
|
border-radius: 0;
|
|
|
border-top: var(--_horizontal-rule);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .ghost {
|
|
|
background: var(--_toolbar-background);
|
|
|
border: none;
|
|
|
color: var(--_toolbar-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .ghost:hover {
|
|
|
background: var(--_toolbar-background-hover);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .bigfnbutton {
|
|
|
font-size: var(--_keycap-extra-small-font-size);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift,
|
|
|
.MLK__rows > .MLK__row .action {
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
background: var(--_keycap-secondary-background);
|
|
|
border-color: var(--_keycap-secondary-border);
|
|
|
border-bottom-color: var(--_keycap-secondary-border-bottom);
|
|
|
line-height: 0.8;
|
|
|
font-size: min(1rem, var(--_keycap-small-font-size));
|
|
|
font-weight: 600;
|
|
|
padding: 8px 12px 8px 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift:hover,
|
|
|
.MLK__rows > .MLK__row .action:hover {
|
|
|
background: var(--_keycap-secondary-background-hover);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .action.primary {
|
|
|
background: var(--_keycap-primary-background);
|
|
|
color: var(--_keycap-primary-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .action.primary:hover {
|
|
|
background: var(--_keycap-primary-background-hover);
|
|
|
color: var(--_keycap-primary-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift.selected,
|
|
|
.MLK__rows > .MLK__row .action.selected {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift.selected.is-pressed,
|
|
|
.MLK__rows > .MLK__row .action.selected.is-pressed,
|
|
|
.MLK__rows > .MLK__row .shift.selected.is-active,
|
|
|
.MLK__rows > .MLK__row .action.selected.is-active {
|
|
|
color: white;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .warning {
|
|
|
background: #cd0030;
|
|
|
color: white;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .warning svg.svg-glyph {
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
|
min-height: 24px;
|
|
|
}
|
|
|
/** A regular keycap
|
|
|
* Use the :where() pseudo-class to give it a very low specifity,
|
|
|
* so that it can be overriden by custom style.
|
|
|
*/
|
|
|
:where(.MLK__rows > .MLK__row div) {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
justify-content: space-evenly;
|
|
|
width: calc(var(--_keycap-width) - var(--_keycap-gap));
|
|
|
height: var(--_keycap-height);
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
vertical-align: top;
|
|
|
text-align: center;
|
|
|
float: left;
|
|
|
color: var(--_keycap-text);
|
|
|
fill: currentColor;
|
|
|
font-size: var(--_keycap-font-size);
|
|
|
background: var(--_keycap-background);
|
|
|
border: 1px solid var(--_keycap-border);
|
|
|
border-bottom-color: var(--_keycap-border-bottom);
|
|
|
border-radius: 6px;
|
|
|
cursor: pointer;
|
|
|
touch-action: none;
|
|
|
/* Keys with a variants panel */
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div):hover {
|
|
|
overflow: visible;
|
|
|
background: var(--_keycap-background-hover);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) .ML__latex {
|
|
|
pointer-events: none;
|
|
|
touch-action: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) svg.svg-glyph {
|
|
|
margin: 8px 0;
|
|
|
width: 20px;
|
|
|
height: 20px;
|
|
|
min-height: 20px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) svg.svg-glyph-lg {
|
|
|
margin: 8px 0;
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
|
min-height: 24px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__tex-math {
|
|
|
font-size: 25px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).is-pressed {
|
|
|
background: var(--_keycap-background-pressed);
|
|
|
color: var(--_keycap-text-pressed);
|
|
|
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed {
|
|
|
z-index: calc(var(--_keyboard-zindex) - 5);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active aside,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active aside,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed aside,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed aside {
|
|
|
display: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed .MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).shift.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed {
|
|
|
background: var(--_keycap-background-pressed);
|
|
|
color: var(--_keycap-text-pressed);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).shift.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active {
|
|
|
background: var(--_keycap-background-active);
|
|
|
color: var(--_keycap-text-active);
|
|
|
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) small {
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) aside {
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 10px;
|
|
|
line-height: 10px;
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
}
|
|
|
/* Add an attribute 'data-tooltip' to display a tooltip on hover.
|
|
|
Note there are a different set of tooltip rules for the keyboard toggle
|
|
|
(it's in a different CSS tree) */
|
|
|
.ML__keyboard [data-tooltip] {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]::after {
|
|
|
position: absolute;
|
|
|
display: inline-table;
|
|
|
content: attr(data-tooltip);
|
|
|
top: inherit;
|
|
|
bottom: 100%;
|
|
|
width: max-content;
|
|
|
max-width: 200px;
|
|
|
padding: 8px 8px;
|
|
|
background: #616161;
|
|
|
color: #fff;
|
|
|
text-align: center;
|
|
|
z-index: 2;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
border-radius: 2px;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-weight: 400;
|
|
|
font-size: 12px;
|
|
|
transition: all 0.15s cubic-bezier(0.4, 0, 1, 1) 1s;
|
|
|
opacity: 0;
|
|
|
transform: scale(0.5);
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]:hover {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]:hover::after {
|
|
|
opacity: 1;
|
|
|
transform: scale(1);
|
|
|
}
|
|
|
.MLK__toolbar {
|
|
|
align-self: center;
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: space-between;
|
|
|
width: 100%;
|
|
|
max-width: 996px;
|
|
|
min-height: 32px;
|
|
|
/* Icons for undo/redo, etc. */
|
|
|
}
|
|
|
.MLK__toolbar svg {
|
|
|
height: 20px;
|
|
|
width: 20px;
|
|
|
}
|
|
|
.MLK__toolbar > .left {
|
|
|
position: relative;
|
|
|
display: flex;
|
|
|
justify-content: flex-start;
|
|
|
flex-flow: row;
|
|
|
}
|
|
|
.MLK__toolbar > .right {
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
flex-flow: row;
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
/* "button" in the toolbar */
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
color: var(--_toolbar-text);
|
|
|
fill: currentColor;
|
|
|
background: var(--_toolbar-background);
|
|
|
font-size: var(--_toolbar-font-size);
|
|
|
padding: 4px 15px;
|
|
|
cursor: pointer;
|
|
|
width: max-content;
|
|
|
min-width: 42px;
|
|
|
min-height: 34px;
|
|
|
border: none;
|
|
|
padding-left: 10px;
|
|
|
padding-right: 10px;
|
|
|
padding-bottom: 8px;
|
|
|
padding-top: 8px;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 4px;
|
|
|
margin-left: 4px;
|
|
|
margin-right: 4px;
|
|
|
border-radius: 8px;
|
|
|
box-shadow: none;
|
|
|
border-bottom: 2px solid transparent;
|
|
|
}
|
|
|
.MLK__toolbar > div > div:not(.disabled):not(.selected):hover {
|
|
|
background: var(--_toolbar-background-hover);
|
|
|
}
|
|
|
.MLK__toolbar > div > div.disabled svg,
|
|
|
.MLK__toolbar > div > div.disabled:hover svg,
|
|
|
.MLK__toolbar > div > div.disabled.is-pressed svg {
|
|
|
color: var(--_toolbar-text);
|
|
|
opacity: 0.2;
|
|
|
}
|
|
|
.MLK__toolbar > div > div:hover,
|
|
|
.MLK__toolbar > div > div:active,
|
|
|
.MLK__toolbar > div > div.is-pressed,
|
|
|
.MLK__toolbar > div > div.is-active {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
}
|
|
|
.MLK__toolbar > div > div.selected {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
background: var(--_toolbar-background-selected);
|
|
|
border-radius: 0;
|
|
|
border-bottom-color: var(--_toolbar-text-active);
|
|
|
padding-bottom: 4px;
|
|
|
margin-bottom: 8px;
|
|
|
}
|
|
|
/* This is the element that displays variants on press+hold */
|
|
|
.MLK__variant-panel {
|
|
|
visibility: hidden;
|
|
|
position: fixed;
|
|
|
display: flex;
|
|
|
flex-flow: row wrap-reverse;
|
|
|
justify-content: center;
|
|
|
align-content: center;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
bottom: auto;
|
|
|
top: 0;
|
|
|
box-sizing: content-box;
|
|
|
transform: none;
|
|
|
z-index: calc(var(--_keyboard-zindex) + 1);
|
|
|
touch-action: none;
|
|
|
max-width: 350px;
|
|
|
background: var(--_variant-panel-background);
|
|
|
text-align: center;
|
|
|
border-radius: 6px;
|
|
|
padding: 6px;
|
|
|
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
|
|
transition: none;
|
|
|
}
|
|
|
.MLK__variant-panel.is-visible {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.MLK__variant-panel.compact {
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 10px);
|
|
|
}
|
|
|
.MLK__variant-panel .item {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
font-size: var(--_variant-keycap-font-size);
|
|
|
height: var(--_variant-keycap-length);
|
|
|
width: var(--_variant-keycap-length);
|
|
|
margin: 0;
|
|
|
box-sizing: border-box;
|
|
|
border-radius: 5px;
|
|
|
border: 1px solid transparent;
|
|
|
background: transparent;
|
|
|
pointer-events: all;
|
|
|
cursor: pointer;
|
|
|
color: var(--_variant-keycap-text);
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
@media (max-height: 412px) {
|
|
|
.MLK__variant-panel .item {
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
}
|
|
|
}
|
|
|
.MLK__variant-panel .item .ML__latex {
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.MLK__variant-panel .item.is-active {
|
|
|
background: var(--_variant-keycap-background-active);
|
|
|
color: var(--_variant-keycap-text-active);
|
|
|
}
|
|
|
.MLK__variant-panel .item.is-pressed {
|
|
|
background: var(--_variant-keycap-background-pressed);
|
|
|
color: var(--_variant-keycap-text-pressed);
|
|
|
}
|
|
|
.MLK__variant-panel .item.small {
|
|
|
font-size: var(--_keycap-small-font-size);
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button {
|
|
|
box-sizing: border-box;
|
|
|
background: #fbfbfb;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button > span {
|
|
|
display: inline-block;
|
|
|
margin: 6px;
|
|
|
width: calc(100% - 12px);
|
|
|
height: calc(100% - 12px);
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button:hover {
|
|
|
background: #f0f0f0;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button:hover > span {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.MLK__variant-panel .item.box > div,
|
|
|
.MLK__variant-panel .item.box > span {
|
|
|
border: 1px dashed rgba(0, 0, 0, 0.24);
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning {
|
|
|
min-height: 60px;
|
|
|
min-width: 60px;
|
|
|
background: #cd0030;
|
|
|
color: white;
|
|
|
padding: 5px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
border-radius: 5px;
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning.is-pressed,
|
|
|
.MLK__variant-panel .item .warning.is-active {
|
|
|
background: red;
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning svg.svg-glyph {
|
|
|
width: 50px;
|
|
|
height: 50px;
|
|
|
}
|
|
|
.MLK__variant-panel .item aside {
|
|
|
font-size: var(--_variant-keycap-aside-font-size);
|
|
|
line-height: 12px;
|
|
|
opacity: 0.78;
|
|
|
padding-top: 2px;
|
|
|
}
|
|
|
.MLK__keycap {
|
|
|
position: relative;
|
|
|
}
|
|
|
.MLK__shift {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
right: 4px;
|
|
|
top: 4px;
|
|
|
font-size: var(--_keycap-shift-font-size);
|
|
|
color: var(--_keycap-shift-color);
|
|
|
}
|
|
|
.hide-shift .MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
@media (max-width: 414px) {
|
|
|
.MLK__variant-panel {
|
|
|
max-width: 350px;
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
}
|
|
|
}
|
|
|
/* @xs breakpoint: iPhone 5 */
|
|
|
@container (max-width: 414px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-gap: max(var(--_keycap-gap, 2px), 2px);
|
|
|
--_keycap-height: max(var(--_keycap-height), 42px);
|
|
|
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
font-size: 100%;
|
|
|
margin-left: 2px;
|
|
|
margin-right: 2px;
|
|
|
}
|
|
|
.MLK__rows .shift,
|
|
|
.MLK__rows .action {
|
|
|
font-size: 65%;
|
|
|
}
|
|
|
.MLK__rows .warning svg.svg-glyph {
|
|
|
width: 14px;
|
|
|
height: 14px;
|
|
|
min-height: 14px;
|
|
|
}
|
|
|
}
|
|
|
@container (max-width: 744px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-gap: max(var(--keycap-gap, 2px), 2px);
|
|
|
--_keycap-height: max(var(--keycap-height, 52px), 52px);
|
|
|
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
padding-left: 0;
|
|
|
padding-right: 0;
|
|
|
}
|
|
|
.MLK__tooltip::after {
|
|
|
padding: 8px 16px;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.fnbutton {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.bigfnbutton {
|
|
|
font-size: calc(var(--_keycap-extra-small-font-size) / 1.55);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.small {
|
|
|
font-size: 13px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > aside {
|
|
|
display: none;
|
|
|
}
|
|
|
.MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
/* Medium breakpoint: larger phones */
|
|
|
@container (max-width: 768px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-height: max(var(--keycap-height, 42px), 42px);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > small {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
@media (max-height: 768px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-height: max(var(--keycap-height, 42px), 42px);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > small {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
@container (max-width: 1444px) {
|
|
|
.MLK__rows .if-wide {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
.ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
|
|
|
--_background: var(--keyboard-background, #151515);
|
|
|
--_border: var(--keyboard-border, transparent);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
|
|
|
--keyboard-toolbar-background-hover: #303030;
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
|
|
|
--_keycap-background: var(--keycap-background, #1f2022);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
|
|
|
--_keycap-border: var(--_keycap-border, transparent);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
|
|
|
--_keycap-text: var(--keycap-text, #e3e4e8);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
|
|
|
--keycap-secondary-border: transparent;
|
|
|
--keycap-secondary-border-bottom: transparent;
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #303030);
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
|
|
|
}
|
|
|
}
|
|
|
/* Same as the media query, but with a class */
|
|
|
[theme='dark'] .ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
|
|
|
--_background: var(--keyboard-background, #151515);
|
|
|
--_border: var(--keyboard-border, transparent);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
|
|
|
--keyboard-toolbar-background-hover: #303030;
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
|
|
|
--_keycap-background: var(--keycap-background, #1f2022);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
|
|
|
--_keycap-border: var(--_keycap-border, transparent);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
|
|
|
--_keycap-text: var(--keycap-text, #e3e4e8);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
|
|
|
--keycap-secondary-border: transparent;
|
|
|
--keycap-secondary-border-bottom: transparent;
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #303030);
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
|
|
|
}
|
|
|
[theme='light'] .ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0c75d8);
|
|
|
--_background: var(--keyboard-background, #cacfd7);
|
|
|
--_border: var(--keyboard-border, #ddd);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
|
|
|
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
|
|
|
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
|
|
|
--_keycap-background: var(--keycap-background, white);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
|
|
|
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
|
|
|
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
|
|
|
--_keycap-border: var(--_keycap-border, #e5e6e9);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, #8d8f92);
|
|
|
--_keycap-text: var(--keycap-text, #000);
|
|
|
--_keycap-text-active: var(--keycap-text-active, #fff);
|
|
|
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
|
|
|
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
|
|
|
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #fff);
|
|
|
--_variant-keycap-text: var(--variant-keycap-textvar, var(--_keycap-text));
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
|
|
|
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
|
|
|
}
|
|
|
`,nd=`:host {
|
|
|
--primary-color: #5898ff;
|
|
|
--primary-color-dimmed: #c0c0f0;
|
|
|
--primary-color-dark: var(--blue-500);
|
|
|
--primary-color-light: var(--blue-100);
|
|
|
--primary-color-reverse: #ffffff;
|
|
|
--secondary-color: #ff8a65;
|
|
|
--secondary-color-dimmed: #f0d5c5;
|
|
|
--secondary-color-dark: var(--orange-500);
|
|
|
--secondary-color-light: var(--orange-100);
|
|
|
--secondary-color-reverse: #ffffff;
|
|
|
--link-color: #5898ff;
|
|
|
--link-color-dimmed: #c5c5c5;
|
|
|
--link-color-dark: #121212;
|
|
|
--link-color-light: #e2e2e2;
|
|
|
--link-color-reverse: #ffffff;
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--neutral-100: #f5f5f5;
|
|
|
--neutral-200: #eeeeee;
|
|
|
--neutral-300: #e0e0e0;
|
|
|
--neutral-400: #bdbdbd;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #757575;
|
|
|
--neutral-700: #616161;
|
|
|
--neutral-800: #424242;
|
|
|
--neutral-900: #212121;
|
|
|
--red-25: #fff8f7;
|
|
|
--red-50: #fff1ef;
|
|
|
--red-100: #ffeae6;
|
|
|
--red-200: #ffcac1;
|
|
|
--red-300: #ffa495;
|
|
|
--red-400: #ff7865;
|
|
|
--red-500: #f21c0d;
|
|
|
--red-600: #e50018;
|
|
|
--red-700: #d30024;
|
|
|
--red-800: #bd002c;
|
|
|
--red-900: #a1002f;
|
|
|
--orange-25: #fffbf8;
|
|
|
--orange-50: #fff7f1;
|
|
|
--orange-100: #fff3ea;
|
|
|
--orange-200: #ffe1c9;
|
|
|
--orange-300: #ffcca2;
|
|
|
--orange-400: #ffb677;
|
|
|
--orange-500: #fe9310;
|
|
|
--orange-600: #f58700;
|
|
|
--orange-700: #ea7c00;
|
|
|
--orange-800: #dc6d00;
|
|
|
--orange-900: #ca5b00;
|
|
|
--brown-25: #fff8ef;
|
|
|
--brown-50: #fff1df;
|
|
|
--brown-100: #ffe9ce;
|
|
|
--brown-200: #ebcca6;
|
|
|
--brown-300: #cdaf8a;
|
|
|
--brown-400: #af936f;
|
|
|
--brown-500: #856a47;
|
|
|
--brown-600: #7f5e34;
|
|
|
--brown-700: #78511f;
|
|
|
--brown-800: #6e4200;
|
|
|
--brown-900: #593200;
|
|
|
--yellow-25: #fffdf9;
|
|
|
--yellow-50: #fffcf2;
|
|
|
--yellow-100: #fffaec;
|
|
|
--yellow-200: #fff2ce;
|
|
|
--yellow-300: #ffe8ab;
|
|
|
--yellow-400: #ffdf85;
|
|
|
--yellow-500: #ffcf33;
|
|
|
--yellow-600: #f1c000;
|
|
|
--yellow-700: #dfb200;
|
|
|
--yellow-800: #c9a000;
|
|
|
--yellow-900: #ad8a00;
|
|
|
--lime-25: #f4ffee;
|
|
|
--lime-50: #e9ffdd;
|
|
|
--lime-100: #ddffca;
|
|
|
--lime-200: #a8fb6f;
|
|
|
--lime-300: #94e659;
|
|
|
--lime-400: #80d142;
|
|
|
--lime-500: #63b215;
|
|
|
--lime-600: #45a000;
|
|
|
--lime-700: #268e00;
|
|
|
--lime-800: #007417;
|
|
|
--lime-900: #005321;
|
|
|
--green-25: #f5fff5;
|
|
|
--green-50: #ebffea;
|
|
|
--green-100: #e0ffdf;
|
|
|
--green-200: #a7ffa7;
|
|
|
--green-300: #5afa65;
|
|
|
--green-400: #45e953;
|
|
|
--green-500: #17cf36;
|
|
|
--green-600: #00b944;
|
|
|
--green-700: #00a34a;
|
|
|
--green-800: #008749;
|
|
|
--green-900: #00653e;
|
|
|
--teal-25: #f3ffff;
|
|
|
--teal-50: #e6fffe;
|
|
|
--teal-100: #d9fffe;
|
|
|
--teal-200: #8dfffe;
|
|
|
--teal-300: #57f4f4;
|
|
|
--teal-400: #43e5e5;
|
|
|
--teal-500: #17cfcf;
|
|
|
--teal-600: #00c2c0;
|
|
|
--teal-700: #00b5b1;
|
|
|
--teal-800: #00a49e;
|
|
|
--teal-900: #009087;
|
|
|
--cyan-25: #f7fcff;
|
|
|
--cyan-50: #eff8ff;
|
|
|
--cyan-100: #e7f5ff;
|
|
|
--cyan-200: #c2e6ff;
|
|
|
--cyan-300: #95d5ff;
|
|
|
--cyan-400: #61c4ff;
|
|
|
--cyan-500: #13a7ec;
|
|
|
--cyan-600: #069eda;
|
|
|
--cyan-700: #0095c9;
|
|
|
--cyan-800: #0088b2;
|
|
|
--cyan-900: #0a7897;
|
|
|
--blue-25: #f7faff;
|
|
|
--blue-50: #eef5ff;
|
|
|
--blue-100: #e5f1ff;
|
|
|
--blue-200: #bfdbff;
|
|
|
--blue-300: #92c2ff;
|
|
|
--blue-400: #63a8ff;
|
|
|
--blue-500: #0d80f2;
|
|
|
--blue-600: #0077db;
|
|
|
--blue-700: #006dc4;
|
|
|
--blue-800: #0060a7;
|
|
|
--blue-900: #005086;
|
|
|
--indigo-25: #f8f7ff;
|
|
|
--indigo-50: #f1efff;
|
|
|
--indigo-100: #eae7ff;
|
|
|
--indigo-200: #ccc3ff;
|
|
|
--indigo-300: #ac99ff;
|
|
|
--indigo-400: #916aff;
|
|
|
--indigo-500: #63c;
|
|
|
--indigo-600: #5a21b2;
|
|
|
--indigo-700: #4e0b99;
|
|
|
--indigo-800: #3b0071;
|
|
|
--indigo-900: #220040;
|
|
|
--purple-25: #fbf7ff;
|
|
|
--purple-50: #f8f0ff;
|
|
|
--purple-100: #f4e8ff;
|
|
|
--purple-200: #e4c4ff;
|
|
|
--purple-300: #d49aff;
|
|
|
--purple-400: #c36aff;
|
|
|
--purple-500: #a219e6;
|
|
|
--purple-600: #9000c4;
|
|
|
--purple-700: #7c009f;
|
|
|
--purple-800: #600073;
|
|
|
--purple-900: #3d0043;
|
|
|
--magenta-25: #fff8fb;
|
|
|
--magenta-50: #fff2f6;
|
|
|
--magenta-100: #ffebf2;
|
|
|
--magenta-200: #ffcddf;
|
|
|
--magenta-300: #ffa8cb;
|
|
|
--magenta-400: #ff7fb7;
|
|
|
--magenta-500: #eb4799;
|
|
|
--magenta-600: #da3689;
|
|
|
--magenta-700: #c82179;
|
|
|
--magenta-800: #b00065;
|
|
|
--magenta-900: #8a004c;
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--semantic-bg-blue: var(--blue-25);
|
|
|
--semantic-bg-red: var(--red-25);
|
|
|
--semantic-bg-orange: var(--orange-25);
|
|
|
--semantic-bg-green: var(--green-25);
|
|
|
--neutral-100: #121212;
|
|
|
--neutral-200: #424242;
|
|
|
--neutral-300: #616161;
|
|
|
--neutral-400: #757575;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #bdbdbd;
|
|
|
--neutral-700: #e0e0e0;
|
|
|
--neutral-800: #eeeeee;
|
|
|
--neutral-900: #f5f5f5;
|
|
|
}
|
|
|
}
|
|
|
:host([theme='dark']) {
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--semantic-bg-blue: var(--blue-25);
|
|
|
--semantic-bg-red: var(--red-25);
|
|
|
--semantic-bg-orange: var(--orange-25);
|
|
|
--semantic-bg-green: var(--green-25);
|
|
|
--neutral-100: #121212;
|
|
|
--neutral-200: #424242;
|
|
|
--neutral-300: #616161;
|
|
|
--neutral-400: #757575;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #bdbdbd;
|
|
|
--neutral-700: #e0e0e0;
|
|
|
--neutral-800: #eeeeee;
|
|
|
--neutral-900: #f5f5f5;
|
|
|
}
|
|
|
/* @media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--label-color: #fff;
|
|
|
--active-label-color: #000;
|
|
|
--menu-bg: #525252;
|
|
|
--active-bg: #5898ff;
|
|
|
--active-bg-dimmed: #5c5c5c;
|
|
|
}
|
|
|
} */
|
|
|
:host {
|
|
|
--ui-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
|
|
|
'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
|
|
|
'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
|
--ui-font-size: 14px;
|
|
|
--ui-line-height: 1.5;
|
|
|
--ui-letter-spacing: 0.007em;
|
|
|
--mono-font-family: 'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono',
|
|
|
'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;
|
|
|
--ui-layer-1: var(--neutral-100);
|
|
|
--ui-layer-2: var(--neutral-200);
|
|
|
--ui-layer-3: var(--neutral-300);
|
|
|
--ui-layer-4: var(--neutral-400);
|
|
|
--ui-layer-5: var(--neutral-500);
|
|
|
--ui-layer-6: var(--neutral-600);
|
|
|
--ui-border-color: var(--primary-color);
|
|
|
--ui-border-radius: 4px;
|
|
|
--ui-text: var(--neutral-900);
|
|
|
--ui-text-secondary: var(--neutral-700);
|
|
|
--ui-text-placeholder: var(--neutral-500);
|
|
|
--ui-text-muted: var(--neutral-300);
|
|
|
/** A field is a UI element in which a user can type data, for
|
|
|
* example an input or textarea element.
|
|
|
*/
|
|
|
--ui-field-bg: var(--neutral-100);
|
|
|
--ui-field-bg-hover: var(--neutral-100);
|
|
|
--ui-field-bg-disabled: var(--neutral-300);
|
|
|
--ui-field-bg-invalid: var(--red-100);
|
|
|
--ui-field-bg-focus: var(--neutral-100);
|
|
|
--ui-field-border: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-hover: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-disabled: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-invalid: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-focus: 0.5px solid var(--border-color);
|
|
|
--ui-menu-bg: var(--neutral-100);
|
|
|
--ui-menu-text: var(--neutral-900);
|
|
|
--ui-menu-bg-hover: var(--neutral-200);
|
|
|
--ui-menu-text-hover: var(--neutral-900);
|
|
|
/** The \`active\` state is used for the state of menu items
|
|
|
* when they are selected.
|
|
|
*/
|
|
|
--ui-menu-bg-active: var(--primary-color);
|
|
|
--ui-menu-text-active: var(--primary-color-reverse);
|
|
|
/** The \`active-muted\` set is used for the state of
|
|
|
* submenus when they are open.
|
|
|
*/
|
|
|
--ui-menu-bg-active-muted: var(--neutral-300);
|
|
|
--ui-menu-text-active-muted: var(--neutral-900);
|
|
|
/* --ui-menu-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302),
|
|
|
0 2px 6px 2px rgba(60, 64, 67, 0.149); */
|
|
|
--ui-menu-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
|
|
|
--ui-menu-divider: 0.5px solid #c7c7c7;
|
|
|
/* var(--neutral-300); */
|
|
|
--ui-menu-z-index: 10000;
|
|
|
--page-bg: var(--neutral-100);
|
|
|
--content-bg: var(--neutral-200);
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--ui-menu-bg: var(--neutral-200);
|
|
|
}
|
|
|
}
|
|
|
:host([theme='dark']) {
|
|
|
--ui-menu-bg: var(--neutral-200);
|
|
|
}
|
|
|
/* PingFang SC is a macOS font. Microsoft Yahei is a Windows font.
|
|
|
Noto is a Linux/Android font.
|
|
|
*/
|
|
|
:lang(zh-cn),
|
|
|
:lang(zh-sg),
|
|
|
:lang(zh-my),
|
|
|
:lang(zh) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'PingFang SC', 'Hiragino Sans GB',
|
|
|
'Noto Sans CJK SC', 'Noto Sans SC', 'Noto Sans', 'Microsoft Yahei UI',
|
|
|
'Microsoft YaHei New', 'Microsoft Yahei', '\u5FAE\u8F6F\u96C5\u9ED1', SimSun, '\u5B8B\u4F53',
|
|
|
STXihei, '\u534E\u6587\u7EC6\u9ED1', sans-serif;
|
|
|
}
|
|
|
:lang(zh-tw),
|
|
|
:lang(zh-hk),
|
|
|
:lang(zh-mo) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans',
|
|
|
'Microsoft JhengHei UI', 'Microsoft JhengHei', '\u5FAE\u8EDF\u6B63\u9ED1\u9AD4', '\u65B0\u7D30\u660E\u9AD4',
|
|
|
'PMingLiU', '\u7D30\u660E\u9AD4', 'MingLiU', sans-serif;
|
|
|
}
|
|
|
:lang(ja),
|
|
|
:lang(ja-jp),
|
|
|
:lang(ja-jp-mac) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Hiragino Sans',
|
|
|
'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Noto Sans',
|
|
|
'\u6E38\u30B4\u30B7\u30C3\u30AF', '\u6E38\u30B4\u30B7\u30C3\u30AF\u4F53', YuGothic, 'Yu Gothic', '\u30E1\u30A4\u30EA\u30AA', Meiryo,
|
|
|
'\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF', 'MS PGothic', sans-serif;
|
|
|
}
|
|
|
:lang(ko),
|
|
|
:lang(ko-kr),
|
|
|
:lang(ko-kr-std) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
|
|
|
'Noto Sans', 'Malgun Gothic', '\uB9D1\uC740 \uACE0\uB515', 'Apple SD Gothic Neo',
|
|
|
'\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo', 'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
|
|
|
}
|
|
|
:lang(ko-kr-apple) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
|
|
|
'Noto Sans', 'Apple SD Gothic Neo', '\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo',
|
|
|
'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
|
|
|
}
|
|
|
:lang(zh-cn),
|
|
|
:lang(zh-sg),
|
|
|
:lang(zh-my),
|
|
|
:lang(zh),
|
|
|
:lang(zh-tw),
|
|
|
:lang(zh-hk),
|
|
|
:lang(zh-mo),
|
|
|
:lang(ja),
|
|
|
:lang(ja-jp),
|
|
|
:lang(ja-jp-mac),
|
|
|
:lang(ko),
|
|
|
:lang(ko-kr),
|
|
|
:lang(ko-kr-std),
|
|
|
:lang(ko-kr-apple) {
|
|
|
--ui-font-size: 1rem;
|
|
|
--ui-line-height: 1.7;
|
|
|
--ui-letter-spacing: 0;
|
|
|
}
|
|
|
:dir(rtl) {
|
|
|
--ui-line-height: auto;
|
|
|
--ui-letter-spacing: 0;
|
|
|
}
|
|
|
`,dh=`.ui-menu *,
|
|
|
.ui-menu ::before,
|
|
|
.ui-menu ::after {
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ui-menu {
|
|
|
display: none;
|
|
|
color-scheme: light dark;
|
|
|
-webkit-user-select: none;
|
|
|
/* Important: Safari iOS doesn't respect user-select */
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0 0 0 0);
|
|
|
--active-label-color: #fff;
|
|
|
/* ui-menu-text-active */
|
|
|
--label-color: #121212;
|
|
|
/* ui-menu-text */
|
|
|
--menu-bg: #e2e2e2;
|
|
|
/* ui-menu-background */
|
|
|
--active-bg: #5898ff;
|
|
|
/* ui-menu-background-active */
|
|
|
--active-bg-dimmed: #c5c5c5;
|
|
|
/* ui-menu-background-active-muted */
|
|
|
}
|
|
|
/** Use the :where pseudo selector to make the specificity of the
|
|
|
* selector 0, so that it can be overridden by the user.
|
|
|
*/
|
|
|
:where(.ui-menu-container) {
|
|
|
position: absolute;
|
|
|
overflow: visible;
|
|
|
width: auto;
|
|
|
height: auto;
|
|
|
z-index: 10000;
|
|
|
border-radius: 8px;
|
|
|
background: var(--ui-menu-bg);
|
|
|
box-shadow: var(--ui-menu-shadow);
|
|
|
list-style: none;
|
|
|
padding: 6px 0 6px 0;
|
|
|
margin: 0;
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
color: var(--ui-menu-text);
|
|
|
font-weight: normal;
|
|
|
font-style: normal;
|
|
|
text-shadow: none;
|
|
|
text-transform: none;
|
|
|
letter-spacing: 0;
|
|
|
outline: none;
|
|
|
opacity: 1;
|
|
|
/* The [popover] elements have a 1px solid black border. Ugh. */
|
|
|
border: none;
|
|
|
width: fit-content;
|
|
|
height: fit-content;
|
|
|
}
|
|
|
:where(.ui-menu-container > li) {
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
align-items: center;
|
|
|
padding: 1px 7px 1px 7px;
|
|
|
margin-top: 0;
|
|
|
margin-left: 6px;
|
|
|
margin-right: 6px;
|
|
|
border-radius: 4px;
|
|
|
white-space: nowrap;
|
|
|
position: relative;
|
|
|
outline: none;
|
|
|
fill: currentColor;
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
text-align: left;
|
|
|
color: inherit;
|
|
|
font-family: var(--ui-font-family);
|
|
|
font-size: var(--ui-font-size);
|
|
|
line-height: var(--ui-line-height);
|
|
|
letter-spacing: var(--ui-letter-spacing);
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label) {
|
|
|
appearance: none;
|
|
|
background: none;
|
|
|
outline: none;
|
|
|
width: 100%;
|
|
|
margin: 0;
|
|
|
padding: 1px 2px 1px 1px;
|
|
|
overflow: visible;
|
|
|
border: 1px solid transparent;
|
|
|
white-space: nowrap;
|
|
|
text-align: start;
|
|
|
}
|
|
|
:where(.ui-menu-container > li:has(.heading)) {
|
|
|
margin-top: 0.5em;
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label.heading) {
|
|
|
font-weight: bold;
|
|
|
opacity: 0.4;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.indent > .label) {
|
|
|
margin-inline-start: 12px;
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label.indent) {
|
|
|
margin-inline-start: 12px;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[role='divider']) {
|
|
|
border-bottom: 1px solid var(--ui-menu-divider);
|
|
|
border-radius: 0;
|
|
|
padding: 0;
|
|
|
margin-left: 15px;
|
|
|
margin-right: 15px;
|
|
|
padding-top: 5px;
|
|
|
margin-bottom: 5px;
|
|
|
width: calc(100% - 30px);
|
|
|
/** 100% - (margin-left + margin-right) */
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-disabled='true']) {
|
|
|
opacity: 0.5;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active) {
|
|
|
background: var(--ui-menu-bg-active);
|
|
|
background: -apple-system-control-accent;
|
|
|
color: var(--ui-menu-text-active);
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active.is-submenu-open) {
|
|
|
background: var(--ui-menu-bg-active-muted);
|
|
|
color: inherit;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-haspopup='true'] > .label) {
|
|
|
padding-inline-end: 0;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-haspopup='true'].active::after) {
|
|
|
color: var(--ui-menu-text-active);
|
|
|
}
|
|
|
/** Keyboard shortcut */
|
|
|
:where(.ui-menu-container > li > kbd) {
|
|
|
font-family: var(--ui-font-family);
|
|
|
margin-inline-start: 12px;
|
|
|
opacity: 0.4;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active > kbd) {
|
|
|
opacity: 0.85;
|
|
|
}
|
|
|
.ui-trailing-chevron {
|
|
|
display: flex;
|
|
|
margin-inline-start: 24px;
|
|
|
width: 10px;
|
|
|
height: 10px;
|
|
|
margin-bottom: 4px;
|
|
|
}
|
|
|
.ui-trailing-chevron:dir(rtl) {
|
|
|
transform: scaleX(-1);
|
|
|
}
|
|
|
.ui-checkmark {
|
|
|
display: flex;
|
|
|
margin-inline-end: -11px;
|
|
|
margin-inline-start: -4px;
|
|
|
margin-top: 2px;
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
}
|
|
|
.ui-mixedmark {
|
|
|
display: flex;
|
|
|
margin-inline-end: -11px;
|
|
|
margin-inline-start: -4px;
|
|
|
margin-top: 2px;
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
}
|
|
|
`,To;function rc(a){let y="";switch(a){case"mathfield-element":y=`
|
|
|
:host { display: inline-block; background-color: field; color: fieldtext; border-width: 1px; border-style: solid; border-color: #acacac; border-radius: 2px; padding:4px;}
|
|
|
:host([hidden]) { display: none; }
|
|
|
:host([disabled]), :host([disabled]:focus), :host([disabled]:focus-within) { outline: none; opacity: .5; }
|
|
|
:host(:focus), :host(:focus-within) {
|
|
|
outline: Highlight auto 1px; /* For Firefox */
|
|
|
outline: -webkit-focus-ring-color auto 1px;
|
|
|
}
|
|
|
:host([readonly]:focus), :host([readonly]:focus-within),
|
|
|
:host([read-only]:focus), :host([read-only]:focus-within) {
|
|
|
outline: none;
|
|
|
}
|
|
|
@media (hover: none) and (pointer: coarse) {
|
|
|
:host(:not(:focus)) :first-child { pointer-events: none !important; }
|
|
|
}`;break;case"core":y=Mo;break;case"mathfield":y=bf;break;case"environment-popover":y=xf;break;case"suggestion-popover":y=uh;break;case"keystroke-caption":y=vc;break;case"virtual-keyboard":y=ch;break;case"ui":y=nd;break;case"menu":y=dh;break;default:debugger}return y}function yc(a){return To||(To={}),To[a]||(To[a]=new CSSStyleSheet,To[a].replaceSync(rc(a))),To[a]}var Du;function eu(a){var y;if(!("adoptedStyleSheets"in document)){if(window.document.getElementById(`mathlive-style-${a}`))return;const b=window.document.createElement("style");b.id=`mathlive-style-${a}`,b.append(window.document.createTextNode(rc(a))),window.document.head.appendChild(b);return}if(Du||(Du={}),((y=Du[a])!=null?y:0)!==0)Du[a]+=1;else{const b=yc(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],Du[a]=1}}function x(a){if("adoptedStyleSheets"in document&&Du!=null&&Du[a]&&(Du[a]-=1,Du[a]<=0)){const y=To[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var z=class Mp extends Zn{constructor(y){var b;super(ye(Ee({},y),{type:"accent",body:(b=y.body)!=null?b:void 0})),y.accentChar?this.accent=y.accentChar:this.svgAccent=y==null?void 0:y.svgAccent,this.skipBoundary=!0,this.captureSelection=!0}static fromJson(y){return new Mp(y)}toJson(){return ye(Ee({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const E=new qa({parent:y,mathstyle:"cramp"},this.style),ee=(b=Zn.createBox(E,this.body))!=null?b:new Nr("\u25A2",{style:this.style});let ie=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(ie=ee.skew);let oe=Math.min(ee.height,Za),fe;if(this.svgAccent)fe=ou(this.svgAccent),oe=E.metrics.bigOpSpacing1-oe;else if(this.accent){const be=new Nr(this.accent,{fontFamily:"Main-Regular"});be.italic=0;const ke=this.accent===8407?" ML__accent-vec":"";fe=new Nr(new Nr(be),{classes:"ML__accent-body"+ke})}fe=new Lo({shift:0,children:[{box:new Nr(ee)},-oe,{box:fe,marginLeft:ee.left+2*ie,classes:["ML__center"]}]});const me=new Nr(fe,{type:"lift"});return this.caret&&(me.caret=this.caret),this.bind(E,me.wrap(E)),this.attachSupsub(E,{base:me})}},ne={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\lparen":"\\rparen","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},te=Object.fromEntries(Object.entries(ne).map(([a,y])=>[y,a]));function ae(a){var y;return(y={"[":91,"]":93,"(":40,")":41,"\\mid":8739,"|":8739,"\u2223":8739,"\u2225":8741,"\\|":8739,"\\{":123,"\\}":125,"\\lbrace":123,"\\rbrace":125,"\\lparen":40,"\\rparen":41,"\\lbrack":91,"\\rbrack":93,"\\vert":8739,"\\lvert":8739,"\\mvert":8739,"\\rvert":8739,"\\Vert":8741,"\\lVert":8741,"\\mVert":8741,"\\rVert":8741,"\\parallel":8741,"\\shortparallel":8741,"\\langle":10216,"\\rangle":10217,"\\lfloor":8970,"\\rfloor":8971,"\\lceil":8968,"\\rceil":8969,"\\ulcorner":9484,"\\urcorner":9488,"\\llcorner":9492,"\\lrcorner":9496,"\\lgroup":10222,"\\rgroup":10223,"\\lmoustache":9136,"\\rmoustache":9137,"\\surd":8730}[a])!=null?y:a.codePointAt(0)}function ce(a,y,b,E){var ee;const oe=new Nr(ae(a),{fontFamily:"Main-Regular",isSelected:E.isSelected,classes:"ML__small-delim "+((ee=E.classes)!=null?ee:"")}).wrap(y);return b&&oe.setTop((1-y.scalingFactor)*ka),oe}function ve(a,y,b,E,ee){var ie,oe;const fe=new qa({parent:E,mathstyle:"textstyle"},ee==null?void 0:ee.style),me=new Nr(ae(a),{fontFamily:`Size${y}-Regular`,isSelected:ee.isSelected,classes:((ie=ee.classes)!=null?ie:"")+` ML__delim-size${y}`,type:(oe=ee.type)!=null?oe:"ignore"}).wrap(fe);return b&&me.setTop((1-fe.scalingFactor)*ka),me}function Me(a,y,b,E,ee){var ie;let oe,fe,me,be;oe=me=be=ae(a),fe=null;let ke="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?me=oe=be=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?me=oe=be=8741:a==="\\uparrow"?me=be=9168:a==="\\Uparrow"?me=be=8214:a==="\\downarrow"?oe=me=9168:a==="\\Downarrow"?oe=me=8214:a==="\\updownarrow"?(oe=8593,me=9168,be=8595):a==="\\Updownarrow"?(oe=8657,me=8214,be=8659):a==="["||a==="\\lbrack"?(oe=9121,me=9122,be=9123,ke="Size4-Regular"):a==="]"||a==="\\rbrack"?(oe=9124,me=9125,be=9126,ke="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(me=oe=9122,be=9123,ke="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(oe=9121,me=be=9122,ke="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(me=oe=9125,be=9126,ke="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(oe=9124,me=be=9125,ke="Size4-Regular"):a==="("||a==="\\lparen"?(oe=9115,me=9116,be=9117,ke="Size4-Regular"):a===")"||a==="\\rparen"?(oe=9118,me=9119,be=9120,ke="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(oe=9127,fe=9128,be=9129,me=9130,ke="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(oe=9131,fe=9132,be=9133,me=9130,ke="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(oe=9127,be=9129,me=9130,ke="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(oe=9131,be=9133,me=9130,ke="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(oe=9127,be=9133,me=9130,ke="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(oe=9131,be=9129,me=9130,ke="Size4-Regular"):a==="\\surd"?(oe=57345,be=9143,me=57344,ke="Size4-Regular"):a==="\\ulcorner"?(oe=9484,me=be=32):a==="\\urcorner"?(oe=9488,me=be=32):a==="\\llcorner"?(be=9492,me=oe=32):a==="\\lrcorner"&&(oe=9496,me=oe=32);const Ke=Va(oe,ke),rt=Ke.height+Ke.depth,xt=Va(me,ke),Ft=xt.height+xt.depth,Sn=Va(be,ke),Fr=Sn.height+Sn.depth;let xn=0,tr=1;if(fe!==null){const fl=Va(fe,ke);xn=fl.height+fl.depth,tr=2}const Kr=rt+Fr+xn,cr=Math.max(0,Math.ceil((y-Kr)/(tr*Ft))),Fi=Kr+cr*tr*Ft;let ra=ka;b&&(ra=ra*E.scalingFactor);const ji=Fi/2-ra,ro=.008,Bo=[];Bo.push({box:new Nr(be,{fontFamily:ke})}),Bo.push(-ro);const jr=new Nr(me,{fontFamily:ke});if(fe===null)for(let fl=0;fl<cr;fl++)Bo.push({box:jr});else{for(let fl=0;fl<cr;fl++)Bo.push({box:jr});Bo.push(-ro),Bo.push({box:new Nr(fe,{fontFamily:ke})}),Bo.push(-ro);for(let fl=0;fl<cr;fl++)Bo.push({box:jr})}Bo.push(-ro),Bo.push({box:new Nr(oe,{fontFamily:ke})});let du="";ke==="Size1-Regular"?du=" delim-size1":ke==="Size4-Regular"&&(du=" delim-size4");const Yu=new Lo({bottom:ji,children:Bo},{classes:du});return new Nr(Yu,ye(Ee({},ee!=null?ee:{}),{classes:((ie=ee==null?void 0:ee.classes)!=null?ie:"")+" ML__delim-mult"}))}var De=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),_e=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),yt=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Lt=[0,1.2,1.8,2.4,3];function pn(a,y,b,E){return a===void 0||a==="."?ki(b,E.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),De.has(a)||yt.has(a)?ve(a,y,!1,b,E):_e.has(a)?Me(a,Lt[y],!1,b,E):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var sn=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],jn=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],pr=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];function Zr(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function ui(a,y,b,E){const ee={"-4":0,"-3":1,0:2}[E.mathstyle.sizeDelta];for(let ie=ee;ie<b.length&&b[ie].type!=="stack";ie++){const oe=Va(a,Zr(b[ie]));if(oe.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let fe=oe.height+oe.depth;if(b[ie].type==="small"&&(b[ie].mathstyle==="scriptscriptstyle"?fe*=Math.max(Ho[Math.max(1,E.size-2)],E.minFontScale):b[ie].mathstyle==="scriptstyle"&&(fe*=Math.max(Ho[Math.max(1,E.size-1)],E.minFontScale))),fe>y)return b[ie]}return b[b.length-1]}function xi(a,y,b,E,ee,ie){if(!y||y.length===0||y===".")return ki(ee);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let oe;yt.has(y)?oe=sn:De.has(y)?oe=pr:oe=jn;const fe=ui(ae(y),b,oe,ee),me=new qa({parent:ee,mathstyle:fe.mathstyle},ie==null?void 0:ie.style);return fe.type==="small"?ce(y,me,E,ye(Ee({},ie),{type:a})):fe.type==="large"?ve(y,fe.size,E,me,ye(Ee({},ie),{type:a})):(console.assert(fe.type==="stack"),Me(y,b,E,me,ye(Ee({},ie),{type:a})))}function ni(a,y,b,E,ee,ie){if(y===".")return ki(ee,ie==null?void 0:ie.classes);const oe=ka*ee.scalingFactor,fe=901,me=5/za,be=Math.max(b-oe,E+oe),ke=Math.max(be/500*fe,2*be-me);return xi(a,y,ke,!0,ee,ie)}function ki(a,y){const b=new Nr(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new qa({parent:a,mathstyle:"textstyle"}))}var sa=class Bp extends Zn{constructor(y){var b;super({type:"placeholder",command:"\\placeholder",mode:(b=y==null?void 0:y.mode)!=null?b:"math",style:y==null?void 0:y.style}),this.captureSelection=!0}static fromJson(y){return new Bp(y)}toJson(){return super.toJson()}render(y){let b;return this.value=y.placeholderSymbol,typeof y.renderPlaceholder=="function"?b=y.renderPlaceholder(y):b=this.createBox(y),this.caret&&(b.classes+=" ML__placeholder-selected"),b}_serialize(y){return y.skipPlaceholders?"":"\\placeholder{}"}},ha=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],Ya=["cases","dcases","rcases"],Po=["align","align*","aligned","gather","gathered","split"],nl=["array","subequations","eqnarray"];function hs(a){return nl.concat(Po).concat(Ya).concat(ha).includes(a)}function Ll(a){return ha.includes(a)}function Tl(a){return Ya.includes(a)}function Vs(a){return Po.includes(a)}function Pl(a,y,b){let E=0;for(const be of b)"align"in be&&(E+=1);let ee=0;const ie=[];for(const be of y){let ke=0;for(ee=Math.max(ee,Math.min(be.length,E));ke<be.length;){const Ke=[],rt=Math.min(be.length,ke+E);for(;ke<rt;){const xt=be[ke];xt.length===0?Ke.push([new Zn({type:"first",mode:a.mode})]):xt[0].type!=="first"?Ke.push([new Zn({type:"first",mode:a.mode}),...xt]):(console.assert(!xt.slice(1).some(Ft=>Ft.type==="first")),Ke.push(xt)),ke+=1}ie.push(Ke)}}ie.length>0&&ie[ie.length-1].length===1&&ie[ie.length-1][0].length===1&&ie[ie.length-1][0][0].type==="first"&&ie.pop();const oe=[];for(const be of ie){if(be.length!==ee)for(let ke=be.length;ke<ee;ke++)be.push([new Zn({type:"first",mode:a.mode}),new sa]);oe.push(be)}let fe=0,me=0;for(const be of oe){me=0;for(const ke of be){for(const Ke of ke)Ke.parent=a,Ke.parentBranch=[fe,me];me+=1}fe+=1}return a.isDirty=!0,oe}var Pa=class Dp extends Zn{constructor(y,b,E,ee={}){var ie;super({type:"array"}),this.environmentName=y,this.rowGaps=E,ee.mathstyleName&&(this.mathstyleName=ee.mathstyleName),ee.columns&&(ee.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=ee.columns),this.colFormat||(this.colFormat=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]),this.array=Pl(this,b,this.colFormat),ee.leftDelim&&(this.leftDelim=ee.leftDelim),ee.rightDelim&&(this.rightDelim=ee.rightDelim),ee.arraycolsep!==void 0&&(this.arraycolsep=ee.arraycolsep),this.colSeparationType=ee.colSeparationType,ee.arraystretch!==void 0&&(this.arraystretch=ee.arraystretch),this.minColumns=(ie=ee.minColumns)!=null?ie:1}static fromJson(y){return new Dp(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=ye(Ee({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(b=>b.map(E=>E.map(ee=>ee.toJson()))),rowGaps:this.rowGaps,columns:this.colFormat,colSeparationType:this.colSeparationType});return this.arraystretch!==void 0&&(y.arraystretch=this.arraystretch),this.arraycolsep!==void 0&&(y.arraycolsep=this.arraycolsep),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),y}branch(y){var b;if(Dc(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return Dc(y)?(this.isDirty=!0,(b=this.branch(y))!=null?b:[]):[]}get rowCount(){return this.array.length}get colCount(){return this.array[0].length}get maxColumns(){return this.colFormat.filter(y=>!!y.align).length}removeBranch(y){if(Mu(y))return super.removeBranch(y);const b=this.branch(y);return this.array[y[0]][y[1]]=void 0,b.forEach(E=>{E.parent=void 0,E.parentBranch=void 0}),console.assert(b[0].type==="first"),b.shift(),this.isDirty=!0,b}get hasChildren(){return this.children.length>0}get children(){const y=[];for(const b of this.array)for(const E of b)if(E)for(const ee of E)y.push(...ee.children),y.push(ee);return[...y,...super.children]}render(y){var b,E,ee,ie,oe,fe;const me=new qa({parent:y,mathstyle:this.mathstyleName},this.style),be=me.getRegisterAsEm("arrayrulewidth"),ke=me.getRegisterAsEm("arraycolsep"),Ke=me.getRegisterAsEm("doublerulesep"),rt=(E=(b=this.arraystretch)!=null?b:me.getRegisterAsNumber("arraystretch"))!=null?E:1;let xt=typeof this.arraycolsep=="number"?this.arraycolsep:ke;this.colSeparationType==="small"&&(xt=.2778*(new qa({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const Ft=rt*no,Sn=.7*Ft,Fr=.3*Ft;let xn=0;const tr=[];let Kr=0;const cr=this.array.length;for(let Io=0;Io<cr;++Io){const Rs=this.array[Io];Kr=Math.max(Kr,Rs.length);const hl=new qa({parent:me,mathstyle:this.mathstyleName},this.style);let Ju=Sn/hl.scalingFactor,Xu=Fr/hl.scalingFactor;const qu={cells:[],height:0,depth:0,pos:0};for(const Tu of Rs){const e0=(ee=Zn.createBox(hl,Tu,{type:"ignore"}))!=null?ee:new Nr(null,{type:"ignore"});Xu=Math.max(Xu,e0.depth),Ju=Math.max(Ju,e0.height),qu.cells.push(e0)}let $u=(ie=Ad(this.rowGaps[Io]))!=null?ie:0;$u>0&&($u+=Fr,Xu=Math.max(Xu,$u),$u=0),Io<cr-1&&!Ll(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Xu+=me.getRegisterAsEm("jot")),qu.height=Ju,qu.depth=Xu,xn+=Ju,qu.pos=xn,xn+=Xu+$u,tr.push(qu)}const Fi=xn/2+ka,ra=[];for(let Io=0;Io<Kr;Io++){const Rs=[];for(const hl of tr){const Ju=hl.cells[Io];Ju.depth=hl.depth,Ju.height=hl.height,Rs.push({box:Ju,shift:hl.pos-Fi})}Rs.length>0&&ra.push(new Lo({individualShift:Rs}))}const ji=[];let ro=!1,Bo=!1,jr=0,du=!this.leftDelim;const{colFormat:Yu}=this;for(const Io of Yu){if("align"in Io&&jr>=ra.length)break;if("align"in Io)ro?ji.push(ps(2*xt)):(Bo||du)&&ji.push(ps(xt)),ji.push(new Nr(ra[jr],{classes:"col-align-"+Io.align})),jr++,ro=!0,Bo=!1,du=!1;else if("gap"in Io){if(typeof Io.gap=="number")ji.push(ps(Io.gap));else{const Rs=As(y,tr,Fi,Io.gap);Rs&&ji.push(Rs)}ro=!1,Bo=!1,du=!1}else if("separator"in Io){const Rs=new Nr(null,{classes:"vertical-separator"});Rs.height=xn,Rs.setStyle("height",xn,"em"),Rs.setStyle("border-right",`${be}em ${Io.separator} currentColor`),Rs.setStyle("vertical-align",-(xn-Fi),"em");let hl=0;Bo?hl=Ke-be:ro&&(hl=xt-be),Rs.left=hl,ji.push(Rs),ro=!1,Bo=!0,du=!1}}ro&&!this.rightDelim&&ji.push(ps(xt));const Su=new Nr(ji,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(Su.caret=this.caret),this.bind(y,Su);const fl=Su.height,fu=Su.depth,jl=this.bind(y,new Nr([this.bind(y,ni("open",(oe=this.leftDelim)!=null?oe:".",fl,fu,me,{isSelected:this.isSelected})),Su,this.bind(y,ni("close",(fe=this.rightDelim)!=null?fe:".",fl,fu,me,{isSelected:this.isSelected}))],{type:"ord"}));return jl?(jl.setStyle("display","inline-block"),this.caret&&(jl.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:jl}))):null}_serialize(y){var b;const E=[];if(this.environmentName==="lines"?E.push("{\\displaylines"):E.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(E.push("{"),this.colFormat!==void 0)for(const ee of this.colFormat)"align"in ee&&typeof ee.align=="string"?E.push(ee.align):"separator"in ee&&ee.separator==="solid"?E.push("|"):"separator"in ee&&ee.separator==="dashed"&&E.push(":");E.push("}")}for(let ee=0;ee<this.array.length;ee++){for(let ie=0;ie<this.array[ee].length;ie++)ie>0&&E.push(" & "),E.push(Zn.serialize(this.array[ee][ie],y));if(ee<this.array.length-1){const ie=this.rowGaps[ee];ie!=null&&ie.dimension?E.push(`\\\\[${ie.dimension} ${(b=ie.unit)!=null?b:"pt"}] `):E.push("\\\\ ")}}return this.environmentName==="lines"?E.push("}"):E.push(`\\end{${this.environmentName}}`),di(E)}getCell(y,b){return this.array[y][b]}setCell(y,b,E){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[y][b]!==void 0);for(const ie of this.array[y][b])ie.parent=void 0,ie.parentBranch=void 0;let ee=E;(E.length===0||E[0].type!=="first")&&(ee=[new Zn({type:"first",mode:this.mode}),...E]),this.array[y][b]=ee;for(const ie of ee)ie.parent=this,ie.parentBranch=[y,b];this.isDirty=!0}addRowBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let E=0;E<this.colCount;E++)b.push(Ss(this));this.array.splice(y,0,b);for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const ie=this.array[E][ee];if(ie)for(const oe of ie)oe.parentBranch=[E,ee]}this.isDirty=!0}addRowAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let E=0;E<this.colCount;E++)b.push(Ss(this));this.array.splice(y+1,0,b);for(let E=y+1;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const ie=this.array[E][ee];if(ie)for(const oe of ie)oe.parentBranch=[E,ee]}this.isDirty=!0}removeRow(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.rowCount>y);const b=this.array.splice(y,1);for(const E of b)for(const ee of E)if(ee)for(const ie of ee)ie.parent=void 0,ie.parentBranch=void 0;for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const ie=this.array[E][ee];if(ie)for(const oe of ie)oe.parentBranch=[E,ee]}this.isDirty=!0}addColumnBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y,0,Ss(this));for(let b=0;b<this.rowCount;b++)for(let E=y;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const ie of ee)ie.parentBranch=[b,E]}this.isDirty=!0}addColumnAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y+1,0,Ss(this));for(let b=0;b<this.rowCount;b++)for(let E=y+1;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const ie of ee)ie.parentBranch=[b,E]}this.isDirty=!0}addColumn(){this.addColumnAfter(this.colCount-1)}removeColumn(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.colCount>y);for(const b of this.array){const E=b.splice(y,1);for(const ee of E)if(ee)for(const ie of ee)ie.parent=void 0,ie.parentBranch=void 0}for(let b=0;b<this.rowCount;b++)for(let E=y;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const ie of ee)ie.parentBranch=[b,E]}this.isDirty=!0}get cells(){const y=[];for(const b of this.array)for(const E of b)E&&y.push(E.filter(ee=>ee.type!=="first"));return y}};function Ss(a){const y=new Zn({type:"first",mode:a.mode});y.parent=a;const b=new sa;return b.parent=a,[y,b]}function ps(a){const y=new Nr(null,{classes:"arraycolsep"});return y.width=a,y}function As(a,y,b,E){if(!E)return null;const ee=[];for(const ie of y){const oe=Zn.createBox(a,E,{type:"ignore"});oe&&(oe.depth=ie.depth,oe.height=ie.height,ee.push({box:oe,shift:ie.pos-b}))}return new Lo({individualShift:ee}).wrap(a)}var Is=class Fp extends Zn{constructor(y){super({mode:y.mode,command:y.command,style:y.style,body:y.body,type:"box"}),this.framecolor=y.framecolor,this.backgroundcolor=y.backgroundcolor,this.padding=y.padding,this.offset=y.offset,this.border=y.border}static fromJson(y){return new Fp(y)}toJson(){return ye(Ee({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(y){var b,E,ee,ie;const oe=Zn.createBox(y,this.body,{type:"lift"});if(!oe)return null;const fe=y.toEm((b=this.offset)!=null?b:{dimension:0});oe.depth+=fe,oe.setStyle("display","inline-block"),oe.setStyle("position","relative"),oe.setStyle("height",Math.floor(100*oe.height+oe.depth)/100,"em"),oe.setStyle("vertical-align",-Math.floor(100*oe.height)/100,"em");const me=new qa({parent:y},this.style),be=me.toEm((E=this.padding)!=null?E:{register:"fboxsep"}),ke=new Nr(null,{classes:"ML__box"});ke.height=oe.height+be,ke.depth=oe.depth+be,ke.setStyle("box-sizing","border-box"),ke.setStyle("position","absolute"),ke.setStyle("top",-be+.3,"em"),ke.setStyle("left",0),ke.setStyle("height",ke.height+ke.depth,"em"),ke.setStyle("width","100%"),this.backgroundcolor&&ke.setStyle("background-color",(ee=me.toColor(this.backgroundcolor))!=null?ee:"transparent"),this.framecolor&&ke.setStyle("border",`${me.getRegisterAsEm("fboxrule",2)}em solid ${(ie=me.toColor(this.framecolor))!=null?ie:"black"}`),this.border&&ke.setStyle("border",this.border);const Ke=new Nr([ke,oe],{type:"lift"});return Ke.setStyle("display","inline-block"),Ke.setStyle("position","relative"),Ke.setStyle("line-height",0),Ke.height=oe.height+be+(fe>0?fe:0),Ke.depth=oe.depth+be+(fe<0?-fe:0),Ke.setStyle("padding-left",be,"em"),Ke.setStyle("padding-right",be,"em"),Ke.setStyle("height",Math.floor(100*(oe.height+oe.depth+2*be+Math.abs(fe)))/100,"em"),Ke.setStyle("margin-top",-be,"em"),Ke.setStyle("top",Math.floor(100*(oe.depth-oe.height+2*be-fe))/100,"em"),Ke.setStyle("vertical-align",Math.floor(100*(oe.depth+2*be))/100,"em"),this.caret&&(Ke.caret=this.caret),this.attachSupsub(y,{base:Ke})}_serialize(y){return y.skipStyles?di([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},ic=class Lp extends Zn{constructor(y,b){var E;super({type:"composition",mode:(E=b==null?void 0:b.mode)!=null?E:"math",value:y})}static fromJson(y){return new Lp(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new Nr(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},Kl=class Tp extends Zn{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new Tp(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},ul=class Pp extends Zn{constructor(y,b,E){super({type:"group",mode:b,style:E}),this.body=y,this.boxType=y.length>1?"ord":"ignore",this.skipBoundary=!0,this.displayContainsHighlight=!1,y&&y.length===1&&y[0].command===","&&(this.captureSelection=!0)}static fromJson(y){return new Pp(y.body,y.mode,y.style)}render(y){const b=Zn.createBox(y,this.body,{type:this.boxType});return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=wr(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},bo=class Np extends Zn{constructor(y,b,E){super({type:"leftright",style:E.style,displayContainsHighlight:!0}),this.variant=y,this.body=b,this.leftDelim=E.leftDelim,this.rightDelim=E.rightDelim}static fromJson(y){var b;return new Np((b=y.variant)!=null?b:"",y.body,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),y}_serialize(y){var b,E;const ee=this.matchingRightDelim();return this.variant==="left...right"?di(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ee]):this.variant==="mleft...mright"?di(["\\mleft",(E=this.leftDelim)!=null?E:".",this.bodyToLatex(y),"\\mright",ee]):di([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(y),ee])}matchingRightDelim(){var y,b;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const E=(y=this.leftDelim)!=null?y:".";return(b=ne[E])!=null?b:E}render(y){var b,E;const ee=new qa({parent:y},this.style);console.assert(this.body!==void 0);const ie=new qa({parent:y,mathstyle:"textstyle"},this.style),oe=(b=Zn.createBox(ee,this.body,{type:"inner"}))!=null?b:new Nr(null,{type:"inner"}),fe=oe.height/ie.scalingFactor,me=oe.depth/ie.scalingFactor,be=[];if(this.leftDelim&&be.push(this.bind(ie,ni("open",this.leftDelim,fe,me,ie,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),oe&&(Ys(oe.children,this,ee,fe,me),be.push(oe)),this.rightDelim){let xt=this.containsCaret?" ML__contains-caret":"",Ft=this.rightDelim;Ft==="?"&&(ee.smartFence?(Ft=this.matchingRightDelim(),xt+=" ML__smart-fence__close"):Ft="."),be.push(this.bind(ie,ni("close",Ft,fe,me,ie,{isSelected:this.isSelected,classes:xt+" ML__close",mode:this.mode,style:this.style})))}let ke=this.variant==="mleft...mright";const Ke=this.leftSibling;Ke&&(!ke&&Ke.isFunction&&(ke=!0),!ke&&Ke.type==="subsup"&&((E=Ke.leftSibling)!=null&&E.isFunction)&&(ke=!0));const rt=new Nr(be,{type:ke?"close":"inner",classes:"left-right"});return rt.setStyle("margin-top",`${-oe.depth}em`),rt.setStyle("height",`${oe.height+oe.depth}em`),this.caret&&(rt.caret=this.caret),this.bind(ee,rt.wrap(ee))}};function Ys(a,y,b,E,ee){if(a)for(let ie=0;ie<a.length;ie++){const oe=a[ie];oe.type==="middle"?(a[ie]=y.bind(b,ni("inner",oe.value,E,ee,b,{isSelected:y.isSelected})),a[ie].caret=oe.caret,a[ie].isSelected=oe.isSelected,a[ie].cssId=oe.cssId,a[ie].htmlData=oe.htmlData,a[ie].htmlStyle=oe.htmlStyle,a[ie].attributes=oe.attributes,a[ie].cssProperties=oe.cssProperties):oe.children&&Ys(oe.children,y,b,E,ee)}}var rd=class Ip extends Zn{constructor(y,b){var E;super({type:"macro",command:y,style:b.style}),this.body=b.body,b.captureSelection===void 0?b.args?this.captureSelection=!1:this.captureSelection=!0:this.captureSelection=b.captureSelection,this.macroArgs=b.args,this.expand=(E=b.expand)!=null?E:!1}static fromJson(y){return new Ip(y.command,y)}toJson(){const y=super.toJson();return this.expand&&(y.expand=!0),this.captureSelection!==void 0&&(y.captureSelection=this.captureSelection),this.macroArgs&&(y.args=this.macroArgs),y}_serialize(y){var b;return y.expandMacro&&this.expand?this.bodyToLatex(y):this.command+((b=this.macroArgs)!=null?b:"")}render(y){const b=Zn.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},Fu=class Op extends Zn{constructor(){super({type:"macro-argument"})}static fromJson(y){return new Op}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},Wu=class Rp extends Zn{constructor(y,b,E=!1,ee,ie){var oe;super({type:"prompt",mode:(oe=ie==null?void 0:ie.mode)!=null?oe:"math",style:ie==null?void 0:ie.style,command:"\\placeholder"}),this.body=ee,this.correctness=b,this.placeholderId=y,this.locked=E,this.captureSelection=this.locked}static fromJson(y){return new Rp(y.placeholderId,y.correctness,y.locked,y.body,y)}toJson(){const y=super.toJson();return this.placeholderId&&(y.placeholderId=this.placeholderId),this.body||delete y.body,this.body&&(y.body=this.body.filter(b=>b.type!=="first").map(b=>b.toJson())),this.correctness&&(y.correctness=this.correctness),y.locked=this.locked,y}render(y){const b=new qa({parent:y}),E=b.getRegisterAsEm("fboxsep"),ee=E,ie=E,oe=Zn.createBox(y,this.body);if(!oe)return null;oe.height||(oe.height=b.metrics.xHeight),oe.setStyle("vertical-align",-oe.height,"em"),this.correctness==="correct"?oe.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&oe.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const fe=new Nr(oe,{type:"ord"});fe.setStyle("display","inline-block"),fe.setStyle("height",oe.height+oe.depth,"em"),fe.setStyle("vertical-align",-ie,"em");let me="ML__prompt ";this.locked?me+=" ML__lockedPromptBox ":me+=" ML__editablePromptBox ",this.correctness==="correct"?me+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(me+=" ML__incorrectPromptBox "),this.containsCaret&&(me+=" ML__focusedPromptBox ");const be=new Nr(null,{classes:me,attributes:{part:"prompt"}});be.height=fe.height+ie,be.depth=fe.depth+ie,be.width=fe.width+2*ee,be.setStyle("box-sizing","border-box"),be.setStyle("position","absolute"),be.setStyle("height",fe.height+fe.depth+2*ie,"em"),ee===0&&be.setStyle("width","100%"),ee!==0&&(be.setStyle("width",`calc(100% + ${2*ee}em)`),be.setStyle("top",E,"em"),be.setStyle("left",-ee,"em")),(!this.body||this.body.length===1)&&(be.width=3*ee,be.setStyle("width",`calc(100% + ${3*ee}em)`),be.setStyle("left",-1.5*ee,"em"));let ke="";this.correctness==="incorrect"&&(ke+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),ke&&(be.svgOverlay=ke);const Ke=new Nr([be,fe],{classes:"ML__prompt-atom"});return Ke.setStyle("position","relative"),Ke.setStyle("display","inline-block"),Ke.setStyle("line-height",0),Ke.height=fe.height+ie+.2,Ke.depth=fe.depth+ie,Ke.left=ee,Ke.right=ee,Ke.setStyle("height",fe.height+ie,"em"),Ke.setStyle("top",fe.depth-fe.height,"em"),Ke.setStyle("vertical-align",fe.depth+ie,"em"),Ke.setStyle("margin-left",.5,"em"),Ke.setStyle("margin-right",.5,"em"),this.caret&&(Ke.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:Ke}))}_serialize(y){var b;const E=(b=this.bodyToLatex(y))!=null?b:"";if(y.skipPlaceholders)return E;let ee="\\placeholder";return this.placeholderId&&(ee+=`[${this.placeholderId}]`),this.correctness==="correct"?ee+="[correct]":this.correctness==="incorrect"&&(ee+="[incorrect]"),this.locked&&(ee+="[locked]"),Ua(ee,E)}},wu=class _p extends Zn{constructor(y){super({type:"subsup",style:y==null?void 0:y.style}),this.subsupPlacement="auto"}static fromJson(y){const b=new _p(y);for(const E of mc)y[E]&&b.setChildren(y[E],E);return b}render(y){var b;const E=new qa({parent:y,isPhantom:!0}),ee=this.leftSibling,ie=(b=ee.render(E))!=null?b:new Nr(null),oe=new Nr(null);return oe.height=ie.height,oe.depth=ie.depth,this.attachSupsub(y,{base:oe,isCharacterBox:ee.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function Us(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var ac=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var E,ee,ie,oe;b!=null||(b={}),this.tokens=a,this.context=y instanceof qa&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new qa({from:y,mathstyle:b.mathstyle},b.style),this.args=(E=b.args)!=null?E:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(ee=b.style)!=null?ee:{},parseMode:(ie=b.parseMode)!=null?ie:"math",mathstyle:(oe=b.mathstyle)!=null?oe:"displaystyle",tabular:!1}}beginContext(a){var y,b,E;const ee=this.parsingContext,ie={parent:ee,mathlist:[],style:Ee({},ee.style),parseMode:(y=a==null?void 0:a.mode)!=null?y:ee.parseMode,mathstyle:(b=a==null?void 0:a.mathstyle)!=null?b:ee.mathstyle,tabular:(E=a==null?void 0:a.tabular)!=null?E:!1};this.parsingContext=ie}endContext(){this.parsingContext=this.parsingContext.parent}onError(a){this.errors.push(Ee({before:Es(this.tokens.slice(this.index,this.index+10)),after:Es(this.tokens.slice(Math.max(0,this.index-10),this.index))},a))}get mathlist(){return this.parsingContext.mathlist}set mathlist(a){this.parsingContext.mathlist=a}get parseMode(){return this.parsingContext.parseMode}set parseMode(a){this.parsingContext.parseMode=a}get tabularMode(){return this.parsingContext.tabular}get style(){let a=this.parsingContext;for(;a;){if(a.style)return Ee({},a.style);a=a.parent}return{}}set style(a){this.parsingContext.style=a}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}next(){this.index+=1}get(){return this.endCount=0,this.index<this.tokens.length?this.tokens[this.index++]:""}peek(){return this.tokens[this.index]}match(a){return this.tokens[this.index]===a?(this.index++,!0):!1}lastSubsupAtom(){let a;return this.mathlist.length>0&&(a=this.mathlist[this.mathlist.length-1],a.type==="subsup"||a.subsupPlacement!==void 0)||(a=new wu({style:this.style}),this.mathlist.push(a)),a}hasPattern(a){return a.test(this.tokens[this.index])}hasInfixCommand(){var a;const{index:y}=this;if(y<this.tokens.length&&this.tokens[y].startsWith("\\")){const b=wr(this.tokens[y],this.parseMode);return!b||b.definitionType==="symbol"||b.ifMode&&!b.ifMode.includes(this.parseMode)?!1:(a=b.infix)!=null?a:!1}return!1}matchColumnSeparator(){return!this.tabularMode||this.peek()!=="&"?!1:(this.index++,!0)}matchRowSeparator(){if(!this.tabularMode)return!1;const a=this.peek();return a!=="\\\\"&&a!=="\\cr"&&a!=="\\tabularnewline"?!1:(this.index++,!0)}placeholder(){var a;const y=(a=this.args)==null?void 0:a.call(this,"?");return y?cl(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new sa({mode:this.parseMode,style:this.style})]}skipWhitespace(){for(;this.match("<space>"););}skipUntilToken(a){let y=this.tokens[this.index];for(;y&&y!==a;)y=this.tokens[++this.index];y===a&&this.index++}skipFiller(){for(;this.match("\\relax")||this.match("<space>"););}matchKeyword(a){const y=this.index;let b=this.end(),E="";for(;!b;){const ie=this.get();Us(ie)?(E+=ie,b=this.end()||E.length>=a.length):b=!0}const ee=a.toUpperCase()===E.toUpperCase();return ee||(this.index=y),ee}scanString(){let a="";for(;!this.end();){const y=this.peek();if(y==="]")return a;if(y==="<space>")a+=" ";else if(y.startsWith("\\"))this.onError({code:"unexpected-command-in-string"}),a+=y.substring(1);else if(Us(y))a+=y;else return a;this.next()}return a}scanBalancedString(){let a="",y=this.end(),b=1;for(;!y;){const E=this.get();E==="<space>"?a+=" ":E==="<{>"?(a+="{",b+=1):E==="<}>"?(b-=1,b>0?a+="}":this.index-=1):E==="<$>"?a+="$":E==="<$$>"?a+="$$":a+=E,y=b===0||this.end()}return a}scanLiteralGroup(){var a;if(!this.match("<{>"))return"";let y="",b=1;for(;b>0&&!this.end();){const E=this.get();E==="<}>"?(b-=1,b>0&&(y+="}")):E==="<{>"?(b+=1,y+="{"):(/\\[a-zA-Z]+$/.test(y)&&/^[a-zA-Z]/.test(E)&&(y+=" "),y+=(a={"<space>":" ","<$$>":"$$","<$>":"$"}[E])!=null?a:E)}return y}scanNumber(a=!0){var y,b;let E=!1,ee=this.peek();for(;ee==="<space>"||ee==="+"||ee==="-";)this.get(),ee==="-"&&(E=!E),ee=this.peek();a=!!a;let ie=10,oe=/\d/;if(this.match("'"))ie=8,oe=/[0-7]/,a=!0;else if(this.match('"'))ie=16,oe=/[\dA-F]/,a=!0;else if(this.match("x"))ie=16,oe=/[\dA-Fa-f]/,a=!0;else if(this.match("`"))return ee=this.get(),ee?ee.length===2&&ee.startsWith("\\")?{number:(E?-1:1)*((y=ee.codePointAt(1))!=null?y:0),base:"alpha"}:{number:(E?-1:1)*((b=ee.codePointAt(0))!=null?b:0),base:"alpha"}:null;let fe="";for(;this.hasPattern(oe);)fe+=this.get();if(!a&&(this.match(".")||this.match(",")))for(fe+=".";this.hasPattern(oe);)fe+=this.get();const me=a?Number.parseInt(fe,ie):Number.parseFloat(fe);return Number.isNaN(me)?null:{number:E?-me:me,base:ie===16?"hexadecimal":ie===8?"octal":"decimal"}}scanRegister(){var a;const y=this.index,b=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return b;let E=!1;if(b===null)for(;;){const ie=this.peek();if(ie==="-")E=!E;else if(ie!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const ie=this.get();return ie.startsWith("\\")?b?{register:ie,global:!0,factor:(E?-1:1)*b.number}:E?{register:ie,global:!0,factor:-1}:{register:ie,global:!0}:(this.index=y,null)}let ee=this.get();return ee!=null&&ee.startsWith("\\")?(ee=ee.substring(1),this.context.registers[ee]?!E||b!==null?{register:ee,factor:(E?-1:1)*((a=b==null?void 0:b.number)!=null?a:1)}:{register:ee}:(this.index=y,null)):(this.index=y,null)}scanValue(){const a=this.scanRegister();if(a)return a;const y=this.index,b=this.scanGlueOrDimen();if(b&&("unit"in b||"glue"in b&&"unit"in b.glue))return b;this.index=y;const E=this.scanNumber();if(E)return E;if(this.end()||!Us(this.peek()))return null;const ee=this.scanString();return ee.length>0?{string:ee}:null}scanDimen(){const a=this.scanNumber(!1);if(a===null)return null;const y=a.number;this.skipWhitespace(),this.matchKeyword("true"),this.skipWhitespace();let b;return this.matchKeyword("pt")?b="pt":this.matchKeyword("mm")?b="mm":this.matchKeyword("cm")?b="cm":this.matchKeyword("ex")?b="ex":this.matchKeyword("px")?b="px":this.matchKeyword("em")?b="em":this.matchKeyword("bp")?b="bp":this.matchKeyword("dd")?b="dd":this.matchKeyword("pc")?b="pc":this.matchKeyword("in")?b="in":this.matchKeyword("mu")&&(b="mu"),b?{dimension:y,unit:b}:{dimension:y}}scanGlueOrDimen(){const a=this.scanDimen();if(a===null)return null;if(this.skipWhitespace(),this.match("\\relax"))return a;const y={glue:a};if(this.matchKeyword("plus")){const b=this.scanDimen();if(b)y.grow=b;else return y}if(this.skipWhitespace(),this.match("\\relax"))return y;if(this.skipWhitespace(),this.matchKeyword("minus")){const b=this.scanDimen();if(b)y.shrink=b;else return y}return!y.grow&&!y.shrink?a:y}scanColspec(){this.skipWhitespace();const a=[];for(;!this.end()&&!(this.peek()==="<}>"||this.peek()==="]");){const y=this.get();y==="c"||y==="r"||y==="l"?a.push({align:y}):y==="|"?a.push({separator:"solid"}):y===":"?a.push({separator:"dashed"}):y==="@"&&(this.match("<{>")&&(this.beginContext({mode:"math"}),a.push({gap:this.scan(b=>b==="<}>")}),this.endContext()),this.match("<}>")||this.onError({code:"unbalanced-braces"}))}return a}scanModeSet(){let a;if(this.match("\\(")&&(a="textstyle"),!a&&this.match("\\[")&&(a="displaystyle"),!a)return null;this.beginContext({mode:"math",mathstyle:a});const y=this.scan(b=>b===(a==="displaystyle"?"\\]":"\\)"));return this.match(a==="displaystyle"?"\\]":"\\)")||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),y}scanModeShift(){let a="";if(this.match("<$>")&&(a="<$>"),!a&&this.match("<$$>")&&(a="<$$>"),!a)return null;this.beginContext({mode:"math",mathstyle:"textstyle"});const y=this.scan(b=>b===a);return this.match(a)||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),y}scanEnvironment(){if(!this.match("\\begin"))return null;const a=this.scanArgument("string");if(!a)return null;const y=Pt(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const fe of y.params)if(fe.isOptional)b.push(this.scanOptionalArgument(fe.type));else{const me=this.scanArgument(fe.type);me||this.onError({code:"missing-argument",arg:a}),b.push(me)}this.beginContext({tabular:y.tabular});const E=[],ee=[];let ie=[],oe=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),oe=!0),!oe&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),oe=!0),!oe)if(this.matchColumnSeparator())ie.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){ie.push(this.mathlist),this.mathlist=[];let fe=null;this.skipWhitespace(),this.match("[")&&(fe=this.scanDimen(),this.skipWhitespace(),this.match("]")),ee.push(fe!=null?fe:{dimension:0}),E.push(ie),ie=[]}else this.mathlist.push(...this.scan(fe=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(fe)));while(!oe);return ie.push(this.mathlist),ie.length>0&&E.push(ie),this.endContext(),y.createAtom(a,E,ee,b)}scanExpression(){const a=this.mathlist;if(this.mathlist=[],this.parseExpression()){const y=this.mathlist;return this.mathlist=a,y}return this.mathlist=a,null}scan(a){this.beginContext(),a||(a=oe=>oe==="<}>");let y="",b=null,E=[],ee=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=wr(y,"math"),b&&(E=this.scanArguments(b)[1]),ee=this.mathlist,this.mathlist=[]):this.parseExpression();let ie;return y?(console.assert(!!b),E.unshift(this.mathlist),ee&&E.unshift(ee),ie=[b.createAtom({command:y,args:E,style:this.style,mode:this.parseMode})]):ie=this.mathlist,this.endContext(),ie}scanGroup(){const a=this.index;if(!this.match("<{>"))return null;const y=this.scan(E=>E==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const b=new ul(y,this.parseMode,this.style);return b.verbatimLatex=Es(this.tokens.slice(a,this.index)),b}scanSmartFence(){if(this.skipWhitespace(),!this.match("("))return null;this.beginContext();let a=1;for(;!this.end()&&a!==0;)this.match("(")&&(a+=1),this.match(")")&&(a-=1),a!==0&&this.parseExpression();const y=new bo("",this.mathlist,{leftDelim:"(",rightDelim:a===0?")":"?"});return this.endContext(),y}scanDelim(){this.skipWhitespace();const a=this.peek();if(!a)return this.onError({code:"unexpected-end-of-string"}),null;if(!Us(a)&&!a.startsWith("\\"))return null;this.next();const y=wr(a,"math");return y?y.definitionType==="function"&&y.ifMode&&!y.ifMode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:a}),null):y.definitionType==="symbol"&&(y.type==="mopen"||y.type==="mclose")||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(a)?a:(this.onError({code:"unexpected-delimiter",arg:a}),null):(this.onError({code:"unknown-command",arg:a}),null)}scanLeftRight(){var a;if(this.match("\\right"))return this.onError({code:"unbalanced-braces"}),new Kl("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new Kl("\\mright");let y="\\right";if(!this.match("\\left")){if(!this.match("\\mleft"))return null;y="\\mright"}const b=this.scanDelim();if(!b)return this.onError({code:"unexpected-delimiter"}),new Kl(y==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(y);)this.parseExpression();const E=this.mathlist;this.endContext();const ee=(a=this.scanDelim())!=null?a:".";return new bo(y==="\\right"?"left...right":"mleft...mright",E,{leftDelim:b,rightDelim:ee,style:this.style})}parseSupSub(){if(this.parseMode!=="math")return!1;let a=this.peek();if(a!=="^"&&a!=="_"&&a!=="'")return!1;const y=this.lastSubsupAtom();for(;a==="^"||a==="_"||a==="'";)this.match("'")?this.match("'")?y.addChild(new Zn({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new Zn({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(nt(this.scanArgument("expression")),a==="_"?"subscript":"superscript"),a=this.peek();return!0}parseLimits(){if(this.parseMode!=="math")return!1;const a=this.match("\\limits"),y=!a&&this.match("\\nolimits"),b=!y&&!a&&this.match("\\displaylimits");if(!a&&!y&&!b)return!1;const E=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return E===null?!1:(E.explicitSubsupPlacement=!0,a&&(E.subsupPlacement="over-under"),y&&(E.subsupPlacement="adjacent"),b&&(E.subsupPlacement="auto"),!0)}scanArguments(a){if(!(a!=null&&a.params))return[void 0,[]];let y;const b=[];let E=a.infix?2:0;for(;E<a.params.length;){const ee=a.params[E];ee.type==="rest"?b.push(this.scan(ie=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(ie))):ee.isOptional?b.push(this.scanOptionalArgument(ee.type)):ee.type.endsWith("*")?y=ee.type.slice(0,-1):b.push(this.scanArgument(ee.type)),E+=1}return[y,b]}scanSymbolOrLiteral(){const a=this.peek();if(!a)return null;this.next();let y;if(Us(a)){const b=Zo.createAtom(this.parseMode,a,Ee({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=wr(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new Kl(a)];if(b.definitionType==="symbol"){const E=Ee({},this.style);b.variant&&(E.variant=b.variant),y=new Zn({type:b.type,command:a,style:E,value:String.fromCodePoint(b.codepoint),mode:this.parseMode,verbatimLatex:a})}else{if(b.applyMode||b.applyStyle||b.infix)return this.onError({code:"invalid-command",arg:a}),[new Kl(a)];b.createAtom&&(y=b.createAtom({command:a,args:[],style:this.style,mode:this.parseMode}))}}return y?[y]:null}scanArgument(a){var y;this.skipFiller();const b=this.parseMode;if(a==="auto"&&(a=b),!this.match("<{>")){if(a==="string")return this.scanString();if(a==="value")return this.scanValue();if(a==="delim")return(y=this.scanDelim())!=null?y:".";if(a==="expression")return this.scanExpression();if(a==="math"){a!==b&&this.beginContext({mode:"math"});const ee=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ee}if(a==="text"){a!==b&&this.beginContext({mode:"text"});const ee=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ee}return a==="balanced-string"||console.assert(!1),null}if(a==="text"){this.beginContext({mode:"text"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}if(a==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}let E=null;if(a==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}return a==="string"?E=this.scanString():a==="balanced-string"?E=this.scanBalancedString():a==="colspec"?E=this.scanColspec():a==="value"&&(E=this.scanValue()),this.skipUntilToken("<}>"),E}scanOptionalArgument(a){if(a=a==="auto"?this.parseMode:a,this.skipFiller(),!this.match("["))return null;let y=null;for(;!this.end()&&!this.match("]");)if(a==="string")y=this.scanString();else if(a==="value")y=this.scanValue();else if(a==="colspec")y=this.scanColspec();else if(a==="bbox"){const b={},E=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const ee of E){const ie=ee.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(ie)b.padding={dimension:parseInt(ie[1]),unit:ie[2]};else{const oe=ee.match(/^\s*border\s*:\s*(.*)/);oe?b.border=oe[1]:b.backgroundcolor={string:ee}}}y=b}else a==="math"&&(this.beginContext({mode:"math"}),y=this.mathlist.concat(this.scan(b=>b==="]")),this.endContext());return y}scanSymbolOrCommand(a){var y,b,E;if(a==="\\placeholder"){const fe=this.scanOptionalArgument("string"),me=this.scanOptionalArgument("math"),be=Zn.serialize(me,{defaultMode:"math"});let ke=[],Ke;!Ke&&be==="correct"?Ke="correct":!Ke&&be==="incorrect"?Ke="incorrect":be!==""&&(ke=me);const rt=this.scanOptionalArgument("string")==="locked",xt=this.scanArgument("auto");let Ft;return xt&&Array.isArray(xt)&&xt.length>0?Ft=xt:xt&&typeof xt=="object"&&"group"in xt?Ft=xt.group:Ft=ke,fe?[new Wu(fe,Ke,rt,Ft!=null?Ft:ke,{mode:this.parseMode,style:this.style})]:[new sa({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const fe=this.index,me=this.scanLiteralGroup()||this.next();if(!me)return null;if(this.context.registers[me.substring(1)]){const be=this.scanArgument("string");be!==null&&(this.context.registers[me.substring(1)]=be);const ke=di([a,Es(this.tokens.slice(fe,this.index))]);return[new Zn({type:"text",value:"",verbatimLatex:ke})]}}let ee=this.scanMacro(a);if(ee)return[ee];const ie=wr(a,this.parseMode);if(!ie)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(fe=>new Zn({type:"text",value:fe,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new Kl(a)]);const oe=this.index;if(ie.definitionType==="symbol"){const fe=Ee({},this.style);ie.variant&&(fe.variant=ie.variant),ee=new Zn({type:ie.type,command:a,style:fe,value:String.fromCodePoint(ie.codepoint),mode:this.parseMode})}else{if(ie.ifMode&&!ie.ifMode.includes(this.parseMode))return[];const fe=this.parseMode;ie.applyMode&&(this.parseMode=ie.applyMode);let me,be=[];if(ie.parse?be=ie.parse(this):[me,be]=this.scanArguments(ie),this.parseMode=fe,ie.applyMode&&!ie.applyStyle&&!ie.createAtom)return nt(be[0]);if(ie.infix)return this.onError({code:"too-many-infix-commands",arg:a}),null;if(typeof ie.createAtom=="function")ee=ie.createAtom({command:a,args:be,style:this.style,mode:this.parseMode}),me&&(ee.body=nt(this.scanArgument(me)));else if(typeof ie.applyStyle=="function"){const ke=Ee(Ee({},this.style),ie.applyStyle(a,be,this.context)),Ke=this.parseMode;if(ie.applyMode&&(this.parseMode=ie.applyMode),me){const rt=this.style;this.style=ke;const xt=this.scanArgument(me);return this.style=rt,this.parseMode=Ke,nt(xt)}this.style=ke}else ee=new Zn({type:"mord",command:(b=ie.command)!=null?b:a,style:Ee({},this.style),value:a,mode:(E=ie.applyMode)!=null?E:this.parseMode})}if(!ee)return null;if(ee instanceof Zn&&ee.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const fe=di([a,Es(this.tokens.slice(oe,this.index))]);fe&&(ee.verbatimLatex=fe)}if(ee.verbatimLatex===null&&(ee.verbatimLatex=void 0),ee.isFunction&&this.smartFence){const fe=this.scanSmartFence();if(fe)return[ee,fe]}return[ee]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(Us(a)){const y=Zo.createAtom(this.parseMode,a,Ee({},this.style));if(!y)return null;if(y.isFunction&&this.smartFence){const b=this.scanSmartFence();if(b)return[y,b]}return[y]}return a.startsWith("\\")?this.scanSymbolOrCommand(a):a==="<space>"?this.parseMode==="text"?[new Bu(" "," ",this.style)]:null:(a==="<}>"?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:a}),null)}scanMacro(a){var y;const b=this.context.getMacro(a);if(!b)return null;const E=this.index,ee=b.args,ie={"?":(y=this.args)==null?void 0:y.call(this,"?")};for(let oe=1;oe<=ee;oe++){let fe=this.scanLiteralGroup();if(!fe){const me=this.index;this.scanExpression(),fe=Es(this.tokens.slice(me,this.index))}ie[oe]=fe}return new rd(a,{expand:b.expand,captureSelection:b.captureSelection,args:E===this.index?null:Es(this.tokens.slice(E,this.index)),style:this.parsingContext.style,body:cl(b.def,{context:this.context,parseMode:this.parseMode,args:oe=>ie[oe],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var a,y,b,E;let ee=(E=(b=(y=(a=this.scanEnvironment())!=null?a:this.scanModeShift())!=null?y:this.scanModeSet())!=null?b:this.scanGroup())!=null?E:this.scanLeftRight();if(ee===null){if(this.parseSupSub()||this.parseLimits())return!0;ee=this.scanSymbolCommandOrLiteral()}return ee?(Array.isArray(ee)?this.mathlist.push(...ee):this.mathlist.push(ee),!0):!1}};function cl(a,y){var b,E,ee,ie;const oe=(b=y==null?void 0:y.args)!=null?b:void 0,fe=new ac(_a(a,oe),y==null?void 0:y.context,{args:oe,mathstyle:(E=y==null?void 0:y.mathstyle)!=null?E:"displaystyle",parseMode:(ee=y==null?void 0:y.parseMode)!=null?ee:"math",style:(ie=y==null?void 0:y.style)!=null?ie:{}}),me=[];for(;!fe.end();)me.push(...fe.scan(()=>!1));return me}function t0(a,y){var b;const E=new ac(_a(a,null),y==null?void 0:y.context,{mathstyle:"displaystyle",parseMode:(b=y==null?void 0:y.parseMode)!=null?b:"math"});for(;!E.end();)E.scan();return E.errors}var n0=class Kp extends Zn{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const E=rs.go(Cr.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=cl(E),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new Kp(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return ye(Ee({},super.toJson()),{arg:this.arg})}render(y){const b=Zn.createBox(y,this.body,{type:"inner"});return this.caret&&(b.caret=this.caret),this.bind(y,b)}_serialize(y){return console.assert(this.verbatimLatex!==void 0),this.verbatimLatex}};Gt(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new n0(a.command,(y=a.args[0])!=null?y:"")}});var Cr={go:function(a,y){if(!a)return[];y===void 0&&(y="ce");var b="0",E={};E.parenthesisLevel=0,a=a.replace(/\n/g," "),a=a.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),a=a.replace(/[\u2026]/g,"...");for(var ee,ie=10,oe=[];;){ee!==a?(ie=10,ee=a):ie--;var fe=Cr.stateMachines[y],me=fe.transitions[b]||fe.transitions["*"];e:for(var be=0;be<me.length;be++){var ke=Cr.patterns.match_(me[be].pattern,a);if(ke){for(var Ke=me[be].task,rt=0;rt<Ke.action_.length;rt++){var xt;if(fe.actions[Ke.action_[rt].type_])xt=fe.actions[Ke.action_[rt].type_](E,ke.match_,Ke.action_[rt].option);else if(Cr.actions[Ke.action_[rt].type_])xt=Cr.actions[Ke.action_[rt].type_](E,ke.match_,Ke.action_[rt].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Ke.action_[rt].type_+")"];Cr.concatArray(oe,xt)}if(b=Ke.nextState||b,a.length>0){if(Ke.revisit||(a=ke.remainder),!Ke.toContinue)break e}else return oe}}if(ie<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(a,y){if(y)if(Object.prototype.toString.call(y)==="[object Array]")for(var b=0;b<y.length;b++)a.push(y[b]);else a.push(y)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"(-)(9)^(-9)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"state of aggregation $":function(a){var y=Cr.patterns.findObserveGroups(a,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(y&&y.remainder.match(/^($|[\s,;\)\]\}])/))return y;var b=a.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return b?{match_:b[0],remainder:a.substr(b[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"...":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"^{(...)}":function(a){return Cr.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return Cr.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return Cr.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return Cr.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return Cr.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return Cr.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return Cr.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return Cr.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return Cr.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return Cr.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return Cr.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return Cr.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return Cr.patterns.findObserveGroups(a,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(a){return Cr.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return Cr.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return Cr.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return Cr.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(a){return Cr.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return Cr.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return Cr.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return Cr.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return Cr.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return Cr.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return Cr.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return Cr.patterns.findObserveGroups(a,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(a){var y;if(y=a.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/),y)return{match_:y[0],remainder:a.substr(y[0].length)};var b=Cr.patterns.findObserveGroups(a,"","$","$","");return b&&(y=b.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),y)?{match_:y[0],remainder:a.substr(y[0].length)}:null},amount2:function(a){return this.amount(a)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(a){if(a.match(/^\([a-z]+\)$/))return null;var y=a.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return y?{match_:y[0],remainder:a.substr(y[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(a,y,b,E,ee,ie,oe,fe,me,be){var ke=function(xn,tr){if(typeof tr=="string")return xn.indexOf(tr)!==0?null:tr;var Kr=xn.match(tr);return Kr?Kr[0]:null},Ke=function(xn,tr,Kr){for(var cr=0;tr<xn.length;){var Fi=xn.charAt(tr),ra=ke(xn.substr(tr),Kr);if(ra!==null&&cr===0)return{endMatchBegin:tr,endMatchEnd:tr+ra.length};if(Fi==="{")cr++;else if(Fi==="}"){if(cr===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];cr--}tr++}return cr>0,null},rt=ke(a,y);if(rt===null||(a=a.substr(rt.length),rt=ke(a,b),rt===null))return null;var xt=Ke(a,rt.length,E||ee);if(xt===null)return null;var Ft=a.substring(0,E?xt.endMatchEnd:xt.endMatchBegin);if(ie||oe){var Sn=this.findObserveGroups(a.substr(xt.endMatchEnd),ie,oe,fe,me);if(Sn===null)return null;var Fr=[Ft,Sn.match_];return{match_:be?Fr.join(""):Fr,remainder:Sn.remainder}}else return{match_:Ft,remainder:a.substr(xt.endMatchEnd)}},match_:function(a,y){var b=Cr.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return Cr.patterns.patterns[a](y);var E=y.match(b);if(E){var ee;return E[2]?ee=[E[1],E[2]]:E[1]?ee=E[1]:ee=E[0],{match_:ee,remainder:y.substr(E[0].length)}}return null}},actions:{"a=":function(a,y){a.a=(a.a||"")+y},"b=":function(a,y){a.b=(a.b||"")+y},"p=":function(a,y){a.p=(a.p||"")+y},"o=":function(a,y){a.o=(a.o||"")+y},"q=":function(a,y){a.q=(a.q||"")+y},"d=":function(a,y){a.d=(a.d||"")+y},"rm=":function(a,y){a.rm=(a.rm||"")+y},"text=":function(a,y){a.text_=(a.text_||"")+y},insert:function(a,y,b){return{type_:b}},"insert+p1":function(a,y,b){return{type_:b,p1:y}},"insert+p1+p2":function(a,y,b){return{type_:b,p1:y[0],p2:y[1]}},copy:function(a,y){return y},rm:function(a,y){return{type_:"rm",p1:y||""}},text:function(a,y){return Cr.go(y,"text")},"{text}":function(a,y){var b=["{"];return Cr.concatArray(b,Cr.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return Cr.go(y,"tex-math")},"tex-math tight":function(a,y){return Cr.go(y,"tex-math tight")},bond:function(a,y,b){return{type_:"bond",kind_:b||y}},"color0-output":function(a,y){return{type_:"color0",color:y[0]}},ce:function(a,y){return Cr.go(y)},"1/2":function(a,y){var b=[];y.match(/^[+\-]/)&&(b.push(y.substr(0,1)),y=y.substr(1));var E=y.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return E[1]=E[1].replace(/\$/g,""),b.push({type_:"frac",p1:E[1],p2:E[2]}),E[3]&&(E[3]=E[3].replace(/\$/g,""),b.push({type_:"tex-math",p1:E[3]})),b},"9,9":function(a,y){return Cr.go(y,"9,9")}},createTransitions:function(a){var y,b,E,ee,ie={};for(y in a)for(b in a[y])for(E=b.split("|"),a[y][b].stateArray=E,ee=0;ee<E.length;ee++)ie[E[ee]]=[];for(y in a)for(b in a[y])for(E=a[y][b].stateArray||[],ee=0;ee<E.length;ee++){var oe=a[y][b];if(oe.action_){oe.action_=[].concat(oe.action_);for(var fe=0;fe<oe.action_.length;fe++)typeof oe.action_[fe]=="string"&&(oe.action_[fe]={type_:oe.action_[fe]})}else oe.action_=[];for(var me=y.split("|"),be=0;be<me.length;be++)if(E[ee]==="*")for(var ke in ie)ie[ke].push({pattern:me[be],task:oe});else ie[E[ee]].push({pattern:me[be],task:oe})}return ie},stateMachines:{}};Cr.stateMachines={ce:{transitions:Cr.createTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(a,y){var b;if((a.d||"").match(/^[0-9]+$/)){var E=a.d;a.d=void 0,b=this.output(a),a.b=E}else b=this.output(a);return Cr.actions["o="](a,y),b},"d= kv":function(a,y){a.d=y,a.dType="kv"},"charge or bond":function(a,y){if(a.beginsWithBond){var b=[];return Cr.concatArray(b,this.output(a)),Cr.concatArray(b,Cr.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var E=Cr.patterns.match_("orbital",a.o||""),ee=Cr.patterns.match_("one lowercase greek letter $",a.o||""),ie=Cr.patterns.match_("one lowercase latin letter $",a.o||""),oe=Cr.patterns.match_("$one lowercase latin letter$ $",a.o||""),fe=y==="-"&&(E&&E.remainder===""||ee||ie||oe);fe&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!E&&ie&&(a.o="$"+a.o+"$");var me=[];return fe?(Cr.concatArray(me,this.output(a)),me.push({type_:"hyphen"})):(E=Cr.patterns.match_("digits",a.d||""),b&&E&&E.remainder===""?(Cr.concatArray(me,Cr.actions["d="](a,y)),Cr.concatArray(me,this.output(a))):(Cr.concatArray(me,this.output(a)),Cr.concatArray(me,Cr.actions.bond(a,y,"-")))),me},"a to o":function(a){a.o=a.a,a.a=void 0},"sb=true":function(a){a.sb=!0},"sb=false":function(a){a.sb=!1},"beginsWithBond=true":function(a){a.beginsWithBond=!0},"beginsWithBond=false":function(a){a.beginsWithBond=!1},"parenthesisLevel++":function(a){a.parenthesisLevel++},"parenthesisLevel--":function(a){a.parenthesisLevel--},"state of aggregation":function(a,y){return{type_:"state of aggregation",p1:Cr.go(y,"o")}},comma:function(a,y){var b=y.replace(/\s*$/,""),E=b!==y;return E&&a.parenthesisLevel===0?{type_:"comma enumeration L",p1:b}:{type_:"comma enumeration M",p1:b}},output:function(a,y,b){var E;if(!a.r)E=[],!a.a&&!a.b&&!a.p&&!a.o&&!a.q&&!a.d&&!b||(a.sb&&E.push({type_:"entitySkip"}),!a.o&&!a.q&&!a.d&&!a.b&&!a.p&&b!==2?(a.o=a.a,a.a=void 0):!a.o&&!a.q&&!a.d&&(a.b||a.p)?(a.o=a.a,a.d=a.b,a.q=a.p,a.a=a.b=a.p=void 0):a.o&&a.dType==="kv"&&Cr.patterns.match_("d-oxidation$",a.d||"")?a.dType="oxidation":a.o&&a.dType==="kv"&&!a.q&&(a.dType=void 0),E.push({type_:"chemfive",a:Cr.go(a.a,"a"),b:Cr.go(a.b,"bd"),p:Cr.go(a.p,"pq"),o:Cr.go(a.o,"o"),q:Cr.go(a.q,"pq"),d:Cr.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ee;a.rdt==="M"?ee=Cr.go(a.rd,"tex-math"):a.rdt==="T"?ee=[{type_:"text",p1:a.rd||""}]:ee=Cr.go(a.rd);var ie;a.rqt==="M"?ie=Cr.go(a.rq,"tex-math"):a.rqt==="T"?ie=[{type_:"text",p1:a.rq||""}]:ie=Cr.go(a.rq),E={type_:"arrow",r:a.r,rd:ee,rq:ie}}for(var oe in a)oe!=="parenthesisLevel"&&oe!=="beginsWithBond"&&delete a[oe];return E},"oxidation-output":function(a,y){var b=["{"];return Cr.concatArray(b,Cr.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:Cr.go(y[0]),p2:Cr.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:Cr.go(y[0]),p2:Cr.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:Cr.go(y[0]),p2:Cr.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:Cr.go(y[0]),p2:Cr.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Cr.go(y[1])}},"r=":function(a,y){a.r=y},"rdt=":function(a,y){a.rdt=y},"rd=":function(a,y){a.rd=y},"rqt=":function(a,y){a.rqt=y},"rq=":function(a,y){a.rq=y},operator:function(a,y,b){return{type_:"operator",kind_:b||y}}}},a:{transitions:Cr.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:Cr.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:Cr.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(a){if(a.text_){var y={type_:"text",p1:a.text_};for(var b in a)delete a[b];return y}}}},pq:{transitions:Cr.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(a,y){return{type_:"state of aggregation subscript",p1:Cr.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Cr.go(y[1],"pq")}}}},bd:{transitions:Cr.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Cr.go(y[1],"bd")}}}},oxidation:{transitions:Cr.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(a,y){return{type_:"roman numeral",p1:y||""}}}},"tex-math":{transitions:Cr.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(a){if(a.o){var y={type_:"tex-math",p1:a.o};for(var b in a)delete a[b];return y}}}},"tex-math tight":{transitions:Cr.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(a,y){a.o=(a.o||"")+"{"+y+"}"},output:function(a){if(a.o){var y={type_:"tex-math",p1:a.o};for(var b in a)delete a[b];return y}}}},"9,9":{transitions:Cr.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:Cr.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(a,y){var b=[];return y[0]==="+-"||y[0]==="+/-"?b.push("\\pm "):y[0]&&b.push(y[0]),y[1]&&(Cr.concatArray(b,Cr.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?Cr.concatArray(b,Cr.go(y[2],"pu-9,9")):b.push(y[2])),(y[3]||y[4])&&(y[3]==="e"||y[4]==="*"?b.push({type_:"cdot"}):b.push({type_:"times"}))),y[5]&&b.push("10^{"+y[5]+"}"),b},"number^":function(a,y){var b=[];return y[0]==="+-"||y[0]==="+/-"?b.push("\\pm "):y[0]&&b.push(y[0]),Cr.concatArray(b,Cr.go(y[1],"pu-9,9")),b.push("^{"+y[2]+"}"),b},operator:function(a,y,b){return{type_:"operator",kind_:b||y}},space:function(){return{type_:"pu-space-1"}},output:function(a){var y,b=Cr.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var E=Cr.patterns.match_("{(...)}",a.q||"");if(E&&E.remainder===""&&(a.q=E.match_),a.d&&(a.d=a.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),a.d=a.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),a.q){a.q=a.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),a.q=a.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var ee={d:Cr.go(a.d,"pu"),q:Cr.go(a.q,"pu")};a.o==="//"?y={type_:"pu-frac",p1:ee.d,p2:ee.q}:(y=ee.d,ee.d.length>1||ee.q.length>1?y.push({type_:" / "}):y.push({type_:"/"}),Cr.concatArray(y,ee.q))}else y=Cr.go(a.d,"pu-2");for(var ie in a)delete a[ie];return y}}},"pu-2":{transitions:Cr.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(a,y){a.rm+="^{"+y+"}"},space:function(){return{type_:"pu-space-2"}},output:function(a){var y=[];if(a.rm){var b=Cr.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=Cr.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var E in a)delete a[E];return y}}},"pu-9,9":{transitions:Cr.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(a){var y=[];if(a.text_=a.text_||"",a.text_.length>4){var b=a.text_.length%3;b===0&&(b=3);for(var E=a.text_.length-3;E>0;E-=3)y.push(a.text_.substr(E,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(0,b)),y.reverse()}else y.push(a.text_);for(var ee in a)delete a[ee];return y},"output-o":function(a){var y=[];if(a.text_=a.text_||"",a.text_.length>4){for(var b=a.text_.length-3,E=0;E<b;E+=3)y.push(a.text_.substr(E,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(E))}else y.push(a.text_);for(var ee in a)delete a[ee];return y}}}};var rs={go:function(a,y){if(!a)return"";for(var b="",E=!1,ee=0;ee<a.length;ee++){var ie=a[ee];typeof ie=="string"?b+=ie:(b+=rs._go2(ie),ie.type_==="1st-level escape"&&(E=!0))}return!y&&!E&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&rs.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:rs._goInner(a.a),b:rs._goInner(a.b),p:rs._goInner(a.p),o:rs._goInner(a.o),q:rs._goInner(a.q),d:rs._goInner(a.d)};b.a&&(b.a.match(/^[+\-]/)&&(b.a="{"+b.a+"}"),y+=b.a+"\\,"),(b.b||b.p)&&(y+="{\\vphantom{X}}",y+="^{\\hphantom{"+(b.b||"")+"}}_{\\hphantom{"+(b.p||"")+"}}",y+="{\\vphantom{X}}",y+="^{\\smash[t]{\\vphantom{2}}\\llap{"+(b.b||"")+"}}",y+="_{\\vphantom{2}\\llap{\\smash[t]{"+(b.p||"")+"}}}"),b.o&&(b.o.match(/^[+\-]/)&&(b.o="{"+b.o+"}"),y+=b.o),a.dType==="kv"?((b.d||b.q)&&(y+="{\\vphantom{X}}"),b.d&&(y+="^{"+b.d+"}"),b.q&&(y+="_{\\smash[t]{"+b.q+"}}")):a.dType==="oxidation"?(b.d&&(y+="{\\vphantom{X}}",y+="^{"+b.d+"}"),b.q&&(y+="{\\vphantom{X}}",y+="_{\\smash[t]{"+b.q+"}}")):(b.q&&(y+="{\\vphantom{X}}",y+="_{\\smash[t]{"+b.q+"}}"),b.d&&(y+="{\\vphantom{X}}",y+="^{"+b.d+"}"));break;case"rm":y="\\mathrm{"+a.p1+"}";break;case"text":a.p1.match(/[\^_]/)?(a.p1=a.p1.replace(" ","~").replace("-","\\text{-}"),y="\\mathrm{"+a.p1+"}"):y="\\text{"+a.p1+"}";break;case"roman numeral":y="\\mathrm{"+a.p1+"}";break;case"state of aggregation":y="\\mskip2mu "+rs._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+rs._goInner(a.p1);break;case"bond":if(y=rs._getBond(a.kind_),!y)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+a.kind_+")"];break;case"frac":var E="\\frac{"+a.p1+"}{"+a.p2+"}";y="\\mathchoice{\\textstyle"+E+"}{"+E+"}{"+E+"}{"+E+"}";break;case"pu-frac":var ee="\\frac{"+rs._goInner(a.p1)+"}{"+rs._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ee+"}{"+ee+"}{"+ee+"}{"+ee+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+rs._goInner(a.p1)+"}{"+rs._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+rs._goInner(a.p1)+"}{"+rs._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+rs._goInner(a.p1)+"}{"+rs._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+rs._goInner(a.p1)+"}_{"+rs._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+rs._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var ie={rd:rs._goInner(a.rd),rq:rs._goInner(a.rq)},oe=rs._getArrow(a.r);ie.rd||ie.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(oe="\\long"+oe,ie.rd&&(oe="\\overset{"+ie.rd+"}{"+oe+"}"),ie.rq&&(a.r==="<-->"?oe="\\underset{\\lower2mu{"+ie.rq+"}}{"+oe+"}":oe="\\underset{\\lower6mu{"+ie.rq+"}}{"+oe+"}"),oe=" {}\\mathrel{"+oe+"}{} "):(ie.rq&&(oe+="[{"+ie.rq+"}]"),oe+="{"+ie.rd+"}",oe=" {}\\mathrel{\\x"+oe+"}{} "):oe=" {}\\mathrel{\\long"+oe+"}{} ",y=oe;break;case"operator":y=rs._getOperator(a.kind_);break;case"1st-level escape":y=a.p1+" ";break;case"space":y=" ";break;case"entitySkip":y="~";break;case"pu-space-1":y="~";break;case"pu-space-2":y="\\mkern3mu ";break;case"1000 separator":y="\\mkern2mu ";break;case"commaDecimal":y="{,}";break;case"comma enumeration L":y="{"+a.p1+"}\\mkern6mu ";break;case"comma enumeration M":y="{"+a.p1+"}\\mkern3mu ";break;case"comma enumeration S":y="{"+a.p1+"}\\mkern1mu ";break;case"hyphen":y="\\text{-}";break;case"addition compound":y="\\,{\\cdot}\\,";break;case"electron dot":y="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":y="{\\times}";break;case"prime":y="\\prime ";break;case"cdot":y="\\cdot ";break;case"tight cdot":y="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":y="\\times ";break;case"circa":y="{\\sim}";break;case"^":y="uparrow";break;case"v":y="downarrow";break;case"ellipsis":y="\\ldots ";break;case"/":y="/";break;case" / ":y="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return y},_getArrow:function(a){switch(a){case"->":return"rightarrow";case"\u2192":return"rightarrow";case"\u27F6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"\u21CC":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(a){switch(a){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(a){switch(a){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function A1(a){}function k1(a){}var r0=class Hp extends Zn{constructor(y){super(ye(Ee({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new Hp(y)}toJson(){return ye(Ee({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new Nr(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=wr(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):Ua(this.command,this.value)}},i0=class zp extends Zn{constructor(y){super(ye(Ee({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new zp(y)}toJson(){return ye(Ee({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=pn(this.value,this.size,y,{classes:{open:"mopen",close:"mclose"}[this.delimType],type:this.delimType,isSelected:this.isSelected});return b?(b=this.bind(y,b),this.caret&&(b.caret=this.caret),b):null}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=wr(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):Ua(this.command,this.value)}},Rd=class Wp extends Zn{constructor(y,b,E,ee){var ie,oe;super({type:"enclose",command:y,style:ee.style}),this.body=b,this.backgroundcolor=ee.backgroundcolor,E.updiagonalarrow&&(E.updiagonalstrike=!1),E.box&&(E.left=!1,E.right=!1,E.bottom=!1,E.top=!1),this.notation=E,this.shadow=(ie=ee.shadow)!=null?ie:"none",this.strokeWidth=(oe=ee.strokeWidth)!=null?oe:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=ee.strokeStyle,this.svgStrokeStyle=ee.svgStrokeStyle,this.strokeColor=ee.strokeColor,this.borderStyle=ee.borderStyle,this.padding=ee.padding,this.captureSelection=!1}static fromJson(y){return new Wp(y.command,y.body,y.notation,y)}toJson(){return ye(Ee({},super.toJson()),{notation:this.notation,shadow:this.shadow,strokeWidth:this.strokeWidth,strokeStyle:this.strokeStyle,svgStrokeStyle:this.svgStrokeStyle,strokeColor:this.strokeColor,borderStyle:this.borderStyle,padding:this.padding})}_serialize(y){var b;if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const E=wr(this.command,this.mode);if(E!=null&&E.serialize)return E.serialize(this,y);let ee=(b=this.command)!=null?b:"";if(this.command==="\\enclose"){ee+="{"+Object.keys(this.notation).join(" ")+"}";let ie="",oe="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(ie+=oe+'mathbackground="'+this.backgroundcolor+'"',oe=","),this.shadow&&this.shadow!=="auto"&&(ie+=oe+'shadow="'+this.shadow+'"',oe=","),this.strokeWidth||this.strokeStyle!=="solid"?(ie+=oe+this.borderStyle,oe=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(ie+=oe+'mathcolor="'+this.strokeColor+'"',oe=","),ie&&(ee+=`[${ie}]`)}return Ua(ee,this.bodyToLatex(y))}render(y){const b=new qa({parent:y},this.style),E=Zn.createBox(b,this.body);if(!E)return null;const ee=im(this.borderStyle),ie=b.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});E.setStyle("position","relative"),E.setStyle("display","inline-block"),E.setStyle("top",ie,"em"),E.setStyle("height",E.height+E.depth,"em"),E.setStyle("width",E.width,"em");const oe=new Nr(null,{classes:"ML__notation"});let fe=E.height+E.depth+2*ie;const me=E.width+2*ie;let be="";if(this.notation.horizontalstrike&&(be+=this.line(3,50,97,50)),this.notation.verticalstrike&&(be+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(be+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(be+=this.line(3,3,97,97)),this.notation.updiagonalarrow){be+=this.line(ie.toString(),(ie+E.depth+E.height).toString(),(ie+E.width).toString(),ie.toString());const Ft=.03*Math.sqrt(me*me+fe*fe)*1,Sn=E.width*Ft,Fr=(E.depth+E.height)*Ft,xn=ie+E.width;let tr=ie;tr+Fr-.4*Sn<0&&(tr=.4*Sn-Fr),be+='<polygon points="',be+=`${xn},${tr} ${xn-Sn-.4*Fr},${tr+Fr-.4*Sn} `,be+=`${xn-.7*Sn},${tr+.7*Fr} ${xn-Sn+.4*Fr},${tr+Fr+.4*Sn} `,be+=`${xn},${tr}`,be+=`" stroke='none' fill="${this.strokeColor}"`,be+="/>"}let ke=0;if(this.notation.phasorangle){const rt=a0(b),xt=(E.height+E.depth+2*rt+ie).toString(),Ft=(E.height+E.depth)/2;be+=this.line(ie.toString(),xt,(ie+Ft+E.width).toString(),xt),be+=this.line(ie.toString(),xt,(ie+Ft).toString(),(ie-rt).toString()),fe+=rt,ke=Ft,E.left+=fe/2-ie}if(this.notation.longdiv){const rt=a0(b);fe+=rt,be+=this.line(ie.toString(),ie.toString(),(ie+E.width).toString(),ie.toString());const xt=.3;ke=xt+rt,E.left+=xt+rt,E.setTop(ie+rt),be+='<path d="',be+=`M ${ie} ${ie} a${xt} ${(E.depth+E.height+2*rt)/2}, 0, 1, 1, 0 ${E.depth+E.height+2*rt} "`,be+=` stroke-width="${am(b)}" stroke="${this.strokeColor}" fill="none"`,be+="/>"}if(oe.width=E.width+2*ie+ke,oe.height=E.height+ie,oe.depth=E.depth+ie,oe.setStyle("box-sizing","border-box"),oe.setStyle("left",`calc(-${ee} / 2 )`),oe.setStyle("height",`${Math.floor(100*fe)/100}em`),oe.setStyle("top",`calc(${ee} / 2 )`),this.backgroundcolor&&oe.setStyle("background-color",this.backgroundcolor),this.notation.box&&oe.setStyle("border","1px solid red"),this.notation.actuarial&&(oe.setStyle("border-top",this.borderStyle),oe.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(oe.setStyle("border-bottom",this.borderStyle),oe.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(oe.setStyle("border-radius","8px"),oe.setStyle("border",this.borderStyle)),this.notation.circle&&(oe.setStyle("border-radius","50%"),oe.setStyle("border",this.borderStyle)),this.notation.top&&oe.setStyle("border-top",this.borderStyle),this.notation.left&&oe.setStyle("border-left",this.borderStyle),this.notation.right&&oe.setStyle("border-right",this.borderStyle),this.notation.bottom&&oe.setStyle("border-bottom",this.borderStyle),be){let rt="";this.shadow==="auto"&&(rt+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(rt+=`filter: drop-shadow(${this.shadow})`),rt+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,rt+=' stroke-linecap="round"',this.svgStrokeStyle&&(rt+=` stroke-dasharray="${this.svgStrokeStyle}"`),oe.svgStyle=rt,oe.svgOverlay=be}const Ke=new Nr([oe,E]);return Ke.setStyle("position","relative"),Ke.setStyle("vertical-align",ie,"em"),Ke.setStyle("height",`${Math.floor(100*(E.height+E.depth+2*ie))/100}em`),Ke.setStyle("display","inline-block"),Ke.height=oe.height,Ke.depth=oe.depth,Ke.width=oe.width-2*ie,Ke.left=ie,Ke.right=ie,this.caret&&(Ke.caret=this.caret),Ke.wrap(b)}line(y,b,E,ee){return`<line x1="${wf(y)}" y1="${wf(b)}" x2="${wf(E)}" y2="${wf(ee)}" vector-effect="non-scaling-stroke"></line>`}};function wf(a){return typeof a=="number"?`${Math.floor(100*a)/100}%`:a}function im(a){if(!a)return"1px";const y=a.match(/([0-9][a-zA-Z\%]+)/);return y===null?"1px":y[1]}function am(a){return(Math.floor(100*a.metrics.sqrtRuleThickness/a.scalingFactor)/100/10).toString()+"em"}function a0(a){const y=a.isDisplayStyle?Za:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var id=class Zp extends Zn{constructor(y,b,E){var ee,ie;super(ye(Ee({},E),{type:"genfrac",displayContainsHighlight:!0})),this.above=y,this.below=b,this.hasBarLine=(ee=E==null?void 0:E.hasBarLine)!=null?ee:!0,this.continuousFraction=(ie=E==null?void 0:E.continuousFraction)!=null?ie:!1,this.numerPrefix=E==null?void 0:E.numerPrefix,this.denomPrefix=E==null?void 0:E.denomPrefix,this.mathstyleName=E==null?void 0:E.mathstyleName,this.leftDelim=E==null?void 0:E.leftDelim,this.rightDelim=E==null?void 0:E.rightDelim,this.fractionNavigationOrder=E==null?void 0:E.fractionNavigationOrder}static fromJson(y){return new Zp(y.above,y.below,y)}toJson(){const y={};return this.continuousFraction&&(y.continuousFraction=!0),this.numerPrefix&&(y.numerPrefix=this.numerPrefix),this.denomPrefix&&(y.denomPrefix=this.denomPrefix),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),this.hasBarLine||(y.hasBarLine=!1),this.mathstyleName&&(y.mathstyleName=this.mathstyleName),this.fractionNavigationOrder&&(y.fractionNavigationOrder=this.fractionNavigationOrder),Ee(Ee({},super.toJson()),y)}get children(){if(this._children)return this._children;const y=[];if(this.fractionNavigationOrder==="denominator-numerator"){for(const b of this.below)y.push(...b.children),y.push(b);for(const b of this.above)y.push(...b.children),y.push(b)}else{for(const b of this.above)y.push(...b.children),y.push(b);for(const b of this.below)y.push(...b.children),y.push(b)}return this._children=y,y}render(y){var b,E;const ee=new qa({parent:y,mathstyle:this.mathstyleName},this.style),ie=ee.metrics,oe=new qa({parent:ee,mathstyle:this.continuousFraction?"":"numerator"},this.style),fe=this.numerPrefix?new Nr([new Nr(this.numerPrefix),Zn.createBox(oe,this.above)],{isTight:oe.isTight,type:"ignore"}):(b=Zn.createBox(oe,this.above,{type:"ignore"}))!=null?b:new Nr(null,{type:"ignore"}),me=new qa({parent:ee,mathstyle:this.continuousFraction?"":"denominator"},this.style),be=this.denomPrefix?new Nr([new Nr(this.denomPrefix),Zn.createBox(me,this.below,{type:"ignore"})]):(E=Zn.createBox(me,this.below,{type:"ignore"}))!=null?E:new Nr(null,{type:"ignore"}),ke=this.hasBarLine?ie.defaultRuleThickness:0;let Ke,rt=0,xt;ee.isDisplayStyle?(Ke=oe.metrics.num1,rt=ke>0?3*ke:7*ke,xt=me.metrics.denom1):(ke>0?(Ke=oe.metrics.num2,rt=ke):(Ke=oe.metrics.num3,rt=3*ie.defaultRuleThickness),xt=me.metrics.denom2);const Ft=[];this.isSelected&&Ft.push("ML__selected");const Sn=fe.depth,Fr=be.height;let xn;if(ke<=0){const ji=Ke-Sn-(Fr-xt);ji<rt&&(Ke+=(rt-ji)/2,xt+=(rt-ji)/2),xn=new Lo({individualShift:[{box:fe,shift:-Ke,classes:[...Ft,"ML__center"]},{box:be,shift:xt,classes:[...Ft,"ML__center"]}]}).wrap(ee)}else{const ji=new Nr(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});ji.softWidth=Math.max(fe.width,be.width),ji.height=ke/2,ji.depth=ke/2;const ro=ka+ke/2;Ke<rt+Sn+ro&&(Ke=rt+Sn+ro);const Bo=ka-ke/2;xt<rt+Fr-Bo&&(xt=rt+Fr-Bo),xn=new Lo({individualShift:[{box:be,shift:xt,classes:[...Ft,"ML__center"]},{box:ji,shift:-Bo,classes:Ft},{box:fe,shift:-Ke,classes:[...Ft,"ML__center"]}]}).wrap(ee)}const tr=ee.isDisplayStyle?ie.delim1:ie.delim2,Kr=this.leftDelim?this.bind(y,xi("open",this.leftDelim,tr,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):ki(ee,"open");let cr=null;this.continuousFraction?cr=new Nr(null,{type:"close"}):this.rightDelim?cr=this.bind(y,xi("close",this.rightDelim,tr,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):cr=ki(ee,"close");const Fi=new Nr([Kr,xn,cr],{isTight:ee.isTight,type:"inner",classes:"mfrac"}),ra=this.bind(y,Fi);return this.caret&&(ra.caret=this.caret),this.attachSupsub(y,{base:ra})}},xl=class Vp extends Zn{constructor(y,b){var E;super({type:"latex",value:y,mode:"latex"}),this.isSuggestion=(E=b==null?void 0:b.isSuggestion)!=null?E:!1,this.isError=!1}static fromJson(y){const b=new Vp(y.value);return y.isSuggestion&&(b.isSuggestion=!0),y.isError&&(b.isError=!0),b}toJson(){const y={};return this.isSuggestion&&(y.isSuggestion=!0),this.isError&&(y.isError=!0),Ee({type:"latex",value:this.value},y)}get computedStyle(){return{}}render(y){const b=new Nr(this.value,{classes:this.isSuggestion?"ML__suggestion":this.isError?"ML__error":"",type:"latex",maxFontSize:1});return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},_d=class Up extends Zn{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new xl(b)),this.skipBoundary=!1}static fromJson(y){return new Up("")}toJson(){return super.toJson()}render(y){const b=Zn.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){var b,E;return(E=(b=this.body)==null?void 0:b.map(ee=>ee.value).join(""))!=null?E:""}},fh=class jp extends Zn{constructor(y,b){super(ye(Ee({},b),{type:"extensible-symbol",isFunction:b==null?void 0:b.isFunction})),this.value=y,this.variant=b==null?void 0:b.variant,this.subsupPlacement=b==null?void 0:b.limits}static fromJson(y){return new jp(y.symbol,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.subsupPlacement&&(y.limits=this.subsupPlacement),this.isExtensibleSymbol&&(y.isExtensibleSymbol=!0),this.value&&(y.symbol=this.value),y}render(y){var b;const E=y.isDisplayStyle&&this.value!=="\\smallint",ee=new Nr(this.value,{fontFamily:E?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(E?"large-op":"small-op"),type:"op",maxFontSize:y.scalingFactor,isSelected:this.isSelected});if(!ee)return null;ee.right=ee.italic;const ie=(ee.height-ee.depth)/2-ka*y.scalingFactor,oe=ee.italic;ee.setTop(ie);let fe=ee;if(this.superscript||this.subscript){const me=(b=this.subsupPlacement)!=null?b:"auto";fe=me==="over-under"||me==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ee,baseShift:ie,slant:oe}):this.attachSupsub(y,{base:ee})}return new Nr(this.bind(y,fe),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(y)}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=wr(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=[];return E.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&E.push("\\limits"),this.subsupPlacement==="adjacent"&&E.push("\\nolimits"),this.subsupPlacement==="auto"&&E.push("\\displaylimits")),E.push(this.supsubToLatex(y)),di(E)}},Tc=class Gp extends Zn{constructor(y){const b=y.body;super(ye(Ee({},y),{type:"overlap",body:typeof b=="string"?[new Zn({value:b})]:b,style:y==null?void 0:y.style})),this.skipBoundary=!0,this.align=y==null?void 0:y.align,this.boxType=y==null?void 0:y.boxType}static fromJson(y){return new Gp(y)}toJson(){const y={};return this.align&&(y.align=this.align),this.boxType&&(y.boxType=this.boxType),Ee(Ee({},super.toJson()),y)}render(y){const b=Zn.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new Nr([b,new Nr(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},Eu=class Qp extends Zn{constructor(y){var b,E,ee,ie;super({type:"overunder",command:y.command,style:y.style,mode:y.mode,body:y.body,skipBoundary:(b=y.skipBoundary)!=null?b:!0}),this.subsupPlacement=y.supsubPlacement,this.svgAbove=y.svgAbove,this.svgBelow=y.svgBelow,this.svgBody=y.svgBody,this.above=y.above,this.below=y.below,this.boxType=(E=y.boxType)!=null?E:"ord",this.paddedBody=(ee=y.paddedBody)!=null?ee:!1,this.paddedLabels=(ie=y.paddedLabels)!=null?ie:!1}static fromJson(y){return new Qp(y)}toJson(){const y=super.toJson();return this.skipBoundary||(y.skipBoundary=!1),this.subsupPlacement&&(y.subsupPlacement=this.subsupPlacement),this.svgAbove&&(y.svgAbove=this.svgAbove),this.svgBelow&&(y.svgBelow=this.svgBelow),this.svgBody&&(y.svgBody=this.svgBody),this.boxType!=="ord"&&(y.boxType=this.boxType),this.paddedBody&&(y.paddedBody=!0),this.paddedLabels&&(y.paddedLabels=!0),y}render(y){let b=this.svgBody?ou(this.svgBody):Zn.createBox(y,this.body,{type:"ignore"});const E=new qa({parent:y,mathstyle:"scriptstyle"},this.style);let ee=null;this.svgAbove?ee=ou(this.svgAbove):this.above&&(ee=Zn.createBox(E,this.above,{type:"ignore"}));let ie=null;this.svgBelow?ie=ou(this.svgBelow):this.below&&(ie=Zn.createBox(E,this.below,{type:"ignore"})),this.paddedBody&&(b=new Nr([ki(y,"open"),b,ki(y,"close")],{type:"ignore"}));let oe=om(y,{base:b,above:ee,below:ie,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return oe?(this.subsupPlacement==="over-under"?oe=this.attachLimits(y,{base:oe,type:oe.type}):oe=this.attachSupsub(y,{base:oe}),this.caret&&(oe.caret=this.caret),this.bind(y,oe)):null}};function om(a,y){if(!y.base)return null;if(!y.above&&!y.below){const fe=new Nr(y.base,{type:y.type});return fe.setStyle("position","relative"),fe}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let E=null;const ee=y.base,ie=0,oe=["ML__center"];if(y.paddedAboveBelow&&oe.push("ML__label_padding"),y.below&&y.above){const fe=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ee.depth+ie;E=new Lo({bottom:fe,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:oe},{box:ee,classes:["ML__center"]},b,{box:y.above,classes:oe},a.metrics.bigOpSpacing5]})}else y.below?E=new Lo({top:ee.height-ie,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:oe},{box:ee,classes:["ML__center"]}]}):y.above&&(E=new Lo({bottom:ee.depth+ie,children:[{box:ee,classes:["ML__center"]},b,{box:y.above,classes:oe},a.metrics.bigOpSpacing5]}));return new Nr(E,{type:y.type})}var Kd=class Yp extends Zn{constructor(y){var b,E,ee,ie;super(ye(Ee({},y),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(b=y.isInvisible)!=null?b:!1,this.smashDepth=(E=y.smashDepth)!=null?E:!1,this.smashHeight=(ee=y.smashHeight)!=null?ee:!1,this.smashWidth=(ie=y.smashWidth)!=null?ie:!1}static fromJson(y){return new Yp(y)}toJson(){const y={};return this.isInvisible&&(y.isInvisible=!0),this.smashDepth&&(y.smashDepth=!0),this.smashHeight&&(y.smashHeight=!0),this.smashWidth&&(y.smashWidth=!0),Ee(Ee({},super.toJson()),y)}render(y){const b=new qa({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),Zn.createBox(b,this.body,{classes:"inner"});const E=Zn.createBox(this.isInvisible?b:y,this.body);if(!E)return null;if(this.smashWidth){const ee=new Nr(null,{classes:"fix"});return new Nr([E,ee],{classes:"rlap"}).wrap(y)}if(!this.smashHeight&&!this.smashDepth)return E;if(this.smashHeight&&(E.height=0),this.smashDepth&&(E.depth=0),E.children)for(const ee of E.children)this.smashHeight&&(ee.height=0),this.smashDepth&&(ee.depth=0);return new Lo({firstBaseline:[{box:E}]},{type:E.type}).wrap(y)}},Hd=class Jp extends Zn{constructor(y){var b;super(Ee({type:"spacing"},y)),this.width=y==null?void 0:y.width,this._braced=(b=y==null?void 0:y.braced)!=null?b:!1}static fromJson(y){return new Jp(y)}toJson(){const y=super.toJson();return this.width!==void 0&&(y.width=this.width),this._braced&&(y.braced=!0),y}render(y){var b;if(this.command==="space")return new Nr(this.mode==="math"?null:" ");let E;if(this.width!==void 0)E=new Nr(null,{classes:"mspace"}),E.left=y.toEm(this.width);else{const ee=(b={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?b:"mediumspace";E=new Nr(null,{classes:ee})}return E=this.bind(y,E),this.caret&&(E.caret=this.caret),E}_serialize(y){var b;if(!y.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const E=wr(this.command,this.mode);if(E!=null&&E.serialize)return E.serialize(this,y);const ee=(b=this.command)!=null?b:"";return this.width===void 0?ee:this._braced&&!("register"in this.width)?`${ee}{${Zs(this.width)}}`:`${ee}${Zs(this.width)}`}},o0=class Xp extends Zn{constructor(y){var b;super(ye(Ee({},y),{type:"surd",mode:(b=y.mode)!=null?b:"math",style:y.style,displayContainsHighlight:!0,body:y.body})),this.above=y.index}static fromJson(y){return new Xp(ye(Ee({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=wr(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=this.command,ee=this.bodyToLatex(y);return this.above&&!this.hasEmptyBranch("above")?Ua(`${E}[${this.aboveToLatex(y)}]`,ee):/^[0-9]$/.test(ee)?`${E}${ee}`:Ua(E,ee)}get children(){if(this._children)return this._children;const y=[];if(this.above)for(const b of this.above)y.push(...b.children),y.push(b);if(this.body)for(const b of this.body)y.push(...b.children),y.push(b);return this._children=y,y}render(y){var b;const E=new qa({parent:y,mathstyle:"cramp"},this.style),ee=(b=Zn.createBox(E,this.body,{type:"inner"}))!=null?b:new Nr(null),ie=E.scalingFactor,oe=E.metrics.defaultRuleThickness/ie,fe=y.isDisplayStyle?Za:oe,me=new Nr(null,{classes:"ML__sqrt-line",style:this.style});me.height=oe,me.softWidth=ee.width;let be=ie*(oe+fe/4);const Ke=Math.max(ie*2*fe,ee.height+ee.depth)+be+oe,rt=new qa({parent:y},this.style),xt=this.bind(rt,new Nr(xi("inner","\\surd",Ke,!1,rt,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!xt)return null;const Ft=xt.height+xt.depth-oe;Ft>ee.height+ee.depth+be&&(be=(be+Ft-(ee.height+ee.depth))/2),xt.setTop(xt.height-ee.height-be);const Sn=this.bind(y,new Lo({firstBaseline:[{box:new Nr(ee)},be-2*oe,{box:me},oe]})),Fr=Zn.createBox(new qa({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!Fr){const Kr=new Nr([xt,Sn],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Kr.setStyle("display","inline-block"),Kr.setStyle("height",Kr.height+Kr.depth,"em"),this.caret&&(Kr.caret=this.caret),this.bind(y,Kr)}const xn=new Lo({shift:-.6*(Math.max(xt.height,Sn.height)-Math.max(xt.depth,Sn.depth)),children:[{box:Fr}]}),tr=new Nr([new Nr(xn,{classes:"ML__sqrt-index",type:"ignore"}),xt,Sn],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return tr.height=xt.height,tr.depth=xt.depth,this.caret&&(tr.caret=this.caret),this.bind(y,tr)}},sm=class extends Nr{constructor(a){super(null,{type:"skip"}),this._width=a}toMarkup(){return`<span style="display:inline-block;width:${Math.ceil(this.width*100)/100}em"></span>`}};function Ef(a,y){if(!a.parent)return;const b=a.parent.children,E=b.indexOf(a);let ee=E-1;for(;ee>=0&&b[ee].type==="ignore";)ee-=1;if(ee<0&&a.parent.parent&&a.parent.type==="lift"){Ef(a.parent,y);return}E>0&&b[E-1].type==="skip"?b[E-1].width+=y:b.splice(E,0,new sm(y))}var lm={ord:{op:3,bin:4,rel:5,inner:3},op:{ord:3,op:3,rel:5,inner:3},bin:{ord:4,op:4,open:4,inner:4},rel:{ord:5,op:5,open:5,inner:5},close:{op:3,bin:4,rel:5,inner:3},punct:{ord:3,op:3,rel:3,open:3,punct:3,inner:3},inner:{ord:3,op:3,bin:4,rel:5,open:3,punct:3,inner:3}},um={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function cm(a){Wd(a,(y,b)=>{b.type==="bin"&&(!y||/^(middle|bin|op|rel|open|punct)$/.test(y.type))&&(b.type="ord"),(y==null?void 0:y.type)==="bin"&&/^(rel|close|punct)$/.test(b.type)&&(y.type="ord"),b.type!=="ignore"&&(y=b)})}function zd(a,y){if(!a.children)return a;const b=a.children;cm(b);const E=y.getRegisterAsEm("thinmuskip"),ee=y.getRegisterAsEm("medmuskip"),ie=y.getRegisterAsEm("thickmuskip");return Wd(b,(oe,fe)=>{var me,be,ke;if(!oe)return;const Ke=oe.type,rt=fe.isTight?(me=um[Ke])!=null?me:null:(be=lm[Ke])!=null?be:null,xt=(ke=rt==null?void 0:rt[fe.type])!=null?ke:null;xt===3&&Ef(fe,E),xt===4&&Ef(fe,ee),xt===5&&Ef(fe,ie)}),a}function Wd(a,y,b=void 0){if(!a)return b;a=[...a];for(const E of a)E.type==="lift"?b=Wd(E.children,y,b):E.type==="ignore"?Wd(E.children,y):(y(b,E),Wd(E.children,y),b=E);return b}var hh=class qp extends Zn{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new Zn({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new qp(ye(Ee({},y),{tooltip:bc(y.tooltip)}))}toJson(){var y;const b=(y=this.tooltip.body)==null?void 0:y.filter(E=>E.type!=="first").map(E=>E.toJson());return ye(Ee({},super.toJson()),{tooltip:b})}render(y){const b=Zn.createBox(new qa,this.body);if(!b)return null;const E=new qa({parent:y,mathstyle:"displaystyle"},{fontSize:Di}),ee=Qc(zd(new Nr(this.tooltip.render(E),{classes:"ML__tooltip-content"}),E)),ie=new Nr([ee,b],{classes:"ML__tooltip-container"});return this.caret&&(ie.caret=this.caret),this.bind(y,ie)}},Pc=class $p extends Zn{constructor(y,b){super(ye(Ee({},b),{type:"operator",isFunction:b==null?void 0:b.isFunction})),this.value=y,this.variant=b==null?void 0:b.variant,this.variantStyle=b==null?void 0:b.variantStyle,this.subsupPlacement=b==null?void 0:b.limits}static fromJson(y){return new $p(y.symbol,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.variantStyle&&(y.variantStyle=this.variantStyle),this.subsupPlacement&&(y.limits=this.subsupPlacement),this.value&&(y.symbol=this.value),y}render(y){var b;const E=new Nr(this.value,{type:"op",mode:"math",maxFontSize:y.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:y.letterShapeStyle});let ee=E;if(this.superscript||this.subscript){const ie=(b=this.subsupPlacement)!=null?b:"auto";ee=ie==="over-under"||ie==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:E}):this.attachSupsub(y,{base:E})}return new Nr(this.bind(y,ee),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(y)}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=wr(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&E.push("\\limits"),this.subsupPlacement==="adjacent"&&E.push("\\nolimits"),this.subsupPlacement==="auto"&&E.push("\\displaylimits")),E.push(this.supsubToLatex(y)),di(E)}};function bc(a){if(he(a))return a.map(E=>bc(E));if(typeof a=="string")return Zn.fromJson(a);a=Ee({},a);for(const E of mc)a[E]&&(a[E]=bc(a[E]));a.args&&(a.args=dm(a.args)),a.array&&(a.array=bc(a.array));const y=a.type;let b;y==="accent"&&(b=z.fromJson(a)),y==="array"&&(b=Pa.fromJson(a)),y==="box"&&(b=Is.fromJson(a)),y==="chem"&&(b=n0.fromJson(a)),y==="composition"&&(b=ic.fromJson(a)),y==="delim"&&(b=r0.fromJson(a)),y==="enclose"&&(b=Rd.fromJson(a)),y==="error"&&(b=Kl.fromJson(a)),y==="extensible-symbol"&&(b=fh.fromJson(a)),y==="genfrac"&&(b=id.fromJson(a)),y==="group"&&(b=ul.fromJson(a)),y==="latex"&&(b=xl.fromJson(a)),y==="latexgroup"&&(b=_d.fromJson(a)),y==="leftright"&&(b=bo.fromJson(a)),y==="macro"&&(b=rd.fromJson(a)),y==="macro-argument"&&(b=Fu.fromJson(a)),y==="operator"&&(b=Pc.fromJson(a)),y==="overlap"&&(b=Tc.fromJson(a)),y==="overunder"&&(b=Eu.fromJson(a)),y==="placeholder"&&(b=sa.fromJson(a)),y==="prompt"&&(b=Wu.fromJson(a)),y==="phantom"&&(b=Kd.fromJson(a)),y==="sizeddelim"&&(b=i0.fromJson(a)),y==="spacing"&&(b=Hd.fromJson(a)),y==="subsup"&&(b=wu.fromJson(a)),y==="surd"&&(b=o0.fromJson(a)),y==="text"&&(b=Bu.fromJson(a)),y==="tooltip"&&(b=hh.fromJson(a)),b||(console.assert(!y||["first","mbin","mrel","mclose","minner","mop","mopen","mord","mpunct","root","space"].includes(y),`MathLive 0.98.5: an unexpected atom type "${y}" was encountered. Add new atom constructors to \`fromJson()\` in "atom.ts"`),b=Zn.fromJson(a));for(const E of mc)a[E]&&b.setChildren(a[E],E);return a.verbatimLatex!==void 0&&(b.verbatimLatex=a.verbatimLatex),a.subsupPlacement&&(b.subsupPlacement=a.subsupPlacement),a.explicitSubsupPlacement&&(b.explicitSubsupPlacement=!0),a.isFunction&&(b.isFunction=!0),a.isExtensibleSymbol&&(b.isExtensibleSymbol=!0),a.skipBoundary&&(b.skipBoundary=!0),a.captureSelection&&(b.captureSelection=!0),b}function dm(a){if(a&&Array.isArray(a))return a.map(y=>y==="<null>"?null:typeof y=="object"&&"group"in y?{group:y.group.map(b=>bc(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>bc(b)):y)}var s0={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML__bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},ph={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[\dA-Z ]$/,fraktur:/^[\dA-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^’‘]$/,monospace:/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/,"sans-serif":/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/},l0=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,fm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,hm=[/^[a-z]$/,/^[A-Z]$/,l0,fm],pm={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},mm=class extends Zo{constructor(){super("math")}createAtom(a,y,b){var E,ee,ie,oe;if(y===null)return new Zn({type:"mord",mode:"math",command:a,value:a,style:b});const fe=window.MathfieldElement.isFunction((E=y.command)!=null?E:a);if(y.definitionType==="symbol"){const be=new Zn({type:(ee=y.type)!=null?ee:"mord",mode:"math",command:(ie=y.command)!=null?ie:a,value:String.fromCodePoint(y.codepoint),style:b});return fe&&(be.isFunction=!0),a.startsWith("\\")&&(be.verbatimLatex=a),be}const me=new Zn({type:"mord",mode:"math",command:(oe=y.command)!=null?oe:a,value:a,style:b});return fe&&(me.isFunction=!0),a.startsWith("\\")&&(me.verbatimLatex=a),me}serialize(a,y){const b=gm(a,ye(Ee({},y),{defaultMode:"math"}));return b.length===0||y.defaultMode!=="text"?b:["$ ",...b," $"]}getFont(a,y){console.assert(y.variant!==void 0);let{variant:b}=y,{variantStyle:E}=y;b==="normal"&&!E&&/[\u00A3\u0131\u0237]/.test(a.value)&&(b="main",E="italic"),b==="normal"&&!E&&a.value.length===1&&hm.forEach((fe,me)=>{var be;fe.test(a.value)&&pm[(be=y.letterShapeStyle)!=null?be:"tex"][me]==="it"&&(E="italic")}),E==="up"&&(E=void 0);const ee=E?b+"-"+E:b;console.assert(s0[ee]!==void 0);const[ie,oe]=s0[ee];return ph[b]&&!ph[b].test(a.value)?(a.value=Rt(a.value,b,E),null):(l0.test(a.value)&&(a.classes+=" lcGreek"),oe&&(a.classes+=" "+oe),ie)}};function gm(a,y){const{parent:b}=a[0],E=u0(b);return zo(a,"variant").map(ee=>{const ie=u0(ee[0]);let oe="";ie&&ie!==E&&(oe={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[ie],console.assert(oe!==void 0));const fe=di(ee.map(me=>me._serialize(y)));return oe?Ua(oe,fe):fe})}function u0(a){if(!a)return"";const{style:y}=a;if(y.variant===void 0)return"";let b=y.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(y.variant)&&y.variantStyle&&y.variantStyle!=="up"&&(b+="-"+y.variantStyle),b}new mm;function vm(a,y){return a.map(b=>b._serialize(y))}function ym(a,y){return zo(a,"fontShape").map(b=>{const E=vm(b,y),{fontShape:ee}=b[0].style;let ie="";return ee==="it"&&(ie="\\textit"),ee==="sl"&&(ie="\\textsl"),ee==="sc"&&(ie="\\textsc"),ee==="n"&&(ie="\\textup"),!ie&&ee?`{${Ua("\\fontshape",ee)}${di(E)}}`:ie?Ua(ie,di(E)):di(E)})}function bm(a,y){return zo(a,"fontSeries").map(b=>{const E=ym(b,y),{fontSeries:ee}=b[0].style;let ie="";return ee==="b"&&(ie="\\textbf"),ee==="l"&&(ie="\\textlf"),ee==="m"&&(ie="\\textmd"),ee&&!ie?`{${Ua("\\fontseries",ee)}${di(E)}}`:ie?Ua(ie,di(E)):di(E)})}function xm(a,y){return zo(a,"fontSize").map(b=>{var E,ee;const ie=bm(b,y),oe=(ee=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(E=b[0].style.fontSize)!=null?E:""])!=null?ee:"";return oe?`${oe} ${di(ie)}`:di(ie)})}function wm(a,y,b){return zo(a,"fontFamily").map(E=>{var ee,ie;const oe=xm(E,y),fe=(ie={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ee=E[0].style.fontFamily)!=null?ee:""])!=null?ie:"";return fe?`\\${fe}{${di(oe)}}`:E[0].style.fontFamily?`{\\fontfamily{${E[0].style.fontFamily}} ${di(oe)}}`:b?`\\text{${di(oe)}}`:di(oe)})}var c0={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Em=class extends Zo{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new Bu(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return wm(a,ye(Ee({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,E,ee,ie,oe;const{fontFamily:fe}=y;if(c0[fe]?a.classes+=" "+c0[fe]:fe&&a.setStyle("font-family",fe),y.fontShape&&(a.classes+=" ",a.classes+=(b={it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[y.fontShape])!=null?b:""),y.fontSeries){const me=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);me&&(a.classes+=" ",a.classes+=(ee={ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[(E=me[1])!=null?E:""])!=null?ee:"",a.classes+=" ",a.classes+=(oe={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[(ie=me[2])!=null?ie:""])!=null?oe:"")}return"Main-Regular"}};new Em;var Cm=class extends Zo{constructor(){super("latex")}createAtom(a){return new xl(a)}serialize(a,y){return a.filter(b=>b instanceof xl&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new Cm;var Sm={id:"dvorak",locale:"en",displayName:"Dvorak",virtualLayout:"dvorak",platform:"",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["x","X","\u2248","\u02DB"],KeyC:["j","J","\u2206","\xD4"],KeyD:["e","E","\xB4","\xB4"],KeyE:[".",">","\u2265","\u02D8"],KeyF:["u","U","\xA8","\xA8"],KeyG:["i","I","\u02C6","\u02C6"],KeyH:["d","D","\u2202","\xCE"],KeyI:["c","C","\xE7","\xC7"],KeyJ:["h","H","\u02D9","\xD3"],KeyK:["t","T","\u2020","\u02C7"],KeyL:["n","N","\u02DC","\u02DC"],KeyM:["m","M","\xB5","\xC2"],KeyN:["b","B","\u222B","\u0131"],KeyO:["r","R","\xAE","\u2030"],KeyP:["l","L","\xAC","\xD2"],KeyQ:["'",'"',"\xE6","\xC6"],KeyR:["p","P","\u03C0","\u220F"],KeyS:["o","O","\xF8","\xD8"],KeyT:["y","Y","\xA5","\xC1"],KeyU:["g","G","\xA9","\u02DD"],KeyV:["k","K","\u02DA","\uF8FF"],KeyW:[",","<","\u2264","\xAF"],KeyX:["q","Q","\u0153","\u0152"],KeyY:["f","F","\u0192","\xCF"],KeyZ:[";",":","\u2026","\xDA"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["[","{","\u201C","\u201D"],Equal:["]","}","\u2018","\u2019"],BracketLeft:["/","?","\xF7","\xBF"],BracketRight:["=","+","\u2260","\xB1"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:["s","S","\xDF","\xCD"],Quote:["-","_","\u2013","\u2014"],Backquote:["`","~","`","`"],Comma:["w","W","\u2211","\u201E"],Period:["v","V","\u221A","\u25CA"],Slash:["z","Z","\u03A9","\xB8"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},mh={id:"apple.en-intl",displayName:"English (international)",virtualLayout:"qwerty",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u0131"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\xCE"],KeyE:["e","E","\xB4","\xB4"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\u02DD"],KeyH:["h","H","\u02D9","\xD3"],KeyI:["i","I","\u02C6","\u02C6"],KeyJ:["j","J","\u2206","\xD4"],KeyK:["k","K","\u02DA","\uF8FF"],KeyL:["l","L","\xAC","\xD2"],KeyM:["m","M","\xB5","\xC2"],KeyN:["n","N","\u02DC","\u02DC"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE","\u2030"],KeyS:["s","S","\xDF","\xCD"],KeyT:["t","T","\u2020","\u02C7"],KeyU:["u","U","\xA8","\xA8"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\u02DB"],KeyY:["y","Y","\xA5","\xC1"],KeyZ:["z","Z","\u03A9","\xB8"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["-","_","\u2013","\u2014"],Equal:["=","+","\u2260","\xB1"],BracketLeft:["[","{","\u201C","\u201D"],BracketRight:["]","}","\u2018","\u2019"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:[";",":","\u2026","\xDA"],Quote:["'",'"',"\xE6","\xC6"],Backquote:["`","\u02DC","`","`"],Comma:[",","<","\u2264","\xAF"],Period:[".",">","\u2265","\u02D8"],Slash:["/","?","\xF7","\xBF"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},d0={id:"windows.en-intl",displayName:"English (international)",platform:"windows",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","\xE1","\xC1"],KeyB:["b","B","",""],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\xE9","\xC9"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","\xED","\xCD"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","\xF8","\xD8"],KeyM:["m","M","\xB5",""],KeyN:["n","N","\xF1","\xD1"],KeyO:["o","O","\xF3","\xD3"],KeyP:["p","P","\xF6","\xD6"],KeyQ:["q","Q","\xE4","\xC4"],KeyR:["r","R","\xAE",""],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\xFE","\xDE"],KeyU:["u","U","\xFA","\xDA"],KeyV:["v","V","",""],KeyW:["w","W","\xE5","\xC5"],KeyX:["x","X","",""],KeyY:["y","Y","\xFC","\xDC"],KeyZ:["z","Z","\xE6","\xC6"],Digit1:["1","!","\xA1","\xB9"],Digit2:["2","@","\xB2",""],Digit3:["3","#","\xB3",""],Digit4:["4","$","\xA4","\xA3"],Digit5:["5","%","\u20AC",""],Digit6:["6","^","\xBC",""],Digit7:["7","&","\xBD",""],Digit8:["8","*","\xBE",""],Digit9:["9","(","\u2018",""],Digit0:["0",")","\u2019",""],Space:[" "," ","",""],Minus:["-","_","\xA5",""],Equal:["=","+","\xD7","\xF7"],BracketLeft:["[","{","\xAB",""],BracketRight:["]","}","\xBB",""],Backslash:["\\","|","\xAC","\xA6"],Semicolon:[";",":","\xB6","\xB0"],Quote:["'",'"',"\xB4","\xA8"],Backquote:["`","~","",""],Comma:[",","<","\xE7","\xC7"],Period:[".",">","",""],Slash:["/","?","\xBF",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}},f0={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},Am={id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","\u2021","\u03A9"],KeyB:["b","B","\xDF","\u222B"],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\xEA","\xCA"],KeyF:["f","F","\u0192","\xB7"],KeyG:["g","G","\uFB01","\uFB02"],KeyH:["h","H","\xCC","\xCE"],KeyI:["i","I","\xEE","\xEF"],KeyJ:["j","J","\xCF","\xCD"],KeyK:["k","K","\xC8","\xCB"],KeyL:["l","L","\xAC","|"],KeyM:[",","?","\u221E","\xBF"],KeyN:["n","N","~","\u0131"],KeyO:["o","O","\u0153","\u0152"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xAE","\u201A"],KeyS:["s","S","\xD2","\u2211"],KeyT:["t","T","\u2020","\u2122"],KeyU:["u","U","\xBA","\xAA"],KeyV:["v","V","\u25CA","\u221A"],KeyW:["z","Z","\xC2","\xC5"],KeyX:["x","X","\u2248","\u2044"],KeyY:["y","Y","\xDA","\u0178"],KeyZ:["w","W","\u2039","\u203A"],Digit1:["&","1","\uF8FF","\xB4"],Digit2:["\xE9","2","\xEB","\u201E"],Digit3:['"',"3","\u201C","\u201D"],Digit4:["'","4","\u2018","\u2019"],Digit5:["(","5","{","["],Digit6:["\xA7","6","\xB6","\xE5"],Digit7:["\xE8","7","\xAB","\xBB"],Digit8:["!","8","\xA1","\xDB"],Digit9:["\xE7","9","\xC7","\xC1"],Digit0:["\xE0","0","\xF8","\xD8"],Space:[" "," "," "," "],Minus:[")","\xB0","}","]"],Equal:["-","_","\u2014","\u2013"],BracketLeft:["^","\xA8","\xF4","\xD4"],BracketRight:["$","*","\u20AC","\xA5"],Backslash:["`","\xA3","@","#"],Semicolon:["m","M","\xB5","\xD3"],Quote:["\xF9","%","\xD9","\u2030"],Backquote:["<",">","\u2264","\u2265"],Comma:[";",".","\u2026","\u2022"],Period:[":","/","\xF7","\\"],Slash:["=","+","\u2260","\xB1"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","\u2022","\u0178"],NumpadEqual:["=","=","=","="]}},km={id:"windows.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["\xE9","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["\xE8","7","`",""],Digit8:["_","8","\\",""],Digit9:["\xE7","9","^",""],Digit0:["\xE0","0","@",""],Space:[" "," ","",""],Minus:[")","\xB0","]",""],Equal:["=","+","}",""],BracketLeft:["^","\xA8","",""],BracketRight:["$","\xA3","\xA4",""],Backslash:["*","\xB5","",""],Semicolon:["m","M","",""],Quote:["\xF9","%","",""],Backquote:["\xB2","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","\xA7","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},Mm={id:"linux.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"linux",score:0,mapping:{KeyA:["q","Q","@","\u03A9"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:[",","?","\u0301","\u030B"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["z","Z","\xAB","<"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["w","W","\u0142","\u0141"],Digit1:["&","1","\xB9","\xA1"],Digit2:["\xE9","2","~","\u215B"],Digit3:['"',"3","#","\xA3"],Digit4:["'","4","{","$"],Digit5:["(","5","[","\u215C"],Digit6:["-","6","|","\u215D"],Digit7:["\xE8","7","`","\u215E"],Digit8:["_","8","\\","\u2122"],Digit9:["\xE7","9","^","\xB1"],Digit0:["\xE0","0","@","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:[")","\xB0","]","\xBF"],Equal:["=","+","}","\u0328"],BracketLeft:["\u0302","\u0308","\u0308","\u030A"],BracketRight:["$","\xA3","\xA4","\u0304"],Backslash:["*","\xB5","\u0300","\u0306"],Semicolon:["m","M","\xB5","\xBA"],Quote:["\xF9","%","\u0302","\u030C"],Backquote:["\xB2","~","\xAC","\xAC"],Comma:[";",".","\u2500","\xD7"],Period:[":","/","\xB7","\xF7"],Slash:["!","\xA7","\u0323","\u0307"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"]}},Bm={id:"apple.german",locale:"de",displayName:"German",virtualLayout:"qwertz",platform:"apple",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u2039"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\u2122"],KeyE:["e","E","\u20AC","\u2030"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\xCC"],KeyH:["h","H","\xAA","\xD3"],KeyI:["i","I","\u2044","\xDB"],KeyJ:["j","J","\xBA","\u0131"],KeyK:["k","K","\u2206","\u02C6"],KeyL:["l","L","@","\uFB02"],KeyM:["m","M","\xB5","\u02D8"],KeyN:["n","N","~","\u203A"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\xAB","\xBB"],KeyR:["r","R","\xAE","\xB8"],KeyS:["s","S","\u201A","\xCD"],KeyT:["t","T","\u2020","\u02DD"],KeyU:["u","U","\xA8","\xC1"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\xD9"],KeyY:["z","Z","\u03A9","\u02C7"],KeyZ:["y","Y","\xA5","\u2021"],Digit1:["1","!","\xA1","\xAC"],Digit2:["2",'"',"\u201C","\u201D"],Digit3:["3","\xA7","\xB6","#"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","[","\uFB01"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","\u02DC"],Digit9:["9",")","}","\xB7"],Digit0:["0","=","\u2260","\xAF"],Space:[" "," "," "," "],Minus:["\xDF","?","\xBF","\u02D9"],Equal:["\xB4","`","'","\u02DA"],BracketLeft:["\xFC","\xDC","\u2022","\xB0"],BracketRight:["+","*","\xB1","\uF8FF"],Backslash:["#","'","\u2018","\u2019"],Semicolon:["\xF6","\xD6","\u0153","\u0152"],Quote:["\xE4","\xC4","\xE6","\xC6"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u221E","\u02DB"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","\xB0","\u201E","\u201C"],NumpadEqual:["=","=","=","="]}},Dm={id:"windows.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","\xB5",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"\xB2",""],Digit3:["3","\xA7","\xB3",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["\xDF","?","\\","\u1E9E"],Equal:["\xB4","`","",""],BracketLeft:["\xFC","\xDC","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["\xF6","\xD6","",""],Quote:["\xE4","\xC4","",""],Backquote:["^","\xB0","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}},Fm={id:"linux.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201C","\u2018"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0323","\u0307"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","\u201D","\u2019"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\u017F","\u1E9E"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201E","\u201A"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xAB","\u2039"],KeyY:["z","Z","\u2190","\xA5"],KeyZ:["y","Y","\xBB","\u203A"],Digit1:["1","!","\xB9","\xA1"],Digit2:["2",'"',"\xB2","\u215B"],Digit3:["3","\xA7","\xB3","\xA3"],Digit4:["4","$","\xBC","\xA4"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["\xDF","?","\\","\xBF"],Equal:["\u0301","\u0300","\u0327","\u0328"],BracketLeft:["\xFC","\xDC","\u0308","\u030A"],BracketRight:["+","*","~","\xAF"],Backslash:["#","'","\u2019","\u0306"],Semicolon:["\xF6","\xD6","\u030B","\u0323"],Quote:["\xE4","\xC4","\u0302","\u030C"],Backquote:["\u0302","\xB0","\u2032","\u2033"],Comma:[",",";","\xB7","\xD7"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],PrintScreen:["","","",""],PageUp:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",",","",","],IntlBackslash:["<",">","|","\u0331"],AltRight:["\r","\r","\r","\r"],MetaRight:[".",".",".","."]}},Lm={id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\xDF",""],KeyC:["c","C","\xA9"," "],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0192","\uFB01"],KeyG:["g","G","\uF8FF","\uFB02"],KeyH:["h","H","\u2122"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","\xB6","\xAF"],KeyK:["k","K","\xA7","\u02C7"],KeyL:["l","L"," ","\u02D8"],KeyM:["m","M","\xB5","\u02DA"],KeyN:["n","N"," ","\u02D9"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE"," "],KeyS:["s","S","\u222B"," "],KeyT:["t","T","\u2020","\u2021"],KeyU:["u","U"," "," "],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\xE6","\xC6"],KeyX:["x","X","\u2211","\u203A"],KeyY:["y","Y","\xA5"," "],KeyZ:["z","Z","\u03A9","\u2039"],Digit1:["1","!","|","\u0131"],Digit2:["2",'"',"@","\u02DD"],Digit3:["3","\xB7","#","\u2022"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","\u221E","\u2030"],Digit6:["6","&","\xAC"," "],Digit7:["7","/","\xF7","\u2044"],Digit8:["8","(","\u201C","\u2018"],Digit9:["9",")","\u201D","\u2019"],Digit0:["0","=","\u2260","\u2248"],Space:[" "," "," "," "],Minus:["'","?","\xB4","\xB8"],Equal:["\xA1","\xBF","\u201A","\u02DB"],BracketLeft:["`","^","[","\u02C6"],BracketRight:["+","*","]","\xB1"],Backslash:["\xE7","\xC7","}","\xBB"],Semicolon:["\xF1","\xD1","~","\u02DC"],Quote:["\xB4","\xA8","{","\xAB"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u201E",""],Period:[".",":","\u2026","\u2026"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["\xBA","\xAA","\\","\xB0"]}},Tm={id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","\xB7","#",""],Digit4:["4","$","~",""],Digit5:["5","%","\u20AC",""],Digit6:["6","&","\xAC",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["\xA1","\xBF","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["\xE7","\xC7","}",""],Semicolon:["\xF1","\xD1","",""],Quote:["\xB4","\xA8","{",""],Backquote:["\xBA","\xAA","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},Pm={id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["z","Z","\xAB","<"],Digit1:["1","!","|","\xA1"],Digit2:["2",'"',"@","\u215B"],Digit3:["3","\xB7","#","\xA3"],Digit4:["4","$","~","$"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["'","?","\\","\xBF"],Equal:["\xA1","\xBF","\u0303","~"],BracketLeft:["\u0300","\u0302","[","\u030A"],BracketRight:["+","*","]","\u0304"],Backslash:["\xE7","\xC7","}","\u0306"],Semicolon:["\xF1","\xD1","~","\u030B"],Quote:["\u0301","\u0308","{","{"],Backquote:["\xBA","\xAA","\\","\\"],Comma:[",",";","\u2500","\xD7"],Period:[".",":","\xB7","\xF7"],Slash:["-","_","\u0323","\u0307"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}};function h0(a){const y=a.split("+"),b={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:y.pop()};return y.includes("shift")&&(b.shift=!0),y.includes("alt")&&(b.alt=!0),y.includes("ctrl")&&(b.ctrl=!0),y.includes("cmd")&&(b.cmd=!0),y.includes("win")&&(b.win=!0),y.includes("meta")&&(b.meta=!0),b}function ad(a){let y="";return a.shift&&(y+="shift+"),a.alt&&(y+="alt+"),a.ctrl&&(y+="ctrl+"),a.cmd&&(y+="cmd+"),a.win&&(y+="win+"),a.meta&&(y+="meta+"),y+a.key}var Nm={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},Zd=[],Vd;function gh(){switch(Ze()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function uu(a){(!a.platform||a.platform===gh())&&Zd.push(a)}function Im(a,y){var b;const E={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!a)return E;for(const[ee,ie]of Object.entries(y.mapping)){if(ie[0]===a)return E.key=`[${ee}]`,E;if(ie[1]===a)return E.shift=!0,E.key=`[${ee}]`,E;if(ie[2]===a)return E.alt=!0,E.key=`[${ee}]`,E;if(ie[3]===a)return E.shift=!0,E.alt=!0,E.key=`[${ee}]`,E}return E.key=(b=Nm[a])!=null?b:"",E}function Om(a){if(a.code)return a;const y=Object.entries(Ud().mapping);let b=!1,E=!1,ee="";for(let ie=0;ie<4;ie++){for(const[oe,fe]of y)if(fe[ie]===a.key){ee=oe,ie===3?(b=!0,E=!0):ie===2?b=!0:ie===1&&(E=!0);break}if(ee)break}return new KeyboardEvent(a.type,ye(Ee({},a),{altKey:b,shiftKey:E,code:ee}))}function Rm(a){var y,b;if(!a||a.key==="Unidentified"||a.key==="Dead")return;const E=a.shiftKey&&a.altKey?3:a.altKey?2:a.shiftKey?1:0;for(const ee of Zd)((y=ee.mapping[a.code])==null?void 0:y[E])===a.key?ee.score+=1:(b=ee.mapping[a.code])!=null&&b[E]&&(ee.score=0);Zd.sort((ee,ie)=>ie.score-ee.score)}function _m(a){Vd=Zd.find(y=>a.startsWith(y.locale))}function Ud(){return Vd!=null?Vd:Zd[0]}function Km(){switch(gh()){case"apple":return mh;case"windows":return d0;case"linux":return f0}return mh}switch(gh()){case"apple":uu(mh),uu(Am),uu(Lm),uu(Bm);break;case"windows":uu(d0),uu(km),uu(Tm),uu(Dm);break;case"linux":uu(f0),uu(Mm),uu(Pm),uu(Fm);break}uu(Sm);function vh(a){var y;const b=/macos|ios/.test(Ze()),E=a.split("+");let ee="";for(const ie of E)ee&&(ee+=b?"\u2009":'<span class="ML__shortcut-join">+</span>'),ie.startsWith("[Key")?ee+=ie.slice(4,5):ie.startsWith("Key")?ee+=ie.slice(3,4):ie.startsWith("[Digit")?ee+=ie.slice(6,7):ie.startsWith("Digit")?ee+=ie.slice(5,6):ee+=(y={cmd:"\u2318",meta:b?"\u2318":"Ctrl",shift:b?"\u21E7":"Shift",alt:b?"\u2325":"Alt",ctrl:b?"\u2303":"Ctrl","\n":b?"\u23CE":"Return","[return]":b?"\u23CE":"Return","[enter]":b?"\u2324":"Enter","[tab]":b?"\u21E5":"Tab","[escape]":"Esc","[backspace]":b?"\u232B":"Backspace","[delete]":b?"\u2326":"Del","[pageup]":b?"\u21DE":"Page Up","[pagedown]":b?"\u21DF":"Page Down","[home]":b?"\u2912":"Home","[end]":b?"\u2913":"End","[space]":"Space","[equal]":"=","[minus]":"-","[comma]":",","[slash]":"/","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* 🔢",numpaddivide:"/ 🔢",numpadsubtract:"- 🔢",numpadadd:"+ 🔢",numpaddecimal:". 🔢",numpadcomma:", 🔢",help:"help",left:"\u21E0",up:"\u21E1",right:"\u21E2",down:"\u21E3","[arrowleft]":"\u21E0","[arrowup]":"\u21E1","[arrowright]":"\u21E2","[arrowdown]":"\u21E3"}[ie.toLowerCase()])!=null?y:ie.toUpperCase();return ee}function Cf(a){if(a instanceof MouseEvent||a instanceof PointerEvent)return{x:a.clientX,y:a.clientY};if(a instanceof TouchEvent){const y=[...a.touches].reduce((E,ee)=>({x:E.x+ee.clientX,y:E.y+ee.clientY}),{x:0,y:0}),b=a.touches.length;return{x:y.x/b,y:y.y/b}}}function Nc(a){const y={alt:!1,control:!1,shift:!1,meta:!1};return(a instanceof MouseEvent||a instanceof PointerEvent||a instanceof TouchEvent||a instanceof KeyboardEvent)&&(a.altKey&&(y.alt=!0),a.ctrlKey&&(y.control=!0),a.metaKey&&(y.meta=!0),a.shiftKey&&(y.shift=!0)),y}function Hm(a,y){return!a&&y||a&&!y?!1:!a||!y?!0:a.alt===y.alt&&a.control===y.control&&a.shift===y.shift&&a.meta===y.meta}var zm=new Set(["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"]);function Sf(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:zm.has(a.code)}function Af(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var Zu=class uc{static get scrim(){return uc._scrim||(uc._scrim=new uc),uc._scrim}static open(y){uc.scrim.open(y)}static close(){uc.scrim.close()}static get state(){return uc.scrim.state}static get element(){return uc.scrim.element}constructor(y){var b,E;this.lightDismiss=(b=y==null?void 0:y.lightDismiss)!=null?b:!0,this.translucent=(E=y==null?void 0:y.translucent)!=null?E:!1,this.state="closed"}get element(){if(this._element)return this._element;const y=document.createElement("div");return y.setAttribute("role","presentation"),y.style.position="fixed",y.style.contain="content",y.style.top="0",y.style.left="0",y.style.right="0",y.style.bottom="0",y.style.zIndex="var(--scrim-zindex, 10099)",y.style.outline="none",this.translucent?(y.style.background="rgba(255, 255, 255, .2)",y.style.backdropFilter="contrast(40%)"):y.style.background="transparent",this._element=y,y}open(y){var b;if(this.state!=="closed")return;this.state="opening",this.onDismiss=y==null?void 0:y.onDismiss,this.savedActiveElement=Af();const{element:E}=this;((b=y==null?void 0:y.root)!=null?b:document.body).appendChild(E),E.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const ee=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const ie=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${ie+ee}px`,y!=null&&y.child&&E.append(y.child),this.state="open"}close(){var y,b,E,ee;if(this.state!=="open"){console.assert(this.element.parentElement!==null);return}this.state="closing",typeof this.onDismiss=="function"&&this.onDismiss(),this.onDismiss=void 0;const{element:ie}=this;ie.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),ie.remove(),document.body.style.overflow=(y=this.savedOverflow)!=null?y:"",document.body.style.marginRight=(b=this.savedMarginRight)!=null?b:"",Af()!==this.savedActiveElement&&((ee=(E=this.savedActiveElement)==null?void 0:E.focus)==null||ee.call(E)),ie.innerHTML="",this.state="closed"}handleEvent(y){this.lightDismiss&&(y.target===this._element&&y.type==="click"?(this.close(),y.preventDefault(),y.stopPropagation()):y.target===document&&(y.type==="touchmove"||y.type==="scroll")&&(this.close(),y.preventDefault(),y.stopPropagation()))}};function Wm(a,y,b){let E=null,ee=null,ie=!1,oe=!1,fe=!1;const me=new AbortController,be=me.signal;return a.addEventListener("keydown",ke=>{if(ie||ke.key==="Process"||ke.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(ke.code)){E=null;return}E=ke,ee=null,b.onKeystroke(ke)?a.textContent="":E=null},{capture:!0,signal:be}),a.addEventListener("keypress",ke=>{ie||(E&&ee&&b.onKeystroke(E),ee=ke)},{capture:!0,signal:be}),a.addEventListener("compositionstart",ke=>{a.textContent="",ie=!0,b.onCompositionStart(ke.data)},{capture:!0,signal:be}),a.addEventListener("compositionupdate",ke=>{ie&&b.onCompositionUpdate(ke.data)},{capture:!0,signal:be}),a.addEventListener("compositionend",ke=>{a.textContent="",ie&&(ie=!1,b.onCompositionEnd(ke.data))},{capture:!0,signal:be}),a.addEventListener("beforeinput",ke=>ke.stopImmediatePropagation(),{signal:be}),a.addEventListener("input",ke=>{var Ke;if(!ie&&(a.textContent="",ke.inputType!=="insertCompositionText")){if(ke.inputType==="insertFromPaste"){ke.preventDefault(),ke.stopPropagation();return}b.onInput((Ke=ke.data)!=null?Ke:""),ke.preventDefault(),ke.stopPropagation()}},{signal:be}),a.addEventListener("paste",ke=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(ke)||ke.preventDefault(),ke.stopImmediatePropagation()},{signal:be}),a.addEventListener("cut",ke=>b.onCut(ke),{capture:!0,signal:be}),a.addEventListener("copy",ke=>b.onCopy(ke),{capture:!0,signal:be}),a.addEventListener("blur",ke=>{var Ke,rt;if(((rt=(Ke=ke.relatedTarget)==null?void 0:Ke._mathfield)==null?void 0:rt.element)===y){a.focus({preventScroll:!0}),ke.preventDefault(),ke.stopPropagation();return}const xt=Zu.state;if(xt==="open"||xt==="opening"){ke.preventDefault(),ke.stopPropagation();return}if(ke.relatedTarget===ke.target.getRootNode().host){ke.preventDefault(),ke.stopPropagation();return}fe||oe||(fe=!0,E=null,ee=null,b.onBlur(),fe=!1)},{capture:!0,signal:be}),a.addEventListener("focus",ke=>{fe||oe||(oe=!0,b.onFocus(),oe=!1)},{capture:!0,signal:be}),{dispose:()=>me.abort(),cancelComposition:()=>{ie&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!oe&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>Af()===a,setAriaLabel:ke=>a.setAttribute("aria-label",ke),setValue:ke=>{var Ke;a.textContent=ke,a.style.left="-1000px",(Ke=window.getSelection())==null||Ke.selectAllChildren(a)},moveTo:(ke,Ke)=>{a.style.top=`${Ke}px`,a.style.left=`${ke}px`}}}function od(a){var y;if(!a||!Sf(a))return"";let b;return a.key==="Unidentified"&&a.target&&(b=a.target.value),b=(y=b!=null?b:a.key)!=null?y:a.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(b)&&(b=""),b}function p0(a){a=Om(a);const y=[];return a.ctrlKey&&y.push("ctrl"),a.metaKey&&y.push("meta"),a.altKey&&y.push("alt"),a.shiftKey&&y.push("shift"),y.length===0?`[${a.code}]`:(y.push(`[${a.code}]`),y.join("+"))}function Zm(a){if(kt()){const y=Ze(),b=a.startsWith("!"),E=a.endsWith(y);if(b&&!E||!b&&E)return!0}return a==="!other"?!1:a==="other"}function Vm(a,y,b){if(a.length===0)return"";const E=ad(h0(p0(b))),ee=ad({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(Ze()),cmd:!1,win:!1});for(let ie=a.length-1;ie>=0;ie--)if((a[ie].key===E||a[ie].key===ee)&&(!a[ie].ifMode||a[ie].ifMode===y))return a[ie].command;return""}function m0(a){let y=a;return he(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function Um(a,y){let b=[];if(typeof y=="string"){const ie=Ld[y];he(ie)?b=ie.slice():ie&&b.push(ie)}const E=m0(y),ee=new RegExp("^"+E.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const ie of a)ee.test(m0(ie.command))&&b.push(ie.key);return b.map(vh)}function jm(a,y){if(a.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(a.ifPlatform))throw new Error(`Unexpected platform "${a.ifPlatform}" for keybinding ${a.key}`);if(a.ifLayout!==void 0&&(y.score===0||!a.ifLayout.includes(y.id)))return;const b=h0(a.key);let E=a.ifPlatform;if(b.cmd){if(E&&E!=="macos"&&E!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+E+`"
|
|
|
"cmd" modifier can only be used with macOS or iOS platform.`);E||(E=Ze()==="ios"?"ios":"macos"),b.win=!1,b.cmd=!1,b.meta=!0}if(b.win){if(E&&E!=="windows")throw new Error('Unexpected "win" modifier with platform "'+E+`"
|
|
|
"win" modifier can only be used with Windows platform.`);E="windows",b.win=!1,b.cmd=!1,b.meta=!0}if(E&&!Zm(E))return;if(/^\[.+\]$/.test(b.key))return ye(Ee({},a),{key:ad(b)});const ee=Im(b.key,y);if(!ee)return ye(Ee({},a),{key:ad(b)});if(ee.shift&&b.shift||ee.alt&&b.alt)throw new Error(`The keybinding ${a.key} (${yh(a.command)}) is conflicting with the key combination ${ad(ee)} using the ${y.displayName} keyboard layout`);return ee.shift=ee.shift||b.shift,ee.alt=ee.alt||b.alt,ee.meta=b.meta,ee.ctrl=b.ctrl,ye(Ee({},a),{key:ad(ee)})}function yh(a){if(Array.isArray(a)){const y=[...a];return y.shift()+"("+y.map(b=>typeof b=="string"?`"${b}"`:b.toString()).join(", ")+")"}return a}function Gm(a,y){const b=[],E=[];for(const ee of a)try{const ie=jm(ee,y);if(!ie)continue;const oe=E.find(fe=>fe.key===ie.key&&fe.ifMode===ie.ifMode);if(oe)throw new Error(`Ambiguous key binding ${ee.key} (${yh(ee.command)}) matches ${oe.key} (${yh(oe.command)}) with the ${y.displayName} keyboard layout`);E.push(ie)}catch(ie){ie instanceof Error&&b.push(ie.message)}return[E,b]}var Qm=class extends La{constructor(){super("latex")}createAtom(a){return new xl(a)}onPaste(a,y){if(!y)return!1;const b=typeof y=="string"?y:y.getData("application/x-latex")||y.getData("text/plain");return b&&a.model.contentWillChange({inputType:"insertFromPaste",data:b})?(a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b)&&(a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),ks(a)),a.startRecording(),!0):!1}insert(a,y,b){if(!a.contentWillChange({data:y,inputType:"insertText"}))return!1;b||(b={}),b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder");const{silenceNotifications:E}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ee=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(ll(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const ie=[];for(const me of y)ue.test(me)&&ie.push(new xl(me));let oe=a.at(a.position);if(oe instanceof _d&&(oe=oe.lastChild),!(oe.parent instanceof _d)){const me=new _d("");oe.parent.addChildAfter(me,oe),oe=me.firstChild}const fe=oe.parent.addChildrenAfter(ie,oe);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(fe)):fe&&(a.position=a.offsetOf(fe))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function Ym(a){return a.atoms.find(y=>y.type==="latexgroup")}function jd(a){var y,b;const E=a.atoms.find(ee=>ee.type==="latexgroup");return E?(b=(y=E.body)==null?void 0:y.filter(ee=>ee.type==="latex"))!=null?b:[]:[]}function g0(a,y){var b;let E=0,ee=!1;const ie=Number.isFinite(y==null?void 0:y.before)?(b=y==null?void 0:y.before)!=null?b:0:a.lastOffset;for(;E<=ie&&!ee;){const me=a.at(E);ee=me instanceof xl&&me.isSuggestion,ee||E++}if(!ee)return[void 0,void 0];let oe=E,fe=!1;for(;oe<=ie&&!fe;){const me=a.at(oe);fe=!(me instanceof xl&&me.isSuggestion),fe||oe++}return[E-1,oe-1]}new Qm;function kf(a){const y=jd(a.model).filter(b=>b.isSuggestion);if(y.length!==0){a.model.position=a.model.offsetOf(y[0].leftSibling);for(const b of y)b.parent.removeChild(b)}}function Gd(a,y){var b;const{model:E}=a;kf(a);for(const ke of jd(E))ke.isError=!1;if(!E.selectionIsCollapsed||a.options.popoverPolicy==="off"){ld(a);return}const ee=[];let ie=E.at(E.position);for(;ie&&ie instanceof xl&&/^[a-zA-Z\*]$/.test(ie.value);)ie=ie.leftSibling;if(ie&&ie instanceof xl&&ie.value==="\\")for(ee.push(ie),ie=ie.rightSibling;ie&&ie instanceof xl&&/^[a-zA-Z\*]$/.test(ie.value);)ee.push(ie),ie=ie.rightSibling;const oe=ee.map(ke=>ke.value).join(""),fe=mn(a,oe);if(fe.length===0){if(/^\\[a-zA-Z\*]+$/.test(oe))for(const ke of ee)ke.isError=!0;ld(a);return}const me=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=me<0?fe.length-1:me%fe.length;const be=fe[a.suggestionIndex];if(be!==oe){const ke=ee[ee.length-1];ke.parent.addChildrenAfter([...be.slice(oe.length-be.length)].map(Ke=>new xl(Ke,{isSuggestion:!0})),ke),Ic(a,{interactive:!0})}Xm(a,fe)}function v0(a){const[y,b]=g0(a,{before:a.position});if(y===void 0||b===void 0)return!1;let E=!1;return a.getAtoms([y,b]).forEach(ee=>{ee.isSuggestion&&(ee.isSuggestion=!1,E=!0)}),E}function sd(a,y="accept",b){var E,ee;ld(a);const ie=Ym(a.model);if(!ie)return!1;if(y==="accept-suggestion"||y==="accept-all"){const be=jd(a.model).filter(ke=>ke.isSuggestion);if(be.length!==0){for(const ke of be)ke.isSuggestion=!1;a.model.position=a.model.offsetOf(be[be.length-1])}if(y==="accept-suggestion")return be.length!==0}const fe=jd(a.model).filter(be=>!be.isSuggestion).map(be=>be.value).join(""),me=ie.leftSibling;return ie.parent.removeChild(ie),a.model.position=a.model.offsetOf(me),a.switchMode((E=b==null?void 0:b.mode)!=null?E:"math"),y==="reject"||(La.insert(a.model,fe,{selectionMode:(ee=b==null?void 0:b.selectItem)!=null&&ee?"item":"placeholder",format:"latex",mode:"math"}),a.snapshot(),a.model.announce("replacement"),a.switchMode("math")),!0}function Mf(a){var y;let b=document.getElementById(a);return b?b.dataset.refcount=Number(Number.parseInt((y=b.dataset.refcount)!=null?y:"0")+1).toString():(b=document.createElement("div"),b.setAttribute("aria-hidden","true"),b.dataset.refcount="1",b.id=a,document.body.append(b)),b}function bh(a){var y;const b=document.getElementById(a);if(!b)return;const E=Number.parseInt((y=b.getAttribute("data-refcount"))!=null?y:"0");E<=1?b.remove():b.dataset.refcount=Number(E-1).toString()}function Jm(a,y){const b=new qa({from:a.context}),E=new Zn({mode:"math",type:"root",body:cl(y,{context:b})}),ee=Qc(zd(new Nr(E.render(b),{classes:"ML__base"}),b));return Yc(ee,{classes:"ML__latex"}).toMarkup()}function Xm(a,y){var b;if(y.length===0){ld(a);return}let E="";for(const[ie,oe]of y.entries()){const fe=oe,me=Jm(a,oe),be=Um(a.keybindings,fe).join("<br>");E+=`<li role="button" data-command="${fe}" ${ie===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${fe}</span><span class="ML__popover__command">${me}</span>`,be&&(E+=`<span class="ML__popover__keybinding">${be}</span>`),E+="</li>"}const ee=qm(a,`<ul>${E}</ul>`);xh()&&((b=ee.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var ie;ee&&!xh()&&(ee.classList.add("is-visible"),Bf(a),(ie=ee.querySelector(".ML__popover__current"))==null||ie.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function xh(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function Bf(a,y){var b;if(!a.element||a.element.mathfield!==a||!xh())return;if(((b=a.model.at(a.model.position))==null?void 0:b.type)!=="latex"){ld(a);return}if(y!=null&&y.deferred){setTimeout(()=>Bf(a),32);return}const E=zu(a.field);if(!E)return;const ee=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,ie=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,oe=window.innerWidth-document.documentElement.clientWidth,fe=window.innerHeight-document.documentElement.clientHeight,me=window.mathVirtualKeyboard.boundingRect.height,be=document.getElementById("mathlive-suggestion-popover");E.x+be.offsetWidth/2>ie-oe?be.style.left=`${ie-be.offsetWidth-oe}px`:E.x-be.offsetWidth/2<0?be.style.left="0":be.style.left=`${E.x-be.offsetWidth/2}px`;const ke=E.y-E.height;ee-fe-me-E.y<ke?(be.classList.add("ML__popover--reverse-direction"),be.classList.remove("top-tip"),be.classList.add("bottom-tip"),be.style.top=`${E.y-E.height-be.offsetHeight-15}px`):(be.classList.remove("ML__popover--reverse-direction"),be.classList.add("top-tip"),be.classList.remove("bottom-tip"),be.style.top=`${E.y+15}px`)}function ld(a){a.suggestionIndex=0;const y=document.getElementById("mathlive-suggestion-popover");y&&(y.classList.remove("is-visible"),y.innerHTML="")}function qm(a,y){let b=document.getElementById("mathlive-suggestion-popover");return b||(b=Mf("mathlive-suggestion-popover"),eu("suggestion-popover"),eu("core"),b.addEventListener("pointerdown",E=>E.preventDefault()),b.addEventListener("click",E=>{let ee=E.target;for(;ee&&!ee.dataset.command;)ee=ee.parentElement;ee&&(sd(a,"reject"),La.insert(a.model,ee.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),a.dirty=!0,a.focus())})),b.innerHTML=window.MathfieldElement.createHTML(y),b}function $m(){document.getElementById("mathlive-suggestion-popover")&&(bh("mathlive-suggestion-popover"),x("suggestion-popover"),x("core"))}function eg(){const a=String(new Error().stack).replace(/^Error.*\n/,"").split(`
|
|
|
`);if(a.length===0)return console.error(`Can't use relative paths to specify assets location because the sourcefile location could not be determined (unexpected stack trace format "${new Error().stack}").`),"";let y=a[1],b=y.match(/http.*\.ts[\?:]/);return b&&(y=a[2]),b=y.match(/(https?:.*):[0-9]+:[0-9]+/),b||(b=y.match(/at (.*(\.ts))[\?:]/),b||(b=y.match(/at (.*(\.mjs|\.js))[\?:]/))),b?b[1]:(console.error(a),console.error(`Can't use relative paths to specify assets location because the source file location could not be determined (unexpected location "${y}").`),"")}var Df=null,y0,b0,wh=((b0=(y0=globalThis==null?void 0:globalThis.document)==null?void 0:y0.currentScript)==null?void 0:b0.src)||eg();function x0(a){return Sc(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(Df===null)try{const y=yield fetch(wh,{method:"HEAD"});y.status===200&&(Df=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${wh}")`)}return new URL(a,Df!=null?Df:wh).href})}function tg(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var cu="not-loaded";function ng(){return Sc(this,null,function*(){return cu="not-loaded",Ff()})}function Ff(){return Sc(this,null,function*(){var a;if(cu!=="not-loaded")return;if(cu="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){cu="ready";return}if(document.body.classList.remove("ML__fonts-did-not-load"),"fonts"in document){const b=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Typewriter","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"],E=Array.from(document.fonts).map(oe=>oe.family);if(b.every(oe=>E.includes(oe))){cu="ready";return}if(!window.MathfieldElement.fontsDirectory){cu="not-loaded";return}const ee=yield x0(window.MathfieldElement.fontsDirectory);if(!ee){document.body.classList.add("ML__fonts-did-not-load"),cu="error";return}const ie=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(oe=>tg(oe[0].replace(/-[a-zA-Z]+$/,""),`${ee}/${oe[0]}`,oe[1]));try{(yield Promise.all(ie.map(fe=>{try{return fe.load()}catch(me){}}))).forEach(fe=>document.fonts.add(fe)),cu="ready";return}catch(oe){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ee}"`,{cause:oe}),document.body.classList.add("ML__fonts-did-not-load")}cu="error"}})}function rg(a){let y=0;for(let b=0;b<a.length;b++)y=y*31+a.charCodeAt(b),y=y|0;return Math.abs(y)}function ks(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{su(a)&&a.dirty&&(a.atomBoundsCache=new Map,Ic(a,y),a.atomBoundsCache=void 0)})))}function ig(a,y){var b;y=y!=null?y:{};const E=new qa({from:ye(Ee({},a.context),{atomIdsSettings:{seed:y.forHighlighting?rg(Zn.serialize([a.model.root],{expandMacro:!1,defaultMode:a.options.defaultMode})):"random",groupNumbers:(b=y.forHighlighting)!=null?b:!1},letterShapeStyle:a.options.letterShapeStyle}),mathstyle:a.options.defaultMode==="inline-math"?"textstyle":"displaystyle"}),ee=a.model.root.render(E);return Yc(zd(ee,E),{classes:a.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function w0(a,y){const{model:b}=a;b.root.caret=void 0,b.root.isSelected=!1,b.root.containsCaret=!0;for(const ee of b.atoms)ee.caret=void 0,ee.isSelected=!1,ee.containsCaret=!1;if(b.selectionIsCollapsed){const ee=b.at(b.position);ee.caret=a.model.mode;let ie=ee.parent;for(;ie;)ie.containsCaret=!0,ie=ie.parent}else{const ee=b.getAtoms(b.selection,{includeChildren:!0});for(const ie of ee)ie.isSelected=!0}return ig(a,y).toMarkup()}function Ic(a,y){if(!su(a))return;y!=null||(y={});const b=a.element.querySelector("[part=virtual-keyboard-toggle]");b&&(b.style.display=a.hasEditableContent?"":"none");const E=a.field;if(!E)return;const ee=a.isSelectionEditable&&a.hasFocus(),ie=E.classList.contains("ML__focused");ie&&!ee?E.classList.remove("ML__focused"):!ie&&ee&&E.classList.add("ML__focused");let oe=w0(a,y);const fe=a.element.querySelector("[part=menu-toggle]");if(fe&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?fe.style.display="none":fe.style.display=""),a.model.atoms.length<=1){const me=a.options.contentPlaceholder;me&&(oe+=`<span part=placeholder class="ML__content-placeholder">${dl(me)}</span>`)}E.innerHTML=window.MathfieldElement.createHTML(oe),Lf(a,y.interactive),a.dirty=!1}function Lf(a,y){const b=a.field;if(!b)return;for(const fe of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))fe.remove();!(y!=null&&y)&&cu!=="error"&&cu!=="ready"&&setTimeout(()=>{cu==="ready"?Lf(a):setTimeout(()=>Lf(a),128)},32);const E=a.model,ee=b.offsetWidth,ie=b.getBoundingClientRect().width;let oe=Math.floor(ie)/ee;if(oe=isNaN(oe)?1:oe,E.selectionIsCollapsed){Bf(a,{deferred:!0});let fe=E.at(E.position);for(;fe&&fe.type!=="prompt"&&!(fe.containsCaret&&fe.displayContainsHighlight);)fe=fe.parent;if(fe!=null&&fe.containsCaret&&fe.displayContainsHighlight){const me=Pd(a,gc(a,fe),oe);if(me){me.left/=oe,me.right/=oe,me.top/=oe,me.bottom/=oe;const be=document.createElement("div");be.classList.add("ML__contains-highlight"),be.style.position="absolute",be.style.left=`${me.left+1}px`,be.style.top=`${Math.ceil(me.top)}px`,be.style.width=`${Math.ceil(me.right-me.left)}px`,be.style.height=`${Math.ceil(me.bottom-me.top)}px`,b.insertBefore(be,b.childNodes[0])}}return}for(const fe of ag(Id(a,{excludeAtomsWithBackground:!0}))){fe.left/=oe,fe.right/=oe,fe.top/=oe,fe.bottom/=oe;const me=document.createElement("div");me.classList.add("ML__selection"),me.style.position="absolute",me.style.left=`${fe.left}px`,me.style.top=`${fe.top}px`,me.style.width=`${Math.ceil(fe.right-fe.left)}px`,me.style.height=`${Math.ceil(fe.bottom-fe.top-1)}px`,b.insertBefore(me,b.childNodes[0])}}function ag(a){let y=[];for(const b of a){let E=!1;for(const ee of y)if(b.left===ee.left&&b.right===ee.right&&b.top===ee.top&&b.bottom===ee.bottom){E=!0;break}E||y.push(b)}a=y,y=[];for(const b of a){let E=0;for(const ee of a)if(b.left>=ee.left&&b.right<=ee.right&&b.top>=ee.top&&b.bottom<=ee.bottom&&(E+=1,E>1))break;E===1&&y.push(b)}return y}var E0=3,Vu;function tu(a,y){y=Ee({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Vu||(Vu={});for(const b of Object.keys(a))console.assert(!Vu[b],"Selector already defined: ",b),Vu[b]=ye(Ee({},y),{fn:a[b]})}function Eh(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return Eh(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),Vu[y]}function ud(a){var y;return(y=Eh(a))==null?void 0:y.target}function og(a,y){var b;if(!y)return!1;let E,ee=[],ie=!1,oe=!1;he(y)?(E=y[0],ee=y.slice(1)):E=y,E=E.replace(/-\w/g,be=>be[1].toUpperCase());const fe=Vu[E],me=fe==null?void 0:fe.target;if(me==="model"){if(!a.isSelectionEditable&&(fe!=null&&fe.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(E)&&(E!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(E)),/^complete/.test(E)||kf(a),Vu[E].fn(a.model,...ee),Gd(a),oe=!0,ie=!0}else if(me==="virtual-keyboard")oe=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,ie=!0;else if(Vu[E]){if(!a.isSelectionEditable&&(fe!=null&&fe.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(E)&&a.flushInlineShortcutBuffer(),oe=Vu[E].fn(a,...ee),ie=!0}else throw new Error(`Unknown command "${E}"`);return me!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||fe!=null&&fe.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),fe!=null&&fe.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),oe&&ks(a),ie}function sg(a,y){var b;if(!a)return!1;a.focus(),vp.keypressVibration&&ft()&&navigator.vibrate(E0);const E=Eh(y);window.MathfieldElement.playSound((b=E==null?void 0:E.audioFeedback)!=null?b:"keypress");const ee=a.executeCommand(y);return a.scrollIntoView(),ee}tu({performWithFeedback:(a,y)=>sg(a,y)});function lg(a){return Gd(a,{atIndex:a.suggestionIndex+1}),!1}function ug(a){return Gd(a,{atIndex:a.suggestionIndex-1}),!1}tu({complete:sd},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),tu({nextSuggestion:lg,previousSuggestion:ug},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Tf="mathlive#virtual-keyboard-message";function Ch(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Tf}var cg=class em{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new em),this._singleton}set alphabeticLayout(y){this.sendMessage("update-setting",{alphabeticLayout:y})}set layouts(y){this.sendMessage("update-setting",{layouts:y})}get normalizedLayouts(){return[]}set editToolbar(y){this.sendMessage("update-setting",{editToolbar:y})}set actionKeycap(y){this.sendMessage("update-setting",{actionKeycap:y})}set shiftKeycap(y){this.sendMessage("update-setting",{shiftKeycap:y})}set backspaceKeycap(y){this.sendMessage("update-setting",{backspaceKeycap:y})}set tabKeycap(y){this.sendMessage("update-setting",{tabKeycap:y})}set container(y){throw new Error("Container inside an iframe cannot be changed")}show(y){this.sendMessage("show",y)}hide(y){this.sendMessage("hide",y)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(y){y?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(y){return this.sendMessage("execute-command",{command:y}),!0}updateToolbar(y){this.sendMessage("update-toolbar",y)}update(y){this.sendMessage("update-setting",y)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(y,b,E){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,E){this.listeners[y]&&this.listeners[y].delete(b)}handleEvent(y){if(Ch(y)){if(!Od(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");this.handleMessage(y.data)}}handleMessage(y){const{action:b}=y;if(b==="execute-command"){const{command:E}=y;ud(E)==="virtual-keyboard"&&this.executeCommand(E);return}if(b==="synchronize-proxy"){this._boundingRect=y.boundingRect,this._isShifted=y.isShifted;return}if(b==="geometry-changed"){this._boundingRect=y.boundingRect,this.dispatchEvent(new Event("geometrychange"));return}}sendMessage(y,b={}){if(!window.top)throw new DOMException("A frame does not have access to the top window and can\u2018t communicate with the keyboard. Review virtualKeyboardTargetOrigin and originValidator on mathfields embedded in an iframe","SecurityError");window.top.postMessage(Ee({type:Tf,action:y},b),this.targetOrigin)}},C0={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"\u2264"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"\u2265"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"αβγ",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"<i>φ</i>",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"<i>ς</i>",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"<i>ϵ</i>",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"<i>ρ</i>",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"<i>τ</i>",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"<i>υ</i>",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"<i>θ</i>",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"<i>ι</i>",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"<i>ο</i>",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"<i>π</i>",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"<i>α</i>",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"<i>σ</i>",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"<i>δ</i>",class:"MLK__tex hide-shift",insert:"\\delta",aside:"delta",shift:"\\Delta"},{latex:"\\phi",class:"MLK__tex hide-shift",insert:"\\phi",aside:"phi",shift:"\\Phi"},{label:"<i>γ</i>",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"<i>η</i>",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"<i>ξ</i>",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"<i>κ</i>",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"<i>λ</i>",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"<i>ζ</i>",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"<i>χ</i>",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"<i>ψ</i>",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"<i>ω</i>",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"<i>β</i>",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"<i>ν</i>",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"<i>μ</i>",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"<i>ε</i>",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"<i>ϑ</i>",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"<i>ϰ</i>",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"<i>ϖ</i>",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"<i>ϱ</i>",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"∞\u2260\u2208",labelClass:"MLK__tex",tooltip:"keyboard.tooltip.symbols",rows:[[{latex:"\\sin",shift:"\\sin^{-1}",variants:[{class:"small",latex:"\\sinh"},{class:"small",latex:"\\sin^{-1}"},{class:"small",latex:"\\arsinh"}]},"\\ln",{latex:"\\mathrm{abs}",insert:"\\mathrm{abs}\\left(#0\\right)"},{latex:"\\rarr",shift:"\\rArr",variants:[{latex:"\\implies",aside:"implies"},{latex:"\\to",aside:"to"},"\\dashv",{latex:"\\roundimplies",aside:"round implies"}]},{latex:"\\exists",variants:["\\nexists"],shift:"\\nexists"},{latex:"\\in",shift:"\\notin",variants:["\\notin","\\owns"]},"\\cup",{latex:"\\overrightarrow{#@}",shift:"\\overleftarrow{#@}",variants:["\\overleftarrow{#@}","\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"]},{class:"small",latex:"\\lim_{#?}",shift:"\\lim_{x\\to\\infty}",variants:[{class:"small",latex:"\\liminf_{#?}"},{class:"small",latex:"\\limsup_{#?}"}]},"\\exponentialE"],[{latex:"\\cos",shift:"\\cos^{-1}",variants:[{class:"small",latex:"\\cosh"},{class:"small",latex:"\\cos^{-1}"},{class:"small",latex:"\\arcosh"}]},{latex:"\\log",shift:"\\log_{10}",variants:["\\log_{#0}","\\log_{10}"]},"\\left\\vert#0\\right\\vert",{latex:"\\larr",shift:"\\lArr",variants:[{latex:"\\impliedby",aside:"implied by"},{latex:"\\gets",aside:"gets"},"\\lArr","\\vdash",{latex:"\\models",aside:"models"}]},{latex:"\\forall",shift:"\\lnot",variants:[{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"}]},{latex:"\\ni",shift:"\\not\\owns"},"\\cap",{latex:"\\overline{#@}",shift:"\\underline{#@}",variants:["\\overbrace{#@}","\\overlinesegment{#@}","\\overleftrightarrow{#@}","\\overrightarrow{#@}","\\overleftarrow{#@}","\\overgroup{#@}","\\underbrace{#@}","\\underlinesegment{#@}","\\underleftrightarrow{#@}","\\underrightarrow{#@}","\\underleftarrow{#@}","\\undergroup{#@}"]},{class:"hide-shift",latex:"\\int",shift:"\\iint",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\smallint",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\intop","\\iiint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\ointctrclockwise","\\intctrclockwise"]},{latex:"\\pi",shift:"\\tau",variants:["\\tau"]}],[{latex:"\\tan",shift:"\\tan^{-1}",variants:[{class:"small",latex:"\\tanh"},{class:"small",latex:"\\tan^{-1}"},{class:"small",latex:"\\artanh"},{class:"small",latex:"\\arctan"},{class:"small",latex:"\\arctg"},{class:"small",latex:"\\tg"}]},{latex:"\\exp",insert:"\\exp\\left(#0\\right)",variants:["\\exponentialE^{#0}"]},"\\left\\Vert#0\\right\\Vert",{latex:"\\lrArr",shift:"\\leftrightarrow",variants:[{latex:"\\iff",aside:"if and only if"},"\\leftrightarrow","\\leftrightarrows","\\Leftrightarrow",{latex:"^\\biconditional",aside:"biconditional"}]},{latex:"\\vert",shift:"!"},{latex:"#@^{\\complement}",aside:"complement",variants:[{latex:"\\setminus",aside:"set minus"},{latex:"\\smallsetminus",aside:"small set minus"}]},{latex:"\\subset",shift:"\\subseteq",variants:["\\subset","\\subseteq","\\subsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsubseteq","\\supset","\\supseteq","\\supsetneq","\\supsetneqq","\\nsupset","\\nsupseteq"]},{latex:"#@^{\\prime}",shift:"#@^{\\doubleprime}",variants:["#@^{\\doubleprime}","#@\\degree"]},{latex:"\\mathrm{d}",shift:"\\partial",variants:["\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{latex:"\\infty",variants:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"]}],[{label:"[shift]",width:2},{class:"box",latex:",",shift:";",variants:[";","?"]},{class:"box",latex:"\\colon",shift:"\\Colon",variants:[{latex:"\\Colon",aside:"such that",class:"box"},{latex:":",aside:"ratio",class:"box"},{latex:"\\vdots",aside:"",class:"box"},{latex:"\\ddots",aside:"",class:"box"},{latex:"\\ldotp",aside:"low dot",class:"box"},{latex:"\\cdotp",aside:"center dot",class:"box"},{latex:"\\ldots",aside:"low ellipsis",class:"box"},{latex:"\\cdots",aside:"center ellipsis",class:"box"},{latex:"\\therefore",aside:"therefore",class:"box"},{latex:"\\because",aside:"because",class:"box"}]},{class:"box",latex:"\\cdot",aside:"centered dot",shift:"\\ast",variants:["\\circ","\\bigcirc","\\bullet","\\odot","\\oslash","\\circledcirc","\\ast","\\star","\\times","\\doteq","\\doteqdot"]},"[separator]","[left]","[right]",{label:"[backspace]",width:1,class:"action hide-shift"},{label:"[action]",width:1}]]},compact:{label:"compact",rows:[["[+]","[-]","[*]","[/]","[=]","[.]","[(]","[)]","\\sqrt{#0}","#@^{#?}"],["[1]","[2]","[3]","[4]","[5]","[6]","[7]","[8]","[9]","[0]"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]},minimalist:{label:"minimalist",layers:[{style:`
|
|
|
.minimalist-backdrop {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
}
|
|
|
.minimalist-container {
|
|
|
--keycap-height: 40px;
|
|
|
--keycap-max-width: 53px;
|
|
|
--keycap-small-font-size: 12px;
|
|
|
background: var(--keyboard-background);
|
|
|
padding: 20px;
|
|
|
border-top-left-radius: 8px;
|
|
|
border-top-right-radius: 8px;
|
|
|
border: 1px solid var(--keyboard-border);
|
|
|
box-shadow: 0 0 32px rgb(0 0 0 / 30%);
|
|
|
}
|
|
|
`,backdrop:"minimalist-backdrop",container:"minimalist-container",rows:[["+","-","\\times",{latex:"\\frac{#@}{#0}",class:"small"},"=","[.]","(",")",{latex:"\\sqrt{#0}",class:"small"},{latex:"#@^{#?}",class:"small"}],["1","2","3","4","5","6","7","8","9","0"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]}]},"numeric-only":{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",id:"numeric-only",rows:[["7","8","9","[separator]",{label:"[backspace]",width:2}],["4","5","6","[separator]","[separator]","[separator]"],["1","2","3","[separator]","[separator]","[separator]"],["0",{label:"[.]",variants:[]},"-","[separator]","[left]","[right]"]]}},Pf={0:["\\varnothing","\\infty"],1:["\\frac{1}{#@}","#@^{-1}","\\times 10^{#?}","\\phi","\\imaginaryI"],2:["\\frac{1}{2}","#@^2","\\sqrt2","\\exponentialE"],3:["\\frac{1}{3}","#@^3","\\sqrt3","\\pi"],4:["\\frac{1}{4}","#@^4"],5:["\\frac{1}{5}","#@^5","\\sqrt5"],6:["\\frac{1}{6}","#@^6"],7:["\\frac{1}{7}","#@^7"],8:["\\frac{1}{8}","#@^8"],9:["\\frac{1}{9}","#@^9"],".":[".",",",";","\\colon"],",":["{,}",".",";","\\colon"],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"},"\xE0","\xE1","\xE2","\xE4","\xE6"],b:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"},"\xE7"],d:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn\u2019t"},"\xE8","\xE9","\xEA","\xEB"],g:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"},"\xEC","\xED","\xEE","\xEF"],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\mathbb{N}",aside:"set of natural numbers"},"\xF1"],o:["\xF8","\u0153","\xF2","\xF3","\xF4","\xF6","\u0153"],p:[{latex:"\\mathbb{P}",aside:"set of primes"}],q:[{latex:"\\mathbb{Q}",aside:"set of rational numbers"}],r:[{latex:"\\mathbb{R}",aside:"set of real numbers"}],u:["\xF9","\xFA","\xFB","\xFC"],z:[{latex:"\\mathbb{Z}",aside:"set of integers"}],y:["\xFD","\xFF"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space<br>\u207B\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\,\\char"2039',insert:"\\,",aside:"thin space<br>\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\:\\char"2039',insert:"\\:",aside:"medium space<br>\u2074\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\;\\char"2039',insert:"\\;",aside:"thick space<br>\u2075\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\ \\char"2039',insert:"\\ ",aside:"\u2153 em"},{latex:'\\char"203A\\enspace\\char"2039',insert:"\\enspace",aside:"\xBD em"},{latex:'\\char"203A\\quad\\char"2039',insert:"\\quad",aside:"1 em"},{latex:'\\char"203A\\qquad\\char"2039',insert:"\\qquad",aside:"2 em"}]},Qd;function S0(a,y){var b,E,ee;const ie=xc.singleton;if(!ie)return;const oe=cd(a),fe=(E=(b=ie.getKeycap(oe==null?void 0:oe.id))==null?void 0:b.variants)!=null?E:"";if(typeof fe=="string"&&!A0(fe)||Array.isArray(fe)&&fe.length===0){y==null||y();return}const me={};let be="";for(const Sn of fg(fe)){const Fr=M0(Sn),xn=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);me[xn]=Fr;const[tr,Kr]=Nf(Fr);be+=`<div id=${xn} class="item ${Kr}">${tr}</div>`}const ke=document.createElement("div");ke.setAttribute("aria-hidden","true"),ke.className="MLK__variant-panel",ke.style.height="auto";const Ke=Object.keys(me).length;let rt=5;Ke===1?rt=1:Ke===2||Ke===4?rt=2:Ke===3||Ke===5||Ke===6?rt=3:Ke>=7&&Ke<14&&(rt=4),ke.style.width=`calc(var(--variant-keycap-length) * ${rt} + 12px)`,ke.innerHTML=vp.createHTML(be),Zu.open({root:(ee=ie==null?void 0:ie.container)==null?void 0:ee.querySelector(".ML__keyboard"),child:ke}),Qd=new AbortController;const{signal:xt}=Qd,Ft=a==null?void 0:a.getBoundingClientRect();if(Ft){Ft.top-ke.clientHeight<0&&(ke.style.width="auto",Ke<=6?ke.style.height="56px":Ke<=12?ke.style.height="108px":Ke<=18?ke.style.height="205px":ke.classList.add("compact"));const Sn=Math.max(0,Math.min(window.innerWidth-ke.offsetWidth,(Ft.left+Ft.right-ke.offsetWidth)/2)),Fr=Ft.top-ke.clientHeight+5;ke.style.transform=`translate(${Sn}px, ${Fr}px)`,ke.classList.add("is-visible"),requestAnimationFrame(()=>{ke.addEventListener("pointerup",xn=>{const tr=cd(xn.target);!(tr!=null&&tr.id)||!me[tr.id]||(Sh(me[tr.id]),Yd(),y==null||y(),xn.preventDefault())},{capture:!0,passive:!1,signal:xt}),ke.addEventListener("pointerenter",xn=>{const tr=cd(xn.target);!(tr!=null&&tr.id)||!me[tr.id]||tr.classList.add("is-active")},{capture:!0,signal:xt}),ke.addEventListener("pointerleave",xn=>{const tr=cd(xn.target);!(tr!=null&&tr.id)||!me[tr.id]||tr.classList.remove("is-active")},{capture:!0,signal:xt}),window.addEventListener("pointercancel",()=>{Yd(),y==null||y()},{signal:xt}),window.addEventListener("pointerup",()=>{Yd(),y==null||y()},{signal:xt})})}}function Yd(){Qd==null||Qd.abort(),Qd=null,Zu.state==="open"&&Zu.close()}function dg(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(_t))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+_t[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(Tt))y.push({class:"swatch-button",label:'<span style="background:'+Tt[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function A0(a){return Pf[a]!==void 0}function fg(a){var y;return typeof a!="string"?a:(Pf[a]||(Pf[a]=(y=dg(a))!=null?y:[]),Pf[a])}function hg(a){return typeof a=="string"?a:Object.entries(a).map(([y,b])=>`${y}:${b} !important`).join(";")}function pg(a){return Object.keys(a).map(y=>`${y} {${hg(a[y])}}`).join("")}function Jd(a){if(!a)return"";const y=new qa,b=new Zn({mode:"math",type:"root",body:cl(a,{context:y,args:ee=>ee==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),E=Qc(zd(new Nr(b.render(y),{classes:"ML__base"}),y));return Yc(E,{classes:"ML__latex"}).toMarkup()}function Xd(a){var y;if(Array.isArray(a))return a.map(E=>Xd(E)).flat();const b=typeof a=="string"?{markup:a}:a;return"rows"in b&&Array.isArray(b.rows)&&(b.rows=b.rows.map(E=>E.map(ee=>M0(ee)))),(y=b.id)!=null||(b.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[b]}function mg(){var a,y;let E=window.mathVirtualKeyboard.alphabeticLayout;if(E==="auto"){const fe=Ud();fe&&(E=fe.virtualLayout),(!E||E==="auto")&&(E=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[Ye.locale.slice(0,2)])!=null?a:"qwerty")}const ee={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},ie=(y=ee[E])!=null?y:ee.qwerty,oe=E==="azerty"?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"\xE9"},variants:"2"},{label:"3",shift:{latex:"\xF9"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"\xE8"},variants:"7"},{label:"8",shift:{latex:"\xEA"},variants:"8"},{label:"9",shift:{latex:"\xE7"},variants:"9"},{label:"0",shift:{latex:"\xE0"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const fe of ie){const me=[];for(const be of fe)/[a-z]/.test(be)?me.push({label:be,class:"hide-shift",shift:{label:be.toUpperCase()},variants:A0(be)?be:void 0}):be==="~"?E!=="dvorak"?me.push("[backspace]"):me.push({label:"[backspace]",width:1}):be==="^"?me.push("[shift]"):be===" "&&me.push("[separator-5]");oe.push(me)}return oe.push(["[-]","[+]","[=]",{label:" ",width:1.5},{label:",",shift:";",variants:".",class:"hide-shift"},"[.]","[left]","[right]",{label:"[action]",width:1.5}]),{label:"abc",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.alphabetic",layers:Xd({rows:oe})}}function k0(a){if(a==="alphabetic")return mg();if(typeof a=="string")return console.assert(C0[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),k0(C0[a]);let y;if("rows"in a&&Array.isArray(a.rows)){console.assert(!("layers"in a||"markup"in a),'MathLive 0.98.5: when providing a "rows" property, "layers" and "markup" are ignored');const ee=a,{rows:ie}=ee,oe=it(ee,["rows"]);y=ye(Ee({},oe),{layers:Xd({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ee=a,{markup:ie}=ee,oe=it(ee,["markup"]);y=ye(Ee({},oe),{layers:Xd(a.markup)})}else y=Ee({},a),"layers"in a?y.layers=Xd(a.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let b=!1,E=!1;for(const ee of y.layers)if(ee.rows)for(const ie of ee.rows.flat()){dd(ie)&&(b=!0);const oe=ie.command;typeof oe=="string"&&["undo","redo","cut","copy","paste"].includes(oe)&&(E=!0)}return(!("displayShiftedKeycaps"in a)||a.displayShiftedKeycaps===void 0)&&(y.displayShiftedKeycaps=b),(!("displayEditToolbar"in a)||a.displayEditToolbar===void 0)&&(y.displayEditToolbar=!E),y}function gg(a,y){var b,E;let ee='<div class="left">';if(a.normalizedLayouts.length>1)for(const[ie,oe]of a.normalizedLayouts.entries()){const fe=oe,me=[ie===y?"selected":"layer-switch"];fe.tooltip&&me.push("MLK__tooltip"),fe.labelClass&&me.push(...fe.labelClass.split(" ")),ee+=`<div class="${me.join(" ")}"`,fe.tooltip&&(ee+=" data-tooltip='"+((b=We(fe.tooltip))!=null?b:fe.tooltip)+"' "),ie!==y&&(ee+=`data-layer="${fe.layers[0].id}"`),ee+=`>${(E=fe.label)!=null?E:"untitled"}</div>`}return ee+="</div>",ee}function vg(a,y){let b="";if(a.editToolbar==="none")return"";const ee=[];y.selectionIsCollapsed?ee.push("undo","redo","pasteFromClipboard"):ee.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const ie={undo:`<div class='action ${y.canUndo===!1?"disabled":""}'
|
|
|
data-command='"undo"'
|
|
|
data-tooltip='${We("tooltip.undo")}'>
|
|
|
<svg><use xlink:href='#svg-undo' /></svg>
|
|
|
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
|
|
|
data-command='"redo"'
|
|
|
data-tooltip='${We("tooltip.redo")}'>
|
|
|
<svg><use xlink:href='#svg-redo' /></svg>
|
|
|
</div>`,cutToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"cutToClipboard"'
|
|
|
data-tooltip='${We("tooltip.cut to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-cut' /></svg>
|
|
|
</div>
|
|
|
`,copyToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"copyToClipboard"'
|
|
|
data-tooltip='${We("tooltip.copy to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-copy' /></svg>
|
|
|
</div>
|
|
|
`,pasteFromClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"pasteFromClipboard"'
|
|
|
data-tooltip='${We("tooltip.paste from clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-paste' /></svg>
|
|
|
</div>
|
|
|
`};return b+=ee.map(oe=>ie[oe]).join(""),b}function yg(a){for(const y of a)bg(y)}function bg(a){const y=xc.singleton;if(!y)return;const b={};if(!a.id){if(a.hasAttribute("data-label")&&(b.label=a.dataset.label),a.hasAttribute("data-latex")&&(b.latex=a.dataset.latex),a.hasAttribute("data-key")&&(b.key=a.dataset.key),a.hasAttribute("data-insert")&&(b.insert=a.dataset.insert),a.hasAttribute("data-variants")&&(b.variants=a.dataset.variants),a.hasAttribute("data-aside")&&(b.aside=a.dataset.aside),a.className&&(b.class=a.className),!b.label&&!b.latex&&!b.key&&!b.insert&&(b.latex=a.innerText,b.label=a.innerHTML),a.hasAttribute("data-command"))try{b.command=JSON.parse(a.dataset.command)}catch(E){}a.id=y.registerKeycap(b)}if(!a.innerHTML){const[E,ee]=Nf(b);a.innerHTML=window.MathfieldElement.createHTML(E)}}function xg(){eu("virtual-keyboard"),eu("core"),Ff()}function wg(){x("core"),x("virtual-keyboard")}var Eg=`<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|
|
|
|
|
<symbol id="svg-delete-backward" viewBox="0 0 576 512">
|
|
|
<path d="M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-shift" viewBox="0 0 384 512">
|
|
|
<path d="M2.438 252.3C7.391 264.2 19.06 272 32 272h80v160c0 26.51 21.49 48 48 48h64C250.5 480 272 458.5 272 432v-160H352c12.94 0 24.61-7.797 29.56-19.75c4.953-11.97 2.219-25.72-6.938-34.88l-160-176C208.4 35.13 200.2 32 192 32S175.6 35.13 169.4 41.38l-160 176C.2188 226.5-2.516 240.3 2.438 252.3zM192 86.63L313.4 224H224v208H160V224H70.63L192 86.63z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-commit" viewBox="0 0 512 512">
|
|
|
<path d="M135 432.1l-128-128C2.344 300.3 0 294.2 0 288s2.344-12.28 7.031-16.97l128-128c9.375-9.375 24.56-9.375 33.94 0s9.375 24.56 0 33.94L81.94 264H464v-208C464 42.75 474.8 32 488 32S512 42.75 512 56V288c0 13.25-10.75 24-24 24H81.94l87.03 87.03c9.375 9.375 9.375 24.56 0 33.94S144.4 442.3 135 432.1z"/>
|
|
|
</symbol>
|
|
|
|
|
|
|
|
|
<symbol id="circle-plus" viewBox="0 0 512 512"><path d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344c0 13.3 10.7 24 24 24s24-10.7 24-24V280h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V168c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H168c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"/></symbol>
|
|
|
|
|
|
<symbol id="svg-command" viewBox="0 0 640 512">
|
|
|
<path d="M34.495 36.465l211.051 211.05c4.686 4.686 4.686 12.284 0 16.971L34.495 475.535c-4.686 4.686-12.284 4.686-16.97 0l-7.071-7.07c-4.686-4.686-4.686-12.284 0-16.971L205.947 256 10.454 60.506c-4.686-4.686-4.686-12.284 0-16.971l7.071-7.07c4.686-4.687 12.284-4.687 16.97 0zM640 468v-10c0-6.627-5.373-12-12-12H300c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h328c6.627 0 12-5.373 12-12z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-undo" viewBox="0 0 512 512">
|
|
|
<path d="M20 8h10c6.627 0 12 5.373 12 12v110.625C85.196 57.047 165.239 7.715 256.793 8.001 393.18 8.428 504.213 120.009 504 256.396 503.786 393.181 392.834 504 256 504c-63.926 0-122.202-24.187-166.178-63.908-5.113-4.618-5.354-12.561-.482-17.433l7.069-7.069c4.503-4.503 11.749-4.714 16.482-.454C150.782 449.238 200.935 470 256 470c117.744 0 214-95.331 214-214 0-117.744-95.331-214-214-214-82.862 0-154.737 47.077-190.289 116H180c6.627 0 12 5.373 12 12v10c0 6.627-5.373 12-12 12H20c-6.627 0-12-5.373-12-12V20c0-6.627 5.373-12 12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-redo" viewBox="0 0 512 512">
|
|
|
<path d="M492 8h-10c-6.627 0-12 5.373-12 12v110.625C426.804 57.047 346.761 7.715 255.207 8.001 118.82 8.428 7.787 120.009 8 256.396 8.214 393.181 119.166 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-7.069-7.069c-4.503-4.503-11.749-4.714-16.482-.454C361.218 449.238 311.065 470 256 470c-117.744 0-214-95.331-214-214 0-117.744 95.331-214 214-214 82.862 0 154.737 47.077 190.289 116H332c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h160c6.627 0 12-5.373 12-12V20c0-6.627-5.373-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-left" viewBox="0 0 320 512">
|
|
|
<path d="M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-right" viewBox="0 0 320 512">
|
|
|
<path d="M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-tab" viewBox="0 0 448 512">
|
|
|
<path d="M32 217.1c0-8.8 7.2-16 16-16h144v-93.9c0-7.1 8.6-10.7 13.6-5.7l143.5 143.1c6.3 6.3 6.3 16.4 0 22.7L205.6 410.4c-5 5-13.6 1.5-13.6-5.7v-93.9H48c-8.8 0-16-7.2-16-16v-77.7m-32 0v77.7c0 26.5 21.5 48 48 48h112v61.9c0 35.5 43 53.5 68.2 28.3l143.6-143c18.8-18.8 18.8-49.2 0-68L228.2 78.9c-25.1-25.1-68.2-7.3-68.2 28.3v61.9H48c-26.5 0-48 21.6-48 48zM436 64h-8c-6.6 0-12 5.4-12 12v360c0 6.6 5.4 12 12 12h8c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-paste" viewBox="0 0 512 512"><path d="M160 32c11.6 0 21.3 8.2 23.5 19.2C185 58.6 191.6 64 199.2 64H208c8.8 0 16 7.2 16 16V96H96V80c0-8.8 7.2-16 16-16h8.8c7.6 0 14.2-5.4 15.7-12.8C138.7 40.2 148.4 32 160 32zM64 64h2.7C65 69 64 74.4 64 80V96c0 17.7 14.3 32 32 32H224c17.7 0 32-14.3 32-32V80c0-5.6-1-11-2.7-16H256c17.7 0 32 14.3 32 32h32c0-35.3-28.7-64-64-64H210.6c-9-18.9-28.3-32-50.6-32s-41.6 13.1-50.6 32H64C28.7 32 0 60.7 0 96V384c0 35.3 28.7 64 64 64H192V416H64c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM288 480c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32h96v56c0 22.1 17.9 40 40 40h56V448c0 17.7-14.3 32-32 32H288zM416 165.3L474.7 224H424c-4.4 0-8-3.6-8-8V165.3zM448 512c35.3 0 64-28.7 64-64V235.9c0-12.7-5.1-24.9-14.1-33.9l-59.9-59.9c-9-9-21.2-14.1-33.9-14.1H288c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H448z"/></symbol>
|
|
|
<symbol id="svg-cut" viewBox="0 0 512 512"><path d="M485.6 444.2L333.6 314.9C326.9 309.2 326.1 299.1 331.8 292.4C337.5 285.6 347.6 284.8 354.4 290.5L506.4 419.8C513.1 425.5 513.9 435.6 508.2 442.4C502.5 449.1 492.4 449.9 485.6 444.2zM485.7 67.76C492.5 62.07 502.5 62.94 508.2 69.69C513.9 76.45 513.1 86.55 506.3 92.24L208.5 343.1C218.3 359.7 224 379.2 224 400C224 461.9 173.9 512 112 512C50.14 512 0 461.9 0 400C0 338.1 50.14 288 112 288C141.5 288 168.4 299.4 188.4 318.1L262.2 256L188.4 193.9C168.4 212.6 141.5 224 112 224C50.14 224 0 173.9 0 112C0 50.14 50.14 0 112 0C173.9 0 224 50.14 224 112C224 132.8 218.3 152.3 208.5 168.9L287 235.1L485.7 67.76zM32 112C32 156.2 67.82 192 112 192C156.2 192 192 156.2 192 112C192 67.82 156.2 32 112 32C67.82 32 32 67.82 32 112zM112 480C156.2 480 192 444.2 192 400C192 355.8 156.2 320 112 320C67.82 320 32 355.8 32 400C32 444.2 67.82 480 112 480z"/></symbol>
|
|
|
<symbol id="svg-copy" viewBox="0 0 512 512"><path d="M272 416C263.2 416 256 423.2 256 432V448c0 17.67-14.33 32-32 32H64c-17.67 0-32-14.33-32-32V192c0-17.67 14.33-32 32-32h112C184.8 160 192 152.8 192 144C192 135.2 184.8 128 176 128H63.99c-35.35 0-64 28.65-64 64l.0098 256C0 483.3 28.65 512 64 512h160c35.35 0 64-28.65 64-64v-16C288 423.2 280.8 416 272 416zM502.6 86.63l-77.25-77.25C419.4 3.371 411.2 0 402.7 0H288C252.7 0 224 28.65 224 64v256c0 35.35 28.65 64 64 64h160c35.35 0 64-28.65 64-64V109.3C512 100.8 508.6 92.63 502.6 86.63zM416 45.25L466.7 96H416V45.25zM480 320c0 17.67-14.33 32-32 32h-160c-17.67 0-32-14.33-32-32V64c0-17.67 14.33-32 32-32h96l.0026 64c0 17.67 14.33 32 32 32H480V320z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-right" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-left" viewBox="0 0 512 512"><path d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-trash" viewBox="0 0 448 512">
|
|
|
<path d="M336 64l-33.6-44.8C293.3 7.1 279.1 0 264 0h-80c-15.1 0-29.3 7.1-38.4 19.2L112 64H24C10.7 64 0 74.7 0 88v2c0 3.3 2.7 6 6 6h26v368c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V96h26c3.3 0 6-2.7 6-6v-2c0-13.3-10.7-24-24-24h-88zM184 32h80c5 0 9.8 2.4 12.8 6.4L296 64H152l19.2-25.6c3-4 7.8-6.4 12.8-6.4zm200 432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V96h320v368zm-176-44V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm-80 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm160 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-keyboard-down" viewBox="0 0 576 512"><path d="M64 48c-8.8 0-16 7.2-16 16V240c0 8.8 7.2 16 16 16H512c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64zM0 64C0 28.7 28.7 0 64 0H512c35.3 0 64 28.7 64 64V240c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM159 359c9.4-9.4 24.6-9.4 33.9 0l95 95 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L305 505c-4.5 4.5-10.6 7-17 7s-12.5-2.5-17-7L159 393c-9.4-9.4-9.4-24.6 0-33.9zm1-167c0-8.8 7.2-16 16-16H400c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V192zM120 88h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H120c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H200c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H280c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H360c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H440c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16z"/></symbol>
|
|
|
</svg>`;function Cg(a){a.resetKeycapRegistry(),xg();const y=document.createElement("div");y.className="ML__keyboard";const b=document.createElement("div");b.className="MLK__plate",b.innerHTML=window.MathfieldElement.createHTML(Eg+a.normalizedLayouts.map((oe,fe)=>Sg(a,oe,fe)).join(""));const E=document.createElement("div");E.className="MLK__backdrop",E.appendChild(b),y.appendChild(E),y.addEventListener("pointerdown",kg,{passive:!1});const ee=y.querySelectorAll(".ML__edit-toolbar");if(ee)for(const oe of ee)oe.addEventListener("click",fe=>{var me,be;let ke=fe.target,Ke="";for(;ke&&!Ke;)Ke=(me=ke==null?void 0:ke.getAttribute("data-command"))!=null?me:"",ke=(be=ke==null?void 0:ke.parentElement)!=null?be:null;Ke&&a.executeCommand(JSON.parse(Ke))});yg(y.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const ie=y.querySelectorAll(".MLK__layer");console.assert(ie.length>0,"No virtual keyboards available");for(const oe of ie)oe.addEventListener("pointerdown",fe=>fe.preventDefault());return a.currentLayer=a.latentLayer,y}function Sg(a,y,b){const E=[];if(!("layers"in y))return"";for(const ee of y.layers)E.push(`<div tabindex="-1" class="MLK__layer" id="${ee.id}">`),(a.normalizedLayouts.length>1||y.displayEditToolbar)&&(E.push("<div class='MLK__toolbar' role='toolbar'>"),E.push(gg(a,b)),y.displayEditToolbar&&E.push('<div class="ML__edit-toolbar right"></div>'),E.push("</div>")),E.push(Ag(a,ee)),E.push("</div>");return E.join("")}function Ag(a,y){if(typeof y=="string")return y;let b="";if(typeof y.style=="string"?b+=`<style>${y.style}</style>`:typeof y.style=="object"&&(b+=`<style>${pg(y.style)}</style>`),y.backdrop&&(b+=`<div class='${y.backdrop}'>`),y.container&&(b+=`<div class='${y.container}'>`),y.rows){b+="<div class=MLK__rows>";for(const E of y.rows){b+="<div dir='ltr' class=MLK__row>";for(const ee of E)if(ee){const ie=a.registerKeycap(ee),[oe,fe]=Nf(ee);/(^|\s)separator/.test(fe)?b+=`<div class="${fe}"`:b+=`<div tabindex="-1" id="${ie}" class="${fe}"`,ee.tooltip&&(b+=` data-tooltip="${ee.tooltip}"`),b+=`>${oe}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function Nf(a,y={shifted:!1}){var b,E,ee,ie,oe,fe,me;let be="",ke=(b=a.class)!=null?b:"";if(y.shifted&&dd(a)&&(ke+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?be=Jd(a.shift):typeof a.shift=="object"&&(be=a.shift.label?a.shift.label:(E=Jd(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?E:""),typeof a.shift=="object"&&(ke=(ie=(ee=a.shift.class)!=null?ee:a.class)!=null?ie:"");else{if(be=a.label?a.label:(oe=Jd(a.latex||a.insert||"")||a.key)!=null?oe:"",a.shift){let Ke;typeof a.shift=="string"?Ke=Jd(a.shift):a.shift.label?Ke=a.shift.label:Ke=(fe=Jd(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?fe:"",be+=`<span class="MLK__shift">${Ke}</span>`}a.aside&&(be+=`<aside>${a.aside}</aside>`)}return a.layer&&!/layer-switch/.test(ke)&&(ke+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(ke)||(ke+=" MLK__keycap"),!/\bw[0-9]+\b/.test(ke)&&a.width&&(ke+=(me={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?me:""),[be,ke||"MLK__keycap"]}var Oc={"[left]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-left /></svg>",command:["performWithFeedback","moveToPreviousChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-left /></svg>",command:["performWithFeedback","extendSelectionBackward"]}},"[right]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-right /></svg>",command:["performWithFeedback","moveToNextChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-right /></svg>",command:["performWithFeedback","extendSelectionForward"]}},"[up]":{class:"action hide-shift",label:"\u2191",command:["performWithFeedback","moveUp"],shift:{label:"\u219F",command:["performWithFeedback","extendSelectionUpward"]}},"[down]":{class:"action hide-shift",label:"\u2193",command:["performWithFeedback","moveDown"],shift:{label:"\u21A1",command:["performWithFeedback","extendSelectionDownward"]}},"[return]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[action]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{label:"<svg class=svg-glyph><use xlink:href=#circle-plus /></svg>",command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[hr]":{class:"separator horizontal-rule"},"[hide-keyboard]":{class:"action",command:["hideVirtualKeyboard"],width:1.5,label:"<svg class=svg-glyph-lg><use xlink:href=#svg-keyboard-down /></svg>"},"[.]":{variants:".",command:["performWithFeedback","insertDecimalSeparator"],shift:",",class:"big-op hide-shift",label:"."},"[,]":{variants:",",command:["performWithFeedback","insertDecimalSeparator"],shift:".",class:"big-op hide-shift",label:","},"[+]":{variants:[{latex:"\\sum_{#0}^{#0}",class:"small"},"\\oplus"],latex:"+",label:"+",class:"big-op hide-shift",shift:{latex:"\\sum",insert:"\\sum",class:"small"}},"[-]":{variants:["\\pm","\\ominus"],latex:"-",label:"−",shift:"\\pm",class:"big-op hide-shift"},"[/]":{class:"big-op hide-shift",shift:{class:"",latex:"\\frac{1}{#@}"},variants:["/","\\div","\\%","\\oslash"],latex:"\\frac{#@}{#?}",label:"÷"},"[*]":{variants:[{latex:"\\prod_{#0}^{#0}",class:"small"},"\\otimes","\\cdot"],latex:"\\cdot",label:"×",shift:{latex:"\\times"},class:"big-op hide-shift"},"[=]":{variants:["\\neq","\\equiv","\\varpropto","\\thickapprox","\\lt","\\gt","\\le","\\ge"],latex:"=",label:"=",shift:{label:"\u2260",latex:"\\ne"},class:"big-op hide-shift"},"[backspace]":{class:"action bottom right hide-shift",width:1.5,command:["performWithFeedback","deleteBackward"],label:"<svg class=svg-glyph><use xlink:href=#svg-delete-backward /></svg>",shift:{class:"action warning",label:"<svg class=svg-glyph><use xlink:href=#svg-trash /></svg>",command:"deleteAll"}},"[undo]":{class:"ghost if-can-undo",command:"undo",label:"<svg class=svg-glyph><use xlink:href=#svg-undo /></svg>",tooltip:"tooltip.undo"},"[redo]":{class:"ghost if-can-redo",command:"redo",label:"<svg class=svg-glyph><use xlink:href=#svg-redo /></svg>",tooltip:"tooltip.redo"},"[(]":{variants:[{latex:"\\lbrack",key:"["},"\\langle","\\lfloor","\\lceil",{latex:"\\lbrace",key:"{"}],key:"(",label:"(",shift:{label:"[",key:"["},class:"hide-shift"},"[)]":{variants:[{latex:"\\rbrack",key:"]"},"\\rangle","\\rfloor","\\rceil",{latex:"\\rbrace",key:"]"}],key:")",label:")",shift:{label:"]",latex:"\\rbrack"},class:"hide-shift"},"[0]":{variants:"0",latex:"0",label:"0",shift:"\\infty",class:"hide-shift"},"[1]":{variants:"1",latex:"1",label:"1",shift:"#@^{-1}",class:"hide-shift"},"[2]":{variants:"2",latex:"2",label:"2",shift:"#@^2",class:"hide-shift"},"[3]":{variants:"3",latex:"3",label:"3",shift:"#@^3",class:"hide-shift"},"[4]":{variants:"4",latex:"4",label:"4",shift:"#@^4",class:"hide-shift"},"[5]":{variants:"5",latex:"5",label:"5",shift:"#@^5",class:"hide-shift"},"[6]":{variants:"6",latex:"6",label:"6",shift:"#@^6",class:"hide-shift"},"[7]":{variants:"7",latex:"7",label:"7",shift:"#@^7",class:"hide-shift"},"[8]":{variants:"8",latex:"8",label:"8",shift:"#@^8",class:"hide-shift"},"[9]":{variants:"9",latex:"9",label:"9",shift:"#@^9",class:"hide-shift"},"[separator-5]":{class:"separator",width:.5},"[separator]":{class:"separator"},"[separator-10]":{class:"separator"},"[separator-15]":{class:"separator",width:1.5},"[separator-20]":{class:"separator",width:2},"[separator-50]":{class:"separator",width:5},"[shift]":{class:"shift bottom left",width:1.5,label:"<span class=caps-lock-indicator></span><svg class=svg-glyph><use xlink:href=#svg-shift /></svg>"},"[foreground-color]":{variants:"foreground-color",command:["applyStyle",{color:"red"}],label:"<span style='border-radius: 50%;width:22px;height:22px; border: 3px solid #cc2428; box-sizing: border-box'>"},"[background-color]":{variants:"background-color",command:["applyStyle",{backgroundColor:"yellow"}],label:"<span style='border-radius: 50%;width:22px;height:22px; background:#fff590; box-sizing: border-box'></span>"}};function M0(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!Oc[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&Oc[a.label]&&(b=ye(Ee(Ee({},Oc[a.label]),a),{label:Oc[a.label].label})),"key"in a&&a.key&&Oc[a.key]&&(b=ye(Ee(Ee({},Oc[a.key]),a),{key:Oc[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=Ee(Ee({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=Ee(Ee({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=Ee(Ee({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=Ee(Ee({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var qd;function kg(a){var y;if(a.button!==0)return;const b=xc.singleton;if(!b)return;let E=a.target;for(;E&&!E.getAttribute("data-layer");)E=E.parentElement;if(E){b.currentLayer=(y=E.getAttribute("data-layer"))!=null?y:"",a.preventDefault();return}const ee=cd(a.target);if(!(ee!=null&&ee.id))return;const ie=b.getKeycap(ee.id);if(!ie)return;console.assert(a.type==="pointerdown");const oe=new AbortController,fe=oe.signal;ee.classList.add("is-pressed"),ee.addEventListener("pointerenter",If(oe),{capture:!0,signal:fe}),ee.addEventListener("pointerleave",If(oe),{capture:!0,signal:fe}),ee.addEventListener("pointercancel",If(oe),{signal:fe}),ee.addEventListener("pointerup",If(oe),{signal:fe}),dd(ie)&&(ee.classList.add("is-active"),b.shiftPressCount++),ie.variants&&(qd&&clearTimeout(qd),qd=setTimeout(()=>{ee.classList.contains("is-pressed")&&(ee.classList.remove("is-pressed"),ee.classList.add("is-active"),a.target&&"releasePointerCapture"in a.target&&a.target.releasePointerCapture(a.pointerId),S0(ee,()=>{oe.abort(),ee==null||ee.classList.remove("is-active")}))},300)),a.preventDefault()}function If(a){return y=>{const b=cd(y.target);if(!(b!=null&&b.id))return;const E=xc.singleton;if(!E)return;const ee=E.getKeycap(b.id);if(ee){if(y.type==="pointerenter"&&y.target===b&&y.isPrimary&&b.classList.add("is-pressed"),y.type==="pointercancel"){b.classList.remove("is-pressed"),dd(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted)),a.abort();return}if(y.type==="pointerleave"&&y.target===b){b.classList.remove("is-pressed"),dd(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted));return}if(y.type==="pointerup"){qd&&clearTimeout(qd),dd(ee)?b.classList.toggle("is-active",E.isShifted):b.classList.contains("is-pressed")&&(b.classList.remove("is-pressed"),E.isShifted&&ee.shift?typeof ee.shift=="string"?E.executeCommand(["insert",ee.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):Sh(ee.shift):Sh(ee),E.shiftPressCount===1&&!y.shiftKey&&(E.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function Sh(a){var y;let b=a.command;!b&&a.insert&&(b=["insert",a.insert,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),!b&&a.key&&(b=["typedText",a.key,{focus:!0,feedback:!0,simulateKeystroke:!0}]),!b&&a.latex&&(b=["insert",a.latex,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),b||(b=["typedText",a.label,{focus:!0,feedback:!0,simulateKeystroke:!0}]),(y=xc.singleton)==null||y.executeCommand(b)}function Mg(a){if(a.nodeType!==1)return!1;const y=a.classList;return y.contains("MLK__keycap")||y.contains("shift")||y.contains("action")||y.contains("fnbutton")||y.contains("bigfnbutton")}function cd(a){if(!a)return;let y=a;for(;y&&!Mg(y);)y=y.parentElement;return y!=null?y:void 0}function dd(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var xc=class tm{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var y,b,E;this.targetOrigin=window.origin,this.originValidator="none",this._alphabeticLayout="auto",this._layouts=Object.freeze(["default"]),this._editToolbar="default",this._container=(b=(y=window.document)==null?void 0:y.body)!=null?b:null,this._visible=!1,this._rebuilding=!1,this.observer=new ResizeObserver(ee=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(E=window.top)==null||E.addEventListener("message",this)}catch(ee){window.addEventListener("message",this)}document.body.addEventListener("focusin",ee=>{const ie=ee.target;ie!=null&&ie.isConnected&&setTimeout(()=>{const oe=B0();oe&&!oe.readOnly&&oe.mathVirtualKeyboardPolicy==="auto"&&Xe()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ee=>{ee.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{B0()||this.hide()},300)})}get currentLayer(){var y,b,E;return(E=(b=(y=this._element)==null?void 0:y.querySelector(".MLK__layer.is-visible"))==null?void 0:b.id)!=null?E:""}set currentLayer(y){var b;if(!this._element){this.latentLayer=y;return}let E=y?this._element.querySelector(`#${y}.MLK__layer`):null;E||(E=this._element.querySelector(".MLK__layer")),E&&((b=this._element.querySelector(".MLK__layer.is-visible"))==null||b.classList.remove("is-visible"),E.classList.add("is-visible")),this.render()}get shiftPressCount(){return this._shiftPressCount}set shiftPressCount(y){var b;this._shiftPressCount=y>2||y<0?0:y,(b=this._element)==null||b.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.render()}get isShifted(){return this._shiftPressCount>0}resetKeycapRegistry(){this.keycapRegistry={}}registerKeycap(y){const b="ML__k"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);return this.keycapRegistry[b]=y,b}getKeycap(y){return y?this.keycapRegistry[y]:void 0}getLayer(y){const b=this.normalizedLayouts;for(const E of b)for(const ee of E.layers)if(ee.id===y)return ee}get alphabeticLayout(){return this._alphabeticLayout}set alphabeticLayout(y){this._alphabeticLayout=y,this.rebuild()}get actionKeycap(){return this._actionKeycap}set actionKeycap(y){this._actionKeycap=typeof y=="string"?{label:y}:y}get shiftKeycap(){return this._shiftKeycap}set shiftKeycap(y){this._shiftKeycap=typeof y=="string"?{label:y}:y}get backspaceKeycap(){return this._backspaceKeycap}set backspaceKeycap(y){this._backspaceKeycap=typeof y=="string"?{label:y}:y}get tabKeycap(){return this._tabKeycap}set tabKeycap(y){this._tabKeycap=typeof y=="string"?{label:y}:y}get layouts(){return this._layouts}set layouts(y){this.updateNormalizedLayouts(y),this.rebuild()}updateNormalizedLayouts(y){const b=Array.isArray(y)?[...y]:[y],E=b.findIndex(ee=>ee==="default");E>=0&&b.splice(E,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(b),this._normalizedLayouts=b.map(ee=>k0(ee))}get normalizedLayouts(){return this._normalizedLayouts||this.updateNormalizedLayouts(this._layouts),this._normalizedLayouts}get editToolbar(){return this._editToolbar}set editToolbar(y){this._editToolbar=y,this.rebuild()}get container(){return this._container}set container(y){this._container=y,this.rebuild()}static get singleton(){if(this._singleton===void 0)try{this._singleton=new tm}catch(y){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(y,b,E){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,E){this.listeners[y]&&this.listeners[y].delete(b)}get element(){return this._element}set element(y){var b;this._element!==y&&((b=this._element)==null||b.remove(),this._element=y)}get visible(){return this._visible}set visible(y){y?this.show():this.hide()}get boundingRect(){var y;if(!this._visible)return new DOMRect;const b=(y=this._element)==null?void 0:y.getElementsByClassName("MLK__plate")[0];return b?b.getBoundingClientRect():new DOMRect}adjustBoundingRect(){var y,b;const E=this.boundingRect.height;if(this.container===document.body){(y=this._element)==null||y.style.setProperty("--_keyboard-height",`calc(${E}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const ee=E-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${ee}px)`:`${ee}px`}else(b=this._element)==null||b.style.setProperty("--_keyboard-height",`${E}px`)}rebuild(){if(this._rebuilding||!this._element)return;this._rebuilding=!0;const y=this.currentLayer;requestAnimationFrame(()=>{this._rebuilding=!1,this._element&&(this._element.remove(),this._element=void 0),this.visible&&(this.buildAndAttachElement(),this.currentLayer=y,this.render(),this.adjustBoundingRect(),this._element.classList.add("is-visible"))})}render(){if(!this._element)return;const y=this.getLayer(this.currentLayer);this._element.classList.toggle("backdrop-is-transparent",!!(y&&(y.backdrop||y.container)));const b=this._element.querySelectorAll(".MLK__layer.is-visible .MLK__keycap, .MLK__layer.is-visible .action, .fnbutton, .MLK__layer.is-visible .bigfnbutton, .MLK__layer.is-visible .shift");if(b)for(const E of b){const ee=this.getKeycap(E.id);if(ee){const[ie,oe]=Nf(ee,{shifted:this.isShifted});E.innerHTML=window.MathfieldElement.createHTML(ie),E.className=oe}}}show(y){var b;if(this._visible)return;const E=this.container;if(E&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const ee=this._element.getElementsByClassName("MLK__plate")[0];if(ee&&this.observer.observe(ee),E===window.document.body){const ie=E.style.paddingBottom;this.originalContainerBottomPadding=ie;const oe=ee.offsetHeight-1;E.style.paddingBottom=ie?`calc(${ie} + ${oe}px)`:`${oe}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),(b=this._element)==null||b.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.currentLayer=this.latentLayer}this._visible=!0,y!=null&&y.animate?requestAnimationFrame(()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",()=>{var ee;return(ee=this._element)==null?void 0:ee.classList.remove("animate")},{once:!0}),this._element.classList.add("is-visible"),this.stateChanged())}):(this._element.classList.add("is-visible"),this.stateChanged())}}hide(y){var b;const E=this.container;if(E&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const ee=this._element.getElementsByClassName("MLK__plate")[0];ee&&this.observer.unobserve(ee),window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("keydown",this,{capture:!0}),window.removeEventListener("keyup",this,{capture:!0}),window.removeEventListener("contextmenu",this,{capture:!0}),Yd(),wg(),(b=this._element)==null||b.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(E.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var y,b;return(b=(y=this.element)==null?void 0:y.offsetHeight)!=null?b:0}buildAndAttachElement(){var y;console.assert(!this.element),this.element=Cg(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",b=>{b.shiftKey||((b.ctrlKey||b.button===2)&&S0(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(Ch(y)){if(!Od(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");y.data.action==="disconnect"?this.connectedMathfieldWindow=void 0:y.data.action!=="update-setting"&&y.data.action!=="proxy-created"&&y.data.action!=="execute-command"&&(console.assert(y.source!==void 0),this.connectedMathfieldWindow=y.source),this.handleMessage(y.data,y.source)}if(this._element)switch(y.type){case"mouseup":case"blur":document.body.style.userSelect="",this.shiftPressCount=0;break;case"contextmenu":y.button!==2&&y.preventDefault();break;case"keydown":{y.key==="Shift"&&!y.repeat&&(this.shiftPressCount=1);break}case"keyup":{(y.key==="Shift"||!y.getModifierState("Shift")&&this.shiftPressCount!==2)&&(this.shiftPressCount=0);break}}}handleMessage(y,b){const{action:E}=y;if(E==="execute-command"){const{command:ee}=y,ie=ud(ee);if(window.top!==void 0&&ie!=="virtual-keyboard")return;this.executeCommand(ee);return}if((E==="connect"||E==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b),E!=="disconnect"&&window===window.top){if(E==="show"){typeof y.animate!="undefined"?this.show({animate:y.animate}):this.show();return}if(E==="hide"){typeof y.animate!="undefined"?this.hide({animate:y.animate}):this.hide();return}if(E==="update-setting"){y.alphabeticLayout&&(this.alphabeticLayout=y.alphabeticLayout),y.layouts&&(this.layouts=y.layouts),y.editToolbar&&(this.editToolbar=y.editToolbar);return}if(E==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b);return}}}sendMessage(y,b,E){if(E||(E=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||E===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:Ee({type:Tf,action:y},b)}));return}if(E)E.postMessage(Ee({type:Tf,action:y},b),{targetOrigin:this.targetOrigin});else if(b.command&&this.dispatchEvent(new CustomEvent("math-virtual-keyboard-command",{detail:b.command})),y==="execute-command"&&Array.isArray(b.command)&&b.command[0]==="insert"){const ee=b.command[1].split("");for(const ie of ee)this.dispatchEvent(new KeyboardEvent("keydown",{key:ie,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:ie,bubbles:!0}))}}stateWillChange(y){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:y},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(y){const b=this._element;if(!b)return;b.classList.toggle("is-math-mode",y.mode==="math"),b.classList.toggle("is-text-mode",y.mode==="text"),b.classList.toggle("can-undo",y.canUndo),b.classList.toggle("can-redo",y.canRedo),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-paste",!0);const E=b.querySelectorAll(".ML__edit-toolbar");if(E)for(const ee of E)ee.innerHTML=vg(this,y)}update(y){this._style=y.style,this.updateToolbar(y)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(y){let b,E=[],ee=ud(y);return he(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ee=ud(y)),E=y.slice(1)):b=y,b=b.replace(/-\w/g,ie=>ie[1].toUpperCase()),ee==="virtual-keyboard"?Vu[b].fn(void 0,...E):(this.sendMessage("execute-command",{command:y}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function B0(){var a,y;let b=Af(),E=null;for(;b;){if("host"in b&&((y=(a=b.host)==null?void 0:a.tagName)==null?void 0:y.toLowerCase())==="math-field"){E=b.host;break}b=b.parentNode}return E}if(kt()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=xc.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>cg.singleton,configurable:!0});function Of(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const E=a.scriptDepth;if(he(E))y.scriptDepth=[E[0],E[1]];else if(typeof E=="number")y.scriptDepth=[E,E];else if(typeof E=="string"){const[ie,oe]=E.split(",").map(fe=>parseInt(fe.trim()));y.scriptDepth=[ie,oe]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let ee=a.mathVirtualKeyboardPolicy.toLowerCase();if(ee==="sandboxed"){if(window!==window.top){const ie=xc.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>ie})}ee="manual"}y.mathVirtualKeyboardPolicy=ee;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?Ye.locale.startsWith("fr")?y.letterShapeStyle="french":y.letterShapeStyle="tex":y.letterShapeStyle=a.letterShapeStyle;break;case"defaultMode":["text","math","inline-math"].includes(a.defaultMode)?y.defaultMode=a.defaultMode:(console.error('MathLive 0.98.5: valid values for defaultMode are "text", "math" or "inline-math"'),y.defaultMode="math");break;case"macros":y.macros=xr(a.macros);break;default:he(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=Ee({},a[b]):y[b]=a[b]}return y}function Rc(a,y){let b;typeof y=="string"?b=[y]:y===void 0?b=Object.keys(a):b=y;const E={};for(const ee of b)a[ee]===null?E[ee]=null:he(a[ee])?E[ee]=[...a[ee]]:typeof a[ee]=="object"&&!(a[ee]instanceof Element)&&ee!=="computeEngine"?E[ee]=Ee({},a[ee]):E[ee]=a[ee];return typeof y=="string"?E[y]:E}function Rf(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:ct,backgroundColorMap:He,letterShapeStyle:Ye.locale.startsWith("fr")?"french":"tex",minFontScale:0,smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,isImplicitFunction:a=>["\\sin","\\cos","\\tan","\\arcsin","\\arccos","\\arctan","\\arcsec","\\arccsc","\\arsinh","\\arcosh","\\artanh","\\arcsech","\\arccsch","\\arg","\\ch","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\sec","\\sinh","\\sh","\\tanh","\\tg","\\th","\\lg","\\lb","\\log","\\ln"].includes(a),mathModeSpace:"",placeholderSymbol:"\u25A2",contentPlaceholder:"",popoverPolicy:"auto",environmentPopoverPolicy:"off",keybindings:lh,inlineShortcuts:pf,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:sh,value:""}}function D0(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function wc(a,y){!a||!y||(he(a)?a.forEach(b=>wc(b,y)):typeof a=="object"&&!a.style.color&&!a.style.backgroundColor&&!a.style.fontFamily&&!a.style.fontShape&&!a.style.fontSeries&&!a.style.fontSize&&!a.style.variant&&!a.style.variantStyle&&(a.applyStyle(y),wc(a.body,y),wc(a.above,y),wc(a.below,y),wc(a.subscript,y),wc(a.superscript,y)))}function Ah(a,y,b,E){function ee(oe,fe){for(const me of ie)if(me.style[oe]!==fe)return!1;return!0}if(y=a.normalizeRange(y),y[0]===y[1])return!1;const ie=a.getAtoms(y,{includeChildren:!0});E.operation==="toggle"&&(b.color&&ee("color",b.color)&&(b.color="none",delete b.verbatimColor),b.backgroundColor&&ee("backgroundColor",b.backgroundColor)&&(b.backgroundColor="none",delete b.verbatimBackgroundColor),b.fontFamily&&ee("fontFamily",b.fontFamily)&&(b.fontFamily="none"),b.fontSeries&&ee("fontSeries",b.fontSeries)&&(b.fontSeries="auto"),b.fontShape&&ee("fontShape",b.fontShape)&&(b.fontShape="auto"),b.fontSize&&ee("fontSize",b.fontSize)&&(b.fontSize=Di),b.variant&&ee("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ee("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const oe of ie)oe.applyStyle(b);return!0}function Bg(a,y){const b=a.at(a.position);if(b.type==="composition")b.value=y;else{const{caret:E}=b;b.caret=void 0;const ee=new ic(y,{mode:b.mode});ee.caret=E,b.parent.addChildAfter(ee,b),a.position+=1}}function Dg(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}sr(["math","displaymath"],Cu),sr("center",Cu),Gt("displaylines","",{parse:a=>{const y=[];let b=[];a.beginContext({tabular:!0});do{if(a.end()||a.match("<}>"))break;a.matchColumnSeparator()||a.matchRowSeparator()?(y.push([b]),b=[]):b.push(...a.scan(E=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(E)))}while(!0);return a.endContext(),y.push([b]),y},createAtom:a=>new Pa("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),mr("array","{columns:colspec}",(a,y,b,E)=>new Pa(a,kh(y),b,{columns:E[0],mathstyleName:"textstyle"})),mr(["equation","equation*","subequations"],"",(a,y,b)=>new Pa(a,kh(y),b,{columns:[{align:"c"}]})),mr(["multline","multline*"],"",Cu),mr(["align","align*","aligned","eqnarray"],"",Cu),mr("split","",Cu),mr(["gather","gathered"],"",Cu),mr(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",Cu),mr(["smallmatrix","smallmatrix*"],"[columns:colspec]",Cu),mr(["cases","dcases","rcases"],"",Cu);function Fg(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function kh(a,y=1){return Fg(a)?Array(y).fill([[new Zn({type:"first"}),new sa]]):a.map(b=>b.length===0?[[new Zn({type:"first"})]]:b.map(E=>E.length===0?[new Zn({type:"first"})]:(E[0].type!=="first"&&E.unshift(new Zn({type:"first"})),E)))}function Cu(a,y=[[[]]],b=[],E=[]){switch(y=kh(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new Pa(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new Pa(a,y,b,{mathstyleName:"textstyle"});case"center":return new Pa(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new Pa(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new Pa(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new Pa(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new Pa(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:_c(E[0])});case"bmatrix":case"bmatrix*":return new Pa(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:_c(E[0])});case"Bmatrix":case"Bmatrix*":return new Pa(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:_c(E[0])});case"vmatrix":case"vmatrix*":return new Pa(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:_c(E[0])});case"Vmatrix":case"Vmatrix*":return new Pa(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:_c(E[0])});case"matrix":case"matrix*":return new Pa(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:_c(E==null?void 0:E[0])});case"smallmatrix":case"smallmatrix*":return new Pa(a,y,b,{mathstyleName:"scriptstyle",columns:_c(E==null?void 0:E[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new Pa(a,y,b,{mathstyleName:a==="dcases"?"displaystyle":"textstyle",arraystretch:1.2,leftDelim:"\\lbrace",rightDelim:".",columns:[{align:"l"},{gap:1},{align:"l"}]});case"rcases":return new Pa(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new Pa(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ee=0;for(const fe of y)ee=Math.max(ee,fe.length);const ie=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let oe=2;for(;oe<ee;)ie.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),oe+=2;return ie.push({gap:0}),new Pa(a,y,b,{arraycolsep:0,columns:ie,minColumns:2})}}return new Pa(a,y,b,{mathstyleName:"textstyle"})}function _c(a){return a!=null?a:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}]}function Lg(a,y){let b=a.at(a.position);for(;b&&!(b.parent instanceof Pa);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof Pa)){const E=a.at(a.position);if(b=E,!b.parent.parent){let ee=a.extractAtoms([a.position,a.lastOffset]),ie=a.extractAtoms([0,a.position]);ie.length===0&&(ie=Hf()),ee.length===0&&(ee=Hf());let oe;return y.endsWith("column")?(oe=Cu("split",[[ie,ee]]),a.root=oe,Kc(oe,0,0)?Hc(a,oe,0,0):Kc(oe,0,1)?Hc(a,oe,0,1):a.position=a.offsetOf(E)):(oe=Cu("lines",[[ie],[ee]]),a.root=oe,Kc(oe,0,0)?Hc(a,oe,0,0):Kc(oe,1,0)?Hc(a,oe,1,0):a.position=a.offsetOf(E)),[void 0,[0,0]]}if(b.parent instanceof bo){const ee=b.parent;let ie=a.extractAtoms([a.position,a.offsetOf(ee.lastChild)]),oe=a.extractAtoms([a.offsetOf(ee.firstChild),a.position]);oe.length===0&&(oe=Hf()),ie.length===0&&(ie=Hf());let fe="pmatrix";const me=ee.leftDelim,be=ee.rightDelim;me==="("&&(be===")"||be==="?")?fe="pmatrix":(me==="["||me==="\\lbrack")&&(be==="]"||be==="\\rbrack"||be==="?")?fe="bmatrix":me==="\\vert"&&be==="\\vert"?fe="vmatrix":me==="\\Vert"&&be==="\\Vert"?fe="Vmatrix":(me==="{"||me==="\\lbrace")&&(be==="."||be==="?")&&(fe="cases");const ke=Cu(fe,y.endsWith("column")?[[oe,ie]]:[[oe],[ie]]);return ee.parent.addChildBefore(ke,ee),ee.parent.removeChild(ee),Kc(ke,0,0)?Hc(a,ke,0,0):y.endsWith("column")?Kc(ke,0,1)?Hc(a,ke,0,1):a.position=a.offsetOf(b):Kc(ke,1,0)?Hc(a,ke,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof Pa?[b.parent,b.parentBranch]:[void 0,[0,0]]}function Kc(a,y,b){const E=a.getCell(y,b);return!E||E.length!==2?!1:E[1].type==="placeholder"}function Tg(a,y,b,E){const ee=y.getCell(b,E);return ee?[a.offsetOf(ee[0]),a.offsetOf(ee[ee.length-1])]:-1}function Hc(a,y,b,E){const ee=Tg(a,y,b,E);typeof ee!="number"&&a.setSelection(ee)}function _f(a,y,b,E,ee){const ie=y.getCell(b,E);ie&&a.setPositionHandlingPlaceholder(a.offsetOf(ie[ee==="start"?0:ie.length-1]))}function Kf(a,y){const[b,[E,ee]]=Lg(a,y);if(b)switch(y){case"after row":b.addRowAfter(E),_f(a,b,E+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ee),_f(a,b,E,ee+1,"end");break;case"before row":b.addRowBefore(E),_f(a,b,E,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ee),_f(a,b,E,ee,"start");break}}function F0(a){return a.contentWillChange({inputType:"insertText"})?(Kf(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Pg(a){return a.contentWillChange({inputType:"insertText"})?(Kf(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function L0(a){return a.contentWillChange({inputType:"insertText"})?(Kf(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Ng(a){return a.contentWillChange({inputType:"insertText"})?(Kf(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function T0(a,y){if(!a.contentWillChange({}))return!1;a.mathfield.snapshot();let b=".",E=".";switch(y){case"pmatrix":case"pmatrix*":b="(",E=")";break;case"bmatrix":case"bmatrix*":b="[",E="]";break;case"Bmatrix":case"Bmatrix*":b="\\lbrace",E="\\rbrace";break;case"vmatrix":case"vmatrix*":b="\\vert",E="\\vert";break;case"Vmatrix":case"Vmatrix*":b="\\Vert",E="\\Vert";break;case"matrix":case"matrix*":b=".",E=".";break;case"cases":case"dcases":b="\\lbrace";break;case"rcases":E="\\rbrace";break}const ee=a.at(a.position),ie=ee.type==="array"?ee:a.parentEnvironment;return ie.environmentName=y,ie.leftDelim=b,ie.rightDelim=E,a.contentDidChange({}),!0}function P0(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof Pa);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof Pa){const E=b.parent,ee=b.parentBranch;let ie;switch(y){case"row":if(E.rowCount>1){E.removeRow(ee[0]);const oe=E.getCell(Math.max(0,ee[0]-1),ee[1]);ie=a.offsetOf(oe[oe.length-1])}break;case"column":if(E.colCount>E.minColumns){E.removeColumn(ee[1]);const oe=E.getCell(ee[0],Math.max(0,ee[1]-1));ie=a.offsetOf(oe[oe.length-1])}break}ie&&a.setPositionHandlingPlaceholder(ie)}}function Ig(a){return a.contentWillChange({inputType:"deleteContent"})?(P0(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function Og(a){return a.contentWillChange({inputType:"deleteContent"})?(P0(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}tu({addRowAfter:F0,addColumnAfter:L0,addRowBefore:Pg,addColumnBefore:Ng,removeRow:Ig,removeColumn:Og,setEnvironment:T0},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Hf(){return[new sa]}var N0=class nm{constructor(y){this.recording=!1,this.model=y,this.reset()}reset(){this.stack=[],this.index=-1,this.lastOp=""}startRecording(){this.recording=!0}stopRecording(){this.recording=!1}canUndo(){return this.index-1>=0}canRedo(){return this.stack.length-1>this.index}stopCoalescing(y){y&&this.index>=0&&(this.stack[this.index].selection=y),this.lastOp=""}undo(){return this.canUndo()?(this.model.setState(this.stack[this.index-1],{silenceNotifications:!1,type:"undo"}),this.index-=1,this.lastOp="",!0):!1}redo(){return this.canRedo()?(this.index+=1,this.model.setState(this.stack[this.index],{silenceNotifications:!1,type:"redo"}),this.lastOp="",!0):!1}pop(){this.canUndo()&&(this.stack.splice(this.index,this.stack.length-this.index),this.index-=1)}snapshot(y){return this.recording?(y&&y===this.lastOp&&this.pop(),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push(this.model.getState()),this.index+=1,this.stack.length>nm.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=y!=null?y:"",!0):!1}};N0.maximumDepth=1e3;var Rg=N0;function Mh(a,y,b){if(a.at(y).mode!=="text")return y;const E=b==="backward"?-1:1;let ee;if(pe.test(a.at(y).value)){let ie=y,oe;do oe=a.at(ie).mode==="text"&&pe.test(a.at(ie).value),ie+=E;while(a.at(ie)&&oe);ee=a.at(ie)?ie-2*E:ie-E}else if(/\s/.test(a.at(y).value)){let ie=y;for(;a.at(ie)&&a.at(ie).mode==="text"&&/\s/.test(a.at(ie).value);)ie+=E;if(!a.at(ie))ee=ie-E;else{let oe=!0;do oe=a.at(ie).mode==="text"&&!/\s/.test(a.at(ie).value),ie+=E;while(a.at(ie)&&oe);ee=a.at(ie)?ie-2*E:ie-E}}else{let ie=y;for(;a.at(ie)&&a.at(ie).mode==="text"&&!/\s/.test(a.at(ie).value);)ie+=E;ee=a.at(ie)?ie:ie-E;let oe=!0;for(;a.at(ie)&&oe;)oe=a.at(ie).mode==="text"&&/\s/.test(a.at(ie).value),oe&&(ee=ie),ie+=E;ee=a.at(ie)?ie-2*E:ie-E}return ee-(E>0?0:1)}function fd(a,y,b){var E,ee,ie,oe,fe,me,be;const ke=a.position;(E=b==null?void 0:b.extend)!=null&&E||a.collapseSelection(y);let Ke=a.at(a.position);if(y==="forward"&&(Ke.type==="subsup"?(Ke=Ke.rightSibling,Ke||(Ke=a.at(a.position+1))):Ke=a.at(a.position+1)),!Ke)return a.announce("plonk"),!1;let rt=a.offsetOf(Ke);if(Ke instanceof Bu)rt=Mh(a,rt,y);else if(Ke instanceof xl)if(Ke.isSuggestion)for(console.assert(y==="forward");Ke&&Ke instanceof xl;)Ke.isSuggestion=!1,rt=a.offsetOf(Ke),Ke=Ke.rightSibling;else if(y==="forward"){if(Ke=Ke.rightSibling,!Ke||!(Ke instanceof xl))return a.announce("plonk"),!1;for(;Ke&&Ke instanceof xl&&/[a-zA-Z\*]/.test(Ke.value);)rt=a.offsetOf(Ke),Ke=Ke.rightSibling}else{if(Ke=Ke.leftSibling,!Ke||!(Ke instanceof xl))return a.announce("plonk"),!1;for(;Ke&&Ke instanceof xl&&/[a-zA-Z\*]/.test(Ke.value);)rt=a.offsetOf(Ke),Ke=Ke.leftSibling}else if(y==="forward"&&Ke.type==="mopen"){let xt=0;do Ke.type==="mopen"?xt+=1:Ke.type==="mclose"&&(xt-=1),Ke=Ke.rightSibling;while(!Ke.isLastSibling&&xt!==0);rt=a.offsetOf(Ke.leftSibling)}else if(y==="backward"&&Ke.type==="mclose"){let xt=0;do Ke.type==="mopen"?xt+=1:Ke.type==="mclose"&&(xt-=1),Ke=Ke.leftSibling;while(!Ke.isFirstSibling&&xt!==0);rt=a.offsetOf(Ke)}else if(y==="backward")if(Ke.type==="first")for(;rt>0&&Ke.type==="first";)rt-=1,Ke=a.at(rt);else{const xt=Ke.type;Ke.type==="subsup"&&(rt=a.offsetOf(a.at(rt).leftSibling)),rt-=1;let Ft=(ee=a.at(rt))==null?void 0:ee.type;for(;rt>=0&&Ft===xt;)((ie=a.at(rt))==null?void 0:ie.type)==="subsup"?rt=a.offsetOf(a.at(rt).leftSibling):rt-=1,Ft=a.at(rt).type}else{const{type:xt}=Ke;let Ft=(oe=a.at(rt))==null?void 0:oe.type;const{lastOffset:Sn}=a;for(;rt<=Sn&&(Ft===xt||Ft==="subsup");){for(;((fe=a.at(rt).rightSibling)==null?void 0:fe.type)==="subsup";)rt=a.offsetOf(a.at(rt).rightSibling);rt+=1,Ft=(me=a.at(rt))==null?void 0:me.type}rt-=1}if((be=b==null?void 0:b.extend)!=null&&be){if(!a.setSelection(a.anchor,rt))return a.announce("plonk"),!1}else{if(rt===a.position)return a.announce("plonk"),!1;a.position=rt}return a.announce("move",ke),a.mathfield.stopCoalescingUndo(),!0}function Uu(a,y,b){var E,ee;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[fe,me]=g0(a);fe!==void 0&&me!==void 0&&a.deleteAtoms([fe,me])}if(y==="upward")return Kg(a,b);if(y==="downward")return Hg(a,b);if(b.extend){let fe=zf(a,a.position,y);fe<0&&(fe=0),fe>a.lastOffset&&(fe=a.lastOffset);const me=a.setSelection(a.anchor,fe);return a.mathfield.stopCoalescingUndo(),me}if(a.selectionIsPlaceholder){a.collapseSelection(y);const fe=Uu(a,y);return a.mathfield.stopCoalescingUndo(),fe}let ie=a.position;const oe=ie;if(a.collapseSelection(y)?(ie=a.position,I0(a,ie)||(ie=zf(a,ie,y))):ie=zf(a,ie,y),ie<0||ie>a.lastOffset){let fe=!0;return a.silenceNotifications||(fe=(ee=(E=a.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))!=null?ee:!0),fe&&a.announce("plonk"),fe}return a.setPositionHandlingPlaceholder(ie),a.mathfield.stopCoalescingUndo(),a.announce("move",oe),!0}function zf(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||I0(a,y)?y:zf(a,y,b)}function I0(a,y){var b;const E=a.at(y);let ee=E.parent;for(;ee&&!ee.inCaptureSelection;)ee=ee.parent;return!(ee!=null&&ee.inCaptureSelection||(b=E.parent)!=null&&b.skipBoundary&&(!E.isFirstSibling&&E.isLastSibling||E.type==="first")||a.mathfield.hasEditablePrompts&&!E.parentPrompt)}function _g(a,y,b){let E=1/0,ee=0;for(;ee<y.length;ee++){const ie=td(a.getHTMLElement(y[ee])).right,oe=Math.abs(b-ie);if(oe<=E)E=oe;else break}return y[ee-1]}function Wf(a,y,b,E,ee){const ie=a.mathfield.hasEditablePrompts,oe=ie?b.filter(be=>be.type==="prompt"&&!be.captureSelection):b,fe=td(a.mathfield.getHTMLElement(y)).right,me=a.offsetOf(_g(a.mathfield,oe,fe))-(ie?1:0);if(E){const[be,ke]=a.selection.ranges[0];let Ke;me<(ee==="up"?be:ke)?Ke={ranges:[[me,ke]],direction:"backward"}:Ke={ranges:[[be,me]],direction:"forward"},a.setSelection(Ke)}else a.setPositionHandlingPlaceholder(me);a.announce(`move ${ee}`)}function Kg(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("backward");const ie=()=>{var me,be;let ke=!0;return a.silenceNotifications||(ke=(be=(me=a.mathfield.host)==null?void 0:me.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?be:!0),a.announce(ke?"plonk":"line"),ke},oe=a.at(a.position);let fe=oe;for(;fe&&fe.parentBranch!=="below"&&!(Array.isArray(fe.parentBranch)&&fe.parent instanceof Pa);)fe=fe.parent;if(Array.isArray(fe==null?void 0:fe.parentBranch)&&fe.parent instanceof Pa){const me=fe.parent;if(fe.parentBranch[0]<1)return ie();const be=fe.parentBranch[0]-1,ke=me.array[be][fe.parentBranch[1]];if(!ke.some(rt=>rt.type==="prompt"&&!rt.captureSelection)&&a.mathfield.hasEditablePrompts)return ie();Wf(a,oe,ke,ee,"up")}else if(fe){const me=(E=fe.parent.branch("above"))!=null?E:fe.parent.createBranch("above");if(!me.some(ke=>ke.type==="prompt"&&ke.placeholderId)&&a.mathfield.hasEditablePrompts)return ie();Wf(a,oe,me,ee,"up")}else return ie();return a.mathfield.stopCoalescingUndo(),!0}function Hg(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("forward");const ie=()=>{var me,be;let ke=!0;return a.silenceNotifications||(ke=(be=(me=a.mathfield.host)==null?void 0:me.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?be:!0),a.announce(ke?"plonk":"line"),ke},oe=a.at(a.position);let fe=oe;for(;fe&&fe.parentBranch!=="above"&&!(Array.isArray(fe.parentBranch)&&fe.parent instanceof Pa);)fe=fe.parent;if(Array.isArray(fe==null?void 0:fe.parentBranch)&&fe.parent instanceof Pa){const me=fe.parent;if(fe.parentBranch[0]+1>me.array.length-1)return ie();const be=fe.parentBranch[0]+1,ke=me.array[be][fe.parentBranch[1]];if(!ke.some(rt=>rt.type==="prompt"&&!rt.captureSelection)&&a.mathfield.hasEditablePrompts)return ie();Wf(a,oe,ke,ee,"down")}else if(fe){const me=(E=fe.parent.branch("below"))!=null?E:fe.parent.createBranch("below");if(!me.some(ke=>ke.type==="prompt")&&a.mathfield.hasEditablePrompts)return ie();Wf(a,oe,me,ee,"down")}else return ie();return!0}function O0(a){const y=a.position,b=a.at(y).parent;return b!=null&&b.parent?(a.position=a.offsetOf(b),a.mathfield.stopCoalescingUndo(),a.announce("move",y),!0):(a.announce("plonk"),!1)}function zg(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!1):E=!0,b=b.parent;return E?y:0}function Wg(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!0):E=!1,b=b.parent;return E?y:0}function R0(a){var y;if(a.collapseSelection(),zg(a)>=a.mathfield.options.scriptDepth[1])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=b.rightSibling)==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new wu({style:b.computedStyle}),b),b=b.rightSibling),b.createBranch("superscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.superscript[0]))),!0}function _0(a){var y;if(a.collapseSelection(),Wg(a)>=a.mathfield.options.scriptDepth[0])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=a.at(a.position+1))==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new wu({style:a.at(a.position).computedStyle}),b),b=a.at(a.position+1)),b.createBranch("subscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.subscript[0]))),!0}function Zg(){function a(me){const be=[],ke=[];return[...me.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((rt,xt)=>{const Ft=E(rt);Ft===0?be.push(rt):ke.push({documentOrder:xt,tabIndex:Ft,node:rt})}),ke.sort((rt,xt)=>rt.tabIndex===xt.tabIndex?rt.documentOrder-xt.documentOrder:rt.tabIndex-xt.tabIndex).map(rt=>rt.node).concat(be)}function y(me){return!(!b(me)||ee(me)||E(me)<0)}function b(me){return!(me.disabled||me.type==="hidden"&&me.tagName.toUpperCase()==="INPUT"||fe(me))}function E(me){var be;const ke=Number.parseInt((be=me.getAttribute("tabindex"))!=null?be:"NaN",10);return Number.isNaN(ke)?me.contentEditable==="true"||(me.nodeName==="AUDIO"||me.nodeName==="VIDEO")&&me.getAttribute("tabindex")===null?0:me.tabIndex:ke}function ee(me){return me.tagName.toUpperCase()==="INPUT"&&me.type==="radio"&&!oe(me)}function ie(me,be){for(const ke of me)if(ke.checked&&ke.form===be)return ke;return null}function oe(me){var be;if(!me.name)return!0;const Ke=((be=me.form)!=null?be:me.ownerDocument).querySelectorAll('input[type="radio"][name="'+me.name+'"]'),rt=ie(Ke,me.form);return!rt||rt===me}function fe(me){if(!kt()||me===document.activeElement||me.contains(document.activeElement))return!1;if(getComputedStyle(me).visibility==="hidden")return!0;const be=me.getBoundingClientRect();if(be.width===0||be.height===0)return!0;for(;me;){if(getComputedStyle(me).display==="none")return!0;me=me.parentElement}return!1}return kt()?a(document.body):[]}function Hl(a,y,b="forward"){const E=a.position;if(Array.isArray(y)){const ee=a.offsetOf(y[0]),ie=a.offsetOf(y[y.length-1]);return b==="forward"?a.setSelection(ee,ie):a.setSelection(ie,ee),a.announce("move",E),a.mathfield.stopCoalescingUndo(),!0}return b==="forward"?Hl(a,[y.leftSibling,y]):Hl(a,[y,y.leftSibling])}function Lu(a,y){const b=a.position;if(typeof y=="number"&&(y=a.at(y)),y.type==="prompt")a.setSelection(a.offsetOf(y.firstChild),a.offsetOf(y.lastChild));else{const E=a.offsetOf(y);y.type==="placeholder"?a.setSelection(E-1,E):a.position=E}return a.announce("move",b),a.mathfield.stopCoalescingUndo(),!0}function Zf(a,y,b=!0){var E,ee;const ie=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&Uu(a,y);let oe;const fe=a.at(a.anchor).parentPrompt;fe?y==="forward"?oe=a.offsetOf(fe)+1:oe=a.offsetOf(fe.leftSibling):oe=Math.max(a.position+ie,0);const me=Bh(a,oe,y);if(!me||y==="forward"&&a.offsetOf(me)<oe||y==="backward"&&a.offsetOf(me)>oe){if(!b||!((ee=(E=a.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))==null||ee))return a.announce("plonk"),!1;const ke=Zg();if(!document.activeElement||ke.length<=1)return a.announce("plonk"),!1;let Ke=ke.indexOf(document.activeElement)+ie;return Ke<0&&(Ke=ke.length-1),Ke>=ke.length&&(Ke=0),ke[Ke].focus(),a.mathfield.stopCoalescingUndo(),!0}return Lu(a,me),!0}function Bh(a,y=0,b="forward"){return a.findAtom(E=>E.type==="placeholder"||E.type==="prompt"||!a.mathfield.readOnly&&E.treeDepth>2&&E.isFirstSibling&&E.isLastSibling,y,b)}tu({moveToOpposite:a=>{const y={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},b=a.at(a.position),{parent:E}=b;if(!E)return a.announce("plonk"),!1;const ee=b.parentBranch;let ie;if(typeof ee=="string"&&(ie=y[ee]),!ie){const fe=b.subsupPlacement?_0(a):R0(a);return a.mathfield.stopCoalescingUndo(),fe}E.branch(ie)||E.createBranch(ie);const oe=a.setSelection(a.getBranchRange(a.offsetOf(E),ie));return a.mathfield.stopCoalescingUndo(),oe},moveBeforeParent:a=>{const{parent:y}=a.at(a.position);return y?(a.position=a.offsetOf(y),a.mathfield.stopCoalescingUndo(),!0):(a.announce("plonk"),!1)},moveAfterParent:a=>O0(a),moveToNextChar:a=>Uu(a,"forward"),moveToPreviousChar:a=>Uu(a,"backward"),moveUp:a=>Uu(a,"upward"),moveDown:a=>Uu(a,"downward"),moveToNextWord:a=>fd(a,"forward"),moveToPreviousWord:a=>fd(a,"backward"),moveToGroupStart:a=>{const y=a.offsetOf(a.at(a.position).firstSibling);return y===a.position?(a.announce("plonk"),!1):(a.position=y,a.mathfield.stopCoalescingUndo(),!0)},moveToGroupEnd:a=>{const y=a.offsetOf(a.at(a.position).lastSibling);return y===a.position?(a.announce("plonk"),!1):(a.position=y,a.mathfield.stopCoalescingUndo(),!0)},moveToNextGroup:a=>{var y,b,E,ee;if(a.position===a.lastOffset&&a.anchor===a.lastOffset)return Zf(a,"forward");const ie=a.at(a.position);if(ie.mode==="text"){if(a.selectionIsCollapsed){let rt=ie;for(;rt&&rt.mode==="text";)rt=rt.leftSibling;let xt=ie;for(;((y=xt.rightSibling)==null?void 0:y.mode)==="text";)xt=xt.rightSibling;if(rt&&xt)return Hl(a,[rt,xt])}if(ie.rightSibling.mode==="text"){let rt=ie;for(;rt&&rt.mode==="text";)rt=rt.rightSibling;return rt?(Lu(a,(b=rt.leftSibling)!=null?b:rt),a.mathfield.switchMode("math"),!0):Lu(a,a.lastOffset)}}const fe=a.at(a.anchor).parentPrompt,me=fe?a.offsetOf(fe)+1:Math.max(a.position+1,0),be=Bh(a,me,"forward");if(be)return Lu(a,be);const ke=K0(a,ie,rt=>rt.type==="leftright"||rt.type==="text","forward");if(ke){if(ke.mode==="text"){let rt=ke;for(;rt&&rt.mode==="text";)rt=rt.rightSibling;return Hl(a,[(E=ke.leftSibling)!=null?E:ke,(ee=rt.leftSibling)!=null?ee:rt])}return Hl(a,ke)}const Ke=ie.parent;if(Ke){if(Ke.type==="leftright"||Ke.type==="surd")return Hl(a,Ke);if(ie.parentBranch==="superscript"&&Ke.subscript)return Hl(a,Ke.subscript);if(ie.parentBranch==="above"&&Ke.below)return Hl(a,Ke.below);if(ie.parentBranch==="superscript"||ie.parentBranch==="subscript")return Lu(a,Ke);if(ie.parentBranch==="above"||ie.parentBranch==="below")return Hl(a,Ke)}return Lu(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return Zf(a,"backward");let b=a.at(a.position);const E=b.mode;if(E==="text"){if(a.selectionIsCollapsed){let fe=b;for(;fe&&fe.mode==="text";)fe=fe.leftSibling;let me=b;for(;((y=me.rightSibling)==null?void 0:y.mode)==="text";)me=me.rightSibling;if(fe&&me)return Hl(a,[fe,me])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?Lu(a,b):Lu(a,0)}const ee=a.at(a.anchor).parentPrompt,ie=ee?a.offsetOf(ee.leftSibling):Math.max(a.position-1,0),oe=Bh(a,ie,"backward");if(oe)return Lu(a,oe);if(E==="math"){const fe=K0(a,b,be=>be.type==="leftright"||be.type==="text","backward");if(fe){if(fe.mode==="text"){let be=fe;for(;be&&be.mode==="text";)be=be.leftSibling;return Hl(a,[fe,be])}return Hl(a,fe)}const me=b.parent;if(me){if(me.type==="leftright"||me.type==="surd")return Hl(a,me);if(b.parentBranch==="subscript"&&me.superscript)return Hl(a,me.superscript);if(b.parentBranch==="below"&&me.above)return Hl(a,me.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return Lu(a,me);if(b.parentBranch==="above"||b.parentBranch==="below")return Hl(a,me)}return Lu(a,0)}return!1},moveToMathfieldStart:a=>a.selectionIsCollapsed&&a.position===0?(a.announce("plonk"),!1):(a.position=0,a.mathfield.stopCoalescingUndo(),!0),moveToMathfieldEnd:a=>a.selectionIsCollapsed&&a.position===a.lastOffset?(a.announce("plonk"),!1):(a.position=a.lastOffset,a.mathfield.stopCoalescingUndo(),!0),moveToSuperscript:R0,moveToSubscript:_0},{target:"model",changeSelection:!0}),tu({moveToNextPlaceholder:a=>Zf(a,"forward"),moveToPreviousPlaceholder:a=>Zf(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function K0(a,y,b,E){if(E==="forward"){let ie=y.rightSibling;for(;ie&&!b(ie);)ie=ie.rightSibling;return ie}let ee=y.leftSibling;for(;ee&&!b(ee);)ee=ee.leftSibling;return ee}function Vf(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1,ie="";for(;!ee;){const oe=a.at(E);ee=y===0||oe===void 0||oe.type==="first"||oe.mode!=="math"||!(oe.type&&/mord|mpunct|operator/.test(oe.type)||oe.type==="mop"&&/[a-zA-Z ]+/.test(oe.value))||!oe.hasEmptyBranch("superscript")||!oe.hasEmptyBranch("subscript")||typeof b=="function"&&!b(oe),ee||(oe.mode="text",oe.command=oe.value,oe.verbatimLatex=void 0,ie+=oe.value),E-=1,y-=1}a.contentDidChange({data:ie,inputType:"insertText"})}function zc(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1;const ie=[];for(;!ee;){const oe=a.at(E);ee=y===0||!oe||oe.type==="first"||oe.isFirstSibling||oe.mode!=="text"||oe.value===" "||typeof b=="function"&&!b(oe),ee||(ie.push(Zn.serialize([oe],{defaultMode:"math"})),oe.mode="math"),E-=1,y-=1}Dh(a),a.contentDidChange({data:di(ie),inputType:"insertText"})}function Dh(a){var y;let b=a.position-1;for(;b>=0&&((y=a.at(b))==null?void 0:y.mode)==="math";)b-=1;if(!(b<0)&&a.at(b).mode==="text"&&a.at(b).value===" "&&a.at(b-1).mode==="math"){a.at(b-1).parent.removeChild(a.at(b-1));const E=a.silenceNotifications;a.silenceNotifications=!0,a.position-=1,a.silenceNotifications=E,a.contentDidChange({inputType:"deleteContent"})}}function Vg(a){let y="",b=a.position,E=!1;for(;!E;){const ee=a.at(b);E=!(ee&&(ee.mode==="text"||ee.mode==="math"&&ee.type&&/mord|mpunct/.test(ee.type))),E||(y=ee.value+y),b-=1}return y}function Ug(a,y,b){const{model:E}=a;if(E.mode==="latex"||!E.at(E.position).isLastSibling||!b||!Sf(b))return!1;const ee=od(b);if(!E.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ee));const ie=Vg(E)+ee;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ee))return!0;if(/[\^_]/.test(ee))return/(^|\s)[a-zA-Z][^_]$/.test(ie)&&zc(E,1),!0;const oe={")":"(","}":"{","]":"["}[ee],{parent:fe}=E.at(E.position);if(oe&&fe instanceof bo&&fe.leftDelim===oe)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(ie))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(ee))return!0;if(/(^|[^a-zA-Z'’])[a-zA-Z] $/.test(ie))return zc(E,1),!1;if(/\D\.[^\d\s]$/.test(ie)){zc(E,1);const me=E.at(E.position);return me.value="\u22C5",me.style.variant="normal",me.command="\\cdot",me.verbatimLatex=void 0,E.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(ie)||/\.\d$/.test(ie)||/\([\d+\-.]$/.test(ie))return zc(E,1),!0;if(/\([a-z][,;]$/.test(ie))return zc(E,2),!0;if(/[\d+\-=><*|]$/.test(ee))return Dh(E),!0}else{if(y==="[Space]")return Vf(E,void 0,oe=>/[a-z][:,;.]$/.test(oe.value)),!0;if(/[a-zA-Z]{3,}$/.test(ie)&&!/(dxd|abc|xyz|uvw)$/.test(ie))return Vf(E,void 0,oe=>/[a-zA-Z]/.test(oe.value)),!0;if(/(^|\W)(if)$/i.test(ie))return Vf(E,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(ie)&&!/(αβγ)$/.test(ie))return Vf(E,void 0,oe=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(oe.value)),!0;if(ee==="?"||ee==="."&&!/[\d-+]\.$/.test(ie))return!0}return!1}function jg(a,y){if(!a.isSelectionEditable||!a.keystrokeCaptionVisible)return;const b=H0(),E=a.element.getBoundingClientRect();b.style.left=`${E.left}px`,b.style.top=`${E.top-64}px`,b.innerHTML=window.MathfieldElement.createHTML("<span>"+(vh(y)||y)+"</span>"+b.innerHTML),b.style.visibility="visible",setTimeout(()=>{b.childNodes.length>0&&b.childNodes[b.childNodes.length-1].remove(),b.childNodes.length===0&&(b.style.visibility="hidden")},3e3)}function Gg(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=H0();y.innerHTML=""}else{const y=Mf("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function H0(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(eu("keystroke-caption"),eu("core"),Mf("mathlive-keystroke-caption-panel"))}function Qg(){document.getElementById("mathlive-keystroke-caption-panel")&&(bh("mathlive-keystroke-caption-panel"),x("core"),x("keystroke-caption"))}function z0(a,y){var b,E,ee;const{model:ie}=a,oe=p0(y);if(y.isTrusted){Rm(y);const xt=Ud();a.keyboardLayout!==xt.id&&(a.keyboardLayout=xt.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,jg(a,oe),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let fe,me="",be;const ke=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(ie.mode==="math")if(oe==="[Backspace]")ke.pop();else if(!Sf(y))a.flushInlineShortcutBuffer();else{const xt=od(y),Ft=[...(E=(b=ke[ke.length-1])==null?void 0:b.keystrokes)!=null?E:[],xt];ke.push({state:ie.getState(),keystrokes:Ft,leftSiblings:Yg(a)});let Sn=0,Fr="";for(;!fe&&Sn<Ft.length;)be=ke.length-(Ft.length-Sn),Fr=Ft.slice(Sn).join(""),fe=Dd(ke[be].leftSiblings,Fr,a.options.inlineShortcuts),!fe&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(Fr)&&(fe=a.options.onInlineShortcut(a,Fr)),Sn+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(fe?a.switchMode("math"):Ug(a,oe,y)&&(a.switchMode({math:"text",text:"math"}[ie.mode]),me=""))}if(!fe){if(me||(me=Vm(a.keybindings,ie.mode,y)),!me&&(oe==="[Enter]"||oe==="[Return]")){let xt=!1;return ie.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(xt=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),xt||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),ie.contentDidChange({inputType:"insertLineBreak"})),xt}if((!me||oe==="[Space]")&&ie.mode==="math"){if(oe==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return La.insert(ie,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),me="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const xt=ie.at(ie.position+1),Ft=ie.at(ie.position-1);if((xt==null?void 0:xt.mode)==="text"||(Ft==null?void 0:Ft.mode)==="text")return La.insert(ie," ",{mode:"text"}),a.snapshot("insert-space"),a.dirty=!0,a.scrollIntoView(),!1}(ee=ie.at(ie.position))!=null&&ee.isDigit()&&window.MathfieldElement.decimalSeparator===","&&od(y)===","&&(me="insertDecimalSeparator")}}if(!fe&&!me){if(ie.mathfield.smartFence){if(Lh(ie,od(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:xt}=ie.at(ie.position);if(xt instanceof bo&&xt.rightDelim==="?"&&ie.at(ie.position).isLastSibling&&/^[)}\]|]$/.test(oe))return a.snapshot(),xt.isDirty=!0,xt.rightDelim=oe,ie.position+=1,ie.selectionDidChange(),ie.contentDidChange({data:od(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!ie.selectionIsCollapsed){const Ft=od(y);if(Ft==="("||Ft==="{"||Ft==="["){const Sn={"(":"(","{":"\\lbrace","[":"\\lbrack"}[Ft],Fr={"(":")","{":"\\rbrace","[":"\\rbrack"}[Ft],[xn,tr]=ll(ie.selection);return a.snapshot(),ie.position=tr,La.insert(ie,Fr,{format:"latex"}),ie.position=xn,La.insert(ie,Sn,{format:"latex"}),ie.setSelection(xn+1,tr+1),ie.contentDidChange({data:Ft,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const Ke=ie.at(Math.max(ie.position,ie.anchor)),{parent:rt}=Ke;if(me==="moveAfterParent"&&(rt==null?void 0:rt.type)==="leftright"&&Ke.isLastSibling&&a.options.smartFence&&Lh(ie,".",a.defaultStyle)&&(me="",ks(a)),a.keyboardDelegate.cancelComposition(),me)a.executeCommand(me);else if(fe){const xt=a.effectiveStyle;ie.setState(ke[be].state);const Ft=ke[ke.length-1].keystrokes;for(const Sn of Ft)La.insert(ie,Sn,{silenceNotifications:!0,style:xt});a.snapshot("insert-shortcut"),ie.setState(ke[be].state),ie.deferNotifications({content:!0,selection:!0,data:fe,type:"insertText"},()=>(La.insert(ie,fe,{format:"latex",style:xt}),Dh(a.model),fe.endsWith(" ")&&(a.switchMode("text"),La.insert(ie," ",{style:xt,mode:"text"})),a.snapshot(),ie.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,ie.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function Fh(a,y,b){const{model:E}=a;if(!a.isSelectionEditable){E.announce("plonk");return}b!=null||(b={}),b.focus&&a.focus(),b.feedback&&window.MathfieldElement.playSound("keypress"),typeof b.mode=="string"&&(a.switchMode(b.mode),a.snapshot());let ee=Gc(y);const ie=window.mathVirtualKeyboard;if(ie!=null&&ie.isShifted&&(ee=typeof ee=="string"?ee.toUpperCase():ee.map(me=>me.toUpperCase())),b.simulateKeystroke){let me=!0;for(const be of ee)z0(a,new KeyboardEvent("keypress",{key:be}))&&(me=!1);if(me)return}const oe=E.at(E.position),fe=Ee(Ee({},oe.computedStyle),a.defaultStyle);if(E.selectionIsCollapsed||(E.deleteAtoms(ll(E.selection)),a.snapshot("delete")),E.mode==="latex")E.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{kf(a);for(const me of ee)La.insert(E,me);a.snapshot("insert-latex"),Gd(a)});else if(E.mode==="text"){for(const me of ee)La.insert(E,me,{style:fe});a.snapshot("insert-text")}else if(E.mode==="math")for(const me of ee)Jg(a,me,fe,oe);a.dirty=!0,a.scrollIntoView()}function Yg(a){const y=a.model,b=[];let E=y.at(Math.min(y.position,y.anchor));for(;E.type!=="first";)b.push(E),E=E.leftSibling;return b}function Jg(a,y,b,E){const ee=a.model;let ie={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[y];if(y===" "&&a.options.mathModeSpace&&(ie=["insert",a.options.mathModeSpace]),ie){a.executeCommand(ie);return}if(/\d/.test(y)&&a.options.smartSuperscript&&E.parentBranch==="superscript"&&E.parent.type!=="mop"&&E.parent.type!=="operator"&&E.parent.type!=="extensible-symbol"&&E.hasNoSiblings){Xg(ee),La.insert(ee,y,{style:b}),a.snapshot(),O0(ee),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const oe=a.adoptStyle==="left"?E:E.parent?E.rightSibling:null;(oe==null?void 0:oe.type)==="mord"&&/[a-zA-Z0-9]/.test(oe.value)&&(b=Ee({},b),oe.style.variant&&(b.variant=oe.style.variant),oe.style.variantStyle&&(b.variantStyle=oe.style.variantStyle))}La.insert(ee,y,{style:b}),a.snapshot(`insert-${ee.at(ee.position).type}`)}function Xg(a){a.selectionIsCollapsed||(a.deleteAtoms(ll(a.selection)),a.mathfield.snapshot("delete"))}function Lh(a,y,b){if(!y||a.mode!=="math")return!1;const E=a.at(a.position),{parent:ee}=E,ie={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[y];if(!ie)return!1;const oe=te[ie],fe=ne[ie];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[me,be]=ll(a.selection),ke=a.extractAtoms([me,be]),Ke=ee.addChildrenAfter([new bo("left...right",ke,{leftDelim:ie,rightDelim:fe})],a.at(me));return a.setSelection(a.offsetOf(Ke.firstChild),a.offsetOf(Ke.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:ie,inputType:"insertText"}),!0}if(ie==="|"){const me=ee instanceof bo?ee.leftDelim+ee.rightDelim:"";if(me==="\\lbrace\\rbrace"||me==="\\{\\}"||me==="\\lbrace?")return a.mathfield.snapshot(),La.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:ie,inputType:"insertText"}),!0}if(fe){if(ee instanceof bo&&ee.firstChild===E&&(ee.leftDelim==="?"||ee.leftDelim==="."))return ee.leftDelim=ie,ee.isDirty=!0,a.mathfield.snapshot(),a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(!(ee instanceof bo)){let Ke=E;for(;Ke&&!(Ke.type==="mclose"&&Ke.value===fe);)Ke=Ke.rightSibling;if(Ke){a.mathfield.snapshot();const rt=a.extractAtoms([a.offsetOf(E),a.offsetOf(Ke)]);return rt.pop(),ee.addChildrenAfter([new bo("left...right",rt,{leftDelim:ie,rightDelim:fe})],E),a.position=a.offsetOf(ee.firstChild)+1,a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const me=a.offsetOf(E.lastSibling);let be;for(be=a.position;be<=me;be++){const Ke=a.at(be);if(Ke instanceof bo&&(Ke.leftDelim==="?"||Ke.leftDelim===".")&&W0(ie,Ke.rightDelim))break}const ke=a.at(be);if(be<=me&&ke instanceof bo){ke.leftDelim=ie,a.mathfield.snapshot();let Ke=a.extractAtoms([a.position,be-1]);return Ke=Ke.filter(rt=>rt.type!=="first"),ke.addChildren(Ke,ke.parentBranch),a.position+=1,a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ee instanceof bo&&(ee.leftDelim==="?"||ee.leftDelim===".")&&W0(ie,ee.rightDelim)){ee.isDirty=!0,ee.leftDelim=ie,a.mathfield.snapshot();const Ke=a.extractAtoms([a.offsetOf(E.firstSibling),a.position]);for(const rt of Ke)ee.parent.addChildBefore(rt,ee);return a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ee instanceof bo&&ee.leftDelim==="|")){if(a.mathfield.snapshot(),La.insert(a,`\\left${ie}\\right?`,{format:"latex",style:b}),E.lastSibling.type!=="first"){const Ke=a.offsetOf(E.lastSibling),rt=a.extractAtoms([a.position,Ke]);a.at(a.position).body=rt,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(oe){let me=E;for(;me;){if(me.type==="mopen"&&me.value===oe){a.mathfield.snapshot();const xt=me.leftSibling,Ft=a.extractAtoms([a.offsetOf(me.leftSibling),a.offsetOf(E)]);Ft.shift();const Sn=new bo("left...right",Ft,{leftDelim:oe,rightDelim:ie});return ee.addChildrenAfter([Sn],xt),a.position=a.offsetOf(Sn),a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}me=me.leftSibling}if(ee instanceof bo&&E.isLastSibling&&Th(ee.leftDelim,ie))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=ie,a.position+=1,a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const be=a.offsetOf(E.firstSibling);let ke;for(ke=a.position;ke>=be;ke--){const xt=a.at(ke);if(xt instanceof bo&&(xt.rightDelim==="?"||xt.rightDelim===".")&&Th(xt.leftDelim,ie))break}const Ke=a.at(ke);if(ke>=be&&Ke instanceof bo)return a.mathfield.snapshot(),Ke.rightDelim=ie,Ke.addChildren(a.extractAtoms([ke,a.position]),Ke.parentBranch),a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ee instanceof bo&&(ee.rightDelim==="?"||ee.rightDelim===".")&&Th(ee.leftDelim,ie))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=ie,ee.parent.addChildren(a.extractAtoms([a.position,a.offsetOf(E.lastSibling)]),ee.parentBranch),a.position=a.offsetOf(ee),a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const rt=ee.parent;return rt instanceof bo&&(rt.rightDelim==="?"||rt.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(rt),Lh(a,ie,b)):!1}return!1}function Th(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):ne[a]===y:!0}function W0(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):te[y]===a:!0}tu({undo:a=>(a.undo(),!0),redo:a=>(a.redo(),!0),scrollIntoView:a=>(a.scrollIntoView(),!0),scrollToStart:a=>(a.field.scroll(0,0),!0),scrollToEnd:a=>{const y=a.field.getBoundingClientRect();return a.field.scroll(y.left-window.scrollX,0),!0},toggleKeystrokeCaption:Gg,toggleContextMenu:a=>{const y=a.toggleContextMenu();return y||a.model.announce("plonk"),y},plonk:a=>(a.model.announce("plonk"),!0),switchMode:(a,y,b,E)=>(a.switchMode(y,b,E),!0),insert:(a,y,b)=>a.insert(y,b),typedText:(a,y,b)=>(Fh(a,y,b),!0),insertDecimalSeparator:a=>{const y=a.model;return y.mode==="math"&&window.MathfieldElement.decimalSeparator===","&&y.at(Math.max(y.position,y.anchor)).isDigit()?(a.insert("{,}",{format:"latex"}),a.snapshot("insert-mord"),!0):(a.insert("."),!0)},commit:a=>{var y;return a.model.contentWillChange({inputType:"insertLineBreak"})&&((y=a.host)==null||y.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),a.model.contentDidChange({inputType:"insertLineBreak"})),!0},insertPrompt:(a,y,b)=>{const E=a.getPrompts();let ee="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),ie=0;for(;E.includes(ee)&&ie<100;){if(ie===99)return console.error("could not find a unique ID after 100 tries"),!1;ee="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),ie++}return a.insert(`\\placeholder[${y!=null?y:ee}]{}`,b),!0}}),tu({copyToClipboard:a=>(a.focus(),a.model.selectionIsCollapsed&&a.select(),"queryCommandSupported"in document&&document.queryCommandSupported("copy")?document.execCommand("copy"):a.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("copy",{bubbles:!0,composed:!0})),!1)},{target:"mathfield"}),tu({cutToClipboard:a=>(a.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("cut")?document.execCommand("cut"):a.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("cut",{bubbles:!0,composed:!0})),!0),pasteFromClipboard:a=>(a.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("paste")?(document.execCommand("paste"),!0):(navigator.clipboard.readText().then(y=>{y&&a.model.contentWillChange({inputType:"insertFromPaste",data:y})?(a.stopCoalescingUndo(),a.stopRecording(),a.insert(y,{mode:a.model.mode})&&(Gd(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),ks(a))):a.model.announce("plonk"),a.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function qg(a,y){a.flushInlineShortcutBuffer(),a.stopCoalescingUndo();const b=Ph(a,y),{model:E}=a;return E.selectionIsCollapsed?(a.defaultStyle.fontSeries&&b.fontSeries===a.defaultStyle.fontSeries&&(b.fontSeries="auto"),b.fontShape&&b.fontShape===a.defaultStyle.fontShape&&(b.fontShape="auto"),b.color&&b.color===a.defaultStyle.color&&(b.color="none"),b.backgroundColor&&b.backgroundColor===a.defaultStyle.backgroundColor&&(b.backgroundColor="none"),b.fontSize&&b.fontSize===a.defaultStyle.fontSize&&(b.fontSize="auto"),a.defaultStyle=Ee(Ee({},a.defaultStyle),b)):a.model.deferNotifications({content:!0,type:"insertText"},()=>{E.selection.ranges.forEach(ee=>Ah(E,ee,b,{operation:"toggle"})),a.snapshot("style-change")}),!0}tu({applyStyle:qg},{target:"mathfield",canUndo:!0,changeContent:!0});function Ph(a,y){var b,E,ee,ie,oe,fe,me,be,ke,Ke;const rt={};if(typeof y.color=="string"){const Ft=(E=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?E:"none";Ft!==y.color&&(rt.verbatimColor=(ee=y.verbatimColor)!=null?ee:y.color),rt.color=Ft}if(typeof y.backgroundColor=="string"){const Ft=(oe=a.backgroundColorMap((ie=y.backgroundColor)!=null?ie:y.verbatimBackgroundColor))!=null?oe:"none";Ft!==y.backgroundColor&&(rt.verbatimBackgroundColor=(fe=y.verbatimBackgroundColor)!=null?fe:y.backgroundColor),rt.backgroundColor=Ft}typeof y.fontFamily=="string"&&(rt.fontFamily=y.fontFamily),typeof y.series=="string"&&(rt.fontSeries=y.series),typeof y.fontSeries=="string"&&(rt.fontSeries=y.fontSeries.toLowerCase()),rt.fontSeries&&(rt.fontSeries=(me={bold:"b",medium:"m",normal:"m"}[rt.fontSeries])!=null?me:rt.fontSeries),typeof y.shape=="string"&&(rt.fontShape=y.shape),typeof y.fontShape=="string"&&(rt.fontShape=y.fontShape.toLowerCase()),rt.fontShape&&(rt.fontShape=(be={italic:"it",up:"n",upright:"n",normal:"n"}[rt.fontShape])!=null?be:rt.fontShape),y.variant&&(rt.variant=y.variant.toLowerCase()),y.variantStyle&&(rt.variantStyle=y.variantStyle.toLowerCase());const xt=(ke=y.size)!=null?ke:y.fontSize;return typeof xt=="number"?rt.fontSize=Math.max(1,Math.min(10,xt)):typeof xt=="string"&&(rt.fontSize=(Ke={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[xt.toLowerCase()])!=null?Ke:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[xt]),rt}function Nh(a){let[y,b]=ll(a.selection);if(y=Z0(a,y,"backward"),b=Z0(a,b,"forward"),y===b){const E=a.at(y);if(E.type==="leftright")return a.setSelection(a.offsetOf(E.firstChild)-1,b);if(E.type==="first"&&(E.parent.type==="leftright"||E.parent.type==="surd"))return a.setSelection(y-1,a.offsetOf(E.parent.lastChild)+1);a.setSelection(y-1,b)}else a.setSelection(y,b);return!0}function Z0(a,y,b){var E,ee,ie;let oe=a.at(y);if(!oe)return y;const fe=b==="forward"?1:-1;if(oe.mode==="text"){for(;oe&&!(oe.mode!=="text"||!pe.test(oe.value));)y+=fe,oe=a.at(y);return b==="backward"?y-1:y}if(oe.mode==="latex"){if(/[a-zA-Z\*]/.test(oe.value))if(b==="backward")for(;oe&&oe.mode==="latex"&&oe.value!=="\\"&&/[a-zA-Z]/.test(oe.value);)y+=fe,oe=a.at(y);else for(;oe&&oe.mode==="latex"&&/[a-zA-Z\*]/.test(oe.value);)y+=fe,oe=a.at(y);else if(oe.value==="{"){if(b==="forward"){for(;oe&&oe.mode==="latex"&&oe.value!=="}";)y+=fe,oe=a.at(y);return y}return y-1}else if(oe.value==="}"){if(b==="backward"){for(;oe&&oe.mode==="latex"&&oe.value!=="{";)y+=fe,oe=a.at(y);return y-1}return y}return y-1}if(oe.mode==="math"){if(oe.isDigit()){for(;(E=a.at(y+fe))!=null&&E.isDigit();)y+=fe;return b==="backward"?y-1:y}if(oe.style.variant||oe.style.variantStyle){let me=(ee=a.at(y))==null?void 0:ee.style;for(;me&&me.variant===oe.style.variant&&me.variantStyle===oe.style.variantStyle;)me=(ie=a.at(y+fe))==null?void 0:ie.style,y+=fe;return b==="backward"?y-1:y}return y}return y}tu({selectGroup:a=>{const y=Nh(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>Uu(a,"forward",{extend:!0}),extendSelectionBackward:a=>Uu(a,"backward",{extend:!0}),extendToNextWord:a=>fd(a,"forward",{extend:!0}),extendToPreviousWord:a=>fd(a,"backward",{extend:!0}),extendSelectionUpward:a=>Uu(a,"upward",{extend:!0}),extendSelectionDownward:a=>Uu(a,"downward",{extend:!0}),extendToNextBoundary:a=>fd(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>fd(a,"backward",{extend:!0}),extendToGroupStart:a=>{const y=a.setSelection(a.anchor,a.offsetOf(a.at(a.position).firstSibling));return y||a.announce("plonk"),y},extendToGroupEnd:a=>{const y=a.setSelection(a.anchor,a.offsetOf(a.at(a.position).lastSibling));return y||a.announce("plonk"),y},extendToMathFieldStart:a=>{const y=a.setSelection(a.anchor,0);return y||a.announce("plonk"),y},extendToMathFieldEnd:a=>{const y=a.setSelection(a.anchor,a.lastOffset);return y||a.announce("plonk"),y}},{target:"model",changeSelection:!0});var Wc=null,$d=0,Uf=class Au{static start(y,b,E,ee){var ie;Au.element=y,(ie=Au.controller)==null||ie.abort(),Au.controller=new AbortController;const oe={signal:Au.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",E,oe),y.addEventListener("pointerup",ee,oe),y.addEventListener("pointercancel",ee,oe),Ih(b)&&(Au.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",E,oe),window.addEventListener("blur",ee,oe),window.addEventListener("mouseup",ee,oe))}static stop(){var y;(y=Au.controller)==null||y.abort(),Au.controller=void 0,typeof Au.pointerId=="number"&&(Au.element.releasePointerCapture(Au.pointerId),Au.pointerId=void 0)}};function Ih(a){return a!==null&&globalThis.PointerEvent!==void 0&&a instanceof PointerEvent}function V0(a,y){var b;if(y.buttons>1)return;a.atomBoundsCache=new Map;const E=a;let ee,ie=!1,oe=!1,fe="none",me=!1,be=!1;const ke=y.clientX,Ke=y.clientY,rt=Date.now(),xt=E.field,Ft=setInterval(()=>{me?xt.scroll({top:0,left:xt.scrollLeft-16}):be&&xt.scroll({top:0,left:xt.scrollLeft+16})},32);function Sn(){Uf.stop(),ie=!1,clearInterval(Ft),a.element.classList.remove("tracking"),y&&y.preventDefault()}function Fr(tr){if(!E.hasFocus()){Sn();return}const Kr=tr.clientX,cr=tr.clientY,Fi=Ih(tr)&&tr.pointerType==="touch"?20:5;if(Date.now()<rt+500&&Math.abs(ke-Kr)<Fi&&Math.abs(Ke-cr)<Fi){tr.preventDefault(),tr.stopPropagation();return}const ra=xt.getBoundingClientRect();be=Kr>ra.right,me=Kr<ra.left;let ji=ee;Ih(tr)&&(tr.isPrimary||(ji=ef(E,tr.clientX,tr.clientY,{bias:0})));const ro=ef(E,Kr,cr,{bias:Kr<=ke?Kr===ke?0:-1:1});ji>=0&&ro>=0&&(E.model.extendSelectionTo(ji,ro),ks(a)),oe&&Nh(E.model)}Wc&&Math.abs(Wc.x-ke)<5&&Math.abs(Wc.y-Ke)<5&&Date.now()<Wc.time+500?($d+=1,Wc.time=rt):(Wc={x:ke,y:Ke,time:rt},$d=1);const xn=xt.getBoundingClientRect();if(ke>=xn.left&&ke<=xn.right&&Ke>=xn.top&&Ke<=xn.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ee=ef(a,ke,Ke,{bias:0}),ee>=0){if(a.element.classList.add("tracking"),y.shiftKey){const tr=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ee),v0(a.model)||tr?fe="all":fe="selection"}else a.model.at(ee).type==="placeholder"?(a.model.setSelection(ee-1,ee),fe="selection"):((b=a.model.at(ee).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(ee,ee+1),fe="selection"):(a.model.position=ee,v0(a.model)?fe="all":fe="selection");a.defaultStyle={},y.detail===3||$d>2?(Sn(),(y.detail===3||$d===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},fe="all")):ie||(ie=!0,Uf.start(xt,y,Fr,Sn),(y.detail===2||$d===2)&&(oe=!0,Nh(a.model),fe="all"))}a.hasFocus()||(fe="none",a.focus({preventScroll:!0}))}else Wc=null;a.stopCoalescingUndo(),fe!=="none"&&(a.model.selectionIsCollapsed&&(fe="all"),ks(a)),y.preventDefault()}function $g(a,y,b){if(a>=b.left&&a<=b.right&&y>=b.top&&y<=b.bottom)return 0;const E=a-(b.left+b.right)/2,ee=y-(b.top+b.bottom)/2;return E*E+ee*ee}function U0(a,y,b,E,ee){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const ie=gc(a,b);if(!ie)return[1/0,null];let oe=[1/0,null];if(b.hasChildren&&!b.captureSelection&&E>=ie.left&&E<=ie.right)for(const fe of b.children){const me=U0(a,y,fe,E,ee);me[0]<=oe[0]&&(oe=me)}return oe[1]||(oe=[$g(E,ee,ie),b]),y.set(b.id,oe),oe}function ev(a,y,b){const[,E]=U0(a,new Map,a.model.root,y,b);return E}function ef(a,y,b,E){var ee;const ie=a.field.querySelector(".ML__latex").getBoundingClientRect();if(!ie)return 0;if(y>ie.right||b>ie.bottom+8)return a.model.lastOffset;if(y<ie.left||b<ie.top-8)return 0;E=E!=null?E:{},E.bias=(ee=E.bias)!=null?ee:0;let oe=ev(a,y,b);const fe=[];let me=oe;for(;me;)fe.unshift(me),me=me.parent;for(const ke of fe)if(ke.captureSelection){oe=ke;break}let be=a.model.offsetOf(oe);if(be<0)return-1;if(oe.leftSibling)if(E.bias===0&&oe.type!=="placeholder"){const ke=gc(a,oe);ke&&y<(ke.left+ke.right)/2&&(be=a.model.offsetOf(oe.leftSibling))}else E.bias<0&&(be=a.model.offsetOf(oe.leftSibling));return be}var tv=class extends La{constructor(){super("math")}onPaste(a,y){if(!y||!a.model.contentWillChange({data:typeof y=="string"?y:null,dataTransfer:typeof y=="string"?null:y,inputType:"insertFromPaste"}))return!1;let b="",E="auto",ee=typeof y!="string"?y.getData("application/json+mathlive"):"";if(ee)try{const ie=JSON.parse(ee);if(ie&&Array.isArray(ie)){a.snapshot();const oe=bc(ie),{model:fe}=a;fe.selectionIsCollapsed||fe.deleteAtoms(ll(fe.selection));const me=fe.at(fe.position);if(me.parent instanceof Pa){console.assert(me.parentBranch!==void 0);const be=[];let ke=[];oe[0].type==="first"&&oe.shift(),oe[oe.length-1].type==="first"&&oe.pop();for(const Ft of oe)Ft.type==="first"&&ke.length>0?(be.push(ke),ke=[Ft]):ke.push(Ft);ke.length>0&&be.push(ke);let Ke=Number(me.parentBranch[0]),rt=Number(me.parentBranch[1]);const xt=me.parent.maxColumns;for(;me.parent.colCount-rt<be.length&&me.parent.colCount<xt;)me.parent.addColumn();me.parent.addChildrenAfter(be[0],me);for(let Ft=1;Ft<be.length;Ft++)rt++,rt>=xt&&(rt=0,me.parent.addRowAfter(Ke),Ke++),me.parent.setCell(Ke,rt,be[Ft])}else me.parent.addChildrenAfter(oe.filter(be=>be.type!=="first"),me);return fe.position=fe.offsetOf(oe[oe.length-1]),fe.contentDidChange({inputType:"insertFromPaste"}),ks(a),!0}}catch(ie){}if(ee=typeof y!="string"?y.getData("application/json"):"",ee&&window.MathfieldElement.computeEngine)try{const ie=JSON.parse(ee);if(typeof ie=="object"&&"latex"in ie&&ie.latex&&(b=ie.latex),!b){const oe=window.MathfieldElement.computeEngine.box(ie);oe&&!oe.has("Error")&&(b=oe.latex)}b||(E="latex")}catch(ie){}if(!b&&typeof y!="string"&&(b=y.getData("application/x-latex"),b&&(E="latex")),b||(b=typeof y=="string"?y:y.getData("text/plain")),b){let ie;return[ie,b]=Hu(b),E==="auto"&&ie&&(E="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:E})&&(a.startRecording(),a.snapshot("paste"),ks(a)),a.startRecording(),!0}return!1}insert(a,y,b){var E,ee;const ie=typeof y=="string"?y:(ee=(E=window.MathfieldElement.computeEngine)==null?void 0:E.box(y).latex)!=null?ee:"";if(!b.silenceNotifications&&!a.contentWillChange({data:ie,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:oe}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const fe=a.silenceNotifications;a.silenceNotifications=!0;const me={"?":"\\placeholder{}","@":"\\placeholder{}"};me[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(ll(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward"),!a.at(a.position).isLastSibling&&a.at(a.position+1).type==="placeholder"?a.deleteAtoms([a.position,a.position+1]):a.at(a.position).type==="placeholder"&&a.deleteAtoms([a.position-1,a.position]);let be=-1;me[0]?me["@"]=me[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(be=rv(a),be>=0&&(me["@"]=a.getValue(be,a.position,"latex"))),me[0]||(me[0]=me["?"]);let ke=!1;const Ke=Kr=>(ke=!0,me[Kr]);let[rt,xt]=j0(a,y,Ke,b);if(!xt)return!1;const Ft=xt.length===1&&xt[0].type==="genfrac";Ft&&be>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(me["@"]=me["?"],ke=!1,[rt,xt]=j0(a,y,Ke,b)):be>=0&&a.deleteAtoms([be,a.position]);const{parent:Sn}=a.at(a.position),Fr=Sn.hasEmptyBranch("body");if(Ft&&rt!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Sn instanceof bo&&Sn.leftDelim==="("&&Fr){const Kr=Sn.parent,cr=Sn.parentBranch;Kr.removeChild(Sn),Kr.setChildren(xt,cr)}const xn=a.at(a.position);xn.parent.addChildrenAfter(xt,xn),rt==="latex"&&typeof y=="string"&&(Sn==null?void 0:Sn.type)==="root"&&Fr&&!ke&&(Sn.verbatimLatex=y),a.silenceNotifications=fe;const tr=xt[xt.length-1];if(b.selectionMode==="placeholder"){const Kr=xt.flatMap(cr=>[cr,...cr.children]).find(cr=>cr.type==="placeholder");if(Kr){const cr=a.offsetOf(Kr);a.setSelection(cr-1,cr),a.announce("move")}else tr&&(a.position=a.offsetOf(tr))}else b.selectionMode==="before"||(b.selectionMode==="after"?tr&&(a.position=a.offsetOf(tr)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(tr)));return a.contentDidChange({data:ie,inputType:"insertText"}),a.silenceNotifications=oe,!0}};function j0(a,y,b,E){var ee;let ie,oe=[];if(typeof y!="string"||E.format==="math-json"){const fe=window.MathfieldElement.computeEngine;if(!fe)return["math-json",[]];[ie,y]=["latex",fe.box(y).latex],oe=cl(y,{context:a.mathfield.context})}else typeof y=="string"&&E.format==="ascii-math"?([ie,y]=Lc(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),oe=cl(y,{context:a.mathfield.context}),ie!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&jf(oe)):(E.format==="auto"||(ee=E.format)!=null&&ee.startsWith("latex"))&&(E.format==="auto"&&([ie,y]=Lc(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),E.format==="latex"&&([,y]=Hu(y)),oe=cl(y,{context:a.mathfield.context,args:b}),E.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&jf(oe));return wc(oe,E.style),[ie!=null?ie:"latex",oe]}function nv(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof bo&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function jf(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof bo&&b.leftDelim==="("){let E=0,ee=0,ie=0;for(let oe=0;b.body[oe];oe++)b.body[oe].type==="genfrac"&&(E++,ee=oe),ie++;ie===0&&E===1&&(a[y]=b.body[ee])}}for(const y of a){for(const b of y.branches)if(!y.hasEmptyBranch(b)){jf(y.branch(b));const E=nv(y.branch(b));E&&y.setChildren(E,b)}if(y instanceof Pa)for(const b of y.cells)jf(b)}}}function rv(a){let y=a.at(a.position);if(y.mode==="text"){for(;!y.isFirstSibling&&y.mode==="text";)y=y.leftSibling;return a.offsetOf(y)}const b=y;let E=!1;if(y.type==="mclose"){const ee=te[y.value];for(;!y.isFirstSibling&&!(y.type==="mopen"&&y.value===ee);)y=y.leftSibling;y.isFirstSibling||(y=y.leftSibling),E=!0}else y.type==="leftright"&&(y=y.leftSibling,E=!0);if(E)for(;!y.isFirstSibling&&(y.isFunction||G0(y));)y=y.leftSibling;else{const ee=[];for(;!y.isFirstSibling&&(G0(y)||ee.length>0);)y.type==="mclose"&&ee.unshift(y.value),y.type==="mopen"&&ee.length>0&&y.value===te[ee[0]]&&ee.shift(),y=y.leftSibling}return b===y?-1:a.offsetOf(y)}function G0(a){return a.isDigit()?!0:a.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(a.type)?!a.isExtensibleSymbol:!1}new tv;var iv=class extends La{constructor(){super("text")}onPaste(a,y){if(!y)return!1;const b=typeof y=="string"?y:y.getData("text/plain");return b&&a.model.contentWillChange({inputType:"insertFromPaste",data:b})?(a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b)&&(a.model.contentDidChange({inputType:"insertFromPaste"}),a.startRecording(),a.snapshot("paste"),ks(a)),a.startRecording(),!0):!1}insert(a,y,b={}){if(!a.contentWillChange({data:y,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:E}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ee=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(ll(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const ie=av(y,a.mathfield.context);if(wc(ie,b.style),!ie)return!1;const oe=a.at(a.position),fe=oe.parent.addChildrenAfter(ie,oe);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(fe)):fe&&(a.position=a.offsetOf(fe))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function av(a,y){return a=a.replace(/\\/g,"\\textbackslash "),a=a.replace(/#/g,"\\#"),a=a.replace(/\$/g,"\\$"),a=a.replace(/%/g,"\\%"),a=a.replace(/&/g,"\\&"),a=a.replace(/_/g,"\\_"),a=a.replace(/{/g,"\\textbraceleft "),a=a.replace(/}/g,"\\textbraceright "),a=a.replace(/lbrace/g,"\\textbraceleft "),a=a.replace(/rbrace/g,"\\textbraceright "),a=a.replace(/\^/g,"\\textasciicircum "),a=a.replace(/~/g,"\\textasciitilde "),a=a.replace(/£/g,"\\textsterling "),cl(a,{context:y,parseMode:"text"})}new iv;function ju(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var Vo=4,Ul=20,Js=2*(Ul+Vo),Gf=(a,y)=>`
|
|
|
<line x1="${a+Ul}" y1="${y+Ul}"
|
|
|
x2="${a>y?a+Ul:7*Ul+10*Vo}"
|
|
|
y2="${a<y?y+Ul:7*Ul+10*Vo}"/>
|
|
|
<svg id="plus" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<path class="font" d="m33.33,20c0,1.84-1.49,3.34-3.33,3.34h-6.67v6.66c0,1.84-1.49,3.34-3.33,3.34s-3.34-1.5-3.34-3.34v-6.66h-6.66c-1.84,0-3.34-1.5-3.34-3.34s1.5-3.33,3.34-3.33h6.66v-6.67c0-1.84,1.5-3.33,3.34-3.33s3.33,1.49,3.33,3.33v6.67h6.67c1.84,0,3.33,1.49,3.33,3.33Z"/>
|
|
|
</svg>`,Q0=(a,y)=>`
|
|
|
<line x1="${a+Ul}" y1="${y+Ul}"
|
|
|
x2="${a>y?a+Ul:7*Ul+10*Vo}"
|
|
|
y2="${a<y?y+Ul:7*Ul+10*Vo}"/>
|
|
|
<svg id="minus" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<path class="font" d="m33.33,20c0,1.84-1.49,3.33-3.33,3.33H10c-1.84,0-3.34-1.49-3.34-3.33s1.5-3.34,3.34-3.34h20c1.84,0,3.33,1.5,3.33,3.34Z"/>
|
|
|
</svg>`,Qf=(a,y,b)=>`
|
|
|
<svg id="arrow" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<g transform="rotate(${b})" transform-origin="20 20">
|
|
|
<path class="font" d="m17.7,7.23h4.6c.52,0,.94.42.94.94v13.82c0,.52.42.94.94.94h3.39c.83,0,1.25,1.01.66,1.6l-7.56,7.56c-.37.37-.96.37-1.32,0l-7.56-7.56c-.59-.59-.17-1.6.66-1.6h3.39c.52,0,.94-.42.94-.94v-13.82c0-.52.42-.94.94-.94Z"/>
|
|
|
</g>
|
|
|
</svg>`,ov=`
|
|
|
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
viewBox=
|
|
|
"-2 -2 ${8*Ul+10*Vo+5} ${8*Ul+10*Vo+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${Js+Vo}"
|
|
|
height="${3*Js}"
|
|
|
width="${Js}"
|
|
|
rx="${Js/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${Js+Vo}"
|
|
|
y="0"
|
|
|
height="${Js}"
|
|
|
width="${3*Js}"
|
|
|
rx="${Js/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${Qf(2*(Vo+Js),2*Vo+3*Js,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${Qf(2*(Vo+Js),2*Vo+Js,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${Qf(2*Vo+3*Js,2*(Vo+Js),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${Qf(2*Vo+Js,2*(Vo+Js),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${Gf(2*Vo+Js,Vo)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${Q0(2*Vo+2*Js,Vo)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${Gf(2*Vo+3*Js,Vo)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${Gf(Vo,2*Vo+Js)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${Q0(Vo,2*Vo+2*Js)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${Gf(Vo,2*Vo+3*Js)}
|
|
|
</g>
|
|
|
</svg>`,sv=a=>`
|
|
|
<svg id="matrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","matrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/></svg>`,lv=a=>`
|
|
|
<svg id="pmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","pmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-3.96,4.6-3.96,11.4,0,16"/>
|
|
|
<path class="cls-2" d="m22,4c3.96,4.6,3.96,11.4,0,16"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/></svg>`,Y0=a=>`
|
|
|
<svg id="Bmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","Bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<path class="cls-2" d="m22,4c1.1,0,2,.9,2,2v3c0,1.66.9,3,2,3-1.1,0-2,1.34-2,3v3c0,1.1-.9,2-2,2"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,uv=a=>`
|
|
|
<svg id="bmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4h-3v16h3"/>
|
|
|
<path class="cls-2" d="m22,4h3v16h-3"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,cv=a=>`
|
|
|
<svg id="vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","vmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
<line class="cls-2" x1="4" y1="4" x2="4" y2="20"/>
|
|
|
<line class="cls-2" x1="24" y1="4" x2="24" y2="20"/>
|
|
|
</svg>`,dv=a=>`
|
|
|
<svg id="Vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="-3.5 -3 35 30"
|
|
|
data-command='["setEnvironment","Vmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
<line class="cls-2" x1="6" y1="4" x2="6" y2="20"/>
|
|
|
<line class="cls-2" x1="22" y1="4" x2="22" y2="20"/>
|
|
|
<line class="cls-2" x1="2" y1="4" x2="2" y2="20"/>
|
|
|
<line class="cls-2" x1="26" y1="4" x2="26" y2="20"/>
|
|
|
</svg>`,fv=a=>`
|
|
|
<svg id="cases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","cases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m10,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<circle cx="13" cy="8" r="1"/>
|
|
|
<circle cx="13" cy="16" r="1"/>
|
|
|
<circle cx="21" cy="8" r="1"/>
|
|
|
<circle cx="21" cy="16" r="1"/>
|
|
|
</svg>`,hv=a=>`
|
|
|
<svg id="rcases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","rcases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m18,20c1.1,0,2-.9,2-2v-3c0-1.66.9-3,2-3-1.1,0-2-1.34-2-3v-3c0-1.1-.9-2-2-2"/>
|
|
|
<circle cx="15" cy="8" r="1"/>
|
|
|
<circle cx="15" cy="16" r="1"/>
|
|
|
<circle cx="7" cy="8" r="1"/>
|
|
|
<circle cx="7" cy="16" r="1"/>
|
|
|
</svg>`,Oh={matrix:sv,pmatrix:lv,bmatrix:uv,Bmatrix:Y0,vmatrix:cv,Vmatrix:dv},Rh={cases:fv,rcases:hv,Bmatrix:Y0};function pv(a){var y,b;const E=(y=a.model.parentEnvironment)==null?void 0:y.array;if(!E)return;let ee=0;E.forEach(Ft=>{(!ee||Ft.length>ee)&&(ee=Ft.length)});let ie=document.getElementById("mathlive-environment-popover");ie||(ie=Mf("mathlive-environment-popover"),eu("environment-popover"),eu("core"),ie.setAttribute("aria-hidden","true"));let oe;const fe=ie.querySelector(".MLEP__environment-controls");fe?oe=fe:(oe=document.createElement("div"),ie.innerHTML="",ie.appendChild(oe)),oe.className="MLEP__environment-controls",oe.style.display="flex",oe.style.width="100%",oe.style.height="100%",oe.style.boxSizing="border-box",oe.innerHTML=ov;let me=[],be="";const ke=a.model.parentEnvironment.environmentName;if(Ll(ke)){const Ft=gv(ke);be=Oh[Ft]("active");const Sn=Oh,{[Ft]:Fr}=Sn,xn=it(Sn,[qe(Ft)]);me=Object.values(xn).map(tr=>tr("inactive"))}else if(Tl(ke)){const Ft=vv(ke);be=Rh[Ft]("active");const Sn=Rh,{[Ft]:Fr}=Sn,xn=it(Sn,[qe(Ft)]);me=Object.values(xn).map(tr=>tr("inactive"))}else Vs(ke)&&(be=Oh.matrix("active"),me=Object.values(Rh).map(Ft=>Ft("inactive")));const Ke=document.createElement("div");Ke.className="MLEP__environment-delimiter-controls",Ke.style.display="flex",Ke.style.flexDirection="column",Ke.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${be}
|
|
|
${me.join("")}
|
|
|
</div>`,be&&oe.appendChild(Ke),oe.querySelectorAll("[data-command]").forEach(Ft=>{const Sn=Ft.dataset.command;let Fr=Sn;try{Fr=JSON.parse(Sn)}catch(xn){}Ft.addEventListener("mousedown",xn=>xn.preventDefault()),Fr&&Ft.addEventListener("click",()=>a.executeCommand(Fr))});const xt=(b=a.field)==null?void 0:b.getBoundingClientRect();xt&&(ie.style.top=`${window.scrollY+(xt.top-ie.clientHeight-15)}px`,ie.style.left=`${xt.left+20}px`,ie.classList.add("is-visible"))}function _h(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function mv(){document.getElementById("mathlive-environment-popover")&&(bh("mathlive-environment-popover"),x("environment-popover"),x("core"))}function Yf(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&hs(b.environmentName)){const E=a.options.environmentPopoverPolicy;y=E==="auto"||E==="on"}}y?pv(a):_h()}function gv(a){return a.replace("*","")}function vv(a){return a==="dcases"?"cases":a}function J0(a){const y=getComputedStyle(a).direction;return y==="ltr"||y==="rtl"?y:"ltr"}function X0(a,y,b){return y==="left"||y==="leading"&&b==="ltr"||y==="trailing"&&b==="rtl"?a.left:a.right}function Kh(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="rtl"||b==="end"&&E==="ltr"||b==="top"||b==="right"?Math.max(0,a-y):a}function yv(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="ltr"||b==="end"&&E==="rtl"||b==="top"||b==="right"?a:a-y}function bv(a,y){var b,E,ee;const ie=(b=J0(a))!=null?b:"ltr";a.style.position="fixed",a.style.left="",a.style.top="",a.style.right="",a.style.bottom="",a.style.height="",a.style.width="";const oe=a.getBoundingClientRect(),fe=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let me=Math.min(fe,(E=y.height)!=null?E:oe.height),be=Kh(y.location.y,me,y.verticalPos,ie);be+me>window.innerHeight-8&&(y.alternateLocation?(be=Kh(y.alternateLocation.y,me,y.verticalPos,ie),be+me>window.innerHeight-8&&(be=void 0)):be=void 0),Number.isFinite(be)||(be=Math.max(8,window.innerHeight-8-me),8+me>window.innerHeight-8&&(a.style.bottom="8px")),me=Math.min(be+me,window.innerHeight-8)-be;const ke=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let Ke=Math.min(ke,(ee=y.width)!=null?ee:oe.width),rt=Kh(y.location.x,Ke,y.horizontalPos,ie);rt+Ke>window.innerWidth-8&&(y.alternateLocation?(rt=yv(y.alternateLocation.x,Ke,y.verticalPos,ie),rt+Ke>window.innerWidth-8&&(rt=void 0)):rt=void 0),Number.isFinite(rt)||(rt=Math.max(8,window.innerWidth-8-Ke),8+Ke>window.innerWidth-8&&(a.style.right="8px")),Ke=Math.min(rt+Ke,window.innerWidth-8)-rt,ie==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-rt-Ke).toString()}px`:a.style.left=`${Math.ceil(rt).toString()}px`,a.style.top=`${Math.ceil(be).toString()}px`,me!==oe.height&&(a.style.height=`${Math.ceil(me).toString()}px`),Ke!==oe.width&&(a.style.width=`${Math.ceil(Ke).toString()}px`)}function xv(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function hd(a){return"submenu"in a}function Gu(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function Hh(a){return"type"in a&&a.type==="divider"}function zh(a){return"type"in a&&a.type==="heading"}var q0={};function Wh(a){let y=q0[a];if(!y){let b;switch(a){case"checkmark":b=`<span aria-hidden="true" class="ui-checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z"></path></svg>
|
|
|
</span>`;break;case"trailing-chevron":b='<span aria-hidden="true" class="ui-trailing-chevron"><svg focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg></span>';break;case"mixedmark":b='<span aria-hidden="true" class="ui-mixedmark"><svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 512 512"><path fill="currentColor" d="M0 256c0-13.3 10.7-24 24-24H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24z"/></svg></span>'}if(b){const E=document.createElement("template");E.innerHTML=b,q0[a]=E,y=E}}if(y){if("content"in y)return y.content.cloneNode(!0);const b=document.createElement("svg");return b.innerHTML=y.innerHTML,b}}var $0=80,ep=class{constructor(a,y){this._element=null;var b;this.parentMenu=y,this._declaration=a,hd(a)?(this.type="submenu",this.submenu=new tp(a.submenu,{parentMenu:y,submenuClass:a.submenuClass,columnCount:a.columnCount})):this.type=(b=a.type)!=null?b:"command",this.hasCheck=Gu(a)&&a.checked!==void 0}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var a,y;(a=this._abortController)==null||a.abort(),this._abortController=void 0,(y=this._element)==null||y.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var a;return(a=this._label)!=null?a:""}set label(a){a===void 0&&(a=""),a!==this._label&&(this._label=a,this.dirty=!0)}get visible(){return this._visible}set visible(a){a!==this._visible&&(this._visible=a,this.dirty=!0)}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this.element&&(a?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(a){this._checked=a,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(a){a!==this._tooltip&&(this._tooltip=a,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(a){a!==this._ariaLabel&&(this._ariaLabel=a,this.dirty=!0)}get active(){var a,y;return(y=(a=this.element)==null?void 0:a.classList.contains("active"))!=null?y:!1}set active(a){this.element&&this.element.classList.toggle("active",a)}updateState(a){var y,b,E;const ee=this._declaration;if(Hh(ee)){this.enabled=!1,this.checked=!1;return}zh(ee)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Gu(ee)&&(this.checked=Gu(ee)&&((y=pd(ee.checked,a))!=null?y:!1)),(Gu(ee)||hd(ee))&&(this.enabled=(b=pd(ee.enabled,a))!=null?b:!0,this.visible=(E=pd(ee.visible,a))!=null?E:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(Gu(ee)||zh(ee)||hd(ee))&&(this.label=pd(ee.label,a),this.tooltip=pd(ee.tooltip,a),this.ariaLabel=pd(ee.ariaLabel,a)),this._element&&this.updateElement()}set dirty(a){console.assert(a===!0),a&&this.parentMenu&&(this.parentMenu.dirty=!0)}updateElement(){if(!this.visible||!this.element)return;const a=this.element;a.textContent="",this.enabled?a.removeAttribute("aria-disabled"):a.setAttribute("aria-disabled","true"),this.checked===!0?(a.setAttribute("aria-checked","true"),a.append(Wh("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(Wh("mixedmark"))):a.removeAttribute("aria-checked"),this.ariaLabel&&a.setAttribute("aria-label",this.ariaLabel);const y=document.createElement("span");if(y.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&y.classList.add("heading"),y.innerHTML=this.label,a.append(y),this._tooltip&&a.setAttribute("data-tooltip",this._tooltip),Gu(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=vh(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Wh("trailing-chevron"))}get element(){if(this._element)return this._element;if(Hh(this._declaration)){const b=document.createElement("li");return b.setAttribute("part","menu-divider"),b.setAttribute("role","divider"),this._element=b,b}const a=document.createElement("li");this._element=a,(Gu(this._declaration)||zh(this._declaration)||hd(this._declaration))&&this._declaration.class&&(a.className=this._declaration.class),a.setAttribute("part","menu-item"),a.setAttribute("tabindex","-1"),this.hasCheck?a.setAttribute("role","menuitemcheckbox"):a.setAttribute("role","menuitem"),this.type==="submenu"&&(a.setAttribute("aria-haspopup","true"),a.setAttribute("aria-expanded","false"));const y=this.abortController.signal;return a.addEventListener("pointerenter",this,{signal:y}),a.addEventListener("pointerleave",this,{signal:y}),a.addEventListener("pointerup",this,{signal:y}),a.addEventListener("click",this,{signal:y}),this._element}dispatchSelect(){if(!Gu(this._declaration))return;const a=new CustomEvent("menu-select",{cancelable:!0,bubbles:!0,detail:{modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data}});this.parentMenu.dispatchEvent(a)&&typeof this._declaration.onMenuSelect=="function"&&this._declaration.onMenuSelect({modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data})}handleEvent(a){var y;if(!(!this.visible||!this.enabled)){if(a.type==="click"){this.rootMenu.state==="modal"&&this.select(),a.stopPropagation(),a.preventDefault();return}if(a.type==="pointerenter"){const b=a;this.rootMenu.cancelDelayedOperation(),this.parentMenu.isSubmenuOpen&&((y=this.parentMenu.activeMenuItem)!=null&&y.movingTowardSubmenu(b))?this.rootMenu.scheduleOperation(()=>{this.parentMenu.activeMenuItem=this,this.openSubmenu()}):(this.parentMenu.activeMenuItem=this,this.openSubmenu({withDelay:!0}));return}if(a.type==="pointerleave"){this.rootMenu.activeSubmenu===this.parentMenu&&(this.parentMenu.activeMenuItem=null);return}if(a.type==="pointerup"){this.rootMenu.state!=="modal"&&this.select(),a.stopPropagation(),a.preventDefault();return}}}select(){if(this.rootMenu.cancelDelayedOperation(),this.type==="submenu"){this.openSubmenu();return}this.active=!1,setTimeout(()=>{this.active=!0,setTimeout(()=>{this.rootMenu.hide(),this.dispatchSelect()},$0)},$0)}openSubmenu(a){var y;if(this.type!=="submenu"||!this.element)return;if((y=a==null?void 0:a.withDelay)!=null&&y){this.rootMenu.scheduleOperation(()=>this.openSubmenu());return}const b=this.element.getBoundingClientRect(),E=J0(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:X0(b,"trailing",E),y:b.top-4},alternateLocation:{x:X0(b,"leading",E),y:b.top-4}})}movingTowardSubmenu(a){if(!this.element||this.type!=="submenu")return!1;const y=this.rootMenu.lastMoveEvent;if(!y)return!1;const b=a.timeStamp-y.timeStamp;if(b>500)return!1;const E=a.clientX-y.clientX;if(wv(E,y.clientY-a.clientY,b)<=.2)return!1;let ie="right";if(this.submenu.element){const oe=this.submenu.element.getBoundingClientRect(),fe=this.element.getBoundingClientRect();oe.left<fe.left+fe.width/2&&(ie="left")}return ie==="right"?E>0:E<0}};function wv(a,y,b){return Math.hypot(a,y)/b}function pd(a,y){return a===void 0||typeof a!="function"?a:(y!=null||(y={alt:!1,control:!1,shift:!1,meta:!1}),a(y))}var tp=class Ed{constructor(y,b){this._element=null,this._activeMenuItem=null,this._dirty=!0;var E,ee;this.parentMenu=(E=b==null?void 0:b.parentMenu)!=null?E:null,this._submenuClass=b==null?void 0:b.submenuClass,this.columnCount=(ee=b==null?void 0:b.columnCount)!=null?ee:1,this.isSubmenuOpen=!1,this.menuItems=y}get children(){return this._menuItems}set menuItems(y){const b=this.parentMenu;this.dispose(),this.parentMenu=b,y=[...y],this._menuItems=y.map(E=>E.onCreate?E.onCreate(E,this):new ep(E,this)),this.hasCheck=void 0,this.dirty=!0}dispose(){var y;this.hide(),this._element&&this._element.remove(),this._abortController&&this._abortController.abort(),(y=this._menuItems)==null||y.forEach(b=>b.dispose()),this._menuItems=[],this._activeMenuItem=null,this.parentMenu=null}handleEvent(y){if(y.type==="wheel"&&this._element){const b=y;this._element.scrollBy(0,b.deltaY),y.stopPropagation()}}dispatchEvent(y){return this.rootMenu.dispatchEvent(y)}get rootMenu(){return this.parentMenu.rootMenu}updateState(y){var b,E,ee;this._menuItems.forEach(be=>be.updateState(y));const ie=this.hasCheck;this.hasCheck=this._menuItems.some(be=>be.visible&&be.hasCheck),this.hasCheck!==ie&&this._menuItems.forEach(be=>be.updateState(y));let oe,fe=0;for(const be of this._menuItems)be.type==="heading"?(oe&&fe===0&&(oe.visible=!1),oe=be,fe=0):be.type==="divider"&&oe?(oe.visible=fe>0,oe=void 0,fe=0):oe&&be.visible&&(fe+=1);oe&&(oe.visible=fe>0);let me=!0;for(const be of this._menuItems)be.type==="divider"?(be.visible=!me,me=!0):be.visible&&(me=!1);(b=this.activeMenuItem)!=null&&b.visible||(this.activeMenuItem=null),!((E=this.activeMenuItem)!=null&&E.enabled)&&((ee=this.activeMenuItem)==null?void 0:ee.type)==="submenu"&&this._activeMenuItem.submenu.hide(),this._dirty=!1}get enabled(){return this.updateIfDirty(),this._menuItems.some(y=>y.type!=="divider"&&y.visible&&y.enabled)}get visible(){return this.updateIfDirty(),this._menuItems.some(y=>y.type!=="divider"&&y.visible)}set dirty(y){console.assert(y===!0),this._dirty!==y&&y&&this.parentMenu&&(this._dirty=!0,this.parentMenu.dirty=!0)}updateIfDirty(){this._dirty&&this.updateState(this.rootMenu.modifiers)}updateElement(){var y;if(this._element){this._element.textContent="";for(const{element:b,visible:E}of this._menuItems)b&&E&&this._element.append(b);(y=this._element.querySelector("li:first-of-type"))==null||y.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const y=document.createElement("menu");y.setAttribute("role","menu"),y.setAttribute("tabindex","-1"),y.setAttribute("aria-orientation","vertical"),y.setAttribute("part","ui-menu-container"),this._submenuClass&&y.classList.add(this._submenuClass),y.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const b=this._abortController.signal;return y.addEventListener("focus",this,{signal:b}),y.addEventListener("wheel",this,{passive:!0,signal:b}),this._element=y,this.updateElement(),y}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(y){var b,E,ee,ie;if(this.rootMenu.cancelDelayedOperation(),y!==this._activeMenuItem){if(this.activeMenuItem){const oe=this.activeMenuItem;oe.active=!1,(b=oe.submenu)==null||b.hide()}if(!((E=y==null?void 0:y.visible)==null||E)){this._activeMenuItem=null;return}this._activeMenuItem=y,y&&(y.active=!0)}y?(ee=y.element)==null||ee.focus({preventScroll:!0}):(ie=this._element)==null||ie.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let y=0,b=!1;const E=this._menuItems;for(;!b&&y<=E.length-1;){const ee=E[y];b=ee.type!=="divider"&&ee.visible&&ee.enabled,y+=1}return b?E[y-1]:null}get lastMenuItem(){this.updateIfDirty();const y=this._menuItems;let b=y.length-1,E=!1;for(;!E&&b>=0;){const ee=y[b];E=ee.type!=="divider"&&ee.visible&&ee.enabled,b-=1}return E?y[b+1]:null}nextMenuItem(y){if(y===0)return this._activeMenuItem;if(!this._activeMenuItem)return y>0?this.firstMenuItem:this.lastMenuItem;if(!this.firstMenuItem||!this.lastMenuItem||!this._activeMenuItem)return null;this.updateIfDirty();const b=this._menuItems.indexOf(this.firstMenuItem),E=this._menuItems.indexOf(this.lastMenuItem);let ee=this._menuItems.indexOf(this._activeMenuItem),ie=1;for(;ee>=b&&ee<=E;){ee+=y>0?1:-1;const oe=this._menuItems[ee];if(!oe)break;if(oe.visible&&oe.enabled){if(ie===Math.abs(y))return this._menuItems[ee];ie+=1}}return y>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(y){this.updateIfDirty();const E=this._menuItems.filter(ee=>ee.visible&&ee.enabled).indexOf(y);return E<0?-1:E%this.columnCount}static get collator(){return Ed._collator||(Ed._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),Ed._collator}findMenuItem(y){var b;this.updateIfDirty();const E=this._menuItems.filter(fe=>fe.type!=="divider"&&fe.visible&&fe.enabled);if(E.length===0)return null;const ee=Math.max(...E.map(fe=>fe.label.length))-y.length;if(ee<0)return null;let ie=null,oe=0;for(;oe<ee&&!ie;)ie=(b=E.find(fe=>Ed.collator.compare(y,fe.label.substring(oe,y.length))===0))!=null?b:null,oe++;return ie}show(y){return!this.visible||!y.container?!1:(this.updateElement(),y.container.appendChild(this.element),et()&&(this.element.popover="manual",this.element.showPopover()),y.location&&bv(this.element,{location:y.location,alternateLocation:y.alternateLocation,verticalPos:"bottom",horizontalPos:"start"}),this.element.focus({preventScroll:!0}),this.parentMenu&&(this.parentMenu.openSubmenu=this),!0)}hide(){var y,b,E,ee,ie;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),et()&&((y=this._element)!=null&&y.popover)&&this.element.hidePopover(),(E=(b=this.parentMenu)==null?void 0:b.element)==null||E.focus(),(ie=(ee=this._element)==null?void 0:ee.parentNode)==null||ie.removeChild(this._element)}set openSubmenu(y){var b,E,ee,ie;const oe=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((E=this.activeMenuItem.element)==null||E.setAttribute("aria-expanded",oe.toString())),(ie=(ee=this.activeMenuItem)==null?void 0:ee.element)==null||ie.classList.toggle("is-submenu-open",oe),this.isSubmenuOpen=oe}},np=class rm extends tp{constructor(y,b){var E;super(y),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(E=b==null?void 0:b.host)!=null?E:null,this.isDynamic=y.some(rp),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(y){Hm(this._modifiers,y)||(this._modifiers=y,this.dirty=!0)}get activeSubmenu(){let y=this;for(;y.isSubmenuOpen;)y=y.activeMenuItem.submenu;return y}set dirty(y){this._updating||(console.assert(y===!0),this._dirty!==y&&(this._dirty=!0,y&&setTimeout(()=>{this.updateState(this.modifiers),this.updateElement()})))}updateState(y){this._updating=!0,this.modifiers=y!=null?y:this.modifiers,super.updateState(this.modifiers),this._updating=!1}handleKeyupEvent(y){this.isDynamic&&(this.modifiers=Nc(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,E,ee;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=Nc(y));let ie=!0;const oe=this.activeSubmenu,fe=oe.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":fe==null||fe.select(Nc(y));break;case"ArrowRight":if((fe==null?void 0:fe.type)==="submenu")fe.select(Nc(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!fe)oe.activeMenuItem=oe.firstMenuItem;else{const me=(b=oe.getMenuItemColumn(fe))!=null?b:-1;if(me>=0&&me<((E=oe.columnCount)!=null?E:1)-1){const be=oe.nextMenuItem(1);be&&(oe.activeMenuItem=be)}}break;case"ArrowLeft":if(oe===this.rootMenu)fe||(oe.activeMenuItem=oe.firstMenuItem);else if((fe&&(ee=oe.getMenuItemColumn(fe))!=null?ee:-1)<=0||!fe){oe.hide();const be=oe.parentMenu.activeMenuItem;if(be){const{element:ke}=be;ke==null||ke.focus(),ke==null||ke.classList.remove("is-submenu-open")}}else{const be=oe.nextMenuItem(-1);be&&(oe.activeMenuItem=be)}break;case"ArrowDown":oe.activeMenuItem=oe.nextMenuItem(oe.columnCount);break;case"ArrowUp":oe.activeMenuItem=oe.nextMenuItem(-oe.columnCount);break;case"Home":case"PageUp":oe.activeMenuItem=oe.firstMenuItem;break;case"End":case"PageDown":oe.activeMenuItem=oe.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const me=oe.findMenuItem(this.typingBuffer);me&&(oe.activeMenuItem=me),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(Sf(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const me=oe.findMenuItem(this.typingBuffer);me&&(oe.activeMenuItem=me),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else ie=!1}ie&&(y.preventDefault(),y.stopPropagation())}handleEvent(y){if(y.type==="keydown")this.handleKeydownEvent(y);else if(y.type==="keyup")this.handleKeyupEvent(y);else if(y.type==="pointermove")this.lastMoveEvent=y;else if(y.type==="pointerup"&&y.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":this.state==="modal"&&this.hide();else if(y.type==="contextmenu"){y.preventDefault(),y.stopPropagation();return}super.handleEvent(y)}dispatchEvent(y){return this._host?this._host.dispatchEvent(y):!0}get scrim(){return Zu.element}connectScrim(y){const b=this.scrim;b.addEventListener("pointerup",this),b.addEventListener("contextmenu",this),b.addEventListener("keydown",this),b.addEventListener("keyup",this),b.addEventListener("pointermove",this),Zu.open({root:y,onDismiss:()=>this.hide()})}disconnectScrim(){const y=this.scrim;y.removeEventListener("pointerup",this),y.removeEventListener("contextmenu",this),y.removeEventListener("keydown",this),y.removeEventListener("keyup",this),y.removeEventListener("pointermove",this),Zu.state==="open"&&Zu.scrim.close()}get rootMenu(){return this}show(y){return this._onDismiss=y==null?void 0:y.onDismiss,y!=null&&y.modifiers&&(this.modifiers=y.modifiers),this.updateState(),this.connectScrim(y==null?void 0:y.target),super.show(ye(Ee({},y),{container:this.scrim}))?(this._openTimestamp=Date.now(),this.state="open",!0):(this.disconnectScrim(),!1)}hide(){this.cancelDelayedOperation(),this.state!==void 0&&(this.state!=="closed"&&(this.activeMenuItem=null,Zu.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(y){this.cancelDelayedOperation();const b=rm.SUBMENU_DELAY;if(b<=0){y();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,y()},b)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};np.SUBMENU_DELAY=120;var Ev=np;function rp(a){return Hh(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(Gu(a)||hd(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||Gu(a)&&typeof a.checked=="function"?!0:hd(a)?a.submenu.some(rp):!1}var Jf=class{};Jf.DELAY=300,Jf.MAX_DISTANCE=10;function Cv(a){return new Promise((y,b)=>{const E=Cf(a);E||y(!1);let ee=E;const ie=setTimeout(()=>{oe.abort(),y(xv(ee,E)<Jf.MAX_DISTANCE)},Jf.DELAY),oe=new AbortController,fe=oe.signal;for(const me of["pointermove","pointerup","pointercancel"])window.addEventListener(me,be=>{if(be.type==="pointerup"||be.type==="pointercancel")clearTimeout(ie),oe.abort(),y(!1);else if(be.type==="pointermove"){const ke=Cf(be);ke&&(ee=ke)}},{passive:!0,signal:fe})})}function ip(a,y,b){return Sc(this,null,function*(){if(a.type==="contextmenu"){const E=a;if(b.show({target:y,location:Cf(E),modifiers:Nc(E)}))return a.preventDefault(),a.stopPropagation(),!0}if(a.type==="keydown"){const E=a;if(E.code==="ContextMenu"||E.code==="F10"&&E.shiftKey){const ee=y==null?void 0:y.getBoundingClientRect();if(ee&&b.show({target:y,location:{x:Math.ceil(ee.left+ee.width/2),y:Math.ceil(ee.top+ee.height/2)},modifiers:Nc(E)}))return a.preventDefault(),a.stopPropagation(),!0}}if(a.type==="pointerdown"&&a.pointerType!=="mouse"&&a.button===0){let E=a.target;for(;E&&y!==E;)E=E.parentNode;if(!E||!b.visible)return!1;const ee=Cf(a);if(yield Cv(a))return b.state!=="closed"?!1:(b.show({target:y,location:ee}),!0)}return!1})}var ap={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};Gt(Object.keys(ap),"{body:auto}",{createAtom:a=>new z(ye(Ee({},a),{body:nt(a.args[0]),accentChar:ap[a.command.slice(1)]}))}),Gt(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=Kt(nt(a.args[0]));return new z(ye(Ee({},a),{body:nt(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),Gt(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new z(ye(Ee({},a),{body:nt(a.args[0]),svgAccent:"overarc"}))}),Gt(["underarc","underparen"],"{body:auto}",{createAtom:a=>new Eu(ye(Ee({},a),{body:nt(a.args[0]),svgBelow:"underarc"}))}),Gt("utilde","{body:auto}",{createAtom:a=>{const y=nt(a.args[0]),b=Kt(y),E="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new Eu(ye(Ee({},a),{body:y,svgBelow:E,boxType:dc(y)}))}}),Gt("^","{:string}",{createAtom:a=>{var y;return new Zn(ye(Ee({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE2",e:"\xEA",i:"\xEE",o:"\xF4",u:"\xFB",A:"\xC2",E:"\xCA",I:"\xCE",O:"\xD4",U:"\xDB"}[a.args[0]])!=null?y:"^"}))}}),Gt("`","{:string}",{createAtom:a=>{var y;return new Zn(ye(Ee({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE0",e:"\xE8",i:"\xEC",o:"\xF2",u:"\xF9",A:"\xC0",E:"\xC8",I:"\xCC",O:"\xD2",U:"\xD9"}[a.args[0]])!=null?y:"`"}))}}),Gt("'","{:string}",{createAtom:a=>{var y;return new Zn(ye(Ee({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE1",e:"\xE9",i:"\xED",o:"\xF3",u:"\xFA",A:"\xC1",E:"\xC9",I:"\xCD",O:"\xD3",U:"\xDA"}[a.args[0]])!=null?y:"'"}))}}),Gt('"',"{:string}",{createAtom:a=>{var y,b;return new Zn(ye(Ee({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\xE4",e:"\xEB",i:"\xEF",o:"\xF6",u:"\xFC",A:"\xC4",E:"\xCB",I:"\xCB",O:"\xD6",U:"\xDC"}[a.args[0]])!=null?b:'"'+a.args[0]:'"'}))}}),Gt(".","{:string}",{createAtom:a=>{var y,b;return new Zn(ye(Ee({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\u0227",e:"\u0117",i:"\u0307i",o:"\u022F",u:"\u0307u",A:"\u0226",E:"\u0116",I:"\u0130",O:"\u022E",U:"\u0307U"}[a.args[0]])!=null?b:"."+a.args[0]:"."}))}}),Gt("=","{:string}",{createAtom:a=>{var y,b;return new Zn(ye(Ee({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\u0101",e:"\u0113",i:"\u012B",o:"\u014D",u:"\u016B",A:"\u0100",E:"\u0112",I:"\u012A",O:"\u014C",U:"\u016A"}[a.args[0]])!=null?b:"="+a.args[0]:"="}))}}),Gt("~","{:string}",{createAtom:a=>{var y;return new Zn(ye(Ee({type:"mord"},a),{isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={n:"\xF1",N:"\xD1",a:"\xE3",o:"\xF5",A:"\xC3",O:"\xD5"}[a.args[0]])!=null?y:"\xB4"}))}}),Gt("c","{:string}",{createAtom:a=>{var y;return new Zn(ye(Ee({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),Gt("enclose","{notation:string}[style:string]{body:auto}",{createAtom:a=>{var y,b;const E=a.args,ee={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(y=a.style)!=null?y:{}};if(E[1]){const oe=E[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const fe of oe){const me=fe.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(me)ee.strokeWidth=me[1],ee.strokeStyle=me[2],ee.strokeColor=me[3];else{const be=fe.match(/\s*([a-z]*)\s*=\s*"(.*)"/);be&&(be[1]==="mathbackground"?ee.backgroundcolor=be[2]:be[1]==="mathcolor"?ee.strokeColor=be[2]:be[1]==="padding"?ee.padding=be[2]:be[1]==="shadow"&&(ee.shadow=be[2]))}}ee.strokeStyle==="dashed"?ee.svgStrokeStyle="5,5":ee.strokeStyle==="dotted"&&(ee.svgStrokeStyle="1,5")}ee.borderStyle=`${ee.strokeWidth} ${ee.strokeStyle} ${ee.strokeColor}`;const ie={};return((b=E[0])!=null?b:"").split(/[, ]/).filter(oe=>oe.length>0).forEach(oe=>{ie[oe.toLowerCase()]=!0}),new Rd(a.command,nt(E[2]),ie,ee)}}),Gt("cancel","{body:auto}",{createAtom:a=>{var y;return new Rd(a.command,nt(a.args[0]),{updiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),Gt("bcancel","{body:auto}",{createAtom:a=>{var y;return new Rd(a.command,nt(a.args[0]),{downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),Gt("xcancel","{body:auto}",{createAtom:a=>{var y;return new Rd(a.command,nt(a.args[0]),{updiagonalstrike:!0,downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),Gt(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new Eu(ye(Ee({},a),{body:nt((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),Gt("overbrace","{:auto}",{createAtom:a=>new Eu(ye(Ee({},a),{body:nt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),Gt(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new Eu(ye(Ee({},a),{body:nt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),Gt(["underbrace"],"{:auto}",{createAtom:a=>new Eu(ye(Ee({},a),{body:nt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),Gt(["xrightarrow","longrightarrow","xleftarrow","longleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","longleftrightarrow","xLeftrightarrow","xrightleftharpoons","longrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xleftrightarrows","longleftrightarrows","xRightleftharpoons","longRightleftharpoons","xLeftrightharpoons","longLeftrightharpoons"],"[:auto]{:auto}",{createAtom:a=>{var y,b,E,ee,ie;return new Eu(ye(Ee({},a),{svgBody:a.command.slice(1),above:((b=nt((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:nt((E=a.args)==null?void 0:E[1]),below:(ie=nt((ee=a.args)==null?void 0:ee[0]))!=null?ie:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(a,y)=>a.command+(a.hasEmptyBranch("below")?"":`[${a.belowToLatex(y)}]`)+`{${a.aboveToLatex(y)}}${a.supsubToLatex(y)}`}),Gt(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","cotg","coth","ctg","cth","csc","cosec","deg","dim","exp","gcd","hom","inf","ker","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th","arcsec","arccsc","arsinh","arcosh","artanh","arcsech","arccsch"],"",{isFunction:!0,ifMode:"math",createAtom:a=>new Pc(a.command.slice(1),ye(Ee({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),Gt(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new Pc({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],ye(Ee({},a),{limits:"over-under",variant:"main"}))}),Gt(["lim","mod"],"",{ifMode:"math",createAtom:a=>new Pc(a.command.slice(1),ye(Ee({},a),{limits:"over-under",variant:"main"}))}),Gt(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new Pc(a.command.slice(1),ye(Ee({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),Gt(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new Zn(ye(Ee({},a),{body:nt(a.args[0])})),serialize:(a,y)=>`\\ang{${a.bodyToLatex(y)}}`,render:(a,y)=>{const b=a.createBox(y),E=b.caret;b.caret=void 0;const ee=new Nr("\xB0",{style:ye(Ee({},a.style),{variant:"normal",variantStyle:"up"})});return new Nr([b,ee],{type:"inner",isSelected:a.isSelected,caret:E})}}),Gt("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new o0(ye(Ee({},a),{body:nt(a.args[1]),index:a.args[0]?nt(a.args[0]):void 0}))}),Gt(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=Ee({},a),b=a.command,E=a.args;switch(b){case"\\dfrac":case"\\frac":case"\\tfrac":y.hasBarLine=!0;break;case"\\atopfrac":y.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":y.hasBarLine=!1,y.leftDelim="(",y.rightDelim=")";break;case"\\cfrac":y.hasBarLine=!0,y.continuousFraction=!0;break;default:}switch(b){case"\\dfrac":case"\\dbinom":y.mathstyleName="displaystyle";break;case"\\tfrac":case"\\tbinom":y.mathstyleName="textstyle";break;default:}return new id(E[0]?nt(E[0]):[new sa],E[1]?nt(E[1]):[new sa],y)},serialize:(a,y)=>{const b=a.aboveToLatex(y),E=a.belowToLatex(y);return/^[0-9]$/.test(b)&&/^[0-9]$/.test(E)?`${a.command}${b}${E}`:Ua(a.command,b,E)}}),Gt(["brace","brack"],"",{infix:!0,createAtom:a=>new id(nt(a.args[0]),nt(a.args[1]),ye(Ee({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>di([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),Gt(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const E=a.args;return a.command==="\\choose"&&(y="(",b=")"),new id(nt(E[0]),nt(E[1]),ye(Ee({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>di([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),Gt(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:a=>{var y,b;const E=a.args;return new id(nt(E[0]),nt(E[1]),ye(Ee({},a),{leftDelim:(y=E[2])!=null?y:".",rightDelim:(b=E[3])!=null?b:".",hasBarLine:!1}))},serialize:(a,y)=>`${a.aboveToLatex(y)} ${a.command}${a.leftDelim}${a.rightDelim}${a.belowToLatex(y)}`}),Gt("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new id(nt(a.args[0]),nt(a.args[1]),ye(Ee({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),Gt(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:a=>new fh({coprod:"\u2210",bigvee:"\u22C1",bigwedge:"\u22C0",biguplus:"\u2A04",bigcap:"\u22C2",bigcup:"\u22C3",intop:"\u222B",prod:"\u220F",sum:"\u2211",bigotimes:"\u2A02",bigoplus:"\u2A01",bigodot:"\u2A00",bigsqcup:"\u2A06",smallint:"\u222B"}[a.command.slice(1)],ye(Ee({},a),{limits:"auto",variant:"main"}))}),Gt("smallint","",{ifMode:"math",createAtom:a=>new Pc("\u222B",ye(Ee({},a),{limits:"adjacent",variant:"main"}))});var op={int:"\u222B",iint:"\u222C",iiint:"\u222D",oint:"\u222E",oiint:"\u222F",oiiint:"\u2230",intclockwise:"\u2231",varointclockwise:"\u2232",ointctrclockwise:"\u2233",intctrclockwise:"\u2A11",sqcup:"\u2294",sqcap:"\u2293",uplus:"\u228E",wr:"\u2240",amalg:"\u2A3F",Cap:"\u22D2",Cup:"\u22D3",doublecap:"\u22D2",doublecup:"\u22D3"};Gt(Object.keys(op),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=op[y.slice(1)];return new fh(b,ye(Ee({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),Gt(["Re","Im"],"",{ifMode:"math",createAtom:a=>new Pc({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],ye(Ee({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),Gt("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new r0(ye(Ee({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),Gt("the","{:value}",{createAtom:a=>new Zn(ye(Ee({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const E=new qa({parent:y},a.style);let ee="";a.isSelected&&(ee+=" ML__selected");const ie=E.evaluate(a.args[0]);return new Nr(((b=Zs(ie))!=null?b:"").split("").map(oe=>new Nr(oe,{type:"ord",classes:ee,mode:a.mode,isSelected:a.isSelected,style:Ee({variant:"main"},a.style)})),{type:"lift",style:a.style,caret:a.caret,isSelected:a.isSelected,classes:ee}).wrap(E)},serialize:a=>{var y;return`\\the${(y=Zs(a.args[0]))!=null?y:"\\relax"}`}}),Gt("mathtip","{:auto}{:math}",{createAtom:a=>new hh(ye(Ee({},a),{body:nt(a.args[0]),tooltip:nt(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Zn.serialize([a.tooltip],ye(Ee({},y),{defaultMode:"math"}))}}`}),Gt("texttip","{:auto}{:text}",{createAtom:a=>new hh(ye(Ee({},a),{body:nt(a.args[0]),tooltip:nt(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Zn.serialize([a.tooltip],ye(Ee({},y),{defaultMode:"text"}))}}`}),Gt("error","{:math}",{createAtom:a=>new Zn(ye(Ee({},a),{body:nt(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),Gt("ensuremath","{:math}",{createAtom:a=>new Zn(ye(Ee({},a),{body:nt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(ye(Ee({},y),{defaultMode:"math"}))}}`}),Gt("color","{:value}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=Zs(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),Gt("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=Zs(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),Gt("boxed","{content:math}",{createAtom:a=>new Is(ye(Ee({},a),{body:nt(a.args[0]),framecolor:{string:"black"}}))}),Gt("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimBackgroundColor:(E=Zs(y[0]))!=null?E:void 0,backgroundColor:b.toBackgroundColor((ee=y[0])!=null?ee:{string:"yellow"})}}}),Gt("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new Is(ye(Ee({},a),{body:nt(a.args[2]),framecolor:(y=a.args[0])!=null?y:{string:"blue"},backgroundcolor:(b=a.args[1])!=null?b:{string:"yellow"}}))},serialize:(a,y)=>{var b,E;return y.skipStyles?a.bodyToLatex(ye(Ee({},y),{defaultMode:"text"})):Ua(a.command,(b=Zs(a.framecolor))!=null?b:"",(E=Zs(a.backgroundcolor))!=null?E:"",a.bodyToLatex(ye(Ee({},y),{defaultMode:"text"})))}}),Gt("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],E=nt(a.args[1]);return b?new Is(ye(Ee({},a),{body:E,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new Is(ye(Ee({},a),{body:E}))},serialize:(a,y)=>{var b,E;if(y.skipStyles)return a.bodyToLatex(y);let ee=a.command;if(Number.isFinite(a.padding)||a.border!==void 0||a.backgroundcolor!==void 0){const ie=[];a.padding&&ie.push((b=Zs(a.padding))!=null?b:""),a.border&&ie.push(`border: ${a.border}`),a.backgroundcolor&&ie.push((E=Zs(a.backgroundcolor))!=null?E:""),ee+=`[${ie.join(",")}]`}return Ua(ee,a.bodyToLatex(y))}}),Gt(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new Zn(ye(Ee({},a),{body:nt(a.args[0])})),render:(a,y)=>{const b=new qa({parent:y,mathstyle:a.command.slice(1)},a.style),E=Zn.createBox(b,a.body,{type:"lift"});return a.caret&&(E.caret=a.caret),a.bind(y,E)},serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`{${di([a.command,a.bodyToLatex(y)])}}`}),Gt(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{applyStyle:a=>({fontSize:{"\\tiny":1,"\\scriptsize":2,"\\footnotesize":3,"\\small":4,"\\normalsize":5,"\\large":6,"\\Large":7,"\\LARGE":8,"\\huge":9,"\\Huge":10}[a]})}),Gt("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),Gt("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),Gt("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),Gt("selectfont","",{ifMode:"text",applyStyle:()=>({})}),Gt("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),Gt(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new Zn(ye(Ee({},a),{body:nt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),Gt("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),Gt("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),Gt("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),Gt("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),Gt("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),Gt("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),Gt("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),Gt("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),Gt("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),Gt("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),Gt("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),Gt("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),Gt("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),Gt("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),Gt("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),Gt("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),Gt("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),Gt("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),Gt("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),Gt("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),Gt("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),Gt("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),Gt("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),Gt("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),Gt("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),Gt("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),Gt("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),Gt(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),Gt(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),Gt("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),Gt("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),Gt("mbox","{:text}",{ifMode:"math",createAtom:a=>new Zn(ye(Ee({},a),{type:"mord",body:nt(a.args[0]),mode:"math"})),serialize:(a,y)=>Ua("\\mbox",a.bodyToLatex(ye(Ee({},y),{defaultMode:"text"})))}),Gt("text","{:text}",{ifMode:"math",applyMode:"text"}),Gt(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new Zn(ye(Ee({},a),{body:nt(a.args[1])})),serialize:(a,y)=>!a.args[0]||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`,render:(a,y)=>{var b;return a.createBox(y,{classes:(b=a.args[0])!=null?b:""})}}),Gt(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new Zn(ye(Ee({},a),{body:nt(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const E=a.createBox(y);return E.cssId=(b=a.args[0])!=null?b:"",E}}),Gt("htmlData","{data:string}{content:auto}",{createAtom:a=>new Zn(ye(Ee({},a),{body:nt(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`\\htmlData{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const E=a.createBox(y);return E.htmlData=(b=a.args[0])!=null?b:"",E}}),Gt(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new Zn(ye(Ee({},a),{body:nt(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const E=a.createBox(y);return E.htmlStyle=(b=a.args[0])!=null?b:"",E}}),Gt("em","{:rest}",{createAtom:a=>new Zn(ye(Ee({},a),{body:nt(a.args[0])})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`{\\em ${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__emph",boxType:"lift"})}),Gt("emph","{:auto}",{createAtom:a=>new Zn(ye(Ee({},a),{body:nt(a.args[1])})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\emph{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__emph",boxType:"lift"})});var sp={"\\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}};Gt(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new i0(ye(Ee({},a),{delim:(y=a.args[0])!=null?y:".",size:sp[a.command].size,delimType:sp[a.command].mclass}))}}),Gt(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new Hd(ye(Ee({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),Gt(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new Hd(ye(Ee({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),Gt("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new Zn(a),render:(a,y)=>{let b=0;const E=y.mathstyle.id;(E===Bc||E===Ru)&&(b=1),(E===tc||E===Ml)&&(b=2),(E===$l||E===sl)&&(b=3);const ee=nt(a.args[b]);return Zn.createBox(y,ee)},serialize:(a,y)=>`\\mathchoice{${Zn.serialize(a.args[0],y)}}{${Zn.serialize(a.args[1],y)}}{${Zn.serialize(a.args[2],y)}}{${Zn.serialize(a.args[3],y)}}`}),Gt("mathop","{:auto}",{createAtom:a=>new Zn(ye(Ee({},a),{type:"mop",body:nt(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let E=Zn.createBox(y,a.body);if(a.superscript||a.subscript){const ee=(b=a.subsupPlacement)!=null?b:"auto";E=ee==="over-under"||ee==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:E}):a.attachSupsub(y,{base:E})}return new Nr(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[Ua(a.command,a.bodyToLatex(y))];return a.explicitSubsupPlacement&&(a.subsupPlacement==="over-under"&&b.push("\\limits"),a.subsupPlacement==="adjacent"&&b.push("\\nolimits"),a.subsupPlacement==="auto"&&b.push("\\displaylimits")),b.push(a.supsubToLatex(y)),di(b)}}),Gt(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new Zn(ye(Ee({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:nt(a.args[0])}))}),Gt(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=nt(a.args[0]).map(b=>{var E;return b.type!=="first"&&(b.type="mord",b.value=(E={"\u2217":"*","\u2212":"-"}[b.value])!=null?E:b.value,b.isFunction=!1,!b.style.variant&&!b.style.variantStyle&&(b.style.variant="main",b.style.variantStyle="up")),b});return new Zn(ye(Ee({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let E=Zn.createBox(y,a.body);if(a.superscript||a.subscript){const ee=(b=a.subsupPlacement)!=null?b:"auto";E=ee==="over-under"||ee==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:E}):a.attachSupsub(y,{base:E})}return a.caret&&(E.caret=a.caret),new Nr(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[Ua(a.command,a.bodyToLatex(y))];return a.explicitSubsupPlacement&&(a.subsupPlacement==="over-under"&&b.push("\\limits"),a.subsupPlacement==="adjacent"&&b.push("\\nolimits"),a.subsupPlacement==="auto"&&b.push("\\displaylimits")),b.push(a.supsubToLatex(y)),di(b)}}),Gt(["char","unicode"],"{charcode:value}",{createAtom:a=>new Zn(ye(Ee({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${Zs((y=a.args[0])!=null?y:{number:10067,base:"hexadecimal"})}`},render:(a,y)=>{let b=y.evaluate(a.args[0]);return(!b||!("number"in b))&&(b={number:10067,base:"hexadecimal"}),a.value=String.fromCodePoint(b.number),a.createBox(y)}}),Gt("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new Zn(a),render:(a,y)=>{var b,E,ee;const ie=new qa({parent:y,mathstyle:"textstyle"},a.style),oe=ie.toEm((b=a.args[0])!=null?b:{dimension:0}),fe=ie.toEm((E=a.args[1])!=null?E:{dimension:10}),me=ie.toEm((ee=a.args[2])!=null?ee:{dimension:10}),be=new Nr(null,{classes:"rule",type:"ord"});return be.width=fe,be.height=me+oe,be.depth=-oe,be.setStyle("border-right-width",fe,"em"),be.setStyle("border-top-width",me,"em"),be.setStyle("border-color",a.style.color),be.setStyle("vertical-align",oe,"em"),a.isSelected&&be.setStyle("opacity","50%"),a.bind(ie,be),a.caret&&(be.caret=a.caret),be.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${Zs(a.args[0])}]`:""}{${Zs(a.args[1])}}{${Zs(a.args[2])}}`}),Gt(["overline","underline"],"{:auto}",{createAtom:a=>new Zn(ye(Ee({},a),{body:nt(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),E=new qa({parent:y,mathstyle:"cramp"},a.style),ee=Zn.createBox(E,a.body);if(!ee)return null;const ie=E.metrics.defaultRuleThickness/E.scalingFactor,oe=new Nr(null,{classes:b+"-line"});oe.height=ie,oe.maxFontSize=ie*1.125*E.scalingFactor;let fe;return b==="overline"?fe=new Lo({shift:0,children:[{box:ee},3*ie,{box:oe},ie]}):fe=new Lo({top:ee.height,children:[ie,{box:oe},3*ie,{box:ee}]}),a.caret&&(fe.caret=a.caret),new Nr(fe,{classes:b,type:"ignore"})}}),Gt("overset","{:auto}{base:auto}",{createAtom:a=>{const y=nt(a.args[1]);return new Eu(ye(Ee({},a),{above:nt(a.args[0]),body:y,skipBoundary:!1,boxType:dc(y)}))},serialize:(a,y)=>Ua(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),Gt("underset","{:auto}{base:auto}",{createAtom:a=>{const y=nt(a.args[1]);return new Eu(ye(Ee({},a),{below:nt(a.args[0]),body:y,skipBoundary:!1,boxType:dc(y)}))},serialize:(a,y)=>Ua(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),Gt("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=nt(a.args[2]);return new Eu(ye(Ee({},a),{above:nt(a.args[0]),below:nt(a.args[1]),body:y,skipBoundary:!1,boxType:dc(y)}))},serialize:(a,y)=>Ua(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),Gt(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new Eu(ye(Ee({},a),{body:nt(a.args[2]),above:nt(a.args[1]),below:nt(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>Ua(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),Gt("smash","[:string]{:auto}",{createAtom:a=>{var y,b,E,ee;return new Kd(ye(Ee({},a),{body:nt(a.args[1]),smashHeight:(b=(y=a.args[0])==null?void 0:y.includes("t"))!=null?b:!0,smashDepth:(ee=(E=a.args[0])==null?void 0:E.includes("b"))!=null?ee:!0}))}}),Gt(["vphantom"],"{:auto}",{createAtom:a=>new Kd(ye(Ee({},a),{body:nt(a.args[0]),isInvisible:!0,smashWidth:!0}))}),Gt(["hphantom"],"{:auto}",{createAtom:a=>new Kd(ye(Ee({},a),{body:nt(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),Gt(["phantom"],"{:auto}",{createAtom:a=>new Kd(ye(Ee({},a),{body:nt(a.args[0]),isInvisible:!0}))}),Gt("not","{:math}",{createAtom:a=>{const y=nt(a.args[0]);return y.length===0?new Zn(ye(Ee({},a),{type:"mrel",value:"\uE020"})):new Zn(ye(Ee({},a),{body:[new Tc(ye(Ee({},a),{body:"\uE020",align:"right"})),...y],captureSelection:!0}))},serialize:(a,y)=>{const b=a.args[0],E=b&&typeof b=="object"&&"group"in b;return a.value!=="\uE020"?E?`\\not{${Zn.serialize(b.group,y)}}`:`\\not${Zn.serialize(b,y)}`:E?"\\not{}":"\\not"},render:(a,y)=>{if(a.value)return a.createBox(y);const E=a.args[0]&&typeof a.args[0]=="object"&&"group"in a.args[0]?"ord":dc(nt(a.args[0])),ee=Zn.createBox(y,a.body,{type:E});return a.caret&&(ee.caret=a.caret),a.bind(y,ee)}}),Gt(["ne","neq"],"",{createAtom:a=>new Zn(ye(Ee({},a),{type:"mrel",body:[new Tc(ye(Ee({},a),{body:"\uE020",align:"right",boxType:"rel"})),new Zn(ye(Ee({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),Gt("rlap","{:auto}",{createAtom:a=>new Tc(ye(Ee({},a),{body:nt(a.args[0]),align:"right"}))}),Gt("llap","{:auto}",{createAtom:a=>new Tc(ye(Ee({},a),{body:nt(a.args[0]),align:"left"}))}),Gt("mathrlap","{:math}",{createAtom:a=>new Tc(ye(Ee({},a),{body:nt(a.args[0]),align:"left"}))}),Gt("mathllap","{:math}",{createAtom:a=>new Tc(ye(Ee({},a),{body:nt(a.args[0]),align:"left"}))}),Gt("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new Is(ye(Ee({},a),{body:nt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return Ua("\\raisebox",(b=Zs(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),Gt("raise","{:value}{:auto}",{createAtom:a=>{var y;return new Is(ye(Ee({},a),{body:nt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return Ua("\\raise",(b=Zs(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),Gt("lower","{:value}{:auto}",{createAtom:a=>{var y;return new Is(ye(Ee({},a),{body:nt(a.args[1]),padding:{dimension:0},offset:(y=xu(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,E;return Ua("\\lower",(E=Zs(xu((b=a.offset)!=null?b:{dimension:0},-1)))!=null?E:"0pt",a.bodyToLatex(y))}}),ze("0123456789/@.?!"),bt(65,90),bt(97,122),ze([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),ze([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),ze([["\\backslash",92],["\\nabla",8711],["\\partial",8706],["\\ell",8467],["\\hbar",8463],["\\Q",81,"mord","double-struck"],["\\C",67,"mord","double-struck"],["\\P",80,"mord","double-struck"],["\\pounds",163],["\\euro",8364]]),ze([["\\rightarrow",8594],["\\to",8594],["\\leftarrow",8592],["\\gets",8592],["\\Rightarrow",8658],["\\Leftarrow",8656],["\\longrightarrow",10230],["\\longleftarrow",10229],["\\Longrightarrow",10233],["\\implies",10233],["\\Longleftarrow",10232],["\\impliedby",10232],["\\longleftrightarrow",10231],["\\biconditional",10231],["\\Longleftrightarrow",10234],["\\mapsto",8614],["\\longmapsto",10236],["\\uparrow",8593],["\\downarrow",8595],["\\Uparrow",8657],["\\Downarrow",8659],["\\updownarrow",8597],["\\Updownarrow",8661],["\\hookrightarrow",8618],["\\hookleftarrow",8617],["\\rightharpoonup",8640],["\\leftharpoonup",8636],["\\rightharpoondown",8641],["\\leftharpoondown",8637],["\\searrow",8600],["\\nearrow",8599],["\\swarrow",8601],["\\nwarrow",8598],["\\originalof",8886],["\\laplace",8886],["\\imageof",8887],["\\Laplace",8887]],"mrel"),ze([["\\mapsfrom",8612,"mrel"],["\\Mapsfrom",10502,"mrel"],["\\MapsTo",10503,"mrel"],["\\Yup",8516,"mord"],["\\lightning",8623,"mrel"],["\\leftarrowtriangle",8701,"mrel"],["\\rightarrowtriangle",8702,"mrel"],["\\leftrightarrowtriangle",8703,"mrel"],["\\boxdot",8865,"mbin"],["\\bigtriangleup",9651,"mbin"],["\\bigtriangledown",9661,"mbin"],["\\boxbar",9707,"mbin"],["\\Lbag",10181,"mopen"],["\\Rbag",10182,"mclose"],["\\llbracket",10214,"mopen"],["\\rrbracket",10215,"mclose"],["\\longmapsfrom",10235,"mrel"],["\\Longmapsfrom",10237,"mrel"],["\\Longmapsto",10238,"mrel"],["\\boxslash",10692,"mbin"],["\\boxbslash",10693,"mbin"],["\\boxast",10694,"mbin"],["\\boxcircle",10695,"mbin"],["\\boxbox",10696,"mbin"],["\\fatsemi",10783,"mop"],["\\leftslice",10918,"mrel"],["\\rightslice",10919,"mrel"],["\\interleave",10996,"mbin"],["\\biginterleave",11004,"mop"],["\\sslash",11005,"mbin"],["\\talloblong",11006,"mbin"]]),ze([["\\lbrace",123,"mopen"],["\\rbrace",125,"mclose"],["\\lparen",40,"mopen"],["\\rparen",41,"mclose"],["\\langle",10216,"mopen"],["\\rangle",10217,"mclose"],["\\lfloor",8970,"mopen"],["\\rfloor",8971,"mclose"],["\\lceil",8968,"mopen"],["\\rceil",8969,"mclose"],["\\vert",8739],["\\lvert",8739,"mopen"],["\\rvert",8739,"mclose"],["\\|",8741],["\\Vert",8741],["\\mVert",8741],["\\lVert",8741,"mopen"],["\\rVert",8741,"mclose"],["\\lbrack",91,"mopen"],["\\rbrack",93,"mclose"],["\\{",123,"mopen"],["\\}",125,"mclose"],["(",40,"mopen"],[")",41,"mclose"],["[",91,"mopen"],["]",93,"mclose"],["\\ulcorner",9484,"mopen","ams"],["\\urcorner",9488,"mclose","ams"],["\\llcorner",9492,"mopen","ams"],["\\lrcorner",9496,"mclose","ams"],["\\lgroup",10222,"mopen"],["\\rgroup",10223,"mclose"],["\\lmoustache",9136,"mopen"],["\\rmoustache",9137,"mclose"]]),ze([["\\dashrightarrow",8674],["\\dashleftarrow",8672],["\\Rrightarrow",8667],["\\Lleftarrow",8666],["\\leftrightarrows",8646],["\\rightleftarrows",8644],["\\curvearrowright",8631],["\\curvearrowleft",8630],["\\rightrightarrows",8649],["\\leftleftarrows",8647],["\\upuparrows",8648],["\\downdownarrows",8650],["\\vartriangle",9651],["\\triangleq",8796],["\\vartriangleleft",8882],["\\trianglelefteq",8884],["\\ntriangleleft",8938],["\\ntrianglelefteq",8940],["\\vartriangleright",8883],["\\trianglerighteq",8885],["\\ntriangleright",8939],["\\ntrianglerighteq",8941],["\\blacktriangleleft",9664],["\\blacktriangleright",9654],["\\leftarrowtail",8610],["\\rightarrowtail",8611],["\\looparrowright",8620],["\\looparrowleft",8619],["\\twoheadleftarrow",8606],["\\twoheadrightarrow",8608],["\\twoheadrightarrowtail",10518],["\\rightleftharpoons",8652],["\\leftrightharpoons",8651],["\\Rsh",8625],["\\Lsh",8624],["\\circlearrowright",8635],["\\circlearrowleft",8634],["\\restriction",8638],["\\upharpoonright",8638],["\\upharpoonleft",8639],["\\downharpoonright",8642],["\\downharpoonleft",8643],["\\rightsquigarrow",8669],["\\leadsto",8669],["\\leftrightsquigarrow",8621],["\\multimap",8888],["\\nleftarrow",8602],["\\nrightarrow",8603],["\\nRightarrow",8655],["\\nLeftarrow",8653],["\\nleftrightarrow",8622],["\\nLeftrightarrow",8654],["\\nvrightarrow",8696],["\\nvtwoheadrightarrow",10496],["\\nvrightarrowtail",10516],["\\nvtwoheadrightarrowtail",10519],["\\shortparallel",8741],["\\nless",8814],["\\nleqslant",57360],["\\lneq",10887],["\\lneqq",8808],["\\nleqq",57361],["\\lvertneqq",57356],["\\lnsim",8934],["\\lnapprox",10889],["\\nprec",8832],["\\npreceq",8928],["\\precnsim",8936],["\\precnapprox",10937],["\\nsim",8769],["\\nshortmid",57350],["\\nmid",8740],["\\nvdash",8876],["\\nvDash",8877],["\\ngtr",8815],["\\ngeqslant",57359],["\\ngeqq",57358],["\\gneq",10888],["\\gneqq",8809],["\\gvertneqq",57357],["\\gnsim",8935],["\\gnapprox",10890],["\\nsucc",8833],["\\nsucceq",8929],["\\succnsim",8937],["\\succnapprox",10938],["\\ncong",8774],["\\nshortparallel",57351],["\\nparallel",8742],["\\nVDash",8879],["\\nsupseteqq",57368],["\\supsetneq",8843],["\\varsupsetneq",57371],["\\supsetneqq",10956],["\\varsupsetneqq",57369],["\\nVdash",8878],["\\precneqq",10933],["\\succneqq",10934],["\\nsubseteqq",57366],["\\leqslant",10877],["\\geqslant",10878],["\\gtrsim",8819],["\\approxeq",8778],["\\thickapprox",8776],["\\lessapprox",10885],["\\gtrapprox",10886],["\\precapprox",10935],["\\succapprox",10936],["\\thicksim",8764],["\\succsim",8831],["\\precsim",8830],["\\backsim",8765],["\\eqsim",8770],["\\backsimeq",8909],["\\lesssim",8818],["\\nleq",8816],["\\ngeq",8817],["\\smallsmile",8995],["\\smallfrown",8994],["\\leqq",8806],["\\eqslantless",10901],["\\lll",8920],["\\lessgtr",8822],["\\lesseqgtr",8922],["\\lesseqqgtr",10891],["\\risingdotseq",8787],["\\fallingdotseq",8786],["\\subseteqq",10949],["\\Subset",8912],["\\sqsubset",8847],["\\preccurlyeq",8828],["\\curlyeqprec",8926],["\\vDash",8872],["\\Vvdash",8874],["\\bumpeq",8783],["\\Bumpeq",8782],["\\geqq",8807],["\\eqslantgtr",10902],["\\ggg",8921],["\\gtrless",8823],["\\gtreqless",8923],["\\gtreqqless",10892],["\\supseteqq",10950],["\\Supset",8913],["\\sqsupset",8848],["\\succcurlyeq",8829],["\\curlyeqsucc",8927],["\\Vdash",8873],["\\shortmid",8739],["\\between",8812],["\\pitchfork",8916],["\\varpropto",8733],["\\backepsilon",8717],["\\llless",8920],["\\gggtr",8921],["\\doteqdot",8785],["\\Doteq",8785],["\\eqcirc",8790],["\\circeq",8791],["\\therefore",8756],["\\because",8757]],"mrel","ams"),ze([["+",43],["-",8722],["\u2212",8722],["\\pm",177],["\\mp",8723],["*",8727],["\\times",215],["\\div",247],["\\divides",8739],["\\cdot",8901],["\\cap",8745],["\\cup",8746],["\\setminus",8726],["\\land",8743],["\\wedge",8743],["\\lor",8744],["\\vee",8744],["\\circ",8728],["\\bigcirc",9711],["\\bullet",8729],["\\oplus",8853],["\\ominus",8854],["\\otimes",8855],["\\odot",8857],["\\oslash",8856],["\\bigtriangleup",9651],["\\bigtriangledown",9661],["\\triangleleft",9667],["\\triangleright",9657],["\\And",38],["\\dagger",8224],["\\dag",8224],["\\ddag",8225],["\\ddagger",8225],["\\ast",8727],["\\star",8902],["\\bigstar",9733],["\\diamond",8900]],"mbin"),ze([["\\lhd",8882],["\\rhd",8883],["\\lessdot",8918],["\\gtrdot",8919],["\\ltimes",8905],["\\rtimes",8906],["\\leftthreetimes",8907],["\\rightthreetimes",8908],["\\intercal",8890],["\\dotplus",8724],["\\doublebarwedge",10846],["\\divideontimes",8903],["\\centerdot",8901],["\\smallsetminus",8726],["\\barwedge",8892],["\\veebar",8891],["\\nor",8891],["\\curlywedge",8911],["\\curlyvee",8910],["\\boxminus",8863],["\\boxplus",8862],["\\boxtimes",8864],["\\boxdot",8865],["\\circleddash",8861],["\\circledast",8859],["\\circledcirc",8858],["\\unlhd",8884],["\\unrhd",8885]],"mbin","ams"),ze([["\\surd",8730],["\\infty",8734],["\\prime",8242],["\\doubleprime",8243],["\\angle",8736],["`",8216],["\\$",36],["\\%",37],["\\_",95],["\\alpha",945],["\\beta",946],["\\gamma",947],["\\delta",948],["\\epsilon",1013],["\\varepsilon",949],["\\zeta",950],["\\eta",951],["\\theta",952],["\\vartheta",977],["\\iota",953],["\\kappa",954],["\\varkappa",1008,"mord","ams"],["\\lambda",955],["\\mu",956],["\\nu",957],["\\xi",958],["\\omicron",111],["\\pi",960],["\\varpi",982],["\\rho",961],["\\varrho",1009],["\\sigma",963],["\\varsigma",962],["\\tau",964],["\\phi",981],["\\varphi",966],["\\upsilon",965],["\\chi",967],["\\psi",968],["\\omega",969],["\\Gamma",915],["\\Delta",916],["\\Theta",920],["\\Lambda",923],["\\Xi",926],["\\Pi",928],["\\Sigma",931],["\\Upsilon",933],["\\Phi",934],["\\Psi",936],["\\Omega",937],["\\digamma",989,"mord","ams"],["\\emptyset",8709]]),ze([["=",61],["<",60],["\\lt",60],[">",62],["\\gt",62],["\\le",8804],["\\leq",8804],["\\ge",8805],["\\geq",8805],["\\ll",8810],["\\gg",8811],["\\coloneq",8788],["\\coloneqq",8788],["\\colonequals",8788],["\\measeq",8797],["\\eqdef",8798],["\\questeq",8799],[":",58],["\\cong",8773],["\\equiv",8801],["\\prec",8826],["\\preceq",10927],["\\succ",8827],["\\succeq",10928],["\\perp",8869],["\\propto",8733],["\\Colon",8759],["\\smile",8995],["\\frown",8994],["\\sim",8764],["\\doteq",8784],["\\bowtie",8904],["\\Join",8904],["\\asymp",8781],["\\sqsubseteq",8849],["\\sqsupseteq",8850],["\\approx",8776],["\\~",126],["\\leftrightarrow",8596],["\\Leftrightarrow",8660],["\\models",8872],["\\vdash",8866],["\\dashv",8867],["\\roundimplies",10608],["\\in",8712],["\\notin",8713],["\\ni",8715],["\\owns",8715],["\\subset",8834],["\\supset",8835],["\\subseteq",8838],["\\supseteq",8839],["\\differencedelta",8710],["\\mvert",8739],["\\parallel",8741],["\\simeq",8771]],"mrel"),ze([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),ze([["\\wp",8472],["\\aleph",8501]]),ze([["\\blacktriangle",9650],["\\hslash",8463],["\\Finv",8498],["\\Game",8513],["\\eth",240],["\\mho",8487],["\\Bbbk",107],["\\yen",165],["\\square",9633],["\\Box",9633],["\\blacksquare",9632],["\\circledS",9416],["\\circledR",174],["\\triangledown",9661],["\\blacktriangledown",9660],["\\checkmark",10003],["\\diagup",9585],["\\measuredangle",8737],["\\sphericalangle",8738],["\\backprime",8245],["\\backdoubleprime",8246],["\\Diamond",9674],["\\lozenge",9674],["\\blacklozenge",10731],["\\varnothing",8709],["\\complement",8705],["\\maltese",10016],["\\beth",8502],["\\daleth",8504],["\\gimel",8503]],"mord","ams"),ze([["\\ ",160],["~",160]],"space"),Gt(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new Hd(a)}),Gt("space","",{createAtom:a=>new Hd(a)}),ze([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),ze([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),ze([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var lp="<mo>⁡</mo>",Xf="<mo>⁢</mo>";function qf(a){return a.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function No(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Sv(a,y,b){var E,ee,ie,oe,fe,me,be,ke,Ke,rt,xt;let Ft=!1;y=y!=null?y:a.atoms.length;let Sn="",Fr="",xn=a.atoms[a.index];const tr=(ee=(E=xn.style)==null?void 0:E.variant)!=null?ee:"",Kr=(oe=(ie=xn.style)==null?void 0:ie.variantStyle)!=null?oe:"";let cr="";if(tr||Kr){const ra=Rt(xn.value,(fe=xn.style)==null?void 0:fe.variant,(me=xn.style)==null?void 0:me.variantStyle);if(ra!==xn.value)return a.index+=1,Sn=`<mi${No(xn.id,b)}>${ra}</mi>`,oc(Sn,a,b)||(a.mathML+=Sn,a.lastType="mi"),!0;cr=(be={upnormal:"normal",boldnormal:"bold",italicmain:"italic",bolditalicmain:"bold-italic","updouble-struck":"double-struck","double-struck":"double-struck",boldfraktur:"bold-fraktur",calligraphic:"script",upcalligraphic:"script",script:"script",boldscript:"bold-script",boldcalligraphic:"bold-script",fraktur:"fraktur","upsans-serif":"sans-serif","boldsans-serif":"bold-sans-serif","italicsans-serif":"sans-serif-italic","bolditalicsans-serif":"sans-serif-bold-italic",monospace:"monospace"}[Kr+tr])!=null?be:"",cr=` mathvariant="${cr}"`}const Fi={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(xn.command==="!")return a.index+=1,Sn="<mo>!</mo>",oc(Sn,a,b)||(a.mathML+=Sn,a.lastType="mo"),!0;if(Fi[xn.command]){a.index+=1;let ra=`<mi${No(xn.id,b)}${cr}>${Fi[xn.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(ra=Xf+ra),oc(ra,a,b)||(a.mathML+=ra,a.lastType="mi"),!0}if(xn.command==="\\operatorname")Fr=md(xn.body),a.index+=1;else if(tr||Kr)for(;a.index<y&&(xn.type==="mord"||xn.type==="macro")&&!xn.isDigit()&&tr===((Ke=(ke=xn.style)==null?void 0:ke.variant)!=null?Ke:"")&&Kr===((xt=(rt=xn.style)==null?void 0:rt.variantStyle)!=null?xt:"");)Fr+=md([xn]),a.index+=1,xn=a.atoms[a.index];else(xn.type==="mord"||xn.type==="macro")&&!xn.isDigit()&&(Fr+=md([xn]),a.index+=1);if(Fr.length>0){Ft=!0,Sn=`<mi${cr}>${Fr}</mi>`;const ra=a.lastType;Sn.endsWith(">f</mi>")||Sn.endsWith(">g</mi>")?(Sn+=lp,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(Sn)?"mo":"mi",oc(Sn,a,b)||((ra==="mi"||ra==="mn"||ra==="mtext"||ra==="fence")&&(Sn=Xf+Sn),a.mathML+=Sn)}return Ft}function Av(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function kv(a){let y=-1,b=a.index,E=!1,ee=!1;for(;b<a.atoms.length&&!E&&!ee;){const ie=a.atoms[b];E=!ie.isDigit(),ee=!E&&ie.superscript!==void 0,b++}return ee&&(y=b-1),y}function oc(a,y,b){var E;let ee=y.atoms[y.index-1];if(!ee)return!1;if(!ee.superscript&&!ee.subscript)if(((E=y.atoms[y.index])==null?void 0:E.type)==="subsup")ee=y.atoms[y.index],y.index+=1;else return!1;const ie=y.lastType;y.lastType="";const oe=xo(ee.superscript,b);y.lastType="";const fe=xo(ee.subscript,b);if(y.lastType=ie,!oe&&!fe)return!1;let me="";return oe&&fe?me=`<msubsup>${a}${fe}${oe}</msubsup>`:oe?me=`<msup>${a}${oe}</msup>`:fe&&(me=`<msub>${a}${fe}</msub>`),y.mathML+=me,y.lastType="",!0}function Mv(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="";for(;a.index<y&&a.atoms[a.index].mode==="text";)ee+=a.atoms[a.index].value?a.atoms[a.index].value:" ",a.index+=1;return ee.length>0?(a.mathML+=`<mtext ${No(a.atoms[E].id,b)}>${ee}</mtext>`,a.lastType="mtext",!0):!1}function Bv(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="",ie=kv(a);for(ie>=0&&ie<y&&(y=ie);a.index<y&&a.atoms[a.index].isDigit();)ee+=a.atoms[a.index].asDigit(),a.index+=1;return ee.length<=0?!1:(ee="<mn"+No(a.atoms[E].id,b)+">"+ee+"</mn>",ie<0&&Av(a)&&(ie=a.index,a.index+=1),oc(ee,a,b)||(a.mathML+=ee,a.lastType="mn"),!0)}function Dv(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",ie="";if(a.index<y&&a.atoms[a.index].type==="mopen"){let oe=!1,fe=0;const me=a.index;let be=-1,ke=me+1;for(;ke<y&&!oe;)a.atoms[ke].type==="mopen"?fe+=1:a.atoms[ke].type==="mclose"&&(fe-=1),fe===-1&&(oe=!0,be=ke),ke+=1;oe&&(ee="<mrow>",ee+=Zc(a.atoms[me],b),ee+=xo(a.atoms,b,me+1,be),ee+=Zc(a.atoms[be],b),ee+="</mrow>",a.index=be+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=Xf),oc(ee,a,b)&&(E=!0,a.lastType="",ee=""),ie="fence")}return ee.length>0&&(E=!0,a.mathML+=ee,a.lastType=ie),E}function Fv(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",ie="";const oe=a.atoms[a.index];if(!oe)return!1;const fe={"\\ne":"≠","\\neq":"&neq;","\\pm":"±","\\times":"×","\\colon":":","\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lbrack":"[","\\rbrack":"]","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"};if(fe[oe.command]){a.index+=1;const me=`<mo${No(oe.id,b)}>${fe[oe.command]}</mo>`;return oc(me,a,b)||(a.mathML+=me,a.lastType="mo"),!0}if(a.index<y&&(oe.type==="mbin"||oe.type==="mrel"))ee+=Zh(a.atoms[a.index],b),a.index+=1,ie="mo";else if(a.index<y&&(oe.type==="mop"||oe.type==="operator"||oe.type==="extensible-symbol")){if(oe.subsupPlacement==="over-under"&&(oe.superscript||oe.subscript)){const me=Zc(oe,b);return oe.superscript&&oe.subscript?(ee+="<munderover>"+me,ee+=xo(oe.subscript,b),ee+=xo(oe.superscript,b),ee+="</munderover>"):oe.superscript?(ee+="<mover>"+me,ee+=xo(oe.superscript,b),ee+="</mover>"):oe.subscript&&(ee+="<munder>"+me,ee+=xo(oe.subscript,b),ee+="</munder>"),a.mathML+=ee,a.lastType="mo",a.index+=1,!0}{const me=a.atoms[a.index],be=me.value==="\\operatorname",ke=be?'<mi class="MathML-Unit"'+No(me.id,b)+">"+md(me.value)+"</mi>":Zc(me,b);ee+=ke,!be&&!/^<mo>(.*)<\/mo>$/.test(ke)?(ee+=lp,ie="applyfunction"):ie=be?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ee)&&(ee=Xf+ee),a.index+=1}return ee.length>0&&(E=!0,oc(ee,a,b)||(a.mathML+=ee,a.lastType=ie)),E}function xo(a,y,b,E){y!=null||(y={});const ee={atoms:[],index:b!=null?b:0,mathML:"",lastType:""};if(typeof a=="number"||typeof a=="boolean")ee.mathML=a.toString();else if(typeof a=="string")ee.mathML=a;else if(a instanceof Zn)ee.mathML=Zh(a,y);else if(Array.isArray(a)){ee.atoms=a;let ie=0;for(E=E||(a?a.length:0);ee.index<E;)if(Mv(ee,E,y)||Bv(ee,E,y)||Sv(ee,E,y)||Fv(ee,E,y)||Dv(ee,E,y))ie+=1;else if(ee.index<E){let oe=Zh(ee.atoms[ee.index],y);ee.lastType==="mn"&&oe.length>0&&ee.atoms[ee.index].type==="genfrac"&&(oe="<mo>⁤</mo>"+oe),ee.atoms[ee.index].type==="genfrac"?ee.lastType="mfrac":ee.lastType="",ee.index+=1,oc(oe,ee,y)?ie+=1:oe.length>0&&(ee.mathML+=oe,ie+=1)}ie>1&&(ee.mathML="<mrow>"+ee.mathML+"</mrow>")}return ee.mathML}function Zc(a,y){let b="";const E=md(a.value);return E&&(b="<mo"+No(a.id,y)+">"+E+"</mo>"),b}function md(a){if(!a)return"";if(typeof a=="string")return qf(a);if(!Array.isArray(a)&&typeof a.body=="string")return qf(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return qf(y)}function Zh(a,y){var b,E,ee,ie,oe,fe,me,be,ke,Ke,rt,xt,Ft,Sn,Fr,xn,tr,Kr,cr,Fi,ra,ji;if(a.mode==="text")return`<mi${No(a.id,y)}>${a.value}</mi>`;const ro={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",longleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",longrightarrow:"\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",longrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xleftrightarrows:"\u21C4",xRightleftharpoons:"\u21CC",longRightleftharpoons:"\u21CC",xLeftrightharpoons:"\u21CB",longLeftrightharpoons:"\u21CB"},Bo={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let jr="",du="",Yu,Su,fl,fu,jl,Io;const{command:Rs}=a;if(a.command==="\\error")return`<merror${No(a.id,y)}>${xo(a.body,y)}</merror>`;const hl={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Ju={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(a.type){case"first":break;case"group":case"root":jr=xo(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(jr+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(jr+="<mo>"+(hl[a.leftDelim]||a.leftDelim)+"</mo>")),jr+="<mtable",a.colFormat){for(jr+=' columnalign="',fl=0;fl<a.colFormat.length;fl++)a.colFormat[fl].align&&(jr+={l:"left",c:"center",r:"right"}[a.colFormat[fl].align]+" ");jr+='"'}for(jr+=">",Su=0;Su<a.array.length;Su++){for(jr+="<mtr>",Yu=0;Yu<a.array[Su].length;Yu++)jr+="<mtd>"+xo(a.array[Su][Yu],y)+"</mtd>";jr+="</mtr>"}jr+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(jr+="<mo>"+(hl[a.leftDelim]||a.rightDelim)+"</mo>"),jr+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(jr+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(jr+="<mo"+No(a.id,y)+">"+(hl[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(jr+="<mfrac>",jr+=xo(a.above,y)||"<mi> </mi>",jr+=xo(a.below,y)||"<mi> </mi>",jr+="</mfrac>"):(jr+="<mtable"+No(a.id,y)+">",jr+="<mtr>"+xo(a.above,y)+"</mtr>",jr+="<mtr>"+xo(a.below,y)+"</mtr>",jr+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(jr+="<mo"+No(a.id,y)+">"+(hl[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(jr+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(jr+="<msqrt"+No(a.id,y)+">",jr+=xo(a.body,y),jr+="</msqrt>"):(jr+="<mroot"+No(a.id,y)+">",jr+=xo(a.body,y),jr+=xo(a.above,y),jr+="</mroot>");break;case"leftright":const Xu=a,qu=Xu.leftDelim;jr="<mrow>",qu&&qu!=="."&&(jr+=`<mo${No(a.id,y)}>${(b=hl[qu])!=null?b:qu}</mo>`),a.body&&(jr+=xo(a.body,y));const $u=Xu.matchingRightDelim();$u&&$u!=="."&&(jr+=`<mo${No(a.id,y)}>${(E=hl[$u])!=null?E:$u}</mo>`),jr+="</mrow>";break;case"sizeddelim":case"delim":jr+=`<mo${No(a.id,y)}>${hl[a.value]||a.value}</mo>`;break;case"accent":jr+='<mover accent="true"'+No(a.id,y)+">",jr+=xo(a.body,y),jr+="<mo>"+(Ju[Rs]||a.accent)+"</mo>",jr+="</mover>";break;case"line":case"overlap":break;case"overunder":jl=a.above,fu=a.below,(a.svgAbove||jl)&&(a.svgBelow||fu)?Io=a.body:jl&&jl.length>0?(Io=a.body,(ie=(ee=a.body)==null?void 0:ee[0])!=null&&ie.below?(fu=a.body[0].below,Io=a.body[0].body):((fe=(oe=a.body)==null?void 0:oe[0])==null?void 0:fe.type)==="first"&&((be=(me=a.body)==null?void 0:me[1])!=null&&be.below)&&(fu=a.body[1].below,Io=a.body[1].body)):fu&&fu.length>0&&(Io=a.body,(Ke=(ke=a.body)==null?void 0:ke[0])!=null&&Ke.above?(jl=a.body[0].above,Io=a.body[0].body):((xt=(rt=a.body)==null?void 0:rt[0])==null?void 0:xt.type)==="first"&&((Sn=(Ft=a.body)==null?void 0:Ft[1])!=null&&Sn.above)&&(jl=a.body[1].overscript,Io=a.body[1].body)),(a.svgAbove||jl)&&(a.svgBelow||fu)?(jr+=`<munderover ${No(a.id,y)}>`,jr+=(Fr=ro[a.svgBody])!=null?Fr:xo(Io,y),jr+=(xn=ro[a.svgBelow])!=null?xn:xo(fu,y),jr+=(tr=ro[a.svgAbove])!=null?tr:xo(jl,y),jr+="</munderover>"):a.svgAbove||jl?(jr+=`<mover ${No(a.id,y)}>`+((Kr=ro[a.svgBody])!=null?Kr:xo(Io,y)),jr+=(cr=ro[a.svgAbove])!=null?cr:xo(jl,y),jr+="</mover>"):(a.svgBelow||fu)&&(jr+=`<munder ${No(a.id,y)}>`+((Fi=ro[a.svgBody])!=null?Fi:xo(Io,y)),jr+=(ra=ro[a.svgBelow])!=null?ra:xo(fu,y),jr+="</munder>");break;case"placeholder":jr+="?";break;case"mord":{jr=typeof a.value=="string"?a.value:Rs,Rs==="\\char"?jr="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":jr.length>0&&jr.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?jr="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?jr=a.value.charAt(0):(console.error("Did not expect this"),jr=""));const Tu=/\d/.test(jr)?"mn":"mi";jr=`<${Tu}${No(a.id,y)}>${qf(jr)}</${Tu}>`;break}case"mbin":case"mrel":case"minner":jr=Zc(a,y);break;case"mpunct":jr='<mo separator="true"'+No(a.id,y)+">"+Rs+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(jr="<mo"+No(a.id,y)+">",jr+=Rs==="\\operatorname"?a.body:Rs||a.body,jr+="</mo>");break;case"box":jr='<menclose notation="box"',a.backgroundcolor&&(jr+=' mathbackground="'+a.backgroundcolor+'"'),jr+=No(a.id,y)+">"+xo(a.body,y)+"</menclose>";break;case"spacing":jr+='<mspace width="'+((ji=Bo[Rs])!=null?ji:0)+'em"/>';break;case"enclose":jr='<menclose notation="';for(const Tu in a.notation)Object.prototype.hasOwnProperty.call(a.notation,Tu)&&a.notation[Tu]&&(jr+=du+Tu,du=" ");jr+=No(a.id,y)+'">'+xo(a.body,y)+"</menclose>";break;case"prompt":jr='<menclose notation="roundexbox""">'+xo(a.body,y)+"</menclose>";break;case"space":jr+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":jr+=Zc(a,y);break;case"mclose":jr+=Zc(a,y);break;case"macro":{const Tu=a.command+md(a.macroArgs);Tu&&(jr+=`<mo ${No(a.id,y)}>${Tu}</mo>`)}break;case"latexgroup":jr+=xo(a.body,y);break;case"latex":jr+="<mtext"+No(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":jr+=xo(a.body,y);break;case"text":jr+=`<mtext ${No(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${No(a.id,y)} displaystyle="true">${xo(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${No(a.id,y)} displaystyle="false">${xo(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return jr}var gd={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"imaginary eye ","\\imaginaryJ":"imaginary jay ","\\sum":"Summation ","\\prod":"Product ","+":"plus ","-":"minus ",";":'<break time="150ms"/> semi-colon <break time="150ms"/>',",":'<break time="150ms"/> comma <break time="150ms"/>',"|":'<break time="150ms"/>Vertical bar<break time="150ms"/>',"(":'<break time="150ms"/>Open paren. <break time="150ms"/>',")":'<break time="150ms"/> Close paren. <break time="150ms"/>',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\pm":"plus or minus","\\mp":"minus or plus","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","\\ne":"is not equal to ","\\neq":"is not equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","\u200B":"","\u2212":"minus ",":":'<break time="150ms"/> such that <break time="200ms"/> ',"\\colon":'<break time="150ms"/> such that <break time="200ms"/> ',"\\hbar":"etch bar ","\\iff":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\Longleftrightarrow":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set <break time="150ms"/><say-as interpret-as="character">n</say-as>',"\\C":'the set <break time="150ms"/><say-as interpret-as="character">c</say-as>',"\\Z":'the set <break time="150ms"/><say-as interpret-as="character">z</say-as>',"\\Q":'the set <break time="150ms"/><say-as interpret-as="character">q</say-as>',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdot":"times ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lparen":'<break time="150ms"/>open paren<break time="150ms"/>',"\\rparen":'<break time="150ms"/>close paren<break time="150ms"/>',"\\lbrace":'<break time="150ms"/>open brace<break time="150ms"/>',"\\{":'<break time="150ms"/>open brace<break time="150ms"/>',"\\rbrace":'<break time="150ms"/>close brace<break time="150ms"/>',"\\}":'<break time="150ms"/>close brace<break time="150ms"/>',"\\langle":'<break time="150ms"/>left angle bracket<break time="150ms"/>',"\\rangle":'<break time="150ms"/>right angle bracket<break time="150ms"/>',"\\lfloor":'<break time="150ms"/>open floor<break time="150ms"/>',"\\rfloor":'<break time="150ms"/>close floor<break time="150ms"/>',"\\lceil":'<break time="150ms"/>open ceiling<break time="150ms"/>',"\\rceil":'<break time="150ms"/>close ceiling<break time="150ms"/>',"\\vert":'<break time="150ms"/>vertical bar<break time="150ms"/>',"\\mvert":'<break time="150ms"/>divides<break time="150ms"/>',"\\lvert":'<break time="150ms"/>left vertical bar<break time="150ms"/>',"\\rvert":'<break time="150ms"/>right vertical bar<break time="150ms"/>',"\\lbrack":'<break time="150ms"/> open square bracket <break time="150ms"/>',"\\rbrack":'<break time="150ms"/> close square bracket <break time="150ms"/>',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"},Vh={array:"array",matrix:"matrix",pmatrix:"parenthesis matrix",bmatrix:"square brackets matrix",Bmatrix:"braces matrix",vmatrix:"bars matrix",Vmatrix:"double bars matrix","matrix*":"matrix",smallmatrix:"small matrix"};function Lv(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function tf(a){let y=0;if(he(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Tv(a){if(he(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function up(a){let y="";if(he(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Pv(a){return a?a.map(y=>y.value).join(""):""}function Xa(a,y){var b,E,ee,ie,oe;function fe(ke){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(ke)?` <say-as interpret-as="character">${ke}</say-as>`:/[A-Z]/.test(ke)?`capital <say-as interpret-as="character">${ke.toLowerCase()}</say-as>`:ke:/[a-z]/.test(ke)?" '"+ke.toUpperCase()+"'":/[A-Z]/.test(ke)?" 'capital "+ke.toUpperCase()+"'":ke}function me(ke){return"<emphasis>"+ke+"</emphasis>"}if(!y)return"";let be="";if(he(y)){let ke=!1,Ke=!1;for(let rt=0;rt<y.length;rt++)y[rt].type!=="first"&&(y[rt].mode!=="text"&&(Ke=!1),rt<y.length-2&&y[rt].type==="mopen"&&y[rt+2].type==="mclose"&&y[rt+1].type==="mord"?(be+=" of ",be+=me(Xa(a,y[rt+1])),rt+=2):y[rt].mode==="text"?Ke?be+=(b=y[rt].value)!=null?b:" ":(Ke=!0,be+=Xa("text",y[rt])):y[rt].isDigit()?ke?be+=y[rt].asDigit():(ke=!0,be+=Xa(a,y[rt])):(ke=!1,be+=Xa(a,y[rt])))}else if(y.mode==="text")y.id&&a==="math"&&(be+='<mark name="'+y.id.toString()+'"/>'),be+=y.value;else{y.id&&a==="math"&&(be+='<mark name="'+y.id.toString()+'"/>');let ke="",Ke="",rt="",xt=!1;const{command:Ft}=y;switch(Ft){case"\\vec":return"vector "+Xa(a,y.body);case"\\acute":return Xa(a,y.body)+" acute";case"\\grave":return Xa(a,y.body)+" grave";case"\\dot":return"dot over"+Xa(a,y.body);case"\\ddot":return"double dot over"+Xa(a,y.body);case"\\mathring":return"ring over"+Xa(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+Xa(a,y.body);case"\\bar":return Xa(a,y.body)+" bar";case"\\breve":return Xa(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Xa(a,y.body);case"\\hat":case"\\widehat":return"hat over"+Xa(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Xa(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+Xa(a,y.body)}switch(y.type){case"prompt":const Sn=y.body.length>1?'start input . <break time="500ms"/> '+Xa(a,y.body)+'. <break time="500ms"/> end input':"blank";be+=' <break time="300ms"/> '+Sn+'. <break time="700ms"/>'+((E=y.correctness)!=null?E:"")+' . <break time="700ms"/> ';break;case"array":const Fr=y.array,xn=y.environmentName;if(Object.keys(Vh).includes(xn)){be+=` begin ${Vh[xn]} `;for(let cr=0;cr<Fr.length;cr++){cr>0&&(be+=","),be+=` row ${cr+1} `;for(let Fi=0;Fi<Fr[cr].length;Fi++)Fi>0&&(be+=","),be+=` column ${Fi+1}: `,be+=Xa("math",Fr[cr][Fi])}be+=` end ${Vh[xn]} `}break;case"group":Ft==="\\ne"?be+=" not equal ":(Ft==="\\not"&&(be+=" not "),be+=Xa("math",y.body));break;case"root":be+=Xa("math",y.body);break;case"genfrac":if(ke=Xa("math",y.above),Ke=Xa("math",y.below),tf(y.above)&&tf(y.below)){const Fi={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[up(y.above)+"/"+up(y.below)];Fi?be=Fi:be+=ke+" over "+Ke}else be+=' the fraction <break time="150ms"/>'+ke+' over <break time="150ms"/>'+Ke+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(rt=Xa("math",y.body),y.hasEmptyBranch("above"))be+=tf(y.body)?" the square root of "+rt+" , ":' the square root of <break time="200ms"/>'+rt+'. <break time="200ms"/> End square root';else{let cr=Xa("math",y.above);cr=cr.trim();const Fi=cr.replace(/<mark([^/]*)\/>/g,"");Fi==="3"?be+=' the cube root of <break time="200ms"/>'+rt+'. <break time="200ms"/> End cube root':Fi==="n"?be+=' the nth root of <break time="200ms"/>'+rt+'. <break time="200ms"/> End root':be+=' the root with index: <break time="200ms"/>'+cr+', of <break time="200ms"/>'+rt+'. <break time="200ms"/> End root'}break;case"leftright":{const cr=y;be+=(ee=cr.leftDelim?gd[cr.leftDelim]:void 0)!=null?ee:cr.leftDelim,be+=Xa("math",y.body),be+=(ie=cr.rightDelim?gd[cr.rightDelim]:void 0)!=null?ie:cr.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const tr=Ft.replace(/^\\/g,""),Kr=Jr()[tr];Kr&&(Kr!=null&&Kr.expand?be+=Xa("math",y.body):be+=`${tr} `);break;case"placeholder":be+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(Ft==="\\mathbin"||Ft==="\\mathrel"||Ft==="\\mathopen"||Ft==="\\mathclose"||Ft==="\\mathpunct"||Ft==="\\mathord"||Ft==="\\mathinner"){be=Xa(a,y.body);break}let cr=y.isDigit()?y.asDigit():y.value,Fi=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(Fi=y.value,cr=Fi),a==="text")be+=cr;else{if(y.type==="mbin"&&(be+='<break time="150ms"/>'),cr){const ra=gd[cr]||(Fi?gd[Fi.trim()]:"");if(ra)be+=" "+ra;else{const ji=Fi?Lv(Fi.trim()):"";be+=ji||fe(cr)}}else be+=Xa("math",y.body);y.type==="mbin"&&(be+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const cr=y.command;if(cr==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Fi=Xa("math",y.superscript);Fi=Fi.trim();let ra=Xa("math",y.subscript);ra=ra.trim(),be+=' the summation from <break time="200ms"/>'+ra+'<break time="200ms"/> to <break time="200ms"/>'+Fi+'<break time="200ms"/> of <break time="150ms"/>',xt=!0}else if(y.hasEmptyBranch("subscript"))be+=" the summation of";else{let Fi=Xa("math",y.subscript);Fi=Fi.trim(),be+=' the summation from <break time="200ms"/>'+Fi+'<break time="200ms"/> of <break time="150ms"/>',xt=!0}else if(cr==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Fi=Xa("math",y.superscript);Fi=Fi.trim();let ra=Xa("math",y.subscript);ra=ra.trim(),be+=' the product from <break time="200ms"/>'+ra+'<break time="200ms"/> to <break time="200ms"/>'+Fi+'<break time="200ms"/> of <break time="150ms"/>',xt=!0}else if(y.hasEmptyBranch("subscript"))be+=" the product of ";else{let Fi=Xa("math",y.subscript);Fi=Fi.trim(),be+=' the product from <break time="200ms"/>'+Fi+'<break time="200ms"/> of <break time="150ms"/>',xt=!0}else if(cr==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Fi=Xa("math",y.superscript);Fi=Fi.trim();let ra=Xa("math",y.subscript);ra=ra.trim(),be+=' the integral from <break time="200ms"/>'+me(ra)+'<break time="200ms"/> to <break time="200ms"/>'+me(Fi)+' <break time="200ms"/> of ',xt=!0}else be+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const Fi=(oe=gd[y.value])!=null?oe:y.command?gd[y.command]:void 0;be+=Fi||" "+y.value}else y.command&&(y.command==="\\mathop"?be+=Xa("math",y.body):y.command==="\\operatorname"?be+=Pv(y.body):be+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":rt=Xa("math",y.body),be+=" crossed out "+rt+". End crossed out.";break;case"space":case"spacing":break}if(!xt&&!y.hasEmptyBranch("superscript")){let Sn=Xa(a,y.superscript);Sn=Sn.trim();const Fr=Sn.replace(/<[^>]*>/g,"");if(tf(y.superscript)){if(a==="math"){const xn=Tv(y.superscript);xn&&(be+='<mark name="'+xn+'"/>')}Fr==="\u2032"?be+=" prime ":Fr==="2"?be+=" squared ":Fr==="3"?be+=" cubed ":Number.isNaN(Number.parseInt(Fr))?be+=" to the "+Sn+"; ":be+=' to the <say-as interpret-as="ordinal">'+Fr+"</say-as> power; "}else Number.isNaN(Number.parseInt(Fr))?be+=" raised to the "+Sn+"; ":be+=' raised to the <say-as interpret-as="ordinal">'+Fr+"</say-as> power; "}if(!xt&&!y.hasEmptyBranch("subscript")){let Sn=Xa("math",y.subscript);Sn=Sn.trim(),be+=tf(y.subscript)?" sub "+Sn:" subscript "+Sn+". End subscript. "}}return be}function vd(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ee=xo(a);if(ee){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=ye(Ee({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=ye(Ee({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=ye(Ee({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const ie=(b=window.SRE)!=null?b:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&ie.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let oe="";try{oe=ie.toSpeech(ee)}catch(fe){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",fe)}return oe}return""}let E=Xa("math",a);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let ee="";window.MathfieldElement.speechEngineRate&&(ee='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),E='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+ee+"<p><s>"+E+"</s></p>"+(ee?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&Ze()==="macos"?E=E.replace(/<mark([^/]*)\/>/g,"").replace(/<emphasis>/g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(/<break time="(\d*)ms"\/>/g,"[[slc $1]]").replace(/<say-as[^>]*>/g,"").replace(/<\/say-as>/g,""):E=E.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return E}var nf={"\\ne":"\u2260","\\neq":"\u2260","\u2212":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega","\\exponentialE":"e","\\imaginaryI":"i","\\imaginaryJ":"j","\\!":" ","\\,":" ","\\:":" ","\\>":" ","\\;":" ","\\enskip":" ","\\enspace":" ","\\qquad":" ","\\quad":" ","\\infty":"oo"},rf={"\\pm":"+-","\\colon":":","\\vert":"|","\\Vert":"||","\\mid":"|","\\lbrack":"[","\\rbrack":"]","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"(:","\\rangle":":)","\\sum":" sum ","\\prod":" prod ","\\bigcap":" nnn ","\\bigcup":" uuu ","\\int":" int ","\\oint":" oint ","\\ge":">=","\\le":"<=","\\ne":"!=","\\neq":"!=","\\lt":"<","\\gt":">","\\gets":"<-","\\to":"->","\\land":" and ","\\lor":" or ","\\lnot":" not ","\\forall":" AA ","\\exists":" EE ","\\in":" in ","\\notin":" !in ","\\mapsto":"|->","\\implies":"=>","\\iff":"<=>","\\cdot":"*","\\ast":"**","\\star":"***","\\times":"xx","\\div":"-:","\\ltimes":"|><","\\rtimes":"><|","\\bowtie":"|><|","\\circ":"@"};function Nv(a){let y="";for(const b of a){const E=y[y.length-1];E!==void 0&&/\d/.test(E)&&/^\d/.test(b)&&(y+=" "),y+=b}return y}function Os(a){var y,b,E,ee,ie,oe,fe,me,be,ke,Ke,rt,xt;if(!a)return"";if(he(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(Os).join("");if(a[0].mode==="text"){let Kr=0,cr="";for(;((y=a[Kr])==null?void 0:y.mode)==="text";)cr+=a[Kr].body?Os(a[Kr].body):a[Kr].value,Kr++;return`"${cr}" ${Os(a.slice(Kr))}`}let xn=0;const tr=[];for(;a[xn]&&a[xn].mode==="math";){let Kr="";for(;a[xn]&&a[xn].type==="mord"&&/\d/.test(a[xn].value);)Kr+=a[xn++].value;Kr?tr.push(Kr):tr.push(Os(a[xn++]))}return tr.push(Os(a.slice(xn))),Nv(tr)}if(a.mode==="text")return`"${a.value}"`;let Ft="";const{command:Sn}=a;let Fr;if(Sn==="\\placeholder")return`(${Os(a.body)})`;switch(a.type){case"accent":const xn={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Sn];Ft=`${xn!=null?xn:""} ${Os(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(ji=>ji.value).join("");case"group":case"root":Ft=(b=nf[Sn])!=null?b:Os(a.body);break;case"genfrac":{const ji=a;(ji.leftDelim||ji.rightDelim)&&(Ft=ji.leftDelim==="."||!ji.leftDelim?"{:":ji.leftDelim),ji.hasBarLine?(Ft+="(",Ft+=Os(ji.above),Ft+=")/(",Ft+=Os(ji.below),Ft+=")"):(Ft+="("+Os(ji.above)+"),",Ft+="("+Os(ji.below)+")"),(ji.leftDelim||ji.rightDelim)&&(Ft+=ji.rightDelim==="."||!ji.rightDelim?"{:":ji.rightDelim)}break;case"surd":Ft+=a.hasEmptyBranch("above")?"sqrt("+Os(a.body)+")":"root("+Os(a.above)+")("+Os(a.body)+")";break;case"latex":Ft=a.value;break;case"leftright":{const ji=a,ro=ji.leftDelim;Ft+=ro==="."||!ro?"{:":ro,Ft+=Os(ji.body);const Bo=ji.matchingRightDelim();Ft+=Bo==="."||!Bo?":}":Bo}break;case"sizeddelim":case"delim":Ft=a.value;break;case"overlap":break;case"overunder":break;case"mord":Ft=(ee=(E=nf[Sn])!=null?E:Sn)!=null?ee:typeof a.value=="string"?a.value:"",Ft.startsWith("\\")&&(Ft+=" "),Fr=Sn?Sn.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,Fr?Ft=String.fromCodePoint(Number.parseInt("0x"+Fr[1])):Ft.length>0&&Ft.startsWith("\\")&&(Ft=typeof a.value=="string"?a.value.charAt(0):a.command),Ft=Iv(Ft,a.style);break;case"mbin":case"mrel":case"minner":Ft=(oe=(ie=nf[Sn])!=null?ie:rf[Sn])!=null?oe:a.value;break;case"mopen":case"mclose":Ft=a.value;break;case"mpunct":Ft=(fe=rf[Sn])!=null?fe:Sn;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(rf[Sn]?Ft=rf[Sn]:Ft=Sn==="\\operatorname"?Os(a.body):(me=a.value)!=null?me:Sn,Ft+=" ");break;case"array":const tr=a.array,Kr=a.environmentName,cr=(be={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Kr])!=null?be:["(",")"],Fi=[];for(const ji of tr){const ro=[];for(const Bo of ji)ro.push(cr[0]+Os(Bo)+cr[1]);Fi.push(ro.join(","))}const ra=(ke={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Kr])!=null?ke:["(",")"];Ft=ra[0]+Fi.join(",")+ra[1];break;case"box":break;case"spacing":Ft=(Ke=nf[Sn])!=null?Ke:" ";break;case"enclose":Ft="("+Os(a.body)+")";break;case"space":Ft=" ";break;case"subsup":Ft="";break;case"macro":Ft=(xt=(rt=nf[Sn])!=null?rt:rf[Sn])!=null?xt:Os(a.body);break}if(!a.hasEmptyBranch("subscript")){Ft+="_";const xn=Os(a.subscript);Ft+=xn.length!==1?`(${xn})`:xn}if(!a.hasEmptyBranch("superscript")){Ft+="^";const xn=Os(a.superscript);Ft+=xn.length!==1?`(${xn})`:xn}return Ft}function Iv(a,y){if(!y)return a;let b=a;return y.variant==="double-struck"&&(b=`bbb "${b}"`),y.variant==="script"&&(b=`cc "${b}"`),y.variant==="fraktur"&&(b=`fr "${b}"`),y.variant==="sans-serif"&&(b=`sf "${b}"`),y.variant==="monospace"&&(b=`tt "${b}"`),y.variantStyle==="bold"&&(b=`bb "${b}"`),y.color?`color({${y.color}})(${b})`:b}function dl(a,y){var b,E;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ee=new qa({from:ye(Ee({},Xc()),{renderPlaceholder:()=>new Nr(160,{maxFontSize:1}),letterShapeStyle:(E=y==null?void 0:y.letterShapeStyle)!=null?E:"tex"}),mathstyle:y.mathstyle}),oe=new Zn({mode:"math",type:"root",body:cl(a,{context:ee,parseMode:"math",mathstyle:y.mathstyle})}).render(ee);return oe?(Qc(zd(oe,ee)),Yc(oe,{classes:"ML__latex"}).toMarkup()):""}function M1(a){return t0(a,{context:Xc()})}function Ov(a,y={}){return xo(cl(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function Rv(a){const y=cl(a,{parseMode:"math",mathstyle:"displaystyle"});return vd(y)}var $f;function _v(a){var y,b;if(!$f){const E=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;E?$f=new E:console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}return(b=$f==null?void 0:$f.box(a).latex)!=null?b:""}function B1(a,y="math"){return Os(new Zn({type:"root",body:cl(a,{parseMode:y})}))}function D1(a){return Lc(a,{format:"ascii-math"})[1]}function Uh(a){if(typeof a=="string"){const y=Kv(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?zv(a):"a"in a?cp(a):a}function yd(a){return a<0?0:a>255?255:Math.round(a)}function Kv(a){if(!a||a[0]!=="#")return;a=a.slice(1);let y;return a.length<=4?(y={r:parseInt(a[0]+a[0],16),g:parseInt(a[1]+a[1],16),b:parseInt(a[2]+a[2],16)},a.length===4&&(y.a=parseInt(a[3]+a[3],16)/255)):(y={r:parseInt(a[0]+a[1],16),g:parseInt(a[2]+a[3],16),b:parseInt(a[4]+a[5],16)},a.length===8&&(y.a=parseInt(a[6]+a[7],16)/255)),y&&typeof y.a=="undefined"&&(y.a=1),y}function jh(a){const[y,b,E]=[a.L,a.C,a.H],ee=E*Math.PI/180,ie={L:y,a:b*Math.cos(ee),b:b*Math.sin(ee)};return a.alpha!==void 0&&(ie.alpha=a.alpha),ie}function Hv(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.sqrt(b*b+E*E),oe=Math.atan2(E,b)*180/Math.PI,fe={L:y,C:ee,H:oe};return a.alpha!==void 0&&(fe.alpha=a.alpha),fe}function Gh(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.pow(.9999999984505198*y+.39633779217376786*b+.2158037580607588*E,3),ie=Math.pow(1.00000000888176*y-.10556134232365635*b-.0638541747717059*E,3),oe=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*E,3),fe=4.076741661347994*ee-3.307711590408193*ie+.230969928729428*oe,me=-1.2684380040921763*ee+2.6097574006633715*ie-.3413193963102197*oe,be=-.004196086541837188*ee-.7034186144594493*ie+1.7076147009309444*oe,ke=Ke=>{const rt=Math.abs(Ke);return rt<=.0031308?Ke*12.92:(Math.sign(Ke)||1)*(1.055*Math.pow(rt,1/2.4)-.055)};return[ke(fe),ke(me),ke(be)]}function Qh(a){const[y,b,E]=a;return y>=0&&y<=1&&b>=0&&b<=1&&E>=0&&E<=1}function Yh(a,y){let[b,E,ee]=a;return b=yd(b*255),E=yd(E*255),ee=yd(ee*255),y!==void 0?{r:b,g:E,b:ee,alpha:y}:{r:b,g:E,b:ee}}function cp(a){let[y,b,E]=Gh(a);if(Qh([y,b,E]))return Yh([y,b,E],a.alpha);const ee=Hv(a);if(ee.C=0,[y,b,E]=Gh(jh(ee)),!Qh([y,b,E]))return Yh([y,b,E],a.alpha);let ie=0,oe=a.L,fe=(ie+oe)/2;ee.C=fe;const me=.36/Math.pow(2,12);for(;oe-ie>me;)fe=(ie+oe)/2,ee.C=fe,[y,b,E]=Gh(jh(ee)),Qh([y,b,E])?ie=fe:oe=fe;return Yh([y,b,E],a.alpha)}function zv(a){return cp(jh(a))}function dp(a,y){const b=Uh(a),E=Uh(y),ee=.56,ie=.57,oe=.62,fe=.65,me=.022,be=1.414,ke=.1,Ke=5e-4,rt=1.14,xt=.027,Ft=1.14,Sn=.027;function Fr(ji){return ji>=me?ji:ji+ec(me-ji,be)}function xn(ji){return(ji<0?-1:1)*Math.pow(Math.abs(ji),2.4)}const tr=Fr(xn(E.r/255)*.2126729+xn(E.g/255)*.7151522+xn(E.b/255)*.072175),Kr=Fr(xn(b.r/255)*.2126729+xn(b.g/255)*.7151522+xn(b.b/255)*.072175);let cr,Fi,ra;return Math.abs(Kr-tr)<Ke?Fi=0:Kr>tr?(cr=ec(Kr,ee)-ec(tr,ie),Fi=cr*rt):(cr=ec(Kr,fe)-ec(tr,oe),Fi=cr*Ft),Math.abs(Fi)<ke?ra=0:Fi>0?ra=Fi-Sn:ra=Fi+xt,ra*100}function fp(a,y,b){b!=null||(b="#fff"),y!=null||(y="#000");const E=dp(a,b),ee=dp(a,y);return Math.abs(E)>Math.abs(ee)?b:y}function Wv(a){const y=Uh(a);let b=((1<<24)+(yd(y.r)<<16)+(yd(y.g)<<8)+yd(y.b)).toString(16).slice(1);return y.alpha!==void 0&&y.alpha<1&&(b+=("00"+Math.round(y.alpha*255).toString(16)).slice(-2)),b[0]===b[1]&&b[2]===b[3]&&b[4]===b[5]&&b[6]===b[7]&&(b=b[0]+b[2]+b[4]+(y.alpha!==void 0&&y.alpha<1?b[6]:"")),"#"+b}function qo(a){const y=hp(a);let b="";for(const E of y){if(typeof E.value!="string")return"";b+=E.value}return b}function hp(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function Zv(a,y){const b=hp(a);if(b.length!==1)return!1;const E=ph[y];return E?!!E.test(b[0].value):!1}function Vv(a,y){return qo(a).length>0}function Uv(a){return[Jh(a,"double-struck","mathbb","tooltip.blackboard"),Jh(a,"fraktur","mathfrak","tooltip.fraktur"),Jh(a,"calligraphic","mathcal","tooltip.caligraphic"),Xh(a,"up","mathrm","tooltip.roman-upright"),Xh(a,"bold","mathbf","tooltip.bold"),Xh(a,"italic","mathit","tooltip.italic")]}function jv(a){return[{label:()=>dl(`\\vec{${qo(a)}}`),visible:()=>qo(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>dl(`\\overrightarrow{${qo(a)}}`),visible:()=>qo(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>dl(`\\overleftarrow{${qo(a)}}`),visible:()=>qo(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>dl(`\\dot{${qo(a)}}`),visible:()=>qo(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>dl(`\\ddot{${qo(a)}}`),visible:()=>qo(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>dl(`\\bar{${qo(a)}}`),visible:()=>qo(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>dl(`\\overline{${qo(a)}}`),visible:()=>qo(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>dl(`\\overgroup{${qo(a)}}`),visible:()=>qo(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>dl(`\\overbrace{${qo(a)}}`),visible:()=>qo(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>dl(`\\underline{${qo(a)}}`),visible:()=>qo(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>dl(`\\undergroup{${qo(a)}}`),visible:()=>qo(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>dl(`\\underbrace{${qo(a)}}`),visible:()=>qo(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Gv(a){return[{label:()=>dl(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>dl(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>dl(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Qv(a){const y=[];for(const b of Object.keys(Tt))y.push({class:(Wv(fp(Tt[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Tt[b]} "></span>`,ariaLabel:()=>{var E;return(E=We(b))!=null?E:b},checked:()=>{var E;return{some:"mixed",all:!0}[(E=a.queryStyle({backgroundColor:b}))!=null?E:!1]},onMenuSelect:()=>{a.applyStyle({backgroundColor:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}function Yv(a){const y=[];for(const b of Object.keys(_t))y.push({class:(fp(_t[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${_t[b]} "></span>`,ariaLabel:()=>{var E;return(E=We(b))!=null?E:b},checked:()=>{var E;return{some:"mixed",all:!0}[(E=a.queryStyle({color:b}))!=null?E:!1]},onMenuSelect:()=>{a.applyStyle({color:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}var Jv=class extends ep{constructor(a,y,b,E){super(a,y),this.row=b,this.col=E}set active(a){const y=this.parentMenu.children;if(a)for(const b of y)b.element.classList.toggle("active",b.row<=this.row&&b.col<=this.col);else for(const b of y)b.element.classList.remove("active")}};function Xv(a){const y=[];for(let b=1;b<=5;b++)for(let E=1;E<=5;E++)y.push({onCreate:(ee,ie)=>new Jv(ee,ie,b,E),label:"\u2610",tooltip:()=>We("tooltip.row-by-col",b,E),data:{row:b,col:E},onMenuSelect:()=>{a.insert(`\\begin{pmatrix}${Array(b).fill(Array(E).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return y}function qv(a){return[{label:()=>We("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>Vc(a)},{label:()=>We("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>Vc(a)},{label:()=>We("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>Vc(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,E]=e1(a);return b<y.maxColumns}},{label:()=>We("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>Vc(a)},{type:"divider"},{label:()=>We("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>Vc(a)},{label:()=>We("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>Vc(a)},{type:"divider"},{label:()=>We("menu.borders"),visible:()=>($v(a)||Vc(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>af(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>af(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>af(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>af(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>af(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>We("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:Xv(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>We("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>We("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{sd(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>We("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{sd(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>We("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>We("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:Uv(a),submenuClass:"variant-submenu"},{label:()=>We("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Yv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>We("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Qv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>We("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:jv(a),submenuClass:"variant-submenu"},{label:()=>We("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&qo(a).length>0,submenu:Gv(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>We("menu.evaluate"),id:"ce-evaluate",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const y=t1(a);if(!y){a.model.announce("plonk");return}a.model.selectionIsCollapsed?(a.model.position=a.model.lastOffset,a.insert(`=${y}`,{insertionMode:"insertAfter",selectionMode:"item"})):a.insert(y,{insertionMode:"replaceSelection",selectionMode:"item"})}},{label:()=>We("menu.simplify"),id:"ce-simplify",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var y,b;if(a.model.selectionIsCollapsed){const E=(y=a.expression)==null?void 0:y.simplify();if(a.model.position=a.model.lastOffset,!E){a.model.announce("plonk");return}a.insert(`=${E.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const E=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection)).simplify();if(!E){a.model.announce("plonk");return}a.insert(E.latex,{insertionMode:"replaceSelection",selectionMode:"item"})}}},{label:()=>{var y;if(window.MathfieldElement.computeEngine===null)return"";const b=(y=a.expression)==null?void 0:y.unknowns[0];return b?We("menu.solve-for",dl(b)):We("menu.solve")},id:"ce-solve",visible:()=>{var y;return a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null&&((y=a.expression)==null?void 0:y.unknowns.length)===1&&a.expression.unknowns[0]!=="Nothing"},onMenuSelect:()=>{var y;const b=a.expression,E=b==null?void 0:b.unknowns[0],ee=(y=b.solve(E))==null?void 0:y.map(ie=>{var oe;return(oe=ie.simplify().latex)!=null?oe:""});if(!ee){a.model.announce("plonk");return}a.insert(`${E}=${ee.length===1?ee[0]:"\\left\\lbrace"+(ee==null?void 0:ee.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>We("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>We("menu.copy"),id:"copy",submenu:[{label:()=>We("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>La.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>We("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>La.copyToClipboard(a,"ascii-math")},{label:()=>We("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>La.copyToClipboard(a,"math-ml")}]},{label:()=>We("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>We("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function Vc(a){var y;return!!((y=a.model.parentEnvironment)!=null&&y.array)}function $v(a){return a.model.at(a.model.position).type==="array"}function e1(a){var y;const b=(y=a.model.parentEnvironment)==null?void 0:y.array;return b?[b.length,b.reduce((E,ee)=>Math.max(E,ee.length),0)]:[0,0]}function af(a,y){kf(a),a.flushInlineShortcutBuffer(),T0(a.model,y),ks(a)}function t1(a){var y,b;let E;if(a.model.selectionIsCollapsed?E=(y=window.MathfieldElement.computeEngine)==null?void 0:y.parse(a.getValue(),{canonical:!1}):E=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection),{canonical:!1}),!E)return"";let ee=E.evaluate();return ee.isSame(E)&&(ee=E.N()),ee.latex}function Jh(a,y,b,E){return{label:()=>dl(`\\${b}{${qo(a)}}`),tooltip:()=>{var ee;return(ee=We(E))!=null?ee:E},visible:()=>Zv(a,y),checked:()=>{var ee;return{some:"mixed",all:!0}[(ee=a.queryStyle({variant:y}))!=null?ee:!1]},onMenuSelect:()=>{a.applyStyle({variant:y},{operation:"toggle"}),a.adoptStyle="none"}}}function Xh(a,y,b,E){return{label:()=>dl(`\\${b}{${qo(a)}}`),tooltip:()=>{var ee;return(ee=We(E))!=null?ee:E},visible:()=>Vv(a,y),checked:()=>{var ee;return{some:"mixed",all:!0}[(ee=a.queryStyle({variantStyle:y}))!=null?ee:!1]},onMenuSelect:()=>{a.applyStyle({variantStyle:y},{operation:"toggle"}),a.adoptStyle="none"}}}function bd(a,y){return a+vd(y)}tu({speak:(a,y,b)=>n1(a,y,b)},{target:"mathfield"});function n1(a,y,b){var E,ee;b=b!=null?b:{withHighlighting:!1};const{model:ie}=a;function oe(ke){let Ke=null;switch(ke){case"all":Ke=ie.root;break;case"selection":Ke=ie.getAtoms(ie.selection);break;case"left":{Ke=ie.getAtoms(ie.offsetOf(ie.at(ie.position).leftSibling),ie.position);break}case"right":{Ke=ie.getAtoms(ie.position,ie.offsetOf(ie.at(ie.position).rightSibling));break}case"group":Ke=ie.getAtoms(ie.getSiblingsRange(ie.position));break;case"parent":{const{parent:rt}=ie.at(ie.position);rt!=null&&rt.parent?Ke=rt:Ke=ie.root;break}default:Ke=ie.root}return Ke}function fe(ke){let Ke="";switch(ke){case"all":console.log("Internal failure: speak all failed");break;case"selection":Ke="no selection";break;case"left":Ke="at start";break;case"right":Ke="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Ke="no parent";break;default:console.log('unknown speak_ param value: "'+ke+'"');break}return Ke}const me=oe(y);if(me===null)return(ee=(E=window.MathfieldElement).speakHook)==null||ee.call(E,fe(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const be=vd(me);return kt()&&b.withHighlighting?(Cc().readAloudMathfield=a,Ic(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,be)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(be),!1}function r1(a){var y,b;if(!kt()){console.log("Speak:",a);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const E=new SpeechSynthesisUtterance(a);window.speechSynthesis.speak(E)}else if(window.MathfieldElement.speechEngine==="amazon")if(!("AWS"in window))console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");else{const E=new window.AWS.Polly({apiVersion:"2016-06-10"}),ee={OutputFormat:"mp3",VoiceId:(y=window.MathfieldElement.speechEngineVoice)!=null?y:"Joanna",Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes((b=window.MathfieldElement.speechEngineVoice)!=null?b:"Joanna")?"neural":"standard",Text:a,TextType:"ssml"};E.synthesizeSpeech(ee,(ie,oe)=>{if(ie)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${ie}`);else if(oe!=null&&oe.AudioStream){const fe=new Uint8Array(oe.AudioStream),me=new Blob([fe.buffer],{type:"audio/mpeg"}),be=URL.createObjectURL(me);new Audio(be).play().catch(Ke=>console.log(Ke))}else console.log("polly.synthesizeSpeech():",oe)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function pp(a){var y;let b;if(a.parent.type==="prompt")a.parentBranch==="body"&&(b="prompt");else if(a.parentBranch==="body")b=a.type&&(y={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[a.type])!=null?y:"parent";else if(a.parent.type==="genfrac"){if(a.parentBranch==="above")return"numerator";if(a.parentBranch==="below")return"denominator"}else a.parent.type==="surd"?a.parentBranch==="above"&&(b="index"):a.parentBranch==="superscript"?b="superscript":a.parentBranch==="subscript"&&(b="subscript");return b||console.log("unknown relationship"),b!=null?b:"parent"}function i1(a,y,b,E){let ee="";if(y==="plonk")window.MathfieldElement.playSound("plonk"),a.flushInlineShortcutBuffer();else if(y==="delete")ee=bd("deleted: ",E);else if(y==="focus"||y.includes("move"))ee=a1(a.model,b)+(a.model.selectionIsCollapsed?"":"selected: ")+o1(a.model);else if(y==="replacement")ee=bd("",a.model.at(a.model.position));else if(y==="line"){const ie=bd("",a.model.root);a.keyboardDelegate.setAriaLabel(ie)}else ee=E?bd(y+" ",E):y;if(ee){const ie=a.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";a.ariaLiveText.textContent=ee+ie}}function a1(a,y){if(Number.isNaN(y))return"";const b=a.at(y);if(!b||b.treeDepth<=a.at(a.position).treeDepth)return"";let E="",ee=b.parent;const ie=a.at(a.position).parent;for(;ee!==a.root&&ee!==ie;)E+=`out of ${pp(ee)};`,ee=ee.parent;return E}function o1(a){if(!a.selectionIsCollapsed)return bd("",a.getAtoms(a.selection));let y="";const b=a.at(a.position),E=pp(b);return b.isFirstSibling&&(y=(E?"start of "+E:"unknown")+": "),b.isLastSibling?b.isFirstSibling||(y+=E?"end of "+E:"unknown"):y+=bd("",b),y}var s1=class{constructor(a,y,b){this.mathfield=a,this.mode=y,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=b}dispose(){this.mathfield=void 0}getState(){const a={ranges:[...this._selection.ranges]};return this.selection.direction&&this.selection.direction!=="none"&&(a.direction=this.selection.direction),{content:this.root.toJson(),selection:a,mode:this.mode}}setState(a,y){var b;const E=this.silenceNotifications;this.silenceNotifications=(b=y==null?void 0:y.silenceNotifications)!=null?b:!0;let ee={};if((y==null?void 0:y.type)==="undo"&&(ee={inputType:"historyUndo"}),(y==null?void 0:y.type)==="redo"&&(ee={inputType:"historyRedo"}),this.contentWillChange(ee)){const ie=this.silenceNotifications;this.silenceNotifications=!0,this.mode=a.mode,this.root=bc(a.content),this.selection=a.selection,this.silenceNotifications=ie,this.contentDidChange(ee)}this.silenceNotifications=E}get atoms(){return this.root.children}get selection(){return this._selection}set selection(a){this.setSelection(a)}setSelection(a,y){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{var b,E,ee;const ie=this.normalizeSelection(a,y);if(ie===void 0)throw new TypeError("Invalid selection");if(ie.ranges.length===1&&ie.ranges[0][0]===ie.ranges[0][1]){const ke=ie.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(ke))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((E=this.at(ke-1))!=null&&E.parentPrompt){this._anchor=this.normalizeOffset(ke-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ee=this.at(ke+1))!=null&&ee.parentPrompt){this._anchor=this.normalizeOffset(ke+1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}this._anchor=0,this._position=0,this._selection={ranges:[[0,0]]};return}this._anchor=ke,this._position=ke,this._selection=ie;return}const oe=ll(ie);ie.direction==="backward"?[this._position,this._anchor]=oe:[this._anchor,this._position]=oe;const fe=this.at(oe[0]+1),me=this.at(oe[1]),be=Zn.commonAncestor(fe,me);(be==null?void 0:be.type)==="array"&&fe.parent===be&&me.parent===be?this._selection={ranges:[oe],direction:ie.direction}:this._selection={ranges:[oe],direction:ie.direction},console.assert(this._position>=0&&this._position<=this.lastOffset)})}setPositionHandlingPlaceholder(a){var y;const b=this.at(a);(b==null?void 0:b.type)==="placeholder"?this.setSelection(a-1,a):((y=b==null?void 0:b.rightSibling)==null?void 0:y.type)==="placeholder"?this.setSelection(a,a+1):this.position=a,b instanceof xl&&b.isSuggestion&&(b.isSuggestion=!1),this.mathfield.stopCoalescingUndo()}get position(){return this._position}set position(a){this.setSelection(a,a)}get anchor(){return this._anchor}get selectionIsCollapsed(){return this._anchor===this._position}get selectionIsPlaceholder(){return Math.abs(this._anchor-this._position)===1?this.at(Math.max(this._anchor,this._position)).type==="placeholder":!1}collapseSelection(a="forward"){return this._anchor===this._position?!1:(a==="backward"?this.position=Math.min(this._anchor,this._position):this.position=Math.max(this._anchor,this._position),!0)}get lastOffset(){return this.atoms.length-1}at(a){return this.atoms[a]}offsetOf(a){return this.atoms.indexOf(a)}getSiblingsRange(a){const y=this.at(a),{parent:b}=y;if(!b)return[0,this.lastOffset];const E=y.parent.branch(y.parentBranch);return[this.offsetOf(E[0]),this.offsetOf(E[E.length-1])]}getBranchRange(a,y){const b=this.at(a).branch(y);return[this.offsetOf(b[0]),this.offsetOf(b[b.length-1])]}getAtoms(a,y,b){let E=b!=null?b:{};if($c(a)){if(E=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((be,ke)=>[...be,...this.getAtoms(ke,E)],[]);a=a.ranges[0]}let ee,ie;if(_u(a)){if(ee=a,!_u(y))return[];ie=y}else[ee,ie]=a,E=y!=null?y:{};if(!Number.isFinite(ee))return[];E.includeChildren===void 0&&(E.includeChildren=!1),ee<0&&(ee=this.lastOffset-ee+1),ie<0&&(ie=this.lastOffset-ie+1);const oe=Math.min(ee,ie)+1,fe=Math.max(ee,ie);if(!E.includeChildren&&oe===1&&fe===this.lastOffset)return[this.root];let me=[];for(let be=oe;be<=fe;be++){const ke=this.atoms[be];mp(this,ke,oe,fe)&&me.push(ke)}return E.includeChildren||(me=me.filter(be=>{let ke=!1,{parent:Ke}=be;for(;Ke&&!ke;)ke=mp(this,Ke,oe,fe),Ke=Ke.parent;return!ke})),me}getAllAtoms(a=0){const y=[],b=this.lastOffset;for(let E=a;E<=b;E++)y.push(this.atoms[E]);for(let E=0;E<a;E++)y.push(this.atoms[E]);return y}findAtom(a,y=0,b="forward"){let E;const ee=this.lastOffset;if(b==="forward"){for(let ie=y;ie<=ee;ie++)if(E=this.atoms[ie],a(E))return E;for(let ie=0;ie<y;ie++)if(E=this.atoms[ie],a(E))return E;return}for(let ie=y;ie>=0;ie--)if(E=this.atoms[ie],a(E))return E;for(let ie=ee;ie>y;ie--)if(E=this.atoms[ie],a(E))return E}extractAtoms(a){let y=this.getAtoms(a);if(y.length===1&&!y[0].parent)if(y[0].type==="root")y=[...y[0].body],y.shift();else return y=this.root.cells.flat(),this.root=new Zn({type:"root",body:[]}),y;for(const b of y)b.parent.removeChild(b);return y}deleteAtoms(a){this.extractAtoms(a),this.position=a[0]}atomToString(a,y){const b=y!=null?y:"latex";if(b.startsWith("latex"))return Zn.serialize([a],{expandMacro:b==="latex-expanded",skipStyles:b==="latex-unstyled",skipPlaceholders:b==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode});if(b==="math-ml")return xo(a);if(b==="spoken")return vd(a);if(b==="spoken-text"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ee=vd(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}if(b==="spoken-ssml"||b==="spoken-ssml-with-highlighting"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const ee=vd(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}return b==="ascii-math"?Os(a):(console.error(`MathLive 0.98.5: Unexpected format "${b}`),"")}getValue(a,y,b){if(a===void 0)return this.atomToString(this.root,"latex");if(typeof a=="string"&&a!=="math-json")return this.atomToString(this.root,a);let E,ee;if(_u(a)&&_u(y)?(E=[this.normalizeRange([a,y])],ee=b):qc(a)?(E=[this.normalizeRange(a)],ee=y):$c(a)?(E=a.ranges,ee=y):(E=[this.normalizeRange([0,-1])],ee=a),ee!=null||(ee="latex"),ee==="math-json"){if(!window.MathfieldElement.computeEngine)return window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`The CortexJS Compute Engine library is not available.
|
|
|
Load the library, for example with:
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`),'["Error", "compute-engine-not-available"]';const ie=this.getValue({ranges:E},"latex-unstyled");try{const oe=window.MathfieldElement.computeEngine.parse(ie);return JSON.stringify(oe.json)}catch(oe){return JSON.stringify(["Error",`'${oe.toString()}'`])}}if(ee.startsWith("latex")){const ie={expandMacro:ee==="latex-expanded",skipStyles:ee==="latex-unstyled",skipPlaceholders:ee==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return di(E.map(oe=>Zn.serialize(this.getAtoms(oe),ie)))}return E.map(ie=>this.getAtoms(ie).map(oe=>this.atomToString(oe,ee)).join("")).join("")}extendSelectionTo(a,y){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{const b=this.normalizeRange([a,y]);let[E,ee]=b,{parent:ie}=this.at(ee);if(ie&&(ie.type==="genfrac"||ie.type==="subsup"))for(;ie!==this.root&&qh(this,ie,[E,ee]);)ee=this.offsetOf(ie),ie=ie.parent;for(ie=this.at(E).parent;ie!==this.root&&qh(this,ie,[E,ee]);)E=this.offsetOf(ie.leftSibling),ie=ie.parent;if(ie=this.at(ee).parent,(ie==null?void 0:ie.type)==="genfrac")for(;ie!==this.root&&qh(this,ie,[E,ee]);)ee=this.offsetOf(ie),console.assert(ee>=0),ie=ie.parent;this._position=this.normalizeOffset(y),this._selection={ranges:[[E,ee]],direction:"none"}})}announce(a,y,b=[]){var E,ee;((ee=(E=this.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("announce",{detail:{command:a,previousPosition:y,atoms:b},cancelable:!0,bubbles:!0,composed:!0})))!=null?ee:!0)&&i1(this.mathfield,a,y,b)}deferNotifications(a,y){const b=this._selection,E=this._anchor,ee=this._position,ie=this.silenceNotifications;this.silenceNotifications=!0;const oe=this.root.changeCounter;y();const fe=this.root.changeCounter!==oe,me=E!==this._anchor||ee!==this._position||Fc(this._selection,b)==="different";return this.silenceNotifications=ie,a.content&&fe&&this.contentDidChange({inputType:a.type}),a.selection&&me&&this.selectionDidChange(),fe||me}normalizeOffset(a){return a>0?a=Math.min(a,this.lastOffset):a<0&&(a=this.lastOffset+a+1),a}normalizeRange(a){let[y,b]=a;return y=this.normalizeOffset(y),b=this.normalizeOffset(b),y<b?[y,b]:[b,y]}normalizeSelection(a,y){var b;let E;if(_u(a)){const ee=this.normalizeOffset(a);if(_u(y)){const ie=this.normalizeOffset(y);E=ee<=ie?{ranges:[[ee,ie]],direction:"none"}:{ranges:[[ie,ee]],direction:"backward"}}else E={ranges:[[ee,ee]],direction:"none"}}else if(qc(a)){const ee=this.normalizeOffset(a[0]),ie=this.normalizeOffset(a[1]);E=ee<=ie?{ranges:[[ee,ie]],direction:"none"}:{ranges:[[ie,ee]],direction:"backward"}}else $c(a)&&(E={ranges:a.ranges.map(ee=>this.normalizeRange(ee)),direction:(b=a.direction)!=null?b:"none"});return console.assert(E!==void 0),E}get parentEnvironment(){let a=this.at(this.position).parent;if(a){for(;a.parent&&a.type!=="array";)a=a.parent;if(a.type==="array")return a}}get cell(){var a;let y=this.at(this.position);if(y){for(;y&&((a=y.parent)==null?void 0:a.type)!=="array";)y=y.parent;if(!(!(y!=null&&y.parent)||y.parent.type!=="array"))return y.parentBranch}}contentWillChange(a={}){if(this.silenceNotifications||!this.mathfield)return!0;const y=this.silenceNotifications;this.silenceNotifications=!0;const b=this.mathfield.onContentWillChange(a);return this.silenceNotifications=y,b}contentDidChange(a){var y;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(ju(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",ye(Ee({},a),{data:a.data?a.data:(y=a.inputType)!=null?y:"",bubbles:!0,composed:!0}))),this.silenceNotifications=b}selectionDidChange(){if(!this.mathfield||(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(ju(this.mathfield)),this.silenceNotifications))return;const a=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=a}};function mp(a,y,b,E){const ee=a.offsetOf(y);if(ee<b||ee>E)return!1;if(!y.hasChildren)return!0;const ie=a.offsetOf(y.firstChild);if(ie>=b&&ie<=E){const oe=a.offsetOf(y.lastChild);if(oe>=b&&oe<=E)return!0}return!1}function qh(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[E,ee]=b,ie=a.offsetOf(y.firstChild),oe=a.offsetOf(y.lastChild);return ie>=E&&ie<=ee&&oe>=ie&&oe<=ee}function of(a,y,b,E){var ee,ie,oe,fe,me,be;const ke=b.parent;if(ke&&b instanceof bo){const Ke=!E&&y==="forward"||E==="body"&&y==="backward";let rt=Ke?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return Ke?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(ke.addChildrenAfter(b.removeBranch("body"),b),ke.removeChild(b),rt--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(ke.addChildrenAfter(b.removeBranch("body"),b),ke.removeChild(b),rt--),a.position=rt,!0}if(ke&&b.type==="surd"){if(y==="forward"&&!E||y==="backward"&&E==="body"){const Ke=b.leftSibling;b.hasChildren&&ke.addChildrenAfter(b.removeBranch("body"),b),ke.removeChild(b),a.position=a.offsetOf(Ke)}else y==="forward"&&E==="body"?a.position=a.offsetOf(b):!E&&y==="backward"?b.hasChildren?a.position=a.offsetOf(b.lastChild):(a.position=Math.max(0,a.offsetOf(b)-1),ke.removeChild(b)):E==="above"&&(b.hasEmptyBranch("above")&&b.removeBranch("above"),y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b.body[0]));return!0}if(ke&&(b.type==="box"||b.type==="enclose")){const Ke=E&&y==="backward"||!E&&y==="forward"?b.leftSibling:b.lastChild;return ke.addChildrenAfter(b.removeBranch("body"),b),ke.removeChild(b),a.position=a.offsetOf(Ke),!0}if(b.type==="genfrac"||b.type==="overunder"){if(!E)return b.type==="overunder"&&b.hasEmptyBranch("body")||b.type==="genfrac"&&b.hasEmptyBranch("below")&&b.hasEmptyBranch("above")?!1:(a.position=a.offsetOf(y==="forward"?b.firstChild:b.lastChild),!0);const Ke=sf.fractionNavigationOrder==="numerator-denominator"?"above":"below",rt=Ke==="above"?"below":"above";if(ke&&(y==="forward"&&E===Ke||y==="backward"&&E===rt)){const xt=b.removeBranch(Ke),Ft=b.removeBranch(rt);return ke.addChildrenAfter([...xt,...Ft],b),ke.removeChild(b),a.position=a.offsetOf(xt.length>0?xt[xt.length-1]:Ft[0]),!0}return y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b),!0}if(b.isExtensibleSymbol||b.type==="subsup"){if(!E&&y==="forward")return!1;if(!E){if(b.subscript||b.superscript){const Ke=y==="forward"?(oe=(ee=b.superscript)==null?void 0:ee[0])!=null?oe:(ie=b.subscript)==null?void 0:ie[0]:(be=(fe=b.subscript)==null?void 0:fe[0].lastSibling)!=null?be:(me=b.superscript)==null?void 0:me[0].lastSibling;return Ke&&(a.position=a.offsetOf(Ke)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const Ke=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=Ke,!0}if(E==="superscript")if(y==="backward"){const Ke=a.offsetOf(b.firstChild)-1;console.assert(Ke>=0),a.position=Ke}else b.subscript?a.position=a.offsetOf(b.subscript[0]):a.position=a.offsetOf(b);else E==="subscript"&&(y==="backward"&&b.superscript?a.position=a.offsetOf(b.superscript[0].lastSibling):y==="backward"?a.position=a.offsetOf(b.firstChild)-1:a.position=a.offsetOf(b));if(E&&b.hasEmptyBranch(E)&&(b.removeBranch(E),b.type==="subsup"&&!b.subscript&&!b.superscript)){const Ke=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=Ke}return!0}if((ke==null?void 0:ke.type)==="genfrac"&&!E&&b.type!=="first"){let Ke=a.offsetOf(b.leftSibling);return ke.removeChild(b),ke.hasEmptyBranch("above")&&ke.hasEmptyBranch("below")?(Ke=a.offsetOf(ke.leftSibling),ke.parent.removeChild(ke),a.announce("delete",void 0,[ke]),a.position=Ke,!0):(a.announce("delete",void 0,[b]),a.position=Ke,!0)}if(y==="backward"&&((ke==null?void 0:ke.command)==="\\ln"||(ke==null?void 0:ke.command)==="\\log")&&b.parentBranch!=="body"){const Ke=a.offsetOf(ke.leftSibling);return ke.parent.removeChild(ke),a.announce("delete",void 0,[ke]),a.position=Ke,!0}return!1}function l1(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentBackward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentBackward"},()=>{let y=a.at(a.position);if(!(y&&of(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(of(a,"backward",y.parent,y.parentBranch))return;y=null}if(!y){a.announce("plonk");return}a.position=a.offsetOf(y.leftSibling),y.parent.removeChild(y),a.announce("delete",void 0,[y])}}):Qu(a,ll(a.selection),"deleteContentBackward")}function u1(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentForward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var y,b;let E=a.at(a.position).rightSibling;if(E&&of(a,"forward",E))return;if(E){if(a.at(a.position).isLastSibling&&of(a,"forward",E.parent,E.parentBranch))return}else{if(E=a.at(a.position),E.isLastSibling&&of(a,"forward",E.parent,E.parentBranch))return;E=void 0}if(a.position===a.lastOffset||!E){a.announce("plonk");return}E.parent.removeChild(E);let ee=(y=a.at(a.position))==null?void 0:y.rightSibling;for(;(ee==null?void 0:ee.type)==="subsup";)ee.parent.removeChild(ee),ee=(b=a.at(a.position))==null?void 0:b.rightSibling;a.announce("delete",void 0,[E])}):Qu(a,ll(a.selection),"deleteContentForward")}function Qu(a,y,b){const E=a.getAtoms(y);if(E.length>0&&E[0].parent){let ee=E[0].parent.firstChild;ee.type==="first"&&(ee=ee.rightSibling);const ie=E[E.length-1].parent.lastChild;let oe=E[0];oe.type==="first"&&(oe=oe.rightSibling);const fe=E[E.length-1];if(oe===ee&&fe===ie){const me=E[0].parent;me.parent&&me.type!=="prompt"&&(y=[a.offsetOf(me.leftSibling),a.offsetOf(me)])}if(E.length===1&&E[0].type==="placeholder"&&E[0].parent.type==="genfrac"){const me=E[0].parent,be=E[0].parentBranch==="below"?"above":"below",ke=a.offsetOf(me.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var Ke,rt;const xt=me.removeBranch(be);if(xt.length===1&&xt[0].type==="placeholder")(rt=me.parent)==null||rt.removeChild(me),a.position=Math.max(0,ke);else{const Ft=me.parent.addChildrenAfter(xt,me);(Ke=me.parent)==null||Ke.removeChild(me),a.position=a.offsetOf(Ft)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}tu({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&Qu(a,[0,-1],"deleteContent"),deleteForward:a=>u1(a),deleteBackward:a=>l1(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&Qu(a,[a.anchor,Mh(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&Qu(a,[a.anchor,Mh(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&Qu(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&Qu(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&Qu(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&Qu(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var c1=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${We("tooltip.toggle virtual keyboard")}"><path d="M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm16 336c0 8.823-7.177 16-16 16H48c-8.823 0-16-7.177-16-16V112c0-8.823 7.177-16 16-16h480c8.823 0 16 7.177 16 16v288zM168 268v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-336 80v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm384 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zM120 188v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-96 152v-8c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"/></svg>`,d1=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${We("tooltip.menu")}"><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>`,f1=class{constructor(a,y){this.focusBlurInProgress=!1;var b,E,ee;this.options=Ee(ye(Ee({},Rf()),{macros:Jr(),registers:pc()}),Of(y)),this.eventController=new AbortController;const ie=this.eventController.signal;y.eventSink&&(this.host=y.eventSink),this.element=a,a.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left",this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let oe=(E=(b=y.value)!=null?b:this.element.textContent)!=null?E:"";oe=oe.trim();const fe=D0(this.options),me=new Zn({type:"root",mode:fe,body:cl(oe,{context:this.context})});this.model=new s1(this,fe,me),this.undoManager=new Rg(this.model);const be=[];if(be.push("<span contenteditable=true aria-multiline=false part=keyboard-sink class=ML__keyboard-sink autocapitalize=off autocomplete=off autocorrect=off spellcheck=false inputmode=none tabindex=0></span>"),be.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),be.push("<span part=content class=ML__content>"),be.push(w0(this)),be.push("</span>"),window.mathVirtualKeyboard&&(be.push(`<div part=virtual-keyboard-toggle class=ML__virtual-keyboard-toggle role=button ${this.hasEditableContent?"":'style="display:none;"'} data-l10n-tooltip="tooltip.toggle virtual keyboard">`),be.push(c1),be.push("</div>")),be.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),be.push(d1),be.push("</div>"),be.push("</span>"),be.push("<span class=ML__sr-only>"),be.push("<span role=status aria-live=assertive aria-atomic=true></span>"),be.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(be.join("")),!this.element.children){console.error("%cMathLive 0.98.5: Something went wrong and the mathfield could not be created.%c\nIf you are using Vue, this may be because you are using the runtime-only build of Vue. Make sure to include `runtimeCompiler: true` in your Vue configuration. There may a warning from Vue in the log above.","color:red;font-family:system-ui;font-size:1.2rem;font-weight:bold","color:inherit;font-family:system-ui;font-size:inherit;font-weight:inherit");return}this._l10Subscription=Ye.subscribe(()=>Ye.update(this.element)),Ye.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Ke=>Ke.stopImmediatePropagation(),{capture:!1,signal:ie}),this.field.addEventListener("wheel",this,{passive:!1,signal:ie}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:ie}):this.field.addEventListener("mousedown",this,{signal:ie}),(ee=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||ee.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(ju(this)))},{signal:ie}),this._menu=new Ev(qv(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:ie});const ke=this.element.querySelector("[part=menu-toggle]");ke==null||ke.addEventListener("pointerdown",Ke=>{if(Ke.currentTarget!==ke||this._menu.state!=="closed")return;this.element.classList.add("tracking");const rt=ke.getBoundingClientRect();this._menu.modifiers=Nc(Ke),this._menu.show({target:ke,location:{x:rt.left,y:rt.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Ke.preventDefault(),Ke.stopPropagation()},{signal:ie}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(ke.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=Wm(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:ie}),document.addEventListener("scroll",this,{signal:ie}),this.resizeObserver=new ResizeObserver(()=>ks(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:ie}),Vd&&!Ye.locale.startsWith(Vd.locale)&&_m(Ye.locale),cu!=="ready"&&document.fonts.ready.then(()=>Lf(this)),a.querySelector("[part=container]").style.removeProperty("visibility"),this.undoManager.startRecording(),this.undoManager.snapshot("set-value")}get defaultStyle(){return this._defaultStyle}set defaultStyle(a){this._defaultStyle=a}get effectiveStyle(){if(this.adoptStyle==="none")return this.defaultStyle;const a=this.model.at(this.model.position),y=this.adoptStyle==="right"?a.rightSibling:a;if(!y)return this.defaultStyle;if(y.type==="group"){const b=y.branch("body");return!b||b.length<2?{}:this.adoptStyle==="right"?b[1].computedStyle:b[b.length-1].computedStyle}return y.computedStyle}connectToVirtualKeyboard(){this.connectedToVirtualKeyboard||(this.connectedToVirtualKeyboard=!0,window.addEventListener("message",this,{signal:this.eventController.signal}),window.mathVirtualKeyboard.connect(),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(ju(this)),Yf(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,_h())}showMenu(a){var y,b;const E=(b=(y=a==null?void 0:a.location)!=null?y:zu(this.field))!=null?b:void 0,ee=a==null?void 0:a.modifiers,ie=this.element.querySelector("[part=container]");return this._menu.show({target:ie,location:E,modifiers:ee})}get colorMap(){return a=>{var y,b,E;return(E=(b=(y=this.options).colorMap)==null?void 0:b.call(y,a))!=null?E:ct(a)}}get backgroundColorMap(){return a=>{var y,b,E,ee,ie,oe;return(oe=(ie=(b=(y=this.options).backgroundColorMap)==null?void 0:b.call(y,a))!=null?ie:(ee=(E=this.options).colorMap)==null?void 0:ee.call(E,a))!=null?oe:He(a)}}get smartFence(){var a;return(a=this.options.smartFence)!=null?a:!1}get readOnly(){var a;return(a=this.options.readOnly)!=null?a:!1}get disabled(){var a,y;return(y=(a=this.host)==null?void 0:a.disabled)!=null?y:!1}get contentEditable(){return this.host?this.host.getAttribute("contenteditable")!=="false":!1}get userSelect(){if(!this.host)return"";const a=getComputedStyle(this.host);return a.getPropertyValue("user-select")||a.getPropertyValue("-webkit-user-select")}get hasEditableContent(){return this.disabled||!this.contentEditable?!1:!this.readOnly||this.hasEditablePrompts}get hasEditablePrompts(){return this.readOnly&&!this.disabled&&this.contentEditable&&this.model.findAtom(a=>a.type==="prompt"&&!a.locked)!==void 0}get isSelectionEditable(){if(this.disabled||!this.contentEditable)return!1;if(!this.readOnly)return!0;const a=this.model.at(this.model.anchor),y=this.model.at(this.model.position),b=Zn.commonAncestor(a,y);return!!((b==null?void 0:b.type)==="prompt"||b!=null&&b.parentPrompt)}get letterShapeStyle(){var a;return(a=this.options.letterShapeStyle)!=null?a:"tex"}get minFontScale(){return this.options.minFontScale}get selectionStyle(){if(this.model.selectionIsCollapsed)return this.effectiveStyle;const a=this.model.getAtoms(this.model.selection);if(a.length===0)return{};const y=Ee({},a[0].style);for(const b of a)for(const[E,ee]of Object.entries(b.style))y[E]!==ee&&delete y[E];return y}queryStyle(a){const y=Ph(this,a);"verbatimColor"in y&&delete y.verbatimColor,"verbatimBackgroundColor"in y&&delete y.verbatimBackgroundColor;const b=Object.keys(y).length;if(b===0)return"all";if(b>1){for(const me of Object.keys(y)){const be=this.queryStyle({[me]:y[me]});if(be==="none")return"none";if(be==="some")return"some"}return"all"}const E=Object.keys(y)[0],ee=y[E];if(this.model.selectionIsCollapsed)return this.effectiveStyle[E]===ee?"all":"none";const ie=this.model.getAtoms(this.model.selection,{includeChildren:!0});let oe=ie.length;if(oe===0)return"none";let fe=0;for(const me of ie){if(me.type==="first"){oe-=1;continue}me.style[E]===ee&&(fe+=1)}return fe===0?"none":fe===oe?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,E]=Gm(this.options.keybindings,(a=Ud())!=null?a:Km());return((y=Ud())==null?void 0:y.score)>0&&(this._keybindings=b,E.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",E)),b}get menu(){return this._menu}setOptions(a){var y;this.options=Ee(Ee({},this.options),Of(a)),this._keybindings=void 0,this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let b=this.options.defaultMode;b==="inline-math"&&(b="math"),((y=this.model.root.firstChild)==null?void 0:y.mode)!==b&&(this.model.root.firstChild.mode=b),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const E=Zn.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==E)&&La.insert(this.model,E,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",silenceNotifications:!0,mode:"math"}),("value"in a||"macros"in a||"registers"in a||"colorMap"in a||"backgroundColorMap"in a||"letterShapeStyle"in a||"minFontScale"in a||"readOnly"in a||"placeholderSymbol"in a)&&ks(this)}getOptions(a){return Rc(this.options,a)}getOption(a){return Rc(this.options,a)}handleEvent(a){return Sc(this,null,function*(){var y;if(su(this)){if(Ch(a)){if(!Od(a.origin,(y=this.options.originValidator)!=null?y:"none"))throw new DOMException(`Message from unknown origin (${a.origin}) cannot be handled`,"SecurityError");const{action:b}=a.data;if(b==="execute-command"){const E=a.data.command;if(ud(E)==="virtual-keyboard")return;this.executeCommand(E)}else b==="update-state"||(b==="focus"?this.focus({preventScroll:!0}):b==="blur"&&this.blur());return}switch(a.type){case"focus":this.onFocus();break;case"blur":this.onBlur();break;case"mousedown":this.userSelect!=="none"&&V0(this,a);break;case"pointerdown":this.userSelect!=="none"&&(V0(this,a),a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&Uf.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&Uf.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&Yf(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>su(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>su(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!su(this))return;Ye.unsubscribe(this._l10Subscription),this.keyboardDelegate.dispose(),this.keyboardDelegate=void 0,this.eventController.abort(),this.eventController=void 0,this.resizeObserver.disconnect(),window.mathVirtualKeyboard.removeEventListener("virtual-keyboard-toggle",this),this.disconnectFromVirtualKeyboard(),this.model.dispose();const a=this.element;delete a.mathfield,this.element=void 0,this.host=void 0,this.field=void 0,this.ariaLiveText=void 0,Qg(),$m(),mv()}flushInlineShortcutBuffer(a){if(a!=null||(a={defer:!1}),!a.defer){this.inlineShortcutBuffer=[],clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=0;return}this.options.inlineShortcutTimeout>0&&(clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=setTimeout(()=>this.flushInlineShortcutBuffer(),this.options.inlineShortcutTimeout))}executeCommand(a){return ud(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(ju(this))),!1):og(this,a)}get errors(){return t0(this.model.getValue(),{context:this.context})}getValue(a,y,b){return this.model.getValue(a,y,b)}setValue(a,y){var b;y=y!=null?y:{mode:"math"},y.insertionMode===void 0&&(y.insertionMode="replaceAll"),(y.format===void 0||y.format==="auto")&&(y.format="latex"),(y.mode===void 0||y.mode==="auto")&&(y.mode=(b=ah(this.model,this.model.position))!=null?b:"math");const E=this.undoManager.canUndo();La.insert(this.model,a,y)&&(ks(this),E||this.undoManager.reset(),this.undoManager.snapshot("set-value"))}get expression(){const a=window.MathfieldElement.computeEngine;return a?a.box(a.parse(this.model.getValue("latex-unstyled"))):(console.error("MathLive 0.98.5: no compute engine available. Make sure the Compute Engine library is loaded."),null)}scrollIntoView(){var a;if(!this.element)return;if(this.host){if(this.options.onScrollIntoView)this.options.onScrollIntoView(this);else if(this.host.scrollIntoView({block:"nearest",inline:"nearest"}),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.container===window.document.body){const E=window.mathVirtualKeyboard.boundingRect,ee=this.host.getBoundingClientRect();ee.bottom>E.top&&((a=window.document.scrollingElement)==null||a.scrollBy(0,ee.bottom-E.top+8))}}this.dirty&&Ic(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=zu(this.field);else{const E=Id(this);if(E.length>0){let ee=-1/0,ie=-1/0;for(const oe of E)oe.right>ee&&(ee=oe.right),oe.top<ie&&(ie=oe.top);b={x:ee+y.left-this.field.scrollLeft,y:ie+y.top-this.field.scrollTop,height:0}}}if(this.host&&b){const E=this.host.getBoundingClientRect(),ee=b.y;let ie=this.host.scrollTop;ee<E.top?ie=ee-E.top+this.host.scrollTop:ee>E.bottom&&(ie=ee-E.bottom+this.host.scrollTop+b.height),this.host.scroll({top:ie,left:0})}if(b){const E=b.x-window.scrollX;let ee=this.field.scrollLeft;E<y.left?ee=E-y.left+this.field.scrollLeft-20:E>y.right&&(ee=E-y.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:ee})}}insert(a,y){return typeof a!="string"||a.length===0&&((y==null?void 0:y.insertionMode)==="insertBefore"||(y==null?void 0:y.insertionMode)==="insertAfter")||a.length===0&&this.model.selectionIsCollapsed?!1:(this.flushInlineShortcutBuffer(),y=y!=null?y:{mode:"math"},y.focus&&this.focus(),y.feedback&&(window.MathfieldElement.keypressVibration&&ft()&&navigator.vibrate(E0),window.MathfieldElement.playSound("keypress")),a==="\\\\"?F0(this.model):a==="&"?L0(this.model):this.model.selectionIsCollapsed?La.insert(this.model,a,Ee({style:this.model.at(this.model.position).computedStyle},y)):La.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),ks(this),y.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(a,y="",b=""){var E;if(this.model.mode===a||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const ee=this.model.mode;if(this.model.mode=a,!((E=this.host)!=null&&E.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=ee;return}const ie=this.model.mode,{model:oe}=this;oe.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let fe=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const me=cl(y,{context:this.context,parseMode:a});oe.collapseSelection("forward");const be=oe.at(oe.position);oe.position=oe.offsetOf(be.parent.addChildrenAfter(me,be)),fe=!0}if(this.model.mode=a,a==="latex"){let me=oe.selectionIsCollapsed;sd(this,"accept");let be,ke=oe.at(oe.position);if(me)be="\\";else{const rt=ll(oe.selection);be=this.model.getValue(rt,"latex");const xt=this.model.extractAtoms(rt);xt.length===1&&xt[0].type==="placeholder"&&(be=y,me=!0),ke=oe.at(rt[0])}const Ke=new _d(be);ke.parent.addChildAfter(Ke,ke),me?oe.position=oe.offsetOf(Ke.lastChild):oe.setSelection(oe.offsetOf(Ke.firstChild),oe.offsetOf(Ke.lastChild))}else jd(oe).forEach(me=>{me.isError=!1});if(b){const me=cl(b,{context:this.context,parseMode:ie});oe.collapseSelection("forward");const be=oe.at(oe.position);oe.position=oe.offsetOf(be.parent.addChildrenAfter(me,be)),fe=!0}return ks(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),fe}),this.model.mode=a,window.mathVirtualKeyboard.update(ju(this))}hasFocus(){return!this.blurred}focus(a){var y;this.hasFocus()||(this.keyboardDelegate.focus(),this.connectToVirtualKeyboard(),this.onFocus(),this.model.announce("line")),(y=a==null?void 0:a.preventScroll)!=null&&y||this.scrollIntoView()}blur(){this.disconnectFromVirtualKeyboard(),this.hasFocus()&&this.keyboardDelegate.blur()}select(){this.model.selection={ranges:[[0,this.model.lastOffset]]},this.focus()}applyStyle(a,y={}){var b,E;const ee={operation:"set",silenceNotifications:!1};qc(y)?ee.range=y:(y.operation==="toggle"&&(ee.operation="toggle"),ee.range=y.range,ee.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const ie=Ph(this,a),oe=(E=ee.operation)!=null?E:"set";if(ee.range===void 0&&this.model.selectionIsCollapsed){if(oe==="set"){this.defaultStyle=Ee(Ee({},this.defaultStyle),ie);return}const fe=Ee({},this.defaultStyle);for(const me of Object.keys(ie))fe[me]===ie[me]?(me==="color"&&delete fe.verbatimColor,me==="backgroundColor"&&delete fe.verbatimBackgroundColor,delete fe[me]):fe[me]=ie[me];this.defaultStyle=fe;return}this.model.deferNotifications({content:!ee.silenceNotifications,type:"insertText"},()=>{if(ee.range===void 0)for(const fe of this.model.selection.ranges)Ah(this.model,fe,ie,{operation:oe});else Ah(this.model,ee.range,ie,{operation:oe})}),ks(this)}toggleContextMenu(){var a;return this._menu.visible?this._menu.state==="open"?(this._menu.hide(),!0):(this._menu.show({target:this.element.querySelector("[part=container]"),location:(a=this.getCaretPoint())!=null?a:void 0,onDismiss:()=>{var y;return(y=this.element)==null?void 0:y.focus()}}),!0):!1}getCaretPoint(){const a=zu(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=ef(this,a,y,{bias:0});if(b<0)return!1;const E=this.model.position;return this.model.position=b,this.model.announce("move",E),ks(this),!0}getPrompt(a){const y=this.model.findAtom(b=>b.type==="prompt"&&b.placeholderId===a);return console.assert(y!==void 0,"MathLive 0.98.5: no prompts with matching ID found"),y}getPromptValue(a,y){const b=this.getPrompt(a);if(!b)return"";const E=this.model.offsetOf(b.firstChild),ee=this.model.offsetOf(b.lastChild);return this.model.getValue(E,ee,y)}getPrompts(a){return this.model.getAllAtoms().filter(y=>y.type!=="prompt"?!1:a?!(a.id&&y.placeholderId!==a.id||a.locked&&y.locked!==a.locked||a.correctness==="undefined"&&y.correctness||a.correctness&&y.correctness!==a.correctness):!0).map(y=>y.placeholderId)}setPromptValue(a,y,b){if(y!==void 0){const E=this.getPrompt(a);if(!E){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}const ee=this.model.getBranchRange(this.model.offsetOf(E),"body");this.model.setSelection(ee),this.insert(y,ye(Ee({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),ks(this)}setPromptState(a,y,b){const E=this.getPrompt(a);if(!E){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}y==="undefined"?E.correctness=void 0:typeof y=="string"&&(E.correctness=y),typeof b=="boolean"&&(E.locked=b,E.captureSelection=b),ks(this)}getPromptState(a){const y=this.getPrompt(a);return y?[y.correctness,y.locked]:(console.error(`MathLive 0.98.5: unknown prompt ${a}`),[void 0,!0])}getPromptRange(a){const y=this.getPrompt(a);return y?this.model.getBranchRange(this.model.offsetOf(y),"body"):(console.error(`MathLive 0.98.5: unknown prompt ${a}`),[0,0])}canUndo(){return this.undoManager.canUndo()}canRedo(){return this.undoManager.canRedo()}popUndoStack(){this.undoManager.pop()}snapshot(a){var y;this.undoManager.snapshot(a)&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(ju(this)),(y=this.host)==null||y.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"snapshot"}})))}stopCoalescingUndo(){this.undoManager.stopCoalescing(this.model.selection)}stopRecording(){this.undoManager.stopRecording()}startRecording(){this.undoManager.startRecording()}undo(){var a;this.undoManager.undo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(ju(this)),(a=this.host)==null||a.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}redo(){var a;this.undoManager.redo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(ju(this)),(a=this.host)==null||a.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}resetUndo(){var a;(a=this.undoManager)==null||a.reset()}onSelectionDidChange(){var a,y;const b=this.model;this.keyboardDelegate.setValue(b.getValue(this.model.selection,"latex-expanded"));{const E=b.at(b.position),ee=(a=E.mode)!=null?a:D0(this.options);this.model.mode!==ee&&(this.model.mode==="latex"?(sd(this,"accept",{mode:ee}),b.position=b.offsetOf(E)):this.switchMode(ee))}(y=this.host)==null||y.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(ju(this)),Yf(this)}onContentWillChange(a){var y,b,E;return(E=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",ye(Ee({},a),{data:a.data?a.data:(y=a.inputType)!=null?y:"",cancelable:!0,bubbles:!0,composed:!0}))))!=null?E:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),Ic(this,{interactive:!0}),this.valueOnFocus=this.model.getValue(),this.hasEditablePrompts&&!this.model.at(this.model.anchor).parentPrompt&&this.executeCommand("moveToNextPlaceholder"),this.focusBlurInProgress=!1)}onBlur(){var a,y,b;if(this.focusBlurInProgress||this.blurred)return;this.focusBlurInProgress=!0,this.stopCoalescingUndo(),this.blurred=!0,this.ariaLiveText.textContent="",ld(this),this.model.getValue()!==this.valueOnFocus&&((a=this.host)==null||a.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),this.disconnectFromVirtualKeyboard(),(y=this.host)==null||y.dispatchEvent(new Event("blur",{bubbles:!1,composed:!0})),(b=this.host)==null||b.dispatchEvent(new UIEvent("focusout",{bubbles:!0,composed:!0})),ks(this),this.focusBlurInProgress=!1,_h();const E=new AbortController,ee=E.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{su(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ee})},{once:!0,signal:ee}),setTimeout(()=>E.abort(),100)}onInput(a){Fh(this,a)}onKeystroke(a){return z0(this,a)}onCompositionStart(a){this.model.deleteAtoms(ll(this.model.selection));const y=zu(this.field);y&&requestAnimationFrame(()=>{Ic(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Bg(this.model,a),ks(this)}onCompositionEnd(a){Dg(this.model),Fh(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),La.onCopy(this,a),Qu(this.model,ll(this.model.selection),"deleteByCut"),this.snapshot("cut"),ks(this))}onCopy(a){La.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=La.onPaste(this.model.at(this.model.position).mode,this,a.clipboardData)),y||this.model.announce("plonk"),a.preventDefault(),a.stopPropagation(),y}onGeometryChange(){this._menu.hide(),Bf(this),Yf(this)}onWheel(a){const y=5*a.deltaX;if(!Number.isFinite(y)||y===0)return;const b=this.field;y<0&&b.scrollLeft===0||y>0&&b.offsetWidth+b.scrollLeft>=b.scrollWidth||(b.scrollBy({top:0,left:y}),a.preventDefault(),a.stopPropagation())}getHTMLElement(a){let y=a;for(;!y.id&&y.hasChildren;)y=a.children[0];return this.field.querySelector(`[data-atom-id="${y.id}"]`)}get context(){var a,y;return{registers:(a=this.options.registers)!=null?a:{},smartFence:this.smartFence,letterShapeStyle:this.letterShapeStyle,minFontScale:this.minFontScale,placeholderSymbol:(y=this.options.placeholderSymbol)!=null?y:"\u25A2",colorMap:b=>this.colorMap(b),backgroundColorMap:b=>this.backgroundColorMap(b),getMacro:b=>Ji(b,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function gp(a){if(a&&(a.classList.remove("ML__highlight"),a.children))for(const y of a.children)gp(y)}function $h(a,y){var b;a&&(!y||((b=a.dataset)==null?void 0:b.atomId)===y?(a.classList.add("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&$h(E)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&$h(E,y)})))}function h1(a,y){var b;if(!kt())return;if(window.MathfieldElement.speechEngine!=="amazon"){console.error("MathLive 0.98.5: Use Amazon TTS Engine for synchronized highlighting"),typeof window.MathfieldElement.speakHook=="function"&&window.MathfieldElement.speakHook(y);return}if(!window.AWS){console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");return}const E=new window.AWS.Polly({apiVersion:"2016-06-10"}),ee={OutputFormat:"json",VoiceId:(b=window.MathfieldElement.speechEngineVoice)!=null?b:"Joanna",Engine:"standard",Text:y,TextType:"ssml",SpeechMarkTypes:["ssml"]};Cc().readAloudElement=a,E.synthesizeSpeech(ee,(ie,oe)=>{if(ie){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${ie}`);return}if(!(oe!=null&&oe.AudioStream)){console.log("polly.synthesizeSpeech():",oe);return}const fe=new TextDecoder("utf-8").decode(new Uint8Array(oe.AudioStream));Cc().readAloudMarks=fe.split(`
|
|
|
`).map(me=>me?JSON.parse(me):{}),Cc().readAloudTokens=[];for(const me of Cc().readAloudMarks)me.value&&Cc().readAloudTokens.push(me.value);Cc().readAloudCurrentMark="",ee.OutputFormat="mp3",ee.SpeechMarkTypes=[],E.synthesizeSpeech(ee,(me,be)=>{if(me){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${me}`);return}if(!(be!=null&&be.AudioStream))return;const ke=new Uint8Array(be.AudioStream),Ke=new Blob([ke.buffer],{type:"audio/mpeg"}),rt=URL.createObjectURL(Ke),xt=Cc();xt.readAloudAudio?xt.readAloudAudio.pause():(xt.readAloudAudio=new Audio,xt.readAloudAudio.addEventListener("ended",()=>{const Ft=xt.readAloudMathfield;xt.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Ft?(Ic(Ft),xt.readAloudElement=null,xt.readAloudMathfield=null,xt.readAloudTokens=[],xt.readAloudMarks=[],xt.readAloudCurrentMark=""):gp(xt.readAloudElement)}),xt.readAloudAudio.addEventListener("timeupdate",()=>{let Ft="";const Sn=xt.readAloudAudio.currentTime*1e3+100;for(const Fr of xt.readAloudMarks)Fr.time<Sn&&(Ft=Fr.value);xt.readAloudCurrentMark!==Ft&&(xt.readAloudCurrentToken=Ft,Ft&&Ft===xt.readAloudFinalToken?xt.readAloudAudio.pause():(xt.readAloudCurrentMark=Ft,$h(xt.readAloudElement,xt.readAloudCurrentMark)))})),xt.readAloudAudio.src=rt,xt.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),xt.readAloudAudio.play()})})}kt()||console.error('MathLive 0.98.5: this version of the MathLive library is for use in the browser. A subset of the API is available on the server side in the "mathlive-ssr" library. If using server side rendering (with React for example) you may want to do a dynamic import of the MathLive library inside a `useEffect()` call.');var po=new WeakMap,p1=.5,Ec={letterShapeStyle:"mf.letterShapeStyle = ...",horizontalSpacingScale:'Removed. Use `"thinmuskip"`, `"medmuskip"`, and `"thickmuskip"` registers ',macros:"mf.macros = ...",registers:"mf.registers = ...",backgroundColorMap:"mf.backgroundColorMap = ...",colorMap:"mf.colorMap = ...",enablePopover:"mf.popoverPolicy = ...",mathModeSpace:"mf.mathModeSpace = ...",placeholderSymbol:"mf.placeholderSymbol = ...",readOnly:"mf.readOnly = ...",removeExtraneousParentheses:"mf.removeExtraneousParentheses = ...",scriptDepth:"mf.scriptDepth = ...",smartFence:"mf.smartFence = ...",smartMode:"mf.smartMode = ...",smartSuperscript:"mf.smartSuperscript = ...",inlineShortcutTimeout:"mf.inlineShortcutTimeout = ...",inlineShortcuts:"mf.inlineShortcuts = ...",keybindings:"mf.keybindings = ...",virtualKeyboardMode:"mf.mathVirtualKeyboardPolicy = ...",customVirtualKeyboardLayers:"mathVirtualKeyboard.layers = ...",customVirtualKeyboards:"mathVirtualKeyboard.layouts = ...",keypressSound:"mathVirtualKeyboard.keypressSound = ...",keypressVibration:"mathVirtualKeyboard.keypressVibration = ...",plonkSound:"mathVirtualKeyboard.plonkSound = ...",virtualKeyboardContainer:"mathVirtualKeyboard.container = ...",virtualKeyboardLayout:"mathVirtualKeyboard.alphabeticLayout = ...",virtualKeyboardTheme:"No longer supported",virtualKeyboardToggleGlyph:"No longer supported",virtualKeyboardToolbar:"mathVirtualKeyboard.editToolbar = ...",virtualKeyboards:"Use `mathVirtualKeyboard.layouts`",speechEngine:"`MathfieldElement.speechEngine`",speechEngineRate:"`MathfieldElement.speechEngineRate`",speechEngineVoice:"`MathfieldElement.speechEngineVoice`",textToSpeechMarkup:"`MathfieldElement.textToSpeechMarkup`",textToSpeechRules:"`MathfieldElement.textToSpeechRules`",textToSpeechRulesOptions:"`MathfieldElement.textToSpeechRulesOptions`",readAloudHook:"`MathfieldElement.readAloudHook`",speakHook:"`MathfieldElement.speakHook`",computeEngine:"`MathfieldElement.computeEngine`",fontsDirectory:"`MathfieldElement.fontsDirectory`",soundsDirectory:"`MathfieldElement.soundsDirectory`",createHTML:"`MathfieldElement.createHTML`",onExport:"`MathfieldElement.onExport`",onInlineShortcut:"`MathfieldElement.onInlineShortcut`",onScrollIntoView:"`MathfieldElement.onScrollIntoView`",locale:"MathfieldElement.locale = ...",strings:"MathfieldElement.strings = ...",decimalSeparator:"MathfieldElement.decimalSeparator = ...",fractionNavigationOrder:"MathfieldElement.fractionNavigationOrder = ..."},wl=class Uc extends HTMLElement{static get formAssociated(){return xd()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(y){y!==this._fontsDirectory&&(this._fontsDirectory=y,ng())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(y){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(y){this._soundsDirectory=y,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(y){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(y){var b,E,ee;this.audioBuffers={},y===null?this._keypressSound={spacebar:null,return:null,delete:null,default:null}:typeof y=="string"?this._keypressSound={spacebar:y,return:y,delete:y,default:y}:typeof y=="object"&&"default"in y&&(this._keypressSound={spacebar:(b=y.spacebar)!=null?b:y.default,return:(E=y.return)!=null?E:y.default,delete:(ee=y.delete)!=null?ee:y.default,default:y.default})}static get plonkSound(){return this._plonkSound}static set plonkSound(y){this.audioBuffers={},this._plonkSound=y}static get audioContext(){return this._audioContext||(this._audioContext=new AudioContext),this._audioContext}static get speechEngine(){return this._speechEngine}static set speechEngine(y){this._speechEngine=y}static get speechEngineRate(){return this._speechEngineRate}static set speechEngineRate(y){this._speechEngineRate=y}static get speechEngineVoice(){return this._speechEngineVoice}static set speechEngineVoice(y){this._speechEngineVoice=y}static get textToSpeechMarkup(){return this._textToSpeechMarkup}static set textToSpeechMarkup(y){this._textToSpeechMarkup=y}static get textToSpeechRules(){return this._textToSpeechRules}static set textToSpeechRules(y){this._textToSpeechRules=y}static get textToSpeechRulesOptions(){return this._textToSpeechRulesOptions}static set textToSpeechRulesOptions(y){this._textToSpeechRulesOptions=y}static get locale(){return Ye.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),Ye.locale=y}get locale(){throw new Error("Use MathfieldElement.locale instead")}set locale(y){throw new Error("Use MathfieldElement.locale instead")}static get strings(){return Ye.strings}static set strings(y){Ye.merge(y)}get strings(){throw new Error("Use MathfieldElement.strings instead")}set strings(y){throw new Error("Use MathfieldElement.strings instead")}static get decimalSeparator(){return this._decimalSeparator}static set decimalSeparator(y){this._decimalSeparator=y,this._computeEngine&&(this._computeEngine.latexOptions.decimalMarker=this.decimalSeparator===","?"{,}":".")}get decimalSeparator(){throw new Error("Use MathfieldElement.decimalSeparator instead")}set decimalSeparator(y){throw new Error("Use MathfieldElement.decimalSeparator instead")}static get computeEngine(){var y,b;if(this._computeEngine===void 0){const E=(y=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;if(!E)return null;this._computeEngine=new E,this._computeEngine&&this.decimalSeparator===","&&(this._computeEngine.latexOptions.decimalMarker="{,}")}return(b=this._computeEngine)!=null?b:null}static set computeEngine(y){this._computeEngine=y}get computeEngine(){throw new Error("Use MathfieldElement.computeEngine instead")}set computeEngine(y){throw new Error("Use MathfieldElement.computeEngine instead")}static get isFunction(){return typeof this._isFunction!="function"?()=>!1:this._isFunction}static set isFunction(y){this._isFunction=y}static loadSound(y){return Sc(this,null,function*(){delete this.audioBuffers[y];let b="";switch(y){case"keypress":b=this._keypressSound.default;break;case"return":b=this._keypressSound.return;break;case"spacebar":b=this._keypressSound.spacebar;break;case"delete":b=this._keypressSound.delete;break;case"plonk":b=this.plonkSound;break}if(typeof b!="string")return;b=b.trim();const E=this.soundsDirectory;if(!(E==null||E==="null"||b==="none"||b==="null"))try{const ie=yield(yield fetch(yield x0(`${E}/${b}`))).arrayBuffer(),oe=yield this.audioContext.decodeAudioData(ie);this.audioBuffers[y]=oe}catch(ee){}})}static playSound(y){return Sc(this,null,function*(){if((this.audioContext.state==="suspended"||this.audioContext.state==="interrupted")&&(yield this.audioContext.resume()),this.audioBuffers[y]||(yield this.loadSound(y)),!this.audioBuffers[y])return;const b=this.audioContext.createBufferSource();b.buffer=this.audioBuffers[y];const E=this.audioContext.createGain();E.gain.value=p1,b.connect(E).connect(this.audioContext.destination),b.start()})}constructor(y){if(super(),y){const b=[];for(const E of Object.keys(y))if(Ec[E])if(Ec[E].startsWith("mf."))if(Ec[E].startsWith(`mf.${E}`))b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${Ec[E]}`);else{const ee=Ec[E].match(/([a-zA-Z]+) =/);b.push(`Option \`${E}\` has been renamed \`${ee[1]}\``)}else b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${Ec[E]}`);if(b.length>0){console.group("%cMathLive 0.98.5: %cInvalid Options","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn("Some of the options passed to `new MathfieldElement(...)` are invalid. \n See https://cortexjs.io/mathlive/changelog/ for details.");for(const E of b)console.warn(E);console.groupEnd()}}if(xd()&&(this._internals=this.attachInternals(),this._internals.role="math",this._internals.ariaLabel="math input field",this._internals.ariaMultiLine="false"),this.attachShadow({mode:"open",delegatesFocus:!0}),this.shadowRoot&&"adoptedStyleSheets"in this.shadowRoot){this.shadowRoot.adoptedStyleSheets=[yc("core"),yc("mathfield"),yc("mathfield-element"),yc("ui"),yc("menu")],this.shadowRoot.appendChild(document.createElement("span"));const b=document.createElement("slot");b.style.display="none",this.shadowRoot.appendChild(b)}else this.shadowRoot.innerHTML="<style>"+rc("core")+rc("mathfield")+rc("mathfield-element")+rc("ui")+rc("menu")+'</style><span></span><slot style="display:none"></slot>';y&&this._setOptions(y),this.shadowRoot.addEventListener("slotchange",()=>{var b;const E=this.shadowRoot.querySelector("slot:not([name])");this.value=(b=E==null?void 0:E.assignedNodes().map(ee=>ee.nodeType===3?ee.textContent:"").join("").trim())!=null?b:""})}showMenu(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.showMenu(y))!=null?E:!1}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",y=>{var b;y.target===this&&!((b=this._mathfield)!=null&&b.disabled)&&this.dispatchEvent(new MouseEvent("click",{altKey:y.altKey,button:y.button,buttons:y.buttons,clientX:y.clientX,clientY:y.clientY,ctrlKey:y.ctrlKey,metaKey:y.metaKey,movementX:y.movementX,movementY:y.movementY,relatedTarget:y.relatedTarget,screenX:y.screenX,screenY:y.screenY,shiftKey:y.shiftKey}))},{once:!0})}getPromptValue(y,b){var E,ee;return(ee=(E=this._mathfield)==null?void 0:E.getPromptValue(y,b))!=null?ee:""}setPromptValue(y,b,E){var ee;(ee=this._mathfield)==null||ee.setPromptValue(y,b,E)}getPromptRange(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPromptRange(y))!=null?E:null}getPrompts(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPrompts(y))!=null?E:[]}get form(){var y;return(y=this._internals)==null?void 0:y.form}get name(){var y;return(y=this.getAttribute("name"))!=null?y:""}get type(){return this.localName}get mode(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.mode)!=null?b:this.defaultMode==="text"?"text":"math"}set mode(y){var b;(b=this._mathfield)==null||b.switchMode(y)}get expression(){if(this._mathfield)return window[Symbol.for("io.cortexjs.compute-engine")]?this._mathfield.expression:(console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`),null)}set expression(y){var b,E;if(!this._mathfield)return;const ee=(E=(b=Uc.computeEngine)==null?void 0:b.box(y).latex)!=null?E:null;ee!==null&&this._mathfield.setValue(ee),window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}get errors(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.errors)!=null?b:[]}_getOptions(y){return this._mathfield?Rc(this._mathfield.options,y):po.has(this)?Ee({},Rc(Ee(Ee({},Rf()),Of(po.get(this).options)),y)):null}getOptions(y){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOptions()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._mathfield?Rc(this._mathfield.options,y):po.has(this)?Rc(Ee(Ee({},Rf()),Of(po.get(this).options)),y):null}reflectAttributes(){const y=Rf(),b=this._getOptions();Object.keys(Uc.optionsAttributes).forEach(E=>{const ee=sc(E);Uc.optionsAttributes[E]==="on/off"?y[ee]!==b[ee]?this.setAttribute(E,b[ee]?"on":"off"):this.removeAttribute(E):y[ee]!==b[ee]&&(Uc.optionsAttributes[E]==="boolean"?b[ee]?this.setAttribute(E,""):this.removeAttribute(E):(typeof b[ee]=="string"||typeof b[ee]=="number")&&this.setAttribute(E,b[ee].toString()))})}getOption(y){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOption()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._getOptions([y])[y]}_getOption(y){return this._getOptions([y])[y]}_setOptions(y){if(this._mathfield)this._mathfield.setOptions(y);else if(po.has(this)){const b=Ee(Ee({},po.get(this).options),y);po.set(this,ye(Ee({},po.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else po.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:y,menuItems:void 0});this.reflectAttributes()}setOptions(y){console.group("%cMathLive 0.98.5: %cDeprecated Usage","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn(" `mf.setOptions()` is deprecated. Set the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.");for(const b of Object.keys(y))Ec[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${Ec[b]}`);console.groupEnd(),this._setOptions(y)}executeCommand(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.executeCommand(y))!=null?E:!1}getValue(y,b,E){var ee,ie;if(this._mathfield)return this._mathfield.model.getValue(y,b,E);if(po.has(this)){let oe,fe,me;if($c(y)?([oe,fe]=y.ranges[0],me=b):qc(y)?([oe,fe]=y,me=b):_u(y)&&_u(b)?(oe=y,fe=b,me=E):(oe=0,fe=-1,me=y),(me===void 0||me==="latex")&&oe===0&&fe===-1)return(ie=(ee=po.get(this).value)!=null?ee:this.textContent)!=null?ie:""}return""}setValue(y,b){if(this._mathfield&&y!==void 0){b!=null||(b={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(y,b);return}if(po.has(this)){const ee=po.get(this).options;po.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ee,menuItems:void 0});return}const E=lf(this);po.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:E,menuItems:void 0})}hasFocus(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.hasFocus())!=null?b:!1}focus(){var y;(y=this._mathfield)==null||y.focus()}blur(){var y;(y=this._mathfield)==null||y.blur()}select(){var y;(y=this._mathfield)==null||y.select()}insert(y,b){var E,ee;return(ee=(E=this._mathfield)==null?void 0:E.insert(y,b))!=null?ee:!1}applyStyle(y,b){var E;return(E=this._mathfield)==null?void 0:E.applyStyle(y,b)}queryStyle(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.queryStyle(y))!=null?E:"none"}get caretPoint(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.getCaretPoint())!=null?b:null}set caretPoint(y){var b;y&&((b=this._mathfield)==null||b.setCaretPoint(y.x,y.y))}setCaretPoint(y,b){var E,ee;return(ee=(E=this._mathfield)==null?void 0:E.setCaretPoint(y,b))!=null?ee:!1}offsetFromPoint(y,b,E){return this._mathfield?ef(this._mathfield,y,b,E):-1}hitboxFromOffset(y){if(!this._mathfield)return null;const b=this._mathfield.model.at(y);if(!b)return null;const E=gc(this._mathfield,b);return E?new DOMRect(E.left,E.top,E.right-E.left,E.bottom-E.top):null}resetUndo(){var y;(y=this._mathfield)==null||y.resetUndo()}canUndo(){return this._mathfield?this._mathfield.canUndo():!1}canRedo(){return this._mathfield?this._mathfield.canRedo():!1}handleEvent(y){var b,E,ee,ie;Zu.state==="closed"&&((E=(b=this._mathfield)==null?void 0:b.menu)==null?void 0:E.state)==="closed"&&(y.type==="pointerdown"&&this.onPointerDown(),y.type==="focus"&&((ee=this._mathfield)==null||ee.focus()),y.type==="blur"&&((ie=this._mathfield)==null||ie.blur()))}connectedCallback(){var y,b,E,ee;const ie=window.getComputedStyle(this),oe=this.shadowRoot,fe=ie.userSelect!=="none";if(fe)oe.host.addEventListener("pointerdown",this,!0);else{const ke=oe.querySelector("span");ke.style.pointerEvents="none"}oe.host.addEventListener("focus",this,!0),oe.host.addEventListener("blur",this,!0),xd()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),fe&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const me=oe.querySelector("slot:not([name])");if(me)try{this._style=me.assignedElements().filter(ke=>ke.tagName.toLowerCase()==="style").map(ke=>ke.textContent).join("")}catch(ke){console.error(ke)}if(this._style){const ke=document.createElement("style");ke.textContent=this._style,oe.appendChild(ke)}let be="";if(this.hasAttribute("value")?be=this.getAttribute("value"):be=(y=me==null?void 0:me.assignedNodes().map(ke=>ke.nodeType===3?ke.textContent:"").join("").trim())!=null?y:"",this._mathfield=new f1(oe.querySelector(":host > span"),ye(Ee({},(E=(b=po.get(this))==null?void 0:b.options)!=null?E:lf(this)),{eventSink:this,value:be})),!po.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const ke of Object.keys(Uc.optionsAttributes))this.upgradeProperty(sc(ke))}if(!((ee=this._mathfield)!=null&&ee.model)){this._mathfield=null;return}if(po.has(this)){const ke=this._mathfield,Ke=po.get(this),rt=Ke.menuItems;ke.model.deferNotifications({content:!1,selection:!1},()=>{const xt=Ke.value;xt!==void 0&&ke.setValue(xt),ke.model.selection=Ke.selection,po.delete(this)}),rt&&(this.menuItems=rt)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),Ff()}disconnectedCallback(){var y,b;if(this.shadowRoot.host.removeEventListener("pointerdown",this,!0),!this._mathfield)return;window.queueMicrotask(()=>this.dispatchEvent(new Event("unmount",{cancelable:!1,bubbles:!0,composed:!0})));const E=Rc(this._mathfield.options,Object.keys(Uc.optionsAttributes).map(ee=>sc(ee)));po.set(this,{value:this._mathfield.getValue(),selection:this._mathfield.model.selection,menuItems:(b=(y=this._mathfield.menu)==null?void 0:y.menuItems)!=null?b:void 0,options:E}),this._mathfield.dispose(),this._mathfield=null}upgradeProperty(y){if(this.hasOwnProperty(y)){const b=this[y];delete this[y],(y==="readonly"||y==="read-only")&&(y="readOnly"),this[y]=b}}attributeChangedCallback(y,b,E){if(b===E)return;const ee=E!==null;switch(y){case"contenteditable":ks(this._mathfield);break;case"disabled":this.disabled=ee;break;case"read-only":case"readonly":this.readOnly=ee;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(y){const b=!!y;b?(this.setAttribute("readonly",""),xd()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(xd()?this._internals.ariaReadOnly="false":this.removeAttribute("aria-readonly"),this.removeAttribute("readonly"),this.removeAttribute("read-only")),this._setOptions({readOnly:b})}get disabled(){return this.hasAttribute("disabled")}set disabled(y){var b;const E=!!y;E?this.setAttribute("disabled",""):this.removeAttribute("disabled"),xd()?this._internals.ariaDisabled=E?"true":"false":this.setAttribute("aria-disabled",E?"true":"false"),E&&((b=this._mathfield)!=null&&b.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(y){this.setValue(y)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(y){this._setOptions({defaultMode:y})}get macros(){return this._getOption("macros")}set macros(y){this._setOptions({macros:y})}get registers(){const y=this;return new Proxy({},{get:(b,E)=>{if(typeof E=="string")return y._getOption("registers")[E]},set(b,E,ee){return typeof E!="string"?!1:(y._setOptions({registers:ye(Ee({},y._getOption("registers")),{[E]:ee})}),!0)}})}set registers(y){this._setOptions({registers:y})}get colorMap(){return this._getOption("colorMap")}set colorMap(y){this._setOptions({colorMap:y})}get backgroundColorMap(){return this._getOption("backgroundColorMap")}set backgroundColorMap(y){this._setOptions({backgroundColorMap:y})}get letterShapeStyle(){return this._getOption("letterShapeStyle")}set letterShapeStyle(y){this._setOptions({letterShapeStyle:y})}get minFontScale(){return this._getOption("minFontScale")}set minFontScale(y){this._setOptions({minFontScale:y})}get smartMode(){return this._getOption("smartMode")}set smartMode(y){this._setOptions({smartMode:y})}get smartFence(){return this._getOption("smartFence")}set smartFence(y){this._setOptions({smartFence:y})}get smartSuperscript(){return this._getOption("smartSuperscript")}set smartSuperscript(y){this._setOptions({smartSuperscript:y})}get scriptDepth(){return this._getOption("scriptDepth")}set scriptDepth(y){this._setOptions({scriptDepth:y})}get removeExtraneousParentheses(){return this._getOption("removeExtraneousParentheses")}set removeExtraneousParentheses(y){this._setOptions({removeExtraneousParentheses:y})}get mathModeSpace(){return this._getOption("mathModeSpace")}set mathModeSpace(y){this._setOptions({mathModeSpace:y})}get placeholderSymbol(){return this._getOption("placeholderSymbol")}set placeholderSymbol(y){this._setOptions({placeholderSymbol:y})}get popoverPolicy(){return this._getOption("popoverPolicy")}set popoverPolicy(y){this._setOptions({popoverPolicy:y})}get environmentPopoverPolicy(){return this._getOption("environmentPopoverPolicy")}set environmentPopoverPolicy(y){this._setOptions({environmentPopoverPolicy:y})}get menuItems(){var y,b,E;return this._mathfield?(y=this._mathfield.menu._menuItems.map(ee=>ee.menuItem))!=null?y:[]:(E=(b=po.get(this))==null?void 0:b.menuItems)!=null?E:[]}set menuItems(y){var b;if(this._mathfield){const E=(b=this._mathfield.element)==null?void 0:b.querySelector("[part=menu-toggle]");E&&(E.style.display=y.length===0?"none":""),this._mathfield.menu.menuItems=y}po.has(this)?po.set(this,ye(Ee({},po.get(this)),{menuItems:y})):po.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:lf(this),menuItems:y})}get mathVirtualKeyboardPolicy(){return this._getOption("mathVirtualKeyboardPolicy")}set mathVirtualKeyboardPolicy(y){this._setOptions({mathVirtualKeyboardPolicy:y})}get inlineShortcuts(){return this._getOption("inlineShortcuts")}set inlineShortcuts(y){this._setOptions({inlineShortcuts:y})}get inlineShortcutTimeout(){return this._getOption("inlineShortcutTimeout")}set inlineShortcutTimeout(y){this._setOptions({inlineShortcutTimeout:y})}get keybindings(){return this._getOption("keybindings")}set keybindings(y){this._setOptions({keybindings:y})}get onInlineShortcut(){return this._getOption("onInlineShortcut")}set onInlineShortcut(y){this._setOptions({onInlineShortcut:y})}get onScrollIntoView(){return this._getOption("onScrollIntoView")}set onScrollIntoView(y){this._setOptions({onScrollIntoView:y})}get onExport(){return this._getOption("onExport")}set onExport(y){this._setOptions({onExport:y})}get readOnly(){return this._getOption("readOnly")}set readOnly(y){this._setOptions({readOnly:y})}get isSelectionEditable(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.isSelectionEditable)!=null?b:!1}setPromptState(y,b,E){var ee;(ee=this._mathfield)==null||ee.setPromptState(y,b,E)}getPromptState(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPromptState(y))!=null?E:[void 0,!0]}get virtualKeyboardTargetOrigin(){return this._getOption("virtualKeyboardTargetOrigin")}set virtualKeyboardTargetOrigin(y){this._setOptions({virtualKeyboardTargetOrigin:y})}get selection(){return this._mathfield?this._mathfield.model.selection:po.has(this)?po.get(this).selection:{ranges:[[0,0]],direction:"forward"}}set selection(y){if(typeof y=="number"&&(y={ranges:[[y,y]]}),this._mathfield){this._mathfield.model.selection=y,ks(this._mathfield);return}if(po.has(this)){po.set(this,ye(Ee({},po.get(this)),{selection:y}));return}po.set(this,{value:void 0,selection:y,options:lf(this),menuItems:void 0})}get selectionIsCollapsed(){const y=this.selection;return y.ranges.length===1&&y.ranges[0][0]===y.ranges[0][1]}get position(){return this._mathfield?this._mathfield.model.position:po.has(this)?po.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,ks(this._mathfield)),po.has(this)){po.set(this,ye(Ee({},po.get(this)),{selection:{ranges:[[y,y]]}}));return}po.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:lf(this),menuItems:void 0})}getOffsetDepth(y){var b,E;return this._mathfield?((E=(b=this._mathfield.model.at(y))==null?void 0:b.treeDepth)!=null?E:2)-2:0}get lastOffset(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.lastOffset)!=null?b:-1}};wl.version="0.98.5",wl._fontsDirectory="./fonts",wl._soundsDirectory="./sounds",wl.keypressVibration=!0,wl._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},wl._plonkSound="plonk.wav",wl.audioBuffers={},wl.createHTML=a=>a,wl._speechEngineRate="100%",wl._speechEngineVoice="Joanna",wl._textToSpeechMarkup="",wl._textToSpeechRules="mathlive",wl._textToSpeechRulesOptions={},wl.speakHook=r1,wl.readAloudHook=h1,wl._decimalSeparator=".",wl.fractionNavigationOrder="numerator-denominator",wl._isFunction=a=>{var y,b;const E=window.MathfieldElement.computeEngine;return(b=(y=E==null?void 0:E.parse(a).domain)==null?void 0:y.isFunction)!=null?b:!1};var sf=wl;function sc(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function lf(a){const y={readOnly:!1},b=sf.optionsAttributes;return Object.keys(b).forEach(E=>{if(a.hasAttribute(E)){const ee=a.getAttribute(E);E==="placeholder"?y.contentPlaceholder=ee!=null?ee:"":b[E]==="boolean"?y[sc(E)]=!0:b[E]==="on/off"?ee==="on"?y[sc(E)]=!0:ee==="off"?y[sc(E)]=!1:y[sc(E)]=void 0:b[E]==="number"?y[sc(E)]=Number.parseFloat(ee!=null?ee:"0"):y[sc(E)]=ee}}),y}function xd(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var vp=sf,yp,bp,xp,wp;if(kt()&&!((yp=window.customElements)!=null&&yp.get("math-field"))){(xp=window[bp=Symbol.for("io.cortexjs.mathlive")])!=null||(window[bp]={});const a=window[Symbol.for("io.cortexjs.mathlive")];a.version="0.98.5",window.MathfieldElement=sf,(wp=window.customElements)==null||wp.define("math-field",sf)}function m1(a,y,b){let E=b,ee=0;const ie=a.length;for(;E<y.length;){const oe=y[E];if(ee<=0&&y.slice(E,E+ie)===a)return E;oe==="\\"?E++:oe==="{"?ee++:oe==="}"&&ee--,E++}return-1}function eh(a,y,b,E,ee="latex"){const ie=[];for(const oe of a)if(oe.type==="text"){const fe=oe.data;let me=!0,be=0,ke;ke=fe.indexOf(y),ke!==-1&&(be=ke,be>0&&ie.push({type:"text",data:fe.slice(0,be)}),me=!1);let Ke=!1;for(;!Ke;){if(me){if(ke=fe.indexOf(y,be),ke===-1){Ke=!0;break}be!==ke&&ie.push({type:"text",data:fe.slice(be,ke)}),be=ke}else{if(ke=m1(b,fe,be+y.length),ke===-1){Ke=!0;break}let rt=fe.slice(be+y.length,ke);ee==="ascii-math"&&([,rt]=Lc(rt,{format:"ascii-math"})),ie.push({type:"math",data:rt,rawData:fe.slice(be,ke+b.length),mathstyle:E}),be=ke+b.length}me=!me}be<fe.length&&ie.push({type:"text",data:fe.slice(be)})}else ie.push(oe);return ie}function Ep(a,y,b){let E=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ee,ie])=>{E=eh(E,ee,ie,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ee,ie])=>{E=eh(E,ee,ie,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ee,ie])=>{E=eh(E,ee,ie,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ee,ie])=>{E=eh(E,ee,ie,"displaystyle","ascii-math")}),E}function g1(a,y){const b=document.createElement("span");b.setAttribute("translate","no");try{const E="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+y.renderToMathML(a)+"</math>";b.innerHTML=window.MathfieldElement.createHTML(E)}catch(E){console.error(`MathLive 0.98.5: Could not convert "${a}"' to MathML with ${E}`),b.textContent=a}return b.className="ML__sr-only",b}function v1(a,y,b,E){try{const ee=y.renderToMarkup(a,{mathstyle:b,format:"html"}),ie=document.createElement("span");return ie.dataset.latex=a,ie.style.display=b==="displaystyle"?"flex":"inline-flex",ie.setAttribute("aria-hidden","true"),ie.setAttribute("translate","no"),ie.innerHTML=window.MathfieldElement.createHTML(ee),ie}catch(ee){if(console.error("Could not parse'"+a+"' with ",ee),E)return document.createTextNode(a)}return null}function wd(a,y,b,E){var ee;const ie=v1(a,b,y||"textstyle",E),oe=(ee=b.renderAccessibleContent)!=null?ee:"";if(ie&&/\b(mathml|speakable-text)\b/i.test(oe)){const fe=document.createElement("span");if(/\bmathml\b/i.test(oe)&&b.renderToMathML&&fe.append(g1(a,b)),/\bspeakable-text\b/i.test(oe)&&b.renderToSpeakableText){const me=document.createElement("span");me.setAttribute("translate","no");const be=b.renderToSpeakableText(a);me.innerHTML=window.MathfieldElement.createHTML(be),me.className="ML__sr-only",fe.append(me)}return fe.append(ie),fe}return ie}function y1(a,y){var b,E,ee;let ie=null;if((b=y.TeX)!=null&&b.processEnvironments&&/^\s*\\begin/.test(a)){ie=document.createDocumentFragment();const oe=wd(a,"",y,!0);oe&&ie.appendChild(oe)}else{if(!a.trim())return null;const oe=Ep(a,(E=y.TeX)==null?void 0:E.delimiters,(ee=y.asciiMath)==null?void 0:ee.delimiters);if(oe.length===1&&oe[0].type==="text")return null;ie=document.createDocumentFragment();for(const fe of oe)if(fe.type==="text")ie.appendChild(document.createTextNode(fe.data));else{const me=wd(fe.data,fe.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);me&&ie.appendChild(me)}}return ie}function Cp(a,y){var b,E,ee,ie,oe,fe,me,be,ke,Ke,rt,xt,Ft,Sn,Fr,xn;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const tr=(b=a.childNodes[0].textContent)!=null?b:"";if((E=y.TeX)!=null&&E.processEnvironments&&/^\s*\\begin/.test(tr)){a.textContent="";const cr=wd(tr,"",y,!0);cr&&a.append(cr);return}const Kr=Ep(tr,(ee=y.TeX)==null?void 0:ee.delimiters,(ie=y.asciiMath)==null?void 0:ie.delimiters);if(Kr.length===1&&Kr[0].type==="math"){a.textContent="";const cr=wd(Kr[0].data,Kr[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);cr&&a.append(cr);return}if(Kr.length===1&&Kr[0].type==="text")return}for(let tr=a.childNodes.length-1;tr>=0;tr--){const Kr=a.childNodes[tr];if(Kr.nodeType===3){const cr=y1((oe=Kr.textContent)!=null?oe:"",y);cr&&(tr+=cr.childNodes.length-1,Kr.replaceWith(cr))}else if(Kr.nodeType===1){const cr=Kr,Fi=Kr.nodeName.toLowerCase();if(Fi==="script"){const ra=Kr;let ji;if((fe=y.processScriptTypePattern)!=null&&fe.test(ra.type))ji=(me=ra.textContent)!=null?me:"";else if((be=y.processMathJSONScriptTypePattern)!=null&&be.test(ra.type))try{ji=(Ke=y.serializeToLatex)==null?void 0:Ke.call(y,JSON.parse((ke=ra.textContent)!=null?ke:""))}catch(ro){console.error(ro)}if(ji){let ro="textstyle";for(const jr of ra.type.split(";")){const[du,Yu]=jr.toLowerCase().split("=");du.trim()==="mode"&&(ro=Yu.trim()==="display"?"displaystyle":"textstyle")}const Bo=wd(ji,ro,y,!0);Bo&&ra.parentNode.replaceChild(Bo,ra)}}else if(((xt=(rt=y.processClassPattern)==null?void 0:rt.test(cr.className))!=null?xt:!1)||!((Sn=(Ft=y.skipTags)==null?void 0:Ft.includes(Fi))!=null&&Sn||(xn=(Fr=y.ignoreClassPattern)==null?void 0:Fr.test(cr.className))!=null&&xn))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const ji=a.textContent;a.textContent="";const ro=wd(ji!=null?ji:"","displaystyle",y,!0);ro&&a.append(ro)}else Cp(cr,y)}}}var b1={skipTags:["math-field","noscript","style","textarea","pre","code","annotation","annotation-xml"],processScriptType:"math/tex",processMathJSONScriptType:"math/json",ignoreClass:"tex2jax_ignore",processClass:"tex2jax_process",renderAccessibleContent:"mathml",asciiMath:{delimiters:{inline:[["`","`"]]}},TeX:{processEnvironments:!0,delimiters:{inline:[["\\(","\\)"]],display:[["$$","$$"],["\\[","\\]"]]}}};function x1(a,y){var b,E,ee,ie;try{const oe=Ee(Ee({},b1),y);oe.ignoreClassPattern=new RegExp((b=oe.ignoreClass)!=null?b:""),oe.processClassPattern=new RegExp((E=oe.processClass)!=null?E:""),oe.processScriptTypePattern=new RegExp((ee=oe.processScriptType)!=null?ee:""),oe.processMathJSONScriptTypePattern=new RegExp((ie=oe.processMathJSONScriptType)!=null?ie:""),Ff(),eu("core"),Cp(a,oe)}catch(oe){oe instanceof Error?console.error("renderMathInElement(): "+oe.message):console.error("renderMathInElement(): Could not render math for element",a)}}function w1(a,y){const b=xc.singleton;return b?(b.show(),Yd(),b.currentLayer=y,b.render(),b.focus(),!0):!1}function E1(){const a=window.mathVirtualKeyboard;return a.visible?a.hide({animate:!0}):a.show({animate:!0}),!1}tu({switchKeyboardLayer:w1,toggleVirtualKeyboard:E1,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function Cc(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function F1(){return console.warn("%cMathLive 0.98.5: %cmakeSharedVirtualKeyboard() is deprecated. \n Use `window.mathVirtualKeyboard` to access the virtual keyboard instance.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),window.mathVirtualKeyboard}function L1(a){S1(document.body,a)}function C1(a){if(typeof a=="string"){const y=document.getElementById(a);if(y===null)throw new Error(`The element with ID "${a}" could not be found.`);return y}return typeof a=="string"?null:a}function S1(a,y){var b,E,ee,ie;const oe=C1(a);if(!oe)return;const fe=y!=null?y:{};(b=fe.renderToMarkup)!=null||(fe.renderToMarkup=dl),(E=fe.renderToMathML)!=null||(fe.renderToMathML=Ov),(ee=fe.renderToSpeakableText)!=null||(fe.renderToSpeakableText=Rv),(ie=fe.serializeToLatex)!=null||(fe.serializeToLatex=_v),x1(oe,fe)}var T1={mathlive:"0.98.5"}}}]);
|
|
|
}()); |