|
|
!(function(){var Jc=Math.pow;var kd=(dn,vn,he)=>new Promise((te,Ee)=>{var lt=Re=>{try{Ve(he.next(Re))}catch(it){Ee(it)}},ct=Re=>{try{Ve(he.throw(Re))}catch(it){Ee(it)}},Ve=Re=>Re.done?te(Re.value):Promise.resolve(Re.value).then(lt,ct);Ve((he=he.apply(dn,vn)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[71836],{55304:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return it}});var te=he(87462),Ee=he(67294),lt={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"},ct=lt,Ve=he(84089),Re=function(we,at){return Ee.createElement(Ve.Z,(0,te.Z)({},we,{ref:at,icon:ct}))},it=Ee.forwardRef(Re)},24018:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return it}});var te=he(87462),Ee=he(67294),lt={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"},ct=lt,Ve=he(84089),Re=function(we,at){return Ee.createElement(Ve.Z,(0,te.Z)({},we,{ref:at,icon:ct}))},it=Ee.forwardRef(Re)},40043:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return it}});var te=he(87462),Ee=he(67294),lt={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"},ct=lt,Ve=he(84089),Re=function(we,at){return Ee.createElement(Ve.Z,(0,te.Z)({},we,{ref:at,icon:ct}))},it=Ee.forwardRef(Re)},38308:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return it}});var te=he(87462),Ee=he(67294),lt={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"},ct=lt,Ve=he(84089),Re=function(we,at){return Ee.createElement(Ve.Z,(0,te.Z)({},we,{ref:at,icon:ct}))},it=Ee.forwardRef(Re)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(dn,vn){"use strict";vn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},52654:function(dn,vn){"use strict";vn.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"}},62038:function(dn,vn){"use strict";vn.Z={flex_box_center:"flex_box_center___ycN2f",flex_space_between:"flex_space_between___LcS9e",flex_box_vertical_center:"flex_box_vertical_center___uwjPm",flex_box_center_end:"flex_box_center_end___Pc903",flex_box_column:"flex_box_column___AXEdv",bg:"bg___fm2Cw",title:"title___J3MCU",editIcon:"editIcon___i4Zll",titleLeft:"titleLeft___da61c",titleRight:"titleRight___EsdL6",formWrap:"formWrap___YTxC3",baseLineHeight:"baseLineHeight___TprCB",radioBtnWrapper:"radioBtnWrapper___Mt_XG",radiogroup:"radiogroup___EvkWh",easy:"easy___mSxtg",medium:"medium___NIaWN",hard:"hard___mddnD",baseFormItem:"baseFormItem___csbyb",cascaderPopup:"cascaderPopup___BttnF",selectdiv:"selectdiv___TAr4i",divitem:"divitem___iaXB2",bottmodiv:"bottmodiv___bmp6p",cancelBtn:"cancelBtn___Q4ZcL",confirmBtn:"confirmBtn___nRiCD",concat:"concat___jlPR1"}},57971:function(dn,vn,he){"use strict";var te=he(67294),Ee=Object.defineProperty,lt=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Re=(we,at,tt)=>at in we?Ee(we,at,{enumerable:!0,configurable:!0,writable:!0,value:tt}):we[at]=tt,it=(we,at)=>{for(var tt in at||(at={}))ct.call(at,tt)&&Re(we,tt,at[tt]);if(lt)for(var tt of lt(at))Ve.call(at,tt)&&Re(we,tt,at[tt]);return we};const ke=we=>React.createElement("svg",it({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},we),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));vn.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},36913:function(dn,vn,he){"use strict";var te=he(67294),Ee=Object.defineProperty,lt=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Re=(we,at,tt)=>at in we?Ee(we,at,{enumerable:!0,configurable:!0,writable:!0,value:tt}):we[at]=tt,it=(we,at)=>{for(var tt in at||(at={}))ct.call(at,tt)&&Re(we,tt,at[tt]);if(lt)for(var tt of lt(at))Ve.call(at,tt)&&Re(we,tt,at[tt]);return we};const ke=we=>React.createElement("svg",it({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},we),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));vn.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},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 dn={},vn="5.0",he={},te=null,Ee=!1,lt=!1,ct=null,Ve=!1,Re=null,it=null,ke=0;ke<arguments.length;ke++){var we=arguments[ke];if(we!==null)switch(typeof we){case"number":vn=we.toFixed(1);break;case"string":we.match(new RegExp("^[0-9]\\.[0-9]+$"))?vn=we:ct=we;break;case"object":typeof we.is3D!="undefined"?te=we:he=we;break;case"boolean":Ee=we,lt=!0;break}}te===null&&(te={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},he.material_id!==void 0&&!lt&&(Ee=!0)),ct!==null&&he.id===void 0&&(he.id=ct);var at="",tt="",ve=!1,kt=null,bt=null,$e=null,dt=!1,Qe=null,et=null,ft=null,Je=null,ot=null;he.height!==void 0&&(he.height=Math.round(he.height)),he.width!==void 0&&(he.width=Math.round(he.width));var ht=function(Lt){return parseFloat(Lt)>4?parseFloat(Lt):5};dn.setHTML5Codebase=function(Lt,Dt){it=Lt,Yt(Lt,Dt)},dn.setJavaCodebase=dn.setJavaCodebaseVersion=dn.isCompiledInstalled=dn.setPreCompiledScriptPath=dn.setPreCompiledResourcePath=function(){},dn.setHTML5CodebaseVersion=function(Lt,Dt){var wn=parseFloat(Lt);if(wn!==NaN&&wn<5){console.log("The GeoGebra HTML5 codebase version "+wn+" is deprecated. Using version latest instead.");return}Re=Lt,Ke(Lt,Dt)},dn.getHTML5CodebaseVersion=function(){return bt},dn.getParameters=function(){return he},dn.setFontsCSSURL=function(Lt){Je=Lt},dn.setGiacJSURL=function(Lt){},dn.setJNLPFile=function(Lt){at=Lt},dn.setJNLPBaseDir=function(Lt){},dn.inject=function(){function Lt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Dt="auto",wn=he.id,_n,on=!1,kn=0;kn<arguments.length;kn++){var xn=arguments[kn];typeof xn=="string"?(xn=xn.toLowerCase(),xn.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Dt=xn:wn=arguments[kn]):typeof xn=="boolean"?on=xn:xn instanceof HTMLElement&&(_n=xn)}Vn();function Vn(){if(!Ve){setTimeout(Vn,200);return}Dt=un(Dt);var er=_n||document.getElementById(wn);if(!er){console.log("possibly bug on ajax loading? ");return}if(dn.removeExistingApplet(er,!1),he.width===void 0&&er.clientWidth&&(he.width=er.clientWidth),he.height===void 0&&er.clientHeight&&(he.height=er.clientHeight),!(he.width&&he.height)&&Dt==="html5"&&(delete he.width,delete he.height),kt=Dt,Dt==="screenshot")qe(er,he);else{var Me=!1;he.hasOwnProperty("playButton")&&he.playButton||he.hasOwnProperty("clickToLoad")&&he.clickToLoad?Me=!0:he.hasOwnProperty("playButtonAutoDecide")&&he.playButtonAutoDecide&&(Me=(!yt()||Lt())&&zt()),Me?(kt="screenshot",Oe(er,he,on,Dt)):pt(er,he,on)}}};function yt(){try{return window.self!==window.top}catch(Lt){return!0}}function zt(){return he.hasOwnProperty("screenshotGenerator")&&he.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}dn.getViews=function(){return te},dn.isJavaInstalled=function(){return!1};var Xt=function(Lt){var Dt=function(kn){var xn=JSON.parse(kn),Vn=function(ce){return ce.type=="G"||ce.type=="E"},er=xn.elements?xn.elements.filter(Vn)[0]:xn;if(!er||!er.url){wn();return}he.fileName=er.url,Qt(er.settings||{}),te.is3D=!0;var Me="https://www.geogebra.org/images/";dn.setPreviewImage(Qe||er.previewUrl,Me+"GeoGebra_loading.png",Me+"applet_play.png"),Lt()},wn=function(){he.onError&&he.onError(),Jt("Error: Fetching material (id "+he.material_id+") failed.",he)},_n=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",on="/materials/"+he.material_id+"?scope=basic";Ht("https://"+_n+"/api/proxy.php?path="+encodeURIComponent(on),Dt,wn)};function Qt(Lt){var Dt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(wn){Lt[wn]=!!Lt[wn]}),Dt.forEach(function(wn){he[wn]===void 0&&Lt[wn]!==void 0&&(he[wn]=Lt[wn])}),he.showToolBarHelp===void 0&&(he.showToolBarHelp=he.showToolBar)}function Ht(Lt,Dt,wn){var _n=new XMLHttpRequest;_n.open("GET",Lt),_n.onload=function(){Dt(_n.responseText)},_n.onerror=wn,_n.send()}dn.isHTML5Installed=function(){return!0},dn.getLoadedAppletType=function(){return kt},dn.setPreviewImage=function(Lt,Dt,wn){Qe=Lt,et=Dt,ft=wn},dn.removeExistingApplet=function(Lt,Dt){var wn;typeof Lt=="string"&&(Lt=document.getElementById(Lt)),kt=null;var _n=null;for(wn=0;wn<Lt.childNodes.length;wn++){var on=Lt.childNodes[wn],kn=on.className;kn==="applet_screenshot"?Dt?(on.style.display="block",kt="screenshot"):on.style.display="none":kn!=="applet_scaler prerender"&&(Lt.removeChild(on),_n=kn&&kn.indexOf("appletParameters")!=-1?on.id:null,wn--)}var xn=he.id!==void 0?he.id:_n,Vn=window[xn];Vn&&typeof Vn.getBase64=="function"&&(Vn.remove(),window[xn]=null)},dn.refreshHitPoints=function(){if(ht(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Lt=dn.getAppletObject();return Lt&&typeof Lt.recalculateEnvironments=="function"?(Lt.recalculateEnvironments(),!0):!1},dn.startAnimation=function(){var Lt=dn.getAppletObject();return Lt&&typeof Lt.startAnimation=="function"?(Lt.startAnimation(),!0):!1},dn.stopAnimation=function(){var Lt=dn.getAppletObject();return Lt&&typeof Lt.stopAnimation=="function"?(Lt.stopAnimation(),!0):!1},dn.getAppletObject=function(){var Lt=he.id!==void 0?he.id:"ggbApplet";return window[Lt]},dn.resize=function(){};var wt=function(Lt,Dt,wn){var _n=document.createElement("param");_n.setAttribute("name",Dt),_n.setAttribute("value",wn),Lt.appendChild(_n)},Ye=function(Lt){return Lt&&Lt!=="false"},pt=function(Lt,Dt,wn){ht(bt)<=4.2&&(wn=!0);var _n=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==bt||ggbHTML5LoadedCodebaseIsWebSimple&&!dt)&&(_n=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var on=document.createElement("div");on.classList.add("appletParameters","notranslate");var kn=Dt.width,xn=Dt.height;if(Dt.disableAutoScale=Dt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Dt.disableAutoScale,Dt.width!==void 0)if(ht(bt)<=4.4)Ye(Dt.showToolBar)&&(Dt.height-=7),Ye(Dt.showAlgebraInput)&&(Dt.height-=37),Dt.width<605&&Ye(Dt.showToolBar)&&(Dt.width=605,kn=605);else{var Vn=100;(Ye(Dt.showToolBar)||Ye(Dt.showMenuBar))&&(Dt.hasOwnProperty("customToolBar")&&(Dt.customToolbar=Dt.customToolBar),Vn=Ye(Dt.showMenuBar)?245:155),kn<Vn&&(Dt.width=Vn,kn=Vn)}on.style.border="none",on.style.display="inline-block";for(var er in Dt)Dt.hasOwnProperty(er)&&er!=="appletOnLoad"&&on.setAttribute("data-param-"+er,Dt[er]);Je&&on.setAttribute("data-param-fontscssurl",Je),dn.resize=function(){GGBAppletUtils.responsiveResize(Lt,Dt)},window.addEventListener("resize",function(nn){dn.resize()});var Me=typeof Dt.appletOnLoad=="function"?Dt.appletOnLoad:function(){};if(!wn&&Dt.width!==void 0){Dt.hasOwnProperty("showSplash")||on.setAttribute("data-param-showSplash","false");var ce=Lt.querySelector(".applet_scaler.prerender"),fe=ce!==null;if(fe)var be=ce.querySelector(".ggb_preview");else{var be=Gt(kn,xn,Dt.borderColor,!1);ce=document.createElement("div"),ce.className="applet_scaler",ce.style.position="relative",ce.style.display="block",ce.style.width=kn+"px",ce.style.height=xn+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ce,"66%"),ht(bt)>=5?(Dt.appletOnLoad=function(nn){var Ar=Lt.querySelector(".ggb_preview");Ar&&Ar.parentNode.removeChild(Ar),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ce),window.GGBT_wsf_view&&$(window).trigger("resize"),Me(nn)},fe||ce.appendChild(be)):on.appendChild(be),ce.appendChild(on),fe||Lt.appendChild(ce),setTimeout(function(){dn.resize()},1)}else{var ge=document.createElement("div");ge.className="applet_scaler",ge.style.position="relative",ge.style.display="block",ge.appendChild(on),Lt.appendChild(ge),Dt.appletOnLoad=function(nn){dn.resize(),Me(nn)}}function ue(nn,Ar){Ar&&typeof Ar.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(nn,Ar.appletOnLoad):renderGGBElement(nn),Jt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ar)}function Xe(nn,Ar){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:nn,params:Ar}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Dr){ue(Dr.article,Dr.params)}),html5AppletsToProcess=null)},ht(bt)<5&&(nn.className+=" geogebraweb")):ue(nn,Ar)}if(_n){scriptLoadStarted=!0;for(var _t=0;_t<on.childNodes.length;_t++){var Zt=on.childNodes[_t].tagName;Zt==="TABLE"&&(on.removeChild(on.childNodes[_t]),_t--)}if(ggbHTML5LoadedScript!==null){var Dn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Dn!=null&&Dn.parentNode.removeChild(Dn)}var An=document.createElement("script"),yn=function(){Xe(on,Dt)};An.src=tt+$e,ggbHTML5LoadedCodebaseIsWebSimple=dt,ggbHTML5LoadedCodebaseVersion=bt,ggbHTML5LoadedScript=An.src,Jt("GeoGebra HTML5 codebase loaded: '"+tt+"'.",Dt),!it&&(!Re||Re=="5.0")?(dt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),yn()):tt.requirejs?__webpack_require__.e(12).then(function(){var nn=[__webpack_require__(12)];yn.apply(null,nn)}.bind(this)).catch(__webpack_require__.oe):(An.onload=yn,Lt.appendChild(An))}else Xe(on,Dt);Dt.height=xn,Dt.width=kn},qe=function(Lt,Dt,wn){var _n=Gt(Dt.width,Dt.height,Dt.borderColor,wn),on=document.createElement("div");on.style.position="relative",on.style.display="block",on.style.width=Dt.width+"px",on.style.height=Dt.height+"px",on.className="applet_screenshot applet_scaler"+(wn?" applet_screenshot_play":""),on.appendChild(_n);var kn=GGBAppletUtils.getScale(Dt,Lt,wn);wn?(Lt.appendChild(Ot()),window.GGBT_wsf_view||(Lt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(on,"66%"),Lt.appendChild(on),kn!==1&&!isNaN(kn)&&(GGBAppletUtils.scaleElement(on,kn),on.style.width=Dt.width+"px",on.style.height=Dt.height+"px",on.parentNode.style.width=Dt.width*kn+"px",on.parentNode.style.height=Dt.height*kn+"px"),dn.resize=function(){ut(Lt,_n,on,wn)},window.addEventListener("resize",function(xn){dn.resize()}),dn.resize()};function ut(Lt,Dt,wn,_n){if(Lt.contains(Dt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Lt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Lt)}var on=GGBAppletUtils.getScale(he,Lt,_n);wn.parentNode!==null&&(!isNaN(on)&&on!==1?(GGBAppletUtils.scaleElement(wn,on),wn.parentNode.style.width=he.width*on+"px",wn.parentNode.style.height=he.height*on+"px"):(GGBAppletUtils.scaleElement(wn,1),wn.parentNode.style.width=he.width+"px",wn.parentNode.style.height=he.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Lt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}dn.onExitFullscreen=function(Lt,Dt){Dt.appendChild(Lt)};var Oe=function(Lt,Dt,wn,_n){qe(Lt,Dt,!0);for(var on=function(){var Vn=[];for(xn=0;xn<Lt.childNodes.length;xn++)Vn.push(Lt.childNodes[xn]);if(window.GGBT_wsf_view){var er=window.GGBT_wsf_view.renderFullScreen(Lt,Dt.id),Me=document.getElementById("fullscreencontainer"),ce=jQuery(Lt).find(".fullscreencontent");ce.length>0?(er.remove(),ce.attr("id","fullscreencontent").show(),jQuery(Me).append(ce),window.dispatchEvent(new Event("resize"))):pt(er,Dt,!1),window.GGBT_wsf_view.launchFullScreen(Me)}else kt=_n,pt(Lt,Dt,!1);if(!window.GGBT_wsf_view)for(xn=0;xn<Vn.length;xn++)Lt.removeChild(Vn[xn])},kn=Lt.getElementsByClassName("ggb_preview_play"),xn=0;xn<kn.length;xn++)kn[xn].addEventListener("click",on,!1),kn[xn].addEventListener("ontouchstart",on,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Lt),zt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ot=function(){var Lt=document.createElement("div");if(Lt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Dt='.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");}',wn=document.createElement("style");wn.styleSheet?wn.styleSheet.cssText=Dt:wn.appendChild(document.createTextNode(Dt)),document.getElementsByTagName("head")[0].appendChild(wn)}return Lt},Gt=function(Lt,Dt,wn,_n){var on=document.createElement("div");on.className="ggb_preview",on.style.position="absolute",on.style.zIndex="90",on.style.width=Lt-2+"px",on.style.height=Dt-2+"px",on.style.top="0px",on.style.left="0px",on.style.overflow="hidden",on.style.backgroundColor="white";var kn="lightgrey";wn!==void 0&&(wn==="none"?kn="transparent":kn=wn),on.style.border="1px solid "+kn;var xn=document.createElement("img");if(xn.style.position="relative",xn.style.zIndex="1000",xn.style.top="-1px",xn.style.left="-1px",Qe!==null&&xn.setAttribute("src",Qe),xn.style.opacity=.7,et!==null){var Vn,er,Me;if(!_n){Vn=document.createElement("img"),Vn.style.position="absolute",Vn.style.zIndex="1001",Vn.style.opacity=1,xn.style.opacity=.3,er=360,er>Lt/4*3&&(er=Lt/4*3),Me=er/5.8,Vn.setAttribute("src",et),Vn.setAttribute("width",er),Vn.setAttribute("height",Me);var ce=(Lt-er)/2,fe=(Dt-Me)/2;Vn.style.left=ce+"px",Vn.style.top=fe+"px",on.appendChild(Vn)}}return on.appendChild(xn),on},un=function(Lt){return Lt=Lt.toLowerCase(),Lt==="html5"||Lt==="screenshot"?Lt:"html5"},Ge=["web","webSimple","web3d","tablet","tablet3d","phone"],Ke=function(Lt,Dt){if(bt=Lt,Dt){Yt(bt,!0);return}var wn=!Ee;if(wn){var _n=ht(bt);!isNaN(_n)&&_n<4.4&&(wn=!1)}var on,kn;window.location.protocol.substr(0,4)==="http"?on=window.location.protocol:on="http:";var xn=bt.indexOf("//");xn>0?kn=bt:xn===0?kn=on+bt:kn="https://www.geogebra.org/apps/5.2.814.0/";for(var Vn in Ge)if(bt.slice(Ge[Vn].length*-1)===Ge[Vn]||bt.slice((Ge[Vn].length+1)*-1)===Ge[Vn]+"/"){Yt(kn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&wn&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Ye(he.showToolBar)&&!Ye(he.showMenuBar)&&!Ye(he.showAlgebraInput)&&!Ye(he.enableRightClick)&&(!he.appName||he.appName=="classic")?kn+="webSimple/":kn+="web3d/",Yt(kn,!1)},Yt=function(Lt,Dt){if(Lt.requirejs){tt=Lt;return}Lt.slice(-1)!=="/"&&(Lt+="/"),tt=Lt,Dt===null&&(Dt=Lt.indexOf("http")===-1),ve=Dt,$e="web.nocache.js",dt=!1;var wn=tt.split("/");wn.length>1&&(!Dt&&wn[wn.length-2]==="webSimple"?($e="webSimple.nocache.js",dt=!0):Ge.indexOf(wn[wn.length-2])>=0&&($e=wn[wn.length-2]+".nocache.js")),wn=Lt.split("/"),bt=wn[wn.length-3],bt.substr(0,4)==="test"?bt=bt.substr(4,1)+"."+bt.substr(5,1):(bt.substr(0,3)==="war"||bt.substr(0,4)==="beta")&&(bt="5.0");var _n=parseFloat(bt);_n!==NaN&&_n<5&&Lt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+_n+" is deprecated. Using version latest instead."),Ke("5.0",Dt))},Jt=function(Lt,Dt){window.console&&window.console.log&&(!Dt||typeof Dt.showLogging=="undefined"||Dt.showLogging&&Dt.showLogging!=="false")&&console.log(Lt)};he.material_id!==void 0?Xt(cn):cn();function cn(){var Lt=vn;Re!==null?Lt=Re:parseFloat(Lt)<5&&(Lt="5.0"),Ke(Lt,!1),it!==null&&Yt(it,ve),Ve=!0}return dn},GGBAppletUtils=function(){"use strict";function dn(){return window.GGBT_wsf_edit!==void 0}function vn(Ve,Re){Re!=1?(Ve.style.transformOrigin="0% 0% 0px",Ve.style.webkitTransformOrigin="0% 0% 0px",Ve.style.transform="scale("+Re+","+Re+")",Ve.style.webkitTransform="scale("+Re+","+Re+")",Ve.style.maxWidth="initial",Ve.querySelector(".ggb_preview")!==null&&(Ve.querySelector(".ggb_preview").style.maxWidth="initial"),Ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ve.style.transform="none",Ve.style.webkitTransform="none")}function he(Ve,Re,it,ke,we,at){var tt=null;if(at!=null&&at!="")for(var ve=Ve.parentNode;ve!=null;)if((" "+ve.className+" ").indexOf(" "+at+" ")>-1){tt=ve;break}else ve=ve.parentNode;var kt=0,bt=0,$e=0,dt=0,Qe=0,et=0,ft=0;if(tt)kt=tt.offsetWidth,bt=Math.max(ke?tt.offsetWidth:0,tt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(kt=Math.min(window.innerWidth,document.documentElement.clientWidth),bt=Math.min(window.innerHeight,document.documentElement.clientHeight),$e=kt):(kt=window.innerWidth,bt=window.innerHeight,$e=window.innerWidth),Ve){var Je=Ve.getBoundingClientRect();Je.left>0&&Je.left<=kt&&(we===void 0||!we)&&(document.dir==="rtl"?(Qe=kt-Je.width-Je.left,et=$e<=480?10:30):(et=Je.left,Qe=$e<=480?10:30),dt=et+Qe)}if(Ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ot=Ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(dt=40,ft=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(dt=0,ft=40)}}return Ve&&((it===void 0||!it)&&Re>0&&Re+dt<kt?kt=Re:kt-=dt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(it===void 0||!it)&&(bt-=ft)),{width:kt,height:bt}}function te(Ve,Re,it,ke,we){if(Ve.isScreenshoGenerator)return 1;var at=ke!==void 0&&ke,tt=Ve.noScaleMargin!=null&&Ve.noScaleMargin,ve=function(ot){return ot&&ot!=="false"},kt=ve(Ve.autoHeight),bt=he(Re,Ve.width,it,kt,at&&window.GGBT_wsf_view||tt,we),$e=parseInt(bt.width),dt=Ve.width,Qe=Ve.height;if(dt===void 0){var et=Re.querySelector(".appletParameters");et&&(dt=et.offsetWidth,Qe=et.offsetHeight)}var ft=$e/dt,Je=at?1:bt.height/Qe;return it!==void 0&&!it&&(ft=Math.min(1,ft),Je=Math.min(1,Je)),Math.min(ft,Je)}function Ee(Ve,Re,it){var ke=1,we,at=!1;if(Ve.hasOwnProperty("allowUpscale")&&(at=Ve.allowUpscale),Ve.hasOwnProperty("scale")&&(ke=parseFloat(Ve.scale),(isNaN(ke)||ke===null||ke===0)&&(ke=1),ke>1&&(at=!0)),Re&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(at=!0),!(Ve.hasOwnProperty("disableAutoScale")&&Ve.disableAutoScale))we=te(Ve,Re,at,it,Ve.scaleContainerClass);else return ke;return at&&(!Ve.hasOwnProperty("scale")||ke===1)?we:Math.min(ke,we)}function lt(Ve){var Re=Math.min(window.innerWidth,document.documentElement.clientWidth),it=Math.min(window.innerHeight,document.documentElement.clientHeight),ke=Ve.getBoundingClientRect(),we=(Re-ke.width)/2,at=(it-ke.height)/2;at<0&&(at=0),Ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(we<40?Ve.style.left="40px":Ve.style.left=we+"px",Ve.style.top=at+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(at<40?Ve.style.top="40px":Ve.style.top=at+"px",Ve.style.left=we+"px")}function ct(Ve,Re){var it=Ve.querySelector(".appletParameters");if(it){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Re.id!==it.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ve)}if(it.parentElement&&/fullscreen/.test(it.parentElement.className))return;var ke=Ee(Re,Ve);dn()&&it.setAttribute("data-param-scale",ke);for(var we=null,at=0;at<Ve.childNodes.length;at++)if(Ve.childNodes[at].className!==void 0&&Ve.childNodes[at].className.match(/^applet_scaler/)){we=Ve.childNodes[at];break}if(we!==null&&we.querySelector(".noscale")!==null)return;var tt=Re.id!==void 0?Re.id:"ggbApplet",ve=window[tt];(ve==null||!ve.recalculateEnvironments)&&we!==null&&!we.className.match(/fullscreen/)&&(we.parentNode.style.transform="",!isNaN(ke)&&ke!==1?(we.parentNode.style.width=Re.width*ke+"px",we.parentNode.style.height=Re.height*ke+"px",vn(we,ke)):(vn(we,1),we.parentNode.style.width=Re.width+"px",we.parentNode.style.height=Re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&<(Ve),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(it).parents(".content-added-content"))}}return{responsiveResize:ct,isFlexibleWorksheetEditor:dn,positionCenter:lt,getScale:Ee,scaleElement:vn}}();__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 dn=n.location.search;return dn.indexOf(J)!=-1||dn.indexOf(K)!=-1}function q(dn,vn){}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(dn){var vn=s[L].bindings;s[L].bindings=function(){for(var he=vn?vn():{},te=dn[webModule.__softPermutationId],Ee=O;Ee<te.length;Ee++){var lt=te[Ee];he[lt[O]]=lt[P]}return he}};var t;function u(){return v(),t}function v(){if(!t){var dn=o.createElement(Q);if(dn.id=L,dn.style.cssText=R+S,dn.tabIndex=-1,o.body.appendChild(dn),t=dn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var vn=document.compatMode==U?V:W;t.write(vn+X),t.close()}}}function w(dn){function vn(te){function Ee(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var lt=Ee();if(lt){te();return}function ct(){if(!lt){if(!Ee())return;lt=!0,te(),o.removeEventListener&&o.removeEventListener(Z,ct,!1),Ve&&clearInterval(Ve)}}o.addEventListener&&o.addEventListener(Z,ct,!1);var Ve=setInterval(function(){ct()},$)}function he(te){var Ee=u(),lt=Ee.body,ct=Ee.createElement(_);ct.language=ab,ct.crossOrigin=W,ct.src=te,webModule.__errFn&&(ct.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),lt.appendChild(ct)}vn(function(){he(dn)})}webModule.__startLoadingFragment=function(dn){return C(dn)},webModule.__installRunAsyncCode=function(dn){var vn=u(),he=vn.body,te=vn.createElement(_);te.language=ab,te.text=dn,he.appendChild(te),he.removeChild(te)};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(dn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(dn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(dn){var vn=c[dn];return vn==null?null:vn},r=d,webModule.__errFn=e}function B(){function dn(Ve){var Re=Ve.lastIndexOf(rb);Re==-1&&(Re=Ve.length);var it=Ve.indexOf(sb);it==-1&&(it=Ve.length);var ke=Ve.lastIndexOf(tb,Math.min(it,Re));return ke>=O?Ve.substring(O,ke+P):W}function vn(Ve){if(!Ve.match(/^\w+:\/\//)){var Re=o.createElement(ub);Re.src=Ve+vb,Ve=dn(Re.src)}return Ve}function he(){var Ve=__gwt_getMetaProperty(wb);return Ve!=null?Ve:W}function te(){for(var Ve=o.getElementsByTagName(_),Re=O;Re<Ve.length;++Re)if(Ve[Re].src.indexOf(xb)!=-1)return dn(Ve[Re].src);return W}function Ee(){var Ve=o.getElementsByTagName(yb);return Ve.length>O?Ve[Ve.length-P].href:W}function lt(){var Ve=o.location;return Ve.href==Ve.protocol+zb+Ve.host+Ve.pathname+Ve.search+Ve.hash}var ct=he();return ct==W&&(ct=te()),ct==W&&(ct=Ee()),ct==W&<()&&(ct=dn(o.location.href)),ct=vn(ct),ct}function C(dn){return dn.match(/^\//)||dn.match(/^[a-zA-Z]+:\/\//)?dn:webModule.__moduleBase+dn}function D(){var dn=[],vn=O,he=[],te=[];function Ee(Ve){var Re=te[Ve](),it=he[Ve];if(Re in it)return Re;var ke=[];for(var we in it)ke[it[we]]=we;throw r&&r(Ve,ke,Re),null}if(__gwt_isKnownPropertyValue=function(Ve,Re){return Re in he[Ve]},webModule.__getPropMap=function(){var Ve={};for(var Re in he)he.hasOwnProperty(Re)&&(Ve[Re]=Ee(Re));return Ve},webModule.__computePropValue=Ee,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var lt;try{lt=Cb;var ct=lt.indexOf(Db);ct!=-1&&(vn=parseInt(lt.substring(ct+P),$),lt=lt.substring(O,ct))}catch(Ve){}return webModule.__softPermutationId=vn,C(lt+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(dn,vn,he){"use strict";he.d(vn,{Ax:function(){return ct},Ds:function(){return Ve},KI:function(){return it},SI:function(){return lt},f1:function(){return Ee}});var te=he(11320);function Ee(ke){let we=!0;if(ke.length>0){for(let at=0;at<ke.length;at++)if(ke[at].compile_success==0||!ke[at].compile_success){we=!1;break}}else we=!1;return we}function lt(ke,we=""){let at=[];for(let tt=0;tt<ke.length;tt++){let ve=ke[tt],kt=we?`${we}/${ve.name}`:`${ve.name}`;at.push({title:ve.name,type:ve.type,isLeaf:ve.type!=="tree",key:kt})}return at}function ct(ke,we,at){for(let tt=0;tt<ke.length;tt++){let ve=ke[tt];if(ve.key===we){ve.children=at;break}ve.children&&ct(ve.children,we,at)}return ke}function Ve(ke,we,at){let tt;return function(){let ve=this,kt=arguments,bt=function(){tt=null,at||ke.apply(ve,kt)},$e=at&&!tt;clearTimeout(tt),tt=setTimeout(bt,we),$e&&ke.apply(ve,kt)}}const Re=!0,it=te.Z.API_SERVER},60580:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return bt}});var te=he(71577),Ee=he(67294),lt=Object.defineProperty,ct=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,we=($e,dt,Qe)=>dt in $e?lt($e,dt,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):$e[dt]=Qe,at=($e,dt)=>{for(var Qe in dt||(dt={}))it.call(dt,Qe)&&we($e,Qe,dt[Qe]);if(Re)for(var Qe of Re(dt))ke.call(dt,Qe)&&we($e,Qe,dt[Qe]);return $e},tt=($e,dt)=>ct($e,Ve(dt)),ve=($e,dt)=>{var Qe={};for(var et in $e)it.call($e,et)&&dt.indexOf(et)<0&&(Qe[et]=$e[et]);if($e!=null&&Re)for(var et of Re($e))dt.indexOf(et)<0&&ke.call($e,et)&&(Qe[et]=$e[et]);return Qe},kt=($e,dt,Qe)=>new Promise((et,ft)=>{var Je=yt=>{try{ht(Qe.next(yt))}catch(zt){ft(zt)}},ot=yt=>{try{ht(Qe.throw(yt))}catch(zt){ft(zt)}},ht=yt=>yt.done?et(yt.value):Promise.resolve(yt.value).then(Je,ot);ht((Qe=Qe.apply($e,dt)).next())});const bt=$e=>{var dt=$e,{children:Qe}=dt,et=ve(dt,["children"]);const[ft,Je]=(0,Ee.useState)(!1);return Ee.createElement(te.ZP,tt(at({},et),{loading:ft,onClick:ot=>kt(void 0,null,function*(){try{Je(!0),yield et.onClick(ot),Je(!1)}catch(ht){console.error(ht),Je(!1)}})}),Qe)}},56243:function(dn,vn,he){"use strict";var te=he(17187),Ee=he.n(te),lt=Object.defineProperty,ct=(ke,we,at)=>we in ke?lt(ke,we,{enumerable:!0,configurable:!0,writable:!0,value:at}):ke[we]=at,Ve=(ke,we,at)=>ct(ke,typeof we!="symbol"?we+"":we,at),Re=(ke,we,at)=>new Promise((tt,ve)=>{var kt=dt=>{try{$e(at.next(dt))}catch(Qe){ve(Qe)}},bt=dt=>{try{$e(at.throw(dt))}catch(Qe){ve(Qe)}},$e=dt=>dt.done?tt(dt.value):Promise.resolve(dt.value).then(kt,bt);$e((at=at.apply(ke,we)).next())});class it extends te.EventEmitter{constructor(we,at){super(),Ve(this,"url"),Ve(this,"body"),Ve(this,"fullContent",""),Ve(this,"controller",null),Ve(this,"buffer",""),this.url=we,this.body=at}startStream(){return Re(this,null,function*(){this.controller=new AbortController;const{signal:we}=this.controller;try{const at=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:we});if(!at.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${at.status}`);const tt=at.headers.get("content-type");if(!tt)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(tt.includes("application/json")){const bt=yield at.json();this.emit("error",bt);return}if(!tt.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const ve=at.body.getReader(),kt=new TextDecoder("utf-8");for(;;){const{done:bt,value:$e}=yield ve.read();if(bt)break;const dt=kt.decode($e,{stream:!0});this.buffer+=dt;const Qe=this.buffer.split(`
|
|
|
`);this.buffer=Qe.pop()||"";for(const et of Qe)if(et.startsWith("data:")){const ft=et.slice(5).trim();if(ft==="[DONE]")break;try{const Je=JSON.parse(ft);Je.data&&this.handleData(Je.data)}catch(Je){this.buffer=et+`
|
|
|
`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",Je)}}}this.emit("done",this.fullContent)}catch(at){at.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",at.message)}})}handleData(we){we.content&&(this.fullContent+=we.content,this.emit("data",{chunk:we,full:this.fullContent}))}cancelRequest(){var we;(we=this.controller)==null||we.abort()}}vn.Z=it},21826:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return Ge}});var te=he(67294),Ee=he(94668),lt=he(91733),ct=he(17274),Ve=he(86032),Re=he(74855),it={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},ke=he(2453),we=he(99398),at=he(36576),tt=he(41807),ve=he(67127),kt=he(81897),bt=he(72565),$e=he(71230),dt=he(15746),Qe={smartWrp:"smartWrp___NjRcB"},et=he(36295),ft=he(64743),Je=he(60580),ot=he(67294),ht=(Ke,Yt,Jt)=>new Promise((cn,Lt)=>{var Dt=on=>{try{_n(Jt.next(on))}catch(kn){Lt(kn)}},wn=on=>{try{_n(Jt.throw(on))}catch(kn){Lt(kn)}},_n=on=>on.done?cn(on.value):Promise.resolve(on.value).then(Dt,wn);_n((Jt=Jt.apply(Ke,Yt)).next())});const yt=`<!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 zt({open:Ke=!0,onChange:Yt,defaultValue:Jt,placement:cn,width:Lt,height:Dt,extra:wn,onDynamic:_n,showExtra:on=!0}){const kn=(0,te.useRef)(null),xn=(0,te.useRef)(null),[Vn,er]=(0,te.useState)(Jt||""),[Me,ce]=(0,te.useState)(Jt||""),[fe,be]=(0,te.useState)(!!Ke),[ge,ue]=(0,te.useState)(1),Xe={selectOnLineNumbers:!0};(0,te.useEffect)(()=>{Ke&&(er(Jt),ce(Jt),be(!0))},[Ke,Jt]),(0,te.useEffect)(()=>{Vn!==""&&(clearTimeout(xn.current),xn.current=setTimeout(()=>{const Zt=document.createElement("iframe");if(Zt.style.width="100%",Zt.style.height="100%",Zt.style.border="0",kn.current){kn.current.innerHTML="",kn.current.appendChild(Zt);const Dn=Zt.contentDocument||Zt.contentWindow.document;Dn.open(),Dn.write(Vn),Dn.close()}},1e3))},[Ke,Vn]);const _t=Zt=>{er(Zt),Yt==null||Yt(Zt,Me)};return ot.createElement(bt.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:fe,width:on?700:"100%",height:Dt||"100vh",rootClassName:Qe.smartWrp,destroyOnClose:!0,onClose:()=>be(!1),extra:on&&ot.createElement("div",null,ot.createElement(ft.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:ge,onChange:Zt=>ue(Zt)}),ot.createElement(Je.Z,{type:"primary",className:"ml20",onClick:()=>ht(this,null,function*(){yield _n(Vn,()=>{be(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ot.createElement($e.Z,{className:"h100"},ot.createElement(dt.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:ge===1?"block":"none"}},ot.createElement("div",{className:"h100",ref:kn})),ot.createElement(dt.Z,{flex:"1",style:{display:ge===2?"block":"none"}},ot.createElement(et.ZP,{height:"90vh",value:Jt,language:"html",theme:"vs",showMiniMap:!1,options:Xe,onChange:_t}))))}var Xt=zt,Qt=Object.defineProperty,Ht=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,ut=(Ke,Yt,Jt)=>Yt in Ke?Qt(Ke,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Ke[Yt]=Jt,Oe=(Ke,Yt)=>{for(var Jt in Yt||(Yt={}))pt.call(Yt,Jt)&&ut(Ke,Jt,Yt[Jt]);if(Ye)for(var Jt of Ye(Yt))qe.call(Yt,Jt)&&ut(Ke,Jt,Yt[Jt]);return Ke},Ot=(Ke,Yt)=>Ht(Ke,wt(Yt)),Gt=(Ke,Yt)=>{var Jt={};for(var cn in Ke)pt.call(Ke,cn)&&Yt.indexOf(cn)<0&&(Jt[cn]=Ke[cn]);if(Ke!=null&&Ye)for(var cn of Ye(Ke))Yt.indexOf(cn)<0&&qe.call(Ke,cn)&&(Jt[cn]=Ke[cn]);return Jt},Ge=({onFinish:Ke,value:Yt,streamingStatus:Jt,cancelIndex:cn,loadImage:Lt,onDynamic:Dt})=>{const[wn,_n]=(0,te.useState)(""),[on,kn]=(0,te.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[xn,Vn]=(0,te.useState)(0),[er,Me]=(0,te.useState)(!1),ce=ge=>ge.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(ue,Xe)=>`<mathx data-text="${Xe.trim()}">$$${Xe.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,"`$&`"),fe=()=>{Me(!0),Ke==null||Ke()};(0,te.useEffect)(()=>{const ge=Lt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
|
|
|
|
|
|
${Yt}`:Yt,ue=ce(ge);if(!er)if(Lt||!Jt||cn>0){_n(ue),Vn(ue.length),(!Jt||cn>0)&&!Lt&&fe();return}else if((ue==null?void 0:ue.length)<4)_n(ue),Vn(ue.length);else if(xn<ue.length){const Xe=ue.length-xn,_t=setInterval(()=>{_n(ue.slice(0,xn+2)),Vn(Zt=>Zt+2)},Xe>10?Math.max(500/(Xe/2),20):50);return()=>clearInterval(_t)}else Jt||fe()},[Yt,Jt,cn,Lt,xn]);const be=(0,te.useMemo)(()=>te.createElement("section",{className:`${it.answer} fadeIn animated edu_md`},te.createElement(Ee.U,{remarkPlugins:[tt.Z,ve.Z],rehypePlugins:[at.Z,ct.Z],components:{code(ge){var ue=ge,{node:Xe,inline:_t,className:Zt,children:Dn}=ue,An=Gt(ue,["node","inline","className","children"]);const yn=/language-(\w+)/.exec(Zt||""),nn=String(Dn).trim();return _t||!yn?te.createElement("code",Oe({className:Zt},An),Dn):te.createElement("code",{className:it.codeCopy,"data-text":`\`\`\`${yn?yn[1]:""}
|
|
|
${Dn}
|
|
|
\`\`\``},te.createElement(Re.CopyToClipboard,{text:nn,onCopy:()=>ke.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},te.createElement("button",null,"\u590D\u5236")),yn[1]==="html"&&er&&te.createElement("button",{className:it.runCode,onClick:()=>{kn(Oe({},Ot(Oe({},on),{open:++on.open,defaultValue:nn,language:yn[1]})))}},"\u8FD0\u884CHTML"),te.createElement(lt.Z,Oe({wrapLongLines:!0,style:Ve.Z,language:yn[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},An),nn))},img({node:ge}){var ue;const Xe=(ue=ge.properties)==null?void 0:ue.src;return te.createElement(we.Z,{src:Xe,width:320,"data-text":Xe,onLoad:()=>Lt&&setTimeout(()=>fe(),500)})}}},er?wn:`${wn}__`)),[wn]);return te.createElement(te.Fragment,null,te.createElement(Xt,{defaultValue:on.defaultValue,open:on.open,language:on.language,height:on.height,onChange:(ge,ue)=>{_n(wn.replaceAll(ue,ge))},onDynamic:Dt}),be)}},17173:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return Xt}});var te=he(67294),Ee=he(2453),lt=he(72565),ct=he(71230),Ve=he(14446),Re=he(69677),it=he(59810),ke=he(83062),we=he(15746),at=he(31795),tt={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},ve=he(64743),kt=he(11320),bt=he(38478),$e=he(33170),dt=he(43158),Qe=he(28706),et=he(93299),ft=he(62442),Je=he(49627),ot=he(74867),ht="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAHr1JREFUaEPNmweYnVW1/n/7a6fMmcm0ZEoSUkkCSQgJC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TwlHWPtX+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==",yt=(Qt,Ht,wt)=>new Promise((Ye,pt)=>{var qe=Ot=>{try{Oe(wt.next(Ot))}catch(Gt){pt(Gt)}},ut=Ot=>{try{Oe(wt.throw(Ot))}catch(Gt){pt(Gt)}},Oe=Ot=>Ot.done?Ye(Ot.value):Promise.resolve(Ot.value).then(qe,ut);Oe((wt=wt.apply(Qt,Ht)).next())}),Xt=(0,te.forwardRef)(({onUpdateNum:Qt,onSave:Ht},wt)=>{var Ye;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%`,[qe,ut]=(0,te.useState)(!1),[Oe,Ot]=(0,te.useState)([]),[Gt,un]=(0,te.useState)(null),[Ge,Ke]=(0,te.useState)([]),[Yt,Jt]=(0,te.useState)(0),[cn,Lt]=(0,te.useState)(0),[Dt,wn]=(0,te.useState)(!1),[_n,on]=(0,te.useState)(""),[kn,xn]=(0,te.useState)(0),[Vn,er]=(0,te.useState)(0),[Me,ce]=(0,te.useState)(0),[fe,be]=(0,te.useState)(0),[ge,ue]=(0,te.useState)(0),[Xe,_t]=(0,te.useState)(0),[Zt,Dn]=(0,te.useState)(0),[An,yn]=(0,te.useState)(0),[nn,Ar]=(0,te.useState)(ot.Q),{contentRef:Dr,value:ln,status:jn,open:wi,close:$r}=nn,Ir=(0,ft.Z)({contentRef:Dr,status:jn}),{openProgress:Or,closeProgress:Ca,CreateProgressModal:ur,progressOpen:Yn}=(0,et.Z)();(0,te.useEffect)(()=>{Gt&&Ni(),Gt===!1&&($r(),Qt==null||Qt(),Ot([]),on(""),xn(0),er(0),ce(0),be(0),ue(0),_t(0),Dn(0),yn(0))},[Gt]);const oi=()=>{un(!0)};(0,te.useImperativeHandle)(wt,()=>({onClick:oi}));const Si=Tr=>{wn(!0),Jt(Tr),Lt(0)},Ti=Tr=>yt(void 0,null,function*(){const _i=Tr.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(_i)==-1?(Ee.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):Tr.size/1024/1024>10?(Ee.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),Ni=()=>yt(void 0,null,function*(){const Tr=yield(0,$e.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});Tr.status===0&&(Jt(Tr.total_number),Lt(Tr.remaining_number))}),Fi=Tr=>(Tr=Tr||"",Tr=String(Tr),Tr=Tr.replace(/\s+/g,""),Tr),Wr=(Tr=!0)=>yt(void 0,null,function*(){var _i,jr;const di=[{name:"\u5355\u9009\u9898",num:kn||0},{name:"\u591A\u9009\u9898",num:Vn||0},{name:"\u5224\u65AD\u9898",num:Me||0},{name:"\u586B\u7A7A\u9898",num:fe||0},{name:"\u7B80\u7B54\u9898",num:ge||0},{name:"\u7EC4\u5408\u9898",num:An||0},{name:"\u7F16\u7A0B\u9898",num:Xe||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:Zt||0}];if(Tr){if(Fi(_n)){if(_n.length>1e3){Ee.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{Ee.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!Fi(_n)&&!(Oe!=null&&Oe.length)){Ee.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const Hi=di.reduce((Ko,Zo)=>Ko+Zo.num,0);if(Hi===0){Ee.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(Hi>30){Ee.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}if(Yt!==-1){wn(!0);return}}wn(!1);const ro={scene_type:6,request_identifier:Math.random(),file_id:(jr=(_i=Oe[0])==null?void 0:_i.response)==null?void 0:jr.id,content:_n,count_arr:di.map(Hi=>Hi.num).join(",")};yield wi(ro),Ni()}),qr=()=>yt(void 0,null,function*(){const Tr=Ir();if(Ht){un(!1),Ht(Tr);return}Or(),ut(!0),Ke([]);const _i=new FormData;_i.append("html",Tr);const jr=yield(0,$e.ZP)("/api/intelligent_imports/import.json",{method:"post",body:_i},!0);if((jr==null?void 0:jr.status)===0)if(jr!=null&&jr.data){Ca(100),Ke(jr==null?void 0:jr.data);return}else Ee.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");ut(!1),Ca()}),Ta=()=>yt(void 0,null,function*(){const Tr=Ir();(0,Qe.RG)(Tr)}),Da=["uploading","error"].includes((Ye=Oe==null?void 0:Oe[0])==null?void 0:Ye.status);return te.createElement(te.Fragment,null,te.createElement(Je.Z,{visible:Dt,totalCount:Yt,usedCount:cn,onCancel:()=>wn(!1),onOk:()=>Wr(!1)}),te.createElement(lt.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:te.createElement("div",{className:tt.extraHeader},te.createElement(ct.Z,{align:"middle"},!jn&&!!ln&&te.createElement(te.Fragment,null,te.createElement(ve.op,{onClick:qr,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),te.createElement(ve.op,{onClick:Ta,shape:"default",type:"text"},te.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),te.createElement("i",{onClick:()=>{const Tr=_i=>{Ve.default.confirm({centered:!0,icon:null,width:500,zIndex:1101,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:_i,onOk:()=>{un(!1)}})};if(jn){Tr("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else ln?Tr("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):un(!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:Gt},te.createElement("div",{className:tt.wrap},te.createElement("div",{className:tt.left},te.createElement("div",{className:tt.tip},te.createElement("img",{src:ht}),te.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")),te.createElement("div",{className:"mb10 mt20 c-black"},te.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),te.createElement(Re.default.TextArea,{style:{height:160},className:"mb20",value:_n,placeholder:pt,onChange:Tr=>{on(Tr.target.value)}}),te.createElement(it.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${kt.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:Oe,withCredentials:!0,data:{upload_type:1},beforeUpload:Ti,onChange:({file:Tr})=>{var _i,jr;Tr.status!=="removed"&&(Tr.status==="done"&&((_i=Tr==null?void 0:Tr.response)==null?void 0:_i.status)!==0&&(Tr.status="error",Tr.response=(jr=Tr==null?void 0:Tr.response)==null?void 0:jr.message),Ot([Tr]))},onRemove:()=>Ot([])},te.createElement(ke.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"},te.createElement(ve.op,{style:{borderRadius:2}},te.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),te.createElement("div",{className:"c-black mt20"},te.createElement("div",{className:"mb10 c-black"},te.createElement("b",null,"\u51FA\u9898\u6570\u91CF"),te.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",te.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"30"),"\u9053\uFF09")),te.createElement(ct.Z,{style:{gap:16}},te.createElement(we.Z,null,te.createElement("label",null,"\u5355\u9009\u9898"),te.createElement(at.Z,{min:0,max:10,value:kn,onChange:xn,style:{marginLeft:"8px"}})),te.createElement(we.Z,null,te.createElement("label",null,"\u591A\u9009\u9898"),te.createElement(at.Z,{min:0,max:10,value:Vn,onChange:er,style:{marginLeft:"8px"}})),te.createElement(we.Z,null,te.createElement("label",null,"\u5224\u65AD\u9898"),te.createElement(at.Z,{min:0,max:10,value:Me,onChange:ce,style:{marginLeft:"8px"}})),te.createElement(we.Z,null,te.createElement("label",null,"\u586B\u7A7A\u9898"),te.createElement(at.Z,{min:0,max:10,value:fe,onChange:be,style:{marginLeft:"8px"}})),te.createElement(we.Z,null,te.createElement("label",null,"\u7B80\u7B54\u9898"),te.createElement(at.Z,{min:0,max:10,value:ge,onChange:ue,style:{marginLeft:"8px"}})),te.createElement(we.Z,null,te.createElement("label",null,"\u7EC4\u5408\u9898"),te.createElement(at.Z,{min:0,max:10,value:An,onChange:yn,style:{marginLeft:"8px"}})),te.createElement(we.Z,null,te.createElement("label",null,"\u7F16\u7A0B\u9898"),te.createElement(at.Z,{min:0,max:10,value:Xe,onChange:_t,style:{marginLeft:"8px"}})),te.createElement(we.Z,null,te.createElement("label",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898"),te.createElement(at.Z,{min:0,max:10,value:Zt,onChange:Dn,style:{marginLeft:"8px"}})))),jn?te.createElement("div",{onClick:$r,className:tt.bottomBtn},te.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):Da?te.createElement("div",{className:`${tt.bottomBtn} ${tt.disabled}`},te.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):te.createElement("div",{onClick:()=>{Wr()},className:tt.bottomBtn},te.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),te.createElement(ot.Z,{onStatusChange:Ar,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!Yn,noRestrictModal:Si,stringTransformer:dt.o,onError:Tr=>{Object.prototype.toString.call(Tr)==="[object Object]"&&Tr.status===-9&&Si(Tr.data)}}))),te.createElement(lt.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:qe},te.createElement(ct.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},te.createElement("img",{src:he(36413),alt:"\u667A\u80FD\u51FA\u9898"}),te.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u9898")),te.createElement(bt.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:Ge,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>ut(!1),onSuccess:()=>{ut(!1),un(!1)}}),te.createElement("div",{style:{height:70}})),ur("\u5904\u7406\u4E2D"))})},66146:function(dn,vn,he){"use strict";var te=he(67294);const Ee=({scrollBoxRef:lt,bottomInspectRef:ct,contentRef:Ve,status:Re,rootMargin:it="70px",bottomOffset:ke=110})=>{const[we,at]=(0,te.useState)(!0),tt=(0,te.useRef)(!1);return(0,te.useEffect)(()=>{if(!lt.current||!ct.current)return;const ve=new IntersectionObserver(([kt])=>{var bt,$e,dt,Qe;if(!document.contains(kt.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((bt=kt.rootBounds)==null?void 0:bt.width)===0&&(($e=kt.rootBounds)==null?void 0:$e.height)===0){console.log("root\uFF08\u6EDA\u52A8\u5BB9\u5668\uFF09\u65E0\u6548\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664");return}if(((dt=kt.boundingClientRect)==null?void 0:dt.width)===0&&((Qe=kt.boundingClientRect)==null?void 0:Qe.height)===0){console.log("\u76EE\u6807\u5143\u7D20\u5BBD\u9AD8\u4E3A 0\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664\u6216 display: none");return}at(kt.isIntersecting)},{root:lt.current,rootMargin:it,threshold:0});return ve.observe(ct.current),()=>{ve.disconnect()}},[lt.current,ct.current,it]),(0,te.useEffect)(()=>{if(!Re)return;const ve=lt.current,kt=Ve.current;tt.current=!1;let bt=ve.scrollTop;const $e=()=>{const{scrollTop:Qe,scrollHeight:et,clientHeight:ft}=ve;Qe>bt?Qe+ft>=et-ke&&(ve.scrollTop=ve.scrollHeight,tt.current=!1):Qe<bt&&(tt.current=!0),bt=Qe};ve.addEventListener("scroll",$e);const dt=new ResizeObserver(()=>{tt.current||(ve.scrollTop=ve.scrollHeight)});return dt.observe(kt),()=>{setTimeout(()=>{dt.unobserve(kt)},250),ve.removeEventListener("scroll",$e)}},[Re]),we};vn.Z=Ee},62442:function(dn,vn,he){"use strict";var te=he(67294);const Ee=({contentRef:lt,status:ct})=>((0,te.useEffect)(()=>{!ct&&(lt!=null&<.current)&<.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(it=>{it.tagName.toLowerCase()==="code"?it.parentElement&&(it.parentElement.contentEditable="false"):it.tagName.toLowerCase()==="mathx"&&(it.contentEditable="false")})},[ct]),(Re=!1)=>{const it=tt=>{const ve={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" ","©":"\xA9","®":"\xAE","€":"\u20AC"};return tt.replace(/&[^;]+;/g,kt=>ve[kt]||kt)};if(!lt.current)return"";const ke=lt.current.cloneNode(!0);ke.querySelectorAll("code[data-text], mathx[data-text]").forEach(tt=>{let ve=tt.getAttribute("data-text");tt.tagName.toLowerCase()==="code"?ve=ve.replace(/```.*\n|\n```/g,""):tt.tagName.toLowerCase()==="mathx"&&(ve=`$$${ve}$$`);const kt=document.createTextNode(ve);tt.parentNode.replaceChild(kt,tt)}),Re&&ke.querySelectorAll('[data-select="disabled"]').forEach(ve=>{var kt;const bt=ve.textContent||"",$e=document.createTextNode(bt+`
|
|
|
`);(kt=ve.parentNode)==null||kt.replaceChild($e,ve)});let at=ke.innerHTML;return Re||(at=at.replace(/<[^>]*data-select="disabled"[^>]*>.*?<\/[^>]*>/g,"")),at=at.replace(/<p>/g,""),at=at.replace(/<\/p>/g,`
|
|
|
`),at=at.replace(/<br>/g,`
|
|
|
`),at=at.replace(/\r\n/g,`
|
|
|
`),at=at.replace(/<[^>]*>/g,""),at=it(at),at});vn.Z=Ee},93299:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return ve}});var te=he(67294),Ee=he(14446),lt=he(71230),ct=he(38703),Ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABYCAYAAAAORCLFAAAAAXNSR0IArs4c6QAAIABJREFUeF7lfQecXFXZ/nNumT6zvWeTTSWkEEJooUgRpSMooiLfxycqTcQGIvipAf1UsNFEUAQBQTpSDCgtIQVTSAgJ6ckm2ZJt2dnd6XPL+fuec8/sZAmSbAKBv/P73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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=",ke={dotLoading:"dotLoading___s6Sh4",showHide:"showHide___Dfprh",progress:"progress___QUpqo"},we=he(67294);const at=["\u6587\u4EF6\u89E3\u6790\u8BFB\u53D6\u4E2D","\u5185\u5BB9\u7406\u89E3\u5206\u6790\u4E2D","\u7ED3\u6784\u5316\u63D0\u53D6\u4E2D"];var ve=()=>{const[kt,bt]=(0,te.useState)(0),[$e,dt]=(0,te.useState)(!1),[Qe,et]=(0,te.useState)(!0),ft=(0,te.useRef)(null);(0,te.useEffect)(()=>{if(Qe)return;const Xt=()=>{bt(Qt=>Qt>=99?(clearInterval(ft.current),99):Qt+1)};return ft.current=setInterval(Xt,5e4/99),()=>clearInterval(ft.current)},[Qe]);const Je=()=>{bt(0),dt(!0),et(!1)},ot=(Xt=0)=>{et(!0),bt(Xt),dt(!1)},ht=Xt=>{const Qt=Xt/1048576;let Ht;return Qt<=.3?Ht=3:Qt<=.5?Ht=5:Qt<=1?Ht=10:Qt<=2?Ht=20:Qt<=3?Ht=30:Qt<=10?Ht=Qt*10:Ht=100,` \u9884\u8BA1\u5904\u7406\u65F6\u957F\u4E3A${Ht}\u5206\u949F\uFF0C\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3`},yt=()=>we.createElement("span",{className:ke.dotLoading},we.createElement("span",null,"."),we.createElement("span",null,"."),we.createElement("span",null,"."));return{progress:kt,progressOpen:$e,openProgress:Je,closeProgress:ot,toggleLock:()=>et(Xt=>!Xt),CreateProgressModal:(Xt=at,Qt)=>(typeof Xt=="string"&&(Xt=[Xt,Xt,Xt]),we.createElement(Ee.default,{centered:!0,closable:!1,destroyOnClose:!0,zIndex:1200,open:$e,title:null,footer:null,width:500,afterClose:()=>bt(0)},we.createElement(lt.Z,{align:"middle",className:"mt40 mb20",style:{flexDirection:"column"}},kt<=30&&we.createElement(we.Fragment,null,we.createElement("img",{src:Ve,alt:"Step 1"}),we.createElement("div",{className:"mt20 c-light-primary"},Xt[0],yt())),kt>30&&kt<60&&we.createElement(we.Fragment,null,we.createElement("img",{src:Re,alt:"Step 2"}),we.createElement("div",{className:"mt20 c-light-primary"},Xt[1],yt())),kt>=60&&we.createElement(we.Fragment,null,we.createElement("img",{src:it,alt:"Step 3"}),we.createElement("div",{className:"mt20 c-light-primary"},Xt[2],yt())),we.createElement(ct.Z,{className:ke.progress,status:"active",style:{width:"auto"},size:[300,8],percent:kt}),!!Qt&&we.createElement("div",{className:"c-grey-999"},ht(Qt)))))}}},11146:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return Yt}});var te=he(67294),Ee=he(85418),lt=he(2453),ct=he(83062),Ve=he(69677),Re=he(71577),it=he(21826),ke={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"},at=({position:Jt,children:cn})=>{const{left:Lt=0,top:Dt=0}=Jt||{},[wn,_n]=(0,te.useState)(Lt),[on,kn]=(0,te.useState)(Dt),xn=(0,te.useRef)(null),Vn=()=>{if(xn.current){const er=xn.current.offsetWidth,Me=xn.current.offsetHeight,ce=window.innerWidth,fe=window.innerHeight;let be=Lt,ge=Dt;Lt+er>ce&&(be=ce-er),be<0&&(be=0),Dt+Me>fe&&(ge=fe-Me),ge<0&&(ge=0),_n(be),kn(ge)}};return(0,te.useEffect)(()=>{if(!xn.current||!Jt)return;const er=new ResizeObserver(()=>{Vn()});return er.observe(xn.current),()=>{er.disconnect()}},[Lt,Dt,Jt]),(0,te.useEffect)(()=>{Jt&&Vn()},[Lt,Dt,Jt]),Jt?te.createElement("div",{ref:xn,style:{position:"fixed",left:`${wn}px`,top:`${on}px`,zIndex:1050}},cn):null},tt=he(11320),ve=he(74855),kt=he(56243),bt=Object.defineProperty,$e=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,Je=(Jt,cn,Lt)=>cn in Jt?bt(Jt,cn,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Jt[cn]=Lt,ot=(Jt,cn)=>{for(var Lt in cn||(cn={}))et.call(cn,Lt)&&Je(Jt,Lt,cn[Lt]);if(Qe)for(var Lt of Qe(cn))ft.call(cn,Lt)&&Je(Jt,Lt,cn[Lt]);return Jt},ht=(Jt,cn)=>$e(Jt,dt(cn)),yt=(Jt,cn,Lt)=>new Promise((Dt,wn)=>{var _n=xn=>{try{kn(Lt.next(xn))}catch(Vn){wn(Vn)}},on=xn=>{try{kn(Lt.throw(xn))}catch(Vn){wn(Vn)}},kn=xn=>xn.done?Dt(xn.value):Promise.resolve(xn.value).then(_n,on);kn((Lt=Lt.apply(Jt,cn)).next())}),Xt=({visible:Jt,position:cn,selectText:Lt,applyRefinedText:Dt,fetchUrl:wn,noRestrictModal:_n})=>{var on;const[kn,xn]=(0,te.useState)(!1),[Vn,er]=(0,te.useState)([]),[Me,ce]=(0,te.useState)(""),[fe,be]=(0,te.useState)(1),[ge,ue]=(0,te.useState)(""),[Xe,_t]=(0,te.useState)(!1),Zt=(0,te.useRef)(null),[Dn,An]=(0,te.useState)(!1),[yn,nn]=(0,te.useState)(0),Ar=(0,te.useRef)(!1),Dr=((on=Vn==null?void 0:Vn[(Vn==null?void 0:Vn.length)-1])==null?void 0:on.loading)===!0;(0,te.useEffect)(()=>{if(Jt){be(1);return}An(!1),xn(!1),ln(),nn(0),er([]),be(0)},[Jt]);const ln=()=>{var Wr,qr;ce(""),ue(""),(qr=(Wr=Zt.current)==null?void 0:Wr.cancelRequest)==null||qr.call(Wr)},jn=(...Wr)=>yt(void 0,[...Wr],function*(qr="",Ta=Vn){const Da=Date.now(),Tr=[...Ta,{text:qr,key:Da,sender:"user",show:!0},{loading:!0,key:Da,sender:"AI",show:!0}];be(2),er(Tr);const _i=$r(Ta),jr={no_record_times:!0,prompt:qr,history:_i};Zt.current=new kt.Z(tt.Z.API_SERVER+wn,jr),yield new Promise(di=>{Zt.current.on("data",Lo=>{const{chunk:{msg:ro},full:Hi}=Lo,Ko=ro==="error";An(!0),ue(Yn(Hi)),er(Zo=>Zo.map((zi,Pr)=>Pr===Zo.length-1?ht(ot({},zi),{text:Hi,loading:!1,error:Ko}):zi))}),Zt.current.on("done",()=>di()),Zt.current.on("error",Lo=>{const ro="\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(Lo)==="[object Object]"&&Lo.status===-9&&(be(1),_n(Lo.data)),er(Hi=>Hi.map((Ko,Zo)=>Zo===Hi.length-1?ht(ot({},Ko),{text:ro,loading:!1,error:!0}):Ko)),di()}),Zt.current.on("cancelled",()=>di()),Zt.current.startStream()}),xn(!1)}),wi=Wr=>{ce(Wr.target.value)},$r=Wr=>Wr.reduce((Ta,Da)=>{if(Da.sender==="user"){const Tr=Wr.find(_i=>_i.key===Da.key&&_i.sender==="AI");Tr&&(Tr!=null&&Tr.text)&&!(Tr!=null&&Tr.error)&&Ta.push({question:Da.text,answer:Tr.text})}return Ta},[]),Ir=()=>{if(Fi)return;const Wr=oi("\u6539\u5199");ln(),xn(!0),jn(Wr)},Or=Wr=>{if(Wr.key==="Enter"&&!Wr.shiftKey){if(Wr.preventDefault(),Ar.current||Ni)return;Ir()}},Ca=()=>{var Wr,qr;nn(Ta=>Ta+1),(qr=(Wr=Zt.current)==null?void 0:Wr.cancelRequest)==null||qr.call(Wr),xn(!1),An(!1)},ur=[{key:"1",label:te.createElement("span",null," ",te.createElement("i",{className:"iconfont icon-runse font14 mr10"}),"\u6DA6\u8272 ")},{key:"2",label:te.createElement("span",null,te.createElement("i",{className:"iconfont icon-kuoxie font14 mr10"}),"\u6269\u5199")},{key:"3",label:te.createElement("span",null," ",te.createElement("i",{className:"iconfont icon-suoxie font14 mr10"}),"\u7F29\u5199")}],Yn=(Wr="")=>{const qr=["\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((Ta,Da)=>{qr.push(`\u7B54\u6848${Da+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${Da+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${Da+1})\u8F93\u51FA\uFF1A`)}),qr.forEach(Ta=>{const Da=new RegExp(Ta,"g");Wr=Wr.replace(Da,`**${Ta}** `)}),Wr},oi=Wr=>Wr==="\u6539\u5199"?`${Me}\uFF0C\u6839\u636E\u4E0A\u8FF0\u8981\u6C42\u6539\u5199\u8FD9\u53E5\u8BDD\uFF0C${Lt}\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`:`${Lt}\uFF0C${Wr}\u4E0A\u9762\u8FD9\u53E5\u8BDD\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`,Si=Wr=>{let qr="";Wr.key==="1"&&(qr=oi("\u6DA6\u8272")),Wr.key==="2"&&(qr=oi("\u6269\u5199")),Wr.key==="3"&&(qr=oi("\u7F29\u5199")),ln(),xn(!0),jn(qr)},Ti=()=>{const Wr=Vn.splice(Vn.length-2),{text:qr}=(Wr==null?void 0:Wr[0])||{};ln(),xn(!0),jn(qr,Vn)},Ni=kn||Dn,Fi=(Me==null?void 0:Me.trim())==="";return Jt?te.createElement(Ee.Z,{open:Fi&&!Ni&&(Xe||!ge),overlayStyle:{minWidth:200},menu:{items:ur,onClick:Si}},te.createElement(at,{position:cn},te.createElement("div",{className:ke.wrap},fe===2&&te.createElement(te.Fragment,null,te.createElement("div",{className:ke.chatContainer},Dr&&te.createElement("div",{className:ke.loadingWrp},te.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),te.createElement("div",{className:"ai-loading"})),ge&&te.createElement(it.Z,{cancelIndex:yn,streamingStatus:kn,loadImage:!1,onFinish:()=>yt(void 0,null,function*(){nn(0),setTimeout(()=>An(!1),0)}),value:ge})),te.createElement("div",{className:ke.btnContainer},te.createElement("div",{onClick:()=>Dt(!0,ge),className:ke.btn,style:{padding:"0 16px",width:"initial"}},te.createElement("i",{className:"iconfont icon-tihuan mr10 font14"}),"\u66FF\u6362"),te.createElement("div",{onClick:()=>Dt(!1,ge),className:ke.btn,style:{padding:"0 16px",width:"initial"}},te.createElement("i",{className:"iconfont icon-charu mr10 font14"}),"\u63D2\u5165"),te.createElement(ve.CopyToClipboard,{text:ge,onCopy:()=>lt.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},te.createElement(ct.Z,{title:"\u590D\u5236"},te.createElement("div",{className:ke.btn,style:{marginLeft:"auto"}},te.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),te.createElement(ct.Z,{title:"\u91CD\u65B0\u751F\u6210"},te.createElement("div",{onClick:Ti,className:ke.btn},te.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),te.createElement(ct.Z,{title:"\u5220\u9664"},te.createElement("div",{onClick:()=>{be(1),ln(),er([])},className:ke.btn},te.createElement("i",{className:"iconfont icon-shanchu14 font14"}))))),te.createElement("div",{className:ke.inputContainer},te.createElement(Ve.default.TextArea,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u6587\u672C\u4F18\u5316\u5EFA\u8BAE",value:Me,bordered:!1,onFocus:()=>_t(!0),onBlur:()=>setTimeout(()=>_t(!1),300),onChange:wi,onPressEnter:Or,onCompositionStart:()=>Ar.current=!0,onCompositionEnd:()=>Ar.current=!1}),Dn?te.createElement("div",{className:`iconfont icon-tingzhihuida ${ke.cancelBtn}`,onClick:Ca}):te.createElement(Re.ZP,{className:Fi?ke.sendBtnDisabled:ke.sendBtn,icon:te.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Ni,onClick:Ir}))))):te.createElement(te.Fragment,null)},Qt={"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"},Ht=Object.defineProperty,wt=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,qe=(Jt,cn,Lt)=>cn in Jt?Ht(Jt,cn,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Jt[cn]=Lt,ut=(Jt,cn)=>{for(var Lt in cn||(cn={}))Ye.call(cn,Lt)&&qe(Jt,Lt,cn[Lt]);if(wt)for(var Lt of wt(cn))pt.call(cn,Lt)&&qe(Jt,Lt,cn[Lt]);return Jt};const Oe=Jt=>React.createElement("svg",ut({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Jt),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 Ot="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",un=(0,te.forwardRef)(({initialContent:Jt,onButtonClick:cn},Lt)=>{const[Dt,wn]=(0,te.useState)(null),[_n,on]=(0,te.useState)(null),[kn,xn]=(0,te.useState)(""),[Vn,er]=(0,te.useState)(null),Me=Lt,ce=Zt=>{const Dn=document.elementFromPoint(10,Zt),An=document.createRange();let yn=null;const nn=document.createTreeWalker(Me.current,NodeFilter.SHOW_TEXT,{acceptNode:Ir=>{const Or=document.createRange();Or.selectNodeContents(Ir);const Ca=Or.getBoundingClientRect();return Ca.top<=Zt&&Ca.bottom>=Zt?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let Ar="",Dr,ln,jn=null,wi=null,$r=null;for(;Dr=nn.nextNode();){Dr.parentNode.getAttribute("data-select")==="disabled"&&(ln=!0),Ar+=Dr.textContent,wi||(wi=Dr),$r=Dr;const Ir=document.createRange();Ir.selectNodeContents(Dr);const Or=Ir.getBoundingClientRect();jn===null&&(jn=Or.top)}if(wi&&$r&&!ln){const Ir=document.createRange();Ir.setStart(wi,0),Ir.setEnd($r,$r.textContent.length),er(Ir)}else er(null);return on(jn-1),ln?"":Ar.trim()};function fe(Zt){for(;Zt.parentElement&&Zt.parentElement.tagName.toLowerCase()!=="section";){var Dn=window.getComputedStyle(Zt.parentElement);if(Dn.pointerEvents==="none")return!0;Zt=Zt.parentElement}return!1}const be=Zt=>{var Dn,An;if(fe(Zt.target)){on(-1e6);return}if(((An=(Dn=document.getSelection())==null?void 0:Dn.toString)==null?void 0:An.call(Dn))!==""){on(-1e6);return}const yn=ce(Zt.clientY);if((yn==null?void 0:yn.trim())===""){on(-1e6);return}const nn=Me.current.getBoundingClientRect();wn(nn.left-30),xn(yn)},ge=()=>{},ue=Zt=>{cn&&kn&&cn(kn,Zt.clientX,Zt.clientY,Vn)},Xe=()=>{if(Vn){const Zt=window.getSelection();Zt.removeAllRanges(),Zt.addRange(Vn)}},_t=()=>{window.getSelection().removeAllRanges()};return(0,te.useEffect)(()=>{const Zt=Me.current;return Zt.addEventListener("mousemove",be),Zt.addEventListener("mouseleave",ge),()=>{Zt.removeEventListener("mousemove",be),Zt.removeEventListener("mouseleave",ge),_t()}},[Jt]),te.createElement("div",{className:Qt["hover-line-container2"]},_n!==null&&te.createElement("div",{className:Qt["line-button-container"],style:{top:_n,left:Dt},onMouseEnter:()=>{Xe()},onMouseLeave:()=>{_t(),on(null),xn(""),er(null)}},te.createElement("div",{className:Qt.button,onClick:ue},te.createElement("img",{src:Ot}),te.createElement("span",null,"AI\u6539\u5199"))))}),Ge={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},Yt=({nodeRef:Jt,noRestrictModal:cn})=>{const[Lt,Dt]=(0,te.useState)(null),[wn,_n]=(0,te.useState)(null),[on,kn]=(0,te.useState)(!1),[xn,Vn]=(0,te.useState)(null),[er,Me]=(0,te.useState)(!1),[ce,fe]=(0,te.useState)(!1),be=Jt,ge=(0,te.useRef)(null),ue=(0,te.useRef)(null),[Xe,_t]=(0,te.useState)("");(0,te.useEffect)(()=>{Lt!=null&&Lt.toString()&&_t(Lt==null?void 0:Lt.toString())},[Lt==null?void 0:Lt.toString()]);const Zt=()=>{const nn=window.getSelection(),Ar=be.current.scrollTop,Dr=be.current.getBoundingClientRect();if(nn.rangeCount>0&&nn.toString().length>0){const ln=nn.getRangeAt(0);Dt(ln.cloneRange());const jn=ln.getBoundingClientRect(),wi=40;let $r=jn.top+Ar-5+wi;$r<Ar&&($r=jn.bottom-Dr.top+Ar+5);const Ir=be.current.scrollHeight-wi;$r=Math.min(Math.max($r,Ar),Ir),_n({top:$r+6,left:jn.left})}else Dt(null),_n(null),kn(!1);Dn(nn)},Dn=nn=>{if(!nn||nn.rangeCount===0){Me(!1);return}const Dr=nn.getRangeAt(0).getBoundingClientRect(),ln=window.getComputedStyle(be.current),jn=parseInt(ln.lineHeight),wi=parseInt(ln.paddingTop),$r=be.current.scrollTop,Ir=be.current.getBoundingClientRect(),Or=Dr.top-Ir.top+$r,Ca=Math.floor((Or-wi)/jn),ur=wi+Ca*jn-$r;Vn(ur),Me(!0)},An=nn=>{be.current&&!be.current.contains(nn.target)&&fe(!1)};(0,te.useEffect)(()=>{const nn=be.current;return nn.addEventListener("scroll",Zt),nn.addEventListener("input",Zt),nn.addEventListener("click",Zt),nn.addEventListener("mouseup",Zt),nn.addEventListener("keyup",Zt),nn.addEventListener("click",Zt),document.addEventListener("mousedown",An),()=>{nn.removeEventListener("scroll",Zt),nn.removeEventListener("input",Zt),nn.removeEventListener("click",Zt),nn.removeEventListener("mouseup",Zt),nn.removeEventListener("keyup",Zt),nn.removeEventListener("click",Zt),document.removeEventListener("mousedown",An)}},[]);const yn=(nn=!0,Ar)=>{if(!Lt)return;const Dr=ue.current.querySelector("section.edu_md").innerHTML.replace(/<p[^>]*>([\s\S]*?)<\/p>/g,"$1"),ln=Lt.cloneRange(),jn=window.getSelection();if(jn.removeAllRanges(),jn.addRange(ln),nn){ln.deleteContents();const wi=document.createElement("div");wi.innerHTML=Dr;const $r=Array.from(wi.childNodes);for(;$r.length>0;)ln.insertNode($r.pop())}else{ln.collapse(!1);const wi=document.createElement("div");wi.innerHTML=" "+Dr;const $r=Array.from(wi.childNodes);for(;$r.length>0;)ln.insertNode($r.pop())}jn.removeAllRanges(),Dt(null),kn(!1),_n(null)};return te.createElement("section",{ref:ue},wn&&te.createElement("div",{ref:ge,className:Ge.toolbar,style:{top:wn==null?void 0:wn.top,left:wn==null?void 0:wn.left}},te.createElement("div",{className:Ge.button,onClick:()=>kn(!0)},te.createElement("img",{src:Ot}),te.createElement("span",null,"AI\u6539\u5199"))),te.createElement(Xt,{key:JSON.stringify(wn),noRestrictModal:cn,visible:on,position:wn,selectText:Xe,applyRefinedText:yn,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),be.current&&te.createElement(un,{ref:be,onButtonClick:(nn,Ar,Dr,ln)=>{Dt(ln),kn(!0),_t(nn),_n({left:Ar,top:Dr+20})}}))}},49627:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return Ve}});var te=he(67294),Ee=he(14446),lt={num:"num___VQiqB"},Ve=({visible:Re,usedCount:it,totalCount:ke,onOk:we,onCancel:at})=>{const tt=()=>it>0?te.createElement("div",null,"\u672C\u6B21\u5C06\u6D88\u80171\u6B21\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\uFF08\u6BCF\u65E5",ke,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",te.createElement("span",{className:lt.num},it),"\u6B21\uFF09\uFF0C\u786E\u5B9A\u64CD\u4F5C\u5417\uFF1F"):te.createElement("div",{className:"mb20"},"\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5",ke,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",te.createElement("span",{className:lt.num},it),"\u6B21\uFF09\u3002");return te.createElement(Ee.default,{centered:!0,open:Re,title:"\u63D0\u793A",width:620,zIndex:1100,onCancel:at,onOk:we,footer:it>0?void 0:null},tt())}},74867:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return dt},Q:function(){return bt}});var te=he(67294),Ee={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},lt=he(56243),ct=he(11320),Ve=he(21826),Re=he(11146),it=he(66146),ke=he(9117),we="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAADGlJREFUeF7tnVlQHMcZx7/umT0AcSjGBonDOmxdgV2Ww0iWIsmxrfIhJ1VJ2W+uilgEjqtclTwmLxQvyYur8uCKYmFQXMmbXUlV4lw+YsmHkBECdhdkSZZlyUJgScEWh7h2d7pTvcUuw2hhp3dm2dmleWPn66+/+f+me7p7vplGkOQfpRTVt56vgJCyARAtpAg5knS1JosRhBQMdMpJbddPd+68jhCiyQiBkil0sO2qc2J4yoMQLU6mvCizVAFCyLdFlUX9p9o3z/Fqww2Qtbxa7+BuAY9X6pXtGcSBEzVneFsiN8C6lqFKqihuc8MX3pgCTrAFurt2fc2jBj/AI/5GiuGBaCVIgtv2vOnAmd89OstT8Vq33fPL7pzgdJ6LKotaAoLx/k73Jzza8ANs8h1SD1gcBdMfCHg8ki/aMojzk3lPRH9hAxtfp+tfPN64AdZ6/c+pK+jvcr/DU6GwXaqAUT0FwDRfUQJgmgEYrV4ANKpgmssLgGkGYLR6AdCogmkuLwCmGYDR6gVAowqmubwAmGYARqsXAI0qmObyAmCaARitXgA0qmCaywuAaQZgtHoB0KiCaS4vAKYZgNHqBUCjCqa5vACYZgBGqxcAjSqY5vKmARR5nmkmmaD65fJII0/kRZ6nteFpo1PnkSKR55lZ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VkLNcaI/NJCrfA7vjm8IZt3yVa20w1xDUNUA3p+effkm4U7Cqcg2A+AruNymDH80RSHPKcTVLmbITM27E0k8zD2FRCFACTvfFxllsOopQr9fYeq7rJ6S5mzg2wrsl3SD0SEx891y99PIgU0MRAl+tj/V6WWvIDPOJvVH9WQ2w7wCe9FiLTr6/D3cPnZdGaH2DLUCVVFHeyFWZKuVQmBrP36MPzZBtCNFiG7w8Yef2bG+BCptVudapcpkDhiTOVAHniSGTLDTA6IZ4YnvJkM8SsBsggRl5pbj1fASFlQ6IlpkRXkRWPZwrA/wPlJnpuyspBOgAAAABJRU5ErkJggg==",at=he(94184),tt=he.n(at),ve=he(2453),kt=(Qe,et,ft)=>new Promise((Je,ot)=>{var ht=Xt=>{try{zt(ft.next(Xt))}catch(Qt){ot(Qt)}},yt=Xt=>{try{zt(ft.throw(Xt))}catch(Qt){ot(Qt)}},zt=Xt=>Xt.done?Je(Xt.value):Promise.resolve(Xt.value).then(ht,yt);zt((ft=ft.apply(Qe,et)).next())});const bt={contentRef:{current:null},value:null,status:!1,open:()=>kt(void 0,null,function*(){}),close:()=>{}};var dt=({className:Qe,style:et,onChange:ft,onSuccess:Je,onCancel:ot,onError:ht,fetchUrl:yt,noRestrictModal:zt=()=>{},showEditableToolbar:Xt,bottomOffset:Qt=110,loadingText:Ht,showEmptyData:wt=!0,onStatusChange:Ye,stringTransformer:pt,bottomContainerNode:qe})=>{const[ut,Oe]=(0,te.useState)(!1),[Ot,Gt]=(0,te.useState)(""),[un,Ge]=(0,te.useState)(0),[Ke,Yt]=(0,te.useState)(!1),Jt=(0,te.useRef)(null),cn=(0,te.useRef)(null),Lt=(0,te.useRef)(null),Dt=(0,te.useRef)(null),wn=(0,it.Z)({scrollBoxRef:Dt,bottomInspectRef:Lt,contentRef:cn,status:Ke,bottomOffset:Qt}),_n=ut||Ke;(0,te.useEffect)(()=>{ft==null||ft(Ot)},[Ot]),(0,te.useEffect)(()=>{Ye==null||Ye({contentRef:cn,status:_n,value:Ot,open:on,close:kn})},[_n,Ot]);const on=Vn=>kt(void 0,null,function*(){Oe(!0),Gt(""),Ge(0);const er=yt;Vn!=null&&Vn.fetchUrl&&delete Vn.fetchUrl,Jt.current=new lt.Z(`${ct.Z.API_SERVER}${er}`,Vn),yield new Promise((Me,ce)=>{Jt.current.on("data",fe=>{let{chunk:{content:be,type:ge}}=fe;Yt(!0),ge==="text"&&Gt(ue=>pt?pt(ue+be):ue+be)}),Jt.current.on("done",()=>{Me()}),Jt.current.on("error",fe=>{Object.prototype.toString.call(fe)==="[object Object]"&&fe.status===-1&&ve.ZP.warning((fe==null?void 0:fe.message)||""),Me(),ht==null||ht(fe)}),Jt.current.on("cancelled",()=>{Me(),ot==null||ot()}),Jt.current.startStream()}),Oe(!1)}),kn=()=>{var Vn,er;Ge(1),(er=(Vn=Jt.current)==null?void 0:Vn.cancelRequest)==null||er.call(Vn),Oe(!1),Yt(!1)},xn=(0,te.useMemo)(()=>cn.current?te.createElement(Re.Z,{noRestrictModal:zt,nodeRef:cn}):te.createElement(te.Fragment,null),[cn.current]);return te.createElement(te.Fragment,null,te.createElement("div",{className:tt()(Ee.container,Qe),style:et,ref:Dt},te.createElement("div",{ref:cn,className:Ee.liWrap,contentEditable:!_n},Ot&&te.createElement(Ve.Z,{cancelIndex:un,streamingStatus:ut,loadImage:!1,onFinish:()=>kt(void 0,null,function*(){Ge(0),setTimeout(()=>Yt(!1),0),Je==null||Je(Ot)}),value:Ot})),!Ot&&!_n&&te.createElement("div",{className:Ee.imgBox},te.createElement("img",{width:56,src:we}),te.createElement("span",null,"\u9884\u89C8\u533A")),wt&&_n&&te.createElement(ke.Z,{text:Ht}),!wn&&te.createElement("div",{className:Ee.backBottom,onClick:()=>{Dt.current.scrollTop=Dt.current.scrollHeight}},te.createElement("i",{className:"iconfont icon-huidaodibu"})),te.createElement("div",{ref:Lt}),qe),!_n&&Xt&&xn)}},9117:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return ct}});var te=he(67294),Ee={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},ct=({text:Ve})=>te.createElement("div",null,te.createElement("div",{className:Ee.loading},te.createElement("div",{className:Ee.dot}),te.createElement("div",{className:Ee.dot}),te.createElement("div",{className:Ee.dot})),!!Ve&&te.createElement("div",{className:"mt5"},Ve))},43158:function(dn,vn,he){"use strict";he.d(vn,{o:function(){return te}});const te=Ee=>(Ee=Ee.replace(new RegExp("(?<!\\*)\\*\\*\\*\\*([^\\n*]+?)\\*\\*\\*\\*(?!\\*)","g"),'<h2 data-select="disabled" data-type="title" contenteditable="false" class="c-black">$1</h2>'),Ee=Ee.replace(new RegExp("(?<!\\*)\\*\\*\\*([^\\n*]+?)\\*\\*\\*(?!\\*)","g"),`
|
|
|
|
|
|
<h3 data-select="disabled" contenteditable="false" class="c-black font18">$1</h3>
|
|
|
|
|
|
`),Ee)},65213:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return ct}});var te=he(67294),Ee={digitalLabel:"digitalLabel___tImKs",active:"active___Ck70Q"},ct=({number:Ve,active:Re,className:it})=>te.createElement("div",{className:`${Ee.digitalLabel} ${Re?Ee.active:""} ${it}`},Ve)},10208:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return et}});var te=he(67294),Ee=he(79870),lt={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},ct=he(73631),Ve=he(5623),Re=he(38244),it=Object.defineProperty,ke=Object.defineProperties,we=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,kt=(ft,Je,ot)=>Je in ft?it(ft,Je,{enumerable:!0,configurable:!0,writable:!0,value:ot}):ft[Je]=ot,bt=(ft,Je)=>{for(var ot in Je||(Je={}))tt.call(Je,ot)&&kt(ft,ot,Je[ot]);if(at)for(var ot of at(Je))ve.call(Je,ot)&&kt(ft,ot,Je[ot]);return ft},$e=(ft,Je)=>ke(ft,we(Je)),dt=(ft,Je,ot)=>new Promise((ht,yt)=>{var zt=Ht=>{try{Qt(ot.next(Ht))}catch(wt){yt(wt)}},Xt=Ht=>{try{Qt(ot.throw(Ht))}catch(wt){yt(wt)}},Qt=Ht=>Ht.done?ht(Ht.value):Promise.resolve(Ht.value).then(zt,Xt);Qt((ot=ot.apply(ft,Je)).next())}),et=({value:ft,onChange:Je,scrollId:ot})=>{const[ht,yt]=(0,te.useState)([]);(0,te.useEffect)(()=>{zt()},[]);const zt=()=>dt(void 0,null,function*(){const pt=yield(0,Re.NZ)({});if(pt!=null&&pt.data){const qe=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:te.createElement("img",{src:ct,className:lt.folderIcon}),isLeaf:!1,children:Xt(pt.data||[])}];yt(qe)}}),Xt=pt=>pt.map(qe=>({title:qe.name,key:qe.group_id,icon:te.createElement("img",{src:ct,className:lt.folderIcon}),isLeaf:qe.children.length===0,children:Xt(qe.children)})),Qt=(pt,qe,ut)=>pt.map(Oe=>Oe.key===qe?bt(bt({},Oe),ut):Oe.children?$e(bt({},Oe),{children:Qt(Oe.children,qe,ut)}):Oe),Ht=(pt,qe,ut)=>pt.map(Oe=>{if(Oe.key===qe)return $e(bt({},Oe),{icon:ut?te.createElement("img",{src:Ve,className:lt.folderIcon}):te.createElement("img",{src:ct,className:lt.folderIcon})});if(Oe.children)return $e(bt({},Oe),{children:Ht(Oe.children,qe,ut)})}),wt=(pt,qe)=>{yt(ut=>Ht(ut,qe.node.key,qe.expanded))},Ye=ft?{selectedKeys:ft,defaultExpandedKeys:ft}:{};return ht.length>0&&te.createElement("div",{id:ot||""},te.createElement(Ee.default,bt({showLine:{showLeafIcon:!1},showIcon:!0,treeData:ht,className:lt.folderWrapper,onSelect:Je,onExpand:wt},Ye)))}},20670:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return Re}});var te=he(55241),Ee={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},lt=he(32637),ct=he(67294),Re=({type:it,style:ke})=>{const we=ct.createElement("div",{className:Ee.wrap,onClick:at=>{at.preventDefault(),at.stopPropagation()}},ct.createElement("p",null,it==="shixun"||it==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",ct.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",it==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),ct.createElement("div",{className:Ee.contact},ct.createElement("div",{className:Ee.img},ct.createElement("img",{src:lt,width:"124px",height:"124px"})),ct.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return ct.createElement(te.Z,{content:we},ct.createElement("span",{className:Ee.text,style:ke},"\u9AD8\u6D88\u8017"))}},63205:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return tt}});var te=he(67294),Ee={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},lt=he(94184),ct=he.n(lt),Ve=he(57953),Re=he(15979),it=he(33170),ke=he(28706),we=(ve,kt,bt)=>new Promise(($e,dt)=>{var Qe=Je=>{try{ft(bt.next(Je))}catch(ot){dt(ot)}},et=Je=>{try{ft(bt.throw(Je))}catch(ot){dt(ot)}},ft=Je=>Je.done?$e(Je.value):Promise.resolve(Je.value).then(Qe,et);ft((bt=bt.apply(ve,kt)).next())}),tt=({data:ve,className:kt,fullWidth:bt,style:$e={},onClose:dt,onOk:Qe,showFullTools:et,noAssociationId:ft})=>{const Je=(0,te.useRef)(null),ot=(0,te.useRef)(null),ht=(0,te.useRef)(null),yt=(0,te.useRef)(null),[zt,Xt]=(0,te.useState)(!1),[Qt,Ht]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ht.current||(ht.current=document.createElement("style"),document.head.appendChild(ht.current)),ve!=null&&ve.visible?(document.body.setAttribute("data-custom","y-hidden"),ht.current.innerHTML=" html { overflow-y: hidden; }",ve!=null&&ve.src&&wt()):(document.body.removeAttribute("data-custom"),ht.current&&(document.head.removeChild(ht.current),ht.current=null))},[ve==null?void 0:ve.visible]);const wt=()=>we(void 0,null,function*(){Xt(!0),Ht("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Oe=yield(0,ke.ZJ)(ve==null?void 0:ve.src);Je.current.src="",Je.current.src=Oe,Je.current.onload=function(){ut()},Xt(!1),Ht("")}),Ye=()=>{document.body.removeAttribute("data-custom"),ht.current.innerHTML=" ",dt()},pt=Oe=>we(void 0,null,function*(){Xt(!0),Ht("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ot=yield(0,it.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ve.title,file:Oe.dataUrl}});Ot!=null&&Ot.id&&!ft?(yield(0,it.ZP)(`/api/attachments/${ve.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ot==null?void 0:Ot.id,settings:JSON.stringify(Oe.state)}})).status===0&&Qe():Ot!=null&&Ot.id&&Qe(Ot),document.body.removeAttribute("data-custom"),ht.current.innerHTML=" ",Xt(!1),Ht("")}),qe=()=>{const Oe=document.querySelector('a[href="https://markerjs.com/"]');Oe&&Oe.parentNode&&(Oe.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(Gt=>{const un=document.querySelector(Gt.name);un&&un.setAttribute("title",Gt.title)})},ut=()=>{ot.current=new Re.hP(Je.current),ot.current.targetRoot=yt.current,ot.current.addEventListener("render",pt),ot.current.addEventListener("beforeclose",Ye),et&&(ot.current.availableMarkerTypes=ot.current.ALL_MARKER_TYPES,ot.current.uiStyleSettings.redoButtonVisible=!0,ot.current.uiStyleSettings.notesButtonVisible=!0,ot.current.uiStyleSettings.zoomButtonVisible=!0,ot.current.uiStyleSettings.zoomOutButtonVisible=!0,ot.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ot.current.uiStyleSettings,ot.current.show(),ve!=null&&ve.snapshotData&&ot.current.restoreState(ve.snapshotData),setTimeout(()=>{window.scrollTo(0,0),qe()},300)};return te.createElement(te.Fragment,null,(ve==null?void 0:ve.visible)&&te.createElement(Ve.Z,{spinning:zt,tip:Qt,style:{position:"absolute"}},te.createElement("div",{ref:yt,className:ct()(Ee.imageDimensions,kt,bt?Ee.fullWidth:""),style:$e},te.createElement("img",{className:Ee.img,ref:Je}))))}},38478:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return fe},$:function(){return ce}});var te=he(67294),Ee={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"},lt=he(94184),ct=he.n(lt),Ve=he(22150),Re=he(2453),it=he(14446),ke=he(31795),we=he(71230),at=he(84567),tt=he(85418),ve=he(59810),kt=he(71577),bt=he(38703),$e=he(85546),dt=he(69677),Qe=he(64743),et=he(11320),ft="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAABk1JREFUWEd1lwlsVkUQx3/7ClGMSMSrHCKXHCpQhYhCNB5AYqRQGq1AiKgEEAiokAJFFIoipcVE5EYFyn23IGCJgoTDQimWSJSzCIKIcglUEIGu2bdv3+77vo+XfPl2Z2Zn5z8zuzsjSPDJ0tZV2ftfGog0BG0Q1AbuRABCgJDBvxorWqDE5xkZh+4porNGjRXNyKvlMuCbf2OXDPRIWYHnnQJKqaSQOimFos3s67HmG1NCupzxWDcgD2Qjf0P1qT/fqGAcGh4Yb4x1ZZSsCySy3oAV4LnOCByi9Pl7CQ00HPvIDb0cz8sUqSUFLqgQkJRjPCavzEFUZoaecz2oNjYAjXGJgEQi5Bio1kYiZYDEOEt5z4+ecZ4D2I2kGePl0eWlkUJkVxp/+yvkp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Qt=he(81897),Ht=he(35713),wt=he(70859),Ye=he(20527),pt=he.n(Ye),qe=(be,ge,ue)=>new Promise((Xe,_t)=>{var Zt=yn=>{try{An(ue.next(yn))}catch(nn){_t(nn)}},Dn=yn=>{try{An(ue.throw(yn))}catch(nn){_t(nn)}},An=yn=>yn.done?Xe(yn.value):Promise.resolve(yn.value).then(Zt,Dn);An((ue=ue.apply(be,ge)).next())}),Oe=te.memo(({tagName:be="div",value:ge="",className:ue,style:Xe={},onBlur:_t,id:Zt})=>{const Dn=(0,te.useRef)(null);(0,te.useEffect)(()=>{if(!Dn.current)return;qe(void 0,null,function*(){const nn=Dn.current;nn.innerHTML="";const Ar=ge==null?void 0:ge.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const Dr of Ar)if(Dr.startsWith("$$")&&Dr.endsWith("$$")||Dr.startsWith("`$$")&&Dr.endsWith("$$`")){const ln=Dr.startsWith("`$$")?Dr.slice(3,-3):Dr.slice(2,-2),jn=document.createElement("span");jn.setAttribute("contentEditable","false"),jn.setAttribute("title",Dr),jn.className="edu_latex",nn.appendChild(jn),pt().render(ln,jn,{throwOnError:!1})}else{const ln=Dr==null?void 0:Dr.replace(/<[^>]*>/g,jn=>jn.startsWith("<img")?jn:jn.replace(/</g,"<"));nn.insertAdjacentHTML("beforeend",ln)}})},[Zt]);const An=()=>{var yn,nn;if(_t&&Dn.current){const Dr=Dn.current.cloneNode(!0),ln=Dr.querySelectorAll("span.edu_latex");for(let jn of ln){const wi=jn.getAttribute("title"),$r=document.createTextNode(wi||""),Ir=jn;(nn=(yn=Ir.parentNode)==null?void 0:yn.replaceChild)==null||nn.call(yn,$r,Ir)}_t(Dr.innerHTML)}};return te.createElement(te.Fragment,null,te.createElement(be,{ref:Dn,contentEditable:!0,className:ue,style:Xe,onBlur:An}))}),Ot=he(52262),Gt=he(33054),un=he(17173),Ge=Object.defineProperty,Ke=Object.defineProperties,Yt=Object.getOwnPropertyDescriptors,Jt=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,Dt=(be,ge,ue)=>ge in be?Ge(be,ge,{enumerable:!0,configurable:!0,writable:!0,value:ue}):be[ge]=ue,wn=(be,ge)=>{for(var ue in ge||(ge={}))cn.call(ge,ue)&&Dt(be,ue,ge[ue]);if(Jt)for(var ue of Jt(ge))Lt.call(ge,ue)&&Dt(be,ue,ge[ue]);return be},_n=(be,ge)=>Ke(be,Yt(ge)),on=(be,ge,ue)=>new Promise((Xe,_t)=>{var Zt=yn=>{try{An(ue.next(yn))}catch(nn){_t(nn)}},Dn=yn=>{try{An(ue.throw(yn))}catch(nn){_t(nn)}},An=yn=>yn.done?Xe(yn.value):Promise.resolve(yn.value).then(Zt,Dn);An((ue=ue.apply(be,ge)).next())});const kn=be=>{be.preventDefault();let ue=(be.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,ue)},xn=be=>{be.key==="Enter"&&be.preventDefault()},Vn=({children:be,style:ge})=>te.createElement("div",{className:Ee.leftBox,style:ge,onPaste:kn},be),er=({children:be,style:ge,className:ue})=>te.createElement("div",{className:ct()(Ee.rightBox,ue),style:ge,onPaste:kn},be),Me=({className:be,style:ge={},width:ue=1200,onCancel:Xe=()=>{},onSuccess:_t=()=>{},gather:Zt={},mode:Dn=1,stickyTop:An=0,subDisciplineId:yn=[],hideWordFeatures:nn,dataSource:Ar=[],customLeftHeadNode:Dr,customRightHeadNode:ln,customLeftContent:jn,hideRecognition:wi=!1,onExchange:$r,isSingleSelection:Ir=!1,underpinBackgroundStyle:Or={},headExtraNode:Ca,isRefreshItemBank:ur=!1,okText:Yn="\u786E\u5B9A\u5BFC\u5165",onSave:oi})=>{var Si;const[Ti,Ni]=(0,te.useState)(1),[Fi,Wr]=(0,te.useState)(0),[qr,Ta]=(0,te.useState)(""),[Da,Tr]=(0,te.useState)(!1),[_i,jr]=(0,te.useState)([]),[di,Lo]=(0,te.useState)([]),[ro,Hi]=(0,te.useState)(!1),[Ko,Zo]=(0,te.useState)(!1),[zi,Pr]=(0,te.useState)(!1),[ta,Wa]=(0,te.useState)(!1),[yo,Eo]=(0,te.useState)([]),[bo,rs]=(0,te.useState)(1),[fo,ka]=(0,te.useState)(!1),[mi,Fo]=(0,te.useState)(!0),[Xo,Ja]=(0,te.useState)(0),[Na,Rs]=(0,te.useState)(!1),[io]=Ve.default.useForm(),[lo]=Ve.default.useForm(),cr=(0,te.useRef)(null),Xi=(0,te.useRef)(null),br=(0,te.useRef)(),Cl=(0,te.useRef)(null),fs=["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"],ho=["C","C++","Java","Python","JavaScript","Ruby"];(0,te.useEffect)(()=>{Ar!=null&&Ar.length&&vs(Ar)},[Ar]),(0,te.useEffect)(()=>{Ti===2&&cr.current.focus()},[Ti]),(0,te.useEffect)(()=>{zi&&Ma()},[zi]);const Ll=()=>{if(Ti===1){Re.ZP.warning("\u8BF7\u5148\u4E0A\u4F20\u8BD5\u9898\uFF01");return}it.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:()=>on(void 0,null,function*(){Ni(1)})})},Ma=()=>on(void 0,null,function*(){const Ae=yield(0,yt.ZP)("/api/disciplines.json",{method:"get",params:{source:Dn===1?"new_question":"subject"}});Eo(Ae.disciplines||[])}),El=Ae=>{const St=[],Ft=(an,Rt)=>{an.length>=2&&St.push(an.join(""));for(let In=Rt;In<Ae.length;In++)an.push(Ae[In]),Ft(an,In+1),an.pop()};return Ft([],0),St},Xn=Ae=>(Ae=Ae||"",Ae=String(Ae),Ae=Ae.replace(/\s+/g,""),Ae),Go=Ae=>(Ae=Ae||"",Ae=String(Ae),Ae=Ae.replace(/<div>/g,""),Ae=Ae.replace(/<br>/g,`
|
|
|
`),Ae=Ae.replace(/<\/div>/g,`
|
|
|
`),Ae=Ws(Ae),Ae),hs=Ae=>Ae.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Ws=Ae=>Ae.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"),xo=Ae=>{var St;const Ft=Ae.clipboardData;if(Ft){const an=Ft.types.toString(),Rt=Ft.items;if(an==="Files"||Ft.types.indexOf("Files")>-1){Ae.preventDefault();try{let In=Rt[1];((St=Rt[0])==null?void 0:St.kind)==="file"&&(In=Rt[0]);const zn=In.getAsFile();(0,wt.I)(zn,Rn=>{var Mn;if(Rn.id){if(((Mn=zn==null?void 0:zn.type)==null?void 0:Mn.indexOf("image"))>-1){const sn=`<img src='${et.Z.API_SERVER}${Rn.url}'>`;document.execCommand("insertText",!1,sn)}}else(Rn==null?void 0:Rn.status)===401&&(document.location.href="/user/login")})}catch(In){Re.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function co(Ae,St){return on(this,null,function*(){if(typeof Ae=="string")return yield St(Ae);if(typeof Ae!="object"||Ae===null)return Ae;if(Array.isArray(Ae))return yield Promise.all(Ae.map(Rt=>on(this,null,function*(){return yield co(Rt,St)})));const Ft={};for(const an in Ae)if(Object.prototype.hasOwnProperty.call(Ae,an)){const Rt=Ae[an];typeof Rt=="string"?Ft[an]=yield St(Rt):typeof Rt=="object"?Ft[an]=yield co(Rt,St):Ft[an]=Rt}return Ft})}const Ho=()=>on(void 0,null,function*(){var Ae;Tr(!0),Ta("\u5904\u7406\u4E2D"),yield new Promise(an=>setTimeout(an,1e3));let St=(Ae=Xi.current)==null?void 0:Ae.querySelectorAll('[data-text="edit"]'),Ft="";try{St.forEach(function(an){var Rt,In,zn,Rn;const Mn=an.cloneNode(!0),sn=Mn.querySelectorAll("span.edu_latex");for(let Tn of sn){const Kn=Tn.getAttribute("title"),Zr=document.createTextNode(Kn),li=Tn;(In=(Rt=li.parentNode)==null?void 0:Rt.replaceChild)==null||In.call(Rt,Zr,li)}const Bn=Mn.querySelectorAll("span[style]");for(let Tn of Bn)if(Tn.style.fontFamily){const Kn=Tn.innerHTML,Zr=document.createTextNode(Kn),li=Tn;(Rn=(zn=li.parentNode)==null?void 0:zn.replaceChild)==null||Rn.call(zn,Zr,li)}Mn==null||Mn.childNodes.forEach(function(Tn){Tn.nodeType===Node.ELEMENT_NODE&&Tn.localName!=="h5"&&Tn.localName!=="h4"?Ft+=`<p>${Tn.innerHTML}</p>`:Tn.nodeType===Node.TEXT_NODE&&(Ft+=`<p>${Tn.textContent}</p>`)})}),gs("/api/intelligent_imports/import.json",{html:Ws(Ft)})}catch(an){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",an)}}),ps=Ae=>{let St=Ae.filter(Ft=>!!(Ft!=null&&Ft.type));return St=St.map(Ft=>{var an;const Rt=(an=ms.find(zn=>zn.id===(Ft==null?void 0:Ft.type)))==null?void 0:an.deal,In=_n(wn({},Ft),{id:String(Math.random()).slice(-6),knowledgePoint:Xn(Ft==null?void 0:Ft.knowledgePoint)});return Rt?Rt(In):In}),St},Ro=()=>{if(Ti===1){Re.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!");return}it.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:Ho})},qo=()=>te.createElement("div",{className:Ee.row},te.createElement("div",{className:Ee.leftLayout},te.createElement(Vn,{style:{height:675}},Ti===1&&te.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>Ni(2)},te.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",te.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",te.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",te.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",te.createElement("br",null)),te.createElement("div",{className:Ee.imgBox,style:{marginTop:75}},te.createElement("img",{width:56,src:Je}),te.createElement("span",null,"\u7F16\u8F91\u533A"))),Ti===2&&te.createElement("div",{"data-text":"edit",onBlur:()=>{cr.current.innerHTML||Ni(1)},ref:cr,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),te.createElement("div",{className:Ee.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},te.createElement("div",{className:Ee.imgBox,style:{marginTop:240}},te.createElement("img",{width:56,src:ot}),te.createElement("span",null,"\u9884\u89C8\u533A")))),Va=(Ae,St,Ft,an)=>{var Rt;console.log(Ae,St,Ft,an,"onDataChange\u4FEE\u6539\u6570\u503C");const In=JSON.parse(JSON.stringify(di));an===void 0?In[St][Ae]=Ft:In[St].questions[an][Ae]=Ft;const zn=wn({},In[St]),Rn=(Rt=ms.find(Mn=>Mn.id===(zn==null?void 0:zn.type)))==null?void 0:Rt.deal;In[St]=Rn(zn),Lo(In)},Ms=(Ae,St,Ft)=>{var an;const Rt=Ft!==void 0,In=(an=ms.find(Mn=>Mn.id===(Ae==null?void 0:Ae.type)))==null?void 0:an.type,zn=`${St+1}.${Ft===void 0?"":Ft+1+"."}`,Rn=`${(Ae==null?void 0:Ae.type)==="7"?"{{":""}${zn}\u3010${In}\u3011${(Ae==null?void 0:Ae.question)||""}`;return te.createElement(te.Fragment,null,Rt&&te.createElement("h4",{contentEditable:!0}),te.createElement(Oe,{id:Ae==null?void 0:Ae.id,tagName:"div",value:Rn}))},Vl=(Ae,St)=>on(void 0,null,function*(){var Ft;const an=yield $r(Ae,St),Rt=(Ft=an==null?void 0:an.data)==null?void 0:Ft.content;if(Rt!=null&&Rt.length){const In=ps(Rt)[0];_i.splice(St,1,In),di.splice(St,1,In),jr([..._i]),Lo([...di])}}),qs=(Ae,St,Ft)=>{var an;const Rt=Ft!==void 0,In=(an=ms.find(Rn=>Rn.id===(Ae==null?void 0:Ae.type)))==null?void 0:an.type,zn=`${St+1}.${Ft===void 0?"":Ft+1+"."}`;return Rt?te.createElement("div",{style:{padding:"10px 18px"}},`${zn}\u3010${In}\u3011`,te.createElement(Oe,{id:Ae==null?void 0:Ae.id,tagName:"span",className:Ee.edit,onBlur:Rn=>Va("question",St,Rn,Ft),value:(Ae==null?void 0:Ae.question)||""})):te.createElement(te.Fragment,null,te.createElement("div",{className:Ee.actionHead},te.createElement("div",{className:"c-light-primary"},`${zn}\u3010${In}\u3011`),Dn!==1&&te.createElement(ke.Z,{disabled:(Ae==null?void 0:Ae.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:Rn=>Va("score",St,Rn,Ft),value:Ae==null?void 0:Ae.score}),te.createElement(we.Z,{align:"middle",style:{marginLeft:"auto"}},!!$r&&te.createElement("span",{className:"current c-light-primary mr30",onClick:()=>Vl(Ae,St)},te.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),te.createElement(at.default,{onChange:Rn=>Va("checked",St,Rn.target.checked,Ft),checked:!!(Ae!=null&&Ae.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),te.createElement(Oe,{id:Ae==null?void 0:Ae.id,tagName:"div",style:{padding:"10px 18px"},className:Ee.edit,onBlur:Rn=>Va("question",St,Rn,Ft),value:Ae==null?void 0:Ae.question}))},il=(Ae,St,Ft)=>te.createElement(te.Fragment,null,["0","1","2","4"].includes(Ae==null?void 0:Ae.type)&&te.createElement(Oe,{id:Ae==null?void 0:Ae.id,value:`\u7B54\u6848\uFF1A${St||""}`,tagName:"p"}),!Ft&&te.createElement(Oe,{id:Ae==null?void 0:Ae.id,value:`\u96BE\u5EA6\uFF1A${(Ae==null?void 0:Ae.difficulty)||""}`,tagName:"p"}),(Ae==null?void 0:Ae.type)!=="7"&&te.createElement(Oe,{id:Ae==null?void 0:Ae.id,value:`\u89E3\u6790\uFF1A${(Ae==null?void 0:Ae.analyze)||""}`,tagName:"p"}),!Ft&&te.createElement(Oe,{id:Ae==null?void 0:Ae.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(Ae==null?void 0:Ae.knowledgePoint)||""}`,tagName:"p"})),Ds=(Ae,St,Ft,an)=>{const Rt=an!==void 0,In=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],zn=Rt&&!Ae.last&&!Ae.errorMsg?{marginBottom:10}:{},Rn=In.map(Mn=>({key:Mn,label:Mn,onClick:()=>Va("difficulty",Ft,Mn,an)}));return te.createElement("div",{className:Ee.liWrap,style:zn},["4"].includes(Ae==null?void 0:Ae.type)&&te.createElement("div",{className:Ee.li},te.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),te.createElement(Oe,{id:Ae==null?void 0:Ae.id,tagName:"div",className:`${Ee.edit} c-black`,onBlur:Mn=>Va("answer",Ft,[Mn],an),value:St})),!Rt&&te.createElement("div",{className:Ee.li},te.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),te.createElement("div",{className:"c-black"},te.createElement(tt.Z,{menu:{items:Rn}},te.createElement("span",{className:"c-light-primary"},Ae==null?void 0:Ae.difficulty,te.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(Ae==null?void 0:Ae.type)!=="7"&&te.createElement("div",{className:Ee.li},te.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),te.createElement(Oe,{id:Ae==null?void 0:Ae.id,tagName:"div",className:`${Ee.edit} c-grey-333`,onBlur:Mn=>Va("analyze",Ft,Mn,an),value:Ae==null?void 0:Ae.analyze})),!Rt&&te.createElement("div",{onKeyDown:xn,className:Ee.li},te.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),te.createElement(Oe,{id:Ae==null?void 0:Ae.id,tagName:"div",value:(Ae==null?void 0:Ae.knowledgePoint)||"",className:`${Ee.edit} c-grey-333`,onBlur:Mn=>Va("knowledgePoint",Ft,Xn(Go(Mn)),an)})))},So=Ae=>te.createElement(te.Fragment,null,typeof(Ae==null?void 0:Ae.errorMsg)=="string"&&!!(Ae!=null&&Ae.errorMsg)&&te.createElement("h5",{contentEditable:!1},te.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),te.createElement("div",null,Ae==null?void 0:Ae.errorMsg))),al=Ae=>te.createElement(te.Fragment,null,typeof(Ae==null?void 0:Ae.errorMsg)=="string"&&!!(Ae!=null&&Ae.errorMsg)&&te.createElement("h5",null,te.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),te.createElement("div",null,Ae==null?void 0:Ae.errorMsg))),Sl=(Ae,St,Ft,an)=>{let Rt="flex";return(Ir&&Xo!==an||ro&&!(Ft!=null&&Ft.errorMsg))&&(Rt="none"),te.createElement("div",{className:Ee.row,style:{display:Rt}},te.createElement("div",{className:Ee.leftLayout},jn||te.createElement(Vn,null,te.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ee.question},Ae))),te.createElement("div",{className:Ee.rightLayout},te.createElement(er,{className:Ft!=null&&Ft.errorMsg?Ee.error:""},St)))},ms=[{id:"0",type:"\u5355\u9009\u9898",element:(Ae,St,Ft)=>{var an,Rt;const In=Ft!==void 0;let zn=(an=Ae==null?void 0:Ae.answer)==null?void 0:an[0];const Rn=te.createElement(te.Fragment,null,Ms(Ae,St,Ft),(Rt=Ae==null?void 0:Ae.options)==null?void 0:Rt.map((Tn,Kn)=>te.createElement(Oe,{id:Ae==null?void 0:Ae.id,key:Kn,value:`${fs[Kn]}.${Tn}`,tagName:"p"})),il(Ae,zn,In),So(Ae));let Mn=In?Ae:di[St];const sn=Mn==null?void 0:Mn.options,Bn=te.createElement(te.Fragment,null,qs(Mn,St,Ft),sn==null?void 0:sn.map((Tn,Kn)=>{var Zr;return te.createElement("div",{key:Kn,className:Ee.option},te.createElement("aside",{className:((Zr=Mn==null?void 0:Mn.answer)==null?void 0:Zr[0])===fs[Kn]?Ee.active:"",onClick:()=>Va("answer",St,[fs[Kn]],Ft)},fs[Kn]),te.createElement(Oe,{id:Mn==null?void 0:Mn.id,tagName:"div",className:`${Ee.text}`,onBlur:li=>{sn[Kn]=li,Va("options",St,sn,Ft)},value:Tn}))}),Ds(Mn,"",St,Ft),al(Mn));return In?[Rn,Bn]:Sl(Rn,Bn,Mn,St)},deal:Ae=>{var St,Ft,an;Ae.score=Ae.score===void 0?2:Ae.score;let Rt=Xn((St=Ae==null?void 0:Ae.answer)==null?void 0:St[0]).toUpperCase();Ae.answer=Rt?[Rt]:[];let In=[];if(!(Ae!=null&&Ae.options))In.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{Ae.options=(Ft=Ae.options)==null?void 0:Ft.slice(0,8);const zn=Ae.options.map(Mn=>Mn==null?void 0:Mn.trim().replace(/^\s+|\s+$/g,""));new Set(zn).size!==zn.length&&In.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return Rt||In.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),Rt&&(fs.slice(0,((an=Ae==null?void 0:Ae.options)==null?void 0:an.length)||8).includes(Rt)||In.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")),Xn(Ae==null?void 0:Ae.question)||In.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Ae.errorMsg=In.join(`
|
|
|
`),Ae}},{id:"1",type:"\u591A\u9009\u9898",element:(Ae,St,Ft)=>{var an,Rt;const In=Ft!==void 0;let zn=(an=Ae==null?void 0:Ae.answer)==null?void 0:an[0];const Rn=te.createElement(te.Fragment,null,Ms(Ae,St,Ft),(Rt=Ae==null?void 0:Ae.options)==null?void 0:Rt.map((Tn,Kn)=>te.createElement(Oe,{id:Ae==null?void 0:Ae.id,key:Kn,value:`${fs[Kn]}.${Tn}`,tagName:"p"})),il(Ae,zn,In),So(Ae));let Mn=In?Ae:di[St];const sn=Mn==null?void 0:Mn.options,Bn=te.createElement(te.Fragment,null,qs(Mn,St,Ft),sn==null?void 0:sn.map((Tn,Kn)=>{var Zr,li;return te.createElement("div",{key:Kn,className:Ee.option},te.createElement("aside",{className:(li=(Zr=Mn==null?void 0:Mn.answer)==null?void 0:Zr[0])!=null&&li.includes(fs[Kn])?Ee.active:"",onClick:()=>{var Gi;let Oi=((Gi=Mn==null?void 0:Mn.answer)==null?void 0:Gi[0])||"";const fa=fs[Kn];Oi.includes(fa)?Oi=Oi.replace(new RegExp(fa,"g"),""):Oi+=fa,Oi=Oi.split("").sort().join(""),Va("answer",St,[Oi],Ft)}},fs[Kn]),te.createElement(Oe,{id:Mn==null?void 0:Mn.id,tagName:"div",className:`${Ee.text}`,onBlur:Gi=>{sn[Kn]=Gi,Va("options",St,sn,Ft)},value:Tn}))}),Ds(Mn,"",St,Ft),al(Mn));return In?[Rn,Bn]:Sl(Rn,Bn,Mn,St)},deal:Ae=>{var St,Ft,an;Ae.score=Ae.score===void 0?2:Ae.score;let Rt=Xn((St=Ae==null?void 0:Ae.answer)==null?void 0:St[0]).toUpperCase().split("").sort().join("");Ae.answer=Rt?[Rt]:[];let In=[];if(!(Ae!=null&&Ae.options))In.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{Ae.options=(Ft=Ae.options)==null?void 0:Ft.slice(0,8);const zn=Ae.options.map(Mn=>Mn==null?void 0:Mn.trim().replace(/^\s+|\s+$/g,""));new Set(zn).size!==zn.length&&In.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(Rt||In.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),Rt){const zn=fs.slice(0,((an=Ae==null?void 0:Ae.options)==null?void 0:an.length)||8);El(zn).includes(Rt)||In.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 Xn(Ae==null?void 0:Ae.question)||In.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Ae.errorMsg=In.join(`
|
|
|
`),Ae}},{id:"2",type:"\u5224\u65AD\u9898",element:(Ae,St,Ft)=>{var an,Rt;const In=Ft!==void 0;let zn=(an=Ae==null?void 0:Ae.answer)==null?void 0:an[0];const Rn=te.createElement(te.Fragment,null,Ms(Ae,St,Ft),il(Ae,zn,In),So(Ae));let Mn=In?Ae:di[St];const sn=["\u6B63\u786E","\u9519\u8BEF"];let Bn=((Rt=Mn==null?void 0:Mn.answer)==null?void 0:Rt[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 Tn=te.createElement(te.Fragment,null,qs(Mn,St,Ft),sn==null?void 0:sn.map((Kn,Zr)=>te.createElement("div",{key:Zr,className:Ee.option},te.createElement("aside",{style:{borderRadius:2},className:Bn===Kn?Ee.active:"",onClick:()=>Va("answer",St,[Kn],Ft)},Kn==="\u6B63\u786E"?"T":"F"),te.createElement("div",{style:{pointerEvents:"none"},className:`${Ee.text}`},Kn))),Ds(Mn,"",St,Ft),al(Mn));return In?[Rn,Tn]:Sl(Rn,Tn,Mn,St)},deal:Ae=>{var St;Ae.score=Ae.score===void 0?2:Ae.score;let Ft=Xn((St=Ae==null?void 0:Ae.answer)==null?void 0:St[0]);Ae.answer=Ft?[Ft]:[];let an=[];return Ft||an.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),Ft&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(Ft)&&an.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"),Xn(Ae==null?void 0:Ae.question)||an.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Ae.errorMsg=an.join(`
|
|
|
`),Ae}},{id:"3",type:"\u586B\u7A7A\u9898",element:(Ae,St,Ft)=>{var an,Rt;const In=Ft!==void 0,zn=te.createElement(te.Fragment,null,Ms(Ae,St,Ft),(an=Ae==null?void 0:Ae.answer)==null?void 0:an.map((sn,Bn)=>te.createElement(Oe,{id:Ae==null?void 0:Ae.id,key:Bn,tagName:"p",value:`\u7B54\u6848${Bn+1}\uFF1A${sn.text||""}`})),il(Ae,"",In),So(Ae));let Rn=In?Ae:di[St];const Mn=te.createElement(te.Fragment,null,qs(Rn,St,Ft),(Rt=Rn==null?void 0:Rn.answer)==null?void 0:Rt.map((sn,Bn)=>te.createElement("div",{key:Bn,className:Ee.option},te.createElement("aside",{className:Ee.fill},"\u586B\u7A7A\u9879",Bn+1),sn.model===1&&te.createElement(Oe,{id:Rn==null?void 0:Rn.id,tagName:"div",onBlur:Tn=>{Rn.answer[Bn].latex=Go(Tn),Va("answer",St,Rn.answer,Ft)},className:`${Ee.text}`,value:sn.latex}),sn.model===2&&te.createElement(Ht.Z,{value:sn.latex,onChange:Tn=>{Rn.answer[Bn].latex=Tn,Va("answer",St,Rn.answer,Ft)}}))),Ds(Rn,"",St,Ft),al(Rn));return In?[zn,Mn]:Sl(zn,Mn,Rn,St)},deal:Ae=>{var St;Ae.score=Ae.score===void 0?2:Ae.score;const Ft=(St=Ae.answer)==null?void 0:St.map(Rt=>{if(Object.prototype.toString.call(Rt)==="[object Object]")return Rt;Rt=Rt==null?void 0:Rt.trim();const In={model:1,text:Rt,latex:Rt};return Rt.startsWith("$$")&&Rt.endsWith("$$")||Rt.startsWith("`$$")&&Rt.endsWith("$$`")?(In.model=2,In.latex=Rt.slice(2,-2)):In.latex=Go(Rt),In});Ae.answer=Ft;let an=[];return Ft||an.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),Xn(Ae==null?void 0:Ae.question)||an.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Ae.errorMsg=an.join(`
|
|
|
`),Ae}},{id:"4",type:"\u7B80\u7B54\u9898",element:(Ae,St,Ft)=>{var an,Rt;const In=Ft!==void 0;let zn=(an=Ae==null?void 0:Ae.answer)==null?void 0:an[0];const Rn=te.createElement(te.Fragment,null,Ms(Ae,St,Ft),il(Ae,zn,In),So(Ae));let Mn=In?Ae:di[St];const sn=te.createElement(te.Fragment,null,qs(Mn,St,Ft),Ds(Mn,(Rt=Mn==null?void 0:Mn.answer)==null?void 0:Rt[0],St,Ft),al(Mn));return In?[Rn,sn]:Sl(Rn,sn,Mn,St)},deal:Ae=>{Ae.score=Ae.score===void 0?5:Ae.score;let St=[];return Xn(Ae==null?void 0:Ae.question)||St.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Ae.errorMsg=St.join(`
|
|
|
`),Ae}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(Ae,St)=>{var Ft,an;const Rt=di[St],In=ho.slice(0,4).map(zn=>({key:zn,label:zn,onClick:()=>Va("platform",St,zn)}));return te.createElement("div",{className:Ee.row,style:{display:ro?Rt!=null&&Rt.errorMsg?"flex":"none":"flex"}},te.createElement("div",{className:Ee.leftLayout},te.createElement(Vn,null,te.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ee.question},Ms(Ae,St),te.createElement(Oe,{id:Ae==null?void 0:Ae.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(Ae==null?void 0:Ae.description)||""}`,tagName:"p"}),il(Ae),te.createElement(Oe,{id:Ae==null?void 0:Ae.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${Ae==null?void 0:Ae.timeLimit}`,tagName:"p"}),te.createElement(Oe,{id:Ae==null?void 0:Ae.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(Ae==null?void 0:Ae.platform)||""}`,tagName:"p"}),te.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),te.createElement("h4",null),te.createElement(Oe,{id:Ae==null?void 0:Ae.id,value:(Ae==null?void 0:Ae.code)||"",tagName:"div"}),(Ft=Ae==null?void 0:Ae.inputs)==null?void 0:Ft.map((zn,Rn)=>{var Mn;return te.createElement(te.Fragment,{key:Rn},te.createElement("h4",null),te.createElement(Oe,{id:Ae==null?void 0:Ae.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Rn+1})\u8F93\u5165\uFF1A${zn||""}`,tagName:"div"}),te.createElement(Oe,{id:Ae==null?void 0:Ae.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Rn+1})\u8F93\u51FA\uFF1A${((Mn=Ae==null?void 0:Ae.outputs)==null?void 0:Mn[Rn])||""}`,tagName:"div"}))}),So(Ae)))),te.createElement("div",{className:Ee.rightLayout},te.createElement(er,{className:Rt!=null&&Rt.errorMsg?Ee.error:""},qs(Rt,St),te.createElement("div",{className:Ee.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},te.createElement("div",{className:Ee.li},te.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),te.createElement(Oe,{className:Ee.edit,id:Rt==null?void 0:Rt.id,value:Rt==null?void 0:Rt.description,tagName:"div",onBlur:zn=>Va("description",St,zn)}))),Ds(Rt,"",St),te.createElement("div",{className:Ee.liWrap},te.createElement("div",{className:Ee.li},te.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),te.createElement(Oe,{className:Ee.edit,id:Rt==null?void 0:Rt.id,value:Rt==null?void 0:Rt.timeLimit,tagName:"div",onBlur:zn=>Va("timeLimit",St,Go(zn))})),te.createElement("div",{className:Ee.li},te.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),te.createElement("div",{className:"c-black"},te.createElement(tt.Z,{menu:{items:In}},te.createElement("span",{className:"c-light-primary"},Rt==null?void 0:Rt.platform,te.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),te.createElement("div",{className:Ee.li,style:{flexDirection:"column",alignItems:"start"}},te.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),te.createElement(Oe,{className:Ee.edit,id:Rt==null?void 0:Rt.id,value:(Rt==null?void 0:Rt.code)||"",onBlur:zn=>Va("code",St,Go(zn)),tagName:"div"}))),(an=Rt==null?void 0:Rt.inputs)==null?void 0:an.map((zn,Rn)=>{var Mn;return te.createElement("div",{className:Ee.liWrap,key:Rn},te.createElement("div",{className:Ee.li},te.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Rn+1,")\u8F93\u5165\uFF1A"),te.createElement(Oe,{id:Rt==null?void 0:Rt.id,value:zn||"",className:Ee.edit,onBlur:sn=>{const Bn=[...(Rt==null?void 0:Rt.inputs)||[]];Bn[Rn]=Go(sn),Va("inputs",St,Bn)},tagName:"div"})),te.createElement("div",{className:Ee.li},te.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Rn+1,")\u8F93\u51FA\uFF1A"),te.createElement(Oe,{id:Rt==null?void 0:Rt.id,value:((Mn=Rt==null?void 0:Rt.outputs)==null?void 0:Mn[Rn])||"",className:Ee.edit,onBlur:sn=>{const Bn=[...(Rt==null?void 0:Rt.outputs)||[]];Bn[Rn]=Go(sn),Va("outputs",St,Bn)},tagName:"div"})))}),al(Rt))))},deal:Ae=>{var St,Ft,an;Ae.score=Ae.score===void 0?10:Ae.score,Ae.code=(St=Ae.code)==null?void 0:St.trim();let Rt=[];Xn(Ae==null?void 0:Ae.question)?((Ft=Ae==null?void 0:Ae.question)==null?void 0:Ft.length)>60&&Rt.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):Rt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Xn(Ae==null?void 0:Ae.description)||Rt.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const In=Xn(String((Ae==null?void 0:Ae.timeLimit)||""));if(Ae.timeLimit=In,(!In||In&&!["3","4","5","6","7","8","9","10"].includes(In))&&Rt.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),Ae.platform=Xn(Ae==null?void 0:Ae.platform),Ae!=null&&Ae.platform){const zn=["c","c++","java","python"],Rn=(an=Ae==null?void 0:Ae.platform)==null?void 0:an.toLowerCase(),Mn=zn.findIndex(sn=>sn===Rn);Mn>-1?Ae.platform=ho[Mn]:Rt.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else Rt.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(Ae!=null&&Ae.inputs)||!(Ae!=null&&Ae.outputs))Ae.inputs=[],Ae.outputs=[],Rt.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 zn=Math.min(Ae.inputs.length,Ae.outputs.length);Ae.inputs=Ae.inputs.slice(0,zn),Ae.outputs=Ae.outputs.slice(0,zn),Ae.outputs.some(Rn=>!Xn(Rn))&&Rt.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return Ae.errorMsg=Rt.join(`
|
|
|
`),Ae}},{id:"7",type:"\u7EC4\u5408\u9898",element:(Ae,St)=>{var Ft,an;const Rt=di[St];return te.createElement("div",{className:Ee.row,style:{display:ro?Rt!=null&&Rt.errorMsg?"flex":"none":"flex"}},te.createElement("div",{className:Ee.leftLayout},te.createElement(Vn,null,te.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ee.question},Ms(Ae,St),il(Ae),(Ft=Ae==null?void 0:Ae.questions)==null?void 0:Ft.map((In,zn)=>{var Rn;const Mn=(Rn=ms.find(sn=>sn.id===(In==null?void 0:In.type)))==null?void 0:Rn.element;return te.createElement(te.Fragment,{key:`left-${Ae.id}-${zn}`},Mn(In,St,zn)[0])}),So(Ae),te.createElement("p",{contentEditable:!0},"}}")))),te.createElement("div",{className:Ee.rightLayout},te.createElement(er,{className:Rt!=null&&Rt.errorMsg?Ee.error:""},qs(Rt,St),Ds(Rt,"",St),(an=Rt==null?void 0:Rt.questions)==null?void 0:an.map((In,zn)=>{var Rn;const Mn=(Rn=ms.find(sn=>sn.id===(In==null?void 0:In.type)))==null?void 0:Rn.element;return te.createElement(te.Fragment,{key:`right-${Rt.id}-${zn}`},Mn(In,St,zn)[1])}),al(Rt))))},deal:Ae=>{var St,Ft,an,Rt,In;const zn=ps,Rn=[...ms],Mn=Rn.findIndex(Kn=>Kn.id==="0"),sn=Rn.findIndex(Kn=>Kn.id==="1");if(Mn!==-1){const Kn=Rn[Mn].deal;Rn[Mn].deal=Zr=>{const li=Kn(Zr);return li.errorMsg&&(li.errorMsg=li.errorMsg.split(`
|
|
|
`).filter(Gi=>Gi!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
|
|
|
`)),li}}if(sn!==-1){const Kn=Rn[sn].deal;Rn[sn].deal=Zr=>{const li=Kn(Zr);return li.errorMsg&&(li.errorMsg=li.errorMsg.split(`
|
|
|
`).filter(Gi=>Gi!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
|
|
|
`)),li}}Ae.questions=(St=Ae.questions)!=null&&St.length?ps(Ae.questions.slice(0,20)):[],Ae.questions=(Ft=Ae.questions)==null?void 0:Ft.map((Kn,Zr)=>{var li;if(Kn.type==="0"||Kn.type==="1"){const Gi=(li=Kn.options)==null?void 0:li.map(Oi=>Oi==null?void 0:Oi.trim().replace(/^\s+|\s+$/g,""));Gi&&new Set(Gi).size!==Gi.length&&(Kn.errorMsg=(Kn.errorMsg?Kn.errorMsg+`
|
|
|
`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return _n(wn({},Kn),{last:Zr===Ae.questions.length-1})});const Bn=(an=Ae.questions)==null?void 0:an.reduce((Kn,Zr)=>{const li=parseFloat(Zr.score);return isNaN(li)?Kn:Kn+li},0);Ae.score=Bn;let Tn=[];return(Rt=Ae.questions)!=null&&Rt.length?Ae.errorMsg=((In=Ae.questions)==null?void 0:In.findIndex(Kn=>!!Kn.errorMsg))>-1:Tn.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),Xn(Ae==null?void 0:Ae.question)||Tn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Tn.length&&(Ae.errorMsg=Tn.join(`
|
|
|
`)),Ae}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(Ae,St)=>{var Ft,an;const Rt=di[St],In=ho.map(zn=>({key:zn,label:zn,onClick:()=>Va("platform",St,zn)}));return te.createElement("div",{className:Ee.row,style:{display:ro?Rt!=null&&Rt.errorMsg?"flex":"none":"flex"}},te.createElement("div",{className:Ee.leftLayout},te.createElement(Vn,null,te.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ee.question},Ms(Ae,St),il(Ae),te.createElement(Oe,{id:Ae==null?void 0:Ae.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${Ae==null?void 0:Ae.timeLimit}`,tagName:"p"}),te.createElement(Oe,{id:Ae==null?void 0:Ae.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(Ae==null?void 0:Ae.platform)||""}`,tagName:"p"}),te.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),te.createElement("h4",null),te.createElement(Oe,{id:Ae==null?void 0:Ae.id,value:(Ae==null?void 0:Ae.code)||"",tagName:"div"}),te.createElement("h4",null),te.createElement(Oe,{id:Ae==null?void 0:Ae.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(Ae==null?void 0:Ae.input)||""}`,tagName:"p"}),te.createElement(Oe,{id:Ae==null?void 0:Ae.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(Ae==null?void 0:Ae.output)||""}`,tagName:"p"}),(Ft=Ae==null?void 0:Ae.answer)==null?void 0:Ft.map((zn,Rn)=>te.createElement(Oe,{key:Rn,id:Ae==null?void 0:Ae.id,value:`\u7B54\u6848${Rn+1}\uFF1A${zn||""}`,tagName:"p"})),So(Ae)))),te.createElement("div",{className:Ee.rightLayout},te.createElement(er,{className:Rt!=null&&Rt.errorMsg?Ee.error:""},qs(Rt,St),Ds(Rt,"",St),te.createElement("div",{className:Ee.liWrap},te.createElement("div",{className:Ee.li,onKeyDown:xn},te.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),te.createElement(Oe,{className:Ee.edit,id:Rt==null?void 0:Rt.id,value:Rt==null?void 0:Rt.timeLimit,tagName:"div",onBlur:zn=>Va("timeLimit",St,Go(zn))})),te.createElement("div",{className:Ee.li},te.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),te.createElement("div",{className:"c-black"},te.createElement(tt.Z,{menu:{items:In}},te.createElement("span",{className:"c-light-primary"},Rt==null?void 0:Rt.platform,te.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),te.createElement("div",{className:Ee.li,style:{flexDirection:"column",alignItems:"start"}},te.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),te.createElement(Oe,{className:Ee.edit,id:Rt==null?void 0:Rt.id,value:(Rt==null?void 0:Rt.code)||"",onBlur:zn=>Va("code",St,Go(zn)),tagName:"div"})),te.createElement("div",{className:Ee.li},te.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),te.createElement(Oe,{className:Ee.edit,id:Rt==null?void 0:Rt.id,value:(Rt==null?void 0:Rt.input)||"",onBlur:zn=>Va("input",St,Go(zn)),tagName:"div"})),te.createElement("div",{className:Ee.li},te.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),te.createElement(Oe,{className:Ee.edit,id:Rt==null?void 0:Rt.id,value:(Rt==null?void 0:Rt.output)||"",onBlur:zn=>Va("output",St,Go(zn)),tagName:"div"}))),te.createElement("div",{className:Ee.liWrap},(an=Rt==null?void 0:Rt.answer)==null?void 0:an.map((zn,Rn)=>te.createElement("div",{className:Ee.li,key:Rn},te.createElement("aside",null,"\u7B54\u6848",Rn+1,"\uFF1A"),te.createElement(Oe,{id:Rt==null?void 0:Rt.id,value:zn||"",className:Ee.edit,onBlur:Mn=>{const sn=[...(Rt==null?void 0:Rt.answer)||[]];sn[Rn]=Go(Mn),Va("output",St,sn)},tagName:"div"})))),al(Rt))))},deal:Ae=>{var St,Ft,an,Rt,In,zn,Rn,Mn;Ae.score=Ae.score===void 0?10:Ae.score,Ae.code=(an=(Ft=(St=Ae.code)==null?void 0:St.trim())==null?void 0:Ft.replace(/@_@/g,"@\u2581@"))==null?void 0:an.replace(/@__@/g,"@\u2581\u2581@");let sn=[];if(Xn(Ae==null?void 0:Ae.question)||sn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Xn(Ae==null?void 0:Ae.code)?/@▁@|@▁▁@/.test(Ae==null?void 0:Ae.code)?(Rt=Ae==null?void 0:Ae.answer)!=null&&Rt.length&&((In=Ae==null?void 0:Ae.code.match(/@▁@|@▁▁@/g))==null?void 0:In.length)!==((zn=Ae==null?void 0:Ae.answer)==null?void 0:zn.length)&&sn.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):sn.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"):sn.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),Ae!=null&&Ae.answer?(Rn=Ae.answer)!=null&&Rn.some(Tn=>!Xn(Tn))&&sn.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):sn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),Ae.platform=Xn(Ae==null?void 0:Ae.platform),Ae!=null&&Ae.platform){const Tn=["c","c++","java","python","javascript","ruby"],Kn=(Mn=Ae==null?void 0:Ae.platform)==null?void 0:Mn.toLowerCase(),Zr=Tn.findIndex(li=>li===Kn);Zr>-1?Ae.platform=ho[Zr]:sn.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else sn.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");Xn(Ae==null?void 0:Ae.output)||sn.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const Bn=Xn(String((Ae==null?void 0:Ae.timeLimit)||""));return Ae.timeLimit=Bn,(!Bn||Bn&&!["3","4","5","6","7","8","9","10"].includes(Bn))&&sn.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),Ae.errorMsg=sn.join(`
|
|
|
`),Ae}}],Zs=()=>te.createElement(te.Fragment,null,_i.filter(Ae=>{var St;return!!((St=ms.find(an=>an.id===(Ae==null?void 0:Ae.type)))==null?void 0:St.element)}).map((Ae,St)=>{var Ft;const an=(Ft=ms.find(Rt=>Rt.id===(Ae==null?void 0:Ae.type)))==null?void 0:Ft.element;return te.createElement(te.Fragment,{key:Ae.id},an(Ae,St))})),Ks=()=>on(void 0,null,function*(){const Ae=di.filter(St=>!St.checked);if(Ti!==3||!Ae.length){Re.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if(oi){Rs(!0),yield oi(di),Rs(!1);return}io.setFieldsValue({sub_discipline_id:yn}),Pr(!0)}),sl=(Ae,St=[])=>{if(typeof Ae=="string")return Ae.trim();if(Array.isArray(Ae))return Ae.map(Ft=>sl(Ft,St));if(typeof Ae=="object"&&Ae!==null){const Ft={};for(const an in Ae)Ae.hasOwnProperty(an)&&(St.includes(an)?Ft[an]=Ae[an]:Ft[an]=sl(Ae[an],St));return Ft}return Ae},vs=Ae=>on(void 0,null,function*(){const St=ps(sl(Ae));jr(St),Lo(JSON.parse(JSON.stringify(St))),Ni(3),Tr(!1),Hi(!1)});(0,te.useEffect)(()=>{if(mi)return;const Ae=()=>{Wr(St=>St>=90?(clearInterval(br.current),90):St+1)};return br.current=setInterval(Ae,5e4/90),()=>clearInterval(br.current)},[mi]);const gs=(Ae,St)=>{Fo(!1);const Ft=new FormData;Object.keys(St).forEach(Rt=>{Ft.append(Rt,St[Rt])});const an=new window.XMLHttpRequest;an.withCredentials=!0,an.addEventListener("load",function(Rt){return on(this,null,function*(){var In,zn;try{const Rn=JSON.parse((In=Rt==null?void 0:Rt.target)==null?void 0:In.response);if(Fo(!0),Wr(100),yield new Promise(Mn=>setTimeout(()=>Mn(),780)),Rn.status===0){if(!((zn=Rn==null?void 0:Rn.data)!=null&&zn.length)){Re.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),Tr(!1);return}vs((Rn==null?void 0:Rn.data)||[])}else Tr(!1),Re.ZP.warning(Rn==null?void 0:Rn.message)}catch(Rn){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",Rn)}})}),an.addEventListener("error",()=>{Tr(!1)}),an.open("POST",`${et.Z.API_SERVER}${Ae}`),an.send(Ft)},_e=Ae=>on(void 0,null,function*(){const St=Ae.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf(St)==-1?(Re.ZP.error(`${Ae.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()):(Tr(!0),Ta("\u5904\u7406\u4E2D"),gs("/api/intelligent_imports/import.json",{file:Ae}),Promise.reject())});let nt=[{key:1,label:te.createElement(ve.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:_e},te.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,Ot.Ny)()||(0,Ot.$O)())&&nt.push({key:2,label:te.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{Cl.current.onClick()}});const pn=[di.length,(Si=di.filter(Ae=>!!(Ae!=null&&Ae.errorMsg)))==null?void 0:Si.length];return te.createElement("div",{className:ct()(Ee.intelligentBox,"intelligent-body-curb",be),style:_n(wn({},ge),{width:ue}),ref:Xi},te.createElement("div",{className:Ee.underpin},te.createElement("b",{style:Or}),te.createElement("b",{style:Or})),te.createElement("div",{className:Ee.head,style:{top:An}},te.createElement("div",{className:Ee.leftLayout},Dr||te.createElement(te.Fragment,null,te.createElement(we.Z,{align:"middle"},te.createElement("div",{className:Ee.title},"\u8BD5\u9898\u7F16\u8F91"),!nn&&te.createElement(Qe.op,{href:`${et.Z.API_SERVER}/api/intelligent_imports/download_template`,download:!0,type:"link"},"\u4E0B\u8F7DWord\u6A21\u7248",te.createElement("i",{className:"iconfont icon-xiazai4 font14 ml10"})),te.createElement(Qe.op,{onClick:Ll,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!nn&&te.createElement(tt.Z,{overlayClassName:Ee.menu,menu:{items:nt}},te.createElement(Qe.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!Ca&&Ca),te.createElement("div",{className:Ee.tip},te.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"))),te.createElement(we.Z,{className:Ee.rightLayout,style:{alignItems:"start"}},ln||te.createElement(te.Fragment,null,te.createElement("div",{className:Ee.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(Ti)&&te.createElement(at.default,{className:"ml20",checked:ro,onChange:Ae=>Hi(Ae.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(Ti)&&te.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",te.createElement("span",{className:"ml5 mr5 c-light-primary"},pn[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",te.createElement("span",{className:"ml5 mr5 c-red-e53"},pn[1]),"\u9898")),Ir&&te.createElement("div",{className:Ee.tabs},_i==null?void 0:_i.map((Ae,St)=>te.createElement("div",{onClick:()=>{Ja(St)},className:Xo===St&&Ee.active,key:St},"\u65B0\u9898",St+1)))),te.createElement("div",{className:Ee.centerBox},te.createElement("img",{className:"mb10",src:ht,width:56}),!wi&&te.createElement(Qe.op,{onClick:Ro},"\u8BC6\u522B"))),[1,2].includes(Ti)&&qo(),[3].includes(Ti)&&Zs(),te.createElement("div",{className:"pb10"}),te.createElement("div",{className:Ee.buttonFixed},te.createElement("div",{className:Ee.buttonWrap},te.createElement(kt.ZP,{size:"middle",className:`${Ee.button} mr20`,onClick:Xe},"\u53D6\u6D88"),te.createElement(kt.ZP,{size:"middle",type:"primary",loading:Na,className:`${Ee.button}`,onClick:Ks},Yn))),te.createElement(it.default,{centered:!0,closable:!1,destroyOnClose:!0,open:Da,title:null,footer:null,width:320,afterClose:()=>Wr(0)},te.createElement(we.Z,{align:"middle",style:{flexDirection:"column"}},te.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},qr,te.createElement("span",{className:Ee.dotLoading},te.createElement("span",null,"."),te.createElement("span",null,"."),te.createElement("span",null,"."))),te.createElement(bt.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:Fi}),te.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",te.createElement("span",{className:"ml5 c-light-primary"},Fi,"%")))),te.createElement(it.default,{centered:!0,open:zi,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:Ko,width:480,onCancel:()=>Pr(!1),onOk:()=>io.submit(),afterClose:()=>{io.resetFields()}},te.createElement(Ve.default,{style:{maxHeight:550},form:io,layout:"horizontal",colon:!1,size:"large",onFinish:Ae=>on(void 0,null,function*(){var St,Ft,an,Rt,In;const zn=di.filter(sn=>!sn.checked&&!sn.errorMsg);Zo(!0);const Rn=()=>on(void 0,null,function*(){var sn,Bn;const Tn=yield(0,yt.ZP)("/api/intelligent_imports/save.json",{method:"post",body:_n(wn(wn({},Zt),Ae),{list:zn,mode:Dn})});Tn.status===0&&(ur&&((sn=Tn==null?void 0:Tn.data)!=null&&sn.success)&&window.location.pathname==="/problemset"&&(Gt.Z.publish("refresh-item-bank",Ae.group_id),yield new Promise(Kn=>setTimeout(()=>Kn(),1500))),Re.ZP.success(`\u6210\u529F\u5BFC\u5165${(Bn=Tn==null?void 0:Tn.data)==null?void 0:Bn.success}\u9053\u8BD5\u9898`,3),_t(Tn),Pr(!1)),Zo(!1)});if(Dn!==1){yield Rn();return}const Mn=yield(0,yt.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:di,mode:Dn}});if(Mn.status===0){if(!((St=Mn==null?void 0:Mn.data)!=null&&St.error_size)){yield Rn();return}it.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{Zo(!1)},title:"\u63D0\u793A",content:te.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",te.createElement("span",{className:"c-light-primary ml5 mr5"},(Ft=Mn==null?void 0:Mn.data)==null?void 0:Ft.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",te.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(an=Mn==null?void 0:Mn.data)==null?void 0:an.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",te.createElement("span",{className:"ml5 mr5"},(In=(Rt=Mn==null?void 0:Mn.data)==null?void 0:Rt.index)==null?void 0:In.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:Rn})}})},te.createElement("div",{className:"c-grey-999 mb20"},"\u63D0\u793A\uFF1A\u8BC6\u522B\u6709\u8BEF\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u5BFC\u5165"),te.createElement(Ve.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"}]},te.createElement($e.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",fieldNames:{label:"name",value:"id",children:"sub_disciplines"},options:yo})),Dn===1&&te.createElement(Ve.default.Item,{label:te.createElement(we.Z,{align:"middle",style:{justifyContent:"space-between"}},te.createElement("span",null,"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55"),te.createElement("div",{onClick:()=>Wa(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},te.createElement("img",{className:"mr5 primary-hover",src:Xt}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"group_id",labelCol:{span:24},wrapperCol:{span:24}},te.createElement(zt.Z,{key:bo})))),te.createElement(it.default,{centered:!0,open:ta,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:fo,onCancel:()=>Wa(!1),onOk:()=>lo.submit(),afterClose:()=>{lo.resetFields()}},te.createElement(Ve.default,{style:{maxHeight:550},form:lo,layout:"horizontal",colon:!1,size:"large",onFinish:Ae=>on(void 0,null,function*(){var St;ka(!0),(yield(0,yt.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:Ae.name,parent_id:(St=Ae==null?void 0:Ae.parent_id)==null?void 0:St[0]}})).status===0?(rs(bo+1),setTimeout(()=>{Re.ZP.success("\u64CD\u4F5C\u6210\u529F"),Wa(!1),ka(!1)},1e3)):ka(!1)})},te.createElement(Ve.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"}]},te.createElement(dt.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"})),te.createElement(Ve.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},te.createElement(zt.Z,null)))),te.createElement(un.Z,{onSave:Ae=>{Tr(!0),Ta("\u5904\u7406\u4E2D"),gs("/api/intelligent_imports/import.json",{html:Ae})},ref:Cl}))},ce=ft;var fe=Me},35713:function(dn,vn,he){"use strict";var te=he(67294),Ee=he(71736),lt=he(84279),ct=he(36527),Ve=he(14446),Re=he(67294);const it=(0,te.forwardRef)(({callback:ke,width:we,onChange:at,disabled:tt,readOnly:ve,type:kt="",value:bt="",style:$e={}},dt)=>{const Qe=(0,te.useRef)(),et=(0,te.useRef)(),[ft,Je]=(0,te.useState)(0),[ot,ht]=(0,te.useState)(0),[yt,zt]=(0,te.useState)(!1),Xt=()=>{var Ye=document.createElement("div");Ye.innerHTML=Qe.current.getValue();var pt=Ye.innerText;return ke&&ke(pt),pt};(0,te.useImperativeHandle)(dt,()=>({getData:Xt}));const Qt=Ye=>{Ye.preventDefault();const pt=Ye.clientX-ft,qe=Ye.clientY-ot;document.body.onmousemove=ut=>{let Oe=ut.clientX-pt,Ot=ut.clientY-qe;const Gt=document.getElementsByClassName("markdown-popup-form")[0],un=window.innerWidth-Gt.offsetWidth,Ge=window.innerHeight-Gt.offsetHeight;Oe=Math.max(0,Math.min(Oe,un)),Ot=Math.max(0,Math.min(Ot,Ge)),Ht(ut.clientX,ut.clientY,pt,qe)&&(Je(Oe),ht(Ot))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ht=(Ye,pt,qe,ut)=>{const Oe=document.body.clientHeight,Ot=document.body.clientWidth;return Ye<20&&qe>Ye||Ye>Ot-20&&qe<Ye||pt<20&&ut>pt||pt>Oe-20&&ut<pt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,te.useEffect)(()=>{yt&&setTimeout(()=>{const Ye=document.getElementsByClassName("markdown-popup-form")[0],pt=window.innerWidth/2-Ye.offsetWidth/2,qe=window.innerHeight/2-Ye.offsetHeight/2;Je(pt),ht(qe)},0)},[yt]);const wt=()=>{tt||ve||zt(!0)};return Re.createElement("div",{style:$e},Re.createElement("div",{style:{width:we||"100%",position:"relative"},className:`${Ee.Z.mathFillWrap} ${tt||ve?"cursorDefault":""}`,onClick:()=>wt()},Re.createElement("math-field",{disabled:tt,locale:"zh_cn",class:`${Ee.Z.mathField} ${kt}`,readOnly:ve,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:Qe,style:{width:"100%",fontSize:bt?18:14},value:bt||""})),Re.createElement(Ve.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:ft,top:ot},title:Re.createElement("div",{style:{cursor:"move"},onMouseDown:Qt},"\u8F93\u5165\u516C\u5F0F"),open:yt,onOk:()=>{const Ye=et.current.getData();Qe.current.setValue(Ye),at(Ye),zt(!1)},onCancel:()=>{zt(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Re.createElement(ct.Z,{value:bt,ref:et,onChange:at,showSaveButton:!1})))});vn.Z=it},36527:function(dn,vn,he){"use strict";var te=he(67294),Ee=he(71230),lt=he(15746),ct=he(66368),Ve=he(71577),Re=he(35598),it=he(71736),ke=he(84279),we=he(67294);const at=(0,te.forwardRef)(({callback:tt,showSaveButton:ve,value:kt=""},bt)=>{const $e=(0,te.useRef)(),dt=[{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 "}]}]}],Qe=[{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}`}]}]}],et=ot=>{$e.current.setValue($e.current.getValue()+" "+ot.value+" ")},ft=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:we.createElement(Ee.Z,{className:it.Z.lists,gutter:[10,10]},dt.map((ot,ht)=>we.createElement(lt.Z,{flex:"110px",className:it.Z.item},we.createElement("div",null,we.createElement(Re.Z,{value:`$$${ot.value}$$`}),ot.name),we.createElement("div",{className:it.Z.children},ot.children.map((yt,zt)=>we.createElement("div",{key:zt},we.createElement("h1",null,yt.name),we.createElement(Ee.Z,{gutter:[10,10]},yt.data.map((Xt,Qt)=>we.createElement(lt.Z,{key:Qt,onClick:()=>et(Xt),className:it.Z.diamond},we.createElement(Re.Z,{value:"`$$"+Xt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:we.createElement(Ee.Z,{className:it.Z.lists,gutter:[10,10]},Qe.map((ot,ht)=>we.createElement(lt.Z,{flex:"110px",className:it.Z.item},we.createElement("div",null,we.createElement(Re.Z,{value:"`$$"+ot.value+"$$`"}),ot.name),we.createElement("div",{className:it.Z.children},ot.children.map((yt,zt)=>we.createElement("div",{key:zt},yt.name&&we.createElement("h1",null,yt.name),we.createElement(Ee.Z,{gutter:[10,10]},yt.data.map((Xt,Qt)=>we.createElement(lt.Z,{key:Qt,onClick:()=>et(Xt),className:it.Z.diamond},we.createElement(Re.Z,{value:"`$$"+Xt.value+"$$`"}))))))))))}],Je=()=>{var ot=document.createElement("div");ot.innerHTML=$e.current.getValue();var ht=ot.innerText;return tt&&tt(ht),ht};return(0,te.useImperativeHandle)(bt,()=>({getData:Je})),we.createElement("div",{className:it.Z.mathWrap},we.createElement(ct.default,{defaultActiveKey:"1",items:ft}),we.createElement("math-field",{locale:"zh_cn",className:it.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:$e,style:{width:800,marginTop:30,fontSize:18}},kt||""),ve&&we.createElement("div",{className:it.Z.button},we.createElement(Ve.ZP,{size:"large",onClick:Je,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});vn.Z=at},41188:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return ve}});var te=he(67294),Ee=he(22150),lt=he(14446),ct=he(69677),Ve=he(55304),Re=he(33170),it={publicQuest:"publicQuest___iYvzo",publicQuestContent:"publicQuestContent___vgbKh",public_tips:"public_tips___UX0Dn",concat:"concat___wOfND"},ke=he(99640),we=he(67294),at=(kt,bt,$e)=>new Promise((dt,Qe)=>{var et=ot=>{try{Je($e.next(ot))}catch(ht){Qe(ht)}},ft=ot=>{try{Je($e.throw(ot))}catch(ht){Qe(ht)}},Je=ot=>ot.done?dt(ot.value):Promise.resolve(ot.value).then(et,ft);Je(($e=$e.apply(kt,bt)).next())}),ve=({type:kt="subject",open:bt,onCancel:$e,onOkClick:dt,subDisciplineId:Qe})=>{const[et]=Ee.default.useForm(),[ft,Je]=(0,te.useState)([]),[ot,ht]=(0,te.useState)(!1);(0,te.useEffect)(()=>{},[]);const yt=()=>at(void 0,null,function*(){if(kt){const zt=yield(0,Re.ZP)("/api/disciplines.json",{method:"get",params:{source:kt}});Je(zt.disciplines||[])}});return we.createElement(lt.default,{title:we.createElement("div",{style:{fontWeight:"bold"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"),open:bt,width:558,centered:!0,className:it.publicQuest,onCancel:()=>{$e(),et.resetFields()},onOk:()=>{et.validateFields().then(zt=>at(void 0,null,function*(){const Xt=yield(0,Re.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:zt==null?void 0:zt.name,sub_discipline_id:Qe}});(Xt==null?void 0:Xt.status)===0&&dt({name:zt==null?void 0:zt.name,id:Xt==null?void 0:Xt.tag_discipline_id,public:!1,type:"personal"}),et.resetFields(),$e()}))}},we.createElement("div",{className:it.publicQuestContent},we.createElement("div",{className:it.public_tips},we.createElement(Ve.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"),we.createElement(Ee.default,{labelAlign:"left",form:et,colon:!1},we.createElement(Ee.default.Item,{label:"\u77E5\u8BC6\u70B9\u540D\u79F0",name:"name",rules:[{required:!0}]},we.createElement(ct.default,{showCount:!0,maxLength:20,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"}))),we.createElement(ke.Z,{open:ot,onCancel:()=>{ht(!1)}})))}},3830:function(dn,vn,he){"use strict";he.d(vn,{Q:function(){return we},Z:function(){return tt}});var te=he(67294),Ee={flex_box_center:"flex_box_center___VcCAZ",flex_space_between:"flex_space_between___I3jjO",flex_box_vertical_center:"flex_box_vertical_center___Rm_54",flex_box_center_end:"flex_box_center_end___nTsdc",flex_box_column:"flex_box_column___UVpzN",tags:"tags___kRRoe",text:"text___IyyEa",tagWrap:"tagWrap___v63mB",tag:"tag___X7wE6",c:"c___mZMPq",cpp:"cpp___eaTie",java:"java___gL98T",python:"python___eNRkk",edit:"edit___tbVu0"},lt=he(94184),ct=he.n(lt),Ve=he(14446),Re=he(2453),it=he(84567),ke=(ve,kt,bt)=>new Promise(($e,dt)=>{var Qe=Je=>{try{ft(bt.next(Je))}catch(ot){dt(ot)}},et=Je=>{try{ft(bt.throw(Je))}catch(ot){dt(ot)}},ft=Je=>Je.done?$e(Je.value):Promise.resolve(Je.value).then(Qe,et);ft((bt=bt.apply(ve,kt)).next())});const we=({title:ve="\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00",dataSource:kt=[],visible:bt,setVisible:$e,tip:dt,onOk:Qe})=>{const[et,ft]=(0,te.useState)([]),[Je,ot]=(0,te.useState)(!1);return(0,te.useEffect)(()=>{bt&&ft(kt)},[bt]),te.createElement(Ve.default,{centered:!0,open:bt,title:ve,confirmLoading:Je,width:564,onOk:()=>ke(void 0,null,function*(){if(!et.length){Re.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}ot(!0),yield Qe(et),ot(!1)}),onCancel:()=>$e(!1)},!!dt&&te.createElement("div",{className:"c-grey-666 font16 mb10"},dt),te.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},te.createElement(it.default.Group,{value:et,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:ht=>{ft(ht)}})))};var tt=({title:ve="\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00",className:kt,style:bt={},onEdit:$e,dataSource:dt=[]})=>{const Qe={C:te.createElement("div",{className:Ee.c},"C"),"C++":te.createElement("div",{className:Ee.cpp},"C++"),Java:te.createElement("div",{className:Ee.java},"Java"),Python:te.createElement("div",{className:Ee.python},"Python")};return te.createElement("div",{className:ct()(Ee.tags,kt),style:bt},!!ve&&te.createElement("div",{className:Ee.text},ve),te.createElement("div",{className:Ee.tagWrap},dt==null?void 0:dt.map(et=>te.createElement(te.Fragment,{key:et},Qe[et]))),!!$e&&te.createElement("div",{onClick:$e,className:`iconfont icon-bianji_Hover ${Ee.edit}`}))}},15312:function(dn,vn,he){"use strict";he.d(vn,{t:function(){return fe}});var te=he(67294),Ee=he(69677),lt=he(22150),ct=he(14446),Ve=he(71230),Re=he(15746),it=he(31795),ke=he(11713),we=he(78045),at=he(41307),tt=he(35973),ve=he(52654),kt=he(2453),bt=he(71577),$e=he(57953),dt=he(19575),Qe={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"},et=he(33170),ft=he(88742),Je=he(91304),ot=he(74855),ht=he(96707),yt=he(67294),zt=Object.defineProperty,Xt=Object.defineProperties,Qt=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,pt=(be,ge,ue)=>ge in be?zt(be,ge,{enumerable:!0,configurable:!0,writable:!0,value:ue}):be[ge]=ue,qe=(be,ge)=>{for(var ue in ge||(ge={}))wt.call(ge,ue)&&pt(be,ue,ge[ue]);if(Ht)for(var ue of Ht(ge))Ye.call(ge,ue)&&pt(be,ue,ge[ue]);return be},ut=(be,ge)=>Xt(be,Qt(ge)),Oe=(be,ge,ue)=>new Promise((Xe,_t)=>{var Zt=yn=>{try{An(ue.next(yn))}catch(nn){_t(nn)}},Dn=yn=>{try{An(ue.throw(yn))}catch(nn){_t(nn)}},An=yn=>yn.done?Xe(yn.value):Promise.resolve(yn.value).then(Zt,Dn);An((ue=ue.apply(be,ge)).next())}),Gt=({buttonProps:be,buttonText:ge,form:ue,hackIdentifier:Xe="",answerKey:_t,data:Zt})=>{const[Dn,An]=(0,te.useState)(!1),[yn,nn]=(0,te.useState)(!1),[Ar,Dr]=(0,te.useState)(!1),[ln,jn]=(0,te.useState)({}),[wi,$r]=(0,te.useState)(""),[Ir,Or]=(0,te.useState)(""),Ca=(0,te.useRef)(Xe),ur=(0,te.useRef)(""),Yn=(0,te.useRef)(!1);(0,te.useEffect)(()=>{Ar&&Ni()},[Ar]),(0,te.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const oi=()=>new Date().getTime(),Si=Zt==null?void 0:Zt.code,Ti=()=>{var qr,Ta;let Da=Si?Zt==null?void 0:Zt.code:(qr=ue.getFieldValue("hack_codes"))==null?void 0:qr.code,Tr=Si?Zt==null?void 0:Zt.answer_content:ue.getFieldValue(_t),_i=Si?Zt==null?void 0:Zt.input:(Ta=ue.getFieldValue("hack_sets"))==null?void 0:Ta.input;Tr==null||Tr.forEach(jr=>{const di=jr.value||jr.answer_text||"";Da=Da.replace(/(@▁@|@▁▁@)/,di)}),Or(_i),$r(Da),jn({}),Dr(!0)},Ni=()=>Oe(void 0,null,function*(){var qr,Ta,Da,Tr;const _i=oi(),jr=Si?Zt==null?void 0:Zt.time_limit:(qr=ue.getFieldsValue())==null?void 0:qr.hack.time_limit,di=Si?(Ta=Zt==null?void 0:Zt.answer_content)==null?void 0:Ta.length:(Tr=(Da=ue.getFieldsValue())==null?void 0:Da.standard_answers)==null?void 0:Tr.length;An(!0),yield(0,ft.bM)(ur.current,{test_hack_code:wi,test_input:Ir});function Lo(){return Oe(this,null,function*(){const{status:ro,data:Hi}=yield(0,ft.rX)(ur.current,"submit"),Zo=oi()-_i>(jr+3)*1e3*di;if(Yn.current){if(Zo){kt.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),An(!1);return}if(ro===0){An(!1),jn(ut(qe({},Hi),{showText:!0}));return}setTimeout(Lo,1e3)}})}Lo()}),Fi=()=>Oe(void 0,null,function*(){var qr,Ta,Da,Tr,_i,jr,di;if(!Zt){try{yield ue.validateFields()}catch(Ko){(Da=(Ta=(qr=Ko==null?void 0:Ko.errorFields)==null?void 0:qr[0])==null?void 0:Ta.name)!=null&&Da.includes("standard_answers")?kt.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):kt.ZP.error(Ko.errorFields[0].errors[0]),ue.scrollToField(Ko.errorFields[0].name,{behavior:"smooth",block:"center"});return}nn(!0);let ro="";const Hi=ue.getFieldsValue();Ca.current?ro=yield(0,et.ZP)(`/api/problems/${Ca.current}.json`,{method:"put",body:ut(qe({},Hi),{hack:ut(qe({},Hi==null?void 0:Hi.hack),{sub_discipline_id:(di=(jr=Hi==null?void 0:Hi.hack)==null?void 0:jr.sub_discipline_id)==null?void 0:di[1],difficult:Hi.difficulty,item_banks_group_id:Hi.item_banks_group_id}),hack_codes:ut(qe({},Hi.hack_codes),{code:dt.Base64.encode(Hi.hack_codes.code)}),update_hack_sets:[qe({},Hi.hack_sets)],is_blank:!0})}):(ro=yield(0,et.ZP)("/api/problems.json",{method:"post",body:ut(qe({},Hi),{hack:ut(qe({},Hi==null?void 0:Hi.hack),{sub_discipline_id:(_i=(Tr=Hi==null?void 0:Hi.hack)==null?void 0:Tr.sub_discipline_id)==null?void 0:_i[1],difficult:Hi.difficulty,item_banks_group_id:Hi.item_banks_group_id}),hack_codes:ut(qe({},Hi.hack_codes),{code:dt.Base64.encode(Hi.hack_codes.code)}),hack_sets:[qe({},Hi.hack_sets)],is_blank:!0})}),Ca.current=ro==null?void 0:ro.identifier,sessionStorage.projectFill=ro==null?void 0:ro.identifier)}const Lo=yield(0,et.ZP)(`/api/problems/${Ca.current}/start.json`,{method:"get"});if((Lo==null?void 0:Lo.status)===0){ur.current=Lo==null?void 0:Lo.identifier,Yn.current=!0,nn(!1),Ti();return}nn(!1)}),Wr=qr=>{const{status:Ta,error_msg:Da,execute_time:Tr,output:_i,input:jr,expected_output:di}=qr;let Lo=null;switch(Ta){case ht.h.OK:Lo=yt.createElement(yt.Fragment,null,yt.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Tr/1e3,"\u79D2"),yt.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case ht.h.NOMATCH:Lo=yt.createElement(yt.Fragment,null,yt.createElement("div",null,"\u8F93\u5165\uFF1A"),yt.createElement("pre",{style:{fontFamily:"initial"}},jr),yt.createElement("div",null,"\u8F93\u51FA\uFF1A"),yt.createElement("pre",{style:{fontFamily:"initial"}},_i&&dt.Base64.decode(_i)),yt.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),yt.createElement("pre",{style:{fontFamily:"initial"}},di&&dt.Base64.decode(di)));break;case ht.h.EXECUTEFAILURE:Lo=yt.createElement(yt.Fragment,null,yt.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",yt.createElement("pre",null,jr)),yt.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),yt.createElement("pre",{className:"error"},dt.Base64.decode(Da)));break;case ht.h.COMPILEFAILURE:Lo=yt.createElement(yt.Fragment,null,yt.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",yt.createElement("pre",null,jr)),yt.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),yt.createElement("pre",{className:"error"},dt.Base64.decode(Da)));break;case ht.h.PODFAILURE:Lo=yt.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case ht.h.TIMEOUT:Lo=yt.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return yt.createElement(yt.Fragment,null," ",Lo," ")};return yt.createElement("div",null,yt.createElement(bt.ZP,ut(qe({loading:yn},be),{onClick:Fi}),ge),yt.createElement(ct.default,{open:Ar,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Dn,cancelButtonProps:{style:{display:"none"}},onOk:()=>Ni(),onCancel:()=>{Yn.current=!1,Dr(!1)}},yt.createElement("div",{className:Qe.result},yt.createElement("div",{className:Qe.left},yt.createElement("div",{className:"mb20"},yt.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!Zt&&yt.createElement(ot.CopyToClipboard,{text:wi,onCopy:()=>kt.ZP.success("\u590D\u5236\u6210\u529F")},yt.createElement("span",{style:{float:"right"},className:"current c-light-primary"},yt.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),yt.createElement(Je.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:wi,onChange:qr=>$r(qr)})),yt.createElement("div",{className:Qe.right},yt.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),yt.createElement("div",{className:Qe.box},yt.createElement("div",{className:Qe.li},yt.createElement(Ee.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Ir,onChange:qr=>Or(qr.target.value),bordered:!1,style:{height:180}}))),yt.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),yt.createElement("div",{className:Qe.box},yt.createElement($e.Z,{spinning:Dn,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},yt.createElement("div",{className:Qe.li,style:{height:196,overflow:"auto",padding:10}},Wr(ln))))))))},un=he(55304),Ge=he(67294),Ke=Object.defineProperty,Yt=Object.defineProperties,Jt=Object.getOwnPropertyDescriptors,cn=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,wn=(be,ge,ue)=>ge in be?Ke(be,ge,{enumerable:!0,configurable:!0,writable:!0,value:ue}):be[ge]=ue,_n=(be,ge)=>{for(var ue in ge||(ge={}))Lt.call(ge,ue)&&wn(be,ue,ge[ue]);if(cn)for(var ue of cn(ge))Dt.call(ge,ue)&&wn(be,ue,ge[ue]);return be},on=(be,ge)=>Yt(be,Jt(ge)),kn=(be,ge)=>{var ue={};for(var Xe in be)Lt.call(be,Xe)&&ge.indexOf(Xe)<0&&(ue[Xe]=be[Xe]);if(be!=null&&cn)for(var Xe of cn(be))ge.indexOf(Xe)<0&&Dt.call(be,Xe)&&(ue[Xe]=be[Xe]);return ue};const{TextArea:xn}=Ee.default,Vn=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],er=({value:be,onChange:ge})=>Ge.createElement(Switch,{checked:be,onChange:ue=>{ge(ue)}}),Me="@\u2581@",ce="@\u2581\u2581@",fe=({questionTitlePlaceholder:be,form:ge,scoreByBlank:ue=!1,hackidentifier:Xe,answerKey:_t})=>{const[Zt,Dn]=(0,te.useState)(!1),[An,yn]=(0,te.useState)(!1),Ar=(0,tt.useParams)().type==="edit",Dr=(ur,Yn)=>{const oi=Yn.line;let Si=0;for(let Ni=0;Ni<oi;Ni++)Si+=ur.getLine(Ni).split(Me).length-1;for(let Ni=0;Ni<oi;Ni++)Si+=ur.getLine(Ni).split(ce).length-1;const Ti=ur.getLine(oi).substring(0,Yn.ch);return Si+=Ti.split(Me).length-1,Si+=Ti.split(ce).length-1,Si},ln=(ur,Yn,oi,Si)=>{const Ti=ur.getRange(Yn.from,Yn.to);let Ni=0;if(Yn.text.forEach(Fi=>{Ni+=Fi.split(Me).length-1}),Yn.text.forEach(Fi=>{Ni+=Fi.split(ce).length-1}),Yn.origin!=="setValue"){if(Ti&&(Ti.indexOf(Me)!==-1||Ti.indexOf(ce)!==-1)){const Fi=Ti.split(Me).length-1+Ti.split(ce).length-1,Wr=Dr(ur,Yn.from);if(console.log(`\u5220\u9664${Fi}\u4E2A\uFF0C \u524D\u9762\u6709${Wr}\u4E2A\uFF0C\u65B0\u589E${Ni}\u4E2A`),Fi>1){const qr=Array.from({length:Fi},(Ta,Da)=>Wr+Da);Si(qr)}else Si(Wr)}else if(Ni>0){const Fi=Dr(ur,Yn.from);console.log(`\u65B0\u589E${Ni}\u4E2A\uFF0C\u4E4B\u524D\u6709${Fi}\u4E2A`),oi(Ni,Fi)}}},jn=()=>{const ur=ge.getFieldValue(_t);ge.setFieldsValue({[_t]:ur==null?void 0:ur.map((Yn,oi)=>on(_n({},Yn),{position:oi+1}))})},wi=(0,te.useRef)(),$r=(ur,Yn)=>{for(let oi=0;oi<ur;oi++)wi.current({position:null,answer_text:""},Yn+oi);jn()},Ir=(0,te.useRef)(),Or=ur=>{Ir.current(ur),jn()},Ca=lt.default.useWatch(_t,ge);return Ge.createElement("div",{className:ve.Z.wrap},Ge.createElement(lt.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},Ge.createElement(at.h,{scrollId:"name",watch:!0,height:140})),Ge.createElement("div",{className:ve.Z.questionTitleEditorWrap},Ge.createElement(lt.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},Ge.createElement(at.h,{scrollId:"name",watch:!0,height:400,hidetoolBar:!0,showNullProgramButton:!0,onChange:(ur,Yn)=>{const oi=ge.getFieldValue(_t);console.log("--preAnswerData",oi,Yn),ge.setFieldsValue({[_t]:oi==null?void 0:oi.map((Si,Ti)=>{var Ni;return on(_n({},Si),{position:Ti+1,multi_line:(Ni=Yn==null?void 0:Yn[Ti])==null?void 0:Ni.multiLine})})})},placeholder:be,onCMBeforeChange:(ur,Yn)=>{ln(ur,Yn,$r,Or)}}))),Ge.createElement(lt.default.List,{name:_t,rules:[{validator(ur,Yn){if(!(Yn!=null&&Yn.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const oi of Yn){const{answer_text:Si}=oi||{};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()}}]},(ur,{add:Yn,remove:oi},{errors:Si})=>(wi.current=Yn,Ir.current=oi,Ge.createElement(Ge.Fragment,null,Ge.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},Ge.createElement(lt.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),Ge.createElement("div",{onClick:()=>{ct.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:Ge.createElement("div",null,Ge.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",Ge.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),Ge.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"}},Ge.createElement(un.Z,{style:{marginRight:3,color:"#3061D0"}}),Ge.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),ur.map((Ti,Ni)=>{var Fi=Ti,{key:Wr,name:qr}=Fi,Ta=kn(Fi,["key","name"]),Da,Tr;return Ge.createElement(Ve.Z,{className:"mb20",key:Wr,align:"middle",wrap:!1},Ge.createElement(Re.Z,{flex:"0 0 auto",className:`${ve.Z.blankIndex}`},"\u586B\u7A7A\u9879",Ni+1),Ge.createElement(Re.Z,{flex:1},Ge.createElement(Ve.Z,{align:"top",justify:"space-between",wrap:!1},Ge.createElement(Re.Z,null,Ge.createElement(lt.default.Item,on(_n({},Ta),{name:[qr,"answer_text"],noStyle:!0}),(Da=Ca==null?void 0:Ca[qr])!=null&&Da.multi_line||(Tr=Ca==null?void 0:Ca[qr])!=null&&Tr.multiLine?Ge.createElement(xn,{spellCheck:!1,style:{marginLeft:10,width:550}}):Ge.createElement(Ee.default,{style:{marginLeft:10,width:550},className:ve.Z.blankInput,size:"large",maxLength:1e3,onBlur:_i=>{}}))),ue&&Ge.createElement(Re.Z,{flex:"224px"},Ge.createElement(lt.default.Item,on(_n({},Ta),{name:[qr,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),Ge.createElement(it.Z,{size:"large",className:ve.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),Ge.createElement("div",{onClick:()=>Dn(!0)},Ge.createElement(lt.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ge.createElement(at.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Zt}))),Ge.createElement(lt.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"}]},Ge.createElement(ke.default,{size:"large"},Vn.map(ur=>Ge.createElement(ke.default.Option,{key:ur.title,value:ur.key}," ",ur.title)))),Ge.createElement(lt.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},Ge.createElement(lt.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},Ge.createElement(it.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),Ge.createElement("span",{className:"ml10 font14"},"\u79D2")),Ge.createElement(lt.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"}]},Ge.createElement(we.ZP.Group,{style:{marginTop:-10}},Ge.createElement(we.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),Ge.createElement(we.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),Ge.createElement(we.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),Ge.createElement(lt.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),Ge.createElement("div",{style:{background:"#F6F7F9",padding:15}},Ge.createElement(lt.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},Ge.createElement(xn,{rows:4})),Ge.createElement(lt.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},Ge.createElement(xn,{rows:4}))),Ge.createElement(Gt,{form:ge,answerKey:_t,hackIdentifier:Xe,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:Ge.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(dn,vn,he){"use strict";he.d(vn,{u:function(){return yt}});var te=he(67294),Ee=he(71230),lt=he(15746),ct=he(83062),Ve=he(22150),Re=he(52654),it=he(40043),ke=he(24018),we=he(41307),at=he(67294),tt=Object.defineProperty,ve=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,Qe=(zt,Xt,Qt)=>Xt in zt?tt(zt,Xt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):zt[Xt]=Qt,et=(zt,Xt)=>{for(var Qt in Xt||(Xt={}))$e.call(Xt,Qt)&&Qe(zt,Qt,Xt[Qt]);if(bt)for(var Qt of bt(Xt))dt.call(Xt,Qt)&&Qe(zt,Qt,Xt[Qt]);return zt},ft=(zt,Xt)=>ve(zt,kt(Xt)),Je=(zt,Xt)=>{var Qt={};for(var Ht in zt)$e.call(zt,Ht)&&Xt.indexOf(Ht)<0&&(Qt[Ht]=zt[Ht]);if(zt!=null&&bt)for(var Ht of bt(zt))Xt.indexOf(Ht)<0&&dt.call(zt,Ht)&&(Qt[Ht]=zt[Ht]);return Qt};const ot=["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"],ht=({value:zt,onChange:Xt,choiceTextKey:Qt,answerKey:Ht,index:wt,isEdit:Ye,setInputActive:pt,form:qe,choiceOptionsPath:ut,allowChangeMode:Oe,showAddIcon:Ot,addItem:Gt,deleteItem:un})=>{console.log(zt,"value");const Ge=(zt==null?void 0:zt[Ht])===1,Ke=()=>{const Jt=qe.getFieldValue(ut);qe.setFieldValue(ut,Jt.map(cn=>ft(et({},cn),{[Ht]:0})))},Yt=()=>{Ge?Xt(ft(et({},zt),{[Ht]:0})):(Oe||Ke(),Xt(ft(et({},zt),{[Ht]:1})))};return at.createElement(Ee.Z,{className:Re.Z.choiceWrap,align:"middle",wrap:!1},at.createElement(lt.Z,{onClick:Yt,className:`${Re.Z.choiceIndex} ${Ge?Re.Z.activeAnswer:""}`},ot[wt]),at.createElement(lt.Z,{flex:1,className:`${Re.Z.editorWrap} ml15`,onClick:pt},at.createElement(we.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Ye,value:zt==null?void 0:zt[Qt],onChange:Jt=>{Xt(ft(et({},zt),{[Qt]:Jt}))}})),at.createElement(lt.Z,{flex:"0 0 auto",className:"ml15"},at.createElement("div",{onClick:Yt,className:`${Re.Z.setAnswerBtn} ${Ge?Re.Z.activeAnswer:""}`},Ge?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),at.createElement(lt.Z,{className:Re.Z.actionWrapper},at.createElement(ct.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},at.createElement(it.Z,{className:Re.Z.addIcon,onClick:Gt,style:{visibility:Ot?"visible":"hidden"}})),at.createElement(ct.Z,{title:"\u5220\u9664"},at.createElement(ke.Z,{className:Re.Z.deleteIcon,onClick:un,style:{visibility:wt>1?"visible":"hidden"}}))))},yt=({questionTitlePlaceholder:zt,titleKey:Xt,choiceKey:Qt,analysisKey:Ht,choiceTextKey:wt,answerKey:Ye,choiceOptionsPath:pt,allowChangeMode:qe=!0,form:ut,showAnalysis:Oe=!0})=>{const[Ot,Gt]=(0,te.useState)(),[un,Ge]=(0,te.useState)(!1);return at.createElement("div",{className:Re.Z.wrap},at.createElement("div",{className:Re.Z.questionTitleEditorWrap},at.createElement(Ve.default.Item,{label:"\u9898\u5E72",name:Xt,labelCol:{span:24},rules:[{required:!0}]},at.createElement(we.h,{scrollId:Array.isArray(Xt)?Xt.join("_"):`${Xt}`,watch:!0,height:140,placeholder:zt}))),at.createElement(Ve.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),at.createElement(Ve.default.List,{name:Qt,rules:[{validator(Ke,Yt){const Jt=Yt.some(Lt=>Lt[Ye]===1),cn=Yt.findIndex(Lt=>{var Dt;return((Dt=Lt[wt])==null?void 0:Dt.length)<=0});return cn!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${ot[cn]}\u9009\u9879\u7684\u5185\u5BB9`)):Jt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Ke,{add:Yt,remove:Jt})=>at.createElement("div",{id:Array.isArray(pt)?pt.join("_"):`${pt}`},Ke.map((cn,Lt)=>{var Dt=cn,{key:wn,name:_n}=Dt,on=Je(Dt,["key","name"]);const kn=Ot===wn,xn=()=>{Gt(wn)},Vn=Lt<7&&Lt===Ke.length-1,er=()=>Yt({[wt]:"",[Ye]:0}),Me=()=>Jt(_n);return at.createElement(Ve.default.Item,ft(et({},on),{key:wn,name:_n,className:Re.Z.choiceListWrap,rules:[{validator(ce,fe){return fe!=null&&fe.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${ot[Lt]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),at.createElement(ht,{choiceTextKey:wt,answerKey:Ye,index:Lt,isEdit:kn,setInputActive:xn,form:ut,choiceOptionsPath:pt,allowChangeMode:qe,showAddIcon:Vn,addItem:er,deleteItem:Me}))}),Ke.length<8&&at.createElement("div",{className:`${Re.Z.addBtn} mb30`,onClick:()=>Yt({[wt]:"",[Ye]:0})},"\u6DFB\u52A0\u9009\u9879"))),Oe&&at.createElement("div",{onClick:()=>Ge(!0)},at.createElement(Ve.default.Item,{name:Ht,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},at.createElement(we.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:un}))))}},81580:function(dn,vn,he){"use strict";he.d(vn,{u:function(){return ut}});var te=he(67294),Ee=he(14446),lt=he(71230),ct=he(15746),Ve=he(69677),Re=he(83062),it=he(47897),ke=he(22150),we=he(78045),at=he(31795),tt=he(71577),ve=he(41307),kt=he(24018),bt=he(40043),$e=he(17663),dt=he(52654),Qe=he(35713),et=he(67294),ft=Object.defineProperty,Je=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,ht=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,Xt=(Oe,Ot,Gt)=>Ot in Oe?ft(Oe,Ot,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Oe[Ot]=Gt,Qt=(Oe,Ot)=>{for(var Gt in Ot||(Ot={}))yt.call(Ot,Gt)&&Xt(Oe,Gt,Ot[Gt]);if(ht)for(var Gt of ht(Ot))zt.call(Ot,Gt)&&Xt(Oe,Gt,Ot[Gt]);return Oe},Ht=(Oe,Ot)=>Je(Oe,ot(Ot)),wt=(Oe,Ot)=>{var Gt={};for(var un in Oe)yt.call(Oe,un)&&Ot.indexOf(un)<0&&(Gt[un]=Oe[un]);if(Oe!=null&&ht)for(var un of ht(Oe))Ot.indexOf(un)<0&&zt.call(Oe,un)&&(Gt[un]=Oe[un]);return Gt};const Ye=({value:Oe,onChange:Ot,position:Gt,removeBlank:un})=>{const Ge=Yt=>{Ee.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:dt.Z.modal,onOk:()=>{const Jt=[...Oe];Jt.splice(Yt,1),Jt.length===0?un(Gt-1):Ot(Jt)}})},Ke=()=>{const Yt=[...Oe];Yt.push(""),Ot(Yt)};return et.createElement(lt.Z,{className:"ml20"},et.createElement(ct.Z,{flex:1},Oe==null?void 0:Oe.map((Yt,Jt)=>et.createElement(lt.Z,{key:`${Yt}_${Jt}`,className:"mb20"},et.createElement(Ve.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Yt,autoSize:{maxRows:3},maxLength:1e3,onBlur:cn=>{const Lt=[...Oe],Dt=cn.target.value.trim();Lt[Jt]=Dt,Ot(Lt)}}),et.createElement(Re.Z,{title:"\u5220\u9664"},et.createElement(kt.Z,{className:dt.Z.deleteIcon,style:{marginLeft:15,visibility:Gt===1&&Jt===0?"hidden":"visible"},onClick:()=>Ge(Jt)})),et.createElement(Re.Z,{title:"\u65B0\u589E\u7B54\u6848"},et.createElement(bt.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Jt===0?"visible":"hidden"},onClick:()=>{Ke()}}))))))},pt=({value:Oe,onChange:Ot,position:Gt,removeBlank:un})=>{const Ge=Yt=>{Ee.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:dt.Z.modal,onOk:()=>{const Jt=[...Oe];Jt.splice(Yt,1),Jt.length===0?un(Gt-1):Ot(Jt)}})},Ke=()=>{const Yt=[...Oe];Yt.push(""),Ot(Yt)};return et.createElement(lt.Z,{className:"ml20"},et.createElement(ct.Z,{flex:1},Oe==null?void 0:Oe.map((Yt,Jt)=>et.createElement(lt.Z,{key:`${Yt}_${Jt}`,align:"middle",className:"mb20"},et.createElement(Qe.Z,{value:Yt,style:{flex:1},onChange:cn=>{const Lt=[...Oe];Lt[Jt]=cn,Ot(Lt)}}),et.createElement(Re.Z,{title:"\u5220\u9664"},et.createElement(kt.Z,{className:dt.Z.deleteIcon,style:{marginLeft:15,visibility:Gt===1&&Jt===0?"hidden":"visible"},onClick:()=>Ge(Jt)})),et.createElement(Re.Z,{title:"\u65B0\u589E\u7B54\u6848"},et.createElement(bt.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Jt===0?"visible":"hidden"},onClick:()=>{Ke()}}))))))},qe=({value:Oe=!0,onChange:Ot})=>et.createElement(it.Z,{checked:!Oe,onChange:Gt=>{Ot(!Gt)}}),ut=({questionTitlePlaceholder:Oe,form:Ot,scoreByBlank:Gt=!1,answerKey:un})=>{const[Ge,Ke]=(0,te.useState)(!1),Yt=()=>{const _n=Ot.getFieldValue(un);Ot.setFieldsValue({[un]:_n.map((on,kn)=>Ht(Qt({},on),{position:kn+1}))})},Jt=(0,te.useRef)(),cn=(_n,on)=>{for(let kn=0;kn<_n;kn++)Jt.current({position:null,answer_text:[""],model:1},on+kn);Yt()},Lt=(0,te.useRef)(),Dt=_n=>{Lt.current(_n),Yt()},wn=ke.default.useWatch(un,Ot);return et.createElement("div",{className:dt.Z.wrap},et.createElement("div",{className:dt.Z.questionTitleEditorWrap},et.createElement(ke.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},et.createElement(ve.h,{scrollId:"name",watch:!0,height:140,placeholder:Oe,showNullButton:!0,onAddBlank:()=>{const _n=Ot.getFieldValue(un);cn(1,_n==null?void 0:_n.length)}}))),et.createElement(ke.default.List,{name:un,rules:[{validator(_n,on){if(!(on!=null&&on.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const kn of on){const{answer_text:xn}=kn||{};if(xn!=null&&xn.some(Vn=>(Vn==null?void 0:Vn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(_n,{add:on,remove:kn},{errors:xn})=>(Jt.current=on,Lt.current=kn,et.createElement(et.Fragment,null,et.createElement(ke.default.Item,{label:et.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),_n.map((Vn,er)=>{var Me=Vn,{key:ce,name:fe}=Me,be=wt(Me,["key","name"]),ge,ue;return et.createElement("div",{style:{marginBottom:10},key:ce},et.createElement(lt.Z,{className:"mb20",align:"middle",wrap:!1},et.createElement(ct.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${dt.Z.blankIndex}`},"\u586B\u7A7A\u9879",er+1),et.createElement(ke.default.Item,Ht(Qt({},be),{name:[fe,"model"],noStyle:!0}),et.createElement(we.ZP.Group,{onChange:()=>{const Xe=Ot.getFieldValue(un);Ot.setFieldsValue({[un]:Xe.map((_t,Zt)=>Ht(Qt({},_t),{answer_text:fe===Zt?[""]:_t.answer_text}))})}},et.createElement(we.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",et.createElement(Re.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},et.createElement($e.Z,null))),et.createElement(we.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",et.createElement(Re.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},et.createElement($e.Z,null)))))),et.createElement(lt.Z,{style:{marginLeft:20},align:"middle",wrap:!1},et.createElement(ct.Z,{flex:1},et.createElement(lt.Z,{align:"top",justify:"space-between",wrap:!1},et.createElement(ct.Z,{flex:1},et.createElement(ke.default.Item,Ht(Qt({},be),{name:[fe,"answer_text"],noStyle:!0}),((ue=(ge=Ot.getFieldValue(un))==null?void 0:ge[fe])==null?void 0:ue.model)===1?et.createElement(Ye,{removeBlank:Dt,position:er+1}):et.createElement(pt,{removeBlank:Dt,position:er+1}))),Gt&&et.createElement(ct.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},et.createElement(ke.default.Item,Ht(Qt({},be),{name:[fe,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:dt.Z.blankInputNumberWrapper}),et.createElement(at.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),et.createElement(ke.default.Item,Ht(Qt({},be),{name:[fe,"position"],noStyle:!0}),et.createElement(Ve.default,{type:"hidden"})))))})))),et.createElement(tt.ZP,{className:"mb20",onClick:()=>cn(1,wn==null?void 0:wn.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),et.createElement(lt.Z,{align:"middle"},et.createElement(ke.default.Item,{name:"downcase",valuePropName:"checked"},et.createElement(it.Z,null)),et.createElement(ct.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),et.createElement(lt.Z,{align:"middle"},et.createElement(ke.default.Item,{name:"no_space",valuePropName:"checked"},et.createElement(it.Z,null)),et.createElement(ct.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(wn==null?void 0:wn.length)>1&&et.createElement(lt.Z,{align:"middle",className:(wn==null?void 0:wn.length)>1?"mb30":`${dt.Z.hide}`},et.createElement(ke.default.Item,{name:"is_ordered"},et.createElement(qe,null)),et.createElement(ct.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")),et.createElement("div",{onClick:()=>Ke(!0)},et.createElement(ke.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},et.createElement(ve.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ge}))))}},66495:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return Je}});var te=he(67294),Ee=he(71230),lt=he(15746),ct=he(22150),Ve=he(52654),Re=he(41307),it=he(67294),ke=Object.defineProperty,we=Object.defineProperties,at=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,bt=(ot,ht,yt)=>ht in ot?ke(ot,ht,{enumerable:!0,configurable:!0,writable:!0,value:yt}):ot[ht]=yt,$e=(ot,ht)=>{for(var yt in ht||(ht={}))ve.call(ht,yt)&&bt(ot,yt,ht[yt]);if(tt)for(var yt of tt(ht))kt.call(ht,yt)&&bt(ot,yt,ht[yt]);return ot},dt=(ot,ht)=>we(ot,at(ht)),Qe=(ot,ht)=>{var yt={};for(var zt in ot)ve.call(ot,zt)&&ht.indexOf(zt)<0&&(yt[zt]=ot[zt]);if(ot!=null&&tt)for(var zt of tt(ot))ht.indexOf(zt)<0&&kt.call(ot,zt)&&(yt[zt]=ot[zt]);return yt};const et={\u6B63\u786E:"T",\u9519\u8BEF:"F"},ft=({value:ot,onChange:ht,form:yt})=>{const zt=(ot==null?void 0:ot.is_answer)===1,Xt=ot==null?void 0:ot.choice_text,Qt=()=>{const Ht=yt.getFieldsValue().choices.map(wt=>({choice_text:wt.choice_text,is_answer:0}));yt.setFieldsValue({choices:Ht}),ht(dt($e({},ot),{is_answer:1}))};return it.createElement(Ee.Z,{className:Ve.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},it.createElement(lt.Z,{onClick:Qt,className:`${Ve.Z.choiceIndex} ${Ve.Z.judgementIndex} ${zt?Ve.Z.activeAnswer:""}`},et[Xt]),it.createElement(lt.Z,{flex:1,className:`${Ve.Z.editorWrap} ml15`},it.createElement("div",{className:`${Ve.Z.inputBorder} ${Ve.Z.placeholder} ${zt?Ve.Z.activeJudgementAnswer:""}`},Xt)),it.createElement(lt.Z,{flex:"0 0 auto",className:"ml15"},it.createElement("div",{onClick:Qt,className:`${Ve.Z.setAnswerBtn} ${zt?Ve.Z.activeAnswer:""}`},zt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},Je=({questionTitlePlaceholder:ot,choiceKey:ht,form:yt})=>{const[zt,Xt]=(0,te.useState)(!1);return it.createElement("div",{className:Ve.Z.wrap},it.createElement("div",{className:Ve.Z.questionTitleEditorWrap},it.createElement(ct.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},it.createElement(Re.h,{scrollId:"name",watch:!0,height:140,placeholder:ot}))),it.createElement(ct.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},it.createElement(ct.default.List,{name:"choices",rules:[{validator(Qt,Ht){return Ht.some(Ye=>(Ye==null?void 0:Ye.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Qt=>it.createElement("div",{id:"choices"},Qt.map(Ht=>{var wt=Ht,{key:Ye,name:pt}=wt,qe=Qe(wt,["key","name"]);return it.createElement(ct.default.Item,dt($e({},qe),{key:Ye,name:pt,noStyle:!0}),it.createElement(ft,{form:yt}))})))),it.createElement("div",{onClick:()=>Xt(!0)},it.createElement(ct.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},it.createElement(Re.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:zt}))))}},41307:function(dn,vn,he){"use strict";he.d(vn,{h:function(){return $e},x:function(){return dt}});var te=he(91304),Ee=he(52654),lt=he(35598),ct=he(67294),Ve=Object.defineProperty,Re=Object.defineProperties,it=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,tt=(Qe,et,ft)=>et in Qe?Ve(Qe,et,{enumerable:!0,configurable:!0,writable:!0,value:ft}):Qe[et]=ft,ve=(Qe,et)=>{for(var ft in et||(et={}))we.call(et,ft)&&tt(Qe,ft,et[ft]);if(ke)for(var ft of ke(et))at.call(et,ft)&&tt(Qe,ft,et[ft]);return Qe},kt=(Qe,et)=>Re(Qe,it(et)),bt=(Qe,et)=>{var ft={};for(var Je in Qe)we.call(Qe,Je)&&et.indexOf(Je)<0&&(ft[Je]=Qe[Je]);if(Qe!=null&&ke)for(var Je of ke(Qe))et.indexOf(Je)<0&&at.call(Qe,Je)&&(ft[Je]=Qe[Je]);return ft};const $e=Qe=>{var et=Qe,{value:ft,onChange:Je,scrollId:ot}=et,ht=bt(et,["value","onChange","scrollId"]);return ct.createElement("div",{id:ot||""},ct.createElement(te.Z,kt(ve({},ht),{defaultValue:ft,onChange:(yt,zt)=>{zt!=null&&zt.length?Je(yt,zt):Je(yt)}})))},dt=({value:Qe,onChange:et,placeholder:ft,height:Je=140,isEdit:ot,miniToolbar:ht,watch:yt=!0})=>ot?ct.createElement(te.Z,{watch:yt,isFocus:!0,height:Je||void 0,placeholder:ft,defaultValue:Qe,onChange:et,miniToolbar:ht}):ct.createElement("div",{style:{cursor:"pointer"}},Qe?ct.createElement(lt.Z,{className:Ee.Z.inputBorder,value:Qe}):ct.createElement("div",{className:`${Ee.Z.inputBorder} ${Ee.Z.placeholder} inputBorderError`},ft))},77792:function(dn,vn,he){"use strict";he.d(vn,{W:function(){return wt}});var te=he(67294),Ee=he(2453),lt=he(66309),ct=he(22150),Ve=he(47897),Re=he(71230),it=he(15746),ke=he(83062),we=he(69677),at=he(31795),tt=he(52654),ve=he(41307),kt=he(91304),bt=he(17663),$e=Object.defineProperty,dt=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,ot=(Ye,pt,qe)=>pt in Ye?$e(Ye,pt,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ye[pt]=qe,ht=(Ye,pt)=>{for(var qe in pt||(pt={}))ft.call(pt,qe)&&ot(Ye,qe,pt[qe]);if(et)for(var qe of et(pt))Je.call(pt,qe)&&ot(Ye,qe,pt[qe]);return Ye},yt=(Ye,pt)=>dt(Ye,Qe(pt)),zt=(Ye,pt)=>{var qe={};for(var ut in Ye)ft.call(Ye,ut)&&pt.indexOf(ut)<0&&(qe[ut]=Ye[ut]);if(Ye!=null&&et)for(var ut of et(Ye))pt.indexOf(ut)<0&&Je.call(Ye,ut)&&(qe[ut]=Ye[ut]);return qe};const Xt=Ye=>{var pt=Ye,{value:qe,onChange:ut}=pt,Oe=zt(pt,["value","onChange"]);const Ot=Gt=>{ut([Gt])};return te.createElement(kt.Z,yt(ht({},Oe),{defaultValue:qe==null?void 0:qe[0],onChange:Ot}))},Qt=Ye=>{if(!Ye)return!1;if(/^s*$/.test(Ye)||Ye.trim()===""){Ee.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 Ye==="|"?(Ee.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Ht=({value:Ye=[],onClose:pt})=>te.createElement(lt.Z,{closable:!0,onClose:pt,className:tt.Z.keywordTag},te.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Ye.join(" \u6216 "))),wt=({questionTitlePlaceholder:Ye,form:pt,showKeywords:qe,isMustKeyWords:ut=qe})=>{const[Oe,Ot]=(0,te.useState)(!1),[Gt,un]=(0,te.useState)(""),Ge=ct.default.useWatch("use_keywords",pt),Ke=ct.default.useWatch("question_score",pt);return te.createElement("div",{className:tt.Z.wrap},te.createElement("div",{className:tt.Z.questionTitleEditorWrap},te.createElement(ct.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},te.createElement(ve.h,{scrollId:"name",watch:!0,height:140,placeholder:Ye}))),te.createElement(ct.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},te.createElement(Xt,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),qe&&!ut&&te.createElement(ct.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},te.createElement(Ve.Z,{defaultChecked:!0})),qe&&ut&&te.createElement(Re.Z,{align:"middle",className:"mb30"},te.createElement(ct.default.Item,{name:"use_keywords",valuePropName:"checked"},te.createElement(Ve.Z,null)),te.createElement(it.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),te.createElement(it.Z,null,te.createElement(ke.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"},te.createElement(bt.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Ge||!ut)&&te.createElement(ct.default.List,{name:"keywords",rules:[{validator(Yt,Jt){return ut?Jt!=null&&Jt.length?(Jt==null?void 0:Jt.reduce((Lt,Dt)=>Lt+Dt.score,0))>parseFloat(Ke)?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()}}]},(Yt,{add:Jt,remove:cn})=>te.createElement(te.Fragment,null,te.createElement("div",{className:`${tt.Z.title} mb10`},ut?"\u5173\u952E\u8BCD":te.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),te.createElement(Re.Z,{align:"middle",className:"font14 mb30"},te.createElement(it.Z,{flex:1},te.createElement(we.default,{value:Gt,onChange:Lt=>{un(Lt.target.value)},maxLength:50,allowClear:!0,onPressEnter:Lt=>{var Dt,wn,_n,on;const kn=`${(Dt=Lt.target)==null?void 0:Dt.value}`,xn=(_n=(wn=kn==null?void 0:kn.split("|"))==null?void 0:wn.filter(Me=>!!Me))==null?void 0:_n.map(Me=>Me==null?void 0:Me.trim()),Vn=pt.getFieldValue("keywords"),er=((on=Vn==null?void 0:Vn.map(Me=>Me==null?void 0:Me.keyword))==null?void 0:on.flat())||[];for(const Me of xn)if(er.includes(Me)){Ee.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Qt(kn)&&(Jt({keyword:xn,score:1}),un(""))},className:tt.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"})),te.createElement(it.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Yt.map(Lt=>{var Dt=Lt,{key:wn,name:_n}=Dt,on=zt(Dt,["key","name"]);return te.createElement(Re.Z,{key:wn,className:"mb20",style:{marginRight:148}},te.createElement(it.Z,{flex:1},te.createElement(Re.Z,{align:"middle",justify:"space-between"},te.createElement(ct.default.Item,yt(ht({},on),{name:[_n,"keyword"]}),te.createElement(Ht,{onClose:()=>cn(_n)})),ut&&te.createElement(ct.default.Item,yt(ht({},on),{name:[_n,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:tt.Z.blankInputNumberWrapper}),te.createElement(at.Z,{className:tt.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),te.createElement("div",{onClick:()=>Ot(!0)},te.createElement(ct.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},te.createElement(ve.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Oe}))))}},39044:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return Ve}});var te={text:"text___bQulM",sup:"sup___rX_Y3"},Ee=he(22150),lt=he(67294),Ve=({text:Re,name:it="question_score"})=>{const ke=({value:we})=>lt.createElement("div",{className:te.text},lt.createElement("span",{className:te.sup},"*"),lt.createElement("span",{className:"mr10"},"\u5206\u503C"),lt.createElement("span",null,we||"--"),lt.createElement("span",{className:"c-grey-999"},Re));return lt.createElement(Ee.default.Item,{noStyle:!0,name:it},lt.createElement(ke,null))}},57444:function(dn,vn,he){"use strict";he.d(vn,{h:function(){return ot}});var te=he(67294),Ee=he(11713),lt=he(22150),ct=he(71577),Ve=he(4631),Re=he.n(Ve),it=he(71749),ke=he(30483),we=Object.defineProperty,at=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,$e=(ht,yt,zt)=>yt in ht?we(ht,yt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):ht[yt]=zt,dt=(ht,yt)=>{for(var zt in yt||(yt={}))kt.call(yt,zt)&&$e(ht,zt,yt[zt]);if(ve)for(var zt of ve(yt))bt.call(yt,zt)&&$e(ht,zt,yt[zt]);return ht},Qe=(ht,yt)=>at(ht,tt(yt));const et=Ee.default.Option,ft={labelCol:{span:4},wrapperCol:{span:20}},Je={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"]};vn.Z=({callback:ht,onCancel:yt})=>{const[zt,Xt]=(0,te.useState)("python");function Qt(wt){Xt(Je[wt][1])}function Ht(wt){ht(wt)}return te.createElement(lt.default,Qe(dt({},ft),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ht,style:{width:500}}),te.createElement(lt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(Ee.default,{getPopupContainer:wt=>wt.parentNode,onChange:Qt},Object.keys(Je).map(wt=>te.createElement(et,{key:wt,value:wt},Je[wt][0])))),te.createElement(lt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(ot,{mode:zt})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(ct.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(ct.ZP,{type:"ghost",onClick:yt},"\u53D6\u6D88")))};function ot({value:ht,onChange:yt,mode:zt,options:Xt={}}){const Qt=(0,te.useRef)(),[Ht,wt]=(0,te.useState)();return(0,te.useEffect)(()=>{if(Ht){let Ye=function(pt){const qe=pt.getValue();yt&&yt(qe)};return Ht.on("change",Ye),()=>{Ht.off("change",Ye)}}},[Ht,yt]),(0,te.useEffect)(()=>{Ht&&Ht.setOption("mode",zt)},[Ht,zt]),(0,te.useEffect)(()=>{Ht&&(ht!==Ht.getValue()||ht==="")&&setTimeout(()=>{Ht.setValue(ht||"")},300)},[Ht,ht]),(0,te.useEffect)(()=>{if(Qt.current&&!Ht){const Ye=Re().fromTextArea(Qt.current,dt({mode:zt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Xt));wt(Ye)}},[Qt.current,Ht]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:Qt}))}},91304:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return Zo}});var te=he(67294),Ee=he(4631),lt=he.n(Ee),ct=he(91033),Ve=he(71749),Re=he(57341),it=he(82801),ke=he(88386),we=he(49047),at=he(80785),tt=he(35598),ve=({value:zi="",className:Pr,showTextOnly:ta,showLines:Wa,style:yo={}})=>{const Eo=(0,te.useMemo)(()=>"",[zi]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:Eo}}))},kt=he(67294),bt=Object.defineProperty,$e=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,Je=(zi,Pr,ta)=>Pr in zi?bt(zi,Pr,{enumerable:!0,configurable:!0,writable:!0,value:ta}):zi[Pr]=ta,ot=(zi,Pr)=>{for(var ta in Pr||(Pr={}))et.call(Pr,ta)&&Je(zi,ta,Pr[ta]);if(Qe)for(var ta of Qe(Pr))ft.call(Pr,ta)&&Je(zi,ta,Pr[ta]);return zi},ht=(zi,Pr)=>$e(zi,dt(Pr));let yt=[{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 zt({onActionCallback:zi,title:Pr,icon:ta,actionName:Wa,className:yo="",children:Eo}){function bo(){zi(Wa)}return kt.createElement("a",{title:Pr,className:yo,onClick:bo},kt.createElement("i",{className:`${ta}`}),Eo)}var Xt=({watch:zi,showNullButton:Pr,showNullProgramButton:ta,onActionCallback:Wa,fullScreen:yo,insertTemp:Eo,hidetoolBar:bo,extraUse:rs})=>{const fo=[...yt,{title:`${zi?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${zi?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return kt.createElement("ul",{className:"markdown-toolbar-container"},!bo&&fo.map((ka,mi)=>kt.createElement("li",{key:mi},ka.actionName?kt.createElement(zt,ht(ot({},ka),{onActionCallback:Wa})):kt.createElement("span",{className:"v-line"}))),Pr?kt.createElement("li",null,kt.createElement(zt,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Wa},kt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,ta?kt.createElement(kt.Fragment,null,kt.createElement("li",null,kt.createElement(zt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Wa},kt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),kt.createElement("li",null,kt.createElement(zt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Wa},kt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Eo&&kt.createElement("li",null,kt.createElement(zt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Eo}`,onActionCallback:Wa},kt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),rs&&kt.createElement("li",null,rs),kt.createElement("li",{className:"btn-full-screen"},kt.createElement(zt,{icon:`${yo?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:yo?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Wa})))},Qt=he(76621),Ht=he(22150),wt=he(69677),Ye=he(71577),pt=Object.defineProperty,qe=Object.defineProperties,ut=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable,un=(zi,Pr,ta)=>Pr in zi?pt(zi,Pr,{enumerable:!0,configurable:!0,writable:!0,value:ta}):zi[Pr]=ta,Ge=(zi,Pr)=>{for(var ta in Pr||(Pr={}))Ot.call(Pr,ta)&&un(zi,ta,Pr[ta]);if(Oe)for(var ta of Oe(Pr))Gt.call(Pr,ta)&&un(zi,ta,Pr[ta]);return zi},Ke=(zi,Pr)=>qe(zi,ut(Pr));const Yt={labelCol:{span:4},wrapperCol:{span:20}};var Jt=({callback:zi,onCancel:Pr})=>{function ta(Wa){zi(Wa)}return te.createElement(Ht.default,Ke(Ge({},Yt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ta,style:{width:500}}),te.createElement(Ht.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(wt.default,null)),te.createElement(Ht.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(wt.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ye.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ye.ZP,{type:"ghost",onClick:Pr},"\u53D6\u6D88")))},cn=he(57444),Lt=he(70859),Dt=he(14446),wn=he(71230),_n=he(63205),on=he(67294),kn=({callback:zi,onCancel:Pr})=>{const ta=document.createElement("canvas"),Wa=ta.getContext("2d");ta.width=1e3,ta.height=800,Wa.fillStyle="#ffffff",Wa.fillRect(0,0,ta.width,ta.height);const yo=ta.toDataURL("image/png");return on.createElement(Dt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},on.createElement(wn.Z,{style:{height:"100vh"}},on.createElement(_n.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:yo,visible:!0,title:String(Date.now())},onOk:Eo=>{zi({src:Eo.url})},onClose:Pr})))},xn=he(72565),Vn=he(15746),er=he(2453),Me={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ce=he(67294),be=(0,te.forwardRef)(({onCancel:zi,editImgId:Pr,callback:ta},Wa)=>{let yo=(0,te.useRef)(),Eo=(0,te.useRef)(),bo=(0,te.useRef)(),rs=(0,te.useRef)(!1);const fo=(0,te.useRef)(!1);console.log("ref:",Wa);const[ka,mi]=(0,te.useState)(0),[Fo,Xo]=(0,te.useState)("100vh");return(0,te.useEffect)(()=>{mi(1);try{indexedDB.databases().then(Ja=>{Ja.forEach(Na=>indexedDB.deleteDatabase(Na.name))})}catch(Ja){}},[]),(0,te.useImperativeHandle)(Wa,()=>({setHeight:Xo})),ce.createElement("div",{ref:fo,className:"body-overflow-initial"},ce.createElement(xn.Z,{width:"100vw",height:Fo,footer:null,closable:!0,placement:"bottom",open:!!ka,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Me.drawerWrap}`,onClose:()=>{window.saveDrawData(Ja=>{ta({src:`/api/attachments/${Ja}`,id:Ja})})},title:ce.createElement(wn.Z,{align:"middle"},ce.createElement(Vn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ce.createElement(Vn.Z,{onClick:()=>{Xo(Fo==="60px"?"100vh":"60px")}},ce.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ce.createElement(Vn.Z,{onClick:()=>{window.saveDrawData(Ja=>{if(Ja===null){er.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}er.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),ta({src:`/api/attachments/${Ja}`,id:Ja,disabledClose:!0})})}},ce.createElement(Ye.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ce.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${Pr||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Eo})))}),ge=he(11320),ue=he(78045),Xe=he(31795);const _t=ue.ZP.Group,Zt={margin:"0 8px"};var Dn=({callback:zi,onCancel:Pr})=>{function ta(Wa){zi(Wa)}return te.createElement(Ht.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ta},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:Zt},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:Zt},"\u884C\u6570"),te.createElement(Ht.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(Xe.Z,null)),te.createElement("span",{style:Zt},"\u5217\u6570"),te.createElement(Ht.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(Xe.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:Zt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(Ht.default.Item,{name:"align"},te.createElement(_t,null,te.createElement(ue.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(ue.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(ue.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(ue.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ye.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ye.ZP,{type:"ghost",onClick:Pr},"\u53D6\u6D88")))},An=he(47897),yn=he(61016),nn=he.n(yn),Dr=(0,te.forwardRef)(({use3d:zi,width:Pr,height:ta,callback:Wa,showSaveButton:yo},Eo)=>{const bo=(0,te.useRef)(),rs=(0,te.useRef)(),[fo,ka]=(0,te.useState)(!1),mi=(0,te.useRef)({id:bo,appName:"graphing",width:Pr||1e3,height:ta||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{rs.current=new(nn())(mi.current,!0),window.onload=function(){rs.current.inject("applet_container")}},[]);const Fo=()=>{var Xo=window.ggbApplet.getPNGBase64(1,!0,72);return Wa&&Wa(Xo),Xo};return(0,te.useEffect)(()=>{mi.current.appName=fo?"3D":"graphing",rs.current.inject("applet_container")},[fo]),(0,te.useEffect)(()=>{ka(zi)},[zi]),(0,te.useImperativeHandle)(Eo,()=>({getImgData:Fo})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:bo}),te.createElement(wn.Z,{align:"middle"},te.createElement(Vn.Z,{flex:1},te.createElement(An.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:fo,onChange:Xo=>ka(Xo)})),te.createElement(Vn.Z,null,te.createElement(Ye.ZP,{size:"large",onClick:Fo,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ln=he(36527),jn=he(25934);const wi="link",$r="upload-image",Ir="add-flowchart",Or="draw-image",Ca="add-flowchart",ur="code-block",Yn="add-table",oi="------------",Si={default:oi,left:`:${oi}`,center:`:${oi}:`,right:`${oi}:`};var Ti=he(99914),Ni=(zi,Pr,ta)=>new Promise((Wa,yo)=>{var Eo=fo=>{try{rs(ta.next(fo))}catch(ka){yo(ka)}},bo=fo=>{try{rs(ta.throw(fo))}catch(ka){yo(ka)}},rs=fo=>fo.done?Wa(fo.value):Promise.resolve(fo.value).then(Eo,bo);rs((ta=ta.apply(zi,Pr)).next())});function Fi(){}let Wr=0;const qr=1e4,Ta="\u2581",Da="@\u2581\u2581@",Tr="@\u2581@",_i=`
|
|
|
**\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`,jr=["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 di(zi){return/^\d+$/.test(zi)?`${zi}px`:zi}const ro=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Hi={[ro+"-B"]:"bold",[ro+"-I"]:"italic"},Ko={[wi]:"\u6DFB\u52A0\u94FE\u63A5",[ur]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[$r]:"\u6DFB\u52A0\u56FE\u7247",[Or]:"\u6DFB\u52A0\u753B\u56FE",[Ir]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Yn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Zo=({defaultValue:zi="",onChange:Pr,width:ta="100%",height:Wa=400,miniToolbar:yo=!1,isFocus:Eo=!1,watch:bo,insertTemp:rs,mode:fo="markdown",id:ka="markdown-editor-id",showResizeBar:mi=!1,noStorage:Fo=!1,showNullButton:Xo=!1,showNullProgramButton:Ja=!1,hidetoolBar:Na=!1,fullScreen:Rs=!1,onBlur:io,onCMBeforeChange:lo,onFullScreen:cr,className:Xi="",disablePaste:br=!1,disabled:Cl=!1,disabledFill:fs=!1,placeholder:ho="",values:Ll="",extraUse:Ma,onAddBlank:El})=>{const[Xn,Go]=(0,te.useState)(null),[hs,Ws]=(0,te.useState)(zi),[xo,co]=(0,te.useState)(bo),[Ho,ps]=(0,te.useState)(Rs),[Ro,qo]=(0,te.useState)(""),[Va,Ms]=(0,te.useState)(0),[Vl,qs]=(0,te.useState)(Wa),[il,Ds]=(0,te.useState)(!1),So=(0,te.useRef)((0,jn.Z)()),al=(0,te.useRef)(!1),Sl=(0,te.useRef)(),[Vs,ol]=(0,te.useState)(0),[Bs,Us]=(0,te.useState)(0),js=(0,te.useRef)(),ml=(0,te.useRef)(),Ua=(0,te.useRef)(),_s=(0,te.useRef)(),ms=(0,te.useRef)(),Zs=(0,te.useRef)(),Ks=()=>Ni(void 0,null,function*(){var sn;const Bn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:So.current}});(sn=Bn==null?void 0:Bn.attachments)!=null&&sn.length&&(console.log("cm:",Xn,js),Bn.attachments.map(Tn=>{Tn.content_type.indexOf("image")>-1?Xn.replaceSelection(``):Tn.content_type.indexOf("video")>-1?Xn.replaceSelection(`<video width="100%" controls src="${ge.Z.API_SERVER}/api/attachments/${data.id}"></video>`):Tn.content_type.indexOf("pdf")>-1?Xn.replaceSelection(`<a href="${ge.Z.API_SERVER}/api/attachments/${Tn.id}?type=${Tn.content_type}&disposition=inline" target="_blank">${Tn.name}</a>`):Xn.replaceSelection(`[${Tn.name}](${ge.Z.API_SERVER}/api/attachments/${Tn.id}?type=${Tn.content_type})`)}))});(0,te.useEffect)(()=>{const sn=window.scrollY||window.pageYOffset;Ws(Ll),Xn==null||Xn.setValue(Ll),window.scrollTo(0,sn)},[Ll]),(0,te.useEffect)(()=>{cr==null||cr(Ho)},[Ho]),(0,te.useEffect)(()=>{if(js.current){let sn=function(Tn,Kn){var Zr;if(br){Kn.preventDefault();return}const li=Kn.clipboardData;if(li){const Gi=li.types.toString(),Oi=li.items;if(Gi==="Files"||li.types.indexOf("Files")>-1){if(Kn.preventDefault(),fo=="stex")return;try{let fa=Oi[1];((Zr=Oi[0])==null?void 0:Zr.kind)==="file"&&(fa=Oi[0]);const xa=fa.getAsFile(),Oa=xa.name.split(".").pop();(0,Lt.I)(xa,_a=>{var $a,Pa,Za;_a.id?(($a=xa==null?void 0:xa.type)==null?void 0:$a.indexOf("image"))>-1?Bn.replaceSelection(`<img width="100%" src="/api/attachments/${_a.id}?type=${_a.content_type})" alt="" />`):((Pa=xa==null?void 0:xa.type)==null?void 0:Pa.indexOf("video"))>-1?Bn.replaceSelection(`<video width="100%" controls src="/api/attachments/${_a.id}"></video>`):((Za=xa==null?void 0:xa.type)==null?void 0:Za.indexOf("pdf"))>-1?Bn.replaceSelection(`<a href="/api/attachments/${_a.id}?type=${xa.type}&disposition=inline" target="_blank">${xa.name}</a>`):jr.includes(Oa)?Bn.replaceSelection(`<a href="/api/attachments/${_a.id}?type=office&disposition=inline" target="_blank">${xa.name}</a>`):Bn.replaceSelection(`[${xa.name}](/api/attachments/${_a.id}?type=${_a.content_type})`):(_a==null?void 0:_a.status)===401&&(er.ZP.warning((_a==null?void 0:_a.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(fa){er.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Bn=lt().fromTextArea(js.current,{mode:fo,lineNumbers:!yo,lineWrapping:!0,value:zi,autoCloseTags:!Ja,autoCloseBrackets:!0});return Bn.on("keyup",function(Tn,Kn){Kn.keyCode===8&&(Tn.getValue()==""?Bn.setOption("placeholder",ho):Bn.setOption("placeholder",null))}),Bn.on("keydown",function(Tn,Kn){if(Kn.keyCode===8){var Zr=vs(Tn);Zr&&Kn.preventDefault()}}),Eo&&Bn.focus(),Bn.on("paste",sn),Bn.on("dragleave",function(Tn,Kn){ml.current.classList.remove("mouse-hover-md")}),Cl&&Bn.on("beforeChange",function(Tn,Kn){(Kn.origin==="paste"||Kn.origin==="+input")&&Kn.cancel()}),Go(Bn),()=>{Bn.off("paste",sn)}}},[]);const sl=(0,te.useCallback)(()=>{if(ml.current)try{}catch(sn){console.log(sn,"---- to set md editor body height")}},[Vl,ml,Ho]);(0,te.useEffect)(()=>{function sn(){let Bn=new ct.Z(Tn=>{for(let Kn of Tn)(Kn.target.offsetHeight>0||Kn.target.offsetWidth>0)&&(sl(),Xn.setSize("100%","100%"),Xn.refresh())});return Bn.observe(js.current.parentElement),Bn}if(Xn){const Bn=sn();return()=>{var Tn,Kn;(Tn=js.current)!=null&&Tn.parentElement&&Bn.unobserve((Kn=js.current)==null?void 0:Kn.parentElement)}}},[Xn,sl]),(0,te.useEffect)(()=>{if(Xn){let sn=[];for(const[Bn,Tn]of Object.entries(Hi)){let Kn={[Bn]:()=>{gs(Tn)}};sn.push(Kn),Xn.addKeyMap(Kn)}return Sl.current=setInterval(()=>{al.current&&Ks()},4e3),()=>{clearInterval(Sl.current);for(let Bn of sn)Xn.removeKeyMap(Bn)}}},[Xn]),(0,te.useEffect)(()=>{Rs!==Ho&&ps(Rs)},[Rs]),(0,Ti.Z)(()=>{if(!Fo&&Va>0){let sn=new Date().getTime(),Bn=window.sessionStorage.getItem(ka);sn>=Va+qr&&(!Bn||Bn!==hs)&&(window.sessionStorage.setItem(ka,hs),Ds(!0))}},qr),(0,te.useEffect)(()=>{co(bo)},[Xn,bo]),(0,te.useEffect)(()=>{Xn&&Eo&&Xn.focus()},[Xn,Eo]),(0,te.useEffect)(()=>{if(xo&&Xn){let sn=function(Tn){let Kn=Tn.target;if(_s.current){let Zr=Kn.scrollTop/Kn.scrollHeight;_s.current.scrollTop=_s.current.scrollHeight*Zr}};const Bn=Xn.getScrollerElement();return Bn.addEventListener("scroll",sn),()=>{Bn.removeEventListener("scroll",sn)}}},[Xn,xo]),(0,te.useEffect)(()=>{if(Xn&&lo){let sn=function(Bn,Tn){lo(Bn,Tn)};return Xn.on("beforeChange",sn),()=>{Xn.off("beforeChange",sn)}}},[Xn,lo]),(0,te.useEffect)(()=>{if(Xn&&io){let sn=function(){io(Xn.getValue())};return Xn.on("blur",sn),()=>{Xn.off("blur",sn)}}},[Xn,io]);function vs(sn,Bn){var Tn=sn.getDoc(),Kn=Tn.getCursor(),Zr=Tn.getLine(Kn.line),li=Zr.charAt(Kn.ch-1),Gi=Zr.lastIndexOf("@\u2581@",Kn.ch),Oi=Zr.lastIndexOf("@\u2581\u2581@",Kn.ch),fa=Gi>Oi?Gi:Oi,xa=Gi>Oi?3:4;if(Da.indexOf(li)===-1)return null;if(console.log("change1:",Bn,sn,Zr,Kn,fa,Gi,Oi,li),fa>=0&&Kn.ch-fa<5){var Oa=fa+xa;return Tn.replaceRange("",{line:Kn.line,ch:fa},{line:Kn.line,ch:Oa}),{line:Kn.line,ch:Oa}}return null}(0,te.useEffect)(()=>{if(Xn){let sn=function(Bn,Tn){const Kn=Bn.getValue();Ws(Kn),Ms(new Date().getTime()),Bn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pr&&(Ja?Pr(Kn,Rt(Kn)):Pr(Kn))};return Xn.on("change",sn),()=>{Xn.off("change",sn)}}},[Xn,Pr]),(0,te.useEffect)(()=>{if(Xn)if(zi==null)Xn.setValue(""),Ws("");else{const sn=window.scrollY||window.pageYOffset;zi!==Xn.getValue()&&(Xn.setValue(zi),Ws(zi),Xn.setCursor(Cl?1:Xn.lineCount(),0),window.scrollTo(0,sn))}},[Xn,zi]);const gs=(0,te.useCallback)(sn=>{const Bn=Xn.getCursor(),Tn=Xn.getSelection();let Kn=Tn.split(`
|
|
|
`);switch(sn){case"bold":return Xn.replaceSelection("**"+Tn+"**"),Tn===""&&Xn.setCursor(Bn.line,Bn.ch+2),Xn.focus();case"italic":return Xn.replaceSelection("*"+Tn+"*"),Tn===""&&Xn.setCursor(Bn.line,Bn.ch+1),Xn.focus();case"code":return Xn.replaceSelection("`"+Tn+"`"),Tn===""&&Xn.setCursor(Bn.line,Bn.ch+1),Xn.focus();case"inline-latex":return qo("inline-latex"),Xn.focus();case"latex":return Xn.replaceSelection("```latex\n"+Tn+"\n```"),Xn.setCursor(Bn.line+1,Tn.length+1),Xn.focus();case"line-break":return Xn.replaceSelection(`<br/>
|
|
|
`),Xn.focus();case"list-ul":return Tn===""?Xn.replaceSelection("- "+Tn):Xn.replaceSelection(Kn.map(Zr=>Zr===""?"":`- ${Zr}`).join(`
|
|
|
`)),Xn.focus();case"list-ol":return Tn===""?Xn.replaceSelection("1. "+Tn):Xn.replaceSelection(Kn.map((Zr,li)=>Zr===""?"":`${li+1}. ${Zr}`).join(`
|
|
|
`)),Xn.focus();case"add-null-ch":El==null||El();return;case"add-signal":return Tn===""&&Xn.setCursor(Bn.line,Bn.ch),Xn.replaceSelection(Tr),Xn.focus();case"add-multiple":return Tn===""&&Xn.setCursor(Bn.line,Bn.ch),Xn.replaceSelection(Da),Xn.focus();case"inster-template-1":return Tn===""&&Xn.setCursor(Bn.line,Bn.ch),Xn.replaceSelection(_i),Xn.focus();case"eraser":return Xn.setValue(""),Xn.focus();case"trigger-watch":return co(!xo),Xn.focus();case"trigger-full-screen":return ps(!Ho),Xn.focus();case wi:qo(wi);return;case ur:qo(ur);return;case $r:qo($r);return;case Or:qo(Or);return;case"maths-latex":qo("maths-latex");return;case Ir:ms.current="",sessionStorage.removeItem("file_id"),qo(Ir);return;case Yn:qo(Yn);return;default:throw new Error}},[Xn,xo,Ho]),_e=(0,te.useCallback)((sn,Bn)=>{var Tn,Kn,Zr,li,Gi,Oi;qo("");const{src:fa,alt:xa,id:Oa}=sn||{};switch(Ro){case wi:const{title:Po,link:tn}=sn;return Xn.replaceSelection(`[${Po}](${tn})`),Xn.focus();case ur:const{language:rn,content:fn}=sn;return Xn.replaceSelection(["```"+rn,fn,"```"].join(`
|
|
|
`)),Xn.focus();case"maths-latex":for(var _a=atob(sn),$a=new Uint8Array(_a.length),Pa=0;Pa<_a.length;Pa++)$a[Pa]=_a.charCodeAt(Pa);var Za=new Blob([$a],{type:"image/png"});(0,Lt.I)(Za,qi=>{qi.id?Xn.replaceSelection(``):(qi==null?void 0:qi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Xn.replaceSelection("`$$"+sn+"$$`");break;case Ca:if(!Oa)return;Xn.focus(),Xn.getValue().indexOf(fa)===-1?Xn.replaceSelection(`<center><img id="${Oa}" width="80%" src="${fa}" class="draw-flowchart" alt="${xa||""}" /></center>`):document.getElementById(Oa).src=ge.Z.API_SERVER+fa+"?t="+Date.now();try{setTimeout(()=>{io(Xn.getValue())},100)}catch(qi){}break;case $r:case Or:const Hn=Bn,ei=(Zr=(Kn=(Tn=Hn==null?void 0:Hn.name)==null?void 0:Tn.split("."))==null?void 0:Kn.pop)==null?void 0:Zr.call(Kn);return((li=Hn==null?void 0:Hn.type)==null?void 0:li.indexOf("image"))>-1||!(Hn!=null&&Hn.type)?Hn!=null&&Hn.align||Hn!=null&&Hn.width?Xn.replaceSelection(`<p style="text-align:${Hn.align||"initial"}"><img width="${Hn.width?Hn.width+"%":"initial"}" src="${fa}" alt="${xa||""}" /></p>`):Xn.replaceSelection(`<img width="100%" src="${fa}" alt="${xa||""}" />`):((Gi=Hn==null?void 0:Hn.type)==null?void 0:Gi.indexOf("video"))>-1?Xn.replaceSelection(`<video width="100%" controls src="${fa}"></video>`):((Oi=Hn==null?void 0:Hn.type)==null?void 0:Oi.indexOf("pdf"))>-1?Xn.replaceSelection(`<a href="${fa}?type=${Hn.type}&disposition=inline" target="_blank">${Hn.name}</a>`):jr.includes(ei)?Xn.replaceSelection(`<a href="${fa}?type=office&disposition=inline" target="_blank">${Hn.name}</a>`):Xn.replaceSelection(`[${Hn.name}](${fa})`),Xn.focus();case Yn:const{row:Wi,col:Zn,align:Lr}=sn;let vi=`
|
|
|
`;for(let qi=0;qi<Wi;qi++){let Kr=[],dr=[];for(let Vi=0;Vi<Zn;Vi++)qi===1&&dr.push(Si[Lr]),Kr.push(" ");qi===1&&(vi+=`| ${dr.join(" | ")} |
|
|
|
`),vi+=`| ${Kr.join(Zn===1?"":" | ")} |
|
|
|
`}return Xn.replaceSelection(vi+`
|
|
|
`),Xn.focus();default:throw new Error}},[Xn,Ro]),nt=(0,te.useMemo)(()=>{switch(Ro){case wi:return te.createElement(Jt,{callback:_e,onCancel:pn});case ur:return te.createElement(cn.Z,{callback:_e,onCancel:pn});case $r:return te.createElement(Lt.Z,{callback:_e,onCancel:pn});case Ir:return te.createElement(be,{editImgId:ms.current,callback:_e,onCancel:pn});case Yn:return te.createElement(Dn,{callback:_e,onCancel:pn});case"maths-latex":return te.createElement(Dr,{showSaveButton:!0,callback:_e});case"inline-latex":return te.createElement(ln.Z,{showSaveButton:!0,callback:_e});default:return null}},[Ro]);function pn(){qo("")}(0,te.useEffect)(()=>{if(Ua.current){let sn=function(Gi){Zr=!0,li=Gi.pageY},Bn=function(){Zr=!1},Tn=function(Gi){if(Zr){let Oi=Gi.pageY-li;Oi<0&&(Oi=0),Oi>300&&(Oi=300);let fa=Wa+Oi+"px";qs(fa)}},Kn=Ua.current,Zr=!1,li=0;return Kn.addEventListener("mousedown",sn),document.addEventListener("mousemove",Tn),document.addEventListener("mouseup",Bn),()=>{Kn.removeEventListener("mousedown",sn),document.removeEventListener("mousemove",Tn),document.removeEventListener("mouseup",Bn)}}},[Xn,Ua]),(0,te.useEffect)(()=>{qs(Wa)},[Wa]);const Ae=di(ta),St=di(Vl),Ft={width:Ae,height:St},an=(0,te.useMemo)(()=>{if(Va){let sn=new Date(Va),Bn=sn.getHours(),Tn=sn.getMinutes(),Kn=sn.getSeconds();return Bn=Bn<10?"0"+Bn:Bn,Tn=Tn<10?"0"+Tn:Tn,Kn=Kn<10?"0"+Kn:Kn,`${Bn}:${Tn}:${Kn}`}return 0},[Va]),Rt=sn=>{const Bn=[];if(Ja){let Tn=-1;sn=sn.replace(/(@▁▁@|@▁@)/g,function(Kn,Zr,li){Bn.push({multiLine:Kn!==Tr})})}return Bn};function In(){window.sessionStorage.removeItem(ka),Ds(!1),Ms(0)}function zn(){Ds(!1),Ms(0),Xn.setValue(window.sessionStorage.getItem(ka))}(0,te.useEffect)(()=>{Ko[Ro]&&Ro!==Or&&Ro!==Ir&&setTimeout(()=>{const sn=document.getElementsByClassName("markdown-popup-form")[0],Bn=window.innerWidth/2-sn.offsetWidth/2,Tn=window.innerHeight/2-sn.offsetHeight/2;ol(Bn),Us(Tn)},0)},[Ro]);const Rn=sn=>{sn.preventDefault();const Bn=sn.clientX-Vs,Tn=sn.clientY-Bs;document.body.onmousemove=Kn=>{let Zr=Kn.clientX-Bn,li=Kn.clientY-Tn;const Gi=document.getElementsByClassName("markdown-popup-form")[0],Oi=window.innerWidth-Gi.offsetWidth,fa=window.innerHeight-Gi.offsetHeight;Zr=Math.max(0,Math.min(Zr,Oi)),li=Math.max(0,Math.min(li,fa)),Mn(Kn.clientX,Kn.clientY,Bn,Tn)&&(ol(Zr),Us(li))},document.body.onmouseup=function(){document.body.onmousemove=null}},Mn=(sn,Bn,Tn,Kn)=>{const Zr=document.body.clientHeight,li=document.body.clientWidth;return sn<20&&Tn>sn||sn>li-20&&Tn<sn||Bn<20&&Kn>Bn||Bn>Zr-20&&Kn<Bn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:ml},te.createElement("div",{className:`markdown-editor-container ${Xi} ${xo?"on-preview":""} ${yo?"mini":""} ${Ho?"full-screen":""}`,style:Ft},te.createElement(Xt,{insertTemp:rs,watch:xo,fullScreen:Ho,showNullButton:Xo,showNullProgramButton:Ja,onActionCallback:gs,hidetoolBar:Na,extraUse:Ma}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:js,placeholder:ho})),xo?te.createElement("div",{ref:_s,className:"preview-container"},fo==="stex"&&te.createElement(ve,{value:hs}),fo!=="stex"&&te.createElement(tt.Z,{edit:!0,disabledFill:fs,showProgramFill:Ja,value:hs,openEditor:sn=>{var Bn;ms.current=sn,(Bn=Zs.current)==null||Bn.setHeight("100vh"),setTimeout(()=>{qo("add-flowchart")},150)}})):null))),mi?te.createElement("a",{ref:Ua,className:"editor-resize"}):null,Ro===Or&&te.createElement(kn,{callback:_e,onCancel:pn}),Ro===Ir&&te.createElement(be,{ref:Zs,editImgId:ms.current,callback:_e,onCancel:pn}),te.createElement(Qt.Z,null,Ko[Ro]&&Ro!==Or&&Ro!==Ir?te.createElement(Dt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Vs,top:Bs},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:Rn},Ko[Ro]),open:!0,onCancel:pn,footer:null,destroyOnClose:!0,width:Ro===Ir?"1200px":null,height:Ro===Ir?"80vh":null,className:"markdown-popup-form"},nt):null))}},70859:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return zt},I:function(){return Qt}});var te=he(22150),Ee=he(2453),lt=he(69677),ct=he(93421),Ve=he(31795),Re=he(78045),it=he(71577),ke=he(15476),we=he(67294),at=he(52262),tt=he(67294),ve=Object.defineProperty,kt=Object.defineProperties,bt=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,et=(Ht,wt,Ye)=>wt in Ht?ve(Ht,wt,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):Ht[wt]=Ye,ft=(Ht,wt)=>{for(var Ye in wt||(wt={}))dt.call(wt,Ye)&&et(Ht,Ye,wt[Ye]);if($e)for(var Ye of $e(wt))Qe.call(wt,Ye)&&et(Ht,Ye,wt[Ye]);return Ht},Je=(Ht,wt)=>kt(Ht,bt(wt));const{useForm:ot}=te.default,ht={width:280,marginRight:10},yt={labelCol:{span:5},wrapperCol:{span:19}};var zt=({callback:Ht,onCancel:wt})=>{const[Ye]=ot();let pt=(0,we.useRef)();function qe(Ot){pt.current.width=Ye.getFieldValue("width"),pt.current.align=Ye.getFieldValue("align"),Ht(Ot,pt.current)}function ut(Ot,Gt){if(Ot.status===-1){Ee.ZP.error(Ot.message);return}Ye.setFieldsValue({src:`/api/attachments/${Ot.id}`,type:Gt.type})}function Oe(Ot){let Gt=Ot.target.files[0];pt.current=Gt,Qt(Gt,ut)}return tt.createElement(te.default,Je(ft({form:Ye},yt),{className:"upload-image-panel",onFinish:qe,style:{width:470,overflow:"hidden"}}),tt.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},tt.createElement("div",{className:"flex-container"},tt.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},tt.createElement(lt.default,{style:ht})),tt.createElement(Xt,{onFileChange:Oe}))),tt.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},tt.createElement(lt.default,{style:{width:264}})),tt.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},tt.createElement(ct.Z,null,tt.createElement(te.default.Item,{name:"width",style:{margin:0}},tt.createElement(Ve.Z,{style:{width:264}})),tt.createElement("span",{className:"ml8"},"%"))),tt.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},tt.createElement(Re.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"}]})),tt.createElement("aside",null,tt.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},tt.createElement(it.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),tt.createElement(it.ZP,{type:"default",onClick:wt},"\u53D6\u6D88"))))};function Xt({onFileChange:Ht}){return tt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",tt.createElement("input",{type:"file",onChange:Ht}))}function Qt(Ht,wt){if(!Ht)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,at.bg)())throw Ee.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ye=new FormData;Ye.append("editormd-image-file",Ht),Ye.append("file_param_name","editormd-image-file"),Ye.append("byxhr","true");var pt=new window.XMLHttpRequest;pt.withCredentials=!0,pt.addEventListener("load",function(qe){wt(JSON.parse(qe.target.responseText),Ht)},!1),pt.addEventListener("error",function(qe){console.error(qe)},!1),pt.open("POST",`${ke.KI}/api/attachments.json`),pt.send(Ye)}},76621:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return lt}});var te=he(67294),Ee=he(73935);class lt extends te.Component{constructor(Ve){super(Ve);const Re=window.document;this.node=Re.createElement("div"),Re.body.appendChild(this.node)}render(){const{children:Ve}=this.props;return(0,Ee.createPortal)(Ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},5476:function(dn,vn,he){"use strict";he.d(vn,{i:function(){return yt},Z:function(){return Xt}});var te={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"},Ee=he(57953),lt=he(83062),ct=he(38703),Ve=he(94184),Re=he.n(Ve),it=he(28706),ke=he(26194),we=he(52262),at=he(79005),tt=he(20345),ve=he(77882),kt=he(31081),bt=he(75309),$e=he(71979),dt=he(47558),Qe=he(60345),et=he(66832),ft=he(96593),Je=he(19664),ot=he(91833),ht=he(67294);const yt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:at,swimg:tt},{name:"101\u8BA1\u5212",ptimg:ve,swimg:kt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:bt,swimg:$e},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:dt,swimg:Qe},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:et,swimg:ft},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Je,swimg:ot}];var Xt=({className:Qt,dataSource:Ht=[],col:wt=4,right:Ye,bottom:pt=23,precision:qe=0,wrapWidth:ut=1200,trackEventItems:Oe,loading:Ot,onRemove:Gt=()=>{},isCurrent:un=!0,showAlias:Ge=!1,showProgress:Ke=!1})=>{const Yt=Math.floor((ut-(wt-1)*Ye)/wt),Jt=[{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(cn=>(window.ENV==="build"&&(cn.ptimg=`/react/build${cn.ptimg}`,cn.swimg=`/react/build${cn.swimg}`),cn));return ht.createElement(Ee.Z,{spinning:Ot},ht.createElement("div",{className:Re()(te.list,Qt)},!!(Ht!=null&&Ht.length)&&(Ht==null?void 0:Ht.map((cn,Lt)=>{var Dt,wn,_n,on,kn,xn;const{name:Vn,id:er,identifier:Me,featured:ce,school_name:fe,image_url:be,excellent:ge,is_plan:ue}=cn;return ht.createElement("div",{key:er,className:un&&Ke?te.wrapisCurrent:te.wrap,style:{width:Yt,marginRight:(1+Lt)%wt===0?0:Ye+qe,marginBottom:pt}},ht.createElement("a",{className:te.li,onClick:Xe=>{Xe.preventDefault(),Xe.stopPropagation(),Oe&&(0,it.L9)([Oe]),(0,it.xg)(`/paths/${Me}`)}},ht.createElement("div",{className:te.img},ht.createElement("img",{className:te.cover,src:`${be}`}),un&&(0,we.bg)()&&(cn==null?void 0:cn.studying)&&ht.createElement("div",{className:`${te.movebq} user-path-items`,onClick:Xe=>{Xe.stopPropagation(),Gt(cn)}},ht.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ht.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Dt=cn==null?void 0:cn.subject_tags)==null?void 0:Dt.map((Xe,_t)=>{var Zt,Dn;if(_t===0){const yn=(Zt=Jt.find(nn=>nn.name==Xe))==null?void 0:Zt.swimg;return ht.createElement("img",{className:te.sign,src:yn,style:{left:"-4px"}})}const An=(Dn=Jt.find(yn=>yn.name==Xe))==null?void 0:Dn.ptimg;return ht.createElement("img",{className:te.sign,src:An,style:{left:`${48+52*(_t-1)+2*_t}px`}})}),ht.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(cn==null?void 0:cn.excellent)&&ht.createElement("div",{className:te.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ht.createElement("div",{className:te.name},ht.createElement(lt.Z,{title:Ge&&(cn!=null&&cn.excellent_alias_name)?ht.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Vn}`,ht.createElement("br",null),ht.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${cn==null?void 0:cn.excellent_alias_name}`)):Vn},ht.createElement("span",{className:te.e},Ge&&(cn==null?void 0:cn.excellent_alias_name)||Vn))),un&&Ke&&((wn=cn==null?void 0:cn.progress)==null?void 0:wn.all_score)!=0&&ht.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ht.createElement(ct.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((_n=cn==null?void 0:cn.progress)==null?void 0:_n.my_score)/((on=cn==null?void 0:cn.progress)==null?void 0:on.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(kn=cn==null?void 0:cn.progress)==null?void 0:kn.my_score,"/",(xn=cn==null?void 0:cn.progress)==null?void 0:xn.all_score),(!un||!Ke)&&ht.createElement("div",{className:te.tags},ht.createElement("div",null,ht.createElement(lt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ht.createElement("span",null,ht.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ht.createElement("span",null,cn.stages_count))),ht.createElement(lt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ht.createElement("span",null,ht.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ht.createElement("span",null,cn.members_count)))))))})),!Ht.length&&ht.createElement(ke.Z,null)))}},78311:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return Re}});var te=he(67294),Ee={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"},lt=he(94184),ct=he.n(lt),Re=({dataSource:it=[],value:ke,onChange:we,className:at,style:tt={}})=>te.createElement("div",{style:tt,className:ct()(Ee.tabs,at)},it.map(ve=>te.createElement("span",{onClick:()=>we(ve.id),className:ke===ve.id?Ee.active:"",key:ve.id},ve.name)))},64743:function(dn,vn,he){"use strict";he.d(vn,{jL:function(){return Ve},w9:function(){return ro},vv:function(){return yo},dN:function(){return zi},QD:function(){return Sl},cQ:function(){return ue.Z},vg:function(){return Tr},Oz:function(){return Ni},op:function(){return Vl},O5:function(){return Ft},_b:function(){return ml},t7:function(){return wt},tT:function(){return qe},Gi:function(){return io},YG:function(){return fo},Ed:function(){return Na},kT:function(){return Fo},qp:function(){return Qe},Um:function(){return yt},K3:function(){return Je},vr:function(){return Bs},qE:function(){return Ds},Je:function(){return Ot},wb:function(){return on},rC:function(){return ge},lB:function(){return Vn},cq:function(){return fs},kO:function(){return El},tp:function(){return zt.Z},Si:function(){return In},k8:function(){return Po},Du:function(){return Zr}});var te=he(67294),Ee={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"},lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZs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VuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Ve=({dataSource:tn=[],img:rn,imgWidth:fn=346,title:Hn,sunTitle:ei,bannerExtraContent:Wi})=>te.createElement("div",{className:Ee.banner},te.createElement("div",{className:Ee.content},te.createElement("aside",null,te.createElement("p",null,te.createElement("b",null,Hn),te.createElement("span",null,ei)),tn.length>0&&te.createElement("div",{className:Ee.btns},tn.map((Zn,Lr)=>te.createElement("div",{key:Lr,onClick:Zn.click},Zn.name,Zn.sign?te.createElement("img",{src:lt,width:39}):null))),Wi),rn&&te.createElement("img",{style:{marginTop:33,marginRight:38},src:rn,width:fn}))),Re={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"},it=he(94184),ke=he.n(it),we=he(96486),at=Object.defineProperty,tt=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,bt=(tn,rn,fn)=>rn in tn?at(tn,rn,{enumerable:!0,configurable:!0,writable:!0,value:fn}):tn[rn]=fn,$e=(tn,rn)=>{for(var fn in rn||(rn={}))ve.call(rn,fn)&&bt(tn,fn,rn[fn]);if(tt)for(var fn of tt(rn))kt.call(rn,fn)&&bt(tn,fn,rn[fn]);return tn},Qe=({dataSource:tn=[],value:rn,onChange:fn,onTitleChange:Hn,className:ei,title:Wi,titleWidth:Zn=41,style:Lr={},fontColor:vi="#6A7283",showCount:qi,classNameActive:Kr,styleItem:dr={}})=>{const[Vi,ha]=(0,te.useState)(0),[Ea,Ci]=(0,te.useState)(!1),fi=(0,te.useRef)(null),Ga=(0,te.useRef)(null);return(0,te.useEffect)(()=>{var Ka;tn.length!==0&&(((Ka=fi==null?void 0:fi.current)==null?void 0:Ka.clientHeight)>97?ha(1):ha(0)),tn.length===0&&ha(0),Ci(!1)},[tn]),te.createElement("div",{className:ke()(Re.row,ei),style:Lr},te.createElement("div",{onClick:(0,we.throttle)(()=>Hn==null?void 0:Hn(),2e3),style:{width:Zn,marginTop:Ea?12:4},className:`${Re.title} ${Hn?"current":""}`},Wi),te.createElement("div",{className:Ea?`${Re.tagsWrap} ${Re.tagsBorderWrap}`:Re.tagsWrap},te.createElement("div",{className:Re.bar,ref:Ga,style:Vi>0?{height:Vi===1?97:"auto",overflow:Vi===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},te.createElement("div",{className:Re.tag,ref:fi},tn==null?void 0:tn.map(Ka=>te.createElement("span",{onClick:()=>fn(Ka.id),key:Ka.id,style:$e($e({color:vi},dr),(Ka==null?void 0:Ka.style)||{}),className:rn===Ka.id?ke()(Kr||Re.active,Ka.classNameActive):""},te.createElement("span",{title:Ka.name,className:Re.name},Ka.name),!!qi&&te.createElement("span",{className:Re.num},Ka.count))))),!!Vi&&te.createElement(te.Fragment,null,Vi===1?te.createElement("div",{onClick:()=>{var Ka;ha(2),((Ka=fi==null?void 0:fi.current)==null?void 0:Ka.clientHeight)>245?Ci(!0):Ci(!1)},className:Re.action},"\u5C55\u5F00",te.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):te.createElement("div",{onClick:()=>{Ga.current.scrollTop=0,ha(1),Ci(!1)},className:Re.action},"\u6536\u8D77",te.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},et={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"},Je=({dataSource:tn=[],value:rn,onChange:fn,onTitleChange:Hn,className:ei,title:Wi,titleWidth:Zn=41,style:Lr={},fontColor:vi="#6A7283",showCount:qi,expand:Kr=!0})=>{const[dr,Vi]=(0,te.useState)(0),[ha,Ea]=(0,te.useState)(!1),Ci=(0,te.useRef)(null),fi=(0,te.useRef)(null),[Ga,Ka]=(0,te.useState)(Kr);return te.createElement("div",{className:ke()(et.row,ei),style:Lr},te.createElement("div",{className:"flex item-center justify-between"},te.createElement("div",{onClick:(0,we.throttle)(()=>Hn==null?void 0:Hn(),2e3),style:{width:Zn,marginTop:ha?12:4},className:`${et.title} ${Hn?"current":""}`},Wi),te.createElement("i",{className:`iconfont ${Ga?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:Ga?8:10},onClick:()=>Ka(!Ga)})),Ga&&te.createElement("div",{className:ha?`${et.tagsWrap} ${et.tagsBorderWrap}`:et.tagsWrap},te.createElement("div",{className:et.fenge}),te.createElement("div",{className:et.bar,ref:fi},te.createElement("div",{className:et.tag,ref:Ci},tn==null?void 0:tn.map(Ao=>te.createElement("span",{onClick:()=>fn(Ao.id),key:Ao.id,style:{color:vi},className:rn===Ao.id?et.active:""},te.createElement("span",{title:Ao.name,className:et.name},Ao.name),!!qi&&te.createElement("span",{className:et.num},Ao.count)))))))},ot={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"},yt=({dataSource:tn=[],value:rn,onChange:fn,onTitleChange:Hn,className:ei,title:Wi,titleWidth:Zn=41,style:Lr={},fontColor:vi="#fff",showCount:qi,expand:Kr=!0})=>{const[dr,Vi]=(0,te.useState)(0),[ha,Ea]=(0,te.useState)(!1),Ci=(0,te.useRef)(null),fi=(0,te.useRef)(null),[Ga,Ka]=(0,te.useState)(Kr);return te.createElement("div",{className:ke()(ot.row,ei),style:Lr},te.createElement("div",{className:"flex item-center justify-between"},te.createElement("div",{onClick:(0,we.throttle)(()=>Hn==null?void 0:Hn(),2e3),style:{width:Zn},className:`${ot.title} ${Hn?"current":""}`},Wi),te.createElement("i",{className:`iconfont ${Ga?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:Ga?"#00DDC7":"#037F74",fontSize:Ga?10:12},onClick:()=>Ka(!Ga)})),Ga&&te.createElement("div",{className:ha?`${ot.tagsWrap} ${ot.tagsBorderWrap}`:ot.tagsWrap},te.createElement("div",{className:ot.bar,ref:fi},te.createElement("div",{className:ot.tag,ref:Ci},tn==null?void 0:tn.map(Ao=>te.createElement("span",{onClick:()=>fn(Ao.id),key:Ao.id,style:{color:vi},className:rn===Ao.id?ot.active:""},te.createElement("span",{title:Ao.name,className:ot.name},Ao.name),!!qi&&te.createElement("span",{className:ot.num},Ao.count)))))))},zt=he(78311),Xt={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"},Qt=he(69677),wt=({dataSource:tn=[],value:rn="",onChange:fn,onInputChange:Hn=()=>{},className:ei,style:Wi={},placeholder:Zn,allowClear:Lr=!1})=>{var vi;const[qi,Kr]=(0,te.useState)(""),[dr,Vi]=(0,te.useState)("");(0,te.useEffect)(()=>{var Ci;let fi=rn;(Ci=JSON.stringify(rn))!=null&&Ci.includes("{")&&(Kr(rn.id),fi=rn.value||"");try{Vi(decodeURIComponent(fi||""))}catch(Ga){Vi(decodeURIComponent(fi||""))}},[rn]);const ha=()=>{fn(encodeURIComponent(dr),qi||null)},Ea=Ci=>{Ci!==qi&&(Kr(Ci),fn(encodeURIComponent(dr),Ci))};return te.createElement("div",{className:ke()(Xt.input,ei),style:Wi},!!tn.length&&te.createElement("div",{className:Xt.dropdown},te.createElement("div",{className:Xt.text},(vi=tn.find(Ci=>Ci.id===qi))==null?void 0:vi.name,te.createElement("i",{className:"iconfont icon-zhankai4"}),te.createElement("b",{className:Xt.b1}),te.createElement("b",{className:Xt.b2})),te.createElement("div",{className:Xt.menu},tn.map((Ci,fi)=>te.createElement("div",{key:fi,onClick:()=>Ea(Ci.id)},Ci.name)))),te.createElement(Qt.default,{onPressEnter:ha,value:dr,onChange:Ci=>{Vi(Ci.target.value),Hn(encodeURIComponent(Ci.target.value),qi||null)},bordered:!1,placeholder:Zn}),te.createElement("i",{onClick:ha,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Ye={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"},qe=({dataSource:tn=[],value:rn="",onChange:fn,onInputChange:Hn=()=>{},className:ei,style:Wi={},placeholder:Zn,allowClear:Lr=!1})=>{var vi;const[qi,Kr]=(0,te.useState)(""),[dr,Vi]=(0,te.useState)("");(0,te.useEffect)(()=>{var Ci;let fi=rn;(Ci=JSON.stringify(rn))!=null&&Ci.includes("{")&&(Kr(rn.id),fi=rn.value||"");try{Vi(decodeURIComponent(fi||""))}catch(Ga){Vi(decodeURIComponent(fi||""))}},[rn]);const ha=()=>{fn(encodeURIComponent(dr),qi||null)},Ea=Ci=>{Ci!==qi&&(Kr(Ci),fn(encodeURIComponent(dr),Ci))};return te.createElement("div",{className:ke()(Ye.input,ei),style:Wi},!!tn.length&&te.createElement("div",{className:Ye.dropdown},te.createElement("div",{className:Ye.text},(vi=tn.find(Ci=>Ci.id===qi))==null?void 0:vi.name,te.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),te.createElement("div",{className:Ye.menu},tn.map((Ci,fi)=>te.createElement("div",{key:fi,onClick:()=>Ea(Ci.id)},Ci.name)))),te.createElement(Qt.default,{onPressEnter:ha,value:dr,onChange:Ci=>{Vi(Ci.target.value),Hn(encodeURIComponent(Ci.target.value),qi||null)},bordered:!1,placeholder:Zn}),te.createElement("i",{onClick:ha,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ut={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"},Ot=({value:tn,onChange:rn,className:fn,total:Hn,pageSize:ei,style:Wi={}})=>{const Zn=tn<2,Lr=tn>=Math.ceil(Hn/ei);return Hn<=ei?te.createElement(te.Fragment,null):te.createElement("div",{className:ke()(ut.quickPager,fn),style:Wi},te.createElement("div",{onClick:()=>{Zn||rn(tn-1,"prev")},className:Zn?ut.disabled:""},"\u4E0A\u4E00\u9875"),te.createElement("div",{onClick:()=>{Lr||rn(tn+1,"next")},className:Lr?ut.disabled:""},"\u4E0B\u4E00\u9875"))},Gt={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"},un=he(57953),Ge=he(83062),Ke=he(12604),Yt=he(11320),Jt=he(28706),cn=he(96908),Lt=he(57177),Dt=he(81378),wn=he(26194),on=({className:tn,dataSource:rn=[],col:fn=4,right:Hn,bottom:ei=23,precision:Wi=0,wrapWidth:Zn=1200,trackEventItems:Lr,loading:vi})=>{const qi=Math.floor((Zn-(fn-1)*Hn)/fn);return te.createElement(un.Z,{spinning:vi},te.createElement("div",{className:ke()(Gt.list,tn)},!!rn.length&&rn.map((Kr,dr)=>{const{name:Vi,id:ha,identifier:Ea,power:Ci,cover_image_id:fi,pic:Ga}=Kr;return te.createElement("div",{className:Gt.wrap,key:ha,style:{width:qi,marginRight:(1+dr)%fn===0?0:Hn+Wi,marginBottom:ei}},te.createElement("a",{target:"_blank",href:`/shixuns/${Ea}/challenges`,className:Gt.li,onClick:Ka=>{Ka.preventDefault(),Lr&&(0,Jt.L9)([Lr]),Ci&&(0,Jt.xg)(`/shixuns/${Ea}/challenges`)}},te.createElement("div",{className:Gt.img},te.createElement("img",{className:Gt.cover,src:`${Ga}`}),Kr.is_jupyter&&te.createElement("img",{className:Gt.sign,src:cn}),Kr.is_jupyter_lab&&te.createElement("img",{className:Gt.sign,src:Lt}),Kr.is_unity_3d&&te.createElement("img",{className:Gt.sign,src:Dt})),te.createElement("div",{className:Gt.name},te.createElement(Ge.Z,{title:Vi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},te.createElement("span",{className:Gt.e},Vi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),te.createElement("div",{className:Gt.tags},te.createElement(Ge.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},te.createElement("span",null,te.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),te.createElement("span",null,Kr.challenges_count))),!!Kr.myshixuns_count&&te.createElement(Ge.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},te.createElement("span",null,te.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),te.createElement("span",null,Kr.myshixuns_count))),te.createElement(Ge.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},te.createElement("span",null,te.createElement("span",null,Kr.level))),te.createElement("div",{className:Gt.rate},te.createElement(Ke.Z,{allowHalf:!0,disabled:!0,defaultValue:Kr.score_info}),te.createElement("span",null,"\xA0",Kr.score_info?`${Kr.score_info}\u5206`:"5\u5206")))),!Ci&&te.createElement("div",{className:Gt.lockWrap},te.createElement("img",{src:`${Yt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),te.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!rn.length&&te.createElement(wn.Z,null)))},kn={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"},Vn=({className:tn,dataSource:rn=[],col:fn=4,right:Hn,bottom:ei=23,precision:Wi=0,wrapWidth:Zn=1200,wrapClassName:Lr,trackEventItems:vi,loading:qi})=>{const Kr=Math.floor((Zn-(fn-1)*Hn)/fn);return te.createElement(un.Z,{spinning:qi},te.createElement("div",{className:ke()(kn.list,tn)},!!rn.length&&rn.map((dr,Vi)=>{const{name:ha,id:Ea,identifier:Ci,power:fi,cover_image_id:Ga,pic:Ka}=dr;return te.createElement("div",{className:ke()(kn.wrap,Lr),key:Ea,style:{width:Kr,marginRight:(1+Vi)%fn===0?0:Hn+Wi,marginBottom:ei}},te.createElement("a",{target:"_blank",href:`/shixuns/${Ci}/challenges`,className:kn.li,onClick:Ao=>{Ao.preventDefault(),vi&&(0,Jt.L9)([vi]),fi&&(0,Jt.xg)(`/shixuns/${Ci}/challenges`)}},te.createElement("img",{src:he(79633),className:kn.titleBg}),te.createElement("div",{className:kn.name},te.createElement(Ge.Z,{title:ha||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},te.createElement("span",{className:kn.e},ha||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),te.createElement("div",{style:{padding:"14px",paddingBottom:0}},te.createElement("div",{className:kn.img},te.createElement("img",{className:kn.cover,src:Ga?`${Yt.Z.API_SERVER}/api/attachments/${Ga}`:`${Yt.Z.IMG_SERVER+Ka}`}),dr.is_jupyter&&te.createElement("div",{className:kn.bq},"Jupyter"),dr.is_jupyter_lab&&te.createElement("div",{className:kn.bq},"JupyterLab"),dr.is_unity_3d&&te.createElement("div",{className:kn.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),te.createElement("div",{className:"mt20 flex item-center justify-between"},te.createElement("div",null,te.createElement("span",{className:kn.text},"\u5B66\u4E60\u4EBA\u6570"),te.createElement("span",{className:kn.value},dr.myshixuns_count)),te.createElement("div",null,te.createElement("span",{className:kn.text},"\u56F0\u96BE\u7B49\u7EA7"),te.createElement("span",{className:kn.value},dr.level))),te.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},te.createElement("div",null,te.createElement("span",{className:kn.text},"\u5173\u5361\u6570"),te.createElement("span",{className:kn.value},dr.challenges_count)),te.createElement("div",{className:kn.rate},te.createElement(Ke.Z,{allowHalf:!0,disabled:!0,defaultValue:dr.score_info}),te.createElement("span",{className:kn.value,style:{color:"#FF9C00"}},"\xA0",dr.score_info?`${dr.score_info}\u5206`:"5\u5206"))))),!fi&&te.createElement("div",{className:kn.lockWrap},te.createElement("img",{src:`${Yt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),te.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!rn.length&&te.createElement(wn.Z,null)))},er={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"},Me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC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xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",ge=({className:tn,dataSource:rn=[],col:fn=4,right:Hn,bottom:ei=23,precision:Wi=0,wrapWidth:Zn=1200,trackEventItems:Lr,loading:vi,wrapClassName:qi,imgClassName:Kr})=>{const dr=Math.floor((Zn-(fn-1)*Hn)/fn);return te.createElement(un.Z,{spinning:vi},te.createElement("div",{className:ke()(er.list,tn)},!!rn.length&&rn.map((Vi,ha)=>{const{name:Ea,id:Ci,identifier:fi,power:Ga,cover_image_id:Ka,pic:Ao}=Vi;return te.createElement("div",{className:ke()(er.wrap,qi),key:Ci,style:{width:dr,marginRight:(1+ha)%fn===0?0:Hn+Wi,marginBottom:ei}},te.createElement("a",{target:"_blank",href:`/shixuns/${fi}/challenges`,className:er.li,onClick:Es=>{Es.preventDefault(),Lr&&(0,Jt.L9)([Lr]),Ga&&(0,Jt.xg)(`/shixuns/${fi}/challenges`)}},te.createElement("div",{className:ke()(er.img,Kr)},te.createElement("img",{className:er.cover,src:Ka?`${Yt.Z.API_SERVER}/api/attachments/${Ka}`:`${Yt.Z.IMG_SERVER+Ao}`}),Vi.is_jupyter&&te.createElement("img",{className:er.sign,src:Me}),Vi.is_jupyter_lab&&te.createElement("img",{className:er.sign,src:ce}),Vi.is_unity_3d&&te.createElement("img",{className:er.sign,src:fe})),te.createElement("div",{className:er.name},te.createElement(Ge.Z,{title:Ea||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},te.createElement("span",{className:er.e},Ea||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),te.createElement("div",{className:er.tags},te.createElement(Ge.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},te.createElement("span",null,te.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),te.createElement("span",null,Vi.challenges_count))),!!Vi.myshixuns_count&&te.createElement(Ge.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},te.createElement("span",null,te.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),te.createElement("span",null,Vi.myshixuns_count))),te.createElement(Ge.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},te.createElement("span",null,te.createElement("span",null,Vi.level))),te.createElement("div",{className:er.rate},te.createElement(Ke.Z,{allowHalf:!0,disabled:!0,defaultValue:Vi.score_info}),te.createElement("span",null,"\xA0",Vi.score_info?`${Vi.score_info}\u5206`:"5\u5206")))),!Ga&&te.createElement("div",{className:er.lockWrap},te.createElement("img",{src:`${Yt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),te.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!rn.length&&te.createElement(wn.Z,null)))},ue=he(5476),Xe={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"},_t=he(79005),Zt=he(20345),Dn=he(77882),An=he(31081),yn=he(75309),nn=he(71979),Ar=he(47558),Dr=he(60345),ln=he(66832),jn=he(96593),wi=he(19664),$r=he(91833),Ir=Object.defineProperty,Or=Object.getOwnPropertySymbols,Ca=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,Yn=(tn,rn,fn)=>rn in tn?Ir(tn,rn,{enumerable:!0,configurable:!0,writable:!0,value:fn}):tn[rn]=fn,oi=(tn,rn)=>{for(var fn in rn||(rn={}))Ca.call(rn,fn)&&Yn(tn,fn,rn[fn]);if(Or)for(var fn of Or(rn))ur.call(rn,fn)&&Yn(tn,fn,rn[fn]);return tn};const Si=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:_t,swimg:Zt},{name:"101\u8BA1\u5212",ptimg:Dn,swimg:An},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:yn,swimg:nn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Ar,swimg:Dr},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:ln,swimg:jn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:wi,swimg:$r}];var Ni=({className:tn,dataSource:rn=[],col:fn=4,right:Hn,bottom:ei=23,precision:Wi=0,wrapWidth:Zn=1200,trackEventItems:Lr,loading:vi,wrapClassName:qi,imgClassName:Kr,isArrow:dr=!1,imgStyle:Vi={}})=>{const ha=Math.floor((Zn-(fn-1)*Hn)/fn),[Ea,Ci]=(0,te.useState)(),[fi,Ga]=(0,te.useState)(),Ka=Es=>Ci(Es),Ao=()=>Ci(-1);return te.createElement(un.Z,{spinning:vi},te.createElement("div",{className:ke()(Xe.list,tn)},!!(rn!=null&&rn.length)&&(rn==null?void 0:rn.map((Es,bl)=>{var Io;const{name:Rl,id:To,identifier:Ls,featured:Uo,school_name:wo,image_url:ll,excellent:ul,is_plan:ia}=Es;return te.createElement("div",{key:To,className:ke()(Xe.wrap,qi),style:{width:ha,marginRight:(1+bl)%fn===0?0:Hn+Wi,marginBottom:ei}},te.createElement("a",{target:"_blank",href:`/paths/${Ls}`,className:Xe.li,onClick:ys=>{ys.preventDefault(),Lr&&(0,Jt.L9)([Lr]),(0,Jt.xg)(`/paths/${Ls}`)}},te.createElement("img",{src:he(39057),className:Xe.titleBg}),te.createElement("div",{className:Xe.name},te.createElement(Ge.Z,{title:Rl},te.createElement("span",{className:Xe.e,style:{color:dr&&Ea===bl?"#145DFF":"#000000"},onMouseEnter:()=>{Ka(bl)},onMouseLeave:Ao},Rl))),te.createElement("div",{style:{padding:"14px",paddingBottom:0}},te.createElement("div",{className:ke()(Xe.img,Kr)},te.createElement("img",{className:Xe.cover,style:oi({},Vi),src:`${Yt.Z.IMG_SERVER+ll}`}),(Io=Es==null?void 0:Es.subject_tags)==null?void 0:Io.map((ys,cl)=>{var Gs,is;if(cl===0){const Ul=(Gs=Si.find(Fs=>Fs.name==ys))==null?void 0:Gs.swimg;return te.createElement("img",{className:Xe.sign,src:Ul,style:{left:"-4px"}})}const eo=(is=Si.find(Ul=>Ul.name==ys))==null?void 0:is.ptimg;return te.createElement("img",{className:Xe.sign,src:eo,style:{left:`${48+52*(cl-1)+2*cl}px`}})}),te.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(Es==null?void 0:Es.excellent)&&te.createElement("div",{className:Xe.bq},"\u5F00\u653E\u8BFE\u7A0B"))),te.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},te.createElement("div",null,te.createElement("span",{className:Xe.text},"\u7AE0\u8282\u6570"),te.createElement("span",{className:Xe.value},Es.stages_count)),te.createElement("div",null,te.createElement("span",{className:Xe.text},"\u5B66\u4E60\u4EBA\u6570"),te.createElement("span",{className:Xe.value},Es.members_count))))))})),!rn.length&&te.createElement(wn.Z,null)))},Fi={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"},Wr=he(52262),qr=he(67294);const Ta=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:_t,swimg:Zt},{name:"101\u8BA1\u5212",ptimg:Dn,swimg:An},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:yn,swimg:nn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Ar,swimg:Dr},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:ln,swimg:jn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:wi,swimg:$r}];var Tr=({className:tn,dataSource:rn=[],col:fn=4,right:Hn,bottom:ei=23,precision:Wi=0,wrapWidth:Zn=1200,trackEventItems:Lr,loading:vi,onRemove:qi=()=>{},isCurrent:Kr=!0,showAlias:dr=!1,wrapClassName:Vi,imgClassName:ha})=>{const Ea=Math.floor((Zn-(fn-1)*Hn)/fn),Ci=[{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(fi=>(window.ENV==="build"&&(fi.ptimg=`/react/build${fi.ptimg}`,fi.swimg=`/react/build${fi.swimg}`),fi));return qr.createElement(un.Z,{spinning:vi},qr.createElement("div",{className:ke()(Fi.list,tn)},!!(rn!=null&&rn.length)&&(rn==null?void 0:rn.map((fi,Ga)=>{var Ka;const{name:Ao,id:Es,identifier:bl,featured:Io,school_name:Rl,image_url:To,excellent:Ls,is_plan:Uo}=fi;return qr.createElement("div",{key:Es,className:ke()(Fi.wrap,Vi),style:{width:Ea,marginRight:(1+Ga)%fn===0?0:Hn+Wi,marginBottom:ei}},qr.createElement("a",{className:Fi.li,onClick:wo=>{wo.preventDefault(),wo.stopPropagation(),Lr&&(0,Jt.L9)([Lr]),(0,Jt.xg)(`/paths/${bl}`)}},qr.createElement("div",{className:ke()(Fi.img,ha)},qr.createElement("img",{className:Fi.cover,src:`${Yt.Z.IMG_SERVER+To}`}),Kr&&(0,Wr.bg)()&&(fi==null?void 0:fi.studying)&&qr.createElement("div",{className:`${Fi.movebq} user-path-items`,onClick:wo=>{wo.stopPropagation(),qi(fi)}},qr.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),qr.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Ka=fi==null?void 0:fi.subject_tags)==null?void 0:Ka.map((wo,ll)=>{var ul,ia;if(ll===0){const cl=(ul=Ci.find(Gs=>Gs.name==wo))==null?void 0:ul.swimg;return qr.createElement("img",{className:Fi.sign,src:cl,style:{left:"-4px"}})}const ys=(ia=Ci.find(cl=>cl.name==wo))==null?void 0:ia.ptimg;return qr.createElement("img",{className:Fi.sign,src:ys,style:{left:`${48+52*(ll-1)+2*ll}px`}})}),qr.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},(fi==null?void 0:fi.excellent)&&qr.createElement("div",{className:Fi.bq},"\u5F00\u653E\u8BFE\u7A0B"))),qr.createElement("div",{className:Fi.name},qr.createElement(Ge.Z,{title:dr&&(fi!=null&&fi.excellent_alias_name)?qr.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Ao}`,qr.createElement("br",null),qr.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${fi==null?void 0:fi.excellent_alias_name}`)):Ao},qr.createElement("span",{className:Fi.e},dr&&(fi==null?void 0:fi.excellent_alias_name)||Ao))),qr.createElement("div",{className:Fi.tags},qr.createElement("div",null,qr.createElement(Ge.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},qr.createElement("span",null,qr.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),qr.createElement("span",null,fi.stages_count))),qr.createElement(Ge.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},qr.createElement("span",null,qr.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),qr.createElement("span",null,fi.members_count)))))))})),!rn.length&&qr.createElement(wn.Z,null)))},_i={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"},jr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJ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bvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",di=he(67294),ro=({className:tn,dataSource:rn=[],col:fn=4,right:Hn,bottom:ei=23,precision:Wi=0,wrapWidth:Zn=1200,trackEventItems:Lr,loading:vi})=>{const qi=Math.floor((Zn-(fn-1)*Hn)/fn);return di.createElement(un.Z,{spinning:vi},di.createElement("div",{className:ke()(_i.list,tn)},!!rn.length&&rn.map((Kr,dr)=>{const{subject_identifier:Vi,id:ha,identifier:Ea,power:Ci}=Kr,fi=Kr.is_public!=0&&Kr.is_public;return di.createElement("div",{className:_i.wrap,key:ha,style:{width:qi,marginRight:(1+dr)%fn===0?0:Hn+Wi,marginBottom:ei}},di.createElement("a",{className:_i.li,onClick:Ga=>{Ga.preventDefault(),Lr&&(0,Jt.L9)([Lr]),(0,Jt.xg)(Kr.first_category_url)}},di.createElement("div",{className:_i.top},di.createElement(Ge.Z,{title:Kr.name},di.createElement("div",{className:_i.name},Kr.name)),di.createElement("img",{className:_i.img,src:Yt.Z.IMG_SERVER+"/images/"+Kr.avatar_url}),di.createElement("div",{className:_i.text,title:Kr.creator},Kr.creator),Vi&&di.createElement("div",{className:_i.btns},di.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),di.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),fi&&di.createElement("div",{className:_i.sign},"\u516C\u5F00")),di.createElement("div",{className:_i.bottom},Kr.visits>0&&di.createElement(Ge.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},di.createElement("span",null,di.createElement("i",{className:"iconfont icon-liulanyan"}),di.createElement("span",null,Kr.visits))),Kr.course_members_count>0&&di.createElement(Ge.Z,{title:"\u6210\u5458",placement:"bottom"},di.createElement("span",null,di.createElement("i",{className:"iconfont icon-chengyuan"}),Kr.course_members_count)),Kr.tasks_count>0&&di.createElement(Ge.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},di.createElement("span",null,di.createElement("i",{className:"iconfont icon-zuoye"}),Kr.tasks_count)),Kr.is_end?di.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):di.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Kr.is_accessible&&di.createElement("div",{className:_i.lockWrap},di.createElement("img",{src:`${Yt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),di.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!rn.length&&di.createElement(wn.Z,null)))},Hi={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"},Ko="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20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vxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",zi=({className:tn,dataSource:rn=[],col:fn=4,right:Hn,bottom:ei=23,precision:Wi=0,wrapWidth:Zn=1200,wrapClassName:Lr,trackEventItems:vi,loading:qi})=>{const Kr=Math.floor((Zn-(fn-1)*Hn)/fn);return te.createElement(un.Z,{spinning:qi},te.createElement("div",{className:ke()(Hi.list,tn)},!!rn.length&&rn.map((dr,Vi)=>{const{subject_identifier:ha,id:Ea,identifier:Ci,power:fi}=dr,Ga=dr.is_public!=0&&dr.is_public;return te.createElement("div",{className:ke()(`${Hi.wrap} ${dr.is_accessible?"":Hi.warpStyle}`,Lr),key:Ea,style:{width:Kr,marginRight:(1+Vi)%fn===0?0:Hn+Wi,marginBottom:ei}},te.createElement("a",{className:Hi.li,onClick:Ka=>{Ka.preventDefault(),vi&&(0,Jt.L9)([vi]),(0,Jt.xg)(dr.first_category_url)}},te.createElement("div",{className:Hi.creator},te.createElement("img",{className:Hi.img,src:Yt.Z.IMG_SERVER+"/images/"+dr.avatar_url}),te.createElement("div",{className:Hi.text,title:dr.creator},dr.creator)),te.createElement("div",{className:Hi.top},te.createElement(Ge.Z,{title:dr.name},te.createElement("div",{className:Hi.name},dr.name)),Ga&&te.createElement("div",{className:Hi.sign},"\u516C\u5F00")),te.createElement("div",{className:Hi.middle},te.createElement("div",{className:Hi.row,style:{marginBottom:6}},te.createElement("div",null,te.createElement("span",{className:Hi.text},"\u8BBF\u95EE\u91CF"),te.createElement("span",{className:Hi.value},(dr==null?void 0:dr.visits)||0)),te.createElement("div",null,te.createElement("span",{className:Hi.text},"\u6210\u5458"),te.createElement("span",{className:Hi.value},(dr==null?void 0:dr.course_members_count)||0))),te.createElement("div",{className:Hi.row},te.createElement("div",null,te.createElement("span",{className:Hi.text,style:{width:42}},"\u4F5C",te.createElement("span",{style:{marginLeft:14}},"\u4E1A")),te.createElement("span",{className:Hi.value},(dr==null?void 0:dr.tasks_count)||0)),te.createElement("div",null,te.createElement("span",{className:Hi.text},"\u72B6\u6001"),dr.is_end?te.createElement("span",{className:Hi.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):te.createElement("span",{className:Hi.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),ha&&te.createElement("div",{className:Hi.btns},te.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),te.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!dr.is_accessible&&te.createElement("div",{className:Hi.lockWrap},te.createElement("img",{src:`${Yt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),te.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!rn.length&&te.createElement(wn.Z,null)))},Pr={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",warpSt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zv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",yo=({className:tn,dataSource:rn=[],col:fn=4,right:Hn,bottom:ei=23,precision:Wi=0,wrapWidth:Zn=1200,wrapClassName:Lr,trackEventItems:vi,loading:qi})=>{const Kr=Math.floor((Zn-(fn-1)*Hn)/fn);return te.createElement(un.Z,{spinning:qi},te.createElement("div",{className:ke()(Pr.list,tn)},!!rn.length&&rn.map((dr,Vi)=>{const{subject_identifier:ha,id:Ea,identifier:Ci,power:fi}=dr,Ga=dr.is_public!=0&&dr.is_public;return te.createElement("div",{className:ke()(`${Pr.wrap} ${dr.is_accessible?"":Pr.warpStyle}`,Lr),key:Ea,style:{width:Kr,marginRight:(1+Vi)%fn===0?0:Hn+Wi,marginBottom:ei}},te.createElement("a",{className:Pr.li,onClick:Ka=>{Ka.preventDefault(),vi&&(0,Jt.L9)([vi]),(0,Jt.xg)(dr.first_category_url)}},te.createElement("div",{className:Pr.creator},te.createElement("img",{className:Pr.img,src:Yt.Z.IMG_SERVER+"/images/"+dr.avatar_url}),te.createElement("div",{className:Pr.text,title:dr.creator},dr.creator)),te.createElement("div",{className:Pr.top},te.createElement(Ge.Z,{title:dr.name},te.createElement("div",{className:Pr.name},dr.name)),Ga&&te.createElement("div",{className:Pr.sign})),te.createElement("div",{className:Pr.middle},te.createElement("div",{className:Pr.row,style:{marginBottom:6}},te.createElement("div",null,te.createElement("span",{className:Pr.text},"\u8BBF\u95EE\u91CF"),te.createElement("span",{className:Pr.value},(dr==null?void 0:dr.visits)||0)),te.createElement("div",null,te.createElement("span",{className:Pr.text},"\u6210\u5458"),te.createElement("span",{className:Pr.value},(dr==null?void 0:dr.course_members_count)||0))),te.createElement("div",{className:Pr.row},te.createElement("div",null,te.createElement("span",{className:Pr.text,style:{width:42}},"\u4F5C",te.createElement("span",{style:{marginLeft:14}},"\u4E1A")),te.createElement("span",{className:Pr.value},(dr==null?void 0:dr.tasks_count)||0)),te.createElement("div",null,te.createElement("span",{className:Pr.text},"\u72B6\u6001"),dr.is_end?te.createElement("span",{className:Pr.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):te.createElement("span",{className:Pr.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),ha&&te.createElement("div",{className:Pr.btns},te.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),te.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!dr.is_accessible&&te.createElement("div",{className:Pr.lockWrap},te.createElement("img",{src:`${Yt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),te.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!rn.length&&te.createElement(wn.Z,null)))},Eo={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"},bo=he(35973),fo=({dataSource:tn=[],value:rn,onChange:fn,className:Hn,style:ei={},tabBarExtraContent:Wi})=>te.createElement("div",{className:ke()(Eo.tabs,Hn),style:ei},te.createElement("div",{className:Eo.tabsWrap},tn.map((Zn,Lr)=>te.createElement("aside",{className:Eo.tab,onClick:()=>{fn(Zn.id),Zn.link&&bo.history.push(Zn.link)},key:Lr},te.createElement("div",{className:rn===Zn.id?Eo.active:""},Zn.name),(Zn==null?void 0:Zn.resetCount)==null&&(Zn==null?void 0:Zn.total)!==void 0&&te.createElement("span",null,"\uFF08",Zn==null?void 0:Zn.total,"\uFF09"),(Zn==null?void 0:Zn.resetCount)!==void 0&&(Zn==null?void 0:Zn.total)!==void 0&&te.createElement(Ge.Z,{title:(Zn==null?void 0:Zn.tip)!=null?Zn==null?void 0:Zn.tip:""},te.createElement("span",{style:{color:"#9096A3"}},"\uFF08",te.createElement("span",{style:{color:"#000"}},Zn==null?void 0:Zn.resetCount),"/",te.createElement("span",null,Zn==null?void 0:Zn.total),"\uFF09"))))),te.createElement("div",{className:Eo.tabBar},Wi)),ka={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"},Fo=({dataSource:tn=[],value:rn,onChange:fn,className:Hn,style:ei={},tabBarExtraContent:Wi})=>te.createElement("div",{className:ke()(ka.tabs,Hn),style:ei},te.createElement("div",{className:ka.tabsWrap},tn.map((Zn,Lr)=>te.createElement("aside",{className:ka.tab,onClick:()=>{fn(Zn.id),Zn.link&&bo.history.push(Zn.link)},key:Lr},te.createElement("div",{className:rn===Zn.id?ka.active:""},Zn.name),(Zn==null?void 0:Zn.resetCount)==null&&(Zn==null?void 0:Zn.total)!==void 0&&te.createElement("span",null,"\uFF08",Zn==null?void 0:Zn.total,"\uFF09"),(Zn==null?void 0:Zn.resetCount)!==void 0&&(Zn==null?void 0:Zn.total)!==void 0&&te.createElement(Ge.Z,{title:(Zn==null?void 0:Zn.tip)!=null?Zn==null?void 0:Zn.tip:""},te.createElement("span",{style:{color:"#9096A3"}},"\uFF08",te.createElement("span",{style:{color:"#000"}},Zn==null?void 0:Zn.resetCount),"/",te.createElement("span",null,Zn==null?void 0:Zn.total),"\uFF09"))))),te.createElement("div",{className:ka.tabBar},Wi)),Xo={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"},Na=({dataSource:tn=[],value:rn,onChange:fn,className:Hn,style:ei={},tabBarExtraContent:Wi})=>te.createElement("div",{className:ke()(Xo.tabs,Hn),style:ei},te.createElement("div",{className:Xo.tabsWrap},tn.map((Zn,Lr)=>te.createElement("aside",{className:`${Xo.tab} ${rn===Zn.id?Xo.active:""}`,onClick:()=>{fn(Zn.id),Zn.link&&bo.history.push(Zn.link)},key:Lr},te.createElement("div",null,Zn.name),(Zn==null?void 0:Zn.resetCount)==null&&(Zn==null?void 0:Zn.total)!==void 0&&te.createElement("span",null,"\uFF08",Zn==null?void 0:Zn.total,"\uFF09"),(Zn==null?void 0:Zn.resetCount)!==void 0&&(Zn==null?void 0:Zn.total)!==void 0&&te.createElement(Ge.Z,{title:(Zn==null?void 0:Zn.tip)!=null?Zn==null?void 0:Zn.tip:""},te.createElement("span",{style:{color:"#9096A3"}},"\uFF08",te.createElement("span",{style:{color:"#000"}},Zn==null?void 0:Zn.resetCount),"/",te.createElement("span",null,Zn==null?void 0:Zn.total),"\uFF09"))))),te.createElement("div",{className:Xo.tabBar},Wi)),io=({className:tn,style:rn={},children:fn})=>te.createElement("div",{className:ke()(tn),style:rn},fn),lo={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"},cr=he(85418),Xi=he(68508);const br=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var fs=({sortValue:tn,dropValue:rn,className:fn,onSort:Hn,onDrop:ei,dataSource:Wi=br})=>{var Zn;return te.createElement("div",{className:ke()(lo.orderWrap,fn)},te.createElement(cr.Z,{dropdownRender:()=>te.createElement(Xi.default,null,Wi.map((Lr,vi)=>te.createElement(Xi.default.Item,{key:vi,onClick:()=>ei(Lr.id)},Lr.name)))},te.createElement("span",{className:lo.orderTextWrap},(Zn=Wi.find(Lr=>rn===Lr.id))==null?void 0:Zn.name)),te.createElement("span",{className:lo.orderIconWrap},te.createElement("span",{className:lo.orderAsc},te.createElement("i",{className:tn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${lo.cursorPointer} ${lo.active}`:`iconfont icon-sanjiaoxing-up font12 ${lo.cursorPointer}`,onClick:()=>Hn(tn==="asc"?"desc":"asc")})),te.createElement("span",{className:lo.orderDesc},te.createElement("i",{className:tn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${lo.cursorPointer} ${lo.active}`:`iconfont icon-sanjiaoxing-down font12 ${lo.cursorPointer}`,onClick:()=>Hn(tn==="asc"?"desc":"asc")}))))},ho={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 Ll=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var El=({sortValue:tn,dropValue:rn,className:fn,onSort:Hn,onDrop:ei,dataSource:Wi=Ll})=>{var Zn;return te.createElement("div",{className:ke()(ho.orderWrap,fn)},te.createElement(cr.Z,{dropdownRender:()=>te.createElement(Xi.default,null,Wi.map((Lr,vi)=>te.createElement(Xi.default.Item,{key:vi,onClick:()=>ei(Lr.id)},Lr.name)))},te.createElement("span",{className:ho.orderTextWrap},(Zn=Wi.find(Lr=>rn===Lr.id))==null?void 0:Zn.name)),te.createElement("span",{className:ho.orderIconWrap},te.createElement("span",{className:ho.orderAsc},te.createElement("i",{className:tn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ho.cursorPointer} ${ho.active}`:`iconfont icon-sanjiaoxing-up font12 ${ho.cursorPointer}`,onClick:()=>Hn(tn==="asc"?"desc":"asc")})),te.createElement("span",{className:ho.orderDesc},te.createElement("i",{className:tn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ho.cursorPointer} ${ho.active}`:`iconfont icon-sanjiaoxing-down font12 ${ho.cursorPointer}`,onClick:()=>Hn(tn==="asc"?"desc":"asc")}))))},Xn={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"},Go=he(71577),hs=he(52810),Ws=Object.defineProperty,xo=Object.getOwnPropertySymbols,co=Object.prototype.hasOwnProperty,Ho=Object.prototype.propertyIsEnumerable,ps=(tn,rn,fn)=>rn in tn?Ws(tn,rn,{enumerable:!0,configurable:!0,writable:!0,value:fn}):tn[rn]=fn,Ro=(tn,rn)=>{for(var fn in rn||(rn={}))co.call(rn,fn)&&ps(tn,fn,rn[fn]);if(xo)for(var fn of xo(rn))Ho.call(rn,fn)&&ps(tn,fn,rn[fn]);return tn},qo=(tn,rn)=>{var fn={};for(var Hn in tn)co.call(tn,Hn)&&rn.indexOf(Hn)<0&&(fn[Hn]=tn[Hn]);if(tn!=null&&xo)for(var Hn of xo(tn))rn.indexOf(Hn)<0&&Ho.call(tn,Hn)&&(fn[Hn]=tn[Hn]);return fn},Va=(tn,rn,fn)=>new Promise((Hn,ei)=>{var Wi=vi=>{try{Lr(fn.next(vi))}catch(qi){ei(qi)}},Zn=vi=>{try{Lr(fn.throw(vi))}catch(qi){ei(qi)}},Lr=vi=>vi.done?Hn(vi.value):Promise.resolve(vi.value).then(Wi,Zn);Lr((fn=fn.apply(tn,rn)).next())}),Vl=tn=>{var rn=tn,{className:fn,style:Hn,children:ei,loading:Wi=!1,openLoading:Zn,onClick:Lr=()=>{},size:vi="middle",shape:qi="round",theme:Kr}=rn,dr=qo(rn,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[Vi,ha]=(0,te.useState)(!1),Ea=(0,te.useMemo)(()=>{switch(Kr){case hs.Fy.THEMEONE:return Xn.ThemeOne;case hs.Fy.DEFAULT:default:return Xn.btn}},[Kr]);return te.createElement(Go.ZP,Ro({onClick:(0,we.throttle)(Ci=>Va(void 0,null,function*(){Zn&&ha(!0);try{yield Lr(Ci)}catch(fi){console.log("error",fi)}Zn&&ha(!1)}),2e3,{leading:!0,trailing:!1}),className:ke()(Ea,Xn[`${vi}-${qi}`],fn),style:Hn,size:vi,shape:qi,loading:Vi||Wi},dr),ei)},qs={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"},Ds=({className:tn,style:rn,children:fn=null,onClick:Hn,title:ei})=>te.createElement("div",{className:ke()(qs.head,tn),style:rn},te.createElement("span",{className:"primary-hover",onClick:Hn},te.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),te.createElement("b",{title:ei},ei),te.createElement("div",{className:qs.node},fn)),So={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"},Sl=({confirmShow:tn=!0,confirmTitle:rn,confirmClick:fn,cancelShow:Hn=!0,cancelTitle:ei,cancelClick:Wi,className:Zn,style:Lr,confirmLoading:vi=!1})=>te.createElement("div",{className:ke()(So.btns,Zn),style:Lr},tn&&te.createElement(Go.ZP,{loading:vi,onClick:fn,type:"primary",className:So.confirm},rn),Hn&&te.createElement(Go.ZP,{onClick:Wi,className:So.cancel},ei)),Vs={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"},Bs=({className:tn,style:rn={},LeftContent:fn,children:Hn,RightContent:ei})=>te.createElement("div",{className:ke()(Vs.fixedBottom,tn),style:rn},te.createElement("div",{className:Vs.wrap},te.createElement("div",{className:Vs.left},fn),te.createElement("div",{className:Vs.center},Hn),te.createElement("div",{className:Vs.right},ei))),Us={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"},ml=({className:tn,style:rn={},dataSource:fn=[]})=>te.createElement("div",{className:ke()(Us.crumbs,tn),style:rn},fn.map((Hn,ei)=>ei<fn.length-1?te.createElement(te.Fragment,{key:ei},Hn.path||Hn.onClick?te.createElement("span",{className:Us.hover,onClick:Hn!=null&&Hn.onClick?Hn.onClick:()=>bo.history.push(Hn.path)},Hn.name):te.createElement("span",null,Hn.name),te.createElement("span",null,"\xA0",">","\xA0")):te.createElement("span",{key:ei,style:{color:"#5F6368"}},Hn.name))),Ua=he(55054),_s=Object.defineProperty,ms=Object.defineProperties,Zs=Object.getOwnPropertyDescriptors,Ks=Object.getOwnPropertySymbols,sl=Object.prototype.hasOwnProperty,vs=Object.prototype.propertyIsEnumerable,gs=(tn,rn,fn)=>rn in tn?_s(tn,rn,{enumerable:!0,configurable:!0,writable:!0,value:fn}):tn[rn]=fn,_e=(tn,rn)=>{for(var fn in rn||(rn={}))sl.call(rn,fn)&&gs(tn,fn,rn[fn]);if(Ks)for(var fn of Ks(rn))vs.call(rn,fn)&&gs(tn,fn,rn[fn]);return tn},nt=(tn,rn)=>ms(tn,Zs(rn)),pn=(tn,rn)=>{var fn={};for(var Hn in tn)sl.call(tn,Hn)&&rn.indexOf(Hn)<0&&(fn[Hn]=tn[Hn]);if(tn!=null&&Ks)for(var Hn of Ks(tn))rn.indexOf(Hn)<0&&vs.call(tn,Hn)&&(fn[Hn]=tn[Hn]);return fn};const{Countdown:Ae}=Ua.default;var Ft=tn=>{var rn=tn,{onChange:fn}=rn,Hn=pn(rn,["onChange"]);const[ei,Wi]=(0,te.useState)(null);(0,te.useEffect)(()=>{typeof ei=="number"&&ei>=0&&fn(ei)},[ei]);const Zn=Lr=>{const vi=Math.floor(Lr/1e3);Wi(vi)};return te.createElement(Ae,nt(_e({},Hn),{onChange:Zn}))},an={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},In=({DataProps:tn,className:rn,style:fn={}})=>{var Hn;return te.createElement("div",{className:ke()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",an.ClassRoomItem,rn),style:fn,onClick:()=>{(0,Jt.xg)(tn==null?void 0:tn.first_category_url)}},te.createElement("div",{className:"flex flex-col item-center"},te.createElement("img",{src:`${(Hn=Yt.Z)==null?void 0:Hn.IMG_SERVER}/images/${tn==null?void 0:tn.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(tn==null?void 0:tn.subject_identifier)&&te.createElement("div",{className:"mt-40px"},te.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),te.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),te.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},te.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(tn!=null&&tn.is_public)&&te.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"),te.createElement("span",{className:ke()("text-16px font-medium",an.TitleDom)},tn==null?void 0:tn.name)),te.createElement("div",{className:"c-grey-333 font-medium"},tn==null?void 0:tn.creator),te.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",tn==null?void 0:tn.course_members_count),te.createElement("div",{className:"c-grey-333 flex item-center justify-between"},te.createElement("div",null,"\u4F5C\u4E1A\uFF1A",tn==null?void 0:tn.tasks_count),tn!=null&&tn.is_end?te.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):te.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},zn=Object.defineProperty,Rn=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,sn=Object.prototype.propertyIsEnumerable,Bn=(tn,rn,fn)=>rn in tn?zn(tn,rn,{enumerable:!0,configurable:!0,writable:!0,value:fn}):tn[rn]=fn,Tn=(tn,rn)=>{for(var fn in rn||(rn={}))Mn.call(rn,fn)&&Bn(tn,fn,rn[fn]);if(Rn)for(var fn of Rn(rn))sn.call(rn,fn)&&Bn(tn,fn,rn[fn]);return tn},Zr=({DataProps:tn=[],selectValue:rn,onChange:fn,className:Hn,style:ei={},extra:Wi,classNameItem:Zn,styleItem:Lr={},barHidden:vi})=>{const[qi,Kr]=(0,te.useState)();return(0,te.useEffect)(()=>{Kr(Array.isArray(rn)?rn:[rn])},[rn]),te.createElement("div",{className:ke()("flex px-20px py-10px gap-40px",Hn),style:Tn({borderBottom:"1px solid #D3F0FF"},ei)},tn==null?void 0:tn.map(dr=>te.createElement("div",{key:dr==null?void 0:dr.id,className:ke()("flex item-center justify-center current c-grey-333 text-16 relative",Zn,dr==null?void 0:dr.className),style:Tn(Tn({color:qi!=null&&qi.includes(dr==null?void 0:dr.id)?"#1890FF":"",minWidth:88},Lr),(dr==null?void 0:dr.style)||{}),onClick:Vi=>{fn==null||fn({domEvent:Vi,item:dr}),dr!=null&&dr.link&&bo.history.push(dr==null?void 0:dr.link)}},dr==null?void 0:dr.name,!vi&&(qi==null?void 0:qi.includes(dr==null?void 0:dr.id))&&te.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),te.createElement("div",{className:"ml-auto"},Wi))},li=Object.defineProperty,Gi=Object.defineProperties,Oi=Object.getOwnPropertyDescriptors,fa=Object.getOwnPropertySymbols,xa=Object.prototype.hasOwnProperty,Oa=Object.prototype.propertyIsEnumerable,_a=(tn,rn,fn)=>rn in tn?li(tn,rn,{enumerable:!0,configurable:!0,writable:!0,value:fn}):tn[rn]=fn,$a=(tn,rn)=>{for(var fn in rn||(rn={}))xa.call(rn,fn)&&_a(tn,fn,rn[fn]);if(fa)for(var fn of fa(rn))Oa.call(rn,fn)&&_a(tn,fn,rn[fn]);return tn},Pa=(tn,rn)=>Gi(tn,Oi(rn)),Po=({value:tn,onChange:rn,onInputChange:fn,className:Hn,style:ei={},InputProps:Wi})=>{const[Zn,Lr]=(0,te.useState)(tn);return te.createElement("div",{className:ke()("flex item-center rounded-full px-10px py-2px",Hn),style:$a({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},ei)},te.createElement(Qt.default,Pa($a({bordered:!1},Wi),{onChange:vi=>{Lr(vi.target.value),fn==null||fn(encodeURIComponent(vi.target.value))},onPressEnter:vi=>{rn==null||rn({domEvent:vi,item:{value:Zn}})}})),te.createElement("img",{className:"h-22px current",src:he(25365),height:22,onClick:vi=>{rn==null||rn({domEvent:vi,item:{value:Zn}})}}))}},99914:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return Ee}});var te=he(67294);function Ee(lt,ct){const Ve=(0,te.useRef)();(0,te.useEffect)(()=>{Ve.current=lt}),(0,te.useEffect)(()=>{function Re(){Ve.current()}if(ct!==null){let it=setInterval(Re,ct);return()=>clearInterval(it)}},[ct])}},92359:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return $e}});var te=he(67294),Ee=he(2453),lt=he(14446),ct=he(85546),Ve=he(59810),Re=he(71577),it=he(11320),ke=he(28706),we=he(33170),at=he(35973),tt={customModal:"customModal___bVzUV",content:"content___oKhZq",upload:"upload___nPxEL",infoText:"infoText___gZEJF",okBtn:"okBtn___CVo2A",fileList:"fileList___tauGN",fileName:"fileName___T_8JX",selectitems:"selectitems___imW2Y"},ve=he(67294),kt=(dt,Qe,et)=>new Promise((ft,Je)=>{var ot=zt=>{try{yt(et.next(zt))}catch(Xt){Je(Xt)}},ht=zt=>{try{yt(et.throw(zt))}catch(Xt){Je(Xt)}},yt=zt=>zt.done?ft(zt.value):Promise.resolve(zt.value).then(ot,ht);yt((et=et.apply(dt,Qe)).next())}),$e=({visible:dt,onOk:Qe,onCancel:et,sub_discipline_id:ft=[]})=>{const[Je,ot]=(0,te.useState)([]),[ht,yt]=(0,te.useState)(!1),zt=(0,at.useParams)(),[Xt,Qt]=(0,te.useState)([]),[Ht,wt]=(0,te.useState)([]);(0,te.useEffect)(()=>{dt?Ye():(wt([]),ot([]),yt(!1))},[dt]);const Ye=()=>kt(void 0,null,function*(){const Gt=yield(0,we.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});Qt(Gt.disciplines||[]),wt((ft==null?void 0:ft.length)>0?ft:[])}),pt=()=>{if((Ht==null?void 0:Ht.length)===0)return Ee.ZP.warning("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF01");console.log("subDisciplineId",Ht),yt(!0),Qe(Je,Ht[1],()=>{yt(!1)})},qe=()=>{et()},ut=()=>{const Gt=`${it.Z.API_SERVER}/api/courses/${zt.coursesId}/exercises/down_template`;(0,ke.Nd)(null,Gt)},Oe=Gt=>{const un={name:Gt.name,uid:Gt.uid,file:Gt};return ot([un]),!1},Ot=()=>{ot([])};return ve.createElement(lt.default,{title:"\u5BFC\u5165\u8BD5\u9898",open:dt,onOk:pt,centered:!0,wrapClassName:tt.customModal,onCancel:qe,width:663,okText:"\u786E\u8BA4",okButtonProps:{className:tt.okBtn},cancelText:"\u53D6\u6D88",confirmLoading:ht},ve.createElement("div",{className:tt.content},ve.createElement("aside",null,ve.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA41"),ve.createElement("ul",null,ve.createElement("li",null,ve.createElement("span",{style:{color:"#5F6367"}},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),ve.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginLeft:20},onClick:ut},"\u4E0B\u8F7D\u8003\u8BD5\u8BD5\u9898\u6A21\u677F"),ve.createElement("i",{className:"iconfont icon-xiazai4 ml10",onClick:ut,style:{fontSize:14,cursor:"pointer",color:"#0152d9"}})),ve.createElement("li",{style:{color:"#FA6400"},className:"mt10"},"\u63D0\u793A"),ve.createElement("li",{className:tt.infoText},"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B "),ve.createElement("li",{className:tt.infoText},"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),ve.createElement("li",{className:tt.infoText},"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),ve.createElement("li",{className:tt.infoText},"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))),ve.createElement("aside",{style:{marginTop:22}},ve.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA42"),ve.createElement("ul",{style:{flex:1}},ve.createElement("li",{style:{color:"#5F6367"}},"\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF0C\u4E0A\u4F20\u7F16\u8F91\u597D\u7684\u8BD5\u9898\u6587\u6863\uFF0C\u786E\u5B9A\u5BFC\u5165"),dt&&ve.createElement(ve.Fragment,null,ve.createElement(ct.Z,{value:Ht,className:tt.selectitems,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Xt,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(Gt,un)=>{wt(Gt||[])}}),ve.createElement("br",null),ve.createElement(Ve.default,{action:`${it.Z.API_SERVER}/api/attachments.json`,beforeUpload:Oe,onRemove:Ot,withCredentials:!0,fileList:Je,accept:".xls,.xlsx",showUploadList:!1},ve.createElement(Re.ZP,{className:tt.upload,type:"primary",icon:ve.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6"))),Je.map((Gt,un)=>ve.createElement("div",{key:un,className:tt.fileList},ve.createElement("span",{className:tt.fileName},Gt==null?void 0:Gt.name),ve.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:16,cursor:"pointer"},onClick:Ot})))))))}},96707:function(dn,vn,he){"use strict";he.d(vn,{h:function(){return te}});var te=(Ee=>(Ee[Ee.NOMATCH=-1]="NOMATCH",Ee[Ee.OK=0]="OK",Ee[Ee.TIMEOUT=2]="TIMEOUT",Ee[Ee.PODFAILURE=3]="PODFAILURE",Ee[Ee.COMPILEFAILURE=4]="COMPILEFAILURE",Ee[Ee.EXECUTEFAILURE=5]="EXECUTEFAILURE",Ee[Ee.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",Ee))(te||{})},88742:function(dn,vn,he){"use strict";he.d(vn,{H7:function(){return $e},MK:function(){return bt},MU:function(){return at},X6:function(){return ve},bM:function(){return we},fi:function(){return dt},fu:function(){return ke},n4:function(){return Qe},rX:function(){return kt},vl:function(){return et},zO:function(){return tt}});var te=he(33170),Ee=Object.defineProperty,lt=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Re=(ft,Je,ot)=>Je in ft?Ee(ft,Je,{enumerable:!0,configurable:!0,writable:!0,value:ot}):ft[Je]=ot,it=(ft,Je)=>{for(var ot in Je||(Je={}))ct.call(Je,ot)&&Re(ft,ot,Je[ot]);if(lt)for(var ot of lt(Je))Ve.call(Je,ot)&&Re(ft,ot,Je[ot]);return ft};function ke(ft,Je){return(0,te.U2)(`myproblems/${ft}.json`,it({hidePopLogin:!0},Je||{}))}function we(ft,Je){return(0,te.v_)(`myproblems/${ft}/code_submit.json`,Je)}function at(ft,Je){return(0,te.v_)(`myproblems/${ft}/code_debug.json`,Je)}function tt(ft,Je){return Je.language&&(Je.language=encodeURIComponent(Je.language)),(0,te.U2)(`myproblems/${ft}/submit_records.json`,Je)}function ve(ft){return(0,te.U2)("myproblems/record_detail.json",{id:ft})}function kt(ft,Je){return(0,te.U2)(`myproblems/${ft}/result.json`,{mode:Je})}function bt(ft,Je){return(0,te.v_)(`myproblems/${ft}/add_notes.json`,Je)}function $e(ft,Je){return(0,te.v_)(`myproblems/${ft}/restore_initial_code.json`,Je)}function dt(ft){return(0,te.v_)(`myproblems/${ft}/sync_code.json`)}function Qe(ft,Je){return(0,te.v_)(`myproblems/${ft}/update_code.json`,Je)}function et(ft,Je){return(0,te.v_)(`discusses/${ft}/plus.json`,Je)}},50637:function(dn,vn,he){"use strict";var te=he(67294),Ee=he(83062),lt=he(69677),ct=he(2453),Ve=he(62038),Re=he(67294),it=(we,at,tt)=>new Promise((ve,kt)=>{var bt=Qe=>{try{dt(tt.next(Qe))}catch(et){kt(et)}},$e=Qe=>{try{dt(tt.throw(Qe))}catch(et){kt(et)}},dt=Qe=>Qe.done?ve(Qe.value):Promise.resolve(Qe.value).then(bt,$e);dt((tt=tt.apply(we,at)).next())});const ke=({defaultValue:we,onFinish:at})=>{const[tt,ve]=(0,te.useState)(!1),[kt,bt]=(0,te.useState)(we);return(0,te.useEffect)(()=>{bt(we)},[we]),Re.createElement("div",null,tt?Re.createElement(lt.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:kt,onChange:$e=>{bt($e.target.value)},onBlur:()=>it(void 0,null,function*(){var $e;if((($e=kt==null?void 0:kt.replaceAll(" ",""))==null?void 0:$e.length)<=0){ct.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield at(kt))&&ve(!1)}),onPressEnter:()=>it(void 0,null,function*(){var $e;if((($e=kt==null?void 0:kt.replaceAll(" ",""))==null?void 0:$e.length)<=0){ct.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield at(kt))&&ve(!1)})}):Re.createElement("div",{className:Ve.Z.title},kt,Re.createElement(Ee.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},Re.createElement("i",{className:`${Ve.Z.editIcon} iconfont icon-bianji_Hover`,onClick:()=>ve(!0)}))))};vn.Z=ke},99640:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return at}});var te=he(14446),Ee={ul:"ul___TdfYY"},lt=he(32637),ct=he(67294),Ve=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,ke=(tt,ve)=>{var kt={};for(var bt in tt)Re.call(tt,bt)&&ve.indexOf(bt)<0&&(kt[bt]=tt[bt]);if(tt!=null&&Ve)for(var bt of Ve(tt))ve.indexOf(bt)<0&&it.call(tt,bt)&&(kt[bt]=tt[bt]);return kt},at=tt=>{var ve=tt,{open:kt,onCancel:bt}=ve,$e=ke(ve,["open","onCancel"]);return ct.createElement(te.default,{centered:!0,open:kt,title:ct.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:bt,footer:null},ct.createElement("div",null,ct.createElement("div",{className:"tc"},ct.createElement("img",{className:"mt10",src:lt,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),ct.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),ct.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),ct.createElement("div",{style:{color:"#333"},className:"pt30 font14"},ct.createElement("ul",{className:Ee.ul},ct.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),ct.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),ct.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},84223:function(dn,vn,he){"use strict";he.d(vn,{I:function(){return Ee}});var te=he(67294);const Ee=()=>{const[lt,ct]=(0,te.useState)("hidden");return{overflow:lt,handleMouseEnter:()=>ct("auto"),handleMouseLeave:()=>ct("hidden")}}},81643:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return te}});const te=Ee=>Ee?typeof Ee=="function"?Ee():Ee:null},85673:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return ut}});var te=he(94184),Ee=he.n(te),lt=he(37419),ct=he(1337),Ve=he(67294),Re=he(96159),it=he(53124),ke=he(42922),we=he(35874);const at=Oe=>{let{children:Ot}=Oe;const{getPrefixCls:Gt}=Ve.useContext(it.E_),un=Gt("breadcrumb");return Ve.createElement("li",{className:`${un}-separator`,"aria-hidden":"true"},Ot===""?Ot:Ot||"/")};at.__ANT_BREADCRUMB_SEPARATOR=!0;var tt=at,ve=function(Oe,Ot){var Gt={};for(var un in Oe)Object.prototype.hasOwnProperty.call(Oe,un)&&Ot.indexOf(un)<0&&(Gt[un]=Oe[un]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,un=Object.getOwnPropertySymbols(Oe);Ge<un.length;Ge++)Ot.indexOf(un[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Oe,un[Ge])&&(Gt[un[Ge]]=Oe[un[Ge]]);return Gt};function kt(Oe,Ot){if(Oe.title===void 0||Oe.title===null)return null;const Gt=Object.keys(Ot).join("|");return typeof Oe.title=="object"?Oe.title:String(Oe.title).replace(new RegExp(`:(${Gt})`,"g"),(un,Ge)=>Ot[Ge]||un)}function bt(Oe,Ot,Gt,un){if(Gt==null)return null;const{className:Ge,onClick:Ke}=Ot,Yt=ve(Ot,["className","onClick"]),Jt=Object.assign(Object.assign({},(0,ct.Z)(Yt,{data:!0,aria:!0})),{onClick:Ke});return un!==void 0?Ve.createElement("a",Object.assign({},Jt,{className:Ee()(`${Oe}-link`,Ge),href:un}),Gt):Ve.createElement("span",Object.assign({},Jt,{className:Ee()(`${Oe}-link`,Ge)}),Gt)}function $e(Oe,Ot){return(un,Ge,Ke,Yt,Jt)=>{if(Ot)return Ot(un,Ge,Ke,Yt);const cn=kt(un,Ge);return bt(Oe,un,cn,Jt)}}var dt=function(Oe,Ot){var Gt={};for(var un in Oe)Object.prototype.hasOwnProperty.call(Oe,un)&&Ot.indexOf(un)<0&&(Gt[un]=Oe[un]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,un=Object.getOwnPropertySymbols(Oe);Ge<un.length;Ge++)Ot.indexOf(un[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Oe,un[Ge])&&(Gt[un[Ge]]=Oe[un[Ge]]);return Gt};const Qe=Oe=>{const{prefixCls:Ot,separator:Gt="/",children:un,menu:Ge,overlay:Ke,dropdownProps:Yt,href:Jt}=Oe,Lt=(Dt=>{if(Ge||Ke){const wn=Object.assign({},Yt);if(Ge){const _n=Ge||{},{items:on}=_n,kn=dt(_n,["items"]);wn.menu=Object.assign(Object.assign({},kn),{items:on==null?void 0:on.map((xn,Vn)=>{var{key:er,title:Me,label:ce,path:fe}=xn,be=dt(xn,["key","title","label","path"]);let ge=ce!=null?ce:Me;return fe&&(ge=Ve.createElement("a",{href:`${Jt}${fe}`},ge)),Object.assign(Object.assign({},be),{key:er!=null?er:Vn,label:ge})})})}else Ke&&(wn.overlay=Ke);return Ve.createElement(we.Z,Object.assign({placement:"bottom"},wn),Ve.createElement("span",{className:`${Ot}-overlay-link`},Dt,Ve.createElement(ke.Z,null)))}return Dt})(un);return Lt!=null?Ve.createElement(Ve.Fragment,null,Ve.createElement("li",null,Lt),Gt&&Ve.createElement(tt,null,Gt)):null},et=Oe=>{const{prefixCls:Ot,children:Gt,href:un}=Oe,Ge=dt(Oe,["prefixCls","children","href"]),{getPrefixCls:Ke}=Ve.useContext(it.E_),Yt=Ke("breadcrumb",Ot);return Ve.createElement(Qe,Object.assign({},Ge,{prefixCls:Yt}),bt(Yt,Ge,Gt,un))};et.__ANT_BREADCRUMB_ITEM=!0;var ft=et,Je=he(14747),ot=he(67968),ht=he(45503);const yt=Oe=>{const{componentCls:Ot,iconCls:Gt}=Oe;return{[Ot]:Object.assign(Object.assign({},(0,Je.Wf)(Oe)),{color:Oe.itemColor,fontSize:Oe.fontSize,[Gt]:{fontSize:Oe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Oe.linkColor,transition:`color ${Oe.motionDurationMid}`,padding:`0 ${Oe.paddingXXS}px`,borderRadius:Oe.borderRadiusSM,height:Oe.lineHeight*Oe.fontSize,display:"inline-block",marginInline:-Oe.marginXXS,"&:hover":{color:Oe.linkHoverColor,backgroundColor:Oe.colorBgTextHover}},(0,Je.Qy)(Oe)),"li:last-child":{color:Oe.lastItemColor},[`${Ot}-separator`]:{marginInline:Oe.separatorMargin,color:Oe.separatorColor},[`${Ot}-link`]:{[`
|
|
|
> ${Gt} + span,
|
|
|
> ${Gt} + a
|
|
|
`]:{marginInlineStart:Oe.marginXXS}},[`${Ot}-overlay-link`]:{borderRadius:Oe.borderRadiusSM,height:Oe.lineHeight*Oe.fontSize,display:"inline-block",padding:`0 ${Oe.paddingXXS}px`,marginInline:-Oe.marginXXS,[`> ${Gt}`]:{marginInlineStart:Oe.marginXXS,fontSize:Oe.fontSizeIcon},"&:hover":{color:Oe.linkHoverColor,backgroundColor:Oe.colorBgTextHover,a:{color:Oe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Oe.componentCls}-rtl`]:{direction:"rtl"}})}};var zt=(0,ot.Z)("Breadcrumb",Oe=>{const Ot=(0,ht.TS)(Oe,{});return[yt(Ot)]},Oe=>({itemColor:Oe.colorTextDescription,lastItemColor:Oe.colorText,iconFontSize:Oe.fontSize,linkColor:Oe.colorTextDescription,linkHoverColor:Oe.colorText,separatorColor:Oe.colorTextDescription,separatorMargin:Oe.marginXS})),Xt=function(Oe,Ot){var Gt={};for(var un in Oe)Object.prototype.hasOwnProperty.call(Oe,un)&&Ot.indexOf(un)<0&&(Gt[un]=Oe[un]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,un=Object.getOwnPropertySymbols(Oe);Ge<un.length;Ge++)Ot.indexOf(un[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Oe,un[Ge])&&(Gt[un[Ge]]=Oe[un[Ge]]);return Gt};function Qt(Oe){const{breadcrumbName:Ot,children:Gt}=Oe,un=Xt(Oe,["breadcrumbName","children"]),Ge=Object.assign({title:Ot},un);return Gt&&(Ge.menu={items:Gt.map(Ke=>{var{breadcrumbName:Yt}=Ke,Jt=Xt(Ke,["breadcrumbName"]);return Object.assign(Object.assign({},Jt),{title:Yt})})}),Ge}function Ht(Oe,Ot){return(0,Ve.useMemo)(()=>Oe||(Ot?Ot.map(Qt):null),[Oe,Ot])}var wt=function(Oe,Ot){var Gt={};for(var un in Oe)Object.prototype.hasOwnProperty.call(Oe,un)&&Ot.indexOf(un)<0&&(Gt[un]=Oe[un]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,un=Object.getOwnPropertySymbols(Oe);Ge<un.length;Ge++)Ot.indexOf(un[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Oe,un[Ge])&&(Gt[un[Ge]]=Oe[un[Ge]]);return Gt};const Ye=(Oe,Ot)=>{if(Ot===void 0)return Ot;let Gt=(Ot||"").replace(/^\//,"");return Object.keys(Oe).forEach(un=>{Gt=Gt.replace(`:${un}`,Oe[un])}),Gt},pt=Oe=>{const{prefixCls:Ot,separator:Gt="/",style:un,className:Ge,rootClassName:Ke,routes:Yt,items:Jt,children:cn,itemRender:Lt,params:Dt={}}=Oe,wn=wt(Oe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:_n,direction:on,breadcrumb:kn}=Ve.useContext(it.E_);let xn;const Vn=_n("breadcrumb",Ot),[er,Me]=zt(Vn),ce=Ht(Jt,Yt),fe=$e(Vn,Lt);if(ce&&ce.length>0){const ue=[],Xe=Jt||Yt;xn=ce.map((_t,Zt)=>{const{path:Dn,key:An,type:yn,menu:nn,overlay:Ar,onClick:Dr,className:ln,separator:jn,dropdownProps:wi}=_t,$r=Ye(Dt,Dn);$r!==void 0&&ue.push($r);const Ir=An!=null?An:Zt;if(yn==="separator")return Ve.createElement(tt,{key:Ir},jn);const Or={},Ca=Zt===ce.length-1;nn?Or.menu=nn:Ar&&(Or.overlay=Ar);let{href:ur}=_t;return ue.length&&$r!==void 0&&(ur=`#/${ue.join("/")}`),Ve.createElement(Qe,Object.assign({key:Ir},Or,(0,ct.Z)(_t,{data:!0,aria:!0}),{className:ln,dropdownProps:wi,href:ur,separator:Ca?"":Gt,onClick:Dr,prefixCls:Vn}),fe(_t,Dt,Xe,ue,ur))})}else if(cn){const ue=(0,lt.Z)(cn).length;xn=(0,lt.Z)(cn).map((Xe,_t)=>{if(!Xe)return Xe;const Zt=_t===ue-1;return(0,Re.Tm)(Xe,{separator:Zt?"":Gt,key:_t})})}const be=Ee()(Vn,kn==null?void 0:kn.className,{[`${Vn}-rtl`]:on==="rtl"},Ge,Ke,Me),ge=Object.assign(Object.assign({},kn==null?void 0:kn.style),un);return er(Ve.createElement("nav",Object.assign({className:be,style:ge},wn),Ve.createElement("ol",null,xn)))};pt.Item=ft,pt.Separator=tt;var qe=pt,ut=qe},85546:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return ls}});var te=he(74902),Ee=he(67294),lt=he(22751),ct=he(3407),Ve=he(91034),Re=he(94184),it=he.n(Re),ke=he(87462),we=he(97685),at=he(45987),tt=he(4942),ve=he(1413),kt=he(71002);function bt(Te){var He=Ee.useRef();He.current=Te;var Nt=Ee.useCallback(function(){for(var Tt,hn=arguments.length,En=new Array(hn),Nn=0;Nn<hn;Nn++)En[Nn]=arguments[Nn];return(Tt=He.current)===null||Tt===void 0?void 0:Tt.call.apply(Tt,[He].concat(En))},[]);return Nt}function $e(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var dt=$e()?Ee.useLayoutEffect:Ee.useEffect,Qe=dt,et=function(He,Nt){var Tt=Ee.useRef(!0);dt(function(){if(!Tt.current)return He()},Nt),dt(function(){return Tt.current=!1,function(){Tt.current=!0}},[])};function ft(Te){var He=Ee.useRef(!1),Nt=Ee.useState(Te),Tt=(0,we.Z)(Nt,2),hn=Tt[0],En=Tt[1];Ee.useEffect(function(){return He.current=!1,function(){He.current=!0}},[]);function Nn(or,lr){lr&&He.current||En(or)}return[hn,Nn]}function Je(Te){return Te!==void 0}function ot(Te,He){var Nt=He||{},Tt=Nt.defaultValue,hn=Nt.value,En=Nt.onChange,Nn=Nt.postState,or=ft(function(){return Je(hn)?hn:Je(Tt)?typeof Tt=="function"?Tt():Tt:typeof Te=="function"?Te():Te}),lr=(0,we.Z)(or,2),vr=lr[0],si=lr[1],Fr=hn!==void 0?hn:vr,hi=Nn?Nn(Fr):Fr,Mr=bt(En),ti=ft([Fr]),Rr=(0,we.Z)(ti,2),pi=Rr[0],ki=Rr[1];et(function(){var We=pi[0];vr!==We&&Mr(vr,We)},[pi]),et(function(){Je(hn)||si(hn)},[hn]);var Be=bt(function(We,Ct){si(We,Ct),ki([Fr],Ct)});return[hi,Be]}var ht={};function yt(Te,He){}function zt(Te,He){}function Xt(){ht={}}function Qt(Te,He,Nt){!He&&!ht[Nt]&&(Te(!1,Nt),ht[Nt]=!0)}function Ht(Te,He){Qt(yt,Te,He)}function wt(Te,He){Qt(zt,Te,He)}var Ye=Ht,pt=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))},qe={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(He){var Nt=He.keyCode;if(He.altKey&&!He.ctrlKey||He.metaKey||Nt>=qe.F1&&Nt<=qe.F12)return!1;switch(Nt){case qe.ALT:case qe.CAPS_LOCK:case qe.CONTEXT_MENU:case qe.CTRL:case qe.DOWN:case qe.END:case qe.ESC:case qe.HOME:case qe.INSERT:case qe.LEFT:case qe.MAC_FF_META:case qe.META:case qe.NUMLOCK:case qe.NUM_CENTER:case qe.PAGE_DOWN:case qe.PAGE_UP:case qe.PAUSE:case qe.PRINT_SCREEN:case qe.RIGHT:case qe.SHIFT:case qe.UP:case qe.WIN_KEY:case qe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(He){if(He>=qe.ZERO&&He<=qe.NINE||He>=qe.NUM_ZERO&&He<=qe.NUM_MULTIPLY||He>=qe.A&&He<=qe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&He===0)return!0;switch(He){case qe.SPACE:case qe.QUESTION_MARK:case qe.NUM_PLUS:case qe.NUM_MINUS:case qe.NUM_PERIOD:case qe.NUM_DIVISION:case qe.SEMICOLON:case qe.DASH:case qe.EQUALS:case qe.COMMA:case qe.PERIOD:case qe.SLASH:case qe.APOSTROPHE:case qe.SINGLE_QUOTE:case qe.OPEN_SQUARE_BRACKET:case qe.BACKSLASH:case qe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ut=qe,Oe=he(16357);function Ot(Te,He,Nt){var Tt=Ee.useRef({});return(!("value"in Tt.current)||Nt(Tt.current.condition,He))&&(Tt.current.value=Te(),Tt.current.condition=He),Tt.current.value}function Gt(Te,He){typeof Te=="function"?Te(He):(0,kt.Z)(Te)==="object"&&Te&&"current"in Te&&(Te.current=He)}function un(){for(var Te=arguments.length,He=new Array(Te),Nt=0;Nt<Te;Nt++)He[Nt]=arguments[Nt];var Tt=He.filter(function(hn){return hn});return Tt.length<=1?Tt[0]:function(hn){He.forEach(function(En){Gt(En,hn)})}}function Ge(){for(var Te=arguments.length,He=new Array(Te),Nt=0;Nt<Te;Nt++)He[Nt]=arguments[Nt];return Ot(function(){return un.apply(void 0,He)},He,function(Tt,hn){return Tt.length===hn.length&&Tt.every(function(En,Nn){return En===hn[Nn]})})}function Ke(Te){var He,Nt,Tt=isMemo(Te)?Te.type.type:Te.type;return!(typeof Tt=="function"&&!((He=Tt.prototype)!==null&&He!==void 0&&He.render)||typeof Te=="function"&&!((Nt=Te.prototype)!==null&&Nt!==void 0&&Nt.render))}var Yt=function(He){var Nt=He.className,Tt=He.customizeIcon,hn=He.customizeIconProps,En=He.onMouseDown,Nn=He.onClick,or=He.children,lr;return typeof Tt=="function"?lr=Tt(hn):lr=Tt,Ee.createElement("span",{className:Nt,onMouseDown:function(si){si.preventDefault(),En&&En(si)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Nn,"aria-hidden":!0},lr!==void 0?lr:Ee.createElement("span",{className:it()(Nt.split(/\s+/).map(function(vr){return"".concat(vr,"-icon")}))},or))},Jt=Yt;function cn(Te,He,Nt,Tt,hn){var En=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Nn=arguments.length>6?arguments[6]:void 0,or=arguments.length>7?arguments[7]:void 0,lr=Ee.useMemo(function(){if((0,kt.Z)(Tt)==="object")return Tt.clearIcon;if(hn)return hn},[Tt,hn]),vr=Ee.useMemo(function(){return!!(!En&&Tt&&(Nt.length||Nn)&&!(or==="combobox"&&Nn===""))},[Tt,En,Nt.length,Nn,or]);return{allowClear:vr,clearIcon:Ee.createElement(Jt,{className:"".concat(Te,"-clear"),onMouseDown:He,customizeIcon:lr},"\xD7")}}var Lt=Ee.createContext(null);function Dt(){return Ee.useContext(Lt)}function wn(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,He=Ee.useState(!1),Nt=(0,we.Z)(He,2),Tt=Nt[0],hn=Nt[1],En=Ee.useRef(null),Nn=function(){window.clearTimeout(En.current)};Ee.useEffect(function(){return Nn},[]);var or=function(vr,si){Nn(),En.current=window.setTimeout(function(){hn(vr),si&&si()},Te)};return[Tt,or,Nn]}function _n(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,He=Ee.useRef(null),Nt=Ee.useRef(null);Ee.useEffect(function(){return function(){window.clearTimeout(Nt.current)}},[]);function Tt(hn){(hn||He.current===null)&&(He.current=hn),window.clearTimeout(Nt.current),Nt.current=window.setTimeout(function(){He.current=null},Te)}return[function(){return He.current},Tt]}function on(Te,He,Nt,Tt){var hn=Ee.useRef(null);hn.current={open:He,triggerOpen:Nt,customizedTrigger:Tt},Ee.useEffect(function(){function En(Nn){var or;if(!((or=hn.current)!==null&&or!==void 0&&or.customizedTrigger)){var lr=Nn.target;lr.shadowRoot&&Nn.composed&&(lr=Nn.composedPath()[0]||lr),hn.current.open&&Te().filter(function(vr){return vr}).every(function(vr){return!vr.contains(lr)&&vr!==lr})&&hn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",En),function(){return window.removeEventListener("mousedown",En)}},[])}var kn=`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`,xn=`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`,Vn="".concat(kn," ").concat(xn).split(/[\s\n]+/),er="aria-",Me="data-";function ce(Te,He){return Te.indexOf(He)===0}function fe(Te){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Nt;He===!1?Nt={aria:!0,data:!0,attr:!0}:He===!0?Nt={aria:!0}:Nt=(0,ve.Z)({},He);var Tt={};return Object.keys(Te).forEach(function(hn){(Nt.aria&&(hn==="role"||ce(hn,er))||Nt.data&&ce(hn,Me)||Nt.attr&&Vn.includes(hn))&&(Tt[hn]=Te[hn])}),Tt}var be=he(48555);function ge(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ue=ge()?Ee.useLayoutEffect:Ee.useEffect,Xe=function(He,Nt){var Tt=Ee.useRef(!0);ue(function(){return He(Tt.current)},Nt),ue(function(){return Tt.current=!1,function(){Tt.current=!0}},[])},_t=function(He,Nt){Xe(function(Tt){if(!Tt)return He()},Nt)},Zt=Xe,Dn=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],An=void 0;function yn(Te,He){var Nt=Te.prefixCls,Tt=Te.invalidate,hn=Te.item,En=Te.renderItem,Nn=Te.responsive,or=Te.responsiveDisabled,lr=Te.registerSize,vr=Te.itemKey,si=Te.className,Fr=Te.style,hi=Te.children,Mr=Te.display,ti=Te.order,Rr=Te.component,pi=Rr===void 0?"div":Rr,ki=(0,at.Z)(Te,Dn),Be=Nn&&!Mr;function We(Kt){lr(vr,Kt)}Ee.useEffect(function(){return function(){We(null)}},[]);var Ct=En&&hn!==An?En(hn):hi,De;Tt||(De={opacity:Be?0:1,height:Be?0:An,overflowY:Be?"hidden":An,order:Nn?ti:An,pointerEvents:Be?"none":An,position:Be?"absolute":An});var vt={};Be&&(vt["aria-hidden"]=!0);var Mt=Ee.createElement(pi,(0,ke.Z)({className:it()(!Tt&&Nt,si),style:(0,ve.Z)((0,ve.Z)({},De),Fr)},vt,ki,{ref:He}),Ct);return Nn&&(Mt=Ee.createElement(be.Z,{onResize:function(rt){var gt=rt.offsetWidth;We(gt)},disabled:or},Mt)),Mt}var nn=Ee.forwardRef(yn);nn.displayName="Item";var Ar=nn;function Dr(Te){var He=Ee.useRef();He.current=Te;var Nt=Ee.useCallback(function(){for(var Tt,hn=arguments.length,En=new Array(hn),Nn=0;Nn<hn;Nn++)En[Nn]=arguments[Nn];return(Tt=He.current)===null||Tt===void 0?void 0:Tt.call.apply(Tt,[He].concat(En))},[]);return Nt}var ln=he(73935),jn=function(He){return+setTimeout(He,16)},wi=function(He){return clearTimeout(He)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(jn=function(He){return window.requestAnimationFrame(He)},wi=function(He){return window.cancelAnimationFrame(He)});var $r=0,Ir=new Map;function Or(Te){Ir.delete(Te)}var Ca=function(He){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;$r+=1;var Tt=$r;function hn(En){if(En===0)Or(Tt),He();else{var Nn=jn(function(){hn(En-1)});Ir.set(Tt,Nn)}}return hn(Nt),Tt};Ca.cancel=function(Te){var He=Ir.get(Te);return Or(He),wi(He)};var ur=Ca;function Yn(Te){if(typeof MessageChannel=="undefined")ur(Te);else{var He=new MessageChannel;He.port1.onmessage=function(){return Te()},He.port2.postMessage(void 0)}}function oi(){var Te=Ee.useRef(null),He=function(Tt){Te.current||(Te.current=[],Yn(function(){(0,ln.unstable_batchedUpdates)(function(){Te.current.forEach(function(hn){hn()}),Te.current=null})})),Te.current.push(Tt)};return He}function Si(Te,He){var Nt=Ee.useState(He),Tt=(0,we.Z)(Nt,2),hn=Tt[0],En=Tt[1],Nn=Dr(function(or){Te(function(){En(or)})});return[hn,Nn]}var Ti=Ee.createContext(null),Ni=["component"],Fi=["className"],Wr=["className"],qr=function(He,Nt){var Tt=Ee.useContext(Ti);if(!Tt){var hn=He.component,En=hn===void 0?"div":hn,Nn=(0,at.Z)(He,Ni);return Ee.createElement(En,(0,ke.Z)({},Nn,{ref:Nt}))}var or=Tt.className,lr=(0,at.Z)(Tt,Fi),vr=He.className,si=(0,at.Z)(He,Wr);return Ee.createElement(Ti.Provider,{value:null},Ee.createElement(Ar,(0,ke.Z)({ref:Nt,className:it()(or,vr)},lr,si)))},Ta=Ee.forwardRef(qr);Ta.displayName="RawItem";var Da=Ta,Tr=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],_i="responsive",jr="invalidate";function di(Te){return"+ ".concat(Te.length," ...")}function Lo(Te,He){var Nt=Te.prefixCls,Tt=Nt===void 0?"rc-overflow":Nt,hn=Te.data,En=hn===void 0?[]:hn,Nn=Te.renderItem,or=Te.renderRawItem,lr=Te.itemKey,vr=Te.itemWidth,si=vr===void 0?10:vr,Fr=Te.ssr,hi=Te.style,Mr=Te.className,ti=Te.maxCount,Rr=Te.renderRest,pi=Te.renderRawRest,ki=Te.suffix,Be=Te.component,We=Be===void 0?"div":Be,Ct=Te.itemComponent,De=Te.onVisibleChange,vt=(0,at.Z)(Te,Tr),Mt=Fr==="full",Kt=oi(),rt=Si(Kt,null),gt=(0,we.Z)(rt,2),xt=gt[0],jt=gt[1],$t=xt||0,mn=Si(Kt,new Map),qt=(0,we.Z)(mn,2),gn=qt[0],Ln=qt[1],Wn=Si(Kt,0),Cn=(0,we.Z)(Wn,2),sr=Cn[0],Un=Cn[1],qn=Si(Kt,0),mr=(0,we.Z)(qn,2),Gn=mr[0],kr=mr[1],Er=Si(Kt,0),hr=(0,we.Z)(Er,2),ar=hr[0],Qn=hr[1],gr=(0,Ee.useState)(null),ir=(0,we.Z)(gr,2),xr=ir[0],Sr=ir[1],yr=(0,Ee.useState)(null),rr=(0,we.Z)(yr,2),_r=rr[0],Qr=rr[1],ea=Ee.useMemo(function(){return _r===null&&Mt?Number.MAX_SAFE_INTEGER:_r||0},[_r,xt]),Ui=(0,Ee.useState)(!1),ji=(0,we.Z)(Ui,2),pa=ji[0],Bi=ji[1],Ia="".concat(Tt,"-item"),Qa=Math.max(sr,Gn),ri=ti===_i,Br=En.length&&ri,Ei=ti===jr,Yi=Br||typeof ti=="number"&&En.length>ti,xi=(0,Ee.useMemo)(function(){var ui=En;return Br?xt===null&&Mt?ui=En:ui=En.slice(0,Math.min(En.length,$t/si)):typeof ti=="number"&&(ui=En.slice(0,ti)),ui},[En,si,xt,ti,Br]),la=(0,Ee.useMemo)(function(){return Br?En.slice(ea+1):En.slice(xi.length)},[En,xi,Br,ea]),Ai=(0,Ee.useCallback)(function(ui,tr){var Nr;return typeof lr=="function"?lr(ui):(Nr=lr&&(ui==null?void 0:ui[lr]))!==null&&Nr!==void 0?Nr:tr},[lr]),$i=(0,Ee.useCallback)(Nn||function(ui){return ui},[Nn]);function wa(ui,tr,Nr){_r===ui&&(tr===void 0||tr===xr)||(Qr(ui),Nr||(Bi(ui<En.length-1),De==null||De(ui)),tr!==void 0&&Sr(tr))}function za(ui,tr){jt(tr.clientWidth)}function Xa(ui,tr){Ln(function(Nr){var Gr=new Map(Nr);return tr===null?Gr.delete(ui):Gr.set(ui,tr),Gr})}function Qi(ui,tr){kr(tr),Un(Gn)}function Pi(ui,tr){Qn(tr)}function La(ui){return gn.get(Ai(xi[ui],ui))}Zt(function(){if($t&&typeof Qa=="number"&&xi){var ui=ar,tr=xi.length,Nr=tr-1;if(!tr){wa(0,null);return}for(var Gr=0;Gr<tr;Gr+=1){var pr=La(Gr);if(Mt&&(pr=pr||0),pr===void 0){wa(Gr-1,void 0,!0);break}if(ui+=pr,Nr===0&&ui<=$t||Gr===Nr-1&&ui+La(Nr)<=$t){wa(Nr,null);break}else if(ui+Qa>$t){wa(Gr-1,ui-pr-ar+Gn);break}}ki&&La(0)+ar>$t&&Sr(null)}},[$t,gn,Gn,ar,Ai,xi]);var Sa=pa&&!!la.length,ma={};xr!==null&&Br&&(ma={position:"absolute",left:xr,top:0});var ua={prefixCls:Ia,responsive:Br,component:Ct,invalidate:Ei},ii=or?function(ui,tr){var Nr=Ai(ui,tr);return Ee.createElement(Ti.Provider,{key:Nr,value:(0,ve.Z)((0,ve.Z)({},ua),{},{order:tr,item:ui,itemKey:Nr,registerSize:Xa,display:tr<=ea})},or(ui,tr))}:function(ui,tr){var Nr=Ai(ui,tr);return Ee.createElement(Ar,(0,ke.Z)({},ua,{order:tr,key:Nr,item:ui,renderItem:$i,itemKey:Nr,registerSize:Xa,display:tr<=ea}))},bi,va={order:Sa?ea:Number.MAX_SAFE_INTEGER,className:"".concat(Ia,"-rest"),registerSize:Qi,display:Sa};if(pi)pi&&(bi=Ee.createElement(Ti.Provider,{value:(0,ve.Z)((0,ve.Z)({},ua),va)},pi(la)));else{var oa=Rr||di;bi=Ee.createElement(Ar,(0,ke.Z)({},ua,va),typeof oa=="function"?oa(la):oa)}var Ra=Ee.createElement(We,(0,ke.Z)({className:it()(!Ei&&Tt,Mr),style:hi,ref:He},vt),xi.map(ii),Yi?bi:null,ki&&Ee.createElement(Ar,(0,ke.Z)({},ua,{responsive:ri,responsiveDisabled:!Br,order:ea,className:"".concat(Ia,"-suffix"),registerSize:Pi,display:!0,style:ma}),ki));return ri&&(Ra=Ee.createElement(be.Z,{onResize:za,disabled:!Br},Ra)),Ra}var ro=Ee.forwardRef(Lo);ro.displayName="Overflow",ro.Item=Da,ro.RESPONSIVE=_i,ro.INVALIDATE=jr;var Hi=ro,Ko=Hi,Zo=function(He,Nt){var Tt,hn,En=He.prefixCls,Nn=He.id,or=He.inputElement,lr=He.disabled,vr=He.tabIndex,si=He.autoFocus,Fr=He.autoComplete,hi=He.editable,Mr=He.activeDescendantId,ti=He.value,Rr=He.maxLength,pi=He.onKeyDown,ki=He.onMouseDown,Be=He.onChange,We=He.onPaste,Ct=He.onCompositionStart,De=He.onCompositionEnd,vt=He.open,Mt=He.attrs,Kt=or||Ee.createElement("input",null),rt=Kt,gt=rt.ref,xt=rt.props,jt=xt.onKeyDown,$t=xt.onChange,mn=xt.onMouseDown,qt=xt.onCompositionStart,gn=xt.onCompositionEnd,Ln=xt.style;return"maxLength"in Kt.props,Kt=Ee.cloneElement(Kt,(0,ve.Z)((0,ve.Z)((0,ve.Z)({type:"search"},xt),{},{id:Nn,ref:un(Nt,gt),disabled:lr,tabIndex:vr,autoComplete:Fr||"off",autoFocus:si,className:it()("".concat(En,"-selection-search-input"),(Tt=Kt)===null||Tt===void 0||(hn=Tt.props)===null||hn===void 0?void 0:hn.className),role:"combobox","aria-label":"Search","aria-expanded":vt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Nn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Nn,"_list"),"aria-activedescendant":vt?Mr:void 0},Mt),{},{value:hi?ti:"",maxLength:Rr,readOnly:!hi,unselectable:hi?null:"on",style:(0,ve.Z)((0,ve.Z)({},Ln),{},{opacity:hi?null:0}),onKeyDown:function(Cn){pi(Cn),jt&&jt(Cn)},onMouseDown:function(Cn){ki(Cn),mn&&mn(Cn)},onChange:function(Cn){Be(Cn),$t&&$t(Cn)},onCompositionStart:function(Cn){Ct(Cn),qt&&qt(Cn)},onCompositionEnd:function(Cn){De(Cn),gn&&gn(Cn)},onPaste:We})),Kt},zi=Ee.forwardRef(Zo);zi.displayName="Input";var Pr=zi;function ta(Te){return Array.isArray(Te)?Te:Te!==void 0?[Te]:[]}var Wa=typeof window!="undefined"&&window.document&&window.document.documentElement,yo=Wa;function Eo(Te){return Te!=null}function bo(Te){return!Te&&Te!==0}function rs(Te){return["string","number"].includes((0,kt.Z)(Te))}function fo(Te){var He=void 0;return Te&&(rs(Te.title)?He=Te.title.toString():rs(Te.label)&&(He=Te.label.toString())),He}function ka(Te,He){yo?Ee.useLayoutEffect(Te,He):Ee.useEffect(Te,He)}function mi(Te){var He;return(He=Te.key)!==null&&He!==void 0?He:Te.value}var Fo=function(He){He.preventDefault(),He.stopPropagation()},Xo=function(He){var Nt=He.id,Tt=He.prefixCls,hn=He.values,En=He.open,Nn=He.searchValue,or=He.autoClearSearchValue,lr=He.inputRef,vr=He.placeholder,si=He.disabled,Fr=He.mode,hi=He.showSearch,Mr=He.autoFocus,ti=He.autoComplete,Rr=He.activeDescendantId,pi=He.tabIndex,ki=He.removeIcon,Be=He.maxTagCount,We=He.maxTagTextLength,Ct=He.maxTagPlaceholder,De=Ct===void 0?function(Sr){return"+ ".concat(Sr.length," ...")}:Ct,vt=He.tagRender,Mt=He.onToggleOpen,Kt=He.onRemove,rt=He.onInputChange,gt=He.onInputPaste,xt=He.onInputKeyDown,jt=He.onInputMouseDown,$t=He.onInputCompositionStart,mn=He.onInputCompositionEnd,qt=Ee.useRef(null),gn=(0,Ee.useState)(0),Ln=(0,we.Z)(gn,2),Wn=Ln[0],Cn=Ln[1],sr=(0,Ee.useState)(!1),Un=(0,we.Z)(sr,2),qn=Un[0],mr=Un[1],Gn="".concat(Tt,"-selection"),kr=En||Fr==="multiple"&&or===!1||Fr==="tags"?Nn:"",Er=Fr==="tags"||Fr==="multiple"&&or===!1||hi&&(En||qn);ka(function(){Cn(qt.current.scrollWidth)},[kr]);function hr(Sr,yr,rr,_r,Qr){return Ee.createElement("span",{className:it()("".concat(Gn,"-item"),(0,tt.Z)({},"".concat(Gn,"-item-disabled"),rr)),title:fo(Sr)},Ee.createElement("span",{className:"".concat(Gn,"-item-content")},yr),_r&&Ee.createElement(Jt,{className:"".concat(Gn,"-item-remove"),onMouseDown:Fo,onClick:Qr,customizeIcon:ki},"\xD7"))}function ar(Sr,yr,rr,_r,Qr){var ea=function(ji){Fo(ji),Mt(!En)};return Ee.createElement("span",{onMouseDown:ea},vt({label:yr,value:Sr,disabled:rr,closable:_r,onClose:Qr}))}function Qn(Sr){var yr=Sr.disabled,rr=Sr.label,_r=Sr.value,Qr=!si&&!yr,ea=rr;if(typeof We=="number"&&(typeof rr=="string"||typeof rr=="number")){var Ui=String(ea);Ui.length>We&&(ea="".concat(Ui.slice(0,We),"..."))}var ji=function(Bi){Bi&&Bi.stopPropagation(),Kt(Sr)};return typeof vt=="function"?ar(_r,ea,yr,Qr,ji):hr(Sr,ea,yr,Qr,ji)}function gr(Sr){var yr=typeof De=="function"?De(Sr):De;return hr({title:yr},yr,!1)}var ir=Ee.createElement("div",{className:"".concat(Gn,"-search"),style:{width:Wn},onFocus:function(){mr(!0)},onBlur:function(){mr(!1)}},Ee.createElement(Pr,{ref:lr,open:En,prefixCls:Tt,id:Nt,inputElement:null,disabled:si,autoFocus:Mr,autoComplete:ti,editable:Er,activeDescendantId:Rr,value:kr,onKeyDown:xt,onMouseDown:jt,onChange:rt,onPaste:gt,onCompositionStart:$t,onCompositionEnd:mn,tabIndex:pi,attrs:fe(He,!0)}),Ee.createElement("span",{ref:qt,className:"".concat(Gn,"-search-mirror"),"aria-hidden":!0},kr,"\xA0")),xr=Ee.createElement(Ko,{prefixCls:"".concat(Gn,"-overflow"),data:hn,renderItem:Qn,renderRest:gr,suffix:ir,itemKey:mi,maxCount:Be});return Ee.createElement(Ee.Fragment,null,xr,!hn.length&&!kr&&Ee.createElement("span",{className:"".concat(Gn,"-placeholder")},vr))},Ja=Xo,Na=function(He){var Nt=He.inputElement,Tt=He.prefixCls,hn=He.id,En=He.inputRef,Nn=He.disabled,or=He.autoFocus,lr=He.autoComplete,vr=He.activeDescendantId,si=He.mode,Fr=He.open,hi=He.values,Mr=He.placeholder,ti=He.tabIndex,Rr=He.showSearch,pi=He.searchValue,ki=He.activeValue,Be=He.maxLength,We=He.onInputKeyDown,Ct=He.onInputMouseDown,De=He.onInputChange,vt=He.onInputPaste,Mt=He.onInputCompositionStart,Kt=He.onInputCompositionEnd,rt=He.title,gt=Ee.useState(!1),xt=(0,we.Z)(gt,2),jt=xt[0],$t=xt[1],mn=si==="combobox",qt=mn||Rr,gn=hi[0],Ln=pi||"";mn&&ki&&!jt&&(Ln=ki),Ee.useEffect(function(){mn&&$t(!1)},[mn,ki]);var Wn=si!=="combobox"&&!Fr&&!Rr?!1:!!Ln,Cn=rt===void 0?fo(gn):rt,sr=function(){if(gn)return null;var qn=Wn?{visibility:"hidden"}:void 0;return Ee.createElement("span",{className:"".concat(Tt,"-selection-placeholder"),style:qn},Mr)};return Ee.createElement(Ee.Fragment,null,Ee.createElement("span",{className:"".concat(Tt,"-selection-search")},Ee.createElement(Pr,{ref:En,prefixCls:Tt,id:hn,open:Fr,inputElement:Nt,disabled:Nn,autoFocus:or,autoComplete:lr,editable:qt,activeDescendantId:vr,value:Ln,onKeyDown:We,onMouseDown:Ct,onChange:function(qn){$t(!0),De(qn)},onPaste:vt,onCompositionStart:Mt,onCompositionEnd:Kt,tabIndex:ti,attrs:fe(He,!0),maxLength:mn?Be:void 0})),!mn&&gn?Ee.createElement("span",{className:"".concat(Tt,"-selection-item"),title:Cn,style:Wn?{visibility:"hidden"}:void 0},gn.label):null,sr())},Rs=Na;function io(Te){return![ut.ESC,ut.SHIFT,ut.BACKSPACE,ut.TAB,ut.WIN_KEY,ut.ALT,ut.META,ut.WIN_KEY_RIGHT,ut.CTRL,ut.SEMICOLON,ut.EQUALS,ut.CAPS_LOCK,ut.CONTEXT_MENU,ut.F1,ut.F2,ut.F3,ut.F4,ut.F5,ut.F6,ut.F7,ut.F8,ut.F9,ut.F10,ut.F11,ut.F12].includes(Te)}var lo=function(He,Nt){var Tt=(0,Ee.useRef)(null),hn=(0,Ee.useRef)(!1),En=He.prefixCls,Nn=He.open,or=He.mode,lr=He.showSearch,vr=He.tokenWithEnter,si=He.autoClearSearchValue,Fr=He.onSearch,hi=He.onSearchSubmit,Mr=He.onToggleOpen,ti=He.onInputKeyDown,Rr=He.domRef;Ee.useImperativeHandle(Nt,function(){return{focus:function(){Tt.current.focus()},blur:function(){Tt.current.blur()}}});var pi=_n(0),ki=(0,we.Z)(pi,2),Be=ki[0],We=ki[1],Ct=function(Ln){var Wn=Ln.which;(Wn===ut.UP||Wn===ut.DOWN)&&Ln.preventDefault(),ti&&ti(Ln),Wn===ut.ENTER&&or==="tags"&&!hn.current&&!Nn&&(hi==null||hi(Ln.target.value)),io(Wn)&&Mr(!0)},De=function(){We(!0)},vt=(0,Ee.useRef)(null),Mt=function(Ln){Fr(Ln,!0,hn.current)!==!1&&Mr(!0)},Kt=function(){hn.current=!0},rt=function(Ln){hn.current=!1,or!=="combobox"&&Mt(Ln.target.value)},gt=function(Ln){var Wn=Ln.target.value;if(vr&&vt.current&&/[\r\n]/.test(vt.current)){var Cn=vt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Wn=Wn.replace(Cn,vt.current)}vt.current=null,Mt(Wn)},xt=function(Ln){var Wn=Ln.clipboardData,Cn=Wn.getData("text");vt.current=Cn},jt=function(Ln){var Wn=Ln.target;if(Wn!==Tt.current){var Cn=document.body.style.msTouchAction!==void 0;Cn?setTimeout(function(){Tt.current.focus()}):Tt.current.focus()}},$t=function(Ln){var Wn=Be();Ln.target!==Tt.current&&!Wn&&or!=="combobox"&&Ln.preventDefault(),(or!=="combobox"&&(!lr||!Wn)||!Nn)&&(Nn&&si!==!1&&Fr("",!0,!1),Mr())},mn={inputRef:Tt,onInputKeyDown:Ct,onInputMouseDown:De,onInputChange:gt,onInputPaste:xt,onInputCompositionStart:Kt,onInputCompositionEnd:rt},qt=or==="multiple"||or==="tags"?Ee.createElement(Ja,(0,ke.Z)({},He,mn)):Ee.createElement(Rs,(0,ke.Z)({},He,mn));return Ee.createElement("div",{ref:Rr,className:"".concat(En,"-selector"),onClick:jt,onMouseDown:$t},qt)},cr=Ee.forwardRef(lo);cr.displayName="Selector";var Xi=cr,br=he(62709),Cl=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],fs=function(He){var Nt=He===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Nt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Nt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Nt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Nt,adjustY:1},htmlRegion:"scroll"}}},ho=function(He,Nt){var Tt=He.prefixCls,hn=He.disabled,En=He.visible,Nn=He.children,or=He.popupElement,lr=He.animation,vr=He.transitionName,si=He.dropdownStyle,Fr=He.dropdownClassName,hi=He.direction,Mr=hi===void 0?"ltr":hi,ti=He.placement,Rr=He.builtinPlacements,pi=He.dropdownMatchSelectWidth,ki=He.dropdownRender,Be=He.dropdownAlign,We=He.getPopupContainer,Ct=He.empty,De=He.getTriggerDOMNode,vt=He.onPopupVisibleChange,Mt=He.onPopupMouseEnter,Kt=(0,at.Z)(He,Cl),rt="".concat(Tt,"-dropdown"),gt=or;ki&&(gt=ki(or));var xt=Ee.useMemo(function(){return Rr||fs(pi)},[Rr,pi]),jt=lr?"".concat(rt,"-").concat(lr):vr,$t=typeof pi=="number",mn=Ee.useMemo(function(){return $t?null:pi===!1?"minWidth":"width"},[pi,$t]),qt=si;$t&&(qt=(0,ve.Z)((0,ve.Z)({},qt),{},{width:pi}));var gn=Ee.useRef(null);return Ee.useImperativeHandle(Nt,function(){return{getPopupElement:function(){return gn.current}}}),Ee.createElement(br.Z,(0,ke.Z)({},Kt,{showAction:vt?["click"]:[],hideAction:vt?["click"]:[],popupPlacement:ti||(Mr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:xt,prefixCls:rt,popupTransitionName:jt,popup:Ee.createElement("div",{ref:gn,onMouseEnter:Mt},gt),stretch:mn,popupAlign:Be,popupVisible:En,getPopupContainer:We,popupClassName:it()(Fr,(0,tt.Z)({},"".concat(rt,"-empty"),Ct)),popupStyle:qt,getTriggerDOMNode:De,onPopupVisibleChange:vt}),Nn)},Ll=Ee.forwardRef(ho);Ll.displayName="SelectTrigger";var Ma=Ll,El=he(84506);function Xn(Te,He){var Nt=Te.key,Tt;return"value"in Te&&(Tt=Te.value),Nt!=null?Nt:Tt!==void 0?Tt:"rc-index-key-".concat(He)}function Go(Te,He){var Nt=Te||{},Tt=Nt.label,hn=Nt.value,En=Nt.options,Nn=Nt.groupLabel,or=Tt||(He?"children":"label");return{label:or,value:hn||"value",options:En||"options",groupLabel:Nn||or}}function hs(Te){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Nt=He.fieldNames,Tt=He.childrenAsData,hn=[],En=Go(Nt,!1),Nn=En.label,or=En.value,lr=En.options,vr=En.groupLabel;function si(Fr,hi){Fr.forEach(function(Mr){if(hi||!(lr in Mr)){var ti=Mr[or];hn.push({key:Xn(Mr,hn.length),groupOption:hi,data:Mr,label:Mr[Nn],value:ti})}else{var Rr=Mr[vr];Rr===void 0&&Tt&&(Rr=Mr.label),hn.push({key:Xn(Mr,hn.length),group:!0,data:Mr,label:Rr}),si(Mr[lr],!0)}})}return si(Te,!1),hn}function Ws(Te){var He=(0,ve.Z)({},Te);return"props"in He||Object.defineProperty(He,"props",{get:function(){return Ye(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),He}}),He}function xo(Te,He){if(!He||!He.length)return null;var Nt=!1;function Tt(En,Nn){var or=(0,El.Z)(Nn),lr=or[0],vr=or.slice(1);if(!lr)return[En];var si=En.split(lr);return Nt=Nt||si.length>1,si.reduce(function(Fr,hi){return[].concat((0,te.Z)(Fr),(0,te.Z)(Tt(hi,vr)))},[]).filter(function(Fr){return Fr})}var hn=Tt(Te,He);return Nt?hn:null}var co=["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"],Ho=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function ps(Te){return Te==="tags"||Te==="multiple"}var Ro=Ee.forwardRef(function(Te,He){var Nt,Tt,hn=Te.id,En=Te.prefixCls,Nn=Te.className,or=Te.showSearch,lr=Te.tagRender,vr=Te.direction,si=Te.omitDomProps,Fr=Te.displayValues,hi=Te.onDisplayValuesChange,Mr=Te.emptyOptions,ti=Te.notFoundContent,Rr=ti===void 0?"Not Found":ti,pi=Te.onClear,ki=Te.mode,Be=Te.disabled,We=Te.loading,Ct=Te.getInputElement,De=Te.getRawInputElement,vt=Te.open,Mt=Te.defaultOpen,Kt=Te.onDropdownVisibleChange,rt=Te.activeValue,gt=Te.onActiveValueChange,xt=Te.activeDescendantId,jt=Te.searchValue,$t=Te.autoClearSearchValue,mn=Te.onSearch,qt=Te.onSearchSplit,gn=Te.tokenSeparators,Ln=Te.allowClear,Wn=Te.suffixIcon,Cn=Te.clearIcon,sr=Te.OptionList,Un=Te.animation,qn=Te.transitionName,mr=Te.dropdownStyle,Gn=Te.dropdownClassName,kr=Te.dropdownMatchSelectWidth,Er=Te.dropdownRender,hr=Te.dropdownAlign,ar=Te.placement,Qn=Te.builtinPlacements,gr=Te.getPopupContainer,ir=Te.showAction,xr=ir===void 0?[]:ir,Sr=Te.onFocus,yr=Te.onBlur,rr=Te.onKeyUp,_r=Te.onKeyDown,Qr=Te.onMouseDown,ea=(0,at.Z)(Te,co),Ui=ps(ki),ji=(or!==void 0?or:Ui)||ki==="combobox",pa=(0,ve.Z)({},ea);Ho.forEach(function(Mi){delete pa[Mi]}),si==null||si.forEach(function(Mi){delete pa[Mi]});var Bi=Ee.useState(!1),Ia=(0,we.Z)(Bi,2),Qa=Ia[0],ri=Ia[1];Ee.useEffect(function(){ri(pt())},[]);var Br=Ee.useRef(null),Ei=Ee.useRef(null),Yi=Ee.useRef(null),xi=Ee.useRef(null),la=Ee.useRef(null),Ai=wn(),$i=(0,we.Z)(Ai,3),wa=$i[0],za=$i[1],Xa=$i[2];Ee.useImperativeHandle(He,function(){var Mi,na;return{focus:(Mi=xi.current)===null||Mi===void 0?void 0:Mi.focus,blur:(na=xi.current)===null||na===void 0?void 0:na.blur,scrollTo:function(os){var zo;return(zo=la.current)===null||zo===void 0?void 0:zo.scrollTo(os)}}});var Qi=Ee.useMemo(function(){var Mi;if(ki!=="combobox")return jt;var na=(Mi=Fr[0])===null||Mi===void 0?void 0:Mi.value;return typeof na=="string"||typeof na=="number"?String(na):""},[jt,ki,Fr]),Pi=ki==="combobox"&&typeof Ct=="function"&&Ct()||null,La=typeof De=="function"&&De(),Sa=Ge(Ei,La==null||(Nt=La.props)===null||Nt===void 0?void 0:Nt.ref),ma=Ee.useState(!1),ua=(0,we.Z)(ma,2),ii=ua[0],bi=ua[1];Qe(function(){bi(!0)},[]);var va=ot(!1,{defaultValue:Mt,value:vt}),oa=(0,we.Z)(va,2),Ra=oa[0],ui=oa[1],tr=ii?Ra:!1,Nr=!Rr&&Mr;(Be||Nr&&tr&&ki==="combobox")&&(tr=!1);var Gr=Nr?!1:tr,pr=Ee.useCallback(function(Mi){var na=Mi!==void 0?Mi:!tr;Be||(ui(na),tr!==na&&(Kt==null||Kt(na)))},[Be,tr,ui,Kt]),Ji=Ee.useMemo(function(){return(gn||[]).some(function(Mi){return[`
|
|
|
`,`\r
|
|
|
`].includes(Mi)})},[gn]),Fa=function(na,oo,os){var zo=!0,Is=na;gt==null||gt(null);var Qo=os?null:xo(na,gn);return ki!=="combobox"&&Qo&&(Is="",qt==null||qt(Qo),pr(!1),zo=!1),mn&&Qi!==Is&&mn(Is,{source:oo?"typing":"effect"}),zo},Mo=function(na){!na||!na.trim()||mn(na,{source:"submit"})};Ee.useEffect(function(){!tr&&!Ui&&ki!=="combobox"&&Fa("",!1,!1)},[tr]),Ee.useEffect(function(){Ra&&Be&&ui(!1),Be&&za(!1)},[Be]);var ao=_n(),Wo=(0,we.Z)(ao,2),po=Wo[0],Ps=Wo[1],bs=function(na){var oo=po(),os=na.which;if(os===ut.ENTER&&(ki!=="combobox"&&na.preventDefault(),tr||pr(!0)),Ps(!!Qi),os===ut.BACKSPACE&&!oo&&Ui&&!Qi&&Fr.length){for(var zo=(0,te.Z)(Fr),Is=null,Qo=zo.length-1;Qo>=0;Qo-=1){var zl=zo[Qo];if(!zl.disabled){zo.splice(Qo,1),Is=zl;break}}Is&&hi(zo,{type:"remove",values:[Is]})}for(var Ml=arguments.length,Ts=new Array(Ml>1?Ml-1:0),Ns=1;Ns<Ml;Ns++)Ts[Ns-1]=arguments[Ns];if(tr&&la.current){var lu;(lu=la.current).onKeyDown.apply(lu,[na].concat(Ts))}_r==null||_r.apply(void 0,[na].concat(Ts))},xs=function(na){for(var oo=arguments.length,os=new Array(oo>1?oo-1:0),zo=1;zo<oo;zo++)os[zo-1]=arguments[zo];if(tr&&la.current){var Is;(Is=la.current).onKeyUp.apply(Is,[na].concat(os))}rr==null||rr.apply(void 0,[na].concat(os))},Hs=function(na){var oo=Fr.filter(function(os){return os!==na});hi(oo,{type:"remove",values:[na]})},fl=Ee.useRef(!1),el=function(){za(!0),Be||(Sr&&!fl.current&&Sr.apply(void 0,arguments),xr.includes("focus")&&pr(!0)),fl.current=!0},Hl=function(){za(!1,function(){fl.current=!1,pr(!1)}),!Be&&(Qi&&(ki==="tags"?mn(Qi,{source:"submit"}):ki==="multiple"&&mn("",{source:"blur"})),yr&&yr.apply(void 0,arguments))},sa=[];Ee.useEffect(function(){return function(){sa.forEach(function(Mi){return clearTimeout(Mi)}),sa.splice(0,sa.length)}},[]);var Ur=function(na){var oo,os=na.target,zo=(oo=Yi.current)===null||oo===void 0?void 0:oo.getPopupElement();if(zo&&zo.contains(os)){var Is=setTimeout(function(){var Ts=sa.indexOf(Is);if(Ts!==-1&&sa.splice(Ts,1),Xa(),!Qa&&!zo.contains(document.activeElement)){var Ns;(Ns=xi.current)===null||Ns===void 0||Ns.focus()}});sa.push(Is)}for(var Qo=arguments.length,zl=new Array(Qo>1?Qo-1:0),Ml=1;Ml<Qo;Ml++)zl[Ml-1]=arguments[Ml];Qr==null||Qr.apply(void 0,[na].concat(zl))},Ri=Ee.useState({}),Jn=(0,we.Z)(Ri,2),Ki=Jn[1];function Do(){Ki({})}var No;La&&(No=function(na){pr(na)}),on(function(){var Mi;return[Br.current,(Mi=Yi.current)===null||Mi===void 0?void 0:Mi.getPopupElement()]},Gr,pr,!!La);var $o=Ee.useMemo(function(){return(0,ve.Z)((0,ve.Z)({},Te),{},{notFoundContent:Rr,open:tr,triggerOpen:Gr,id:hn,showSearch:ji,multiple:Ui,toggleOpen:pr})},[Te,Rr,Gr,tr,hn,ji,Ui,pr]),Oo=!!Wn||We,kl;Oo&&(kl=Ee.createElement(Jt,{className:it()("".concat(En,"-arrow"),(0,tt.Z)({},"".concat(En,"-arrow-loading"),We)),customizeIcon:Wn,customizeIconProps:{loading:We,searchValue:Qi,open:tr,focused:wa,showSearch:ji}}));var ws=function(){var na;pi==null||pi(),(na=xi.current)===null||na===void 0||na.focus(),hi([],{type:"clear",values:Fr}),Fa("",!1,!1)},Yl=cn(En,ws,Fr,Ln,Cn,Be,Qi,ki),to=Yl.allowClear,ca=Yl.clearIcon,mo=Ee.createElement(sr,{ref:la}),no=it()(En,Nn,(Tt={},(0,tt.Z)(Tt,"".concat(En,"-focused"),wa),(0,tt.Z)(Tt,"".concat(En,"-multiple"),Ui),(0,tt.Z)(Tt,"".concat(En,"-single"),!Ui),(0,tt.Z)(Tt,"".concat(En,"-allow-clear"),Ln),(0,tt.Z)(Tt,"".concat(En,"-show-arrow"),Oo),(0,tt.Z)(Tt,"".concat(En,"-disabled"),Be),(0,tt.Z)(Tt,"".concat(En,"-loading"),We),(0,tt.Z)(Tt,"".concat(En,"-open"),tr),(0,tt.Z)(Tt,"".concat(En,"-customize-input"),Pi),(0,tt.Z)(Tt,"".concat(En,"-show-search"),ji),Tt)),as=Ee.createElement(Ma,{ref:Yi,disabled:Be,prefixCls:En,visible:Gr,popupElement:mo,animation:Un,transitionName:qn,dropdownStyle:mr,dropdownClassName:Gn,direction:vr,dropdownMatchSelectWidth:kr,dropdownRender:Er,dropdownAlign:hr,placement:ar,builtinPlacements:Qn,getPopupContainer:gr,empty:Mr,getTriggerDOMNode:function(){return Ei.current},onPopupVisibleChange:No,onPopupMouseEnter:Do},La?Ee.cloneElement(La,{ref:Sa}):Ee.createElement(Xi,(0,ke.Z)({},Te,{domRef:Ei,prefixCls:En,inputElement:Pi,ref:xi,id:hn,showSearch:ji,autoClearSearchValue:$t,mode:ki,activeDescendantId:xt,tagRender:lr,values:Fr,open:tr,onToggleOpen:pr,activeValue:rt,searchValue:Qi,onSearch:Fa,onSearchSubmit:Mo,onRemove:Hs,tokenWithEnter:Ji}))),us;return La?us=as:us=Ee.createElement("div",(0,ke.Z)({className:no},pa,{ref:Br,onMouseDown:Ur,onKeyDown:bs,onKeyUp:xs,onFocus:el,onBlur:Hl}),wa&&!tr&&Ee.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Fr.map(function(Mi){var na=Mi.label,oo=Mi.value;return["number","string"].includes((0,kt.Z)(na))?na:oo}).join(", "))),as,kl,to&&ca),Ee.createElement(Lt.Provider,{value:$o},us)}),qo=Ro,Va=function(Te,He){var Nt=Ee.useRef({values:new Map,options:new Map}),Tt=Ee.useMemo(function(){var En=Nt.current,Nn=En.values,or=En.options,lr=Te.map(function(Fr){if(Fr.label===void 0){var hi;return(0,ve.Z)((0,ve.Z)({},Fr),{},{label:(hi=Nn.get(Fr.value))===null||hi===void 0?void 0:hi.label})}return Fr}),vr=new Map,si=new Map;return lr.forEach(function(Fr){vr.set(Fr.value,Fr),si.set(Fr.value,He.get(Fr.value)||or.get(Fr.value))}),Nt.current.values=vr,Nt.current.options=si,lr},[Te,He]),hn=Ee.useCallback(function(En){return He.get(En)||Nt.current.options.get(En)},[He]);return[Tt,hn]};function Ms(Te,He){return ta(Te).join("").toUpperCase().includes(He)}var Vl=function(Te,He,Nt,Tt,hn){return Ee.useMemo(function(){if(!Nt||Tt===!1)return Te;var En=He.options,Nn=He.label,or=He.value,lr=[],vr=typeof Tt=="function",si=Nt.toUpperCase(),Fr=vr?Tt:function(Mr,ti){return hn?Ms(ti[hn],si):ti[En]?Ms(ti[Nn!=="children"?Nn:"label"],si):Ms(ti[or],si)},hi=vr?function(Mr){return Ws(Mr)}:function(Mr){return Mr};return Te.forEach(function(Mr){if(Mr[En]){var ti=Fr(Nt,hi(Mr));if(ti)lr.push(Mr);else{var Rr=Mr[En].filter(function(pi){return Fr(Nt,hi(pi))});Rr.length&&lr.push((0,ve.Z)((0,ve.Z)({},Mr),{},(0,tt.Z)({},En,Rr)))}return}Fr(Nt,hi(Mr))&&lr.push(Mr)}),lr},[Te,Tt,hn,Nt,He])},qs=0,il=$e();function Ds(){var Te;return il?(Te=qs,qs+=1):Te="TEST_OR_SSR",Te}function So(Te){var He=Ee.useState(),Nt=(0,we.Z)(He,2),Tt=Nt[0],hn=Nt[1];return Ee.useEffect(function(){hn("rc_select_".concat(Ds()))},[]),Te||Tt}function al(Te){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Nt=[];return Ee.Children.forEach(Te,function(Tt){Tt==null&&!He.keepEmpty||(Array.isArray(Tt)?Nt=Nt.concat(al(Tt)):(0,Oe.isFragment)(Tt)&&Tt.props?Nt=Nt.concat(al(Tt.props.children,He)):Nt.push(Tt))}),Nt}var Sl=["children","value"],Vs=["children"];function ol(Te){var He=Te,Nt=He.key,Tt=He.props,hn=Tt.children,En=Tt.value,Nn=(0,at.Z)(Tt,Sl);return(0,ve.Z)({key:Nt,value:En!==void 0?En:Nt,children:hn},Nn)}function Bs(Te){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return al(Te).map(function(Nt,Tt){if(!Ee.isValidElement(Nt)||!Nt.type)return null;var hn=Nt,En=hn.type.isSelectOptGroup,Nn=hn.key,or=hn.props,lr=or.children,vr=(0,at.Z)(or,Vs);return He||!En?ol(Nt):(0,ve.Z)((0,ve.Z)({key:"__RC_SELECT_GRP__".concat(Nn===null?Tt:Nn,"__"),label:Nn},vr),{},{options:Bs(lr)})}).filter(function(Nt){return Nt})}function Us(Te,He,Nt,Tt,hn){return Ee.useMemo(function(){var En=Te,Nn=!Te;Nn&&(En=Bs(He));var or=new Map,lr=new Map,vr=function(hi,Mr,ti){ti&&typeof ti=="string"&&hi.set(Mr[ti],Mr)};function si(Fr){for(var hi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Mr=0;Mr<Fr.length;Mr+=1){var ti=Fr[Mr];!ti[Nt.options]||hi?(or.set(ti[Nt.value],ti),vr(lr,ti,Nt.label),vr(lr,ti,Tt),vr(lr,ti,hn)):si(ti[Nt.options],!0)}}return si(En),{options:En,valueOptions:or,labelOptions:lr}},[Te,He,Nt,Tt,hn])}function js(Te){var He=Ee.useRef();He.current=Te;var Nt=Ee.useCallback(function(){return He.current.apply(He,arguments)},[]);return Nt}var ml=function(){return null};ml.isSelectOptGroup=!0;var Ua=ml,_s=function(){return null};_s.isSelectOption=!0;var ms=_s;function Zs(Te,He){var Nt=(0,ve.Z)({},Te);return Array.isArray(He)&&He.forEach(function(Tt){delete Nt[Tt]}),Nt}var Ks=he(73299),sl=Ee.createContext(null),vs=sl;function gs(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var _e=["disabled","title","children","style","className"];function nt(Te){return typeof Te=="string"||typeof Te=="number"}var pn=function(He,Nt){var Tt=Dt(),hn=Tt.prefixCls,En=Tt.id,Nn=Tt.open,or=Tt.multiple,lr=Tt.mode,vr=Tt.searchValue,si=Tt.toggleOpen,Fr=Tt.notFoundContent,hi=Tt.onPopupScroll,Mr=Ee.useContext(vs),ti=Mr.flattenOptions,Rr=Mr.onActiveValue,pi=Mr.defaultActiveFirstOption,ki=Mr.onSelect,Be=Mr.menuItemSelectedIcon,We=Mr.rawValues,Ct=Mr.fieldNames,De=Mr.virtual,vt=Mr.direction,Mt=Mr.listHeight,Kt=Mr.listItemHeight,rt="".concat(hn,"-item"),gt=Ot(function(){return ti},[Nn,ti],function(hr,ar){return ar[0]&&hr[1]!==ar[1]}),xt=Ee.useRef(null),jt=function(ar){ar.preventDefault()},$t=function(ar){xt.current&&xt.current.scrollTo(typeof ar=="number"?{index:ar}:ar)},mn=function(ar){for(var Qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,gr=gt.length,ir=0;ir<gr;ir+=1){var xr=(ar+ir*Qn+gr)%gr,Sr=gt[xr],yr=Sr.group,rr=Sr.data;if(!yr&&!rr.disabled)return xr}return-1},qt=Ee.useState(function(){return mn(0)}),gn=(0,we.Z)(qt,2),Ln=gn[0],Wn=gn[1],Cn=function(ar){var Qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Wn(ar);var gr={source:Qn?"keyboard":"mouse"},ir=gt[ar];if(!ir){Rr(null,-1,gr);return}Rr(ir.value,ar,gr)};(0,Ee.useEffect)(function(){Cn(pi!==!1?mn(0):-1)},[gt.length,vr]);var sr=Ee.useCallback(function(hr){return We.has(hr)&&lr!=="combobox"},[lr,(0,te.Z)(We).toString(),We.size]);(0,Ee.useEffect)(function(){var hr=setTimeout(function(){if(!or&&Nn&&We.size===1){var Qn=Array.from(We)[0],gr=gt.findIndex(function(ir){var xr=ir.data;return xr.value===Qn});gr!==-1&&(Cn(gr),$t(gr))}});if(Nn){var ar;(ar=xt.current)===null||ar===void 0||ar.scrollTo(void 0)}return function(){return clearTimeout(hr)}},[Nn,vr,ti.length]);var Un=function(ar){ar!==void 0&&ki(ar,{selected:!We.has(ar)}),or||si(!1)};if(Ee.useImperativeHandle(Nt,function(){return{onKeyDown:function(ar){var Qn=ar.which,gr=ar.ctrlKey;switch(Qn){case ut.N:case ut.P:case ut.UP:case ut.DOWN:{var ir=0;if(Qn===ut.UP?ir=-1:Qn===ut.DOWN?ir=1:gs()&&gr&&(Qn===ut.N?ir=1:Qn===ut.P&&(ir=-1)),ir!==0){var xr=mn(Ln+ir,ir);$t(xr),Cn(xr,!0)}break}case ut.ENTER:{var Sr=gt[Ln];Sr&&!Sr.data.disabled?Un(Sr.value):Un(void 0),Nn&&ar.preventDefault();break}case ut.ESC:si(!1),Nn&&ar.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ar){$t(ar)}}}),gt.length===0)return Ee.createElement("div",{role:"listbox",id:"".concat(En,"_list"),className:"".concat(rt,"-empty"),onMouseDown:jt},Fr);var qn=Object.keys(Ct).map(function(hr){return Ct[hr]}),mr=function(ar){return ar.label};function Gn(hr,ar){var Qn=hr.group;return{role:Qn?"presentation":"option",id:"".concat(En,"_list_").concat(ar)}}var kr=function(ar){var Qn=gt[ar];if(!Qn)return null;var gr=Qn.data||{},ir=gr.value,xr=Qn.group,Sr=fe(gr,!0),yr=mr(Qn);return Qn?Ee.createElement("div",(0,ke.Z)({"aria-label":typeof yr=="string"&&!xr?yr:null},Sr,{key:ar},Gn(Qn,ar),{"aria-selected":sr(ir)}),ir):null},Er={role:"listbox",id:"".concat(En,"_list")};return Ee.createElement(Ee.Fragment,null,De&&Ee.createElement("div",(0,ke.Z)({},Er,{style:{height:0,width:0,overflow:"hidden"}}),kr(Ln-1),kr(Ln),kr(Ln+1)),Ee.createElement(Ks.Z,{itemKey:"key",ref:xt,data:gt,height:Mt,itemHeight:Kt,fullHeight:!1,onMouseDown:jt,onScroll:hi,virtual:De,direction:vt,innerProps:De?null:Er},function(hr,ar){var Qn,gr=hr.group,ir=hr.groupOption,xr=hr.data,Sr=hr.label,yr=hr.value,rr=xr.key;if(gr){var _r,Qr=(_r=xr.title)!==null&&_r!==void 0?_r:nt(Sr)?Sr.toString():void 0;return Ee.createElement("div",{className:it()(rt,"".concat(rt,"-group")),title:Qr},Sr!==void 0?Sr:rr)}var ea=xr.disabled,Ui=xr.title,ji=xr.children,pa=xr.style,Bi=xr.className,Ia=(0,at.Z)(xr,_e),Qa=Zs(Ia,qn),ri=sr(yr),Br="".concat(rt,"-option"),Ei=it()(rt,Br,Bi,(Qn={},(0,tt.Z)(Qn,"".concat(Br,"-grouped"),ir),(0,tt.Z)(Qn,"".concat(Br,"-active"),Ln===ar&&!ea),(0,tt.Z)(Qn,"".concat(Br,"-disabled"),ea),(0,tt.Z)(Qn,"".concat(Br,"-selected"),ri),Qn)),Yi=mr(hr),xi=!Be||typeof Be=="function"||ri,la=typeof Yi=="number"?Yi:Yi||yr,Ai=nt(la)?la.toString():void 0;return Ui!==void 0&&(Ai=Ui),Ee.createElement("div",(0,ke.Z)({},fe(Qa),De?{}:Gn(hr,ar),{"aria-selected":ri,className:Ei,title:Ai,onMouseMove:function(){Ln===ar||ea||Cn(ar)},onClick:function(){ea||Un(yr)},style:pa}),Ee.createElement("div",{className:"".concat(Br,"-content")},la),Ee.isValidElement(Be)||ri,xi&&Ee.createElement(Jt,{className:"".concat(rt,"-option-state"),customizeIcon:Be,customizeIconProps:{isSelected:ri}},ri?"\u2713":null))}))},Ae=Ee.forwardRef(pn);Ae.displayName="OptionList";var St=Ae;function Ft(Te){var He=Te.mode,Nt=Te.options,Tt=Te.children,hn=Te.backfill,En=Te.allowClear,Nn=Te.placeholder,or=Te.getInputElement,lr=Te.showSearch,vr=Te.onSearch,si=Te.defaultOpen,Fr=Te.autoFocus,hi=Te.labelInValue,Mr=Te.value,ti=Te.inputValue,Rr=Te.optionLabelProp,pi=isMultiple(He),ki=lr!==void 0?lr:pi||He==="combobox",Be=Nt||convertChildrenToData(Tt);if(warning(He!=="tags"||Be.every(function(vt){return!vt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),He==="tags"||He==="combobox"){var We=Be.some(function(vt){return vt.options?vt.options.some(function(Mt){return typeof("value"in Mt?Mt.value:Mt.key)=="number"}):typeof("value"in vt?vt.value:vt.key)=="number"});warning(!We,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(He!=="combobox"||!Rr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(He==="combobox"||!hn,"`backfill` only works with `combobox` mode."),warning(He==="combobox"||!or,"`getInputElement` only work with `combobox` mode."),noteOnce(He!=="combobox"||!or||!En||!Nn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),vr&&!ki&&He!=="combobox"&&He!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!si||Fr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Mr!=null){var Ct=toArray(Mr);warning(!hi||Ct.every(function(vt){return _typeof(vt)==="object"&&("key"in vt||"value"in vt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!pi||Array.isArray(Mr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Tt){var De=null;toNodeArray(Tt).some(function(vt){if(!React.isValidElement(vt)||!vt.type)return!1;var Mt=vt,Kt=Mt.type;if(Kt.isSelectOption)return!1;if(Kt.isSelectOptGroup){var rt=toNodeArray(vt.props.children).every(function(gt){return!React.isValidElement(gt)||!vt.type||gt.type.isSelectOption?!0:(De=gt.type,!1)});return!rt}return De=Kt,!0}),De&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(De.displayName||De.name||De,"`.")),warning(ti===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function an(Te,He){if(Te){var Nt=function Tt(hn){for(var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Nn=0;Nn<hn.length;Nn++){var or=hn[Nn];if(or[He==null?void 0:He.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!En&&Array.isArray(or[He==null?void 0:He.options])&&Tt(or[He==null?void 0:He.options],!0))break}};Nt(Te)}}var Rt=null,In=["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"],zn=["inputValue"];function Rn(Te){return!Te||(0,kt.Z)(Te)!=="object"}var Mn=Ee.forwardRef(function(Te,He){var Nt=Te.id,Tt=Te.mode,hn=Te.prefixCls,En=hn===void 0?"rc-select":hn,Nn=Te.backfill,or=Te.fieldNames,lr=Te.inputValue,vr=Te.searchValue,si=Te.onSearch,Fr=Te.autoClearSearchValue,hi=Fr===void 0?!0:Fr,Mr=Te.onSelect,ti=Te.onDeselect,Rr=Te.dropdownMatchSelectWidth,pi=Rr===void 0?!0:Rr,ki=Te.filterOption,Be=Te.filterSort,We=Te.optionFilterProp,Ct=Te.optionLabelProp,De=Te.options,vt=Te.children,Mt=Te.defaultActiveFirstOption,Kt=Te.menuItemSelectedIcon,rt=Te.virtual,gt=Te.direction,xt=Te.listHeight,jt=xt===void 0?200:xt,$t=Te.listItemHeight,mn=$t===void 0?20:$t,qt=Te.value,gn=Te.defaultValue,Ln=Te.labelInValue,Wn=Te.onChange,Cn=(0,at.Z)(Te,In),sr=So(Nt),Un=ps(Tt),qn=!!(!De&&vt),mr=Ee.useMemo(function(){return ki===void 0&&Tt==="combobox"?!1:ki},[ki,Tt]),Gn=Ee.useMemo(function(){return Go(or,qn)},[JSON.stringify(or),qn]),kr=ot("",{value:vr!==void 0?vr:lr,postState:function(Nr){return Nr||""}}),Er=(0,we.Z)(kr,2),hr=Er[0],ar=Er[1],Qn=Us(De,vt,Gn,We,Ct),gr=Qn.valueOptions,ir=Qn.labelOptions,xr=Qn.options,Sr=Ee.useCallback(function(tr){var Nr=ta(tr);return Nr.map(function(Gr){var pr,Ji,Fa,Mo,ao;if(Rn(Gr))pr=Gr;else{var Wo;Fa=Gr.key,Ji=Gr.label,pr=(Wo=Gr.value)!==null&&Wo!==void 0?Wo:Fa}var po=gr.get(pr);if(po){var Ps;if(Ji===void 0&&(Ji=po==null?void 0:po[Ct||Gn.label]),Fa===void 0&&(Fa=(Ps=po==null?void 0:po.key)!==null&&Ps!==void 0?Ps:pr),Mo=po==null?void 0:po.disabled,ao=po==null?void 0:po.title,0)var bs}return{label:Ji,value:pr,key:Fa,disabled:Mo,title:ao}})},[Gn,Ct,gr]),yr=ot(gn,{value:qt}),rr=(0,we.Z)(yr,2),_r=rr[0],Qr=rr[1],ea=Ee.useMemo(function(){var tr,Nr=Sr(_r);return Tt==="combobox"&&bo((tr=Nr[0])===null||tr===void 0?void 0:tr.value)?[]:Nr},[_r,Sr,Tt]),Ui=Va(ea,gr),ji=(0,we.Z)(Ui,2),pa=ji[0],Bi=ji[1],Ia=Ee.useMemo(function(){if(!Tt&&pa.length===1){var tr=pa[0];if(tr.value===null&&(tr.label===null||tr.label===void 0))return[]}return pa.map(function(Nr){var Gr;return(0,ve.Z)((0,ve.Z)({},Nr),{},{label:(Gr=Nr.label)!==null&&Gr!==void 0?Gr:Nr.value})})},[Tt,pa]),Qa=Ee.useMemo(function(){return new Set(pa.map(function(tr){return tr.value}))},[pa]);Ee.useEffect(function(){if(Tt==="combobox"){var tr,Nr=(tr=pa[0])===null||tr===void 0?void 0:tr.value;ar(Eo(Nr)?String(Nr):"")}},[pa]);var ri=js(function(tr,Nr){var Gr,pr=Nr!=null?Nr:tr;return Gr={},(0,tt.Z)(Gr,Gn.value,tr),(0,tt.Z)(Gr,Gn.label,pr),Gr}),Br=Ee.useMemo(function(){if(Tt!=="tags")return xr;var tr=(0,te.Z)(xr),Nr=function(pr){return gr.has(pr)};return(0,te.Z)(pa).sort(function(Gr,pr){return Gr.value<pr.value?-1:1}).forEach(function(Gr){var pr=Gr.value;Nr(pr)||tr.push(ri(pr,Gr.label))}),tr},[ri,xr,gr,pa,Tt]),Ei=Vl(Br,Gn,hr,mr,We),Yi=Ee.useMemo(function(){return Tt!=="tags"||!hr||Ei.some(function(tr){return tr[We||"value"]===hr})||Ei.some(function(tr){return tr[Gn.value]===hr})?Ei:[ri(hr)].concat((0,te.Z)(Ei))},[ri,We,Tt,Ei,hr,Gn]),xi=Ee.useMemo(function(){return Be?(0,te.Z)(Yi).sort(function(tr,Nr){return Be(tr,Nr)}):Yi},[Yi,Be]),la=Ee.useMemo(function(){return hs(xi,{fieldNames:Gn,childrenAsData:qn})},[xi,Gn,qn]),Ai=function(Nr){var Gr=Sr(Nr);if(Qr(Gr),Wn&&(Gr.length!==pa.length||Gr.some(function(Fa,Mo){var ao;return((ao=pa[Mo])===null||ao===void 0?void 0:ao.value)!==(Fa==null?void 0:Fa.value)}))){var pr=Ln?Gr:Gr.map(function(Fa){return Fa.value}),Ji=Gr.map(function(Fa){return Ws(Bi(Fa.value))});Wn(Un?pr:pr[0],Un?Ji:Ji[0])}},$i=Ee.useState(null),wa=(0,we.Z)($i,2),za=wa[0],Xa=wa[1],Qi=Ee.useState(0),Pi=(0,we.Z)(Qi,2),La=Pi[0],Sa=Pi[1],ma=Mt!==void 0?Mt:Tt!=="combobox",ua=Ee.useCallback(function(tr,Nr){var Gr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pr=Gr.source,Ji=pr===void 0?"keyboard":pr;Sa(Nr),Nn&&Tt==="combobox"&&tr!==null&&Ji==="keyboard"&&Xa(String(tr))},[Nn,Tt]),ii=function(Nr,Gr,pr){var Ji=function(){var fl,el=Bi(Nr);return[Ln?{label:el==null?void 0:el[Gn.label],value:Nr,key:(fl=el==null?void 0:el.key)!==null&&fl!==void 0?fl:Nr}:Nr,Ws(el)]};if(Gr&&Mr){var Fa=Ji(),Mo=(0,we.Z)(Fa,2),ao=Mo[0],Wo=Mo[1];Mr(ao,Wo)}else if(!Gr&&ti&&pr!=="clear"){var po=Ji(),Ps=(0,we.Z)(po,2),bs=Ps[0],xs=Ps[1];ti(bs,xs)}},bi=js(function(tr,Nr){var Gr,pr=Un?Nr.selected:!0;pr?Gr=Un?[].concat((0,te.Z)(pa),[tr]):[tr]:Gr=pa.filter(function(Ji){return Ji.value!==tr}),Ai(Gr),ii(tr,pr),Tt==="combobox"?Xa(""):(!ps||hi)&&(ar(""),Xa(""))}),va=function(Nr,Gr){Ai(Nr);var pr=Gr.type,Ji=Gr.values;(pr==="remove"||pr==="clear")&&Ji.forEach(function(Fa){ii(Fa.value,!1,pr)})},oa=function(Nr,Gr){if(ar(Nr),Xa(null),Gr.source==="submit"){var pr=(Nr||"").trim();if(pr){var Ji=Array.from(new Set([].concat((0,te.Z)(Qa),[pr])));Ai(Ji),ii(pr,!0),ar("")}return}Gr.source!=="blur"&&(Tt==="combobox"&&Ai(Nr),si==null||si(Nr))},Ra=function(Nr){var Gr=Nr;Tt!=="tags"&&(Gr=Nr.map(function(Ji){var Fa=ir.get(Ji);return Fa==null?void 0:Fa.value}).filter(function(Ji){return Ji!==void 0}));var pr=Array.from(new Set([].concat((0,te.Z)(Qa),(0,te.Z)(Gr))));Ai(pr),pr.forEach(function(Ji){ii(Ji,!0)})},ui=Ee.useMemo(function(){var tr=rt!==!1&&pi!==!1;return(0,ve.Z)((0,ve.Z)({},Qn),{},{flattenOptions:la,onActiveValue:ua,defaultActiveFirstOption:ma,onSelect:bi,menuItemSelectedIcon:Kt,rawValues:Qa,fieldNames:Gn,virtual:tr,direction:gt,listHeight:jt,listItemHeight:mn,childrenAsData:qn})},[Qn,la,ua,ma,bi,Kt,Qa,Gn,rt,pi,jt,mn,qn]);return Ee.createElement(vs.Provider,{value:ui},Ee.createElement(qo,(0,ke.Z)({},Cn,{id:sr,prefixCls:En,ref:He,omitDomProps:zn,mode:Tt,displayValues:Ia,onDisplayValuesChange:va,direction:gt,searchValue:hr,onSearch:oa,autoClearSearchValue:hi,onSearchSplit:Ra,dropdownMatchSelectWidth:pi,OptionList:St,emptyOptions:!la.length,activeValue:za,activeDescendantId:"".concat(sr,"_list_").concat(La)})))}),sn=Mn;sn.Option=ms,sn.OptGroup=Ua;var Bn=null,Tn=null,Kn=he(17341);function Zr(Te){var He=Ee.useRef(!1),Nt=Ee.useState(Te),Tt=(0,we.Z)(Nt,2),hn=Tt[0],En=Tt[1];Ee.useEffect(function(){return He.current=!1,function(){He.current=!0}},[]);function Nn(or,lr){lr&&He.current||En(or)}return[hn,Nn]}function li(Te){return Te!==void 0}function Gi(Te,He){var Nt=He||{},Tt=Nt.defaultValue,hn=Nt.value,En=Nt.onChange,Nn=Nt.postState,or=Zr(function(){return li(hn)?hn:li(Tt)?typeof Tt=="function"?Tt():Tt:typeof Te=="function"?Te():Te}),lr=(0,we.Z)(or,2),vr=lr[0],si=lr[1],Fr=hn!==void 0?hn:vr,hi=Nn?Nn(Fr):Fr,Mr=Dr(En),ti=Zr([Fr]),Rr=(0,we.Z)(ti,2),pi=Rr[0],ki=Rr[1];_t(function(){var We=pi[0];vr!==We&&Mr(vr,We)},[pi]),_t(function(){li(hn)||si(hn)},[hn]);var Be=Dr(function(We,Ct){si(We,Ct),ki([Fr],Ct)});return[hi,Be]}var Oi=Ee.createContext(null),fa=Oi,xa="__rc_cascader_search_mark__",Oa=function(He,Nt,Tt){var hn=Tt.label;return Nt.some(function(En){return String(En[hn]).toLowerCase().includes(He.toLowerCase())})},_a=function(He,Nt,Tt,hn){return Nt.map(function(En){return En[hn.label]}).join(" / ")},$a=function(Te,He,Nt,Tt,hn,En){var Nn=hn.filter,or=Nn===void 0?Oa:Nn,lr=hn.render,vr=lr===void 0?_a:lr,si=hn.limit,Fr=si===void 0?50:si,hi=hn.sort;return Ee.useMemo(function(){var Mr=[];if(!Te)return[];function ti(Rr,pi){var ki=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Rr.forEach(function(Be){if(!(!hi&&Fr!==!1&&Fr>0&&Mr.length>=Fr)){var We=[].concat((0,te.Z)(pi),[Be]),Ct=Be[Nt.children],De=ki||Be.disabled;if((!Ct||Ct.length===0||En)&&or(Te,We,{label:Nt.label})){var vt;Mr.push((0,ve.Z)((0,ve.Z)({},Be),{},(vt={disabled:De},(0,tt.Z)(vt,Nt.label,vr(Te,We,Tt,Nt)),(0,tt.Z)(vt,xa,We),(0,tt.Z)(vt,Nt.children,void 0),vt)))}Ct&&ti(Be[Nt.children],We,De)}})}return ti(He,[]),hi&&Mr.sort(function(Rr,pi){return hi(Rr[xa],pi[xa],Te,Nt)}),Fr!==!1&&Fr>0?Mr.slice(0,Fr):Mr},[Te,He,Nt,Tt,vr,En,or,hi,Fr])},Pa="__RC_CASCADER_SPLIT__",Za="SHOW_PARENT",Po="SHOW_CHILD";function tn(Te){return Te.join(Pa)}function rn(Te){return Te.map(tn)}function fn(Te){return Te.split(Pa)}function Hn(Te){var He=Te||{},Nt=He.label,Tt=He.value,hn=He.children,En=Tt||"value";return{label:Nt||"label",value:En,key:En,children:hn||"children"}}function ei(Te,He){var Nt,Tt;return(Nt=Te.isLeaf)!==null&&Nt!==void 0?Nt:!((Tt=Te[He.children])!==null&&Tt!==void 0&&Tt.length)}function Wi(Te){var He=Te.parentElement;if(He){var Nt=Te.offsetTop-He.offsetTop;Nt-He.scrollTop<0?He.scrollTo({top:Nt}):Nt+Te.offsetHeight-He.scrollTop>He.offsetHeight&&He.scrollTo({top:Nt+Te.offsetHeight-He.offsetHeight})}}function Zn(Te,He){return Te.map(function(Nt){var Tt;return(Tt=Nt[xa])===null||Tt===void 0?void 0:Tt.map(function(hn){return hn[He.value]})})}function Lr(Te,He,Nt){var Tt=new Set(Te),hn=He();return Te.filter(function(En){var Nn=hn[En],or=Nn?Nn.parent:null,lr=Nn?Nn.children:null;return Nn&&Nn.node.disabled?!0:Nt===Po?!(lr&&lr.some(function(vr){return vr.key&&Tt.has(vr.key)})):!(or&&!or.node.disabled&&Tt.has(or.key))})}function vi(Te,He,Nt){for(var Tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,hn=He,En=[],Nn=function(){var vr,si,Fr,hi=Te[or],Mr=(vr=hn)===null||vr===void 0?void 0:vr.findIndex(function(Rr){var pi=Rr[Nt.value];return Tt?String(pi)===String(hi):pi===hi}),ti=Mr!==-1?(si=hn)===null||si===void 0?void 0:si[Mr]:null;En.push({value:(Fr=ti==null?void 0:ti[Nt.value])!==null&&Fr!==void 0?Fr:hi,index:Mr,option:ti}),hn=ti==null?void 0:ti[Nt.children]},or=0;or<Te.length;or+=1)Nn();return En}var qi=function(Te,He,Nt,Tt,hn){return Ee.useMemo(function(){var En=hn||function(Nn){var or=Tt?Nn.slice(-1):Nn,lr=" / ";return or.every(function(vr){return["string","number"].includes((0,kt.Z)(vr))})?or.join(lr):or.reduce(function(vr,si,Fr){var hi=Ee.isValidElement(si)?Ee.cloneElement(si,{key:Fr}):si;return Fr===0?[hi]:[].concat((0,te.Z)(vr),[lr,hi])},[])};return Te.map(function(Nn){var or,lr,vr=vi(Nn,He,Nt),si=En(vr.map(function(hi){var Mr,ti=hi.option,Rr=hi.value;return(Mr=ti==null?void 0:ti[Nt.label])!==null&&Mr!==void 0?Mr:Rr}),vr.map(function(hi){var Mr=hi.option;return Mr})),Fr=tn(Nn);return{label:si,value:Fr,key:Fr,valueCells:Nn,disabled:(or=vr[vr.length-1])===null||or===void 0||(lr=or.option)===null||lr===void 0?void 0:lr.disabled}})},[Te,He,Nt,hn,Tt])},Kr=he(1089),dr=function(Te,He){var Nt=Ee.useRef({options:null,info:null}),Tt=Ee.useCallback(function(){return Nt.current.options!==Te&&(Nt.current.options=Te,Nt.current.info=(0,Kr.I8)(Te,{fieldNames:He,initWrapper:function(En){return(0,ve.Z)((0,ve.Z)({},En),{},{pathKeyEntities:{}})},processEntity:function(En,Nn){var or=En.nodes.map(function(lr){return lr[He.value]}).join(Pa);Nn.pathKeyEntities[or]=En,En.key=or}})),Nt.current.info.pathKeyEntities},[He,Te]);return Tt},Vi=function(Te,He){return Ee.useCallback(function(Nt){var Tt=[],hn=[];return Nt.forEach(function(En){var Nn=vi(En,Te,He);Nn.every(function(or){return or.option})?hn.push(En):Tt.push(En)}),[hn,Tt]},[Te,He])},ha={},Ea=[],Ci=function(He){Ea.push(He)};function fi(Te,He){if(0)var Nt}function Ga(Te,He){if(0)var Nt}function Ka(){ha={}}function Ao(Te,He,Nt){!He&&!ha[Nt]&&(Te(!1,Nt),ha[Nt]=!0)}function Es(Te,He){Ao(fi,Te,He)}function bl(Te,He){Ao(Ga,Te,He)}Es.preMessage=Ci,Es.resetWarned=Ka,Es.noteOnce=bl;var Io=null;function Rl(Te){return Ee.useMemo(function(){if(!Te)return[!1,{}];var He={matchInputWidth:!0,limit:50};return Te&&(0,kt.Z)(Te)==="object"&&(He=(0,ve.Z)((0,ve.Z)({},He),Te)),He.limit<=0&&delete He.limit,[!0,He]},[Te])}var To=Ee.memo(function(Te){var He=Te.children;return He},function(Te,He){return!He.open}),Ls=To;function Uo(Te){var He,Nt=Te.prefixCls,Tt=Te.checked,hn=Te.halfChecked,En=Te.disabled,Nn=Te.onClick,or=Te.disableCheckbox,lr=Ee.useContext(fa),vr=lr.checkable,si=typeof vr!="boolean"?vr:null;return Ee.createElement("span",{className:it()("".concat(Nt),(He={},(0,tt.Z)(He,"".concat(Nt,"-checked"),Tt),(0,tt.Z)(He,"".concat(Nt,"-indeterminate"),!Tt&&hn),(0,tt.Z)(He,"".concat(Nt,"-disabled"),En||or),He)),onClick:Nn},si)}var wo="__cascader_fix_label__";function ll(Te){var He=Te.prefixCls,Nt=Te.multiple,Tt=Te.options,hn=Te.activeValue,En=Te.prevValuePath,Nn=Te.onToggleOpen,or=Te.onSelect,lr=Te.onActive,vr=Te.checkedSet,si=Te.halfCheckedSet,Fr=Te.loadingKeys,hi=Te.isSelectable,Mr=Te.searchValue,ti="".concat(He,"-menu"),Rr="".concat(He,"-menu-item"),pi=Ee.useContext(fa),ki=pi.fieldNames,Be=pi.changeOnSelect,We=pi.expandTrigger,Ct=pi.expandIcon,De=pi.loadingIcon,vt=pi.dropdownMenuColumnStyle,Mt=We==="hover",Kt=Ee.useMemo(function(){return Tt.map(function(rt){var gt,xt=rt.disabled,jt=rt.disableCheckbox,$t=rt[xa],mn=(gt=rt[wo])!==null&>!==void 0?gt:rt[ki.label],qt=rt[ki.value],gn=ei(rt,ki),Ln=$t?$t.map(function(qn){return qn[ki.value]}):[].concat((0,te.Z)(En),[qt]),Wn=tn(Ln),Cn=Fr.includes(Wn),sr=vr.has(Wn),Un=si.has(Wn);return{disabled:xt,label:mn,value:qt,isLeaf:gn,isLoading:Cn,checked:sr,halfChecked:Un,option:rt,disableCheckbox:jt,fullPath:Ln,fullPathKey:Wn}})},[Tt,vr,ki,si,Fr,En]);return Ee.createElement("ul",{className:ti,role:"menu"},Kt.map(function(rt){var gt,xt=rt.disabled,jt=rt.label,$t=rt.value,mn=rt.isLeaf,qt=rt.isLoading,gn=rt.checked,Ln=rt.halfChecked,Wn=rt.option,Cn=rt.fullPath,sr=rt.fullPathKey,Un=rt.disableCheckbox,qn=function(){if(!(xt||Mr)){var Er=(0,te.Z)(Cn);Mt&&mn&&Er.pop(),lr(Er)}},mr=function(){hi(Wn)&&or(Cn,mn)},Gn;return typeof Wn.title=="string"?Gn=Wn.title:typeof jt=="string"&&(Gn=jt),Ee.createElement("li",{key:sr,className:it()(Rr,(gt={},(0,tt.Z)(gt,"".concat(Rr,"-expand"),!mn),(0,tt.Z)(gt,"".concat(Rr,"-active"),hn===$t||hn===sr),(0,tt.Z)(gt,"".concat(Rr,"-disabled"),xt),(0,tt.Z)(gt,"".concat(Rr,"-loading"),qt),gt)),style:vt,role:"menuitemcheckbox",title:Gn,"aria-checked":gn,"data-path-key":sr,onClick:function(){qn(),!Un&&(!Nt||mn)&&mr()},onDoubleClick:function(){Be&&Nn(!1)},onMouseEnter:function(){Mt&&qn()},onMouseDown:function(Er){Er.preventDefault()}},Nt&&Ee.createElement(Uo,{prefixCls:"".concat(He,"-checkbox"),checked:gn,halfChecked:Ln,disabled:xt||Un,disableCheckbox:Un,onClick:function(Er){Un||(Er.stopPropagation(),mr())}}),Ee.createElement("div",{className:"".concat(Rr,"-content")},jt),!qt&&Ct&&!mn&&Ee.createElement("div",{className:"".concat(Rr,"-expand-icon")},Ct),qt&&De&&Ee.createElement("div",{className:"".concat(Rr,"-loading-icon")},De))}))}var ul=function(){var Te=Dt(),He=Te.multiple,Nt=Te.open,Tt=Ee.useContext(fa),hn=Tt.values,En=Ee.useState([]),Nn=(0,we.Z)(En,2),or=Nn[0],lr=Nn[1];return Ee.useEffect(function(){if(Nt&&!He){var vr=hn[0];lr(vr||[])}},[Nt]),[or,lr]},ia={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(He){var Nt=He.keyCode;if(He.altKey&&!He.ctrlKey||He.metaKey||Nt>=ia.F1&&Nt<=ia.F12)return!1;switch(Nt){case ia.ALT:case ia.CAPS_LOCK:case ia.CONTEXT_MENU:case ia.CTRL:case ia.DOWN:case ia.END:case ia.ESC:case ia.HOME:case ia.INSERT:case ia.LEFT:case ia.MAC_FF_META:case ia.META:case ia.NUMLOCK:case ia.NUM_CENTER:case ia.PAGE_DOWN:case ia.PAGE_UP:case ia.PAUSE:case ia.PRINT_SCREEN:case ia.RIGHT:case ia.SHIFT:case ia.UP:case ia.WIN_KEY:case ia.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(He){if(He>=ia.ZERO&&He<=ia.NINE||He>=ia.NUM_ZERO&&He<=ia.NUM_MULTIPLY||He>=ia.A&&He<=ia.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&He===0)return!0;switch(He){case ia.SPACE:case ia.QUESTION_MARK:case ia.NUM_PLUS:case ia.NUM_MINUS:case ia.NUM_PERIOD:case ia.NUM_DIVISION:case ia.SEMICOLON:case ia.DASH:case ia.EQUALS:case ia.COMMA:case ia.PERIOD:case ia.SLASH:case ia.APOSTROPHE:case ia.SINGLE_QUOTE:case ia.OPEN_SQUARE_BRACKET:case ia.BACKSLASH:case ia.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ys=ia,cl=function(Te,He,Nt,Tt,hn,En){var Nn=Dt(),or=Nn.direction,lr=Nn.searchValue,vr=Nn.toggleOpen,si=Nn.open,Fr=or==="rtl",hi=Ee.useMemo(function(){for(var vt=-1,Mt=He,Kt=[],rt=[],gt=Tt.length,xt=Zn(He,Nt),jt=function(Wn){var Cn=Mt.findIndex(function(sr,Un){return(xt[Un]?tn(xt[Un]):sr[Nt.value])===Tt[Wn]});if(Cn===-1)return"break";vt=Cn,Kt.push(vt),rt.push(Tt[Wn]),Mt=Mt[vt][Nt.children]},$t=0;$t<gt&&Mt;$t+=1){var mn=jt($t);if(mn==="break")break}for(var qt=He,gn=0;gn<Kt.length-1;gn+=1)qt=qt[Kt[gn]][Nt.children];return[rt,vt,qt,xt]},[Tt,Nt,He]),Mr=(0,we.Z)(hi,4),ti=Mr[0],Rr=Mr[1],pi=Mr[2],ki=Mr[3],Be=function(Mt){hn(Mt)},We=function(Mt){var Kt=pi.length,rt=Rr;rt===-1&&Mt<0&&(rt=Kt);for(var gt=0;gt<Kt;gt+=1){rt=(rt+Mt+Kt)%Kt;var xt=pi[rt];if(xt&&!xt.disabled){var jt=ti.slice(0,-1).concat(ki[rt]?tn(ki[rt]):xt[Nt.value]);Be(jt);return}}},Ct=function(){if(ti.length>1){var Mt=ti.slice(0,-1);Be(Mt)}else vr(!1)},De=function(){var Mt,Kt=((Mt=pi[Rr])===null||Mt===void 0?void 0:Mt[Nt.children])||[],rt=Kt.find(function(xt){return!xt.disabled});if(rt){var gt=[].concat((0,te.Z)(ti),[rt[Nt.value]]);Be(gt)}};Ee.useImperativeHandle(Te,function(){return{onKeyDown:function(Mt){var Kt=Mt.which;switch(Kt){case ys.UP:case ys.DOWN:{var rt=0;Kt===ys.UP?rt=-1:Kt===ys.DOWN&&(rt=1),rt!==0&&We(rt);break}case ys.LEFT:{if(lr)break;Fr?De():Ct();break}case ys.RIGHT:{if(lr)break;Fr?Ct():De();break}case ys.BACKSPACE:{lr||Ct();break}case ys.ENTER:{if(ti.length){var gt=pi[Rr],xt=(gt==null?void 0:gt[xa])||[];xt.length?En(xt.map(function(jt){return jt[Nt.value]}),xt[xt.length-1]):En(ti,pi[Rr])}break}case ys.ESC:vr(!1),si&&Mt.stopPropagation()}},onKeyUp:function(){}}})},Gs=Ee.forwardRef(function(Te,He){var Nt,Tt,hn,En,Nn=Dt(),or=Nn.prefixCls,lr=Nn.multiple,vr=Nn.searchValue,si=Nn.toggleOpen,Fr=Nn.notFoundContent,hi=Nn.direction,Mr=Nn.open,ti=Ee.useRef(),Rr=hi==="rtl",pi=Ee.useContext(fa),ki=pi.options,Be=pi.values,We=pi.halfValues,Ct=pi.fieldNames,De=pi.changeOnSelect,vt=pi.onSelect,Mt=pi.searchOptions,Kt=pi.dropdownPrefixCls,rt=pi.loadData,gt=pi.expandTrigger,xt=Kt||or,jt=Ee.useState([]),$t=(0,we.Z)(jt,2),mn=$t[0],qt=$t[1],gn=function(rr){if(!(!rt||vr)){var _r=vi(rr,ki,Ct),Qr=_r.map(function(ji){var pa=ji.option;return pa}),ea=Qr[Qr.length-1];if(ea&&!ei(ea,Ct)){var Ui=tn(rr);qt(function(ji){return[].concat((0,te.Z)(ji),[Ui])}),rt(Qr)}}};Ee.useEffect(function(){mn.length&&mn.forEach(function(yr){var rr=fn(yr),_r=vi(rr,ki,Ct,!0).map(function(ea){var Ui=ea.option;return Ui}),Qr=_r[_r.length-1];(!Qr||Qr[Ct.children]||ei(Qr,Ct))&&qt(function(ea){return ea.filter(function(Ui){return Ui!==yr})})})},[ki,mn,Ct]);var Ln=Ee.useMemo(function(){return new Set(rn(Be))},[Be]),Wn=Ee.useMemo(function(){return new Set(rn(We))},[We]),Cn=ul(),sr=(0,we.Z)(Cn,2),Un=sr[0],qn=sr[1],mr=function(rr){qn(rr),gn(rr)},Gn=function(rr){var _r=rr.disabled,Qr=ei(rr,Ct);return!_r&&(Qr||De||lr)},kr=function(rr,_r){var Qr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;vt(rr),!lr&&(_r||De&&(gt==="hover"||Qr))&&si(!1)},Er=Ee.useMemo(function(){return vr?Mt:ki},[vr,Mt,ki]),hr=Ee.useMemo(function(){for(var yr=[{options:Er}],rr=Er,_r=Zn(rr,Ct),Qr=function(){var pa=Un[ea],Bi=rr.find(function(Qa,ri){return(_r[ri]?tn(_r[ri]):Qa[Ct.value])===pa}),Ia=Bi==null?void 0:Bi[Ct.children];if(!(Ia!=null&&Ia.length))return"break";rr=Ia,yr.push({options:Ia})},ea=0;ea<Un.length;ea+=1){var Ui=Qr();if(Ui==="break")break}return yr},[Er,Un,Ct]),ar=function(rr,_r){Gn(_r)&&kr(rr,ei(_r,Ct),!0)};cl(He,Er,Ct,Un,mr,ar),Ee.useEffect(function(){for(var yr=0;yr<Un.length;yr+=1){var rr,_r=Un.slice(0,yr+1),Qr=tn(_r),ea=(rr=ti.current)===null||rr===void 0?void 0:rr.querySelector('li[data-path-key="'.concat(Qr.replace(/\\{0,2}"/g,'\\"'),'"]'));ea&&Wi(ea)}},[Un]);var Qn=!((Nt=hr[0])!==null&&Nt!==void 0&&(Tt=Nt.options)!==null&&Tt!==void 0&&Tt.length),gr=[(hn={},(0,tt.Z)(hn,Ct.value,"__EMPTY__"),(0,tt.Z)(hn,wo,Fr),(0,tt.Z)(hn,"disabled",!0),hn)],ir=(0,ve.Z)((0,ve.Z)({},Te),{},{multiple:!Qn&&lr,onSelect:kr,onActive:mr,onToggleOpen:si,checkedSet:Ln,halfCheckedSet:Wn,loadingKeys:mn,isSelectable:Gn}),xr=Qn?[{options:gr}]:hr,Sr=xr.map(function(yr,rr){var _r=Un.slice(0,rr),Qr=Un[rr];return Ee.createElement(ll,(0,ke.Z)({key:rr},ir,{searchValue:vr,prefixCls:xt,options:yr.options,prevValuePath:_r,activeValue:Qr}))});return Ee.createElement(Ls,{open:Mr},Ee.createElement("div",{className:it()("".concat(xt,"-menus"),(En={},(0,tt.Z)(En,"".concat(xt,"-menu-empty"),Qn),(0,tt.Z)(En,"".concat(xt,"-rtl"),Rr),En)),ref:ti},Sr))}),is=Gs;function eo(Te){var He=Te.onPopupVisibleChange,Nt=Te.popupVisible,Tt=Te.popupClassName,hn=Te.popupPlacement;warning(!He,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Nt===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Tt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(hn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Ul(Te,He){if(Te){var Nt=function Tt(hn){for(var En=0;En<hn.length;En++){var Nn=hn[En];if(Nn[He==null?void 0:He.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Nn[He==null?void 0:He.children])&&Tt(Nn[He==null?void 0:He.children]))return!0}};Nt(Te)}}var Fs=null,Fl=["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(Te){return Array.isArray(Te)&&Array.isArray(Te[0])}function zu(Te){return Te?Hu(Te)?Te:(Te.length===0?[]:[Te]).map(function(He){return Array.isArray(He)?He:[He]}):[]}var dl=Ee.forwardRef(function(Te,He){var Nt=Te.id,Tt=Te.prefixCls,hn=Tt===void 0?"rc-cascader":Tt,En=Te.fieldNames,Nn=Te.defaultValue,or=Te.value,lr=Te.changeOnSelect,vr=Te.onChange,si=Te.displayRender,Fr=Te.checkable,hi=Te.autoClearSearchValue,Mr=hi===void 0?!0:hi,ti=Te.searchValue,Rr=Te.onSearch,pi=Te.showSearch,ki=Te.expandTrigger,Be=Te.options,We=Te.dropdownPrefixCls,Ct=Te.loadData,De=Te.popupVisible,vt=Te.open,Mt=Te.popupClassName,Kt=Te.dropdownClassName,rt=Te.dropdownMenuColumnStyle,gt=Te.popupPlacement,xt=Te.placement,jt=Te.onDropdownVisibleChange,$t=Te.onPopupVisibleChange,mn=Te.expandIcon,qt=mn===void 0?">":mn,gn=Te.loadingIcon,Ln=Te.children,Wn=Te.dropdownMatchSelectWidth,Cn=Wn===void 0?!1:Wn,sr=Te.showCheckedStrategy,Un=sr===void 0?Za:sr,qn=(0,at.Z)(Te,Fl),mr=So(Nt),Gn=!!Fr,kr=Gi(Nn,{value:or,postState:zu}),Er=(0,we.Z)(kr,2),hr=Er[0],ar=Er[1],Qn=Ee.useMemo(function(){return Hn(En)},[JSON.stringify(En)]),gr=Ee.useMemo(function(){return Be||[]},[Be]),ir=dr(gr,Qn),xr=Ee.useCallback(function(ua){var ii=ir();return ua.map(function(bi){var va=ii[bi].nodes;return va.map(function(oa){return oa[Qn.value]})})},[ir,Qn]),Sr=Gi("",{value:ti,postState:function(ii){return ii||""}}),yr=(0,we.Z)(Sr,2),rr=yr[0],_r=yr[1],Qr=function(ii,bi){_r(ii),bi.source!=="blur"&&Rr&&Rr(ii)},ea=Rl(pi),Ui=(0,we.Z)(ea,2),ji=Ui[0],pa=Ui[1],Bi=$a(rr,gr,Qn,We||hn,pa,lr),Ia=Vi(gr,Qn),Qa=Ee.useMemo(function(){var ua=Ia(hr),ii=(0,we.Z)(ua,2),bi=ii[0],va=ii[1];if(!Gn||!hr.length)return[bi,[],va];var oa=rn(bi),Ra=ir(),ui=(0,Kn.S)(oa,!0,Ra),tr=ui.checkedKeys,Nr=ui.halfCheckedKeys;return[xr(tr),xr(Nr),va]},[Gn,hr,ir,xr,Ia]),ri=(0,we.Z)(Qa,3),Br=ri[0],Ei=ri[1],Yi=ri[2],xi=Ee.useMemo(function(){var ua=rn(Br),ii=Lr(ua,ir,Un);return[].concat((0,te.Z)(Yi),(0,te.Z)(xr(ii)))},[Br,ir,xr,Yi,Un]),la=qi(xi,gr,Qn,Gn,si),Ai=Dr(function(ua){if(ar(ua),vr){var ii=zu(ua),bi=ii.map(function(Ra){return vi(Ra,gr,Qn).map(function(ui){return ui.option})}),va=Gn?ii:ii[0],oa=Gn?bi:bi[0];vr(va,oa)}}),$i=Dr(function(ua){if((!Gn||Mr)&&_r(""),!Gn)Ai(ua);else{var ii=tn(ua),bi=rn(Br),va=rn(Ei),oa=bi.includes(ii),Ra=Yi.some(function(ao){return tn(ao)===ii}),ui=Br,tr=Yi;if(Ra&&!oa)tr=Yi.filter(function(ao){return tn(ao)!==ii});else{var Nr=oa?bi.filter(function(ao){return ao!==ii}):[].concat((0,te.Z)(bi),[ii]),Gr=ir(),pr;if(oa){var Ji=(0,Kn.S)(Nr,{checked:!1,halfCheckedKeys:va},Gr);pr=Ji.checkedKeys}else{var Fa=(0,Kn.S)(Nr,!0,Gr);pr=Fa.checkedKeys}var Mo=Lr(pr,ir,Un);ui=xr(Mo)}Ai([].concat((0,te.Z)(tr),(0,te.Z)(ui)))}}),wa=function(ii,bi){if(bi.type==="clear"){Ai([]);return}var va=bi.values[0],oa=va.valueCells;$i(oa)},za=vt!==void 0?vt:De,Xa=Kt||Mt,Qi=xt||gt,Pi=function(ii){jt==null||jt(ii),$t==null||$t(ii)},La=Ee.useMemo(function(){return{options:gr,fieldNames:Qn,values:Br,halfValues:Ei,changeOnSelect:lr,onSelect:$i,checkable:Fr,searchOptions:Bi,dropdownPrefixCls:We,loadData:Ct,expandTrigger:ki,expandIcon:qt,loadingIcon:gn,dropdownMenuColumnStyle:rt}},[gr,Qn,Br,Ei,lr,$i,Fr,Bi,We,Ct,ki,qt,gn,rt]),Sa=!(rr?Bi:gr).length,ma=rr&&pa.matchInputWidth||Sa?{}:{minWidth:"auto"};return Ee.createElement(fa.Provider,{value:La},Ee.createElement(qo,(0,ke.Z)({},qn,{ref:He,id:mr,prefixCls:hn,autoClearSearchValue:Mr,dropdownMatchSelectWidth:Cn,dropdownStyle:ma,displayValues:la,onDisplayValuesChange:wa,mode:Gn?"multiple":void 0,searchValue:rr,onSearch:Qr,showSearch:ji,OptionList:is,emptyOptions:Sa,open:za,dropdownClassName:Xa,placement:Qi,onDropdownVisibleChange:Pi,getRawInputElement:function(){return Ln}})))});dl.SHOW_PARENT=Za,dl.SHOW_CHILD=Po;var Fu=dl,jl=Fu,fu=he(10366),yu=he(33603),hu=he(8745),pu=he(9708),mu=he(53124),bu=he(88258),$s=he(98866),xu=he(98675),Zl=he(65223),Al=he(87244),Pu=he(13458),wu=he(78642),Iu=he(46163),$u=he(4173),au=he(63185),Cu=he(14747),Pl=he(80110),_l=he(67968);const Ys=Te=>{const{prefixCls:He,componentCls:Nt,antCls:Tt}=Te,hn=`${Nt}-menu-item`,En=`
|
|
|
&${hn}-expand ${hn}-expand-icon,
|
|
|
${hn}-loading-icon
|
|
|
`;return[{[Nt]:{width:Te.controlWidth}},{[`${Nt}-dropdown`]:[(0,au.C2)(`${He}-checkbox`,Te),{[`&${Tt}-select-dropdown`]:{padding:0}},{[Nt]:{"&-checkbox":{top:0,marginInlineEnd:Te.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Nt}-menu-empty`]:{[`${Nt}-menu`]:{width:"100%",height:"auto",[hn]:{color:Te.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:Te.controlItemWidth,height:Te.dropdownHeight,margin:0,padding:Te.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Te.lineWidth}px ${Te.lineType} ${Te.colorSplit}`},"&-item":Object.assign(Object.assign({},Cu.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Te.optionPadding,lineHeight:Te.lineHeight,cursor:"pointer",transition:`all ${Te.motionDurationMid}`,borderRadius:Te.borderRadiusSM,"&:hover":{background:Te.controlItemBgHover},"&-disabled":{color:Te.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[En]:{color:Te.colorTextDisabled}},[`&-active:not(${hn}-disabled)`]:{"&, &:hover":{fontWeight:Te.optionSelectedFontWeight,backgroundColor:Te.optionSelectedBg}},"&-content":{flex:"auto"},[En]:{marginInlineStart:Te.paddingXXS,color:Te.colorTextDescription,fontSize:Te.fontSizeIcon},"&-keyword":{color:Te.colorHighlight}})}}}]},{[`${Nt}-dropdown-rtl`]:{direction:"rtl"}},(0,Pl.c)(Te)]};var Gl=(0,_l.Z)("Cascader",Te=>[Ys(Te)],Te=>{const He=Math.round((Te.controlHeight-Te.fontSize*Te.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Te.controlItemBgActive,optionSelectedFontWeight:Te.fontWeightStrong,optionPadding:`${He}px ${Te.paddingSM}px`,menuPadding:Te.paddingXXS}}),ou=function(Te,He){var Nt={};for(var Tt in Te)Object.prototype.hasOwnProperty.call(Te,Tt)&&He.indexOf(Tt)<0&&(Nt[Tt]=Te[Tt]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Tt=Object.getOwnPropertySymbols(Te);hn<Tt.length;hn++)He.indexOf(Tt[hn])<0&&Object.prototype.propertyIsEnumerable.call(Te,Tt[hn])&&(Nt[Tt[hn]]=Te[Tt[hn]]);return Nt};const{SHOW_CHILD:Eu,SHOW_PARENT:su}=jl;function Kl(Te,He,Nt){const Tt=Te.toLowerCase().split(He).reduce((Nn,or,lr)=>lr===0?[or]:[].concat((0,te.Z)(Nn),[He,or]),[]),hn=[];let En=0;return Tt.forEach((Nn,or)=>{const lr=En+Nn.length;let vr=Te.slice(En,lr);En=lr,or%2===1&&(vr=Ee.createElement("span",{className:`${Nt}-menu-item-keyword`,key:`separator-${or}`},vr)),hn.push(vr)}),hn}const ko=(Te,He,Nt,Tt)=>{const hn=[],En=Te.toLowerCase();return He.forEach((Nn,or)=>{or!==0&&hn.push(" / ");let lr=Nn[Tt.label];const vr=typeof lr;(vr==="string"||vr==="number")&&(lr=Kl(String(lr),En,Nt)),hn.push(lr)}),hn},Ba=Ee.forwardRef((Te,He)=>{const{prefixCls:Nt,size:Tt,disabled:hn,className:En,rootClassName:Nn,multiple:or,bordered:lr=!0,transitionName:vr,choiceTransitionName:si="",popupClassName:Fr,dropdownClassName:hi,expandIcon:Mr,placement:ti,showSearch:Rr,allowClear:pi=!0,notFoundContent:ki,direction:Be,getPopupContainer:We,status:Ct,showArrow:De,builtinPlacements:vt,style:Mt}=Te,Kt=ou(Te,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),rt=(0,fu.Z)(Kt,["suffixIcon"]),{getPopupContainer:gt,getPrefixCls:xt,renderEmpty:jt,direction:$t,popupOverflow:mn,cascader:qt}=Ee.useContext(mu.E_),gn=Be||$t,Ln=gn==="rtl",{status:Wn,hasFeedback:Cn,isFormItemInput:sr,feedbackIcon:Un}=Ee.useContext(Zl.aM),qn=(0,pu.F)(Wn,Ct),mr=ki||(jt==null?void 0:jt("Cascader"))||Ee.createElement(bu.Z,{componentName:"Cascader"}),Gn=xt(),kr=xt("select",Nt),Er=xt("cascader",Nt),[hr,ar]=(0,Al.Z)(kr),[Qn]=Gl(Er),{compactSize:gr,compactItemClassnames:ir}=(0,$u.ri)(kr,Be),xr=it()(Fr||hi,`${Er}-dropdown`,{[`${Er}-dropdown-rtl`]:gn==="rtl"},Nn,ar),Sr=Ee.useMemo(()=>{if(!Rr)return Rr;let Yi={render:ko};return typeof Rr=="object"&&(Yi=Object.assign(Object.assign({},Yi),Rr)),Yi},[Rr]),yr=(0,xu.Z)(Yi=>{var xi;return(xi=Tt!=null?Tt:gr)!==null&&xi!==void 0?xi:Yi}),rr=Ee.useContext($s.Z),_r=hn!=null?hn:rr;let Qr=Mr;Mr||(Qr=Ln?Ee.createElement(lt.Z,null):Ee.createElement(Ve.Z,null));const ea=Ee.createElement("span",{className:`${kr}-menu-item-loading-icon`},Ee.createElement(ct.Z,{spin:!0})),Ui=Ee.useMemo(()=>or?Ee.createElement("span",{className:`${Er}-checkbox-inner`}):!1,[or]),ji=(0,wu.Z)(Te.suffixIcon,De),{suffixIcon:pa,removeIcon:Bi,clearIcon:Ia}=(0,Iu.Z)(Object.assign(Object.assign({},Te),{hasFeedback:Cn,feedbackIcon:Un,showSuffixIcon:ji,multiple:or,prefixCls:kr,componentName:"Cascader"})),Qa=Ee.useMemo(()=>ti!==void 0?ti:Ln?"bottomRight":"bottomLeft",[ti,Ln]),ri=(0,Pu.Z)(vt,mn),Br=pi===!0?{clearIcon:Ia}:pi,Ei=Ee.createElement(jl,Object.assign({prefixCls:kr,className:it()(!Nt&&Er,{[`${kr}-lg`]:yr==="large",[`${kr}-sm`]:yr==="small",[`${kr}-rtl`]:Ln,[`${kr}-borderless`]:!lr,[`${kr}-in-form-item`]:sr},(0,pu.Z)(kr,qn,Cn),ir,qt==null?void 0:qt.className,En,Nn,ar),disabled:_r,style:Object.assign(Object.assign({},qt==null?void 0:qt.style),Mt)},rt,{builtinPlacements:ri,direction:gn,placement:Qa,notFoundContent:mr,allowClear:Br,showSearch:Sr,expandIcon:Qr,suffixIcon:pa,removeIcon:Bi,loadingIcon:ea,checkable:Ui,dropdownClassName:xr,dropdownPrefixCls:Nt||Er,choiceTransitionName:(0,yu.m)(Gn,"",si),transitionName:(0,yu.m)(Gn,"slide-up",vr),getPopupContainer:We||gt,ref:He}));return Qn(hr(Ei))}),Yo=(0,hu.Z)(Ba);Ba.SHOW_PARENT=su,Ba.SHOW_CHILD=Eu,Ba._InternalPanelDoNotUseOrYouWillBeFired=Yo;var ls=Ba},47221:function(dn,vn,he){"use strict";he.d(vn,{default:function(){return er}});var te=he(91034),Ee=he(94184),lt=he.n(Ee),ct=he(97685),Ve=he(74902),Re=he(71002),it=he(21770),ke=he(80334),we=he(67294),at=he(87462),tt=he(45987),ve=he(50344),kt=he(4942),bt=he(62874),$e=he(15105),dt=we.forwardRef(function(Me,ce){var fe,be=Me.prefixCls,ge=Me.forceRender,ue=Me.className,Xe=Me.style,_t=Me.children,Zt=Me.isActive,Dn=Me.role,An=we.useState(Zt||ge),yn=(0,ct.Z)(An,2),nn=yn[0],Ar=yn[1];return we.useEffect(function(){(ge||Zt)&&Ar(!0)},[ge,Zt]),nn?we.createElement("div",{ref:ce,className:lt()("".concat(be,"-content"),(fe={},(0,kt.Z)(fe,"".concat(be,"-content-active"),Zt),(0,kt.Z)(fe,"".concat(be,"-content-inactive"),!Zt),fe),ue),style:Xe,role:Dn},we.createElement("div",{className:"".concat(be,"-content-box")},_t)):null});dt.displayName="PanelContent";var Qe=dt,et=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],ft=we.forwardRef(function(Me,ce){var fe,be,ge=Me.showArrow,ue=ge===void 0?!0:ge,Xe=Me.headerClass,_t=Me.isActive,Zt=Me.onItemClick,Dn=Me.forceRender,An=Me.className,yn=Me.prefixCls,nn=Me.collapsible,Ar=Me.accordion,Dr=Me.panelKey,ln=Me.extra,jn=Me.header,wi=Me.expandIcon,$r=Me.openMotion,Ir=Me.destroyInactivePanel,Or=Me.children,Ca=(0,tt.Z)(Me,et),ur=nn==="disabled",Yn=nn==="header",oi=nn==="icon",Si=ln!=null&&typeof ln!="boolean",Ti=function(){Zt==null||Zt(Dr)},Ni=function(Tr){(Tr.key==="Enter"||Tr.keyCode===$e.Z.ENTER||Tr.which===$e.Z.ENTER)&&Ti()},Fi=typeof wi=="function"?wi(Me):we.createElement("i",{className:"arrow"});Fi&&(Fi=we.createElement("div",{className:"".concat(yn,"-expand-icon"),onClick:["header","icon"].includes(nn)?Ti:void 0},Fi));var Wr=lt()((fe={},(0,kt.Z)(fe,"".concat(yn,"-item"),!0),(0,kt.Z)(fe,"".concat(yn,"-item-active"),_t),(0,kt.Z)(fe,"".concat(yn,"-item-disabled"),ur),fe),An),qr=lt()(Xe,(be={},(0,kt.Z)(be,"".concat(yn,"-header"),!0),(0,kt.Z)(be,"".concat(yn,"-header-collapsible-only"),Yn),(0,kt.Z)(be,"".concat(yn,"-icon-collapsible-only"),oi),be)),Ta={className:qr,"aria-expanded":_t,"aria-disabled":ur,onKeyDown:Ni};return!Yn&&!oi&&(Ta.onClick=Ti,Ta.role=Ar?"tab":"button",Ta.tabIndex=ur?-1:0),we.createElement("div",(0,at.Z)({},Ca,{ref:ce,className:Wr}),we.createElement("div",Ta,ue&&Fi,we.createElement("span",{className:"".concat(yn,"-header-text"),onClick:nn==="header"?Ti:void 0},jn),Si&&we.createElement("div",{className:"".concat(yn,"-extra")},ln)),we.createElement(bt.Z,(0,at.Z)({visible:_t,leavedClassName:"".concat(yn,"-content-hidden")},$r,{forceRender:Dn,removeOnLeave:Ir}),function(Da,Tr){var _i=Da.className,jr=Da.style;return we.createElement(Qe,{ref:Tr,prefixCls:yn,className:_i,style:jr,isActive:_t,forceRender:Dn,role:Ar?"tabpanel":void 0},Or)}))}),Je=ft,ot=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],ht=function(ce,fe){var be=fe.prefixCls,ge=fe.accordion,ue=fe.collapsible,Xe=fe.destroyInactivePanel,_t=fe.onItemClick,Zt=fe.activeKey,Dn=fe.openMotion,An=fe.expandIcon;return ce.map(function(yn,nn){var Ar=yn.children,Dr=yn.label,ln=yn.key,jn=yn.collapsible,wi=yn.onItemClick,$r=yn.destroyInactivePanel,Ir=(0,tt.Z)(yn,ot),Or=String(ln!=null?ln:nn),Ca=jn!=null?jn:ue,ur=$r!=null?$r:Xe,Yn=function(Ti){Ca!=="disabled"&&(_t(Ti),wi==null||wi(Ti))},oi=!1;return ge?oi=Zt[0]===Or:oi=Zt.indexOf(Or)>-1,we.createElement(Je,(0,at.Z)({},Ir,{prefixCls:be,key:Or,panelKey:Or,isActive:oi,accordion:ge,openMotion:Dn,expandIcon:An,header:Dr,collapsible:Ca,onItemClick:Yn,destroyInactivePanel:ur}),Ar)})},yt=function(ce,fe,be){if(!ce)return null;var ge=be.prefixCls,ue=be.accordion,Xe=be.collapsible,_t=be.destroyInactivePanel,Zt=be.onItemClick,Dn=be.activeKey,An=be.openMotion,yn=be.expandIcon,nn=ce.key||String(fe),Ar=ce.props,Dr=Ar.header,ln=Ar.headerClass,jn=Ar.destroyInactivePanel,wi=Ar.collapsible,$r=Ar.onItemClick,Ir=!1;ue?Ir=Dn[0]===nn:Ir=Dn.indexOf(nn)>-1;var Or=wi!=null?wi:Xe,Ca=function(oi){Or!=="disabled"&&(Zt(oi),$r==null||$r(oi))},ur={key:nn,panelKey:nn,header:Dr,headerClass:ln,isActive:Ir,prefixCls:ge,destroyInactivePanel:jn!=null?jn:_t,openMotion:An,accordion:ue,children:ce.props.children,onItemClick:Ca,expandIcon:yn,collapsible:Or};return typeof ce.type=="string"?ce:(Object.keys(ur).forEach(function(Yn){typeof ur[Yn]=="undefined"&&delete ur[Yn]}),we.cloneElement(ce,ur))};function zt(Me,ce,fe){return Array.isArray(Me)?ht(Me,fe):(0,ve.Z)(ce).map(function(be,ge){return yt(be,ge,fe)})}var Xt=zt;function Qt(Me){var ce=Me;if(!Array.isArray(ce)){var fe=(0,Re.Z)(ce);ce=fe==="number"||fe==="string"?[ce]:[]}return ce.map(function(be){return String(be)})}var Ht=we.forwardRef(function(Me,ce){var fe=Me.prefixCls,be=fe===void 0?"rc-collapse":fe,ge=Me.destroyInactivePanel,ue=ge===void 0?!1:ge,Xe=Me.style,_t=Me.accordion,Zt=Me.className,Dn=Me.children,An=Me.collapsible,yn=Me.openMotion,nn=Me.expandIcon,Ar=Me.activeKey,Dr=Me.defaultActiveKey,ln=Me.onChange,jn=Me.items,wi=lt()(be,Zt),$r=(0,it.Z)([],{value:Ar,onChange:function(Si){return ln==null?void 0:ln(Si)},defaultValue:Dr,postState:Qt}),Ir=(0,ct.Z)($r,2),Or=Ir[0],Ca=Ir[1],ur=function(Si){return Ca(function(){if(_t)return Or[0]===Si?[]:[Si];var Ti=Or.indexOf(Si),Ni=Ti>-1;return Ni?Or.filter(function(Fi){return Fi!==Si}):[].concat((0,Ve.Z)(Or),[Si])})};(0,ke.ZP)(!Dn,"`children` will be removed in next major version. Please use `items` instead.");var Yn=Xt(jn,Dn,{prefixCls:be,accordion:_t,openMotion:yn,expandIcon:nn,collapsible:An,destroyInactivePanel:ue,onItemClick:ur,activeKey:Or});return we.createElement("div",{ref:ce,className:wi,style:Xe,role:_t?"tablist":void 0},Yn)}),wt=Object.assign(Ht,{Panel:Je}),Ye=wt,pt=wt.Panel,qe=he(37419),ut=he(10366),Oe=he(33603),Ot=he(96159),Gt=he(53124),un=he(98675),Ke=we.forwardRef((Me,ce)=>{const{getPrefixCls:fe}=we.useContext(Gt.E_),{prefixCls:be,className:ge,showArrow:ue=!0}=Me,Xe=fe("collapse",be),_t=lt()({[`${Xe}-no-arrow`]:!ue},ge);return we.createElement(Ye.Panel,Object.assign({ref:ce},Me,{prefixCls:Xe,className:_t}))}),Yt=he(14747),Jt=he(33507),cn=he(67968),Lt=he(45503);const Dt=Me=>{const{componentCls:ce,contentBg:fe,padding:be,headerBg:ge,headerPadding:ue,collapseHeaderPaddingSM:Xe,collapseHeaderPaddingLG:_t,collapsePanelBorderRadius:Zt,lineWidth:Dn,lineType:An,colorBorder:yn,colorText:nn,colorTextHeading:Ar,colorTextDisabled:Dr,fontSize:ln,fontSizeLG:jn,lineHeight:wi,marginSM:$r,paddingSM:Ir,paddingLG:Or,paddingXS:Ca,motionDurationSlow:ur,fontSizeIcon:Yn,contentPadding:oi}=Me,Si=`${Dn}px ${An} ${yn}`;return{[ce]:Object.assign(Object.assign({},(0,Yt.Wf)(Me)),{backgroundColor:ge,border:Si,borderBottom:0,borderRadius:`${Zt}px`,"&-rtl":{direction:"rtl"},[`& > ${ce}-item`]:{borderBottom:Si,"&:last-child":{[`
|
|
|
&,
|
|
|
& > ${ce}-header`]:{borderRadius:`0 0 ${Zt}px ${Zt}px`}},[`> ${ce}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:ue,color:Ar,lineHeight:wi,cursor:"pointer",transition:`all ${ur}, visibility 0s`,[`> ${ce}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${ce}-expand-icon`]:{height:ln*wi,display:"flex",alignItems:"center",paddingInlineEnd:$r},[`${ce}-arrow`]:Object.assign(Object.assign({},(0,Yt.Ro)()),{fontSize:Yn,svg:{transition:`transform ${ur}`}}),[`${ce}-header-text`]:{marginInlineEnd:"auto"}},[`${ce}-header-collapsible-only`]:{cursor:"default",[`${ce}-header-text`]:{flex:"none",cursor:"pointer"}},[`${ce}-icon-collapsible-only`]:{cursor:"default",[`${ce}-expand-icon`]:{cursor:"pointer"}}},[`${ce}-content`]:{color:nn,backgroundColor:fe,borderTop:Si,[`& > ${ce}-content-box`]:{padding:oi},"&-hidden":{display:"none"}},"&-small":{[`> ${ce}-item`]:{[`> ${ce}-header`]:{padding:Xe,paddingInlineStart:Ca,[`> ${ce}-expand-icon`]:{marginInlineStart:Ir-Ca}},[`> ${ce}-content > ${ce}-content-box`]:{padding:Ir}}},"&-large":{[`> ${ce}-item`]:{fontSize:jn,[`> ${ce}-header`]:{padding:_t,paddingInlineStart:be,[`> ${ce}-expand-icon`]:{height:jn*wi,marginInlineStart:Or-be}},[`> ${ce}-content > ${ce}-content-box`]:{padding:Or}}},[`${ce}-item:last-child`]:{[`> ${ce}-content`]:{borderRadius:`0 0 ${Zt}px ${Zt}px`}},[`& ${ce}-item-disabled > ${ce}-header`]:{"\n &,\n & > .arrow\n ":{color:Dr,cursor:"not-allowed"}},[`&${ce}-icon-position-end`]:{[`& > ${ce}-item`]:{[`> ${ce}-header`]:{[`${ce}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:$r}}}}})}},wn=Me=>{const{componentCls:ce}=Me,fe=`> ${ce}-item > ${ce}-header ${ce}-arrow svg`;return{[`${ce}-rtl`]:{[fe]:{transform:"rotate(180deg)"}}}},_n=Me=>{const{componentCls:ce,headerBg:fe,paddingXXS:be,colorBorder:ge}=Me;return{[`${ce}-borderless`]:{backgroundColor:fe,border:0,[`> ${ce}-item`]:{borderBottom:`1px solid ${ge}`},[`
|
|
|
> ${ce}-item:last-child,
|
|
|
> ${ce}-item:last-child ${ce}-header
|
|
|
`]:{borderRadius:0},[`> ${ce}-item:last-child`]:{borderBottom:0},[`> ${ce}-item > ${ce}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${ce}-item > ${ce}-content > ${ce}-content-box`]:{paddingTop:be}}}},on=Me=>{const{componentCls:ce,paddingSM:fe}=Me;return{[`${ce}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${ce}-item`]:{borderBottom:0,[`> ${ce}-content`]:{backgroundColor:"transparent",border:0,[`> ${ce}-content-box`]:{paddingBlock:fe}}}}}};var kn=(0,cn.Z)("Collapse",Me=>{const ce=(0,Lt.TS)(Me,{collapseHeaderPaddingSM:`${Me.paddingXS}px ${Me.paddingSM}px`,collapseHeaderPaddingLG:`${Me.padding}px ${Me.paddingLG}px`,collapsePanelBorderRadius:Me.borderRadiusLG});return[Dt(ce),_n(ce),on(ce),wn(ce),(0,Jt.Z)(ce)]},Me=>({headerPadding:`${Me.paddingSM}px ${Me.padding}px`,headerBg:Me.colorFillAlter,contentPadding:`${Me.padding}px 16px`,contentBg:Me.colorBgContainer})),Vn=Object.assign(we.forwardRef((Me,ce)=>{const{getPrefixCls:fe,direction:be,collapse:ge}=we.useContext(Gt.E_),{prefixCls:ue,className:Xe,rootClassName:_t,style:Zt,bordered:Dn=!0,ghost:An,size:yn,expandIconPosition:nn="start",children:Ar,expandIcon:Dr}=Me,ln=(0,un.Z)(Si=>{var Ti;return(Ti=yn!=null?yn:Si)!==null&&Ti!==void 0?Ti:"middle"}),jn=fe("collapse",ue),wi=fe(),[$r,Ir]=kn(jn),Or=we.useMemo(()=>nn==="left"?"start":nn==="right"?"end":nn,[nn]),Ca=function(){let Si=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Ti=Dr?Dr(Si):we.createElement(te.Z,{rotate:Si.isActive?90:void 0});return(0,Ot.Tm)(Ti,()=>({className:lt()(Ti.props.className,`${jn}-arrow`)}))},ur=lt()(`${jn}-icon-position-${Or}`,{[`${jn}-borderless`]:!Dn,[`${jn}-rtl`]:be==="rtl",[`${jn}-ghost`]:!!An,[`${jn}-${ln}`]:ln!=="middle"},ge==null?void 0:ge.className,Xe,_t,Ir),Yn=Object.assign(Object.assign({},(0,Oe.Z)(wi)),{motionAppear:!1,leavedClassName:`${jn}-content-hidden`}),oi=we.useMemo(()=>Ar?(0,qe.Z)(Ar).map((Si,Ti)=>{var Ni,Fi;if(!((Ni=Si.props)===null||Ni===void 0)&&Ni.disabled){const Wr=(Fi=Si.key)!==null&&Fi!==void 0?Fi:String(Ti),{disabled:qr,collapsible:Ta}=Si.props,Da=Object.assign(Object.assign({},(0,ut.Z)(Si.props,["disabled"])),{key:Wr,collapsible:Ta!=null?Ta:qr?"disabled":void 0});return(0,Ot.Tm)(Si,Da)}return Si}):null,[Ar]);return $r(we.createElement(Ye,Object.assign({ref:ce,openMotion:Yn},(0,ut.Z)(Me,["rootClassName"]),{expandIcon:Ca,prefixCls:jn,className:ur,style:Object.assign(Object.assign({},ge==null?void 0:ge.style),Zt)}),oi))}),{Panel:Ke}),er=Vn},66330:function(dn,vn,he){"use strict";he.d(vn,{t5:function(){return at}});var te=he(94184),Ee=he.n(te),lt=he(92419),ct=he(67294),Ve=he(53124),Re=he(81643),it=he(20136),ke=function(ve,kt){var bt={};for(var $e in ve)Object.prototype.hasOwnProperty.call(ve,$e)&&kt.indexOf($e)<0&&(bt[$e]=ve[$e]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,$e=Object.getOwnPropertySymbols(ve);dt<$e.length;dt++)kt.indexOf($e[dt])<0&&Object.prototype.propertyIsEnumerable.call(ve,$e[dt])&&(bt[$e[dt]]=ve[$e[dt]]);return bt};const we=(ve,kt,bt)=>{if(!(!kt&&!bt))return ct.createElement(ct.Fragment,null,kt&&ct.createElement("div",{className:`${ve}-title`},(0,Re.Z)(kt)),ct.createElement("div",{className:`${ve}-inner-content`},(0,Re.Z)(bt)))},at=ve=>{const{hashId:kt,prefixCls:bt,className:$e,style:dt,placement:Qe="top",title:et,content:ft,children:Je}=ve;return ct.createElement("div",{className:Ee()(kt,bt,`${bt}-pure`,`${bt}-placement-${Qe}`,$e),style:dt},ct.createElement("div",{className:`${bt}-arrow`}),ct.createElement(lt.G,Object.assign({},ve,{className:kt,prefixCls:bt}),Je||we(bt,et,ft)))},tt=ve=>{const{prefixCls:kt}=ve,bt=ke(ve,["prefixCls"]),{getPrefixCls:$e}=ct.useContext(Ve.E_),dt=$e("popover",kt),[Qe,et]=(0,it.Z)(dt);return Qe(ct.createElement(at,Object.assign({},bt,{prefixCls:dt,hashId:et})))};vn.ZP=tt},55241:function(dn,vn,he){"use strict";var te=he(94184),Ee=he.n(te),lt=he(67294),ct=he(81643),Ve=he(33603),Re=he(53124),it=he(83062),ke=he(66330),we=he(20136),at=function(kt,bt){var $e={};for(var dt in kt)Object.prototype.hasOwnProperty.call(kt,dt)&&bt.indexOf(dt)<0&&($e[dt]=kt[dt]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,dt=Object.getOwnPropertySymbols(kt);Qe<dt.length;Qe++)bt.indexOf(dt[Qe])<0&&Object.prototype.propertyIsEnumerable.call(kt,dt[Qe])&&($e[dt[Qe]]=kt[dt[Qe]]);return $e};const tt=kt=>{let{title:bt,content:$e,prefixCls:dt}=kt;return lt.createElement(lt.Fragment,null,bt&<.createElement("div",{className:`${dt}-title`},(0,ct.Z)(bt)),lt.createElement("div",{className:`${dt}-inner-content`},(0,ct.Z)($e)))},ve=lt.forwardRef((kt,bt)=>{const{prefixCls:$e,title:dt,content:Qe,overlayClassName:et,placement:ft="top",trigger:Je="hover",mouseEnterDelay:ot=.1,mouseLeaveDelay:ht=.1,overlayStyle:yt={}}=kt,zt=at(kt,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Xt}=lt.useContext(Re.E_),Qt=Xt("popover",$e),[Ht,wt]=(0,we.Z)(Qt),Ye=Xt(),pt=Ee()(et,wt);return Ht(lt.createElement(it.Z,Object.assign({placement:ft,trigger:Je,mouseEnterDelay:ot,mouseLeaveDelay:ht,overlayStyle:yt},zt,{prefixCls:Qt,overlayClassName:pt,ref:bt,overlay:dt||Qe?lt.createElement(tt,{prefixCls:Qt,title:dt,content:Qe}):null,transitionName:(0,Ve.m)(Ye,"zoom-big",zt.transitionName),"data-popover-inject":!0})))});ve._InternalPanelDoNotUseOrYouWillBeFired=ke.ZP,vn.Z=ve},20136:function(dn,vn,he){"use strict";var te=he(14747),Ee=he(50438),lt=he(97414),ct=he(8796),Ve=he(67968),Re=he(45503);const it=at=>{const{componentCls:tt,popoverColor:ve,minWidth:kt,fontWeightStrong:bt,popoverPadding:$e,boxShadowSecondary:dt,colorTextHeading:Qe,borderRadiusLG:et,zIndexPopup:ft,marginXS:Je,colorBgElevated:ot,popoverBg:ht}=at;return[{[tt]:Object.assign(Object.assign({},(0,te.Wf)(at)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:ft,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":ot,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${tt}-content`]:{position:"relative"},[`${tt}-inner`]:{backgroundColor:ht,backgroundClip:"padding-box",borderRadius:et,boxShadow:dt,padding:$e},[`${tt}-title`]:{minWidth:kt,marginBottom:Je,color:Qe,fontWeight:bt},[`${tt}-inner-content`]:{color:ve}})},(0,lt.ZP)(at,{colorBg:"var(--antd-arrow-background-color)"}),{[`${tt}-pure`]:{position:"relative",maxWidth:"none",margin:at.sizePopupArrow,display:"inline-block",[`${tt}-content`]:{display:"inline-block"}}}]},ke=at=>{const{componentCls:tt}=at;return{[tt]:ct.i.map(ve=>{const kt=at[`${ve}6`];return{[`&${tt}-${ve}`]:{"--antd-arrow-background-color":kt,[`${tt}-inner`]:{backgroundColor:kt},[`${tt}-arrow`]:{background:"transparent"}}}})}},we=at=>{const{componentCls:tt,lineWidth:ve,lineType:kt,colorSplit:bt,paddingSM:$e,controlHeight:dt,fontSize:Qe,lineHeight:et,padding:ft}=at,Je=dt-Math.round(Qe*et),ot=Je/2,ht=Je/2-ve,yt=ft;return{[tt]:{[`${tt}-inner`]:{padding:0},[`${tt}-title`]:{margin:0,padding:`${ot}px ${yt}px ${ht}px`,borderBottom:`${ve}px ${kt} ${bt}`},[`${tt}-inner-content`]:{padding:`${$e}px ${yt}px`}}}};vn.Z=(0,Ve.Z)("Popover",at=>{const{colorBgElevated:tt,colorText:ve,wireframe:kt}=at,bt=(0,Re.TS)(at,{popoverPadding:12,popoverBg:tt,popoverColor:ve});return[it(bt),ke(bt),kt&&we(bt),(0,Ee._y)(bt,"zoom-big")]},at=>({width:177,minWidth:177,zIndexPopup:at.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},47897:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return be}});var te=he(3407),Ee=he(94184),lt=he.n(Ee);function ct(){return ct=Object.assign?Object.assign.bind():function(ge){for(var ue=1;ue<arguments.length;ue++){var Xe=arguments[ue];for(var _t in Xe)Object.prototype.hasOwnProperty.call(Xe,_t)&&(ge[_t]=Xe[_t])}return ge},ct.apply(this,arguments)}function Ve(ge){"@babel/helpers - typeof";return Ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ue){return typeof ue}:function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},Ve(ge)}function Re(ge,ue){if(Ve(ge)!=="object"||ge===null)return ge;var Xe=ge[Symbol.toPrimitive];if(Xe!==void 0){var _t=Xe.call(ge,ue||"default");if(Ve(_t)!=="object")return _t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ue==="string"?String:Number)(ge)}function it(ge){var ue=Re(ge,"string");return Ve(ue)==="symbol"?ue:String(ue)}function ke(ge,ue,Xe){return ue=it(ue),ue in ge?Object.defineProperty(ge,ue,{value:Xe,enumerable:!0,configurable:!0,writable:!0}):ge[ue]=Xe,ge}function we(ge){if(Array.isArray(ge))return ge}function at(ge,ue){var Xe=ge==null?null:typeof Symbol!="undefined"&&ge[Symbol.iterator]||ge["@@iterator"];if(Xe!=null){var _t,Zt,Dn,An,yn=[],nn=!0,Ar=!1;try{if(Dn=(Xe=Xe.call(ge)).next,ue===0){if(Object(Xe)!==Xe)return;nn=!1}else for(;!(nn=(_t=Dn.call(Xe)).done)&&(yn.push(_t.value),yn.length!==ue);nn=!0);}catch(Dr){Ar=!0,Zt=Dr}finally{try{if(!nn&&Xe.return!=null&&(An=Xe.return(),Object(An)!==An))return}finally{if(Ar)throw Zt}}return yn}}function tt(ge,ue){(ue==null||ue>ge.length)&&(ue=ge.length);for(var Xe=0,_t=new Array(ue);Xe<ue;Xe++)_t[Xe]=ge[Xe];return _t}function ve(ge,ue){if(ge){if(typeof ge=="string")return tt(ge,ue);var Xe=Object.prototype.toString.call(ge).slice(8,-1);if(Xe==="Object"&&ge.constructor&&(Xe=ge.constructor.name),Xe==="Map"||Xe==="Set")return Array.from(ge);if(Xe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xe))return tt(ge,ue)}}function kt(){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 bt(ge,ue){return we(ge)||at(ge,ue)||ve(ge,ue)||kt()}function $e(ge,ue){if(ge==null)return{};var Xe={},_t=Object.keys(ge),Zt,Dn;for(Dn=0;Dn<_t.length;Dn++)Zt=_t[Dn],!(ue.indexOf(Zt)>=0)&&(Xe[Zt]=ge[Zt]);return Xe}function dt(ge,ue){if(ge==null)return{};var Xe=$e(ge,ue),_t,Zt;if(Object.getOwnPropertySymbols){var Dn=Object.getOwnPropertySymbols(ge);for(Zt=0;Zt<Dn.length;Zt++)_t=Dn[Zt],!(ue.indexOf(_t)>=0)&&Object.prototype.propertyIsEnumerable.call(ge,_t)&&(Xe[_t]=ge[_t])}return Xe}var Qe=he(67294);function et(ge){if(Array.isArray(ge))return ge}function ft(ge,ue){var Xe=ge==null?null:typeof Symbol!="undefined"&&ge[Symbol.iterator]||ge["@@iterator"];if(Xe!=null){var _t,Zt,Dn,An,yn=[],nn=!0,Ar=!1;try{if(Dn=(Xe=Xe.call(ge)).next,ue===0){if(Object(Xe)!==Xe)return;nn=!1}else for(;!(nn=(_t=Dn.call(Xe)).done)&&(yn.push(_t.value),yn.length!==ue);nn=!0);}catch(Dr){Ar=!0,Zt=Dr}finally{try{if(!nn&&Xe.return!=null&&(An=Xe.return(),Object(An)!==An))return}finally{if(Ar)throw Zt}}return yn}}function Je(ge,ue){(ue==null||ue>ge.length)&&(ue=ge.length);for(var Xe=0,_t=new Array(ue);Xe<ue;Xe++)_t[Xe]=ge[Xe];return _t}function ot(ge,ue){if(ge){if(typeof ge=="string")return Je(ge,ue);var Xe=Object.prototype.toString.call(ge).slice(8,-1);if(Xe==="Object"&&ge.constructor&&(Xe=ge.constructor.name),Xe==="Map"||Xe==="Set")return Array.from(ge);if(Xe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xe))return Je(ge,ue)}}function ht(){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 yt(ge,ue){return et(ge)||ft(ge,ue)||ot(ge,ue)||ht()}function zt(ge){var ue=Qe.useRef();ue.current=ge;var Xe=Qe.useCallback(function(){for(var _t,Zt=arguments.length,Dn=new Array(Zt),An=0;An<Zt;An++)Dn[An]=arguments[An];return(_t=ue.current)===null||_t===void 0?void 0:_t.call.apply(_t,[ue].concat(Dn))},[]);return Xe}function Xt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Qt=Xt()?Qe.useLayoutEffect:Qe.useEffect,Ht=function(ue,Xe){var _t=Qe.useRef(!0);Qt(function(){return ue(_t.current)},Xe),Qt(function(){return _t.current=!1,function(){_t.current=!0}},[])},wt=function(ue,Xe){Ht(function(_t){if(!_t)return ue()},Xe)},Ye=null;function pt(ge){var ue=Qe.useRef(!1),Xe=Qe.useState(ge),_t=yt(Xe,2),Zt=_t[0],Dn=_t[1];Qe.useEffect(function(){return ue.current=!1,function(){ue.current=!0}},[]);function An(yn,nn){nn&&ue.current||Dn(yn)}return[Zt,An]}function qe(ge){return ge!==void 0}function ut(ge,ue){var Xe=ue||{},_t=Xe.defaultValue,Zt=Xe.value,Dn=Xe.onChange,An=Xe.postState,yn=pt(function(){return qe(Zt)?Zt:qe(_t)?typeof _t=="function"?_t():_t:typeof ge=="function"?ge():ge}),nn=yt(yn,2),Ar=nn[0],Dr=nn[1],ln=Zt!==void 0?Zt:Ar,jn=An?An(ln):ln,wi=zt(Dn),$r=pt([ln]),Ir=yt($r,2),Or=Ir[0],Ca=Ir[1];wt(function(){var Yn=Or[0];Ar!==Yn&&wi(Ar,Yn)},[Or]),wt(function(){qe(Zt)||Dr(Zt)},[Zt]);var ur=zt(function(Yn,oi){Dr(Yn,oi),Ca([ln],oi)});return[jn,ur]}var Oe={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 Xe=ue.keyCode;if(ue.altKey&&!ue.ctrlKey||ue.metaKey||Xe>=Oe.F1&&Xe<=Oe.F12)return!1;switch(Xe){case Oe.ALT:case Oe.CAPS_LOCK:case Oe.CONTEXT_MENU:case Oe.CTRL:case Oe.DOWN:case Oe.END:case Oe.ESC:case Oe.HOME:case Oe.INSERT:case Oe.LEFT:case Oe.MAC_FF_META:case Oe.META:case Oe.NUMLOCK:case Oe.NUM_CENTER:case Oe.PAGE_DOWN:case Oe.PAGE_UP:case Oe.PAUSE:case Oe.PRINT_SCREEN:case Oe.RIGHT:case Oe.SHIFT:case Oe.UP:case Oe.WIN_KEY:case Oe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ue){if(ue>=Oe.ZERO&&ue<=Oe.NINE||ue>=Oe.NUM_ZERO&&ue<=Oe.NUM_MULTIPLY||ue>=Oe.A&&ue<=Oe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ue===0)return!0;switch(ue){case Oe.SPACE:case Oe.QUESTION_MARK:case Oe.NUM_PLUS:case Oe.NUM_MINUS:case Oe.NUM_PERIOD:case Oe.NUM_DIVISION:case Oe.SEMICOLON:case Oe.DASH:case Oe.EQUALS:case Oe.COMMA:case Oe.PERIOD:case Oe.SLASH:case Oe.APOSTROPHE:case Oe.SINGLE_QUOTE:case Oe.OPEN_SQUARE_BRACKET:case Oe.BACKSLASH:case Oe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ot=Oe,Gt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],un=Qe.forwardRef(function(ge,ue){var Xe,_t=ge.prefixCls,Zt=_t===void 0?"rc-switch":_t,Dn=ge.className,An=ge.checked,yn=ge.defaultChecked,nn=ge.disabled,Ar=ge.loadingIcon,Dr=ge.checkedChildren,ln=ge.unCheckedChildren,jn=ge.onClick,wi=ge.onChange,$r=ge.onKeyDown,Ir=dt(ge,Gt),Or=ut(!1,{value:An,defaultValue:yn}),Ca=bt(Or,2),ur=Ca[0],Yn=Ca[1];function oi(Fi,Wr){var qr=ur;return nn||(qr=Fi,Yn(qr),wi==null||wi(qr,Wr)),qr}function Si(Fi){Fi.which===Ot.LEFT?oi(!1,Fi):Fi.which===Ot.RIGHT&&oi(!0,Fi),$r==null||$r(Fi)}function Ti(Fi){var Wr=oi(!ur,Fi);jn==null||jn(Wr,Fi)}var Ni=lt()(Zt,Dn,(Xe={},ke(Xe,"".concat(Zt,"-checked"),ur),ke(Xe,"".concat(Zt,"-disabled"),nn),Xe));return Qe.createElement("button",ct({},Ir,{type:"button",role:"switch","aria-checked":ur,disabled:nn,className:Ni,ref:ue,onKeyDown:Si,onClick:Ti}),Ar,Qe.createElement("span",{className:"".concat(Zt,"-inner")},Qe.createElement("span",{className:"".concat(Zt,"-inner-checked")},Dr),Qe.createElement("span",{className:"".concat(Zt,"-inner-unchecked")},ln)))});un.displayName="Switch";var Ge=un,Ke=he(45353),Yt=he(53124),Jt=he(98866),cn=he(98675),Lt=he(84780),Dt=he(14747),wn=he(67968),_n=he(45503);const on=ge=>{const{componentCls:ue,trackHeightSM:Xe,trackPadding:_t,trackMinWidthSM:Zt,innerMinMarginSM:Dn,innerMaxMarginSM:An,handleSizeSM:yn}=ge,nn=`${ue}-inner`;return{[ue]:{[`&${ue}-small`]:{minWidth:Zt,height:Xe,lineHeight:`${Xe}px`,[`${ue}-inner`]:{paddingInlineStart:An,paddingInlineEnd:Dn,[`${nn}-checked`]:{marginInlineStart:`calc(-100% + ${yn+_t*2}px - ${An*2}px)`,marginInlineEnd:`calc(100% - ${yn+_t*2}px + ${An*2}px)`},[`${nn}-unchecked`]:{marginTop:-Xe,marginInlineStart:0,marginInlineEnd:0}},[`${ue}-handle`]:{width:yn,height:yn},[`${ue}-loading-icon`]:{top:(yn-ge.switchLoadingIconSize)/2,fontSize:ge.switchLoadingIconSize},[`&${ue}-checked`]:{[`${ue}-inner`]:{paddingInlineStart:Dn,paddingInlineEnd:An,[`${nn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${nn}-unchecked`]:{marginInlineStart:`calc(100% - ${yn+_t*2}px + ${An*2}px)`,marginInlineEnd:`calc(-100% + ${yn+_t*2}px - ${An*2}px)`}},[`${ue}-handle`]:{insetInlineStart:`calc(100% - ${yn+_t}px)`}},[`&:not(${ue}-disabled):active`]:{[`&:not(${ue}-checked) ${nn}`]:{[`${nn}-unchecked`]:{marginInlineStart:ge.marginXXS/2,marginInlineEnd:-ge.marginXXS/2}},[`&${ue}-checked ${nn}`]:{[`${nn}-checked`]:{marginInlineStart:-ge.marginXXS/2,marginInlineEnd:ge.marginXXS/2}}}}}}},kn=ge=>{const{componentCls:ue,handleSize:Xe}=ge;return{[ue]:{[`${ue}-loading-icon${ge.iconCls}`]:{position:"relative",top:(Xe-ge.fontSize)/2,color:ge.switchLoadingIconColor,verticalAlign:"top"},[`&${ue}-checked ${ue}-loading-icon`]:{color:ge.switchColor}}}},xn=ge=>{const{componentCls:ue,motion:Xe,trackPadding:_t,handleBg:Zt,handleShadow:Dn,handleSize:An}=ge,yn=`${ue}-handle`;return{[ue]:{[yn]:{position:"absolute",top:_t,insetInlineStart:_t,width:An,height:An,transition:`all ${ge.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Zt,borderRadius:An/2,boxShadow:Dn,transition:`all ${ge.switchDuration} ease-in-out`,content:'""'}},[`&${ue}-checked ${yn}`]:{insetInlineStart:`calc(100% - ${An+_t}px)`},[`&:not(${ue}-disabled):active`]:Xe?{[`${yn}::before`]:{insetInlineEnd:ge.switchHandleActiveInset,insetInlineStart:0},[`&${ue}-checked ${yn}::before`]:{insetInlineEnd:0,insetInlineStart:ge.switchHandleActiveInset}}:{}}}},Vn=ge=>{const{componentCls:ue,trackHeight:Xe,trackPadding:_t,innerMinMargin:Zt,innerMaxMargin:Dn,handleSize:An}=ge,yn=`${ue}-inner`;return{[ue]:{[yn]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Dn,paddingInlineEnd:Zt,transition:`padding-inline-start ${ge.switchDuration} ease-in-out, padding-inline-end ${ge.switchDuration} ease-in-out`,[`${yn}-checked, ${yn}-unchecked`]:{display:"block",color:ge.colorTextLightSolid,fontSize:ge.fontSizeSM,transition:`margin-inline-start ${ge.switchDuration} ease-in-out, margin-inline-end ${ge.switchDuration} ease-in-out`,pointerEvents:"none"},[`${yn}-checked`]:{marginInlineStart:`calc(-100% + ${An+_t*2}px - ${Dn*2}px)`,marginInlineEnd:`calc(100% - ${An+_t*2}px + ${Dn*2}px)`},[`${yn}-unchecked`]:{marginTop:-Xe,marginInlineStart:0,marginInlineEnd:0}},[`&${ue}-checked ${yn}`]:{paddingInlineStart:Zt,paddingInlineEnd:Dn,[`${yn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${yn}-unchecked`]:{marginInlineStart:`calc(100% - ${An+_t*2}px + ${Dn*2}px)`,marginInlineEnd:`calc(-100% + ${An+_t*2}px - ${Dn*2}px)`}},[`&:not(${ue}-disabled):active`]:{[`&:not(${ue}-checked) ${yn}`]:{[`${yn}-unchecked`]:{marginInlineStart:_t*2,marginInlineEnd:-_t*2}},[`&${ue}-checked ${yn}`]:{[`${yn}-checked`]:{marginInlineStart:-_t*2,marginInlineEnd:_t*2}}}}}},er=ge=>{const{componentCls:ue,trackHeight:Xe,trackMinWidth:_t}=ge;return{[ue]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Dt.Wf)(ge)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:_t,height:Xe,lineHeight:`${Xe}px`,verticalAlign:"middle",background:ge.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ge.motionDurationMid}`,userSelect:"none",[`&:hover:not(${ue}-disabled)`]:{background:ge.colorTextTertiary}}),(0,Dt.Qy)(ge)),{[`&${ue}-checked`]:{background:ge.switchColor,[`&:hover:not(${ue}-disabled)`]:{background:ge.colorPrimaryHover}},[`&${ue}-loading, &${ue}-disabled`]:{cursor:"not-allowed",opacity:ge.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${ue}-rtl`]:{direction:"rtl"}})}};var Me=(0,wn.Z)("Switch",ge=>{const ue=(0,_n.TS)(ge,{switchDuration:ge.motionDurationMid,switchColor:ge.colorPrimary,switchDisabledOpacity:ge.opacityLoading,switchLoadingIconSize:ge.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${ge.opacityLoading})`,switchHandleActiveInset:"-30%"});return[er(ue),Vn(ue),xn(ue),kn(ue),on(ue)]},ge=>{const{fontSize:ue,lineHeight:Xe,controlHeight:_t,colorWhite:Zt}=ge,Dn=ue*Xe,An=_t/2,yn=2,nn=Dn-yn*2,Ar=An-yn*2;return{trackHeight:Dn,trackHeightSM:An,trackMinWidth:nn*2+yn*4,trackMinWidthSM:Ar*2+yn*2,trackPadding:yn,handleBg:Zt,handleSize:nn,handleSizeSM:Ar,handleShadow:`0 2px 4px 0 ${new Lt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:nn/2,innerMaxMargin:nn+yn+yn*2,innerMinMarginSM:Ar/2,innerMaxMarginSM:Ar+yn+yn*2}}),ce=function(ge,ue){var Xe={};for(var _t in ge)Object.prototype.hasOwnProperty.call(ge,_t)&&ue.indexOf(_t)<0&&(Xe[_t]=ge[_t]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,_t=Object.getOwnPropertySymbols(ge);Zt<_t.length;Zt++)ue.indexOf(_t[Zt])<0&&Object.prototype.propertyIsEnumerable.call(ge,_t[Zt])&&(Xe[_t[Zt]]=ge[_t[Zt]]);return Xe};const fe=Qe.forwardRef((ge,ue)=>{const{prefixCls:Xe,size:_t,disabled:Zt,loading:Dn,className:An,rootClassName:yn,style:nn}=ge,Ar=ce(ge,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Dr,direction:ln,switch:jn}=Qe.useContext(Yt.E_),wi=Qe.useContext(Jt.Z),$r=(Zt!=null?Zt:wi)||Dn,Ir=Dr("switch",Xe),Or=Qe.createElement("div",{className:`${Ir}-handle`},Dn&&Qe.createElement(te.Z,{className:`${Ir}-loading-icon`})),[Ca,ur]=Me(Ir),Yn=(0,cn.Z)(_t),oi=lt()(jn==null?void 0:jn.className,{[`${Ir}-small`]:Yn==="small",[`${Ir}-loading`]:Dn,[`${Ir}-rtl`]:ln==="rtl"},An,yn,ur),Si=Object.assign(Object.assign({},jn==null?void 0:jn.style),nn);return Ca(Qe.createElement(Ke.Z,{component:"Switch"},Qe.createElement(Ge,Object.assign({},Ar,{prefixCls:Ir,className:oi,style:Si,disabled:$r,ref:ue,loadingIcon:Or}))))});fe.__ANT_SWITCH=!0;var be=fe},66368:function(dn,vn,he){"use strict";he.d(vn,{default:function(){return gs}});var te=he(73475),Ee=he(25877),lt=he(38308),ct=he(94184),Ve=he.n(ct),Re=he(87462),it=he(4942),ke=he(1413),we=he(97685),at=he(71002),tt=he(45987),ve=he(67294),kt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var _e=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(_e)||/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(_e==null?void 0:_e.substr(0,4))};function bt(_e){var nt=ve.useRef();nt.current=_e;var pn=ve.useCallback(function(){for(var Ae,St=arguments.length,Ft=new Array(St),an=0;an<St;an++)Ft[an]=arguments[an];return(Ae=nt.current)===null||Ae===void 0?void 0:Ae.call.apply(Ae,[nt].concat(Ft))},[]);return pn}function $e(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var dt=$e()?ve.useLayoutEffect:ve.useEffect,Qe=function(nt,pn){var Ae=ve.useRef(!0);dt(function(){return nt(Ae.current)},pn),dt(function(){return Ae.current=!1,function(){Ae.current=!0}},[])},et=function(nt,pn){Qe(function(Ae){if(!Ae)return nt()},pn)},ft=null;function Je(_e){var nt=ve.useRef(!1),pn=ve.useState(_e),Ae=(0,we.Z)(pn,2),St=Ae[0],Ft=Ae[1];ve.useEffect(function(){return nt.current=!1,function(){nt.current=!0}},[]);function an(Rt,In){In&&nt.current||Ft(Rt)}return[St,an]}function ot(_e){return _e!==void 0}function ht(_e,nt){var pn=nt||{},Ae=pn.defaultValue,St=pn.value,Ft=pn.onChange,an=pn.postState,Rt=Je(function(){return ot(St)?St:ot(Ae)?typeof Ae=="function"?Ae():Ae:typeof _e=="function"?_e():_e}),In=(0,we.Z)(Rt,2),zn=In[0],Rn=In[1],Mn=St!==void 0?St:zn,sn=an?an(Mn):Mn,Bn=bt(Ft),Tn=Je([Mn]),Kn=(0,we.Z)(Tn,2),Zr=Kn[0],li=Kn[1];et(function(){var Oi=Zr[0];zn!==Oi&&Bn(zn,Oi)},[Zr]),et(function(){ot(St)||Rn(St)},[St]);var Gi=bt(function(Oi,fa){Rn(Oi,fa),li([Mn],fa)});return[sn,Gi]}var yt=he(62874),zt=(0,ve.createContext)(null),Xt=ve.forwardRef(function(_e,nt){var pn=_e.prefixCls,Ae=_e.className,St=_e.style,Ft=_e.id,an=_e.active,Rt=_e.tabKey,In=_e.children;return ve.createElement("div",{id:Ft&&"".concat(Ft,"-panel-").concat(Rt),role:"tabpanel",tabIndex:an?0:-1,"aria-labelledby":Ft&&"".concat(Ft,"-tab-").concat(Rt),"aria-hidden":!an,style:St,className:Ve()(pn,an&&"".concat(pn,"-active"),Ae),ref:nt},In)}),Qt=Xt,Ht=["key","forceRender","style","className"];function wt(_e){var nt=_e.id,pn=_e.activeKey,Ae=_e.animated,St=_e.tabPosition,Ft=_e.destroyInactiveTabPane,an=ve.useContext(zt),Rt=an.prefixCls,In=an.tabs,zn=Ae.tabPane,Rn="".concat(Rt,"-tabpane");return ve.createElement("div",{className:Ve()("".concat(Rt,"-content-holder"))},ve.createElement("div",{className:Ve()("".concat(Rt,"-content"),"".concat(Rt,"-content-").concat(St),(0,it.Z)({},"".concat(Rt,"-content-animated"),zn))},In.map(function(Mn){var sn=Mn.key,Bn=Mn.forceRender,Tn=Mn.style,Kn=Mn.className,Zr=(0,tt.Z)(Mn,Ht),li=sn===pn;return ve.createElement(yt.Z,(0,Re.Z)({key:sn,visible:li,forceRender:Bn,removeOnLeave:!!Ft,leavedClassName:"".concat(Rn,"-hidden")},Ae.tabPaneMotion),function(Gi,Oi){var fa=Gi.style,xa=Gi.className;return ve.createElement(Qt,(0,Re.Z)({},Zr,{prefixCls:Rn,id:nt,tabKey:sn,animated:zn,active:li,style:(0,ke.Z)((0,ke.Z)({},Tn),fa),className:Ve()(Kn,xa),ref:Oi}))})})))}var Ye=he(74902),pt=he(48555),qe=he(59864);function ut(_e,nt,pn){var Ae=ve.useRef({});return(!("value"in Ae.current)||pn(Ae.current.condition,nt))&&(Ae.current.value=_e(),Ae.current.condition=nt),Ae.current.value}function Oe(_e,nt){typeof _e=="function"?_e(nt):(0,at.Z)(_e)==="object"&&_e&&"current"in _e&&(_e.current=nt)}function Ot(){for(var _e=arguments.length,nt=new Array(_e),pn=0;pn<_e;pn++)nt[pn]=arguments[pn];var Ae=nt.filter(function(St){return St});return Ae.length<=1?Ae[0]:function(St){nt.forEach(function(Ft){Oe(Ft,St)})}}function Gt(){for(var _e=arguments.length,nt=new Array(_e),pn=0;pn<_e;pn++)nt[pn]=arguments[pn];return ut(function(){return Ot.apply(void 0,nt)},nt,function(Ae,St){return Ae.length===St.length&&Ae.every(function(Ft,an){return Ft===St[an]})})}function un(_e){var nt,pn,Ae=isMemo(_e)?_e.type.type:_e.type;return!(typeof Ae=="function"&&!((nt=Ae.prototype)!==null&&nt!==void 0&&nt.render)||typeof _e=="function"&&!((pn=_e.prototype)!==null&&pn!==void 0&&pn.render))}var Ge={width:0,height:0,left:0,top:0};function Ke(_e,nt,pn){return(0,ve.useMemo)(function(){for(var Ae,St=new Map,Ft=nt.get((Ae=_e[0])===null||Ae===void 0?void 0:Ae.key)||Ge,an=Ft.left+Ft.width,Rt=0;Rt<_e.length;Rt+=1){var In=_e[Rt].key,zn=nt.get(In);if(!zn){var Rn;zn=nt.get((Rn=_e[Rt-1])===null||Rn===void 0?void 0:Rn.key)||Ge}var Mn=St.get(In)||(0,ke.Z)({},zn);Mn.right=an-Mn.left-Mn.width,St.set(In,Mn)}return St},[_e.map(function(Ae){return Ae.key}).join("_"),nt,pn])}function Yt(_e,nt){var pn=ve.useRef(_e),Ae=ve.useState({}),St=(0,we.Z)(Ae,2),Ft=St[1];function an(Rt){var In=typeof Rt=="function"?Rt(pn.current):Rt;In!==pn.current&&nt(In,pn.current),pn.current=In,Ft({})}return[pn.current,an]}var Jt=.1,cn=.01,Lt=20,Dt=Math.pow(.995,Lt);function wn(_e,nt){var pn=(0,ve.useState)(),Ae=(0,we.Z)(pn,2),St=Ae[0],Ft=Ae[1],an=(0,ve.useState)(0),Rt=(0,we.Z)(an,2),In=Rt[0],zn=Rt[1],Rn=(0,ve.useState)(0),Mn=(0,we.Z)(Rn,2),sn=Mn[0],Bn=Mn[1],Tn=(0,ve.useState)(),Kn=(0,we.Z)(Tn,2),Zr=Kn[0],li=Kn[1],Gi=(0,ve.useRef)();function Oi(Pa){var Za=Pa.touches[0],Po=Za.screenX,tn=Za.screenY;Ft({x:Po,y:tn}),window.clearInterval(Gi.current)}function fa(Pa){if(St){Pa.preventDefault();var Za=Pa.touches[0],Po=Za.screenX,tn=Za.screenY;Ft({x:Po,y:tn});var rn=Po-St.x,fn=tn-St.y;nt(rn,fn);var Hn=Date.now();zn(Hn),Bn(Hn-In),li({x:rn,y:fn})}}function xa(){if(St&&(Ft(null),li(null),Zr)){var Pa=Zr.x/sn,Za=Zr.y/sn,Po=Math.abs(Pa),tn=Math.abs(Za);if(Math.max(Po,tn)<Jt)return;var rn=Pa,fn=Za;Gi.current=window.setInterval(function(){if(Math.abs(rn)<cn&&Math.abs(fn)<cn){window.clearInterval(Gi.current);return}rn*=Dt,fn*=Dt,nt(rn*Lt,fn*Lt)},Lt)}}var Oa=(0,ve.useRef)();function _a(Pa){var Za=Pa.deltaX,Po=Pa.deltaY,tn=0,rn=Math.abs(Za),fn=Math.abs(Po);rn===fn?tn=Oa.current==="x"?Za:Po:rn>fn?(tn=Za,Oa.current="x"):(tn=Po,Oa.current="y"),nt(-tn,-tn)&&Pa.preventDefault()}var $a=(0,ve.useRef)(null);$a.current={onTouchStart:Oi,onTouchMove:fa,onTouchEnd:xa,onWheel:_a},ve.useEffect(function(){function Pa(rn){$a.current.onTouchStart(rn)}function Za(rn){$a.current.onTouchMove(rn)}function Po(rn){$a.current.onTouchEnd(rn)}function tn(rn){$a.current.onWheel(rn)}return document.addEventListener("touchmove",Za,{passive:!1}),document.addEventListener("touchend",Po,{passive:!1}),_e.current.addEventListener("touchstart",Pa,{passive:!1}),_e.current.addEventListener("wheel",tn),function(){document.removeEventListener("touchmove",Za),document.removeEventListener("touchend",Po)}},[])}function _n(_e){var nt=(0,ve.useState)(0),pn=(0,we.Z)(nt,2),Ae=pn[0],St=pn[1],Ft=(0,ve.useRef)(0),an=(0,ve.useRef)();return an.current=_e,et(function(){var Rt;(Rt=an.current)===null||Rt===void 0||Rt.call(an)},[Ae]),function(){Ft.current===Ae&&(Ft.current+=1,St(Ft.current))}}function on(_e){var nt=(0,ve.useRef)([]),pn=(0,ve.useState)({}),Ae=(0,we.Z)(pn,2),St=Ae[1],Ft=(0,ve.useRef)(typeof _e=="function"?_e():_e),an=_n(function(){var In=Ft.current;nt.current.forEach(function(zn){In=zn(In)}),nt.current=[],Ft.current=In,St({})});function Rt(In){nt.current.push(In),an()}return[Ft.current,Rt]}var kn={width:0,height:0,left:0,top:0,right:0};function xn(_e,nt,pn,Ae,St,Ft,an){var Rt=an.tabs,In=an.tabPosition,zn=an.rtl,Rn,Mn,sn;return["top","bottom"].includes(In)?(Rn="width",Mn=zn?"right":"left",sn=Math.abs(pn)):(Rn="height",Mn="top",sn=-pn),(0,ve.useMemo)(function(){if(!Rt.length)return[0,0];for(var Bn=Rt.length,Tn=Bn,Kn=0;Kn<Bn;Kn+=1){var Zr=_e.get(Rt[Kn].key)||kn;if(Zr[Mn]+Zr[Rn]>sn+nt){Tn=Kn-1;break}}for(var li=0,Gi=Bn-1;Gi>=0;Gi-=1){var Oi=_e.get(Rt[Gi].key)||kn;if(Oi[Mn]<sn){li=Gi+1;break}}return li>=Tn?[0,0]:[li,Tn]},[_e,nt,Ae,St,Ft,sn,In,Rt.map(function(Bn){return Bn.key}).join("_"),zn])}function Vn(_e){var nt;return _e instanceof Map?(nt={},_e.forEach(function(pn,Ae){nt[Ae]=pn})):nt=_e,JSON.stringify(nt)}var er="TABS_DQ";function Me(_e){return String(_e).replace(/"/g,er)}function ce(_e,nt,pn,Ae){return!(!pn||Ae||_e===!1||_e===void 0&&(nt===!1||nt===null))}function fe(_e,nt){var pn=_e.prefixCls,Ae=_e.editable,St=_e.locale,Ft=_e.style;return!Ae||Ae.showAdd===!1?null:ve.createElement("button",{ref:nt,type:"button",className:"".concat(pn,"-nav-add"),style:Ft,"aria-label":(St==null?void 0:St.addAriaLabel)||"Add tab",onClick:function(Rt){Ae.onEdit("add",{event:Rt})}},Ae.addIcon||"+")}var be=ve.forwardRef(fe),ge=ve.forwardRef(function(_e,nt){var pn=_e.position,Ae=_e.prefixCls,St=_e.extra;if(!St)return null;var Ft,an={};return(0,at.Z)(St)==="object"&&!ve.isValidElement(St)?an=St:an.right=St,pn==="right"&&(Ft=an.right),pn==="left"&&(Ft=an.left),Ft?ve.createElement("div",{className:"".concat(Ae,"-extra-content"),ref:nt},Ft):null}),ue=ge,Xe=he(62709);function _t(_e,nt,pn){var Ae=React.useRef({});return(!("value"in Ae.current)||pn(Ae.current.condition,nt))&&(Ae.current.value=_e(),Ae.current.condition=nt),Ae.current.value}function Zt(_e,nt){typeof _e=="function"?_e(nt):(0,at.Z)(_e)==="object"&&_e&&"current"in _e&&(_e.current=nt)}function Dn(){for(var _e=arguments.length,nt=new Array(_e),pn=0;pn<_e;pn++)nt[pn]=arguments[pn];var Ae=nt.filter(function(St){return St});return Ae.length<=1?Ae[0]:function(St){nt.forEach(function(Ft){Zt(Ft,St)})}}function An(){for(var _e=arguments.length,nt=new Array(_e),pn=0;pn<_e;pn++)nt[pn]=arguments[pn];return useMemo(function(){return Dn.apply(void 0,nt)},nt,function(Ae,St){return Ae.length===St.length&&Ae.every(function(Ft,an){return Ft===St[an]})})}function yn(_e){var nt,pn,Ae=(0,qe.isMemo)(_e)?_e.type.type:_e.type;return!(typeof Ae=="function"&&!((nt=Ae.prototype)!==null&&nt!==void 0&&nt.render)||typeof _e=="function"&&!((pn=_e.prototype)!==null&&pn!==void 0&&pn.render))}var nn={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(nt){var pn=nt.keyCode;if(nt.altKey&&!nt.ctrlKey||nt.metaKey||pn>=nn.F1&&pn<=nn.F12)return!1;switch(pn){case nn.ALT:case nn.CAPS_LOCK:case nn.CONTEXT_MENU:case nn.CTRL:case nn.DOWN:case nn.END:case nn.ESC:case nn.HOME:case nn.INSERT:case nn.LEFT:case nn.MAC_FF_META:case nn.META:case nn.NUMLOCK:case nn.NUM_CENTER:case nn.PAGE_DOWN:case nn.PAGE_UP:case nn.PAUSE:case nn.PRINT_SCREEN:case nn.RIGHT:case nn.SHIFT:case nn.UP:case nn.WIN_KEY:case nn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(nt){if(nt>=nn.ZERO&&nt<=nn.NINE||nt>=nn.NUM_ZERO&&nt<=nn.NUM_MULTIPLY||nt>=nn.A&&nt<=nn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&nt===0)return!0;switch(nt){case nn.SPACE:case nn.QUESTION_MARK:case nn.NUM_PLUS:case nn.NUM_MINUS:case nn.NUM_PERIOD:case nn.NUM_DIVISION:case nn.SEMICOLON:case nn.DASH:case nn.EQUALS:case nn.COMMA:case nn.PERIOD:case nn.SLASH:case nn.APOSTROPHE:case nn.SINGLE_QUOTE:case nn.OPEN_SQUARE_BRACKET:case nn.BACKSLASH:case nn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ar=nn,Dr=function(nt){return+setTimeout(nt,16)},ln=function(nt){return clearTimeout(nt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Dr=function(nt){return window.requestAnimationFrame(nt)},ln=function(nt){return window.cancelAnimationFrame(nt)});var jn=0,wi=new Map;function $r(_e){wi.delete(_e)}var Ir=function(nt){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;jn+=1;var Ae=jn;function St(Ft){if(Ft===0)$r(Ae),nt();else{var an=Dr(function(){St(Ft-1)});wi.set(Ae,an)}}return St(pn),Ae};Ir.cancel=function(_e){var nt=wi.get(_e);return $r(nt),ln(nt)};var Or=Ir,Ca=Ar.ESC,ur=Ar.TAB;function Yn(_e){var nt=_e.visible,pn=_e.triggerRef,Ae=_e.onVisibleChange,St=_e.autoFocus,Ft=_e.overlayRef,an=ve.useRef(!1),Rt=function(){if(nt){var Mn,sn;(Mn=pn.current)===null||Mn===void 0||(sn=Mn.focus)===null||sn===void 0||sn.call(Mn),Ae==null||Ae(!1)}},In=function(){var Mn;return(Mn=Ft.current)!==null&&Mn!==void 0&&Mn.focus?(Ft.current.focus(),an.current=!0,!0):!1},zn=function(Mn){switch(Mn.keyCode){case Ca:Rt();break;case ur:{var sn=!1;an.current||(sn=In()),sn?Mn.preventDefault():Rt();break}}};ve.useEffect(function(){return nt?(window.addEventListener("keydown",zn),St&&Or(In,3),function(){window.removeEventListener("keydown",zn),an.current=!1}):function(){an.current=!1}},[nt])}var oi=(0,ve.forwardRef)(function(_e,nt){var pn=_e.overlay,Ae=_e.arrow,St=_e.prefixCls,Ft=(0,ve.useMemo)(function(){var Rt;return typeof pn=="function"?Rt=pn():Rt=pn,Rt},[pn]),an=Dn(nt,Ft==null?void 0:Ft.ref);return ve.createElement(ve.Fragment,null,Ae&&ve.createElement("div",{className:"".concat(St,"-arrow")}),ve.cloneElement(Ft,{ref:yn(Ft)?an:void 0}))}),Si=oi,Ti={adjustX:1,adjustY:1},Ni=[0,0],Fi={topLeft:{points:["bl","tl"],overflow:Ti,offset:[0,-4],targetOffset:Ni},top:{points:["bc","tc"],overflow:Ti,offset:[0,-4],targetOffset:Ni},topRight:{points:["br","tr"],overflow:Ti,offset:[0,-4],targetOffset:Ni},bottomLeft:{points:["tl","bl"],overflow:Ti,offset:[0,4],targetOffset:Ni},bottom:{points:["tc","bc"],overflow:Ti,offset:[0,4],targetOffset:Ni},bottomRight:{points:["tr","br"],overflow:Ti,offset:[0,4],targetOffset:Ni}},Wr=Fi,qr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ta(_e,nt){var pn,Ae=_e.arrow,St=Ae===void 0?!1:Ae,Ft=_e.prefixCls,an=Ft===void 0?"rc-dropdown":Ft,Rt=_e.transitionName,In=_e.animation,zn=_e.align,Rn=_e.placement,Mn=Rn===void 0?"bottomLeft":Rn,sn=_e.placements,Bn=sn===void 0?Wr:sn,Tn=_e.getPopupContainer,Kn=_e.showAction,Zr=_e.hideAction,li=_e.overlayClassName,Gi=_e.overlayStyle,Oi=_e.visible,fa=_e.trigger,xa=fa===void 0?["hover"]:fa,Oa=_e.autoFocus,_a=_e.overlay,$a=_e.children,Pa=_e.onVisibleChange,Za=(0,tt.Z)(_e,qr),Po=ve.useState(),tn=(0,we.Z)(Po,2),rn=tn[0],fn=tn[1],Hn="visible"in _e?Oi:rn,ei=ve.useRef(null),Wi=ve.useRef(null),Zn=ve.useRef(null);ve.useImperativeHandle(nt,function(){return ei.current});var Lr=function(fi){fn(fi),Pa==null||Pa(fi)};Yn({visible:Hn,triggerRef:Zn,onVisibleChange:Lr,autoFocus:Oa,overlayRef:Wi});var vi=function(fi){var Ga=_e.onOverlayClick;fn(!1),Ga&&Ga(fi)},qi=function(){return ve.createElement(Si,{ref:Wi,overlay:_a,prefixCls:an,arrow:St})},Kr=function(){return typeof _a=="function"?qi:qi()},dr=function(){var fi=_e.minOverlayWidthMatchTrigger,Ga=_e.alignPoint;return"minOverlayWidthMatchTrigger"in _e?fi:!Ga},Vi=function(){var fi=_e.openClassName;return fi!==void 0?fi:"".concat(an,"-open")},ha=ve.cloneElement($a,{className:Ve()((pn=$a.props)===null||pn===void 0?void 0:pn.className,Hn&&Vi()),ref:yn($a)?Dn(Zn,$a.ref):void 0}),Ea=Zr;return!Ea&&xa.indexOf("contextMenu")!==-1&&(Ea=["click"]),ve.createElement(Xe.Z,(0,Re.Z)({builtinPlacements:Bn},Za,{prefixCls:an,ref:ei,popupClassName:Ve()(li,(0,it.Z)({},"".concat(an,"-show-arrow"),St)),popupStyle:Gi,action:xa,showAction:Kn,hideAction:Ea,popupPlacement:Mn,popupAlign:zn,popupTransitionName:Rt,popupAnimation:In,popupVisible:Hn,stretch:dr()?"minWidth":"",popup:Kr(),onPopupVisibleChange:Lr,onPopupClick:vi,getPopupContainer:Tn}),ha)}var Da=ve.forwardRef(Ta),Tr=Da,_i=he(78595),jr={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(nt){var pn=nt.keyCode;if(nt.altKey&&!nt.ctrlKey||nt.metaKey||pn>=jr.F1&&pn<=jr.F12)return!1;switch(pn){case jr.ALT:case jr.CAPS_LOCK:case jr.CONTEXT_MENU:case jr.CTRL:case jr.DOWN:case jr.END:case jr.ESC:case jr.HOME:case jr.INSERT:case jr.LEFT:case jr.MAC_FF_META:case jr.META:case jr.NUMLOCK:case jr.NUM_CENTER:case jr.PAGE_DOWN:case jr.PAGE_UP:case jr.PAUSE:case jr.PRINT_SCREEN:case jr.RIGHT:case jr.SHIFT:case jr.UP:case jr.WIN_KEY:case jr.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(nt){if(nt>=jr.ZERO&&nt<=jr.NINE||nt>=jr.NUM_ZERO&&nt<=jr.NUM_MULTIPLY||nt>=jr.A&&nt<=jr.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&nt===0)return!0;switch(nt){case jr.SPACE:case jr.QUESTION_MARK:case jr.NUM_PLUS:case jr.NUM_MINUS:case jr.NUM_PERIOD:case jr.NUM_DIVISION:case jr.SEMICOLON:case jr.DASH:case jr.EQUALS:case jr.COMMA:case jr.PERIOD:case jr.SLASH:case jr.APOSTROPHE:case jr.SINGLE_QUOTE:case jr.OPEN_SQUARE_BRACKET:case jr.BACKSLASH:case jr.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},di=jr;function Lo(_e,nt){var pn=_e.prefixCls,Ae=_e.id,St=_e.tabs,Ft=_e.locale,an=_e.mobile,Rt=_e.moreIcon,In=Rt===void 0?"More":Rt,zn=_e.moreTransitionName,Rn=_e.style,Mn=_e.className,sn=_e.editable,Bn=_e.tabBarGutter,Tn=_e.rtl,Kn=_e.removeAriaLabel,Zr=_e.onTabClick,li=_e.getPopupContainer,Gi=_e.popupClassName,Oi=(0,ve.useState)(!1),fa=(0,we.Z)(Oi,2),xa=fa[0],Oa=fa[1],_a=(0,ve.useState)(null),$a=(0,we.Z)(_a,2),Pa=$a[0],Za=$a[1],Po="".concat(Ae,"-more-popup"),tn="".concat(pn,"-dropdown"),rn=Pa!==null?"".concat(Po,"-").concat(Pa):null,fn=Ft==null?void 0:Ft.dropdownAriaLabel;function Hn(Kr,dr){Kr.preventDefault(),Kr.stopPropagation(),sn.onEdit("remove",{key:dr,event:Kr})}var ei=ve.createElement(_i.ZP,{onClick:function(dr){var Vi=dr.key,ha=dr.domEvent;Zr(Vi,ha),Oa(!1)},prefixCls:"".concat(tn,"-menu"),id:Po,tabIndex:-1,role:"listbox","aria-activedescendant":rn,selectedKeys:[Pa],"aria-label":fn!==void 0?fn:"expanded dropdown"},St.map(function(Kr){var dr=Kr.closable,Vi=Kr.disabled,ha=Kr.closeIcon,Ea=Kr.key,Ci=Kr.label,fi=ce(dr,ha,sn,Vi);return ve.createElement(_i.sN,{key:Ea,id:"".concat(Po,"-").concat(Ea),role:"option","aria-controls":Ae&&"".concat(Ae,"-panel-").concat(Ea),disabled:Vi},ve.createElement("span",null,Ci),fi&&ve.createElement("button",{type:"button","aria-label":Kn||"remove",tabIndex:0,className:"".concat(tn,"-menu-item-remove"),onClick:function(Ka){Ka.stopPropagation(),Hn(Ka,Ea)}},ha||sn.removeIcon||"\xD7"))}));function Wi(Kr){for(var dr=St.filter(function(fi){return!fi.disabled}),Vi=dr.findIndex(function(fi){return fi.key===Pa})||0,ha=dr.length,Ea=0;Ea<ha;Ea+=1){Vi=(Vi+Kr+ha)%ha;var Ci=dr[Vi];if(!Ci.disabled){Za(Ci.key);return}}}function Zn(Kr){var dr=Kr.which;if(!xa){[di.DOWN,di.SPACE,di.ENTER].includes(dr)&&(Oa(!0),Kr.preventDefault());return}switch(dr){case di.UP:Wi(-1),Kr.preventDefault();break;case di.DOWN:Wi(1),Kr.preventDefault();break;case di.ESC:Oa(!1);break;case di.SPACE:case di.ENTER:Pa!==null&&Zr(Pa,Kr);break}}(0,ve.useEffect)(function(){var Kr=document.getElementById(rn);Kr&&Kr.scrollIntoView&&Kr.scrollIntoView(!1)},[Pa]),(0,ve.useEffect)(function(){xa||Za(null)},[xa]);var Lr=(0,it.Z)({},Tn?"marginRight":"marginLeft",Bn);St.length||(Lr.visibility="hidden",Lr.order=1);var vi=Ve()((0,it.Z)({},"".concat(tn,"-rtl"),Tn)),qi=an?null:ve.createElement(Tr,{prefixCls:tn,overlay:ei,trigger:["hover"],visible:St.length?xa:!1,transitionName:zn,onVisibleChange:Oa,overlayClassName:Ve()(vi,Gi),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:li},ve.createElement("button",{type:"button",className:"".concat(pn,"-nav-more"),style:Lr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Po,id:"".concat(Ae,"-more"),"aria-expanded":xa,onKeyDown:Zn},In));return ve.createElement("div",{className:Ve()("".concat(pn,"-nav-operations"),Mn),style:Rn,ref:nt},qi,ve.createElement(be,{prefixCls:pn,locale:Ft,editable:sn}))}var ro=ve.memo(ve.forwardRef(Lo),function(_e,nt){return nt.tabMoving});function Hi(_e){var nt,pn=_e.prefixCls,Ae=_e.id,St=_e.active,Ft=_e.tab,an=Ft.key,Rt=Ft.label,In=Ft.disabled,zn=Ft.closeIcon,Rn=_e.closable,Mn=_e.renderWrapper,sn=_e.removeAriaLabel,Bn=_e.editable,Tn=_e.onClick,Kn=_e.onFocus,Zr=_e.style,li="".concat(pn,"-tab"),Gi=ce(Rn,zn,Bn,In);function Oi(Oa){In||Tn(Oa)}function fa(Oa){Oa.preventDefault(),Oa.stopPropagation(),Bn.onEdit("remove",{key:an,event:Oa})}var xa=ve.createElement("div",{key:an,"data-node-key":Me(an),className:Ve()(li,(nt={},(0,it.Z)(nt,"".concat(li,"-with-remove"),Gi),(0,it.Z)(nt,"".concat(li,"-active"),St),(0,it.Z)(nt,"".concat(li,"-disabled"),In),nt)),style:Zr,onClick:Oi},ve.createElement("div",{role:"tab","aria-selected":St,id:Ae&&"".concat(Ae,"-tab-").concat(an),className:"".concat(li,"-btn"),"aria-controls":Ae&&"".concat(Ae,"-panel-").concat(an),"aria-disabled":In,tabIndex:In?null:0,onClick:function(_a){_a.stopPropagation(),Oi(_a)},onKeyDown:function(_a){[di.SPACE,di.ENTER].includes(_a.which)&&(_a.preventDefault(),Oi(_a))},onFocus:Kn},Rt),Gi&&ve.createElement("button",{type:"button","aria-label":sn||"remove",tabIndex:0,className:"".concat(li,"-remove"),onClick:function(_a){_a.stopPropagation(),fa(_a)}},zn||Bn.removeIcon||"\xD7"));return Mn?Mn(xa):xa}var Ko=Hi,Zo=function(nt){return+setTimeout(nt,16)},zi=function(nt){return clearTimeout(nt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Zo=function(nt){return window.requestAnimationFrame(nt)},zi=function(nt){return window.cancelAnimationFrame(nt)});var Pr=0,ta=new Map;function Wa(_e){ta.delete(_e)}var yo=function(nt){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Pr+=1;var Ae=Pr;function St(Ft){if(Ft===0)Wa(Ae),nt();else{var an=Zo(function(){St(Ft-1)});ta.set(Ae,an)}}return St(pn),Ae};yo.cancel=function(_e){var nt=ta.get(_e);return Wa(nt),zi(nt)};var Eo=yo,bo=function(nt){var pn=nt.activeTabOffset,Ae=nt.horizontal,St=nt.rtl,Ft=nt.indicatorSize,an=(0,ve.useState)(),Rt=(0,we.Z)(an,2),In=Rt[0],zn=Rt[1],Rn=(0,ve.useRef)(),Mn=function(Tn){return typeof Ft=="function"?Ft(Tn):typeof Ft=="number"?Ft:Tn};function sn(){Eo.cancel(Rn.current)}return(0,ve.useEffect)(function(){var Bn={};return pn&&(Ae?(St?(Bn.right=pn.right+pn.width/2,Bn.transform="translateX(50%)"):(Bn.left=pn.left+pn.width/2,Bn.transform="translateX(-50%)"),Bn.width=Mn(pn.width)):(Bn.top=pn.top+pn.height/2,Bn.transform="translateY(-50%)",Bn.height=Mn(pn.height))),sn(),Rn.current=Eo(function(){zn(Bn)}),sn},[pn,Ae,St,Ft]),{style:In}},rs=bo,fo=function(nt){var pn=nt.current||{},Ae=pn.offsetWidth,St=Ae===void 0?0:Ae,Ft=pn.offsetHeight,an=Ft===void 0?0:Ft;return[St,an]},ka=function(nt,pn){return nt[pn?0:1]};function mi(_e,nt){var pn,Ae=ve.useContext(zt),St=Ae.prefixCls,Ft=Ae.tabs,an=_e.className,Rt=_e.style,In=_e.id,zn=_e.animated,Rn=_e.activeKey,Mn=_e.rtl,sn=_e.extra,Bn=_e.editable,Tn=_e.locale,Kn=_e.tabPosition,Zr=_e.tabBarGutter,li=_e.children,Gi=_e.onTabClick,Oi=_e.onTabScroll,fa=_e.indicatorSize,xa=(0,ve.useRef)(),Oa=(0,ve.useRef)(),_a=(0,ve.useRef)(),$a=(0,ve.useRef)(),Pa=(0,ve.useRef)(),Za=(0,ve.useRef)(),Po=(0,ve.useRef)(),tn=Kn==="top"||Kn==="bottom",rn=Yt(0,function(ko,Ba){tn&&Oi&&Oi({direction:ko>Ba?"left":"right"})}),fn=(0,we.Z)(rn,2),Hn=fn[0],ei=fn[1],Wi=Yt(0,function(ko,Ba){!tn&&Oi&&Oi({direction:ko>Ba?"top":"bottom"})}),Zn=(0,we.Z)(Wi,2),Lr=Zn[0],vi=Zn[1],qi=(0,ve.useState)([0,0]),Kr=(0,we.Z)(qi,2),dr=Kr[0],Vi=Kr[1],ha=(0,ve.useState)([0,0]),Ea=(0,we.Z)(ha,2),Ci=Ea[0],fi=Ea[1],Ga=(0,ve.useState)([0,0]),Ka=(0,we.Z)(Ga,2),Ao=Ka[0],Es=Ka[1],bl=(0,ve.useState)([0,0]),Io=(0,we.Z)(bl,2),Rl=Io[0],To=Io[1],Ls=on(new Map),Uo=(0,we.Z)(Ls,2),wo=Uo[0],ll=Uo[1],ul=Ke(Ft,wo,Ci[0]),ia=ka(dr,tn),ys=ka(Ci,tn),cl=ka(Ao,tn),Gs=ka(Rl,tn),is=ia<ys+cl,eo=is?ia-Gs:ia-cl,Ul="".concat(St,"-nav-operations-hidden"),Fs=0,Fl=0;tn&&Mn?(Fs=0,Fl=Math.max(0,ys-eo)):(Fs=Math.min(0,eo-ys),Fl=0);function Hu(ko){return ko<Fs?Fs:ko>Fl?Fl:ko}var zu=(0,ve.useRef)(),dl=(0,ve.useState)(),Fu=(0,we.Z)(dl,2),jl=Fu[0],fu=Fu[1];function yu(){fu(Date.now())}function hu(){window.clearTimeout(zu.current)}wn($a,function(ko,Ba){function Yo(ls,Te){ls(function(He){var Nt=Hu(He+Te);return Nt})}return is?(tn?Yo(ei,ko):Yo(vi,Ba),hu(),yu(),!0):!1}),(0,ve.useEffect)(function(){return hu(),jl&&(zu.current=window.setTimeout(function(){fu(0)},100)),hu},[jl]);var pu=xn(ul,eo,tn?Hn:Lr,ys,cl,Gs,(0,ke.Z)((0,ke.Z)({},_e),{},{tabs:Ft})),mu=(0,we.Z)(pu,2),bu=mu[0],$s=mu[1],xu=bt(function(){var ko=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rn,Ba=ul.get(ko)||{width:0,height:0,left:0,right:0,top:0};if(tn){var Yo=Hn;Mn?Ba.right<Hn?Yo=Ba.right:Ba.right+Ba.width>Hn+eo&&(Yo=Ba.right+Ba.width-eo):Ba.left<-Hn?Yo=-Ba.left:Ba.left+Ba.width>-Hn+eo&&(Yo=-(Ba.left+Ba.width-eo)),vi(0),ei(Hu(Yo))}else{var ls=Lr;Ba.top<-Lr?ls=-Ba.top:Ba.top+Ba.height>-Lr+eo&&(ls=-(Ba.top+Ba.height-eo)),ei(0),vi(Hu(ls))}}),Zl={};Kn==="top"||Kn==="bottom"?Zl[Mn?"marginRight":"marginLeft"]=Zr:Zl.marginTop=Zr;var Al=Ft.map(function(ko,Ba){var Yo=ko.key;return ve.createElement(Ko,{id:In,prefixCls:St,key:Yo,tab:ko,style:Ba===0?void 0:Zl,closable:ko.closable,editable:Bn,active:Yo===Rn,renderWrapper:li,removeAriaLabel:Tn==null?void 0:Tn.removeAriaLabel,onClick:function(Te){Gi(Yo,Te)},onFocus:function(){xu(Yo),yu(),$a.current&&(Mn||($a.current.scrollLeft=0),$a.current.scrollTop=0)}})}),Pu=function(){return ll(function(){var Ba=new Map;return Ft.forEach(function(Yo){var ls,Te=Yo.key,He=(ls=Pa.current)===null||ls===void 0?void 0:ls.querySelector('[data-node-key="'.concat(Me(Te),'"]'));He&&Ba.set(Te,{width:He.offsetWidth,height:He.offsetHeight,left:He.offsetLeft,top:He.offsetTop})}),Ba})};(0,ve.useEffect)(function(){Pu()},[Ft.map(function(ko){return ko.key}).join("_")]);var wu=_n(function(){var ko=fo(xa),Ba=fo(Oa),Yo=fo(_a);Vi([ko[0]-Ba[0]-Yo[0],ko[1]-Ba[1]-Yo[1]]);var ls=fo(Po);Es(ls);var Te=fo(Za);To(Te);var He=fo(Pa);fi([He[0]-ls[0],He[1]-ls[1]]),Pu()}),Iu=Ft.slice(0,bu),$u=Ft.slice($s+1),au=[].concat((0,Ye.Z)(Iu),(0,Ye.Z)($u)),Cu=ul.get(Rn),Pl=rs({activeTabOffset:Cu,horizontal:tn,rtl:Mn,indicatorSize:fa}),_l=Pl.style;(0,ve.useEffect)(function(){xu()},[Rn,Fs,Fl,Vn(Cu),Vn(ul),tn]),(0,ve.useEffect)(function(){wu()},[Mn]);var Ys=!!au.length,Gl="".concat(St,"-nav-wrap"),ou,Eu,su,Kl;return tn?Mn?(Eu=Hn>0,ou=Hn!==Fl):(ou=Hn<0,Eu=Hn!==Fs):(su=Lr<0,Kl=Lr!==Fs),ve.createElement(pt.Z,{onResize:wu},ve.createElement("div",{ref:Gt(nt,xa),role:"tablist",className:Ve()("".concat(St,"-nav"),an),style:Rt,onKeyDown:function(){yu()}},ve.createElement(ue,{ref:Oa,position:"left",extra:sn,prefixCls:St}),ve.createElement(pt.Z,{onResize:wu},ve.createElement("div",{className:Ve()(Gl,(pn={},(0,it.Z)(pn,"".concat(Gl,"-ping-left"),ou),(0,it.Z)(pn,"".concat(Gl,"-ping-right"),Eu),(0,it.Z)(pn,"".concat(Gl,"-ping-top"),su),(0,it.Z)(pn,"".concat(Gl,"-ping-bottom"),Kl),pn)),ref:$a},ve.createElement(pt.Z,{onResize:wu},ve.createElement("div",{ref:Pa,className:"".concat(St,"-nav-list"),style:{transform:"translate(".concat(Hn,"px, ").concat(Lr,"px)"),transition:jl?"none":void 0}},Al,ve.createElement(be,{ref:Po,prefixCls:St,locale:Tn,editable:Bn,style:(0,ke.Z)((0,ke.Z)({},Al.length===0?void 0:Zl),{},{visibility:Ys?"hidden":null})}),ve.createElement("div",{className:Ve()("".concat(St,"-ink-bar"),(0,it.Z)({},"".concat(St,"-ink-bar-animated"),zn.inkBar)),style:_l}))))),ve.createElement(ro,(0,Re.Z)({},_e,{removeAriaLabel:Tn==null?void 0:Tn.removeAriaLabel,ref:Za,prefixCls:St,tabs:au,className:!Ys&&Ul,tabMoving:!!jl})),ve.createElement(ue,{ref:_a,position:"right",extra:sn,prefixCls:St})))}var Fo=ve.forwardRef(mi),Xo=["renderTabBar"],Ja=["label","key"];function Na(_e){var nt=_e.renderTabBar,pn=(0,tt.Z)(_e,Xo),Ae=ve.useContext(zt),St=Ae.tabs;if(nt){var Ft=(0,ke.Z)((0,ke.Z)({},pn),{},{panes:St.map(function(an){var Rt=an.label,In=an.key,zn=(0,tt.Z)(an,Ja);return ve.createElement(Qt,(0,Re.Z)({tab:Rt,key:In,tabKey:In},zn))})});return nt(Ft,Fo)}return ve.createElement(Fo,pn)}var Rs={},io=[],lo=function(nt){io.push(nt)};function cr(_e,nt){if(0)var pn}function Xi(_e,nt){if(0)var pn}function br(){Rs={}}function Cl(_e,nt,pn){!nt&&!Rs[pn]&&(_e(!1,pn),Rs[pn]=!0)}function fs(_e,nt){Cl(cr,_e,nt)}function ho(_e,nt){Cl(Xi,_e,nt)}fs.preMessage=lo,fs.resetWarned=br,fs.noteOnce=ho;var Ll=null;function Ma(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},nt;return _e===!1?nt={inkBar:!1,tabPane:!1}:_e===!0?nt={inkBar:!0,tabPane:!1}:nt=(0,ke.Z)({inkBar:!0},(0,at.Z)(_e)==="object"?_e:{}),nt.tabPaneMotion&&nt.tabPane===void 0&&(nt.tabPane=!0),!nt.tabPaneMotion&&nt.tabPane&&(nt.tabPane=!1),nt}var El=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],Xn=0;function Go(_e,nt){var pn,Ae=_e.id,St=_e.prefixCls,Ft=St===void 0?"rc-tabs":St,an=_e.className,Rt=_e.items,In=_e.direction,zn=_e.activeKey,Rn=_e.defaultActiveKey,Mn=_e.editable,sn=_e.animated,Bn=_e.tabPosition,Tn=Bn===void 0?"top":Bn,Kn=_e.tabBarGutter,Zr=_e.tabBarStyle,li=_e.tabBarExtraContent,Gi=_e.locale,Oi=_e.moreIcon,fa=_e.moreTransitionName,xa=_e.destroyInactiveTabPane,Oa=_e.renderTabBar,_a=_e.onChange,$a=_e.onTabClick,Pa=_e.onTabScroll,Za=_e.getPopupContainer,Po=_e.popupClassName,tn=_e.indicatorSize,rn=(0,tt.Z)(_e,El),fn=ve.useMemo(function(){return(Rt||[]).filter(function(To){return To&&(0,at.Z)(To)==="object"&&"key"in To})},[Rt]),Hn=In==="rtl",ei=Ma(sn),Wi=(0,ve.useState)(!1),Zn=(0,we.Z)(Wi,2),Lr=Zn[0],vi=Zn[1];(0,ve.useEffect)(function(){vi(kt())},[]);var qi=ht(function(){var To;return(To=fn[0])===null||To===void 0?void 0:To.key},{value:zn,defaultValue:Rn}),Kr=(0,we.Z)(qi,2),dr=Kr[0],Vi=Kr[1],ha=(0,ve.useState)(function(){return fn.findIndex(function(To){return To.key===dr})}),Ea=(0,we.Z)(ha,2),Ci=Ea[0],fi=Ea[1];(0,ve.useEffect)(function(){var To=fn.findIndex(function(Uo){return Uo.key===dr});if(To===-1){var Ls;To=Math.max(0,Math.min(Ci,fn.length-1)),Vi((Ls=fn[To])===null||Ls===void 0?void 0:Ls.key)}fi(To)},[fn.map(function(To){return To.key}).join("_"),dr,Ci]);var Ga=ht(null,{value:Ae}),Ka=(0,we.Z)(Ga,2),Ao=Ka[0],Es=Ka[1];(0,ve.useEffect)(function(){Ae||(Es("rc-tabs-".concat(Xn)),Xn+=1)},[]);function bl(To,Ls){$a==null||$a(To,Ls);var Uo=To!==dr;Vi(To),Uo&&(_a==null||_a(To))}var Io={id:Ao,activeKey:dr,animated:ei,tabPosition:Tn,rtl:Hn,mobile:Lr},Rl=(0,ke.Z)((0,ke.Z)({},Io),{},{editable:Mn,locale:Gi,moreIcon:Oi,moreTransitionName:fa,tabBarGutter:Kn,onTabClick:bl,onTabScroll:Pa,extra:li,style:Zr,panes:null,getPopupContainer:Za,popupClassName:Po,indicatorSize:tn});return ve.createElement(zt.Provider,{value:{tabs:fn,prefixCls:Ft}},ve.createElement("div",(0,Re.Z)({ref:nt,id:Ae,className:Ve()(Ft,"".concat(Ft,"-").concat(Tn),(pn={},(0,it.Z)(pn,"".concat(Ft,"-mobile"),Lr),(0,it.Z)(pn,"".concat(Ft,"-editable"),Mn),(0,it.Z)(pn,"".concat(Ft,"-rtl"),Hn),pn),an)},rn),ve.createElement(Na,(0,Re.Z)({},Rl,{renderTabBar:Oa})),ve.createElement(wt,(0,Re.Z)({destroyInactiveTabPane:xa},Io,{animated:ei}))))}var hs=ve.forwardRef(Go),Ws=hs,xo=Ws,co=he(53124),Ho=he(98675),Ro=()=>null,qo=he(33603);const Va={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Ms(_e){let nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},pn;return nt===!1?pn={inkBar:!1,tabPane:!1}:nt===!0?pn={inkBar:!0,tabPane:!0}:pn=Object.assign({inkBar:!0},typeof nt=="object"?nt:{}),pn.tabPane&&(pn.tabPaneMotion=Object.assign(Object.assign({},Va),{motionName:(0,qo.m)(_e,"switch")})),pn}var Vl=he(37419),qs=function(_e,nt){var pn={};for(var Ae in _e)Object.prototype.hasOwnProperty.call(_e,Ae)&&nt.indexOf(Ae)<0&&(pn[Ae]=_e[Ae]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Ae=Object.getOwnPropertySymbols(_e);St<Ae.length;St++)nt.indexOf(Ae[St])<0&&Object.prototype.propertyIsEnumerable.call(_e,Ae[St])&&(pn[Ae[St]]=_e[Ae[St]]);return pn};function il(_e){return _e.filter(nt=>nt)}function Ds(_e,nt){if(_e)return _e;const pn=(0,Vl.Z)(nt).map(Ae=>{if(ve.isValidElement(Ae)){const{key:St,props:Ft}=Ae,an=Ft||{},{tab:Rt}=an,In=qs(an,["tab"]);return Object.assign(Object.assign({key:String(St)},In),{label:Rt})}return null});return il(pn)}var So=he(14747),al=he(67968),Sl=he(45503),Vs=he(67771),Bs=_e=>{const{componentCls:nt,motionDurationSlow:pn}=_e;return[{[nt]:{[`${nt}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${pn}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${pn}`}}}}},[(0,Vs.oN)(_e,"slide-up"),(0,Vs.oN)(_e,"slide-down")]]};const Us=_e=>{const{componentCls:nt,tabsCardPadding:pn,cardBg:Ae,cardGutter:St,colorBorderSecondary:Ft,itemSelectedColor:an}=_e;return{[`${nt}-card`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab`]:{margin:0,padding:pn,background:Ae,border:`${_e.lineWidth}px ${_e.lineType} ${Ft}`,transition:`all ${_e.motionDurationSlow} ${_e.motionEaseInOut}`},[`${nt}-tab-active`]:{color:an,background:_e.colorBgContainer},[`${nt}-ink-bar`]:{visibility:"hidden"}},[`&${nt}-top, &${nt}-bottom`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab + ${nt}-tab`]:{marginLeft:{_skip_check_:!0,value:`${St}px`}}}},[`&${nt}-top`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab`]:{borderRadius:`${_e.borderRadiusLG}px ${_e.borderRadiusLG}px 0 0`},[`${nt}-tab-active`]:{borderBottomColor:_e.colorBgContainer}}},[`&${nt}-bottom`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab`]:{borderRadius:`0 0 ${_e.borderRadiusLG}px ${_e.borderRadiusLG}px`},[`${nt}-tab-active`]:{borderTopColor:_e.colorBgContainer}}},[`&${nt}-left, &${nt}-right`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab + ${nt}-tab`]:{marginTop:`${St}px`}}},[`&${nt}-left`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e.borderRadiusLG}px 0 0 ${_e.borderRadiusLG}px`}},[`${nt}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:_e.colorBgContainer}}}},[`&${nt}-right`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${_e.borderRadiusLG}px ${_e.borderRadiusLG}px 0`}},[`${nt}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:_e.colorBgContainer}}}}}}},js=_e=>{const{componentCls:nt,itemHoverColor:pn,dropdownEdgeChildVerticalPadding:Ae}=_e;return{[`${nt}-dropdown`]:Object.assign(Object.assign({},(0,So.Wf)(_e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:_e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${nt}-dropdown-menu`]:{maxHeight:_e.tabsDropdownHeight,margin:0,padding:`${Ae}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:_e.colorBgContainer,backgroundClip:"padding-box",borderRadius:_e.borderRadiusLG,outline:"none",boxShadow:_e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},So.vS),{display:"flex",alignItems:"center",minWidth:_e.tabsDropdownWidth,margin:0,padding:`${_e.paddingXXS}px ${_e.paddingSM}px`,color:_e.colorText,fontWeight:"normal",fontSize:_e.fontSize,lineHeight:_e.lineHeight,cursor:"pointer",transition:`all ${_e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:_e.marginSM},color:_e.colorTextDescription,fontSize:_e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:pn}},"&:hover":{background:_e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:_e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},ml=_e=>{const{componentCls:nt,margin:pn,colorBorderSecondary:Ae,horizontalMargin:St,verticalItemPadding:Ft,verticalItemMargin:an}=_e;return{[`${nt}-top, ${nt}-bottom`]:{flexDirection:"column",[`> ${nt}-nav, > div > ${nt}-nav`]:{margin:St,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${_e.lineWidth}px ${_e.lineType} ${Ae}`,content:"''"},[`${nt}-ink-bar`]:{height:_e.lineWidthBold,"&-animated":{transition:`width ${_e.motionDurationSlow}, left ${_e.motionDurationSlow},
|
|
|
right ${_e.motionDurationSlow}`}},[`${nt}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:_e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:_e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:_e.boxShadowTabsOverflowRight},[`&${nt}-nav-wrap-ping-left::before`]:{opacity:1},[`&${nt}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${nt}-top`]:{[`> ${nt}-nav,
|
|
|
> div > ${nt}-nav`]:{"&::before":{bottom:0},[`${nt}-ink-bar`]:{bottom:0}}},[`${nt}-bottom`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{order:1,marginTop:`${pn}px`,marginBottom:0,"&::before":{top:0},[`${nt}-ink-bar`]:{top:0}},[`> ${nt}-content-holder, > div > ${nt}-content-holder`]:{order:0}},[`${nt}-left, ${nt}-right`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{flexDirection:"column",minWidth:_e.controlHeight*1.25,[`${nt}-tab`]:{padding:Ft,textAlign:"center"},[`${nt}-tab + ${nt}-tab`]:{margin:an},[`${nt}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:_e.controlHeight},"&::before":{top:0,boxShadow:_e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:_e.boxShadowTabsOverflowBottom},[`&${nt}-nav-wrap-ping-top::before`]:{opacity:1},[`&${nt}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${nt}-ink-bar`]:{width:_e.lineWidthBold,"&-animated":{transition:`height ${_e.motionDurationSlow}, top ${_e.motionDurationSlow}`}},[`${nt}-nav-list, ${nt}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${nt}-left`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${nt}-content-holder, > div > ${nt}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${_e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${_e.lineWidth}px ${_e.lineType} ${_e.colorBorder}`},[`> ${nt}-content > ${nt}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:_e.paddingLG}}}},[`${nt}-right`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{order:1,[`${nt}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${nt}-content-holder, > div > ${nt}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-_e.lineWidth},borderRight:{_skip_check_:!0,value:`${_e.lineWidth}px ${_e.lineType} ${_e.colorBorder}`},[`> ${nt}-content > ${nt}-tabpane`]:{paddingRight:{_skip_check_:!0,value:_e.paddingLG}}}}}},Ua=_e=>{const{componentCls:nt,cardPaddingSM:pn,cardPaddingLG:Ae,horizontalItemPaddingSM:St,horizontalItemPaddingLG:Ft}=_e;return{[nt]:{"&-small":{[`> ${nt}-nav`]:{[`${nt}-tab`]:{padding:St,fontSize:_e.titleFontSizeSM}}},"&-large":{[`> ${nt}-nav`]:{[`${nt}-tab`]:{padding:Ft,fontSize:_e.titleFontSizeLG}}}},[`${nt}-card`]:{[`&${nt}-small`]:{[`> ${nt}-nav`]:{[`${nt}-tab`]:{padding:pn}},[`&${nt}-bottom`]:{[`> ${nt}-nav ${nt}-tab`]:{borderRadius:`0 0 ${_e.borderRadius}px ${_e.borderRadius}px`}},[`&${nt}-top`]:{[`> ${nt}-nav ${nt}-tab`]:{borderRadius:`${_e.borderRadius}px ${_e.borderRadius}px 0 0`}},[`&${nt}-right`]:{[`> ${nt}-nav ${nt}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${_e.borderRadius}px ${_e.borderRadius}px 0`}}},[`&${nt}-left`]:{[`> ${nt}-nav ${nt}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e.borderRadius}px 0 0 ${_e.borderRadius}px`}}}},[`&${nt}-large`]:{[`> ${nt}-nav`]:{[`${nt}-tab`]:{padding:Ae}}}}}},_s=_e=>{const{componentCls:nt,itemActiveColor:pn,itemHoverColor:Ae,iconCls:St,tabsHorizontalItemMargin:Ft,horizontalItemPadding:an,itemSelectedColor:Rt,itemColor:In}=_e,zn=`${nt}-tab`;return{[zn]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:an,fontSize:_e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:In,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:pn}},(0,So.Qy)(_e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-_e.marginXXS},marginLeft:{_skip_check_:!0,value:_e.marginXS},color:_e.colorTextDescription,fontSize:_e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${_e.motionDurationSlow}`,"&:hover":{color:_e.colorTextHeading}},"&:hover":{color:Ae},[`&${zn}-active ${zn}-btn`]:{color:Rt,textShadow:_e.tabsActiveTextShadow},[`&${zn}-disabled`]:{color:_e.colorTextDisabled,cursor:"not-allowed"},[`&${zn}-disabled ${zn}-btn, &${zn}-disabled ${nt}-remove`]:{"&:focus, &:active":{color:_e.colorTextDisabled}},[`& ${zn}-remove ${St}`]:{margin:0},[St]:{marginRight:{_skip_check_:!0,value:_e.marginSM}}},[`${zn} + ${zn}`]:{margin:{_skip_check_:!0,value:Ft}}}},ms=_e=>{const{componentCls:nt,tabsHorizontalItemMarginRTL:pn,iconCls:Ae,cardGutter:St}=_e;return{[`${nt}-rtl`]:{direction:"rtl",[`${nt}-nav`]:{[`${nt}-tab`]:{margin:{_skip_check_:!0,value:pn},[`${nt}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ae]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${_e.marginSM}px`}},[`${nt}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${_e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${_e.marginXXS}px`},[Ae]:{margin:0}}}},[`&${nt}-left`]:{[`> ${nt}-nav`]:{order:1},[`> ${nt}-content-holder`]:{order:0}},[`&${nt}-right`]:{[`> ${nt}-nav`]:{order:0},[`> ${nt}-content-holder`]:{order:1}},[`&${nt}-card${nt}-top, &${nt}-card${nt}-bottom`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab + ${nt}-tab`]:{marginRight:{_skip_check_:!0,value:St},marginLeft:{_skip_check_:!0,value:0}}}}},[`${nt}-dropdown-rtl`]:{direction:"rtl"},[`${nt}-menu-item`]:{[`${nt}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Zs=_e=>{const{componentCls:nt,tabsCardPadding:pn,cardHeight:Ae,cardGutter:St,itemHoverColor:Ft,itemActiveColor:an,colorBorderSecondary:Rt}=_e;return{[nt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,So.Wf)(_e)),{display:"flex",[`> ${nt}-nav, > div > ${nt}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${nt}-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 ${_e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${nt}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${_e.motionDurationSlow}`},[`${nt}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${nt}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${nt}-nav-more`]:{position:"relative",padding:pn,background:"transparent",border:0,color:_e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:_e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${nt}-nav-add`]:Object.assign({minWidth:Ae,marginLeft:{_skip_check_:!0,value:St},padding:`0 ${_e.paddingXS}px`,background:"transparent",border:`${_e.lineWidth}px ${_e.lineType} ${Rt}`,borderRadius:`${_e.borderRadiusLG}px ${_e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:_e.colorText,transition:`all ${_e.motionDurationSlow} ${_e.motionEaseInOut}`,"&:hover":{color:Ft},"&:active, &:focus:not(:focus-visible)":{color:an}},(0,So.Qy)(_e))},[`${nt}-extra-content`]:{flex:"none"},[`${nt}-ink-bar`]:{position:"absolute",background:_e.inkBarColor,pointerEvents:"none"}}),_s(_e)),{[`${nt}-content`]:{position:"relative",width:"100%"},[`${nt}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${nt}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${nt}-centered`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-nav-wrap`]:{[`&:not([class*='${nt}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Ks=(0,al.Z)("Tabs",_e=>{const nt=(0,Sl.TS)(_e,{tabsCardPadding:_e.cardPadding||`${(_e.cardHeight-Math.round(_e.fontSize*_e.lineHeight))/2-_e.lineWidth}px ${_e.padding}px`,dropdownEdgeChildVerticalPadding:_e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${_e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${_e.horizontalItemGutter}px`});return[Ua(nt),ms(nt),ml(nt),js(nt),Us(nt),Zs(nt),Bs(nt)]},_e=>{const nt=_e.controlHeightLG;return{zIndexPopup:_e.zIndexPopupBase+50,cardBg:_e.colorFillAlter,cardHeight:nt,cardPadding:"",cardPaddingSM:`${_e.paddingXXS*1.5}px ${_e.padding}px`,cardPaddingLG:`${_e.paddingXS}px ${_e.padding}px ${_e.paddingXXS*1.5}px`,titleFontSize:_e.fontSize,titleFontSizeLG:_e.fontSizeLG,titleFontSizeSM:_e.fontSize,inkBarColor:_e.colorPrimary,horizontalMargin:`0 0 ${_e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${_e.paddingSM}px 0`,horizontalItemPaddingSM:`${_e.paddingXS}px 0`,horizontalItemPaddingLG:`${_e.padding}px 0`,verticalItemPadding:`${_e.paddingXS}px ${_e.paddingLG}px`,verticalItemMargin:`${_e.margin}px 0 0 0`,itemColor:_e.colorText,itemSelectedColor:_e.colorPrimary,itemHoverColor:_e.colorPrimaryHover,itemActiveColor:_e.colorPrimaryActive,cardGutter:_e.marginXXS/2}}),sl=function(_e,nt){var pn={};for(var Ae in _e)Object.prototype.hasOwnProperty.call(_e,Ae)&&nt.indexOf(Ae)<0&&(pn[Ae]=_e[Ae]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Ae=Object.getOwnPropertySymbols(_e);St<Ae.length;St++)nt.indexOf(Ae[St])<0&&Object.prototype.propertyIsEnumerable.call(_e,Ae[St])&&(pn[Ae[St]]=_e[Ae[St]]);return pn};const vs=_e=>{const{type:nt,className:pn,rootClassName:Ae,size:St,onEdit:Ft,hideAdd:an,centered:Rt,addIcon:In,popupClassName:zn,children:Rn,items:Mn,animated:sn,style:Bn,indicatorSize:Tn}=_e,Kn=sl(_e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Zr,moreIcon:li=ve.createElement(Ee.Z,null)}=Kn,{direction:Gi,tabs:Oi,getPrefixCls:fa,getPopupContainer:xa}=ve.useContext(co.E_),Oa=fa("tabs",Zr),[_a,$a]=Ks(Oa);let Pa;nt==="editable-card"&&(Pa={onEdit:(Hn,ei)=>{let{key:Wi,event:Zn}=ei;Ft==null||Ft(Hn==="add"?Zn:Wi,Hn)},removeIcon:ve.createElement(te.Z,null),addIcon:In||ve.createElement(lt.Z,null),showAdd:an!==!0});const Za=fa(),Po=Ds(Mn,Rn),tn=Ms(Oa,sn),rn=(0,Ho.Z)(St),fn=Object.assign(Object.assign({},Oi==null?void 0:Oi.style),Bn);return _a(ve.createElement(xo,Object.assign({direction:Gi,getPopupContainer:xa,moreTransitionName:`${Za}-slide-up`},Kn,{items:Po,className:Ve()({[`${Oa}-${rn}`]:rn,[`${Oa}-card`]:["card","editable-card"].includes(nt),[`${Oa}-editable-card`]:nt==="editable-card",[`${Oa}-centered`]:Rt},Oi==null?void 0:Oi.className,pn,Ae,$a),popupClassName:Ve()(zn,$a),style:fn,editable:Pa,moreIcon:li,prefixCls:Oa,animated:tn,indicatorSize:Tn!=null?Tn:Oi==null?void 0:Oi.indicatorSize})))};vs.TabPane=Ro;var gs=vs},66309:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return wt}});var te=he(67294),Ee=he(73475),lt=he(94184),ct=he.n(lt),Ve=he(98787),Re=he(69760),it=he(45353),ke=he(53124),we=he(14747),at=he(45503),tt=he(67968);const ve=Ye=>{const{paddingXXS:pt,lineWidth:qe,tagPaddingHorizontal:ut,componentCls:Oe}=Ye,Ot=ut-qe,Gt=pt-qe;return{[Oe]:Object.assign(Object.assign({},(0,we.Wf)(Ye)),{display:"inline-block",height:"auto",marginInlineEnd:Ye.marginXS,paddingInline:Ot,fontSize:Ye.tagFontSize,lineHeight:Ye.tagLineHeight,whiteSpace:"nowrap",background:Ye.defaultBg,border:`${Ye.lineWidth}px ${Ye.lineType} ${Ye.colorBorder}`,borderRadius:Ye.borderRadiusSM,opacity:1,transition:`all ${Ye.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Oe}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Ye.defaultColor},[`${Oe}-close-icon`]:{marginInlineStart:Gt,color:Ye.colorTextDescription,fontSize:Ye.tagIconSize,cursor:"pointer",transition:`all ${Ye.motionDurationMid}`,"&:hover":{color:Ye.colorTextHeading}},[`&${Oe}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Ye.iconCls}-close, ${Ye.iconCls}-close:hover`]:{color:Ye.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Oe}-checkable-checked):hover`]:{color:Ye.colorPrimary,backgroundColor:Ye.colorFillSecondary},"&:active, &-checked":{color:Ye.colorTextLightSolid},"&-checked":{backgroundColor:Ye.colorPrimary,"&:hover":{backgroundColor:Ye.colorPrimaryHover}},"&:active":{backgroundColor:Ye.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Ye.iconCls} + span, > span + ${Ye.iconCls}`]:{marginInlineStart:Ot}}),[`${Oe}-borderless`]:{borderColor:"transparent",background:Ye.tagBorderlessBg}}},kt=Ye=>{const{lineWidth:pt,fontSizeIcon:qe}=Ye,ut=Ye.fontSizeSM,Oe=`${Ye.lineHeightSM*ut}px`;return(0,at.TS)(Ye,{tagFontSize:ut,tagLineHeight:Oe,tagIconSize:qe-2*pt,tagPaddingHorizontal:8,tagBorderlessBg:Ye.colorFillTertiary})},bt=Ye=>({defaultBg:Ye.colorFillQuaternary,defaultColor:Ye.colorText});var $e=(0,tt.Z)("Tag",Ye=>{const pt=kt(Ye);return ve(pt)},bt),dt=function(Ye,pt){var qe={};for(var ut in Ye)Object.prototype.hasOwnProperty.call(Ye,ut)&&pt.indexOf(ut)<0&&(qe[ut]=Ye[ut]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,ut=Object.getOwnPropertySymbols(Ye);Oe<ut.length;Oe++)pt.indexOf(ut[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Ye,ut[Oe])&&(qe[ut[Oe]]=Ye[ut[Oe]]);return qe},et=Ye=>{const{prefixCls:pt,style:qe,className:ut,checked:Oe,onChange:Ot,onClick:Gt}=Ye,un=dt(Ye,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Ge,tag:Ke}=te.useContext(ke.E_),Yt=wn=>{Ot==null||Ot(!Oe),Gt==null||Gt(wn)},Jt=Ge("tag",pt),[cn,Lt]=$e(Jt),Dt=ct()(Jt,`${Jt}-checkable`,{[`${Jt}-checkable-checked`]:Oe},Ke==null?void 0:Ke.className,ut,Lt);return cn(te.createElement("span",Object.assign({},un,{style:Object.assign(Object.assign({},qe),Ke==null?void 0:Ke.style),className:Dt,onClick:Yt})))},ft=he(98719);const Je=Ye=>(0,ft.Z)(Ye,(pt,qe)=>{let{textColor:ut,lightBorderColor:Oe,lightColor:Ot,darkColor:Gt}=qe;return{[`${Ye.componentCls}-${pt}`]:{color:ut,background:Ot,borderColor:Oe,"&-inverse":{color:Ye.colorTextLightSolid,background:Gt,borderColor:Gt},[`&${Ye.componentCls}-borderless`]:{borderColor:"transparent"}}}});var ot=(0,tt.b)(["Tag","preset"],Ye=>{const pt=kt(Ye);return Je(pt)},bt);function ht(Ye){return typeof Ye!="string"?Ye:Ye.charAt(0).toUpperCase()+Ye.slice(1)}const yt=(Ye,pt,qe)=>{const ut=ht(qe);return{[`${Ye.componentCls}-${pt}`]:{color:Ye[`color${qe}`],background:Ye[`color${ut}Bg`],borderColor:Ye[`color${ut}Border`],[`&${Ye.componentCls}-borderless`]:{borderColor:"transparent"}}}};var zt=(0,tt.b)(["Tag","status"],Ye=>{const pt=kt(Ye);return[yt(pt,"success","Success"),yt(pt,"processing","Info"),yt(pt,"error","Error"),yt(pt,"warning","Warning")]},bt),Xt=function(Ye,pt){var qe={};for(var ut in Ye)Object.prototype.hasOwnProperty.call(Ye,ut)&&pt.indexOf(ut)<0&&(qe[ut]=Ye[ut]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,ut=Object.getOwnPropertySymbols(Ye);Oe<ut.length;Oe++)pt.indexOf(ut[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Ye,ut[Oe])&&(qe[ut[Oe]]=Ye[ut[Oe]]);return qe};const Qt=(Ye,pt)=>{const{prefixCls:qe,className:ut,rootClassName:Oe,style:Ot,children:Gt,icon:un,color:Ge,onClose:Ke,closeIcon:Yt,closable:Jt,bordered:cn=!0}=Ye,Lt=Xt(Ye,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Dt,direction:wn,tag:_n}=te.useContext(ke.E_),[on,kn]=te.useState(!0);te.useEffect(()=>{"visible"in Lt&&kn(Lt.visible)},[Lt.visible]);const xn=(0,Ve.o2)(Ge),Vn=(0,Ve.yT)(Ge),er=xn||Vn,Me=Object.assign(Object.assign({backgroundColor:Ge&&!er?Ge:void 0},_n==null?void 0:_n.style),Ot),ce=Dt("tag",qe),[fe,be]=$e(ce),ge=ct()(ce,_n==null?void 0:_n.className,{[`${ce}-${Ge}`]:er,[`${ce}-has-color`]:Ge&&!er,[`${ce}-hidden`]:!on,[`${ce}-rtl`]:wn==="rtl",[`${ce}-borderless`]:!cn},ut,Oe,be),ue=yn=>{yn.stopPropagation(),Ke==null||Ke(yn),!yn.defaultPrevented&&kn(!1)},[,Xe]=(0,Re.Z)(Jt,Yt,yn=>yn===null?te.createElement(Ee.Z,{className:`${ce}-close-icon`,onClick:ue}):te.createElement("span",{className:`${ce}-close-icon`,onClick:ue},yn),null,!1),_t=typeof Lt.onClick=="function"||Gt&&Gt.type==="a",Zt=un||null,Dn=Zt?te.createElement(te.Fragment,null,Zt,Gt&&te.createElement("span",null,Gt)):Gt,An=te.createElement("span",Object.assign({},Lt,{ref:pt,className:ge,style:Me}),Dn,Xe,xn&&te.createElement(ot,{key:"preset",prefixCls:ce}),Vn&&te.createElement(zt,{key:"status",prefixCls:ce}));return fe(_t?te.createElement(it.Z,{component:"Tag"},An):An)},Ht=te.forwardRef(Qt);Ht.CheckableTag=et;var wt=Ht},48305:function(dn,vn,he){"use strict";he.d(vn,{default:function(){return ki}});var te=he(94184),Ee=he.n(te),lt=he(87462),ct=he(74902),Ve=he(1413),Re=he(97685),it=he(45987),ke=he(71002),we=he(4942),at=he(21770),tt=he(80334),ve=he(67294),kt=he(8410),bt=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))},$e=he(15105),dt=he(42550),Qe=function(We){var Ct=We.className,De=We.customizeIcon,vt=We.customizeIconProps,Mt=We.onMouseDown,Kt=We.onClick,rt=We.children,gt;return typeof De=="function"?gt=De(vt):gt=De,ve.createElement("span",{className:Ct,onMouseDown:function(jt){jt.preventDefault(),Mt&&Mt(jt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Kt,"aria-hidden":!0},gt!==void 0?gt:ve.createElement("span",{className:Ee()(Ct.split(/\s+/).map(function(xt){return"".concat(xt,"-icon")}))},rt))},et=Qe;function ft(Be,We,Ct,De,vt){var Mt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Kt=arguments.length>6?arguments[6]:void 0,rt=arguments.length>7?arguments[7]:void 0,gt=ve.useMemo(function(){if((0,ke.Z)(De)==="object")return De.clearIcon;if(vt)return vt},[De,vt]),xt=ve.useMemo(function(){return!!(!Mt&&De&&(Ct.length||Kt)&&!(rt==="combobox"&&Kt===""))},[De,Mt,Ct.length,Kt,rt]);return{allowClear:xt,clearIcon:ve.createElement(et,{className:"".concat(Be,"-clear"),onMouseDown:We,customizeIcon:gt},"\xD7")}}var Je=ve.createContext(null);function ot(){return ve.useContext(Je)}function ht(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,We=ve.useState(!1),Ct=(0,Re.Z)(We,2),De=Ct[0],vt=Ct[1],Mt=ve.useRef(null),Kt=function(){window.clearTimeout(Mt.current)};ve.useEffect(function(){return Kt},[]);var rt=function(xt,jt){Kt(),Mt.current=window.setTimeout(function(){vt(xt),jt&&jt()},Be)};return[De,rt,Kt]}function yt(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,We=ve.useRef(null),Ct=ve.useRef(null);ve.useEffect(function(){return function(){window.clearTimeout(Ct.current)}},[]);function De(vt){(vt||We.current===null)&&(We.current=vt),window.clearTimeout(Ct.current),Ct.current=window.setTimeout(function(){We.current=null},Be)}return[function(){return We.current},De]}function zt(Be,We,Ct,De){var vt=ve.useRef(null);vt.current={open:We,triggerOpen:Ct,customizedTrigger:De},ve.useEffect(function(){function Mt(Kt){var rt;if(!((rt=vt.current)!==null&&rt!==void 0&&rt.customizedTrigger)){var gt=Kt.target;gt.shadowRoot&&Kt.composed&&(gt=Kt.composedPath()[0]||gt),vt.current.open&&Be().filter(function(xt){return xt}).every(function(xt){return!xt.contains(gt)&&xt!==gt})&&vt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Mt),function(){return window.removeEventListener("mousedown",Mt)}},[])}var Xt=he(64217),Qt=he(48555);function Ht(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var wt=Ht()?ve.useLayoutEffect:ve.useEffect,Ye=function(We,Ct){var De=ve.useRef(!0);wt(function(){return We(De.current)},Ct),wt(function(){return De.current=!1,function(){De.current=!0}},[])},pt=function(We,Ct){Ye(function(De){if(!De)return We()},Ct)},qe=Ye,ut=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Oe=void 0;function Ot(Be,We){var Ct=Be.prefixCls,De=Be.invalidate,vt=Be.item,Mt=Be.renderItem,Kt=Be.responsive,rt=Be.responsiveDisabled,gt=Be.registerSize,xt=Be.itemKey,jt=Be.className,$t=Be.style,mn=Be.children,qt=Be.display,gn=Be.order,Ln=Be.component,Wn=Ln===void 0?"div":Ln,Cn=(0,it.Z)(Be,ut),sr=Kt&&!qt;function Un(Er){gt(xt,Er)}ve.useEffect(function(){return function(){Un(null)}},[]);var qn=Mt&&vt!==Oe?Mt(vt):mn,mr;De||(mr={opacity:sr?0:1,height:sr?0:Oe,overflowY:sr?"hidden":Oe,order:Kt?gn:Oe,pointerEvents:sr?"none":Oe,position:sr?"absolute":Oe});var Gn={};sr&&(Gn["aria-hidden"]=!0);var kr=ve.createElement(Wn,(0,lt.Z)({className:Ee()(!De&&Ct,jt),style:(0,Ve.Z)((0,Ve.Z)({},mr),$t)},Gn,Cn,{ref:We}),qn);return Kt&&(kr=ve.createElement(Qt.Z,{onResize:function(hr){var ar=hr.offsetWidth;Un(ar)},disabled:rt},kr)),kr}var Gt=ve.forwardRef(Ot);Gt.displayName="Item";var un=Gt;function Ge(Be){var We=ve.useRef();We.current=Be;var Ct=ve.useCallback(function(){for(var De,vt=arguments.length,Mt=new Array(vt),Kt=0;Kt<vt;Kt++)Mt[Kt]=arguments[Kt];return(De=We.current)===null||De===void 0?void 0:De.call.apply(De,[We].concat(Mt))},[]);return Ct}var Ke=he(73935),Yt=function(We){return+setTimeout(We,16)},Jt=function(We){return clearTimeout(We)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Yt=function(We){return window.requestAnimationFrame(We)},Jt=function(We){return window.cancelAnimationFrame(We)});var cn=0,Lt=new Map;function Dt(Be){Lt.delete(Be)}var wn=function(We){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;cn+=1;var De=cn;function vt(Mt){if(Mt===0)Dt(De),We();else{var Kt=Yt(function(){vt(Mt-1)});Lt.set(De,Kt)}}return vt(Ct),De};wn.cancel=function(Be){var We=Lt.get(Be);return Dt(We),Jt(We)};var _n=wn;function on(Be){if(typeof MessageChannel=="undefined")_n(Be);else{var We=new MessageChannel;We.port1.onmessage=function(){return Be()},We.port2.postMessage(void 0)}}function kn(){var Be=ve.useRef(null),We=function(De){Be.current||(Be.current=[],on(function(){(0,Ke.unstable_batchedUpdates)(function(){Be.current.forEach(function(vt){vt()}),Be.current=null})})),Be.current.push(De)};return We}function xn(Be,We){var Ct=ve.useState(We),De=(0,Re.Z)(Ct,2),vt=De[0],Mt=De[1],Kt=Ge(function(rt){Be(function(){Mt(rt)})});return[vt,Kt]}var Vn=ve.createContext(null),er=["component"],Me=["className"],ce=["className"],fe=function(We,Ct){var De=ve.useContext(Vn);if(!De){var vt=We.component,Mt=vt===void 0?"div":vt,Kt=(0,it.Z)(We,er);return ve.createElement(Mt,(0,lt.Z)({},Kt,{ref:Ct}))}var rt=De.className,gt=(0,it.Z)(De,Me),xt=We.className,jt=(0,it.Z)(We,ce);return ve.createElement(Vn.Provider,{value:null},ve.createElement(un,(0,lt.Z)({ref:Ct,className:Ee()(rt,xt)},gt,jt)))},be=ve.forwardRef(fe);be.displayName="RawItem";var ge=be,ue=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Xe="responsive",_t="invalidate";function Zt(Be){return"+ ".concat(Be.length," ...")}function Dn(Be,We){var Ct=Be.prefixCls,De=Ct===void 0?"rc-overflow":Ct,vt=Be.data,Mt=vt===void 0?[]:vt,Kt=Be.renderItem,rt=Be.renderRawItem,gt=Be.itemKey,xt=Be.itemWidth,jt=xt===void 0?10:xt,$t=Be.ssr,mn=Be.style,qt=Be.className,gn=Be.maxCount,Ln=Be.renderRest,Wn=Be.renderRawRest,Cn=Be.suffix,sr=Be.component,Un=sr===void 0?"div":sr,qn=Be.itemComponent,mr=Be.onVisibleChange,Gn=(0,it.Z)(Be,ue),kr=$t==="full",Er=kn(),hr=xn(Er,null),ar=(0,Re.Z)(hr,2),Qn=ar[0],gr=ar[1],ir=Qn||0,xr=xn(Er,new Map),Sr=(0,Re.Z)(xr,2),yr=Sr[0],rr=Sr[1],_r=xn(Er,0),Qr=(0,Re.Z)(_r,2),ea=Qr[0],Ui=Qr[1],ji=xn(Er,0),pa=(0,Re.Z)(ji,2),Bi=pa[0],Ia=pa[1],Qa=xn(Er,0),ri=(0,Re.Z)(Qa,2),Br=ri[0],Ei=ri[1],Yi=(0,ve.useState)(null),xi=(0,Re.Z)(Yi,2),la=xi[0],Ai=xi[1],$i=(0,ve.useState)(null),wa=(0,Re.Z)($i,2),za=wa[0],Xa=wa[1],Qi=ve.useMemo(function(){return za===null&&kr?Number.MAX_SAFE_INTEGER:za||0},[za,Qn]),Pi=(0,ve.useState)(!1),La=(0,Re.Z)(Pi,2),Sa=La[0],ma=La[1],ua="".concat(De,"-item"),ii=Math.max(ea,Bi),bi=gn===Xe,va=Mt.length&&bi,oa=gn===_t,Ra=va||typeof gn=="number"&&Mt.length>gn,ui=(0,ve.useMemo)(function(){var sa=Mt;return va?Qn===null&&kr?sa=Mt:sa=Mt.slice(0,Math.min(Mt.length,ir/jt)):typeof gn=="number"&&(sa=Mt.slice(0,gn)),sa},[Mt,jt,Qn,gn,va]),tr=(0,ve.useMemo)(function(){return va?Mt.slice(Qi+1):Mt.slice(ui.length)},[Mt,ui,va,Qi]),Nr=(0,ve.useCallback)(function(sa,Ur){var Ri;return typeof gt=="function"?gt(sa):(Ri=gt&&(sa==null?void 0:sa[gt]))!==null&&Ri!==void 0?Ri:Ur},[gt]),Gr=(0,ve.useCallback)(Kt||function(sa){return sa},[Kt]);function pr(sa,Ur,Ri){za===sa&&(Ur===void 0||Ur===la)||(Xa(sa),Ri||(ma(sa<Mt.length-1),mr==null||mr(sa)),Ur!==void 0&&Ai(Ur))}function Ji(sa,Ur){gr(Ur.clientWidth)}function Fa(sa,Ur){rr(function(Ri){var Jn=new Map(Ri);return Ur===null?Jn.delete(sa):Jn.set(sa,Ur),Jn})}function Mo(sa,Ur){Ia(Ur),Ui(Bi)}function ao(sa,Ur){Ei(Ur)}function Wo(sa){return yr.get(Nr(ui[sa],sa))}qe(function(){if(ir&&typeof ii=="number"&&ui){var sa=Br,Ur=ui.length,Ri=Ur-1;if(!Ur){pr(0,null);return}for(var Jn=0;Jn<Ur;Jn+=1){var Ki=Wo(Jn);if(kr&&(Ki=Ki||0),Ki===void 0){pr(Jn-1,void 0,!0);break}if(sa+=Ki,Ri===0&&sa<=ir||Jn===Ri-1&&sa+Wo(Ri)<=ir){pr(Ri,null);break}else if(sa+ii>ir){pr(Jn-1,sa-Ki-Br+Bi);break}}Cn&&Wo(0)+Br>ir&&Ai(null)}},[ir,yr,Bi,Br,Nr,ui]);var po=Sa&&!!tr.length,Ps={};la!==null&&va&&(Ps={position:"absolute",left:la,top:0});var bs={prefixCls:ua,responsive:va,component:qn,invalidate:oa},xs=rt?function(sa,Ur){var Ri=Nr(sa,Ur);return ve.createElement(Vn.Provider,{key:Ri,value:(0,Ve.Z)((0,Ve.Z)({},bs),{},{order:Ur,item:sa,itemKey:Ri,registerSize:Fa,display:Ur<=Qi})},rt(sa,Ur))}:function(sa,Ur){var Ri=Nr(sa,Ur);return ve.createElement(un,(0,lt.Z)({},bs,{order:Ur,key:Ri,item:sa,renderItem:Gr,itemKey:Ri,registerSize:Fa,display:Ur<=Qi}))},Hs,fl={order:po?Qi:Number.MAX_SAFE_INTEGER,className:"".concat(ua,"-rest"),registerSize:Mo,display:po};if(Wn)Wn&&(Hs=ve.createElement(Vn.Provider,{value:(0,Ve.Z)((0,Ve.Z)({},bs),fl)},Wn(tr)));else{var el=Ln||Zt;Hs=ve.createElement(un,(0,lt.Z)({},bs,fl),typeof el=="function"?el(tr):el)}var Hl=ve.createElement(Un,(0,lt.Z)({className:Ee()(!oa&&De,qt),style:mn,ref:We},Gn),ui.map(xs),Ra?Hs:null,Cn&&ve.createElement(un,(0,lt.Z)({},bs,{responsive:bi,responsiveDisabled:!va,order:Qi,className:"".concat(ua,"-suffix"),registerSize:ao,display:!0,style:Ps}),Cn));return bi&&(Hl=ve.createElement(Qt.Z,{onResize:Ji,disabled:!va},Hl)),Hl}var An=ve.forwardRef(Dn);An.displayName="Overflow",An.Item=ge,An.RESPONSIVE=Xe,An.INVALIDATE=_t;var yn=An,nn=yn,Ar=function(We,Ct){var De,vt,Mt=We.prefixCls,Kt=We.id,rt=We.inputElement,gt=We.disabled,xt=We.tabIndex,jt=We.autoFocus,$t=We.autoComplete,mn=We.editable,qt=We.activeDescendantId,gn=We.value,Ln=We.maxLength,Wn=We.onKeyDown,Cn=We.onMouseDown,sr=We.onChange,Un=We.onPaste,qn=We.onCompositionStart,mr=We.onCompositionEnd,Gn=We.open,kr=We.attrs,Er=rt||ve.createElement("input",null),hr=Er,ar=hr.ref,Qn=hr.props,gr=Qn.onKeyDown,ir=Qn.onChange,xr=Qn.onMouseDown,Sr=Qn.onCompositionStart,yr=Qn.onCompositionEnd,rr=Qn.style;return(0,tt.Kp)(!("maxLength"in Er.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Er=ve.cloneElement(Er,(0,Ve.Z)((0,Ve.Z)((0,Ve.Z)({type:"search"},Qn),{},{id:Kt,ref:(0,dt.sQ)(Ct,ar),disabled:gt,tabIndex:xt,autoComplete:$t||"off",autoFocus:jt,className:Ee()("".concat(Mt,"-selection-search-input"),(De=Er)===null||De===void 0||(vt=De.props)===null||vt===void 0?void 0:vt.className),role:"combobox","aria-label":"Search","aria-expanded":Gn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Kt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Kt,"_list"),"aria-activedescendant":Gn?qt:void 0},kr),{},{value:mn?gn:"",maxLength:Ln,readOnly:!mn,unselectable:mn?null:"on",style:(0,Ve.Z)((0,Ve.Z)({},rr),{},{opacity:mn?null:0}),onKeyDown:function(Qr){Wn(Qr),gr&&gr(Qr)},onMouseDown:function(Qr){Cn(Qr),xr&&xr(Qr)},onChange:function(Qr){sr(Qr),ir&&ir(Qr)},onCompositionStart:function(Qr){qn(Qr),Sr&&Sr(Qr)},onCompositionEnd:function(Qr){mr(Qr),yr&&yr(Qr)},onPaste:Un})),Er},Dr=ve.forwardRef(Ar);Dr.displayName="Input";var ln=Dr;function jn(Be){return Array.isArray(Be)?Be:Be!==void 0?[Be]:[]}var wi=typeof window!="undefined"&&window.document&&window.document.documentElement,$r=wi;function Ir(Be){return Be!=null}function Or(Be){return!Be&&Be!==0}function Ca(Be){return["string","number"].includes((0,ke.Z)(Be))}function ur(Be){var We=void 0;return Be&&(Ca(Be.title)?We=Be.title.toString():Ca(Be.label)&&(We=Be.label.toString())),We}function Yn(Be,We){$r?ve.useLayoutEffect(Be,We):ve.useEffect(Be,We)}function oi(Be){var We;return(We=Be.key)!==null&&We!==void 0?We:Be.value}var Si=function(We){We.preventDefault(),We.stopPropagation()},Ti=function(We){var Ct=We.id,De=We.prefixCls,vt=We.values,Mt=We.open,Kt=We.searchValue,rt=We.autoClearSearchValue,gt=We.inputRef,xt=We.placeholder,jt=We.disabled,$t=We.mode,mn=We.showSearch,qt=We.autoFocus,gn=We.autoComplete,Ln=We.activeDescendantId,Wn=We.tabIndex,Cn=We.removeIcon,sr=We.maxTagCount,Un=We.maxTagTextLength,qn=We.maxTagPlaceholder,mr=qn===void 0?function(Ai){return"+ ".concat(Ai.length," ...")}:qn,Gn=We.tagRender,kr=We.onToggleOpen,Er=We.onRemove,hr=We.onInputChange,ar=We.onInputPaste,Qn=We.onInputKeyDown,gr=We.onInputMouseDown,ir=We.onInputCompositionStart,xr=We.onInputCompositionEnd,Sr=ve.useRef(null),yr=(0,ve.useState)(0),rr=(0,Re.Z)(yr,2),_r=rr[0],Qr=rr[1],ea=(0,ve.useState)(!1),Ui=(0,Re.Z)(ea,2),ji=Ui[0],pa=Ui[1],Bi="".concat(De,"-selection"),Ia=Mt||$t==="multiple"&&rt===!1||$t==="tags"?Kt:"",Qa=$t==="tags"||$t==="multiple"&&rt===!1||mn&&(Mt||ji);Yn(function(){Qr(Sr.current.scrollWidth)},[Ia]);function ri(Ai,$i,wa,za,Xa){return ve.createElement("span",{className:Ee()("".concat(Bi,"-item"),(0,we.Z)({},"".concat(Bi,"-item-disabled"),wa)),title:ur(Ai)},ve.createElement("span",{className:"".concat(Bi,"-item-content")},$i),za&&ve.createElement(et,{className:"".concat(Bi,"-item-remove"),onMouseDown:Si,onClick:Xa,customizeIcon:Cn},"\xD7"))}function Br(Ai,$i,wa,za,Xa){var Qi=function(La){Si(La),kr(!Mt)};return ve.createElement("span",{onMouseDown:Qi},Gn({label:$i,value:Ai,disabled:wa,closable:za,onClose:Xa}))}function Ei(Ai){var $i=Ai.disabled,wa=Ai.label,za=Ai.value,Xa=!jt&&!$i,Qi=wa;if(typeof Un=="number"&&(typeof wa=="string"||typeof wa=="number")){var Pi=String(Qi);Pi.length>Un&&(Qi="".concat(Pi.slice(0,Un),"..."))}var La=function(ma){ma&&ma.stopPropagation(),Er(Ai)};return typeof Gn=="function"?Br(za,Qi,$i,Xa,La):ri(Ai,Qi,$i,Xa,La)}function Yi(Ai){var $i=typeof mr=="function"?mr(Ai):mr;return ri({title:$i},$i,!1)}var xi=ve.createElement("div",{className:"".concat(Bi,"-search"),style:{width:_r},onFocus:function(){pa(!0)},onBlur:function(){pa(!1)}},ve.createElement(ln,{ref:gt,open:Mt,prefixCls:De,id:Ct,inputElement:null,disabled:jt,autoFocus:qt,autoComplete:gn,editable:Qa,activeDescendantId:Ln,value:Ia,onKeyDown:Qn,onMouseDown:gr,onChange:hr,onPaste:ar,onCompositionStart:ir,onCompositionEnd:xr,tabIndex:Wn,attrs:(0,Xt.Z)(We,!0)}),ve.createElement("span",{ref:Sr,className:"".concat(Bi,"-search-mirror"),"aria-hidden":!0},Ia,"\xA0")),la=ve.createElement(nn,{prefixCls:"".concat(Bi,"-overflow"),data:vt,renderItem:Ei,renderRest:Yi,suffix:xi,itemKey:oi,maxCount:sr});return ve.createElement(ve.Fragment,null,la,!vt.length&&!Ia&&ve.createElement("span",{className:"".concat(Bi,"-placeholder")},xt))},Ni=Ti,Fi=function(We){var Ct=We.inputElement,De=We.prefixCls,vt=We.id,Mt=We.inputRef,Kt=We.disabled,rt=We.autoFocus,gt=We.autoComplete,xt=We.activeDescendantId,jt=We.mode,$t=We.open,mn=We.values,qt=We.placeholder,gn=We.tabIndex,Ln=We.showSearch,Wn=We.searchValue,Cn=We.activeValue,sr=We.maxLength,Un=We.onInputKeyDown,qn=We.onInputMouseDown,mr=We.onInputChange,Gn=We.onInputPaste,kr=We.onInputCompositionStart,Er=We.onInputCompositionEnd,hr=We.title,ar=ve.useState(!1),Qn=(0,Re.Z)(ar,2),gr=Qn[0],ir=Qn[1],xr=jt==="combobox",Sr=xr||Ln,yr=mn[0],rr=Wn||"";xr&&Cn&&!gr&&(rr=Cn),ve.useEffect(function(){xr&&ir(!1)},[xr,Cn]);var _r=jt!=="combobox"&&!$t&&!Ln?!1:!!rr,Qr=hr===void 0?ur(yr):hr,ea=function(){if(yr)return null;var ji=_r?{visibility:"hidden"}:void 0;return ve.createElement("span",{className:"".concat(De,"-selection-placeholder"),style:ji},qt)};return ve.createElement(ve.Fragment,null,ve.createElement("span",{className:"".concat(De,"-selection-search")},ve.createElement(ln,{ref:Mt,prefixCls:De,id:vt,open:$t,inputElement:Ct,disabled:Kt,autoFocus:rt,autoComplete:gt,editable:Sr,activeDescendantId:xt,value:rr,onKeyDown:Un,onMouseDown:qn,onChange:function(ji){ir(!0),mr(ji)},onPaste:Gn,onCompositionStart:kr,onCompositionEnd:Er,tabIndex:gn,attrs:(0,Xt.Z)(We,!0),maxLength:xr?sr:void 0})),!xr&&yr?ve.createElement("span",{className:"".concat(De,"-selection-item"),title:Qr,style:_r?{visibility:"hidden"}:void 0},yr.label):null,ea())},Wr=Fi;function qr(Be){return![$e.Z.ESC,$e.Z.SHIFT,$e.Z.BACKSPACE,$e.Z.TAB,$e.Z.WIN_KEY,$e.Z.ALT,$e.Z.META,$e.Z.WIN_KEY_RIGHT,$e.Z.CTRL,$e.Z.SEMICOLON,$e.Z.EQUALS,$e.Z.CAPS_LOCK,$e.Z.CONTEXT_MENU,$e.Z.F1,$e.Z.F2,$e.Z.F3,$e.Z.F4,$e.Z.F5,$e.Z.F6,$e.Z.F7,$e.Z.F8,$e.Z.F9,$e.Z.F10,$e.Z.F11,$e.Z.F12].includes(Be)}var Ta=function(We,Ct){var De=(0,ve.useRef)(null),vt=(0,ve.useRef)(!1),Mt=We.prefixCls,Kt=We.open,rt=We.mode,gt=We.showSearch,xt=We.tokenWithEnter,jt=We.autoClearSearchValue,$t=We.onSearch,mn=We.onSearchSubmit,qt=We.onToggleOpen,gn=We.onInputKeyDown,Ln=We.domRef;ve.useImperativeHandle(Ct,function(){return{focus:function(){De.current.focus()},blur:function(){De.current.blur()}}});var Wn=yt(0),Cn=(0,Re.Z)(Wn,2),sr=Cn[0],Un=Cn[1],qn=function(rr){var _r=rr.which;(_r===$e.Z.UP||_r===$e.Z.DOWN)&&rr.preventDefault(),gn&&gn(rr),_r===$e.Z.ENTER&&rt==="tags"&&!vt.current&&!Kt&&(mn==null||mn(rr.target.value)),qr(_r)&&qt(!0)},mr=function(){Un(!0)},Gn=(0,ve.useRef)(null),kr=function(rr){$t(rr,!0,vt.current)!==!1&&qt(!0)},Er=function(){vt.current=!0},hr=function(rr){vt.current=!1,rt!=="combobox"&&kr(rr.target.value)},ar=function(rr){var _r=rr.target.value;if(xt&&Gn.current&&/[\r\n]/.test(Gn.current)){var Qr=Gn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_r=_r.replace(Qr,Gn.current)}Gn.current=null,kr(_r)},Qn=function(rr){var _r=rr.clipboardData,Qr=_r.getData("text");Gn.current=Qr},gr=function(rr){var _r=rr.target;if(_r!==De.current){var Qr=document.body.style.msTouchAction!==void 0;Qr?setTimeout(function(){De.current.focus()}):De.current.focus()}},ir=function(rr){var _r=sr();rr.target!==De.current&&!_r&&rt!=="combobox"&&rr.preventDefault(),(rt!=="combobox"&&(!gt||!_r)||!Kt)&&(Kt&&jt!==!1&&$t("",!0,!1),qt())},xr={inputRef:De,onInputKeyDown:qn,onInputMouseDown:mr,onInputChange:ar,onInputPaste:Qn,onInputCompositionStart:Er,onInputCompositionEnd:hr},Sr=rt==="multiple"||rt==="tags"?ve.createElement(Ni,(0,lt.Z)({},We,xr)):ve.createElement(Wr,(0,lt.Z)({},We,xr));return ve.createElement("div",{ref:Ln,className:"".concat(Mt,"-selector"),onClick:gr,onMouseDown:ir},Sr)},Da=ve.forwardRef(Ta);Da.displayName="Selector";var Tr=Da,_i=he(62709),jr=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],di=function(We){var Ct=We===!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"}}},Lo=function(We,Ct){var De=We.prefixCls,vt=We.disabled,Mt=We.visible,Kt=We.children,rt=We.popupElement,gt=We.animation,xt=We.transitionName,jt=We.dropdownStyle,$t=We.dropdownClassName,mn=We.direction,qt=mn===void 0?"ltr":mn,gn=We.placement,Ln=We.builtinPlacements,Wn=We.dropdownMatchSelectWidth,Cn=We.dropdownRender,sr=We.dropdownAlign,Un=We.getPopupContainer,qn=We.empty,mr=We.getTriggerDOMNode,Gn=We.onPopupVisibleChange,kr=We.onPopupMouseEnter,Er=(0,it.Z)(We,jr),hr="".concat(De,"-dropdown"),ar=rt;Cn&&(ar=Cn(rt));var Qn=ve.useMemo(function(){return Ln||di(Wn)},[Ln,Wn]),gr=gt?"".concat(hr,"-").concat(gt):xt,ir=typeof Wn=="number",xr=ve.useMemo(function(){return ir?null:Wn===!1?"minWidth":"width"},[Wn,ir]),Sr=jt;ir&&(Sr=(0,Ve.Z)((0,Ve.Z)({},Sr),{},{width:Wn}));var yr=ve.useRef(null);return ve.useImperativeHandle(Ct,function(){return{getPopupElement:function(){return yr.current}}}),ve.createElement(_i.Z,(0,lt.Z)({},Er,{showAction:Gn?["click"]:[],hideAction:Gn?["click"]:[],popupPlacement:gn||(qt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Qn,prefixCls:hr,popupTransitionName:gr,popup:ve.createElement("div",{ref:yr,onMouseEnter:kr},ar),stretch:xr,popupAlign:sr,popupVisible:Mt,getPopupContainer:Un,popupClassName:Ee()($t,(0,we.Z)({},"".concat(hr,"-empty"),qn)),popupStyle:Sr,getTriggerDOMNode:mr,onPopupVisibleChange:Gn}),Kt)},ro=ve.forwardRef(Lo);ro.displayName="SelectTrigger";var Hi=ro,Ko=he(84506);function Zo(Be,We){var Ct=Be.key,De;return"value"in Be&&(De=Be.value),Ct!=null?Ct:De!==void 0?De:"rc-index-key-".concat(We)}function zi(Be,We){var Ct=Be||{},De=Ct.label,vt=Ct.value,Mt=Ct.options,Kt=Ct.groupLabel,rt=De||(We?"children":"label");return{label:rt,value:vt||"value",options:Mt||"options",groupLabel:Kt||rt}}function Pr(Be){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ct=We.fieldNames,De=We.childrenAsData,vt=[],Mt=zi(Ct,!1),Kt=Mt.label,rt=Mt.value,gt=Mt.options,xt=Mt.groupLabel;function jt($t,mn){$t.forEach(function(qt){if(mn||!(gt in qt)){var gn=qt[rt];vt.push({key:Zo(qt,vt.length),groupOption:mn,data:qt,label:qt[Kt],value:gn})}else{var Ln=qt[xt];Ln===void 0&&De&&(Ln=qt.label),vt.push({key:Zo(qt,vt.length),group:!0,data:qt,label:Ln}),jt(qt[gt],!0)}})}return jt(Be,!1),vt}function ta(Be){var We=(0,Ve.Z)({},Be);return"props"in We||Object.defineProperty(We,"props",{get:function(){return(0,tt.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),We}}),We}function Wa(Be,We){if(!We||!We.length)return null;var Ct=!1;function De(Mt,Kt){var rt=(0,Ko.Z)(Kt),gt=rt[0],xt=rt.slice(1);if(!gt)return[Mt];var jt=Mt.split(gt);return Ct=Ct||jt.length>1,jt.reduce(function($t,mn){return[].concat((0,ct.Z)($t),(0,ct.Z)(De(mn,xt)))},[]).filter(function($t){return $t})}var vt=De(Be,We);return Ct?vt:null}var yo=["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"],Eo=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function bo(Be){return Be==="tags"||Be==="multiple"}var rs=ve.forwardRef(function(Be,We){var Ct,De,vt=Be.id,Mt=Be.prefixCls,Kt=Be.className,rt=Be.showSearch,gt=Be.tagRender,xt=Be.direction,jt=Be.omitDomProps,$t=Be.displayValues,mn=Be.onDisplayValuesChange,qt=Be.emptyOptions,gn=Be.notFoundContent,Ln=gn===void 0?"Not Found":gn,Wn=Be.onClear,Cn=Be.mode,sr=Be.disabled,Un=Be.loading,qn=Be.getInputElement,mr=Be.getRawInputElement,Gn=Be.open,kr=Be.defaultOpen,Er=Be.onDropdownVisibleChange,hr=Be.activeValue,ar=Be.onActiveValueChange,Qn=Be.activeDescendantId,gr=Be.searchValue,ir=Be.autoClearSearchValue,xr=Be.onSearch,Sr=Be.onSearchSplit,yr=Be.tokenSeparators,rr=Be.allowClear,_r=Be.suffixIcon,Qr=Be.clearIcon,ea=Be.OptionList,Ui=Be.animation,ji=Be.transitionName,pa=Be.dropdownStyle,Bi=Be.dropdownClassName,Ia=Be.dropdownMatchSelectWidth,Qa=Be.dropdownRender,ri=Be.dropdownAlign,Br=Be.placement,Ei=Be.builtinPlacements,Yi=Be.getPopupContainer,xi=Be.showAction,la=xi===void 0?[]:xi,Ai=Be.onFocus,$i=Be.onBlur,wa=Be.onKeyUp,za=Be.onKeyDown,Xa=Be.onMouseDown,Qi=(0,it.Z)(Be,yo),Pi=bo(Cn),La=(rt!==void 0?rt:Pi)||Cn==="combobox",Sa=(0,Ve.Z)({},Qi);Eo.forEach(function(qa){delete Sa[qa]}),jt==null||jt.forEach(function(qa){delete Sa[qa]});var ma=ve.useState(!1),ua=(0,Re.Z)(ma,2),ii=ua[0],bi=ua[1];ve.useEffect(function(){bi(bt())},[]);var va=ve.useRef(null),oa=ve.useRef(null),Ra=ve.useRef(null),ui=ve.useRef(null),tr=ve.useRef(null),Nr=ht(),Gr=(0,Re.Z)(Nr,3),pr=Gr[0],Ji=Gr[1],Fa=Gr[2];ve.useImperativeHandle(We,function(){var qa,gi;return{focus:(qa=ui.current)===null||qa===void 0?void 0:qa.focus,blur:(gi=ui.current)===null||gi===void 0?void 0:gi.blur,scrollTo:function(tl){var hl;return(hl=tr.current)===null||hl===void 0?void 0:hl.scrollTo(tl)}}});var Mo=ve.useMemo(function(){var qa;if(Cn!=="combobox")return gr;var gi=(qa=$t[0])===null||qa===void 0?void 0:qa.value;return typeof gi=="string"||typeof gi=="number"?String(gi):""},[gr,Cn,$t]),ao=Cn==="combobox"&&typeof qn=="function"&&qn()||null,Wo=typeof mr=="function"&&mr(),po=(0,dt.x1)(oa,Wo==null||(Ct=Wo.props)===null||Ct===void 0?void 0:Ct.ref),Ps=ve.useState(!1),bs=(0,Re.Z)(Ps,2),xs=bs[0],Hs=bs[1];(0,kt.Z)(function(){Hs(!0)},[]);var fl=(0,at.Z)(!1,{defaultValue:kr,value:Gn}),el=(0,Re.Z)(fl,2),Hl=el[0],sa=el[1],Ur=xs?Hl:!1,Ri=!Ln&&qt;(sr||Ri&&Ur&&Cn==="combobox")&&(Ur=!1);var Jn=Ri?!1:Ur,Ki=ve.useCallback(function(qa){var gi=qa!==void 0?qa:!Ur;sr||(sa(gi),Ur!==gi&&(Er==null||Er(gi)))},[sr,Ur,sa,Er]),Do=ve.useMemo(function(){return(yr||[]).some(function(qa){return[`
|
|
|
`,`\r
|
|
|
`].includes(qa)})},[yr]),No=function(gi,so,tl){var hl=!0,Ss=gi;ar==null||ar(null);var vu=tl?null:Wa(gi,yr);return Cn!=="combobox"&&vu&&(Ss="",Sr==null||Sr(vu),Ki(!1),hl=!1),xr&&Mo!==Ss&&xr(Ss,{source:so?"typing":"effect"}),hl},$o=function(gi){!gi||!gi.trim()||xr(gi,{source:"submit"})};ve.useEffect(function(){!Ur&&!Pi&&Cn!=="combobox"&&No("",!1,!1)},[Ur]),ve.useEffect(function(){Hl&&sr&&sa(!1),sr&&Ji(!1)},[sr]);var Oo=yt(),kl=(0,Re.Z)(Oo,2),ws=kl[0],Yl=kl[1],to=function(gi){var so=ws(),tl=gi.which;if(tl===$e.Z.ENTER&&(Cn!=="combobox"&&gi.preventDefault(),Ur||Ki(!0)),Yl(!!Mo),tl===$e.Z.BACKSPACE&&!so&&Pi&&!Mo&&$t.length){for(var hl=(0,ct.Z)($t),Ss=null,vu=hl.length-1;vu>=0;vu-=1){var es=hl[vu];if(!es.disabled){hl.splice(vu,1),Ss=es;break}}Ss&&mn(hl,{type:"remove",values:[Ss]})}for(var Au=arguments.length,Vu=new Array(Au>1?Au-1:0),Uu=1;Uu<Au;Uu++)Vu[Uu-1]=arguments[Uu];if(Ur&&tr.current){var Fc;(Fc=tr.current).onKeyDown.apply(Fc,[gi].concat(Vu))}za==null||za.apply(void 0,[gi].concat(Vu))},ca=function(gi){for(var so=arguments.length,tl=new Array(so>1?so-1:0),hl=1;hl<so;hl++)tl[hl-1]=arguments[hl];if(Ur&&tr.current){var Ss;(Ss=tr.current).onKeyUp.apply(Ss,[gi].concat(tl))}wa==null||wa.apply(void 0,[gi].concat(tl))},mo=function(gi){var so=$t.filter(function(tl){return tl!==gi});mn(so,{type:"remove",values:[gi]})},no=ve.useRef(!1),as=function(){Ji(!0),sr||(Ai&&!no.current&&Ai.apply(void 0,arguments),la.includes("focus")&&Ki(!0)),no.current=!0},us=function(){Ji(!1,function(){no.current=!1,Ki(!1)}),!sr&&(Mo&&(Cn==="tags"?xr(Mo,{source:"submit"}):Cn==="multiple"&&xr("",{source:"blur"})),$i&&$i.apply(void 0,arguments))},Mi=[];ve.useEffect(function(){return function(){Mi.forEach(function(qa){return clearTimeout(qa)}),Mi.splice(0,Mi.length)}},[]);var na=function(gi){var so,tl=gi.target,hl=(so=Ra.current)===null||so===void 0?void 0:so.getPopupElement();if(hl&&hl.contains(tl)){var Ss=setTimeout(function(){var Vu=Mi.indexOf(Ss);if(Vu!==-1&&Mi.splice(Vu,1),Fa(),!ii&&!hl.contains(document.activeElement)){var Uu;(Uu=ui.current)===null||Uu===void 0||Uu.focus()}});Mi.push(Ss)}for(var vu=arguments.length,es=new Array(vu>1?vu-1:0),Au=1;Au<vu;Au++)es[Au-1]=arguments[Au];Xa==null||Xa.apply(void 0,[gi].concat(es))},oo=ve.useState({}),os=(0,Re.Z)(oo,2),zo=os[1];function Is(){zo({})}var Qo;Wo&&(Qo=function(gi){Ki(gi)}),zt(function(){var qa;return[va.current,(qa=Ra.current)===null||qa===void 0?void 0:qa.getPopupElement()]},Jn,Ki,!!Wo);var zl=ve.useMemo(function(){return(0,Ve.Z)((0,Ve.Z)({},Be),{},{notFoundContent:Ln,open:Ur,triggerOpen:Jn,id:vt,showSearch:La,multiple:Pi,toggleOpen:Ki})},[Be,Ln,Jn,Ur,vt,La,Pi,Ki]),Ml=!!_r||Un,Ts;Ml&&(Ts=ve.createElement(et,{className:Ee()("".concat(Mt,"-arrow"),(0,we.Z)({},"".concat(Mt,"-arrow-loading"),Un)),customizeIcon:_r,customizeIconProps:{loading:Un,searchValue:Mo,open:Ur,focused:pr,showSearch:La}}));var Ns=function(){var gi;Wn==null||Wn(),(gi=ui.current)===null||gi===void 0||gi.focus(),mn([],{type:"clear",values:$t}),No("",!1,!1)},lu=ft(Mt,Ns,$t,rr,Qr,sr,Mo,Cn),cc=lu.allowClear,Wu=lu.clearIcon,ud=ve.createElement(ea,{ref:tr}),cd=Ee()(Mt,Kt,(De={},(0,we.Z)(De,"".concat(Mt,"-focused"),pr),(0,we.Z)(De,"".concat(Mt,"-multiple"),Pi),(0,we.Z)(De,"".concat(Mt,"-single"),!Pi),(0,we.Z)(De,"".concat(Mt,"-allow-clear"),rr),(0,we.Z)(De,"".concat(Mt,"-show-arrow"),Ml),(0,we.Z)(De,"".concat(Mt,"-disabled"),sr),(0,we.Z)(De,"".concat(Mt,"-loading"),Un),(0,we.Z)(De,"".concat(Mt,"-open"),Ur),(0,we.Z)(De,"".concat(Mt,"-customize-input"),ao),(0,we.Z)(De,"".concat(Mt,"-show-search"),La),De)),dc=ve.createElement(Hi,{ref:Ra,disabled:sr,prefixCls:Mt,visible:Jn,popupElement:ud,animation:Ui,transitionName:ji,dropdownStyle:pa,dropdownClassName:Bi,direction:xt,dropdownMatchSelectWidth:Ia,dropdownRender:Qa,dropdownAlign:ri,placement:Br,builtinPlacements:Ei,getPopupContainer:Yi,empty:qt,getTriggerDOMNode:function(){return oa.current},onPopupVisibleChange:Qo,onPopupMouseEnter:Is},Wo?ve.cloneElement(Wo,{ref:po}):ve.createElement(Tr,(0,lt.Z)({},Be,{domRef:oa,prefixCls:Mt,inputElement:ao,ref:ui,id:vt,showSearch:La,autoClearSearchValue:ir,mode:Cn,activeDescendantId:Qn,tagRender:gt,values:$t,open:Ur,onToggleOpen:Ki,activeValue:hr,searchValue:Mo,onSearch:No,onSearchSubmit:$o,onRemove:mo,tokenWithEnter:Do}))),Su;return Wo?Su=dc:Su=ve.createElement("div",(0,lt.Z)({className:cd},Sa,{ref:va,onMouseDown:na,onKeyDown:to,onKeyUp:ca,onFocus:as,onBlur:us}),pr&&!Ur&&ve.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat($t.map(function(qa){var gi=qa.label,so=qa.value;return["number","string"].includes((0,ke.Z)(gi))?gi:so}).join(", "))),dc,Ts,cc&&Wu),ve.createElement(Je.Provider,{value:zl},Su)}),fo=rs,ka=function(Be,We){var Ct=ve.useRef({values:new Map,options:new Map}),De=ve.useMemo(function(){var Mt=Ct.current,Kt=Mt.values,rt=Mt.options,gt=Be.map(function($t){if($t.label===void 0){var mn;return(0,Ve.Z)((0,Ve.Z)({},$t),{},{label:(mn=Kt.get($t.value))===null||mn===void 0?void 0:mn.label})}return $t}),xt=new Map,jt=new Map;return gt.forEach(function($t){xt.set($t.value,$t),jt.set($t.value,We.get($t.value)||rt.get($t.value))}),Ct.current.values=xt,Ct.current.options=jt,gt},[Be,We]),vt=ve.useCallback(function(Mt){return We.get(Mt)||Ct.current.options.get(Mt)},[We]);return[De,vt]};function mi(Be,We){return jn(Be).join("").toUpperCase().includes(We)}var Fo=function(Be,We,Ct,De,vt){return ve.useMemo(function(){if(!Ct||De===!1)return Be;var Mt=We.options,Kt=We.label,rt=We.value,gt=[],xt=typeof De=="function",jt=Ct.toUpperCase(),$t=xt?De:function(qt,gn){return vt?mi(gn[vt],jt):gn[Mt]?mi(gn[Kt!=="children"?Kt:"label"],jt):mi(gn[rt],jt)},mn=xt?function(qt){return ta(qt)}:function(qt){return qt};return Be.forEach(function(qt){if(qt[Mt]){var gn=$t(Ct,mn(qt));if(gn)gt.push(qt);else{var Ln=qt[Mt].filter(function(Wn){return $t(Ct,mn(Wn))});Ln.length&>.push((0,Ve.Z)((0,Ve.Z)({},qt),{},(0,we.Z)({},Mt,Ln)))}return}$t(Ct,mn(qt))&>.push(qt)}),gt},[Be,De,vt,Ct,We])},Xo=he(98924),Ja=0,Na=(0,Xo.Z)();function Rs(){var Be;return Na?(Be=Ja,Ja+=1):Be="TEST_OR_SSR",Be}function io(Be){var We=ve.useState(),Ct=(0,Re.Z)(We,2),De=Ct[0],vt=Ct[1];return ve.useEffect(function(){vt("rc_select_".concat(Rs()))},[]),Be||De}var lo=he(50344),cr=["children","value"],Xi=["children"];function br(Be){var We=Be,Ct=We.key,De=We.props,vt=De.children,Mt=De.value,Kt=(0,it.Z)(De,cr);return(0,Ve.Z)({key:Ct,value:Mt!==void 0?Mt:Ct,children:vt},Kt)}function Cl(Be){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,lo.Z)(Be).map(function(Ct,De){if(!ve.isValidElement(Ct)||!Ct.type)return null;var vt=Ct,Mt=vt.type.isSelectOptGroup,Kt=vt.key,rt=vt.props,gt=rt.children,xt=(0,it.Z)(rt,Xi);return We||!Mt?br(Ct):(0,Ve.Z)((0,Ve.Z)({key:"__RC_SELECT_GRP__".concat(Kt===null?De:Kt,"__"),label:Kt},xt),{},{options:Cl(gt)})}).filter(function(Ct){return Ct})}function fs(Be,We,Ct,De,vt){return ve.useMemo(function(){var Mt=Be,Kt=!Be;Kt&&(Mt=Cl(We));var rt=new Map,gt=new Map,xt=function(mn,qt,gn){gn&&typeof gn=="string"&&mn.set(qt[gn],qt)};function jt($t){for(var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qt=0;qt<$t.length;qt+=1){var gn=$t[qt];!gn[Ct.options]||mn?(rt.set(gn[Ct.value],gn),xt(gt,gn,Ct.label),xt(gt,gn,De),xt(gt,gn,vt)):jt(gn[Ct.options],!0)}}return jt(Mt),{options:Mt,valueOptions:rt,labelOptions:gt}},[Be,We,Ct,De,vt])}function ho(Be){var We=ve.useRef();We.current=Be;var Ct=ve.useCallback(function(){return We.current.apply(We,arguments)},[]);return Ct}var Ll=function(){return null};Ll.isSelectOptGroup=!0;var Ma=Ll,El=function(){return null};El.isSelectOption=!0;var Xn=El,Go=he(56982),hs=he(98423),Ws=he(73299),xo=ve.createContext(null),co=xo;function Ho(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ps=["disabled","title","children","style","className"];function Ro(Be){return typeof Be=="string"||typeof Be=="number"}var qo=function(We,Ct){var De=ot(),vt=De.prefixCls,Mt=De.id,Kt=De.open,rt=De.multiple,gt=De.mode,xt=De.searchValue,jt=De.toggleOpen,$t=De.notFoundContent,mn=De.onPopupScroll,qt=ve.useContext(co),gn=qt.flattenOptions,Ln=qt.onActiveValue,Wn=qt.defaultActiveFirstOption,Cn=qt.onSelect,sr=qt.menuItemSelectedIcon,Un=qt.rawValues,qn=qt.fieldNames,mr=qt.virtual,Gn=qt.direction,kr=qt.listHeight,Er=qt.listItemHeight,hr="".concat(vt,"-item"),ar=(0,Go.Z)(function(){return gn},[Kt,gn],function(ri,Br){return Br[0]&&ri[1]!==Br[1]}),Qn=ve.useRef(null),gr=function(Br){Br.preventDefault()},ir=function(Br){Qn.current&&Qn.current.scrollTo(typeof Br=="number"?{index:Br}:Br)},xr=function(Br){for(var Ei=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Yi=ar.length,xi=0;xi<Yi;xi+=1){var la=(Br+xi*Ei+Yi)%Yi,Ai=ar[la],$i=Ai.group,wa=Ai.data;if(!$i&&!wa.disabled)return la}return-1},Sr=ve.useState(function(){return xr(0)}),yr=(0,Re.Z)(Sr,2),rr=yr[0],_r=yr[1],Qr=function(Br){var Ei=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;_r(Br);var Yi={source:Ei?"keyboard":"mouse"},xi=ar[Br];if(!xi){Ln(null,-1,Yi);return}Ln(xi.value,Br,Yi)};(0,ve.useEffect)(function(){Qr(Wn!==!1?xr(0):-1)},[ar.length,xt]);var ea=ve.useCallback(function(ri){return Un.has(ri)&>!=="combobox"},[gt,(0,ct.Z)(Un).toString(),Un.size]);(0,ve.useEffect)(function(){var ri=setTimeout(function(){if(!rt&&Kt&&Un.size===1){var Ei=Array.from(Un)[0],Yi=ar.findIndex(function(xi){var la=xi.data;return la.value===Ei});Yi!==-1&&(Qr(Yi),ir(Yi))}});if(Kt){var Br;(Br=Qn.current)===null||Br===void 0||Br.scrollTo(void 0)}return function(){return clearTimeout(ri)}},[Kt,xt,gn.length]);var Ui=function(Br){Br!==void 0&&Cn(Br,{selected:!Un.has(Br)}),rt||jt(!1)};if(ve.useImperativeHandle(Ct,function(){return{onKeyDown:function(Br){var Ei=Br.which,Yi=Br.ctrlKey;switch(Ei){case $e.Z.N:case $e.Z.P:case $e.Z.UP:case $e.Z.DOWN:{var xi=0;if(Ei===$e.Z.UP?xi=-1:Ei===$e.Z.DOWN?xi=1:Ho()&&Yi&&(Ei===$e.Z.N?xi=1:Ei===$e.Z.P&&(xi=-1)),xi!==0){var la=xr(rr+xi,xi);ir(la),Qr(la,!0)}break}case $e.Z.ENTER:{var Ai=ar[rr];Ai&&!Ai.data.disabled?Ui(Ai.value):Ui(void 0),Kt&&Br.preventDefault();break}case $e.Z.ESC:jt(!1),Kt&&Br.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Br){ir(Br)}}}),ar.length===0)return ve.createElement("div",{role:"listbox",id:"".concat(Mt,"_list"),className:"".concat(hr,"-empty"),onMouseDown:gr},$t);var ji=Object.keys(qn).map(function(ri){return qn[ri]}),pa=function(Br){return Br.label};function Bi(ri,Br){var Ei=ri.group;return{role:Ei?"presentation":"option",id:"".concat(Mt,"_list_").concat(Br)}}var Ia=function(Br){var Ei=ar[Br];if(!Ei)return null;var Yi=Ei.data||{},xi=Yi.value,la=Ei.group,Ai=(0,Xt.Z)(Yi,!0),$i=pa(Ei);return Ei?ve.createElement("div",(0,lt.Z)({"aria-label":typeof $i=="string"&&!la?$i:null},Ai,{key:Br},Bi(Ei,Br),{"aria-selected":ea(xi)}),xi):null},Qa={role:"listbox",id:"".concat(Mt,"_list")};return ve.createElement(ve.Fragment,null,mr&&ve.createElement("div",(0,lt.Z)({},Qa,{style:{height:0,width:0,overflow:"hidden"}}),Ia(rr-1),Ia(rr),Ia(rr+1)),ve.createElement(Ws.Z,{itemKey:"key",ref:Qn,data:ar,height:kr,itemHeight:Er,fullHeight:!1,onMouseDown:gr,onScroll:mn,virtual:mr,direction:Gn,innerProps:mr?null:Qa},function(ri,Br){var Ei,Yi=ri.group,xi=ri.groupOption,la=ri.data,Ai=ri.label,$i=ri.value,wa=la.key;if(Yi){var za,Xa=(za=la.title)!==null&&za!==void 0?za:Ro(Ai)?Ai.toString():void 0;return ve.createElement("div",{className:Ee()(hr,"".concat(hr,"-group")),title:Xa},Ai!==void 0?Ai:wa)}var Qi=la.disabled,Pi=la.title,La=la.children,Sa=la.style,ma=la.className,ua=(0,it.Z)(la,ps),ii=(0,hs.Z)(ua,ji),bi=ea($i),va="".concat(hr,"-option"),oa=Ee()(hr,va,ma,(Ei={},(0,we.Z)(Ei,"".concat(va,"-grouped"),xi),(0,we.Z)(Ei,"".concat(va,"-active"),rr===Br&&!Qi),(0,we.Z)(Ei,"".concat(va,"-disabled"),Qi),(0,we.Z)(Ei,"".concat(va,"-selected"),bi),Ei)),Ra=pa(ri),ui=!sr||typeof sr=="function"||bi,tr=typeof Ra=="number"?Ra:Ra||$i,Nr=Ro(tr)?tr.toString():void 0;return Pi!==void 0&&(Nr=Pi),ve.createElement("div",(0,lt.Z)({},(0,Xt.Z)(ii),mr?{}:Bi(ri,Br),{"aria-selected":bi,className:oa,title:Nr,onMouseMove:function(){rr===Br||Qi||Qr(Br)},onClick:function(){Qi||Ui($i)},style:Sa}),ve.createElement("div",{className:"".concat(va,"-content")},tr),ve.isValidElement(sr)||bi,ui&&ve.createElement(et,{className:"".concat(hr,"-option-state"),customizeIcon:sr,customizeIconProps:{isSelected:bi}},bi?"\u2713":null))}))},Va=ve.forwardRef(qo);Va.displayName="OptionList";var Ms=Va;function Vl(Be){var We=Be.mode,Ct=Be.options,De=Be.children,vt=Be.backfill,Mt=Be.allowClear,Kt=Be.placeholder,rt=Be.getInputElement,gt=Be.showSearch,xt=Be.onSearch,jt=Be.defaultOpen,$t=Be.autoFocus,mn=Be.labelInValue,qt=Be.value,gn=Be.inputValue,Ln=Be.optionLabelProp,Wn=isMultiple(We),Cn=gt!==void 0?gt:Wn||We==="combobox",sr=Ct||convertChildrenToData(De);if(warning(We!=="tags"||sr.every(function(Gn){return!Gn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),We==="tags"||We==="combobox"){var Un=sr.some(function(Gn){return Gn.options?Gn.options.some(function(kr){return typeof("value"in kr?kr.value:kr.key)=="number"}):typeof("value"in Gn?Gn.value:Gn.key)=="number"});warning(!Un,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(We!=="combobox"||!Ln,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(We==="combobox"||!vt,"`backfill` only works with `combobox` mode."),warning(We==="combobox"||!rt,"`getInputElement` only work with `combobox` mode."),noteOnce(We!=="combobox"||!rt||!Mt||!Kt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),xt&&!Cn&&We!=="combobox"&&We!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!jt||$t,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),qt!=null){var qn=toArray(qt);warning(!mn||qn.every(function(Gn){return _typeof(Gn)==="object"&&("key"in Gn||"value"in Gn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Wn||Array.isArray(qt),"`value` should be array when `mode` is `multiple` or `tags`")}if(De){var mr=null;toNodeArray(De).some(function(Gn){if(!React.isValidElement(Gn)||!Gn.type)return!1;var kr=Gn,Er=kr.type;if(Er.isSelectOption)return!1;if(Er.isSelectOptGroup){var hr=toNodeArray(Gn.props.children).every(function(ar){return!React.isValidElement(ar)||!Gn.type||ar.type.isSelectOption?!0:(mr=ar.type,!1)});return!hr}return mr=Er,!0}),mr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(mr.displayName||mr.name||mr,"`.")),warning(gn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function qs(Be,We){if(Be){var Ct=function De(vt){for(var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Kt=0;Kt<vt.length;Kt++){var rt=vt[Kt];if(rt[We==null?void 0:We.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Mt&&Array.isArray(rt[We==null?void 0:We.options])&&De(rt[We==null?void 0:We.options],!0))break}};Ct(Be)}}var il=null,Ds=["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"],So=["inputValue"];function al(Be){return!Be||(0,ke.Z)(Be)!=="object"}var Sl=ve.forwardRef(function(Be,We){var Ct=Be.id,De=Be.mode,vt=Be.prefixCls,Mt=vt===void 0?"rc-select":vt,Kt=Be.backfill,rt=Be.fieldNames,gt=Be.inputValue,xt=Be.searchValue,jt=Be.onSearch,$t=Be.autoClearSearchValue,mn=$t===void 0?!0:$t,qt=Be.onSelect,gn=Be.onDeselect,Ln=Be.dropdownMatchSelectWidth,Wn=Ln===void 0?!0:Ln,Cn=Be.filterOption,sr=Be.filterSort,Un=Be.optionFilterProp,qn=Be.optionLabelProp,mr=Be.options,Gn=Be.children,kr=Be.defaultActiveFirstOption,Er=Be.menuItemSelectedIcon,hr=Be.virtual,ar=Be.direction,Qn=Be.listHeight,gr=Qn===void 0?200:Qn,ir=Be.listItemHeight,xr=ir===void 0?20:ir,Sr=Be.value,yr=Be.defaultValue,rr=Be.labelInValue,_r=Be.onChange,Qr=(0,it.Z)(Be,Ds),ea=io(Ct),Ui=bo(De),ji=!!(!mr&&Gn),pa=ve.useMemo(function(){return Cn===void 0&&De==="combobox"?!1:Cn},[Cn,De]),Bi=ve.useMemo(function(){return zi(rt,ji)},[JSON.stringify(rt),ji]),Ia=(0,at.Z)("",{value:xt!==void 0?xt:gt,postState:function(Ri){return Ri||""}}),Qa=(0,Re.Z)(Ia,2),ri=Qa[0],Br=Qa[1],Ei=fs(mr,Gn,Bi,Un,qn),Yi=Ei.valueOptions,xi=Ei.labelOptions,la=Ei.options,Ai=ve.useCallback(function(Ur){var Ri=jn(Ur);return Ri.map(function(Jn){var Ki,Do,No,$o,Oo;if(al(Jn))Ki=Jn;else{var kl;No=Jn.key,Do=Jn.label,Ki=(kl=Jn.value)!==null&&kl!==void 0?kl:No}var ws=Yi.get(Ki);if(ws){var Yl;if(Do===void 0&&(Do=ws==null?void 0:ws[qn||Bi.label]),No===void 0&&(No=(Yl=ws==null?void 0:ws.key)!==null&&Yl!==void 0?Yl:Ki),$o=ws==null?void 0:ws.disabled,Oo=ws==null?void 0:ws.title,0)var to}return{label:Do,value:Ki,key:No,disabled:$o,title:Oo}})},[Bi,qn,Yi]),$i=(0,at.Z)(yr,{value:Sr}),wa=(0,Re.Z)($i,2),za=wa[0],Xa=wa[1],Qi=ve.useMemo(function(){var Ur,Ri=Ai(za);return De==="combobox"&&Or((Ur=Ri[0])===null||Ur===void 0?void 0:Ur.value)?[]:Ri},[za,Ai,De]),Pi=ka(Qi,Yi),La=(0,Re.Z)(Pi,2),Sa=La[0],ma=La[1],ua=ve.useMemo(function(){if(!De&&Sa.length===1){var Ur=Sa[0];if(Ur.value===null&&(Ur.label===null||Ur.label===void 0))return[]}return Sa.map(function(Ri){var Jn;return(0,Ve.Z)((0,Ve.Z)({},Ri),{},{label:(Jn=Ri.label)!==null&&Jn!==void 0?Jn:Ri.value})})},[De,Sa]),ii=ve.useMemo(function(){return new Set(Sa.map(function(Ur){return Ur.value}))},[Sa]);ve.useEffect(function(){if(De==="combobox"){var Ur,Ri=(Ur=Sa[0])===null||Ur===void 0?void 0:Ur.value;Br(Ir(Ri)?String(Ri):"")}},[Sa]);var bi=ho(function(Ur,Ri){var Jn,Ki=Ri!=null?Ri:Ur;return Jn={},(0,we.Z)(Jn,Bi.value,Ur),(0,we.Z)(Jn,Bi.label,Ki),Jn}),va=ve.useMemo(function(){if(De!=="tags")return la;var Ur=(0,ct.Z)(la),Ri=function(Ki){return Yi.has(Ki)};return(0,ct.Z)(Sa).sort(function(Jn,Ki){return Jn.value<Ki.value?-1:1}).forEach(function(Jn){var Ki=Jn.value;Ri(Ki)||Ur.push(bi(Ki,Jn.label))}),Ur},[bi,la,Yi,Sa,De]),oa=Fo(va,Bi,ri,pa,Un),Ra=ve.useMemo(function(){return De!=="tags"||!ri||oa.some(function(Ur){return Ur[Un||"value"]===ri})||oa.some(function(Ur){return Ur[Bi.value]===ri})?oa:[bi(ri)].concat((0,ct.Z)(oa))},[bi,Un,De,oa,ri,Bi]),ui=ve.useMemo(function(){return sr?(0,ct.Z)(Ra).sort(function(Ur,Ri){return sr(Ur,Ri)}):Ra},[Ra,sr]),tr=ve.useMemo(function(){return Pr(ui,{fieldNames:Bi,childrenAsData:ji})},[ui,Bi,ji]),Nr=function(Ri){var Jn=Ai(Ri);if(Xa(Jn),_r&&(Jn.length!==Sa.length||Jn.some(function(No,$o){var Oo;return((Oo=Sa[$o])===null||Oo===void 0?void 0:Oo.value)!==(No==null?void 0:No.value)}))){var Ki=rr?Jn:Jn.map(function(No){return No.value}),Do=Jn.map(function(No){return ta(ma(No.value))});_r(Ui?Ki:Ki[0],Ui?Do:Do[0])}},Gr=ve.useState(null),pr=(0,Re.Z)(Gr,2),Ji=pr[0],Fa=pr[1],Mo=ve.useState(0),ao=(0,Re.Z)(Mo,2),Wo=ao[0],po=ao[1],Ps=kr!==void 0?kr:De!=="combobox",bs=ve.useCallback(function(Ur,Ri){var Jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ki=Jn.source,Do=Ki===void 0?"keyboard":Ki;po(Ri),Kt&&De==="combobox"&&Ur!==null&&Do==="keyboard"&&Fa(String(Ur))},[Kt,De]),xs=function(Ri,Jn,Ki){var Do=function(){var no,as=ma(Ri);return[rr?{label:as==null?void 0:as[Bi.label],value:Ri,key:(no=as==null?void 0:as.key)!==null&&no!==void 0?no:Ri}:Ri,ta(as)]};if(Jn&&qt){var No=Do(),$o=(0,Re.Z)(No,2),Oo=$o[0],kl=$o[1];qt(Oo,kl)}else if(!Jn&&gn&&Ki!=="clear"){var ws=Do(),Yl=(0,Re.Z)(ws,2),to=Yl[0],ca=Yl[1];gn(to,ca)}},Hs=ho(function(Ur,Ri){var Jn,Ki=Ui?Ri.selected:!0;Ki?Jn=Ui?[].concat((0,ct.Z)(Sa),[Ur]):[Ur]:Jn=Sa.filter(function(Do){return Do.value!==Ur}),Nr(Jn),xs(Ur,Ki),De==="combobox"?Fa(""):(!bo||mn)&&(Br(""),Fa(""))}),fl=function(Ri,Jn){Nr(Ri);var Ki=Jn.type,Do=Jn.values;(Ki==="remove"||Ki==="clear")&&Do.forEach(function(No){xs(No.value,!1,Ki)})},el=function(Ri,Jn){if(Br(Ri),Fa(null),Jn.source==="submit"){var Ki=(Ri||"").trim();if(Ki){var Do=Array.from(new Set([].concat((0,ct.Z)(ii),[Ki])));Nr(Do),xs(Ki,!0),Br("")}return}Jn.source!=="blur"&&(De==="combobox"&&Nr(Ri),jt==null||jt(Ri))},Hl=function(Ri){var Jn=Ri;De!=="tags"&&(Jn=Ri.map(function(Do){var No=xi.get(Do);return No==null?void 0:No.value}).filter(function(Do){return Do!==void 0}));var Ki=Array.from(new Set([].concat((0,ct.Z)(ii),(0,ct.Z)(Jn))));Nr(Ki),Ki.forEach(function(Do){xs(Do,!0)})},sa=ve.useMemo(function(){var Ur=hr!==!1&&Wn!==!1;return(0,Ve.Z)((0,Ve.Z)({},Ei),{},{flattenOptions:tr,onActiveValue:bs,defaultActiveFirstOption:Ps,onSelect:Hs,menuItemSelectedIcon:Er,rawValues:ii,fieldNames:Bi,virtual:Ur,direction:ar,listHeight:gr,listItemHeight:xr,childrenAsData:ji})},[Ei,tr,bs,Ps,Hs,Er,ii,Bi,hr,Wn,gr,xr,ji]);return ve.createElement(co.Provider,{value:sa},ve.createElement(fo,(0,lt.Z)({},Qr,{id:ea,prefixCls:Mt,ref:We,omitDomProps:So,mode:De,displayValues:ua,onDisplayValuesChange:fl,direction:ar,searchValue:ri,onSearch:el,autoClearSearchValue:mn,onSearchSplit:Hl,dropdownMatchSelectWidth:Wn,OptionList:Ms,emptyOptions:!tr.length,activeValue:Ji,activeDescendantId:"".concat(ea,"_list_").concat(Wo)})))}),Vs=Sl;Vs.Option=Xn,Vs.OptGroup=Ma;var ol=null,Bs=null,Us=he(17341),js=function(Be){var We=ve.useRef({valueLabels:new Map});return ve.useMemo(function(){var Ct=We.current.valueLabels,De=new Map,vt=Be.map(function(Mt){var Kt,rt=Mt.value,gt=(Kt=Mt.label)!==null&&Kt!==void 0?Kt:Ct.get(rt);return De.set(rt,gt),(0,Ve.Z)((0,Ve.Z)({},Mt),{},{label:gt})});return We.current.valueLabels=De,[vt]},[Be])},ml=function(Be,We,Ct,De){return ve.useMemo(function(){var vt=Be.map(function(gt){var xt=gt.value;return xt}),Mt=We.map(function(gt){var xt=gt.value;return xt}),Kt=vt.filter(function(gt){return!De[gt]});if(Ct){var rt=(0,Us.S)(vt,!0,De);vt=rt.checkedKeys,Mt=rt.halfCheckedKeys}return[Array.from(new Set([].concat((0,ct.Z)(Kt),(0,ct.Z)(vt)))),Mt]},[Be,We,Ct,De])},Ua=he(1089),_s=function(Be,We){return ve.useMemo(function(){var Ct=(0,Ua.I8)(Be,{fieldNames:We,initWrapper:function(vt){return(0,Ve.Z)((0,Ve.Z)({},vt),{},{valueEntities:new Map})},processEntity:function(vt,Mt){var Kt=vt.node[We.value];if(0)var rt;Mt.valueEntities.set(Kt,vt)}});return Ct},[Be,We])},ms=function(){return null},Zs=ms,Ks=["children","value"];function sl(Be){return(0,lo.Z)(Be).map(function(We){if(!ve.isValidElement(We)||!We.type)return null;var Ct=We,De=Ct.key,vt=Ct.props,Mt=vt.children,Kt=vt.value,rt=(0,it.Z)(vt,Ks),gt=(0,Ve.Z)({key:De,value:Kt},rt),xt=sl(Mt);return xt.length&&(gt.children=xt),gt}).filter(function(We){return We})}function vs(Be){if(!Be)return Be;var We=(0,Ve.Z)({},Be);return"props"in We||Object.defineProperty(We,"props",{get:function(){return(0,tt.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),We}}),We}function gs(Be,We,Ct,De,vt,Mt){var Kt=null,rt=null;function gt(){function xt(jt){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",mn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return jt.map(function(qt,gn){var Ln="".concat($t,"-").concat(gn),Wn=qt[Mt.value],Cn=Ct.includes(Wn),sr=xt(qt[Mt.children]||[],Ln,Cn),Un=ve.createElement(Zs,qt,sr.map(function(mr){return mr.node}));if(We===Wn&&(Kt=Un),Cn){var qn={pos:Ln,node:Un,children:sr};return mn||rt.push(qn),qn}return null}).filter(function(qt){return qt})}rt||(rt=[],xt(De),rt.sort(function(jt,$t){var mn=jt.node.props.value,qt=$t.node.props.value,gn=Ct.indexOf(mn),Ln=Ct.indexOf(qt);return gn-Ln}))}Object.defineProperty(Be,"triggerNode",{get:function(){return(0,tt.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),gt(),Kt}}),Object.defineProperty(Be,"allCheckedNodes",{get:function(){return(0,tt.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),gt(),vt?rt:rt.map(function(jt){var $t=jt.node;return $t})}})}var _e=function(Be,We,Ct){var De=Ct.treeNodeFilterProp,vt=Ct.filterTreeNode,Mt=Ct.fieldNames,Kt=Mt.children;return ve.useMemo(function(){if(!We||vt===!1)return Be;var rt;if(typeof vt=="function")rt=vt;else{var gt=We.toUpperCase();rt=function($t,mn){var qt=mn[De];return String(qt).toUpperCase().includes(gt)}}function xt(jt){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return jt.reduce(function(mn,qt){var gn=qt[Kt],Ln=$t||rt(We,vs(qt)),Wn=xt(gn||[],Ln);return(Ln||Wn.length)&&mn.push((0,Ve.Z)((0,Ve.Z)({},qt),{},(0,we.Z)({isLeaf:void 0},Kt,Wn))),mn},[])}return xt(Be)},[Be,We,Kt,De,vt])};function nt(Be){var We=ve.useRef();We.current=Be;var Ct=ve.useCallback(function(){return We.current.apply(We,arguments)},[]);return Ct}function pn(Be,We){var Ct=We.id,De=We.pId,vt=We.rootPId,Mt={},Kt=[],rt=Be.map(function(gt){var xt=(0,Ve.Z)({},gt),jt=xt[Ct];return Mt[jt]=xt,xt.key=xt.key||jt,xt});return rt.forEach(function(gt){var xt=gt[De],jt=Mt[xt];jt&&(jt.children=jt.children||[],jt.children.push(gt)),(xt===vt||!jt&&vt===null)&&Kt.push(gt)}),Kt}function Ae(Be,We,Ct){return ve.useMemo(function(){return Be?Ct?pn(Be,(0,Ve.Z)({id:"id",pId:"pId",rootPId:null},Ct!==!0?Ct:{})):Be:sl(We)},[We,Ct,Be])}var St=ve.createContext(null),Ft=St,an=he(15671),Rt=he(43144),In=he(97326),zn=he(60136),Rn=he(51630),Mn=he(27822),sn=he(10225),Bn=he(36459),Tn=ve.forwardRef(function(Be,We){var Ct=Be.height,De=Be.offset,vt=Be.children,Mt=Be.prefixCls,Kt=Be.onInnerResize,rt=Be.innerProps,gt={},xt={display:"flex",flexDirection:"column"};return De!==void 0&&(gt={height:Ct,position:"relative",overflow:"hidden"},xt=(0,Ve.Z)((0,Ve.Z)({},xt),{},{transform:"translateY(".concat(De,"px)"),position:"absolute",left:0,right:0,top:0})),ve.createElement("div",{style:gt},ve.createElement(Qt.Z,{onResize:function($t){var mn=$t.offsetHeight;mn&&Kt&&Kt()}},ve.createElement("div",(0,lt.Z)({style:xt,className:Ee()((0,we.Z)({},"".concat(Mt,"-holder-inner"),Mt)),ref:We},rt),vt)))});Tn.displayName="Filler";var Kn=Tn,Zr=he(75164),li=20;function Gi(Be){return"touches"in Be?Be.touches[0].pageY:Be.pageY}var Oi=function(Be){(0,zn.Z)(Ct,Be);var We=(0,Rn.Z)(Ct);function Ct(){var De;(0,an.Z)(this,Ct);for(var vt=arguments.length,Mt=new Array(vt),Kt=0;Kt<vt;Kt++)Mt[Kt]=arguments[Kt];return De=We.call.apply(We,[this].concat(Mt)),De.moveRaf=null,De.scrollbarRef=ve.createRef(),De.thumbRef=ve.createRef(),De.visibleTimeout=null,De.state={dragging:!1,pageY:null,startTop:null,visible:!1},De.delayHidden=function(){clearTimeout(De.visibleTimeout),De.setState({visible:!0}),De.visibleTimeout=setTimeout(function(){De.setState({visible:!1})},2e3)},De.onScrollbarTouchStart=function(rt){rt.preventDefault()},De.onContainerMouseDown=function(rt){rt.stopPropagation(),rt.preventDefault()},De.patchEvents=function(){window.addEventListener("mousemove",De.onMouseMove),window.addEventListener("mouseup",De.onMouseUp),De.thumbRef.current.addEventListener("touchmove",De.onMouseMove),De.thumbRef.current.addEventListener("touchend",De.onMouseUp)},De.removeEvents=function(){var rt;window.removeEventListener("mousemove",De.onMouseMove),window.removeEventListener("mouseup",De.onMouseUp),(rt=De.scrollbarRef.current)===null||rt===void 0||rt.removeEventListener("touchstart",De.onScrollbarTouchStart),De.thumbRef.current&&(De.thumbRef.current.removeEventListener("touchstart",De.onMouseDown),De.thumbRef.current.removeEventListener("touchmove",De.onMouseMove),De.thumbRef.current.removeEventListener("touchend",De.onMouseUp)),Zr.Z.cancel(De.moveRaf)},De.onMouseDown=function(rt){var gt=De.props.onStartMove;De.setState({dragging:!0,pageY:Gi(rt),startTop:De.getTop()}),gt(),De.patchEvents(),rt.stopPropagation(),rt.preventDefault()},De.onMouseMove=function(rt){var gt=De.state,xt=gt.dragging,jt=gt.pageY,$t=gt.startTop,mn=De.props.onScroll;if(Zr.Z.cancel(De.moveRaf),xt){var qt=Gi(rt)-jt,gn=$t+qt,Ln=De.getEnableScrollRange(),Wn=De.getEnableHeightRange(),Cn=Wn?gn/Wn:0,sr=Math.ceil(Cn*Ln);De.moveRaf=(0,Zr.Z)(function(){mn(sr)})}},De.onMouseUp=function(){var rt=De.props.onStopMove;De.setState({dragging:!1}),rt(),De.removeEvents()},De.getSpinHeight=function(){var rt=De.props,gt=rt.height,xt=rt.count,jt=gt/xt*10;return jt=Math.max(jt,li),jt=Math.min(jt,gt/2),Math.floor(jt)},De.getEnableScrollRange=function(){var rt=De.props,gt=rt.scrollHeight,xt=rt.height;return gt-xt||0},De.getEnableHeightRange=function(){var rt=De.props.height,gt=De.getSpinHeight();return rt-gt||0},De.getTop=function(){var rt=De.props.scrollTop,gt=De.getEnableScrollRange(),xt=De.getEnableHeightRange();if(rt===0||gt===0)return 0;var jt=rt/gt;return jt*xt},De.showScroll=function(){var rt=De.props,gt=rt.height,xt=rt.scrollHeight;return xt>gt},De}return(0,Rt.Z)(Ct,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(vt){vt.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var vt=this.state,Mt=vt.dragging,Kt=vt.visible,rt=this.props.prefixCls,gt=this.getSpinHeight(),xt=this.getTop(),jt=this.showScroll(),$t=jt&&Kt;return ve.createElement("div",{ref:this.scrollbarRef,className:Ee()("".concat(rt,"-scrollbar"),(0,we.Z)({},"".concat(rt,"-scrollbar-show"),jt)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:$t?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},ve.createElement("div",{ref:this.thumbRef,className:Ee()("".concat(rt,"-scrollbar-thumb"),(0,we.Z)({},"".concat(rt,"-scrollbar-thumb-moving"),Mt)),style:{width:"100%",height:gt,top:xt,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),Ct}(ve.Component);function fa(Be){var We=Be.children,Ct=Be.setRef,De=ve.useCallback(function(vt){Ct(vt)},[]);return ve.cloneElement(We,{ref:De})}function xa(Be,We,Ct,De,vt,Mt){var Kt=Mt.getKey;return Be.slice(We,Ct+1).map(function(rt,gt){var xt=We+gt,jt=vt(rt,xt,{}),$t=Kt(rt);return ve.createElement(fa,{key:$t,setRef:function(qt){return De(rt,qt)}},jt)})}var Oa=he(34203),_a=function(){function Be(){(0,an.Z)(this,Be),this.maps=void 0,this.maps=Object.create(null)}return(0,Rt.Z)(Be,[{key:"set",value:function(Ct,De){this.maps[Ct]=De}},{key:"get",value:function(Ct){return this.maps[Ct]}}]),Be}(),$a=_a;function Pa(Be,We,Ct){var De=ve.useState(0),vt=(0,Re.Z)(De,2),Mt=vt[0],Kt=vt[1],rt=(0,ve.useRef)(new Map),gt=(0,ve.useRef)(new $a),xt=(0,ve.useRef)();function jt(){Zr.Z.cancel(xt.current)}function $t(){jt(),xt.current=(0,Zr.Z)(function(){rt.current.forEach(function(qt,gn){if(qt&&qt.offsetParent){var Ln=(0,Oa.Z)(qt),Wn=Ln.offsetHeight;gt.current.get(gn)!==Wn&>.current.set(gn,Ln.offsetHeight)}}),Kt(function(qt){return qt+1})})}function mn(qt,gn){var Ln=Be(qt),Wn=rt.current.get(Ln);gn?(rt.current.set(Ln,gn),$t()):rt.current.delete(Ln),!Wn!=!gn&&(gn?We==null||We(qt):Ct==null||Ct(qt))}return(0,ve.useEffect)(function(){return jt},[]),[mn,$t,gt.current,Mt]}function Za(Be,We,Ct,De,vt,Mt,Kt,rt){var gt=ve.useRef();return function(xt){if(xt==null){rt();return}if(Zr.Z.cancel(gt.current),typeof xt=="number")Kt(xt);else if(xt&&(0,ke.Z)(xt)==="object"){var jt,$t=xt.align;"index"in xt?jt=xt.index:jt=We.findIndex(function(Ln){return vt(Ln)===xt.key});var mn=xt.offset,qt=mn===void 0?0:mn,gn=function Ln(Wn,Cn){if(!(Wn<0||!Be.current)){var sr=Be.current.clientHeight,Un=!1,qn=Cn;if(sr){for(var mr=Cn||$t,Gn=0,kr=0,Er=0,hr=Math.min(We.length,jt),ar=0;ar<=hr;ar+=1){var Qn=vt(We[ar]);kr=Gn;var gr=Ct.get(Qn);Er=kr+(gr===void 0?De:gr),Gn=Er,ar===jt&&gr===void 0&&(Un=!0)}var ir=null;switch(mr){case"top":ir=kr-qt;break;case"bottom":ir=Er-sr+qt;break;default:{var xr=Be.current.scrollTop,Sr=xr+sr;kr<xr?qn="top":Er>Sr&&(qn="bottom")}}ir!==null&&ir!==Be.current.scrollTop&&Kt(ir)}gt.current=(0,Zr.Z)(function(){Un&&Mt(),Ln(Wn-1,qn)},2)}};gn(3)}}}function Po(Be,We,Ct,De){var vt=Ct-Be,Mt=We-Ct,Kt=Math.min(vt,Mt)*2;if(De<=Kt){var rt=Math.floor(De/2);return De%2?Ct+rt+1:Ct-rt}return vt>Mt?Ct-(De-Mt):Ct+(De-vt)}function tn(Be,We,Ct){var De=Be.length,vt=We.length,Mt,Kt;if(De===0&&vt===0)return null;De<vt?(Mt=Be,Kt=We):(Mt=We,Kt=Be);var rt={__EMPTY_ITEM__:!0};function gt(gn){return gn!==void 0?Ct(gn):rt}for(var xt=null,jt=Math.abs(De-vt)!==1,$t=0;$t<Kt.length;$t+=1){var mn=gt(Mt[$t]),qt=gt(Kt[$t]);if(mn!==qt){xt=$t,jt=jt||mn!==gt(Kt[$t+1]);break}}return xt===null?null:{index:xt,multiple:jt}}function rn(Be,We,Ct){var De=ve.useState(Be),vt=(0,Re.Z)(De,2),Mt=vt[0],Kt=vt[1],rt=ve.useState(null),gt=(0,Re.Z)(rt,2),xt=gt[0],jt=gt[1];return ve.useEffect(function(){var $t=tn(Mt||[],Be||[],We);($t==null?void 0:$t.index)!==void 0&&(Ct==null||Ct($t.index),jt(Be[$t.index])),Kt(Be)},[Be]),[xt]}var fn=(typeof navigator=="undefined"?"undefined":(0,ke.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Hn=fn,ei=function(Be,We){var Ct=(0,ve.useRef)(!1),De=(0,ve.useRef)(null);function vt(){clearTimeout(De.current),Ct.current=!0,De.current=setTimeout(function(){Ct.current=!1},50)}var Mt=(0,ve.useRef)({top:Be,bottom:We});return Mt.current.top=Be,Mt.current.bottom=We,function(Kt){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gt=Kt<0&&Mt.current.top||Kt>0&&Mt.current.bottom;return rt&>?(clearTimeout(De.current),Ct.current=!1):(!gt||Ct.current)&&vt(),!Ct.current&>}};function Wi(Be,We,Ct,De){var vt=(0,ve.useRef)(0),Mt=(0,ve.useRef)(null),Kt=(0,ve.useRef)(null),rt=(0,ve.useRef)(!1),gt=ei(We,Ct);function xt($t){if(Be){Zr.Z.cancel(Mt.current);var mn=$t.deltaY;vt.current+=mn,Kt.current=mn,!gt(mn)&&(Hn||$t.preventDefault(),Mt.current=(0,Zr.Z)(function(){var qt=rt.current?10:1;De(vt.current*qt),vt.current=0}))}}function jt($t){Be&&(rt.current=$t.detail===Kt.current)}return[xt,jt]}var Zn=14/15;function Lr(Be,We,Ct){var De=(0,ve.useRef)(!1),vt=(0,ve.useRef)(0),Mt=(0,ve.useRef)(null),Kt=(0,ve.useRef)(null),rt,gt=function(mn){if(De.current){var qt=Math.ceil(mn.touches[0].pageY),gn=vt.current-qt;vt.current=qt,Ct(gn)&&mn.preventDefault(),clearInterval(Kt.current),Kt.current=setInterval(function(){gn*=Zn,(!Ct(gn,!0)||Math.abs(gn)<=.1)&&clearInterval(Kt.current)},16)}},xt=function(){De.current=!1,rt()},jt=function(mn){rt(),mn.touches.length===1&&!De.current&&(De.current=!0,vt.current=Math.ceil(mn.touches[0].pageY),Mt.current=mn.target,Mt.current.addEventListener("touchmove",gt),Mt.current.addEventListener("touchend",xt))};rt=function(){Mt.current&&(Mt.current.removeEventListener("touchmove",gt),Mt.current.removeEventListener("touchend",xt))},(0,kt.Z)(function(){return Be&&We.current.addEventListener("touchstart",jt),function(){var $t;($t=We.current)===null||$t===void 0||$t.removeEventListener("touchstart",jt),rt(),clearInterval(Kt.current)}},[Be])}var vi=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange","innerProps"],qi=[],Kr={overflowY:"auto",overflowAnchor:"none"};function dr(Be,We){var Ct=Be.prefixCls,De=Ct===void 0?"rc-virtual-list":Ct,vt=Be.className,Mt=Be.height,Kt=Be.itemHeight,rt=Be.fullHeight,gt=rt===void 0?!0:rt,xt=Be.style,jt=Be.data,$t=Be.children,mn=Be.itemKey,qt=Be.virtual,gn=Be.component,Ln=gn===void 0?"div":gn,Wn=Be.onScroll,Cn=Be.onVisibleChange,sr=Be.innerProps,Un=(0,it.Z)(Be,vi),qn=!!(qt!==!1&&Mt&&Kt),mr=qn&&jt&&Kt*jt.length>Mt,Gn=(0,ve.useState)(0),kr=(0,Re.Z)(Gn,2),Er=kr[0],hr=kr[1],ar=(0,ve.useState)(!1),Qn=(0,Re.Z)(ar,2),gr=Qn[0],ir=Qn[1],xr=Ee()(De,vt),Sr=jt||qi,yr=(0,ve.useRef)(),rr=(0,ve.useRef)(),_r=(0,ve.useRef)(),Qr=ve.useCallback(function(pr){return typeof mn=="function"?mn(pr):pr==null?void 0:pr[mn]},[mn]),ea={getKey:Qr};function Ui(pr){hr(function(Ji){var Fa;typeof pr=="function"?Fa=pr(Ji):Fa=pr;var Mo=La(Fa);return yr.current.scrollTop=Mo,Mo})}var ji=(0,ve.useRef)({start:0,end:Sr.length}),pa=(0,ve.useRef)(),Bi=rn(Sr,Qr),Ia=(0,Re.Z)(Bi,1),Qa=Ia[0];pa.current=Qa;var ri=Pa(Qr,null,null),Br=(0,Re.Z)(ri,4),Ei=Br[0],Yi=Br[1],xi=Br[2],la=Br[3],Ai=ve.useMemo(function(){if(!qn)return{scrollHeight:void 0,start:0,end:Sr.length-1,offset:void 0};if(!mr){var pr;return{scrollHeight:((pr=rr.current)===null||pr===void 0?void 0:pr.offsetHeight)||0,start:0,end:Sr.length-1,offset:void 0}}for(var Ji=0,Fa,Mo,ao,Wo=Sr.length,po=0;po<Wo;po+=1){var Ps=Sr[po],bs=Qr(Ps),xs=xi.get(bs),Hs=Ji+(xs===void 0?Kt:xs);Hs>=Er&&Fa===void 0&&(Fa=po,Mo=Ji),Hs>Er+Mt&&ao===void 0&&(ao=po),Ji=Hs}return Fa===void 0&&(Fa=0,Mo=0,ao=Math.ceil(Mt/Kt)),ao===void 0&&(ao=Sr.length-1),ao=Math.min(ao+1,Sr.length),{scrollHeight:Ji,start:Fa,end:ao,offset:Mo}},[mr,qn,Er,Sr,la,Mt]),$i=Ai.scrollHeight,wa=Ai.start,za=Ai.end,Xa=Ai.offset;ji.current.start=wa,ji.current.end=za;var Qi=$i-Mt,Pi=(0,ve.useRef)(Qi);Pi.current=Qi;function La(pr){var Ji=pr;return Number.isNaN(Pi.current)||(Ji=Math.min(Ji,Pi.current)),Ji=Math.max(Ji,0),Ji}var Sa=Er<=0,ma=Er>=Qi,ua=ei(Sa,ma);function ii(pr){var Ji=pr;Ui(Ji)}function bi(pr){var Ji=pr.currentTarget.scrollTop;Ji!==Er&&Ui(Ji),Wn==null||Wn(pr)}var va=Wi(qn,Sa,ma,function(pr){Ui(function(Ji){var Fa=Ji+pr;return Fa})}),oa=(0,Re.Z)(va,2),Ra=oa[0],ui=oa[1];Lr(qn,yr,function(pr,Ji){return ua(pr,Ji)?!1:(Ra({preventDefault:function(){},deltaY:pr}),!0)}),(0,kt.Z)(function(){function pr(Ji){qn&&Ji.preventDefault()}return yr.current.addEventListener("wheel",Ra),yr.current.addEventListener("DOMMouseScroll",ui),yr.current.addEventListener("MozMousePixelScroll",pr),function(){yr.current&&(yr.current.removeEventListener("wheel",Ra),yr.current.removeEventListener("DOMMouseScroll",ui),yr.current.removeEventListener("MozMousePixelScroll",pr))}},[qn]);var tr=Za(yr,Sr,xi,Kt,Qr,Yi,Ui,function(){var pr;(pr=_r.current)===null||pr===void 0||pr.delayHidden()});ve.useImperativeHandle(We,function(){return{scrollTo:tr}}),(0,kt.Z)(function(){if(Cn){var pr=Sr.slice(wa,za+1);Cn(pr,Sr)}},[wa,za,Sr]);var Nr=xa(Sr,wa,za,Ei,$t,ea),Gr=null;return Mt&&(Gr=(0,Ve.Z)((0,we.Z)({},gt?"height":"maxHeight",Mt),Kr),qn&&(Gr.overflowY="hidden",gr&&(Gr.pointerEvents="none"))),ve.createElement("div",(0,lt.Z)({style:(0,Ve.Z)((0,Ve.Z)({},xt),{},{position:"relative"}),className:xr},Un),ve.createElement(Ln,{className:"".concat(De,"-holder"),style:Gr,ref:yr,onScroll:bi},ve.createElement(Kn,{prefixCls:De,height:$i,offset:Xa,onInnerResize:Yi,ref:rr,innerProps:sr},Nr)),qn&&ve.createElement(Oi,{ref:_r,prefixCls:De,scrollTop:Er,height:Mt,scrollHeight:$i,count:Sr.length,onScroll:ii,onStartMove:function(){ir(!0)},onStopMove:function(){ir(!1)}}))}var Vi=ve.forwardRef(dr);Vi.displayName="List";var ha=Vi,Ea=ha,Ci=he(62874),fi=he(86128),Ga=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ka=function(We,Ct){var De=We.className,vt=We.style,Mt=We.motion,Kt=We.motionNodes,rt=We.motionType,gt=We.onMotionStart,xt=We.onMotionEnd,jt=We.active,$t=We.treeNodeRequiredProps,mn=(0,it.Z)(We,Ga),qt=ve.useState(!0),gn=(0,Re.Z)(qt,2),Ln=gn[0],Wn=gn[1],Cn=ve.useContext(Mn.k),sr=Cn.prefixCls,Un=ve.useRef(!1),qn=function(){Un.current||xt(),Un.current=!0};return(0,ve.useEffect)(function(){Kt&&rt==="hide"&&Ln&&Wn(!1)},[Kt]),(0,ve.useEffect)(function(){return Kt&>(),function(){Kt&&qn()}},[]),Kt?ve.createElement(Ci.Z,(0,lt.Z)({ref:Ct,visible:Ln},Mt,{motionAppear:rt==="show",onAppearEnd:qn,onLeaveEnd:qn}),function(mr,Gn){var kr=mr.className,Er=mr.style;return ve.createElement("div",{ref:Gn,className:Ee()("".concat(sr,"-treenode-motion"),kr),style:Er},Kt.map(function(hr){var ar=(0,lt.Z)({},((0,Bn.Z)(hr.data),hr.data)),Qn=hr.title,gr=hr.key,ir=hr.isStart,xr=hr.isEnd;delete ar.children;var Sr=(0,Ua.H8)(gr,$t);return ve.createElement(fi.Z,(0,lt.Z)({},ar,Sr,{title:Qn,active:jt,data:hr.data,key:gr,isStart:ir,isEnd:xr}))}))}):ve.createElement(fi.Z,(0,lt.Z)({domRef:Ct,className:De,style:vt},mn,{active:jt}))};Ka.displayName="MotionTreeNode";var Ao=ve.forwardRef(Ka),Es=Ao;function bl(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ct=Be.length,De=We.length;if(Math.abs(Ct-De)!==1)return{add:!1,key:null};function vt(Mt,Kt){var rt=new Map;Mt.forEach(function(xt){rt.set(xt,!0)});var gt=Kt.filter(function(xt){return!rt.has(xt)});return gt.length===1?gt[0]:null}return Ct<De?{add:!0,key:vt(Be,We)}:{add:!1,key:vt(We,Be)}}function Io(Be,We,Ct){var De=Be.findIndex(function(rt){return rt.key===Ct}),vt=Be[De+1],Mt=We.findIndex(function(rt){return rt.key===Ct});if(vt){var Kt=We.findIndex(function(rt){return rt.key===vt.key});return We.slice(Mt+1,Kt)}return We.slice(Mt+1)}var Rl=["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"],To={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ls=function(){},Uo="RC_TREE_MOTION_".concat(Math.random()),wo={key:Uo},ll={key:Uo,level:0,index:0,pos:"0",node:wo,nodes:[wo]},ul={parent:null,children:[],pos:ll.pos,data:wo,title:null,key:Uo,isStart:[],isEnd:[]};function ia(Be,We,Ct,De){return We===!1||!Ct?Be:Be.slice(0,Math.ceil(Ct/De)+1)}function ys(Be){var We=Be.key,Ct=Be.pos;return(0,Ua.km)(We,Ct)}function cl(Be){for(var We=String(Be.data.key),Ct=Be;Ct.parent;)Ct=Ct.parent,We="".concat(Ct.data.key," > ").concat(We);return We}var Gs=ve.forwardRef(function(Be,We){var Ct=Be.prefixCls,De=Be.data,vt=Be.selectable,Mt=Be.checkable,Kt=Be.expandedKeys,rt=Be.selectedKeys,gt=Be.checkedKeys,xt=Be.loadedKeys,jt=Be.loadingKeys,$t=Be.halfCheckedKeys,mn=Be.keyEntities,qt=Be.disabled,gn=Be.dragging,Ln=Be.dragOverNodeKey,Wn=Be.dropPosition,Cn=Be.motion,sr=Be.height,Un=Be.itemHeight,qn=Be.virtual,mr=Be.focusable,Gn=Be.activeItem,kr=Be.focused,Er=Be.tabIndex,hr=Be.onKeyDown,ar=Be.onFocus,Qn=Be.onBlur,gr=Be.onActiveChange,ir=Be.onListChangeStart,xr=Be.onListChangeEnd,Sr=(0,it.Z)(Be,Rl),yr=ve.useRef(null),rr=ve.useRef(null);ve.useImperativeHandle(We,function(){return{scrollTo:function(ua){yr.current.scrollTo(ua)},getIndentWidth:function(){return rr.current.offsetWidth}}});var _r=ve.useState(Kt),Qr=(0,Re.Z)(_r,2),ea=Qr[0],Ui=Qr[1],ji=ve.useState(De),pa=(0,Re.Z)(ji,2),Bi=pa[0],Ia=pa[1],Qa=ve.useState(De),ri=(0,Re.Z)(Qa,2),Br=ri[0],Ei=ri[1],Yi=ve.useState([]),xi=(0,Re.Z)(Yi,2),la=xi[0],Ai=xi[1],$i=ve.useState(null),wa=(0,Re.Z)($i,2),za=wa[0],Xa=wa[1],Qi=ve.useRef(De);Qi.current=De;function Pi(){var ma=Qi.current;Ia(ma),Ei(ma),Ai([]),Xa(null),xr()}ve.useEffect(function(){Ui(Kt);var ma=bl(ea,Kt);if(ma.key!==null)if(ma.add){var ua=Bi.findIndex(function(ui){var tr=ui.key;return tr===ma.key}),ii=ia(Io(Bi,De,ma.key),qn,sr,Un),bi=Bi.slice();bi.splice(ua+1,0,ul),Ei(bi),Ai(ii),Xa("show")}else{var va=De.findIndex(function(ui){var tr=ui.key;return tr===ma.key}),oa=ia(Io(De,Bi,ma.key),qn,sr,Un),Ra=De.slice();Ra.splice(va+1,0,ul),Ei(Ra),Ai(oa),Xa("hide")}else Bi!==De&&(Ia(De),Ei(De))},[Kt,De]),ve.useEffect(function(){gn||Pi()},[gn]);var La=Cn?Br:De,Sa={expandedKeys:Kt,selectedKeys:rt,loadedKeys:xt,loadingKeys:jt,checkedKeys:gt,halfCheckedKeys:$t,dragOverNodeKey:Ln,dropPosition:Wn,keyEntities:mn};return ve.createElement(ve.Fragment,null,kr&&Gn&&ve.createElement("span",{style:To,"aria-live":"assertive"},cl(Gn)),ve.createElement("div",null,ve.createElement("input",{style:To,disabled:mr===!1||qt,tabIndex:mr!==!1?Er:null,onKeyDown:hr,onFocus:ar,onBlur:Qn,value:"",onChange:Ls,"aria-label":"for screen reader"})),ve.createElement("div",{className:"".concat(Ct,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ve.createElement("div",{className:"".concat(Ct,"-indent")},ve.createElement("div",{ref:rr,className:"".concat(Ct,"-indent-unit")}))),ve.createElement(Ea,(0,lt.Z)({},Sr,{data:La,itemKey:ys,height:sr,fullHeight:!1,virtual:qn,itemHeight:Un,prefixCls:"".concat(Ct,"-list"),ref:yr,onVisibleChange:function(ua,ii){var bi=new Set(ua),va=ii.filter(function(oa){return!bi.has(oa)});va.some(function(oa){return ys(oa)===Uo})&&Pi()}}),function(ma){var ua=ma.pos,ii=(0,lt.Z)({},((0,Bn.Z)(ma.data),ma.data)),bi=ma.title,va=ma.key,oa=ma.isStart,Ra=ma.isEnd,ui=(0,Ua.km)(va,ua);delete ii.key,delete ii.children;var tr=(0,Ua.H8)(ui,Sa);return ve.createElement(Es,(0,lt.Z)({},ii,tr,{title:bi,active:!!Gn&&va===Gn.key,pos:ua,data:ma.data,isStart:oa,isEnd:Ra,motion:Cn,motionNodes:va===Uo?la:null,motionType:za,onMotionStart:ir,onMotionEnd:Pi,treeNodeRequiredProps:Sa,onMouseMove:function(){gr(null)}}))}))});Gs.displayName="NodeList";var is=Gs;function eo(Be){var We=Be.dropPosition,Ct=Be.dropLevelOffset,De=Be.indent,vt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(We){case-1:vt.top=0,vt.left=-Ct*De;break;case 1:vt.bottom=0,vt.left=-Ct*De;break;case 0:vt.bottom=0,vt.left=De;break}return ve.createElement("div",{style:vt})}var Ul=10,Fs=function(Be){(0,zn.Z)(Ct,Be);var We=(0,Rn.Z)(Ct);function Ct(){var De;(0,an.Z)(this,Ct);for(var vt=arguments.length,Mt=new Array(vt),Kt=0;Kt<vt;Kt++)Mt[Kt]=arguments[Kt];return De=We.call.apply(We,[this].concat(Mt)),De.destroyed=!1,De.delayedDragEnterLogic=void 0,De.loadingRetryTimes={},De.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,Ua.w$)()},De.dragStartMousePosition=null,De.dragNode=void 0,De.currentMouseOverDroppableNodeKey=null,De.listRef=ve.createRef(),De.onNodeDragStart=function(rt,gt){var xt=De.state,jt=xt.expandedKeys,$t=xt.keyEntities,mn=De.props.onDragStart,qt=gt.props.eventKey;De.dragNode=gt,De.dragStartMousePosition={x:rt.clientX,y:rt.clientY};var gn=(0,sn._5)(jt,qt);De.setState({draggingNodeKey:qt,dragChildrenKeys:(0,sn.wA)(qt,$t),indent:De.listRef.current.getIndentWidth()}),De.setExpandedKeys(gn),window.addEventListener("dragend",De.onWindowDragEnd),mn==null||mn({event:rt,node:(0,Ua.F)(gt.props)})},De.onNodeDragEnter=function(rt,gt){var xt=De.state,jt=xt.expandedKeys,$t=xt.keyEntities,mn=xt.dragChildrenKeys,qt=xt.flattenNodes,gn=xt.indent,Ln=De.props,Wn=Ln.onDragEnter,Cn=Ln.onExpand,sr=Ln.allowDrop,Un=Ln.direction,qn=gt.props,mr=qn.pos,Gn=qn.eventKey,kr=(0,In.Z)(De),Er=kr.dragNode;if(De.currentMouseOverDroppableNodeKey!==Gn&&(De.currentMouseOverDroppableNodeKey=Gn),!Er){De.resetDragState();return}var hr=(0,sn.OM)(rt,Er,gt,gn,De.dragStartMousePosition,sr,qt,$t,jt,Un),ar=hr.dropPosition,Qn=hr.dropLevelOffset,gr=hr.dropTargetKey,ir=hr.dropContainerKey,xr=hr.dropTargetPos,Sr=hr.dropAllowed,yr=hr.dragOverNodeKey;if(mn.indexOf(gr)!==-1||!Sr){De.resetDragState();return}if(De.delayedDragEnterLogic||(De.delayedDragEnterLogic={}),Object.keys(De.delayedDragEnterLogic).forEach(function(rr){clearTimeout(De.delayedDragEnterLogic[rr])}),Er.props.eventKey!==gt.props.eventKey&&(rt.persist(),De.delayedDragEnterLogic[mr]=window.setTimeout(function(){if(De.state.draggingNodeKey!==null){var rr=(0,ct.Z)(jt),_r=$t[gt.props.eventKey];_r&&(_r.children||[]).length&&(rr=(0,sn.L0)(jt,gt.props.eventKey)),"expandedKeys"in De.props||De.setExpandedKeys(rr),Cn==null||Cn(rr,{node:(0,Ua.F)(gt.props),expanded:!0,nativeEvent:rt.nativeEvent})}},800)),Er.props.eventKey===gr&&Qn===0){De.resetDragState();return}De.setState({dragOverNodeKey:yr,dropPosition:ar,dropLevelOffset:Qn,dropTargetKey:gr,dropContainerKey:ir,dropTargetPos:xr,dropAllowed:Sr}),Wn==null||Wn({event:rt,node:(0,Ua.F)(gt.props),expandedKeys:jt})},De.onNodeDragOver=function(rt,gt){var xt=De.state,jt=xt.dragChildrenKeys,$t=xt.flattenNodes,mn=xt.keyEntities,qt=xt.expandedKeys,gn=xt.indent,Ln=De.props,Wn=Ln.onDragOver,Cn=Ln.allowDrop,sr=Ln.direction,Un=(0,In.Z)(De),qn=Un.dragNode;if(qn){var mr=(0,sn.OM)(rt,qn,gt,gn,De.dragStartMousePosition,Cn,$t,mn,qt,sr),Gn=mr.dropPosition,kr=mr.dropLevelOffset,Er=mr.dropTargetKey,hr=mr.dropContainerKey,ar=mr.dropAllowed,Qn=mr.dropTargetPos,gr=mr.dragOverNodeKey;jt.indexOf(Er)!==-1||!ar||(qn.props.eventKey===Er&&kr===0?De.state.dropPosition===null&&De.state.dropLevelOffset===null&&De.state.dropTargetKey===null&&De.state.dropContainerKey===null&&De.state.dropTargetPos===null&&De.state.dropAllowed===!1&&De.state.dragOverNodeKey===null||De.resetDragState():Gn===De.state.dropPosition&&kr===De.state.dropLevelOffset&&Er===De.state.dropTargetKey&&hr===De.state.dropContainerKey&&Qn===De.state.dropTargetPos&&ar===De.state.dropAllowed&&gr===De.state.dragOverNodeKey||De.setState({dropPosition:Gn,dropLevelOffset:kr,dropTargetKey:Er,dropContainerKey:hr,dropTargetPos:Qn,dropAllowed:ar,dragOverNodeKey:gr}),Wn==null||Wn({event:rt,node:(0,Ua.F)(gt.props)}))}},De.onNodeDragLeave=function(rt,gt){De.currentMouseOverDroppableNodeKey===gt.props.eventKey&&!rt.currentTarget.contains(rt.relatedTarget)&&(De.resetDragState(),De.currentMouseOverDroppableNodeKey=null);var xt=De.props.onDragLeave;xt==null||xt({event:rt,node:(0,Ua.F)(gt.props)})},De.onWindowDragEnd=function(rt){De.onNodeDragEnd(rt,null,!0),window.removeEventListener("dragend",De.onWindowDragEnd)},De.onNodeDragEnd=function(rt,gt){var xt=De.props.onDragEnd;De.setState({dragOverNodeKey:null}),De.cleanDragState(),xt==null||xt({event:rt,node:(0,Ua.F)(gt.props)}),De.dragNode=null,window.removeEventListener("dragend",De.onWindowDragEnd)},De.onNodeDrop=function(rt,gt){var xt,jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,$t=De.state,mn=$t.dragChildrenKeys,qt=$t.dropPosition,gn=$t.dropTargetKey,Ln=$t.dropTargetPos,Wn=$t.dropAllowed;if(Wn){var Cn=De.props.onDrop;if(De.setState({dragOverNodeKey:null}),De.cleanDragState(),gn!==null){var sr=(0,Ve.Z)((0,Ve.Z)({},(0,Ua.H8)(gn,De.getTreeNodeRequiredProps())),{},{active:((xt=De.getActiveItem())===null||xt===void 0?void 0:xt.key)===gn,data:De.state.keyEntities[gn].node}),Un=mn.indexOf(gn)!==-1;(0,tt.ZP)(!Un,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var qn=(0,sn.yx)(Ln),mr={event:rt,node:(0,Ua.F)(sr),dragNode:De.dragNode?(0,Ua.F)(De.dragNode.props):null,dragNodesKeys:[De.dragNode.props.eventKey].concat(mn),dropToGap:qt!==0,dropPosition:qt+Number(qn[qn.length-1])};jt||Cn==null||Cn(mr),De.dragNode=null}}},De.cleanDragState=function(){var rt=De.state.draggingNodeKey;rt!==null&&De.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),De.dragStartMousePosition=null,De.currentMouseOverDroppableNodeKey=null},De.triggerExpandActionExpand=function(rt,gt){var xt=De.state,jt=xt.expandedKeys,$t=xt.flattenNodes,mn=gt.expanded,qt=gt.key,gn=gt.isLeaf;if(!(gn||rt.shiftKey||rt.metaKey||rt.ctrlKey)){var Ln=$t.filter(function(Cn){return Cn.key===qt})[0],Wn=(0,Ua.F)((0,Ve.Z)((0,Ve.Z)({},(0,Ua.H8)(qt,De.getTreeNodeRequiredProps())),{},{data:Ln.data}));De.setExpandedKeys(mn?(0,sn._5)(jt,qt):(0,sn.L0)(jt,qt)),De.onNodeExpand(rt,Wn)}},De.onNodeClick=function(rt,gt){var xt=De.props,jt=xt.onClick,$t=xt.expandAction;$t==="click"&&De.triggerExpandActionExpand(rt,gt),jt==null||jt(rt,gt)},De.onNodeDoubleClick=function(rt,gt){var xt=De.props,jt=xt.onDoubleClick,$t=xt.expandAction;$t==="doubleClick"&&De.triggerExpandActionExpand(rt,gt),jt==null||jt(rt,gt)},De.onNodeSelect=function(rt,gt){var xt=De.state.selectedKeys,jt=De.state,$t=jt.keyEntities,mn=jt.fieldNames,qt=De.props,gn=qt.onSelect,Ln=qt.multiple,Wn=gt.selected,Cn=gt[mn.key],sr=!Wn;sr?Ln?xt=(0,sn.L0)(xt,Cn):xt=[Cn]:xt=(0,sn._5)(xt,Cn);var Un=xt.map(function(qn){var mr=$t[qn];return mr?mr.node:null}).filter(function(qn){return qn});De.setUncontrolledState({selectedKeys:xt}),gn==null||gn(xt,{event:"select",selected:sr,node:gt,selectedNodes:Un,nativeEvent:rt.nativeEvent})},De.onNodeCheck=function(rt,gt,xt){var jt=De.state,$t=jt.keyEntities,mn=jt.checkedKeys,qt=jt.halfCheckedKeys,gn=De.props,Ln=gn.checkStrictly,Wn=gn.onCheck,Cn=gt.key,sr,Un={event:"check",node:gt,checked:xt,nativeEvent:rt.nativeEvent};if(Ln){var qn=xt?(0,sn.L0)(mn,Cn):(0,sn._5)(mn,Cn),mr=(0,sn._5)(qt,Cn);sr={checked:qn,halfChecked:mr},Un.checkedNodes=qn.map(function(Qn){return $t[Qn]}).filter(function(Qn){return Qn}).map(function(Qn){return Qn.node}),De.setUncontrolledState({checkedKeys:qn})}else{var Gn=(0,Us.S)([].concat((0,ct.Z)(mn),[Cn]),!0,$t),kr=Gn.checkedKeys,Er=Gn.halfCheckedKeys;if(!xt){var hr=new Set(kr);hr.delete(Cn);var ar=(0,Us.S)(Array.from(hr),{checked:!1,halfCheckedKeys:Er},$t);kr=ar.checkedKeys,Er=ar.halfCheckedKeys}sr=kr,Un.checkedNodes=[],Un.checkedNodesPositions=[],Un.halfCheckedKeys=Er,kr.forEach(function(Qn){var gr=$t[Qn];if(gr){var ir=gr.node,xr=gr.pos;Un.checkedNodes.push(ir),Un.checkedNodesPositions.push({node:ir,pos:xr})}}),De.setUncontrolledState({checkedKeys:kr},!1,{halfCheckedKeys:Er})}Wn==null||Wn(sr,Un)},De.onNodeLoad=function(rt){var gt=rt.key,xt=new Promise(function(jt,$t){De.setState(function(mn){var qt=mn.loadedKeys,gn=qt===void 0?[]:qt,Ln=mn.loadingKeys,Wn=Ln===void 0?[]:Ln,Cn=De.props,sr=Cn.loadData,Un=Cn.onLoad;if(!sr||gn.indexOf(gt)!==-1||Wn.indexOf(gt)!==-1)return null;var qn=sr(rt);return qn.then(function(){var mr=De.state.loadedKeys,Gn=(0,sn.L0)(mr,gt);Un==null||Un(Gn,{event:"load",node:rt}),De.setUncontrolledState({loadedKeys:Gn}),De.setState(function(kr){return{loadingKeys:(0,sn._5)(kr.loadingKeys,gt)}}),jt()}).catch(function(mr){if(De.setState(function(kr){return{loadingKeys:(0,sn._5)(kr.loadingKeys,gt)}}),De.loadingRetryTimes[gt]=(De.loadingRetryTimes[gt]||0)+1,De.loadingRetryTimes[gt]>=Ul){var Gn=De.state.loadedKeys;(0,tt.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),De.setUncontrolledState({loadedKeys:(0,sn.L0)(Gn,gt)}),jt()}$t(mr)}),{loadingKeys:(0,sn.L0)(Wn,gt)}})});return xt.catch(function(){}),xt},De.onNodeMouseEnter=function(rt,gt){var xt=De.props.onMouseEnter;xt==null||xt({event:rt,node:gt})},De.onNodeMouseLeave=function(rt,gt){var xt=De.props.onMouseLeave;xt==null||xt({event:rt,node:gt})},De.onNodeContextMenu=function(rt,gt){var xt=De.props.onRightClick;xt&&(rt.preventDefault(),xt({event:rt,node:gt}))},De.onFocus=function(){var rt=De.props.onFocus;De.setState({focused:!0});for(var gt=arguments.length,xt=new Array(gt),jt=0;jt<gt;jt++)xt[jt]=arguments[jt];rt==null||rt.apply(void 0,xt)},De.onBlur=function(){var rt=De.props.onBlur;De.setState({focused:!1}),De.onActiveChange(null);for(var gt=arguments.length,xt=new Array(gt),jt=0;jt<gt;jt++)xt[jt]=arguments[jt];rt==null||rt.apply(void 0,xt)},De.getTreeNodeRequiredProps=function(){var rt=De.state,gt=rt.expandedKeys,xt=rt.selectedKeys,jt=rt.loadedKeys,$t=rt.loadingKeys,mn=rt.checkedKeys,qt=rt.halfCheckedKeys,gn=rt.dragOverNodeKey,Ln=rt.dropPosition,Wn=rt.keyEntities;return{expandedKeys:gt||[],selectedKeys:xt||[],loadedKeys:jt||[],loadingKeys:$t||[],checkedKeys:mn||[],halfCheckedKeys:qt||[],dragOverNodeKey:gn,dropPosition:Ln,keyEntities:Wn}},De.setExpandedKeys=function(rt){var gt=De.state,xt=gt.treeData,jt=gt.fieldNames,$t=(0,Ua.oH)(xt,rt,jt);De.setUncontrolledState({expandedKeys:rt,flattenNodes:$t},!0)},De.onNodeExpand=function(rt,gt){var xt=De.state.expandedKeys,jt=De.state,$t=jt.listChanging,mn=jt.fieldNames,qt=De.props,gn=qt.onExpand,Ln=qt.loadData,Wn=gt.expanded,Cn=gt[mn.key];if(!$t){var sr=xt.indexOf(Cn),Un=!Wn;if((0,tt.ZP)(Wn&&sr!==-1||!Wn&&sr===-1,"Expand state not sync with index check"),Un?xt=(0,sn.L0)(xt,Cn):xt=(0,sn._5)(xt,Cn),De.setExpandedKeys(xt),gn==null||gn(xt,{node:gt,expanded:Un,nativeEvent:rt.nativeEvent}),Un&&Ln){var qn=De.onNodeLoad(gt);qn&&qn.then(function(){var mr=(0,Ua.oH)(De.state.treeData,xt,mn);De.setUncontrolledState({flattenNodes:mr})}).catch(function(){var mr=De.state.expandedKeys,Gn=(0,sn._5)(mr,Cn);De.setExpandedKeys(Gn)})}}},De.onListChangeStart=function(){De.setUncontrolledState({listChanging:!0})},De.onListChangeEnd=function(){setTimeout(function(){De.setUncontrolledState({listChanging:!1})})},De.onActiveChange=function(rt){var gt=De.state.activeKey,xt=De.props.onActiveChange;gt!==rt&&(De.setState({activeKey:rt}),rt!==null&&De.scrollTo({key:rt}),xt==null||xt(rt))},De.getActiveItem=function(){var rt=De.state,gt=rt.activeKey,xt=rt.flattenNodes;return gt===null?null:xt.find(function(jt){var $t=jt.key;return $t===gt})||null},De.offsetActiveKey=function(rt){var gt=De.state,xt=gt.flattenNodes,jt=gt.activeKey,$t=xt.findIndex(function(gn){var Ln=gn.key;return Ln===jt});$t===-1&&rt<0&&($t=xt.length),$t=($t+rt+xt.length)%xt.length;var mn=xt[$t];if(mn){var qt=mn.key;De.onActiveChange(qt)}else De.onActiveChange(null)},De.onKeyDown=function(rt){var gt=De.state,xt=gt.activeKey,jt=gt.expandedKeys,$t=gt.checkedKeys,mn=gt.fieldNames,qt=De.props,gn=qt.onKeyDown,Ln=qt.checkable,Wn=qt.selectable;switch(rt.which){case $e.Z.UP:{De.offsetActiveKey(-1),rt.preventDefault();break}case $e.Z.DOWN:{De.offsetActiveKey(1),rt.preventDefault();break}}var Cn=De.getActiveItem();if(Cn&&Cn.data){var sr=De.getTreeNodeRequiredProps(),Un=Cn.data.isLeaf===!1||!!(Cn.data[mn.children]||[]).length,qn=(0,Ua.F)((0,Ve.Z)((0,Ve.Z)({},(0,Ua.H8)(xt,sr)),{},{data:Cn.data,active:!0}));switch(rt.which){case $e.Z.LEFT:{Un&&jt.includes(xt)?De.onNodeExpand({},qn):Cn.parent&&De.onActiveChange(Cn.parent.key),rt.preventDefault();break}case $e.Z.RIGHT:{Un&&!jt.includes(xt)?De.onNodeExpand({},qn):Cn.children&&Cn.children.length&&De.onActiveChange(Cn.children[0].key),rt.preventDefault();break}case $e.Z.ENTER:case $e.Z.SPACE:{Ln&&!qn.disabled&&qn.checkable!==!1&&!qn.disableCheckbox?De.onNodeCheck({},qn,!$t.includes(xt)):!Ln&&Wn&&!qn.disabled&&qn.selectable!==!1&&De.onNodeSelect({},qn);break}}}gn==null||gn(rt)},De.setUncontrolledState=function(rt){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!De.destroyed){var jt=!1,$t=!0,mn={};Object.keys(rt).forEach(function(qt){if(qt in De.props){$t=!1;return}jt=!0,mn[qt]=rt[qt]}),jt&&(!gt||$t)&&De.setState((0,Ve.Z)((0,Ve.Z)({},mn),xt))}},De.scrollTo=function(rt){De.listRef.current.scrollTo(rt)},De}return(0,Rt.Z)(Ct,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var vt=this.props.activeKey;vt!==void 0&&vt!==this.state.activeKey&&(this.setState({activeKey:vt}),vt!==null&&this.scrollTo({key:vt}))}},{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 vt,Mt=this.state,Kt=Mt.focused,rt=Mt.flattenNodes,gt=Mt.keyEntities,xt=Mt.draggingNodeKey,jt=Mt.activeKey,$t=Mt.dropLevelOffset,mn=Mt.dropContainerKey,qt=Mt.dropTargetKey,gn=Mt.dropPosition,Ln=Mt.dragOverNodeKey,Wn=Mt.indent,Cn=this.props,sr=Cn.prefixCls,Un=Cn.className,qn=Cn.style,mr=Cn.showLine,Gn=Cn.focusable,kr=Cn.tabIndex,Er=kr===void 0?0:kr,hr=Cn.selectable,ar=Cn.showIcon,Qn=Cn.icon,gr=Cn.switcherIcon,ir=Cn.draggable,xr=Cn.checkable,Sr=Cn.checkStrictly,yr=Cn.disabled,rr=Cn.motion,_r=Cn.loadData,Qr=Cn.filterTreeNode,ea=Cn.height,Ui=Cn.itemHeight,ji=Cn.virtual,pa=Cn.titleRender,Bi=Cn.dropIndicatorRender,Ia=Cn.onContextMenu,Qa=Cn.onScroll,ri=Cn.direction,Br=Cn.rootClassName,Ei=Cn.rootStyle,Yi=(0,Xt.Z)(this.props,{aria:!0,data:!0}),xi;return ir&&((0,ke.Z)(ir)==="object"?xi=ir:typeof ir=="function"?xi={nodeDraggable:ir}:xi={}),ve.createElement(Mn.k.Provider,{value:{prefixCls:sr,selectable:hr,showIcon:ar,icon:Qn,switcherIcon:gr,draggable:xi,draggingNodeKey:xt,checkable:xr,checkStrictly:Sr,disabled:yr,keyEntities:gt,dropLevelOffset:$t,dropContainerKey:mn,dropTargetKey:qt,dropPosition:gn,dragOverNodeKey:Ln,indent:Wn,direction:ri,dropIndicatorRender:Bi,loadData:_r,filterTreeNode:Qr,titleRender:pa,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}},ve.createElement("div",{role:"tree",className:Ee()(sr,Un,Br,(vt={},(0,we.Z)(vt,"".concat(sr,"-show-line"),mr),(0,we.Z)(vt,"".concat(sr,"-focused"),Kt),(0,we.Z)(vt,"".concat(sr,"-active-focused"),jt!==null),vt)),style:Ei},ve.createElement(is,(0,lt.Z)({ref:this.listRef,prefixCls:sr,style:qn,data:rt,disabled:yr,selectable:hr,checkable:!!xr,motion:rr,dragging:xt!==null,height:ea,itemHeight:Ui,virtual:ji,focusable:Gn,focused:Kt,tabIndex:Er,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ia,onScroll:Qa},this.getTreeNodeRequiredProps(),Yi))))}}],[{key:"getDerivedStateFromProps",value:function(vt,Mt){var Kt=Mt.prevProps,rt={prevProps:vt};function gt(Gn){return!Kt&&Gn in vt||Kt&&Kt[Gn]!==vt[Gn]}var xt,jt=Mt.fieldNames;if(gt("fieldNames")&&(jt=(0,Ua.w$)(vt.fieldNames),rt.fieldNames=jt),gt("treeData")?xt=vt.treeData:gt("children")&&((0,tt.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),xt=(0,Ua.zn)(vt.children)),xt){rt.treeData=xt;var $t=(0,Ua.I8)(xt,{fieldNames:jt});rt.keyEntities=(0,Ve.Z)((0,we.Z)({},Uo,ll),$t.keyEntities)}var mn=rt.keyEntities||Mt.keyEntities;if(gt("expandedKeys")||Kt&>("autoExpandParent"))rt.expandedKeys=vt.autoExpandParent||!Kt&&vt.defaultExpandParent?(0,sn.r7)(vt.expandedKeys,mn):vt.expandedKeys;else if(!Kt&&vt.defaultExpandAll){var qt=(0,Ve.Z)({},mn);delete qt[Uo],rt.expandedKeys=Object.keys(qt).map(function(Gn){return qt[Gn].key})}else!Kt&&vt.defaultExpandedKeys&&(rt.expandedKeys=vt.autoExpandParent||vt.defaultExpandParent?(0,sn.r7)(vt.defaultExpandedKeys,mn):vt.defaultExpandedKeys);if(rt.expandedKeys||delete rt.expandedKeys,xt||rt.expandedKeys){var gn=(0,Ua.oH)(xt||Mt.treeData,rt.expandedKeys||Mt.expandedKeys,jt);rt.flattenNodes=gn}if(vt.selectable&&(gt("selectedKeys")?rt.selectedKeys=(0,sn.BT)(vt.selectedKeys,vt):!Kt&&vt.defaultSelectedKeys&&(rt.selectedKeys=(0,sn.BT)(vt.defaultSelectedKeys,vt))),vt.checkable){var Ln;if(gt("checkedKeys")?Ln=(0,sn.E6)(vt.checkedKeys)||{}:!Kt&&vt.defaultCheckedKeys?Ln=(0,sn.E6)(vt.defaultCheckedKeys)||{}:xt&&(Ln=(0,sn.E6)(vt.checkedKeys)||{checkedKeys:Mt.checkedKeys,halfCheckedKeys:Mt.halfCheckedKeys}),Ln){var Wn=Ln,Cn=Wn.checkedKeys,sr=Cn===void 0?[]:Cn,Un=Wn.halfCheckedKeys,qn=Un===void 0?[]:Un;if(!vt.checkStrictly){var mr=(0,Us.S)(sr,!0,mn);sr=mr.checkedKeys,qn=mr.halfCheckedKeys}rt.checkedKeys=sr,rt.halfCheckedKeys=qn}}return gt("loadedKeys")&&(rt.loadedKeys=vt.loadedKeys),rt}}]),Ct}(ve.Component);Fs.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:eo,allowDrop:function(){return!0},expandAction:!1},Fs.TreeNode=fi.Z;var Fl=Fs,Hu=Fl,zu=ve.createContext(null),dl=zu;function Fu(Be){return Array.isArray(Be)?Be:Be!==void 0?[Be]:[]}function jl(Be){var We=Be||{},Ct=We.label,De=We.value,vt=We.children,Mt=De||"value";return{_title:Ct?[Ct]:["title","label"],value:Mt,key:Mt,children:vt||"children"}}function fu(Be){return!Be||Be.disabled||Be.disableCheckbox||Be.checkable===!1}function yu(Be,We){var Ct=[];function De(vt){vt.forEach(function(Mt){var Kt=Mt[We.children];Kt&&(Ct.push(Mt[We.value]),De(Kt))})}return De(Be),Ct}function hu(Be){return Be==null}var pu={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},mu=function(We,Ct){var De=ot(),vt=De.prefixCls,Mt=De.multiple,Kt=De.searchValue,rt=De.toggleOpen,gt=De.open,xt=De.notFoundContent,jt=ve.useContext(dl),$t=jt.virtual,mn=jt.listHeight,qt=jt.listItemHeight,gn=jt.treeData,Ln=jt.fieldNames,Wn=jt.onSelect,Cn=jt.dropdownMatchSelectWidth,sr=jt.treeExpandAction,Un=ve.useContext(Ft),qn=Un.checkable,mr=Un.checkedKeys,Gn=Un.halfCheckedKeys,kr=Un.treeExpandedKeys,Er=Un.treeDefaultExpandAll,hr=Un.treeDefaultExpandedKeys,ar=Un.onTreeExpand,Qn=Un.treeIcon,gr=Un.showTreeIcon,ir=Un.switcherIcon,xr=Un.treeLine,Sr=Un.treeNodeFilterProp,yr=Un.loadData,rr=Un.treeLoadedKeys,_r=Un.treeMotion,Qr=Un.onTreeLoad,ea=Un.keyEntities,Ui=ve.useRef(),ji=(0,Go.Z)(function(){return gn},[gt,gn],function(ii,bi){return bi[0]&&ii[1]!==bi[1]}),pa=ve.useState(null),Bi=(0,Re.Z)(pa,2),Ia=Bi[0],Qa=Bi[1],ri=ea[Ia],Br=ve.useMemo(function(){return qn?{checked:mr,halfChecked:Gn}:null},[qn,mr,Gn]);ve.useEffect(function(){if(gt&&!Mt&&mr.length){var ii;(ii=Ui.current)===null||ii===void 0||ii.scrollTo({key:mr[0]}),Qa(mr[0])}},[gt]);var Ei=String(Kt).toLowerCase(),Yi=function(bi){return Ei?String(bi[Sr]).toLowerCase().includes(Ei):!1},xi=ve.useState(hr),la=(0,Re.Z)(xi,2),Ai=la[0],$i=la[1],wa=ve.useState(null),za=(0,Re.Z)(wa,2),Xa=za[0],Qi=za[1],Pi=ve.useMemo(function(){return kr?(0,ct.Z)(kr):Kt?Xa:Ai},[Ai,Xa,kr,Kt]);ve.useEffect(function(){Kt&&Qi(yu(gn,Ln))},[Kt]);var La=function(bi){$i(bi),Qi(bi),ar&&ar(bi)},Sa=function(bi){bi.preventDefault()},ma=function(bi,va){var oa=va.node;qn&&fu(oa)||(Wn(oa.key,{selected:!mr.includes(oa.key)}),Mt||rt(!1))};if(ve.useImperativeHandle(Ct,function(){var ii;return{scrollTo:(ii=Ui.current)===null||ii===void 0?void 0:ii.scrollTo,onKeyDown:function(va){var oa,Ra=va.which;switch(Ra){case $e.Z.UP:case $e.Z.DOWN:case $e.Z.LEFT:case $e.Z.RIGHT:(oa=Ui.current)===null||oa===void 0||oa.onKeyDown(va);break;case $e.Z.ENTER:{if(ri){var ui=(ri==null?void 0:ri.node)||{},tr=ui.selectable,Nr=ui.value;tr!==!1&&ma(null,{node:{key:Ia},selected:!mr.includes(Nr)})}break}case $e.Z.ESC:rt(!1)}},onKeyUp:function(){}}}),ji.length===0)return ve.createElement("div",{role:"listbox",className:"".concat(vt,"-empty"),onMouseDown:Sa},xt);var ua={fieldNames:Ln};return rr&&(ua.loadedKeys=rr),Pi&&(ua.expandedKeys=Pi),ve.createElement("div",{onMouseDown:Sa},ri&>&&ve.createElement("span",{style:pu,"aria-live":"assertive"},ri.node.value),ve.createElement(Hu,(0,lt.Z)({ref:Ui,focusable:!1,prefixCls:"".concat(vt,"-tree"),treeData:ji,height:mn,itemHeight:qt,virtual:$t!==!1&&Cn!==!1,multiple:Mt,icon:Qn,showIcon:gr,switcherIcon:ir,showLine:xr,loadData:Kt?null:yr,motion:_r,activeKey:Ia,checkable:qn,checkStrictly:!0,checkedKeys:Br,selectedKeys:qn?[]:mr,defaultExpandAll:Er},ua,{onActiveChange:Qa,onSelect:ma,onCheck:ma,onExpand:La,onLoad:Qr,filterTreeNode:Yi,expandAction:sr})))},bu=ve.forwardRef(mu);bu.displayName="OptionList";var $s=bu,xu="SHOW_ALL",Zl="SHOW_PARENT",Al="SHOW_CHILD";function Pu(Be,We,Ct,De){var vt=new Set(Be);return We===Al?Be.filter(function(Mt){var Kt=Ct[Mt];return!(Kt&&Kt.children&&Kt.children.some(function(rt){var gt=rt.node;return vt.has(gt[De.value])})&&Kt.children.every(function(rt){var gt=rt.node;return fu(gt)||vt.has(gt[De.value])}))}):We===Zl?Be.filter(function(Mt){var Kt=Ct[Mt],rt=Kt?Kt.parent:null;return!(rt&&!fu(rt.node)&&vt.has(rt.key))}):Be}function wu(Be){var We=Be.searchPlaceholder,Ct=Be.treeCheckStrictly,De=Be.treeCheckable,vt=Be.labelInValue,Mt=Be.value,Kt=Be.multiple;warning(!We,"`searchPlaceholder` has been removed."),Ct&&vt===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(vt||Ct)&&warning(toArray(Mt).every(function(rt){return rt&&_typeof(rt)==="object"&&"value"in rt}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Ct||Kt||De?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 Iu=null,$u=["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 au(Be){return!Be||(0,ke.Z)(Be)!=="object"}var Cu=ve.forwardRef(function(Be,We){var Ct=Be.id,De=Be.prefixCls,vt=De===void 0?"rc-tree-select":De,Mt=Be.value,Kt=Be.defaultValue,rt=Be.onChange,gt=Be.onSelect,xt=Be.onDeselect,jt=Be.searchValue,$t=Be.inputValue,mn=Be.onSearch,qt=Be.autoClearSearchValue,gn=qt===void 0?!0:qt,Ln=Be.filterTreeNode,Wn=Be.treeNodeFilterProp,Cn=Wn===void 0?"value":Wn,sr=Be.showCheckedStrategy,Un=Be.treeNodeLabelProp,qn=Be.multiple,mr=Be.treeCheckable,Gn=Be.treeCheckStrictly,kr=Be.labelInValue,Er=Be.fieldNames,hr=Be.treeDataSimpleMode,ar=Be.treeData,Qn=Be.children,gr=Be.loadData,ir=Be.treeLoadedKeys,xr=Be.onTreeLoad,Sr=Be.treeDefaultExpandAll,yr=Be.treeExpandedKeys,rr=Be.treeDefaultExpandedKeys,_r=Be.onTreeExpand,Qr=Be.treeExpandAction,ea=Be.virtual,Ui=Be.listHeight,ji=Ui===void 0?200:Ui,pa=Be.listItemHeight,Bi=pa===void 0?20:pa,Ia=Be.onDropdownVisibleChange,Qa=Be.dropdownMatchSelectWidth,ri=Qa===void 0?!0:Qa,Br=Be.treeLine,Ei=Be.treeIcon,Yi=Be.showTreeIcon,xi=Be.switcherIcon,la=Be.treeMotion,Ai=(0,it.Z)(Be,$u),$i=io(Ct),wa=mr&&!Gn,za=mr||Gn,Xa=Gn||kr,Qi=za||qn,Pi=(0,at.Z)(Kt,{value:Mt}),La=(0,Re.Z)(Pi,2),Sa=La[0],ma=La[1],ua=ve.useMemo(function(){return mr?sr||Al:xu},[sr,mr]),ii=ve.useMemo(function(){return jl(Er)},[JSON.stringify(Er)]),bi=(0,at.Z)("",{value:jt!==void 0?jt:$t,postState:function(ca){return ca||""}}),va=(0,Re.Z)(bi,2),oa=va[0],Ra=va[1],ui=function(ca){Ra(ca),mn==null||mn(ca)},tr=Ae(ar,Qn,hr),Nr=_s(tr,ii),Gr=Nr.keyEntities,pr=Nr.valueEntities,Ji=ve.useCallback(function(to){var ca=[],mo=[];return to.forEach(function(no){pr.has(no)?mo.push(no):ca.push(no)}),{missingRawValues:ca,existRawValues:mo}},[pr]),Fa=_e(tr,oa,{fieldNames:ii,treeNodeFilterProp:Cn,filterTreeNode:Ln}),Mo=ve.useCallback(function(to){if(to){if(Un)return to[Un];for(var ca=ii._title,mo=0;mo<ca.length;mo+=1){var no=to[ca[mo]];if(no!==void 0)return no}}},[ii,Un]),ao=ve.useCallback(function(to){var ca=Fu(to);return ca.map(function(mo){return au(mo)?{value:mo}:mo})},[]),Wo=ve.useCallback(function(to){var ca=ao(to);return ca.map(function(mo){var no=mo.label,as=mo.value,us=mo.halfChecked,Mi,na=pr.get(as);if(na){var oo;no=(oo=no)!==null&&oo!==void 0?oo:Mo(na.node),Mi=na.node.disabled}else if(no===void 0){var os=ao(Sa).find(function(zo){return zo.value===as});no=os.label}return{label:no,value:as,halfChecked:us,disabled:Mi}})},[pr,Mo,ao,Sa]),po=ve.useMemo(function(){return ao(Sa)},[ao,Sa]),Ps=ve.useMemo(function(){var to=[],ca=[];return po.forEach(function(mo){mo.halfChecked?ca.push(mo):to.push(mo)}),[to,ca]},[po]),bs=(0,Re.Z)(Ps,2),xs=bs[0],Hs=bs[1],fl=ve.useMemo(function(){return xs.map(function(to){return to.value})},[xs]),el=ml(xs,Hs,wa,Gr),Hl=(0,Re.Z)(el,2),sa=Hl[0],Ur=Hl[1],Ri=ve.useMemo(function(){var to=Pu(sa,ua,Gr,ii),ca=to.map(function(us){var Mi,na,oo;return(Mi=(na=Gr[us])===null||na===void 0||(oo=na.node)===null||oo===void 0?void 0:oo[ii.value])!==null&&Mi!==void 0?Mi:us}),mo=ca.map(function(us){var Mi=xs.find(function(na){return na.value===us});return{value:us,label:Mi==null?void 0:Mi.label}}),no=Wo(mo),as=no[0];return!Qi&&as&&hu(as.value)&&hu(as.label)?[]:no.map(function(us){var Mi;return(0,Ve.Z)((0,Ve.Z)({},us),{},{label:(Mi=us.label)!==null&&Mi!==void 0?Mi:us.value})})},[ii,Qi,sa,xs,Wo,ua,Gr]),Jn=js(Ri),Ki=(0,Re.Z)(Jn,1),Do=Ki[0],No=nt(function(to,ca,mo){var no=Wo(to);if(ma(no),gn&&Ra(""),rt){var as=to;if(wa){var us=Pu(to,ua,Gr,ii);as=us.map(function(Ts){var Ns=pr.get(Ts);return Ns?Ns.node[ii.value]:Ts})}var Mi=ca||{triggerValue:void 0,selected:void 0},na=Mi.triggerValue,oo=Mi.selected,os=as;if(Gn){var zo=Hs.filter(function(Ts){return!as.includes(Ts.value)});os=[].concat((0,ct.Z)(os),(0,ct.Z)(zo))}var Is=Wo(os),Qo={preValue:xs,triggerValue:na},zl=!0;(Gn||mo==="selection"&&!oo)&&(zl=!1),gs(Qo,na,to,tr,zl,ii),za?Qo.checked=oo:Qo.selected=oo;var Ml=Xa?Is:Is.map(function(Ts){return Ts.value});rt(Qi?Ml:Ml[0],Xa?null:Is.map(function(Ts){return Ts.label}),Qo)}}),$o=ve.useCallback(function(to,ca){var mo,no=ca.selected,as=ca.source,us=Gr[to],Mi=us==null?void 0:us.node,na=(mo=Mi==null?void 0:Mi[ii.value])!==null&&mo!==void 0?mo:to;if(!Qi)No([na],{selected:!0,triggerValue:na},"option");else{var oo=no?[].concat((0,ct.Z)(fl),[na]):sa.filter(function(Ns){return Ns!==na});if(wa){var os=Ji(oo),zo=os.missingRawValues,Is=os.existRawValues,Qo=Is.map(function(Ns){return pr.get(Ns).key}),zl;if(no){var Ml=(0,Us.S)(Qo,!0,Gr);zl=Ml.checkedKeys}else{var Ts=(0,Us.S)(Qo,{checked:!1,halfCheckedKeys:Ur},Gr);zl=Ts.checkedKeys}oo=[].concat((0,ct.Z)(zo),(0,ct.Z)(zl.map(function(Ns){return Gr[Ns].node[ii.value]})))}No(oo,{selected:no,triggerValue:na},as||"option")}no||!Qi?gt==null||gt(na,vs(Mi)):xt==null||xt(na,vs(Mi))},[Ji,pr,Gr,ii,Qi,fl,No,wa,gt,xt,sa,Ur]),Oo=ve.useCallback(function(to){if(Ia){var ca={};Object.defineProperty(ca,"documentClickClose",{get:function(){return(0,tt.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Ia(to,ca)}},[Ia]),kl=nt(function(to,ca){var mo=to.map(function(no){return no.value});if(ca.type==="clear"){No(mo,{},"selection");return}ca.values.length&&$o(ca.values[0].value,{selected:!1,source:"selection"})}),ws=ve.useMemo(function(){return{virtual:ea,dropdownMatchSelectWidth:ri,listHeight:ji,listItemHeight:Bi,treeData:Fa,fieldNames:ii,onSelect:$o,treeExpandAction:Qr}},[ea,ri,ji,Bi,Fa,ii,$o,Qr]),Yl=ve.useMemo(function(){return{checkable:za,loadData:gr,treeLoadedKeys:ir,onTreeLoad:xr,checkedKeys:sa,halfCheckedKeys:Ur,treeDefaultExpandAll:Sr,treeExpandedKeys:yr,treeDefaultExpandedKeys:rr,onTreeExpand:_r,treeIcon:Ei,treeMotion:la,showTreeIcon:Yi,switcherIcon:xi,treeLine:Br,treeNodeFilterProp:Cn,keyEntities:Gr}},[za,gr,ir,xr,sa,Ur,Sr,yr,rr,_r,Ei,la,Yi,xi,Br,Cn,Gr]);return ve.createElement(dl.Provider,{value:ws},ve.createElement(Ft.Provider,{value:Yl},ve.createElement(fo,(0,lt.Z)({ref:We},Ai,{id:$i,prefixCls:vt,mode:Qi?"multiple":void 0,displayValues:Do,onDisplayValuesChange:kl,searchValue:oa,onSearch:ui,OptionList:$s,emptyOptions:!tr.length,onDropdownVisibleChange:Oo,dropdownMatchSelectWidth:ri}))))}),Pl=Cu;Pl.TreeNode=Zs,Pl.SHOW_ALL=xu,Pl.SHOW_PARENT=Zl,Pl.SHOW_CHILD=Al;var _l=Pl,Ys=_l,Gl=he(10366),ou=he(8745),Eu=he(33603),su=he(9708),Kl=he(53124),ko=he(98866),Ba=he(88258),Yo=he(98675),ls=he(65223),Te=he(87244),He=he(13458),Nt=he(78642),Tt=he(46163),hn=he(4173),En=he(99184),Nn=he(63185),or=he(45503),lr=he(67968),vr=he(32157);const si=Be=>{const{componentCls:We,treePrefixCls:Ct,colorBgElevated:De}=Be,vt=`.${Ct}`;return[{[`${We}-dropdown`]:[{padding:`${Be.paddingXS}px ${Be.paddingXS/2}px`},(0,vr.Yk)(Ct,(0,or.TS)(Be,{colorBgContainer:De})),{[vt]:{borderRadius:0,[`${vt}-list-holder-inner`]:{alignItems:"stretch",[`${vt}-treenode`]:{[`${vt}-node-content-wrapper`]:{flex:"auto"}}}}},(0,Nn.C2)(`${Ct}-checkbox`,Be),{"&-rtl":{direction:"rtl",[`${vt}-switcher${vt}-switcher_close`]:{[`${vt}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Fr(Be,We){return(0,lr.Z)("TreeSelect",Ct=>{const De=(0,or.TS)(Ct,{treePrefixCls:We});return[si(De)]},vr.TM)(Be)}var hi=function(Be,We){var Ct={};for(var De in Be)Object.prototype.hasOwnProperty.call(Be,De)&&We.indexOf(De)<0&&(Ct[De]=Be[De]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,De=Object.getOwnPropertySymbols(Be);vt<De.length;vt++)We.indexOf(De[vt])<0&&Object.prototype.propertyIsEnumerable.call(Be,De[vt])&&(Ct[De[vt]]=Be[De[vt]]);return Ct};const Mr=(Be,We)=>{var Ct,{prefixCls:De,size:vt,disabled:Mt,bordered:Kt=!0,className:rt,rootClassName:gt,treeCheckable:xt,multiple:jt,listHeight:$t=256,listItemHeight:mn=26,placement:qt,notFoundContent:gn,switcherIcon:Ln,treeLine:Wn,getPopupContainer:Cn,popupClassName:sr,dropdownClassName:Un,treeIcon:qn=!1,transitionName:mr,choiceTransitionName:Gn="",status:kr,treeExpandAction:Er,builtinPlacements:hr,dropdownMatchSelectWidth:ar,popupMatchSelectWidth:Qn,allowClear:gr}=Be,ir=hi(Be,["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:xr,getPrefixCls:Sr,renderEmpty:yr,direction:rr,virtual:_r,popupMatchSelectWidth:Qr,popupOverflow:ea}=ve.useContext(Kl.E_),Ui=Sr(),ji=Sr("select",De),pa=Sr("select-tree",De),Bi=Sr("tree-select",De),{compactSize:Ia,compactItemClassnames:Qa}=(0,hn.ri)(ji,rr),[ri,Br]=(0,Te.Z)(ji),[Ei]=Fr(Bi,pa),Yi=Ee()(sr||Un,`${Bi}-dropdown`,{[`${Bi}-dropdown-rtl`]:rr==="rtl"},gt,Br),xi=!!(xt||jt),la=(0,Nt.Z)(ir.suffixIcon,ir.showArrow),Ai=(Ct=Qn!=null?Qn:ar)!==null&&Ct!==void 0?Ct:Qr,{status:$i,hasFeedback:wa,isFormItemInput:za,feedbackIcon:Xa}=ve.useContext(ls.aM),Qi=(0,su.F)($i,kr),{suffixIcon:Pi,removeIcon:La,clearIcon:Sa}=(0,Tt.Z)(Object.assign(Object.assign({},ir),{multiple:xi,showSuffixIcon:la,hasFeedback:wa,feedbackIcon:Xa,prefixCls:ji,componentName:"TreeSelect"})),ma=gr===!0?{clearIcon:Sa}:gr;let ua;gn!==void 0?ua=gn:ua=(yr==null?void 0:yr("Select"))||ve.createElement(Ba.Z,{componentName:"Select"});const ii=(0,Gl.Z)(ir,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),bi=ve.useMemo(()=>qt!==void 0?qt:rr==="rtl"?"bottomRight":"bottomLeft",[qt,rr]),va=(0,He.Z)(hr,ea),oa=(0,Yo.Z)(pr=>{var Ji;return(Ji=vt!=null?vt:Ia)!==null&&Ji!==void 0?Ji:pr}),Ra=ve.useContext(ko.Z),ui=Mt!=null?Mt:Ra,tr=Ee()(!De&&Bi,{[`${ji}-lg`]:oa==="large",[`${ji}-sm`]:oa==="small",[`${ji}-rtl`]:rr==="rtl",[`${ji}-borderless`]:!Kt,[`${ji}-in-form-item`]:za},(0,su.Z)(ji,Qi,wa),Qa,rt,gt,Br),Nr=pr=>ve.createElement(En.Z,{prefixCls:pa,switcherIcon:Ln,treeNodeProps:pr,showLine:Wn}),Gr=ve.createElement(Ys,Object.assign({virtual:_r,disabled:ui},ii,{dropdownMatchSelectWidth:Ai,builtinPlacements:va,ref:We,prefixCls:ji,className:tr,listHeight:$t,listItemHeight:mn,treeCheckable:xt&&ve.createElement("span",{className:`${ji}-tree-checkbox-inner`}),treeLine:!!Wn,suffixIcon:Pi,multiple:xi,placement:bi,removeIcon:La,allowClear:ma,switcherIcon:Nr,showTreeIcon:qn,notFoundContent:ua,getPopupContainer:Cn||xr,treeMotion:null,dropdownClassName:Yi,choiceTransitionName:(0,Eu.m)(Ui,"",Gn),transitionName:(0,Eu.m)(Ui,"slide-up",mr),treeExpandAction:Er}));return ri(Ei(Gr))},Rr=ve.forwardRef(Mr),pi=(0,ou.Z)(Rr);Rr.TreeNode=Zs,Rr.SHOW_ALL=xu,Rr.SHOW_PARENT=Zl,Rr.SHOW_CHILD=Al,Rr._InternalPanelDoNotUseOrYouWillBeFired=pi;var ki=Rr},88386:function(dn,vn,he){(function(te){te(he(4631))})(function(te){te.defineOption("placeholder","",function(ke,we,at){var tt=at&&at!=te.Init;if(we&&!tt)ke.on("blur",Ve),ke.on("change",Re),ke.on("swapDoc",Re),te.on(ke.getInputField(),"compositionupdate",ke.state.placeholderCompose=function(){ct(ke)}),Re(ke);else if(!we&&tt){ke.off("blur",Ve),ke.off("change",Re),ke.off("swapDoc",Re),te.off(ke.getInputField(),"compositionupdate",ke.state.placeholderCompose),Ee(ke);var ve=ke.getWrapperElement();ve.className=ve.className.replace(" CodeMirror-empty","")}we&&!ke.hasFocus()&&Ve(ke)});function Ee(ke){ke.state.placeholder&&(ke.state.placeholder.parentNode.removeChild(ke.state.placeholder),ke.state.placeholder=null)}function lt(ke){Ee(ke);var we=ke.state.placeholder=document.createElement("pre");we.style.cssText="height: 0; overflow: visible",we.style.direction=ke.getOption("direction"),we.className="CodeMirror-placeholder CodeMirror-line-like";var at=ke.getOption("placeholder");typeof at=="string"&&(at=document.createTextNode(at)),we.appendChild(at),ke.display.lineSpace.insertBefore(we,ke.display.lineSpace.firstChild)}function ct(ke){setTimeout(function(){var we=!1,at=ke.getInputField();at.nodeName=="TEXTAREA"?we=!at.value:ke.lineCount()==1&&(we=!/[^\u200b]/.test(at.querySelector(".CodeMirror-line").textContent)),we?lt(ke):Ee(ke)},20)}function Ve(ke){it(ke)&<(ke)}function Re(ke){var we=ke.getWrapperElement(),at=it(ke);we.className=we.className.replace(" CodeMirror-empty","")+(at?" CodeMirror-empty":""),at?lt(ke):Ee(ke)}function it(ke){return ke.lineCount()===1&&ke.getLine(0)===""}})},82801:function(dn,vn,he){(function(te){te(he(4631))})(function(te){var Ee={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},lt=te.Pos;te.defineOption("autoCloseBrackets",!1,function($e,dt,Qe){Qe&&Qe!=te.Init&&($e.removeKeyMap(Ve),$e.state.closeBrackets=null),dt&&(Re(ct(dt,"pairs")),$e.state.closeBrackets=dt,$e.addKeyMap(Ve))});function ct($e,dt){return dt=="pairs"&&typeof $e=="string"?$e:typeof $e=="object"&&$e[dt]!=null?$e[dt]:Ee[dt]}var Ve={Backspace:we,Enter:at};function Re($e){for(var dt=0;dt<$e.length;dt++){var Qe=$e.charAt(dt),et="'"+Qe+"'";Ve[et]||(Ve[et]=it(Qe))}}Re(Ee.pairs+"`");function it($e){return function(dt){return ve(dt,$e)}}function ke($e){var dt=$e.state.closeBrackets;if(!dt||dt.override)return dt;var Qe=$e.getModeAt($e.getCursor());return Qe.closeBrackets||dt}function we($e){var dt=ke($e);if(!dt||$e.getOption("disableInput"))return te.Pass;for(var Qe=ct(dt,"pairs"),et=$e.listSelections(),ft=0;ft<et.length;ft++){if(!et[ft].empty())return te.Pass;var Je=kt($e,et[ft].head);if(!Je||Qe.indexOf(Je)%2!=0)return te.Pass}for(var ft=et.length-1;ft>=0;ft--){var ot=et[ft].head;$e.replaceRange("",lt(ot.line,ot.ch-1),lt(ot.line,ot.ch+1),"+delete")}}function at($e){var dt=ke($e),Qe=dt&&ct(dt,"explode");if(!Qe||$e.getOption("disableInput"))return te.Pass;for(var et=$e.listSelections(),ft=0;ft<et.length;ft++){if(!et[ft].empty())return te.Pass;var Je=kt($e,et[ft].head);if(!Je||Qe.indexOf(Je)%2!=0)return te.Pass}$e.operation(function(){var ot=$e.lineSeparator()||`
|
|
|
`;$e.replaceSelection(ot+ot,null),$e.execCommand("goCharLeft"),et=$e.listSelections();for(var ht=0;ht<et.length;ht++){var yt=et[ht].head.line;$e.indentLine(yt,null,!0),$e.indentLine(yt+1,null,!0)}})}function tt($e){var dt=te.cmpPos($e.anchor,$e.head)>0;return{anchor:new lt($e.anchor.line,$e.anchor.ch+(dt?-1:1)),head:new lt($e.head.line,$e.head.ch+(dt?1:-1))}}function ve($e,dt){var Qe=ke($e);if(!Qe||$e.getOption("disableInput"))return te.Pass;var et=ct(Qe,"pairs"),ft=et.indexOf(dt);if(ft==-1)return te.Pass;for(var Je=ct(Qe,"closeBefore"),ot=ct(Qe,"triples"),ht=et.charAt(ft+1)==dt,yt=$e.listSelections(),zt=ft%2==0,Xt,Qt=0;Qt<yt.length;Qt++){var Ht=yt[Qt],wt=Ht.head,Ye,pt=$e.getRange(wt,lt(wt.line,wt.ch+1));if(zt&&!Ht.empty())Ye="surround";else if((ht||!zt)&&pt==dt)ht&&bt($e,wt)?Ye="both":ot.indexOf(dt)>=0&&$e.getRange(wt,lt(wt.line,wt.ch+3))==dt+dt+dt?Ye="skipThree":Ye="skip";else if(ht&&wt.ch>1&&ot.indexOf(dt)>=0&&$e.getRange(lt(wt.line,wt.ch-2),wt)==dt+dt){if(wt.ch>2&&/\bstring/.test($e.getTokenTypeAt(lt(wt.line,wt.ch-2))))return te.Pass;Ye="addFour"}else if(ht){var qe=wt.ch==0?" ":$e.getRange(lt(wt.line,wt.ch-1),wt);if(!te.isWordChar(pt)&&qe!=dt&&!te.isWordChar(qe))Ye="both";else return te.Pass}else if(zt&&(pt.length===0||/\s/.test(pt)||Je.indexOf(pt)>-1))Ye="both";else return te.Pass;if(!Xt)Xt=Ye;else if(Xt!=Ye)return te.Pass}var ut=ft%2?et.charAt(ft-1):dt,Oe=ft%2?dt:et.charAt(ft+1);$e.operation(function(){if(Xt=="skip")$e.execCommand("goCharRight");else if(Xt=="skipThree")for(var Ot=0;Ot<3;Ot++)$e.execCommand("goCharRight");else if(Xt=="surround"){for(var Gt=$e.getSelections(),Ot=0;Ot<Gt.length;Ot++)Gt[Ot]=ut+Gt[Ot]+Oe;$e.replaceSelections(Gt,"around"),Gt=$e.listSelections().slice();for(var Ot=0;Ot<Gt.length;Ot++)Gt[Ot]=tt(Gt[Ot]);$e.setSelections(Gt)}else Xt=="both"?($e.replaceSelection(ut+Oe,null),$e.triggerElectric(ut+Oe),$e.execCommand("goCharLeft")):Xt=="addFour"&&($e.replaceSelection(ut+ut+ut+ut,"before"),$e.execCommand("goCharRight"))})}function kt($e,dt){var Qe=$e.getRange(lt(dt.line,dt.ch-1),lt(dt.line,dt.ch+1));return Qe.length==2?Qe:null}function bt($e,dt){var Qe=$e.getTokenAt(lt(dt.line,dt.ch+1));return/\bstring/.test(Qe.type)&&Qe.start==dt.ch&&(dt.ch==0||!/\bstring/.test($e.getTokenTypeAt(dt)))}})},57341:function(dn,vn,he){(function(te){te(he(4631),he(4786))})(function(te){te.defineOption("autoCloseTags",!1,function(we,at,tt){if(tt!=te.Init&&tt&&we.removeKeyMap("autoCloseTags"),!!at){var ve={name:"autoCloseTags"};(typeof at!="object"||at.whenClosing!==!1)&&(ve["'/'"]=function(kt){return Re(kt)}),(typeof at!="object"||at.whenOpening!==!1)&&(ve["'>'"]=function(kt){return ct(kt)}),we.addKeyMap(ve)}});var Ee=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],lt=["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 ct(we){if(we.getOption("disableInput"))return te.Pass;for(var at=we.listSelections(),tt=[],ve=we.getOption("autoCloseTags"),kt=0;kt<at.length;kt++){if(!at[kt].empty())return te.Pass;var bt=at[kt].head,$e=we.getTokenAt(bt),dt=te.innerMode(we.getMode(),$e.state),Qe=dt.state,et=dt.mode.xmlCurrentTag&&dt.mode.xmlCurrentTag(Qe),ft=et&&et.name;if(!ft)return te.Pass;var Je=dt.mode.configuration=="html",ot=typeof ve=="object"&&ve.dontCloseTags||Je&&Ee,ht=typeof ve=="object"&&ve.indentTags||Je&<$e.end>bt.ch&&(ft=ft.slice(0,ft.length-$e.end+bt.ch));var yt=ft.toLowerCase();if(!ft||$e.type=="string"&&($e.end!=bt.ch||!/[\"\']/.test($e.string.charAt($e.string.length-1))||$e.string.length==1)||$e.type=="tag"&&et.close||$e.string.indexOf("/")==bt.ch-$e.start-1||ot&&it(ot,yt)>-1||ke(we,dt.mode.xmlCurrentContext&&dt.mode.xmlCurrentContext(Qe)||[],ft,bt,!0))return te.Pass;var zt=typeof ve=="object"&&ve.emptyTags;if(zt&&it(zt,ft)>-1){tt[kt]={text:"/>",newPos:te.Pos(bt.line,bt.ch+2)};continue}var Xt=ht&&it(ht,yt)>-1;tt[kt]={indent:Xt,text:">"+(Xt?`
|
|
|
|
|
|
`:"")+"</"+ft+">",newPos:Xt?te.Pos(bt.line+1,0):te.Pos(bt.line,bt.ch+1)}}for(var Qt=typeof ve=="object"&&ve.dontIndentOnAutoClose,kt=at.length-1;kt>=0;kt--){var Ht=tt[kt];we.replaceRange(Ht.text,at[kt].head,at[kt].anchor,"+insert");var wt=we.listSelections().slice(0);wt[kt]={head:Ht.newPos,anchor:Ht.newPos},we.setSelections(wt),!Qt&&Ht.indent&&(we.indentLine(Ht.newPos.line,null,!0),we.indentLine(Ht.newPos.line+1,null,!0))}}function Ve(we,at){for(var tt=we.listSelections(),ve=[],kt=at?"/":"</",bt=we.getOption("autoCloseTags"),$e=typeof bt=="object"&&bt.dontIndentOnSlash,dt=0;dt<tt.length;dt++){if(!tt[dt].empty())return te.Pass;var Qe=tt[dt].head,et=we.getTokenAt(Qe),ft=te.innerMode(we.getMode(),et.state),Je=ft.state;if(at&&(et.type=="string"||et.string.charAt(0)!="<"||et.start!=Qe.ch-1))return te.Pass;var ot,ht=ft.mode.name!="xml"&&we.getMode().name=="htmlmixed";if(ht&&ft.mode.name=="javascript")ot=kt+"script";else if(ht&&ft.mode.name=="css")ot=kt+"style";else{var yt=ft.mode.xmlCurrentContext&&ft.mode.xmlCurrentContext(Je);if(!yt||yt.length&&ke(we,yt,yt[yt.length-1],Qe))return te.Pass;ot=kt+yt[yt.length-1]}we.getLine(Qe.line).charAt(et.end)!=">"&&(ot+=">"),ve[dt]=ot}if(we.replaceSelections(ve),tt=we.listSelections(),!$e)for(var dt=0;dt<tt.length;dt++)(dt==tt.length-1||tt[dt].head.line<tt[dt+1].head.line)&&we.indentLine(tt[dt].head.line)}function Re(we){return we.getOption("disableInput")?te.Pass:Ve(we,!0)}te.commands.closeTag=function(we){return Ve(we)};function it(we,at){if(we.indexOf)return we.indexOf(at);for(var tt=0,ve=we.length;tt<ve;++tt)if(we[tt]==at)return tt;return-1}function ke(we,at,tt,ve,kt){if(!te.scanForClosingTag)return!1;var bt=Math.min(we.lastLine()+1,ve.line+500),$e=te.scanForClosingTag(we,ve,null,bt);if(!$e||$e.tag!=tt)return!1;for(var dt=kt?1:0,Qe=at.length-1;Qe>=0&&at[Qe]==tt;Qe--)++dt;ve=$e.to;for(var Qe=1;Qe<dt;Qe++){var et=te.scanForClosingTag(we,ve,null,bt);if(!et||et.tag!=tt)return!1;ve=et.to}return!0}})},4786:function(dn,vn,he){(function(te){te(he(4631))})(function(te){"use strict";var Ee=te.Pos;function lt(Qe,et){return Qe.line-et.line||Qe.ch-et.ch}var ct="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",Ve=ct+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Re=new RegExp("<(/?)(["+ct+"]["+Ve+"]*)","g");function it(Qe,et,ft,Je){this.line=et,this.ch=ft,this.cm=Qe,this.text=Qe.getLine(et),this.min=Je?Math.max(Je.from,Qe.firstLine()):Qe.firstLine(),this.max=Je?Math.min(Je.to-1,Qe.lastLine()):Qe.lastLine()}function ke(Qe,et){var ft=Qe.cm.getTokenTypeAt(Ee(Qe.line,et));return ft&&/\btag\b/.test(ft)}function we(Qe){if(!(Qe.line>=Qe.max))return Qe.ch=0,Qe.text=Qe.cm.getLine(++Qe.line),!0}function at(Qe){if(!(Qe.line<=Qe.min))return Qe.text=Qe.cm.getLine(--Qe.line),Qe.ch=Qe.text.length,!0}function tt(Qe){for(;;){var et=Qe.text.indexOf(">",Qe.ch);if(et==-1){if(we(Qe))continue;return}if(!ke(Qe,et+1)){Qe.ch=et+1;continue}var ft=Qe.text.lastIndexOf("/",et),Je=ft>-1&&!/\S/.test(Qe.text.slice(ft+1,et));return Qe.ch=et+1,Je?"selfClose":"regular"}}function ve(Qe){for(;;){var et=Qe.ch?Qe.text.lastIndexOf("<",Qe.ch-1):-1;if(et==-1){if(at(Qe))continue;return}if(!ke(Qe,et+1)){Qe.ch=et;continue}Re.lastIndex=et,Qe.ch=et;var ft=Re.exec(Qe.text);if(ft&&ft.index==et)return ft}}function kt(Qe){for(;;){Re.lastIndex=Qe.ch;var et=Re.exec(Qe.text);if(!et){if(we(Qe))continue;return}if(!ke(Qe,et.index+1)){Qe.ch=et.index+1;continue}return Qe.ch=et.index+et[0].length,et}}function bt(Qe){for(;;){var et=Qe.ch?Qe.text.lastIndexOf(">",Qe.ch-1):-1;if(et==-1){if(at(Qe))continue;return}if(!ke(Qe,et+1)){Qe.ch=et;continue}var ft=Qe.text.lastIndexOf("/",et),Je=ft>-1&&!/\S/.test(Qe.text.slice(ft+1,et));return Qe.ch=et+1,Je?"selfClose":"regular"}}function $e(Qe,et){for(var ft=[];;){var Je=kt(Qe),ot,ht=Qe.line,yt=Qe.ch-(Je?Je[0].length:0);if(!Je||!(ot=tt(Qe)))return;if(ot!="selfClose")if(Je[1]){for(var zt=ft.length-1;zt>=0;--zt)if(ft[zt]==Je[2]){ft.length=zt;break}if(zt<0&&(!et||et==Je[2]))return{tag:Je[2],from:Ee(ht,yt),to:Ee(Qe.line,Qe.ch)}}else ft.push(Je[2])}}function dt(Qe,et){for(var ft=[];;){var Je=bt(Qe);if(!Je)return;if(Je=="selfClose"){ve(Qe);continue}var ot=Qe.line,ht=Qe.ch,yt=ve(Qe);if(!yt)return;if(yt[1])ft.push(yt[2]);else{for(var zt=ft.length-1;zt>=0;--zt)if(ft[zt]==yt[2]){ft.length=zt;break}if(zt<0&&(!et||et==yt[2]))return{tag:yt[2],from:Ee(Qe.line,Qe.ch),to:Ee(ot,ht)}}}}te.registerHelper("fold","xml",function(Qe,et){for(var ft=new it(Qe,et.line,0);;){var Je=kt(ft);if(!Je||ft.line!=et.line)return;var ot=tt(ft);if(!ot)return;if(!Je[1]&&ot!="selfClose"){var ht=Ee(ft.line,ft.ch),yt=$e(ft,Je[2]);return yt&<(yt.from,ht)>0?{from:ht,to:yt.from}:null}}}),te.findMatchingTag=function(Qe,et,ft){var Je=new it(Qe,et.line,et.ch,ft);if(!(Je.text.indexOf(">")==-1&&Je.text.indexOf("<")==-1)){var ot=tt(Je),ht=ot&&Ee(Je.line,Je.ch),yt=ot&&ve(Je);if(!(!ot||!yt||lt(Je,et)>0)){var zt={from:Ee(Je.line,Je.ch),to:ht,tag:yt[2]};return ot=="selfClose"?{open:zt,close:null,at:"open"}:yt[1]?{open:dt(Je,yt[2]),close:zt,at:"close"}:(Je=new it(Qe,ht.line,ht.ch,ft),{open:zt,close:$e(Je,yt[2]),at:"open"})}}},te.findEnclosingTag=function(Qe,et,ft,Je){for(var ot=new it(Qe,et.line,et.ch,ft);;){var ht=dt(ot,Je);if(!ht)break;var yt=new it(Qe,et.line,et.ch,ft),zt=$e(yt,ht.tag);if(zt)return{open:ht,close:zt}}},te.scanForClosingTag=function(Qe,et,ft,Je){var ot=new it(Qe,et.line,et.ch,Je?{from:0,to:Je}:null);return $e(ot,ft)}})},4631:function(dn){(function(vn,he){dn.exports=he()})(this,function(){"use strict";var vn=navigator.userAgent,he=navigator.platform,te=/gecko\/\d/i.test(vn),Ee=/MSIE \d/.test(vn),lt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(vn),ct=/Edge\/(\d+)/.exec(vn),Ve=Ee||lt||ct,Re=Ve&&(Ee?document.documentMode||6:+(ct||lt)[1]),it=!ct&&/WebKit\//.test(vn),ke=it&&/Qt\/\d+\.\d+/.test(vn),we=!ct&&/Chrome\//.test(vn),at=/Opera\//.test(vn),tt=/Apple Computer/.test(navigator.vendor),ve=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(vn),kt=/PhantomJS/.test(vn),bt=!ct&&/AppleWebKit/.test(vn)&&/Mobile\/\w+/.test(vn),$e=/Android/.test(vn),dt=bt||$e||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(vn),Qe=bt||/Mac/.test(he),et=/\bCrOS\b/.test(vn),ft=/win/i.test(he),Je=at&&vn.match(/Version\/(\d*\.\d*)/);Je&&(Je=Number(Je[1])),Je&&Je>=15&&(at=!1,it=!0);var ot=Qe&&(ke||at&&(Je==null||Je<12.11)),ht=te||Ve&&Re>=9;function yt(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var zt=function(x,z){var re=x.className,ne=yt(z).exec(re);if(ne){var ae=re.slice(ne.index+ne[0].length);x.className=re.slice(0,ne.index)+(ae?ne[1]+ae:"")}};function Xt(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function Qt(x,z){return Xt(x).appendChild(z)}function Ht(x,z,re,ne){var ae=document.createElement(x);if(re&&(ae.className=re),ne&&(ae.style.cssText=ne),typeof z=="string")ae.appendChild(document.createTextNode(z));else if(z)for(var pe=0;pe<z.length;++pe)ae.appendChild(z[pe]);return ae}function wt(x,z,re,ne){var ae=Ht(x,z,re,ne);return ae.setAttribute("role","presentation"),ae}var Ye;document.createRange?Ye=function(x,z,re,ne){var ae=document.createRange();return ae.setEnd(ne||x,re),ae.setStart(x,z),ae}:Ye=function(x,z,re){var ne=document.body.createTextRange();try{ne.moveToElementText(x.parentNode)}catch(ae){return ne}return ne.collapse(!0),ne.moveEnd("character",re),ne.moveStart("character",z),ne};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 qe(){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 ut(x,z){var re=x.className;yt(z).test(re)||(x.className+=(re?" ":"")+z)}function Oe(x,z){for(var re=x.split(" "),ne=0;ne<re.length;ne++)re[ne]&&!yt(re[ne]).test(z)&&(z+=" "+re[ne]);return z}var Ot=function(x){x.select()};bt?Ot=function(x){x.selectionStart=0,x.selectionEnd=x.value.length}:Ve&&(Ot=function(x){try{x.select()}catch(z){}});function Gt(x){var z=Array.prototype.slice.call(arguments,1);return function(){return x.apply(null,z)}}function un(x,z,re){z||(z={});for(var ne in x)x.hasOwnProperty(ne)&&(re!==!1||!z.hasOwnProperty(ne))&&(z[ne]=x[ne]);return z}function Ge(x,z,re,ne,ae){z==null&&(z=x.search(/[^\s\u00a0]/),z==-1&&(z=x.length));for(var pe=ne||0,Ce=ae||0;;){var Fe=x.indexOf(" ",pe);if(Fe<0||Fe>=z)return Ce+(z-pe);Ce+=Fe-pe,Ce+=re-Ce%re,pe=Fe+1}}var Ke=function(){this.id=null,this.f=null,this.time=0,this.handler=Gt(this.onTimeout,this)};Ke.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},Ke.prototype.set=function(x,z){this.f=z;var re=+new Date+x;(!this.id||re<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,x),this.time=re)};function Yt(x,z){for(var re=0;re<x.length;++re)if(x[re]==z)return re;return-1}var Jt=50,cn={toString:function(){return"CodeMirror.Pass"}},Lt={scroll:!1},Dt={origin:"*mouse"},wn={origin:"+move"};function _n(x,z,re){for(var ne=0,ae=0;;){var pe=x.indexOf(" ",ne);pe==-1&&(pe=x.length);var Ce=pe-ne;if(pe==x.length||ae+Ce>=z)return ne+Math.min(Ce,z-ae);if(ae+=pe-ne,ae+=re-ae%re,ne=pe+1,ae>=z)return ne}}var on=[""];function kn(x){for(;on.length<=x;)on.push(xn(on)+" ");return on[x]}function xn(x){return x[x.length-1]}function Vn(x,z){for(var re=[],ne=0;ne<x.length;ne++)re[ne]=z(x[ne],ne);return re}function er(x,z,re){for(var ne=0,ae=re(z);ne<x.length&&re(x[ne])<=ae;)ne++;x.splice(ne,0,z)}function Me(){}function ce(x,z){var re;return Object.create?re=Object.create(x):(Me.prototype=x,re=new Me),z&&un(z,re),re}var fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function be(x){return/\w/.test(x)||x>"\x80"&&(x.toUpperCase()!=x.toLowerCase()||fe.test(x))}function ge(x,z){return z?z.source.indexOf("\\w")>-1&&be(x)?!0:z.test(x):be(x)}function ue(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var Xe=/[\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 _t(x){return x.charCodeAt(0)>=768&&Xe.test(x)}function Zt(x,z,re){for(;(re<0?z>0:z<x.length)&&_t(x.charAt(z));)z+=re;return z}function Dn(x,z,re){for(var ne=z>re?-1:1;;){if(z==re)return z;var ae=(z+re)/2,pe=ne<0?Math.ceil(ae):Math.floor(ae);if(pe==z)return x(pe)?z:re;x(pe)?re=pe:z=pe+ne}}function An(x,z,re,ne){if(!x)return ne(z,re,"ltr",0);for(var ae=!1,pe=0;pe<x.length;++pe){var Ce=x[pe];(Ce.from<re&&Ce.to>z||z==re&&Ce.to==z)&&(ne(Math.max(Ce.from,z),Math.min(Ce.to,re),Ce.level==1?"rtl":"ltr",pe),ae=!0)}ae||ne(z,re,"ltr")}var yn=null;function nn(x,z,re){var ne;yn=null;for(var ae=0;ae<x.length;++ae){var pe=x[ae];if(pe.from<z&&pe.to>z)return ae;pe.to==z&&(pe.from!=pe.to&&re=="before"?ne=ae:yn=ae),pe.from==z&&(pe.from!=pe.to&&re!="before"?ne=ae:yn=ae)}return ne!=null?ne:yn}var Ar=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function re(Ue){return Ue<=247?x.charAt(Ue):1424<=Ue&&Ue<=1524?"R":1536<=Ue&&Ue<=1785?z.charAt(Ue-1536):1774<=Ue&&Ue<=2220?"r":8192<=Ue&&Ue<=8203?"w":Ue==8204?"b":"L"}var ne=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ae=/[stwN]/,pe=/[LRr]/,Ce=/[Lb1n]/,Fe=/[1n]/;function Ne(Ue,Bt,Vt){this.level=Ue,this.from=Bt,this.to=Vt}return function(Ue,Bt){var Vt=Bt=="ltr"?"L":"R";if(Ue.length==0||Bt=="ltr"&&!ne.test(Ue))return!1;for(var Sn=Ue.length,bn=[],nr=0;nr<Sn;++nr)bn.push(re(Ue.charCodeAt(nr)));for(var Cr=0,Xr=Vt;Cr<Sn;++Cr){var yi=bn[Cr];yi=="m"?bn[Cr]=Xr:Xr=yi}for(var Di=0,ci=Vt;Di<Sn;++Di){var Li=bn[Di];Li=="1"&&ci=="r"?bn[Di]="n":pe.test(Li)&&(ci=Li,Li=="r"&&(bn[Di]="R"))}for(var ya=1,Aa=bn[0];ya<Sn-1;++ya){var uo=bn[ya];uo=="+"&&Aa=="1"&&bn[ya+1]=="1"?bn[ya]="1":uo==","&&Aa==bn[ya+1]&&(Aa=="1"||Aa=="n")&&(bn[ya]=Aa),Aa=uo}for(var ss=0;ss<Sn;++ss){var Dl=bn[ss];if(Dl==",")bn[ss]="N";else if(Dl=="%"){var Qs=void 0;for(Qs=ss+1;Qs<Sn&&bn[Qs]=="%";++Qs);for(var tu=ss&&bn[ss-1]=="!"||Qs<Sn&&bn[Qs]=="1"?"1":"N",nu=ss;nu<Qs;++nu)bn[nu]=tu;ss=Qs-1}}for(var gl=0,Jl=Vt;gl<Sn;++gl){var ja=bn[gl];Jl=="L"&&ja=="1"?bn[gl]="L":pe.test(ja)&&(Jl=ja)}for(var nl=0;nl<Sn;++nl)if(ae.test(bn[nl])){var Os=void 0;for(Os=nl+1;Os<Sn&&ae.test(bn[Os]);++Os);for(var Js=(nl?bn[nl-1]:Vt)=="L",pl=(Os<Sn?bn[Os]:Vt)=="L",Mc=Js==pl?Js?"L":"R":Vt,cu=nl;cu<Os;++cu)bn[cu]=Mc;nl=Os-1}for(var Nl=[],Vo,oe=0;oe<Sn;)if(Ce.test(bn[oe])){var le=oe;for(++oe;oe<Sn&&Ce.test(bn[oe]);++oe);Nl.push(new Ne(0,le,oe))}else{var de=oe,xe=Nl.length,Ie=Bt=="rtl"?1:0;for(++oe;oe<Sn&&bn[oe]!="L";++oe);for(var Pe=de;Pe<oe;)if(Fe.test(bn[Pe])){de<Pe&&(Nl.splice(xe,0,new Ne(1,de,Pe)),xe+=Ie);var ze=Pe;for(++Pe;Pe<oe&&Fe.test(bn[Pe]);++Pe);Nl.splice(xe,0,new Ne(2,ze,Pe)),xe+=Ie,de=Pe}else++Pe;de<oe&&Nl.splice(xe,0,new Ne(1,de,oe))}return Bt=="ltr"&&(Nl[0].level==1&&(Vo=Ue.match(/^\s+/))&&(Nl[0].from=Vo[0].length,Nl.unshift(new Ne(0,0,Vo[0].length))),xn(Nl).level==1&&(Vo=Ue.match(/\s+$/))&&(xn(Nl).to-=Vo[0].length,Nl.push(new Ne(0,Sn-Vo[0].length,Sn)))),Bt=="rtl"?Nl.reverse():Nl}}();function Dr(x,z){var re=x.order;return re==null&&(re=x.order=Ar(x.text,z)),re}var ln=[],jn=function(x,z,re){if(x.addEventListener)x.addEventListener(z,re,!1);else if(x.attachEvent)x.attachEvent("on"+z,re);else{var ne=x._handlers||(x._handlers={});ne[z]=(ne[z]||ln).concat(re)}};function wi(x,z){return x._handlers&&x._handlers[z]||ln}function $r(x,z,re){if(x.removeEventListener)x.removeEventListener(z,re,!1);else if(x.detachEvent)x.detachEvent("on"+z,re);else{var ne=x._handlers,ae=ne&&ne[z];if(ae){var pe=Yt(ae,re);pe>-1&&(ne[z]=ae.slice(0,pe).concat(ae.slice(pe+1)))}}}function Ir(x,z){var re=wi(x,z);if(re.length)for(var ne=Array.prototype.slice.call(arguments,2),ae=0;ae<re.length;++ae)re[ae].apply(null,ne)}function Or(x,z,re){return typeof z=="string"&&(z={type:z,preventDefault:function(){this.defaultPrevented=!0}}),Ir(x,re||z.type,x,z),Ti(z)||z.codemirrorIgnore}function Ca(x){var z=x._handlers&&x._handlers.cursorActivity;if(z)for(var re=x.curOp.cursorActivityHandlers||(x.curOp.cursorActivityHandlers=[]),ne=0;ne<z.length;++ne)Yt(re,z[ne])==-1&&re.push(z[ne])}function ur(x,z){return wi(x,z).length>0}function Yn(x){x.prototype.on=function(z,re){jn(this,z,re)},x.prototype.off=function(z,re){$r(this,z,re)}}function oi(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function Si(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function Ti(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function Ni(x){oi(x),Si(x)}function Fi(x){return x.target||x.srcElement}function Wr(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),Qe&&x.ctrlKey&&z==1&&(z=3),z}var qr=function(){if(Ve&&Re<9)return!1;var x=Ht("div");return"draggable"in x||"dragDrop"in x}(),Ta;function Da(x){if(Ta==null){var z=Ht("span","\u200B");Qt(x,Ht("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(Ta=z.offsetWidth<=1&&z.offsetHeight>2&&!(Ve&&Re<8))}var re=Ta?Ht("span","\u200B"):Ht("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return re.setAttribute("cm-text",""),re}var Tr;function _i(x){if(Tr!=null)return Tr;var z=Qt(x,document.createTextNode("A\u062EA")),re=Ye(z,0,1).getBoundingClientRect(),ne=Ye(z,1,2).getBoundingClientRect();return Xt(x),!re||re.left==re.right?!1:Tr=ne.right-re.right<3}var jr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(x){for(var z=0,re=[],ne=x.length;z<=ne;){var ae=x.indexOf(`
|
|
|
`,z);ae==-1&&(ae=x.length);var pe=x.slice(z,x.charAt(ae-1)=="\r"?ae-1:ae),Ce=pe.indexOf("\r");Ce!=-1?(re.push(pe.slice(0,Ce)),z+=Ce+1):(re.push(pe),z=ae+1)}return re}:function(x){return x.split(/\r\n?|\n/)},di=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(re){}return!z||z.parentElement()!=x?!1:z.compareEndPoints("StartToEnd",z)!=0},Lo=function(){var x=Ht("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),ro=null;function Hi(x){if(ro!=null)return ro;var z=Qt(x,Ht("span","x")),re=z.getBoundingClientRect(),ne=Ye(z,0,1).getBoundingClientRect();return ro=Math.abs(re.left-ne.left)>1}var Ko={},Zo={};function zi(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),Ko[x]=z}function Pr(x,z){Zo[x]=z}function ta(x){if(typeof x=="string"&&Zo.hasOwnProperty(x))x=Zo[x];else if(x&&typeof x.name=="string"&&Zo.hasOwnProperty(x.name)){var z=Zo[x.name];typeof z=="string"&&(z={name:z}),x=ce(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return ta("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return ta("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function Wa(x,z){z=ta(z);var re=Ko[z.name];if(!re)return Wa(x,"text/plain");var ne=re(x,z);if(yo.hasOwnProperty(z.name)){var ae=yo[z.name];for(var pe in ae)ae.hasOwnProperty(pe)&&(ne.hasOwnProperty(pe)&&(ne["_"+pe]=ne[pe]),ne[pe]=ae[pe])}if(ne.name=z.name,z.helperType&&(ne.helperType=z.helperType),z.modeProps)for(var Ce in z.modeProps)ne[Ce]=z.modeProps[Ce];return ne}var yo={};function Eo(x,z){var re=yo.hasOwnProperty(x)?yo[x]:yo[x]={};un(z,re)}function bo(x,z){if(z===!0)return z;if(x.copyState)return x.copyState(z);var re={};for(var ne in z){var ae=z[ne];ae instanceof Array&&(ae=ae.concat([])),re[ne]=ae}return re}function rs(x,z){for(var re;x.innerMode&&(re=x.innerMode(z),!(!re||re.mode==x));)z=re.state,x=re.mode;return re||{mode:x,state:z}}function fo(x,z,re){return x.startState?x.startState(z,re):!0}var ka=function(x,z,re){this.pos=this.start=0,this.string=x,this.tabSize=z||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=re};ka.prototype.eol=function(){return this.pos>=this.string.length},ka.prototype.sol=function(){return this.pos==this.lineStart},ka.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ka.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ka.prototype.eat=function(x){var z=this.string.charAt(this.pos),re;if(typeof x=="string"?re=z==x:re=z&&(x.test?x.test(z):x(z)),re)return++this.pos,z},ka.prototype.eatWhile=function(x){for(var z=this.pos;this.eat(x););return this.pos>z},ka.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},ka.prototype.skipToEnd=function(){this.pos=this.string.length},ka.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},ka.prototype.backUp=function(x){this.pos-=x},ka.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ge(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ge(this.string,this.lineStart,this.tabSize):0)},ka.prototype.indentation=function(){return Ge(this.string,null,this.tabSize)-(this.lineStart?Ge(this.string,this.lineStart,this.tabSize):0)},ka.prototype.match=function(x,z,re){if(typeof x=="string"){var ne=function(Ce){return re?Ce.toLowerCase():Ce},ae=this.string.substr(this.pos,x.length);if(ne(ae)==ne(x))return z!==!1&&(this.pos+=x.length),!0}else{var pe=this.string.slice(this.pos).match(x);return pe&&pe.index>0?null:(pe&&z!==!1&&(this.pos+=pe[0].length),pe)}},ka.prototype.current=function(){return this.string.slice(this.start,this.pos)},ka.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},ka.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},ka.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function mi(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 re=x;!re.lines;)for(var ne=0;;++ne){var ae=re.children[ne],pe=ae.chunkSize();if(z<pe){re=ae;break}z-=pe}return re.lines[z]}function Fo(x,z,re){var ne=[],ae=z.line;return x.iter(z.line,re.line+1,function(pe){var Ce=pe.text;ae==re.line&&(Ce=Ce.slice(0,re.ch)),ae==z.line&&(Ce=Ce.slice(z.ch)),ne.push(Ce),++ae}),ne}function Xo(x,z,re){var ne=[];return x.iter(z,re,function(ae){ne.push(ae.text)}),ne}function Ja(x,z){var re=z-x.height;if(re)for(var ne=x;ne;ne=ne.parent)ne.height+=re}function Na(x){if(x.parent==null)return null;for(var z=x.parent,re=Yt(z.lines,x),ne=z.parent;ne;z=ne,ne=ne.parent)for(var ae=0;ne.children[ae]!=z;++ae)re+=ne.children[ae].chunkSize();return re+z.first}function Rs(x,z){var re=x.first;e:do{for(var ne=0;ne<x.children.length;++ne){var ae=x.children[ne],pe=ae.height;if(z<pe){x=ae;continue e}z-=pe,re+=ae.chunkSize()}return re}while(!x.lines);for(var Ce=0;Ce<x.lines.length;++Ce){var Fe=x.lines[Ce],Ne=Fe.height;if(z<Ne)break;z-=Ne}return re+Ce}function io(x,z){return z>=x.first&&z<x.first+x.size}function lo(x,z){return String(x.lineNumberFormatter(z+x.firstLineNumber))}function cr(x,z,re){if(re===void 0&&(re=null),!(this instanceof cr))return new cr(x,z,re);this.line=x,this.ch=z,this.sticky=re}function Xi(x,z){return x.line-z.line||x.ch-z.ch}function br(x,z){return x.sticky==z.sticky&&Xi(x,z)==0}function Cl(x){return cr(x.line,x.ch)}function fs(x,z){return Xi(x,z)<0?z:x}function ho(x,z){return Xi(x,z)<0?x:z}function Ll(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 cr(x.first,0);var re=x.first+x.size-1;return z.line>re?cr(re,mi(x,re).text.length):El(z,mi(x,z.line).text.length)}function El(x,z){var re=x.ch;return re==null||re>z?cr(x.line,z):re<0?cr(x.line,0):x}function Xn(x,z){for(var re=[],ne=0;ne<z.length;ne++)re[ne]=Ma(x,z[ne]);return re}var Go=function(x,z){this.state=x,this.lookAhead=z},hs=function(x,z,re,ne){this.state=z,this.doc=x,this.line=re,this.maxLookAhead=ne||0,this.baseTokens=null,this.baseTokenPos=1};hs.prototype.lookAhead=function(x){var z=this.doc.getLine(this.line+x);return z!=null&&x>this.maxLookAhead&&(this.maxLookAhead=x),z},hs.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}},hs.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},hs.fromSaved=function(x,z,re){return z instanceof Go?new hs(x,bo(x.mode,z.state),re,z.lookAhead):new hs(x,bo(x.mode,z),re)},hs.prototype.save=function(x){var z=x!==!1?bo(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Go(z,this.maxLookAhead):z};function Ws(x,z,re,ne){var ae=[x.state.modeGen],pe={};Vl(x,z.text,x.doc.mode,re,function(Ue,Bt){return ae.push(Ue,Bt)},pe,ne);for(var Ce=re.state,Fe=function(Ue){re.baseTokens=ae;var Bt=x.state.overlays[Ue],Vt=1,Sn=0;re.state=!0,Vl(x,z.text,Bt.mode,re,function(bn,nr){for(var Cr=Vt;Sn<bn;){var Xr=ae[Vt];Xr>bn&&ae.splice(Vt,1,bn,ae[Vt+1],Xr),Vt+=2,Sn=Math.min(bn,Xr)}if(nr)if(Bt.opaque)ae.splice(Cr,Vt-Cr,bn,"overlay "+nr),Vt=Cr+2;else for(;Cr<Vt;Cr+=2){var yi=ae[Cr+1];ae[Cr+1]=(yi?yi+" ":"")+"overlay "+nr}},pe),re.state=Ce,re.baseTokens=null,re.baseTokenPos=1},Ne=0;Ne<x.state.overlays.length;++Ne)Fe(Ne);return{styles:ae,classes:pe.bgClass||pe.textClass?pe:null}}function xo(x,z,re){if(!z.styles||z.styles[0]!=x.state.modeGen){var ne=co(x,Na(z)),ae=z.text.length>x.options.maxHighlightLength&&bo(x.doc.mode,ne.state),pe=Ws(x,z,ne);ae&&(ne.state=ae),z.stateAfter=ne.save(!ae),z.styles=pe.styles,pe.classes?z.styleClasses=pe.classes:z.styleClasses&&(z.styleClasses=null),re===x.doc.highlightFrontier&&(x.doc.modeFrontier=Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return z.styles}function co(x,z,re){var ne=x.doc,ae=x.display;if(!ne.mode.startState)return new hs(ne,!0,z);var pe=qs(x,z,re),Ce=pe>ne.first&&mi(ne,pe-1).stateAfter,Fe=Ce?hs.fromSaved(ne,Ce,pe):new hs(ne,fo(ne.mode),pe);return ne.iter(pe,z,function(Ne){Ho(x,Ne.text,Fe);var Ue=Fe.line;Ne.stateAfter=Ue==z-1||Ue%5==0||Ue>=ae.viewFrom&&Ue<ae.viewTo?Fe.save():null,Fe.nextLine()}),re&&(ne.modeFrontier=Fe.line),Fe}function Ho(x,z,re,ne){var ae=x.doc.mode,pe=new ka(z,x.options.tabSize,re);for(pe.start=pe.pos=ne||0,z==""&&ps(ae,re.state);!pe.eol();)Ro(ae,pe,re.state),pe.start=pe.pos}function ps(x,z){if(x.blankLine)return x.blankLine(z);if(x.innerMode){var re=rs(x,z);if(re.mode.blankLine)return re.mode.blankLine(re.state)}}function Ro(x,z,re,ne){for(var ae=0;ae<10;ae++){ne&&(ne[0]=rs(x,re).mode);var pe=x.token(z,re);if(z.pos>z.start)return pe}throw new Error("Mode "+x.name+" failed to advance stream.")}var qo=function(x,z,re){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=re};function Va(x,z,re,ne){var ae=x.doc,pe=ae.mode,Ce;z=Ma(ae,z);var Fe=mi(ae,z.line),Ne=co(x,z.line,re),Ue=new ka(Fe.text,x.options.tabSize,Ne),Bt;for(ne&&(Bt=[]);(ne||Ue.pos<z.ch)&&!Ue.eol();)Ue.start=Ue.pos,Ce=Ro(pe,Ue,Ne.state),ne&&Bt.push(new qo(Ue,Ce,bo(ae.mode,Ne.state)));return ne?Bt:new qo(Ue,Ce,Ne.state)}function Ms(x,z){if(x)for(;;){var re=x.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!re)break;x=x.slice(0,re.index)+x.slice(re.index+re[0].length);var ne=re[1]?"bgClass":"textClass";z[ne]==null?z[ne]=re[2]:new RegExp("(?:^|\\s)"+re[2]+"(?:$|\\s)").test(z[ne])||(z[ne]+=" "+re[2])}return x}function Vl(x,z,re,ne,ae,pe,Ce){var Fe=re.flattenSpans;Fe==null&&(Fe=x.options.flattenSpans);var Ne=0,Ue=null,Bt=new ka(z,x.options.tabSize,ne),Vt,Sn=x.options.addModeClass&&[null];for(z==""&&Ms(ps(re,ne.state),pe);!Bt.eol();){if(Bt.pos>x.options.maxHighlightLength?(Fe=!1,Ce&&Ho(x,z,ne,Bt.pos),Bt.pos=z.length,Vt=null):Vt=Ms(Ro(re,Bt,ne.state,Sn),pe),Sn){var bn=Sn[0].name;bn&&(Vt="m-"+(Vt?bn+" "+Vt:bn))}if(!Fe||Ue!=Vt){for(;Ne<Bt.start;)Ne=Math.min(Bt.start,Ne+5e3),ae(Ne,Ue);Ue=Vt}Bt.start=Bt.pos}for(;Ne<Bt.pos;){var nr=Math.min(Bt.pos,Ne+5e3);ae(nr,Ue),Ne=nr}}function qs(x,z,re){for(var ne,ae,pe=x.doc,Ce=re?-1:z-(x.doc.mode.innerMode?1e3:100),Fe=z;Fe>Ce;--Fe){if(Fe<=pe.first)return pe.first;var Ne=mi(pe,Fe-1),Ue=Ne.stateAfter;if(Ue&&(!re||Fe+(Ue instanceof Go?Ue.lookAhead:0)<=pe.modeFrontier))return Fe;var Bt=Ge(Ne.text,null,x.options.tabSize);(ae==null||ne>Bt)&&(ae=Fe-1,ne=Bt)}return ae}function il(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontier<z-10)){for(var re=x.first,ne=z-1;ne>re;ne--){var ae=mi(x,ne).stateAfter;if(ae&&(!(ae instanceof Go)||ne+ae.lookAhead<z)){re=ne+1;break}}x.highlightFrontier=Math.min(x.highlightFrontier,re)}}var Ds=!1,So=!1;function al(){Ds=!0}function Sl(){So=!0}function Vs(x,z,re){this.marker=x,this.from=z,this.to=re}function ol(x,z){if(x)for(var re=0;re<x.length;++re){var ne=x[re];if(ne.marker==z)return ne}}function Bs(x,z){for(var re,ne=0;ne<x.length;++ne)x[ne]!=z&&(re||(re=[])).push(x[ne]);return re}function Us(x,z){x.markedSpans=x.markedSpans?x.markedSpans.concat([z]):[z],z.marker.attachLine(x)}function js(x,z,re){var ne;if(x)for(var ae=0;ae<x.length;++ae){var pe=x[ae],Ce=pe.marker,Fe=pe.from==null||(Ce.inclusiveLeft?pe.from<=z:pe.from<z);if(Fe||pe.from==z&&Ce.type=="bookmark"&&(!re||!pe.marker.insertLeft)){var Ne=pe.to==null||(Ce.inclusiveRight?pe.to>=z:pe.to>z);(ne||(ne=[])).push(new Vs(Ce,pe.from,Ne?null:pe.to))}}return ne}function ml(x,z,re){var ne;if(x)for(var ae=0;ae<x.length;++ae){var pe=x[ae],Ce=pe.marker,Fe=pe.to==null||(Ce.inclusiveRight?pe.to>=z:pe.to>z);if(Fe||pe.from==z&&Ce.type=="bookmark"&&(!re||pe.marker.insertLeft)){var Ne=pe.from==null||(Ce.inclusiveLeft?pe.from<=z:pe.from<z);(ne||(ne=[])).push(new Vs(Ce,Ne?null:pe.from-z,pe.to==null?null:pe.to-z))}}return ne}function Ua(x,z){if(z.full)return null;var re=io(x,z.from.line)&&mi(x,z.from.line).markedSpans,ne=io(x,z.to.line)&&mi(x,z.to.line).markedSpans;if(!re&&!ne)return null;var ae=z.from.ch,pe=z.to.ch,Ce=Xi(z.from,z.to)==0,Fe=js(re,ae,Ce),Ne=ml(ne,pe,Ce),Ue=z.text.length==1,Bt=xn(z.text).length+(Ue?ae:0);if(Fe)for(var Vt=0;Vt<Fe.length;++Vt){var Sn=Fe[Vt];if(Sn.to==null){var bn=ol(Ne,Sn.marker);bn?Ue&&(Sn.to=bn.to==null?null:bn.to+Bt):Sn.to=ae}}if(Ne)for(var nr=0;nr<Ne.length;++nr){var Cr=Ne[nr];if(Cr.to!=null&&(Cr.to+=Bt),Cr.from==null){var Xr=ol(Fe,Cr.marker);Xr||(Cr.from=Bt,Ue&&(Fe||(Fe=[])).push(Cr))}else Cr.from+=Bt,Ue&&(Fe||(Fe=[])).push(Cr)}Fe&&(Fe=_s(Fe)),Ne&&Ne!=Fe&&(Ne=_s(Ne));var yi=[Fe];if(!Ue){var Di=z.text.length-2,ci;if(Di>0&&Fe)for(var Li=0;Li<Fe.length;++Li)Fe[Li].to==null&&(ci||(ci=[])).push(new Vs(Fe[Li].marker,null,null));for(var ya=0;ya<Di;++ya)yi.push(ci);yi.push(Ne)}return yi}function _s(x){for(var z=0;z<x.length;++z){var re=x[z];re.from!=null&&re.from==re.to&&re.marker.clearWhenEmpty!==!1&&x.splice(z--,1)}return x.length?x:null}function ms(x,z,re){var ne=null;if(x.iter(z.line,re.line+1,function(bn){if(bn.markedSpans)for(var nr=0;nr<bn.markedSpans.length;++nr){var Cr=bn.markedSpans[nr].marker;Cr.readOnly&&(!ne||Yt(ne,Cr)==-1)&&(ne||(ne=[])).push(Cr)}}),!ne)return null;for(var ae=[{from:z,to:re}],pe=0;pe<ne.length;++pe)for(var Ce=ne[pe],Fe=Ce.find(0),Ne=0;Ne<ae.length;++Ne){var Ue=ae[Ne];if(!(Xi(Ue.to,Fe.from)<0||Xi(Ue.from,Fe.to)>0)){var Bt=[Ne,1],Vt=Xi(Ue.from,Fe.from),Sn=Xi(Ue.to,Fe.to);(Vt<0||!Ce.inclusiveLeft&&!Vt)&&Bt.push({from:Ue.from,to:Fe.from}),(Sn>0||!Ce.inclusiveRight&&!Sn)&&Bt.push({from:Fe.to,to:Ue.to}),ae.splice.apply(ae,Bt),Ne+=Bt.length-3}}return ae}function Zs(x){var z=x.markedSpans;if(z){for(var re=0;re<z.length;++re)z[re].marker.detachLine(x);x.markedSpans=null}}function Ks(x,z){if(z){for(var re=0;re<z.length;++re)z[re].marker.attachLine(x);x.markedSpans=z}}function sl(x){return x.inclusiveLeft?-1:0}function vs(x){return x.inclusiveRight?1:0}function gs(x,z){var re=x.lines.length-z.lines.length;if(re!=0)return re;var ne=x.find(),ae=z.find(),pe=Xi(ne.from,ae.from)||sl(x)-sl(z);if(pe)return-pe;var Ce=Xi(ne.to,ae.to)||vs(x)-vs(z);return Ce||z.id-x.id}function _e(x,z){var re=So&&x.markedSpans,ne;if(re)for(var ae=void 0,pe=0;pe<re.length;++pe)ae=re[pe],ae.marker.collapsed&&(z?ae.from:ae.to)==null&&(!ne||gs(ne,ae.marker)<0)&&(ne=ae.marker);return ne}function nt(x){return _e(x,!0)}function pn(x){return _e(x,!1)}function Ae(x,z){var re=So&&x.markedSpans,ne;if(re)for(var ae=0;ae<re.length;++ae){var pe=re[ae];pe.marker.collapsed&&(pe.from==null||pe.from<z)&&(pe.to==null||pe.to>z)&&(!ne||gs(ne,pe.marker)<0)&&(ne=pe.marker)}return ne}function St(x,z,re,ne,ae){var pe=mi(x,z),Ce=So&&pe.markedSpans;if(Ce)for(var Fe=0;Fe<Ce.length;++Fe){var Ne=Ce[Fe];if(Ne.marker.collapsed){var Ue=Ne.marker.find(0),Bt=Xi(Ue.from,re)||sl(Ne.marker)-sl(ae),Vt=Xi(Ue.to,ne)||vs(Ne.marker)-vs(ae);if(!(Bt>=0&&Vt<=0||Bt<=0&&Vt>=0)&&(Bt<=0&&(Ne.marker.inclusiveRight&&ae.inclusiveLeft?Xi(Ue.to,re)>=0:Xi(Ue.to,re)>0)||Bt>=0&&(Ne.marker.inclusiveRight&&ae.inclusiveLeft?Xi(Ue.from,ne)<=0:Xi(Ue.from,ne)<0)))return!0}}}function Ft(x){for(var z;z=nt(x);)x=z.find(-1,!0).line;return x}function an(x){for(var z;z=pn(x);)x=z.find(1,!0).line;return x}function Rt(x){for(var z,re;z=pn(x);)x=z.find(1,!0).line,(re||(re=[])).push(x);return re}function In(x,z){var re=mi(x,z),ne=Ft(re);return re==ne?z:Na(ne)}function zn(x,z){if(z>x.lastLine())return z;var re=mi(x,z),ne;if(!Rn(x,re))return z;for(;ne=pn(re);)re=ne.find(1,!0).line;return Na(re)+1}function Rn(x,z){var re=So&&z.markedSpans;if(re){for(var ne=void 0,ae=0;ae<re.length;++ae)if(ne=re[ae],!!ne.marker.collapsed){if(ne.from==null)return!0;if(!ne.marker.widgetNode&&ne.from==0&&ne.marker.inclusiveLeft&&Mn(x,z,ne))return!0}}}function Mn(x,z,re){if(re.to==null){var ne=re.marker.find(1,!0);return Mn(x,ne.line,ol(ne.line.markedSpans,re.marker))}if(re.marker.inclusiveRight&&re.to==z.text.length)return!0;for(var ae=void 0,pe=0;pe<z.markedSpans.length;++pe)if(ae=z.markedSpans[pe],ae.marker.collapsed&&!ae.marker.widgetNode&&ae.from==re.to&&(ae.to==null||ae.to!=re.from)&&(ae.marker.inclusiveLeft||re.marker.inclusiveRight)&&Mn(x,z,ae))return!0}function sn(x){x=Ft(x);for(var z=0,re=x.parent,ne=0;ne<re.lines.length;++ne){var ae=re.lines[ne];if(ae==x)break;z+=ae.height}for(var pe=re.parent;pe;re=pe,pe=re.parent)for(var Ce=0;Ce<pe.children.length;++Ce){var Fe=pe.children[Ce];if(Fe==re)break;z+=Fe.height}return z}function Bn(x){if(x.height==0)return 0;for(var z=x.text.length,re,ne=x;re=nt(ne);){var ae=re.find(0,!0);ne=ae.from.line,z+=ae.from.ch-ae.to.ch}for(ne=x;re=pn(ne);){var pe=re.find(0,!0);z-=ne.text.length-pe.from.ch,ne=pe.to.line,z+=ne.text.length-pe.to.ch}return z}function Tn(x){var z=x.display,re=x.doc;z.maxLine=mi(re,re.first),z.maxLineLength=Bn(z.maxLine),z.maxLineChanged=!0,re.iter(function(ne){var ae=Bn(ne);ae>z.maxLineLength&&(z.maxLineLength=ae,z.maxLine=ne)})}var Kn=function(x,z,re){this.text=x,Ks(this,z),this.height=re?re(this):1};Kn.prototype.lineNo=function(){return Na(this)},Yn(Kn);function Zr(x,z,re,ne){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),Zs(x),Ks(x,re);var ae=ne?ne(x):1;ae!=x.height&&Ja(x,ae)}function li(x){x.parent=null,Zs(x)}var Gi={},Oi={};function fa(x,z){if(!x||/^\s*$/.test(x))return null;var re=z.addModeClass?Oi:Gi;return re[x]||(re[x]=x.replace(/\S+/g,"cm-$&"))}function xa(x,z){var re=wt("span",null,null,it?"padding-right: .1px":null),ne={pre:wt("pre",[re],"CodeMirror-line"),content:re,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 pe=ae?z.rest[ae-1]:z.line,Ce=void 0;ne.pos=0,ne.addToken=_a,_i(x.display.measure)&&(Ce=Dr(pe,x.doc.direction))&&(ne.addToken=Pa(ne.addToken,Ce)),ne.map=[];var Fe=z!=x.display.externalMeasured&&Na(pe);Po(pe,ne,xo(x,pe,Fe)),pe.styleClasses&&(pe.styleClasses.bgClass&&(ne.bgClass=Oe(pe.styleClasses.bgClass,ne.bgClass||"")),pe.styleClasses.textClass&&(ne.textClass=Oe(pe.styleClasses.textClass,ne.textClass||""))),ne.map.length==0&&ne.map.push(0,0,ne.content.appendChild(Da(x.display.measure))),ae==0?(z.measure.map=ne.map,z.measure.cache={}):((z.measure.maps||(z.measure.maps=[])).push(ne.map),(z.measure.caches||(z.measure.caches=[])).push({}))}if(it){var Ne=ne.content.lastChild;(/\bcm-tab\b/.test(Ne.className)||Ne.querySelector&&Ne.querySelector(".cm-tab"))&&(ne.content.className="cm-tab-wrap-hack")}return Ir(x,"renderLine",x,z.line,ne.pre),ne.pre.className&&(ne.textClass=Oe(ne.pre.className,ne.textClass||"")),ne}function Oa(x){var z=Ht("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function _a(x,z,re,ne,ae,pe,Ce){if(z){var Fe=x.splitSpaces?$a(z,x.trailingSpace):z,Ne=x.cm.state.specialChars,Ue=!1,Bt;if(!Ne.test(z))x.col+=z.length,Bt=document.createTextNode(Fe),x.map.push(x.pos,x.pos+z.length,Bt),Ve&&Re<9&&(Ue=!0),x.pos+=z.length;else{Bt=document.createDocumentFragment();for(var Vt=0;;){Ne.lastIndex=Vt;var Sn=Ne.exec(z),bn=Sn?Sn.index-Vt:z.length-Vt;if(bn){var nr=document.createTextNode(Fe.slice(Vt,Vt+bn));Ve&&Re<9?Bt.appendChild(Ht("span",[nr])):Bt.appendChild(nr),x.map.push(x.pos,x.pos+bn,nr),x.col+=bn,x.pos+=bn}if(!Sn)break;Vt+=bn+1;var Cr=void 0;if(Sn[0]==" "){var Xr=x.cm.options.tabSize,yi=Xr-x.col%Xr;Cr=Bt.appendChild(Ht("span",kn(yi),"cm-tab")),Cr.setAttribute("role","presentation"),Cr.setAttribute("cm-text"," "),x.col+=yi}else Sn[0]=="\r"||Sn[0]==`
|
|
|
`?(Cr=Bt.appendChild(Ht("span",Sn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Cr.setAttribute("cm-text",Sn[0]),x.col+=1):(Cr=x.cm.options.specialCharPlaceholder(Sn[0]),Cr.setAttribute("cm-text",Sn[0]),Ve&&Re<9?Bt.appendChild(Ht("span",[Cr])):Bt.appendChild(Cr),x.col+=1);x.map.push(x.pos,x.pos+1,Cr),x.pos++}}if(x.trailingSpace=Fe.charCodeAt(z.length-1)==32,re||ne||ae||Ue||pe||Ce){var Di=re||"";ne&&(Di+=ne),ae&&(Di+=ae);var ci=Ht("span",[Bt],Di,pe);if(Ce)for(var Li in Ce)Ce.hasOwnProperty(Li)&&Li!="style"&&Li!="class"&&ci.setAttribute(Li,Ce[Li]);return x.content.appendChild(ci)}x.content.appendChild(Bt)}}function $a(x,z){if(x.length>1&&!/ /.test(x))return x;for(var re=z,ne="",ae=0;ae<x.length;ae++){var pe=x.charAt(ae);pe==" "&&re&&(ae==x.length-1||x.charCodeAt(ae+1)==32)&&(pe="\xA0"),ne+=pe,re=pe==" "}return ne}function Pa(x,z){return function(re,ne,ae,pe,Ce,Fe,Ne){ae=ae?ae+" cm-force-border":"cm-force-border";for(var Ue=re.pos,Bt=Ue+ne.length;;){for(var Vt=void 0,Sn=0;Sn<z.length&&(Vt=z[Sn],!(Vt.to>Ue&&Vt.from<=Ue));Sn++);if(Vt.to>=Bt)return x(re,ne,ae,pe,Ce,Fe,Ne);x(re,ne.slice(0,Vt.to-Ue),ae,pe,null,Fe,Ne),pe=null,ne=ne.slice(Vt.to-Ue),Ue=Vt.to}}}function Za(x,z,re,ne){var ae=!ne&&re.widgetNode;ae&&x.map.push(x.pos,x.pos+z,ae),!ne&&x.cm.display.input.needsContentAttribute&&(ae||(ae=x.content.appendChild(document.createElement("span"))),ae.setAttribute("cm-marker",re.id)),ae&&(x.cm.display.input.setUneditable(ae),x.content.appendChild(ae)),x.pos+=z,x.trailingSpace=!1}function Po(x,z,re){var ne=x.markedSpans,ae=x.text,pe=0;if(!ne){for(var Ce=1;Ce<re.length;Ce+=2)z.addToken(z,ae.slice(pe,pe=re[Ce]),fa(re[Ce+1],z.cm.options));return}for(var Fe=ae.length,Ne=0,Ue=1,Bt="",Vt,Sn,bn=0,nr,Cr,Xr,yi,Di;;){if(bn==Ne){nr=Cr=Xr=Sn="",Di=null,yi=null,bn=1/0;for(var ci=[],Li=void 0,ya=0;ya<ne.length;++ya){var Aa=ne[ya],uo=Aa.marker;if(uo.type=="bookmark"&&Aa.from==Ne&&uo.widgetNode)ci.push(uo);else if(Aa.from<=Ne&&(Aa.to==null||Aa.to>Ne||uo.collapsed&&Aa.to==Ne&&Aa.from==Ne)){if(Aa.to!=null&&Aa.to!=Ne&&bn>Aa.to&&(bn=Aa.to,Cr=""),uo.className&&(nr+=" "+uo.className),uo.css&&(Sn=(Sn?Sn+";":"")+uo.css),uo.startStyle&&Aa.from==Ne&&(Xr+=" "+uo.startStyle),uo.endStyle&&Aa.to==bn&&(Li||(Li=[])).push(uo.endStyle,Aa.to),uo.title&&((Di||(Di={})).title=uo.title),uo.attributes)for(var ss in uo.attributes)(Di||(Di={}))[ss]=uo.attributes[ss];uo.collapsed&&(!yi||gs(yi.marker,uo)<0)&&(yi=Aa)}else Aa.from>Ne&&bn>Aa.from&&(bn=Aa.from)}if(Li)for(var Dl=0;Dl<Li.length;Dl+=2)Li[Dl+1]==bn&&(Cr+=" "+Li[Dl]);if(!yi||yi.from==Ne)for(var Qs=0;Qs<ci.length;++Qs)Za(z,0,ci[Qs]);if(yi&&(yi.from||0)==Ne){if(Za(z,(yi.to==null?Fe+1:yi.to)-Ne,yi.marker,yi.from==null),yi.to==null)return;yi.to==Ne&&(yi=!1)}}if(Ne>=Fe)break;for(var tu=Math.min(Fe,bn);;){if(Bt){var nu=Ne+Bt.length;if(!yi){var gl=nu>tu?Bt.slice(0,tu-Ne):Bt;z.addToken(z,gl,Vt?Vt+nr:nr,Xr,Ne+gl.length==bn?Cr:"",Sn,Di)}if(nu>=tu){Bt=Bt.slice(tu-Ne),Ne=tu;break}Ne=nu,Xr=""}Bt=ae.slice(pe,pe=re[Ue++]),Vt=fa(re[Ue++],z.cm.options)}}}function tn(x,z,re){this.line=z,this.rest=Rt(z),this.size=this.rest?Na(xn(this.rest))-re+1:1,this.node=this.text=null,this.hidden=Rn(x,z)}function rn(x,z,re){for(var ne=[],ae,pe=z;pe<re;pe=ae){var Ce=new tn(x.doc,mi(x.doc,pe),pe);ae=pe+Ce.size,ne.push(Ce)}return ne}var fn=null;function Hn(x){fn?fn.ops.push(x):x.ownsGroup=fn={ops:[x],delayedCallbacks:[]}}function ei(x){var z=x.delayedCallbacks,re=0;do{for(;re<z.length;re++)z[re].call(null);for(var ne=0;ne<x.ops.length;ne++){var ae=x.ops[ne];if(ae.cursorActivityHandlers)for(;ae.cursorActivityCalled<ae.cursorActivityHandlers.length;)ae.cursorActivityHandlers[ae.cursorActivityCalled++].call(null,ae.cm)}}while(re<z.length)}function Wi(x,z){var re=x.ownsGroup;if(re)try{ei(re)}finally{fn=null,z(re)}}var Zn=null;function Lr(x,z){var re=wi(x,z);if(re.length){var ne=Array.prototype.slice.call(arguments,2),ae;fn?ae=fn.delayedCallbacks:Zn?ae=Zn:(ae=Zn=[],setTimeout(vi,0));for(var pe=function(Fe){ae.push(function(){return re[Fe].apply(null,ne)})},Ce=0;Ce<re.length;++Ce)pe(Ce)}}function vi(){var x=Zn;Zn=null;for(var z=0;z<x.length;++z)x[z]()}function qi(x,z,re,ne){for(var ae=0;ae<z.changes.length;ae++){var pe=z.changes[ae];pe=="text"?ha(x,z):pe=="gutter"?Ci(x,z,re,ne):pe=="class"?Ea(x,z):pe=="widget"&&fi(x,z,ne)}z.changes=null}function Kr(x){return x.node==x.text&&(x.node=Ht("div",null,null,"position: relative"),x.text.parentNode&&x.text.parentNode.replaceChild(x.node,x.text),x.node.appendChild(x.text),Ve&&Re<8&&(x.node.style.zIndex=2)),x.node}function dr(x,z){var re=z.bgClass?z.bgClass+" "+(z.line.bgClass||""):z.line.bgClass;if(re&&(re+=" CodeMirror-linebackground"),z.background)re?z.background.className=re:(z.background.parentNode.removeChild(z.background),z.background=null);else if(re){var ne=Kr(z);z.background=ne.insertBefore(Ht("div",null,re),ne.firstChild),x.display.input.setUneditable(z.background)}}function Vi(x,z){var re=x.display.externalMeasured;return re&&re.line==z.line?(x.display.externalMeasured=null,z.measure=re.measure,re.built):xa(x,z)}function ha(x,z){var re=z.text.className,ne=Vi(x,z);z.text==z.node&&(z.node=ne.pre),z.text.parentNode.replaceChild(ne.pre,z.text),z.text=ne.pre,ne.bgClass!=z.bgClass||ne.textClass!=z.textClass?(z.bgClass=ne.bgClass,z.textClass=ne.textClass,Ea(x,z)):re&&(z.text.className=re)}function Ea(x,z){dr(x,z),z.line.wrapClass?Kr(z).className=z.line.wrapClass:z.node!=z.text&&(z.node.className="");var re=z.textClass?z.textClass+" "+(z.line.textClass||""):z.line.textClass;z.text.className=re||""}function Ci(x,z,re,ne){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=Kr(z);z.gutterBackground=Ht("div",null,"CodeMirror-gutter-background "+z.line.gutterClass,"left: "+(x.options.fixedGutter?ne.fixedPos:-ne.gutterTotalWidth)+"px; width: "+ne.gutterTotalWidth+"px"),x.display.input.setUneditable(z.gutterBackground),ae.insertBefore(z.gutterBackground,z.text)}var pe=z.line.gutterMarkers;if(x.options.lineNumbers||pe){var Ce=Kr(z),Fe=z.gutter=Ht("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?ne.fixedPos:-ne.gutterTotalWidth)+"px");if(x.display.input.setUneditable(Fe),Ce.insertBefore(Fe,z.text),z.line.gutterClass&&(Fe.className+=" "+z.line.gutterClass),x.options.lineNumbers&&(!pe||!pe["CodeMirror-linenumbers"])&&(z.lineNumber=Fe.appendChild(Ht("div",lo(x.options,re),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ne.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px"))),pe)for(var Ne=0;Ne<x.display.gutterSpecs.length;++Ne){var Ue=x.display.gutterSpecs[Ne].className,Bt=pe.hasOwnProperty(Ue)&&pe[Ue];Bt&&Fe.appendChild(Ht("div",[Bt],"CodeMirror-gutter-elt","left: "+ne.gutterLeft[Ue]+"px; width: "+ne.gutterWidth[Ue]+"px"))}}}function fi(x,z,re){z.alignable&&(z.alignable=null);for(var ne=yt("CodeMirror-linewidget"),ae=z.node.firstChild,pe=void 0;ae;ae=pe)pe=ae.nextSibling,ne.test(ae.className)&&z.node.removeChild(ae);Ka(x,z,re)}function Ga(x,z,re,ne){var ae=Vi(x,z);return z.text=z.node=ae.pre,ae.bgClass&&(z.bgClass=ae.bgClass),ae.textClass&&(z.textClass=ae.textClass),Ea(x,z),Ci(x,z,re,ne),Ka(x,z,ne),z.node}function Ka(x,z,re){if(Ao(x,z.line,z,re,!0),z.rest)for(var ne=0;ne<z.rest.length;ne++)Ao(x,z.rest[ne],z,re,!1)}function Ao(x,z,re,ne,ae){if(z.widgets)for(var pe=Kr(re),Ce=0,Fe=z.widgets;Ce<Fe.length;++Ce){var Ne=Fe[Ce],Ue=Ht("div",[Ne.node],"CodeMirror-linewidget"+(Ne.className?" "+Ne.className:""));Ne.handleMouseEvents||Ue.setAttribute("cm-ignore-events","true"),Es(Ne,Ue,re,ne),x.display.input.setUneditable(Ue),ae&&Ne.above?pe.insertBefore(Ue,re.gutter||re.text):pe.appendChild(Ue),Lr(Ne,"redraw")}}function Es(x,z,re,ne){if(x.noHScroll){(re.alignable||(re.alignable=[])).push(z);var ae=ne.wrapperWidth;z.style.left=ne.fixedPos+"px",x.coverGutter||(ae-=ne.gutterTotalWidth,z.style.paddingLeft=ne.gutterTotalWidth+"px"),z.style.width=ae+"px"}x.coverGutter&&(z.style.zIndex=5,z.style.position="relative",x.noHScroll||(z.style.marginLeft=-ne.gutterTotalWidth+"px"))}function bl(x){if(x.height!=null)return x.height;var z=x.doc.cm;if(!z)return 0;if(!pt(document.body,x.node)){var re="position: relative;";x.coverGutter&&(re+="margin-left: -"+z.display.gutters.offsetWidth+"px;"),x.noHScroll&&(re+="width: "+z.display.wrapper.clientWidth+"px;"),Qt(z.display.measure,Ht("div",[x.node],null,re))}return x.height=x.node.parentNode.offsetHeight}function Io(x,z){for(var re=Fi(z);re!=x.wrapper;re=re.parentNode)if(!re||re.nodeType==1&&re.getAttribute("cm-ignore-events")=="true"||re.parentNode==x.sizer&&re!=x.mover)return!0}function Rl(x){return x.lineSpace.offsetTop}function To(x){return x.mover.offsetHeight-x.lineSpace.offsetHeight}function Ls(x){if(x.cachedPaddingH)return x.cachedPaddingH;var z=Qt(x.measure,Ht("pre","x","CodeMirror-line-like")),re=window.getComputedStyle?window.getComputedStyle(z):z.currentStyle,ne={left:parseInt(re.paddingLeft),right:parseInt(re.paddingRight)};return!isNaN(ne.left)&&!isNaN(ne.right)&&(x.cachedPaddingH=ne),ne}function Uo(x){return Jt-x.display.nativeBarWidth}function wo(x){return x.display.scroller.clientWidth-Uo(x)-x.display.barWidth}function ll(x){return x.display.scroller.clientHeight-Uo(x)-x.display.barHeight}function ul(x,z,re){var ne=x.options.lineWrapping,ae=ne&&wo(x);if(!z.measure.heights||ne&&z.measure.width!=ae){var pe=z.measure.heights=[];if(ne){z.measure.width=ae;for(var Ce=z.text.firstChild.getClientRects(),Fe=0;Fe<Ce.length-1;Fe++){var Ne=Ce[Fe],Ue=Ce[Fe+1];Math.abs(Ne.bottom-Ue.bottom)>2&&pe.push((Ne.bottom+Ue.top)/2-re.top)}}pe.push(re.bottom-re.top)}}function ia(x,z,re){if(x.line==z)return{map:x.measure.map,cache:x.measure.cache};for(var ne=0;ne<x.rest.length;ne++)if(x.rest[ne]==z)return{map:x.measure.maps[ne],cache:x.measure.caches[ne]};for(var ae=0;ae<x.rest.length;ae++)if(Na(x.rest[ae])>re)return{map:x.measure.maps[ae],cache:x.measure.caches[ae],before:!0}}function ys(x,z){z=Ft(z);var re=Na(z),ne=x.display.externalMeasured=new tn(x.doc,z,re);ne.lineN=re;var ae=ne.built=xa(x,ne);return ne.text=ae.pre,Qt(x.display.lineMeasure,ae.pre),ne}function cl(x,z,re,ne){return eo(x,is(x,z),re,ne)}function Gs(x,z){if(z>=x.display.viewFrom&&z<x.display.viewTo)return x.display.view[ko(x,z)];var re=x.display.externalMeasured;if(re&&z>=re.lineN&&z<re.lineN+re.size)return re}function is(x,z){var re=Na(z),ne=Gs(x,re);ne&&!ne.text?ne=null:ne&&ne.changes&&(qi(x,ne,re,Gl(x)),x.curOp.forceUpdate=!0),ne||(ne=ys(x,z));var ae=ia(ne,z,re);return{line:z,view:ne,rect:null,map:ae.map,cache:ae.cache,before:ae.before,hasHeights:!1}}function eo(x,z,re,ne,ae){z.before&&(re=-1);var pe=re+(ne||""),Ce;return z.cache.hasOwnProperty(pe)?Ce=z.cache[pe]:(z.rect||(z.rect=z.view.text.getBoundingClientRect()),z.hasHeights||(ul(x,z.view,z.rect),z.hasHeights=!0),Ce=Hu(x,z,re,ne),Ce.bogus||(z.cache[pe]=Ce)),{left:Ce.left,right:Ce.right,top:ae?Ce.rtop:Ce.top,bottom:ae?Ce.rbottom:Ce.bottom}}var Ul={left:0,right:0,top:0,bottom:0};function Fs(x,z,re){for(var ne,ae,pe,Ce,Fe,Ne,Ue=0;Ue<x.length;Ue+=3)if(Fe=x[Ue],Ne=x[Ue+1],z<Fe?(ae=0,pe=1,Ce="left"):z<Ne?(ae=z-Fe,pe=ae+1):(Ue==x.length-3||z==Ne&&x[Ue+3]>z)&&(pe=Ne-Fe,ae=pe-1,z>=Ne&&(Ce="right")),ae!=null){if(ne=x[Ue+2],Fe==Ne&&re==(ne.insertLeft?"left":"right")&&(Ce=re),re=="left"&&ae==0)for(;Ue&&x[Ue-2]==x[Ue-3]&&x[Ue-1].insertLeft;)ne=x[(Ue-=3)+2],Ce="left";if(re=="right"&&ae==Ne-Fe)for(;Ue<x.length-3&&x[Ue+3]==x[Ue+4]&&!x[Ue+5].insertLeft;)ne=x[(Ue+=3)+2],Ce="right";break}return{node:ne,start:ae,end:pe,collapse:Ce,coverStart:Fe,coverEnd:Ne}}function Fl(x,z){var re=Ul;if(z=="left")for(var ne=0;ne<x.length&&(re=x[ne]).left==re.right;ne++);else for(var ae=x.length-1;ae>=0&&(re=x[ae]).left==re.right;ae--);return re}function Hu(x,z,re,ne){var ae=Fs(z.map,re,ne),pe=ae.node,Ce=ae.start,Fe=ae.end,Ne=ae.collapse,Ue;if(pe.nodeType==3){for(var Bt=0;Bt<4;Bt++){for(;Ce&&_t(z.line.text.charAt(ae.coverStart+Ce));)--Ce;for(;ae.coverStart+Fe<ae.coverEnd&&_t(z.line.text.charAt(ae.coverStart+Fe));)++Fe;if(Ve&&Re<9&&Ce==0&&Fe==ae.coverEnd-ae.coverStart?Ue=pe.parentNode.getBoundingClientRect():Ue=Fl(Ye(pe,Ce,Fe).getClientRects(),ne),Ue.left||Ue.right||Ce==0)break;Fe=Ce,Ce=Ce-1,Ne="right"}Ve&&Re<11&&(Ue=zu(x.display.measure,Ue))}else{Ce>0&&(Ne=ne="right");var Vt;x.options.lineWrapping&&(Vt=pe.getClientRects()).length>1?Ue=Vt[ne=="right"?Vt.length-1:0]:Ue=pe.getBoundingClientRect()}if(Ve&&Re<9&&!Ce&&(!Ue||!Ue.left&&!Ue.right)){var Sn=pe.parentNode.getClientRects()[0];Sn?Ue={left:Sn.left,right:Sn.left+Ys(x.display),top:Sn.top,bottom:Sn.bottom}:Ue=Ul}for(var bn=Ue.top-z.rect.top,nr=Ue.bottom-z.rect.top,Cr=(bn+nr)/2,Xr=z.view.measure.heights,yi=0;yi<Xr.length-1&&!(Cr<Xr[yi]);yi++);var Di=yi?Xr[yi-1]:0,ci=Xr[yi],Li={left:(Ne=="right"?Ue.right:Ue.left)-z.rect.left,right:(Ne=="left"?Ue.left:Ue.right)-z.rect.left,top:Di,bottom:ci};return!Ue.left&&!Ue.right&&(Li.bogus=!0),x.options.singleCursorHeightPerLine||(Li.rtop=bn,Li.rbottom=nr),Li}function zu(x,z){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Hi(x))return z;var re=screen.logicalXDPI/screen.deviceXDPI,ne=screen.logicalYDPI/screen.deviceYDPI;return{left:z.left*re,right:z.right*re,top:z.top*ne,bottom:z.bottom*ne}}function dl(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 Fu(x){x.display.externalMeasure=null,Xt(x.display.lineMeasure);for(var z=0;z<x.display.view.length;z++)dl(x.display.view[z])}function jl(x){Fu(x),x.display.cachedCharWidth=x.display.cachedTextHeight=x.display.cachedPaddingH=null,x.options.lineWrapping||(x.display.maxLineChanged=!0),x.display.lineNumChars=null}function fu(){return we&&$e?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function yu(){return we&&$e?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function hu(x){var z=0;if(x.widgets)for(var re=0;re<x.widgets.length;++re)x.widgets[re].above&&(z+=bl(x.widgets[re]));return z}function pu(x,z,re,ne,ae){if(!ae){var pe=hu(z);re.top+=pe,re.bottom+=pe}if(ne=="line")return re;ne||(ne="local");var Ce=sn(z);if(ne=="local"?Ce+=Rl(x.display):Ce-=x.display.viewOffset,ne=="page"||ne=="window"){var Fe=x.display.lineSpace.getBoundingClientRect();Ce+=Fe.top+(ne=="window"?0:yu());var Ne=Fe.left+(ne=="window"?0:fu());re.left+=Ne,re.right+=Ne}return re.top+=Ce,re.bottom+=Ce,re}function mu(x,z,re){if(re=="div")return z;var ne=z.left,ae=z.top;if(re=="page")ne-=fu(),ae-=yu();else if(re=="local"||!re){var pe=x.display.sizer.getBoundingClientRect();ne+=pe.left,ae+=pe.top}var Ce=x.display.lineSpace.getBoundingClientRect();return{left:ne-Ce.left,top:ae-Ce.top}}function bu(x,z,re,ne,ae){return ne||(ne=mi(x.doc,z.line)),pu(x,ne,cl(x,ne,z.ch,ae),re)}function $s(x,z,re,ne,ae,pe){ne=ne||mi(x.doc,z.line),ae||(ae=is(x,ne));function Ce(nr,Cr){var Xr=eo(x,ae,nr,Cr?"right":"left",pe);return Cr?Xr.left=Xr.right:Xr.right=Xr.left,pu(x,ne,Xr,re)}var Fe=Dr(ne,x.doc.direction),Ne=z.ch,Ue=z.sticky;if(Ne>=ne.text.length?(Ne=ne.text.length,Ue="before"):Ne<=0&&(Ne=0,Ue="after"),!Fe)return Ce(Ue=="before"?Ne-1:Ne,Ue=="before");function Bt(nr,Cr,Xr){var yi=Fe[Cr],Di=yi.level==1;return Ce(Xr?nr-1:nr,Di!=Xr)}var Vt=nn(Fe,Ne,Ue),Sn=yn,bn=Bt(Ne,Vt,Ue=="before");return Sn!=null&&(bn.other=Bt(Ne,Sn,Ue!="before")),bn}function xu(x,z){var re=0;z=Ma(x.doc,z),x.options.lineWrapping||(re=Ys(x.display)*z.ch);var ne=mi(x.doc,z.line),ae=sn(ne)+Rl(x.display);return{left:re,right:re,top:ae,bottom:ae+ne.height}}function Zl(x,z,re,ne,ae){var pe=cr(x,z,re);return pe.xRel=ae,ne&&(pe.outside=ne),pe}function Al(x,z,re){var ne=x.doc;if(re+=x.display.viewOffset,re<0)return Zl(ne.first,0,null,-1,-1);var ae=Rs(ne,re),pe=ne.first+ne.size-1;if(ae>pe)return Zl(ne.first+ne.size-1,mi(ne,pe).text.length,null,1,1);z<0&&(z=0);for(var Ce=mi(ne,ae);;){var Fe=$u(x,Ce,ae,z,re),Ne=Ae(Ce,Fe.ch+(Fe.xRel>0||Fe.outside>0?1:0));if(!Ne)return Fe;var Ue=Ne.find(1);if(Ue.line==ae)return Ue;Ce=mi(ne,ae=Ue.line)}}function Pu(x,z,re,ne){ne-=hu(z);var ae=z.text.length,pe=Dn(function(Ce){return eo(x,re,Ce-1).bottom<=ne},ae,0);return ae=Dn(function(Ce){return eo(x,re,Ce).top>ne},pe,ae),{begin:pe,end:ae}}function wu(x,z,re,ne){re||(re=is(x,z));var ae=pu(x,z,eo(x,re,ne),"line").top;return Pu(x,z,re,ae)}function Iu(x,z,re,ne){return x.bottom<=re?!1:x.top>re?!0:(ne?x.left:x.right)>z}function $u(x,z,re,ne,ae){ae-=sn(z);var pe=is(x,z),Ce=hu(z),Fe=0,Ne=z.text.length,Ue=!0,Bt=Dr(z,x.doc.direction);if(Bt){var Vt=(x.options.lineWrapping?Cu:au)(x,z,re,pe,Bt,ne,ae);Ue=Vt.level!=1,Fe=Ue?Vt.from:Vt.to-1,Ne=Ue?Vt.to:Vt.from-1}var Sn=null,bn=null,nr=Dn(function(ya){var Aa=eo(x,pe,ya);return Aa.top+=Ce,Aa.bottom+=Ce,Iu(Aa,ne,ae,!1)?(Aa.top<=ae&&Aa.left<=ne&&(Sn=ya,bn=Aa),!0):!1},Fe,Ne),Cr,Xr,yi=!1;if(bn){var Di=ne-bn.left<bn.right-ne,ci=Di==Ue;nr=Sn+(ci?0:1),Xr=ci?"after":"before",Cr=Di?bn.left:bn.right}else{!Ue&&(nr==Ne||nr==Fe)&&nr++,Xr=nr==0?"after":nr==z.text.length?"before":eo(x,pe,nr-(Ue?1:0)).bottom+Ce<=ae==Ue?"after":"before";var Li=$s(x,cr(re,nr,Xr),"line",z,pe);Cr=Li.left,yi=ae<Li.top?-1:ae>=Li.bottom?1:0}return nr=Zt(z.text,nr,1),Zl(re,nr,Xr,yi,ne-Cr)}function au(x,z,re,ne,ae,pe,Ce){var Fe=Dn(function(Vt){var Sn=ae[Vt],bn=Sn.level!=1;return Iu($s(x,cr(re,bn?Sn.to:Sn.from,bn?"before":"after"),"line",z,ne),pe,Ce,!0)},0,ae.length-1),Ne=ae[Fe];if(Fe>0){var Ue=Ne.level!=1,Bt=$s(x,cr(re,Ue?Ne.from:Ne.to,Ue?"after":"before"),"line",z,ne);Iu(Bt,pe,Ce,!0)&&Bt.top>Ce&&(Ne=ae[Fe-1])}return Ne}function Cu(x,z,re,ne,ae,pe,Ce){var Fe=Pu(x,z,ne,Ce),Ne=Fe.begin,Ue=Fe.end;/\s/.test(z.text.charAt(Ue-1))&&Ue--;for(var Bt=null,Vt=null,Sn=0;Sn<ae.length;Sn++){var bn=ae[Sn];if(!(bn.from>=Ue||bn.to<=Ne)){var nr=bn.level!=1,Cr=eo(x,ne,nr?Math.min(Ue,bn.to)-1:Math.max(Ne,bn.from)).right,Xr=Cr<pe?pe-Cr+1e9:Cr-pe;(!Bt||Vt>Xr)&&(Bt=bn,Vt=Xr)}}return Bt||(Bt=ae[ae.length-1]),Bt.from<Ne&&(Bt={from:Ne,to:Bt.to,level:Bt.level}),Bt.to>Ue&&(Bt={from:Bt.from,to:Ue,level:Bt.level}),Bt}var Pl;function _l(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(Pl==null){Pl=Ht("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)Pl.appendChild(document.createTextNode("x")),Pl.appendChild(Ht("br"));Pl.appendChild(document.createTextNode("x"))}Qt(x.measure,Pl);var re=Pl.offsetHeight/50;return re>3&&(x.cachedTextHeight=re),Xt(x.measure),re||1}function Ys(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=Ht("span","xxxxxxxxxx"),re=Ht("pre",[z],"CodeMirror-line-like");Qt(x.measure,re);var ne=z.getBoundingClientRect(),ae=(ne.right-ne.left)/10;return ae>2&&(x.cachedCharWidth=ae),ae||10}function Gl(x){for(var z=x.display,re={},ne={},ae=z.gutters.clientLeft,pe=z.gutters.firstChild,Ce=0;pe;pe=pe.nextSibling,++Ce){var Fe=x.display.gutterSpecs[Ce].className;re[Fe]=pe.offsetLeft+pe.clientLeft+ae,ne[Fe]=pe.clientWidth}return{fixedPos:ou(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:re,gutterWidth:ne,wrapperWidth:z.wrapper.clientWidth}}function ou(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function Eu(x){var z=_l(x.display),re=x.options.lineWrapping,ne=re&&Math.max(5,x.display.scroller.clientWidth/Ys(x.display)-3);return function(ae){if(Rn(x.doc,ae))return 0;var pe=0;if(ae.widgets)for(var Ce=0;Ce<ae.widgets.length;Ce++)ae.widgets[Ce].height&&(pe+=ae.widgets[Ce].height);return re?pe+(Math.ceil(ae.text.length/ne)||1)*z:pe+z}}function su(x){var z=x.doc,re=Eu(x);z.iter(function(ne){var ae=re(ne);ae!=ne.height&&Ja(ne,ae)})}function Kl(x,z,re,ne){var ae=x.display;if(!re&&Fi(z).getAttribute("cm-not-content")=="true")return null;var pe,Ce,Fe=ae.lineSpace.getBoundingClientRect();try{pe=z.clientX-Fe.left,Ce=z.clientY-Fe.top}catch(Vt){return null}var Ne=Al(x,pe,Ce),Ue;if(ne&&Ne.xRel>0&&(Ue=mi(x.doc,Ne.line).text).length==Ne.ch){var Bt=Ge(Ue,Ue.length,x.options.tabSize)-Ue.length;Ne=cr(Ne.line,Math.max(0,Math.round((pe-Ls(x.display).left)/Ys(x.display))-Bt))}return Ne}function ko(x,z){if(z>=x.display.viewTo||(z-=x.display.viewFrom,z<0))return null;for(var re=x.display.view,ne=0;ne<re.length;ne++)if(z-=re[ne].size,z<0)return ne}function Ba(x,z,re,ne){z==null&&(z=x.doc.first),re==null&&(re=x.doc.first+x.doc.size),ne||(ne=0);var ae=x.display;if(ne&&re<ae.viewTo&&(ae.updateLineNumbers==null||ae.updateLineNumbers>z)&&(ae.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=ae.viewTo)So&&In(x.doc,z)<ae.viewTo&&ls(x);else if(re<=ae.viewFrom)So&&zn(x.doc,re+ne)>ae.viewFrom?ls(x):(ae.viewFrom+=ne,ae.viewTo+=ne);else if(z<=ae.viewFrom&&re>=ae.viewTo)ls(x);else if(z<=ae.viewFrom){var pe=Te(x,re,re+ne,1);pe?(ae.view=ae.view.slice(pe.index),ae.viewFrom=pe.lineN,ae.viewTo+=ne):ls(x)}else if(re>=ae.viewTo){var Ce=Te(x,z,z,-1);Ce?(ae.view=ae.view.slice(0,Ce.index),ae.viewTo=Ce.lineN):ls(x)}else{var Fe=Te(x,z,z,-1),Ne=Te(x,re,re+ne,1);Fe&&Ne?(ae.view=ae.view.slice(0,Fe.index).concat(rn(x,Fe.lineN,Ne.lineN)).concat(ae.view.slice(Ne.index)),ae.viewTo+=ne):ls(x)}var Ue=ae.externalMeasured;Ue&&(re<Ue.lineN?Ue.lineN+=ne:z<Ue.lineN+Ue.size&&(ae.externalMeasured=null))}function Yo(x,z,re){x.curOp.viewChanged=!0;var ne=x.display,ae=x.display.externalMeasured;if(ae&&z>=ae.lineN&&z<ae.lineN+ae.size&&(ne.externalMeasured=null),!(z<ne.viewFrom||z>=ne.viewTo)){var pe=ne.view[ko(x,z)];if(pe.node!=null){var Ce=pe.changes||(pe.changes=[]);Yt(Ce,re)==-1&&Ce.push(re)}}}function ls(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function Te(x,z,re,ne){var ae=ko(x,z),pe,Ce=x.display.view;if(!So||re==x.doc.first+x.doc.size)return{index:ae,lineN:re};for(var Fe=x.display.viewFrom,Ne=0;Ne<ae;Ne++)Fe+=Ce[Ne].size;if(Fe!=z){if(ne>0){if(ae==Ce.length-1)return null;pe=Fe+Ce[ae].size-z,ae++}else pe=Fe-z;z+=pe,re+=pe}for(;In(x.doc,re)!=re;){if(ae==(ne<0?0:Ce.length-1))return null;re+=ne*Ce[ae-(ne<0?1:0)].size,ae+=ne}return{index:ae,lineN:re}}function He(x,z,re){var ne=x.display,ae=ne.view;ae.length==0||z>=ne.viewTo||re<=ne.viewFrom?(ne.view=rn(x,z,re),ne.viewFrom=z):(ne.viewFrom>z?ne.view=rn(x,z,ne.viewFrom).concat(ne.view):ne.viewFrom<z&&(ne.view=ne.view.slice(ko(x,z))),ne.viewFrom=z,ne.viewTo<re?ne.view=ne.view.concat(rn(x,ne.viewTo,re)):ne.viewTo>re&&(ne.view=ne.view.slice(0,ko(x,re)))),ne.viewTo=re}function Nt(x){for(var z=x.display.view,re=0,ne=0;ne<z.length;ne++){var ae=z[ne];!ae.hidden&&(!ae.node||ae.changes)&&++re}return re}function Tt(x){x.display.input.showSelection(x.display.input.prepareSelection())}function hn(x,z){z===void 0&&(z=!0);for(var re=x.doc,ne={},ae=ne.cursors=document.createDocumentFragment(),pe=ne.selection=document.createDocumentFragment(),Ce=0;Ce<re.sel.ranges.length;Ce++)if(!(!z&&Ce==re.sel.primIndex)){var Fe=re.sel.ranges[Ce];if(!(Fe.from().line>=x.display.viewTo||Fe.to().line<x.display.viewFrom)){var Ne=Fe.empty();(Ne||x.options.showCursorWhenSelecting)&&En(x,Fe.head,ae),Ne||or(x,Fe,pe)}}return ne}function En(x,z,re){var ne=$s(x,z,"div",null,null,!x.options.singleCursorHeightPerLine),ae=re.appendChild(Ht("div","\xA0","CodeMirror-cursor"));if(ae.style.left=ne.left+"px",ae.style.top=ne.top+"px",ae.style.height=Math.max(0,ne.bottom-ne.top)*x.options.cursorHeight+"px",ne.other){var pe=re.appendChild(Ht("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));pe.style.display="",pe.style.left=ne.other.left+"px",pe.style.top=ne.other.top+"px",pe.style.height=(ne.other.bottom-ne.other.top)*.85+"px"}}function Nn(x,z){return x.top-z.top||x.left-z.left}function or(x,z,re){var ne=x.display,ae=x.doc,pe=document.createDocumentFragment(),Ce=Ls(x.display),Fe=Ce.left,Ne=Math.max(ne.sizerWidth,wo(x)-ne.sizer.offsetLeft)-Ce.right,Ue=ae.direction=="ltr";function Bt(ci,Li,ya,Aa){Li<0&&(Li=0),Li=Math.round(Li),Aa=Math.round(Aa),pe.appendChild(Ht("div",null,"CodeMirror-selected","position: absolute; left: "+ci+`px;
|
|
|
top: `+Li+"px; width: "+(ya==null?Ne-ci:ya)+`px;
|
|
|
height: `+(Aa-Li)+"px"))}function Vt(ci,Li,ya){var Aa=mi(ae,ci),uo=Aa.text.length,ss,Dl;function Qs(gl,Jl){return bu(x,cr(ci,gl),"div",Aa,Jl)}function tu(gl,Jl,ja){var nl=wu(x,Aa,null,gl),Os=Jl=="ltr"==(ja=="after")?"left":"right",Js=ja=="after"?nl.begin:nl.end-(/\s/.test(Aa.text.charAt(nl.end-1))?2:1);return Qs(Js,Os)[Os]}var nu=Dr(Aa,ae.direction);return An(nu,Li||0,ya==null?uo:ya,function(gl,Jl,ja,nl){var Os=ja=="ltr",Js=Qs(gl,Os?"left":"right"),pl=Qs(Jl-1,Os?"right":"left"),Mc=Li==null&&gl==0,cu=ya==null&&Jl==uo,Nl=nl==0,Vo=!nu||nl==nu.length-1;if(pl.top-Js.top<=3){var oe=(Ue?Mc:cu)&&Nl,le=(Ue?cu:Mc)&&Vo,de=oe?Fe:(Os?Js:pl).left,xe=le?Ne:(Os?pl:Js).right;Bt(de,Js.top,xe-de,Js.bottom)}else{var Ie,Pe,ze,je;Os?(Ie=Ue&&Mc&&Nl?Fe:Js.left,Pe=Ue?Ne:tu(gl,ja,"before"),ze=Ue?Fe:tu(Jl,ja,"after"),je=Ue&&cu&&Vo?Ne:pl.right):(Ie=Ue?tu(gl,ja,"before"):Fe,Pe=!Ue&&Mc&&Nl?Ne:Js.right,ze=!Ue&&cu&&Vo?Fe:pl.left,je=Ue?tu(Jl,ja,"after"):Ne),Bt(Ie,Js.top,Pe-Ie,Js.bottom),Js.bottom<pl.top&&Bt(Fe,Js.bottom,null,pl.top),Bt(ze,pl.top,je-ze,pl.bottom)}(!ss||Nn(Js,ss)<0)&&(ss=Js),Nn(pl,ss)<0&&(ss=pl),(!Dl||Nn(Js,Dl)<0)&&(Dl=Js),Nn(pl,Dl)<0&&(Dl=pl)}),{start:ss,end:Dl}}var Sn=z.from(),bn=z.to();if(Sn.line==bn.line)Vt(Sn.line,Sn.ch,bn.ch);else{var nr=mi(ae,Sn.line),Cr=mi(ae,bn.line),Xr=Ft(nr)==Ft(Cr),yi=Vt(Sn.line,Sn.ch,Xr?nr.text.length+1:null).end,Di=Vt(bn.line,Xr?0:null,bn.ch).start;Xr&&(yi.top<Di.top-2?(Bt(yi.right,yi.top,null,yi.bottom),Bt(Fe,Di.top,Di.left,Di.bottom)):Bt(yi.right,yi.top,Di.left-yi.right,yi.bottom)),yi.bottom<Di.top&&Bt(Fe,yi.bottom,null,Di.top)}re.appendChild(pe)}function lr(x){if(x.state.focused){var z=x.display;clearInterval(z.blinker);var re=!0;z.cursorDiv.style.visibility="",x.options.cursorBlinkRate>0?z.blinker=setInterval(function(){x.hasFocus()||hi(x),z.cursorDiv.style.visibility=(re=!re)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function vr(x){x.state.focused||(x.display.input.focus(),Fr(x))}function si(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,hi(x))},100)}function Fr(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(Ir(x,"focus",x,z),x.state.focused=!0,ut(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),it&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),lr(x))}function hi(x,z){x.state.delayingBlurEvent||(x.state.focused&&(Ir(x,"blur",x,z),x.state.focused=!1,zt(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function Mr(x){for(var z=x.display,re=z.lineDiv.offsetTop,ne=0;ne<z.view.length;ne++){var ae=z.view[ne],pe=x.options.lineWrapping,Ce=void 0,Fe=0;if(!ae.hidden){if(Ve&&Re<8){var Ne=ae.node.offsetTop+ae.node.offsetHeight;Ce=Ne-re,re=Ne}else{var Ue=ae.node.getBoundingClientRect();Ce=Ue.bottom-Ue.top,!pe&&ae.text.firstChild&&(Fe=ae.text.firstChild.getBoundingClientRect().right-Ue.left-1)}var Bt=ae.line.height-Ce;if((Bt>.005||Bt<-.005)&&(Ja(ae.line,Ce),ti(ae.line),ae.rest))for(var Vt=0;Vt<ae.rest.length;Vt++)ti(ae.rest[Vt]);if(Fe>x.display.sizerWidth){var Sn=Math.ceil(Fe/Ys(x.display));Sn>x.display.maxLineLength&&(x.display.maxLineLength=Sn,x.display.maxLine=ae.line,x.display.maxLineChanged=!0)}}}}function ti(x){if(x.widgets)for(var z=0;z<x.widgets.length;++z){var re=x.widgets[z],ne=re.node.parentNode;ne&&(re.height=ne.offsetHeight)}}function Rr(x,z,re){var ne=re&&re.top!=null?Math.max(0,re.top):x.scroller.scrollTop;ne=Math.floor(ne-Rl(x));var ae=re&&re.bottom!=null?re.bottom:ne+x.wrapper.clientHeight,pe=Rs(z,ne),Ce=Rs(z,ae);if(re&&re.ensure){var Fe=re.ensure.from.line,Ne=re.ensure.to.line;Fe<pe?(pe=Fe,Ce=Rs(z,sn(mi(z,Fe))+x.wrapper.clientHeight)):Math.min(Ne,z.lastLine())>=Ce&&(pe=Rs(z,sn(mi(z,Ne))-x.wrapper.clientHeight),Ce=Ne)}return{from:pe,to:Math.max(Ce,pe+1)}}function pi(x,z){if(!Or(x,"scrollCursorIntoView")){var re=x.display,ne=re.sizer.getBoundingClientRect(),ae=null;if(z.top+ne.top<0?ae=!0:z.bottom+ne.top>(window.innerHeight||document.documentElement.clientHeight)&&(ae=!1),ae!=null&&!kt){var pe=Ht("div","\u200B",null,`position: absolute;
|
|
|
top: `+(z.top-re.viewOffset-Rl(x.display))+`px;
|
|
|
height: `+(z.bottom-z.top+Uo(x)+re.barHeight)+`px;
|
|
|
left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(pe),pe.scrollIntoView(ae),x.display.lineSpace.removeChild(pe)}}}function ki(x,z,re,ne){ne==null&&(ne=0);var ae;!x.options.lineWrapping&&z==re&&(z=z.ch?cr(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,re=z.sticky=="before"?cr(z.line,z.ch+1,"before"):z);for(var pe=0;pe<5;pe++){var Ce=!1,Fe=$s(x,z),Ne=!re||re==z?Fe:$s(x,re);ae={left:Math.min(Fe.left,Ne.left),top:Math.min(Fe.top,Ne.top)-ne,right:Math.max(Fe.left,Ne.left),bottom:Math.max(Fe.bottom,Ne.bottom)+ne};var Ue=We(x,ae),Bt=x.doc.scrollTop,Vt=x.doc.scrollLeft;if(Ue.scrollTop!=null&&(gt(x,Ue.scrollTop),Math.abs(x.doc.scrollTop-Bt)>1&&(Ce=!0)),Ue.scrollLeft!=null&&(jt(x,Ue.scrollLeft),Math.abs(x.doc.scrollLeft-Vt)>1&&(Ce=!0)),!Ce)break}return ae}function Be(x,z){var re=We(x,z);re.scrollTop!=null&>(x,re.scrollTop),re.scrollLeft!=null&&jt(x,re.scrollLeft)}function We(x,z){var re=x.display,ne=_l(x.display);z.top<0&&(z.top=0);var ae=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:re.scroller.scrollTop,pe=ll(x),Ce={};z.bottom-z.top>pe&&(z.bottom=z.top+pe);var Fe=x.doc.height+To(re),Ne=z.top<ne,Ue=z.bottom>Fe-ne;if(z.top<ae)Ce.scrollTop=Ne?0:z.top;else if(z.bottom>ae+pe){var Bt=Math.min(z.top,(Ue?Fe:z.bottom)-pe);Bt!=ae&&(Ce.scrollTop=Bt)}var Vt=x.options.fixedGutter?0:re.gutters.offsetWidth,Sn=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:re.scroller.scrollLeft-Vt,bn=wo(x)-re.gutters.offsetWidth,nr=z.right-z.left>bn;return nr&&(z.right=z.left+bn),z.left<10?Ce.scrollLeft=0:z.left<Sn?Ce.scrollLeft=Math.max(0,z.left+Vt-(nr?0:10)):z.right>bn+Sn-3&&(Ce.scrollLeft=z.right+(nr?0:10)-bn),Ce}function Ct(x,z){z!=null&&(Kt(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function De(x){Kt(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function vt(x,z,re){(z!=null||re!=null)&&Kt(x),z!=null&&(x.curOp.scrollLeft=z),re!=null&&(x.curOp.scrollTop=re)}function Mt(x,z){Kt(x),x.curOp.scrollToPos=z}function Kt(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var re=xu(x,z.from),ne=xu(x,z.to);rt(x,re,ne,z.margin)}}function rt(x,z,re,ne){var ae=We(x,{left:Math.min(z.left,re.left),top:Math.min(z.top,re.top)-ne,right:Math.max(z.right,re.right),bottom:Math.max(z.bottom,re.bottom)+ne});vt(x,ae.scrollLeft,ae.scrollTop)}function gt(x,z){Math.abs(x.doc.scrollTop-z)<2||(te||pa(x,{top:z}),xt(x,z,!0),te&&pa(x),Sr(x,100))}function xt(x,z,re){z=Math.max(0,Math.min(x.display.scroller.scrollHeight-x.display.scroller.clientHeight,z)),!(x.display.scroller.scrollTop==z&&!re)&&(x.doc.scrollTop=z,x.display.scrollbars.setScrollTop(z),x.display.scroller.scrollTop!=z&&(x.display.scroller.scrollTop=z))}function jt(x,z,re,ne){z=Math.max(0,Math.min(z,x.display.scroller.scrollWidth-x.display.scroller.clientWidth)),!((re?z==x.doc.scrollLeft:Math.abs(x.doc.scrollLeft-z)<2)&&!ne)&&(x.doc.scrollLeft=z,ri(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function $t(x){var z=x.display,re=z.gutters.offsetWidth,ne=Math.round(x.doc.height+To(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?re:0,docHeight:ne,scrollHeight:ne+Uo(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:re}}var mn=function(x,z,re){this.cm=re;var ne=this.vert=Ht("div",[Ht("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ae=this.horiz=Ht("div",[Ht("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ne.tabIndex=ae.tabIndex=-1,x(ne),x(ae),jn(ne,"scroll",function(){ne.clientHeight&&z(ne.scrollTop,"vertical")}),jn(ae,"scroll",function(){ae.clientWidth&&z(ae.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ve&&Re<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};mn.prototype.update=function(x){var z=x.scrollWidth>x.clientWidth+1,re=x.scrollHeight>x.clientHeight+1,ne=x.nativeBarWidth;if(re){this.vert.style.display="block",this.vert.style.bottom=z?ne+"px":"0";var ae=x.viewHeight-(z?ne: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=re?ne+"px":"0",this.horiz.style.left=x.barLeft+"px";var pe=x.viewWidth-x.barLeft-(re?ne:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+pe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&x.clientHeight>0&&(ne==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:re?ne:0,bottom:z?ne:0}},mn.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mn.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mn.prototype.zeroWidthHack=function(){var x=Qe&&!ve?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ke,this.disableVert=new Ke},mn.prototype.enableZeroWidthBar=function(x,z,re){x.style.pointerEvents="auto";function ne(){var ae=x.getBoundingClientRect(),pe=re=="vert"?document.elementFromPoint(ae.right-1,(ae.top+ae.bottom)/2):document.elementFromPoint((ae.right+ae.left)/2,ae.bottom-1);pe!=x?x.style.pointerEvents="none":z.set(1e3,ne)}z.set(1e3,ne)},mn.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var qt=function(){};qt.prototype.update=function(){return{bottom:0,right:0}},qt.prototype.setScrollLeft=function(){},qt.prototype.setScrollTop=function(){},qt.prototype.clear=function(){};function gn(x,z){z||(z=$t(x));var re=x.display.barWidth,ne=x.display.barHeight;Ln(x,z);for(var ae=0;ae<4&&re!=x.display.barWidth||ne!=x.display.barHeight;ae++)re!=x.display.barWidth&&x.options.lineWrapping&&Mr(x),Ln(x,$t(x)),re=x.display.barWidth,ne=x.display.barHeight}function Ln(x,z){var re=x.display,ne=re.scrollbars.update(z);re.sizer.style.paddingRight=(re.barWidth=ne.right)+"px",re.sizer.style.paddingBottom=(re.barHeight=ne.bottom)+"px",re.heightForcer.style.borderBottom=ne.bottom+"px solid transparent",ne.right&&ne.bottom?(re.scrollbarFiller.style.display="block",re.scrollbarFiller.style.height=ne.bottom+"px",re.scrollbarFiller.style.width=ne.right+"px"):re.scrollbarFiller.style.display="",ne.bottom&&x.options.coverGutterNextToScrollbar&&x.options.fixedGutter?(re.gutterFiller.style.display="block",re.gutterFiller.style.height=ne.bottom+"px",re.gutterFiller.style.width=z.gutterWidth+"px"):re.gutterFiller.style.display=""}var Wn={native:mn,null:qt};function Cn(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&zt(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new Wn[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),jn(z,"mousedown",function(){x.state.focused&&setTimeout(function(){return x.display.input.focus()},0)}),z.setAttribute("cm-not-content","true")},function(z,re){re=="horizontal"?jt(x,z):gt(x,z)},x),x.display.scrollbars.addClass&&ut(x.display.wrapper,x.display.scrollbars.addClass)}var sr=0;function Un(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:++sr},Hn(x.curOp)}function qn(x){var z=x.curOp;z&&Wi(z,function(re){for(var ne=0;ne<re.ops.length;ne++)re.ops[ne].cm.curOp=null;mr(re)})}function mr(x){for(var z=x.ops,re=0;re<z.length;re++)Gn(z[re]);for(var ne=0;ne<z.length;ne++)kr(z[ne]);for(var ae=0;ae<z.length;ae++)Er(z[ae]);for(var pe=0;pe<z.length;pe++)hr(z[pe]);for(var Ce=0;Ce<z.length;Ce++)ar(z[Ce])}function Gn(x){var z=x.cm,re=z.display;_r(z),x.updateMaxLine&&Tn(z),x.mustUpdate=x.viewChanged||x.forceUpdate||x.scrollTop!=null||x.scrollToPos&&(x.scrollToPos.from.line<re.viewFrom||x.scrollToPos.to.line>=re.viewTo)||re.maxLineChanged&&z.options.lineWrapping,x.update=x.mustUpdate&&new rr(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function kr(x){x.updatedDisplay=x.mustUpdate&&Ui(x.cm,x.update)}function Er(x){var z=x.cm,re=z.display;x.updatedDisplay&&Mr(z),x.barMeasure=$t(z),re.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=cl(z,re.maxLine,re.maxLine.text.length).left+3,z.display.sizerWidth=x.adjustWidthTo,x.barMeasure.scrollWidth=Math.max(re.scroller.clientWidth,re.sizer.offsetLeft+x.adjustWidthTo+Uo(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,re.sizer.offsetLeft+x.adjustWidthTo-wo(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=re.input.prepareSelection())}function hr(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft<z.doc.scrollLeft&&jt(z,Math.min(z.display.scroller.scrollLeft,x.maxScrollLeft),!0),z.display.maxLineChanged=!1);var re=x.focus&&x.focus==qe();x.preparedSelection&&z.display.input.showSelection(x.preparedSelection,re),(x.updatedDisplay||x.startHeight!=z.doc.height)&&gn(z,x.barMeasure),x.updatedDisplay&&Qa(z,x.barMeasure),x.selectionChanged&&lr(z),z.state.focused&&x.updateInput&&z.display.input.reset(x.typing),re&&vr(x.cm)}function ar(x){var z=x.cm,re=z.display,ne=z.doc;if(x.updatedDisplay&&ji(z,x.update),re.wheelStartX!=null&&(x.scrollTop!=null||x.scrollLeft!=null||x.scrollToPos)&&(re.wheelStartX=re.wheelStartY=null),x.scrollTop!=null&&xt(z,x.scrollTop,x.forceScroll),x.scrollLeft!=null&&jt(z,x.scrollLeft,!0,!0),x.scrollToPos){var ae=ki(z,Ma(ne,x.scrollToPos.from),Ma(ne,x.scrollToPos.to),x.scrollToPos.margin);pi(z,ae)}var pe=x.maybeHiddenMarkers,Ce=x.maybeUnhiddenMarkers;if(pe)for(var Fe=0;Fe<pe.length;++Fe)pe[Fe].lines.length||Ir(pe[Fe],"hide");if(Ce)for(var Ne=0;Ne<Ce.length;++Ne)Ce[Ne].lines.length&&Ir(Ce[Ne],"unhide");re.wrapper.offsetHeight&&(ne.scrollTop=z.display.scroller.scrollTop),x.changeObjs&&Ir(z,"changes",z,x.changeObjs),x.update&&x.update.finish()}function Qn(x,z){if(x.curOp)return z();Un(x);try{return z()}finally{qn(x)}}function gr(x,z){return function(){if(x.curOp)return z.apply(x,arguments);Un(x);try{return z.apply(x,arguments)}finally{qn(x)}}}function ir(x){return function(){if(this.curOp)return x.apply(this,arguments);Un(this);try{return x.apply(this,arguments)}finally{qn(this)}}}function xr(x){return function(){var z=this.cm;if(!z||z.curOp)return x.apply(this,arguments);Un(z);try{return x.apply(this,arguments)}finally{qn(z)}}}function Sr(x,z){x.doc.highlightFrontier<x.display.viewTo&&x.state.highlight.set(z,Gt(yr,x))}function yr(x){var z=x.doc;if(!(z.highlightFrontier>=x.display.viewTo)){var re=+new Date+x.options.workTime,ne=co(x,z.highlightFrontier),ae=[];z.iter(ne.line,Math.min(z.first+z.size,x.display.viewTo+500),function(pe){if(ne.line>=x.display.viewFrom){var Ce=pe.styles,Fe=pe.text.length>x.options.maxHighlightLength?bo(z.mode,ne.state):null,Ne=Ws(x,pe,ne,!0);Fe&&(ne.state=Fe),pe.styles=Ne.styles;var Ue=pe.styleClasses,Bt=Ne.classes;Bt?pe.styleClasses=Bt:Ue&&(pe.styleClasses=null);for(var Vt=!Ce||Ce.length!=pe.styles.length||Ue!=Bt&&(!Ue||!Bt||Ue.bgClass!=Bt.bgClass||Ue.textClass!=Bt.textClass),Sn=0;!Vt&&Sn<Ce.length;++Sn)Vt=Ce[Sn]!=pe.styles[Sn];Vt&&ae.push(ne.line),pe.stateAfter=ne.save(),ne.nextLine()}else pe.text.length<=x.options.maxHighlightLength&&Ho(x,pe.text,ne),pe.stateAfter=ne.line%5==0?ne.save():null,ne.nextLine();if(+new Date>re)return Sr(x,x.options.workDelay),!0}),z.highlightFrontier=ne.line,z.modeFrontier=Math.max(z.modeFrontier,ne.line),ae.length&&Qn(x,function(){for(var pe=0;pe<ae.length;pe++)Yo(x,ae[pe],"text")})}}var rr=function(x,z,re){var ne=x.display;this.viewport=z,this.visible=Rr(ne,x.doc,z),this.editorIsHidden=!ne.wrapper.offsetWidth,this.wrapperHeight=ne.wrapper.clientHeight,this.wrapperWidth=ne.wrapper.clientWidth,this.oldDisplayWidth=wo(x),this.force=re,this.dims=Gl(x),this.events=[]};rr.prototype.signal=function(x,z){ur(x,z)&&this.events.push(arguments)},rr.prototype.finish=function(){for(var x=0;x<this.events.length;x++)Ir.apply(null,this.events[x])};function _r(x){var z=x.display;!z.scrollbarsClipped&&z.scroller.offsetWidth&&(z.nativeBarWidth=z.scroller.offsetWidth-z.scroller.clientWidth,z.heightForcer.style.height=Uo(x)+"px",z.sizer.style.marginBottom=-z.nativeBarWidth+"px",z.sizer.style.borderRightWidth=Uo(x)+"px",z.scrollbarsClipped=!0)}function Qr(x){if(x.hasFocus())return null;var z=qe();if(!z||!pt(x.display.lineDiv,z))return null;var re={activeElt:z};if(window.getSelection){var ne=window.getSelection();ne.anchorNode&&ne.extend&&pt(x.display.lineDiv,ne.anchorNode)&&(re.anchorNode=ne.anchorNode,re.anchorOffset=ne.anchorOffset,re.focusNode=ne.focusNode,re.focusOffset=ne.focusOffset)}return re}function ea(x){if(!(!x||!x.activeElt||x.activeElt==qe())&&(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(),re=document.createRange();re.setEnd(x.anchorNode,x.anchorOffset),re.collapse(!1),z.removeAllRanges(),z.addRange(re),z.extend(x.focusNode,x.focusOffset)}}function Ui(x,z){var re=x.display,ne=x.doc;if(z.editorIsHidden)return ls(x),!1;if(!z.force&&z.visible.from>=re.viewFrom&&z.visible.to<=re.viewTo&&(re.updateLineNumbers==null||re.updateLineNumbers>=re.viewTo)&&re.renderedView==re.view&&Nt(x)==0)return!1;Br(x)&&(ls(x),z.dims=Gl(x));var ae=ne.first+ne.size,pe=Math.max(z.visible.from-x.options.viewportMargin,ne.first),Ce=Math.min(ae,z.visible.to+x.options.viewportMargin);re.viewFrom<pe&&pe-re.viewFrom<20&&(pe=Math.max(ne.first,re.viewFrom)),re.viewTo>Ce&&re.viewTo-Ce<20&&(Ce=Math.min(ae,re.viewTo)),So&&(pe=In(x.doc,pe),Ce=zn(x.doc,Ce));var Fe=pe!=re.viewFrom||Ce!=re.viewTo||re.lastWrapHeight!=z.wrapperHeight||re.lastWrapWidth!=z.wrapperWidth;He(x,pe,Ce),re.viewOffset=sn(mi(x.doc,re.viewFrom)),x.display.mover.style.top=re.viewOffset+"px";var Ne=Nt(x);if(!Fe&&Ne==0&&!z.force&&re.renderedView==re.view&&(re.updateLineNumbers==null||re.updateLineNumbers>=re.viewTo))return!1;var Ue=Qr(x);return Ne>4&&(re.lineDiv.style.display="none"),Bi(x,re.updateLineNumbers,z.dims),Ne>4&&(re.lineDiv.style.display=""),re.renderedView=re.view,ea(Ue),Xt(re.cursorDiv),Xt(re.selectionDiv),re.gutters.style.height=re.sizer.style.minHeight=0,Fe&&(re.lastWrapHeight=z.wrapperHeight,re.lastWrapWidth=z.wrapperWidth,Sr(x,400)),re.updateLineNumbers=null,!0}function ji(x,z){for(var re=z.viewport,ne=!0;;ne=!1){if(!ne||!x.options.lineWrapping||z.oldDisplayWidth==wo(x)){if(re&&re.top!=null&&(re={top:Math.min(x.doc.height+To(x.display)-ll(x),re.top)}),z.visible=Rr(x.display,x.doc,re),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else ne&&(z.visible=Rr(x.display,x.doc,re));if(!Ui(x,z))break;Mr(x);var ae=$t(x);Tt(x),gn(x,ae),Qa(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 pa(x,z){var re=new rr(x,z);if(Ui(x,re)){Mr(x),ji(x,re);var ne=$t(x);Tt(x),gn(x,ne),Qa(x,ne),re.finish()}}function Bi(x,z,re){var ne=x.display,ae=x.options.lineNumbers,pe=ne.lineDiv,Ce=pe.firstChild;function Fe(nr){var Cr=nr.nextSibling;return it&&Qe&&x.display.currentWheelTarget==nr?nr.style.display="none":nr.parentNode.removeChild(nr),Cr}for(var Ne=ne.view,Ue=ne.viewFrom,Bt=0;Bt<Ne.length;Bt++){var Vt=Ne[Bt];if(!Vt.hidden)if(!Vt.node||Vt.node.parentNode!=pe){var Sn=Ga(x,Vt,Ue,re);pe.insertBefore(Sn,Ce)}else{for(;Ce!=Vt.node;)Ce=Fe(Ce);var bn=ae&&z!=null&&z<=Ue&&Vt.lineNumber;Vt.changes&&(Yt(Vt.changes,"gutter")>-1&&(bn=!1),qi(x,Vt,Ue,re)),bn&&(Xt(Vt.lineNumber),Vt.lineNumber.appendChild(document.createTextNode(lo(x.options,Ue)))),Ce=Vt.node.nextSibling}Ue+=Vt.size}for(;Ce;)Ce=Fe(Ce)}function Ia(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function Qa(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+Uo(x)+"px"}function ri(x){var z=x.display,re=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var ne=ou(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ae=z.gutters.offsetWidth,pe=ne+"px",Ce=0;Ce<re.length;Ce++)if(!re[Ce].hidden){x.options.fixedGutter&&(re[Ce].gutter&&(re[Ce].gutter.style.left=pe),re[Ce].gutterBackground&&(re[Ce].gutterBackground.style.left=pe));var Fe=re[Ce].alignable;if(Fe)for(var Ne=0;Ne<Fe.length;Ne++)Fe[Ne].style.left=pe}x.options.fixedGutter&&(z.gutters.style.left=ne+ae+"px")}}function Br(x){if(!x.options.lineNumbers)return!1;var z=x.doc,re=lo(x.options,z.first+z.size-1),ne=x.display;if(re.length!=ne.lineNumChars){var ae=ne.measure.appendChild(Ht("div",[Ht("div",re)],"CodeMirror-linenumber CodeMirror-gutter-elt")),pe=ae.firstChild.offsetWidth,Ce=ae.offsetWidth-pe;return ne.lineGutter.style.width="",ne.lineNumInnerWidth=Math.max(pe,ne.lineGutter.offsetWidth-Ce)+1,ne.lineNumWidth=ne.lineNumInnerWidth+Ce,ne.lineNumChars=ne.lineNumInnerWidth?re.length:-1,ne.lineGutter.style.width=ne.lineNumWidth+"px",Ia(x.display),!0}return!1}function Ei(x,z){for(var re=[],ne=!1,ae=0;ae<x.length;ae++){var pe=x[ae],Ce=null;if(typeof pe!="string"&&(Ce=pe.style,pe=pe.className),pe=="CodeMirror-linenumbers")if(z)ne=!0;else continue;re.push({className:pe,style:Ce})}return z&&!ne&&re.push({className:"CodeMirror-linenumbers",style:null}),re}function Yi(x){var z=x.gutters,re=x.gutterSpecs;Xt(z),x.lineGutter=null;for(var ne=0;ne<re.length;++ne){var ae=re[ne],pe=ae.className,Ce=ae.style,Fe=z.appendChild(Ht("div",null,"CodeMirror-gutter "+pe));Ce&&(Fe.style.cssText=Ce),pe=="CodeMirror-linenumbers"&&(x.lineGutter=Fe,Fe.style.width=(x.lineNumWidth||1)+"px")}z.style.display=re.length?"":"none",Ia(x)}function xi(x){Yi(x.display),Ba(x),ri(x)}function la(x,z,re,ne){var ae=this;this.input=re,ae.scrollbarFiller=Ht("div",null,"CodeMirror-scrollbar-filler"),ae.scrollbarFiller.setAttribute("cm-not-content","true"),ae.gutterFiller=Ht("div",null,"CodeMirror-gutter-filler"),ae.gutterFiller.setAttribute("cm-not-content","true"),ae.lineDiv=wt("div",null,"CodeMirror-code"),ae.selectionDiv=Ht("div",null,null,"position: relative; z-index: 1"),ae.cursorDiv=Ht("div",null,"CodeMirror-cursors"),ae.measure=Ht("div",null,"CodeMirror-measure"),ae.lineMeasure=Ht("div",null,"CodeMirror-measure"),ae.lineSpace=wt("div",[ae.measure,ae.lineMeasure,ae.selectionDiv,ae.cursorDiv,ae.lineDiv],null,"position: relative; outline: none");var pe=wt("div",[ae.lineSpace],"CodeMirror-lines");ae.mover=Ht("div",[pe],null,"position: relative"),ae.sizer=Ht("div",[ae.mover],"CodeMirror-sizer"),ae.sizerWidth=null,ae.heightForcer=Ht("div",null,null,"position: absolute; height: "+Jt+"px; width: 1px;"),ae.gutters=Ht("div",null,"CodeMirror-gutters"),ae.lineGutter=null,ae.scroller=Ht("div",[ae.sizer,ae.heightForcer,ae.gutters],"CodeMirror-scroll"),ae.scroller.setAttribute("tabIndex","-1"),ae.wrapper=Ht("div",[ae.scrollbarFiller,ae.gutterFiller,ae.scroller],"CodeMirror"),Ve&&Re<8&&(ae.gutters.style.zIndex=-1,ae.scroller.style.paddingRight=0),!it&&!(te&&dt)&&(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=Ei(ne.gutters,ne.lineNumbers),Yi(ae),re.init(ae)}var Ai=0,$i=null;Ve?$i=-.53:te?$i=15:we?$i=-.7:tt&&($i=-1/3);function wa(x){var z=x.wheelDeltaX,re=x.wheelDeltaY;return z==null&&x.detail&&x.axis==x.HORIZONTAL_AXIS&&(z=x.detail),re==null&&x.detail&&x.axis==x.VERTICAL_AXIS?re=x.detail:re==null&&(re=x.wheelDelta),{x:z,y:re}}function za(x){var z=wa(x);return z.x*=$i,z.y*=$i,z}function Xa(x,z){var re=wa(z),ne=re.x,ae=re.y,pe=x.display,Ce=pe.scroller,Fe=Ce.scrollWidth>Ce.clientWidth,Ne=Ce.scrollHeight>Ce.clientHeight;if(ne&&Fe||ae&&Ne){if(ae&&Qe&&it){e:for(var Ue=z.target,Bt=pe.view;Ue!=Ce;Ue=Ue.parentNode)for(var Vt=0;Vt<Bt.length;Vt++)if(Bt[Vt].node==Ue){x.display.currentWheelTarget=Ue;break e}}if(ne&&!te&&!at&&$i!=null){ae&&Ne&>(x,Math.max(0,Ce.scrollTop+ae*$i)),jt(x,Math.max(0,Ce.scrollLeft+ne*$i)),(!ae||ae&&Ne)&&oi(z),pe.wheelStartX=null;return}if(ae&&$i!=null){var Sn=ae*$i,bn=x.doc.scrollTop,nr=bn+pe.wrapper.clientHeight;Sn<0?bn=Math.max(0,bn+Sn-50):nr=Math.min(x.doc.height,nr+Sn+50),pa(x,{top:bn,bottom:nr})}Ai<20&&(pe.wheelStartX==null?(pe.wheelStartX=Ce.scrollLeft,pe.wheelStartY=Ce.scrollTop,pe.wheelDX=ne,pe.wheelDY=ae,setTimeout(function(){if(pe.wheelStartX!=null){var Cr=Ce.scrollLeft-pe.wheelStartX,Xr=Ce.scrollTop-pe.wheelStartY,yi=Xr&&pe.wheelDY&&Xr/pe.wheelDY||Cr&&pe.wheelDX&&Cr/pe.wheelDX;pe.wheelStartX=pe.wheelStartY=null,yi&&($i=($i*Ai+yi)/(Ai+1),++Ai)}},200)):(pe.wheelDX+=ne,pe.wheelDY+=ae))}}var Qi=function(x,z){this.ranges=x,this.primIndex=z};Qi.prototype.primary=function(){return this.ranges[this.primIndex]},Qi.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 re=this.ranges[z],ne=x.ranges[z];if(!br(re.anchor,ne.anchor)||!br(re.head,ne.head))return!1}return!0},Qi.prototype.deepCopy=function(){for(var x=[],z=0;z<this.ranges.length;z++)x[z]=new Pi(Cl(this.ranges[z].anchor),Cl(this.ranges[z].head));return new Qi(x,this.primIndex)},Qi.prototype.somethingSelected=function(){for(var x=0;x<this.ranges.length;x++)if(!this.ranges[x].empty())return!0;return!1},Qi.prototype.contains=function(x,z){z||(z=x);for(var re=0;re<this.ranges.length;re++){var ne=this.ranges[re];if(Xi(z,ne.from())>=0&&Xi(x,ne.to())<=0)return re}return-1};var Pi=function(x,z){this.anchor=x,this.head=z};Pi.prototype.from=function(){return ho(this.anchor,this.head)},Pi.prototype.to=function(){return fs(this.anchor,this.head)},Pi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function La(x,z,re){var ne=x&&x.options.selectionsMayTouch,ae=z[re];z.sort(function(Sn,bn){return Xi(Sn.from(),bn.from())}),re=Yt(z,ae);for(var pe=1;pe<z.length;pe++){var Ce=z[pe],Fe=z[pe-1],Ne=Xi(Fe.to(),Ce.from());if(ne&&!Ce.empty()?Ne>0:Ne>=0){var Ue=ho(Fe.from(),Ce.from()),Bt=fs(Fe.to(),Ce.to()),Vt=Fe.empty()?Ce.from()==Ce.head:Fe.from()==Fe.head;pe<=re&&--re,z.splice(--pe,2,new Pi(Vt?Bt:Ue,Vt?Ue:Bt))}}return new Qi(z,re)}function Sa(x,z){return new Qi([new Pi(x,z||x)],0)}function ma(x){return x.text?cr(x.from.line+x.text.length-1,xn(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function ua(x,z){if(Xi(x,z.from)<0)return x;if(Xi(x,z.to)<=0)return ma(z);var re=x.line+z.text.length-(z.to.line-z.from.line)-1,ne=x.ch;return x.line==z.to.line&&(ne+=ma(z).ch-z.to.ch),cr(re,ne)}function ii(x,z){for(var re=[],ne=0;ne<x.sel.ranges.length;ne++){var ae=x.sel.ranges[ne];re.push(new Pi(ua(ae.anchor,z),ua(ae.head,z)))}return La(x.cm,re,x.sel.primIndex)}function bi(x,z,re){return x.line==z.line?cr(re.line,x.ch-z.ch+re.ch):cr(re.line+(x.line-z.line),x.ch)}function va(x,z,re){for(var ne=[],ae=cr(x.first,0),pe=ae,Ce=0;Ce<z.length;Ce++){var Fe=z[Ce],Ne=bi(Fe.from,ae,pe),Ue=bi(ma(Fe),ae,pe);if(ae=Fe.to,pe=Ue,re=="around"){var Bt=x.sel.ranges[Ce],Vt=Xi(Bt.head,Bt.anchor)<0;ne[Ce]=new Pi(Vt?Ue:Ne,Vt?Ne:Ue)}else ne[Ce]=new Pi(Ne,Ne)}return new Qi(ne,x.sel.primIndex)}function oa(x){x.doc.mode=Wa(x.options,x.doc.modeOption),Ra(x)}function Ra(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,Sr(x,100),x.state.modeGen++,x.curOp&&Ba(x)}function ui(x,z){return z.from.ch==0&&z.to.ch==0&&xn(z.text)==""&&(!x.cm||x.cm.options.wholeLineUpdateBefore)}function tr(x,z,re,ne){function ae(Di){return re?re[Di]:null}function pe(Di,ci,Li){Zr(Di,ci,Li,ne),Lr(Di,"change",Di,z)}function Ce(Di,ci){for(var Li=[],ya=Di;ya<ci;++ya)Li.push(new Kn(Ue[ya],ae(ya),ne));return Li}var Fe=z.from,Ne=z.to,Ue=z.text,Bt=mi(x,Fe.line),Vt=mi(x,Ne.line),Sn=xn(Ue),bn=ae(Ue.length-1),nr=Ne.line-Fe.line;if(z.full)x.insert(0,Ce(0,Ue.length)),x.remove(Ue.length,x.size-Ue.length);else if(ui(x,z)){var Cr=Ce(0,Ue.length-1);pe(Vt,Vt.text,bn),nr&&x.remove(Fe.line,nr),Cr.length&&x.insert(Fe.line,Cr)}else if(Bt==Vt)if(Ue.length==1)pe(Bt,Bt.text.slice(0,Fe.ch)+Sn+Bt.text.slice(Ne.ch),bn);else{var Xr=Ce(1,Ue.length-1);Xr.push(new Kn(Sn+Bt.text.slice(Ne.ch),bn,ne)),pe(Bt,Bt.text.slice(0,Fe.ch)+Ue[0],ae(0)),x.insert(Fe.line+1,Xr)}else if(Ue.length==1)pe(Bt,Bt.text.slice(0,Fe.ch)+Ue[0]+Vt.text.slice(Ne.ch),ae(0)),x.remove(Fe.line+1,nr);else{pe(Bt,Bt.text.slice(0,Fe.ch)+Ue[0],ae(0)),pe(Vt,Sn+Vt.text.slice(Ne.ch),bn);var yi=Ce(1,Ue.length-1);nr>1&&x.remove(Fe.line+1,nr-1),x.insert(Fe.line+1,yi)}Lr(x,"change",x,z)}function Nr(x,z,re){function ne(ae,pe,Ce){if(ae.linked)for(var Fe=0;Fe<ae.linked.length;++Fe){var Ne=ae.linked[Fe];if(Ne.doc!=pe){var Ue=Ce&&Ne.sharedHist;re&&!Ue||(z(Ne.doc,Ue),ne(Ne.doc,ae,Ue))}}}ne(x,null,!0)}function Gr(x,z){if(z.cm)throw new Error("This document is already in use.");x.doc=z,z.cm=x,su(x),oa(x),pr(x),x.options.lineWrapping||Tn(x),x.options.mode=z.modeOption,Ba(x)}function pr(x){(x.doc.direction=="rtl"?ut:zt)(x.display.lineDiv,"CodeMirror-rtl")}function Ji(x){Qn(x,function(){pr(x),Ba(x)})}function Fa(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 Mo(x,z){var re={from:Cl(z.from),to:ma(z),text:Fo(x,z.from,z.to)};return Hs(x,re,z.from.line,z.to.line+1),Nr(x,function(ne){return Hs(ne,re,z.from.line,z.to.line+1)},!0),re}function ao(x){for(;x.length;){var z=xn(x);if(z.ranges)x.pop();else break}}function Wo(x,z){if(z)return ao(x.done),xn(x.done);if(x.done.length&&!xn(x.done).ranges)return xn(x.done);if(x.done.length>1&&!x.done[x.done.length-2].ranges)return x.done.pop(),xn(x.done)}function po(x,z,re,ne){var ae=x.history;ae.undone.length=0;var pe=+new Date,Ce,Fe;if((ae.lastOp==ne||ae.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&ae.lastModTime>pe-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(Ce=Wo(ae,ae.lastOp==ne)))Fe=xn(Ce.changes),Xi(z.from,z.to)==0&&Xi(z.from,Fe.to)==0?Fe.to=ma(z):Ce.changes.push(Mo(x,z));else{var Ne=xn(ae.done);for((!Ne||!Ne.ranges)&&xs(x.sel,ae.done),Ce={changes:[Mo(x,z)],generation:ae.generation},ae.done.push(Ce);ae.done.length>ae.undoDepth;)ae.done.shift(),ae.done[0].ranges||ae.done.shift()}ae.done.push(re),ae.generation=++ae.maxGeneration,ae.lastModTime=ae.lastSelTime=pe,ae.lastOp=ae.lastSelOp=ne,ae.lastOrigin=ae.lastSelOrigin=z.origin,Fe||Ir(x,"historyAdded")}function Ps(x,z,re,ne){var ae=z.charAt(0);return ae=="*"||ae=="+"&&re.ranges.length==ne.ranges.length&&re.somethingSelected()==ne.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function bs(x,z,re,ne){var ae=x.history,pe=ne&&ne.origin;re==ae.lastSelOp||pe&&ae.lastSelOrigin==pe&&(ae.lastModTime==ae.lastSelTime&&ae.lastOrigin==pe||Ps(x,pe,xn(ae.done),z))?ae.done[ae.done.length-1]=z:xs(z,ae.done),ae.lastSelTime=+new Date,ae.lastSelOrigin=pe,ae.lastSelOp=re,ne&&ne.clearRedo!==!1&&ao(ae.undone)}function xs(x,z){var re=xn(z);re&&re.ranges&&re.equals(x)||z.push(x)}function Hs(x,z,re,ne){var ae=z["spans_"+x.id],pe=0;x.iter(Math.max(x.first,re),Math.min(x.first+x.size,ne),function(Ce){Ce.markedSpans&&((ae||(ae=z["spans_"+x.id]={}))[pe]=Ce.markedSpans),++pe})}function fl(x){if(!x)return null;for(var z,re=0;re<x.length;++re)x[re].marker.explicitlyCleared?z||(z=x.slice(0,re)):z&&z.push(x[re]);return z?z.length?z:null:x}function el(x,z){var re=z["spans_"+x.id];if(!re)return null;for(var ne=[],ae=0;ae<z.text.length;++ae)ne.push(fl(re[ae]));return ne}function Hl(x,z){var re=el(x,z),ne=Ua(x,z);if(!re)return ne;if(!ne)return re;for(var ae=0;ae<re.length;++ae){var pe=re[ae],Ce=ne[ae];if(pe&&Ce)e:for(var Fe=0;Fe<Ce.length;++Fe){for(var Ne=Ce[Fe],Ue=0;Ue<pe.length;++Ue)if(pe[Ue].marker==Ne.marker)continue e;pe.push(Ne)}else Ce&&(re[ae]=Ce)}return re}function sa(x,z,re){for(var ne=[],ae=0;ae<x.length;++ae){var pe=x[ae];if(pe.ranges){ne.push(re?Qi.prototype.deepCopy.call(pe):pe);continue}var Ce=pe.changes,Fe=[];ne.push({changes:Fe});for(var Ne=0;Ne<Ce.length;++Ne){var Ue=Ce[Ne],Bt=void 0;if(Fe.push({from:Ue.from,to:Ue.to,text:Ue.text}),z)for(var Vt in Ue)(Bt=Vt.match(/^spans_(\d+)$/))&&Yt(z,Number(Bt[1]))>-1&&(xn(Fe)[Vt]=Ue[Vt],delete Ue[Vt])}}return ne}function Ur(x,z,re,ne){if(ne){var ae=x.anchor;if(re){var pe=Xi(z,ae)<0;pe!=Xi(re,ae)<0?(ae=z,z=re):pe!=Xi(z,re)<0&&(z=re)}return new Pi(ae,z)}else return new Pi(re||z,z)}function Ri(x,z,re,ne,ae){ae==null&&(ae=x.cm&&(x.cm.display.shift||x.extend)),Oo(x,new Qi([Ur(x.sel.primary(),z,re,ae)],0),ne)}function Jn(x,z,re){for(var ne=[],ae=x.cm&&(x.cm.display.shift||x.extend),pe=0;pe<x.sel.ranges.length;pe++)ne[pe]=Ur(x.sel.ranges[pe],z[pe],null,ae);var Ce=La(x.cm,ne,x.sel.primIndex);Oo(x,Ce,re)}function Ki(x,z,re,ne){var ae=x.sel.ranges.slice(0);ae[z]=re,Oo(x,La(x.cm,ae,x.sel.primIndex),ne)}function Do(x,z,re,ne){Oo(x,Sa(z,re),ne)}function No(x,z,re){var ne={ranges:z.ranges,update:function(ae){this.ranges=[];for(var pe=0;pe<ae.length;pe++)this.ranges[pe]=new Pi(Ma(x,ae[pe].anchor),Ma(x,ae[pe].head))},origin:re&&re.origin};return Ir(x,"beforeSelectionChange",x,ne),x.cm&&Ir(x.cm,"beforeSelectionChange",x.cm,ne),ne.ranges!=z.ranges?La(x.cm,ne.ranges,ne.ranges.length-1):z}function $o(x,z,re){var ne=x.history.done,ae=xn(ne);ae&&ae.ranges?(ne[ne.length-1]=z,kl(x,z,re)):Oo(x,z,re)}function Oo(x,z,re){kl(x,z,re),bs(x,x.sel,x.cm?x.cm.curOp.id:NaN,re)}function kl(x,z,re){(ur(x,"beforeSelectionChange")||x.cm&&ur(x.cm,"beforeSelectionChange"))&&(z=No(x,z,re));var ne=re&&re.bias||(Xi(z.primary().head,x.sel.primary().head)<0?-1:1);ws(x,to(x,z,ne,!0)),!(re&&re.scroll===!1)&&x.cm&&De(x.cm)}function ws(x,z){z.equals(x.sel)||(x.sel=z,x.cm&&(x.cm.curOp.updateInput=1,x.cm.curOp.selectionChanged=!0,Ca(x.cm)),Lr(x,"cursorActivity",x))}function Yl(x){ws(x,to(x,x.sel,null,!1))}function to(x,z,re,ne){for(var ae,pe=0;pe<z.ranges.length;pe++){var Ce=z.ranges[pe],Fe=z.ranges.length==x.sel.ranges.length&&x.sel.ranges[pe],Ne=mo(x,Ce.anchor,Fe&&Fe.anchor,re,ne),Ue=mo(x,Ce.head,Fe&&Fe.head,re,ne);(ae||Ne!=Ce.anchor||Ue!=Ce.head)&&(ae||(ae=z.ranges.slice(0,pe)),ae[pe]=new Pi(Ne,Ue))}return ae?La(x.cm,ae,z.primIndex):z}function ca(x,z,re,ne,ae){var pe=mi(x,z.line);if(pe.markedSpans)for(var Ce=0;Ce<pe.markedSpans.length;++Ce){var Fe=pe.markedSpans[Ce],Ne=Fe.marker,Ue="selectLeft"in Ne?!Ne.selectLeft:Ne.inclusiveLeft,Bt="selectRight"in Ne?!Ne.selectRight:Ne.inclusiveRight;if((Fe.from==null||(Ue?Fe.from<=z.ch:Fe.from<z.ch))&&(Fe.to==null||(Bt?Fe.to>=z.ch:Fe.to>z.ch))){if(ae&&(Ir(Ne,"beforeCursorEnter"),Ne.explicitlyCleared))if(pe.markedSpans){--Ce;continue}else break;if(!Ne.atomic)continue;if(re){var Vt=Ne.find(ne<0?1:-1),Sn=void 0;if((ne<0?Bt:Ue)&&(Vt=no(x,Vt,-ne,Vt&&Vt.line==z.line?pe:null)),Vt&&Vt.line==z.line&&(Sn=Xi(Vt,re))&&(ne<0?Sn<0:Sn>0))return ca(x,Vt,z,ne,ae)}var bn=Ne.find(ne<0?-1:1);return(ne<0?Ue:Bt)&&(bn=no(x,bn,ne,bn.line==z.line?pe:null)),bn?ca(x,bn,z,ne,ae):null}}return z}function mo(x,z,re,ne,ae){var pe=ne||1,Ce=ca(x,z,re,pe,ae)||!ae&&ca(x,z,re,pe,!0)||ca(x,z,re,-pe,ae)||!ae&&ca(x,z,re,-pe,!0);return Ce||(x.cantEdit=!0,cr(x.first,0))}function no(x,z,re,ne){return re<0&&z.ch==0?z.line>x.first?Ma(x,cr(z.line-1)):null:re>0&&z.ch==(ne||mi(x,z.line)).text.length?z.line<x.first+x.size-1?cr(z.line+1,0):null:new cr(z.line,z.ch+re)}function as(x){x.setSelection(cr(x.firstLine(),0),cr(x.lastLine()),Lt)}function us(x,z,re){var ne={canceled:!1,from:z.from,to:z.to,text:z.text,origin:z.origin,cancel:function(){return ne.canceled=!0}};return re&&(ne.update=function(ae,pe,Ce,Fe){ae&&(ne.from=Ma(x,ae)),pe&&(ne.to=Ma(x,pe)),Ce&&(ne.text=Ce),Fe!==void 0&&(ne.origin=Fe)}),Ir(x,"beforeChange",x,ne),x.cm&&Ir(x.cm,"beforeChange",x.cm,ne),ne.canceled?(x.cm&&(x.cm.curOp.updateInput=2),null):{from:ne.from,to:ne.to,text:ne.text,origin:ne.origin}}function Mi(x,z,re){if(x.cm){if(!x.cm.curOp)return gr(x.cm,Mi)(x,z,re);if(x.cm.state.suppressEdits)return}if(!((ur(x,"beforeChange")||x.cm&&ur(x.cm,"beforeChange"))&&(z=us(x,z,!0),!z))){var ne=Ds&&!re&&ms(x,z.from,z.to);if(ne)for(var ae=ne.length-1;ae>=0;--ae)na(x,{from:ne[ae].from,to:ne[ae].to,text:ae?[""]:z.text,origin:z.origin});else na(x,z)}}function na(x,z){if(!(z.text.length==1&&z.text[0]==""&&Xi(z.from,z.to)==0)){var re=ii(x,z);po(x,z,re,x.cm?x.cm.curOp.id:NaN),zo(x,z,re,Ua(x,z));var ne=[];Nr(x,function(ae,pe){!pe&&Yt(ne,ae.history)==-1&&(Ts(ae.history,z),ne.push(ae.history)),zo(ae,z,null,Ua(ae,z))})}}function oo(x,z,re){var ne=x.cm&&x.cm.state.suppressEdits;if(!(ne&&!re)){for(var ae=x.history,pe,Ce=x.sel,Fe=z=="undo"?ae.done:ae.undone,Ne=z=="undo"?ae.undone:ae.done,Ue=0;Ue<Fe.length&&(pe=Fe[Ue],!(re?pe.ranges&&!pe.equals(x.sel):!pe.ranges));Ue++);if(Ue!=Fe.length){for(ae.lastOrigin=ae.lastSelOrigin=null;;)if(pe=Fe.pop(),pe.ranges){if(xs(pe,Ne),re&&!pe.equals(x.sel)){Oo(x,pe,{clearRedo:!1});return}Ce=pe}else if(ne){Fe.push(pe);return}else break;var Bt=[];xs(Ce,Ne),Ne.push({changes:Bt,generation:ae.generation}),ae.generation=pe.generation||++ae.maxGeneration;for(var Vt=ur(x,"beforeChange")||x.cm&&ur(x.cm,"beforeChange"),Sn=function(Cr){var Xr=pe.changes[Cr];if(Xr.origin=z,Vt&&!us(x,Xr,!1))return Fe.length=0,{};Bt.push(Mo(x,Xr));var yi=Cr?ii(x,Xr):xn(Fe);zo(x,Xr,yi,Hl(x,Xr)),!Cr&&x.cm&&x.cm.scrollIntoView({from:Xr.from,to:ma(Xr)});var Di=[];Nr(x,function(ci,Li){!Li&&Yt(Di,ci.history)==-1&&(Ts(ci.history,Xr),Di.push(ci.history)),zo(ci,Xr,null,Hl(ci,Xr))})},bn=pe.changes.length-1;bn>=0;--bn){var nr=Sn(bn);if(nr)return nr.v}}}}function os(x,z){if(z!=0&&(x.first+=z,x.sel=new Qi(Vn(x.sel.ranges,function(ae){return new Pi(cr(ae.anchor.line+z,ae.anchor.ch),cr(ae.head.line+z,ae.head.ch))}),x.sel.primIndex),x.cm)){Ba(x.cm,x.first,x.first-z,z);for(var re=x.cm.display,ne=re.viewFrom;ne<re.viewTo;ne++)Yo(x.cm,ne,"gutter")}}function zo(x,z,re,ne){if(x.cm&&!x.cm.curOp)return gr(x.cm,zo)(x,z,re,ne);if(z.to.line<x.first){os(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);os(x,ae),z={from:cr(x.first,0),to:cr(z.to.line+ae,z.to.ch),text:[xn(z.text)],origin:z.origin}}var pe=x.lastLine();z.to.line>pe&&(z={from:z.from,to:cr(pe,mi(x,pe).text.length),text:[z.text[0]],origin:z.origin}),z.removed=Fo(x,z.from,z.to),re||(re=ii(x,z)),x.cm?Is(x.cm,z,ne):tr(x,z,ne),kl(x,re,Lt),x.cantEdit&&mo(x,cr(x.firstLine(),0))&&(x.cantEdit=!1)}}function Is(x,z,re){var ne=x.doc,ae=x.display,pe=z.from,Ce=z.to,Fe=!1,Ne=pe.line;x.options.lineWrapping||(Ne=Na(Ft(mi(ne,pe.line))),ne.iter(Ne,Ce.line+1,function(bn){if(bn==ae.maxLine)return Fe=!0,!0})),ne.sel.contains(z.from,z.to)>-1&&Ca(x),tr(ne,z,re,Eu(x)),x.options.lineWrapping||(ne.iter(Ne,pe.line+z.text.length,function(bn){var nr=Bn(bn);nr>ae.maxLineLength&&(ae.maxLine=bn,ae.maxLineLength=nr,ae.maxLineChanged=!0,Fe=!1)}),Fe&&(x.curOp.updateMaxLine=!0)),il(ne,pe.line),Sr(x,400);var Ue=z.text.length-(Ce.line-pe.line)-1;z.full?Ba(x):pe.line==Ce.line&&z.text.length==1&&!ui(x.doc,z)?Yo(x,pe.line,"text"):Ba(x,pe.line,Ce.line+1,Ue);var Bt=ur(x,"changes"),Vt=ur(x,"change");if(Vt||Bt){var Sn={from:pe,to:Ce,text:z.text,removed:z.removed,origin:z.origin};Vt&&Lr(x,"change",x,Sn),Bt&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(Sn)}x.display.selForContextMenu=null}function Qo(x,z,re,ne,ae){var pe;ne||(ne=re),Xi(ne,re)<0&&(pe=[ne,re],re=pe[0],ne=pe[1]),typeof z=="string"&&(z=x.splitLines(z)),Mi(x,{from:re,to:ne,text:z,origin:ae})}function zl(x,z,re,ne){re<x.line?x.line+=ne:z<x.line&&(x.line=z,x.ch=0)}function Ml(x,z,re,ne){for(var ae=0;ae<x.length;++ae){var pe=x[ae],Ce=!0;if(pe.ranges){pe.copied||(pe=x[ae]=pe.deepCopy(),pe.copied=!0);for(var Fe=0;Fe<pe.ranges.length;Fe++)zl(pe.ranges[Fe].anchor,z,re,ne),zl(pe.ranges[Fe].head,z,re,ne);continue}for(var Ne=0;Ne<pe.changes.length;++Ne){var Ue=pe.changes[Ne];if(re<Ue.from.line)Ue.from=cr(Ue.from.line+ne,Ue.from.ch),Ue.to=cr(Ue.to.line+ne,Ue.to.ch);else if(z<=Ue.to.line){Ce=!1;break}}Ce||(x.splice(0,ae+1),ae=0)}}function Ts(x,z){var re=z.from.line,ne=z.to.line,ae=z.text.length-(ne-re)-1;Ml(x.done,re,ne,ae),Ml(x.undone,re,ne,ae)}function Ns(x,z,re,ne){var ae=z,pe=z;return typeof z=="number"?pe=mi(x,Ll(x,z)):ae=Na(z),ae==null?null:(ne(pe,ae)&&x.cm&&Yo(x.cm,ae,re),pe)}function lu(x){this.lines=x,this.parent=null;for(var z=0,re=0;re<x.length;++re)x[re].parent=this,z+=x[re].height;this.height=z}lu.prototype={chunkSize:function(){return this.lines.length},removeInner:function(x,z){for(var re=x,ne=x+z;re<ne;++re){var ae=this.lines[re];this.height-=ae.height,li(ae),Lr(ae,"delete")}this.lines.splice(x,z)},collapse:function(x){x.push.apply(x,this.lines)},insertInner:function(x,z,re){this.height+=re,this.lines=this.lines.slice(0,x).concat(z).concat(this.lines.slice(x));for(var ne=0;ne<z.length;++ne)z[ne].parent=this},iterN:function(x,z,re){for(var ne=x+z;x<ne;++x)if(re(this.lines[x]))return!0}};function cc(x){this.children=x;for(var z=0,re=0,ne=0;ne<x.length;++ne){var ae=x[ne];z+=ae.chunkSize(),re+=ae.height,ae.parent=this}this.size=z,this.height=re,this.parent=null}cc.prototype={chunkSize:function(){return this.size},removeInner:function(x,z){this.size-=z;for(var re=0;re<this.children.length;++re){var ne=this.children[re],ae=ne.chunkSize();if(x<ae){var pe=Math.min(z,ae-x),Ce=ne.height;if(ne.removeInner(x,pe),this.height-=Ce-ne.height,ae==pe&&(this.children.splice(re--,1),ne.parent=null),(z-=pe)==0)break;x=0}else x-=ae}if(this.size-z<25&&(this.children.length>1||!(this.children[0]instanceof lu))){var Fe=[];this.collapse(Fe),this.children=[new lu(Fe)],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,re){this.size+=z.length,this.height+=re;for(var ne=0;ne<this.children.length;++ne){var ae=this.children[ne],pe=ae.chunkSize();if(x<=pe){if(ae.insertInner(x,z,re),ae.lines&&ae.lines.length>50){for(var Ce=ae.lines.length%25+25,Fe=Ce;Fe<ae.lines.length;){var Ne=new lu(ae.lines.slice(Fe,Fe+=25));ae.height-=Ne.height,this.children.splice(++ne,0,Ne),Ne.parent=this}ae.lines=ae.lines.slice(0,Ce),this.maybeSpill()}break}x-=pe}},maybeSpill:function(){if(!(this.children.length<=10)){var x=this;do{var z=x.children.splice(x.children.length-5,5),re=new cc(z);if(x.parent){x.size-=re.size,x.height-=re.height;var ae=Yt(x.parent.children,x);x.parent.children.splice(ae+1,0,re)}else{var ne=new cc(x.children);ne.parent=x,x.children=[ne,re],x=ne}re.parent=x.parent}while(x.children.length>10);x.parent.maybeSpill()}},iterN:function(x,z,re){for(var ne=0;ne<this.children.length;++ne){var ae=this.children[ne],pe=ae.chunkSize();if(x<pe){var Ce=Math.min(z,pe-x);if(ae.iterN(x,Ce,re))return!0;if((z-=Ce)==0)break;x=0}else x-=pe}}};var Wu=function(x,z,re){if(re)for(var ne in re)re.hasOwnProperty(ne)&&(this[ne]=re[ne]);this.doc=x,this.node=z};Wu.prototype.clear=function(){var x=this.doc.cm,z=this.line.widgets,re=this.line,ne=Na(re);if(!(ne==null||!z)){for(var ae=0;ae<z.length;++ae)z[ae]==this&&z.splice(ae--,1);z.length||(re.widgets=null);var pe=bl(this);Ja(re,Math.max(0,re.height-pe)),x&&(Qn(x,function(){ud(x,re,-pe),Yo(x,ne,"widget")}),Lr(x,"lineWidgetCleared",x,this,ne))}},Wu.prototype.changed=function(){var x=this,z=this.height,re=this.doc.cm,ne=this.line;this.height=null;var ae=bl(this)-z;ae&&(Rn(this.doc,ne)||Ja(ne,ne.height+ae),re&&Qn(re,function(){re.curOp.forceUpdate=!0,ud(re,ne,ae),Lr(re,"lineWidgetChanged",re,x,Na(ne))}))},Yn(Wu);function ud(x,z,re){sn(z)<(x.curOp&&x.curOp.scrollTop||x.doc.scrollTop)&&Ct(x,re)}function cd(x,z,re,ne){var ae=new Wu(x,re,ne),pe=x.cm;return pe&&ae.noHScroll&&(pe.display.alignWidgets=!0),Ns(x,z,"widget",function(Ce){var Fe=Ce.widgets||(Ce.widgets=[]);if(ae.insertAt==null?Fe.push(ae):Fe.splice(Math.min(Fe.length-1,Math.max(0,ae.insertAt)),0,ae),ae.line=Ce,pe&&!Rn(x,Ce)){var Ne=sn(Ce)<x.scrollTop;Ja(Ce,Ce.height+bl(ae)),Ne&&Ct(pe,ae.height),pe.curOp.forceUpdate=!0}return!0}),pe&&Lr(pe,"lineWidgetAdded",pe,ae,typeof z=="number"?z:Na(z)),ae}var dc=0,Su=function(x,z){this.lines=[],this.type=z,this.doc=x,this.id=++dc};Su.prototype.clear=function(){if(!this.explicitlyCleared){var x=this.doc.cm,z=x&&!x.curOp;if(z&&Un(x),ur(this,"clear")){var re=this.find();re&&Lr(this,"clear",re.from,re.to)}for(var ne=null,ae=null,pe=0;pe<this.lines.length;++pe){var Ce=this.lines[pe],Fe=ol(Ce.markedSpans,this);x&&!this.collapsed?Yo(x,Na(Ce),"text"):x&&(Fe.to!=null&&(ae=Na(Ce)),Fe.from!=null&&(ne=Na(Ce))),Ce.markedSpans=Bs(Ce.markedSpans,Fe),Fe.from==null&&this.collapsed&&!Rn(this.doc,Ce)&&x&&Ja(Ce,_l(x.display))}if(x&&this.collapsed&&!x.options.lineWrapping)for(var Ne=0;Ne<this.lines.length;++Ne){var Ue=Ft(this.lines[Ne]),Bt=Bn(Ue);Bt>x.display.maxLineLength&&(x.display.maxLine=Ue,x.display.maxLineLength=Bt,x.display.maxLineChanged=!0)}ne!=null&&x&&this.collapsed&&Ba(x,ne,ae+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&Yl(x.doc)),x&&Lr(x,"markerCleared",x,this,ne,ae),z&&qn(x),this.parent&&this.parent.clear()}},Su.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var re,ne,ae=0;ae<this.lines.length;++ae){var pe=this.lines[ae],Ce=ol(pe.markedSpans,this);if(Ce.from!=null&&(re=cr(z?pe:Na(pe),Ce.from),x==-1))return re;if(Ce.to!=null&&(ne=cr(z?pe:Na(pe),Ce.to),x==1))return ne}return re&&{from:re,to:ne}},Su.prototype.changed=function(){var x=this,z=this.find(-1,!0),re=this,ne=this.doc.cm;!z||!ne||Qn(ne,function(){var ae=z.line,pe=Na(z.line),Ce=Gs(ne,pe);if(Ce&&(dl(Ce),ne.curOp.selectionChanged=ne.curOp.forceUpdate=!0),ne.curOp.updateMaxLine=!0,!Rn(re.doc,ae)&&re.height!=null){var Fe=re.height;re.height=null;var Ne=bl(re)-Fe;Ne&&Ja(ae,ae.height+Ne)}Lr(ne,"markerChanged",ne,x)})},Su.prototype.attachLine=function(x){if(!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(!z.maybeHiddenMarkers||Yt(z.maybeHiddenMarkers,this)==-1)&&(z.maybeUnhiddenMarkers||(z.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(x)},Su.prototype.detachLine=function(x){if(this.lines.splice(Yt(this.lines,x),1),!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(z.maybeHiddenMarkers||(z.maybeHiddenMarkers=[])).push(this)}},Yn(Su);function qa(x,z,re,ne,ae){if(ne&&ne.shared)return so(x,z,re,ne,ae);if(x.cm&&!x.cm.curOp)return gr(x.cm,qa)(x,z,re,ne,ae);var pe=new Su(x,ae),Ce=Xi(z,re);if(ne&&un(ne,pe,!1),Ce>0||Ce==0&&pe.clearWhenEmpty!==!1)return pe;if(pe.replacedWith&&(pe.collapsed=!0,pe.widgetNode=wt("span",[pe.replacedWith],"CodeMirror-widget"),ne.handleMouseEvents||pe.widgetNode.setAttribute("cm-ignore-events","true"),ne.insertLeft&&(pe.widgetNode.insertLeft=!0)),pe.collapsed){if(St(x,z.line,z,re,pe)||z.line!=re.line&&St(x,re.line,z,re,pe))throw new Error("Inserting collapsed marker partially overlapping an existing one");Sl()}pe.addToHistory&&po(x,{from:z,to:re,origin:"markText"},x.sel,NaN);var Fe=z.line,Ne=x.cm,Ue;if(x.iter(Fe,re.line+1,function(Vt){Ne&&pe.collapsed&&!Ne.options.lineWrapping&&Ft(Vt)==Ne.display.maxLine&&(Ue=!0),pe.collapsed&&Fe!=z.line&&Ja(Vt,0),Us(Vt,new Vs(pe,Fe==z.line?z.ch:null,Fe==re.line?re.ch:null)),++Fe}),pe.collapsed&&x.iter(z.line,re.line+1,function(Vt){Rn(x,Vt)&&Ja(Vt,0)}),pe.clearOnEnter&&jn(pe,"beforeCursorEnter",function(){return pe.clear()}),pe.readOnly&&(al(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),pe.collapsed&&(pe.id=++dc,pe.atomic=!0),Ne){if(Ue&&(Ne.curOp.updateMaxLine=!0),pe.collapsed)Ba(Ne,z.line,re.line+1);else if(pe.className||pe.startStyle||pe.endStyle||pe.css||pe.attributes||pe.title)for(var Bt=z.line;Bt<=re.line;Bt++)Yo(Ne,Bt,"text");pe.atomic&&Yl(Ne.doc),Lr(Ne,"markerAdded",Ne,pe)}return pe}var gi=function(x,z){this.markers=x,this.primary=z;for(var re=0;re<x.length;++re)x[re].parent=this};gi.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var x=0;x<this.markers.length;++x)this.markers[x].clear();Lr(this,"clear")}},gi.prototype.find=function(x,z){return this.primary.find(x,z)},Yn(gi);function so(x,z,re,ne,ae){ne=un(ne),ne.shared=!1;var pe=[qa(x,z,re,ne,ae)],Ce=pe[0],Fe=ne.widgetNode;return Nr(x,function(Ne){Fe&&(ne.widgetNode=Fe.cloneNode(!0)),pe.push(qa(Ne,Ma(Ne,z),Ma(Ne,re),ne,ae));for(var Ue=0;Ue<Ne.linked.length;++Ue)if(Ne.linked[Ue].isParent)return;Ce=xn(pe)}),new gi(pe,Ce)}function tl(x){return x.findMarks(cr(x.first,0),x.clipPos(cr(x.lastLine())),function(z){return z.parent})}function hl(x,z){for(var re=0;re<z.length;re++){var ne=z[re],ae=ne.find(),pe=x.clipPos(ae.from),Ce=x.clipPos(ae.to);if(Xi(pe,Ce)){var Fe=qa(x,pe,Ce,ne.primary,ne.primary.type);ne.markers.push(Fe),Fe.parent=ne}}}function Ss(x){for(var z=function(ne){var ae=x[ne],pe=[ae.primary.doc];Nr(ae.primary.doc,function(Ne){return pe.push(Ne)});for(var Ce=0;Ce<ae.markers.length;Ce++){var Fe=ae.markers[Ce];Yt(pe,Fe.doc)==-1&&(Fe.parent=null,ae.markers.splice(Ce--,1))}},re=0;re<x.length;re++)z(re)}var vu=0,es=function(x,z,re,ne,ae){if(!(this instanceof es))return new es(x,z,re,ne,ae);re==null&&(re=0),cc.call(this,[new lu([new Kn("",null)])]),this.first=re,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=re;var pe=cr(re,0);this.sel=Sa(pe),this.history=new Fa(null),this.id=++vu,this.modeOption=z,this.lineSep=ne,this.direction=ae=="rtl"?"rtl":"ltr",this.extend=!1,typeof x=="string"&&(x=this.splitLines(x)),tr(this,{from:pe,to:pe,text:x}),Oo(this,Sa(pe),Lt)};es.prototype=ce(cc.prototype,{constructor:es,iter:function(x,z,re){re?this.iterN(x-this.first,z-x,re):this.iterN(this.first,this.first+this.size,x)},insert:function(x,z){for(var re=0,ne=0;ne<z.length;++ne)re+=z[ne].height;this.insertInner(x-this.first,z,re)},remove:function(x,z){this.removeInner(x-this.first,z)},getValue:function(x){var z=Xo(this,this.first,this.first+this.size);return x===!1?z:z.join(x||this.lineSeparator())},setValue:xr(function(x){var z=cr(this.first,0),re=this.first+this.size-1;Mi(this,{from:z,to:cr(re,mi(this,re).text.length),text:this.splitLines(x),origin:"setValue",full:!0},!0),this.cm&&vt(this.cm,0,0),Oo(this,Sa(z),Lt)}),replaceRange:function(x,z,re,ne){z=Ma(this,z),re=re?Ma(this,re):z,Qo(this,x,z,re,ne)},getRange:function(x,z,re){var ne=Fo(this,Ma(this,x),Ma(this,z));return re===!1?ne:ne.join(re||this.lineSeparator())},getLine:function(x){var z=this.getLineHandle(x);return z&&z.text},getLineHandle:function(x){if(io(this,x))return mi(this,x)},getLineNumber:function(x){return Na(x)},getLineHandleVisualStart:function(x){return typeof x=="number"&&(x=mi(this,x)),Ft(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(),re;return x==null||x=="head"?re=z.head:x=="anchor"?re=z.anchor:x=="end"||x=="to"||x===!1?re=z.to():re=z.from(),re},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:xr(function(x,z,re){Do(this,Ma(this,typeof x=="number"?cr(x,z||0):x),null,re)}),setSelection:xr(function(x,z,re){Do(this,Ma(this,x),Ma(this,z||x),re)}),extendSelection:xr(function(x,z,re){Ri(this,Ma(this,x),z&&Ma(this,z),re)}),extendSelections:xr(function(x,z){Jn(this,Xn(this,x),z)}),extendSelectionsBy:xr(function(x,z){var re=Vn(this.sel.ranges,x);Jn(this,Xn(this,re),z)}),setSelections:xr(function(x,z,re){if(x.length){for(var ne=[],ae=0;ae<x.length;ae++)ne[ae]=new Pi(Ma(this,x[ae].anchor),Ma(this,x[ae].head));z==null&&(z=Math.min(x.length-1,this.sel.primIndex)),Oo(this,La(this.cm,ne,z),re)}}),addSelection:xr(function(x,z,re){var ne=this.sel.ranges.slice(0);ne.push(new Pi(Ma(this,x),Ma(this,z||x))),Oo(this,La(this.cm,ne,ne.length-1),re)}),getSelection:function(x){for(var z=this.sel.ranges,re,ne=0;ne<z.length;ne++){var ae=Fo(this,z[ne].from(),z[ne].to());re=re?re.concat(ae):ae}return x===!1?re:re.join(x||this.lineSeparator())},getSelections:function(x){for(var z=[],re=this.sel.ranges,ne=0;ne<re.length;ne++){var ae=Fo(this,re[ne].from(),re[ne].to());x!==!1&&(ae=ae.join(x||this.lineSeparator())),z[ne]=ae}return z},replaceSelection:function(x,z,re){for(var ne=[],ae=0;ae<this.sel.ranges.length;ae++)ne[ae]=x;this.replaceSelections(ne,z,re||"+input")},replaceSelections:xr(function(x,z,re){for(var ne=[],ae=this.sel,pe=0;pe<ae.ranges.length;pe++){var Ce=ae.ranges[pe];ne[pe]={from:Ce.from(),to:Ce.to(),text:this.splitLines(x[pe]),origin:re}}for(var Fe=z&&z!="end"&&va(this,ne,z),Ne=ne.length-1;Ne>=0;Ne--)Mi(this,ne[Ne]);Fe?$o(this,Fe):this.cm&&De(this.cm)}),undo:xr(function(){oo(this,"undo")}),redo:xr(function(){oo(this,"redo")}),undoSelection:xr(function(){oo(this,"undo",!0)}),redoSelection:xr(function(){oo(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,z=0,re=0,ne=0;ne<x.done.length;ne++)x.done[ne].ranges||++z;for(var ae=0;ae<x.undone.length;ae++)x.undone[ae].ranges||++re;return{undo:z,redo:re}},clearHistory:function(){var x=this;this.history=new Fa(this.history.maxGeneration),Nr(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:sa(this.history.done),undone:sa(this.history.undone)}},setHistory:function(x){var z=this.history=new Fa(this.history.maxGeneration);z.done=sa(x.done.slice(0),null,!0),z.undone=sa(x.undone.slice(0),null,!0)},setGutterMarker:xr(function(x,z,re){return Ns(this,x,"gutter",function(ne){var ae=ne.gutterMarkers||(ne.gutterMarkers={});return ae[z]=re,!re&&ue(ae)&&(ne.gutterMarkers=null),!0})}),clearGutter:xr(function(x){var z=this;this.iter(function(re){re.gutterMarkers&&re.gutterMarkers[x]&&Ns(z,re,"gutter",function(){return re.gutterMarkers[x]=null,ue(re.gutterMarkers)&&(re.gutterMarkers=null),!0})})}),lineInfo:function(x){var z;if(typeof x=="number"){if(!io(this,x)||(z=x,x=mi(this,x),!x))return null}else if(z=Na(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:xr(function(x,z,re){return Ns(this,x,z=="gutter"?"gutter":"class",function(ne){var ae=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass";if(!ne[ae])ne[ae]=re;else{if(yt(re).test(ne[ae]))return!1;ne[ae]+=" "+re}return!0})}),removeLineClass:xr(function(x,z,re){return Ns(this,x,z=="gutter"?"gutter":"class",function(ne){var ae=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass",pe=ne[ae];if(pe)if(re==null)ne[ae]=null;else{var Ce=pe.match(yt(re));if(!Ce)return!1;var Fe=Ce.index+Ce[0].length;ne[ae]=pe.slice(0,Ce.index)+(!Ce.index||Fe==pe.length?"":" ")+pe.slice(Fe)||null}else return!1;return!0})}),addLineWidget:xr(function(x,z,re){return cd(this,x,z,re)}),removeLineWidget:function(x){x.clear()},markText:function(x,z,re){return qa(this,Ma(this,x),Ma(this,z),re,re&&re.type||"range")},setBookmark:function(x,z){var re={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),qa(this,x,x,re,"bookmark")},findMarksAt:function(x){x=Ma(this,x);var z=[],re=mi(this,x.line).markedSpans;if(re)for(var ne=0;ne<re.length;++ne){var ae=re[ne];(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,re){x=Ma(this,x),z=Ma(this,z);var ne=[],ae=x.line;return this.iter(x.line,z.line+1,function(pe){var Ce=pe.markedSpans;if(Ce)for(var Fe=0;Fe<Ce.length;Fe++){var Ne=Ce[Fe];!(Ne.to!=null&&ae==x.line&&x.ch>=Ne.to||Ne.from==null&&ae!=x.line||Ne.from!=null&&ae==z.line&&Ne.from>=z.ch)&&(!re||re(Ne.marker))&&ne.push(Ne.marker.parent||Ne.marker)}++ae}),ne},getAllMarks:function(){var x=[];return this.iter(function(z){var re=z.markedSpans;if(re)for(var ne=0;ne<re.length;++ne)re[ne].from!=null&&x.push(re[ne].marker)}),x},posFromIndex:function(x){var z,re=this.first,ne=this.lineSeparator().length;return this.iter(function(ae){var pe=ae.text.length+ne;if(pe>x)return z=x,!0;x-=pe,++re}),Ma(this,cr(re,z))},indexFromPos:function(x){x=Ma(this,x);var z=x.ch;if(x.line<this.first||x.ch<0)return 0;var re=this.lineSeparator().length;return this.iter(this.first,x.line,function(ne){z+=ne.text.length+re}),z},copy:function(x){var z=new es(Xo(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,re=this.first+this.size;x.from!=null&&x.from>z&&(z=x.from),x.to!=null&&x.to<re&&(re=x.to);var ne=new es(Xo(this,z,re),x.mode||this.modeOption,z,this.lineSep,this.direction);return x.sharedHist&&(ne.history=this.history),(this.linked||(this.linked=[])).push({doc:ne,sharedHist:x.sharedHist}),ne.linked=[{doc:this,isParent:!0,sharedHist:x.sharedHist}],hl(ne,tl(this)),ne},unlinkDoc:function(x){if(x instanceof Ha&&(x=x.doc),this.linked)for(var z=0;z<this.linked.length;++z){var re=this.linked[z];if(re.doc==x){this.linked.splice(z,1),x.unlinkDoc(this),Ss(tl(this));break}}if(x.history==this.history){var ne=[x.id];Nr(x,function(ae){return ne.push(ae.id)},!0),x.history=new Fa(null),x.history.done=sa(this.history.done,ne),x.history.undone=sa(this.history.undone,ne)}},iterLinkedDocs:function(x){Nr(this,x)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(x){return this.lineSep?x.split(this.lineSep):jr(x)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:xr(function(x){x!="rtl"&&(x="ltr"),x!=this.direction&&(this.direction=x,this.iter(function(z){return z.order=null}),this.cm&&Ji(this.cm))})}),es.prototype.eachLine=es.prototype.iter;var Au=0;function Vu(x){var z=this;if(Pc(z),!(Or(z,x)||Io(z.display,x))){oi(x),Ve&&(Au=+new Date);var re=Kl(z,x,!0),ne=x.dataTransfer.files;if(!(!re||z.isReadOnly()))if(ne&&ne.length&&window.FileReader&&window.File)for(var ae=ne.length,pe=Array(ae),Ce=0,Fe=function(){++Ce==ae&&gr(z,function(){re=Ma(z.doc,re);var bn={from:re,to:re,text:z.doc.splitLines(pe.filter(function(nr){return nr!=null}).join(z.doc.lineSeparator())),origin:"paste"};Mi(z.doc,bn),$o(z.doc,Sa(Ma(z.doc,re),Ma(z.doc,ma(bn))))})()},Ne=function(bn,nr){if(z.options.allowDropFileTypes&&Yt(z.options.allowDropFileTypes,bn.type)==-1){Fe();return}var Cr=new FileReader;Cr.onerror=function(){return Fe()},Cr.onload=function(){var Xr=Cr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Xr)){Fe();return}pe[nr]=Xr,Fe()},Cr.readAsText(bn)},Ue=0;Ue<ne.length;Ue++)Ne(ne[Ue],Ue);else{if(z.state.draggingText&&z.doc.sel.contains(re)>-1){z.state.draggingText(x),setTimeout(function(){return z.display.input.focus()},20);return}try{var Bt=x.dataTransfer.getData("Text");if(Bt){var Vt;if(z.state.draggingText&&!z.state.draggingText.copy&&(Vt=z.listSelections()),kl(z.doc,Sa(re,re)),Vt)for(var Sn=0;Sn<Vt.length;++Sn)Qo(z.doc,"",Vt[Sn].anchor,Vt[Sn].head,"drag");z.replaceSelection(Bt,"around","paste"),z.display.input.focus()}}catch(bn){}}}}function Uu(x,z){if(Ve&&(!x.state.draggingText||+new Date-Au<100)){Ni(z);return}if(!(Or(x,z)||Io(x.display,z))&&(z.dataTransfer.setData("Text",x.getSelection()),z.dataTransfer.effectAllowed="copyMove",z.dataTransfer.setDragImage&&!tt)){var re=Ht("img",null,null,"position: fixed; left: 0; top: 0;");re.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",at&&(re.width=re.height=1,x.display.wrapper.appendChild(re),re._top=re.offsetTop),z.dataTransfer.setDragImage(re,0,0),at&&re.parentNode.removeChild(re)}}function Fc(x,z){var re=Kl(x,z);if(re){var ne=document.createDocumentFragment();En(x,re,ne),x.display.dragCursor||(x.display.dragCursor=Ht("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv)),Qt(x.display.dragCursor,ne)}}function Pc(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"),re=[],ne=0;ne<z.length;ne++){var ae=z[ne].CodeMirror;ae&&re.push(ae)}re.length&&re[0].operation(function(){for(var pe=0;pe<re.length;pe++)x(re[pe])})}}var Hr=!1;function Md(){Hr||(dd(),Hr=!0)}function dd(){var x;jn(window,"resize",function(){x==null&&(x=setTimeout(function(){x=null,fc(fd)},100))}),jn(window,"blur",function(){return fc(hi)})}function fd(x){var z=x.display;z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.scrollbarsClipped=!1,x.setSize()}for(var Tu={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"},Xc=0;Xc<10;Xc++)Tu[Xc+48]=Tu[Xc+96]=String(Xc);for(var hd=65;hd<=90;hd++)Tu[hd]=String.fromCharCode(hd);for(var qc=1;qc<=12;qc++)Tu[qc+111]=Tu[qc+63235]="F"+qc;var cs={};cs.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"},cs.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"},cs.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"},cs.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"]},cs.default=Qe?cs.macDefault:cs.pcDefault;function pd(x){var z=x.split(/-(?!$)/);x=z[z.length-1];for(var re,ne,ae,pe,Ce=0;Ce<z.length-1;Ce++){var Fe=z[Ce];if(/^(cmd|meta|m)$/i.test(Fe))pe=!0;else if(/^a(lt)?$/i.test(Fe))re=!0;else if(/^(c|ctrl|control)$/i.test(Fe))ne=!0;else if(/^s(hift)?$/i.test(Fe))ae=!0;else throw new Error("Unrecognized modifier name: "+Fe)}return re&&(x="Alt-"+x),ne&&(x="Ctrl-"+x),pe&&(x="Cmd-"+x),ae&&(x="Shift-"+x),x}function Dd(x){var z={};for(var re in x)if(x.hasOwnProperty(re)){var ne=x[re];if(/^(name|fallthrough|(de|at)tach)$/.test(re))continue;if(ne=="..."){delete x[re];continue}for(var ae=Vn(re.split(" "),pd),pe=0;pe<ae.length;pe++){var Ce=void 0,Fe=void 0;pe==ae.length-1?(Fe=ae.join(" "),Ce=ne):(Fe=ae.slice(0,pe+1).join(" "),Ce="...");var Ne=z[Fe];if(!Ne)z[Fe]=Ce;else if(Ne!=Ce)throw new Error("Inconsistent bindings for "+Fe)}delete x[re]}for(var Ue in z)x[Ue]=z[Ue];return x}function ju(x,z,re,ne){z=Ql(z);var ae=z.call?z.call(x,ne):z[x];if(ae===!1)return"nothing";if(ae==="...")return"multi";if(ae!=null&&re(ae))return"handled";if(z.fallthrough){if(Object.prototype.toString.call(z.fallthrough)!="[object Array]")return ju(x,z.fallthrough,re,ne);for(var pe=0;pe<z.fallthrough.length;pe++){var Ce=ju(x,z.fallthrough[pe],re,ne);if(Ce)return Ce}}}function hc(x){var z=typeof x=="string"?x:Tu[x.keyCode];return z=="Ctrl"||z=="Alt"||z=="Shift"||z=="Mod"}function ec(x,z,re){var ne=x;return z.altKey&&ne!="Alt"&&(x="Alt-"+x),(ot?z.metaKey:z.ctrlKey)&&ne!="Ctrl"&&(x="Ctrl-"+x),(ot?z.ctrlKey:z.metaKey)&&ne!="Mod"&&(x="Cmd-"+x),!re&&z.shiftKey&&ne!="Shift"&&(x="Shift-"+x),x}function pc(x,z){if(at&&x.keyCode==34&&x.char)return!1;var re=Tu[x.keyCode];return re==null||x.altGraphKey?!1:(x.keyCode==3&&x.code&&(re=x.code),ec(re,x,z))}function Ql(x){return typeof x=="string"?cs[x]:x}function gu(x,z){for(var re=x.doc.sel.ranges,ne=[],ae=0;ae<re.length;ae++){for(var pe=z(re[ae]);ne.length&&Xi(pe.from,xn(ne).to)<=0;){var Ce=ne.pop();if(Xi(Ce.from,pe.from)<0){pe.from=Ce.from;break}}ne.push(pe)}Qn(x,function(){for(var Fe=ne.length-1;Fe>=0;Fe--)Qo(x.doc,"",ne[Fe].from,ne[Fe].to,"+delete");De(x)})}function Il(x,z,re){var ne=Zt(x.text,z+re,re);return ne<0||ne>x.text.length?null:ne}function Zu(x,z,re){var ne=Il(x,z.ch,re);return ne==null?null:new cr(z.line,ne,re<0?"after":"before")}function ku(x,z,re,ne,ae){if(x){z.doc.direction=="rtl"&&(ae=-ae);var pe=Dr(re,z.doc.direction);if(pe){var Ce=ae<0?xn(pe):pe[0],Fe=ae<0==(Ce.level==1),Ne=Fe?"after":"before",Ue;if(Ce.level>0||z.doc.direction=="rtl"){var Bt=is(z,re);Ue=ae<0?re.text.length-1:0;var Vt=eo(z,Bt,Ue).top;Ue=Dn(function(Sn){return eo(z,Bt,Sn).top==Vt},ae<0==(Ce.level==1)?Ce.from:Ce.to-1,Ue),Ne=="before"&&(Ue=Il(re,Ue,1))}else Ue=ae<0?Ce.to:Ce.from;return new cr(ne,Ue,Ne)}}return new cr(ne,ae<0?re.text.length:0,ae<0?"before":"after")}function Gu(x,z,re,ne){var ae=Dr(z,x.doc.direction);if(!ae)return Zu(z,re,ne);re.ch>=z.text.length?(re.ch=z.text.length,re.sticky="before"):re.ch<=0&&(re.ch=0,re.sticky="after");var pe=nn(ae,re.ch,re.sticky),Ce=ae[pe];if(x.doc.direction=="ltr"&&Ce.level%2==0&&(ne>0?Ce.to>re.ch:Ce.from<re.ch))return Zu(z,re,ne);var Fe=function(yi,Di){return Il(z,yi instanceof cr?yi.ch:yi,Di)},Ne,Ue=function(yi){return x.options.lineWrapping?(Ne=Ne||is(x,z),wu(x,z,Ne,yi)):{begin:0,end:z.text.length}},Bt=Ue(re.sticky=="before"?Fe(re,-1):re.ch);if(x.doc.direction=="rtl"||Ce.level==1){var Vt=Ce.level==1==ne<0,Sn=Fe(re,Vt?1:-1);if(Sn!=null&&(Vt?Sn<=Ce.to&&Sn<=Bt.end:Sn>=Ce.from&&Sn>=Bt.begin)){var bn=Vt?"before":"after";return new cr(re.line,Sn,bn)}}var nr=function(yi,Di,ci){for(var Li=function(ss,Dl){return Dl?new cr(re.line,Fe(ss,1),"before"):new cr(re.line,ss,"after")};yi>=0&&yi<ae.length;yi+=Di){var ya=ae[yi],Aa=Di>0==(ya.level!=1),uo=Aa?ci.begin:Fe(ci.end,-1);if(ya.from<=uo&&uo<ya.to||(uo=Aa?ya.from:Fe(ya.to,-1),ci.begin<=uo&&uo<ci.end))return Li(uo,Aa)}},Cr=nr(pe+ne,ne,Bt);if(Cr)return Cr;var Xr=ne>0?Bt.end:Fe(Bt.begin,-1);return Xr!=null&&!(ne>0&&Xr==z.text.length)&&(Cr=nr(ne>0?0:ae.length-1,ne,Ue(Xr)),Cr)?Cr:null}var Ic={selectAll:as,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),Lt)},killLine:function(x){return gu(x,function(z){if(z.empty()){var re=mi(x.doc,z.head.line).text.length;return z.head.ch==re&&z.head.line<x.lastLine()?{from:z.head,to:cr(z.head.line+1,0)}:{from:z.head,to:cr(z.head.line,re)}}else return{from:z.from(),to:z.to()}})},deleteLine:function(x){return gu(x,function(z){return{from:cr(z.from().line,0),to:Ma(x.doc,cr(z.to().line+1,0))}})},delLineLeft:function(x){return gu(x,function(z){return{from:cr(z.from().line,0),to:z.from()}})},delWrappedLineLeft:function(x){return gu(x,function(z){var re=x.charCoords(z.head,"div").top+5,ne=x.coordsChar({left:0,top:re},"div");return{from:ne,to:z.from()}})},delWrappedLineRight:function(x){return gu(x,function(z){var re=x.charCoords(z.head,"div").top+5,ne=x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:re},"div");return{from:z.from(),to:ne}})},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(cr(x.firstLine(),0))},goDocEnd:function(x){return x.extendSelection(cr(x.lastLine()))},goLineStart:function(x){return x.extendSelectionsBy(function(z){return Bd(x,z.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(x){return x.extendSelectionsBy(function(z){return md(x,z.head)},{origin:"+move",bias:1})},goLineEnd:function(x){return x.extendSelectionsBy(function(z){return Ld(x,z.head.line)},{origin:"+move",bias:-1})},goLineRight:function(x){return x.extendSelectionsBy(function(z){var re=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:re},"div")},wn)},goLineLeft:function(x){return x.extendSelectionsBy(function(z){var re=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:0,top:re},"div")},wn)},goLineLeftSmart:function(x){return x.extendSelectionsBy(function(z){var re=x.cursorCoords(z.head,"div").top+5,ne=x.coordsChar({left:0,top:re},"div");return ne.ch<x.getLine(ne.line).search(/\S/)?md(x,z.head):ne},wn)},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=[],re=x.listSelections(),ne=x.options.tabSize,ae=0;ae<re.length;ae++){var pe=re[ae].from(),Ce=Ge(x.getLine(pe.line),pe.ch,ne);z.push(kn(ne-Ce%ne))}x.replaceSelections(z)},defaultTab:function(x){x.somethingSelected()?x.indentSelection("add"):x.execCommand("insertTab")},transposeChars:function(x){return Qn(x,function(){for(var z=x.listSelections(),re=[],ne=0;ne<z.length;ne++)if(z[ne].empty()){var ae=z[ne].head,pe=mi(x.doc,ae.line).text;if(pe){if(ae.ch==pe.length&&(ae=new cr(ae.line,ae.ch-1)),ae.ch>0)ae=new cr(ae.line,ae.ch+1),x.replaceRange(pe.charAt(ae.ch-1)+pe.charAt(ae.ch-2),cr(ae.line,ae.ch-2),ae,"+transpose");else if(ae.line>x.doc.first){var Ce=mi(x.doc,ae.line-1).text;Ce&&(ae=new cr(ae.line,1),x.replaceRange(pe.charAt(0)+x.doc.lineSeparator()+Ce.charAt(Ce.length-1),cr(ae.line-1,Ce.length-1),ae,"+transpose"))}}re.push(new Pi(ae,ae))}x.setSelections(re)})},newlineAndIndent:function(x){return Qn(x,function(){for(var z=x.listSelections(),re=z.length-1;re>=0;re--)x.replaceRange(x.doc.lineSeparator(),z[re].anchor,z[re].head,"+input");z=x.listSelections();for(var ne=0;ne<z.length;ne++)x.indentLine(z[ne].from().line,null,!0);De(x)})},openLine:function(x){return x.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(x){return x.toggleOverwrite()}};function Bd(x,z){var re=mi(x.doc,z),ne=Ft(re);return ne!=re&&(z=Na(ne)),ku(!0,x,ne,z,1)}function Ld(x,z){var re=mi(x.doc,z),ne=an(re);return ne!=re&&(z=Na(ne)),ku(!0,x,re,z,-1)}function md(x,z){var re=Bd(x,z.line),ne=mi(x.doc,re.line),ae=Dr(ne,x.doc.direction);if(!ae||ae[0].level==0){var pe=Math.max(re.ch,ne.text.search(/\S/)),Ce=z.line==re.line&&z.ch<=pe&&z.ch;return cr(re.line,Ce?0:pe,re.sticky)}return re}function vl(x,z,re){if(typeof z=="string"&&(z=Ic[z],!z))return!1;x.display.input.ensurePolled();var ne=x.display.shift,ae=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),re&&(x.display.shift=!1),ae=z(x)!=cn}finally{x.display.shift=ne,x.state.suppressEdits=!1}return ae}function Yu(x,z,re){for(var ne=0;ne<x.state.keyMaps.length;ne++){var ae=ju(z,x.state.keyMaps[ne],re,x);if(ae)return ae}return x.options.extraKeys&&ju(z,x.options.extraKeys,re,x)||ju(z,x.options.keyMap,re,x)}var Tf=new Ke;function Tc(x,z,re,ne){var ae=x.state.keySeq;if(ae){if(hc(z))return"handled";if(/\'$/.test(z)?x.state.keySeq=null:Tf.set(50,function(){x.state.keySeq==ae&&(x.state.keySeq=null,x.display.input.reset())}),vd(x,ae+" "+z,re,ne))return!0}return vd(x,z,re,ne)}function vd(x,z,re,ne){var ae=Yu(x,z,ne);return ae=="multi"&&(x.state.keySeq=z),ae=="handled"&&Lr(x,"keyHandled",x,z,re),(ae=="handled"||ae=="multi")&&(oi(re),lr(x)),!!ae}function Co(x,z){var re=pc(z,!0);return re?z.shiftKey&&!x.state.keySeq?Tc(x,"Shift-"+re,z,function(ne){return vl(x,ne,!0)})||Tc(x,re,z,function(ne){if(typeof ne=="string"?/^go[A-Z]/.test(ne):ne.motion)return vl(x,ne)}):Tc(x,re,z,function(ne){return vl(x,ne)}):!1}function Nc(x,z,re){return Tc(x,"'"+re+"'",z,function(ne){return vl(x,ne,!0)})}var Qu=null;function $c(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&(z.curOp.focus=qe(),!Or(z,x))){Ve&&Re<11&&x.keyCode==27&&(x.returnValue=!1);var re=x.keyCode;z.display.shift=re==16||x.shiftKey;var ne=Co(z,x);at&&(Qu=ne?re:null,!ne&&re==88&&!Lo&&(Qe?x.metaKey:x.ctrlKey)&&z.replaceSelection("",null,"cut")),te&&!Qe&&!ne&&re==46&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut"),re==18&&!/\bCodeMirror-crosshair\b/.test(z.display.lineDiv.className)&&$n(z)}}function $n(x){var z=x.display.lineDiv;ut(z,"CodeMirror-crosshair");function re(ne){(ne.keyCode==18||!ne.altKey)&&(zt(z,"CodeMirror-crosshair"),$r(document,"keyup",re),$r(document,"mouseover",re))}jn(document,"keyup",re),jn(document,"mouseover",re)}function tf(x){x.keyCode==16&&(this.doc.sel.shift=!1),Or(this,x)}function nf(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&!(Io(z.display,x)||Or(z,x)||x.ctrlKey&&!x.altKey||Qe&&x.metaKey)){var re=x.keyCode,ne=x.charCode;if(at&&re==Qu){Qu=null,oi(x);return}if(!(at&&(!x.which||x.which<10)&&Co(z,x))){var ae=String.fromCharCode(ne==null?re:ne);ae!="\b"&&(Nc(z,x,ae)||z.display.input.onKeyPress(x))}}}var gd=400,Fd=function(x,z,re){this.time=x,this.pos=z,this.button=re};Fd.prototype.compare=function(x,z,re){return this.time+gd>x&&Xi(z,this.pos)==0&&re==this.button};var tc,ed;function Nf(x,z){var re=+new Date;return ed&&ed.compare(re,x,z)?(tc=ed=null,"triple"):tc&&tc.compare(re,x,z)?(ed=new Fd(re,x,z),tc=null,"double"):(tc=new Fd(re,x,z),ed=null,"single")}function Tl(x){var z=this,re=z.display;if(!(Or(z,x)||re.activeTouch&&re.input.supportsTouch())){if(re.input.ensurePolled(),re.shift=x.shiftKey,Io(re,x)){it||(re.scroller.draggable=!1,setTimeout(function(){return re.scroller.draggable=!0},100));return}if(!Wl(z,x)){var ne=Kl(z,x),ae=Wr(x),pe=ne?Nf(ne,ae):"single";window.focus(),ae==1&&z.state.selectingText&&z.state.selectingText(x),!(ne&&mc(z,ae,ne,pe,x))&&(ae==1?ne?td(z,ne,pe,x):Fi(x)==re.scroller&&oi(x):ae==2?(ne&&Ri(z.doc,ne),setTimeout(function(){return re.input.focus()},20)):ae==3&&(ht?z.display.input.onContextMenu(x):si(z)))}}}function mc(x,z,re,ne,ae){var pe="Click";return ne=="double"?pe="Double"+pe:ne=="triple"&&(pe="Triple"+pe),pe=(z==1?"Left":z==2?"Middle":"Right")+pe,Tc(x,ec(pe,ae),ae,function(Ce){if(typeof Ce=="string"&&(Ce=Ic[Ce]),!Ce)return!1;var Fe=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),Fe=Ce(x,re)!=cn}finally{x.state.suppressEdits=!1}return Fe})}function Ec(x,z,re){var ne=x.getOption("configureMouse"),ae=ne?ne(x,z,re):{};if(ae.unit==null){var pe=et?re.shiftKey&&re.metaKey:re.altKey;ae.unit=pe?"rectangle":z=="single"?"char":z=="double"?"word":"line"}return(ae.extend==null||x.doc.extend)&&(ae.extend=x.doc.extend||re.shiftKey),ae.addNew==null&&(ae.addNew=Qe?re.metaKey:re.ctrlKey),ae.moveOnDrag==null&&(ae.moveOnDrag=!(Qe?re.altKey:re.ctrlKey)),ae}function td(x,z,re,ne){Ve?setTimeout(Gt(vr,x),0):x.curOp.focus=qe();var ae=Ec(x,re,ne),pe=x.doc.sel,Ce;x.options.dragDrop&&qr&&!x.isReadOnly()&&re=="single"&&(Ce=pe.contains(z))>-1&&(Xi((Ce=pe.ranges[Ce]).from(),z)<0||z.xRel>0)&&(Xi(Ce.to(),z)>0||z.xRel<0)?Of(x,ne,z,ae):Pd(x,ne,z,ae)}function Of(x,z,re,ne){var ae=x.display,pe=!1,Ce=gr(x,function(Ue){it&&(ae.scroller.draggable=!1),x.state.draggingText=!1,$r(ae.wrapper.ownerDocument,"mouseup",Ce),$r(ae.wrapper.ownerDocument,"mousemove",Fe),$r(ae.scroller,"dragstart",Ne),$r(ae.scroller,"drop",Ce),pe||(oi(Ue),ne.addNew||Ri(x.doc,re,null,null,ne.extend),it&&!tt||Ve&&Re==9?setTimeout(function(){ae.wrapper.ownerDocument.body.focus({preventScroll:!0}),ae.input.focus()},20):ae.input.focus())}),Fe=function(Ue){pe=pe||Math.abs(z.clientX-Ue.clientX)+Math.abs(z.clientY-Ue.clientY)>=10},Ne=function(){return pe=!0};it&&(ae.scroller.draggable=!0),x.state.draggingText=Ce,Ce.copy=!ne.moveOnDrag,ae.scroller.dragDrop&&ae.scroller.dragDrop(),jn(ae.wrapper.ownerDocument,"mouseup",Ce),jn(ae.wrapper.ownerDocument,"mousemove",Fe),jn(ae.scroller,"dragstart",Ne),jn(ae.scroller,"drop",Ce),si(x),setTimeout(function(){return ae.input.focus()},20)}function rf(x,z,re){if(re=="char")return new Pi(z,z);if(re=="word")return x.findWordAt(z);if(re=="line")return new Pi(cr(z.line,0),Ma(x.doc,cr(z.line+1,0)));var ne=re(x,z);return new Pi(ne.from,ne.to)}function Pd(x,z,re,ne){var ae=x.display,pe=x.doc;oi(z);var Ce,Fe,Ne=pe.sel,Ue=Ne.ranges;if(ne.addNew&&!ne.extend?(Fe=pe.sel.contains(re),Fe>-1?Ce=Ue[Fe]:Ce=new Pi(re,re)):(Ce=pe.sel.primary(),Fe=pe.sel.primIndex),ne.unit=="rectangle")ne.addNew||(Ce=new Pi(re,re)),re=Kl(x,z,!0,!0),Fe=-1;else{var Bt=rf(x,re,ne.unit);ne.extend?Ce=Ur(Ce,Bt.anchor,Bt.head,ne.extend):Ce=Bt}ne.addNew?Fe==-1?(Fe=Ue.length,Oo(pe,La(x,Ue.concat([Ce]),Fe),{scroll:!1,origin:"*mouse"})):Ue.length>1&&Ue[Fe].empty()&&ne.unit=="char"&&!ne.extend?(Oo(pe,La(x,Ue.slice(0,Fe).concat(Ue.slice(Fe+1)),0),{scroll:!1,origin:"*mouse"}),Ne=pe.sel):Ki(pe,Fe,Ce,Dt):(Fe=0,Oo(pe,new Qi([Ce],0),Dt),Ne=pe.sel);var Vt=re;function Sn(ci){if(Xi(Vt,ci)!=0)if(Vt=ci,ne.unit=="rectangle"){for(var Li=[],ya=x.options.tabSize,Aa=Ge(mi(pe,re.line).text,re.ch,ya),uo=Ge(mi(pe,ci.line).text,ci.ch,ya),ss=Math.min(Aa,uo),Dl=Math.max(Aa,uo),Qs=Math.min(re.line,ci.line),tu=Math.min(x.lastLine(),Math.max(re.line,ci.line));Qs<=tu;Qs++){var nu=mi(pe,Qs).text,gl=_n(nu,ss,ya);ss==Dl?Li.push(new Pi(cr(Qs,gl),cr(Qs,gl))):nu.length>gl&&Li.push(new Pi(cr(Qs,gl),cr(Qs,_n(nu,Dl,ya))))}Li.length||Li.push(new Pi(re,re)),Oo(pe,La(x,Ne.ranges.slice(0,Fe).concat(Li),Fe),{origin:"*mouse",scroll:!1}),x.scrollIntoView(ci)}else{var Jl=Ce,ja=rf(x,ci,ne.unit),nl=Jl.anchor,Os;Xi(ja.anchor,nl)>0?(Os=ja.head,nl=ho(Jl.from(),ja.anchor)):(Os=ja.anchor,nl=fs(Jl.to(),ja.head));var Js=Ne.ranges.slice(0);Js[Fe]=af(x,new Pi(Ma(pe,nl),Os)),Oo(pe,La(x,Js,Fe),Dt)}}var bn=ae.wrapper.getBoundingClientRect(),nr=0;function Cr(ci){var Li=++nr,ya=Kl(x,ci,!0,ne.unit=="rectangle");if(ya)if(Xi(ya,Vt)!=0){x.curOp.focus=qe(),Sn(ya);var Aa=Rr(ae,pe);(ya.line>=Aa.to||ya.line<Aa.from)&&setTimeout(gr(x,function(){nr==Li&&Cr(ci)}),150)}else{var uo=ci.clientY<bn.top?-20:ci.clientY>bn.bottom?20:0;uo&&setTimeout(gr(x,function(){nr==Li&&(ae.scroller.scrollTop+=uo,Cr(ci))}),50)}}function Xr(ci){x.state.selectingText=!1,nr=1/0,ci&&(oi(ci),ae.input.focus()),$r(ae.wrapper.ownerDocument,"mousemove",yi),$r(ae.wrapper.ownerDocument,"mouseup",Di),pe.history.lastSelOrigin=null}var yi=gr(x,function(ci){ci.buttons===0||!Wr(ci)?Xr(ci):Cr(ci)}),Di=gr(x,Xr);x.state.selectingText=Di,jn(ae.wrapper.ownerDocument,"mousemove",yi),jn(ae.wrapper.ownerDocument,"mouseup",Di)}function af(x,z){var re=z.anchor,ne=z.head,ae=mi(x.doc,re.line);if(Xi(re,ne)==0&&re.sticky==ne.sticky)return z;var pe=Dr(ae);if(!pe)return z;var Ce=nn(pe,re.ch,re.sticky),Fe=pe[Ce];if(Fe.from!=re.ch&&Fe.to!=re.ch)return z;var Ne=Ce+(Fe.from==re.ch==(Fe.level!=1)?0:1);if(Ne==0||Ne==pe.length)return z;var Ue;if(ne.line!=re.line)Ue=(ne.line-re.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var Bt=nn(pe,ne.ch,ne.sticky),Vt=Bt-Ce||(ne.ch-re.ch)*(Fe.level==1?-1:1);Bt==Ne-1||Bt==Ne?Ue=Vt<0:Ue=Vt>0}var Sn=pe[Ne+(Ue?-1:0)],bn=Ue==(Sn.level==1),nr=bn?Sn.from:Sn.to,Cr=bn?"after":"before";return re.ch==nr&&re.sticky==Cr?z:new Pi(new cr(re.line,nr,Cr),ne)}function nc(x,z,re,ne){var ae,pe;if(z.touches)ae=z.touches[0].clientX,pe=z.touches[0].clientY;else try{ae=z.clientX,pe=z.clientY}catch(Sn){return!1}if(ae>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;ne&&oi(z);var Ce=x.display,Fe=Ce.lineDiv.getBoundingClientRect();if(pe>Fe.bottom||!ur(x,re))return Ti(z);pe-=Fe.top-Ce.viewOffset;for(var Ne=0;Ne<x.display.gutterSpecs.length;++Ne){var Ue=Ce.gutters.childNodes[Ne];if(Ue&&Ue.getBoundingClientRect().right>=ae){var Bt=Rs(x.doc,pe),Vt=x.display.gutterSpecs[Ne];return Ir(x,re,x,Bt,Vt.className,z),Ti(z)}}}function Wl(x,z){return nc(x,z,"gutterClick",!0)}function rc(x,z){Io(x.display,z)||of(x,z)||Or(x,z,"contextmenu")||ht||x.display.input.onContextMenu(z)}function of(x,z){return ur(x,"gutterContextMenu")?nc(x,z,"gutterContextMenu",!1):!1}function Id(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),jl(x)}var Sc={toString:function(){return"CodeMirror.Init"}},sf={},Oc={};function Rf(x){var z=x.optionHandlers;function re(ne,ae,pe,Ce){x.defaults[ne]=ae,pe&&(z[ne]=Ce?function(Fe,Ne,Ue){Ue!=Sc&&pe(Fe,Ne,Ue)}:pe)}x.defineOption=re,x.Init=Sc,re("value","",function(ne,ae){return ne.setValue(ae)},!0),re("mode",null,function(ne,ae){ne.doc.modeOption=ae,oa(ne)},!0),re("indentUnit",2,oa,!0),re("indentWithTabs",!1),re("smartIndent",!0),re("tabSize",4,function(ne){Ra(ne),jl(ne),Ba(ne)},!0),re("lineSeparator",null,function(ne,ae){if(ne.doc.lineSep=ae,!!ae){var pe=[],Ce=ne.doc.first;ne.doc.iter(function(Ne){for(var Ue=0;;){var Bt=Ne.text.indexOf(ae,Ue);if(Bt==-1)break;Ue=Bt+ae.length,pe.push(cr(Ce,Bt))}Ce++});for(var Fe=pe.length-1;Fe>=0;Fe--)Qo(ne.doc,ae,pe[Fe],cr(pe[Fe].line,pe[Fe].ch+ae.length))}}),re("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ne,ae,pe){ne.state.specialChars=new RegExp(ae.source+(ae.test(" ")?"":"| "),"g"),pe!=Sc&&ne.refresh()}),re("specialCharPlaceholder",Oa,function(ne){return ne.refresh()},!0),re("electricChars",!0),re("inputStyle",dt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),re("spellcheck",!1,function(ne,ae){return ne.getInputField().spellcheck=ae},!0),re("autocorrect",!1,function(ne,ae){return ne.getInputField().autocorrect=ae},!0),re("autocapitalize",!1,function(ne,ae){return ne.getInputField().autocapitalize=ae},!0),re("rtlMoveVisually",!ft),re("wholeLineUpdateBefore",!0),re("theme","default",function(ne){Id(ne),xi(ne)},!0),re("keyMap","default",function(ne,ae,pe){var Ce=Ql(ae),Fe=pe!=Sc&&Ql(pe);Fe&&Fe.detach&&Fe.detach(ne,Ce),Ce.attach&&Ce.attach(ne,Fe||null)}),re("extraKeys",null),re("configureMouse",null),re("lineWrapping",!1,lf,!0),re("gutters",[],function(ne,ae){ne.display.gutterSpecs=Ei(ae,ne.options.lineNumbers),xi(ne)},!0),re("fixedGutter",!0,function(ne,ae){ne.display.gutters.style.left=ae?ou(ne.display)+"px":"0",ne.refresh()},!0),re("coverGutterNextToScrollbar",!1,function(ne){return gn(ne)},!0),re("scrollbarStyle","native",function(ne){Cn(ne),gn(ne),ne.display.scrollbars.setScrollTop(ne.doc.scrollTop),ne.display.scrollbars.setScrollLeft(ne.doc.scrollLeft)},!0),re("lineNumbers",!1,function(ne,ae){ne.display.gutterSpecs=Ei(ne.options.gutters,ae),xi(ne)},!0),re("firstLineNumber",1,xi,!0),re("lineNumberFormatter",function(ne){return ne},xi,!0),re("showCursorWhenSelecting",!1,Tt,!0),re("resetSelectionOnContextMenu",!0),re("lineWiseCopyCut",!0),re("pasteLinesPerSelection",!0),re("selectionsMayTouch",!1),re("readOnly",!1,function(ne,ae){ae=="nocursor"&&(hi(ne),ne.display.input.blur()),ne.display.input.readOnlyChanged(ae)}),re("screenReaderLabel",null,function(ne,ae){ae=ae===""?null:ae,ne.display.input.screenReaderLabelChanged(ae)}),re("disableInput",!1,function(ne,ae){ae||ne.display.input.reset()},!0),re("dragDrop",!0,_f),re("allowDropFileTypes",null),re("cursorBlinkRate",530),re("cursorScrollMargin",0),re("cursorHeight",1,Tt,!0),re("singleCursorHeightPerLine",!0,Tt,!0),re("workTime",100),re("workDelay",100),re("flattenSpans",!0,Ra,!0),re("addModeClass",!1,Ra,!0),re("pollInterval",100),re("undoDepth",200,function(ne,ae){return ne.doc.history.undoDepth=ae}),re("historyEventDelay",1250),re("viewportMargin",10,function(ne){return ne.refresh()},!0),re("maxHighlightLength",1e4,Ra,!0),re("moveInputWithCursor",!0,function(ne,ae){ae||ne.display.input.resetPosition()}),re("tabindex",null,function(ne,ae){return ne.display.input.getField().tabIndex=ae||""}),re("autofocus",null),re("direction","ltr",function(ne,ae){return ne.doc.setDirection(ae)},!0),re("phrases",null)}function _f(x,z,re){var ne=re&&re!=Sc;if(!z!=!ne){var ae=x.display.dragFunctions,pe=z?jn:$r;pe(x.display.scroller,"dragstart",ae.start),pe(x.display.scroller,"dragenter",ae.enter),pe(x.display.scroller,"dragover",ae.over),pe(x.display.scroller,"dragleave",ae.leave),pe(x.display.scroller,"drop",ae.drop)}}function lf(x){x.options.lineWrapping?(ut(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(zt(x.display.wrapper,"CodeMirror-wrap"),Tn(x)),su(x),Ba(x),jl(x),setTimeout(function(){return gn(x)},100)}function Ha(x,z){var re=this;if(!(this instanceof Ha))return new Ha(x,z);this.options=z=z?un(z):{},un(sf,z,!1);var ne=z.value;typeof ne=="string"?ne=new es(ne,z.mode,null,z.lineSeparator,z.direction):z.mode&&(ne.modeOption=z.mode),this.doc=ne;var ae=new Ha.inputStyles[z.inputStyle](this),pe=this.display=new la(x,ne,ae,z);pe.wrapper.CodeMirror=this,Id(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Cn(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 Ke,keySeq:null,specialChars:null},z.autofocus&&!dt&&pe.input.focus(),Ve&&Re<11&&setTimeout(function(){return re.display.input.reset(!0)},20),Kf(this),Md(),Un(this),this.curOp.forceUpdate=!0,Gr(this,ne),z.autofocus&&!dt||this.hasFocus()?setTimeout(function(){re.hasFocus()&&!re.state.focused&&Fr(re)},20):hi(this);for(var Ce in Oc)Oc.hasOwnProperty(Ce)&&Oc[Ce](this,z[Ce],Sc);Br(this),z.finishInit&&z.finishInit(this);for(var Fe=0;Fe<yd.length;++Fe)yd[Fe](this);qn(this),it&&z.lineWrapping&&getComputedStyle(pe.lineDiv).textRendering=="optimizelegibility"&&(pe.lineDiv.style.textRendering="auto")}Ha.defaults=sf,Ha.optionHandlers=Oc;function Kf(x){var z=x.display;jn(z.scroller,"mousedown",gr(x,Tl)),Ve&&Re<11?jn(z.scroller,"dblclick",gr(x,function(Ne){if(!Or(x,Ne)){var Ue=Kl(x,Ne);if(!(!Ue||Wl(x,Ne)||Io(x.display,Ne))){oi(Ne);var Bt=x.findWordAt(Ue);Ri(x.doc,Bt.anchor,Bt.head)}}})):jn(z.scroller,"dblclick",function(Ne){return Or(x,Ne)||oi(Ne)}),jn(z.scroller,"contextmenu",function(Ne){return rc(x,Ne)}),jn(z.input.getField(),"contextmenu",function(Ne){z.scroller.contains(Ne.target)||rc(x,Ne)});var re,ne={end:0};function ae(){z.activeTouch&&(re=setTimeout(function(){return z.activeTouch=null},1e3),ne=z.activeTouch,ne.end=+new Date)}function pe(Ne){if(Ne.touches.length!=1)return!1;var Ue=Ne.touches[0];return Ue.radiusX<=1&&Ue.radiusY<=1}function Ce(Ne,Ue){if(Ue.left==null)return!0;var Bt=Ue.left-Ne.left,Vt=Ue.top-Ne.top;return Bt*Bt+Vt*Vt>20*20}jn(z.scroller,"touchstart",function(Ne){if(!Or(x,Ne)&&!pe(Ne)&&!Wl(x,Ne)){z.input.ensurePolled(),clearTimeout(re);var Ue=+new Date;z.activeTouch={start:Ue,moved:!1,prev:Ue-ne.end<=300?ne:null},Ne.touches.length==1&&(z.activeTouch.left=Ne.touches[0].pageX,z.activeTouch.top=Ne.touches[0].pageY)}}),jn(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),jn(z.scroller,"touchend",function(Ne){var Ue=z.activeTouch;if(Ue&&!Io(z,Ne)&&Ue.left!=null&&!Ue.moved&&new Date-Ue.start<300){var Bt=x.coordsChar(z.activeTouch,"page"),Vt;!Ue.prev||Ce(Ue,Ue.prev)?Vt=new Pi(Bt,Bt):!Ue.prev.prev||Ce(Ue,Ue.prev.prev)?Vt=x.findWordAt(Bt):Vt=new Pi(cr(Bt.line,0),Ma(x.doc,cr(Bt.line+1,0))),x.setSelection(Vt.anchor,Vt.head),x.focus(),oi(Ne)}ae()}),jn(z.scroller,"touchcancel",ae),jn(z.scroller,"scroll",function(){z.scroller.clientHeight&&(gt(x,z.scroller.scrollTop),jt(x,z.scroller.scrollLeft,!0),Ir(x,"scroll",x))}),jn(z.scroller,"mousewheel",function(Ne){return Xa(x,Ne)}),jn(z.scroller,"DOMMouseScroll",function(Ne){return Xa(x,Ne)}),jn(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(Ne){Or(x,Ne)||Ni(Ne)},over:function(Ne){Or(x,Ne)||(Fc(x,Ne),Ni(Ne))},start:function(Ne){return Uu(x,Ne)},drop:gr(x,Vu),leave:function(Ne){Or(x,Ne)||Pc(x)}};var Fe=z.input.getField();jn(Fe,"keyup",function(Ne){return tf.call(x,Ne)}),jn(Fe,"keydown",gr(x,$c)),jn(Fe,"keypress",gr(x,nf)),jn(Fe,"focus",function(Ne){return Fr(x,Ne)}),jn(Fe,"blur",function(Ne){return hi(x,Ne)})}var yd=[];Ha.defineInitHook=function(x){return yd.push(x)};function Nu(x,z,re,ne){var ae=x.doc,pe;re==null&&(re="add"),re=="smart"&&(ae.mode.indent?pe=co(x,z).state:re="prev");var Ce=x.options.tabSize,Fe=mi(ae,z),Ne=Ge(Fe.text,null,Ce);Fe.stateAfter&&(Fe.stateAfter=null);var Ue=Fe.text.match(/^\s*/)[0],Bt;if(!ne&&!/\S/.test(Fe.text))Bt=0,re="not";else if(re=="smart"&&(Bt=ae.mode.indent(pe,Fe.text.slice(Ue.length),Fe.text),Bt==cn||Bt>150)){if(!ne)return;re="prev"}re=="prev"?z>ae.first?Bt=Ge(mi(ae,z-1).text,null,Ce):Bt=0:re=="add"?Bt=Ne+x.options.indentUnit:re=="subtract"?Bt=Ne-x.options.indentUnit:typeof re=="number"&&(Bt=Ne+re),Bt=Math.max(0,Bt);var Vt="",Sn=0;if(x.options.indentWithTabs)for(var bn=Math.floor(Bt/Ce);bn;--bn)Sn+=Ce,Vt+=" ";if(Sn<Bt&&(Vt+=kn(Bt-Sn)),Vt!=Ue)return Qo(ae,Vt,cr(z,0),cr(z,Ue.length),"+input"),Fe.stateAfter=null,!0;for(var nr=0;nr<ae.sel.ranges.length;nr++){var Cr=ae.sel.ranges[nr];if(Cr.head.line==z&&Cr.head.ch<Ue.length){var Xr=cr(z,Ue.length);Ki(ae,nr,new Pi(Xr,Xr));break}}}var Mu=null;function Ac(x){Mu=x}function nd(x,z,re,ne,ae){var pe=x.doc;x.display.shift=!1,ne||(ne=pe.sel);var Ce=+new Date-200,Fe=ae=="paste"||x.state.pasteIncoming>Ce,Ne=jr(z),Ue=null;if(Fe&&ne.ranges.length>1)if(Mu&&Mu.text.join(`
|
|
|
`)==z){if(ne.ranges.length%Mu.text.length==0){Ue=[];for(var Bt=0;Bt<Mu.text.length;Bt++)Ue.push(pe.splitLines(Mu.text[Bt]))}}else Ne.length==ne.ranges.length&&x.options.pasteLinesPerSelection&&(Ue=Vn(Ne,function(yi){return[yi]}));for(var Vt=x.curOp.updateInput,Sn=ne.ranges.length-1;Sn>=0;Sn--){var bn=ne.ranges[Sn],nr=bn.from(),Cr=bn.to();bn.empty()&&(re&&re>0?nr=cr(nr.line,nr.ch-re):x.state.overwrite&&!Fe?Cr=cr(Cr.line,Math.min(mi(pe,Cr.line).text.length,Cr.ch+xn(Ne).length)):Fe&&Mu&&Mu.lineWise&&Mu.text.join(`
|
|
|
`)==Ne.join(`
|
|
|
`)&&(nr=Cr=cr(nr.line,0)));var Xr={from:nr,to:Cr,text:Ue?Ue[Sn%Ue.length]:Ne,origin:ae||(Fe?"paste":x.state.cutIncoming>Ce?"cut":"+input")};Mi(x.doc,Xr),Lr(x,"inputRead",x,Xr)}z&&!Fe&&Nd(x,z),De(x),x.curOp.updateInput<2&&(x.curOp.updateInput=Vt),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function Td(x,z){var re=x.clipboardData&&x.clipboardData.getData("Text");if(re)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&Qn(z,function(){return nd(z,re,0,null,"paste")}),!0}function Nd(x,z){if(!(!x.options.electricChars||!x.options.smartIndent))for(var re=x.doc.sel,ne=re.ranges.length-1;ne>=0;ne--){var ae=re.ranges[ne];if(!(ae.head.ch>100||ne&&re.ranges[ne-1].head.line==ae.head.line)){var pe=x.getModeAt(ae.head),Ce=!1;if(pe.electricChars){for(var Fe=0;Fe<pe.electricChars.length;Fe++)if(z.indexOf(pe.electricChars.charAt(Fe))>-1){Ce=Nu(x,ae.head.line,"smart");break}}else pe.electricInput&&pe.electricInput.test(mi(x.doc,ae.head.line).text.slice(0,ae.head.ch))&&(Ce=Nu(x,ae.head.line,"smart"));Ce&&Lr(x,"electricInput",x,ae.head.line)}}}function Rc(x){for(var z=[],re=[],ne=0;ne<x.doc.sel.ranges.length;ne++){var ae=x.doc.sel.ranges[ne].head.line,pe={anchor:cr(ae,0),head:cr(ae+1,0)};re.push(pe),z.push(x.getRange(pe.anchor,pe.head))}return{text:z,ranges:re}}function uf(x,z,re,ne){x.setAttribute("autocorrect",re?"":"off"),x.setAttribute("autocapitalize",ne?"":"off"),x.setAttribute("spellcheck",!!z)}function Od(){var x=Ht("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),z=Ht("div",[x],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return it?x.style.width="1000px":x.setAttribute("wrap","off"),bt&&(x.style.border="1px solid black"),uf(x),z}function Rd(x){var z=x.optionHandlers,re=x.helpers={};x.prototype={constructor:x,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ne,ae){var pe=this.options,Ce=pe[ne];pe[ne]==ae&&ne!="mode"||(pe[ne]=ae,z.hasOwnProperty(ne)&&gr(this,z[ne])(this,ae,Ce),Ir(this,"optionChange",this,ne))},getOption:function(ne){return this.options[ne]},getDoc:function(){return this.doc},addKeyMap:function(ne,ae){this.state.keyMaps[ae?"push":"unshift"](Ql(ne))},removeKeyMap:function(ne){for(var ae=this.state.keyMaps,pe=0;pe<ae.length;++pe)if(ae[pe]==ne||ae[pe].name==ne)return ae.splice(pe,1),!0},addOverlay:ir(function(ne,ae){var pe=ne.token?ne:x.getMode(this.options,ne);if(pe.startState)throw new Error("Overlays may not be stateful.");er(this.state.overlays,{mode:pe,modeSpec:ne,opaque:ae&&ae.opaque,priority:ae&&ae.priority||0},function(Ce){return Ce.priority}),this.state.modeGen++,Ba(this)}),removeOverlay:ir(function(ne){for(var ae=this.state.overlays,pe=0;pe<ae.length;++pe){var Ce=ae[pe].modeSpec;if(Ce==ne||typeof ne=="string"&&Ce.name==ne){ae.splice(pe,1),this.state.modeGen++,Ba(this);return}}}),indentLine:ir(function(ne,ae,pe){typeof ae!="string"&&typeof ae!="number"&&(ae==null?ae=this.options.smartIndent?"smart":"prev":ae=ae?"add":"subtract"),io(this.doc,ne)&&Nu(this,ne,ae,pe)}),indentSelection:ir(function(ne){for(var ae=this.doc.sel.ranges,pe=-1,Ce=0;Ce<ae.length;Ce++){var Fe=ae[Ce];if(Fe.empty())Fe.head.line>pe&&(Nu(this,Fe.head.line,ne,!0),pe=Fe.head.line,Ce==this.doc.sel.primIndex&&De(this));else{var Ne=Fe.from(),Ue=Fe.to(),Bt=Math.max(pe,Ne.line);pe=Math.min(this.lastLine(),Ue.line-(Ue.ch?0:1))+1;for(var Vt=Bt;Vt<pe;++Vt)Nu(this,Vt,ne);var Sn=this.doc.sel.ranges;Ne.ch==0&&ae.length==Sn.length&&Sn[Ce].from().ch>0&&Ki(this.doc,Ce,new Pi(Ne,Sn[Ce].to()),Lt)}}}),getTokenAt:function(ne,ae){return Va(this,ne,ae)},getLineTokens:function(ne,ae){return Va(this,cr(ne),ae,!0)},getTokenTypeAt:function(ne){ne=Ma(this.doc,ne);var ae=xo(this,mi(this.doc,ne.line)),pe=0,Ce=(ae.length-1)/2,Fe=ne.ch,Ne;if(Fe==0)Ne=ae[2];else for(;;){var Ue=pe+Ce>>1;if((Ue?ae[Ue*2-1]:0)>=Fe)Ce=Ue;else if(ae[Ue*2+1]<Fe)pe=Ue+1;else{Ne=ae[Ue*2+2];break}}var Bt=Ne?Ne.indexOf("overlay "):-1;return Bt<0?Ne:Bt==0?null:Ne.slice(0,Bt-1)},getModeAt:function(ne){var ae=this.doc.mode;return ae.innerMode?x.innerMode(ae,this.getTokenAt(ne).state).mode:ae},getHelper:function(ne,ae){return this.getHelpers(ne,ae)[0]},getHelpers:function(ne,ae){var pe=[];if(!re.hasOwnProperty(ae))return pe;var Ce=re[ae],Fe=this.getModeAt(ne);if(typeof Fe[ae]=="string")Ce[Fe[ae]]&&pe.push(Ce[Fe[ae]]);else if(Fe[ae])for(var Ne=0;Ne<Fe[ae].length;Ne++){var Ue=Ce[Fe[ae][Ne]];Ue&&pe.push(Ue)}else Fe.helperType&&Ce[Fe.helperType]?pe.push(Ce[Fe.helperType]):Ce[Fe.name]&&pe.push(Ce[Fe.name]);for(var Bt=0;Bt<Ce._global.length;Bt++){var Vt=Ce._global[Bt];Vt.pred(Fe,this)&&Yt(pe,Vt.val)==-1&&pe.push(Vt.val)}return pe},getStateAfter:function(ne,ae){var pe=this.doc;return ne=Ll(pe,ne==null?pe.first+pe.size-1:ne),co(this,ne+1,ae).state},cursorCoords:function(ne,ae){var pe,Ce=this.doc.sel.primary();return ne==null?pe=Ce.head:typeof ne=="object"?pe=Ma(this.doc,ne):pe=ne?Ce.from():Ce.to(),$s(this,pe,ae||"page")},charCoords:function(ne,ae){return bu(this,Ma(this.doc,ne),ae||"page")},coordsChar:function(ne,ae){return ne=mu(this,ne,ae||"page"),Al(this,ne.left,ne.top)},lineAtHeight:function(ne,ae){return ne=mu(this,{top:ne,left:0},ae||"page").top,Rs(this.doc,ne+this.display.viewOffset)},heightAtLine:function(ne,ae,pe){var Ce=!1,Fe;if(typeof ne=="number"){var Ne=this.doc.first+this.doc.size-1;ne<this.doc.first?ne=this.doc.first:ne>Ne&&(ne=Ne,Ce=!0),Fe=mi(this.doc,ne)}else Fe=ne;return pu(this,Fe,{top:0,left:0},ae||"page",pe||Ce).top+(Ce?this.doc.height-sn(Fe):0)},defaultTextHeight:function(){return _l(this.display)},defaultCharWidth:function(){return Ys(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ne,ae,pe,Ce,Fe){var Ne=this.display;ne=$s(this,Ma(this.doc,ne));var Ue=ne.bottom,Bt=ne.left;if(ae.style.position="absolute",ae.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ae),Ne.sizer.appendChild(ae),Ce=="over")Ue=ne.top;else if(Ce=="above"||Ce=="near"){var Vt=Math.max(Ne.wrapper.clientHeight,this.doc.height),Sn=Math.max(Ne.sizer.clientWidth,Ne.lineSpace.clientWidth);(Ce=="above"||ne.bottom+ae.offsetHeight>Vt)&&ne.top>ae.offsetHeight?Ue=ne.top-ae.offsetHeight:ne.bottom+ae.offsetHeight<=Vt&&(Ue=ne.bottom),Bt+ae.offsetWidth>Sn&&(Bt=Sn-ae.offsetWidth)}ae.style.top=Ue+"px",ae.style.left=ae.style.right="",Fe=="right"?(Bt=Ne.sizer.clientWidth-ae.offsetWidth,ae.style.right="0px"):(Fe=="left"?Bt=0:Fe=="middle"&&(Bt=(Ne.sizer.clientWidth-ae.offsetWidth)/2),ae.style.left=Bt+"px"),pe&&Be(this,{left:Bt,top:Ue,right:Bt+ae.offsetWidth,bottom:Ue+ae.offsetHeight})},triggerOnKeyDown:ir($c),triggerOnKeyPress:ir(nf),triggerOnKeyUp:tf,triggerOnMouseDown:ir(Tl),execCommand:function(ne){if(Ic.hasOwnProperty(ne))return Ic[ne].call(null,this)},triggerElectric:ir(function(ne){Nd(this,ne)}),findPosH:function(ne,ae,pe,Ce){var Fe=1;ae<0&&(Fe=-1,ae=-ae);for(var Ne=Ma(this.doc,ne),Ue=0;Ue<ae&&(Ne=bd(this.doc,Ne,Fe,pe,Ce),!Ne.hitSide);++Ue);return Ne},moveH:ir(function(ne,ae){var pe=this;this.extendSelectionsBy(function(Ce){return pe.display.shift||pe.doc.extend||Ce.empty()?bd(pe.doc,Ce.head,ne,ae,pe.options.rtlMoveVisually):ne<0?Ce.from():Ce.to()},wn)}),deleteH:ir(function(ne,ae){var pe=this.doc.sel,Ce=this.doc;pe.somethingSelected()?Ce.replaceSelection("",null,"+delete"):gu(this,function(Fe){var Ne=bd(Ce,Fe.head,ne,ae,!1);return ne<0?{from:Ne,to:Fe.head}:{from:Fe.head,to:Ne}})}),findPosV:function(ne,ae,pe,Ce){var Fe=1,Ne=Ce;ae<0&&(Fe=-1,ae=-ae);for(var Ue=Ma(this.doc,ne),Bt=0;Bt<ae;++Bt){var Vt=$s(this,Ue,"div");if(Ne==null?Ne=Vt.left:Vt.left=Ne,Ue=_d(this,Vt,Fe,pe),Ue.hitSide)break}return Ue},moveV:ir(function(ne,ae){var pe=this,Ce=this.doc,Fe=[],Ne=!this.display.shift&&!Ce.extend&&Ce.sel.somethingSelected();if(Ce.extendSelectionsBy(function(Bt){if(Ne)return ne<0?Bt.from():Bt.to();var Vt=$s(pe,Bt.head,"div");Bt.goalColumn!=null&&(Vt.left=Bt.goalColumn),Fe.push(Vt.left);var Sn=_d(pe,Vt,ne,ae);return ae=="page"&&Bt==Ce.sel.primary()&&Ct(pe,bu(pe,Sn,"div").top-Vt.top),Sn},wn),Fe.length)for(var Ue=0;Ue<Ce.sel.ranges.length;Ue++)Ce.sel.ranges[Ue].goalColumn=Fe[Ue]}),findWordAt:function(ne){var ae=this.doc,pe=mi(ae,ne.line).text,Ce=ne.ch,Fe=ne.ch;if(pe){var Ne=this.getHelper(ne,"wordChars");(ne.sticky=="before"||Fe==pe.length)&&Ce?--Ce:++Fe;for(var Ue=pe.charAt(Ce),Bt=ge(Ue,Ne)?function(Vt){return ge(Vt,Ne)}:/\s/.test(Ue)?function(Vt){return/\s/.test(Vt)}:function(Vt){return!/\s/.test(Vt)&&!ge(Vt)};Ce>0&&Bt(pe.charAt(Ce-1));)--Ce;for(;Fe<pe.length&&Bt(pe.charAt(Fe));)++Fe}return new Pi(cr(ne.line,Ce),cr(ne.line,Fe))},toggleOverwrite:function(ne){ne!=null&&ne==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ut(this.display.cursorDiv,"CodeMirror-overwrite"):zt(this.display.cursorDiv,"CodeMirror-overwrite"),Ir(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==qe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ir(function(ne,ae){vt(this,ne,ae)}),getScrollInfo:function(){var ne=this.display.scroller;return{left:ne.scrollLeft,top:ne.scrollTop,height:ne.scrollHeight-Uo(this)-this.display.barHeight,width:ne.scrollWidth-Uo(this)-this.display.barWidth,clientHeight:ll(this),clientWidth:wo(this)}},scrollIntoView:ir(function(ne,ae){ne==null?(ne={from:this.doc.sel.primary().head,to:null},ae==null&&(ae=this.options.cursorScrollMargin)):typeof ne=="number"?ne={from:cr(ne,0),to:null}:ne.from==null&&(ne={from:ne,to:null}),ne.to||(ne.to=ne.from),ne.margin=ae||0,ne.from.line!=null?Mt(this,ne):rt(this,ne.from,ne.to,ne.margin)}),setSize:ir(function(ne,ae){var pe=this,Ce=function(Ne){return typeof Ne=="number"||/^\d+$/.test(String(Ne))?Ne+"px":Ne};ne!=null&&(this.display.wrapper.style.width=Ce(ne)),ae!=null&&(this.display.wrapper.style.height=Ce(ae)),this.options.lineWrapping&&Fu(this);var Fe=this.display.viewFrom;this.doc.iter(Fe,this.display.viewTo,function(Ne){if(Ne.widgets){for(var Ue=0;Ue<Ne.widgets.length;Ue++)if(Ne.widgets[Ue].noHScroll){Yo(pe,Fe,"widget");break}}++Fe}),this.curOp.forceUpdate=!0,Ir(this,"refresh",this)}),operation:function(ne){return Qn(this,ne)},startOperation:function(){return Un(this)},endOperation:function(){return qn(this)},refresh:ir(function(){var ne=this.display.cachedTextHeight;Ba(this),this.curOp.forceUpdate=!0,jl(this),vt(this,this.doc.scrollLeft,this.doc.scrollTop),Ia(this.display),(ne==null||Math.abs(ne-_l(this.display))>.5||this.options.lineWrapping)&&su(this),Ir(this,"refresh",this)}),swapDoc:ir(function(ne){var ae=this.doc;return ae.cm=null,this.state.selectingText&&this.state.selectingText(),Gr(this,ne),jl(this),this.display.input.reset(),vt(this,ne.scrollLeft,ne.scrollTop),this.curOp.forceScroll=!0,Lr(this,"swapDoc",this,ae),ae}),phrase:function(ne){var ae=this.options.phrases;return ae&&Object.prototype.hasOwnProperty.call(ae,ne)?ae[ne]:ne},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}},Yn(x),x.registerHelper=function(ne,ae,pe){re.hasOwnProperty(ne)||(re[ne]=x[ne]={_global:[]}),re[ne][ae]=pe},x.registerGlobalHelper=function(ne,ae,pe,Ce){x.registerHelper(ne,ae,Ce),re[ne]._global.push({pred:pe,val:Ce})}}function bd(x,z,re,ne,ae){var pe=z,Ce=re,Fe=mi(x,z.line),Ne=ae&&x.direction=="rtl"?-re:re;function Ue(){var Di=z.line+Ne;return Di<x.first||Di>=x.first+x.size?!1:(z=new cr(Di,z.ch,z.sticky),Fe=mi(x,Di))}function Bt(Di){var ci;if(ne=="codepoint"){var Li=Fe.text.charCodeAt(z.ch+(ne>0?0:-1));isNaN(Li)?ci=null:ci=new cr(z.line,Math.max(0,Math.min(Fe.text.length,z.ch+re*(Li>=55296&&Li<56320?2:1))),-re)}else ae?ci=Gu(x.cm,Fe,z,re):ci=Zu(Fe,z,re);if(ci==null)if(!Di&&Ue())z=ku(ae,x.cm,Fe,z.line,Ne);else return!1;else z=ci;return!0}if(ne=="char"||ne=="codepoint")Bt();else if(ne=="column")Bt(!0);else if(ne=="word"||ne=="group")for(var Vt=null,Sn=ne=="group",bn=x.cm&&x.cm.getHelper(z,"wordChars"),nr=!0;!(re<0&&!Bt(!nr));nr=!1){var Cr=Fe.text.charAt(z.ch)||`
|
|
|
`,Xr=ge(Cr,bn)?"w":Sn&&Cr==`
|
|
|
`?"n":!Sn||/\s/.test(Cr)?null:"p";if(Sn&&!nr&&!Xr&&(Xr="s"),Vt&&Vt!=Xr){re<0&&(re=1,Bt(),z.sticky="after");break}if(Xr&&(Vt=Xr),re>0&&!Bt(!nr))break}var yi=mo(x,z,pe,Ce,!0);return br(pe,yi)&&(yi.hitSide=!0),yi}function _d(x,z,re,ne){var ae=x.doc,pe=z.left,Ce;if(ne=="page"){var Fe=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ne=Math.max(Fe-.5*_l(x.display),3);Ce=(re>0?z.bottom:z.top)+re*Ne}else ne=="line"&&(Ce=re>0?z.bottom+3:z.top-3);for(var Ue;Ue=Al(x,pe,Ce),!!Ue.outside;){if(re<0?Ce<=0:Ce>=ae.height){Ue.hitSide=!0;break}Ce+=re*5}return Ue}var Jo=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ke,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Jo.prototype.init=function(x){var z=this,re=this,ne=re.cm,ae=re.div=x.lineDiv;uf(ae,ne.options.spellcheck,ne.options.autocorrect,ne.options.autocapitalize);function pe(Fe){for(var Ne=Fe.target;Ne;Ne=Ne.parentNode){if(Ne==ae)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ne.className))break}return!1}jn(ae,"paste",function(Fe){!pe(Fe)||Or(ne,Fe)||Td(Fe,ne)||Re<=11&&setTimeout(gr(ne,function(){return z.updateFromDOM()}),20)}),jn(ae,"compositionstart",function(Fe){z.composing={data:Fe.data,done:!1}}),jn(ae,"compositionupdate",function(Fe){z.composing||(z.composing={data:Fe.data,done:!1})}),jn(ae,"compositionend",function(Fe){z.composing&&(Fe.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),jn(ae,"touchstart",function(){return re.forceCompositionEnd()}),jn(ae,"input",function(){z.composing||z.readFromDOMSoon()});function Ce(Fe){if(!(!pe(Fe)||Or(ne,Fe))){if(ne.somethingSelected())Ac({lineWise:!1,text:ne.getSelections()}),Fe.type=="cut"&&ne.replaceSelection("",null,"cut");else if(ne.options.lineWiseCopyCut){var Ne=Rc(ne);Ac({lineWise:!0,text:Ne.text}),Fe.type=="cut"&&ne.operation(function(){ne.setSelections(Ne.ranges,0,Lt),ne.replaceSelection("",null,"cut")})}else return;if(Fe.clipboardData){Fe.clipboardData.clearData();var Ue=Mu.text.join(`
|
|
|
`);if(Fe.clipboardData.setData("Text",Ue),Fe.clipboardData.getData("Text")==Ue){Fe.preventDefault();return}}var Bt=Od(),Vt=Bt.firstChild;ne.display.lineSpace.insertBefore(Bt,ne.display.lineSpace.firstChild),Vt.value=Mu.text.join(`
|
|
|
`);var Sn=document.activeElement;Ot(Vt),setTimeout(function(){ne.display.lineSpace.removeChild(Bt),Sn.focus(),Sn==ae&&re.showPrimarySelection()},50)}}jn(ae,"copy",Ce),jn(ae,"cut",Ce)},Jo.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},Jo.prototype.prepareSelection=function(){var x=hn(this.cm,!1);return x.focus=document.activeElement==this.div,x},Jo.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},Jo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Jo.prototype.showPrimarySelection=function(){var x=this.getSelection(),z=this.cm,re=z.doc.sel.primary(),ne=re.from(),ae=re.to();if(z.display.viewTo==z.display.viewFrom||ne.line>=z.display.viewTo||ae.line<z.display.viewFrom){x.removeAllRanges();return}var pe=xd(z,x.anchorNode,x.anchorOffset),Ce=xd(z,x.focusNode,x.focusOffset);if(!(pe&&!pe.bad&&Ce&&!Ce.bad&&Xi(ho(pe,Ce),ne)==0&&Xi(fs(pe,Ce),ae)==0)){var Fe=z.display.view,Ne=ne.line>=z.display.viewFrom&&rd(z,ne)||{node:Fe[0].measure.map[2],offset:0},Ue=ae.line<z.display.viewTo&&rd(z,ae);if(!Ue){var Bt=Fe[Fe.length-1].measure,Vt=Bt.maps?Bt.maps[Bt.maps.length-1]:Bt.map;Ue={node:Vt[Vt.length-1],offset:Vt[Vt.length-2]-Vt[Vt.length-3]}}if(!Ne||!Ue){x.removeAllRanges();return}var Sn=x.rangeCount&&x.getRangeAt(0),bn;try{bn=Ye(Ne.node,Ne.offset,Ue.offset,Ue.node)}catch(nr){}bn&&(!te&&z.state.focused?(x.collapse(Ne.node,Ne.offset),bn.collapsed||(x.removeAllRanges(),x.addRange(bn))):(x.removeAllRanges(),x.addRange(bn)),Sn&&x.anchorNode==null?x.addRange(Sn):te&&this.startGracePeriod()),this.rememberSelection()}},Jo.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)},Jo.prototype.showMultipleSelections=function(x){Qt(this.cm.display.cursorDiv,x.cursors),Qt(this.cm.display.selectionDiv,x.selection)},Jo.prototype.rememberSelection=function(){var x=this.getSelection();this.lastAnchorNode=x.anchorNode,this.lastAnchorOffset=x.anchorOffset,this.lastFocusNode=x.focusNode,this.lastFocusOffset=x.focusOffset},Jo.prototype.selectionInEditor=function(){var x=this.getSelection();if(!x.rangeCount)return!1;var z=x.getRangeAt(0).commonAncestorContainer;return pt(this.div,z)},Jo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Jo.prototype.blur=function(){this.div.blur()},Jo.prototype.getField=function(){return this.div},Jo.prototype.supportsTouch=function(){return!0},Jo.prototype.receivedFocus=function(){var x=this;this.selectionInEditor()?this.pollSelection():Qn(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)},Jo.prototype.selectionChanged=function(){var x=this.getSelection();return x.anchorNode!=this.lastAnchorNode||x.anchorOffset!=this.lastAnchorOffset||x.focusNode!=this.lastFocusNode||x.focusOffset!=this.lastFocusOffset},Jo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var x=this.getSelection(),z=this.cm;if($e&&we&&this.cm.display.gutterSpecs.length&&Hf(x.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var re=xd(z,x.anchorNode,x.anchorOffset),ne=xd(z,x.focusNode,x.focusOffset);re&&ne&&Qn(z,function(){Oo(z.doc,Sa(re,ne),Lt),(re.bad||ne.bad)&&(z.curOp.selectionChanged=!0)})}}},Jo.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var x=this.cm,z=x.display,re=x.doc.sel.primary(),ne=re.from(),ae=re.to();if(ne.ch==0&&ne.line>x.firstLine()&&(ne=cr(ne.line-1,mi(x.doc,ne.line-1).length)),ae.ch==mi(x.doc,ae.line).text.length&&ae.line<x.lastLine()&&(ae=cr(ae.line+1,0)),ne.line<z.viewFrom||ae.line>z.viewTo-1)return!1;var pe,Ce,Fe;ne.line==z.viewFrom||(pe=ko(x,ne.line))==0?(Ce=Na(z.view[0].line),Fe=z.view[0].node):(Ce=Na(z.view[pe].line),Fe=z.view[pe-1].node.nextSibling);var Ne=ko(x,ae.line),Ue,Bt;if(Ne==z.view.length-1?(Ue=z.viewTo-1,Bt=z.lineDiv.lastChild):(Ue=Na(z.view[Ne+1].line)-1,Bt=z.view[Ne+1].node.previousSibling),!Fe)return!1;for(var Vt=x.doc.splitLines(cf(x,Fe,Bt,Ce,Ue)),Sn=Fo(x.doc,cr(Ce,0),cr(Ue,mi(x.doc,Ue).text.length));Vt.length>1&&Sn.length>1;)if(xn(Vt)==xn(Sn))Vt.pop(),Sn.pop(),Ue--;else if(Vt[0]==Sn[0])Vt.shift(),Sn.shift(),Ce++;else break;for(var bn=0,nr=0,Cr=Vt[0],Xr=Sn[0],yi=Math.min(Cr.length,Xr.length);bn<yi&&Cr.charCodeAt(bn)==Xr.charCodeAt(bn);)++bn;for(var Di=xn(Vt),ci=xn(Sn),Li=Math.min(Di.length-(Vt.length==1?bn:0),ci.length-(Sn.length==1?bn:0));nr<Li&&Di.charCodeAt(Di.length-nr-1)==ci.charCodeAt(ci.length-nr-1);)++nr;if(Vt.length==1&&Sn.length==1&&Ce==ne.line)for(;bn&&bn>ne.ch&&Di.charCodeAt(Di.length-nr-1)==ci.charCodeAt(ci.length-nr-1);)bn--,nr++;Vt[Vt.length-1]=Di.slice(0,Di.length-nr).replace(/^\u200b+/,""),Vt[0]=Vt[0].slice(bn).replace(/\u200b+$/,"");var ya=cr(Ce,bn),Aa=cr(Ue,Sn.length?xn(Sn).length-nr:0);if(Vt.length>1||Vt[0]||Xi(ya,Aa))return Qo(x.doc,Vt,ya,Aa,"+input"),!0},Jo.prototype.ensurePolled=function(){this.forceCompositionEnd()},Jo.prototype.reset=function(){this.forceCompositionEnd()},Jo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Jo.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))},Jo.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&Qn(this.cm,function(){return Ba(x.cm)})},Jo.prototype.setUneditable=function(x){x.contentEditable="false"},Jo.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||gr(this.cm,nd)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},Jo.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},Jo.prototype.onContextMenu=function(){},Jo.prototype.resetPosition=function(){},Jo.prototype.needsContentAttribute=!0;function rd(x,z){var re=Gs(x,z.line);if(!re||re.hidden)return null;var ne=mi(x.doc,z.line),ae=ia(re,ne,z.line),pe=Dr(ne,x.doc.direction),Ce="left";if(pe){var Fe=nn(pe,z.ch);Ce=Fe%2?"right":"left"}var Ne=Fs(ae.map,z.ch,Ce);return Ne.offset=Ne.collapse=="right"?Ne.end:Ne.start,Ne}function Hf(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 cf(x,z,re,ne,ae){var pe="",Ce=!1,Fe=x.doc.lineSeparator(),Ne=!1;function Ue(bn){return function(nr){return nr.id==bn}}function Bt(){Ce&&(pe+=Fe,Ne&&(pe+=Fe),Ce=Ne=!1)}function Vt(bn){bn&&(Bt(),pe+=bn)}function Sn(bn){if(bn.nodeType==1){var nr=bn.getAttribute("cm-text");if(nr){Vt(nr);return}var Cr=bn.getAttribute("cm-marker"),Xr;if(Cr){var yi=x.findMarks(cr(ne,0),cr(ae+1,0),Ue(+Cr));yi.length&&(Xr=yi[0].find(0))&&Vt(Fo(x.doc,Xr.from,Xr.to).join(Fe));return}if(bn.getAttribute("contenteditable")=="false")return;var Di=/^(pre|div|p|li|table|br)$/i.test(bn.nodeName);if(!/^br$/i.test(bn.nodeName)&&bn.textContent.length==0)return;Di&&Bt();for(var ci=0;ci<bn.childNodes.length;ci++)Sn(bn.childNodes[ci]);/^(pre|p)$/i.test(bn.nodeName)&&(Ne=!0),Di&&(Ce=!0)}else bn.nodeType==3&&Vt(bn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Sn(z),z!=re;)z=z.nextSibling,Ne=!1;return pe}function xd(x,z,re){var ne;if(z==x.display.lineDiv){if(ne=x.display.lineDiv.childNodes[re],!ne)return vc(x.clipPos(cr(x.display.viewTo-1)),!0);z=null,re=0}else for(ne=z;;ne=ne.parentNode){if(!ne||ne==x.display.lineDiv)return null;if(ne.parentNode&&ne.parentNode==x.display.lineDiv)break}for(var ae=0;ae<x.display.view.length;ae++){var pe=x.display.view[ae];if(pe.node==ne)return zf(pe,z,re)}}function zf(x,z,re){var ne=x.text.firstChild,ae=!1;if(!z||!pt(ne,z))return vc(cr(Na(x.line),0),!0);if(z==ne&&(ae=!0,z=ne.childNodes[re],re=0,!z)){var pe=x.rest?xn(x.rest):x.line;return vc(cr(Na(pe),pe.text.length),ae)}var Ce=z.nodeType==3?z:null,Fe=z;for(!Ce&&z.childNodes.length==1&&z.firstChild.nodeType==3&&(Ce=z.firstChild,re&&(re=Ce.nodeValue.length));Fe.parentNode!=ne;)Fe=Fe.parentNode;var Ne=x.measure,Ue=Ne.maps;function Bt(Xr,yi,Di){for(var ci=-1;ci<(Ue?Ue.length:0);ci++)for(var Li=ci<0?Ne.map:Ue[ci],ya=0;ya<Li.length;ya+=3){var Aa=Li[ya+2];if(Aa==Xr||Aa==yi){var uo=Na(ci<0?x.line:x.rest[ci]),ss=Li[ya]+Di;return(Di<0||Aa!=Xr)&&(ss=Li[ya+(Di?1:0)]),cr(uo,ss)}}}var Vt=Bt(Ce,Fe,re);if(Vt)return vc(Vt,ae);for(var Sn=Fe.nextSibling,bn=Ce?Ce.nodeValue.length-re:0;Sn;Sn=Sn.nextSibling){if(Vt=Bt(Sn,Sn.firstChild,0),Vt)return vc(cr(Vt.line,Vt.ch-bn),ae);bn+=Sn.textContent.length}for(var nr=Fe.previousSibling,Cr=re;nr;nr=nr.previousSibling){if(Vt=Bt(nr,nr.firstChild,-1),Vt)return vc(cr(Vt.line,Vt.ch+Cr),ae);Cr+=nr.textContent.length}}var ds=function(x){this.cm=x,this.prevInput="",this.pollingFast=!1,this.polling=new Ke,this.hasSelection=!1,this.composing=null};ds.prototype.init=function(x){var z=this,re=this,ne=this.cm;this.createField(x);var ae=this.textarea;x.wrapper.insertBefore(this.wrapper,x.wrapper.firstChild),bt&&(ae.style.width="0px"),jn(ae,"input",function(){Ve&&Re>=9&&z.hasSelection&&(z.hasSelection=null),re.poll()}),jn(ae,"paste",function(Ce){Or(ne,Ce)||Td(Ce,ne)||(ne.state.pasteIncoming=+new Date,re.fastPoll())});function pe(Ce){if(!Or(ne,Ce)){if(ne.somethingSelected())Ac({lineWise:!1,text:ne.getSelections()});else if(ne.options.lineWiseCopyCut){var Fe=Rc(ne);Ac({lineWise:!0,text:Fe.text}),Ce.type=="cut"?ne.setSelections(Fe.ranges,null,Lt):(re.prevInput="",ae.value=Fe.text.join(`
|
|
|
`),Ot(ae))}else return;Ce.type=="cut"&&(ne.state.cutIncoming=+new Date)}}jn(ae,"cut",pe),jn(ae,"copy",pe),jn(x.scroller,"paste",function(Ce){if(!(Io(x,Ce)||Or(ne,Ce))){if(!ae.dispatchEvent){ne.state.pasteIncoming=+new Date,re.focus();return}var Fe=new Event("paste");Fe.clipboardData=Ce.clipboardData,ae.dispatchEvent(Fe)}}),jn(x.lineSpace,"selectstart",function(Ce){Io(x,Ce)||oi(Ce)}),jn(ae,"compositionstart",function(){var Ce=ne.getCursor("from");re.composing&&re.composing.range.clear(),re.composing={start:Ce,range:ne.markText(Ce,ne.getCursor("to"),{className:"CodeMirror-composing"})}}),jn(ae,"compositionend",function(){re.composing&&(re.poll(),re.composing.range.clear(),re.composing=null)})},ds.prototype.createField=function(x){this.wrapper=Od(),this.textarea=this.wrapper.firstChild},ds.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},ds.prototype.prepareSelection=function(){var x=this.cm,z=x.display,re=x.doc,ne=hn(x);if(x.options.moveInputWithCursor){var ae=$s(x,re.sel.primary().head,"div"),pe=z.wrapper.getBoundingClientRect(),Ce=z.lineDiv.getBoundingClientRect();ne.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ae.top+Ce.top-pe.top)),ne.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ae.left+Ce.left-pe.left))}return ne},ds.prototype.showSelection=function(x){var z=this.cm,re=z.display;Qt(re.cursorDiv,x.cursors),Qt(re.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},ds.prototype.reset=function(x){if(!(this.contextMenuPending||this.composing)){var z=this.cm;if(z.somethingSelected()){this.prevInput="";var re=z.getSelection();this.textarea.value=re,z.state.focused&&Ot(this.textarea),Ve&&Re>=9&&(this.hasSelection=re)}else x||(this.prevInput=this.textarea.value="",Ve&&Re>=9&&(this.hasSelection=null))}},ds.prototype.getField=function(){return this.textarea},ds.prototype.supportsTouch=function(){return!1},ds.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!dt||qe()!=this.textarea))try{this.textarea.focus()}catch(x){}},ds.prototype.blur=function(){this.textarea.blur()},ds.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ds.prototype.receivedFocus=function(){this.slowPoll()},ds.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},ds.prototype.fastPoll=function(){var x=!1,z=this;z.pollingFast=!0;function re(){var ne=z.poll();!ne&&!x?(x=!0,z.polling.set(60,re)):(z.pollingFast=!1,z.slowPoll())}z.polling.set(20,re)},ds.prototype.poll=function(){var x=this,z=this.cm,re=this.textarea,ne=this.prevInput;if(this.contextMenuPending||!z.state.focused||di(re)&&!ne&&!this.composing||z.isReadOnly()||z.options.disableInput||z.state.keySeq)return!1;var ae=re.value;if(ae==ne&&!z.somethingSelected())return!1;if(Ve&&Re>=9&&this.hasSelection===ae||Qe&&/[\uf700-\uf7ff]/.test(ae))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var pe=ae.charCodeAt(0);if(pe==8203&&!ne&&(ne="\u200B"),pe==8666)return this.reset(),this.cm.execCommand("undo")}for(var Ce=0,Fe=Math.min(ne.length,ae.length);Ce<Fe&&ne.charCodeAt(Ce)==ae.charCodeAt(Ce);)++Ce;return Qn(z,function(){nd(z,ae.slice(Ce),ne.length-Ce,null,x.composing?"*compose":null),ae.length>1e3||ae.indexOf(`
|
|
|
`)>-1?re.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},ds.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ds.prototype.onKeyPress=function(){Ve&&Re>=9&&(this.hasSelection=null),this.fastPoll()},ds.prototype.onContextMenu=function(x){var z=this,re=z.cm,ne=re.display,ae=z.textarea;z.contextMenuPending&&z.contextMenuPending();var pe=Kl(re,x),Ce=ne.scroller.scrollTop;if(!pe||at)return;var Fe=re.options.resetSelectionOnContextMenu;Fe&&re.doc.sel.contains(pe)==-1&&gr(re,Oo)(re.doc,Sa(pe),Lt);var Ne=ae.style.cssText,Ue=z.wrapper.style.cssText,Bt=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",ae.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(x.clientY-Bt.top-5)+"px; left: "+(x.clientX-Bt.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Ve?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Vt;it&&(Vt=window.scrollY),ne.input.focus(),it&&window.scrollTo(null,Vt),ne.input.reset(),re.somethingSelected()||(ae.value=z.prevInput=" "),z.contextMenuPending=bn,ne.selForContextMenu=re.doc.sel,clearTimeout(ne.detectingSelectAll);function Sn(){if(ae.selectionStart!=null){var Cr=re.somethingSelected(),Xr="\u200B"+(Cr?ae.value:"");ae.value="\u21DA",ae.value=Xr,z.prevInput=Cr?"":"\u200B",ae.selectionStart=1,ae.selectionEnd=Xr.length,ne.selForContextMenu=re.doc.sel}}function bn(){if(z.contextMenuPending==bn&&(z.contextMenuPending=!1,z.wrapper.style.cssText=Ue,ae.style.cssText=Ne,Ve&&Re<9&&ne.scrollbars.setScrollTop(ne.scroller.scrollTop=Ce),ae.selectionStart!=null)){(!Ve||Ve&&Re<9)&&Sn();var Cr=0,Xr=function(){ne.selForContextMenu==re.doc.sel&&ae.selectionStart==0&&ae.selectionEnd>0&&z.prevInput=="\u200B"?gr(re,as)(re):Cr++<10?ne.detectingSelectAll=setTimeout(Xr,500):(ne.selForContextMenu=null,ne.input.reset())};ne.detectingSelectAll=setTimeout(Xr,200)}}if(Ve&&Re>=9&&Sn(),ht){Ni(x);var nr=function(){$r(window,"mouseup",nr),setTimeout(bn,20)};jn(window,"mouseup",nr)}else setTimeout(bn,50)},ds.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},ds.prototype.setUneditable=function(){},ds.prototype.needsContentAttribute=!1;function kc(x,z){if(z=z?un(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 re=qe();z.autofocus=re==x||x.getAttribute("autofocus")!=null&&re==document.body}function ne(){x.value=Fe.getValue()}var ae;if(x.form&&(jn(x.form,"submit",ne),!z.leaveSubmitMethodAlone)){var pe=x.form;ae=pe.submit;try{var Ce=pe.submit=function(){ne(),pe.submit=ae,pe.submit(),pe.submit=Ce}}catch(Ne){}}z.finishInit=function(Ne){Ne.save=ne,Ne.getTextArea=function(){return x},Ne.toTextArea=function(){Ne.toTextArea=isNaN,ne(),x.parentNode.removeChild(Ne.getWrapperElement()),x.style.display="",x.form&&($r(x.form,"submit",ne),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ae))}},x.style.display="none";var Fe=Ha(function(Ne){return x.parentNode.insertBefore(Ne,x.nextSibling)},z);return Fe}function gc(x){x.off=$r,x.on=jn,x.wheelEventPixels=za,x.Doc=es,x.splitLines=jr,x.countColumn=Ge,x.findColumn=_n,x.isWordChar=be,x.Pass=cn,x.signal=Ir,x.Line=Kn,x.changeEnd=ma,x.scrollbarModel=Wn,x.Pos=cr,x.cmpPos=Xi,x.modes=Ko,x.mimeModes=Zo,x.resolveMode=ta,x.getMode=Wa,x.modeExtensions=yo,x.extendMode=Eo,x.copyState=bo,x.startState=fo,x.innerMode=rs,x.commands=Ic,x.keyMap=cs,x.keyName=pc,x.isModifierKey=hc,x.lookupKey=ju,x.normalizeKeyMap=Dd,x.StringStream=ka,x.SharedTextMarker=gi,x.TextMarker=Su,x.LineWidget=Wu,x.e_preventDefault=oi,x.e_stopPropagation=Si,x.e_stop=Ni,x.addClass=ut,x.contains=pt,x.rmClass=zt,x.keyNames=Tu}Rf(Ha),Rd(Ha);var Ju="iter insert remove copy getEditor constructor".split(" ");for(var uu in es.prototype)es.prototype.hasOwnProperty(uu)&&Yt(Ju,uu)<0&&(Ha.prototype[uu]=function(x){return function(){return x.apply(this.doc,arguments)}}(es.prototype[uu]));return Yn(es),Ha.inputStyles={textarea:ds,contenteditable:Jo},Ha.defineMode=function(x){!Ha.defaults.mode&&x!="null"&&(Ha.defaults.mode=x),zi.apply(this,arguments)},Ha.defineMIME=Pr,Ha.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),Ha.defineMIME("text/plain","null"),Ha.defineExtension=function(x,z){Ha.prototype[x]=z},Ha.defineDocExtension=function(x,z){es.prototype[x]=z},Ha.fromTextArea=kc,gc(Ha),Ha.version="5.58.2",Ha})},49047:function(dn,vn,he){(function(te){te(he(4631),he(29589),he(52539))})(function(te){"use strict";te.defineMode("markdown",function(Ee,lt){var ct=te.getMode(Ee,"text/html"),Ve=ct.name=="null";function Re(Ge){if(te.findModeByName){var Ke=te.findModeByName(Ge);Ke&&(Ge=Ke.mime||Ke.mimes[0])}var Yt=te.getMode(Ee,Ge);return Yt.name=="null"?null:Yt}lt.highlightFormatting===void 0&&(lt.highlightFormatting=!1),lt.maxBlockquoteDepth===void 0&&(lt.maxBlockquoteDepth=0),lt.taskLists===void 0&&(lt.taskLists=!1),lt.strikethrough===void 0&&(lt.strikethrough=!1),lt.emoji===void 0&&(lt.emoji=!1),lt.fencedCodeBlockHighlighting===void 0&&(lt.fencedCodeBlockHighlighting=!0),lt.fencedCodeBlockDefaultMode===void 0&&(lt.fencedCodeBlockDefaultMode="text/plain"),lt.xml===void 0&&(lt.xml=!0),lt.tokenTypeOverrides===void 0&&(lt.tokenTypeOverrides={});var it={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 ke in it)it.hasOwnProperty(ke)&<.tokenTypeOverrides[ke]&&(it[ke]=lt.tokenTypeOverrides[ke]);var we=/^([*\-_])(?:\s*\1){2,}\s*$/,at=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,tt=/^\[(x| )\](?=\s)/i,ve=lt.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,kt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,bt=/^[^#!\[\]*_\\<>` "'(~:]+/,$e=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,dt=/^\s*\[[^\]]+?\]:.*$/,Qe=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,et=" ";function ft(Ge,Ke,Yt){return Ke.f=Ke.inline=Yt,Yt(Ge,Ke)}function Je(Ge,Ke,Yt){return Ke.f=Ke.block=Yt,Yt(Ge,Ke)}function ot(Ge){return!Ge||!/\S/.test(Ge.string)}function ht(Ge){if(Ge.linkTitle=!1,Ge.linkHref=!1,Ge.linkText=!1,Ge.em=!1,Ge.strong=!1,Ge.strikethrough=!1,Ge.quote=0,Ge.indentedCode=!1,Ge.f==zt){var Ke=Ve;if(!Ke){var Yt=te.innerMode(ct,Ge.htmlState);Ke=Yt.mode.name=="xml"&&Yt.state.tagStart===null&&!Yt.state.context&&Yt.state.tokenize.isInText}Ke&&(Ge.f=wt,Ge.block=yt,Ge.htmlState=null)}return Ge.trailingSpace=0,Ge.trailingSpaceNewLine=!1,Ge.prevLine=Ge.thisLine,Ge.thisLine={stream:null},null}function yt(Ge,Ke){var Yt=Ge.column()===Ke.indentation,Jt=ot(Ke.prevLine.stream),cn=Ke.indentedCode,Lt=Ke.prevLine.hr,Dt=Ke.list!==!1,wn=(Ke.listStack[Ke.listStack.length-1]||0)+3;Ke.indentedCode=!1;var _n=Ke.indentation;if(Ke.indentationDiff===null&&(Ke.indentationDiff=Ke.indentation,Dt)){for(Ke.list=null;_n<Ke.listStack[Ke.listStack.length-1];)Ke.listStack.pop(),Ke.listStack.length?Ke.indentation=Ke.listStack[Ke.listStack.length-1]:Ke.list=!1;Ke.list!==!1&&(Ke.indentationDiff=_n-Ke.listStack[Ke.listStack.length-1])}var on=!Jt&&!Lt&&!Ke.prevLine.header&&(!Dt||!cn)&&!Ke.prevLine.fencedCodeEnd,kn=(Ke.list===!1||Lt||Jt)&&Ke.indentation<=wn&&Ge.match(we),xn=null;if(Ke.indentationDiff>=4&&(cn||Ke.prevLine.fencedCodeEnd||Ke.prevLine.header||Jt))return Ge.skipToEnd(),Ke.indentedCode=!0,it.code;if(Ge.eatSpace())return null;if(Yt&&Ke.indentation<=wn&&(xn=Ge.match(ve))&&xn[1].length<=6)return Ke.quote=0,Ke.header=xn[1].length,Ke.thisLine.header=!0,lt.highlightFormatting&&(Ke.formatting="header"),Ke.f=Ke.inline,Qt(Ke);if(Ke.indentation<=wn&&Ge.eat(">"))return Ke.quote=Yt?1:Ke.quote+1,lt.highlightFormatting&&(Ke.formatting="quote"),Ge.eatSpace(),Qt(Ke);if(!kn&&!Ke.setext&&Yt&&Ke.indentation<=wn&&(xn=Ge.match(at))){var Vn=xn[1]?"ol":"ul";return Ke.indentation=_n+Ge.current().length,Ke.list=!0,Ke.quote=0,Ke.listStack.push(Ke.indentation),Ke.em=!1,Ke.strong=!1,Ke.code=!1,Ke.strikethrough=!1,lt.taskLists&&Ge.match(tt,!1)&&(Ke.taskList=!0),Ke.f=Ke.inline,lt.highlightFormatting&&(Ke.formatting=["list","list-"+Vn]),Qt(Ke)}else{if(Yt&&Ke.indentation<=wn&&(xn=Ge.match($e,!0)))return Ke.quote=0,Ke.fencedEndRE=new RegExp(xn[1]+"+ *$"),Ke.localMode=lt.fencedCodeBlockHighlighting&&Re(xn[2]||lt.fencedCodeBlockDefaultMode),Ke.localMode&&(Ke.localState=te.startState(Ke.localMode)),Ke.f=Ke.block=Xt,lt.highlightFormatting&&(Ke.formatting="code-block"),Ke.code=-1,Qt(Ke);if(Ke.setext||(!on||!Dt)&&!Ke.quote&&Ke.list===!1&&!Ke.code&&!kn&&!dt.test(Ge.string)&&(xn=Ge.lookAhead(1))&&(xn=xn.match(kt)))return Ke.setext?(Ke.header=Ke.setext,Ke.setext=0,Ge.skipToEnd(),lt.highlightFormatting&&(Ke.formatting="header")):(Ke.header=xn[0].charAt(0)=="="?1:2,Ke.setext=Ke.header),Ke.thisLine.header=!0,Ke.f=Ke.inline,Qt(Ke);if(kn)return Ge.skipToEnd(),Ke.hr=!0,Ke.thisLine.hr=!0,it.hr;if(Ge.peek()==="[")return ft(Ge,Ke,Oe)}return ft(Ge,Ke,Ke.inline)}function zt(Ge,Ke){var Yt=ct.token(Ge,Ke.htmlState);if(!Ve){var Jt=te.innerMode(ct,Ke.htmlState);(Jt.mode.name=="xml"&&Jt.state.tagStart===null&&!Jt.state.context&&Jt.state.tokenize.isInText||Ke.md_inside&&Ge.current().indexOf(">")>-1)&&(Ke.f=wt,Ke.block=yt,Ke.htmlState=null)}return Yt}function Xt(Ge,Ke){var Yt=Ke.listStack[Ke.listStack.length-1]||0,Jt=Ke.indentation<Yt,cn=Yt+3;if(Ke.fencedEndRE&&Ke.indentation<=cn&&(Jt||Ge.match(Ke.fencedEndRE))){lt.highlightFormatting&&(Ke.formatting="code-block");var Lt;return Jt||(Lt=Qt(Ke)),Ke.localMode=Ke.localState=null,Ke.block=yt,Ke.f=wt,Ke.fencedEndRE=null,Ke.code=0,Ke.thisLine.fencedCodeEnd=!0,Jt?Je(Ge,Ke,Ke.block):Lt}else return Ke.localMode?Ke.localMode.token(Ge,Ke.localState):(Ge.skipToEnd(),it.code)}function Qt(Ge){var Ke=[];if(Ge.formatting){Ke.push(it.formatting),typeof Ge.formatting=="string"&&(Ge.formatting=[Ge.formatting]);for(var Yt=0;Yt<Ge.formatting.length;Yt++)Ke.push(it.formatting+"-"+Ge.formatting[Yt]),Ge.formatting[Yt]==="header"&&Ke.push(it.formatting+"-"+Ge.formatting[Yt]+"-"+Ge.header),Ge.formatting[Yt]==="quote"&&(!lt.maxBlockquoteDepth||lt.maxBlockquoteDepth>=Ge.quote?Ke.push(it.formatting+"-"+Ge.formatting[Yt]+"-"+Ge.quote):Ke.push("error"))}if(Ge.taskOpen)return Ke.push("meta"),Ke.length?Ke.join(" "):null;if(Ge.taskClosed)return Ke.push("property"),Ke.length?Ke.join(" "):null;if(Ge.linkHref?Ke.push(it.linkHref,"url"):(Ge.strong&&Ke.push(it.strong),Ge.em&&Ke.push(it.em),Ge.strikethrough&&Ke.push(it.strikethrough),Ge.emoji&&Ke.push(it.emoji),Ge.linkText&&Ke.push(it.linkText),Ge.code&&Ke.push(it.code),Ge.image&&Ke.push(it.image),Ge.imageAltText&&Ke.push(it.imageAltText,"link"),Ge.imageMarker&&Ke.push(it.imageMarker)),Ge.header&&Ke.push(it.header,it.header+"-"+Ge.header),Ge.quote&&(Ke.push(it.quote),!lt.maxBlockquoteDepth||lt.maxBlockquoteDepth>=Ge.quote?Ke.push(it.quote+"-"+Ge.quote):Ke.push(it.quote+"-"+lt.maxBlockquoteDepth)),Ge.list!==!1){var Jt=(Ge.listStack.length-1)%3;Jt?Jt===1?Ke.push(it.list2):Ke.push(it.list3):Ke.push(it.list1)}return Ge.trailingSpaceNewLine?Ke.push("trailing-space-new-line"):Ge.trailingSpace&&Ke.push("trailing-space-"+(Ge.trailingSpace%2?"a":"b")),Ke.length?Ke.join(" "):null}function Ht(Ge,Ke){if(Ge.match(bt,!0))return Qt(Ke)}function wt(Ge,Ke){var Yt=Ke.text(Ge,Ke);if(typeof Yt!="undefined")return Yt;if(Ke.list)return Ke.list=null,Qt(Ke);if(Ke.taskList){var Jt=Ge.match(tt,!0)[1]===" ";return Jt?Ke.taskOpen=!0:Ke.taskClosed=!0,lt.highlightFormatting&&(Ke.formatting="task"),Ke.taskList=!1,Qt(Ke)}if(Ke.taskOpen=!1,Ke.taskClosed=!1,Ke.header&&Ge.match(/^#+$/,!0))return lt.highlightFormatting&&(Ke.formatting="header"),Qt(Ke);var cn=Ge.next();if(Ke.linkTitle){Ke.linkTitle=!1;var Lt=cn;cn==="("&&(Lt=")"),Lt=(Lt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Dt="^\\s*(?:[^"+Lt+"\\\\]+|\\\\\\\\|\\\\.)"+Lt;if(Ge.match(new RegExp(Dt),!0))return it.linkHref}if(cn==="`"){var wn=Ke.formatting;lt.highlightFormatting&&(Ke.formatting="code"),Ge.eatWhile("`");var _n=Ge.current().length;if(Ke.code==0&&(!Ke.quote||_n==1))return Ke.code=_n,Qt(Ke);if(_n==Ke.code){var on=Qt(Ke);return Ke.code=0,on}else return Ke.formatting=wn,Qt(Ke)}else if(Ke.code)return Qt(Ke);if(cn==="\\"&&(Ge.next(),lt.highlightFormatting)){var kn=Qt(Ke),xn=it.formatting+"-escape";return kn?kn+" "+xn:xn}if(cn==="!"&&Ge.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ke.imageMarker=!0,Ke.image=!0,lt.highlightFormatting&&(Ke.formatting="image"),Qt(Ke);if(cn==="["&&Ke.imageMarker&&Ge.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ke.imageMarker=!1,Ke.imageAltText=!0,lt.highlightFormatting&&(Ke.formatting="image"),Qt(Ke);if(cn==="]"&&Ke.imageAltText){lt.highlightFormatting&&(Ke.formatting="image");var kn=Qt(Ke);return Ke.imageAltText=!1,Ke.image=!1,Ke.inline=Ke.f=pt,kn}if(cn==="["&&!Ke.image)return Ke.linkText&&Ge.match(/^.*?\]/)||(Ke.linkText=!0,lt.highlightFormatting&&(Ke.formatting="link")),Qt(Ke);if(cn==="]"&&Ke.linkText){lt.highlightFormatting&&(Ke.formatting="link");var kn=Qt(Ke);return Ke.linkText=!1,Ke.inline=Ke.f=Ge.match(/\(.*?\)| ?\[.*?\]/,!1)?pt:wt,kn}if(cn==="<"&&Ge.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ke.f=Ke.inline=Ye,lt.highlightFormatting&&(Ke.formatting="link");var kn=Qt(Ke);return kn?kn+=" ":kn="",kn+it.linkInline}if(cn==="<"&&Ge.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ke.f=Ke.inline=Ye,lt.highlightFormatting&&(Ke.formatting="link");var kn=Qt(Ke);return kn?kn+=" ":kn="",kn+it.linkEmail}if(lt.xml&&cn==="<"&&Ge.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Vn=Ge.string.indexOf(">",Ge.pos);if(Vn!=-1){var er=Ge.string.substring(Ge.start,Vn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(er)&&(Ke.md_inside=!0)}return Ge.backUp(1),Ke.htmlState=te.startState(ct),Je(Ge,Ke,zt)}if(lt.xml&&cn==="<"&&Ge.match(/^\/\w*?>/))return Ke.md_inside=!1,"tag";if(cn==="*"||cn==="_"){for(var Me=1,ce=Ge.pos==1?" ":Ge.string.charAt(Ge.pos-2);Me<3&&Ge.eat(cn);)Me++;var fe=Ge.peek()||" ",be=!/\s/.test(fe)&&(!Qe.test(fe)||/\s/.test(ce)||Qe.test(ce)),ge=!/\s/.test(ce)&&(!Qe.test(ce)||/\s/.test(fe)||Qe.test(fe)),ue=null,Xe=null;if(Me%2&&(!Ke.em&&be&&(cn==="*"||!ge||Qe.test(ce))?ue=!0:Ke.em==cn&&ge&&(cn==="*"||!be||Qe.test(fe))&&(ue=!1)),Me>1&&(!Ke.strong&&be&&(cn==="*"||!ge||Qe.test(ce))?Xe=!0:Ke.strong==cn&&ge&&(cn==="*"||!be||Qe.test(fe))&&(Xe=!1)),Xe!=null||ue!=null){lt.highlightFormatting&&(Ke.formatting=ue==null?"strong":Xe==null?"em":"strong em"),ue===!0&&(Ke.em=cn),Xe===!0&&(Ke.strong=cn);var on=Qt(Ke);return ue===!1&&(Ke.em=!1),Xe===!1&&(Ke.strong=!1),on}}else if(cn===" "&&(Ge.eat("*")||Ge.eat("_"))){if(Ge.peek()===" ")return Qt(Ke);Ge.backUp(1)}if(lt.strikethrough){if(cn==="~"&&Ge.eatWhile(cn)){if(Ke.strikethrough){lt.highlightFormatting&&(Ke.formatting="strikethrough");var on=Qt(Ke);return Ke.strikethrough=!1,on}else if(Ge.match(/^[^\s]/,!1))return Ke.strikethrough=!0,lt.highlightFormatting&&(Ke.formatting="strikethrough"),Qt(Ke)}else if(cn===" "&&Ge.match(/^~~/,!0)){if(Ge.peek()===" ")return Qt(Ke);Ge.backUp(2)}}if(lt.emoji&&cn===":"&&Ge.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ke.emoji=!0,lt.highlightFormatting&&(Ke.formatting="emoji");var _t=Qt(Ke);return Ke.emoji=!1,_t}return cn===" "&&(Ge.match(/^ +$/,!1)?Ke.trailingSpace++:Ke.trailingSpace&&(Ke.trailingSpaceNewLine=!0)),Qt(Ke)}function Ye(Ge,Ke){var Yt=Ge.next();if(Yt===">"){Ke.f=Ke.inline=wt,lt.highlightFormatting&&(Ke.formatting="link");var Jt=Qt(Ke);return Jt?Jt+=" ":Jt="",Jt+it.linkInline}return Ge.match(/^[^>]+/,!0),it.linkInline}function pt(Ge,Ke){if(Ge.eatSpace())return null;var Yt=Ge.next();return Yt==="("||Yt==="["?(Ke.f=Ke.inline=ut(Yt==="("?")":"]"),lt.highlightFormatting&&(Ke.formatting="link-string"),Ke.linkHref=!0,Qt(Ke)):"error"}var qe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ut(Ge){return function(Ke,Yt){var Jt=Ke.next();if(Jt===Ge){Yt.f=Yt.inline=wt,lt.highlightFormatting&&(Yt.formatting="link-string");var cn=Qt(Yt);return Yt.linkHref=!1,cn}return Ke.match(qe[Ge]),Yt.linkHref=!0,Qt(Yt)}}function Oe(Ge,Ke){return Ge.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ke.f=Ot,Ge.next(),lt.highlightFormatting&&(Ke.formatting="link"),Ke.linkText=!0,Qt(Ke)):ft(Ge,Ke,wt)}function Ot(Ge,Ke){if(Ge.match(/^\]:/,!0)){Ke.f=Ke.inline=Gt,lt.highlightFormatting&&(Ke.formatting="link");var Yt=Qt(Ke);return Ke.linkText=!1,Yt}return Ge.match(/^([^\]\\]|\\.)+/,!0),it.linkText}function Gt(Ge,Ke){return Ge.eatSpace()?null:(Ge.match(/^[^\s]+/,!0),Ge.peek()===void 0?Ke.linkTitle=!0:Ge.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ke.f=Ke.inline=wt,it.linkHref+" url")}var un={startState:function(){return{f:yt,prevLine:{stream:null},thisLine:{stream:null},block:yt,htmlState:null,indentation:0,inline:wt,text:Ht,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(Ge){return{f:Ge.f,prevLine:Ge.prevLine,thisLine:Ge.thisLine,block:Ge.block,htmlState:Ge.htmlState&&te.copyState(ct,Ge.htmlState),indentation:Ge.indentation,localMode:Ge.localMode,localState:Ge.localMode?te.copyState(Ge.localMode,Ge.localState):null,inline:Ge.inline,text:Ge.text,formatting:!1,linkText:Ge.linkText,linkTitle:Ge.linkTitle,linkHref:Ge.linkHref,code:Ge.code,em:Ge.em,strong:Ge.strong,strikethrough:Ge.strikethrough,emoji:Ge.emoji,header:Ge.header,setext:Ge.setext,hr:Ge.hr,taskList:Ge.taskList,list:Ge.list,listStack:Ge.listStack.slice(0),quote:Ge.quote,indentedCode:Ge.indentedCode,trailingSpace:Ge.trailingSpace,trailingSpaceNewLine:Ge.trailingSpaceNewLine,md_inside:Ge.md_inside,fencedEndRE:Ge.fencedEndRE}},token:function(Ge,Ke){if(Ke.formatting=!1,Ge!=Ke.thisLine.stream){if(Ke.header=0,Ke.hr=!1,Ge.match(/^\s*$/,!0))return ht(Ke),null;if(Ke.prevLine=Ke.thisLine,Ke.thisLine={stream:Ge},Ke.taskList=!1,Ke.trailingSpace=0,Ke.trailingSpaceNewLine=!1,!Ke.localState&&(Ke.f=Ke.block,Ke.f!=zt)){var Yt=Ge.match(/^\s*/,!0)[0].replace(/\t/g,et).length;if(Ke.indentation=Yt,Ke.indentationDiff=null,Yt>0)return null}}return Ke.f(Ge,Ke)},innerMode:function(Ge){return Ge.block==zt?{state:Ge.htmlState,mode:ct}:Ge.localState?{state:Ge.localState,mode:Ge.localMode}:{state:Ge,mode:un}},indent:function(Ge,Ke,Yt){return Ge.block==zt&&ct.indent?ct.indent(Ge.htmlState,Ke,Yt):Ge.localState&&Ge.localMode.indent?Ge.localMode.indent(Ge.localState,Ke,Yt):te.Pass},blankLine:ht,getType:Qt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return un},"xml"),te.defineMIME("text/markdown","markdown"),te.defineMIME("text/x-markdown","markdown")})},52539:function(dn,vn,he){(function(te){te(he(4631))})(function(te){"use strict";te.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 Ee=0;Ee<te.modeInfo.length;Ee++){var lt=te.modeInfo[Ee];lt.mimes&&(lt.mime=lt.mimes[0])}te.findModeByMIME=function(ct){ct=ct.toLowerCase();for(var Ve=0;Ve<te.modeInfo.length;Ve++){var Re=te.modeInfo[Ve];if(Re.mime==ct)return Re;if(Re.mimes){for(var it=0;it<Re.mimes.length;it++)if(Re.mimes[it]==ct)return Re}}if(/\+xml$/.test(ct))return te.findModeByMIME("application/xml");if(/\+json$/.test(ct))return te.findModeByMIME("application/json")},te.findModeByExtension=function(ct){ct=ct.toLowerCase();for(var Ve=0;Ve<te.modeInfo.length;Ve++){var Re=te.modeInfo[Ve];if(Re.ext){for(var it=0;it<Re.ext.length;it++)if(Re.ext[it]==ct)return Re}}},te.findModeByFileName=function(ct){for(var Ve=0;Ve<te.modeInfo.length;Ve++){var Re=te.modeInfo[Ve];if(Re.file&&Re.file.test(ct))return Re}var it=ct.lastIndexOf("."),ke=it>-1&&ct.substring(it+1,ct.length);if(ke)return te.findModeByExtension(ke)},te.findModeByName=function(ct){ct=ct.toLowerCase();for(var Ve=0;Ve<te.modeInfo.length;Ve++){var Re=te.modeInfo[Ve];if(Re.name.toLowerCase()==ct)return Re;if(Re.alias){for(var it=0;it<Re.alias.length;it++)if(Re.alias[it].toLowerCase()==ct)return Re}}}})},80785:function(dn,vn,he){(function(te){te(he(4631))})(function(te){"use strict";te.defineMode("stex",function(Ee,lt){"use strict";function ct(bt,$e){bt.cmdState.push($e)}function Ve(bt){return bt.cmdState.length>0?bt.cmdState[bt.cmdState.length-1]:null}function Re(bt){var $e=bt.cmdState.pop();$e&&$e.closeBracket()}function it(bt){for(var $e=bt.cmdState,dt=$e.length-1;dt>=0;dt--){var Qe=$e[dt];if(Qe.name!="DEFAULT")return Qe}return{styleIdentifier:function(){return null}}}function ke(bt,$e,dt){return function(){this.name=bt,this.bracketNo=0,this.style=$e,this.styles=dt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var we={};we.importmodule=ke("importmodule","tag",["string","builtin"]),we.documentclass=ke("documentclass","tag",["","atom"]),we.usepackage=ke("usepackage","tag",["atom"]),we.begin=ke("begin","tag",["atom"]),we.end=ke("end","tag",["atom"]),we.label=ke("label","tag",["atom"]),we.ref=ke("ref","tag",["atom"]),we.eqref=ke("eqref","tag",["atom"]),we.cite=ke("cite","tag",["atom"]),we.bibitem=ke("bibitem","tag",["atom"]),we.Bibitem=ke("Bibitem","tag",["atom"]),we.RBibitem=ke("RBibitem","tag",["atom"]),we.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function at(bt,$e){bt.f=$e}function tt(bt,$e){var dt;if(bt.match(/^\\[a-zA-Z@]+/)){var Qe=bt.current().slice(1);return dt=we.hasOwnProperty(Qe)?we[Qe]:we.DEFAULT,dt=new dt,ct($e,dt),at($e,kt),dt.style}if(bt.match(/^\\[$&%#{}_]/)||bt.match(/^\\[,;!\/\\]/))return"tag";if(bt.match("\\["))return at($e,function(ft,Je){return ve(ft,Je,"\\]")}),"keyword";if(bt.match("\\("))return at($e,function(ft,Je){return ve(ft,Je,"\\)")}),"keyword";if(bt.match("$$"))return at($e,function(ft,Je){return ve(ft,Je,"$$")}),"keyword";if(bt.match("$"))return at($e,function(ft,Je){return ve(ft,Je,"$")}),"keyword";var et=bt.next();if(et=="%")return bt.skipToEnd(),"comment";if(et=="}"||et=="]"){if(dt=Ve($e),dt)dt.closeBracket(et),at($e,kt);else return"error";return"bracket"}else return et=="{"||et=="["?(dt=we.DEFAULT,dt=new dt,ct($e,dt),"bracket"):/\d/.test(et)?(bt.eatWhile(/[\w.%]/),"atom"):(bt.eatWhile(/[\w\-_]/),dt=it($e),dt.name=="begin"&&(dt.argument=bt.current()),dt.styleIdentifier())}function ve(bt,$e,dt){if(bt.eatSpace())return null;if(dt&&bt.match(dt))return at($e,tt),"keyword";if(bt.match(/^\\[a-zA-Z@]+/))return"tag";if(bt.match(/^[a-zA-Z]+/))return"variable-2";if(bt.match(/^\\[$&%#{}_]/)||bt.match(/^\\[,;!\/]/)||bt.match(/^[\^_&]/))return"tag";if(bt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(bt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Qe=bt.next();return Qe=="{"||Qe=="}"||Qe=="["||Qe=="]"||Qe=="("||Qe==")"?"bracket":Qe=="%"?(bt.skipToEnd(),"comment"):"error"}function kt(bt,$e){var dt=bt.peek(),Qe;return dt=="{"||dt=="["?(Qe=Ve($e),Qe.openBracket(dt),bt.eat(dt),at($e,tt),"bracket"):/[ \t\r]/.test(dt)?(bt.eat(dt),null):(at($e,tt),Re($e),tt(bt,$e))}return{startState:function(){var bt=lt.inMathMode?function($e,dt){return ve($e,dt)}:tt;return{cmdState:[],f:bt}},copyState:function(bt){return{cmdState:bt.cmdState.slice(),f:bt.f}},token:function(bt,$e){return $e.f(bt,$e)},blankLine:function(bt){bt.f=tt,bt.cmdState.length=0},lineComment:"%"}}),te.defineMIME("text/x-stex","stex"),te.defineMIME("text/x-latex","stex")})},29589:function(dn,vn,he){(function(te){te(he(4631))})(function(te){"use strict";var Ee={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},lt={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};te.defineMode("xml",function(ct,Ve){var Re=ct.indentUnit,it={},ke=Ve.htmlMode?Ee:lt;for(var we in ke)it[we]=ke[we];for(var we in Ve)it[we]=Ve[we];var at,tt;function ve(Ye,pt){function qe(Ot){return pt.tokenize=Ot,Ot(Ye,pt)}var ut=Ye.next();if(ut=="<")return Ye.eat("!")?Ye.eat("[")?Ye.match("CDATA[")?qe($e("atom","]]>")):null:Ye.match("--")?qe($e("comment","-->")):Ye.match("DOCTYPE",!0,!0)?(Ye.eatWhile(/[\w\._\-]/),qe(dt(1))):null:Ye.eat("?")?(Ye.eatWhile(/[\w\._\-]/),pt.tokenize=$e("meta","?>"),"meta"):(at=Ye.eat("/")?"closeTag":"openTag",pt.tokenize=kt,"tag bracket");if(ut=="&"){var Oe;return Ye.eat("#")?Ye.eat("x")?Oe=Ye.eatWhile(/[a-fA-F\d]/)&&Ye.eat(";"):Oe=Ye.eatWhile(/[\d]/)&&Ye.eat(";"):Oe=Ye.eatWhile(/[\w\.\-:]/)&&Ye.eat(";"),Oe?"atom":"error"}else return Ye.eatWhile(/[^&<]/),null}ve.isInText=!0;function kt(Ye,pt){var qe=Ye.next();if(qe==">"||qe=="/"&&Ye.eat(">"))return pt.tokenize=ve,at=qe==">"?"endTag":"selfcloseTag","tag bracket";if(qe=="=")return at="equals",null;if(qe=="<"){pt.tokenize=ve,pt.state=Je,pt.tagName=pt.tagStart=null;var ut=pt.tokenize(Ye,pt);return ut?ut+" tag error":"tag error"}else return/[\'\"]/.test(qe)?(pt.tokenize=bt(qe),pt.stringStartCol=Ye.column(),pt.tokenize(Ye,pt)):(Ye.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function bt(Ye){var pt=function(qe,ut){for(;!qe.eol();)if(qe.next()==Ye){ut.tokenize=kt;break}return"string"};return pt.isInAttribute=!0,pt}function $e(Ye,pt){return function(qe,ut){for(;!qe.eol();){if(qe.match(pt)){ut.tokenize=ve;break}qe.next()}return Ye}}function dt(Ye){return function(pt,qe){for(var ut;(ut=pt.next())!=null;){if(ut=="<")return qe.tokenize=dt(Ye+1),qe.tokenize(pt,qe);if(ut==">")if(Ye==1){qe.tokenize=ve;break}else return qe.tokenize=dt(Ye-1),qe.tokenize(pt,qe)}return"meta"}}function Qe(Ye,pt,qe){this.prev=Ye.context,this.tagName=pt,this.indent=Ye.indented,this.startOfLine=qe,(it.doNotIndent.hasOwnProperty(pt)||Ye.context&&Ye.context.noIndent)&&(this.noIndent=!0)}function et(Ye){Ye.context&&(Ye.context=Ye.context.prev)}function ft(Ye,pt){for(var qe;;){if(!Ye.context||(qe=Ye.context.tagName,!it.contextGrabbers.hasOwnProperty(qe)||!it.contextGrabbers[qe].hasOwnProperty(pt)))return;et(Ye)}}function Je(Ye,pt,qe){return Ye=="openTag"?(qe.tagStart=pt.column(),ot):Ye=="closeTag"?ht:Je}function ot(Ye,pt,qe){return Ye=="word"?(qe.tagName=pt.current(),tt="tag",Xt):it.allowMissingTagName&&Ye=="endTag"?(tt="tag bracket",Xt(Ye,pt,qe)):(tt="error",ot)}function ht(Ye,pt,qe){if(Ye=="word"){var ut=pt.current();return qe.context&&qe.context.tagName!=ut&&it.implicitlyClosed.hasOwnProperty(qe.context.tagName)&&et(qe),qe.context&&qe.context.tagName==ut||it.matchClosing===!1?(tt="tag",yt):(tt="tag error",zt)}else return it.allowMissingTagName&&Ye=="endTag"?(tt="tag bracket",yt(Ye,pt,qe)):(tt="error",zt)}function yt(Ye,pt,qe){return Ye!="endTag"?(tt="error",yt):(et(qe),Je)}function zt(Ye,pt,qe){return tt="error",yt(Ye,pt,qe)}function Xt(Ye,pt,qe){if(Ye=="word")return tt="attribute",Qt;if(Ye=="endTag"||Ye=="selfcloseTag"){var ut=qe.tagName,Oe=qe.tagStart;return qe.tagName=qe.tagStart=null,Ye=="selfcloseTag"||it.autoSelfClosers.hasOwnProperty(ut)?ft(qe,ut):(ft(qe,ut),qe.context=new Qe(qe,ut,Oe==qe.indented)),Je}return tt="error",Xt}function Qt(Ye,pt,qe){return Ye=="equals"?Ht:(it.allowMissing||(tt="error"),Xt(Ye,pt,qe))}function Ht(Ye,pt,qe){return Ye=="string"?wt:Ye=="word"&&it.allowUnquoted?(tt="string",Xt):(tt="error",Xt(Ye,pt,qe))}function wt(Ye,pt,qe){return Ye=="string"?wt:Xt(Ye,pt,qe)}return{startState:function(Ye){var pt={tokenize:ve,state:Je,indented:Ye||0,tagName:null,tagStart:null,context:null};return Ye!=null&&(pt.baseIndent=Ye),pt},token:function(Ye,pt){if(!pt.tagName&&Ye.sol()&&(pt.indented=Ye.indentation()),Ye.eatSpace())return null;at=null;var qe=pt.tokenize(Ye,pt);return(qe||at)&&qe!="comment"&&(tt=null,pt.state=pt.state(at||qe,Ye,pt),tt&&(qe=tt=="error"?qe+" error":tt)),qe},indent:function(Ye,pt,qe){var ut=Ye.context;if(Ye.tokenize.isInAttribute)return Ye.tagStart==Ye.indented?Ye.stringStartCol+1:Ye.indented+Re;if(ut&&ut.noIndent)return te.Pass;if(Ye.tokenize!=kt&&Ye.tokenize!=ve)return qe?qe.match(/^(\s*)/)[0].length:0;if(Ye.tagName)return it.multilineTagIndentPastTag!==!1?Ye.tagStart+Ye.tagName.length+2:Ye.tagStart+Re*(it.multilineTagIndentFactor||1);if(it.alignCDATA&&/<!\[CDATA\[/.test(pt))return 0;var Oe=pt&&/^<(\/)?([\w_:\.-]*)/.exec(pt);if(Oe&&Oe[1])for(;ut;)if(ut.tagName==Oe[2]){ut=ut.prev;break}else if(it.implicitlyClosed.hasOwnProperty(ut.tagName))ut=ut.prev;else break;else if(Oe)for(;ut;){var Ot=it.contextGrabbers[ut.tagName];if(Ot&&Ot.hasOwnProperty(Oe[2]))ut=ut.prev;else break}for(;ut&&ut.prev&&!ut.startOfLine;)ut=ut.prev;return ut?ut.indent+Re:Ye.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:it.htmlMode?"html":"xml",helperType:it.htmlMode?"html":"xml",skipAttribute:function(Ye){Ye.state==Ht&&(Ye.state=Xt)},xmlCurrentTag:function(Ye){return Ye.tagName?{name:Ye.tagName,close:Ye.type=="closeTag"}:null},xmlCurrentContext:function(Ye){for(var pt=[],qe=Ye.context;qe;qe=qe.prev)qe.tagName&&pt.push(qe.tagName);return pt.reverse()}}}),te.defineMIME("text/xml","xml"),te.defineMIME("application/xml","xml"),te.mimeModes.hasOwnProperty("text/html")||te.defineMIME("text/html",{name:"xml",htmlMode:!0})})},19575:function(dn,vn,he){var te,Ee;(function(lt,ct){dn.exports=ct(lt)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof he.g!="undefined"?he.g:this,function(lt){"use strict";lt=lt||{};var ct=lt.Base64,Ve="2.6.4",Re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",it=function(qe){for(var ut={},Oe=0,Ot=qe.length;Oe<Ot;Oe++)ut[qe.charAt(Oe)]=Oe;return ut}(Re),ke=String.fromCharCode,we=function(qe){if(qe.length<2){var ut=qe.charCodeAt(0);return ut<128?qe:ut<2048?ke(192|ut>>>6)+ke(128|ut&63):ke(224|ut>>>12&15)+ke(128|ut>>>6&63)+ke(128|ut&63)}else{var ut=65536+(qe.charCodeAt(0)-55296)*1024+(qe.charCodeAt(1)-56320);return ke(240|ut>>>18&7)+ke(128|ut>>>12&63)+ke(128|ut>>>6&63)+ke(128|ut&63)}},at=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,tt=function(qe){return qe.replace(at,we)},ve=function(qe){var ut=[0,2,1][qe.length%3],Oe=qe.charCodeAt(0)<<16|(qe.length>1?qe.charCodeAt(1):0)<<8|(qe.length>2?qe.charCodeAt(2):0),Ot=[Re.charAt(Oe>>>18),Re.charAt(Oe>>>12&63),ut>=2?"=":Re.charAt(Oe>>>6&63),ut>=1?"=":Re.charAt(Oe&63)];return Ot.join("")},kt=lt.btoa&&typeof lt.btoa=="function"?function(qe){return lt.btoa(qe)}:function(qe){if(qe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return qe.replace(/[\s\S]{1,3}/g,ve)},bt=function(qe){return kt(tt(String(qe)))},$e=function(qe){return qe.replace(/[+\/]/g,function(ut){return ut=="+"?"-":"_"}).replace(/=/g,"")},dt=function(qe,ut){return ut?$e(bt(qe)):bt(qe)},Qe=function(qe){return dt(qe,!0)},et;lt.Uint8Array&&(et=function(qe,ut){for(var Oe="",Ot=0,Gt=qe.length;Ot<Gt;Ot+=3){var un=qe[Ot],Ge=qe[Ot+1],Ke=qe[Ot+2],Yt=un<<16|Ge<<8|Ke;Oe+=Re.charAt(Yt>>>18)+Re.charAt(Yt>>>12&63)+(typeof Ge!="undefined"?Re.charAt(Yt>>>6&63):"=")+(typeof Ke!="undefined"?Re.charAt(Yt&63):"=")}return ut?$e(Oe):Oe});var ft=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Je=function(qe){switch(qe.length){case 4:var ut=(7&qe.charCodeAt(0))<<18|(63&qe.charCodeAt(1))<<12|(63&qe.charCodeAt(2))<<6|63&qe.charCodeAt(3),Oe=ut-65536;return ke((Oe>>>10)+55296)+ke((Oe&1023)+56320);case 3:return ke((15&qe.charCodeAt(0))<<12|(63&qe.charCodeAt(1))<<6|63&qe.charCodeAt(2));default:return ke((31&qe.charCodeAt(0))<<6|63&qe.charCodeAt(1))}},ot=function(qe){return qe.replace(ft,Je)},ht=function(qe){var ut=qe.length,Oe=ut%4,Ot=(ut>0?it[qe.charAt(0)]<<18:0)|(ut>1?it[qe.charAt(1)]<<12:0)|(ut>2?it[qe.charAt(2)]<<6:0)|(ut>3?it[qe.charAt(3)]:0),Gt=[ke(Ot>>>16),ke(Ot>>>8&255),ke(Ot&255)];return Gt.length-=[0,0,2,1][Oe],Gt.join("")},yt=lt.atob&&typeof lt.atob=="function"?function(qe){return lt.atob(qe)}:function(qe){return qe.replace(/\S{1,4}/g,ht)},zt=function(qe){return yt(String(qe).replace(/[^A-Za-z0-9\+\/]/g,""))},Xt=function(qe){return ot(yt(qe))},Qt=function(qe){return String(qe).replace(/[-_]/g,function(ut){return ut=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ht=function(qe){return Xt(Qt(qe))},wt;lt.Uint8Array&&(wt=function(qe){return Uint8Array.from(zt(Qt(qe)),function(ut){return ut.charCodeAt(0)})});var Ye=function(){var qe=lt.Base64;return lt.Base64=ct,qe};if(lt.Base64={VERSION:Ve,atob:zt,btoa:kt,fromBase64:Ht,toBase64:dt,utob:tt,encode:dt,encodeURI:Qe,btou:ot,decode:Ht,noConflict:Ye,fromUint8Array:et,toUint8Array:wt},typeof Object.defineProperty=="function"){var pt=function(qe){return{value:qe,enumerable:!1,writable:!0,configurable:!0}};lt.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",pt(function(){return Ht(this)})),Object.defineProperty(String.prototype,"toBase64",pt(function(qe){return dt(this,qe)})),Object.defineProperty(String.prototype,"toBase64URI",pt(function(){return dt(this,!0)}))}}return lt.Meteor&&(Base64=lt.Base64),dn.exports?dn.exports.Base64=lt.Base64:(te=[],Ee=function(){return lt.Base64}.apply(vn,te),Ee!==void 0&&(dn.exports=Ee)),{Base64:lt.Base64}})},15979:function(dn,vn,he){"use strict";he.d(vn,{hP:function(){return er}});var te=function(Me,ce){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,be){fe.__proto__=be}||function(fe,be){for(var ge in be)Object.prototype.hasOwnProperty.call(be,ge)&&(fe[ge]=be[ge])})(Me,ce)};function Ee(Me,ce){function fe(){this.constructor=Me}te(Me,ce),Me.prototype=ce===null?Object.create(ce):(fe.prototype=ce.prototype,new fe)}function lt(Me,ce,fe,be){return new(fe||(fe=Promise))(function(ge,ue){function Xe(Dn){try{Zt(be.next(Dn))}catch(An){ue(An)}}function _t(Dn){try{Zt(be.throw(Dn))}catch(An){ue(An)}}function Zt(Dn){var An;Dn.done?ge(Dn.value):(An=Dn.value,An instanceof fe?An:new fe(function(yn){yn(An)})).then(Xe,_t)}Zt((be=be.apply(Me,ce||[])).next())})}function ct(Me,ce){var fe,be,ge,ue,Xe={label:0,sent:function(){if(1&ge[0])throw ge[1];return ge[1]},trys:[],ops:[]};return ue={next:_t(0),throw:_t(1),return:_t(2)},typeof Symbol=="function"&&(ue[Symbol.iterator]=function(){return this}),ue;function _t(Zt){return function(Dn){return function(An){if(fe)throw new TypeError("Generator is already executing.");for(;Xe;)try{if(fe=1,be&&(ge=2&An[0]?be.return:An[0]?be.throw||((ge=be.return)&&ge.call(be),0):be.next)&&!(ge=ge.call(be,An[1])).done)return ge;switch(be=0,ge&&(An=[2&An[0],ge.value]),An[0]){case 0:case 1:ge=An;break;case 4:return Xe.label++,{value:An[1],done:!1};case 5:Xe.label++,be=An[1],An=[0];continue;case 7:An=Xe.ops.pop(),Xe.trys.pop();continue;default:if(ge=Xe.trys,!((ge=ge.length>0&&ge[ge.length-1])||An[0]!==6&&An[0]!==2)){Xe=0;continue}if(An[0]===3&&(!ge||An[1]>ge[0]&&An[1]<ge[3])){Xe.label=An[1];break}if(An[0]===6&&Xe.label<ge[1]){Xe.label=ge[1],ge=An;break}if(ge&&Xe.label<ge[2]){Xe.label=ge[2],Xe.ops.push(An);break}ge[2]&&Xe.ops.pop(),Xe.trys.pop();continue}An=ce.call(Me,Xe)}catch(yn){An=[6,yn],be=0}finally{fe=ge=0}if(5&An[0])throw An[1];return{value:An[0]?An[1]:void 0,done:!0}}([Zt,Dn])}}}function Ve(){for(var Me=0,ce=0,fe=arguments.length;ce<fe;ce++)Me+=arguments[ce].length;var be=Array(Me),ge=0;for(ce=0;ce<fe;ce++)for(var ue=arguments[ce],Xe=0,_t=ue.length;Xe<_t;Xe++,ge++)be[ge]=ue[Xe];return be}var Re=function(){function Me(){}return Me.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Me.setAttributes=function(ce,fe){for(var be=0,ge=fe;be<ge.length;be++){var ue=ge[be],Xe=ue[0],_t=ue[1];ce.setAttribute(Xe,_t)}},Me.createRect=function(ce,fe,be){var ge=document.createElementNS("http://www.w3.org/2000/svg","rect");return ge.setAttribute("width",ce.toString()),ge.setAttribute("height",fe.toString()),be&&Me.setAttributes(ge,be),ge},Me.createLine=function(ce,fe,be,ge,ue){var Xe=document.createElementNS("http://www.w3.org/2000/svg","line");return Xe.setAttribute("x1",ce.toString()),Xe.setAttribute("y1",fe.toString()),Xe.setAttribute("x2",be.toString()),Xe.setAttribute("y2",ge.toString()),ue&&Me.setAttributes(Xe,ue),Xe},Me.createPolygon=function(ce,fe){var be=document.createElementNS("http://www.w3.org/2000/svg","polygon");return be.setAttribute("points",ce),fe&&Me.setAttributes(be,fe),be},Me.createCircle=function(ce,fe){var be=document.createElementNS("http://www.w3.org/2000/svg","circle");return be.setAttribute("cx",(ce/2).toString()),be.setAttribute("cy",(ce/2).toString()),be.setAttribute("r",ce.toString()),fe&&Me.setAttributes(be,fe),be},Me.createEllipse=function(ce,fe,be){var ge=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ge.setAttribute("cx",(ce/2).toString()),ge.setAttribute("cy",(fe/2).toString()),ge.setAttribute("rx",(ce/2).toString()),ge.setAttribute("ry",(fe/2).toString()),be&&Me.setAttributes(ge,be),ge},Me.createGroup=function(ce){var fe=document.createElementNS("http://www.w3.org/2000/svg","g");return ce&&Me.setAttributes(fe,ce),fe},Me.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Me.createMarker=function(ce,fe,be,ge,ue,Xe,_t){var Zt=document.createElementNS("http://www.w3.org/2000/svg","marker");return Me.setAttributes(Zt,[["id",ce],["orient",fe],["markerWidth",be.toString()],["markerHeight",ge.toString()],["refX",ue.toString()],["refY",Xe.toString()]]),Zt.appendChild(_t),Zt},Me.createText=function(ce){var fe=document.createElementNS("http://www.w3.org/2000/svg","text");return fe.setAttribute("x","0"),fe.setAttribute("y","0"),ce&&Me.setAttributes(fe,ce),fe},Me.createTSpan=function(ce,fe){var be=document.createElementNS("http://www.w3.org/2000/svg","tspan");return be.textContent=ce,fe&&Me.setAttributes(be,fe),be},Me.createImage=function(ce){var fe=document.createElementNS("http://www.w3.org/2000/svg","image");return ce&&Me.setAttributes(fe,ce),fe},Me.createPoint=function(ce,fe){var be=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return be.x=ce,be.y=fe,be},Me.createPath=function(ce,fe){var be=document.createElementNS("http://www.w3.org/2000/svg","path");return be.setAttribute("d",ce),fe&&Me.setAttributes(be,fe),be},Me}(),it=function(){function Me(){}return Me.addKey=function(ce){Me.key=ce},Object.defineProperty(Me,"isLicensed",{get:function(){return!!Me.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Me.key)},enumerable:!1,configurable:!0}),Me}(),ke=function(){function Me(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Me.prototype.rasterize=function(ce,fe,be){var ge=this;return new Promise(function(ue){var Xe=be!==void 0?be:document.createElement("canvas");ce===null&&(ge.markersOnly=!0,ge.naturalSize=!1);var _t=document.createElementNS("http://www.w3.org/2000/svg","svg");_t.setAttribute("xmlns","http://www.w3.org/2000/svg"),_t.setAttribute("width",fe.width.baseVal.valueAsString),_t.setAttribute("height",fe.height.baseVal.valueAsString),_t.setAttribute("viewBox","0 0 "+fe.viewBox.baseVal.width.toString()+" "+fe.viewBox.baseVal.height.toString()),_t.innerHTML=fe.innerHTML,ge.naturalSize===!0?(_t.width.baseVal.value=ce.naturalWidth,_t.height.baseVal.value=ce.naturalHeight):ge.width!==void 0&&ge.height!==void 0&&(_t.width.baseVal.value=ge.width,_t.height.baseVal.value=ge.height),Xe.width=_t.width.baseVal.value,Xe.height=_t.height.baseVal.value;var Zt=_t.outerHTML,Dn=Xe.getContext("2d");ge.markersOnly!==!0&&Dn.drawImage(ce,0,0,Xe.width,Xe.height);var An=window.URL,yn=new Image(Xe.width,Xe.height);yn.setAttribute("crossOrigin","anonymous");var nn=new Blob([Zt],{type:"image/svg+xml"}),Ar=An.createObjectURL(nn);yn.onload=function(){Dn.drawImage(yn,0,0),An.revokeObjectURL(Ar);var Dr=Xe.toDataURL(ge.imageType,ge.imageQuality);ue(Dr)},yn.src=Ar})},Me}(),we=function(){},at=function(){function Me(ce){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ce+"_"}return Object.defineProperty(Me.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Me.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(Me.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Me.prototype.addClass=function(ce){return this.styleSheet===void 0&&this.addStyleSheet(),ce.name=""+this.classNamePrefix+ce.localName,this.classes.push(ce),this.styleSheet.sheet.insertRule("."+ce.name+" {"+ce.style+"}",this.styleSheet.sheet.cssRules.length),ce},Me.prototype.addRule=function(ce){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ce),this.styleSheet.sheet.insertRule(ce.selector+" {"+ce.style+"}",this.styleSheet.sheet.cssRules.length)},Me.prototype.addStyleSheet=function(){var ce;this.styleSheet=document.createElement("style"),((ce=this.styleSheetRoot)!==null&&ce!==void 0?ce:document.head).appendChild(this.styleSheet),this.addRule(new tt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new tt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new tt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ve("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ve("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},Me.prototype.removeStyleSheet=function(){var ce;this.styleSheet&&(((ce=this.styleSheetRoot)!==null&&ce!==void 0?ce:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Me}(),tt=function(Me,ce){this.selector=Me,this.style=ce},ve=function(Me,ce){this.localName=Me,this.style=ce},kt=function(){function Me(ce,fe,be,ge,ue){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ce,this.displayMode=fe,this.markerItems=be,this.uiStyleSettings=ge,this.styles=ue,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Me.prototype.show=function(ce){var fe=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ce,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var be=document.createElement("div");be.className=this.toolbarBlockStyleClass.name,be.style.whiteSpace="nowrap",this.uiContainer.appendChild(be),this.addActionButton(be,'<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(be,'<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(be,'<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(be,'<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(be,'<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(be,'<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(be,'<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(be,'<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(ue){var Xe=document.createElement("div");Xe.className=""+fe.toolbarButtonStyleClass.name,Xe.setAttribute("data-type-name",ue.typeName),Xe.innerHTML=ue.icon,Xe.addEventListener("click",function(){fe.markerToolbarButtonClicked(Xe,ue)}),fe.buttons.push(Xe),fe.markerButtons.push(Xe)}),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 ge=document.createElement("div");ge.className=this.toolbarBlockStyleClass.name,ge.style.whiteSpace="nowrap",ge.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ge),this.addActionButton(ge,'<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(ge,'<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()},Me.prototype.addButtonClickListener=function(ce){this.buttonClickListeners.push(ce)},Me.prototype.removeButtonClickListener=function(ce){this.buttonClickListeners.indexOf(ce)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ce),1)},Me.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Me.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ce=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var fe=0;fe<this.markerButtons.length;fe++)fe<ce||fe===ce&&this.markerButtons.length-1===ce?this.markerButtonBlock.appendChild(this.markerButtons[fe]):(fe===ce&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[fe]))}},Me.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")},Me.prototype.resetButtonStyles=function(){var ce=this;this.buttons.forEach(function(fe){fe.className=fe.className.replace(ce.uiStyleSettings.toolbarButtonStyleColorsClassName?ce.uiStyleSettings.toolbarButtonStyleColorsClassName:ce.toolbarButtonStyleColorsClass.name,"").trim(),fe.className=fe.className.replace(ce.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ce.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ce.toolbarActiveButtonStyleColorsClass.name,"").trim(),fe.className+=" "+(ce.uiStyleSettings.toolbarButtonStyleColorsClassName?ce.uiStyleSettings.toolbarButtonStyleColorsClassName:ce.toolbarButtonStyleColorsClass.name)})},Me.prototype.addActionButton=function(ce,fe,be){var ge=this,ue=document.createElement("div");switch(ue.className=""+this.toolbarButtonStyleClass.name,ue.innerHTML=fe,ue.setAttribute("data-action",be),ue.addEventListener("click",function(){ge.actionToolbarButtonClicked(ue,be)}),be){case"select":ue.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ue.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ue.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ue.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ue.style.fill=this.uiStyleSettings.closeButtonColor}ce.appendChild(ue),this.buttons.push(ue)},Me.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ve("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 ve("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ve("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ve("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 ve("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var ce=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ve("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px;
|
|
|
padding: `+ce+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ve("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ve("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new tt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new tt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},Me.prototype.markerToolbarButtonClicked=function(ce,fe){this.setActiveButton(ce),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(be){return be("marker",fe)}),this.markerButtonOverflowBlock.style.display="none"},Me.prototype.actionToolbarButtonClicked=function(ce,fe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(be){return be("action",fe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Me.prototype.setActiveButton=function(ce){this.resetButtonStyles(),ce.className=ce.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ce.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Me.prototype.setActiveMarkerButton=function(ce){var fe=this.markerButtons.find(function(be){return be.getAttribute("data-type-name")===ce});fe&&this.setActiveButton(fe)},Me.prototype.setCurrentMarker=function(ce){var fe=this;this.currentMarker=ce,this.buttons.filter(function(be){return/delete|notes/.test(be.getAttribute("data-action"))}).forEach(function(be){fe.currentMarker===void 0?(be.style.fillOpacity="0.4",be.style.pointerEvents="none"):(be.style.fillOpacity="1",be.style.pointerEvents="all")})},Me}(),bt=function(){function Me(ce,fe,be,ge){this.panels=[],this.panelButtons=[],this.markerjsContainer=ce,this.displayMode=fe,this.uiStyleSettings=be,this.styles=ge,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Me.prototype.addStyles=function(){var ce;this.toolboxStyleClass=this.styles.addClass(new ve("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 ve("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var fe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ve("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ve("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ve("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 ve("toolbox-panel-row_colors",`
|
|
|
background-color: `+((ce=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ce!==void 0?ce:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ve("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*fe)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*fe)+`px;
|
|
|
padding: `+fe+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ve("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ve("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new tt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new tt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},Me.prototype.show=function(ce){var fe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ce,this.uiContainer.className=this.toolboxStyleClass.name+" "+((fe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&fe!==void 0?fe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Me.prototype.setPanelButtons=function(ce){var fe,be,ge=this;this.panels=ce,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((fe=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&fe!==void 0?fe:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((be=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&be!==void 0?be:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ue){var Xe;ue.uiStyleSettings=ge.uiStyleSettings;var _t=document.createElement("div");_t.className=ge.toolboxButtonStyleClass.name+" "+((Xe=ge.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Xe!==void 0?Xe:ge.toolboxButtonStyleColorsClass.name),_t.innerHTML=ue.icon,_t.title=ue.title,_t.addEventListener("click",function(){ge.panelButtonClick(ue)}),ge.panelButtons.push(_t),ge.buttonRow.appendChild(_t)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Me.prototype.panelButtonClick=function(ce){var fe=this,be=-1;if(ce!==this.activePanel){be=this.panels.indexOf(ce),this.panelRow.innerHTML="";var ge=ce.getUi();ge.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ge),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=ce}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){fe.displayMode==="inline"?fe.panelRow.style.display="none":fe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ue,Xe){var _t,Zt;ue.className=fe.toolboxButtonStyleClass.name+" "+(Xe===be?""+((_t=fe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&_t!==void 0?_t:fe.toolboxActiveButtonStyleColorsClass.name):""+((Zt=fe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Zt!==void 0?Zt:fe.toolboxButtonStyleColorsClass.name))})},Me}(),$e=function(Me,ce){this.title=Me,this.icon=ce},dt=function(Me){function ce(fe,be,ge,ue){var Xe=Me.call(this,fe,ue||'<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 Xe.colors=[],Xe.addTransparent=!1,Xe.colorBoxes=[],Xe.colors=be,Xe.currentColor=ge,Xe.setCurrentColor=Xe.setCurrentColor.bind(Xe),Xe.getColorBox=Xe.getColorBox.bind(Xe),Xe}return Ee(ce,Me),ce.prototype.getUi=function(){var fe=this,be=document.createElement("div");return be.style.overflow="hidden",be.style.whiteSpace="nowrap",this.colors.forEach(function(ge){var ue=fe.getColorBox(ge);be.appendChild(ue),fe.colorBoxes.push(ue)}),be},ce.prototype.getColorBox=function(fe){var be=this,ge=this.uiStyleSettings.toolbarHeight/4,ue=this.uiStyleSettings.toolbarHeight-ge,Xe=document.createElement("div");Xe.style.display="inline-block",Xe.style.boxSizing="content-box",Xe.style.width=ue-2+"px",Xe.style.height=ue-2+"px",Xe.style.padding="1px",Xe.style.marginRight="2px",Xe.style.marginBottom="2px",Xe.style.borderWidth="2px",Xe.style.borderStyle="solid",Xe.style.borderRadius=(ue+2)/2+"px",Xe.style.borderColor=fe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Xe.addEventListener("click",function(){be.setCurrentColor(fe,Xe)});var _t=document.createElement("div");return _t.style.display="inline-block",_t.style.width=ue-2+"px",_t.style.height=ue-2+"px",_t.style.backgroundColor=fe,_t.style.borderRadius=ue/2+"px",fe==="transparent"&&(_t.style.fill=this.uiStyleSettings.toolboxAccentColor,_t.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>`),Xe.appendChild(_t),Xe},ce.prototype.setCurrentColor=function(fe,be){var ge=this;this.currentColor=fe,this.colorBoxes.forEach(function(ue){ue.style.borderColor=ue===be?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(fe)},ce}($e),Qe=function(){function Me(ce,fe,be){this._state="new",this._isSelected=!1,this._container=ce,this._overlayContainer=fe,this.globalSettings=be,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Me.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Me.prototype.ownsTarget=function(ce){return!1},Object.defineProperty(Me.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Me.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Me.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Me.prototype.pointerDown=function(ce,fe){},Me.prototype.dblClick=function(ce,fe){},Me.prototype.manipulate=function(ce){},Me.prototype.pointerUp=function(ce){this.stateChanged()},Me.prototype.dispose=function(){},Me.prototype.addMarkerVisualToContainer=function(ce){this.container.childNodes.length>0?this.container.insertBefore(ce,this.container.childNodes[0]):this.container.appendChild(ce)},Me.prototype.getState=function(){return{typeName:Me.typeName,state:this.state,notes:this.notes}},Me.prototype.restoreState=function(ce){this._state=ce.state,this.notes=ce.notes},Me.prototype.scale=function(ce,fe){},Me.prototype.colorChanged=function(ce){this.onColorChanged&&this.onColorChanged(ce),this.stateChanged()},Me.prototype.fillColorChanged=function(ce){this.onFillColorChanged&&this.onFillColorChanged(ce),this.stateChanged()},Me.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ce=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ce.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ce)&&this.onStateChanged(this)}},Me.typeName="MarkerBase",Me}(),et=function(){function Me(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Me.prototype.findGripByVisual=function(ce){return this.topLeft.ownsTarget(ce)?this.topLeft:this.topCenter.ownsTarget(ce)?this.topCenter:this.topRight.ownsTarget(ce)?this.topRight:this.centerLeft.ownsTarget(ce)?this.centerLeft:this.centerRight.ownsTarget(ce)?this.centerRight:this.bottomLeft.ownsTarget(ce)?this.bottomLeft:this.bottomCenter.ownsTarget(ce)?this.bottomCenter:this.bottomRight.ownsTarget(ce)?this.bottomRight:void 0},Me}(),ft=function(){function Me(){this.GRIP_SIZE=10,this.visual=Re.createGroup(),this.visual.appendChild(Re.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Re.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Me.prototype.ownsTarget=function(ce){return ce===this.visual||ce===this.visual.childNodes[0]||ce===this.visual.childNodes[1]},Me}(),Je=function(){function Me(){}return Me.toITransformMatrix=function(ce){return{a:ce.a,b:ce.b,c:ce.c,d:ce.d,e:ce.e,f:ce.f}},Me.toSVGMatrix=function(ce,fe){return ce.a=fe.a,ce.b=fe.b,ce.c=fe.c,ce.d=fe.d,ce.e=fe.e,ce.f=fe.f,ce},Me}(),ot=function(Me){function ce(fe,be,ge){var ue=Me.call(this,fe,be,ge)||this;return ue.left=0,ue.top=0,ue.width=0,ue.height=0,ue.defaultSize={x:50,y:20},ue.offsetX=0,ue.offsetY=0,ue.rotationAngle=0,ue.CB_DISTANCE=10,ue._suppressMarkerCreateEvent=!1,ue.container.transform.baseVal.appendItem(Re.createTransform()),ue.setupControlBox(),ue}return Ee(ce,Me),Object.defineProperty(ce.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"visual",{get:function(){return this._visual},set:function(fe){this._visual=fe;var be=Re.createTransform();this._visual.transform.baseVal.appendItem(be)},enumerable:!1,configurable:!0}),ce.prototype.ownsTarget=function(fe){return!!Me.prototype.ownsTarget.call(this,fe)||!!(this.controlGrips.findGripByVisual(fe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(fe))},ce.prototype.pointerDown=function(fe,be){Me.prototype.pointerDown.call(this,fe,be),this.state==="new"&&(this.left=fe.x,this.top=fe.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ge=this.unrotatePoint(fe);if(this.manipulationStartX=ge.x,this.manipulationStartY=ge.y,this.offsetX=ge.x-this.left,this.offsetY=ge.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(be),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(be)){this.activeGrip=this.rotatorGrip;var ue=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ue.x-this.width/2,this.top=ue.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Xe=this.container.transform.baseVal.getItem(0);Xe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Xe,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ce.prototype.pointerUp=function(fe){var be=this.state;Me.prototype.pointerUp.call(this,fe),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(fe),this._state="select",be==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ce.prototype.moveVisual=function(fe){this.visual.style.transform="translate("+fe.x+"px, "+fe.y+"px)"},ce.prototype.manipulate=function(fe){var be=this.unrotatePoint(fe);this.state==="creating"?this.resize(fe):this.state==="move"?(this.left=this.manipulationStartLeft+(be.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(be.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(be):this.state==="rotate"&&this.rotate(fe)},ce.prototype.resize=function(fe){var be=this.manipulationStartLeft,ge=this.manipulationStartWidth,ue=this.manipulationStartTop,Xe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:be=this.manipulationStartLeft+fe.x-this.manipulationStartX,ge=this.manipulationStartWidth+this.manipulationStartLeft-be;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ge=this.manipulationStartWidth+fe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ue=this.manipulationStartTop+fe.y-this.manipulationStartY,Xe=this.manipulationStartHeight+this.manipulationStartTop-ue;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Xe=this.manipulationStartHeight+fe.y-this.manipulationStartY}ge>=0?(this.left=be,this.width=ge):(this.left=be+ge,this.width=-ge),Xe>=0?(this.top=ue,this.height=Xe):(this.top=ue+Xe,this.height=-Xe),this.setSize()},ce.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ce.prototype.rotate=function(fe){if(Math.abs(fe.x-this.centerX)>.1){var be=Math.sign(fe.x-this.centerX);this.rotationAngle=180*Math.atan((fe.y-this.centerY)/(fe.x-this.centerX))/Math.PI+90*be,this.applyRotation()}},ce.prototype.applyRotation=function(){var fe=this.container.transform.baseVal.getItem(0);fe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(fe,0)},ce.prototype.rotatePoint=function(fe){if(this.rotationAngle===0)return fe;var be=this.container.getCTM(),ge=Re.createPoint(fe.x,fe.y);return{x:(ge=ge.matrixTransform(be)).x,y:ge.y}},ce.prototype.unrotatePoint=function(fe){if(this.rotationAngle===0)return fe;var be=this.container.getCTM();be=be.inverse();var ge=Re.createPoint(fe.x,fe.y);return{x:(ge=ge.matrixTransform(be)).x,y:ge.y}},ce.prototype.select=function(){Me.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ce.prototype.deselect=function(){Me.prototype.deselect.call(this),this.controlBox.style.display="none"},ce.prototype.setupControlBox=function(){this.controlBox=Re.createGroup();var fe=Re.createTransform();fe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(fe),this.container.appendChild(this.controlBox),this.controlRect=Re.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=Re.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 et,this.addControlGrips(),this.controlBox.style.display="none"},ce.prototype.adjustControlBox=function(){var fe=this.controlBox.transform.baseVal.getItem(0);fe.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(fe,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()},ce.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()},ce.prototype.createGrip=function(){var fe=new ft;return fe.visual.transform.baseVal.appendItem(Re.createTransform()),this.controlBox.appendChild(fe.visual),fe},ce.prototype.positionGrips=function(){var fe=this.controlGrips.topLeft.GRIP_SIZE,be=-fe/2,ge=be,ue=(this.width+this.CB_DISTANCE)/2-fe/2,Xe=(this.height+this.CB_DISTANCE)/2-fe/2,_t=this.height+this.CB_DISTANCE-fe/2,Zt=this.width+this.CB_DISTANCE-fe/2;this.positionGrip(this.controlGrips.topLeft.visual,be,ge),this.positionGrip(this.controlGrips.topCenter.visual,ue,ge),this.positionGrip(this.controlGrips.topRight.visual,Zt,ge),this.positionGrip(this.controlGrips.centerLeft.visual,be,Xe),this.positionGrip(this.controlGrips.centerRight.visual,Zt,Xe),this.positionGrip(this.controlGrips.bottomLeft.visual,be,_t),this.positionGrip(this.controlGrips.bottomCenter.visual,ue,_t),this.positionGrip(this.controlGrips.bottomRight.visual,Zt,_t),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ue,ge-3*this.CB_DISTANCE)},ce.prototype.positionGrip=function(fe,be,ge){var ue=fe.transform.baseVal.getItem(0);ue.setTranslate(be,ge),fe.transform.baseVal.replaceItem(ue,0)},ce.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ce.prototype.showControlBox=function(){this.controlBox.style.display=""},ce.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Je.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Je.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Me.prototype.getState.call(this))},ce.prototype.restoreState=function(fe){Me.prototype.restoreState.call(this,fe);var be=fe;this.left=be.left,this.top=be.top,this.width=be.width,this.height=be.height,this.rotationAngle=be.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Je.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,be.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Je.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,be.containerTransformMatrix))},ce.prototype.scale=function(fe,be){Me.prototype.scale.call(this,fe,be);var ge=this.rotatePoint({x:this.left,y:this.top}),ue=this.unrotatePoint({x:ge.x*fe,y:ge.y*be});this.left=ue.x,this.top=ue.y,this.width=this.width*fe,this.height=this.height*be,this.adjustControlBox()},ce}(Qe),ht=function(Me){function ce(fe,be,ge){var ue=Me.call(this,fe,be,ge)||this;return ue.fillColor="transparent",ue.strokeColor="transparent",ue.strokeWidth=0,ue.strokeDasharray="",ue.opacity=1,ue.setStrokeColor=ue.setStrokeColor.bind(ue),ue.setFillColor=ue.setFillColor.bind(ue),ue.setStrokeWidth=ue.setStrokeWidth.bind(ue),ue.setStrokeDasharray=ue.setStrokeDasharray.bind(ue),ue.createVisual=ue.createVisual.bind(ue),ue}return Ee(ce,Me),ce.prototype.ownsTarget=function(fe){return!(!Me.prototype.ownsTarget.call(this,fe)&&fe!==this.visual)},ce.prototype.createVisual=function(){this.visual=Re.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)},ce.prototype.pointerDown=function(fe,be){Me.prototype.pointerDown.call(this,fe,be),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},ce.prototype.manipulate=function(fe){Me.prototype.manipulate.call(this,fe)},ce.prototype.resize=function(fe){Me.prototype.resize.call(this,fe),this.setSize()},ce.prototype.setSize=function(){Me.prototype.setSize.call(this),Re.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ce.prototype.pointerUp=function(fe){Me.prototype.pointerUp.call(this,fe),this.setSize()},ce.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.visual&&Re.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(fe),this.stateChanged()},ce.prototype.setFillColor=function(fe){this.fillColor=fe,this.visual&&Re.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ce.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.visual&&Re.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ce.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.visual&&Re.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ce.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Me.prototype.getState.call(this))},ce.prototype.restoreState=function(fe){var be=fe;this.fillColor=be.fillColor,this.strokeColor=be.strokeColor,this.strokeWidth=be.strokeWidth,this.strokeDasharray=be.strokeDasharray,this.opacity=be.opacity,this.createVisual(),Me.prototype.restoreState.call(this,fe),this.setSize()},ce.prototype.scale=function(fe,be){Me.prototype.scale.call(this,fe,be),this.setSize()},ce.title="Rectangle marker",ce}(ot),yt=function(Me){function ce(fe,be,ge,ue){var Xe=Me.call(this,fe,ue||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Xe.widths=[],Xe.widthBoxes=[],Xe.widths=be,Xe.currentWidth=ge,Xe.setCurrentWidth=Xe.setCurrentWidth.bind(Xe),Xe}return Ee(ce,Me),ce.prototype.getUi=function(){var fe=this,be=document.createElement("div");return be.style.display="flex",be.style.overflow="hidden",be.style.flexGrow="2",this.widths.forEach(function(ge){var ue=document.createElement("div");ue.style.display="flex",ue.style.flexGrow="2",ue.style.alignItems="center",ue.style.justifyContent="space-between",ue.style.padding="5px",ue.style.borderWidth="2px",ue.style.borderStyle="solid",ue.style.borderColor=ge===fe.currentWidth?fe.uiStyleSettings.toolboxAccentColor:"transparent",ue.addEventListener("click",function(){fe.setCurrentWidth(ge,ue)}),be.appendChild(ue);var Xe=document.createElement("div");Xe.innerText=ge.toString(),Xe.style.marginRight="5px",ue.appendChild(Xe);var _t=document.createElement("div");_t.style.minHeight="20px",_t.style.flexGrow="2",_t.style.display="flex",_t.style.alignItems="center";var Zt=document.createElement("hr");Zt.style.minWidth="20px",Zt.style.border="0px",Zt.style.borderTop=ge+"px solid "+fe.uiStyleSettings.toolboxColor,Zt.style.flexGrow="2",_t.appendChild(Zt),ue.appendChild(_t),fe.widthBoxes.push(ue)}),be},ce.prototype.setCurrentWidth=function(fe,be){var ge=this;this.currentWidth=fe,this.widthBoxes.forEach(function(ue){ue.style.borderColor=ue===be?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ce}($e),zt=function(Me){function ce(fe,be,ge,ue){var Xe=Me.call(this,fe,ue||'<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 Xe.styles=[],Xe.styleBoxes=[],Xe.styles=be,Xe.currentStyle=ge,Xe.setCurrentStyle=Xe.setCurrentStyle.bind(Xe),Xe}return Ee(ce,Me),ce.prototype.getUi=function(){var fe=this,be=document.createElement("div");return be.style.display="flex",be.style.overflow="hidden",be.style.flexGrow="2",this.styles.forEach(function(ge){var ue=document.createElement("div");ue.style.display="flex",ue.style.alignItems="center",ue.style.justifyContent="space-between",ue.style.padding="5px",ue.style.borderWidth="2px",ue.style.borderStyle="solid",ue.style.overflow="hidden",ue.style.maxWidth=100/fe.styles.length-5+"%",ue.style.borderColor=ge===fe.currentStyle?fe.uiStyleSettings.toolboxAccentColor:"transparent",ue.addEventListener("click",function(){fe.setCurrentStyle(ge,ue)}),be.appendChild(ue);var Xe=document.createElement("div");Xe.style.minHeight="20px",Xe.style.flexGrow="2",Xe.style.overflow="hidden";var _t=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+fe.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ge!==""?'stroke-dasharray="'+ge+'"':"")+` />
|
|
|
</svg>`;Xe.innerHTML=_t,ue.appendChild(Xe),fe.styleBoxes.push(ue)}),be},ce.prototype.setCurrentStyle=function(fe,be){var ge=this;this.currentStyle=fe,this.styleBoxes.forEach(function(ue){ue.style.borderColor=ue===be?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ce}($e),Xt=function(Me){function ce(fe,be,ge){var ue=Me.call(this,fe,be,ge)||this;return ue.strokeColor=ge.defaultColor,ue.strokeWidth=ge.defaultStrokeWidth,ue.strokeDasharray=ge.defaultStrokeDasharray,ue.strokePanel=new dt("Line color",ge.defaultColorSet,ge.defaultColor),ue.strokePanel.onColorChanged=ue.setStrokeColor,ue.strokeWidthPanel=new yt("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),ue.strokeWidthPanel.onWidthChanged=ue.setStrokeWidth,ue.strokeStylePanel=new zt("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),ue.strokeStylePanel.onStyleChanged=ue.setStrokeDasharray,ue}return Ee(ce,Me),Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var fe=Me.prototype.getState.call(this);return fe.typeName=ce.typeName,fe},ce.typeName="FrameMarker",ce.title="Frame marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ce}(ht),Qt=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"},Ht=function(Me){function ce(fe,be,ge){var ue=Me.call(this,fe,be,ge)||this;return ue.x1=0,ue.y1=0,ue.x2=0,ue.y2=0,ue.defaultLength=50,ue.manipulationStartX=0,ue.manipulationStartY=0,ue.manipulationStartX1=0,ue.manipulationStartY1=0,ue.manipulationStartX2=0,ue.manipulationStartY2=0,ue.setupControlBox(),ue}return Ee(ce,Me),ce.prototype.ownsTarget=function(fe){return!!Me.prototype.ownsTarget.call(this,fe)||!(!this.grip1.ownsTarget(fe)&&!this.grip2.ownsTarget(fe))},ce.prototype.pointerDown=function(fe,be){Me.prototype.pointerDown.call(this,fe,be),this.manipulationStartX=fe.x,this.manipulationStartY=fe.y,this.state==="new"&&(this.x1=fe.x,this.y1=fe.y,this.x2=fe.x,this.y2=fe.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(be)?this.activeGrip=this.grip1:this.grip2.ownsTarget(be)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ce.prototype.pointerUp=function(fe){var be=this.state;Me.prototype.pointerUp.call(this,fe),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(fe),this._state="select",be==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ce.prototype.adjustVisual=function(){},ce.prototype.manipulate=function(fe){this.state==="creating"?this.resize(fe):this.state==="move"?(this.x1=this.manipulationStartX1+fe.x-this.manipulationStartX,this.y1=this.manipulationStartY1+fe.y-this.manipulationStartY,this.x2=this.manipulationStartX2+fe.x-this.manipulationStartX,this.y2=this.manipulationStartY2+fe.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(fe)},ce.prototype.resize=function(fe){switch(this.activeGrip){case this.grip1:this.x1=fe.x,this.y1=fe.y;break;case this.grip2:case void 0:this.x2=fe.x,this.y2=fe.y}this.adjustVisual(),this.adjustControlBox()},ce.prototype.select=function(){Me.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ce.prototype.deselect=function(){Me.prototype.deselect.call(this),this.controlBox.style.display="none"},ce.prototype.setupControlBox=function(){this.controlBox=Re.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ce.prototype.adjustControlBox=function(){this.positionGrips()},ce.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ce.prototype.createGrip=function(){var fe=new ft;return fe.visual.transform.baseVal.appendItem(Re.createTransform()),this.controlBox.appendChild(fe.visual),fe},ce.prototype.positionGrips=function(){var fe=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-fe/2,this.y1-fe/2),this.positionGrip(this.grip2.visual,this.x2-fe/2,this.y2-fe/2)},ce.prototype.positionGrip=function(fe,be,ge){var ue=fe.transform.baseVal.getItem(0);ue.setTranslate(be,ge),fe.transform.baseVal.replaceItem(ue,0)},ce.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Me.prototype.getState.call(this))},ce.prototype.restoreState=function(fe){Me.prototype.restoreState.call(this,fe);var be=fe;this.x1=be.x1,this.y1=be.y1,this.x2=be.x2,this.y2=be.y2},ce.prototype.scale=function(fe,be){Me.prototype.scale.call(this,fe,be),this.x1=this.x1*fe,this.y1=this.y1*be,this.x2=this.x2*fe,this.y2=this.y2*be,this.adjustVisual(),this.adjustControlBox()},ce}(Qe),wt=function(Me){function ce(fe,be,ge){var ue=Me.call(this,fe,be,ge)||this;return ue.strokeColor="transparent",ue.strokeWidth=0,ue.strokeDasharray="",ue.setStrokeColor=ue.setStrokeColor.bind(ue),ue.setStrokeWidth=ue.setStrokeWidth.bind(ue),ue.setStrokeDasharray=ue.setStrokeDasharray.bind(ue),ue.strokeColor=ge.defaultColor,ue.strokeWidth=ge.defaultStrokeWidth,ue.strokeDasharray=ge.defaultStrokeDasharray,ue.strokePanel=new dt("Line color",ge.defaultColorSet,ge.defaultColor),ue.strokePanel.onColorChanged=ue.setStrokeColor,ue.strokeWidthPanel=new yt("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),ue.strokeWidthPanel.onWidthChanged=ue.setStrokeWidth,ue.strokeStylePanel=new zt("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),ue.strokeStylePanel.onStyleChanged=ue.setStrokeDasharray,ue}return Ee(ce,Me),ce.prototype.ownsTarget=function(fe){return!(!Me.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.selectorLine&&fe!==this.visibleLine)},ce.prototype.createVisual=function(){this.visual=Re.createGroup(),this.selectorLine=Re.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Re.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)},ce.prototype.pointerDown=function(fe,be){Me.prototype.pointerDown.call(this,fe,be),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ce.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()),Re.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Re.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Re.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ce.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.adjustVisual(),this.colorChanged(fe)},ce.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.adjustVisual()},ce.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var fe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Me.prototype.getState.call(this));return fe.typeName=ce.typeName,fe},ce.prototype.restoreState=function(fe){Me.prototype.restoreState.call(this,fe);var be=fe;this.strokeColor=be.strokeColor,this.strokeWidth=be.strokeWidth,this.strokeDasharray=be.strokeDasharray,this.createVisual(),this.adjustVisual()},ce.typeName="LineMarker",ce.title="Line marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ce}(Ht),Ye=function(Me){function ce(fe,be,ge,ue){var Xe=Me.call(this,fe,ue||'<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 Xe.fonts=[],Xe.fontBoxes=[],Xe.fonts=be,Xe.currentFont=ge,Xe.setCurrentFont=Xe.setCurrentFont.bind(Xe),Xe}return Ee(ce,Me),ce.prototype.getUi=function(){var fe=this,be=document.createElement("div");return be.style.overflow="hidden",be.style.flexGrow="2",this.fonts.forEach(function(ge){var ue=document.createElement("div");ue.style.display="inline-block",ue.style.alignItems="center",ue.style.justifyContent="space-between",ue.style.padding="5px",ue.style.borderWidth="2px",ue.style.borderStyle="solid",ue.style.overflow="hidden",ue.style.maxWidth=100/fe.fonts.length-5+"%",ue.style.borderColor=ge===fe.currentFont?fe.uiStyleSettings.toolboxAccentColor:"transparent",ue.addEventListener("click",function(){fe.setCurrentFont(ge,ue)}),be.appendChild(ue);var Xe=document.createElement("div");Xe.style.display="flex",Xe.style.minHeight="20px",Xe.style.flexGrow="2",Xe.style.fontFamily=ge,Xe.style.overflow="hidden";var _t=document.createElement("div");_t.style.whiteSpace="nowrap",_t.style.overflow="hidden",_t.style.textOverflow="ellipsis",_t.innerHTML="The quick brown fox jumps over the lazy dog",Xe.appendChild(_t),ue.appendChild(Xe),fe.fontBoxes.push(ue)}),be},ce.prototype.setCurrentFont=function(fe,be){var ge=this;this.currentFont=fe,this.fontBoxes.forEach(function(ue){ue.style.borderColor=ue===be?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ce}($e),pt=function(Me){function ce(fe,be,ge){var ue=Me.call(this,fe,be,ge)||this;return ue.color="transparent",ue.padding=5,ue.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ue.text=ue.DEFAULT_TEXT,ue.isMoved=!1,ue.color=ge.defaultColor,ue.fontFamily=ge.defaultFontFamily,ue.defaultSize={x:100,y:30},ue.setColor=ue.setColor.bind(ue),ue.setFont=ue.setFont.bind(ue),ue.renderText=ue.renderText.bind(ue),ue.sizeText=ue.sizeText.bind(ue),ue.textEditDivClicked=ue.textEditDivClicked.bind(ue),ue.showTextEditor=ue.showTextEditor.bind(ue),ue.setSize=ue.setSize.bind(ue),ue.positionTextEditor=ue.positionTextEditor.bind(ue),ue.colorPanel=new dt("Color",ge.defaultColorSet,ge.defaultColor),ue.colorPanel.onColorChanged=ue.setColor,ue.fontFamilyPanel=new Ye("Font",ge.defaultFontFamilies,ge.defaultFontFamily),ue.fontFamilyPanel.onFontChanged=ue.setFont,ue}return Ee(ce,Me),ce.prototype.ownsTarget=function(fe){if(Me.prototype.ownsTarget.call(this,fe)||fe===this.visual||fe===this.textElement||fe===this.bgRectangle)return!0;var be=!1;return this.textElement.childNodes.forEach(function(ge){ge===fe&&(be=!0)}),be},ce.prototype.createVisual=function(){this.visual=Re.createGroup(),this.bgRectangle=Re.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Re.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Re.createTransform()),this.textElement.transform.baseVal.appendItem(Re.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ce.prototype.pointerDown=function(fe,be){Me.prototype.pointerDown.call(this,fe,be),this.isMoved=!1,this.pointerDownPoint=fe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},ce.prototype.renderText=function(){var fe=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(be){fe.textElement.appendChild(Re.createTSpan(be.trim()===""?" ":be.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ce.prototype.getTextScale=function(){var fe=this.textElement.getBBox(),be=1;if(fe.width>0&&fe.height>0){var ge=(1*this.width-this.width*this.padding*2/100)/fe.width,ue=(1*this.height-this.height*this.padding*2/100)/fe.height;be=Math.min(ge,ue)}return be},ce.prototype.getTextPosition=function(fe){var be=this.textElement.getBBox(),ge=0,ue=0;return be.width>0&&be.height>0&&(ge=(this.width-be.width*fe)/2,ue=this.height/2-be.height*fe/2),{x:ge,y:ue}},ce.prototype.sizeText=function(){var fe=this.textElement.getBBox(),be=this.getTextScale(),ge=this.getTextPosition(be);ge.y-=fe.y*be,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ge.x+"px, "+ge.y+"px) scale("+be+", "+be+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ge.x,ge.y),this.textElement.transform.baseVal.getItem(1).setScale(be,be))},ce.prototype.manipulate=function(fe){Me.prototype.manipulate.call(this,fe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(fe.x-this.pointerDownPoint.x)>5||Math.abs(fe.y-this.pointerDownPoint.y)>5)},ce.prototype.resize=function(fe){Me.prototype.resize.call(this,fe),this.isMoved=!0,this.setSize(),this.sizeText()},ce.prototype.setSize=function(){Me.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Re.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Re.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ce.prototype.pointerUp=function(fe){var be=this.state;be==="creating"&&(this._suppressMarkerCreateEvent=!0),Me.prototype.pointerUp.call(this,fe),this.setSize(),(be==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ce.prototype.showTextEditor=function(){var fe=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(be){be.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var be=Number.parseFloat(fe.textEditor.style.fontSize);fe.textEditor.clientWidth>=Number.parseInt(fe.textEditor.style.maxWidth)&&be>.9;)be-=.1,fe.textEditor.style.fontSize=Math.max(be,.9)+"em"}),this.textEditor.addEventListener("keyup",function(be){be.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(be){if(be.clipboardData){var ge=be.clipboardData.getData("text"),ue=window.getSelection();if(!ue.rangeCount)return!1;ue.deleteFromDocument(),ue.getRangeAt(0).insertNode(document.createTextNode(ge)),be.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){fe.textEditDivClicked(fe.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ce.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var fe=this.getTextScale(),be=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ge=this.textElement.getBBox(),ue={x:ge.width*fe,y:ge.height*fe};be.x-=ue.x/2,be.y-=ue.y/2,this.textEditor.style.top=be.y+"px",this.textEditor.style.left=be.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-be.x+"px",this.textEditor.style.fontSize=Math.max(16*fe,12)+"px",this.textElement.style.display="none"}},ce.prototype.textEditDivClicked=function(fe){this.text=fe.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ce.prototype.select=function(){Me.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ce.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Me.prototype.deselect.call(this)},ce.prototype.dblClick=function(fe,be){Me.prototype.dblClick.call(this,fe,be),this.showTextEditor()},ce.prototype.setColor=function(fe){this.textElement&&Re.setAttributes(this.textElement,[["fill",fe]]),this.color=fe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(fe)},ce.prototype.setFont=function(fe){this.textElement&&Re.setAttributes(this.textElement,[["font-family",fe]]),this.fontFamily=fe,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ce.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ce.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var fe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Me.prototype.getState.call(this));return fe.typeName=ce.typeName,fe},ce.prototype.restoreState=function(fe){var be=fe;this.color=be.color,this.fontFamily=be.fontFamily,this.padding=be.padding,this.text=be.text,this.createVisual(),Me.prototype.restoreState.call(this,fe),this.setSize()},ce.prototype.scale=function(fe,be){Me.prototype.scale.call(this,fe,be),this.setSize(),this.sizeText(),this.positionTextEditor()},ce.typeName="TextMarker",ce.title="Text marker",ce.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>',ce}(ot),qe=function(Me){function ce(fe,be,ge){var ue=Me.call(this,fe,be,ge)||this;return ue.color="transparent",ue.lineWidth=3,ue.drawing=!1,ue.pixelRatio=1,ue.color=ge.defaultColor,ue.lineWidth=ge.defaultStrokeWidth,ue.pixelRatio=ge.freehandPixelRatio,ue.setColor=ue.setColor.bind(ue),ue.addCanvas=ue.addCanvas.bind(ue),ue.finishCreation=ue.finishCreation.bind(ue),ue.setLineWidth=ue.setLineWidth.bind(ue),ue.colorPanel=new dt("Color",ge.defaultColorSet,ge.defaultColor),ue.colorPanel.onColorChanged=ue.setColor,ue.lineWidthPanel=new yt("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),ue.lineWidthPanel.onWidthChanged=ue.setLineWidth,ue}return Ee(ce,Me),ce.prototype.ownsTarget=function(fe){return!(!Me.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.drawingImage)},ce.prototype.createVisual=function(){this.visual=Re.createGroup(),this.drawingImage=Re.createImage(),this.visual.appendChild(this.drawingImage);var fe=Re.createTransform();this.visual.transform.baseVal.appendItem(fe),this.addMarkerVisualToContainer(this.visual)},ce.prototype.pointerDown=function(fe,be){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(fe.x,fe.y),this.drawing=!0):Me.prototype.pointerDown.call(this,fe,be)},ce.prototype.manipulate=function(fe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(fe.x,fe.y),this.canvasContext.stroke()):Me.prototype.manipulate.call(this,fe)},ce.prototype.resize=function(fe){Me.prototype.resize.call(this,fe),Re.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Re.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ce.prototype.pointerUp=function(fe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Me.prototype.pointerUp.call(this,fe)},ce.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)},ce.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Me.prototype.select.call(this)},ce.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Me.prototype.deselect.call(this)},ce.prototype.finishCreation=function(){for(var fe=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),be=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ge=be[0],ue=be[1],Xe=be[2],_t=be[3],Zt=!1,Dn=0;Dn<this.canvasElement.height;Dn++)for(var An=0;An<this.canvasElement.width;An++)fe.data[Dn*this.canvasElement.width*4+4*An+3]>0&&(Zt=!0,Dn<ue&&(ue=Dn),An<ge&&(ge=An),Dn>_t&&(_t=Dn),An>Xe&&(Xe=An));if(Zt){this.left=ge/this.pixelRatio,this.top=ue/this.pixelRatio,this.width=(Xe-ge)/this.pixelRatio,this.height=(_t-ue)/this.pixelRatio;var yn=document.createElement("canvas");yn.width=Xe-ge,yn.height=_t-ue,yn.getContext("2d").putImageData(this.canvasContext.getImageData(ge,ue,Xe-ge,_t-ue),0,0),this.drawingImgUrl=yn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ce.prototype.setDrawingImage=function(){Re.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Re.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ce.prototype.setColor=function(fe){this.color=fe,this.colorChanged(fe)},ce.prototype.setLineWidth=function(fe){this.lineWidth=fe},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var fe=Object.assign({drawingImgUrl:this.drawingImgUrl},Me.prototype.getState.call(this));return fe.typeName=ce.typeName,fe},ce.prototype.restoreState=function(fe){this.createVisual(),Me.prototype.restoreState.call(this,fe),this.drawingImgUrl=fe.drawingImgUrl,this.setDrawingImage()},ce.prototype.scale=function(fe,be){Me.prototype.scale.call(this,fe,be),this.setDrawingImage()},ce.typeName="FreehandMarker",ce.title="Freehand marker",ce.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>',ce}(ot),ut=function(Me){function ce(fe,be,ge){var ue=Me.call(this,fe,ge||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ue.typeBoxes=[],ue.currentType=be,ue.setCurrentType=ue.setCurrentType.bind(ue),ue}return Ee(ce,Me),ce.prototype.getUi=function(){var fe=this,be=document.createElement("div");be.style.display="flex",be.style.overflow="hidden",be.style.flexGrow="2";for(var ge=function(_t){var Zt="both";switch(_t){case 0:Zt="both";break;case 1:Zt="start";break;case 2:Zt="end";break;case 3:Zt="none"}var Dn=document.createElement("div");if(Dn.style.display="flex",Dn.style.flexGrow="2",Dn.style.alignItems="center",Dn.style.justifyContent="space-between",Dn.style.padding="5px",Dn.style.borderWidth="2px",Dn.style.borderStyle="solid",Dn.style.borderColor=Zt===ue.currentType?ue.uiStyleSettings.toolboxAccentColor:"transparent",Dn.addEventListener("click",function(){fe.setCurrentType(Zt,Dn)}),be.appendChild(Dn),Zt==="both"||Zt==="start"){var An=document.createElement("div");An.style.display="flex",An.style.alignItems="center",An.style.minHeight="20px",An.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="`+(ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,An.style.marginLeft="5px",Dn.appendChild(An)}var yn=document.createElement("div");yn.style.display="flex",yn.style.alignItems="center",yn.style.minHeight="20px",yn.style.flexGrow="2";var nn=document.createElement("hr");if(nn.style.minWidth="20px",nn.style.border="0px",nn.style.borderTop="3px solid "+(ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxColor:"#eeeeee"),nn.style.flexGrow="2",yn.appendChild(nn),Dn.appendChild(yn),Zt==="both"||Zt==="end"){var Ar=document.createElement("div");Ar.style.display="flex",Ar.style.alignItems="center",Ar.style.minHeight="20px",Ar.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="`+(ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Ar.style.marginRight="5px",Dn.appendChild(Ar)}ue.typeBoxes.push(Dn)},ue=this,Xe=0;Xe<4;Xe++)ge(Xe);return be},ce.prototype.setCurrentType=function(fe,be){var ge=this;this.currentType=fe,this.typeBoxes.forEach(function(ue){ue.style.borderColor=ue===be?ge.uiStyleSettings!==void 0?ge.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ce}($e),Oe=function(Me){function ce(fe,be,ge){var ue=Me.call(this,fe,be,ge)||this;return ue.arrowType="end",ue.arrowBaseHeight=10,ue.arrowBaseWidth=10,ue.getArrowPoints=ue.getArrowPoints.bind(ue),ue.setArrowType=ue.setArrowType.bind(ue),ue.arrowTypePanel=new ut("Arrow type","end"),ue.arrowTypePanel.onArrowTypeChanged=ue.setArrowType,ue}return Ee(ce,Me),ce.prototype.ownsTarget=function(fe){return!(!Me.prototype.ownsTarget.call(this,fe)&&fe!==this.arrow1&&fe!==this.arrow2)},ce.prototype.getArrowPoints=function(fe,be){var ge=this.arrowBaseWidth+2*this.strokeWidth,ue=this.arrowBaseHeight+2*this.strokeWidth;return fe-ge/2+","+(be+ue/2)+" "+fe+","+(be-ue/2)+" "+(fe+ge/2)+","+(be+ue/2)},ce.prototype.createTips=function(){this.arrow1=Re.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Re.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Re.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Re.createTransform()),this.visual.appendChild(this.arrow2)},ce.prototype.pointerDown=function(fe,be){Me.prototype.pointerDown.call(this,fe,be),this.state==="creating"&&this.createTips()},ce.prototype.adjustVisual=function(){if(Me.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",Re.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Re.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var fe=0;Math.abs(this.x1-this.x2)>.1&&(fe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var be=this.arrow1.transform.baseVal.getItem(0);be.setRotate(fe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(be,0);var ge=this.arrow2.transform.baseVal.getItem(0);ge.setRotate(fe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ge,0)}},ce.prototype.setArrowType=function(fe){this.arrowType=fe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var fe=Object.assign({arrowType:this.arrowType},Me.prototype.getState.call(this));return fe.typeName=ce.typeName,fe},ce.prototype.restoreState=function(fe){Me.prototype.restoreState.call(this,fe);var be=fe;this.arrowType=be.arrowType,this.createTips(),this.adjustVisual()},ce.typeName="ArrowMarker",ce.title="Arrow marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ce}(wt),Ot=function(Me){function ce(fe,be,ge){var ue=Me.call(this,fe,be,ge)||this;return ue.fillColor=ge.defaultFillColor,ue.strokeWidth=0,ue.fillPanel=new dt("Color",ge.defaultColorSet,ge.defaultFillColor),ue.fillPanel.onColorChanged=ue.setFillColor,ue}return Ee(ce,Me),Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var fe=Me.prototype.getState.call(this);return fe.typeName=ce.typeName,fe},ce.typeName="CoverMarker",ce.title="Cover marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ce}(ht),Gt=function(Me){function ce(fe,be,ge,ue){var Xe=Me.call(this,fe,ue||'<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 Xe.opacities=[],Xe.opacityBoxes=[],Xe.opacities=be,Xe.currentOpacity=ge,Xe.setCurrentOpacity=Xe.setCurrentOpacity.bind(Xe),Xe}return Ee(ce,Me),ce.prototype.getUi=function(){var fe=this,be=document.createElement("div");return be.style.display="flex",be.style.overflow="hidden",be.style.flexGrow="2",be.style.justifyContent="space-between",this.opacities.forEach(function(ge){var ue=document.createElement("div");ue.style.display="flex",ue.style.alignItems="center",ue.style.justifyContent="center",ue.style.padding="5px",ue.style.borderWidth="2px",ue.style.borderStyle="solid",ue.style.borderColor=ge===fe.currentOpacity?fe.uiStyleSettings.toolboxAccentColor:"transparent",ue.addEventListener("click",function(){fe.setCurrentOpacity(ge,ue)}),be.appendChild(ue);var Xe=document.createElement("div");Xe.innerText=100*ge+"%",ue.appendChild(Xe),fe.opacityBoxes.push(ue)}),be},ce.prototype.setCurrentOpacity=function(fe,be){var ge=this;this.currentOpacity=fe,this.opacityBoxes.forEach(function(ue){ue.style.borderColor=ue===be?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ce}($e),un=function(Me){function ce(fe,be,ge){var ue=Me.call(this,fe,be,ge)||this;return ue.setOpacity=ue.setOpacity.bind(ue),ue.fillColor=ge.defaultHighlightColor,ue.strokeWidth=0,ue.opacity=ge.defaultHighlightOpacity,ue.fillPanel=new dt("Color",ge.defaultColorSet,ue.fillColor),ue.fillPanel.onColorChanged=ue.setFillColor,ue.opacityPanel=new Gt("Opacity",ge.defaultOpacitySteps,ue.opacity),ue.opacityPanel.onOpacityChanged=ue.setOpacity,ue}return Ee(ce,Me),ce.prototype.setOpacity=function(fe){this.opacity=fe,this.visual&&Re.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var fe=Me.prototype.getState.call(this);return fe.typeName=ce.typeName,fe},ce.typeName="HighlightMarker",ce.title="Highlight marker",ce.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>',ce}(Ot),Ge='<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>',Ke='<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>',Yt=function(Me){function ce(fe,be,ge){var ue=Me.call(this,fe,be,ge)||this;return ue.bgColor="transparent",ue.tipPosition={x:0,y:0},ue.tipBase1Position={x:0,y:0},ue.tipBase2Position={x:0,y:0},ue.tipMoving=!1,ue.color=ge.defaultStrokeColor,ue.bgColor=ge.defaultFillColor,ue.fontFamily=ge.defaultFontFamily,ue.defaultSize={x:100,y:30},ue.setBgColor=ue.setBgColor.bind(ue),ue.getTipPoints=ue.getTipPoints.bind(ue),ue.positionTip=ue.positionTip.bind(ue),ue.setTipPoints=ue.setTipPoints.bind(ue),ue.colorPanel=new dt("Text color",ge.defaultColorSet,ue.color,Ge),ue.colorPanel.onColorChanged=ue.setColor,ue.bgColorPanel=new dt("Fill color",ge.defaultColorSet,ue.bgColor,Ke),ue.bgColorPanel.onColorChanged=ue.setBgColor,ue.fontFamilyPanel=new Ye("Font",ge.defaultFontFamilies,ge.defaultFontFamily),ue.fontFamilyPanel.onFontChanged=ue.setFont,ue.tipGrip=new ft,ue.tipGrip.visual.transform.baseVal.appendItem(Re.createTransform()),ue.controlBox.appendChild(ue.tipGrip.visual),ue}return Ee(ce,Me),ce.prototype.ownsTarget=function(fe){return Me.prototype.ownsTarget.call(this,fe)||this.tipGrip.ownsTarget(fe)||this.tip===fe},ce.prototype.createTip=function(){Re.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Re.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ce.prototype.pointerDown=function(fe,be){this.state==="new"&&Me.prototype.pointerDown.call(this,fe,be),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(be)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Me.prototype.pointerDown.call(this,fe,be)},ce.prototype.pointerUp=function(fe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Me.prototype.pointerUp.call(this,fe);else{var be=this.state==="creating";Me.prototype.pointerUp.call(this,fe),this.setTipPoints(be),this.positionTip()}},ce.prototype.manipulate=function(fe){if(this.tipMoving){var be=this.unrotatePoint(fe);this.tipPosition={x:be.x-this.manipulationStartLeft,y:be.y-this.manipulationStartTop},this.positionTip()}else Me.prototype.manipulate.call(this,fe)},ce.prototype.setBgColor=function(fe){this.bgRectangle&&this.tip&&(Re.setAttributes(this.bgRectangle,[["fill",fe]]),Re.setAttributes(this.tip,[["fill",fe]])),this.bgColor=fe,this.fillColorChanged(fe)},ce.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},ce.prototype.setTipPoints=function(fe){fe===void 0&&(fe=!1);var be=Math.min(this.height/2,15),ge=this.height/5;fe&&(this.tipPosition={x:be+ge/2,y:this.height+20});var ue=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ue<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ge=this.width/5,be=Math.min(this.width/2,15),this.tipBase1Position={x:be,y:0},this.tipBase2Position={x:be+ge,y:0}):(this.tipBase1Position={x:0,y:be},this.tipBase2Position={x:0,y:be+ge}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ue<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ge=this.width/5,be=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-be-ge,y:0},this.tipBase2Position={x:this.width-be,y:0}):(this.tipBase1Position={x:this.width,y:be},this.tipBase2Position={x:this.width,y:be+ge}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ue<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ge=this.width/5,be=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-be-ge,y:this.height},this.tipBase2Position={x:this.width-be,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-be-ge},this.tipBase2Position={x:this.width,y:this.height-be}):ue<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ge=this.width/5,be=Math.min(this.width/2,15),this.tipBase1Position={x:be,y:this.height},this.tipBase2Position={x:be+ge,y:this.height}):(this.tipBase1Position={x:0,y:this.height-be},this.tipBase2Position={x:0,y:this.height-be-ge})},ce.prototype.resize=function(fe){Me.prototype.resize.call(this,fe),this.positionTip()},ce.prototype.positionTip=function(){Re.setAttributes(this.tip,[["points",this.getTipPoints()]]);var fe=this.tipGrip.visual.transform.baseVal.getItem(0);fe.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(fe,0)},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ce.prototype.select=function(){this.positionTip(),Me.prototype.select.call(this)},ce.prototype.getState=function(){var fe=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Me.prototype.getState.call(this));return fe.typeName=ce.typeName,fe},ce.prototype.restoreState=function(fe){var be=fe;this.bgColor=be.bgColor,this.tipPosition=be.tipPosition,Me.prototype.restoreState.call(this,fe),this.createTip(),this.setTipPoints()},ce.prototype.scale=function(fe,be){Me.prototype.scale.call(this,fe,be),this.tipPosition={x:this.tipPosition.x*fe,y:this.tipPosition.y*be},this.positionTip()},ce.typeName="CalloutMarker",ce.title="Callout marker",ce.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>',ce}(pt),Jt=function(Me){function ce(fe,be,ge){var ue=Me.call(this,fe,be,ge)||this;return ue.fillColor="transparent",ue.strokeColor="transparent",ue.strokeWidth=0,ue.strokeDasharray="",ue.opacity=1,ue.strokeColor=ge.defaultColor,ue.strokeWidth=ge.defaultStrokeWidth,ue.strokeDasharray=ge.defaultStrokeDasharray,ue.fillColor=ge.defaultFillColor,ue.setStrokeColor=ue.setStrokeColor.bind(ue),ue.setFillColor=ue.setFillColor.bind(ue),ue.setStrokeWidth=ue.setStrokeWidth.bind(ue),ue.setStrokeDasharray=ue.setStrokeDasharray.bind(ue),ue.setOpacity=ue.setOpacity.bind(ue),ue.createVisual=ue.createVisual.bind(ue),ue.strokePanel=new dt("Line color",Ve(ge.defaultColorSet,["transparent"]),ge.defaultColor),ue.strokePanel.onColorChanged=ue.setStrokeColor,ue.fillPanel=new dt("Fill color",Ve(ge.defaultColorSet,["transparent"]),ue.fillColor,Ke),ue.fillPanel.onColorChanged=ue.setFillColor,ue.strokeWidthPanel=new yt("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),ue.strokeWidthPanel.onWidthChanged=ue.setStrokeWidth,ue.strokeStylePanel=new zt("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),ue.strokeStylePanel.onStyleChanged=ue.setStrokeDasharray,ue.opacityPanel=new Gt("Opacity",ge.defaultOpacitySteps,ue.opacity),ue.opacityPanel.onOpacityChanged=ue.setOpacity,ue}return Ee(ce,Me),ce.prototype.ownsTarget=function(fe){return!(!Me.prototype.ownsTarget.call(this,fe)&&fe!==this.visual)},ce.prototype.createVisual=function(){this.visual=Re.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)},ce.prototype.pointerDown=function(fe,be){Me.prototype.pointerDown.call(this,fe,be),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},ce.prototype.manipulate=function(fe){Me.prototype.manipulate.call(this,fe)},ce.prototype.resize=function(fe){Me.prototype.resize.call(this,fe),this.setSize()},ce.prototype.setSize=function(){Me.prototype.setSize.call(this),Re.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ce.prototype.pointerUp=function(fe){Me.prototype.pointerUp.call(this,fe),this.setSize()},ce.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.visual&&Re.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(fe),this.stateChanged()},ce.prototype.setFillColor=function(fe){this.fillColor=fe,this.visual&&Re.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(fe),this.stateChanged()},ce.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.visual&&Re.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ce.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.visual&&Re.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ce.prototype.setOpacity=function(fe){this.opacity=fe,this.visual&&Re.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var fe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Me.prototype.getState.call(this));return fe.typeName=ce.typeName,fe},ce.prototype.restoreState=function(fe){var be=fe;this.fillColor=be.fillColor,this.strokeColor=be.strokeColor,this.strokeWidth=be.strokeWidth,this.strokeDasharray=be.strokeDasharray,this.opacity=be.opacity,this.createVisual(),Me.prototype.restoreState.call(this,fe),this.setSize()},ce.prototype.scale=function(fe,be){Me.prototype.scale.call(this,fe,be),this.setSize()},ce.typeName="EllipseMarker",ce.title="Ellipse marker",ce.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>',ce}(ot),cn=function(Me){function ce(fe,be,ge){return Me.call(this,fe,be,ge)||this}return Ee(ce,Me),Object.defineProperty(ce.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ce.prototype.ownsTarget=function(fe){return!(!Me.prototype.ownsTarget.call(this,fe)&&fe!==this.tip1&&fe!==this.tip2)},ce.prototype.createTips=function(){this.tip1=Re.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(Re.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Re.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(Re.createTransform()),this.visual.appendChild(this.tip2)},ce.prototype.pointerDown=function(fe,be){Me.prototype.pointerDown.call(this,fe,be),this.state==="creating"&&this.createTips()},ce.prototype.adjustVisual=function(){if(Me.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Re.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()]]),Re.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 fe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),be=this.tip1.transform.baseVal.getItem(0);be.setRotate(fe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(be,0);var ge=this.tip2.transform.baseVal.getItem(0);ge.setRotate(fe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ge,0)}},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var fe=Me.prototype.getState.call(this);return fe.typeName=ce.typeName,fe},ce.prototype.restoreState=function(fe){Me.prototype.restoreState.call(this,fe),this.createTips(),this.adjustVisual()},ce.typeName="MeasurementMarker",ce.title="Measurement marker",ce.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>',ce}(wt),Lt=function(Me){function ce(fe,be,ge){var ue=Me.call(this,fe,be,ge)||this;return ue.strokePanel.colors=ge.defaultColorSet,ue.fillColor="transparent",ue}return Ee(ce,Me),Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var fe=Me.prototype.getState.call(this);return fe.typeName=ce.typeName,fe},ce.typeName="EllipseFrameMarker",ce.title="Ellipse frame marker",ce.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>',ce}(Jt),Dt=function(){function Me(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Me.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Me.prototype.addUndoStep=function(ce){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ce)||(this.undoStack.push(ce),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ce)&&this.redoStack.splice(0,this.redoStack.length))},Me.prototype.replaceLastUndoStep=function(ce){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ce)},Me.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Me.prototype.undo=function(){if(this.undoStack.length>1){var ce=this.undoStack.pop();return ce!==void 0&&this.redoStack.push(ce),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Me.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Me}(),wn=function(Me){function ce(fe,be,ge){var ue=Me.call(this,fe,be,ge)||this;return ue.strokeColor="transparent",ue.strokeWidth=0,ue.strokeDasharray="",ue.curveX=0,ue.curveY=0,ue.manipulationStartCurveX=0,ue.manipulationStartCurveY=0,ue.setStrokeColor=ue.setStrokeColor.bind(ue),ue.setStrokeWidth=ue.setStrokeWidth.bind(ue),ue.setStrokeDasharray=ue.setStrokeDasharray.bind(ue),ue.positionGrips=ue.positionGrips.bind(ue),ue.addControlGrips=ue.addControlGrips.bind(ue),ue.adjustVisual=ue.adjustVisual.bind(ue),ue.setupControlBox=ue.setupControlBox.bind(ue),ue.resize=ue.resize.bind(ue),ue.strokeColor=ge.defaultColor,ue.strokeWidth=ge.defaultStrokeWidth,ue.strokeDasharray=ge.defaultStrokeDasharray,ue.strokePanel=new dt("Line color",ge.defaultColorSet,ge.defaultColor),ue.strokePanel.onColorChanged=ue.setStrokeColor,ue.strokeWidthPanel=new yt("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),ue.strokeWidthPanel.onWidthChanged=ue.setStrokeWidth,ue.strokeStylePanel=new zt("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),ue.strokeStylePanel.onStyleChanged=ue.setStrokeDasharray,ue}return Ee(ce,Me),ce.prototype.ownsTarget=function(fe){return!(!Me.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.selectorCurve&&fe!==this.visibleCurve&&!this.curveGrip.ownsTarget(fe))},ce.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ce.prototype.createVisual=function(){this.visual=Re.createGroup(),this.selectorCurve=Re.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Re.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)},ce.prototype.pointerDown=function(fe,be){Me.prototype.pointerDown.call(this,fe,be),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=fe.x,this.curveY=fe.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(be)&&(this.activeGrip=this.curveGrip,this._state="resize")},ce.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Re.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Re.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Re.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ce.prototype.setupControlBox=function(){Me.prototype.setupControlBox.call(this),this.curveControlLine1=Re.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Re.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)},ce.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Me.prototype.addControlGrips.call(this)},ce.prototype.positionGrips=function(){Me.prototype.positionGrips.call(this);var fe=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-fe/2,this.curveY-fe/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()))},ce.prototype.manipulate=function(fe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+fe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+fe.y-this.manipulationStartY),Me.prototype.manipulate.call(this,fe)},ce.prototype.resize=function(fe){this.activeGrip===this.curveGrip&&(this.curveX=fe.x,this.curveY=fe.y),Me.prototype.resize.call(this,fe),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ce.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.adjustVisual(),this.colorChanged(fe)},ce.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.adjustVisual()},ce.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.adjustVisual()},ce.prototype.scale=function(fe,be){this.curveX=this.curveX*fe,this.curveY=this.curveY*be,Me.prototype.scale.call(this,fe,be)},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var fe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Me.prototype.getState.call(this));return fe.typeName=ce.typeName,fe},ce.prototype.restoreState=function(fe){Me.prototype.restoreState.call(this,fe);var be=fe;this.strokeColor=be.strokeColor,this.strokeWidth=be.strokeWidth,this.strokeDasharray=be.strokeDasharray,this.curveX=be.curveX,this.curveY=be.curveY,this.createVisual(),this.adjustVisual()},ce.typeName="CurveMarker",ce.title="Curve marker",ce.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>',ce}(Ht),_n=function(Me){function ce(fe,be,ge){var ue=Me.call(this,fe,be,ge)||this;return ue.fillColor="transparent",ue.strokeColor="transparent",ue.strokeWidth=0,ue.strokeDasharray="",ue.textColor="transparent",ue.fontSize="1rem",ue.isMoved=!1,ue.captionText="Caption",ue.PADDING=5,ue.captionBoxWidth=0,ue.captionBoxHeight=0,ue.strokeColor=ge.defaultColor,ue.strokeWidth=ge.defaultStrokeWidth,ue.strokeDasharray=ge.defaultStrokeDasharray,ue.fillColor=ge.defaultFillColor,ue.textColor=ge.defaultStrokeColor,ue.fontFamily=ge.defaultFontFamily,ue.fontSize=ge.defaultCaptionFontSize,ue.captionText=ge.defaultCaptionText,ue.setStrokeColor=ue.setStrokeColor.bind(ue),ue.setFillColor=ue.setFillColor.bind(ue),ue.setStrokeWidth=ue.setStrokeWidth.bind(ue),ue.setStrokeDasharray=ue.setStrokeDasharray.bind(ue),ue.createVisual=ue.createVisual.bind(ue),ue.sizeCaption=ue.sizeCaption.bind(ue),ue.setCaptionText=ue.setCaptionText.bind(ue),ue.showTextEditor=ue.showTextEditor.bind(ue),ue.positionTextEditor=ue.positionTextEditor.bind(ue),ue.finishTextEditing=ue.finishTextEditing.bind(ue),ue.setFont=ue.setFont.bind(ue),ue.setTextColor=ue.setTextColor.bind(ue),ue.strokePanel=new dt("Line color",Ve(ge.defaultColorSet,["transparent"]),ue.strokeColor),ue.strokePanel.onColorChanged=ue.setStrokeColor,ue.fillPanel=new dt("Fill color",Ve(ge.defaultColorSet,["transparent"]),ue.fillColor,Ke),ue.fillPanel.onColorChanged=ue.setFillColor,ue.strokeWidthPanel=new yt("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),ue.strokeWidthPanel.onWidthChanged=ue.setStrokeWidth,ue.strokeStylePanel=new zt("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),ue.strokeStylePanel.onStyleChanged=ue.setStrokeDasharray,ue.fontFamilyPanel=new Ye("Font",ge.defaultFontFamilies,ge.defaultFontFamily),ue.fontFamilyPanel.onFontChanged=ue.setFont,ue.textColorPanel=new dt("Text color",ge.defaultColorSet,ue.textColor,Ge),ue.textColorPanel.onColorChanged=ue.setTextColor,ue}return Ee(ce,Me),ce.prototype.ownsTarget=function(fe){return!(!Me.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.frame&&fe!==this.captionBg&&fe!==this.captionElement)},ce.prototype.createVisual=function(){this.visual=Re.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Re.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Re.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=Re.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()},ce.prototype.setCaptionText=function(fe){this.captionText=fe,this.captionElement.textContent=this.captionText,this.sizeCaption()},ce.prototype.pointerDown=function(fe,be){Me.prototype.pointerDown.call(this,fe,be),this.isMoved=!1,this.pointerDownPoint=fe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},ce.prototype.manipulate=function(fe){Me.prototype.manipulate.call(this,fe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(fe.x-this.pointerDownPoint.x)>5||Math.abs(fe.y-this.pointerDownPoint.y)>5)},ce.prototype.resize=function(fe){Me.prototype.resize.call(this,fe),this.setSize()},ce.prototype.sizeCaption=function(){var fe=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=fe.width+2*this.PADDING,this.captionBoxHeight=fe.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Re.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')"]]),Re.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')"]])},ce.prototype.showTextEditor=function(){var fe=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(be){be.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(be){be.key==="Enter"&&fe.finishTextEditing(fe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(be){be.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){fe.finishTextEditing(fe.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){fe.finishTextEditing(fe.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ce.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"))},ce.prototype.finishTextEditing=function(fe){this.setCaptionText(fe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ce.prototype.setFont=function(fe){this.captionElement&&Re.setAttributes(this.captionElement,[["font-family",fe]]),this.fontFamily=fe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ce.prototype.setTextColor=function(fe){this.captionElement&&Re.setAttributes(this.captionElement,[["fill",fe]]),this.textColor=fe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ce.prototype.setSize=function(){Me.prototype.setSize.call(this),Re.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ce.prototype.pointerUp=function(fe){Me.prototype.pointerUp.call(this,fe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ce.prototype.dblClick=function(fe,be){Me.prototype.dblClick.call(this,fe,be),this.showTextEditor()},ce.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.frame&&Re.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(fe),this.stateChanged()},ce.prototype.setFillColor=function(fe){this.fillColor=fe,this.captionBg&&Re.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(fe),this.stateChanged()},ce.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.frame&&Re.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ce.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.frame&&Re.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var fe=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},Me.prototype.getState.call(this));return fe.typeName=this.typeName,fe},ce.prototype.restoreState=function(fe){var be=fe;this.fillColor=be.fillColor,this.strokeColor=be.strokeColor,this.strokeWidth=be.strokeWidth,this.strokeDasharray=be.strokeDasharray,this.textColor=be.textColor,this.fontFamily=be.fontFamily,this.captionText=be.captionText,this.fontSize=be.fontSize,this.createVisual(),Me.prototype.restoreState.call(this,fe),this.setSize()},ce.prototype.scale=function(fe,be){Me.prototype.scale.call(this,fe,be),this.setSize()},ce.typeName="CaptionFrameMarker",ce.title="Caption frame marker",ce.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>',ce}(ot),on=function(){function Me(ce,fe){fe===void 0&&(fe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ce,this.cancelable=fe}return Object.defineProperty(Me.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Me.prototype.preventDefault=function(){this._defaultPrevented=!0},Me}(),kn=function(Me){function ce(fe,be,ge){var ue=Me.call(this,fe,!1)||this;return ue.dataUrl=be,ue.state=ge,ue}return Ee(ce,Me),ce}(on),xn=function(Me){function ce(fe,be,ge){ge===void 0&&(ge=!1);var ue=Me.call(this,fe,ge)||this;return ue.marker=be,ue}return Ee(ce,Me),ce}(on),Vn=function(){function Me(){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 Me.prototype.addEventListener=function(ce,fe){this[ce].push(fe)},Me.prototype.removeEventListener=function(ce,fe){var be=this[ce].indexOf(fe);be>-1&&this[ce].splice(be,1)},Me}(),er=function(){function Me(ce){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Qt,this._isOpen=!1,this.undoRedoManager=new Dt,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 Vn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Me.instanceCounter++,this.styles=new at(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ce,this.targetRoot=document.body,this.width=ce.clientWidth,this.height=ce.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(Me.prototype,"ALL_MARKER_TYPES",{get:function(){return[Xt,qe,Oe,pt,Lt,Jt,un,Yt,cn,Ot,wt,wn,_n]},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Xt,qe,Oe,pt,Jt,un,Yt]},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Xt,qe,Oe,pt,un]},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ce){var fe=this;this._availableMarkerTypes.splice(0),ce.forEach(function(be){if(typeof be=="string"){var ge=fe.ALL_MARKER_TYPES.find(function(ue){return ue.typeName===be});ge!==void 0&&fe._availableMarkerTypes.push(ge)}else fe._availableMarkerTypes.push(be)})},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ce){this._zoomLevel=ce,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(Me.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Me.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),it.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Me.prototype.show=function(){var ce=this;this.styles.styleSheetRoot===void 0&&we.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=we.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(fe){return fe(new on(ce))})},Me.prototype.render=function(){return lt(this,void 0,void 0,function(){var ce;return ct(this,function(fe){switch(fe.label){case 0:return this.setCurrentMarker(),(ce=new ke).naturalSize=this.renderAtNaturalSize,ce.imageType=this.renderImageType,ce.imageQuality=this.renderImageQuality,ce.markersOnly=this.renderMarkersOnly,ce.width=this.renderWidth,ce.height=this.renderHeight,[4,ce.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return fe.sent(),[4,ce.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,fe.sent()]}})})},Me.prototype.close=function(ce){var fe=this;if(ce===void 0&&(ce=!1),this.isOpen){var be=!1;ce||this.eventListeners.beforeclose.forEach(function(ge){var ue=new on(fe,!0);ge(ue),ue.defaultPrevented&&(be=!0)}),be||(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(ge){return ge(new on(fe))}),this.detachEvents(),this._isOpen=!1)}},Me.prototype.addMarkersToToolbar=function(){for(var ce,fe=[],be=0;be<arguments.length;be++)fe[be]=arguments[be];(ce=this._availableMarkerTypes).push.apply(ce,fe)},Me.prototype.addRenderEventListener=function(ce){this.addEventListener("render",function(fe){ce(fe.dataUrl,fe.state)})},Me.prototype.removeRenderEventListener=function(ce){},Me.prototype.addCloseEventListener=function(ce){this.addEventListener("close",function(){ce()})},Me.prototype.removeCloseEventListener=function(ce){},Me.prototype.setupResizeObserver=function(){var ce=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ce.resize(ce.target.clientWidth,ce.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ce.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Me.prototype.onPopupTargetResize=function(){var ce=1*this.target.clientWidth/this.target.clientHeight,fe=this.editorCanvas.clientWidth/ce>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ce:this.editorCanvas.clientWidth,be=fe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ce;this.resize(fe,be)},Me.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Me.prototype.resize=function(ce,fe){this._isResizing=!0;var be=ce/this.imageWidth,ge=fe/this.imageHeight;this.imageWidth=Math.round(ce),this.imageHeight=Math.round(fe),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(be,ge),this._isResizing=!1},Me.prototype.scaleMarkers=function(ce,fe){var be,ge=this;this._currentMarker&&this._currentMarker instanceof pt?this._currentMarker.scale(ce,fe):(be=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ue){ue!==ge._currentMarker&&ue.scale(ce,fe)}),be!==void 0&&this.setCurrentMarker(be)},Me.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"},Me.prototype.setTopLeft=function(){var ce=this.editingTarget.getBoundingClientRect(),fe=this.editorCanvas.getBoundingClientRect();this.left=ce.left-fe.left,this.top=ce.top-fe.top},Me.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)},Me.prototype.addDefs=function(){for(var ce,fe=[],be=0;be<arguments.length;be++)fe[be]=arguments[be];this.defs=Re.createDefs(),this.addDefsToImage(),(ce=this.defs).append.apply(ce,fe)},Me.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Me.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)},Me.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Me.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Me.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)},Me.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Me.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)},Me.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 ce=document.createElement("a");ce.href="https://markerjs.com/",ce.target="_blank",ce.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>',ce.title="Powered by marker.js",ce.style.display="grid",ce.style.alignItems="center",ce.style.justifyItems="center",ce.style.padding="3px",ce.style.width="20px",ce.style.height="20px",this.logoUI.appendChild(ce),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Me.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")},Me.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"},Me.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Me.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 ce=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=ce+"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 kt(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 bt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Me.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Me.prototype.removeMarker=function(ce){this.markerImage.removeChild(ce.container),this.markers.indexOf(ce)>-1&&this.markers.splice(this.markers.indexOf(ce),1),ce.dispose()},Me.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())},Me.prototype.toolbarButtonClicked=function(ce,fe){if(ce==="marker"&&fe!==void 0)this.createNewMarker(fe);else if(ce==="action")switch(fe){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()}},Me.prototype.deleteSelectedMarker=function(){var ce=this;if(this._currentMarker!==void 0){var fe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ge){var ue=new xn(ce,ce._currentMarker,!0);ge(ue),ue.defaultPrevented&&(fe=!0)}),!fe){var be=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(ge){return ge(new xn(ce,be))})}}},Me.prototype.clear=function(){var ce=this,fe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Xe){var _t=new xn(ce,void 0,!0);Xe(_t),_t.defaultPrevented&&(fe=!0)}),!fe)){this.setCurrentMarker();for(var be=function(Xe){var _t=ge.markers[Xe];ge.setCurrentMarker(ge.markers[Xe]),ge._currentMarker.dispose(),ge.markerImage.removeChild(ge._currentMarker.container),ge.markers.splice(ge.markers.indexOf(ge._currentMarker),1),ge.eventListeners.markerdelete.forEach(function(Zt){return Zt(new xn(ce,_t))})},ge=this,ue=this.markers.length-1;ue>=0;ue--)be(ue);this.addUndoStep()}},Object.defineProperty(Me.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Me.prototype.showNotesEditor=function(){var ce;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=(ce=this._currentMarker.notes)!==null&&ce!==void 0?ce:"",this.overlayContainer.appendChild(this.notesArea))},Me.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)},Me.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Me.prototype.addUndoStep=function(){var ce=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var fe=this.getState(),be=this.undoRedoManager.getLastUndoStep();if(!be||be.width===fe.width&&be.height===fe.height){var ge=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(fe),ge<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ue){return ue(new on(ce))})}else this.undoRedoManager.replaceLastUndoStep(fe),this.eventListeners.statechange.forEach(function(ue){return ue(new on(ce))})}},Me.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Me.prototype.undoStep=function(){var ce=this,fe=this.undoRedoManager.undo();fe!==void 0&&(this.restoreState(fe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(be){return be(new on(ce))}))},Me.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Me.prototype.redoStep=function(){var ce=this,fe=this.undoRedoManager.redo();fe!==void 0&&(this.restoreState(fe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(be){return be(new on(ce))}))},Me.prototype.stepZoom=function(){var ce=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ce<this.zoomSteps.length-1?this.zoomSteps[ce+1]:this.zoomSteps[0]},Me.prototype.panTo=function(ce){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ce.x,top:this.prevPanPoint.y-ce.y}),this.prevPanPoint=ce},Me.prototype.startRenderAndClose=function(){return lt(this,void 0,void 0,function(){var ce,fe,be=this;return ct(this,function(ge){switch(ge.label){case 0:return[4,this.render()];case 1:return ce=ge.sent(),fe=this.getState(),this.eventListeners.render.forEach(function(ue){return ue(new kn(be,ce,fe))}),this.close(!0),[2]}})})},Me.prototype.getState=function(ce){ce===!0&&this.setCurrentMarker();var fe={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(be){return fe.markers.push(be.getState())}),fe},Me.prototype.restoreState=function(ce){var fe=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ce.markers.forEach(function(be){var ge=fe._availableMarkerTypes.find(function(Xe){return Xe.typeName===be.typeName});if(ge!==void 0){var ue=fe.addNewMarker(ge);ue.restoreState(be),fe.markers.push(ue)}}),ce.width&&ce.height&&(ce.width!==this.imageWidth||ce.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ce.width,this.imageHeight/ce.height),this.eventListeners.restorestate.forEach(function(be){return be(new on(fe))})},Me.prototype.addNewMarker=function(ce){var fe=Re.createGroup();return this.markerImage.appendChild(fe),new ce(fe,this.overlayContainer,this.settings)},Me.prototype.createNewMarker=function(ce){var fe,be=this;(fe=typeof ce=="string"?this._availableMarkerTypes.find(function(ge){return ge.typeName===ce}):ce)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(fe),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(fe.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ge){return ge(new xn(be,be._currentMarker))}))},Me.prototype.markerCreated=function(ce){var fe=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ce),this.setCurrentMarker(ce),ce instanceof qe&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(qe):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(be){return be(new xn(fe,fe._currentMarker))})},Me.prototype.colorChanged=function(ce){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ce,this.settings.defaultStrokeColor=ce)},Me.prototype.fillColorChanged=function(ce){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ce)},Me.prototype.markerStateChanged=function(ce){var fe=this;this.eventListeners.markerchange.forEach(function(be){return be(new xn(fe,ce))})},Me.prototype.setCurrentMarker=function(ce){var fe=this;this._currentMarker!==ce&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(be){return be(new xn(fe,fe._currentMarker))})),this._currentMarker=ce,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(be){return be(new xn(fe,fe._currentMarker))}))},Me.prototype.onPointerDown=function(ce){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ce.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var fe=this.markers.find(function(be){return be.ownsTarget(ce.target)});fe!==void 0?(this.setCurrentMarker(fe),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ce.clientX,ce.clientY),ce.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ce.clientX,y:ce.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ce.clientX,ce.clientY))},Me.prototype.onDblClick=function(ce){if(this._isFocused||this.focus(),this.mode==="select"){var fe=this.markers.find(function(be){return be.ownsTarget(ce.target)});fe!==void 0&&fe!==this._currentMarker&&this.setCurrentMarker(fe),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ce.clientX,ce.clientY),ce.target):this.setCurrentMarker()}},Me.prototype.onPointerMove=function(ce){this.touchPoints!==1&&ce.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ce.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ce.clientX,ce.clientY)):this.zoomLevel>1&&this.panTo({x:ce.clientX,y:ce.clientY}))},Me.prototype.onPointerUp=function(ce){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ce.clientX,ce.clientY)),this.isDragging=!1,this.addUndoStep()},Me.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Me.prototype.onKeyUp=function(ce){this._currentMarker===void 0||this.notesArea!==void 0||ce.key!=="Delete"&&ce.key!=="Backspace"||this.deleteSelectedMarker()},Me.prototype.clientToLocalCoordinates=function(ce,fe){var be=this.markerImage.getBoundingClientRect();return{x:(ce-be.left)/this.zoomLevel,y:(fe-be.top)/this.zoomLevel}},Me.prototype.onWindowResize=function(){this.positionUI()},Me.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ce=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ce+"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()},Me.prototype.addLicenseKey=function(ce){it.addKey(ce)},Me.prototype.addEventListener=function(ce,fe){this.eventListeners.addEventListener(ce,fe)},Me.prototype.removeEventListener=function(ce,fe){this.eventListeners.removeEventListener(ce,fe)},Me.prototype.renderState=function(ce){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ce),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Me.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Me.prototype.focus=function(){var ce=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(fe){return fe(new on(ce))}))},Me.prototype.blur=function(){var ce=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(fe){return fe(new on(ce))}))},Me.instanceCounter=0,Me}()},42767:function(dn,vn){"use strict";var he;var te=typeof Symbol=="function"&&Symbol.for,Ee=te?Symbol.for("react.element"):60103,lt=te?Symbol.for("react.portal"):60106,ct=te?Symbol.for("react.fragment"):60107,Ve=te?Symbol.for("react.strict_mode"):60108,Re=te?Symbol.for("react.profiler"):60114,it=te?Symbol.for("react.provider"):60109,ke=te?Symbol.for("react.context"):60110,we=te?Symbol.for("react.async_mode"):60111,at=te?Symbol.for("react.concurrent_mode"):60111,tt=te?Symbol.for("react.forward_ref"):60112,ve=te?Symbol.for("react.suspense"):60113,kt=te?Symbol.for("react.suspense_list"):60120,bt=te?Symbol.for("react.memo"):60115,$e=te?Symbol.for("react.lazy"):60116,dt=te?Symbol.for("react.block"):60121,Qe=te?Symbol.for("react.fundamental"):60117,et=te?Symbol.for("react.responder"):60118,ft=te?Symbol.for("react.scope"):60119;function Je(ht){if(typeof ht=="object"&&ht!==null){var yt=ht.$$typeof;switch(yt){case Ee:switch(ht=ht.type,ht){case we:case at:case ct:case Re:case Ve:case ve:return ht;default:switch(ht=ht&&ht.$$typeof,ht){case ke:case tt:case $e:case bt:case it:return ht;default:return yt}}case lt:return yt}}}function ot(ht){return Je(ht)===at}he=we,he=at,he=ke,he=it,he=Ee,he=tt,he=ct,he=$e,he=bt,he=lt,he=Re,he=Ve,he=ve,he=function(ht){return ot(ht)||Je(ht)===we},he=ot,he=function(ht){return Je(ht)===ke},he=function(ht){return Je(ht)===it},he=function(ht){return typeof ht=="object"&&ht!==null&&ht.$$typeof===Ee},he=function(ht){return Je(ht)===tt},vn.isFragment=function(ht){return Je(ht)===ct},he=function(ht){return Je(ht)===$e},he=function(ht){return Je(ht)===bt},he=function(ht){return Je(ht)===lt},he=function(ht){return Je(ht)===Re},he=function(ht){return Je(ht)===Ve},he=function(ht){return Je(ht)===ve},he=function(ht){return typeof ht=="string"||typeof ht=="function"||ht===ct||ht===at||ht===Re||ht===Ve||ht===ve||ht===kt||typeof ht=="object"&&ht!==null&&(ht.$$typeof===$e||ht.$$typeof===bt||ht.$$typeof===it||ht.$$typeof===ke||ht.$$typeof===tt||ht.$$typeof===Qe||ht.$$typeof===et||ht.$$typeof===ft||ht.$$typeof===dt)},he=Je},16357:function(dn,vn,he){"use strict";dn.exports=he(42767)},86128:function(dn,vn,he){"use strict";he.d(vn,{Z:function(){return zt}});var te=he(87462),Ee=he(4942),lt=he(45987),ct=he(1413),Ve=he(15671),Re=he(43144),it=he(97326),ke=he(60136),we=he(51630),at=he(67294),tt=he(94184),ve=he.n(tt),kt=he(64217),bt=he(27822),$e=function(Qt){for(var Ht=Qt.prefixCls,wt=Qt.level,Ye=Qt.isStart,pt=Qt.isEnd,qe="".concat(Ht,"-indent-unit"),ut=[],Oe=0;Oe<wt;Oe+=1){var Ot;ut.push(at.createElement("span",{key:Oe,className:ve()(qe,(Ot={},(0,Ee.Z)(Ot,"".concat(qe,"-start"),Ye[Oe]),(0,Ee.Z)(Ot,"".concat(qe,"-end"),pt[Oe]),Ot))}))}return at.createElement("span",{"aria-hidden":"true",className:"".concat(Ht,"-indent")},ut)},dt=at.memo($e),Qe=he(1089),et=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ft="open",Je="close",ot="---",ht=function(Xt){(0,ke.Z)(Ht,Xt);var Qt=(0,we.Z)(Ht);function Ht(){var wt;(0,Ve.Z)(this,Ht);for(var Ye=arguments.length,pt=new Array(Ye),qe=0;qe<Ye;qe++)pt[qe]=arguments[qe];return wt=Qt.call.apply(Qt,[this].concat(pt)),wt.state={dragNodeHighlight:!1},wt.selectHandle=void 0,wt.onSelectorClick=function(ut){var Oe=wt.props.context.onNodeClick;Oe(ut,(0,Qe.F)(wt.props)),wt.isSelectable()?wt.onSelect(ut):wt.onCheck(ut)},wt.onSelectorDoubleClick=function(ut){var Oe=wt.props.context.onNodeDoubleClick;Oe(ut,(0,Qe.F)(wt.props))},wt.onSelect=function(ut){if(!wt.isDisabled()){var Oe=wt.props.context.onNodeSelect;ut.preventDefault(),Oe(ut,(0,Qe.F)(wt.props))}},wt.onCheck=function(ut){if(!wt.isDisabled()){var Oe=wt.props,Ot=Oe.disableCheckbox,Gt=Oe.checked,un=wt.props.context.onNodeCheck;if(!(!wt.isCheckable()||Ot)){ut.preventDefault();var Ge=!Gt;un(ut,(0,Qe.F)(wt.props),Ge)}}},wt.onMouseEnter=function(ut){var Oe=wt.props.context.onNodeMouseEnter;Oe(ut,(0,Qe.F)(wt.props))},wt.onMouseLeave=function(ut){var Oe=wt.props.context.onNodeMouseLeave;Oe(ut,(0,Qe.F)(wt.props))},wt.onContextMenu=function(ut){var Oe=wt.props.context.onNodeContextMenu;Oe(ut,(0,Qe.F)(wt.props))},wt.onDragStart=function(ut){var Oe=wt.props.context.onNodeDragStart;ut.stopPropagation(),wt.setState({dragNodeHighlight:!0}),Oe(ut,(0,it.Z)(wt));try{ut.dataTransfer.setData("text/plain","")}catch(Ot){}},wt.onDragEnter=function(ut){var Oe=wt.props.context.onNodeDragEnter;ut.preventDefault(),ut.stopPropagation(),Oe(ut,(0,it.Z)(wt))},wt.onDragOver=function(ut){var Oe=wt.props.context.onNodeDragOver;ut.preventDefault(),ut.stopPropagation(),Oe(ut,(0,it.Z)(wt))},wt.onDragLeave=function(ut){var Oe=wt.props.context.onNodeDragLeave;ut.stopPropagation(),Oe(ut,(0,it.Z)(wt))},wt.onDragEnd=function(ut){var Oe=wt.props.context.onNodeDragEnd;ut.stopPropagation(),wt.setState({dragNodeHighlight:!1}),Oe(ut,(0,it.Z)(wt))},wt.onDrop=function(ut){var Oe=wt.props.context.onNodeDrop;ut.preventDefault(),ut.stopPropagation(),wt.setState({dragNodeHighlight:!1}),Oe(ut,(0,it.Z)(wt))},wt.onExpand=function(ut){var Oe=wt.props,Ot=Oe.loading,Gt=Oe.context.onNodeExpand;Ot||Gt(ut,(0,Qe.F)(wt.props))},wt.setSelectHandle=function(ut){wt.selectHandle=ut},wt.getNodeState=function(){var ut=wt.props.expanded;return wt.isLeaf()?null:ut?ft:Je},wt.hasChildren=function(){var ut=wt.props.eventKey,Oe=wt.props.context.keyEntities,Ot=Oe[ut]||{},Gt=Ot.children;return!!(Gt||[]).length},wt.isLeaf=function(){var ut=wt.props,Oe=ut.isLeaf,Ot=ut.loaded,Gt=wt.props.context.loadData,un=wt.hasChildren();return Oe===!1?!1:Oe||!Gt&&!un||Gt&&Ot&&!un},wt.isDisabled=function(){var ut=wt.props.disabled,Oe=wt.props.context.disabled;return!!(Oe||ut)},wt.isCheckable=function(){var ut=wt.props.checkable,Oe=wt.props.context.checkable;return!Oe||ut===!1?!1:Oe},wt.syncLoadData=function(ut){var Oe=ut.expanded,Ot=ut.loading,Gt=ut.loaded,un=wt.props.context,Ge=un.loadData,Ke=un.onNodeLoad;Ot||Ge&&Oe&&!wt.isLeaf()&&!wt.hasChildren()&&!Gt&&Ke((0,Qe.F)(wt.props))},wt.isDraggable=function(){var ut=wt.props,Oe=ut.data,Ot=ut.context.draggable;return!!(Ot&&(!Ot.nodeDraggable||Ot.nodeDraggable(Oe)))},wt.renderDragHandler=function(){var ut=wt.props.context,Oe=ut.draggable,Ot=ut.prefixCls;return Oe!=null&&Oe.icon?at.createElement("span",{className:"".concat(Ot,"-draggable-icon")},Oe.icon):null},wt.renderSwitcherIconDom=function(ut){var Oe=wt.props.switcherIcon,Ot=wt.props.context.switcherIcon,Gt=Oe||Ot;return typeof Gt=="function"?Gt((0,ct.Z)((0,ct.Z)({},wt.props),{},{isLeaf:ut})):Gt},wt.renderSwitcher=function(){var ut=wt.props.expanded,Oe=wt.props.context.prefixCls;if(wt.isLeaf()){var Ot=wt.renderSwitcherIconDom(!0);return Ot!==!1?at.createElement("span",{className:ve()("".concat(Oe,"-switcher"),"".concat(Oe,"-switcher-noop"))},Ot):null}var Gt=ve()("".concat(Oe,"-switcher"),"".concat(Oe,"-switcher_").concat(ut?ft:Je)),un=wt.renderSwitcherIconDom(!1);return un!==!1?at.createElement("span",{onClick:wt.onExpand,className:Gt},un):null},wt.renderCheckbox=function(){var ut=wt.props,Oe=ut.checked,Ot=ut.halfChecked,Gt=ut.disableCheckbox,un=wt.props.context.prefixCls,Ge=wt.isDisabled(),Ke=wt.isCheckable();if(!Ke)return null;var Yt=typeof Ke!="boolean"?Ke:null;return at.createElement("span",{className:ve()("".concat(un,"-checkbox"),Oe&&"".concat(un,"-checkbox-checked"),!Oe&&Ot&&"".concat(un,"-checkbox-indeterminate"),(Ge||Gt)&&"".concat(un,"-checkbox-disabled")),onClick:wt.onCheck},Yt)},wt.renderIcon=function(){var ut=wt.props.loading,Oe=wt.props.context.prefixCls;return at.createElement("span",{className:ve()("".concat(Oe,"-iconEle"),"".concat(Oe,"-icon__").concat(wt.getNodeState()||"docu"),ut&&"".concat(Oe,"-icon_loading"))})},wt.renderSelector=function(){var ut=wt.state.dragNodeHighlight,Oe=wt.props,Ot=Oe.title,Gt=Ot===void 0?ot:Ot,un=Oe.selected,Ge=Oe.icon,Ke=Oe.loading,Yt=Oe.data,Jt=wt.props.context,cn=Jt.prefixCls,Lt=Jt.showIcon,Dt=Jt.icon,wn=Jt.loadData,_n=Jt.titleRender,on=wt.isDisabled(),kn="".concat(cn,"-node-content-wrapper"),xn;if(Lt){var Vn=Ge||Dt;xn=Vn?at.createElement("span",{className:ve()("".concat(cn,"-iconEle"),"".concat(cn,"-icon__customize"))},typeof Vn=="function"?Vn(wt.props):Vn):wt.renderIcon()}else wn&&Ke&&(xn=wt.renderIcon());var er;typeof Gt=="function"?er=Gt(Yt):_n?er=_n(Yt):er=Gt;var Me=at.createElement("span",{className:"".concat(cn,"-title")},er);return at.createElement("span",{ref:wt.setSelectHandle,title:typeof Gt=="string"?Gt:"",className:ve()("".concat(kn),"".concat(kn,"-").concat(wt.getNodeState()||"normal"),!on&&(un||ut)&&"".concat(cn,"-node-selected")),onMouseEnter:wt.onMouseEnter,onMouseLeave:wt.onMouseLeave,onContextMenu:wt.onContextMenu,onClick:wt.onSelectorClick,onDoubleClick:wt.onSelectorDoubleClick},xn,Me,wt.renderDropIndicator())},wt.renderDropIndicator=function(){var ut=wt.props,Oe=ut.disabled,Ot=ut.eventKey,Gt=wt.props.context,un=Gt.draggable,Ge=Gt.dropLevelOffset,Ke=Gt.dropPosition,Yt=Gt.prefixCls,Jt=Gt.indent,cn=Gt.dropIndicatorRender,Lt=Gt.dragOverNodeKey,Dt=Gt.direction,wn=!!un,_n=!Oe&&wn&&Lt===Ot;return _n?cn({dropPosition:Ke,dropLevelOffset:Ge,indent:Jt,prefixCls:Yt,direction:Dt}):null},wt}return(0,Re.Z)(Ht,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Ye=this.props.selectable,pt=this.props.context.selectable;return typeof Ye=="boolean"?Ye:pt}},{key:"render",value:function(){var Ye,pt=this.props,qe=pt.eventKey,ut=pt.className,Oe=pt.style,Ot=pt.dragOver,Gt=pt.dragOverGapTop,un=pt.dragOverGapBottom,Ge=pt.isLeaf,Ke=pt.isStart,Yt=pt.isEnd,Jt=pt.expanded,cn=pt.selected,Lt=pt.checked,Dt=pt.halfChecked,wn=pt.loading,_n=pt.domRef,on=pt.active,kn=pt.data,xn=pt.onMouseMove,Vn=pt.selectable,er=(0,lt.Z)(pt,et),Me=this.props.context,ce=Me.prefixCls,fe=Me.filterTreeNode,be=Me.keyEntities,ge=Me.dropContainerKey,ue=Me.dropTargetKey,Xe=Me.draggingNodeKey,_t=this.isDisabled(),Zt=(0,kt.Z)(er,{aria:!0,data:!0}),Dn=be[qe]||{},An=Dn.level,yn=Yt[Yt.length-1],nn=this.isDraggable(),Ar=!_t&&nn,Dr=Xe===qe,ln=Vn!==void 0?{"aria-selected":!!Vn}:void 0;return at.createElement("div",(0,te.Z)({ref:_n,className:ve()(ut,"".concat(ce,"-treenode"),(Ye={},(0,Ee.Z)(Ye,"".concat(ce,"-treenode-disabled"),_t),(0,Ee.Z)(Ye,"".concat(ce,"-treenode-switcher-").concat(Jt?"open":"close"),!Ge),(0,Ee.Z)(Ye,"".concat(ce,"-treenode-checkbox-checked"),Lt),(0,Ee.Z)(Ye,"".concat(ce,"-treenode-checkbox-indeterminate"),Dt),(0,Ee.Z)(Ye,"".concat(ce,"-treenode-selected"),cn),(0,Ee.Z)(Ye,"".concat(ce,"-treenode-loading"),wn),(0,Ee.Z)(Ye,"".concat(ce,"-treenode-active"),on),(0,Ee.Z)(Ye,"".concat(ce,"-treenode-leaf-last"),yn),(0,Ee.Z)(Ye,"".concat(ce,"-treenode-draggable"),nn),(0,Ee.Z)(Ye,"dragging",Dr),(0,Ee.Z)(Ye,"drop-target",ue===qe),(0,Ee.Z)(Ye,"drop-container",ge===qe),(0,Ee.Z)(Ye,"drag-over",!_t&&Ot),(0,Ee.Z)(Ye,"drag-over-gap-top",!_t&&Gt),(0,Ee.Z)(Ye,"drag-over-gap-bottom",!_t&&un),(0,Ee.Z)(Ye,"filter-node",fe&&fe((0,Qe.F)(this.props))),Ye)),style:Oe,draggable:Ar,"aria-grabbed":Dr,onDragStart:Ar?this.onDragStart:void 0,onDragEnter:nn?this.onDragEnter:void 0,onDragOver:nn?this.onDragOver:void 0,onDragLeave:nn?this.onDragLeave:void 0,onDrop:nn?this.onDrop:void 0,onDragEnd:nn?this.onDragEnd:void 0,onMouseMove:xn},ln,Zt),at.createElement(dt,{prefixCls:ce,level:An,isStart:Ke,isEnd:Yt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Ht}(at.Component),yt=function(Qt){return at.createElement(bt.k.Consumer,null,function(Ht){return at.createElement(ht,(0,te.Z)({},Qt,{context:Ht}))})};yt.displayName="TreeNode",yt.isTreeNode=1;var zt=yt},27822:function(dn,vn,he){"use strict";he.d(vn,{k:function(){return Ee}});var te=he(67294),Ee=te.createContext(null)},10225:function(dn,vn,he){"use strict";he.d(vn,{BT:function(){return dt},Ds:function(){return tt},E6:function(){return ft},L0:function(){return ke},OM:function(){return $e},_5:function(){return it},bt:function(){return at},r7:function(){return Je},wA:function(){return ve},yx:function(){return we}});var te=he(74902),Ee=he(71002),lt=he(67294),ct=he(80334),Ve=he(86128),Re=null;function it(ot,ht){if(!ot)return[];var yt=ot.slice(),zt=yt.indexOf(ht);return zt>=0&&yt.splice(zt,1),yt}function ke(ot,ht){var yt=(ot||[]).slice();return yt.indexOf(ht)===-1&&yt.push(ht),yt}function we(ot){return ot.split("-")}function at(ot,ht){return"".concat(ot,"-").concat(ht)}function tt(ot){return ot&&ot.type&&ot.type.isTreeNode}function ve(ot,ht){var yt=[],zt=ht[ot];function Xt(){var Qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Qt.forEach(function(Ht){var wt=Ht.key,Ye=Ht.children;yt.push(wt),Xt(Ye)})}return Xt(zt.children),yt}function kt(ot){if(ot.parent){var ht=we(ot.pos);return Number(ht[ht.length-1])===ot.parent.children.length-1}return!1}function bt(ot){var ht=we(ot.pos);return Number(ht[ht.length-1])===0}function $e(ot,ht,yt,zt,Xt,Qt,Ht,wt,Ye,pt){var qe,ut=ot.clientX,Oe=ot.clientY,Ot=ot.target.getBoundingClientRect(),Gt=Ot.top,un=Ot.height,Ge=(pt==="rtl"?-1:1)*(((Xt==null?void 0:Xt.x)||0)-ut),Ke=(Ge-12)/zt,Yt=wt[yt.props.eventKey];if(Oe<Gt+un/2){var Jt=Ht.findIndex(function(ce){return ce.key===Yt.key}),cn=Jt<=0?0:Jt-1,Lt=Ht[cn].key;Yt=wt[Lt]}var Dt=Yt.key,wn=Yt,_n=Yt.key,on=0,kn=0;if(!Ye.includes(Dt))for(var xn=0;xn<Ke&&kt(Yt);xn+=1)Yt=Yt.parent,kn+=1;var Vn=ht.props.data,er=Yt.node,Me=!0;return bt(Yt)&&Yt.level===0&&Oe<Gt+un/2&&Qt({dragNode:Vn,dropNode:er,dropPosition:-1})&&Yt.key===yt.props.eventKey?on=-1:(wn.children||[]).length&&Ye.includes(_n)?Qt({dragNode:Vn,dropNode:er,dropPosition:0})?on=0:Me=!1:kn===0?Ke>-1.5?Qt({dragNode:Vn,dropNode:er,dropPosition:1})?on=1:Me=!1:Qt({dragNode:Vn,dropNode:er,dropPosition:0})?on=0:Qt({dragNode:Vn,dropNode:er,dropPosition:1})?on=1:Me=!1:Qt({dragNode:Vn,dropNode:er,dropPosition:1})?on=1:Me=!1,{dropPosition:on,dropLevelOffset:kn,dropTargetKey:Yt.key,dropTargetPos:Yt.pos,dragOverNodeKey:_n,dropContainerKey:on===0?null:((qe=Yt.parent)===null||qe===void 0?void 0:qe.key)||null,dropAllowed:Me}}function dt(ot,ht){if(ot){var yt=ht.multiple;return yt?ot.slice():ot.length?[ot[0]]:ot}}var Qe=function(ht){return ht};function et(ot,ht){if(!ot)return[];var yt=ht||{},zt=yt.processProps,Xt=zt===void 0?Qe:zt,Qt=Array.isArray(ot)?ot:[ot];return Qt.map(function(Ht){var wt=Ht.children,Ye=_objectWithoutProperties(Ht,Re),pt=et(wt,ht);return React.createElement(TreeNode,_extends({key:Ye.key},Xt(Ye)),pt)})}function ft(ot){if(!ot)return null;var ht;if(Array.isArray(ot))ht={checkedKeys:ot,halfCheckedKeys:void 0};else if((0,Ee.Z)(ot)==="object")ht={checkedKeys:ot.checked||void 0,halfCheckedKeys:ot.halfChecked||void 0};else return(0,ct.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ht}function Je(ot,ht){var yt=new Set;function zt(Xt){if(!yt.has(Xt)){var Qt=ht[Xt];if(Qt){yt.add(Xt);var Ht=Qt.parent,wt=Qt.node;wt.disabled||Ht&&zt(Ht.key)}}}return(ot||[]).forEach(function(Xt){zt(Xt)}),(0,te.Z)(yt)}},17341:function(dn,vn,he){"use strict";he.d(vn,{S:function(){return Re}});var te=he(80334);function Ee(it,ke){var we=new Set;return it.forEach(function(at){ke.has(at)||we.add(at)}),we}function lt(it){var ke=it||{},we=ke.disabled,at=ke.disableCheckbox,tt=ke.checkable;return!!(we||at)||tt===!1}function ct(it,ke,we,at){for(var tt=new Set(it),ve=new Set,kt=0;kt<=we;kt+=1){var bt=ke.get(kt)||new Set;bt.forEach(function(et){var ft=et.key,Je=et.node,ot=et.children,ht=ot===void 0?[]:ot;tt.has(ft)&&!at(Je)&&ht.filter(function(yt){return!at(yt.node)}).forEach(function(yt){tt.add(yt.key)})})}for(var $e=new Set,dt=we;dt>=0;dt-=1){var Qe=ke.get(dt)||new Set;Qe.forEach(function(et){var ft=et.parent,Je=et.node;if(!(at(Je)||!et.parent||$e.has(et.parent.key))){if(at(et.parent.node)){$e.add(ft.key);return}var ot=!0,ht=!1;(ft.children||[]).filter(function(yt){return!at(yt.node)}).forEach(function(yt){var zt=yt.key,Xt=tt.has(zt);ot&&!Xt&&(ot=!1),!ht&&(Xt||ve.has(zt))&&(ht=!0)}),ot&&tt.add(ft.key),ht&&ve.add(ft.key),$e.add(ft.key)}})}return{checkedKeys:Array.from(tt),halfCheckedKeys:Array.from(Ee(ve,tt))}}function Ve(it,ke,we,at,tt){for(var ve=new Set(it),kt=new Set(ke),bt=0;bt<=at;bt+=1){var $e=we.get(bt)||new Set;$e.forEach(function(ft){var Je=ft.key,ot=ft.node,ht=ft.children,yt=ht===void 0?[]:ht;!ve.has(Je)&&!kt.has(Je)&&!tt(ot)&&yt.filter(function(zt){return!tt(zt.node)}).forEach(function(zt){ve.delete(zt.key)})})}kt=new Set;for(var dt=new Set,Qe=at;Qe>=0;Qe-=1){var et=we.get(Qe)||new Set;et.forEach(function(ft){var Je=ft.parent,ot=ft.node;if(!(tt(ot)||!ft.parent||dt.has(ft.parent.key))){if(tt(ft.parent.node)){dt.add(Je.key);return}var ht=!0,yt=!1;(Je.children||[]).filter(function(zt){return!tt(zt.node)}).forEach(function(zt){var Xt=zt.key,Qt=ve.has(Xt);ht&&!Qt&&(ht=!1),!yt&&(Qt||kt.has(Xt))&&(yt=!0)}),ht||ve.delete(Je.key),yt&&kt.add(Je.key),dt.add(Je.key)}})}return{checkedKeys:Array.from(ve),halfCheckedKeys:Array.from(Ee(kt,ve))}}function Re(it,ke,we,at){var tt=[],ve;at?ve=at:ve=lt;var kt=new Set(it.filter(function(Qe){var et=!!we[Qe];return et||tt.push(Qe),et})),bt=new Map,$e=0;Object.keys(we).forEach(function(Qe){var et=we[Qe],ft=et.level,Je=bt.get(ft);Je||(Je=new Set,bt.set(ft,Je)),Je.add(et),$e=Math.max($e,ft)}),(0,te.ZP)(!tt.length,"Tree missing follow keys: ".concat(tt.slice(0,100).map(function(Qe){return"'".concat(Qe,"'")}).join(", ")));var dt;return ke===!0?dt=ct(kt,bt,$e,ve):dt=Ve(kt,ke.halfCheckedKeys,bt,$e,ve),dt}},1089:function(dn,vn,he){"use strict";he.d(vn,{F:function(){return et},H8:function(){return Qe},I8:function(){return dt},km:function(){return at},oH:function(){return bt},w$:function(){return tt},zn:function(){return kt}});var te=he(71002),Ee=he(74902),lt=he(1413),ct=he(45987),Ve=he(98423),Re=he(50344),it=he(80334),ke=he(10225),we=["children"];function at(ft,Je){return ft!=null?ft:Je}function tt(ft){var Je=ft||{},ot=Je.title,ht=Je._title,yt=Je.key,zt=Je.children,Xt=ot||"title";return{title:Xt,_title:ht||[Xt],key:yt||"key",children:zt||"children"}}function ve(ft,Je){var ot=new Map;function ht(yt){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(yt||[]).forEach(function(Xt){var Qt=Xt[Je.key],Ht=Xt[Je.children];warning(Qt!=null,"Tree node must have a certain key: [".concat(zt).concat(Qt,"]"));var wt=String(Qt);warning(!ot.has(wt)||Qt===null||Qt===void 0,"Same 'key' exist in the Tree: ".concat(wt)),ot.set(wt,!0),ht(Ht,"".concat(zt).concat(wt," > "))})}ht(ft)}function kt(ft){function Je(ot){var ht=(0,Re.Z)(ot);return ht.map(function(yt){if(!(0,ke.Ds)(yt))return(0,it.ZP)(!yt,"Tree/TreeNode can only accept TreeNode as children."),null;var zt=yt.key,Xt=yt.props,Qt=Xt.children,Ht=(0,ct.Z)(Xt,we),wt=(0,lt.Z)({key:zt},Ht),Ye=Je(Qt);return Ye.length&&(wt.children=Ye),wt}).filter(function(yt){return yt})}return Je(ft)}function bt(ft,Je,ot){var ht=tt(ot),yt=ht._title,zt=ht.key,Xt=ht.children,Qt=new Set(Je===!0?[]:Je),Ht=[];function wt(Ye){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ye.map(function(qe,ut){for(var Oe=(0,ke.bt)(pt?pt.pos:"0",ut),Ot=at(qe[zt],Oe),Gt,un=0;un<yt.length;un+=1){var Ge=yt[un];if(qe[Ge]!==void 0){Gt=qe[Ge];break}}var Ke=(0,lt.Z)((0,lt.Z)({},(0,Ve.Z)(qe,[].concat((0,Ee.Z)(yt),[zt,Xt]))),{},{title:Gt,key:Ot,parent:pt,pos:Oe,children:null,data:qe,isStart:[].concat((0,Ee.Z)(pt?pt.isStart:[]),[ut===0]),isEnd:[].concat((0,Ee.Z)(pt?pt.isEnd:[]),[ut===Ye.length-1])});return Ht.push(Ke),Je===!0||Qt.has(Ot)?Ke.children=wt(qe[Xt]||[],Ke):Ke.children=[],Ke})}return wt(ft),Ht}function $e(ft,Je,ot){var ht={};(0,te.Z)(ot)==="object"?ht=ot:ht={externalGetKey:ot},ht=ht||{};var yt=ht,zt=yt.childrenPropName,Xt=yt.externalGetKey,Qt=yt.fieldNames,Ht=tt(Qt),wt=Ht.key,Ye=Ht.children,pt=zt||Ye,qe;Xt?typeof Xt=="string"?qe=function(Ot){return Ot[Xt]}:typeof Xt=="function"&&(qe=function(Ot){return Xt(Ot)}):qe=function(Ot,Gt){return at(Ot[wt],Gt)};function ut(Oe,Ot,Gt,un){var Ge=Oe?Oe[pt]:ft,Ke=Oe?(0,ke.bt)(Gt.pos,Ot):"0",Yt=Oe?[].concat((0,Ee.Z)(un),[Oe]):[];if(Oe){var Jt=qe(Oe,Ke),cn={node:Oe,index:Ot,pos:Ke,key:Jt,parentPos:Gt.node?Gt.pos:null,level:Gt.level+1,nodes:Yt};Je(cn)}Ge&&Ge.forEach(function(Lt,Dt){ut(Lt,Dt,{node:Oe,pos:Ke,level:Gt?Gt.level+1:-1},Yt)})}ut(null)}function dt(ft){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ot=Je.initWrapper,ht=Je.processEntity,yt=Je.onProcessFinished,zt=Je.externalGetKey,Xt=Je.childrenPropName,Qt=Je.fieldNames,Ht=arguments.length>2?arguments[2]:void 0,wt=zt||Ht,Ye={},pt={},qe={posEntities:Ye,keyEntities:pt};return ot&&(qe=ot(qe)||qe),$e(ft,function(ut){var Oe=ut.node,Ot=ut.index,Gt=ut.pos,un=ut.key,Ge=ut.parentPos,Ke=ut.level,Yt=ut.nodes,Jt={node:Oe,nodes:Yt,index:Ot,key:un,pos:Gt,level:Ke},cn=at(un,Gt);Ye[Gt]=Jt,pt[cn]=Jt,Jt.parent=Ye[Ge],Jt.parent&&(Jt.parent.children=Jt.parent.children||[],Jt.parent.children.push(Jt)),ht&&ht(Jt,qe)},{externalGetKey:wt,childrenPropName:Xt,fieldNames:Qt}),yt&&yt(qe),qe}function Qe(ft,Je){var ot=Je.expandedKeys,ht=Je.selectedKeys,yt=Je.loadedKeys,zt=Je.loadingKeys,Xt=Je.checkedKeys,Qt=Je.halfCheckedKeys,Ht=Je.dragOverNodeKey,wt=Je.dropPosition,Ye=Je.keyEntities,pt=Ye[ft],qe={eventKey:ft,expanded:ot.indexOf(ft)!==-1,selected:ht.indexOf(ft)!==-1,loaded:yt.indexOf(ft)!==-1,loading:zt.indexOf(ft)!==-1,checked:Xt.indexOf(ft)!==-1,halfChecked:Qt.indexOf(ft)!==-1,pos:String(pt?pt.pos:""),dragOver:Ht===ft&&wt===0,dragOverGapTop:Ht===ft&&wt===-1,dragOverGapBottom:Ht===ft&&wt===1};return qe}function et(ft){var Je=ft.data,ot=ft.expanded,ht=ft.selected,yt=ft.checked,zt=ft.loaded,Xt=ft.loading,Qt=ft.halfChecked,Ht=ft.dragOver,wt=ft.dragOverGapTop,Ye=ft.dragOverGapBottom,pt=ft.pos,qe=ft.active,ut=ft.eventKey,Oe=(0,lt.Z)((0,lt.Z)({},Je),{},{expanded:ot,selected:ht,checked:yt,loaded:zt,loading:Xt,halfChecked:Qt,dragOver:Ht,dragOverGapTop:wt,dragOverGapBottom:Ye,pos:pt,active:qe,key:ut});return"props"in Oe||Object.defineProperty(Oe,"props",{get:function(){return(0,it.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ft}}),Oe}},66012:function(dn,vn,he){"use strict";he.d(vn,{Z5:function(){return sf},_l:function(){return ja},bK:function(){return Vo}});var te=he(67294),Ee=he(89611);function lt(oe,le){oe.prototype=Object.create(le.prototype),oe.prototype.constructor=oe,(0,Ee.Z)(oe,le)}var ct=he(87462),Ve=he(14890),Re=te.createContext(null),it=null;function ke(oe){oe()}var we=ke,at=function(le){return we=le},tt=function(){return we};function ve(){var oe=tt(),le=null,de=null;return{clear:function(){le=null,de=null},notify:function(){oe(function(){for(var Ie=le;Ie;)Ie.callback(),Ie=Ie.next})},get:function(){for(var Ie=[],Pe=le;Pe;)Ie.push(Pe),Pe=Pe.next;return Ie},subscribe:function(Ie){var Pe=!0,ze=de={callback:Ie,next:null,prev:de};return ze.prev?ze.prev.next=ze:le=ze,function(){!Pe||le===null||(Pe=!1,ze.next?ze.next.prev=ze.prev:de=ze.prev,ze.prev?ze.prev.next=ze.next:le=ze.next)}}}}var kt={notify:function(){},get:function(){return[]}};function bt(oe,le){var de,xe=kt;function Ie(Et){return At(),xe.subscribe(Et)}function Pe(){xe.notify()}function ze(){st.onStateChange&&st.onStateChange()}function je(){return!!de}function At(){de||(de=le?le.addNestedSub(ze):oe.subscribe(ze),xe=ve())}function Ut(){de&&(de(),de=void 0,xe.clear(),xe=kt)}var st={addNestedSub:Ie,notifyNestedSubs:Pe,handleChangeWrapper:ze,isSubscribed:je,trySubscribe:At,tryUnsubscribe:Ut,getListeners:function(){return xe}};return st}var $e=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?te.useLayoutEffect:te.useEffect;function dt(oe){var le=oe.store,de=oe.context,xe=oe.children,Ie=(0,te.useMemo)(function(){var je=bt(le);return{store:le,subscription:je}},[le]),Pe=(0,te.useMemo)(function(){return le.getState()},[le]);$e(function(){var je=Ie.subscription;return je.onStateChange=je.notifyNestedSubs,je.trySubscribe(),Pe!==le.getState()&&je.notifyNestedSubs(),function(){je.tryUnsubscribe(),je.onStateChange=null}},[Ie,Pe]);var ze=de||Re;return te.createElement(ze.Provider,{value:Ie},xe)}var Qe=dt,et=he(63366),ft=he(8679),Je=he.n(ft),ot=he(72973),ht=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],yt=["reactReduxForwardedRef"],zt=[],Xt=[null,null],Qt=function(le){try{return JSON.stringify(le)}catch(de){return String(le)}};function Ht(oe,le){var de=oe[1];return[le.payload,de+1]}function wt(oe,le,de){$e(function(){return oe.apply(void 0,le)},de)}function Ye(oe,le,de,xe,Ie,Pe,ze){oe.current=xe,le.current=Ie,de.current=!1,Pe.current&&(Pe.current=null,ze())}function pt(oe,le,de,xe,Ie,Pe,ze,je,At,Ut){if(oe){var st=!1,Et=null,Pt=function(){if(!st){var zr=le.getState(),Yr,ni;try{Yr=xe(zr,Ie.current)}catch(Ii){ni=Ii,Et=Ii}ni||(Et=null),Yr===Pe.current?ze.current||At():(Pe.current=Yr,je.current=Yr,ze.current=!0,Ut({type:"STORE_UPDATED",payload:{error:ni}}))}};de.onStateChange=Pt,de.trySubscribe(),Pt();var en=function(){if(st=!0,de.tryUnsubscribe(),de.onStateChange=null,Et)throw Et};return en}}var qe=function(){return[null,0]};function ut(oe,le){le===void 0&&(le={});var de=le,xe=de.getDisplayName,Ie=xe===void 0?function(ga){return"ConnectAdvanced("+ga+")"}:xe,Pe=de.methodName,ze=Pe===void 0?"connectAdvanced":Pe,je=de.renderCountProp,At=je===void 0?void 0:je,Ut=de.shouldHandleStateChanges,st=Ut===void 0?!0:Ut,Et=de.storeKey,Pt=Et===void 0?"store":Et,en=de.withRef,Fn=en===void 0?!1:en,zr=de.forwardRef,Yr=zr===void 0?!1:zr,ni=de.context,Ii=ni===void 0?Re:ni,ra=(0,et.Z)(de,ht);if(0)var da;var Ya=Ii;return function(vo){var rl=vo.displayName||vo.name||"Component",go=Ie(rl),ts=(0,ct.Z)({},ra,{getDisplayName:Ie,methodName:ze,renderCountProp:At,shouldHandleStateChanges:st,storeKey:Pt,displayName:go,wrappedComponentName:rl,WrappedComponent:vo}),Xl=ra.pure;function Bl(ru){return oe(ru.dispatch,ts)}var Du=Xl?te.useMemo:function(ru){return ru()};function Xu(ru){var _c=(0,te.useMemo)(function(){var zd=ru.reactReduxForwardedRef,Wd=(0,et.Z)(ru,yt);return[ru.context,zd,Wd]},[ru]),yc=_c[0],Dc=_c[1],ic=_c[2],bc=(0,te.useMemo)(function(){return yc&&yc.Consumer&&(0,ot.isContextConsumer)(te.createElement(yc.Consumer,null))?yc:Ya},[yc,Ya]),du=(0,te.useContext)(bc),Bu=!!ru.store&&!!ru.store.getState&&!!ru.store.dispatch,df=!!du&&!!du.store,ac=Bu?ru.store:du.store,id=(0,te.useMemo)(function(){return Bl(ac)},[ac]),Kd=(0,te.useMemo)(function(){if(!st)return Xt;var zd=bt(ac,Bu?null:du.subscription),Wd=zd.notifyNestedSubs.bind(zd);return[zd,Wd]},[ac,Bu,du]),wd=Kd[0],ff=Kd[1],hf=(0,te.useMemo)(function(){return Bu?du:(0,ct.Z)({},du,{subscription:wd})},[Bu,du,wd]),ch=(0,te.useReducer)(Ht,zt,qe),Zh=ch[0],Hd=Zh[0],Gh=ch[1];if(Hd&&Hd.error)throw Hd.error;var dh=(0,te.useRef)(),Wf=(0,te.useRef)(ic),pf=(0,te.useRef)(),fh=(0,te.useRef)(!1),mf=Du(function(){return pf.current&&ic===Wf.current?pf.current:id(ac.getState(),ic)},[ac,Hd,ic]);wt(Ye,[Wf,dh,fh,ic,mf,pf,ff]),wt(pt,[st,ac,wd,id,Wf,dh,fh,pf,ff,Gh],[ac,wd,id]);var Vf=(0,te.useMemo)(function(){return te.createElement(vo,(0,ct.Z)({},mf,{ref:Dc}))},[Dc,vo,mf]),Yh=(0,te.useMemo)(function(){return st?te.createElement(bc.Provider,{value:hf},Vf):Vf},[bc,Vf,hf]);return Yh}var Ou=Xl?te.memo(Xu):Xu;if(Ou.WrappedComponent=vo,Ou.displayName=Xu.displayName=go,Yr){var Ru=te.forwardRef(function(_c,yc){return te.createElement(Ou,(0,ct.Z)({},_c,{reactReduxForwardedRef:yc}))});return Ru.displayName=go,Ru.WrappedComponent=vo,Je()(Ru,vo)}return Je()(Ou,vo)}}function Oe(oe,le){return oe===le?oe!==0||le!==0||1/oe===1/le:oe!==oe&&le!==le}function Ot(oe,le){if(Oe(oe,le))return!0;if(typeof oe!="object"||oe===null||typeof le!="object"||le===null)return!1;var de=Object.keys(oe),xe=Object.keys(le);if(de.length!==xe.length)return!1;for(var Ie=0;Ie<de.length;Ie++)if(!Object.prototype.hasOwnProperty.call(le,de[Ie])||!Oe(oe[de[Ie]],le[de[Ie]]))return!1;return!0}function Gt(oe,le){var de={},xe=function(ze){var je=oe[ze];typeof je=="function"&&(de[ze]=function(){return le(je.apply(void 0,arguments))})};for(var Ie in oe)xe(Ie);return de}function un(oe){return function(de,xe){var Ie=oe(de,xe);function Pe(){return Ie}return Pe.dependsOnOwnProps=!1,Pe}}function Ge(oe){return oe.dependsOnOwnProps!==null&&oe.dependsOnOwnProps!==void 0?!!oe.dependsOnOwnProps:oe.length!==1}function Ke(oe,le){return function(xe,Ie){var Pe=Ie.displayName,ze=function(At,Ut){return ze.dependsOnOwnProps?ze.mapToProps(At,Ut):ze.mapToProps(At)};return ze.dependsOnOwnProps=!0,ze.mapToProps=function(At,Ut){ze.mapToProps=oe,ze.dependsOnOwnProps=Ge(oe);var st=ze(At,Ut);return typeof st=="function"&&(ze.mapToProps=st,ze.dependsOnOwnProps=Ge(st),st=ze(At,Ut)),st},ze}}function Yt(oe){return typeof oe=="function"?Ke(oe,"mapDispatchToProps"):void 0}function Jt(oe){return oe?void 0:un(function(le){return{dispatch:le}})}function cn(oe){return oe&&typeof oe=="object"?un(function(le){return Gt(oe,le)}):void 0}var Lt=[Yt,Jt,cn];function Dt(oe){return typeof oe=="function"?Ke(oe,"mapStateToProps"):void 0}function wn(oe){return oe?void 0:un(function(){return{}})}var _n=[Dt,wn];function on(oe,le,de){return(0,ct.Z)({},de,oe,le)}function kn(oe){return function(de,xe){var Ie=xe.displayName,Pe=xe.pure,ze=xe.areMergedPropsEqual,je=!1,At;return function(st,Et,Pt){var en=oe(st,Et,Pt);return je?(!Pe||!ze(en,At))&&(At=en):(je=!0,At=en),At}}}function xn(oe){return typeof oe=="function"?kn(oe):void 0}function Vn(oe){return oe?void 0:function(){return on}}var er=[xn,Vn],Me=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function ce(oe,le,de,xe){return function(Pe,ze){return de(oe(Pe,ze),le(xe,ze),ze)}}function fe(oe,le,de,xe,Ie){var Pe=Ie.areStatesEqual,ze=Ie.areOwnPropsEqual,je=Ie.areStatePropsEqual,At=!1,Ut,st,Et,Pt,en;function Fn(ra,da){return Ut=ra,st=da,Et=oe(Ut,st),Pt=le(xe,st),en=de(Et,Pt,st),At=!0,en}function zr(){return Et=oe(Ut,st),le.dependsOnOwnProps&&(Pt=le(xe,st)),en=de(Et,Pt,st),en}function Yr(){return oe.dependsOnOwnProps&&(Et=oe(Ut,st)),le.dependsOnOwnProps&&(Pt=le(xe,st)),en=de(Et,Pt,st),en}function ni(){var ra=oe(Ut,st),da=!je(ra,Et);return Et=ra,da&&(en=de(Et,Pt,st)),en}function Ii(ra,da){var Ya=!ze(da,st),ga=!Pe(ra,Ut,da,st);return Ut=ra,st=da,Ya&&ga?zr():Ya?Yr():ga?ni():en}return function(da,Ya){return At?Ii(da,Ya):Fn(da,Ya)}}function be(oe,le){var de=le.initMapStateToProps,xe=le.initMapDispatchToProps,Ie=le.initMergeProps,Pe=(0,et.Z)(le,Me),ze=de(oe,Pe),je=xe(oe,Pe),At=Ie(oe,Pe),Ut=Pe.pure?fe:ce;return Ut(ze,je,At,oe,Pe)}var ge=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function ue(oe,le,de){for(var xe=le.length-1;xe>=0;xe--){var Ie=le[xe](oe);if(Ie)return Ie}return function(Pe,ze){throw new Error("Invalid value of type "+typeof oe+" for "+de+" argument when connecting component "+ze.wrappedComponentName+".")}}function Xe(oe,le){return oe===le}function _t(oe){var le=oe===void 0?{}:oe,de=le.connectHOC,xe=de===void 0?ut:de,Ie=le.mapStateToPropsFactories,Pe=Ie===void 0?_n:Ie,ze=le.mapDispatchToPropsFactories,je=ze===void 0?Lt:ze,At=le.mergePropsFactories,Ut=At===void 0?er:At,st=le.selectorFactory,Et=st===void 0?be:st;return function(en,Fn,zr,Yr){Yr===void 0&&(Yr={});var ni=Yr,Ii=ni.pure,ra=Ii===void 0?!0:Ii,da=ni.areStatesEqual,Ya=da===void 0?Xe:da,ga=ni.areOwnPropsEqual,vo=ga===void 0?Ot:ga,rl=ni.areStatePropsEqual,go=rl===void 0?Ot:rl,ts=ni.areMergedPropsEqual,Xl=ts===void 0?Ot:ts,Bl=(0,et.Z)(ni,ge),Du=ue(en,Pe,"mapStateToProps"),Xu=ue(Fn,je,"mapDispatchToProps"),Ou=ue(zr,Ut,"mergeProps");return xe(Et,(0,ct.Z)({methodName:"connect",getDisplayName:function(ru){return"Connect("+ru+")"},shouldHandleStateChanges:!!en,initMapStateToProps:Du,initMapDispatchToProps:Xu,initMergeProps:Ou,pure:ra,areStatesEqual:Ya,areOwnPropsEqual:vo,areStatePropsEqual:go,areMergedPropsEqual:Xl},Bl))}}var Zt=_t();function Dn(){var oe=useContext(ReactReduxContext);return oe}function An(oe){oe===void 0&&(oe=ReactReduxContext);var le=oe===ReactReduxContext?useDefaultReduxContext:function(){return useContext(oe)};return function(){var xe=le(),Ie=xe.store;return Ie}}var yn=null;function nn(oe){oe===void 0&&(oe=ReactReduxContext);var le=oe===ReactReduxContext?useDefaultStore:createStoreHook(oe);return function(){var xe=le();return xe.dispatch}}var Ar=null,Dr=function(le,de){return le===de};function ln(oe,le,de,xe){var Ie=useReducer(function(Fn){return Fn+1},0),Pe=Ie[1],ze=useMemo(function(){return createSubscription(de,xe)},[de,xe]),je=useRef(),At=useRef(),Ut=useRef(),st=useRef(),Et=de.getState(),Pt;try{if(oe!==At.current||Et!==Ut.current||je.current){var en=oe(Et);st.current===void 0||!le(en,st.current)?Pt=en:Pt=st.current}else Pt=st.current}catch(Fn){throw je.current&&(Fn.message+=`
|
|
|
The error may be correlated with this previous error:
|
|
|
`+je.current.stack+`
|
|
|
|
|
|
`),Fn}return useIsomorphicLayoutEffect(function(){At.current=oe,Ut.current=Et,st.current=Pt,je.current=void 0}),useIsomorphicLayoutEffect(function(){function Fn(){try{var zr=de.getState();if(zr===Ut.current)return;var Yr=At.current(zr);if(le(Yr,st.current))return;st.current=Yr,Ut.current=zr}catch(ni){je.current=ni}Pe()}return ze.onStateChange=Fn,ze.trySubscribe(),Fn(),function(){return ze.tryUnsubscribe()}},[de,ze]),Pt}function jn(oe){oe===void 0&&(oe=ReactReduxContext);var le=oe===ReactReduxContext?useDefaultReduxContext:function(){return useContext(oe)};return function(xe,Ie){Ie===void 0&&(Ie=Dr);var Pe=le(),ze=Pe.store,je=Pe.subscription,At=ln(xe,Ie,ze,je);return useDebugValue(At),At}}var wi=null,$r=he(73935);at($r.unstable_batchedUpdates);function Ir(oe,le){if(oe.length!==le.length)return!1;for(var de=0;de<oe.length;de++)if(oe[de]!==le[de])return!1;return!0}function Or(oe,le){var de=(0,te.useState)(function(){return{inputs:le,result:oe()}})[0],xe=(0,te.useRef)(!0),Ie=(0,te.useRef)(de),Pe=xe.current||!!(le&&Ie.current.inputs&&Ir(le,Ie.current.inputs)),ze=Pe?Ie.current:{inputs:le,result:oe()};return(0,te.useEffect)(function(){xe.current=!1,Ie.current=ze},[ze]),ze.result}function Ca(oe,le){return Or(function(){return oe},le)}var ur=Or,Yn=Ca,oi=!0,Si="Invariant failed";function Ti(oe,le){if(!oe){if(oi)throw new Error(Si);var de=typeof le=="function"?le():le,xe=de?"".concat(Si,": ").concat(de):Si;throw new Error(xe)}}var Ni=function(le){var de=le.top,xe=le.right,Ie=le.bottom,Pe=le.left,ze=xe-Pe,je=Ie-de,At={top:de,right:xe,bottom:Ie,left:Pe,width:ze,height:je,x:Pe,y:de,center:{x:(xe+Pe)/2,y:(Ie+de)/2}};return At},Fi=function(le,de){return{top:le.top-de.top,left:le.left-de.left,bottom:le.bottom+de.bottom,right:le.right+de.right}},Wr=function(le,de){return{top:le.top+de.top,left:le.left+de.left,bottom:le.bottom-de.bottom,right:le.right-de.right}},qr=function(le,de){return{top:le.top+de.y,left:le.left+de.x,bottom:le.bottom+de.y,right:le.right+de.x}},Ta={top:0,right:0,bottom:0,left:0},Da=function(le){var de=le.borderBox,xe=le.margin,Ie=xe===void 0?Ta:xe,Pe=le.border,ze=Pe===void 0?Ta:Pe,je=le.padding,At=je===void 0?Ta:je,Ut=Ni(Fi(de,Ie)),st=Ni(Wr(de,ze)),Et=Ni(Wr(st,At));return{marginBox:Ut,borderBox:Ni(de),paddingBox:st,contentBox:Et,margin:Ie,border:ze,padding:At}},Tr=function(le){var de=le.slice(0,-2),xe=le.slice(-2);if(xe!=="px")return 0;var Ie=Number(de);return isNaN(Ie)&&Ti(!1),Ie},_i=function(){return{x:window.pageXOffset,y:window.pageYOffset}},jr=function(le,de){var xe=le.borderBox,Ie=le.border,Pe=le.margin,ze=le.padding,je=qr(xe,de);return Da({borderBox:je,border:Ie,margin:Pe,padding:ze})},di=function(le,de){return de===void 0&&(de=_i()),jr(le,de)},Lo=function(le,de){var xe={top:Tr(de.marginTop),right:Tr(de.marginRight),bottom:Tr(de.marginBottom),left:Tr(de.marginLeft)},Ie={top:Tr(de.paddingTop),right:Tr(de.paddingRight),bottom:Tr(de.paddingBottom),left:Tr(de.paddingLeft)},Pe={top:Tr(de.borderTopWidth),right:Tr(de.borderRightWidth),bottom:Tr(de.borderBottomWidth),left:Tr(de.borderLeftWidth)};return Da({borderBox:le,margin:xe,padding:Ie,border:Pe})},ro=function(le){var de=le.getBoundingClientRect(),xe=window.getComputedStyle(le);return Lo(de,xe)},Hi=Number.isNaN||function(le){return typeof le=="number"&&le!==le};function Ko(oe,le){return!!(oe===le||Hi(oe)&&Hi(le))}function Zo(oe,le){if(oe.length!==le.length)return!1;for(var de=0;de<oe.length;de++)if(!Ko(oe[de],le[de]))return!1;return!0}function zi(oe,le){le===void 0&&(le=Zo);var de,xe=[],Ie,Pe=!1;function ze(){for(var je=[],At=0;At<arguments.length;At++)je[At]=arguments[At];return Pe&&de===this&&le(je,xe)||(Ie=oe.apply(this,je),Pe=!0,de=this,xe=je),Ie}return ze}var Pr=zi,ta=function(le){var de=[],xe=null,Ie=function(){for(var ze=arguments.length,je=new Array(ze),At=0;At<ze;At++)je[At]=arguments[At];de=je,!xe&&(xe=requestAnimationFrame(function(){xe=null,le.apply(void 0,de)}))};return Ie.cancel=function(){xe&&(cancelAnimationFrame(xe),xe=null)},Ie},Wa=ta,yo=!0,Eo=/[ \t]{2,}/g,bo=/^[ \t]*/gm,rs=function(le){return le.replace(Eo," ").replace(bo,"").trim()},fo=function(le){return rs(`
|
|
|
%creact-beautiful-dnd
|
|
|
|
|
|
%c`+rs(le)+`
|
|
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
|
`)},ka=function(le){return[fo(le),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},mi="__react-beautiful-dnd-disable-dev-warnings";function Fo(oe,le){var de;yo||typeof window!="undefined"&&window[mi]||(de=console)[oe].apply(de,ka(le))}var Xo=Fo.bind(null,"warn"),Ja=Fo.bind(null,"error");function Na(){}function Rs(oe,le){return(0,ct.Z)({},oe,{},le)}function io(oe,le,de){var xe=le.map(function(Ie){var Pe=Rs(de,Ie.options);return oe.addEventListener(Ie.eventName,Ie.fn,Pe),function(){oe.removeEventListener(Ie.eventName,Ie.fn,Pe)}});return function(){xe.forEach(function(Pe){Pe()})}}var lo=!0,cr="Invariant failed";function Xi(oe){this.message=oe}Xi.prototype.toString=function(){return this.message};function br(oe,le){if(!oe)throw lo?new Xi(cr):new Xi(cr+": "+(le||""))}var Cl=function(oe){lt(le,oe);function le(){for(var xe,Ie=arguments.length,Pe=new Array(Ie),ze=0;ze<Ie;ze++)Pe[ze]=arguments[ze];return xe=oe.call.apply(oe,[this].concat(Pe))||this,xe.callbacks=null,xe.unbind=Na,xe.onWindowError=function(je){var At=xe.getCallbacks();At.isDragging()&&At.tryAbort();var Ut=je.error;Ut instanceof Xi&&je.preventDefault()},xe.getCallbacks=function(){if(!xe.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return xe.callbacks},xe.setCallbacks=function(je){xe.callbacks=je},xe}var de=le.prototype;return de.componentDidMount=function(){this.unbind=io(window,[{eventName:"error",fn:this.onWindowError}])},de.componentWillUnmount=function(){this.unbind()},de.componentDidCatch=function(Ie){if(Ie instanceof Xi){this.setState({});return}throw Ie},de.render=function(){return this.props.children(this.setCallbacks)},le}(te.Component),fs=`
|
|
|
Press space bar to start a drag.
|
|
|
When dragging you can use the arrow keys to move the item around and escape to cancel.
|
|
|
Some screen readers may require you to be in focus mode or to use your pass through key
|
|
|
`,ho=function(le){return le+1},Ll=function(le){return`
|
|
|
You have lifted an item in position `+ho(le.source.index)+`
|
|
|
`},Ma=function(le,de){var xe=le.droppableId===de.droppableId,Ie=ho(le.index),Pe=ho(de.index);return xe?`
|
|
|
You have moved the item from position `+Ie+`
|
|
|
to position `+Pe+`
|
|
|
`:`
|
|
|
You have moved the item from position `+Ie+`
|
|
|
in list `+le.droppableId+`
|
|
|
to list `+de.droppableId+`
|
|
|
in position `+Pe+`
|
|
|
`},El=function(le,de,xe){var Ie=de.droppableId===xe.droppableId;return Ie?`
|
|
|
The item `+le+`
|
|
|
has been combined with `+xe.draggableId:`
|
|
|
The item `+le+`
|
|
|
in list `+de.droppableId+`
|
|
|
has been combined with `+xe.draggableId+`
|
|
|
in list `+xe.droppableId+`
|
|
|
`},Xn=function(le){var de=le.destination;if(de)return Ma(le.source,de);var xe=le.combine;return xe?El(le.draggableId,le.source,xe):"You are over an area that cannot be dropped on"},Go=function(le){return`
|
|
|
The item has returned to its starting position
|
|
|
of `+ho(le.index)+`
|
|
|
`},hs=function(le){if(le.reason==="CANCEL")return`
|
|
|
Movement cancelled.
|
|
|
`+Go(le.source)+`
|
|
|
`;var de=le.destination,xe=le.combine;return de?`
|
|
|
You have dropped the item.
|
|
|
`+Ma(le.source,de)+`
|
|
|
`:xe?`
|
|
|
You have dropped the item.
|
|
|
`+El(le.draggableId,le.source,xe)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+Go(le.source)+`
|
|
|
`},Ws={dragHandleUsageInstructions:fs,onDragStart:Ll,onDragUpdate:Xn,onDragEnd:hs},xo={x:0,y:0},co=function(le,de){return{x:le.x+de.x,y:le.y+de.y}},Ho=function(le,de){return{x:le.x-de.x,y:le.y-de.y}},ps=function(le,de){return le.x===de.x&&le.y===de.y},Ro=function(le){return{x:le.x!==0?-le.x:0,y:le.y!==0?-le.y:0}},qo=function(le,de,xe){var Ie;return xe===void 0&&(xe=0),Ie={},Ie[le]=de,Ie[le==="x"?"y":"x"]=xe,Ie},Va=function(le,de){return Math.sqrt(Math.pow(de.x-le.x,2)+Math.pow(de.y-le.y,2))},Ms=function(le,de){return Math.min.apply(Math,de.map(function(xe){return Va(le,xe)}))},Vl=function(le){return function(de){return{x:le(de.x),y:le(de.y)}}},qs=function(oe,le){var de=Ni({top:Math.max(le.top,oe.top),right:Math.min(le.right,oe.right),bottom:Math.min(le.bottom,oe.bottom),left:Math.max(le.left,oe.left)});return de.width<=0||de.height<=0?null:de},il=function(le,de){return{top:le.top+de.y,left:le.left+de.x,bottom:le.bottom+de.y,right:le.right+de.x}},Ds=function(le){return[{x:le.left,y:le.top},{x:le.right,y:le.top},{x:le.left,y:le.bottom},{x:le.right,y:le.bottom}]},So={top:0,right:0,bottom:0,left:0},al=function(le,de){return de?il(le,de.scroll.diff.displacement):le},Sl=function(le,de,xe){if(xe&&xe.increasedBy){var Ie;return(0,ct.Z)({},le,(Ie={},Ie[de.end]=le[de.end]+xe.increasedBy[de.line],Ie))}return le},Vs=function(le,de){return de&&de.shouldClipSubject?qs(de.pageMarginBox,le):Ni(le)},ol=function(oe){var le=oe.page,de=oe.withPlaceholder,xe=oe.axis,Ie=oe.frame,Pe=al(le.marginBox,Ie),ze=Sl(Pe,xe,de),je=Vs(ze,Ie);return{page:le,withPlaceholder:de,active:je}},Bs=function(oe,le){oe.frame||br(!1);var de=oe.frame,xe=Ho(le,de.scroll.initial),Ie=Ro(xe),Pe=(0,ct.Z)({},de,{scroll:{initial:de.scroll.initial,current:le,diff:{value:xe,displacement:Ie},max:de.scroll.max}}),ze=ol({page:oe.subject.page,withPlaceholder:oe.subject.withPlaceholder,axis:oe.axis,frame:Pe}),je=(0,ct.Z)({},oe,{frame:Pe,subject:ze});return je};function Us(oe){return Number.isInteger?Number.isInteger(oe):typeof oe=="number"&&isFinite(oe)&&Math.floor(oe)===oe}function js(oe){return Object.values?Object.values(oe):Object.keys(oe).map(function(le){return oe[le]})}function ml(oe,le){if(oe.findIndex)return oe.findIndex(le);for(var de=0;de<oe.length;de++)if(le(oe[de]))return de;return-1}function Ua(oe,le){if(oe.find)return oe.find(le);var de=ml(oe,le);if(de!==-1)return oe[de]}function _s(oe){return Array.prototype.slice.call(oe)}var ms=Pr(function(oe){return oe.reduce(function(le,de){return le[de.descriptor.id]=de,le},{})}),Zs=Pr(function(oe){return oe.reduce(function(le,de){return le[de.descriptor.id]=de,le},{})}),Ks=Pr(function(oe){return js(oe)}),sl=Pr(function(oe){return js(oe)}),vs=Pr(function(oe,le){var de=sl(le).filter(function(xe){return oe===xe.descriptor.droppableId}).sort(function(xe,Ie){return xe.descriptor.index-Ie.descriptor.index});return de});function gs(oe){return oe.at&&oe.at.type==="REORDER"?oe.at.destination:null}function _e(oe){return oe.at&&oe.at.type==="COMBINE"?oe.at.combine:null}var nt=Pr(function(oe,le){return le.filter(function(de){return de.descriptor.id!==oe.descriptor.id})}),pn=function(oe){var le=oe.isMovingForward,de=oe.draggable,xe=oe.destination,Ie=oe.insideDestination,Pe=oe.previousImpact;if(!xe.isCombineEnabled)return null;var ze=gs(Pe);if(!ze)return null;function je(zr){var Yr={type:"COMBINE",combine:{draggableId:zr,droppableId:xe.descriptor.id}};return(0,ct.Z)({},Pe,{at:Yr})}var At=Pe.displaced.all,Ut=At.length?At[0]:null;if(le)return Ut?je(Ut):null;var st=nt(de,Ie);if(!Ut){if(!st.length)return null;var Et=st[st.length-1];return je(Et.descriptor.id)}var Pt=ml(st,function(zr){return zr.descriptor.id===Ut});Pt===-1&&br(!1);var en=Pt-1;if(en<0)return null;var Fn=st[en];return je(Fn.descriptor.id)},Ae=function(oe,le){return oe.descriptor.droppableId===le.descriptor.id},St={point:xo,value:0},Ft={invisible:{},visible:{},all:[]},an={displaced:Ft,displacedBy:St,at:null},Rt=function(oe,le){return function(de){return oe<=de&&de<=le}},In=function(oe){var le=Rt(oe.top,oe.bottom),de=Rt(oe.left,oe.right);return function(xe){var Ie=le(xe.top)&&le(xe.bottom)&&de(xe.left)&&de(xe.right);if(Ie)return!0;var Pe=le(xe.top)||le(xe.bottom),ze=de(xe.left)||de(xe.right),je=Pe&&ze;if(je)return!0;var At=xe.top<oe.top&&xe.bottom>oe.bottom,Ut=xe.left<oe.left&&xe.right>oe.right,st=At&&Ut;if(st)return!0;var Et=At&&ze||Ut&&Pe;return Et}},zn=function(oe){var le=Rt(oe.top,oe.bottom),de=Rt(oe.left,oe.right);return function(xe){var Ie=le(xe.top)&&le(xe.bottom)&&de(xe.left)&&de(xe.right);return Ie}},Rn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Mn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},sn=function(oe){return function(le){var de=Rt(le.top,le.bottom),xe=Rt(le.left,le.right);return function(Ie){return oe===Rn?de(Ie.top)&&de(Ie.bottom):xe(Ie.left)&&xe(Ie.right)}}},Bn=function(le,de){var xe=de.frame?de.frame.scroll.diff.displacement:xo;return il(le,xe)},Tn=function(le,de,xe){return de.subject.active?xe(de.subject.active)(le):!1},Kn=function(le,de,xe){return xe(de)(le)},Zr=function(le){var de=le.target,xe=le.destination,Ie=le.viewport,Pe=le.withDroppableDisplacement,ze=le.isVisibleThroughFrameFn,je=Pe?Bn(de,xe):de;return Tn(je,xe,ze)&&Kn(je,Ie,ze)},li=function(le){return Zr((0,ct.Z)({},le,{isVisibleThroughFrameFn:In}))},Gi=function(le){return Zr((0,ct.Z)({},le,{isVisibleThroughFrameFn:zn}))},Oi=function(le){return Zr((0,ct.Z)({},le,{isVisibleThroughFrameFn:sn(le.destination.axis)}))},fa=function(le,de,xe){if(typeof xe=="boolean")return xe;if(!de)return!0;var Ie=de.invisible,Pe=de.visible;if(Ie[le])return!1;var ze=Pe[le];return ze?ze.shouldAnimate:!0};function xa(oe,le){var de=oe.page.marginBox,xe={top:le.point.y,right:0,bottom:0,left:le.point.x};return Ni(Fi(de,xe))}function Oa(oe){var le=oe.afterDragging,de=oe.destination,xe=oe.displacedBy,Ie=oe.viewport,Pe=oe.forceShouldAnimate,ze=oe.last;return le.reduce(function(At,Ut){var st=xa(Ut,xe),Et=Ut.descriptor.id;At.all.push(Et);var Pt=li({target:st,destination:de,viewport:Ie,withDroppableDisplacement:!0});if(!Pt)return At.invisible[Ut.descriptor.id]=!0,At;var en=fa(Et,ze,Pe),Fn={draggableId:Et,shouldAnimate:en};return At.visible[Et]=Fn,At},{all:[],visible:{},invisible:{}})}function _a(oe,le){if(!oe.length)return 0;var de=oe[oe.length-1].descriptor.index;return le.inHomeList?de:de+1}function $a(oe){var le=oe.insideDestination,de=oe.inHomeList,xe=oe.displacedBy,Ie=oe.destination,Pe=_a(le,{inHomeList:de});return{displaced:Ft,displacedBy:xe,at:{type:"REORDER",destination:{droppableId:Ie.descriptor.id,index:Pe}}}}function Pa(oe){var le=oe.draggable,de=oe.insideDestination,xe=oe.destination,Ie=oe.viewport,Pe=oe.displacedBy,ze=oe.last,je=oe.index,At=oe.forceShouldAnimate,Ut=Ae(le,xe);if(je==null)return $a({insideDestination:de,inHomeList:Ut,displacedBy:Pe,destination:xe});var st=Ua(de,function(zr){return zr.descriptor.index===je});if(!st)return $a({insideDestination:de,inHomeList:Ut,displacedBy:Pe,destination:xe});var Et=nt(le,de),Pt=de.indexOf(st),en=Et.slice(Pt),Fn=Oa({afterDragging:en,destination:xe,displacedBy:Pe,last:ze,viewport:Ie.frame,forceShouldAnimate:At});return{displaced:Fn,displacedBy:Pe,at:{type:"REORDER",destination:{droppableId:xe.descriptor.id,index:je}}}}function Za(oe,le){return!!le.effected[oe]}var Po=function(oe){var le=oe.isMovingForward,de=oe.destination,xe=oe.draggables,Ie=oe.combine,Pe=oe.afterCritical;if(!de.isCombineEnabled)return null;var ze=Ie.draggableId,je=xe[ze],At=je.descriptor.index,Ut=Za(ze,Pe);return Ut?le?At:At-1:le?At+1:At},tn=function(oe){var le=oe.isMovingForward,de=oe.isInHomeList,xe=oe.insideDestination,Ie=oe.location;if(!xe.length)return null;var Pe=Ie.index,ze=le?Pe+1:Pe-1,je=xe[0].descriptor.index,At=xe[xe.length-1].descriptor.index,Ut=de?At:At+1;return ze<je||ze>Ut?null:ze},rn=function(oe){var le=oe.isMovingForward,de=oe.isInHomeList,xe=oe.draggable,Ie=oe.draggables,Pe=oe.destination,ze=oe.insideDestination,je=oe.previousImpact,At=oe.viewport,Ut=oe.afterCritical,st=je.at;if(st||br(!1),st.type==="REORDER"){var Et=tn({isMovingForward:le,isInHomeList:de,location:st.destination,insideDestination:ze});return Et==null?null:Pa({draggable:xe,insideDestination:ze,destination:Pe,viewport:At,last:je.displaced,displacedBy:je.displacedBy,index:Et})}var Pt=Po({isMovingForward:le,destination:Pe,displaced:je.displaced,draggables:Ie,combine:st.combine,afterCritical:Ut});return Pt==null?null:Pa({draggable:xe,insideDestination:ze,destination:Pe,viewport:At,last:je.displaced,displacedBy:je.displacedBy,index:Pt})},fn=function(oe){var le=oe.displaced,de=oe.afterCritical,xe=oe.combineWith,Ie=oe.displacedBy,Pe=!!(le.visible[xe]||le.invisible[xe]);return Za(xe,de)?Pe?xo:Ro(Ie.point):Pe?Ie.point:xo},Hn=function(oe){var le=oe.afterCritical,de=oe.impact,xe=oe.draggables,Ie=_e(de);Ie||br(!1);var Pe=Ie.draggableId,ze=xe[Pe].page.borderBox.center,je=fn({displaced:de.displaced,afterCritical:le,combineWith:Pe,displacedBy:de.displacedBy});return co(ze,je)},ei=function(le,de){return de.margin[le.start]+de.borderBox[le.size]/2},Wi=function(le,de){return de.margin[le.end]+de.borderBox[le.size]/2},Zn=function(le,de,xe){return de[le.crossAxisStart]+xe.margin[le.crossAxisStart]+xe.borderBox[le.crossAxisSize]/2},Lr=function(le){var de=le.axis,xe=le.moveRelativeTo,Ie=le.isMoving;return qo(de.line,xe.marginBox[de.end]+ei(de,Ie),Zn(de,xe.marginBox,Ie))},vi=function(le){var de=le.axis,xe=le.moveRelativeTo,Ie=le.isMoving;return qo(de.line,xe.marginBox[de.start]-Wi(de,Ie),Zn(de,xe.marginBox,Ie))},qi=function(le){var de=le.axis,xe=le.moveInto,Ie=le.isMoving;return qo(de.line,xe.contentBox[de.start]+ei(de,Ie),Zn(de,xe.contentBox,Ie))},Kr=function(oe){var le=oe.impact,de=oe.draggable,xe=oe.draggables,Ie=oe.droppable,Pe=oe.afterCritical,ze=vs(Ie.descriptor.id,xe),je=de.page,At=Ie.axis;if(!ze.length)return qi({axis:At,moveInto:Ie.page,isMoving:je});var Ut=le.displaced,st=le.displacedBy,Et=Ut.all[0];if(Et){var Pt=xe[Et];if(Za(Et,Pe))return vi({axis:At,moveRelativeTo:Pt.page,isMoving:je});var en=jr(Pt.page,st.point);return vi({axis:At,moveRelativeTo:en,isMoving:je})}var Fn=ze[ze.length-1];if(Fn.descriptor.id===de.descriptor.id)return je.borderBox.center;if(Za(Fn.descriptor.id,Pe)){var zr=jr(Fn.page,Ro(Pe.displacedBy.point));return Lr({axis:At,moveRelativeTo:zr,isMoving:je})}return Lr({axis:At,moveRelativeTo:Fn.page,isMoving:je})},dr=function(oe,le){var de=oe.frame;return de?co(le,de.scroll.diff.displacement):le},Vi=function(le){var de=le.impact,xe=le.draggable,Ie=le.droppable,Pe=le.draggables,ze=le.afterCritical,je=xe.page.borderBox.center,At=de.at;return!Ie||!At?je:At.type==="REORDER"?Kr({impact:de,draggable:xe,draggables:Pe,droppable:Ie,afterCritical:ze}):Hn({impact:de,draggables:Pe,afterCritical:ze})},ha=function(oe){var le=Vi(oe),de=oe.droppable,xe=de?dr(de,le):le;return xe},Ea=function(oe,le){var de=Ho(le,oe.scroll.initial),xe=Ro(de),Ie=Ni({top:le.y,bottom:le.y+oe.frame.height,left:le.x,right:le.x+oe.frame.width}),Pe={frame:Ie,scroll:{initial:oe.scroll.initial,max:oe.scroll.max,current:le,diff:{value:de,displacement:xe}}};return Pe};function Ci(oe,le){return oe.map(function(de){return le[de]})}function fi(oe,le){for(var de=0;de<le.length;de++){var xe=le[de].visible[oe];if(xe)return xe}return null}var Ga=function(oe){var le=oe.impact,de=oe.viewport,xe=oe.destination,Ie=oe.draggables,Pe=oe.maxScrollChange,ze=Ea(de,co(de.scroll.current,Pe)),je=xe.frame?Bs(xe,co(xe.frame.scroll.current,Pe)):xe,At=le.displaced,Ut=Oa({afterDragging:Ci(At.all,Ie),destination:xe,displacedBy:le.displacedBy,viewport:ze.frame,last:At,forceShouldAnimate:!1}),st=Oa({afterDragging:Ci(At.all,Ie),destination:je,displacedBy:le.displacedBy,viewport:de.frame,last:At,forceShouldAnimate:!1}),Et={},Pt={},en=[At,Ut,st];At.all.forEach(function(zr){var Yr=fi(zr,en);if(Yr){Pt[zr]=Yr;return}Et[zr]=!0});var Fn=(0,ct.Z)({},le,{displaced:{all:At.all,invisible:Et,visible:Pt}});return Fn},Ka=function(oe,le){return co(oe.scroll.diff.displacement,le)},Ao=function(oe){var le=oe.pageBorderBoxCenter,de=oe.draggable,xe=oe.viewport,Ie=Ka(xe,le),Pe=Ho(Ie,de.page.borderBox.center);return co(de.client.borderBox.center,Pe)},Es=function(oe){var le=oe.draggable,de=oe.destination,xe=oe.newPageBorderBoxCenter,Ie=oe.viewport,Pe=oe.withDroppableDisplacement,ze=oe.onlyOnMainAxis,je=ze===void 0?!1:ze,At=Ho(xe,le.page.borderBox.center),Ut=il(le.page.borderBox,At),st={target:Ut,destination:de,withDroppableDisplacement:Pe,viewport:Ie};return je?Oi(st):Gi(st)},bl=function(oe){var le=oe.isMovingForward,de=oe.draggable,xe=oe.destination,Ie=oe.draggables,Pe=oe.previousImpact,ze=oe.viewport,je=oe.previousPageBorderBoxCenter,At=oe.previousClientSelection,Ut=oe.afterCritical;if(!xe.isEnabled)return null;var st=vs(xe.descriptor.id,Ie),Et=Ae(de,xe),Pt=pn({isMovingForward:le,draggable:de,destination:xe,insideDestination:st,previousImpact:Pe})||rn({isMovingForward:le,isInHomeList:Et,draggable:de,draggables:Ie,destination:xe,insideDestination:st,previousImpact:Pe,viewport:ze,afterCritical:Ut});if(!Pt)return null;var en=ha({impact:Pt,draggable:de,droppable:xe,draggables:Ie,afterCritical:Ut}),Fn=Es({draggable:de,destination:xe,newPageBorderBoxCenter:en,viewport:ze.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(Fn){var zr=Ao({pageBorderBoxCenter:en,draggable:de,viewport:ze});return{clientSelection:zr,impact:Pt,scrollJumpRequest:null}}var Yr=Ho(en,je),ni=Ga({impact:Pt,viewport:ze,destination:xe,draggables:Ie,maxScrollChange:Yr});return{clientSelection:At,impact:ni,scrollJumpRequest:Yr}},Io=function(le){var de=le.subject.active;return de||br(!1),de},Rl=function(oe){var le=oe.isMovingForward,de=oe.pageBorderBoxCenter,xe=oe.source,Ie=oe.droppables,Pe=oe.viewport,ze=xe.subject.active;if(!ze)return null;var je=xe.axis,At=Rt(ze[je.start],ze[je.end]),Ut=Ks(Ie).filter(function(Et){return Et!==xe}).filter(function(Et){return Et.isEnabled}).filter(function(Et){return!!Et.subject.active}).filter(function(Et){return In(Pe.frame)(Io(Et))}).filter(function(Et){var Pt=Io(Et);return le?ze[je.crossAxisEnd]<Pt[je.crossAxisEnd]:Pt[je.crossAxisStart]<ze[je.crossAxisStart]}).filter(function(Et){var Pt=Io(Et),en=Rt(Pt[je.start],Pt[je.end]);return At(Pt[je.start])||At(Pt[je.end])||en(ze[je.start])||en(ze[je.end])}).sort(function(Et,Pt){var en=Io(Et)[je.crossAxisStart],Fn=Io(Pt)[je.crossAxisStart];return le?en-Fn:Fn-en}).filter(function(Et,Pt,en){return Io(Et)[je.crossAxisStart]===Io(en[0])[je.crossAxisStart]});if(!Ut.length)return null;if(Ut.length===1)return Ut[0];var st=Ut.filter(function(Et){var Pt=Rt(Io(Et)[je.start],Io(Et)[je.end]);return Pt(de[je.line])});return st.length===1?st[0]:st.length>1?st.sort(function(Et,Pt){return Io(Et)[je.start]-Io(Pt)[je.start]})[0]:Ut.sort(function(Et,Pt){var en=Ms(de,Ds(Io(Et))),Fn=Ms(de,Ds(Io(Pt)));return en!==Fn?en-Fn:Io(Et)[je.start]-Io(Pt)[je.start]})[0]},To=function(le,de){var xe=le.page.borderBox.center;return Za(le.descriptor.id,de)?Ho(xe,de.displacedBy.point):xe},Ls=function(le,de){var xe=le.page.borderBox;return Za(le.descriptor.id,de)?il(xe,Ro(de.displacedBy.point)):xe},Uo=function(oe){var le=oe.pageBorderBoxCenter,de=oe.viewport,xe=oe.destination,Ie=oe.insideDestination,Pe=oe.afterCritical,ze=Ie.filter(function(je){return Gi({target:Ls(je,Pe),destination:xe,viewport:de.frame,withDroppableDisplacement:!0})}).sort(function(je,At){var Ut=Va(le,dr(xe,To(je,Pe))),st=Va(le,dr(xe,To(At,Pe)));return Ut<st?-1:st<Ut?1:je.descriptor.index-At.descriptor.index});return ze[0]||null},wo=Pr(function(le,de){var xe=de[le.line];return{value:xe,point:qo(le.line,xe)}}),ll=function(le,de,xe){var Ie=le.axis;if(le.descriptor.mode==="virtual")return qo(Ie.line,de[Ie.line]);var Pe=le.subject.page.contentBox[Ie.size],ze=vs(le.descriptor.id,xe),je=ze.reduce(function(st,Et){return st+Et.client.marginBox[Ie.size]},0),At=je+de[Ie.line],Ut=At-Pe;return Ut<=0?null:qo(Ie.line,Ut)},ul=function(le,de){return(0,ct.Z)({},le,{scroll:(0,ct.Z)({},le.scroll,{max:de})})},ia=function(le,de,xe){var Ie=le.frame;Ae(de,le)&&br(!1),le.subject.withPlaceholder&&br(!1);var Pe=wo(le.axis,de.displaceBy).point,ze=ll(le,Pe,xe),je={placeholderSize:Pe,increasedBy:ze,oldFrameMaxScroll:le.frame?le.frame.scroll.max:null};if(!Ie){var At=ol({page:le.subject.page,withPlaceholder:je,axis:le.axis,frame:le.frame});return(0,ct.Z)({},le,{subject:At})}var Ut=ze?co(Ie.scroll.max,ze):Ie.scroll.max,st=ul(Ie,Ut),Et=ol({page:le.subject.page,withPlaceholder:je,axis:le.axis,frame:st});return(0,ct.Z)({},le,{subject:Et,frame:st})},ys=function(le){var de=le.subject.withPlaceholder;de||br(!1);var xe=le.frame;if(!xe){var Ie=ol({page:le.subject.page,axis:le.axis,frame:null,withPlaceholder:null});return(0,ct.Z)({},le,{subject:Ie})}var Pe=de.oldFrameMaxScroll;Pe||br(!1);var ze=ul(xe,Pe),je=ol({page:le.subject.page,axis:le.axis,frame:ze,withPlaceholder:null});return(0,ct.Z)({},le,{subject:je,frame:ze})},cl=function(oe){var le=oe.previousPageBorderBoxCenter,de=oe.moveRelativeTo,xe=oe.insideDestination,Ie=oe.draggable,Pe=oe.draggables,ze=oe.destination,je=oe.viewport,At=oe.afterCritical;if(!de){if(xe.length)return null;var Ut={displaced:Ft,displacedBy:St,at:{type:"REORDER",destination:{droppableId:ze.descriptor.id,index:0}}},st=ha({impact:Ut,draggable:Ie,droppable:ze,draggables:Pe,afterCritical:At}),Et=Ae(Ie,ze)?ze:ia(ze,Ie,Pe),Pt=Es({draggable:Ie,destination:Et,newPageBorderBoxCenter:st,viewport:je.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return Pt?Ut:null}var en=le[ze.axis.line]<=de.page.borderBox.center[ze.axis.line],Fn=function(){var Yr=de.descriptor.index;return de.descriptor.id===Ie.descriptor.id||en?Yr:Yr+1}(),zr=wo(ze.axis,Ie.displaceBy);return Pa({draggable:Ie,insideDestination:xe,destination:ze,viewport:je,displacedBy:zr,last:Ft,index:Fn})},Gs=function(oe){var le=oe.isMovingForward,de=oe.previousPageBorderBoxCenter,xe=oe.draggable,Ie=oe.isOver,Pe=oe.draggables,ze=oe.droppables,je=oe.viewport,At=oe.afterCritical,Ut=Rl({isMovingForward:le,pageBorderBoxCenter:de,source:Ie,droppables:ze,viewport:je});if(!Ut)return null;var st=vs(Ut.descriptor.id,Pe),Et=Uo({pageBorderBoxCenter:de,viewport:je,destination:Ut,insideDestination:st,afterCritical:At}),Pt=cl({previousPageBorderBoxCenter:de,destination:Ut,draggable:xe,draggables:Pe,moveRelativeTo:Et,insideDestination:st,viewport:je,afterCritical:At});if(!Pt)return null;var en=ha({impact:Pt,draggable:xe,droppable:Ut,draggables:Pe,afterCritical:At}),Fn=Ao({pageBorderBoxCenter:en,draggable:xe,viewport:je});return{clientSelection:Fn,impact:Pt,scrollJumpRequest:null}},is=function(oe){var le=oe.at;return le?le.type==="REORDER"?le.destination.droppableId:le.combine.droppableId:null},eo=function(le,de){var xe=is(le);return xe?de[xe]:null},Ul=function(oe){var le=oe.state,de=oe.type,xe=eo(le.impact,le.dimensions.droppables),Ie=!!xe,Pe=le.dimensions.droppables[le.critical.droppable.id],ze=xe||Pe,je=ze.axis.direction,At=je==="vertical"&&(de==="MOVE_UP"||de==="MOVE_DOWN")||je==="horizontal"&&(de==="MOVE_LEFT"||de==="MOVE_RIGHT");if(At&&!Ie)return null;var Ut=de==="MOVE_DOWN"||de==="MOVE_RIGHT",st=le.dimensions.draggables[le.critical.draggable.id],Et=le.current.page.borderBoxCenter,Pt=le.dimensions,en=Pt.draggables,Fn=Pt.droppables;return At?bl({isMovingForward:Ut,previousPageBorderBoxCenter:Et,draggable:st,destination:ze,draggables:en,viewport:le.viewport,previousClientSelection:le.current.client.selection,previousImpact:le.impact,afterCritical:le.afterCritical}):Gs({isMovingForward:Ut,previousPageBorderBoxCenter:Et,draggable:st,isOver:ze,draggables:en,droppables:Fn,viewport:le.viewport,afterCritical:le.afterCritical})};function Fs(oe){return oe.phase==="DRAGGING"||oe.phase==="COLLECTING"}function Fl(oe){var le=Rt(oe.top,oe.bottom),de=Rt(oe.left,oe.right);return function(Ie){return le(Ie.y)&&de(Ie.x)}}function Hu(oe,le){return oe.left<le.right&&oe.right>le.left&&oe.top<le.bottom&&oe.bottom>le.top}function zu(oe){var le=oe.pageBorderBox,de=oe.draggable,xe=oe.candidates,Ie=de.page.borderBox.center,Pe=xe.map(function(ze){var je=ze.axis,At=qo(ze.axis.line,le.center[je.line],ze.page.borderBox.center[je.crossAxisLine]);return{id:ze.descriptor.id,distance:Va(Ie,At)}}).sort(function(ze,je){return je.distance-ze.distance});return Pe[0]?Pe[0].id:null}function dl(oe){var le=oe.pageBorderBox,de=oe.draggable,xe=oe.droppables,Ie=Ks(xe).filter(function(Pe){if(!Pe.isEnabled)return!1;var ze=Pe.subject.active;if(!ze||!Hu(le,ze))return!1;if(Fl(ze)(le.center))return!0;var je=Pe.axis,At=ze.center[je.crossAxisLine],Ut=le[je.crossAxisStart],st=le[je.crossAxisEnd],Et=Rt(ze[je.crossAxisStart],ze[je.crossAxisEnd]),Pt=Et(Ut),en=Et(st);return!Pt&&!en?!0:Pt?Ut<At:st>At});return Ie.length?Ie.length===1?Ie[0].descriptor.id:zu({pageBorderBox:le,draggable:de,candidates:Ie}):null}var Fu=function(le,de){return Ni(il(le,de))},jl=function(oe,le){var de=oe.frame;return de?Fu(le,de.scroll.diff.value):le};function fu(oe){var le=oe.displaced,de=oe.id;return!!(le.visible[de]||le.invisible[de])}function yu(oe){var le=oe.draggable,de=oe.closest,xe=oe.inHomeList;return de?xe&&de.descriptor.index>le.descriptor.index?de.descriptor.index-1:de.descriptor.index:null}var hu=function(oe){var le=oe.pageBorderBoxWithDroppableScroll,de=oe.draggable,xe=oe.destination,Ie=oe.insideDestination,Pe=oe.last,ze=oe.viewport,je=oe.afterCritical,At=xe.axis,Ut=wo(xe.axis,de.displaceBy),st=Ut.value,Et=le[At.start],Pt=le[At.end],en=nt(de,Ie),Fn=Ua(en,function(Yr){var ni=Yr.descriptor.id,Ii=Yr.page.borderBox.center[At.line],ra=Za(ni,je),da=fu({displaced:Pe,id:ni});return ra?da?Pt<=Ii:Et<Ii-st:da?Pt<=Ii+st:Et<Ii}),zr=yu({draggable:de,closest:Fn,inHomeList:Ae(de,xe)});return Pa({draggable:de,insideDestination:Ie,destination:xe,viewport:ze,last:Pe,displacedBy:Ut,index:zr})},pu=4,mu=function(oe){var le=oe.draggable,de=oe.pageBorderBoxWithDroppableScroll,xe=oe.previousImpact,Ie=oe.destination,Pe=oe.insideDestination,ze=oe.afterCritical;if(!Ie.isCombineEnabled)return null;var je=Ie.axis,At=wo(Ie.axis,le.displaceBy),Ut=At.value,st=de[je.start],Et=de[je.end],Pt=nt(le,Pe),en=Ua(Pt,function(zr){var Yr=zr.descriptor.id,ni=zr.page.borderBox,Ii=ni[je.size],ra=Ii/pu,da=Za(Yr,ze),Ya=fu({displaced:xe.displaced,id:Yr});return da?Ya?Et>ni[je.start]+ra&&Et<ni[je.end]-ra:st>ni[je.start]-Ut+ra&&st<ni[je.end]-Ut-ra:Ya?Et>ni[je.start]+Ut+ra&&Et<ni[je.end]+Ut-ra:st>ni[je.start]+ra&&st<ni[je.end]-ra});if(!en)return null;var Fn={displacedBy:At,displaced:xe.displaced,at:{type:"COMBINE",combine:{draggableId:en.descriptor.id,droppableId:Ie.descriptor.id}}};return Fn},bu=function(oe){var le=oe.pageOffset,de=oe.draggable,xe=oe.draggables,Ie=oe.droppables,Pe=oe.previousImpact,ze=oe.viewport,je=oe.afterCritical,At=Fu(de.page.borderBox,le),Ut=dl({pageBorderBox:At,draggable:de,droppables:Ie});if(!Ut)return an;var st=Ie[Ut],Et=vs(st.descriptor.id,xe),Pt=jl(st,At);return mu({pageBorderBoxWithDroppableScroll:Pt,draggable:de,previousImpact:Pe,destination:st,insideDestination:Et,afterCritical:je})||hu({pageBorderBoxWithDroppableScroll:Pt,draggable:de,destination:st,insideDestination:Et,last:Pe.displaced,viewport:ze,afterCritical:je})},$s=function(oe,le){var de;return(0,ct.Z)({},oe,(de={},de[le.descriptor.id]=le,de))},xu=function(le){var de=le.previousImpact,xe=le.impact,Ie=le.droppables,Pe=is(de),ze=is(xe);if(!Pe||Pe===ze)return Ie;var je=Ie[Pe];if(!je.subject.withPlaceholder)return Ie;var At=ys(je);return $s(Ie,At)},Zl=function(oe){var le=oe.draggable,de=oe.draggables,xe=oe.droppables,Ie=oe.previousImpact,Pe=oe.impact,ze=xu({previousImpact:Ie,impact:Pe,droppables:xe}),je=is(Pe);if(!je)return ze;var At=xe[je];if(Ae(le,At)||At.subject.withPlaceholder)return ze;var Ut=ia(At,le,de);return $s(ze,Ut)},Al=function(oe){var le=oe.state,de=oe.clientSelection,xe=oe.dimensions,Ie=oe.viewport,Pe=oe.impact,ze=oe.scrollJumpRequest,je=Ie||le.viewport,At=xe||le.dimensions,Ut=de||le.current.client.selection,st=Ho(Ut,le.initial.client.selection),Et={offset:st,selection:Ut,borderBoxCenter:co(le.initial.client.borderBoxCenter,st)},Pt={selection:co(Et.selection,je.scroll.current),borderBoxCenter:co(Et.borderBoxCenter,je.scroll.current),offset:co(Et.offset,je.scroll.diff.value)},en={client:Et,page:Pt};if(le.phase==="COLLECTING")return(0,ct.Z)({phase:"COLLECTING"},le,{dimensions:At,viewport:je,current:en});var Fn=At.draggables[le.critical.draggable.id],zr=Pe||bu({pageOffset:Pt.offset,draggable:Fn,draggables:At.draggables,droppables:At.droppables,previousImpact:le.impact,viewport:je,afterCritical:le.afterCritical}),Yr=Zl({draggable:Fn,impact:zr,previousImpact:le.impact,draggables:At.draggables,droppables:At.droppables}),ni=(0,ct.Z)({},le,{current:en,dimensions:{draggables:At.draggables,droppables:Yr},impact:zr,viewport:je,scrollJumpRequest:ze||null,forceShouldAnimate:ze?!1:null});return ni};function Pu(oe,le){return oe.map(function(de){return le[de]})}var wu=function(oe){var le=oe.impact,de=oe.viewport,xe=oe.draggables,Ie=oe.destination,Pe=oe.forceShouldAnimate,ze=le.displaced,je=Pu(ze.all,xe),At=Oa({afterDragging:je,destination:Ie,displacedBy:le.displacedBy,viewport:de.frame,forceShouldAnimate:Pe,last:ze});return(0,ct.Z)({},le,{displaced:At})},Iu=function(oe){var le=oe.impact,de=oe.draggable,xe=oe.droppable,Ie=oe.draggables,Pe=oe.viewport,ze=oe.afterCritical,je=ha({impact:le,draggable:de,draggables:Ie,droppable:xe,afterCritical:ze});return Ao({pageBorderBoxCenter:je,draggable:de,viewport:Pe})},$u=function(oe){var le=oe.state,de=oe.dimensions,xe=oe.viewport;le.movementMode!=="SNAP"&&br(!1);var Ie=le.impact,Pe=xe||le.viewport,ze=de||le.dimensions,je=ze.draggables,At=ze.droppables,Ut=je[le.critical.draggable.id],st=is(Ie);st||br(!1);var Et=At[st],Pt=wu({impact:Ie,viewport:Pe,destination:Et,draggables:je}),en=Iu({impact:Pt,draggable:Ut,droppable:Et,draggables:je,viewport:Pe,afterCritical:le.afterCritical});return Al({impact:Pt,clientSelection:en,state:le,dimensions:ze,viewport:Pe})},au=function(oe){return{index:oe.index,droppableId:oe.droppableId}},Cu=function(oe){var le=oe.draggable,de=oe.home,xe=oe.draggables,Ie=oe.viewport,Pe=wo(de.axis,le.displaceBy),ze=vs(de.descriptor.id,xe),je=ze.indexOf(le);je===-1&&br(!1);var At=ze.slice(je+1),Ut=At.reduce(function(en,Fn){return en[Fn.descriptor.id]=!0,en},{}),st={inVirtualList:de.descriptor.mode==="virtual",displacedBy:Pe,effected:Ut},Et=Oa({afterDragging:At,destination:de,displacedBy:Pe,last:null,viewport:Ie.frame,forceShouldAnimate:!1}),Pt={displaced:Et,displacedBy:Pe,at:{type:"REORDER",destination:au(le.descriptor)}};return{impact:Pt,afterCritical:st}},Pl=function(oe,le){return{draggables:oe.draggables,droppables:$s(oe.droppables,le)}},_l=function(le){},Ys=function(le){},Gl=function(oe){var le=oe.draggable,de=oe.offset,xe=oe.initialWindowScroll,Ie=jr(le.client,de),Pe=di(Ie,xe),ze=(0,ct.Z)({},le,{placeholder:(0,ct.Z)({},le.placeholder,{client:Ie}),client:Ie,page:Pe});return ze},ou=function(oe){var le=oe.frame;return le||br(!1),le},Eu=function(oe){var le=oe.additions,de=oe.updatedDroppables,xe=oe.viewport,Ie=xe.scroll.diff.value;return le.map(function(Pe){var ze=Pe.descriptor.droppableId,je=de[ze],At=ou(je),Ut=At.scroll.diff.value,st=co(Ie,Ut),Et=Gl({draggable:Pe,offset:st,initialWindowScroll:xe.scroll.initial});return Et})},su=function(oe){var le=oe.state,de=oe.published;_l();var xe=de.modified.map(function(ra){var da=le.dimensions.droppables[ra.droppableId],Ya=Bs(da,ra.scroll);return Ya}),Ie=(0,ct.Z)({},le.dimensions.droppables,{},ms(xe)),Pe=Zs(Eu({additions:de.additions,updatedDroppables:Ie,viewport:le.viewport})),ze=(0,ct.Z)({},le.dimensions.draggables,{},Pe);de.removals.forEach(function(ra){delete ze[ra]});var je={droppables:Ie,draggables:ze},At=is(le.impact),Ut=At?je.droppables[At]:null,st=je.draggables[le.critical.draggable.id],Et=je.droppables[le.critical.droppable.id],Pt=Cu({draggable:st,home:Et,draggables:ze,viewport:le.viewport}),en=Pt.impact,Fn=Pt.afterCritical,zr=Ut&&Ut.isCombineEnabled?le.impact:en,Yr=bu({pageOffset:le.current.page.offset,draggable:je.draggables[le.critical.draggable.id],draggables:je.draggables,droppables:je.droppables,previousImpact:zr,viewport:le.viewport,afterCritical:Fn});Ys();var ni=(0,ct.Z)({phase:"DRAGGING"},le,{phase:"DRAGGING",impact:Yr,onLiftImpact:en,dimensions:je,afterCritical:Fn,forceShouldAnimate:!1});if(le.phase==="COLLECTING")return ni;var Ii=(0,ct.Z)({phase:"DROP_PENDING"},ni,{phase:"DROP_PENDING",reason:le.reason,isWaiting:!1});return Ii},Kl=function(le){return le.movementMode==="SNAP"},ko=function(le,de,xe){var Ie=Pl(le.dimensions,de);return!Kl(le)||xe?Al({state:le,dimensions:Ie}):$u({state:le,dimensions:Ie})};function Ba(oe){return oe.isDragging&&oe.movementMode==="SNAP"?(0,ct.Z)({phase:"DRAGGING"},oe,{scrollJumpRequest:null}):oe}var Yo={phase:"IDLE",completed:null,shouldFlush:!1},ls=function(oe,le){if(oe===void 0&&(oe=Yo),le.type==="FLUSH")return(0,ct.Z)({},Yo,{shouldFlush:!0});if(le.type==="INITIAL_PUBLISH"){oe.phase!=="IDLE"&&br(!1);var de=le.payload,xe=de.critical,Ie=de.clientSelection,Pe=de.viewport,ze=de.dimensions,je=de.movementMode,At=ze.draggables[xe.draggable.id],Ut=ze.droppables[xe.droppable.id],st={selection:Ie,borderBoxCenter:At.client.borderBox.center,offset:xo},Et={client:st,page:{selection:co(st.selection,Pe.scroll.initial),borderBoxCenter:co(st.selection,Pe.scroll.initial),offset:co(st.selection,Pe.scroll.diff.value)}},Pt=Ks(ze.droppables).every(function(hf){return!hf.isFixedOnPage}),en=Cu({draggable:At,home:Ut,draggables:ze.draggables,viewport:Pe}),Fn=en.impact,zr=en.afterCritical,Yr={phase:"DRAGGING",isDragging:!0,critical:xe,movementMode:je,dimensions:ze,initial:Et,current:Et,isWindowScrollAllowed:Pt,impact:Fn,afterCritical:zr,onLiftImpact:Fn,viewport:Pe,scrollJumpRequest:null,forceShouldAnimate:null};return Yr}if(le.type==="COLLECTION_STARTING"){if(oe.phase==="COLLECTING"||oe.phase==="DROP_PENDING")return oe;oe.phase!=="DRAGGING"&&br(!1);var ni=(0,ct.Z)({phase:"COLLECTING"},oe,{phase:"COLLECTING"});return ni}if(le.type==="PUBLISH_WHILE_DRAGGING")return oe.phase==="COLLECTING"||oe.phase==="DROP_PENDING"||br(!1),su({state:oe,published:le.payload});if(le.type==="MOVE"){if(oe.phase==="DROP_PENDING")return oe;Fs(oe)||br(!1);var Ii=le.payload.client;return ps(Ii,oe.current.client.selection)?oe:Al({state:oe,clientSelection:Ii,impact:Kl(oe)?oe.impact:null})}if(le.type==="UPDATE_DROPPABLE_SCROLL"){if(oe.phase==="DROP_PENDING"||oe.phase==="COLLECTING")return Ba(oe);Fs(oe)||br(!1);var ra=le.payload,da=ra.id,Ya=ra.newScroll,ga=oe.dimensions.droppables[da];if(!ga)return oe;var vo=Bs(ga,Ya);return ko(oe,vo,!1)}if(le.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(oe.phase==="DROP_PENDING")return oe;Fs(oe)||br(!1);var rl=le.payload,go=rl.id,ts=rl.isEnabled,Xl=oe.dimensions.droppables[go];Xl||br(!1),Xl.isEnabled===ts&&br(!1);var Bl=(0,ct.Z)({},Xl,{isEnabled:ts});return ko(oe,Bl,!0)}if(le.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(oe.phase==="DROP_PENDING")return oe;Fs(oe)||br(!1);var Du=le.payload,Xu=Du.id,Ou=Du.isCombineEnabled,Ru=oe.dimensions.droppables[Xu];Ru||br(!1),Ru.isCombineEnabled===Ou&&br(!1);var ru=(0,ct.Z)({},Ru,{isCombineEnabled:Ou});return ko(oe,ru,!0)}if(le.type==="MOVE_BY_WINDOW_SCROLL"){if(oe.phase==="DROP_PENDING"||oe.phase==="DROP_ANIMATING")return oe;Fs(oe)||br(!1),oe.isWindowScrollAllowed||br(!1);var _c=le.payload.newScroll;if(ps(oe.viewport.scroll.current,_c))return Ba(oe);var yc=Ea(oe.viewport,_c);return Kl(oe)?$u({state:oe,viewport:yc}):Al({state:oe,viewport:yc})}if(le.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Fs(oe))return oe;var Dc=le.payload.maxScroll;if(ps(Dc,oe.viewport.scroll.max))return oe;var ic=(0,ct.Z)({},oe.viewport,{scroll:(0,ct.Z)({},oe.viewport.scroll,{max:Dc})});return(0,ct.Z)({phase:"DRAGGING"},oe,{viewport:ic})}if(le.type==="MOVE_UP"||le.type==="MOVE_DOWN"||le.type==="MOVE_LEFT"||le.type==="MOVE_RIGHT"){if(oe.phase==="COLLECTING"||oe.phase==="DROP_PENDING")return oe;oe.phase!=="DRAGGING"&&br(!1);var bc=Ul({state:oe,type:le.type});return bc?Al({state:oe,impact:bc.impact,clientSelection:bc.clientSelection,scrollJumpRequest:bc.scrollJumpRequest}):oe}if(le.type==="DROP_PENDING"){var du=le.payload.reason;oe.phase!=="COLLECTING"&&br(!1);var Bu=(0,ct.Z)({phase:"DROP_PENDING"},oe,{phase:"DROP_PENDING",isWaiting:!0,reason:du});return Bu}if(le.type==="DROP_ANIMATE"){var df=le.payload,ac=df.completed,id=df.dropDuration,Kd=df.newHomeClientOffset;oe.phase==="DRAGGING"||oe.phase==="DROP_PENDING"||br(!1);var wd={phase:"DROP_ANIMATING",completed:ac,dropDuration:id,newHomeClientOffset:Kd,dimensions:oe.dimensions};return wd}if(le.type==="DROP_COMPLETE"){var ff=le.payload.completed;return{phase:"IDLE",completed:ff,shouldFlush:!1}}return oe},Te=function(le){return{type:"BEFORE_INITIAL_CAPTURE",payload:le}},He=function(le){return{type:"LIFT",payload:le}},Nt=function(le){return{type:"INITIAL_PUBLISH",payload:le}},Tt=function(le){return{type:"PUBLISH_WHILE_DRAGGING",payload:le}},hn=function(){return{type:"COLLECTION_STARTING",payload:null}},En=function(le){return{type:"UPDATE_DROPPABLE_SCROLL",payload:le}},Nn=function(le){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:le}},or=function(le){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:le}},lr=function(le){return{type:"MOVE",payload:le}},vr=function(le){return{type:"MOVE_BY_WINDOW_SCROLL",payload:le}},si=function(le){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:le}},Fr=function(){return{type:"MOVE_UP",payload:null}},hi=function(){return{type:"MOVE_DOWN",payload:null}},Mr=function(){return{type:"MOVE_RIGHT",payload:null}},ti=function(){return{type:"MOVE_LEFT",payload:null}},Rr=function(){return{type:"FLUSH",payload:null}},pi=function(le){return{type:"DROP_ANIMATE",payload:le}},ki=function(le){return{type:"DROP_COMPLETE",payload:le}},Be=function(le){return{type:"DROP",payload:le}},We=function(le){return{type:"DROP_PENDING",payload:le}},Ct=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function De(oe){if(!(oe.length<=1)){for(var le=oe.map(function(je){return je.descriptor.index}),de={},xe=1;xe<le.length;xe++){var Ie=le[xe],Pe=le[xe-1];Ie!==Pe+1&&(de[Ie]=!0)}if(Object.keys(de).length)var ze=le.map(function(je){var At=!!de[je];return At?"[\u{1F525}"+je+"]":""+je}).join(", ")}}function vt(oe,le){if(0)var de}var Mt=function(oe){return function(le){var de=le.getState,xe=le.dispatch;return function(Ie){return function(Pe){if(Pe.type!=="LIFT"){Ie(Pe);return}var ze=Pe.payload,je=ze.id,At=ze.clientSelection,Ut=ze.movementMode,st=de();st.phase==="DROP_ANIMATING"&&xe(ki({completed:st.completed})),de().phase!=="IDLE"&&br(!1),xe(Rr()),xe(Te({draggableId:je,movementMode:Ut}));var Et={shouldPublishImmediately:Ut==="SNAP"},Pt={draggableId:je,scrollOptions:Et},en=oe.startPublishing(Pt),Fn=en.critical,zr=en.dimensions,Yr=en.viewport;vt(Fn,zr),xe(Nt({critical:Fn,dimensions:zr,clientSelection:At,movementMode:Ut,viewport:Yr}))}}}},Kt=function(oe){return function(){return function(le){return function(de){de.type==="INITIAL_PUBLISH"&&oe.dragging(),de.type==="DROP_ANIMATE"&&oe.dropping(de.payload.completed.result.reason),(de.type==="FLUSH"||de.type==="DROP_COMPLETE")&&oe.resting(),le(de)}}}},rt={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},gt={opacity:{drop:0,combining:.7},scale:{drop:.75}},xt={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},jt=xt.outOfTheWay+"s "+rt.outOfTheWay,$t={fluid:"opacity "+jt,snap:"transform "+jt+", opacity "+jt,drop:function(le){var de=le+"s "+rt.drop;return"transform "+de+", opacity "+de},outOfTheWay:"transform "+jt,placeholder:"height "+jt+", width "+jt+", margin "+jt},mn=function(le){return ps(le,xo)?null:"translate("+le.x+"px, "+le.y+"px)"},qt={moveTo:mn,drop:function(le,de){var xe=mn(le);return xe?de?xe+" scale("+gt.scale.drop+")":xe:null}},gn=xt.minDropTime,Ln=xt.maxDropTime,Wn=Ln-gn,Cn=1500,sr=.6,Un=function(oe){var le=oe.current,de=oe.destination,xe=oe.reason,Ie=Va(le,de);if(Ie<=0)return gn;if(Ie>=Cn)return Ln;var Pe=Ie/Cn,ze=gn+Wn*Pe,je=xe==="CANCEL"?ze*sr:ze;return Number(je.toFixed(2))},qn=function(oe){var le=oe.impact,de=oe.draggable,xe=oe.dimensions,Ie=oe.viewport,Pe=oe.afterCritical,ze=xe.draggables,je=xe.droppables,At=is(le),Ut=At?je[At]:null,st=je[de.descriptor.droppableId],Et=Iu({impact:le,draggable:de,draggables:ze,afterCritical:Pe,droppable:Ut||st,viewport:Ie}),Pt=Ho(Et,de.client.borderBox.center);return Pt},mr=function(oe){var le=oe.draggables,de=oe.reason,xe=oe.lastImpact,Ie=oe.home,Pe=oe.viewport,ze=oe.onLiftImpact;if(!xe.at||de!=="DROP"){var je=wu({draggables:le,impact:ze,destination:Ie,viewport:Pe,forceShouldAnimate:!0});return{impact:je,didDropInsideDroppable:!1}}if(xe.at.type==="REORDER")return{impact:xe,didDropInsideDroppable:!0};var At=(0,ct.Z)({},xe,{displaced:Ft});return{impact:At,didDropInsideDroppable:!0}},Gn=function(oe){var le=oe.getState,de=oe.dispatch;return function(xe){return function(Ie){if(Ie.type!=="DROP"){xe(Ie);return}var Pe=le(),ze=Ie.payload.reason;if(Pe.phase==="COLLECTING"){de(We({reason:ze}));return}if(Pe.phase!=="IDLE"){var je=Pe.phase==="DROP_PENDING"&&Pe.isWaiting;je&&br(!1),Pe.phase==="DRAGGING"||Pe.phase==="DROP_PENDING"||br(!1);var At=Pe.critical,Ut=Pe.dimensions,st=Ut.draggables[Pe.critical.draggable.id],Et=mr({reason:ze,lastImpact:Pe.impact,afterCritical:Pe.afterCritical,onLiftImpact:Pe.onLiftImpact,home:Pe.dimensions.droppables[Pe.critical.droppable.id],viewport:Pe.viewport,draggables:Pe.dimensions.draggables}),Pt=Et.impact,en=Et.didDropInsideDroppable,Fn=en?gs(Pt):null,zr=en?_e(Pt):null,Yr={index:At.draggable.index,droppableId:At.droppable.id},ni={draggableId:st.descriptor.id,type:st.descriptor.type,source:Yr,reason:ze,mode:Pe.movementMode,destination:Fn,combine:zr},Ii=qn({impact:Pt,draggable:st,dimensions:Ut,viewport:Pe.viewport,afterCritical:Pe.afterCritical}),ra={critical:Pe.critical,afterCritical:Pe.afterCritical,result:ni,impact:Pt},da=!ps(Pe.current.client.offset,Ii)||!!ni.combine;if(!da){de(ki({completed:ra}));return}var Ya=Un({current:Pe.current.client.offset,destination:Ii,reason:ze}),ga={newHomeClientOffset:Ii,dropDuration:Ya,completed:ra};de(pi(ga))}}}},kr=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Er(oe){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(de){de.target!==window&&de.target!==window.document||oe()}}}function hr(oe){var le=oe.onWindowScroll;function de(){le(kr())}var xe=Wa(de),Ie=Er(xe),Pe=Na;function ze(){return Pe!==Na}function je(){ze()&&br(!1),Pe=io(window,[Ie])}function At(){ze()||br(!1),xe.cancel(),Pe(),Pe=Na}return{start:je,stop:At,isActive:ze}}var ar=function(le){return le.type==="DROP_COMPLETE"||le.type==="DROP_ANIMATE"||le.type==="FLUSH"},Qn=function(oe){var le=hr({onWindowScroll:function(xe){oe.dispatch(vr({newScroll:xe}))}});return function(de){return function(xe){!le.isActive()&&xe.type==="INITIAL_PUBLISH"&&le.start(),le.isActive()&&ar(xe)&&le.stop(),de(xe)}}},gr=function(oe){var le=!1,de=!1,xe=setTimeout(function(){de=!0}),Ie=function(ze){le||de||(le=!0,oe(ze),clearTimeout(xe))};return Ie.wasCalled=function(){return le},Ie},ir=function(){var oe=[],le=function(Pe){var ze=ml(oe,function(Ut){return Ut.timerId===Pe});ze===-1&&br(!1);var je=oe.splice(ze,1),At=je[0];At.callback()},de=function(Pe){var ze=setTimeout(function(){return le(ze)}),je={timerId:ze,callback:Pe};oe.push(je)},xe=function(){if(oe.length){var Pe=[].concat(oe);oe.length=0,Pe.forEach(function(ze){clearTimeout(ze.timerId),ze.callback()})}};return{add:de,flush:xe}},xr=function(le,de){return le==null&&de==null?!0:le==null||de==null?!1:le.droppableId===de.droppableId&&le.index===de.index},Sr=function(le,de){return le==null&&de==null?!0:le==null||de==null?!1:le.draggableId===de.draggableId&&le.droppableId===de.droppableId},yr=function(le,de){if(le===de)return!0;var xe=le.draggable.id===de.draggable.id&&le.draggable.droppableId===de.draggable.droppableId&&le.draggable.type===de.draggable.type&&le.draggable.index===de.draggable.index,Ie=le.droppable.id===de.droppable.id&&le.droppable.type===de.droppable.type;return xe&&Ie},rr=function(le,de){_l(),de(),Ys()},_r=function(le,de){return{draggableId:le.draggable.id,type:le.droppable.type,source:{droppableId:le.droppable.id,index:le.draggable.index},mode:de}},Qr=function(le,de,xe,Ie){if(!le){xe(Ie(de));return}var Pe=gr(xe),ze={announce:Pe};le(de,ze),Pe.wasCalled()||xe(Ie(de))},ea=function(oe,le){var de=ir(),xe=null,Ie=function(Pt,en){xe&&br(!1),rr("onBeforeCapture",function(){var Fn=oe().onBeforeCapture;if(Fn){var zr={draggableId:Pt,mode:en};Fn(zr)}})},Pe=function(Pt,en){xe&&br(!1),rr("onBeforeDragStart",function(){var Fn=oe().onBeforeDragStart;Fn&&Fn(_r(Pt,en))})},ze=function(Pt,en){xe&&br(!1);var Fn=_r(Pt,en);xe={mode:en,lastCritical:Pt,lastLocation:Fn.source,lastCombine:null},de.add(function(){rr("onDragStart",function(){return Qr(oe().onDragStart,Fn,le,Ws.onDragStart)})})},je=function(Pt,en){var Fn=gs(en),zr=_e(en);xe||br(!1);var Yr=!yr(Pt,xe.lastCritical);Yr&&(xe.lastCritical=Pt);var ni=!xr(xe.lastLocation,Fn);ni&&(xe.lastLocation=Fn);var Ii=!Sr(xe.lastCombine,zr);if(Ii&&(xe.lastCombine=zr),!(!Yr&&!ni&&!Ii)){var ra=(0,ct.Z)({},_r(Pt,xe.mode),{combine:zr,destination:Fn});de.add(function(){rr("onDragUpdate",function(){return Qr(oe().onDragUpdate,ra,le,Ws.onDragUpdate)})})}},At=function(){xe||br(!1),de.flush()},Ut=function(Pt){xe||br(!1),xe=null,rr("onDragEnd",function(){return Qr(oe().onDragEnd,Pt,le,Ws.onDragEnd)})},st=function(){if(xe){var Pt=(0,ct.Z)({},_r(xe.lastCritical,xe.mode),{combine:null,destination:null,reason:"CANCEL"});Ut(Pt)}};return{beforeCapture:Ie,beforeStart:Pe,start:ze,update:je,flush:At,drop:Ut,abort:st}},Ui=function(oe,le){var de=ea(oe,le);return function(xe){return function(Ie){return function(Pe){if(Pe.type==="BEFORE_INITIAL_CAPTURE"){de.beforeCapture(Pe.payload.draggableId,Pe.payload.movementMode);return}if(Pe.type==="INITIAL_PUBLISH"){var ze=Pe.payload.critical;de.beforeStart(ze,Pe.payload.movementMode),Ie(Pe),de.start(ze,Pe.payload.movementMode);return}if(Pe.type==="DROP_COMPLETE"){var je=Pe.payload.completed.result;de.flush(),Ie(Pe),de.drop(je);return}if(Ie(Pe),Pe.type==="FLUSH"){de.abort();return}var At=xe.getState();At.phase==="DRAGGING"&&de.update(At.critical,At.impact)}}}},ji=function(oe){return function(le){return function(de){if(de.type!=="DROP_ANIMATION_FINISHED"){le(de);return}var xe=oe.getState();xe.phase!=="DROP_ANIMATING"&&br(!1),oe.dispatch(ki({completed:xe.completed}))}}},pa=function(oe){var le=null,de=null;function xe(){de&&(cancelAnimationFrame(de),de=null),le&&(le(),le=null)}return function(Ie){return function(Pe){if((Pe.type==="FLUSH"||Pe.type==="DROP_COMPLETE"||Pe.type==="DROP_ANIMATION_FINISHED")&&xe(),Ie(Pe),Pe.type==="DROP_ANIMATE"){var ze={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var At=oe.getState();At.phase==="DROP_ANIMATING"&&oe.dispatch(Ct())}};de=requestAnimationFrame(function(){de=null,le=io(window,[ze])})}}}},Bi=function(oe){return function(){return function(le){return function(de){(de.type==="DROP_COMPLETE"||de.type==="FLUSH"||de.type==="DROP_ANIMATE")&&oe.stopPublishing(),le(de)}}}},Ia=function(oe){var le=!1;return function(){return function(de){return function(xe){if(xe.type==="INITIAL_PUBLISH"){le=!0,oe.tryRecordFocus(xe.payload.critical.draggable.id),de(xe),oe.tryRestoreFocusRecorded();return}if(de(xe),!!le){if(xe.type==="FLUSH"){le=!1,oe.tryRestoreFocusRecorded();return}if(xe.type==="DROP_COMPLETE"){le=!1;var Ie=xe.payload.completed.result;Ie.combine&&oe.tryShiftRecord(Ie.draggableId,Ie.combine.draggableId),oe.tryRestoreFocusRecorded()}}}}}},Qa=function(le){return le.type==="DROP_COMPLETE"||le.type==="DROP_ANIMATE"||le.type==="FLUSH"},ri=function(oe){return function(le){return function(de){return function(xe){if(Qa(xe)){oe.stop(),de(xe);return}if(xe.type==="INITIAL_PUBLISH"){de(xe);var Ie=le.getState();Ie.phase!=="DRAGGING"&&br(!1),oe.start(Ie);return}de(xe),oe.scroll(le.getState())}}}},Br=function(oe){return function(le){return function(de){if(le(de),de.type==="PUBLISH_WHILE_DRAGGING"){var xe=oe.getState();xe.phase==="DROP_PENDING"&&(xe.isWaiting||oe.dispatch(Be({reason:xe.reason})))}}}},Ei=Ve.qC,Yi=function(oe){var le=oe.dimensionMarshal,de=oe.focusMarshal,xe=oe.styleMarshal,Ie=oe.getResponders,Pe=oe.announce,ze=oe.autoScroller;return(0,Ve.MT)(ls,Ei((0,Ve.md)(Kt(xe),Bi(le),Mt(le),Gn,ji,pa,Br,ri(ze),Qn,Ia(de),Ui(Ie,Pe))))},xi=function(){return{additions:{},removals:{},modified:{}}};function la(oe){var le=oe.registry,de=oe.callbacks,xe=xi(),Ie=null,Pe=function(){Ie||(de.collectionStarting(),Ie=requestAnimationFrame(function(){Ie=null,_l();var st=xe,Et=st.additions,Pt=st.removals,en=st.modified,Fn=Object.keys(Et).map(function(ni){return le.draggable.getById(ni).getDimension(xo)}).sort(function(ni,Ii){return ni.descriptor.index-Ii.descriptor.index}),zr=Object.keys(en).map(function(ni){var Ii=le.droppable.getById(ni),ra=Ii.callbacks.getScrollWhileDragging();return{droppableId:ni,scroll:ra}}),Yr={additions:Fn,removals:Object.keys(Pt),modified:zr};xe=xi(),Ys(),de.publish(Yr)}))},ze=function(st){var Et=st.descriptor.id;xe.additions[Et]=st,xe.modified[st.descriptor.droppableId]=!0,xe.removals[Et]&&delete xe.removals[Et],Pe()},je=function(st){var Et=st.descriptor;xe.removals[Et.id]=!0,xe.modified[Et.droppableId]=!0,xe.additions[Et.id]&&delete xe.additions[Et.id],Pe()},At=function(){Ie&&(cancelAnimationFrame(Ie),Ie=null,xe=xi())};return{add:ze,remove:je,stop:At}}var Ai=function(oe){var le=oe.scrollHeight,de=oe.scrollWidth,xe=oe.height,Ie=oe.width,Pe=Ho({x:de,y:le},{x:Ie,y:xe}),ze={x:Math.max(0,Pe.x),y:Math.max(0,Pe.y)};return ze},$i=function(){var oe=document.documentElement;return oe||br(!1),oe},wa=function(){var oe=$i(),le=Ai({scrollHeight:oe.scrollHeight,scrollWidth:oe.scrollWidth,width:oe.clientWidth,height:oe.clientHeight});return le},za=function(){var oe=kr(),le=wa(),de=oe.y,xe=oe.x,Ie=$i(),Pe=Ie.clientWidth,ze=Ie.clientHeight,je=xe+Pe,At=de+ze,Ut=Ni({top:de,left:xe,right:je,bottom:At}),st={frame:Ut,scroll:{initial:oe,current:oe,max:le,diff:{value:xo,displacement:xo}}};return st},Xa=function(oe){var le=oe.critical,de=oe.scrollOptions,xe=oe.registry;_l();var Ie=za(),Pe=Ie.scroll.current,ze=le.droppable,je=xe.droppable.getAllByType(ze.type).map(function(Et){return Et.callbacks.getDimensionAndWatchScroll(Pe,de)}),At=xe.draggable.getAllByType(le.draggable.type).map(function(Et){return Et.getDimension(Pe)}),Ut={draggables:Zs(At),droppables:ms(je)};Ys();var st={dimensions:Ut,critical:le,viewport:Ie};return st};function Qi(oe,le,de){if(de.descriptor.id===le.id||de.descriptor.type!==le.type)return!1;var xe=oe.droppable.getById(de.descriptor.droppableId);return xe.descriptor.mode==="virtual"}var Pi=function(oe,le){var de=null,xe=la({callbacks:{publish:le.publishWhileDragging,collectionStarting:le.collectionStarting},registry:oe}),Ie=function(en,Fn){oe.droppable.exists(en)||br(!1),de&&le.updateDroppableIsEnabled({id:en,isEnabled:Fn})},Pe=function(en,Fn){de&&(oe.droppable.exists(en)||br(!1),le.updateDroppableIsCombineEnabled({id:en,isCombineEnabled:Fn}))},ze=function(en,Fn){de&&(oe.droppable.exists(en)||br(!1),le.updateDroppableScroll({id:en,newScroll:Fn}))},je=function(en,Fn){de&&oe.droppable.getById(en).callbacks.scroll(Fn)},At=function(){if(de){xe.stop();var en=de.critical.droppable;oe.droppable.getAllByType(en.type).forEach(function(Fn){return Fn.callbacks.dragStopped()}),de.unsubscribe(),de=null}},Ut=function(en){de||br(!1);var Fn=de.critical.draggable;en.type==="ADDITION"&&Qi(oe,Fn,en.value)&&xe.add(en.value),en.type==="REMOVAL"&&Qi(oe,Fn,en.value)&&xe.remove(en.value)},st=function(en){de&&br(!1);var Fn=oe.draggable.getById(en.draggableId),zr=oe.droppable.getById(Fn.descriptor.droppableId),Yr={draggable:Fn.descriptor,droppable:zr.descriptor},ni=oe.subscribe(Ut);return de={critical:Yr,unsubscribe:ni},Xa({critical:Yr,registry:oe,scrollOptions:en.scrollOptions})},Et={updateDroppableIsEnabled:Ie,updateDroppableIsCombineEnabled:Pe,scrollDroppable:je,updateDroppableScroll:ze,startPublishing:st,stopPublishing:At};return Et},La=function(oe,le){return oe.phase==="IDLE"?!0:oe.phase!=="DROP_ANIMATING"||oe.completed.result.draggableId===le?!1:oe.completed.result.reason==="DROP"},Sa=function(oe){window.scrollBy(oe.x,oe.y)},ma=Pr(function(oe){return Ks(oe).filter(function(le){return!(!le.isEnabled||!le.frame)})}),ua=function(le,de){var xe=Ua(ma(de),function(Ie){return Ie.frame||br(!1),Fl(Ie.frame.pageMarginBox)(le)});return xe},ii=function(oe){var le=oe.center,de=oe.destination,xe=oe.droppables;if(de){var Ie=xe[de];return Ie.frame?Ie:null}var Pe=ua(le,xe);return Pe},bi={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(le){return Math.pow(le,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},va=function(oe,le){var de=oe[le.size]*bi.startFromPercentage,xe=oe[le.size]*bi.maxScrollAtPercentage,Ie={startScrollingFrom:de,maxScrollValueAt:xe};return Ie},oa=function(oe){var le=oe.startOfRange,de=oe.endOfRange,xe=oe.current,Ie=de-le;if(Ie===0)return 0;var Pe=xe-le,ze=Pe/Ie;return ze},Ra=1,ui=function(oe,le){if(oe>le.startScrollingFrom)return 0;if(oe<=le.maxScrollValueAt)return bi.maxPixelScroll;if(oe===le.startScrollingFrom)return Ra;var de=oa({startOfRange:le.maxScrollValueAt,endOfRange:le.startScrollingFrom,current:oe}),xe=1-de,Ie=bi.maxPixelScroll*bi.ease(xe);return Math.ceil(Ie)},tr=bi.durationDampening.accelerateAt,Nr=bi.durationDampening.stopDampeningAt,Gr=function(oe,le){var de=le,xe=Nr,Ie=Date.now(),Pe=Ie-de;if(Pe>=Nr)return oe;if(Pe<tr)return Ra;var ze=oa({startOfRange:tr,endOfRange:xe,current:Pe}),je=oe*bi.ease(ze);return Math.ceil(je)},pr=function(oe){var le=oe.distanceToEdge,de=oe.thresholds,xe=oe.dragStartTime,Ie=oe.shouldUseTimeDampening,Pe=ui(le,de);return Pe===0?0:Ie?Math.max(Gr(Pe,xe),Ra):Pe},Ji=function(oe){var le=oe.container,de=oe.distanceToEdges,xe=oe.dragStartTime,Ie=oe.axis,Pe=oe.shouldUseTimeDampening,ze=va(le,Ie),je=de[Ie.end]<de[Ie.start];return je?pr({distanceToEdge:de[Ie.end],thresholds:ze,dragStartTime:xe,shouldUseTimeDampening:Pe}):-1*pr({distanceToEdge:de[Ie.start],thresholds:ze,dragStartTime:xe,shouldUseTimeDampening:Pe})},Fa=function(oe){var le=oe.container,de=oe.subject,xe=oe.proposedScroll,Ie=de.height>le.height,Pe=de.width>le.width;return!Pe&&!Ie?xe:Pe&&Ie?null:{x:Pe?0:xe.x,y:Ie?0:xe.y}},Mo=Vl(function(oe){return oe===0?0:oe}),ao=function(oe){var le=oe.dragStartTime,de=oe.container,xe=oe.subject,Ie=oe.center,Pe=oe.shouldUseTimeDampening,ze={top:Ie.y-de.top,right:de.right-Ie.x,bottom:de.bottom-Ie.y,left:Ie.x-de.left},je=Ji({container:de,distanceToEdges:ze,dragStartTime:le,axis:Rn,shouldUseTimeDampening:Pe}),At=Ji({container:de,distanceToEdges:ze,dragStartTime:le,axis:Mn,shouldUseTimeDampening:Pe}),Ut=Mo({x:At,y:je});if(ps(Ut,xo))return null;var st=Fa({container:de,subject:xe,proposedScroll:Ut});return st?ps(st,xo)?null:st:null},Wo=Vl(function(oe){return oe===0?0:oe>0?1:-1}),po=function(){var oe=function(de,xe){return de<0?de:de>xe?de-xe:0};return function(le){var de=le.current,xe=le.max,Ie=le.change,Pe=co(de,Ie),ze={x:oe(Pe.x,xe.x),y:oe(Pe.y,xe.y)};return ps(ze,xo)?null:ze}}(),Ps=function(le){var de=le.max,xe=le.current,Ie=le.change,Pe={x:Math.max(xe.x,de.x),y:Math.max(xe.y,de.y)},ze=Wo(Ie),je=po({max:Pe,current:xe,change:ze});return!je||ze.x!==0&&je.x===0||ze.y!==0&&je.y===0},bs=function(le,de){return Ps({current:le.scroll.current,max:le.scroll.max,change:de})},xs=function(le,de){if(!bs(le,de))return null;var xe=le.scroll.max,Ie=le.scroll.current;return po({current:Ie,max:xe,change:de})},Hs=function(le,de){var xe=le.frame;return xe?Ps({current:xe.scroll.current,max:xe.scroll.max,change:de}):!1},fl=function(le,de){var xe=le.frame;return!xe||!Hs(le,de)?null:po({current:xe.scroll.current,max:xe.scroll.max,change:de})},el=function(oe){var le=oe.viewport,de=oe.subject,xe=oe.center,Ie=oe.dragStartTime,Pe=oe.shouldUseTimeDampening,ze=ao({dragStartTime:Ie,container:le.frame,subject:de,center:xe,shouldUseTimeDampening:Pe});return ze&&bs(le,ze)?ze:null},Hl=function(oe){var le=oe.droppable,de=oe.subject,xe=oe.center,Ie=oe.dragStartTime,Pe=oe.shouldUseTimeDampening,ze=le.frame;if(!ze)return null;var je=ao({dragStartTime:Ie,container:ze.pageMarginBox,subject:de,center:xe,shouldUseTimeDampening:Pe});return je&&Hs(le,je)?je:null},sa=function(oe){var le=oe.state,de=oe.dragStartTime,xe=oe.shouldUseTimeDampening,Ie=oe.scrollWindow,Pe=oe.scrollDroppable,ze=le.current.page.borderBoxCenter,je=le.dimensions.draggables[le.critical.draggable.id],At=je.page.marginBox;if(le.isWindowScrollAllowed){var Ut=le.viewport,st=el({dragStartTime:de,viewport:Ut,subject:At,center:ze,shouldUseTimeDampening:xe});if(st){Ie(st);return}}var Et=ii({center:ze,destination:is(le.impact),droppables:le.dimensions.droppables});if(Et){var Pt=Hl({dragStartTime:de,droppable:Et,subject:At,center:ze,shouldUseTimeDampening:xe});Pt&&Pe(Et.descriptor.id,Pt)}},Ur=function(oe){var le=oe.scrollWindow,de=oe.scrollDroppable,xe=Wa(le),Ie=Wa(de),Pe=null,ze=function(st){Pe||br(!1);var Et=Pe,Pt=Et.shouldUseTimeDampening,en=Et.dragStartTime;sa({state:st,scrollWindow:xe,scrollDroppable:Ie,dragStartTime:en,shouldUseTimeDampening:Pt})},je=function(st){_l(),Pe&&br(!1);var Et=Date.now(),Pt=!1,en=function(){Pt=!0};sa({state:st,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:en,scrollDroppable:en}),Pe={dragStartTime:Et,shouldUseTimeDampening:Pt},Ys(),Pt&&ze(st)},At=function(){Pe&&(xe.cancel(),Ie.cancel(),Pe=null)};return{start:je,stop:At,scroll:ze}},Ri=function(oe){var le=oe.move,de=oe.scrollDroppable,xe=oe.scrollWindow,Ie=function(Ut,st){var Et=co(Ut.current.client.selection,st);le({client:Et})},Pe=function(Ut,st){if(!Hs(Ut,st))return st;var Et=fl(Ut,st);if(!Et)return de(Ut.descriptor.id,st),null;var Pt=Ho(st,Et);de(Ut.descriptor.id,Pt);var en=Ho(st,Pt);return en},ze=function(Ut,st,Et){if(!Ut||!bs(st,Et))return Et;var Pt=xs(st,Et);if(!Pt)return xe(Et),null;var en=Ho(Et,Pt);xe(en);var Fn=Ho(Et,en);return Fn},je=function(Ut){var st=Ut.scrollJumpRequest;if(st){var Et=is(Ut.impact);Et||br(!1);var Pt=Pe(Ut.dimensions.droppables[Et],st);if(Pt){var en=Ut.viewport,Fn=ze(Ut.isWindowScrollAllowed,en,Pt);Fn&&Ie(Ut,Fn)}}};return je},Jn=function(oe){var le=oe.scrollDroppable,de=oe.scrollWindow,xe=oe.move,Ie=Ur({scrollWindow:de,scrollDroppable:le}),Pe=Ri({move:xe,scrollWindow:de,scrollDroppable:le}),ze=function(Ut){if(Ut.phase==="DRAGGING"){if(Ut.movementMode==="FLUID"){Ie.scroll(Ut);return}Ut.scrollJumpRequest&&Pe(Ut)}},je={scroll:ze,start:Ie.start,stop:Ie.stop};return je},Ki="data-rbd",Do=function(){var oe=Ki+"-drag-handle";return{base:oe,draggableId:oe+"-draggable-id",contextId:oe+"-context-id"}}(),No=function(){var oe=Ki+"-draggable";return{base:oe,contextId:oe+"-context-id",id:oe+"-id"}}(),$o=function(){var oe=Ki+"-droppable";return{base:oe,contextId:oe+"-context-id",id:oe+"-id"}}(),Oo={contextId:Ki+"-scroll-container-context-id"},kl=function(le){return function(de){return"["+de+'="'+le+'"]'}},ws=function(le,de){return le.map(function(xe){var Ie=xe.styles[de];return Ie?xe.selector+" { "+Ie+" }":""}).join(" ")},Yl="pointer-events: none;",to=function(oe){var le=kl(oe),de=function(){var je=`
|
|
|
cursor: -webkit-grab;
|
|
|
cursor: grab;
|
|
|
`;return{selector:le(Do.contextId),styles:{always:`
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
touch-action: manipulation;
|
|
|
`,resting:je,dragging:Yl,dropAnimating:je}}}(),xe=function(){var je=`
|
|
|
transition: `+$t.outOfTheWay+`;
|
|
|
`;return{selector:le(No.contextId),styles:{dragging:je,dropAnimating:je,userCancel:je}}}(),Ie={selector:le($o.contextId),styles:{always:"overflow-anchor: none;"}},Pe={selector:"body",styles:{dragging:`
|
|
|
cursor: grabbing;
|
|
|
cursor: -webkit-grabbing;
|
|
|
user-select: none;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
overflow-anchor: none;
|
|
|
`}},ze=[xe,de,Ie,Pe];return{always:ws(ze,"always"),resting:ws(ze,"resting"),dragging:ws(ze,"dragging"),dropAnimating:ws(ze,"dropAnimating"),userCancel:ws(ze,"userCancel")}},ca=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?te.useLayoutEffect:te.useEffect,mo=function(){var le=document.querySelector("head");return le||br(!1),le},no=function(le){var de=document.createElement("style");return le&&de.setAttribute("nonce",le),de.type="text/css",de};function as(oe,le){var de=ur(function(){return to(oe)},[oe]),xe=(0,te.useRef)(null),Ie=(0,te.useRef)(null),Pe=Yn(Pr(function(Et){var Pt=Ie.current;Pt||br(!1),Pt.textContent=Et}),[]),ze=Yn(function(Et){var Pt=xe.current;Pt||br(!1),Pt.textContent=Et},[]);ca(function(){!xe.current&&!Ie.current||br(!1);var Et=no(le),Pt=no(le);return xe.current=Et,Ie.current=Pt,Et.setAttribute(Ki+"-always",oe),Pt.setAttribute(Ki+"-dynamic",oe),mo().appendChild(Et),mo().appendChild(Pt),ze(de.always),Pe(de.resting),function(){var en=function(zr){var Yr=zr.current;Yr||br(!1),mo().removeChild(Yr),zr.current=null};en(xe),en(Ie)}},[le,ze,Pe,de.always,de.resting,oe]);var je=Yn(function(){return Pe(de.dragging)},[Pe,de.dragging]),At=Yn(function(Et){if(Et==="DROP"){Pe(de.dropAnimating);return}Pe(de.userCancel)},[Pe,de.dropAnimating,de.userCancel]),Ut=Yn(function(){Ie.current&&Pe(de.resting)},[Pe,de.resting]),st=ur(function(){return{dragging:je,dropping:At,resting:Ut}},[je,At,Ut]);return st}var us=function(oe){return oe&&oe.ownerDocument?oe.ownerDocument.defaultView:window};function Mi(oe){return oe instanceof us(oe).HTMLElement}function na(oe,le){var de="["+Do.contextId+'="'+oe+'"]',xe=_s(document.querySelectorAll(de));if(!xe.length)return null;var Ie=Ua(xe,function(Pe){return Pe.getAttribute(Do.draggableId)===le});return!Ie||!Mi(Ie)?null:Ie}function oo(oe){var le=(0,te.useRef)({}),de=(0,te.useRef)(null),xe=(0,te.useRef)(null),Ie=(0,te.useRef)(!1),Pe=Yn(function(Pt,en){var Fn={id:Pt,focus:en};return le.current[Pt]=Fn,function(){var Yr=le.current,ni=Yr[Pt];ni!==Fn&&delete Yr[Pt]}},[]),ze=Yn(function(Pt){var en=na(oe,Pt);en&&en!==document.activeElement&&en.focus()},[oe]),je=Yn(function(Pt,en){de.current===Pt&&(de.current=en)},[]),At=Yn(function(){xe.current||Ie.current&&(xe.current=requestAnimationFrame(function(){xe.current=null;var Pt=de.current;Pt&&ze(Pt)}))},[ze]),Ut=Yn(function(Pt){de.current=null;var en=document.activeElement;en&&en.getAttribute(Do.draggableId)===Pt&&(de.current=Pt)},[]);ca(function(){return Ie.current=!0,function(){Ie.current=!1;var Pt=xe.current;Pt&&cancelAnimationFrame(Pt)}},[]);var st=ur(function(){return{register:Pe,tryRecordFocus:Ut,tryRestoreFocusRecorded:At,tryShiftRecord:je}},[Pe,Ut,At,je]);return st}function os(){var oe={draggables:{},droppables:{}},le=[];function de(Et){return le.push(Et),function(){var en=le.indexOf(Et);en!==-1&&le.splice(en,1)}}function xe(Et){le.length&&le.forEach(function(Pt){return Pt(Et)})}function Ie(Et){return oe.draggables[Et]||null}function Pe(Et){var Pt=Ie(Et);return Pt||br(!1),Pt}var ze={register:function(Pt){oe.draggables[Pt.descriptor.id]=Pt,xe({type:"ADDITION",value:Pt})},update:function(Pt,en){var Fn=oe.draggables[en.descriptor.id];Fn&&Fn.uniqueId===Pt.uniqueId&&(delete oe.draggables[en.descriptor.id],oe.draggables[Pt.descriptor.id]=Pt)},unregister:function(Pt){var en=Pt.descriptor.id,Fn=Ie(en);Fn&&Pt.uniqueId===Fn.uniqueId&&(delete oe.draggables[en],xe({type:"REMOVAL",value:Pt}))},getById:Pe,findById:Ie,exists:function(Pt){return!!Ie(Pt)},getAllByType:function(Pt){return js(oe.draggables).filter(function(en){return en.descriptor.type===Pt})}};function je(Et){return oe.droppables[Et]||null}function At(Et){var Pt=je(Et);return Pt||br(!1),Pt}var Ut={register:function(Pt){oe.droppables[Pt.descriptor.id]=Pt},unregister:function(Pt){var en=je(Pt.descriptor.id);en&&Pt.uniqueId===en.uniqueId&&delete oe.droppables[Pt.descriptor.id]},getById:At,findById:je,exists:function(Pt){return!!je(Pt)},getAllByType:function(Pt){return js(oe.droppables).filter(function(en){return en.descriptor.type===Pt})}};function st(){oe.draggables={},oe.droppables={},le.length=0}return{draggable:ze,droppable:Ut,subscribe:de,clean:st}}function zo(){var oe=ur(os,[]);return(0,te.useEffect)(function(){return function(){requestAnimationFrame(oe.clean)}},[oe]),oe}var Is=te.createContext(null),Qo=function(){var oe=document.body;return oe||br(!1),oe},zl={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Ml=function(le){return"rbd-announcement-"+le};function Ts(oe){var le=ur(function(){return Ml(oe)},[oe]),de=(0,te.useRef)(null);(0,te.useEffect)(function(){var Pe=document.createElement("div");return de.current=Pe,Pe.id=le,Pe.setAttribute("aria-live","assertive"),Pe.setAttribute("aria-atomic","true"),(0,ct.Z)(Pe.style,zl),Qo().appendChild(Pe),function(){setTimeout(function(){var At=Qo();At.contains(Pe)&&At.removeChild(Pe),Pe===de.current&&(de.current=null)})}},[le]);var xe=Yn(function(Ie){var Pe=de.current;if(Pe){Pe.textContent=Ie;return}},[]);return xe}var Ns=0,lu={separator:"::"};function cc(){Ns=0}function Wu(oe,le){return le===void 0&&(le=lu),ur(function(){return""+oe+le.separator+Ns++},[le.separator,oe])}function ud(oe){var le=oe.contextId,de=oe.uniqueId;return"rbd-hidden-text-"+le+"-"+de}function cd(oe){var le=oe.contextId,de=oe.text,xe=Wu("hidden-text",{separator:"-"}),Ie=ur(function(){return ud({contextId:le,uniqueId:xe})},[xe,le]);return(0,te.useEffect)(function(){var ze=document.createElement("div");return ze.id=Ie,ze.textContent=de,ze.style.display="none",Qo().appendChild(ze),function(){var At=Qo();At.contains(ze)&&At.removeChild(ze)}},[Ie,de]),Ie}var dc=te.createContext(null),Su={react:"^16.8.5","react-dom":"^16.8.5"},qa=/(\d+)\.(\d+)\.(\d+)/,gi=function(le){var de=qa.exec(le);de==null&&br(!1);var xe=Number(de[1]),Ie=Number(de[2]),Pe=Number(de[3]);return{major:xe,minor:Ie,patch:Pe,raw:le}},so=function(le,de){return de.major>le.major?!0:de.major<le.major?!1:de.minor>le.minor?!0:de.minor<le.minor?!1:de.patch>=le.patch},tl=function(oe,le){var de=gi(oe),xe=gi(le);so(de,xe)},hl=`
|
|
|
We expect a html5 doctype: <!doctype html>
|
|
|
This is to ensure consistent browser layout and measurement
|
|
|
|
|
|
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
|
|
|
`,Ss=function(oe){var le=oe.doctype;le&&(le.name.toLowerCase(),le.publicId)};function vu(oe){}function es(oe,le){}function Au(){es(function(){tl(Su.react,te.version),Ss(document)},[])}function Vu(oe){var le=(0,te.useRef)(oe);return(0,te.useEffect)(function(){le.current=oe}),le}function Uu(){var oe=null;function le(){return!!oe}function de(ze){return ze===oe}function xe(ze){oe&&br(!1);var je={abandon:ze};return oe=je,je}function Ie(){oe||br(!1),oe=null}function Pe(){oe&&(oe.abandon(),Ie())}return{isClaimed:le,isActive:de,claim:xe,release:Ie,tryAbandon:Pe}}var Fc=9,Pc=13,fc=27,Hr=32,Md=33,dd=34,fd=35,Tu=36,Xc=37,hd=38,qc=39,cs=40,pd,Dd=(pd={},pd[Pc]=!0,pd[Fc]=!0,pd),ju=function(oe){Dd[oe.keyCode]&&oe.preventDefault()},hc=function(){var oe="visibilitychange";if(typeof document=="undefined")return oe;var le=[oe,"ms"+oe,"webkit"+oe,"moz"+oe,"o"+oe],de=Ua(le,function(xe){return"on"+xe in document});return de||oe}(),ec=0,pc=5;function Ql(oe,le){return Math.abs(le.x-oe.x)>=pc||Math.abs(le.y-oe.y)>=pc}var gu={type:"IDLE"};function Il(oe){var le=oe.cancel,de=oe.completed,xe=oe.getPhase,Ie=oe.setPhase;return[{eventName:"mousemove",fn:function(ze){var je=ze.button,At=ze.clientX,Ut=ze.clientY;if(je===ec){var st={x:At,y:Ut},Et=xe();if(Et.type==="DRAGGING"){ze.preventDefault(),Et.actions.move(st);return}Et.type!=="PENDING"&&br(!1);var Pt=Et.point;if(Ql(Pt,st)){ze.preventDefault();var en=Et.actions.fluidLift(st);Ie({type:"DRAGGING",actions:en})}}}},{eventName:"mouseup",fn:function(ze){var je=xe();if(je.type!=="DRAGGING"){le();return}ze.preventDefault(),je.actions.drop({shouldBlockNextClick:!0}),de()}},{eventName:"mousedown",fn:function(ze){xe().type==="DRAGGING"&&ze.preventDefault(),le()}},{eventName:"keydown",fn:function(ze){var je=xe();if(je.type==="PENDING"){le();return}if(ze.keyCode===fc){ze.preventDefault(),le();return}ju(ze)}},{eventName:"resize",fn:le},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){xe().type==="PENDING"&&le()}},{eventName:"webkitmouseforcedown",fn:function(ze){var je=xe();if(je.type==="IDLE"&&br(!1),je.actions.shouldRespectForcePress()){le();return}ze.preventDefault()}},{eventName:hc,fn:le}]}function Zu(oe){var le=(0,te.useRef)(gu),de=(0,te.useRef)(Na),xe=ur(function(){return{eventName:"mousedown",fn:function(Et){if(!Et.defaultPrevented&&Et.button===ec&&!(Et.ctrlKey||Et.metaKey||Et.shiftKey||Et.altKey)){var Pt=oe.findClosestDraggableId(Et);if(Pt){var en=oe.tryGetLock(Pt,ze,{sourceEvent:Et});if(en){Et.preventDefault();var Fn={x:Et.clientX,y:Et.clientY};de.current(),Ut(en,Fn)}}}}}},[oe]),Ie=ur(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Et){if(!Et.defaultPrevented){var Pt=oe.findClosestDraggableId(Et);if(Pt){var en=oe.findOptionsForDraggable(Pt);en&&(en.shouldRespectForcePress||oe.canGetLock(Pt)&&Et.preventDefault())}}}}},[oe]),Pe=Yn(function(){var Et={passive:!1,capture:!0};de.current=io(window,[Ie,xe],Et)},[Ie,xe]),ze=Yn(function(){var st=le.current;st.type!=="IDLE"&&(le.current=gu,de.current(),Pe())},[Pe]),je=Yn(function(){var st=le.current;ze(),st.type==="DRAGGING"&&st.actions.cancel({shouldBlockNextClick:!0}),st.type==="PENDING"&&st.actions.abort()},[ze]),At=Yn(function(){var Et={capture:!0,passive:!1},Pt=Il({cancel:je,completed:ze,getPhase:function(){return le.current},setPhase:function(Fn){le.current=Fn}});de.current=io(window,Pt,Et)},[je,ze]),Ut=Yn(function(Et,Pt){le.current.type!=="IDLE"&&br(!1),le.current={type:"PENDING",point:Pt,actions:Et},At()},[At]);ca(function(){return Pe(),function(){de.current()}},[Pe])}var ku;function Gu(){}var Ic=(ku={},ku[dd]=!0,ku[Md]=!0,ku[Tu]=!0,ku[fd]=!0,ku);function Bd(oe,le){function de(){le(),oe.cancel()}function xe(){le(),oe.drop()}return[{eventName:"keydown",fn:function(Pe){if(Pe.keyCode===fc){Pe.preventDefault(),de();return}if(Pe.keyCode===Hr){Pe.preventDefault(),xe();return}if(Pe.keyCode===cs){Pe.preventDefault(),oe.moveDown();return}if(Pe.keyCode===hd){Pe.preventDefault(),oe.moveUp();return}if(Pe.keyCode===qc){Pe.preventDefault(),oe.moveRight();return}if(Pe.keyCode===Xc){Pe.preventDefault(),oe.moveLeft();return}if(Ic[Pe.keyCode]){Pe.preventDefault();return}ju(Pe)}},{eventName:"mousedown",fn:de},{eventName:"mouseup",fn:de},{eventName:"click",fn:de},{eventName:"touchstart",fn:de},{eventName:"resize",fn:de},{eventName:"wheel",fn:de,options:{passive:!0}},{eventName:hc,fn:de}]}function Ld(oe){var le=(0,te.useRef)(Gu),de=ur(function(){return{eventName:"keydown",fn:function(Pe){if(Pe.defaultPrevented||Pe.keyCode!==Hr)return;var ze=oe.findClosestDraggableId(Pe);if(!ze)return;var je=oe.tryGetLock(ze,st,{sourceEvent:Pe});if(!je)return;Pe.preventDefault();var At=!0,Ut=je.snapLift();le.current();function st(){At||br(!1),At=!1,le.current(),xe()}le.current=io(window,Bd(Ut,st),{capture:!0,passive:!1})}}},[oe]),xe=Yn(function(){var Pe={passive:!1,capture:!0};le.current=io(window,[de],Pe)},[de]);ca(function(){return xe(),function(){le.current()}},[xe])}var md={type:"IDLE"},vl=120,Yu=.15;function Tf(oe){var le=oe.cancel,de=oe.getPhase;return[{eventName:"orientationchange",fn:le},{eventName:"resize",fn:le},{eventName:"contextmenu",fn:function(Ie){Ie.preventDefault()}},{eventName:"keydown",fn:function(Ie){if(de().type!=="DRAGGING"){le();return}Ie.keyCode===fc&&Ie.preventDefault(),le()}},{eventName:hc,fn:le}]}function Tc(oe){var le=oe.cancel,de=oe.completed,xe=oe.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Pe){var ze=xe();if(ze.type!=="DRAGGING"){le();return}ze.hasMoved=!0;var je=Pe.touches[0],At=je.clientX,Ut=je.clientY,st={x:At,y:Ut};Pe.preventDefault(),ze.actions.move(st)}},{eventName:"touchend",fn:function(Pe){var ze=xe();if(ze.type!=="DRAGGING"){le();return}Pe.preventDefault(),ze.actions.drop({shouldBlockNextClick:!0}),de()}},{eventName:"touchcancel",fn:function(Pe){if(xe().type!=="DRAGGING"){le();return}Pe.preventDefault(),le()}},{eventName:"touchforcechange",fn:function(Pe){var ze=xe();ze.type==="IDLE"&&br(!1);var je=Pe.touches[0];if(je){var At=je.force>=Yu;if(At){var Ut=ze.actions.shouldRespectForcePress();if(ze.type==="PENDING"){Ut&&le();return}if(Ut){if(ze.hasMoved){Pe.preventDefault();return}le();return}Pe.preventDefault()}}}},{eventName:hc,fn:le}]}function vd(oe){var le=(0,te.useRef)(md),de=(0,te.useRef)(Na),xe=Yn(function(){return le.current},[]),Ie=Yn(function(en){le.current=en},[]),Pe=ur(function(){return{eventName:"touchstart",fn:function(en){if(!en.defaultPrevented){var Fn=oe.findClosestDraggableId(en);if(Fn){var zr=oe.tryGetLock(Fn,je,{sourceEvent:en});if(zr){var Yr=en.touches[0],ni=Yr.clientX,Ii=Yr.clientY,ra={x:ni,y:Ii};de.current(),Et(zr,ra)}}}}}},[oe]),ze=Yn(function(){var en={capture:!0,passive:!1};de.current=io(window,[Pe],en)},[Pe]),je=Yn(function(){var Pt=le.current;Pt.type!=="IDLE"&&(Pt.type==="PENDING"&&clearTimeout(Pt.longPressTimerId),Ie(md),de.current(),ze())},[ze,Ie]),At=Yn(function(){var Pt=le.current;je(),Pt.type==="DRAGGING"&&Pt.actions.cancel({shouldBlockNextClick:!0}),Pt.type==="PENDING"&&Pt.actions.abort()},[je]),Ut=Yn(function(){var en={capture:!0,passive:!1},Fn={cancel:At,completed:je,getPhase:xe},zr=io(window,Tc(Fn),en),Yr=io(window,Tf(Fn),en);de.current=function(){zr(),Yr()}},[At,xe,je]),st=Yn(function(){var en=xe();en.type!=="PENDING"&&br(!1);var Fn=en.actions.fluidLift(en.point);Ie({type:"DRAGGING",actions:Fn,hasMoved:!1})},[xe,Ie]),Et=Yn(function(en,Fn){xe().type!=="IDLE"&&br(!1);var zr=setTimeout(st,vl);Ie({type:"PENDING",point:Fn,actions:en,longPressTimerId:zr}),Ut()},[Ut,xe,Ie,st]);ca(function(){return ze(),function(){de.current();var Fn=xe();Fn.type==="PENDING"&&(clearTimeout(Fn.longPressTimerId),Ie(md))}},[xe,ze,Ie]),ca(function(){var en=io(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return en},[])}function Co(oe){}var Nc={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Qu(oe,le){if(le==null)return!1;var de=!!Nc[le.tagName.toLowerCase()];if(de)return!0;var xe=le.getAttribute("contenteditable");return xe==="true"||xe===""?!0:le===oe?!1:Qu(oe,le.parentElement)}function $c(oe,le){var de=le.target;return Mi(de)?Qu(oe,de):!1}var $n=function(oe){return Ni(oe.getBoundingClientRect()).center};function tf(oe){return oe instanceof us(oe).Element}var nf=function(){var oe="matches";if(typeof document=="undefined")return oe;var le=[oe,"msMatchesSelector","webkitMatchesSelector"],de=Ua(le,function(xe){return xe in Element.prototype});return de||oe}();function gd(oe,le){return oe==null?null:oe[nf](le)?oe:gd(oe.parentElement,le)}function Fd(oe,le){return oe.closest?oe.closest(le):gd(oe,le)}function tc(oe){return"["+Do.contextId+'="'+oe+'"]'}function ed(oe,le){var de=le.target;if(!tf(de))return null;var xe=tc(oe),Ie=Fd(de,xe);return!Ie||!Mi(Ie)?null:Ie}function Nf(oe,le){var de=ed(oe,le);return de?de.getAttribute(Do.draggableId):null}function Tl(oe,le){var de="["+No.contextId+'="'+oe+'"]',xe=_s(document.querySelectorAll(de)),Ie=Ua(xe,function(Pe){return Pe.getAttribute(No.id)===le});return!Ie||!Mi(Ie)?null:Ie}function mc(oe){oe.preventDefault()}function Ec(oe){var le=oe.expected,de=oe.phase,xe=oe.isLockActive,Ie=oe.shouldWarn;return!(!xe()||le!==de)}function td(oe){var le=oe.lockAPI,de=oe.store,xe=oe.registry,Ie=oe.draggableId;if(le.isClaimed())return!1;var Pe=xe.draggable.findById(Ie);return!(!Pe||!Pe.options.isEnabled||!La(de.getState(),Ie))}function Of(oe){var le=oe.lockAPI,de=oe.contextId,xe=oe.store,Ie=oe.registry,Pe=oe.draggableId,ze=oe.forceSensorStop,je=oe.sourceEvent,At=td({lockAPI:le,store:xe,registry:Ie,draggableId:Pe});if(!At)return null;var Ut=Ie.draggable.getById(Pe),st=Tl(de,Ut.descriptor.id);if(!st||je&&!Ut.options.canDragInteractiveElements&&$c(st,je))return null;var Et=le.claim(ze||Na),Pt="PRE_DRAG";function en(){return Ut.options.shouldRespectForcePress}function Fn(){return le.isActive(Et)}function zr(ga,vo){Ec({expected:ga,phase:Pt,isLockActive:Fn,shouldWarn:!0})&&xe.dispatch(vo())}var Yr=zr.bind(null,"DRAGGING");function ni(ga){function vo(){le.release(),Pt="COMPLETED"}Pt!=="PRE_DRAG"&&(vo(),Pt!=="PRE_DRAG"&&br(!1)),xe.dispatch(He(ga.liftActionArgs)),Pt="DRAGGING";function rl(go,ts){if(ts===void 0&&(ts={shouldBlockNextClick:!1}),ga.cleanup(),ts.shouldBlockNextClick){var Xl=io(window,[{eventName:"click",fn:mc,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(Xl)}vo(),xe.dispatch(Be({reason:go}))}return(0,ct.Z)({isActive:function(){return Ec({expected:"DRAGGING",phase:Pt,isLockActive:Fn,shouldWarn:!1})},shouldRespectForcePress:en,drop:function(ts){return rl("DROP",ts)},cancel:function(ts){return rl("CANCEL",ts)}},ga.actions)}function Ii(ga){var vo=Wa(function(go){Yr(function(){return lr({client:go})})}),rl=ni({liftActionArgs:{id:Pe,clientSelection:ga,movementMode:"FLUID"},cleanup:function(){return vo.cancel()},actions:{move:vo}});return(0,ct.Z)({},rl,{move:vo})}function ra(){var ga={moveUp:function(){return Yr(Fr)},moveRight:function(){return Yr(Mr)},moveDown:function(){return Yr(hi)},moveLeft:function(){return Yr(ti)}};return ni({liftActionArgs:{id:Pe,clientSelection:$n(st),movementMode:"SNAP"},cleanup:Na,actions:ga})}function da(){var ga=Ec({expected:"PRE_DRAG",phase:Pt,isLockActive:Fn,shouldWarn:!0});ga&&le.release()}var Ya={isActive:function(){return Ec({expected:"PRE_DRAG",phase:Pt,isLockActive:Fn,shouldWarn:!1})},shouldRespectForcePress:en,fluidLift:Ii,snapLift:ra,abort:da};return Ya}var rf=[Zu,Ld,vd];function Pd(oe){var le=oe.contextId,de=oe.store,xe=oe.registry,Ie=oe.customSensors,Pe=oe.enableDefaultSensors,ze=[].concat(Pe?rf:[],Ie||[]),je=(0,te.useState)(function(){return Uu()})[0],At=Yn(function(Ii,ra){Ii.isDragging&&!ra.isDragging&&je.tryAbandon()},[je]);ca(function(){var Ii=de.getState(),ra=de.subscribe(function(){var da=de.getState();At(Ii,da),Ii=da});return ra},[je,de,At]),ca(function(){return je.tryAbandon},[je.tryAbandon]);var Ut=Yn(function(ni){return td({lockAPI:je,registry:xe,store:de,draggableId:ni})},[je,xe,de]),st=Yn(function(ni,Ii,ra){return Of({lockAPI:je,registry:xe,contextId:le,store:de,draggableId:ni,forceSensorStop:Ii,sourceEvent:ra&&ra.sourceEvent?ra.sourceEvent:null})},[le,je,xe,de]),Et=Yn(function(ni){return Nf(le,ni)},[le]),Pt=Yn(function(ni){var Ii=xe.draggable.findById(ni);return Ii?Ii.options:null},[xe.draggable]),en=Yn(function(){je.isClaimed()&&(je.tryAbandon(),de.getState().phase!=="IDLE"&&de.dispatch(Rr()))},[je,de]),Fn=Yn(je.isClaimed,[je]),zr=ur(function(){return{canGetLock:Ut,tryGetLock:st,findClosestDraggableId:Et,findOptionsForDraggable:Pt,tryReleaseLock:en,isLockClaimed:Fn}},[Ut,st,Et,Pt,en,Fn]);Co(ze);for(var Yr=0;Yr<ze.length;Yr++)ze[Yr](zr)}var af=function(le){return{onBeforeCapture:le.onBeforeCapture,onBeforeDragStart:le.onBeforeDragStart,onDragStart:le.onDragStart,onDragEnd:le.onDragEnd,onDragUpdate:le.onDragUpdate}};function nc(oe){return oe.current||br(!1),oe.current}function Wl(oe){var le=oe.contextId,de=oe.setCallbacks,xe=oe.sensors,Ie=oe.nonce,Pe=oe.dragHandleUsageInstructions,ze=(0,te.useRef)(null);Au();var je=Vu(oe),At=Yn(function(){return af(je.current)},[je]),Ut=Ts(le),st=cd({contextId:le,text:Pe}),Et=as(le,Ie),Pt=Yn(function(go){nc(ze).dispatch(go)},[]),en=ur(function(){return(0,Ve.DE)({publishWhileDragging:Tt,updateDroppableScroll:En,updateDroppableIsEnabled:Nn,updateDroppableIsCombineEnabled:or,collectionStarting:hn},Pt)},[Pt]),Fn=zo(),zr=ur(function(){return Pi(Fn,en)},[Fn,en]),Yr=ur(function(){return Jn((0,ct.Z)({scrollWindow:Sa,scrollDroppable:zr.scrollDroppable},(0,Ve.DE)({move:lr},Pt)))},[zr.scrollDroppable,Pt]),ni=oo(le),Ii=ur(function(){return Yi({announce:Ut,autoScroller:Yr,dimensionMarshal:zr,focusMarshal:ni,getResponders:At,styleMarshal:Et})},[Ut,Yr,zr,ni,At,Et]);ze.current=Ii;var ra=Yn(function(){var go=nc(ze),ts=go.getState();ts.phase!=="IDLE"&&go.dispatch(Rr())},[]),da=Yn(function(){var go=nc(ze).getState();return go.isDragging||go.phase==="DROP_ANIMATING"},[]),Ya=ur(function(){return{isDragging:da,tryAbort:ra}},[da,ra]);de(Ya);var ga=Yn(function(go){return La(nc(ze).getState(),go)},[]),vo=Yn(function(){return Fs(nc(ze).getState())},[]),rl=ur(function(){return{marshal:zr,focus:ni,contextId:le,canLift:ga,isMovementAllowed:vo,dragHandleUsageInstructionsId:st,registry:Fn}},[le,zr,st,ni,ga,vo,Fn]);return Pd({contextId:le,store:Ii,registry:Fn,customSensors:xe,enableDefaultSensors:oe.enableDefaultSensors!==!1}),(0,te.useEffect)(function(){return ra},[ra]),te.createElement(dc.Provider,{value:rl},te.createElement(Qe,{context:Is,store:Ii},oe.children))}var rc=0;function of(){rc=0}function Id(){return ur(function(){return""+rc++},[])}function Sc(){of(),cc()}function sf(oe){var le=Id(),de=oe.dragHandleUsageInstructions||Ws.dragHandleUsageInstructions;return te.createElement(Cl,null,function(xe){return te.createElement(Wl,{nonce:oe.nonce,contextId:le,setCallbacks:xe,dragHandleUsageInstructions:de,enableDefaultSensors:oe.enableDefaultSensors,sensors:oe.sensors,onBeforeCapture:oe.onBeforeCapture,onBeforeDragStart:oe.onBeforeDragStart,onDragStart:oe.onDragStart,onDragUpdate:oe.onDragUpdate,onDragEnd:oe.onDragEnd},oe.children)})}var Oc=function(le){return function(de){return le===de}},Rf=Oc("scroll"),_f=Oc("auto"),lf=Oc("visible"),Ha=function(le,de){return de(le.overflowX)||de(le.overflowY)},Kf=function(le,de){return de(le.overflowX)&&de(le.overflowY)},yd=function(le){var de=window.getComputedStyle(le),xe={overflowX:de.overflowX,overflowY:de.overflowY};return Ha(xe,Rf)||Ha(xe,_f)},Nu=function(){return!1;var le,de,xe,Ie},Mu=function oe(le){return le==null?null:le===document.body?Nu()?le:null:le===document.documentElement?null:yd(le)?le:oe(le.parentElement)},Ac=function(oe){if(oe)var le=Mu(oe.parentElement)},nd=function(oe){return{x:oe.scrollLeft,y:oe.scrollTop}},Td=function oe(le){if(!le)return!1;var de=window.getComputedStyle(le);return de.position==="fixed"?!0:oe(le.parentElement)},Nd=function(oe){var le=Mu(oe),de=Td(oe);return{closestScrollable:le,isFixedOnPage:de}},Rc=function(oe){var le=oe.descriptor,de=oe.isEnabled,xe=oe.isCombineEnabled,Ie=oe.isFixedOnPage,Pe=oe.direction,ze=oe.client,je=oe.page,At=oe.closest,Ut=function(){if(!At)return null;var en=At.scrollSize,Fn=At.client,zr=Ai({scrollHeight:en.scrollHeight,scrollWidth:en.scrollWidth,height:Fn.paddingBox.height,width:Fn.paddingBox.width});return{pageMarginBox:At.page.marginBox,frameClient:Fn,scrollSize:en,shouldClipSubject:At.shouldClipSubject,scroll:{initial:At.scroll,current:At.scroll,max:zr,diff:{value:xo,displacement:xo}}}}(),st=Pe==="vertical"?Rn:Mn,Et=ol({page:je,withPlaceholder:null,axis:st,frame:Ut}),Pt={descriptor:le,isCombineEnabled:xe,isFixedOnPage:Ie,axis:st,isEnabled:de,client:ze,page:je,frame:Ut,subject:Et};return Pt},uf=function(le,de){var xe=ro(le);if(!de||le!==de)return xe;var Ie=xe.paddingBox.top-de.scrollTop,Pe=xe.paddingBox.left-de.scrollLeft,ze=Ie+de.scrollHeight,je=Pe+de.scrollWidth,At={top:Ie,right:je,bottom:ze,left:Pe},Ut=Fi(At,xe.border),st=Da({borderBox:Ut,margin:xe.margin,border:xe.border,padding:xe.padding});return st},Od=function(oe){var le=oe.ref,de=oe.descriptor,xe=oe.env,Ie=oe.windowScroll,Pe=oe.direction,ze=oe.isDropDisabled,je=oe.isCombineEnabled,At=oe.shouldClipSubject,Ut=xe.closestScrollable,st=uf(le,Ut),Et=di(st,Ie),Pt=function(){if(!Ut)return null;var Fn=ro(Ut),zr={scrollHeight:Ut.scrollHeight,scrollWidth:Ut.scrollWidth};return{client:Fn,page:di(Fn,Ie),scroll:nd(Ut),scrollSize:zr,shouldClipSubject:At}}(),en=Rc({descriptor:de,isEnabled:!ze,isCombineEnabled:je,isFixedOnPage:xe.isFixedOnPage,direction:Pe,client:st,page:Et,closest:Pt});return en},Rd={passive:!1},bd={passive:!0},_d=function(oe){return oe.shouldPublishImmediately?Rd:bd};function Jo(oe){var le=(0,te.useContext)(oe);return le||br(!1),le}var rd=function(le){return le&&le.env.closestScrollable||null};function Hf(oe){var le=(0,te.useRef)(null),de=Jo(dc),xe=Wu("droppable"),Ie=de.registry,Pe=de.marshal,ze=Vu(oe),je=ur(function(){return{id:oe.droppableId,type:oe.type,mode:oe.mode}},[oe.droppableId,oe.mode,oe.type]),At=(0,te.useRef)(je),Ut=ur(function(){return Pr(function(da,Ya){le.current||br(!1);var ga={x:da,y:Ya};Pe.updateDroppableScroll(je.id,ga)})},[je.id,Pe]),st=Yn(function(){var da=le.current;return!da||!da.env.closestScrollable?xo:nd(da.env.closestScrollable)},[]),Et=Yn(function(){var da=st();Ut(da.x,da.y)},[st,Ut]),Pt=ur(function(){return Wa(Et)},[Et]),en=Yn(function(){var da=le.current,Ya=rd(da);da&&Ya||br(!1);var ga=da.scrollOptions;if(ga.shouldPublishImmediately){Et();return}Pt()},[Pt,Et]),Fn=Yn(function(da,Ya){le.current&&br(!1);var ga=ze.current,vo=ga.getDroppableRef();vo||br(!1);var rl=Nd(vo),go={ref:vo,descriptor:je,env:rl,scrollOptions:Ya};le.current=go;var ts=Od({ref:vo,descriptor:je,env:rl,windowScroll:da,direction:ga.direction,isDropDisabled:ga.isDropDisabled,isCombineEnabled:ga.isCombineEnabled,shouldClipSubject:!ga.ignoreContainerClipping}),Xl=rl.closestScrollable;return Xl&&(Xl.setAttribute(Oo.contextId,de.contextId),Xl.addEventListener("scroll",en,_d(go.scrollOptions))),ts},[de.contextId,je,en,ze]),zr=Yn(function(){var da=le.current,Ya=rd(da);return da&&Ya||br(!1),nd(Ya)},[]),Yr=Yn(function(){var da=le.current;da||br(!1);var Ya=rd(da);le.current=null,Ya&&(Pt.cancel(),Ya.removeAttribute(Oo.contextId),Ya.removeEventListener("scroll",en,_d(da.scrollOptions)))},[en,Pt]),ni=Yn(function(da){var Ya=le.current;Ya||br(!1);var ga=rd(Ya);ga||br(!1),ga.scrollTop+=da.y,ga.scrollLeft+=da.x},[]),Ii=ur(function(){return{getDimensionAndWatchScroll:Fn,getScrollWhileDragging:zr,dragStopped:Yr,scroll:ni}},[Yr,Fn,zr,ni]),ra=ur(function(){return{uniqueId:xe,descriptor:je,callbacks:Ii}},[Ii,je,xe]);ca(function(){return At.current=ra.descriptor,Ie.droppable.register(ra),function(){le.current&&Yr(),Ie.droppable.unregister(ra)}},[Ii,je,Yr,ra,Pe,Ie.droppable]),ca(function(){le.current&&Pe.updateDroppableIsEnabled(At.current.id,!oe.isDropDisabled)},[oe.isDropDisabled,Pe]),ca(function(){le.current&&Pe.updateDroppableIsCombineEnabled(At.current.id,oe.isCombineEnabled)},[oe.isCombineEnabled,Pe])}function vc(){}var cf={width:0,height:0,margin:So},xd=function(le){var de=le.isAnimatingOpenOnMount,xe=le.placeholder,Ie=le.animate;return de||Ie==="close"?cf:{height:xe.client.borderBox.height,width:xe.client.borderBox.width,margin:xe.client.margin}},zf=function(le){var de=le.isAnimatingOpenOnMount,xe=le.placeholder,Ie=le.animate,Pe=xd({isAnimatingOpenOnMount:de,placeholder:xe,animate:Ie});return{display:xe.display,boxSizing:"border-box",width:Pe.width,height:Pe.height,marginTop:Pe.margin.top,marginRight:Pe.margin.right,marginBottom:Pe.margin.bottom,marginLeft:Pe.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Ie!=="none"?$t.placeholder:null}};function ds(oe){var le=(0,te.useRef)(null),de=Yn(function(){le.current&&(clearTimeout(le.current),le.current=null)},[]),xe=oe.animate,Ie=oe.onTransitionEnd,Pe=oe.onClose,ze=oe.contextId,je=(0,te.useState)(oe.animate==="open"),At=je[0],Ut=je[1];(0,te.useEffect)(function(){return At?xe!=="open"?(de(),Ut(!1),vc):le.current?vc:(le.current=setTimeout(function(){le.current=null,Ut(!1)}),de):vc},[xe,At,de]);var st=Yn(function(Pt){Pt.propertyName==="height"&&(Ie(),xe==="close"&&Pe())},[xe,Pe,Ie]),Et=zf({isAnimatingOpenOnMount:At,animate:oe.animate,placeholder:oe.placeholder});return te.createElement(oe.placeholder.tagName,{style:Et,"data-rbd-placeholder-context-id":ze,onTransitionEnd:st,ref:oe.innerRef})}var kc=te.memo(ds),gc=te.createContext(null);function Ju(oe){oe&&Mi(oe)||br(!1)}function uu(oe){return typeof oe=="boolean"}function x(oe,le){le.forEach(function(de){return de(oe)})}var z=[function(le){var de=le.props;de.droppableId||br(!1),typeof de.droppableId!="string"&&br(!1)},function(le){var de=le.props;uu(de.isDropDisabled)||br(!1),uu(de.isCombineEnabled)||br(!1),uu(de.ignoreContainerClipping)||br(!1)},function(le){var de=le.getDroppableRef;Ju(de())}],re=[function(le){var de=le.props,xe=le.getPlaceholderRef;if(de.placeholder)var Ie=xe()}],ne=[function(le){var de=le.props;de.renderClone||br(!1)},function(le){var de=le.getPlaceholderRef;de()&&br(!1)}];function ae(oe){es(function(){x(oe,z),oe.props.mode==="standard"&&x(oe,re),oe.props.mode==="virtual"&&x(oe,ne)})}var pe=function(oe){lt(le,oe);function le(){for(var xe,Ie=arguments.length,Pe=new Array(Ie),ze=0;ze<Ie;ze++)Pe[ze]=arguments[ze];return xe=oe.call.apply(oe,[this].concat(Pe))||this,xe.state={isVisible:!!xe.props.on,data:xe.props.on,animate:xe.props.shouldAnimate&&xe.props.on?"open":"none"},xe.onClose=function(){xe.state.animate==="close"&&xe.setState({isVisible:!1})},xe}le.getDerivedStateFromProps=function(Ie,Pe){return Ie.shouldAnimate?Ie.on?{isVisible:!0,data:Ie.on,animate:"open"}:Pe.isVisible?{isVisible:!0,data:Pe.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!Ie.on,data:Ie.on,animate:"none"}};var de=le.prototype;return de.render=function(){if(!this.state.isVisible)return null;var Ie={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Ie)},le}(te.PureComponent),Ce={dragging:5e3,dropAnimating:4500},Fe=function(le,de){return de?$t.drop(de.duration):le?$t.snap:$t.fluid},Ne=function(le,de){return le?de?gt.opacity.drop:gt.opacity.combining:null},Ue=function(le){return le.forceShouldAnimate!=null?le.forceShouldAnimate:le.mode==="SNAP"};function Bt(oe){var le=oe.dimension,de=le.client,xe=oe.offset,Ie=oe.combineWith,Pe=oe.dropping,ze=!!Ie,je=Ue(oe),At=!!Pe,Ut=At?qt.drop(xe,ze):qt.moveTo(xe),st={position:"fixed",top:de.marginBox.top,left:de.marginBox.left,boxSizing:"border-box",width:de.borderBox.width,height:de.borderBox.height,transition:Fe(je,Pe),transform:Ut,opacity:Ne(ze,At),zIndex:At?Ce.dropAnimating:Ce.dragging,pointerEvents:"none"};return st}function Vt(oe){return{transform:qt.moveTo(oe.offset),transition:oe.shouldAnimateDisplacement?null:"none"}}function Sn(oe){return oe.type==="DRAGGING"?Bt(oe):Vt(oe)}function bn(oe,le,de){de===void 0&&(de=xo);var xe=window.getComputedStyle(le),Ie=le.getBoundingClientRect(),Pe=Lo(Ie,xe),ze=di(Pe,de),je={client:Pe,tagName:le.tagName.toLowerCase(),display:xe.display},At={x:Pe.marginBox.width,y:Pe.marginBox.height},Ut={descriptor:oe,placeholder:je,displaceBy:At,client:Pe,page:ze};return Ut}function nr(oe){var le=Wu("draggable"),de=oe.descriptor,xe=oe.registry,Ie=oe.getDraggableRef,Pe=oe.canDragInteractiveElements,ze=oe.shouldRespectForcePress,je=oe.isEnabled,At=ur(function(){return{canDragInteractiveElements:Pe,shouldRespectForcePress:ze,isEnabled:je}},[Pe,je,ze]),Ut=Yn(function(en){var Fn=Ie();return Fn||br(!1),bn(de,Fn,en)},[de,Ie]),st=ur(function(){return{uniqueId:le,descriptor:de,options:At,getDimension:Ut}},[de,Ut,At,le]),Et=(0,te.useRef)(st),Pt=(0,te.useRef)(!0);ca(function(){return xe.draggable.register(Et.current),function(){return xe.draggable.unregister(Et.current)}},[xe.draggable]),ca(function(){if(Pt.current){Pt.current=!1;return}var en=Et.current;Et.current=st,xe.draggable.update(st,en)},[st,xe.draggable])}function Cr(oe,le,de){es(function(){function xe(Pe){return"Draggable[id: "+Pe+"]: "}var Ie=oe.draggableId;Ie||br(!1),typeof Ie!="string"&&br(!1),Us(oe.index)||br(!1),oe.mapped.type!=="DRAGGING"&&(Ju(de()),oe.isEnabled&&(na(le,Ie)||br(!1)))})}function Xr(oe){}function yi(oe){oe.preventDefault()}function Di(oe){var le=(0,te.useRef)(null),de=Yn(function(go){le.current=go},[]),xe=Yn(function(){return le.current},[]),Ie=Jo(dc),Pe=Ie.contextId,ze=Ie.dragHandleUsageInstructionsId,je=Ie.registry,At=Jo(gc),Ut=At.type,st=At.droppableId,Et=ur(function(){return{id:oe.draggableId,index:oe.index,type:Ut,droppableId:st}},[oe.draggableId,oe.index,Ut,st]),Pt=oe.children,en=oe.draggableId,Fn=oe.isEnabled,zr=oe.shouldRespectForcePress,Yr=oe.canDragInteractiveElements,ni=oe.isClone,Ii=oe.mapped,ra=oe.dropAnimationFinished;if(Cr(oe,Pe,xe),Xr(ni),!ni){var da=ur(function(){return{descriptor:Et,registry:je,getDraggableRef:xe,canDragInteractiveElements:Yr,shouldRespectForcePress:zr,isEnabled:Fn}},[Et,je,xe,Yr,zr,Fn]);nr(da)}var Ya=ur(function(){return Fn?{tabIndex:0,role:"button","aria-describedby":ze,"data-rbd-drag-handle-draggable-id":en,"data-rbd-drag-handle-context-id":Pe,draggable:!1,onDragStart:yi}:null},[Pe,ze,en,Fn]),ga=Yn(function(go){Ii.type==="DRAGGING"&&Ii.dropping&&go.propertyName==="transform"&&ra()},[ra,Ii]),vo=ur(function(){var go=Sn(Ii),ts=Ii.type==="DRAGGING"&&Ii.dropping?ga:null,Xl={innerRef:de,draggableProps:{"data-rbd-draggable-context-id":Pe,"data-rbd-draggable-id":en,style:go,onTransitionEnd:ts},dragHandleProps:Ya};return Xl},[Pe,Ya,en,Ii,ga,de]),rl=ur(function(){return{draggableId:Et.id,type:Et.type,source:{index:Et.index,droppableId:Et.droppableId}}},[Et.droppableId,Et.id,Et.index,Et.type]);return Pt(vo,Ii.snapshot,rl)}var ci=function(oe,le){return oe===le},Li=function(oe){var le=oe.combine,de=oe.destination;return de?de.droppableId:le?le.droppableId:null},ya=function(le){return le.combine?le.combine.draggableId:null},Aa=function(le){return le.at&&le.at.type==="COMBINE"?le.at.combine.draggableId:null};function uo(){var oe=Pr(function(Ie,Pe){return{x:Ie,y:Pe}}),le=Pr(function(Ie,Pe,ze,je,At){return{isDragging:!0,isClone:Pe,isDropAnimating:!!At,dropAnimation:At,mode:Ie,draggingOver:ze,combineWith:je,combineTargetFor:null}}),de=Pr(function(Ie,Pe,ze,je,At,Ut,st){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:At,combineWith:Ut,mode:Pe,offset:Ie,dimension:ze,forceShouldAnimate:st,snapshot:le(Pe,je,At,Ut,null)}}}),xe=function(Pe,ze){if(Pe.isDragging){if(Pe.critical.draggable.id!==ze.draggableId)return null;var je=Pe.current.client.offset,At=Pe.dimensions.draggables[ze.draggableId],Ut=is(Pe.impact),st=Aa(Pe.impact),Et=Pe.forceShouldAnimate;return de(oe(je.x,je.y),Pe.movementMode,At,ze.isClone,Ut,st,Et)}if(Pe.phase==="DROP_ANIMATING"){var Pt=Pe.completed;if(Pt.result.draggableId!==ze.draggableId)return null;var en=ze.isClone,Fn=Pe.dimensions.draggables[ze.draggableId],zr=Pt.result,Yr=zr.mode,ni=Li(zr),Ii=ya(zr),ra=Pe.dropDuration,da={duration:ra,curve:rt.drop,moveTo:Pe.newHomeClientOffset,opacity:Ii?gt.opacity.drop:null,scale:Ii?gt.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Pe.newHomeClientOffset,dimension:Fn,dropping:da,draggingOver:ni,combineWith:Ii,mode:Yr,forceShouldAnimate:null,snapshot:le(Yr,en,ni,Ii,da)}}}return null};return xe}function ss(oe){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:oe,combineWith:null}}var Dl={mapped:{type:"SECONDARY",offset:xo,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:ss(null)}};function Qs(){var oe=Pr(function(ze,je){return{x:ze,y:je}}),le=Pr(ss),de=Pr(function(ze,je,At){return je===void 0&&(je=null),{mapped:{type:"SECONDARY",offset:ze,combineTargetFor:je,shouldAnimateDisplacement:At,snapshot:le(je)}}}),xe=function(je){return je?de(xo,je,!0):null},Ie=function(je,At,Ut,st){var Et=Ut.displaced.visible[je],Pt=!!(st.inVirtualList&&st.effected[je]),en=_e(Ut),Fn=en&&en.draggableId===je?At:null;if(!Et){if(!Pt)return xe(Fn);if(Ut.displaced.invisible[je])return null;var zr=Ro(st.displacedBy.point),Yr=oe(zr.x,zr.y);return de(Yr,Fn,!0)}if(Pt)return xe(Fn);var ni=Ut.displacedBy.point,Ii=oe(ni.x,ni.y);return de(Ii,Fn,Et.shouldAnimate)},Pe=function(je,At){if(je.isDragging)return je.critical.draggable.id===At.draggableId?null:Ie(At.draggableId,je.critical.draggable.id,je.impact,je.afterCritical);if(je.phase==="DROP_ANIMATING"){var Ut=je.completed;return Ut.result.draggableId===At.draggableId?null:Ie(At.draggableId,Ut.result.draggableId,Ut.impact,Ut.afterCritical)}return null};return Pe}var tu=function(){var le=uo(),de=Qs(),xe=function(Pe,ze){return le(Pe,ze)||de(Pe,ze)||Dl};return xe},nu={dropAnimationFinished:Ct},gl=Zt(tu,nu,null,{context:Is,pure:!0,areStatePropsEqual:ci})(Di);function Jl(oe){var le=Jo(gc),de=le.isUsingCloneFor;return de===oe.draggableId&&!oe.isClone?null:te.createElement(gl,oe)}function ja(oe){var le=typeof oe.isDragDisabled=="boolean"?!oe.isDragDisabled:!0,de=!!oe.disableInteractiveElementBlocking,xe=!!oe.shouldRespectForcePress;return te.createElement(Jl,(0,ct.Z)({},oe,{isClone:!1,isEnabled:le,canDragInteractiveElements:de,shouldRespectForcePress:xe}))}function nl(oe){var le=(0,te.useContext)(dc);le||br(!1);var de=le.contextId,xe=le.isMovementAllowed,Ie=(0,te.useRef)(null),Pe=(0,te.useRef)(null),ze=oe.children,je=oe.droppableId,At=oe.type,Ut=oe.mode,st=oe.direction,Et=oe.ignoreContainerClipping,Pt=oe.isDropDisabled,en=oe.isCombineEnabled,Fn=oe.snapshot,zr=oe.useClone,Yr=oe.updateViewportMaxScroll,ni=oe.getContainerForClone,Ii=Yn(function(){return Ie.current},[]),ra=Yn(function(Bl){Ie.current=Bl},[]),da=Yn(function(){return Pe.current},[]),Ya=Yn(function(Bl){Pe.current=Bl},[]);ae({props:oe,getDroppableRef:Ii,getPlaceholderRef:da});var ga=Yn(function(){xe()&&Yr({maxScroll:wa()})},[xe,Yr]);Hf({droppableId:je,type:At,mode:Ut,direction:st,isDropDisabled:Pt,isCombineEnabled:en,ignoreContainerClipping:Et,getDroppableRef:Ii});var vo=te.createElement(pe,{on:oe.placeholder,shouldAnimate:oe.shouldAnimatePlaceholder},function(Bl){var Du=Bl.onClose,Xu=Bl.data,Ou=Bl.animate;return te.createElement(kc,{placeholder:Xu,onClose:Du,innerRef:Ya,animate:Ou,contextId:de,onTransitionEnd:ga})}),rl=ur(function(){return{innerRef:ra,placeholder:vo,droppableProps:{"data-rbd-droppable-id":je,"data-rbd-droppable-context-id":de}}},[de,je,vo,ra]),go=zr?zr.dragging.draggableId:null,ts=ur(function(){return{droppableId:je,type:At,isUsingCloneFor:go}},[je,go,At]);function Xl(){if(!zr)return null;var Bl=zr.dragging,Du=zr.render,Xu=te.createElement(Jl,{draggableId:Bl.draggableId,index:Bl.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(Ou,Ru){return Du(Ou,Ru,Bl)});return $r.createPortal(Xu,ni())}return te.createElement(gc.Provider,{value:ts},ze(rl,Fn),Xl())}var Os=function(le,de){return le===de.droppable.type},Js=function(le,de){return de.draggables[le.draggable.id]},pl=function(){var le={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},de=(0,ct.Z)({},le,{shouldAnimatePlaceholder:!1}),xe=Pr(function(ze){return{draggableId:ze.id,type:ze.type,source:{index:ze.index,droppableId:ze.droppableId}}}),Ie=Pr(function(ze,je,At,Ut,st,Et){var Pt=st.descriptor.id,en=st.descriptor.droppableId===ze;if(en){var Fn=Et?{render:Et,dragging:xe(st.descriptor)}:null,zr={isDraggingOver:At,draggingOverWith:At?Pt:null,draggingFromThisWith:Pt,isUsingPlaceholder:!0};return{placeholder:st.placeholder,shouldAnimatePlaceholder:!1,snapshot:zr,useClone:Fn}}if(!je)return de;if(!Ut)return le;var Yr={isDraggingOver:At,draggingOverWith:Pt,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:st.placeholder,shouldAnimatePlaceholder:!0,snapshot:Yr,useClone:null}}),Pe=function(je,At){var Ut=At.droppableId,st=At.type,Et=!At.isDropDisabled,Pt=At.renderClone;if(je.isDragging){var en=je.critical;if(!Os(st,en))return de;var Fn=Js(en,je.dimensions),zr=is(je.impact)===Ut;return Ie(Ut,Et,zr,zr,Fn,Pt)}if(je.phase==="DROP_ANIMATING"){var Yr=je.completed;if(!Os(st,Yr.critical))return de;var ni=Js(Yr.critical,je.dimensions);return Ie(Ut,Et,Li(Yr.result)===Ut,is(Yr.impact)===Ut,ni,Pt)}if(je.phase==="IDLE"&&je.completed&&!je.shouldFlush){var Ii=je.completed;if(!Os(st,Ii.critical))return de;var ra=is(Ii.impact)===Ut,da=!!(Ii.impact.at&&Ii.impact.at.type==="COMBINE"),Ya=Ii.critical.droppable.id===Ut;return ra?da?le:de:Ya?le:de}return de};return Pe},Mc={updateViewportMaxScroll:si};function cu(){return document.body||br(!1),document.body}var Nl={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:cu},Vo=Zt(pl,Mc,null,{context:Is,pure:!0,areStatePropsEqual:ci})(nl);Vo.defaultProps=Nl},88359:function(dn,vn){"use strict";var he;var te=60103,Ee=60106,lt=60107,ct=60108,Ve=60114,Re=60109,it=60110,ke=60112,we=60113,at=60120,tt=60115,ve=60116,kt=60121,bt=60122,$e=60117,dt=60129,Qe=60131;if(typeof Symbol=="function"&&Symbol.for){var et=Symbol.for;te=et("react.element"),Ee=et("react.portal"),lt=et("react.fragment"),ct=et("react.strict_mode"),Ve=et("react.profiler"),Re=et("react.provider"),it=et("react.context"),ke=et("react.forward_ref"),we=et("react.suspense"),at=et("react.suspense_list"),tt=et("react.memo"),ve=et("react.lazy"),kt=et("react.block"),bt=et("react.server.block"),$e=et("react.fundamental"),dt=et("react.debug_trace_mode"),Qe=et("react.legacy_hidden")}function ft(pt){if(typeof pt=="object"&&pt!==null){var qe=pt.$$typeof;switch(qe){case te:switch(pt=pt.type,pt){case lt:case Ve:case ct:case we:case at:return pt;default:switch(pt=pt&&pt.$$typeof,pt){case it:case ke:case ve:case tt:case Re:return pt;default:return qe}}case Ee:return qe}}}var Je=Re,ot=te,ht=ke,yt=lt,zt=ve,Xt=tt,Qt=Ee,Ht=Ve,wt=ct,Ye=we;he=it,he=Je,he=ot,he=ht,he=yt,he=zt,he=Xt,he=Qt,he=Ht,he=wt,he=Ye,he=function(){return!1},he=function(){return!1},vn.isContextConsumer=function(pt){return ft(pt)===it},he=function(pt){return ft(pt)===Re},he=function(pt){return typeof pt=="object"&&pt!==null&&pt.$$typeof===te},he=function(pt){return ft(pt)===ke},he=function(pt){return ft(pt)===lt},he=function(pt){return ft(pt)===ve},he=function(pt){return ft(pt)===tt},he=function(pt){return ft(pt)===Ee},he=function(pt){return ft(pt)===Ve},he=function(pt){return ft(pt)===ct},he=function(pt){return ft(pt)===we},he=function(pt){return typeof pt=="string"||typeof pt=="function"||pt===lt||pt===Ve||pt===dt||pt===ct||pt===we||pt===at||pt===Qe||typeof pt=="object"&&pt!==null&&(pt.$$typeof===ve||pt.$$typeof===tt||pt.$$typeof===Re||pt.$$typeof===it||pt.$$typeof===ke||pt.$$typeof===$e||pt.$$typeof===kt||pt[0]===bt)},he=ft},72973:function(dn,vn,he){"use strict";dn.exports=he(88359)},32637:function(dn){"use strict";dn.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAtKADAA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fEvYXJt5s4JkvfWuRQepZBJc3f2cS5vMcnu7ryCpE0XeWv42UCicSovLQ3ZOneAalzZOiPNMIyq0uA0i0XEsebjZCNOHlMSk+RkqpLtzoafGowsYQhFMNZSivcHSdXyZPFVSpX7zNwxo0nhQHOkTO0JTO0xSax4VeS0mne2rqya0nHGEieT9DFkWbnmLk7ONoi6E9uWbqT+PmOZSaO/lsyWA/CWXKYyg8dolgUU38+P91HDI7wk5OjKMpBU61yyThtCUedwcGy/IVjozd2peQrmCrkroJyu1Ne/xSQxbOJo+CklKHMbFJcQZzRgaYxLAmnlXwokwSKYWG5ciZtZA8VmMmCGKaktjEQOyzZpKguYmtHVtI8OBuvK8u/eurJkeMd8gy0WCRXJwXGMIOuukmrNHAy9uEqnM3vKRVUKSiVPr4oSDw1oiHagPu/A2kmih6OXasidlejC7CBZfyVhB0nEpKwABDSlNcZAMtzuWaaJLtLdSTdlgWRnkZ0ZcrXrMYa3z+8Lkoox+jiXAEVNEwmGaX9VwRwSFzOlg/QgTCodJDnGZQfJXtS0/1XF/UCy/pRFMknLv4B0mO7tAcV+E4LavnLlX3lTS/GLYAyLAAAAAElFTkSuQmCC"},71979:function(dn){"use strict";dn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAqCAYAAABfjB7GAAAAAXNSR0IArs4c6QAAEy5JREFUeF7tW2l0VFW2/m4FkhBmQ5iEJEwBMcgoElwMMoOg0q20ywkJQj/1MXTjoxVlkjm0QNs2AgIapNW2gRYRbGRMCDJGmWcIUxISyASBhITUfevsM9xzb91UgM567w8lrqq6de+puvs7397fHmJcPxJvGoYBGAYMw8Of2X/sGNhb+Rm9Ecedz/w8E4BpGPDQlYDpEWuYdCl9VtbD42WriOvZivwfYJrqmR0xTfo2fpxe8uvYcfpfXsuOm16Yppc+97JndqrXBPvFpleuJc6R14tntq5BX8Ov4+uz1/J7vfy+tfP572Hr8d8oP2N3T8e03yruzro/IN0D73bDCBjfYMDUy0be4S8IIA6ExwJE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YKFhNLOcFasSkQHlSneyVFXAVk7wgOXFKJowGSAH7OgFm7hSoQrGZMUkUWN1TquIY77Eqjlk5W/5VVxIUSK6YpBSe2RsSS9sI9ka1gUo2HlAdIBRIXgFijHMZosE7c+cF6WbmGwIHHtGmoM09ziVVmxYTNwmSMV3knZXj2OcadKQOb3B15y0BWdmb5+ValhWvDM6zWEwcZz5O+ikNSjAmqclULdu9DT89GBl4CIWvy0xUSlFGGGMwMhCT9P2peMS0vUEUNJjETXFS+oa7c5gkV7wuchoGl0C62g6GBA/MJHMMWVWunf6PqlZIUPOsnC3zPrV59NeR2WoA3qkocJmh1miWmxmq0h0ihx7lsHwgkHTrXAAlCGlMq3qnWlUcM2KS192p3IqhFa5AJ7dBoXKBJIN7QJCcEWPvpJDAyIhV1N81GOOIAZNJDkhmYZTdrTFUAhtrrOzUt1ujxj4C2E201JZgcZ/VNWkawOh62secBqLWufgcqCvLDs0z3+CAZIwYe9xdLVepXJScFOKWhWQOd1rVoqqDTMGnV2U85AEN2cQw5h245yd7OLo8oxt4wVyYGyQnkXUadIa6K4xARA9+HALJ8vvfsW0kKnen3JQDkptFyiUKAIUrctSaSGh56uZGIGn3ZTLJ+99dlOpz/lcFOSQxrizjSBCQboZJdYMkWxgekNxFTckgs9cTNM7IZpxqypkTriKZzoPt3xpREzYp6t7x2f8ARtZc8eay0EoAAAAASUVORK5CYII="},39057:function(dn){"use strict";dn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7svWuXJMdxJWgRmVmP7gYIgEOOtLMjUY/R7v//OfthZ85KsyNRIgg0+lFVmRkx59o1czf38HhkVjXQAFE8TVRlRvjD3Nzsur28k19/fqXArxT4lQK/UuBXCvxKgV8p8EIU6F6onV+b+ZUCv1LgVwr8SoFfKfArBX6lgHT//O15/DHpUCOZH7Xz2Ylei68w+va7+LScG/9qv+FtxDc6GcdRm++ks7bGutH1pbt2amst21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9DSz8OLd6gs4W+b8HWKzcQJ3Qmx5RMB4/4kTnueUhsGhU8ni6d8TEGURGRbere4Ij9K42m3d0kEdCeeVUX/bYIBpqqaGYO8QBJ1/fODX+U8Bi9SQqU8++LS5fgldPr8m9LHTGntaz3obr9HT79TTHVjrdanhYdiI+XDOuKjsmzyk7s4gR3Cck1k3g01eiWO4KCDjzqTBnTPO3OO4PnuDo4/O2PBjNdqrjkMJeXRCmRFLMcQEVOwgJONs7WMoRk/uRNH8p72je4x+xBEn2CjyIg2UsoN2kZ8yJsK6lIEYNv61Ol0AY0s40gKDRJ6PWhVbAfnokh/+f17oKelHNP2kwROsZoa+DDnL4JaDI+U/UejzbXSaxR/K5ygXVan6UasJJiI6AV8jKgQWdQh+P8NewCBXTkFh5dNNOoB4NwLLtSc05opxCA5sQ2qkzqjlkPGndvq4I2alefyPfrwQWLWvK26J+U4VPtymGNvr6jJCkpX+Gv4bASrciDcnqMQ62IDT82UnbIvbP3v2aDjMISHRqDvhU/jScZAIuZpF7urMIRHhxMtxaDVxkP5s6/PTemjld9JmqnoUAXdp76ZqangOGXnmbuSSwINlw66vnonq757l0gHwoTNt7cz8nd3Yz4f/0XK6vduVqt42shwKRVC5U58oEJnXL9FPjpcPhFGHaBhdxW4sOsYHZjZGul8dDeXg4eBKtw86VGhGVwicBOpT6OxwMMV/3EQg6AWKIUvH5RNolA29CDT3wmNspggFJXkNUkl1IuQKnQixEgIwkJ5MjBYF/fTCG7E6XWDeW06oJpdinfW8BEx7JYaHE0aM0JdIN1IOF8WgwFO5YnABqrkUiiFDCsnyPqU9PKWXmCwc5De9OC0XNdja1QysjHUcte17BFMJCEZ5K6RCDwN/tGnKlws/cKIg8Kj4vMASYVKjdqXExZzAh8op+/5zRwrdHv1HgGwW+UeAbBb5R4BsFvlGgpcA3YPFtR3yjwDcKfKPANwp8o8A3ClyMAv8DD8nJIGmcntAAAAAASUVORK5CYII="},96908:function(dn){"use strict";dn.exports="data:image/png;base64,iVBORw0KGgoAAA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f/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},79633:function(dn){"use strict";dn.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/U6Lj8J75ZGRYaZzxNe1a+gUdbulsARulI/i8GrQFj7N1oQGKsWCZMlgL1Rr6xH1+V11xu4PhUV7g9BBaroC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SgQvU8otu9YEsL1zYFWOjW0SUjFiISapNUjDDKIWTY38AXuCALtYt/52lHR8VOC9WDnZ/XB6vTiA7UEB8QlNpHG30Ew3PIM8viGVa28CiSM16WskpraQnHMzInbKZmpmdlLr05dKxRw9sF71WH1Kx+UJRo6ofnxBe6O1tEjexMCk61P5me3GcFVsIa2cs1yar5EGzvG3FRopivTKxnuWGKOyDIdNe/+YbOM8CCLYRHqqpDMyd0p8Is4oC0STt4cZs628wWBbYnBECByU2ty32e5U9kTU7JoOMIGzAVIDuVTbZOOyETtJIz2r35ytseAijkAqz3KQnAQAvf0Kb2Rm1r4Miz470qd10IuBCQ8WrjeCpvH5AZs2GqjHnj5iOmDaiABrs28DSJNizJpTcp3VYd/cKAhVIZWBTjTqR9M2fIQGDFIbLznvV9tHncq8n3XY4cs9c+P0O6vTFw+4dYHW+ONu9veFb4GIm+J/LaXmBtdsEFdgFAA8Up9wTiocZaDRgbuB3DNjNmjQGvQ74fwJl5+NYwSun8H2aBo8h54oZTxALkTR9Zd/uT1Gsoi0bHIRf3l902VNxoWm3ctqzAaaBjmYGLDsTw9gg6XeY7graRINU7FDwtiyyExzvWOA+AneF5t9UF43Rvya0MzrR74jwhAqtE1YdjrUyTrQ5JypT/LI+izkPjTQJ67DEWrh1j/oWACsm/+FryLzaOpzYAg2TFI8kFGoP8Cq+8yTvVE1Chl4PeF1gIizRKgb+rPC5FLHYM72PZRw48cuCRA48ceOTAIwceOTDB2o8MeuTAIwceOfDIgUcOPHLgkQOX4cD/Dy5hqdeaBa56AAAAAElFTkSuQmCC"},84279:function(dn,vn,he){"use strict";var te=Object.defineProperty,Ee=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,it=(a,y,b)=>y in a?te(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,ke=(a,y)=>{for(var b in y||(y={}))Ve.call(y,b)&&it(a,b,y[b]);if(ct)for(var b of ct(y))Re.call(y,b)&&it(a,b,y[b]);return a},we=(a,y)=>Ee(a,lt(y)),at=a=>typeof a=="symbol"?a:a+"",tt=(a,y)=>{var b={};for(var E in a)Ve.call(a,E)&&y.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&ct)for(var E of ct(a))y.indexOf(E)<0&&Re.call(a,E)&&(b[E]=a[E]);return b};function ve(a){return Array.isArray(a)}var kt={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 bt(){return"window"in globalThis&&"document"in globalThis}function $e(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function dt(){return typeof navigator.vibrate=="function"}function Qe(){var a,y;if(!bt())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 et(){if(!bt())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 ft(){return HTMLElement.prototype.hasOwnProperty("popover")}var Je={strings:kt,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return Je._locale||(Je._locale=bt()?navigator.language.slice(0,5):"en-US"),Je._locale},set locale(a){Je._locale=a,Je._numberFormatter=void 0,Je.dirty=!0},get numberFormatter(){return Je._numberFormatter||(Je._numberFormatter=new Intl.NumberFormat(Je.locale)),Je._numberFormatter},merge(a,y){if(typeof a=="string"&&y)Je.strings[a]=ke(ke({},Je.strings[a]),y),Je.dirty=!0;else for(const b of Object.keys(a))Je.merge(b,a[b])},get dirty(){return Je._dirty},set dirty(a){Je._dirty||Je._dirty===a||(Je._dirty=!0,setTimeout(()=>{Je._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return Je._subscribers.push(a),Je._subscribers.length-1},unsubscribe(a){a<0||a>=Je._subscribers.length||(Je._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=ot(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=ot(E);ee&&b.setAttribute("aria-label",ee)}}}};function ot(a,...y){if(a===void 0)return;let b="";const E=Je.locale;Je.strings[E]&&(b=Je.strings[E][a]);const ee=E.slice(0,2);if(!b&&Je.strings[ee]&&(b=Je.strings[ee][a]),b||(b=Je.strings.en[a]),!b)return;const ie=/(%@|%([0-9]+)\$@)/g;let se=ie.exec(b),me=0;for(;se;){if(y[me++]){const Se=se[2]?parseInt(se[2],10)-1:me-1;let Le=y[Se];typeof Le=="number"&&(Le=Je.numberFormatter.format(Le)),b=b.replace(se[1],Le)}se=ie.exec(b)}return b=b.replace(/%%/g,"%"),b}var ht={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},yt={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},zt={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"},Xt={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"},Qt={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"},Ht={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 wt(a){var y,b,E,ee,ie,se;const me=a.split("!");let ye,Se,Le,Ze=255,mt=255,It=255,Wt=-1;const On=me.length>0&&me[0].startsWith("-");On&&(me[0]=me[0].slice(1));for(let Vr=0;Vr<me.length;Vr++){ye=Ze,Se=mt,Le=It;const Pn=(y=me[Vr].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],fr=Pn==null?void 0:Pn.toLowerCase(),Jr=Pn&&(se=(ie=(ee=(E=(b=Xt[fr])!=null?b:Xt[Qt[Pn]])!=null?E:yt[Pn])!=null?ee:Ht[Pn])!=null?ie:ht[Pn])!=null?se:me[Vr].trim();let wr=Jr.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(wr!=null&&wr[1]&&wr[2]&&wr[3])Ze=Math.max(0,Math.min(255,Number.parseInt(wr[1],16))),mt=Math.max(0,Math.min(255,Number.parseInt(wr[2],16))),It=Math.max(0,Math.min(255,Number.parseInt(wr[3],16)));else if(wr=Jr.match(/^#([\da-f]{3})$/i),wr!=null&&wr[1]){const Zi=Number.parseInt(wr[1][0],16),ba=Number.parseInt(wr[1][1],16),aa=Number.parseInt(wr[1][2],16);Ze=Math.max(0,Math.min(255,Zi*16+Zi)),mt=Math.max(0,Math.min(255,ba*16+ba)),It=Math.max(0,Math.min(255,aa*16+aa))}else if(wr=Jr.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),wr!=null&&wr[1]&&wr[2]&&wr[3])Ze=Math.max(0,Math.min(255,Number.parseInt(wr[1]))),mt=Math.max(0,Math.min(255,Number.parseInt(wr[2]))),It=Math.max(0,Math.min(255,Number.parseInt(wr[3])));else return;Wt>=0&&(Ze=(1-Wt)*Ze+Wt*ye,mt=(1-Wt)*mt+Wt*Se,It=(1-Wt)*It+Wt*Le,Wt=-1),Vr+1<me.length&&(Wt=Math.max(0,Math.min(100,Number.parseInt(me[++Vr])))/100)}return Wt>=0&&(Ze=Wt*Ze+(1-Wt)*ye,mt=Wt*mt+(1-Wt)*Se,It=Wt*It+(1-Wt)*Le),On&&(Ze=255-Ze,mt=255-mt,It=255-It),"#"+("00"+Math.round(Ze).toString(16)).slice(-2)+("00"+Math.round(mt).toString(16)).slice(-2)+("00"+Math.round(It).toString(16)).slice(-2)}function Ye(a){var y,b;return a=a.trim(),(b=(y=zt[a.toLowerCase()])!=null?y:zt[Qt[a]])!=null?b:wt(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 qe(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 ut(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*qe(ie,ee,y+2)),g:Math.round(255*qe(ie,ee,y)),b:Math.round(255*qe(ie,ee,y-2))}}function Oe(a){return a<0?0:a>255?255:Math.round(a)}function Ot(a){const{r:y,g:b,b:E}=a;let ee=((1<<24)+(Oe(y)<<16)+(Oe(b)<<8)+Oe(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 Gt(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),se=ie-ee;let me,ye;ie===ee?me=0:y===ie?me=(b-E)/se:b===ie?me=2+(E-y)/se:E===ie&&(me=4+(y-b)/se),me=Math.min(me*60,360),me<0&&(me+=360);const Se=(ee+ie)/2;return ie===ee?ye=0:Se<=.5?ye=se/(ie+ee):ye=se/(2-ie-ee),{h:me,s:ye,l:Se}}function un(a){let y=pt(a);if(!y)return a;let{h:b,s:E,l:ee}=Gt(y);return E+=.1,ee-=.1,Ot(ut({h:b,s:E,l:ee}))}var Ge={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"},Ke={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},Yt=[{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 Jt(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 Yt)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(Ke[ie]||ie)}return a}function cn(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in Ke)if(Ke[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of Yt)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 Lt(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=Ge[ee];if(ie)ie.startsWith("\\")?b+=ie+" ":b+=ie;else{const{char:se,variant:me,style:ye}=cn(ee);switch(ie=se,me){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(ye){case"bold":ie=`\\mathbf{${ie}}`;break;case"italic":ie=`\\mathit{${ie}}`;break;case"bolditalic":ie=`\\mathbfit{${ie}}`;break}b+=ie}}return b}function Dt(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var wn={},_n=ke({},Ge),on={},kn={},xn={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}"},Vn={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}},er={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}},Me={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:er},"amsmath.sty":{package:Vn,primitive:!0},"texvc.sty":{package:xn,primitive:!1}},ce={" ":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},fe=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,be,ge;et()?(be=new RegExp("\\p{Letter}","u"),ge=new RegExp("[0-9\\p{Letter}]","u")):(be=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,ge=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function ue(a,y,b="mord",E){y!==void 0&&(wn[a]={definitionType:"symbol",type:b,variant:E,codepoint:y},_n[y]||(_n[y]=a))}function Xe(a,y,b){if(typeof a=="string"){for(let E=0;E<a.length;E++){const ee=a.charAt(E);ue(ee,ee.codePointAt(0))}return}for(const[E,ee,ie,se]of a)ue(E,ee,ie!=null?ie:y,se!=null?se:b)}function _t(a,y){for(let b=a;b<=y;b++)ue(String.fromCodePoint(b),b)}function Zt(a){var y;return(y=kn[a])!=null?y:null}function Dn(a,y){var b,E;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ee=[];for(const se in on)se.startsWith(y)&&!on[se].infix&&ee.push({match:se,frequency:(b=on[se].frequency)!=null?b:0});for(const se in wn)se.startsWith(y)&&ee.push({match:se,frequency:(E=wn[se].frequency)!=null?E:0});const ie=y.substring(1);for(const se of Object.keys(a.options.macros))se.startsWith(ie)&&ee.push({match:"\\"+se,frequency:0});return ee.sort((se,me)=>{var ye,Se;return se.frequency===me.frequency?se.match.length===me.match.length?se.match<me.match?-1:1:se.match.length-me.match.length:((ye=me.frequency)!=null?ye:0)-((Se=se.frequency)!=null?Se:0)}),ee.map(se=>se.match)}function An(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function yn(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:An(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...yn(b[E]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:An(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...yn(b[E]))}return y}function nn(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 Ar(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const E of a)kn[E]=b}function Dr(a,y,b){typeof a=="string"&&(a=[a]);const ee={tabular:!0,params:yn(y),createAtom:b};for(const ie of a)kn[ie]=ee}function ln(a,y,b){var E,ee;b||(b={});const ie={definitionType:"function",params:yn(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")on["\\"+a]=ie;else for(const se of a)on["\\"+se]=ie}var jn;function wi(a){return jn||(jn=Ir(Me)),a?Ir(ke(ke({},jn),a)):jn}function $r(a,y){var b,E,ee,ie;if(typeof a=="string"){let se=0;const me=a;return/(^|[^\\])#1/.test(me)&&(se=1),/(^|[^\\])#2/.test(me)&&(se=2),/(^|[^\\])#3/.test(me)&&(se=3),/(^|[^\\])#4/.test(me)&&(se=4),/(^|[^\\])#5/.test(me)&&(se=5),/(^|[^\\])#6/.test(me)&&(se=6),/(^|[^\\])#7/.test(me)&&(se=7),/(^|[^\\])#8/.test(me)&&(se=8),/(^|[^\\])#9/.test(me)&&(se=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(E=y==null?void 0:y.captureSelection)!=null?E:!0,args:se,def:me}}return ke({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 Ir(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 Or(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=on[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=wn[a]:ce[a]&&(b={definitionType:"symbol",type:"mord",codepoint:ce[a]})}else if(y==="math"){if(b=wn[a],!b&&a.length===1){const E=ur("math",a.codePointAt(0));return E.startsWith("\\")?we(ke({},Or(E,"math")),{command:E}):null}}else ce[a]?b={definitionType:"symbol",type:"mord",codepoint:ce[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function Ca(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function ur(a,y){if(y===void 0)return"";if(a==="math"&&_n[y])return _n[y];if(a==="text"){const b=Object.keys(ce).find(E=>ce[E]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var Yn=[0,.68889,0,0,.72222],oi=[0,.68889,0,0,.66667],Si=[0,.68889,0,0,.77778],Ti=[0,.68889,0,0,.61111],Ni=[.16667,.68889,0,0,.77778],Fi=[0,.68889,0,0,.55556],Wr=[0,0,0,0,.25],qr=[0,.825,0,0,2.33334],Ta=[0,.9,0,0,2.33334],Da=[0,.68889,0,0,.54028],Tr=[-.03598,.46402,0,0,.5],_i=[-.13313,.36687,0,0,1],jr=[.01354,.52239,0,0,1],di=[.01354,.52239,0,0,1.11111],Lo=[0,.54986,0,0,1],ro=[0,.69224,0,0,.5],Hi=[0,.43056,0,0,1],Ko=[.08198,.58198,0,0,.77778],Zo=[.19444,.69224,0,0,.41667],zi=[.1808,.675,0,0,1],Pr=[.19444,.69224,0,0,.83334],ta=[.13667,.63667,0,0,1],Wa=[-.064,.437,0,0,1.334],yo=[.08167,.58167,0,0,.77778],Eo=[0,.69224,0,0,.72222],bo=[0,.69224,0,0,.66667],rs=[-.13313,.36687,0,0,.77778],fo=[.06062,.54986,0,0,.77778],ka=[0,.69224,0,0,.77778],mi=[.25583,.75583,0,0,.77778],Fo=[.25142,.75726,0,0,.77778],Xo=[.20576,.70576,0,0,.77778],Ja=[.30274,.79383,0,0,.77778],Na=[.22958,.72958,0,0,.77778],Rs=[.1808,.675,0,0,.77778],io=[.13667,.63667,0,0,.77778],lo=[.13597,.63597,0,0,.77778],cr=[.03517,.54986,0,0,.77778],Xi=[0,.675,0,0,.77778],br=[.19444,.69224,0,0,.61111],Cl=[0,.54986,0,0,.76042],fs=[0,.54986,0,0,.66667],ho=[.0391,.5391,0,0,.77778],Ll=[.03517,.54986,0,0,1.33334],Ma=[.38569,.88569,0,0,.77778],El=[.23222,.74111,0,0,.77778],Xn=[.19444,.69224,0,0,.77778],Go=[0,.37788,0,0,.5],hs=[0,.54986,0,0,.72222],Ws=[0,.69224,0,0,.83334],xo=[.11111,.69224,0,0,.66667],co=[.26167,.75726,0,0,.77778],Ho=[.48256,.98256,0,0,.77778],ps=[.28481,.79383,0,0,.77778],Ro=[.08167,.58167,0,0,.22222],qo=[.08167,.58167,0,0,.38889],Va=[0,.43056,.04028,0,.66667],Ms=[.41951,.91951,0,0,.77778],Vl=[.24982,.74947,0,0,.38865],qs=[.08319,.58283,0,0,.75623],il=[0,.10803,0,0,.27764],Ds=[0,.47534,0,0,.50181],So=[.18906,.47534,0,0,.50181],al=[0,.69141,0,0,.50181],Sl=[.24982,.74947,0,0,.27764],Vs=[0,.69141,0,0,.21471],ol=[.25,.75,0,0,.44722],Bs=[0,.64444,0,0,.575],Us=[.08556,.58556,0,0,.89444],js=[0,.69444,0,0,.89444],ml=[0,.68611,0,0,.9],Ua=[0,.68611,0,0,.86944],_s=[.25,.75,0,0,.575],ms=[.25,.75,0,0,.31944],Zs=[0,.69444,0,0,.63889],Ks=[0,.69444,0,0,.31944],sl=[0,.44444,0,0,.63889],vs=[0,.44444,0,0,.51111],gs=[0,.69444,0,0,.575],_e=[.13333,.63333,0,0,.89444],nt=[0,.44444,0,0,.31944],pn=[0,.69444,0,0,.86944],Ae=[0,.68611,0,0,.69166],St=[0,.68611,0,0,.83055],Ft=[0,.68611,0,0,.89444],an=[0,.69444,0,0,.60278],Rt=[.19444,.69444,0,0,.51111],In=[0,.69444,0,0,.83055],zn=[-.10889,.39111,0,0,1.14999],Rn=[.19444,.69444,0,0,.575],Mn=[.19444,.69444,0,0,1.14999],sn=[.19444,.69444,0,0,.70277],Bn=[.05556,.75,0,0,.575],Tn=[0,.68611,0,0,.95833],Kn=[.08556,.58556,0,0,.76666],Zr=[-.02639,.47361,0,0,.575],li=[0,.44444,0,0,.89444],Gi=[0,.55556,0,0,.76666],Oi=[-.10889,.39111,0,0,.89444],fa=[.00222,.50222,0,0,.89444],xa=[.19667,.69667,0,0,.89444],Oa=[.08556,.58556,0,0,1.14999],_a=[0,.69444,0,0,.70277],$a=[-.02778,.47222,0,0,.575],Pa=[.25,.75,0,0,.51111],Za=[-.13889,.36111,0,0,1.14999],Po=[.19444,.69444,0,0,1.02222],tn=[.12963,.69444,0,0,.89444],rn=[.19444,.69444,0,0,.44722],fn=[0,.64444,.13167,0,.59111],Hn=[.19444,.64444,.13167,0,.59111],ei=[0,.68611,.17208,0,.8961],Wi=[.19444,.44444,.105,0,.53222],Zn=[0,.44444,.085,0,.82666],Lr=[0,.69444,.06709,0,.59111],vi=[0,.69444,.12945,0,.35555],qi=[0,.69444,0,0,.94888],Kr=[0,.69444,.11472,0,.59111],dr=[0,.68611,.10778,0,.88555],Vi=[0,.69444,.07939,0,.62055],ha=[0,.69444,.12417,0,.30667],Ea=[0,.64444,.13556,0,.51111],Ci=[.19444,.64444,.13556,0,.51111],fi=[0,.68333,.16389,0,.74333],Ga=[.19444,.43056,.08847,0,.46],Ka=[0,.43056,.07514,0,.71555],Ao=[0,.69444,.06646,0,.51111],Es=[0,.69444,0,0,.83129],bl=[0,.69444,.1225,0,.51111],Io=[0,.68333,.09403,0,.76666],Rl=[0,.68333,.11111,0,.76666],To=[0,.69444,.06961,0,.51444],Ls=[0,.69444,0,0,.27778],Uo=[.25,.75,0,0,.38889],wo=[0,.64444,0,0,.5],ll=[0,.69444,0,0,.77778],ul=[0,.68333,0,0,.75],ia=[0,.68333,0,0,.77778],ys=[0,.68333,0,0,.68056],cl=[0,.68333,0,0,.72222],Gs=[.25,.75,0,0,.5],is=[.25,.75,0,0,.27778],eo=[0,.69444,0,0,.5],Ul=[0,.69444,0,0,.55556],Fs=[0,.43056,0,0,.44445],Fl=[0,.43056,0,0,.5],Hu=[.19444,.43056,0,0,.55556],zu=[0,.43056,0,0,.55556],dl=[.08333,.58333,0,0,.77778],Fu=[0,.43056,0,0,.27778],jl=[0,.66786,0,0,.27778],fu=[0,.69444,0,0,.75],yu=[0,.66786,0,0,.5],hu=[0,.68333,0,0,.625],pu=[.19444,.69444,0,0,.44445],mu=[0,.69444,0,0,.72222],bu=[.19444,.69444,0,0,.5],$s=[.19444,.69444,0,0,1],xu=[.011,.511,0,0,1.126],Zl=[.19444,.69444,0,0,.61111],Al=[.05556,.75,0,0,.5],Pu=[0,.68333,0,0,.83334],wu=[.0391,.5391,0,0,.66667],Iu=[-.05555,.44445,0,0,.5],$u=[0,.43056,0,0,.77778],au=[0,.55556,0,0,.66667],Cu=[-.03625,.46375,0,0,.77778],Pl=[-.01688,.48312,0,0,.77778],_l=[.0391,.5391,0,0,1],Ys=[0,.69444,0,0,.61111],Gl=[-.03472,.46528,0,0,.5],ou=[.25,.75,0,0,.44445],Eu=[-.14236,.35764,0,0,1],su=[.244,.744,0,0,.412],Kl=[.19444,.69444,0,0,.88889],ko=[.12963,.69444,0,0,.77778],Ba=[.19444,.69444,0,0,.38889],Yo=[.011,.511,0,0,1.638],ls=[.19444,.69444,0,0,0],Te=[0,.44444,0,0,.575],He=[.19444,.44444,0,0,.575],Nt=[0,.68611,0,0,.75555],Tt=[0,.69444,0,0,.66759],hn=[0,.68611,0,0,.80555],En=[0,.68611,.08229,0,.98229],Nn=[0,.68611,0,0,.76666],or=[0,.44444,0,0,.58472],lr=[.19444,.44444,0,0,.6118],vr=[.19444,.43056,0,0,.5],si=[0,.68333,.02778,.08334,.76278],Fr=[0,.68333,.08125,.05556,.83125],hi=[0,.43056,0,.05556,.48472],Mr=[.19444,.43056,0,.08334,.51702],ti=[.25,.75,0,0,.42778],Rr=[0,.69444,0,0,.55],pi=[0,.69444,0,0,.73334],ki=[0,.69444,0,0,.79445],Be=[0,.69444,0,0,.51945],We=[0,.69444,0,0,.70278],Ct=[0,.69444,0,0,.76389],De=[.25,.75,0,0,.34306],vt=[0,.69444,0,0,.56111],Mt=[0,.69444,0,0,.25556],Kt=[.19444,.45833,0,0,.56111],rt=[0,.45833,0,0,.56111],gt=[0,.69444,0,0,.30556],xt=[0,.69444,0,0,.58056],jt=[0,.69444,0,0,.67223],$t=[0,.69444,0,0,.85556],mn=[0,.69444,0,0,.55834],qt=[0,.65556,.11156,0,.5],gn=[0,.69444,.08094,0,.70834],Ln=[.17014,0,0,0,.44445],Wn=[0,.69444,.0799,0,.5],Cn=[0,.69444,0,0,.73752],sr=[0,.69444,.09205,0,.5],Un=[0,.69444,.09031,0,.77778],qn=[0,.69444,.07816,0,.27778],mr=[0,.69444,.00316,0,.5],Gn=[.19444,.69444,0,0,.83334],kr=[.05556,.75,0,0,.83334],Er=[0,.75,0,0,.5],hr=[.125,.08333,0,0,.27778],ar=[0,.08333,0,0,.27778],Qn=[0,.65556,0,0,.5],gr=[0,.69444,0,0,.47222],ir=[0,.69444,0,0,.66667],xr=[0,.69444,0,0,.59722],Sr=[0,.69444,0,0,.54167],yr=[0,.69444,0,0,.70834],rr=[.25,.75,0,0,.28889],_r=[0,.69444,0,0,.51667],Qr=[0,.44444,0,0,.44445],ea=[.19444,.44444,0,0,.51667],Ui=[0,.44444,0,0,.38333],ji=[0,.44444,0,0,.51667],pa=[0,.69444,0,0,.83334],Bi=[.35001,.85,0,0,.45834],Ia=[.35001,.85,0,0,.57778],Qa=[.35001,.85,0,0,.41667],ri=[.35001,.85,0,0,.58334],Br=[0,.72222,0,0,.55556],Ei=[1e-5,.6,0,0,.66667],Yi=[1e-5,.6,0,0,.77778],xi=[.25001,.75,0,0,.94445],la=[.306,.805,.19445,0,.47222],Ai=[.30612,.805,.19445,0,.47222],$i=[.25001,.75,0,0,.83334],wa=[.35001,.85,0,0,.47222],za=[.25001,.75,0,0,1.11111],Xa=[.65002,1.15,0,0,.59722],Qi=[.65002,1.15,0,0,.81111],Pi=[.65002,1.15,0,0,.47222],La=[.65002,1.15,0,0,.66667],Sa=[0,.75,0,0,1],ma=[.55001,1.05,0,0,1.27778],ua=[.862,1.36,.44445,0,.55556],ii=[.86225,1.36,.44445,0,.55556],bi=[.55001,1.05,0,0,1.11111],va=[.65002,1.15,0,0,.52778],oa=[.65002,1.15,0,0,.61111],Ra=[.55001,1.05,0,0,1.51112],ui=[.95003,1.45,0,0,.73611],tr=[.95003,1.45,0,0,1.04445],Nr=[.95003,1.45,0,0,.52778],Gr=[.95003,1.45,0,0,.75],pr=[0,.75,0,0,1.44445],Ji=[.95003,1.45,0,0,.58334],Fa=[1.25003,1.75,0,0,.79167],Mo=[1.25003,1.75,0,0,1.27778],ao=[1.25003,1.75,0,0,.58334],Wo=[1.25003,1.75,0,0,.80556],po=[0,.825,0,0,1.8889],Ps=[1.25003,1.75,0,0,.63889],bs=[.64502,1.155,0,0,.875],xs=[1e-5,.6,0,0,.875],Hs=[-99e-5,.601,0,0,.66667],fl=[.64502,1.155,0,0,.66667],el=[1e-5,.9,0,0,.88889],Hl=[.65002,1.15,0,0,.88889],sa=[.90001,0,0,0,.88889],Ur=[-.00499,.605,0,0,1.05556],Ri=[0,.12,0,0,.45],Jn=[0,.61111,0,0,.525],Ki=[.08333,.69444,0,0,.525],Do=[-.08056,.53055,0,0,.525],No=[-.05556,.55556,0,0,.525],$o=[0,.43056,0,0,.525],Oo=[.22222,.43056,0,0,.525],kl=[0,0,0,0,.525],ws={"AMS-Regular":{32:Wr,65:Yn,66:oi,67:Yn,68:Yn,69:oi,70:Ti,71:Si,72:Si,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:Si,76:oi,77:[0,.68889,0,0,.94445],78:Yn,79:Ni,80:Ti,81:Ni,82:Yn,83:Fi,84:oi,85:Yn,86:Yn,87:[0,.68889,0,0,1],88:Yn,89:Yn,90:oi,107:Fi,160:Wr,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:Fi,295:Da,710:qr,732:Ta,770:qr,771:Ta,989:yo,1008:Va,8245:[0,.54986,0,0,.275],8463:Da,8487:Yn,8498:Fi,8502:oi,8503:[0,.68889,0,0,.44445],8504:oi,8513:[0,.68889,0,0,.63889],8592:Tr,8594:Tr,8602:_i,8603:_i,8606:jr,8608:jr,8610:di,8611:di,8619:Lo,8620:Lo,8621:[-.13313,.37788,0,0,1.38889],8622:_i,8624:ro,8625:ro,8630:Hi,8631:Hi,8634:Ko,8635:Ko,8638:Zo,8639:Zo,8642:Zo,8643:Zo,8644:zi,8646:zi,8647:zi,8648:Pr,8649:zi,8650:Pr,8651:jr,8652:jr,8653:_i,8654:_i,8655:_i,8666:ta,8667:ta,8669:[-.13313,.37788,0,0,1],8672:Wa,8674:Wa,8705:[0,.825,0,0,.5],8708:Fi,8709:yo,8717:[0,.43056,0,0,.42917],8722:Tr,8724:[.08198,.69224,0,0,.77778],8726:yo,8733:ka,8736:Eo,8737:Eo,8738:[.03517,.52239,0,0,.72222],8739:Ro,8740:[.25142,.74111,0,0,.27778],8741:qo,8742:[.25142,.74111,0,0,.5],8756:bo,8757:bo,8764:rs,8765:[-.13313,.37788,0,0,.77778],8769:rs,8770:Cu,8774:Ja,8776:Pl,8778:yo,8782:fo,8783:fo,8785:Ko,8786:Ko,8787:Ko,8790:ka,8791:Na,8796:[.08198,.91667,0,0,.77778],8806:mi,8807:mi,8808:Fo,8809:Fo,8812:[.25583,.75583,0,0,.5],8814:Xo,8815:Xo,8816:Ja,8817:Ja,8818:Na,8819:Na,8822:Rs,8823:Rs,8828:io,8829:io,8830:Na,8831:Na,8832:Xo,8833:Xo,8840:Ja,8841:Ja,8842:lo,8843:lo,8847:cr,8848:cr,8858:Ko,8859:Ko,8861:Ko,8862:Xi,8863:Xi,8864:Xi,8865:Xi,8872:[0,.69224,0,0,.61111],8873:Eo,8874:[0,.69224,0,0,.88889],8876:Ti,8877:Ti,8878:Yn,8879:Yn,8882:cr,8883:cr,8884:io,8885:io,8888:[0,.54986,0,0,1.11111],8890:Hu,8891:br,8892:br,8901:[0,.54986,0,0,.27778],8903:yo,8905:yo,8906:yo,8907:ka,8908:ka,8909:[-.03598,.46402,0,0,.77778],8910:Cl,8911:Cl,8912:cr,8913:cr,8914:fs,8915:fs,8916:bo,8918:ho,8919:ho,8920:Ll,8921:Ll,8922:Ma,8923:Ma,8926:io,8927:io,8928:Ja,8929:Ja,8934:El,8935:El,8936:El,8937:El,8938:Xo,8939:Xo,8940:Ja,8941:Ja,8994:Xn,8995:Xn,9416:[.15559,.69224,0,0,.90222],9484:ro,9488:ro,9492:Go,9496:Go,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:Xi,9633:Xi,9650:hs,9651:hs,9654:cr,9660:hs,9661:hs,9664:cr,9674:xo,9733:[.19444,.69224,0,0,.94445],10003:Ws,10016:Ws,10731:xo,10846:[.19444,.75583,0,0,.61111],10877:io,10878:io,10885:mi,10886:mi,10887:lo,10888:lo,10889:co,10890:co,10891:Ho,10892:Ho,10901:io,10902:io,10933:Fo,10934:Fo,10935:co,10936:co,10937:co,10938:co,10949:mi,10950:mi,10955:ps,10956:ps,57350:Ro,57351:qo,57352:yo,57353:Va,57356:Fo,57357:Fo,57358:Ms,57359:Ja,57360:Ja,57361:Ms,57366:Fo,57367:Fo,57368:Fo,57369:Fo,57370:lo,57371:lo},"Caligraphic-Regular":{32:Wr,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:Wr},"Fraktur-Regular":{32:Wr,33:[0,.69141,0,0,.29574],34:Vs,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:Vl,41:Vl,42:[0,.62119,0,0,.27764],43:qs,44:il,45:qs,46:il,47:[.24982,.74947,0,0,.50181],48:Ds,49:Ds,50:Ds,51:So,52:So,53:So,54:al,55:So,56:al,57:So,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:Sl,93:Sl,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:Wr,8216:Vs,8217:Vs,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:Wr,33:[0,.69444,0,0,.35],34:an,35:[.19444,.69444,0,0,.95833],36:Bn,37:[.05556,.75,0,0,.95833],38:js,39:Ks,40:ol,41:ol,42:[0,.75,0,0,.575],43:_e,44:[.19444,.15556,0,0,.31944],45:Ui,46:[0,.15556,0,0,.31944],47:_s,48:Bs,49:Bs,50:Bs,51:Bs,52:Bs,53:Bs,54:Bs,55:Bs,56:Bs,57:Bs,58:nt,59:[.19444,.44444,0,0,.31944],60:Us,61:Oi,62:Us,63:[0,.69444,0,0,.54305],64:js,65:Ua,66:[0,.68611,0,0,.81805],67:St,68:[0,.68611,0,0,.88194],69:Nt,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:ml,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:Ae,77:[0,.68611,0,0,1.09166],78:ml,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:Ua,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:ms,92:_s,93:ms,94:gs,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:Zs,99:vs,100:Zs,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:Zs,105:Ks,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:Ks,109:[0,.44444,0,0,.95833],110:sl,111:Te,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:sl,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:vs,123:_s,124:ms,125:_s,126:[.35,.34444,0,0,.575],160:Wr,163:[0,.69444,0,0,.86853],168:gs,172:[0,.44444,0,0,.76666],176:pn,177:_e,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:_e,216:[.04861,.73472,0,0,.89444],223:xr,230:[0,.44444,0,0,.83055],247:_e,248:[.09722,.54167,0,0,.575],305:nt,338:[0,.68611,0,0,1.16944],339:li,567:[.19444,.44444,0,0,.35139],710:gs,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:gs,715:gs,728:gs,729:Ks,730:pn,732:gs,733:gs,915:Ae,916:Tn,920:Ft,923:hn,926:Nn,928:ml,931:St,933:Ft,934:St,936:Ft,937:St,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:Ks,8217:Ks,8220:an,8221:an,8224:Rt,8225:Rt,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:Tt,8465:In,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:In,8501:_a,8592:zn,8593:Rn,8594:zn,8595:Rn,8596:zn,8597:_s,8598:Mn,8599:Mn,8600:Mn,8601:Mn,8636:zn,8637:zn,8640:zn,8641:zn,8656:zn,8657:sn,8658:zn,8659:sn,8660:zn,8661:[.25,.75,0,0,.70277],8704:Zs,8706:[0,.69444,.06389,0,.62847],8707:Zs,8709:Bn,8711:Tn,8712:Kn,8715:Kn,8722:_e,8723:_e,8725:_s,8726:_s,8727:$a,8728:Zr,8729:Zr,8730:[.18,.82,0,0,.95833],8733:li,8734:[0,.44444,0,0,1.14999],8736:Eo,8739:ms,8741:_s,8743:Gi,8744:Gi,8745:Gi,8746:Gi,8747:[.19444,.69444,.12778,0,.56875],8764:Oi,8768:[.19444,.69444,0,0,.31944],8771:fa,8776:[.02444,.52444,0,0,.89444],8781:fa,8801:fa,8804:xa,8805:xa,8810:Oa,8811:Oa,8826:Us,8827:Us,8834:Us,8835:Us,8838:xa,8839:xa,8846:Gi,8849:xa,8850:xa,8851:Gi,8852:Gi,8853:_e,8854:_e,8855:_e,8856:_e,8857:_e,8866:_a,8867:_a,8868:js,8869:js,8900:Zr,8901:[-.02639,.47361,0,0,.31944],8902:$a,8968:Pa,8969:Pa,8970:Pa,8971:Pa,8994:Za,8995:Za,9651:Po,9657:$a,9661:Po,9667:$a,9711:Mn,9824:tn,9825:tn,9826:tn,9827:tn,9837:[0,.75,0,0,.44722],9838:rn,9839:rn,10216:ol,10217:ol,10815:ml,10927:xa,10928:xa,57376:ls},"Main-BoldItalic":{32:Wr,33:[0,.69444,.11417,0,.38611],34:Vi,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:vi,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:fn,49:fn,50:fn,51:fn,52:Hn,53:fn,54:fn,55:Hn,56:fn,57:fn,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Kr,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:ei,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:ei,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:Lr,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:Wi,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:Wi,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:Wr,168:[0,.69444,.11473,0,.59111],176:qi,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:Zn,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:Zn,567:[.19444,.44444,.04611,0,.385],710:Lr,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:vi,730:qi,732:Kr,733:Kr,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:ei,931:[0,.68611,.11431,0,.82666],933:dr,934:[0,.68611,.05632,0,.82666],936:dr,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:vi,8217:vi,8220:[0,.69444,.16772,0,.62055],8221:Vi},"Main-Italic":{32:Wr,33:ha,34:To,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:ha,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:Ea,49:Ea,50:Ea,51:Ea,52:Ci,53:Ea,54:Ea,55:Ci,56:Ea,57:Ea,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:bl,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:fi,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:fi,79:Io,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:fi,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:Ao,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:Ga,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:Ga,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:Wr,168:[0,.66786,.10474,0,.51111],176:Es,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:Ka,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:Ka,710:Ao,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:Es,732:[0,.66786,.11585,0,.51111],733:bl,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:Io,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:fi,931:[0,.68333,.12028,0,.71555],933:Rl,934:[0,.68333,.05986,0,.71555],936:Rl,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:ha,8217:ha,8220:[0,.69444,.1685,0,.51444],8221:To,8463:Da},"Main-Regular":{32:Wr,33:Ls,34:eo,35:Gn,36:Al,37:kr,38:ll,39:Ls,40:Uo,41:Uo,42:Er,43:dl,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:Gs,48:wo,49:wo,50:wo,51:wo,52:wo,53:wo,54:wo,55:wo,56:wo,57:wo,58:Fu,59:[.19444,.43056,0,0,.27778],60:ho,61:rs,62:ho,63:gr,64:ll,65:ul,66:[0,.68333,0,0,.70834],67:cl,68:[0,.68333,0,0,.76389],69:ys,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:ul,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:ia,76:hu,77:[0,.68333,0,0,.91667],78:ul,79:ia,80:ys,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:cl,85:ul,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:ul,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:is,92:Gs,93:is,94:eo,95:[.31,.12056,.02778,0,.5],97:Fl,98:Ul,99:Fs,100:Ul,101:Fs,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:Ul,105:jl,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:Ls,109:[0,.43056,0,0,.83334],110:zu,111:Fl,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:zu,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:Fs,123:Gs,124:is,125:Gs,126:[.35,.31786,0,0,.5],160:Wr,163:[0,.69444,0,0,.76909],167:pu,168:yu,172:[0,.43056,0,0,.66667],176:fu,177:dl,182:Zl,184:Ln,198:[0,.68333,0,0,.90278],215:dl,216:[.04861,.73194,0,0,.77778],223:eo,230:[0,.43056,0,0,.72222],247:dl,248:[.09722,.52778,0,0,.5],305:Fu,338:[0,.68333,0,0,1.01389],339:$u,567:[.19444,.43056,0,0,.30556],710:eo,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:eo,715:eo,728:eo,729:jl,730:fu,732:yu,733:eo,915:hu,916:Pu,920:ia,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:ul,931:cl,933:ia,934:cl,936:ia,937:cl,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:Ls,8217:Ls,8220:eo,8221:eo,8224:pu,8225:pu,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:Da,8465:mu,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:mu,8501:Ys,8592:_i,8593:bu,8594:_i,8595:bu,8596:_i,8597:Gs,8598:$s,8599:$s,8600:$s,8601:$s,8614:[.011,.511,0,0,1],8617:xu,8618:xu,8636:_i,8637:_i,8640:_i,8641:_i,8652:[.011,.671,0,0,1],8656:_i,8657:Zl,8658:_i,8659:Zl,8660:_i,8661:[.25,.75,0,0,.61111],8704:Ul,8706:[0,.69444,.05556,.08334,.5309],8707:Ul,8709:Al,8711:Pu,8712:wu,8715:wu,8722:dl,8723:dl,8725:Gs,8726:Gs,8727:Gl,8728:Iu,8729:Iu,8730:[.2,.8,0,0,.83334],8733:$u,8734:Hi,8736:Eo,8739:is,8741:Gs,8743:au,8744:au,8745:au,8746:au,8747:[.19444,.69444,.11111,0,.41667],8764:rs,8768:[.19444,.69444,0,0,.27778],8771:Cu,8773:[-.022,.589,0,0,1],8776:Pl,8781:Cu,8784:[-.133,.67,0,0,.778],8801:Cu,8804:lo,8805:lo,8810:_l,8811:_l,8826:ho,8827:ho,8834:ho,8835:ho,8838:lo,8839:lo,8846:au,8849:lo,8850:lo,8851:au,8852:au,8853:dl,8854:dl,8855:dl,8856:dl,8857:dl,8866:Ys,8867:Ys,8868:ll,8869:ll,8872:[.249,.75,0,0,.867],8900:Iu,8901:[-.05555,.44445,0,0,.27778],8902:Gl,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:ou,8969:ou,8970:ou,8971:ou,8994:Eu,8995:Eu,9136:su,9137:su,9651:Kl,9657:Gl,9661:Kl,9667:Gl,9711:$s,9824:ko,9825:ko,9826:ko,9827:ko,9837:[0,.75,0,0,.38889],9838:Ba,9839:Ba,10216:Uo,10217:Uo,10222:su,10223:su,10229:[.011,.511,0,0,1.609],10230:Yo,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:Yo,10815:ul,10927:lo,10928:lo,57376:ls},"Math-BoldItalic":{32:Wr,48:Te,49:Te,50:Te,51:He,52:He,53:He,54:Bs,55:He,56:Bs,57:He,65:Ua,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:En,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Nt,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:Tt,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:or,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:Wr,915:[0,.68611,.15972,0,.65694],916:Tn,920:[0,.68611,.03194,0,.86722],923:hn,926:[0,.68611,.07458,0,.84125],928:En,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:Nn,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:or,960:[0,.44444,.03704,0,.68241],961:lr,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:lr,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:Wr,48:Fl,49:Fl,50:Fl,51:vr,52:vr,53:vr,54:wo,55:vr,56:wo,57:vr,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:Fr,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:si,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:hi,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:Wr,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:si,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Fr,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:hi,960:[0,.43056,.03588,0,.57003],961:Mr,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:Mr,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:Wr,33:[0,.69444,0,0,.36667],34:mn,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:gt,40:ti,41:ti,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:Rr,49:Rr,50:Rr,51:Rr,52:Rr,53:Rr,54:Rr,55:Rr,56:Rr,57:Rr,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:Be,64:pi,65:pi,66:pi,67:We,68:ki,69:[0,.69444,0,0,.64167],70:Ys,71:pi,72:ki,73:[0,.69444,0,0,.33056],74:Be,75:Ct,76:xt,77:[0,.69444,0,0,.97778],78:ki,79:ki,80:We,81:[.10556,.69444,0,0,.79445],82:We,83:Ys,84:pi,85:Ct,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:pi,89:[0,.69444,.0275,0,.73334],90:jt,91:De,93:De,94:Rr,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:vt,99:[0,.45833,0,0,.48889],100:vt,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:vt,105:Mt,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Mt,109:[0,.45833,0,0,.86667],110:rt,111:[0,.45833,0,0,.55],112:Kt,113:Kt,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:rt,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:Wr,168:Rr,176:pi,180:Rr,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:Rr,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:Rr,729:gt,730:pi,732:Rr,733:Rr,915:xt,916:[0,.69444,0,0,.91667],920:$t,923:jt,926:pi,928:ki,931:ki,933:$t,934:ki,936:$t,937:ki,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:gt,8217:gt,8220:mn,8221:mn},"SansSerif-Italic":{32:Wr,33:[0,.69444,.05733,0,.31945],34:mr,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:qn,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:hr,45:[0,.44444,.01946,0,.33333],46:ar,47:[.25,.75,.13164,0,.5],48:qt,49:qt,50:qt,51:qt,52:qt,53:qt,54:qt,55:qt,56:qt,57:qt,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:ir,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:gn,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:Sr,77:[0,.69444,.08094,0,.875],78:gn,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:Wn,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:Wr,168:[0,.67937,.06385,0,.5],176:Cn,184:Ln,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Wn,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:sr,715:eo,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:Cn,732:[0,.67659,.08826,0,.5],733:sr,915:[0,.69444,.13372,0,.54167],916:pa,920:[0,.69444,.07555,0,.77778],923:Ys,926:[0,.69444,.12816,0,.66667],928:gn,931:[0,.69444,.11983,0,.72222],933:Un,934:[0,.69444,.04603,0,.72222],936:Un,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:qn,8217:qn,8220:[0,.69444,.14205,0,.5],8221:mr},"SansSerif-Regular":{32:Wr,33:[0,.69444,0,0,.31945],34:eo,35:Gn,36:Al,37:kr,38:[0,.69444,0,0,.75834],39:Ls,40:Uo,41:Uo,42:Er,43:dl,44:hr,45:[0,.44444,0,0,.33333],46:ar,47:Gs,48:Qn,49:Qn,50:Qn,51:Qn,52:Qn,53:Qn,54:Qn,55:Qn,56:Qn,57:Qn,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:gr,64:ir,65:ir,66:ir,67:Zs,68:[0,.69444,0,0,.72223],69:xr,70:[0,.69444,0,0,.56945],71:ir,72:yr,73:Ls,74:gr,75:[0,.69444,0,0,.69445],76:Sr,77:[0,.69444,0,0,.875],78:yr,79:[0,.69444,0,0,.73611],80:Zs,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:Ul,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:ir,89:[0,.69444,.025,0,.66667],90:Ys,91:rr,93:rr,94:eo,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:_r,99:Qr,100:_r,101:Qr,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:_r,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:ji,111:[0,.44444,0,0,.5],112:ea,113:ea,114:[0,.44444,.01389,0,.34167],115:Ui,116:[0,.57143,0,0,.36111],117:ji,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:Wr,168:[0,.67937,0,0,.5],176:ir,184:Ln,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:eo,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:eo,715:eo,728:eo,729:[0,.67937,0,0,.27778],730:ir,732:[0,.67659,0,0,.5],733:eo,915:Sr,916:pa,920:ll,923:Ys,926:ir,928:yr,931:mu,933:ll,934:mu,936:ll,937:mu,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:Ls,8217:Ls,8220:eo,8221:eo},"Script-Regular":{32:Wr,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:Wr},"Size1-Regular":{32:Wr,40:Bi,41:Bi,47:Ia,91:Qa,92:Ia,93:Qa,123:ri,125:ri,160:Wr,710:Br,732:Br,770:Br,771:Br,8214:[-99e-5,.601,0,0,.77778],8593:Ei,8595:Ei,8657:Yi,8659:Yi,8719:xi,8720:xi,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:Ai,8748:la,8749:la,8750:Ai,8896:$i,8897:$i,8898:$i,8899:$i,8968:wa,8969:wa,8970:wa,8971:wa,9168:Hs,10216:wa,10217:wa,10752:za,10753:za,10754:za,10756:$i,10758:$i},"Size2-Regular":{32:Wr,40:Xa,41:Xa,47:Qi,91:Pi,92:Qi,93:Pi,123:La,125:La,160:Wr,710:Sa,732:Sa,770:Sa,771:Sa,8719:ma,8720:ma,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:ii,8748:ua,8749:ua,8750:ii,8896:bi,8897:bi,8898:bi,8899:bi,8968:va,8969:va,8970:va,8971:va,10216:oa,10217:oa,10752:Ra,10753:Ra,10754:Ra,10756:bi,10758:bi},"Size3-Regular":{32:Wr,40:ui,41:ui,47:tr,91:Nr,92:tr,93:Nr,123:Gr,125:Gr,160:Wr,710:pr,732:pr,770:pr,771:pr,8730:[.95003,1.45,0,0,1],8968:Ji,8969:Ji,8970:Ji,8971:Ji,10216:Gr,10217:Gr},"Size4-Regular":{32:Wr,40:Fa,41:Fa,47:Mo,91:ao,92:Mo,93:ao,123:Wo,125:Wo,160:Wr,710:po,732:po,770:po,771:po,8730:[1.25003,1.75,0,0,1],8968:Ps,8969:Ps,8970:Ps,8971:Ps,9115:bs,9116:xs,9117:bs,9118:bs,9119:xs,9120:bs,9121:fl,9122:Hs,9123:fl,9124:fl,9125:Hs,9126:fl,9127:el,9128:Hl,9129:sa,9130:[0,.3,0,0,.88889],9131:el,9132:Hl,9133:sa,9143:[.88502,.915,0,0,1.05556],10216:Wo,10217:Wo,57344:Ur,57345:Ur,57680:Ri,57681:Ri,57682:Ri,57683:Ri},"Typewriter-Regular":{32:kl,33:Jn,34:Jn,35:Jn,36:Ki,37:Ki,38:Jn,39:Jn,40:Ki,41:Ki,42:[0,.52083,0,0,.525],43:Do,44:[.13889,.125,0,0,.525],45:Do,46:[0,.125,0,0,.525],47:Ki,48:Jn,49:Jn,50:Jn,51:Jn,52:Jn,53:Jn,54:Jn,55:Jn,56:Jn,57:Jn,58:$o,59:[.13889,.43056,0,0,.525],60:No,61:[-.19549,.41562,0,0,.525],62:No,63:Jn,64:Jn,65:Jn,66:Jn,67:Jn,68:Jn,69:Jn,70:Jn,71:Jn,72:Jn,73:Jn,74:Jn,75:Jn,76:Jn,77:Jn,78:Jn,79:Jn,80:Jn,81:[.13889,.61111,0,0,.525],82:Jn,83:Jn,84:Jn,85:Jn,86:Jn,87:Jn,88:Jn,89:Jn,90:Jn,91:Ki,92:Ki,93:Ki,94:Jn,95:[.09514,0,0,0,.525],96:Jn,97:$o,98:Jn,99:$o,100:Jn,101:$o,102:Jn,103:Oo,104:Jn,105:Jn,106:[.22222,.61111,0,0,.525],107:Jn,108:Jn,109:$o,110:$o,111:$o,112:Oo,113:Oo,114:$o,115:$o,116:[0,.55358,0,0,.525],117:$o,118:$o,119:$o,120:$o,121:Oo,122:$o,123:Ki,124:Ki,125:Ki,126:Jn,127:Jn,160:kl,176:Jn,184:[.19445,0,0,0,.525],305:$o,567:Oo,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:Jn,715:Jn,728:Jn,730:Jn,770:Jn,771:Jn,776:Jn,915:Jn,916:Jn,920:Jn,923:Jn,926:Jn,928:Jn,931:Jn,933:Jn,934:Jn,936:Jn,937:Jn,8216:Jn,8217:Jn,8242:Jn,9251:[.11111,.21944,0,0,.525]}},Yl=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,to=10,ca=.25,mo=1.2,no=.431,as={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[no,no,no],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:[ca,ca,ca],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]},us=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Mi=5,na={"\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 oo(a,y){a===void 0&&(a=77);const b=ws[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 na)a=na[E].codePointAt(0);else if(Yl.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 os={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]},zo={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]},Is={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 Qo(a){if(zo[a]){const[Se,Le,Ze]=zo[a],mt=`<span class="stretchy" style="height:${Ze}em"><svg width="100%" height="${Ze}em" viewBox="0 0 ${Se} ${Le}" preserveAspectRatio="none" ><path fill="currentcolor" d="${Is[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Ze/2)/100}em;min-width:0">${mt}</span>`}const[y,b,E,ee]=os[a];let ie,se;const me=E/1e3;y.length===3?(ie=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],se=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(ie=["slice-1-of-2","slice-2-of-2"],se=["xMinYMin","xMaxYMin"]):(ie=["slice-1-of-1"],se=[ee]);const ye=y.map((Se,Le)=>`<span class="${ie[Le]}" style=height:${me}em><svg width=400em height=${me}em viewBox="0 0 400000 ${E}" preserveAspectRatio="${se[Le]} slice"><path fill="currentcolor" d="${Is[Se]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${me}em;min-width:${b}em;">${ye}</span>`}function zl(a){return os[a]?os[a][2]/1e3:zo[a][2]}function Ml(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,se=ee-56320;E=Jc(2,16)+ie*Jc(2,10)+se,b++}}y.push(E)}return y}var Ts=8205,Ns=[[Ts,1],[65038,2],[127995,5],[129456,4],[917536,96]],lu,cc=[127462,127487];function Wu(a){var y;if(lu===void 0){lu={};for(const b of Ns)for(let E=b[0];E<=b[0]+b[1]-1;E++)lu[E]=!0}return(y=lu[a])!=null?y:!1}function ud(a){return a>=cc[0]&&a<=cc[1]}function cd(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=Ml(a);let E=0;for(;E<b.length;){const ee=b[E++],ie=b[E];if(ie===Ts){const se=E-1;for(E+=2;b[E]===Ts;)E+=2;y.push(String.fromCodePoint(...b.slice(se,E-se+1)))}else if(Wu(ie)){const se=E-1;for(;Wu(b[E]);)E+=b[E]===Ts?2:1;y.push(String.fromCodePoint(...b.slice(se,2*E-se-1)))}else ud(ee)?(E+=1,y.push(String.fromCodePoint(...b.slice(E-2,2)))):y.push(String.fromCodePoint(ee))}return y}var dc=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=cd(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 Su(a,y){var b,E,ee,ie;const se=[];let me=a.next();if(me&&me!=="\\relax"){if(me==="\\noexpand")me=a.next(),me&&se.push(me);else if(me==="\\obeyspaces")a.obeyspaces=!0;else if(me==="\\bgroup")se.push("<{>");else if(me==="\\egroup")se.push("<}>");else if(me==="\\string"){if(me=a.next(),me)if(me.startsWith("\\"))for(const ye of me)se.push(ye==="\\"?"\\backslash":ye);else me==="<{>"?se.push("\\{"):me==="<space>"?se.push("~"):me==="<}>"&&se.push("\\}")}else if(me==="\\csname"){for(;a.peek()==="<space>";)a.next();let ye="",Se=!1,Le=[];do{if(Le.length===0)if(/^#[\d?@]$/.test(a.peek())){const Ze=a.get().slice(1);Le=qa((E=(b=y==null?void 0:y(Ze))!=null?b:y==null?void 0:y("?"))!=null?E:"\\placeholder{}",y),me=Le[0]}else me=a.next(),Le=me?[me]:[];Se=Le.length===0,!Se&&me==="\\endcsname"&&(Se=!0,Le.shift()),Se||(Se=me==="<$>"||me==="<$$>"||me==="<{>"||me==="<}>"||typeof me=="string"&&me.length>1&&me.startsWith("\\")),Se||(ye+=Le.shift())}while(!Se);ye&&se.push("\\"+ye),se.push(...Le)}else if(me!=="\\endcsname")if(me.length>1&&me.startsWith("#")){const ye=me.slice(1);se.push(...qa((ie=(ee=y==null?void 0:y(ye))!=null?ee:y==null?void 0:y("?"))!=null?ie:"\\placeholder{}",y))}else se.push(me)}return se}function qa(a,y=null){const b=[];let E="";for(const se of a.toString().split(/\r?\n/)){E&&b.push(E),E=" ";const me=se.match(/((?:\\%)|[^%])*/);me!==null&&b.push(me[0])}const ee=new dc(Lt(b.join(""))),ie=[];do ie.push(...Su(ee,y));while(!ee.end());return ie}function gi(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 so(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:gi([a,...y.map(b=>`{${b}}`)])}function tl(a){return gi(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var hl=class uh{constructor(y){uh._registry[y]=this}static createAtom(y,b,E){return uh._registry[y].createAtom(b,Or(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 vu(y)){const se=uh._registry[ie[0].mode];ee.push(...se.serialize(ie,b))}return gi(ee)}return gi(Uu(y,b))}static getFont(y,b,E){return uh._registry[y].getFont(b,E)}};hl._registry={};var Ss=hl;function vu(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 es(a,y){const b=[];let E=[],ee;for(const ie of a)if(ie.type!=="first"&&ie.style){let se;y==="variant"?(se=ie.style.variant,ie.style.variantStyle&&ie.style.variantStyle!=="up"&&(se+="-"+ie.style.variantStyle)):se=ie.style[y],se===ee?E.push(ie):(E.length>0&&b.push(E),E=[ie],ee=se)}return E.length>0&&b.push(E),b}function Au(a,y){var b;const{parent:E}=a[0],ee=E==null?void 0:E.computedStyle.color,ie=[];for(const se of vu(a)){const me=y.defaultMode;for(const ye of es(se,"color")){const Se=ye[0].computedStyle,Le=Ss._registry[ye[0].mode].serialize(ye,we(ke({},y),{defaultMode:me==="text"?"text":"math"}));!y.skipStyles&&Se.color&&Se.color!=="none"&&(!E||ee!==Se.color)?ie.push(so("\\textcolor",(b=Se.verbatimColor)!=null?b:Se.color,gi(Le))):ie.push(gi(Le))}}return ie}function Vu(a,y){const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.backgroundColor;return es(a,"backgroundColor").map(ee=>{var ie;if(ee.length>0||ee[0].type!=="box"){const se=ee[0].computedStyle;if(se.backgroundColor&&se.backgroundColor!=="none"&&(!b||E!==se.backgroundColor))return so("\\colorbox",(ie=se.verbatimBackgroundColor)!=null?ie:se.backgroundColor,gi(Au(ee,we(ke({},y),{defaultMode:"text"}))))}return gi(Au(ee,y))})}function Uu(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 es(a,"fontSize")){const se=ie[0].computedStyle.fontSize,me=Vu(ie,y);me&&(se&&se!=="auto"&&(!b||E!==se)?ee.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][se],...me):ee.push(...me))}return ee}function Fc(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 Pc(a){if(a.length===0)return"ord";const y=Fc(a[0].type),b=Fc(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 Hr=class G0{constructor(y,b){var E,ee,ie,se,me;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:ve(y)?this.children=y.filter(Se=>Se!==null):y&&y instanceof G0&&(this.children=[y]),this.children)for(const Se of this.children)Se.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 ye=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(ye=(me=Ss.getFont((se=b.mode)!=null?se:"math",this,we(ke({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?me:void 0),ye||(ye="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),Xc(this,ye)}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=un(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 It of this.children)ie+=It.toMarkup();let se="";if(this.svgBody)se=Qo(this.svgBody);else if(this.svgOverlay){se='<span style="',se+="display: inline-block;",se+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,se+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,se+='">',se+=ie,se+="</span>",se+='<svg style="position:absolute;overflow:visible;',se+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const It=(b=this.cssProperties)==null?void 0:b.padding;It?(se+=`top:${It};`,se+=`left:${It};`,se+=`width:calc(100% - 2 * ${It} );`):se+="top:0;left:0;width:100%;",se+="z-index:2;",se+='"',this.svgStyle&&(se+=this.svgStyle),se+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,se+=`>${this.svgOverlay}</svg>`}let me="";const ye=this.classes.split(" ");ye.push((E={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?E:""),this.caret==="latex"&&ye.push("ML__latex-caret"),this.isSelected&&ye.push("ML__selected");const Se=ye.length===1?ye[0]:ye.filter((It,Wt,On)=>It.length>0&&On.indexOf(It)===Wt).join(" ");if(Se.length>0&&(me+=` class="${Se}"`),this.id&&(me+=` data-atom-id=${this.id}`),this.cssId&&(me+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(me+=" "+Object.keys(this.attributes).map(It=>`${It}="${this.attributes[It]}"`).join(" ")),this.htmlData){const It=this.htmlData.split(",");for(const Wt of It){const On=Wt.match(/([^=]+)=(.+$)/);if(On){const Vr=On[1].trim().replace(/ /g,"-");Vr&&(me+=` data-${Vr}="${On[2]}" `)}else{const Vr=Wt.trim().replace(/ /g,"-");Vr&&(me+=` data-${Vr} `)}}}const Le=(ee=this.cssProperties)!=null?ee:{};this.hasExplicitWidth&&Le.width===void 0&&(Le.width=`${Math.ceil(this._width*100)/100}em`);const Ze=Object.keys(Le).map(It=>`${It}:${Le[It]}`);if(this.scale!==void 0&&this.scale!==1&&(ie.length>0||se.length>0)&&Ze.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const It=this.htmlStyle.split(";");let Wt="";for(const On of It){const Vr=On.match(/([^=]+):(.+$)/);if(Vr){const Pn=Vr[1].trim().replace(/ /g,"-");Pn&&(Wt+=`${Pn}:${Vr[2]};`)}}Wt&&(me+=` style="${Wt}"`)}Ze.length>0&&(me+=` style="${Ze.join(";")}"`);let mt="";return me.length>0||se.length>0?mt=`<span${me}>${ie}${se}</span>`:mt=ie,this.caret==="text"?mt+='<span class="ML__text-caret"></span>':this.caret==="math"&&(mt+='<span class="ML__caret"></span>'),mt}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 ye of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&ye in y.cssProperties||this.cssProperties&&ye 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 ye of Object.keys(this.cssProperties))if(this.cssProperties[ye]!==y.cssProperties[ye])return!1}const se=this.classes.trim().replace(/\s+/g," ").split(" "),me=y.classes.trim().replace(/\s+/g," ").split(" ");if(se.length!==me.length)return!1;se.sort(),me.sort();for(const[ye,Se]of se.entries())if(Se==="vertical-separator"||Se!==me[ye])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 Md(a){if(!a||a.length===0)return[];a[0].children=Md(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=Md(a[b].children),y.push(a[b]));return y}function dd(a){return a.children&&(a.children=Md(a.children)),a}function fd(a,y){if(!a)return new Hr(null,y);const b=new Hr(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 Hr(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 Hr(E,we(ke({},y),{type:"lift"}))}function Tu(a){const y=zl(a)/2,b=new Hr(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function Xc(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=oo(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 se of a.children)se.height>E&&(E=se.height),se.depth>ee&&(ee=se.depth),ie=Math.max(ie,(b=se.maxFontSize)!=null?b:0);a.height=E,a.depth=ee,a._width=a.children.reduce((se,me)=>se+me.width,0),a.maxFontSize=ie}}function hd(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 se=1;se<y.length;se++){const me=y[se],ye=-me.shift-ie-me.box.depth,Se=ye-(b.box.height+b.box.depth);ie=ie+ye,E.push(Se),E.push(me),b=me}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 qc(a){var y;const[b,E]=hd(a);if(!b)return[[],0,0];const ee=new Hr(null,{classes:"pstrut"});let ie=0;for(const Wt of b)if(typeof Wt!="number"){const On=Wt.box;ie=Math.max(ie,On.maxFontSize,On.height)}ie+=2,ee.height=ie,ee.setStyle("height",ie,"em");const se=[];let me=E,ye=E,Se=E,Le=0;for(const Wt of b){if(typeof Wt=="number")Se+=Wt;else{const On=Wt.box,Vr=(y=Wt.classes)!=null?y:[],Pn=new Hr([ee,On],{classes:Vr.join(" "),style:Wt.style});On.setStyle("height",On.height+On.depth,"em"),On.setStyle("display","inline-block"),Pn.setStyle("top",-ie-Se-On.depth,"em"),Wt.marginLeft&&Pn.setStyle("margin-left",Wt.marginLeft,"em"),Wt.marginRight&&Pn.setStyle("margin-right",Wt.marginRight,"em"),se.push(Pn),Se+=On.height+On.depth,Le=Math.max(Le,Pn.width)}me=Math.min(me,Se),ye=Math.max(ye,Se)}se.forEach(Wt=>{Wt.softWidth=Le});const Ze=new Hr(se,{classes:"vlist"});if(Ze.softWidth=Le,Ze.height=ye,Ze.setStyle("height",ye,"em"),me>=0)return[[new Hr(Ze,{classes:"vlist-r"})],ye,-me];const mt=new Hr(new Hr(null),{classes:"vlist"});mt.height=-me,mt.setStyle("height",-me,"em");const It=new Hr(8203,{classes:"vlist-s",maxFontSize:0});return It.softWidth=0,It.height=0,It.depth=0,[[new Hr([Ze,It],{classes:"vlist-r"}),new Hr(mt,{classes:"vlist-r"})],ye,-me]}var cs=class extends Hr{constructor(a,y){var b;const[E,ee,ie]=qc(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((se,me)=>Math.max(se,me.width),0)}};function pd(a,y){var b,E,ee,ie,se;const me=a.metrics,ye=new Hr(y.base),Se=(b=y.baseShift)!=null?b:0,Le=(E=y.slant)!=null?E:0;let Ze=0,mt=0;y.above&&(Ze=(ee=y.aboveShift)!=null?ee:Math.max(me.bigOpSpacing1,me.bigOpSpacing3-y.above.depth)),y.below&&(mt=(ie=y.belowShift)!=null?ie:Math.max(me.bigOpSpacing2,me.bigOpSpacing4-y.below.height));let It=null;if(y.below&&y.above){const Wt=me.bigOpSpacing5+y.below.height+y.below.depth+mt+ye.depth+Se;It=new cs({bottom:Wt,children:[me.bigOpSpacing5,{box:y.below,marginLeft:-Le,classes:["ML__center"]},mt,{box:ye,classes:["ML__center"]},Ze,{box:y.above,marginLeft:Le,classes:["ML__center"]},me.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)It=new cs({top:ye.height-Se,children:[me.bigOpSpacing5,{box:y.below,marginLeft:-Le,classes:["ML__center"]},mt,{box:ye,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const Wt=ye.depth+Se;It=new cs({bottom:Wt,children:[{box:ye,classes:["ML__center"]},Ze,{box:y.above,marginLeft:Le,classes:["ML__center"]},me.bigOpSpacing5]}).wrap(a)}else{const Wt=ye.depth+Se;It=new cs({bottom:Wt,children:[{box:ye},me.bigOpSpacing5]}).wrap(a)}return new Hr(It,{type:(se=y.type)!=null?se:"op"})}var Dd=7,ju=6,hc=5,ec=4,pc=3,Ql=2,gu=1,Il=0,Zu=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(as).reduce((ee,ie)=>we(ke({},ee),{[ie]:as[ie][E]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return Gu[[Il,gu,Il,gu,Ql,pc,Ql,pc][this.id]]}get sub(){return Gu[[Il,Il,Il,Il,Ql,Ql,Ql,Ql][this.id]]}get fracNum(){return Gu[[Il,gu,Il,gu,Ql,pc,ec,hc][this.id]]}get fracDen(){return Gu[[Il,Il,Il,Il,Ql,Ql,ec,ec][this.id]]}get cramp(){return Gu[[Il,Il,Ql,Ql,ec,ec,ju,ju][this.id]]}get isTight(){return this.sizeDelta<0}},ku={7:new Zu(Dd,0,!1),6:new Zu(ju,0,!0),5:new Zu(hc,0,!1),4:new Zu(ec,0,!0),3:new Zu(pc,-3,!1),2:new Zu(Ql,-3,!0),1:new Zu(gu,-4,!1),0:new Zu(Il,-4,!0)},Gu=we(ke({},ku),{displaystyle:ku[Dd],textstyle:ku[hc],scriptstyle:ku[pc],scriptscriptstyle:ku[gu]});function Ic(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:to,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=Jc(10,y);return Math.round(a.dimension/to*E*ee)/ee}return a.dimension*E}function Bd(a,y){if(a===null)return 0;const b=Ic(a)/to;if(Number.isFinite(y)){const E=Jc(10,y);return Math.round(b*E)/E}return b}function Ld(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function md(a){let y=Ld(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${Ld(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${Ld(a.shrink)}`),y}function vl(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=md(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 Yu(a,y){return a==null?null:"number"in a?we(ke({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?we(ke({},a),{factor:a.factor*y}):we(ke({},a),{factor:y}):"dimension"in a?we(ke({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:Yu(a.glue,y),shrink:Yu(a.shrink,y),grow:Yu(a.grow,y)}:a.shrink?{glue:Yu(a.glue,y),shrink:Yu(a.shrink,y)}:a.grow?{glue:Yu(a.glue,y),grow:Yu(a.grow,y)}:{glue:Yu(a.glue,y)}:null}var Tf={"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 Tc(){return ke({},Tf)}function vd(){return{registers:Tc(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:Je.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:wt,backgroundColorMap:Ye,getMacro:a=>Ca(a,wi())}}var Co=class Y0{constructor(y,b){var E,ee,ie,se,me,ye,Se,Le,Ze,mt,It,Wt,On,Vr,Pn;let fr;y!=null&&y.parent?(this.parent=y.parent,fr=y.parent,this.registers={}):(fr=ke(ke({},vd()),(E=y==null?void 0:y.from)!=null?E:{}),this.registers=fr.registers),fr.atomIdsSettings&&(this.atomIdsSettings=ke({},fr.atomIdsSettings)),this.renderPlaceholder=fr.renderPlaceholder,this.isPhantom=(se=(ie=y==null?void 0:y.isPhantom)!=null?ie:(ee=this.parent)==null?void 0:ee.isPhantom)!=null?se:!1,this.letterShapeStyle=fr.letterShapeStyle,this.minFontScale=fr.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(ye=(me=this.parent)==null?void 0:me.color)!=null?ye:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(Le=(Se=this.parent)==null?void 0:Se.backgroundColor)!=null?Le:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((Ze=this.parent)==null?void 0:Ze.size)?this.size=b.fontSize:this.size=(It=(mt=this.parent)==null?void 0:mt.size)!=null?It:Mi;let Jr=(On=(Wt=this.parent)==null?void 0:Wt.mathstyle)!=null?On:Gu.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(fr instanceof Y0)switch(y.mathstyle){case"cramp":Jr=Jr.cramp;break;case"superscript":Jr=Jr.sup;break;case"subscript":Jr=Jr.sub;break;case"numerator":Jr=Jr.fracNum;break;case"denominator":Jr=Jr.fracDen;break}switch(y.mathstyle){case"textstyle":Jr=Gu.textstyle;break;case"displaystyle":Jr=Gu.displaystyle;break;case"scriptstyle":Jr=Gu.scriptstyle;break;case"scriptscriptstyle":Jr=Gu.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Jr,this.smartFence=fr.smartFence,this.placeholderSymbol=fr.placeholderSymbol,this.colorMap=(Vr=fr.colorMap)!=null?Vr:wr=>wr,this.backgroundColorMap=(Pn=fr.backgroundColorMap)!=null?Pn:wr=>wr,this.getMacro=fr.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===Dd||this.mathstyle.id===ju}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(us[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 Bd(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?we(ke({},ie),{dimension:E*ie.dimension}):"glue"in ie?we(ke({},ie),{glue:we(ke({},ie.glue),{dimension:E*ie.glue.dimension}),shrink:ie.shrink?we(ke({},ie.shrink),{dimension:E*ie.shrink.dimension}):void 0,grow:ie.grow?we(ke({},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:Ic(E,b)/to}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}},Nc=["body","above","below","superscript","subscript"];function Qu(a){return typeof a=="string"&&Nc.includes(a)}function $c(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var $n=class sd{constructor(y){var b,E,ee,ie,se,me;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=ke({},y.style),this.displayContainsHighlight=(ie=y.displayContainsHighlight)!=null?ie:!1,this.captureSelection=(se=y.captureSelection)!=null?se:!1,this.skipBoundary=(me=y.skipBoundary)!=null?me:!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=tf(b),se=[];for(const ye of ie){const Se=ye[0].style,Le=nf(y,ye,{style:{color:Se.color,backgroundColor:Se.backgroundColor,fontSize:Se.fontSize}});Le&&se.push(Le)}if(se.length===0)return null;const me=((ee=E==null?void 0:E.classes)!=null?ee:"").trim();return se.length===1&&!me&&!(E!=null&&E.type)?se[0].wrap(y):new Hr(se,{classes:me,type:E==null?void 0:E.type}).wrap(y)}static serialize(y,b){return Ss.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 sd({type:"mord",value:y,mode:"math"}):new sd(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=ke({},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=Fd(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=Or(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?gi([so(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?gi([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return Ss.serialize(this.body,we(ke({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return Ss.serialize(this.above,y)}belowToLatex(y){return Ss.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=we(ke({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const E=Ss.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=Ss.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(Qu(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of Nc)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(Qu(y)),Qu(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 $c(this.parentBranch)?this.parentBranch[0]:-1}get col(){return $c(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=ke(ke({},(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=ke(ke({},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(Qu(b)),!Qu(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 sd({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(Qu(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 Nc)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=Or(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const E=new Co({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,se=this.subscript;if(!ie&&!se)return ee;let me=null,ye=null;const Se=(E=b.isCharacterBox)!=null?E:this.isCharacterBox();let Le=0;if(ie){const On=new Co({parent:y,mathstyle:"superscript"});me=sd.createBox(On,ie),Se||(Le=ee.height-y.metrics.supDrop*On.scalingFactor)}let Ze=0;if(se){const On=new Co({parent:y,mathstyle:"subscript"});ye=sd.createBox(On,se),Se||(Ze=ee.depth+y.metrics.subDrop*On.scalingFactor)}let mt;y.isDisplayStyle?mt=y.metrics.sup1:y.isCramped?mt=y.metrics.sup3:mt=y.metrics.sup2;const It=.5/to/y.scalingFactor;let Wt=null;if(ye&&me){Le=Math.max(Le,mt,me.depth+.25*y.metrics.xHeight),Ze=Math.max(Ze,y.metrics.sub2);const On=y.metrics.defaultRuleThickness;if(Le-me.depth-(ye.height-Ze)<4*On){Ze=4*On-(Le-me.depth)+ye.height;const Pn=.8*y.metrics.xHeight-(Le-me.depth);Pn>0&&(Le+=Pn,Ze-=Pn)}const Vr=this.isExtensibleSymbol&&ee.italic?-ee.italic:0;Wt=new cs({individualShift:[{box:ye,shift:Ze,marginLeft:Vr},{box:me,shift:-Le}]}).wrap(y)}else ye&&!me?(Ze=Math.max(Ze,y.metrics.sub1,ye.height-.8*no),Wt=new cs({shift:Ze,children:[{box:ye,marginRight:It,marginLeft:this.isCharacterBox()?-ee.italic:0}]})):!ye&&me&&(Le=Math.max(Le,mt,me.depth+.25*no),Wt=new cs({shift:-Le,children:[{box:me,marginRight:It}]}));return new Hr([ee,new Hr(Wt,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const E=this.superscript?sd.createBox(new Co({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ee=this.subscript?sd.createBox(new Co({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!E&&!ee?b.base.wrap(y):pd(y,we(ke({},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,se;const me=(E=this.value)!=null?E:this.body,ye=(ee=b==null?void 0:b.boxType)!=null?ee:Fc(this.type);let Se=(ie=b==null?void 0:b.classes)!=null?ie:"";this.mode==="text"&&(Se+=" ML__text");const Le=typeof me=="string"||me===void 0?new Hr(me!=null?me:null,{type:ye,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:we(ke({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:Se}):(se=sd.createBox(y,me,{type:ye,classes:Se}))!=null?se:new Hr(null);return y.isTight&&(Le.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(Le.italic=0),Le.right=Le.italic,this.bind(y,Le),this.caret&&!this.superscript&&!this.subscript&&(Le.caret=this.caret),Le}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 tf(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 nf(a,y,b){var E,ee,ie,se,me;if(!y||y.length===0)return null;const ye=new Co({parent:a},b.style),Se=!((E=ye.atomIdsSettings)!=null&&E.groupNumbers);let Le=[];if(y.length===1){const mt=y[0],It=mt.render(ye);It&&(Se&&mt.isSelected&&It.selected(!0),Le=[It])}else{let mt="",It=!0;for(const Wt of y){(ee=ye.atomIdsSettings)!=null&&ee.groupNumbers&&mt&&(It&&Wt.isDigit()||!It&&gd(Wt))&&(ye.atomIdsSettings.overrideID=mt);const On=Wt.render(ye);ye.atomIdsSettings&&(ye.atomIdsSettings.overrideID=void 0),On&&((ie=ye.atomIdsSettings)!=null&&ie.groupNumbers&&((Wt.isDigit()||gd(Wt))&&(!mt||It!==Wt.isDigit())&&(It=Wt.isDigit(),mt=(se=Wt.id)!=null?se:""),mt&&(!(Wt.isDigit()||gd(Wt))||!Wt.hasEmptyBranch("superscript")||!Wt.hasEmptyBranch("subscript"))&&(mt="")),Se&&Wt.isSelected&&On.selected(!0),Le.push(On))}}if(Le.length===0)return null;const Ze=new Hr(Le,we(ke({isTight:ye.isTight},b),{type:(me=b.type)!=null?me:"lift"}));return Ze.isSelected=Le.every(mt=>mt.isSelected),Ze.wrap(ye)}function gd(a){return a.mode==="text"}function Fd(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof $n?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var tc=class Q0 extends $n{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 Q0(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:ur("text",this.value.codePointAt(0))}};function ed(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let E=0;for(;E<b&&Nf(a.ranges[E],y.ranges[E])==="equal";)E++;return E===b?"equal":"different"}}return"different"}function Nf(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function Tl(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 mc(a){return typeof a=="number"&&!Number.isNaN(a)}function Ec(a){return Array.isArray(a)&&a.length===2}function td(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function Of(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 rf(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,se=!1,me=!1,ye=!1,Se=!1,Le=!1,Ze=!1,mt=!1,It=!1,Wt=!1,On=!1,Vr=!1,Pn=a[0],fr=0;for(;Pn!=null&&Pn.type&&/^(subsup|placeholder)$/.test(Pn.type);)fr+=1,Pn=a[fr];return b=!Pn||Pn.type==="first",Pn&&(On=Pn.mode==="text",E=!On&&Pn.type==="mord"&&be.test(Pn.value),ee=!On&&Pn.type==="mord"&&/\d+$/.test(Pn.value),ie=!On&&Pn.isFunction,se=Pn.type==="genfrac",me=Pn.type==="surd",ye=Pn.type==="mbin",Se=Pn.type==="mrel",Le=Pn.type==="mop"||Pn.type==="operator"||Pn.type==="extensible-symbol",Ze=Pn.type==="mpunct"||Pn.type==="minner",mt=Pn.type==="array",It=Pn.type==="mopen",Wt=Pn.type==="mclose"||Pn.type==="leftright",Vr=Pn.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")&&se||y.after.includes("surd")&&me||y.after.includes("binop")&&ye||y.after.includes("relop")&&Se||y.after.includes("operator")&&Le||y.after.includes("punct")&&Ze||y.after.includes("array")&&mt||y.after.includes("openfence")&&It||y.after.includes("closefence")&&Wt||y.after.includes("text")&&On||y.after.includes("space")&&Vr?y.value:""}function Pd(a,y,b){return b?rf(a,b[y]):""}var af={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\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 nc(a,y){var b;let E=(b=y==null?void 0:y.format)!=null?b:"auto";return E==="auto"&&([E,a]=sf(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",Wl(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function Wl(a,y){var b,E,ee;if(!a)return"";let ie=!1,se;const me=(b=y.inlineShortcuts)!=null?b:af;if(!ie&&(a.startsWith("^")||a.startsWith("_"))&&(se=rc(a.slice(1),{inlineShortcuts:me,noWrap:!0}),a=a[0]+"{"+se.match+"}",a+=Wl(se.rest,y),ie=!0),ie||(se=a.match(/^(sqrt|\u221A)(.*)/),se&&(se=rc(se[2],{inlineShortcuts:me,noWrap:!0}),a="\\sqrt{"+((E=se.match)!=null?E:"\\placeholder{}")+"}",a+=Wl(se.rest,y),ie=!0)),ie||(se=a.match(/^(\\cbrt|\u221B)(.*)/),se&&(se=rc(se[2],{inlineShortcuts:me,noWrap:!0}),a="\\sqrt[3]{"+((ee=se.match)!=null?ee:"\\placeholder{}")+"}",a+=Wl(se.rest,y),ie=!0)),ie||(se=a.match(/^abs(.*)/),se&&(se=rc(se[1],{inlineShortcuts:me,noWrap:!0}),a="\\left|"+se.match+"\\right|",a+=Wl(se.rest,y),ie=!0)),ie||(se=a.match(/^["”“](.*?)["”“](.*)/),se&&(a="\\text{"+se[1]+"}",a+=Wl(se[2],y),ie=!0)),ie||(se=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),se&&(a=of(se[1],me),a+=Wl(se[2],y),ie=!0)),!ie&&/^([fgh])[^a-zA-Z]/.test(a)&&(se=rc(a.slice(1),{inlineShortcuts:me,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+se.match+"\\right)":a[0]+se.match,a+=Wl(se.rest,y),ie=!0),ie||(se=a.match(/^([a-zA-Z]+)(.*)/),se&&(a=of(se[1],me),a+=Wl(se[2],y),ie=!0)),!ie)if(se=rc(a,{inlineShortcuts:me,noWrap:!0}),se.match&&se.rest[0]==="/"){const ye=rc(se.rest.slice(1),{inlineShortcuts:me,noWrap:!0});ye.match&&(a="\\frac{"+se.match+"}{"+ye.match+"}"+Wl(ye.rest,y)),ie=!0}else se.match&&(a=a.startsWith("(")?"\\left("+se.match+"\\right)"+Wl(se.rest,y):se.match+Wl(se.rest,y),ie=!0);return ie||(se=a.match(/^(\s+)(.*)$/),se&&(a=" "+Wl(se[2],y),ie=!0)),a}function rc(a,y){let b="";a=a.trim();let E=a,ee=a.charAt(0),ie={"(":")","{":"}","[":"]"}[ee];if(ie){let se=1,me=1;for(;me<a.length&&se>0;)a[me]===ee&&se++,a[me]===ie&&se--,me++;se===0?(y.noWrap&&ee==="("?b=Wl(a.substring(1,me-1),y):(ee==="{"&&ie==="}"&&(ee="\\{",ie="\\}"),b="\\left"+ee+Wl(a.substring(1,me-1),y)+"\\right"+ie),E=a.slice(Math.max(0,me))):(b=a.substring(1,me),E="")}else{let se=a.match(/^([a-zA-Z]+)/);if(se){let me=Pd(null,a,y.inlineShortcuts);if(me)return me=me.replace("_{#?}",""),me=me.replace("^{#?}",""),{match:me,rest:a.slice(me.length)}}if(se=a.match(/^([a-zA-Z])/),se)return{match:se[1],rest:a.slice(1)};if(se=a.match(/^(-)?\d+(\.\d*)?/),se)return{match:se[0],rest:a.slice(se[0].length)};/^\\(left|right)/.test(a)||(se=a.match(/^(\\[a-zA-Z]+)/),se&&(E=a.slice(se[1].length),b=se[1]))}return{match:b,rest:E}}function of(a,y){let b=Pd(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var Id=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function Sc(a){const y=a.trim();for(const b of Id)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 sf(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=Sc(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 Oc="$$",Rf="$$",_f=(a,y,b)=>(Id.some(E=>y.startsWith(E[0])&&y.endsWith(E[1]))||(y=`${Oc} ${y} ${Rf}`),y),lf=class jh{constructor(y){jh._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 se=new DataTransfer;se.setData("text/plain",E),E=se}const ie=new ClipboardEvent("paste",{clipboardData:E,cancelable:!0});return(ee=b.host)!=null&&ee.dispatchEvent(ie)?jh._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]:Tl(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]:Tl(ee.selection);let se=ee.getAtoms(ie);if(se.every(me=>me.mode==="text"||!me.mode))b.clipboardData.setData("text/plain",se.filter(me=>me instanceof tc).map(me=>me.value).join(""));else if(se.every(me=>me.mode==="latex"))b.clipboardData.setData("text/plain",ee.getAtoms(ie,{includeChildren:!0}).map(me=>{var ye;return(ye=me.value)!=null?ye:""}).join(""));else{let me;se.length===1&&se[0].verbatimLatex!==void 0?me=se[0].verbatimLatex:me=ee.getValue(ie,"latex-expanded"),b.clipboardData.setData("application/x-latex",me);try{b.clipboardData.setData("text/plain",y.options.onExport(y,me,ie))}catch(ye){}if(se.length===1){const ye=se[0];(ye.type==="root"||ye.type==="group")&&(se=ye.body.filter(Se=>Se.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(se.map(ye=>ye.toJson())))}catch(ye){}if((E=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&E.ComputeEngine){const ye=window.MathfieldElement.computeEngine;if(ye)try{const Se=ye.jsonSerializationOptions;ye.jsonSerializationOptions={metadata:["latex"]};const Le=ye.parse(ee.getValue(ie,"latex-unstyled"));ye.jsonSerializationOptions=Se;const Ze=JSON.stringify(Le.json);Ze&&b.clipboardData.setData("application/json",Ze)}catch(Se){}}}b.preventDefault()}static insert(y,b,E={}){var ee;const ie=E.mode==="auto"?y.mode:(ee=E.mode)!=null?ee:y.mode;return jh._modes[ie].insert(y,b,E)}onPaste(y,b){return!1}insert(y,b,E){return!1}};lf._modes={};var Ha=lf,Kf=[{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","^"]}],yd={"\\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 Nu(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function Mu(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 Ac(a){const y=Mu(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function nd(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 Td(a,y,b){if(!y)return null;const E=a.field.getBoundingClientRect(),ee=y.right-y.left,ie=y.bottom-y.top,se=Math.ceil(y.left-E.left+a.field.scrollLeft*b),me=Math.ceil(y.top-E.top);return{left:se,right:se+ee,top:me,bottom:me+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 Rc(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 uf(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,se=ie.offsetWidth;let ye=Math.floor(ie.getBoundingClientRect().width)/se;ye=isNaN(ye)?1:ye;const Se=Td(a,Rc(a,ee),ye);if(Se){const Le=nd(ee);if(E.has(Le)){const Ze=E.get(Le);E.set(Le,{left:Math.min(Ze.left,Se.left),right:Math.max(Ze.right,Se.right),top:Math.min(Ze.top,Se.top),bottom:Math.max(Ze.bottom,Se.bottom)})}else E.set(Le,Se)}}return[...E.values()]}function Od(a,y){return a.model.selection.ranges.reduce((b,E)=>b.concat(...uf(a,E,y)),[])}function Rd(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function bd(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 _d=`@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;
|
|
|
}
|
|
|
`,Jo=`.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);
|
|
|
}
|
|
|
`,rd=`#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);
|
|
|
}
|
|
|
`,Hf=`/* 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);*/
|
|
|
}
|
|
|
`,cf=`.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));
|
|
|
}
|
|
|
`,xd=`: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;
|
|
|
}
|
|
|
`,zf=`.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;
|
|
|
}
|
|
|
`,ds;function kc(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=Jo;break;case"mathfield":y=_d;break;case"environment-popover":y=rd;break;case"suggestion-popover":y=Hf;break;case"keystroke-caption":y=vc;break;case"virtual-keyboard":y=cf;break;case"ui":y=xd;break;case"menu":y=zf;break;default:debugger}return y}function gc(a){return ds||(ds={}),ds[a]||(ds[a]=new CSSStyleSheet,ds[a].replaceSync(kc(a))),ds[a]}var Ju;function uu(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(kc(a))),window.document.head.appendChild(b);return}if(Ju||(Ju={}),((y=Ju[a])!=null?y:0)!==0)Ju[a]+=1;else{const b=gc(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],Ju[a]=1}}function x(a){if("adoptedStyleSheets"in document&&Ju!=null&&Ju[a]&&(Ju[a]-=1,Ju[a]<=0)){const y=ds[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var z=class J0 extends $n{constructor(y){var b;super(we(ke({},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 J0(y)}toJson(){return we(ke({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const E=new Co({parent:y,mathstyle:"cramp"},this.style),ee=(b=$n.createBox(E,this.body))!=null?b:new Hr("\u25A2",{style:this.style});let ie=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(ie=ee.skew);let se=Math.min(ee.height,no),me;if(this.svgAccent)me=Tu(this.svgAccent),se=E.metrics.bigOpSpacing1-se;else if(this.accent){const Se=new Hr(this.accent,{fontFamily:"Main-Regular"});Se.italic=0;const Le=this.accent===8407?" ML__accent-vec":"";me=new Hr(new Hr(Se),{classes:"ML__accent-body"+Le})}me=new cs({shift:0,children:[{box:new Hr(ee)},-se,{box:me,marginLeft:ee.left+2*ie,classes:["ML__center"]}]});const ye=new Hr(me,{type:"lift"});return this.caret&&(ye.caret=this.caret),this.bind(E,ye.wrap(E)),this.attachSupsub(E,{base:ye})}},re={"(":")","{":"}","[":"]","|":"|","\\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"},ne=Object.fromEntries(Object.entries(re).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 pe(a,y,b,E){var ee;const se=new Hr(ae(a),{fontFamily:"Main-Regular",isSelected:E.isSelected,classes:"ML__small-delim "+((ee=E.classes)!=null?ee:"")}).wrap(y);return b&&se.setTop((1-y.scalingFactor)*ca),se}function Ce(a,y,b,E,ee){var ie,se;const me=new Co({parent:E,mathstyle:"textstyle"},ee==null?void 0:ee.style),ye=new Hr(ae(a),{fontFamily:`Size${y}-Regular`,isSelected:ee.isSelected,classes:((ie=ee.classes)!=null?ie:"")+` ML__delim-size${y}`,type:(se=ee.type)!=null?se:"ignore"}).wrap(me);return b&&ye.setTop((1-me.scalingFactor)*ca),ye}function Fe(a,y,b,E,ee){var ie;let se,me,ye,Se;se=ye=Se=ae(a),me=null;let Le="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?ye=se=Se=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?ye=se=Se=8741:a==="\\uparrow"?ye=Se=9168:a==="\\Uparrow"?ye=Se=8214:a==="\\downarrow"?se=ye=9168:a==="\\Downarrow"?se=ye=8214:a==="\\updownarrow"?(se=8593,ye=9168,Se=8595):a==="\\Updownarrow"?(se=8657,ye=8214,Se=8659):a==="["||a==="\\lbrack"?(se=9121,ye=9122,Se=9123,Le="Size4-Regular"):a==="]"||a==="\\rbrack"?(se=9124,ye=9125,Se=9126,Le="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(ye=se=9122,Se=9123,Le="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(se=9121,ye=Se=9122,Le="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(ye=se=9125,Se=9126,Le="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(se=9124,ye=Se=9125,Le="Size4-Regular"):a==="("||a==="\\lparen"?(se=9115,ye=9116,Se=9117,Le="Size4-Regular"):a===")"||a==="\\rparen"?(se=9118,ye=9119,Se=9120,Le="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(se=9127,me=9128,Se=9129,ye=9130,Le="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(se=9131,me=9132,Se=9133,ye=9130,Le="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(se=9127,Se=9129,ye=9130,Le="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(se=9131,Se=9133,ye=9130,Le="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(se=9127,Se=9133,ye=9130,Le="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(se=9131,Se=9129,ye=9130,Le="Size4-Regular"):a==="\\surd"?(se=57345,Se=9143,ye=57344,Le="Size4-Regular"):a==="\\ulcorner"?(se=9484,ye=Se=32):a==="\\urcorner"?(se=9488,ye=Se=32):a==="\\llcorner"?(Se=9492,ye=se=32):a==="\\lrcorner"&&(se=9496,ye=se=32);const Ze=oo(se,Le),mt=Ze.height+Ze.depth,It=oo(ye,Le),Wt=It.height+It.depth,On=oo(Se,Le),Vr=On.height+On.depth;let Pn=0,fr=1;if(me!==null){const $l=oo(me,Le);Pn=$l.height+$l.depth,fr=2}const Jr=mt+Vr+Pn,wr=Math.max(0,Math.ceil((y-Jr)/(fr*Wt))),Zi=Jr+wr*fr*Wt;let ba=ca;b&&(ba=ba*E.scalingFactor);const aa=Zi/2-ba,_o=.008,Cs=[];Cs.push({box:new Hr(Se,{fontFamily:Le})}),Cs.push(-_o);const ai=new Hr(ye,{fontFamily:Le});if(me===null)for(let $l=0;$l<wr;$l++)Cs.push({box:ai});else{for(let $l=0;$l<wr;$l++)Cs.push({box:ai});Cs.push(-_o),Cs.push({box:new Hr(me,{fontFamily:Le})}),Cs.push(-_o);for(let $l=0;$l<wr;$l++)Cs.push({box:ai})}Cs.push(-_o),Cs.push({box:new Hr(se,{fontFamily:Le})});let lc="";Le==="Size1-Regular"?lc=" delim-size1":Le==="Size4-Regular"&&(lc=" delim-size4");const jc=new cs({bottom:aa,children:Cs},{classes:lc});return new Hr(jc,we(ke({},ee!=null?ee:{}),{classes:((ie=ee==null?void 0:ee.classes)!=null?ie:"")+" ML__delim-mult"}))}var Ne=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),Ue=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),Bt=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Vt=[0,1.2,1.8,2.4,3];function Sn(a,y,b,E){return a===void 0||a==="."?Li(b,E.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),Ne.has(a)||Bt.has(a)?Ce(a,y,!1,b,E):Ue.has(a)?Fe(a,Vt[y],!1,b,E):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var bn=[{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}],nr=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],Cr=[{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 Xr(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function yi(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 se=oo(a,Xr(b[ie]));if(se.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let me=se.height+se.depth;if(b[ie].type==="small"&&(b[ie].mathstyle==="scriptscriptstyle"?me*=Math.max(us[Math.max(1,E.size-2)],E.minFontScale):b[ie].mathstyle==="scriptstyle"&&(me*=Math.max(us[Math.max(1,E.size-1)],E.minFontScale))),me>y)return b[ie]}return b[b.length-1]}function Di(a,y,b,E,ee,ie){if(!y||y.length===0||y===".")return Li(ee);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let se;Bt.has(y)?se=bn:Ne.has(y)?se=Cr:se=nr;const me=yi(ae(y),b,se,ee),ye=new Co({parent:ee,mathstyle:me.mathstyle},ie==null?void 0:ie.style);return me.type==="small"?pe(y,ye,E,we(ke({},ie),{type:a})):me.type==="large"?Ce(y,me.size,E,ye,we(ke({},ie),{type:a})):(console.assert(me.type==="stack"),Fe(y,b,E,ye,we(ke({},ie),{type:a})))}function ci(a,y,b,E,ee,ie){if(y===".")return Li(ee,ie==null?void 0:ie.classes);const se=ca*ee.scalingFactor,me=901,ye=5/to,Se=Math.max(b-se,E+se),Le=Math.max(Se/500*me,2*Se-ye);return Di(a,y,Le,!0,ee,ie)}function Li(a,y){const b=new Hr(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new Co({parent:a,mathstyle:"textstyle"}))}var ya=class X0 extends $n{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 X0(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{}"}},Aa=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],uo=["cases","dcases","rcases"],ss=["align","align*","aligned","gather","gathered","split"],Dl=["array","subequations","eqnarray"];function Qs(a){return Dl.concat(ss).concat(uo).concat(Aa).includes(a)}function tu(a){return Aa.includes(a)}function nu(a){return uo.includes(a)}function gl(a){return ss.includes(a)}function Jl(a,y,b){let E=0;for(const Se of b)"align"in Se&&(E+=1);let ee=0;const ie=[];for(const Se of y){let Le=0;for(ee=Math.max(ee,Math.min(Se.length,E));Le<Se.length;){const Ze=[],mt=Math.min(Se.length,Le+E);for(;Le<mt;){const It=Se[Le];It.length===0?Ze.push([new $n({type:"first",mode:a.mode})]):It[0].type!=="first"?Ze.push([new $n({type:"first",mode:a.mode}),...It]):(console.assert(!It.slice(1).some(Wt=>Wt.type==="first")),Ze.push(It)),Le+=1}ie.push(Ze)}}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 se=[];for(const Se of ie){if(Se.length!==ee)for(let Le=Se.length;Le<ee;Le++)Se.push([new $n({type:"first",mode:a.mode}),new ya]);se.push(Se)}let me=0,ye=0;for(const Se of se){ye=0;for(const Le of Se){for(const Ze of Le)Ze.parent=a,Ze.parentBranch=[me,ye];ye+=1}me+=1}return a.isDirty=!0,se}var ja=class q0 extends $n{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=Jl(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 q0(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=we(ke({},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($c(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return $c(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(Qu(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,se,me;const ye=new Co({parent:y,mathstyle:this.mathstyleName},this.style),Se=ye.getRegisterAsEm("arrayrulewidth"),Le=ye.getRegisterAsEm("arraycolsep"),Ze=ye.getRegisterAsEm("doublerulesep"),mt=(E=(b=this.arraystretch)!=null?b:ye.getRegisterAsNumber("arraystretch"))!=null?E:1;let It=typeof this.arraycolsep=="number"?this.arraycolsep:Le;this.colSeparationType==="small"&&(It=.2778*(new Co({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const Wt=mt*mo,On=.7*Wt,Vr=.3*Wt;let Pn=0;const fr=[];let Jr=0;const wr=this.array.length;for(let ks=0;ks<wr;++ks){const wl=this.array[ks];Jr=Math.max(Jr,wl.length);const eu=new Co({parent:ye,mathstyle:this.mathstyleName},this.style);let Zc=On/eu.scalingFactor,Gc=Vr/eu.scalingFactor;const Yc={cells:[],height:0,depth:0,pos:0};for(const Lc of wl){const Ip=(ee=$n.createBox(eu,Lc,{type:"ignore"}))!=null?ee:new Hr(null,{type:"ignore"});Gc=Math.max(Gc,Ip.depth),Zc=Math.max(Zc,Ip.height),Yc.cells.push(Ip)}let Qc=(ie=Bd(this.rowGaps[ks]))!=null?ie:0;Qc>0&&(Qc+=Vr,Gc=Math.max(Gc,Qc),Qc=0),ks<wr-1&&!tu(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Gc+=ye.getRegisterAsEm("jot")),Yc.height=Zc,Yc.depth=Gc,Pn+=Zc,Yc.pos=Pn,Pn+=Gc+Qc,fr.push(Yc)}const Zi=Pn/2+ca,ba=[];for(let ks=0;ks<Jr;ks++){const wl=[];for(const eu of fr){const Zc=eu.cells[ks];Zc.depth=eu.depth,Zc.height=eu.height,wl.push({box:Zc,shift:eu.pos-Zi})}wl.length>0&&ba.push(new cs({individualShift:wl}))}const aa=[];let _o=!1,Cs=!1,ai=0,lc=!this.leftDelim;const{colFormat:jc}=this;for(const ks of jc){if("align"in ks&&ai>=ba.length)break;if("align"in ks)_o?aa.push(Os(2*It)):(Cs||lc)&&aa.push(Os(It)),aa.push(new Hr(ba[ai],{classes:"col-align-"+ks.align})),ai++,_o=!0,Cs=!1,lc=!1;else if("gap"in ks){if(typeof ks.gap=="number")aa.push(Os(ks.gap));else{const wl=Js(y,fr,Zi,ks.gap);wl&&aa.push(wl)}_o=!1,Cs=!1,lc=!1}else if("separator"in ks){const wl=new Hr(null,{classes:"vertical-separator"});wl.height=Pn,wl.setStyle("height",Pn,"em"),wl.setStyle("border-right",`${Se}em ${ks.separator} currentColor`),wl.setStyle("vertical-align",-(Pn-Zi),"em");let eu=0;Cs?eu=Ze-Se:_o&&(eu=It-Se),wl.left=eu,aa.push(wl),_o=!1,Cs=!0,lc=!1}}_o&&!this.rightDelim&&aa.push(Os(It));const wc=new Hr(aa,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(wc.caret=this.caret),this.bind(y,wc);const $l=wc.height,uc=wc.depth,Ku=this.bind(y,new Hr([this.bind(y,ci("open",(se=this.leftDelim)!=null?se:".",$l,uc,ye,{isSelected:this.isSelected})),wc,this.bind(y,ci("close",(me=this.rightDelim)!=null?me:".",$l,uc,ye,{isSelected:this.isSelected}))],{type:"ord"}));return Ku?(Ku.setStyle("display","inline-block"),this.caret&&(Ku.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:Ku}))):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($n.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}}`),gi(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 $n({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(nl(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 se of ie)se.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(nl(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 se of ie)se.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 se of ie)se.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,nl(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,nl(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 nl(a){const y=new $n({type:"first",mode:a.mode});y.parent=a;const b=new ya;return b.parent=a,[y,b]}function Os(a){const y=new Hr(null,{classes:"arraycolsep"});return y.width=a,y}function Js(a,y,b,E){if(!E)return null;const ee=[];for(const ie of y){const se=$n.createBox(a,E,{type:"ignore"});se&&(se.depth=ie.depth,se.height=ie.height,ee.push({box:se,shift:ie.pos-b}))}return new cs({individualShift:ee}).wrap(a)}var pl=class $0 extends $n{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 $0(y)}toJson(){return we(ke({},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 se=$n.createBox(y,this.body,{type:"lift"});if(!se)return null;const me=y.toEm((b=this.offset)!=null?b:{dimension:0});se.depth+=me,se.setStyle("display","inline-block"),se.setStyle("position","relative"),se.setStyle("height",Math.floor(100*se.height+se.depth)/100,"em"),se.setStyle("vertical-align",-Math.floor(100*se.height)/100,"em");const ye=new Co({parent:y},this.style),Se=ye.toEm((E=this.padding)!=null?E:{register:"fboxsep"}),Le=new Hr(null,{classes:"ML__box"});Le.height=se.height+Se,Le.depth=se.depth+Se,Le.setStyle("box-sizing","border-box"),Le.setStyle("position","absolute"),Le.setStyle("top",-Se+.3,"em"),Le.setStyle("left",0),Le.setStyle("height",Le.height+Le.depth,"em"),Le.setStyle("width","100%"),this.backgroundcolor&&Le.setStyle("background-color",(ee=ye.toColor(this.backgroundcolor))!=null?ee:"transparent"),this.framecolor&&Le.setStyle("border",`${ye.getRegisterAsEm("fboxrule",2)}em solid ${(ie=ye.toColor(this.framecolor))!=null?ie:"black"}`),this.border&&Le.setStyle("border",this.border);const Ze=new Hr([Le,se],{type:"lift"});return Ze.setStyle("display","inline-block"),Ze.setStyle("position","relative"),Ze.setStyle("line-height",0),Ze.height=se.height+Se+(me>0?me:0),Ze.depth=se.depth+Se+(me<0?-me:0),Ze.setStyle("padding-left",Se,"em"),Ze.setStyle("padding-right",Se,"em"),Ze.setStyle("height",Math.floor(100*(se.height+se.depth+2*Se+Math.abs(me)))/100,"em"),Ze.setStyle("margin-top",-Se,"em"),Ze.setStyle("top",Math.floor(100*(se.depth-se.height+2*Se-me))/100,"em"),Ze.setStyle("vertical-align",Math.floor(100*(se.depth+2*Se))/100,"em"),this.caret&&(Ze.caret=this.caret),this.attachSupsub(y,{base:Ze})}_serialize(y){return y.skipStyles?gi([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},Mc=class em extends $n{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 em(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new Hr(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},cu=class tm extends $n{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new tm(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},Nl=class nm extends $n{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 nm(y.body,y.mode,y.style)}render(y){const b=$n.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=Or(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},Vo=class rm extends $n{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 rm((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"?gi(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ee]):this.variant==="mleft...mright"?gi(["\\mleft",(E=this.leftDelim)!=null?E:".",this.bodyToLatex(y),"\\mright",ee]):gi([!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=re[E])!=null?b:E}render(y){var b,E;const ee=new Co({parent:y},this.style);console.assert(this.body!==void 0);const ie=new Co({parent:y,mathstyle:"textstyle"},this.style),se=(b=$n.createBox(ee,this.body,{type:"inner"}))!=null?b:new Hr(null,{type:"inner"}),me=se.height/ie.scalingFactor,ye=se.depth/ie.scalingFactor,Se=[];if(this.leftDelim&&Se.push(this.bind(ie,ci("open",this.leftDelim,me,ye,ie,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),se&&(oe(se.children,this,ee,me,ye),Se.push(se)),this.rightDelim){let It=this.containsCaret?" ML__contains-caret":"",Wt=this.rightDelim;Wt==="?"&&(ee.smartFence?(Wt=this.matchingRightDelim(),It+=" ML__smart-fence__close"):Wt="."),Se.push(this.bind(ie,ci("close",Wt,me,ye,ie,{isSelected:this.isSelected,classes:It+" ML__close",mode:this.mode,style:this.style})))}let Le=this.variant==="mleft...mright";const Ze=this.leftSibling;Ze&&(!Le&&Ze.isFunction&&(Le=!0),!Le&&Ze.type==="subsup"&&((E=Ze.leftSibling)!=null&&E.isFunction)&&(Le=!0));const mt=new Hr(Se,{type:Le?"close":"inner",classes:"left-right"});return mt.setStyle("margin-top",`${-se.depth}em`),mt.setStyle("height",`${se.height+se.depth}em`),this.caret&&(mt.caret=this.caret),this.bind(ee,mt.wrap(ee))}};function oe(a,y,b,E,ee){if(a)for(let ie=0;ie<a.length;ie++){const se=a[ie];se.type==="middle"?(a[ie]=y.bind(b,ci("inner",se.value,E,ee,b,{isSelected:y.isSelected})),a[ie].caret=se.caret,a[ie].isSelected=se.isSelected,a[ie].cssId=se.cssId,a[ie].htmlData=se.htmlData,a[ie].htmlStyle=se.htmlStyle,a[ie].attributes=se.attributes,a[ie].cssProperties=se.cssProperties):se.children&&oe(se.children,y,b,E,ee)}}var le=class im extends $n{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 im(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=$n.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},de=class am extends $n{constructor(){super({type:"macro-argument"})}static fromJson(y){return new am}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},xe=class om extends $n{constructor(y,b,E=!1,ee,ie){var se;super({type:"prompt",mode:(se=ie==null?void 0:ie.mode)!=null?se:"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 om(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 Co({parent:y}),E=b.getRegisterAsEm("fboxsep"),ee=E,ie=E,se=$n.createBox(y,this.body);if(!se)return null;se.height||(se.height=b.metrics.xHeight),se.setStyle("vertical-align",-se.height,"em"),this.correctness==="correct"?se.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&se.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const me=new Hr(se,{type:"ord"});me.setStyle("display","inline-block"),me.setStyle("height",se.height+se.depth,"em"),me.setStyle("vertical-align",-ie,"em");let ye="ML__prompt ";this.locked?ye+=" ML__lockedPromptBox ":ye+=" ML__editablePromptBox ",this.correctness==="correct"?ye+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(ye+=" ML__incorrectPromptBox "),this.containsCaret&&(ye+=" ML__focusedPromptBox ");const Se=new Hr(null,{classes:ye,attributes:{part:"prompt"}});Se.height=me.height+ie,Se.depth=me.depth+ie,Se.width=me.width+2*ee,Se.setStyle("box-sizing","border-box"),Se.setStyle("position","absolute"),Se.setStyle("height",me.height+me.depth+2*ie,"em"),ee===0&&Se.setStyle("width","100%"),ee!==0&&(Se.setStyle("width",`calc(100% + ${2*ee}em)`),Se.setStyle("top",E,"em"),Se.setStyle("left",-ee,"em")),(!this.body||this.body.length===1)&&(Se.width=3*ee,Se.setStyle("width",`calc(100% + ${3*ee}em)`),Se.setStyle("left",-1.5*ee,"em"));let Le="";this.correctness==="incorrect"&&(Le+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),Le&&(Se.svgOverlay=Le);const Ze=new Hr([Se,me],{classes:"ML__prompt-atom"});return Ze.setStyle("position","relative"),Ze.setStyle("display","inline-block"),Ze.setStyle("line-height",0),Ze.height=me.height+ie+.2,Ze.depth=me.depth+ie,Ze.left=ee,Ze.right=ee,Ze.setStyle("height",me.height+ie,"em"),Ze.setStyle("top",me.depth-me.height,"em"),Ze.setStyle("vertical-align",me.depth+ie,"em"),Ze.setStyle("margin-left",.5,"em"),Ze.setStyle("margin-right",.5,"em"),this.caret&&(Ze.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:Ze}))}_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]"),so(ee,E)}},Ie=class sm extends $n{constructor(y){super({type:"subsup",style:y==null?void 0:y.style}),this.subsupPlacement="auto"}static fromJson(y){const b=new sm(y);for(const E of Nc)y[E]&&b.setChildren(y[E],E);return b}render(y){var b;const E=new Co({parent:y,isPhantom:!0}),ee=this.leftSibling,ie=(b=ee.render(E))!=null?b:new Hr(null),se=new Hr(null);return se.height=ie.height,se.depth=ie.depth,this.attachSupsub(y,{base:se,isCharacterBox:ee.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function Pe(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var ze=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var E,ee,ie,se;b!=null||(b={}),this.tokens=a,this.context=y instanceof Co&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new Co({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:(se=b.mathstyle)!=null?se:"displaystyle",tabular:!1}}beginContext(a){var y,b,E;const ee=this.parsingContext,ie={parent:ee,mathlist:[],style:ke({},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(ke({before:tl(this.tokens.slice(this.index,this.index+10)),after:tl(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 ke({},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 Ie({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=Or(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?je(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new ya({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();Pe(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(Pe(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,se=/\d/;if(this.match("'"))ie=8,se=/[0-7]/,a=!0;else if(this.match('"'))ie=16,se=/[\dA-F]/,a=!0;else if(this.match("x"))ie=16,se=/[\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 me="";for(;this.hasPattern(se);)me+=this.get();if(!a&&(this.match(".")||this.match(",")))for(me+=".";this.hasPattern(se);)me+=this.get();const ye=a?Number.parseInt(me,ie):Number.parseFloat(me);return Number.isNaN(ye)?null:{number:E?-ye:ye,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()||!Pe(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=Zt(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const me of y.params)if(me.isOptional)b.push(this.scanOptionalArgument(me.type));else{const ye=this.scanArgument(me.type);ye||this.onError({code:"missing-argument",arg:a}),b.push(ye)}this.beginContext({tabular:y.tabular});const E=[],ee=[];let ie=[],se=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),se=!0),!se&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),se=!0),!se)if(this.matchColumnSeparator())ie.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){ie.push(this.mathlist),this.mathlist=[];let me=null;this.skipWhitespace(),this.match("[")&&(me=this.scanDimen(),this.skipWhitespace(),this.match("]")),ee.push(me!=null?me:{dimension:0}),E.push(ie),ie=[]}else this.mathlist.push(...this.scan(me=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(me)));while(!se);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=se=>se==="<}>");let y="",b=null,E=[],ee=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=Or(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 Nl(y,this.parseMode,this.style);return b.verbatimLatex=tl(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 Vo("",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(!Pe(a)&&!a.startsWith("\\"))return null;this.next();const y=Or(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 cu("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new cu("\\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 cu(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 Vo(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 $n({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new $n({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(Dt(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(Pe(a)){const b=Ss.createAtom(this.parseMode,a,ke({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=Or(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new cu(a)];if(b.definitionType==="symbol"){const E=ke({},this.style);b.variant&&(E.variant=b.variant),y=new $n({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 cu(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 se=ee.match(/^\s*border\s*:\s*(.*)/);se?b.border=se[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 me=this.scanOptionalArgument("string"),ye=this.scanOptionalArgument("math"),Se=$n.serialize(ye,{defaultMode:"math"});let Le=[],Ze;!Ze&&Se==="correct"?Ze="correct":!Ze&&Se==="incorrect"?Ze="incorrect":Se!==""&&(Le=ye);const mt=this.scanOptionalArgument("string")==="locked",It=this.scanArgument("auto");let Wt;return It&&Array.isArray(It)&&It.length>0?Wt=It:It&&typeof It=="object"&&"group"in It?Wt=It.group:Wt=Le,me?[new xe(me,Ze,mt,Wt!=null?Wt:Le,{mode:this.parseMode,style:this.style})]:[new ya({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const me=this.index,ye=this.scanLiteralGroup()||this.next();if(!ye)return null;if(this.context.registers[ye.substring(1)]){const Se=this.scanArgument("string");Se!==null&&(this.context.registers[ye.substring(1)]=Se);const Le=gi([a,tl(this.tokens.slice(me,this.index))]);return[new $n({type:"text",value:"",verbatimLatex:Le})]}}let ee=this.scanMacro(a);if(ee)return[ee];const ie=Or(a,this.parseMode);if(!ie)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(me=>new $n({type:"text",value:me,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new cu(a)]);const se=this.index;if(ie.definitionType==="symbol"){const me=ke({},this.style);ie.variant&&(me.variant=ie.variant),ee=new $n({type:ie.type,command:a,style:me,value:String.fromCodePoint(ie.codepoint),mode:this.parseMode})}else{if(ie.ifMode&&!ie.ifMode.includes(this.parseMode))return[];const me=this.parseMode;ie.applyMode&&(this.parseMode=ie.applyMode);let ye,Se=[];if(ie.parse?Se=ie.parse(this):[ye,Se]=this.scanArguments(ie),this.parseMode=me,ie.applyMode&&!ie.applyStyle&&!ie.createAtom)return Dt(Se[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:Se,style:this.style,mode:this.parseMode}),ye&&(ee.body=Dt(this.scanArgument(ye)));else if(typeof ie.applyStyle=="function"){const Le=ke(ke({},this.style),ie.applyStyle(a,Se,this.context)),Ze=this.parseMode;if(ie.applyMode&&(this.parseMode=ie.applyMode),ye){const mt=this.style;this.style=Le;const It=this.scanArgument(ye);return this.style=mt,this.parseMode=Ze,Dt(It)}this.style=Le}else ee=new $n({type:"mord",command:(b=ie.command)!=null?b:a,style:ke({},this.style),value:a,mode:(E=ie.applyMode)!=null?E:this.parseMode})}if(!ee)return null;if(ee instanceof $n&&ee.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const me=gi([a,tl(this.tokens.slice(se,this.index))]);me&&(ee.verbatimLatex=me)}if(ee.verbatimLatex===null&&(ee.verbatimLatex=void 0),ee.isFunction&&this.smartFence){const me=this.scanSmartFence();if(me)return[ee,me]}return[ee]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(Pe(a)){const y=Ss.createAtom(this.parseMode,a,ke({},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 tc(" "," ",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 se=1;se<=ee;se++){let me=this.scanLiteralGroup();if(!me){const ye=this.index;this.scanExpression(),me=tl(this.tokens.slice(ye,this.index))}ie[se]=me}return new le(a,{expand:b.expand,captureSelection:b.captureSelection,args:E===this.index?null:tl(this.tokens.slice(E,this.index)),style:this.parsingContext.style,body:je(b.def,{context:this.context,parseMode:this.parseMode,args:se=>ie[se],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 je(a,y){var b,E,ee,ie;const se=(b=y==null?void 0:y.args)!=null?b:void 0,me=new ze(qa(a,se),y==null?void 0:y.context,{args:se,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:{}}),ye=[];for(;!me.end();)ye.push(...me.scan(()=>!1));return ye}function At(a,y){var b;const E=new ze(qa(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 Ut=class lm extends $n{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const E=Et.go(st.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=je(E),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new lm(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return we(ke({},super.toJson()),{arg:this.arg})}render(y){const b=$n.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}};ln(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new Ut(a.command,(y=a.args[0])!=null?y:"")}});var st={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,se=[];;){ee!==a?(ie=10,ee=a):ie--;var me=st.stateMachines[y],ye=me.transitions[b]||me.transitions["*"];e:for(var Se=0;Se<ye.length;Se++){var Le=st.patterns.match_(ye[Se].pattern,a);if(Le){for(var Ze=ye[Se].task,mt=0;mt<Ze.action_.length;mt++){var It;if(me.actions[Ze.action_[mt].type_])It=me.actions[Ze.action_[mt].type_](E,Le.match_,Ze.action_[mt].option);else if(st.actions[Ze.action_[mt].type_])It=st.actions[Ze.action_[mt].type_](E,Le.match_,Ze.action_[mt].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Ze.action_[mt].type_+")"];st.concatArray(se,It)}if(b=Ze.nextState||b,a.length>0){if(Ze.revisit||(a=Le.remainder),!Ze.toContinue)break e}else return se}}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=st.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 st.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return st.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return st.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return st.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return st.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return st.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return st.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return st.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return st.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return st.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return st.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return st.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return st.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 st.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return st.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return st.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return st.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 st.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return st.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return st.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return st.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return st.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return st.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return st.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return st.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=st.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,se,me,ye,Se){var Le=function(Pn,fr){if(typeof fr=="string")return Pn.indexOf(fr)!==0?null:fr;var Jr=Pn.match(fr);return Jr?Jr[0]:null},Ze=function(Pn,fr,Jr){for(var wr=0;fr<Pn.length;){var Zi=Pn.charAt(fr),ba=Le(Pn.substr(fr),Jr);if(ba!==null&&wr===0)return{endMatchBegin:fr,endMatchEnd:fr+ba.length};if(Zi==="{")wr++;else if(Zi==="}"){if(wr===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];wr--}fr++}return wr>0,null},mt=Le(a,y);if(mt===null||(a=a.substr(mt.length),mt=Le(a,b),mt===null))return null;var It=Ze(a,mt.length,E||ee);if(It===null)return null;var Wt=a.substring(0,E?It.endMatchEnd:It.endMatchBegin);if(ie||se){var On=this.findObserveGroups(a.substr(It.endMatchEnd),ie,se,me,ye);if(On===null)return null;var Vr=[Wt,On.match_];return{match_:Se?Vr.join(""):Vr,remainder:On.remainder}}else return{match_:Wt,remainder:a.substr(It.endMatchEnd)}},match_:function(a,y){var b=st.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return st.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 st.go(y,"text")},"{text}":function(a,y){var b=["{"];return st.concatArray(b,st.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return st.go(y,"tex-math")},"tex-math tight":function(a,y){return st.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 st.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 st.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 se=a[y][b];if(se.action_){se.action_=[].concat(se.action_);for(var me=0;me<se.action_.length;me++)typeof se.action_[me]=="string"&&(se.action_[me]={type_:se.action_[me]})}else se.action_=[];for(var ye=y.split("|"),Se=0;Se<ye.length;Se++)if(E[ee]==="*")for(var Le in ie)ie[Le].push({pattern:ye[Se],task:se});else ie[E[ee]].push({pattern:ye[Se],task:se})}return ie},stateMachines:{}};st.stateMachines={ce:{transitions:st.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 st.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 st.concatArray(b,this.output(a)),st.concatArray(b,st.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var E=st.patterns.match_("orbital",a.o||""),ee=st.patterns.match_("one lowercase greek letter $",a.o||""),ie=st.patterns.match_("one lowercase latin letter $",a.o||""),se=st.patterns.match_("$one lowercase latin letter$ $",a.o||""),me=y==="-"&&(E&&E.remainder===""||ee||ie||se);me&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!E&&ie&&(a.o="$"+a.o+"$");var ye=[];return me?(st.concatArray(ye,this.output(a)),ye.push({type_:"hyphen"})):(E=st.patterns.match_("digits",a.d||""),b&&E&&E.remainder===""?(st.concatArray(ye,st.actions["d="](a,y)),st.concatArray(ye,this.output(a))):(st.concatArray(ye,this.output(a)),st.concatArray(ye,st.actions.bond(a,y,"-")))),ye},"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:st.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"&&st.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:st.go(a.a,"a"),b:st.go(a.b,"bd"),p:st.go(a.p,"pq"),o:st.go(a.o,"o"),q:st.go(a.q,"pq"),d:st.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ee;a.rdt==="M"?ee=st.go(a.rd,"tex-math"):a.rdt==="T"?ee=[{type_:"text",p1:a.rd||""}]:ee=st.go(a.rd);var ie;a.rqt==="M"?ie=st.go(a.rq,"tex-math"):a.rqt==="T"?ie=[{type_:"text",p1:a.rq||""}]:ie=st.go(a.rq),E={type_:"arrow",r:a.r,rd:ee,rq:ie}}for(var se in a)se!=="parenthesisLevel"&&se!=="beginsWithBond"&&delete a[se];return E},"oxidation-output":function(a,y){var b=["{"];return st.concatArray(b,st.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:st.go(y[0]),p2:st.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:st.go(y[0]),p2:st.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:st.go(y[0]),p2:st.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:st.go(y[0]),p2:st.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:st.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:st.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:st.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:st.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:st.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:st.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:st.go(y[1],"pq")}}}},bd:{transitions:st.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:st.go(y[1],"bd")}}}},oxidation:{transitions:st.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:st.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:st.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:st.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:st.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]&&(st.concatArray(b,st.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?st.concatArray(b,st.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]),st.concatArray(b,st.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=st.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var E=st.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:st.go(a.d,"pu"),q:st.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_:"/"}),st.concatArray(y,ee.q))}else y=st.go(a.d,"pu-2");for(var ie in a)delete a[ie];return y}}},"pu-2":{transitions:st.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=st.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=st.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var E in a)delete a[E];return y}}},"pu-9,9":{transitions:st.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 Et={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+=Et._go2(ie),ie.type_==="1st-level escape"&&(E=!0))}return!y&&!E&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&Et.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:Et._goInner(a.a),b:Et._goInner(a.b),p:Et._goInner(a.p),o:Et._goInner(a.o),q:Et._goInner(a.q),d:Et._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 "+Et._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+Et._goInner(a.p1);break;case"bond":if(y=Et._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{"+Et._goInner(a.p1)+"}{"+Et._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ee+"}{"+ee+"}{"+ee+"}{"+ee+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+Et._goInner(a.p1)+"}{"+Et._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+Et._goInner(a.p1)+"}{"+Et._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+Et._goInner(a.p1)+"}{"+Et._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+Et._goInner(a.p1)+"}_{"+Et._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+Et._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var ie={rd:Et._goInner(a.rd),rq:Et._goInner(a.rq)},se=Et._getArrow(a.r);ie.rd||ie.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(se="\\long"+se,ie.rd&&(se="\\overset{"+ie.rd+"}{"+se+"}"),ie.rq&&(a.r==="<-->"?se="\\underset{\\lower2mu{"+ie.rq+"}}{"+se+"}":se="\\underset{\\lower6mu{"+ie.rq+"}}{"+se+"}"),se=" {}\\mathrel{"+se+"}{} "):(ie.rq&&(se+="[{"+ie.rq+"}]"),se+="{"+ie.rd+"}",se=" {}\\mathrel{\\x"+se+"}{} "):se=" {}\\mathrel{\\long"+se+"}{} ",y=se;break;case"operator":y=Et._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 Pt(a){}function en(a){}var Fn=class um extends $n{constructor(y){super(we(ke({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new um(y)}toJson(){return we(ke({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new Hr(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Or(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):so(this.command,this.value)}},zr=class cm extends $n{constructor(y){super(we(ke({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new cm(y)}toJson(){return we(ke({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=Sn(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=Or(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):so(this.command,this.value)}},Yr=class dm extends $n{constructor(y,b,E,ee){var ie,se;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=(se=ee.strokeWidth)!=null?se:"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 dm(y.command,y.body,y.notation,y)}toJson(){return we(ke({},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=Or(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="",se="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(ie+=se+'mathbackground="'+this.backgroundcolor+'"',se=","),this.shadow&&this.shadow!=="auto"&&(ie+=se+'shadow="'+this.shadow+'"',se=","),this.strokeWidth||this.strokeStyle!=="solid"?(ie+=se+this.borderStyle,se=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(ie+=se+'mathcolor="'+this.strokeColor+'"',se=","),ie&&(ee+=`[${ie}]`)}return so(ee,this.bodyToLatex(y))}render(y){const b=new Co({parent:y},this.style),E=$n.createBox(b,this.body);if(!E)return null;const ee=Ii(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 se=new Hr(null,{classes:"ML__notation"});let me=E.height+E.depth+2*ie;const ye=E.width+2*ie;let Se="";if(this.notation.horizontalstrike&&(Se+=this.line(3,50,97,50)),this.notation.verticalstrike&&(Se+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(Se+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(Se+=this.line(3,3,97,97)),this.notation.updiagonalarrow){Se+=this.line(ie.toString(),(ie+E.depth+E.height).toString(),(ie+E.width).toString(),ie.toString());const Wt=.03*Math.sqrt(ye*ye+me*me)*1,On=E.width*Wt,Vr=(E.depth+E.height)*Wt,Pn=ie+E.width;let fr=ie;fr+Vr-.4*On<0&&(fr=.4*On-Vr),Se+='<polygon points="',Se+=`${Pn},${fr} ${Pn-On-.4*Vr},${fr+Vr-.4*On} `,Se+=`${Pn-.7*On},${fr+.7*Vr} ${Pn-On+.4*Vr},${fr+Vr+.4*On} `,Se+=`${Pn},${fr}`,Se+=`" stroke='none' fill="${this.strokeColor}"`,Se+="/>"}let Le=0;if(this.notation.phasorangle){const mt=da(b),It=(E.height+E.depth+2*mt+ie).toString(),Wt=(E.height+E.depth)/2;Se+=this.line(ie.toString(),It,(ie+Wt+E.width).toString(),It),Se+=this.line(ie.toString(),It,(ie+Wt).toString(),(ie-mt).toString()),me+=mt,Le=Wt,E.left+=me/2-ie}if(this.notation.longdiv){const mt=da(b);me+=mt,Se+=this.line(ie.toString(),ie.toString(),(ie+E.width).toString(),ie.toString());const It=.3;Le=It+mt,E.left+=It+mt,E.setTop(ie+mt),Se+='<path d="',Se+=`M ${ie} ${ie} a${It} ${(E.depth+E.height+2*mt)/2}, 0, 1, 1, 0 ${E.depth+E.height+2*mt} "`,Se+=` stroke-width="${ra(b)}" stroke="${this.strokeColor}" fill="none"`,Se+="/>"}if(se.width=E.width+2*ie+Le,se.height=E.height+ie,se.depth=E.depth+ie,se.setStyle("box-sizing","border-box"),se.setStyle("left",`calc(-${ee} / 2 )`),se.setStyle("height",`${Math.floor(100*me)/100}em`),se.setStyle("top",`calc(${ee} / 2 )`),this.backgroundcolor&&se.setStyle("background-color",this.backgroundcolor),this.notation.box&&se.setStyle("border","1px solid red"),this.notation.actuarial&&(se.setStyle("border-top",this.borderStyle),se.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(se.setStyle("border-bottom",this.borderStyle),se.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(se.setStyle("border-radius","8px"),se.setStyle("border",this.borderStyle)),this.notation.circle&&(se.setStyle("border-radius","50%"),se.setStyle("border",this.borderStyle)),this.notation.top&&se.setStyle("border-top",this.borderStyle),this.notation.left&&se.setStyle("border-left",this.borderStyle),this.notation.right&&se.setStyle("border-right",this.borderStyle),this.notation.bottom&&se.setStyle("border-bottom",this.borderStyle),Se){let mt="";this.shadow==="auto"&&(mt+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(mt+=`filter: drop-shadow(${this.shadow})`),mt+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,mt+=' stroke-linecap="round"',this.svgStrokeStyle&&(mt+=` stroke-dasharray="${this.svgStrokeStyle}"`),se.svgStyle=mt,se.svgOverlay=Se}const Ze=new Hr([se,E]);return Ze.setStyle("position","relative"),Ze.setStyle("vertical-align",ie,"em"),Ze.setStyle("height",`${Math.floor(100*(E.height+E.depth+2*ie))/100}em`),Ze.setStyle("display","inline-block"),Ze.height=se.height,Ze.depth=se.depth,Ze.width=se.width-2*ie,Ze.left=ie,Ze.right=ie,this.caret&&(Ze.caret=this.caret),Ze.wrap(b)}line(y,b,E,ee){return`<line x1="${ni(y)}" y1="${ni(b)}" x2="${ni(E)}" y2="${ni(ee)}" vector-effect="non-scaling-stroke"></line>`}};function ni(a){return typeof a=="number"?`${Math.floor(100*a)/100}%`:a}function Ii(a){if(!a)return"1px";const y=a.match(/([0-9][a-zA-Z\%]+)/);return y===null?"1px":y[1]}function ra(a){return(Math.floor(100*a.metrics.sqrtRuleThickness/a.scalingFactor)/100/10).toString()+"em"}function da(a){const y=a.isDisplayStyle?no:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var Ya=class fm extends $n{constructor(y,b,E){var ee,ie;super(we(ke({},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 fm(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),ke(ke({},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 Co({parent:y,mathstyle:this.mathstyleName},this.style),ie=ee.metrics,se=new Co({parent:ee,mathstyle:this.continuousFraction?"":"numerator"},this.style),me=this.numerPrefix?new Hr([new Hr(this.numerPrefix),$n.createBox(se,this.above)],{isTight:se.isTight,type:"ignore"}):(b=$n.createBox(se,this.above,{type:"ignore"}))!=null?b:new Hr(null,{type:"ignore"}),ye=new Co({parent:ee,mathstyle:this.continuousFraction?"":"denominator"},this.style),Se=this.denomPrefix?new Hr([new Hr(this.denomPrefix),$n.createBox(ye,this.below,{type:"ignore"})]):(E=$n.createBox(ye,this.below,{type:"ignore"}))!=null?E:new Hr(null,{type:"ignore"}),Le=this.hasBarLine?ie.defaultRuleThickness:0;let Ze,mt=0,It;ee.isDisplayStyle?(Ze=se.metrics.num1,mt=Le>0?3*Le:7*Le,It=ye.metrics.denom1):(Le>0?(Ze=se.metrics.num2,mt=Le):(Ze=se.metrics.num3,mt=3*ie.defaultRuleThickness),It=ye.metrics.denom2);const Wt=[];this.isSelected&&Wt.push("ML__selected");const On=me.depth,Vr=Se.height;let Pn;if(Le<=0){const aa=Ze-On-(Vr-It);aa<mt&&(Ze+=(mt-aa)/2,It+=(mt-aa)/2),Pn=new cs({individualShift:[{box:me,shift:-Ze,classes:[...Wt,"ML__center"]},{box:Se,shift:It,classes:[...Wt,"ML__center"]}]}).wrap(ee)}else{const aa=new Hr(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});aa.softWidth=Math.max(me.width,Se.width),aa.height=Le/2,aa.depth=Le/2;const _o=ca+Le/2;Ze<mt+On+_o&&(Ze=mt+On+_o);const Cs=ca-Le/2;It<mt+Vr-Cs&&(It=mt+Vr-Cs),Pn=new cs({individualShift:[{box:Se,shift:It,classes:[...Wt,"ML__center"]},{box:aa,shift:-Cs,classes:Wt},{box:me,shift:-Ze,classes:[...Wt,"ML__center"]}]}).wrap(ee)}const fr=ee.isDisplayStyle?ie.delim1:ie.delim2,Jr=this.leftDelim?this.bind(y,Di("open",this.leftDelim,fr,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):Li(ee,"open");let wr=null;this.continuousFraction?wr=new Hr(null,{type:"close"}):this.rightDelim?wr=this.bind(y,Di("close",this.rightDelim,fr,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):wr=Li(ee,"close");const Zi=new Hr([Jr,Pn,wr],{isTight:ee.isTight,type:"inner",classes:"mfrac"}),ba=this.bind(y,Zi);return this.caret&&(ba.caret=this.caret),this.attachSupsub(y,{base:ba})}},ga=class hm extends $n{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 hm(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),ke({type:"latex",value:this.value},y)}get computedStyle(){return{}}render(y){const b=new Hr(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}},vo=class pm extends $n{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new ga(b)),this.skipBoundary=!1}static fromJson(y){return new pm("")}toJson(){return super.toJson()}render(y){const b=$n.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:""}},rl=class mm extends $n{constructor(y,b){super(we(ke({},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 mm(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 Hr(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-ca*y.scalingFactor,se=ee.italic;ee.setTop(ie);let me=ee;if(this.superscript||this.subscript){const ye=(b=this.subsupPlacement)!=null?b:"auto";me=ye==="over-under"||ye==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ee,baseShift:ie,slant:se}):this.attachSupsub(y,{base:ee})}return new Hr(this.bind(y,me),{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=Or(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)),gi(E)}},go=class vm extends $n{constructor(y){const b=y.body;super(we(ke({},y),{type:"overlap",body:typeof b=="string"?[new $n({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 vm(y)}toJson(){const y={};return this.align&&(y.align=this.align),this.boxType&&(y.boxType=this.boxType),ke(ke({},super.toJson()),y)}render(y){const b=$n.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new Hr([b,new Hr(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},ts=class gm extends $n{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 gm(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?Tu(this.svgBody):$n.createBox(y,this.body,{type:"ignore"});const E=new Co({parent:y,mathstyle:"scriptstyle"},this.style);let ee=null;this.svgAbove?ee=Tu(this.svgAbove):this.above&&(ee=$n.createBox(E,this.above,{type:"ignore"}));let ie=null;this.svgBelow?ie=Tu(this.svgBelow):this.below&&(ie=$n.createBox(E,this.below,{type:"ignore"})),this.paddedBody&&(b=new Hr([Li(y,"open"),b,Li(y,"close")],{type:"ignore"}));let se=Xl(y,{base:b,above:ee,below:ie,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return se?(this.subsupPlacement==="over-under"?se=this.attachLimits(y,{base:se,type:se.type}):se=this.attachSupsub(y,{base:se}),this.caret&&(se.caret=this.caret),this.bind(y,se)):null}};function Xl(a,y){if(!y.base)return null;if(!y.above&&!y.below){const me=new Hr(y.base,{type:y.type});return me.setStyle("position","relative"),me}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let E=null;const ee=y.base,ie=0,se=["ML__center"];if(y.paddedAboveBelow&&se.push("ML__label_padding"),y.below&&y.above){const me=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ee.depth+ie;E=new cs({bottom:me,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:se},{box:ee,classes:["ML__center"]},b,{box:y.above,classes:se},a.metrics.bigOpSpacing5]})}else y.below?E=new cs({top:ee.height-ie,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:se},{box:ee,classes:["ML__center"]}]}):y.above&&(E=new cs({bottom:ee.depth+ie,children:[{box:ee,classes:["ML__center"]},b,{box:y.above,classes:se},a.metrics.bigOpSpacing5]}));return new Hr(E,{type:y.type})}var Bl=class ym extends $n{constructor(y){var b,E,ee,ie;super(we(ke({},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 ym(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),ke(ke({},super.toJson()),y)}render(y){const b=new Co({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),$n.createBox(b,this.body,{classes:"inner"});const E=$n.createBox(this.isInvisible?b:y,this.body);if(!E)return null;if(this.smashWidth){const ee=new Hr(null,{classes:"fix"});return new Hr([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 cs({firstBaseline:[{box:E}]},{type:E.type}).wrap(y)}},Du=class bm extends $n{constructor(y){var b;super(ke({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 bm(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 Hr(this.mode==="math"?null:" ");let E;if(this.width!==void 0)E=new Hr(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 Hr(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=Or(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}{${vl(this.width)}}`:`${ee}${vl(this.width)}`}},Xu=class xm extends $n{constructor(y){var b;super(we(ke({},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 xm(we(ke({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Or(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")?so(`${E}[${this.aboveToLatex(y)}]`,ee):/^[0-9]$/.test(ee)?`${E}${ee}`:so(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 Co({parent:y,mathstyle:"cramp"},this.style),ee=(b=$n.createBox(E,this.body,{type:"inner"}))!=null?b:new Hr(null),ie=E.scalingFactor,se=E.metrics.defaultRuleThickness/ie,me=y.isDisplayStyle?no:se,ye=new Hr(null,{classes:"ML__sqrt-line",style:this.style});ye.height=se,ye.softWidth=ee.width;let Se=ie*(se+me/4);const Ze=Math.max(ie*2*me,ee.height+ee.depth)+Se+se,mt=new Co({parent:y},this.style),It=this.bind(mt,new Hr(Di("inner","\\surd",Ze,!1,mt,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!It)return null;const Wt=It.height+It.depth-se;Wt>ee.height+ee.depth+Se&&(Se=(Se+Wt-(ee.height+ee.depth))/2),It.setTop(It.height-ee.height-Se);const On=this.bind(y,new cs({firstBaseline:[{box:new Hr(ee)},Se-2*se,{box:ye},se]})),Vr=$n.createBox(new Co({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!Vr){const Jr=new Hr([It,On],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Jr.setStyle("display","inline-block"),Jr.setStyle("height",Jr.height+Jr.depth,"em"),this.caret&&(Jr.caret=this.caret),this.bind(y,Jr)}const Pn=new cs({shift:-.6*(Math.max(It.height,On.height)-Math.max(It.depth,On.depth)),children:[{box:Vr}]}),fr=new Hr([new Hr(Pn,{classes:"ML__sqrt-index",type:"ignore"}),It,On],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return fr.height=It.height,fr.depth=It.depth,this.caret&&(fr.caret=this.caret),this.bind(y,fr)}},Ou=class extends Hr{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 Ru(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"){Ru(a.parent,y);return}E>0&&b[E-1].type==="skip"?b[E-1].width+=y:b.splice(E,0,new Ou(y))}var ru={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}},_c={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function yc(a){ic(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 Dc(a,y){if(!a.children)return a;const b=a.children;yc(b);const E=y.getRegisterAsEm("thinmuskip"),ee=y.getRegisterAsEm("medmuskip"),ie=y.getRegisterAsEm("thickmuskip");return ic(b,(se,me)=>{var ye,Se,Le;if(!se)return;const Ze=se.type,mt=me.isTight?(ye=_c[Ze])!=null?ye:null:(Se=ru[Ze])!=null?Se:null,It=(Le=mt==null?void 0:mt[me.type])!=null?Le:null;It===3&&Ru(me,E),It===4&&Ru(me,ee),It===5&&Ru(me,ie)}),a}function ic(a,y,b=void 0){if(!a)return b;a=[...a];for(const E of a)E.type==="lift"?b=ic(E.children,y,b):E.type==="ignore"?ic(E.children,y):(y(b,E),ic(E.children,y),b=E);return b}var bc=class wm extends $n{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new $n({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new wm(we(ke({},y),{tooltip:Bu(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 we(ke({},super.toJson()),{tooltip:b})}render(y){const b=$n.createBox(new Co,this.body);if(!b)return null;const E=new Co({parent:y,mathstyle:"displaystyle"},{fontSize:Mi}),ee=dd(Dc(new Hr(this.tooltip.render(E),{classes:"ML__tooltip-content"}),E)),ie=new Hr([ee,b],{classes:"ML__tooltip-container"});return this.caret&&(ie.caret=this.caret),this.bind(y,ie)}},du=class Cm extends $n{constructor(y,b){super(we(ke({},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 Cm(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 Hr(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 Hr(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=Or(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)),gi(E)}};function Bu(a){if(ve(a))return a.map(E=>Bu(E));if(typeof a=="string")return $n.fromJson(a);a=ke({},a);for(const E of Nc)a[E]&&(a[E]=Bu(a[E]));a.args&&(a.args=df(a.args)),a.array&&(a.array=Bu(a.array));const y=a.type;let b;y==="accent"&&(b=z.fromJson(a)),y==="array"&&(b=ja.fromJson(a)),y==="box"&&(b=pl.fromJson(a)),y==="chem"&&(b=Ut.fromJson(a)),y==="composition"&&(b=Mc.fromJson(a)),y==="delim"&&(b=Fn.fromJson(a)),y==="enclose"&&(b=Yr.fromJson(a)),y==="error"&&(b=cu.fromJson(a)),y==="extensible-symbol"&&(b=rl.fromJson(a)),y==="genfrac"&&(b=Ya.fromJson(a)),y==="group"&&(b=Nl.fromJson(a)),y==="latex"&&(b=ga.fromJson(a)),y==="latexgroup"&&(b=vo.fromJson(a)),y==="leftright"&&(b=Vo.fromJson(a)),y==="macro"&&(b=le.fromJson(a)),y==="macro-argument"&&(b=de.fromJson(a)),y==="operator"&&(b=du.fromJson(a)),y==="overlap"&&(b=go.fromJson(a)),y==="overunder"&&(b=ts.fromJson(a)),y==="placeholder"&&(b=ya.fromJson(a)),y==="prompt"&&(b=xe.fromJson(a)),y==="phantom"&&(b=Bl.fromJson(a)),y==="sizeddelim"&&(b=zr.fromJson(a)),y==="spacing"&&(b=Du.fromJson(a)),y==="subsup"&&(b=Ie.fromJson(a)),y==="surd"&&(b=Xu.fromJson(a)),y==="text"&&(b=tc.fromJson(a)),y==="tooltip"&&(b=bc.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=$n.fromJson(a));for(const E of Nc)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 df(a){if(a&&Array.isArray(a))return a.map(y=>y==="<null>"?null:typeof y=="object"&&"group"in y?{group:y.group.map(b=>Bu(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>Bu(b)):y)}var ac={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"]},id={"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]$/},Kd=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,wd=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,ff=[/^[a-z]$/,/^[A-Z]$/,Kd,wd],hf={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},ch=class extends Ss{constructor(){super("math")}createAtom(a,y,b){var E,ee,ie,se;if(y===null)return new $n({type:"mord",mode:"math",command:a,value:a,style:b});const me=window.MathfieldElement.isFunction((E=y.command)!=null?E:a);if(y.definitionType==="symbol"){const Se=new $n({type:(ee=y.type)!=null?ee:"mord",mode:"math",command:(ie=y.command)!=null?ie:a,value:String.fromCodePoint(y.codepoint),style:b});return me&&(Se.isFunction=!0),a.startsWith("\\")&&(Se.verbatimLatex=a),Se}const ye=new $n({type:"mord",mode:"math",command:(se=y.command)!=null?se:a,value:a,style:b});return me&&(ye.isFunction=!0),a.startsWith("\\")&&(ye.verbatimLatex=a),ye}serialize(a,y){const b=Zh(a,we(ke({},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&&ff.forEach((me,ye)=>{var Se;me.test(a.value)&&hf[(Se=y.letterShapeStyle)!=null?Se:"tex"][ye]==="it"&&(E="italic")}),E==="up"&&(E=void 0);const ee=E?b+"-"+E:b;console.assert(ac[ee]!==void 0);const[ie,se]=ac[ee];return id[b]&&!id[b].test(a.value)?(a.value=Jt(a.value,b,E),null):(Kd.test(a.value)&&(a.classes+=" lcGreek"),se&&(a.classes+=" "+se),ie)}};function Zh(a,y){const{parent:b}=a[0],E=Hd(b);return es(a,"variant").map(ee=>{const ie=Hd(ee[0]);let se="";ie&&ie!==E&&(se={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(se!==void 0));const me=gi(ee.map(ye=>ye._serialize(y)));return se?so(se,me):me})}function Hd(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 ch;function Gh(a,y){return a.map(b=>b._serialize(y))}function dh(a,y){return es(a,"fontShape").map(b=>{const E=Gh(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?`{${so("\\fontshape",ee)}${gi(E)}}`:ie?so(ie,gi(E)):gi(E)})}function Wf(a,y){return es(a,"fontSeries").map(b=>{const E=dh(b,y),{fontSeries:ee}=b[0].style;let ie="";return ee==="b"&&(ie="\\textbf"),ee==="l"&&(ie="\\textlf"),ee==="m"&&(ie="\\textmd"),ee&&!ie?`{${so("\\fontseries",ee)}${gi(E)}}`:ie?so(ie,gi(E)):gi(E)})}function pf(a,y){return es(a,"fontSize").map(b=>{var E,ee;const ie=Wf(b,y),se=(ee=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(E=b[0].style.fontSize)!=null?E:""])!=null?ee:"";return se?`${se} ${gi(ie)}`:gi(ie)})}function fh(a,y,b){return es(a,"fontFamily").map(E=>{var ee,ie;const se=pf(E,y),me=(ie={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ee=E[0].style.fontFamily)!=null?ee:""])!=null?ie:"";return me?`\\${me}{${gi(se)}}`:E[0].style.fontFamily?`{\\fontfamily{${E[0].style.fontFamily}} ${gi(se)}}`:b?`\\text{${gi(se)}}`:gi(se)})}var mf={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Vf=class extends Ss{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new tc(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return fh(a,we(ke({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,E,ee,ie,se;const{fontFamily:me}=y;if(mf[me]?a.classes+=" "+mf[me]:me&&a.setStyle("font-family",me),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 ye=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);ye&&(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=ye[1])!=null?E:""])!=null?ee:"",a.classes+=" ",a.classes+=(se={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=ye[2])!=null?ie:""])!=null?se:"")}return"Main-Regular"}};new Vf;var Yh=class extends Ss{constructor(){super("latex")}createAtom(a){return new ga(a)}serialize(a,y){return a.filter(b=>b instanceof ga&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new Yh;var zd={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:["","=","","="]}},Wd={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:["","=","","="]}},Tp={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:["\\","|","",""]}},Np={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:[")",")",")",")"]}},Mm={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:["=","=","=","="]}},Dm={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:["<",">","",""]}},Bm={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"]}},Lm={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:["=","=","=","="]}},Fm={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:["<",">","|",""]}},Pm={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:[".",".",".","."]}},Im={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:["<",">","",""]}},Nm={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 Op(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 vf(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 Om={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]"},Uf=[],jf;function Qh(){switch(Qe()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function oc(a){(!a.platform||a.platform===Qh())&&Uf.push(a)}function Rm(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=Om[a])!=null?b:"",E}function _m(a){if(a.code)return a;const y=Object.entries(Zf().mapping);let b=!1,E=!1,ee="";for(let ie=0;ie<4;ie++){for(const[se,me]of y)if(me[ie]===a.key){ee=se,ie===3?(b=!0,E=!0):ie===2?b=!0:ie===1&&(E=!0);break}if(ee)break}return new KeyboardEvent(a.type,we(ke({},a),{altKey:b,shiftKey:E,code:ee}))}function Km(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 Uf)((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);Uf.sort((ee,ie)=>ie.score-ee.score)}function Hm(a){jf=Uf.find(y=>a.startsWith(y.locale))}function Zf(){return jf!=null?jf:Uf[0]}function zm(){switch(Qh()){case"apple":return Wd;case"windows":return Tp;case"linux":return Np}return Wd}switch(Qh()){case"apple":oc(Wd),oc(Mm),oc(Im),oc(Lm);break;case"windows":oc(Tp),oc(Dm),oc(Tm),oc(Fm);break;case"linux":oc(Np),oc(Bm),oc(Nm),oc(Pm);break}oc(zd);function Jh(a){var y;const b=/macos|ios/.test(Qe()),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 hh(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 Vd(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 Wm(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 Vm=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 ph(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:Vm.has(a.code)}function mh(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var Kc=class ld{static get scrim(){return ld._scrim||(ld._scrim=new ld),ld._scrim}static open(y){ld.scrim.open(y)}static close(){ld.scrim.close()}static get state(){return ld.scrim.state}static get element(){return ld.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=mh();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:"",mh()!==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 Um(a,y,b){let E=null,ee=null,ie=!1,se=!1,me=!1;const ye=new AbortController,Se=ye.signal;return a.addEventListener("keydown",Le=>{if(ie||Le.key==="Process"||Le.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(Le.code)){E=null;return}E=Le,ee=null,b.onKeystroke(Le)?a.textContent="":E=null},{capture:!0,signal:Se}),a.addEventListener("keypress",Le=>{ie||(E&&ee&&b.onKeystroke(E),ee=Le)},{capture:!0,signal:Se}),a.addEventListener("compositionstart",Le=>{a.textContent="",ie=!0,b.onCompositionStart(Le.data)},{capture:!0,signal:Se}),a.addEventListener("compositionupdate",Le=>{ie&&b.onCompositionUpdate(Le.data)},{capture:!0,signal:Se}),a.addEventListener("compositionend",Le=>{a.textContent="",ie&&(ie=!1,b.onCompositionEnd(Le.data))},{capture:!0,signal:Se}),a.addEventListener("beforeinput",Le=>Le.stopImmediatePropagation(),{signal:Se}),a.addEventListener("input",Le=>{var Ze;if(!ie&&(a.textContent="",Le.inputType!=="insertCompositionText")){if(Le.inputType==="insertFromPaste"){Le.preventDefault(),Le.stopPropagation();return}b.onInput((Ze=Le.data)!=null?Ze:""),Le.preventDefault(),Le.stopPropagation()}},{signal:Se}),a.addEventListener("paste",Le=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(Le)||Le.preventDefault(),Le.stopImmediatePropagation()},{signal:Se}),a.addEventListener("cut",Le=>b.onCut(Le),{capture:!0,signal:Se}),a.addEventListener("copy",Le=>b.onCopy(Le),{capture:!0,signal:Se}),a.addEventListener("blur",Le=>{var Ze,mt;if(((mt=(Ze=Le.relatedTarget)==null?void 0:Ze._mathfield)==null?void 0:mt.element)===y){a.focus({preventScroll:!0}),Le.preventDefault(),Le.stopPropagation();return}const It=Kc.state;if(It==="open"||It==="opening"){Le.preventDefault(),Le.stopPropagation();return}if(Le.relatedTarget===Le.target.getRootNode().host){Le.preventDefault(),Le.stopPropagation();return}me||se||(me=!0,E=null,ee=null,b.onBlur(),me=!1)},{capture:!0,signal:Se}),a.addEventListener("focus",Le=>{me||se||(se=!0,b.onFocus(),se=!1)},{capture:!0,signal:Se}),{dispose:()=>ye.abort(),cancelComposition:()=>{ie&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!se&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>mh()===a,setAriaLabel:Le=>a.setAttribute("aria-label",Le),setValue:Le=>{var Ze;a.textContent=Le,a.style.left="-1000px",(Ze=window.getSelection())==null||Ze.selectAllChildren(a)},moveTo:(Le,Ze)=>{a.style.top=`${Ze}px`,a.style.left=`${Le}px`}}}function gf(a){var y;if(!a||!ph(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 Rp(a){a=_m(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 jm(a){if(bt()){const y=Qe(),b=a.startsWith("!"),E=a.endsWith(y);if(b&&!E||!b&&E)return!0}return a==="!other"?!1:a==="other"}function Zm(a,y,b){if(a.length===0)return"";const E=vf(Op(Rp(b))),ee=vf({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(Qe()),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 _p(a){let y=a;return ve(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function Gm(a,y){let b=[];if(typeof y=="string"){const ie=yd[y];ve(ie)?b=ie.slice():ie&&b.push(ie)}const E=_p(y),ee=new RegExp("^"+E.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const ie of a)ee.test(_p(ie.command))&&b.push(ie.key);return b.map(Jh)}function Ym(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=Op(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=Qe()==="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&&!jm(E))return;if(/^\[.+\]$/.test(b.key))return we(ke({},a),{key:vf(b)});const ee=Rm(b.key,y);if(!ee)return we(ke({},a),{key:vf(b)});if(ee.shift&&b.shift||ee.alt&&b.alt)throw new Error(`The keybinding ${a.key} (${Xh(a.command)}) is conflicting with the key combination ${vf(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,we(ke({},a),{key:vf(ee)})}function Xh(a){if(Array.isArray(a)){const y=[...a];return y.shift()+"("+y.map(b=>typeof b=="string"?`"${b}"`:b.toString()).join(", ")+")"}return a}function Qm(a,y){const b=[],E=[];for(const ee of a)try{const ie=Ym(ee,y);if(!ie)continue;const se=E.find(me=>me.key===ie.key&&me.ifMode===ie.ifMode);if(se)throw new Error(`Ambiguous key binding ${ee.key} (${Xh(ee.command)}) matches ${se.key} (${Xh(se.command)}) with the ${y.displayName} keyboard layout`);E.push(ie)}catch(ie){ie instanceof Error&&b.push(ie.message)}return[E,b]}var Jm=class extends Ha{constructor(){super("latex")}createAtom(a){return new ga(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"}),yl(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(Tl(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 ye of y)fe.test(ye)&&ie.push(new ga(ye));let se=a.at(a.position);if(se instanceof vo&&(se=se.lastChild),!(se.parent instanceof vo)){const ye=new vo("");se.parent.addChildAfter(ye,se),se=ye.firstChild}const me=se.parent.addChildrenAfter(ie,se);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(me)):me&&(a.position=a.offsetOf(me))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function Xm(a){return a.atoms.find(y=>y.type==="latexgroup")}function Gf(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 Kp(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 ye=a.at(E);ee=ye instanceof ga&&ye.isSuggestion,ee||E++}if(!ee)return[void 0,void 0];let se=E,me=!1;for(;se<=ie&&!me;){const ye=a.at(se);me=!(ye instanceof ga&&ye.isSuggestion),me||se++}return[E-1,se-1]}new Jm;function vh(a){const y=Gf(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 Yf(a,y){var b;const{model:E}=a;vh(a);for(const Le of Gf(E))Le.isError=!1;if(!E.selectionIsCollapsed||a.options.popoverPolicy==="off"){bf(a);return}const ee=[];let ie=E.at(E.position);for(;ie&&ie instanceof ga&&/^[a-zA-Z\*]$/.test(ie.value);)ie=ie.leftSibling;if(ie&&ie instanceof ga&&ie.value==="\\")for(ee.push(ie),ie=ie.rightSibling;ie&&ie instanceof ga&&/^[a-zA-Z\*]$/.test(ie.value);)ee.push(ie),ie=ie.rightSibling;const se=ee.map(Le=>Le.value).join(""),me=Dn(a,se);if(me.length===0){if(/^\\[a-zA-Z\*]+$/.test(se))for(const Le of ee)Le.isError=!0;bf(a);return}const ye=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=ye<0?me.length-1:ye%me.length;const Se=me[a.suggestionIndex];if(Se!==se){const Le=ee[ee.length-1];Le.parent.addChildrenAfter([...Se.slice(se.length-Se.length)].map(Ze=>new ga(Ze,{isSuggestion:!0})),Le),Ud(a,{interactive:!0})}$m(a,me)}function Hp(a){const[y,b]=Kp(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 yf(a,y="accept",b){var E,ee;bf(a);const ie=Xm(a.model);if(!ie)return!1;if(y==="accept-suggestion"||y==="accept-all"){const Se=Gf(a.model).filter(Le=>Le.isSuggestion);if(Se.length!==0){for(const Le of Se)Le.isSuggestion=!1;a.model.position=a.model.offsetOf(Se[Se.length-1])}if(y==="accept-suggestion")return Se.length!==0}const me=Gf(a.model).filter(Se=>!Se.isSuggestion).map(Se=>Se.value).join(""),ye=ie.leftSibling;return ie.parent.removeChild(ie),a.model.position=a.model.offsetOf(ye),a.switchMode((E=b==null?void 0:b.mode)!=null?E:"math"),y==="reject"||(Ha.insert(a.model,me,{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 gh(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 qh(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 qm(a,y){const b=new Co({from:a.context}),E=new $n({mode:"math",type:"root",body:je(y,{context:b})}),ee=dd(Dc(new Hr(E.render(b),{classes:"ML__base"}),b));return fd(ee,{classes:"ML__latex"}).toMarkup()}function $m(a,y){var b;if(y.length===0){bf(a);return}let E="";for(const[ie,se]of y.entries()){const me=se,ye=qm(a,se),Se=Gm(a.keybindings,me).join("<br>");E+=`<li role="button" data-command="${me}" ${ie===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${me}</span><span class="ML__popover__command">${ye}</span>`,Se&&(E+=`<span class="ML__popover__keybinding">${Se}</span>`),E+="</li>"}const ee=ev(a,`<ul>${E}</ul>`);$h()&&((b=ee.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var ie;ee&&!$h()&&(ee.classList.add("is-visible"),yh(a),(ie=ee.querySelector(".ML__popover__current"))==null||ie.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function $h(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function yh(a,y){var b;if(!a.element||a.element.mathfield!==a||!$h())return;if(((b=a.model.at(a.model.position))==null?void 0:b.type)!=="latex"){bf(a);return}if(y!=null&&y.deferred){setTimeout(()=>yh(a),32);return}const E=Ac(a.field);if(!E)return;const ee=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,ie=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,se=window.innerWidth-document.documentElement.clientWidth,me=window.innerHeight-document.documentElement.clientHeight,ye=window.mathVirtualKeyboard.boundingRect.height,Se=document.getElementById("mathlive-suggestion-popover");E.x+Se.offsetWidth/2>ie-se?Se.style.left=`${ie-Se.offsetWidth-se}px`:E.x-Se.offsetWidth/2<0?Se.style.left="0":Se.style.left=`${E.x-Se.offsetWidth/2}px`;const Le=E.y-E.height;ee-me-ye-E.y<Le?(Se.classList.add("ML__popover--reverse-direction"),Se.classList.remove("top-tip"),Se.classList.add("bottom-tip"),Se.style.top=`${E.y-E.height-Se.offsetHeight-15}px`):(Se.classList.remove("ML__popover--reverse-direction"),Se.classList.add("top-tip"),Se.classList.remove("bottom-tip"),Se.style.top=`${E.y+15}px`)}function bf(a){a.suggestionIndex=0;const y=document.getElementById("mathlive-suggestion-popover");y&&(y.classList.remove("is-visible"),y.innerHTML="")}function ev(a,y){let b=document.getElementById("mathlive-suggestion-popover");return b||(b=gh("mathlive-suggestion-popover"),uu("suggestion-popover"),uu("core"),b.addEventListener("pointerdown",E=>E.preventDefault()),b.addEventListener("click",E=>{let ee=E.target;for(;ee&&!ee.dataset.command;)ee=ee.parentElement;ee&&(yf(a,"reject"),Ha.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 tv(){document.getElementById("mathlive-suggestion-popover")&&(qh("mathlive-suggestion-popover"),x("suggestion-popover"),x("core"))}function nv(){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 bh=null,zp,Wp,ep=((Wp=(zp=globalThis==null?void 0:globalThis.document)==null?void 0:zp.currentScript)==null?void 0:Wp.src)||nv();function Vp(a){return kd(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(bh===null)try{const y=yield fetch(ep,{method:"HEAD"});y.status===200&&(bh=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${ep}")`)}return new URL(a,bh!=null?bh:ep).href})}function rv(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var sc="not-loaded";function iv(){return kd(this,null,function*(){return sc="not-loaded",xh()})}function xh(){return kd(this,null,function*(){var a;if(sc!=="not-loaded")return;if(sc="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){sc="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(se=>se.family);if(b.every(se=>E.includes(se))){sc="ready";return}if(!window.MathfieldElement.fontsDirectory){sc="not-loaded";return}const ee=yield Vp(window.MathfieldElement.fontsDirectory);if(!ee){document.body.classList.add("ML__fonts-did-not-load"),sc="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(se=>rv(se[0].replace(/-[a-zA-Z]+$/,""),`${ee}/${se[0]}`,se[1]));try{(yield Promise.all(ie.map(me=>{try{return me.load()}catch(ye){}}))).forEach(me=>document.fonts.add(me)),sc="ready";return}catch(se){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ee}"`,{cause:se}),document.body.classList.add("ML__fonts-did-not-load")}sc="error"}})}function av(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 yl(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{Nu(a)&&a.dirty&&(a.atomBoundsCache=new Map,Ud(a,y),a.atomBoundsCache=void 0)})))}function ov(a,y){var b;y=y!=null?y:{};const E=new Co({from:we(ke({},a.context),{atomIdsSettings:{seed:y.forHighlighting?av($n.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 fd(Dc(ee,E),{classes:a.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function Up(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 ov(a,y).toMarkup()}function Ud(a,y){if(!Nu(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 se=Up(a,y);const me=a.element.querySelector("[part=menu-toggle]");if(me&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?me.style.display="none":me.style.display=""),a.model.atoms.length<=1){const ye=a.options.contentPlaceholder;ye&&(se+=`<span part=placeholder class="ML__content-placeholder">${ql(ye)}</span>`)}E.innerHTML=window.MathfieldElement.createHTML(se),wh(a,y.interactive),a.dirty=!1}function wh(a,y){const b=a.field;if(!b)return;for(const me of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))me.remove();!(y!=null&&y)&&sc!=="error"&&sc!=="ready"&&setTimeout(()=>{sc==="ready"?wh(a):setTimeout(()=>wh(a),128)},32);const E=a.model,ee=b.offsetWidth,ie=b.getBoundingClientRect().width;let se=Math.floor(ie)/ee;if(se=isNaN(se)?1:se,E.selectionIsCollapsed){yh(a,{deferred:!0});let me=E.at(E.position);for(;me&&me.type!=="prompt"&&!(me.containsCaret&&me.displayContainsHighlight);)me=me.parent;if(me!=null&&me.containsCaret&&me.displayContainsHighlight){const ye=Td(a,Rc(a,me),se);if(ye){ye.left/=se,ye.right/=se,ye.top/=se,ye.bottom/=se;const Se=document.createElement("div");Se.classList.add("ML__contains-highlight"),Se.style.position="absolute",Se.style.left=`${ye.left+1}px`,Se.style.top=`${Math.ceil(ye.top)}px`,Se.style.width=`${Math.ceil(ye.right-ye.left)}px`,Se.style.height=`${Math.ceil(ye.bottom-ye.top)}px`,b.insertBefore(Se,b.childNodes[0])}}return}for(const me of sv(Od(a,{excludeAtomsWithBackground:!0}))){me.left/=se,me.right/=se,me.top/=se,me.bottom/=se;const ye=document.createElement("div");ye.classList.add("ML__selection"),ye.style.position="absolute",ye.style.left=`${me.left}px`,ye.style.top=`${me.top}px`,ye.style.width=`${Math.ceil(me.right-me.left)}px`,ye.style.height=`${Math.ceil(me.bottom-me.top-1)}px`,b.insertBefore(ye,b.childNodes[0])}}function sv(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 jp=3,Hc;function qu(a,y){y=ke({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Hc||(Hc={});for(const b of Object.keys(a))console.assert(!Hc[b],"Selector already defined: ",b),Hc[b]=we(ke({},y),{fn:a[b]})}function tp(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return tp(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),Hc[y]}function xf(a){var y;return(y=tp(a))==null?void 0:y.target}function lv(a,y){var b;if(!y)return!1;let E,ee=[],ie=!1,se=!1;ve(y)?(E=y[0],ee=y.slice(1)):E=y,E=E.replace(/-\w/g,Se=>Se[1].toUpperCase());const me=Hc[E],ye=me==null?void 0:me.target;if(ye==="model"){if(!a.isSelectionEditable&&(me!=null&&me.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(E)&&(E!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(E)),/^complete/.test(E)||vh(a),Hc[E].fn(a.model,...ee),Yf(a),se=!0,ie=!0}else if(ye==="virtual-keyboard")se=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,ie=!0;else if(Hc[E]){if(!a.isSelectionEditable&&(me!=null&&me.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(E)&&a.flushInlineShortcutBuffer(),se=Hc[E].fn(a,...ee),ie=!0}else throw new Error(`Unknown command "${E}"`);return ye!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||me!=null&&me.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),me!=null&&me.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),se&&yl(a),ie}function uv(a,y){var b;if(!a)return!1;a.focus(),H0.keypressVibration&&dt()&&navigator.vibrate(jp);const E=tp(y);window.MathfieldElement.playSound((b=E==null?void 0:E.audioFeedback)!=null?b:"keypress");const ee=a.executeCommand(y);return a.scrollIntoView(),ee}qu({performWithFeedback:(a,y)=>uv(a,y)});function cv(a){return Yf(a,{atIndex:a.suggestionIndex+1}),!1}function dv(a){return Yf(a,{atIndex:a.suggestionIndex-1}),!1}qu({complete:yf},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),qu({nextSuggestion:cv,previousSuggestion:dv},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Ch="mathlive#virtual-keyboard-message";function np(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Ch}var fv=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(np(y)){if(!Rd(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;xf(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(ke({type:Ch,action:y},b),this.targetOrigin)}},Zp={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]"]]}},Eh={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"}]},Qf;function Gp(a,y){var b,E,ee;const ie=Cd.singleton;if(!ie)return;const se=wf(a),me=(E=(b=ie.getKeycap(se==null?void 0:se.id))==null?void 0:b.variants)!=null?E:"";if(typeof me=="string"&&!Yp(me)||Array.isArray(me)&&me.length===0){y==null||y();return}const ye={};let Se="";for(const On of pv(me)){const Vr=Jp(On),Pn=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);ye[Pn]=Vr;const[fr,Jr]=Sh(Vr);Se+=`<div id=${Pn} class="item ${Jr}">${fr}</div>`}const Le=document.createElement("div");Le.setAttribute("aria-hidden","true"),Le.className="MLK__variant-panel",Le.style.height="auto";const Ze=Object.keys(ye).length;let mt=5;Ze===1?mt=1:Ze===2||Ze===4?mt=2:Ze===3||Ze===5||Ze===6?mt=3:Ze>=7&&Ze<14&&(mt=4),Le.style.width=`calc(var(--variant-keycap-length) * ${mt} + 12px)`,Le.innerHTML=H0.createHTML(Se),Kc.open({root:(ee=ie==null?void 0:ie.container)==null?void 0:ee.querySelector(".ML__keyboard"),child:Le}),Qf=new AbortController;const{signal:It}=Qf,Wt=a==null?void 0:a.getBoundingClientRect();if(Wt){Wt.top-Le.clientHeight<0&&(Le.style.width="auto",Ze<=6?Le.style.height="56px":Ze<=12?Le.style.height="108px":Ze<=18?Le.style.height="205px":Le.classList.add("compact"));const On=Math.max(0,Math.min(window.innerWidth-Le.offsetWidth,(Wt.left+Wt.right-Le.offsetWidth)/2)),Vr=Wt.top-Le.clientHeight+5;Le.style.transform=`translate(${On}px, ${Vr}px)`,Le.classList.add("is-visible"),requestAnimationFrame(()=>{Le.addEventListener("pointerup",Pn=>{const fr=wf(Pn.target);!(fr!=null&&fr.id)||!ye[fr.id]||(rp(ye[fr.id]),Jf(),y==null||y(),Pn.preventDefault())},{capture:!0,passive:!1,signal:It}),Le.addEventListener("pointerenter",Pn=>{const fr=wf(Pn.target);!(fr!=null&&fr.id)||!ye[fr.id]||fr.classList.add("is-active")},{capture:!0,signal:It}),Le.addEventListener("pointerleave",Pn=>{const fr=wf(Pn.target);!(fr!=null&&fr.id)||!ye[fr.id]||fr.classList.remove("is-active")},{capture:!0,signal:It}),window.addEventListener("pointercancel",()=>{Jf(),y==null||y()},{signal:It}),window.addEventListener("pointerup",()=>{Jf(),y==null||y()},{signal:It})})}}function Jf(){Qf==null||Qf.abort(),Qf=null,Kc.state==="open"&&Kc.close()}function hv(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(Xt))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+Xt[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(zt))y.push({class:"swatch-button",label:'<span style="background:'+zt[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function Yp(a){return Eh[a]!==void 0}function pv(a){var y;return typeof a!="string"?a:(Eh[a]||(Eh[a]=(y=hv(a))!=null?y:[]),Eh[a])}function mv(a){return typeof a=="string"?a:Object.entries(a).map(([y,b])=>`${y}:${b} !important`).join(";")}function vv(a){return Object.keys(a).map(y=>`${y} {${mv(a[y])}}`).join("")}function Xf(a){if(!a)return"";const y=new Co,b=new $n({mode:"math",type:"root",body:je(a,{context:y,args:ee=>ee==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),E=dd(Dc(new Hr(b.render(y),{classes:"ML__base"}),y));return fd(E,{classes:"ML__latex"}).toMarkup()}function qf(a){var y;if(Array.isArray(a))return a.map(E=>qf(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=>Jp(ee)))),(y=b.id)!=null||(b.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[b]}function gv(){var a,y;let E=window.mathVirtualKeyboard.alphabeticLayout;if(E==="auto"){const me=Zf();me&&(E=me.virtualLayout),(!E||E==="auto")&&(E=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[Je.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,se=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 me of ie){const ye=[];for(const Se of me)/[a-z]/.test(Se)?ye.push({label:Se,class:"hide-shift",shift:{label:Se.toUpperCase()},variants:Yp(Se)?Se:void 0}):Se==="~"?E!=="dvorak"?ye.push("[backspace]"):ye.push({label:"[backspace]",width:1}):Se==="^"?ye.push("[shift]"):Se===" "&&ye.push("[separator-5]");se.push(ye)}return se.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:qf({rows:se})}}function Qp(a){if(a==="alphabetic")return gv();if(typeof a=="string")return console.assert(Zp[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),Qp(Zp[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,se=tt(ee,["rows"]);y=we(ke({},se),{layers:qf({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ee=a,{markup:ie}=ee,se=tt(ee,["markup"]);y=we(ke({},se),{layers:qf(a.markup)})}else y=ke({},a),"layers"in a?y.layers=qf(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()){Cf(ie)&&(b=!0);const se=ie.command;typeof se=="string"&&["undo","redo","cut","copy","paste"].includes(se)&&(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 yv(a,y){var b,E;let ee='<div class="left">';if(a.normalizedLayouts.length>1)for(const[ie,se]of a.normalizedLayouts.entries()){const me=se,ye=[ie===y?"selected":"layer-switch"];me.tooltip&&ye.push("MLK__tooltip"),me.labelClass&&ye.push(...me.labelClass.split(" ")),ee+=`<div class="${ye.join(" ")}"`,me.tooltip&&(ee+=" data-tooltip='"+((b=ot(me.tooltip))!=null?b:me.tooltip)+"' "),ie!==y&&(ee+=`data-layer="${me.layers[0].id}"`),ee+=`>${(E=me.label)!=null?E:"untitled"}</div>`}return ee+="</div>",ee}function bv(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='${ot("tooltip.undo")}'>
|
|
|
<svg><use xlink:href='#svg-undo' /></svg>
|
|
|
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
|
|
|
data-command='"redo"'
|
|
|
data-tooltip='${ot("tooltip.redo")}'>
|
|
|
<svg><use xlink:href='#svg-redo' /></svg>
|
|
|
</div>`,cutToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"cutToClipboard"'
|
|
|
data-tooltip='${ot("tooltip.cut to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-cut' /></svg>
|
|
|
</div>
|
|
|
`,copyToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"copyToClipboard"'
|
|
|
data-tooltip='${ot("tooltip.copy to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-copy' /></svg>
|
|
|
</div>
|
|
|
`,pasteFromClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"pasteFromClipboard"'
|
|
|
data-tooltip='${ot("tooltip.paste from clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-paste' /></svg>
|
|
|
</div>
|
|
|
`};return b+=ee.map(se=>ie[se]).join(""),b}function xv(a){for(const y of a)wv(y)}function wv(a){const y=Cd.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]=Sh(b);a.innerHTML=window.MathfieldElement.createHTML(E)}}function Cv(){uu("virtual-keyboard"),uu("core"),xh()}function Ev(){x("core"),x("virtual-keyboard")}var Sv=`<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 Av(a){a.resetKeycapRegistry(),Cv();const y=document.createElement("div");y.className="ML__keyboard";const b=document.createElement("div");b.className="MLK__plate",b.innerHTML=window.MathfieldElement.createHTML(Sv+a.normalizedLayouts.map((se,me)=>kv(a,se,me)).join(""));const E=document.createElement("div");E.className="MLK__backdrop",E.appendChild(b),y.appendChild(E),y.addEventListener("pointerdown",Dv,{passive:!1});const ee=y.querySelectorAll(".ML__edit-toolbar");if(ee)for(const se of ee)se.addEventListener("click",me=>{var ye,Se;let Le=me.target,Ze="";for(;Le&&!Ze;)Ze=(ye=Le==null?void 0:Le.getAttribute("data-command"))!=null?ye:"",Le=(Se=Le==null?void 0:Le.parentElement)!=null?Se:null;Ze&&a.executeCommand(JSON.parse(Ze))});xv(y.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const ie=y.querySelectorAll(".MLK__layer");console.assert(ie.length>0,"No virtual keyboards available");for(const se of ie)se.addEventListener("pointerdown",me=>me.preventDefault());return a.currentLayer=a.latentLayer,y}function kv(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(yv(a,b)),y.displayEditToolbar&&E.push('<div class="ML__edit-toolbar right"></div>'),E.push("</div>")),E.push(Mv(a,ee)),E.push("</div>");return E.join("")}function Mv(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>${vv(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),[se,me]=Sh(ee);/(^|\s)separator/.test(me)?b+=`<div class="${me}"`:b+=`<div tabindex="-1" id="${ie}" class="${me}"`,ee.tooltip&&(b+=` data-tooltip="${ee.tooltip}"`),b+=`>${se}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function Sh(a,y={shifted:!1}){var b,E,ee,ie,se,me,ye;let Se="",Le=(b=a.class)!=null?b:"";if(y.shifted&&Cf(a)&&(Le+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?Se=Xf(a.shift):typeof a.shift=="object"&&(Se=a.shift.label?a.shift.label:(E=Xf(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?E:""),typeof a.shift=="object"&&(Le=(ie=(ee=a.shift.class)!=null?ee:a.class)!=null?ie:"");else{if(Se=a.label?a.label:(se=Xf(a.latex||a.insert||"")||a.key)!=null?se:"",a.shift){let Ze;typeof a.shift=="string"?Ze=Xf(a.shift):a.shift.label?Ze=a.shift.label:Ze=(me=Xf(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?me:"",Se+=`<span class="MLK__shift">${Ze}</span>`}a.aside&&(Se+=`<aside>${a.aside}</aside>`)}return a.layer&&!/layer-switch/.test(Le)&&(Le+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(Le)||(Le+=" MLK__keycap"),!/\bw[0-9]+\b/.test(Le)&&a.width&&(Le+=(ye={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?ye:""),[Se,Le||"MLK__keycap"]}var jd={"[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 Jp(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!jd[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&jd[a.label]&&(b=we(ke(ke({},jd[a.label]),a),{label:jd[a.label].label})),"key"in a&&a.key&&jd[a.key]&&(b=we(ke(ke({},jd[a.key]),a),{key:jd[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=ke(ke({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=ke(ke({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=ke(ke({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=ke(ke({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var $f;function Dv(a){var y;if(a.button!==0)return;const b=Cd.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=wf(a.target);if(!(ee!=null&&ee.id))return;const ie=b.getKeycap(ee.id);if(!ie)return;console.assert(a.type==="pointerdown");const se=new AbortController,me=se.signal;ee.classList.add("is-pressed"),ee.addEventListener("pointerenter",Ah(se),{capture:!0,signal:me}),ee.addEventListener("pointerleave",Ah(se),{capture:!0,signal:me}),ee.addEventListener("pointercancel",Ah(se),{signal:me}),ee.addEventListener("pointerup",Ah(se),{signal:me}),Cf(ie)&&(ee.classList.add("is-active"),b.shiftPressCount++),ie.variants&&($f&&clearTimeout($f),$f=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),Gp(ee,()=>{se.abort(),ee==null||ee.classList.remove("is-active")}))},300)),a.preventDefault()}function Ah(a){return y=>{const b=wf(y.target);if(!(b!=null&&b.id))return;const E=Cd.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"),Cf(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"),Cf(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted));return}if(y.type==="pointerup"){$f&&clearTimeout($f),Cf(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"}]):rp(ee.shift):rp(ee),E.shiftPressCount===1&&!y.shiftKey&&(E.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function rp(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=Cd.singleton)==null||y.executeCommand(b)}function Bv(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 wf(a){if(!a)return;let y=a;for(;y&&!Bv(y);)y=y.parentElement;return y!=null?y:void 0}function Cf(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var Cd=class Sm{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 se=Xp();se&&!se.readOnly&&se.mathVirtualKeyboardPolicy==="auto"&&$e()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ee=>{ee.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{Xp()||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=>Qp(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 Sm}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,se]=Sh(ee,{shifted:this.isShifted});E.innerHTML=window.MathfieldElement.createHTML(ie),E.className=se}}}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 se=ee.offsetHeight-1;E.style.paddingBottom=ie?`calc(${ie} + ${se}px)`:`${se}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}),Jf(),Ev(),(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=Av(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",b=>{b.shiftKey||((b.ctrlKey||b.button===2)&&Gp(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(np(y)){if(!Rd(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=xf(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:ke({type:Ch,action:y},b)}));return}if(E)E.postMessage(ke({type:Ch,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=bv(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=xf(y);return ve(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ee=xf(y)),E=y.slice(1)):b=y,b=b.replace(/-\w/g,ie=>ie[1].toUpperCase()),ee==="virtual-keyboard"?Hc[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 Xp(){var a,y;let b=mh(),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(bt()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=Cd.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>fv.singleton,configurable:!0});function kh(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const E=a.scriptDepth;if(ve(E))y.scriptDepth=[E[0],E[1]];else if(typeof E=="number")y.scriptDepth=[E,E];else if(typeof E=="string"){const[ie,se]=E.split(",").map(me=>parseInt(me.trim()));y.scriptDepth=[ie,se]}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=Cd.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>ie})}ee="manual"}y.mathVirtualKeyboardPolicy=ee;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?Je.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=Ir(a.macros);break;default:ve(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=ke({},a[b]):y[b]=a[b]}return y}function Zd(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:ve(a[ee])?E[ee]=[...a[ee]]:typeof a[ee]=="object"&&!(a[ee]instanceof Element)&&ee!=="computeEngine"?E[ee]=ke({},a[ee]):E[ee]=a[ee];return typeof y=="string"?E[y]:E}function Mh(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:wt,backgroundColorMap:Ye,letterShapeStyle:Je.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:Kf,inlineShortcuts:af,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:_f,value:""}}function qp(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function Ed(a,y){!a||!y||(ve(a)?a.forEach(b=>Ed(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),Ed(a.body,y),Ed(a.above,y),Ed(a.below,y),Ed(a.subscript,y),Ed(a.superscript,y)))}function ip(a,y,b,E){function ee(se,me){for(const ye of ie)if(ye.style[se]!==me)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=Mi),b.variant&&ee("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ee("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const se of ie)se.applyStyle(b);return!0}function Lv(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 Mc(y,{mode:b.mode});ee.caret=E,b.parent.addChildAfter(ee,b),a.position+=1}}function Fv(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}Ar(["math","displaymath"],xc),Ar("center",xc),ln("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 ja("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),Dr("array","{columns:colspec}",(a,y,b,E)=>new ja(a,ap(y),b,{columns:E[0],mathstyleName:"textstyle"})),Dr(["equation","equation*","subequations"],"",(a,y,b)=>new ja(a,ap(y),b,{columns:[{align:"c"}]})),Dr(["multline","multline*"],"",xc),Dr(["align","align*","aligned","eqnarray"],"",xc),Dr("split","",xc),Dr(["gather","gathered"],"",xc),Dr(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",xc),Dr(["smallmatrix","smallmatrix*"],"[columns:colspec]",xc),Dr(["cases","dcases","rcases"],"",xc);function Pv(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function ap(a,y=1){return Pv(a)?Array(y).fill([[new $n({type:"first"}),new ya]]):a.map(b=>b.length===0?[[new $n({type:"first"})]]:b.map(E=>E.length===0?[new $n({type:"first"})]:(E[0].type!=="first"&&E.unshift(new $n({type:"first"})),E)))}function xc(a,y=[[[]]],b=[],E=[]){switch(y=ap(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new ja(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new ja(a,y,b,{mathstyleName:"textstyle"});case"center":return new ja(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new ja(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new ja(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new ja(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new ja(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:Gd(E[0])});case"bmatrix":case"bmatrix*":return new ja(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Gd(E[0])});case"Bmatrix":case"Bmatrix*":return new ja(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Gd(E[0])});case"vmatrix":case"vmatrix*":return new ja(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Gd(E[0])});case"Vmatrix":case"Vmatrix*":return new ja(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Gd(E[0])});case"matrix":case"matrix*":return new ja(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Gd(E==null?void 0:E[0])});case"smallmatrix":case"smallmatrix*":return new ja(a,y,b,{mathstyleName:"scriptstyle",columns:Gd(E==null?void 0:E[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new ja(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 ja(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new ja(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ee=0;for(const me of y)ee=Math.max(ee,me.length);const ie=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let se=2;for(;se<ee;)ie.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),se+=2;return ie.push({gap:0}),new ja(a,y,b,{arraycolsep:0,columns:ie,minColumns:2})}}return new ja(a,y,b,{mathstyleName:"textstyle"})}function Gd(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 Iv(a,y){let b=a.at(a.position);for(;b&&!(b.parent instanceof ja);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof ja)){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=Lh()),ee.length===0&&(ee=Lh());let se;return y.endsWith("column")?(se=xc("split",[[ie,ee]]),a.root=se,Yd(se,0,0)?Qd(a,se,0,0):Yd(se,0,1)?Qd(a,se,0,1):a.position=a.offsetOf(E)):(se=xc("lines",[[ie],[ee]]),a.root=se,Yd(se,0,0)?Qd(a,se,0,0):Yd(se,1,0)?Qd(a,se,1,0):a.position=a.offsetOf(E)),[void 0,[0,0]]}if(b.parent instanceof Vo){const ee=b.parent;let ie=a.extractAtoms([a.position,a.offsetOf(ee.lastChild)]),se=a.extractAtoms([a.offsetOf(ee.firstChild),a.position]);se.length===0&&(se=Lh()),ie.length===0&&(ie=Lh());let me="pmatrix";const ye=ee.leftDelim,Se=ee.rightDelim;ye==="("&&(Se===")"||Se==="?")?me="pmatrix":(ye==="["||ye==="\\lbrack")&&(Se==="]"||Se==="\\rbrack"||Se==="?")?me="bmatrix":ye==="\\vert"&&Se==="\\vert"?me="vmatrix":ye==="\\Vert"&&Se==="\\Vert"?me="Vmatrix":(ye==="{"||ye==="\\lbrace")&&(Se==="."||Se==="?")&&(me="cases");const Le=xc(me,y.endsWith("column")?[[se,ie]]:[[se],[ie]]);return ee.parent.addChildBefore(Le,ee),ee.parent.removeChild(ee),Yd(Le,0,0)?Qd(a,Le,0,0):y.endsWith("column")?Yd(Le,0,1)?Qd(a,Le,0,1):a.position=a.offsetOf(b):Yd(Le,1,0)?Qd(a,Le,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof ja?[b.parent,b.parentBranch]:[void 0,[0,0]]}function Yd(a,y,b){const E=a.getCell(y,b);return!E||E.length!==2?!1:E[1].type==="placeholder"}function Tv(a,y,b,E){const ee=y.getCell(b,E);return ee?[a.offsetOf(ee[0]),a.offsetOf(ee[ee.length-1])]:-1}function Qd(a,y,b,E){const ee=Tv(a,y,b,E);typeof ee!="number"&&a.setSelection(ee)}function Dh(a,y,b,E,ee){const ie=y.getCell(b,E);ie&&a.setPositionHandlingPlaceholder(a.offsetOf(ie[ee==="start"?0:ie.length-1]))}function Bh(a,y){const[b,[E,ee]]=Iv(a,y);if(b)switch(y){case"after row":b.addRowAfter(E),Dh(a,b,E+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ee),Dh(a,b,E,ee+1,"end");break;case"before row":b.addRowBefore(E),Dh(a,b,E,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ee),Dh(a,b,E,ee,"start");break}}function $p(a){return a.contentWillChange({inputType:"insertText"})?(Bh(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Nv(a){return a.contentWillChange({inputType:"insertText"})?(Bh(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function e0(a){return a.contentWillChange({inputType:"insertText"})?(Bh(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Ov(a){return a.contentWillChange({inputType:"insertText"})?(Bh(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 n0(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof ja);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof ja){const E=b.parent,ee=b.parentBranch;let ie;switch(y){case"row":if(E.rowCount>1){E.removeRow(ee[0]);const se=E.getCell(Math.max(0,ee[0]-1),ee[1]);ie=a.offsetOf(se[se.length-1])}break;case"column":if(E.colCount>E.minColumns){E.removeColumn(ee[1]);const se=E.getCell(ee[0],Math.max(0,ee[1]-1));ie=a.offsetOf(se[se.length-1])}break}ie&&a.setPositionHandlingPlaceholder(ie)}}function Rv(a){return a.contentWillChange({inputType:"deleteContent"})?(n0(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function _v(a){return a.contentWillChange({inputType:"deleteContent"})?(n0(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}qu({addRowAfter:$p,addColumnAfter:e0,addRowBefore:Nv,addColumnBefore:Ov,removeRow:Rv,removeColumn:_v,setEnvironment:t0},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Lh(){return[new ya]}var r0=class Am{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>Am.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=y!=null?y:"",!0):!1}};r0.maximumDepth=1e3;var Kv=r0;function op(a,y,b){if(a.at(y).mode!=="text")return y;const E=b==="backward"?-1:1;let ee;if(ge.test(a.at(y).value)){let ie=y,se;do se=a.at(ie).mode==="text"&&ge.test(a.at(ie).value),ie+=E;while(a.at(ie)&&se);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 se=!0;do se=a.at(ie).mode==="text"&&!/\s/.test(a.at(ie).value),ie+=E;while(a.at(ie)&&se);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 se=!0;for(;a.at(ie)&&se;)se=a.at(ie).mode==="text"&&/\s/.test(a.at(ie).value),se&&(ee=ie),ie+=E;ee=a.at(ie)?ie-2*E:ie-E}return ee-(E>0?0:1)}function Ef(a,y,b){var E,ee,ie,se,me,ye,Se;const Le=a.position;(E=b==null?void 0:b.extend)!=null&&E||a.collapseSelection(y);let Ze=a.at(a.position);if(y==="forward"&&(Ze.type==="subsup"?(Ze=Ze.rightSibling,Ze||(Ze=a.at(a.position+1))):Ze=a.at(a.position+1)),!Ze)return a.announce("plonk"),!1;let mt=a.offsetOf(Ze);if(Ze instanceof tc)mt=op(a,mt,y);else if(Ze instanceof ga)if(Ze.isSuggestion)for(console.assert(y==="forward");Ze&&Ze instanceof ga;)Ze.isSuggestion=!1,mt=a.offsetOf(Ze),Ze=Ze.rightSibling;else if(y==="forward"){if(Ze=Ze.rightSibling,!Ze||!(Ze instanceof ga))return a.announce("plonk"),!1;for(;Ze&&Ze instanceof ga&&/[a-zA-Z\*]/.test(Ze.value);)mt=a.offsetOf(Ze),Ze=Ze.rightSibling}else{if(Ze=Ze.leftSibling,!Ze||!(Ze instanceof ga))return a.announce("plonk"),!1;for(;Ze&&Ze instanceof ga&&/[a-zA-Z\*]/.test(Ze.value);)mt=a.offsetOf(Ze),Ze=Ze.leftSibling}else if(y==="forward"&&Ze.type==="mopen"){let It=0;do Ze.type==="mopen"?It+=1:Ze.type==="mclose"&&(It-=1),Ze=Ze.rightSibling;while(!Ze.isLastSibling&&It!==0);mt=a.offsetOf(Ze.leftSibling)}else if(y==="backward"&&Ze.type==="mclose"){let It=0;do Ze.type==="mopen"?It+=1:Ze.type==="mclose"&&(It-=1),Ze=Ze.leftSibling;while(!Ze.isFirstSibling&&It!==0);mt=a.offsetOf(Ze)}else if(y==="backward")if(Ze.type==="first")for(;mt>0&&Ze.type==="first";)mt-=1,Ze=a.at(mt);else{const It=Ze.type;Ze.type==="subsup"&&(mt=a.offsetOf(a.at(mt).leftSibling)),mt-=1;let Wt=(ee=a.at(mt))==null?void 0:ee.type;for(;mt>=0&&Wt===It;)((ie=a.at(mt))==null?void 0:ie.type)==="subsup"?mt=a.offsetOf(a.at(mt).leftSibling):mt-=1,Wt=a.at(mt).type}else{const{type:It}=Ze;let Wt=(se=a.at(mt))==null?void 0:se.type;const{lastOffset:On}=a;for(;mt<=On&&(Wt===It||Wt==="subsup");){for(;((me=a.at(mt).rightSibling)==null?void 0:me.type)==="subsup";)mt=a.offsetOf(a.at(mt).rightSibling);mt+=1,Wt=(ye=a.at(mt))==null?void 0:ye.type}mt-=1}if((Se=b==null?void 0:b.extend)!=null&&Se){if(!a.setSelection(a.anchor,mt))return a.announce("plonk"),!1}else{if(mt===a.position)return a.announce("plonk"),!1;a.position=mt}return a.announce("move",Le),a.mathfield.stopCoalescingUndo(),!0}function zc(a,y,b){var E,ee;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[me,ye]=Kp(a);me!==void 0&&ye!==void 0&&a.deleteAtoms([me,ye])}if(y==="upward")return zv(a,b);if(y==="downward")return Wv(a,b);if(b.extend){let me=Fh(a,a.position,y);me<0&&(me=0),me>a.lastOffset&&(me=a.lastOffset);const ye=a.setSelection(a.anchor,me);return a.mathfield.stopCoalescingUndo(),ye}if(a.selectionIsPlaceholder){a.collapseSelection(y);const me=zc(a,y);return a.mathfield.stopCoalescingUndo(),me}let ie=a.position;const se=ie;if(a.collapseSelection(y)?(ie=a.position,i0(a,ie)||(ie=Fh(a,ie,y))):ie=Fh(a,ie,y),ie<0||ie>a.lastOffset){let me=!0;return a.silenceNotifications||(me=(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),me&&a.announce("plonk"),me}return a.setPositionHandlingPlaceholder(ie),a.mathfield.stopCoalescingUndo(),a.announce("move",se),!0}function Fh(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||i0(a,y)?y:Fh(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 Hv(a,y,b){let E=1/0,ee=0;for(;ee<y.length;ee++){const ie=bd(a.getHTMLElement(y[ee])).right,se=Math.abs(b-ie);if(se<=E)E=se;else break}return y[ee-1]}function Ph(a,y,b,E,ee){const ie=a.mathfield.hasEditablePrompts,se=ie?b.filter(Se=>Se.type==="prompt"&&!Se.captureSelection):b,me=bd(a.mathfield.getHTMLElement(y)).right,ye=a.offsetOf(Hv(a.mathfield,se,me))-(ie?1:0);if(E){const[Se,Le]=a.selection.ranges[0];let Ze;ye<(ee==="up"?Se:Le)?Ze={ranges:[[ye,Le]],direction:"backward"}:Ze={ranges:[[Se,ye]],direction:"forward"},a.setSelection(Ze)}else a.setPositionHandlingPlaceholder(ye);a.announce(`move ${ee}`)}function zv(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("backward");const ie=()=>{var ye,Se;let Le=!0;return a.silenceNotifications||(Le=(Se=(ye=a.mathfield.host)==null?void 0:ye.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Se:!0),a.announce(Le?"plonk":"line"),Le},se=a.at(a.position);let me=se;for(;me&&me.parentBranch!=="below"&&!(Array.isArray(me.parentBranch)&&me.parent instanceof ja);)me=me.parent;if(Array.isArray(me==null?void 0:me.parentBranch)&&me.parent instanceof ja){const ye=me.parent;if(me.parentBranch[0]<1)return ie();const Se=me.parentBranch[0]-1,Le=ye.array[Se][me.parentBranch[1]];if(!Le.some(mt=>mt.type==="prompt"&&!mt.captureSelection)&&a.mathfield.hasEditablePrompts)return ie();Ph(a,se,Le,ee,"up")}else if(me){const ye=(E=me.parent.branch("above"))!=null?E:me.parent.createBranch("above");if(!ye.some(Le=>Le.type==="prompt"&&Le.placeholderId)&&a.mathfield.hasEditablePrompts)return ie();Ph(a,se,ye,ee,"up")}else return ie();return a.mathfield.stopCoalescingUndo(),!0}function Wv(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("forward");const ie=()=>{var ye,Se;let Le=!0;return a.silenceNotifications||(Le=(Se=(ye=a.mathfield.host)==null?void 0:ye.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Se:!0),a.announce(Le?"plonk":"line"),Le},se=a.at(a.position);let me=se;for(;me&&me.parentBranch!=="above"&&!(Array.isArray(me.parentBranch)&&me.parent instanceof ja);)me=me.parent;if(Array.isArray(me==null?void 0:me.parentBranch)&&me.parent instanceof ja){const ye=me.parent;if(me.parentBranch[0]+1>ye.array.length-1)return ie();const Se=me.parentBranch[0]+1,Le=ye.array[Se][me.parentBranch[1]];if(!Le.some(mt=>mt.type==="prompt"&&!mt.captureSelection)&&a.mathfield.hasEditablePrompts)return ie();Ph(a,se,Le,ee,"down")}else if(me){const ye=(E=me.parent.branch("below"))!=null?E:me.parent.createBranch("below");if(!ye.some(Le=>Le.type==="prompt")&&a.mathfield.hasEditablePrompts)return ie();Ph(a,se,ye,ee,"down")}else return ie();return!0}function a0(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 Vv(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 Uv(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 o0(a){var y;if(a.collapseSelection(),Vv(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 Ie({style:b.computedStyle}),b),b=b.rightSibling),b.createBranch("superscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.superscript[0]))),!0}function s0(a){var y;if(a.collapseSelection(),Uv(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 Ie({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 jv(){function a(ye){const Se=[],Le=[];return[...ye.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((mt,It)=>{const Wt=E(mt);Wt===0?Se.push(mt):Le.push({documentOrder:It,tabIndex:Wt,node:mt})}),Le.sort((mt,It)=>mt.tabIndex===It.tabIndex?mt.documentOrder-It.documentOrder:mt.tabIndex-It.tabIndex).map(mt=>mt.node).concat(Se)}function y(ye){return!(!b(ye)||ee(ye)||E(ye)<0)}function b(ye){return!(ye.disabled||ye.type==="hidden"&&ye.tagName.toUpperCase()==="INPUT"||me(ye))}function E(ye){var Se;const Le=Number.parseInt((Se=ye.getAttribute("tabindex"))!=null?Se:"NaN",10);return Number.isNaN(Le)?ye.contentEditable==="true"||(ye.nodeName==="AUDIO"||ye.nodeName==="VIDEO")&&ye.getAttribute("tabindex")===null?0:ye.tabIndex:Le}function ee(ye){return ye.tagName.toUpperCase()==="INPUT"&&ye.type==="radio"&&!se(ye)}function ie(ye,Se){for(const Le of ye)if(Le.checked&&Le.form===Se)return Le;return null}function se(ye){var Se;if(!ye.name)return!0;const Ze=((Se=ye.form)!=null?Se:ye.ownerDocument).querySelectorAll('input[type="radio"][name="'+ye.name+'"]'),mt=ie(Ze,ye.form);return!mt||mt===ye}function me(ye){if(!bt()||ye===document.activeElement||ye.contains(document.activeElement))return!1;if(getComputedStyle(ye).visibility==="hidden")return!0;const Se=ye.getBoundingClientRect();if(Se.width===0||Se.height===0)return!0;for(;ye;){if(getComputedStyle(ye).display==="none")return!0;ye=ye.parentElement}return!1}return bt()?a(document.body):[]}function Lu(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"?Lu(a,[y.leftSibling,y]):Lu(a,[y,y.leftSibling])}function Bc(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 Ih(a,y,b=!0){var E,ee;const ie=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&zc(a,y);let se;const me=a.at(a.anchor).parentPrompt;me?y==="forward"?se=a.offsetOf(me)+1:se=a.offsetOf(me.leftSibling):se=Math.max(a.position+ie,0);const ye=sp(a,se,y);if(!ye||y==="forward"&&a.offsetOf(ye)<se||y==="backward"&&a.offsetOf(ye)>se){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 Le=jv();if(!document.activeElement||Le.length<=1)return a.announce("plonk"),!1;let Ze=Le.indexOf(document.activeElement)+ie;return Ze<0&&(Ze=Le.length-1),Ze>=Le.length&&(Ze=0),Le[Ze].focus(),a.mathfield.stopCoalescingUndo(),!0}return Bc(a,ye),!0}function sp(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)}qu({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 me=b.subsupPlacement?s0(a):o0(a);return a.mathfield.stopCoalescingUndo(),me}E.branch(ie)||E.createBranch(ie);const se=a.setSelection(a.getBranchRange(a.offsetOf(E),ie));return a.mathfield.stopCoalescingUndo(),se},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=>a0(a),moveToNextChar:a=>zc(a,"forward"),moveToPreviousChar:a=>zc(a,"backward"),moveUp:a=>zc(a,"upward"),moveDown:a=>zc(a,"downward"),moveToNextWord:a=>Ef(a,"forward"),moveToPreviousWord:a=>Ef(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 Ih(a,"forward");const ie=a.at(a.position);if(ie.mode==="text"){if(a.selectionIsCollapsed){let mt=ie;for(;mt&&mt.mode==="text";)mt=mt.leftSibling;let It=ie;for(;((y=It.rightSibling)==null?void 0:y.mode)==="text";)It=It.rightSibling;if(mt&&It)return Lu(a,[mt,It])}if(ie.rightSibling.mode==="text"){let mt=ie;for(;mt&&mt.mode==="text";)mt=mt.rightSibling;return mt?(Bc(a,(b=mt.leftSibling)!=null?b:mt),a.mathfield.switchMode("math"),!0):Bc(a,a.lastOffset)}}const me=a.at(a.anchor).parentPrompt,ye=me?a.offsetOf(me)+1:Math.max(a.position+1,0),Se=sp(a,ye,"forward");if(Se)return Bc(a,Se);const Le=l0(a,ie,mt=>mt.type==="leftright"||mt.type==="text","forward");if(Le){if(Le.mode==="text"){let mt=Le;for(;mt&&mt.mode==="text";)mt=mt.rightSibling;return Lu(a,[(E=Le.leftSibling)!=null?E:Le,(ee=mt.leftSibling)!=null?ee:mt])}return Lu(a,Le)}const Ze=ie.parent;if(Ze){if(Ze.type==="leftright"||Ze.type==="surd")return Lu(a,Ze);if(ie.parentBranch==="superscript"&&Ze.subscript)return Lu(a,Ze.subscript);if(ie.parentBranch==="above"&&Ze.below)return Lu(a,Ze.below);if(ie.parentBranch==="superscript"||ie.parentBranch==="subscript")return Bc(a,Ze);if(ie.parentBranch==="above"||ie.parentBranch==="below")return Lu(a,Ze)}return Bc(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return Ih(a,"backward");let b=a.at(a.position);const E=b.mode;if(E==="text"){if(a.selectionIsCollapsed){let me=b;for(;me&&me.mode==="text";)me=me.leftSibling;let ye=b;for(;((y=ye.rightSibling)==null?void 0:y.mode)==="text";)ye=ye.rightSibling;if(me&&ye)return Lu(a,[me,ye])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?Bc(a,b):Bc(a,0)}const ee=a.at(a.anchor).parentPrompt,ie=ee?a.offsetOf(ee.leftSibling):Math.max(a.position-1,0),se=sp(a,ie,"backward");if(se)return Bc(a,se);if(E==="math"){const me=l0(a,b,Se=>Se.type==="leftright"||Se.type==="text","backward");if(me){if(me.mode==="text"){let Se=me;for(;Se&&Se.mode==="text";)Se=Se.leftSibling;return Lu(a,[me,Se])}return Lu(a,me)}const ye=b.parent;if(ye){if(ye.type==="leftright"||ye.type==="surd")return Lu(a,ye);if(b.parentBranch==="subscript"&&ye.superscript)return Lu(a,ye.superscript);if(b.parentBranch==="below"&&ye.above)return Lu(a,ye.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return Bc(a,ye);if(b.parentBranch==="above"||b.parentBranch==="below")return Lu(a,ye)}return Bc(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:o0,moveToSubscript:s0},{target:"model",changeSelection:!0}),qu({moveToNextPlaceholder:a=>Ih(a,"forward"),moveToPreviousPlaceholder:a=>Ih(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function l0(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 Th(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 se=a.at(E);ee=y===0||se===void 0||se.type==="first"||se.mode!=="math"||!(se.type&&/mord|mpunct|operator/.test(se.type)||se.type==="mop"&&/[a-zA-Z ]+/.test(se.value))||!se.hasEmptyBranch("superscript")||!se.hasEmptyBranch("subscript")||typeof b=="function"&&!b(se),ee||(se.mode="text",se.command=se.value,se.verbatimLatex=void 0,ie+=se.value),E-=1,y-=1}a.contentDidChange({data:ie,inputType:"insertText"})}function Jd(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 se=a.at(E);ee=y===0||!se||se.type==="first"||se.isFirstSibling||se.mode!=="text"||se.value===" "||typeof b=="function"&&!b(se),ee||(ie.push($n.serialize([se],{defaultMode:"math"})),se.mode="math"),E-=1,y-=1}lp(a),a.contentDidChange({data:gi(ie),inputType:"insertText"})}function lp(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 Zv(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 Gv(a,y,b){const{model:E}=a;if(E.mode==="latex"||!E.at(E.position).isLastSibling||!b||!ph(b))return!1;const ee=gf(b);if(!E.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ee));const ie=Zv(E)+ee;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ee))return!0;if(/[\^_]/.test(ee))return/(^|\s)[a-zA-Z][^_]$/.test(ie)&&Jd(E,1),!0;const se={")":"(","}":"{","]":"["}[ee],{parent:me}=E.at(E.position);if(se&&me instanceof Vo&&me.leftDelim===se)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 Jd(E,1),!1;if(/\D\.[^\d\s]$/.test(ie)){Jd(E,1);const ye=E.at(E.position);return ye.value="\u22C5",ye.style.variant="normal",ye.command="\\cdot",ye.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 Jd(E,1),!0;if(/\([a-z][,;]$/.test(ie))return Jd(E,2),!0;if(/[\d+\-=><*|]$/.test(ee))return lp(E),!0}else{if(y==="[Space]")return Th(E,void 0,se=>/[a-z][:,;.]$/.test(se.value)),!0;if(/[a-zA-Z]{3,}$/.test(ie)&&!/(dxd|abc|xyz|uvw)$/.test(ie))return Th(E,void 0,se=>/[a-zA-Z]/.test(se.value)),!0;if(/(^|\W)(if)$/i.test(ie))return Th(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 Th(E,void 0,se=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(se.value)),!0;if(ee==="?"||ee==="."&&!/[\d-+]\.$/.test(ie))return!0}return!1}function Yv(a,y){if(!a.isSelectionEditable||!a.keystrokeCaptionVisible)return;const b=u0(),E=a.element.getBoundingClientRect();b.style.left=`${E.left}px`,b.style.top=`${E.top-64}px`,b.innerHTML=window.MathfieldElement.createHTML("<span>"+(Jh(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 Qv(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=u0();y.innerHTML=""}else{const y=gh("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function u0(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(uu("keystroke-caption"),uu("core"),gh("mathlive-keystroke-caption-panel"))}function Jv(){document.getElementById("mathlive-keystroke-caption-panel")&&(qh("mathlive-keystroke-caption-panel"),x("core"),x("keystroke-caption"))}function c0(a,y){var b,E,ee;const{model:ie}=a,se=Rp(y);if(y.isTrusted){Km(y);const It=Zf();a.keyboardLayout!==It.id&&(a.keyboardLayout=It.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Yv(a,se),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let me,ye="",Se;const Le=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(ie.mode==="math")if(se==="[Backspace]")Le.pop();else if(!ph(y))a.flushInlineShortcutBuffer();else{const It=gf(y),Wt=[...(E=(b=Le[Le.length-1])==null?void 0:b.keystrokes)!=null?E:[],It];Le.push({state:ie.getState(),keystrokes:Wt,leftSiblings:Xv(a)});let On=0,Vr="";for(;!me&&On<Wt.length;)Se=Le.length-(Wt.length-On),Vr=Wt.slice(On).join(""),me=Pd(Le[Se].leftSiblings,Vr,a.options.inlineShortcuts),!me&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(Vr)&&(me=a.options.onInlineShortcut(a,Vr)),On+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(me?a.switchMode("math"):Gv(a,se,y)&&(a.switchMode({math:"text",text:"math"}[ie.mode]),ye=""))}if(!me){if(ye||(ye=Zm(a.keybindings,ie.mode,y)),!ye&&(se==="[Enter]"||se==="[Return]")){let It=!1;return ie.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(It=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),It||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),ie.contentDidChange({inputType:"insertLineBreak"})),It}if((!ye||se==="[Space]")&&ie.mode==="math"){if(se==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return Ha.insert(ie,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),ye="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const It=ie.at(ie.position+1),Wt=ie.at(ie.position-1);if((It==null?void 0:It.mode)==="text"||(Wt==null?void 0:Wt.mode)==="text")return Ha.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===","&&gf(y)===","&&(ye="insertDecimalSeparator")}}if(!me&&!ye){if(ie.mathfield.smartFence){if(cp(ie,gf(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:It}=ie.at(ie.position);if(It instanceof Vo&&It.rightDelim==="?"&&ie.at(ie.position).isLastSibling&&/^[)}\]|]$/.test(se))return a.snapshot(),It.isDirty=!0,It.rightDelim=se,ie.position+=1,ie.selectionDidChange(),ie.contentDidChange({data:gf(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!ie.selectionIsCollapsed){const Wt=gf(y);if(Wt==="("||Wt==="{"||Wt==="["){const On={"(":"(","{":"\\lbrace","[":"\\lbrack"}[Wt],Vr={"(":")","{":"\\rbrace","[":"\\rbrack"}[Wt],[Pn,fr]=Tl(ie.selection);return a.snapshot(),ie.position=fr,Ha.insert(ie,Vr,{format:"latex"}),ie.position=Pn,Ha.insert(ie,On,{format:"latex"}),ie.setSelection(Pn+1,fr+1),ie.contentDidChange({data:Wt,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const Ze=ie.at(Math.max(ie.position,ie.anchor)),{parent:mt}=Ze;if(ye==="moveAfterParent"&&(mt==null?void 0:mt.type)==="leftright"&&Ze.isLastSibling&&a.options.smartFence&&cp(ie,".",a.defaultStyle)&&(ye="",yl(a)),a.keyboardDelegate.cancelComposition(),ye)a.executeCommand(ye);else if(me){const It=a.effectiveStyle;ie.setState(Le[Se].state);const Wt=Le[Le.length-1].keystrokes;for(const On of Wt)Ha.insert(ie,On,{silenceNotifications:!0,style:It});a.snapshot("insert-shortcut"),ie.setState(Le[Se].state),ie.deferNotifications({content:!0,selection:!0,data:me,type:"insertText"},()=>(Ha.insert(ie,me,{format:"latex",style:It}),lp(a.model),me.endsWith(" ")&&(a.switchMode("text"),Ha.insert(ie," ",{style:It,mode:"text"})),a.snapshot(),ie.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,ie.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function up(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=cd(y);const ie=window.mathVirtualKeyboard;if(ie!=null&&ie.isShifted&&(ee=typeof ee=="string"?ee.toUpperCase():ee.map(ye=>ye.toUpperCase())),b.simulateKeystroke){let ye=!0;for(const Se of ee)c0(a,new KeyboardEvent("keypress",{key:Se}))&&(ye=!1);if(ye)return}const se=E.at(E.position),me=ke(ke({},se.computedStyle),a.defaultStyle);if(E.selectionIsCollapsed||(E.deleteAtoms(Tl(E.selection)),a.snapshot("delete")),E.mode==="latex")E.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{vh(a);for(const ye of ee)Ha.insert(E,ye);a.snapshot("insert-latex"),Yf(a)});else if(E.mode==="text"){for(const ye of ee)Ha.insert(E,ye,{style:me});a.snapshot("insert-text")}else if(E.mode==="math")for(const ye of ee)qv(a,ye,me,se);a.dirty=!0,a.scrollIntoView()}function Xv(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 qv(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){$v(ee),Ha.insert(ee,y,{style:b}),a.snapshot(),a0(ee),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const se=a.adoptStyle==="left"?E:E.parent?E.rightSibling:null;(se==null?void 0:se.type)==="mord"&&/[a-zA-Z0-9]/.test(se.value)&&(b=ke({},b),se.style.variant&&(b.variant=se.style.variant),se.style.variantStyle&&(b.variantStyle=se.style.variantStyle))}Ha.insert(ee,y,{style:b}),a.snapshot(`insert-${ee.at(ee.position).type}`)}function $v(a){a.selectionIsCollapsed||(a.deleteAtoms(Tl(a.selection)),a.mathfield.snapshot("delete"))}function cp(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 se=ne[ie],me=re[ie];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[ye,Se]=Tl(a.selection),Le=a.extractAtoms([ye,Se]),Ze=ee.addChildrenAfter([new Vo("left...right",Le,{leftDelim:ie,rightDelim:me})],a.at(ye));return a.setSelection(a.offsetOf(Ze.firstChild),a.offsetOf(Ze.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:ie,inputType:"insertText"}),!0}if(ie==="|"){const ye=ee instanceof Vo?ee.leftDelim+ee.rightDelim:"";if(ye==="\\lbrace\\rbrace"||ye==="\\{\\}"||ye==="\\lbrace?")return a.mathfield.snapshot(),Ha.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:ie,inputType:"insertText"}),!0}if(me){if(ee instanceof Vo&&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 Vo)){let Ze=E;for(;Ze&&!(Ze.type==="mclose"&&Ze.value===me);)Ze=Ze.rightSibling;if(Ze){a.mathfield.snapshot();const mt=a.extractAtoms([a.offsetOf(E),a.offsetOf(Ze)]);return mt.pop(),ee.addChildrenAfter([new Vo("left...right",mt,{leftDelim:ie,rightDelim:me})],E),a.position=a.offsetOf(ee.firstChild)+1,a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const ye=a.offsetOf(E.lastSibling);let Se;for(Se=a.position;Se<=ye;Se++){const Ze=a.at(Se);if(Ze instanceof Vo&&(Ze.leftDelim==="?"||Ze.leftDelim===".")&&d0(ie,Ze.rightDelim))break}const Le=a.at(Se);if(Se<=ye&&Le instanceof Vo){Le.leftDelim=ie,a.mathfield.snapshot();let Ze=a.extractAtoms([a.position,Se-1]);return Ze=Ze.filter(mt=>mt.type!=="first"),Le.addChildren(Ze,Le.parentBranch),a.position+=1,a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ee instanceof Vo&&(ee.leftDelim==="?"||ee.leftDelim===".")&&d0(ie,ee.rightDelim)){ee.isDirty=!0,ee.leftDelim=ie,a.mathfield.snapshot();const Ze=a.extractAtoms([a.offsetOf(E.firstSibling),a.position]);for(const mt of Ze)ee.parent.addChildBefore(mt,ee);return a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ee instanceof Vo&&ee.leftDelim==="|")){if(a.mathfield.snapshot(),Ha.insert(a,`\\left${ie}\\right?`,{format:"latex",style:b}),E.lastSibling.type!=="first"){const Ze=a.offsetOf(E.lastSibling),mt=a.extractAtoms([a.position,Ze]);a.at(a.position).body=mt,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(se){let ye=E;for(;ye;){if(ye.type==="mopen"&&ye.value===se){a.mathfield.snapshot();const It=ye.leftSibling,Wt=a.extractAtoms([a.offsetOf(ye.leftSibling),a.offsetOf(E)]);Wt.shift();const On=new Vo("left...right",Wt,{leftDelim:se,rightDelim:ie});return ee.addChildrenAfter([On],It),a.position=a.offsetOf(On),a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}ye=ye.leftSibling}if(ee instanceof Vo&&E.isLastSibling&&dp(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 Se=a.offsetOf(E.firstSibling);let Le;for(Le=a.position;Le>=Se;Le--){const It=a.at(Le);if(It instanceof Vo&&(It.rightDelim==="?"||It.rightDelim===".")&&dp(It.leftDelim,ie))break}const Ze=a.at(Le);if(Le>=Se&&Ze instanceof Vo)return a.mathfield.snapshot(),Ze.rightDelim=ie,Ze.addChildren(a.extractAtoms([Le,a.position]),Ze.parentBranch),a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ee instanceof Vo&&(ee.rightDelim==="?"||ee.rightDelim===".")&&dp(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 mt=ee.parent;return mt instanceof Vo&&(mt.rightDelim==="?"||mt.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(mt),cp(a,ie,b)):!1}return!1}function dp(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):re[a]===y:!0}function d0(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):ne[y]===a:!0}qu({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:Qv,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)=>(up(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}}),qu({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"}),qu({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})&&(Yf(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),yl(a))):a.model.announce("plonk"),a.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function eg(a,y){a.flushInlineShortcutBuffer(),a.stopCoalescingUndo();const b=fp(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=ke(ke({},a.defaultStyle),b)):a.model.deferNotifications({content:!0,type:"insertText"},()=>{E.selection.ranges.forEach(ee=>ip(E,ee,b,{operation:"toggle"})),a.snapshot("style-change")}),!0}qu({applyStyle:eg},{target:"mathfield",canUndo:!0,changeContent:!0});function fp(a,y){var b,E,ee,ie,se,me,ye,Se,Le,Ze;const mt={};if(typeof y.color=="string"){const Wt=(E=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?E:"none";Wt!==y.color&&(mt.verbatimColor=(ee=y.verbatimColor)!=null?ee:y.color),mt.color=Wt}if(typeof y.backgroundColor=="string"){const Wt=(se=a.backgroundColorMap((ie=y.backgroundColor)!=null?ie:y.verbatimBackgroundColor))!=null?se:"none";Wt!==y.backgroundColor&&(mt.verbatimBackgroundColor=(me=y.verbatimBackgroundColor)!=null?me:y.backgroundColor),mt.backgroundColor=Wt}typeof y.fontFamily=="string"&&(mt.fontFamily=y.fontFamily),typeof y.series=="string"&&(mt.fontSeries=y.series),typeof y.fontSeries=="string"&&(mt.fontSeries=y.fontSeries.toLowerCase()),mt.fontSeries&&(mt.fontSeries=(ye={bold:"b",medium:"m",normal:"m"}[mt.fontSeries])!=null?ye:mt.fontSeries),typeof y.shape=="string"&&(mt.fontShape=y.shape),typeof y.fontShape=="string"&&(mt.fontShape=y.fontShape.toLowerCase()),mt.fontShape&&(mt.fontShape=(Se={italic:"it",up:"n",upright:"n",normal:"n"}[mt.fontShape])!=null?Se:mt.fontShape),y.variant&&(mt.variant=y.variant.toLowerCase()),y.variantStyle&&(mt.variantStyle=y.variantStyle.toLowerCase());const It=(Le=y.size)!=null?Le:y.fontSize;return typeof It=="number"?mt.fontSize=Math.max(1,Math.min(10,It)):typeof It=="string"&&(mt.fontSize=(Ze={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[It.toLowerCase()])!=null?Ze:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[It]),mt}function hp(a){let[y,b]=Tl(a.selection);if(y=f0(a,y,"backward"),b=f0(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 f0(a,y,b){var E,ee,ie;let se=a.at(y);if(!se)return y;const me=b==="forward"?1:-1;if(se.mode==="text"){for(;se&&!(se.mode!=="text"||!ge.test(se.value));)y+=me,se=a.at(y);return b==="backward"?y-1:y}if(se.mode==="latex"){if(/[a-zA-Z\*]/.test(se.value))if(b==="backward")for(;se&&se.mode==="latex"&&se.value!=="\\"&&/[a-zA-Z]/.test(se.value);)y+=me,se=a.at(y);else for(;se&&se.mode==="latex"&&/[a-zA-Z\*]/.test(se.value);)y+=me,se=a.at(y);else if(se.value==="{"){if(b==="forward"){for(;se&&se.mode==="latex"&&se.value!=="}";)y+=me,se=a.at(y);return y}return y-1}else if(se.value==="}"){if(b==="backward"){for(;se&&se.mode==="latex"&&se.value!=="{";)y+=me,se=a.at(y);return y-1}return y}return y-1}if(se.mode==="math"){if(se.isDigit()){for(;(E=a.at(y+me))!=null&&E.isDigit();)y+=me;return b==="backward"?y-1:y}if(se.style.variant||se.style.variantStyle){let ye=(ee=a.at(y))==null?void 0:ee.style;for(;ye&&ye.variant===se.style.variant&&ye.variantStyle===se.style.variantStyle;)ye=(ie=a.at(y+me))==null?void 0:ie.style,y+=me;return b==="backward"?y-1:y}return y}return y}qu({selectGroup:a=>{const y=hp(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>zc(a,"forward",{extend:!0}),extendSelectionBackward:a=>zc(a,"backward",{extend:!0}),extendToNextWord:a=>Ef(a,"forward",{extend:!0}),extendToPreviousWord:a=>Ef(a,"backward",{extend:!0}),extendSelectionUpward:a=>zc(a,"upward",{extend:!0}),extendSelectionDownward:a=>zc(a,"downward",{extend:!0}),extendToNextBoundary:a=>Ef(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>Ef(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 Xd=null,eh=0,Nh=class Cc{static start(y,b,E,ee){var ie;Cc.element=y,(ie=Cc.controller)==null||ie.abort(),Cc.controller=new AbortController;const se={signal:Cc.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",E,se),y.addEventListener("pointerup",ee,se),y.addEventListener("pointercancel",ee,se),pp(b)&&(Cc.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",E,se),window.addEventListener("blur",ee,se),window.addEventListener("mouseup",ee,se))}static stop(){var y;(y=Cc.controller)==null||y.abort(),Cc.controller=void 0,typeof Cc.pointerId=="number"&&(Cc.element.releasePointerCapture(Cc.pointerId),Cc.pointerId=void 0)}};function pp(a){return a!==null&&globalThis.PointerEvent!==void 0&&a instanceof PointerEvent}function h0(a,y){var b;if(y.buttons>1)return;a.atomBoundsCache=new Map;const E=a;let ee,ie=!1,se=!1,me="none",ye=!1,Se=!1;const Le=y.clientX,Ze=y.clientY,mt=Date.now(),It=E.field,Wt=setInterval(()=>{ye?It.scroll({top:0,left:It.scrollLeft-16}):Se&&It.scroll({top:0,left:It.scrollLeft+16})},32);function On(){Nh.stop(),ie=!1,clearInterval(Wt),a.element.classList.remove("tracking"),y&&y.preventDefault()}function Vr(fr){if(!E.hasFocus()){On();return}const Jr=fr.clientX,wr=fr.clientY,Zi=pp(fr)&&fr.pointerType==="touch"?20:5;if(Date.now()<mt+500&&Math.abs(Le-Jr)<Zi&&Math.abs(Ze-wr)<Zi){fr.preventDefault(),fr.stopPropagation();return}const ba=It.getBoundingClientRect();Se=Jr>ba.right,ye=Jr<ba.left;let aa=ee;pp(fr)&&(fr.isPrimary||(aa=th(E,fr.clientX,fr.clientY,{bias:0})));const _o=th(E,Jr,wr,{bias:Jr<=Le?Jr===Le?0:-1:1});aa>=0&&_o>=0&&(E.model.extendSelectionTo(aa,_o),yl(a)),se&&hp(E.model)}Xd&&Math.abs(Xd.x-Le)<5&&Math.abs(Xd.y-Ze)<5&&Date.now()<Xd.time+500?(eh+=1,Xd.time=mt):(Xd={x:Le,y:Ze,time:mt},eh=1);const Pn=It.getBoundingClientRect();if(Le>=Pn.left&&Le<=Pn.right&&Ze>=Pn.top&&Ze<=Pn.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ee=th(a,Le,Ze,{bias:0}),ee>=0){if(a.element.classList.add("tracking"),y.shiftKey){const fr=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ee),Hp(a.model)||fr?me="all":me="selection"}else a.model.at(ee).type==="placeholder"?(a.model.setSelection(ee-1,ee),me="selection"):((b=a.model.at(ee).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(ee,ee+1),me="selection"):(a.model.position=ee,Hp(a.model)?me="all":me="selection");a.defaultStyle={},y.detail===3||eh>2?(On(),(y.detail===3||eh===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},me="all")):ie||(ie=!0,Nh.start(It,y,Vr,On),(y.detail===2||eh===2)&&(se=!0,hp(a.model),me="all"))}a.hasFocus()||(me="none",a.focus({preventScroll:!0}))}else Xd=null;a.stopCoalescingUndo(),me!=="none"&&(a.model.selectionIsCollapsed&&(me="all"),yl(a)),y.preventDefault()}function tg(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 p0(a,y,b,E,ee){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const ie=Rc(a,b);if(!ie)return[1/0,null];let se=[1/0,null];if(b.hasChildren&&!b.captureSelection&&E>=ie.left&&E<=ie.right)for(const me of b.children){const ye=p0(a,y,me,E,ee);ye[0]<=se[0]&&(se=ye)}return se[1]||(se=[tg(E,ee,ie),b]),y.set(b.id,se),se}function ng(a,y,b){const[,E]=p0(a,new Map,a.model.root,y,b);return E}function th(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 se=ng(a,y,b);const me=[];let ye=se;for(;ye;)me.unshift(ye),ye=ye.parent;for(const Le of me)if(Le.captureSelection){se=Le;break}let Se=a.model.offsetOf(se);if(Se<0)return-1;if(se.leftSibling)if(E.bias===0&&se.type!=="placeholder"){const Le=Rc(a,se);Le&&y<(Le.left+Le.right)/2&&(Se=a.model.offsetOf(se.leftSibling))}else E.bias<0&&(Se=a.model.offsetOf(se.leftSibling));return Se}var rg=class extends Ha{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 se=Bu(ie),{model:me}=a;me.selectionIsCollapsed||me.deleteAtoms(Tl(me.selection));const ye=me.at(me.position);if(ye.parent instanceof ja){console.assert(ye.parentBranch!==void 0);const Se=[];let Le=[];se[0].type==="first"&&se.shift(),se[se.length-1].type==="first"&&se.pop();for(const Wt of se)Wt.type==="first"&&Le.length>0?(Se.push(Le),Le=[Wt]):Le.push(Wt);Le.length>0&&Se.push(Le);let Ze=Number(ye.parentBranch[0]),mt=Number(ye.parentBranch[1]);const It=ye.parent.maxColumns;for(;ye.parent.colCount-mt<Se.length&&ye.parent.colCount<It;)ye.parent.addColumn();ye.parent.addChildrenAfter(Se[0],ye);for(let Wt=1;Wt<Se.length;Wt++)mt++,mt>=It&&(mt=0,ye.parent.addRowAfter(Ze),Ze++),ye.parent.setCell(Ze,mt,Se[Wt])}else ye.parent.addChildrenAfter(se.filter(Se=>Se.type!=="first"),ye);return me.position=me.offsetOf(se[se.length-1]),me.contentDidChange({inputType:"insertFromPaste"}),yl(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 se=window.MathfieldElement.computeEngine.box(ie);se&&!se.has("Error")&&(b=se.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]=Sc(b),E==="auto"&&ie&&(E="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:E})&&(a.startRecording(),a.snapshot("paste"),yl(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:se}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const me=a.silenceNotifications;a.silenceNotifications=!0;const ye={"?":"\\placeholder{}","@":"\\placeholder{}"};ye[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Tl(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 Se=-1;ye[0]?ye["@"]=ye[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(Se=ag(a),Se>=0&&(ye["@"]=a.getValue(Se,a.position,"latex"))),ye[0]||(ye[0]=ye["?"]);let Le=!1;const Ze=Jr=>(Le=!0,ye[Jr]);let[mt,It]=m0(a,y,Ze,b);if(!It)return!1;const Wt=It.length===1&&It[0].type==="genfrac";Wt&&Se>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(ye["@"]=ye["?"],Le=!1,[mt,It]=m0(a,y,Ze,b)):Se>=0&&a.deleteAtoms([Se,a.position]);const{parent:On}=a.at(a.position),Vr=On.hasEmptyBranch("body");if(Wt&&mt!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&On instanceof Vo&&On.leftDelim==="("&&Vr){const Jr=On.parent,wr=On.parentBranch;Jr.removeChild(On),Jr.setChildren(It,wr)}const Pn=a.at(a.position);Pn.parent.addChildrenAfter(It,Pn),mt==="latex"&&typeof y=="string"&&(On==null?void 0:On.type)==="root"&&Vr&&!Le&&(On.verbatimLatex=y),a.silenceNotifications=me;const fr=It[It.length-1];if(b.selectionMode==="placeholder"){const Jr=It.flatMap(wr=>[wr,...wr.children]).find(wr=>wr.type==="placeholder");if(Jr){const wr=a.offsetOf(Jr);a.setSelection(wr-1,wr),a.announce("move")}else fr&&(a.position=a.offsetOf(fr))}else b.selectionMode==="before"||(b.selectionMode==="after"?fr&&(a.position=a.offsetOf(fr)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(fr)));return a.contentDidChange({data:ie,inputType:"insertText"}),a.silenceNotifications=se,!0}};function m0(a,y,b,E){var ee;let ie,se=[];if(typeof y!="string"||E.format==="math-json"){const me=window.MathfieldElement.computeEngine;if(!me)return["math-json",[]];[ie,y]=["latex",me.box(y).latex],se=je(y,{context:a.mathfield.context})}else typeof y=="string"&&E.format==="ascii-math"?([ie,y]=nc(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),se=je(y,{context:a.mathfield.context}),ie!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Oh(se)):(E.format==="auto"||(ee=E.format)!=null&&ee.startsWith("latex"))&&(E.format==="auto"&&([ie,y]=nc(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),E.format==="latex"&&([,y]=Sc(y)),se=je(y,{context:a.mathfield.context,args:b}),E.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Oh(se));return Ed(se,E.style),[ie!=null?ie:"latex",se]}function ig(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof Vo&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function Oh(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof Vo&&b.leftDelim==="("){let E=0,ee=0,ie=0;for(let se=0;b.body[se];se++)b.body[se].type==="genfrac"&&(E++,ee=se),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)){Oh(y.branch(b));const E=ig(y.branch(b));E&&y.setChildren(E,b)}if(y instanceof ja)for(const b of y.cells)Oh(b)}}}function ag(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=ne[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||v0(y));)y=y.leftSibling;else{const ee=[];for(;!y.isFirstSibling&&(v0(y)||ee.length>0);)y.type==="mclose"&&ee.unshift(y.value),y.type==="mopen"&&ee.length>0&&y.value===ne[ee[0]]&&ee.shift(),y=y.leftSibling}return b===y?-1:a.offsetOf(y)}function v0(a){return a.isDigit()?!0:a.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(a.type)?!a.isExtensibleSymbol:!1}new rg;var og=class extends Ha{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"),yl(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(Tl(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=sg(y,a.mathfield.context);if(Ed(ie,b.style),!ie)return!1;const se=a.at(a.position),me=se.parent.addChildrenAfter(ie,se);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(me)):me&&(a.position=a.offsetOf(me))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function sg(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 "),je(a,{context:y,parseMode:"text"})}new og;function Wc(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var zs=4,_u=20,Ol=2*(_u+zs),Rh=(a,y)=>`
|
|
|
<line x1="${a+_u}" y1="${y+_u}"
|
|
|
x2="${a>y?a+_u:7*_u+10*zs}"
|
|
|
y2="${a<y?y+_u:7*_u+10*zs}"/>
|
|
|
<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>`,g0=(a,y)=>`
|
|
|
<line x1="${a+_u}" y1="${y+_u}"
|
|
|
x2="${a>y?a+_u:7*_u+10*zs}"
|
|
|
y2="${a<y?y+_u:7*_u+10*zs}"/>
|
|
|
<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>`,_h=(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>`,lg=`
|
|
|
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
viewBox=
|
|
|
"-2 -2 ${8*_u+10*zs+5} ${8*_u+10*zs+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${Ol+zs}"
|
|
|
height="${3*Ol}"
|
|
|
width="${Ol}"
|
|
|
rx="${Ol/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${Ol+zs}"
|
|
|
y="0"
|
|
|
height="${Ol}"
|
|
|
width="${3*Ol}"
|
|
|
rx="${Ol/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${_h(2*(zs+Ol),2*zs+3*Ol,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${_h(2*(zs+Ol),2*zs+Ol,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${_h(2*zs+3*Ol,2*(zs+Ol),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${_h(2*zs+Ol,2*(zs+Ol),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${Rh(2*zs+Ol,zs)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${g0(2*zs+2*Ol,zs)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${Rh(2*zs+3*Ol,zs)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${Rh(zs,2*zs+Ol)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${g0(zs,2*zs+2*Ol)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${Rh(zs,2*zs+3*Ol)}
|
|
|
</g>
|
|
|
</svg>`,ug=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>`,cg=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>`,dg=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>`,fg=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>`,hg=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>`,pg=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>`,mg=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>`,mp={matrix:ug,pmatrix:cg,bmatrix:dg,Bmatrix:y0,vmatrix:fg,Vmatrix:hg},vp={cases:pg,rcases:mg,Bmatrix:y0};function vg(a){var y,b;const E=(y=a.model.parentEnvironment)==null?void 0:y.array;if(!E)return;let ee=0;E.forEach(Wt=>{(!ee||Wt.length>ee)&&(ee=Wt.length)});let ie=document.getElementById("mathlive-environment-popover");ie||(ie=gh("mathlive-environment-popover"),uu("environment-popover"),uu("core"),ie.setAttribute("aria-hidden","true"));let se;const me=ie.querySelector(".MLEP__environment-controls");me?se=me:(se=document.createElement("div"),ie.innerHTML="",ie.appendChild(se)),se.className="MLEP__environment-controls",se.style.display="flex",se.style.width="100%",se.style.height="100%",se.style.boxSizing="border-box",se.innerHTML=lg;let ye=[],Se="";const Le=a.model.parentEnvironment.environmentName;if(tu(Le)){const Wt=yg(Le);Se=mp[Wt]("active");const On=mp,{[Wt]:Vr}=On,Pn=tt(On,[at(Wt)]);ye=Object.values(Pn).map(fr=>fr("inactive"))}else if(nu(Le)){const Wt=bg(Le);Se=vp[Wt]("active");const On=vp,{[Wt]:Vr}=On,Pn=tt(On,[at(Wt)]);ye=Object.values(Pn).map(fr=>fr("inactive"))}else gl(Le)&&(Se=mp.matrix("active"),ye=Object.values(vp).map(Wt=>Wt("inactive")));const Ze=document.createElement("div");Ze.className="MLEP__environment-delimiter-controls",Ze.style.display="flex",Ze.style.flexDirection="column",Ze.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${Se}
|
|
|
${ye.join("")}
|
|
|
</div>`,Se&&se.appendChild(Ze),se.querySelectorAll("[data-command]").forEach(Wt=>{const On=Wt.dataset.command;let Vr=On;try{Vr=JSON.parse(On)}catch(Pn){}Wt.addEventListener("mousedown",Pn=>Pn.preventDefault()),Vr&&Wt.addEventListener("click",()=>a.executeCommand(Vr))});const It=(b=a.field)==null?void 0:b.getBoundingClientRect();It&&(ie.style.top=`${window.scrollY+(It.top-ie.clientHeight-15)}px`,ie.style.left=`${It.left+20}px`,ie.classList.add("is-visible"))}function gp(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function gg(){document.getElementById("mathlive-environment-popover")&&(qh("mathlive-environment-popover"),x("environment-popover"),x("core"))}function Kh(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&Qs(b.environmentName)){const E=a.options.environmentPopoverPolicy;y=E==="auto"||E==="on"}}y?vg(a):gp()}function yg(a){return a.replace("*","")}function bg(a){return a==="dcases"?"cases":a}function b0(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 yp(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 xg(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 wg(a,y){var b,E,ee;const ie=(b=b0(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 se=a.getBoundingClientRect(),me=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let ye=Math.min(me,(E=y.height)!=null?E:se.height),Se=yp(y.location.y,ye,y.verticalPos,ie);Se+ye>window.innerHeight-8&&(y.alternateLocation?(Se=yp(y.alternateLocation.y,ye,y.verticalPos,ie),Se+ye>window.innerHeight-8&&(Se=void 0)):Se=void 0),Number.isFinite(Se)||(Se=Math.max(8,window.innerHeight-8-ye),8+ye>window.innerHeight-8&&(a.style.bottom="8px")),ye=Math.min(Se+ye,window.innerHeight-8)-Se;const Le=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let Ze=Math.min(Le,(ee=y.width)!=null?ee:se.width),mt=yp(y.location.x,Ze,y.horizontalPos,ie);mt+Ze>window.innerWidth-8&&(y.alternateLocation?(mt=xg(y.alternateLocation.x,Ze,y.verticalPos,ie),mt+Ze>window.innerWidth-8&&(mt=void 0)):mt=void 0),Number.isFinite(mt)||(mt=Math.max(8,window.innerWidth-8-Ze),8+Ze>window.innerWidth-8&&(a.style.right="8px")),Ze=Math.min(mt+Ze,window.innerWidth-8)-mt,ie==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-mt-Ze).toString()}px`:a.style.left=`${Math.ceil(mt).toString()}px`,a.style.top=`${Math.ceil(Se).toString()}px`,ye!==se.height&&(a.style.height=`${Math.ceil(ye).toString()}px`),Ze!==se.width&&(a.style.width=`${Math.ceil(Ze).toString()}px`)}function Cg(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function Sf(a){return"submenu"in a}function Vc(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function bp(a){return"type"in a&&a.type==="divider"}function xp(a){return"type"in a&&a.type==="heading"}var w0={};function wp(a){let y=w0[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,w0[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 C0=80,E0=class{constructor(a,y){this._element=null;var b;this.parentMenu=y,this._declaration=a,Sf(a)?(this.type="submenu",this.submenu=new S0(a.submenu,{parentMenu:y,submenuClass:a.submenuClass,columnCount:a.columnCount})):this.type=(b=a.type)!=null?b:"command",this.hasCheck=Vc(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(bp(ee)){this.enabled=!1,this.checked=!1;return}xp(ee)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Vc(ee)&&(this.checked=Vc(ee)&&((y=Af(ee.checked,a))!=null?y:!1)),(Vc(ee)||Sf(ee))&&(this.enabled=(b=Af(ee.enabled,a))!=null?b:!0,this.visible=(E=Af(ee.visible,a))!=null?E:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(Vc(ee)||xp(ee)||Sf(ee))&&(this.label=Af(ee.label,a),this.tooltip=Af(ee.tooltip,a),this.ariaLabel=Af(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(wp("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(wp("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),Vc(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=Jh(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(wp("trailing-chevron"))}get element(){if(this._element)return this._element;if(bp(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,(Vc(this._declaration)||xp(this._declaration)||Sf(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(!Vc(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()},C0)},C0)}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=b0(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(Eg(E,y.clientY-a.clientY,b)<=.2)return!1;let ie="right";if(this.submenu.element){const se=this.submenu.element.getBoundingClientRect(),me=this.element.getBoundingClientRect();se.left<me.left+me.width/2&&(ie="left")}return ie==="right"?E>0:E<0}};function Eg(a,y,b){return Math.hypot(a,y)/b}function Af(a,y){return a===void 0||typeof a!="function"?a:(y!=null||(y={alt:!1,control:!1,shift:!1,meta:!1}),a(y))}var S0=class If{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 E0(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(Se=>Se.updateState(y));const ie=this.hasCheck;this.hasCheck=this._menuItems.some(Se=>Se.visible&&Se.hasCheck),this.hasCheck!==ie&&this._menuItems.forEach(Se=>Se.updateState(y));let se,me=0;for(const Se of this._menuItems)Se.type==="heading"?(se&&me===0&&(se.visible=!1),se=Se,me=0):Se.type==="divider"&&se?(se.visible=me>0,se=void 0,me=0):se&&Se.visible&&(me+=1);se&&(se.visible=me>0);let ye=!0;for(const Se of this._menuItems)Se.type==="divider"?(Se.visible=!ye,ye=!0):Se.visible&&(ye=!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 se=this.activeMenuItem;se.active=!1,(b=se.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 se=this._menuItems[ee];if(!se)break;if(se.visible&&se.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 If._collator||(If._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),If._collator}findMenuItem(y){var b;this.updateIfDirty();const E=this._menuItems.filter(me=>me.type!=="divider"&&me.visible&&me.enabled);if(E.length===0)return null;const ee=Math.max(...E.map(me=>me.label.length))-y.length;if(ee<0)return null;let ie=null,se=0;for(;se<ee&&!ie;)ie=(b=E.find(me=>If.collator.compare(y,me.label.substring(se,y.length))===0))!=null?b:null,se++;return ie}show(y){return!this.visible||!y.container?!1:(this.updateElement(),y.container.appendChild(this.element),ft()&&(this.element.popover="manual",this.element.showPopover()),y.location&&wg(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),ft()&&((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 se=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((E=this.activeMenuItem.element)==null||E.setAttribute("aria-expanded",se.toString())),(ie=(ee=this.activeMenuItem)==null?void 0:ee.element)==null||ie.classList.toggle("is-submenu-open",se),this.isSubmenuOpen=se}},A0=class km extends S0{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(k0),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(y){Wm(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=Vd(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,E,ee;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=Vd(y));let ie=!0;const se=this.activeSubmenu,me=se.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":me==null||me.select(Vd(y));break;case"ArrowRight":if((me==null?void 0:me.type)==="submenu")me.select(Vd(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!me)se.activeMenuItem=se.firstMenuItem;else{const ye=(b=se.getMenuItemColumn(me))!=null?b:-1;if(ye>=0&&ye<((E=se.columnCount)!=null?E:1)-1){const Se=se.nextMenuItem(1);Se&&(se.activeMenuItem=Se)}}break;case"ArrowLeft":if(se===this.rootMenu)me||(se.activeMenuItem=se.firstMenuItem);else if((me&&(ee=se.getMenuItemColumn(me))!=null?ee:-1)<=0||!me){se.hide();const Se=se.parentMenu.activeMenuItem;if(Se){const{element:Le}=Se;Le==null||Le.focus(),Le==null||Le.classList.remove("is-submenu-open")}}else{const Se=se.nextMenuItem(-1);Se&&(se.activeMenuItem=Se)}break;case"ArrowDown":se.activeMenuItem=se.nextMenuItem(se.columnCount);break;case"ArrowUp":se.activeMenuItem=se.nextMenuItem(-se.columnCount);break;case"Home":case"PageUp":se.activeMenuItem=se.firstMenuItem;break;case"End":case"PageDown":se.activeMenuItem=se.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const ye=se.findMenuItem(this.typingBuffer);ye&&(se.activeMenuItem=ye),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(ph(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const ye=se.findMenuItem(this.typingBuffer);ye&&(se.activeMenuItem=ye),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 Kc.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),Kc.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),Kc.state==="open"&&Kc.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(we(ke({},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,Kc.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(y){this.cancelDelayedOperation();const b=km.SUBMENU_DELAY;if(b<=0){y();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,y()},b)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};A0.SUBMENU_DELAY=120;var Sg=A0;function k0(a){return bp(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(Vc(a)||Sf(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||Vc(a)&&typeof a.checked=="function"?!0:Sf(a)?a.submenu.some(k0):!1}var Hh=class{};Hh.DELAY=300,Hh.MAX_DISTANCE=10;function Ag(a){return new Promise((y,b)=>{const E=hh(a);E||y(!1);let ee=E;const ie=setTimeout(()=>{se.abort(),y(Cg(ee,E)<Hh.MAX_DISTANCE)},Hh.DELAY),se=new AbortController,me=se.signal;for(const ye of["pointermove","pointerup","pointercancel"])window.addEventListener(ye,Se=>{if(Se.type==="pointerup"||Se.type==="pointercancel")clearTimeout(ie),se.abort(),y(!1);else if(Se.type==="pointermove"){const Le=hh(Se);Le&&(ee=Le)}},{passive:!0,signal:me})})}function M0(a,y,b){return kd(this,null,function*(){if(a.type==="contextmenu"){const E=a;if(b.show({target:y,location:hh(E),modifiers:Vd(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:Vd(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=hh(a);if(yield Ag(a))return b.state!=="closed"?!1:(b.show({target:y,location:ee}),!0)}return!1})}var D0={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};ln(Object.keys(D0),"{body:auto}",{createAtom:a=>new z(we(ke({},a),{body:Dt(a.args[0]),accentChar:D0[a.command.slice(1)]}))}),ln(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=nn(Dt(a.args[0]));return new z(we(ke({},a),{body:Dt(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),ln(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new z(we(ke({},a),{body:Dt(a.args[0]),svgAccent:"overarc"}))}),ln(["underarc","underparen"],"{body:auto}",{createAtom:a=>new ts(we(ke({},a),{body:Dt(a.args[0]),svgBelow:"underarc"}))}),ln("utilde","{body:auto}",{createAtom:a=>{const y=Dt(a.args[0]),b=nn(y),E="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new ts(we(ke({},a),{body:y,svgBelow:E,boxType:Pc(y)}))}}),ln("^","{:string}",{createAtom:a=>{var y;return new $n(we(ke({},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:"^"}))}}),ln("`","{:string}",{createAtom:a=>{var y;return new $n(we(ke({},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:"`"}))}}),ln("'","{:string}",{createAtom:a=>{var y;return new $n(we(ke({},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:"'"}))}}),ln('"',"{:string}",{createAtom:a=>{var y,b;return new $n(we(ke({},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]:'"'}))}}),ln(".","{:string}",{createAtom:a=>{var y,b;return new $n(we(ke({},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]:"."}))}}),ln("=","{:string}",{createAtom:a=>{var y,b;return new $n(we(ke({},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]:"="}))}}),ln("~","{:string}",{createAtom:a=>{var y;return new $n(we(ke({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"}))}}),ln("c","{:string}",{createAtom:a=>{var y;return new $n(we(ke({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),ln("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 se=E[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const me of se){const ye=me.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(ye)ee.strokeWidth=ye[1],ee.strokeStyle=ye[2],ee.strokeColor=ye[3];else{const Se=me.match(/\s*([a-z]*)\s*=\s*"(.*)"/);Se&&(Se[1]==="mathbackground"?ee.backgroundcolor=Se[2]:Se[1]==="mathcolor"?ee.strokeColor=Se[2]:Se[1]==="padding"?ee.padding=Se[2]:Se[1]==="shadow"&&(ee.shadow=Se[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(se=>se.length>0).forEach(se=>{ie[se.toLowerCase()]=!0}),new Yr(a.command,Dt(E[2]),ie,ee)}}),ln("cancel","{body:auto}",{createAtom:a=>{var y;return new Yr(a.command,Dt(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:{}})}}),ln("bcancel","{body:auto}",{createAtom:a=>{var y;return new Yr(a.command,Dt(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:{}})}}),ln("xcancel","{body:auto}",{createAtom:a=>{var y;return new Yr(a.command,Dt(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:{}})}}),ln(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new ts(we(ke({},a),{body:Dt((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),ln("overbrace","{:auto}",{createAtom:a=>new ts(we(ke({},a),{body:Dt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),ln(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new ts(we(ke({},a),{body:Dt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),ln(["underbrace"],"{:auto}",{createAtom:a=>new ts(we(ke({},a),{body:Dt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),ln(["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 ts(we(ke({},a),{svgBody:a.command.slice(1),above:((b=Dt((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:Dt((E=a.args)==null?void 0:E[1]),below:(ie=Dt((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)}`}),ln(["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 du(a.command.slice(1),we(ke({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),ln(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new du({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],we(ke({},a),{limits:"over-under",variant:"main"}))}),ln(["lim","mod"],"",{ifMode:"math",createAtom:a=>new du(a.command.slice(1),we(ke({},a),{limits:"over-under",variant:"main"}))}),ln(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new du(a.command.slice(1),we(ke({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),ln(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new $n(we(ke({},a),{body:Dt(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 Hr("\xB0",{style:we(ke({},a.style),{variant:"normal",variantStyle:"up"})});return new Hr([b,ee],{type:"inner",isSelected:a.isSelected,caret:E})}}),ln("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new Xu(we(ke({},a),{body:Dt(a.args[1]),index:a.args[0]?Dt(a.args[0]):void 0}))}),ln(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=ke({},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 Ya(E[0]?Dt(E[0]):[new ya],E[1]?Dt(E[1]):[new ya],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}`:so(a.command,b,E)}}),ln(["brace","brack"],"",{infix:!0,createAtom:a=>new Ya(Dt(a.args[0]),Dt(a.args[1]),we(ke({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>gi([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),ln(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const E=a.args;return a.command==="\\choose"&&(y="(",b=")"),new Ya(Dt(E[0]),Dt(E[1]),we(ke({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>gi([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),ln(["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 Ya(Dt(E[0]),Dt(E[1]),we(ke({},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)}`}),ln("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new Ya(Dt(a.args[0]),Dt(a.args[1]),we(ke({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),ln(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:a=>new rl({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)],we(ke({},a),{limits:"auto",variant:"main"}))}),ln("smallint","",{ifMode:"math",createAtom:a=>new du("\u222B",we(ke({},a),{limits:"adjacent",variant:"main"}))});var B0={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"};ln(Object.keys(B0),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=B0[y.slice(1)];return new rl(b,we(ke({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),ln(["Re","Im"],"",{ifMode:"math",createAtom:a=>new du({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],we(ke({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),ln("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new Fn(we(ke({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),ln("the","{:value}",{createAtom:a=>new $n(we(ke({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const E=new Co({parent:y},a.style);let ee="";a.isSelected&&(ee+=" ML__selected");const ie=E.evaluate(a.args[0]);return new Hr(((b=vl(ie))!=null?b:"").split("").map(se=>new Hr(se,{type:"ord",classes:ee,mode:a.mode,isSelected:a.isSelected,style:ke({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=vl(a.args[0]))!=null?y:"\\relax"}`}}),ln("mathtip","{:auto}{:math}",{createAtom:a=>new bc(we(ke({},a),{body:Dt(a.args[0]),tooltip:Dt(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${$n.serialize([a.tooltip],we(ke({},y),{defaultMode:"math"}))}}`}),ln("texttip","{:auto}{:text}",{createAtom:a=>new bc(we(ke({},a),{body:Dt(a.args[0]),tooltip:Dt(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${$n.serialize([a.tooltip],we(ke({},y),{defaultMode:"text"}))}}`}),ln("error","{:math}",{createAtom:a=>new $n(we(ke({},a),{body:Dt(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),ln("ensuremath","{:math}",{createAtom:a=>new $n(we(ke({},a),{body:Dt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(we(ke({},y),{defaultMode:"math"}))}}`}),ln("color","{:value}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=vl(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),ln("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=vl(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),ln("boxed","{content:math}",{createAtom:a=>new pl(we(ke({},a),{body:Dt(a.args[0]),framecolor:{string:"black"}}))}),ln("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimBackgroundColor:(E=vl(y[0]))!=null?E:void 0,backgroundColor:b.toBackgroundColor((ee=y[0])!=null?ee:{string:"yellow"})}}}),ln("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new pl(we(ke({},a),{body:Dt(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(we(ke({},y),{defaultMode:"text"})):so(a.command,(b=vl(a.framecolor))!=null?b:"",(E=vl(a.backgroundcolor))!=null?E:"",a.bodyToLatex(we(ke({},y),{defaultMode:"text"})))}}),ln("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],E=Dt(a.args[1]);return b?new pl(we(ke({},a),{body:E,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new pl(we(ke({},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=vl(a.padding))!=null?b:""),a.border&&ie.push(`border: ${a.border}`),a.backgroundcolor&&ie.push((E=vl(a.backgroundcolor))!=null?E:""),ee+=`[${ie.join(",")}]`}return so(ee,a.bodyToLatex(y))}}),ln(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new $n(we(ke({},a),{body:Dt(a.args[0])})),render:(a,y)=>{const b=new Co({parent:y,mathstyle:a.command.slice(1)},a.style),E=$n.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):`{${gi([a.command,a.bodyToLatex(y)])}}`}),ln(["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]})}),ln("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),ln("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),ln("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),ln("selectfont","",{ifMode:"text",applyStyle:()=>({})}),ln("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),ln(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new $n(we(ke({},a),{body:Dt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),ln("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),ln("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),ln("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),ln("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),ln("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),ln("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),ln("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),ln("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),ln("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),ln("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),ln("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),ln("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),ln("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),ln("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),ln("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),ln("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),ln("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),ln("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),ln("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),ln("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),ln("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),ln("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),ln("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),ln("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),ln("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),ln("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),ln("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),ln(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),ln(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),ln("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),ln("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),ln("mbox","{:text}",{ifMode:"math",createAtom:a=>new $n(we(ke({},a),{type:"mord",body:Dt(a.args[0]),mode:"math"})),serialize:(a,y)=>so("\\mbox",a.bodyToLatex(we(ke({},y),{defaultMode:"text"})))}),ln("text","{:text}",{ifMode:"math",applyMode:"text"}),ln(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new $n(we(ke({},a),{body:Dt(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:""})}}),ln(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new $n(we(ke({},a),{body:Dt(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}}),ln("htmlData","{data:string}{content:auto}",{createAtom:a=>new $n(we(ke({},a),{body:Dt(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}}),ln(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new $n(we(ke({},a),{body:Dt(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}}),ln("em","{:rest}",{createAtom:a=>new $n(we(ke({},a),{body:Dt(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"})}),ln("emph","{:auto}",{createAtom:a=>new $n(we(ke({},a),{body:Dt(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 L0={"\\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}};ln(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new zr(we(ke({},a),{delim:(y=a.args[0])!=null?y:".",size:L0[a.command].size,delimType:L0[a.command].mclass}))}}),ln(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new Du(we(ke({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),ln(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new Du(we(ke({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),ln("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new $n(a),render:(a,y)=>{let b=0;const E=y.mathstyle.id;(E===hc||E===ec)&&(b=1),(E===pc||E===Ql)&&(b=2),(E===gu||E===Il)&&(b=3);const ee=Dt(a.args[b]);return $n.createBox(y,ee)},serialize:(a,y)=>`\\mathchoice{${$n.serialize(a.args[0],y)}}{${$n.serialize(a.args[1],y)}}{${$n.serialize(a.args[2],y)}}{${$n.serialize(a.args[3],y)}}`}),ln("mathop","{:auto}",{createAtom:a=>new $n(we(ke({},a),{type:"mop",body:Dt(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let E=$n.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 Hr(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[so(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)),gi(b)}}),ln(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new $n(we(ke({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:Dt(a.args[0])}))}),ln(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=Dt(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 $n(we(ke({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let E=$n.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 Hr(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[so(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)),gi(b)}}),ln(["char","unicode"],"{charcode:value}",{createAtom:a=>new $n(we(ke({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${vl((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)}}),ln("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new $n(a),render:(a,y)=>{var b,E,ee;const ie=new Co({parent:y,mathstyle:"textstyle"},a.style),se=ie.toEm((b=a.args[0])!=null?b:{dimension:0}),me=ie.toEm((E=a.args[1])!=null?E:{dimension:10}),ye=ie.toEm((ee=a.args[2])!=null?ee:{dimension:10}),Se=new Hr(null,{classes:"rule",type:"ord"});return Se.width=me,Se.height=ye+se,Se.depth=-se,Se.setStyle("border-right-width",me,"em"),Se.setStyle("border-top-width",ye,"em"),Se.setStyle("border-color",a.style.color),Se.setStyle("vertical-align",se,"em"),a.isSelected&&Se.setStyle("opacity","50%"),a.bind(ie,Se),a.caret&&(Se.caret=a.caret),Se.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${vl(a.args[0])}]`:""}{${vl(a.args[1])}}{${vl(a.args[2])}}`}),ln(["overline","underline"],"{:auto}",{createAtom:a=>new $n(we(ke({},a),{body:Dt(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),E=new Co({parent:y,mathstyle:"cramp"},a.style),ee=$n.createBox(E,a.body);if(!ee)return null;const ie=E.metrics.defaultRuleThickness/E.scalingFactor,se=new Hr(null,{classes:b+"-line"});se.height=ie,se.maxFontSize=ie*1.125*E.scalingFactor;let me;return b==="overline"?me=new cs({shift:0,children:[{box:ee},3*ie,{box:se},ie]}):me=new cs({top:ee.height,children:[ie,{box:se},3*ie,{box:ee}]}),a.caret&&(me.caret=a.caret),new Hr(me,{classes:b,type:"ignore"})}}),ln("overset","{:auto}{base:auto}",{createAtom:a=>{const y=Dt(a.args[1]);return new ts(we(ke({},a),{above:Dt(a.args[0]),body:y,skipBoundary:!1,boxType:Pc(y)}))},serialize:(a,y)=>so(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),ln("underset","{:auto}{base:auto}",{createAtom:a=>{const y=Dt(a.args[1]);return new ts(we(ke({},a),{below:Dt(a.args[0]),body:y,skipBoundary:!1,boxType:Pc(y)}))},serialize:(a,y)=>so(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),ln("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=Dt(a.args[2]);return new ts(we(ke({},a),{above:Dt(a.args[0]),below:Dt(a.args[1]),body:y,skipBoundary:!1,boxType:Pc(y)}))},serialize:(a,y)=>so(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),ln(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new ts(we(ke({},a),{body:Dt(a.args[2]),above:Dt(a.args[1]),below:Dt(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>so(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),ln("smash","[:string]{:auto}",{createAtom:a=>{var y,b,E,ee;return new Bl(we(ke({},a),{body:Dt(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}))}}),ln(["vphantom"],"{:auto}",{createAtom:a=>new Bl(we(ke({},a),{body:Dt(a.args[0]),isInvisible:!0,smashWidth:!0}))}),ln(["hphantom"],"{:auto}",{createAtom:a=>new Bl(we(ke({},a),{body:Dt(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),ln(["phantom"],"{:auto}",{createAtom:a=>new Bl(we(ke({},a),{body:Dt(a.args[0]),isInvisible:!0}))}),ln("not","{:math}",{createAtom:a=>{const y=Dt(a.args[0]);return y.length===0?new $n(we(ke({},a),{type:"mrel",value:"\uE020"})):new $n(we(ke({},a),{body:[new go(we(ke({},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{${$n.serialize(b.group,y)}}`:`\\not${$n.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":Pc(Dt(a.args[0])),ee=$n.createBox(y,a.body,{type:E});return a.caret&&(ee.caret=a.caret),a.bind(y,ee)}}),ln(["ne","neq"],"",{createAtom:a=>new $n(we(ke({},a),{type:"mrel",body:[new go(we(ke({},a),{body:"\uE020",align:"right",boxType:"rel"})),new $n(we(ke({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),ln("rlap","{:auto}",{createAtom:a=>new go(we(ke({},a),{body:Dt(a.args[0]),align:"right"}))}),ln("llap","{:auto}",{createAtom:a=>new go(we(ke({},a),{body:Dt(a.args[0]),align:"left"}))}),ln("mathrlap","{:math}",{createAtom:a=>new go(we(ke({},a),{body:Dt(a.args[0]),align:"left"}))}),ln("mathllap","{:math}",{createAtom:a=>new go(we(ke({},a),{body:Dt(a.args[0]),align:"left"}))}),ln("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new pl(we(ke({},a),{body:Dt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return so("\\raisebox",(b=vl(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),ln("raise","{:value}{:auto}",{createAtom:a=>{var y;return new pl(we(ke({},a),{body:Dt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return so("\\raise",(b=vl(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),ln("lower","{:value}{:auto}",{createAtom:a=>{var y;return new pl(we(ke({},a),{body:Dt(a.args[1]),padding:{dimension:0},offset:(y=Yu(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,E;return so("\\lower",(E=vl(Yu((b=a.offset)!=null?b:{dimension:0},-1)))!=null?E:"0pt",a.bodyToLatex(y))}}),Xe("0123456789/@.?!"),_t(65,90),_t(97,122),Xe([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Xe([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Xe([["\\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]]),Xe([["\\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"),Xe([["\\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"]]),Xe([["\\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"]]),Xe([["\\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"),Xe([["+",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"),Xe([["\\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"),Xe([["\\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]]),Xe([["=",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"),Xe([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Xe([["\\wp",8472],["\\aleph",8501]]),Xe([["\\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"),Xe([["\\ ",160],["~",160]],"space"),ln(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new Du(a)}),ln("space","",{createAtom:a=>new Du(a)}),Xe([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Xe([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Xe([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var F0="<mo>⁡</mo>",zh="<mo>⁢</mo>";function Wh(a){return a.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function As(a,y){return!a||!y.generateID?"":` extid="${a}"`}function kg(a,y,b){var E,ee,ie,se,me,ye,Se,Le,Ze,mt,It;let Wt=!1;y=y!=null?y:a.atoms.length;let On="",Vr="",Pn=a.atoms[a.index];const fr=(ee=(E=Pn.style)==null?void 0:E.variant)!=null?ee:"",Jr=(se=(ie=Pn.style)==null?void 0:ie.variantStyle)!=null?se:"";let wr="";if(fr||Jr){const ba=Jt(Pn.value,(me=Pn.style)==null?void 0:me.variant,(ye=Pn.style)==null?void 0:ye.variantStyle);if(ba!==Pn.value)return a.index+=1,On=`<mi${As(Pn.id,b)}>${ba}</mi>`,ad(On,a,b)||(a.mathML+=On,a.lastType="mi"),!0;wr=(Se={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"}[Jr+fr])!=null?Se:"",wr=` mathvariant="${wr}"`}const Zi={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(Pn.command==="!")return a.index+=1,On="<mo>!</mo>",ad(On,a,b)||(a.mathML+=On,a.lastType="mo"),!0;if(Zi[Pn.command]){a.index+=1;let ba=`<mi${As(Pn.id,b)}${wr}>${Zi[Pn.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(ba=zh+ba),ad(ba,a,b)||(a.mathML+=ba,a.lastType="mi"),!0}if(Pn.command==="\\operatorname")Vr=kf(Pn.body),a.index+=1;else if(fr||Jr)for(;a.index<y&&(Pn.type==="mord"||Pn.type==="macro")&&!Pn.isDigit()&&fr===((Ze=(Le=Pn.style)==null?void 0:Le.variant)!=null?Ze:"")&&Jr===((It=(mt=Pn.style)==null?void 0:mt.variantStyle)!=null?It:"");)Vr+=kf([Pn]),a.index+=1,Pn=a.atoms[a.index];else(Pn.type==="mord"||Pn.type==="macro")&&!Pn.isDigit()&&(Vr+=kf([Pn]),a.index+=1);if(Vr.length>0){Wt=!0,On=`<mi${wr}>${Vr}</mi>`;const ba=a.lastType;On.endsWith(">f</mi>")||On.endsWith(">g</mi>")?(On+=F0,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(On)?"mo":"mi",ad(On,a,b)||((ba==="mi"||ba==="mn"||ba==="mtext"||ba==="fence")&&(On=zh+On),a.mathML+=On)}return Wt}function Mg(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function Dg(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 ad(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 se=ns(ee.superscript,b);y.lastType="";const me=ns(ee.subscript,b);if(y.lastType=ie,!se&&!me)return!1;let ye="";return se&&me?ye=`<msubsup>${a}${me}${se}</msubsup>`:se?ye=`<msup>${a}${se}</msup>`:me&&(ye=`<msub>${a}${me}</msub>`),y.mathML+=ye,y.lastType="",!0}function Bg(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 ${As(a.atoms[E].id,b)}>${ee}</mtext>`,a.lastType="mtext",!0):!1}function Lg(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="",ie=Dg(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"+As(a.atoms[E].id,b)+">"+ee+"</mn>",ie<0&&Mg(a)&&(ie=a.index,a.index+=1),ad(ee,a,b)||(a.mathML+=ee,a.lastType="mn"),!0)}function Fg(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 se=!1,me=0;const ye=a.index;let Se=-1,Le=ye+1;for(;Le<y&&!se;)a.atoms[Le].type==="mopen"?me+=1:a.atoms[Le].type==="mclose"&&(me-=1),me===-1&&(se=!0,Se=Le),Le+=1;se&&(ee="<mrow>",ee+=qd(a.atoms[ye],b),ee+=ns(a.atoms,b,ye+1,Se),ee+=qd(a.atoms[Se],b),ee+="</mrow>",a.index=Se+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=zh),ad(ee,a,b)&&(E=!0,a.lastType="",ee=""),ie="fence")}return ee.length>0&&(E=!0,a.mathML+=ee,a.lastType=ie),E}function Pg(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",ie="";const se=a.atoms[a.index];if(!se)return!1;const me={"\\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(me[se.command]){a.index+=1;const ye=`<mo${As(se.id,b)}>${me[se.command]}</mo>`;return ad(ye,a,b)||(a.mathML+=ye,a.lastType="mo"),!0}if(a.index<y&&(se.type==="mbin"||se.type==="mrel"))ee+=Cp(a.atoms[a.index],b),a.index+=1,ie="mo";else if(a.index<y&&(se.type==="mop"||se.type==="operator"||se.type==="extensible-symbol")){if(se.subsupPlacement==="over-under"&&(se.superscript||se.subscript)){const ye=qd(se,b);return se.superscript&&se.subscript?(ee+="<munderover>"+ye,ee+=ns(se.subscript,b),ee+=ns(se.superscript,b),ee+="</munderover>"):se.superscript?(ee+="<mover>"+ye,ee+=ns(se.superscript,b),ee+="</mover>"):se.subscript&&(ee+="<munder>"+ye,ee+=ns(se.subscript,b),ee+="</munder>"),a.mathML+=ee,a.lastType="mo",a.index+=1,!0}{const ye=a.atoms[a.index],Se=ye.value==="\\operatorname",Le=Se?'<mi class="MathML-Unit"'+As(ye.id,b)+">"+kf(ye.value)+"</mi>":qd(ye,b);ee+=Le,!Se&&!/^<mo>(.*)<\/mo>$/.test(Le)?(ee+=F0,ie="applyfunction"):ie=Se?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ee)&&(ee=zh+ee),a.index+=1}return ee.length>0&&(E=!0,ad(ee,a,b)||(a.mathML+=ee,a.lastType=ie)),E}function ns(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 $n)ee.mathML=Cp(a,y);else if(Array.isArray(a)){ee.atoms=a;let ie=0;for(E=E||(a?a.length:0);ee.index<E;)if(Bg(ee,E,y)||Lg(ee,E,y)||kg(ee,E,y)||Pg(ee,E,y)||Fg(ee,E,y))ie+=1;else if(ee.index<E){let se=Cp(ee.atoms[ee.index],y);ee.lastType==="mn"&&se.length>0&&ee.atoms[ee.index].type==="genfrac"&&(se="<mo>⁤</mo>"+se),ee.atoms[ee.index].type==="genfrac"?ee.lastType="mfrac":ee.lastType="",ee.index+=1,ad(se,ee,y)?ie+=1:se.length>0&&(ee.mathML+=se,ie+=1)}ie>1&&(ee.mathML="<mrow>"+ee.mathML+"</mrow>")}return ee.mathML}function qd(a,y){let b="";const E=kf(a.value);return E&&(b="<mo"+As(a.id,y)+">"+E+"</mo>"),b}function kf(a){if(!a)return"";if(typeof a=="string")return Wh(a);if(!Array.isArray(a)&&typeof a.body=="string")return Wh(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return Wh(y)}function Cp(a,y){var b,E,ee,ie,se,me,ye,Se,Le,Ze,mt,It,Wt,On,Vr,Pn,fr,Jr,wr,Zi,ba,aa;if(a.mode==="text")return`<mi${As(a.id,y)}>${a.value}</mi>`;const _o={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"},Cs={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let ai="",lc="",jc,wc,$l,uc,Ku,ks;const{command:wl}=a;if(a.command==="\\error")return`<merror${As(a.id,y)}>${ns(a.body,y)}</merror>`;const eu={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Zc={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(a.type){case"first":break;case"group":case"root":ai=ns(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(ai+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(ai+="<mo>"+(eu[a.leftDelim]||a.leftDelim)+"</mo>")),ai+="<mtable",a.colFormat){for(ai+=' columnalign="',$l=0;$l<a.colFormat.length;$l++)a.colFormat[$l].align&&(ai+={l:"left",c:"center",r:"right"}[a.colFormat[$l].align]+" ");ai+='"'}for(ai+=">",wc=0;wc<a.array.length;wc++){for(ai+="<mtr>",jc=0;jc<a.array[wc].length;jc++)ai+="<mtd>"+ns(a.array[wc][jc],y)+"</mtd>";ai+="</mtr>"}ai+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(ai+="<mo>"+(eu[a.leftDelim]||a.rightDelim)+"</mo>"),ai+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(ai+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(ai+="<mo"+As(a.id,y)+">"+(eu[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(ai+="<mfrac>",ai+=ns(a.above,y)||"<mi> </mi>",ai+=ns(a.below,y)||"<mi> </mi>",ai+="</mfrac>"):(ai+="<mtable"+As(a.id,y)+">",ai+="<mtr>"+ns(a.above,y)+"</mtr>",ai+="<mtr>"+ns(a.below,y)+"</mtr>",ai+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(ai+="<mo"+As(a.id,y)+">"+(eu[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(ai+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(ai+="<msqrt"+As(a.id,y)+">",ai+=ns(a.body,y),ai+="</msqrt>"):(ai+="<mroot"+As(a.id,y)+">",ai+=ns(a.body,y),ai+=ns(a.above,y),ai+="</mroot>");break;case"leftright":const Gc=a,Yc=Gc.leftDelim;ai="<mrow>",Yc&&Yc!=="."&&(ai+=`<mo${As(a.id,y)}>${(b=eu[Yc])!=null?b:Yc}</mo>`),a.body&&(ai+=ns(a.body,y));const Qc=Gc.matchingRightDelim();Qc&&Qc!=="."&&(ai+=`<mo${As(a.id,y)}>${(E=eu[Qc])!=null?E:Qc}</mo>`),ai+="</mrow>";break;case"sizeddelim":case"delim":ai+=`<mo${As(a.id,y)}>${eu[a.value]||a.value}</mo>`;break;case"accent":ai+='<mover accent="true"'+As(a.id,y)+">",ai+=ns(a.body,y),ai+="<mo>"+(Zc[wl]||a.accent)+"</mo>",ai+="</mover>";break;case"line":case"overlap":break;case"overunder":Ku=a.above,uc=a.below,(a.svgAbove||Ku)&&(a.svgBelow||uc)?ks=a.body:Ku&&Ku.length>0?(ks=a.body,(ie=(ee=a.body)==null?void 0:ee[0])!=null&&ie.below?(uc=a.body[0].below,ks=a.body[0].body):((me=(se=a.body)==null?void 0:se[0])==null?void 0:me.type)==="first"&&((Se=(ye=a.body)==null?void 0:ye[1])!=null&&Se.below)&&(uc=a.body[1].below,ks=a.body[1].body)):uc&&uc.length>0&&(ks=a.body,(Ze=(Le=a.body)==null?void 0:Le[0])!=null&&Ze.above?(Ku=a.body[0].above,ks=a.body[0].body):((It=(mt=a.body)==null?void 0:mt[0])==null?void 0:It.type)==="first"&&((On=(Wt=a.body)==null?void 0:Wt[1])!=null&&On.above)&&(Ku=a.body[1].overscript,ks=a.body[1].body)),(a.svgAbove||Ku)&&(a.svgBelow||uc)?(ai+=`<munderover ${As(a.id,y)}>`,ai+=(Vr=_o[a.svgBody])!=null?Vr:ns(ks,y),ai+=(Pn=_o[a.svgBelow])!=null?Pn:ns(uc,y),ai+=(fr=_o[a.svgAbove])!=null?fr:ns(Ku,y),ai+="</munderover>"):a.svgAbove||Ku?(ai+=`<mover ${As(a.id,y)}>`+((Jr=_o[a.svgBody])!=null?Jr:ns(ks,y)),ai+=(wr=_o[a.svgAbove])!=null?wr:ns(Ku,y),ai+="</mover>"):(a.svgBelow||uc)&&(ai+=`<munder ${As(a.id,y)}>`+((Zi=_o[a.svgBody])!=null?Zi:ns(ks,y)),ai+=(ba=_o[a.svgBelow])!=null?ba:ns(uc,y),ai+="</munder>");break;case"placeholder":ai+="?";break;case"mord":{ai=typeof a.value=="string"?a.value:wl,wl==="\\char"?ai="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":ai.length>0&&ai.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?ai="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?ai=a.value.charAt(0):(console.error("Did not expect this"),ai=""));const Lc=/\d/.test(ai)?"mn":"mi";ai=`<${Lc}${As(a.id,y)}>${Wh(ai)}</${Lc}>`;break}case"mbin":case"mrel":case"minner":ai=qd(a,y);break;case"mpunct":ai='<mo separator="true"'+As(a.id,y)+">"+wl+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(ai="<mo"+As(a.id,y)+">",ai+=wl==="\\operatorname"?a.body:wl||a.body,ai+="</mo>");break;case"box":ai='<menclose notation="box"',a.backgroundcolor&&(ai+=' mathbackground="'+a.backgroundcolor+'"'),ai+=As(a.id,y)+">"+ns(a.body,y)+"</menclose>";break;case"spacing":ai+='<mspace width="'+((aa=Cs[wl])!=null?aa:0)+'em"/>';break;case"enclose":ai='<menclose notation="';for(const Lc in a.notation)Object.prototype.hasOwnProperty.call(a.notation,Lc)&&a.notation[Lc]&&(ai+=lc+Lc,lc=" ");ai+=As(a.id,y)+'">'+ns(a.body,y)+"</menclose>";break;case"prompt":ai='<menclose notation="roundexbox""">'+ns(a.body,y)+"</menclose>";break;case"space":ai+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":ai+=qd(a,y);break;case"mclose":ai+=qd(a,y);break;case"macro":{const Lc=a.command+kf(a.macroArgs);Lc&&(ai+=`<mo ${As(a.id,y)}>${Lc}</mo>`)}break;case"latexgroup":ai+=ns(a.body,y);break;case"latex":ai+="<mtext"+As(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":ai+=ns(a.body,y);break;case"text":ai+=`<mtext ${As(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${As(a.id,y)} displaystyle="true">${ns(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${As(a.id,y)} displaystyle="false">${ns(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return ai}var Mf={"\\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"},Ep={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 Ig(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function nh(a){let y=0;if(ve(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Tg(a){if(ve(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function P0(a){let y="";if(ve(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Ng(a){return a?a.map(y=>y.value).join(""):""}function Bo(a,y){var b,E,ee,ie,se;function me(Le){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(Le)?` <say-as interpret-as="character">${Le}</say-as>`:/[A-Z]/.test(Le)?`capital <say-as interpret-as="character">${Le.toLowerCase()}</say-as>`:Le:/[a-z]/.test(Le)?" '"+Le.toUpperCase()+"'":/[A-Z]/.test(Le)?" 'capital "+Le.toUpperCase()+"'":Le}function ye(Le){return"<emphasis>"+Le+"</emphasis>"}if(!y)return"";let Se="";if(ve(y)){let Le=!1,Ze=!1;for(let mt=0;mt<y.length;mt++)y[mt].type!=="first"&&(y[mt].mode!=="text"&&(Ze=!1),mt<y.length-2&&y[mt].type==="mopen"&&y[mt+2].type==="mclose"&&y[mt+1].type==="mord"?(Se+=" of ",Se+=ye(Bo(a,y[mt+1])),mt+=2):y[mt].mode==="text"?Ze?Se+=(b=y[mt].value)!=null?b:" ":(Ze=!0,Se+=Bo("text",y[mt])):y[mt].isDigit()?Le?Se+=y[mt].asDigit():(Le=!0,Se+=Bo(a,y[mt])):(Le=!1,Se+=Bo(a,y[mt])))}else if(y.mode==="text")y.id&&a==="math"&&(Se+='<mark name="'+y.id.toString()+'"/>'),Se+=y.value;else{y.id&&a==="math"&&(Se+='<mark name="'+y.id.toString()+'"/>');let Le="",Ze="",mt="",It=!1;const{command:Wt}=y;switch(Wt){case"\\vec":return"vector "+Bo(a,y.body);case"\\acute":return Bo(a,y.body)+" acute";case"\\grave":return Bo(a,y.body)+" grave";case"\\dot":return"dot over"+Bo(a,y.body);case"\\ddot":return"double dot over"+Bo(a,y.body);case"\\mathring":return"ring over"+Bo(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+Bo(a,y.body);case"\\bar":return Bo(a,y.body)+" bar";case"\\breve":return Bo(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Bo(a,y.body);case"\\hat":case"\\widehat":return"hat over"+Bo(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Bo(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+Bo(a,y.body)}switch(y.type){case"prompt":const On=y.body.length>1?'start input . <break time="500ms"/> '+Bo(a,y.body)+'. <break time="500ms"/> end input':"blank";Se+=' <break time="300ms"/> '+On+'. <break time="700ms"/>'+((E=y.correctness)!=null?E:"")+' . <break time="700ms"/> ';break;case"array":const Vr=y.array,Pn=y.environmentName;if(Object.keys(Ep).includes(Pn)){Se+=` begin ${Ep[Pn]} `;for(let wr=0;wr<Vr.length;wr++){wr>0&&(Se+=","),Se+=` row ${wr+1} `;for(let Zi=0;Zi<Vr[wr].length;Zi++)Zi>0&&(Se+=","),Se+=` column ${Zi+1}: `,Se+=Bo("math",Vr[wr][Zi])}Se+=` end ${Ep[Pn]} `}break;case"group":Wt==="\\ne"?Se+=" not equal ":(Wt==="\\not"&&(Se+=" not "),Se+=Bo("math",y.body));break;case"root":Se+=Bo("math",y.body);break;case"genfrac":if(Le=Bo("math",y.above),Ze=Bo("math",y.below),nh(y.above)&&nh(y.below)){const Zi={"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 "}[P0(y.above)+"/"+P0(y.below)];Zi?Se=Zi:Se+=Le+" over "+Ze}else Se+=' the fraction <break time="150ms"/>'+Le+' over <break time="150ms"/>'+Ze+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(mt=Bo("math",y.body),y.hasEmptyBranch("above"))Se+=nh(y.body)?" the square root of "+mt+" , ":' the square root of <break time="200ms"/>'+mt+'. <break time="200ms"/> End square root';else{let wr=Bo("math",y.above);wr=wr.trim();const Zi=wr.replace(/<mark([^/]*)\/>/g,"");Zi==="3"?Se+=' the cube root of <break time="200ms"/>'+mt+'. <break time="200ms"/> End cube root':Zi==="n"?Se+=' the nth root of <break time="200ms"/>'+mt+'. <break time="200ms"/> End root':Se+=' the root with index: <break time="200ms"/>'+wr+', of <break time="200ms"/>'+mt+'. <break time="200ms"/> End root'}break;case"leftright":{const wr=y;Se+=(ee=wr.leftDelim?Mf[wr.leftDelim]:void 0)!=null?ee:wr.leftDelim,Se+=Bo("math",y.body),Se+=(ie=wr.rightDelim?Mf[wr.rightDelim]:void 0)!=null?ie:wr.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const fr=Wt.replace(/^\\/g,""),Jr=wi()[fr];Jr&&(Jr!=null&&Jr.expand?Se+=Bo("math",y.body):Se+=`${fr} `);break;case"placeholder":Se+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(Wt==="\\mathbin"||Wt==="\\mathrel"||Wt==="\\mathopen"||Wt==="\\mathclose"||Wt==="\\mathpunct"||Wt==="\\mathord"||Wt==="\\mathinner"){Se=Bo(a,y.body);break}let wr=y.isDigit()?y.asDigit():y.value,Zi=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(Zi=y.value,wr=Zi),a==="text")Se+=wr;else{if(y.type==="mbin"&&(Se+='<break time="150ms"/>'),wr){const ba=Mf[wr]||(Zi?Mf[Zi.trim()]:"");if(ba)Se+=" "+ba;else{const aa=Zi?Ig(Zi.trim()):"";Se+=aa||me(wr)}}else Se+=Bo("math",y.body);y.type==="mbin"&&(Se+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const wr=y.command;if(wr==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Zi=Bo("math",y.superscript);Zi=Zi.trim();let ba=Bo("math",y.subscript);ba=ba.trim(),Se+=' the summation from <break time="200ms"/>'+ba+'<break time="200ms"/> to <break time="200ms"/>'+Zi+'<break time="200ms"/> of <break time="150ms"/>',It=!0}else if(y.hasEmptyBranch("subscript"))Se+=" the summation of";else{let Zi=Bo("math",y.subscript);Zi=Zi.trim(),Se+=' the summation from <break time="200ms"/>'+Zi+'<break time="200ms"/> of <break time="150ms"/>',It=!0}else if(wr==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Zi=Bo("math",y.superscript);Zi=Zi.trim();let ba=Bo("math",y.subscript);ba=ba.trim(),Se+=' the product from <break time="200ms"/>'+ba+'<break time="200ms"/> to <break time="200ms"/>'+Zi+'<break time="200ms"/> of <break time="150ms"/>',It=!0}else if(y.hasEmptyBranch("subscript"))Se+=" the product of ";else{let Zi=Bo("math",y.subscript);Zi=Zi.trim(),Se+=' the product from <break time="200ms"/>'+Zi+'<break time="200ms"/> of <break time="150ms"/>',It=!0}else if(wr==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Zi=Bo("math",y.superscript);Zi=Zi.trim();let ba=Bo("math",y.subscript);ba=ba.trim(),Se+=' the integral from <break time="200ms"/>'+ye(ba)+'<break time="200ms"/> to <break time="200ms"/>'+ye(Zi)+' <break time="200ms"/> of ',It=!0}else Se+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const Zi=(se=Mf[y.value])!=null?se:y.command?Mf[y.command]:void 0;Se+=Zi||" "+y.value}else y.command&&(y.command==="\\mathop"?Se+=Bo("math",y.body):y.command==="\\operatorname"?Se+=Ng(y.body):Se+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":mt=Bo("math",y.body),Se+=" crossed out "+mt+". End crossed out.";break;case"space":case"spacing":break}if(!It&&!y.hasEmptyBranch("superscript")){let On=Bo(a,y.superscript);On=On.trim();const Vr=On.replace(/<[^>]*>/g,"");if(nh(y.superscript)){if(a==="math"){const Pn=Tg(y.superscript);Pn&&(Se+='<mark name="'+Pn+'"/>')}Vr==="\u2032"?Se+=" prime ":Vr==="2"?Se+=" squared ":Vr==="3"?Se+=" cubed ":Number.isNaN(Number.parseInt(Vr))?Se+=" to the "+On+"; ":Se+=' to the <say-as interpret-as="ordinal">'+Vr+"</say-as> power; "}else Number.isNaN(Number.parseInt(Vr))?Se+=" raised to the "+On+"; ":Se+=' raised to the <say-as interpret-as="ordinal">'+Vr+"</say-as> power; "}if(!It&&!y.hasEmptyBranch("subscript")){let On=Bo("math",y.subscript);On=On.trim(),Se+=nh(y.subscript)?" sub "+On:" subscript "+On+". End subscript. "}}return Se}function Df(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ee=ns(a);if(ee){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=we(ke({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=we(ke({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=we(ke({},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 se="";try{se=ie.toSpeech(ee)}catch(me){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",me)}return se}return""}let E=Bo("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"&&Qe()==="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 rh={"\\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"},ih={"\\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 Og(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 xl(a){var y,b,E,ee,ie,se,me,ye,Se,Le,Ze,mt,It;if(!a)return"";if(ve(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(xl).join("");if(a[0].mode==="text"){let Jr=0,wr="";for(;((y=a[Jr])==null?void 0:y.mode)==="text";)wr+=a[Jr].body?xl(a[Jr].body):a[Jr].value,Jr++;return`"${wr}" ${xl(a.slice(Jr))}`}let Pn=0;const fr=[];for(;a[Pn]&&a[Pn].mode==="math";){let Jr="";for(;a[Pn]&&a[Pn].type==="mord"&&/\d/.test(a[Pn].value);)Jr+=a[Pn++].value;Jr?fr.push(Jr):fr.push(xl(a[Pn++]))}return fr.push(xl(a.slice(Pn))),Og(fr)}if(a.mode==="text")return`"${a.value}"`;let Wt="";const{command:On}=a;let Vr;if(On==="\\placeholder")return`(${xl(a.body)})`;switch(a.type){case"accent":const Pn={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[On];Wt=`${Pn!=null?Pn:""} ${xl(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(aa=>aa.value).join("");case"group":case"root":Wt=(b=rh[On])!=null?b:xl(a.body);break;case"genfrac":{const aa=a;(aa.leftDelim||aa.rightDelim)&&(Wt=aa.leftDelim==="."||!aa.leftDelim?"{:":aa.leftDelim),aa.hasBarLine?(Wt+="(",Wt+=xl(aa.above),Wt+=")/(",Wt+=xl(aa.below),Wt+=")"):(Wt+="("+xl(aa.above)+"),",Wt+="("+xl(aa.below)+")"),(aa.leftDelim||aa.rightDelim)&&(Wt+=aa.rightDelim==="."||!aa.rightDelim?"{:":aa.rightDelim)}break;case"surd":Wt+=a.hasEmptyBranch("above")?"sqrt("+xl(a.body)+")":"root("+xl(a.above)+")("+xl(a.body)+")";break;case"latex":Wt=a.value;break;case"leftright":{const aa=a,_o=aa.leftDelim;Wt+=_o==="."||!_o?"{:":_o,Wt+=xl(aa.body);const Cs=aa.matchingRightDelim();Wt+=Cs==="."||!Cs?":}":Cs}break;case"sizeddelim":case"delim":Wt=a.value;break;case"overlap":break;case"overunder":break;case"mord":Wt=(ee=(E=rh[On])!=null?E:On)!=null?ee:typeof a.value=="string"?a.value:"",Wt.startsWith("\\")&&(Wt+=" "),Vr=On?On.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,Vr?Wt=String.fromCodePoint(Number.parseInt("0x"+Vr[1])):Wt.length>0&&Wt.startsWith("\\")&&(Wt=typeof a.value=="string"?a.value.charAt(0):a.command),Wt=Rg(Wt,a.style);break;case"mbin":case"mrel":case"minner":Wt=(se=(ie=rh[On])!=null?ie:ih[On])!=null?se:a.value;break;case"mopen":case"mclose":Wt=a.value;break;case"mpunct":Wt=(me=ih[On])!=null?me:On;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(ih[On]?Wt=ih[On]:Wt=On==="\\operatorname"?xl(a.body):(ye=a.value)!=null?ye:On,Wt+=" ");break;case"array":const fr=a.array,Jr=a.environmentName,wr=(Se={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Jr])!=null?Se:["(",")"],Zi=[];for(const aa of fr){const _o=[];for(const Cs of aa)_o.push(wr[0]+xl(Cs)+wr[1]);Zi.push(_o.join(","))}const ba=(Le={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Jr])!=null?Le:["(",")"];Wt=ba[0]+Zi.join(",")+ba[1];break;case"box":break;case"spacing":Wt=(Ze=rh[On])!=null?Ze:" ";break;case"enclose":Wt="("+xl(a.body)+")";break;case"space":Wt=" ";break;case"subsup":Wt="";break;case"macro":Wt=(It=(mt=rh[On])!=null?mt:ih[On])!=null?It:xl(a.body);break}if(!a.hasEmptyBranch("subscript")){Wt+="_";const Pn=xl(a.subscript);Wt+=Pn.length!==1?`(${Pn})`:Pn}if(!a.hasEmptyBranch("superscript")){Wt+="^";const Pn=xl(a.superscript);Wt+=Pn.length!==1?`(${Pn})`:Pn}return Wt}function Rg(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 ql(a,y){var b,E;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ee=new Co({from:we(ke({},vd()),{renderPlaceholder:()=>new Hr(160,{maxFontSize:1}),letterShapeStyle:(E=y==null?void 0:y.letterShapeStyle)!=null?E:"tex"}),mathstyle:y.mathstyle}),se=new $n({mode:"math",type:"root",body:je(a,{context:ee,parseMode:"math",mathstyle:y.mathstyle})}).render(ee);return se?(dd(Dc(se,ee)),fd(se,{classes:"ML__latex"}).toMarkup()):""}function M1(a){return At(a,{context:vd()})}function _g(a,y={}){return ns(je(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function Kg(a){const y=je(a,{parseMode:"math",mathstyle:"displaystyle"});return Df(y)}var Vh;function Hg(a){var y,b;if(!Vh){const E=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;E?Vh=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=Vh==null?void 0:Vh.box(a).latex)!=null?b:""}function D1(a,y="math"){return xl(new $n({type:"root",body:je(a,{parseMode:y})}))}function B1(a){return nc(a,{format:"ascii-math"})[1]}function Sp(a){if(typeof a=="string"){const y=zg(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?Vg(a):"a"in a?I0(a):a}function Bf(a){return a<0?0:a>255?255:Math.round(a)}function zg(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 Ap(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 Wg(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.sqrt(b*b+E*E),se=Math.atan2(E,b)*180/Math.PI,me={L:y,C:ee,H:se};return a.alpha!==void 0&&(me.alpha=a.alpha),me}function kp(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),se=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*E,3),me=4.076741661347994*ee-3.307711590408193*ie+.230969928729428*se,ye=-1.2684380040921763*ee+2.6097574006633715*ie-.3413193963102197*se,Se=-.004196086541837188*ee-.7034186144594493*ie+1.7076147009309444*se,Le=Ze=>{const mt=Math.abs(Ze);return mt<=.0031308?Ze*12.92:(Math.sign(Ze)||1)*(1.055*Math.pow(mt,1/2.4)-.055)};return[Le(me),Le(ye),Le(Se)]}function Mp(a){const[y,b,E]=a;return y>=0&&y<=1&&b>=0&&b<=1&&E>=0&&E<=1}function Dp(a,y){let[b,E,ee]=a;return b=Bf(b*255),E=Bf(E*255),ee=Bf(ee*255),y!==void 0?{r:b,g:E,b:ee,alpha:y}:{r:b,g:E,b:ee}}function I0(a){let[y,b,E]=kp(a);if(Mp([y,b,E]))return Dp([y,b,E],a.alpha);const ee=Wg(a);if(ee.C=0,[y,b,E]=kp(Ap(ee)),!Mp([y,b,E]))return Dp([y,b,E],a.alpha);let ie=0,se=a.L,me=(ie+se)/2;ee.C=me;const ye=.36/Math.pow(2,12);for(;se-ie>ye;)me=(ie+se)/2,ee.C=me,[y,b,E]=kp(Ap(ee)),Mp([y,b,E])?ie=me:se=me;return Dp([y,b,E],a.alpha)}function Vg(a){return I0(Ap(a))}function T0(a,y){const b=Sp(a),E=Sp(y),ee=.56,ie=.57,se=.62,me=.65,ye=.022,Se=1.414,Le=.1,Ze=5e-4,mt=1.14,It=.027,Wt=1.14,On=.027;function Vr(aa){return aa>=ye?aa:aa+Jc(ye-aa,Se)}function Pn(aa){return(aa<0?-1:1)*Math.pow(Math.abs(aa),2.4)}const fr=Vr(Pn(E.r/255)*.2126729+Pn(E.g/255)*.7151522+Pn(E.b/255)*.072175),Jr=Vr(Pn(b.r/255)*.2126729+Pn(b.g/255)*.7151522+Pn(b.b/255)*.072175);let wr,Zi,ba;return Math.abs(Jr-fr)<Ze?Zi=0:Jr>fr?(wr=Jc(Jr,ee)-Jc(fr,ie),Zi=wr*mt):(wr=Jc(Jr,me)-Jc(fr,se),Zi=wr*Wt),Math.abs(Zi)<Le?ba=0:Zi>0?ba=Zi-On:ba=Zi+It,ba*100}function N0(a,y,b){b!=null||(b="#fff"),y!=null||(y="#000");const E=T0(a,b),ee=T0(a,y);return Math.abs(E)>Math.abs(ee)?b:y}function Ug(a){const y=Sp(a);let b=((1<<24)+(Bf(y.r)<<16)+(Bf(y.g)<<8)+Bf(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 Xs(a){const y=O0(a);let b="";for(const E of y){if(typeof E.value!="string")return"";b+=E.value}return b}function O0(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function jg(a,y){const b=O0(a);if(b.length!==1)return!1;const E=id[y];return E?!!E.test(b[0].value):!1}function Zg(a,y){return Xs(a).length>0}function Gg(a){return[Bp(a,"double-struck","mathbb","tooltip.blackboard"),Bp(a,"fraktur","mathfrak","tooltip.fraktur"),Bp(a,"calligraphic","mathcal","tooltip.caligraphic"),Lp(a,"up","mathrm","tooltip.roman-upright"),Lp(a,"bold","mathbf","tooltip.bold"),Lp(a,"italic","mathit","tooltip.italic")]}function Yg(a){return[{label:()=>ql(`\\vec{${Xs(a)}}`),visible:()=>Xs(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>ql(`\\overrightarrow{${Xs(a)}}`),visible:()=>Xs(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>ql(`\\overleftarrow{${Xs(a)}}`),visible:()=>Xs(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>ql(`\\dot{${Xs(a)}}`),visible:()=>Xs(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>ql(`\\ddot{${Xs(a)}}`),visible:()=>Xs(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>ql(`\\bar{${Xs(a)}}`),visible:()=>Xs(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>ql(`\\overline{${Xs(a)}}`),visible:()=>Xs(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>ql(`\\overgroup{${Xs(a)}}`),visible:()=>Xs(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>ql(`\\overbrace{${Xs(a)}}`),visible:()=>Xs(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>ql(`\\underline{${Xs(a)}}`),visible:()=>Xs(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>ql(`\\undergroup{${Xs(a)}}`),visible:()=>Xs(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>ql(`\\underbrace{${Xs(a)}}`),visible:()=>Xs(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Qg(a){return[{label:()=>ql(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>ql(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>ql(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Jg(a){const y=[];for(const b of Object.keys(zt))y.push({class:(Ug(N0(zt[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${zt[b]} "></span>`,ariaLabel:()=>{var E;return(E=ot(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 Xg(a){const y=[];for(const b of Object.keys(Xt))y.push({class:(N0(Xt[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Xt[b]} "></span>`,ariaLabel:()=>{var E;return(E=ot(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 qg=class extends E0{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 $g(a){const y=[];for(let b=1;b<=5;b++)for(let E=1;E<=5;E++)y.push({onCreate:(ee,ie)=>new qg(ee,ie,b,E),label:"\u2610",tooltip:()=>ot("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 e1(a){return[{label:()=>ot("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>$d(a)},{label:()=>ot("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>$d(a)},{label:()=>ot("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>$d(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,E]=n1(a);return b<y.maxColumns}},{label:()=>ot("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>$d(a)},{type:"divider"},{label:()=>ot("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>$d(a)},{label:()=>ot("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>$d(a)},{type:"divider"},{label:()=>ot("menu.borders"),visible:()=>(t1(a)||$d(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>ah(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>ah(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>ah(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>ah(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>ah(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>ot("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:$g(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>ot("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>ot("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{yf(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>ot("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{yf(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>ot("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>ot("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:Gg(a),submenuClass:"variant-submenu"},{label:()=>ot("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Xg(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>ot("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Jg(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>ot("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Yg(a),submenuClass:"variant-submenu"},{label:()=>ot("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&Xs(a).length>0,submenu:Qg(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>ot("menu.evaluate"),id:"ce-evaluate",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const y=r1(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:()=>ot("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?ot("menu.solve-for",ql(b)):ot("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 se;return(se=ie.simplify().latex)!=null?se:""});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:()=>ot("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>ot("menu.copy"),id:"copy",submenu:[{label:()=>ot("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>Ha.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>ot("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>Ha.copyToClipboard(a,"ascii-math")},{label:()=>ot("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>Ha.copyToClipboard(a,"math-ml")}]},{label:()=>ot("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>ot("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function $d(a){var y;return!!((y=a.model.parentEnvironment)!=null&&y.array)}function t1(a){return a.model.at(a.model.position).type==="array"}function n1(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 ah(a,y){vh(a),a.flushInlineShortcutBuffer(),t0(a.model,y),yl(a)}function r1(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 Bp(a,y,b,E){return{label:()=>ql(`\\${b}{${Xs(a)}}`),tooltip:()=>{var ee;return(ee=ot(E))!=null?ee:E},visible:()=>jg(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 Lp(a,y,b,E){return{label:()=>ql(`\\${b}{${Xs(a)}}`),tooltip:()=>{var ee;return(ee=ot(E))!=null?ee:E},visible:()=>Zg(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 Lf(a,y){return a+Df(y)}qu({speak:(a,y,b)=>i1(a,y,b)},{target:"mathfield"});function i1(a,y,b){var E,ee;b=b!=null?b:{withHighlighting:!1};const{model:ie}=a;function se(Le){let Ze=null;switch(Le){case"all":Ze=ie.root;break;case"selection":Ze=ie.getAtoms(ie.selection);break;case"left":{Ze=ie.getAtoms(ie.offsetOf(ie.at(ie.position).leftSibling),ie.position);break}case"right":{Ze=ie.getAtoms(ie.position,ie.offsetOf(ie.at(ie.position).rightSibling));break}case"group":Ze=ie.getAtoms(ie.getSiblingsRange(ie.position));break;case"parent":{const{parent:mt}=ie.at(ie.position);mt!=null&&mt.parent?Ze=mt:Ze=ie.root;break}default:Ze=ie.root}return Ze}function me(Le){let Ze="";switch(Le){case"all":console.log("Internal failure: speak all failed");break;case"selection":Ze="no selection";break;case"left":Ze="at start";break;case"right":Ze="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Ze="no parent";break;default:console.log('unknown speak_ param value: "'+Le+'"');break}return Ze}const ye=se(y);if(ye===null)return(ee=(E=window.MathfieldElement).speakHook)==null||ee.call(E,me(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const Se=Df(ye);return bt()&&b.withHighlighting?(Ad().readAloudMathfield=a,Ud(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,Se)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(Se),!1}function a1(a){var y,b;if(!bt()){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,se)=>{if(ie)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${ie}`);else if(se!=null&&se.AudioStream){const me=new Uint8Array(se.AudioStream),ye=new Blob([me.buffer],{type:"audio/mpeg"}),Se=URL.createObjectURL(ye);new Audio(Se).play().catch(Ze=>console.log(Ze))}else console.log("polly.synthesizeSpeech():",se)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function R0(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 o1(a,y,b,E){let ee="";if(y==="plonk")window.MathfieldElement.playSound("plonk"),a.flushInlineShortcutBuffer();else if(y==="delete")ee=Lf("deleted: ",E);else if(y==="focus"||y.includes("move"))ee=s1(a.model,b)+(a.model.selectionIsCollapsed?"":"selected: ")+l1(a.model);else if(y==="replacement")ee=Lf("",a.model.at(a.model.position));else if(y==="line"){const ie=Lf("",a.model.root);a.keyboardDelegate.setAriaLabel(ie)}else ee=E?Lf(y+" ",E):y;if(ee){const ie=a.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";a.ariaLiveText.textContent=ee+ie}}function s1(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 ${R0(ee)};`,ee=ee.parent;return E}function l1(a){if(!a.selectionIsCollapsed)return Lf("",a.getAtoms(a.selection));let y="";const b=a.at(a.position),E=R0(b);return b.isFirstSibling&&(y=(E?"start of "+E:"unknown")+": "),b.isLastSibling?b.isFirstSibling||(y+=E?"end of "+E:"unknown"):y+=Lf("",b),y}var u1=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=Bu(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 Le=ie.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(Le))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((E=this.at(Le-1))!=null&&E.parentPrompt){this._anchor=this.normalizeOffset(Le-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ee=this.at(Le+1))!=null&&ee.parentPrompt){this._anchor=this.normalizeOffset(Le+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=Le,this._position=Le,this._selection=ie;return}const se=Tl(ie);ie.direction==="backward"?[this._position,this._anchor]=se:[this._anchor,this._position]=se;const me=this.at(se[0]+1),ye=this.at(se[1]),Se=$n.commonAncestor(me,ye);(Se==null?void 0:Se.type)==="array"&&me.parent===Se&&ye.parent===Se?this._selection={ranges:[se],direction:ie.direction}:this._selection={ranges:[se],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 ga&&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(td(a)){if(E=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((Se,Le)=>[...Se,...this.getAtoms(Le,E)],[]);a=a.ranges[0]}let ee,ie;if(mc(a)){if(ee=a,!mc(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 se=Math.min(ee,ie)+1,me=Math.max(ee,ie);if(!E.includeChildren&&se===1&&me===this.lastOffset)return[this.root];let ye=[];for(let Se=se;Se<=me;Se++){const Le=this.atoms[Se];_0(this,Le,se,me)&&ye.push(Le)}return E.includeChildren||(ye=ye.filter(Se=>{let Le=!1,{parent:Ze}=Se;for(;Ze&&!Le;)Le=_0(this,Ze,se,me),Ze=Ze.parent;return!Le})),ye}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 $n({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 $n.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 ns(a);if(b==="spoken")return Df(a);if(b==="spoken-text"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ee=Df(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=Df(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}return b==="ascii-math"?xl(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(mc(a)&&mc(y)?(E=[this.normalizeRange([a,y])],ee=b):Ec(a)?(E=[this.normalizeRange(a)],ee=y):td(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 se=window.MathfieldElement.computeEngine.parse(ie);return JSON.stringify(se.json)}catch(se){return JSON.stringify(["Error",`'${se.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 gi(E.map(se=>$n.serialize(this.getAtoms(se),ie)))}return E.map(ie=>this.getAtoms(ie).map(se=>this.atomToString(se,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&&Fp(this,ie,[E,ee]);)ee=this.offsetOf(ie),ie=ie.parent;for(ie=this.at(E).parent;ie!==this.root&&Fp(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&&Fp(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)&&o1(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 se=this.root.changeCounter;y();const me=this.root.changeCounter!==se,ye=E!==this._anchor||ee!==this._position||ed(this._selection,b)==="different";return this.silenceNotifications=ie,a.content&&me&&this.contentDidChange({inputType:a.type}),a.selection&&ye&&this.selectionDidChange(),me||ye}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(mc(a)){const ee=this.normalizeOffset(a);if(mc(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(Ec(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 td(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(Wc(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",we(ke({},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(Wc(this.mathfield)),this.silenceNotifications))return;const a=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=a}};function _0(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 se=a.offsetOf(y.lastChild);if(se>=b&&se<=E)return!0}return!1}function Fp(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[E,ee]=b,ie=a.offsetOf(y.firstChild),se=a.offsetOf(y.lastChild);return ie>=E&&ie<=ee&&se>=ie&&se<=ee}function oh(a,y,b,E){var ee,ie,se,me,ye,Se;const Le=b.parent;if(Le&&b instanceof Vo){const Ze=!E&&y==="forward"||E==="body"&&y==="backward";let mt=Ze?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return Ze?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(Le.addChildrenAfter(b.removeBranch("body"),b),Le.removeChild(b),mt--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(Le.addChildrenAfter(b.removeBranch("body"),b),Le.removeChild(b),mt--),a.position=mt,!0}if(Le&&b.type==="surd"){if(y==="forward"&&!E||y==="backward"&&E==="body"){const Ze=b.leftSibling;b.hasChildren&&Le.addChildrenAfter(b.removeBranch("body"),b),Le.removeChild(b),a.position=a.offsetOf(Ze)}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),Le.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(Le&&(b.type==="box"||b.type==="enclose")){const Ze=E&&y==="backward"||!E&&y==="forward"?b.leftSibling:b.lastChild;return Le.addChildrenAfter(b.removeBranch("body"),b),Le.removeChild(b),a.position=a.offsetOf(Ze),!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 Ze=sh.fractionNavigationOrder==="numerator-denominator"?"above":"below",mt=Ze==="above"?"below":"above";if(Le&&(y==="forward"&&E===Ze||y==="backward"&&E===mt)){const It=b.removeBranch(Ze),Wt=b.removeBranch(mt);return Le.addChildrenAfter([...It,...Wt],b),Le.removeChild(b),a.position=a.offsetOf(It.length>0?It[It.length-1]:Wt[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 Ze=y==="forward"?(se=(ee=b.superscript)==null?void 0:ee[0])!=null?se:(ie=b.subscript)==null?void 0:ie[0]:(Se=(me=b.subscript)==null?void 0:me[0].lastSibling)!=null?Se:(ye=b.superscript)==null?void 0:ye[0].lastSibling;return Ze&&(a.position=a.offsetOf(Ze)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const Ze=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=Ze,!0}if(E==="superscript")if(y==="backward"){const Ze=a.offsetOf(b.firstChild)-1;console.assert(Ze>=0),a.position=Ze}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 Ze=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=Ze}return!0}if((Le==null?void 0:Le.type)==="genfrac"&&!E&&b.type!=="first"){let Ze=a.offsetOf(b.leftSibling);return Le.removeChild(b),Le.hasEmptyBranch("above")&&Le.hasEmptyBranch("below")?(Ze=a.offsetOf(Le.leftSibling),Le.parent.removeChild(Le),a.announce("delete",void 0,[Le]),a.position=Ze,!0):(a.announce("delete",void 0,[b]),a.position=Ze,!0)}if(y==="backward"&&((Le==null?void 0:Le.command)==="\\ln"||(Le==null?void 0:Le.command)==="\\log")&&b.parentBranch!=="body"){const Ze=a.offsetOf(Le.leftSibling);return Le.parent.removeChild(Le),a.announce("delete",void 0,[Le]),a.position=Ze,!0}return!1}function c1(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&&oh(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(oh(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])}}):Uc(a,Tl(a.selection),"deleteContentBackward")}function d1(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&&oh(a,"forward",E))return;if(E){if(a.at(a.position).isLastSibling&&oh(a,"forward",E.parent,E.parentBranch))return}else{if(E=a.at(a.position),E.isLastSibling&&oh(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])}):Uc(a,Tl(a.selection),"deleteContentForward")}function Uc(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 se=E[0];se.type==="first"&&(se=se.rightSibling);const me=E[E.length-1];if(se===ee&&me===ie){const ye=E[0].parent;ye.parent&&ye.type!=="prompt"&&(y=[a.offsetOf(ye.leftSibling),a.offsetOf(ye)])}if(E.length===1&&E[0].type==="placeholder"&&E[0].parent.type==="genfrac"){const ye=E[0].parent,Se=E[0].parentBranch==="below"?"above":"below",Le=a.offsetOf(ye.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var Ze,mt;const It=ye.removeBranch(Se);if(It.length===1&&It[0].type==="placeholder")(mt=ye.parent)==null||mt.removeChild(ye),a.position=Math.max(0,Le);else{const Wt=ye.parent.addChildrenAfter(It,ye);(Ze=ye.parent)==null||Ze.removeChild(ye),a.position=a.offsetOf(Wt)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}qu({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&Uc(a,[0,-1],"deleteContent"),deleteForward:a=>d1(a),deleteBackward:a=>c1(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&Uc(a,[a.anchor,op(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&Uc(a,[a.anchor,op(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&Uc(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&Uc(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&Uc(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&Uc(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var f1=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${ot("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>`,h1=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${ot("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>`,p1=class{constructor(a,y){this.focusBlurInProgress=!1;var b,E,ee;this.options=ke(we(ke({},Mh()),{macros:wi(),registers:Tc()}),kh(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 se=(E=(b=y.value)!=null?b:this.element.textContent)!=null?E:"";se=se.trim();const me=qp(this.options),ye=new $n({type:"root",mode:me,body:je(se,{context:this.context})});this.model=new u1(this,me,ye),this.undoManager=new Kv(this.model);const Se=[];if(Se.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>"),Se.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),Se.push("<span part=content class=ML__content>"),Se.push(Up(this)),Se.push("</span>"),window.mathVirtualKeyboard&&(Se.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">`),Se.push(f1),Se.push("</div>")),Se.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),Se.push(h1),Se.push("</div>"),Se.push("</span>"),Se.push("<span class=ML__sr-only>"),Se.push("<span role=status aria-live=assertive aria-atomic=true></span>"),Se.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(Se.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=Je.subscribe(()=>Je.update(this.element)),Je.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Ze=>Ze.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(Wc(this)))},{signal:ie}),this._menu=new Sg(e1(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:ie});const Le=this.element.querySelector("[part=menu-toggle]");Le==null||Le.addEventListener("pointerdown",Ze=>{if(Ze.currentTarget!==Le||this._menu.state!=="closed")return;this.element.classList.add("tracking");const mt=Le.getBoundingClientRect();this._menu.modifiers=Vd(Ze),this._menu.show({target:Le,location:{x:mt.left,y:mt.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Ze.preventDefault(),Ze.stopPropagation()},{signal:ie}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(Le.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=Um(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(()=>yl(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:ie}),jf&&!Je.locale.startsWith(jf.locale)&&Hm(Je.locale),sc!=="ready"&&document.fonts.ready.then(()=>wh(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(Wc(this)),Kh(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,gp())}showMenu(a){var y,b;const E=(b=(y=a==null?void 0:a.location)!=null?y:Ac(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:wt(a)}}get backgroundColorMap(){return a=>{var y,b,E,ee,ie,se;return(se=(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?se:Ye(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=$n.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=ke({},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=fp(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 ye of Object.keys(y)){const Se=this.queryStyle({[ye]:y[ye]});if(Se==="none")return"none";if(Se==="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 se=ie.length;if(se===0)return"none";let me=0;for(const ye of ie){if(ye.type==="first"){se-=1;continue}ye.style[E]===ee&&(me+=1)}return me===0?"none":me===se?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,E]=Qm(this.options.keybindings,(a=Zf())!=null?a:zm());return((y=Zf())==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=ke(ke({},this.options),kh(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=$n.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==E)&&Ha.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)&&yl(this)}getOptions(a){return Zd(this.options,a)}getOption(a){return Zd(this.options,a)}handleEvent(a){return kd(this,null,function*(){var y;if(Nu(this)){if(np(a)){if(!Rd(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(xf(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"&&h0(this,a);break;case"pointerdown":this.userSelect!=="none"&&(h0(this,a),a.shiftKey===!1&&(yield M0(a,this.element.querySelector("[part=container]"),this._menu))&&Nh.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield M0(a,this.element.querySelector("[part=container]"),this._menu))&&Nh.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&Kh(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Nu(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Nu(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!Nu(this))return;Je.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,Jv(),tv(),gg()}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 xf(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(Wc(this))),!1):lv(this,a)}get errors(){return At(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=Of(this.model,this.model.position))!=null?b:"math");const E=this.undoManager.canUndo();Ha.insert(this.model,a,y)&&(yl(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&&Ud(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=Ac(this.field);else{const E=Od(this);if(E.length>0){let ee=-1/0,ie=-1/0;for(const se of E)se.right>ee&&(ee=se.right),se.top<ie&&(ie=se.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&&dt()&&navigator.vibrate(jp),window.MathfieldElement.playSound("keypress")),a==="\\\\"?$p(this.model):a==="&"?e0(this.model):this.model.selectionIsCollapsed?Ha.insert(this.model,a,ke({style:this.model.at(this.model.position).computedStyle},y)):Ha.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),yl(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:se}=this;se.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let me=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const ye=je(y,{context:this.context,parseMode:a});se.collapseSelection("forward");const Se=se.at(se.position);se.position=se.offsetOf(Se.parent.addChildrenAfter(ye,Se)),me=!0}if(this.model.mode=a,a==="latex"){let ye=se.selectionIsCollapsed;yf(this,"accept");let Se,Le=se.at(se.position);if(ye)Se="\\";else{const mt=Tl(se.selection);Se=this.model.getValue(mt,"latex");const It=this.model.extractAtoms(mt);It.length===1&&It[0].type==="placeholder"&&(Se=y,ye=!0),Le=se.at(mt[0])}const Ze=new vo(Se);Le.parent.addChildAfter(Ze,Le),ye?se.position=se.offsetOf(Ze.lastChild):se.setSelection(se.offsetOf(Ze.firstChild),se.offsetOf(Ze.lastChild))}else Gf(se).forEach(ye=>{ye.isError=!1});if(b){const ye=je(b,{context:this.context,parseMode:ie});se.collapseSelection("forward");const Se=se.at(se.position);se.position=se.offsetOf(Se.parent.addChildrenAfter(ye,Se)),me=!0}return yl(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),me}),this.model.mode=a,window.mathVirtualKeyboard.update(Wc(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};Ec(y)?ee.range=y:(y.operation==="toggle"&&(ee.operation="toggle"),ee.range=y.range,ee.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const ie=fp(this,a),se=(E=ee.operation)!=null?E:"set";if(ee.range===void 0&&this.model.selectionIsCollapsed){if(se==="set"){this.defaultStyle=ke(ke({},this.defaultStyle),ie);return}const me=ke({},this.defaultStyle);for(const ye of Object.keys(ie))me[ye]===ie[ye]?(ye==="color"&&delete me.verbatimColor,ye==="backgroundColor"&&delete me.verbatimBackgroundColor,delete me[ye]):me[ye]=ie[ye];this.defaultStyle=me;return}this.model.deferNotifications({content:!ee.silenceNotifications,type:"insertText"},()=>{if(ee.range===void 0)for(const me of this.model.selection.ranges)ip(this.model,me,ie,{operation:se});else ip(this.model,ee.range,ie,{operation:se})}),yl(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=Ac(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=th(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),yl(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,we(ke({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),yl(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),yl(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(Wc(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(Wc(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(Wc(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:qp(this.options);this.model.mode!==ee&&(this.model.mode==="latex"?(yf(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(Wc(this)),Kh(this)}onContentWillChange(a){var y,b,E;return(E=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",we(ke({},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(),Ud(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="",bf(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})),yl(this),this.focusBlurInProgress=!1,gp();const E=new AbortController,ee=E.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{Nu(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ee})},{once:!0,signal:ee}),setTimeout(()=>E.abort(),100)}onInput(a){up(this,a)}onKeystroke(a){return c0(this,a)}onCompositionStart(a){this.model.deleteAtoms(Tl(this.model.selection));const y=Ac(this.field);y&&requestAnimationFrame(()=>{Ud(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Lv(this.model,a),yl(this)}onCompositionEnd(a){Fv(this.model),up(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),Ha.onCopy(this,a),Uc(this.model,Tl(this.model.selection),"deleteByCut"),this.snapshot("cut"),yl(this))}onCopy(a){Ha.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=Ha.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(),yh(this),Kh(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=>Ca(b,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function K0(a){if(a&&(a.classList.remove("ML__highlight"),a.children))for(const y of a.children)K0(y)}function Pp(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&&Pp(E)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&Pp(E,y)})))}function m1(a,y){var b;if(!bt())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"]};Ad().readAloudElement=a,E.synthesizeSpeech(ee,(ie,se)=>{if(ie){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${ie}`);return}if(!(se!=null&&se.AudioStream)){console.log("polly.synthesizeSpeech():",se);return}const me=new TextDecoder("utf-8").decode(new Uint8Array(se.AudioStream));Ad().readAloudMarks=me.split(`
|
|
|
`).map(ye=>ye?JSON.parse(ye):{}),Ad().readAloudTokens=[];for(const ye of Ad().readAloudMarks)ye.value&&Ad().readAloudTokens.push(ye.value);Ad().readAloudCurrentMark="",ee.OutputFormat="mp3",ee.SpeechMarkTypes=[],E.synthesizeSpeech(ee,(ye,Se)=>{if(ye){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${ye}`);return}if(!(Se!=null&&Se.AudioStream))return;const Le=new Uint8Array(Se.AudioStream),Ze=new Blob([Le.buffer],{type:"audio/mpeg"}),mt=URL.createObjectURL(Ze),It=Ad();It.readAloudAudio?It.readAloudAudio.pause():(It.readAloudAudio=new Audio,It.readAloudAudio.addEventListener("ended",()=>{const Wt=It.readAloudMathfield;It.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Wt?(Ud(Wt),It.readAloudElement=null,It.readAloudMathfield=null,It.readAloudTokens=[],It.readAloudMarks=[],It.readAloudCurrentMark=""):K0(It.readAloudElement)}),It.readAloudAudio.addEventListener("timeupdate",()=>{let Wt="";const On=It.readAloudAudio.currentTime*1e3+100;for(const Vr of It.readAloudMarks)Vr.time<On&&(Wt=Vr.value);It.readAloudCurrentMark!==Wt&&(It.readAloudCurrentToken=Wt,Wt&&Wt===It.readAloudFinalToken?It.readAloudAudio.pause():(It.readAloudCurrentMark=Wt,Pp(It.readAloudElement,It.readAloudCurrentMark)))})),It.readAloudAudio.src=mt,It.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),It.readAloudAudio.play()})})}bt()||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 jo=new WeakMap,v1=.5,Sd={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 = ..."},iu=class ef extends HTMLElement{static get formAssociated(){return Ff()}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,iv())}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 Je.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),Je.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 Je.strings}static set strings(y){Je.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 kd(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 Vp(`${E}/${b}`))).arrayBuffer(),se=yield this.audioContext.decodeAudioData(ie);this.audioBuffers[y]=se}catch(ee){}})}static playSound(y){return kd(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=v1,b.connect(E).connect(this.audioContext.destination),b.start()})}constructor(y){if(super(),y){const b=[];for(const E of Object.keys(y))if(Sd[E])if(Sd[E].startsWith("mf."))if(Sd[E].startsWith(`mf.${E}`))b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${Sd[E]}`);else{const ee=Sd[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 ${Sd[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(Ff()&&(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=[gc("core"),gc("mathfield"),gc("mathfield-element"),gc("ui"),gc("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>"+kc("core")+kc("mathfield")+kc("mathfield-element")+kc("ui")+kc("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=ef.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?Zd(this._mathfield.options,y):jo.has(this)?ke({},Zd(ke(ke({},Mh()),kh(jo.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?Zd(this._mathfield.options,y):jo.has(this)?Zd(ke(ke({},Mh()),kh(jo.get(this).options)),y):null}reflectAttributes(){const y=Mh(),b=this._getOptions();Object.keys(ef.optionsAttributes).forEach(E=>{const ee=od(E);ef.optionsAttributes[E]==="on/off"?y[ee]!==b[ee]?this.setAttribute(E,b[ee]?"on":"off"):this.removeAttribute(E):y[ee]!==b[ee]&&(ef.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(jo.has(this)){const b=ke(ke({},jo.get(this).options),y);jo.set(this,we(ke({},jo.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else jo.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))Sd[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${Sd[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(jo.has(this)){let se,me,ye;if(td(y)?([se,me]=y.ranges[0],ye=b):Ec(y)?([se,me]=y,ye=b):mc(y)&&mc(b)?(se=y,me=b,ye=E):(se=0,me=-1,ye=y),(ye===void 0||ye==="latex")&&se===0&&me===-1)return(ie=(ee=jo.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(jo.has(this)){const ee=jo.get(this).options;jo.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ee,menuItems:void 0});return}const E=lh(this);jo.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?th(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=Rc(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;Kc.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),se=this.shadowRoot,me=ie.userSelect!=="none";if(me)se.host.addEventListener("pointerdown",this,!0);else{const Le=se.querySelector("span");Le.style.pointerEvents="none"}se.host.addEventListener("focus",this,!0),se.host.addEventListener("blur",this,!0),Ff()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),me&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const ye=se.querySelector("slot:not([name])");if(ye)try{this._style=ye.assignedElements().filter(Le=>Le.tagName.toLowerCase()==="style").map(Le=>Le.textContent).join("")}catch(Le){console.error(Le)}if(this._style){const Le=document.createElement("style");Le.textContent=this._style,se.appendChild(Le)}let Se="";if(this.hasAttribute("value")?Se=this.getAttribute("value"):Se=(y=ye==null?void 0:ye.assignedNodes().map(Le=>Le.nodeType===3?Le.textContent:"").join("").trim())!=null?y:"",this._mathfield=new p1(se.querySelector(":host > span"),we(ke({},(E=(b=jo.get(this))==null?void 0:b.options)!=null?E:lh(this)),{eventSink:this,value:Se})),!jo.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const Le of Object.keys(ef.optionsAttributes))this.upgradeProperty(od(Le))}if(!((ee=this._mathfield)!=null&&ee.model)){this._mathfield=null;return}if(jo.has(this)){const Le=this._mathfield,Ze=jo.get(this),mt=Ze.menuItems;Le.model.deferNotifications({content:!1,selection:!1},()=>{const It=Ze.value;It!==void 0&&Le.setValue(It),Le.model.selection=Ze.selection,jo.delete(this)}),mt&&(this.menuItems=mt)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),xh()}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=Zd(this._mathfield.options,Object.keys(ef.optionsAttributes).map(ee=>od(ee)));jo.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":yl(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",""),Ff()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(Ff()?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"),Ff()?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:we(ke({},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=jo.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}jo.has(this)?jo.set(this,we(ke({},jo.get(this)),{menuItems:y})):jo.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:lh(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:jo.has(this)?jo.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,yl(this._mathfield);return}if(jo.has(this)){jo.set(this,we(ke({},jo.get(this)),{selection:y}));return}jo.set(this,{value:void 0,selection:y,options:lh(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:jo.has(this)?jo.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,yl(this._mathfield)),jo.has(this)){jo.set(this,we(ke({},jo.get(this)),{selection:{ranges:[[y,y]]}}));return}jo.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:lh(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}};iu.version="0.98.5",iu._fontsDirectory="./fonts",iu._soundsDirectory="./sounds",iu.keypressVibration=!0,iu._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},iu._plonkSound="plonk.wav",iu.audioBuffers={},iu.createHTML=a=>a,iu._speechEngineRate="100%",iu._speechEngineVoice="Joanna",iu._textToSpeechMarkup="",iu._textToSpeechRules="mathlive",iu._textToSpeechRulesOptions={},iu.speakHook=a1,iu.readAloudHook=m1,iu._decimalSeparator=".",iu.fractionNavigationOrder="numerator-denominator",iu._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 sh=iu;function od(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function lh(a){const y={readOnly:!1},b=sh.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[od(E)]=!0:b[E]==="on/off"?ee==="on"?y[od(E)]=!0:ee==="off"?y[od(E)]=!1:y[od(E)]=void 0:b[E]==="number"?y[od(E)]=Number.parseFloat(ee!=null?ee:"0"):y[od(E)]=ee}}),y}function Ff(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var H0=sh,z0,W0,V0,U0;if(bt()&&!((z0=window.customElements)!=null&&z0.get("math-field"))){(V0=window[W0=Symbol.for("io.cortexjs.mathlive")])!=null||(window[W0]={});const a=window[Symbol.for("io.cortexjs.mathlive")];a.version="0.98.5",window.MathfieldElement=sh,(U0=window.customElements)==null||U0.define("math-field",sh)}function g1(a,y,b){let E=b,ee=0;const ie=a.length;for(;E<y.length;){const se=y[E];if(ee<=0&&y.slice(E,E+ie)===a)return E;se==="\\"?E++:se==="{"?ee++:se==="}"&&ee--,E++}return-1}function Uh(a,y,b,E,ee="latex"){const ie=[];for(const se of a)if(se.type==="text"){const me=se.data;let ye=!0,Se=0,Le;Le=me.indexOf(y),Le!==-1&&(Se=Le,Se>0&&ie.push({type:"text",data:me.slice(0,Se)}),ye=!1);let Ze=!1;for(;!Ze;){if(ye){if(Le=me.indexOf(y,Se),Le===-1){Ze=!0;break}Se!==Le&&ie.push({type:"text",data:me.slice(Se,Le)}),Se=Le}else{if(Le=g1(b,me,Se+y.length),Le===-1){Ze=!0;break}let mt=me.slice(Se+y.length,Le);ee==="ascii-math"&&([,mt]=nc(mt,{format:"ascii-math"})),ie.push({type:"math",data:mt,rawData:me.slice(Se,Le+b.length),mathstyle:E}),Se=Le+b.length}ye=!ye}Se<me.length&&ie.push({type:"text",data:me.slice(Se)})}else ie.push(se);return ie}function j0(a,y,b){let E=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ee,ie])=>{E=Uh(E,ee,ie,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ee,ie])=>{E=Uh(E,ee,ie,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ee,ie])=>{E=Uh(E,ee,ie,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ee,ie])=>{E=Uh(E,ee,ie,"displaystyle","ascii-math")}),E}function y1(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 b1(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 Pf(a,y,b,E){var ee;const ie=b1(a,b,y||"textstyle",E),se=(ee=b.renderAccessibleContent)!=null?ee:"";if(ie&&/\b(mathml|speakable-text)\b/i.test(se)){const me=document.createElement("span");if(/\bmathml\b/i.test(se)&&b.renderToMathML&&me.append(y1(a,b)),/\bspeakable-text\b/i.test(se)&&b.renderToSpeakableText){const ye=document.createElement("span");ye.setAttribute("translate","no");const Se=b.renderToSpeakableText(a);ye.innerHTML=window.MathfieldElement.createHTML(Se),ye.className="ML__sr-only",me.append(ye)}return me.append(ie),me}return ie}function x1(a,y){var b,E,ee;let ie=null;if((b=y.TeX)!=null&&b.processEnvironments&&/^\s*\\begin/.test(a)){ie=document.createDocumentFragment();const se=Pf(a,"",y,!0);se&&ie.appendChild(se)}else{if(!a.trim())return null;const se=j0(a,(E=y.TeX)==null?void 0:E.delimiters,(ee=y.asciiMath)==null?void 0:ee.delimiters);if(se.length===1&&se[0].type==="text")return null;ie=document.createDocumentFragment();for(const me of se)if(me.type==="text")ie.appendChild(document.createTextNode(me.data));else{const ye=Pf(me.data,me.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);ye&&ie.appendChild(ye)}}return ie}function Z0(a,y){var b,E,ee,ie,se,me,ye,Se,Le,Ze,mt,It,Wt,On,Vr,Pn;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const fr=(b=a.childNodes[0].textContent)!=null?b:"";if((E=y.TeX)!=null&&E.processEnvironments&&/^\s*\\begin/.test(fr)){a.textContent="";const wr=Pf(fr,"",y,!0);wr&&a.append(wr);return}const Jr=j0(fr,(ee=y.TeX)==null?void 0:ee.delimiters,(ie=y.asciiMath)==null?void 0:ie.delimiters);if(Jr.length===1&&Jr[0].type==="math"){a.textContent="";const wr=Pf(Jr[0].data,Jr[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);wr&&a.append(wr);return}if(Jr.length===1&&Jr[0].type==="text")return}for(let fr=a.childNodes.length-1;fr>=0;fr--){const Jr=a.childNodes[fr];if(Jr.nodeType===3){const wr=x1((se=Jr.textContent)!=null?se:"",y);wr&&(fr+=wr.childNodes.length-1,Jr.replaceWith(wr))}else if(Jr.nodeType===1){const wr=Jr,Zi=Jr.nodeName.toLowerCase();if(Zi==="script"){const ba=Jr;let aa;if((me=y.processScriptTypePattern)!=null&&me.test(ba.type))aa=(ye=ba.textContent)!=null?ye:"";else if((Se=y.processMathJSONScriptTypePattern)!=null&&Se.test(ba.type))try{aa=(Ze=y.serializeToLatex)==null?void 0:Ze.call(y,JSON.parse((Le=ba.textContent)!=null?Le:""))}catch(_o){console.error(_o)}if(aa){let _o="textstyle";for(const ai of ba.type.split(";")){const[lc,jc]=ai.toLowerCase().split("=");lc.trim()==="mode"&&(_o=jc.trim()==="display"?"displaystyle":"textstyle")}const Cs=Pf(aa,_o,y,!0);Cs&&ba.parentNode.replaceChild(Cs,ba)}}else if(((It=(mt=y.processClassPattern)==null?void 0:mt.test(wr.className))!=null?It:!1)||!((On=(Wt=y.skipTags)==null?void 0:Wt.includes(Zi))!=null&&On||(Pn=(Vr=y.ignoreClassPattern)==null?void 0:Vr.test(wr.className))!=null&&Pn))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const aa=a.textContent;a.textContent="";const _o=Pf(aa!=null?aa:"","displaystyle",y,!0);_o&&a.append(_o)}else Z0(wr,y)}}}var w1={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 C1(a,y){var b,E,ee,ie;try{const se=ke(ke({},w1),y);se.ignoreClassPattern=new RegExp((b=se.ignoreClass)!=null?b:""),se.processClassPattern=new RegExp((E=se.processClass)!=null?E:""),se.processScriptTypePattern=new RegExp((ee=se.processScriptType)!=null?ee:""),se.processMathJSONScriptTypePattern=new RegExp((ie=se.processMathJSONScriptType)!=null?ie:""),xh(),uu("core"),Z0(a,se)}catch(se){se instanceof Error?console.error("renderMathInElement(): "+se.message):console.error("renderMathInElement(): Could not render math for element",a)}}function E1(a,y){const b=Cd.singleton;return b?(b.show(),Jf(),b.currentLayer=y,b.render(),b.focus(),!0):!1}function S1(){const a=window.mathVirtualKeyboard;return a.visible?a.hide({animate:!0}):a.show({animate:!0}),!1}qu({switchKeyboardLayer:E1,toggleVirtualKeyboard:S1,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function Ad(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function L1(){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 F1(a){k1(document.body,a)}function A1(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 k1(a,y){var b,E,ee,ie;const se=A1(a);if(!se)return;const me=y!=null?y:{};(b=me.renderToMarkup)!=null||(me.renderToMarkup=ql),(E=me.renderToMathML)!=null||(me.renderToMathML=_g),(ee=me.renderToSpeakableText)!=null||(me.renderToSpeakableText=Kg),(ie=me.serializeToLatex)!=null||(me.serializeToLatex=Hg),C1(se,me)}var P1={mathlive:"0.98.5"}}}]);
|
|
|
}()); |