|
|
!(function(){var Tl=Math.pow;var gc=(yn,fn,se)=>new Promise((ae,Le)=>{var _e=ke=>{try{ge(se.next(ke))}catch(Ee){Le(Ee)}},rt=ke=>{try{ge(se.throw(ke))}catch(Ee){Le(Ee)}},ge=ke=>ke.done?ae(ke.value):Promise.resolve(ke.value).then(_e,rt);ge((se=se.apply(yn,fn)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[56185],{18299:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Ee}});var ae=se(87462),Le=se(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},rt=_e,ge=se(84089),ke=function(me,De){return Le.createElement(ge.Z,(0,ae.Z)({},me,{ref:De,icon:rt}))},Ee=Le.forwardRef(ke)},81893:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Ee}});var ae=se(87462),Le=se(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},rt=_e,ge=se(84089),ke=function(me,De){return Le.createElement(ge.Z,(0,ae.Z)({},me,{ref:De,icon:rt}))},Ee=Le.forwardRef(ke)},42922:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Ee}});var ae=se(87462),Le=se(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},rt=_e,ge=se(84089),ke=function(me,De){return Le.createElement(ge.Z,(0,ae.Z)({},me,{ref:De,icon:rt}))},Ee=Le.forwardRef(ke)},25877:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Ee}});var ae=se(87462),Le=se(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},rt=_e,ge=se(84089),ke=function(me,De){return Le.createElement(ge.Z,(0,ae.Z)({},me,{ref:De,icon:rt}))},Ee=Le.forwardRef(ke)},63237:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Ee}});var ae=se(87462),Le=se(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},rt=_e,ge=se(84089),ke=function(me,De){return Le.createElement(ge.Z,(0,ae.Z)({},me,{ref:De,icon:rt}))},Ee=Le.forwardRef(ke)},99569:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Ee}});var ae=se(87462),Le=se(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},rt=_e,ge=se(84089),ke=function(me,De){return Le.createElement(ge.Z,(0,ae.Z)({},me,{ref:De,icon:rt}))},Ee=Le.forwardRef(ke)},22751:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Ee}});var ae=se(87462),Le=se(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},rt=_e,ge=se(84089),ke=function(me,De){return Le.createElement(ge.Z,(0,ae.Z)({},me,{ref:De,icon:rt}))},Ee=Le.forwardRef(ke)},38308:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Ee}});var ae=se(87462),Le=se(67294),_e={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"},rt=_e,ge=se(84089),ke=function(me,De){return Le.createElement(ge.Z,(0,ae.Z)({},me,{ref:De,icon:rt}))},Ee=Le.forwardRef(ke)},17663:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Ee}});var ae=se(87462),Le=se(67294),_e={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:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},rt=_e,ge=se(84089),ke=function(me,De){return Le.createElement(ge.Z,(0,ae.Z)({},me,{ref:De,icon:rt}))},Ee=Le.forwardRef(ke)},91034:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Ee}});var ae=se(87462),Le=se(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},rt=_e,ge=se(84089),ke=function(me,De){return Le.createElement(ge.Z,(0,ae.Z)({},me,{ref:De,icon:rt}))},Ee=Le.forwardRef(ke)},72395:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Ee}});var ae=se(87462),Le=se(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},rt=_e,ge=se(84089),ke=function(me,De){return Le.createElement(ge.Z,(0,ae.Z)({},me,{ref:De,icon:rt}))},Ee=Le.forwardRef(ke)},53978:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Ee}});var ae=se(87462),Le=se(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},rt=_e,ge=se(84089),ke=function(me,De){return Le.createElement(ge.Z,(0,ae.Z)({},me,{ref:De,icon:rt}))},Ee=Le.forwardRef(ke)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(yn,fn){"use strict";fn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},1762:function(yn,fn){"use strict";fn.Z={threeBtnSty:"threeBtnSty___TLi14",threeTableSty:"threeTableSty___TPPHp",threeSelectSty:"threeSelectSty___FTtcH",threeCheckboxSty:"threeCheckboxSty___lOX9B",inputStyComm:"inputStyComm___eu0su",threeInputSty:"threeInputSty___mTodi",threeSuffixInputSty:"threeSuffixInputSty___TXvX8",threeRadioSty:"threeRadioSty___d2bpk",threeFormSty:"threeFormSty___OJPML"}},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 yn={},fn="5.0",se={},ae=null,Le=!1,_e=!1,rt=null,ge=!1,ke=null,Ee=null,xe=0;xe<arguments.length;xe++){var me=arguments[xe];if(me!==null)switch(typeof me){case"number":fn=me.toFixed(1);break;case"string":me.match(new RegExp("^[0-9]\\.[0-9]+$"))?fn=me:rt=me;break;case"object":typeof me.is3D!="undefined"?ae=me:se=me;break;case"boolean":Le=me,_e=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},se.material_id!==void 0&&!_e&&(Le=!0)),rt!==null&&se.id===void 0&&(se.id=rt);var De="",ot="",Ne=!1,mt=null,dt=null,pt=null,Je=!1,Be=null,gt=null,nn=null,at=null,vt=null;se.height!==void 0&&(se.height=Math.round(se.height)),se.width!==void 0&&(se.width=Math.round(se.width));var Ce=function(ft){return parseFloat(ft)>4?parseFloat(ft):5};yn.setHTML5Codebase=function(ft,yt){Ee=ft,Bt(ft,yt)},yn.setJavaCodebase=yn.setJavaCodebaseVersion=yn.isCompiledInstalled=yn.setPreCompiledScriptPath=yn.setPreCompiledResourcePath=function(){},yn.setHTML5CodebaseVersion=function(ft,yt){var Gt=parseFloat(ft);if(Gt!==NaN&&Gt<5){console.log("The GeoGebra HTML5 codebase version "+Gt+" is deprecated. Using version latest instead.");return}ke=ft,Se(ft,yt)},yn.getHTML5CodebaseVersion=function(){return dt},yn.getParameters=function(){return se},yn.setFontsCSSURL=function(ft){at=ft},yn.setGiacJSURL=function(ft){},yn.setJNLPFile=function(ft){De=ft},yn.setJNLPBaseDir=function(ft){},yn.inject=function(){function ft(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var yt="auto",Gt=se.id,qn,Dn=!1,Tt=0;Tt<arguments.length;Tt++){var mn=arguments[Tt];typeof mn=="string"?(mn=mn.toLowerCase(),mn.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?yt=mn:Gt=arguments[Tt]):typeof mn=="boolean"?Dn=mn:mn instanceof HTMLElement&&(qn=mn)}Vn();function Vn(){if(!ge){setTimeout(Vn,200);return}yt=ln(yt);var kn=qn||document.getElementById(Gt);if(!kn){console.log("possibly bug on ajax loading? ");return}if(yn.removeExistingApplet(kn,!1),se.width===void 0&&kn.clientWidth&&(se.width=kn.clientWidth),se.height===void 0&&kn.clientHeight&&(se.height=kn.clientHeight),!(se.width&&se.height)&&yt==="html5"&&(delete se.width,delete se.height),mt=yt,yt==="screenshot")zt(kn,se);else{var Pe=!1;se.hasOwnProperty("playButton")&&se.playButton||se.hasOwnProperty("clickToLoad")&&se.clickToLoad?Pe=!0:se.hasOwnProperty("playButtonAutoDecide")&&se.playButtonAutoDecide&&(Pe=(!Ae()||ft())&&Ye()),Pe?(mt="screenshot",dn(kn,se,Dn,yt)):qt(kn,se,Dn)}}};function Ae(){try{return window.self!==window.top}catch(ft){return!0}}function Ye(){return se.hasOwnProperty("screenshotGenerator")&&se.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}yn.getViews=function(){return ae},yn.isJavaInstalled=function(){return!1};var Ve=function(ft){var yt=function(Tt){var mn=JSON.parse(Tt),Vn=function(fe){return fe.type=="G"||fe.type=="E"},kn=mn.elements?mn.elements.filter(Vn)[0]:mn;if(!kn||!kn.url){Gt();return}se.fileName=kn.url,At(kn.settings||{}),ae.is3D=!0;var Pe="https://www.geogebra.org/images/";yn.setPreviewImage(Be||kn.previewUrl,Pe+"GeoGebra_loading.png",Pe+"applet_play.png"),ft()},Gt=function(){se.onError&&se.onError(),xn("Error: Fetching material (id "+se.material_id+") failed.",se)},qn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Dn="/materials/"+se.material_id+"?scope=basic";xt("https://"+qn+"/api/proxy.php?path="+encodeURIComponent(Dn),yt,Gt)};function At(ft){var yt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Gt){ft[Gt]=!!ft[Gt]}),yt.forEach(function(Gt){se[Gt]===void 0&&ft[Gt]!==void 0&&(se[Gt]=ft[Gt])}),se.showToolBarHelp===void 0&&(se.showToolBarHelp=se.showToolBar)}function xt(ft,yt,Gt){var qn=new XMLHttpRequest;qn.open("GET",ft),qn.onload=function(){yt(qn.responseText)},qn.onerror=Gt,qn.send()}yn.isHTML5Installed=function(){return!0},yn.getLoadedAppletType=function(){return mt},yn.setPreviewImage=function(ft,yt,Gt){Be=ft,gt=yt,nn=Gt},yn.removeExistingApplet=function(ft,yt){var Gt;typeof ft=="string"&&(ft=document.getElementById(ft)),mt=null;var qn=null;for(Gt=0;Gt<ft.childNodes.length;Gt++){var Dn=ft.childNodes[Gt],Tt=Dn.className;Tt==="applet_screenshot"?yt?(Dn.style.display="block",mt="screenshot"):Dn.style.display="none":Tt!=="applet_scaler prerender"&&(ft.removeChild(Dn),qn=Tt&&Tt.indexOf("appletParameters")!=-1?Dn.id:null,Gt--)}var mn=se.id!==void 0?se.id:qn,Vn=window[mn];Vn&&typeof Vn.getBase64=="function"&&(Vn.remove(),window[mn]=null)},yn.refreshHitPoints=function(){if(Ce(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ft=yn.getAppletObject();return ft&&typeof ft.recalculateEnvironments=="function"?(ft.recalculateEnvironments(),!0):!1},yn.startAnimation=function(){var ft=yn.getAppletObject();return ft&&typeof ft.startAnimation=="function"?(ft.startAnimation(),!0):!1},yn.stopAnimation=function(){var ft=yn.getAppletObject();return ft&&typeof ft.stopAnimation=="function"?(ft.stopAnimation(),!0):!1},yn.getAppletObject=function(){var ft=se.id!==void 0?se.id:"ggbApplet";return window[ft]},yn.resize=function(){};var Lt=function(ft,yt,Gt){var qn=document.createElement("param");qn.setAttribute("name",yt),qn.setAttribute("value",Gt),ft.appendChild(qn)},nt=function(ft){return ft&&ft!=="false"},qt=function(ft,yt,Gt){Ce(dt)<=4.2&&(Gt=!0);var qn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==dt||ggbHTML5LoadedCodebaseIsWebSimple&&!Je)&&(qn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Dn=document.createElement("div");Dn.classList.add("appletParameters","notranslate");var Tt=yt.width,mn=yt.height;if(yt.disableAutoScale=yt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():yt.disableAutoScale,yt.width!==void 0)if(Ce(dt)<=4.4)nt(yt.showToolBar)&&(yt.height-=7),nt(yt.showAlgebraInput)&&(yt.height-=37),yt.width<605&&nt(yt.showToolBar)&&(yt.width=605,Tt=605);else{var Vn=100;(nt(yt.showToolBar)||nt(yt.showMenuBar))&&(yt.hasOwnProperty("customToolBar")&&(yt.customToolbar=yt.customToolBar),Vn=nt(yt.showMenuBar)?245:155),Tt<Vn&&(yt.width=Vn,Tt=Vn)}Dn.style.border="none",Dn.style.display="inline-block";for(var kn in yt)yt.hasOwnProperty(kn)&&kn!=="appletOnLoad"&&Dn.setAttribute("data-param-"+kn,yt[kn]);at&&Dn.setAttribute("data-param-fontscssurl",at),yn.resize=function(){GGBAppletUtils.responsiveResize(ft,yt)},window.addEventListener("resize",function(sn){yn.resize()});var Pe=typeof yt.appletOnLoad=="function"?yt.appletOnLoad:function(){};if(!Gt&&yt.width!==void 0){yt.hasOwnProperty("showSplash")||Dn.setAttribute("data-param-showSplash","false");var fe=ft.querySelector(".applet_scaler.prerender"),ce=fe!==null;if(ce)var he=fe.querySelector(".ggb_preview");else{var he=rr(Tt,mn,yt.borderColor,!1);fe=document.createElement("div"),fe.className="applet_scaler",fe.style.position="relative",fe.style.display="block",fe.style.width=Tt+"px",fe.style.height=mn+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(fe,"66%"),Ce(dt)>=5?(yt.appletOnLoad=function(sn){var it=ft.querySelector(".ggb_preview");it&&it.parentNode.removeChild(it),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(fe),window.GGBT_wsf_view&&$(window).trigger("resize"),Pe(sn)},ce||fe.appendChild(he)):Dn.appendChild(he),fe.appendChild(Dn),ce||ft.appendChild(fe),setTimeout(function(){yn.resize()},1)}else{var ue=document.createElement("div");ue.className="applet_scaler",ue.style.position="relative",ue.style.display="block",ue.appendChild(Dn),ft.appendChild(ue),yt.appletOnLoad=function(sn){yn.resize(),Pe(sn)}}function le(sn,it){it&&typeof it.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(sn,it.appletOnLoad):renderGGBElement(sn),xn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",it)}function Me(sn,it){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:sn,params:it}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Mt){le(Mt.article,Mt.params)}),html5AppletsToProcess=null)},Ce(dt)<5&&(sn.className+=" geogebraweb")):le(sn,it)}if(qn){scriptLoadStarted=!0;for(var Ge=0;Ge<Dn.childNodes.length;Ge++){var St=Dn.childNodes[Ge].tagName;St==="TABLE"&&(Dn.removeChild(Dn.childNodes[Ge]),Ge--)}if(ggbHTML5LoadedScript!==null){var Ht=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ht!=null&&Ht.parentNode.removeChild(Ht)}var Yt=document.createElement("script"),Vt=function(){Me(Dn,yt)};Yt.src=ot+pt,ggbHTML5LoadedCodebaseIsWebSimple=Je,ggbHTML5LoadedCodebaseVersion=dt,ggbHTML5LoadedScript=Yt.src,xn("GeoGebra HTML5 codebase loaded: '"+ot+"'.",yt),!Ee&&(!ke||ke=="5.0")?(Je?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Vt()):ot.requirejs?__webpack_require__.e(12).then(function(){var sn=[__webpack_require__(12)];Vt.apply(null,sn)}.bind(this)).catch(__webpack_require__.oe):(Yt.onload=Vt,ft.appendChild(Yt))}else Me(Dn,yt);yt.height=mn,yt.width=Tt},zt=function(ft,yt,Gt){var qn=rr(yt.width,yt.height,yt.borderColor,Gt),Dn=document.createElement("div");Dn.style.position="relative",Dn.style.display="block",Dn.style.width=yt.width+"px",Dn.style.height=yt.height+"px",Dn.className="applet_screenshot applet_scaler"+(Gt?" applet_screenshot_play":""),Dn.appendChild(qn);var Tt=GGBAppletUtils.getScale(yt,ft,Gt);Gt?(ft.appendChild(Wn()),window.GGBT_wsf_view||(ft.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Dn,"66%"),ft.appendChild(Dn),Tt!==1&&!isNaN(Tt)&&(GGBAppletUtils.scaleElement(Dn,Tt),Dn.style.width=yt.width+"px",Dn.style.height=yt.height+"px",Dn.parentNode.style.width=yt.width*Tt+"px",Dn.parentNode.style.height=yt.height*Tt+"px"),yn.resize=function(){bn(ft,qn,Dn,Gt)},window.addEventListener("resize",function(mn){yn.resize()}),yn.resize()};function bn(ft,yt,Gt,qn){if(ft.contains(yt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ft.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ft)}var Dn=GGBAppletUtils.getScale(se,ft,qn);Gt.parentNode!==null&&(!isNaN(Dn)&&Dn!==1?(GGBAppletUtils.scaleElement(Gt,Dn),Gt.parentNode.style.width=se.width*Dn+"px",Gt.parentNode.style.height=se.height*Dn+"px"):(GGBAppletUtils.scaleElement(Gt,1),Gt.parentNode.style.width=se.width+"px",Gt.parentNode.style.height=se.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ft),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}yn.onExitFullscreen=function(ft,yt){yt.appendChild(ft)};var dn=function(ft,yt,Gt,qn){zt(ft,yt,!0);for(var Dn=function(){var Vn=[];for(mn=0;mn<ft.childNodes.length;mn++)Vn.push(ft.childNodes[mn]);if(window.GGBT_wsf_view){var kn=window.GGBT_wsf_view.renderFullScreen(ft,yt.id),Pe=document.getElementById("fullscreencontainer"),fe=jQuery(ft).find(".fullscreencontent");fe.length>0?(kn.remove(),fe.attr("id","fullscreencontent").show(),jQuery(Pe).append(fe),window.dispatchEvent(new Event("resize"))):qt(kn,yt,!1),window.GGBT_wsf_view.launchFullScreen(Pe)}else mt=qn,qt(ft,yt,!1);if(!window.GGBT_wsf_view)for(mn=0;mn<Vn.length;mn++)ft.removeChild(Vn[mn])},Tt=ft.getElementsByClassName("ggb_preview_play"),mn=0;mn<Tt.length;mn++)Tt[mn].addEventListener("click",Dn,!1),Tt[mn].addEventListener("ontouchstart",Dn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ft),Ye()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Wn=function(){var ft=document.createElement("div");if(ft.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var yt='.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");}',Gt=document.createElement("style");Gt.styleSheet?Gt.styleSheet.cssText=yt:Gt.appendChild(document.createTextNode(yt)),document.getElementsByTagName("head")[0].appendChild(Gt)}return ft},rr=function(ft,yt,Gt,qn){var Dn=document.createElement("div");Dn.className="ggb_preview",Dn.style.position="absolute",Dn.style.zIndex="90",Dn.style.width=ft-2+"px",Dn.style.height=yt-2+"px",Dn.style.top="0px",Dn.style.left="0px",Dn.style.overflow="hidden",Dn.style.backgroundColor="white";var Tt="lightgrey";Gt!==void 0&&(Gt==="none"?Tt="transparent":Tt=Gt),Dn.style.border="1px solid "+Tt;var mn=document.createElement("img");if(mn.style.position="relative",mn.style.zIndex="1000",mn.style.top="-1px",mn.style.left="-1px",Be!==null&&mn.setAttribute("src",Be),mn.style.opacity=.7,gt!==null){var Vn,kn,Pe;if(!qn){Vn=document.createElement("img"),Vn.style.position="absolute",Vn.style.zIndex="1001",Vn.style.opacity=1,mn.style.opacity=.3,kn=360,kn>ft/4*3&&(kn=ft/4*3),Pe=kn/5.8,Vn.setAttribute("src",gt),Vn.setAttribute("width",kn),Vn.setAttribute("height",Pe);var fe=(ft-kn)/2,ce=(yt-Pe)/2;Vn.style.left=fe+"px",Vn.style.top=ce+"px",Dn.appendChild(Vn)}}return Dn.appendChild(mn),Dn},ln=function(ft){return ft=ft.toLowerCase(),ft==="html5"||ft==="screenshot"?ft:"html5"},$e=["web","webSimple","web3d","tablet","tablet3d","phone"],Se=function(ft,yt){if(dt=ft,yt){Bt(dt,!0);return}var Gt=!Le;if(Gt){var qn=Ce(dt);!isNaN(qn)&&qn<4.4&&(Gt=!1)}var Dn,Tt;window.location.protocol.substr(0,4)==="http"?Dn=window.location.protocol:Dn="http:";var mn=dt.indexOf("//");mn>0?Tt=dt:mn===0?Tt=Dn+dt:Tt="https://www.geogebra.org/apps/5.2.814.0/";for(var Vn in $e)if(dt.slice($e[Vn].length*-1)===$e[Vn]||dt.slice(($e[Vn].length+1)*-1)===$e[Vn]+"/"){Bt(Tt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Gt&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!nt(se.showToolBar)&&!nt(se.showMenuBar)&&!nt(se.showAlgebraInput)&&!nt(se.enableRightClick)&&(!se.appName||se.appName=="classic")?Tt+="webSimple/":Tt+="web3d/",Bt(Tt,!1)},Bt=function(ft,yt){if(ft.requirejs){ot=ft;return}ft.slice(-1)!=="/"&&(ft+="/"),ot=ft,yt===null&&(yt=ft.indexOf("http")===-1),Ne=yt,pt="web.nocache.js",Je=!1;var Gt=ot.split("/");Gt.length>1&&(!yt&&Gt[Gt.length-2]==="webSimple"?(pt="webSimple.nocache.js",Je=!0):$e.indexOf(Gt[Gt.length-2])>=0&&(pt=Gt[Gt.length-2]+".nocache.js")),Gt=ft.split("/"),dt=Gt[Gt.length-3],dt.substr(0,4)==="test"?dt=dt.substr(4,1)+"."+dt.substr(5,1):(dt.substr(0,3)==="war"||dt.substr(0,4)==="beta")&&(dt="5.0");var qn=parseFloat(dt);qn!==NaN&&qn<5&&ft.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+qn+" is deprecated. Using version latest instead."),Se("5.0",yt))},xn=function(ft,yt){window.console&&window.console.log&&(!yt||typeof yt.showLogging=="undefined"||yt.showLogging&&yt.showLogging!=="false")&&console.log(ft)};se.material_id!==void 0?Ve(Xt):Xt();function Xt(){var ft=fn;ke!==null?ft=ke:parseFloat(ft)<5&&(ft="5.0"),Se(ft,!1),Ee!==null&&Bt(Ee,Ne),ge=!0}return yn},GGBAppletUtils=function(){"use strict";function yn(){return window.GGBT_wsf_edit!==void 0}function fn(ge,ke){ke!=1?(ge.style.transformOrigin="0% 0% 0px",ge.style.webkitTransformOrigin="0% 0% 0px",ge.style.transform="scale("+ke+","+ke+")",ge.style.webkitTransform="scale("+ke+","+ke+")",ge.style.maxWidth="initial",ge.querySelector(".ggb_preview")!==null&&(ge.querySelector(".ggb_preview").style.maxWidth="initial"),ge.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ge.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ge.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ge.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ge.style.transform="none",ge.style.webkitTransform="none")}function se(ge,ke,Ee,xe,me,De){var ot=null;if(De!=null&&De!="")for(var Ne=ge.parentNode;Ne!=null;)if((" "+Ne.className+" ").indexOf(" "+De+" ")>-1){ot=Ne;break}else Ne=Ne.parentNode;var mt=0,dt=0,pt=0,Je=0,Be=0,gt=0,nn=0;if(ot)mt=ot.offsetWidth,dt=Math.max(xe?ot.offsetWidth:0,ot.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(mt=Math.min(window.innerWidth,document.documentElement.clientWidth),dt=Math.min(window.innerHeight,document.documentElement.clientHeight),pt=mt):(mt=window.innerWidth,dt=window.innerHeight,pt=window.innerWidth),ge){var at=ge.getBoundingClientRect();at.left>0&&at.left<=mt&&(me===void 0||!me)&&(document.dir==="rtl"?(Be=mt-at.width-at.left,gt=pt<=480?10:30):(gt=at.left,Be=pt<=480?10:30),Je=gt+Be)}if(ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var vt=ge.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Je=40,nn=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Je=0,nn=40)}}return ge&&((Ee===void 0||!Ee)&&ke>0&&ke+Je<mt?mt=ke:mt-=Je,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ee===void 0||!Ee)&&(dt-=nn)),{width:mt,height:dt}}function ae(ge,ke,Ee,xe,me){if(ge.isScreenshoGenerator)return 1;var De=xe!==void 0&&xe,ot=ge.noScaleMargin!=null&&ge.noScaleMargin,Ne=function(vt){return vt&&vt!=="false"},mt=Ne(ge.autoHeight),dt=se(ke,ge.width,Ee,mt,De&&window.GGBT_wsf_view||ot,me),pt=parseInt(dt.width),Je=ge.width,Be=ge.height;if(Je===void 0){var gt=ke.querySelector(".appletParameters");gt&&(Je=gt.offsetWidth,Be=gt.offsetHeight)}var nn=pt/Je,at=De?1:dt.height/Be;return Ee!==void 0&&!Ee&&(nn=Math.min(1,nn),at=Math.min(1,at)),Math.min(nn,at)}function Le(ge,ke,Ee){var xe=1,me,De=!1;if(ge.hasOwnProperty("allowUpscale")&&(De=ge.allowUpscale),ge.hasOwnProperty("scale")&&(xe=parseFloat(ge.scale),(isNaN(xe)||xe===null||xe===0)&&(xe=1),xe>1&&(De=!0)),ke&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(ge.hasOwnProperty("disableAutoScale")&&ge.disableAutoScale))me=ae(ge,ke,De,Ee,ge.scaleContainerClass);else return xe;return De&&(!ge.hasOwnProperty("scale")||xe===1)?me:Math.min(xe,me)}function _e(ge){var ke=Math.min(window.innerWidth,document.documentElement.clientWidth),Ee=Math.min(window.innerHeight,document.documentElement.clientHeight),xe=ge.getBoundingClientRect(),me=(ke-xe.width)/2,De=(Ee-xe.height)/2;De<0&&(De=0),ge.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(me<40?ge.style.left="40px":ge.style.left=me+"px",ge.style.top=De+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(De<40?ge.style.top="40px":ge.style.top=De+"px",ge.style.left=me+"px")}function rt(ge,ke){var Ee=ge.querySelector(".appletParameters");if(Ee){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ke.id!==Ee.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ge)}if(Ee.parentElement&&/fullscreen/.test(Ee.parentElement.className))return;var xe=Le(ke,ge);yn()&&Ee.setAttribute("data-param-scale",xe);for(var me=null,De=0;De<ge.childNodes.length;De++)if(ge.childNodes[De].className!==void 0&&ge.childNodes[De].className.match(/^applet_scaler/)){me=ge.childNodes[De];break}if(me!==null&&me.querySelector(".noscale")!==null)return;var ot=ke.id!==void 0?ke.id:"ggbApplet",Ne=window[ot];(Ne==null||!Ne.recalculateEnvironments)&&me!==null&&!me.className.match(/fullscreen/)&&(me.parentNode.style.transform="",!isNaN(xe)&&xe!==1?(me.parentNode.style.width=ke.width*xe+"px",me.parentNode.style.height=ke.height*xe+"px",fn(me,xe)):(fn(me,1),me.parentNode.style.width=ke.width+"px",me.parentNode.style.height=ke.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&_e(ge),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ee).parents(".content-added-content"))}}return{responsiveResize:rt,isFlexibleWorksheetEditor:yn,positionCenter:_e,getScale:Le,scaleElement:fn}}();__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 yn=n.location.search;return yn.indexOf(J)!=-1||yn.indexOf(K)!=-1}function q(yn,fn){}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(yn){var fn=s[L].bindings;s[L].bindings=function(){for(var se=fn?fn():{},ae=yn[webModule.__softPermutationId],Le=O;Le<ae.length;Le++){var _e=ae[Le];se[_e[O]]=_e[P]}return se}};var t;function u(){return v(),t}function v(){if(!t){var yn=o.createElement(Q);if(yn.id=L,yn.style.cssText=R+S,yn.tabIndex=-1,o.body.appendChild(yn),t=yn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var fn=document.compatMode==U?V:W;t.write(fn+X),t.close()}}}function w(yn){function fn(ae){function Le(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var _e=Le();if(_e){ae();return}function rt(){if(!_e){if(!Le())return;_e=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,rt,!1),ge&&clearInterval(ge)}}o.addEventListener&&o.addEventListener(Z,rt,!1);var ge=setInterval(function(){rt()},$)}function se(ae){var Le=u(),_e=Le.body,rt=Le.createElement(_);rt.language=ab,rt.crossOrigin=W,rt.src=ae,webModule.__errFn&&(rt.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),_e.appendChild(rt)}fn(function(){se(yn)})}webModule.__startLoadingFragment=function(yn){return C(yn)},webModule.__installRunAsyncCode=function(yn){var fn=u(),se=fn.body,ae=fn.createElement(_);ae.language=ab,ae.text=yn,se.appendChild(ae),se.removeChild(ae)};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(yn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(yn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(yn){var fn=c[yn];return fn==null?null:fn},r=d,webModule.__errFn=e}function B(){function yn(ge){var ke=ge.lastIndexOf(rb);ke==-1&&(ke=ge.length);var Ee=ge.indexOf(sb);Ee==-1&&(Ee=ge.length);var xe=ge.lastIndexOf(tb,Math.min(Ee,ke));return xe>=O?ge.substring(O,xe+P):W}function fn(ge){if(!ge.match(/^\w+:\/\//)){var ke=o.createElement(ub);ke.src=ge+vb,ge=yn(ke.src)}return ge}function se(){var ge=__gwt_getMetaProperty(wb);return ge!=null?ge:W}function ae(){for(var ge=o.getElementsByTagName(_),ke=O;ke<ge.length;++ke)if(ge[ke].src.indexOf(xb)!=-1)return yn(ge[ke].src);return W}function Le(){var ge=o.getElementsByTagName(yb);return ge.length>O?ge[ge.length-P].href:W}function _e(){var ge=o.location;return ge.href==ge.protocol+zb+ge.host+ge.pathname+ge.search+ge.hash}var rt=se();return rt==W&&(rt=ae()),rt==W&&(rt=Le()),rt==W&&_e()&&(rt=yn(o.location.href)),rt=fn(rt),rt}function C(yn){return yn.match(/^\//)||yn.match(/^[a-zA-Z]+:\/\//)?yn:webModule.__moduleBase+yn}function D(){var yn=[],fn=O,se=[],ae=[];function Le(ge){var ke=ae[ge](),Ee=se[ge];if(ke in Ee)return ke;var xe=[];for(var me in Ee)xe[Ee[me]]=me;throw r&&r(ge,xe,ke),null}if(__gwt_isKnownPropertyValue=function(ge,ke){return ke in se[ge]},webModule.__getPropMap=function(){var ge={};for(var ke in se)se.hasOwnProperty(ke)&&(ge[ke]=Le(ke));return ge},webModule.__computePropValue=Le,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var _e;try{_e=Cb;var rt=_e.indexOf(Db);rt!=-1&&(fn=parseInt(_e.substring(rt+P),$),_e=_e.substring(O,rt))}catch(ge){}return webModule.__softPermutationId=fn,C(_e+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(yn,fn,se){"use strict";se.d(fn,{Ax:function(){return rt},Ds:function(){return ge},KI:function(){return Ee},SI:function(){return _e},f1:function(){return Le}});var ae=se(11320);function Le(xe){let me=!0;if(xe.length>0){for(let De=0;De<xe.length;De++)if(xe[De].compile_success==0||!xe[De].compile_success){me=!1;break}}else me=!1;return me}function _e(xe,me=""){let De=[];for(let ot=0;ot<xe.length;ot++){let Ne=xe[ot],mt=me?`${me}/${Ne.name}`:`${Ne.name}`;De.push({title:Ne.name,type:Ne.type,isLeaf:Ne.type!=="tree",key:mt})}return De}function rt(xe,me,De){for(let ot=0;ot<xe.length;ot++){let Ne=xe[ot];if(Ne.key===me){Ne.children=De;break}Ne.children&&rt(Ne.children,me,De)}return xe}function ge(xe,me,De){let ot;return function(){let Ne=this,mt=arguments,dt=function(){ot=null,De||xe.apply(Ne,mt)},pt=De&&!ot;clearTimeout(ot),ot=setTimeout(dt,me),pt&&xe.apply(Ne,mt)}}const ke=!0,Ee=ae.Z.API_SERVER},63205:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return ot}});var ae=se(67294),Le={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},_e=se(94184),rt=se.n(_e),ge=se(57953),ke=se(15979),Ee=se(33170),xe=se(28706),me=(Ne,mt,dt)=>new Promise((pt,Je)=>{var Be=at=>{try{nn(dt.next(at))}catch(vt){Je(vt)}},gt=at=>{try{nn(dt.throw(at))}catch(vt){Je(vt)}},nn=at=>at.done?pt(at.value):Promise.resolve(at.value).then(Be,gt);nn((dt=dt.apply(Ne,mt)).next())}),ot=({data:Ne,className:mt,fullWidth:dt,style:pt={},onClose:Je,onOk:Be,showFullTools:gt,noAssociationId:nn})=>{const at=(0,ae.useRef)(null),vt=(0,ae.useRef)(null),Ce=(0,ae.useRef)(null),Ae=(0,ae.useRef)(null),[Ye,Ve]=(0,ae.useState)(!1),[At,xt]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{Ce.current||(Ce.current=document.createElement("style"),document.head.appendChild(Ce.current)),Ne!=null&&Ne.visible?(document.body.setAttribute("data-custom","y-hidden"),Ce.current.innerHTML=" html { overflow-y: hidden; }",Ne!=null&&Ne.src&&Lt()):(document.body.removeAttribute("data-custom"),Ce.current&&(document.head.removeChild(Ce.current),Ce.current=null))},[Ne==null?void 0:Ne.visible]);const Lt=()=>me(void 0,null,function*(){Ve(!0),xt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const dn=yield(0,xe.ZJ)(Ne==null?void 0:Ne.src);at.current.src="",at.current.src=dn,at.current.onload=function(){bn()},Ve(!1),xt("")}),nt=()=>{document.body.removeAttribute("data-custom"),Ce.current.innerHTML=" ",Je()},qt=dn=>me(void 0,null,function*(){Ve(!0),xt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Wn=yield(0,Ee.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ne.title,file:dn.dataUrl}});Wn!=null&&Wn.id&&!nn?(yield(0,Ee.ZP)(`/api/attachments/${Ne.id}/add_subitem.json`,{method:"post",body:{subitem_id:Wn==null?void 0:Wn.id,settings:JSON.stringify(dn.state)}})).status===0&&Be():Wn!=null&&Wn.id&&Be(Wn),document.body.removeAttribute("data-custom"),Ce.current.innerHTML=" ",Ve(!1),xt("")}),zt=()=>{const dn=document.querySelector('a[href="https://markerjs.com/"]');dn&&dn.parentNode&&(dn.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(rr=>{const ln=document.querySelector(rr.name);ln&&ln.setAttribute("title",rr.title)})},bn=()=>{vt.current=new ke.hP(at.current),vt.current.targetRoot=Ae.current,vt.current.addEventListener("render",qt),vt.current.addEventListener("beforeclose",nt),gt&&(vt.current.availableMarkerTypes=vt.current.ALL_MARKER_TYPES,vt.current.uiStyleSettings.redoButtonVisible=!0,vt.current.uiStyleSettings.notesButtonVisible=!0,vt.current.uiStyleSettings.zoomButtonVisible=!0,vt.current.uiStyleSettings.zoomOutButtonVisible=!0,vt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=vt.current.uiStyleSettings,vt.current.show(),Ne!=null&&Ne.snapshotData&&vt.current.restoreState(Ne.snapshotData),setTimeout(()=>{window.scrollTo(0,0),zt()},300)};return ae.createElement(ae.Fragment,null,(Ne==null?void 0:Ne.visible)&&ae.createElement(ge.Z,{spinning:Ye,tip:At,style:{position:"absolute"}},ae.createElement("div",{ref:Ae,className:rt()(Le.imageDimensions,mt,dt?Le.fullWidth:""),style:pt},ae.createElement("img",{className:Le.img,ref:at}))))}},36527:function(yn,fn,se){"use strict";var ae=se(67294),Le=se(71230),_e=se(15746),rt=se(66368),ge=se(71577),ke=se(35598),Ee=se(71736),xe=se(84279),me=se(67294);const De=(0,ae.forwardRef)(({callback:ot,showSaveButton:Ne,value:mt=""},dt)=>{const pt=(0,ae.useRef)(),Je=[{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 "}]}]}],Be=[{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}`}]}]}],gt=vt=>{pt.current.setValue(pt.current.getValue()+" "+vt.value+" ")},nn=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:me.createElement(Le.Z,{className:Ee.Z.lists,gutter:[10,10]},Je.map((vt,Ce)=>me.createElement(_e.Z,{flex:"110px",className:Ee.Z.item},me.createElement("div",null,me.createElement(ke.Z,{value:`$$${vt.value}$$`}),vt.name),me.createElement("div",{className:Ee.Z.children},vt.children.map((Ae,Ye)=>me.createElement("div",{key:Ye},me.createElement("h1",null,Ae.name),me.createElement(Le.Z,{gutter:[10,10]},Ae.data.map((Ve,At)=>me.createElement(_e.Z,{key:At,onClick:()=>gt(Ve),className:Ee.Z.diamond},me.createElement(ke.Z,{value:"`$$"+Ve.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:me.createElement(Le.Z,{className:Ee.Z.lists,gutter:[10,10]},Be.map((vt,Ce)=>me.createElement(_e.Z,{flex:"110px",className:Ee.Z.item},me.createElement("div",null,me.createElement(ke.Z,{value:"`$$"+vt.value+"$$`"}),vt.name),me.createElement("div",{className:Ee.Z.children},vt.children.map((Ae,Ye)=>me.createElement("div",{key:Ye},Ae.name&&me.createElement("h1",null,Ae.name),me.createElement(Le.Z,{gutter:[10,10]},Ae.data.map((Ve,At)=>me.createElement(_e.Z,{key:At,onClick:()=>gt(Ve),className:Ee.Z.diamond},me.createElement(ke.Z,{value:"`$$"+Ve.value+"$$`"}))))))))))}],at=()=>{var vt=document.createElement("div");vt.innerHTML=pt.current.getValue();var Ce=vt.innerText;return ot&&ot(Ce),Ce};return(0,ae.useImperativeHandle)(dt,()=>({getData:at})),me.createElement("div",{className:Ee.Z.mathWrap},me.createElement(rt.default,{defaultActiveKey:"1",items:nn}),me.createElement("math-field",{locale:"zh_cn",className:Ee.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:pt,style:{width:800,marginTop:30,fontSize:18}},mt||""),Ne&&me.createElement("div",{className:Ee.Z.button},me.createElement(ge.ZP,{size:"large",onClick:at,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});fn.Z=De},71865:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return rt}});var ae=se(67294),Le=se(33054),_e=se(99398),rt=()=>{const[ge,ke]=(0,ae.useState)(""),[Ee,xe]=(0,ae.useState)(0);let[me,De]=(0,ae.useState)(),[ot,Ne]=(0,ae.useState)();const[mt,dt]=(0,ae.useState)(!1),pt=(0,ae.useRef)("");(0,ae.useEffect)(()=>Le.Z.subscribe("preview-image",At=>{ke(At),console.log(Ae.current),document.body.style.overflow="hidden"}),[]),(0,ae.useEffect)(()=>(document.addEventListener("keydown",Je),()=>{document.removeEventListener("keydown",Je)}),[]),(0,ae.useEffect)(()=>{pt.current=ge},[ge]);function Je(Ve){Ve.keyCode==27&&pt.current&&Be()}function Be(){document.body.style.overflow="auto",De(void 0),Ne(void 0),xe(0),ke("")}function gt(){xe(Ee+90)}function nn(){me=Ae.current.width*1.1,ot=Ae.current.height*1.1,Ne(ot),De(me)}function at(){me=Ae.current.width/1.1,ot=Ae.current.height/1.1,Ne(ot),De(me)}const vt=(0,ae.useRef)(),Ce=(0,ae.useRef)(),Ae=(0,ae.useRef)(),Ye=Ve=>{(Ve.nativeEvent.target===vt.current||Ve.nativeEvent.target===Ce.current)&&Be()};return ae.createElement(ae.Fragment,null,ge?ae.createElement("div",null,ae.createElement("div",{className:"preview-wrp-group",ref:Ce},ae.createElement(_e.Z,{className:"image-preview",src:ge,style:{display:"none"},preview:{visible:!0,src:ge,movable:!1,onVisibleChange:Ve=>{ke("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},57444:function(yn,fn,se){"use strict";se.d(fn,{h:function(){return vt}});var ae=se(67294),Le=se(11713),_e=se(22150),rt=se(71577),ge=se(4631),ke=se.n(ge),Ee=se(71749),xe=se(30483),me=Object.defineProperty,De=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,pt=(Ce,Ae,Ye)=>Ae in Ce?me(Ce,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):Ce[Ae]=Ye,Je=(Ce,Ae)=>{for(var Ye in Ae||(Ae={}))mt.call(Ae,Ye)&&pt(Ce,Ye,Ae[Ye]);if(Ne)for(var Ye of Ne(Ae))dt.call(Ae,Ye)&&pt(Ce,Ye,Ae[Ye]);return Ce},Be=(Ce,Ae)=>De(Ce,ot(Ae));const gt=Le.default.Option,nn={labelCol:{span:4},wrapperCol:{span:20}},at={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"]};fn.Z=({callback:Ce,onCancel:Ae})=>{const[Ye,Ve]=(0,ae.useState)("python");function At(Lt){Ve(at[Lt][1])}function xt(Lt){Ce(Lt)}return ae.createElement(_e.default,Be(Je({},nn),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:xt,style:{width:500}}),ae.createElement(_e.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Le.default,{getPopupContainer:Lt=>Lt.parentNode,onChange:At},Object.keys(at).map(Lt=>ae.createElement(gt,{key:Lt,value:Lt},at[Lt][0])))),ae.createElement(_e.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(vt,{mode:Ye})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(rt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(rt.ZP,{type:"ghost",onClick:Ae},"\u53D6\u6D88")))};function vt({value:Ce,onChange:Ae,mode:Ye,options:Ve={}}){const At=(0,ae.useRef)(),[xt,Lt]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(xt){let nt=function(qt){const zt=qt.getValue();Ae&&Ae(zt)};return xt.on("change",nt),()=>{xt.off("change",nt)}}},[xt,Ae]),(0,ae.useEffect)(()=>{xt&&xt.setOption("mode",Ye)},[xt,Ye]),(0,ae.useEffect)(()=>{xt&&(Ce!==xt.getValue()||Ce==="")&&setTimeout(()=>{xt.setValue(Ce||"")},300)},[xt,Ce]),(0,ae.useEffect)(()=>{if(At.current&&!xt){const nt=ke().fromTextArea(At.current,Je({mode:Ye,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ve));Lt(nt)}},[At.current,xt]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:At}))}},91304:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return sr}});var ae=se(67294),Le=se(4631),_e=se.n(Le),rt=se(91033),ge=se(71749),ke=se(57341),Ee=se(82801),xe=se(88386),me=se(49047),De=se(80785),ot=se(35598),Ne=({value:Un="",className:qe,showTextOnly:wt,showLines:Zt,style:an={}})=>{const ze=(0,ae.useMemo)(()=>"",[Un]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:ze}}))},mt=se(67294),dt=Object.defineProperty,pt=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable,at=(Un,qe,wt)=>qe in Un?dt(Un,qe,{enumerable:!0,configurable:!0,writable:!0,value:wt}):Un[qe]=wt,vt=(Un,qe)=>{for(var wt in qe||(qe={}))gt.call(qe,wt)&&at(Un,wt,qe[wt]);if(Be)for(var wt of Be(qe))nn.call(qe,wt)&&at(Un,wt,qe[wt]);return Un},Ce=(Un,qe)=>pt(Un,Je(qe));let Ae=[{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 Ye({onActionCallback:Un,title:qe,icon:wt,actionName:Zt,className:an="",children:ze}){function Ct(){Un(Zt)}return mt.createElement("a",{title:qe,className:an,onClick:Ct},mt.createElement("i",{className:`${wt}`}),ze)}var Ve=({watch:Un,showNullButton:qe,showNullProgramButton:wt,onActionCallback:Zt,fullScreen:an,insertTemp:ze,hidetoolBar:Ct,extraUse:tn})=>{const Kt=[...Ae,{title:`${Un?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Un?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return mt.createElement("ul",{className:"markdown-toolbar-container"},!Ct&&Kt.map((hn,gn)=>mt.createElement("li",{key:gn},hn.actionName?mt.createElement(Ye,Ce(vt({},hn),{onActionCallback:Zt})):mt.createElement("span",{className:"v-line"}))),qe?mt.createElement("li",null,mt.createElement(Ye,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Zt},mt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,wt?mt.createElement(mt.Fragment,null,mt.createElement("li",null,mt.createElement(Ye,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Zt},mt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),mt.createElement("li",null,mt.createElement(Ye,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Zt},mt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ze&&mt.createElement("li",null,mt.createElement(Ye,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ze}`,onActionCallback:Zt},mt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),tn&&mt.createElement("li",null,tn),mt.createElement("li",{className:"btn-full-screen"},mt.createElement(Ye,{icon:`${an?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:an?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Zt})))},At=se(76621),xt=se(22150),Lt=se(69677),nt=se(71577),qt=Object.defineProperty,zt=Object.defineProperties,bn=Object.getOwnPropertyDescriptors,dn=Object.getOwnPropertySymbols,Wn=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,ln=(Un,qe,wt)=>qe in Un?qt(Un,qe,{enumerable:!0,configurable:!0,writable:!0,value:wt}):Un[qe]=wt,$e=(Un,qe)=>{for(var wt in qe||(qe={}))Wn.call(qe,wt)&&ln(Un,wt,qe[wt]);if(dn)for(var wt of dn(qe))rr.call(qe,wt)&&ln(Un,wt,qe[wt]);return Un},Se=(Un,qe)=>zt(Un,bn(qe));const Bt={labelCol:{span:4},wrapperCol:{span:20}};var xn=({callback:Un,onCancel:qe})=>{function wt(Zt){Un(Zt)}return ae.createElement(xt.default,Se($e({},Bt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:wt,style:{width:500}}),ae.createElement(xt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Lt.default,null)),ae.createElement(xt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Lt.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(nt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(nt.ZP,{type:"ghost",onClick:qe},"\u53D6\u6D88")))},Xt=se(57444),ft=se(70859),yt=se(14446),Gt=se(71230),qn=se(63205),Dn=se(67294),Tt=({callback:Un,onCancel:qe})=>{const wt=document.createElement("canvas"),Zt=wt.getContext("2d");wt.width=1e3,wt.height=800,Zt.fillStyle="#ffffff",Zt.fillRect(0,0,wt.width,wt.height);const an=wt.toDataURL("image/png");return Dn.createElement(yt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Dn.createElement(Gt.Z,{style:{height:"100vh"}},Dn.createElement(qn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:an,visible:!0,title:String(Date.now())},onOk:ze=>{Un({src:ze.url})},onClose:qe})))},mn=se(72565),Vn=se(15746),kn=se(2453),Pe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},fe=se(67294),he=(0,ae.forwardRef)(({onCancel:Un,editImgId:qe,callback:wt},Zt)=>{let an=(0,ae.useRef)(),ze=(0,ae.useRef)(),Ct=(0,ae.useRef)(),tn=(0,ae.useRef)(!1);const Kt=(0,ae.useRef)(!1);console.log("ref:",Zt);const[hn,gn]=(0,ae.useState)(0),[Xn,_r]=(0,ae.useState)("100vh");return(0,ae.useEffect)(()=>{gn(1);try{indexedDB.databases().then(lr=>{lr.forEach(mr=>indexedDB.deleteDatabase(mr.name))})}catch(lr){}},[]),(0,ae.useImperativeHandle)(Zt,()=>({setHeight:_r})),fe.createElement("div",{ref:Kt,className:"body-overflow-initial"},fe.createElement(mn.Z,{width:"100vw",height:Xn,footer:null,closable:!0,placement:"bottom",open:!!hn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Pe.drawerWrap}`,onClose:()=>{window.saveDrawData(lr=>{wt({src:`/api/attachments/${lr}`,id:lr})})},title:fe.createElement(Gt.Z,{align:"middle"},fe.createElement(Vn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),fe.createElement(Vn.Z,{onClick:()=>{_r(Xn==="60px"?"100vh":"60px")}},fe.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),fe.createElement(Vn.Z,{onClick:()=>{window.saveDrawData(lr=>{if(lr===null){kn.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}kn.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),wt({src:`/api/attachments/${lr}`,id:lr,disabledClose:!0})})}},fe.createElement(nt.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},fe.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${qe||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:ze})))}),ue=se(11320),le=se(78045),Me=se(31795);const Ge=le.ZP.Group,St={margin:"0 8px"};var Ht=({callback:Un,onCancel:qe})=>{function wt(Zt){Un(Zt)}return ae.createElement(xt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:wt},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:St},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:St},"\u884C\u6570"),ae.createElement(xt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(Me.Z,null)),ae.createElement("span",{style:St},"\u5217\u6570"),ae.createElement(xt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(Me.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:St},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(xt.default.Item,{name:"align"},ae.createElement(Ge,null,ae.createElement(le.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(le.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(le.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(le.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(nt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(nt.ZP,{type:"ghost",onClick:qe},"\u53D6\u6D88")))},Yt=se(47897),Vt=se(61016),sn=se.n(Vt),Mt=(0,ae.forwardRef)(({use3d:Un,width:qe,height:wt,callback:Zt,showSaveButton:an},ze)=>{const Ct=(0,ae.useRef)(),tn=(0,ae.useRef)(),[Kt,hn]=(0,ae.useState)(!1),gn=(0,ae.useRef)({id:Ct,appName:"graphing",width:qe||1e3,height:wt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{tn.current=new(sn())(gn.current,!0),window.onload=function(){tn.current.inject("applet_container")}},[]);const Xn=()=>{var _r=window.ggbApplet.getPNGBase64(1,!0,72);return Zt&&Zt(_r),_r};return(0,ae.useEffect)(()=>{gn.current.appName=Kt?"3D":"graphing",tn.current.inject("applet_container")},[Kt]),(0,ae.useEffect)(()=>{hn(Un)},[Un]),(0,ae.useImperativeHandle)(ze,()=>({getImgData:Xn})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ct}),ae.createElement(Gt.Z,{align:"middle"},ae.createElement(Vn.Z,{flex:1},ae.createElement(Yt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Kt,onChange:_r=>hn(_r)})),ae.createElement(Vn.Z,null,ae.createElement(nt.ZP,{size:"large",onClick:Xn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ot=se(36527),$t=se(25934);const bt="link",_n="upload-image",ct="add-flowchart",Dt="draw-image",En="add-flowchart",wn="code-block",Bn="add-table",Qn="------------",wr={default:Qn,left:`:${Qn}`,center:`:${Qn}:`,right:`${Qn}:`};var br=se(99914),Sr=(Un,qe,wt)=>new Promise((Zt,an)=>{var ze=Kt=>{try{tn(wt.next(Kt))}catch(hn){an(hn)}},Ct=Kt=>{try{tn(wt.throw(Kt))}catch(hn){an(hn)}},tn=Kt=>Kt.done?Zt(Kt.value):Promise.resolve(Kt.value).then(ze,Ct);tn((wt=wt.apply(Un,qe)).next())});function Yn(){}let ir=0;const Dr=1e4,ti="\u2581",Ai="@\u2581\u2581@",tr="@\u2581@",Jr=`
|
|
|
**\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`,kt=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function vn(Un){return/^\d+$/.test(Un)?`${Un}px`:Un}const In=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",nr={[In+"-B"]:"bold",[In+"-I"]:"italic"},gr={[bt]:"\u6DFB\u52A0\u94FE\u63A5",[wn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[_n]:"\u6DFB\u52A0\u56FE\u7247",[Dt]:"\u6DFB\u52A0\u753B\u56FE",[ct]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Bn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var sr=({defaultValue:Un="",onChange:qe,width:wt="100%",height:Zt=400,miniToolbar:an=!1,isFocus:ze=!1,watch:Ct,insertTemp:tn,mode:Kt="markdown",id:hn="markdown-editor-id",showResizeBar:gn=!1,noStorage:Xn=!1,showNullButton:_r=!1,showNullProgramButton:lr=!1,hidetoolBar:mr=!1,fullScreen:Or=!1,onBlur:Rr,onCMBeforeChange:Zr,onFullScreen:Kn,className:fr="",disablePaste:Mn=!1,disabled:Sn=!1,disabledFill:on=!1,placeholder:yr="",values:Wr="",extraUse:Lr,onAddBlank:qr})=>{const[Cn,Er]=(0,ae.useState)(null),[vr,ta]=(0,ae.useState)(Un),[Hi,Pi]=(0,ae.useState)(Ct),[Di,qi]=(0,ae.useState)(Or),[Ki,di]=(0,ae.useState)(""),[na,aa]=(0,ae.useState)(0),[_i,Mi]=(0,ae.useState)(Zt),[Sa,Si]=(0,ae.useState)(!1),$r=(0,ae.useRef)((0,$t.Z)()),Ft=(0,ae.useRef)(!1),Pt=(0,ae.useRef)(),[pn,Pn]=(0,ae.useState)(0),[cr,Gr]=(0,ae.useState)(0),Xr=(0,ae.useRef)(),oi=(0,ae.useRef)(),jt=(0,ae.useRef)(),ur=(0,ae.useRef)(),li=(0,ae.useRef)(),ci=(0,ae.useRef)(),Oi=()=>Sr(void 0,null,function*(){var Gn;const jn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:$r.current}});(Gn=jn==null?void 0:jn.attachments)!=null&&Gn.length&&(console.log("cm:",Cn,Xr),jn.attachments.map($n=>{$n.content_type.indexOf("image")>-1?Cn.replaceSelection(``):$n.content_type.indexOf("video")>-1?Cn.replaceSelection(`<video width="100%" controls src="${ue.Z.API_SERVER}/api/attachments/${data.id}"></video>`):$n.content_type.indexOf("pdf")>-1?Cn.replaceSelection(`<a href="${ue.Z.API_SERVER}/api/attachments/${$n.id}?type=${$n.content_type}&disposition=inline" target="_blank">${$n.name}</a>`):Cn.replaceSelection(`[${$n.name}](${ue.Z.API_SERVER}/api/attachments/${$n.id}?type=${$n.content_type})`)}))});(0,ae.useEffect)(()=>{const Gn=window.scrollY||window.pageYOffset;ta(Wr),Cn==null||Cn.setValue(Wr),window.scrollTo(0,Gn)},[Wr]),(0,ae.useEffect)(()=>{Kn==null||Kn(Di)},[Di]),(0,ae.useEffect)(()=>{if(Xr.current){let Gn=function($n,dr){var Kr;if(Mn){dr.preventDefault();return}const kr=dr.clipboardData;if(kr){const Cr=kr.types.toString(),Ir=kr.items;if(Cr==="Files"||kr.types.indexOf("Files")>-1){if(dr.preventDefault(),Kt=="stex")return;try{let Ue=Ir[1];((Kr=Ir[0])==null?void 0:Kr.kind)==="file"&&(Ue=Ir[0]);const We=Ue.getAsFile(),we=We.name.split(".").pop();(0,ft.I)(We,Oe=>{var st,tt,_t;Oe.id?((st=We==null?void 0:We.type)==null?void 0:st.indexOf("image"))>-1?jn.replaceSelection(`<img width="100%" src="/api/attachments/${Oe.id}?type=${Oe.content_type})" alt="" />`):((tt=We==null?void 0:We.type)==null?void 0:tt.indexOf("video"))>-1?jn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Oe.id}"></video>`):((_t=We==null?void 0:We.type)==null?void 0:_t.indexOf("pdf"))>-1?jn.replaceSelection(`<a href="/api/attachments/${Oe.id}?type=${We.type}&disposition=inline" target="_blank">${We.name}</a>`):kt.includes(we)?jn.replaceSelection(`<a href="/api/attachments/${Oe.id}?type=office&disposition=inline" target="_blank">${We.name}</a>`):jn.replaceSelection(`[${We.name}](/api/attachments/${Oe.id}?type=${Oe.content_type})`):(Oe==null?void 0:Oe.status)===401&&(kn.ZP.warning((Oe==null?void 0:Oe.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ue){kn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const jn=_e().fromTextArea(Xr.current,{mode:Kt,lineNumbers:!an,lineWrapping:!0,value:Un,autoCloseTags:!lr,autoCloseBrackets:!0});return jn.on("keyup",function($n,dr){dr.keyCode===8&&($n.getValue()==""?jn.setOption("placeholder",yr):jn.setOption("placeholder",null))}),jn.on("keydown",function($n,dr){if(dr.keyCode===8){var Kr=hr($n);Kr&&dr.preventDefault()}}),ze&&jn.focus(),jn.on("paste",Gn),jn.on("dragleave",function($n,dr){oi.current.classList.remove("mouse-hover-md")}),Sn&&jn.on("beforeChange",function($n,dr){(dr.origin==="paste"||dr.origin==="+input")&&dr.cancel()}),Er(jn),()=>{jn.off("paste",Gn)}}},[]);const ra=(0,ae.useCallback)(()=>{if(oi.current)try{}catch(Gn){console.log(Gn,"---- to set md editor body height")}},[_i,oi,Di]);(0,ae.useEffect)(()=>{function Gn(){let jn=new rt.Z($n=>{for(let dr of $n)(dr.target.offsetHeight>0||dr.target.offsetWidth>0)&&(ra(),Cn.setSize("100%","100%"),Cn.refresh())});return jn.observe(Xr.current.parentElement),jn}if(Cn){const jn=Gn();return()=>{var $n,dr;($n=Xr.current)!=null&&$n.parentElement&&jn.unobserve((dr=Xr.current)==null?void 0:dr.parentElement)}}},[Cn,ra]),(0,ae.useEffect)(()=>{if(Cn){let Gn=[];for(const[jn,$n]of Object.entries(nr)){let dr={[jn]:()=>{Qi($n)}};Gn.push(dr),Cn.addKeyMap(dr)}return Pt.current=setInterval(()=>{Ft.current&&Oi()},4e3),()=>{clearInterval(Pt.current);for(let jn of Gn)Cn.removeKeyMap(jn)}}},[Cn]),(0,ae.useEffect)(()=>{Or!==Di&&qi(Or)},[Or]),(0,br.Z)(()=>{if(!Xn&&na>0){let Gn=new Date().getTime(),jn=window.sessionStorage.getItem(hn);Gn>=na+Dr&&(!jn||jn!==vr)&&(window.sessionStorage.setItem(hn,vr),Si(!0))}},Dr),(0,ae.useEffect)(()=>{Pi(Ct)},[Cn,Ct]),(0,ae.useEffect)(()=>{Cn&&ze&&Cn.focus()},[Cn,ze]),(0,ae.useEffect)(()=>{if(Hi&&Cn){let Gn=function($n){let dr=$n.target;if(ur.current){let Kr=dr.scrollTop/dr.scrollHeight;ur.current.scrollTop=ur.current.scrollHeight*Kr}};const jn=Cn.getScrollerElement();return jn.addEventListener("scroll",Gn),()=>{jn.removeEventListener("scroll",Gn)}}},[Cn,Hi]),(0,ae.useEffect)(()=>{if(Cn&&Zr){let Gn=function(jn,$n){Zr(jn,$n)};return Cn.on("beforeChange",Gn),()=>{Cn.off("beforeChange",Gn)}}},[Cn,Zr]),(0,ae.useEffect)(()=>{if(Cn&&Rr){let Gn=function(){Rr(Cn.getValue())};return Cn.on("blur",Gn),()=>{Cn.off("blur",Gn)}}},[Cn,Rr]);function hr(Gn,jn){var $n=Gn.getDoc(),dr=$n.getCursor(),Kr=$n.getLine(dr.line),kr=Kr.charAt(dr.ch-1),Cr=Kr.lastIndexOf("@\u2581@",dr.ch),Ir=Kr.lastIndexOf("@\u2581\u2581@",dr.ch),Ue=Cr>Ir?Cr:Ir,We=Cr>Ir?3:4;if(Ai.indexOf(kr)===-1)return null;if(console.log("change1:",jn,Gn,Kr,dr,Ue,Cr,Ir,kr),Ue>=0&&dr.ch-Ue<5){var we=Ue+We;return $n.replaceRange("",{line:dr.line,ch:Ue},{line:dr.line,ch:we}),{line:dr.line,ch:we}}return null}(0,ae.useEffect)(()=>{if(Cn){let Gn=function(jn,$n){const dr=jn.getValue();ta(dr),aa(new Date().getTime()),jn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),qe&&(lr?qe(dr,Ln(dr)):qe(dr))};return Cn.on("change",Gn),()=>{Cn.off("change",Gn)}}},[Cn,qe]),(0,ae.useEffect)(()=>{if(Cn)if(Un==null)Cn.setValue(""),ta("");else{const Gn=window.scrollY||window.pageYOffset;Un!==Cn.getValue()&&(Cn.setValue(Un),ta(Un),Cn.setCursor(Sn?1:Cn.lineCount(),0),window.scrollTo(0,Gn))}},[Cn,Un]);const Qi=(0,ae.useCallback)(Gn=>{const jn=Cn.getCursor(),$n=Cn.getSelection();let dr=$n.split(`
|
|
|
`);switch(Gn){case"bold":return Cn.replaceSelection("**"+$n+"**"),$n===""&&Cn.setCursor(jn.line,jn.ch+2),Cn.focus();case"italic":return Cn.replaceSelection("*"+$n+"*"),$n===""&&Cn.setCursor(jn.line,jn.ch+1),Cn.focus();case"code":return Cn.replaceSelection("`"+$n+"`"),$n===""&&Cn.setCursor(jn.line,jn.ch+1),Cn.focus();case"inline-latex":return di("inline-latex"),Cn.focus();case"latex":return Cn.replaceSelection("```latex\n"+$n+"\n```"),Cn.setCursor(jn.line+1,$n.length+1),Cn.focus();case"line-break":return Cn.replaceSelection(`<br/>
|
|
|
`),Cn.focus();case"list-ul":return $n===""?Cn.replaceSelection("- "+$n):Cn.replaceSelection(dr.map(Kr=>Kr===""?"":`- ${Kr}`).join(`
|
|
|
`)),Cn.focus();case"list-ol":return $n===""?Cn.replaceSelection("1. "+$n):Cn.replaceSelection(dr.map((Kr,kr)=>Kr===""?"":`${kr+1}. ${Kr}`).join(`
|
|
|
`)),Cn.focus();case"add-null-ch":qr==null||qr();return;case"add-signal":return $n===""&&Cn.setCursor(jn.line,jn.ch),Cn.replaceSelection(tr),Cn.focus();case"add-multiple":return $n===""&&Cn.setCursor(jn.line,jn.ch),Cn.replaceSelection(Ai),Cn.focus();case"inster-template-1":return $n===""&&Cn.setCursor(jn.line,jn.ch),Cn.replaceSelection(Jr),Cn.focus();case"eraser":return Cn.setValue(""),Cn.focus();case"trigger-watch":return Pi(!Hi),Cn.focus();case"trigger-full-screen":return qi(!Di),Cn.focus();case bt:di(bt);return;case wn:di(wn);return;case _n:di(_n);return;case Dt:di(Dt);return;case"maths-latex":di("maths-latex");return;case ct:li.current="",sessionStorage.removeItem("file_id"),di(ct);return;case Bn:di(Bn);return;default:throw new Error}},[Cn,Hi,Di]),Re=(0,ae.useCallback)((Gn,jn)=>{var $n,dr,Kr,kr,Cr,Ir;di("");const{src:Ue,alt:We,id:we}=Gn||{};switch(Ki){case bt:const{title:rn,link:Xe}=Gn;return Cn.replaceSelection(`[${rn}](${Xe})`),Cn.focus();case wn:const{language:Qe,content:lt}=Gn;return Cn.replaceSelection(["```"+Qe,lt,"```"].join(`
|
|
|
`)),Cn.focus();case"maths-latex":for(var Oe=atob(Gn),st=new Uint8Array(Oe.length),tt=0;tt<Oe.length;tt++)st[tt]=Oe.charCodeAt(tt);var _t=new Blob([st],{type:"image/png"});(0,ft.I)(_t,ar=>{ar.id?Cn.replaceSelection(``):(ar==null?void 0:ar.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Cn.replaceSelection("`$$"+Gn+"$$`");break;case En:if(!we)return;Cn.focus(),Cn.getValue().indexOf(Ue)===-1?Cn.replaceSelection(`<center><img id="${we}" width="80%" src="${Ue}" class="draw-flowchart" alt="${We||""}" /></center>`):document.getElementById(we).src=ue.Z.API_SERVER+Ue+"?t="+Date.now();try{setTimeout(()=>{Rr(Cn.getValue())},100)}catch(ar){}break;case _n:case Dt:const ut=jn,en=(Kr=(dr=($n=ut==null?void 0:ut.name)==null?void 0:$n.split("."))==null?void 0:dr.pop)==null?void 0:Kr.call(dr);return((kr=ut==null?void 0:ut.type)==null?void 0:kr.indexOf("image"))>-1||!(ut!=null&&ut.type)?ut!=null&&ut.align||ut!=null&&ut.width?Cn.replaceSelection(`<p style="text-align:${ut.align||"initial"}"><img width="${ut.width?ut.width+"%":"initial"}" src="${Ue}" alt="${We||""}" /></p>`):Cn.replaceSelection(`<img width="100%" src="${Ue}" alt="${We||""}" />`):((Cr=ut==null?void 0:ut.type)==null?void 0:Cr.indexOf("video"))>-1?Cn.replaceSelection(`<video width="100%" controls src="${Ue}"></video>`):((Ir=ut==null?void 0:ut.type)==null?void 0:Ir.indexOf("pdf"))>-1?Cn.replaceSelection(`<a href="${Ue}?type=${ut.type}&disposition=inline" target="_blank">${ut.name}</a>`):kt.includes(en)?Cn.replaceSelection(`<a href="${Ue}?type=office&disposition=inline" target="_blank">${ut.name}</a>`):Cn.replaceSelection(`[${ut.name}](${Ue})`),Cn.focus();case Bn:const{row:cn,col:Wt,align:un}=Gn;let On=`
|
|
|
`;for(let ar=0;ar<cn;ar++){let Fn=[],An=[];for(let Zn=0;Zn<Wt;Zn++)ar===1&&An.push(wr[un]),Fn.push(" ");ar===1&&(On+=`| ${An.join(" | ")} |
|
|
|
`),On+=`| ${Fn.join(Wt===1?"":" | ")} |
|
|
|
`}return Cn.replaceSelection(On+`
|
|
|
`),Cn.focus();default:throw new Error}},[Cn,Ki]),Ze=(0,ae.useMemo)(()=>{switch(Ki){case bt:return ae.createElement(xn,{callback:Re,onCancel:je});case wn:return ae.createElement(Xt.Z,{callback:Re,onCancel:je});case _n:return ae.createElement(ft.Z,{callback:Re,onCancel:je});case ct:return ae.createElement(he,{editImgId:li.current,callback:Re,onCancel:je});case Bn:return ae.createElement(Ht,{callback:Re,onCancel:je});case"maths-latex":return ae.createElement(Mt,{showSaveButton:!0,callback:Re});case"inline-latex":return ae.createElement(Ot.Z,{showSaveButton:!0,callback:Re});default:return null}},[Ki]);function je(){di("")}(0,ae.useEffect)(()=>{if(jt.current){let Gn=function(Cr){Kr=!0,kr=Cr.pageY},jn=function(){Kr=!1},$n=function(Cr){if(Kr){let Ir=Cr.pageY-kr;Ir<0&&(Ir=0),Ir>300&&(Ir=300);let Ue=Zt+Ir+"px";Mi(Ue)}},dr=jt.current,Kr=!1,kr=0;return dr.addEventListener("mousedown",Gn),document.addEventListener("mousemove",$n),document.addEventListener("mouseup",jn),()=>{dr.removeEventListener("mousedown",Gn),document.removeEventListener("mousemove",$n),document.removeEventListener("mouseup",jn)}}},[Cn,jt]),(0,ae.useEffect)(()=>{Mi(Zt)},[Zt]);const et=vn(wt),Et=vn(_i),It={width:et,height:Et},Ut=(0,ae.useMemo)(()=>{if(na){let Gn=new Date(na),jn=Gn.getHours(),$n=Gn.getMinutes(),dr=Gn.getSeconds();return jn=jn<10?"0"+jn:jn,$n=$n<10?"0"+$n:$n,dr=dr<10?"0"+dr:dr,`${jn}:${$n}:${dr}`}return 0},[na]),Ln=Gn=>{const jn=[];if(lr){let $n=-1;Gn=Gn.replace(/(@▁▁@|@▁@)/g,function(dr,Kr,kr){jn.push({multiLine:dr!==tr})})}return jn};function Nn(){window.sessionStorage.removeItem(hn),Si(!1),aa(0)}function Mr(){Si(!1),aa(0),Cn.setValue(window.sessionStorage.getItem(hn))}(0,ae.useEffect)(()=>{gr[Ki]&&Ki!==Dt&&Ki!==ct&&setTimeout(()=>{const Gn=document.getElementsByClassName("markdown-popup-form")[0],jn=window.innerWidth/2-Gn.offsetWidth/2,$n=window.innerHeight/2-Gn.offsetHeight/2;Pn(jn),Gr($n)},0)},[Ki]);const Hr=Gn=>{Gn.preventDefault();const jn=Gn.clientX-pn,$n=Gn.clientY-cr;document.body.onmousemove=dr=>{let Kr=dr.clientX-jn,kr=dr.clientY-$n;const Cr=document.getElementsByClassName("markdown-popup-form")[0],Ir=window.innerWidth-Cr.offsetWidth,Ue=window.innerHeight-Cr.offsetHeight;Kr=Math.max(0,Math.min(Kr,Ir)),kr=Math.max(0,Math.min(kr,Ue)),xr(dr.clientX,dr.clientY,jn,$n)&&(Pn(Kr),Gr(kr))},document.body.onmouseup=function(){document.body.onmousemove=null}},xr=(Gn,jn,$n,dr)=>{const Kr=document.body.clientHeight,kr=document.body.clientWidth;return Gn<20&&$n>Gn||Gn>kr-20&&$n<Gn||jn<20&&dr>jn||jn>Kr-20&&dr<jn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:oi},ae.createElement("div",{className:`markdown-editor-container ${fr} ${Hi?"on-preview":""} ${an?"mini":""} ${Di?"full-screen":""}`,style:It},ae.createElement(Ve,{insertTemp:tn,watch:Hi,fullScreen:Di,showNullButton:_r,showNullProgramButton:lr,onActionCallback:Qi,hidetoolBar:mr,extraUse:Lr}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Xr,placeholder:yr})),Hi?ae.createElement("div",{ref:ur,className:"preview-container"},Kt==="stex"&&ae.createElement(Ne,{value:vr}),Kt!=="stex"&&ae.createElement(ot.Z,{edit:!0,disabledFill:on,showProgramFill:lr,value:vr,openEditor:Gn=>{var jn;li.current=Gn,(jn=ci.current)==null||jn.setHeight("100vh"),setTimeout(()=>{di("add-flowchart")},150)}})):null))),gn?ae.createElement("a",{ref:jt,className:"editor-resize"}):null,Ki===Dt&&ae.createElement(Tt,{callback:Re,onCancel:je}),Ki===ct&&ae.createElement(he,{ref:ci,editImgId:li.current,callback:Re,onCancel:je}),ae.createElement(At.Z,null,gr[Ki]&&Ki!==Dt&&Ki!==ct?ae.createElement(yt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:pn,top:cr},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:Hr},gr[Ki]),open:!0,onCancel:je,footer:null,destroyOnClose:!0,width:Ki===ct?"1200px":null,height:Ki===ct?"80vh":null,className:"markdown-popup-form"},Ze):null))}},70859:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Ye},I:function(){return At}});var ae=se(22150),Le=se(2453),_e=se(69677),rt=se(93421),ge=se(31795),ke=se(78045),Ee=se(71577),xe=se(15476),me=se(67294),De=se(52262),ot=se(67294),Ne=Object.defineProperty,mt=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,gt=(xt,Lt,nt)=>Lt in xt?Ne(xt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:nt}):xt[Lt]=nt,nn=(xt,Lt)=>{for(var nt in Lt||(Lt={}))Je.call(Lt,nt)&>(xt,nt,Lt[nt]);if(pt)for(var nt of pt(Lt))Be.call(Lt,nt)&>(xt,nt,Lt[nt]);return xt},at=(xt,Lt)=>mt(xt,dt(Lt));const{useForm:vt}=ae.default,Ce={width:280,marginRight:10},Ae={labelCol:{span:5},wrapperCol:{span:19}};var Ye=({callback:xt,onCancel:Lt})=>{const[nt]=vt();let qt=(0,me.useRef)();function zt(Wn){qt.current.width=nt.getFieldValue("width"),qt.current.align=nt.getFieldValue("align"),xt(Wn,qt.current)}function bn(Wn,rr){if(Wn.status===-1){Le.ZP.error(Wn.message);return}nt.setFieldsValue({src:`/api/attachments/${Wn.id}`,type:rr.type})}function dn(Wn){let rr=Wn.target.files[0];qt.current=rr,At(rr,bn)}return ot.createElement(ae.default,at(nn({form:nt},Ae),{className:"upload-image-panel",onFinish:zt,style:{width:470,overflow:"hidden"}}),ot.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ot.createElement("div",{className:"flex-container"},ot.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ot.createElement(_e.default,{style:Ce})),ot.createElement(Ve,{onFileChange:dn}))),ot.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ot.createElement(_e.default,{style:{width:264}})),ot.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ot.createElement(rt.Z,null,ot.createElement(ae.default.Item,{name:"width",style:{margin:0}},ot.createElement(ge.Z,{style:{width:264}})),ot.createElement("span",{className:"ml8"},"%"))),ot.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ot.createElement(ke.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"}]})),ot.createElement("aside",null,ot.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ot.createElement(Ee.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ot.createElement(Ee.ZP,{type:"default",onClick:Lt},"\u53D6\u6D88"))))};function Ve({onFileChange:xt}){return ot.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ot.createElement("input",{type:"file",onChange:xt}))}function At(xt,Lt){if(!xt)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,De.bg)())throw Le.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let nt=new FormData;nt.append("editormd-image-file",xt),nt.append("file_param_name","editormd-image-file"),nt.append("byxhr","true");var qt=new window.XMLHttpRequest;qt.withCredentials=!0,qt.addEventListener("load",function(zt){Lt(JSON.parse(zt.target.responseText),xt)},!1),qt.addEventListener("error",function(zt){console.error(zt)},!1),qt.open("POST",`${xe.KI}/api/attachments.json`),qt.send(nt)}},76621:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return _e}});var ae=se(67294),Le=se(73935);class _e extends ae.Component{constructor(ge){super(ge);const ke=window.document;this.node=ke.createElement("div"),ke.body.appendChild(this.node)}render(){const{children:ge}=this.props;return(0,Le.createPortal)(ge,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},5476:function(yn,fn,se){"use strict";se.d(fn,{i:function(){return Ae},Z:function(){return Ve}});var ae={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"},Le=se(57953),_e=se(83062),rt=se(38703),ge=se(94184),ke=se.n(ge),Ee=se(28706),xe=se(26194),me=se(52262),De=se(79005),ot=se(20345),Ne=se(77882),mt=se(31081),dt=se(75309),pt=se(71979),Je=se(47558),Be=se(60345),gt=se(66832),nn=se(96593),at=se(19664),vt=se(91833),Ce=se(67294);const Ae=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:De,swimg:ot},{name:"101\u8BA1\u5212",ptimg:Ne,swimg:mt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:dt,swimg:pt},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Je,swimg:Be},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:gt,swimg:nn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:at,swimg:vt}];var Ve=({className:At,dataSource:xt=[],col:Lt=4,right:nt,bottom:qt=23,precision:zt=0,wrapWidth:bn=1200,trackEventItems:dn,loading:Wn,onRemove:rr=()=>{},isCurrent:ln=!0,showAlias:$e=!1,showProgress:Se=!1})=>{const Bt=Math.floor((bn-(Lt-1)*nt)/Lt),xn=[{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(Xt=>(window.ENV==="build"&&(Xt.ptimg=`/react/build${Xt.ptimg}`,Xt.swimg=`/react/build${Xt.swimg}`),Xt));return Ce.createElement(Le.Z,{spinning:Wn},Ce.createElement("div",{className:ke()(ae.list,At)},!!(xt!=null&&xt.length)&&(xt==null?void 0:xt.map((Xt,ft)=>{var yt,Gt,qn,Dn,Tt,mn;const{name:Vn,id:kn,identifier:Pe,featured:fe,school_name:ce,image_url:he,excellent:ue,is_plan:le}=Xt;return Ce.createElement("div",{key:kn,className:ln&&Se?ae.wrapisCurrent:ae.wrap,style:{width:Bt,marginRight:(1+ft)%Lt===0?0:nt+zt,marginBottom:qt}},Ce.createElement("a",{className:ae.li,onClick:Me=>{Me.preventDefault(),Me.stopPropagation(),dn&&(0,Ee.L9)([dn]),(0,Ee.xg)(`/paths/${Pe}`)}},Ce.createElement("div",{className:ae.img},Ce.createElement("img",{className:ae.cover,src:`${he}`}),ln&&(0,me.bg)()&&(Xt==null?void 0:Xt.studying)&&Ce.createElement("div",{className:`${ae.movebq} user-path-items`,onClick:Me=>{Me.stopPropagation(),rr(Xt)}},Ce.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Ce.createElement("span",{className:"c-red"},"\u79FB\u9664")),(yt=Xt==null?void 0:Xt.subject_tags)==null?void 0:yt.map((Me,Ge)=>{var St,Ht;if(Ge===0){const Vt=(St=xn.find(sn=>sn.name==Me))==null?void 0:St.swimg;return Ce.createElement("img",{className:ae.sign,src:Vt,style:{left:"-4px"}})}const Yt=(Ht=xn.find(Vt=>Vt.name==Me))==null?void 0:Ht.ptimg;return Ce.createElement("img",{className:ae.sign,src:Yt,style:{left:`${48+52*(Ge-1)+2*Ge}px`}})}),Ce.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Xt==null?void 0:Xt.excellent)&&Ce.createElement("div",{className:ae.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Ce.createElement("div",{className:ae.name},Ce.createElement(_e.Z,{title:$e&&(Xt!=null&&Xt.excellent_alias_name)?Ce.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Vn}`,Ce.createElement("br",null),Ce.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Xt==null?void 0:Xt.excellent_alias_name}`)):Vn},Ce.createElement("span",{className:ae.e},$e&&(Xt==null?void 0:Xt.excellent_alias_name)||Vn))),ln&&Se&&((Gt=Xt==null?void 0:Xt.progress)==null?void 0:Gt.all_score)!=0&&Ce.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ce.createElement(rt.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((qn=Xt==null?void 0:Xt.progress)==null?void 0:qn.my_score)/((Dn=Xt==null?void 0:Xt.progress)==null?void 0:Dn.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Tt=Xt==null?void 0:Xt.progress)==null?void 0:Tt.my_score,"/",(mn=Xt==null?void 0:Xt.progress)==null?void 0:mn.all_score),(!ln||!Se)&&Ce.createElement("div",{className:ae.tags},Ce.createElement("div",null,Ce.createElement(_e.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ce.createElement("span",null,Ce.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ce.createElement("span",null,Xt.stages_count))),Ce.createElement(_e.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ce.createElement("span",null,Ce.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ce.createElement("span",null,Xt.members_count)))))))})),!xt.length&&Ce.createElement(xe.Z,null)))}},78311:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return ke}});var ae=se(67294),Le={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"},_e=se(94184),rt=se.n(_e),ke=({dataSource:Ee=[],value:xe,onChange:me,className:De,style:ot={}})=>ae.createElement("div",{style:ot,className:rt()(Le.tabs,De)},Ee.map(Ne=>ae.createElement("span",{onClick:()=>me(Ne.id),className:xe===Ne.id?Le.active:"",key:Ne.id},Ne.name)))},64743:function(yn,fn,se){"use strict";se.d(fn,{jL:function(){return ge},w9:function(){return In},vv:function(){return an},dN:function(){return Un},QD:function(){return Pt},cQ:function(){return le.Z},vg:function(){return tr},Oz:function(){return Sr},op:function(){return _i},O5:function(){return It},_b:function(){return oi},t7:function(){return Lt},tT:function(){return zt},Gi:function(){return Rr},YG:function(){return Kt},Ed:function(){return mr},kT:function(){return Xn},qp:function(){return Be},Um:function(){return Ae},K3:function(){return at},vr:function(){return cr},qE:function(){return Si},Je:function(){return Wn},wb:function(){return Dn},rC:function(){return ue},lB:function(){return Vn},cq:function(){return on},kO:function(){return qr},tp:function(){return Ye.Z},Si:function(){return Nn},k8:function(){return rn},Du:function(){return Kr}});var ae=se(67294),Le={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"},_e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTj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XSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",ge=({dataSource:Xe=[],img:Qe,imgWidth:lt=346,title:ut,sunTitle:en,bannerExtraContent:cn})=>ae.createElement("div",{className:Le.banner},ae.createElement("div",{className:Le.content},ae.createElement("aside",null,ae.createElement("p",null,ae.createElement("b",null,ut),ae.createElement("span",null,en)),Xe.length>0&&ae.createElement("div",{className:Le.btns},Xe.map((Wt,un)=>ae.createElement("div",{key:un,onClick:Wt.click},Wt.name,Wt.sign?ae.createElement("img",{src:_e,width:39}):null))),cn),Qe&&ae.createElement("img",{style:{marginTop:33,marginRight:38},src:Qe,width:lt}))),ke={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"},Ee=se(94184),xe=se.n(Ee),me=se(96486),De=Object.defineProperty,ot=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,dt=(Xe,Qe,lt)=>Qe in Xe?De(Xe,Qe,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Xe[Qe]=lt,pt=(Xe,Qe)=>{for(var lt in Qe||(Qe={}))Ne.call(Qe,lt)&&dt(Xe,lt,Qe[lt]);if(ot)for(var lt of ot(Qe))mt.call(Qe,lt)&&dt(Xe,lt,Qe[lt]);return Xe},Be=({dataSource:Xe=[],value:Qe,onChange:lt,onTitleChange:ut,className:en,title:cn,titleWidth:Wt=41,style:un={},fontColor:On="#6A7283",showCount:ar,classNameActive:Fn,styleItem:An={}})=>{const[Zn,or]=(0,ae.useState)(0),[Tr,pr]=(0,ae.useState)(!1),zn=(0,ae.useRef)(null),Pr=(0,ae.useRef)(null);return(0,ae.useEffect)(()=>{var Fr;Xe.length!==0&&(((Fr=zn==null?void 0:zn.current)==null?void 0:Fr.clientHeight)>97?or(1):or(0)),Xe.length===0&&or(0),pr(!1)},[Xe]),ae.createElement("div",{className:xe()(ke.row,en),style:un},ae.createElement("div",{onClick:(0,me.throttle)(()=>ut==null?void 0:ut(),2e3),style:{width:Wt,marginTop:Tr?12:4},className:`${ke.title} ${ut?"current":""}`},cn),ae.createElement("div",{className:Tr?`${ke.tagsWrap} ${ke.tagsBorderWrap}`:ke.tagsWrap},ae.createElement("div",{className:ke.bar,ref:Pr,style:Zn>0?{height:Zn===1?97:"auto",overflow:Zn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ae.createElement("div",{className:ke.tag,ref:zn},Xe==null?void 0:Xe.map(Fr=>ae.createElement("span",{onClick:()=>lt(Fr.id),key:Fr.id,style:pt(pt({color:On},An),(Fr==null?void 0:Fr.style)||{}),className:Qe===Fr.id?xe()(Fn||ke.active,Fr.classNameActive):""},ae.createElement("span",{title:Fr.name,className:ke.name},Fr.name),!!ar&&ae.createElement("span",{className:ke.num},Fr.count))))),!!Zn&&ae.createElement(ae.Fragment,null,Zn===1?ae.createElement("div",{onClick:()=>{var Fr;or(2),((Fr=zn==null?void 0:zn.current)==null?void 0:Fr.clientHeight)>245?pr(!0):pr(!1)},className:ke.action},"\u5C55\u5F00",ae.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ae.createElement("div",{onClick:()=>{Pr.current.scrollTop=0,or(1),pr(!1)},className:ke.action},"\u6536\u8D77",ae.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},gt={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"},at=({dataSource:Xe=[],value:Qe,onChange:lt,onTitleChange:ut,className:en,title:cn,titleWidth:Wt=41,style:un={},fontColor:On="#6A7283",showCount:ar,expand:Fn=!0})=>{const[An,Zn]=(0,ae.useState)(0),[or,Tr]=(0,ae.useState)(!1),pr=(0,ae.useRef)(null),zn=(0,ae.useRef)(null),[Pr,Fr]=(0,ae.useState)(Fn);return ae.createElement("div",{className:xe()(gt.row,en),style:un},ae.createElement("div",{className:"flex item-center justify-between"},ae.createElement("div",{onClick:(0,me.throttle)(()=>ut==null?void 0:ut(),2e3),style:{width:Wt,marginTop:or?12:4},className:`${gt.title} ${ut?"current":""}`},cn),ae.createElement("i",{className:`iconfont ${Pr?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:Pr?8:10},onClick:()=>Fr(!Pr)})),Pr&&ae.createElement("div",{className:or?`${gt.tagsWrap} ${gt.tagsBorderWrap}`:gt.tagsWrap},ae.createElement("div",{className:gt.fenge}),ae.createElement("div",{className:gt.bar,ref:zn},ae.createElement("div",{className:gt.tag,ref:pr},Xe==null?void 0:Xe.map(si=>ae.createElement("span",{onClick:()=>lt(si.id),key:si.id,style:{color:On},className:Qe===si.id?gt.active:""},ae.createElement("span",{title:si.name,className:gt.name},si.name),!!ar&&ae.createElement("span",{className:gt.num},si.count)))))))},vt={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"},Ae=({dataSource:Xe=[],value:Qe,onChange:lt,onTitleChange:ut,className:en,title:cn,titleWidth:Wt=41,style:un={},fontColor:On="#fff",showCount:ar,expand:Fn=!0})=>{const[An,Zn]=(0,ae.useState)(0),[or,Tr]=(0,ae.useState)(!1),pr=(0,ae.useRef)(null),zn=(0,ae.useRef)(null),[Pr,Fr]=(0,ae.useState)(Fn);return ae.createElement("div",{className:xe()(vt.row,en),style:un},ae.createElement("div",{className:"flex item-center justify-between"},ae.createElement("div",{onClick:(0,me.throttle)(()=>ut==null?void 0:ut(),2e3),style:{width:Wt},className:`${vt.title} ${ut?"current":""}`},cn),ae.createElement("i",{className:`iconfont ${Pr?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:Pr?"#00DDC7":"#037F74",fontSize:Pr?10:12},onClick:()=>Fr(!Pr)})),Pr&&ae.createElement("div",{className:or?`${vt.tagsWrap} ${vt.tagsBorderWrap}`:vt.tagsWrap},ae.createElement("div",{className:vt.bar,ref:zn},ae.createElement("div",{className:vt.tag,ref:pr},Xe==null?void 0:Xe.map(si=>ae.createElement("span",{onClick:()=>lt(si.id),key:si.id,style:{color:On},className:Qe===si.id?vt.active:""},ae.createElement("span",{title:si.name,className:vt.name},si.name),!!ar&&ae.createElement("span",{className:vt.num},si.count)))))))},Ye=se(78311),Ve={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"},At=se(69677),Lt=({dataSource:Xe=[],value:Qe="",onChange:lt,onInputChange:ut=()=>{},className:en,style:cn={},placeholder:Wt,allowClear:un=!1})=>{var On;const[ar,Fn]=(0,ae.useState)(""),[An,Zn]=(0,ae.useState)("");(0,ae.useEffect)(()=>{var pr;let zn=Qe;(pr=JSON.stringify(Qe))!=null&&pr.includes("{")&&(Fn(Qe.id),zn=Qe.value||"");try{Zn(decodeURIComponent(zn||""))}catch(Pr){Zn(decodeURIComponent(zn||""))}},[Qe]);const or=()=>{lt(encodeURIComponent(An),ar||null)},Tr=pr=>{pr!==ar&&(Fn(pr),lt(encodeURIComponent(An),pr))};return ae.createElement("div",{className:xe()(Ve.input,en),style:cn},!!Xe.length&&ae.createElement("div",{className:Ve.dropdown},ae.createElement("div",{className:Ve.text},(On=Xe.find(pr=>pr.id===ar))==null?void 0:On.name,ae.createElement("i",{className:"iconfont icon-zhankai4"}),ae.createElement("b",{className:Ve.b1}),ae.createElement("b",{className:Ve.b2})),ae.createElement("div",{className:Ve.menu},Xe.map((pr,zn)=>ae.createElement("div",{key:zn,onClick:()=>Tr(pr.id)},pr.name)))),ae.createElement(At.default,{onPressEnter:or,value:An,onChange:pr=>{Zn(pr.target.value),ut(encodeURIComponent(pr.target.value),ar||null)},bordered:!1,placeholder:Wt}),ae.createElement("i",{onClick:or,className:"iconfont icon-sousuo9 font14 pl10 current"}))},nt={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"},zt=({dataSource:Xe=[],value:Qe="",onChange:lt,onInputChange:ut=()=>{},className:en,style:cn={},placeholder:Wt,allowClear:un=!1})=>{var On;const[ar,Fn]=(0,ae.useState)(""),[An,Zn]=(0,ae.useState)("");(0,ae.useEffect)(()=>{var pr;let zn=Qe;(pr=JSON.stringify(Qe))!=null&&pr.includes("{")&&(Fn(Qe.id),zn=Qe.value||"");try{Zn(decodeURIComponent(zn||""))}catch(Pr){Zn(decodeURIComponent(zn||""))}},[Qe]);const or=()=>{lt(encodeURIComponent(An),ar||null)},Tr=pr=>{pr!==ar&&(Fn(pr),lt(encodeURIComponent(An),pr))};return ae.createElement("div",{className:xe()(nt.input,en),style:cn},!!Xe.length&&ae.createElement("div",{className:nt.dropdown},ae.createElement("div",{className:nt.text},(On=Xe.find(pr=>pr.id===ar))==null?void 0:On.name,ae.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),ae.createElement("div",{className:nt.menu},Xe.map((pr,zn)=>ae.createElement("div",{key:zn,onClick:()=>Tr(pr.id)},pr.name)))),ae.createElement(At.default,{onPressEnter:or,value:An,onChange:pr=>{Zn(pr.target.value),ut(encodeURIComponent(pr.target.value),ar||null)},bordered:!1,placeholder:Wt}),ae.createElement("i",{onClick:or,className:"iconfont icon-sousuo9 font14 pl10 current"}))},bn={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"},Wn=({value:Xe,onChange:Qe,className:lt,total:ut,pageSize:en,style:cn={}})=>{const Wt=Xe<2,un=Xe>=Math.ceil(ut/en);return ut<=en?ae.createElement(ae.Fragment,null):ae.createElement("div",{className:xe()(bn.quickPager,lt),style:cn},ae.createElement("div",{onClick:()=>{Wt||Qe(Xe-1,"prev")},className:Wt?bn.disabled:""},"\u4E0A\u4E00\u9875"),ae.createElement("div",{onClick:()=>{un||Qe(Xe+1,"next")},className:un?bn.disabled:""},"\u4E0B\u4E00\u9875"))},rr={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"},ln=se(57953),$e=se(83062),Se=se(12604),Bt=se(11320),xn=se(28706),Xt=se(96908),ft=se(57177),yt=se(81378),Gt=se(26194),Dn=({className:Xe,dataSource:Qe=[],col:lt=4,right:ut,bottom:en=23,precision:cn=0,wrapWidth:Wt=1200,trackEventItems:un,loading:On})=>{const ar=Math.floor((Wt-(lt-1)*ut)/lt);return ae.createElement(ln.Z,{spinning:On},ae.createElement("div",{className:xe()(rr.list,Xe)},!!Qe.length&&Qe.map((Fn,An)=>{const{name:Zn,id:or,identifier:Tr,power:pr,cover_image_id:zn,pic:Pr}=Fn;return ae.createElement("div",{className:rr.wrap,key:or,style:{width:ar,marginRight:(1+An)%lt===0?0:ut+cn,marginBottom:en}},ae.createElement("a",{target:"_blank",href:`/shixuns/${Tr}/challenges`,className:rr.li,onClick:Fr=>{Fr.preventDefault(),un&&(0,xn.L9)([un]),pr&&(0,xn.xg)(`/shixuns/${Tr}/challenges`)}},ae.createElement("div",{className:rr.img},ae.createElement("img",{className:rr.cover,src:`${Pr}`}),Fn.is_jupyter&&ae.createElement("img",{className:rr.sign,src:Xt}),Fn.is_jupyter_lab&&ae.createElement("img",{className:rr.sign,src:ft}),Fn.is_unity_3d&&ae.createElement("img",{className:rr.sign,src:yt})),ae.createElement("div",{className:rr.name},ae.createElement($e.Z,{title:Zn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ae.createElement("span",{className:rr.e},Zn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ae.createElement("div",{className:rr.tags},ae.createElement($e.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ae.createElement("span",null,Fn.challenges_count))),!!Fn.myshixuns_count&&ae.createElement($e.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ae.createElement("span",null,Fn.myshixuns_count))),ae.createElement($e.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ae.createElement("span",null,ae.createElement("span",null,Fn.level))),ae.createElement("div",{className:rr.rate},ae.createElement(Se.Z,{allowHalf:!0,disabled:!0,defaultValue:Fn.score_info}),ae.createElement("span",null,"\xA0",Fn.score_info?`${Fn.score_info}\u5206`:"5\u5206")))),!pr&&ae.createElement("div",{className:rr.lockWrap},ae.createElement("img",{src:`${Bt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Qe.length&&ae.createElement(Gt.Z,null)))},Tt={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:Xe,dataSource:Qe=[],col:lt=4,right:ut,bottom:en=23,precision:cn=0,wrapWidth:Wt=1200,wrapClassName:un,trackEventItems:On,loading:ar})=>{const Fn=Math.floor((Wt-(lt-1)*ut)/lt);return ae.createElement(ln.Z,{spinning:ar},ae.createElement("div",{className:xe()(Tt.list,Xe)},!!Qe.length&&Qe.map((An,Zn)=>{const{name:or,id:Tr,identifier:pr,power:zn,cover_image_id:Pr,pic:Fr}=An;return ae.createElement("div",{className:xe()(Tt.wrap,un),key:Tr,style:{width:Fn,marginRight:(1+Zn)%lt===0?0:ut+cn,marginBottom:en}},ae.createElement("a",{target:"_blank",href:`/shixuns/${pr}/challenges`,className:Tt.li,onClick:si=>{si.preventDefault(),On&&(0,xn.L9)([On]),zn&&(0,xn.xg)(`/shixuns/${pr}/challenges`)}},ae.createElement("img",{src:se(79633),className:Tt.titleBg}),ae.createElement("div",{className:Tt.name},ae.createElement($e.Z,{title:or||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ae.createElement("span",{className:Tt.e},or||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ae.createElement("div",{style:{padding:"14px",paddingBottom:0}},ae.createElement("div",{className:Tt.img},ae.createElement("img",{className:Tt.cover,src:Pr?`${Bt.Z.API_SERVER}/api/attachments/${Pr}`:`${Bt.Z.IMG_SERVER+Fr}`}),An.is_jupyter&&ae.createElement("div",{className:Tt.bq},"Jupyter"),An.is_jupyter_lab&&ae.createElement("div",{className:Tt.bq},"JupyterLab"),An.is_unity_3d&&ae.createElement("div",{className:Tt.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),ae.createElement("div",{className:"mt20 flex item-center justify-between"},ae.createElement("div",null,ae.createElement("span",{className:Tt.text},"\u5B66\u4E60\u4EBA\u6570"),ae.createElement("span",{className:Tt.value},An.myshixuns_count)),ae.createElement("div",null,ae.createElement("span",{className:Tt.text},"\u56F0\u96BE\u7B49\u7EA7"),ae.createElement("span",{className:Tt.value},An.level))),ae.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},ae.createElement("div",null,ae.createElement("span",{className:Tt.text},"\u5173\u5361\u6570"),ae.createElement("span",{className:Tt.value},An.challenges_count)),ae.createElement("div",{className:Tt.rate},ae.createElement(Se.Z,{allowHalf:!0,disabled:!0,defaultValue:An.score_info}),ae.createElement("span",{className:Tt.value,style:{color:"#FF9C00"}},"\xA0",An.score_info?`${An.score_info}\u5206`:"5\u5206"))))),!zn&&ae.createElement("div",{className:Tt.lockWrap},ae.createElement("img",{src:`${Bt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Qe.length&&ae.createElement(Gt.Z,null)))},kn={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"},Pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c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9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",ue=({className:Xe,dataSource:Qe=[],col:lt=4,right:ut,bottom:en=23,precision:cn=0,wrapWidth:Wt=1200,trackEventItems:un,loading:On,wrapClassName:ar,imgClassName:Fn})=>{const An=Math.floor((Wt-(lt-1)*ut)/lt);return ae.createElement(ln.Z,{spinning:On},ae.createElement("div",{className:xe()(kn.list,Xe)},!!Qe.length&&Qe.map((Zn,or)=>{const{name:Tr,id:pr,identifier:zn,power:Pr,cover_image_id:Fr,pic:si}=Zn;return ae.createElement("div",{className:xe()(kn.wrap,ar),key:pr,style:{width:An,marginRight:(1+or)%lt===0?0:ut+cn,marginBottom:en}},ae.createElement("a",{target:"_blank",href:`/shixuns/${zn}/challenges`,className:kn.li,onClick:pi=>{pi.preventDefault(),un&&(0,xn.L9)([un]),Pr&&(0,xn.xg)(`/shixuns/${zn}/challenges`)}},ae.createElement("div",{className:xe()(kn.img,Fn)},ae.createElement("img",{className:kn.cover,src:Fr?`${Bt.Z.API_SERVER}/api/attachments/${Fr}`:`${Bt.Z.IMG_SERVER+si}`}),Zn.is_jupyter&&ae.createElement("img",{className:kn.sign,src:Pe}),Zn.is_jupyter_lab&&ae.createElement("img",{className:kn.sign,src:fe}),Zn.is_unity_3d&&ae.createElement("img",{className:kn.sign,src:ce})),ae.createElement("div",{className:kn.name},ae.createElement($e.Z,{title:Tr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ae.createElement("span",{className:kn.e},Tr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ae.createElement("div",{className:kn.tags},ae.createElement($e.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ae.createElement("span",null,Zn.challenges_count))),!!Zn.myshixuns_count&&ae.createElement($e.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ae.createElement("span",null,Zn.myshixuns_count))),ae.createElement($e.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ae.createElement("span",null,ae.createElement("span",null,Zn.level))),ae.createElement("div",{className:kn.rate},ae.createElement(Se.Z,{allowHalf:!0,disabled:!0,defaultValue:Zn.score_info}),ae.createElement("span",null,"\xA0",Zn.score_info?`${Zn.score_info}\u5206`:"5\u5206")))),!Pr&&ae.createElement("div",{className:kn.lockWrap},ae.createElement("img",{src:`${Bt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Qe.length&&ae.createElement(Gt.Z,null)))},le=se(5476),Me={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"},Ge=se(79005),St=se(20345),Ht=se(77882),Yt=se(31081),Vt=se(75309),sn=se(71979),it=se(47558),Mt=se(60345),Ot=se(66832),$t=se(96593),bt=se(19664),_n=se(91833),ct=Object.defineProperty,Dt=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,Bn=(Xe,Qe,lt)=>Qe in Xe?ct(Xe,Qe,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Xe[Qe]=lt,Qn=(Xe,Qe)=>{for(var lt in Qe||(Qe={}))En.call(Qe,lt)&&Bn(Xe,lt,Qe[lt]);if(Dt)for(var lt of Dt(Qe))wn.call(Qe,lt)&&Bn(Xe,lt,Qe[lt]);return Xe};const wr=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ge,swimg:St},{name:"101\u8BA1\u5212",ptimg:Ht,swimg:Yt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Vt,swimg:sn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:it,swimg:Mt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Ot,swimg:$t},{name:"\u519B\u961F\u4E00\u6D41",ptimg:bt,swimg:_n}];var Sr=({className:Xe,dataSource:Qe=[],col:lt=4,right:ut,bottom:en=23,precision:cn=0,wrapWidth:Wt=1200,trackEventItems:un,loading:On,wrapClassName:ar,imgClassName:Fn,isArrow:An=!1,imgStyle:Zn={}})=>{const or=Math.floor((Wt-(lt-1)*ut)/lt),[Tr,pr]=(0,ae.useState)(),[zn,Pr]=(0,ae.useState)(),Fr=pi=>pr(pi),si=()=>pr(-1);return ae.createElement(ln.Z,{spinning:On},ae.createElement("div",{className:xe()(Me.list,Xe)},!!(Qe!=null&&Qe.length)&&(Qe==null?void 0:Qe.map((pi,hi)=>{var ki;const{name:Ni,id:mi,identifier:bi,featured:Yr,school_name:ii,image_url:xi,excellent:Ii,is_plan:ha}=pi;return ae.createElement("div",{key:mi,className:xe()(Me.wrap,ar),style:{width:or,marginRight:(1+hi)%lt===0?0:ut+cn,marginBottom:en}},ae.createElement("a",{target:"_blank",href:`/paths/${bi}`,className:Me.li,onClick:da=>{da.preventDefault(),un&&(0,xn.L9)([un]),(0,xn.xg)(`/paths/${bi}`)}},ae.createElement("img",{src:se(39057),className:Me.titleBg}),ae.createElement("div",{className:Me.name},ae.createElement($e.Z,{title:Ni},ae.createElement("span",{className:Me.e,style:{color:An&&Tr===hi?"#145DFF":"#000000"},onMouseEnter:()=>{Fr(hi)},onMouseLeave:si},Ni))),ae.createElement("div",{style:{padding:"14px",paddingBottom:0}},ae.createElement("div",{className:xe()(Me.img,Fn)},ae.createElement("img",{className:Me.cover,style:Qn({},Zn),src:`${Bt.Z.IMG_SERVER+xi}`}),(ki=pi==null?void 0:pi.subject_tags)==null?void 0:ki.map((da,ji)=>{var Xi,Ci;if(ji===0){const la=(Xi=wr.find(Ei=>Ei.name==da))==null?void 0:Xi.swimg;return ae.createElement("img",{className:Me.sign,src:la,style:{left:"-4px"}})}const gi=(Ci=wr.find(la=>la.name==da))==null?void 0:Ci.ptimg;return ae.createElement("img",{className:Me.sign,src:gi,style:{left:`${48+52*(ji-1)+2*ji}px`}})}),ae.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(pi==null?void 0:pi.excellent)&&ae.createElement("div",{className:Me.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ae.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},ae.createElement("div",null,ae.createElement("span",{className:Me.text},"\u7AE0\u8282\u6570"),ae.createElement("span",{className:Me.value},pi.stages_count)),ae.createElement("div",null,ae.createElement("span",{className:Me.text},"\u5B66\u4E60\u4EBA\u6570"),ae.createElement("span",{className:Me.value},pi.members_count))))))})),!Qe.length&&ae.createElement(Gt.Z,null)))},Yn={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"},ir=se(52262),Dr=se(67294);const ti=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ge,swimg:St},{name:"101\u8BA1\u5212",ptimg:Ht,swimg:Yt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Vt,swimg:sn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:it,swimg:Mt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Ot,swimg:$t},{name:"\u519B\u961F\u4E00\u6D41",ptimg:bt,swimg:_n}];var tr=({className:Xe,dataSource:Qe=[],col:lt=4,right:ut,bottom:en=23,precision:cn=0,wrapWidth:Wt=1200,trackEventItems:un,loading:On,onRemove:ar=()=>{},isCurrent:Fn=!0,showAlias:An=!1,wrapClassName:Zn,imgClassName:or})=>{const Tr=Math.floor((Wt-(lt-1)*ut)/lt),pr=[{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(zn=>(window.ENV==="build"&&(zn.ptimg=`/react/build${zn.ptimg}`,zn.swimg=`/react/build${zn.swimg}`),zn));return Dr.createElement(ln.Z,{spinning:On},Dr.createElement("div",{className:xe()(Yn.list,Xe)},!!(Qe!=null&&Qe.length)&&(Qe==null?void 0:Qe.map((zn,Pr)=>{var Fr;const{name:si,id:pi,identifier:hi,featured:ki,school_name:Ni,image_url:mi,excellent:bi,is_plan:Yr}=zn;return Dr.createElement("div",{key:pi,className:xe()(Yn.wrap,Zn),style:{width:Tr,marginRight:(1+Pr)%lt===0?0:ut+cn,marginBottom:en}},Dr.createElement("a",{className:Yn.li,onClick:ii=>{ii.preventDefault(),ii.stopPropagation(),un&&(0,xn.L9)([un]),(0,xn.xg)(`/paths/${hi}`)}},Dr.createElement("div",{className:xe()(Yn.img,or)},Dr.createElement("img",{className:Yn.cover,src:`${Bt.Z.IMG_SERVER+mi}`}),Fn&&(0,ir.bg)()&&(zn==null?void 0:zn.studying)&&Dr.createElement("div",{className:`${Yn.movebq} user-path-items`,onClick:ii=>{ii.stopPropagation(),ar(zn)}},Dr.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Dr.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Fr=zn==null?void 0:zn.subject_tags)==null?void 0:Fr.map((ii,xi)=>{var Ii,ha;if(xi===0){const ji=(Ii=pr.find(Xi=>Xi.name==ii))==null?void 0:Ii.swimg;return Dr.createElement("img",{className:Yn.sign,src:ji,style:{left:"-4px"}})}const da=(ha=pr.find(ji=>ji.name==ii))==null?void 0:ha.ptimg;return Dr.createElement("img",{className:Yn.sign,src:da,style:{left:`${48+52*(xi-1)+2*xi}px`}})}),Dr.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},(zn==null?void 0:zn.excellent)&&Dr.createElement("div",{className:Yn.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Dr.createElement("div",{className:Yn.name},Dr.createElement($e.Z,{title:An&&(zn!=null&&zn.excellent_alias_name)?Dr.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${si}`,Dr.createElement("br",null),Dr.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${zn==null?void 0:zn.excellent_alias_name}`)):si},Dr.createElement("span",{className:Yn.e},An&&(zn==null?void 0:zn.excellent_alias_name)||si))),Dr.createElement("div",{className:Yn.tags},Dr.createElement("div",null,Dr.createElement($e.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Dr.createElement("span",null,Dr.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Dr.createElement("span",null,zn.stages_count))),Dr.createElement($e.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Dr.createElement("span",null,Dr.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Dr.createElement("span",null,zn.members_count)))))))})),!Qe.length&&Dr.createElement(Gt.Z,null)))},Jr={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"},kt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/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+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",vn=se(67294),In=({className:Xe,dataSource:Qe=[],col:lt=4,right:ut,bottom:en=23,precision:cn=0,wrapWidth:Wt=1200,trackEventItems:un,loading:On})=>{const ar=Math.floor((Wt-(lt-1)*ut)/lt);return vn.createElement(ln.Z,{spinning:On},vn.createElement("div",{className:xe()(Jr.list,Xe)},!!Qe.length&&Qe.map((Fn,An)=>{const{subject_identifier:Zn,id:or,identifier:Tr,power:pr}=Fn,zn=Fn.is_public!=0&&Fn.is_public;return vn.createElement("div",{className:Jr.wrap,key:or,style:{width:ar,marginRight:(1+An)%lt===0?0:ut+cn,marginBottom:en}},vn.createElement("a",{className:Jr.li,onClick:Pr=>{Pr.preventDefault(),un&&(0,xn.L9)([un]),(0,xn.xg)(Fn.first_category_url)}},vn.createElement("div",{className:Jr.top},vn.createElement($e.Z,{title:Fn.name},vn.createElement("div",{className:Jr.name},Fn.name)),vn.createElement("img",{className:Jr.img,src:Bt.Z.IMG_SERVER+"/images/"+Fn.avatar_url}),vn.createElement("div",{className:Jr.text,title:Fn.creator},Fn.creator),Zn&&vn.createElement("div",{className:Jr.btns},vn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),vn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),zn&&vn.createElement("div",{className:Jr.sign},"\u516C\u5F00")),vn.createElement("div",{className:Jr.bottom},Fn.visits>0&&vn.createElement($e.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},vn.createElement("span",null,vn.createElement("i",{className:"iconfont icon-liulanyan"}),vn.createElement("span",null,Fn.visits))),Fn.course_members_count>0&&vn.createElement($e.Z,{title:"\u6210\u5458",placement:"bottom"},vn.createElement("span",null,vn.createElement("i",{className:"iconfont icon-chengyuan"}),Fn.course_members_count)),Fn.tasks_count>0&&vn.createElement($e.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},vn.createElement("span",null,vn.createElement("i",{className:"iconfont icon-zuoye"}),Fn.tasks_count)),Fn.is_end?vn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):vn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Fn.is_accessible&&vn.createElement("div",{className:Jr.lockWrap},vn.createElement("img",{src:`${Bt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),vn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Qe.length&&vn.createElement(Gt.Z,null)))},nr={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"},gr="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+lIjOLOcYlm2BBcx8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k/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Un=({className:Xe,dataSource:Qe=[],col:lt=4,right:ut,bottom:en=23,precision:cn=0,wrapWidth:Wt=1200,wrapClassName:un,trackEventItems:On,loading:ar})=>{const Fn=Math.floor((Wt-(lt-1)*ut)/lt);return ae.createElement(ln.Z,{spinning:ar},ae.createElement("div",{className:xe()(nr.list,Xe)},!!Qe.length&&Qe.map((An,Zn)=>{const{subject_identifier:or,id:Tr,identifier:pr,power:zn}=An,Pr=An.is_public!=0&&An.is_public;return ae.createElement("div",{className:xe()(`${nr.wrap} ${An.is_accessible?"":nr.warpStyle}`,un),key:Tr,style:{width:Fn,marginRight:(1+Zn)%lt===0?0:ut+cn,marginBottom:en}},ae.createElement("a",{className:nr.li,onClick:Fr=>{Fr.preventDefault(),On&&(0,xn.L9)([On]),(0,xn.xg)(An.first_category_url)}},ae.createElement("div",{className:nr.creator},ae.createElement("img",{className:nr.img,src:Bt.Z.IMG_SERVER+"/images/"+An.avatar_url}),ae.createElement("div",{className:nr.text,title:An.creator},An.creator)),ae.createElement("div",{className:nr.top},ae.createElement($e.Z,{title:An.name},ae.createElement("div",{className:nr.name},An.name)),Pr&&ae.createElement("div",{className:nr.sign},"\u516C\u5F00")),ae.createElement("div",{className:nr.middle},ae.createElement("div",{className:nr.row,style:{marginBottom:6}},ae.createElement("div",null,ae.createElement("span",{className:nr.text},"\u8BBF\u95EE\u91CF"),ae.createElement("span",{className:nr.value},(An==null?void 0:An.visits)||0)),ae.createElement("div",null,ae.createElement("span",{className:nr.text},"\u6210\u5458"),ae.createElement("span",{className:nr.value},(An==null?void 0:An.course_members_count)||0))),ae.createElement("div",{className:nr.row},ae.createElement("div",null,ae.createElement("span",{className:nr.text,style:{width:42}},"\u4F5C",ae.createElement("span",{style:{marginLeft:14}},"\u4E1A")),ae.createElement("span",{className:nr.value},(An==null?void 0:An.tasks_count)||0)),ae.createElement("div",null,ae.createElement("span",{className:nr.text},"\u72B6\u6001"),An.is_end?ae.createElement("span",{className:nr.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):ae.createElement("span",{className:nr.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),or&&ae.createElement("div",{className:nr.btns},ae.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ae.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!An.is_accessible&&ae.createElement("div",{className:nr.lockWrap},ae.createElement("img",{src:`${Bt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Qe.length&&ae.createElement(Gt.Z,null)))},qe={flex_box_center:"flex_box_center___eJQtn",flex_space_between:"flex_space_between___lzV1x",flex_box_vertical_center:"flex_box_vertical_center___IYfoZ",flex_box_center_end:"flex_box_center_end___lcJOu",flex_box_column:"flex_box_column____ShCG",list:"list___YXSRr",wrap:"wrap___ZGdF6",lockWrap:"lockWrap___VKZgR",creator:"creator___tLnuI",img:"img___P8alm",text:"text___ijpmj",top:"top___md6mc",sign:"sign___ydolt",name:"name___OEush",middle:"middle___WFQ2R",row:"row___MFUrm",value:"value___rEYMy",btns:"btns___Y5S2B",bottom:"bottom___RsfJC",warpStyle:"warpStyle___R8xtx"},wt="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/jDC2Wvb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NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",an=({className:Xe,dataSource:Qe=[],col:lt=4,right:ut,bottom:en=23,precision:cn=0,wrapWidth:Wt=1200,wrapClassName:un,trackEventItems:On,loading:ar})=>{const Fn=Math.floor((Wt-(lt-1)*ut)/lt);return ae.createElement(ln.Z,{spinning:ar},ae.createElement("div",{className:xe()(qe.list,Xe)},!!Qe.length&&Qe.map((An,Zn)=>{const{subject_identifier:or,id:Tr,identifier:pr,power:zn}=An,Pr=An.is_public!=0&&An.is_public;return ae.createElement("div",{className:xe()(`${qe.wrap} ${An.is_accessible?"":qe.warpStyle}`,un),key:Tr,style:{width:Fn,marginRight:(1+Zn)%lt===0?0:ut+cn,marginBottom:en}},ae.createElement("a",{className:qe.li,onClick:Fr=>{Fr.preventDefault(),On&&(0,xn.L9)([On]),(0,xn.xg)(An.first_category_url)}},ae.createElement("div",{className:qe.creator},ae.createElement("img",{className:qe.img,src:Bt.Z.IMG_SERVER+"/images/"+An.avatar_url}),ae.createElement("div",{className:qe.text,title:An.creator},An.creator)),ae.createElement("div",{className:qe.top},ae.createElement($e.Z,{title:An.name},ae.createElement("div",{className:qe.name},An.name)),Pr&&ae.createElement("div",{className:qe.sign})),ae.createElement("div",{className:qe.middle},ae.createElement("div",{className:qe.row,style:{marginBottom:6}},ae.createElement("div",null,ae.createElement("span",{className:qe.text},"\u8BBF\u95EE\u91CF"),ae.createElement("span",{className:qe.value},(An==null?void 0:An.visits)||0)),ae.createElement("div",null,ae.createElement("span",{className:qe.text},"\u6210\u5458"),ae.createElement("span",{className:qe.value},(An==null?void 0:An.course_members_count)||0))),ae.createElement("div",{className:qe.row},ae.createElement("div",null,ae.createElement("span",{className:qe.text,style:{width:42}},"\u4F5C",ae.createElement("span",{style:{marginLeft:14}},"\u4E1A")),ae.createElement("span",{className:qe.value},(An==null?void 0:An.tasks_count)||0)),ae.createElement("div",null,ae.createElement("span",{className:qe.text},"\u72B6\u6001"),An.is_end?ae.createElement("span",{className:qe.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):ae.createElement("span",{className:qe.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),or&&ae.createElement("div",{className:qe.btns},ae.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ae.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!An.is_accessible&&ae.createElement("div",{className:qe.lockWrap},ae.createElement("img",{src:`${Bt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Qe.length&&ae.createElement(Gt.Z,null)))},ze={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"},Ct=se(35973),Kt=({dataSource:Xe=[],value:Qe,onChange:lt,className:ut,style:en={},tabBarExtraContent:cn})=>ae.createElement("div",{className:xe()(ze.tabs,ut),style:en},ae.createElement("div",{className:ze.tabsWrap},Xe.map((Wt,un)=>ae.createElement("aside",{className:ze.tab,onClick:()=>{lt(Wt.id),Wt.link&&Ct.history.push(Wt.link)},key:un},ae.createElement("div",{className:Qe===Wt.id?ze.active:""},Wt.name),(Wt==null?void 0:Wt.resetCount)==null&&(Wt==null?void 0:Wt.total)!==void 0&&ae.createElement("span",null,"\uFF08",Wt==null?void 0:Wt.total,"\uFF09"),(Wt==null?void 0:Wt.resetCount)!==void 0&&(Wt==null?void 0:Wt.total)!==void 0&&ae.createElement($e.Z,{title:(Wt==null?void 0:Wt.tip)!=null?Wt==null?void 0:Wt.tip:""},ae.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ae.createElement("span",{style:{color:"#000"}},Wt==null?void 0:Wt.resetCount),"/",ae.createElement("span",null,Wt==null?void 0:Wt.total),"\uFF09"))))),ae.createElement("div",{className:ze.tabBar},cn)),hn={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"},Xn=({dataSource:Xe=[],value:Qe,onChange:lt,className:ut,style:en={},tabBarExtraContent:cn})=>ae.createElement("div",{className:xe()(hn.tabs,ut),style:en},ae.createElement("div",{className:hn.tabsWrap},Xe.map((Wt,un)=>ae.createElement("aside",{className:hn.tab,onClick:()=>{lt(Wt.id),Wt.link&&Ct.history.push(Wt.link)},key:un},ae.createElement("div",{className:Qe===Wt.id?hn.active:""},Wt.name),(Wt==null?void 0:Wt.resetCount)==null&&(Wt==null?void 0:Wt.total)!==void 0&&ae.createElement("span",null,"\uFF08",Wt==null?void 0:Wt.total,"\uFF09"),(Wt==null?void 0:Wt.resetCount)!==void 0&&(Wt==null?void 0:Wt.total)!==void 0&&ae.createElement($e.Z,{title:(Wt==null?void 0:Wt.tip)!=null?Wt==null?void 0:Wt.tip:""},ae.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ae.createElement("span",{style:{color:"#000"}},Wt==null?void 0:Wt.resetCount),"/",ae.createElement("span",null,Wt==null?void 0:Wt.total),"\uFF09"))))),ae.createElement("div",{className:hn.tabBar},cn)),_r={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"},mr=({dataSource:Xe=[],value:Qe,onChange:lt,className:ut,style:en={},tabBarExtraContent:cn})=>ae.createElement("div",{className:xe()(_r.tabs,ut),style:en},ae.createElement("div",{className:_r.tabsWrap},Xe.map((Wt,un)=>ae.createElement("aside",{className:`${_r.tab} ${Qe===Wt.id?_r.active:""}`,onClick:()=>{lt(Wt.id),Wt.link&&Ct.history.push(Wt.link)},key:un},ae.createElement("div",null,Wt.name),(Wt==null?void 0:Wt.resetCount)==null&&(Wt==null?void 0:Wt.total)!==void 0&&ae.createElement("span",null,"\uFF08",Wt==null?void 0:Wt.total,"\uFF09"),(Wt==null?void 0:Wt.resetCount)!==void 0&&(Wt==null?void 0:Wt.total)!==void 0&&ae.createElement($e.Z,{title:(Wt==null?void 0:Wt.tip)!=null?Wt==null?void 0:Wt.tip:""},ae.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ae.createElement("span",{style:{color:"#000"}},Wt==null?void 0:Wt.resetCount),"/",ae.createElement("span",null,Wt==null?void 0:Wt.total),"\uFF09"))))),ae.createElement("div",{className:_r.tabBar},cn)),Rr=({className:Xe,style:Qe={},children:lt})=>ae.createElement("div",{className:xe()(Xe),style:Qe},lt),Zr={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"},Kn=se(85418),fr=se(68508);const Mn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var on=({sortValue:Xe,dropValue:Qe,className:lt,onSort:ut,onDrop:en,dataSource:cn=Mn})=>{var Wt;return ae.createElement("div",{className:xe()(Zr.orderWrap,lt)},ae.createElement(Kn.Z,{dropdownRender:()=>ae.createElement(fr.default,null,cn.map((un,On)=>ae.createElement(fr.default.Item,{key:On,onClick:()=>en(un.id)},un.name)))},ae.createElement("span",{className:Zr.orderTextWrap},(Wt=cn.find(un=>Qe===un.id))==null?void 0:Wt.name)),ae.createElement("span",{className:Zr.orderIconWrap},ae.createElement("span",{className:Zr.orderAsc},ae.createElement("i",{className:Xe==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Zr.cursorPointer} ${Zr.active}`:`iconfont icon-sanjiaoxing-up font12 ${Zr.cursorPointer}`,onClick:()=>ut(Xe==="asc"?"desc":"asc")})),ae.createElement("span",{className:Zr.orderDesc},ae.createElement("i",{className:Xe==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Zr.cursorPointer} ${Zr.active}`:`iconfont icon-sanjiaoxing-down font12 ${Zr.cursorPointer}`,onClick:()=>ut(Xe==="asc"?"desc":"asc")}))))},yr={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 Wr=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var qr=({sortValue:Xe,dropValue:Qe,className:lt,onSort:ut,onDrop:en,dataSource:cn=Wr})=>{var Wt;return ae.createElement("div",{className:xe()(yr.orderWrap,lt)},ae.createElement(Kn.Z,{dropdownRender:()=>ae.createElement(fr.default,null,cn.map((un,On)=>ae.createElement(fr.default.Item,{key:On,onClick:()=>en(un.id)},un.name)))},ae.createElement("span",{className:yr.orderTextWrap},(Wt=cn.find(un=>Qe===un.id))==null?void 0:Wt.name)),ae.createElement("span",{className:yr.orderIconWrap},ae.createElement("span",{className:yr.orderAsc},ae.createElement("i",{className:Xe==="asc"?`iconfont icon-sanjiaoxing-up font12 ${yr.cursorPointer} ${yr.active}`:`iconfont icon-sanjiaoxing-up font12 ${yr.cursorPointer}`,onClick:()=>ut(Xe==="asc"?"desc":"asc")})),ae.createElement("span",{className:yr.orderDesc},ae.createElement("i",{className:Xe==="desc"?`iconfont icon-sanjiaoxing-down font12 ${yr.cursorPointer} ${yr.active}`:`iconfont icon-sanjiaoxing-down font12 ${yr.cursorPointer}`,onClick:()=>ut(Xe==="asc"?"desc":"asc")}))))},Cn={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"},Er=se(71577),vr=se(52810),ta=Object.defineProperty,Hi=Object.getOwnPropertySymbols,Pi=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,qi=(Xe,Qe,lt)=>Qe in Xe?ta(Xe,Qe,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Xe[Qe]=lt,Ki=(Xe,Qe)=>{for(var lt in Qe||(Qe={}))Pi.call(Qe,lt)&&qi(Xe,lt,Qe[lt]);if(Hi)for(var lt of Hi(Qe))Di.call(Qe,lt)&&qi(Xe,lt,Qe[lt]);return Xe},di=(Xe,Qe)=>{var lt={};for(var ut in Xe)Pi.call(Xe,ut)&&Qe.indexOf(ut)<0&&(lt[ut]=Xe[ut]);if(Xe!=null&&Hi)for(var ut of Hi(Xe))Qe.indexOf(ut)<0&&Di.call(Xe,ut)&&(lt[ut]=Xe[ut]);return lt},na=(Xe,Qe,lt)=>new Promise((ut,en)=>{var cn=On=>{try{un(lt.next(On))}catch(ar){en(ar)}},Wt=On=>{try{un(lt.throw(On))}catch(ar){en(ar)}},un=On=>On.done?ut(On.value):Promise.resolve(On.value).then(cn,Wt);un((lt=lt.apply(Xe,Qe)).next())}),_i=Xe=>{var Qe=Xe,{className:lt,style:ut,children:en,loading:cn=!1,openLoading:Wt,onClick:un=()=>{},size:On="middle",shape:ar="round",theme:Fn}=Qe,An=di(Qe,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[Zn,or]=(0,ae.useState)(!1),Tr=(0,ae.useMemo)(()=>{switch(Fn){case vr.Fy.THEMEONE:return Cn.ThemeOne;case vr.Fy.DEFAULT:default:return Cn.btn}},[Fn]);return ae.createElement(Er.ZP,Ki({onClick:(0,me.throttle)(pr=>na(void 0,null,function*(){Wt&&or(!0);try{yield un(pr)}catch(zn){console.log("error",zn)}Wt&&or(!1)}),2e3,{leading:!0,trailing:!1}),className:xe()(Tr,Cn[`${On}-${ar}`],lt),style:ut,size:On,shape:ar,loading:Zn||cn},An),en)},Mi={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"},Si=({className:Xe,style:Qe,children:lt=null,onClick:ut,title:en})=>ae.createElement("div",{className:xe()(Mi.head,Xe),style:Qe},ae.createElement("span",{className:"primary-hover",onClick:ut},ae.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ae.createElement("b",{title:en},en),ae.createElement("div",{className:Mi.node},lt)),$r={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"},Pt=({confirmShow:Xe=!0,confirmTitle:Qe,confirmClick:lt,cancelShow:ut=!0,cancelTitle:en,cancelClick:cn,className:Wt,style:un,confirmLoading:On=!1})=>ae.createElement("div",{className:xe()($r.btns,Wt),style:un},Xe&&ae.createElement(Er.ZP,{loading:On,onClick:lt,type:"primary",className:$r.confirm},Qe),ut&&ae.createElement(Er.ZP,{onClick:cn,className:$r.cancel},en)),pn={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"},cr=({className:Xe,style:Qe={},LeftContent:lt,children:ut,RightContent:en})=>ae.createElement("div",{className:xe()(pn.fixedBottom,Xe),style:Qe},ae.createElement("div",{className:pn.wrap},ae.createElement("div",{className:pn.left},lt),ae.createElement("div",{className:pn.center},ut),ae.createElement("div",{className:pn.right},en))),Gr={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"},oi=({className:Xe,style:Qe={},dataSource:lt=[]})=>ae.createElement("div",{className:xe()(Gr.crumbs,Xe),style:Qe},lt.map((ut,en)=>en<lt.length-1?ae.createElement(ae.Fragment,{key:en},ut.path||ut.onClick?ae.createElement("span",{className:Gr.hover,onClick:ut!=null&&ut.onClick?ut.onClick:()=>Ct.history.push(ut.path)},ut.name):ae.createElement("span",null,ut.name),ae.createElement("span",null,"\xA0",">","\xA0")):ae.createElement("span",{key:en,style:{color:"#5F6368"}},ut.name))),jt=se(55054),ur=Object.defineProperty,li=Object.defineProperties,ci=Object.getOwnPropertyDescriptors,Oi=Object.getOwnPropertySymbols,ra=Object.prototype.hasOwnProperty,hr=Object.prototype.propertyIsEnumerable,Qi=(Xe,Qe,lt)=>Qe in Xe?ur(Xe,Qe,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Xe[Qe]=lt,Re=(Xe,Qe)=>{for(var lt in Qe||(Qe={}))ra.call(Qe,lt)&&Qi(Xe,lt,Qe[lt]);if(Oi)for(var lt of Oi(Qe))hr.call(Qe,lt)&&Qi(Xe,lt,Qe[lt]);return Xe},Ze=(Xe,Qe)=>li(Xe,ci(Qe)),je=(Xe,Qe)=>{var lt={};for(var ut in Xe)ra.call(Xe,ut)&&Qe.indexOf(ut)<0&&(lt[ut]=Xe[ut]);if(Xe!=null&&Oi)for(var ut of Oi(Xe))Qe.indexOf(ut)<0&&hr.call(Xe,ut)&&(lt[ut]=Xe[ut]);return lt};const{Countdown:et}=jt.default;var It=Xe=>{var Qe=Xe,{onChange:lt}=Qe,ut=je(Qe,["onChange"]);const[en,cn]=(0,ae.useState)(null);(0,ae.useEffect)(()=>{typeof en=="number"&&en>=0&<(en)},[en]);const Wt=un=>{const On=Math.floor(un/1e3);cn(On)};return ae.createElement(et,Ze(Re({},ut),{onChange:Wt}))},Ut={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},Nn=({DataProps:Xe,className:Qe,style:lt={}})=>{var ut;return ae.createElement("div",{className:xe()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",Ut.ClassRoomItem,Qe),style:lt,onClick:()=>{(0,xn.xg)(Xe==null?void 0:Xe.first_category_url)}},ae.createElement("div",{className:"flex flex-col item-center"},ae.createElement("img",{src:`${(ut=Bt.Z)==null?void 0:ut.IMG_SERVER}/images/${Xe==null?void 0:Xe.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(Xe==null?void 0:Xe.subject_identifier)&&ae.createElement("div",{className:"mt-40px"},ae.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),ae.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),ae.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},ae.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(Xe!=null&&Xe.is_public)&&ae.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"),ae.createElement("span",{className:xe()("text-16px font-medium",Ut.TitleDom)},Xe==null?void 0:Xe.name)),ae.createElement("div",{className:"c-grey-333 font-medium"},Xe==null?void 0:Xe.creator),ae.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",Xe==null?void 0:Xe.course_members_count),ae.createElement("div",{className:"c-grey-333 flex item-center justify-between"},ae.createElement("div",null,"\u4F5C\u4E1A\uFF1A",Xe==null?void 0:Xe.tasks_count),Xe!=null&&Xe.is_end?ae.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):ae.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},Mr=Object.defineProperty,Hr=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,Gn=Object.prototype.propertyIsEnumerable,jn=(Xe,Qe,lt)=>Qe in Xe?Mr(Xe,Qe,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Xe[Qe]=lt,$n=(Xe,Qe)=>{for(var lt in Qe||(Qe={}))xr.call(Qe,lt)&&jn(Xe,lt,Qe[lt]);if(Hr)for(var lt of Hr(Qe))Gn.call(Qe,lt)&&jn(Xe,lt,Qe[lt]);return Xe},Kr=({DataProps:Xe=[],selectValue:Qe,onChange:lt,className:ut,style:en={},extra:cn,classNameItem:Wt,styleItem:un={},barHidden:On})=>{const[ar,Fn]=(0,ae.useState)();return(0,ae.useEffect)(()=>{Fn(Array.isArray(Qe)?Qe:[Qe])},[Qe]),ae.createElement("div",{className:xe()("flex px-20px py-10px gap-40px",ut),style:$n({borderBottom:"1px solid #D3F0FF"},en)},Xe==null?void 0:Xe.map(An=>ae.createElement("div",{key:An==null?void 0:An.id,className:xe()("flex item-center justify-center current c-grey-333 text-16 relative",Wt,An==null?void 0:An.className),style:$n($n({color:ar!=null&&ar.includes(An==null?void 0:An.id)?"#1890FF":"",minWidth:88},un),(An==null?void 0:An.style)||{}),onClick:Zn=>{lt==null||lt({domEvent:Zn,item:An}),An!=null&&An.link&&Ct.history.push(An==null?void 0:An.link)}},An==null?void 0:An.name,!On&&(ar==null?void 0:ar.includes(An==null?void 0:An.id))&&ae.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),ae.createElement("div",{className:"ml-auto"},cn))},kr=Object.defineProperty,Cr=Object.defineProperties,Ir=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Oe=(Xe,Qe,lt)=>Qe in Xe?kr(Xe,Qe,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Xe[Qe]=lt,st=(Xe,Qe)=>{for(var lt in Qe||(Qe={}))We.call(Qe,lt)&&Oe(Xe,lt,Qe[lt]);if(Ue)for(var lt of Ue(Qe))we.call(Qe,lt)&&Oe(Xe,lt,Qe[lt]);return Xe},tt=(Xe,Qe)=>Cr(Xe,Ir(Qe)),rn=({value:Xe,onChange:Qe,onInputChange:lt,className:ut,style:en={},InputProps:cn})=>{const[Wt,un]=(0,ae.useState)(Xe);return ae.createElement("div",{className:xe()("flex item-center rounded-full px-10px py-2px",ut),style:st({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},en)},ae.createElement(At.default,tt(st({bordered:!1},cn),{onChange:On=>{un(On.target.value),lt==null||lt(encodeURIComponent(On.target.value))},onPressEnter:On=>{Qe==null||Qe({domEvent:On,item:{value:Wt}})}})),ae.createElement("img",{className:"h-22px current",src:se(25365),height:22,onClick:On=>{Qe==null||Qe({domEvent:On,item:{value:Wt}})}}))}},99914:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Le}});var ae=se(67294);function Le(_e,rt){const ge=(0,ae.useRef)();(0,ae.useEffect)(()=>{ge.current=_e}),(0,ae.useEffect)(()=>{function ke(){ge.current()}if(rt!==null){let Ee=setInterval(ke,rt);return()=>clearInterval(Ee)}},[rt])}},92966:function(yn,fn,se){"use strict";se.r(fn),se.d(fn,{default:function(){return fr}});var ae=se(52810),Le=se(67294),_e=se(35973),rt=se(22150),ge=se(2453),ke=se(71230),Ee=se(83062),xe=se(69677),me=se(15746),De=se(78045),ot=se(11713),Ne=se(71577),mt=se(46303),dt=se(91304),pt=se(35598),Je=se(14446),Be=se(33170),gt=Object.defineProperty,nn=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,Ce=(Mn,Sn,on)=>Sn in Mn?gt(Mn,Sn,{enumerable:!0,configurable:!0,writable:!0,value:on}):Mn[Sn]=on,Ae=(Mn,Sn)=>{for(var on in Sn||(Sn={}))at.call(Sn,on)&&Ce(Mn,on,Sn[on]);if(nn)for(var on of nn(Sn))vt.call(Sn,on)&&Ce(Mn,on,Sn[on]);return Mn},Ye=(Mn,Sn,on)=>new Promise((yr,Wr)=>{var Lr=Er=>{try{Cn(on.next(Er))}catch(vr){Wr(vr)}},qr=Er=>{try{Cn(on.throw(Er))}catch(vr){Wr(vr)}},Cn=Er=>Er.done?yr(Er.value):Promise.resolve(Er.value).then(Lr,qr);Cn((on=on.apply(Mn,Sn)).next())});const Ve=({classroomList:Mn,dispatch:Sn})=>{const on=(0,_e.useParams)();return on.id=on.coursesId,Le.createElement(Je.default,{centered:!0,title:"\u63D0\u793A",open:Mn.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Ye(void 0,null,function*(){(yield(0,Be.ZP)(`/api/courses/${on.id}/delete_informs.json`,{method:"delete",body:{inform_id:Mn.actionTabs.selectArrs}})).status===0&&(ge.ZP.success("\u5220\u9664\u6210\u529F"),Sn({type:"classroomList/setActionTabs",payload:{}}),Sn({type:"classroomList/getAnnouncementList",payload:Ae({},on)}),Sn({type:"classroomList/getClassroomLeftMenus",payload:{id:on.coursesId}}))}),onCancel:()=>{Sn({type:"classroomList/setActionTabs",payload:{}})}},Le.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"))};var At=(0,_e.connect)(({classroomList:Mn})=>({classroomList:Mn}))(Ve),xt=se(26194),Lt=se(61747),nt=se(52262),qt={flex_box_center:"flex_box_center___XWIMC",flex_space_between:"flex_space_between___vaAw5",flex_box_vertical_center:"flex_box_vertical_center___gTAoq",flex_box_center_end:"flex_box_center_end___eZxHN",flex_box_column:"flex_box_column___Le0C0",bg:"bg___HWAVx",containerTitle:"containerTitle___PhNyw",titleRightMenu:"titleRightMenu___BXk7n",containerDesc:"containerDesc___v4HBe",listItem:"listItem___EdEdU",info:"info___UC3RE",actionButton:"actionButton___Sp5pp",TabMenuItem:"TabMenuItem___Dj4Cy",TabMenuItemActive:"TabMenuItemActive___zBNw_",DetailDomItemEdit:"DetailDomItemEdit___o50bt",DetailDomItem:"DetailDomItem___g8Vu3",flexBox:"flexBox___lvAlc",TitleTip:"TitleTip___cMUUC",TitleTipAll:"TitleTipAll___Kua5r",TitleTipNotAll:"TitleTipNotAll___kZps4","primary-hover":"primary-hover___na0uq"},zt=se(71865),bn=se(33054),dn=se(28706),Wn=se(9343),rr=se(64743),ln=se(67294),$e=Object.defineProperty,Se=Object.defineProperties,Bt=Object.getOwnPropertyDescriptors,xn=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,yt=(Mn,Sn,on)=>Sn in Mn?$e(Mn,Sn,{enumerable:!0,configurable:!0,writable:!0,value:on}):Mn[Sn]=on,Gt=(Mn,Sn)=>{for(var on in Sn||(Sn={}))Xt.call(Sn,on)&&yt(Mn,on,Sn[on]);if(xn)for(var on of xn(Sn))ft.call(Sn,on)&&yt(Mn,on,Sn[on]);return Mn},qn=(Mn,Sn)=>Se(Mn,Bt(Sn)),Dn=(Mn,Sn,on)=>new Promise((yr,Wr)=>{var Lr=Er=>{try{Cn(on.next(Er))}catch(vr){Wr(vr)}},qr=Er=>{try{Cn(on.throw(Er))}catch(vr){Wr(vr)}},Cn=Er=>Er.done?yr(Er.value):Promise.resolve(Er.value).then(Lr,qr);Cn((on=on.apply(Mn,Sn)).next())});const Tt=({classroomList:Mn,loading:Sn,dispatch:on})=>{var yr,Wr,Lr,qr;const Cn=(0,_e.useParams)(),{detailAnnouncementList:Er,allCourseGroups:vr}=Mn,[ta,Hi]=(0,Le.useState)(-1),[Pi,Di]=(0,Le.useState)(!1),[,qi,Ki]=(0,Wn.U)(Lt.An,{}),[di,na]=(0,Le.useState)({name:"",description:"",unified_setting:!0}),[aa,_i]=(0,Le.useState)([]),[Mi,Sa]=(0,Le.useState)(qn(Gt({},Cn),{id:Cn.coursesId,unified_setting:""})),Si=[{title:"\u5168\u90E8\u901A\u77E5",id:"",num:Er.all_count,isShow:!0},{title:"\u5206\u73ED\u53D1\u5E03",id:"0",num:Er.not_unified_setting_count,isShow:!0},{title:"\u7EDF\u4E00\u53D1\u5E03",id:"1",num:Er.unified_setting_count,isShow:!0}].filter(jt=>jt.isShow),[$r]=rt.default.useForm(),Ft=rt.default.useWatch("unified_setting",$r),Pt=[{value:0,label:"\u672A\u5206\u73ED",isShow:vr==null?void 0:vr.manage_all_group},...((yr=vr==null?void 0:vr.course_groups)==null?void 0:yr.map(jt=>({value:jt.id,label:jt.name,isShow:!0})))||[]].filter(jt=>jt.isShow).map(jt=>(delete jt.isShow,jt)),pn=(jt=Mi)=>{on({type:"classroomList/getAnnouncementList",payload:Gt({},jt)}),window.scrollTo({top:0,behavior:"smooth"})},Pn=(jt,ur)=>Dn(void 0,null,function*(){switch(ur){case"up":yield on({type:"announcement/informUp",payload:Gt({inform_id:jt.id},Mi)});break;case"down":yield on({type:"announcement/informDown",payload:Gt({inform_id:jt.id},Mi)});break;case"del":on({type:"classroomList/setActionTabs",payload:{key:"\u5220\u9664",selectArrs:jt.id}});break;case"edit":if(ta!==-1){ge.ZP.warning("\u8BF7\u5148\u4FDD\u5B58\u7F16\u8F91");return}na(qn(Gt({},di),{name:jt.name,description:jt.description,unified_setting:jt.unified_setting})),_i([...jt.course_groups]),Hi(jt.key);break}(ur==="down"||ur==="up")&&pn()}),cr=(jt,ur)=>(jt.key=ur,ln.createElement("section",{className:qt.DetailDomItemEdit},ln.createElement(ke.Z,{wrap:!1,align:"middle",gutter:20},ur!==0&&ln.createElement(Ee.Z,{placement:"bottom",title:"\u4E0A\u79FB"},ln.createElement("span",{className:qt.flexBox,style:{marginRight:"16px"},onClick:()=>{Pn(jt,"up")}},ln.createElement("i",{className:"iconfont icon-shangyi2"}),ln.createElement("div",null,"\u4E0A\u79FB"))),ur<Er.informs.length-1&&ln.createElement(Ee.Z,{placement:"bottom",title:"\u4E0B\u79FB"},ln.createElement("span",{className:qt.flexBox,style:{marginRight:"16px"},onClick:()=>{Pn(jt,"down")}},ln.createElement("i",{className:"iconfont icon-xiayi2"}),ln.createElement("div",null,"\u4E0B\u79FB"))),ln.createElement(Ee.Z,{placement:"bottom",title:"\u5220\u9664"},ln.createElement("span",{className:`${qt.flexBox} delete-hover`,style:{marginRight:"16px"},onClick:()=>{Pn(jt,"del")}},ln.createElement("i",{className:"iconfont icon-shanchu"}),ln.createElement("div",null,"\u5220\u9664"))),ln.createElement(Ee.Z,{placement:"bottom",title:"\u7F16\u8F91"},ln.createElement("span",{className:`${qt.flexBox}`,style:{marginRight:"16px"},onClick:()=>{Pn(jt,"edit")}},ln.createElement("i",{className:"iconfont icon-bianjishijuan3x"}),ln.createElement("div",null,"\u7F16\u8F91")))))),Gr=jt=>Dn(void 0,null,function*(){if((aa==null?void 0:aa.length)===0&&!(di!=null&&di.unified_setting)){ge.ZP.warning("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u73ED\u7EA7");return}di.name===""?ge.ZP.error("\u8BF7\u8F93\u5165\u6807\u9898"):di.description===""?ge.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):(yield(0,Lt.my)(qn(Gt(Gt({},Mi),di),{inform_id:jt.id,group_ids:aa}))).status===0&&(ge.ZP.success("\u66F4\u65B0\u6210\u529F"),Hi(-1),pn())}),Xr=jt=>{let{nodeName:ur,src:li}=jt.target;ur==="IMG"&&bn.Z.publish("preview-image",li)},oi=jt=>{var ur;const li=(ur=jt==null?void 0:jt.map(ci=>ci.name))==null?void 0:ur.length;return(jt==null?void 0:jt.length)<=2?ln.createElement("span",null,"\u5F53\u524D\u5DF2\u7ECF\u53D1\u5E03",jt==null?void 0:jt.map(ci=>ci.name).join("\u3001"),"\u5171",li,"\u4E2A\u73ED\u7EA7"):ln.createElement("span",null,"\u5F53\u524D\u5DF2\u7ECF\u53D1\u5E03",jt==null?void 0:jt.map(ci=>ci.name).slice(0,2).join("\u3001"),"\u7B49\u5171",li,"\u4E2A\u73ED\u7EA7")};return(0,Le.useEffect)(()=>{on({type:"classroomList/getAllCourseGroup",payload:Gt({},Mi)})},[]),(0,Le.useEffect)(()=>{pn()},[Mn.name,Mi.unified_setting]),(0,Le.useEffect)(()=>{Mn.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&pn()},[Mn.actionTabs.key]),ln.createElement("section",null,ln.createElement("div",{className:"flex item-center gap-20px",style:{background:"linear-gradient( 180deg, #E0F1FF 0%, #EFF7FF 100%)",border:"1px solid #FFFFFF",borderRadius:"8px 8px 0 0"}},ln.createElement("div",{className:"flex gap-4px mr-auto"},Si.map((jt,ur)=>ln.createElement("div",{key:ur,className:`${qt.TabMenuItem} ${jt.id==Mi.unified_setting?qt.TabMenuItemActive:""}`,onClick:()=>{Sa(qn(Gt({},Mi),{unified_setting:jt.id}))}}," ",jt.title,ln.createElement("span",{className:"ml20"},jt.num)))),(0,nt.GJ)()&&ln.createElement(rr.op,{theme:ae.Fy.THEMEONE,className:"mr-20px",style:{borderRadius:"4px"},icon:ln.createElement("i",{className:"iconfont icon-tianjia4"}),onClick:()=>{if(ta!==-1){ge.ZP.warning("\u8BF7\u5148\u4FDD\u5B58\u7F16\u8F91");return}na({name:"",description:"",unified_setting:!0}),_i([]),Di(!0)}},"\u65B0\u5EFA\u901A\u77E5")),Pi&&ln.createElement(rt.default,{className:"bg-white mb10",style:{padding:"20px"},initialValues:{unified_setting:!0},form:$r,size:"middle",colon:!1,onFinish:jt=>Dn(void 0,null,function*(){(yield Ki(Gt(Gt({},Mi),jt))).status===0&&((0,dn.L9)(["\u6559\u5B66\u8BFE\u5802","\u516C\u544A\u680F","\u53D1\u5E03\u516C\u544A"]),ge.ZP.success("\u53D1\u5E03\u6210\u529F"),Di(!1),pn(),$r.resetFields(),on({type:"classroomList/getClassroomLeftMenus",payload:{id:Cn.coursesId}}))})},ln.createElement(rt.default.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ln.createElement(xe.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u6807\u9898\uFF0C\u6700\u591A60\u4E2A\u5B57\u7B26"})),ln.createElement(rt.default.Item,{name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},ln.createElement(dt.Z,{watch:!0,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26"})),ln.createElement(ke.Z,{wrap:!1},ln.createElement(me.Z,null,ln.createElement(rt.default.Item,{name:"unified_setting",label:"\u53D1\u5E03\u65B9\u5F0F"},ln.createElement(De.ZP.Group,null,ln.createElement(De.ZP,{value:!0},"\u7EDF\u4E00\u53D1\u5E03"),ln.createElement(De.ZP,{value:!1,disabled:((Wr=vr==null?void 0:vr.course_groups)==null?void 0:Wr.length)===0},"\u5206\u73ED\u53D1\u5E03")))),((Lr=vr==null?void 0:vr.course_groups)==null?void 0:Lr.length)<=0?ln.createElement(me.Z,null,ln.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"')):!Ft&&ln.createElement(me.Z,null,ln.createElement(rt.default.Item,{name:"group_ids",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u81F3\u5C11\u4E00\u4E2A\u73ED\u7EA7"}]},ln.createElement(ot.default,{style:{width:314},mode:"multiple",placeholder:"\u8BF7\u9009\u62E9\u73ED\u7EA7",options:Pt})))),ln.createElement(ke.Z,{wrap:!1,align:"middle",justify:"end",gutter:20,className:qt.actionButton,style:{marginTop:0}},ln.createElement(me.Z,null,ln.createElement(Ne.ZP,{type:"primary",onClick:()=>{Di(!1),$r.resetFields()},ghost:!0},"\u53D6\u6D88")),ln.createElement(me.Z,null,ln.createElement(Ne.ZP,{type:"primary",htmlType:"submit",loading:qi},"\u63D0\u4EA4")))),ln.createElement(mt.Z,{loading:!!Sn["classroomList/getAnnouncementList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},Er.informs_count===0&&!Pi&&ln.createElement("div",{className:"pb30"},ln.createElement(xt.Z,null)),(qr=Er==null?void 0:Er.informs)==null?void 0:qr.map(function(jt,ur){var li,ci,Oi,ra;return ln.createElement("div",{className:`bg-white mb10 px-20px ${qt.DetailDomItem}`,key:ur},ta===ur&&ln.createElement("div",{className:"p30"},ln.createElement(xe.default,{max:60,onChange:hr=>{di.name=hr.target.value,na(Gt({},di))},suffix:ln.createElement("span",null,di.name.length,"/60"),defaultValue:jt.name,size:"middle",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u6807\u9898\uFF0C\u6700\u591A60\u4E2A\u5B57\u7B26"}),ln.createElement("div",{className:"mt15"},ln.createElement(dt.Z,{watch:!0,onChange:hr=>{di.description=hr},placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26",defaultValue:jt.description})),ln.createElement("div",null,ln.createElement("label",{className:"mr20"},"\u53D1\u5E03\u65B9\u5F0F"),ln.createElement(De.ZP.Group,{defaultValue:jt.unified_setting,onChange:hr=>{di.unified_setting=hr.target.value,na(Gt({},di))}},ln.createElement(De.ZP,{value:!0},"\u7EDF\u4E00\u53D1\u5E03"),ln.createElement(De.ZP,{value:!1,disabled:((li=vr==null?void 0:vr.course_groups)==null?void 0:li.length)===0},"\u5206\u73ED\u53D1\u5E03")),di.unified_setting===!1&&ln.createElement(ot.default,{defaultValue:jt==null?void 0:jt.course_groups.map(hr=>hr.id),style:{width:314},mode:"multiple",placeholder:"\u8BF7\u9009\u62E9\u73ED\u7EA7",filterOption:(hr,Qi)=>Qi.label.indexOf(hr.toLowerCase())>=0,onChange:hr=>_i(hr)},(vr==null?void 0:vr.manage_all_group)&&((ci=jt==null?void 0:jt.course_groups)==null?void 0:ci.findIndex(hr=>hr.name=="\u672A\u5206\u73ED"))<0&&ln.createElement(ot.default.Option,{value:0,label:"\u672A\u5206\u73ED"},"\u672A\u5206\u73ED"),(ra=[...(Oi=jt==null?void 0:jt.course_groups)==null?void 0:Oi.map(hr=>(vr!=null&&vr.manage_all_group?hr.name!="\u672A\u5206\u73ED"&&(hr.disabled=!0):hr.disabled=!0,hr)),...vr==null?void 0:vr.course_groups])==null?void 0:ra.map(function(hr,Qi){return ln.createElement(ot.default.Option,{value:hr==null?void 0:hr.id,label:hr==null?void 0:hr.name,disabled:hr==null?void 0:hr.disabled,style:(hr==null?void 0:hr.disabled)&&{display:"none"}},hr==null?void 0:hr.name)}))),ln.createElement("div",{className:qt.actionButton},ln.createElement(Ne.ZP,{type:"primary",onClick:()=>Hi(-1),ghost:!0,size:"middle"},"\u53D6\u6D88"),ln.createElement(Ne.ZP,{type:"primary",onClick:()=>Gr(jt),size:"middle"},"\u63D0\u4EA4"))),ta!==ur&&ln.createElement(ln.Fragment,null,ln.createElement("div",{style:{borderBottom:"1px dashed #DCDCDC",padding:"13px 20px"}},ln.createElement(ke.Z,{wrap:!1,align:"middle",gutter:20,style:{height:"58px"}},!(0,nt.dE)()&&ln.createElement(me.Z,null,jt.unified_setting?ln.createElement("div",{className:`${qt.TitleTip} ${qt.TitleTipAll}`},"\u7EDF\u4E00\u53D1\u5E03"):ln.createElement(Ee.Z,{title:oi(jt.course_groups)},ln.createElement("div",{className:`${qt.TitleTip} ${qt.TitleTipNotAll}`},"\u5206\u73ED\u53D1\u5E03"))),ln.createElement(me.Z,{flex:1},ln.createElement(Ee.Z,{title:jt.name,placement:"topLeft"},ln.createElement("span",{className:"multi_ellipsis1 c-333 blod font20"},jt.name))),!Pi&&!Mi.unified_setting&&(0,nt.GJ)()&&ln.createElement(me.Z,null,cr(jt,ur)))),ln.createElement("div",{onClick:Xr,className:qt.info},ln.createElement(pt.Z,{value:jt.description}))))})),ln.createElement(At,null),ln.createElement(zt.Z,null))};var mn=(0,_e.connect)(({classroomList:Mn,announcement:Sn,loading:on,globalSetting:yr})=>({classroomList:Mn,globalSetting:yr,announcement:Sn,loading:on.effects}))(Tt),Vn=se(96074),kn=se(28452),Pe=Object.defineProperty,fe=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,ue=(Mn,Sn,on)=>Sn in Mn?Pe(Mn,Sn,{enumerable:!0,configurable:!0,writable:!0,value:on}):Mn[Sn]=on,le=(Mn,Sn)=>{for(var on in Sn||(Sn={}))ce.call(Sn,on)&&ue(Mn,on,Sn[on]);if(fe)for(var on of fe(Sn))he.call(Sn,on)&&ue(Mn,on,Sn[on]);return Mn},Me=(Mn,Sn,on)=>new Promise((yr,Wr)=>{var Lr=Er=>{try{Cn(on.next(Er))}catch(vr){Wr(vr)}},qr=Er=>{try{Cn(on.throw(Er))}catch(vr){Wr(vr)}},Cn=Er=>Er.done?yr(Er.value):Promise.resolve(Er.value).then(Lr,qr);Cn((on=on.apply(Mn,Sn)).next())});const Ge=({classroomList:Mn,dispatch:Sn})=>{const on=(0,_e.useParams)();return on.id=on.coursesId,Le.createElement(Je.default,{centered:!0,title:"\u63D0\u793A",open:Mn.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Me(void 0,null,function*(){(yield(0,Be.ZP)(`/api/courses/${on.id}/delete_informs.json`,{method:"delete",body:{inform_id:Mn.actionTabs.selectArrs}})).status===0&&(ge.ZP.success("\u5220\u9664\u6210\u529F"),Sn({type:"classroomList/setActionTabs",payload:{}}),Sn({type:"classroomList/getAnnouncementList",payload:le({},on)}),Sn({type:"classroomList/getClassroomLeftMenus",payload:{id:on.coursesId}}))}),onCancel:()=>{Sn({type:"classroomList/setActionTabs",payload:{}})}},Le.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"))};var St=(0,_e.connect)(({classroomList:Mn})=>({classroomList:Mn}))(Ge),Ht={flex_box_center:"flex_box_center____onKf",flex_space_between:"flex_space_between___K0I_I",flex_box_vertical_center:"flex_box_vertical_center___zuGMI",flex_box_center_end:"flex_box_center_end___a8bML",flex_box_column:"flex_box_column___Hzs5w",bg:"bg___pNcr_",containerTitle:"containerTitle___rU6y8",titleRightMenu:"titleRightMenu___dxek7",containerDesc:"containerDesc___oQPeA",listItem:"listItem___fFF20",listItemTitle:"listItemTitle___WAAQi",info:"info___f8YQr",actionButton:"actionButton___lNHVv"},Yt=Object.defineProperty,Vt=Object.defineProperties,sn=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,$t=(Mn,Sn,on)=>Sn in Mn?Yt(Mn,Sn,{enumerable:!0,configurable:!0,writable:!0,value:on}):Mn[Sn]=on,bt=(Mn,Sn)=>{for(var on in Sn||(Sn={}))Mt.call(Sn,on)&&$t(Mn,on,Sn[on]);if(it)for(var on of it(Sn))Ot.call(Sn,on)&&$t(Mn,on,Sn[on]);return Mn},_n=(Mn,Sn)=>Vt(Mn,sn(Sn)),ct=(Mn,Sn,on)=>new Promise((yr,Wr)=>{var Lr=Er=>{try{Cn(on.next(Er))}catch(vr){Wr(vr)}},qr=Er=>{try{Cn(on.throw(Er))}catch(vr){Wr(vr)}},Cn=Er=>Er.done?yr(Er.value):Promise.resolve(Er.value).then(Lr,qr);Cn((on=on.apply(Mn,Sn)).next())});const Dt=({classroomList:Mn,globalSetting:Sn,loading:on,dispatch:yr})=>{const[Wr,Lr]=(0,Le.useState)(bt({},(0,_e.useParams)())),{detailAnnouncementList:qr}=Mn,[Cn,Er]=(0,Le.useState)(-1),[vr,ta]=(0,Le.useState)(!1),[Hi,Pi]=(0,Le.useState)(!1),[Di,qi]=(0,Le.useState)({name:"",description:""}),Ki=(0,Le.useRef)();Wr.id=Wr.coursesId,(0,Le.useEffect)(()=>{Lr(bt({},Wr)),yr({type:"classroomList/getAnnouncementList",payload:bt({},Wr)})},[Mn.name]),(0,Le.useEffect)(()=>{Mn.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&yr({type:"classroomList/getAnnouncementList",payload:bt({},Wr)})},[Mn.actionTabs.key]);const di=(Si,$r)=>{Wr.page=Si,Lr(bt({},Wr)),yr({type:"classroomList/getAnnouncementList",payload:bt({},Wr)})},na=(Si,$r)=>ct(void 0,null,function*(){switch($r){case"up":yield yr({type:"announcement/informUp",payload:bt({inform_id:Si.id},Wr)});break;case"down":yield yr({type:"announcement/informDown",payload:bt({inform_id:Si.id},Wr)});break;case"del":yr({type:"classroomList/setActionTabs",payload:{key:"\u5220\u9664",selectArrs:Si.id}});break;case"edit":Di.name=Si.name,Di.description=Si.description,Er(Si.key);break}($r==="down"||$r==="up")&&yr({type:"classroomList/getAnnouncementList",payload:bt({},Wr)})}),aa=(Si,$r)=>(Si.key=$r,Le.createElement("section",null,(0,nt.GJ)()&&Le.createElement("aside",null,$r!==0&&Le.createElement(Ee.Z,{placement:"bottom",title:"\u4E0A\u79FB"},Le.createElement("span",{className:"iconfont c-blue ml30 icon-shangyi_Hover",onClick:()=>{na(Si,"up")}})),$r<qr.informs.length-1&&Le.createElement(Ee.Z,{placement:"bottom",title:"\u4E0B\u79FB"},Le.createElement("span",{className:"iconfont c-blue ml30 icon-xiayi_moren",onClick:()=>{na(Si,"down")}})),Le.createElement(Ee.Z,{placement:"bottom",title:"\u5220\u9664"},Le.createElement("span",{className:"iconfont c-blue current ml30 icon-shanchu",onClick:()=>{na(Si,"del")}})),Le.createElement(Ee.Z,{placement:"bottom",title:"\u7F16\u8F91"},Le.createElement("span",{className:"iconfont c-blue current ml30 icon-bianjishijuan3x",onClick:()=>{na(Si,"edit")}}))))),_i=()=>ct(void 0,null,function*(){if(Di.name==="")ge.ZP.error("\u8BF7\u8F93\u5165\u6807\u9898");else if(Di.description==="")ge.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{Pi(!0);const Si=yield(0,Lt.An)(bt(bt({},Wr),Di));Pi(!1),Si.status===0&&((0,dn.L9)(["\u6559\u5B66\u8BFE\u5802","\u516C\u544A\u680F","\u53D1\u5E03\u516C\u544A"]),ge.ZP.success("\u53D1\u5E03\u6210\u529F"),ta(!1),qi({name:"",description:""}),yr({type:"classroomList/getAnnouncementList",payload:bt({},Wr)}),yr({type:"classroomList/getClassroomLeftMenus",payload:{id:Wr.coursesId}}))}}),Mi=Si=>ct(void 0,null,function*(){Di.name===""?ge.ZP.error("\u8BF7\u8F93\u5165\u6807\u9898"):Di.description===""?ge.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):(yield(0,Lt.my)(_n(bt(bt({},Wr),Di),{inform_id:Si.id}))).status===0&&(ge.ZP.success("\u66F4\u65B0\u6210\u529F"),Er(-1),yr({type:"classroomList/getAnnouncementList",payload:bt({},Wr)}))}),Sa=Si=>{let{nodeName:$r,src:Ft}=Si.target;$r==="IMG"&&(bn.Z.publish("preview-image",Ft),console.log("src:",Ft))};return Le.createElement("section",null,Le.createElement("aside",{className:Ht.bg},Le.createElement("div",{className:Ht.containerTitle},Le.createElement("div",{className:"font16"},(qr==null?void 0:qr.main_category_name)||"\u901A\u77E5\u516C\u544A"),Le.createElement("div",{className:Ht.titleRightMenu},(0,nt.GJ)()&&Le.createElement("span",{className:"c-blue current",onClick:()=>{ta(!0)}},"\u65B0\u5EFA")))),Le.createElement("aside",{className:"bg-white pl30 pr30 pt30"},vr&&Le.createElement("div",{className:"pb30"},Le.createElement(xe.default,{maxLength:60,onChange:Si=>{Di.name=Si.target.value,qi(bt({},Di))},suffix:Le.createElement("span",null,Di.name.length,"/60"),size:"middle",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u6807\u9898\uFF0C\u6700\u591A60\u4E2A\u5B57\u7B26"}),Le.createElement("div",{className:"mt15"},Le.createElement(dt.Z,{watch:!0,onChange:Si=>{Di.description=Si},placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26"})),Le.createElement("div",{className:Ht.actionButton},Le.createElement(Ne.ZP,{type:"primary",onClick:()=>{qi({name:"",description:""}),ta(!1)},ghost:!0,size:"middle"},"\u53D6\u6D88"),Le.createElement(Ne.ZP,{loading:Hi,type:"primary",onClick:()=>_i(),size:"middle"},"\u63D0\u4EA4"))),Le.createElement(mt.Z,{loading:on["classroomList/getAttachmentList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},qr.informs_count===0&&!vr&&Le.createElement("div",{className:"pb30"},Le.createElement(xt.Z,null)),qr.informs&&qr.informs.map(function(Si,$r){return Le.createElement("div",{className:Ht.listItem,key:$r},Cn===$r&&Le.createElement("div",null,Le.createElement(xe.default,{max:60,onChange:Ft=>{Di.name=Ft.target.value,qi(bt({},Di))},suffix:Le.createElement("span",null,Di.name.length,"/60"),defaultValue:Si.name,size:"middle",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u6807\u9898\uFF0C\u6700\u591A60\u4E2A\u5B57\u7B26"}),Le.createElement("div",{className:"mt15"},Le.createElement(dt.Z,{watch:!0,onChange:Ft=>{Di.description=Ft},placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26",defaultValue:Si.description})),Le.createElement("div",{className:Ht.actionButton},Le.createElement(Ne.ZP,{type:"primary",onClick:()=>Er(-1),ghost:!0,size:"middle"},"\u53D6\u6D88"),Le.createElement(Ne.ZP,{type:"primary",onClick:()=>Mi(Si),size:"middle"},"\u63D0\u4EA4"))),Cn!==$r&&Le.createElement("div",null,Le.createElement("div",{className:Ht.listItemTitle},Le.createElement("div",{className:"font20 c-black bold"},Si.name),!vr&&aa(Si,$r)),Le.createElement("div",{onClick:Sa,className:Ht.info},Le.createElement(pt.Z,{value:Si.description}))),Le.createElement(Vn.Z,null))}),Le.createElement("aside",{className:"tc mb50 mt30"},Le.createElement(kn.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:di,defaultCurrent:1,current:Wr.page||1,total:qr.polls&&qr.polls.exercises_all_counts})))),Le.createElement(St,null),Le.createElement(zt.Z,null))};var En=(0,_e.connect)(({classroomList:Mn,announcement:Sn,loading:on,globalSetting:yr})=>({classroomList:Mn,globalSetting:yr,announcement:Sn,loading:on.effects}))(Dt),wn=Object.defineProperty,Bn=Object.getOwnPropertySymbols,Qn=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,br=(Mn,Sn,on)=>Sn in Mn?wn(Mn,Sn,{enumerable:!0,configurable:!0,writable:!0,value:on}):Mn[Sn]=on,Sr=(Mn,Sn)=>{for(var on in Sn||(Sn={}))Qn.call(Sn,on)&&br(Mn,on,Sn[on]);if(Bn)for(var on of Bn(Sn))wr.call(Sn,on)&&br(Mn,on,Sn[on]);return Mn},Yn=(Mn,Sn,on)=>new Promise((yr,Wr)=>{var Lr=Er=>{try{Cn(on.next(Er))}catch(vr){Wr(vr)}},qr=Er=>{try{Cn(on.throw(Er))}catch(vr){Wr(vr)}},Cn=Er=>Er.done?yr(Er.value):Promise.resolve(Er.value).then(Lr,qr);Cn((on=on.apply(Mn,Sn)).next())});const ir=({classroomList:Mn,dispatch:Sn})=>{const on=(0,_e.useParams)();return on.id=on.coursesId,Le.createElement(Je.default,{centered:!0,title:"\u63D0\u793A",open:Mn.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Yn(void 0,null,function*(){(yield(0,Be.ZP)(`/api/courses/${on.id}/delete_informs.json`,{method:"delete",body:{inform_id:Mn.actionTabs.selectArrs}})).status===0&&(ge.ZP.success("\u5220\u9664\u6210\u529F"),Sn({type:"classroomList/setActionTabs",payload:{}}),Sn({type:"classroomList/getAnnouncementList",payload:Sr({},on)}),Sn({type:"classroomList/getClassroomLeftMenus",payload:{id:on.coursesId}}))}),onCancel:()=>{Sn({type:"classroomList/setActionTabs",payload:{}})}},Le.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"))};var Dr=(0,_e.connect)(({classroomList:Mn})=>({classroomList:Mn}))(ir),ti={flex_box_center:"flex_box_center___tNquc",flex_space_between:"flex_space_between___iitew",flex_box_vertical_center:"flex_box_vertical_center___wDCnZ",flex_box_center_end:"flex_box_center_end___fNnX8",flex_box_column:"flex_box_column___Ci70p",bg:"bg___YuIn1",containerTitle:"containerTitle___TIrdV",titleRightMenu:"titleRightMenu___ZWOkS",containerDesc:"containerDesc___UXIiY",listItem:"listItem___bhlBI",info:"info___mJsSk",actionButton:"actionButton___dGH6h",TabMenuItem:"TabMenuItem___Ue60h",TabMenuItemActive:"TabMenuItemActive___elUgD",DetailDomItem:"DetailDomItem___cLsIJ",DetailDomItemEdit:"DetailDomItemEdit___U0Z0K",flexBox:"flexBox___SJq3U",TitleTip:"TitleTip___a8jhL",TitleTipAll:"TitleTipAll___cWnSF",TitleTipNotAll:"TitleTipNotAll___LxKuL","primary-hover":"primary-hover___Ne2q6"},Ai=se(1762),tr=se(67294),Jr=Object.defineProperty,kt=Object.defineProperties,vn=Object.getOwnPropertyDescriptors,Rn=Object.getOwnPropertySymbols,In=Object.prototype.hasOwnProperty,nr=Object.prototype.propertyIsEnumerable,gr=(Mn,Sn,on)=>Sn in Mn?Jr(Mn,Sn,{enumerable:!0,configurable:!0,writable:!0,value:on}):Mn[Sn]=on,sr=(Mn,Sn)=>{for(var on in Sn||(Sn={}))In.call(Sn,on)&&gr(Mn,on,Sn[on]);if(Rn)for(var on of Rn(Sn))nr.call(Sn,on)&&gr(Mn,on,Sn[on]);return Mn},Un=(Mn,Sn)=>kt(Mn,vn(Sn)),qe=(Mn,Sn,on)=>new Promise((yr,Wr)=>{var Lr=Er=>{try{Cn(on.next(Er))}catch(vr){Wr(vr)}},qr=Er=>{try{Cn(on.throw(Er))}catch(vr){Wr(vr)}},Cn=Er=>Er.done?yr(Er.value):Promise.resolve(Er.value).then(Lr,qr);Cn((on=on.apply(Mn,Sn)).next())});const wt=({classroomList:Mn,loading:Sn,dispatch:on})=>{var yr,Wr,Lr,qr;const Cn=(0,_e.useParams)(),{detailAnnouncementList:Er,allCourseGroups:vr}=Mn,[ta,Hi]=(0,Le.useState)(-1),[Pi,Di]=(0,Le.useState)(!1),[,qi,Ki]=(0,Wn.U)(Lt.An,{}),[di,na]=(0,Le.useState)({name:"",description:"",unified_setting:!0}),[aa,_i]=(0,Le.useState)([]),[Mi,Sa]=(0,Le.useState)(Un(sr({},Cn),{id:Cn.coursesId,unified_setting:""})),Si=[{title:"\u5168\u90E8\u901A\u77E5",id:"",num:Er.all_count,isShow:!0},{title:"\u5206\u73ED\u53D1\u5E03",id:"0",num:Er.not_unified_setting_count,isShow:!0},{title:"\u7EDF\u4E00\u53D1\u5E03",id:"1",num:Er.unified_setting_count,isShow:!0}].filter(jt=>jt.isShow),[$r]=rt.default.useForm(),Ft=rt.default.useWatch("unified_setting",$r),Pt=[{value:0,label:"\u672A\u5206\u73ED",isShow:vr==null?void 0:vr.manage_all_group},...((yr=vr==null?void 0:vr.course_groups)==null?void 0:yr.map(jt=>({value:jt.id,label:jt.name,isShow:!0})))||[]].filter(jt=>jt.isShow).map(jt=>(delete jt.isShow,jt)),pn=(jt=Mi)=>{on({type:"classroomList/getAnnouncementList",payload:sr({},jt)}),window.scrollTo({top:0,behavior:"smooth"})},Pn=(jt,ur)=>qe(void 0,null,function*(){switch(ur){case"up":yield on({type:"announcement/informUp",payload:sr({inform_id:jt.id},Mi)});break;case"down":yield on({type:"announcement/informDown",payload:sr({inform_id:jt.id},Mi)});break;case"del":on({type:"classroomList/setActionTabs",payload:{key:"\u5220\u9664",selectArrs:jt.id}});break;case"edit":if(ta!==-1){ge.ZP.warning("\u8BF7\u5148\u4FDD\u5B58\u7F16\u8F91");return}na(Un(sr({},di),{name:jt.name,description:jt.description,unified_setting:jt.unified_setting})),_i([...jt.course_groups]),Hi(jt.key);break}(ur==="down"||ur==="up")&&pn()}),cr=(jt,ur)=>(jt.key=ur,tr.createElement("section",{className:ti.DetailDomItemEdit},tr.createElement(ke.Z,{wrap:!1,align:"middle",gutter:20},ur!==0&&tr.createElement(Ee.Z,{placement:"bottom",title:"\u4E0A\u79FB"},tr.createElement("span",{className:ti.flexBox,style:{marginRight:"16px"},onClick:()=>{Pn(jt,"up")}},tr.createElement("i",{className:"iconfont icon-shangyi2"}),tr.createElement("div",null,"\u4E0A\u79FB"))),ur<Er.informs.length-1&&tr.createElement(Ee.Z,{placement:"bottom",title:"\u4E0B\u79FB"},tr.createElement("span",{className:ti.flexBox,style:{marginRight:"16px"},onClick:()=>{Pn(jt,"down")}},tr.createElement("i",{className:"iconfont icon-xiayi2"}),tr.createElement("div",null,"\u4E0B\u79FB"))),tr.createElement(Ee.Z,{placement:"bottom",title:"\u5220\u9664"},tr.createElement("span",{className:`${ti.flexBox} delete-hover`,style:{marginRight:"16px"},onClick:()=>{Pn(jt,"del")}},tr.createElement("i",{className:"iconfont icon-shanchu"}),tr.createElement("div",null,"\u5220\u9664"))),tr.createElement(Ee.Z,{placement:"bottom",title:"\u7F16\u8F91"},tr.createElement("span",{className:`${ti.flexBox}`,style:{marginRight:"16px"},onClick:()=>{Pn(jt,"edit")}},tr.createElement("i",{className:"iconfont icon-bianjishijuan3x"}),tr.createElement("div",null,"\u7F16\u8F91")))))),Gr=jt=>qe(void 0,null,function*(){if((aa==null?void 0:aa.length)===0&&!(di!=null&&di.unified_setting)){ge.ZP.warning("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u73ED\u7EA7");return}di.name===""?ge.ZP.error("\u8BF7\u8F93\u5165\u6807\u9898"):di.description===""?ge.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):(yield(0,Lt.my)(Un(sr(sr({},Mi),di),{inform_id:jt.id,group_ids:aa}))).status===0&&(ge.ZP.success("\u66F4\u65B0\u6210\u529F"),Hi(-1),pn())}),Xr=jt=>{let{nodeName:ur,src:li}=jt.target;ur==="IMG"&&bn.Z.publish("preview-image",li)},oi=jt=>{var ur;const li=(ur=jt==null?void 0:jt.map(ci=>ci.name))==null?void 0:ur.length;return(jt==null?void 0:jt.length)<=2?tr.createElement("span",null,"\u5F53\u524D\u5DF2\u7ECF\u53D1\u5E03",jt==null?void 0:jt.map(ci=>ci.name).join("\u3001"),"\u5171",li,"\u4E2A\u73ED\u7EA7"):tr.createElement("span",null,"\u5F53\u524D\u5DF2\u7ECF\u53D1\u5E03",jt==null?void 0:jt.map(ci=>ci.name).slice(0,2).join("\u3001"),"\u7B49\u5171",li,"\u4E2A\u73ED\u7EA7")};return(0,Le.useEffect)(()=>{on({type:"classroomList/getAllCourseGroup",payload:sr({},Mi)})},[]),(0,Le.useEffect)(()=>{pn()},[Mn.name,Mi.unified_setting]),(0,Le.useEffect)(()=>{Mn.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&pn()},[Mn.actionTabs.key]),tr.createElement("section",null,tr.createElement(ke.Z,{align:"middle",wrap:!1,gutter:20,style:{background:"rgba(1,168,154,0.2)",margin:0,height:"40px"}},tr.createElement(me.Z,{flex:1,style:{padding:0}},tr.createElement("div",{style:{display:"flex",flexWrap:"nowrap",gap:"3px"}},Si.map((jt,ur)=>tr.createElement("div",{key:ur,className:`${ti.TabMenuItem} ${jt.id==Mi.unified_setting?ti.TabMenuItemActive:""}`,onClick:()=>{Sa(Un(sr({},Mi),{unified_setting:jt.id}))}}," ",jt.title,tr.createElement("span",{className:"ml5"},jt.num))))),(0,nt.GJ)()&&tr.createElement(me.Z,{className:Ai.Z.threeBtnSty},tr.createElement(Ne.ZP,{className:"ml20 mr10",type:"primary",icon:tr.createElement("i",{className:"iconfont icon-tianjiadaohang"}),onClick:()=>{if(ta!==-1){ge.ZP.warning("\u8BF7\u5148\u4FDD\u5B58\u7F16\u8F91");return}na({name:"",description:"",unified_setting:!0}),_i([]),Di(!0)}},"\u65B0\u5EFA\u901A\u77E5"))),Pi&&tr.createElement(rt.default,{className:"mb10",style:{padding:"20px"},initialValues:{unified_setting:!0},form:$r,size:"middle",colon:!1,onFinish:jt=>qe(void 0,null,function*(){(yield Ki(sr(sr({},Mi),jt))).status===0&&((0,dn.L9)(["\u6559\u5B66\u8BFE\u5802","\u516C\u544A\u680F","\u53D1\u5E03\u516C\u544A"]),ge.ZP.success("\u53D1\u5E03\u6210\u529F"),Di(!1),pn(),$r.resetFields(),on({type:"classroomList/getClassroomLeftMenus",payload:{id:Cn.coursesId}}))})},tr.createElement(rt.default.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},tr.createElement(xe.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u6807\u9898\uFF0C\u6700\u591A60\u4E2A\u5B57\u7B26"})),tr.createElement(rt.default.Item,{name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},tr.createElement(dt.Z,{watch:!0,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26"})),tr.createElement(ke.Z,{wrap:!1},tr.createElement(me.Z,null,tr.createElement(rt.default.Item,{name:"unified_setting",label:tr.createElement("div",{style:{color:"#fff"}},"\u53D1\u5E03\u65B9\u5F0F")},tr.createElement(De.ZP.Group,null,tr.createElement(De.ZP,{style:{color:"#fff"},value:!0},"\u7EDF\u4E00\u53D1\u5E03"),tr.createElement(De.ZP,{style:{color:"#fff"},value:!1,disabled:((Wr=vr==null?void 0:vr.course_groups)==null?void 0:Wr.length)===0},"\u5206\u73ED\u53D1\u5E03")))),((Lr=vr==null?void 0:vr.course_groups)==null?void 0:Lr.length)<=0?tr.createElement(me.Z,null,tr.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"')):!Ft&&tr.createElement(me.Z,null,tr.createElement(rt.default.Item,{name:"group_ids",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u81F3\u5C11\u4E00\u4E2A\u73ED\u7EA7"}]},tr.createElement(ot.default,{style:{width:314},mode:"multiple",placeholder:"\u8BF7\u9009\u62E9\u73ED\u7EA7",options:Pt})))),tr.createElement(ke.Z,{wrap:!1,align:"middle",justify:"end",gutter:20,className:ti.actionButton,style:{marginTop:0}},tr.createElement(me.Z,null,tr.createElement(Ne.ZP,{type:"primary",onClick:()=>{Di(!1),$r.resetFields()},ghost:!0},"\u53D6\u6D88")),tr.createElement(me.Z,null,tr.createElement(Ne.ZP,{type:"primary",htmlType:"submit",loading:qi},"\u63D0\u4EA4")))),tr.createElement(mt.Z,{loading:!!Sn["classroomList/getAnnouncementList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},Er.informs_count===0&&!Pi&&tr.createElement("div",{className:"pb30"},tr.createElement(xt.Z,null)),(qr=Er==null?void 0:Er.informs)==null?void 0:qr.map(function(jt,ur){var li,ci,Oi,ra;return tr.createElement("div",{className:`mb10 ${ti.DetailDomItem}`,key:ur},ta===ur&&tr.createElement("div",{className:"p30"},tr.createElement(xe.default,{max:60,onChange:hr=>{di.name=hr.target.value,na(sr({},di))},suffix:tr.createElement("span",null,di.name.length,"/60"),defaultValue:jt.name,size:"middle",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u6807\u9898\uFF0C\u6700\u591A60\u4E2A\u5B57\u7B26"}),tr.createElement("div",{className:"mt15"},tr.createElement(dt.Z,{watch:!0,onChange:hr=>{di.description=hr},placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26",defaultValue:jt.description})),tr.createElement("div",null,tr.createElement("label",{className:"mr20"},"\u53D1\u5E03\u65B9\u5F0F"),tr.createElement(De.ZP.Group,{defaultValue:jt.unified_setting,onChange:hr=>{di.unified_setting=hr.target.value,na(sr({},di))}},tr.createElement(De.ZP,{value:!0},"\u7EDF\u4E00\u53D1\u5E03"),tr.createElement(De.ZP,{value:!1,disabled:((li=vr==null?void 0:vr.course_groups)==null?void 0:li.length)===0},"\u5206\u73ED\u53D1\u5E03")),di.unified_setting===!1&&tr.createElement(ot.default,{defaultValue:jt==null?void 0:jt.course_groups.map(hr=>hr.id),style:{width:314},mode:"multiple",placeholder:"\u8BF7\u9009\u62E9\u73ED\u7EA7",filterOption:(hr,Qi)=>Qi.label.indexOf(hr.toLowerCase())>=0,onChange:hr=>_i(hr)},(vr==null?void 0:vr.manage_all_group)&&((ci=jt==null?void 0:jt.course_groups)==null?void 0:ci.findIndex(hr=>hr.name=="\u672A\u5206\u73ED"))<0&&tr.createElement(ot.default.Option,{value:0,label:"\u672A\u5206\u73ED"},"\u672A\u5206\u73ED"),(ra=[...(Oi=jt==null?void 0:jt.course_groups)==null?void 0:Oi.map(hr=>(vr!=null&&vr.manage_all_group?hr.name!="\u672A\u5206\u73ED"&&(hr.disabled=!0):hr.disabled=!0,hr)),...vr==null?void 0:vr.course_groups])==null?void 0:ra.map(function(hr,Qi){return tr.createElement(ot.default.Option,{value:hr==null?void 0:hr.id,label:hr==null?void 0:hr.name,disabled:hr==null?void 0:hr.disabled,style:(hr==null?void 0:hr.disabled)&&{display:"none"}},hr==null?void 0:hr.name)}))),tr.createElement("div",{className:`${ti.actionButton} ${Ai.Z.threeBtnSty}`},tr.createElement(Ne.ZP,{type:"primary",onClick:()=>Hi(-1),ghost:!0,size:"middle"},"\u53D6\u6D88"),tr.createElement(Ne.ZP,{type:"primary",onClick:()=>Gr(jt),size:"middle"},"\u63D0\u4EA4"))),ta!==ur&&tr.createElement(tr.Fragment,null,tr.createElement("div",{style:{borderBottom:"1px dashed #DCDCDC",padding:"13px 20px",color:"#fff"}},tr.createElement(ke.Z,{wrap:!1,align:"middle",gutter:20,style:{height:"58px"}},!(0,nt.dE)()&&tr.createElement(me.Z,null,jt.unified_setting?tr.createElement("div",{className:`${ti.TitleTip} ${ti.TitleTipAll}`},"\u7EDF\u4E00\u53D1\u5E03"):tr.createElement(Ee.Z,{title:oi(jt.course_groups)},tr.createElement("div",{className:`${ti.TitleTip} ${ti.TitleTipNotAll}`},"\u5206\u73ED\u53D1\u5E03"))),tr.createElement(me.Z,{flex:1},tr.createElement(Ee.Z,{title:jt.name,placement:"topLeft"},tr.createElement("span",{className:"multi_ellipsis1 blod font20"},jt.name))),!Pi&&!Mi.unified_setting&&(0,nt.GJ)()&&tr.createElement(me.Z,null,cr(jt,ur)))),tr.createElement("div",{onClick:Xr,className:ti.info},tr.createElement(pt.Z,{value:jt.description,style:{color:"#fff"}}))))})),tr.createElement(Dr,null),tr.createElement(zt.Z,null))};var Zt=(0,_e.connect)(({classroomList:Mn,announcement:Sn,loading:on,globalSetting:yr})=>({classroomList:Mn,globalSetting:yr,announcement:Sn,loading:on.effects}))(wt),an={flex_box_center:"flex_box_center___hkSiS",flex_space_between:"flex_space_between___oTSpD",flex_box_vertical_center:"flex_box_vertical_center___BWhra",flex_box_center_end:"flex_box_center_end___hYPOk",flex_box_column:"flex_box_column___Gtet8",bg:"bg___kC6GY",containerTitle:"containerTitle___viXsQ",titleRightMenu:"titleRightMenu___uPdNX",containerDesc:"containerDesc___e17KP",listItem:"listItem___VLyCT",info:"info___WcBsl",actionButton:"actionButton___j1EZ1",TabMenuItem:"TabMenuItem___txizW",TabMenuItemActive:"TabMenuItemActive___HbGsP",DetailDomItemEdit:"DetailDomItemEdit___cEBbg",DetailDomItem:"DetailDomItem___fVd9F",flexBox:"flexBox___MDEAP",TitleTip:"TitleTip___Cjdn0",TitleTipAll:"TitleTipAll___xAzF8",TitleTipNotAll:"TitleTipNotAll___yqBlV","primary-hover":"primary-hover___N4PFp"},ze=se(67294),Ct=Object.defineProperty,tn=Object.defineProperties,Kt=Object.getOwnPropertyDescriptors,hn=Object.getOwnPropertySymbols,gn=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,_r=(Mn,Sn,on)=>Sn in Mn?Ct(Mn,Sn,{enumerable:!0,configurable:!0,writable:!0,value:on}):Mn[Sn]=on,lr=(Mn,Sn)=>{for(var on in Sn||(Sn={}))gn.call(Sn,on)&&_r(Mn,on,Sn[on]);if(hn)for(var on of hn(Sn))Xn.call(Sn,on)&&_r(Mn,on,Sn[on]);return Mn},mr=(Mn,Sn)=>tn(Mn,Kt(Sn)),Or=(Mn,Sn,on)=>new Promise((yr,Wr)=>{var Lr=Er=>{try{Cn(on.next(Er))}catch(vr){Wr(vr)}},qr=Er=>{try{Cn(on.throw(Er))}catch(vr){Wr(vr)}},Cn=Er=>Er.done?yr(Er.value):Promise.resolve(Er.value).then(Lr,qr);Cn((on=on.apply(Mn,Sn)).next())});const Rr=({classroomList:Mn,loading:Sn,dispatch:on})=>{var yr,Wr,Lr,qr;const Cn=(0,_e.useParams)(),{detailAnnouncementList:Er,allCourseGroups:vr}=Mn,[ta,Hi]=(0,Le.useState)(-1),[Pi,Di]=(0,Le.useState)(!1),[,qi,Ki]=(0,Wn.U)(Lt.An,{}),[di,na]=(0,Le.useState)({name:"",description:"",unified_setting:!0}),[aa,_i]=(0,Le.useState)([]),[Mi,Sa]=(0,Le.useState)(mr(lr({},Cn),{id:Cn.coursesId,unified_setting:""})),Si=[{title:"\u5168\u90E8\u901A\u77E5",id:"",num:Er.all_count,isShow:!0},{title:"\u5206\u73ED\u53D1\u5E03",id:"0",num:Er.not_unified_setting_count,isShow:!0},{title:"\u7EDF\u4E00\u53D1\u5E03",id:"1",num:Er.unified_setting_count,isShow:!0}].filter(jt=>jt.isShow),[$r]=rt.default.useForm(),Ft=rt.default.useWatch("unified_setting",$r),Pt=[{value:0,label:"\u672A\u5206\u73ED",isShow:vr==null?void 0:vr.manage_all_group},...((yr=vr==null?void 0:vr.course_groups)==null?void 0:yr.map(jt=>({value:jt.id,label:jt.name,isShow:!0})))||[]].filter(jt=>jt.isShow).map(jt=>(delete jt.isShow,jt)),pn=(jt=Mi)=>{on({type:"classroomList/getAnnouncementList",payload:lr({},jt)}),window.scrollTo({top:0,behavior:"smooth"})},Pn=(jt,ur)=>Or(void 0,null,function*(){switch(ur){case"up":yield on({type:"announcement/informUp",payload:lr({inform_id:jt.id},Mi)});break;case"down":yield on({type:"announcement/informDown",payload:lr({inform_id:jt.id},Mi)});break;case"del":on({type:"classroomList/setActionTabs",payload:{key:"\u5220\u9664",selectArrs:jt.id}});break;case"edit":if(ta!==-1){ge.ZP.warning("\u8BF7\u5148\u4FDD\u5B58\u7F16\u8F91");return}na(mr(lr({},di),{name:jt.name,description:jt.description,unified_setting:jt.unified_setting})),_i([...jt.course_groups]),Hi(jt.key);break}(ur==="down"||ur==="up")&&pn()}),cr=(jt,ur)=>(jt.key=ur,ze.createElement("section",{className:an.DetailDomItemEdit},ze.createElement(ke.Z,{wrap:!1,align:"middle",gutter:20},ur!==0&&ze.createElement(Ee.Z,{placement:"bottom",title:"\u4E0A\u79FB"},ze.createElement("span",{className:an.flexBox,style:{marginRight:"16px"},onClick:()=>{Pn(jt,"up")}},ze.createElement("i",{className:"iconfont icon-shangyi2"}),ze.createElement("div",null,"\u4E0A\u79FB"))),ur<Er.informs.length-1&&ze.createElement(Ee.Z,{placement:"bottom",title:"\u4E0B\u79FB"},ze.createElement("span",{className:an.flexBox,style:{marginRight:"16px"},onClick:()=>{Pn(jt,"down")}},ze.createElement("i",{className:"iconfont icon-xiayi2"}),ze.createElement("div",null,"\u4E0B\u79FB"))),ze.createElement(Ee.Z,{placement:"bottom",title:"\u5220\u9664"},ze.createElement("span",{className:`${an.flexBox} delete-hover`,style:{marginRight:"16px"},onClick:()=>{Pn(jt,"del")}},ze.createElement("i",{className:"iconfont icon-shanchu"}),ze.createElement("div",null,"\u5220\u9664"))),ze.createElement(Ee.Z,{placement:"bottom",title:"\u7F16\u8F91"},ze.createElement("span",{className:`${an.flexBox}`,style:{marginRight:"16px"},onClick:()=>{Pn(jt,"edit")}},ze.createElement("i",{className:"iconfont icon-bianjishijuan3x"}),ze.createElement("div",null,"\u7F16\u8F91")))))),Gr=jt=>Or(void 0,null,function*(){if((aa==null?void 0:aa.length)===0&&!(di!=null&&di.unified_setting)){ge.ZP.warning("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u73ED\u7EA7");return}di.name===""?ge.ZP.error("\u8BF7\u8F93\u5165\u6807\u9898"):di.description===""?ge.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):(yield(0,Lt.my)(mr(lr(lr({},Mi),di),{inform_id:jt.id,group_ids:aa}))).status===0&&(ge.ZP.success("\u66F4\u65B0\u6210\u529F"),Hi(-1),pn())}),Xr=jt=>{let{nodeName:ur,src:li}=jt.target;ur==="IMG"&&bn.Z.publish("preview-image",li)},oi=jt=>{var ur;const li=(ur=jt==null?void 0:jt.map(ci=>ci.name))==null?void 0:ur.length;return(jt==null?void 0:jt.length)<=2?ze.createElement("span",null,"\u5F53\u524D\u5DF2\u7ECF\u53D1\u5E03",jt==null?void 0:jt.map(ci=>ci.name).join("\u3001"),"\u5171",li,"\u4E2A\u73ED\u7EA7"):ze.createElement("span",null,"\u5F53\u524D\u5DF2\u7ECF\u53D1\u5E03",jt==null?void 0:jt.map(ci=>ci.name).slice(0,2).join("\u3001"),"\u7B49\u5171",li,"\u4E2A\u73ED\u7EA7")};return(0,Le.useEffect)(()=>{on({type:"classroomList/getAllCourseGroup",payload:lr({},Mi)})},[]),(0,Le.useEffect)(()=>{pn()},[Mn.name,Mi.unified_setting]),(0,Le.useEffect)(()=>{Mn.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&pn()},[Mn.actionTabs.key]),ze.createElement("section",null,ze.createElement(ke.Z,{align:"middle",wrap:!1,gutter:20},ze.createElement(me.Z,{flex:1},ze.createElement("div",{style:{display:"flex",flexWrap:"nowrap",gap:"3px"}},Si.map((jt,ur)=>ze.createElement("div",{key:ur,className:`${an.TabMenuItem} ${jt.id==Mi.unified_setting?an.TabMenuItemActive:""}`,onClick:()=>{Sa(mr(lr({},Mi),{unified_setting:jt.id}))}}," ",jt.title,ze.createElement("span",{className:"ml20"},jt.num))))),(0,nt.GJ)()&&ze.createElement(me.Z,null,ze.createElement(Ne.ZP,{className:"ml20 mr20",style:{borderRadius:"4px",height:30,padding:"0 8px"},type:"primary",icon:ze.createElement("i",{className:"iconfont icon-tianjia4"}),onClick:()=>{if(ta!==-1){ge.ZP.warning("\u8BF7\u5148\u4FDD\u5B58\u7F16\u8F91");return}na({name:"",description:"",unified_setting:!0}),_i([]),Di(!0)}},"\u65B0\u5EFA\u901A\u77E5"))),Pi&&ze.createElement(rt.default,{className:"bg-white mb10",style:{padding:"20px"},initialValues:{unified_setting:!0},form:$r,size:"middle",colon:!1,onFinish:jt=>Or(void 0,null,function*(){(yield Ki(lr(lr({},Mi),jt))).status===0&&((0,dn.L9)(["\u6559\u5B66\u8BFE\u5802","\u516C\u544A\u680F","\u53D1\u5E03\u516C\u544A"]),ge.ZP.success("\u53D1\u5E03\u6210\u529F"),Di(!1),pn(),$r.resetFields(),on({type:"classroomList/getClassroomLeftMenus",payload:{id:Cn.coursesId}}))})},ze.createElement(rt.default.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ze.createElement(xe.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u6807\u9898\uFF0C\u6700\u591A60\u4E2A\u5B57\u7B26"})),ze.createElement(rt.default.Item,{name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},ze.createElement(dt.Z,{watch:!0,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26"})),ze.createElement(ke.Z,{wrap:!1},ze.createElement(me.Z,null,ze.createElement(rt.default.Item,{name:"unified_setting",label:"\u53D1\u5E03\u65B9\u5F0F"},ze.createElement(De.ZP.Group,null,ze.createElement(De.ZP,{value:!0},"\u7EDF\u4E00\u53D1\u5E03"),ze.createElement(De.ZP,{value:!1,disabled:((Wr=vr==null?void 0:vr.course_groups)==null?void 0:Wr.length)===0},"\u5206\u73ED\u53D1\u5E03")))),((Lr=vr==null?void 0:vr.course_groups)==null?void 0:Lr.length)<=0?ze.createElement(me.Z,null,ze.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"')):!Ft&&ze.createElement(me.Z,null,ze.createElement(rt.default.Item,{name:"group_ids",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u81F3\u5C11\u4E00\u4E2A\u73ED\u7EA7"}]},ze.createElement(ot.default,{style:{width:314},mode:"multiple",placeholder:"\u8BF7\u9009\u62E9\u73ED\u7EA7",options:Pt})))),ze.createElement(ke.Z,{wrap:!1,align:"middle",justify:"end",gutter:20,className:an.actionButton,style:{marginTop:0}},ze.createElement(me.Z,null,ze.createElement(Ne.ZP,{type:"primary",onClick:()=>{Di(!1),$r.resetFields()},ghost:!0},"\u53D6\u6D88")),ze.createElement(me.Z,null,ze.createElement(Ne.ZP,{type:"primary",htmlType:"submit",loading:qi},"\u63D0\u4EA4")))),ze.createElement(mt.Z,{loading:!!Sn["classroomList/getAnnouncementList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},Er.informs_count===0&&!Pi&&ze.createElement("div",{className:"pb30"},ze.createElement(xt.Z,null)),(qr=Er==null?void 0:Er.informs)==null?void 0:qr.map(function(jt,ur){var li,ci,Oi,ra;return ze.createElement("div",{className:`bg-white mb10 ${an.DetailDomItem}`,key:ur},ta===ur&&ze.createElement("div",{className:"p30"},ze.createElement(xe.default,{max:60,onChange:hr=>{di.name=hr.target.value,na(lr({},di))},suffix:ze.createElement("span",null,di.name.length,"/60"),defaultValue:jt.name,size:"middle",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u6807\u9898\uFF0C\u6700\u591A60\u4E2A\u5B57\u7B26"}),ze.createElement("div",{className:"mt15"},ze.createElement(dt.Z,{watch:!0,onChange:hr=>{di.description=hr},placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26",defaultValue:jt.description})),ze.createElement("div",null,ze.createElement("label",{className:"mr20"},"\u53D1\u5E03\u65B9\u5F0F"),ze.createElement(De.ZP.Group,{defaultValue:jt.unified_setting,onChange:hr=>{di.unified_setting=hr.target.value,na(lr({},di))}},ze.createElement(De.ZP,{value:!0},"\u7EDF\u4E00\u53D1\u5E03"),ze.createElement(De.ZP,{value:!1,disabled:((li=vr==null?void 0:vr.course_groups)==null?void 0:li.length)===0},"\u5206\u73ED\u53D1\u5E03")),di.unified_setting===!1&&ze.createElement(ot.default,{defaultValue:jt==null?void 0:jt.course_groups.map(hr=>hr.id),style:{width:314},mode:"multiple",placeholder:"\u8BF7\u9009\u62E9\u73ED\u7EA7",filterOption:(hr,Qi)=>Qi.label.indexOf(hr.toLowerCase())>=0,onChange:hr=>_i(hr)},(vr==null?void 0:vr.manage_all_group)&&((ci=jt==null?void 0:jt.course_groups)==null?void 0:ci.findIndex(hr=>hr.name=="\u672A\u5206\u73ED"))<0&&ze.createElement(ot.default.Option,{value:0,label:"\u672A\u5206\u73ED"},"\u672A\u5206\u73ED"),(ra=[...(Oi=jt==null?void 0:jt.course_groups)==null?void 0:Oi.map(hr=>(vr!=null&&vr.manage_all_group?hr.name!="\u672A\u5206\u73ED"&&(hr.disabled=!0):hr.disabled=!0,hr)),...vr==null?void 0:vr.course_groups])==null?void 0:ra.map(function(hr,Qi){return ze.createElement(ot.default.Option,{value:hr==null?void 0:hr.id,label:hr==null?void 0:hr.name,disabled:hr==null?void 0:hr.disabled,style:(hr==null?void 0:hr.disabled)&&{display:"none"}},hr==null?void 0:hr.name)}))),ze.createElement("div",{className:an.actionButton},ze.createElement(Ne.ZP,{type:"primary",onClick:()=>Hi(-1),ghost:!0,size:"middle"},"\u53D6\u6D88"),ze.createElement(Ne.ZP,{type:"primary",onClick:()=>Gr(jt),size:"middle"},"\u63D0\u4EA4"))),ta!==ur&&ze.createElement(ze.Fragment,null,ze.createElement("div",{style:{borderBottom:"1px dashed #DCDCDC",padding:"13px 20px"}},ze.createElement(ke.Z,{wrap:!1,align:"middle",gutter:20,style:{height:"58px"}},!(0,nt.dE)()&&ze.createElement(me.Z,null,jt.unified_setting?ze.createElement("div",{className:`${an.TitleTip} ${an.TitleTipAll}`},"\u7EDF\u4E00\u53D1\u5E03"):ze.createElement(Ee.Z,{title:oi(jt.course_groups)},ze.createElement("div",{className:`${an.TitleTip} ${an.TitleTipNotAll}`},"\u5206\u73ED\u53D1\u5E03"))),ze.createElement(me.Z,{flex:1},ze.createElement(Ee.Z,{title:jt.name,placement:"topLeft"},ze.createElement("span",{className:"multi_ellipsis1 c-333 blod font20"},jt.name))),!Pi&&!Mi.unified_setting&&(0,nt.GJ)()&&ze.createElement(me.Z,null,cr(jt,ur)))),ze.createElement("div",{onClick:Xr,className:an.info},ze.createElement(pt.Z,{value:jt.description}))))})),ze.createElement(St,null),ze.createElement(zt.Z,null))};var Zr=(0,_e.connect)(({classroomList:Mn,announcement:Sn,loading:on,globalSetting:yr})=>({classroomList:Mn,globalSetting:yr,announcement:Sn,loading:on.effects}))(Rr);const Kn=({globalSetting:Mn})=>{var Sn;switch(Number((Sn=Mn==null?void 0:Mn.setting)==null?void 0:Sn.theme)){case ae.Fy.THEMEONE:return Le.createElement(mn,null);case ae.Fy.THEMETWO:return Le.createElement(En,null);case ae.Fy.THEMETHREE:return Le.createElement(Zt,null);case ae.Fy.DEFAULT:default:return Le.createElement(Zr,null)}};var fr=(0,_e.connect)(({globalSetting:Mn})=>({globalSetting:Mn}))(Kn)},9343:function(yn,fn,se){"use strict";se.d(fn,{U:function(){return me}});var ae=se(67294),Le=Object.defineProperty,_e=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ke=(De,ot,Ne)=>ot in De?Le(De,ot,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):De[ot]=Ne,Ee=(De,ot)=>{for(var Ne in ot||(ot={}))rt.call(ot,Ne)&&ke(De,Ne,ot[Ne]);if(_e)for(var Ne of _e(ot))ge.call(ot,Ne)&&ke(De,Ne,ot[Ne]);return De},xe=(De,ot,Ne)=>new Promise((mt,dt)=>{var pt=gt=>{try{Be(Ne.next(gt))}catch(nn){dt(nn)}},Je=gt=>{try{Be(Ne.throw(gt))}catch(nn){dt(nn)}},Be=gt=>gt.done?mt(gt.value):Promise.resolve(gt.value).then(pt,Je);Be((Ne=Ne.apply(De,ot)).next())});function me(De,ot){const[Ne,mt]=(0,ae.useState)(ot),[dt,pt]=(0,ae.useState)(!1),[Je,Be]=(0,ae.useState)();return[Ne,dt,(nn,at=!1)=>xe(this,null,function*(){const vt=at?ot:Ee(Ee({},Ne),nn);pt(!0),mt(vt);const Ce=yield De(vt);return pt(!1),Be(Ce),Ce}),Je,Be]}},57838:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Le}});var ae=se(67294);function Le(){const[,_e]=ae.useReducer(rt=>rt+1,0);return _e}},9708:function(yn,fn,se){"use strict";se.d(fn,{F:function(){return ge},Z:function(){return rt}});var ae=se(94184),Le=se.n(ae);const _e=null;function rt(ke,Ee,xe){return Le()({[`${ke}-status-success`]:Ee==="success",[`${ke}-status-warning`]:Ee==="warning",[`${ke}-status-error`]:Ee==="error",[`${ke}-status-validating`]:Ee==="validating",[`${ke}-has-feedback`]:xe})}const ge=(ke,Ee)=>Ee||ke},88258:function(yn,fn,se){"use strict";var ae=se(67294),Le=se(53124),_e=se(32983);const rt=ge=>{const{componentName:ke}=ge,{getPrefixCls:Ee}=(0,ae.useContext)(Le.E_),xe=Ee("empty");switch(ke){case"Table":case"List":return ae.createElement(_e.Z,{image:_e.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ae.createElement(_e.Z,{image:_e.Z.PRESENTED_IMAGE_SIMPLE,className:`${xe}-small`});default:return ae.createElement(_e.Z,null)}};fn.Z=rt},96074:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Ne}});var ae=se(94184),Le=se.n(ae),_e=se(67294),rt=se(53124),ge=se(14747),ke=se(67968),Ee=se(45503);const xe=mt=>{const{componentCls:dt,sizePaddingEdgeHorizontal:pt,colorSplit:Je,lineWidth:Be,textPaddingInline:gt,orientationMargin:nn,verticalMarginInline:at}=mt;return{[dt]:Object.assign(Object.assign({},(0,ge.Wf)(mt)),{borderBlockStart:`${Be}px solid ${Je}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:at,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Be}px solid ${Je}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${mt.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${dt}-with-text`]:{display:"flex",alignItems:"center",margin:`${mt.dividerHorizontalWithTextGutterMargin}px 0`,color:mt.colorTextHeading,fontWeight:500,fontSize:mt.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Je}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Be}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${dt}-with-text-left`]:{"&::before":{width:`${nn*100}%`},"&::after":{width:`${100-nn*100}%`}},[`&-horizontal${dt}-with-text-right`]:{"&::before":{width:`${100-nn*100}%`},"&::after":{width:`${nn*100}%`}},[`${dt}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:gt},"&-dashed":{background:"none",borderColor:Je,borderStyle:"dashed",borderWidth:`${Be}px 0 0`},[`&-horizontal${dt}-with-text${dt}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${dt}-dashed`]:{borderInlineStartWidth:Be,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${dt}-with-text`]:{color:mt.colorText,fontWeight:"normal",fontSize:mt.fontSize},[`&-horizontal${dt}-with-text-left${dt}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${dt}-inner-text`]:{paddingInlineStart:pt}},[`&-horizontal${dt}-with-text-right${dt}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${dt}-inner-text`]:{paddingInlineEnd:pt}}})}};var me=(0,ke.Z)("Divider",mt=>{const dt=(0,Ee.TS)(mt,{dividerHorizontalWithTextGutterMargin:mt.margin,dividerHorizontalGutterMargin:mt.marginLG,sizePaddingEdgeHorizontal:0});return[xe(dt)]},mt=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:mt.marginXS})),De=function(mt,dt){var pt={};for(var Je in mt)Object.prototype.hasOwnProperty.call(mt,Je)&&dt.indexOf(Je)<0&&(pt[Je]=mt[Je]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Je=Object.getOwnPropertySymbols(mt);Be<Je.length;Be++)dt.indexOf(Je[Be])<0&&Object.prototype.propertyIsEnumerable.call(mt,Je[Be])&&(pt[Je[Be]]=mt[Je[Be]]);return pt},Ne=mt=>{const{getPrefixCls:dt,direction:pt,divider:Je}=_e.useContext(rt.E_),{prefixCls:Be,type:gt="horizontal",orientation:nn="center",orientationMargin:at,className:vt,rootClassName:Ce,children:Ae,dashed:Ye,plain:Ve,style:At}=mt,xt=De(mt,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Lt=dt("divider",Be),[nt,qt]=me(Lt),zt=nn.length>0?`-${nn}`:nn,bn=!!Ae,dn=nn==="left"&&at!=null,Wn=nn==="right"&&at!=null,rr=Le()(Lt,Je==null?void 0:Je.className,qt,`${Lt}-${gt}`,{[`${Lt}-with-text`]:bn,[`${Lt}-with-text${zt}`]:bn,[`${Lt}-dashed`]:!!Ye,[`${Lt}-plain`]:!!Ve,[`${Lt}-rtl`]:pt==="rtl",[`${Lt}-no-default-orientation-margin-left`]:dn,[`${Lt}-no-default-orientation-margin-right`]:Wn},vt,Ce),ln=_e.useMemo(()=>typeof at=="number"?at:/^\d+$/.test(at)?Number(at):at,[at]),$e=Object.assign(Object.assign({},dn&&{marginLeft:ln}),Wn&&{marginRight:ln});return nt(_e.createElement("div",Object.assign({className:rr,style:Object.assign(Object.assign({},Je==null?void 0:Je.style),At)},xt,{role:"separator"}),Ae&>!=="vertical"&&_e.createElement("span",{className:`${Lt}-inner-text`,style:$e},Ae)))}},72565:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return $r}});var ae=se(94184),Le=se.n(ae),_e=se(1413),rt=se(97685),ge=se(67294),ke=se(73935);function Ee(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var xe={};function me(Ft,Pt){}function De(Ft,Pt){}function ot(){xe={}}function Ne(Ft,Pt,pn){!Pt&&!xe[pn]&&(Ft(!1,pn),xe[pn]=!0)}function mt(Ft,Pt){Ne(me,Ft,Pt)}function dt(Ft,Pt){Ne(De,Ft,Pt)}var pt=null,Je=se(71002),Be=se(18459);function gt(Ft,Pt,pn){var Pn=ge.useRef({});return(!("value"in Pn.current)||pn(Pn.current.condition,Pt))&&(Pn.current.value=Ft(),Pn.current.condition=Pt),Pn.current.value}function nn(Ft,Pt){typeof Ft=="function"?Ft(Pt):(0,Je.Z)(Ft)==="object"&&Ft&&"current"in Ft&&(Ft.current=Pt)}function at(){for(var Ft=arguments.length,Pt=new Array(Ft),pn=0;pn<Ft;pn++)Pt[pn]=arguments[pn];var Pn=Pt.filter(function(cr){return cr});return Pn.length<=1?Pn[0]:function(cr){Pt.forEach(function(Gr){nn(Gr,cr)})}}function vt(){for(var Ft=arguments.length,Pt=new Array(Ft),pn=0;pn<Ft;pn++)Pt[pn]=arguments[pn];return gt(function(){return at.apply(void 0,Pt)},Pt,function(Pn,cr){return Pn.length===cr.length&&Pn.every(function(Gr,Xr){return Gr===cr[Xr]})})}function Ce(Ft){var Pt,pn,Pn=(0,Be.isMemo)(Ft)?Ft.type.type:Ft.type;return!(typeof Pn=="function"&&!((Pt=Pn.prototype)!==null&&Pt!==void 0&&Pt.render)||typeof Ft=="function"&&!((pn=Ft.prototype)!==null&&pn!==void 0&&pn.render))}var Ae=ge.createContext(null),Ye=Ae,Ve=se(74902),At=Ee()?ge.useLayoutEffect:ge.useEffect,xt=At,Lt=function(Pt,pn){var Pn=React.useRef(!0);At(function(){if(!Pn.current)return Pt()},pn),At(function(){return Pn.current=!1,function(){Pn.current=!0}},[])},nt=[];function qt(Ft,Pt){var pn=ge.useState(function(){if(!Ee())return null;var hr=document.createElement("div");return hr}),Pn=(0,rt.Z)(pn,1),cr=Pn[0],Gr=ge.useRef(!1),Xr=ge.useContext(Ye),oi=ge.useState(nt),jt=(0,rt.Z)(oi,2),ur=jt[0],li=jt[1],ci=Xr||(Gr.current?void 0:function(hr){li(function(Qi){var Re=[hr].concat((0,Ve.Z)(Qi));return Re})});function Oi(){cr.parentElement||document.body.appendChild(cr),Gr.current=!0}function ra(){var hr;(hr=cr.parentElement)===null||hr===void 0||hr.removeChild(cr),Gr.current=!1}return xt(function(){return Ft?Xr?Xr(Oi):Oi():ra(),ra},[Ft]),xt(function(){ur.length&&(ur.forEach(function(hr){return hr()}),li(nt))},[ur]),[cr,ci]}function zt(Ft,Pt){if(!Ft)return!1;if(Ft.contains)return Ft.contains(Pt);for(var pn=Pt;pn;){if(pn===Ft)return!0;pn=pn.parentNode}return!1}var bn="data-rc-order",dn="rc-util-key",Wn=new Map;function rr(){var Ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pt=Ft.mark;return Pt?Pt.startsWith("data-")?Pt:"data-".concat(Pt):dn}function ln(Ft){if(Ft.attachTo)return Ft.attachTo;var Pt=document.querySelector("head");return Pt||document.body}function $e(Ft){return Ft==="queue"?"prependQueue":Ft?"prepend":"append"}function Se(Ft){return Array.from((Wn.get(Ft)||Ft).children).filter(function(Pt){return Pt.tagName==="STYLE"})}function Bt(Ft){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ee())return null;var pn=Pt.csp,Pn=Pt.prepend,cr=document.createElement("style");cr.setAttribute(bn,$e(Pn)),pn!=null&&pn.nonce&&(cr.nonce=pn==null?void 0:pn.nonce),cr.innerHTML=Ft;var Gr=ln(Pt),Xr=Gr.firstChild;if(Pn){if(Pn==="queue"){var oi=Se(Gr).filter(function(jt){return["prepend","prependQueue"].includes(jt.getAttribute(bn))});if(oi.length)return Gr.insertBefore(cr,oi[oi.length-1].nextSibling),cr}Gr.insertBefore(cr,Xr)}else Gr.appendChild(cr);return cr}function xn(Ft){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pn=ln(Pt);return Se(pn).find(function(Pn){return Pn.getAttribute(rr(Pt))===Ft})}function Xt(Ft){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pn=xn(Ft,Pt);if(pn){var Pn=ln(Pt);Pn.removeChild(pn)}}function ft(Ft,Pt){var pn=Wn.get(Ft);if(!pn||!zt(document,pn)){var Pn=Bt("",Pt),cr=Pn.parentNode;Wn.set(Ft,cr),Ft.removeChild(Pn)}}function yt(){Wn.clear()}function Gt(Ft,Pt){var pn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Pn=ln(pn);ft(Pn,pn);var cr=xn(Pt,pn);if(cr){var Gr,Xr;if((Gr=pn.csp)!==null&&Gr!==void 0&&Gr.nonce&&cr.nonce!==((Xr=pn.csp)===null||Xr===void 0?void 0:Xr.nonce)){var oi;cr.nonce=(oi=pn.csp)===null||oi===void 0?void 0:oi.nonce}return cr.innerHTML!==Ft&&(cr.innerHTML=Ft),cr}var jt=Bt(Ft,pn);return jt.setAttribute(rr(pn),Pt),jt}var qn;function Dn(Ft){if(typeof document=="undefined")return 0;if(Ft||qn===void 0){var Pt=document.createElement("div");Pt.style.width="100%",Pt.style.height="200px";var pn=document.createElement("div"),Pn=pn.style;Pn.position="absolute",Pn.top="0",Pn.left="0",Pn.pointerEvents="none",Pn.visibility="hidden",Pn.width="200px",Pn.height="150px",Pn.overflow="hidden",pn.appendChild(Pt),document.body.appendChild(pn);var cr=Pt.offsetWidth;pn.style.overflow="scroll";var Gr=Pt.offsetWidth;cr===Gr&&(Gr=pn.clientWidth),document.body.removeChild(pn),qn=cr-Gr}return qn}function Tt(Ft){var Pt=Ft.match(/^(.*)px$/),pn=Number(Pt==null?void 0:Pt[1]);return Number.isNaN(pn)?Dn():pn}function mn(Ft){if(typeof document=="undefined"||!Ft||!(Ft instanceof Element))return{width:0,height:0};var Pt=getComputedStyle(Ft,"::-webkit-scrollbar"),pn=Pt.width,Pn=Pt.height;return{width:Tt(pn),height:Tt(Pn)}}function Vn(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var kn="rc-util-locker-".concat(Date.now()),Pe=0;function fe(Ft){var Pt=!!Ft,pn=ge.useState(function(){return Pe+=1,"".concat(kn,"_").concat(Pe)}),Pn=(0,rt.Z)(pn,1),cr=Pn[0];xt(function(){if(Pt){var Gr=mn(document.body).width,Xr=Vn();Gt(`
|
|
|
html body {
|
|
|
overflow-y: hidden;
|
|
|
`.concat(Xr?"width: calc(100% - ".concat(Gr,"px);"):"",`
|
|
|
}`),cr)}else Xt(cr);return function(){Xt(cr)}},[Pt,cr])}var ce=!1;function he(Ft){return typeof Ft=="boolean"&&(ce=Ft),ce}var ue=function(Pt){return Pt===!1?!1:!Ee()||!Pt?null:typeof Pt=="string"?document.querySelector(Pt):typeof Pt=="function"?Pt():Pt},le=ge.forwardRef(function(Ft,Pt){var pn=Ft.open,Pn=Ft.autoLock,cr=Ft.getContainer,Gr=Ft.debug,Xr=Ft.autoDestroy,oi=Xr===void 0?!0:Xr,jt=Ft.children,ur=ge.useState(pn),li=(0,rt.Z)(ur,2),ci=li[0],Oi=li[1],ra=ci||pn;ge.useEffect(function(){(oi||pn)&&Oi(pn)},[pn,oi]);var hr=ge.useState(function(){return ue(cr)}),Qi=(0,rt.Z)(hr,2),Re=Qi[0],Ze=Qi[1];ge.useEffect(function(){var Gn=ue(cr);Ze(Gn!=null?Gn:null)});var je=qt(ra&&!Re,Gr),et=(0,rt.Z)(je,2),Et=et[0],It=et[1],Ut=Re!=null?Re:Et;fe(Pn&&pn&&Ee()&&(Ut===Et||Ut===document.body));var Ln=null;if(jt&&Ce(jt)&&Pt){var Nn=jt;Ln=Nn.ref}var Mr=vt(Ln,Pt);if(!ra||!Ee()||Re===void 0)return null;var Hr=Ut===!1||he(),xr=jt;return Pt&&(xr=ge.cloneElement(jt,{ref:Mr})),ge.createElement(Ye.Provider,{value:It},Hr?xr:(0,ke.createPortal)(xr,Ut))}),Me=le,Ge=Me;function St(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ht=St()?ge.useLayoutEffect:ge.useEffect,Yt=function(Pt,pn){var Pn=ge.useRef(!0);Ht(function(){return Pt(Pn.current)},pn),Ht(function(){return Pn.current=!1,function(){Pn.current=!0}},[])},Vt=function(Pt,pn){Yt(function(Pn){if(!Pn)return Pt()},pn)},sn=Yt,it=ge.createContext(null),Mt=ge.createContext({}),Ot=it,$t=se(4942),bt=se(87462),_n=se(62874),ct={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(Pt){var pn=Pt.keyCode;if(Pt.altKey&&!Pt.ctrlKey||Pt.metaKey||pn>=ct.F1&&pn<=ct.F12)return!1;switch(pn){case ct.ALT:case ct.CAPS_LOCK:case ct.CONTEXT_MENU:case ct.CTRL:case ct.DOWN:case ct.END:case ct.ESC:case ct.HOME:case ct.INSERT:case ct.LEFT:case ct.MAC_FF_META:case ct.META:case ct.NUMLOCK:case ct.NUM_CENTER:case ct.PAGE_DOWN:case ct.PAGE_UP:case ct.PAUSE:case ct.PRINT_SCREEN:case ct.RIGHT:case ct.SHIFT:case ct.UP:case ct.WIN_KEY:case ct.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Pt){if(Pt>=ct.ZERO&&Pt<=ct.NINE||Pt>=ct.NUM_ZERO&&Pt<=ct.NUM_MULTIPLY||Pt>=ct.A&&Pt<=ct.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Pt===0)return!0;switch(Pt){case ct.SPACE:case ct.QUESTION_MARK:case ct.NUM_PLUS:case ct.NUM_MINUS:case ct.NUM_PERIOD:case ct.NUM_DIVISION:case ct.SEMICOLON:case ct.DASH:case ct.EQUALS:case ct.COMMA:case ct.PERIOD:case ct.SLASH:case ct.APOSTROPHE:case ct.SINGLE_QUOTE:case ct.OPEN_SQUARE_BRACKET:case ct.BACKSLASH:case ct.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Dt=ct,En=`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`,wn=`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`,Bn="".concat(En," ").concat(wn).split(/[\s\n]+/),Qn="aria-",wr="data-";function br(Ft,Pt){return Ft.indexOf(Pt)===0}function Sr(Ft){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pn;Pt===!1?pn={aria:!0,data:!0,attr:!0}:Pt===!0?pn={aria:!0}:pn=(0,_e.Z)({},Pt);var Pn={};return Object.keys(Ft).forEach(function(cr){(pn.aria&&(cr==="role"||br(cr,Qn))||pn.data&&br(cr,wr)||pn.attr&&Bn.includes(cr))&&(Pn[cr]=Ft[cr])}),Pn}function Yn(Ft){var Pt=React.useRef();Pt.current=Ft;var pn=React.useCallback(function(){for(var Pn,cr=arguments.length,Gr=new Array(cr),Xr=0;Xr<cr;Xr++)Gr[Xr]=arguments[Xr];return(Pn=Pt.current)===null||Pn===void 0?void 0:Pn.call.apply(Pn,[Pt].concat(Gr))},[]);return pn}function ir(Ft){var Pt=React.useRef(!1),pn=React.useState(Ft),Pn=_slicedToArray(pn,2),cr=Pn[0],Gr=Pn[1];React.useEffect(function(){return Pt.current=!1,function(){Pt.current=!0}},[]);function Xr(oi,jt){jt&&Pt.current||Gr(oi)}return[cr,Xr]}function Dr(Ft){return Ft!==void 0}function ti(Ft,Pt){var pn=Pt||{},Pn=pn.defaultValue,cr=pn.value,Gr=pn.onChange,Xr=pn.postState,oi=useState(function(){return Dr(cr)?cr:Dr(Pn)?typeof Pn=="function"?Pn():Pn:typeof Ft=="function"?Ft():Ft}),jt=_slicedToArray(oi,2),ur=jt[0],li=jt[1],ci=cr!==void 0?cr:ur,Oi=Xr?Xr(ci):ci,ra=useEvent(Gr),hr=useState([ci]),Qi=_slicedToArray(hr,2),Re=Qi[0],Ze=Qi[1];useLayoutUpdateEffect(function(){var et=Re[0];ur!==et&&ra(ur,et)},[Re]),useLayoutUpdateEffect(function(){Dr(cr)||li(cr)},[cr]);var je=useEvent(function(et,Et){li(et,Et),Ze([ci],Et)});return[Oi,je]}var Ai=se(33993);function tr(Ft,Pt,pn){var Pn=ge.useRef({});return(!("value"in Pn.current)||pn(Pn.current.condition,Pt))&&(Pn.current.value=Ft(),Pn.current.condition=Pt),Pn.current.value}function Jr(Ft,Pt){typeof Ft=="function"?Ft(Pt):(0,Je.Z)(Ft)==="object"&&Ft&&"current"in Ft&&(Ft.current=Pt)}function kt(){for(var Ft=arguments.length,Pt=new Array(Ft),pn=0;pn<Ft;pn++)Pt[pn]=arguments[pn];var Pn=Pt.filter(function(cr){return cr});return Pn.length<=1?Pn[0]:function(cr){Pt.forEach(function(Gr){Jr(Gr,cr)})}}function vn(){for(var Ft=arguments.length,Pt=new Array(Ft),pn=0;pn<Ft;pn++)Pt[pn]=arguments[pn];return tr(function(){return kt.apply(void 0,Pt)},Pt,function(Pn,cr){return Pn.length!==cr.length||Pn.every(function(Gr,Xr){return Gr!==cr[Xr]})})}function Rn(Ft){var Pt,pn,Pn=isMemo(Ft)?Ft.type.type:Ft.type;return!(typeof Pn=="function"&&!((Pt=Pn.prototype)!==null&&Pt!==void 0&&Pt.render)||typeof Ft=="function"&&!((pn=Ft.prototype)!==null&&pn!==void 0&&pn.render))}function In(Ft){return!isValidElement(Ft)||isFragment(Ft)?!1:Rn(Ft)}function nr(Ft,Pt,pn,Pn){if(!Pt.length)return pn;var cr=_toArray(Pt),Gr=cr[0],Xr=cr.slice(1),oi;return!Ft&&typeof Gr=="number"?oi=[]:Array.isArray(Ft)?oi=_toConsumableArray(Ft):oi=_objectSpread({},Ft),Pn&&pn===void 0&&Xr.length===1?delete oi[Gr][Xr[0]]:oi[Gr]=nr(oi[Gr],Xr,pn,Pn),oi}function gr(Ft,Pt,pn){var Pn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Pt.length&&Pn&&pn===void 0&&!get(Ft,Pt.slice(0,-1))?Ft:nr(Ft,Pt,pn,Pn)}function sr(Ft){return _typeof(Ft)==="object"&&Ft!==null&&Object.getPrototypeOf(Ft)===Object.prototype}function Un(Ft){return Array.isArray(Ft)?[]:{}}var qe=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function wt(){for(var Ft=arguments.length,Pt=new Array(Ft),pn=0;pn<Ft;pn++)Pt[pn]=arguments[pn];var Pn=Un(Pt[0]);return Pt.forEach(function(cr){function Gr(Xr,oi){var jt=new Set(oi),ur=get(cr,Xr),li=Array.isArray(ur);if(li||sr(ur)){if(!jt.has(ur)){jt.add(ur);var ci=get(Pn,Xr);li?Pn=gr(Pn,Xr,[]):(!ci||_typeof(ci)!=="object")&&(Pn=gr(Pn,Xr,Un(ur))),qe(ur).forEach(function(Oi){Gr([].concat(_toConsumableArray(Xr),[Oi]),jt)})}}else Pn=gr(Pn,Xr,ur)}Gr([])}),Pn}var Zt={},an=[],ze=function(Pt){an.push(Pt)};function Ct(Ft,Pt){if(0)var pn}function tn(Ft,Pt){if(0)var pn}function Kt(){Zt={}}function hn(Ft,Pt,pn){!Pt&&!Zt[pn]&&(Ft(!1,pn),Zt[pn]=!0)}function gn(Ft,Pt){hn(Ct,Ft,Pt)}function Xn(Ft,Pt){hn(tn,Ft,Pt)}gn.preMessage=ze,gn.resetWarned=Kt,gn.noteOnce=Xn;var _r=gn,lr=function(Pt){var pn=Pt.prefixCls,Pn=Pt.className,cr=Pt.style,Gr=Pt.children,Xr=Pt.containerRef,oi=Pt.id,jt=Pt.onMouseEnter,ur=Pt.onMouseOver,li=Pt.onMouseLeave,ci=Pt.onClick,Oi=Pt.onKeyDown,ra=Pt.onKeyUp,hr={onMouseEnter:jt,onMouseOver:ur,onMouseLeave:li,onClick:ci,onKeyDown:Oi,onKeyUp:ra},Qi=ge.useContext(Mt),Re=Qi.panel,Ze=vn(Re,Xr);return ge.createElement(ge.Fragment,null,ge.createElement("div",(0,bt.Z)({id:oi,className:Le()("".concat(pn,"-content"),Pn),style:(0,_e.Z)({},cr),"aria-modal":"true",role:"dialog",ref:Ze},hr),Gr))},mr=lr;function Or(Ft){return typeof Ft=="string"&&String(Number(Ft))===Ft?(_r(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ft)):Ft}function Rr(Ft){warning(!("wrapperClassName"in Ft),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ft.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Zr={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Kn(Ft,Pt){var pn,Pn,cr,Gr,Xr=Ft.prefixCls,oi=Ft.open,jt=Ft.placement,ur=Ft.inline,li=Ft.push,ci=Ft.forceRender,Oi=Ft.autoFocus,ra=Ft.keyboard,hr=Ft.rootClassName,Qi=Ft.rootStyle,Re=Ft.zIndex,Ze=Ft.className,je=Ft.id,et=Ft.style,Et=Ft.motion,It=Ft.width,Ut=Ft.height,Ln=Ft.children,Nn=Ft.contentWrapperStyle,Mr=Ft.mask,Hr=Ft.maskClosable,xr=Ft.maskMotion,Gn=Ft.maskClassName,jn=Ft.maskStyle,$n=Ft.afterOpenChange,dr=Ft.onClose,Kr=Ft.onMouseEnter,kr=Ft.onMouseOver,Cr=Ft.onMouseLeave,Ir=Ft.onClick,Ue=Ft.onKeyDown,We=Ft.onKeyUp,we=ge.useRef(),Oe=ge.useRef(),st=ge.useRef();ge.useImperativeHandle(Pt,function(){return we.current});var tt=function(or){var Tr=or.keyCode,pr=or.shiftKey;switch(Tr){case Dt.TAB:{if(Tr===Dt.TAB){if(!pr&&document.activeElement===st.current){var zn;(zn=Oe.current)===null||zn===void 0||zn.focus({preventScroll:!0})}else if(pr&&document.activeElement===Oe.current){var Pr;(Pr=st.current)===null||Pr===void 0||Pr.focus({preventScroll:!0})}}break}case Dt.ESC:{dr&&ra&&(or.stopPropagation(),dr(or));break}}};ge.useEffect(function(){if(oi&&Oi){var Zn;(Zn=we.current)===null||Zn===void 0||Zn.focus({preventScroll:!0})}},[oi]);var _t=ge.useState(!1),rn=(0,rt.Z)(_t,2),Xe=rn[0],Qe=rn[1],lt=ge.useContext(Ot),ut;li===!1?ut={distance:0}:li===!0?ut={}:ut=li||{};var en=(pn=(Pn=(cr=ut)===null||cr===void 0?void 0:cr.distance)!==null&&Pn!==void 0?Pn:lt==null?void 0:lt.pushDistance)!==null&&pn!==void 0?pn:180,cn=ge.useMemo(function(){return{pushDistance:en,push:function(){Qe(!0)},pull:function(){Qe(!1)}}},[en]);ge.useEffect(function(){if(oi){var Zn;lt==null||(Zn=lt.push)===null||Zn===void 0||Zn.call(lt)}else{var or;lt==null||(or=lt.pull)===null||or===void 0||or.call(lt)}},[oi]),ge.useEffect(function(){return function(){var Zn;lt==null||(Zn=lt.pull)===null||Zn===void 0||Zn.call(lt)}},[]);var Wt=Mr&&ge.createElement(_n.Z,(0,bt.Z)({key:"mask"},xr,{visible:oi}),function(Zn,or){var Tr=Zn.className,pr=Zn.style;return ge.createElement("div",{className:Le()("".concat(Xr,"-mask"),Tr,Gn),style:(0,_e.Z)((0,_e.Z)({},pr),jn),onClick:Hr&&oi?dr:void 0,ref:or})}),un=typeof Et=="function"?Et(jt):Et,On={};if(Xe&&en)switch(jt){case"top":On.transform="translateY(".concat(en,"px)");break;case"bottom":On.transform="translateY(".concat(-en,"px)");break;case"left":On.transform="translateX(".concat(en,"px)");break;default:On.transform="translateX(".concat(-en,"px)");break}jt==="left"||jt==="right"?On.width=Or(It):On.height=Or(Ut);var ar={onMouseEnter:Kr,onMouseOver:kr,onMouseLeave:Cr,onClick:Ir,onKeyDown:Ue,onKeyUp:We},Fn=ge.createElement(_n.Z,(0,bt.Z)({key:"panel"},un,{visible:oi,forceRender:ci,onVisibleChanged:function(or){$n==null||$n(or)},removeOnLeave:!1,leavedClassName:"".concat(Xr,"-content-wrapper-hidden")}),function(Zn,or){var Tr=Zn.className,pr=Zn.style;return ge.createElement("div",(0,bt.Z)({className:Le()("".concat(Xr,"-content-wrapper"),Tr),style:(0,_e.Z)((0,_e.Z)((0,_e.Z)({},On),pr),Nn)},Sr(Ft,{data:!0})),ge.createElement(mr,(0,bt.Z)({id:je,containerRef:or,prefixCls:Xr,className:Ze,style:et},ar),Ln))}),An=(0,_e.Z)({},Qi);return Re&&(An.zIndex=Re),ge.createElement(Ot.Provider,{value:cn},ge.createElement("div",{className:Le()(Xr,"".concat(Xr,"-").concat(jt),hr,(Gr={},(0,$t.Z)(Gr,"".concat(Xr,"-open"),oi),(0,$t.Z)(Gr,"".concat(Xr,"-inline"),ur),Gr)),style:An,tabIndex:-1,ref:we,onKeyDown:tt},Wt,ge.createElement("div",{tabIndex:0,ref:Oe,style:Zr,"aria-hidden":"true","data-sentinel":"start"}),Fn,ge.createElement("div",{tabIndex:0,ref:st,style:Zr,"aria-hidden":"true","data-sentinel":"end"})))}var fr=ge.forwardRef(Kn),Mn=fr,Sn=function(Pt){var pn=Pt.open,Pn=pn===void 0?!1:pn,cr=Pt.prefixCls,Gr=cr===void 0?"rc-drawer":cr,Xr=Pt.placement,oi=Xr===void 0?"right":Xr,jt=Pt.autoFocus,ur=jt===void 0?!0:jt,li=Pt.keyboard,ci=li===void 0?!0:li,Oi=Pt.width,ra=Oi===void 0?378:Oi,hr=Pt.mask,Qi=hr===void 0?!0:hr,Re=Pt.maskClosable,Ze=Re===void 0?!0:Re,je=Pt.getContainer,et=Pt.forceRender,Et=Pt.afterOpenChange,It=Pt.destroyOnClose,Ut=Pt.onMouseEnter,Ln=Pt.onMouseOver,Nn=Pt.onMouseLeave,Mr=Pt.onClick,Hr=Pt.onKeyDown,xr=Pt.onKeyUp,Gn=Pt.panelRef,jn=ge.useState(!1),$n=(0,rt.Z)(jn,2),dr=$n[0],Kr=$n[1],kr=ge.useState(!1),Cr=(0,rt.Z)(kr,2),Ir=Cr[0],Ue=Cr[1];sn(function(){Ue(!0)},[]);var We=Ir?Pn:!1,we=ge.useRef(),Oe=ge.useRef();sn(function(){We&&(Oe.current=document.activeElement)},[We]);var st=function(Qe){var lt;if(Kr(Qe),Et==null||Et(Qe),!Qe&&Oe.current&&!((lt=we.current)!==null&<!==void 0&<.contains(Oe.current))){var ut;(ut=Oe.current)===null||ut===void 0||ut.focus({preventScroll:!0})}},tt=ge.useMemo(function(){return{panel:Gn}},[Gn]);if(!et&&!dr&&!We&&It)return null;var _t={onMouseEnter:Ut,onMouseOver:Ln,onMouseLeave:Nn,onClick:Mr,onKeyDown:Hr,onKeyUp:xr},rn=(0,_e.Z)((0,_e.Z)({},Pt),{},{open:We,prefixCls:Gr,placement:oi,autoFocus:ur,keyboard:ci,width:ra,mask:Qi,maskClosable:Ze,inline:je===!1,afterOpenChange:st,ref:we},_t);return ge.createElement(Mt.Provider,{value:tt},ge.createElement(Ge,{open:We||et||dr,autoDestroy:!1,getContainer:je,autoLock:Qi&&(We||dr)},ge.createElement(Mn,rn)))},on=Sn,yr=on,Wr=se(33603),Lr=se(53124),qr=se(65223),Cn=se(69760),vr=Ft=>{const{prefixCls:Pt,title:pn,footer:Pn,extra:cr,closeIcon:Gr,closable:Xr,onClose:oi,headerStyle:jt,drawerStyle:ur,bodyStyle:li,footerStyle:ci,children:Oi}=Ft,ra=ge.useCallback(je=>ge.createElement("button",{type:"button",onClick:oi,"aria-label":"Close",className:`${Pt}-close`},je),[oi]),[hr,Qi]=(0,Cn.Z)(Xr,Gr,ra,void 0,!0),Re=ge.useMemo(()=>!pn&&!hr?null:ge.createElement("div",{style:jt,className:Le()(`${Pt}-header`,{[`${Pt}-header-close-only`]:hr&&!pn&&!cr})},ge.createElement("div",{className:`${Pt}-header-title`},Qi,pn&&ge.createElement("div",{className:`${Pt}-title`},pn)),cr&&ge.createElement("div",{className:`${Pt}-extra`},cr)),[hr,Qi,cr,jt,Pt,pn]),Ze=ge.useMemo(()=>{if(!Pn)return null;const je=`${Pt}-footer`;return ge.createElement("div",{className:je,style:ci},Pn)},[Pn,ci,Pt]);return ge.createElement("div",{className:`${Pt}-wrapper-body`,style:ur},Re,ge.createElement("div",{className:`${Pt}-body`,style:li},Oi),Ze)},ta=se(4173),Hi=se(67968),Pi=se(45503),qi=Ft=>{const{componentCls:Pt,motionDurationSlow:pn}=Ft,Pn={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${pn}`}}};return{[Pt]:{[`${Pt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${pn}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Pt}-panel-motion`]:{"&-left":[Pn,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Pn,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Pn,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Pn,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Ki=Ft=>{const{componentCls:Pt,zIndexPopup:pn,colorBgMask:Pn,colorBgElevated:cr,motionDurationSlow:Gr,motionDurationMid:Xr,padding:oi,paddingLG:jt,fontSizeLG:ur,lineHeightLG:li,lineWidth:ci,lineType:Oi,colorSplit:ra,marginSM:hr,colorIcon:Qi,colorIconHover:Re,colorText:Ze,fontWeightStrong:je,footerPaddingBlock:et,footerPaddingInline:Et}=Ft,It=`${Pt}-content-wrapper`;return{[Pt]:{position:"fixed",inset:0,zIndex:pn,pointerEvents:"none","&-pure":{position:"relative",background:cr,[`&${Pt}-left`]:{boxShadow:Ft.boxShadowDrawerLeft},[`&${Pt}-right`]:{boxShadow:Ft.boxShadowDrawerRight},[`&${Pt}-top`]:{boxShadow:Ft.boxShadowDrawerUp},[`&${Pt}-bottom`]:{boxShadow:Ft.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Pt}-mask`]:{position:"absolute",inset:0,zIndex:pn,background:Pn,pointerEvents:"auto"},[It]:{position:"absolute",zIndex:pn,maxWidth:"100vw",transition:`all ${Gr}`,"&-hidden":{display:"none"}},[`&-left > ${It}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Ft.boxShadowDrawerLeft},[`&-right > ${It}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Ft.boxShadowDrawerRight},[`&-top > ${It}`]:{top:0,insetInline:0,boxShadow:Ft.boxShadowDrawerUp},[`&-bottom > ${It}`]:{bottom:0,insetInline:0,boxShadow:Ft.boxShadowDrawerDown},[`${Pt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:cr,pointerEvents:"auto"},[`${Pt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Pt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${oi}px ${jt}px`,fontSize:ur,lineHeight:li,borderBottom:`${ci}px ${Oi} ${ra}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Pt}-extra`]:{flex:"none"},[`${Pt}-close`]:{display:"inline-block",marginInlineEnd:hr,color:Qi,fontWeight:je,fontSize:ur,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Xr}`,textRendering:"auto","&:focus, &:hover":{color:Re,textDecoration:"none"}},[`${Pt}-title`]:{flex:1,margin:0,color:Ze,fontWeight:Ft.fontWeightStrong,fontSize:ur,lineHeight:li},[`${Pt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:jt,overflow:"auto"},[`${Pt}-footer`]:{flexShrink:0,padding:`${et}px ${Et}px`,borderTop:`${ci}px ${Oi} ${ra}`},"&-rtl":{direction:"rtl"}}}};var di=(0,Hi.Z)("Drawer",Ft=>{const Pt=(0,Pi.TS)(Ft,{});return[Ki(Pt),qi(Pt)]},Ft=>({zIndexPopup:Ft.zIndexPopupBase,footerPaddingBlock:Ft.paddingXS,footerPaddingInline:Ft.padding})),na=se(16569),aa=function(Ft,Pt){var pn={};for(var Pn in Ft)Object.prototype.hasOwnProperty.call(Ft,Pn)&&Pt.indexOf(Pn)<0&&(pn[Pn]=Ft[Pn]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cr=0,Pn=Object.getOwnPropertySymbols(Ft);cr<Pn.length;cr++)Pt.indexOf(Pn[cr])<0&&Object.prototype.propertyIsEnumerable.call(Ft,Pn[cr])&&(pn[Pn[cr]]=Ft[Pn[cr]]);return pn};const _i=null,Mi={distance:180},Sa=Ft=>{var Pt;const{rootClassName:pn,width:Pn,height:cr,size:Gr="default",mask:Xr=!0,push:oi=Mi,open:jt,afterOpenChange:ur,onClose:li,prefixCls:ci,getContainer:Oi,style:ra,className:hr,visible:Qi,afterVisibleChange:Re}=Ft,Ze=aa(Ft,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:je,getPrefixCls:et,direction:Et,drawer:It}=ge.useContext(Lr.E_),Ut=et("drawer",ci),[Ln,Nn]=di(Ut),Mr=Oi===void 0&&je?()=>je(document.body):Oi,Hr=Le()({"no-mask":!Xr,[`${Ut}-rtl`]:Et==="rtl"},pn,Nn),xr=ge.useMemo(()=>Pn!=null?Pn:Gr==="large"?736:378,[Pn,Gr]),Gn=ge.useMemo(()=>cr!=null?cr:Gr==="large"?736:378,[cr,Gr]),jn={motionName:(0,Wr.m)(Ut,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},$n=Kr=>({motionName:(0,Wr.m)(Ut,`panel-motion-${Kr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),dr=(0,na.H)();return Ln(ge.createElement(ta.BR,null,ge.createElement(qr.Ux,{status:!0,override:!0},ge.createElement(yr,Object.assign({prefixCls:Ut,onClose:li,maskMotion:jn,motion:$n},Ze,{open:jt!=null?jt:Qi,mask:Xr,push:oi,width:xr,height:Gn,style:Object.assign(Object.assign({},It==null?void 0:It.style),ra),className:Le()(It==null?void 0:It.className,hr),rootClassName:Hr,getContainer:Mr,afterOpenChange:ur!=null?ur:Re,panelRef:dr}),ge.createElement(vr,Object.assign({prefixCls:Ut},Ze,{onClose:li}))))))},Si=Ft=>{const{prefixCls:Pt,style:pn,className:Pn,placement:cr="right"}=Ft,Gr=aa(Ft,["prefixCls","style","className","placement"]),{getPrefixCls:Xr}=ge.useContext(Lr.E_),oi=Xr("drawer",Pt),[jt,ur]=di(oi),li=Le()(oi,`${oi}-pure`,`${oi}-${cr}`,ur,Pn);return jt(ge.createElement("div",{className:li,style:pn},ge.createElement(vr,Object.assign({prefixCls:oi},Gr))))};Sa._InternalPanelDoNotUseOrYouWillBeFired=Si;var $r=Sa},35874:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return ue}});var ae=se(67294),Le=se(91034),_e=se(94184),rt=se.n(_e),ge=se(87462),ke=se(4942),Ee=se(97685),xe=se(45987),me=se(62709),De=se(71002),ot=se(12060);function Ne(le,Me,Ge){var St=React.useRef({});return(!("value"in St.current)||Ge(St.current.condition,Me))&&(St.current.value=le(),St.current.condition=Me),St.current.value}function mt(le,Me){typeof le=="function"?le(Me):(0,De.Z)(le)==="object"&&le&&"current"in le&&(le.current=Me)}function dt(){for(var le=arguments.length,Me=new Array(le),Ge=0;Ge<le;Ge++)Me[Ge]=arguments[Ge];var St=Me.filter(function(Ht){return Ht});return St.length<=1?St[0]:function(Ht){Me.forEach(function(Yt){mt(Yt,Ht)})}}function pt(){for(var le=arguments.length,Me=new Array(le),Ge=0;Ge<le;Ge++)Me[Ge]=arguments[Ge];return useMemo(function(){return dt.apply(void 0,Me)},Me,function(St,Ht){return St.length===Ht.length&&St.every(function(Yt,Vt){return Yt===Ht[Vt]})})}function Je(le){var Me,Ge,St=(0,ot.isMemo)(le)?le.type.type:le.type;return!(typeof St=="function"&&!((Me=St.prototype)!==null&&Me!==void 0&&Me.render)||typeof le=="function"&&!((Ge=le.prototype)!==null&&Ge!==void 0&&Ge.render))}var Be={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(Me){var Ge=Me.keyCode;if(Me.altKey&&!Me.ctrlKey||Me.metaKey||Ge>=Be.F1&&Ge<=Be.F12)return!1;switch(Ge){case Be.ALT:case Be.CAPS_LOCK:case Be.CONTEXT_MENU:case Be.CTRL:case Be.DOWN:case Be.END:case Be.ESC:case Be.HOME:case Be.INSERT:case Be.LEFT:case Be.MAC_FF_META:case Be.META:case Be.NUMLOCK:case Be.NUM_CENTER:case Be.PAGE_DOWN:case Be.PAGE_UP:case Be.PAUSE:case Be.PRINT_SCREEN:case Be.RIGHT:case Be.SHIFT:case Be.UP:case Be.WIN_KEY:case Be.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Me){if(Me>=Be.ZERO&&Me<=Be.NINE||Me>=Be.NUM_ZERO&&Me<=Be.NUM_MULTIPLY||Me>=Be.A&&Me<=Be.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Me===0)return!0;switch(Me){case Be.SPACE:case Be.QUESTION_MARK:case Be.NUM_PLUS:case Be.NUM_MINUS:case Be.NUM_PERIOD:case Be.NUM_DIVISION:case Be.SEMICOLON:case Be.DASH:case Be.EQUALS:case Be.COMMA:case Be.PERIOD:case Be.SLASH:case Be.APOSTROPHE:case Be.SINGLE_QUOTE:case Be.OPEN_SQUARE_BRACKET:case Be.BACKSLASH:case Be.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},gt=Be,nn=function(Me){return+setTimeout(Me,16)},at=function(Me){return clearTimeout(Me)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(nn=function(Me){return window.requestAnimationFrame(Me)},at=function(Me){return window.cancelAnimationFrame(Me)});var vt=0,Ce=new Map;function Ae(le){Ce.delete(le)}var Ye=function(Me){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;vt+=1;var St=vt;function Ht(Yt){if(Yt===0)Ae(St),Me();else{var Vt=nn(function(){Ht(Yt-1)});Ce.set(St,Vt)}}return Ht(Ge),St};Ye.cancel=function(le){var Me=Ce.get(le);return Ae(Me),at(Me)};var Ve=Ye,At=gt.ESC,xt=gt.TAB;function Lt(le){var Me=le.visible,Ge=le.triggerRef,St=le.onVisibleChange,Ht=le.autoFocus,Yt=le.overlayRef,Vt=ae.useRef(!1),sn=function(){if(Me){var $t,bt;($t=Ge.current)===null||$t===void 0||(bt=$t.focus)===null||bt===void 0||bt.call($t),St==null||St(!1)}},it=function(){var $t;return($t=Yt.current)!==null&&$t!==void 0&&$t.focus?(Yt.current.focus(),Vt.current=!0,!0):!1},Mt=function($t){switch($t.keyCode){case At:sn();break;case xt:{var bt=!1;Vt.current||(bt=it()),bt?$t.preventDefault():sn();break}}};ae.useEffect(function(){return Me?(window.addEventListener("keydown",Mt),Ht&&Ve(it,3),function(){window.removeEventListener("keydown",Mt),Vt.current=!1}):function(){Vt.current=!1}},[Me])}var nt=(0,ae.forwardRef)(function(le,Me){var Ge=le.overlay,St=le.arrow,Ht=le.prefixCls,Yt=(0,ae.useMemo)(function(){var sn;return typeof Ge=="function"?sn=Ge():sn=Ge,sn},[Ge]),Vt=dt(Me,Yt==null?void 0:Yt.ref);return ae.createElement(ae.Fragment,null,St&&ae.createElement("div",{className:"".concat(Ht,"-arrow")}),ae.cloneElement(Yt,{ref:Je(Yt)?Vt:void 0}))}),qt=nt,zt={adjustX:1,adjustY:1},bn=[0,0],dn={topLeft:{points:["bl","tl"],overflow:zt,offset:[0,-4],targetOffset:bn},top:{points:["bc","tc"],overflow:zt,offset:[0,-4],targetOffset:bn},topRight:{points:["br","tr"],overflow:zt,offset:[0,-4],targetOffset:bn},bottomLeft:{points:["tl","bl"],overflow:zt,offset:[0,4],targetOffset:bn},bottom:{points:["tc","bc"],overflow:zt,offset:[0,4],targetOffset:bn},bottomRight:{points:["tr","br"],overflow:zt,offset:[0,4],targetOffset:bn}},Wn=dn,rr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function ln(le,Me){var Ge,St=le.arrow,Ht=St===void 0?!1:St,Yt=le.prefixCls,Vt=Yt===void 0?"rc-dropdown":Yt,sn=le.transitionName,it=le.animation,Mt=le.align,Ot=le.placement,$t=Ot===void 0?"bottomLeft":Ot,bt=le.placements,_n=bt===void 0?Wn:bt,ct=le.getPopupContainer,Dt=le.showAction,En=le.hideAction,wn=le.overlayClassName,Bn=le.overlayStyle,Qn=le.visible,wr=le.trigger,br=wr===void 0?["hover"]:wr,Sr=le.autoFocus,Yn=le.overlay,ir=le.children,Dr=le.onVisibleChange,ti=(0,xe.Z)(le,rr),Ai=ae.useState(),tr=(0,Ee.Z)(Ai,2),Jr=tr[0],kt=tr[1],vn="visible"in le?Qn:Jr,Rn=ae.useRef(null),In=ae.useRef(null),nr=ae.useRef(null);ae.useImperativeHandle(Me,function(){return Rn.current});var gr=function(tn){kt(tn),Dr==null||Dr(tn)};Lt({visible:vn,triggerRef:nr,onVisibleChange:gr,autoFocus:Sr,overlayRef:In});var sr=function(tn){var Kt=le.onOverlayClick;kt(!1),Kt&&Kt(tn)},Un=function(){return ae.createElement(qt,{ref:In,overlay:Yn,prefixCls:Vt,arrow:Ht})},qe=function(){return typeof Yn=="function"?Un:Un()},wt=function(){var tn=le.minOverlayWidthMatchTrigger,Kt=le.alignPoint;return"minOverlayWidthMatchTrigger"in le?tn:!Kt},Zt=function(){var tn=le.openClassName;return tn!==void 0?tn:"".concat(Vt,"-open")},an=ae.cloneElement(ir,{className:rt()((Ge=ir.props)===null||Ge===void 0?void 0:Ge.className,vn&&Zt()),ref:Je(ir)?dt(nr,ir.ref):void 0}),ze=En;return!ze&&br.indexOf("contextMenu")!==-1&&(ze=["click"]),ae.createElement(me.Z,(0,ge.Z)({builtinPlacements:_n},ti,{prefixCls:Vt,ref:Rn,popupClassName:rt()(wn,(0,ke.Z)({},"".concat(Vt,"-show-arrow"),Ht)),popupStyle:Bn,action:br,showAction:Dt,hideAction:ze,popupPlacement:$t,popupAlign:Mt,popupTransitionName:sn,popupAnimation:it,popupVisible:vn,stretch:wt()?"minWidth":"",popup:qe(),onPopupVisibleChange:gr,onPopupClick:sr,getPopupContainer:ct}),an)}var $e=ae.forwardRef(ln),Se=$e,Bt=se(60276),xn=se(5663),Xt=se(10366),ft=se(80636),yt=se(8745),Gt=se(96159),qn=se(53124),Dn=se(68508),Tt=se(76529),mn=se(29691),Vn=se(66748);const kn=null,Pe=le=>{const{menu:Me,arrow:Ge,prefixCls:St,children:Ht,trigger:Yt,disabled:Vt,dropdownRender:sn,getPopupContainer:it,overlayClassName:Mt,rootClassName:Ot,open:$t,onOpenChange:bt,visible:_n,onVisibleChange:ct,mouseEnterDelay:Dt=.15,mouseLeaveDelay:En=.1,autoAdjustOverflow:wn=!0,placement:Bn="",overlay:Qn,transitionName:wr}=le,{getPopupContainer:br,getPrefixCls:Sr,direction:Yn}=ae.useContext(qn.E_),ir=ae.useMemo(()=>{const an=Sr();return wr!==void 0?wr:Bn.includes("top")?`${an}-slide-down`:`${an}-slide-up`},[Sr,Bn,wr]),Dr=ae.useMemo(()=>Bn?Bn.includes("Center")?Bn.slice(0,Bn.indexOf("Center")):Bn:Yn==="rtl"?"bottomRight":"bottomLeft",[Bn,Yn]),ti=Sr("dropdown",St),[Ai,tr]=(0,Vn.Z)(ti),[,Jr]=(0,mn.Z)(),kt=ae.Children.only(Ht),vn=(0,Gt.Tm)(kt,{className:rt()(`${ti}-trigger`,{[`${ti}-rtl`]:Yn==="rtl"},kt.props.className),disabled:Vt}),Rn=Vt?[]:Yt;let In;Rn&&Rn.includes("contextMenu")&&(In=!0);const[nr,gr]=(0,xn.Z)(!1,{value:$t!=null?$t:_n}),sr=(0,Bt.useEvent)(an=>{bt==null||bt(an),ct==null||ct(an),gr(an)}),Un=rt()(Mt,Ot,tr,{[`${ti}-rtl`]:Yn==="rtl"}),qe=(0,ft.Z)({arrowPointAtCenter:typeof Ge=="object"&&Ge.pointAtCenter,autoAdjustOverflow:wn,offset:Jr.marginXXS,arrowWidth:Ge?Jr.sizePopupArrow:0,borderRadius:Jr.borderRadius}),wt=ae.useCallback(()=>{gr(!1)},[]),Zt=()=>{let an;return Me!=null&&Me.items?an=ae.createElement(Dn.default,Object.assign({},Me)):typeof Qn=="function"?an=Qn():an=Qn,sn&&(an=sn(an)),an=ae.Children.only(typeof an=="string"?ae.createElement("span",null,an):an),ae.createElement(Tt.J,{prefixCls:`${ti}-menu`,expandIcon:ae.createElement("span",{className:`${ti}-menu-submenu-arrow`},ae.createElement(Le.Z,{className:`${ti}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:wt,validator:ze=>{let{mode:Ct}=ze}},an)};return Ai(ae.createElement(Se,Object.assign({alignPoint:In},(0,Xt.Z)(le,["rootClassName"]),{mouseEnterDelay:Dt,mouseLeaveDelay:En,visible:nr,builtinPlacements:qe,arrow:!!Ge,overlayClassName:Un,prefixCls:ti,getPopupContainer:it||br,transitionName:ir,trigger:Rn,overlay:Zt,placement:Dr,onVisibleChange:sr}),vn))};function fe(le){return Object.assign(Object.assign({},le),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ce=(0,yt.Z)(Pe,"dropdown",le=>le,fe),he=le=>ae.createElement(ce,Object.assign({},le),ae.createElement("span",null));Pe._InternalPanelDoNotUseOrYouWillBeFired=he;var ue=Pe},85418:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return pt}});var ae=se(35874),Le=se(94184),_e=se.n(Le),rt=se(67294),ge=se(25877),ke=se(71577),Ee=se(53124),xe=se(93421),me=se(4173),De=se(66748),ot=function(Je,Be){var gt={};for(var nn in Je)Object.prototype.hasOwnProperty.call(Je,nn)&&Be.indexOf(nn)<0&&(gt[nn]=Je[nn]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,nn=Object.getOwnPropertySymbols(Je);at<nn.length;at++)Be.indexOf(nn[at])<0&&Object.prototype.propertyIsEnumerable.call(Je,nn[at])&&(gt[nn[at]]=Je[nn[at]]);return gt};const Ne=Je=>{const{getPopupContainer:Be,getPrefixCls:gt,direction:nn}=rt.useContext(Ee.E_),{prefixCls:at,type:vt="default",danger:Ce,disabled:Ae,loading:Ye,onClick:Ve,htmlType:At,children:xt,className:Lt,menu:nt,arrow:qt,autoFocus:zt,overlay:bn,trigger:dn,align:Wn,open:rr,onOpenChange:ln,placement:$e,getPopupContainer:Se,href:Bt,icon:xn=rt.createElement(ge.Z,null),title:Xt,buttonsRender:ft=Vt=>Vt,mouseEnterDelay:yt,mouseLeaveDelay:Gt,overlayClassName:qn,overlayStyle:Dn,destroyPopupOnHide:Tt,dropdownRender:mn}=Je,Vn=ot(Je,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),kn=gt("dropdown",at),Pe=`${kn}-button`,[fe,ce]=(0,De.Z)(kn),he={menu:nt,arrow:qt,autoFocus:zt,align:Wn,disabled:Ae,trigger:Ae?[]:dn,onOpenChange:ln,getPopupContainer:Se||Be,mouseEnterDelay:yt,mouseLeaveDelay:Gt,overlayClassName:qn,overlayStyle:Dn,destroyPopupOnHide:Tt,dropdownRender:mn},{compactSize:ue,compactItemClassnames:le}=(0,me.ri)(kn,nn),Me=_e()(Pe,le,Lt,ce);"overlay"in Je&&(he.overlay=bn),"open"in Je&&(he.open=rr),"placement"in Je?he.placement=$e:he.placement=nn==="rtl"?"bottomLeft":"bottomRight";const Ge=rt.createElement(ke.ZP,{type:vt,danger:Ce,disabled:Ae,loading:Ye,onClick:Ve,htmlType:At,href:Bt,title:Xt},xt),St=rt.createElement(ke.ZP,{type:vt,danger:Ce,icon:xn}),[Ht,Yt]=ft([Ge,St]);return fe(rt.createElement(xe.Z.Compact,Object.assign({className:Me,size:ue,block:!0},Vn),Ht,rt.createElement(ae.Z,Object.assign({},he),Yt)))};Ne.__ANT_BUTTON=!0;var mt=Ne;const dt=ae.Z;dt.Button=mt;var pt=dt},66748:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return ot}});var ae=se(14747),Le=se(67771),_e=se(33297),rt=se(50438),ge=se(97414),ke=se(67968),Ee=se(45503),me=Ne=>{const{componentCls:mt,menuCls:dt,colorError:pt,colorTextLightSolid:Je}=Ne,Be=`${dt}-item`;return{[`${mt}, ${mt}-menu-submenu`]:{[`${dt} ${Be}`]:{[`&${Be}-danger:not(${Be}-disabled)`]:{color:pt,"&:hover":{color:Je,backgroundColor:pt}}}}}};const De=Ne=>{const{componentCls:mt,menuCls:dt,zIndexPopup:pt,dropdownArrowDistance:Je,sizePopupArrow:Be,antCls:gt,iconCls:nn,motionDurationMid:at,dropdownPaddingVertical:vt,fontSize:Ce,dropdownEdgeChildPadding:Ae,colorTextDisabled:Ye,fontSizeIcon:Ve,controlPaddingHorizontal:At,colorBgElevated:xt}=Ne;return[{[mt]:Object.assign(Object.assign({},(0,ae.Wf)(Ne)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:pt,display:"block","&::before":{position:"absolute",insetBlock:-Je+Be/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${gt}-btn`]:{[`& > ${nn}-down, & > ${gt}-btn-icon > ${nn}-down`]:{fontSize:Ve}},[`${mt}-wrap`]:{position:"relative",[`${gt}-btn > ${nn}-down`]:{fontSize:Ve},[`${nn}-down::before`]:{transition:`transform ${at}`}},[`${mt}-wrap-open`]:{[`${nn}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${gt}-slide-down-enter${gt}-slide-down-enter-active${mt}-placement-bottomLeft,
|
|
|
&${gt}-slide-down-appear${gt}-slide-down-appear-active${mt}-placement-bottomLeft,
|
|
|
&${gt}-slide-down-enter${gt}-slide-down-enter-active${mt}-placement-bottom,
|
|
|
&${gt}-slide-down-appear${gt}-slide-down-appear-active${mt}-placement-bottom,
|
|
|
&${gt}-slide-down-enter${gt}-slide-down-enter-active${mt}-placement-bottomRight,
|
|
|
&${gt}-slide-down-appear${gt}-slide-down-appear-active${mt}-placement-bottomRight`]:{animationName:Le.fJ},[`&${gt}-slide-up-enter${gt}-slide-up-enter-active${mt}-placement-topLeft,
|
|
|
&${gt}-slide-up-appear${gt}-slide-up-appear-active${mt}-placement-topLeft,
|
|
|
&${gt}-slide-up-enter${gt}-slide-up-enter-active${mt}-placement-top,
|
|
|
&${gt}-slide-up-appear${gt}-slide-up-appear-active${mt}-placement-top,
|
|
|
&${gt}-slide-up-enter${gt}-slide-up-enter-active${mt}-placement-topRight,
|
|
|
&${gt}-slide-up-appear${gt}-slide-up-appear-active${mt}-placement-topRight`]:{animationName:Le.Qt},[`&${gt}-slide-down-leave${gt}-slide-down-leave-active${mt}-placement-bottomLeft,
|
|
|
&${gt}-slide-down-leave${gt}-slide-down-leave-active${mt}-placement-bottom,
|
|
|
&${gt}-slide-down-leave${gt}-slide-down-leave-active${mt}-placement-bottomRight`]:{animationName:Le.Uw},[`&${gt}-slide-up-leave${gt}-slide-up-leave-active${mt}-placement-topLeft,
|
|
|
&${gt}-slide-up-leave${gt}-slide-up-leave-active${mt}-placement-top,
|
|
|
&${gt}-slide-up-leave${gt}-slide-up-leave-active${mt}-placement-topRight`]:{animationName:Le.ly}})},(0,ge.ZP)(Ne,{colorBg:xt,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${mt} ${dt}`]:{position:"relative",margin:0},[`${dt}-submenu-popup`]:{position:"absolute",zIndex:pt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${mt}, ${mt}-menu-submenu`]:{[dt]:Object.assign(Object.assign({padding:Ae,listStyleType:"none",backgroundColor:xt,backgroundClip:"padding-box",borderRadius:Ne.borderRadiusLG,outline:"none",boxShadow:Ne.boxShadowSecondary},(0,ae.Qy)(Ne)),{[`${dt}-item-group-title`]:{padding:`${vt}px ${At}px`,color:Ne.colorTextDescription,transition:`all ${at}`},[`${dt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${dt}-item-icon`]:{minWidth:Ce,marginInlineEnd:Ne.marginXS,fontSize:Ne.fontSizeSM},[`${dt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${at}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${dt}-item, ${dt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${vt}px ${At}px`,color:Ne.colorText,fontWeight:"normal",fontSize:Ce,lineHeight:Ne.lineHeight,cursor:"pointer",transition:`all ${at}`,borderRadius:Ne.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ne.controlItemBgHover}},(0,ae.Qy)(Ne)),{"&-selected":{color:Ne.colorPrimary,backgroundColor:Ne.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ne.controlItemBgActiveHover}},"&-disabled":{color:Ye,cursor:"not-allowed","&:hover":{color:Ye,backgroundColor:xt,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ne.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ne.colorSplit},[`${mt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ne.paddingXS,[`${mt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ne.colorTextDescription,fontSize:Ve,fontStyle:"normal"}}}),[`${dt}-item-group-list`]:{margin:`0 ${Ne.marginXS}px`,padding:0,listStyle:"none"},[`${dt}-submenu-title`]:{paddingInlineEnd:At+Ne.fontSizeSM},[`${dt}-submenu-vertical`]:{position:"relative"},[`${dt}-submenu${dt}-submenu-disabled ${mt}-menu-submenu-title`]:{[`&, ${mt}-menu-submenu-arrow-icon`]:{color:Ye,backgroundColor:xt,cursor:"not-allowed"}},[`${dt}-submenu-selected ${mt}-menu-submenu-title`]:{color:Ne.colorPrimary}})}},[(0,Le.oN)(Ne,"slide-up"),(0,Le.oN)(Ne,"slide-down"),(0,_e.Fm)(Ne,"move-up"),(0,_e.Fm)(Ne,"move-down"),(0,rt._y)(Ne,"zoom-big")]]};var ot=(0,ke.Z)("Dropdown",(Ne,mt)=>{let{rootPrefixCls:dt}=mt;const{marginXXS:pt,sizePopupArrow:Je,controlHeight:Be,fontSize:gt,lineHeight:nn,paddingXXS:at,componentCls:vt,borderRadiusLG:Ce}=Ne,Ae=(Be-gt*nn)/2,{dropdownArrowOffset:Ye}=(0,ge.fS)({contentRadius:Ce}),Ve=(0,Ee.TS)(Ne,{menuCls:`${vt}-menu`,rootPrefixCls:dt,dropdownArrowDistance:Je/2+pt,dropdownArrowOffset:Ye,dropdownPaddingVertical:Ae,dropdownEdgeChildPadding:at});return[De(Ve),me(Ve)]},Ne=>({zIndexPopup:Ne.zIndexPopupBase+50}))},32983:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return at}});var ae=se(94184),Le=se.n(ae),_e=se(67294),rt=se(53124),ge=se(10110),ke=se(84780),Ee=se(29691),me=()=>{const[,vt]=(0,Ee.Z)(),Ae=new ke.C(vt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return _e.createElement("svg",{style:Ae,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},_e.createElement("g",{fill:"none",fillRule:"evenodd"},_e.createElement("g",{transform:"translate(24 31.67)"},_e.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),_e.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),_e.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),_e.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),_e.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),_e.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),_e.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},_e.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),_e.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ot=()=>{const[,vt]=(0,Ee.Z)(),{colorFill:Ce,colorFillTertiary:Ae,colorFillQuaternary:Ye,colorBgContainer:Ve}=vt,{borderColor:At,shadowColor:xt,contentColor:Lt}=(0,_e.useMemo)(()=>({borderColor:new ke.C(Ce).onBackground(Ve).toHexShortString(),shadowColor:new ke.C(Ae).onBackground(Ve).toHexShortString(),contentColor:new ke.C(Ye).onBackground(Ve).toHexShortString()}),[Ce,Ae,Ye,Ve]);return _e.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},_e.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},_e.createElement("ellipse",{fill:xt,cx:"32",cy:"33",rx:"32",ry:"7"}),_e.createElement("g",{fillRule:"nonzero",stroke:At},_e.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),_e.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Lt}))))},Ne=se(67968),mt=se(45503);const dt=vt=>{const{componentCls:Ce,margin:Ae,marginXS:Ye,marginXL:Ve,fontSize:At,lineHeight:xt}=vt;return{[Ce]:{marginInline:Ye,fontSize:At,lineHeight:xt,textAlign:"center",[`${Ce}-image`]:{height:vt.emptyImgHeight,marginBottom:Ye,opacity:vt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ce}-description`]:{color:vt.colorText},[`${Ce}-footer`]:{marginTop:Ae},"&-normal":{marginBlock:Ve,color:vt.colorTextDisabled,[`${Ce}-description`]:{color:vt.colorTextDisabled},[`${Ce}-image`]:{height:vt.emptyImgHeightMD}},"&-small":{marginBlock:Ye,color:vt.colorTextDisabled,[`${Ce}-image`]:{height:vt.emptyImgHeightSM}}}}};var pt=(0,Ne.Z)("Empty",vt=>{const{componentCls:Ce,controlHeightLG:Ae}=vt,Ye=(0,mt.TS)(vt,{emptyImgCls:`${Ce}-img`,emptyImgHeight:Ae*2.5,emptyImgHeightMD:Ae,emptyImgHeightSM:Ae*.875});return[dt(Ye)]}),Je=function(vt,Ce){var Ae={};for(var Ye in vt)Object.prototype.hasOwnProperty.call(vt,Ye)&&Ce.indexOf(Ye)<0&&(Ae[Ye]=vt[Ye]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Ye=Object.getOwnPropertySymbols(vt);Ve<Ye.length;Ve++)Ce.indexOf(Ye[Ve])<0&&Object.prototype.propertyIsEnumerable.call(vt,Ye[Ve])&&(Ae[Ye[Ve]]=vt[Ye[Ve]]);return Ae};const Be=_e.createElement(me,null),gt=_e.createElement(ot,null),nn=vt=>{var{className:Ce,rootClassName:Ae,prefixCls:Ye,image:Ve=Be,description:At,children:xt,imageStyle:Lt,style:nt}=vt,qt=Je(vt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:zt,direction:bn,empty:dn}=_e.useContext(rt.E_),Wn=zt("empty",Ye),[rr,ln]=pt(Wn),[$e]=(0,ge.Z)("Empty"),Se=typeof At!="undefined"?At:$e==null?void 0:$e.description,Bt=typeof Se=="string"?Se:"empty";let xn=null;return typeof Ve=="string"?xn=_e.createElement("img",{alt:Bt,src:Ve}):xn=Ve,rr(_e.createElement("div",Object.assign({className:Le()(ln,Wn,dn==null?void 0:dn.className,{[`${Wn}-normal`]:Ve===gt,[`${Wn}-rtl`]:bn==="rtl"},Ce,Ae),style:Object.assign(Object.assign({},dn==null?void 0:dn.style),nt)},qt),_e.createElement("div",{className:`${Wn}-image`,style:Lt},xn),Se&&_e.createElement("div",{className:`${Wn}-description`},Se),xt&&_e.createElement("div",{className:`${Wn}-footer`},xt)))};nn.PRESENTED_IMAGE_DEFAULT=Be,nn.PRESENTED_IMAGE_SIMPLE=gt;var at=nn},22150:function(yn,fn,se){"use strict";se.d(fn,{default:function(){return an}});var ae=se(74902),Le=se(94184),_e=se.n(Le),rt=se(38379),ge=se(67294),ke=se(33603),Ee=se(65223);function xe(ze){const[Ct,tn]=ge.useState(ze);return ge.useEffect(()=>{const Kt=setTimeout(()=>{tn(ze)},ze.length?0:10);return()=>{clearTimeout(Kt)}},[ze]),Ct}var me=se(14747),De=se(50438),ot=se(33507),Ne=se(45503),mt=se(67968),pt=ze=>{const{componentCls:Ct}=ze,tn=`${Ct}-show-help`,Kt=`${Ct}-show-help-item`;return{[tn]:{transition:`opacity ${ze.motionDurationSlow} ${ze.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Kt]:{overflow:"hidden",transition:`height ${ze.motionDurationSlow} ${ze.motionEaseInOut},
|
|
|
opacity ${ze.motionDurationSlow} ${ze.motionEaseInOut},
|
|
|
transform ${ze.motionDurationSlow} ${ze.motionEaseInOut} !important`,[`&${Kt}-appear, &${Kt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Kt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Je=ze=>({legend:{display:"block",width:"100%",marginBottom:ze.marginLG,padding:0,color:ze.colorTextDescription,fontSize:ze.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ze.lineWidth}px ${ze.lineType} ${ze.colorBorder}`},label:{fontSize:ze.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ze.controlOutlineWidth}px ${ze.controlOutline}`},output:{display:"block",paddingTop:15,color:ze.colorText,fontSize:ze.fontSize,lineHeight:ze.lineHeight}}),Be=(ze,Ct)=>{const{formItemCls:tn}=ze;return{[tn]:{[`${tn}-label > label`]:{height:Ct},[`${tn}-control-input`]:{minHeight:Ct}}}},gt=ze=>{const{componentCls:Ct}=ze;return{[ze.componentCls]:Object.assign(Object.assign(Object.assign({},(0,me.Wf)(ze)),Je(ze)),{[`${Ct}-text`]:{display:"inline-block",paddingInlineEnd:ze.paddingSM},"&-small":Object.assign({},Be(ze,ze.controlHeightSM)),"&-large":Object.assign({},Be(ze,ze.controlHeightLG))})}},nn=ze=>{const{formItemCls:Ct,iconCls:tn,componentCls:Kt,rootPrefixCls:hn,labelRequiredMarkColor:gn,labelColor:Xn,labelFontSize:_r,labelHeight:lr,labelColonMarginInlineStart:mr,labelColonMarginInlineEnd:Or,itemMarginBottom:Rr}=ze;return{[Ct]:Object.assign(Object.assign({},(0,me.Wf)(ze)),{marginBottom:Rr,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${hn}-row`]:{display:"none"},"&-has-warning":{[`${Ct}-split`]:{color:ze.colorError}},"&-has-error":{[`${Ct}-split`]:{color:ze.colorWarning}},[`${Ct}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${ze.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:lr,color:Xn,fontSize:_r,[`> ${tn}`]:{fontSize:ze.fontSize,verticalAlign:"top"},[`&${Ct}-required:not(${Ct}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:ze.marginXXS,color:gn,fontSize:ze.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Kt}-hide-required-mark &`]:{display:"none"}},[`${Ct}-optional`]:{display:"inline-block",marginInlineStart:ze.marginXXS,color:ze.colorTextDescription,[`${Kt}-hide-required-mark &`]:{display:"none"}},[`${Ct}-tooltip`]:{color:ze.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ze.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:mr,marginInlineEnd:Or},[`&${Ct}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ct}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${hn}-col-'"]):not([class*="' ${hn}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ze.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ct]:{"&-explain, &-extra":{clear:"both",color:ze.colorTextDescription,fontSize:ze.fontSize,lineHeight:ze.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ze.controlHeightSM,transition:`color ${ze.motionDurationMid} ${ze.motionEaseOut}`},"&-explain":{"&-error":{color:ze.colorError},"&-warning":{color:ze.colorWarning}}},[`&-with-help ${Ct}-explain`]:{height:"auto",opacity:1},[`${Ct}-feedback-icon`]:{fontSize:ze.fontSize,textAlign:"center",visibility:"visible",animationName:De.kr,animationDuration:ze.motionDurationMid,animationTimingFunction:ze.motionEaseOutBack,pointerEvents:"none","&-success":{color:ze.colorSuccess},"&-error":{color:ze.colorError},"&-warning":{color:ze.colorWarning},"&-validating":{color:ze.colorPrimary}}})}},at=ze=>{const{componentCls:Ct,formItemCls:tn}=ze;return{[`${Ct}-horizontal`]:{[`${tn}-label`]:{flexGrow:0},[`${tn}-control`]:{flex:"1 1 0",minWidth:0},[`${tn}-label[class$='-24'], ${tn}-label[class*='-24 ']`]:{[`& + ${tn}-control`]:{minWidth:"unset"}}}}},vt=ze=>{const{componentCls:Ct,formItemCls:tn}=ze;return{[`${Ct}-inline`]:{display:"flex",flexWrap:"wrap",[tn]:{flex:"none",marginInlineEnd:ze.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${tn}-label,
|
|
|
> ${tn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${tn}-label`]:{flex:"none"},[`${Ct}-text`]:{display:"inline-block"},[`${tn}-has-feedback`]:{display:"inline-block"}}}}},Ce=ze=>({padding:ze.verticalLabelPadding,margin:ze.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ae=ze=>{const{componentCls:Ct,formItemCls:tn,rootPrefixCls:Kt}=ze;return{[`${tn} ${tn}-label`]:Ce(ze),[Ct]:{[tn]:{flexWrap:"wrap",[`${tn}-label, ${tn}-control`]:{[`&:not([class*=" ${Kt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ye=ze=>{const{componentCls:Ct,formItemCls:tn,rootPrefixCls:Kt}=ze;return{[`${Ct}-vertical`]:{[tn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Ct}-item-control`]:{width:"100%"}}},[`${Ct}-vertical ${tn}-label,
|
|
|
.${Kt}-col-24${tn}-label,
|
|
|
.${Kt}-col-xl-24${tn}-label`]:Ce(ze),[`@media (max-width: ${ze.screenXSMax}px)`]:[Ae(ze),{[Ct]:{[`.${Kt}-col-xs-24${tn}-label`]:Ce(ze)}}],[`@media (max-width: ${ze.screenSMMax}px)`]:{[Ct]:{[`.${Kt}-col-sm-24${tn}-label`]:Ce(ze)}},[`@media (max-width: ${ze.screenMDMax}px)`]:{[Ct]:{[`.${Kt}-col-md-24${tn}-label`]:Ce(ze)}},[`@media (max-width: ${ze.screenLGMax}px)`]:{[Ct]:{[`.${Kt}-col-lg-24${tn}-label`]:Ce(ze)}}}},Ve=(ze,Ct)=>(0,Ne.TS)(ze,{formItemCls:`${ze.componentCls}-item`,rootPrefixCls:Ct});var At=(0,mt.Z)("Form",(ze,Ct)=>{let{rootPrefixCls:tn}=Ct;const Kt=Ve(ze,tn);return[gt(Kt),nn(Kt),pt(Kt),at(Kt),vt(Kt),Ye(Kt),(0,ot.Z)(Kt),De.kr]},ze=>({labelRequiredMarkColor:ze.colorError,labelColor:ze.colorTextHeading,labelFontSize:ze.fontSize,labelHeight:ze.controlHeight,labelColonMarginInlineStart:ze.marginXXS/2,labelColonMarginInlineEnd:ze.marginXS,itemMarginBottom:ze.marginLG,verticalLabelPadding:`0 0 ${ze.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const xt=[];function Lt(ze,Ct,tn){let Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ze=="string"?ze:`${Ct}-${Kt}`,error:ze,errorStatus:tn}}var qt=ze=>{let{help:Ct,helpStatus:tn,errors:Kt=xt,warnings:hn=xt,className:gn,fieldId:Xn,onVisibleChanged:_r}=ze;const{prefixCls:lr}=ge.useContext(Ee.Rk),mr=`${lr}-item-explain`,[,Or]=At(lr),Rr=(0,ge.useMemo)(()=>(0,ke.Z)(lr),[lr]),Zr=xe(Kt),Kn=xe(hn),fr=ge.useMemo(()=>Ct!=null?[Lt(Ct,"help",tn)]:[].concat((0,ae.Z)(Zr.map((Sn,on)=>Lt(Sn,"error","error",on))),(0,ae.Z)(Kn.map((Sn,on)=>Lt(Sn,"warning","warning",on)))),[Ct,tn,Zr,Kn]),Mn={};return Xn&&(Mn.id=`${Xn}_help`),ge.createElement(rt.default,{motionDeadline:Rr.motionDeadline,motionName:`${lr}-show-help`,visible:!!fr.length,onVisibleChanged:_r},Sn=>{const{className:on,style:yr}=Sn;return ge.createElement("div",Object.assign({},Mn,{className:_e()(mr,on,gn,Or),style:yr,role:"alert"}),ge.createElement(rt.CSSMotionList,Object.assign({keys:fr},(0,ke.Z)(lr),{motionName:`${lr}-show-help-item`,component:!1}),Wr=>{const{key:Lr,error:qr,errorStatus:Cn,className:Er,style:vr}=Wr;return ge.createElement("div",{key:Lr,className:_e()(Er,{[`${mr}-${Cn}`]:Cn}),style:vr},qr)}))})},zt=se(46660),bn=se(53124),dn=se(98866),Wn=se(97647),rr=se(98675),ln=se(17423);const $e=["parentNode"],Se="form_item";function Bt(ze){return ze===void 0||ze===!1?[]:Array.isArray(ze)?ze:[ze]}function xn(ze,Ct){if(!ze.length)return;const tn=ze.join("_");return Ct?`${Ct}_${tn}`:$e.includes(tn)?`${Se}_${tn}`:tn}function Xt(ze,Ct,tn,Kt,hn,gn){let Xn=Kt;return gn!==void 0?Xn=gn:tn.validating?Xn="validating":ze.length?Xn="error":Ct.length?Xn="warning":(tn.touched||hn&&tn.validated)&&(Xn="success"),Xn}function ft(ze){return Bt(ze).join("_")}function yt(ze){const[Ct]=(0,zt.useForm)(),tn=ge.useRef({}),Kt=ge.useMemo(()=>ze!=null?ze:Object.assign(Object.assign({},Ct),{__INTERNAL__:{itemRef:hn=>gn=>{const Xn=ft(hn);gn?tn.current[Xn]=gn:delete tn.current[Xn]}},scrollToField:function(hn){let gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Xn=Bt(hn),_r=xn(Xn,Kt.__INTERNAL__.name),lr=_r?document.getElementById(_r):null;lr&&(0,ln.Z)(lr,Object.assign({scrollMode:"if-needed",block:"nearest"},gn))},getFieldInstance:hn=>{const gn=ft(hn);return tn.current[gn]}}),[ze,Ct]);return[Kt]}var Gt=se(37920),qn=function(ze,Ct){var tn={};for(var Kt in ze)Object.prototype.hasOwnProperty.call(ze,Kt)&&Ct.indexOf(Kt)<0&&(tn[Kt]=ze[Kt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Kt=Object.getOwnPropertySymbols(ze);hn<Kt.length;hn++)Ct.indexOf(Kt[hn])<0&&Object.prototype.propertyIsEnumerable.call(ze,Kt[hn])&&(tn[Kt[hn]]=ze[Kt[hn]]);return tn};const Dn=(ze,Ct)=>{const tn=ge.useContext(dn.Z),{getPrefixCls:Kt,direction:hn,form:gn}=ge.useContext(bn.E_),{prefixCls:Xn,className:_r,rootClassName:lr,size:mr,disabled:Or=tn,form:Rr,colon:Zr,labelAlign:Kn,labelWrap:fr,labelCol:Mn,wrapperCol:Sn,hideRequiredMark:on,layout:yr="horizontal",scrollToFirstError:Wr,requiredMark:Lr,onFinishFailed:qr,name:Cn,style:Er,feedbackIcons:vr}=ze,ta=qn(ze,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Hi=(0,rr.Z)(mr),Pi=ge.useContext(Gt.Z),Di=(0,ge.useMemo)(()=>Lr!==void 0?Lr:gn&&gn.requiredMark!==void 0?gn.requiredMark:!on,[on,Lr,gn]),qi=Zr!=null?Zr:gn==null?void 0:gn.colon,Ki=Kt("form",Xn),[di,na]=At(Ki),aa=_e()(Ki,`${Ki}-${yr}`,{[`${Ki}-hide-required-mark`]:Di===!1,[`${Ki}-rtl`]:hn==="rtl",[`${Ki}-${Hi}`]:Hi},na,gn==null?void 0:gn.className,_r,lr),[_i]=yt(Rr),{__INTERNAL__:Mi}=_i;Mi.name=Cn;const Sa=(0,ge.useMemo)(()=>({name:Cn,labelAlign:Kn,labelCol:Mn,labelWrap:fr,wrapperCol:Sn,vertical:yr==="vertical",colon:qi,requiredMark:Di,itemRef:Mi.itemRef,form:_i,feedbackIcons:vr}),[Cn,Kn,Mn,Sn,yr,qi,Di,_i,vr]);ge.useImperativeHandle(Ct,()=>_i);const Si=(Ft,Pt)=>{if(Ft){let pn={block:"nearest"};typeof Ft=="object"&&(pn=Ft),_i.scrollToField(Pt,pn)}},$r=Ft=>{if(qr==null||qr(Ft),Ft.errorFields.length){const Pt=Ft.errorFields[0].name;if(Wr!==void 0){Si(Wr,Pt);return}gn&&gn.scrollToFirstError!==void 0&&Si(gn.scrollToFirstError,Pt)}};return di(ge.createElement(dn.n,{disabled:Or},ge.createElement(Wn.q,{size:Hi},ge.createElement(Ee.RV,Object.assign({},{validateMessages:Pi}),ge.createElement(Ee.q3.Provider,{value:Sa},ge.createElement(zt.default,Object.assign({id:Cn},ta,{name:Cn,onFinishFailed:$r,form:_i,style:Object.assign(Object.assign({},gn==null?void 0:gn.style),Er),className:aa})))))))};var mn=ge.forwardRef(Dn),Vn=se(9475),kn=se(17799),Pe=se(96159),fe=se(37419);function ce(ze){if(typeof ze=="function")return ze;const Ct=(0,fe.Z)(ze);return Ct.length<=1?Ct[0]:Ct}const he=()=>{const{status:ze,errors:Ct=[],warnings:tn=[]}=(0,ge.useContext)(Ee.aM);return{status:ze,errors:Ct,warnings:tn}};he.Context=Ee.aM;var ue=he,le=se(96523);function Me(ze){const[Ct,tn]=ge.useState(ze),Kt=(0,ge.useRef)(null),hn=(0,ge.useRef)([]),gn=(0,ge.useRef)(!1);ge.useEffect(()=>(gn.current=!1,()=>{gn.current=!0,le.Z.cancel(Kt.current),Kt.current=null}),[]);function Xn(_r){gn.current||(Kt.current===null&&(hn.current=[],Kt.current=(0,le.Z)(()=>{Kt.current=null,tn(lr=>{let mr=lr;return hn.current.forEach(Or=>{mr=Or(mr)}),mr})})),hn.current.push(_r))}return[Ct,Xn]}function Ge(){const{itemRef:ze}=ge.useContext(Ee.q3),Ct=ge.useRef({});function tn(Kt,hn){const gn=hn&&typeof hn=="object"&&hn.ref,Xn=Kt.join("_");return(Ct.current.name!==Xn||Ct.current.originRef!==gn)&&(Ct.current.name=Xn,Ct.current.originRef=gn,Ct.current.ref=(0,kn.sQ)(ze(Kt),gn)),Ct.current.ref}return tn}var St=se(48130),Ht=se(14075),Yt=se(10366),Vt=se(92820),sn=se(21584);const it=ze=>{const{formItemCls:Ct}=ze;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ct}-control`]:{display:"flex"}}}};var Mt=(0,mt.b)(["Form","item-item"],(ze,Ct)=>{let{rootPrefixCls:tn}=Ct;const Kt=Ve(ze,tn);return[it(Kt)]}),$t=ze=>{const{prefixCls:Ct,status:tn,wrapperCol:Kt,children:hn,errors:gn,warnings:Xn,_internalItemRender:_r,extra:lr,help:mr,fieldId:Or,marginBottom:Rr,onErrorVisibleChanged:Zr}=ze,Kn=`${Ct}-item`,fr=ge.useContext(Ee.q3),Mn=Kt||fr.wrapperCol||{},Sn=_e()(`${Kn}-control`,Mn.className),on=ge.useMemo(()=>Object.assign({},fr),[fr]);delete on.labelCol,delete on.wrapperCol;const yr=ge.createElement("div",{className:`${Kn}-control-input`},ge.createElement("div",{className:`${Kn}-control-input-content`},hn)),Wr=ge.useMemo(()=>({prefixCls:Ct,status:tn}),[Ct,tn]),Lr=Rr!==null||gn.length||Xn.length?ge.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ge.createElement(Ee.Rk.Provider,{value:Wr},ge.createElement(qt,{fieldId:Or,errors:gn,warnings:Xn,help:mr,helpStatus:tn,className:`${Kn}-explain-connected`,onVisibleChanged:Zr})),!!Rr&&ge.createElement("div",{style:{width:0,height:Rr}})):null,qr={};Or&&(qr.id=`${Or}_extra`);const Cn=lr?ge.createElement("div",Object.assign({},qr,{className:`${Kn}-extra`}),lr):null,Er=_r&&_r.mark==="pro_table_render"&&_r.render?_r.render(ze,{input:yr,errorList:Lr,extra:Cn}):ge.createElement(ge.Fragment,null,yr,Lr,Cn);return ge.createElement(Ee.q3.Provider,{value:on},ge.createElement(sn.Z,Object.assign({},Mn,{className:Sn}),Er),ge.createElement(Mt,{prefixCls:Ct}))},bt=se(17663),_n=se(24457),ct=se(10110),Dt=se(83062),En=function(ze,Ct){var tn={};for(var Kt in ze)Object.prototype.hasOwnProperty.call(ze,Kt)&&Ct.indexOf(Kt)<0&&(tn[Kt]=ze[Kt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Kt=Object.getOwnPropertySymbols(ze);hn<Kt.length;hn++)Ct.indexOf(Kt[hn])<0&&Object.prototype.propertyIsEnumerable.call(ze,Kt[hn])&&(tn[Kt[hn]]=ze[Kt[hn]]);return tn};function wn(ze){return ze?typeof ze=="object"&&!ge.isValidElement(ze)?ze:{title:ze}:null}var Qn=ze=>{let{prefixCls:Ct,label:tn,htmlFor:Kt,labelCol:hn,labelAlign:gn,colon:Xn,required:_r,requiredMark:lr,tooltip:mr}=ze;var Or;const[Rr]=(0,ct.Z)("Form"),{vertical:Zr,labelAlign:Kn,labelCol:fr,labelWrap:Mn,colon:Sn}=ge.useContext(Ee.q3);if(!tn)return null;const on=hn||fr||{},yr=gn||Kn,Wr=`${Ct}-item-label`,Lr=_e()(Wr,yr==="left"&&`${Wr}-left`,on.className,{[`${Wr}-wrap`]:!!Mn});let qr=tn;const Cn=Xn===!0||Sn!==!1&&Xn!==!1;Cn&&!Zr&&typeof tn=="string"&&tn.trim()!==""&&(qr=tn.replace(/[:|:]\s*$/,""));const vr=wn(mr);if(vr){const{icon:Di=ge.createElement(bt.Z,null)}=vr,qi=En(vr,["icon"]),Ki=ge.createElement(Dt.Z,Object.assign({},qi),ge.cloneElement(Di,{className:`${Ct}-item-tooltip`,title:""}));qr=ge.createElement(ge.Fragment,null,qr,Ki)}const ta=lr==="optional",Hi=typeof lr=="function";Hi?qr=lr(qr,{required:!!_r}):ta&&!_r&&(qr=ge.createElement(ge.Fragment,null,qr,ge.createElement("span",{className:`${Ct}-item-optional`,title:""},(Rr==null?void 0:Rr.optional)||((Or=_n.Z.Form)===null||Or===void 0?void 0:Or.optional))));const Pi=_e()({[`${Ct}-item-required`]:_r,[`${Ct}-item-required-mark-optional`]:ta||Hi,[`${Ct}-item-no-colon`]:!Cn});return ge.createElement(sn.Z,Object.assign({},on,{className:Lr}),ge.createElement("label",{htmlFor:Kt,className:Pi,title:typeof tn=="string"?tn:""},qr))},wr=se(87725),br=se(16646),Sr=se(87995),Yn=se(3407);const ir={success:wr.Z,warning:Sr.Z,error:br.Z,validating:Yn.Z};function Dr(ze){let{children:Ct,errors:tn,warnings:Kt,hasFeedback:hn,validateStatus:gn,prefixCls:Xn,meta:_r,noStyle:lr}=ze;const mr=`${Xn}-item`,{feedbackIcons:Or}=ge.useContext(Ee.q3),Rr=Xt(tn,Kt,_r,null,!!hn,gn),{isFormItemInput:Zr,status:Kn}=ge.useContext(Ee.aM),fr=ge.useMemo(()=>{var Mn;let Sn;if(hn){const Wr=hn!==!0&&hn.icons||Or,Lr=Rr&&((Mn=Wr==null?void 0:Wr({status:Rr,errors:tn,warnings:Kt}))===null||Mn===void 0?void 0:Mn[Rr]),qr=Rr&&ir[Rr];Sn=Lr!==!1&&qr?ge.createElement("span",{className:_e()(`${mr}-feedback-icon`,`${mr}-feedback-icon-${Rr}`)},Lr||ge.createElement(qr,null)):null}let on=!0,yr=Rr||"";return lr&&(on=Zr,yr=(Rr!=null?Rr:Kn)||""),{status:yr,errors:tn,warnings:Kt,hasFeedback:!!hn,feedbackIcon:Sn,isFormItemInput:on}},[Rr,hn,lr,Zr,Kn]);return ge.createElement(Ee.aM.Provider,{value:fr},Ct)}var ti=function(ze,Ct){var tn={};for(var Kt in ze)Object.prototype.hasOwnProperty.call(ze,Kt)&&Ct.indexOf(Kt)<0&&(tn[Kt]=ze[Kt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Kt=Object.getOwnPropertySymbols(ze);hn<Kt.length;hn++)Ct.indexOf(Kt[hn])<0&&Object.prototype.propertyIsEnumerable.call(ze,Kt[hn])&&(tn[Kt[hn]]=ze[Kt[hn]]);return tn};function Ai(ze){const{prefixCls:Ct,className:tn,rootClassName:Kt,style:hn,help:gn,errors:Xn,warnings:_r,validateStatus:lr,meta:mr,hasFeedback:Or,hidden:Rr,children:Zr,fieldId:Kn,required:fr,isRequired:Mn,onSubItemMetaChange:Sn}=ze,on=ti(ze,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),yr=`${Ct}-item`,{requiredMark:Wr}=ge.useContext(Ee.q3),Lr=ge.useRef(null),qr=xe(Xn),Cn=xe(_r),Er=gn!=null,vr=!!(Er||Xn.length||_r.length),ta=!!Lr.current&&(0,St.Z)(Lr.current),[Hi,Pi]=ge.useState(null);(0,Ht.Z)(()=>{if(vr&&Lr.current){const na=getComputedStyle(Lr.current);Pi(parseInt(na.marginBottom,10))}},[vr,ta]);const Di=na=>{na||Pi(null)},Ki=function(){let na=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const aa=na?qr:mr.errors,_i=na?Cn:mr.warnings;return Xt(aa,_i,mr,"",!!Or,lr)}(),di=_e()(yr,tn,Kt,{[`${yr}-with-help`]:Er||qr.length||Cn.length,[`${yr}-has-feedback`]:Ki&&Or,[`${yr}-has-success`]:Ki==="success",[`${yr}-has-warning`]:Ki==="warning",[`${yr}-has-error`]:Ki==="error",[`${yr}-is-validating`]:Ki==="validating",[`${yr}-hidden`]:Rr});return ge.createElement("div",{className:di,style:hn,ref:Lr},ge.createElement(Vt.Z,Object.assign({className:`${yr}-row`},(0,Yt.Z)(on,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),ge.createElement(Qn,Object.assign({htmlFor:Kn},ze,{requiredMark:Wr,required:fr!=null?fr:Mn,prefixCls:Ct})),ge.createElement($t,Object.assign({},ze,mr,{errors:qr,warnings:Cn,prefixCls:Ct,status:Ki,help:gn,marginBottom:Hi,onErrorVisibleChanged:Di}),ge.createElement(Ee.qI.Provider,{value:Sn},ge.createElement(Dr,{prefixCls:Ct,meta:mr,errors:mr.errors,warnings:mr.warnings,hasFeedback:Or,validateStatus:Ki},Zr)))),!!Hi&&ge.createElement("div",{className:`${yr}-margin-offset`,style:{marginBottom:-Hi}}))}const tr="__SPLIT__",Jr=null,kt=ge.memo(ze=>{let{children:Ct}=ze;return Ct},(ze,Ct)=>ze.value===Ct.value&&ze.update===Ct.update&&ze.childProps.length===Ct.childProps.length&&ze.childProps.every((tn,Kt)=>tn===Ct.childProps[Kt]));function vn(ze){return ze!=null}function Rn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function In(ze){const{name:Ct,noStyle:tn,className:Kt,dependencies:hn,prefixCls:gn,shouldUpdate:Xn,rules:_r,children:lr,required:mr,label:Or,messageVariables:Rr,trigger:Zr="onChange",validateTrigger:Kn,hidden:fr,help:Mn}=ze,{getPrefixCls:Sn}=ge.useContext(bn.E_),{name:on}=ge.useContext(Ee.q3),yr=ce(lr),Wr=typeof yr=="function",Lr=ge.useContext(Ee.qI),{validateTrigger:qr}=ge.useContext(zt.FieldContext),Cn=Kn!==void 0?Kn:qr,Er=vn(Ct),vr=Sn("form",gn),[ta,Hi]=At(vr),Pi=ge.useContext(zt.ListContext),Di=ge.useRef(),[qi,Ki]=Me({}),[di,na]=(0,Vn.Z)(()=>Rn()),aa=Pt=>{const pn=Pi==null?void 0:Pi.getKey(Pt.name);if(na(Pt.destroy?Rn():Pt,!0),tn&&Mn!==!1&&Lr){let Pn=Pt.name;if(Pt.destroy)Pn=Di.current||Pn;else if(pn!==void 0){const[cr,Gr]=pn;Pn=[cr].concat((0,ae.Z)(Gr)),Di.current=Pn}Lr(Pt,Pn)}},_i=(Pt,pn)=>{Ki(Pn=>{const cr=Object.assign({},Pn),Xr=[].concat((0,ae.Z)(Pt.name.slice(0,-1)),(0,ae.Z)(pn)).join(tr);return Pt.destroy?delete cr[Xr]:cr[Xr]=Pt,cr})},[Mi,Sa]=ge.useMemo(()=>{const Pt=(0,ae.Z)(di.errors),pn=(0,ae.Z)(di.warnings);return Object.values(qi).forEach(Pn=>{Pt.push.apply(Pt,(0,ae.Z)(Pn.errors||[])),pn.push.apply(pn,(0,ae.Z)(Pn.warnings||[]))}),[Pt,pn]},[qi,di.errors,di.warnings]),Si=Ge();function $r(Pt,pn,Pn){return tn&&!fr?ge.createElement(Dr,{prefixCls:vr,hasFeedback:ze.hasFeedback,validateStatus:ze.validateStatus,meta:di,errors:Mi,warnings:Sa,noStyle:!0},Pt):ge.createElement(Ai,Object.assign({key:"row"},ze,{className:_e()(Kt,Hi),prefixCls:vr,fieldId:pn,isRequired:Pn,errors:Mi,warnings:Sa,meta:di,onSubItemMetaChange:_i}),Pt)}if(!Er&&!Wr&&!hn)return ta($r(yr));let Ft={};return typeof Or=="string"?Ft.label=Or:Ct&&(Ft.label=String(Ct)),Rr&&(Ft=Object.assign(Object.assign({},Ft),Rr)),ta(ge.createElement(zt.Field,Object.assign({},ze,{messageVariables:Ft,trigger:Zr,validateTrigger:Cn,onMetaChange:aa}),(Pt,pn,Pn)=>{const cr=Bt(Ct).length&&pn?pn.name:[],Gr=xn(cr,on),Xr=mr!==void 0?mr:!!(_r&&_r.some(ur=>{if(ur&&typeof ur=="object"&&ur.required&&!ur.warningOnly)return!0;if(typeof ur=="function"){const li=ur(Pn);return li&&li.required&&!li.warningOnly}return!1})),oi=Object.assign({},Pt);let jt=null;if(Array.isArray(yr)&&Er)jt=yr;else if(!(Wr&&(!(Xn||hn)||Er))){if(!(hn&&!Wr&&!Er))if((0,Pe.l$)(yr)){const ur=Object.assign(Object.assign({},yr.props),oi);if(ur.id||(ur.id=Gr),Mn||Mi.length>0||Sa.length>0||ze.extra){const Oi=[];(Mn||Mi.length>0)&&Oi.push(`${Gr}_help`),ze.extra&&Oi.push(`${Gr}_extra`),ur["aria-describedby"]=Oi.join(" ")}Mi.length>0&&(ur["aria-invalid"]="true"),Xr&&(ur["aria-required"]="true"),(0,kn.Yr)(yr)&&(ur.ref=Si(cr,yr)),new Set([].concat((0,ae.Z)(Bt(Zr)),(0,ae.Z)(Bt(Cn)))).forEach(Oi=>{ur[Oi]=function(){for(var ra,hr,Qi,Re,Ze,je=arguments.length,et=new Array(je),Et=0;Et<je;Et++)et[Et]=arguments[Et];(Qi=oi[Oi])===null||Qi===void 0||(ra=Qi).call.apply(ra,[oi].concat(et)),(Ze=(Re=yr.props)[Oi])===null||Ze===void 0||(hr=Ze).call.apply(hr,[Re].concat(et))}});const ci=[ur["aria-required"],ur["aria-invalid"],ur["aria-describedby"]];jt=ge.createElement(kt,{value:oi[ze.valuePropName||"value"],update:yr,childProps:ci},(0,Pe.Tm)(yr,ur))}else Wr&&(Xn||hn)&&!Er?jt=yr(Pn):jt=yr}return $r(jt,Gr,Xr)}))}const nr=In;nr.useStatus=ue;var gr=nr,sr=function(ze,Ct){var tn={};for(var Kt in ze)Object.prototype.hasOwnProperty.call(ze,Kt)&&Ct.indexOf(Kt)<0&&(tn[Kt]=ze[Kt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Kt=Object.getOwnPropertySymbols(ze);hn<Kt.length;hn++)Ct.indexOf(Kt[hn])<0&&Object.prototype.propertyIsEnumerable.call(ze,Kt[hn])&&(tn[Kt[hn]]=ze[Kt[hn]]);return tn},qe=ze=>{var{prefixCls:Ct,children:tn}=ze,Kt=sr(ze,["prefixCls","children"]);const{getPrefixCls:hn}=ge.useContext(bn.E_),gn=hn("form",Ct),Xn=ge.useMemo(()=>({prefixCls:gn,status:"error"}),[gn]);return ge.createElement(zt.List,Object.assign({},Kt),(_r,lr,mr)=>ge.createElement(Ee.Rk.Provider,{value:Xn},tn(_r.map(Or=>Object.assign(Object.assign({},Or),{fieldKey:Or.key})),lr,{errors:mr.errors,warnings:mr.warnings})))};function wt(){const{form:ze}=(0,ge.useContext)(Ee.q3);return ze}const Zt=mn;Zt.Item=gr,Zt.List=qe,Zt.ErrorList=qt,Zt.useForm=yt,Zt.useFormInstance=wt,Zt.useWatch=zt.useWatch,Zt.Provider=Ee.RV,Zt.create=()=>{};var an=Zt},25378:function(yn,fn,se){"use strict";var ae=se(67294),Le=se(14075),_e=se(57838),rt=se(74443);function ge(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Ee=(0,ae.useRef)({}),xe=(0,_e.Z)(),me=(0,rt.ZP)();return(0,Le.Z)(()=>{const De=me.subscribe(ot=>{Ee.current=ot,ke&&xe()});return()=>me.unsubscribe(De)},[]),Ee.current}fn.Z=ge},99398:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Ir}});var ae=se(67294),Le=se.t(ae,2),_e=se(99569),rt=se(94184),ge=se.n(rt),ke=se(87462),Ee=se(1413),xe=se(4942),me=se(97685),De=se(71002),ot=se(45987),Ne=/margin|padding|width|height|max|min|offset/,mt={left:!0,top:!0},dt={cssFloat:1,styleFloat:1,float:1};function pt(Ue){return Ue.nodeType===1?Ue.ownerDocument.defaultView.getComputedStyle(Ue,null):{}}function Je(Ue,We,we){if(We=We.toLowerCase(),we==="auto"){if(We==="height")return Ue.offsetHeight;if(We==="width")return Ue.offsetWidth}return We in mt||(mt[We]=Ne.test(We)),mt[We]?parseFloat(we)||0:we}function Be(Ue,We){var we=arguments.length,Oe=pt(Ue);return We=dt[We]?"cssFloat"in Ue.style?"cssFloat":"styleFloat":We,we===1?Oe:Je(Ue,We,Oe[We]||Ue.style[We])}function gt(Ue,We,we){var Oe=arguments.length;if(We=dt[We]?"cssFloat"in Ue.style?"cssFloat":"styleFloat":We,Oe===3)return typeof we=="number"&&Ne.test(We)&&(we="".concat(we,"px")),Ue.style[We]=we,we;for(var st in We)We.hasOwnProperty(st)&>(Ue,st,We[st]);return pt(Ue)}function nn(Ue){return Ue===document.body?document.documentElement.clientWidth:Ue.offsetWidth}function at(Ue){return Ue===document.body?window.innerHeight||document.documentElement.clientHeight:Ue.offsetHeight}function vt(){var Ue=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),We=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ue,height:We}}function Ce(){var Ue=document.documentElement.clientWidth,We=window.innerHeight||document.documentElement.clientHeight;return{width:Ue,height:We}}function Ae(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ye(Ue){var We=Ue.getBoundingClientRect(),we=document.documentElement;return{left:We.left+(window.pageXOffset||we.scrollLeft)-(we.clientLeft||document.body.clientLeft||0),top:We.top+(window.pageYOffset||we.scrollTop)-(we.clientTop||document.body.clientTop||0)}}function Ve(Ue){var We=ae.useRef();We.current=Ue;var we=ae.useCallback(function(){for(var Oe,st=arguments.length,tt=new Array(st),_t=0;_t<st;_t++)tt[_t]=arguments[_t];return(Oe=We.current)===null||Oe===void 0?void 0:Oe.call.apply(Oe,[We].concat(tt))},[]);return we}function At(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var xt=At()?ae.useLayoutEffect:ae.useEffect,Lt=function(We,we){var Oe=ae.useRef(!0);xt(function(){return We(Oe.current)},we),xt(function(){return Oe.current=!1,function(){Oe.current=!0}},[])},nt=function(We,we){Lt(function(Oe){if(!Oe)return We()},we)},qt=null;function zt(Ue){var We=ae.useRef(!1),we=ae.useState(Ue),Oe=(0,me.Z)(we,2),st=Oe[0],tt=Oe[1];ae.useEffect(function(){return We.current=!1,function(){We.current=!0}},[]);function _t(rn,Xe){Xe&&We.current||tt(rn)}return[st,_t]}function bn(Ue){return Ue!==void 0}function dn(Ue,We){var we=We||{},Oe=we.defaultValue,st=we.value,tt=we.onChange,_t=we.postState,rn=zt(function(){return bn(st)?st:bn(Oe)?typeof Oe=="function"?Oe():Oe:typeof Ue=="function"?Ue():Ue}),Xe=(0,me.Z)(rn,2),Qe=Xe[0],lt=Xe[1],ut=st!==void 0?st:Qe,en=_t?_t(ut):ut,cn=Ve(tt),Wt=zt([ut]),un=(0,me.Z)(Wt,2),On=un[0],ar=un[1];nt(function(){var An=On[0];Qe!==An&&cn(Qe,An)},[On]),nt(function(){bn(st)||lt(st)},[st]);var Fn=Ve(function(An,Zn){lt(An,Zn),ar([ut],Zn)});return[en,Fn]}var Wn=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],rr=ae.createContext(null),ln=0;function $e(Ue,We){var we=ae.useState(function(){return ln+=1,String(ln)}),Oe=(0,me.Z)(we,1),st=Oe[0],tt=ae.useContext(rr),_t={data:We,canPreview:Ue};return ae.useEffect(function(){if(tt)return tt.register(st,_t)},[]),ae.useEffect(function(){tt&&tt.register(st,_t)},[Ue,We]),st}function Se(Ue){return new Promise(function(We){var we=document.createElement("img");we.onerror=function(){return We(!1)},we.onload=function(){return We(!0)},we.src=Ue})}function Bt(Ue){var We=Ue.src,we=Ue.isCustomPlaceholder,Oe=Ue.fallback,st=(0,ae.useState)(we?"loading":"normal"),tt=(0,me.Z)(st,2),_t=tt[0],rn=tt[1],Xe=(0,ae.useRef)(!1),Qe=_t==="error";(0,ae.useEffect)(function(){Se(We).then(function(cn){cn||rn("error")})},[We]),(0,ae.useEffect)(function(){we&&!Xe.current?rn("loading"):Qe&&rn("normal")},[We]);var lt=function(){rn("normal")},ut=function(Wt){Xe.current=!1,_t==="loading"&&Wt!=null&&Wt.complete&&(Wt.naturalWidth||Wt.naturalHeight)&&(Xe.current=!0,lt())},en=Qe&&Oe?{src:Oe}:{onLoad:lt,src:We};return[ut,en,_t]}var xn=se(2788),Xt=ae.createContext({});function ft(Ue,We){if(!Ue)return!1;if(Ue.contains)return Ue.contains(We);for(var we=We;we;){if(we===Ue)return!0;we=we.parentNode}return!1}function yt(){var Ue=(0,Ee.Z)({},Le);return Ue.useId}var Gt=0;function qn(){}function Dn(Ue){var We=ae.useState("ssr-id"),we=(0,me.Z)(We,2),Oe=we[0],st=we[1],tt=yt(),_t=tt==null?void 0:tt();return ae.useEffect(function(){if(!tt){var rn=Gt;Gt+=1,st("rc_unique_".concat(rn))}},[]),Ue||_t||Oe}var Tt={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(We){var we=We.keyCode;if(We.altKey&&!We.ctrlKey||We.metaKey||we>=Tt.F1&&we<=Tt.F12)return!1;switch(we){case Tt.ALT:case Tt.CAPS_LOCK:case Tt.CONTEXT_MENU:case Tt.CTRL:case Tt.DOWN:case Tt.END:case Tt.ESC:case Tt.HOME:case Tt.INSERT:case Tt.LEFT:case Tt.MAC_FF_META:case Tt.META:case Tt.NUMLOCK:case Tt.NUM_CENTER:case Tt.PAGE_DOWN:case Tt.PAGE_UP:case Tt.PAUSE:case Tt.PRINT_SCREEN:case Tt.RIGHT:case Tt.SHIFT:case Tt.UP:case Tt.WIN_KEY:case Tt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(We){if(We>=Tt.ZERO&&We<=Tt.NINE||We>=Tt.NUM_ZERO&&We<=Tt.NUM_MULTIPLY||We>=Tt.A&&We<=Tt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&We===0)return!0;switch(We){case Tt.SPACE:case Tt.QUESTION_MARK:case Tt.NUM_PLUS:case Tt.NUM_MINUS:case Tt.NUM_PERIOD:case Tt.NUM_DIVISION:case Tt.SEMICOLON:case Tt.DASH:case Tt.EQUALS:case Tt.COMMA:case Tt.PERIOD:case Tt.SLASH:case Tt.APOSTROPHE:case Tt.SINGLE_QUOTE:case Tt.OPEN_SQUARE_BRACKET:case Tt.BACKSLASH:case Tt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},mn=Tt,Vn=`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`,kn=`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`,Pe="".concat(Vn," ").concat(kn).split(/[\s\n]+/),fe="aria-",ce="data-";function he(Ue,We){return Ue.indexOf(We)===0}function ue(Ue){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,we;We===!1?we={aria:!0,data:!0,attr:!0}:We===!0?we={aria:!0}:we=(0,Ee.Z)({},We);var Oe={};return Object.keys(Ue).forEach(function(st){(we.aria&&(st==="role"||he(st,fe))||we.data&&he(st,ce)||we.attr&&Pe.includes(st))&&(Oe[st]=Ue[st])}),Oe}function le(Ue,We,we){var Oe=We;return!Oe&&we&&(Oe="".concat(Ue,"-").concat(we)),Oe}function Me(Ue,We){var we=Ue["page".concat(We?"Y":"X","Offset")],Oe="scroll".concat(We?"Top":"Left");if(typeof we!="number"){var st=Ue.document;we=st.documentElement[Oe],typeof we!="number"&&(we=st.body[Oe])}return we}function Ge(Ue){var We=Ue.getBoundingClientRect(),we={left:We.left,top:We.top},Oe=Ue.ownerDocument,st=Oe.defaultView||Oe.parentWindow;return we.left+=Me(st),we.top+=Me(st,!0),we}var St=se(62874),Ht=se(59864);function Yt(Ue,We,we){var Oe=ae.useRef({});return(!("value"in Oe.current)||we(Oe.current.condition,We))&&(Oe.current.value=Ue(),Oe.current.condition=We),Oe.current.value}function Vt(Ue,We){typeof Ue=="function"?Ue(We):(0,De.Z)(Ue)==="object"&&Ue&&"current"in Ue&&(Ue.current=We)}function sn(){for(var Ue=arguments.length,We=new Array(Ue),we=0;we<Ue;we++)We[we]=arguments[we];var Oe=We.filter(function(st){return st});return Oe.length<=1?Oe[0]:function(st){We.forEach(function(tt){Vt(tt,st)})}}function it(){for(var Ue=arguments.length,We=new Array(Ue),we=0;we<Ue;we++)We[we]=arguments[we];return Yt(function(){return sn.apply(void 0,We)},We,function(Oe,st){return Oe.length===st.length&&Oe.every(function(tt,_t){return tt===st[_t]})})}function Mt(Ue){var We,we,Oe=isMemo(Ue)?Ue.type.type:Ue.type;return!(typeof Oe=="function"&&!((We=Oe.prototype)!==null&&We!==void 0&&We.render)||typeof Ue=="function"&&!((we=Ue.prototype)!==null&&we!==void 0&&we.render))}var Ot=ae.memo(function(Ue){var We=Ue.children;return We},function(Ue,We){var we=We.shouldUpdate;return!we}),$t={width:0,height:0,overflow:"hidden",outline:"none"},bt=ae.forwardRef(function(Ue,We){var we=Ue.prefixCls,Oe=Ue.className,st=Ue.style,tt=Ue.title,_t=Ue.ariaId,rn=Ue.footer,Xe=Ue.closable,Qe=Ue.closeIcon,lt=Ue.onClose,ut=Ue.children,en=Ue.bodyStyle,cn=Ue.bodyProps,Wt=Ue.modalRender,un=Ue.onMouseDown,On=Ue.onMouseUp,ar=Ue.holderRef,Fn=Ue.visible,An=Ue.forceRender,Zn=Ue.width,or=Ue.height,Tr=ae.useContext(Xt),pr=Tr.panel,zn=it(ar,pr),Pr=(0,ae.useRef)(),Fr=(0,ae.useRef)();ae.useImperativeHandle(We,function(){return{focus:function(){var bi;(bi=Pr.current)===null||bi===void 0||bi.focus()},changeActive:function(bi){var Yr=document,ii=Yr.activeElement;bi&&ii===Fr.current?Pr.current.focus():!bi&&ii===Pr.current&&Fr.current.focus()}}});var si={};Zn!==void 0&&(si.width=Zn),or!==void 0&&(si.height=or);var pi;rn&&(pi=ae.createElement("div",{className:"".concat(we,"-footer")},rn));var hi;tt&&(hi=ae.createElement("div",{className:"".concat(we,"-header")},ae.createElement("div",{className:"".concat(we,"-title"),id:_t},tt)));var ki;Xe&&(ki=ae.createElement("button",{type:"button",onClick:lt,"aria-label":"Close",className:"".concat(we,"-close")},Qe||ae.createElement("span",{className:"".concat(we,"-close-x")})));var Ni=ae.createElement("div",{className:"".concat(we,"-content")},ki,hi,ae.createElement("div",(0,ke.Z)({className:"".concat(we,"-body"),style:en},cn),ut),pi);return ae.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":tt?_t:null,"aria-modal":"true",ref:zn,style:(0,Ee.Z)((0,Ee.Z)({},st),si),className:ge()(we,Oe),onMouseDown:un,onMouseUp:On},ae.createElement("div",{tabIndex:0,ref:Pr,style:$t,"aria-hidden":"true"}),ae.createElement(Ot,{shouldUpdate:Fn||An},Wt?Wt(Ni):Ni),ae.createElement("div",{tabIndex:0,ref:Fr,style:$t,"aria-hidden":"true"}))}),_n=bt,ct=ae.forwardRef(function(Ue,We){var we=Ue.prefixCls,Oe=Ue.title,st=Ue.style,tt=Ue.className,_t=Ue.visible,rn=Ue.forceRender,Xe=Ue.destroyOnClose,Qe=Ue.motionName,lt=Ue.ariaId,ut=Ue.onVisibleChanged,en=Ue.mousePosition,cn=(0,ae.useRef)(),Wt=ae.useState(),un=(0,me.Z)(Wt,2),On=un[0],ar=un[1],Fn={};On&&(Fn.transformOrigin=On);function An(){var Zn=Ge(cn.current);ar(en?"".concat(en.x-Zn.left,"px ").concat(en.y-Zn.top,"px"):"")}return ae.createElement(St.Z,{visible:_t,onVisibleChanged:ut,onAppearPrepare:An,onEnterPrepare:An,forceRender:rn,motionName:Qe,removeOnLeave:Xe,ref:cn},function(Zn,or){var Tr=Zn.className,pr=Zn.style;return ae.createElement(_n,(0,ke.Z)({},Ue,{ref:We,title:Oe,ariaId:lt,prefixCls:we,holderRef:or,style:(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},pr),st),Fn),className:ge()(tt,Tr)}))})});ct.displayName="Content";var Dt=ct;function En(Ue){var We=Ue.prefixCls,we=Ue.style,Oe=Ue.visible,st=Ue.maskProps,tt=Ue.motionName;return ae.createElement(St.Z,{key:"mask",visible:Oe,motionName:tt,leavedClassName:"".concat(We,"-mask-hidden")},function(_t,rn){var Xe=_t.className,Qe=_t.style;return ae.createElement("div",(0,ke.Z)({ref:rn,style:(0,Ee.Z)((0,Ee.Z)({},Qe),we),className:ge()("".concat(We,"-mask"),Xe)},st))})}function wn(Ue){var We=Ue.prefixCls,we=We===void 0?"rc-dialog":We,Oe=Ue.zIndex,st=Ue.visible,tt=st===void 0?!1:st,_t=Ue.keyboard,rn=_t===void 0?!0:_t,Xe=Ue.focusTriggerAfterClose,Qe=Xe===void 0?!0:Xe,lt=Ue.wrapStyle,ut=Ue.wrapClassName,en=Ue.wrapProps,cn=Ue.onClose,Wt=Ue.afterOpenChange,un=Ue.afterClose,On=Ue.transitionName,ar=Ue.animation,Fn=Ue.closable,An=Fn===void 0?!0:Fn,Zn=Ue.mask,or=Zn===void 0?!0:Zn,Tr=Ue.maskTransitionName,pr=Ue.maskAnimation,zn=Ue.maskClosable,Pr=zn===void 0?!0:zn,Fr=Ue.maskStyle,si=Ue.maskProps,pi=Ue.rootClassName,hi=(0,ae.useRef)(),ki=(0,ae.useRef)(),Ni=(0,ae.useRef)(),mi=ae.useState(tt),bi=(0,me.Z)(mi,2),Yr=bi[0],ii=bi[1],xi=Dn();function Ii(){ft(ki.current,document.activeElement)||(hi.current=document.activeElement)}function ha(){if(!ft(ki.current,document.activeElement)){var vi;(vi=Ni.current)===null||vi===void 0||vi.focus()}}function da(vi){if(vi)ha();else{if(ii(!1),or&&hi.current&&Qe){try{hi.current.focus({preventScroll:!0})}catch(Ji){}hi.current=null}Yr&&(un==null||un())}Wt==null||Wt(vi)}function ji(vi){cn==null||cn(vi)}var Xi=(0,ae.useRef)(!1),Ci=(0,ae.useRef)(),gi=function(){clearTimeout(Ci.current),Xi.current=!0},la=function(){Ci.current=setTimeout(function(){Xi.current=!1})},Ei=null;Pr&&(Ei=function(Ji){Xi.current?Xi.current=!1:ki.current===Ji.target&&ji(Ji)});function Ur(vi){if(rn&&vi.keyCode===mn.ESC){vi.stopPropagation(),ji(vi);return}tt&&vi.keyCode===mn.TAB&&Ni.current.changeActive(!vi.shiftKey)}return(0,ae.useEffect)(function(){tt&&(ii(!0),Ii())},[tt]),(0,ae.useEffect)(function(){return function(){clearTimeout(Ci.current)}},[]),ae.createElement("div",(0,ke.Z)({className:ge()("".concat(we,"-root"),pi)},ue(Ue,{data:!0})),ae.createElement(En,{prefixCls:we,visible:or&&tt,motionName:le(we,Tr,pr),style:(0,Ee.Z)({zIndex:Oe},Fr),maskProps:si}),ae.createElement("div",(0,ke.Z)({tabIndex:-1,onKeyDown:Ur,className:ge()("".concat(we,"-wrap"),ut),ref:ki,onClick:Ei,style:(0,Ee.Z)((0,Ee.Z)({zIndex:Oe},lt),{},{display:Yr?null:"none"})},en),ae.createElement(Dt,(0,ke.Z)({},Ue,{onMouseDown:gi,onMouseUp:la,ref:Ni,closable:An,ariaId:xi,prefixCls:we,visible:tt&&Yr,onClose:ji,onVisibleChanged:da,motionName:le(we,On,ar)}))))}var Bn=function(We){var we=We.visible,Oe=We.getContainer,st=We.forceRender,tt=We.destroyOnClose,_t=tt===void 0?!1:tt,rn=We.afterClose,Xe=We.panelRef,Qe=ae.useState(we),lt=(0,me.Z)(Qe,2),ut=lt[0],en=lt[1],cn=ae.useMemo(function(){return{panel:Xe}},[Xe]);return ae.useEffect(function(){we&&en(!0)},[we]),!st&&_t&&!ut?null:ae.createElement(Xt.Provider,{value:cn},ae.createElement(xn.Z,{open:we||st||ut,autoDestroy:!1,getContainer:Oe,autoLock:we||ut},ae.createElement(wn,(0,ke.Z)({},We,{destroyOnClose:_t,afterClose:function(){rn==null||rn(),en(!1)}}))))};Bn.displayName="Dialog";var Qn=Bn,wr=Qn,br=se(73935);function Sr(Ue,We,we,Oe){var st=br.unstable_batchedUpdates?function(_t){br.unstable_batchedUpdates(we,_t)}:we;return Ue!=null&&Ue.addEventListener&&Ue.addEventListener(We,st,Oe),{remove:function(){Ue!=null&&Ue.removeEventListener&&Ue.removeEventListener(We,st,Oe)}}}var Yn={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(We){var we=We.keyCode;if(We.altKey&&!We.ctrlKey||We.metaKey||we>=Yn.F1&&we<=Yn.F12)return!1;switch(we){case Yn.ALT:case Yn.CAPS_LOCK:case Yn.CONTEXT_MENU:case Yn.CTRL:case Yn.DOWN:case Yn.END:case Yn.ESC:case Yn.HOME:case Yn.INSERT:case Yn.LEFT:case Yn.MAC_FF_META:case Yn.META:case Yn.NUMLOCK:case Yn.NUM_CENTER:case Yn.PAGE_DOWN:case Yn.PAGE_UP:case Yn.PAUSE:case Yn.PRINT_SCREEN:case Yn.RIGHT:case Yn.SHIFT:case Yn.UP:case Yn.WIN_KEY:case Yn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(We){if(We>=Yn.ZERO&&We<=Yn.NINE||We>=Yn.NUM_ZERO&&We<=Yn.NUM_MULTIPLY||We>=Yn.A&&We<=Yn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&We===0)return!0;switch(We){case Yn.SPACE:case Yn.QUESTION_MARK:case Yn.NUM_PLUS:case Yn.NUM_MINUS:case Yn.NUM_PERIOD:case Yn.NUM_DIVISION:case Yn.SEMICOLON:case Yn.DASH:case Yn.EQUALS:case Yn.COMMA:case Yn.PERIOD:case Yn.SLASH:case Yn.APOSTROPHE:case Yn.SINGLE_QUOTE:case Yn.OPEN_SQUARE_BRACKET:case Yn.BACKSLASH:case Yn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ir=Yn,Dr={},ti=[],Ai=function(We){ti.push(We)};function tr(Ue,We){if(0)var we}function Jr(Ue,We){if(0)var we}function kt(){Dr={}}function vn(Ue,We,we){!We&&!Dr[we]&&(Ue(!1,we),Dr[we]=!0)}function Rn(Ue,We){vn(tr,Ue,We)}function In(Ue,We){vn(Jr,Ue,We)}Rn.preMessage=Ai,Rn.resetWarned=kt,Rn.noteOnce=In;var nr=Rn;function gr(Ue,We,we,Oe){var st=We+we,tt=(we-Oe)/2;if(we>Oe){if(We>0)return(0,xe.Z)({},Ue,tt);if(We<0&&st<Oe)return(0,xe.Z)({},Ue,-tt)}else if(We<0||st>Oe)return(0,xe.Z)({},Ue,We<0?tt:-tt);return{}}function sr(Ue,We,we,Oe){var st=Ce(),tt=st.width,_t=st.height,rn=null;return Ue<=tt&&We<=_t?rn={x:0,y:0}:(Ue>tt||We>_t)&&(rn=(0,Ee.Z)((0,Ee.Z)({},gr("x",we,Ue,tt)),gr("y",Oe,We,_t))),rn}function Un(Ue,We){var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Oe=new Set;function st(tt,_t){var rn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Xe=Oe.has(tt);if(nr(!Xe,"Warning: There may be circular references"),Xe)return!1;if(tt===_t)return!0;if(we&&rn>1)return!1;Oe.add(tt);var Qe=rn+1;if(Array.isArray(tt)){if(!Array.isArray(_t)||tt.length!==_t.length)return!1;for(var lt=0;lt<tt.length;lt++)if(!st(tt[lt],_t[lt],Qe))return!1;return!0}if(tt&&_t&&(0,De.Z)(tt)==="object"&&(0,De.Z)(_t)==="object"){var ut=Object.keys(tt);return ut.length!==Object.keys(_t).length?!1:ut.every(function(en){return st(tt[en],_t[en],Qe)})}return!1}return st(Ue,We)}var qe=Un,wt=function(We){return+setTimeout(We,16)},Zt=function(We){return clearTimeout(We)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(wt=function(We){return window.requestAnimationFrame(We)},Zt=function(We){return window.cancelAnimationFrame(We)});var an=0,ze=new Map;function Ct(Ue){ze.delete(Ue)}var tn=function(We){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;an+=1;var Oe=an;function st(tt){if(tt===0)Ct(Oe),We();else{var _t=wt(function(){st(tt-1)});ze.set(Oe,_t)}}return st(we),Oe};tn.cancel=function(Ue){var We=ze.get(Ue);return Ct(We),Zt(We)};var Kt=tn,hn={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function gn(Ue,We,we,Oe){var st=(0,ae.useRef)(null),tt=(0,ae.useRef)([]),_t=(0,ae.useState)(hn),rn=(0,me.Z)(_t,2),Xe=rn[0],Qe=rn[1],lt=function(Wt){Qe(hn),Oe&&!qe(hn,Xe)&&Oe({transform:hn,action:Wt})},ut=function(Wt,un){st.current===null&&(tt.current=[],st.current=Kt(function(){Qe(function(On){var ar=On;return tt.current.forEach(function(Fn){ar=(0,Ee.Z)((0,Ee.Z)({},ar),Fn)}),st.current=null,Oe==null||Oe({transform:ar,action:un}),ar})})),tt.current.push((0,Ee.Z)((0,Ee.Z)({},Xe),Wt))},en=function(Wt,un,On,ar){var Fn=Ue.current,An=Fn.width,Zn=Fn.height,or=Fn.offsetWidth,Tr=Fn.offsetHeight,pr=Fn.offsetLeft,zn=Fn.offsetTop,Pr=Wt,Fr=Xe.scale*Wt;Fr>we?(Pr=we/Xe.scale,Fr=we):Fr<We&&(Pr=We/Xe.scale,Fr=We);var si=On!=null?On:innerWidth/2,pi=ar!=null?ar:innerHeight/2,hi=Pr-1,ki=hi*An*.5,Ni=hi*Zn*.5,mi=hi*(si-Xe.x-pr),bi=hi*(pi-Xe.y-zn),Yr=Xe.x-(mi-ki),ii=Xe.y-(bi-Ni);if(Wt<1&&Fr===1){var xi=or*Fr,Ii=Tr*Fr,ha=Ce(),da=ha.width,ji=ha.height;xi<=da&&Ii<=ji&&(Yr=0,ii=0)}ut({x:Yr,y:ii,scale:Fr},un)};return{transform:Xe,resetTransform:lt,updateTransform:ut,dispatchZoomChange:en}}var Xn=function(We){var we=We.visible,Oe=We.maskTransitionName,st=We.getContainer,tt=We.prefixCls,_t=We.rootClassName,rn=We.icons,Xe=We.countRender,Qe=We.showSwitch,lt=We.showProgress,ut=We.current,en=We.transform,cn=We.count,Wt=We.scale,un=We.minScale,On=We.maxScale,ar=We.closeIcon,Fn=We.onSwitchLeft,An=We.onSwitchRight,Zn=We.onClose,or=We.onZoomIn,Tr=We.onZoomOut,pr=We.onRotateRight,zn=We.onRotateLeft,Pr=We.onFlipX,Fr=We.onFlipY,si=We.toolbarRender,pi=(0,ae.useContext)(rr),hi=rn.rotateLeft,ki=rn.rotateRight,Ni=rn.zoomIn,mi=rn.zoomOut,bi=rn.close,Yr=rn.left,ii=rn.right,xi=rn.flipX,Ii=rn.flipY,ha="".concat(tt,"-operations-operation");ae.useEffect(function(){var Ci=function(la){la.keyCode===ir.ESC&&Zn()};return we&&window.addEventListener("keydown",Ci),function(){window.removeEventListener("keydown",Ci)}},[we]);var da=[{icon:Ii,onClick:Fr,type:"flipY"},{icon:xi,onClick:Pr,type:"flipX"},{icon:hi,onClick:zn,type:"rotateLeft"},{icon:ki,onClick:pr,type:"rotateRight"},{icon:mi,onClick:Tr,type:"zoomOut",disabled:Wt===un},{icon:Ni,onClick:or,type:"zoomIn",disabled:Wt===On}],ji=da.map(function(Ci){var gi,la=Ci.icon,Ei=Ci.onClick,Ur=Ci.type,vi=Ci.disabled;return ae.createElement("div",{className:ge()(ha,(gi={},(0,xe.Z)(gi,"".concat(tt,"-operations-operation-").concat(Ur),!0),(0,xe.Z)(gi,"".concat(tt,"-operations-operation-disabled"),!!vi),gi)),onClick:Ei,key:Ur},la)}),Xi=ae.createElement("div",{className:"".concat(tt,"-operations")},ji);return ae.createElement(St.Z,{visible:we,motionName:Oe},function(Ci){var gi=Ci.className,la=Ci.style;return ae.createElement(xn.Z,{open:!0,getContainer:st!=null?st:document.body},ae.createElement("div",{className:ge()("".concat(tt,"-operations-wrapper"),gi,_t),style:la},ar===null?null:ae.createElement("button",{className:"".concat(tt,"-close"),onClick:Zn},ar||bi),Qe&&ae.createElement(ae.Fragment,null,ae.createElement("div",{className:ge()("".concat(tt,"-switch-left"),(0,xe.Z)({},"".concat(tt,"-switch-left-disabled"),ut===0)),onClick:Fn},Yr),ae.createElement("div",{className:ge()("".concat(tt,"-switch-right"),(0,xe.Z)({},"".concat(tt,"-switch-right-disabled"),ut===cn-1)),onClick:An},ii)),ae.createElement("div",{className:"".concat(tt,"-footer")},lt&&ae.createElement("div",{className:"".concat(tt,"-progress")},Xe?Xe(ut+1,cn):"".concat(ut+1," / ").concat(cn)),si?si(Xi,(0,Ee.Z)({icons:{flipYIcon:ji[0],flipXIcon:ji[1],rotateLeftIcon:ji[2],rotateRightIcon:ji[3],zoomOutIcon:ji[4],zoomInIcon:ji[5]},actions:{onFlipY:Fr,onFlipX:Pr,onRotateLeft:zn,onRotateRight:pr,onZoomOut:Tr,onZoomIn:or},transform:en},pi?{current:ut,total:cn}:{})):Xi)))})},_r=Xn,lr=1,mr=1,Or=["fallback","src","imgRef"],Rr=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Zr=function(We){var we=We.fallback,Oe=We.src,st=We.imgRef,tt=(0,ot.Z)(We,Or),_t=Bt({src:Oe,fallback:we}),rn=(0,me.Z)(_t,2),Xe=rn[0],Qe=rn[1];return ae.createElement("img",(0,ke.Z)({ref:function(ut){st.current=ut,Xe(ut)}},tt,Qe))},Kn=function(We){var we=We.prefixCls,Oe=We.src,st=We.alt,tt=We.fallback,_t=We.movable,rn=_t===void 0?!0:_t,Xe=We.onClose,Qe=We.visible,lt=We.icons,ut=lt===void 0?{}:lt,en=We.rootClassName,cn=We.closeIcon,Wt=We.getContainer,un=We.current,On=un===void 0?0:un,ar=We.count,Fn=ar===void 0?1:ar,An=We.countRender,Zn=We.scaleStep,or=Zn===void 0?.5:Zn,Tr=We.minScale,pr=Tr===void 0?1:Tr,zn=We.maxScale,Pr=zn===void 0?50:zn,Fr=We.transitionName,si=Fr===void 0?"zoom":Fr,pi=We.maskTransitionName,hi=pi===void 0?"fade":pi,ki=We.imageRender,Ni=We.imgCommonProps,mi=We.toolbarRender,bi=We.onTransform,Yr=We.onChange,ii=(0,ot.Z)(We,Rr),xi=(0,ae.useRef)(),Ii=(0,ae.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),ha=(0,ae.useState)(!1),da=(0,me.Z)(ha,2),ji=da[0],Xi=da[1],Ci=(0,ae.useContext)(rr),gi=Ci&&Fn>1,la=Ci&&Fn>=1,Ei=gn(xi,pr,Pr,bi),Ur=Ei.transform,vi=Ei.resetTransform,Ji=Ei.updateTransform,Zi=Ei.dispatchZoomChange,ua=(0,ae.useState)(!0),Li=(0,me.Z)(ua,2),ga=Li[0],fa=Li[1],sa=Ur.rotate,ca=Ur.scale,ba=Ur.x,Ta=Ur.y,Ca=ge()((0,xe.Z)({},"".concat(we,"-moving"),ji));(0,ae.useEffect)(function(){ga||fa(!0)},[ga]);var Ma=function(){vi("close")},Ha=function(){Zi(lr+or,"zoomIn")},Va=function(){Zi(lr/(lr+or),"zoomOut")},$a=function(){Ji({rotate:sa+90},"rotateRight")},Ra=function(){Ji({rotate:sa-90},"rotateLeft")},xa=function(){Ji({flipX:!Ur.flipX},"flipX")},zi=function(){Ji({flipY:!Ur.flipY},"flipY")},Yi=function(fi){fi==null||fi.preventDefault(),fi==null||fi.stopPropagation(),On>0&&(fa(!1),vi("prev"),Yr==null||Yr(On-1,On))},pa=function(fi){fi==null||fi.preventDefault(),fi==null||fi.stopPropagation(),On<Fn-1&&(fa(!1),vi("next"),Yr==null||Yr(On+1,On))},Ea=function(){if(Qe&&ji){Xi(!1);var fi=Ii.current,Wi=fi.transformX,Aa=fi.transformY,va=ba!==Wi&&Ta!==Aa;if(!va)return;var Ga=xi.current.offsetWidth*ca,Za=xi.current.offsetHeight*ca,To=xi.current.getBoundingClientRect(),Ho=To.left,as=To.top,ma=sa%180!==0,ni=sr(ma?Za:Ga,ma?Ga:Za,Ho,as);ni&&Ji((0,Ee.Z)({},ni),"dragRebound")}},Ka=function(fi){!rn||fi.button!==0||(fi.preventDefault(),fi.stopPropagation(),Ii.current={deltaX:fi.pageX-Ur.x,deltaY:fi.pageY-Ur.y,transformX:Ur.x,transformY:Ur.y},Xi(!0))},eo=function(fi){Qe&&ji&&Ji({x:fi.pageX-Ii.current.deltaX,y:fi.pageY-Ii.current.deltaY},"move")},uo=function(fi){if(!(!Qe||fi.deltaY==0)){var Wi=Math.abs(fi.deltaY/100),Aa=Math.min(Wi,mr),va=lr+Aa*or;fi.deltaY>0&&(va=lr/va),Zi(va,"wheel",fi.clientX,fi.clientY)}},Mo=function(fi){!Qe||!gi||(fi.keyCode===ir.LEFT?Yi():fi.keyCode===ir.RIGHT&&pa())},ko=function(fi){Qe&&(ca!==1?Ji({x:0,y:0,scale:1},"doubleClick"):Zi(lr+or,"doubleClick",fi.clientX,fi.clientY))};(0,ae.useEffect)(function(){var Pa,fi,Wi,Aa;if(rn){Wi=Sr(window,"mouseup",Ea,!1),Aa=Sr(window,"mousemove",eo,!1);try{window.top!==window.self&&(Pa=Sr(window.top,"mouseup",Ea,!1),fi=Sr(window.top,"mousemove",eo,!1))}catch(va){tr(!1,"[rc-image] ".concat(va))}}return function(){var va,Ga,Za,To;(va=Wi)===null||va===void 0||va.remove(),(Ga=Aa)===null||Ga===void 0||Ga.remove(),(Za=Pa)===null||Za===void 0||Za.remove(),(To=fi)===null||To===void 0||To.remove()}},[Qe,ji,ba,Ta,sa,rn]),(0,ae.useEffect)(function(){var Pa=Sr(window,"keydown",Mo,!1);return function(){Pa.remove()}},[Qe,gi,On]);var to=ae.createElement(Zr,(0,ke.Z)({},Ni,{width:We.width,height:We.height,imgRef:xi,className:"".concat(we,"-img"),alt:st,style:{transform:"translate3d(".concat(Ur.x,"px, ").concat(Ur.y,"px, 0) scale3d(").concat(Ur.flipX?"-":"").concat(ca,", ").concat(Ur.flipY?"-":"").concat(ca,", 1) rotate(").concat(sa,"deg)"),transitionDuration:!ga&&"0s"},fallback:tt,src:Oe,onWheel:uo,onMouseDown:Ka,onDoubleClick:ko}));return ae.createElement(ae.Fragment,null,ae.createElement(wr,(0,ke.Z)({transitionName:si,maskTransitionName:hi,closable:!1,keyboard:!0,prefixCls:we,onClose:Xe,visible:Qe,wrapClassName:Ca,rootClassName:en,getContainer:Wt},ii,{afterClose:Ma}),ae.createElement("div",{className:"".concat(we,"-img-wrapper")},ki?ki(to,(0,Ee.Z)({transform:Ur},Ci?{current:On}:{})):to)),ae.createElement(_r,{visible:Qe,transform:Ur,maskTransitionName:hi,closeIcon:cn,getContainer:Wt,prefixCls:we,rootClassName:en,icons:ut,countRender:An,showSwitch:gi,showProgress:la,current:On,count:Fn,scale:ca,minScale:pr,maxScale:Pr,toolbarRender:mi,onSwitchLeft:Yi,onSwitchRight:pa,onZoomIn:Ha,onZoomOut:Va,onRotateRight:$a,onRotateLeft:Ra,onFlipX:xa,onFlipY:zi,onClose:Xe}))},fr=Kn,Mn=se(74902);function Sn(Ue){var We=ae.useState({}),we=(0,me.Z)(We,2),Oe=we[0],st=we[1],tt=ae.useCallback(function(rn,Xe){return st(function(Qe){return(0,Ee.Z)((0,Ee.Z)({},Qe),{},(0,xe.Z)({},rn,Xe))}),function(){st(function(Qe){var lt=(0,Ee.Z)({},Qe);return delete lt[rn],lt})}},[]),_t=ae.useMemo(function(){return Ue?Ue.map(function(rn){if(typeof rn=="string")return{data:{src:rn}};var Xe={};return Object.keys(rn).forEach(function(Qe){["src"].concat((0,Mn.Z)(Wn)).includes(Qe)&&(Xe[Qe]=rn[Qe])}),{data:Xe}}):Object.keys(Oe).reduce(function(rn,Xe){var Qe=Oe[Xe],lt=Qe.canPreview,ut=Qe.data;return lt&&rn.push({data:ut,id:Xe}),rn},[])},[Ue,Oe]);return[_t,tt]}var on=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],yr=["src"],Wr=function(We){var we,Oe=We.previewPrefixCls,st=Oe===void 0?"rc-image-preview":Oe,tt=We.children,_t=We.icons,rn=_t===void 0?{}:_t,Xe=We.items,Qe=We.preview,lt=We.fallback,ut=(0,De.Z)(Qe)==="object"?Qe:{},en=ut.visible,cn=ut.onVisibleChange,Wt=ut.getContainer,un=ut.current,On=ut.movable,ar=ut.minScale,Fn=ut.maxScale,An=ut.countRender,Zn=ut.closeIcon,or=ut.onChange,Tr=ut.onTransform,pr=ut.toolbarRender,zn=ut.imageRender,Pr=(0,ot.Z)(ut,on),Fr=Sn(Xe),si=(0,me.Z)(Fr,2),pi=si[0],hi=si[1],ki=dn(0,{value:un}),Ni=(0,me.Z)(ki,2),mi=Ni[0],bi=Ni[1],Yr=(0,ae.useState)(!1),ii=(0,me.Z)(Yr,2),xi=ii[0],Ii=ii[1],ha=((we=pi[mi])===null||we===void 0?void 0:we.data)||{},da=ha.src,ji=(0,ot.Z)(ha,yr),Xi=dn(!!en,{value:en,onChange:function(sa,ca){cn==null||cn(sa,ca,mi)}}),Ci=(0,me.Z)(Xi,2),gi=Ci[0],la=Ci[1],Ei=(0,ae.useState)(null),Ur=(0,me.Z)(Ei,2),vi=Ur[0],Ji=Ur[1],Zi=ae.useCallback(function(fa,sa,ca){var ba=pi.findIndex(function(Ta){return Ta.id===fa});la(!0),Ji({x:sa,y:ca}),bi(ba<0?0:ba),Ii(!0)},[pi]);ae.useEffect(function(){gi?xi||bi(0):Ii(!1)},[gi]);var ua=function(sa,ca){bi(sa),or==null||or(sa,ca)},Li=function(){la(!1),Ji(null)},ga=ae.useMemo(function(){return{register:hi,onPreview:Zi}},[hi,Zi]);return ae.createElement(rr.Provider,{value:ga},tt,ae.createElement(fr,(0,ke.Z)({"aria-hidden":!gi,movable:On,visible:gi,prefixCls:st,closeIcon:Zn,onClose:Li,mousePosition:vi,imgCommonProps:ji,src:da,fallback:lt,icons:rn,minScale:ar,maxScale:Fn,getContainer:Wt,current:mi,count:pi.length,countRender:An,onTransform:Tr,toolbarRender:pr,imageRender:zn,onChange:ua},Pr)))},Lr=Wr,qr=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Cn=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Er=function(We){var we=We.src,Oe=We.alt,st=We.onPreviewClose,tt=We.prefixCls,_t=tt===void 0?"rc-image":tt,rn=We.previewPrefixCls,Xe=rn===void 0?"".concat(_t,"-preview"):rn,Qe=We.placeholder,lt=We.fallback,ut=We.width,en=We.height,cn=We.style,Wt=We.preview,un=Wt===void 0?!0:Wt,On=We.className,ar=We.onClick,Fn=We.onError,An=We.wrapperClassName,Zn=We.wrapperStyle,or=We.rootClassName,Tr=(0,ot.Z)(We,qr),pr=Qe&&Qe!==!0,zn=(0,De.Z)(un)==="object"?un:{},Pr=zn.src,Fr=zn.visible,si=Fr===void 0?void 0:Fr,pi=zn.onVisibleChange,hi=pi===void 0?st:pi,ki=zn.getContainer,Ni=ki===void 0?void 0:ki,mi=zn.mask,bi=zn.maskClassName,Yr=zn.movable,ii=zn.icons,xi=zn.scaleStep,Ii=zn.minScale,ha=zn.maxScale,da=zn.imageRender,ji=zn.toolbarRender,Xi=(0,ot.Z)(zn,Cn),Ci=Pr!=null?Pr:we,gi=dn(!!si,{value:si,onChange:hi}),la=(0,me.Z)(gi,2),Ei=la[0],Ur=la[1],vi=Bt({src:we,isCustomPlaceholder:pr,fallback:lt}),Ji=(0,me.Z)(vi,3),Zi=Ji[0],ua=Ji[1],Li=Ji[2],ga=(0,ae.useState)(null),fa=(0,me.Z)(ga,2),sa=fa[0],ca=fa[1],ba=(0,ae.useContext)(rr),Ta=!!un,Ca=function(){Ur(!1),ca(null)},Ma=ge()(_t,An,or,(0,xe.Z)({},"".concat(_t,"-error"),Li==="error")),Ha=(0,ae.useMemo)(function(){var xa={};return Wn.forEach(function(zi){We[zi]!==void 0&&(xa[zi]=We[zi])}),xa},Wn.map(function(xa){return We[xa]})),Va=(0,ae.useMemo)(function(){return(0,Ee.Z)((0,Ee.Z)({},Ha),{},{src:Ci})},[Ci,Ha]),$a=$e(Ta,Va),Ra=function(zi){var Yi=Ye(zi.target),pa=Yi.left,Ea=Yi.top;ba?ba.onPreview($a,pa,Ea):(ca({x:pa,y:Ea}),Ur(!0)),ar==null||ar(zi)};return ae.createElement(ae.Fragment,null,ae.createElement("div",(0,ke.Z)({},Tr,{className:Ma,onClick:Ta?Ra:ar,style:(0,Ee.Z)({width:ut,height:en},Zn)}),ae.createElement("img",(0,ke.Z)({},Ha,{className:ge()("".concat(_t,"-img"),(0,xe.Z)({},"".concat(_t,"-img-placeholder"),Qe===!0),On),style:(0,Ee.Z)({height:en},cn),ref:Zi},ua,{width:ut,height:en,onError:Fn})),Li==="loading"&&ae.createElement("div",{"aria-hidden":"true",className:"".concat(_t,"-placeholder")},Qe),mi&&Ta&&ae.createElement("div",{className:ge()("".concat(_t,"-mask"),bi),style:{display:(cn==null?void 0:cn.display)==="none"?"none":void 0}},mi)),!ba&&Ta&&ae.createElement(fr,(0,ke.Z)({"aria-hidden":!Ei,visible:Ei,prefixCls:Xe,onClose:Ca,mousePosition:sa,src:Ci,alt:Oe,fallback:lt,getContainer:Ni,icons:ii,movable:Yr,scaleStep:xi,minScale:Ii,maxScale:ha,rootClassName:or,imageRender:da,imgCommonProps:Ha,toolbarRender:ji},Xi)))};Er.PreviewGroup=Lr,Er.displayName="Image";var vr=Er,ta=vr,Hi=se(33603),Pi=se(53124),Di=se(24457),qi=se(73475),Ki=se(22751),di=se(91034),na={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},aa=na,_i=se(84089),Mi=function(We,we){return ae.createElement(_i.Z,(0,ke.Z)({},We,{ref:we,icon:aa}))},Sa=ae.forwardRef(Mi),Si={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},$r=Si,Ft=function(We,we){return ae.createElement(_i.Z,(0,ke.Z)({},We,{ref:we,icon:$r}))},Pt=ae.forwardRef(Ft),pn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Pn=pn,cr=function(We,we){return ae.createElement(_i.Z,(0,ke.Z)({},We,{ref:we,icon:Pn}))},Gr=ae.forwardRef(cr),Xr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},oi=Xr,jt=function(We,we){return ae.createElement(_i.Z,(0,ke.Z)({},We,{ref:we,icon:oi}))},ur=ae.forwardRef(jt),li={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},ci=li,Oi=function(We,we){return ae.createElement(_i.Z,(0,ke.Z)({},We,{ref:we,icon:ci}))},ra=ae.forwardRef(Oi),hr=se(84780),Qi=se(71194),Re=se(14747),Ze=se(50438),je=se(16932),et=se(67968),Et=se(45503);const It=Ue=>({position:Ue||"absolute",inset:0}),Ut=Ue=>{const{iconCls:We,motionDurationSlow:we,paddingXXS:Oe,marginXXS:st,prefixCls:tt,colorTextLightSolid:_t}=Ue;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:_t,background:new hr.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${we}`,[`.${tt}-mask-info`]:Object.assign(Object.assign({},Re.vS),{padding:`0 ${Oe}px`,[We]:{marginInlineEnd:st,svg:{verticalAlign:"baseline"}}})}},Ln=Ue=>{const{previewCls:We,modalMaskBg:we,paddingSM:Oe,marginXL:st,margin:tt,paddingLG:_t,previewOperationColorDisabled:rn,previewOperationHoverColor:Xe,motionDurationSlow:Qe,iconCls:lt,colorTextLightSolid:ut}=Ue,en=new hr.C(we).setAlpha(.1),cn=en.clone().setAlpha(.2);return{[`${We}-footer`]:{position:"fixed",bottom:st,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Ue.previewOperationColor},[`${We}-progress`]:{marginBottom:tt},[`${We}-close`]:{position:"fixed",top:st,right:{_skip_check_:!0,value:st},display:"flex",color:ut,backgroundColor:en.toRgbString(),borderRadius:"50%",padding:Oe,outline:0,border:0,cursor:"pointer",transition:`all ${Qe}`,"&:hover":{backgroundColor:cn.toRgbString()},[`& > ${lt}`]:{fontSize:Ue.previewOperationSize}},[`${We}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${_t}px`,backgroundColor:en.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:Oe,padding:Oe,cursor:"pointer",transition:`all ${Qe}`,userSelect:"none",[`&:not(${We}-operations-operation-disabled):hover > ${lt}`]:{color:Xe},"&-disabled":{color:rn,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${lt}`]:{fontSize:Ue.previewOperationSize}}}}},Nn=Ue=>{const{modalMaskBg:We,iconCls:we,previewOperationColorDisabled:Oe,previewCls:st,zIndexPopup:tt,motionDurationSlow:_t}=Ue,rn=new hr.C(We).setAlpha(.1),Xe=rn.clone().setAlpha(.2);return{[`${st}-switch-left, ${st}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:tt+1,display:"flex",alignItems:"center",justifyContent:"center",width:Ue.imagePreviewSwitchSize,height:Ue.imagePreviewSwitchSize,marginTop:-Ue.imagePreviewSwitchSize/2,color:Ue.previewOperationColor,background:rn.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${_t}`,userSelect:"none","&:hover":{background:Xe.toRgbString()},"&-disabled":{"&, &:hover":{color:Oe,background:"transparent",cursor:"not-allowed",[`> ${we}`]:{cursor:"not-allowed"}}},[`> ${we}`]:{fontSize:Ue.previewOperationSize}},[`${st}-switch-left`]:{insetInlineStart:Ue.marginSM},[`${st}-switch-right`]:{insetInlineEnd:Ue.marginSM}}},Mr=Ue=>{const{motionEaseOut:We,previewCls:we,motionDurationSlow:Oe,componentCls:st}=Ue;return[{[`${st}-preview-root`]:{[we]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${we}-body`]:Object.assign(Object.assign({},It()),{overflow:"hidden"}),[`${we}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${Oe} ${We} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},It()),{transition:`transform ${Oe} ${We} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${we}-moving`]:{[`${we}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${st}-preview-root`]:{[`${we}-wrap`]:{zIndex:Ue.zIndexPopup}}},{[`${st}-preview-operations-wrapper`]:{position:"fixed",zIndex:Ue.zIndexPopup+1},"&":[Ln(Ue),Nn(Ue)]}]},Hr=Ue=>{const{componentCls:We}=Ue;return{[We]:{position:"relative",display:"inline-block",[`${We}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${We}-img-placeholder`]:{backgroundColor:Ue.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${We}-mask`]:Object.assign({},Ut(Ue)),[`${We}-mask:hover`]:{opacity:1},[`${We}-placeholder`]:Object.assign({},It())}}},xr=Ue=>{const{previewCls:We}=Ue;return{[`${We}-root`]:(0,Ze._y)(Ue,"zoom"),"&":(0,je.J$)(Ue,!0)}};var Gn=(0,et.Z)("Image",Ue=>{const We=`${Ue.componentCls}-preview`,we=(0,Et.TS)(Ue,{previewCls:We,modalMaskBg:new hr.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Ue.controlHeightLG});return[Hr(we),Mr(we),(0,Qi.QA)((0,Et.TS)(we,{componentCls:We})),xr(we)]},Ue=>({zIndexPopup:Ue.zIndexPopupBase+80,previewOperationColor:new hr.C(Ue.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new hr.C(Ue.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new hr.C(Ue.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Ue.fontSizeIcon*1.5})),jn=function(Ue,We){var we={};for(var Oe in Ue)Object.prototype.hasOwnProperty.call(Ue,Oe)&&We.indexOf(Oe)<0&&(we[Oe]=Ue[Oe]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Oe=Object.getOwnPropertySymbols(Ue);st<Oe.length;st++)We.indexOf(Oe[st])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Oe[st])&&(we[Oe[st]]=Ue[Oe[st]]);return we};const $n={rotateLeft:ae.createElement(Sa,null),rotateRight:ae.createElement(Pt,null),zoomIn:ae.createElement(ur,null),zoomOut:ae.createElement(ra,null),close:ae.createElement(qi.Z,null),left:ae.createElement(Ki.Z,null),right:ae.createElement(di.Z,null),flipX:ae.createElement(Gr,null),flipY:ae.createElement(Gr,{rotate:90})};var Kr=Ue=>{var{previewPrefixCls:We,preview:we}=Ue,Oe=jn(Ue,["previewPrefixCls","preview"]);const{getPrefixCls:st}=ae.useContext(Pi.E_),tt=st("image",We),_t=`${tt}-preview`,rn=st(),[Xe,Qe]=Gn(tt),lt=ae.useMemo(()=>{var ut;if(we===!1)return we;const en=typeof we=="object"?we:{},cn=ge()(Qe,(ut=en.rootClassName)!==null&&ut!==void 0?ut:"");return Object.assign(Object.assign({},en),{transitionName:(0,Hi.m)(rn,"zoom",en.transitionName),maskTransitionName:(0,Hi.m)(rn,"fade",en.maskTransitionName),rootClassName:cn})},[we]);return Xe(ae.createElement(ta.PreviewGroup,Object.assign({preview:lt,previewPrefixCls:_t,icons:$n},Oe)))},kr=function(Ue,We){var we={};for(var Oe in Ue)Object.prototype.hasOwnProperty.call(Ue,Oe)&&We.indexOf(Oe)<0&&(we[Oe]=Ue[Oe]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Oe=Object.getOwnPropertySymbols(Ue);st<Oe.length;st++)We.indexOf(Oe[st])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Oe[st])&&(we[Oe[st]]=Ue[Oe[st]]);return we};const Cr=Ue=>{const{prefixCls:We,preview:we,className:Oe,rootClassName:st,style:tt}=Ue,_t=kr(Ue,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:rn,locale:Xe=Di.Z,getPopupContainer:Qe,image:lt}=ae.useContext(Pi.E_),ut=rn("image",We),en=rn(),cn=Xe.Image||Di.Z.Image,[Wt,un]=Gn(ut),On=ge()(st,un),ar=ge()(Oe,un,lt==null?void 0:lt.className),Fn=ae.useMemo(()=>{if(we===!1)return we;const Zn=typeof we=="object"?we:{},{getContainer:or}=Zn,Tr=kr(Zn,["getContainer"]);return Object.assign(Object.assign({mask:ae.createElement("div",{className:`${ut}-mask-info`},ae.createElement(_e.Z,null),cn==null?void 0:cn.preview),icons:$n},Tr),{getContainer:or||Qe,transitionName:(0,Hi.m)(en,"zoom",Zn.transitionName),maskTransitionName:(0,Hi.m)(en,"fade",Zn.maskTransitionName)})},[we,cn]),An=Object.assign(Object.assign({},lt==null?void 0:lt.style),tt);return Wt(ae.createElement(ta,Object.assign({prefixCls:ut,preview:Fn,rootClassName:On,className:ar,style:An},_t)))};Cr.PreviewGroup=Kr;var Ir=Cr},31795:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Un}});var ae=se(42922),Le=se(53978),_e=se(94184),rt=se.n(_e),ge=se(87462),ke=se(4942),Ee=se(71002),xe=se(97685),me=se(45987),De=se(15671),ot=se(43144);function Ne(){return typeof BigInt=="function"}function mt(qe){return!qe&&qe!==0&&!Number.isNaN(qe)||!String(qe).trim()}function dt(qe){var wt=qe.trim(),Zt=wt.startsWith("-");Zt&&(wt=wt.slice(1)),wt=wt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),wt.startsWith(".")&&(wt="0".concat(wt));var an=wt||"0",ze=an.split("."),Ct=ze[0]||"0",tn=ze[1]||"0";Ct==="0"&&tn==="0"&&(Zt=!1);var Kt=Zt?"-":"";return{negative:Zt,negativeStr:Kt,trimStr:an,integerStr:Ct,decimalStr:tn,fullStr:"".concat(Kt).concat(an)}}function pt(qe){var wt=String(qe);return!Number.isNaN(Number(wt))&&wt.includes("e")}function Je(qe){var wt=String(qe);if(pt(qe)){var Zt=Number(wt.slice(wt.indexOf("e-")+2)),an=wt.match(/\.(\d+)/);return an!=null&&an[1]&&(Zt+=an[1].length),Zt}return wt.includes(".")&>(wt)?wt.length-wt.indexOf(".")-1:0}function Be(qe){var wt=String(qe);if(pt(qe)){if(qe>Number.MAX_SAFE_INTEGER)return String(Ne()?BigInt(qe).toString():Number.MAX_SAFE_INTEGER);if(qe<Number.MIN_SAFE_INTEGER)return String(Ne()?BigInt(qe).toString():Number.MIN_SAFE_INTEGER);wt=qe.toFixed(Je(wt))}return dt(wt).fullStr}function gt(qe){return typeof qe=="number"?!Number.isNaN(qe):qe?/^\s*-?\d+(\.\d+)?\s*$/.test(qe)||/^\s*-?\d+\.\s*$/.test(qe)||/^\s*-?\.\d+\s*$/.test(qe):!1}var nn=function(){function qe(wt){if((0,De.Z)(this,qe),(0,ke.Z)(this,"origin",""),(0,ke.Z)(this,"negative",void 0),(0,ke.Z)(this,"integer",void 0),(0,ke.Z)(this,"decimal",void 0),(0,ke.Z)(this,"decimalLen",void 0),(0,ke.Z)(this,"empty",void 0),(0,ke.Z)(this,"nan",void 0),mt(wt)){this.empty=!0;return}if(this.origin=String(wt),wt==="-"||Number.isNaN(wt)){this.nan=!0;return}var Zt=wt;if(pt(Zt)&&(Zt=Number(Zt)),Zt=typeof Zt=="string"?Zt:Be(Zt),gt(Zt)){var an=dt(Zt);this.negative=an.negative;var ze=an.trimStr.split(".");this.integer=BigInt(ze[0]);var Ct=ze[1]||"0";this.decimal=BigInt(Ct),this.decimalLen=Ct.length}else this.nan=!0}return(0,ot.Z)(qe,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(Zt){var an="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Zt,"0"));return BigInt(an)}},{key:"negate",value:function(){var Zt=new qe(this.toString());return Zt.negative=!Zt.negative,Zt}},{key:"cal",value:function(Zt,an,ze){var Ct=Math.max(this.getDecimalStr().length,Zt.getDecimalStr().length),tn=this.alignDecimal(Ct),Kt=Zt.alignDecimal(Ct),hn=an(tn,Kt).toString(),gn=ze(Ct),Xn=dt(hn),_r=Xn.negativeStr,lr=Xn.trimStr,mr="".concat(_r).concat(lr.padStart(gn+1,"0"));return new qe("".concat(mr.slice(0,-gn),".").concat(mr.slice(-gn)))}},{key:"add",value:function(Zt){if(this.isInvalidate())return new qe(Zt);var an=new qe(Zt);return an.isInvalidate()?this:this.cal(an,function(ze,Ct){return ze+Ct},function(ze){return ze})}},{key:"multi",value:function(Zt){var an=new qe(Zt);return this.isInvalidate()||an.isInvalidate()?new qe(NaN):this.cal(an,function(ze,Ct){return ze*Ct},function(ze){return ze*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Zt){return this.toString()===(Zt==null?void 0:Zt.toString())}},{key:"lessEquals",value:function(Zt){return this.add(Zt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Zt?this.isInvalidate()?"":dt("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),qe}(),at=function(){function qe(wt){if((0,De.Z)(this,qe),(0,ke.Z)(this,"origin",""),(0,ke.Z)(this,"number",void 0),(0,ke.Z)(this,"empty",void 0),mt(wt)){this.empty=!0;return}this.origin=String(wt),this.number=Number(wt)}return(0,ot.Z)(qe,[{key:"negate",value:function(){return new qe(-this.toNumber())}},{key:"add",value:function(Zt){if(this.isInvalidate())return new qe(Zt);var an=Number(Zt);if(Number.isNaN(an))return this;var ze=this.number+an;if(ze>Number.MAX_SAFE_INTEGER)return new qe(Number.MAX_SAFE_INTEGER);if(ze<Number.MIN_SAFE_INTEGER)return new qe(Number.MIN_SAFE_INTEGER);var Ct=Math.max(Je(this.number),Je(an));return new qe(ze.toFixed(Ct))}},{key:"multi",value:function(Zt){var an=Number(Zt);if(this.isInvalidate()||Number.isNaN(an))return new qe(NaN);var ze=this.number*an;if(ze>Number.MAX_SAFE_INTEGER)return new qe(Number.MAX_SAFE_INTEGER);if(ze<Number.MIN_SAFE_INTEGER)return new qe(Number.MIN_SAFE_INTEGER);var Ct=Math.max(Je(this.number),Je(an));return new qe(ze.toFixed(Ct))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Zt){return this.toNumber()===(Zt==null?void 0:Zt.toNumber())}},{key:"lessEquals",value:function(Zt){return this.add(Zt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Zt?this.isInvalidate()?"":Be(this.number):this.origin}}]),qe}();function vt(qe){return Ne()?new nn(qe):new at(qe)}function Ce(qe,wt,Zt){var an=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(qe==="")return"";var ze=dt(qe),Ct=ze.negativeStr,tn=ze.integerStr,Kt=ze.decimalStr,hn="".concat(wt).concat(Kt),gn="".concat(Ct).concat(tn);if(Zt>=0){var Xn=Number(Kt[Zt]);if(Xn>=5&&!an){var _r=vt(qe).add("".concat(Ct,"0.").concat("0".repeat(Zt)).concat(10-Xn));return Ce(_r.toString(),wt,Zt,an)}return Zt===0?gn:"".concat(gn).concat(wt).concat(Kt.padEnd(Zt,"0").slice(0,Zt))}return hn===".0"?gn:"".concat(gn).concat(hn)}var Ae=vt,Ye=se(67656),Ve=se(67294);function At(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var xt=At()?Ve.useLayoutEffect:Ve.useEffect,Lt=function(wt,Zt){var an=Ve.useRef(!0);xt(function(){return wt(an.current)},Zt),xt(function(){return an.current=!1,function(){an.current=!0}},[])},nt=function(wt,Zt){Lt(function(an){if(!an)return wt()},Zt)},qt=Lt,zt=se(27183);function bn(qe,wt,Zt){var an=React.useRef({});return(!("value"in an.current)||Zt(an.current.condition,wt))&&(an.current.value=qe(),an.current.condition=wt),an.current.value}function dn(qe,wt){typeof qe=="function"?qe(wt):(0,Ee.Z)(qe)==="object"&&qe&&"current"in qe&&(qe.current=wt)}function Wn(){for(var qe=arguments.length,wt=new Array(qe),Zt=0;Zt<qe;Zt++)wt[Zt]=arguments[Zt];var an=wt.filter(function(ze){return ze});return an.length<=1?an[0]:function(ze){wt.forEach(function(Ct){dn(Ct,ze)})}}function rr(){for(var qe=arguments.length,wt=new Array(qe),Zt=0;Zt<qe;Zt++)wt[Zt]=arguments[Zt];return useMemo(function(){return Wn.apply(void 0,wt)},wt,function(an,ze){return an.length!==ze.length||an.every(function(Ct,tn){return Ct!==ze[tn]})})}function ln(qe){var wt,Zt,an=isMemo(qe)?qe.type.type:qe.type;return!(typeof an=="function"&&!((wt=an.prototype)!==null&&wt!==void 0&&wt.render)||typeof qe=="function"&&!((Zt=qe.prototype)!==null&&Zt!==void 0&&Zt.render))}function $e(qe){return!isValidElement(qe)||isFragment(qe)?!1:ln(qe)}var Se={},Bt=[],xn=function(wt){Bt.push(wt)};function Xt(qe,wt){if(0)var Zt}function ft(qe,wt){if(0)var Zt}function yt(){Se={}}function Gt(qe,wt,Zt){!wt&&!Se[Zt]&&(qe(!1,Zt),Se[Zt]=!0)}function qn(qe,wt){Gt(Xt,qe,wt)}function Dn(qe,wt){Gt(ft,qe,wt)}qn.preMessage=xn,qn.resetWarned=yt,qn.noteOnce=Dn;var Tt=qn;function mn(qe,wt){var Zt=(0,Ve.useRef)(null);function an(){try{var Ct=qe.selectionStart,tn=qe.selectionEnd,Kt=qe.value,hn=Kt.substring(0,Ct),gn=Kt.substring(tn);Zt.current={start:Ct,end:tn,value:Kt,beforeTxt:hn,afterTxt:gn}}catch(Xn){}}function ze(){if(qe&&Zt.current&&wt)try{var Ct=qe.value,tn=Zt.current,Kt=tn.beforeTxt,hn=tn.afterTxt,gn=tn.start,Xn=Ct.length;if(Ct.endsWith(hn))Xn=Ct.length-Zt.current.afterTxt.length;else if(Ct.startsWith(Kt))Xn=Kt.length;else{var _r=Kt[gn-1],lr=Ct.indexOf(_r,gn-1);lr!==-1&&(Xn=lr+1)}qe.setSelectionRange(Xn,Xn)}catch(mr){Tt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(mr.message))}}return[an,ze]}var Vn=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var qe=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(qe)||/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(qe==null?void 0:qe.substr(0,4))},kn=function(){var wt=(0,Ve.useState)(!1),Zt=(0,xe.Z)(wt,2),an=Zt[0],ze=Zt[1];return qt(function(){ze(Vn())},[]),an},Pe=kn,fe=function(wt){return+setTimeout(wt,16)},ce=function(wt){return clearTimeout(wt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(fe=function(wt){return window.requestAnimationFrame(wt)},ce=function(wt){return window.cancelAnimationFrame(wt)});var he=0,ue=new Map;function le(qe){ue.delete(qe)}var Me=function(wt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;he+=1;var an=he;function ze(Ct){if(Ct===0)le(an),wt();else{var tn=fe(function(){ze(Ct-1)});ue.set(an,tn)}}return ze(Zt),an};Me.cancel=function(qe){var wt=ue.get(qe);return le(wt),ce(wt)};var Ge=Me,St=200,Ht=600;function Yt(qe){var wt=qe.prefixCls,Zt=qe.upNode,an=qe.downNode,ze=qe.upDisabled,Ct=qe.downDisabled,tn=qe.onStep,Kt=Ve.useRef(),hn=Ve.useRef([]),gn=Ve.useRef();gn.current=tn;var Xn=function(){clearTimeout(Kt.current)},_r=function(Mn,Sn){Mn.preventDefault(),Xn(),gn.current(Sn);function on(){gn.current(Sn),Kt.current=setTimeout(on,St)}Kt.current=setTimeout(on,Ht)};Ve.useEffect(function(){return function(){Xn(),hn.current.forEach(function(fr){return Ge.cancel(fr)})}},[]);var lr=Pe();if(lr)return null;var mr="".concat(wt,"-handler"),Or=rt()(mr,"".concat(mr,"-up"),(0,ke.Z)({},"".concat(mr,"-up-disabled"),ze)),Rr=rt()(mr,"".concat(mr,"-down"),(0,ke.Z)({},"".concat(mr,"-down-disabled"),Ct)),Zr=function(){return hn.current.push(Ge(Xn))},Kn={unselectable:"on",role:"button",onMouseUp:Zr,onMouseLeave:Zr};return Ve.createElement("div",{className:"".concat(mr,"-wrap")},Ve.createElement("span",(0,ge.Z)({},Kn,{onMouseDown:function(Mn){_r(Mn,!0)},"aria-label":"Increase Value","aria-disabled":ze,className:Or}),Zt||Ve.createElement("span",{unselectable:"on",className:"".concat(wt,"-handler-up-inner")})),Ve.createElement("span",(0,ge.Z)({},Kn,{onMouseDown:function(Mn){_r(Mn,!1)},"aria-label":"Decrease Value","aria-disabled":Ct,className:Rr}),an||Ve.createElement("span",{unselectable:"on",className:"".concat(wt,"-handler-down-inner")})))}function Vt(qe){var wt=typeof qe=="number"?Be(qe):dt(qe).fullStr,Zt=wt.includes(".");return Zt?dt(wt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:qe+"0"}var sn=se(87887),it=function(){var qe=(0,Ve.useRef)(0),wt=function(){Ge.cancel(qe.current)};return(0,Ve.useEffect)(function(){return wt},[]),function(Zt){wt(),qe.current=Ge(function(){Zt()})}},Mt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Ot=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],$t=function(wt,Zt){return wt||Zt.isEmpty()?Zt.toString():Zt.toNumber()},bt=function(wt){var Zt=Ae(wt);return Zt.isInvalidate()?null:Zt},_n=Ve.forwardRef(function(qe,wt){var Zt,an=qe.prefixCls,ze=an===void 0?"rc-input-number":an,Ct=qe.className,tn=qe.style,Kt=qe.min,hn=qe.max,gn=qe.step,Xn=gn===void 0?1:gn,_r=qe.defaultValue,lr=qe.value,mr=qe.disabled,Or=qe.readOnly,Rr=qe.upHandler,Zr=qe.downHandler,Kn=qe.keyboard,fr=qe.controls,Mn=fr===void 0?!0:fr,Sn=qe.classNames,on=qe.stringMode,yr=qe.parser,Wr=qe.formatter,Lr=qe.precision,qr=qe.decimalSeparator,Cn=qe.onChange,Er=qe.onInput,vr=qe.onPressEnter,ta=qe.onStep,Hi=(0,me.Z)(qe,Mt),Pi="".concat(ze,"-input"),Di=Ve.useRef(null),qi=Ve.useState(!1),Ki=(0,xe.Z)(qi,2),di=Ki[0],na=Ki[1],aa=Ve.useRef(!1),_i=Ve.useRef(!1),Mi=Ve.useRef(!1),Sa=Ve.useState(function(){return Ae(lr!=null?lr:_r)}),Si=(0,xe.Z)(Sa,2),$r=Si[0],Ft=Si[1];function Pt(kr){lr===void 0&&Ft(kr)}var pn=Ve.useCallback(function(kr,Cr){if(!Cr)return Lr>=0?Lr:Math.max(Je(kr),Je(Xn))},[Lr,Xn]),Pn=Ve.useCallback(function(kr){var Cr=String(kr);if(yr)return yr(Cr);var Ir=Cr;return qr&&(Ir=Ir.replace(qr,".")),Ir.replace(/[^\w.-]+/g,"")},[yr,qr]),cr=Ve.useRef(""),Gr=Ve.useCallback(function(kr,Cr){if(Wr)return Wr(kr,{userTyping:Cr,input:String(cr.current)});var Ir=typeof kr=="number"?Be(kr):kr;if(!Cr){var Ue=pn(Ir,Cr);if(gt(Ir)&&(qr||Ue>=0)){var We=qr||".";Ir=Ce(Ir,We,Ue)}}return Ir},[Wr,pn,qr]),Xr=Ve.useState(function(){var kr=_r!=null?_r:lr;return $r.isInvalidate()&&["string","number"].includes((0,Ee.Z)(kr))?Number.isNaN(kr)?"":kr:Gr($r.toString(),!1)}),oi=(0,xe.Z)(Xr,2),jt=oi[0],ur=oi[1];cr.current=jt;function li(kr,Cr){ur(Gr(kr.isInvalidate()?kr.toString(!1):kr.toString(!Cr),Cr))}var ci=Ve.useMemo(function(){return bt(hn)},[hn,Lr]),Oi=Ve.useMemo(function(){return bt(Kt)},[Kt,Lr]),ra=Ve.useMemo(function(){return!ci||!$r||$r.isInvalidate()?!1:ci.lessEquals($r)},[ci,$r]),hr=Ve.useMemo(function(){return!Oi||!$r||$r.isInvalidate()?!1:$r.lessEquals(Oi)},[Oi,$r]),Qi=mn(Di.current,di),Re=(0,xe.Z)(Qi,2),Ze=Re[0],je=Re[1],et=function(Cr){return ci&&!Cr.lessEquals(ci)?ci:Oi&&!Oi.lessEquals(Cr)?Oi:null},Et=function(Cr){return!et(Cr)},It=function(Cr,Ir){var Ue=Cr,We=Et(Ue)||Ue.isEmpty();if(!Ue.isEmpty()&&!Ir&&(Ue=et(Ue)||Ue,We=!0),!Or&&!mr&&We){var we=Ue.toString(),Oe=pn(we,Ir);return Oe>=0&&(Ue=Ae(Ce(we,".",Oe)),Et(Ue)||(Ue=Ae(Ce(we,".",Oe,!0)))),Ue.equals($r)||(Pt(Ue),Cn==null||Cn(Ue.isEmpty()?null:$t(on,Ue)),lr===void 0&&li(Ue,Ir)),Ue}return $r},Ut=it(),Ln=function kr(Cr){if(Ze(),cr.current=Cr,ur(Cr),!_i.current){var Ir=Pn(Cr),Ue=Ae(Ir);Ue.isNaN()||It(Ue,!0)}Er==null||Er(Cr),Ut(function(){var We=Cr;yr||(We=Cr.replace(/。/g,".")),We!==Cr&&kr(We)})},Nn=function(){_i.current=!0},Mr=function(){_i.current=!1,Ln(Di.current.value)},Hr=function(Cr){Ln(Cr.target.value)},xr=function(Cr){var Ir;if(!(Cr&&ra||!Cr&&hr)){aa.current=!1;var Ue=Ae(Mi.current?Vt(Xn):Xn);Cr||(Ue=Ue.negate());var We=($r||Ae(0)).add(Ue.toString()),we=It(We,!1);ta==null||ta($t(on,we),{offset:Mi.current?Vt(Xn):Xn,type:Cr?"up":"down"}),(Ir=Di.current)===null||Ir===void 0||Ir.focus()}},Gn=function(Cr){var Ir=Ae(Pn(jt)),Ue=Ir;Ir.isNaN()?Ue=It($r,Cr):Ue=It(Ir,Cr),lr!==void 0?li($r,!1):Ue.isNaN()||li(Ue,!1)},jn=function(){aa.current=!0},$n=function(Cr){var Ir=Cr.key,Ue=Cr.shiftKey;aa.current=!0,Mi.current=Ue,Ir==="Enter"&&(_i.current||(aa.current=!1),Gn(!1),vr==null||vr(Cr)),Kn!==!1&&!_i.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ir)&&(xr(Ir==="Up"||Ir==="ArrowUp"),Cr.preventDefault())},dr=function(){aa.current=!1,Mi.current=!1},Kr=function(){Gn(!1),na(!1),aa.current=!1};return nt(function(){$r.isInvalidate()||li($r,!1)},[Lr]),nt(function(){var kr=Ae(lr);Ft(kr);var Cr=Ae(Pn(jt));(!kr.equals(Cr)||!aa.current||Wr)&&li(kr,aa.current)},[lr]),nt(function(){Wr&&je()},[jt]),Ve.createElement("div",{className:rt()(ze,Sn==null?void 0:Sn.input,Ct,(Zt={},(0,ke.Z)(Zt,"".concat(ze,"-focused"),di),(0,ke.Z)(Zt,"".concat(ze,"-disabled"),mr),(0,ke.Z)(Zt,"".concat(ze,"-readonly"),Or),(0,ke.Z)(Zt,"".concat(ze,"-not-a-number"),$r.isNaN()),(0,ke.Z)(Zt,"".concat(ze,"-out-of-range"),!$r.isInvalidate()&&!Et($r)),Zt)),style:tn,onFocus:function(){na(!0)},onBlur:Kr,onKeyDown:$n,onKeyUp:dr,onCompositionStart:Nn,onCompositionEnd:Mr,onBeforeInput:jn},Mn&&Ve.createElement(Yt,{prefixCls:ze,upNode:Rr,downNode:Zr,upDisabled:ra,downDisabled:hr,onStep:xr}),Ve.createElement("div",{className:"".concat(Pi,"-wrap")},Ve.createElement("input",(0,ge.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Kt,"aria-valuemax":hn,"aria-valuenow":$r.isInvalidate()?null:$r.toString(),step:Xn},Hi,{ref:Wn(Di,wt),className:Pi,value:jt,onChange:Hr,disabled:mr,readOnly:Or}))))}),ct=Ve.forwardRef(function(qe,wt){var Zt=qe.disabled,an=qe.style,ze=qe.prefixCls,Ct=qe.value,tn=qe.prefix,Kt=qe.suffix,hn=qe.addonBefore,gn=qe.addonAfter,Xn=qe.classes,_r=qe.className,lr=qe.classNames,mr=(0,me.Z)(qe,Ot),Or=Ve.useRef(null),Rr=function(Kn){Or.current&&(0,sn.nH)(Or.current,Kn)};return Ve.createElement(Ye.BaseInput,{inputElement:Ve.createElement(_n,(0,ge.Z)({prefixCls:ze,disabled:Zt,classNames:lr,ref:Wn(Or,wt)},mr)),className:_r,triggerFocus:Rr,prefixCls:ze,value:Ct,disabled:Zt,style:an,prefix:tn,suffix:Kt,addonAfter:gn,addonBefore:hn,classes:Xn,classNames:lr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});ct.displayName="InputNumber";var Dt=ct,En=Dt,wn=se(9708),Bn=se(53124),Qn=se(46735),wr=se(98866),br=se(98675),Sr=se(65223),Yn=se(4173),ir=se(47673),Dr=se(14747),ti=se(80110),Ai=se(67968),tr=se(45503);const Jr=(qe,wt)=>{let{componentCls:Zt,borderRadiusSM:an,borderRadiusLG:ze}=qe;const Ct=wt==="lg"?ze:an;return{[`&-${wt}`]:{[`${Zt}-handler-wrap`]:{borderStartEndRadius:Ct,borderEndEndRadius:Ct},[`${Zt}-handler-up`]:{borderStartEndRadius:Ct},[`${Zt}-handler-down`]:{borderEndEndRadius:Ct}}}},kt=qe=>{const{componentCls:wt,lineWidth:Zt,lineType:an,colorBorder:ze,borderRadius:Ct,fontSizeLG:tn,controlHeightLG:Kt,controlHeightSM:hn,colorError:gn,paddingInlineSM:Xn,colorTextDescription:_r,motionDurationMid:lr,handleHoverColor:mr,paddingInline:Or,paddingBlock:Rr,handleBg:Zr,handleActiveBg:Kn,colorTextDisabled:fr,borderRadiusSM:Mn,borderRadiusLG:Sn,controlWidth:on,handleVisible:yr,handleBorderColor:Wr}=qe;return[{[wt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Dr.Wf)(qe)),(0,ir.ik)(qe)),(0,ir.bi)(qe,wt)),{display:"inline-block",width:on,margin:0,padding:0,border:`${Zt}px ${an} ${ze}`,borderRadius:Ct,"&-rtl":{direction:"rtl",[`${wt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:tn,borderRadius:Sn,[`input${wt}-input`]:{height:Kt-2*Zt}},"&-sm":{padding:0,borderRadius:Mn,[`input${wt}-input`]:{height:hn-2*Zt,padding:`0 ${Xn}px`}},"&:hover":Object.assign({},(0,ir.pU)(qe)),"&-focused":Object.assign({},(0,ir.M1)(qe)),"&-out-of-range":{[`${wt}-input-wrap`]:{input:{color:gn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Dr.Wf)(qe)),(0,ir.s7)(qe)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${wt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${wt}-group-addon`]:{borderRadius:Sn,fontSize:qe.fontSizeLG}},"&-sm":{[`${wt}-group-addon`]:{borderRadius:Mn}},[`${wt}-wrapper-disabled > ${wt}-group-addon`]:Object.assign({},(0,ir.Xy)(qe))}}),[`&-disabled ${wt}-input`]:{cursor:"not-allowed"},[wt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Dr.Wf)(qe)),{width:"100%",padding:`${Rr}px ${Or}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Ct,outline:0,transition:`all ${lr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,ir.nz)(qe.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[wt]:Object.assign(Object.assign(Object.assign({[`&:hover ${wt}-handler-wrap, &-focused ${wt}-handler-wrap`]:{opacity:1},[`${wt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:qe.handleWidth,height:"100%",background:Zr,borderStartStartRadius:0,borderStartEndRadius:Ct,borderEndEndRadius:Ct,borderEndStartRadius:0,opacity:yr===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${lr} linear ${lr}`,[`${wt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${wt}-handler-up-inner,
|
|
|
${wt}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:qe.handleFontSize}}},[`${wt}-handler`]:{height:"50%",overflow:"hidden",color:_r,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Zt}px ${an} ${Wr}`,transition:`all ${lr} linear`,"&:active":{background:Kn},"&:hover":{height:"60%",[`
|
|
|
${wt}-handler-up-inner,
|
|
|
${wt}-handler-down-inner
|
|
|
`]:{color:mr}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Dr.Ro)()),{color:_r,transition:`all ${lr} linear`,userSelect:"none"})},[`${wt}-handler-up`]:{borderStartEndRadius:Ct},[`${wt}-handler-down`]:{borderBlockStart:`${Zt}px ${an} ${Wr}`,borderEndEndRadius:Ct}},Jr(qe,"lg")),Jr(qe,"sm")),{"&-disabled, &-readonly":{[`${wt}-handler-wrap`]:{display:"none"},[`${wt}-input`]:{color:"inherit"}},[`
|
|
|
${wt}-handler-up-disabled,
|
|
|
${wt}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${wt}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${wt}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:fr}})},{[`${wt}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${wt}-handler-down`]:{borderBlockStartWidth:0}}}]},vn=qe=>{const{componentCls:wt,paddingBlock:Zt,paddingInline:an,inputAffixPadding:ze,controlWidth:Ct,borderRadiusLG:tn,borderRadiusSM:Kt}=qe;return{[`${wt}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,ir.ik)(qe)),(0,ir.bi)(qe,`${wt}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Ct,padding:0,paddingInlineStart:an,"&-lg":{borderRadius:tn},"&-sm":{borderRadius:Kt},[`&:not(${wt}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,ir.pU)(qe)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${wt}-disabled`]:{background:"transparent"},[`> div${wt}`]:{width:"100%",border:"none",outline:"none",[`&${wt}-focused`]:{boxShadow:"none !important"}},[`input${wt}-input`]:{padding:`${Zt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${wt}-handler-wrap`]:{zIndex:2},[wt]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:ze},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:an,marginInlineStart:ze}}})}};var Rn=(0,Ai.Z)("InputNumber",qe=>{const wt=(0,tr.TS)(qe,(0,ir.e5)(qe));return[kt(wt),vn(wt),(0,ti.c)(wt)]},qe=>Object.assign(Object.assign({},(0,ir.TM)(qe)),{controlWidth:90,handleWidth:qe.controlHeightSM-qe.lineWidth*2,handleFontSize:qe.fontSize/2,handleVisible:"auto",handleActiveBg:qe.colorFillAlter,handleBg:qe.colorBgContainer,handleHoverColor:qe.colorPrimary,handleBorderColor:qe.colorBorder})),In=function(qe,wt){var Zt={};for(var an in qe)Object.prototype.hasOwnProperty.call(qe,an)&&wt.indexOf(an)<0&&(Zt[an]=qe[an]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,an=Object.getOwnPropertySymbols(qe);ze<an.length;ze++)wt.indexOf(an[ze])<0&&Object.prototype.propertyIsEnumerable.call(qe,an[ze])&&(Zt[an[ze]]=qe[an[ze]]);return Zt};const nr=Ve.forwardRef((qe,wt)=>{const{getPrefixCls:Zt,direction:an}=Ve.useContext(Bn.E_),ze=Ve.useRef(null);Ve.useImperativeHandle(wt,()=>ze.current);const{className:Ct,rootClassName:tn,size:Kt,disabled:hn,prefixCls:gn,addonBefore:Xn,addonAfter:_r,prefix:lr,bordered:mr=!0,readOnly:Or,status:Rr,controls:Zr}=qe,Kn=In(qe,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),fr=Zt("input-number",gn),[Mn,Sn]=Rn(fr),{compactSize:on,compactItemClassnames:yr}=(0,Yn.ri)(fr,an);let Wr=Ve.createElement(Le.Z,{className:`${fr}-handler-up-inner`}),Lr=Ve.createElement(ae.Z,{className:`${fr}-handler-down-inner`});const qr=typeof Zr=="boolean"?Zr:void 0;typeof Zr=="object"&&(Wr=typeof Zr.upIcon=="undefined"?Wr:Ve.createElement("span",{className:`${fr}-handler-up-inner`},Zr.upIcon),Lr=typeof Zr.downIcon=="undefined"?Lr:Ve.createElement("span",{className:`${fr}-handler-down-inner`},Zr.downIcon));const{hasFeedback:Cn,status:Er,isFormItemInput:vr,feedbackIcon:ta}=Ve.useContext(Sr.aM),Hi=(0,wn.F)(Er,Rr),Pi=(0,br.Z)(aa=>{var _i;return(_i=Kt!=null?Kt:on)!==null&&_i!==void 0?_i:aa}),Di=Ve.useContext(wr.Z),qi=hn!=null?hn:Di,Ki=rt()({[`${fr}-lg`]:Pi==="large",[`${fr}-sm`]:Pi==="small",[`${fr}-rtl`]:an==="rtl",[`${fr}-borderless`]:!mr,[`${fr}-in-form-item`]:vr},(0,wn.Z)(fr,Hi),yr,Sn),di=`${fr}-group`,na=Ve.createElement(En,Object.assign({ref:ze,disabled:qi,className:rt()(Ct,tn),upHandler:Wr,downHandler:Lr,prefixCls:fr,readOnly:Or,controls:qr,prefix:lr,suffix:Cn&&ta,addonAfter:_r&&Ve.createElement(Yn.BR,null,Ve.createElement(Sr.Ux,{override:!0,status:!0},_r)),addonBefore:Xn&&Ve.createElement(Yn.BR,null,Ve.createElement(Sr.Ux,{override:!0,status:!0},Xn)),classNames:{input:Ki},classes:{affixWrapper:rt()((0,wn.Z)(`${fr}-affix-wrapper`,Hi,Cn),{[`${fr}-affix-wrapper-sm`]:Pi==="small",[`${fr}-affix-wrapper-lg`]:Pi==="large",[`${fr}-affix-wrapper-rtl`]:an==="rtl",[`${fr}-affix-wrapper-borderless`]:!mr},Sn),wrapper:rt()({[`${di}-rtl`]:an==="rtl",[`${fr}-wrapper-disabled`]:qi},Sn),group:rt()({[`${fr}-group-wrapper-sm`]:Pi==="small",[`${fr}-group-wrapper-lg`]:Pi==="large",[`${fr}-group-wrapper-rtl`]:an==="rtl"},(0,wn.Z)(`${fr}-group-wrapper`,Hi,Cn),Sn)}},Kn));return Mn(na)}),gr=nr,sr=qe=>Ve.createElement(Qn.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ve.createElement(nr,Object.assign({},qe)));gr._InternalPanelDoNotUseOrYouWillBeFired=sr;var Un=gr},82586:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return nn},n:function(){return Be}});var ae=se(16646),Le=se(94184),_e=se.n(Le),rt=se(67656),ge=se(17799),ke=se(67294),Ee=se(9708),xe=se(53124),me=se(98866),De=se(98675),ot=se(65223),Ne=se(4173),mt=se(72922),dt=se(47673);function pt(at){return!!(at.prefix||at.suffix||at.allowClear)}var Je=function(at,vt){var Ce={};for(var Ae in at)Object.prototype.hasOwnProperty.call(at,Ae)&&vt.indexOf(Ae)<0&&(Ce[Ae]=at[Ae]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ae=Object.getOwnPropertySymbols(at);Ye<Ae.length;Ye++)vt.indexOf(Ae[Ye])<0&&Object.prototype.propertyIsEnumerable.call(at,Ae[Ye])&&(Ce[Ae[Ye]]=at[Ae[Ye]]);return Ce};function Be(at,vt){if(!at)return;at.focus(vt);const{cursor:Ce}=vt||{};if(Ce){const Ae=at.value.length;switch(Ce){case"start":at.setSelectionRange(0,0);break;case"end":at.setSelectionRange(Ae,Ae);break;default:at.setSelectionRange(0,Ae);break}}}var nn=(0,ke.forwardRef)((at,vt)=>{var Ce;const{prefixCls:Ae,bordered:Ye=!0,status:Ve,size:At,disabled:xt,onBlur:Lt,onFocus:nt,suffix:qt,allowClear:zt,addonAfter:bn,addonBefore:dn,className:Wn,style:rr,styles:ln,rootClassName:$e,onChange:Se,classNames:Bt}=at,xn=Je(at,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Xt,direction:ft,input:yt}=ke.useContext(xe.E_),Gt=Xt("input",Ae),qn=(0,ke.useRef)(null),[Dn,Tt]=(0,dt.ZP)(Gt),{compactSize:mn,compactItemClassnames:Vn}=(0,Ne.ri)(Gt,ft),kn=(0,De.Z)(Mt=>{var Ot;return(Ot=At!=null?At:mn)!==null&&Ot!==void 0?Ot:Mt}),Pe=ke.useContext(me.Z),fe=xt!=null?xt:Pe,{status:ce,hasFeedback:he,feedbackIcon:ue}=(0,ke.useContext)(ot.aM),le=(0,Ee.F)(ce,Ve),Me=pt(at)||!!he,Ge=(0,ke.useRef)(Me);(0,ke.useEffect)(()=>{var Mt;Me&&Ge.current,Ge.current=Me},[Me]);const St=(0,mt.Z)(qn,!0),Ht=Mt=>{St(),Lt==null||Lt(Mt)},Yt=Mt=>{St(),nt==null||nt(Mt)},Vt=Mt=>{St(),Se==null||Se(Mt)},sn=(he||qt)&&ke.createElement(ke.Fragment,null,qt,he&&ue);let it;return typeof zt=="object"&&(zt!=null&&zt.clearIcon)?it=zt:zt&&(it={clearIcon:ke.createElement(ae.Z,null)}),Dn(ke.createElement(rt.default,Object.assign({ref:(0,ge.sQ)(vt,qn),prefixCls:Gt,autoComplete:yt==null?void 0:yt.autoComplete},xn,{disabled:fe,onBlur:Ht,onFocus:Yt,style:Object.assign(Object.assign({},yt==null?void 0:yt.style),rr),styles:Object.assign(Object.assign({},yt==null?void 0:yt.styles),ln),suffix:sn,allowClear:it,className:_e()(Wn,$e,Vn,yt==null?void 0:yt.className),onChange:Vt,addonAfter:bn&&ke.createElement(Ne.BR,null,ke.createElement(ot.Ux,{override:!0,status:!0},bn)),addonBefore:dn&&ke.createElement(Ne.BR,null,ke.createElement(ot.Ux,{override:!0,status:!0},dn)),classNames:Object.assign(Object.assign(Object.assign({},Bt),yt==null?void 0:yt.classNames),{input:_e()({[`${Gt}-sm`]:kn==="small",[`${Gt}-lg`]:kn==="large",[`${Gt}-rtl`]:ft==="rtl",[`${Gt}-borderless`]:!Ye},!Me&&(0,Ee.Z)(Gt,le),Bt==null?void 0:Bt.input,(Ce=yt==null?void 0:yt.classNames)===null||Ce===void 0?void 0:Ce.input,Tt)}),classes:{affixWrapper:_e()({[`${Gt}-affix-wrapper-sm`]:kn==="small",[`${Gt}-affix-wrapper-lg`]:kn==="large",[`${Gt}-affix-wrapper-rtl`]:ft==="rtl",[`${Gt}-affix-wrapper-borderless`]:!Ye},(0,Ee.Z)(`${Gt}-affix-wrapper`,le,he),Tt),wrapper:_e()({[`${Gt}-group-rtl`]:ft==="rtl"},Tt),group:_e()({[`${Gt}-group-wrapper-sm`]:kn==="small",[`${Gt}-group-wrapper-lg`]:kn==="large",[`${Gt}-group-wrapper-rtl`]:ft==="rtl",[`${Gt}-group-wrapper-disabled`]:fe},(0,Ee.Z)(`${Gt}-group-wrapper`,le,he),Tt)}})))})},96330:function(yn,fn,se){"use strict";var ae=se(16646),Le=se(94184),_e=se.n(Le),rt=se(64701),ge=se(67294),ke=se(9708),Ee=se(53124),xe=se(98866),me=se(98675),De=se(65223),ot=se(82586),Ne=se(47673),mt=function(pt,Je){var Be={};for(var gt in pt)Object.prototype.hasOwnProperty.call(pt,gt)&&Je.indexOf(gt)<0&&(Be[gt]=pt[gt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nn=0,gt=Object.getOwnPropertySymbols(pt);nn<gt.length;nn++)Je.indexOf(gt[nn])<0&&Object.prototype.propertyIsEnumerable.call(pt,gt[nn])&&(Be[gt[nn]]=pt[gt[nn]]);return Be};const dt=(0,ge.forwardRef)((pt,Je)=>{const{prefixCls:Be,bordered:gt=!0,size:nn,disabled:at,status:vt,allowClear:Ce,showCount:Ae,classNames:Ye,rootClassName:Ve,className:At}=pt,xt=mt(pt,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Lt,direction:nt}=ge.useContext(Ee.E_),qt=(0,me.Z)(nn),zt=ge.useContext(xe.Z),bn=at!=null?at:zt,{status:dn,hasFeedback:Wn,feedbackIcon:rr}=ge.useContext(De.aM),ln=(0,ke.F)(dn,vt),$e=ge.useRef(null);ge.useImperativeHandle(Je,()=>{var ft;return{resizableTextArea:(ft=$e.current)===null||ft===void 0?void 0:ft.resizableTextArea,focus:yt=>{var Gt,qn;(0,ot.n)((qn=(Gt=$e.current)===null||Gt===void 0?void 0:Gt.resizableTextArea)===null||qn===void 0?void 0:qn.textArea,yt)},blur:()=>{var yt;return(yt=$e.current)===null||yt===void 0?void 0:yt.blur()}}});const Se=Lt("input",Be);let Bt;typeof Ce=="object"&&(Ce!=null&&Ce.clearIcon)?Bt=Ce:Ce&&(Bt={clearIcon:ge.createElement(ae.Z,null)});const[xn,Xt]=(0,Ne.ZP)(Se);return xn(ge.createElement(rt.default,Object.assign({},xt,{disabled:bn,allowClear:Bt,className:_e()(At,Ve),classes:{affixWrapper:_e()(`${Se}-textarea-affix-wrapper`,{[`${Se}-affix-wrapper-rtl`]:nt==="rtl",[`${Se}-affix-wrapper-borderless`]:!gt,[`${Se}-affix-wrapper-sm`]:qt==="small",[`${Se}-affix-wrapper-lg`]:qt==="large",[`${Se}-textarea-show-count`]:Ae},(0,ke.Z)(`${Se}-affix-wrapper`,ln),Xt)},classNames:Object.assign(Object.assign({},Ye),{textarea:_e()({[`${Se}-borderless`]:!gt,[`${Se}-sm`]:qt==="small",[`${Se}-lg`]:qt==="large"},(0,ke.Z)(Se,ln),Xt,Ye==null?void 0:Ye.textarea)}),prefixCls:Se,suffix:Wn&&ge.createElement("span",{className:`${Se}-textarea-suffix`},rr),showCount:Ae,ref:$e})))});fn.Z=dt},72922:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Le}});var ae=se(67294);function Le(_e,rt){const ge=(0,ae.useRef)([]),ke=()=>{ge.current.push(setTimeout(()=>{var Ee,xe,me,De;!((Ee=_e.current)===null||Ee===void 0)&&Ee.input&&((xe=_e.current)===null||xe===void 0?void 0:xe.input.getAttribute("type"))==="password"&&(!((me=_e.current)===null||me===void 0)&&me.input.hasAttribute("value"))&&((De=_e.current)===null||De===void 0||De.input.removeAttribute("value"))}))};return(0,ae.useEffect)(()=>(rt&&ke(),()=>ge.current.forEach(Ee=>{Ee&&clearTimeout(Ee)})),[]),ke}},69677:function(yn,fn,se){"use strict";se.d(fn,{default:function(){return qt}});var ae=se(94184),Le=se.n(ae),_e=se(67294),rt=se(53124),ge=se(65223),ke=se(47673),xe=zt=>{const{getPrefixCls:bn,direction:dn}=(0,_e.useContext)(rt.E_),{prefixCls:Wn,className:rr}=zt,ln=bn("input-group",Wn),$e=bn("input"),[Se,Bt]=(0,ke.ZP)($e),xn=Le()(ln,{[`${ln}-lg`]:zt.size==="large",[`${ln}-sm`]:zt.size==="small",[`${ln}-compact`]:zt.compact,[`${ln}-rtl`]:dn==="rtl"},Bt,rr),Xt=(0,_e.useContext)(ge.aM),ft=(0,_e.useMemo)(()=>Object.assign(Object.assign({},Xt),{isFormItemInput:!1}),[Xt]);return Se(_e.createElement("span",{className:xn,style:zt.style,onMouseEnter:zt.onMouseEnter,onMouseLeave:zt.onMouseLeave,onFocus:zt.onFocus,onBlur:zt.onBlur},_e.createElement(ge.aM.Provider,{value:ft},zt.children)))},me=se(82586),De=se(63237),ot=se(99569),Ne=se(10366),mt=se(17799),dt=se(72922),pt=function(zt,bn){var dn={};for(var Wn in zt)Object.prototype.hasOwnProperty.call(zt,Wn)&&bn.indexOf(Wn)<0&&(dn[Wn]=zt[Wn]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rr=0,Wn=Object.getOwnPropertySymbols(zt);rr<Wn.length;rr++)bn.indexOf(Wn[rr])<0&&Object.prototype.propertyIsEnumerable.call(zt,Wn[rr])&&(dn[Wn[rr]]=zt[Wn[rr]]);return dn};const Je=zt=>zt?_e.createElement(ot.Z,null):_e.createElement(De.Z,null),Be={click:"onClick",hover:"onMouseOver"};var nn=_e.forwardRef((zt,bn)=>{const{visibilityToggle:dn=!0}=zt,Wn=typeof dn=="object"&&dn.visible!==void 0,[rr,ln]=(0,_e.useState)(()=>Wn?dn.visible:!1),$e=(0,_e.useRef)(null);_e.useEffect(()=>{Wn&&ln(dn.visible)},[Wn,dn]);const Se=(0,dt.Z)($e),Bt=()=>{const{disabled:fe}=zt;fe||(rr&&Se(),ln(ce=>{var he;const ue=!ce;return typeof dn=="object"&&((he=dn.onVisibleChange)===null||he===void 0||he.call(dn,ue)),ue}))},xn=fe=>{const{action:ce="click",iconRender:he=Je}=zt,ue=Be[ce]||"",le=he(rr),Me={[ue]:Bt,className:`${fe}-icon`,key:"passwordIcon",onMouseDown:Ge=>{Ge.preventDefault()},onMouseUp:Ge=>{Ge.preventDefault()}};return _e.cloneElement(_e.isValidElement(le)?le:_e.createElement("span",null,le),Me)},{className:Xt,prefixCls:ft,inputPrefixCls:yt,size:Gt}=zt,qn=pt(zt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Dn}=_e.useContext(rt.E_),Tt=Dn("input",yt),mn=Dn("input-password",ft),Vn=dn&&xn(mn),kn=Le()(mn,Xt,{[`${mn}-${Gt}`]:!!Gt}),Pe=Object.assign(Object.assign({},(0,Ne.Z)(qn,["suffix","iconRender","visibilityToggle"])),{type:rr?"text":"password",className:kn,prefixCls:Tt,suffix:Vn});return Gt&&(Pe.size=Gt),_e.createElement(me.Z,Object.assign({ref:(0,mt.sQ)(bn,$e)},Pe))}),at=se(72395),vt=se(96159),Ce=se(71577),Ae=se(98675),Ye=se(4173),Ve=function(zt,bn){var dn={};for(var Wn in zt)Object.prototype.hasOwnProperty.call(zt,Wn)&&bn.indexOf(Wn)<0&&(dn[Wn]=zt[Wn]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rr=0,Wn=Object.getOwnPropertySymbols(zt);rr<Wn.length;rr++)bn.indexOf(Wn[rr])<0&&Object.prototype.propertyIsEnumerable.call(zt,Wn[rr])&&(dn[Wn[rr]]=zt[Wn[rr]]);return dn},xt=_e.forwardRef((zt,bn)=>{const{prefixCls:dn,inputPrefixCls:Wn,className:rr,size:ln,suffix:$e,enterButton:Se=!1,addonAfter:Bt,loading:xn,disabled:Xt,onSearch:ft,onChange:yt,onCompositionStart:Gt,onCompositionEnd:qn}=zt,Dn=Ve(zt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Tt,direction:mn}=_e.useContext(rt.E_),Vn=_e.useRef(!1),kn=Tt("input-search",dn),Pe=Tt("input",Wn),{compactSize:fe}=(0,Ye.ri)(kn,mn),ce=(0,Ae.Z)($t=>{var bt;return(bt=ln!=null?ln:fe)!==null&&bt!==void 0?bt:$t}),he=_e.useRef(null),ue=$t=>{$t&&$t.target&&$t.type==="click"&&ft&&ft($t.target.value,$t,{source:"clear"}),yt&&yt($t)},le=$t=>{var bt;document.activeElement===((bt=he.current)===null||bt===void 0?void 0:bt.input)&&$t.preventDefault()},Me=$t=>{var bt,_n;ft&&ft((_n=(bt=he.current)===null||bt===void 0?void 0:bt.input)===null||_n===void 0?void 0:_n.value,$t,{source:"input"})},Ge=$t=>{Vn.current||xn||Me($t)},St=typeof Se=="boolean"?_e.createElement(at.Z,null):null,Ht=`${kn}-button`;let Yt;const Vt=Se||{},sn=Vt.type&&Vt.type.__ANT_BUTTON===!0;sn||Vt.type==="button"?Yt=(0,vt.Tm)(Vt,Object.assign({onMouseDown:le,onClick:$t=>{var bt,_n;(_n=(bt=Vt==null?void 0:Vt.props)===null||bt===void 0?void 0:bt.onClick)===null||_n===void 0||_n.call(bt,$t),Me($t)},key:"enterButton"},sn?{className:Ht,size:ce}:{})):Yt=_e.createElement(Ce.ZP,{className:Ht,type:Se?"primary":void 0,size:ce,disabled:Xt,key:"enterButton",onMouseDown:le,onClick:Me,loading:xn,icon:St},Se),Bt&&(Yt=[Yt,(0,vt.Tm)(Bt,{key:"addonAfter"})]);const it=Le()(kn,{[`${kn}-rtl`]:mn==="rtl",[`${kn}-${ce}`]:!!ce,[`${kn}-with-button`]:!!Se},rr),Mt=$t=>{Vn.current=!0,Gt==null||Gt($t)},Ot=$t=>{Vn.current=!1,qn==null||qn($t)};return _e.createElement(me.Z,Object.assign({ref:(0,mt.sQ)(he,bn),onPressEnter:Ge},Dn,{size:ce,onCompositionStart:Mt,onCompositionEnd:Ot,prefixCls:Pe,addonAfter:Yt,suffix:$e,onChange:ue,className:it,disabled:Xt}))}),Lt=se(96330);const nt=me.Z;nt.Group=xe,nt.Search=xt,nt.TextArea=Lt.Z,nt.Password=nn;var qt=nt},47673:function(yn,fn,se){"use strict";se.d(fn,{M1:function(){return Ee},TM:function(){return vt},Xy:function(){return xe},bi:function(){return ot},e5:function(){return at},ik:function(){return Ne},nz:function(){return ge},pU:function(){return ke},s7:function(){return mt},x0:function(){return De}});var ae=se(14747),Le=se(80110),_e=se(45503),rt=se(67968);const ge=Ce=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Ce,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ke=Ce=>({borderColor:Ce.hoverBorderColor}),Ee=Ce=>({borderColor:Ce.activeBorderColor,boxShadow:Ce.activeShadow,outline:0}),xe=Ce=>({color:Ce.colorTextDisabled,backgroundColor:Ce.colorBgContainerDisabled,borderColor:Ce.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},ke((0,_e.TS)(Ce,{hoverBorderColor:Ce.colorBorder})))}),me=Ce=>{const{paddingBlockLG:Ae,fontSizeLG:Ye,lineHeightLG:Ve,borderRadiusLG:At,paddingInlineLG:xt}=Ce;return{padding:`${Ae}px ${xt}px`,fontSize:Ye,lineHeight:Ve,borderRadius:At}},De=Ce=>({padding:`${Ce.paddingBlockSM}px ${Ce.paddingInlineSM}px`,borderRadius:Ce.borderRadiusSM}),ot=(Ce,Ae)=>{const{componentCls:Ye,colorError:Ve,colorWarning:At,errorActiveShadow:xt,warningActiveShadow:Lt,colorErrorBorderHover:nt,colorWarningBorderHover:qt}=Ce;return{[`&-status-error:not(${Ae}-disabled):not(${Ae}-borderless)${Ae}`]:{borderColor:Ve,"&:hover":{borderColor:nt},"&:focus, &-focused":Object.assign({},Ee((0,_e.TS)(Ce,{activeBorderColor:Ve,activeShadow:xt}))),[`${Ye}-prefix, ${Ye}-suffix`]:{color:Ve}},[`&-status-warning:not(${Ae}-disabled):not(${Ae}-borderless)${Ae}`]:{borderColor:At,"&:hover":{borderColor:qt},"&:focus, &-focused":Object.assign({},Ee((0,_e.TS)(Ce,{activeBorderColor:At,activeShadow:Lt}))),[`${Ye}-prefix, ${Ye}-suffix`]:{color:At}}}},Ne=Ce=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ce.paddingBlock}px ${Ce.paddingInline}px`,color:Ce.colorText,fontSize:Ce.fontSize,lineHeight:Ce.lineHeight,backgroundColor:Ce.colorBgContainer,backgroundImage:"none",borderWidth:Ce.lineWidth,borderStyle:Ce.lineType,borderColor:Ce.colorBorder,borderRadius:Ce.borderRadius,transition:`all ${Ce.motionDurationMid}`},ge(Ce.colorTextPlaceholder)),{"&:hover":Object.assign({},ke(Ce)),"&:focus, &-focused":Object.assign({},Ee(Ce)),"&-disabled, &[disabled]":Object.assign({},xe(Ce)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Ce.controlHeight,lineHeight:Ce.lineHeight,verticalAlign:"bottom",transition:`all ${Ce.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},me(Ce)),"&-sm":Object.assign({},De(Ce)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),mt=Ce=>{const{componentCls:Ae,antCls:Ye}=Ce;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:Ce.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Ae}, &-lg > ${Ae}-group-addon`]:Object.assign({},me(Ce)),[`&-sm ${Ae}, &-sm > ${Ae}-group-addon`]:Object.assign({},De(Ce)),[`&-lg ${Ye}-select-single ${Ye}-select-selector`]:{height:Ce.controlHeightLG},[`&-sm ${Ye}-select-single ${Ye}-select-selector`]:{height:Ce.controlHeightSM},[`> ${Ae}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Ae}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ce.paddingInline}px`,color:Ce.colorText,fontWeight:"normal",fontSize:Ce.fontSize,textAlign:"center",backgroundColor:Ce.colorFillAlter,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`,borderRadius:Ce.borderRadius,transition:`all ${Ce.motionDurationSlow}`,lineHeight:1,[`${Ye}-select`]:{margin:`-${Ce.paddingBlock+1}px -${Ce.paddingInline}px`,[`&${Ye}-select-single:not(${Ye}-select-customize-input)`]:{[`${Ye}-select-selector`]:{backgroundColor:"inherit",border:`${Ce.lineWidth}px ${Ce.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Ye}-select-selector`]:{color:Ce.colorPrimary}}},[`${Ye}-cascader-picker`]:{margin:`-9px -${Ce.paddingInline}px`,backgroundColor:"transparent",[`${Ye}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Ae}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Ae}-search-with-button &`]:{zIndex:0}}},[`> ${Ae}:first-child, ${Ae}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ye}-select ${Ye}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ae}-affix-wrapper`]:{[`&:not(:first-child) ${Ae}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Ae}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ae}:last-child, ${Ae}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Ye}-select ${Ye}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Ae}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ae}-search &`]:{borderStartStartRadius:Ce.borderRadius,borderEndStartRadius:Ce.borderRadius}},[`&:not(:first-child), ${Ae}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Ae}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,ae.dF)()),{[`${Ae}-group-addon, ${Ae}-group-wrap, > ${Ae}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Ce.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${Ae}-affix-wrapper,
|
|
|
& > ${Ae}-number-affix-wrapper,
|
|
|
& > ${Ye}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Ce.lineWidth,borderInlineEndWidth:Ce.lineWidth},[`${Ae}`]:{float:"none"},[`& > ${Ye}-select > ${Ye}-select-selector,
|
|
|
& > ${Ye}-select-auto-complete ${Ae},
|
|
|
& > ${Ye}-cascader-picker ${Ae},
|
|
|
& > ${Ae}-group-wrapper ${Ae}`]:{borderInlineEndWidth:Ce.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Ye}-select-focused`]:{zIndex:1},[`& > ${Ye}-select > ${Ye}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${Ye}-select:first-child > ${Ye}-select-selector,
|
|
|
& > ${Ye}-select-auto-complete:first-child ${Ae},
|
|
|
& > ${Ye}-cascader-picker:first-child ${Ae}`]:{borderStartStartRadius:Ce.borderRadius,borderEndStartRadius:Ce.borderRadius},[`& > *:last-child,
|
|
|
& > ${Ye}-select:last-child > ${Ye}-select-selector,
|
|
|
& > ${Ye}-cascader-picker:last-child ${Ae},
|
|
|
& > ${Ye}-cascader-picker-focused:last-child ${Ae}`]:{borderInlineEndWidth:Ce.lineWidth,borderStartEndRadius:Ce.borderRadius,borderEndEndRadius:Ce.borderRadius},[`& > ${Ye}-select-auto-complete ${Ae}`]:{verticalAlign:"top"},[`${Ae}-group-wrapper + ${Ae}-group-wrapper`]:{marginInlineStart:-Ce.lineWidth,[`${Ae}-affix-wrapper`]:{borderRadius:0}},[`${Ae}-group-wrapper:not(:last-child)`]:{[`&${Ae}-search > ${Ae}-group`]:{[`& > ${Ae}-group-addon > ${Ae}-search-button`]:{borderRadius:0},[`& > ${Ae}`]:{borderStartStartRadius:Ce.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ce.borderRadius}}}})}},dt=Ce=>{const{componentCls:Ae,controlHeightSM:Ye,lineWidth:Ve}=Ce,xt=(Ye-Ve*2-16)/2;return{[Ae]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(Ce)),Ne(Ce)),ot(Ce,Ae)),{'&[type="color"]':{height:Ce.controlHeight,[`&${Ae}-lg`]:{height:Ce.controlHeightLG},[`&${Ae}-sm`]:{height:Ye,paddingTop:xt,paddingBottom:xt}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},pt=Ce=>{const{componentCls:Ae}=Ce;return{[`${Ae}-clear-icon`]:{margin:0,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Ce.motionDurationSlow}`,"&:hover":{color:Ce.colorTextTertiary},"&:active":{color:Ce.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ce.inputAffixPadding}px`}}}},Je=Ce=>{const{componentCls:Ae,inputAffixPadding:Ye,colorTextDescription:Ve,motionDurationSlow:At,colorIcon:xt,colorIconHover:Lt,iconCls:nt}=Ce;return{[`${Ae}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ne(Ce)),{display:"inline-flex",[`&:not(${Ae}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},ke(Ce)),{zIndex:1,[`${Ae}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${Ae}[disabled]`]:{background:"transparent"}},[`> input${Ae}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ae}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Ce.paddingXS}},"&-show-count-suffix":{color:Ve},"&-show-count-has-suffix":{marginInlineEnd:Ce.paddingXXS},"&-prefix":{marginInlineEnd:Ye},"&-suffix":{marginInlineStart:Ye}}}),pt(Ce)),{[`${nt}${Ae}-password-icon`]:{color:xt,cursor:"pointer",transition:`all ${At}`,"&:hover":{color:Lt}}}),ot(Ce,`${Ae}-affix-wrapper`))}},Be=Ce=>{const{componentCls:Ae,colorError:Ye,colorWarning:Ve,borderRadiusLG:At,borderRadiusSM:xt}=Ce;return{[`${Ae}-group`]:Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(Ce)),mt(Ce)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Ae}-group-addon`]:{borderRadius:At,fontSize:Ce.fontSizeLG}},"&-sm":{[`${Ae}-group-addon`]:{borderRadius:xt}},"&-status-error":{[`${Ae}-group-addon`]:{color:Ye,borderColor:Ye}},"&-status-warning":{[`${Ae}-group-addon`]:{color:Ve,borderColor:Ve}},"&-disabled":{[`${Ae}-group-addon`]:Object.assign({},xe(Ce))},[`&:not(${Ae}-compact-first-item):not(${Ae}-compact-last-item)${Ae}-compact-item`]:{[`${Ae}, ${Ae}-group-addon`]:{borderRadius:0}},[`&:not(${Ae}-compact-last-item)${Ae}-compact-first-item`]:{[`${Ae}, ${Ae}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Ae}-compact-first-item)${Ae}-compact-last-item`]:{[`${Ae}, ${Ae}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},gt=Ce=>{const{componentCls:Ae,antCls:Ye}=Ce,Ve=`${Ae}-search`;return{[Ve]:{[`${Ae}`]:{"&:hover, &:focus":{borderColor:Ce.colorPrimaryHover,[`+ ${Ae}-group-addon ${Ve}-button:not(${Ye}-btn-primary)`]:{borderInlineStartColor:Ce.colorPrimaryHover}}},[`${Ae}-affix-wrapper`]:{borderRadius:0},[`${Ae}-lg`]:{lineHeight:Ce.lineHeightLG-2e-4},[`> ${Ae}-group`]:{[`> ${Ae}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Ve}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Ce.borderRadius,borderEndEndRadius:Ce.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Ve}-button:not(${Ye}-btn-primary)`]:{color:Ce.colorTextDescription,"&:hover":{color:Ce.colorPrimaryHover},"&:active":{color:Ce.colorPrimaryActive},[`&${Ye}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Ve}-button`]:{height:Ce.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Ve}-button`]:{height:Ce.controlHeightLG},[`&-small ${Ve}-button`]:{height:Ce.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Ae}-compact-item`]:{[`&:not(${Ae}-compact-last-item)`]:{[`${Ae}-group-addon`]:{[`${Ae}-search-button`]:{marginInlineEnd:-Ce.lineWidth,borderRadius:0}}},[`&:not(${Ae}-compact-first-item)`]:{[`${Ae},${Ae}-affix-wrapper`]:{borderRadius:0}},[`> ${Ae}-group-addon ${Ae}-search-button,
|
|
|
> ${Ae},
|
|
|
${Ae}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Ae}-affix-wrapper-focused`]:{zIndex:2}}}}},nn=Ce=>{const{componentCls:Ae,paddingLG:Ye}=Ce,Ve=`${Ae}-textarea`;return{[Ve]:{position:"relative","&-show-count":{[`> ${Ae}`]:{height:"100%"},[`${Ae}-data-count`]:{position:"absolute",bottom:-Ce.fontSize*Ce.lineHeight,insetInlineEnd:0,color:Ce.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Ae}`]:{paddingInlineEnd:Ye}},[`&-affix-wrapper${Ve}-has-feedback`]:{[`${Ae}`]:{paddingInlineEnd:Ye}},[`&-affix-wrapper${Ae}-affix-wrapper`]:{padding:0,[`> textarea${Ae}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Ae}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Ae}-clear-icon`]:{position:"absolute",insetInlineEnd:Ce.paddingXS,insetBlockStart:Ce.paddingXS},[`${Ve}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ce.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function at(Ce){return(0,_e.TS)(Ce,{inputAffixPadding:Ce.paddingXXS})}const vt=Ce=>{const{controlHeight:Ae,fontSize:Ye,lineHeight:Ve,lineWidth:At,controlHeightSM:xt,controlHeightLG:Lt,fontSizeLG:nt,lineHeightLG:qt,paddingSM:zt,controlPaddingHorizontalSM:bn,controlPaddingHorizontal:dn,colorFillAlter:Wn,colorPrimaryHover:rr,controlOutlineWidth:ln,controlOutline:$e,colorErrorOutline:Se,colorWarningOutline:Bt}=Ce;return{paddingBlock:Math.max(Math.round((Ae-Ye*Ve)/2*10)/10-At,3),paddingBlockSM:Math.max(Math.round((xt-Ye*Ve)/2*10)/10-At,0),paddingBlockLG:Math.ceil((Lt-nt*qt)/2*10)/10-At,paddingInline:zt-At,paddingInlineSM:bn-At,paddingInlineLG:dn-At,addonBg:Wn,activeBorderColor:rr,hoverBorderColor:rr,activeShadow:`0 0 0 ${ln}px ${$e}`,errorActiveShadow:`0 0 0 ${ln}px ${Se}`,warningActiveShadow:`0 0 0 ${ln}px ${Bt}`}};fn.ZP=(0,rt.Z)("Input",Ce=>{const Ae=(0,_e.TS)(Ce,at(Ce));return[dt(Ae),nn(Ae),Je(Ae),Be(Ae),gt(Ae),(0,Le.c)(Ae)]},vt)},71322:function(yn,fn,se){"use strict";se.d(fn,{D:function(){return nn},Z:function(){return Ce}});var ae=se(87462),Le=se(67294),_e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},rt=_e,ge=se(84089),ke=function(Ye,Ve){return Le.createElement(ge.Z,(0,ae.Z)({},Ye,{ref:Ve,icon:rt}))},Ee=Le.forwardRef(ke),xe=se(22751),me=se(91034),De=se(94184),ot=se.n(De),Ne=se(10366),dt=Ae=>!isNaN(parseFloat(Ae))&&isFinite(Ae),pt=se(53124),Je=se(84321),Be=function(Ae,Ye){var Ve={};for(var At in Ae)Object.prototype.hasOwnProperty.call(Ae,At)&&Ye.indexOf(At)<0&&(Ve[At]=Ae[At]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,At=Object.getOwnPropertySymbols(Ae);xt<At.length;xt++)Ye.indexOf(At[xt])<0&&Object.prototype.propertyIsEnumerable.call(Ae,At[xt])&&(Ve[At[xt]]=Ae[At[xt]]);return Ve};const gt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},nn=Le.createContext({}),at=(()=>{let Ae=0;return function(){let Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ae+=1,`${Ye}${Ae}`}})();var Ce=Le.forwardRef((Ae,Ye)=>{const{prefixCls:Ve,className:At,trigger:xt,children:Lt,defaultCollapsed:nt=!1,theme:qt="dark",style:zt={},collapsible:bn=!1,reverseArrow:dn=!1,width:Wn=200,collapsedWidth:rr=80,zeroWidthTriggerStyle:ln,breakpoint:$e,onCollapse:Se,onBreakpoint:Bt}=Ae,xn=Be(Ae,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Xt}=(0,Le.useContext)(Je.Gs),[ft,yt]=(0,Le.useState)("collapsed"in Ae?Ae.collapsed:nt),[Gt,qn]=(0,Le.useState)(!1);(0,Le.useEffect)(()=>{"collapsed"in Ae&&yt(Ae.collapsed)},[Ae.collapsed]);const Dn=(fe,ce)=>{"collapsed"in Ae||yt(fe),Se==null||Se(fe,ce)},Tt=(0,Le.useRef)();Tt.current=fe=>{qn(fe.matches),Bt==null||Bt(fe.matches),ft!==fe.matches&&Dn(fe.matches,"responsive")},(0,Le.useEffect)(()=>{function fe(he){return Tt.current(he)}let ce;if(typeof window!="undefined"){const{matchMedia:he}=window;if(he&&$e&&$e in gt){ce=he(`(max-width: ${gt[$e]})`);try{ce.addEventListener("change",fe)}catch(ue){ce.addListener(fe)}fe(ce)}}return()=>{try{ce==null||ce.removeEventListener("change",fe)}catch(he){ce==null||ce.removeListener(fe)}}},[$e]),(0,Le.useEffect)(()=>{const fe=at("ant-sider-");return Xt.addSider(fe),()=>Xt.removeSider(fe)},[]);const mn=()=>{Dn(!ft,"clickTrigger")},{getPrefixCls:Vn}=(0,Le.useContext)(pt.E_),kn=()=>{const fe=Vn("layout-sider",Ve),ce=(0,Ne.Z)(xn,["collapsed"]),he=ft?rr:Wn,ue=dt(he)?`${he}px`:String(he),le=parseFloat(String(rr||0))===0?Le.createElement("span",{onClick:mn,className:ot()(`${fe}-zero-width-trigger`,`${fe}-zero-width-trigger-${dn?"right":"left"}`),style:ln},xt||Le.createElement(Ee,null)):null,St={expanded:dn?Le.createElement(me.Z,null):Le.createElement(xe.Z,null),collapsed:dn?Le.createElement(xe.Z,null):Le.createElement(me.Z,null)}[ft?"collapsed":"expanded"],Ht=xt!==null?le||Le.createElement("div",{className:`${fe}-trigger`,onClick:mn,style:{width:ue}},xt||St):null,Yt=Object.assign(Object.assign({},zt),{flex:`0 0 ${ue}`,maxWidth:ue,minWidth:ue,width:ue}),Vt=ot()(fe,`${fe}-${qt}`,{[`${fe}-collapsed`]:!!ft,[`${fe}-has-trigger`]:bn&&xt!==null&&!le,[`${fe}-below`]:!!Gt,[`${fe}-zero-width`]:parseFloat(ue)===0},At);return Le.createElement("aside",Object.assign({className:Vt},ce,{style:Yt,ref:Ye}),Le.createElement("div",{className:`${fe}-children`},Lt),bn||Gt&&le?Ht:null)},Pe=Le.useMemo(()=>({siderCollapsed:ft}),[ft]);return Le.createElement(nn.Provider,{value:Pe},kn())})},84321:function(yn,fn,se){"use strict";se.d(fn,{VY:function(){return at},$_:function(){return nn},h4:function(){return gt},Gs:function(){return mt},ZP:function(){return vt}});var ae=se(74902),Le=se(94184),_e=se.n(Le),rt=se(10366),ge=se(67294),ke=se(53124),Ee=se(67968),me=Ce=>{const{componentCls:Ae,bodyBg:Ye,lightSiderBg:Ve,lightTriggerBg:At,lightTriggerColor:xt}=Ce;return{[`${Ae}-sider-light`]:{background:Ve,[`${Ae}-sider-trigger`]:{color:xt,background:At},[`${Ae}-sider-zero-width-trigger`]:{color:xt,background:At,border:`1px solid ${Ye}`,borderInlineStart:0}}}};const De=Ce=>{const{antCls:Ae,componentCls:Ye,colorText:Ve,triggerColor:At,footerBg:xt,triggerBg:Lt,headerHeight:nt,headerPadding:qt,headerColor:zt,footerPadding:bn,triggerHeight:dn,zeroTriggerHeight:Wn,zeroTriggerWidth:rr,motionDurationMid:ln,motionDurationSlow:$e,fontSize:Se,borderRadius:Bt,bodyBg:xn,headerBg:Xt,siderBg:ft}=Ce;return{[Ye]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:xn,"&, *":{boxSizing:"border-box"},[`&${Ye}-has-sider`]:{flexDirection:"row",[`> ${Ye}, > ${Ye}-content`]:{width:0}},[`${Ye}-header, &${Ye}-footer`]:{flex:"0 0 auto"},[`${Ye}-sider`]:{position:"relative",minWidth:0,background:ft,transition:`all ${ln}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ae}-menu${Ae}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:dn},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:dn,color:At,lineHeight:`${dn}px`,textAlign:"center",background:Lt,cursor:"pointer",transition:`all ${ln}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:nt,insetInlineEnd:-rr,zIndex:1,width:rr,height:Wn,color:At,fontSize:Ce.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ft,borderStartStartRadius:0,borderStartEndRadius:Bt,borderEndEndRadius:Bt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${$e} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${$e}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-rr,borderStartStartRadius:Bt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Bt}}}}},me(Ce)),{"&-rtl":{direction:"rtl"}}),[`${Ye}-header`]:{height:nt,padding:qt,color:zt,lineHeight:`${nt}px`,background:Xt,[`${Ae}-menu`]:{lineHeight:"inherit"}},[`${Ye}-footer`]:{padding:bn,color:Ve,fontSize:Se,background:xt},[`${Ye}-content`]:{flex:"auto",minHeight:0}}};var ot=(0,Ee.Z)("Layout",Ce=>[De(Ce)],Ce=>{const{colorBgLayout:Ae,controlHeight:Ye,controlHeightLG:Ve,colorText:At,controlHeightSM:xt,marginXXS:Lt,colorTextLightSolid:nt,colorBgContainer:qt}=Ce,zt=Ve*1.25;return{colorBgHeader:"#001529",colorBgBody:Ae,colorBgTrigger:"#002140",bodyBg:Ae,headerBg:"#001529",headerHeight:Ye*2,headerPadding:`0 ${zt}px`,headerColor:At,footerPadding:`${xt}px ${zt}px`,footerBg:Ae,siderBg:"#001529",triggerHeight:Ve+Lt*2,triggerBg:"#002140",triggerColor:nt,zeroTriggerWidth:Ve,zeroTriggerHeight:Ve,lightSiderBg:qt,lightTriggerBg:qt,lightTriggerColor:At}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ne=function(Ce,Ae){var Ye={};for(var Ve in Ce)Object.prototype.hasOwnProperty.call(Ce,Ve)&&Ae.indexOf(Ve)<0&&(Ye[Ve]=Ce[Ve]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,Ve=Object.getOwnPropertySymbols(Ce);At<Ve.length;At++)Ae.indexOf(Ve[At])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Ve[At])&&(Ye[Ve[At]]=Ce[Ve[At]]);return Ye};const mt=ge.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function dt(Ce){let{suffixCls:Ae,tagName:Ye,displayName:Ve}=Ce;return At=>ge.forwardRef((Lt,nt)=>ge.createElement(At,Object.assign({ref:nt,suffixCls:Ae,tagName:Ye},Lt)))}const pt=ge.forwardRef((Ce,Ae)=>{const{prefixCls:Ye,suffixCls:Ve,className:At,tagName:xt}=Ce,Lt=Ne(Ce,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:nt}=ge.useContext(ke.E_),qt=nt("layout",Ye),[zt,bn]=ot(qt),dn=Ve?`${qt}-${Ve}`:qt;return zt(ge.createElement(xt,Object.assign({className:_e()(Ye||dn,At,bn),ref:Ae},Lt)))}),Je=ge.forwardRef((Ce,Ae)=>{const{direction:Ye}=ge.useContext(ke.E_),[Ve,At]=ge.useState([]),{prefixCls:xt,className:Lt,rootClassName:nt,children:qt,hasSider:zt,tagName:bn,style:dn}=Ce,Wn=Ne(Ce,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),rr=(0,rt.Z)(Wn,["suffixCls"]),{getPrefixCls:ln,layout:$e}=ge.useContext(ke.E_),Se=ln("layout",xt),[Bt,xn]=ot(Se),Xt=_e()(Se,{[`${Se}-has-sider`]:typeof zt=="boolean"?zt:Ve.length>0,[`${Se}-rtl`]:Ye==="rtl"},$e==null?void 0:$e.className,Lt,nt,xn),ft=ge.useMemo(()=>({siderHook:{addSider:yt=>{At(Gt=>[].concat((0,ae.Z)(Gt),[yt]))},removeSider:yt=>{At(Gt=>Gt.filter(qn=>qn!==yt))}}}),[]);return Bt(ge.createElement(mt.Provider,{value:ft},ge.createElement(bn,Object.assign({ref:Ae,className:Xt,style:Object.assign(Object.assign({},$e==null?void 0:$e.style),dn)},rr),qt)))}),Be=dt({tagName:"div",displayName:"Layout"})(Je),gt=dt({suffixCls:"header",tagName:"header",displayName:"Header"})(pt),nn=dt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(pt),at=dt({suffixCls:"content",tagName:"main",displayName:"Content"})(pt);var vt=Be},76529:function(yn,fn,se){"use strict";se.d(fn,{J:function(){return ke}});var ae=se(67294),Le=se(4173),_e=se(60276),rt=function(Ee,xe){var me={};for(var De in Ee)Object.prototype.hasOwnProperty.call(Ee,De)&&xe.indexOf(De)<0&&(me[De]=Ee[De]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,De=Object.getOwnPropertySymbols(Ee);ot<De.length;ot++)xe.indexOf(De[ot])<0&&Object.prototype.propertyIsEnumerable.call(Ee,De[ot])&&(me[De[ot]]=Ee[De[ot]]);return me};const ge=ae.createContext(null),ke=ae.forwardRef((Ee,xe)=>{const{children:me}=Ee,De=rt(Ee,["children"]),ot=ae.useContext(ge),Ne=ae.useMemo(()=>Object.assign(Object.assign({},ot),De),[ot,De.prefixCls,De.mode,De.selectable]);return ae.createElement(ge.Provider,{value:Ne},ae.createElement(Le.BR,null,(0,_e.supportNodeRef)(me)?ae.cloneElement(me,{ref:xe}):me))});fn.Z=ge},68508:function(yn,fn,se){"use strict";se.d(fn,{default:function(){return fe}});var ae=se(78595),Le=se(67294),_e=se(71322),rt=se(94184),ge=se.n(rt),ke=se(53124),Ee=function(ce,he){var ue={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&he.indexOf(le)<0&&(ue[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,le=Object.getOwnPropertySymbols(ce);Me<le.length;Me++)he.indexOf(le[Me])<0&&Object.prototype.propertyIsEnumerable.call(ce,le[Me])&&(ue[le[Me]]=ce[le[Me]]);return ue},me=ce=>{const{prefixCls:he,className:ue,dashed:le}=ce,Me=Ee(ce,["prefixCls","className","dashed"]),{getPrefixCls:Ge}=Le.useContext(ke.E_),St=Ge("menu",he),Ht=ge()({[`${St}-item-divider-dashed`]:!!le},ue);return Le.createElement(ae.iz,Object.assign({className:Ht},Me))},De=se(37419),ot=se(10366),Ne=se(83062),mt=se(96159),pt=(0,Le.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Be=ce=>{var he;const{className:ue,children:le,icon:Me,title:Ge,danger:St}=ce,{prefixCls:Ht,firstLevel:Yt,direction:Vt,disableMenuItemTitleTooltip:sn,inlineCollapsed:it}=Le.useContext(pt),Mt=Dt=>{const En=Le.createElement("span",{className:`${Ht}-title-content`},le);return(!Me||(0,mt.l$)(le)&&le.type==="span")&&le&&Dt&&Yt&&typeof le=="string"?Le.createElement("div",{className:`${Ht}-inline-collapsed-noicon`},le.charAt(0)):En},{siderCollapsed:Ot}=Le.useContext(_e.D);let $t=Ge;typeof Ge=="undefined"?$t=Yt?le:"":Ge===!1&&($t="");const bt={title:$t};!Ot&&!it&&(bt.title=null,bt.open=!1);const _n=(0,De.Z)(le).length;let ct=Le.createElement(ae.ck,Object.assign({},(0,ot.Z)(ce,["title","icon","danger"]),{className:ge()({[`${Ht}-item-danger`]:St,[`${Ht}-item-only-child`]:(Me?_n+1:_n)===1},ue),title:typeof Ge=="string"?Ge:void 0}),(0,mt.Tm)(Me,{className:ge()((0,mt.l$)(Me)?(he=Me.props)===null||he===void 0?void 0:he.className:"",`${Ht}-item-icon`)}),Mt(it));return sn||(ct=Le.createElement(Ne.Z,Object.assign({},bt,{placement:Vt==="rtl"?"left":"right",overlayClassName:`${Ht}-inline-collapsed-tooltip`}),ct)),ct},nn=ce=>{var he;const{popupClassName:ue,icon:le,title:Me,theme:Ge}=ce,St=Le.useContext(pt),{prefixCls:Ht,inlineCollapsed:Yt,theme:Vt}=St,sn=(0,ae.Xl)();let it;if(!le)it=Yt&&!sn.length&&Me&&typeof Me=="string"?Le.createElement("div",{className:`${Ht}-inline-collapsed-noicon`},Me.charAt(0)):Le.createElement("span",{className:`${Ht}-title-content`},Me);else{const Ot=(0,mt.l$)(Me)&&Me.type==="span";it=Le.createElement(Le.Fragment,null,(0,mt.Tm)(le,{className:ge()((0,mt.l$)(le)?(he=le.props)===null||he===void 0?void 0:he.className:"",`${Ht}-item-icon`)}),Ot?Me:Le.createElement("span",{className:`${Ht}-title-content`},Me))}const Mt=Le.useMemo(()=>Object.assign(Object.assign({},St),{firstLevel:!1}),[St]);return Le.createElement(pt.Provider,{value:Mt},Le.createElement(ae.Wd,Object.assign({},(0,ot.Z)(ce,["icon"]),{title:it,popupClassName:ge()(Ht,ue,`${Ht}-${Ge||Vt}`)})))},at=se(25877),vt=se(60276),Ce=se(33603),Ae=se(76529),Ye=function(ce,he){var ue={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&he.indexOf(le)<0&&(ue[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,le=Object.getOwnPropertySymbols(ce);Me<le.length;Me++)he.indexOf(le[Me])<0&&Object.prototype.propertyIsEnumerable.call(ce,le[Me])&&(ue[le[Me]]=ce[le[Me]]);return ue};function Ve(ce){return(ce||[]).map((he,ue)=>{if(he&&typeof he=="object"){const le=he,{label:Me,children:Ge,key:St,type:Ht}=le,Yt=Ye(le,["label","children","key","type"]),Vt=St!=null?St:`tmp-${ue}`;return Ge||Ht==="group"?Ht==="group"?Le.createElement(ae.BW,Object.assign({key:Vt},Yt,{title:Me}),Ve(Ge)):Le.createElement(nn,Object.assign({key:Vt},Yt,{title:Me}),Ve(Ge)):Ht==="divider"?Le.createElement(me,Object.assign({key:Vt},Yt)):Le.createElement(Be,Object.assign({key:Vt},Yt),Me)}return null}).filter(he=>he)}function At(ce){return Le.useMemo(()=>ce&&Ve(ce),[ce])}var xt=se(84780),Lt=se(14747),nt=se(33507),qt=se(67771),zt=se(50438),bn=se(67968),dn=se(45503),rr=ce=>{const{componentCls:he,motionDurationSlow:ue,horizontalLineHeight:le,colorSplit:Me,lineWidth:Ge,lineType:St,itemPaddingInline:Ht}=ce;return{[`${he}-horizontal`]:{lineHeight:le,border:0,borderBottom:`${Ge}px ${St} ${Me}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${he}-item, ${he}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ht},[`> ${he}-item:hover,
|
|
|
> ${he}-item-active,
|
|
|
> ${he}-submenu ${he}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${he}-item, ${he}-submenu-title`]:{transition:[`border-color ${ue}`,`background ${ue}`].join(",")},[`${he}-submenu-arrow`]:{display:"none"}}}},$e=ce=>{let{componentCls:he,menuArrowOffset:ue}=ce;return{[`${he}-rtl`]:{direction:"rtl"},[`${he}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${he}-rtl${he}-vertical,
|
|
|
${he}-submenu-rtl ${he}-vertical`]:{[`${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ue})`},"&::after":{transform:`rotate(45deg) translateY(${ue})`}}}}};const Se=ce=>Object.assign({},(0,Lt.oN)(ce));var xn=(ce,he)=>{const{componentCls:ue,itemColor:le,itemSelectedColor:Me,groupTitleColor:Ge,itemBg:St,subMenuItemBg:Ht,itemSelectedBg:Yt,activeBarHeight:Vt,activeBarWidth:sn,activeBarBorderWidth:it,motionDurationSlow:Mt,motionEaseInOut:Ot,motionEaseOut:$t,itemPaddingInline:bt,motionDurationMid:_n,itemHoverColor:ct,lineType:Dt,colorSplit:En,itemDisabledColor:wn,dangerItemColor:Bn,dangerItemHoverColor:Qn,dangerItemSelectedColor:wr,dangerItemActiveBg:br,dangerItemSelectedBg:Sr,itemHoverBg:Yn,itemActiveBg:ir,menuSubMenuBg:Dr,horizontalItemSelectedColor:ti,horizontalItemSelectedBg:Ai,horizontalItemBorderRadius:tr,horizontalItemHoverBg:Jr,popupBg:kt}=ce;return{[`${ue}-${he}, ${ue}-${he} > ${ue}`]:{color:le,background:St,[`&${ue}-root:focus-visible`]:Object.assign({},Se(ce)),[`${ue}-item-group-title`]:{color:Ge},[`${ue}-submenu-selected`]:{[`> ${ue}-submenu-title`]:{color:Me}},[`${ue}-item-disabled, ${ue}-submenu-disabled`]:{color:`${wn} !important`},[`${ue}-item:not(${ue}-item-selected):not(${ue}-submenu-selected)`]:{[`&:hover, > ${ue}-submenu-title:hover`]:{color:ct}},[`&:not(${ue}-horizontal)`]:{[`${ue}-item:not(${ue}-item-selected)`]:{"&:hover":{backgroundColor:Yn},"&:active":{backgroundColor:ir}},[`${ue}-submenu-title`]:{"&:hover":{backgroundColor:Yn},"&:active":{backgroundColor:ir}}},[`${ue}-item-danger`]:{color:Bn,[`&${ue}-item:hover`]:{[`&:not(${ue}-item-selected):not(${ue}-submenu-selected)`]:{color:Qn}},[`&${ue}-item:active`]:{background:br}},[`${ue}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ue}-item-selected`]:{color:Me,[`&${ue}-item-danger`]:{color:wr},"a, a:hover":{color:"inherit"}},[`& ${ue}-item-selected`]:{backgroundColor:Yt,[`&${ue}-item-danger`]:{backgroundColor:Sr}},[`${ue}-item, ${ue}-submenu-title`]:{[`&:not(${ue}-item-disabled):focus-visible`]:Object.assign({},Se(ce))},[`&${ue}-submenu > ${ue}`]:{backgroundColor:Dr},[`&${ue}-popup > ${ue}`]:{backgroundColor:kt},[`&${ue}-horizontal`]:Object.assign(Object.assign({},he==="dark"?{borderBottom:0}:{}),{[`> ${ue}-item, > ${ue}-submenu`]:{top:it,marginTop:-it,marginBottom:0,borderRadius:tr,"&::after":{position:"absolute",insetInline:bt,bottom:0,borderBottom:`${Vt}px solid transparent`,transition:`border-color ${Mt} ${Ot}`,content:'""'},"&:hover, &-active, &-open":{background:Jr,"&::after":{borderBottomWidth:Vt,borderBottomColor:ti}},"&-selected":{color:ti,backgroundColor:Ai,"&:hover":{backgroundColor:Ai},"&::after":{borderBottomWidth:Vt,borderBottomColor:ti}}}}),[`&${ue}-root`]:{[`&${ue}-inline, &${ue}-vertical`]:{borderInlineEnd:`${it}px ${Dt} ${En}`}},[`&${ue}-inline`]:{[`${ue}-sub${ue}-inline`]:{background:Ht},[`${ue}-item, ${ue}-submenu-title`]:it&&sn?{width:`calc(100% + ${it}px)`}:{},[`${ue}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${sn}px solid ${Me}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${_n} ${$t}`,`opacity ${_n} ${$t}`].join(","),content:'""'},[`&${ue}-item-danger`]:{"&::after":{borderInlineEndColor:wr}}},[`${ue}-selected, ${ue}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${_n} ${Ot}`,`opacity ${_n} ${Ot}`].join(",")}}}}}};const Xt=ce=>{const{componentCls:he,itemHeight:ue,itemMarginInline:le,padding:Me,menuArrowSize:Ge,marginXS:St,itemMarginBlock:Ht}=ce,Yt=Me+Ge+St;return{[`${he}-item`]:{position:"relative",overflow:"hidden"},[`${he}-item, ${he}-submenu-title`]:{height:ue,lineHeight:`${ue}px`,paddingInline:Me,overflow:"hidden",textOverflow:"ellipsis",marginInline:le,marginBlock:Ht,width:`calc(100% - ${le*2}px)`},[`> ${he}-item,
|
|
|
> ${he}-submenu > ${he}-submenu-title`]:{height:ue,lineHeight:`${ue}px`},[`${he}-item-group-list ${he}-submenu-title,
|
|
|
${he}-submenu-title`]:{paddingInlineEnd:Yt}}};var yt=ce=>{const{componentCls:he,iconCls:ue,itemHeight:le,colorTextLightSolid:Me,dropdownWidth:Ge,controlHeightLG:St,motionDurationMid:Ht,motionEaseOut:Yt,paddingXL:Vt,itemMarginInline:sn,fontSizeLG:it,motionDurationSlow:Mt,paddingXS:Ot,boxShadowSecondary:$t,collapsedWidth:bt,collapsedIconSize:_n}=ce,ct={height:le,lineHeight:`${le}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[he]:{"&-inline, &-vertical":Object.assign({[`&${he}-root`]:{boxShadow:"none"}},Xt(ce))},[`${he}-submenu-popup`]:{[`${he}-vertical`]:Object.assign(Object.assign({},Xt(ce)),{boxShadow:$t})}},{[`${he}-submenu-popup ${he}-vertical${he}-sub`]:{minWidth:Ge,maxHeight:`calc(100vh - ${St*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${he}-inline`]:{width:"100%",[`&${he}-root`]:{[`${he}-item, ${he}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Mt}`,`background ${Mt}`,`padding ${Ht} ${Yt}`].join(","),[`> ${he}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${he}-sub${he}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${he}-submenu > ${he}-submenu-title`]:ct,[`& ${he}-item-group-title`]:{paddingInlineStart:Vt}},[`${he}-item`]:ct}},{[`${he}-inline-collapsed`]:{width:bt,[`&${he}-root`]:{[`${he}-item, ${he}-submenu ${he}-submenu-title`]:{[`> ${he}-inline-collapsed-noicon`]:{fontSize:it,textAlign:"center"}}},[`> ${he}-item,
|
|
|
> ${he}-item-group > ${he}-item-group-list > ${he}-item,
|
|
|
> ${he}-item-group > ${he}-item-group-list > ${he}-submenu > ${he}-submenu-title,
|
|
|
> ${he}-submenu > ${he}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${it/2}px - ${sn}px)`,textOverflow:"clip",[`
|
|
|
${he}-submenu-arrow,
|
|
|
${he}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${he}-item-icon, ${ue}`]:{margin:0,fontSize:_n,lineHeight:`${le}px`,"+ span":{display:"inline-block",opacity:0}}},[`${he}-item-icon, ${ue}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${he}-item-icon, ${ue}`]:{display:"none"},"a, a:hover":{color:Me}},[`${he}-item-group-title`]:Object.assign(Object.assign({},Lt.vS),{paddingInline:Ot})}}]};const Gt=ce=>{const{componentCls:he,motionDurationSlow:ue,motionDurationMid:le,motionEaseInOut:Me,motionEaseOut:Ge,iconCls:St,iconSize:Ht,iconMarginInlineEnd:Yt}=ce;return{[`${he}-item, ${he}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ue}`,`background ${ue}`,`padding ${ue} ${Me}`].join(","),[`${he}-item-icon, ${St}`]:{minWidth:Ht,fontSize:Ht,transition:[`font-size ${le} ${Ge}`,`margin ${ue} ${Me}`,`color ${ue}`].join(","),"+ span":{marginInlineStart:Yt,opacity:1,transition:[`opacity ${ue} ${Me}`,`margin ${ue}`,`color ${ue}`].join(",")}},[`${he}-item-icon`]:Object.assign({},(0,Lt.Ro)()),[`&${he}-item-only-child`]:{[`> ${St}, > ${he}-item-icon`]:{marginInlineEnd:0}}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${he}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},qn=ce=>{const{componentCls:he,motionDurationSlow:ue,motionEaseInOut:le,borderRadius:Me,menuArrowSize:Ge,menuArrowOffset:St}=ce;return{[`${he}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ce.margin,width:Ge,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ue} ${le}, opacity ${ue}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ge*.6,height:Ge*.15,backgroundColor:"currentcolor",borderRadius:Me,transition:[`background ${ue} ${le}`,`transform ${ue} ${le}`,`top ${ue} ${le}`,`color ${ue} ${le}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${St})`},"&::after":{transform:`rotate(-45deg) translateY(${St})`}}}}},Dn=ce=>{const{antCls:he,componentCls:ue,fontSize:le,motionDurationSlow:Me,motionDurationMid:Ge,motionEaseInOut:St,paddingXS:Ht,padding:Yt,colorSplit:Vt,lineWidth:sn,zIndexPopup:it,borderRadiusLG:Mt,subMenuItemBorderRadius:Ot,menuArrowSize:$t,menuArrowOffset:bt,lineType:_n,menuPanelMaskInset:ct,groupTitleLineHeight:Dt,groupTitleFontSize:En}=ce;return[{"":{[`${ue}`]:Object.assign(Object.assign({},(0,Lt.dF)()),{"&-hidden":{display:"none"}})},[`${ue}-submenu-hidden`]:{display:"none"}},{[ue]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Lt.Wf)(ce)),(0,Lt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:le,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Me} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ue}-item`]:{flex:"none"}},[`${ue}-item, ${ue}-submenu, ${ue}-submenu-title`]:{borderRadius:ce.itemBorderRadius},[`${ue}-item-group-title`]:{padding:`${Ht}px ${Yt}px`,fontSize:En,lineHeight:Dt,transition:`all ${Me}`},[`&-horizontal ${ue}-submenu`]:{transition:[`border-color ${Me} ${St}`,`background ${Me} ${St}`].join(",")},[`${ue}-submenu, ${ue}-submenu-inline`]:{transition:[`border-color ${Me} ${St}`,`background ${Me} ${St}`,`padding ${Ge} ${St}`].join(",")},[`${ue}-submenu ${ue}-sub`]:{cursor:"initial",transition:[`background ${Me} ${St}`,`padding ${Me} ${St}`].join(",")},[`${ue}-title-content`]:{transition:`color ${Me}`},[`${ue}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ue}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Vt,borderStyle:_n,borderWidth:0,borderTopWidth:sn,marginBlock:sn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Gt(ce)),{[`${ue}-item-group`]:{[`${ue}-item-group-list`]:{margin:0,padding:0,[`${ue}-item, ${ue}-submenu-title`]:{paddingInline:`${le*2}px ${Yt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:it,borderRadius:Mt,boxShadow:"none",transformOrigin:"0 0",[`&${ue}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ct}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ct},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:ce.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ce.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ce.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ce.paddingXS},[`> ${ue}`]:Object.assign(Object.assign(Object.assign({borderRadius:Mt},Gt(ce)),qn(ce)),{[`${ue}-item, ${ue}-submenu > ${ue}-submenu-title`]:{borderRadius:Ot},[`${ue}-submenu-title::after`]:{transition:`transform ${Me} ${St}`}})}}),qn(ce)),{[`&-inline-collapsed ${ue}-submenu-arrow,
|
|
|
&-inline ${ue}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${bt})`},"&::after":{transform:`rotate(45deg) translateX(-${bt})`}},[`${ue}-submenu-open${ue}-submenu-inline > ${ue}-submenu-title > ${ue}-submenu-arrow`]:{transform:`translateY(-${$t*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${bt})`},"&::before":{transform:`rotate(45deg) translateX(${bt})`}}})},{[`${he}-layout-header`]:{[ue]:{lineHeight:"inherit"}}}]};var Tt=(ce,he)=>(0,bn.Z)("Menu",le=>{if(he===!1)return[];const{colorBgElevated:Me,colorPrimary:Ge,colorTextLightSolid:St,controlHeightLG:Ht,fontSize:Yt,darkItemColor:Vt,darkDangerItemColor:sn,darkItemBg:it,darkSubMenuItemBg:Mt,darkItemSelectedColor:Ot,darkItemSelectedBg:$t,darkDangerItemSelectedBg:bt,darkItemHoverBg:_n,darkGroupTitleColor:ct,darkItemHoverColor:Dt,darkItemDisabledColor:En,darkDangerItemHoverColor:wn,darkDangerItemSelectedColor:Bn,darkDangerItemActiveBg:Qn}=le,wr=Yt/7*5,br=(0,dn.TS)(le,{menuArrowSize:wr,menuHorizontalHeight:Ht*1.15,menuArrowOffset:`${wr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Me}),Sr=(0,dn.TS)(br,{itemColor:Vt,itemHoverColor:Dt,groupTitleColor:ct,itemSelectedColor:Ot,itemBg:it,popupBg:it,subMenuItemBg:Mt,itemActiveBg:"transparent",itemSelectedBg:$t,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:_n,itemDisabledColor:En,dangerItemColor:sn,dangerItemHoverColor:wn,dangerItemSelectedColor:Bn,dangerItemActiveBg:Qn,dangerItemSelectedBg:bt,menuSubMenuBg:Mt,horizontalItemSelectedColor:St,horizontalItemSelectedBg:Ge});return[Dn(br),rr(br),yt(br),xn(br,"light"),xn(Sr,"dark"),$e(br),(0,nt.Z)(br),(0,qt.oN)(br,"slide-up"),(0,qt.oN)(br,"slide-down"),(0,zt._y)(br,"zoom-big")]},le=>{const{colorPrimary:Me,colorError:Ge,colorTextDisabled:St,colorErrorBg:Ht,colorText:Yt,colorTextDescription:Vt,colorBgContainer:sn,colorFillAlter:it,colorFillContent:Mt,lineWidth:Ot,lineWidthBold:$t,controlItemBgActive:bt,colorBgTextHover:_n,controlHeightLG:ct,lineHeight:Dt,colorBgElevated:En,marginXXS:wn,padding:Bn,fontSize:Qn,controlHeightSM:wr,fontSizeLG:br,colorTextLightSolid:Sr,colorErrorHover:Yn}=le,ir=new xt.C(Sr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:le.zIndexPopupBase+50,radiusItem:le.borderRadiusLG,itemBorderRadius:le.borderRadiusLG,radiusSubMenuItem:le.borderRadiusSM,subMenuItemBorderRadius:le.borderRadiusSM,colorItemText:Yt,itemColor:Yt,colorItemTextHover:Yt,itemHoverColor:Yt,colorItemTextHoverHorizontal:Me,horizontalItemHoverColor:Me,colorGroupTitle:Vt,groupTitleColor:Vt,colorItemTextSelected:Me,itemSelectedColor:Me,colorItemTextSelectedHorizontal:Me,horizontalItemSelectedColor:Me,colorItemBg:sn,itemBg:sn,colorItemBgHover:_n,itemHoverBg:_n,colorItemBgActive:Mt,itemActiveBg:bt,colorSubItemBg:it,subMenuItemBg:it,colorItemBgSelected:bt,itemSelectedBg:bt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:$t,activeBarHeight:$t,colorActiveBarBorderSize:Ot,activeBarBorderWidth:Ot,colorItemTextDisabled:St,itemDisabledColor:St,colorDangerItemText:Ge,dangerItemColor:Ge,colorDangerItemTextHover:Ge,dangerItemHoverColor:Ge,colorDangerItemTextSelected:Ge,dangerItemSelectedColor:Ge,colorDangerItemBgActive:Ht,dangerItemActiveBg:Ht,colorDangerItemBgSelected:Ht,dangerItemSelectedBg:Ht,itemMarginInline:le.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ct,groupTitleLineHeight:Dt,collapsedWidth:ct*2,popupBg:En,itemMarginBlock:wn,itemPaddingInline:Bn,horizontalLineHeight:`${ct*1.15}px`,iconSize:Qn,iconMarginInlineEnd:wr-Qn,collapsedIconSize:br,groupTitleFontSize:Qn,darkItemDisabledColor:new xt.C(Sr).setAlpha(.25).toRgbString(),darkItemColor:ir,darkDangerItemColor:Ge,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Sr,darkItemSelectedBg:Me,darkDangerItemSelectedBg:Ge,darkItemHoverBg:"transparent",darkGroupTitleColor:ir,darkItemHoverColor:Sr,darkDangerItemHoverColor:Yn,darkDangerItemSelectedColor:Sr,darkDangerItemActiveBg:Ge}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(ce),mn=function(ce,he){var ue={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&he.indexOf(le)<0&&(ue[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,le=Object.getOwnPropertySymbols(ce);Me<le.length;Me++)he.indexOf(le[Me])<0&&Object.prototype.propertyIsEnumerable.call(ce,le[Me])&&(ue[le[Me]]=ce[le[Me]]);return ue},kn=(0,Le.forwardRef)((ce,he)=>{var ue,le;const Me=Le.useContext(Ae.Z),Ge=Me||{},{getPrefixCls:St,getPopupContainer:Ht,direction:Yt,menu:Vt}=Le.useContext(ke.E_),sn=St(),{prefixCls:it,className:Mt,style:Ot,theme:$t="light",expandIcon:bt,_internalDisableMenuItemTitleTooltip:_n,inlineCollapsed:ct,siderCollapsed:Dt,items:En,children:wn,rootClassName:Bn,mode:Qn,selectable:wr,onClick:br,overflowedIndicatorPopupClassName:Sr}=ce,Yn=mn(ce,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ir=(0,ot.Z)(Yn,["collapsedWidth"]),Dr=At(En)||wn;(ue=Ge.validator)===null||ue===void 0||ue.call(Ge,{mode:Qn});const ti=(0,vt.useEvent)(function(){var Un;br==null||br.apply(void 0,arguments),(Un=Ge.onClick)===null||Un===void 0||Un.call(Ge)}),Ai=Ge.mode||Qn,tr=wr!=null?wr:Ge.selectable,Jr=Le.useMemo(()=>Dt!==void 0?Dt:ct,[ct,Dt]),kt={horizontal:{motionName:`${sn}-slide-up`},inline:(0,Ce.Z)(sn),other:{motionName:`${sn}-zoom-big`}},vn=St("menu",it||Ge.prefixCls),[Rn,In]=Tt(vn,!Me),nr=ge()(`${vn}-${$t}`,Vt==null?void 0:Vt.className,Mt);let gr;if(typeof bt=="function")gr=bt;else if(bt===null||bt===!1)gr=null;else if(Ge.expandIcon===null||Ge.expandIcon===!1)gr=null;else{const Un=bt!=null?bt:Ge.expandIcon;gr=(0,mt.Tm)(Un,{className:ge()(`${vn}-submenu-expand-icon`,(0,mt.l$)(Un)?(le=Un.props)===null||le===void 0?void 0:le.className:"")})}const sr=Le.useMemo(()=>({prefixCls:vn,inlineCollapsed:Jr||!1,direction:Yt,firstLevel:!0,theme:$t,mode:Ai,disableMenuItemTitleTooltip:_n}),[vn,Jr,Yt,_n,$t]);return Rn(Le.createElement(Ae.Z.Provider,{value:null},Le.createElement(pt.Provider,{value:sr},Le.createElement(ae.ZP,Object.assign({getPopupContainer:Ht,overflowedIndicator:Le.createElement(at.Z,null),overflowedIndicatorPopupClassName:ge()(vn,`${vn}-${$t}`,Sr),mode:Ai,selectable:tr,onClick:ti},ir,{inlineCollapsed:Jr,style:Object.assign(Object.assign({},Vt==null?void 0:Vt.style),Ot),className:nr,prefixCls:vn,direction:Yt,defaultMotions:kt,expandIcon:gr,ref:he,rootClassName:ge()(Bn,In)}),Dr))))});const Pe=(0,Le.forwardRef)((ce,he)=>{const ue=(0,Le.useRef)(null),le=Le.useContext(_e.D);return(0,Le.useImperativeHandle)(he,()=>({menu:ue.current,focus:Me=>{var Ge;(Ge=ue.current)===null||Ge===void 0||Ge.focus(Me)}})),Le.createElement(kn,Object.assign({ref:ue},ce,le))});Pe.Item=Be,Pe.SubMenu=nn,Pe.Divider=me,Pe.ItemGroup=ae.BW;var fe=Pe},28452:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return sn}});var ae=se(87462),Le=se(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},rt=_e,ge=se(84089),ke=function(Mt,Ot){return Le.createElement(ge.Z,(0,ae.Z)({},Mt,{ref:Ot,icon:rt}))},Ee=Le.forwardRef(ke),xe=se(81893),me=se(22751),De=se(91034),ot=se(94184),Ne=se.n(ot),mt=se(4942),dt=se(1413),pt=se(15671),Je=se(43144),Be=se(60136),gt=se(51630),nn=`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`,at=`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`,vt="".concat(nn," ").concat(at).split(/[\s\n]+/),Ce="aria-",Ae="data-";function Ye(it,Mt){return it.indexOf(Mt)===0}function Ve(it){var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ot;Mt===!1?Ot={aria:!0,data:!0,attr:!0}:Mt===!0?Ot={aria:!0}:Ot=(0,dt.Z)({},Mt);var $t={};return Object.keys(it).forEach(function(bt){(Ot.aria&&(bt==="role"||Ye(bt,Ce))||Ot.data&&Ye(bt,Ae)||Ot.attr&&vt.includes(bt))&&($t[bt]=it[bt])}),$t}var At={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},xt=At,Lt=se(81626),nt=function(it){(0,Be.Z)(Ot,it);var Mt=(0,gt.Z)(Ot);function Ot(){var $t;(0,pt.Z)(this,Ot);for(var bt=arguments.length,_n=new Array(bt),ct=0;ct<bt;ct++)_n[ct]=arguments[ct];return $t=Mt.call.apply(Mt,[this].concat(_n)),$t.state={goInputText:""},$t.getValidValue=function(){var Dt=$t.state.goInputText;return!Dt||Number.isNaN(Dt)?void 0:Number(Dt)},$t.buildOptionText=function(Dt){return"".concat(Dt," ").concat($t.props.locale.items_per_page)},$t.changeSize=function(Dt){$t.props.changeSize(Number(Dt))},$t.handleChange=function(Dt){$t.setState({goInputText:Dt.target.value})},$t.handleBlur=function(Dt){var En=$t.props,wn=En.goButton,Bn=En.quickGo,Qn=En.rootPrefixCls,wr=$t.state.goInputText;wn||wr===""||($t.setState({goInputText:""}),!(Dt.relatedTarget&&(Dt.relatedTarget.className.indexOf("".concat(Qn,"-item-link"))>=0||Dt.relatedTarget.className.indexOf("".concat(Qn,"-item"))>=0))&&Bn($t.getValidValue()))},$t.go=function(Dt){var En=$t.state.goInputText;En!==""&&(Dt.keyCode===xt.ENTER||Dt.type==="click")&&($t.setState({goInputText:""}),$t.props.quickGo($t.getValidValue()))},$t}return(0,Je.Z)(Ot,[{key:"getPageSizeOptions",value:function(){var bt=this.props,_n=bt.pageSize,ct=bt.pageSizeOptions;return ct.some(function(Dt){return Dt.toString()===_n.toString()})?ct:ct.concat([_n.toString()]).sort(function(Dt,En){var wn=Number.isNaN(Number(Dt))?0:Number(Dt),Bn=Number.isNaN(Number(En))?0:Number(En);return wn-Bn})}},{key:"render",value:function(){var bt=this,_n=this.props,ct=_n.pageSize,Dt=_n.locale,En=_n.rootPrefixCls,wn=_n.changeSize,Bn=_n.quickGo,Qn=_n.goButton,wr=_n.selectComponentClass,br=_n.buildOptionText,Sr=_n.selectPrefixCls,Yn=_n.disabled,ir=this.state.goInputText,Dr="".concat(En,"-options"),ti=wr,Ai=null,tr=null,Jr=null;if(!wn&&!Bn)return null;var kt=this.getPageSizeOptions();if(wn&&ti){var vn=kt.map(function(Rn,In){return Le.createElement(ti.Option,{key:In,value:Rn.toString()},(br||bt.buildOptionText)(Rn))});Ai=Le.createElement(ti,{disabled:Yn,prefixCls:Sr,showSearch:!1,className:"".concat(Dr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(ct||kt[0]).toString(),onChange:this.changeSize,getPopupContainer:function(In){return In.parentNode},"aria-label":Dt.page_size,defaultOpen:!1},vn)}return Bn&&(Qn&&(Jr=typeof Qn=="boolean"?Le.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Yn,className:"".concat(Dr,"-quick-jumper-button")},Dt.jump_to_confirm):Le.createElement("span",{onClick:this.go,onKeyUp:this.go},Qn)),tr=Le.createElement("div",{className:"".concat(Dr,"-quick-jumper")},Dt.jump_to,Le.createElement("input",{disabled:Yn,type:"text",value:ir,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Dt.page}),Dt.page,Jr)),Le.createElement("li",{className:"".concat(Dr)},Ai,tr)}}]),Ot}(Le.Component);nt.defaultProps={pageSizeOptions:["10","20","50","100"]};var qt=nt,zt=function(Mt){var Ot,$t=Mt.rootPrefixCls,bt=Mt.page,_n=Mt.active,ct=Mt.className,Dt=Mt.showTitle,En=Mt.onClick,wn=Mt.onKeyPress,Bn=Mt.itemRender,Qn="".concat($t,"-item"),wr=Ne()(Qn,"".concat(Qn,"-").concat(bt),(Ot={},(0,mt.Z)(Ot,"".concat(Qn,"-active"),_n),(0,mt.Z)(Ot,"".concat(Qn,"-disabled"),!bt),(0,mt.Z)(Ot,Mt.className,ct),Ot)),br=function(){En(bt)},Sr=function(Dr){wn(Dr,En,bt)},Yn=Bn(bt,"page",Le.createElement("a",{rel:"nofollow"},bt));return Yn?Le.createElement("li",{title:Dt?bt.toString():null,className:wr,onClick:br,onKeyPress:Sr,tabIndex:0},Yn):null},bn=zt;function dn(){}function Wn(it){var Mt=Number(it);return typeof Mt=="number"&&!Number.isNaN(Mt)&&isFinite(Mt)&&Math.floor(Mt)===Mt}var rr=function(Mt,Ot,$t){return $t};function ln(it,Mt,Ot){var $t=typeof it=="undefined"?Mt.pageSize:it;return Math.floor((Ot.total-1)/$t)+1}var $e=function(it){(0,Be.Z)(Ot,it);var Mt=(0,gt.Z)(Ot);function Ot($t){var bt;(0,pt.Z)(this,Ot),bt=Mt.call(this,$t),bt.paginationNode=Le.createRef(),bt.getJumpPrevPage=function(){return Math.max(1,bt.state.current-(bt.props.showLessItems?3:5))},bt.getJumpNextPage=function(){return Math.min(ln(void 0,bt.state,bt.props),bt.state.current+(bt.props.showLessItems?3:5))},bt.getItemIcon=function(wn,Bn){var Qn=bt.props.prefixCls,wr=wn||Le.createElement("button",{type:"button","aria-label":Bn,className:"".concat(Qn,"-item-link")});return typeof wn=="function"&&(wr=Le.createElement(wn,(0,dt.Z)({},bt.props))),wr},bt.isValid=function(wn){var Bn=bt.props.total;return Wn(wn)&&wn!==bt.state.current&&Wn(Bn)&&Bn>0},bt.shouldDisplayQuickJumper=function(){var wn=bt.props,Bn=wn.showQuickJumper,Qn=wn.total,wr=bt.state.pageSize;return Qn<=wr?!1:Bn},bt.handleKeyDown=function(wn){(wn.keyCode===xt.ARROW_UP||wn.keyCode===xt.ARROW_DOWN)&&wn.preventDefault()},bt.handleKeyUp=function(wn){var Bn=bt.getValidValue(wn),Qn=bt.state.currentInputValue;Bn!==Qn&&bt.setState({currentInputValue:Bn}),wn.keyCode===xt.ENTER?bt.handleChange(Bn):wn.keyCode===xt.ARROW_UP?bt.handleChange(Bn-1):wn.keyCode===xt.ARROW_DOWN&&bt.handleChange(Bn+1)},bt.handleBlur=function(wn){var Bn=bt.getValidValue(wn);bt.handleChange(Bn)},bt.changePageSize=function(wn){var Bn=bt.state.current,Qn=ln(wn,bt.state,bt.props);Bn=Bn>Qn?Qn:Bn,Qn===0&&(Bn=bt.state.current),typeof wn=="number"&&("pageSize"in bt.props||bt.setState({pageSize:wn}),"current"in bt.props||bt.setState({current:Bn,currentInputValue:Bn})),bt.props.onShowSizeChange(Bn,wn),"onChange"in bt.props&&bt.props.onChange&&bt.props.onChange(Bn,wn)},bt.handleChange=function(wn){var Bn=bt.props,Qn=Bn.disabled,wr=Bn.onChange,br=bt.state,Sr=br.pageSize,Yn=br.current,ir=br.currentInputValue;if(bt.isValid(wn)&&!Qn){var Dr=ln(void 0,bt.state,bt.props),ti=wn;return wn>Dr?ti=Dr:wn<1&&(ti=1),"current"in bt.props||bt.setState({current:ti}),ti!==ir&&bt.setState({currentInputValue:ti}),wr(ti,Sr),ti}return Yn},bt.prev=function(){bt.hasPrev()&&bt.handleChange(bt.state.current-1)},bt.next=function(){bt.hasNext()&&bt.handleChange(bt.state.current+1)},bt.jumpPrev=function(){bt.handleChange(bt.getJumpPrevPage())},bt.jumpNext=function(){bt.handleChange(bt.getJumpNextPage())},bt.hasPrev=function(){return bt.state.current>1},bt.hasNext=function(){return bt.state.current<ln(void 0,bt.state,bt.props)},bt.runIfEnter=function(wn,Bn){if(wn.key==="Enter"||wn.charCode===13){for(var Qn=arguments.length,wr=new Array(Qn>2?Qn-2:0),br=2;br<Qn;br++)wr[br-2]=arguments[br];Bn.apply(void 0,wr)}},bt.runIfEnterPrev=function(wn){bt.runIfEnter(wn,bt.prev)},bt.runIfEnterNext=function(wn){bt.runIfEnter(wn,bt.next)},bt.runIfEnterJumpPrev=function(wn){bt.runIfEnter(wn,bt.jumpPrev)},bt.runIfEnterJumpNext=function(wn){bt.runIfEnter(wn,bt.jumpNext)},bt.handleGoTO=function(wn){(wn.keyCode===xt.ENTER||wn.type==="click")&&bt.handleChange(bt.state.currentInputValue)},bt.renderPrev=function(wn){var Bn=bt.props,Qn=Bn.prevIcon,wr=Bn.itemRender,br=wr(wn,"prev",bt.getItemIcon(Qn,"prev page")),Sr=!bt.hasPrev();return(0,Le.isValidElement)(br)?(0,Le.cloneElement)(br,{disabled:Sr}):br},bt.renderNext=function(wn){var Bn=bt.props,Qn=Bn.nextIcon,wr=Bn.itemRender,br=wr(wn,"next",bt.getItemIcon(Qn,"next page")),Sr=!bt.hasNext();return(0,Le.isValidElement)(br)?(0,Le.cloneElement)(br,{disabled:Sr}):br};var _n=$t.onChange!==dn,ct="current"in $t;ct&&!_n&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Dt=$t.defaultCurrent;"current"in $t&&(Dt=$t.current);var En=$t.defaultPageSize;return"pageSize"in $t&&(En=$t.pageSize),Dt=Math.min(Dt,ln(En,void 0,$t)),bt.state={current:Dt,currentInputValue:Dt,pageSize:En},bt}return(0,Je.Z)(Ot,[{key:"componentDidUpdate",value:function(bt,_n){var ct=this.props.prefixCls;if(_n.current!==this.state.current&&this.paginationNode.current){var Dt=this.paginationNode.current.querySelector(".".concat(ct,"-item-").concat(_n.current));if(Dt&&document.activeElement===Dt){var En;Dt==null||(En=Dt.blur)===null||En===void 0||En.call(Dt)}}}},{key:"getValidValue",value:function(bt){var _n=bt.target.value,ct=ln(void 0,this.state,this.props),Dt=this.state.currentInputValue,En;return _n===""?En=_n:Number.isNaN(Number(_n))?En=Dt:_n>=ct?En=ct:En=Number(_n),En}},{key:"getShowSizeChanger",value:function(){var bt=this.props,_n=bt.showSizeChanger,ct=bt.total,Dt=bt.totalBoundaryShowSizeChanger;return typeof _n!="undefined"?_n:ct>Dt}},{key:"render",value:function(){var bt=this.props,_n=bt.prefixCls,ct=bt.className,Dt=bt.style,En=bt.disabled,wn=bt.hideOnSinglePage,Bn=bt.total,Qn=bt.locale,wr=bt.showQuickJumper,br=bt.showLessItems,Sr=bt.showTitle,Yn=bt.showTotal,ir=bt.simple,Dr=bt.itemRender,ti=bt.showPrevNextJumpers,Ai=bt.jumpPrevIcon,tr=bt.jumpNextIcon,Jr=bt.selectComponentClass,kt=bt.selectPrefixCls,vn=bt.pageSizeOptions,Rn=this.state,In=Rn.current,nr=Rn.pageSize,gr=Rn.currentInputValue;if(wn===!0&&Bn<=nr)return null;var sr=ln(void 0,this.state,this.props),Un=[],qe=null,wt=null,Zt=null,an=null,ze=null,Ct=wr&&wr.goButton,tn=br?1:2,Kt=In-1>0?In-1:0,hn=In+1<sr?In+1:sr,gn=Ve(this.props,{aria:!0,data:!0}),Xn=Yn&&Le.createElement("li",{className:"".concat(_n,"-total-text")},Yn(Bn,[Bn===0?0:(In-1)*nr+1,In*nr>Bn?Bn:In*nr]));if(ir){Ct&&(typeof Ct=="boolean"?ze=Le.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Qn.jump_to_confirm):ze=Le.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ct),ze=Le.createElement("li",{title:Sr?"".concat(Qn.jump_to).concat(In,"/").concat(sr):null,className:"".concat(_n,"-simple-pager")},ze));var _r=this.renderPrev(Kt);return Le.createElement("ul",(0,ae.Z)({className:Ne()(_n,"".concat(_n,"-simple"),(0,mt.Z)({},"".concat(_n,"-disabled"),En),ct),style:Dt,ref:this.paginationNode},gn),Xn,_r?Le.createElement("li",{title:Sr?Qn.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ne()("".concat(_n,"-prev"),(0,mt.Z)({},"".concat(_n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},_r):null,Le.createElement("li",{title:Sr?"".concat(In,"/").concat(sr):null,className:"".concat(_n,"-simple-pager")},Le.createElement("input",{type:"text",value:gr,disabled:En,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Le.createElement("span",{className:"".concat(_n,"-slash")},"/"),sr),Le.createElement("li",{title:Sr?Qn.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ne()("".concat(_n,"-next"),(0,mt.Z)({},"".concat(_n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(hn)),ze)}if(sr<=3+tn*2){var lr={locale:Qn,rootPrefixCls:_n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Sr,itemRender:Dr};sr||Un.push(Le.createElement(bn,(0,ae.Z)({},lr,{key:"noPager",page:1,className:"".concat(_n,"-item-disabled")})));for(var mr=1;mr<=sr;mr+=1){var Or=In===mr;Un.push(Le.createElement(bn,(0,ae.Z)({},lr,{key:mr,page:mr,active:Or})))}}else{var Rr=br?Qn.prev_3:Qn.prev_5,Zr=br?Qn.next_3:Qn.next_5,Kn=Dr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Ai,"prev page")),fr=Dr(this.getJumpNextPage(),"jump-next",this.getItemIcon(tr,"next page"));ti&&(qe=Kn?Le.createElement("li",{title:Sr?Rr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ne()("".concat(_n,"-jump-prev"),(0,mt.Z)({},"".concat(_n,"-jump-prev-custom-icon"),!!Ai))},Kn):null,wt=fr?Le.createElement("li",{title:Sr?Zr:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ne()("".concat(_n,"-jump-next"),(0,mt.Z)({},"".concat(_n,"-jump-next-custom-icon"),!!tr))},fr):null),an=Le.createElement(bn,{locale:Qn,last:!0,rootPrefixCls:_n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:sr,page:sr,active:!1,showTitle:Sr,itemRender:Dr}),Zt=Le.createElement(bn,{locale:Qn,rootPrefixCls:_n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Sr,itemRender:Dr});var Mn=Math.max(1,In-tn),Sn=Math.min(In+tn,sr);In-1<=tn&&(Sn=1+tn*2),sr-In<=tn&&(Mn=sr-tn*2);for(var on=Mn;on<=Sn;on+=1){var yr=In===on;Un.push(Le.createElement(bn,{locale:Qn,rootPrefixCls:_n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:on,page:on,active:yr,showTitle:Sr,itemRender:Dr}))}In-1>=tn*2&&In!==3&&(Un[0]=(0,Le.cloneElement)(Un[0],{className:"".concat(_n,"-item-after-jump-prev")}),Un.unshift(qe)),sr-In>=tn*2&&In!==sr-2&&(Un[Un.length-1]=(0,Le.cloneElement)(Un[Un.length-1],{className:"".concat(_n,"-item-before-jump-next")}),Un.push(wt)),Mn!==1&&Un.unshift(Zt),Sn!==sr&&Un.push(an)}var Wr=!this.hasPrev()||!sr,Lr=!this.hasNext()||!sr,qr=this.renderPrev(Kt),Cn=this.renderNext(hn);return Le.createElement("ul",(0,ae.Z)({className:Ne()(_n,ct,(0,mt.Z)({},"".concat(_n,"-disabled"),En)),style:Dt,ref:this.paginationNode},gn),Xn,qr?Le.createElement("li",{title:Sr?Qn.prev_page:null,onClick:this.prev,tabIndex:Wr?null:0,onKeyPress:this.runIfEnterPrev,className:Ne()("".concat(_n,"-prev"),(0,mt.Z)({},"".concat(_n,"-disabled"),Wr)),"aria-disabled":Wr},qr):null,Un,Cn?Le.createElement("li",{title:Sr?Qn.next_page:null,onClick:this.next,tabIndex:Lr?null:0,onKeyPress:this.runIfEnterNext,className:Ne()("".concat(_n,"-next"),(0,mt.Z)({},"".concat(_n,"-disabled"),Lr)),"aria-disabled":Lr},Cn):null,Le.createElement(qt,{disabled:En,locale:Qn,rootPrefixCls:_n,selectComponentClass:Jr,selectPrefixCls:kt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:In,pageSize:nr,pageSizeOptions:vn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ct}))}}],[{key:"getDerivedStateFromProps",value:function(bt,_n){var ct={};if("current"in bt&&(ct.current=bt.current,bt.current!==_n.current&&(ct.currentInputValue=ct.current)),"pageSize"in bt&&bt.pageSize!==_n.pageSize){var Dt=_n.current,En=ln(bt.pageSize,_n,bt);Dt=Dt>En?En:Dt,"current"in bt||(ct.current=Dt,ct.currentInputValue=Dt),ct.pageSize=bt.pageSize}return ct}}]),Ot}(Le.Component);$e.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:dn,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:dn,locale:Lt.Z,style:{},itemRender:rr,totalBoundaryShowSizeChanger:50};var Se=$e,Bt=se(62906),xn=se(53124),Xt=se(98675),ft=se(25378),yt=se(10110),Gt=se(11713);const qn=it=>Le.createElement(Gt.default,Object.assign({},it,{showSearch:!0,size:"small"})),Dn=it=>Le.createElement(Gt.default,Object.assign({},it,{showSearch:!0,size:"middle"}));qn.Option=Gt.default.Option,Dn.Option=Gt.default.Option;var Tt=se(47673),mn=se(14747),Vn=se(67968),kn=se(45503);const Pe=it=>{const{componentCls:Mt}=it;return{[`${Mt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Mt}-item-link`]:{color:it.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Mt}-item-link`]:{color:it.colorTextDisabled,cursor:"not-allowed"}}},[`&${Mt}-disabled`]:{cursor:"not-allowed",[`${Mt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:it.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:it.colorBorder,backgroundColor:it.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:it.itemActiveBgDisabled},a:{color:it.itemActiveColorDisabled}}},[`${Mt}-item-link`]:{color:it.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Mt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Mt}-simple-pager`]:{color:it.colorTextDisabled},[`${Mt}-jump-prev, ${Mt}-jump-next`]:{[`${Mt}-item-link-icon`]:{opacity:0},[`${Mt}-item-ellipsis`]:{opacity:1}}},[`&${Mt}-simple`]:{[`${Mt}-prev, ${Mt}-next`]:{[`&${Mt}-disabled ${Mt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},fe=it=>{const{componentCls:Mt}=it;return{[`&${Mt}-mini ${Mt}-total-text, &${Mt}-mini ${Mt}-simple-pager`]:{height:it.itemSizeSM,lineHeight:`${it.itemSizeSM}px`},[`&${Mt}-mini ${Mt}-item`]:{minWidth:it.itemSizeSM,height:it.itemSizeSM,margin:0,lineHeight:`${it.itemSizeSM-2}px`},[`&${Mt}-mini:not(${Mt}-disabled) ${Mt}-item:not(${Mt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:it.colorBgTextHover},"&:active":{backgroundColor:it.colorBgTextActive}},[`&${Mt}-mini ${Mt}-prev, &${Mt}-mini ${Mt}-next`]:{minWidth:it.itemSizeSM,height:it.itemSizeSM,margin:0,lineHeight:`${it.itemSizeSM}px`},[`&${Mt}-mini:not(${Mt}-disabled)`]:{[`${Mt}-prev, ${Mt}-next`]:{[`&:hover ${Mt}-item-link`]:{backgroundColor:it.colorBgTextHover},[`&:active ${Mt}-item-link`]:{backgroundColor:it.colorBgTextActive},[`&${Mt}-disabled:hover ${Mt}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Mt}-mini ${Mt}-prev ${Mt}-item-link,
|
|
|
&${Mt}-mini ${Mt}-next ${Mt}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:it.itemSizeSM,lineHeight:`${it.itemSizeSM}px`}},[`&${Mt}-mini ${Mt}-jump-prev, &${Mt}-mini ${Mt}-jump-next`]:{height:it.itemSizeSM,marginInlineEnd:0,lineHeight:`${it.itemSizeSM}px`},[`&${Mt}-mini ${Mt}-options`]:{marginInlineStart:it.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:it.miniOptionsSizeChangerTop},"&-quick-jumper":{height:it.itemSizeSM,lineHeight:`${it.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Tt.x0)(it)),{width:it.paginationMiniQuickJumperInputWidth,height:it.controlHeightSM})}}}},ce=it=>{const{componentCls:Mt}=it;return{[`
|
|
|
&${Mt}-simple ${Mt}-prev,
|
|
|
&${Mt}-simple ${Mt}-next
|
|
|
`]:{height:it.itemSizeSM,lineHeight:`${it.itemSizeSM}px`,verticalAlign:"top",[`${Mt}-item-link`]:{height:it.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:it.colorBgTextHover},"&:active":{backgroundColor:it.colorBgTextActive},"&::after":{height:it.itemSizeSM,lineHeight:`${it.itemSizeSM}px`}}},[`&${Mt}-simple ${Mt}-simple-pager`]:{display:"inline-block",height:it.itemSizeSM,marginInlineEnd:it.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:it.marginXS,padding:`0 ${it.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:it.itemInputBg,border:`${it.lineWidth}px ${it.lineType} ${it.colorBorder}`,borderRadius:it.borderRadius,outline:"none",transition:`border-color ${it.motionDurationMid}`,color:"inherit","&:hover":{borderColor:it.colorPrimary},"&:focus":{borderColor:it.colorPrimaryHover,boxShadow:`${it.inputOutlineOffset}px 0 ${it.controlOutlineWidth}px ${it.controlOutline}`},"&[disabled]":{color:it.colorTextDisabled,backgroundColor:it.colorBgContainerDisabled,borderColor:it.colorBorder,cursor:"not-allowed"}}}}},he=it=>{const{componentCls:Mt}=it;return{[`${Mt}-jump-prev, ${Mt}-jump-next`]:{outline:0,[`${Mt}-item-container`]:{position:"relative",[`${Mt}-item-link-icon`]:{color:it.colorPrimary,fontSize:it.fontSizeSM,opacity:0,transition:`all ${it.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Mt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:it.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:it.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:it.paginationEllipsisTextIndent,opacity:1,transition:`all ${it.motionDurationMid}`}},"&:hover":{[`${Mt}-item-link-icon`]:{opacity:1},[`${Mt}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Mt}-prev,
|
|
|
${Mt}-jump-prev,
|
|
|
${Mt}-jump-next
|
|
|
`]:{marginInlineEnd:it.marginXS},[`
|
|
|
${Mt}-prev,
|
|
|
${Mt}-next,
|
|
|
${Mt}-jump-prev,
|
|
|
${Mt}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:it.itemSize,height:it.itemSize,color:it.colorText,fontFamily:it.fontFamily,lineHeight:`${it.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:it.borderRadius,cursor:"pointer",transition:`all ${it.motionDurationMid}`},[`${Mt}-prev, ${Mt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:it.colorText,cursor:"pointer",userSelect:"none"},[`${Mt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:it.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${it.lineWidth}px ${it.lineType} transparent`,borderRadius:it.borderRadius,outline:"none",transition:`all ${it.motionDurationMid}`},[`&:hover ${Mt}-item-link`]:{backgroundColor:it.colorBgTextHover},[`&:active ${Mt}-item-link`]:{backgroundColor:it.colorBgTextActive},[`&${Mt}-disabled:hover`]:{[`${Mt}-item-link`]:{backgroundColor:"transparent"}}},[`${Mt}-slash`]:{marginInlineEnd:it.paginationSlashMarginInlineEnd,marginInlineStart:it.paginationSlashMarginInlineStart},[`${Mt}-options`]:{display:"inline-block",marginInlineStart:it.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:it.controlHeight,marginInlineStart:it.marginXS,lineHeight:`${it.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Tt.ik)(it)),{width:it.controlHeightLG*1.25,height:it.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:it.marginXS,marginInlineEnd:it.marginXS})}}}},ue=it=>{const{componentCls:Mt}=it;return{[`${Mt}-item`]:{display:"inline-block",minWidth:it.itemSize,height:it.itemSize,marginInlineEnd:it.marginXS,fontFamily:it.fontFamily,lineHeight:`${it.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${it.lineWidth}px ${it.lineType} transparent`,borderRadius:it.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${it.paginationItemPaddingInline}px`,color:it.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Mt}-item-active)`]:{"&:hover":{transition:`all ${it.motionDurationMid}`,backgroundColor:it.colorBgTextHover},"&:active":{backgroundColor:it.colorBgTextActive}},"&-active":{fontWeight:it.fontWeightStrong,backgroundColor:it.itemActiveBg,borderColor:it.colorPrimary,a:{color:it.colorPrimary},"&:hover":{borderColor:it.colorPrimaryHover},"&:hover a":{color:it.colorPrimaryHover}}}}},le=it=>{const{componentCls:Mt}=it;return{[Mt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,mn.Wf)(it)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Mt}-total-text`]:{display:"inline-block",height:it.itemSize,marginInlineEnd:it.marginXS,lineHeight:`${it.itemSize-2}px`,verticalAlign:"middle"}}),ue(it)),he(it)),ce(it)),fe(it)),Pe(it)),{[`@media only screen and (max-width: ${it.screenLG}px)`]:{[`${Mt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${it.screenSM}px)`]:{[`${Mt}-options`]:{display:"none"}}}),[`&${it.componentCls}-rtl`]:{direction:"rtl"}}},Me=it=>{const{componentCls:Mt}=it;return{[`${Mt}${Mt}-disabled:not(${Mt}-mini)`]:{"&, &:hover":{[`${Mt}-item-link`]:{borderColor:it.colorBorder}},"&:focus-visible":{[`${Mt}-item-link`]:{borderColor:it.colorBorder}},[`${Mt}-item, ${Mt}-item-link`]:{backgroundColor:it.colorBgContainerDisabled,borderColor:it.colorBorder,[`&:hover:not(${Mt}-item-active)`]:{backgroundColor:it.colorBgContainerDisabled,borderColor:it.colorBorder,a:{color:it.colorTextDisabled}},[`&${Mt}-item-active`]:{backgroundColor:it.itemActiveBgDisabled}},[`${Mt}-prev, ${Mt}-next`]:{"&:hover button":{backgroundColor:it.colorBgContainerDisabled,borderColor:it.colorBorder,color:it.colorTextDisabled},[`${Mt}-item-link`]:{backgroundColor:it.colorBgContainerDisabled,borderColor:it.colorBorder}}},[`${Mt}:not(${Mt}-mini)`]:{[`${Mt}-prev, ${Mt}-next`]:{"&:hover button":{borderColor:it.colorPrimaryHover,backgroundColor:it.itemBg},[`${Mt}-item-link`]:{backgroundColor:it.itemLinkBg,borderColor:it.colorBorder},[`&:hover ${Mt}-item-link`]:{borderColor:it.colorPrimary,backgroundColor:it.itemBg,color:it.colorPrimary},[`&${Mt}-disabled`]:{[`${Mt}-item-link`]:{borderColor:it.colorBorder,color:it.colorTextDisabled}}},[`${Mt}-item`]:{backgroundColor:it.itemBg,border:`${it.lineWidth}px ${it.lineType} ${it.colorBorder}`,[`&:hover:not(${Mt}-item-active)`]:{borderColor:it.colorPrimary,backgroundColor:it.itemBg,a:{color:it.colorPrimary}},"&-active":{borderColor:it.colorPrimary}}}}},Ge=it=>{const{componentCls:Mt}=it;return{[`${Mt}:not(${Mt}-disabled)`]:{[`${Mt}-item`]:Object.assign({},(0,mn.Qy)(it)),[`${Mt}-jump-prev, ${Mt}-jump-next`]:{"&:focus-visible":Object.assign({[`${Mt}-item-link-icon`]:{opacity:1},[`${Mt}-item-ellipsis`]:{opacity:0}},(0,mn.oN)(it))},[`${Mt}-prev, ${Mt}-next`]:{[`&:focus-visible ${Mt}-item-link`]:Object.assign({},(0,mn.oN)(it))}}}};var St=(0,Vn.Z)("Pagination",it=>{const Mt=(0,kn.TS)(it,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:it.marginXXS/2,paginationMiniQuickJumperInputWidth:it.controlHeightLG*1.1,paginationItemPaddingInline:it.marginXXS*1.5,paginationEllipsisLetterSpacing:it.marginXXS/2,paginationSlashMarginInlineStart:it.marginXXS,paginationSlashMarginInlineEnd:it.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Tt.e5)(it),(0,Tt.TM)(it));return[le(Mt),Ge(Mt),it.wireframe&&Me(Mt)]},it=>({itemBg:it.colorBgContainer,itemSize:it.controlHeight,itemSizeSM:it.controlHeightSM,itemActiveBg:it.colorBgContainer,itemLinkBg:it.colorBgContainer,itemActiveColorDisabled:it.colorTextDisabled,itemActiveBgDisabled:it.controlItemBgActiveDisabled,itemInputBg:it.colorBgContainer,miniOptionsSizeChangerTop:0})),Ht=function(it,Mt){var Ot={};for(var $t in it)Object.prototype.hasOwnProperty.call(it,$t)&&Mt.indexOf($t)<0&&(Ot[$t]=it[$t]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,$t=Object.getOwnPropertySymbols(it);bt<$t.length;bt++)Mt.indexOf($t[bt])<0&&Object.prototype.propertyIsEnumerable.call(it,$t[bt])&&(Ot[$t[bt]]=it[$t[bt]]);return Ot},Vt=it=>{const{prefixCls:Mt,selectPrefixCls:Ot,className:$t,rootClassName:bt,style:_n,size:ct,locale:Dt,selectComponentClass:En,responsive:wn,showSizeChanger:Bn}=it,Qn=Ht(it,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:wr}=(0,ft.Z)(wn),{getPrefixCls:br,direction:Sr,pagination:Yn={}}=Le.useContext(xn.E_),ir=br("pagination",Mt),[Dr,ti]=St(ir),Ai=Bn!=null?Bn:Yn.showSizeChanger,tr=Le.useMemo(()=>{const sr=Le.createElement("span",{className:`${ir}-item-ellipsis`},"\u2022\u2022\u2022"),Un=Le.createElement("button",{className:`${ir}-item-link`,type:"button",tabIndex:-1},Sr==="rtl"?Le.createElement(De.Z,null):Le.createElement(me.Z,null)),qe=Le.createElement("button",{className:`${ir}-item-link`,type:"button",tabIndex:-1},Sr==="rtl"?Le.createElement(me.Z,null):Le.createElement(De.Z,null)),wt=Le.createElement("a",{className:`${ir}-item-link`},Le.createElement("div",{className:`${ir}-item-container`},Sr==="rtl"?Le.createElement(xe.Z,{className:`${ir}-item-link-icon`}):Le.createElement(Ee,{className:`${ir}-item-link-icon`}),sr)),Zt=Le.createElement("a",{className:`${ir}-item-link`},Le.createElement("div",{className:`${ir}-item-container`},Sr==="rtl"?Le.createElement(Ee,{className:`${ir}-item-link-icon`}):Le.createElement(xe.Z,{className:`${ir}-item-link-icon`}),sr));return{prevIcon:Un,nextIcon:qe,jumpPrevIcon:wt,jumpNextIcon:Zt}},[Sr,ir]),[Jr]=(0,yt.Z)("Pagination",Bt.Z),kt=Object.assign(Object.assign({},Jr),Dt),vn=(0,Xt.Z)(ct),Rn=vn==="small"||!!(wr&&!vn&&wn),In=br("select",Ot),nr=Ne()({[`${ir}-mini`]:Rn,[`${ir}-rtl`]:Sr==="rtl"},Yn==null?void 0:Yn.className,$t,bt,ti),gr=Object.assign(Object.assign({},Yn==null?void 0:Yn.style),_n);return Dr(Le.createElement(Se,Object.assign({},tr,Qn,{style:gr,prefixCls:ir,selectPrefixCls:In,className:nr,selectComponentClass:En||(Rn?qn:Dn),locale:kt,showSizeChanger:Ai})))},sn=Vt},38703:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return _n}});var ae=se(67294),Le=se(87725),_e=se(18299),rt=se(16646),ge=se(73475),ke=se(94184),Ee=se.n(ke),xe=se(10366),me=se(53124),De=se(87462),ot=se(1413),Ne=se(45987),mt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},dt=function(){var Dt=(0,ae.useRef)([]),En=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var wn=Date.now(),Bn=!1;Dt.current.forEach(function(Qn){if(Qn){Bn=!0;var wr=Qn.style;wr.transitionDuration=".3s, .3s, .3s, .06s",En.current&&wn-En.current<100&&(wr.transitionDuration="0s, 0s")}}),Bn&&(En.current=Date.now())}),Dt.current},pt=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Je=function(Dt){var En=(0,ot.Z)((0,ot.Z)({},mt),Dt),wn=En.className,Bn=En.percent,Qn=En.prefixCls,wr=En.strokeColor,br=En.strokeLinecap,Sr=En.strokeWidth,Yn=En.style,ir=En.trailColor,Dr=En.trailWidth,ti=En.transition,Ai=(0,Ne.Z)(En,pt);delete Ai.gapPosition;var tr=Array.isArray(Bn)?Bn:[Bn],Jr=Array.isArray(wr)?wr:[wr],kt=dt(),vn=Sr/2,Rn=100-Sr/2,In="M ".concat(br==="round"?vn:0,",").concat(vn,`
|
|
|
L `).concat(br==="round"?Rn:100,",").concat(vn),nr="0 0 100 ".concat(Sr),gr=0;return ae.createElement("svg",(0,De.Z)({className:Ee()("".concat(Qn,"-line"),wn),viewBox:nr,preserveAspectRatio:"none",style:Yn},Ai),ae.createElement("path",{className:"".concat(Qn,"-line-trail"),d:In,strokeLinecap:br,stroke:ir,strokeWidth:Dr||Sr,fillOpacity:"0"}),tr.map(function(sr,Un){var qe=1;switch(br){case"round":qe=1-Sr/100;break;case"square":qe=1-Sr/2/100;break;default:qe=1;break}var wt={strokeDasharray:"".concat(sr*qe,"px, 100px"),strokeDashoffset:"-".concat(gr,"px"),transition:ti||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Zt=Jr[Un]||Jr[Jr.length-1];return gr+=sr,ae.createElement("path",{key:Un,className:"".concat(Qn,"-line-path"),d:In,strokeLinecap:br,stroke:Zt,strokeWidth:Sr,fillOpacity:"0",ref:function(ze){kt[Un]=ze},style:wt})}))},Be=Je,gt=se(71002),nn=se(97685),at=se(98924),vt=0,Ce=(0,at.Z)();function Ae(){var ct;return Ce?(ct=vt,vt+=1):ct="TEST_OR_SSR",ct}var Ye=function(ct){var Dt=ae.useState(),En=(0,nn.Z)(Dt,2),wn=En[0],Bn=En[1];return ae.useEffect(function(){Bn("rc_progress_".concat(Ae()))},[]),ct||wn},Ve=function(Dt){var En=Dt.bg,wn=Dt.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:En}},wn)};function At(ct,Dt){return Object.keys(ct).map(function(En){var wn=parseFloat(En),Bn="".concat(Math.floor(wn*Dt),"%");return"".concat(ct[En]," ").concat(Bn)})}var xt=ae.forwardRef(function(ct,Dt){var En=ct.prefixCls,wn=ct.color,Bn=ct.gradientId,Qn=ct.radius,wr=ct.style,br=ct.ptg,Sr=ct.strokeLinecap,Yn=ct.strokeWidth,ir=ct.size,Dr=ct.gapDegree,ti=wn&&(0,gt.Z)(wn)==="object",Ai=ti?"#FFF":void 0,tr=ir/2,Jr=ae.createElement("circle",{className:"".concat(En,"-circle-path"),r:Qn,cx:tr,cy:tr,stroke:Ai,strokeLinecap:Sr,strokeWidth:Yn,opacity:br===0?0:1,style:wr,ref:Dt});if(!ti)return Jr;var kt="".concat(Bn,"-conic"),vn=Dr?"".concat(180+Dr/2,"deg"):"0deg",Rn=At(wn,(360-Dr)/360),In=At(wn,1),nr="conic-gradient(from ".concat(vn,", ").concat(Rn.join(", "),")"),gr="linear-gradient(to ".concat(Dr?"bottom":"top",", ").concat(In.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:kt},Jr),ae.createElement("foreignObject",{x:0,y:0,width:ir,height:ir,mask:"url(#".concat(kt,")")},ae.createElement(Ve,{bg:gr},ae.createElement(Ve,{bg:nr}))))}),Lt=xt,nt=100,qt=function(Dt,En,wn,Bn,Qn,wr,br,Sr,Yn,ir){var Dr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,ti=wn/100*360*((360-wr)/360),Ai=wr===0?0:{bottom:0,top:180,left:90,right:-90}[br],tr=(100-Bn)/100*En;Yn==="round"&&Bn!==100&&(tr+=ir/2,tr>=En&&(tr=En-.01));var Jr=nt/2;return{stroke:typeof Sr=="string"?Sr:void 0,strokeDasharray:"".concat(En,"px ").concat(Dt),strokeDashoffset:tr+Dr,transform:"rotate(".concat(Qn+ti+Ai,"deg)"),transformOrigin:"".concat(Jr,"px ").concat(Jr,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},zt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function bn(ct){var Dt=ct!=null?ct:[];return Array.isArray(Dt)?Dt:[Dt]}var dn=function(Dt){var En=(0,ot.Z)((0,ot.Z)({},mt),Dt),wn=En.id,Bn=En.prefixCls,Qn=En.steps,wr=En.strokeWidth,br=En.trailWidth,Sr=En.gapDegree,Yn=Sr===void 0?0:Sr,ir=En.gapPosition,Dr=En.trailColor,ti=En.strokeLinecap,Ai=En.style,tr=En.className,Jr=En.strokeColor,kt=En.percent,vn=(0,Ne.Z)(En,zt),Rn=nt/2,In=Ye(wn),nr="".concat(In,"-gradient"),gr=Rn-wr/2,sr=Math.PI*2*gr,Un=Yn>0?90+Yn/2:-90,qe=sr*((360-Yn)/360),wt=(0,gt.Z)(Qn)==="object"?Qn:{count:Qn,space:2},Zt=wt.count,an=wt.space,ze=bn(kt),Ct=bn(Jr),tn=Ct.find(function(mr){return mr&&(0,gt.Z)(mr)==="object"}),Kt=tn&&(0,gt.Z)(tn)==="object",hn=Kt?"butt":ti,gn=qt(sr,qe,0,100,Un,Yn,ir,Dr,hn,wr),Xn=dt(),_r=function(){var Or=0;return ze.map(function(Rr,Zr){var Kn=Ct[Zr]||Ct[Ct.length-1],fr=qt(sr,qe,Or,Rr,Un,Yn,ir,Kn,hn,wr);return Or+=Rr,ae.createElement(Lt,{key:Zr,color:Kn,ptg:Rr,radius:gr,prefixCls:Bn,gradientId:nr,style:fr,strokeLinecap:hn,strokeWidth:wr,gapDegree:Yn,ref:function(Sn){Xn[Zr]=Sn},size:nt})}).reverse()},lr=function(){var Or=Math.round(Zt*(ze[0]/100)),Rr=100/Zt,Zr=0;return new Array(Zt).fill(null).map(function(Kn,fr){var Mn=fr<=Or-1?Ct[0]:Dr,Sn=Mn&&(0,gt.Z)(Mn)==="object"?"url(#".concat(nr,")"):void 0,on=qt(sr,qe,Zr,Rr,Un,Yn,ir,Mn,"butt",wr,an);return Zr+=(qe-on.strokeDashoffset+an)*100/qe,ae.createElement("circle",{key:fr,className:"".concat(Bn,"-circle-path"),r:gr,cx:Rn,cy:Rn,stroke:Sn,strokeWidth:wr,opacity:1,style:on,ref:function(Wr){Xn[fr]=Wr}})})};return ae.createElement("svg",(0,De.Z)({className:Ee()("".concat(Bn,"-circle"),tr),viewBox:"0 0 ".concat(nt," ").concat(nt),style:Ai,id:wn,role:"presentation"},vn),!Zt&&ae.createElement("circle",{className:"".concat(Bn,"-circle-trail"),r:gr,cx:Rn,cy:Rn,stroke:Dr,strokeLinecap:hn,strokeWidth:br||wr,style:gn}),Zt?lr():_r())},Wn=dn,rr={Line:Be,Circle:Wn},ln=se(83062),$e=se(16397);function Se(ct){return!ct||ct<0?0:ct>100?100:ct}function Bt(ct){let{success:Dt,successPercent:En}=ct,wn=En;return Dt&&"progress"in Dt&&(wn=Dt.progress),Dt&&"percent"in Dt&&(wn=Dt.percent),wn}const xn=ct=>{let{percent:Dt,success:En,successPercent:wn}=ct;const Bn=Se(Bt({success:En,successPercent:wn}));return[Bn,Se(Se(Dt)-Bn)]},Xt=ct=>{let{success:Dt={},strokeColor:En}=ct;const{strokeColor:wn}=Dt;return[wn||$e.presetPrimaryColors.green,En||null]},ft=(ct,Dt,En)=>{var wn,Bn,Qn,wr;let br=-1,Sr=-1;if(Dt==="step"){const Yn=En.steps,ir=En.strokeWidth;typeof ct=="string"||typeof ct=="undefined"?(br=ct==="small"?2:14,Sr=ir!=null?ir:8):typeof ct=="number"?[br,Sr]=[ct,ct]:[br=14,Sr=8]=ct,br*=Yn}else if(Dt==="line"){const Yn=En==null?void 0:En.strokeWidth;typeof ct=="string"||typeof ct=="undefined"?Sr=Yn||(ct==="small"?6:8):typeof ct=="number"?[br,Sr]=[ct,ct]:[br=-1,Sr=8]=ct}else(Dt==="circle"||Dt==="dashboard")&&(typeof ct=="string"||typeof ct=="undefined"?[br,Sr]=ct==="small"?[60,60]:[120,120]:typeof ct=="number"?[br,Sr]=[ct,ct]:(br=(Bn=(wn=ct[0])!==null&&wn!==void 0?wn:ct[1])!==null&&Bn!==void 0?Bn:120,Sr=(wr=(Qn=ct[0])!==null&&Qn!==void 0?Qn:ct[1])!==null&&wr!==void 0?wr:120));return[br,Sr]},yt=3,Gt=ct=>yt/ct*100;var Dn=ct=>{const{prefixCls:Dt,trailColor:En=null,strokeLinecap:wn="round",gapPosition:Bn,gapDegree:Qn,width:wr=120,type:br,children:Sr,success:Yn,size:ir=wr}=ct,[Dr,ti]=ft(ir,"circle");let{strokeWidth:Ai}=ct;Ai===void 0&&(Ai=Math.max(Gt(Dr),6));const tr={width:Dr,height:ti,fontSize:Dr*.15+6},Jr=ae.useMemo(()=>{if(Qn||Qn===0)return Qn;if(br==="dashboard")return 75},[Qn,br]),kt=Bn||br==="dashboard"&&"bottom"||void 0,vn=Object.prototype.toString.call(ct.strokeColor)==="[object Object]",Rn=Xt({success:Yn,strokeColor:ct.strokeColor}),In=Ee()(`${Dt}-inner`,{[`${Dt}-circle-gradient`]:vn}),nr=ae.createElement(Wn,{percent:xn(ct),strokeWidth:Ai,trailWidth:Ai,strokeColor:Rn,strokeLinecap:wn,trailColor:En,prefixCls:Dt,gapDegree:Jr,gapPosition:kt});return ae.createElement("div",{className:In,style:tr},Dr<=20?ae.createElement(ln.Z,{title:Sr},ae.createElement("span",null,nr)):ae.createElement(ae.Fragment,null,nr,Sr))},Tt=function(ct,Dt){var En={};for(var wn in ct)Object.prototype.hasOwnProperty.call(ct,wn)&&Dt.indexOf(wn)<0&&(En[wn]=ct[wn]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,wn=Object.getOwnPropertySymbols(ct);Bn<wn.length;Bn++)Dt.indexOf(wn[Bn])<0&&Object.prototype.propertyIsEnumerable.call(ct,wn[Bn])&&(En[wn[Bn]]=ct[wn[Bn]]);return En};const mn=ct=>{let Dt=[];return Object.keys(ct).forEach(En=>{const wn=parseFloat(En.replace(/%/g,""));isNaN(wn)||Dt.push({key:wn,value:ct[En]})}),Dt=Dt.sort((En,wn)=>En.key-wn.key),Dt.map(En=>{let{key:wn,value:Bn}=En;return`${Bn} ${wn}%`}).join(", ")},Vn=(ct,Dt)=>{const{from:En=$e.presetPrimaryColors.blue,to:wn=$e.presetPrimaryColors.blue,direction:Bn=Dt==="rtl"?"to left":"to right"}=ct,Qn=Tt(ct,["from","to","direction"]);if(Object.keys(Qn).length!==0){const wr=mn(Qn);return{backgroundImage:`linear-gradient(${Bn}, ${wr})`}}return{backgroundImage:`linear-gradient(${Bn}, ${En}, ${wn})`}};var Pe=ct=>{const{prefixCls:Dt,direction:En,percent:wn,size:Bn,strokeWidth:Qn,strokeColor:wr,strokeLinecap:br="round",children:Sr,trailColor:Yn=null,success:ir}=ct,Dr=wr&&typeof wr!="string"?Vn(wr,En):{backgroundColor:wr},ti=br==="square"||br==="butt"?0:void 0,Ai={backgroundColor:Yn||void 0,borderRadius:ti},tr=Bn!=null?Bn:[-1,Qn||(Bn==="small"?6:8)],[Jr,kt]=ft(tr,"line",{strokeWidth:Qn}),vn=Object.assign({width:`${Se(wn)}%`,height:kt,borderRadius:ti},Dr),Rn=Bt(ct),In={width:`${Se(Rn)}%`,height:kt,borderRadius:ti,backgroundColor:ir==null?void 0:ir.strokeColor},nr={width:Jr<0?"100%":Jr,height:kt};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Dt}-outer`,style:nr},ae.createElement("div",{className:`${Dt}-inner`,style:Ai},ae.createElement("div",{className:`${Dt}-bg`,style:vn}),Rn!==void 0?ae.createElement("div",{className:`${Dt}-success-bg`,style:In}):null)),Sr)},ce=ct=>{const{size:Dt,steps:En,percent:wn=0,strokeWidth:Bn=8,strokeColor:Qn,trailColor:wr=null,prefixCls:br,children:Sr}=ct,Yn=Math.round(En*(wn/100)),ir=Dt==="small"?2:14,Dr=Dt!=null?Dt:[ir,Bn],[ti,Ai]=ft(Dr,"step",{steps:En,strokeWidth:Bn}),tr=ti/En,Jr=new Array(En);for(let kt=0;kt<En;kt++){const vn=Array.isArray(Qn)?Qn[kt]:Qn;Jr[kt]=ae.createElement("div",{key:kt,className:Ee()(`${br}-steps-item`,{[`${br}-steps-item-active`]:kt<=Yn-1}),style:{backgroundColor:kt<=Yn-1?vn:wr,width:tr,height:Ai}})}return ae.createElement("div",{className:`${br}-steps-outer`},Jr,Sr)},he=se(34367),ue=se(14747),le=se(67968),Me=se(45503);const Ge=ct=>{const Dt=ct?"100%":"-100%";return new he.Keyframes(`antProgress${ct?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Dt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Dt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},St=ct=>{const{componentCls:Dt,iconCls:En}=ct;return{[Dt]:Object.assign(Object.assign({},(0,ue.Wf)(ct)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ct.fontSize,marginInlineEnd:ct.marginXS,marginBottom:ct.marginXS},[`${Dt}-outer`]:{display:"inline-block",width:"100%"},[`&${Dt}-show-info`]:{[`${Dt}-outer`]:{marginInlineEnd:`calc(-2em - ${ct.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ct.paddingXS}px)`}},[`${Dt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ct.remainingColor,borderRadius:ct.lineBorderRadius},[`${Dt}-inner:not(${Dt}-circle-gradient)`]:{[`${Dt}-circle-path`]:{stroke:ct.defaultColor}},[`${Dt}-success-bg, ${Dt}-bg`]:{position:"relative",backgroundColor:ct.defaultColor,borderRadius:ct.lineBorderRadius,transition:`all ${ct.motionDurationSlow} ${ct.motionEaseInOutCirc}`},[`${Dt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ct.colorSuccess},[`${Dt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ct.marginXS,color:ct.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[En]:{fontSize:ct.fontSize}},[`&${Dt}-status-active`]:{[`${Dt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ct.colorBgContainer,borderRadius:ct.lineBorderRadius,opacity:0,animationName:Ge(),animationDuration:ct.progressActiveMotionDuration,animationTimingFunction:ct.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Dt}-rtl${Dt}-status-active`]:{[`${Dt}-bg::before`]:{animationName:Ge(!0)}},[`&${Dt}-status-exception`]:{[`${Dt}-bg`]:{backgroundColor:ct.colorError},[`${Dt}-text`]:{color:ct.colorError}},[`&${Dt}-status-exception ${Dt}-inner:not(${Dt}-circle-gradient)`]:{[`${Dt}-circle-path`]:{stroke:ct.colorError}},[`&${Dt}-status-success`]:{[`${Dt}-bg`]:{backgroundColor:ct.colorSuccess},[`${Dt}-text`]:{color:ct.colorSuccess}},[`&${Dt}-status-success ${Dt}-inner:not(${Dt}-circle-gradient)`]:{[`${Dt}-circle-path`]:{stroke:ct.colorSuccess}}})}},Ht=ct=>{const{componentCls:Dt,iconCls:En}=ct;return{[Dt]:{[`${Dt}-circle-trail`]:{stroke:ct.remainingColor},[`&${Dt}-circle ${Dt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Dt}-circle ${Dt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ct.circleTextColor,fontSize:ct.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[En]:{fontSize:`${ct.fontSize/ct.fontSizeSM}em`}},[`${Dt}-circle&-status-exception`]:{[`${Dt}-text`]:{color:ct.colorError}},[`${Dt}-circle&-status-success`]:{[`${Dt}-text`]:{color:ct.colorSuccess}}},[`${Dt}-inline-circle`]:{lineHeight:1,[`${Dt}-inner`]:{verticalAlign:"bottom"}}}},Yt=ct=>{const{componentCls:Dt}=ct;return{[Dt]:{[`${Dt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ct.progressStepMinWidth,marginInlineEnd:ct.progressStepMarginInlineEnd,backgroundColor:ct.remainingColor,transition:`all ${ct.motionDurationSlow}`,"&-active":{backgroundColor:ct.defaultColor}}}}}},Vt=ct=>{const{componentCls:Dt,iconCls:En}=ct;return{[Dt]:{[`${Dt}-small&-line, ${Dt}-small&-line ${Dt}-text ${En}`]:{fontSize:ct.fontSizeSM}}}};var sn=(0,le.Z)("Progress",ct=>{const Dt=ct.marginXXS/2,En=(0,Me.TS)(ct,{progressStepMarginInlineEnd:Dt,progressStepMinWidth:Dt,progressActiveMotionDuration:"2.4s"});return[St(En),Ht(En),Yt(En),Vt(En)]},ct=>({circleTextColor:ct.colorText,defaultColor:ct.colorInfo,remainingColor:ct.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),it=function(ct,Dt){var En={};for(var wn in ct)Object.prototype.hasOwnProperty.call(ct,wn)&&Dt.indexOf(wn)<0&&(En[wn]=ct[wn]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,wn=Object.getOwnPropertySymbols(ct);Bn<wn.length;Bn++)Dt.indexOf(wn[Bn])<0&&Object.prototype.propertyIsEnumerable.call(ct,wn[Bn])&&(En[wn[Bn]]=ct[wn[Bn]]);return En};const Mt=null,Ot=["normal","exception","active","success"];var bt=ae.forwardRef((ct,Dt)=>{const{prefixCls:En,className:wn,rootClassName:Bn,steps:Qn,strokeColor:wr,percent:br=0,size:Sr="default",showInfo:Yn=!0,type:ir="line",status:Dr,format:ti,style:Ai}=ct,tr=it(ct,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Jr=ae.useMemo(()=>{var ze,Ct;const tn=Bt(ct);return parseInt(tn!==void 0?(ze=tn!=null?tn:0)===null||ze===void 0?void 0:ze.toString():(Ct=br!=null?br:0)===null||Ct===void 0?void 0:Ct.toString(),10)},[br,ct.success,ct.successPercent]),kt=ae.useMemo(()=>!Ot.includes(Dr)&&Jr>=100?"success":Dr||"normal",[Dr,Jr]),{getPrefixCls:vn,direction:Rn,progress:In}=ae.useContext(me.E_),nr=vn("progress",En),[gr,sr]=sn(nr),Un=ae.useMemo(()=>{if(!Yn)return null;const ze=Bt(ct);let Ct;const tn=ti||(hn=>`${hn}%`),Kt=ir==="line";return ti||kt!=="exception"&&kt!=="success"?Ct=tn(Se(br),Se(ze)):kt==="exception"?Ct=Kt?ae.createElement(rt.Z,null):ae.createElement(ge.Z,null):kt==="success"&&(Ct=Kt?ae.createElement(Le.Z,null):ae.createElement(_e.Z,null)),ae.createElement("span",{className:`${nr}-text`,title:typeof Ct=="string"?Ct:void 0},Ct)},[Yn,br,Jr,kt,ir,nr,ti]),qe=Array.isArray(wr)?wr[0]:wr,wt=typeof wr=="string"||Array.isArray(wr)?wr:void 0;let Zt;ir==="line"?Zt=Qn?ae.createElement(ce,Object.assign({},ct,{strokeColor:wt,prefixCls:nr,steps:Qn}),Un):ae.createElement(Pe,Object.assign({},ct,{strokeColor:qe,prefixCls:nr,direction:Rn}),Un):(ir==="circle"||ir==="dashboard")&&(Zt=ae.createElement(Dn,Object.assign({},ct,{strokeColor:qe,prefixCls:nr,progressStatus:kt}),Un));const an=Ee()(nr,`${nr}-status-${kt}`,`${nr}-${ir==="dashboard"&&"circle"||Qn&&"steps"||ir}`,{[`${nr}-inline-circle`]:ir==="circle"&&ft(Sr,"circle")[0]<=20,[`${nr}-show-info`]:Yn,[`${nr}-${Sr}`]:typeof Sr=="string",[`${nr}-rtl`]:Rn==="rtl"},In==null?void 0:In.className,wn,Bn,sr);return gr(ae.createElement("div",Object.assign({ref:Dt,style:Object.assign(Object.assign({},In==null?void 0:In.style),Ai),className:an,role:"progressbar","aria-valuenow":Jr},(0,xe.Z)(tr,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Zt))}),_n=bt},78045:function(yn,fn,se){"use strict";se.d(fn,{ZP:function(){return $e}});var ae=se(94184),Le=se.n(ae),_e=se(5663),rt=se(1337),ge=se(67294),ke=se(53124),Ee=se(98675);const xe=ge.createContext(null),me=xe.Provider;var De=xe;const ot=ge.createContext(null),Ne=ot.Provider;var mt=se(95860),dt=se(17799),pt=se(98866),Je=se(65223),Be=se(14747),gt=se(67968),nn=se(45503);const at=Se=>{const{componentCls:Bt,antCls:xn}=Se,Xt=`${Bt}-group`;return{[Xt]:Object.assign(Object.assign({},(0,Be.Wf)(Se)),{display:"inline-block",fontSize:0,[`&${Xt}-rtl`]:{direction:"rtl"},[`${xn}-badge ${xn}-badge-count`]:{zIndex:1},[`> ${xn}-badge:not(:first-child) > ${xn}-button-wrapper`]:{borderInlineStart:"none"}})}},vt=Se=>{const{componentCls:Bt,wrapperMarginInlineEnd:xn,colorPrimary:Xt,radioSize:ft,motionDurationSlow:yt,motionDurationMid:Gt,motionEaseInOutCirc:qn,colorBgContainer:Dn,colorBorder:Tt,lineWidth:mn,dotSize:Vn,colorBgContainerDisabled:kn,colorTextDisabled:Pe,paddingXS:fe,dotColorDisabled:ce,lineType:he,radioDotDisabledSize:ue,wireframe:le,colorWhite:Me}=Se,Ge=`${Bt}-inner`;return{[`${Bt}-wrapper`]:Object.assign(Object.assign({},(0,Be.Wf)(Se)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:xn,cursor:"pointer",[`&${Bt}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Se.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Bt}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${mn}px ${he} ${Xt}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Bt]:Object.assign(Object.assign({},(0,Be.Wf)(Se)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Bt}-wrapper:hover &,
|
|
|
&:hover ${Ge}`]:{borderColor:Xt},[`${Bt}-input:focus-visible + ${Ge}`]:Object.assign({},(0,Be.oN)(Se)),[`${Bt}:hover::after, ${Bt}-wrapper:hover &::after`]:{visibility:"visible"},[`${Bt}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:ft,height:ft,marginBlockStart:ft/-2,marginInlineStart:ft/-2,backgroundColor:le?Xt:Me,borderBlockStart:0,borderInlineStart:0,borderRadius:ft,transform:"scale(0)",opacity:0,transition:`all ${yt} ${qn}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:ft,height:ft,backgroundColor:Dn,borderColor:Tt,borderStyle:"solid",borderWidth:mn,borderRadius:"50%",transition:`all ${Gt}`},[`${Bt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Bt}-checked`]:{[Ge]:{borderColor:Xt,backgroundColor:le?Dn:Xt,"&::after":{transform:`scale(${Vn/ft})`,opacity:1,transition:`all ${yt} ${qn}`}}},[`${Bt}-disabled`]:{cursor:"not-allowed",[Ge]:{backgroundColor:kn,borderColor:Tt,cursor:"not-allowed","&::after":{backgroundColor:ce}},[`${Bt}-input`]:{cursor:"not-allowed"},[`${Bt}-disabled + span`]:{color:Pe,cursor:"not-allowed"},[`&${Bt}-checked`]:{[Ge]:{"&::after":{transform:`scale(${ue/ft})`}}}},[`span${Bt} + *`]:{paddingInlineStart:fe,paddingInlineEnd:fe}})}},Ce=Se=>{const{buttonColor:Bt,controlHeight:xn,componentCls:Xt,lineWidth:ft,lineType:yt,colorBorder:Gt,motionDurationSlow:qn,motionDurationMid:Dn,buttonPaddingInline:Tt,fontSize:mn,buttonBg:Vn,fontSizeLG:kn,controlHeightLG:Pe,controlHeightSM:fe,paddingXS:ce,borderRadius:he,borderRadiusSM:ue,borderRadiusLG:le,buttonCheckedBg:Me,buttonSolidCheckedColor:Ge,colorTextDisabled:St,colorBgContainerDisabled:Ht,buttonCheckedBgDisabled:Yt,buttonCheckedColorDisabled:Vt,colorPrimary:sn,colorPrimaryHover:it,colorPrimaryActive:Mt,buttonSolidCheckedBg:Ot,buttonSolidCheckedHoverBg:$t,buttonSolidCheckedActiveBg:bt}=Se;return{[`${Xt}-button-wrapper`]:{position:"relative",display:"inline-block",height:xn,margin:0,paddingInline:Tt,paddingBlock:0,color:Bt,fontSize:mn,lineHeight:`${xn-ft*2}px`,background:Vn,border:`${ft}px ${yt} ${Gt}`,borderBlockStartWidth:ft+.02,borderInlineStartWidth:0,borderInlineEndWidth:ft,cursor:"pointer",transition:[`color ${Dn}`,`background ${Dn}`,`box-shadow ${Dn}`].join(","),a:{color:Bt},[`> ${Xt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-ft,insetInlineStart:-ft,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:ft,paddingInline:0,backgroundColor:Gt,transition:`background-color ${qn}`,content:'""'}},"&:first-child":{borderInlineStart:`${ft}px ${yt} ${Gt}`,borderStartStartRadius:he,borderEndStartRadius:he},"&:last-child":{borderStartEndRadius:he,borderEndEndRadius:he},"&:first-child:last-child":{borderRadius:he},[`${Xt}-group-large &`]:{height:Pe,fontSize:kn,lineHeight:`${Pe-ft*2}px`,"&:first-child":{borderStartStartRadius:le,borderEndStartRadius:le},"&:last-child":{borderStartEndRadius:le,borderEndEndRadius:le}},[`${Xt}-group-small &`]:{height:fe,paddingInline:ce-ft,paddingBlock:0,lineHeight:`${fe-ft*2}px`,"&:first-child":{borderStartStartRadius:ue,borderEndStartRadius:ue},"&:last-child":{borderStartEndRadius:ue,borderEndEndRadius:ue}},"&:hover":{position:"relative",color:sn},"&:has(:focus-visible)":Object.assign({},(0,Be.oN)(Se)),[`${Xt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Xt}-button-wrapper-disabled)`]:{zIndex:1,color:sn,background:Me,borderColor:sn,"&::before":{backgroundColor:sn},"&:first-child":{borderColor:sn},"&:hover":{color:it,borderColor:it,"&::before":{backgroundColor:it}},"&:active":{color:Mt,borderColor:Mt,"&::before":{backgroundColor:Mt}}},[`${Xt}-group-solid &-checked:not(${Xt}-button-wrapper-disabled)`]:{color:Ge,background:Ot,borderColor:Ot,"&:hover":{color:Ge,background:$t,borderColor:$t},"&:active":{color:Ge,background:bt,borderColor:bt}},"&-disabled":{color:St,backgroundColor:Ht,borderColor:Gt,cursor:"not-allowed","&:first-child, &:hover":{color:St,backgroundColor:Ht,borderColor:Gt}},[`&-disabled${Xt}-button-wrapper-checked`]:{color:Vt,backgroundColor:Yt,borderColor:Gt,boxShadow:"none"}}}},Ae=Se=>Se-4*2;var Ye=(0,gt.Z)("Radio",Se=>{const{controlOutline:Bt,controlOutlineWidth:xn,radioSize:Xt}=Se,ft=`0 0 0 ${xn}px ${Bt}`,yt=ft,Gt=Ae(Xt),qn=(0,nn.TS)(Se,{radioDotDisabledSize:Gt,radioFocusShadow:ft,radioButtonFocusShadow:yt});return[at(qn),vt(qn),Ce(qn)]},Se=>{const{wireframe:Bt,padding:xn,marginXS:Xt,lineWidth:ft,fontSizeLG:yt,colorText:Gt,colorBgContainer:qn,colorTextDisabled:Dn,controlItemBgActiveDisabled:Tt,colorTextLightSolid:mn,colorPrimary:Vn,colorPrimaryHover:kn,colorPrimaryActive:Pe}=Se,fe=4,ce=yt,he=Bt?Ae(ce):ce-(fe+ft)*2;return{radioSize:ce,dotSize:he,dotColorDisabled:Dn,buttonSolidCheckedColor:mn,buttonSolidCheckedBg:Vn,buttonSolidCheckedHoverBg:kn,buttonSolidCheckedActiveBg:Pe,buttonBg:qn,buttonCheckedBg:qn,buttonColor:Gt,buttonCheckedBgDisabled:Tt,buttonCheckedColorDisabled:Dn,buttonPaddingInline:xn-ft,wrapperMarginInlineEnd:Xt}}),Ve=se(45353),At=se(92429),xt=function(Se,Bt){var xn={};for(var Xt in Se)Object.prototype.hasOwnProperty.call(Se,Xt)&&Bt.indexOf(Xt)<0&&(xn[Xt]=Se[Xt]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Xt=Object.getOwnPropertySymbols(Se);ft<Xt.length;ft++)Bt.indexOf(Xt[ft])<0&&Object.prototype.propertyIsEnumerable.call(Se,Xt[ft])&&(xn[Xt[ft]]=Se[Xt[ft]]);return xn};const Lt=(Se,Bt)=>{var xn,Xt;const ft=ge.useContext(De),yt=ge.useContext(ot),{getPrefixCls:Gt,direction:qn,radio:Dn}=ge.useContext(ke.E_),Tt=ge.useRef(null),mn=(0,dt.sQ)(Bt,Tt),{isFormItemInput:Vn}=ge.useContext(Je.aM),kn=Mt=>{var Ot,$t;(Ot=Se.onChange)===null||Ot===void 0||Ot.call(Se,Mt),($t=ft==null?void 0:ft.onChange)===null||$t===void 0||$t.call(ft,Mt)},{prefixCls:Pe,className:fe,rootClassName:ce,children:he,style:ue}=Se,le=xt(Se,["prefixCls","className","rootClassName","children","style"]),Me=Gt("radio",Pe),Ge=((ft==null?void 0:ft.optionType)||yt)==="button",St=Ge?`${Me}-button`:Me,[Ht,Yt]=Ye(Me),Vt=Object.assign({},le),sn=ge.useContext(pt.Z);ft&&(Vt.name=ft.name,Vt.onChange=kn,Vt.checked=Se.value===ft.value,Vt.disabled=(xn=Vt.disabled)!==null&&xn!==void 0?xn:ft.disabled),Vt.disabled=(Xt=Vt.disabled)!==null&&Xt!==void 0?Xt:sn;const it=Le()(`${St}-wrapper`,{[`${St}-wrapper-checked`]:Vt.checked,[`${St}-wrapper-disabled`]:Vt.disabled,[`${St}-wrapper-rtl`]:qn==="rtl",[`${St}-wrapper-in-form-item`]:Vn},Dn==null?void 0:Dn.className,fe,ce,Yt);return Ht(ge.createElement(Ve.Z,{component:"Radio",disabled:Vt.disabled},ge.createElement("label",{className:it,style:Object.assign(Object.assign({},Dn==null?void 0:Dn.style),ue),onMouseEnter:Se.onMouseEnter,onMouseLeave:Se.onMouseLeave},ge.createElement(mt.Z,Object.assign({},Vt,{className:Le()(Vt.className,!Ge&&At.A),type:"radio",prefixCls:St,ref:mn})),he!==void 0?ge.createElement("span",null,he):null)))};var qt=ge.forwardRef(Lt);const zt=ge.forwardRef((Se,Bt)=>{const{getPrefixCls:xn,direction:Xt}=ge.useContext(ke.E_),[ft,yt]=(0,_e.Z)(Se.defaultValue,{value:Se.value}),Gt=Ot=>{const $t=ft,bt=Ot.target.value;"value"in Se||yt(bt);const{onChange:_n}=Se;_n&&bt!==$t&&_n(Ot)},{prefixCls:qn,className:Dn,rootClassName:Tt,options:mn,buttonStyle:Vn="outline",disabled:kn,children:Pe,size:fe,style:ce,id:he,onMouseEnter:ue,onMouseLeave:le,onFocus:Me,onBlur:Ge}=Se,St=xn("radio",qn),Ht=`${St}-group`,[Yt,Vt]=Ye(St);let sn=Pe;mn&&mn.length>0&&(sn=mn.map(Ot=>typeof Ot=="string"||typeof Ot=="number"?ge.createElement(qt,{key:Ot.toString(),prefixCls:St,disabled:kn,value:Ot,checked:ft===Ot},Ot):ge.createElement(qt,{key:`radio-group-value-options-${Ot.value}`,prefixCls:St,disabled:Ot.disabled||kn,value:Ot.value,checked:ft===Ot.value,title:Ot.title,style:Ot.style},Ot.label)));const it=(0,Ee.Z)(fe),Mt=Le()(Ht,`${Ht}-${Vn}`,{[`${Ht}-${it}`]:it,[`${Ht}-rtl`]:Xt==="rtl"},Dn,Tt,Vt);return Yt(ge.createElement("div",Object.assign({},(0,rt.Z)(Se,{aria:!0,data:!0}),{className:Mt,style:ce,onMouseEnter:ue,onMouseLeave:le,onFocus:Me,onBlur:Ge,id:he,ref:Bt}),ge.createElement(me,{value:{onChange:Gt,value:ft,disabled:Se.disabled,name:Se.name,optionType:Se.optionType}},sn)))});var bn=ge.memo(zt),dn=function(Se,Bt){var xn={};for(var Xt in Se)Object.prototype.hasOwnProperty.call(Se,Xt)&&Bt.indexOf(Xt)<0&&(xn[Xt]=Se[Xt]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Xt=Object.getOwnPropertySymbols(Se);ft<Xt.length;ft++)Bt.indexOf(Xt[ft])<0&&Object.prototype.propertyIsEnumerable.call(Se,Xt[ft])&&(xn[Xt[ft]]=Se[Xt[ft]]);return xn};const Wn=(Se,Bt)=>{const{getPrefixCls:xn}=ge.useContext(ke.E_),{prefixCls:Xt}=Se,ft=dn(Se,["prefixCls"]),yt=xn("radio",Xt);return ge.createElement(Ne,{value:"button"},ge.createElement(qt,Object.assign({prefixCls:yt},ft,{type:"radio",ref:Bt})))};var rr=ge.forwardRef(Wn);const ln=qt;ln.Button=rr,ln.Group=bn,ln.__ANT_RADIO=!0;var $e=ln},12604:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return $e}});var ae=se(87462),Le=se(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},rt=_e,ge=se(84089),ke=function(Bt,xn){return Le.createElement(ge.Z,(0,ae.Z)({},Bt,{ref:xn,icon:rt}))},Ee=Le.forwardRef(ke),xe=se(94184),me=se.n(xe),De=se(4942),ot=se(97685),Ne=se(45987),mt=se(21770),dt=se(15105),pt=se(64217);function Je(Se,Bt){var xn=Se.disabled,Xt=Se.prefixCls,ft=Se.character,yt=Se.characterRender,Gt=Se.index,qn=Se.count,Dn=Se.value,Tt=Se.allowHalf,mn=Se.focused,Vn=Se.onHover,kn=Se.onClick,Pe=function(St){Vn(St,Gt)},fe=function(St){kn(St,Gt)},ce=function(St){St.keyCode===dt.Z.ENTER&&kn(St,Gt)},he=Gt+1,ue=new Set([Xt]);Dn===0&&Gt===0&&mn?ue.add("".concat(Xt,"-focused")):Tt&&Dn+.5>=he&&Dn<he?(ue.add("".concat(Xt,"-half")),ue.add("".concat(Xt,"-active")),mn&&ue.add("".concat(Xt,"-focused"))):(he<=Dn?ue.add("".concat(Xt,"-full")):ue.add("".concat(Xt,"-zero")),he===Dn&&mn&&ue.add("".concat(Xt,"-focused")));var le=typeof ft=="function"?ft(Se):ft,Me=Le.createElement("li",{className:me()(Array.from(ue)),ref:Bt},Le.createElement("div",{onClick:xn?null:fe,onKeyDown:xn?null:ce,onMouseMove:xn?null:Pe,role:"radio","aria-checked":Dn>Gt?"true":"false","aria-posinset":Gt+1,"aria-setsize":qn,tabIndex:xn?-1:0},Le.createElement("div",{className:"".concat(Xt,"-first")},le),Le.createElement("div",{className:"".concat(Xt,"-second")},le)));return yt&&(Me=yt(Me,Se)),Me}var Be=Le.forwardRef(Je);function gt(){var Se=Le.useRef({});function Bt(Xt){return Se.current[Xt]}function xn(Xt){return function(ft){Se.current[Xt]=ft}}return[Bt,xn]}function nn(Se){var Bt=Se.pageXOffset,xn="scrollLeft";if(typeof Bt!="number"){var Xt=Se.document;Bt=Xt.documentElement[xn],typeof Bt!="number"&&(Bt=Xt.body[xn])}return Bt}function at(Se){var Bt,xn,Xt=Se.ownerDocument,ft=Xt.body,yt=Xt&&Xt.documentElement,Gt=Se.getBoundingClientRect();return Bt=Gt.left,xn=Gt.top,Bt-=yt.clientLeft||ft.clientLeft||0,xn-=yt.clientTop||ft.clientTop||0,{left:Bt,top:xn}}function vt(Se){var Bt=at(Se),xn=Se.ownerDocument,Xt=xn.defaultView||xn.parentWindow;return Bt.left+=nn(Xt),Bt.left}var Ce=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ae(Se,Bt){var xn,Xt=Se.prefixCls,ft=Xt===void 0?"rc-rate":Xt,yt=Se.className,Gt=Se.defaultValue,qn=Se.value,Dn=Se.count,Tt=Dn===void 0?5:Dn,mn=Se.allowHalf,Vn=mn===void 0?!1:mn,kn=Se.allowClear,Pe=kn===void 0?!0:kn,fe=Se.character,ce=fe===void 0?"\u2605":fe,he=Se.characterRender,ue=Se.disabled,le=Se.direction,Me=le===void 0?"ltr":le,Ge=Se.tabIndex,St=Ge===void 0?0:Ge,Ht=Se.autoFocus,Yt=Se.onHoverChange,Vt=Se.onChange,sn=Se.onFocus,it=Se.onBlur,Mt=Se.onKeyDown,Ot=Se.onMouseLeave,$t=(0,Ne.Z)(Se,Ce),bt=gt(),_n=(0,ot.Z)(bt,2),ct=_n[0],Dt=_n[1],En=Le.useRef(null),wn=function(){if(!ue){var Kt;(Kt=En.current)===null||Kt===void 0||Kt.focus()}};Le.useImperativeHandle(Bt,function(){return{focus:wn,blur:function(){if(!ue){var Kt;(Kt=En.current)===null||Kt===void 0||Kt.blur()}}}});var Bn=(0,mt.Z)(Gt||0,{value:qn}),Qn=(0,ot.Z)(Bn,2),wr=Qn[0],br=Qn[1],Sr=(0,mt.Z)(null),Yn=(0,ot.Z)(Sr,2),ir=Yn[0],Dr=Yn[1],ti=function(Kt,hn){var gn=Me==="rtl",Xn=Kt+1;if(Vn){var _r=ct(Kt),lr=vt(_r),mr=_r.clientWidth;(gn&&hn-lr>mr/2||!gn&&hn-lr<mr/2)&&(Xn-=.5)}return Xn},Ai=function(Kt){br(Kt),Vt==null||Vt(Kt)},tr=Le.useState(!1),Jr=(0,ot.Z)(tr,2),kt=Jr[0],vn=Jr[1],Rn=function(){vn(!0),sn==null||sn()},In=function(){vn(!1),it==null||it()},nr=Le.useState(null),gr=(0,ot.Z)(nr,2),sr=gr[0],Un=gr[1],qe=function(Kt,hn){var gn=ti(hn,Kt.pageX);gn!==ir&&(Un(gn),Dr(null)),Yt==null||Yt(gn)},wt=function(Kt){ue||(Un(null),Dr(null),Yt==null||Yt(void 0)),Kt&&(Ot==null||Ot(Kt))},Zt=function(Kt,hn){var gn=ti(hn,Kt.pageX),Xn=!1;Pe&&(Xn=gn===wr),wt(),Ai(Xn?0:gn),Dr(Xn?gn:null)},an=function(Kt){var hn=Kt.keyCode,gn=Me==="rtl",Xn=wr;hn===dt.Z.RIGHT&&Xn<Tt&&!gn?(Vn?Xn+=.5:Xn+=1,Ai(Xn),Kt.preventDefault()):hn===dt.Z.LEFT&&Xn>0&&!gn||hn===dt.Z.RIGHT&&Xn>0&&gn?(Vn?Xn-=.5:Xn-=1,Ai(Xn),Kt.preventDefault()):hn===dt.Z.LEFT&&Xn<Tt&&gn&&(Vn?Xn+=.5:Xn+=1,Ai(Xn),Kt.preventDefault()),Mt==null||Mt(Kt)};Le.useEffect(function(){Ht&&!ue&&wn()},[]);var ze=new Array(Tt).fill(0).map(function(tn,Kt){return Le.createElement(Be,{ref:Dt(Kt),index:Kt,count:Tt,disabled:ue,prefixCls:"".concat(ft,"-star"),allowHalf:Vn,value:sr===null?wr:sr,onClick:Zt,onHover:qe,key:tn||Kt,character:ce,characterRender:he,focused:kt})}),Ct=me()(ft,yt,(xn={},(0,De.Z)(xn,"".concat(ft,"-disabled"),ue),(0,De.Z)(xn,"".concat(ft,"-rtl"),Me==="rtl"),xn));return Le.createElement("ul",(0,ae.Z)({className:Ct,onMouseLeave:wt,tabIndex:ue?-1:St,onFocus:ue?null:Rn,onBlur:ue?null:In,onKeyDown:ue?null:an,ref:En,role:"radiogroup"},(0,pt.Z)($t,{aria:!0,data:!0,attr:!0})),ze)}var Ye=Le.forwardRef(Ae),Ve=Ye,At=se(53124),xt=se(83062),Lt=se(14747),nt=se(67968),qt=se(45503);const zt=Se=>{const{componentCls:Bt}=Se;return{[`${Bt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Se.marginXS},"> div":{transition:`all ${Se.motionDurationMid}, outline 0s`,"&:hover":{transform:Se.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Se.lineWidth}px dashed ${Se.starColor}`,transform:Se.starHoverScale}},"&-first, &-second":{color:Se.starBg,transition:`all ${Se.motionDurationMid}`,userSelect:"none",[Se.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Bt}-star-first, &-half ${Bt}-star-second`]:{opacity:1},[`&-half ${Bt}-star-first, &-full ${Bt}-star-second`]:{color:"inherit"}}}},bn=Se=>({[`&-rtl${Se.componentCls}`]:{direction:"rtl"}}),dn=Se=>{const{componentCls:Bt}=Se;return{[Bt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Lt.Wf)(Se)),{display:"inline-block",margin:0,padding:0,color:Se.starColor,fontSize:Se.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Bt} ${Bt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),zt(Se)),{[`+ ${Bt}-text`]:{display:"inline-block",marginInlineStart:Se.marginXS,fontSize:Se.fontSize}}),bn(Se))}};var Wn=(0,nt.Z)("Rate",Se=>{const Bt=(0,qt.TS)(Se,{});return[dn(Bt)]},Se=>({starColor:Se.yellow6,starSize:Se.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Se.colorFillContent})),rr=function(Se,Bt){var xn={};for(var Xt in Se)Object.prototype.hasOwnProperty.call(Se,Xt)&&Bt.indexOf(Xt)<0&&(xn[Xt]=Se[Xt]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Xt=Object.getOwnPropertySymbols(Se);ft<Xt.length;ft++)Bt.indexOf(Xt[ft])<0&&Object.prototype.propertyIsEnumerable.call(Se,Xt[ft])&&(xn[Xt[ft]]=Se[Xt[ft]]);return xn},$e=Le.forwardRef((Se,Bt)=>{const{prefixCls:xn,className:Xt,rootClassName:ft,style:yt,tooltips:Gt,character:qn=Le.createElement(Ee,null)}=Se,Dn=rr(Se,["prefixCls","className","rootClassName","style","tooltips","character"]),Tt=(ue,le)=>{let{index:Me}=le;return Gt?Le.createElement(xt.Z,{title:Gt[Me]},ue):ue},{getPrefixCls:mn,direction:Vn,rate:kn}=Le.useContext(At.E_),Pe=mn("rate",xn),[fe,ce]=Wn(Pe),he=Object.assign(Object.assign({},kn==null?void 0:kn.style),yt);return fe(Le.createElement(Ve,Object.assign({ref:Bt,character:qn,characterRender:Tt},Dn,{className:me()(Xt,ft,ce,kn==null?void 0:kn.className),style:he,prefixCls:Pe,direction:Vn})))})},11713:function(yn,fn,se){"use strict";se.d(fn,{default:function(){return We}});var ae=se(94184),Le=se.n(ae),_e=se(87462),rt=se(74902),ge=se(4942),ke=se(1413),Ee=se(97685),xe=se(45987),me=se(71002),De=se(67294);function ot(we){var Oe=De.useRef();Oe.current=we;var st=De.useCallback(function(){for(var tt,_t=arguments.length,rn=new Array(_t),Xe=0;Xe<_t;Xe++)rn[Xe]=arguments[Xe];return(tt=Oe.current)===null||tt===void 0?void 0:tt.call.apply(tt,[Oe].concat(rn))},[]);return st}function Ne(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var mt=Ne()?De.useLayoutEffect:De.useEffect,dt=mt,pt=function(Oe,st){var tt=De.useRef(!0);mt(function(){if(!tt.current)return Oe()},st),mt(function(){return tt.current=!1,function(){tt.current=!0}},[])};function Je(we){var Oe=De.useRef(!1),st=De.useState(we),tt=(0,Ee.Z)(st,2),_t=tt[0],rn=tt[1];De.useEffect(function(){return Oe.current=!1,function(){Oe.current=!0}},[]);function Xe(Qe,lt){lt&&Oe.current||rn(Qe)}return[_t,Xe]}function Be(we){return we!==void 0}function gt(we,Oe){var st=Oe||{},tt=st.defaultValue,_t=st.value,rn=st.onChange,Xe=st.postState,Qe=Je(function(){return Be(_t)?_t:Be(tt)?typeof tt=="function"?tt():tt:typeof we=="function"?we():we}),lt=(0,Ee.Z)(Qe,2),ut=lt[0],en=lt[1],cn=_t!==void 0?_t:ut,Wt=Xe?Xe(cn):cn,un=ot(rn),On=Je([cn]),ar=(0,Ee.Z)(On,2),Fn=ar[0],An=ar[1];pt(function(){var or=Fn[0];ut!==or&&un(ut,or)},[Fn]),pt(function(){Be(_t)||en(_t)},[_t]);var Zn=ot(function(or,Tr){en(or,Tr),An([cn],Tr)});return[Wt,Zn]}var nn={};function at(we,Oe){}function vt(we,Oe){}function Ce(){nn={}}function Ae(we,Oe,st){!Oe&&!nn[st]&&(we(!1,st),nn[st]=!0)}function Ye(we,Oe){Ae(at,we,Oe)}function Ve(we,Oe){Ae(vt,we,Oe)}var At=Ye,xt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var we=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(we)||/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(we==null?void 0:we.substr(0,4))},Lt={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(Oe){var st=Oe.keyCode;if(Oe.altKey&&!Oe.ctrlKey||Oe.metaKey||st>=Lt.F1&&st<=Lt.F12)return!1;switch(st){case Lt.ALT:case Lt.CAPS_LOCK:case Lt.CONTEXT_MENU:case Lt.CTRL:case Lt.DOWN:case Lt.END:case Lt.ESC:case Lt.HOME:case Lt.INSERT:case Lt.LEFT:case Lt.MAC_FF_META:case Lt.META:case Lt.NUMLOCK:case Lt.NUM_CENTER:case Lt.PAGE_DOWN:case Lt.PAGE_UP:case Lt.PAUSE:case Lt.PRINT_SCREEN:case Lt.RIGHT:case Lt.SHIFT:case Lt.UP:case Lt.WIN_KEY:case Lt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Oe){if(Oe>=Lt.ZERO&&Oe<=Lt.NINE||Oe>=Lt.NUM_ZERO&&Oe<=Lt.NUM_MULTIPLY||Oe>=Lt.A&&Oe<=Lt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Oe===0)return!0;switch(Oe){case Lt.SPACE:case Lt.QUESTION_MARK:case Lt.NUM_PLUS:case Lt.NUM_MINUS:case Lt.NUM_PERIOD:case Lt.NUM_DIVISION:case Lt.SEMICOLON:case Lt.DASH:case Lt.EQUALS:case Lt.COMMA:case Lt.PERIOD:case Lt.SLASH:case Lt.APOSTROPHE:case Lt.SINGLE_QUOTE:case Lt.OPEN_SQUARE_BRACKET:case Lt.BACKSLASH:case Lt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},nt=Lt,qt=se(47655);function zt(we,Oe,st){var tt=De.useRef({});return(!("value"in tt.current)||st(tt.current.condition,Oe))&&(tt.current.value=we(),tt.current.condition=Oe),tt.current.value}function bn(we,Oe){typeof we=="function"?we(Oe):(0,me.Z)(we)==="object"&&we&&"current"in we&&(we.current=Oe)}function dn(){for(var we=arguments.length,Oe=new Array(we),st=0;st<we;st++)Oe[st]=arguments[st];var tt=Oe.filter(function(_t){return _t});return tt.length<=1?tt[0]:function(_t){Oe.forEach(function(rn){bn(rn,_t)})}}function Wn(){for(var we=arguments.length,Oe=new Array(we),st=0;st<we;st++)Oe[st]=arguments[st];return zt(function(){return dn.apply(void 0,Oe)},Oe,function(tt,_t){return tt.length===_t.length&&tt.every(function(rn,Xe){return rn===_t[Xe]})})}function rr(we){var Oe,st,tt=isMemo(we)?we.type.type:we.type;return!(typeof tt=="function"&&!((Oe=tt.prototype)!==null&&Oe!==void 0&&Oe.render)||typeof we=="function"&&!((st=we.prototype)!==null&&st!==void 0&&st.render))}var ln=function(Oe){var st=Oe.className,tt=Oe.customizeIcon,_t=Oe.customizeIconProps,rn=Oe.onMouseDown,Xe=Oe.onClick,Qe=Oe.children,lt;return typeof tt=="function"?lt=tt(_t):lt=tt,De.createElement("span",{className:st,onMouseDown:function(en){en.preventDefault(),rn&&rn(en)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Xe,"aria-hidden":!0},lt!==void 0?lt:De.createElement("span",{className:Le()(st.split(/\s+/).map(function(ut){return"".concat(ut,"-icon")}))},Qe))},$e=ln;function Se(we,Oe,st,tt,_t){var rn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Xe=arguments.length>6?arguments[6]:void 0,Qe=arguments.length>7?arguments[7]:void 0,lt=De.useMemo(function(){if((0,me.Z)(tt)==="object")return tt.clearIcon;if(_t)return _t},[tt,_t]),ut=De.useMemo(function(){return!!(!rn&&tt&&(st.length||Xe)&&!(Qe==="combobox"&&Xe===""))},[tt,rn,st.length,Xe,Qe]);return{allowClear:ut,clearIcon:De.createElement($e,{className:"".concat(we,"-clear"),onMouseDown:Oe,customizeIcon:lt},"\xD7")}}var Bt=De.createContext(null);function xn(){return De.useContext(Bt)}function Xt(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Oe=De.useState(!1),st=(0,Ee.Z)(Oe,2),tt=st[0],_t=st[1],rn=De.useRef(null),Xe=function(){window.clearTimeout(rn.current)};De.useEffect(function(){return Xe},[]);var Qe=function(ut,en){Xe(),rn.current=window.setTimeout(function(){_t(ut),en&&en()},we)};return[tt,Qe,Xe]}function ft(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Oe=De.useRef(null),st=De.useRef(null);De.useEffect(function(){return function(){window.clearTimeout(st.current)}},[]);function tt(_t){(_t||Oe.current===null)&&(Oe.current=_t),window.clearTimeout(st.current),st.current=window.setTimeout(function(){Oe.current=null},we)}return[function(){return Oe.current},tt]}function yt(we,Oe,st,tt){var _t=De.useRef(null);_t.current={open:Oe,triggerOpen:st,customizedTrigger:tt},De.useEffect(function(){function rn(Xe){var Qe;if(!((Qe=_t.current)!==null&&Qe!==void 0&&Qe.customizedTrigger)){var lt=Xe.target;lt.shadowRoot&&Xe.composed&&(lt=Xe.composedPath()[0]||lt),_t.current.open&&we().filter(function(ut){return ut}).every(function(ut){return!ut.contains(lt)&&ut!==lt})&&_t.current.triggerOpen(!1)}}return window.addEventListener("mousedown",rn),function(){return window.removeEventListener("mousedown",rn)}},[])}var Gt=`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`,qn=`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`,Dn="".concat(Gt," ").concat(qn).split(/[\s\n]+/),Tt="aria-",mn="data-";function Vn(we,Oe){return we.indexOf(Oe)===0}function kn(we){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,st;Oe===!1?st={aria:!0,data:!0,attr:!0}:Oe===!0?st={aria:!0}:st=(0,ke.Z)({},Oe);var tt={};return Object.keys(we).forEach(function(_t){(st.aria&&(_t==="role"||Vn(_t,Tt))||st.data&&Vn(_t,mn)||st.attr&&Dn.includes(_t))&&(tt[_t]=we[_t])}),tt}var Pe=se(48555),fe=se(14075),ce=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],he=void 0;function ue(we,Oe){var st=we.prefixCls,tt=we.invalidate,_t=we.item,rn=we.renderItem,Xe=we.responsive,Qe=we.responsiveDisabled,lt=we.registerSize,ut=we.itemKey,en=we.className,cn=we.style,Wt=we.children,un=we.display,On=we.order,ar=we.component,Fn=ar===void 0?"div":ar,An=(0,xe.Z)(we,ce),Zn=Xe&&!un;function or(Fr){lt(ut,Fr)}De.useEffect(function(){return function(){or(null)}},[]);var Tr=rn&&_t!==he?rn(_t):Wt,pr;tt||(pr={opacity:Zn?0:1,height:Zn?0:he,overflowY:Zn?"hidden":he,order:Xe?On:he,pointerEvents:Zn?"none":he,position:Zn?"absolute":he});var zn={};Zn&&(zn["aria-hidden"]=!0);var Pr=De.createElement(Fn,(0,_e.Z)({className:Le()(!tt&&st,en),style:(0,ke.Z)((0,ke.Z)({},pr),cn)},zn,An,{ref:Oe}),Tr);return Xe&&(Pr=De.createElement(Pe.Z,{onResize:function(si){var pi=si.offsetWidth;or(pi)},disabled:Qe},Pr)),Pr}var le=De.forwardRef(ue);le.displayName="Item";var Me=le,Ge=se(77527),St=se(73935),Ht=se(96523);function Yt(we){if(typeof MessageChannel=="undefined")(0,Ht.Z)(we);else{var Oe=new MessageChannel;Oe.port1.onmessage=function(){return we()},Oe.port2.postMessage(void 0)}}function Vt(){var we=De.useRef(null),Oe=function(tt){we.current||(we.current=[],Yt(function(){(0,St.unstable_batchedUpdates)(function(){we.current.forEach(function(_t){_t()}),we.current=null})})),we.current.push(tt)};return Oe}function sn(we,Oe){var st=De.useState(Oe),tt=(0,Ee.Z)(st,2),_t=tt[0],rn=tt[1],Xe=(0,Ge.Z)(function(Qe){we(function(){rn(Qe)})});return[_t,Xe]}var it=De.createContext(null),Mt=["component"],Ot=["className"],$t=["className"],bt=function(Oe,st){var tt=De.useContext(it);if(!tt){var _t=Oe.component,rn=_t===void 0?"div":_t,Xe=(0,xe.Z)(Oe,Mt);return De.createElement(rn,(0,_e.Z)({},Xe,{ref:st}))}var Qe=tt.className,lt=(0,xe.Z)(tt,Ot),ut=Oe.className,en=(0,xe.Z)(Oe,$t);return De.createElement(it.Provider,{value:null},De.createElement(Me,(0,_e.Z)({ref:st,className:Le()(Qe,ut)},lt,en)))},_n=De.forwardRef(bt);_n.displayName="RawItem";var ct=_n,Dt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],En="responsive",wn="invalidate";function Bn(we){return"+ ".concat(we.length," ...")}function Qn(we,Oe){var st=we.prefixCls,tt=st===void 0?"rc-overflow":st,_t=we.data,rn=_t===void 0?[]:_t,Xe=we.renderItem,Qe=we.renderRawItem,lt=we.itemKey,ut=we.itemWidth,en=ut===void 0?10:ut,cn=we.ssr,Wt=we.style,un=we.className,On=we.maxCount,ar=we.renderRest,Fn=we.renderRawRest,An=we.suffix,Zn=we.component,or=Zn===void 0?"div":Zn,Tr=we.itemComponent,pr=we.onVisibleChange,zn=(0,xe.Z)(we,Dt),Pr=cn==="full",Fr=Vt(),si=sn(Fr,null),pi=(0,Ee.Z)(si,2),hi=pi[0],ki=pi[1],Ni=hi||0,mi=sn(Fr,new Map),bi=(0,Ee.Z)(mi,2),Yr=bi[0],ii=bi[1],xi=sn(Fr,0),Ii=(0,Ee.Z)(xi,2),ha=Ii[0],da=Ii[1],ji=sn(Fr,0),Xi=(0,Ee.Z)(ji,2),Ci=Xi[0],gi=Xi[1],la=sn(Fr,0),Ei=(0,Ee.Z)(la,2),Ur=Ei[0],vi=Ei[1],Ji=(0,De.useState)(null),Zi=(0,Ee.Z)(Ji,2),ua=Zi[0],Li=Zi[1],ga=(0,De.useState)(null),fa=(0,Ee.Z)(ga,2),sa=fa[0],ca=fa[1],ba=De.useMemo(function(){return sa===null&&Pr?Number.MAX_SAFE_INTEGER:sa||0},[sa,hi]),Ta=(0,De.useState)(!1),Ca=(0,Ee.Z)(Ta,2),Ma=Ca[0],Ha=Ca[1],Va="".concat(tt,"-item"),$a=Math.max(ha,Ci),Ra=On===En,xa=rn.length&&Ra,zi=On===wn,Yi=xa||typeof On=="number"&&rn.length>On,pa=(0,De.useMemo)(function(){var ma=rn;return xa?hi===null&&Pr?ma=rn:ma=rn.slice(0,Math.min(rn.length,Ni/en)):typeof On=="number"&&(ma=rn.slice(0,On)),ma},[rn,en,hi,On,xa]),Ea=(0,De.useMemo)(function(){return xa?rn.slice(ba+1):rn.slice(pa.length)},[rn,pa,xa,ba]),Ka=(0,De.useCallback)(function(ma,ni){var Vi;return typeof lt=="function"?lt(ma):(Vi=lt&&(ma==null?void 0:ma[lt]))!==null&&Vi!==void 0?Vi:ni},[lt]),eo=(0,De.useCallback)(Xe||function(ma){return ma},[Xe]);function uo(ma,ni,Vi){sa===ma&&(ni===void 0||ni===ua)||(ca(ma),Vi||(Ha(ma<rn.length-1),pr==null||pr(ma)),ni!==void 0&&Li(ni))}function Mo(ma,ni){ki(ni.clientWidth)}function ko(ma,ni){ii(function(Vi){var Gi=new Map(Vi);return ni===null?Gi.delete(ma):Gi.set(ma,ni),Gi})}function to(ma,ni){gi(ni),da(Ci)}function Pa(ma,ni){vi(ni)}function fi(ma){return Yr.get(Ka(pa[ma],ma))}(0,fe.Z)(function(){if(Ni&&typeof $a=="number"&&pa){var ma=Ur,ni=pa.length,Vi=ni-1;if(!ni){uo(0,null);return}for(var Gi=0;Gi<ni;Gi+=1){var $i=fi(Gi);if(Pr&&($i=$i||0),$i===void 0){uo(Gi-1,void 0,!0);break}if(ma+=$i,Vi===0&&ma<=Ni||Gi===Vi-1&&ma+fi(Vi)<=Ni){uo(Vi,null);break}else if(ma+$a>Ni){uo(Gi-1,ma-$i-Ur+Ci);break}}An&&fi(0)+Ur>Ni&&Li(null)}},[Ni,Yr,Ci,Ur,Ka,pa]);var Wi=Ma&&!!Ea.length,Aa={};ua!==null&&xa&&(Aa={position:"absolute",left:ua,top:0});var va={prefixCls:Va,responsive:xa,component:Tr,invalidate:zi},Ga=Qe?function(ma,ni){var Vi=Ka(ma,ni);return De.createElement(it.Provider,{key:Vi,value:(0,ke.Z)((0,ke.Z)({},va),{},{order:ni,item:ma,itemKey:Vi,registerSize:ko,display:ni<=ba})},Qe(ma,ni))}:function(ma,ni){var Vi=Ka(ma,ni);return De.createElement(Me,(0,_e.Z)({},va,{order:ni,key:Vi,item:ma,renderItem:eo,itemKey:Vi,registerSize:ko,display:ni<=ba}))},Za,To={order:Wi?ba:Number.MAX_SAFE_INTEGER,className:"".concat(Va,"-rest"),registerSize:to,display:Wi};if(Fn)Fn&&(Za=De.createElement(it.Provider,{value:(0,ke.Z)((0,ke.Z)({},va),To)},Fn(Ea)));else{var Ho=ar||Bn;Za=De.createElement(Me,(0,_e.Z)({},va,To),typeof Ho=="function"?Ho(Ea):Ho)}var as=De.createElement(or,(0,_e.Z)({className:Le()(!zi&&tt,un),style:Wt,ref:Oe},zn),pa.map(Ga),Yi?Za:null,An&&De.createElement(Me,(0,_e.Z)({},va,{responsive:Ra,responsiveDisabled:!xa,order:ba,className:"".concat(Va,"-suffix"),registerSize:Pa,display:!0,style:Aa}),An));return Ra&&(as=De.createElement(Pe.Z,{onResize:Mo,disabled:!xa},as)),as}var wr=De.forwardRef(Qn);wr.displayName="Overflow",wr.Item=ct,wr.RESPONSIVE=En,wr.INVALIDATE=wn;var br=wr,Sr=br,Yn=function(Oe,st){var tt,_t,rn=Oe.prefixCls,Xe=Oe.id,Qe=Oe.inputElement,lt=Oe.disabled,ut=Oe.tabIndex,en=Oe.autoFocus,cn=Oe.autoComplete,Wt=Oe.editable,un=Oe.activeDescendantId,On=Oe.value,ar=Oe.maxLength,Fn=Oe.onKeyDown,An=Oe.onMouseDown,Zn=Oe.onChange,or=Oe.onPaste,Tr=Oe.onCompositionStart,pr=Oe.onCompositionEnd,zn=Oe.open,Pr=Oe.attrs,Fr=Qe||De.createElement("input",null),si=Fr,pi=si.ref,hi=si.props,ki=hi.onKeyDown,Ni=hi.onChange,mi=hi.onMouseDown,bi=hi.onCompositionStart,Yr=hi.onCompositionEnd,ii=hi.style;return"maxLength"in Fr.props,Fr=De.cloneElement(Fr,(0,ke.Z)((0,ke.Z)((0,ke.Z)({type:"search"},hi),{},{id:Xe,ref:dn(st,pi),disabled:lt,tabIndex:ut,autoComplete:cn||"off",autoFocus:en,className:Le()("".concat(rn,"-selection-search-input"),(tt=Fr)===null||tt===void 0||(_t=tt.props)===null||_t===void 0?void 0:_t.className),role:"combobox","aria-label":"Search","aria-expanded":zn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Xe,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Xe,"_list"),"aria-activedescendant":zn?un:void 0},Pr),{},{value:Wt?On:"",maxLength:ar,readOnly:!Wt,unselectable:Wt?null:"on",style:(0,ke.Z)((0,ke.Z)({},ii),{},{opacity:Wt?null:0}),onKeyDown:function(Ii){Fn(Ii),ki&&ki(Ii)},onMouseDown:function(Ii){An(Ii),mi&&mi(Ii)},onChange:function(Ii){Zn(Ii),Ni&&Ni(Ii)},onCompositionStart:function(Ii){Tr(Ii),bi&&bi(Ii)},onCompositionEnd:function(Ii){pr(Ii),Yr&&Yr(Ii)},onPaste:or})),Fr},ir=De.forwardRef(Yn);ir.displayName="Input";var Dr=ir;function ti(we){return Array.isArray(we)?we:we!==void 0?[we]:[]}var Ai=typeof window!="undefined"&&window.document&&window.document.documentElement,tr=Ai;function Jr(we){return we!=null}function kt(we){return!we&&we!==0}function vn(we){return["string","number"].includes((0,me.Z)(we))}function Rn(we){var Oe=void 0;return we&&(vn(we.title)?Oe=we.title.toString():vn(we.label)&&(Oe=we.label.toString())),Oe}function In(we,Oe){tr?De.useLayoutEffect(we,Oe):De.useEffect(we,Oe)}function nr(we){var Oe;return(Oe=we.key)!==null&&Oe!==void 0?Oe:we.value}var gr=function(Oe){Oe.preventDefault(),Oe.stopPropagation()},sr=function(Oe){var st=Oe.id,tt=Oe.prefixCls,_t=Oe.values,rn=Oe.open,Xe=Oe.searchValue,Qe=Oe.autoClearSearchValue,lt=Oe.inputRef,ut=Oe.placeholder,en=Oe.disabled,cn=Oe.mode,Wt=Oe.showSearch,un=Oe.autoFocus,On=Oe.autoComplete,ar=Oe.activeDescendantId,Fn=Oe.tabIndex,An=Oe.removeIcon,Zn=Oe.maxTagCount,or=Oe.maxTagTextLength,Tr=Oe.maxTagPlaceholder,pr=Tr===void 0?function(Li){return"+ ".concat(Li.length," ...")}:Tr,zn=Oe.tagRender,Pr=Oe.onToggleOpen,Fr=Oe.onRemove,si=Oe.onInputChange,pi=Oe.onInputPaste,hi=Oe.onInputKeyDown,ki=Oe.onInputMouseDown,Ni=Oe.onInputCompositionStart,mi=Oe.onInputCompositionEnd,bi=De.useRef(null),Yr=(0,De.useState)(0),ii=(0,Ee.Z)(Yr,2),xi=ii[0],Ii=ii[1],ha=(0,De.useState)(!1),da=(0,Ee.Z)(ha,2),ji=da[0],Xi=da[1],Ci="".concat(tt,"-selection"),gi=rn||cn==="multiple"&&Qe===!1||cn==="tags"?Xe:"",la=cn==="tags"||cn==="multiple"&&Qe===!1||Wt&&(rn||ji);In(function(){Ii(bi.current.scrollWidth)},[gi]);function Ei(Li,ga,fa,sa,ca){return De.createElement("span",{className:Le()("".concat(Ci,"-item"),(0,ge.Z)({},"".concat(Ci,"-item-disabled"),fa)),title:Rn(Li)},De.createElement("span",{className:"".concat(Ci,"-item-content")},ga),sa&&De.createElement($e,{className:"".concat(Ci,"-item-remove"),onMouseDown:gr,onClick:ca,customizeIcon:An},"\xD7"))}function Ur(Li,ga,fa,sa,ca){var ba=function(Ca){gr(Ca),Pr(!rn)};return De.createElement("span",{onMouseDown:ba},zn({label:ga,value:Li,disabled:fa,closable:sa,onClose:ca}))}function vi(Li){var ga=Li.disabled,fa=Li.label,sa=Li.value,ca=!en&&!ga,ba=fa;if(typeof or=="number"&&(typeof fa=="string"||typeof fa=="number")){var Ta=String(ba);Ta.length>or&&(ba="".concat(Ta.slice(0,or),"..."))}var Ca=function(Ha){Ha&&Ha.stopPropagation(),Fr(Li)};return typeof zn=="function"?Ur(sa,ba,ga,ca,Ca):Ei(Li,ba,ga,ca,Ca)}function Ji(Li){var ga=typeof pr=="function"?pr(Li):pr;return Ei({title:ga},ga,!1)}var Zi=De.createElement("div",{className:"".concat(Ci,"-search"),style:{width:xi},onFocus:function(){Xi(!0)},onBlur:function(){Xi(!1)}},De.createElement(Dr,{ref:lt,open:rn,prefixCls:tt,id:st,inputElement:null,disabled:en,autoFocus:un,autoComplete:On,editable:la,activeDescendantId:ar,value:gi,onKeyDown:hi,onMouseDown:ki,onChange:si,onPaste:pi,onCompositionStart:Ni,onCompositionEnd:mi,tabIndex:Fn,attrs:kn(Oe,!0)}),De.createElement("span",{ref:bi,className:"".concat(Ci,"-search-mirror"),"aria-hidden":!0},gi,"\xA0")),ua=De.createElement(Sr,{prefixCls:"".concat(Ci,"-overflow"),data:_t,renderItem:vi,renderRest:Ji,suffix:Zi,itemKey:nr,maxCount:Zn});return De.createElement(De.Fragment,null,ua,!_t.length&&!gi&&De.createElement("span",{className:"".concat(Ci,"-placeholder")},ut))},Un=sr,qe=function(Oe){var st=Oe.inputElement,tt=Oe.prefixCls,_t=Oe.id,rn=Oe.inputRef,Xe=Oe.disabled,Qe=Oe.autoFocus,lt=Oe.autoComplete,ut=Oe.activeDescendantId,en=Oe.mode,cn=Oe.open,Wt=Oe.values,un=Oe.placeholder,On=Oe.tabIndex,ar=Oe.showSearch,Fn=Oe.searchValue,An=Oe.activeValue,Zn=Oe.maxLength,or=Oe.onInputKeyDown,Tr=Oe.onInputMouseDown,pr=Oe.onInputChange,zn=Oe.onInputPaste,Pr=Oe.onInputCompositionStart,Fr=Oe.onInputCompositionEnd,si=Oe.title,pi=De.useState(!1),hi=(0,Ee.Z)(pi,2),ki=hi[0],Ni=hi[1],mi=en==="combobox",bi=mi||ar,Yr=Wt[0],ii=Fn||"";mi&&An&&!ki&&(ii=An),De.useEffect(function(){mi&&Ni(!1)},[mi,An]);var xi=en!=="combobox"&&!cn&&!ar?!1:!!ii,Ii=si===void 0?Rn(Yr):si,ha=function(){if(Yr)return null;var ji=xi?{visibility:"hidden"}:void 0;return De.createElement("span",{className:"".concat(tt,"-selection-placeholder"),style:ji},un)};return De.createElement(De.Fragment,null,De.createElement("span",{className:"".concat(tt,"-selection-search")},De.createElement(Dr,{ref:rn,prefixCls:tt,id:_t,open:cn,inputElement:st,disabled:Xe,autoFocus:Qe,autoComplete:lt,editable:bi,activeDescendantId:ut,value:ii,onKeyDown:or,onMouseDown:Tr,onChange:function(ji){Ni(!0),pr(ji)},onPaste:zn,onCompositionStart:Pr,onCompositionEnd:Fr,tabIndex:On,attrs:kn(Oe,!0),maxLength:mi?Zn:void 0})),!mi&&Yr?De.createElement("span",{className:"".concat(tt,"-selection-item"),title:Ii,style:xi?{visibility:"hidden"}:void 0},Yr.label):null,ha())},wt=qe;function Zt(we){return![nt.ESC,nt.SHIFT,nt.BACKSPACE,nt.TAB,nt.WIN_KEY,nt.ALT,nt.META,nt.WIN_KEY_RIGHT,nt.CTRL,nt.SEMICOLON,nt.EQUALS,nt.CAPS_LOCK,nt.CONTEXT_MENU,nt.F1,nt.F2,nt.F3,nt.F4,nt.F5,nt.F6,nt.F7,nt.F8,nt.F9,nt.F10,nt.F11,nt.F12].includes(we)}var an=function(Oe,st){var tt=(0,De.useRef)(null),_t=(0,De.useRef)(!1),rn=Oe.prefixCls,Xe=Oe.open,Qe=Oe.mode,lt=Oe.showSearch,ut=Oe.tokenWithEnter,en=Oe.autoClearSearchValue,cn=Oe.onSearch,Wt=Oe.onSearchSubmit,un=Oe.onToggleOpen,On=Oe.onInputKeyDown,ar=Oe.domRef;De.useImperativeHandle(st,function(){return{focus:function(){tt.current.focus()},blur:function(){tt.current.blur()}}});var Fn=ft(0),An=(0,Ee.Z)(Fn,2),Zn=An[0],or=An[1],Tr=function(ii){var xi=ii.which;(xi===nt.UP||xi===nt.DOWN)&&ii.preventDefault(),On&&On(ii),xi===nt.ENTER&&Qe==="tags"&&!_t.current&&!Xe&&(Wt==null||Wt(ii.target.value)),Zt(xi)&&un(!0)},pr=function(){or(!0)},zn=(0,De.useRef)(null),Pr=function(ii){cn(ii,!0,_t.current)!==!1&&un(!0)},Fr=function(){_t.current=!0},si=function(ii){_t.current=!1,Qe!=="combobox"&&Pr(ii.target.value)},pi=function(ii){var xi=ii.target.value;if(ut&&zn.current&&/[\r\n]/.test(zn.current)){var Ii=zn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");xi=xi.replace(Ii,zn.current)}zn.current=null,Pr(xi)},hi=function(ii){var xi=ii.clipboardData,Ii=xi.getData("text");zn.current=Ii},ki=function(ii){var xi=ii.target;if(xi!==tt.current){var Ii=document.body.style.msTouchAction!==void 0;Ii?setTimeout(function(){tt.current.focus()}):tt.current.focus()}},Ni=function(ii){var xi=Zn();ii.target!==tt.current&&!xi&&Qe!=="combobox"&&ii.preventDefault(),(Qe!=="combobox"&&(!lt||!xi)||!Xe)&&(Xe&&en!==!1&&cn("",!0,!1),un())},mi={inputRef:tt,onInputKeyDown:Tr,onInputMouseDown:pr,onInputChange:pi,onInputPaste:hi,onInputCompositionStart:Fr,onInputCompositionEnd:si},bi=Qe==="multiple"||Qe==="tags"?De.createElement(Un,(0,_e.Z)({},Oe,mi)):De.createElement(wt,(0,_e.Z)({},Oe,mi));return De.createElement("div",{ref:ar,className:"".concat(rn,"-selector"),onClick:ki,onMouseDown:Ni},bi)},ze=De.forwardRef(an);ze.displayName="Selector";var Ct=ze,tn=se(62709),Kt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],hn=function(Oe){var st=Oe===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:st,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:st,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:st,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:st,adjustY:1},htmlRegion:"scroll"}}},gn=function(Oe,st){var tt=Oe.prefixCls,_t=Oe.disabled,rn=Oe.visible,Xe=Oe.children,Qe=Oe.popupElement,lt=Oe.animation,ut=Oe.transitionName,en=Oe.dropdownStyle,cn=Oe.dropdownClassName,Wt=Oe.direction,un=Wt===void 0?"ltr":Wt,On=Oe.placement,ar=Oe.builtinPlacements,Fn=Oe.dropdownMatchSelectWidth,An=Oe.dropdownRender,Zn=Oe.dropdownAlign,or=Oe.getPopupContainer,Tr=Oe.empty,pr=Oe.getTriggerDOMNode,zn=Oe.onPopupVisibleChange,Pr=Oe.onPopupMouseEnter,Fr=(0,xe.Z)(Oe,Kt),si="".concat(tt,"-dropdown"),pi=Qe;An&&(pi=An(Qe));var hi=De.useMemo(function(){return ar||hn(Fn)},[ar,Fn]),ki=lt?"".concat(si,"-").concat(lt):ut,Ni=typeof Fn=="number",mi=De.useMemo(function(){return Ni?null:Fn===!1?"minWidth":"width"},[Fn,Ni]),bi=en;Ni&&(bi=(0,ke.Z)((0,ke.Z)({},bi),{},{width:Fn}));var Yr=De.useRef(null);return De.useImperativeHandle(st,function(){return{getPopupElement:function(){return Yr.current}}}),De.createElement(tn.Z,(0,_e.Z)({},Fr,{showAction:zn?["click"]:[],hideAction:zn?["click"]:[],popupPlacement:On||(un==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:hi,prefixCls:si,popupTransitionName:ki,popup:De.createElement("div",{ref:Yr,onMouseEnter:Pr},pi),stretch:mi,popupAlign:Zn,popupVisible:rn,getPopupContainer:or,popupClassName:Le()(cn,(0,ge.Z)({},"".concat(si,"-empty"),Tr)),popupStyle:bi,getTriggerDOMNode:pr,onPopupVisibleChange:zn}),Xe)},Xn=De.forwardRef(gn);Xn.displayName="SelectTrigger";var _r=Xn,lr=se(84506);function mr(we,Oe){var st=we.key,tt;return"value"in we&&(tt=we.value),st!=null?st:tt!==void 0?tt:"rc-index-key-".concat(Oe)}function Or(we,Oe){var st=we||{},tt=st.label,_t=st.value,rn=st.options,Xe=st.groupLabel,Qe=tt||(Oe?"children":"label");return{label:Qe,value:_t||"value",options:rn||"options",groupLabel:Xe||Qe}}function Rr(we){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},st=Oe.fieldNames,tt=Oe.childrenAsData,_t=[],rn=Or(st,!1),Xe=rn.label,Qe=rn.value,lt=rn.options,ut=rn.groupLabel;function en(cn,Wt){cn.forEach(function(un){if(Wt||!(lt in un)){var On=un[Qe];_t.push({key:mr(un,_t.length),groupOption:Wt,data:un,label:un[Xe],value:On})}else{var ar=un[ut];ar===void 0&&tt&&(ar=un.label),_t.push({key:mr(un,_t.length),group:!0,data:un,label:ar}),en(un[lt],!0)}})}return en(we,!1),_t}function Zr(we){var Oe=(0,ke.Z)({},we);return"props"in Oe||Object.defineProperty(Oe,"props",{get:function(){return At(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Oe}}),Oe}function Kn(we,Oe){if(!Oe||!Oe.length)return null;var st=!1;function tt(rn,Xe){var Qe=(0,lr.Z)(Xe),lt=Qe[0],ut=Qe.slice(1);if(!lt)return[rn];var en=rn.split(lt);return st=st||en.length>1,en.reduce(function(cn,Wt){return[].concat((0,rt.Z)(cn),(0,rt.Z)(tt(Wt,ut)))},[]).filter(function(cn){return cn})}var _t=tt(we,Oe);return st?_t:null}var fr=["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"],Mn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Sn(we){return we==="tags"||we==="multiple"}var on=De.forwardRef(function(we,Oe){var st,tt,_t=we.id,rn=we.prefixCls,Xe=we.className,Qe=we.showSearch,lt=we.tagRender,ut=we.direction,en=we.omitDomProps,cn=we.displayValues,Wt=we.onDisplayValuesChange,un=we.emptyOptions,On=we.notFoundContent,ar=On===void 0?"Not Found":On,Fn=we.onClear,An=we.mode,Zn=we.disabled,or=we.loading,Tr=we.getInputElement,pr=we.getRawInputElement,zn=we.open,Pr=we.defaultOpen,Fr=we.onDropdownVisibleChange,si=we.activeValue,pi=we.onActiveValueChange,hi=we.activeDescendantId,ki=we.searchValue,Ni=we.autoClearSearchValue,mi=we.onSearch,bi=we.onSearchSplit,Yr=we.tokenSeparators,ii=we.allowClear,xi=we.suffixIcon,Ii=we.clearIcon,ha=we.OptionList,da=we.animation,ji=we.transitionName,Xi=we.dropdownStyle,Ci=we.dropdownClassName,gi=we.dropdownMatchSelectWidth,la=we.dropdownRender,Ei=we.dropdownAlign,Ur=we.placement,vi=we.builtinPlacements,Ji=we.getPopupContainer,Zi=we.showAction,ua=Zi===void 0?[]:Zi,Li=we.onFocus,ga=we.onBlur,fa=we.onKeyUp,sa=we.onKeyDown,ca=we.onMouseDown,ba=(0,xe.Z)(we,fr),Ta=Sn(An),Ca=(Qe!==void 0?Qe:Ta)||An==="combobox",Ma=(0,ke.Z)({},ba);Mn.forEach(function(_a){delete Ma[_a]}),en==null||en.forEach(function(_a){delete Ma[_a]});var Ha=De.useState(!1),Va=(0,Ee.Z)(Ha,2),$a=Va[0],Ra=Va[1];De.useEffect(function(){Ra(xt())},[]);var xa=De.useRef(null),zi=De.useRef(null),Yi=De.useRef(null),pa=De.useRef(null),Ea=De.useRef(null),Ka=Xt(),eo=(0,Ee.Z)(Ka,3),uo=eo[0],Mo=eo[1],ko=eo[2];De.useImperativeHandle(Oe,function(){var _a,ka;return{focus:(_a=pa.current)===null||_a===void 0?void 0:_a.focus,blur:(ka=pa.current)===null||ka===void 0?void 0:ka.blur,scrollTo:function(ts){var La;return(La=Ea.current)===null||La===void 0?void 0:La.scrollTo(ts)}}});var to=De.useMemo(function(){var _a;if(An!=="combobox")return ki;var ka=(_a=cn[0])===null||_a===void 0?void 0:_a.value;return typeof ka=="string"||typeof ka=="number"?String(ka):""},[ki,An,cn]),Pa=An==="combobox"&&typeof Tr=="function"&&Tr()||null,fi=typeof pr=="function"&&pr(),Wi=Wn(zi,fi==null||(st=fi.props)===null||st===void 0?void 0:st.ref),Aa=De.useState(!1),va=(0,Ee.Z)(Aa,2),Ga=va[0],Za=va[1];dt(function(){Za(!0)},[]);var To=gt(!1,{defaultValue:Pr,value:zn}),Ho=(0,Ee.Z)(To,2),as=Ho[0],ma=Ho[1],ni=Ga?as:!1,Vi=!ar&&un;(Zn||Vi&&ni&&An==="combobox")&&(ni=!1);var Gi=Vi?!1:ni,$i=De.useCallback(function(_a){var ka=_a!==void 0?_a:!ni;Zn||(ma(ka),ni!==ka&&(Fr==null||Fr(ka)))},[Zn,ni,ma,Fr]),Ya=De.useMemo(function(){return(Yr||[]).some(function(_a){return[`
|
|
|
`,`\r
|
|
|
`].includes(_a)})},[Yr]),qa=function(ka,Zo,ts){var La=!0,Ua=ka;pi==null||pi(null);var Wa=ts?null:Kn(ka,Yr);return An!=="combobox"&&Wa&&(Ua="",bi==null||bi(Wa),$i(!1),La=!1),mi&&to!==Ua&&mi(Ua,{source:Zo?"typing":"effect"}),La},Ko=function(ka){!ka||!ka.trim()||mi(ka,{source:"submit"})};De.useEffect(function(){!ni&&!Ta&&An!=="combobox"&&qa("",!1,!1)},[ni]),De.useEffect(function(){as&&Zn&&ma(!1),Zn&&Mo(!1)},[Zn]);var Vo=ft(),us=(0,Ee.Z)(Vo,2),Ba=us[0],Fo=us[1],ds=function(ka){var Zo=Ba(),ts=ka.which;if(ts===nt.ENTER&&(An!=="combobox"&&ka.preventDefault(),ni||$i(!0)),Fo(!!to),ts===nt.BACKSPACE&&!Zo&&Ta&&!to&&cn.length){for(var La=(0,rt.Z)(cn),Ua=null,Wa=La.length-1;Wa>=0;Wa-=1){var mo=La[Wa];if(!mo.disabled){La.splice(Wa,1),Ua=mo;break}}Ua&&Wt(La,{type:"remove",values:[Ua]})}for(var os=arguments.length,Ws=new Array(os>1?os-1:0),gs=1;gs<os;gs++)Ws[gs-1]=arguments[gs];if(ni&&Ea.current){var ql;(ql=Ea.current).onKeyDown.apply(ql,[ka].concat(Ws))}sa==null||sa.apply(void 0,[ka].concat(Ws))},ul=function(ka){for(var Zo=arguments.length,ts=new Array(Zo>1?Zo-1:0),La=1;La<Zo;La++)ts[La-1]=arguments[La];if(ni&&Ea.current){var Ua;(Ua=Ea.current).onKeyUp.apply(Ua,[ka].concat(ts))}fa==null||fa.apply(void 0,[ka].concat(ts))},Bs=function(ka){var Zo=cn.filter(function(ts){return ts!==ka});Wt(Zo,{type:"remove",values:[ka]})},ms=De.useRef(!1),Wo=function(){Mo(!0),Zn||(Li&&!ms.current&&Li.apply(void 0,arguments),ua.includes("focus")&&$i(!0)),ms.current=!0},Ds=function(){Mo(!1,function(){ms.current=!1,$i(!1)}),!Zn&&(to&&(An==="tags"?mi(to,{source:"submit"}):An==="multiple"&&mi("",{source:"blur"})),ga&&ga.apply(void 0,arguments))},Is=[];De.useEffect(function(){return function(){Is.forEach(function(_a){return clearTimeout(_a)}),Is.splice(0,Is.length)}},[]);var Js=function(ka){var Zo,ts=ka.target,La=(Zo=Yi.current)===null||Zo===void 0?void 0:Zo.getPopupElement();if(La&&La.contains(ts)){var Ua=setTimeout(function(){var Ws=Is.indexOf(Ua);if(Ws!==-1&&Is.splice(Ws,1),ko(),!$a&&!La.contains(document.activeElement)){var gs;(gs=pa.current)===null||gs===void 0||gs.focus()}});Is.push(Ua)}for(var Wa=arguments.length,mo=new Array(Wa>1?Wa-1:0),os=1;os<Wa;os++)mo[os-1]=arguments[os];ca==null||ca.apply(void 0,[ka].concat(mo))},fo=De.useState({}),Fa=(0,Ee.Z)(fo,2),no=Fa[1];function vo(){no({})}var bo;fi&&(bo=function(ka){$i(ka)}),yt(function(){var _a;return[xa.current,(_a=Yi.current)===null||_a===void 0?void 0:_a.getPopupElement()]},Gi,$i,!!fi);var jo=De.useMemo(function(){return(0,ke.Z)((0,ke.Z)({},we),{},{notFoundContent:ar,open:ni,triggerOpen:Gi,id:_t,showSearch:Ca,multiple:Ta,toggleOpen:$i})},[we,ar,Gi,ni,_t,Ca,Ta,$i]),So=!!xi||or,xs;So&&(xs=De.createElement($e,{className:Le()("".concat(rn,"-arrow"),(0,ge.Z)({},"".concat(rn,"-arrow-loading"),or)),customizeIcon:xi,customizeIconProps:{loading:or,searchValue:to,open:ni,focused:uo,showSearch:Ca}}));var Xl=function(){var ka;Fn==null||Fn(),(ka=pa.current)===null||ka===void 0||ka.focus(),Wt([],{type:"clear",values:cn}),qa("",!1,!1)},Ql=Se(rn,Xl,cn,ii,Ii,Zn,to,An),vc=Ql.allowClear,Xc=Ql.clearIcon,Ks=De.createElement(ha,{ref:Ea}),Ts=Le()(rn,Xe,(tt={},(0,ge.Z)(tt,"".concat(rn,"-focused"),uo),(0,ge.Z)(tt,"".concat(rn,"-multiple"),Ta),(0,ge.Z)(tt,"".concat(rn,"-single"),!Ta),(0,ge.Z)(tt,"".concat(rn,"-allow-clear"),ii),(0,ge.Z)(tt,"".concat(rn,"-show-arrow"),So),(0,ge.Z)(tt,"".concat(rn,"-disabled"),Zn),(0,ge.Z)(tt,"".concat(rn,"-loading"),or),(0,ge.Z)(tt,"".concat(rn,"-open"),ni),(0,ge.Z)(tt,"".concat(rn,"-customize-input"),Pa),(0,ge.Z)(tt,"".concat(rn,"-show-search"),Ca),tt)),yc=De.createElement(_r,{ref:Yi,disabled:Zn,prefixCls:rn,visible:Gi,popupElement:Ks,animation:da,transitionName:ji,dropdownStyle:Xi,dropdownClassName:Ci,direction:ut,dropdownMatchSelectWidth:gi,dropdownRender:la,dropdownAlign:Ei,placement:Ur,builtinPlacements:vi,getPopupContainer:Ji,empty:un,getTriggerDOMNode:function(){return zi.current},onPopupVisibleChange:bo,onPopupMouseEnter:vo},fi?De.cloneElement(fi,{ref:Wi}):De.createElement(Ct,(0,_e.Z)({},we,{domRef:zi,prefixCls:rn,inputElement:Pa,ref:pa,id:_t,showSearch:Ca,autoClearSearchValue:Ni,mode:An,activeDescendantId:hi,tagRender:lt,values:cn,open:ni,onToggleOpen:$i,activeValue:si,searchValue:to,onSearch:qa,onSearchSubmit:Ko,onRemove:Bs,tokenWithEnter:Ya}))),Jl;return fi?Jl=yc:Jl=De.createElement("div",(0,_e.Z)({className:Ts},Ma,{ref:xa,onMouseDown:Js,onKeyDown:ds,onKeyUp:ul,onFocus:Wo,onBlur:Ds}),uo&&!ni&&De.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(cn.map(function(_a){var ka=_a.label,Zo=_a.value;return["number","string"].includes((0,me.Z)(ka))?ka:Zo}).join(", "))),yc,xs,vc&&Xc),De.createElement(Bt.Provider,{value:jo},Jl)}),yr=on,Wr=function(we,Oe){var st=De.useRef({values:new Map,options:new Map}),tt=De.useMemo(function(){var rn=st.current,Xe=rn.values,Qe=rn.options,lt=we.map(function(cn){if(cn.label===void 0){var Wt;return(0,ke.Z)((0,ke.Z)({},cn),{},{label:(Wt=Xe.get(cn.value))===null||Wt===void 0?void 0:Wt.label})}return cn}),ut=new Map,en=new Map;return lt.forEach(function(cn){ut.set(cn.value,cn),en.set(cn.value,Oe.get(cn.value)||Qe.get(cn.value))}),st.current.values=ut,st.current.options=en,lt},[we,Oe]),_t=De.useCallback(function(rn){return Oe.get(rn)||st.current.options.get(rn)},[Oe]);return[tt,_t]};function Lr(we,Oe){return ti(we).join("").toUpperCase().includes(Oe)}var qr=function(we,Oe,st,tt,_t){return De.useMemo(function(){if(!st||tt===!1)return we;var rn=Oe.options,Xe=Oe.label,Qe=Oe.value,lt=[],ut=typeof tt=="function",en=st.toUpperCase(),cn=ut?tt:function(un,On){return _t?Lr(On[_t],en):On[rn]?Lr(On[Xe!=="children"?Xe:"label"],en):Lr(On[Qe],en)},Wt=ut?function(un){return Zr(un)}:function(un){return un};return we.forEach(function(un){if(un[rn]){var On=cn(st,Wt(un));if(On)lt.push(un);else{var ar=un[rn].filter(function(Fn){return cn(st,Wt(Fn))});ar.length&<.push((0,ke.Z)((0,ke.Z)({},un),{},(0,ge.Z)({},rn,ar)))}return}cn(st,Wt(un))&<.push(un)}),lt},[we,tt,_t,st,Oe])},Cn=0,Er=Ne();function vr(){var we;return Er?(we=Cn,Cn+=1):we="TEST_OR_SSR",we}function ta(we){var Oe=De.useState(),st=(0,Ee.Z)(Oe,2),tt=st[0],_t=st[1];return De.useEffect(function(){_t("rc_select_".concat(vr()))},[]),we||tt}function Hi(we){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},st=[];return De.Children.forEach(we,function(tt){tt==null&&!Oe.keepEmpty||(Array.isArray(tt)?st=st.concat(Hi(tt)):(0,qt.isFragment)(tt)&&tt.props?st=st.concat(Hi(tt.props.children,Oe)):st.push(tt))}),st}var Pi=["children","value"],Di=["children"];function qi(we){var Oe=we,st=Oe.key,tt=Oe.props,_t=tt.children,rn=tt.value,Xe=(0,xe.Z)(tt,Pi);return(0,ke.Z)({key:st,value:rn!==void 0?rn:st,children:_t},Xe)}function Ki(we){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Hi(we).map(function(st,tt){if(!De.isValidElement(st)||!st.type)return null;var _t=st,rn=_t.type.isSelectOptGroup,Xe=_t.key,Qe=_t.props,lt=Qe.children,ut=(0,xe.Z)(Qe,Di);return Oe||!rn?qi(st):(0,ke.Z)((0,ke.Z)({key:"__RC_SELECT_GRP__".concat(Xe===null?tt:Xe,"__"),label:Xe},ut),{},{options:Ki(lt)})}).filter(function(st){return st})}function di(we,Oe,st,tt,_t){return De.useMemo(function(){var rn=we,Xe=!we;Xe&&(rn=Ki(Oe));var Qe=new Map,lt=new Map,ut=function(Wt,un,On){On&&typeof On=="string"&&Wt.set(un[On],un)};function en(cn){for(var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,un=0;un<cn.length;un+=1){var On=cn[un];!On[st.options]||Wt?(Qe.set(On[st.value],On),ut(lt,On,st.label),ut(lt,On,tt),ut(lt,On,_t)):en(On[st.options],!0)}}return en(rn),{options:rn,valueOptions:Qe,labelOptions:lt}},[we,Oe,st,tt,_t])}function na(we){var Oe=De.useRef();Oe.current=we;var st=De.useCallback(function(){return Oe.current.apply(Oe,arguments)},[]);return st}var aa=function(){return null};aa.isSelectOptGroup=!0;var _i=aa,Mi=function(){return null};Mi.isSelectOption=!0;var Sa=Mi;function Si(we,Oe){var st=(0,ke.Z)({},we);return Array.isArray(Oe)&&Oe.forEach(function(tt){delete st[tt]}),st}var $r=se(73299),Ft=De.createContext(null),Pt=Ft;function pn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Pn=["disabled","title","children","style","className"];function cr(we){return typeof we=="string"||typeof we=="number"}var Gr=function(Oe,st){var tt=xn(),_t=tt.prefixCls,rn=tt.id,Xe=tt.open,Qe=tt.multiple,lt=tt.mode,ut=tt.searchValue,en=tt.toggleOpen,cn=tt.notFoundContent,Wt=tt.onPopupScroll,un=De.useContext(Pt),On=un.flattenOptions,ar=un.onActiveValue,Fn=un.defaultActiveFirstOption,An=un.onSelect,Zn=un.menuItemSelectedIcon,or=un.rawValues,Tr=un.fieldNames,pr=un.virtual,zn=un.direction,Pr=un.listHeight,Fr=un.listItemHeight,si="".concat(_t,"-item"),pi=zt(function(){return On},[Xe,On],function(Ei,Ur){return Ur[0]&&Ei[1]!==Ur[1]}),hi=De.useRef(null),ki=function(Ur){Ur.preventDefault()},Ni=function(Ur){hi.current&&hi.current.scrollTo(typeof Ur=="number"?{index:Ur}:Ur)},mi=function(Ur){for(var vi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ji=pi.length,Zi=0;Zi<Ji;Zi+=1){var ua=(Ur+Zi*vi+Ji)%Ji,Li=pi[ua],ga=Li.group,fa=Li.data;if(!ga&&!fa.disabled)return ua}return-1},bi=De.useState(function(){return mi(0)}),Yr=(0,Ee.Z)(bi,2),ii=Yr[0],xi=Yr[1],Ii=function(Ur){var vi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xi(Ur);var Ji={source:vi?"keyboard":"mouse"},Zi=pi[Ur];if(!Zi){ar(null,-1,Ji);return}ar(Zi.value,Ur,Ji)};(0,De.useEffect)(function(){Ii(Fn!==!1?mi(0):-1)},[pi.length,ut]);var ha=De.useCallback(function(Ei){return or.has(Ei)&<!=="combobox"},[lt,(0,rt.Z)(or).toString(),or.size]);(0,De.useEffect)(function(){var Ei=setTimeout(function(){if(!Qe&&Xe&&or.size===1){var vi=Array.from(or)[0],Ji=pi.findIndex(function(Zi){var ua=Zi.data;return ua.value===vi});Ji!==-1&&(Ii(Ji),Ni(Ji))}});if(Xe){var Ur;(Ur=hi.current)===null||Ur===void 0||Ur.scrollTo(void 0)}return function(){return clearTimeout(Ei)}},[Xe,ut,On.length]);var da=function(Ur){Ur!==void 0&&An(Ur,{selected:!or.has(Ur)}),Qe||en(!1)};if(De.useImperativeHandle(st,function(){return{onKeyDown:function(Ur){var vi=Ur.which,Ji=Ur.ctrlKey;switch(vi){case nt.N:case nt.P:case nt.UP:case nt.DOWN:{var Zi=0;if(vi===nt.UP?Zi=-1:vi===nt.DOWN?Zi=1:pn()&&Ji&&(vi===nt.N?Zi=1:vi===nt.P&&(Zi=-1)),Zi!==0){var ua=mi(ii+Zi,Zi);Ni(ua),Ii(ua,!0)}break}case nt.ENTER:{var Li=pi[ii];Li&&!Li.data.disabled?da(Li.value):da(void 0),Xe&&Ur.preventDefault();break}case nt.ESC:en(!1),Xe&&Ur.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ur){Ni(Ur)}}}),pi.length===0)return De.createElement("div",{role:"listbox",id:"".concat(rn,"_list"),className:"".concat(si,"-empty"),onMouseDown:ki},cn);var ji=Object.keys(Tr).map(function(Ei){return Tr[Ei]}),Xi=function(Ur){return Ur.label};function Ci(Ei,Ur){var vi=Ei.group;return{role:vi?"presentation":"option",id:"".concat(rn,"_list_").concat(Ur)}}var gi=function(Ur){var vi=pi[Ur];if(!vi)return null;var Ji=vi.data||{},Zi=Ji.value,ua=vi.group,Li=kn(Ji,!0),ga=Xi(vi);return vi?De.createElement("div",(0,_e.Z)({"aria-label":typeof ga=="string"&&!ua?ga:null},Li,{key:Ur},Ci(vi,Ur),{"aria-selected":ha(Zi)}),Zi):null},la={role:"listbox",id:"".concat(rn,"_list")};return De.createElement(De.Fragment,null,pr&&De.createElement("div",(0,_e.Z)({},la,{style:{height:0,width:0,overflow:"hidden"}}),gi(ii-1),gi(ii),gi(ii+1)),De.createElement($r.Z,{itemKey:"key",ref:hi,data:pi,height:Pr,itemHeight:Fr,fullHeight:!1,onMouseDown:ki,onScroll:Wt,virtual:pr,direction:zn,innerProps:pr?null:la},function(Ei,Ur){var vi,Ji=Ei.group,Zi=Ei.groupOption,ua=Ei.data,Li=Ei.label,ga=Ei.value,fa=ua.key;if(Ji){var sa,ca=(sa=ua.title)!==null&&sa!==void 0?sa:cr(Li)?Li.toString():void 0;return De.createElement("div",{className:Le()(si,"".concat(si,"-group")),title:ca},Li!==void 0?Li:fa)}var ba=ua.disabled,Ta=ua.title,Ca=ua.children,Ma=ua.style,Ha=ua.className,Va=(0,xe.Z)(ua,Pn),$a=Si(Va,ji),Ra=ha(ga),xa="".concat(si,"-option"),zi=Le()(si,xa,Ha,(vi={},(0,ge.Z)(vi,"".concat(xa,"-grouped"),Zi),(0,ge.Z)(vi,"".concat(xa,"-active"),ii===Ur&&!ba),(0,ge.Z)(vi,"".concat(xa,"-disabled"),ba),(0,ge.Z)(vi,"".concat(xa,"-selected"),Ra),vi)),Yi=Xi(Ei),pa=!Zn||typeof Zn=="function"||Ra,Ea=typeof Yi=="number"?Yi:Yi||ga,Ka=cr(Ea)?Ea.toString():void 0;return Ta!==void 0&&(Ka=Ta),De.createElement("div",(0,_e.Z)({},kn($a),pr?{}:Ci(Ei,Ur),{"aria-selected":Ra,className:zi,title:Ka,onMouseMove:function(){ii===Ur||ba||Ii(Ur)},onClick:function(){ba||da(ga)},style:Ma}),De.createElement("div",{className:"".concat(xa,"-content")},Ea),De.isValidElement(Zn)||Ra,pa&&De.createElement($e,{className:"".concat(si,"-option-state"),customizeIcon:Zn,customizeIconProps:{isSelected:Ra}},Ra?"\u2713":null))}))},Xr=De.forwardRef(Gr);Xr.displayName="OptionList";var oi=Xr;function jt(we){var Oe=we.mode,st=we.options,tt=we.children,_t=we.backfill,rn=we.allowClear,Xe=we.placeholder,Qe=we.getInputElement,lt=we.showSearch,ut=we.onSearch,en=we.defaultOpen,cn=we.autoFocus,Wt=we.labelInValue,un=we.value,On=we.inputValue,ar=we.optionLabelProp,Fn=isMultiple(Oe),An=lt!==void 0?lt:Fn||Oe==="combobox",Zn=st||convertChildrenToData(tt);if(warning(Oe!=="tags"||Zn.every(function(zn){return!zn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Oe==="tags"||Oe==="combobox"){var or=Zn.some(function(zn){return zn.options?zn.options.some(function(Pr){return typeof("value"in Pr?Pr.value:Pr.key)=="number"}):typeof("value"in zn?zn.value:zn.key)=="number"});warning(!or,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Oe!=="combobox"||!ar,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Oe==="combobox"||!_t,"`backfill` only works with `combobox` mode."),warning(Oe==="combobox"||!Qe,"`getInputElement` only work with `combobox` mode."),noteOnce(Oe!=="combobox"||!Qe||!rn||!Xe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ut&&!An&&Oe!=="combobox"&&Oe!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!en||cn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),un!=null){var Tr=toArray(un);warning(!Wt||Tr.every(function(zn){return _typeof(zn)==="object"&&("key"in zn||"value"in zn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Fn||Array.isArray(un),"`value` should be array when `mode` is `multiple` or `tags`")}if(tt){var pr=null;toNodeArray(tt).some(function(zn){if(!React.isValidElement(zn)||!zn.type)return!1;var Pr=zn,Fr=Pr.type;if(Fr.isSelectOption)return!1;if(Fr.isSelectOptGroup){var si=toNodeArray(zn.props.children).every(function(pi){return!React.isValidElement(pi)||!zn.type||pi.type.isSelectOption?!0:(pr=pi.type,!1)});return!si}return pr=Fr,!0}),pr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(pr.displayName||pr.name||pr,"`.")),warning(On===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ur(we,Oe){if(we){var st=function tt(_t){for(var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xe=0;Xe<_t.length;Xe++){var Qe=_t[Xe];if(Qe[Oe==null?void 0:Oe.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!rn&&Array.isArray(Qe[Oe==null?void 0:Oe.options])&&tt(Qe[Oe==null?void 0:Oe.options],!0))break}};st(we)}}var li=null,ci=["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"],Oi=["inputValue"];function ra(we){return!we||(0,me.Z)(we)!=="object"}var hr=De.forwardRef(function(we,Oe){var st=we.id,tt=we.mode,_t=we.prefixCls,rn=_t===void 0?"rc-select":_t,Xe=we.backfill,Qe=we.fieldNames,lt=we.inputValue,ut=we.searchValue,en=we.onSearch,cn=we.autoClearSearchValue,Wt=cn===void 0?!0:cn,un=we.onSelect,On=we.onDeselect,ar=we.dropdownMatchSelectWidth,Fn=ar===void 0?!0:ar,An=we.filterOption,Zn=we.filterSort,or=we.optionFilterProp,Tr=we.optionLabelProp,pr=we.options,zn=we.children,Pr=we.defaultActiveFirstOption,Fr=we.menuItemSelectedIcon,si=we.virtual,pi=we.direction,hi=we.listHeight,ki=hi===void 0?200:hi,Ni=we.listItemHeight,mi=Ni===void 0?20:Ni,bi=we.value,Yr=we.defaultValue,ii=we.labelInValue,xi=we.onChange,Ii=(0,xe.Z)(we,ci),ha=ta(st),da=Sn(tt),ji=!!(!pr&&zn),Xi=De.useMemo(function(){return An===void 0&&tt==="combobox"?!1:An},[An,tt]),Ci=De.useMemo(function(){return Or(Qe,ji)},[JSON.stringify(Qe),ji]),gi=gt("",{value:ut!==void 0?ut:lt,postState:function(Vi){return Vi||""}}),la=(0,Ee.Z)(gi,2),Ei=la[0],Ur=la[1],vi=di(pr,zn,Ci,or,Tr),Ji=vi.valueOptions,Zi=vi.labelOptions,ua=vi.options,Li=De.useCallback(function(ni){var Vi=ti(ni);return Vi.map(function(Gi){var $i,Ya,qa,Ko,Vo;if(ra(Gi))$i=Gi;else{var us;qa=Gi.key,Ya=Gi.label,$i=(us=Gi.value)!==null&&us!==void 0?us:qa}var Ba=Ji.get($i);if(Ba){var Fo;if(Ya===void 0&&(Ya=Ba==null?void 0:Ba[Tr||Ci.label]),qa===void 0&&(qa=(Fo=Ba==null?void 0:Ba.key)!==null&&Fo!==void 0?Fo:$i),Ko=Ba==null?void 0:Ba.disabled,Vo=Ba==null?void 0:Ba.title,0)var ds}return{label:Ya,value:$i,key:qa,disabled:Ko,title:Vo}})},[Ci,Tr,Ji]),ga=gt(Yr,{value:bi}),fa=(0,Ee.Z)(ga,2),sa=fa[0],ca=fa[1],ba=De.useMemo(function(){var ni,Vi=Li(sa);return tt==="combobox"&&kt((ni=Vi[0])===null||ni===void 0?void 0:ni.value)?[]:Vi},[sa,Li,tt]),Ta=Wr(ba,Ji),Ca=(0,Ee.Z)(Ta,2),Ma=Ca[0],Ha=Ca[1],Va=De.useMemo(function(){if(!tt&&Ma.length===1){var ni=Ma[0];if(ni.value===null&&(ni.label===null||ni.label===void 0))return[]}return Ma.map(function(Vi){var Gi;return(0,ke.Z)((0,ke.Z)({},Vi),{},{label:(Gi=Vi.label)!==null&&Gi!==void 0?Gi:Vi.value})})},[tt,Ma]),$a=De.useMemo(function(){return new Set(Ma.map(function(ni){return ni.value}))},[Ma]);De.useEffect(function(){if(tt==="combobox"){var ni,Vi=(ni=Ma[0])===null||ni===void 0?void 0:ni.value;Ur(Jr(Vi)?String(Vi):"")}},[Ma]);var Ra=na(function(ni,Vi){var Gi,$i=Vi!=null?Vi:ni;return Gi={},(0,ge.Z)(Gi,Ci.value,ni),(0,ge.Z)(Gi,Ci.label,$i),Gi}),xa=De.useMemo(function(){if(tt!=="tags")return ua;var ni=(0,rt.Z)(ua),Vi=function($i){return Ji.has($i)};return(0,rt.Z)(Ma).sort(function(Gi,$i){return Gi.value<$i.value?-1:1}).forEach(function(Gi){var $i=Gi.value;Vi($i)||ni.push(Ra($i,Gi.label))}),ni},[Ra,ua,Ji,Ma,tt]),zi=qr(xa,Ci,Ei,Xi,or),Yi=De.useMemo(function(){return tt!=="tags"||!Ei||zi.some(function(ni){return ni[or||"value"]===Ei})||zi.some(function(ni){return ni[Ci.value]===Ei})?zi:[Ra(Ei)].concat((0,rt.Z)(zi))},[Ra,or,tt,zi,Ei,Ci]),pa=De.useMemo(function(){return Zn?(0,rt.Z)(Yi).sort(function(ni,Vi){return Zn(ni,Vi)}):Yi},[Yi,Zn]),Ea=De.useMemo(function(){return Rr(pa,{fieldNames:Ci,childrenAsData:ji})},[pa,Ci,ji]),Ka=function(Vi){var Gi=Li(Vi);if(ca(Gi),xi&&(Gi.length!==Ma.length||Gi.some(function(qa,Ko){var Vo;return((Vo=Ma[Ko])===null||Vo===void 0?void 0:Vo.value)!==(qa==null?void 0:qa.value)}))){var $i=ii?Gi:Gi.map(function(qa){return qa.value}),Ya=Gi.map(function(qa){return Zr(Ha(qa.value))});xi(da?$i:$i[0],da?Ya:Ya[0])}},eo=De.useState(null),uo=(0,Ee.Z)(eo,2),Mo=uo[0],ko=uo[1],to=De.useState(0),Pa=(0,Ee.Z)(to,2),fi=Pa[0],Wi=Pa[1],Aa=Pr!==void 0?Pr:tt!=="combobox",va=De.useCallback(function(ni,Vi){var Gi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$i=Gi.source,Ya=$i===void 0?"keyboard":$i;Wi(Vi),Xe&&tt==="combobox"&&ni!==null&&Ya==="keyboard"&&ko(String(ni))},[Xe,tt]),Ga=function(Vi,Gi,$i){var Ya=function(){var ms,Wo=Ha(Vi);return[ii?{label:Wo==null?void 0:Wo[Ci.label],value:Vi,key:(ms=Wo==null?void 0:Wo.key)!==null&&ms!==void 0?ms:Vi}:Vi,Zr(Wo)]};if(Gi&&un){var qa=Ya(),Ko=(0,Ee.Z)(qa,2),Vo=Ko[0],us=Ko[1];un(Vo,us)}else if(!Gi&&On&&$i!=="clear"){var Ba=Ya(),Fo=(0,Ee.Z)(Ba,2),ds=Fo[0],ul=Fo[1];On(ds,ul)}},Za=na(function(ni,Vi){var Gi,$i=da?Vi.selected:!0;$i?Gi=da?[].concat((0,rt.Z)(Ma),[ni]):[ni]:Gi=Ma.filter(function(Ya){return Ya.value!==ni}),Ka(Gi),Ga(ni,$i),tt==="combobox"?ko(""):(!Sn||Wt)&&(Ur(""),ko(""))}),To=function(Vi,Gi){Ka(Vi);var $i=Gi.type,Ya=Gi.values;($i==="remove"||$i==="clear")&&Ya.forEach(function(qa){Ga(qa.value,!1,$i)})},Ho=function(Vi,Gi){if(Ur(Vi),ko(null),Gi.source==="submit"){var $i=(Vi||"").trim();if($i){var Ya=Array.from(new Set([].concat((0,rt.Z)($a),[$i])));Ka(Ya),Ga($i,!0),Ur("")}return}Gi.source!=="blur"&&(tt==="combobox"&&Ka(Vi),en==null||en(Vi))},as=function(Vi){var Gi=Vi;tt!=="tags"&&(Gi=Vi.map(function(Ya){var qa=Zi.get(Ya);return qa==null?void 0:qa.value}).filter(function(Ya){return Ya!==void 0}));var $i=Array.from(new Set([].concat((0,rt.Z)($a),(0,rt.Z)(Gi))));Ka($i),$i.forEach(function(Ya){Ga(Ya,!0)})},ma=De.useMemo(function(){var ni=si!==!1&&Fn!==!1;return(0,ke.Z)((0,ke.Z)({},vi),{},{flattenOptions:Ea,onActiveValue:va,defaultActiveFirstOption:Aa,onSelect:Za,menuItemSelectedIcon:Fr,rawValues:$a,fieldNames:Ci,virtual:ni,direction:pi,listHeight:ki,listItemHeight:mi,childrenAsData:ji})},[vi,Ea,va,Aa,Za,Fr,$a,Ci,si,Fn,ki,mi,ji]);return De.createElement(Pt.Provider,{value:ma},De.createElement(yr,(0,_e.Z)({},Ii,{id:ha,prefixCls:rn,ref:Oe,omitDomProps:Oi,mode:tt,displayValues:Va,onDisplayValuesChange:To,direction:pi,searchValue:Ei,onSearch:Ho,autoClearSearchValue:Wt,onSearchSplit:as,dropdownMatchSelectWidth:Fn,OptionList:oi,emptyOptions:!Ea.length,activeValue:Mo,activeDescendantId:"".concat(ha,"_list_").concat(fi)})))}),Qi=hr;Qi.Option=Sa,Qi.OptGroup=_i;var Re=Qi,Ze=Re,je=se(10366),et=se(8745),Et=se(33603),It=se(9708),Ut=se(53124),Ln=se(98866),Nn=se(88258),Mr=se(98675),Hr=se(65223),xr=se(4173),Gn=se(87244),jn=se(13458),$n=se(78642),dr=se(46163),Kr=function(we,Oe){var st={};for(var tt in we)Object.prototype.hasOwnProperty.call(we,tt)&&Oe.indexOf(tt)<0&&(st[tt]=we[tt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,tt=Object.getOwnPropertySymbols(we);_t<tt.length;_t++)Oe.indexOf(tt[_t])<0&&Object.prototype.propertyIsEnumerable.call(we,tt[_t])&&(st[tt[_t]]=we[tt[_t]]);return st};const kr="SECRET_COMBOBOX_MODE_DO_NOT_USE",Cr=(we,Oe)=>{var st,{prefixCls:tt,bordered:_t=!0,className:rn,rootClassName:Xe,getPopupContainer:Qe,popupClassName:lt,dropdownClassName:ut,listHeight:en=256,placement:cn,listItemHeight:Wt=24,size:un,disabled:On,notFoundContent:ar,status:Fn,builtinPlacements:An,dropdownMatchSelectWidth:Zn,popupMatchSelectWidth:or,direction:Tr,style:pr,allowClear:zn}=we,Pr=Kr(we,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Fr,getPrefixCls:si,renderEmpty:pi,direction:hi,virtual:ki,popupMatchSelectWidth:Ni,popupOverflow:mi,select:bi}=De.useContext(Ut.E_),Yr=si("select",tt),ii=si(),xi=Tr!=null?Tr:hi,{compactSize:Ii,compactItemClassnames:ha}=(0,xr.ri)(Yr,xi),[da,ji]=(0,Gn.Z)(Yr),Xi=De.useMemo(()=>{const{mode:xa}=Pr;if(xa!=="combobox")return xa===kr?"combobox":xa},[Pr.mode]),Ci=Xi==="multiple"||Xi==="tags",gi=(0,$n.Z)(Pr.suffixIcon,Pr.showArrow),la=(st=or!=null?or:Zn)!==null&&st!==void 0?st:Ni,{status:Ei,hasFeedback:Ur,isFormItemInput:vi,feedbackIcon:Ji}=De.useContext(Hr.aM),Zi=(0,It.F)(Ei,Fn);let ua;ar!==void 0?ua=ar:Xi==="combobox"?ua=null:ua=(pi==null?void 0:pi("Select"))||De.createElement(Nn.Z,{componentName:"Select"});const{suffixIcon:Li,itemIcon:ga,removeIcon:fa,clearIcon:sa}=(0,dr.Z)(Object.assign(Object.assign({},Pr),{multiple:Ci,hasFeedback:Ur,feedbackIcon:Ji,showSuffixIcon:gi,prefixCls:Yr,showArrow:Pr.showArrow,componentName:"Select"})),ca=zn===!0?{clearIcon:sa}:zn,ba=(0,je.Z)(Pr,["suffixIcon","itemIcon"]),Ta=Le()(lt||ut,{[`${Yr}-dropdown-${xi}`]:xi==="rtl"},Xe,ji),Ca=(0,Mr.Z)(xa=>{var zi;return(zi=un!=null?un:Ii)!==null&&zi!==void 0?zi:xa}),Ma=De.useContext(Ln.Z),Ha=On!=null?On:Ma,Va=Le()({[`${Yr}-lg`]:Ca==="large",[`${Yr}-sm`]:Ca==="small",[`${Yr}-rtl`]:xi==="rtl",[`${Yr}-borderless`]:!_t,[`${Yr}-in-form-item`]:vi},(0,It.Z)(Yr,Zi,Ur),ha,bi==null?void 0:bi.className,rn,Xe,ji),$a=De.useMemo(()=>cn!==void 0?cn:xi==="rtl"?"bottomRight":"bottomLeft",[cn,xi]),Ra=(0,jn.Z)(An,mi);return da(De.createElement(Ze,Object.assign({ref:Oe,virtual:ki,showSearch:bi==null?void 0:bi.showSearch},ba,{style:Object.assign(Object.assign({},bi==null?void 0:bi.style),pr),dropdownMatchSelectWidth:la,builtinPlacements:Ra,transitionName:(0,Et.m)(ii,"slide-up",Pr.transitionName),listHeight:en,listItemHeight:Wt,mode:Xi,prefixCls:Yr,placement:$a,direction:xi,suffixIcon:Li,menuItemSelectedIcon:ga,removeIcon:fa,allowClear:ca,notFoundContent:ua,className:Va,getPopupContainer:Qe||Fr,dropdownClassName:Ta,disabled:Ha})))},Ir=De.forwardRef(Cr),Ue=(0,et.Z)(Ir);Ir.SECRET_COMBOBOX_MODE_DO_NOT_USE=kr,Ir.Option=Sa,Ir.OptGroup=_i,Ir._InternalPanelDoNotUseOrYouWillBeFired=Ue;var We=Ir},87244:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Ce}});var ae=se(14747),Le=se(80110),_e=se(45503),rt=se(67968),ge=se(67771),ke=se(33297);const Ee=Ae=>{const{optionHeight:Ye,optionFontSize:Ve,optionLineHeight:At,optionPadding:xt}=Ae;return{position:"relative",display:"block",minHeight:Ye,padding:xt,color:Ae.colorText,fontWeight:"normal",fontSize:Ve,lineHeight:At,boxSizing:"border-box"}};var me=Ae=>{const{antCls:Ye,componentCls:Ve}=Ae,At=`${Ve}-item`,xt=`&${Ye}-slide-up-enter${Ye}-slide-up-enter-active`,Lt=`&${Ye}-slide-up-appear${Ye}-slide-up-appear-active`,nt=`&${Ye}-slide-up-leave${Ye}-slide-up-leave-active`,qt=`${Ve}-dropdown-placement-`;return[{[`${Ve}-dropdown`]:Object.assign(Object.assign({},(0,ae.Wf)(Ae)),{position:"absolute",top:-9999,zIndex:Ae.zIndexPopup,boxSizing:"border-box",padding:Ae.paddingXXS,overflow:"hidden",fontSize:Ae.fontSize,fontVariant:"initial",backgroundColor:Ae.colorBgElevated,borderRadius:Ae.borderRadiusLG,outline:"none",boxShadow:Ae.boxShadowSecondary,[`
|
|
|
${xt}${qt}bottomLeft,
|
|
|
${Lt}${qt}bottomLeft
|
|
|
`]:{animationName:ge.fJ},[`
|
|
|
${xt}${qt}topLeft,
|
|
|
${Lt}${qt}topLeft,
|
|
|
${xt}${qt}topRight,
|
|
|
${Lt}${qt}topRight
|
|
|
`]:{animationName:ge.Qt},[`${nt}${qt}bottomLeft`]:{animationName:ge.Uw},[`
|
|
|
${nt}${qt}topLeft,
|
|
|
${nt}${qt}topRight
|
|
|
`]:{animationName:ge.ly},"&-hidden":{display:"none"},[`${At}`]:Object.assign(Object.assign({},Ee(Ae)),{cursor:"pointer",transition:`background ${Ae.motionDurationSlow} ease`,borderRadius:Ae.borderRadiusSM,"&-group":{color:Ae.colorTextDescription,fontSize:Ae.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ae.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${At}-option-disabled)`]:{backgroundColor:Ae.optionActiveBg},[`&-selected:not(${At}-option-disabled)`]:{color:Ae.optionSelectedColor,fontWeight:Ae.optionSelectedFontWeight,backgroundColor:Ae.optionSelectedBg,[`${At}-option-state`]:{color:Ae.colorPrimary}},"&-disabled":{[`&${At}-option-selected`]:{backgroundColor:Ae.colorBgContainerDisabled},color:Ae.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ae.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ge.oN)(Ae,"slide-up"),(0,ge.oN)(Ae,"slide-down"),(0,ke.Fm)(Ae,"move-up"),(0,ke.Fm)(Ae,"move-down")]};const De=2,ot=Ae=>{let{controlHeightSM:Ye,controlHeight:Ve,lineWidth:At}=Ae;const xt=(Ve-Ye)/2-At,Lt=Math.ceil(xt/2);return[xt,Lt]};function Ne(Ae,Ye){const{componentCls:Ve,iconCls:At}=Ae,xt=`${Ve}-selection-overflow`,Lt=Ae.multipleSelectItemHeight,[nt]=ot(Ae),qt=Ye?`${Ve}-${Ye}`:"";return{[`${Ve}-multiple${qt}`]:{fontSize:Ae.fontSize,[xt]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ve}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${nt-De}px ${De*2}px`,borderRadius:Ae.borderRadius,[`${Ve}-show-search&`]:{cursor:"text"},[`${Ve}-disabled&`]:{background:Ae.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${De}px 0`,lineHeight:`${Lt}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Ve}-show-arrow ${Ve}-selector,
|
|
|
&${Ve}-allow-clear ${Ve}-selector
|
|
|
`]:{paddingInlineEnd:Ae.fontSizeIcon+Ae.controlPaddingHorizontal},[`${Ve}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Lt,marginTop:De,marginBottom:De,lineHeight:`${Lt-Ae.lineWidth*2}px`,background:Ae.multipleItemBg,border:`${Ae.lineWidth}px ${Ae.lineType} ${Ae.multipleItemBorderColor}`,borderRadius:Ae.borderRadiusSM,cursor:"default",transition:`font-size ${Ae.motionDurationSlow}, line-height ${Ae.motionDurationSlow}, height ${Ae.motionDurationSlow}`,userSelect:"none",marginInlineEnd:De*2,paddingInlineStart:Ae.paddingXS,paddingInlineEnd:Ae.paddingXS/2,[`${Ve}-disabled&`]:{color:Ae.multipleItemColorDisabled,borderColor:Ae.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Ae.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ae.Ro)()),{display:"inline-flex",alignItems:"center",color:Ae.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${At}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ae.colorIconHover}})},[`${xt}-item + ${xt}-item`]:{[`${Ve}-selection-search`]:{marginInlineStart:0}},[`${Ve}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ae.inputPaddingHorizontalBase-nt,"\n &-input,\n &-mirror\n ":{height:Lt,fontFamily:Ae.fontFamily,lineHeight:`${Lt}px`,transition:`all ${Ae.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ve}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ae.inputPaddingHorizontalBase,insetInlineEnd:Ae.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ae.motionDurationSlow}`}}}}var dt=Ae=>{const{componentCls:Ye}=Ae,Ve=(0,_e.TS)(Ae,{controlHeight:Ae.controlHeightSM,multipleSelectItemHeight:Ae.controlHeightXS,borderRadius:Ae.borderRadiusSM,borderRadiusSM:Ae.borderRadiusXS}),At=(0,_e.TS)(Ae,{fontSize:Ae.fontSizeLG,controlHeight:Ae.controlHeightLG,multipleSelectItemHeight:Ae.multipleItemHeightLG,borderRadius:Ae.borderRadiusLG,borderRadiusSM:Ae.borderRadius}),[,xt]=ot(Ae);return[Ne(Ae),Ne(Ve,"sm"),{[`${Ye}-multiple${Ye}-sm`]:{[`${Ye}-selection-placeholder`]:{insetInline:Ae.controlPaddingHorizontalSM-Ae.lineWidth},[`${Ye}-selection-search`]:{marginInlineStart:xt}}},Ne(At,"lg")]};function pt(Ae,Ye){const{componentCls:Ve,inputPaddingHorizontalBase:At,borderRadius:xt}=Ae,Lt=Ae.controlHeight-Ae.lineWidth*2,nt=Math.ceil(Ae.fontSize*1.25),qt=Ye?`${Ve}-${Ye}`:"";return{[`${Ve}-single${qt}`]:{fontSize:Ae.fontSize,[`${Ve}-selector`]:Object.assign(Object.assign({},(0,ae.Wf)(Ae)),{display:"flex",borderRadius:xt,[`${Ve}-selection-search`]:{position:"absolute",top:0,insetInlineStart:At,insetInlineEnd:At,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Ve}-selection-item,
|
|
|
${Ve}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Lt}px`,transition:`all ${Ae.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Lt}px`}},[`${Ve}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ve}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ve}-selection-item:after`,`${Ve}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Ve}-show-arrow ${Ve}-selection-item,
|
|
|
&${Ve}-show-arrow ${Ve}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:nt},[`&${Ve}-open ${Ve}-selection-item`]:{color:Ae.colorTextPlaceholder},[`&:not(${Ve}-customize-input)`]:{[`${Ve}-selector`]:{width:"100%",height:Ae.controlHeight,padding:`0 ${At}px`,[`${Ve}-selection-search-input`]:{height:Lt},"&:after":{lineHeight:`${Lt}px`}}},[`&${Ve}-customize-input`]:{[`${Ve}-selector`]:{"&:after":{display:"none"},[`${Ve}-selection-search`]:{position:"static",width:"100%"},[`${Ve}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${At}px`,"&:after":{display:"none"}}}}}}}function Je(Ae){const{componentCls:Ye}=Ae,Ve=Ae.controlPaddingHorizontalSM-Ae.lineWidth;return[pt(Ae),pt((0,_e.TS)(Ae,{controlHeight:Ae.controlHeightSM,borderRadius:Ae.borderRadiusSM}),"sm"),{[`${Ye}-single${Ye}-sm`]:{[`&:not(${Ye}-customize-input)`]:{[`${Ye}-selection-search`]:{insetInlineStart:Ve,insetInlineEnd:Ve},[`${Ye}-selector`]:{padding:`0 ${Ve}px`},[`&${Ye}-show-arrow ${Ye}-selection-search`]:{insetInlineEnd:Ve+Ae.fontSize*1.5},[`
|
|
|
&${Ye}-show-arrow ${Ye}-selection-item,
|
|
|
&${Ye}-show-arrow ${Ye}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Ae.fontSize*1.5}}}},pt((0,_e.TS)(Ae,{controlHeight:Ae.singleItemHeightLG,fontSize:Ae.fontSizeLG,borderRadius:Ae.borderRadiusLG}),"lg")]}const Be=Ae=>{const{componentCls:Ye,selectorBg:Ve}=Ae;return{position:"relative",backgroundColor:Ve,border:`${Ae.lineWidth}px ${Ae.lineType} ${Ae.colorBorder}`,transition:`all ${Ae.motionDurationMid} ${Ae.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ye}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ye}-disabled&`]:{color:Ae.colorTextDisabled,background:Ae.colorBgContainerDisabled,cursor:"not-allowed",[`${Ye}-multiple&`]:{background:Ae.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},gt=function(Ae,Ye){let Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:At,borderHoverColor:xt,outlineColor:Lt,antCls:nt}=Ye,qt=Ve?{[`${At}-selector`]:{borderColor:xt}}:{};return{[Ae]:{[`&:not(${At}-disabled):not(${At}-customize-input):not(${nt}-pagination-size-changer)`]:Object.assign(Object.assign({},qt),{[`${At}-focused& ${At}-selector`]:{borderColor:xt,boxShadow:`0 0 0 ${Ye.controlOutlineWidth}px ${Lt}`,outline:0},[`&:hover ${At}-selector`]:{borderColor:xt}})}}},nn=Ae=>{const{componentCls:Ye}=Ae;return{[`${Ye}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},at=Ae=>{const{componentCls:Ye,inputPaddingHorizontalBase:Ve,iconCls:At}=Ae;return{[Ye]:Object.assign(Object.assign({},(0,ae.Wf)(Ae)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ye}-customize-input) ${Ye}-selector`]:Object.assign(Object.assign({},Be(Ae)),nn(Ae)),[`${Ye}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ae.vS),[`${Ye}-selection-placeholder`]:Object.assign(Object.assign({},ae.vS),{flex:1,color:Ae.colorTextPlaceholder,pointerEvents:"none"}),[`${Ye}-arrow`]:Object.assign(Object.assign({},(0,ae.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ve,height:Ae.fontSizeIcon,marginTop:-Ae.fontSizeIcon/2,color:Ae.colorTextQuaternary,fontSize:Ae.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[At]:{verticalAlign:"top",transition:`transform ${Ae.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ye}-suffix)`]:{pointerEvents:"auto"}},[`${Ye}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ye}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ve,zIndex:1,display:"inline-block",width:Ae.fontSizeIcon,height:Ae.fontSizeIcon,marginTop:-Ae.fontSizeIcon/2,color:Ae.colorTextQuaternary,fontSize:Ae.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Ae.clearBg,cursor:"pointer",opacity:0,transition:`color ${Ae.motionDurationMid} ease, opacity ${Ae.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ae.colorTextTertiary}},"&:hover":{[`${Ye}-clear`]:{opacity:1}}}),[`${Ye}-has-feedback`]:{[`${Ye}-clear`]:{insetInlineEnd:Ve+Ae.fontSize+Ae.paddingXS}}}},vt=Ae=>{const{componentCls:Ye}=Ae;return[{[Ye]:{[`&-borderless ${Ye}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ye}-in-form-item`]:{width:"100%"}}},at(Ae),Je(Ae),dt(Ae),me(Ae),{[`${Ye}-rtl`]:{direction:"rtl"}},gt(Ye,(0,_e.TS)(Ae,{borderHoverColor:Ae.colorPrimaryHover,outlineColor:Ae.controlOutline})),gt(`${Ye}-status-error`,(0,_e.TS)(Ae,{borderHoverColor:Ae.colorErrorHover,outlineColor:Ae.colorErrorOutline}),!0),gt(`${Ye}-status-warning`,(0,_e.TS)(Ae,{borderHoverColor:Ae.colorWarningHover,outlineColor:Ae.colorWarningOutline}),!0),(0,Le.c)(Ae,{borderElCls:`${Ye}-selector`,focusElCls:`${Ye}-focused`})]};var Ce=(0,rt.Z)("Select",(Ae,Ye)=>{let{rootPrefixCls:Ve}=Ye;const At=(0,_e.TS)(Ae,{rootPrefixCls:Ve,inputPaddingHorizontalBase:Ae.paddingSM-1,multipleSelectItemHeight:Ae.multipleItemHeight});return[vt(At)]},Ae=>{const{fontSize:Ye,lineHeight:Ve,controlHeight:At,controlPaddingHorizontal:xt,zIndexPopupBase:Lt,colorText:nt,fontWeightStrong:qt,controlItemBgActive:zt,controlItemBgHover:bn,colorBgContainer:dn,colorFillSecondary:Wn,controlHeightLG:rr,controlHeightSM:ln,colorBgContainerDisabled:$e,colorTextDisabled:Se}=Ae;return{zIndexPopup:Lt+50,optionSelectedColor:nt,optionSelectedFontWeight:qt,optionSelectedBg:zt,optionActiveBg:bn,optionPadding:`${(At-Ye*Ve)/2}px ${xt}px`,optionFontSize:Ye,optionLineHeight:Ve,optionHeight:At,selectorBg:dn,clearBg:dn,singleItemHeightLG:rr,multipleItemBg:Wn,multipleItemBorderColor:"transparent",multipleItemHeight:ln,multipleItemHeightLG:At,multipleSelectorBgDisabled:$e,multipleItemColorDisabled:Se,multipleItemBorderColorDisabled:"transparent"}})},13458:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Le}});const ae=_e=>{const ge={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:_e==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ge),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ge),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ge),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ge),{points:["br","tr"],offset:[0,-4]})}};function Le(_e,rt){return _e||ae(rt)}},78642:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return ae}});function ae(Le,_e){return _e!==void 0?_e:Le!==null}},46163:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return xe}});var ae=se(18299),Le=se(16646),_e=se(73475),rt=se(42922),ge=se(3407),ke=se(72395),Ee=se(67294);function xe(me){let{suffixIcon:De,clearIcon:ot,menuItemSelectedIcon:Ne,removeIcon:mt,loading:dt,multiple:pt,hasFeedback:Je,prefixCls:Be,showSuffixIcon:gt,feedbackIcon:nn,showArrow:at,componentName:vt}=me;const Ce=ot!=null?ot:Ee.createElement(Le.Z,null),Ae=xt=>De===null&&!Je&&!at?null:Ee.createElement(Ee.Fragment,null,gt!==!1&&xt,Je&&nn);let Ye=null;if(De!==void 0)Ye=Ae(De);else if(dt)Ye=Ae(Ee.createElement(ge.Z,{spin:!0}));else{const xt=`${Be}-suffix`;Ye=Lt=>{let{open:nt,showSearch:qt}=Lt;return Ae(nt&&qt?Ee.createElement(ke.Z,{className:xt}):Ee.createElement(rt.Z,{className:xt}))}}let Ve=null;Ne!==void 0?Ve=Ne:pt?Ve=Ee.createElement(ae.Z,null):Ve=null;let At=null;return mt!==void 0?At=mt:At=Ee.createElement(_e.Z,null),{clearIcon:Ce,suffixIcon:Ye,itemIcon:Ve,removeIcon:At}}},46303:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return ce}});var ae=se(94184),Le=se.n(ae),_e=se(67294),rt=se(53124),ge=se(10366),Ee=he=>{const{prefixCls:ue,className:le,style:Me,size:Ge,shape:St}=he,Ht=Le()({[`${ue}-lg`]:Ge==="large",[`${ue}-sm`]:Ge==="small"}),Yt=Le()({[`${ue}-circle`]:St==="circle",[`${ue}-square`]:St==="square",[`${ue}-round`]:St==="round"}),Vt=_e.useMemo(()=>typeof Ge=="number"?{width:Ge,height:Ge,lineHeight:`${Ge}px`}:{},[Ge]);return _e.createElement("span",{className:Le()(ue,Ht,Yt,le),style:Object.assign(Object.assign({},Vt),Me)})},xe=se(34367),me=se(67968),De=se(45503);const ot=new xe.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ne=he=>({height:he,lineHeight:`${he}px`}),mt=he=>Object.assign({width:he},Ne(he)),dt=he=>({background:he.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ot,animationDuration:he.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),pt=he=>Object.assign({width:he*5,minWidth:he*5},Ne(he)),Je=he=>{const{skeletonAvatarCls:ue,gradientFromColor:le,controlHeight:Me,controlHeightLG:Ge,controlHeightSM:St}=he;return{[`${ue}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:le},mt(Me)),[`${ue}${ue}-circle`]:{borderRadius:"50%"},[`${ue}${ue}-lg`]:Object.assign({},mt(Ge)),[`${ue}${ue}-sm`]:Object.assign({},mt(St))}},Be=he=>{const{controlHeight:ue,borderRadiusSM:le,skeletonInputCls:Me,controlHeightLG:Ge,controlHeightSM:St,gradientFromColor:Ht}=he;return{[`${Me}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ht,borderRadius:le},pt(ue)),[`${Me}-lg`]:Object.assign({},pt(Ge)),[`${Me}-sm`]:Object.assign({},pt(St))}},gt=he=>Object.assign({width:he},Ne(he)),nn=he=>{const{skeletonImageCls:ue,imageSizeBase:le,gradientFromColor:Me,borderRadiusSM:Ge}=he;return{[`${ue}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Me,borderRadius:Ge},gt(le*2)),{[`${ue}-path`]:{fill:"#bfbfbf"},[`${ue}-svg`]:Object.assign(Object.assign({},gt(le)),{maxWidth:le*4,maxHeight:le*4}),[`${ue}-svg${ue}-svg-circle`]:{borderRadius:"50%"}}),[`${ue}${ue}-circle`]:{borderRadius:"50%"}}},at=(he,ue,le)=>{const{skeletonButtonCls:Me}=he;return{[`${le}${Me}-circle`]:{width:ue,minWidth:ue,borderRadius:"50%"},[`${le}${Me}-round`]:{borderRadius:ue}}},vt=he=>Object.assign({width:he*2,minWidth:he*2},Ne(he)),Ce=he=>{const{borderRadiusSM:ue,skeletonButtonCls:le,controlHeight:Me,controlHeightLG:Ge,controlHeightSM:St,gradientFromColor:Ht}=he;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ht,borderRadius:ue,width:Me*2,minWidth:Me*2},vt(Me))},at(he,Me,le)),{[`${le}-lg`]:Object.assign({},vt(Ge))}),at(he,Ge,`${le}-lg`)),{[`${le}-sm`]:Object.assign({},vt(St))}),at(he,St,`${le}-sm`))},Ae=he=>{const{componentCls:ue,skeletonAvatarCls:le,skeletonTitleCls:Me,skeletonParagraphCls:Ge,skeletonButtonCls:St,skeletonInputCls:Ht,skeletonImageCls:Yt,controlHeight:Vt,controlHeightLG:sn,controlHeightSM:it,gradientFromColor:Mt,padding:Ot,marginSM:$t,borderRadius:bt,titleHeight:_n,blockRadius:ct,paragraphLiHeight:Dt,controlHeightXS:En,paragraphMarginTop:wn}=he;return{[`${ue}`]:{display:"table",width:"100%",[`${ue}-header`]:{display:"table-cell",paddingInlineEnd:Ot,verticalAlign:"top",[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Mt},mt(Vt)),[`${le}-circle`]:{borderRadius:"50%"},[`${le}-lg`]:Object.assign({},mt(sn)),[`${le}-sm`]:Object.assign({},mt(it))},[`${ue}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Me}`]:{width:"100%",height:_n,background:Mt,borderRadius:ct,[`+ ${Ge}`]:{marginBlockStart:it}},[`${Ge}`]:{padding:0,"> li":{width:"100%",height:Dt,listStyle:"none",background:Mt,borderRadius:ct,"+ li":{marginBlockStart:En}}},[`${Ge}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${ue}-content`]:{[`${Me}, ${Ge} > li`]:{borderRadius:bt}}},[`${ue}-with-avatar ${ue}-content`]:{[`${Me}`]:{marginBlockStart:$t,[`+ ${Ge}`]:{marginBlockStart:wn}}},[`${ue}${ue}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ce(he)),Je(he)),Be(he)),nn(he)),[`${ue}${ue}-block`]:{width:"100%",[`${St}`]:{width:"100%"},[`${Ht}`]:{width:"100%"}},[`${ue}${ue}-active`]:{[`
|
|
|
${Me},
|
|
|
${Ge} > li,
|
|
|
${le},
|
|
|
${St},
|
|
|
${Ht},
|
|
|
${Yt}
|
|
|
`]:Object.assign({},dt(he))}}};var Ye=(0,me.Z)("Skeleton",he=>{const{componentCls:ue}=he,le=(0,De.TS)(he,{skeletonAvatarCls:`${ue}-avatar`,skeletonTitleCls:`${ue}-title`,skeletonParagraphCls:`${ue}-paragraph`,skeletonButtonCls:`${ue}-button`,skeletonInputCls:`${ue}-input`,skeletonImageCls:`${ue}-image`,imageSizeBase:he.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${he.gradientFromColor} 25%, ${he.gradientToColor} 37%, ${he.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ae(le)]},he=>{const{colorFillContent:ue,colorFill:le}=he,Me=ue,Ge=le;return{color:Me,colorGradientEnd:Ge,gradientFromColor:Me,gradientToColor:Ge,titleHeight:he.controlHeight/2,blockRadius:he.borderRadiusSM,paragraphMarginTop:he.marginLG+he.marginXXS,paragraphLiHeight:he.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),At=he=>{const{prefixCls:ue,className:le,rootClassName:Me,active:Ge,shape:St="circle",size:Ht="default"}=he,{getPrefixCls:Yt}=_e.useContext(rt.E_),Vt=Yt("skeleton",ue),[sn,it]=Ye(Vt),Mt=(0,ge.Z)(he,["prefixCls","className"]),Ot=Le()(Vt,`${Vt}-element`,{[`${Vt}-active`]:Ge},le,Me,it);return sn(_e.createElement("div",{className:Ot},_e.createElement(Ee,Object.assign({prefixCls:`${Vt}-avatar`,shape:St,size:Ht},Mt))))},Lt=he=>{const{prefixCls:ue,className:le,rootClassName:Me,active:Ge,block:St=!1,size:Ht="default"}=he,{getPrefixCls:Yt}=_e.useContext(rt.E_),Vt=Yt("skeleton",ue),[sn,it]=Ye(Vt),Mt=(0,ge.Z)(he,["prefixCls"]),Ot=Le()(Vt,`${Vt}-element`,{[`${Vt}-active`]:Ge,[`${Vt}-block`]:St},le,Me,it);return sn(_e.createElement("div",{className:Ot},_e.createElement(Ee,Object.assign({prefixCls:`${Vt}-button`,size:Ht},Mt))))};const nt="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var zt=he=>{const{prefixCls:ue,className:le,rootClassName:Me,style:Ge,active:St}=he,{getPrefixCls:Ht}=_e.useContext(rt.E_),Yt=Ht("skeleton",ue),[Vt,sn]=Ye(Yt),it=Le()(Yt,`${Yt}-element`,{[`${Yt}-active`]:St},le,Me,sn);return Vt(_e.createElement("div",{className:it},_e.createElement("div",{className:Le()(`${Yt}-image`,le),style:Ge},_e.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Yt}-image-svg`},_e.createElement("path",{d:nt,className:`${Yt}-image-path`})))))},dn=he=>{const{prefixCls:ue,className:le,rootClassName:Me,active:Ge,block:St,size:Ht="default"}=he,{getPrefixCls:Yt}=_e.useContext(rt.E_),Vt=Yt("skeleton",ue),[sn,it]=Ye(Vt),Mt=(0,ge.Z)(he,["prefixCls"]),Ot=Le()(Vt,`${Vt}-element`,{[`${Vt}-active`]:Ge,[`${Vt}-block`]:St},le,Me,it);return sn(_e.createElement("div",{className:Ot},_e.createElement(Ee,Object.assign({prefixCls:`${Vt}-input`,size:Ht},Mt))))},Wn=se(87462),rr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},ln=rr,$e=se(84089),Se=function(ue,le){return _e.createElement($e.Z,(0,Wn.Z)({},ue,{ref:le,icon:ln}))},Bt=_e.forwardRef(Se),Xt=he=>{const{prefixCls:ue,className:le,rootClassName:Me,style:Ge,active:St,children:Ht}=he,{getPrefixCls:Yt}=_e.useContext(rt.E_),Vt=Yt("skeleton",ue),[sn,it]=Ye(Vt),Mt=Le()(Vt,`${Vt}-element`,{[`${Vt}-active`]:St},it,le,Me),Ot=Ht!=null?Ht:_e.createElement(Bt,null);return sn(_e.createElement("div",{className:Mt},_e.createElement("div",{className:Le()(`${Vt}-image`,le),style:Ge},Ot)))},ft=se(74902),Gt=he=>{const ue=Yt=>{const{width:Vt,rows:sn=2}=he;if(Array.isArray(Vt))return Vt[Yt];if(sn-1===Yt)return Vt},{prefixCls:le,className:Me,style:Ge,rows:St}=he,Ht=(0,ft.Z)(Array(St)).map((Yt,Vt)=>_e.createElement("li",{key:Vt,style:{width:ue(Vt)}}));return _e.createElement("ul",{className:Le()(le,Me),style:Ge},Ht)},Dn=he=>{let{prefixCls:ue,className:le,width:Me,style:Ge}=he;return _e.createElement("h3",{className:Le()(ue,le),style:Object.assign({width:Me},Ge)})};function Tt(he){return he&&typeof he=="object"?he:{}}function mn(he,ue){return he&&!ue?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Vn(he,ue){return!he&&ue?{width:"38%"}:he&&ue?{width:"50%"}:{}}function kn(he,ue){const le={};return(!he||!ue)&&(le.width="61%"),!he&&ue?le.rows=3:le.rows=2,le}const Pe=he=>{const{prefixCls:ue,loading:le,className:Me,rootClassName:Ge,style:St,children:Ht,avatar:Yt=!1,title:Vt=!0,paragraph:sn=!0,active:it,round:Mt}=he,{getPrefixCls:Ot,direction:$t,skeleton:bt}=_e.useContext(rt.E_),_n=Ot("skeleton",ue),[ct,Dt]=Ye(_n);if(le||!("loading"in he)){const En=!!Yt,wn=!!Vt,Bn=!!sn;let Qn;if(En){const Sr=Object.assign(Object.assign({prefixCls:`${_n}-avatar`},mn(wn,Bn)),Tt(Yt));Qn=_e.createElement("div",{className:`${_n}-header`},_e.createElement(Ee,Object.assign({},Sr)))}let wr;if(wn||Bn){let Sr;if(wn){const ir=Object.assign(Object.assign({prefixCls:`${_n}-title`},Vn(En,Bn)),Tt(Vt));Sr=_e.createElement(Dn,Object.assign({},ir))}let Yn;if(Bn){const ir=Object.assign(Object.assign({prefixCls:`${_n}-paragraph`},kn(En,wn)),Tt(sn));Yn=_e.createElement(Gt,Object.assign({},ir))}wr=_e.createElement("div",{className:`${_n}-content`},Sr,Yn)}const br=Le()(_n,{[`${_n}-with-avatar`]:En,[`${_n}-active`]:it,[`${_n}-rtl`]:$t==="rtl",[`${_n}-round`]:Mt},bt==null?void 0:bt.className,Me,Ge,Dt);return ct(_e.createElement("div",{className:br,style:Object.assign(Object.assign({},bt==null?void 0:bt.style),St)},Qn,wr))}return typeof Ht!="undefined"?Ht:null};Pe.Button=Lt,Pe.Avatar=At,Pe.Input=dn,Pe.Image=zt,Pe.Node=Xt;var fe=Pe,ce=fe},55054:function(yn,fn,se){"use strict";se.d(fn,{default:function(){return Ye}});var ae=se(67294),Le=se(57838),_e=se(96159),rt=se(94184),ge=se.n(rt),ke=se(53124),Ee=se(46303),me=Ve=>{const{value:At,formatter:xt,precision:Lt,decimalSeparator:nt,groupSeparator:qt="",prefixCls:zt}=Ve;let bn;if(typeof xt=="function")bn=xt(At);else{const dn=String(At),Wn=dn.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Wn||dn==="-")bn=dn;else{const rr=Wn[1];let ln=Wn[2]||"0",$e=Wn[4]||"";ln=ln.replace(/\B(?=(\d{3})+(?!\d))/g,qt),typeof Lt=="number"&&($e=$e.padEnd(Lt,"0").slice(0,Lt>0?Lt:0)),$e&&($e=`${nt}${$e}`),bn=[ae.createElement("span",{key:"int",className:`${zt}-content-value-int`},rr,ln),$e&&ae.createElement("span",{key:"decimal",className:`${zt}-content-value-decimal`},$e)]}}return ae.createElement("span",{className:`${zt}-content-value`},bn)},De=se(14747),ot=se(67968),Ne=se(45503);const mt=Ve=>{const{componentCls:At,marginXXS:xt,padding:Lt,colorTextDescription:nt,titleFontSize:qt,colorTextHeading:zt,contentFontSize:bn,fontFamily:dn}=Ve;return{[`${At}`]:Object.assign(Object.assign({},(0,De.Wf)(Ve)),{[`${At}-title`]:{marginBottom:xt,color:nt,fontSize:qt},[`${At}-skeleton`]:{paddingTop:Lt},[`${At}-content`]:{color:zt,fontSize:bn,fontFamily:dn,[`${At}-content-value`]:{display:"inline-block",direction:"ltr"},[`${At}-content-prefix, ${At}-content-suffix`]:{display:"inline-block"},[`${At}-content-prefix`]:{marginInlineEnd:xt},[`${At}-content-suffix`]:{marginInlineStart:xt}}})}};var dt=(0,ot.Z)("Statistic",Ve=>{const At=(0,Ne.TS)(Ve,{});return[mt(At)]},Ve=>{const{fontSizeHeading3:At,fontSize:xt}=Ve;return{titleFontSize:xt,contentFontSize:At}}),Je=Ve=>{const{prefixCls:At,className:xt,rootClassName:Lt,style:nt,valueStyle:qt,value:zt=0,title:bn,valueRender:dn,prefix:Wn,suffix:rr,loading:ln=!1,onMouseEnter:$e,onMouseLeave:Se,decimalSeparator:Bt=".",groupSeparator:xn=","}=Ve,{getPrefixCls:Xt,direction:ft,statistic:yt}=ae.useContext(ke.E_),Gt=Xt("statistic",At),[qn,Dn]=dt(Gt),Tt=ae.createElement(me,Object.assign({decimalSeparator:Bt,groupSeparator:xn,prefixCls:Gt},Ve,{value:zt})),mn=ge()(Gt,{[`${Gt}-rtl`]:ft==="rtl"},yt==null?void 0:yt.className,xt,Lt,Dn);return qn(ae.createElement("div",{className:mn,style:Object.assign(Object.assign({},yt==null?void 0:yt.style),nt),onMouseEnter:$e,onMouseLeave:Se},bn&&ae.createElement("div",{className:`${Gt}-title`},bn),ae.createElement(Ee.Z,{paragraph:!1,loading:ln,className:`${Gt}-skeleton`},ae.createElement("div",{style:qt,className:`${Gt}-content`},Wn&&ae.createElement("span",{className:`${Gt}-content-prefix`},Wn),dn?dn(Tt):Tt,rr&&ae.createElement("span",{className:`${Gt}-content-suffix`},rr)))))};const Be=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function gt(Ve,At){let xt=Ve;const Lt=/\[[^\]]*]/g,nt=(At.match(Lt)||[]).map(dn=>dn.slice(1,-1)),qt=At.replace(Lt,"[]"),zt=Be.reduce((dn,Wn)=>{let[rr,ln]=Wn;if(dn.includes(rr)){const $e=Math.floor(xt/ln);return xt-=$e*ln,dn.replace(new RegExp(`${rr}+`,"g"),Se=>{const Bt=Se.length;return $e.toString().padStart(Bt,"0")})}return dn},qt);let bn=0;return zt.replace(Lt,()=>{const dn=nt[bn];return bn+=1,dn})}function nn(Ve,At){const{format:xt=""}=At,Lt=new Date(Ve).getTime(),nt=Date.now(),qt=Math.max(Lt-nt,0);return gt(qt,xt)}const at=1e3/30;function vt(Ve){return new Date(Ve).getTime()}const Ce=Ve=>{const{value:At,format:xt="HH:mm:ss",onChange:Lt,onFinish:nt}=Ve,qt=(0,Le.Z)(),zt=ae.useRef(null),bn=()=>{nt==null||nt(),zt.current&&(clearInterval(zt.current),zt.current=null)},dn=()=>{const ln=vt(At);ln>=Date.now()&&(zt.current=setInterval(()=>{qt(),Lt==null||Lt(ln-Date.now()),ln<Date.now()&&bn()},at))};ae.useEffect(()=>(dn(),()=>{zt.current&&(clearInterval(zt.current),zt.current=null)}),[At]);const Wn=(ln,$e)=>nn(ln,Object.assign(Object.assign({},$e),{format:xt})),rr=ln=>(0,_e.Tm)(ln,{title:void 0});return ae.createElement(Je,Object.assign({},Ve,{valueRender:rr,formatter:Wn}))};var Ae=ae.memo(Ce);Je.Countdown=Ae;var Ye=Je},33507:function(yn,fn){"use strict";const se=ae=>({[ae.componentCls]:{[`${ae.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${ae.motionDurationMid} ${ae.motionEaseInOut},
|
|
|
opacity ${ae.motionDurationMid} ${ae.motionEaseInOut} !important`}},[`${ae.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${ae.motionDurationMid} ${ae.motionEaseInOut},
|
|
|
opacity ${ae.motionDurationMid} ${ae.motionEaseInOut} !important`}}});fn.Z=se},33297:function(yn,fn,se){"use strict";se.d(fn,{Fm:function(){return Ne}});var ae=se(34367),Le=se(93590);const _e=new ae.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),rt=new ae.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ge=new ae.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ke=new ae.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ee=new ae.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xe=new ae.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),me=new ae.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),De=new ae.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ot={"move-up":{inKeyframes:me,outKeyframes:De},"move-down":{inKeyframes:_e,outKeyframes:rt},"move-left":{inKeyframes:ge,outKeyframes:ke},"move-right":{inKeyframes:Ee,outKeyframes:xe}},Ne=(mt,dt)=>{const{antCls:pt}=mt,Je=`${pt}-${dt}`,{inKeyframes:Be,outKeyframes:gt}=ot[dt];return[(0,Le.R)(Je,Be,gt,mt.motionDurationMid),{[`
|
|
|
${Je}-enter,
|
|
|
${Je}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:mt.motionEaseOutCirc},[`${Je}-leave`]:{animationTimingFunction:mt.motionEaseInOutCirc}}]}},67771:function(yn,fn,se){"use strict";se.d(fn,{Qt:function(){return ge},Uw:function(){return rt},fJ:function(){return _e},ly:function(){return ke},oN:function(){return Ne}});var ae=se(34367),Le=se(93590);const _e=new ae.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),rt=new ae.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ge=new ae.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ke=new ae.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Ee=new ae.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),xe=new ae.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),me=new ae.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),De=new ae.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ot={"slide-up":{inKeyframes:_e,outKeyframes:rt},"slide-down":{inKeyframes:ge,outKeyframes:ke},"slide-left":{inKeyframes:Ee,outKeyframes:xe},"slide-right":{inKeyframes:me,outKeyframes:De}},Ne=(mt,dt)=>{const{antCls:pt}=mt,Je=`${pt}-${dt}`,{inKeyframes:Be,outKeyframes:gt}=ot[dt];return[(0,Le.R)(Je,Be,gt,mt.motionDurationMid),{[`
|
|
|
${Je}-enter,
|
|
|
${Je}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:mt.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${Je}-leave`]:{animationTimingFunction:mt.motionEaseInQuint}}]}},47897:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return he}});var ae=se(3407),Le=se(94184),_e=se.n(Le);function rt(){return rt=Object.assign?Object.assign.bind():function(ue){for(var le=1;le<arguments.length;le++){var Me=arguments[le];for(var Ge in Me)Object.prototype.hasOwnProperty.call(Me,Ge)&&(ue[Ge]=Me[Ge])}return ue},rt.apply(this,arguments)}function ge(ue){"@babel/helpers - typeof";return ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(le){return typeof le}:function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},ge(ue)}function ke(ue,le){if(ge(ue)!=="object"||ue===null)return ue;var Me=ue[Symbol.toPrimitive];if(Me!==void 0){var Ge=Me.call(ue,le||"default");if(ge(Ge)!=="object")return Ge;throw new TypeError("@@toPrimitive must return a primitive value.")}return(le==="string"?String:Number)(ue)}function Ee(ue){var le=ke(ue,"string");return ge(le)==="symbol"?le:String(le)}function xe(ue,le,Me){return le=Ee(le),le in ue?Object.defineProperty(ue,le,{value:Me,enumerable:!0,configurable:!0,writable:!0}):ue[le]=Me,ue}function me(ue){if(Array.isArray(ue))return ue}function De(ue,le){var Me=ue==null?null:typeof Symbol!="undefined"&&ue[Symbol.iterator]||ue["@@iterator"];if(Me!=null){var Ge,St,Ht,Yt,Vt=[],sn=!0,it=!1;try{if(Ht=(Me=Me.call(ue)).next,le===0){if(Object(Me)!==Me)return;sn=!1}else for(;!(sn=(Ge=Ht.call(Me)).done)&&(Vt.push(Ge.value),Vt.length!==le);sn=!0);}catch(Mt){it=!0,St=Mt}finally{try{if(!sn&&Me.return!=null&&(Yt=Me.return(),Object(Yt)!==Yt))return}finally{if(it)throw St}}return Vt}}function ot(ue,le){(le==null||le>ue.length)&&(le=ue.length);for(var Me=0,Ge=new Array(le);Me<le;Me++)Ge[Me]=ue[Me];return Ge}function Ne(ue,le){if(ue){if(typeof ue=="string")return ot(ue,le);var Me=Object.prototype.toString.call(ue).slice(8,-1);if(Me==="Object"&&ue.constructor&&(Me=ue.constructor.name),Me==="Map"||Me==="Set")return Array.from(ue);if(Me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Me))return ot(ue,le)}}function mt(){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 dt(ue,le){return me(ue)||De(ue,le)||Ne(ue,le)||mt()}function pt(ue,le){if(ue==null)return{};var Me={},Ge=Object.keys(ue),St,Ht;for(Ht=0;Ht<Ge.length;Ht++)St=Ge[Ht],!(le.indexOf(St)>=0)&&(Me[St]=ue[St]);return Me}function Je(ue,le){if(ue==null)return{};var Me=pt(ue,le),Ge,St;if(Object.getOwnPropertySymbols){var Ht=Object.getOwnPropertySymbols(ue);for(St=0;St<Ht.length;St++)Ge=Ht[St],!(le.indexOf(Ge)>=0)&&Object.prototype.propertyIsEnumerable.call(ue,Ge)&&(Me[Ge]=ue[Ge])}return Me}var Be=se(67294);function gt(ue){if(Array.isArray(ue))return ue}function nn(ue,le){var Me=ue==null?null:typeof Symbol!="undefined"&&ue[Symbol.iterator]||ue["@@iterator"];if(Me!=null){var Ge,St,Ht,Yt,Vt=[],sn=!0,it=!1;try{if(Ht=(Me=Me.call(ue)).next,le===0){if(Object(Me)!==Me)return;sn=!1}else for(;!(sn=(Ge=Ht.call(Me)).done)&&(Vt.push(Ge.value),Vt.length!==le);sn=!0);}catch(Mt){it=!0,St=Mt}finally{try{if(!sn&&Me.return!=null&&(Yt=Me.return(),Object(Yt)!==Yt))return}finally{if(it)throw St}}return Vt}}function at(ue,le){(le==null||le>ue.length)&&(le=ue.length);for(var Me=0,Ge=new Array(le);Me<le;Me++)Ge[Me]=ue[Me];return Ge}function vt(ue,le){if(ue){if(typeof ue=="string")return at(ue,le);var Me=Object.prototype.toString.call(ue).slice(8,-1);if(Me==="Object"&&ue.constructor&&(Me=ue.constructor.name),Me==="Map"||Me==="Set")return Array.from(ue);if(Me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Me))return at(ue,le)}}function Ce(){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 Ae(ue,le){return gt(ue)||nn(ue,le)||vt(ue,le)||Ce()}function Ye(ue){var le=Be.useRef();le.current=ue;var Me=Be.useCallback(function(){for(var Ge,St=arguments.length,Ht=new Array(St),Yt=0;Yt<St;Yt++)Ht[Yt]=arguments[Yt];return(Ge=le.current)===null||Ge===void 0?void 0:Ge.call.apply(Ge,[le].concat(Ht))},[]);return Me}function Ve(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var At=Ve()?Be.useLayoutEffect:Be.useEffect,xt=function(le,Me){var Ge=Be.useRef(!0);At(function(){return le(Ge.current)},Me),At(function(){return Ge.current=!1,function(){Ge.current=!0}},[])},Lt=function(le,Me){xt(function(Ge){if(!Ge)return le()},Me)},nt=null;function qt(ue){var le=Be.useRef(!1),Me=Be.useState(ue),Ge=Ae(Me,2),St=Ge[0],Ht=Ge[1];Be.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function Yt(Vt,sn){sn&&le.current||Ht(Vt)}return[St,Yt]}function zt(ue){return ue!==void 0}function bn(ue,le){var Me=le||{},Ge=Me.defaultValue,St=Me.value,Ht=Me.onChange,Yt=Me.postState,Vt=qt(function(){return zt(St)?St:zt(Ge)?typeof Ge=="function"?Ge():Ge:typeof ue=="function"?ue():ue}),sn=Ae(Vt,2),it=sn[0],Mt=sn[1],Ot=St!==void 0?St:it,$t=Yt?Yt(Ot):Ot,bt=Ye(Ht),_n=qt([Ot]),ct=Ae(_n,2),Dt=ct[0],En=ct[1];Lt(function(){var Bn=Dt[0];it!==Bn&&bt(it,Bn)},[Dt]),Lt(function(){zt(St)||Mt(St)},[St]);var wn=Ye(function(Bn,Qn){Mt(Bn,Qn),En([Ot],Qn)});return[$t,wn]}var dn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(le){var Me=le.keyCode;if(le.altKey&&!le.ctrlKey||le.metaKey||Me>=dn.F1&&Me<=dn.F12)return!1;switch(Me){case dn.ALT:case dn.CAPS_LOCK:case dn.CONTEXT_MENU:case dn.CTRL:case dn.DOWN:case dn.END:case dn.ESC:case dn.HOME:case dn.INSERT:case dn.LEFT:case dn.MAC_FF_META:case dn.META:case dn.NUMLOCK:case dn.NUM_CENTER:case dn.PAGE_DOWN:case dn.PAGE_UP:case dn.PAUSE:case dn.PRINT_SCREEN:case dn.RIGHT:case dn.SHIFT:case dn.UP:case dn.WIN_KEY:case dn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=dn.ZERO&&le<=dn.NINE||le>=dn.NUM_ZERO&&le<=dn.NUM_MULTIPLY||le>=dn.A&&le<=dn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case dn.SPACE:case dn.QUESTION_MARK:case dn.NUM_PLUS:case dn.NUM_MINUS:case dn.NUM_PERIOD:case dn.NUM_DIVISION:case dn.SEMICOLON:case dn.DASH:case dn.EQUALS:case dn.COMMA:case dn.PERIOD:case dn.SLASH:case dn.APOSTROPHE:case dn.SINGLE_QUOTE:case dn.OPEN_SQUARE_BRACKET:case dn.BACKSLASH:case dn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Wn=dn,rr=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ln=Be.forwardRef(function(ue,le){var Me,Ge=ue.prefixCls,St=Ge===void 0?"rc-switch":Ge,Ht=ue.className,Yt=ue.checked,Vt=ue.defaultChecked,sn=ue.disabled,it=ue.loadingIcon,Mt=ue.checkedChildren,Ot=ue.unCheckedChildren,$t=ue.onClick,bt=ue.onChange,_n=ue.onKeyDown,ct=Je(ue,rr),Dt=bn(!1,{value:Yt,defaultValue:Vt}),En=dt(Dt,2),wn=En[0],Bn=En[1];function Qn(Yn,ir){var Dr=wn;return sn||(Dr=Yn,Bn(Dr),bt==null||bt(Dr,ir)),Dr}function wr(Yn){Yn.which===Wn.LEFT?Qn(!1,Yn):Yn.which===Wn.RIGHT&&Qn(!0,Yn),_n==null||_n(Yn)}function br(Yn){var ir=Qn(!wn,Yn);$t==null||$t(ir,Yn)}var Sr=_e()(St,Ht,(Me={},xe(Me,"".concat(St,"-checked"),wn),xe(Me,"".concat(St,"-disabled"),sn),Me));return Be.createElement("button",rt({},ct,{type:"button",role:"switch","aria-checked":wn,disabled:sn,className:Sr,ref:le,onKeyDown:wr,onClick:br}),it,Be.createElement("span",{className:"".concat(St,"-inner")},Be.createElement("span",{className:"".concat(St,"-inner-checked")},Mt),Be.createElement("span",{className:"".concat(St,"-inner-unchecked")},Ot)))});ln.displayName="Switch";var $e=ln,Se=se(45353),Bt=se(53124),xn=se(98866),Xt=se(98675),ft=se(84780),yt=se(14747),Gt=se(67968),qn=se(45503);const Dn=ue=>{const{componentCls:le,trackHeightSM:Me,trackPadding:Ge,trackMinWidthSM:St,innerMinMarginSM:Ht,innerMaxMarginSM:Yt,handleSizeSM:Vt}=ue,sn=`${le}-inner`;return{[le]:{[`&${le}-small`]:{minWidth:St,height:Me,lineHeight:`${Me}px`,[`${le}-inner`]:{paddingInlineStart:Yt,paddingInlineEnd:Ht,[`${sn}-checked`]:{marginInlineStart:`calc(-100% + ${Vt+Ge*2}px - ${Yt*2}px)`,marginInlineEnd:`calc(100% - ${Vt+Ge*2}px + ${Yt*2}px)`},[`${sn}-unchecked`]:{marginTop:-Me,marginInlineStart:0,marginInlineEnd:0}},[`${le}-handle`]:{width:Vt,height:Vt},[`${le}-loading-icon`]:{top:(Vt-ue.switchLoadingIconSize)/2,fontSize:ue.switchLoadingIconSize},[`&${le}-checked`]:{[`${le}-inner`]:{paddingInlineStart:Ht,paddingInlineEnd:Yt,[`${sn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${sn}-unchecked`]:{marginInlineStart:`calc(100% - ${Vt+Ge*2}px + ${Yt*2}px)`,marginInlineEnd:`calc(-100% + ${Vt+Ge*2}px - ${Yt*2}px)`}},[`${le}-handle`]:{insetInlineStart:`calc(100% - ${Vt+Ge}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${sn}`]:{[`${sn}-unchecked`]:{marginInlineStart:ue.marginXXS/2,marginInlineEnd:-ue.marginXXS/2}},[`&${le}-checked ${sn}`]:{[`${sn}-checked`]:{marginInlineStart:-ue.marginXXS/2,marginInlineEnd:ue.marginXXS/2}}}}}}},Tt=ue=>{const{componentCls:le,handleSize:Me}=ue;return{[le]:{[`${le}-loading-icon${ue.iconCls}`]:{position:"relative",top:(Me-ue.fontSize)/2,color:ue.switchLoadingIconColor,verticalAlign:"top"},[`&${le}-checked ${le}-loading-icon`]:{color:ue.switchColor}}}},mn=ue=>{const{componentCls:le,motion:Me,trackPadding:Ge,handleBg:St,handleShadow:Ht,handleSize:Yt}=ue,Vt=`${le}-handle`;return{[le]:{[Vt]:{position:"absolute",top:Ge,insetInlineStart:Ge,width:Yt,height:Yt,transition:`all ${ue.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:St,borderRadius:Yt/2,boxShadow:Ht,transition:`all ${ue.switchDuration} ease-in-out`,content:'""'}},[`&${le}-checked ${Vt}`]:{insetInlineStart:`calc(100% - ${Yt+Ge}px)`},[`&:not(${le}-disabled):active`]:Me?{[`${Vt}::before`]:{insetInlineEnd:ue.switchHandleActiveInset,insetInlineStart:0},[`&${le}-checked ${Vt}::before`]:{insetInlineEnd:0,insetInlineStart:ue.switchHandleActiveInset}}:{}}}},Vn=ue=>{const{componentCls:le,trackHeight:Me,trackPadding:Ge,innerMinMargin:St,innerMaxMargin:Ht,handleSize:Yt}=ue,Vt=`${le}-inner`;return{[le]:{[Vt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ht,paddingInlineEnd:St,transition:`padding-inline-start ${ue.switchDuration} ease-in-out, padding-inline-end ${ue.switchDuration} ease-in-out`,[`${Vt}-checked, ${Vt}-unchecked`]:{display:"block",color:ue.colorTextLightSolid,fontSize:ue.fontSizeSM,transition:`margin-inline-start ${ue.switchDuration} ease-in-out, margin-inline-end ${ue.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Vt}-checked`]:{marginInlineStart:`calc(-100% + ${Yt+Ge*2}px - ${Ht*2}px)`,marginInlineEnd:`calc(100% - ${Yt+Ge*2}px + ${Ht*2}px)`},[`${Vt}-unchecked`]:{marginTop:-Me,marginInlineStart:0,marginInlineEnd:0}},[`&${le}-checked ${Vt}`]:{paddingInlineStart:St,paddingInlineEnd:Ht,[`${Vt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Vt}-unchecked`]:{marginInlineStart:`calc(100% - ${Yt+Ge*2}px + ${Ht*2}px)`,marginInlineEnd:`calc(-100% + ${Yt+Ge*2}px - ${Ht*2}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${Vt}`]:{[`${Vt}-unchecked`]:{marginInlineStart:Ge*2,marginInlineEnd:-Ge*2}},[`&${le}-checked ${Vt}`]:{[`${Vt}-checked`]:{marginInlineStart:-Ge*2,marginInlineEnd:Ge*2}}}}}},kn=ue=>{const{componentCls:le,trackHeight:Me,trackMinWidth:Ge}=ue;return{[le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,yt.Wf)(ue)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ge,height:Me,lineHeight:`${Me}px`,verticalAlign:"middle",background:ue.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ue.motionDurationMid}`,userSelect:"none",[`&:hover:not(${le}-disabled)`]:{background:ue.colorTextTertiary}}),(0,yt.Qy)(ue)),{[`&${le}-checked`]:{background:ue.switchColor,[`&:hover:not(${le}-disabled)`]:{background:ue.colorPrimaryHover}},[`&${le}-loading, &${le}-disabled`]:{cursor:"not-allowed",opacity:ue.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${le}-rtl`]:{direction:"rtl"}})}};var Pe=(0,Gt.Z)("Switch",ue=>{const le=(0,qn.TS)(ue,{switchDuration:ue.motionDurationMid,switchColor:ue.colorPrimary,switchDisabledOpacity:ue.opacityLoading,switchLoadingIconSize:ue.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${ue.opacityLoading})`,switchHandleActiveInset:"-30%"});return[kn(le),Vn(le),mn(le),Tt(le),Dn(le)]},ue=>{const{fontSize:le,lineHeight:Me,controlHeight:Ge,colorWhite:St}=ue,Ht=le*Me,Yt=Ge/2,Vt=2,sn=Ht-Vt*2,it=Yt-Vt*2;return{trackHeight:Ht,trackHeightSM:Yt,trackMinWidth:sn*2+Vt*4,trackMinWidthSM:it*2+Vt*2,trackPadding:Vt,handleBg:St,handleSize:sn,handleSizeSM:it,handleShadow:`0 2px 4px 0 ${new ft.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:sn/2,innerMaxMargin:sn+Vt+Vt*2,innerMinMarginSM:it/2,innerMaxMarginSM:it+Vt+Vt*2}}),fe=function(ue,le){var Me={};for(var Ge in ue)Object.prototype.hasOwnProperty.call(ue,Ge)&&le.indexOf(Ge)<0&&(Me[Ge]=ue[Ge]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Ge=Object.getOwnPropertySymbols(ue);St<Ge.length;St++)le.indexOf(Ge[St])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ge[St])&&(Me[Ge[St]]=ue[Ge[St]]);return Me};const ce=Be.forwardRef((ue,le)=>{const{prefixCls:Me,size:Ge,disabled:St,loading:Ht,className:Yt,rootClassName:Vt,style:sn}=ue,it=fe(ue,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Mt,direction:Ot,switch:$t}=Be.useContext(Bt.E_),bt=Be.useContext(xn.Z),_n=(St!=null?St:bt)||Ht,ct=Mt("switch",Me),Dt=Be.createElement("div",{className:`${ct}-handle`},Ht&&Be.createElement(ae.Z,{className:`${ct}-loading-icon`})),[En,wn]=Pe(ct),Bn=(0,Xt.Z)(Ge),Qn=_e()($t==null?void 0:$t.className,{[`${ct}-small`]:Bn==="small",[`${ct}-loading`]:Ht,[`${ct}-rtl`]:Ot==="rtl"},Yt,Vt,wn),wr=Object.assign(Object.assign({},$t==null?void 0:$t.style),sn);return En(Be.createElement(Se.Z,{component:"Switch"},Be.createElement($e,Object.assign({},it,{prefixCls:ct,className:Qn,style:wr,disabled:_n,ref:le,loadingIcon:Dt}))))});ce.__ANT_SWITCH=!0;var he=ce},66368:function(yn,fn,se){"use strict";se.d(fn,{default:function(){return Qi}});var ae=se(73475),Le=se(25877),_e=se(38308),rt=se(94184),ge=se.n(rt),ke=se(87462),Ee=se(4942),xe=se(1413),me=se(97685),De=se(71002),ot=se(45987),Ne=se(67294),mt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Re=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(Re)||/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(Re==null?void 0:Re.substr(0,4))};function dt(Re){var Ze=Ne.useRef();Ze.current=Re;var je=Ne.useCallback(function(){for(var et,Et=arguments.length,It=new Array(Et),Ut=0;Ut<Et;Ut++)It[Ut]=arguments[Ut];return(et=Ze.current)===null||et===void 0?void 0:et.call.apply(et,[Ze].concat(It))},[]);return je}function pt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Je=pt()?Ne.useLayoutEffect:Ne.useEffect,Be=function(Ze,je){var et=Ne.useRef(!0);Je(function(){return Ze(et.current)},je),Je(function(){return et.current=!1,function(){et.current=!0}},[])},gt=function(Ze,je){Be(function(et){if(!et)return Ze()},je)},nn=null;function at(Re){var Ze=Ne.useRef(!1),je=Ne.useState(Re),et=(0,me.Z)(je,2),Et=et[0],It=et[1];Ne.useEffect(function(){return Ze.current=!1,function(){Ze.current=!0}},[]);function Ut(Ln,Nn){Nn&&Ze.current||It(Ln)}return[Et,Ut]}function vt(Re){return Re!==void 0}function Ce(Re,Ze){var je=Ze||{},et=je.defaultValue,Et=je.value,It=je.onChange,Ut=je.postState,Ln=at(function(){return vt(Et)?Et:vt(et)?typeof et=="function"?et():et:typeof Re=="function"?Re():Re}),Nn=(0,me.Z)(Ln,2),Mr=Nn[0],Hr=Nn[1],xr=Et!==void 0?Et:Mr,Gn=Ut?Ut(xr):xr,jn=dt(It),$n=at([xr]),dr=(0,me.Z)($n,2),Kr=dr[0],kr=dr[1];gt(function(){var Ir=Kr[0];Mr!==Ir&&jn(Mr,Ir)},[Kr]),gt(function(){vt(Et)||Hr(Et)},[Et]);var Cr=dt(function(Ir,Ue){Hr(Ir,Ue),kr([xr],Ue)});return[Gn,Cr]}var Ae=se(62874),Ye=(0,Ne.createContext)(null),Ve=Ne.forwardRef(function(Re,Ze){var je=Re.prefixCls,et=Re.className,Et=Re.style,It=Re.id,Ut=Re.active,Ln=Re.tabKey,Nn=Re.children;return Ne.createElement("div",{id:It&&"".concat(It,"-panel-").concat(Ln),role:"tabpanel",tabIndex:Ut?0:-1,"aria-labelledby":It&&"".concat(It,"-tab-").concat(Ln),"aria-hidden":!Ut,style:Et,className:ge()(je,Ut&&"".concat(je,"-active"),et),ref:Ze},Nn)}),At=Ve,xt=["key","forceRender","style","className"];function Lt(Re){var Ze=Re.id,je=Re.activeKey,et=Re.animated,Et=Re.tabPosition,It=Re.destroyInactiveTabPane,Ut=Ne.useContext(Ye),Ln=Ut.prefixCls,Nn=Ut.tabs,Mr=et.tabPane,Hr="".concat(Ln,"-tabpane");return Ne.createElement("div",{className:ge()("".concat(Ln,"-content-holder"))},Ne.createElement("div",{className:ge()("".concat(Ln,"-content"),"".concat(Ln,"-content-").concat(Et),(0,Ee.Z)({},"".concat(Ln,"-content-animated"),Mr))},Nn.map(function(xr){var Gn=xr.key,jn=xr.forceRender,$n=xr.style,dr=xr.className,Kr=(0,ot.Z)(xr,xt),kr=Gn===je;return Ne.createElement(Ae.Z,(0,ke.Z)({key:Gn,visible:kr,forceRender:jn,removeOnLeave:!!It,leavedClassName:"".concat(Hr,"-hidden")},et.tabPaneMotion),function(Cr,Ir){var Ue=Cr.style,We=Cr.className;return Ne.createElement(At,(0,ke.Z)({},Kr,{prefixCls:Hr,id:Ze,tabKey:Gn,animated:Mr,active:kr,style:(0,xe.Z)((0,xe.Z)({},$n),Ue),className:ge()(dr,We),ref:Ir}))})})))}var nt=se(74902),qt=se(48555),zt=se(59864);function bn(Re,Ze,je){var et=Ne.useRef({});return(!("value"in et.current)||je(et.current.condition,Ze))&&(et.current.value=Re(),et.current.condition=Ze),et.current.value}function dn(Re,Ze){typeof Re=="function"?Re(Ze):(0,De.Z)(Re)==="object"&&Re&&"current"in Re&&(Re.current=Ze)}function Wn(){for(var Re=arguments.length,Ze=new Array(Re),je=0;je<Re;je++)Ze[je]=arguments[je];var et=Ze.filter(function(Et){return Et});return et.length<=1?et[0]:function(Et){Ze.forEach(function(It){dn(It,Et)})}}function rr(){for(var Re=arguments.length,Ze=new Array(Re),je=0;je<Re;je++)Ze[je]=arguments[je];return bn(function(){return Wn.apply(void 0,Ze)},Ze,function(et,Et){return et.length===Et.length&&et.every(function(It,Ut){return It===Et[Ut]})})}function ln(Re){var Ze,je,et=isMemo(Re)?Re.type.type:Re.type;return!(typeof et=="function"&&!((Ze=et.prototype)!==null&&Ze!==void 0&&Ze.render)||typeof Re=="function"&&!((je=Re.prototype)!==null&&je!==void 0&&je.render))}var $e={width:0,height:0,left:0,top:0};function Se(Re,Ze,je){return(0,Ne.useMemo)(function(){for(var et,Et=new Map,It=Ze.get((et=Re[0])===null||et===void 0?void 0:et.key)||$e,Ut=It.left+It.width,Ln=0;Ln<Re.length;Ln+=1){var Nn=Re[Ln].key,Mr=Ze.get(Nn);if(!Mr){var Hr;Mr=Ze.get((Hr=Re[Ln-1])===null||Hr===void 0?void 0:Hr.key)||$e}var xr=Et.get(Nn)||(0,xe.Z)({},Mr);xr.right=Ut-xr.left-xr.width,Et.set(Nn,xr)}return Et},[Re.map(function(et){return et.key}).join("_"),Ze,je])}function Bt(Re,Ze){var je=Ne.useRef(Re),et=Ne.useState({}),Et=(0,me.Z)(et,2),It=Et[1];function Ut(Ln){var Nn=typeof Ln=="function"?Ln(je.current):Ln;Nn!==je.current&&Ze(Nn,je.current),je.current=Nn,It({})}return[je.current,Ut]}var xn=.1,Xt=.01,ft=20,yt=Math.pow(.995,ft);function Gt(Re,Ze){var je=(0,Ne.useState)(),et=(0,me.Z)(je,2),Et=et[0],It=et[1],Ut=(0,Ne.useState)(0),Ln=(0,me.Z)(Ut,2),Nn=Ln[0],Mr=Ln[1],Hr=(0,Ne.useState)(0),xr=(0,me.Z)(Hr,2),Gn=xr[0],jn=xr[1],$n=(0,Ne.useState)(),dr=(0,me.Z)($n,2),Kr=dr[0],kr=dr[1],Cr=(0,Ne.useRef)();function Ir(tt){var _t=tt.touches[0],rn=_t.screenX,Xe=_t.screenY;It({x:rn,y:Xe}),window.clearInterval(Cr.current)}function Ue(tt){if(Et){tt.preventDefault();var _t=tt.touches[0],rn=_t.screenX,Xe=_t.screenY;It({x:rn,y:Xe});var Qe=rn-Et.x,lt=Xe-Et.y;Ze(Qe,lt);var ut=Date.now();Mr(ut),jn(ut-Nn),kr({x:Qe,y:lt})}}function We(){if(Et&&(It(null),kr(null),Kr)){var tt=Kr.x/Gn,_t=Kr.y/Gn,rn=Math.abs(tt),Xe=Math.abs(_t);if(Math.max(rn,Xe)<xn)return;var Qe=tt,lt=_t;Cr.current=window.setInterval(function(){if(Math.abs(Qe)<Xt&&Math.abs(lt)<Xt){window.clearInterval(Cr.current);return}Qe*=yt,lt*=yt,Ze(Qe*ft,lt*ft)},ft)}}var we=(0,Ne.useRef)();function Oe(tt){var _t=tt.deltaX,rn=tt.deltaY,Xe=0,Qe=Math.abs(_t),lt=Math.abs(rn);Qe===lt?Xe=we.current==="x"?_t:rn:Qe>lt?(Xe=_t,we.current="x"):(Xe=rn,we.current="y"),Ze(-Xe,-Xe)&&tt.preventDefault()}var st=(0,Ne.useRef)(null);st.current={onTouchStart:Ir,onTouchMove:Ue,onTouchEnd:We,onWheel:Oe},Ne.useEffect(function(){function tt(Qe){st.current.onTouchStart(Qe)}function _t(Qe){st.current.onTouchMove(Qe)}function rn(Qe){st.current.onTouchEnd(Qe)}function Xe(Qe){st.current.onWheel(Qe)}return document.addEventListener("touchmove",_t,{passive:!1}),document.addEventListener("touchend",rn,{passive:!1}),Re.current.addEventListener("touchstart",tt,{passive:!1}),Re.current.addEventListener("wheel",Xe),function(){document.removeEventListener("touchmove",_t),document.removeEventListener("touchend",rn)}},[])}function qn(Re){var Ze=(0,Ne.useState)(0),je=(0,me.Z)(Ze,2),et=je[0],Et=je[1],It=(0,Ne.useRef)(0),Ut=(0,Ne.useRef)();return Ut.current=Re,gt(function(){var Ln;(Ln=Ut.current)===null||Ln===void 0||Ln.call(Ut)},[et]),function(){It.current===et&&(It.current+=1,Et(It.current))}}function Dn(Re){var Ze=(0,Ne.useRef)([]),je=(0,Ne.useState)({}),et=(0,me.Z)(je,2),Et=et[1],It=(0,Ne.useRef)(typeof Re=="function"?Re():Re),Ut=qn(function(){var Nn=It.current;Ze.current.forEach(function(Mr){Nn=Mr(Nn)}),Ze.current=[],It.current=Nn,Et({})});function Ln(Nn){Ze.current.push(Nn),Ut()}return[It.current,Ln]}var Tt={width:0,height:0,left:0,top:0,right:0};function mn(Re,Ze,je,et,Et,It,Ut){var Ln=Ut.tabs,Nn=Ut.tabPosition,Mr=Ut.rtl,Hr,xr,Gn;return["top","bottom"].includes(Nn)?(Hr="width",xr=Mr?"right":"left",Gn=Math.abs(je)):(Hr="height",xr="top",Gn=-je),(0,Ne.useMemo)(function(){if(!Ln.length)return[0,0];for(var jn=Ln.length,$n=jn,dr=0;dr<jn;dr+=1){var Kr=Re.get(Ln[dr].key)||Tt;if(Kr[xr]+Kr[Hr]>Gn+Ze){$n=dr-1;break}}for(var kr=0,Cr=jn-1;Cr>=0;Cr-=1){var Ir=Re.get(Ln[Cr].key)||Tt;if(Ir[xr]<Gn){kr=Cr+1;break}}return kr>=$n?[0,0]:[kr,$n]},[Re,Ze,et,Et,It,Gn,Nn,Ln.map(function(jn){return jn.key}).join("_"),Mr])}function Vn(Re){var Ze;return Re instanceof Map?(Ze={},Re.forEach(function(je,et){Ze[et]=je})):Ze=Re,JSON.stringify(Ze)}var kn="TABS_DQ";function Pe(Re){return String(Re).replace(/"/g,kn)}function fe(Re,Ze,je,et){return!(!je||et||Re===!1||Re===void 0&&(Ze===!1||Ze===null))}function ce(Re,Ze){var je=Re.prefixCls,et=Re.editable,Et=Re.locale,It=Re.style;return!et||et.showAdd===!1?null:Ne.createElement("button",{ref:Ze,type:"button",className:"".concat(je,"-nav-add"),style:It,"aria-label":(Et==null?void 0:Et.addAriaLabel)||"Add tab",onClick:function(Ln){et.onEdit("add",{event:Ln})}},et.addIcon||"+")}var he=Ne.forwardRef(ce),ue=Ne.forwardRef(function(Re,Ze){var je=Re.position,et=Re.prefixCls,Et=Re.extra;if(!Et)return null;var It,Ut={};return(0,De.Z)(Et)==="object"&&!Ne.isValidElement(Et)?Ut=Et:Ut.right=Et,je==="right"&&(It=Ut.right),je==="left"&&(It=Ut.left),It?Ne.createElement("div",{className:"".concat(et,"-extra-content"),ref:Ze},It):null}),le=ue,Me=se(62709);function Ge(Re,Ze,je){var et=React.useRef({});return(!("value"in et.current)||je(et.current.condition,Ze))&&(et.current.value=Re(),et.current.condition=Ze),et.current.value}function St(Re,Ze){typeof Re=="function"?Re(Ze):(0,De.Z)(Re)==="object"&&Re&&"current"in Re&&(Re.current=Ze)}function Ht(){for(var Re=arguments.length,Ze=new Array(Re),je=0;je<Re;je++)Ze[je]=arguments[je];var et=Ze.filter(function(Et){return Et});return et.length<=1?et[0]:function(Et){Ze.forEach(function(It){St(It,Et)})}}function Yt(){for(var Re=arguments.length,Ze=new Array(Re),je=0;je<Re;je++)Ze[je]=arguments[je];return useMemo(function(){return Ht.apply(void 0,Ze)},Ze,function(et,Et){return et.length===Et.length&&et.every(function(It,Ut){return It===Et[Ut]})})}function Vt(Re){var Ze,je,et=(0,zt.isMemo)(Re)?Re.type.type:Re.type;return!(typeof et=="function"&&!((Ze=et.prototype)!==null&&Ze!==void 0&&Ze.render)||typeof Re=="function"&&!((je=Re.prototype)!==null&&je!==void 0&&je.render))}var sn={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(Ze){var je=Ze.keyCode;if(Ze.altKey&&!Ze.ctrlKey||Ze.metaKey||je>=sn.F1&&je<=sn.F12)return!1;switch(je){case sn.ALT:case sn.CAPS_LOCK:case sn.CONTEXT_MENU:case sn.CTRL:case sn.DOWN:case sn.END:case sn.ESC:case sn.HOME:case sn.INSERT:case sn.LEFT:case sn.MAC_FF_META:case sn.META:case sn.NUMLOCK:case sn.NUM_CENTER:case sn.PAGE_DOWN:case sn.PAGE_UP:case sn.PAUSE:case sn.PRINT_SCREEN:case sn.RIGHT:case sn.SHIFT:case sn.UP:case sn.WIN_KEY:case sn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ze){if(Ze>=sn.ZERO&&Ze<=sn.NINE||Ze>=sn.NUM_ZERO&&Ze<=sn.NUM_MULTIPLY||Ze>=sn.A&&Ze<=sn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ze===0)return!0;switch(Ze){case sn.SPACE:case sn.QUESTION_MARK:case sn.NUM_PLUS:case sn.NUM_MINUS:case sn.NUM_PERIOD:case sn.NUM_DIVISION:case sn.SEMICOLON:case sn.DASH:case sn.EQUALS:case sn.COMMA:case sn.PERIOD:case sn.SLASH:case sn.APOSTROPHE:case sn.SINGLE_QUOTE:case sn.OPEN_SQUARE_BRACKET:case sn.BACKSLASH:case sn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},it=sn,Mt=function(Ze){return+setTimeout(Ze,16)},Ot=function(Ze){return clearTimeout(Ze)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Mt=function(Ze){return window.requestAnimationFrame(Ze)},Ot=function(Ze){return window.cancelAnimationFrame(Ze)});var $t=0,bt=new Map;function _n(Re){bt.delete(Re)}var ct=function(Ze){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;$t+=1;var et=$t;function Et(It){if(It===0)_n(et),Ze();else{var Ut=Mt(function(){Et(It-1)});bt.set(et,Ut)}}return Et(je),et};ct.cancel=function(Re){var Ze=bt.get(Re);return _n(Ze),Ot(Ze)};var Dt=ct,En=it.ESC,wn=it.TAB;function Bn(Re){var Ze=Re.visible,je=Re.triggerRef,et=Re.onVisibleChange,Et=Re.autoFocus,It=Re.overlayRef,Ut=Ne.useRef(!1),Ln=function(){if(Ze){var xr,Gn;(xr=je.current)===null||xr===void 0||(Gn=xr.focus)===null||Gn===void 0||Gn.call(xr),et==null||et(!1)}},Nn=function(){var xr;return(xr=It.current)!==null&&xr!==void 0&&xr.focus?(It.current.focus(),Ut.current=!0,!0):!1},Mr=function(xr){switch(xr.keyCode){case En:Ln();break;case wn:{var Gn=!1;Ut.current||(Gn=Nn()),Gn?xr.preventDefault():Ln();break}}};Ne.useEffect(function(){return Ze?(window.addEventListener("keydown",Mr),Et&&Dt(Nn,3),function(){window.removeEventListener("keydown",Mr),Ut.current=!1}):function(){Ut.current=!1}},[Ze])}var Qn=(0,Ne.forwardRef)(function(Re,Ze){var je=Re.overlay,et=Re.arrow,Et=Re.prefixCls,It=(0,Ne.useMemo)(function(){var Ln;return typeof je=="function"?Ln=je():Ln=je,Ln},[je]),Ut=Ht(Ze,It==null?void 0:It.ref);return Ne.createElement(Ne.Fragment,null,et&&Ne.createElement("div",{className:"".concat(Et,"-arrow")}),Ne.cloneElement(It,{ref:Vt(It)?Ut:void 0}))}),wr=Qn,br={adjustX:1,adjustY:1},Sr=[0,0],Yn={topLeft:{points:["bl","tl"],overflow:br,offset:[0,-4],targetOffset:Sr},top:{points:["bc","tc"],overflow:br,offset:[0,-4],targetOffset:Sr},topRight:{points:["br","tr"],overflow:br,offset:[0,-4],targetOffset:Sr},bottomLeft:{points:["tl","bl"],overflow:br,offset:[0,4],targetOffset:Sr},bottom:{points:["tc","bc"],overflow:br,offset:[0,4],targetOffset:Sr},bottomRight:{points:["tr","br"],overflow:br,offset:[0,4],targetOffset:Sr}},ir=Yn,Dr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function ti(Re,Ze){var je,et=Re.arrow,Et=et===void 0?!1:et,It=Re.prefixCls,Ut=It===void 0?"rc-dropdown":It,Ln=Re.transitionName,Nn=Re.animation,Mr=Re.align,Hr=Re.placement,xr=Hr===void 0?"bottomLeft":Hr,Gn=Re.placements,jn=Gn===void 0?ir:Gn,$n=Re.getPopupContainer,dr=Re.showAction,Kr=Re.hideAction,kr=Re.overlayClassName,Cr=Re.overlayStyle,Ir=Re.visible,Ue=Re.trigger,We=Ue===void 0?["hover"]:Ue,we=Re.autoFocus,Oe=Re.overlay,st=Re.children,tt=Re.onVisibleChange,_t=(0,ot.Z)(Re,Dr),rn=Ne.useState(),Xe=(0,me.Z)(rn,2),Qe=Xe[0],lt=Xe[1],ut="visible"in Re?Ir:Qe,en=Ne.useRef(null),cn=Ne.useRef(null),Wt=Ne.useRef(null);Ne.useImperativeHandle(Ze,function(){return en.current});var un=function(zn){lt(zn),tt==null||tt(zn)};Bn({visible:ut,triggerRef:Wt,onVisibleChange:un,autoFocus:we,overlayRef:cn});var On=function(zn){var Pr=Re.onOverlayClick;lt(!1),Pr&&Pr(zn)},ar=function(){return Ne.createElement(wr,{ref:cn,overlay:Oe,prefixCls:Ut,arrow:Et})},Fn=function(){return typeof Oe=="function"?ar:ar()},An=function(){var zn=Re.minOverlayWidthMatchTrigger,Pr=Re.alignPoint;return"minOverlayWidthMatchTrigger"in Re?zn:!Pr},Zn=function(){var zn=Re.openClassName;return zn!==void 0?zn:"".concat(Ut,"-open")},or=Ne.cloneElement(st,{className:ge()((je=st.props)===null||je===void 0?void 0:je.className,ut&&Zn()),ref:Vt(st)?Ht(Wt,st.ref):void 0}),Tr=Kr;return!Tr&&We.indexOf("contextMenu")!==-1&&(Tr=["click"]),Ne.createElement(Me.Z,(0,ke.Z)({builtinPlacements:jn},_t,{prefixCls:Ut,ref:en,popupClassName:ge()(kr,(0,Ee.Z)({},"".concat(Ut,"-show-arrow"),Et)),popupStyle:Cr,action:We,showAction:dr,hideAction:Tr,popupPlacement:xr,popupAlign:Mr,popupTransitionName:Ln,popupAnimation:Nn,popupVisible:ut,stretch:An()?"minWidth":"",popup:Fn(),onPopupVisibleChange:un,onPopupClick:On,getPopupContainer:$n}),or)}var Ai=Ne.forwardRef(ti),tr=Ai,Jr=se(78595),kt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ze){var je=Ze.keyCode;if(Ze.altKey&&!Ze.ctrlKey||Ze.metaKey||je>=kt.F1&&je<=kt.F12)return!1;switch(je){case kt.ALT:case kt.CAPS_LOCK:case kt.CONTEXT_MENU:case kt.CTRL:case kt.DOWN:case kt.END:case kt.ESC:case kt.HOME:case kt.INSERT:case kt.LEFT:case kt.MAC_FF_META:case kt.META:case kt.NUMLOCK:case kt.NUM_CENTER:case kt.PAGE_DOWN:case kt.PAGE_UP:case kt.PAUSE:case kt.PRINT_SCREEN:case kt.RIGHT:case kt.SHIFT:case kt.UP:case kt.WIN_KEY:case kt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ze){if(Ze>=kt.ZERO&&Ze<=kt.NINE||Ze>=kt.NUM_ZERO&&Ze<=kt.NUM_MULTIPLY||Ze>=kt.A&&Ze<=kt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ze===0)return!0;switch(Ze){case kt.SPACE:case kt.QUESTION_MARK:case kt.NUM_PLUS:case kt.NUM_MINUS:case kt.NUM_PERIOD:case kt.NUM_DIVISION:case kt.SEMICOLON:case kt.DASH:case kt.EQUALS:case kt.COMMA:case kt.PERIOD:case kt.SLASH:case kt.APOSTROPHE:case kt.SINGLE_QUOTE:case kt.OPEN_SQUARE_BRACKET:case kt.BACKSLASH:case kt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},vn=kt;function Rn(Re,Ze){var je=Re.prefixCls,et=Re.id,Et=Re.tabs,It=Re.locale,Ut=Re.mobile,Ln=Re.moreIcon,Nn=Ln===void 0?"More":Ln,Mr=Re.moreTransitionName,Hr=Re.style,xr=Re.className,Gn=Re.editable,jn=Re.tabBarGutter,$n=Re.rtl,dr=Re.removeAriaLabel,Kr=Re.onTabClick,kr=Re.getPopupContainer,Cr=Re.popupClassName,Ir=(0,Ne.useState)(!1),Ue=(0,me.Z)(Ir,2),We=Ue[0],we=Ue[1],Oe=(0,Ne.useState)(null),st=(0,me.Z)(Oe,2),tt=st[0],_t=st[1],rn="".concat(et,"-more-popup"),Xe="".concat(je,"-dropdown"),Qe=tt!==null?"".concat(rn,"-").concat(tt):null,lt=It==null?void 0:It.dropdownAriaLabel;function ut(Fn,An){Fn.preventDefault(),Fn.stopPropagation(),Gn.onEdit("remove",{key:An,event:Fn})}var en=Ne.createElement(Jr.ZP,{onClick:function(An){var Zn=An.key,or=An.domEvent;Kr(Zn,or),we(!1)},prefixCls:"".concat(Xe,"-menu"),id:rn,tabIndex:-1,role:"listbox","aria-activedescendant":Qe,selectedKeys:[tt],"aria-label":lt!==void 0?lt:"expanded dropdown"},Et.map(function(Fn){var An=Fn.closable,Zn=Fn.disabled,or=Fn.closeIcon,Tr=Fn.key,pr=Fn.label,zn=fe(An,or,Gn,Zn);return Ne.createElement(Jr.sN,{key:Tr,id:"".concat(rn,"-").concat(Tr),role:"option","aria-controls":et&&"".concat(et,"-panel-").concat(Tr),disabled:Zn},Ne.createElement("span",null,pr),zn&&Ne.createElement("button",{type:"button","aria-label":dr||"remove",tabIndex:0,className:"".concat(Xe,"-menu-item-remove"),onClick:function(Fr){Fr.stopPropagation(),ut(Fr,Tr)}},or||Gn.removeIcon||"\xD7"))}));function cn(Fn){for(var An=Et.filter(function(zn){return!zn.disabled}),Zn=An.findIndex(function(zn){return zn.key===tt})||0,or=An.length,Tr=0;Tr<or;Tr+=1){Zn=(Zn+Fn+or)%or;var pr=An[Zn];if(!pr.disabled){_t(pr.key);return}}}function Wt(Fn){var An=Fn.which;if(!We){[vn.DOWN,vn.SPACE,vn.ENTER].includes(An)&&(we(!0),Fn.preventDefault());return}switch(An){case vn.UP:cn(-1),Fn.preventDefault();break;case vn.DOWN:cn(1),Fn.preventDefault();break;case vn.ESC:we(!1);break;case vn.SPACE:case vn.ENTER:tt!==null&&Kr(tt,Fn);break}}(0,Ne.useEffect)(function(){var Fn=document.getElementById(Qe);Fn&&Fn.scrollIntoView&&Fn.scrollIntoView(!1)},[tt]),(0,Ne.useEffect)(function(){We||_t(null)},[We]);var un=(0,Ee.Z)({},$n?"marginRight":"marginLeft",jn);Et.length||(un.visibility="hidden",un.order=1);var On=ge()((0,Ee.Z)({},"".concat(Xe,"-rtl"),$n)),ar=Ut?null:Ne.createElement(tr,{prefixCls:Xe,overlay:en,trigger:["hover"],visible:Et.length?We:!1,transitionName:Mr,onVisibleChange:we,overlayClassName:ge()(On,Cr),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:kr},Ne.createElement("button",{type:"button",className:"".concat(je,"-nav-more"),style:un,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":rn,id:"".concat(et,"-more"),"aria-expanded":We,onKeyDown:Wt},Nn));return Ne.createElement("div",{className:ge()("".concat(je,"-nav-operations"),xr),style:Hr,ref:Ze},ar,Ne.createElement(he,{prefixCls:je,locale:It,editable:Gn}))}var In=Ne.memo(Ne.forwardRef(Rn),function(Re,Ze){return Ze.tabMoving});function nr(Re){var Ze,je=Re.prefixCls,et=Re.id,Et=Re.active,It=Re.tab,Ut=It.key,Ln=It.label,Nn=It.disabled,Mr=It.closeIcon,Hr=Re.closable,xr=Re.renderWrapper,Gn=Re.removeAriaLabel,jn=Re.editable,$n=Re.onClick,dr=Re.onFocus,Kr=Re.style,kr="".concat(je,"-tab"),Cr=fe(Hr,Mr,jn,Nn);function Ir(we){Nn||$n(we)}function Ue(we){we.preventDefault(),we.stopPropagation(),jn.onEdit("remove",{key:Ut,event:we})}var We=Ne.createElement("div",{key:Ut,"data-node-key":Pe(Ut),className:ge()(kr,(Ze={},(0,Ee.Z)(Ze,"".concat(kr,"-with-remove"),Cr),(0,Ee.Z)(Ze,"".concat(kr,"-active"),Et),(0,Ee.Z)(Ze,"".concat(kr,"-disabled"),Nn),Ze)),style:Kr,onClick:Ir},Ne.createElement("div",{role:"tab","aria-selected":Et,id:et&&"".concat(et,"-tab-").concat(Ut),className:"".concat(kr,"-btn"),"aria-controls":et&&"".concat(et,"-panel-").concat(Ut),"aria-disabled":Nn,tabIndex:Nn?null:0,onClick:function(Oe){Oe.stopPropagation(),Ir(Oe)},onKeyDown:function(Oe){[vn.SPACE,vn.ENTER].includes(Oe.which)&&(Oe.preventDefault(),Ir(Oe))},onFocus:dr},Ln),Cr&&Ne.createElement("button",{type:"button","aria-label":Gn||"remove",tabIndex:0,className:"".concat(kr,"-remove"),onClick:function(Oe){Oe.stopPropagation(),Ue(Oe)}},Mr||jn.removeIcon||"\xD7"));return xr?xr(We):We}var gr=nr,sr=function(Ze){return+setTimeout(Ze,16)},Un=function(Ze){return clearTimeout(Ze)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(sr=function(Ze){return window.requestAnimationFrame(Ze)},Un=function(Ze){return window.cancelAnimationFrame(Ze)});var qe=0,wt=new Map;function Zt(Re){wt.delete(Re)}var an=function(Ze){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;qe+=1;var et=qe;function Et(It){if(It===0)Zt(et),Ze();else{var Ut=sr(function(){Et(It-1)});wt.set(et,Ut)}}return Et(je),et};an.cancel=function(Re){var Ze=wt.get(Re);return Zt(Ze),Un(Ze)};var ze=an,Ct=function(Ze){var je=Ze.activeTabOffset,et=Ze.horizontal,Et=Ze.rtl,It=Ze.indicatorSize,Ut=(0,Ne.useState)(),Ln=(0,me.Z)(Ut,2),Nn=Ln[0],Mr=Ln[1],Hr=(0,Ne.useRef)(),xr=function($n){return typeof It=="function"?It($n):typeof It=="number"?It:$n};function Gn(){ze.cancel(Hr.current)}return(0,Ne.useEffect)(function(){var jn={};return je&&(et?(Et?(jn.right=je.right+je.width/2,jn.transform="translateX(50%)"):(jn.left=je.left+je.width/2,jn.transform="translateX(-50%)"),jn.width=xr(je.width)):(jn.top=je.top+je.height/2,jn.transform="translateY(-50%)",jn.height=xr(je.height))),Gn(),Hr.current=ze(function(){Mr(jn)}),Gn},[je,et,Et,It]),{style:Nn}},tn=Ct,Kt=function(Ze){var je=Ze.current||{},et=je.offsetWidth,Et=et===void 0?0:et,It=je.offsetHeight,Ut=It===void 0?0:It;return[Et,Ut]},hn=function(Ze,je){return Ze[je?0:1]};function gn(Re,Ze){var je,et=Ne.useContext(Ye),Et=et.prefixCls,It=et.tabs,Ut=Re.className,Ln=Re.style,Nn=Re.id,Mr=Re.animated,Hr=Re.activeKey,xr=Re.rtl,Gn=Re.extra,jn=Re.editable,$n=Re.locale,dr=Re.tabPosition,Kr=Re.tabBarGutter,kr=Re.children,Cr=Re.onTabClick,Ir=Re.onTabScroll,Ue=Re.indicatorSize,We=(0,Ne.useRef)(),we=(0,Ne.useRef)(),Oe=(0,Ne.useRef)(),st=(0,Ne.useRef)(),tt=(0,Ne.useRef)(),_t=(0,Ne.useRef)(),rn=(0,Ne.useRef)(),Xe=dr==="top"||dr==="bottom",Qe=Bt(0,function(fi,Wi){Xe&&Ir&&Ir({direction:fi>Wi?"left":"right"})}),lt=(0,me.Z)(Qe,2),ut=lt[0],en=lt[1],cn=Bt(0,function(fi,Wi){!Xe&&Ir&&Ir({direction:fi>Wi?"top":"bottom"})}),Wt=(0,me.Z)(cn,2),un=Wt[0],On=Wt[1],ar=(0,Ne.useState)([0,0]),Fn=(0,me.Z)(ar,2),An=Fn[0],Zn=Fn[1],or=(0,Ne.useState)([0,0]),Tr=(0,me.Z)(or,2),pr=Tr[0],zn=Tr[1],Pr=(0,Ne.useState)([0,0]),Fr=(0,me.Z)(Pr,2),si=Fr[0],pi=Fr[1],hi=(0,Ne.useState)([0,0]),ki=(0,me.Z)(hi,2),Ni=ki[0],mi=ki[1],bi=Dn(new Map),Yr=(0,me.Z)(bi,2),ii=Yr[0],xi=Yr[1],Ii=Se(It,ii,pr[0]),ha=hn(An,Xe),da=hn(pr,Xe),ji=hn(si,Xe),Xi=hn(Ni,Xe),Ci=ha<da+ji,gi=Ci?ha-Xi:ha-ji,la="".concat(Et,"-nav-operations-hidden"),Ei=0,Ur=0;Xe&&xr?(Ei=0,Ur=Math.max(0,da-gi)):(Ei=Math.min(0,gi-da),Ur=0);function vi(fi){return fi<Ei?Ei:fi>Ur?Ur:fi}var Ji=(0,Ne.useRef)(),Zi=(0,Ne.useState)(),ua=(0,me.Z)(Zi,2),Li=ua[0],ga=ua[1];function fa(){ga(Date.now())}function sa(){window.clearTimeout(Ji.current)}Gt(st,function(fi,Wi){function Aa(va,Ga){va(function(Za){var To=vi(Za+Ga);return To})}return Ci?(Xe?Aa(en,fi):Aa(On,Wi),sa(),fa(),!0):!1}),(0,Ne.useEffect)(function(){return sa(),Li&&(Ji.current=window.setTimeout(function(){ga(0)},100)),sa},[Li]);var ca=mn(Ii,gi,Xe?ut:un,da,ji,Xi,(0,xe.Z)((0,xe.Z)({},Re),{},{tabs:It})),ba=(0,me.Z)(ca,2),Ta=ba[0],Ca=ba[1],Ma=dt(function(){var fi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hr,Wi=Ii.get(fi)||{width:0,height:0,left:0,right:0,top:0};if(Xe){var Aa=ut;xr?Wi.right<ut?Aa=Wi.right:Wi.right+Wi.width>ut+gi&&(Aa=Wi.right+Wi.width-gi):Wi.left<-ut?Aa=-Wi.left:Wi.left+Wi.width>-ut+gi&&(Aa=-(Wi.left+Wi.width-gi)),On(0),en(vi(Aa))}else{var va=un;Wi.top<-un?va=-Wi.top:Wi.top+Wi.height>-un+gi&&(va=-(Wi.top+Wi.height-gi)),en(0),On(vi(va))}}),Ha={};dr==="top"||dr==="bottom"?Ha[xr?"marginRight":"marginLeft"]=Kr:Ha.marginTop=Kr;var Va=It.map(function(fi,Wi){var Aa=fi.key;return Ne.createElement(gr,{id:Nn,prefixCls:Et,key:Aa,tab:fi,style:Wi===0?void 0:Ha,closable:fi.closable,editable:jn,active:Aa===Hr,renderWrapper:kr,removeAriaLabel:$n==null?void 0:$n.removeAriaLabel,onClick:function(Ga){Cr(Aa,Ga)},onFocus:function(){Ma(Aa),fa(),st.current&&(xr||(st.current.scrollLeft=0),st.current.scrollTop=0)}})}),$a=function(){return xi(function(){var Wi=new Map;return It.forEach(function(Aa){var va,Ga=Aa.key,Za=(va=tt.current)===null||va===void 0?void 0:va.querySelector('[data-node-key="'.concat(Pe(Ga),'"]'));Za&&Wi.set(Ga,{width:Za.offsetWidth,height:Za.offsetHeight,left:Za.offsetLeft,top:Za.offsetTop})}),Wi})};(0,Ne.useEffect)(function(){$a()},[It.map(function(fi){return fi.key}).join("_")]);var Ra=qn(function(){var fi=Kt(We),Wi=Kt(we),Aa=Kt(Oe);Zn([fi[0]-Wi[0]-Aa[0],fi[1]-Wi[1]-Aa[1]]);var va=Kt(rn);pi(va);var Ga=Kt(_t);mi(Ga);var Za=Kt(tt);zn([Za[0]-va[0],Za[1]-va[1]]),$a()}),xa=It.slice(0,Ta),zi=It.slice(Ca+1),Yi=[].concat((0,nt.Z)(xa),(0,nt.Z)(zi)),pa=Ii.get(Hr),Ea=tn({activeTabOffset:pa,horizontal:Xe,rtl:xr,indicatorSize:Ue}),Ka=Ea.style;(0,Ne.useEffect)(function(){Ma()},[Hr,Ei,Ur,Vn(pa),Vn(Ii),Xe]),(0,Ne.useEffect)(function(){Ra()},[xr]);var eo=!!Yi.length,uo="".concat(Et,"-nav-wrap"),Mo,ko,to,Pa;return Xe?xr?(ko=ut>0,Mo=ut!==Ur):(Mo=ut<0,ko=ut!==Ei):(to=un<0,Pa=un!==Ei),Ne.createElement(qt.Z,{onResize:Ra},Ne.createElement("div",{ref:rr(Ze,We),role:"tablist",className:ge()("".concat(Et,"-nav"),Ut),style:Ln,onKeyDown:function(){fa()}},Ne.createElement(le,{ref:we,position:"left",extra:Gn,prefixCls:Et}),Ne.createElement(qt.Z,{onResize:Ra},Ne.createElement("div",{className:ge()(uo,(je={},(0,Ee.Z)(je,"".concat(uo,"-ping-left"),Mo),(0,Ee.Z)(je,"".concat(uo,"-ping-right"),ko),(0,Ee.Z)(je,"".concat(uo,"-ping-top"),to),(0,Ee.Z)(je,"".concat(uo,"-ping-bottom"),Pa),je)),ref:st},Ne.createElement(qt.Z,{onResize:Ra},Ne.createElement("div",{ref:tt,className:"".concat(Et,"-nav-list"),style:{transform:"translate(".concat(ut,"px, ").concat(un,"px)"),transition:Li?"none":void 0}},Va,Ne.createElement(he,{ref:rn,prefixCls:Et,locale:$n,editable:jn,style:(0,xe.Z)((0,xe.Z)({},Va.length===0?void 0:Ha),{},{visibility:eo?"hidden":null})}),Ne.createElement("div",{className:ge()("".concat(Et,"-ink-bar"),(0,Ee.Z)({},"".concat(Et,"-ink-bar-animated"),Mr.inkBar)),style:Ka}))))),Ne.createElement(In,(0,ke.Z)({},Re,{removeAriaLabel:$n==null?void 0:$n.removeAriaLabel,ref:_t,prefixCls:Et,tabs:Yi,className:!eo&&la,tabMoving:!!Li})),Ne.createElement(le,{ref:Oe,position:"right",extra:Gn,prefixCls:Et})))}var Xn=Ne.forwardRef(gn),_r=["renderTabBar"],lr=["label","key"];function mr(Re){var Ze=Re.renderTabBar,je=(0,ot.Z)(Re,_r),et=Ne.useContext(Ye),Et=et.tabs;if(Ze){var It=(0,xe.Z)((0,xe.Z)({},je),{},{panes:Et.map(function(Ut){var Ln=Ut.label,Nn=Ut.key,Mr=(0,ot.Z)(Ut,lr);return Ne.createElement(At,(0,ke.Z)({tab:Ln,key:Nn,tabKey:Nn},Mr))})});return Ze(It,Xn)}return Ne.createElement(Xn,je)}var Or={},Rr=[],Zr=function(Ze){Rr.push(Ze)};function Kn(Re,Ze){if(0)var je}function fr(Re,Ze){if(0)var je}function Mn(){Or={}}function Sn(Re,Ze,je){!Ze&&!Or[je]&&(Re(!1,je),Or[je]=!0)}function on(Re,Ze){Sn(Kn,Re,Ze)}function yr(Re,Ze){Sn(fr,Re,Ze)}on.preMessage=Zr,on.resetWarned=Mn,on.noteOnce=yr;var Wr=null;function Lr(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Ze;return Re===!1?Ze={inkBar:!1,tabPane:!1}:Re===!0?Ze={inkBar:!0,tabPane:!1}:Ze=(0,xe.Z)({inkBar:!0},(0,De.Z)(Re)==="object"?Re:{}),Ze.tabPaneMotion&&Ze.tabPane===void 0&&(Ze.tabPane=!0),!Ze.tabPaneMotion&&Ze.tabPane&&(Ze.tabPane=!1),Ze}var qr=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],Cn=0;function Er(Re,Ze){var je,et=Re.id,Et=Re.prefixCls,It=Et===void 0?"rc-tabs":Et,Ut=Re.className,Ln=Re.items,Nn=Re.direction,Mr=Re.activeKey,Hr=Re.defaultActiveKey,xr=Re.editable,Gn=Re.animated,jn=Re.tabPosition,$n=jn===void 0?"top":jn,dr=Re.tabBarGutter,Kr=Re.tabBarStyle,kr=Re.tabBarExtraContent,Cr=Re.locale,Ir=Re.moreIcon,Ue=Re.moreTransitionName,We=Re.destroyInactiveTabPane,we=Re.renderTabBar,Oe=Re.onChange,st=Re.onTabClick,tt=Re.onTabScroll,_t=Re.getPopupContainer,rn=Re.popupClassName,Xe=Re.indicatorSize,Qe=(0,ot.Z)(Re,qr),lt=Ne.useMemo(function(){return(Ln||[]).filter(function(mi){return mi&&(0,De.Z)(mi)==="object"&&"key"in mi})},[Ln]),ut=Nn==="rtl",en=Lr(Gn),cn=(0,Ne.useState)(!1),Wt=(0,me.Z)(cn,2),un=Wt[0],On=Wt[1];(0,Ne.useEffect)(function(){On(mt())},[]);var ar=Ce(function(){var mi;return(mi=lt[0])===null||mi===void 0?void 0:mi.key},{value:Mr,defaultValue:Hr}),Fn=(0,me.Z)(ar,2),An=Fn[0],Zn=Fn[1],or=(0,Ne.useState)(function(){return lt.findIndex(function(mi){return mi.key===An})}),Tr=(0,me.Z)(or,2),pr=Tr[0],zn=Tr[1];(0,Ne.useEffect)(function(){var mi=lt.findIndex(function(Yr){return Yr.key===An});if(mi===-1){var bi;mi=Math.max(0,Math.min(pr,lt.length-1)),Zn((bi=lt[mi])===null||bi===void 0?void 0:bi.key)}zn(mi)},[lt.map(function(mi){return mi.key}).join("_"),An,pr]);var Pr=Ce(null,{value:et}),Fr=(0,me.Z)(Pr,2),si=Fr[0],pi=Fr[1];(0,Ne.useEffect)(function(){et||(pi("rc-tabs-".concat(Cn)),Cn+=1)},[]);function hi(mi,bi){st==null||st(mi,bi);var Yr=mi!==An;Zn(mi),Yr&&(Oe==null||Oe(mi))}var ki={id:si,activeKey:An,animated:en,tabPosition:$n,rtl:ut,mobile:un},Ni=(0,xe.Z)((0,xe.Z)({},ki),{},{editable:xr,locale:Cr,moreIcon:Ir,moreTransitionName:Ue,tabBarGutter:dr,onTabClick:hi,onTabScroll:tt,extra:kr,style:Kr,panes:null,getPopupContainer:_t,popupClassName:rn,indicatorSize:Xe});return Ne.createElement(Ye.Provider,{value:{tabs:lt,prefixCls:It}},Ne.createElement("div",(0,ke.Z)({ref:Ze,id:et,className:ge()(It,"".concat(It,"-").concat($n),(je={},(0,Ee.Z)(je,"".concat(It,"-mobile"),un),(0,Ee.Z)(je,"".concat(It,"-editable"),xr),(0,Ee.Z)(je,"".concat(It,"-rtl"),ut),je),Ut)},Qe),Ne.createElement(mr,(0,ke.Z)({},Ni,{renderTabBar:we})),Ne.createElement(Lt,(0,ke.Z)({destroyInactiveTabPane:We},ki,{animated:en}))))}var vr=Ne.forwardRef(Er),ta=vr,Hi=ta,Pi=se(53124),Di=se(98675),Ki=()=>null,di=se(33603);const na={motionAppear:!1,motionEnter:!0,motionLeave:!0};function aa(Re){let Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},je;return Ze===!1?je={inkBar:!1,tabPane:!1}:Ze===!0?je={inkBar:!0,tabPane:!0}:je=Object.assign({inkBar:!0},typeof Ze=="object"?Ze:{}),je.tabPane&&(je.tabPaneMotion=Object.assign(Object.assign({},na),{motionName:(0,di.m)(Re,"switch")})),je}var _i=se(37419),Mi=function(Re,Ze){var je={};for(var et in Re)Object.prototype.hasOwnProperty.call(Re,et)&&Ze.indexOf(et)<0&&(je[et]=Re[et]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,et=Object.getOwnPropertySymbols(Re);Et<et.length;Et++)Ze.indexOf(et[Et])<0&&Object.prototype.propertyIsEnumerable.call(Re,et[Et])&&(je[et[Et]]=Re[et[Et]]);return je};function Sa(Re){return Re.filter(Ze=>Ze)}function Si(Re,Ze){if(Re)return Re;const je=(0,_i.Z)(Ze).map(et=>{if(Ne.isValidElement(et)){const{key:Et,props:It}=et,Ut=It||{},{tab:Ln}=Ut,Nn=Mi(Ut,["tab"]);return Object.assign(Object.assign({key:String(Et)},Nn),{label:Ln})}return null});return Sa(je)}var $r=se(14747),Ft=se(67968),Pt=se(45503),pn=se(67771),cr=Re=>{const{componentCls:Ze,motionDurationSlow:je}=Re;return[{[Ze]:{[`${Ze}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${je}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${je}`}}}}},[(0,pn.oN)(Re,"slide-up"),(0,pn.oN)(Re,"slide-down")]]};const Gr=Re=>{const{componentCls:Ze,tabsCardPadding:je,cardBg:et,cardGutter:Et,colorBorderSecondary:It,itemSelectedColor:Ut}=Re;return{[`${Ze}-card`]:{[`> ${Ze}-nav, > div > ${Ze}-nav`]:{[`${Ze}-tab`]:{margin:0,padding:je,background:et,border:`${Re.lineWidth}px ${Re.lineType} ${It}`,transition:`all ${Re.motionDurationSlow} ${Re.motionEaseInOut}`},[`${Ze}-tab-active`]:{color:Ut,background:Re.colorBgContainer},[`${Ze}-ink-bar`]:{visibility:"hidden"}},[`&${Ze}-top, &${Ze}-bottom`]:{[`> ${Ze}-nav, > div > ${Ze}-nav`]:{[`${Ze}-tab + ${Ze}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Et}px`}}}},[`&${Ze}-top`]:{[`> ${Ze}-nav, > div > ${Ze}-nav`]:{[`${Ze}-tab`]:{borderRadius:`${Re.borderRadiusLG}px ${Re.borderRadiusLG}px 0 0`},[`${Ze}-tab-active`]:{borderBottomColor:Re.colorBgContainer}}},[`&${Ze}-bottom`]:{[`> ${Ze}-nav, > div > ${Ze}-nav`]:{[`${Ze}-tab`]:{borderRadius:`0 0 ${Re.borderRadiusLG}px ${Re.borderRadiusLG}px`},[`${Ze}-tab-active`]:{borderTopColor:Re.colorBgContainer}}},[`&${Ze}-left, &${Ze}-right`]:{[`> ${Ze}-nav, > div > ${Ze}-nav`]:{[`${Ze}-tab + ${Ze}-tab`]:{marginTop:`${Et}px`}}},[`&${Ze}-left`]:{[`> ${Ze}-nav, > div > ${Ze}-nav`]:{[`${Ze}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Re.borderRadiusLG}px 0 0 ${Re.borderRadiusLG}px`}},[`${Ze}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Re.colorBgContainer}}}},[`&${Ze}-right`]:{[`> ${Ze}-nav, > div > ${Ze}-nav`]:{[`${Ze}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Re.borderRadiusLG}px ${Re.borderRadiusLG}px 0`}},[`${Ze}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Re.colorBgContainer}}}}}}},Xr=Re=>{const{componentCls:Ze,itemHoverColor:je,dropdownEdgeChildVerticalPadding:et}=Re;return{[`${Ze}-dropdown`]:Object.assign(Object.assign({},(0,$r.Wf)(Re)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Re.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Ze}-dropdown-menu`]:{maxHeight:Re.tabsDropdownHeight,margin:0,padding:`${et}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Re.colorBgContainer,backgroundClip:"padding-box",borderRadius:Re.borderRadiusLG,outline:"none",boxShadow:Re.boxShadowSecondary,"&-item":Object.assign(Object.assign({},$r.vS),{display:"flex",alignItems:"center",minWidth:Re.tabsDropdownWidth,margin:0,padding:`${Re.paddingXXS}px ${Re.paddingSM}px`,color:Re.colorText,fontWeight:"normal",fontSize:Re.fontSize,lineHeight:Re.lineHeight,cursor:"pointer",transition:`all ${Re.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Re.marginSM},color:Re.colorTextDescription,fontSize:Re.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:je}},"&:hover":{background:Re.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Re.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},oi=Re=>{const{componentCls:Ze,margin:je,colorBorderSecondary:et,horizontalMargin:Et,verticalItemPadding:It,verticalItemMargin:Ut}=Re;return{[`${Ze}-top, ${Ze}-bottom`]:{flexDirection:"column",[`> ${Ze}-nav, > div > ${Ze}-nav`]:{margin:Et,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Re.lineWidth}px ${Re.lineType} ${et}`,content:"''"},[`${Ze}-ink-bar`]:{height:Re.lineWidthBold,"&-animated":{transition:`width ${Re.motionDurationSlow}, left ${Re.motionDurationSlow},
|
|
|
right ${Re.motionDurationSlow}`}},[`${Ze}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Re.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Re.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Re.boxShadowTabsOverflowRight},[`&${Ze}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Ze}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Ze}-top`]:{[`> ${Ze}-nav,
|
|
|
> div > ${Ze}-nav`]:{"&::before":{bottom:0},[`${Ze}-ink-bar`]:{bottom:0}}},[`${Ze}-bottom`]:{[`> ${Ze}-nav, > div > ${Ze}-nav`]:{order:1,marginTop:`${je}px`,marginBottom:0,"&::before":{top:0},[`${Ze}-ink-bar`]:{top:0}},[`> ${Ze}-content-holder, > div > ${Ze}-content-holder`]:{order:0}},[`${Ze}-left, ${Ze}-right`]:{[`> ${Ze}-nav, > div > ${Ze}-nav`]:{flexDirection:"column",minWidth:Re.controlHeight*1.25,[`${Ze}-tab`]:{padding:It,textAlign:"center"},[`${Ze}-tab + ${Ze}-tab`]:{margin:Ut},[`${Ze}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Re.controlHeight},"&::before":{top:0,boxShadow:Re.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Re.boxShadowTabsOverflowBottom},[`&${Ze}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Ze}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Ze}-ink-bar`]:{width:Re.lineWidthBold,"&-animated":{transition:`height ${Re.motionDurationSlow}, top ${Re.motionDurationSlow}`}},[`${Ze}-nav-list, ${Ze}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Ze}-left`]:{[`> ${Ze}-nav, > div > ${Ze}-nav`]:{[`${Ze}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Ze}-content-holder, > div > ${Ze}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Re.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Re.lineWidth}px ${Re.lineType} ${Re.colorBorder}`},[`> ${Ze}-content > ${Ze}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Re.paddingLG}}}},[`${Ze}-right`]:{[`> ${Ze}-nav, > div > ${Ze}-nav`]:{order:1,[`${Ze}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Ze}-content-holder, > div > ${Ze}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Re.lineWidth},borderRight:{_skip_check_:!0,value:`${Re.lineWidth}px ${Re.lineType} ${Re.colorBorder}`},[`> ${Ze}-content > ${Ze}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Re.paddingLG}}}}}},jt=Re=>{const{componentCls:Ze,cardPaddingSM:je,cardPaddingLG:et,horizontalItemPaddingSM:Et,horizontalItemPaddingLG:It}=Re;return{[Ze]:{"&-small":{[`> ${Ze}-nav`]:{[`${Ze}-tab`]:{padding:Et,fontSize:Re.titleFontSizeSM}}},"&-large":{[`> ${Ze}-nav`]:{[`${Ze}-tab`]:{padding:It,fontSize:Re.titleFontSizeLG}}}},[`${Ze}-card`]:{[`&${Ze}-small`]:{[`> ${Ze}-nav`]:{[`${Ze}-tab`]:{padding:je}},[`&${Ze}-bottom`]:{[`> ${Ze}-nav ${Ze}-tab`]:{borderRadius:`0 0 ${Re.borderRadius}px ${Re.borderRadius}px`}},[`&${Ze}-top`]:{[`> ${Ze}-nav ${Ze}-tab`]:{borderRadius:`${Re.borderRadius}px ${Re.borderRadius}px 0 0`}},[`&${Ze}-right`]:{[`> ${Ze}-nav ${Ze}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Re.borderRadius}px ${Re.borderRadius}px 0`}}},[`&${Ze}-left`]:{[`> ${Ze}-nav ${Ze}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Re.borderRadius}px 0 0 ${Re.borderRadius}px`}}}},[`&${Ze}-large`]:{[`> ${Ze}-nav`]:{[`${Ze}-tab`]:{padding:et}}}}}},ur=Re=>{const{componentCls:Ze,itemActiveColor:je,itemHoverColor:et,iconCls:Et,tabsHorizontalItemMargin:It,horizontalItemPadding:Ut,itemSelectedColor:Ln,itemColor:Nn}=Re,Mr=`${Ze}-tab`;return{[Mr]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Ut,fontSize:Re.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Nn,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:je}},(0,$r.Qy)(Re)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Re.marginXXS},marginLeft:{_skip_check_:!0,value:Re.marginXS},color:Re.colorTextDescription,fontSize:Re.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Re.motionDurationSlow}`,"&:hover":{color:Re.colorTextHeading}},"&:hover":{color:et},[`&${Mr}-active ${Mr}-btn`]:{color:Ln,textShadow:Re.tabsActiveTextShadow},[`&${Mr}-disabled`]:{color:Re.colorTextDisabled,cursor:"not-allowed"},[`&${Mr}-disabled ${Mr}-btn, &${Mr}-disabled ${Ze}-remove`]:{"&:focus, &:active":{color:Re.colorTextDisabled}},[`& ${Mr}-remove ${Et}`]:{margin:0},[Et]:{marginRight:{_skip_check_:!0,value:Re.marginSM}}},[`${Mr} + ${Mr}`]:{margin:{_skip_check_:!0,value:It}}}},li=Re=>{const{componentCls:Ze,tabsHorizontalItemMarginRTL:je,iconCls:et,cardGutter:Et}=Re;return{[`${Ze}-rtl`]:{direction:"rtl",[`${Ze}-nav`]:{[`${Ze}-tab`]:{margin:{_skip_check_:!0,value:je},[`${Ze}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[et]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Re.marginSM}px`}},[`${Ze}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Re.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Re.marginXXS}px`},[et]:{margin:0}}}},[`&${Ze}-left`]:{[`> ${Ze}-nav`]:{order:1},[`> ${Ze}-content-holder`]:{order:0}},[`&${Ze}-right`]:{[`> ${Ze}-nav`]:{order:0},[`> ${Ze}-content-holder`]:{order:1}},[`&${Ze}-card${Ze}-top, &${Ze}-card${Ze}-bottom`]:{[`> ${Ze}-nav, > div > ${Ze}-nav`]:{[`${Ze}-tab + ${Ze}-tab`]:{marginRight:{_skip_check_:!0,value:Et},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Ze}-dropdown-rtl`]:{direction:"rtl"},[`${Ze}-menu-item`]:{[`${Ze}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ci=Re=>{const{componentCls:Ze,tabsCardPadding:je,cardHeight:et,cardGutter:Et,itemHoverColor:It,itemActiveColor:Ut,colorBorderSecondary:Ln}=Re;return{[Ze]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,$r.Wf)(Re)),{display:"flex",[`> ${Ze}-nav, > div > ${Ze}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Ze}-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 ${Re.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Ze}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Re.motionDurationSlow}`},[`${Ze}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Ze}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Ze}-nav-more`]:{position:"relative",padding:je,background:"transparent",border:0,color:Re.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Re.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Ze}-nav-add`]:Object.assign({minWidth:et,marginLeft:{_skip_check_:!0,value:Et},padding:`0 ${Re.paddingXS}px`,background:"transparent",border:`${Re.lineWidth}px ${Re.lineType} ${Ln}`,borderRadius:`${Re.borderRadiusLG}px ${Re.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Re.colorText,transition:`all ${Re.motionDurationSlow} ${Re.motionEaseInOut}`,"&:hover":{color:It},"&:active, &:focus:not(:focus-visible)":{color:Ut}},(0,$r.Qy)(Re))},[`${Ze}-extra-content`]:{flex:"none"},[`${Ze}-ink-bar`]:{position:"absolute",background:Re.inkBarColor,pointerEvents:"none"}}),ur(Re)),{[`${Ze}-content`]:{position:"relative",width:"100%"},[`${Ze}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Ze}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Ze}-centered`]:{[`> ${Ze}-nav, > div > ${Ze}-nav`]:{[`${Ze}-nav-wrap`]:{[`&:not([class*='${Ze}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Oi=(0,Ft.Z)("Tabs",Re=>{const Ze=(0,Pt.TS)(Re,{tabsCardPadding:Re.cardPadding||`${(Re.cardHeight-Math.round(Re.fontSize*Re.lineHeight))/2-Re.lineWidth}px ${Re.padding}px`,dropdownEdgeChildVerticalPadding:Re.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Re.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Re.horizontalItemGutter}px`});return[jt(Ze),li(Ze),oi(Ze),Xr(Ze),Gr(Ze),ci(Ze),cr(Ze)]},Re=>{const Ze=Re.controlHeightLG;return{zIndexPopup:Re.zIndexPopupBase+50,cardBg:Re.colorFillAlter,cardHeight:Ze,cardPadding:"",cardPaddingSM:`${Re.paddingXXS*1.5}px ${Re.padding}px`,cardPaddingLG:`${Re.paddingXS}px ${Re.padding}px ${Re.paddingXXS*1.5}px`,titleFontSize:Re.fontSize,titleFontSizeLG:Re.fontSizeLG,titleFontSizeSM:Re.fontSize,inkBarColor:Re.colorPrimary,horizontalMargin:`0 0 ${Re.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Re.paddingSM}px 0`,horizontalItemPaddingSM:`${Re.paddingXS}px 0`,horizontalItemPaddingLG:`${Re.padding}px 0`,verticalItemPadding:`${Re.paddingXS}px ${Re.paddingLG}px`,verticalItemMargin:`${Re.margin}px 0 0 0`,itemColor:Re.colorText,itemSelectedColor:Re.colorPrimary,itemHoverColor:Re.colorPrimaryHover,itemActiveColor:Re.colorPrimaryActive,cardGutter:Re.marginXXS/2}}),ra=function(Re,Ze){var je={};for(var et in Re)Object.prototype.hasOwnProperty.call(Re,et)&&Ze.indexOf(et)<0&&(je[et]=Re[et]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,et=Object.getOwnPropertySymbols(Re);Et<et.length;Et++)Ze.indexOf(et[Et])<0&&Object.prototype.propertyIsEnumerable.call(Re,et[Et])&&(je[et[Et]]=Re[et[Et]]);return je};const hr=Re=>{const{type:Ze,className:je,rootClassName:et,size:Et,onEdit:It,hideAdd:Ut,centered:Ln,addIcon:Nn,popupClassName:Mr,children:Hr,items:xr,animated:Gn,style:jn,indicatorSize:$n}=Re,dr=ra(Re,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Kr,moreIcon:kr=Ne.createElement(Le.Z,null)}=dr,{direction:Cr,tabs:Ir,getPrefixCls:Ue,getPopupContainer:We}=Ne.useContext(Pi.E_),we=Ue("tabs",Kr),[Oe,st]=Oi(we);let tt;Ze==="editable-card"&&(tt={onEdit:(ut,en)=>{let{key:cn,event:Wt}=en;It==null||It(ut==="add"?Wt:cn,ut)},removeIcon:Ne.createElement(ae.Z,null),addIcon:Nn||Ne.createElement(_e.Z,null),showAdd:Ut!==!0});const _t=Ue(),rn=Si(xr,Hr),Xe=aa(we,Gn),Qe=(0,Di.Z)(Et),lt=Object.assign(Object.assign({},Ir==null?void 0:Ir.style),jn);return Oe(Ne.createElement(Hi,Object.assign({direction:Cr,getPopupContainer:We,moreTransitionName:`${_t}-slide-up`},dr,{items:rn,className:ge()({[`${we}-${Qe}`]:Qe,[`${we}-card`]:["card","editable-card"].includes(Ze),[`${we}-editable-card`]:Ze==="editable-card",[`${we}-centered`]:Ln},Ir==null?void 0:Ir.className,je,et,st),popupClassName:ge()(Mr,st),style:lt,editable:tt,moreIcon:kr,prefixCls:we,animated:Xe,indicatorSize:$n!=null?$n:Ir==null?void 0:Ir.indicatorSize})))};hr.TabPane=Ki;var Qi=hr},72665:function(yn,fn){"use strict";var se;var ae=typeof Symbol=="function"&&Symbol.for,Le=ae?Symbol.for("react.element"):60103,_e=ae?Symbol.for("react.portal"):60106,rt=ae?Symbol.for("react.fragment"):60107,ge=ae?Symbol.for("react.strict_mode"):60108,ke=ae?Symbol.for("react.profiler"):60114,Ee=ae?Symbol.for("react.provider"):60109,xe=ae?Symbol.for("react.context"):60110,me=ae?Symbol.for("react.async_mode"):60111,De=ae?Symbol.for("react.concurrent_mode"):60111,ot=ae?Symbol.for("react.forward_ref"):60112,Ne=ae?Symbol.for("react.suspense"):60113,mt=ae?Symbol.for("react.suspense_list"):60120,dt=ae?Symbol.for("react.memo"):60115,pt=ae?Symbol.for("react.lazy"):60116,Je=ae?Symbol.for("react.block"):60121,Be=ae?Symbol.for("react.fundamental"):60117,gt=ae?Symbol.for("react.responder"):60118,nn=ae?Symbol.for("react.scope"):60119;function at(Ce){if(typeof Ce=="object"&&Ce!==null){var Ae=Ce.$$typeof;switch(Ae){case Le:switch(Ce=Ce.type,Ce){case me:case De:case rt:case ke:case ge:case Ne:return Ce;default:switch(Ce=Ce&&Ce.$$typeof,Ce){case xe:case ot:case pt:case dt:case Ee:return Ce;default:return Ae}}case _e:return Ae}}}function vt(Ce){return at(Ce)===De}se=me,se=De,se=xe,se=Ee,se=Le,se=ot,se=rt,se=pt,se=dt,se=_e,se=ke,se=ge,se=Ne,se=function(Ce){return vt(Ce)||at(Ce)===me},se=vt,se=function(Ce){return at(Ce)===xe},se=function(Ce){return at(Ce)===Ee},se=function(Ce){return typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===Le},se=function(Ce){return at(Ce)===ot},se=function(Ce){return at(Ce)===rt},se=function(Ce){return at(Ce)===pt},fn.isMemo=function(Ce){return at(Ce)===dt},se=function(Ce){return at(Ce)===_e},se=function(Ce){return at(Ce)===ke},se=function(Ce){return at(Ce)===ge},se=function(Ce){return at(Ce)===Ne},se=function(Ce){return typeof Ce=="string"||typeof Ce=="function"||Ce===rt||Ce===De||Ce===ke||Ce===ge||Ce===Ne||Ce===mt||typeof Ce=="object"&&Ce!==null&&(Ce.$$typeof===pt||Ce.$$typeof===dt||Ce.$$typeof===Ee||Ce.$$typeof===xe||Ce.$$typeof===ot||Ce.$$typeof===Be||Ce.$$typeof===gt||Ce.$$typeof===nn||Ce.$$typeof===Je)},se=at},12060:function(yn,fn,se){"use strict";yn.exports=se(72665)},41771:function(yn,fn){"use strict";var se;var ae=typeof Symbol=="function"&&Symbol.for,Le=ae?Symbol.for("react.element"):60103,_e=ae?Symbol.for("react.portal"):60106,rt=ae?Symbol.for("react.fragment"):60107,ge=ae?Symbol.for("react.strict_mode"):60108,ke=ae?Symbol.for("react.profiler"):60114,Ee=ae?Symbol.for("react.provider"):60109,xe=ae?Symbol.for("react.context"):60110,me=ae?Symbol.for("react.async_mode"):60111,De=ae?Symbol.for("react.concurrent_mode"):60111,ot=ae?Symbol.for("react.forward_ref"):60112,Ne=ae?Symbol.for("react.suspense"):60113,mt=ae?Symbol.for("react.suspense_list"):60120,dt=ae?Symbol.for("react.memo"):60115,pt=ae?Symbol.for("react.lazy"):60116,Je=ae?Symbol.for("react.block"):60121,Be=ae?Symbol.for("react.fundamental"):60117,gt=ae?Symbol.for("react.responder"):60118,nn=ae?Symbol.for("react.scope"):60119;function at(Ce){if(typeof Ce=="object"&&Ce!==null){var Ae=Ce.$$typeof;switch(Ae){case Le:switch(Ce=Ce.type,Ce){case me:case De:case rt:case ke:case ge:case Ne:return Ce;default:switch(Ce=Ce&&Ce.$$typeof,Ce){case xe:case ot:case pt:case dt:case Ee:return Ce;default:return Ae}}case _e:return Ae}}}function vt(Ce){return at(Ce)===De}se=me,se=De,se=xe,se=Ee,se=Le,se=ot,se=rt,se=pt,se=dt,se=_e,se=ke,se=ge,se=Ne,se=function(Ce){return vt(Ce)||at(Ce)===me},se=vt,se=function(Ce){return at(Ce)===xe},se=function(Ce){return at(Ce)===Ee},se=function(Ce){return typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===Le},se=function(Ce){return at(Ce)===ot},fn.isFragment=function(Ce){return at(Ce)===rt},se=function(Ce){return at(Ce)===pt},se=function(Ce){return at(Ce)===dt},se=function(Ce){return at(Ce)===_e},se=function(Ce){return at(Ce)===ke},se=function(Ce){return at(Ce)===ge},se=function(Ce){return at(Ce)===Ne},se=function(Ce){return typeof Ce=="string"||typeof Ce=="function"||Ce===rt||Ce===De||Ce===ke||Ce===ge||Ce===Ne||Ce===mt||typeof Ce=="object"&&Ce!==null&&(Ce.$$typeof===pt||Ce.$$typeof===dt||Ce.$$typeof===Ee||Ce.$$typeof===xe||Ce.$$typeof===ot||Ce.$$typeof===Be||Ce.$$typeof===gt||Ce.$$typeof===nn||Ce.$$typeof===Je)},se=at},47655:function(yn,fn,se){"use strict";yn.exports=se(41771)},64701:function(yn,fn,se){"use strict";se.r(fn),se.d(fn,{ResizableTextArea:function(){return xn},default:function(){return Dn}});var ae=se(87462),Le=se(1413),_e=se(4942),rt=se(71002),ge=se(97685),ke=se(45987),Ee=se(74902),xe=se(94184),me=se.n(xe),De=se(67656),ot=se(87887),Ne=se(67294);function mt(Tt){var mn=Ne.useRef();mn.current=Tt;var Vn=Ne.useCallback(function(){for(var kn,Pe=arguments.length,fe=new Array(Pe),ce=0;ce<Pe;ce++)fe[ce]=arguments[ce];return(kn=mn.current)===null||kn===void 0?void 0:kn.call.apply(kn,[mn].concat(fe))},[]);return Vn}function dt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var pt=dt()?Ne.useLayoutEffect:Ne.useEffect,Je=pt,Be=function(mn,Vn){var kn=Ne.useRef(!0);pt(function(){if(!kn.current)return mn()},Vn),pt(function(){return kn.current=!1,function(){kn.current=!0}},[])};function gt(Tt){var mn=Ne.useRef(!1),Vn=Ne.useState(Tt),kn=(0,ge.Z)(Vn,2),Pe=kn[0],fe=kn[1];Ne.useEffect(function(){return mn.current=!1,function(){mn.current=!0}},[]);function ce(he,ue){ue&&mn.current||fe(he)}return[Pe,ce]}function nn(Tt){return Tt!==void 0}function at(Tt,mn){var Vn=mn||{},kn=Vn.defaultValue,Pe=Vn.value,fe=Vn.onChange,ce=Vn.postState,he=gt(function(){return nn(Pe)?Pe:nn(kn)?typeof kn=="function"?kn():kn:typeof Tt=="function"?Tt():Tt}),ue=(0,ge.Z)(he,2),le=ue[0],Me=ue[1],Ge=Pe!==void 0?Pe:le,St=ce?ce(Ge):Ge,Ht=mt(fe),Yt=gt([Ge]),Vt=(0,ge.Z)(Yt,2),sn=Vt[0],it=Vt[1];Be(function(){var Ot=sn[0];le!==Ot&&Ht(le,Ot)},[sn]),Be(function(){nn(Pe)||Me(Pe)},[Pe]);var Mt=mt(function(Ot,$t){Me(Ot,$t),it([Ge],$t)});return[St,Mt]}var vt=se(48555),Ce=function(mn){return+setTimeout(mn,16)},Ae=function(mn){return clearTimeout(mn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ce=function(mn){return window.requestAnimationFrame(mn)},Ae=function(mn){return window.cancelAnimationFrame(mn)});var Ye=0,Ve=new Map;function At(Tt){Ve.delete(Tt)}var xt=function(mn){var Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ye+=1;var kn=Ye;function Pe(fe){if(fe===0)At(kn),mn();else{var ce=Ce(function(){Pe(fe-1)});Ve.set(kn,ce)}}return Pe(Vn),kn};xt.cancel=function(Tt){var mn=Ve.get(Tt);return At(mn),Ae(mn)};var Lt=xt,nt=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,qt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],zt={},bn;function dn(Tt){var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Vn=Tt.getAttribute("id")||Tt.getAttribute("data-reactid")||Tt.getAttribute("name");if(mn&&zt[Vn])return zt[Vn];var kn=window.getComputedStyle(Tt),Pe=kn.getPropertyValue("box-sizing")||kn.getPropertyValue("-moz-box-sizing")||kn.getPropertyValue("-webkit-box-sizing"),fe=parseFloat(kn.getPropertyValue("padding-bottom"))+parseFloat(kn.getPropertyValue("padding-top")),ce=parseFloat(kn.getPropertyValue("border-bottom-width"))+parseFloat(kn.getPropertyValue("border-top-width")),he=qt.map(function(le){return"".concat(le,":").concat(kn.getPropertyValue(le))}).join(";"),ue={sizingStyle:he,paddingSize:fe,borderSize:ce,boxSizing:Pe};return mn&&Vn&&(zt[Vn]=ue),ue}function Wn(Tt){var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Vn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,kn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;bn||(bn=document.createElement("textarea"),bn.setAttribute("tab-index","-1"),bn.setAttribute("aria-hidden","true"),document.body.appendChild(bn)),Tt.getAttribute("wrap")?bn.setAttribute("wrap",Tt.getAttribute("wrap")):bn.removeAttribute("wrap");var Pe=dn(Tt,mn),fe=Pe.paddingSize,ce=Pe.borderSize,he=Pe.boxSizing,ue=Pe.sizingStyle;bn.setAttribute("style","".concat(ue,";").concat(nt)),bn.value=Tt.value||Tt.placeholder||"";var le=void 0,Me=void 0,Ge,St=bn.scrollHeight;if(he==="border-box"?St+=ce:he==="content-box"&&(St-=fe),Vn!==null||kn!==null){bn.value=" ";var Ht=bn.scrollHeight-fe;Vn!==null&&(le=Ht*Vn,he==="border-box"&&(le=le+fe+ce),St=Math.max(le,St)),kn!==null&&(Me=Ht*kn,he==="border-box"&&(Me=Me+fe+ce),Ge=St>Me?"":"hidden",St=Math.min(Me,St))}var Yt={height:St,overflowY:Ge,resize:"none"};return le&&(Yt.minHeight=le),Me&&(Yt.maxHeight=Me),Yt}var rr=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ln=0,$e=1,Se=2,Bt=Ne.forwardRef(function(Tt,mn){var Vn=Tt,kn=Vn.prefixCls,Pe=Vn.onPressEnter,fe=Vn.defaultValue,ce=Vn.value,he=Vn.autoSize,ue=Vn.onResize,le=Vn.className,Me=Vn.style,Ge=Vn.disabled,St=Vn.onChange,Ht=Vn.onInternalAutoSize,Yt=(0,ke.Z)(Vn,rr),Vt=at(fe,{value:ce,postState:function(In){return In!=null?In:""}}),sn=(0,ge.Z)(Vt,2),it=sn[0],Mt=sn[1],Ot=function(In){Mt(In.target.value),St==null||St(In)},$t=Ne.useRef();Ne.useImperativeHandle(mn,function(){return{textArea:$t.current}});var bt=Ne.useMemo(function(){return he&&(0,rt.Z)(he)==="object"?[he.minRows,he.maxRows]:[]},[he]),_n=(0,ge.Z)(bt,2),ct=_n[0],Dt=_n[1],En=!!he,wn=function(){try{if(document.activeElement===$t.current){var In=$t.current,nr=In.selectionStart,gr=In.selectionEnd,sr=In.scrollTop;$t.current.setSelectionRange(nr,gr),$t.current.scrollTop=sr}}catch(Un){}},Bn=Ne.useState(Se),Qn=(0,ge.Z)(Bn,2),wr=Qn[0],br=Qn[1],Sr=Ne.useState(),Yn=(0,ge.Z)(Sr,2),ir=Yn[0],Dr=Yn[1],ti=function(){br(ln)};Je(function(){En&&ti()},[ce,ct,Dt,En]),Je(function(){if(wr===ln)br($e);else if(wr===$e){var Rn=Wn($t.current,!1,ct,Dt);br(Se),Dr(Rn)}else wn()},[wr]);var Ai=Ne.useRef(),tr=function(){Lt.cancel(Ai.current)},Jr=function(In){wr===Se&&(ue==null||ue(In),he&&(tr(),Ai.current=Lt(function(){ti()})))};Ne.useEffect(function(){return tr},[]);var kt=En?ir:null,vn=(0,Le.Z)((0,Le.Z)({},Me),kt);return(wr===ln||wr===$e)&&(vn.overflowY="hidden",vn.overflowX="hidden"),Ne.createElement(vt.Z,{onResize:Jr,disabled:!(he||ue)},Ne.createElement("textarea",(0,ae.Z)({},Yt,{ref:$t,style:vn,className:me()(kn,le,(0,_e.Z)({},"".concat(kn,"-disabled"),Ge)),disabled:Ge,value:it,onChange:Ot})))}),xn=Bt,Xt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ft(Tt,mn){return(0,Ee.Z)(Tt||"").slice(0,mn).join("")}function yt(Tt,mn,Vn,kn){var Pe=Vn;return Tt?Pe=ft(Vn,kn):(0,Ee.Z)(mn||"").length<Vn.length&&(0,Ee.Z)(Vn||"").length>kn&&(Pe=mn),Pe}var Gt=Ne.forwardRef(function(Tt,mn){var Vn,kn=Tt.defaultValue,Pe=Tt.value,fe=Tt.onFocus,ce=Tt.onBlur,he=Tt.onChange,ue=Tt.allowClear,le=Tt.maxLength,Me=Tt.onCompositionStart,Ge=Tt.onCompositionEnd,St=Tt.suffix,Ht=Tt.prefixCls,Yt=Ht===void 0?"rc-textarea":Ht,Vt=Tt.classes,sn=Tt.showCount,it=Tt.className,Mt=Tt.style,Ot=Tt.disabled,$t=Tt.hidden,bt=Tt.classNames,_n=Tt.styles,ct=Tt.onResize,Dt=(0,ke.Z)(Tt,Xt),En=at(kn,{value:Pe,defaultValue:kn}),wn=(0,ge.Z)(En,2),Bn=wn[0],Qn=wn[1],wr=(0,Ne.useRef)(null),br=Ne.useState(!1),Sr=(0,ge.Z)(br,2),Yn=Sr[0],ir=Sr[1],Dr=Ne.useState(!1),ti=(0,ge.Z)(Dr,2),Ai=ti[0],tr=ti[1],Jr=Ne.useRef(),kt=Ne.useRef(0),vn=Ne.useState(null),Rn=(0,ge.Z)(vn,2),In=Rn[0],nr=Rn[1],gr=function(){var Or;(Or=wr.current)===null||Or===void 0||Or.textArea.focus()};(0,Ne.useImperativeHandle)(mn,function(){return{resizableTextArea:wr.current,focus:gr,blur:function(){var Or;(Or=wr.current)===null||Or===void 0||Or.textArea.blur()}}}),(0,Ne.useEffect)(function(){ir(function(mr){return!Ot&&mr})},[Ot]);var sr=Number(le)>0,Un=function(Or){tr(!0),Jr.current=Bn,kt.current=Or.currentTarget.selectionStart,Me==null||Me(Or)},qe=function(Or){tr(!1);var Rr=Or.currentTarget.value;if(sr){var Zr,Kn=kt.current>=le+1||kt.current===((Zr=Jr.current)===null||Zr===void 0?void 0:Zr.length);Rr=yt(Kn,Jr.current,Rr,le)}Rr!==Bn&&(Qn(Rr),(0,ot.rJ)(Or.currentTarget,Or,he,Rr)),Ge==null||Ge(Or)},wt=function(Or){var Rr=Or.target.value;if(!Ai&&sr){var Zr=Or.target.selectionStart>=le+1||Or.target.selectionStart===Rr.length||!Or.target.selectionStart;Rr=yt(Zr,Bn,Rr,le)}Qn(Rr),(0,ot.rJ)(Or.currentTarget,Or,he,Rr)},Zt=function(Or){var Rr=Dt.onPressEnter,Zr=Dt.onKeyDown;Or.key==="Enter"&&Rr&&Rr(Or),Zr==null||Zr(Or)},an=function(Or){ir(!0),fe==null||fe(Or)},ze=function(Or){ir(!1),ce==null||ce(Or)},Ct=function(Or){var Rr;Qn(""),gr(),(0,ot.rJ)((Rr=wr.current)===null||Rr===void 0?void 0:Rr.textArea,Or,he)},tn=(0,ot.D7)(Bn);!Ai&&sr&&Pe==null&&(tn=ft(tn,le));var Kt=St,hn;if(sn){var gn=(0,Ee.Z)(tn).length;(0,rt.Z)(sn)==="object"?hn=sn.formatter({value:tn,count:gn,maxLength:le}):hn="".concat(gn).concat(sr?" / ".concat(le):""),Kt=Ne.createElement(Ne.Fragment,null,Kt,Ne.createElement("span",{className:me()("".concat(Yt,"-data-count"),bt==null?void 0:bt.count),style:_n==null?void 0:_n.count},hn))}var Xn=function(Or){var Rr;ct==null||ct(Or),(Rr=wr.current)!==null&&Rr!==void 0&&Rr.textArea.style.height&&nr(!0)},_r=!Dt.autoSize&&!sn&&!ue,lr=Ne.createElement(De.BaseInput,{value:tn,allowClear:ue,handleReset:Ct,suffix:Kt,prefixCls:Yt,classes:{affixWrapper:me()(Vt==null?void 0:Vt.affixWrapper,(Vn={},(0,_e.Z)(Vn,"".concat(Yt,"-show-count"),sn),(0,_e.Z)(Vn,"".concat(Yt,"-textarea-allow-clear"),ue),Vn))},disabled:Ot,focused:Yn,className:it,style:(0,Le.Z)((0,Le.Z)({},Mt),In&&!_r?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof hn=="string"?hn:void 0}},hidden:$t,inputElement:Ne.createElement(xn,(0,ae.Z)({},Dt,{onKeyDown:Zt,onChange:wt,onFocus:an,onBlur:ze,onCompositionStart:Un,onCompositionEnd:qe,className:bt==null?void 0:bt.textarea,style:(0,Le.Z)((0,Le.Z)({},_n==null?void 0:_n.textarea),{},{resize:Mt==null?void 0:Mt.resize}),disabled:Ot,prefixCls:Yt,onResize:Xn,ref:wr}))});return lr}),qn=Gt,Dn=qn},1337:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return xe}});var ae=se(1413),Le=`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`,_e=`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`,rt="".concat(Le," ").concat(_e).split(/[\s\n]+/),ge="aria-",ke="data-";function Ee(me,De){return me.indexOf(De)===0}function xe(me){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ot;De===!1?ot={aria:!0,data:!0,attr:!0}:De===!0?ot={aria:!0}:ot=(0,ae.Z)({},De);var Ne={};return Object.keys(me).forEach(function(mt){(ot.aria&&(mt==="role"||Ee(mt,ge))||ot.data&&Ee(mt,ke)||ot.attr&&rt.includes(mt))&&(Ne[mt]=me[mt])}),Ne}},88386:function(yn,fn,se){(function(ae){ae(se(4631))})(function(ae){ae.defineOption("placeholder","",function(xe,me,De){var ot=De&&De!=ae.Init;if(me&&!ot)xe.on("blur",ge),xe.on("change",ke),xe.on("swapDoc",ke),ae.on(xe.getInputField(),"compositionupdate",xe.state.placeholderCompose=function(){rt(xe)}),ke(xe);else if(!me&&ot){xe.off("blur",ge),xe.off("change",ke),xe.off("swapDoc",ke),ae.off(xe.getInputField(),"compositionupdate",xe.state.placeholderCompose),Le(xe);var Ne=xe.getWrapperElement();Ne.className=Ne.className.replace(" CodeMirror-empty","")}me&&!xe.hasFocus()&&ge(xe)});function Le(xe){xe.state.placeholder&&(xe.state.placeholder.parentNode.removeChild(xe.state.placeholder),xe.state.placeholder=null)}function _e(xe){Le(xe);var me=xe.state.placeholder=document.createElement("pre");me.style.cssText="height: 0; overflow: visible",me.style.direction=xe.getOption("direction"),me.className="CodeMirror-placeholder CodeMirror-line-like";var De=xe.getOption("placeholder");typeof De=="string"&&(De=document.createTextNode(De)),me.appendChild(De),xe.display.lineSpace.insertBefore(me,xe.display.lineSpace.firstChild)}function rt(xe){setTimeout(function(){var me=!1,De=xe.getInputField();De.nodeName=="TEXTAREA"?me=!De.value:xe.lineCount()==1&&(me=!/[^\u200b]/.test(De.querySelector(".CodeMirror-line").textContent)),me?_e(xe):Le(xe)},20)}function ge(xe){Ee(xe)&&_e(xe)}function ke(xe){var me=xe.getWrapperElement(),De=Ee(xe);me.className=me.className.replace(" CodeMirror-empty","")+(De?" CodeMirror-empty":""),De?_e(xe):Le(xe)}function Ee(xe){return xe.lineCount()===1&&xe.getLine(0)===""}})},82801:function(yn,fn,se){(function(ae){ae(se(4631))})(function(ae){var Le={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},_e=ae.Pos;ae.defineOption("autoCloseBrackets",!1,function(pt,Je,Be){Be&&Be!=ae.Init&&(pt.removeKeyMap(ge),pt.state.closeBrackets=null),Je&&(ke(rt(Je,"pairs")),pt.state.closeBrackets=Je,pt.addKeyMap(ge))});function rt(pt,Je){return Je=="pairs"&&typeof pt=="string"?pt:typeof pt=="object"&&pt[Je]!=null?pt[Je]:Le[Je]}var ge={Backspace:me,Enter:De};function ke(pt){for(var Je=0;Je<pt.length;Je++){var Be=pt.charAt(Je),gt="'"+Be+"'";ge[gt]||(ge[gt]=Ee(Be))}}ke(Le.pairs+"`");function Ee(pt){return function(Je){return Ne(Je,pt)}}function xe(pt){var Je=pt.state.closeBrackets;if(!Je||Je.override)return Je;var Be=pt.getModeAt(pt.getCursor());return Be.closeBrackets||Je}function me(pt){var Je=xe(pt);if(!Je||pt.getOption("disableInput"))return ae.Pass;for(var Be=rt(Je,"pairs"),gt=pt.listSelections(),nn=0;nn<gt.length;nn++){if(!gt[nn].empty())return ae.Pass;var at=mt(pt,gt[nn].head);if(!at||Be.indexOf(at)%2!=0)return ae.Pass}for(var nn=gt.length-1;nn>=0;nn--){var vt=gt[nn].head;pt.replaceRange("",_e(vt.line,vt.ch-1),_e(vt.line,vt.ch+1),"+delete")}}function De(pt){var Je=xe(pt),Be=Je&&rt(Je,"explode");if(!Be||pt.getOption("disableInput"))return ae.Pass;for(var gt=pt.listSelections(),nn=0;nn<gt.length;nn++){if(!gt[nn].empty())return ae.Pass;var at=mt(pt,gt[nn].head);if(!at||Be.indexOf(at)%2!=0)return ae.Pass}pt.operation(function(){var vt=pt.lineSeparator()||`
|
|
|
`;pt.replaceSelection(vt+vt,null),pt.execCommand("goCharLeft"),gt=pt.listSelections();for(var Ce=0;Ce<gt.length;Ce++){var Ae=gt[Ce].head.line;pt.indentLine(Ae,null,!0),pt.indentLine(Ae+1,null,!0)}})}function ot(pt){var Je=ae.cmpPos(pt.anchor,pt.head)>0;return{anchor:new _e(pt.anchor.line,pt.anchor.ch+(Je?-1:1)),head:new _e(pt.head.line,pt.head.ch+(Je?1:-1))}}function Ne(pt,Je){var Be=xe(pt);if(!Be||pt.getOption("disableInput"))return ae.Pass;var gt=rt(Be,"pairs"),nn=gt.indexOf(Je);if(nn==-1)return ae.Pass;for(var at=rt(Be,"closeBefore"),vt=rt(Be,"triples"),Ce=gt.charAt(nn+1)==Je,Ae=pt.listSelections(),Ye=nn%2==0,Ve,At=0;At<Ae.length;At++){var xt=Ae[At],Lt=xt.head,nt,qt=pt.getRange(Lt,_e(Lt.line,Lt.ch+1));if(Ye&&!xt.empty())nt="surround";else if((Ce||!Ye)&&qt==Je)Ce&&dt(pt,Lt)?nt="both":vt.indexOf(Je)>=0&&pt.getRange(Lt,_e(Lt.line,Lt.ch+3))==Je+Je+Je?nt="skipThree":nt="skip";else if(Ce&&Lt.ch>1&&vt.indexOf(Je)>=0&&pt.getRange(_e(Lt.line,Lt.ch-2),Lt)==Je+Je){if(Lt.ch>2&&/\bstring/.test(pt.getTokenTypeAt(_e(Lt.line,Lt.ch-2))))return ae.Pass;nt="addFour"}else if(Ce){var zt=Lt.ch==0?" ":pt.getRange(_e(Lt.line,Lt.ch-1),Lt);if(!ae.isWordChar(qt)&&zt!=Je&&!ae.isWordChar(zt))nt="both";else return ae.Pass}else if(Ye&&(qt.length===0||/\s/.test(qt)||at.indexOf(qt)>-1))nt="both";else return ae.Pass;if(!Ve)Ve=nt;else if(Ve!=nt)return ae.Pass}var bn=nn%2?gt.charAt(nn-1):Je,dn=nn%2?Je:gt.charAt(nn+1);pt.operation(function(){if(Ve=="skip")pt.execCommand("goCharRight");else if(Ve=="skipThree")for(var Wn=0;Wn<3;Wn++)pt.execCommand("goCharRight");else if(Ve=="surround"){for(var rr=pt.getSelections(),Wn=0;Wn<rr.length;Wn++)rr[Wn]=bn+rr[Wn]+dn;pt.replaceSelections(rr,"around"),rr=pt.listSelections().slice();for(var Wn=0;Wn<rr.length;Wn++)rr[Wn]=ot(rr[Wn]);pt.setSelections(rr)}else Ve=="both"?(pt.replaceSelection(bn+dn,null),pt.triggerElectric(bn+dn),pt.execCommand("goCharLeft")):Ve=="addFour"&&(pt.replaceSelection(bn+bn+bn+bn,"before"),pt.execCommand("goCharRight"))})}function mt(pt,Je){var Be=pt.getRange(_e(Je.line,Je.ch-1),_e(Je.line,Je.ch+1));return Be.length==2?Be:null}function dt(pt,Je){var Be=pt.getTokenAt(_e(Je.line,Je.ch+1));return/\bstring/.test(Be.type)&&Be.start==Je.ch&&(Je.ch==0||!/\bstring/.test(pt.getTokenTypeAt(Je)))}})},57341:function(yn,fn,se){(function(ae){ae(se(4631),se(4786))})(function(ae){ae.defineOption("autoCloseTags",!1,function(me,De,ot){if(ot!=ae.Init&&ot&&me.removeKeyMap("autoCloseTags"),!!De){var Ne={name:"autoCloseTags"};(typeof De!="object"||De.whenClosing!==!1)&&(Ne["'/'"]=function(mt){return ke(mt)}),(typeof De!="object"||De.whenOpening!==!1)&&(Ne["'>'"]=function(mt){return rt(mt)}),me.addKeyMap(Ne)}});var Le=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],_e=["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 rt(me){if(me.getOption("disableInput"))return ae.Pass;for(var De=me.listSelections(),ot=[],Ne=me.getOption("autoCloseTags"),mt=0;mt<De.length;mt++){if(!De[mt].empty())return ae.Pass;var dt=De[mt].head,pt=me.getTokenAt(dt),Je=ae.innerMode(me.getMode(),pt.state),Be=Je.state,gt=Je.mode.xmlCurrentTag&&Je.mode.xmlCurrentTag(Be),nn=gt&>.name;if(!nn)return ae.Pass;var at=Je.mode.configuration=="html",vt=typeof Ne=="object"&&Ne.dontCloseTags||at&&Le,Ce=typeof Ne=="object"&&Ne.indentTags||at&&_e;pt.end>dt.ch&&(nn=nn.slice(0,nn.length-pt.end+dt.ch));var Ae=nn.toLowerCase();if(!nn||pt.type=="string"&&(pt.end!=dt.ch||!/[\"\']/.test(pt.string.charAt(pt.string.length-1))||pt.string.length==1)||pt.type=="tag"&>.close||pt.string.indexOf("/")==dt.ch-pt.start-1||vt&&Ee(vt,Ae)>-1||xe(me,Je.mode.xmlCurrentContext&&Je.mode.xmlCurrentContext(Be)||[],nn,dt,!0))return ae.Pass;var Ye=typeof Ne=="object"&&Ne.emptyTags;if(Ye&&Ee(Ye,nn)>-1){ot[mt]={text:"/>",newPos:ae.Pos(dt.line,dt.ch+2)};continue}var Ve=Ce&&Ee(Ce,Ae)>-1;ot[mt]={indent:Ve,text:">"+(Ve?`
|
|
|
|
|
|
`:"")+"</"+nn+">",newPos:Ve?ae.Pos(dt.line+1,0):ae.Pos(dt.line,dt.ch+1)}}for(var At=typeof Ne=="object"&&Ne.dontIndentOnAutoClose,mt=De.length-1;mt>=0;mt--){var xt=ot[mt];me.replaceRange(xt.text,De[mt].head,De[mt].anchor,"+insert");var Lt=me.listSelections().slice(0);Lt[mt]={head:xt.newPos,anchor:xt.newPos},me.setSelections(Lt),!At&&xt.indent&&(me.indentLine(xt.newPos.line,null,!0),me.indentLine(xt.newPos.line+1,null,!0))}}function ge(me,De){for(var ot=me.listSelections(),Ne=[],mt=De?"/":"</",dt=me.getOption("autoCloseTags"),pt=typeof dt=="object"&&dt.dontIndentOnSlash,Je=0;Je<ot.length;Je++){if(!ot[Je].empty())return ae.Pass;var Be=ot[Je].head,gt=me.getTokenAt(Be),nn=ae.innerMode(me.getMode(),gt.state),at=nn.state;if(De&&(gt.type=="string"||gt.string.charAt(0)!="<"||gt.start!=Be.ch-1))return ae.Pass;var vt,Ce=nn.mode.name!="xml"&&me.getMode().name=="htmlmixed";if(Ce&&nn.mode.name=="javascript")vt=mt+"script";else if(Ce&&nn.mode.name=="css")vt=mt+"style";else{var Ae=nn.mode.xmlCurrentContext&&nn.mode.xmlCurrentContext(at);if(!Ae||Ae.length&&xe(me,Ae,Ae[Ae.length-1],Be))return ae.Pass;vt=mt+Ae[Ae.length-1]}me.getLine(Be.line).charAt(gt.end)!=">"&&(vt+=">"),Ne[Je]=vt}if(me.replaceSelections(Ne),ot=me.listSelections(),!pt)for(var Je=0;Je<ot.length;Je++)(Je==ot.length-1||ot[Je].head.line<ot[Je+1].head.line)&&me.indentLine(ot[Je].head.line)}function ke(me){return me.getOption("disableInput")?ae.Pass:ge(me,!0)}ae.commands.closeTag=function(me){return ge(me)};function Ee(me,De){if(me.indexOf)return me.indexOf(De);for(var ot=0,Ne=me.length;ot<Ne;++ot)if(me[ot]==De)return ot;return-1}function xe(me,De,ot,Ne,mt){if(!ae.scanForClosingTag)return!1;var dt=Math.min(me.lastLine()+1,Ne.line+500),pt=ae.scanForClosingTag(me,Ne,null,dt);if(!pt||pt.tag!=ot)return!1;for(var Je=mt?1:0,Be=De.length-1;Be>=0&&De[Be]==ot;Be--)++Je;Ne=pt.to;for(var Be=1;Be<Je;Be++){var gt=ae.scanForClosingTag(me,Ne,null,dt);if(!gt||gt.tag!=ot)return!1;Ne=gt.to}return!0}})},4786:function(yn,fn,se){(function(ae){ae(se(4631))})(function(ae){"use strict";var Le=ae.Pos;function _e(Be,gt){return Be.line-gt.line||Be.ch-gt.ch}var rt="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",ge=rt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ke=new RegExp("<(/?)(["+rt+"]["+ge+"]*)","g");function Ee(Be,gt,nn,at){this.line=gt,this.ch=nn,this.cm=Be,this.text=Be.getLine(gt),this.min=at?Math.max(at.from,Be.firstLine()):Be.firstLine(),this.max=at?Math.min(at.to-1,Be.lastLine()):Be.lastLine()}function xe(Be,gt){var nn=Be.cm.getTokenTypeAt(Le(Be.line,gt));return nn&&/\btag\b/.test(nn)}function me(Be){if(!(Be.line>=Be.max))return Be.ch=0,Be.text=Be.cm.getLine(++Be.line),!0}function De(Be){if(!(Be.line<=Be.min))return Be.text=Be.cm.getLine(--Be.line),Be.ch=Be.text.length,!0}function ot(Be){for(;;){var gt=Be.text.indexOf(">",Be.ch);if(gt==-1){if(me(Be))continue;return}if(!xe(Be,gt+1)){Be.ch=gt+1;continue}var nn=Be.text.lastIndexOf("/",gt),at=nn>-1&&!/\S/.test(Be.text.slice(nn+1,gt));return Be.ch=gt+1,at?"selfClose":"regular"}}function Ne(Be){for(;;){var gt=Be.ch?Be.text.lastIndexOf("<",Be.ch-1):-1;if(gt==-1){if(De(Be))continue;return}if(!xe(Be,gt+1)){Be.ch=gt;continue}ke.lastIndex=gt,Be.ch=gt;var nn=ke.exec(Be.text);if(nn&&nn.index==gt)return nn}}function mt(Be){for(;;){ke.lastIndex=Be.ch;var gt=ke.exec(Be.text);if(!gt){if(me(Be))continue;return}if(!xe(Be,gt.index+1)){Be.ch=gt.index+1;continue}return Be.ch=gt.index+gt[0].length,gt}}function dt(Be){for(;;){var gt=Be.ch?Be.text.lastIndexOf(">",Be.ch-1):-1;if(gt==-1){if(De(Be))continue;return}if(!xe(Be,gt+1)){Be.ch=gt;continue}var nn=Be.text.lastIndexOf("/",gt),at=nn>-1&&!/\S/.test(Be.text.slice(nn+1,gt));return Be.ch=gt+1,at?"selfClose":"regular"}}function pt(Be,gt){for(var nn=[];;){var at=mt(Be),vt,Ce=Be.line,Ae=Be.ch-(at?at[0].length:0);if(!at||!(vt=ot(Be)))return;if(vt!="selfClose")if(at[1]){for(var Ye=nn.length-1;Ye>=0;--Ye)if(nn[Ye]==at[2]){nn.length=Ye;break}if(Ye<0&&(!gt||gt==at[2]))return{tag:at[2],from:Le(Ce,Ae),to:Le(Be.line,Be.ch)}}else nn.push(at[2])}}function Je(Be,gt){for(var nn=[];;){var at=dt(Be);if(!at)return;if(at=="selfClose"){Ne(Be);continue}var vt=Be.line,Ce=Be.ch,Ae=Ne(Be);if(!Ae)return;if(Ae[1])nn.push(Ae[2]);else{for(var Ye=nn.length-1;Ye>=0;--Ye)if(nn[Ye]==Ae[2]){nn.length=Ye;break}if(Ye<0&&(!gt||gt==Ae[2]))return{tag:Ae[2],from:Le(Be.line,Be.ch),to:Le(vt,Ce)}}}}ae.registerHelper("fold","xml",function(Be,gt){for(var nn=new Ee(Be,gt.line,0);;){var at=mt(nn);if(!at||nn.line!=gt.line)return;var vt=ot(nn);if(!vt)return;if(!at[1]&&vt!="selfClose"){var Ce=Le(nn.line,nn.ch),Ae=pt(nn,at[2]);return Ae&&_e(Ae.from,Ce)>0?{from:Ce,to:Ae.from}:null}}}),ae.findMatchingTag=function(Be,gt,nn){var at=new Ee(Be,gt.line,gt.ch,nn);if(!(at.text.indexOf(">")==-1&&at.text.indexOf("<")==-1)){var vt=ot(at),Ce=vt&&Le(at.line,at.ch),Ae=vt&&Ne(at);if(!(!vt||!Ae||_e(at,gt)>0)){var Ye={from:Le(at.line,at.ch),to:Ce,tag:Ae[2]};return vt=="selfClose"?{open:Ye,close:null,at:"open"}:Ae[1]?{open:Je(at,Ae[2]),close:Ye,at:"close"}:(at=new Ee(Be,Ce.line,Ce.ch,nn),{open:Ye,close:pt(at,Ae[2]),at:"open"})}}},ae.findEnclosingTag=function(Be,gt,nn,at){for(var vt=new Ee(Be,gt.line,gt.ch,nn);;){var Ce=Je(vt,at);if(!Ce)break;var Ae=new Ee(Be,gt.line,gt.ch,nn),Ye=pt(Ae,Ce.tag);if(Ye)return{open:Ce,close:Ye}}},ae.scanForClosingTag=function(Be,gt,nn,at){var vt=new Ee(Be,gt.line,gt.ch,at?{from:0,to:at}:null);return pt(vt,nn)}})},4631:function(yn){(function(fn,se){yn.exports=se()})(this,function(){"use strict";var fn=navigator.userAgent,se=navigator.platform,ae=/gecko\/\d/i.test(fn),Le=/MSIE \d/.test(fn),_e=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(fn),rt=/Edge\/(\d+)/.exec(fn),ge=Le||_e||rt,ke=ge&&(Le?document.documentMode||6:+(rt||_e)[1]),Ee=!rt&&/WebKit\//.test(fn),xe=Ee&&/Qt\/\d+\.\d+/.test(fn),me=!rt&&/Chrome\//.test(fn),De=/Opera\//.test(fn),ot=/Apple Computer/.test(navigator.vendor),Ne=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(fn),mt=/PhantomJS/.test(fn),dt=!rt&&/AppleWebKit/.test(fn)&&/Mobile\/\w+/.test(fn),pt=/Android/.test(fn),Je=dt||pt||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(fn),Be=dt||/Mac/.test(se),gt=/\bCrOS\b/.test(fn),nn=/win/i.test(se),at=De&&fn.match(/Version\/(\d*\.\d*)/);at&&(at=Number(at[1])),at&&at>=15&&(De=!1,Ee=!0);var vt=Be&&(xe||De&&(at==null||at<12.11)),Ce=ae||ge&&ke>=9;function Ae(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var Ye=function(x,z){var ne=x.className,te=Ae(z).exec(ne);if(te){var ie=ne.slice(te.index+te[0].length);x.className=ne.slice(0,te.index)+(ie?te[1]+ie:"")}};function Ve(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function At(x,z){return Ve(x).appendChild(z)}function xt(x,z,ne,te){var ie=document.createElement(x);if(ne&&(ie.className=ne),te&&(ie.style.cssText=te),typeof z=="string")ie.appendChild(document.createTextNode(z));else if(z)for(var de=0;de<z.length;++de)ie.appendChild(z[de]);return ie}function Lt(x,z,ne,te){var ie=xt(x,z,ne,te);return ie.setAttribute("role","presentation"),ie}var nt;document.createRange?nt=function(x,z,ne,te){var ie=document.createRange();return ie.setEnd(te||x,ne),ie.setStart(x,z),ie}:nt=function(x,z,ne){var te=document.body.createTextRange();try{te.moveToElementText(x.parentNode)}catch(ie){return te}return te.collapse(!0),te.moveEnd("character",ne),te.moveStart("character",z),te};function qt(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 zt(){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 bn(x,z){var ne=x.className;Ae(z).test(ne)||(x.className+=(ne?" ":"")+z)}function dn(x,z){for(var ne=x.split(" "),te=0;te<ne.length;te++)ne[te]&&!Ae(ne[te]).test(z)&&(z+=" "+ne[te]);return z}var Wn=function(x){x.select()};dt?Wn=function(x){x.selectionStart=0,x.selectionEnd=x.value.length}:ge&&(Wn=function(x){try{x.select()}catch(z){}});function rr(x){var z=Array.prototype.slice.call(arguments,1);return function(){return x.apply(null,z)}}function ln(x,z,ne){z||(z={});for(var te in x)x.hasOwnProperty(te)&&(ne!==!1||!z.hasOwnProperty(te))&&(z[te]=x[te]);return z}function $e(x,z,ne,te,ie){z==null&&(z=x.search(/[^\s\u00a0]/),z==-1&&(z=x.length));for(var de=te||0,ye=ie||0;;){var Te=x.indexOf(" ",de);if(Te<0||Te>=z)return ye+(z-de);ye+=Te-de,ye+=ne-ye%ne,de=Te+1}}var Se=function(){this.id=null,this.f=null,this.time=0,this.handler=rr(this.onTimeout,this)};Se.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},Se.prototype.set=function(x,z){this.f=z;var ne=+new Date+x;(!this.id||ne<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,x),this.time=ne)};function Bt(x,z){for(var ne=0;ne<x.length;++ne)if(x[ne]==z)return ne;return-1}var xn=50,Xt={toString:function(){return"CodeMirror.Pass"}},ft={scroll:!1},yt={origin:"*mouse"},Gt={origin:"+move"};function qn(x,z,ne){for(var te=0,ie=0;;){var de=x.indexOf(" ",te);de==-1&&(de=x.length);var ye=de-te;if(de==x.length||ie+ye>=z)return te+Math.min(ye,z-ie);if(ie+=de-te,ie+=ne-ie%ne,te=de+1,ie>=z)return te}}var Dn=[""];function Tt(x){for(;Dn.length<=x;)Dn.push(mn(Dn)+" ");return Dn[x]}function mn(x){return x[x.length-1]}function Vn(x,z){for(var ne=[],te=0;te<x.length;te++)ne[te]=z(x[te],te);return ne}function kn(x,z,ne){for(var te=0,ie=ne(z);te<x.length&&ne(x[te])<=ie;)te++;x.splice(te,0,z)}function Pe(){}function fe(x,z){var ne;return Object.create?ne=Object.create(x):(Pe.prototype=x,ne=new Pe),z&&ln(z,ne),ne}var ce=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function he(x){return/\w/.test(x)||x>"\x80"&&(x.toUpperCase()!=x.toLowerCase()||ce.test(x))}function ue(x,z){return z?z.source.indexOf("\\w")>-1&&he(x)?!0:z.test(x):he(x)}function le(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var Me=/[\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 Ge(x){return x.charCodeAt(0)>=768&&Me.test(x)}function St(x,z,ne){for(;(ne<0?z>0:z<x.length)&&Ge(x.charAt(z));)z+=ne;return z}function Ht(x,z,ne){for(var te=z>ne?-1:1;;){if(z==ne)return z;var ie=(z+ne)/2,de=te<0?Math.ceil(ie):Math.floor(ie);if(de==z)return x(de)?z:ne;x(de)?ne=de:z=de+te}}function Yt(x,z,ne,te){if(!x)return te(z,ne,"ltr",0);for(var ie=!1,de=0;de<x.length;++de){var ye=x[de];(ye.from<ne&&ye.to>z||z==ne&&ye.to==z)&&(te(Math.max(ye.from,z),Math.min(ye.to,ne),ye.level==1?"rtl":"ltr",de),ie=!0)}ie||te(z,ne,"ltr")}var Vt=null;function sn(x,z,ne){var te;Vt=null;for(var ie=0;ie<x.length;++ie){var de=x[ie];if(de.from<z&&de.to>z)return ie;de.to==z&&(de.from!=de.to&&ne=="before"?te=ie:Vt=ie),de.from==z&&(de.from!=de.to&&ne!="before"?te=ie:Vt=ie)}return te!=null?te:Vt}var it=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(He){return He<=247?x.charAt(He):1424<=He&&He<=1524?"R":1536<=He&&He<=1785?z.charAt(He-1536):1774<=He&&He<=2220?"r":8192<=He&&He<=8203?"w":He==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ie=/[stwN]/,de=/[LRr]/,ye=/[Lb1n]/,Te=/[1n]/;function Fe(He,Nt,Jt){this.level=He,this.from=Nt,this.to=Jt}return function(He,Nt){var Jt=Nt=="ltr"?"L":"R";if(He.length==0||Nt=="ltr"&&!te.test(He))return!1;for(var Hn=He.length,Tn=[],Br=0;Br<Hn;++Br)Tn.push(ne(He.charCodeAt(Br)));for(var jr=0,ai=Jt;jr<Hn;++jr){var wi=Tn[jr];wi=="m"?Tn[jr]=ai:ai=wi}for(var Bi=0,yi=Jt;Bi<Hn;++Bi){var Ti=Tn[Bi];Ti=="1"&&yi=="r"?Tn[Bi]="n":de.test(Ti)&&(yi=Ti,Ti=="r"&&(Tn[Bi]="R"))}for(var ia=1,oa=Tn[0];ia<Hn-1;++ia){var Ia=Tn[ia];Ia=="+"&&oa=="1"&&Tn[ia+1]=="1"?Tn[ia]="1":Ia==","&&oa==Tn[ia+1]&&(oa=="1"||oa=="n")&&(Tn[ia]=oa),oa=Ia}for(var so=0;so<Hn;++so){var Uo=Tn[so];if(Uo==",")Tn[so]="N";else if(Uo=="%"){var xo=void 0;for(xo=so+1;xo<Hn&&Tn[xo]=="%";++xo);for(var fs=so&&Tn[so-1]=="!"||xo<Hn&&Tn[xo]=="1"?"1":"N",hs=so;hs<xo;++hs)Tn[hs]=fs;so=xo-1}}for(var No=0,ps=Jt;No<Hn;++No){var wa=Tn[No];ps=="L"&&wa=="1"?Tn[No]="L":de.test(wa)&&(ps=wa)}for(var Co=0;Co<Hn;++Co)if(ie.test(Tn[Co])){var wo=void 0;for(wo=Co+1;wo<Hn&&ie.test(Tn[wo]);++wo);for(var Eo=(Co?Tn[Co-1]:Jt)=="L",Bo=(wo<Hn?Tn[wo]:Jt)=="L",jl=Eo==Bo?Eo?"L":"R":Jt,ys=Co;ys<wo;++ys)Tn[ys]=jl;Co=wo-1}for(var Qo=[],Xa,_o=0;_o<Hn;)if(ye.test(Tn[_o])){var Au=_o;for(++_o;_o<Hn&&ye.test(Tn[_o]);++_o);Qo.push(new Fe(0,Au,_o))}else{var sl=_o,xl=Qo.length,Vs=Nt=="rtl"?1:0;for(++_o;_o<Hn&&Tn[_o]!="L";++_o);for(var Ro=sl;Ro<_o;)if(Te.test(Tn[Ro])){sl<Ro&&(Qo.splice(xl,0,new Fe(1,sl,Ro)),xl+=Vs);var Zl=Ro;for(++Ro;Ro<_o&&Te.test(Tn[Ro]);++Ro);Qo.splice(xl,0,new Fe(2,Zl,Ro)),xl+=Vs,sl=Ro}else++Ro;sl<_o&&Qo.splice(xl,0,new Fe(1,sl,_o))}return Nt=="ltr"&&(Qo[0].level==1&&(Xa=He.match(/^\s+/))&&(Qo[0].from=Xa[0].length,Qo.unshift(new Fe(0,0,Xa[0].length))),mn(Qo).level==1&&(Xa=He.match(/\s+$/))&&(mn(Qo).to-=Xa[0].length,Qo.push(new Fe(0,Hn-Xa[0].length,Hn)))),Nt=="rtl"?Qo.reverse():Qo}}();function Mt(x,z){var ne=x.order;return ne==null&&(ne=x.order=it(x.text,z)),ne}var Ot=[],$t=function(x,z,ne){if(x.addEventListener)x.addEventListener(z,ne,!1);else if(x.attachEvent)x.attachEvent("on"+z,ne);else{var te=x._handlers||(x._handlers={});te[z]=(te[z]||Ot).concat(ne)}};function bt(x,z){return x._handlers&&x._handlers[z]||Ot}function _n(x,z,ne){if(x.removeEventListener)x.removeEventListener(z,ne,!1);else if(x.detachEvent)x.detachEvent("on"+z,ne);else{var te=x._handlers,ie=te&&te[z];if(ie){var de=Bt(ie,ne);de>-1&&(te[z]=ie.slice(0,de).concat(ie.slice(de+1)))}}}function ct(x,z){var ne=bt(x,z);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),ie=0;ie<ne.length;++ie)ne[ie].apply(null,te)}function Dt(x,z,ne){return typeof z=="string"&&(z={type:z,preventDefault:function(){this.defaultPrevented=!0}}),ct(x,ne||z.type,x,z),br(z)||z.codemirrorIgnore}function En(x){var z=x._handlers&&x._handlers.cursorActivity;if(z)for(var ne=x.curOp.cursorActivityHandlers||(x.curOp.cursorActivityHandlers=[]),te=0;te<z.length;++te)Bt(ne,z[te])==-1&&ne.push(z[te])}function wn(x,z){return bt(x,z).length>0}function Bn(x){x.prototype.on=function(z,ne){$t(this,z,ne)},x.prototype.off=function(z,ne){_n(this,z,ne)}}function Qn(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function wr(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function br(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function Sr(x){Qn(x),wr(x)}function Yn(x){return x.target||x.srcElement}function ir(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),Be&&x.ctrlKey&&z==1&&(z=3),z}var Dr=function(){if(ge&&ke<9)return!1;var x=xt("div");return"draggable"in x||"dragDrop"in x}(),ti;function Ai(x){if(ti==null){var z=xt("span","\u200B");At(x,xt("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(ti=z.offsetWidth<=1&&z.offsetHeight>2&&!(ge&&ke<8))}var ne=ti?xt("span","\u200B"):xt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var tr;function Jr(x){if(tr!=null)return tr;var z=At(x,document.createTextNode("A\u062EA")),ne=nt(z,0,1).getBoundingClientRect(),te=nt(z,1,2).getBoundingClientRect();return Ve(x),!ne||ne.left==ne.right?!1:tr=te.right-ne.right<3}var kt=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(x){for(var z=0,ne=[],te=x.length;z<=te;){var ie=x.indexOf(`
|
|
|
`,z);ie==-1&&(ie=x.length);var de=x.slice(z,x.charAt(ie-1)=="\r"?ie-1:ie),ye=de.indexOf("\r");ye!=-1?(ne.push(de.slice(0,ye)),z+=ye+1):(ne.push(de),z=ie+1)}return ne}:function(x){return x.split(/\r\n?|\n/)},vn=window.getSelection?function(x){try{return x.selectionStart!=x.selectionEnd}catch(z){return!1}}:function(x){var z;try{z=x.ownerDocument.selection.createRange()}catch(ne){}return!z||z.parentElement()!=x?!1:z.compareEndPoints("StartToEnd",z)!=0},Rn=function(){var x=xt("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),In=null;function nr(x){if(In!=null)return In;var z=At(x,xt("span","x")),ne=z.getBoundingClientRect(),te=nt(z,0,1).getBoundingClientRect();return In=Math.abs(ne.left-te.left)>1}var gr={},sr={};function Un(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),gr[x]=z}function qe(x,z){sr[x]=z}function wt(x){if(typeof x=="string"&&sr.hasOwnProperty(x))x=sr[x];else if(x&&typeof x.name=="string"&&sr.hasOwnProperty(x.name)){var z=sr[x.name];typeof z=="string"&&(z={name:z}),x=fe(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return wt("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return wt("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function Zt(x,z){z=wt(z);var ne=gr[z.name];if(!ne)return Zt(x,"text/plain");var te=ne(x,z);if(an.hasOwnProperty(z.name)){var ie=an[z.name];for(var de in ie)ie.hasOwnProperty(de)&&(te.hasOwnProperty(de)&&(te["_"+de]=te[de]),te[de]=ie[de])}if(te.name=z.name,z.helperType&&(te.helperType=z.helperType),z.modeProps)for(var ye in z.modeProps)te[ye]=z.modeProps[ye];return te}var an={};function ze(x,z){var ne=an.hasOwnProperty(x)?an[x]:an[x]={};ln(z,ne)}function Ct(x,z){if(z===!0)return z;if(x.copyState)return x.copyState(z);var ne={};for(var te in z){var ie=z[te];ie instanceof Array&&(ie=ie.concat([])),ne[te]=ie}return ne}function tn(x,z){for(var ne;x.innerMode&&(ne=x.innerMode(z),!(!ne||ne.mode==x));)z=ne.state,x=ne.mode;return ne||{mode:x,state:z}}function Kt(x,z,ne){return x.startState?x.startState(z,ne):!0}var hn=function(x,z,ne){this.pos=this.start=0,this.string=x,this.tabSize=z||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ne};hn.prototype.eol=function(){return this.pos>=this.string.length},hn.prototype.sol=function(){return this.pos==this.lineStart},hn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},hn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},hn.prototype.eat=function(x){var z=this.string.charAt(this.pos),ne;if(typeof x=="string"?ne=z==x:ne=z&&(x.test?x.test(z):x(z)),ne)return++this.pos,z},hn.prototype.eatWhile=function(x){for(var z=this.pos;this.eat(x););return this.pos>z},hn.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},hn.prototype.skipToEnd=function(){this.pos=this.string.length},hn.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},hn.prototype.backUp=function(x){this.pos-=x},hn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=$e(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?$e(this.string,this.lineStart,this.tabSize):0)},hn.prototype.indentation=function(){return $e(this.string,null,this.tabSize)-(this.lineStart?$e(this.string,this.lineStart,this.tabSize):0)},hn.prototype.match=function(x,z,ne){if(typeof x=="string"){var te=function(ye){return ne?ye.toLowerCase():ye},ie=this.string.substr(this.pos,x.length);if(te(ie)==te(x))return z!==!1&&(this.pos+=x.length),!0}else{var de=this.string.slice(this.pos).match(x);return de&&de.index>0?null:(de&&z!==!1&&(this.pos+=de[0].length),de)}},hn.prototype.current=function(){return this.string.slice(this.start,this.pos)},hn.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},hn.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},hn.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function gn(x,z){if(z-=x.first,z<0||z>=x.size)throw new Error("There is no line "+(z+x.first)+" in the document.");for(var ne=x;!ne.lines;)for(var te=0;;++te){var ie=ne.children[te],de=ie.chunkSize();if(z<de){ne=ie;break}z-=de}return ne.lines[z]}function Xn(x,z,ne){var te=[],ie=z.line;return x.iter(z.line,ne.line+1,function(de){var ye=de.text;ie==ne.line&&(ye=ye.slice(0,ne.ch)),ie==z.line&&(ye=ye.slice(z.ch)),te.push(ye),++ie}),te}function _r(x,z,ne){var te=[];return x.iter(z,ne,function(ie){te.push(ie.text)}),te}function lr(x,z){var ne=z-x.height;if(ne)for(var te=x;te;te=te.parent)te.height+=ne}function mr(x){if(x.parent==null)return null;for(var z=x.parent,ne=Bt(z.lines,x),te=z.parent;te;z=te,te=te.parent)for(var ie=0;te.children[ie]!=z;++ie)ne+=te.children[ie].chunkSize();return ne+z.first}function Or(x,z){var ne=x.first;e:do{for(var te=0;te<x.children.length;++te){var ie=x.children[te],de=ie.height;if(z<de){x=ie;continue e}z-=de,ne+=ie.chunkSize()}return ne}while(!x.lines);for(var ye=0;ye<x.lines.length;++ye){var Te=x.lines[ye],Fe=Te.height;if(z<Fe)break;z-=Fe}return ne+ye}function Rr(x,z){return z>=x.first&&z<x.first+x.size}function Zr(x,z){return String(x.lineNumberFormatter(z+x.firstLineNumber))}function Kn(x,z,ne){if(ne===void 0&&(ne=null),!(this instanceof Kn))return new Kn(x,z,ne);this.line=x,this.ch=z,this.sticky=ne}function fr(x,z){return x.line-z.line||x.ch-z.ch}function Mn(x,z){return x.sticky==z.sticky&&fr(x,z)==0}function Sn(x){return Kn(x.line,x.ch)}function on(x,z){return fr(x,z)<0?z:x}function yr(x,z){return fr(x,z)<0?x:z}function Wr(x,z){return Math.max(x.first,Math.min(z,x.first+x.size-1))}function Lr(x,z){if(z.line<x.first)return Kn(x.first,0);var ne=x.first+x.size-1;return z.line>ne?Kn(ne,gn(x,ne).text.length):qr(z,gn(x,z.line).text.length)}function qr(x,z){var ne=x.ch;return ne==null||ne>z?Kn(x.line,z):ne<0?Kn(x.line,0):x}function Cn(x,z){for(var ne=[],te=0;te<z.length;te++)ne[te]=Lr(x,z[te]);return ne}var Er=function(x,z){this.state=x,this.lookAhead=z},vr=function(x,z,ne,te){this.state=z,this.doc=x,this.line=ne,this.maxLookAhead=te||0,this.baseTokens=null,this.baseTokenPos=1};vr.prototype.lookAhead=function(x){var z=this.doc.getLine(this.line+x);return z!=null&&x>this.maxLookAhead&&(this.maxLookAhead=x),z},vr.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}},vr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},vr.fromSaved=function(x,z,ne){return z instanceof Er?new vr(x,Ct(x.mode,z.state),ne,z.lookAhead):new vr(x,Ct(x.mode,z),ne)},vr.prototype.save=function(x){var z=x!==!1?Ct(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Er(z,this.maxLookAhead):z};function ta(x,z,ne,te){var ie=[x.state.modeGen],de={};_i(x,z.text,x.doc.mode,ne,function(He,Nt){return ie.push(He,Nt)},de,te);for(var ye=ne.state,Te=function(He){ne.baseTokens=ie;var Nt=x.state.overlays[He],Jt=1,Hn=0;ne.state=!0,_i(x,z.text,Nt.mode,ne,function(Tn,Br){for(var jr=Jt;Hn<Tn;){var ai=ie[Jt];ai>Tn&&ie.splice(Jt,1,Tn,ie[Jt+1],ai),Jt+=2,Hn=Math.min(Tn,ai)}if(Br)if(Nt.opaque)ie.splice(jr,Jt-jr,Tn,"overlay "+Br),Jt=jr+2;else for(;jr<Jt;jr+=2){var wi=ie[jr+1];ie[jr+1]=(wi?wi+" ":"")+"overlay "+Br}},de),ne.state=ye,ne.baseTokens=null,ne.baseTokenPos=1},Fe=0;Fe<x.state.overlays.length;++Fe)Te(Fe);return{styles:ie,classes:de.bgClass||de.textClass?de:null}}function Hi(x,z,ne){if(!z.styles||z.styles[0]!=x.state.modeGen){var te=Pi(x,mr(z)),ie=z.text.length>x.options.maxHighlightLength&&Ct(x.doc.mode,te.state),de=ta(x,z,te);ie&&(te.state=ie),z.stateAfter=te.save(!ie),z.styles=de.styles,de.classes?z.styleClasses=de.classes:z.styleClasses&&(z.styleClasses=null),ne===x.doc.highlightFrontier&&(x.doc.modeFrontier=Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return z.styles}function Pi(x,z,ne){var te=x.doc,ie=x.display;if(!te.mode.startState)return new vr(te,!0,z);var de=Mi(x,z,ne),ye=de>te.first&&gn(te,de-1).stateAfter,Te=ye?vr.fromSaved(te,ye,de):new vr(te,Kt(te.mode),de);return te.iter(de,z,function(Fe){Di(x,Fe.text,Te);var He=Te.line;Fe.stateAfter=He==z-1||He%5==0||He>=ie.viewFrom&&He<ie.viewTo?Te.save():null,Te.nextLine()}),ne&&(te.modeFrontier=Te.line),Te}function Di(x,z,ne,te){var ie=x.doc.mode,de=new hn(z,x.options.tabSize,ne);for(de.start=de.pos=te||0,z==""&&qi(ie,ne.state);!de.eol();)Ki(ie,de,ne.state),de.start=de.pos}function qi(x,z){if(x.blankLine)return x.blankLine(z);if(x.innerMode){var ne=tn(x,z);if(ne.mode.blankLine)return ne.mode.blankLine(ne.state)}}function Ki(x,z,ne,te){for(var ie=0;ie<10;ie++){te&&(te[0]=tn(x,ne).mode);var de=x.token(z,ne);if(z.pos>z.start)return de}throw new Error("Mode "+x.name+" failed to advance stream.")}var di=function(x,z,ne){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=ne};function na(x,z,ne,te){var ie=x.doc,de=ie.mode,ye;z=Lr(ie,z);var Te=gn(ie,z.line),Fe=Pi(x,z.line,ne),He=new hn(Te.text,x.options.tabSize,Fe),Nt;for(te&&(Nt=[]);(te||He.pos<z.ch)&&!He.eol();)He.start=He.pos,ye=Ki(de,He,Fe.state),te&&Nt.push(new di(He,ye,Ct(ie.mode,Fe.state)));return te?Nt:new di(He,ye,Fe.state)}function aa(x,z){if(x)for(;;){var ne=x.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ne)break;x=x.slice(0,ne.index)+x.slice(ne.index+ne[0].length);var te=ne[1]?"bgClass":"textClass";z[te]==null?z[te]=ne[2]:new RegExp("(?:^|\\s)"+ne[2]+"(?:$|\\s)").test(z[te])||(z[te]+=" "+ne[2])}return x}function _i(x,z,ne,te,ie,de,ye){var Te=ne.flattenSpans;Te==null&&(Te=x.options.flattenSpans);var Fe=0,He=null,Nt=new hn(z,x.options.tabSize,te),Jt,Hn=x.options.addModeClass&&[null];for(z==""&&aa(qi(ne,te.state),de);!Nt.eol();){if(Nt.pos>x.options.maxHighlightLength?(Te=!1,ye&&Di(x,z,te,Nt.pos),Nt.pos=z.length,Jt=null):Jt=aa(Ki(ne,Nt,te.state,Hn),de),Hn){var Tn=Hn[0].name;Tn&&(Jt="m-"+(Jt?Tn+" "+Jt:Tn))}if(!Te||He!=Jt){for(;Fe<Nt.start;)Fe=Math.min(Nt.start,Fe+5e3),ie(Fe,He);He=Jt}Nt.start=Nt.pos}for(;Fe<Nt.pos;){var Br=Math.min(Nt.pos,Fe+5e3);ie(Br,He),Fe=Br}}function Mi(x,z,ne){for(var te,ie,de=x.doc,ye=ne?-1:z-(x.doc.mode.innerMode?1e3:100),Te=z;Te>ye;--Te){if(Te<=de.first)return de.first;var Fe=gn(de,Te-1),He=Fe.stateAfter;if(He&&(!ne||Te+(He instanceof Er?He.lookAhead:0)<=de.modeFrontier))return Te;var Nt=$e(Fe.text,null,x.options.tabSize);(ie==null||te>Nt)&&(ie=Te-1,te=Nt)}return ie}function Sa(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontier<z-10)){for(var ne=x.first,te=z-1;te>ne;te--){var ie=gn(x,te).stateAfter;if(ie&&(!(ie instanceof Er)||te+ie.lookAhead<z)){ne=te+1;break}}x.highlightFrontier=Math.min(x.highlightFrontier,ne)}}var Si=!1,$r=!1;function Ft(){Si=!0}function Pt(){$r=!0}function pn(x,z,ne){this.marker=x,this.from=z,this.to=ne}function Pn(x,z){if(x)for(var ne=0;ne<x.length;++ne){var te=x[ne];if(te.marker==z)return te}}function cr(x,z){for(var ne,te=0;te<x.length;++te)x[te]!=z&&(ne||(ne=[])).push(x[te]);return ne}function Gr(x,z){x.markedSpans=x.markedSpans?x.markedSpans.concat([z]):[z],z.marker.attachLine(x)}function Xr(x,z,ne){var te;if(x)for(var ie=0;ie<x.length;++ie){var de=x[ie],ye=de.marker,Te=de.from==null||(ye.inclusiveLeft?de.from<=z:de.from<z);if(Te||de.from==z&&ye.type=="bookmark"&&(!ne||!de.marker.insertLeft)){var Fe=de.to==null||(ye.inclusiveRight?de.to>=z:de.to>z);(te||(te=[])).push(new pn(ye,de.from,Fe?null:de.to))}}return te}function oi(x,z,ne){var te;if(x)for(var ie=0;ie<x.length;++ie){var de=x[ie],ye=de.marker,Te=de.to==null||(ye.inclusiveRight?de.to>=z:de.to>z);if(Te||de.from==z&&ye.type=="bookmark"&&(!ne||de.marker.insertLeft)){var Fe=de.from==null||(ye.inclusiveLeft?de.from<=z:de.from<z);(te||(te=[])).push(new pn(ye,Fe?null:de.from-z,de.to==null?null:de.to-z))}}return te}function jt(x,z){if(z.full)return null;var ne=Rr(x,z.from.line)&&gn(x,z.from.line).markedSpans,te=Rr(x,z.to.line)&&gn(x,z.to.line).markedSpans;if(!ne&&!te)return null;var ie=z.from.ch,de=z.to.ch,ye=fr(z.from,z.to)==0,Te=Xr(ne,ie,ye),Fe=oi(te,de,ye),He=z.text.length==1,Nt=mn(z.text).length+(He?ie:0);if(Te)for(var Jt=0;Jt<Te.length;++Jt){var Hn=Te[Jt];if(Hn.to==null){var Tn=Pn(Fe,Hn.marker);Tn?He&&(Hn.to=Tn.to==null?null:Tn.to+Nt):Hn.to=ie}}if(Fe)for(var Br=0;Br<Fe.length;++Br){var jr=Fe[Br];if(jr.to!=null&&(jr.to+=Nt),jr.from==null){var ai=Pn(Te,jr.marker);ai||(jr.from=Nt,He&&(Te||(Te=[])).push(jr))}else jr.from+=Nt,He&&(Te||(Te=[])).push(jr)}Te&&(Te=ur(Te)),Fe&&Fe!=Te&&(Fe=ur(Fe));var wi=[Te];if(!He){var Bi=z.text.length-2,yi;if(Bi>0&&Te)for(var Ti=0;Ti<Te.length;++Ti)Te[Ti].to==null&&(yi||(yi=[])).push(new pn(Te[Ti].marker,null,null));for(var ia=0;ia<Bi;++ia)wi.push(yi);wi.push(Fe)}return wi}function ur(x){for(var z=0;z<x.length;++z){var ne=x[z];ne.from!=null&&ne.from==ne.to&&ne.marker.clearWhenEmpty!==!1&&x.splice(z--,1)}return x.length?x:null}function li(x,z,ne){var te=null;if(x.iter(z.line,ne.line+1,function(Tn){if(Tn.markedSpans)for(var Br=0;Br<Tn.markedSpans.length;++Br){var jr=Tn.markedSpans[Br].marker;jr.readOnly&&(!te||Bt(te,jr)==-1)&&(te||(te=[])).push(jr)}}),!te)return null;for(var ie=[{from:z,to:ne}],de=0;de<te.length;++de)for(var ye=te[de],Te=ye.find(0),Fe=0;Fe<ie.length;++Fe){var He=ie[Fe];if(!(fr(He.to,Te.from)<0||fr(He.from,Te.to)>0)){var Nt=[Fe,1],Jt=fr(He.from,Te.from),Hn=fr(He.to,Te.to);(Jt<0||!ye.inclusiveLeft&&!Jt)&&Nt.push({from:He.from,to:Te.from}),(Hn>0||!ye.inclusiveRight&&!Hn)&&Nt.push({from:Te.to,to:He.to}),ie.splice.apply(ie,Nt),Fe+=Nt.length-3}}return ie}function ci(x){var z=x.markedSpans;if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.detachLine(x);x.markedSpans=null}}function Oi(x,z){if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.attachLine(x);x.markedSpans=z}}function ra(x){return x.inclusiveLeft?-1:0}function hr(x){return x.inclusiveRight?1:0}function Qi(x,z){var ne=x.lines.length-z.lines.length;if(ne!=0)return ne;var te=x.find(),ie=z.find(),de=fr(te.from,ie.from)||ra(x)-ra(z);if(de)return-de;var ye=fr(te.to,ie.to)||hr(x)-hr(z);return ye||z.id-x.id}function Re(x,z){var ne=$r&&x.markedSpans,te;if(ne)for(var ie=void 0,de=0;de<ne.length;++de)ie=ne[de],ie.marker.collapsed&&(z?ie.from:ie.to)==null&&(!te||Qi(te,ie.marker)<0)&&(te=ie.marker);return te}function Ze(x){return Re(x,!0)}function je(x){return Re(x,!1)}function et(x,z){var ne=$r&&x.markedSpans,te;if(ne)for(var ie=0;ie<ne.length;++ie){var de=ne[ie];de.marker.collapsed&&(de.from==null||de.from<z)&&(de.to==null||de.to>z)&&(!te||Qi(te,de.marker)<0)&&(te=de.marker)}return te}function Et(x,z,ne,te,ie){var de=gn(x,z),ye=$r&&de.markedSpans;if(ye)for(var Te=0;Te<ye.length;++Te){var Fe=ye[Te];if(Fe.marker.collapsed){var He=Fe.marker.find(0),Nt=fr(He.from,ne)||ra(Fe.marker)-ra(ie),Jt=fr(He.to,te)||hr(Fe.marker)-hr(ie);if(!(Nt>=0&&Jt<=0||Nt<=0&&Jt>=0)&&(Nt<=0&&(Fe.marker.inclusiveRight&&ie.inclusiveLeft?fr(He.to,ne)>=0:fr(He.to,ne)>0)||Nt>=0&&(Fe.marker.inclusiveRight&&ie.inclusiveLeft?fr(He.from,te)<=0:fr(He.from,te)<0)))return!0}}}function It(x){for(var z;z=Ze(x);)x=z.find(-1,!0).line;return x}function Ut(x){for(var z;z=je(x);)x=z.find(1,!0).line;return x}function Ln(x){for(var z,ne;z=je(x);)x=z.find(1,!0).line,(ne||(ne=[])).push(x);return ne}function Nn(x,z){var ne=gn(x,z),te=It(ne);return ne==te?z:mr(te)}function Mr(x,z){if(z>x.lastLine())return z;var ne=gn(x,z),te;if(!Hr(x,ne))return z;for(;te=je(ne);)ne=te.find(1,!0).line;return mr(ne)+1}function Hr(x,z){var ne=$r&&z.markedSpans;if(ne){for(var te=void 0,ie=0;ie<ne.length;++ie)if(te=ne[ie],!!te.marker.collapsed){if(te.from==null)return!0;if(!te.marker.widgetNode&&te.from==0&&te.marker.inclusiveLeft&&xr(x,z,te))return!0}}}function xr(x,z,ne){if(ne.to==null){var te=ne.marker.find(1,!0);return xr(x,te.line,Pn(te.line.markedSpans,ne.marker))}if(ne.marker.inclusiveRight&&ne.to==z.text.length)return!0;for(var ie=void 0,de=0;de<z.markedSpans.length;++de)if(ie=z.markedSpans[de],ie.marker.collapsed&&!ie.marker.widgetNode&&ie.from==ne.to&&(ie.to==null||ie.to!=ne.from)&&(ie.marker.inclusiveLeft||ne.marker.inclusiveRight)&&xr(x,z,ie))return!0}function Gn(x){x=It(x);for(var z=0,ne=x.parent,te=0;te<ne.lines.length;++te){var ie=ne.lines[te];if(ie==x)break;z+=ie.height}for(var de=ne.parent;de;ne=de,de=ne.parent)for(var ye=0;ye<de.children.length;++ye){var Te=de.children[ye];if(Te==ne)break;z+=Te.height}return z}function jn(x){if(x.height==0)return 0;for(var z=x.text.length,ne,te=x;ne=Ze(te);){var ie=ne.find(0,!0);te=ie.from.line,z+=ie.from.ch-ie.to.ch}for(te=x;ne=je(te);){var de=ne.find(0,!0);z-=te.text.length-de.from.ch,te=de.to.line,z+=te.text.length-de.to.ch}return z}function $n(x){var z=x.display,ne=x.doc;z.maxLine=gn(ne,ne.first),z.maxLineLength=jn(z.maxLine),z.maxLineChanged=!0,ne.iter(function(te){var ie=jn(te);ie>z.maxLineLength&&(z.maxLineLength=ie,z.maxLine=te)})}var dr=function(x,z,ne){this.text=x,Oi(this,z),this.height=ne?ne(this):1};dr.prototype.lineNo=function(){return mr(this)},Bn(dr);function Kr(x,z,ne,te){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),ci(x),Oi(x,ne);var ie=te?te(x):1;ie!=x.height&&lr(x,ie)}function kr(x){x.parent=null,ci(x)}var Cr={},Ir={};function Ue(x,z){if(!x||/^\s*$/.test(x))return null;var ne=z.addModeClass?Ir:Cr;return ne[x]||(ne[x]=x.replace(/\S+/g,"cm-$&"))}function We(x,z){var ne=Lt("span",null,null,Ee?"padding-right: .1px":null),te={pre:Lt("pre",[ne],"CodeMirror-line"),content:ne,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};z.measure={};for(var ie=0;ie<=(z.rest?z.rest.length:0);ie++){var de=ie?z.rest[ie-1]:z.line,ye=void 0;te.pos=0,te.addToken=Oe,Jr(x.display.measure)&&(ye=Mt(de,x.doc.direction))&&(te.addToken=tt(te.addToken,ye)),te.map=[];var Te=z!=x.display.externalMeasured&&mr(de);rn(de,te,Hi(x,de,Te)),de.styleClasses&&(de.styleClasses.bgClass&&(te.bgClass=dn(de.styleClasses.bgClass,te.bgClass||"")),de.styleClasses.textClass&&(te.textClass=dn(de.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(Ai(x.display.measure))),ie==0?(z.measure.map=te.map,z.measure.cache={}):((z.measure.maps||(z.measure.maps=[])).push(te.map),(z.measure.caches||(z.measure.caches=[])).push({}))}if(Ee){var Fe=te.content.lastChild;(/\bcm-tab\b/.test(Fe.className)||Fe.querySelector&&Fe.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return ct(x,"renderLine",x,z.line,te.pre),te.pre.className&&(te.textClass=dn(te.pre.className,te.textClass||"")),te}function we(x){var z=xt("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function Oe(x,z,ne,te,ie,de,ye){if(z){var Te=x.splitSpaces?st(z,x.trailingSpace):z,Fe=x.cm.state.specialChars,He=!1,Nt;if(!Fe.test(z))x.col+=z.length,Nt=document.createTextNode(Te),x.map.push(x.pos,x.pos+z.length,Nt),ge&&ke<9&&(He=!0),x.pos+=z.length;else{Nt=document.createDocumentFragment();for(var Jt=0;;){Fe.lastIndex=Jt;var Hn=Fe.exec(z),Tn=Hn?Hn.index-Jt:z.length-Jt;if(Tn){var Br=document.createTextNode(Te.slice(Jt,Jt+Tn));ge&&ke<9?Nt.appendChild(xt("span",[Br])):Nt.appendChild(Br),x.map.push(x.pos,x.pos+Tn,Br),x.col+=Tn,x.pos+=Tn}if(!Hn)break;Jt+=Tn+1;var jr=void 0;if(Hn[0]==" "){var ai=x.cm.options.tabSize,wi=ai-x.col%ai;jr=Nt.appendChild(xt("span",Tt(wi),"cm-tab")),jr.setAttribute("role","presentation"),jr.setAttribute("cm-text"," "),x.col+=wi}else Hn[0]=="\r"||Hn[0]==`
|
|
|
`?(jr=Nt.appendChild(xt("span",Hn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),jr.setAttribute("cm-text",Hn[0]),x.col+=1):(jr=x.cm.options.specialCharPlaceholder(Hn[0]),jr.setAttribute("cm-text",Hn[0]),ge&&ke<9?Nt.appendChild(xt("span",[jr])):Nt.appendChild(jr),x.col+=1);x.map.push(x.pos,x.pos+1,jr),x.pos++}}if(x.trailingSpace=Te.charCodeAt(z.length-1)==32,ne||te||ie||He||de||ye){var Bi=ne||"";te&&(Bi+=te),ie&&(Bi+=ie);var yi=xt("span",[Nt],Bi,de);if(ye)for(var Ti in ye)ye.hasOwnProperty(Ti)&&Ti!="style"&&Ti!="class"&&yi.setAttribute(Ti,ye[Ti]);return x.content.appendChild(yi)}x.content.appendChild(Nt)}}function st(x,z){if(x.length>1&&!/ /.test(x))return x;for(var ne=z,te="",ie=0;ie<x.length;ie++){var de=x.charAt(ie);de==" "&&ne&&(ie==x.length-1||x.charCodeAt(ie+1)==32)&&(de="\xA0"),te+=de,ne=de==" "}return te}function tt(x,z){return function(ne,te,ie,de,ye,Te,Fe){ie=ie?ie+" cm-force-border":"cm-force-border";for(var He=ne.pos,Nt=He+te.length;;){for(var Jt=void 0,Hn=0;Hn<z.length&&(Jt=z[Hn],!(Jt.to>He&&Jt.from<=He));Hn++);if(Jt.to>=Nt)return x(ne,te,ie,de,ye,Te,Fe);x(ne,te.slice(0,Jt.to-He),ie,de,null,Te,Fe),de=null,te=te.slice(Jt.to-He),He=Jt.to}}}function _t(x,z,ne,te){var ie=!te&&ne.widgetNode;ie&&x.map.push(x.pos,x.pos+z,ie),!te&&x.cm.display.input.needsContentAttribute&&(ie||(ie=x.content.appendChild(document.createElement("span"))),ie.setAttribute("cm-marker",ne.id)),ie&&(x.cm.display.input.setUneditable(ie),x.content.appendChild(ie)),x.pos+=z,x.trailingSpace=!1}function rn(x,z,ne){var te=x.markedSpans,ie=x.text,de=0;if(!te){for(var ye=1;ye<ne.length;ye+=2)z.addToken(z,ie.slice(de,de=ne[ye]),Ue(ne[ye+1],z.cm.options));return}for(var Te=ie.length,Fe=0,He=1,Nt="",Jt,Hn,Tn=0,Br,jr,ai,wi,Bi;;){if(Tn==Fe){Br=jr=ai=Hn="",Bi=null,wi=null,Tn=1/0;for(var yi=[],Ti=void 0,ia=0;ia<te.length;++ia){var oa=te[ia],Ia=oa.marker;if(Ia.type=="bookmark"&&oa.from==Fe&&Ia.widgetNode)yi.push(Ia);else if(oa.from<=Fe&&(oa.to==null||oa.to>Fe||Ia.collapsed&&oa.to==Fe&&oa.from==Fe)){if(oa.to!=null&&oa.to!=Fe&&Tn>oa.to&&(Tn=oa.to,jr=""),Ia.className&&(Br+=" "+Ia.className),Ia.css&&(Hn=(Hn?Hn+";":"")+Ia.css),Ia.startStyle&&oa.from==Fe&&(ai+=" "+Ia.startStyle),Ia.endStyle&&oa.to==Tn&&(Ti||(Ti=[])).push(Ia.endStyle,oa.to),Ia.title&&((Bi||(Bi={})).title=Ia.title),Ia.attributes)for(var so in Ia.attributes)(Bi||(Bi={}))[so]=Ia.attributes[so];Ia.collapsed&&(!wi||Qi(wi.marker,Ia)<0)&&(wi=oa)}else oa.from>Fe&&Tn>oa.from&&(Tn=oa.from)}if(Ti)for(var Uo=0;Uo<Ti.length;Uo+=2)Ti[Uo+1]==Tn&&(jr+=" "+Ti[Uo]);if(!wi||wi.from==Fe)for(var xo=0;xo<yi.length;++xo)_t(z,0,yi[xo]);if(wi&&(wi.from||0)==Fe){if(_t(z,(wi.to==null?Te+1:wi.to)-Fe,wi.marker,wi.from==null),wi.to==null)return;wi.to==Fe&&(wi=!1)}}if(Fe>=Te)break;for(var fs=Math.min(Te,Tn);;){if(Nt){var hs=Fe+Nt.length;if(!wi){var No=hs>fs?Nt.slice(0,fs-Fe):Nt;z.addToken(z,No,Jt?Jt+Br:Br,ai,Fe+No.length==Tn?jr:"",Hn,Bi)}if(hs>=fs){Nt=Nt.slice(fs-Fe),Fe=fs;break}Fe=hs,ai=""}Nt=ie.slice(de,de=ne[He++]),Jt=Ue(ne[He++],z.cm.options)}}}function Xe(x,z,ne){this.line=z,this.rest=Ln(z),this.size=this.rest?mr(mn(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=Hr(x,z)}function Qe(x,z,ne){for(var te=[],ie,de=z;de<ne;de=ie){var ye=new Xe(x.doc,gn(x.doc,de),de);ie=de+ye.size,te.push(ye)}return te}var lt=null;function ut(x){lt?lt.ops.push(x):x.ownsGroup=lt={ops:[x],delayedCallbacks:[]}}function en(x){var z=x.delayedCallbacks,ne=0;do{for(;ne<z.length;ne++)z[ne].call(null);for(var te=0;te<x.ops.length;te++){var ie=x.ops[te];if(ie.cursorActivityHandlers)for(;ie.cursorActivityCalled<ie.cursorActivityHandlers.length;)ie.cursorActivityHandlers[ie.cursorActivityCalled++].call(null,ie.cm)}}while(ne<z.length)}function cn(x,z){var ne=x.ownsGroup;if(ne)try{en(ne)}finally{lt=null,z(ne)}}var Wt=null;function un(x,z){var ne=bt(x,z);if(ne.length){var te=Array.prototype.slice.call(arguments,2),ie;lt?ie=lt.delayedCallbacks:Wt?ie=Wt:(ie=Wt=[],setTimeout(On,0));for(var de=function(Te){ie.push(function(){return ne[Te].apply(null,te)})},ye=0;ye<ne.length;++ye)de(ye)}}function On(){var x=Wt;Wt=null;for(var z=0;z<x.length;++z)x[z]()}function ar(x,z,ne,te){for(var ie=0;ie<z.changes.length;ie++){var de=z.changes[ie];de=="text"?or(x,z):de=="gutter"?pr(x,z,ne,te):de=="class"?Tr(x,z):de=="widget"&&zn(x,z,te)}z.changes=null}function Fn(x){return x.node==x.text&&(x.node=xt("div",null,null,"position: relative"),x.text.parentNode&&x.text.parentNode.replaceChild(x.node,x.text),x.node.appendChild(x.text),ge&&ke<8&&(x.node.style.zIndex=2)),x.node}function An(x,z){var ne=z.bgClass?z.bgClass+" "+(z.line.bgClass||""):z.line.bgClass;if(ne&&(ne+=" CodeMirror-linebackground"),z.background)ne?z.background.className=ne:(z.background.parentNode.removeChild(z.background),z.background=null);else if(ne){var te=Fn(z);z.background=te.insertBefore(xt("div",null,ne),te.firstChild),x.display.input.setUneditable(z.background)}}function Zn(x,z){var ne=x.display.externalMeasured;return ne&&ne.line==z.line?(x.display.externalMeasured=null,z.measure=ne.measure,ne.built):We(x,z)}function or(x,z){var ne=z.text.className,te=Zn(x,z);z.text==z.node&&(z.node=te.pre),z.text.parentNode.replaceChild(te.pre,z.text),z.text=te.pre,te.bgClass!=z.bgClass||te.textClass!=z.textClass?(z.bgClass=te.bgClass,z.textClass=te.textClass,Tr(x,z)):ne&&(z.text.className=ne)}function Tr(x,z){An(x,z),z.line.wrapClass?Fn(z).className=z.line.wrapClass:z.node!=z.text&&(z.node.className="");var ne=z.textClass?z.textClass+" "+(z.line.textClass||""):z.line.textClass;z.text.className=ne||""}function pr(x,z,ne,te){if(z.gutter&&(z.node.removeChild(z.gutter),z.gutter=null),z.gutterBackground&&(z.node.removeChild(z.gutterBackground),z.gutterBackground=null),z.line.gutterClass){var ie=Fn(z);z.gutterBackground=xt("div",null,"CodeMirror-gutter-background "+z.line.gutterClass,"left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px; width: "+te.gutterTotalWidth+"px"),x.display.input.setUneditable(z.gutterBackground),ie.insertBefore(z.gutterBackground,z.text)}var de=z.line.gutterMarkers;if(x.options.lineNumbers||de){var ye=Fn(z),Te=z.gutter=xt("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px");if(x.display.input.setUneditable(Te),ye.insertBefore(Te,z.text),z.line.gutterClass&&(Te.className+=" "+z.line.gutterClass),x.options.lineNumbers&&(!de||!de["CodeMirror-linenumbers"])&&(z.lineNumber=Te.appendChild(xt("div",Zr(x.options,ne),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+te.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px"))),de)for(var Fe=0;Fe<x.display.gutterSpecs.length;++Fe){var He=x.display.gutterSpecs[Fe].className,Nt=de.hasOwnProperty(He)&&de[He];Nt&&Te.appendChild(xt("div",[Nt],"CodeMirror-gutter-elt","left: "+te.gutterLeft[He]+"px; width: "+te.gutterWidth[He]+"px"))}}}function zn(x,z,ne){z.alignable&&(z.alignable=null);for(var te=Ae("CodeMirror-linewidget"),ie=z.node.firstChild,de=void 0;ie;ie=de)de=ie.nextSibling,te.test(ie.className)&&z.node.removeChild(ie);Fr(x,z,ne)}function Pr(x,z,ne,te){var ie=Zn(x,z);return z.text=z.node=ie.pre,ie.bgClass&&(z.bgClass=ie.bgClass),ie.textClass&&(z.textClass=ie.textClass),Tr(x,z),pr(x,z,ne,te),Fr(x,z,te),z.node}function Fr(x,z,ne){if(si(x,z.line,z,ne,!0),z.rest)for(var te=0;te<z.rest.length;te++)si(x,z.rest[te],z,ne,!1)}function si(x,z,ne,te,ie){if(z.widgets)for(var de=Fn(ne),ye=0,Te=z.widgets;ye<Te.length;++ye){var Fe=Te[ye],He=xt("div",[Fe.node],"CodeMirror-linewidget"+(Fe.className?" "+Fe.className:""));Fe.handleMouseEvents||He.setAttribute("cm-ignore-events","true"),pi(Fe,He,ne,te),x.display.input.setUneditable(He),ie&&Fe.above?de.insertBefore(He,ne.gutter||ne.text):de.appendChild(He),un(Fe,"redraw")}}function pi(x,z,ne,te){if(x.noHScroll){(ne.alignable||(ne.alignable=[])).push(z);var ie=te.wrapperWidth;z.style.left=te.fixedPos+"px",x.coverGutter||(ie-=te.gutterTotalWidth,z.style.paddingLeft=te.gutterTotalWidth+"px"),z.style.width=ie+"px"}x.coverGutter&&(z.style.zIndex=5,z.style.position="relative",x.noHScroll||(z.style.marginLeft=-te.gutterTotalWidth+"px"))}function hi(x){if(x.height!=null)return x.height;var z=x.doc.cm;if(!z)return 0;if(!qt(document.body,x.node)){var ne="position: relative;";x.coverGutter&&(ne+="margin-left: -"+z.display.gutters.offsetWidth+"px;"),x.noHScroll&&(ne+="width: "+z.display.wrapper.clientWidth+"px;"),At(z.display.measure,xt("div",[x.node],null,ne))}return x.height=x.node.parentNode.offsetHeight}function ki(x,z){for(var ne=Yn(z);ne!=x.wrapper;ne=ne.parentNode)if(!ne||ne.nodeType==1&&ne.getAttribute("cm-ignore-events")=="true"||ne.parentNode==x.sizer&&ne!=x.mover)return!0}function Ni(x){return x.lineSpace.offsetTop}function mi(x){return x.mover.offsetHeight-x.lineSpace.offsetHeight}function bi(x){if(x.cachedPaddingH)return x.cachedPaddingH;var z=At(x.measure,xt("pre","x","CodeMirror-line-like")),ne=window.getComputedStyle?window.getComputedStyle(z):z.currentStyle,te={left:parseInt(ne.paddingLeft),right:parseInt(ne.paddingRight)};return!isNaN(te.left)&&!isNaN(te.right)&&(x.cachedPaddingH=te),te}function Yr(x){return xn-x.display.nativeBarWidth}function ii(x){return x.display.scroller.clientWidth-Yr(x)-x.display.barWidth}function xi(x){return x.display.scroller.clientHeight-Yr(x)-x.display.barHeight}function Ii(x,z,ne){var te=x.options.lineWrapping,ie=te&&ii(x);if(!z.measure.heights||te&&z.measure.width!=ie){var de=z.measure.heights=[];if(te){z.measure.width=ie;for(var ye=z.text.firstChild.getClientRects(),Te=0;Te<ye.length-1;Te++){var Fe=ye[Te],He=ye[Te+1];Math.abs(Fe.bottom-He.bottom)>2&&de.push((Fe.bottom+He.top)/2-ne.top)}}de.push(ne.bottom-ne.top)}}function ha(x,z,ne){if(x.line==z)return{map:x.measure.map,cache:x.measure.cache};for(var te=0;te<x.rest.length;te++)if(x.rest[te]==z)return{map:x.measure.maps[te],cache:x.measure.caches[te]};for(var ie=0;ie<x.rest.length;ie++)if(mr(x.rest[ie])>ne)return{map:x.measure.maps[ie],cache:x.measure.caches[ie],before:!0}}function da(x,z){z=It(z);var ne=mr(z),te=x.display.externalMeasured=new Xe(x.doc,z,ne);te.lineN=ne;var ie=te.built=We(x,te);return te.text=ie.pre,At(x.display.lineMeasure,ie.pre),te}function ji(x,z,ne,te){return gi(x,Ci(x,z),ne,te)}function Xi(x,z){if(z>=x.display.viewFrom&&z<x.display.viewTo)return x.display.view[fi(x,z)];var ne=x.display.externalMeasured;if(ne&&z>=ne.lineN&&z<ne.lineN+ne.size)return ne}function Ci(x,z){var ne=mr(z),te=Xi(x,ne);te&&!te.text?te=null:te&&te.changes&&(ar(x,te,ne,uo(x)),x.curOp.forceUpdate=!0),te||(te=da(x,z));var ie=ha(te,z,ne);return{line:z,view:te,rect:null,map:ie.map,cache:ie.cache,before:ie.before,hasHeights:!1}}function gi(x,z,ne,te,ie){z.before&&(ne=-1);var de=ne+(te||""),ye;return z.cache.hasOwnProperty(de)?ye=z.cache[de]:(z.rect||(z.rect=z.view.text.getBoundingClientRect()),z.hasHeights||(Ii(x,z.view,z.rect),z.hasHeights=!0),ye=vi(x,z,ne,te),ye.bogus||(z.cache[de]=ye)),{left:ye.left,right:ye.right,top:ie?ye.rtop:ye.top,bottom:ie?ye.rbottom:ye.bottom}}var la={left:0,right:0,top:0,bottom:0};function Ei(x,z,ne){for(var te,ie,de,ye,Te,Fe,He=0;He<x.length;He+=3)if(Te=x[He],Fe=x[He+1],z<Te?(ie=0,de=1,ye="left"):z<Fe?(ie=z-Te,de=ie+1):(He==x.length-3||z==Fe&&x[He+3]>z)&&(de=Fe-Te,ie=de-1,z>=Fe&&(ye="right")),ie!=null){if(te=x[He+2],Te==Fe&&ne==(te.insertLeft?"left":"right")&&(ye=ne),ne=="left"&&ie==0)for(;He&&x[He-2]==x[He-3]&&x[He-1].insertLeft;)te=x[(He-=3)+2],ye="left";if(ne=="right"&&ie==Fe-Te)for(;He<x.length-3&&x[He+3]==x[He+4]&&!x[He+5].insertLeft;)te=x[(He+=3)+2],ye="right";break}return{node:te,start:ie,end:de,collapse:ye,coverStart:Te,coverEnd:Fe}}function Ur(x,z){var ne=la;if(z=="left")for(var te=0;te<x.length&&(ne=x[te]).left==ne.right;te++);else for(var ie=x.length-1;ie>=0&&(ne=x[ie]).left==ne.right;ie--);return ne}function vi(x,z,ne,te){var ie=Ei(z.map,ne,te),de=ie.node,ye=ie.start,Te=ie.end,Fe=ie.collapse,He;if(de.nodeType==3){for(var Nt=0;Nt<4;Nt++){for(;ye&&Ge(z.line.text.charAt(ie.coverStart+ye));)--ye;for(;ie.coverStart+Te<ie.coverEnd&&Ge(z.line.text.charAt(ie.coverStart+Te));)++Te;if(ge&&ke<9&&ye==0&&Te==ie.coverEnd-ie.coverStart?He=de.parentNode.getBoundingClientRect():He=Ur(nt(de,ye,Te).getClientRects(),te),He.left||He.right||ye==0)break;Te=ye,ye=ye-1,Fe="right"}ge&&ke<11&&(He=Ji(x.display.measure,He))}else{ye>0&&(Fe=te="right");var Jt;x.options.lineWrapping&&(Jt=de.getClientRects()).length>1?He=Jt[te=="right"?Jt.length-1:0]:He=de.getBoundingClientRect()}if(ge&&ke<9&&!ye&&(!He||!He.left&&!He.right)){var Hn=de.parentNode.getClientRects()[0];Hn?He={left:Hn.left,right:Hn.left+eo(x.display),top:Hn.top,bottom:Hn.bottom}:He=la}for(var Tn=He.top-z.rect.top,Br=He.bottom-z.rect.top,jr=(Tn+Br)/2,ai=z.view.measure.heights,wi=0;wi<ai.length-1&&!(jr<ai[wi]);wi++);var Bi=wi?ai[wi-1]:0,yi=ai[wi],Ti={left:(Fe=="right"?He.right:He.left)-z.rect.left,right:(Fe=="left"?He.left:He.right)-z.rect.left,top:Bi,bottom:yi};return!He.left&&!He.right&&(Ti.bogus=!0),x.options.singleCursorHeightPerLine||(Ti.rtop=Tn,Ti.rbottom=Br),Ti}function Ji(x,z){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!nr(x))return z;var ne=screen.logicalXDPI/screen.deviceXDPI,te=screen.logicalYDPI/screen.deviceYDPI;return{left:z.left*ne,right:z.right*ne,top:z.top*te,bottom:z.bottom*te}}function Zi(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 ua(x){x.display.externalMeasure=null,Ve(x.display.lineMeasure);for(var z=0;z<x.display.view.length;z++)Zi(x.display.view[z])}function Li(x){ua(x),x.display.cachedCharWidth=x.display.cachedTextHeight=x.display.cachedPaddingH=null,x.options.lineWrapping||(x.display.maxLineChanged=!0),x.display.lineNumChars=null}function ga(){return me&&pt?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function fa(){return me&&pt?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function sa(x){var z=0;if(x.widgets)for(var ne=0;ne<x.widgets.length;++ne)x.widgets[ne].above&&(z+=hi(x.widgets[ne]));return z}function ca(x,z,ne,te,ie){if(!ie){var de=sa(z);ne.top+=de,ne.bottom+=de}if(te=="line")return ne;te||(te="local");var ye=Gn(z);if(te=="local"?ye+=Ni(x.display):ye-=x.display.viewOffset,te=="page"||te=="window"){var Te=x.display.lineSpace.getBoundingClientRect();ye+=Te.top+(te=="window"?0:fa());var Fe=Te.left+(te=="window"?0:ga());ne.left+=Fe,ne.right+=Fe}return ne.top+=ye,ne.bottom+=ye,ne}function ba(x,z,ne){if(ne=="div")return z;var te=z.left,ie=z.top;if(ne=="page")te-=ga(),ie-=fa();else if(ne=="local"||!ne){var de=x.display.sizer.getBoundingClientRect();te+=de.left,ie+=de.top}var ye=x.display.lineSpace.getBoundingClientRect();return{left:te-ye.left,top:ie-ye.top}}function Ta(x,z,ne,te,ie){return te||(te=gn(x.doc,z.line)),ca(x,te,ji(x,te,z.ch,ie),ne)}function Ca(x,z,ne,te,ie,de){te=te||gn(x.doc,z.line),ie||(ie=Ci(x,te));function ye(Br,jr){var ai=gi(x,ie,Br,jr?"right":"left",de);return jr?ai.left=ai.right:ai.right=ai.left,ca(x,te,ai,ne)}var Te=Mt(te,x.doc.direction),Fe=z.ch,He=z.sticky;if(Fe>=te.text.length?(Fe=te.text.length,He="before"):Fe<=0&&(Fe=0,He="after"),!Te)return ye(He=="before"?Fe-1:Fe,He=="before");function Nt(Br,jr,ai){var wi=Te[jr],Bi=wi.level==1;return ye(ai?Br-1:Br,Bi!=ai)}var Jt=sn(Te,Fe,He),Hn=Vt,Tn=Nt(Fe,Jt,He=="before");return Hn!=null&&(Tn.other=Nt(Fe,Hn,He!="before")),Tn}function Ma(x,z){var ne=0;z=Lr(x.doc,z),x.options.lineWrapping||(ne=eo(x.display)*z.ch);var te=gn(x.doc,z.line),ie=Gn(te)+Ni(x.display);return{left:ne,right:ne,top:ie,bottom:ie+te.height}}function Ha(x,z,ne,te,ie){var de=Kn(x,z,ne);return de.xRel=ie,te&&(de.outside=te),de}function Va(x,z,ne){var te=x.doc;if(ne+=x.display.viewOffset,ne<0)return Ha(te.first,0,null,-1,-1);var ie=Or(te,ne),de=te.first+te.size-1;if(ie>de)return Ha(te.first+te.size-1,gn(te,de).text.length,null,1,1);z<0&&(z=0);for(var ye=gn(te,ie);;){var Te=zi(x,ye,ie,z,ne),Fe=et(ye,Te.ch+(Te.xRel>0||Te.outside>0?1:0));if(!Fe)return Te;var He=Fe.find(1);if(He.line==ie)return He;ye=gn(te,ie=He.line)}}function $a(x,z,ne,te){te-=sa(z);var ie=z.text.length,de=Ht(function(ye){return gi(x,ne,ye-1).bottom<=te},ie,0);return ie=Ht(function(ye){return gi(x,ne,ye).top>te},de,ie),{begin:de,end:ie}}function Ra(x,z,ne,te){ne||(ne=Ci(x,z));var ie=ca(x,z,gi(x,ne,te),"line").top;return $a(x,z,ne,ie)}function xa(x,z,ne,te){return x.bottom<=ne?!1:x.top>ne?!0:(te?x.left:x.right)>z}function zi(x,z,ne,te,ie){ie-=Gn(z);var de=Ci(x,z),ye=sa(z),Te=0,Fe=z.text.length,He=!0,Nt=Mt(z,x.doc.direction);if(Nt){var Jt=(x.options.lineWrapping?pa:Yi)(x,z,ne,de,Nt,te,ie);He=Jt.level!=1,Te=He?Jt.from:Jt.to-1,Fe=He?Jt.to:Jt.from-1}var Hn=null,Tn=null,Br=Ht(function(ia){var oa=gi(x,de,ia);return oa.top+=ye,oa.bottom+=ye,xa(oa,te,ie,!1)?(oa.top<=ie&&oa.left<=te&&(Hn=ia,Tn=oa),!0):!1},Te,Fe),jr,ai,wi=!1;if(Tn){var Bi=te-Tn.left<Tn.right-te,yi=Bi==He;Br=Hn+(yi?0:1),ai=yi?"after":"before",jr=Bi?Tn.left:Tn.right}else{!He&&(Br==Fe||Br==Te)&&Br++,ai=Br==0?"after":Br==z.text.length?"before":gi(x,de,Br-(He?1:0)).bottom+ye<=ie==He?"after":"before";var Ti=Ca(x,Kn(ne,Br,ai),"line",z,de);jr=Ti.left,wi=ie<Ti.top?-1:ie>=Ti.bottom?1:0}return Br=St(z.text,Br,1),Ha(ne,Br,ai,wi,te-jr)}function Yi(x,z,ne,te,ie,de,ye){var Te=Ht(function(Jt){var Hn=ie[Jt],Tn=Hn.level!=1;return xa(Ca(x,Kn(ne,Tn?Hn.to:Hn.from,Tn?"before":"after"),"line",z,te),de,ye,!0)},0,ie.length-1),Fe=ie[Te];if(Te>0){var He=Fe.level!=1,Nt=Ca(x,Kn(ne,He?Fe.from:Fe.to,He?"after":"before"),"line",z,te);xa(Nt,de,ye,!0)&&Nt.top>ye&&(Fe=ie[Te-1])}return Fe}function pa(x,z,ne,te,ie,de,ye){var Te=$a(x,z,te,ye),Fe=Te.begin,He=Te.end;/\s/.test(z.text.charAt(He-1))&&He--;for(var Nt=null,Jt=null,Hn=0;Hn<ie.length;Hn++){var Tn=ie[Hn];if(!(Tn.from>=He||Tn.to<=Fe)){var Br=Tn.level!=1,jr=gi(x,te,Br?Math.min(He,Tn.to)-1:Math.max(Fe,Tn.from)).right,ai=jr<de?de-jr+1e9:jr-de;(!Nt||Jt>ai)&&(Nt=Tn,Jt=ai)}}return Nt||(Nt=ie[ie.length-1]),Nt.from<Fe&&(Nt={from:Fe,to:Nt.to,level:Nt.level}),Nt.to>He&&(Nt={from:Nt.from,to:He,level:Nt.level}),Nt}var Ea;function Ka(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(Ea==null){Ea=xt("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)Ea.appendChild(document.createTextNode("x")),Ea.appendChild(xt("br"));Ea.appendChild(document.createTextNode("x"))}At(x.measure,Ea);var ne=Ea.offsetHeight/50;return ne>3&&(x.cachedTextHeight=ne),Ve(x.measure),ne||1}function eo(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=xt("span","xxxxxxxxxx"),ne=xt("pre",[z],"CodeMirror-line-like");At(x.measure,ne);var te=z.getBoundingClientRect(),ie=(te.right-te.left)/10;return ie>2&&(x.cachedCharWidth=ie),ie||10}function uo(x){for(var z=x.display,ne={},te={},ie=z.gutters.clientLeft,de=z.gutters.firstChild,ye=0;de;de=de.nextSibling,++ye){var Te=x.display.gutterSpecs[ye].className;ne[Te]=de.offsetLeft+de.clientLeft+ie,te[Te]=de.clientWidth}return{fixedPos:Mo(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:z.wrapper.clientWidth}}function Mo(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function ko(x){var z=Ka(x.display),ne=x.options.lineWrapping,te=ne&&Math.max(5,x.display.scroller.clientWidth/eo(x.display)-3);return function(ie){if(Hr(x.doc,ie))return 0;var de=0;if(ie.widgets)for(var ye=0;ye<ie.widgets.length;ye++)ie.widgets[ye].height&&(de+=ie.widgets[ye].height);return ne?de+(Math.ceil(ie.text.length/te)||1)*z:de+z}}function to(x){var z=x.doc,ne=ko(x);z.iter(function(te){var ie=ne(te);ie!=te.height&&lr(te,ie)})}function Pa(x,z,ne,te){var ie=x.display;if(!ne&&Yn(z).getAttribute("cm-not-content")=="true")return null;var de,ye,Te=ie.lineSpace.getBoundingClientRect();try{de=z.clientX-Te.left,ye=z.clientY-Te.top}catch(Jt){return null}var Fe=Va(x,de,ye),He;if(te&&Fe.xRel>0&&(He=gn(x.doc,Fe.line).text).length==Fe.ch){var Nt=$e(He,He.length,x.options.tabSize)-He.length;Fe=Kn(Fe.line,Math.max(0,Math.round((de-bi(x.display).left)/eo(x.display))-Nt))}return Fe}function fi(x,z){if(z>=x.display.viewTo||(z-=x.display.viewFrom,z<0))return null;for(var ne=x.display.view,te=0;te<ne.length;te++)if(z-=ne[te].size,z<0)return te}function Wi(x,z,ne,te){z==null&&(z=x.doc.first),ne==null&&(ne=x.doc.first+x.doc.size),te||(te=0);var ie=x.display;if(te&&ne<ie.viewTo&&(ie.updateLineNumbers==null||ie.updateLineNumbers>z)&&(ie.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=ie.viewTo)$r&&Nn(x.doc,z)<ie.viewTo&&va(x);else if(ne<=ie.viewFrom)$r&&Mr(x.doc,ne+te)>ie.viewFrom?va(x):(ie.viewFrom+=te,ie.viewTo+=te);else if(z<=ie.viewFrom&&ne>=ie.viewTo)va(x);else if(z<=ie.viewFrom){var de=Ga(x,ne,ne+te,1);de?(ie.view=ie.view.slice(de.index),ie.viewFrom=de.lineN,ie.viewTo+=te):va(x)}else if(ne>=ie.viewTo){var ye=Ga(x,z,z,-1);ye?(ie.view=ie.view.slice(0,ye.index),ie.viewTo=ye.lineN):va(x)}else{var Te=Ga(x,z,z,-1),Fe=Ga(x,ne,ne+te,1);Te&&Fe?(ie.view=ie.view.slice(0,Te.index).concat(Qe(x,Te.lineN,Fe.lineN)).concat(ie.view.slice(Fe.index)),ie.viewTo+=te):va(x)}var He=ie.externalMeasured;He&&(ne<He.lineN?He.lineN+=te:z<He.lineN+He.size&&(ie.externalMeasured=null))}function Aa(x,z,ne){x.curOp.viewChanged=!0;var te=x.display,ie=x.display.externalMeasured;if(ie&&z>=ie.lineN&&z<ie.lineN+ie.size&&(te.externalMeasured=null),!(z<te.viewFrom||z>=te.viewTo)){var de=te.view[fi(x,z)];if(de.node!=null){var ye=de.changes||(de.changes=[]);Bt(ye,ne)==-1&&ye.push(ne)}}}function va(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function Ga(x,z,ne,te){var ie=fi(x,z),de,ye=x.display.view;if(!$r||ne==x.doc.first+x.doc.size)return{index:ie,lineN:ne};for(var Te=x.display.viewFrom,Fe=0;Fe<ie;Fe++)Te+=ye[Fe].size;if(Te!=z){if(te>0){if(ie==ye.length-1)return null;de=Te+ye[ie].size-z,ie++}else de=Te-z;z+=de,ne+=de}for(;Nn(x.doc,ne)!=ne;){if(ie==(te<0?0:ye.length-1))return null;ne+=te*ye[ie-(te<0?1:0)].size,ie+=te}return{index:ie,lineN:ne}}function Za(x,z,ne){var te=x.display,ie=te.view;ie.length==0||z>=te.viewTo||ne<=te.viewFrom?(te.view=Qe(x,z,ne),te.viewFrom=z):(te.viewFrom>z?te.view=Qe(x,z,te.viewFrom).concat(te.view):te.viewFrom<z&&(te.view=te.view.slice(fi(x,z))),te.viewFrom=z,te.viewTo<ne?te.view=te.view.concat(Qe(x,te.viewTo,ne)):te.viewTo>ne&&(te.view=te.view.slice(0,fi(x,ne)))),te.viewTo=ne}function To(x){for(var z=x.display.view,ne=0,te=0;te<z.length;te++){var ie=z[te];!ie.hidden&&(!ie.node||ie.changes)&&++ne}return ne}function Ho(x){x.display.input.showSelection(x.display.input.prepareSelection())}function as(x,z){z===void 0&&(z=!0);for(var ne=x.doc,te={},ie=te.cursors=document.createDocumentFragment(),de=te.selection=document.createDocumentFragment(),ye=0;ye<ne.sel.ranges.length;ye++)if(!(!z&&ye==ne.sel.primIndex)){var Te=ne.sel.ranges[ye];if(!(Te.from().line>=x.display.viewTo||Te.to().line<x.display.viewFrom)){var Fe=Te.empty();(Fe||x.options.showCursorWhenSelecting)&&ma(x,Te.head,ie),Fe||Vi(x,Te,de)}}return te}function ma(x,z,ne){var te=Ca(x,z,"div",null,null,!x.options.singleCursorHeightPerLine),ie=ne.appendChild(xt("div","\xA0","CodeMirror-cursor"));if(ie.style.left=te.left+"px",ie.style.top=te.top+"px",ie.style.height=Math.max(0,te.bottom-te.top)*x.options.cursorHeight+"px",te.other){var de=ne.appendChild(xt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));de.style.display="",de.style.left=te.other.left+"px",de.style.top=te.other.top+"px",de.style.height=(te.other.bottom-te.other.top)*.85+"px"}}function ni(x,z){return x.top-z.top||x.left-z.left}function Vi(x,z,ne){var te=x.display,ie=x.doc,de=document.createDocumentFragment(),ye=bi(x.display),Te=ye.left,Fe=Math.max(te.sizerWidth,ii(x)-te.sizer.offsetLeft)-ye.right,He=ie.direction=="ltr";function Nt(yi,Ti,ia,oa){Ti<0&&(Ti=0),Ti=Math.round(Ti),oa=Math.round(oa),de.appendChild(xt("div",null,"CodeMirror-selected","position: absolute; left: "+yi+`px;
|
|
|
top: `+Ti+"px; width: "+(ia==null?Fe-yi:ia)+`px;
|
|
|
height: `+(oa-Ti)+"px"))}function Jt(yi,Ti,ia){var oa=gn(ie,yi),Ia=oa.text.length,so,Uo;function xo(No,ps){return Ta(x,Kn(yi,No),"div",oa,ps)}function fs(No,ps,wa){var Co=Ra(x,oa,null,No),wo=ps=="ltr"==(wa=="after")?"left":"right",Eo=wa=="after"?Co.begin:Co.end-(/\s/.test(oa.text.charAt(Co.end-1))?2:1);return xo(Eo,wo)[wo]}var hs=Mt(oa,ie.direction);return Yt(hs,Ti||0,ia==null?Ia:ia,function(No,ps,wa,Co){var wo=wa=="ltr",Eo=xo(No,wo?"left":"right"),Bo=xo(ps-1,wo?"right":"left"),jl=Ti==null&&No==0,ys=ia==null&&ps==Ia,Qo=Co==0,Xa=!hs||Co==hs.length-1;if(Bo.top-Eo.top<=3){var _o=(He?jl:ys)&&Qo,Au=(He?ys:jl)&&Xa,sl=_o?Te:(wo?Eo:Bo).left,xl=Au?Fe:(wo?Bo:Eo).right;Nt(sl,Eo.top,xl-sl,Eo.bottom)}else{var Vs,Ro,Zl,Jo;wo?(Vs=He&&jl&&Qo?Te:Eo.left,Ro=He?Fe:fs(No,wa,"before"),Zl=He?Te:fs(ps,wa,"after"),Jo=He&&ys&&Xa?Fe:Bo.right):(Vs=He?fs(No,wa,"before"):Te,Ro=!He&&jl&&Qo?Fe:Eo.right,Zl=!He&&ys&&Xa?Te:Bo.left,Jo=He?fs(ps,wa,"after"):Fe),Nt(Vs,Eo.top,Ro-Vs,Eo.bottom),Eo.bottom<Bo.top&&Nt(Te,Eo.bottom,null,Bo.top),Nt(Zl,Bo.top,Jo-Zl,Bo.bottom)}(!so||ni(Eo,so)<0)&&(so=Eo),ni(Bo,so)<0&&(so=Bo),(!Uo||ni(Eo,Uo)<0)&&(Uo=Eo),ni(Bo,Uo)<0&&(Uo=Bo)}),{start:so,end:Uo}}var Hn=z.from(),Tn=z.to();if(Hn.line==Tn.line)Jt(Hn.line,Hn.ch,Tn.ch);else{var Br=gn(ie,Hn.line),jr=gn(ie,Tn.line),ai=It(Br)==It(jr),wi=Jt(Hn.line,Hn.ch,ai?Br.text.length+1:null).end,Bi=Jt(Tn.line,ai?0:null,Tn.ch).start;ai&&(wi.top<Bi.top-2?(Nt(wi.right,wi.top,null,wi.bottom),Nt(Te,Bi.top,Bi.left,Bi.bottom)):Nt(wi.right,wi.top,Bi.left-wi.right,wi.bottom)),wi.bottom<Bi.top&&Nt(Te,wi.bottom,null,Bi.top)}ne.appendChild(de)}function Gi(x){if(x.state.focused){var z=x.display;clearInterval(z.blinker);var ne=!0;z.cursorDiv.style.visibility="",x.options.cursorBlinkRate>0?z.blinker=setInterval(function(){x.hasFocus()||Ko(x),z.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function $i(x){x.state.focused||(x.display.input.focus(),qa(x))}function Ya(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,Ko(x))},100)}function qa(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(ct(x,"focus",x,z),x.state.focused=!0,bn(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),Ee&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),Gi(x))}function Ko(x,z){x.state.delayingBlurEvent||(x.state.focused&&(ct(x,"blur",x,z),x.state.focused=!1,Ye(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function Vo(x){for(var z=x.display,ne=z.lineDiv.offsetTop,te=0;te<z.view.length;te++){var ie=z.view[te],de=x.options.lineWrapping,ye=void 0,Te=0;if(!ie.hidden){if(ge&&ke<8){var Fe=ie.node.offsetTop+ie.node.offsetHeight;ye=Fe-ne,ne=Fe}else{var He=ie.node.getBoundingClientRect();ye=He.bottom-He.top,!de&&ie.text.firstChild&&(Te=ie.text.firstChild.getBoundingClientRect().right-He.left-1)}var Nt=ie.line.height-ye;if((Nt>.005||Nt<-.005)&&(lr(ie.line,ye),us(ie.line),ie.rest))for(var Jt=0;Jt<ie.rest.length;Jt++)us(ie.rest[Jt]);if(Te>x.display.sizerWidth){var Hn=Math.ceil(Te/eo(x.display));Hn>x.display.maxLineLength&&(x.display.maxLineLength=Hn,x.display.maxLine=ie.line,x.display.maxLineChanged=!0)}}}}function us(x){if(x.widgets)for(var z=0;z<x.widgets.length;++z){var ne=x.widgets[z],te=ne.node.parentNode;te&&(ne.height=te.offsetHeight)}}function Ba(x,z,ne){var te=ne&&ne.top!=null?Math.max(0,ne.top):x.scroller.scrollTop;te=Math.floor(te-Ni(x));var ie=ne&&ne.bottom!=null?ne.bottom:te+x.wrapper.clientHeight,de=Or(z,te),ye=Or(z,ie);if(ne&&ne.ensure){var Te=ne.ensure.from.line,Fe=ne.ensure.to.line;Te<de?(de=Te,ye=Or(z,Gn(gn(z,Te))+x.wrapper.clientHeight)):Math.min(Fe,z.lastLine())>=ye&&(de=Or(z,Gn(gn(z,Fe))-x.wrapper.clientHeight),ye=Fe)}return{from:de,to:Math.max(ye,de+1)}}function Fo(x,z){if(!Dt(x,"scrollCursorIntoView")){var ne=x.display,te=ne.sizer.getBoundingClientRect(),ie=null;if(z.top+te.top<0?ie=!0:z.bottom+te.top>(window.innerHeight||document.documentElement.clientHeight)&&(ie=!1),ie!=null&&!mt){var de=xt("div","\u200B",null,`position: absolute;
|
|
|
top: `+(z.top-ne.viewOffset-Ni(x.display))+`px;
|
|
|
height: `+(z.bottom-z.top+Yr(x)+ne.barHeight)+`px;
|
|
|
left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(de),de.scrollIntoView(ie),x.display.lineSpace.removeChild(de)}}}function ds(x,z,ne,te){te==null&&(te=0);var ie;!x.options.lineWrapping&&z==ne&&(z=z.ch?Kn(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,ne=z.sticky=="before"?Kn(z.line,z.ch+1,"before"):z);for(var de=0;de<5;de++){var ye=!1,Te=Ca(x,z),Fe=!ne||ne==z?Te:Ca(x,ne);ie={left:Math.min(Te.left,Fe.left),top:Math.min(Te.top,Fe.top)-te,right:Math.max(Te.left,Fe.left),bottom:Math.max(Te.bottom,Fe.bottom)+te};var He=Bs(x,ie),Nt=x.doc.scrollTop,Jt=x.doc.scrollLeft;if(He.scrollTop!=null&&(Fa(x,He.scrollTop),Math.abs(x.doc.scrollTop-Nt)>1&&(ye=!0)),He.scrollLeft!=null&&(vo(x,He.scrollLeft),Math.abs(x.doc.scrollLeft-Jt)>1&&(ye=!0)),!ye)break}return ie}function ul(x,z){var ne=Bs(x,z);ne.scrollTop!=null&&Fa(x,ne.scrollTop),ne.scrollLeft!=null&&vo(x,ne.scrollLeft)}function Bs(x,z){var ne=x.display,te=Ka(x.display);z.top<0&&(z.top=0);var ie=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ne.scroller.scrollTop,de=xi(x),ye={};z.bottom-z.top>de&&(z.bottom=z.top+de);var Te=x.doc.height+mi(ne),Fe=z.top<te,He=z.bottom>Te-te;if(z.top<ie)ye.scrollTop=Fe?0:z.top;else if(z.bottom>ie+de){var Nt=Math.min(z.top,(He?Te:z.bottom)-de);Nt!=ie&&(ye.scrollTop=Nt)}var Jt=x.options.fixedGutter?0:ne.gutters.offsetWidth,Hn=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ne.scroller.scrollLeft-Jt,Tn=ii(x)-ne.gutters.offsetWidth,Br=z.right-z.left>Tn;return Br&&(z.right=z.left+Tn),z.left<10?ye.scrollLeft=0:z.left<Hn?ye.scrollLeft=Math.max(0,z.left+Jt-(Br?0:10)):z.right>Tn+Hn-3&&(ye.scrollLeft=z.right+(Br?0:10)-Tn),ye}function ms(x,z){z!=null&&(Js(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function Wo(x){Js(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function Ds(x,z,ne){(z!=null||ne!=null)&&Js(x),z!=null&&(x.curOp.scrollLeft=z),ne!=null&&(x.curOp.scrollTop=ne)}function Is(x,z){Js(x),x.curOp.scrollToPos=z}function Js(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var ne=Ma(x,z.from),te=Ma(x,z.to);fo(x,ne,te,z.margin)}}function fo(x,z,ne,te){var ie=Bs(x,{left:Math.min(z.left,ne.left),top:Math.min(z.top,ne.top)-te,right:Math.max(z.right,ne.right),bottom:Math.max(z.bottom,ne.bottom)+te});Ds(x,ie.scrollLeft,ie.scrollTop)}function Fa(x,z){Math.abs(x.doc.scrollTop-z)<2||(ae||Jc(x,{top:z}),no(x,z,!0),ae&&Jc(x),os(x,100))}function no(x,z,ne){z=Math.max(0,Math.min(x.display.scroller.scrollHeight-x.display.scroller.clientHeight,z)),!(x.display.scroller.scrollTop==z&&!ne)&&(x.doc.scrollTop=z,x.display.scrollbars.setScrollTop(z),x.display.scroller.scrollTop!=z&&(x.display.scroller.scrollTop=z))}function vo(x,z,ne,te){z=Math.max(0,Math.min(z,x.display.scroller.scrollWidth-x.display.scroller.clientWidth)),!((ne?z==x.doc.scrollLeft:Math.abs(x.doc.scrollLeft-z)<2)&&!te)&&(x.doc.scrollLeft=z,Vu(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function bo(x){var z=x.display,ne=z.gutters.offsetWidth,te=Math.round(x.doc.height+mi(x.display));return{clientHeight:z.scroller.clientHeight,viewHeight:z.wrapper.clientHeight,scrollWidth:z.scroller.scrollWidth,clientWidth:z.scroller.clientWidth,viewWidth:z.wrapper.clientWidth,barLeft:x.options.fixedGutter?ne:0,docHeight:te,scrollHeight:te+Yr(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ne}}var jo=function(x,z,ne){this.cm=ne;var te=this.vert=xt("div",[xt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ie=this.horiz=xt("div",[xt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ie.tabIndex=-1,x(te),x(ie),$t(te,"scroll",function(){te.clientHeight&&z(te.scrollTop,"vertical")}),$t(ie,"scroll",function(){ie.clientWidth&&z(ie.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ge&&ke<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};jo.prototype.update=function(x){var z=x.scrollWidth>x.clientWidth+1,ne=x.scrollHeight>x.clientHeight+1,te=x.nativeBarWidth;if(ne){this.vert.style.display="block",this.vert.style.bottom=z?te+"px":"0";var ie=x.viewHeight-(z?te:0);this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+ie)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(z){this.horiz.style.display="block",this.horiz.style.right=ne?te+"px":"0",this.horiz.style.left=x.barLeft+"px";var de=x.viewWidth-x.barLeft-(ne?te:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+de)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&x.clientHeight>0&&(te==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ne?te:0,bottom:z?te:0}},jo.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},jo.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},jo.prototype.zeroWidthHack=function(){var x=Be&&!Ne?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Se,this.disableVert=new Se},jo.prototype.enableZeroWidthBar=function(x,z,ne){x.style.pointerEvents="auto";function te(){var ie=x.getBoundingClientRect(),de=ne=="vert"?document.elementFromPoint(ie.right-1,(ie.top+ie.bottom)/2):document.elementFromPoint((ie.right+ie.left)/2,ie.bottom-1);de!=x?x.style.pointerEvents="none":z.set(1e3,te)}z.set(1e3,te)},jo.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var So=function(){};So.prototype.update=function(){return{bottom:0,right:0}},So.prototype.setScrollLeft=function(){},So.prototype.setScrollTop=function(){},So.prototype.clear=function(){};function xs(x,z){z||(z=bo(x));var ne=x.display.barWidth,te=x.display.barHeight;Xl(x,z);for(var ie=0;ie<4&&ne!=x.display.barWidth||te!=x.display.barHeight;ie++)ne!=x.display.barWidth&&x.options.lineWrapping&&Vo(x),Xl(x,bo(x)),ne=x.display.barWidth,te=x.display.barHeight}function Xl(x,z){var ne=x.display,te=ne.scrollbars.update(z);ne.sizer.style.paddingRight=(ne.barWidth=te.right)+"px",ne.sizer.style.paddingBottom=(ne.barHeight=te.bottom)+"px",ne.heightForcer.style.borderBottom=te.bottom+"px solid transparent",te.right&&te.bottom?(ne.scrollbarFiller.style.display="block",ne.scrollbarFiller.style.height=te.bottom+"px",ne.scrollbarFiller.style.width=te.right+"px"):ne.scrollbarFiller.style.display="",te.bottom&&x.options.coverGutterNextToScrollbar&&x.options.fixedGutter?(ne.gutterFiller.style.display="block",ne.gutterFiller.style.height=te.bottom+"px",ne.gutterFiller.style.width=z.gutterWidth+"px"):ne.gutterFiller.style.display=""}var Ql={native:jo,null:So};function vc(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&Ye(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new Ql[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),$t(z,"mousedown",function(){x.state.focused&&setTimeout(function(){return x.display.input.focus()},0)}),z.setAttribute("cm-not-content","true")},function(z,ne){ne=="horizontal"?vo(x,z):Fa(x,z)},x),x.display.scrollbars.addClass&&bn(x.display.wrapper,x.display.scrollbars.addClass)}var Xc=0;function Ks(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:++Xc},ut(x.curOp)}function Ts(x){var z=x.curOp;z&&cn(z,function(ne){for(var te=0;te<ne.ops.length;te++)ne.ops[te].cm.curOp=null;yc(ne)})}function yc(x){for(var z=x.ops,ne=0;ne<z.length;ne++)Jl(z[ne]);for(var te=0;te<z.length;te++)_a(z[te]);for(var ie=0;ie<z.length;ie++)ka(z[ie]);for(var de=0;de<z.length;de++)Zo(z[de]);for(var ye=0;ye<z.length;ye++)ts(z[ye])}function Jl(x){var z=x.cm,ne=z.display;ql(z),x.updateMaxLine&&$n(z),x.mustUpdate=x.viewChanged||x.forceUpdate||x.scrollTop!=null||x.scrollToPos&&(x.scrollToPos.from.line<ne.viewFrom||x.scrollToPos.to.line>=ne.viewTo)||ne.maxLineChanged&&z.options.lineWrapping,x.update=x.mustUpdate&&new gs(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function _a(x){x.updatedDisplay=x.mustUpdate&&Qc(x.cm,x.update)}function ka(x){var z=x.cm,ne=z.display;x.updatedDisplay&&Vo(z),x.barMeasure=bo(z),ne.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=ji(z,ne.maxLine,ne.maxLine.text.length).left+3,z.display.sizerWidth=x.adjustWidthTo,x.barMeasure.scrollWidth=Math.max(ne.scroller.clientWidth,ne.sizer.offsetLeft+x.adjustWidthTo+Yr(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+x.adjustWidthTo-ii(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ne.input.prepareSelection())}function Zo(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft<z.doc.scrollLeft&&vo(z,Math.min(z.display.scroller.scrollLeft,x.maxScrollLeft),!0),z.display.maxLineChanged=!1);var ne=x.focus&&x.focus==zt();x.preparedSelection&&z.display.input.showSelection(x.preparedSelection,ne),(x.updatedDisplay||x.startHeight!=z.doc.height)&&xs(z,x.barMeasure),x.updatedDisplay&&$c(z,x.barMeasure),x.selectionChanged&&Gi(z),z.state.focused&&x.updateInput&&z.display.input.reset(x.typing),ne&&$i(x.cm)}function ts(x){var z=x.cm,ne=z.display,te=z.doc;if(x.updatedDisplay&&Uu(z,x.update),ne.wheelStartX!=null&&(x.scrollTop!=null||x.scrollLeft!=null||x.scrollToPos)&&(ne.wheelStartX=ne.wheelStartY=null),x.scrollTop!=null&&no(z,x.scrollTop,x.forceScroll),x.scrollLeft!=null&&vo(z,x.scrollLeft,!0,!0),x.scrollToPos){var ie=ds(z,Lr(te,x.scrollToPos.from),Lr(te,x.scrollToPos.to),x.scrollToPos.margin);Fo(z,ie)}var de=x.maybeHiddenMarkers,ye=x.maybeUnhiddenMarkers;if(de)for(var Te=0;Te<de.length;++Te)de[Te].lines.length||ct(de[Te],"hide");if(ye)for(var Fe=0;Fe<ye.length;++Fe)ye[Fe].lines.length&&ct(ye[Fe],"unhide");ne.wrapper.offsetHeight&&(te.scrollTop=z.display.scroller.scrollTop),x.changeObjs&&ct(z,"changes",z,x.changeObjs),x.update&&x.update.finish()}function La(x,z){if(x.curOp)return z();Ks(x);try{return z()}finally{Ts(x)}}function Ua(x,z){return function(){if(x.curOp)return z.apply(x,arguments);Ks(x);try{return z.apply(x,arguments)}finally{Ts(x)}}}function Wa(x){return function(){if(this.curOp)return x.apply(this,arguments);Ks(this);try{return x.apply(this,arguments)}finally{Ts(this)}}}function mo(x){return function(){var z=this.cm;if(!z||z.curOp)return x.apply(this,arguments);Ks(z);try{return x.apply(this,arguments)}finally{Ts(z)}}}function os(x,z){x.doc.highlightFrontier<x.display.viewTo&&x.state.highlight.set(z,rr(Ws,x))}function Ws(x){var z=x.doc;if(!(z.highlightFrontier>=x.display.viewTo)){var ne=+new Date+x.options.workTime,te=Pi(x,z.highlightFrontier),ie=[];z.iter(te.line,Math.min(z.first+z.size,x.display.viewTo+500),function(de){if(te.line>=x.display.viewFrom){var ye=de.styles,Te=de.text.length>x.options.maxHighlightLength?Ct(z.mode,te.state):null,Fe=ta(x,de,te,!0);Te&&(te.state=Te),de.styles=Fe.styles;var He=de.styleClasses,Nt=Fe.classes;Nt?de.styleClasses=Nt:He&&(de.styleClasses=null);for(var Jt=!ye||ye.length!=de.styles.length||He!=Nt&&(!He||!Nt||He.bgClass!=Nt.bgClass||He.textClass!=Nt.textClass),Hn=0;!Jt&&Hn<ye.length;++Hn)Jt=ye[Hn]!=de.styles[Hn];Jt&&ie.push(te.line),de.stateAfter=te.save(),te.nextLine()}else de.text.length<=x.options.maxHighlightLength&&Di(x,de.text,te),de.stateAfter=te.line%5==0?te.save():null,te.nextLine();if(+new Date>ne)return os(x,x.options.workDelay),!0}),z.highlightFrontier=te.line,z.modeFrontier=Math.max(z.modeFrontier,te.line),ie.length&&La(x,function(){for(var de=0;de<ie.length;de++)Aa(x,ie[de],"text")})}}var gs=function(x,z,ne){var te=x.display;this.viewport=z,this.visible=Ba(te,x.doc,z),this.editorIsHidden=!te.wrapper.offsetWidth,this.wrapperHeight=te.wrapper.clientHeight,this.wrapperWidth=te.wrapper.clientWidth,this.oldDisplayWidth=ii(x),this.force=ne,this.dims=uo(x),this.events=[]};gs.prototype.signal=function(x,z){wn(x,z)&&this.events.push(arguments)},gs.prototype.finish=function(){for(var x=0;x<this.events.length;x++)ct.apply(null,this.events[x])};function ql(x){var z=x.display;!z.scrollbarsClipped&&z.scroller.offsetWidth&&(z.nativeBarWidth=z.scroller.offsetWidth-z.scroller.clientWidth,z.heightForcer.style.height=Yr(x)+"px",z.sizer.style.marginBottom=-z.nativeBarWidth+"px",z.sizer.style.borderRightWidth=Yr(x)+"px",z.scrollbarsClipped=!0)}function Ud(x){if(x.hasFocus())return null;var z=zt();if(!z||!qt(x.display.lineDiv,z))return null;var ne={activeElt:z};if(window.getSelection){var te=window.getSelection();te.anchorNode&&te.extend&&qt(x.display.lineDiv,te.anchorNode)&&(ne.anchorNode=te.anchorNode,ne.anchorOffset=te.anchorOffset,ne.focusNode=te.focusNode,ne.focusOffset=te.focusOffset)}return ne}function Vd(x){if(!(!x||!x.activeElt||x.activeElt==zt())&&(x.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(x.activeElt.nodeName)&&x.anchorNode&&qt(document.body,x.anchorNode)&&qt(document.body,x.focusNode))){var z=window.getSelection(),ne=document.createRange();ne.setEnd(x.anchorNode,x.anchorOffset),ne.collapse(!1),z.removeAllRanges(),z.addRange(ne),z.extend(x.focusNode,x.focusOffset)}}function Qc(x,z){var ne=x.display,te=x.doc;if(z.editorIsHidden)return va(x),!1;if(!z.force&&z.visible.from>=ne.viewFrom&&z.visible.to<=ne.viewTo&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo)&&ne.renderedView==ne.view&&To(x)==0)return!1;bc(x)&&(va(x),z.dims=uo(x));var ie=te.first+te.size,de=Math.max(z.visible.from-x.options.viewportMargin,te.first),ye=Math.min(ie,z.visible.to+x.options.viewportMargin);ne.viewFrom<de&&de-ne.viewFrom<20&&(de=Math.max(te.first,ne.viewFrom)),ne.viewTo>ye&&ne.viewTo-ye<20&&(ye=Math.min(ie,ne.viewTo)),$r&&(de=Nn(x.doc,de),ye=Mr(x.doc,ye));var Te=de!=ne.viewFrom||ye!=ne.viewTo||ne.lastWrapHeight!=z.wrapperHeight||ne.lastWrapWidth!=z.wrapperWidth;Za(x,de,ye),ne.viewOffset=Gn(gn(x.doc,ne.viewFrom)),x.display.mover.style.top=ne.viewOffset+"px";var Fe=To(x);if(!Te&&Fe==0&&!z.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var He=Ud(x);return Fe>4&&(ne.lineDiv.style.display="none"),Gd(x,ne.updateLineNumbers,z.dims),Fe>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,Vd(He),Ve(ne.cursorDiv),Ve(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,Te&&(ne.lastWrapHeight=z.wrapperHeight,ne.lastWrapWidth=z.wrapperWidth,os(x,400)),ne.updateLineNumbers=null,!0}function Uu(x,z){for(var ne=z.viewport,te=!0;;te=!1){if(!te||!x.options.lineWrapping||z.oldDisplayWidth==ii(x)){if(ne&&ne.top!=null&&(ne={top:Math.min(x.doc.height+mi(x.display)-xi(x),ne.top)}),z.visible=Ba(x.display,x.doc,ne),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else te&&(z.visible=Ba(x.display,x.doc,ne));if(!Qc(x,z))break;Vo(x);var ie=bo(x);Ho(x),xs(x,ie),$c(x,ie),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 Jc(x,z){var ne=new gs(x,z);if(Qc(x,ne)){Vo(x),Uu(x,ne);var te=bo(x);Ho(x),xs(x,te),$c(x,te),ne.finish()}}function Gd(x,z,ne){var te=x.display,ie=x.options.lineNumbers,de=te.lineDiv,ye=de.firstChild;function Te(Br){var jr=Br.nextSibling;return Ee&&Be&&x.display.currentWheelTarget==Br?Br.style.display="none":Br.parentNode.removeChild(Br),jr}for(var Fe=te.view,He=te.viewFrom,Nt=0;Nt<Fe.length;Nt++){var Jt=Fe[Nt];if(!Jt.hidden)if(!Jt.node||Jt.node.parentNode!=de){var Hn=Pr(x,Jt,He,ne);de.insertBefore(Hn,ye)}else{for(;ye!=Jt.node;)ye=Te(ye);var Tn=ie&&z!=null&&z<=He&&Jt.lineNumber;Jt.changes&&(Bt(Jt.changes,"gutter")>-1&&(Tn=!1),ar(x,Jt,He,ne)),Tn&&(Ve(Jt.lineNumber),Jt.lineNumber.appendChild(document.createTextNode(Zr(x.options,He)))),ye=Jt.node.nextSibling}He+=Jt.size}for(;ye;)ye=Te(ye)}function qc(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function $c(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+Yr(x)+"px"}function Vu(x){var z=x.display,ne=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var te=Mo(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ie=z.gutters.offsetWidth,de=te+"px",ye=0;ye<ne.length;ye++)if(!ne[ye].hidden){x.options.fixedGutter&&(ne[ye].gutter&&(ne[ye].gutter.style.left=de),ne[ye].gutterBackground&&(ne[ye].gutterBackground.style.left=de));var Te=ne[ye].alignable;if(Te)for(var Fe=0;Fe<Te.length;Fe++)Te[Fe].style.left=de}x.options.fixedGutter&&(z.gutters.style.left=te+ie+"px")}}function bc(x){if(!x.options.lineNumbers)return!1;var z=x.doc,ne=Zr(x.options,z.first+z.size-1),te=x.display;if(ne.length!=te.lineNumChars){var ie=te.measure.appendChild(xt("div",[xt("div",ne)],"CodeMirror-linenumber CodeMirror-gutter-elt")),de=ie.firstChild.offsetWidth,ye=ie.offsetWidth-de;return te.lineGutter.style.width="",te.lineNumInnerWidth=Math.max(de,te.lineGutter.offsetWidth-ye)+1,te.lineNumWidth=te.lineNumInnerWidth+ye,te.lineNumChars=te.lineNumInnerWidth?ne.length:-1,te.lineGutter.style.width=te.lineNumWidth+"px",qc(x.display),!0}return!1}function eu(x,z){for(var ne=[],te=!1,ie=0;ie<x.length;ie++){var de=x[ie],ye=null;if(typeof de!="string"&&(ye=de.style,de=de.className),de=="CodeMirror-linenumbers")if(z)te=!0;else continue;ne.push({className:de,style:ye})}return z&&!te&&ne.push({className:"CodeMirror-linenumbers",style:null}),ne}function Gu(x){var z=x.gutters,ne=x.gutterSpecs;Ve(z),x.lineGutter=null;for(var te=0;te<ne.length;++te){var ie=ne[te],de=ie.className,ye=ie.style,Te=z.appendChild(xt("div",null,"CodeMirror-gutter "+de));ye&&(Te.style.cssText=ye),de=="CodeMirror-linenumbers"&&(x.lineGutter=Te,Te.style.width=(x.lineNumWidth||1)+"px")}z.style.display=ne.length?"":"none",qc(x)}function $l(x){Gu(x.display),Wi(x),Vu(x)}function Yd(x,z,ne,te){var ie=this;this.input=ne,ie.scrollbarFiller=xt("div",null,"CodeMirror-scrollbar-filler"),ie.scrollbarFiller.setAttribute("cm-not-content","true"),ie.gutterFiller=xt("div",null,"CodeMirror-gutter-filler"),ie.gutterFiller.setAttribute("cm-not-content","true"),ie.lineDiv=Lt("div",null,"CodeMirror-code"),ie.selectionDiv=xt("div",null,null,"position: relative; z-index: 1"),ie.cursorDiv=xt("div",null,"CodeMirror-cursors"),ie.measure=xt("div",null,"CodeMirror-measure"),ie.lineMeasure=xt("div",null,"CodeMirror-measure"),ie.lineSpace=Lt("div",[ie.measure,ie.lineMeasure,ie.selectionDiv,ie.cursorDiv,ie.lineDiv],null,"position: relative; outline: none");var de=Lt("div",[ie.lineSpace],"CodeMirror-lines");ie.mover=xt("div",[de],null,"position: relative"),ie.sizer=xt("div",[ie.mover],"CodeMirror-sizer"),ie.sizerWidth=null,ie.heightForcer=xt("div",null,null,"position: absolute; height: "+xn+"px; width: 1px;"),ie.gutters=xt("div",null,"CodeMirror-gutters"),ie.lineGutter=null,ie.scroller=xt("div",[ie.sizer,ie.heightForcer,ie.gutters],"CodeMirror-scroll"),ie.scroller.setAttribute("tabIndex","-1"),ie.wrapper=xt("div",[ie.scrollbarFiller,ie.gutterFiller,ie.scroller],"CodeMirror"),ge&&ke<8&&(ie.gutters.style.zIndex=-1,ie.scroller.style.paddingRight=0),!Ee&&!(ae&&Je)&&(ie.scroller.draggable=!0),x&&(x.appendChild?x.appendChild(ie.wrapper):x(ie.wrapper)),ie.viewFrom=ie.viewTo=z.first,ie.reportedViewFrom=ie.reportedViewTo=z.first,ie.view=[],ie.renderedView=null,ie.externalMeasured=null,ie.viewOffset=0,ie.lastWrapHeight=ie.lastWrapWidth=0,ie.updateLineNumbers=null,ie.nativeBarWidth=ie.barHeight=ie.barWidth=0,ie.scrollbarsClipped=!1,ie.lineNumWidth=ie.lineNumInnerWidth=ie.lineNumChars=null,ie.alignWidgets=!1,ie.cachedCharWidth=ie.cachedTextHeight=ie.cachedPaddingH=null,ie.maxLine=null,ie.maxLineLength=0,ie.maxLineChanged=!1,ie.wheelDX=ie.wheelDY=ie.wheelStartX=ie.wheelStartY=null,ie.shift=!1,ie.selForContextMenu=null,ie.activeTouch=null,ie.gutterSpecs=eu(te.gutters,te.lineNumbers),Gu(ie),ne.init(ie)}var xc=0,Go=null;ge?Go=-.53:ae?Go=15:me?Go=-.7:ot&&(Go=-1/3);function Pl(x){var z=x.wheelDeltaX,ne=x.wheelDeltaY;return z==null&&x.detail&&x.axis==x.HORIZONTAL_AXIS&&(z=x.detail),ne==null&&x.detail&&x.axis==x.VERTICAL_AXIS?ne=x.detail:ne==null&&(ne=x.wheelDelta),{x:z,y:ne}}function Yu(x){var z=Pl(x);return z.x*=Go,z.y*=Go,z}function Xu(x,z){var ne=Pl(z),te=ne.x,ie=ne.y,de=x.display,ye=de.scroller,Te=ye.scrollWidth>ye.clientWidth,Fe=ye.scrollHeight>ye.clientHeight;if(te&&Te||ie&&Fe){if(ie&&Be&&Ee){e:for(var He=z.target,Nt=de.view;He!=ye;He=He.parentNode)for(var Jt=0;Jt<Nt.length;Jt++)if(Nt[Jt].node==He){x.display.currentWheelTarget=He;break e}}if(te&&!ae&&!De&&Go!=null){ie&&Fe&&Fa(x,Math.max(0,ye.scrollTop+ie*Go)),vo(x,Math.max(0,ye.scrollLeft+te*Go)),(!ie||ie&&Fe)&&Qn(z),de.wheelStartX=null;return}if(ie&&Go!=null){var Hn=ie*Go,Tn=x.doc.scrollTop,Br=Tn+de.wrapper.clientHeight;Hn<0?Tn=Math.max(0,Tn+Hn-50):Br=Math.min(x.doc.height,Br+Hn+50),Jc(x,{top:Tn,bottom:Br})}xc<20&&(de.wheelStartX==null?(de.wheelStartX=ye.scrollLeft,de.wheelStartY=ye.scrollTop,de.wheelDX=te,de.wheelDY=ie,setTimeout(function(){if(de.wheelStartX!=null){var jr=ye.scrollLeft-de.wheelStartX,ai=ye.scrollTop-de.wheelStartY,wi=ai&&de.wheelDY&&ai/de.wheelDY||jr&&de.wheelDX&&jr/de.wheelDX;de.wheelStartX=de.wheelStartY=null,wi&&(Go=(Go*xc+wi)/(xc+1),++xc)}},200)):(de.wheelDX+=te,de.wheelDY+=ie))}}var vs=function(x,z){this.ranges=x,this.primIndex=z};vs.prototype.primary=function(){return this.ranges[this.primIndex]},vs.prototype.equals=function(x){if(x==this)return!0;if(x.primIndex!=this.primIndex||x.ranges.length!=this.ranges.length)return!1;for(var z=0;z<this.ranges.length;z++){var ne=this.ranges[z],te=x.ranges[z];if(!Mn(ne.anchor,te.anchor)||!Mn(ne.head,te.head))return!1}return!0},vs.prototype.deepCopy=function(){for(var x=[],z=0;z<this.ranges.length;z++)x[z]=new Ja(Sn(this.ranges[z].anchor),Sn(this.ranges[z].head));return new vs(x,this.primIndex)},vs.prototype.somethingSelected=function(){for(var x=0;x<this.ranges.length;x++)if(!this.ranges[x].empty())return!0;return!1},vs.prototype.contains=function(x,z){z||(z=x);for(var ne=0;ne<this.ranges.length;ne++){var te=this.ranges[ne];if(fr(z,te.from())>=0&&fr(x,te.to())<=0)return ne}return-1};var Ja=function(x,z){this.anchor=x,this.head=z};Ja.prototype.from=function(){return yr(this.anchor,this.head)},Ja.prototype.to=function(){return on(this.anchor,this.head)},Ja.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function As(x,z,ne){var te=x&&x.options.selectionsMayTouch,ie=z[ne];z.sort(function(Hn,Tn){return fr(Hn.from(),Tn.from())}),ne=Bt(z,ie);for(var de=1;de<z.length;de++){var ye=z[de],Te=z[de-1],Fe=fr(Te.to(),ye.from());if(te&&!ye.empty()?Fe>0:Fe>=0){var He=yr(Te.from(),ye.from()),Nt=on(Te.to(),ye.to()),Jt=Te.empty()?ye.from()==ye.head:Te.from()==Te.head;de<=ne&&--ne,z.splice(--de,2,new Ja(Jt?Nt:He,Jt?He:Nt))}}return new vs(z,ne)}function Ps(x,z){return new vs([new Ja(x,z||x)],0)}function qs(x){return x.text?Kn(x.from.line+x.text.length-1,mn(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function Qu(x,z){if(fr(x,z.from)<0)return x;if(fr(x,z.to)<=0)return qs(z);var ne=x.line+z.text.length-(z.to.line-z.from.line)-1,te=x.ch;return x.line==z.to.line&&(te+=qs(z).ch-z.to.ch),Kn(ne,te)}function tu(x,z){for(var ne=[],te=0;te<x.sel.ranges.length;te++){var ie=x.sel.ranges[te];ne.push(new Ja(Qu(ie.anchor,z),Qu(ie.head,z)))}return As(x.cm,ne,x.sel.primIndex)}function Ol(x,z,ne){return x.line==z.line?Kn(ne.line,x.ch-z.ch+ne.ch):Kn(ne.line+(x.line-z.line),x.ch)}function nu(x,z,ne){for(var te=[],ie=Kn(x.first,0),de=ie,ye=0;ye<z.length;ye++){var Te=z[ye],Fe=Ol(Te.from,ie,de),He=Ol(qs(Te),ie,de);if(ie=Te.to,de=He,ne=="around"){var Nt=x.sel.ranges[ye],Jt=fr(Nt.head,Nt.anchor)<0;te[ye]=new Ja(Jt?He:Fe,Jt?Fe:He)}else te[ye]=new Ja(Fe,Fe)}return new vs(te,x.sel.primIndex)}function ru(x){x.doc.mode=Zt(x.options,x.doc.modeOption),Nl(x)}function Nl(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,os(x,100),x.state.modeGen++,x.curOp&&Wi(x)}function Ju(x,z){return z.from.ch==0&&z.to.ch==0&&mn(z.text)==""&&(!x.cm||x.cm.options.wholeLineUpdateBefore)}function iu(x,z,ne,te){function ie(Bi){return ne?ne[Bi]:null}function de(Bi,yi,Ti){Kr(Bi,yi,Ti,te),un(Bi,"change",Bi,z)}function ye(Bi,yi){for(var Ti=[],ia=Bi;ia<yi;++ia)Ti.push(new dr(He[ia],ie(ia),te));return Ti}var Te=z.from,Fe=z.to,He=z.text,Nt=gn(x,Te.line),Jt=gn(x,Fe.line),Hn=mn(He),Tn=ie(He.length-1),Br=Fe.line-Te.line;if(z.full)x.insert(0,ye(0,He.length)),x.remove(He.length,x.size-He.length);else if(Ju(x,z)){var jr=ye(0,He.length-1);de(Jt,Jt.text,Tn),Br&&x.remove(Te.line,Br),jr.length&&x.insert(Te.line,jr)}else if(Nt==Jt)if(He.length==1)de(Nt,Nt.text.slice(0,Te.ch)+Hn+Nt.text.slice(Fe.ch),Tn);else{var ai=ye(1,He.length-1);ai.push(new dr(Hn+Nt.text.slice(Fe.ch),Tn,te)),de(Nt,Nt.text.slice(0,Te.ch)+He[0],ie(0)),x.insert(Te.line+1,ai)}else if(He.length==1)de(Nt,Nt.text.slice(0,Te.ch)+He[0]+Jt.text.slice(Fe.ch),ie(0)),x.remove(Te.line+1,Br);else{de(Nt,Nt.text.slice(0,Te.ch)+He[0],ie(0)),de(Jt,Hn+Jt.text.slice(Fe.ch),Tn);var wi=ye(1,He.length-1);Br>1&&x.remove(Te.line+1,Br-1),x.insert(Te.line+1,wi)}un(x,"change",x,z)}function $s(x,z,ne){function te(ie,de,ye){if(ie.linked)for(var Te=0;Te<ie.linked.length;++Te){var Fe=ie.linked[Te];if(Fe.doc!=de){var He=ye&&Fe.sharedHist;ne&&!He||(z(Fe.doc,He),te(Fe.doc,ie,He))}}}te(x,null,!0)}function wc(x,z){if(z.cm)throw new Error("This document is already in use.");x.doc=z,z.cm=x,to(x),ru(x),Sc(x),x.options.lineWrapping||$n(x),x.options.mode=z.modeOption,Wi(x)}function Sc(x){(x.doc.direction=="rtl"?bn:Ye)(x.display.lineDiv,"CodeMirror-rtl")}function au(x){La(x,function(){Sc(x),Wi(x)})}function Cc(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 ou(x,z){var ne={from:Sn(z.from),to:qs(z),text:Xn(x,z.from,z.to)};return uu(x,ne,z.from.line,z.to.line+1),$s(x,function(te){return uu(te,ne,z.from.line,z.to.line+1)},!0),ne}function qu(x){for(;x.length;){var z=mn(x);if(z.ranges)x.pop();else break}}function su(x,z){if(z)return qu(x.done),mn(x.done);if(x.done.length&&!mn(x.done).ranges)return mn(x.done);if(x.done.length>1&&!x.done[x.done.length-2].ranges)return x.done.pop(),mn(x.done)}function Ec(x,z,ne,te){var ie=x.history;ie.undone.length=0;var de=+new Date,ye,Te;if((ie.lastOp==te||ie.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&ie.lastModTime>de-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(ye=su(ie,ie.lastOp==te)))Te=mn(ye.changes),fr(z.from,z.to)==0&&fr(z.from,Te.to)==0?Te.to=qs(z):ye.changes.push(ou(x,z));else{var Fe=mn(ie.done);for((!Fe||!Fe.ranges)&&Ac(x.sel,ie.done),ye={changes:[ou(x,z)],generation:ie.generation},ie.done.push(ye);ie.done.length>ie.undoDepth;)ie.done.shift(),ie.done[0].ranges||ie.done.shift()}ie.done.push(ne),ie.generation=++ie.maxGeneration,ie.lastModTime=ie.lastSelTime=de,ie.lastOp=ie.lastSelOp=te,ie.lastOrigin=ie.lastSelOrigin=z.origin,Te||ct(x,"historyAdded")}function lu(x,z,ne,te){var ie=z.charAt(0);return ie=="*"||ie=="+"&&ne.ranges.length==te.ranges.length&&ne.somethingSelected()==te.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function cu(x,z,ne,te){var ie=x.history,de=te&&te.origin;ne==ie.lastSelOp||de&&ie.lastSelOrigin==de&&(ie.lastModTime==ie.lastSelTime&&ie.lastOrigin==de||lu(x,de,mn(ie.done),z))?ie.done[ie.done.length-1]=z:Ac(z,ie.done),ie.lastSelTime=+new Date,ie.lastSelOrigin=de,ie.lastSelOp=ne,te&&te.clearRedo!==!1&&qu(ie.undone)}function Ac(x,z){var ne=mn(z);ne&&ne.ranges&&ne.equals(x)||z.push(x)}function uu(x,z,ne,te){var ie=z["spans_"+x.id],de=0;x.iter(Math.max(x.first,ne),Math.min(x.first+x.size,te),function(ye){ye.markedSpans&&((ie||(ie=z["spans_"+x.id]={}))[de]=ye.markedSpans),++de})}function du(x){if(!x)return null;for(var z,ne=0;ne<x.length;++ne)x[ne].marker.explicitlyCleared?z||(z=x.slice(0,ne)):z&&z.push(x[ne]);return z?z.length?z:null:x}function Xd(x,z){var ne=z["spans_"+x.id];if(!ne)return null;for(var te=[],ie=0;ie<z.text.length;++ie)te.push(du(ne[ie]));return te}function $u(x,z){var ne=Xd(x,z),te=jt(x,z);if(!ne)return te;if(!te)return ne;for(var ie=0;ie<ne.length;++ie){var de=ne[ie],ye=te[ie];if(de&&ye)e:for(var Te=0;Te<ye.length;++Te){for(var Fe=ye[Te],He=0;He<de.length;++He)if(de[He].marker==Fe.marker)continue e;de.push(Fe)}else ye&&(ne[ie]=ye)}return ne}function Rl(x,z,ne){for(var te=[],ie=0;ie<x.length;++ie){var de=x[ie];if(de.ranges){te.push(ne?vs.prototype.deepCopy.call(de):de);continue}var ye=de.changes,Te=[];te.push({changes:Te});for(var Fe=0;Fe<ye.length;++Fe){var He=ye[Fe],Nt=void 0;if(Te.push({from:He.from,to:He.to,text:He.text}),z)for(var Jt in He)(Nt=Jt.match(/^spans_(\d+)$/))&&Bt(z,Number(Nt[1]))>-1&&(mn(Te)[Jt]=He[Jt],delete He[Jt])}}return te}function fu(x,z,ne,te){if(te){var ie=x.anchor;if(ne){var de=fr(z,ie)<0;de!=fr(ne,ie)<0?(ie=z,z=ne):de!=fr(z,ne)<0&&(z=ne)}return new Ja(ie,z)}else return new Ja(ne||z,z)}function Fl(x,z,ne,te,ie){ie==null&&(ie=x.cm&&(x.cm.display.shift||x.extend)),Po(x,new vs([fu(x.sel.primary(),z,ne,ie)],0),te)}function Ri(x,z,ne){for(var te=[],ie=x.cm&&(x.cm.display.shift||x.extend),de=0;de<x.sel.ranges.length;de++)te[de]=fu(x.sel.ranges[de],z[de],null,ie);var ye=As(x.cm,te,x.sel.primIndex);Po(x,ye,ne)}function ws(x,z,ne,te){var ie=x.sel.ranges.slice(0);ie[z]=ne,Po(x,As(x.cm,ie,x.sel.primIndex),te)}function ed(x,z,ne,te){Po(x,Ps(z,ne),te)}function Qd(x,z,ne){var te={ranges:z.ranges,update:function(ie){this.ranges=[];for(var de=0;de<ie.length;de++)this.ranges[de]=new Ja(Lr(x,ie[de].anchor),Lr(x,ie[de].head))},origin:ne&&ne.origin};return ct(x,"beforeSelectionChange",x,te),x.cm&&ct(x.cm,"beforeSelectionChange",x.cm,te),te.ranges!=z.ranges?As(x.cm,te.ranges,te.ranges.length-1):z}function ss(x,z,ne){var te=x.history.done,ie=mn(te);ie&&ie.ranges?(te[te.length-1]=z,Mc(x,z,ne)):Po(x,z,ne)}function Po(x,z,ne){Mc(x,z,ne),cu(x,x.sel,x.cm?x.cm.curOp.id:NaN,ne)}function Mc(x,z,ne){(wn(x,"beforeSelectionChange")||x.cm&&wn(x.cm,"beforeSelectionChange"))&&(z=Qd(x,z,ne));var te=ne&&ne.bias||(fr(z.primary().head,x.sel.primary().head)<0?-1:1);Jd(x,_l(x,z,te,!0)),!(ne&&ne.scroll===!1)&&x.cm&&Wo(x.cm)}function Jd(x,z){z.equals(x.sel)||(x.sel=z,x.cm&&(x.cm.curOp.updateInput=1,x.cm.curOp.selectionChanged=!0,En(x.cm)),un(x,"cursorActivity",x))}function qd(x){Jd(x,_l(x,x.sel,null,!1))}function _l(x,z,ne,te){for(var ie,de=0;de<z.ranges.length;de++){var ye=z.ranges[de],Te=z.ranges.length==x.sel.ranges.length&&x.sel.ranges[de],Fe=hu(x,ye.anchor,Te&&Te.anchor,ne,te),He=hu(x,ye.head,Te&&Te.head,ne,te);(ie||Fe!=ye.anchor||He!=ye.head)&&(ie||(ie=z.ranges.slice(0,de)),ie[de]=new Ja(Fe,He))}return ie?As(x.cm,ie,z.primIndex):z}function ls(x,z,ne,te,ie){var de=gn(x,z.line);if(de.markedSpans)for(var ye=0;ye<de.markedSpans.length;++ye){var Te=de.markedSpans[ye],Fe=Te.marker,He="selectLeft"in Fe?!Fe.selectLeft:Fe.inclusiveLeft,Nt="selectRight"in Fe?!Fe.selectRight:Fe.inclusiveRight;if((Te.from==null||(He?Te.from<=z.ch:Te.from<z.ch))&&(Te.to==null||(Nt?Te.to>=z.ch:Te.to>z.ch))){if(ie&&(ct(Fe,"beforeCursorEnter"),Fe.explicitlyCleared))if(de.markedSpans){--ye;continue}else break;if(!Fe.atomic)continue;if(ne){var Jt=Fe.find(te<0?1:-1),Hn=void 0;if((te<0?Nt:He)&&(Jt=el(x,Jt,-te,Jt&&Jt.line==z.line?de:null)),Jt&&Jt.line==z.line&&(Hn=fr(Jt,ne))&&(te<0?Hn<0:Hn>0))return ls(x,Jt,z,te,ie)}var Tn=Fe.find(te<0?-1:1);return(te<0?He:Nt)&&(Tn=el(x,Tn,te,Tn.line==z.line?de:null)),Tn?ls(x,Tn,z,te,ie):null}}return z}function hu(x,z,ne,te,ie){var de=te||1,ye=ls(x,z,ne,de,ie)||!ie&&ls(x,z,ne,de,!0)||ls(x,z,ne,-de,ie)||!ie&&ls(x,z,ne,-de,!0);return ye||(x.cantEdit=!0,Kn(x.first,0))}function el(x,z,ne,te){return ne<0&&z.ch==0?z.line>x.first?Lr(x,Kn(z.line-1)):null:ne>0&&z.ch==(te||gn(x,z.line)).text.length?z.line<x.first+x.size-1?Kn(z.line+1,0):null:new Kn(z.line,z.ch+ne)}function td(x){x.setSelection(Kn(x.firstLine(),0),Kn(x.lastLine()),ft)}function pu(x,z,ne){var te={canceled:!1,from:z.from,to:z.to,text:z.text,origin:z.origin,cancel:function(){return te.canceled=!0}};return ne&&(te.update=function(ie,de,ye,Te){ie&&(te.from=Lr(x,ie)),de&&(te.to=Lr(x,de)),ye&&(te.text=ye),Te!==void 0&&(te.origin=Te)}),ct(x,"beforeChange",x,te),x.cm&&ct(x.cm,"beforeChange",x.cm,te),te.canceled?(x.cm&&(x.cm.curOp.updateInput=2),null):{from:te.from,to:te.to,text:te.text,origin:te.origin}}function dl(x,z,ne){if(x.cm){if(!x.cm.curOp)return Ua(x.cm,dl)(x,z,ne);if(x.cm.state.suppressEdits)return}if(!((wn(x,"beforeChange")||x.cm&&wn(x.cm,"beforeChange"))&&(z=pu(x,z,!0),!z))){var te=Si&&!ne&&li(x,z.from,z.to);if(te)for(var ie=te.length-1;ie>=0;--ie)nd(x,{from:te[ie].from,to:te[ie].to,text:ie?[""]:z.text,origin:z.origin});else nd(x,z)}}function nd(x,z){if(!(z.text.length==1&&z.text[0]==""&&fr(z.from,z.to)==0)){var ne=tu(x,z);Ec(x,z,ne,x.cm?x.cm.curOp.id:NaN),zl(x,z,ne,jt(x,z));var te=[];$s(x,function(ie,de){!de&&Bt(te,ie.history)==-1&&(kc(ie.history,z),te.push(ie.history)),zl(ie,z,null,jt(ie,z))})}}function tl(x,z,ne){var te=x.cm&&x.cm.state.suppressEdits;if(!(te&&!ne)){for(var ie=x.history,de,ye=x.sel,Te=z=="undo"?ie.done:ie.undone,Fe=z=="undo"?ie.undone:ie.done,He=0;He<Te.length&&(de=Te[He],!(ne?de.ranges&&!de.equals(x.sel):!de.ranges));He++);if(He!=Te.length){for(ie.lastOrigin=ie.lastSelOrigin=null;;)if(de=Te.pop(),de.ranges){if(Ac(de,Fe),ne&&!de.equals(x.sel)){Po(x,de,{clearRedo:!1});return}ye=de}else if(te){Te.push(de);return}else break;var Nt=[];Ac(ye,Fe),Fe.push({changes:Nt,generation:ie.generation}),ie.generation=de.generation||++ie.maxGeneration;for(var Jt=wn(x,"beforeChange")||x.cm&&wn(x.cm,"beforeChange"),Hn=function(jr){var ai=de.changes[jr];if(ai.origin=z,Jt&&!pu(x,ai,!1))return Te.length=0,{};Nt.push(ou(x,ai));var wi=jr?tu(x,ai):mn(Te);zl(x,ai,wi,$u(x,ai)),!jr&&x.cm&&x.cm.scrollIntoView({from:ai.from,to:qs(ai)});var Bi=[];$s(x,function(yi,Ti){!Ti&&Bt(Bi,yi.history)==-1&&(kc(yi.history,ai),Bi.push(yi.history)),zl(yi,ai,null,$u(yi,ai))})},Tn=de.changes.length-1;Tn>=0;--Tn){var Br=Hn(Tn);if(Br)return Br.v}}}}function mu(x,z){if(z!=0&&(x.first+=z,x.sel=new vs(Vn(x.sel.ranges,function(ie){return new Ja(Kn(ie.anchor.line+z,ie.anchor.ch),Kn(ie.head.line+z,ie.head.ch))}),x.sel.primIndex),x.cm)){Wi(x.cm,x.first,x.first-z,z);for(var ne=x.cm.display,te=ne.viewFrom;te<ne.viewTo;te++)Aa(x.cm,te,"gutter")}}function zl(x,z,ne,te){if(x.cm&&!x.cm.curOp)return Ua(x.cm,zl)(x,z,ne,te);if(z.to.line<x.first){mu(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 ie=z.text.length-1-(x.first-z.from.line);mu(x,ie),z={from:Kn(x.first,0),to:Kn(z.to.line+ie,z.to.ch),text:[mn(z.text)],origin:z.origin}}var de=x.lastLine();z.to.line>de&&(z={from:z.from,to:Kn(de,gn(x,de).text.length),text:[z.text[0]],origin:z.origin}),z.removed=Xn(x,z.from,z.to),ne||(ne=tu(x,z)),x.cm?$d(x.cm,z,te):iu(x,z,te),Mc(x,ne,ft),x.cantEdit&&hu(x,Kn(x.firstLine(),0))&&(x.cantEdit=!1)}}function $d(x,z,ne){var te=x.doc,ie=x.display,de=z.from,ye=z.to,Te=!1,Fe=de.line;x.options.lineWrapping||(Fe=mr(It(gn(te,de.line))),te.iter(Fe,ye.line+1,function(Tn){if(Tn==ie.maxLine)return Te=!0,!0})),te.sel.contains(z.from,z.to)>-1&&En(x),iu(te,z,ne,ko(x)),x.options.lineWrapping||(te.iter(Fe,de.line+z.text.length,function(Tn){var Br=jn(Tn);Br>ie.maxLineLength&&(ie.maxLine=Tn,ie.maxLineLength=Br,ie.maxLineChanged=!0,Te=!1)}),Te&&(x.curOp.updateMaxLine=!0)),Sa(te,de.line),os(x,400);var He=z.text.length-(ye.line-de.line)-1;z.full?Wi(x):de.line==ye.line&&z.text.length==1&&!Ju(x.doc,z)?Aa(x,de.line,"text"):Wi(x,de.line,ye.line+1,He);var Nt=wn(x,"changes"),Jt=wn(x,"change");if(Jt||Nt){var Hn={from:de,to:ye,text:z.text,removed:z.removed,origin:z.origin};Jt&&un(x,"change",x,Hn),Nt&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(Hn)}x.display.selForContextMenu=null}function ec(x,z,ne,te,ie){var de;te||(te=ne),fr(te,ne)<0&&(de=[te,ne],ne=de[0],te=de[1]),typeof z=="string"&&(z=x.splitLines(z)),dl(x,{from:ne,to:te,text:z,origin:ie})}function ef(x,z,ne,te){ne<x.line?x.line+=te:z<x.line&&(x.line=z,x.ch=0)}function tf(x,z,ne,te){for(var ie=0;ie<x.length;++ie){var de=x[ie],ye=!0;if(de.ranges){de.copied||(de=x[ie]=de.deepCopy(),de.copied=!0);for(var Te=0;Te<de.ranges.length;Te++)ef(de.ranges[Te].anchor,z,ne,te),ef(de.ranges[Te].head,z,ne,te);continue}for(var Fe=0;Fe<de.changes.length;++Fe){var He=de.changes[Fe];if(ne<He.from.line)He.from=Kn(He.from.line+te,He.from.ch),He.to=Kn(He.to.line+te,He.to.ch);else if(z<=He.to.line){ye=!1;break}}ye||(x.splice(0,ie+1),ie=0)}}function kc(x,z){var ne=z.from.line,te=z.to.line,ie=z.text.length-(te-ne)-1;tf(x.done,ne,te,ie),tf(x.undone,ne,te,ie)}function Lc(x,z,ne,te){var ie=z,de=z;return typeof z=="number"?de=gn(x,Wr(x,z)):ie=mr(z),ie==null?null:(te(de,ie)&&x.cm&&Aa(x.cm,ie,ne),de)}function fl(x){this.lines=x,this.parent=null;for(var z=0,ne=0;ne<x.length;++ne)x[ne].parent=this,z+=x[ne].height;this.height=z}fl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(x,z){for(var ne=x,te=x+z;ne<te;++ne){var ie=this.lines[ne];this.height-=ie.height,kr(ie),un(ie,"delete")}this.lines.splice(x,z)},collapse:function(x){x.push.apply(x,this.lines)},insertInner:function(x,z,ne){this.height+=ne,this.lines=this.lines.slice(0,x).concat(z).concat(this.lines.slice(x));for(var te=0;te<z.length;++te)z[te].parent=this},iterN:function(x,z,ne){for(var te=x+z;x<te;++x)if(ne(this.lines[x]))return!0}};function tc(x){this.children=x;for(var z=0,ne=0,te=0;te<x.length;++te){var ie=x[te];z+=ie.chunkSize(),ne+=ie.height,ie.parent=this}this.size=z,this.height=ne,this.parent=null}tc.prototype={chunkSize:function(){return this.size},removeInner:function(x,z){this.size-=z;for(var ne=0;ne<this.children.length;++ne){var te=this.children[ne],ie=te.chunkSize();if(x<ie){var de=Math.min(z,ie-x),ye=te.height;if(te.removeInner(x,de),this.height-=ye-te.height,ie==de&&(this.children.splice(ne--,1),te.parent=null),(z-=de)==0)break;x=0}else x-=ie}if(this.size-z<25&&(this.children.length>1||!(this.children[0]instanceof fl))){var Te=[];this.collapse(Te),this.children=[new fl(Te)],this.children[0].parent=this}},collapse:function(x){for(var z=0;z<this.children.length;++z)this.children[z].collapse(x)},insertInner:function(x,z,ne){this.size+=z.length,this.height+=ne;for(var te=0;te<this.children.length;++te){var ie=this.children[te],de=ie.chunkSize();if(x<=de){if(ie.insertInner(x,z,ne),ie.lines&&ie.lines.length>50){for(var ye=ie.lines.length%25+25,Te=ye;Te<ie.lines.length;){var Fe=new fl(ie.lines.slice(Te,Te+=25));ie.height-=Fe.height,this.children.splice(++te,0,Fe),Fe.parent=this}ie.lines=ie.lines.slice(0,ye),this.maybeSpill()}break}x-=de}},maybeSpill:function(){if(!(this.children.length<=10)){var x=this;do{var z=x.children.splice(x.children.length-5,5),ne=new tc(z);if(x.parent){x.size-=ne.size,x.height-=ne.height;var ie=Bt(x.parent.children,x);x.parent.children.splice(ie+1,0,ne)}else{var te=new tc(x.children);te.parent=x,x.children=[te,ne],x=te}ne.parent=x.parent}while(x.children.length>10);x.parent.maybeSpill()}},iterN:function(x,z,ne){for(var te=0;te<this.children.length;++te){var ie=this.children[te],de=ie.chunkSize();if(x<de){var ye=Math.min(z,de-x);if(ie.iterN(x,ye,ne))return!0;if((z-=ye)==0)break;x=0}else x-=de}}};var nc=function(x,z,ne){if(ne)for(var te in ne)ne.hasOwnProperty(te)&&(this[te]=ne[te]);this.doc=x,this.node=z};nc.prototype.clear=function(){var x=this.doc.cm,z=this.line.widgets,ne=this.line,te=mr(ne);if(!(te==null||!z)){for(var ie=0;ie<z.length;++ie)z[ie]==this&&z.splice(ie--,1);z.length||(ne.widgets=null);var de=hi(this);lr(ne,Math.max(0,ne.height-de)),x&&(La(x,function(){nf(x,ne,-de),Aa(x,te,"widget")}),un(x,"lineWidgetCleared",x,this,te))}},nc.prototype.changed=function(){var x=this,z=this.height,ne=this.doc.cm,te=this.line;this.height=null;var ie=hi(this)-z;ie&&(Hr(this.doc,te)||lr(te,te.height+ie),ne&&La(ne,function(){ne.curOp.forceUpdate=!0,nf(ne,te,ie),un(ne,"lineWidgetChanged",ne,x,mr(te))}))},Bn(nc);function nf(x,z,ne){Gn(z)<(x.curOp&&x.curOp.scrollTop||x.doc.scrollTop)&&ms(x,ne)}function rf(x,z,ne,te){var ie=new nc(x,ne,te),de=x.cm;return de&&ie.noHScroll&&(de.display.alignWidgets=!0),Lc(x,z,"widget",function(ye){var Te=ye.widgets||(ye.widgets=[]);if(ie.insertAt==null?Te.push(ie):Te.splice(Math.min(Te.length-1,Math.max(0,ie.insertAt)),0,ie),ie.line=ye,de&&!Hr(x,ye)){var Fe=Gn(ye)<x.scrollTop;lr(ye,ye.height+hi(ie)),Fe&&ms(de,ie.height),de.curOp.forceUpdate=!0}return!0}),de&&un(de,"lineWidgetAdded",de,ie,typeof z=="number"?z:mr(z)),ie}var af=0,hl=function(x,z){this.lines=[],this.type=z,this.doc=x,this.id=++af};hl.prototype.clear=function(){if(!this.explicitlyCleared){var x=this.doc.cm,z=x&&!x.curOp;if(z&&Ks(x),wn(this,"clear")){var ne=this.find();ne&&un(this,"clear",ne.from,ne.to)}for(var te=null,ie=null,de=0;de<this.lines.length;++de){var ye=this.lines[de],Te=Pn(ye.markedSpans,this);x&&!this.collapsed?Aa(x,mr(ye),"text"):x&&(Te.to!=null&&(ie=mr(ye)),Te.from!=null&&(te=mr(ye))),ye.markedSpans=cr(ye.markedSpans,Te),Te.from==null&&this.collapsed&&!Hr(this.doc,ye)&&x&&lr(ye,Ka(x.display))}if(x&&this.collapsed&&!x.options.lineWrapping)for(var Fe=0;Fe<this.lines.length;++Fe){var He=It(this.lines[Fe]),Nt=jn(He);Nt>x.display.maxLineLength&&(x.display.maxLine=He,x.display.maxLineLength=Nt,x.display.maxLineChanged=!0)}te!=null&&x&&this.collapsed&&Wi(x,te,ie+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&qd(x.doc)),x&&un(x,"markerCleared",x,this,te,ie),z&&Ts(x),this.parent&&this.parent.clear()}},hl.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var ne,te,ie=0;ie<this.lines.length;++ie){var de=this.lines[ie],ye=Pn(de.markedSpans,this);if(ye.from!=null&&(ne=Kn(z?de:mr(de),ye.from),x==-1))return ne;if(ye.to!=null&&(te=Kn(z?de:mr(de),ye.to),x==1))return te}return ne&&{from:ne,to:te}},hl.prototype.changed=function(){var x=this,z=this.find(-1,!0),ne=this,te=this.doc.cm;!z||!te||La(te,function(){var ie=z.line,de=mr(z.line),ye=Xi(te,de);if(ye&&(Zi(ye),te.curOp.selectionChanged=te.curOp.forceUpdate=!0),te.curOp.updateMaxLine=!0,!Hr(ne.doc,ie)&&ne.height!=null){var Te=ne.height;ne.height=null;var Fe=hi(ne)-Te;Fe&&lr(ie,ie.height+Fe)}un(te,"markerChanged",te,x)})},hl.prototype.attachLine=function(x){if(!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(!z.maybeHiddenMarkers||Bt(z.maybeHiddenMarkers,this)==-1)&&(z.maybeUnhiddenMarkers||(z.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(x)},hl.prototype.detachLine=function(x){if(this.lines.splice(Bt(this.lines,x),1),!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(z.maybeHiddenMarkers||(z.maybeHiddenMarkers=[])).push(this)}},Bn(hl);function nl(x,z,ne,te,ie){if(te&&te.shared)return ho(x,z,ne,te,ie);if(x.cm&&!x.cm.curOp)return Ua(x.cm,nl)(x,z,ne,te,ie);var de=new hl(x,ie),ye=fr(z,ne);if(te&&ln(te,de,!1),ye>0||ye==0&&de.clearWhenEmpty!==!1)return de;if(de.replacedWith&&(de.collapsed=!0,de.widgetNode=Lt("span",[de.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||de.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(de.widgetNode.insertLeft=!0)),de.collapsed){if(Et(x,z.line,z,ne,de)||z.line!=ne.line&&Et(x,ne.line,z,ne,de))throw new Error("Inserting collapsed marker partially overlapping an existing one");Pt()}de.addToHistory&&Ec(x,{from:z,to:ne,origin:"markText"},x.sel,NaN);var Te=z.line,Fe=x.cm,He;if(x.iter(Te,ne.line+1,function(Jt){Fe&&de.collapsed&&!Fe.options.lineWrapping&&It(Jt)==Fe.display.maxLine&&(He=!0),de.collapsed&&Te!=z.line&&lr(Jt,0),Gr(Jt,new pn(de,Te==z.line?z.ch:null,Te==ne.line?ne.ch:null)),++Te}),de.collapsed&&x.iter(z.line,ne.line+1,function(Jt){Hr(x,Jt)&&lr(Jt,0)}),de.clearOnEnter&&$t(de,"beforeCursorEnter",function(){return de.clear()}),de.readOnly&&(Ft(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),de.collapsed&&(de.id=++af,de.atomic=!0),Fe){if(He&&(Fe.curOp.updateMaxLine=!0),de.collapsed)Wi(Fe,z.line,ne.line+1);else if(de.className||de.startStyle||de.endStyle||de.css||de.attributes||de.title)for(var Nt=z.line;Nt<=ne.line;Nt++)Aa(Fe,Nt,"text");de.atomic&&qd(Fe.doc),un(Fe,"markerAdded",Fe,de)}return de}var Da=function(x,z){this.markers=x,this.primary=z;for(var ne=0;ne<x.length;++ne)x[ne].parent=this};Da.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var x=0;x<this.markers.length;++x)this.markers[x].clear();un(this,"clear")}},Da.prototype.find=function(x,z){return this.primary.find(x,z)},Bn(Da);function ho(x,z,ne,te,ie){te=ln(te),te.shared=!1;var de=[nl(x,z,ne,te,ie)],ye=de[0],Te=te.widgetNode;return $s(x,function(Fe){Te&&(te.widgetNode=Te.cloneNode(!0)),de.push(nl(Fe,Lr(Fe,z),Lr(Fe,ne),te,ie));for(var He=0;He<Fe.linked.length;++He)if(Fe.linked[He].isParent)return;ye=mn(de)}),new Da(de,ye)}function pl(x){return x.findMarks(Kn(x.first,0),x.clipPos(Kn(x.lastLine())),function(z){return z.parent})}function of(x,z){for(var ne=0;ne<z.length;ne++){var te=z[ne],ie=te.find(),de=x.clipPos(ie.from),ye=x.clipPos(ie.to);if(fr(de,ye)){var Te=nl(x,de,ye,te.primary,te.primary.type);te.markers.push(Te),Te.parent=te}}}function Ss(x){for(var z=function(te){var ie=x[te],de=[ie.primary.doc];$s(ie.primary.doc,function(Fe){return de.push(Fe)});for(var ye=0;ye<ie.markers.length;ye++){var Te=ie.markers[ye];Bt(de,Te.doc)==-1&&(Te.parent=null,ie.markers.splice(ye--,1))}},ne=0;ne<x.length;ne++)z(ne)}var sf=0,Lo=function(x,z,ne,te,ie){if(!(this instanceof Lo))return new Lo(x,z,ne,te,ie);ne==null&&(ne=0),tc.call(this,[new fl([new dr("",null)])]),this.first=ne,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ne;var de=Kn(ne,0);this.sel=Ps(de),this.history=new Cc(null),this.id=++sf,this.modeOption=z,this.lineSep=te,this.direction=ie=="rtl"?"rtl":"ltr",this.extend=!1,typeof x=="string"&&(x=this.splitLines(x)),iu(this,{from:de,to:de,text:x}),Po(this,Ps(de),ft)};Lo.prototype=fe(tc.prototype,{constructor:Lo,iter:function(x,z,ne){ne?this.iterN(x-this.first,z-x,ne):this.iterN(this.first,this.first+this.size,x)},insert:function(x,z){for(var ne=0,te=0;te<z.length;++te)ne+=z[te].height;this.insertInner(x-this.first,z,ne)},remove:function(x,z){this.removeInner(x-this.first,z)},getValue:function(x){var z=_r(this,this.first,this.first+this.size);return x===!1?z:z.join(x||this.lineSeparator())},setValue:mo(function(x){var z=Kn(this.first,0),ne=this.first+this.size-1;dl(this,{from:z,to:Kn(ne,gn(this,ne).text.length),text:this.splitLines(x),origin:"setValue",full:!0},!0),this.cm&&Ds(this.cm,0,0),Po(this,Ps(z),ft)}),replaceRange:function(x,z,ne,te){z=Lr(this,z),ne=ne?Lr(this,ne):z,ec(this,x,z,ne,te)},getRange:function(x,z,ne){var te=Xn(this,Lr(this,x),Lr(this,z));return ne===!1?te:te.join(ne||this.lineSeparator())},getLine:function(x){var z=this.getLineHandle(x);return z&&z.text},getLineHandle:function(x){if(Rr(this,x))return gn(this,x)},getLineNumber:function(x){return mr(x)},getLineHandleVisualStart:function(x){return typeof x=="number"&&(x=gn(this,x)),It(x)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(x){return Lr(this,x)},getCursor:function(x){var z=this.sel.primary(),ne;return x==null||x=="head"?ne=z.head:x=="anchor"?ne=z.anchor:x=="end"||x=="to"||x===!1?ne=z.to():ne=z.from(),ne},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:mo(function(x,z,ne){ed(this,Lr(this,typeof x=="number"?Kn(x,z||0):x),null,ne)}),setSelection:mo(function(x,z,ne){ed(this,Lr(this,x),Lr(this,z||x),ne)}),extendSelection:mo(function(x,z,ne){Fl(this,Lr(this,x),z&&Lr(this,z),ne)}),extendSelections:mo(function(x,z){Ri(this,Cn(this,x),z)}),extendSelectionsBy:mo(function(x,z){var ne=Vn(this.sel.ranges,x);Ri(this,Cn(this,ne),z)}),setSelections:mo(function(x,z,ne){if(x.length){for(var te=[],ie=0;ie<x.length;ie++)te[ie]=new Ja(Lr(this,x[ie].anchor),Lr(this,x[ie].head));z==null&&(z=Math.min(x.length-1,this.sel.primIndex)),Po(this,As(this.cm,te,z),ne)}}),addSelection:mo(function(x,z,ne){var te=this.sel.ranges.slice(0);te.push(new Ja(Lr(this,x),Lr(this,z||x))),Po(this,As(this.cm,te,te.length-1),ne)}),getSelection:function(x){for(var z=this.sel.ranges,ne,te=0;te<z.length;te++){var ie=Xn(this,z[te].from(),z[te].to());ne=ne?ne.concat(ie):ie}return x===!1?ne:ne.join(x||this.lineSeparator())},getSelections:function(x){for(var z=[],ne=this.sel.ranges,te=0;te<ne.length;te++){var ie=Xn(this,ne[te].from(),ne[te].to());x!==!1&&(ie=ie.join(x||this.lineSeparator())),z[te]=ie}return z},replaceSelection:function(x,z,ne){for(var te=[],ie=0;ie<this.sel.ranges.length;ie++)te[ie]=x;this.replaceSelections(te,z,ne||"+input")},replaceSelections:mo(function(x,z,ne){for(var te=[],ie=this.sel,de=0;de<ie.ranges.length;de++){var ye=ie.ranges[de];te[de]={from:ye.from(),to:ye.to(),text:this.splitLines(x[de]),origin:ne}}for(var Te=z&&z!="end"&&nu(this,te,z),Fe=te.length-1;Fe>=0;Fe--)dl(this,te[Fe]);Te?ss(this,Te):this.cm&&Wo(this.cm)}),undo:mo(function(){tl(this,"undo")}),redo:mo(function(){tl(this,"redo")}),undoSelection:mo(function(){tl(this,"undo",!0)}),redoSelection:mo(function(){tl(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,z=0,ne=0,te=0;te<x.done.length;te++)x.done[te].ranges||++z;for(var ie=0;ie<x.undone.length;ie++)x.undone[ie].ranges||++ne;return{undo:z,redo:ne}},clearHistory:function(){var x=this;this.history=new Cc(this.history.maxGeneration),$s(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:Rl(this.history.done),undone:Rl(this.history.undone)}},setHistory:function(x){var z=this.history=new Cc(this.history.maxGeneration);z.done=Rl(x.done.slice(0),null,!0),z.undone=Rl(x.undone.slice(0),null,!0)},setGutterMarker:mo(function(x,z,ne){return Lc(this,x,"gutter",function(te){var ie=te.gutterMarkers||(te.gutterMarkers={});return ie[z]=ne,!ne&&le(ie)&&(te.gutterMarkers=null),!0})}),clearGutter:mo(function(x){var z=this;this.iter(function(ne){ne.gutterMarkers&&ne.gutterMarkers[x]&&Lc(z,ne,"gutter",function(){return ne.gutterMarkers[x]=null,le(ne.gutterMarkers)&&(ne.gutterMarkers=null),!0})})}),lineInfo:function(x){var z;if(typeof x=="number"){if(!Rr(this,x)||(z=x,x=gn(this,x),!x))return null}else if(z=mr(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:mo(function(x,z,ne){return Lc(this,x,z=="gutter"?"gutter":"class",function(te){var ie=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass";if(!te[ie])te[ie]=ne;else{if(Ae(ne).test(te[ie]))return!1;te[ie]+=" "+ne}return!0})}),removeLineClass:mo(function(x,z,ne){return Lc(this,x,z=="gutter"?"gutter":"class",function(te){var ie=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass",de=te[ie];if(de)if(ne==null)te[ie]=null;else{var ye=de.match(Ae(ne));if(!ye)return!1;var Te=ye.index+ye[0].length;te[ie]=de.slice(0,ye.index)+(!ye.index||Te==de.length?"":" ")+de.slice(Te)||null}else return!1;return!0})}),addLineWidget:mo(function(x,z,ne){return rf(this,x,z,ne)}),removeLineWidget:function(x){x.clear()},markText:function(x,z,ne){return nl(this,Lr(this,x),Lr(this,z),ne,ne&&ne.type||"range")},setBookmark:function(x,z){var ne={replacedWith:z&&(z.nodeType==null?z.widget:z),insertLeft:z&&z.insertLeft,clearWhenEmpty:!1,shared:z&&z.shared,handleMouseEvents:z&&z.handleMouseEvents};return x=Lr(this,x),nl(this,x,x,ne,"bookmark")},findMarksAt:function(x){x=Lr(this,x);var z=[],ne=gn(this,x.line).markedSpans;if(ne)for(var te=0;te<ne.length;++te){var ie=ne[te];(ie.from==null||ie.from<=x.ch)&&(ie.to==null||ie.to>=x.ch)&&z.push(ie.marker.parent||ie.marker)}return z},findMarks:function(x,z,ne){x=Lr(this,x),z=Lr(this,z);var te=[],ie=x.line;return this.iter(x.line,z.line+1,function(de){var ye=de.markedSpans;if(ye)for(var Te=0;Te<ye.length;Te++){var Fe=ye[Te];!(Fe.to!=null&&ie==x.line&&x.ch>=Fe.to||Fe.from==null&&ie!=x.line||Fe.from!=null&&ie==z.line&&Fe.from>=z.ch)&&(!ne||ne(Fe.marker))&&te.push(Fe.marker.parent||Fe.marker)}++ie}),te},getAllMarks:function(){var x=[];return this.iter(function(z){var ne=z.markedSpans;if(ne)for(var te=0;te<ne.length;++te)ne[te].from!=null&&x.push(ne[te].marker)}),x},posFromIndex:function(x){var z,ne=this.first,te=this.lineSeparator().length;return this.iter(function(ie){var de=ie.text.length+te;if(de>x)return z=x,!0;x-=de,++ne}),Lr(this,Kn(ne,z))},indexFromPos:function(x){x=Lr(this,x);var z=x.ch;if(x.line<this.first||x.ch<0)return 0;var ne=this.lineSeparator().length;return this.iter(this.first,x.line,function(te){z+=te.text.length+ne}),z},copy:function(x){var z=new Lo(_r(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return z.scrollTop=this.scrollTop,z.scrollLeft=this.scrollLeft,z.sel=this.sel,z.extend=!1,x&&(z.history.undoDepth=this.history.undoDepth,z.setHistory(this.getHistory())),z},linkedDoc:function(x){x||(x={});var z=this.first,ne=this.first+this.size;x.from!=null&&x.from>z&&(z=x.from),x.to!=null&&x.to<ne&&(ne=x.to);var te=new Lo(_r(this,z,ne),x.mode||this.modeOption,z,this.lineSep,this.direction);return x.sharedHist&&(te.history=this.history),(this.linked||(this.linked=[])).push({doc:te,sharedHist:x.sharedHist}),te.linked=[{doc:this,isParent:!0,sharedHist:x.sharedHist}],of(te,pl(this)),te},unlinkDoc:function(x){if(x instanceof ya&&(x=x.doc),this.linked)for(var z=0;z<this.linked.length;++z){var ne=this.linked[z];if(ne.doc==x){this.linked.splice(z,1),x.unlinkDoc(this),Ss(pl(this));break}}if(x.history==this.history){var te=[x.id];$s(x,function(ie){return te.push(ie.id)},!0),x.history=new Cc(null),x.history.done=Rl(this.history.done,te),x.history.undone=Rl(this.history.undone,te)}},iterLinkedDocs:function(x){$s(this,x)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(x){return this.lineSep?x.split(this.lineSep):kt(x)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:mo(function(x){x!="rtl"&&(x="ltr"),x!=this.direction&&(this.direction=x,this.iter(function(z){return z.order=null}),this.cm&&au(this.cm))})}),Lo.prototype.eachLine=Lo.prototype.iter;var rd=0;function eh(x){var z=this;if(rc(z),!(Dt(z,x)||ki(z.display,x))){Qn(x),ge&&(rd=+new Date);var ne=Pa(z,x,!0),te=x.dataTransfer.files;if(!(!ne||z.isReadOnly()))if(te&&te.length&&window.FileReader&&window.File)for(var ie=te.length,de=Array(ie),ye=0,Te=function(){++ye==ie&&Ua(z,function(){ne=Lr(z.doc,ne);var Tn={from:ne,to:ne,text:z.doc.splitLines(de.filter(function(Br){return Br!=null}).join(z.doc.lineSeparator())),origin:"paste"};dl(z.doc,Tn),ss(z.doc,Ps(Lr(z.doc,ne),Lr(z.doc,qs(Tn))))})()},Fe=function(Tn,Br){if(z.options.allowDropFileTypes&&Bt(z.options.allowDropFileTypes,Tn.type)==-1){Te();return}var jr=new FileReader;jr.onerror=function(){return Te()},jr.onload=function(){var ai=jr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ai)){Te();return}de[Br]=ai,Te()},jr.readAsText(Tn)},He=0;He<te.length;He++)Fe(te[He],He);else{if(z.state.draggingText&&z.doc.sel.contains(ne)>-1){z.state.draggingText(x),setTimeout(function(){return z.display.input.focus()},20);return}try{var Nt=x.dataTransfer.getData("Text");if(Nt){var Jt;if(z.state.draggingText&&!z.state.draggingText.copy&&(Jt=z.listSelections()),Mc(z.doc,Ps(ne,ne)),Jt)for(var Hn=0;Hn<Jt.length;++Hn)ec(z.doc,"",Jt[Hn].anchor,Jt[Hn].head,"drag");z.replaceSelection(Nt,"around","paste"),z.display.input.focus()}}catch(Tn){}}}}function th(x,z){if(ge&&(!x.state.draggingText||+new Date-rd<100)){Sr(z);return}if(!(Dt(x,z)||ki(x.display,z))&&(z.dataTransfer.setData("Text",x.getSelection()),z.dataTransfer.effectAllowed="copyMove",z.dataTransfer.setDragImage&&!ot)){var ne=xt("img",null,null,"position: fixed; left: 0; top: 0;");ne.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",De&&(ne.width=ne.height=1,x.display.wrapper.appendChild(ne),ne._top=ne.offsetTop),z.dataTransfer.setDragImage(ne,0,0),De&&ne.parentNode.removeChild(ne)}}function id(x,z){var ne=Pa(x,z);if(ne){var te=document.createDocumentFragment();ma(x,ne,te),x.display.dragCursor||(x.display.dragCursor=xt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv)),At(x.display.dragCursor,te)}}function rc(x){x.display.dragCursor&&(x.display.lineSpace.removeChild(x.display.dragCursor),x.display.dragCursor=null)}function ic(x){if(document.getElementsByClassName){for(var z=document.getElementsByClassName("CodeMirror"),ne=[],te=0;te<z.length;te++){var ie=z[te].CodeMirror;ie&&ne.push(ie)}ne.length&&ne[0].operation(function(){for(var de=0;de<ne.length;de++)x(ne[de])})}}var ei=!1;function ad(){ei||(gu(),ei=!0)}function gu(){var x;$t(window,"resize",function(){x==null&&(x=setTimeout(function(){x=null,ic(vu)},100))}),$t(window,"blur",function(){return ic(Ko)})}function vu(x){var z=x.display;z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.scrollbarsClipped=!1,x.setSize()}for(var Os={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"},Bc=0;Bc<10;Bc++)Os[Bc+48]=Os[Bc+96]=String(Bc);for(var yu=65;yu<=90;yu++)Os[yu]=String.fromCharCode(yu);for(var Dc=1;Dc<=12;Dc++)Os[Dc+111]=Os[Dc+63235]="F"+Dc;var ao={};ao.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"},ao.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"},ao.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"},ao.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"]},ao.default=Be?ao.macDefault:ao.pcDefault;function nh(x){var z=x.split(/-(?!$)/);x=z[z.length-1];for(var ne,te,ie,de,ye=0;ye<z.length-1;ye++){var Te=z[ye];if(/^(cmd|meta|m)$/i.test(Te))de=!0;else if(/^a(lt)?$/i.test(Te))ne=!0;else if(/^(c|ctrl|control)$/i.test(Te))te=!0;else if(/^s(hift)?$/i.test(Te))ie=!0;else throw new Error("Unrecognized modifier name: "+Te)}return ne&&(x="Alt-"+x),te&&(x="Ctrl-"+x),de&&(x="Cmd-"+x),ie&&(x="Shift-"+x),x}function od(x){var z={};for(var ne in x)if(x.hasOwnProperty(ne)){var te=x[ne];if(/^(name|fallthrough|(de|at)tach)$/.test(ne))continue;if(te=="..."){delete x[ne];continue}for(var ie=Vn(ne.split(" "),nh),de=0;de<ie.length;de++){var ye=void 0,Te=void 0;de==ie.length-1?(Te=ie.join(" "),ye=te):(Te=ie.slice(0,de+1).join(" "),ye="...");var Fe=z[Te];if(!Fe)z[Te]=ye;else if(Fe!=ye)throw new Error("Inconsistent bindings for "+Te)}delete x[ne]}for(var He in z)x[He]=z[He];return x}function rl(x,z,ne,te){z=cs(z);var ie=z.call?z.call(x,te):z[x];if(ie===!1)return"nothing";if(ie==="...")return"multi";if(ie!=null&&ne(ie))return"handled";if(z.fallthrough){if(Object.prototype.toString.call(z.fallthrough)!="[object Array]")return rl(x,z.fallthrough,ne,te);for(var de=0;de<z.fallthrough.length;de++){var ye=rl(x,z.fallthrough[de],ne,te);if(ye)return ye}}}function Ic(x){var z=typeof x=="string"?x:Os[x.keyCode];return z=="Ctrl"||z=="Alt"||z=="Shift"||z=="Mod"}function ml(x,z,ne){var te=x;return z.altKey&&te!="Alt"&&(x="Alt-"+x),(vt?z.metaKey:z.ctrlKey)&&te!="Ctrl"&&(x="Ctrl-"+x),(vt?z.ctrlKey:z.metaKey)&&te!="Mod"&&(x="Cmd-"+x),!ne&&z.shiftKey&&te!="Shift"&&(x="Shift-"+x),x}function Hl(x,z){if(De&&x.keyCode==34&&x.char)return!1;var ne=Os[x.keyCode];return ne==null||x.altGraphKey?!1:(x.keyCode==3&&x.code&&(ne=x.code),ml(ne,x,z))}function cs(x){return typeof x=="string"?ao[x]:x}function Ms(x,z){for(var ne=x.doc.sel.ranges,te=[],ie=0;ie<ne.length;ie++){for(var de=z(ne[ie]);te.length&&fr(de.from,mn(te).to)<=0;){var ye=te.pop();if(fr(ye.from,de.from)<0){de.from=ye.from;break}}te.push(de)}La(x,function(){for(var Te=te.length-1;Te>=0;Te--)ec(x.doc,"",te[Te].from,te[Te].to,"+delete");Wo(x)})}function Yo(x,z,ne){var te=St(x.text,z+ne,ne);return te<0||te>x.text.length?null:te}function js(x,z,ne){var te=Yo(x,z.ch,ne);return te==null?null:new Kn(z.line,te,ne<0?"after":"before")}function Kl(x,z,ne,te,ie){if(x){z.doc.direction=="rtl"&&(ie=-ie);var de=Mt(ne,z.doc.direction);if(de){var ye=ie<0?mn(de):de[0],Te=ie<0==(ye.level==1),Fe=Te?"after":"before",He;if(ye.level>0||z.doc.direction=="rtl"){var Nt=Ci(z,ne);He=ie<0?ne.text.length-1:0;var Jt=gi(z,Nt,He).top;He=Ht(function(Hn){return gi(z,Nt,Hn).top==Jt},ie<0==(ye.level==1)?ye.from:ye.to-1,He),Fe=="before"&&(He=Yo(ne,He,1))}else He=ie<0?ye.to:ye.from;return new Kn(te,He,Fe)}}return new Kn(te,ie<0?ne.text.length:0,ie<0?"before":"after")}function Zs(x,z,ne,te){var ie=Mt(z,x.doc.direction);if(!ie)return js(z,ne,te);ne.ch>=z.text.length?(ne.ch=z.text.length,ne.sticky="before"):ne.ch<=0&&(ne.ch=0,ne.sticky="after");var de=sn(ie,ne.ch,ne.sticky),ye=ie[de];if(x.doc.direction=="ltr"&&ye.level%2==0&&(te>0?ye.to>ne.ch:ye.from<ne.ch))return js(z,ne,te);var Te=function(wi,Bi){return Yo(z,wi instanceof Kn?wi.ch:wi,Bi)},Fe,He=function(wi){return x.options.lineWrapping?(Fe=Fe||Ci(x,z),Ra(x,z,Fe,wi)):{begin:0,end:z.text.length}},Nt=He(ne.sticky=="before"?Te(ne,-1):ne.ch);if(x.doc.direction=="rtl"||ye.level==1){var Jt=ye.level==1==te<0,Hn=Te(ne,Jt?1:-1);if(Hn!=null&&(Jt?Hn<=ye.to&&Hn<=Nt.end:Hn>=ye.from&&Hn>=Nt.begin)){var Tn=Jt?"before":"after";return new Kn(ne.line,Hn,Tn)}}var Br=function(wi,Bi,yi){for(var Ti=function(so,Uo){return Uo?new Kn(ne.line,Te(so,1),"before"):new Kn(ne.line,so,"after")};wi>=0&&wi<ie.length;wi+=Bi){var ia=ie[wi],oa=Bi>0==(ia.level!=1),Ia=oa?yi.begin:Te(yi.end,-1);if(ia.from<=Ia&&Ia<ia.to||(Ia=oa?ia.from:Te(ia.to,-1),yi.begin<=Ia&&Ia<yi.end))return Ti(Ia,oa)}},jr=Br(de+te,te,Nt);if(jr)return jr;var ai=te>0?Nt.end:Te(Nt.begin,-1);return ai!=null&&!(te>0&&ai==z.text.length)&&(jr=Br(te>0?0:ie.length-1,te,He(ai)),jr)?jr:null}var ac={selectAll:td,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),ft)},killLine:function(x){return Ms(x,function(z){if(z.empty()){var ne=gn(x.doc,z.head.line).text.length;return z.head.ch==ne&&z.head.line<x.lastLine()?{from:z.head,to:Kn(z.head.line+1,0)}:{from:z.head,to:Kn(z.head.line,ne)}}else return{from:z.from(),to:z.to()}})},deleteLine:function(x){return Ms(x,function(z){return{from:Kn(z.from().line,0),to:Lr(x.doc,Kn(z.to().line+1,0))}})},delLineLeft:function(x){return Ms(x,function(z){return{from:Kn(z.from().line,0),to:z.from()}})},delWrappedLineLeft:function(x){return Ms(x,function(z){var ne=x.charCoords(z.head,"div").top+5,te=x.coordsChar({left:0,top:ne},"div");return{from:te,to:z.from()}})},delWrappedLineRight:function(x){return Ms(x,function(z){var ne=x.charCoords(z.head,"div").top+5,te=x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ne},"div");return{from:z.from(),to:te}})},undo:function(x){return x.undo()},redo:function(x){return x.redo()},undoSelection:function(x){return x.undoSelection()},redoSelection:function(x){return x.redoSelection()},goDocStart:function(x){return x.extendSelection(Kn(x.firstLine(),0))},goDocEnd:function(x){return x.extendSelection(Kn(x.lastLine()))},goLineStart:function(x){return x.extendSelectionsBy(function(z){return sd(x,z.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(x){return x.extendSelectionsBy(function(z){return lf(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 ne=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ne},"div")},Gt)},goLineLeft:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:0,top:ne},"div")},Gt)},goLineLeftSmart:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5,te=x.coordsChar({left:0,top:ne},"div");return te.ch<x.getLine(te.line).search(/\S/)?lf(x,z.head):te},Gt)},goLineUp:function(x){return x.moveV(-1,"line")},goLineDown:function(x){return x.moveV(1,"line")},goPageUp:function(x){return x.moveV(-1,"page")},goPageDown:function(x){return x.moveV(1,"page")},goCharLeft:function(x){return x.moveH(-1,"char")},goCharRight:function(x){return x.moveH(1,"char")},goColumnLeft:function(x){return x.moveH(-1,"column")},goColumnRight:function(x){return x.moveH(1,"column")},goWordLeft:function(x){return x.moveH(-1,"word")},goGroupRight:function(x){return x.moveH(1,"group")},goGroupLeft:function(x){return x.moveH(-1,"group")},goWordRight:function(x){return x.moveH(1,"word")},delCharBefore:function(x){return x.deleteH(-1,"codepoint")},delCharAfter:function(x){return x.deleteH(1,"char")},delWordBefore:function(x){return x.deleteH(-1,"word")},delWordAfter:function(x){return x.deleteH(1,"word")},delGroupBefore:function(x){return x.deleteH(-1,"group")},delGroupAfter:function(x){return x.deleteH(1,"group")},indentAuto:function(x){return x.indentSelection("smart")},indentMore:function(x){return x.indentSelection("add")},indentLess:function(x){return x.indentSelection("subtract")},insertTab:function(x){return x.replaceSelection(" ")},insertSoftTab:function(x){for(var z=[],ne=x.listSelections(),te=x.options.tabSize,ie=0;ie<ne.length;ie++){var de=ne[ie].from(),ye=$e(x.getLine(de.line),de.ch,te);z.push(Tt(te-ye%te))}x.replaceSelections(z)},defaultTab:function(x){x.somethingSelected()?x.indentSelection("add"):x.execCommand("insertTab")},transposeChars:function(x){return La(x,function(){for(var z=x.listSelections(),ne=[],te=0;te<z.length;te++)if(z[te].empty()){var ie=z[te].head,de=gn(x.doc,ie.line).text;if(de){if(ie.ch==de.length&&(ie=new Kn(ie.line,ie.ch-1)),ie.ch>0)ie=new Kn(ie.line,ie.ch+1),x.replaceRange(de.charAt(ie.ch-1)+de.charAt(ie.ch-2),Kn(ie.line,ie.ch-2),ie,"+transpose");else if(ie.line>x.doc.first){var ye=gn(x.doc,ie.line-1).text;ye&&(ie=new Kn(ie.line,1),x.replaceRange(de.charAt(0)+x.doc.lineSeparator()+ye.charAt(ye.length-1),Kn(ie.line-1,ye.length-1),ie,"+transpose"))}}ne.push(new Ja(ie,ie))}x.setSelections(ne)})},newlineAndIndent:function(x){return La(x,function(){for(var z=x.listSelections(),ne=z.length-1;ne>=0;ne--)x.replaceRange(x.doc.lineSeparator(),z[ne].anchor,z[ne].head,"+input");z=x.listSelections();for(var te=0;te<z.length;te++)x.indentLine(z[te].from().line,null,!0);Wo(x)})},openLine:function(x){return x.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(x){return x.toggleOverwrite()}};function sd(x,z){var ne=gn(x.doc,z),te=It(ne);return te!=ne&&(z=mr(te)),Kl(!0,x,te,z,1)}function ld(x,z){var ne=gn(x.doc,z),te=Ut(ne);return te!=ne&&(z=mr(te)),Kl(!0,x,ne,z,-1)}function lf(x,z){var ne=sd(x,z.line),te=gn(x.doc,ne.line),ie=Mt(te,x.doc.direction);if(!ie||ie[0].level==0){var de=Math.max(ne.ch,te.text.search(/\S/)),ye=z.line==ne.line&&z.ch<=de&&z.ch;return Kn(ne.line,ye?0:de,ne.sticky)}return ne}function Oo(x,z,ne){if(typeof z=="string"&&(z=ac[z],!z))return!1;x.display.input.ensurePolled();var te=x.display.shift,ie=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),ne&&(x.display.shift=!1),ie=z(x)!=Xt}finally{x.display.shift=te,x.state.suppressEdits=!1}return ie}function Us(x,z,ne){for(var te=0;te<x.state.keyMaps.length;te++){var ie=rl(z,x.state.keyMaps[te],ne,x);if(ie)return ie}return x.options.extraKeys&&rl(z,x.options.extraKeys,ne,x)||rl(z,x.options.keyMap,ne,x)}var rh=new Se;function oc(x,z,ne,te){var ie=x.state.keySeq;if(ie){if(Ic(z))return"handled";if(/\'$/.test(z)?x.state.keySeq=null:rh.set(50,function(){x.state.keySeq==ie&&(x.state.keySeq=null,x.display.input.reset())}),bu(x,ie+" "+z,ne,te))return!0}return bu(x,z,ne,te)}function bu(x,z,ne,te){var ie=Us(x,z,te);return ie=="multi"&&(x.state.keySeq=z),ie=="handled"&&un(x,"keyHandled",x,z,ne),(ie=="handled"||ie=="multi")&&(Qn(ne),Gi(x)),!!ie}function Na(x,z){var ne=Hl(z,!0);return ne?z.shiftKey&&!x.state.keySeq?oc(x,"Shift-"+ne,z,function(te){return Oo(x,te,!0)})||oc(x,ne,z,function(te){if(typeof te=="string"?/^go[A-Z]/.test(te):te.motion)return Oo(x,te)}):oc(x,ne,z,function(te){return Oo(x,te)}):!1}function sc(x,z,ne){return oc(x,"'"+ne+"'",z,function(te){return Oo(x,te,!0)})}var il=null;function Tc(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&(z.curOp.focus=zt(),!Dt(z,x))){ge&&ke<11&&x.keyCode==27&&(x.returnValue=!1);var ne=x.keyCode;z.display.shift=ne==16||x.shiftKey;var te=Na(z,x);De&&(il=te?ne:null,!te&&ne==88&&!Rn&&(Be?x.metaKey:x.ctrlKey)&&z.replaceSelection("",null,"cut")),ae&&!Be&&!te&&ne==46&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut"),ne==18&&!/\bCodeMirror-crosshair\b/.test(z.display.lineDiv.className)&&Ar(z)}}function Ar(x){var z=x.display.lineDiv;bn(z,"CodeMirror-crosshair");function ne(te){(te.keyCode==18||!te.altKey)&&(Ye(z,"CodeMirror-crosshair"),_n(document,"keyup",ne),_n(document,"mouseover",ne))}$t(document,"keyup",ne),$t(document,"mouseover",ne)}function cf(x){x.keyCode==16&&(this.doc.sel.shift=!1),Dt(this,x)}function uf(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&!(ki(z.display,x)||Dt(z,x)||x.ctrlKey&&!x.altKey||Be&&x.metaKey)){var ne=x.keyCode,te=x.charCode;if(De&&ne==il){il=null,Qn(x);return}if(!(De&&(!x.which||x.which<10)&&Na(z,x))){var ie=String.fromCharCode(te==null?ne:te);ie!="\b"&&(sc(z,x,ie)||z.display.input.onKeyPress(x))}}}var cd=400,ud=function(x,z,ne){this.time=x,this.pos=z,this.button=ne};ud.prototype.compare=function(x,z,ne){return this.time+cd>x&&fr(z,this.pos)==0&&ne==this.button};var al,Pc;function ih(x,z){var ne=+new Date;return Pc&&Pc.compare(ne,x,z)?(al=Pc=null,"triple"):al&&al.compare(ne,x,z)?(Pc=new ud(ne,x,z),al=null,"double"):(al=new ud(ne,x,z),Pc=null,"single")}function Xo(x){var z=this,ne=z.display;if(!(Dt(z,x)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=x.shiftKey,ki(ne,x)){Ee||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!ns(z,x)){var te=Pa(z,x),ie=ir(x),de=te?ih(te,ie):"single";window.focus(),ie==1&&z.state.selectingText&&z.state.selectingText(x),!(te&&gl(z,ie,te,de,x))&&(ie==1?te?wu(z,te,de,x):Yn(x)==ne.scroller&&Qn(x):ie==2?(te&&Fl(z.doc,te),setTimeout(function(){return ne.input.focus()},20)):ie==3&&(Ce?z.display.input.onContextMenu(x):Ya(z)))}}}function gl(x,z,ne,te,ie){var de="Click";return te=="double"?de="Double"+de:te=="triple"&&(de="Triple"+de),de=(z==1?"Left":z==2?"Middle":"Right")+de,oc(x,ml(de,ie),ie,function(ye){if(typeof ye=="string"&&(ye=ac[ye]),!ye)return!1;var Te=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),Te=ye(x,ne)!=Xt}finally{x.state.suppressEdits=!1}return Te})}function xu(x,z,ne){var te=x.getOption("configureMouse"),ie=te?te(x,z,ne):{};if(ie.unit==null){var de=gt?ne.shiftKey&&ne.metaKey:ne.altKey;ie.unit=de?"rectangle":z=="single"?"char":z=="double"?"word":"line"}return(ie.extend==null||x.doc.extend)&&(ie.extend=x.doc.extend||ne.shiftKey),ie.addNew==null&&(ie.addNew=Be?ne.metaKey:ne.ctrlKey),ie.moveOnDrag==null&&(ie.moveOnDrag=!(Be?ne.altKey:ne.ctrlKey)),ie}function wu(x,z,ne,te){ge?setTimeout(rr($i,x),0):x.curOp.focus=zt();var ie=xu(x,ne,te),de=x.doc.sel,ye;x.options.dragDrop&&Dr&&!x.isReadOnly()&&ne=="single"&&(ye=de.contains(z))>-1&&(fr((ye=de.ranges[ye]).from(),z)<0||z.xRel>0)&&(fr(ye.to(),z)>0||z.xRel<0)?ah(x,te,z,ie):dd(x,te,z,ie)}function ah(x,z,ne,te){var ie=x.display,de=!1,ye=Ua(x,function(He){Ee&&(ie.scroller.draggable=!1),x.state.draggingText=!1,_n(ie.wrapper.ownerDocument,"mouseup",ye),_n(ie.wrapper.ownerDocument,"mousemove",Te),_n(ie.scroller,"dragstart",Fe),_n(ie.scroller,"drop",ye),de||(Qn(He),te.addNew||Fl(x.doc,ne,null,null,te.extend),Ee&&!ot||ge&&ke==9?setTimeout(function(){ie.wrapper.ownerDocument.body.focus({preventScroll:!0}),ie.input.focus()},20):ie.input.focus())}),Te=function(He){de=de||Math.abs(z.clientX-He.clientX)+Math.abs(z.clientY-He.clientY)>=10},Fe=function(){return de=!0};Ee&&(ie.scroller.draggable=!0),x.state.draggingText=ye,ye.copy=!te.moveOnDrag,ie.scroller.dragDrop&&ie.scroller.dragDrop(),$t(ie.wrapper.ownerDocument,"mouseup",ye),$t(ie.wrapper.ownerDocument,"mousemove",Te),$t(ie.scroller,"dragstart",Fe),$t(ie.scroller,"drop",ye),Ya(x),setTimeout(function(){return ie.input.focus()},20)}function df(x,z,ne){if(ne=="char")return new Ja(z,z);if(ne=="word")return x.findWordAt(z);if(ne=="line")return new Ja(Kn(z.line,0),Lr(x.doc,Kn(z.line+1,0)));var te=ne(x,z);return new Ja(te.from,te.to)}function dd(x,z,ne,te){var ie=x.display,de=x.doc;Qn(z);var ye,Te,Fe=de.sel,He=Fe.ranges;if(te.addNew&&!te.extend?(Te=de.sel.contains(ne),Te>-1?ye=He[Te]:ye=new Ja(ne,ne)):(ye=de.sel.primary(),Te=de.sel.primIndex),te.unit=="rectangle")te.addNew||(ye=new Ja(ne,ne)),ne=Pa(x,z,!0,!0),Te=-1;else{var Nt=df(x,ne,te.unit);te.extend?ye=fu(ye,Nt.anchor,Nt.head,te.extend):ye=Nt}te.addNew?Te==-1?(Te=He.length,Po(de,As(x,He.concat([ye]),Te),{scroll:!1,origin:"*mouse"})):He.length>1&&He[Te].empty()&&te.unit=="char"&&!te.extend?(Po(de,As(x,He.slice(0,Te).concat(He.slice(Te+1)),0),{scroll:!1,origin:"*mouse"}),Fe=de.sel):ws(de,Te,ye,yt):(Te=0,Po(de,new vs([ye],0),yt),Fe=de.sel);var Jt=ne;function Hn(yi){if(fr(Jt,yi)!=0)if(Jt=yi,te.unit=="rectangle"){for(var Ti=[],ia=x.options.tabSize,oa=$e(gn(de,ne.line).text,ne.ch,ia),Ia=$e(gn(de,yi.line).text,yi.ch,ia),so=Math.min(oa,Ia),Uo=Math.max(oa,Ia),xo=Math.min(ne.line,yi.line),fs=Math.min(x.lastLine(),Math.max(ne.line,yi.line));xo<=fs;xo++){var hs=gn(de,xo).text,No=qn(hs,so,ia);so==Uo?Ti.push(new Ja(Kn(xo,No),Kn(xo,No))):hs.length>No&&Ti.push(new Ja(Kn(xo,No),Kn(xo,qn(hs,Uo,ia))))}Ti.length||Ti.push(new Ja(ne,ne)),Po(de,As(x,Fe.ranges.slice(0,Te).concat(Ti),Te),{origin:"*mouse",scroll:!1}),x.scrollIntoView(yi)}else{var ps=ye,wa=df(x,yi,te.unit),Co=ps.anchor,wo;fr(wa.anchor,Co)>0?(wo=wa.head,Co=yr(ps.from(),wa.anchor)):(wo=wa.anchor,Co=on(ps.to(),wa.head));var Eo=Fe.ranges.slice(0);Eo[Te]=ff(x,new Ja(Lr(de,Co),wo)),Po(de,As(x,Eo,Te),yt)}}var Tn=ie.wrapper.getBoundingClientRect(),Br=0;function jr(yi){var Ti=++Br,ia=Pa(x,yi,!0,te.unit=="rectangle");if(ia)if(fr(ia,Jt)!=0){x.curOp.focus=zt(),Hn(ia);var oa=Ba(ie,de);(ia.line>=oa.to||ia.line<oa.from)&&setTimeout(Ua(x,function(){Br==Ti&&jr(yi)}),150)}else{var Ia=yi.clientY<Tn.top?-20:yi.clientY>Tn.bottom?20:0;Ia&&setTimeout(Ua(x,function(){Br==Ti&&(ie.scroller.scrollTop+=Ia,jr(yi))}),50)}}function ai(yi){x.state.selectingText=!1,Br=1/0,yi&&(Qn(yi),ie.input.focus()),_n(ie.wrapper.ownerDocument,"mousemove",wi),_n(ie.wrapper.ownerDocument,"mouseup",Bi),de.history.lastSelOrigin=null}var wi=Ua(x,function(yi){yi.buttons===0||!ir(yi)?ai(yi):jr(yi)}),Bi=Ua(x,ai);x.state.selectingText=Bi,$t(ie.wrapper.ownerDocument,"mousemove",wi),$t(ie.wrapper.ownerDocument,"mouseup",Bi)}function ff(x,z){var ne=z.anchor,te=z.head,ie=gn(x.doc,ne.line);if(fr(ne,te)==0&&ne.sticky==te.sticky)return z;var de=Mt(ie);if(!de)return z;var ye=sn(de,ne.ch,ne.sticky),Te=de[ye];if(Te.from!=ne.ch&&Te.to!=ne.ch)return z;var Fe=ye+(Te.from==ne.ch==(Te.level!=1)?0:1);if(Fe==0||Fe==de.length)return z;var He;if(te.line!=ne.line)He=(te.line-ne.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var Nt=sn(de,te.ch,te.sticky),Jt=Nt-ye||(te.ch-ne.ch)*(Te.level==1?-1:1);Nt==Fe-1||Nt==Fe?He=Jt<0:He=Jt>0}var Hn=de[Fe+(He?-1:0)],Tn=He==(Hn.level==1),Br=Tn?Hn.from:Hn.to,jr=Tn?"after":"before";return ne.ch==Br&&ne.sticky==jr?z:new Ja(new Kn(ne.line,Br,jr),te)}function Oc(x,z,ne,te){var ie,de;if(z.touches)ie=z.touches[0].clientX,de=z.touches[0].clientY;else try{ie=z.clientX,de=z.clientY}catch(Hn){return!1}if(ie>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;te&&Qn(z);var ye=x.display,Te=ye.lineDiv.getBoundingClientRect();if(de>Te.bottom||!wn(x,ne))return br(z);de-=Te.top-ye.viewOffset;for(var Fe=0;Fe<x.display.gutterSpecs.length;++Fe){var He=ye.gutters.childNodes[Fe];if(He&&He.getBoundingClientRect().right>=ie){var Nt=Or(x.doc,de),Jt=x.display.gutterSpecs[Fe];return ct(x,ne,x,Nt,Jt.className,z),br(z)}}}function ns(x,z){return Oc(x,z,"gutterClick",!0)}function vl(x,z){ki(x.display,z)||hf(x,z)||Dt(x,z,"contextmenu")||Ce||x.display.input.onContextMenu(z)}function hf(x,z){return wn(x,"gutterContextMenu")?Oc(x,z,"gutterContextMenu",!1):!1}function fd(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Li(x)}var yl={toString:function(){return"CodeMirror.Init"}},pf={},Su={};function oh(x){var z=x.optionHandlers;function ne(te,ie,de,ye){x.defaults[te]=ie,de&&(z[te]=ye?function(Te,Fe,He){He!=yl&&de(Te,Fe,He)}:de)}x.defineOption=ne,x.Init=yl,ne("value","",function(te,ie){return te.setValue(ie)},!0),ne("mode",null,function(te,ie){te.doc.modeOption=ie,ru(te)},!0),ne("indentUnit",2,ru,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){Nl(te),Li(te),Wi(te)},!0),ne("lineSeparator",null,function(te,ie){if(te.doc.lineSep=ie,!!ie){var de=[],ye=te.doc.first;te.doc.iter(function(Fe){for(var He=0;;){var Nt=Fe.text.indexOf(ie,He);if(Nt==-1)break;He=Nt+ie.length,de.push(Kn(ye,Nt))}ye++});for(var Te=de.length-1;Te>=0;Te--)ec(te.doc,ie,de[Te],Kn(de[Te].line,de[Te].ch+ie.length))}}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,ie,de){te.state.specialChars=new RegExp(ie.source+(ie.test(" ")?"":"| "),"g"),de!=yl&&te.refresh()}),ne("specialCharPlaceholder",we,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",Je?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ne("spellcheck",!1,function(te,ie){return te.getInputField().spellcheck=ie},!0),ne("autocorrect",!1,function(te,ie){return te.getInputField().autocorrect=ie},!0),ne("autocapitalize",!1,function(te,ie){return te.getInputField().autocapitalize=ie},!0),ne("rtlMoveVisually",!nn),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){fd(te),$l(te)},!0),ne("keyMap","default",function(te,ie,de){var ye=cs(ie),Te=de!=yl&&cs(de);Te&&Te.detach&&Te.detach(te,ye),ye.attach&&ye.attach(te,Te||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,mf,!0),ne("gutters",[],function(te,ie){te.display.gutterSpecs=eu(ie,te.options.lineNumbers),$l(te)},!0),ne("fixedGutter",!0,function(te,ie){te.display.gutters.style.left=ie?Mo(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return xs(te)},!0),ne("scrollbarStyle","native",function(te){vc(te),xs(te),te.display.scrollbars.setScrollTop(te.doc.scrollTop),te.display.scrollbars.setScrollLeft(te.doc.scrollLeft)},!0),ne("lineNumbers",!1,function(te,ie){te.display.gutterSpecs=eu(te.options.gutters,ie),$l(te)},!0),ne("firstLineNumber",1,$l,!0),ne("lineNumberFormatter",function(te){return te},$l,!0),ne("showCursorWhenSelecting",!1,Ho,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ie){ie=="nocursor"&&(Ko(te),te.display.input.blur()),te.display.input.readOnlyChanged(ie)}),ne("screenReaderLabel",null,function(te,ie){ie=ie===""?null:ie,te.display.input.screenReaderLabelChanged(ie)}),ne("disableInput",!1,function(te,ie){ie||te.display.input.reset()},!0),ne("dragDrop",!0,sh),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,Ho,!0),ne("singleCursorHeightPerLine",!0,Ho,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,Nl,!0),ne("addModeClass",!1,Nl,!0),ne("pollInterval",100),ne("undoDepth",200,function(te,ie){return te.doc.history.undoDepth=ie}),ne("historyEventDelay",1250),ne("viewportMargin",10,function(te){return te.refresh()},!0),ne("maxHighlightLength",1e4,Nl,!0),ne("moveInputWithCursor",!0,function(te,ie){ie||te.display.input.resetPosition()}),ne("tabindex",null,function(te,ie){return te.display.input.getField().tabIndex=ie||""}),ne("autofocus",null),ne("direction","ltr",function(te,ie){return te.doc.setDirection(ie)},!0),ne("phrases",null)}function sh(x,z,ne){var te=ne&&ne!=yl;if(!z!=!te){var ie=x.display.dragFunctions,de=z?$t:_n;de(x.display.scroller,"dragstart",ie.start),de(x.display.scroller,"dragenter",ie.enter),de(x.display.scroller,"dragover",ie.over),de(x.display.scroller,"dragleave",ie.leave),de(x.display.scroller,"drop",ie.drop)}}function mf(x){x.options.lineWrapping?(bn(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(Ye(x.display.wrapper,"CodeMirror-wrap"),$n(x)),to(x),Wi(x),Li(x),setTimeout(function(){return xs(x)},100)}function ya(x,z){var ne=this;if(!(this instanceof ya))return new ya(x,z);this.options=z=z?ln(z):{},ln(pf,z,!1);var te=z.value;typeof te=="string"?te=new Lo(te,z.mode,null,z.lineSeparator,z.direction):z.mode&&(te.modeOption=z.mode),this.doc=te;var ie=new ya.inputStyles[z.inputStyle](this),de=this.display=new Yd(x,te,ie,z);de.wrapper.CodeMirror=this,fd(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),vc(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 Se,keySeq:null,specialChars:null},z.autofocus&&!Je&&de.input.focus(),ge&&ke<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),lh(this),ad(),Ks(this),this.curOp.forceUpdate=!0,wc(this,te),z.autofocus&&!Je||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&qa(ne)},20):Ko(this);for(var ye in Su)Su.hasOwnProperty(ye)&&Su[ye](this,z[ye],yl);bc(this),z.finishInit&&z.finishInit(this);for(var Te=0;Te<hd.length;++Te)hd[Te](this);Ts(this),Ee&&z.lineWrapping&&getComputedStyle(de.lineDiv).textRendering=="optimizelegibility"&&(de.lineDiv.style.textRendering="auto")}ya.defaults=pf,ya.optionHandlers=Su;function lh(x){var z=x.display;$t(z.scroller,"mousedown",Ua(x,Xo)),ge&&ke<11?$t(z.scroller,"dblclick",Ua(x,function(Fe){if(!Dt(x,Fe)){var He=Pa(x,Fe);if(!(!He||ns(x,Fe)||ki(x.display,Fe))){Qn(Fe);var Nt=x.findWordAt(He);Fl(x.doc,Nt.anchor,Nt.head)}}})):$t(z.scroller,"dblclick",function(Fe){return Dt(x,Fe)||Qn(Fe)}),$t(z.scroller,"contextmenu",function(Fe){return vl(x,Fe)}),$t(z.input.getField(),"contextmenu",function(Fe){z.scroller.contains(Fe.target)||vl(x,Fe)});var ne,te={end:0};function ie(){z.activeTouch&&(ne=setTimeout(function(){return z.activeTouch=null},1e3),te=z.activeTouch,te.end=+new Date)}function de(Fe){if(Fe.touches.length!=1)return!1;var He=Fe.touches[0];return He.radiusX<=1&&He.radiusY<=1}function ye(Fe,He){if(He.left==null)return!0;var Nt=He.left-Fe.left,Jt=He.top-Fe.top;return Nt*Nt+Jt*Jt>20*20}$t(z.scroller,"touchstart",function(Fe){if(!Dt(x,Fe)&&!de(Fe)&&!ns(x,Fe)){z.input.ensurePolled(),clearTimeout(ne);var He=+new Date;z.activeTouch={start:He,moved:!1,prev:He-te.end<=300?te:null},Fe.touches.length==1&&(z.activeTouch.left=Fe.touches[0].pageX,z.activeTouch.top=Fe.touches[0].pageY)}}),$t(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),$t(z.scroller,"touchend",function(Fe){var He=z.activeTouch;if(He&&!ki(z,Fe)&&He.left!=null&&!He.moved&&new Date-He.start<300){var Nt=x.coordsChar(z.activeTouch,"page"),Jt;!He.prev||ye(He,He.prev)?Jt=new Ja(Nt,Nt):!He.prev.prev||ye(He,He.prev.prev)?Jt=x.findWordAt(Nt):Jt=new Ja(Kn(Nt.line,0),Lr(x.doc,Kn(Nt.line+1,0))),x.setSelection(Jt.anchor,Jt.head),x.focus(),Qn(Fe)}ie()}),$t(z.scroller,"touchcancel",ie),$t(z.scroller,"scroll",function(){z.scroller.clientHeight&&(Fa(x,z.scroller.scrollTop),vo(x,z.scroller.scrollLeft,!0),ct(x,"scroll",x))}),$t(z.scroller,"mousewheel",function(Fe){return Xu(x,Fe)}),$t(z.scroller,"DOMMouseScroll",function(Fe){return Xu(x,Fe)}),$t(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(Fe){Dt(x,Fe)||Sr(Fe)},over:function(Fe){Dt(x,Fe)||(id(x,Fe),Sr(Fe))},start:function(Fe){return th(x,Fe)},drop:Ua(x,eh),leave:function(Fe){Dt(x,Fe)||rc(x)}};var Te=z.input.getField();$t(Te,"keyup",function(Fe){return cf.call(x,Fe)}),$t(Te,"keydown",Ua(x,Tc)),$t(Te,"keypress",Ua(x,uf)),$t(Te,"focus",function(Fe){return qa(x,Fe)}),$t(Te,"blur",function(Fe){return Ko(x,Fe)})}var hd=[];ya.defineInitHook=function(x){return hd.push(x)};function Ns(x,z,ne,te){var ie=x.doc,de;ne==null&&(ne="add"),ne=="smart"&&(ie.mode.indent?de=Pi(x,z).state:ne="prev");var ye=x.options.tabSize,Te=gn(ie,z),Fe=$e(Te.text,null,ye);Te.stateAfter&&(Te.stateAfter=null);var He=Te.text.match(/^\s*/)[0],Nt;if(!te&&!/\S/.test(Te.text))Nt=0,ne="not";else if(ne=="smart"&&(Nt=ie.mode.indent(de,Te.text.slice(He.length),Te.text),Nt==Xt||Nt>150)){if(!te)return;ne="prev"}ne=="prev"?z>ie.first?Nt=$e(gn(ie,z-1).text,null,ye):Nt=0:ne=="add"?Nt=Fe+x.options.indentUnit:ne=="subtract"?Nt=Fe-x.options.indentUnit:typeof ne=="number"&&(Nt=Fe+ne),Nt=Math.max(0,Nt);var Jt="",Hn=0;if(x.options.indentWithTabs)for(var Tn=Math.floor(Nt/ye);Tn;--Tn)Hn+=ye,Jt+=" ";if(Hn<Nt&&(Jt+=Tt(Nt-Hn)),Jt!=He)return ec(ie,Jt,Kn(z,0),Kn(z,He.length),"+input"),Te.stateAfter=null,!0;for(var Br=0;Br<ie.sel.ranges.length;Br++){var jr=ie.sel.ranges[Br];if(jr.head.line==z&&jr.head.ch<He.length){var ai=Kn(z,He.length);ws(ie,Br,new Ja(ai,ai));break}}}var Rs=null;function bl(x){Rs=x}function pd(x,z,ne,te,ie){var de=x.doc;x.display.shift=!1,te||(te=de.sel);var ye=+new Date-200,Te=ie=="paste"||x.state.pasteIncoming>ye,Fe=kt(z),He=null;if(Te&&te.ranges.length>1)if(Rs&&Rs.text.join(`
|
|
|
`)==z){if(te.ranges.length%Rs.text.length==0){He=[];for(var Nt=0;Nt<Rs.text.length;Nt++)He.push(de.splitLines(Rs.text[Nt]))}}else Fe.length==te.ranges.length&&x.options.pasteLinesPerSelection&&(He=Vn(Fe,function(wi){return[wi]}));for(var Jt=x.curOp.updateInput,Hn=te.ranges.length-1;Hn>=0;Hn--){var Tn=te.ranges[Hn],Br=Tn.from(),jr=Tn.to();Tn.empty()&&(ne&&ne>0?Br=Kn(Br.line,Br.ch-ne):x.state.overwrite&&!Te?jr=Kn(jr.line,Math.min(gn(de,jr.line).text.length,jr.ch+mn(Fe).length)):Te&&Rs&&Rs.lineWise&&Rs.text.join(`
|
|
|
`)==Fe.join(`
|
|
|
`)&&(Br=jr=Kn(Br.line,0)));var ai={from:Br,to:jr,text:He?He[Hn%He.length]:Fe,origin:ie||(Te?"paste":x.state.cutIncoming>ye?"cut":"+input")};dl(x.doc,ai),un(x,"inputRead",x,ai)}z&&!Te&&gd(x,z),Wo(x),x.curOp.updateInput<2&&(x.curOp.updateInput=Jt),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function md(x,z){var ne=x.clipboardData&&x.clipboardData.getData("Text");if(ne)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&La(z,function(){return pd(z,ne,0,null,"paste")}),!0}function gd(x,z){if(!(!x.options.electricChars||!x.options.smartIndent))for(var ne=x.doc.sel,te=ne.ranges.length-1;te>=0;te--){var ie=ne.ranges[te];if(!(ie.head.ch>100||te&&ne.ranges[te-1].head.line==ie.head.line)){var de=x.getModeAt(ie.head),ye=!1;if(de.electricChars){for(var Te=0;Te<de.electricChars.length;Te++)if(z.indexOf(de.electricChars.charAt(Te))>-1){ye=Ns(x,ie.head.line,"smart");break}}else de.electricInput&&de.electricInput.test(gn(x.doc,ie.head.line).text.slice(0,ie.head.ch))&&(ye=Ns(x,ie.head.line,"smart"));ye&&un(x,"electricInput",x,ie.head.line)}}}function lc(x){for(var z=[],ne=[],te=0;te<x.doc.sel.ranges.length;te++){var ie=x.doc.sel.ranges[te].head.line,de={anchor:Kn(ie,0),head:Kn(ie+1,0)};ne.push(de),z.push(x.getRange(de.anchor,de.head))}return{text:z,ranges:ne}}function gf(x,z,ne,te){x.setAttribute("autocorrect",ne?"":"off"),x.setAttribute("autocapitalize",te?"":"off"),x.setAttribute("spellcheck",!!z)}function vd(){var x=xt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),z=xt("div",[x],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ee?x.style.width="1000px":x.setAttribute("wrap","off"),dt&&(x.style.border="1px solid black"),gf(x),z}function yd(x){var z=x.optionHandlers,ne=x.helpers={};x.prototype={constructor:x,focus:function(){window.focus(),this.display.input.focus()},setOption:function(te,ie){var de=this.options,ye=de[te];de[te]==ie&&te!="mode"||(de[te]=ie,z.hasOwnProperty(te)&&Ua(this,z[te])(this,ie,ye),ct(this,"optionChange",this,te))},getOption:function(te){return this.options[te]},getDoc:function(){return this.doc},addKeyMap:function(te,ie){this.state.keyMaps[ie?"push":"unshift"](cs(te))},removeKeyMap:function(te){for(var ie=this.state.keyMaps,de=0;de<ie.length;++de)if(ie[de]==te||ie[de].name==te)return ie.splice(de,1),!0},addOverlay:Wa(function(te,ie){var de=te.token?te:x.getMode(this.options,te);if(de.startState)throw new Error("Overlays may not be stateful.");kn(this.state.overlays,{mode:de,modeSpec:te,opaque:ie&&ie.opaque,priority:ie&&ie.priority||0},function(ye){return ye.priority}),this.state.modeGen++,Wi(this)}),removeOverlay:Wa(function(te){for(var ie=this.state.overlays,de=0;de<ie.length;++de){var ye=ie[de].modeSpec;if(ye==te||typeof te=="string"&&ye.name==te){ie.splice(de,1),this.state.modeGen++,Wi(this);return}}}),indentLine:Wa(function(te,ie,de){typeof ie!="string"&&typeof ie!="number"&&(ie==null?ie=this.options.smartIndent?"smart":"prev":ie=ie?"add":"subtract"),Rr(this.doc,te)&&Ns(this,te,ie,de)}),indentSelection:Wa(function(te){for(var ie=this.doc.sel.ranges,de=-1,ye=0;ye<ie.length;ye++){var Te=ie[ye];if(Te.empty())Te.head.line>de&&(Ns(this,Te.head.line,te,!0),de=Te.head.line,ye==this.doc.sel.primIndex&&Wo(this));else{var Fe=Te.from(),He=Te.to(),Nt=Math.max(de,Fe.line);de=Math.min(this.lastLine(),He.line-(He.ch?0:1))+1;for(var Jt=Nt;Jt<de;++Jt)Ns(this,Jt,te);var Hn=this.doc.sel.ranges;Fe.ch==0&&ie.length==Hn.length&&Hn[ye].from().ch>0&&ws(this.doc,ye,new Ja(Fe,Hn[ye].to()),ft)}}}),getTokenAt:function(te,ie){return na(this,te,ie)},getLineTokens:function(te,ie){return na(this,Kn(te),ie,!0)},getTokenTypeAt:function(te){te=Lr(this.doc,te);var ie=Hi(this,gn(this.doc,te.line)),de=0,ye=(ie.length-1)/2,Te=te.ch,Fe;if(Te==0)Fe=ie[2];else for(;;){var He=de+ye>>1;if((He?ie[He*2-1]:0)>=Te)ye=He;else if(ie[He*2+1]<Te)de=He+1;else{Fe=ie[He*2+2];break}}var Nt=Fe?Fe.indexOf("overlay "):-1;return Nt<0?Fe:Nt==0?null:Fe.slice(0,Nt-1)},getModeAt:function(te){var ie=this.doc.mode;return ie.innerMode?x.innerMode(ie,this.getTokenAt(te).state).mode:ie},getHelper:function(te,ie){return this.getHelpers(te,ie)[0]},getHelpers:function(te,ie){var de=[];if(!ne.hasOwnProperty(ie))return de;var ye=ne[ie],Te=this.getModeAt(te);if(typeof Te[ie]=="string")ye[Te[ie]]&&de.push(ye[Te[ie]]);else if(Te[ie])for(var Fe=0;Fe<Te[ie].length;Fe++){var He=ye[Te[ie][Fe]];He&&de.push(He)}else Te.helperType&&ye[Te.helperType]?de.push(ye[Te.helperType]):ye[Te.name]&&de.push(ye[Te.name]);for(var Nt=0;Nt<ye._global.length;Nt++){var Jt=ye._global[Nt];Jt.pred(Te,this)&&Bt(de,Jt.val)==-1&&de.push(Jt.val)}return de},getStateAfter:function(te,ie){var de=this.doc;return te=Wr(de,te==null?de.first+de.size-1:te),Pi(this,te+1,ie).state},cursorCoords:function(te,ie){var de,ye=this.doc.sel.primary();return te==null?de=ye.head:typeof te=="object"?de=Lr(this.doc,te):de=te?ye.from():ye.to(),Ca(this,de,ie||"page")},charCoords:function(te,ie){return Ta(this,Lr(this.doc,te),ie||"page")},coordsChar:function(te,ie){return te=ba(this,te,ie||"page"),Va(this,te.left,te.top)},lineAtHeight:function(te,ie){return te=ba(this,{top:te,left:0},ie||"page").top,Or(this.doc,te+this.display.viewOffset)},heightAtLine:function(te,ie,de){var ye=!1,Te;if(typeof te=="number"){var Fe=this.doc.first+this.doc.size-1;te<this.doc.first?te=this.doc.first:te>Fe&&(te=Fe,ye=!0),Te=gn(this.doc,te)}else Te=te;return ca(this,Te,{top:0,left:0},ie||"page",de||ye).top+(ye?this.doc.height-Gn(Te):0)},defaultTextHeight:function(){return Ka(this.display)},defaultCharWidth:function(){return eo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ie,de,ye,Te){var Fe=this.display;te=Ca(this,Lr(this.doc,te));var He=te.bottom,Nt=te.left;if(ie.style.position="absolute",ie.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ie),Fe.sizer.appendChild(ie),ye=="over")He=te.top;else if(ye=="above"||ye=="near"){var Jt=Math.max(Fe.wrapper.clientHeight,this.doc.height),Hn=Math.max(Fe.sizer.clientWidth,Fe.lineSpace.clientWidth);(ye=="above"||te.bottom+ie.offsetHeight>Jt)&&te.top>ie.offsetHeight?He=te.top-ie.offsetHeight:te.bottom+ie.offsetHeight<=Jt&&(He=te.bottom),Nt+ie.offsetWidth>Hn&&(Nt=Hn-ie.offsetWidth)}ie.style.top=He+"px",ie.style.left=ie.style.right="",Te=="right"?(Nt=Fe.sizer.clientWidth-ie.offsetWidth,ie.style.right="0px"):(Te=="left"?Nt=0:Te=="middle"&&(Nt=(Fe.sizer.clientWidth-ie.offsetWidth)/2),ie.style.left=Nt+"px"),de&&ul(this,{left:Nt,top:He,right:Nt+ie.offsetWidth,bottom:He+ie.offsetHeight})},triggerOnKeyDown:Wa(Tc),triggerOnKeyPress:Wa(uf),triggerOnKeyUp:cf,triggerOnMouseDown:Wa(Xo),execCommand:function(te){if(ac.hasOwnProperty(te))return ac[te].call(null,this)},triggerElectric:Wa(function(te){gd(this,te)}),findPosH:function(te,ie,de,ye){var Te=1;ie<0&&(Te=-1,ie=-ie);for(var Fe=Lr(this.doc,te),He=0;He<ie&&(Fe=Cu(this.doc,Fe,Te,de,ye),!Fe.hitSide);++He);return Fe},moveH:Wa(function(te,ie){var de=this;this.extendSelectionsBy(function(ye){return de.display.shift||de.doc.extend||ye.empty()?Cu(de.doc,ye.head,te,ie,de.options.rtlMoveVisually):te<0?ye.from():ye.to()},Gt)}),deleteH:Wa(function(te,ie){var de=this.doc.sel,ye=this.doc;de.somethingSelected()?ye.replaceSelection("",null,"+delete"):Ms(this,function(Te){var Fe=Cu(ye,Te.head,te,ie,!1);return te<0?{from:Fe,to:Te.head}:{from:Te.head,to:Fe}})}),findPosV:function(te,ie,de,ye){var Te=1,Fe=ye;ie<0&&(Te=-1,ie=-ie);for(var He=Lr(this.doc,te),Nt=0;Nt<ie;++Nt){var Jt=Ca(this,He,"div");if(Fe==null?Fe=Jt.left:Jt.left=Fe,He=vf(this,Jt,Te,de),He.hitSide)break}return He},moveV:Wa(function(te,ie){var de=this,ye=this.doc,Te=[],Fe=!this.display.shift&&!ye.extend&&ye.sel.somethingSelected();if(ye.extendSelectionsBy(function(Nt){if(Fe)return te<0?Nt.from():Nt.to();var Jt=Ca(de,Nt.head,"div");Nt.goalColumn!=null&&(Jt.left=Nt.goalColumn),Te.push(Jt.left);var Hn=vf(de,Jt,te,ie);return ie=="page"&&Nt==ye.sel.primary()&&ms(de,Ta(de,Hn,"div").top-Jt.top),Hn},Gt),Te.length)for(var He=0;He<ye.sel.ranges.length;He++)ye.sel.ranges[He].goalColumn=Te[He]}),findWordAt:function(te){var ie=this.doc,de=gn(ie,te.line).text,ye=te.ch,Te=te.ch;if(de){var Fe=this.getHelper(te,"wordChars");(te.sticky=="before"||Te==de.length)&&ye?--ye:++Te;for(var He=de.charAt(ye),Nt=ue(He,Fe)?function(Jt){return ue(Jt,Fe)}:/\s/.test(He)?function(Jt){return/\s/.test(Jt)}:function(Jt){return!/\s/.test(Jt)&&!ue(Jt)};ye>0&&Nt(de.charAt(ye-1));)--ye;for(;Te<de.length&&Nt(de.charAt(Te));)++Te}return new Ja(Kn(te.line,ye),Kn(te.line,Te))},toggleOverwrite:function(te){te!=null&&te==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?bn(this.display.cursorDiv,"CodeMirror-overwrite"):Ye(this.display.cursorDiv,"CodeMirror-overwrite"),ct(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==zt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Wa(function(te,ie){Ds(this,te,ie)}),getScrollInfo:function(){var te=this.display.scroller;return{left:te.scrollLeft,top:te.scrollTop,height:te.scrollHeight-Yr(this)-this.display.barHeight,width:te.scrollWidth-Yr(this)-this.display.barWidth,clientHeight:xi(this),clientWidth:ii(this)}},scrollIntoView:Wa(function(te,ie){te==null?(te={from:this.doc.sel.primary().head,to:null},ie==null&&(ie=this.options.cursorScrollMargin)):typeof te=="number"?te={from:Kn(te,0),to:null}:te.from==null&&(te={from:te,to:null}),te.to||(te.to=te.from),te.margin=ie||0,te.from.line!=null?Is(this,te):fo(this,te.from,te.to,te.margin)}),setSize:Wa(function(te,ie){var de=this,ye=function(Fe){return typeof Fe=="number"||/^\d+$/.test(String(Fe))?Fe+"px":Fe};te!=null&&(this.display.wrapper.style.width=ye(te)),ie!=null&&(this.display.wrapper.style.height=ye(ie)),this.options.lineWrapping&&ua(this);var Te=this.display.viewFrom;this.doc.iter(Te,this.display.viewTo,function(Fe){if(Fe.widgets){for(var He=0;He<Fe.widgets.length;He++)if(Fe.widgets[He].noHScroll){Aa(de,Te,"widget");break}}++Te}),this.curOp.forceUpdate=!0,ct(this,"refresh",this)}),operation:function(te){return La(this,te)},startOperation:function(){return Ks(this)},endOperation:function(){return Ts(this)},refresh:Wa(function(){var te=this.display.cachedTextHeight;Wi(this),this.curOp.forceUpdate=!0,Li(this),Ds(this,this.doc.scrollLeft,this.doc.scrollTop),qc(this.display),(te==null||Math.abs(te-Ka(this.display))>.5||this.options.lineWrapping)&&to(this),ct(this,"refresh",this)}),swapDoc:Wa(function(te){var ie=this.doc;return ie.cm=null,this.state.selectingText&&this.state.selectingText(),wc(this,te),Li(this),this.display.input.reset(),Ds(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,un(this,"swapDoc",this,ie),ie}),phrase:function(te){var ie=this.options.phrases;return ie&&Object.prototype.hasOwnProperty.call(ie,te)?ie[te]:te},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Bn(x),x.registerHelper=function(te,ie,de){ne.hasOwnProperty(te)||(ne[te]=x[te]={_global:[]}),ne[te][ie]=de},x.registerGlobalHelper=function(te,ie,de,ye){x.registerHelper(te,ie,ye),ne[te]._global.push({pred:de,val:ye})}}function Cu(x,z,ne,te,ie){var de=z,ye=ne,Te=gn(x,z.line),Fe=ie&&x.direction=="rtl"?-ne:ne;function He(){var Bi=z.line+Fe;return Bi<x.first||Bi>=x.first+x.size?!1:(z=new Kn(Bi,z.ch,z.sticky),Te=gn(x,Bi))}function Nt(Bi){var yi;if(te=="codepoint"){var Ti=Te.text.charCodeAt(z.ch+(te>0?0:-1));isNaN(Ti)?yi=null:yi=new Kn(z.line,Math.max(0,Math.min(Te.text.length,z.ch+ne*(Ti>=55296&&Ti<56320?2:1))),-ne)}else ie?yi=Zs(x.cm,Te,z,ne):yi=js(Te,z,ne);if(yi==null)if(!Bi&&He())z=Kl(ie,x.cm,Te,z.line,Fe);else return!1;else z=yi;return!0}if(te=="char"||te=="codepoint")Nt();else if(te=="column")Nt(!0);else if(te=="word"||te=="group")for(var Jt=null,Hn=te=="group",Tn=x.cm&&x.cm.getHelper(z,"wordChars"),Br=!0;!(ne<0&&!Nt(!Br));Br=!1){var jr=Te.text.charAt(z.ch)||`
|
|
|
`,ai=ue(jr,Tn)?"w":Hn&&jr==`
|
|
|
`?"n":!Hn||/\s/.test(jr)?null:"p";if(Hn&&!Br&&!ai&&(ai="s"),Jt&&Jt!=ai){ne<0&&(ne=1,Nt(),z.sticky="after");break}if(ai&&(Jt=ai),ne>0&&!Nt(!Br))break}var wi=hu(x,z,de,ye,!0);return Mn(de,wi)&&(wi.hitSide=!0),wi}function vf(x,z,ne,te){var ie=x.doc,de=z.left,ye;if(te=="page"){var Te=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Fe=Math.max(Te-.5*Ka(x.display),3);ye=(ne>0?z.bottom:z.top)+ne*Fe}else te=="line"&&(ye=ne>0?z.bottom+3:z.top-3);for(var He;He=Va(x,de,ye),!!He.outside;){if(ne<0?ye<=0:ye>=ie.height){He.hitSide=!0;break}ye+=ne*5}return He}var ro=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Se,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ro.prototype.init=function(x){var z=this,ne=this,te=ne.cm,ie=ne.div=x.lineDiv;gf(ie,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function de(Te){for(var Fe=Te.target;Fe;Fe=Fe.parentNode){if(Fe==ie)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Fe.className))break}return!1}$t(ie,"paste",function(Te){!de(Te)||Dt(te,Te)||md(Te,te)||ke<=11&&setTimeout(Ua(te,function(){return z.updateFromDOM()}),20)}),$t(ie,"compositionstart",function(Te){z.composing={data:Te.data,done:!1}}),$t(ie,"compositionupdate",function(Te){z.composing||(z.composing={data:Te.data,done:!1})}),$t(ie,"compositionend",function(Te){z.composing&&(Te.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),$t(ie,"touchstart",function(){return ne.forceCompositionEnd()}),$t(ie,"input",function(){z.composing||z.readFromDOMSoon()});function ye(Te){if(!(!de(Te)||Dt(te,Te))){if(te.somethingSelected())bl({lineWise:!1,text:te.getSelections()}),Te.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var Fe=lc(te);bl({lineWise:!0,text:Fe.text}),Te.type=="cut"&&te.operation(function(){te.setSelections(Fe.ranges,0,ft),te.replaceSelection("",null,"cut")})}else return;if(Te.clipboardData){Te.clipboardData.clearData();var He=Rs.text.join(`
|
|
|
`);if(Te.clipboardData.setData("Text",He),Te.clipboardData.getData("Text")==He){Te.preventDefault();return}}var Nt=vd(),Jt=Nt.firstChild;te.display.lineSpace.insertBefore(Nt,te.display.lineSpace.firstChild),Jt.value=Rs.text.join(`
|
|
|
`);var Hn=document.activeElement;Wn(Jt),setTimeout(function(){te.display.lineSpace.removeChild(Nt),Hn.focus(),Hn==ie&&ne.showPrimarySelection()},50)}}$t(ie,"copy",ye),$t(ie,"cut",ye)},ro.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},ro.prototype.prepareSelection=function(){var x=as(this.cm,!1);return x.focus=document.activeElement==this.div,x},ro.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},ro.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ro.prototype.showPrimarySelection=function(){var x=this.getSelection(),z=this.cm,ne=z.doc.sel.primary(),te=ne.from(),ie=ne.to();if(z.display.viewTo==z.display.viewFrom||te.line>=z.display.viewTo||ie.line<z.display.viewFrom){x.removeAllRanges();return}var de=Eu(z,x.anchorNode,x.anchorOffset),ye=Eu(z,x.focusNode,x.focusOffset);if(!(de&&!de.bad&&ye&&!ye.bad&&fr(yr(de,ye),te)==0&&fr(on(de,ye),ie)==0)){var Te=z.display.view,Fe=te.line>=z.display.viewFrom&&yf(z,te)||{node:Te[0].measure.map[2],offset:0},He=ie.line<z.display.viewTo&&yf(z,ie);if(!He){var Nt=Te[Te.length-1].measure,Jt=Nt.maps?Nt.maps[Nt.maps.length-1]:Nt.map;He={node:Jt[Jt.length-1],offset:Jt[Jt.length-2]-Jt[Jt.length-3]}}if(!Fe||!He){x.removeAllRanges();return}var Hn=x.rangeCount&&x.getRangeAt(0),Tn;try{Tn=nt(Fe.node,Fe.offset,He.offset,He.node)}catch(Br){}Tn&&(!ae&&z.state.focused?(x.collapse(Fe.node,Fe.offset),Tn.collapsed||(x.removeAllRanges(),x.addRange(Tn))):(x.removeAllRanges(),x.addRange(Tn)),Hn&&x.anchorNode==null?x.addRange(Hn):ae&&this.startGracePeriod()),this.rememberSelection()}},ro.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)},ro.prototype.showMultipleSelections=function(x){At(this.cm.display.cursorDiv,x.cursors),At(this.cm.display.selectionDiv,x.selection)},ro.prototype.rememberSelection=function(){var x=this.getSelection();this.lastAnchorNode=x.anchorNode,this.lastAnchorOffset=x.anchorOffset,this.lastFocusNode=x.focusNode,this.lastFocusOffset=x.focusOffset},ro.prototype.selectionInEditor=function(){var x=this.getSelection();if(!x.rangeCount)return!1;var z=x.getRangeAt(0).commonAncestorContainer;return qt(this.div,z)},ro.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ro.prototype.blur=function(){this.div.blur()},ro.prototype.getField=function(){return this.div},ro.prototype.supportsTouch=function(){return!0},ro.prototype.receivedFocus=function(){var x=this;this.selectionInEditor()?this.pollSelection():La(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)},ro.prototype.selectionChanged=function(){var x=this.getSelection();return x.anchorNode!=this.lastAnchorNode||x.anchorOffset!=this.lastAnchorOffset||x.focusNode!=this.lastFocusNode||x.focusOffset!=this.lastFocusOffset},ro.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var x=this.getSelection(),z=this.cm;if(pt&&me&&this.cm.display.gutterSpecs.length&&ch(x.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ne=Eu(z,x.anchorNode,x.anchorOffset),te=Eu(z,x.focusNode,x.focusOffset);ne&&te&&La(z,function(){Po(z.doc,Ps(ne,te),ft),(ne.bad||te.bad)&&(z.curOp.selectionChanged=!0)})}}},ro.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var x=this.cm,z=x.display,ne=x.doc.sel.primary(),te=ne.from(),ie=ne.to();if(te.ch==0&&te.line>x.firstLine()&&(te=Kn(te.line-1,gn(x.doc,te.line-1).length)),ie.ch==gn(x.doc,ie.line).text.length&&ie.line<x.lastLine()&&(ie=Kn(ie.line+1,0)),te.line<z.viewFrom||ie.line>z.viewTo-1)return!1;var de,ye,Te;te.line==z.viewFrom||(de=fi(x,te.line))==0?(ye=mr(z.view[0].line),Te=z.view[0].node):(ye=mr(z.view[de].line),Te=z.view[de-1].node.nextSibling);var Fe=fi(x,ie.line),He,Nt;if(Fe==z.view.length-1?(He=z.viewTo-1,Nt=z.lineDiv.lastChild):(He=mr(z.view[Fe+1].line)-1,Nt=z.view[Fe+1].node.previousSibling),!Te)return!1;for(var Jt=x.doc.splitLines(uh(x,Te,Nt,ye,He)),Hn=Xn(x.doc,Kn(ye,0),Kn(He,gn(x.doc,He).text.length));Jt.length>1&&Hn.length>1;)if(mn(Jt)==mn(Hn))Jt.pop(),Hn.pop(),He--;else if(Jt[0]==Hn[0])Jt.shift(),Hn.shift(),ye++;else break;for(var Tn=0,Br=0,jr=Jt[0],ai=Hn[0],wi=Math.min(jr.length,ai.length);Tn<wi&&jr.charCodeAt(Tn)==ai.charCodeAt(Tn);)++Tn;for(var Bi=mn(Jt),yi=mn(Hn),Ti=Math.min(Bi.length-(Jt.length==1?Tn:0),yi.length-(Hn.length==1?Tn:0));Br<Ti&&Bi.charCodeAt(Bi.length-Br-1)==yi.charCodeAt(yi.length-Br-1);)++Br;if(Jt.length==1&&Hn.length==1&&ye==te.line)for(;Tn&&Tn>te.ch&&Bi.charCodeAt(Bi.length-Br-1)==yi.charCodeAt(yi.length-Br-1);)Tn--,Br++;Jt[Jt.length-1]=Bi.slice(0,Bi.length-Br).replace(/^\u200b+/,""),Jt[0]=Jt[0].slice(Tn).replace(/\u200b+$/,"");var ia=Kn(ye,Tn),oa=Kn(He,Hn.length?mn(Hn).length-Br:0);if(Jt.length>1||Jt[0]||fr(ia,oa))return ec(x.doc,Jt,ia,oa,"+input"),!0},ro.prototype.ensurePolled=function(){this.forceCompositionEnd()},ro.prototype.reset=function(){this.forceCompositionEnd()},ro.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ro.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))},ro.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&La(this.cm,function(){return Wi(x.cm)})},ro.prototype.setUneditable=function(x){x.contentEditable="false"},ro.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||Ua(this.cm,pd)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},ro.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},ro.prototype.onContextMenu=function(){},ro.prototype.resetPosition=function(){},ro.prototype.needsContentAttribute=!0;function yf(x,z){var ne=Xi(x,z.line);if(!ne||ne.hidden)return null;var te=gn(x.doc,z.line),ie=ha(ne,te,z.line),de=Mt(te,x.doc.direction),ye="left";if(de){var Te=sn(de,z.ch);ye=Te%2?"right":"left"}var Fe=Ei(ie.map,z.ch,ye);return Fe.offset=Fe.collapse=="right"?Fe.end:Fe.start,Fe}function ch(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function cc(x,z){return z&&(x.bad=!0),x}function uh(x,z,ne,te,ie){var de="",ye=!1,Te=x.doc.lineSeparator(),Fe=!1;function He(Tn){return function(Br){return Br.id==Tn}}function Nt(){ye&&(de+=Te,Fe&&(de+=Te),ye=Fe=!1)}function Jt(Tn){Tn&&(Nt(),de+=Tn)}function Hn(Tn){if(Tn.nodeType==1){var Br=Tn.getAttribute("cm-text");if(Br){Jt(Br);return}var jr=Tn.getAttribute("cm-marker"),ai;if(jr){var wi=x.findMarks(Kn(te,0),Kn(ie+1,0),He(+jr));wi.length&&(ai=wi[0].find(0))&&Jt(Xn(x.doc,ai.from,ai.to).join(Te));return}if(Tn.getAttribute("contenteditable")=="false")return;var Bi=/^(pre|div|p|li|table|br)$/i.test(Tn.nodeName);if(!/^br$/i.test(Tn.nodeName)&&Tn.textContent.length==0)return;Bi&&Nt();for(var yi=0;yi<Tn.childNodes.length;yi++)Hn(Tn.childNodes[yi]);/^(pre|p)$/i.test(Tn.nodeName)&&(Fe=!0),Bi&&(ye=!0)}else Tn.nodeType==3&&Jt(Tn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Hn(z),z!=ne;)z=z.nextSibling,Fe=!1;return de}function Eu(x,z,ne){var te;if(z==x.display.lineDiv){if(te=x.display.lineDiv.childNodes[ne],!te)return cc(x.clipPos(Kn(x.display.viewTo-1)),!0);z=null,ne=0}else for(te=z;;te=te.parentNode){if(!te||te==x.display.lineDiv)return null;if(te.parentNode&&te.parentNode==x.display.lineDiv)break}for(var ie=0;ie<x.display.view.length;ie++){var de=x.display.view[ie];if(de.node==te)return dh(de,z,ne)}}function dh(x,z,ne){var te=x.text.firstChild,ie=!1;if(!z||!qt(te,z))return cc(Kn(mr(x.line),0),!0);if(z==te&&(ie=!0,z=te.childNodes[ne],ne=0,!z)){var de=x.rest?mn(x.rest):x.line;return cc(Kn(mr(de),de.text.length),ie)}var ye=z.nodeType==3?z:null,Te=z;for(!ye&&z.childNodes.length==1&&z.firstChild.nodeType==3&&(ye=z.firstChild,ne&&(ne=ye.nodeValue.length));Te.parentNode!=te;)Te=Te.parentNode;var Fe=x.measure,He=Fe.maps;function Nt(ai,wi,Bi){for(var yi=-1;yi<(He?He.length:0);yi++)for(var Ti=yi<0?Fe.map:He[yi],ia=0;ia<Ti.length;ia+=3){var oa=Ti[ia+2];if(oa==ai||oa==wi){var Ia=mr(yi<0?x.line:x.rest[yi]),so=Ti[ia]+Bi;return(Bi<0||oa!=ai)&&(so=Ti[ia+(Bi?1:0)]),Kn(Ia,so)}}}var Jt=Nt(ye,Te,ne);if(Jt)return cc(Jt,ie);for(var Hn=Te.nextSibling,Tn=ye?ye.nodeValue.length-ne:0;Hn;Hn=Hn.nextSibling){if(Jt=Nt(Hn,Hn.firstChild,0),Jt)return cc(Kn(Jt.line,Jt.ch-Tn),ie);Tn+=Hn.textContent.length}for(var Br=Te.previousSibling,jr=ne;Br;Br=Br.previousSibling){if(Jt=Nt(Br,Br.firstChild,-1),Jt)return cc(Kn(Jt.line,Jt.ch+jr),ie);jr+=Br.textContent.length}}var oo=function(x){this.cm=x,this.prevInput="",this.pollingFast=!1,this.polling=new Se,this.hasSelection=!1,this.composing=null};oo.prototype.init=function(x){var z=this,ne=this,te=this.cm;this.createField(x);var ie=this.textarea;x.wrapper.insertBefore(this.wrapper,x.wrapper.firstChild),dt&&(ie.style.width="0px"),$t(ie,"input",function(){ge&&ke>=9&&z.hasSelection&&(z.hasSelection=null),ne.poll()}),$t(ie,"paste",function(ye){Dt(te,ye)||md(ye,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function de(ye){if(!Dt(te,ye)){if(te.somethingSelected())bl({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var Te=lc(te);bl({lineWise:!0,text:Te.text}),ye.type=="cut"?te.setSelections(Te.ranges,null,ft):(ne.prevInput="",ie.value=Te.text.join(`
|
|
|
`),Wn(ie))}else return;ye.type=="cut"&&(te.state.cutIncoming=+new Date)}}$t(ie,"cut",de),$t(ie,"copy",de),$t(x.scroller,"paste",function(ye){if(!(ki(x,ye)||Dt(te,ye))){if(!ie.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var Te=new Event("paste");Te.clipboardData=ye.clipboardData,ie.dispatchEvent(Te)}}),$t(x.lineSpace,"selectstart",function(ye){ki(x,ye)||Qn(ye)}),$t(ie,"compositionstart",function(){var ye=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:ye,range:te.markText(ye,te.getCursor("to"),{className:"CodeMirror-composing"})}}),$t(ie,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},oo.prototype.createField=function(x){this.wrapper=vd(),this.textarea=this.wrapper.firstChild},oo.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},oo.prototype.prepareSelection=function(){var x=this.cm,z=x.display,ne=x.doc,te=as(x);if(x.options.moveInputWithCursor){var ie=Ca(x,ne.sel.primary().head,"div"),de=z.wrapper.getBoundingClientRect(),ye=z.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ie.top+ye.top-de.top)),te.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ie.left+ye.left-de.left))}return te},oo.prototype.showSelection=function(x){var z=this.cm,ne=z.display;At(ne.cursorDiv,x.cursors),At(ne.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},oo.prototype.reset=function(x){if(!(this.contextMenuPending||this.composing)){var z=this.cm;if(z.somethingSelected()){this.prevInput="";var ne=z.getSelection();this.textarea.value=ne,z.state.focused&&Wn(this.textarea),ge&&ke>=9&&(this.hasSelection=ne)}else x||(this.prevInput=this.textarea.value="",ge&&ke>=9&&(this.hasSelection=null))}},oo.prototype.getField=function(){return this.textarea},oo.prototype.supportsTouch=function(){return!1},oo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Je||zt()!=this.textarea))try{this.textarea.focus()}catch(x){}},oo.prototype.blur=function(){this.textarea.blur()},oo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},oo.prototype.receivedFocus=function(){this.slowPoll()},oo.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},oo.prototype.fastPoll=function(){var x=!1,z=this;z.pollingFast=!0;function ne(){var te=z.poll();!te&&!x?(x=!0,z.polling.set(60,ne)):(z.pollingFast=!1,z.slowPoll())}z.polling.set(20,ne)},oo.prototype.poll=function(){var x=this,z=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!z.state.focused||vn(ne)&&!te&&!this.composing||z.isReadOnly()||z.options.disableInput||z.state.keySeq)return!1;var ie=ne.value;if(ie==te&&!z.somethingSelected())return!1;if(ge&&ke>=9&&this.hasSelection===ie||Be&&/[\uf700-\uf7ff]/.test(ie))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var de=ie.charCodeAt(0);if(de==8203&&!te&&(te="\u200B"),de==8666)return this.reset(),this.cm.execCommand("undo")}for(var ye=0,Te=Math.min(te.length,ie.length);ye<Te&&te.charCodeAt(ye)==ie.charCodeAt(ye);)++ye;return La(z,function(){pd(z,ie.slice(ye),te.length-ye,null,x.composing?"*compose":null),ie.length>1e3||ie.indexOf(`
|
|
|
`)>-1?ne.value=x.prevInput="":x.prevInput=ie,x.composing&&(x.composing.range.clear(),x.composing.range=z.markText(x.composing.start,z.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},oo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},oo.prototype.onKeyPress=function(){ge&&ke>=9&&(this.hasSelection=null),this.fastPoll()},oo.prototype.onContextMenu=function(x){var z=this,ne=z.cm,te=ne.display,ie=z.textarea;z.contextMenuPending&&z.contextMenuPending();var de=Pa(ne,x),ye=te.scroller.scrollTop;if(!de||De)return;var Te=ne.options.resetSelectionOnContextMenu;Te&&ne.doc.sel.contains(de)==-1&&Ua(ne,Po)(ne.doc,Ps(de),ft);var Fe=ie.style.cssText,He=z.wrapper.style.cssText,Nt=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",ie.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(x.clientY-Nt.top-5)+"px; left: "+(x.clientX-Nt.left-5)+`px;
|
|
|
z-index: 1000; background: `+(ge?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Jt;Ee&&(Jt=window.scrollY),te.input.focus(),Ee&&window.scrollTo(null,Jt),te.input.reset(),ne.somethingSelected()||(ie.value=z.prevInput=" "),z.contextMenuPending=Tn,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function Hn(){if(ie.selectionStart!=null){var jr=ne.somethingSelected(),ai="\u200B"+(jr?ie.value:"");ie.value="\u21DA",ie.value=ai,z.prevInput=jr?"":"\u200B",ie.selectionStart=1,ie.selectionEnd=ai.length,te.selForContextMenu=ne.doc.sel}}function Tn(){if(z.contextMenuPending==Tn&&(z.contextMenuPending=!1,z.wrapper.style.cssText=He,ie.style.cssText=Fe,ge&&ke<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=ye),ie.selectionStart!=null)){(!ge||ge&&ke<9)&&Hn();var jr=0,ai=function(){te.selForContextMenu==ne.doc.sel&&ie.selectionStart==0&&ie.selectionEnd>0&&z.prevInput=="\u200B"?Ua(ne,td)(ne):jr++<10?te.detectingSelectAll=setTimeout(ai,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(ai,200)}}if(ge&&ke>=9&&Hn(),Ce){Sr(x);var Br=function(){_n(window,"mouseup",Br),setTimeout(Tn,20)};$t(window,"mouseup",Br)}else setTimeout(Tn,50)},oo.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},oo.prototype.setUneditable=function(){},oo.prototype.needsContentAttribute=!1;function Wl(x,z){if(z=z?ln(z):{},z.value=x.value,!z.tabindex&&x.tabIndex&&(z.tabindex=x.tabIndex),!z.placeholder&&x.placeholder&&(z.placeholder=x.placeholder),z.autofocus==null){var ne=zt();z.autofocus=ne==x||x.getAttribute("autofocus")!=null&&ne==document.body}function te(){x.value=Te.getValue()}var ie;if(x.form&&($t(x.form,"submit",te),!z.leaveSubmitMethodAlone)){var de=x.form;ie=de.submit;try{var ye=de.submit=function(){te(),de.submit=ie,de.submit(),de.submit=ye}}catch(Fe){}}z.finishInit=function(Fe){Fe.save=te,Fe.getTextArea=function(){return x},Fe.toTextArea=function(){Fe.toTextArea=isNaN,te(),x.parentNode.removeChild(Fe.getWrapperElement()),x.style.display="",x.form&&(_n(x.form,"submit",te),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ie))}},x.style.display="none";var Te=ya(function(Fe){return x.parentNode.insertBefore(Fe,x.nextSibling)},z);return Te}function uc(x){x.off=_n,x.on=$t,x.wheelEventPixels=Yu,x.Doc=Lo,x.splitLines=kt,x.countColumn=$e,x.findColumn=qn,x.isWordChar=he,x.Pass=Xt,x.signal=ct,x.Line=dr,x.changeEnd=qs,x.scrollbarModel=Ql,x.Pos=Kn,x.cmpPos=fr,x.modes=gr,x.mimeModes=sr,x.resolveMode=wt,x.getMode=Zt,x.modeExtensions=an,x.extendMode=ze,x.copyState=Ct,x.startState=Kt,x.innerMode=tn,x.commands=ac,x.keyMap=ao,x.keyName=Hl,x.isModifierKey=Ic,x.lookupKey=rl,x.normalizeKeyMap=od,x.StringStream=hn,x.SharedTextMarker=Da,x.TextMarker=hl,x.LineWidget=nc,x.e_preventDefault=Qn,x.e_stopPropagation=wr,x.e_stop=Sr,x.addClass=bn,x.contains=qt,x.rmClass=Ye,x.keyNames=Os}oh(ya),yd(ya);var ol="iter insert remove copy getEditor constructor".split(" ");for(var ks in Lo.prototype)Lo.prototype.hasOwnProperty(ks)&&Bt(ol,ks)<0&&(ya.prototype[ks]=function(x){return function(){return x.apply(this.doc,arguments)}}(Lo.prototype[ks]));return Bn(Lo),ya.inputStyles={textarea:oo,contenteditable:ro},ya.defineMode=function(x){!ya.defaults.mode&&x!="null"&&(ya.defaults.mode=x),Un.apply(this,arguments)},ya.defineMIME=qe,ya.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),ya.defineMIME("text/plain","null"),ya.defineExtension=function(x,z){ya.prototype[x]=z},ya.defineDocExtension=function(x,z){Lo.prototype[x]=z},ya.fromTextArea=Wl,uc(ya),ya.version="5.58.2",ya})},49047:function(yn,fn,se){(function(ae){ae(se(4631),se(29589),se(52539))})(function(ae){"use strict";ae.defineMode("markdown",function(Le,_e){var rt=ae.getMode(Le,"text/html"),ge=rt.name=="null";function ke($e){if(ae.findModeByName){var Se=ae.findModeByName($e);Se&&($e=Se.mime||Se.mimes[0])}var Bt=ae.getMode(Le,$e);return Bt.name=="null"?null:Bt}_e.highlightFormatting===void 0&&(_e.highlightFormatting=!1),_e.maxBlockquoteDepth===void 0&&(_e.maxBlockquoteDepth=0),_e.taskLists===void 0&&(_e.taskLists=!1),_e.strikethrough===void 0&&(_e.strikethrough=!1),_e.emoji===void 0&&(_e.emoji=!1),_e.fencedCodeBlockHighlighting===void 0&&(_e.fencedCodeBlockHighlighting=!0),_e.fencedCodeBlockDefaultMode===void 0&&(_e.fencedCodeBlockDefaultMode="text/plain"),_e.xml===void 0&&(_e.xml=!0),_e.tokenTypeOverrides===void 0&&(_e.tokenTypeOverrides={});var Ee={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 xe in Ee)Ee.hasOwnProperty(xe)&&_e.tokenTypeOverrides[xe]&&(Ee[xe]=_e.tokenTypeOverrides[xe]);var me=/^([*\-_])(?:\s*\1){2,}\s*$/,De=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ot=/^\[(x| )\](?=\s)/i,Ne=_e.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,mt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,dt=/^[^#!\[\]*_\\<>` "'(~:]+/,pt=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Je=/^\s*\[[^\]]+?\]:.*$/,Be=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,gt=" ";function nn($e,Se,Bt){return Se.f=Se.inline=Bt,Bt($e,Se)}function at($e,Se,Bt){return Se.f=Se.block=Bt,Bt($e,Se)}function vt($e){return!$e||!/\S/.test($e.string)}function Ce($e){if($e.linkTitle=!1,$e.linkHref=!1,$e.linkText=!1,$e.em=!1,$e.strong=!1,$e.strikethrough=!1,$e.quote=0,$e.indentedCode=!1,$e.f==Ye){var Se=ge;if(!Se){var Bt=ae.innerMode(rt,$e.htmlState);Se=Bt.mode.name=="xml"&&Bt.state.tagStart===null&&!Bt.state.context&&Bt.state.tokenize.isInText}Se&&($e.f=Lt,$e.block=Ae,$e.htmlState=null)}return $e.trailingSpace=0,$e.trailingSpaceNewLine=!1,$e.prevLine=$e.thisLine,$e.thisLine={stream:null},null}function Ae($e,Se){var Bt=$e.column()===Se.indentation,xn=vt(Se.prevLine.stream),Xt=Se.indentedCode,ft=Se.prevLine.hr,yt=Se.list!==!1,Gt=(Se.listStack[Se.listStack.length-1]||0)+3;Se.indentedCode=!1;var qn=Se.indentation;if(Se.indentationDiff===null&&(Se.indentationDiff=Se.indentation,yt)){for(Se.list=null;qn<Se.listStack[Se.listStack.length-1];)Se.listStack.pop(),Se.listStack.length?Se.indentation=Se.listStack[Se.listStack.length-1]:Se.list=!1;Se.list!==!1&&(Se.indentationDiff=qn-Se.listStack[Se.listStack.length-1])}var Dn=!xn&&!ft&&!Se.prevLine.header&&(!yt||!Xt)&&!Se.prevLine.fencedCodeEnd,Tt=(Se.list===!1||ft||xn)&&Se.indentation<=Gt&&$e.match(me),mn=null;if(Se.indentationDiff>=4&&(Xt||Se.prevLine.fencedCodeEnd||Se.prevLine.header||xn))return $e.skipToEnd(),Se.indentedCode=!0,Ee.code;if($e.eatSpace())return null;if(Bt&&Se.indentation<=Gt&&(mn=$e.match(Ne))&&mn[1].length<=6)return Se.quote=0,Se.header=mn[1].length,Se.thisLine.header=!0,_e.highlightFormatting&&(Se.formatting="header"),Se.f=Se.inline,At(Se);if(Se.indentation<=Gt&&$e.eat(">"))return Se.quote=Bt?1:Se.quote+1,_e.highlightFormatting&&(Se.formatting="quote"),$e.eatSpace(),At(Se);if(!Tt&&!Se.setext&&Bt&&Se.indentation<=Gt&&(mn=$e.match(De))){var Vn=mn[1]?"ol":"ul";return Se.indentation=qn+$e.current().length,Se.list=!0,Se.quote=0,Se.listStack.push(Se.indentation),Se.em=!1,Se.strong=!1,Se.code=!1,Se.strikethrough=!1,_e.taskLists&&$e.match(ot,!1)&&(Se.taskList=!0),Se.f=Se.inline,_e.highlightFormatting&&(Se.formatting=["list","list-"+Vn]),At(Se)}else{if(Bt&&Se.indentation<=Gt&&(mn=$e.match(pt,!0)))return Se.quote=0,Se.fencedEndRE=new RegExp(mn[1]+"+ *$"),Se.localMode=_e.fencedCodeBlockHighlighting&&ke(mn[2]||_e.fencedCodeBlockDefaultMode),Se.localMode&&(Se.localState=ae.startState(Se.localMode)),Se.f=Se.block=Ve,_e.highlightFormatting&&(Se.formatting="code-block"),Se.code=-1,At(Se);if(Se.setext||(!Dn||!yt)&&!Se.quote&&Se.list===!1&&!Se.code&&!Tt&&!Je.test($e.string)&&(mn=$e.lookAhead(1))&&(mn=mn.match(mt)))return Se.setext?(Se.header=Se.setext,Se.setext=0,$e.skipToEnd(),_e.highlightFormatting&&(Se.formatting="header")):(Se.header=mn[0].charAt(0)=="="?1:2,Se.setext=Se.header),Se.thisLine.header=!0,Se.f=Se.inline,At(Se);if(Tt)return $e.skipToEnd(),Se.hr=!0,Se.thisLine.hr=!0,Ee.hr;if($e.peek()==="[")return nn($e,Se,dn)}return nn($e,Se,Se.inline)}function Ye($e,Se){var Bt=rt.token($e,Se.htmlState);if(!ge){var xn=ae.innerMode(rt,Se.htmlState);(xn.mode.name=="xml"&&xn.state.tagStart===null&&!xn.state.context&&xn.state.tokenize.isInText||Se.md_inside&&$e.current().indexOf(">")>-1)&&(Se.f=Lt,Se.block=Ae,Se.htmlState=null)}return Bt}function Ve($e,Se){var Bt=Se.listStack[Se.listStack.length-1]||0,xn=Se.indentation<Bt,Xt=Bt+3;if(Se.fencedEndRE&&Se.indentation<=Xt&&(xn||$e.match(Se.fencedEndRE))){_e.highlightFormatting&&(Se.formatting="code-block");var ft;return xn||(ft=At(Se)),Se.localMode=Se.localState=null,Se.block=Ae,Se.f=Lt,Se.fencedEndRE=null,Se.code=0,Se.thisLine.fencedCodeEnd=!0,xn?at($e,Se,Se.block):ft}else return Se.localMode?Se.localMode.token($e,Se.localState):($e.skipToEnd(),Ee.code)}function At($e){var Se=[];if($e.formatting){Se.push(Ee.formatting),typeof $e.formatting=="string"&&($e.formatting=[$e.formatting]);for(var Bt=0;Bt<$e.formatting.length;Bt++)Se.push(Ee.formatting+"-"+$e.formatting[Bt]),$e.formatting[Bt]==="header"&&Se.push(Ee.formatting+"-"+$e.formatting[Bt]+"-"+$e.header),$e.formatting[Bt]==="quote"&&(!_e.maxBlockquoteDepth||_e.maxBlockquoteDepth>=$e.quote?Se.push(Ee.formatting+"-"+$e.formatting[Bt]+"-"+$e.quote):Se.push("error"))}if($e.taskOpen)return Se.push("meta"),Se.length?Se.join(" "):null;if($e.taskClosed)return Se.push("property"),Se.length?Se.join(" "):null;if($e.linkHref?Se.push(Ee.linkHref,"url"):($e.strong&&Se.push(Ee.strong),$e.em&&Se.push(Ee.em),$e.strikethrough&&Se.push(Ee.strikethrough),$e.emoji&&Se.push(Ee.emoji),$e.linkText&&Se.push(Ee.linkText),$e.code&&Se.push(Ee.code),$e.image&&Se.push(Ee.image),$e.imageAltText&&Se.push(Ee.imageAltText,"link"),$e.imageMarker&&Se.push(Ee.imageMarker)),$e.header&&Se.push(Ee.header,Ee.header+"-"+$e.header),$e.quote&&(Se.push(Ee.quote),!_e.maxBlockquoteDepth||_e.maxBlockquoteDepth>=$e.quote?Se.push(Ee.quote+"-"+$e.quote):Se.push(Ee.quote+"-"+_e.maxBlockquoteDepth)),$e.list!==!1){var xn=($e.listStack.length-1)%3;xn?xn===1?Se.push(Ee.list2):Se.push(Ee.list3):Se.push(Ee.list1)}return $e.trailingSpaceNewLine?Se.push("trailing-space-new-line"):$e.trailingSpace&&Se.push("trailing-space-"+($e.trailingSpace%2?"a":"b")),Se.length?Se.join(" "):null}function xt($e,Se){if($e.match(dt,!0))return At(Se)}function Lt($e,Se){var Bt=Se.text($e,Se);if(typeof Bt!="undefined")return Bt;if(Se.list)return Se.list=null,At(Se);if(Se.taskList){var xn=$e.match(ot,!0)[1]===" ";return xn?Se.taskOpen=!0:Se.taskClosed=!0,_e.highlightFormatting&&(Se.formatting="task"),Se.taskList=!1,At(Se)}if(Se.taskOpen=!1,Se.taskClosed=!1,Se.header&&$e.match(/^#+$/,!0))return _e.highlightFormatting&&(Se.formatting="header"),At(Se);var Xt=$e.next();if(Se.linkTitle){Se.linkTitle=!1;var ft=Xt;Xt==="("&&(ft=")"),ft=(ft+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var yt="^\\s*(?:[^"+ft+"\\\\]+|\\\\\\\\|\\\\.)"+ft;if($e.match(new RegExp(yt),!0))return Ee.linkHref}if(Xt==="`"){var Gt=Se.formatting;_e.highlightFormatting&&(Se.formatting="code"),$e.eatWhile("`");var qn=$e.current().length;if(Se.code==0&&(!Se.quote||qn==1))return Se.code=qn,At(Se);if(qn==Se.code){var Dn=At(Se);return Se.code=0,Dn}else return Se.formatting=Gt,At(Se)}else if(Se.code)return At(Se);if(Xt==="\\"&&($e.next(),_e.highlightFormatting)){var Tt=At(Se),mn=Ee.formatting+"-escape";return Tt?Tt+" "+mn:mn}if(Xt==="!"&&$e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Se.imageMarker=!0,Se.image=!0,_e.highlightFormatting&&(Se.formatting="image"),At(Se);if(Xt==="["&&Se.imageMarker&&$e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Se.imageMarker=!1,Se.imageAltText=!0,_e.highlightFormatting&&(Se.formatting="image"),At(Se);if(Xt==="]"&&Se.imageAltText){_e.highlightFormatting&&(Se.formatting="image");var Tt=At(Se);return Se.imageAltText=!1,Se.image=!1,Se.inline=Se.f=qt,Tt}if(Xt==="["&&!Se.image)return Se.linkText&&$e.match(/^.*?\]/)||(Se.linkText=!0,_e.highlightFormatting&&(Se.formatting="link")),At(Se);if(Xt==="]"&&Se.linkText){_e.highlightFormatting&&(Se.formatting="link");var Tt=At(Se);return Se.linkText=!1,Se.inline=Se.f=$e.match(/\(.*?\)| ?\[.*?\]/,!1)?qt:Lt,Tt}if(Xt==="<"&&$e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Se.f=Se.inline=nt,_e.highlightFormatting&&(Se.formatting="link");var Tt=At(Se);return Tt?Tt+=" ":Tt="",Tt+Ee.linkInline}if(Xt==="<"&&$e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Se.f=Se.inline=nt,_e.highlightFormatting&&(Se.formatting="link");var Tt=At(Se);return Tt?Tt+=" ":Tt="",Tt+Ee.linkEmail}if(_e.xml&&Xt==="<"&&$e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Vn=$e.string.indexOf(">",$e.pos);if(Vn!=-1){var kn=$e.string.substring($e.start,Vn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(kn)&&(Se.md_inside=!0)}return $e.backUp(1),Se.htmlState=ae.startState(rt),at($e,Se,Ye)}if(_e.xml&&Xt==="<"&&$e.match(/^\/\w*?>/))return Se.md_inside=!1,"tag";if(Xt==="*"||Xt==="_"){for(var Pe=1,fe=$e.pos==1?" ":$e.string.charAt($e.pos-2);Pe<3&&$e.eat(Xt);)Pe++;var ce=$e.peek()||" ",he=!/\s/.test(ce)&&(!Be.test(ce)||/\s/.test(fe)||Be.test(fe)),ue=!/\s/.test(fe)&&(!Be.test(fe)||/\s/.test(ce)||Be.test(ce)),le=null,Me=null;if(Pe%2&&(!Se.em&&he&&(Xt==="*"||!ue||Be.test(fe))?le=!0:Se.em==Xt&&ue&&(Xt==="*"||!he||Be.test(ce))&&(le=!1)),Pe>1&&(!Se.strong&&he&&(Xt==="*"||!ue||Be.test(fe))?Me=!0:Se.strong==Xt&&ue&&(Xt==="*"||!he||Be.test(ce))&&(Me=!1)),Me!=null||le!=null){_e.highlightFormatting&&(Se.formatting=le==null?"strong":Me==null?"em":"strong em"),le===!0&&(Se.em=Xt),Me===!0&&(Se.strong=Xt);var Dn=At(Se);return le===!1&&(Se.em=!1),Me===!1&&(Se.strong=!1),Dn}}else if(Xt===" "&&($e.eat("*")||$e.eat("_"))){if($e.peek()===" ")return At(Se);$e.backUp(1)}if(_e.strikethrough){if(Xt==="~"&&$e.eatWhile(Xt)){if(Se.strikethrough){_e.highlightFormatting&&(Se.formatting="strikethrough");var Dn=At(Se);return Se.strikethrough=!1,Dn}else if($e.match(/^[^\s]/,!1))return Se.strikethrough=!0,_e.highlightFormatting&&(Se.formatting="strikethrough"),At(Se)}else if(Xt===" "&&$e.match(/^~~/,!0)){if($e.peek()===" ")return At(Se);$e.backUp(2)}}if(_e.emoji&&Xt===":"&&$e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Se.emoji=!0,_e.highlightFormatting&&(Se.formatting="emoji");var Ge=At(Se);return Se.emoji=!1,Ge}return Xt===" "&&($e.match(/^ +$/,!1)?Se.trailingSpace++:Se.trailingSpace&&(Se.trailingSpaceNewLine=!0)),At(Se)}function nt($e,Se){var Bt=$e.next();if(Bt===">"){Se.f=Se.inline=Lt,_e.highlightFormatting&&(Se.formatting="link");var xn=At(Se);return xn?xn+=" ":xn="",xn+Ee.linkInline}return $e.match(/^[^>]+/,!0),Ee.linkInline}function qt($e,Se){if($e.eatSpace())return null;var Bt=$e.next();return Bt==="("||Bt==="["?(Se.f=Se.inline=bn(Bt==="("?")":"]"),_e.highlightFormatting&&(Se.formatting="link-string"),Se.linkHref=!0,At(Se)):"error"}var zt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function bn($e){return function(Se,Bt){var xn=Se.next();if(xn===$e){Bt.f=Bt.inline=Lt,_e.highlightFormatting&&(Bt.formatting="link-string");var Xt=At(Bt);return Bt.linkHref=!1,Xt}return Se.match(zt[$e]),Bt.linkHref=!0,At(Bt)}}function dn($e,Se){return $e.match(/^([^\]\\]|\\.)*\]:/,!1)?(Se.f=Wn,$e.next(),_e.highlightFormatting&&(Se.formatting="link"),Se.linkText=!0,At(Se)):nn($e,Se,Lt)}function Wn($e,Se){if($e.match(/^\]:/,!0)){Se.f=Se.inline=rr,_e.highlightFormatting&&(Se.formatting="link");var Bt=At(Se);return Se.linkText=!1,Bt}return $e.match(/^([^\]\\]|\\.)+/,!0),Ee.linkText}function rr($e,Se){return $e.eatSpace()?null:($e.match(/^[^\s]+/,!0),$e.peek()===void 0?Se.linkTitle=!0:$e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Se.f=Se.inline=Lt,Ee.linkHref+" url")}var ln={startState:function(){return{f:Ae,prevLine:{stream:null},thisLine:{stream:null},block:Ae,htmlState:null,indentation:0,inline:Lt,text:xt,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($e){return{f:$e.f,prevLine:$e.prevLine,thisLine:$e.thisLine,block:$e.block,htmlState:$e.htmlState&&ae.copyState(rt,$e.htmlState),indentation:$e.indentation,localMode:$e.localMode,localState:$e.localMode?ae.copyState($e.localMode,$e.localState):null,inline:$e.inline,text:$e.text,formatting:!1,linkText:$e.linkText,linkTitle:$e.linkTitle,linkHref:$e.linkHref,code:$e.code,em:$e.em,strong:$e.strong,strikethrough:$e.strikethrough,emoji:$e.emoji,header:$e.header,setext:$e.setext,hr:$e.hr,taskList:$e.taskList,list:$e.list,listStack:$e.listStack.slice(0),quote:$e.quote,indentedCode:$e.indentedCode,trailingSpace:$e.trailingSpace,trailingSpaceNewLine:$e.trailingSpaceNewLine,md_inside:$e.md_inside,fencedEndRE:$e.fencedEndRE}},token:function($e,Se){if(Se.formatting=!1,$e!=Se.thisLine.stream){if(Se.header=0,Se.hr=!1,$e.match(/^\s*$/,!0))return Ce(Se),null;if(Se.prevLine=Se.thisLine,Se.thisLine={stream:$e},Se.taskList=!1,Se.trailingSpace=0,Se.trailingSpaceNewLine=!1,!Se.localState&&(Se.f=Se.block,Se.f!=Ye)){var Bt=$e.match(/^\s*/,!0)[0].replace(/\t/g,gt).length;if(Se.indentation=Bt,Se.indentationDiff=null,Bt>0)return null}}return Se.f($e,Se)},innerMode:function($e){return $e.block==Ye?{state:$e.htmlState,mode:rt}:$e.localState?{state:$e.localState,mode:$e.localMode}:{state:$e,mode:ln}},indent:function($e,Se,Bt){return $e.block==Ye&&rt.indent?rt.indent($e.htmlState,Se,Bt):$e.localState&&$e.localMode.indent?$e.localMode.indent($e.localState,Se,Bt):ae.Pass},blankLine:Ce,getType:At,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ln},"xml"),ae.defineMIME("text/markdown","markdown"),ae.defineMIME("text/x-markdown","markdown")})},52539:function(yn,fn,se){(function(ae){ae(se(4631))})(function(ae){"use strict";ae.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 Le=0;Le<ae.modeInfo.length;Le++){var _e=ae.modeInfo[Le];_e.mimes&&(_e.mime=_e.mimes[0])}ae.findModeByMIME=function(rt){rt=rt.toLowerCase();for(var ge=0;ge<ae.modeInfo.length;ge++){var ke=ae.modeInfo[ge];if(ke.mime==rt)return ke;if(ke.mimes){for(var Ee=0;Ee<ke.mimes.length;Ee++)if(ke.mimes[Ee]==rt)return ke}}if(/\+xml$/.test(rt))return ae.findModeByMIME("application/xml");if(/\+json$/.test(rt))return ae.findModeByMIME("application/json")},ae.findModeByExtension=function(rt){rt=rt.toLowerCase();for(var ge=0;ge<ae.modeInfo.length;ge++){var ke=ae.modeInfo[ge];if(ke.ext){for(var Ee=0;Ee<ke.ext.length;Ee++)if(ke.ext[Ee]==rt)return ke}}},ae.findModeByFileName=function(rt){for(var ge=0;ge<ae.modeInfo.length;ge++){var ke=ae.modeInfo[ge];if(ke.file&&ke.file.test(rt))return ke}var Ee=rt.lastIndexOf("."),xe=Ee>-1&&rt.substring(Ee+1,rt.length);if(xe)return ae.findModeByExtension(xe)},ae.findModeByName=function(rt){rt=rt.toLowerCase();for(var ge=0;ge<ae.modeInfo.length;ge++){var ke=ae.modeInfo[ge];if(ke.name.toLowerCase()==rt)return ke;if(ke.alias){for(var Ee=0;Ee<ke.alias.length;Ee++)if(ke.alias[Ee].toLowerCase()==rt)return ke}}}})},80785:function(yn,fn,se){(function(ae){ae(se(4631))})(function(ae){"use strict";ae.defineMode("stex",function(Le,_e){"use strict";function rt(dt,pt){dt.cmdState.push(pt)}function ge(dt){return dt.cmdState.length>0?dt.cmdState[dt.cmdState.length-1]:null}function ke(dt){var pt=dt.cmdState.pop();pt&&pt.closeBracket()}function Ee(dt){for(var pt=dt.cmdState,Je=pt.length-1;Je>=0;Je--){var Be=pt[Je];if(Be.name!="DEFAULT")return Be}return{styleIdentifier:function(){return null}}}function xe(dt,pt,Je){return function(){this.name=dt,this.bracketNo=0,this.style=pt,this.styles=Je,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var me={};me.importmodule=xe("importmodule","tag",["string","builtin"]),me.documentclass=xe("documentclass","tag",["","atom"]),me.usepackage=xe("usepackage","tag",["atom"]),me.begin=xe("begin","tag",["atom"]),me.end=xe("end","tag",["atom"]),me.label=xe("label","tag",["atom"]),me.ref=xe("ref","tag",["atom"]),me.eqref=xe("eqref","tag",["atom"]),me.cite=xe("cite","tag",["atom"]),me.bibitem=xe("bibitem","tag",["atom"]),me.Bibitem=xe("Bibitem","tag",["atom"]),me.RBibitem=xe("RBibitem","tag",["atom"]),me.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function De(dt,pt){dt.f=pt}function ot(dt,pt){var Je;if(dt.match(/^\\[a-zA-Z@]+/)){var Be=dt.current().slice(1);return Je=me.hasOwnProperty(Be)?me[Be]:me.DEFAULT,Je=new Je,rt(pt,Je),De(pt,mt),Je.style}if(dt.match(/^\\[$&%#{}_]/)||dt.match(/^\\[,;!\/\\]/))return"tag";if(dt.match("\\["))return De(pt,function(nn,at){return Ne(nn,at,"\\]")}),"keyword";if(dt.match("\\("))return De(pt,function(nn,at){return Ne(nn,at,"\\)")}),"keyword";if(dt.match("$$"))return De(pt,function(nn,at){return Ne(nn,at,"$$")}),"keyword";if(dt.match("$"))return De(pt,function(nn,at){return Ne(nn,at,"$")}),"keyword";var gt=dt.next();if(gt=="%")return dt.skipToEnd(),"comment";if(gt=="}"||gt=="]"){if(Je=ge(pt),Je)Je.closeBracket(gt),De(pt,mt);else return"error";return"bracket"}else return gt=="{"||gt=="["?(Je=me.DEFAULT,Je=new Je,rt(pt,Je),"bracket"):/\d/.test(gt)?(dt.eatWhile(/[\w.%]/),"atom"):(dt.eatWhile(/[\w\-_]/),Je=Ee(pt),Je.name=="begin"&&(Je.argument=dt.current()),Je.styleIdentifier())}function Ne(dt,pt,Je){if(dt.eatSpace())return null;if(Je&&dt.match(Je))return De(pt,ot),"keyword";if(dt.match(/^\\[a-zA-Z@]+/))return"tag";if(dt.match(/^[a-zA-Z]+/))return"variable-2";if(dt.match(/^\\[$&%#{}_]/)||dt.match(/^\\[,;!\/]/)||dt.match(/^[\^_&]/))return"tag";if(dt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(dt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Be=dt.next();return Be=="{"||Be=="}"||Be=="["||Be=="]"||Be=="("||Be==")"?"bracket":Be=="%"?(dt.skipToEnd(),"comment"):"error"}function mt(dt,pt){var Je=dt.peek(),Be;return Je=="{"||Je=="["?(Be=ge(pt),Be.openBracket(Je),dt.eat(Je),De(pt,ot),"bracket"):/[ \t\r]/.test(Je)?(dt.eat(Je),null):(De(pt,ot),ke(pt),ot(dt,pt))}return{startState:function(){var dt=_e.inMathMode?function(pt,Je){return Ne(pt,Je)}:ot;return{cmdState:[],f:dt}},copyState:function(dt){return{cmdState:dt.cmdState.slice(),f:dt.f}},token:function(dt,pt){return pt.f(dt,pt)},blankLine:function(dt){dt.f=ot,dt.cmdState.length=0},lineComment:"%"}}),ae.defineMIME("text/x-stex","stex"),ae.defineMIME("text/x-latex","stex")})},29589:function(yn,fn,se){(function(ae){ae(se(4631))})(function(ae){"use strict";var Le={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},_e={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ae.defineMode("xml",function(rt,ge){var ke=rt.indentUnit,Ee={},xe=ge.htmlMode?Le:_e;for(var me in xe)Ee[me]=xe[me];for(var me in ge)Ee[me]=ge[me];var De,ot;function Ne(nt,qt){function zt(Wn){return qt.tokenize=Wn,Wn(nt,qt)}var bn=nt.next();if(bn=="<")return nt.eat("!")?nt.eat("[")?nt.match("CDATA[")?zt(pt("atom","]]>")):null:nt.match("--")?zt(pt("comment","-->")):nt.match("DOCTYPE",!0,!0)?(nt.eatWhile(/[\w\._\-]/),zt(Je(1))):null:nt.eat("?")?(nt.eatWhile(/[\w\._\-]/),qt.tokenize=pt("meta","?>"),"meta"):(De=nt.eat("/")?"closeTag":"openTag",qt.tokenize=mt,"tag bracket");if(bn=="&"){var dn;return nt.eat("#")?nt.eat("x")?dn=nt.eatWhile(/[a-fA-F\d]/)&&nt.eat(";"):dn=nt.eatWhile(/[\d]/)&&nt.eat(";"):dn=nt.eatWhile(/[\w\.\-:]/)&&nt.eat(";"),dn?"atom":"error"}else return nt.eatWhile(/[^&<]/),null}Ne.isInText=!0;function mt(nt,qt){var zt=nt.next();if(zt==">"||zt=="/"&&nt.eat(">"))return qt.tokenize=Ne,De=zt==">"?"endTag":"selfcloseTag","tag bracket";if(zt=="=")return De="equals",null;if(zt=="<"){qt.tokenize=Ne,qt.state=at,qt.tagName=qt.tagStart=null;var bn=qt.tokenize(nt,qt);return bn?bn+" tag error":"tag error"}else return/[\'\"]/.test(zt)?(qt.tokenize=dt(zt),qt.stringStartCol=nt.column(),qt.tokenize(nt,qt)):(nt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function dt(nt){var qt=function(zt,bn){for(;!zt.eol();)if(zt.next()==nt){bn.tokenize=mt;break}return"string"};return qt.isInAttribute=!0,qt}function pt(nt,qt){return function(zt,bn){for(;!zt.eol();){if(zt.match(qt)){bn.tokenize=Ne;break}zt.next()}return nt}}function Je(nt){return function(qt,zt){for(var bn;(bn=qt.next())!=null;){if(bn=="<")return zt.tokenize=Je(nt+1),zt.tokenize(qt,zt);if(bn==">")if(nt==1){zt.tokenize=Ne;break}else return zt.tokenize=Je(nt-1),zt.tokenize(qt,zt)}return"meta"}}function Be(nt,qt,zt){this.prev=nt.context,this.tagName=qt,this.indent=nt.indented,this.startOfLine=zt,(Ee.doNotIndent.hasOwnProperty(qt)||nt.context&&nt.context.noIndent)&&(this.noIndent=!0)}function gt(nt){nt.context&&(nt.context=nt.context.prev)}function nn(nt,qt){for(var zt;;){if(!nt.context||(zt=nt.context.tagName,!Ee.contextGrabbers.hasOwnProperty(zt)||!Ee.contextGrabbers[zt].hasOwnProperty(qt)))return;gt(nt)}}function at(nt,qt,zt){return nt=="openTag"?(zt.tagStart=qt.column(),vt):nt=="closeTag"?Ce:at}function vt(nt,qt,zt){return nt=="word"?(zt.tagName=qt.current(),ot="tag",Ve):Ee.allowMissingTagName&&nt=="endTag"?(ot="tag bracket",Ve(nt,qt,zt)):(ot="error",vt)}function Ce(nt,qt,zt){if(nt=="word"){var bn=qt.current();return zt.context&&zt.context.tagName!=bn&&Ee.implicitlyClosed.hasOwnProperty(zt.context.tagName)&>(zt),zt.context&&zt.context.tagName==bn||Ee.matchClosing===!1?(ot="tag",Ae):(ot="tag error",Ye)}else return Ee.allowMissingTagName&&nt=="endTag"?(ot="tag bracket",Ae(nt,qt,zt)):(ot="error",Ye)}function Ae(nt,qt,zt){return nt!="endTag"?(ot="error",Ae):(gt(zt),at)}function Ye(nt,qt,zt){return ot="error",Ae(nt,qt,zt)}function Ve(nt,qt,zt){if(nt=="word")return ot="attribute",At;if(nt=="endTag"||nt=="selfcloseTag"){var bn=zt.tagName,dn=zt.tagStart;return zt.tagName=zt.tagStart=null,nt=="selfcloseTag"||Ee.autoSelfClosers.hasOwnProperty(bn)?nn(zt,bn):(nn(zt,bn),zt.context=new Be(zt,bn,dn==zt.indented)),at}return ot="error",Ve}function At(nt,qt,zt){return nt=="equals"?xt:(Ee.allowMissing||(ot="error"),Ve(nt,qt,zt))}function xt(nt,qt,zt){return nt=="string"?Lt:nt=="word"&&Ee.allowUnquoted?(ot="string",Ve):(ot="error",Ve(nt,qt,zt))}function Lt(nt,qt,zt){return nt=="string"?Lt:Ve(nt,qt,zt)}return{startState:function(nt){var qt={tokenize:Ne,state:at,indented:nt||0,tagName:null,tagStart:null,context:null};return nt!=null&&(qt.baseIndent=nt),qt},token:function(nt,qt){if(!qt.tagName&&nt.sol()&&(qt.indented=nt.indentation()),nt.eatSpace())return null;De=null;var zt=qt.tokenize(nt,qt);return(zt||De)&&zt!="comment"&&(ot=null,qt.state=qt.state(De||zt,nt,qt),ot&&(zt=ot=="error"?zt+" error":ot)),zt},indent:function(nt,qt,zt){var bn=nt.context;if(nt.tokenize.isInAttribute)return nt.tagStart==nt.indented?nt.stringStartCol+1:nt.indented+ke;if(bn&&bn.noIndent)return ae.Pass;if(nt.tokenize!=mt&&nt.tokenize!=Ne)return zt?zt.match(/^(\s*)/)[0].length:0;if(nt.tagName)return Ee.multilineTagIndentPastTag!==!1?nt.tagStart+nt.tagName.length+2:nt.tagStart+ke*(Ee.multilineTagIndentFactor||1);if(Ee.alignCDATA&&/<!\[CDATA\[/.test(qt))return 0;var dn=qt&&/^<(\/)?([\w_:\.-]*)/.exec(qt);if(dn&&dn[1])for(;bn;)if(bn.tagName==dn[2]){bn=bn.prev;break}else if(Ee.implicitlyClosed.hasOwnProperty(bn.tagName))bn=bn.prev;else break;else if(dn)for(;bn;){var Wn=Ee.contextGrabbers[bn.tagName];if(Wn&&Wn.hasOwnProperty(dn[2]))bn=bn.prev;else break}for(;bn&&bn.prev&&!bn.startOfLine;)bn=bn.prev;return bn?bn.indent+ke:nt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ee.htmlMode?"html":"xml",helperType:Ee.htmlMode?"html":"xml",skipAttribute:function(nt){nt.state==xt&&(nt.state=Ve)},xmlCurrentTag:function(nt){return nt.tagName?{name:nt.tagName,close:nt.type=="closeTag"}:null},xmlCurrentContext:function(nt){for(var qt=[],zt=nt.context;zt;zt=zt.prev)zt.tagName&&qt.push(zt.tagName);return qt.reverse()}}}),ae.defineMIME("text/xml","xml"),ae.defineMIME("application/xml","xml"),ae.mimeModes.hasOwnProperty("text/html")||ae.defineMIME("text/html",{name:"xml",htmlMode:!0})})},15979:function(yn,fn,se){"use strict";se.d(fn,{hP:function(){return kn}});var ae=function(Pe,fe){return(ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,he){ce.__proto__=he}||function(ce,he){for(var ue in he)Object.prototype.hasOwnProperty.call(he,ue)&&(ce[ue]=he[ue])})(Pe,fe)};function Le(Pe,fe){function ce(){this.constructor=Pe}ae(Pe,fe),Pe.prototype=fe===null?Object.create(fe):(ce.prototype=fe.prototype,new ce)}function _e(Pe,fe,ce,he){return new(ce||(ce=Promise))(function(ue,le){function Me(Ht){try{St(he.next(Ht))}catch(Yt){le(Yt)}}function Ge(Ht){try{St(he.throw(Ht))}catch(Yt){le(Yt)}}function St(Ht){var Yt;Ht.done?ue(Ht.value):(Yt=Ht.value,Yt instanceof ce?Yt:new ce(function(Vt){Vt(Yt)})).then(Me,Ge)}St((he=he.apply(Pe,fe||[])).next())})}function rt(Pe,fe){var ce,he,ue,le,Me={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return le={next:Ge(0),throw:Ge(1),return:Ge(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function Ge(St){return function(Ht){return function(Yt){if(ce)throw new TypeError("Generator is already executing.");for(;Me;)try{if(ce=1,he&&(ue=2&Yt[0]?he.return:Yt[0]?he.throw||((ue=he.return)&&ue.call(he),0):he.next)&&!(ue=ue.call(he,Yt[1])).done)return ue;switch(he=0,ue&&(Yt=[2&Yt[0],ue.value]),Yt[0]){case 0:case 1:ue=Yt;break;case 4:return Me.label++,{value:Yt[1],done:!1};case 5:Me.label++,he=Yt[1],Yt=[0];continue;case 7:Yt=Me.ops.pop(),Me.trys.pop();continue;default:if(ue=Me.trys,!((ue=ue.length>0&&ue[ue.length-1])||Yt[0]!==6&&Yt[0]!==2)){Me=0;continue}if(Yt[0]===3&&(!ue||Yt[1]>ue[0]&&Yt[1]<ue[3])){Me.label=Yt[1];break}if(Yt[0]===6&&Me.label<ue[1]){Me.label=ue[1],ue=Yt;break}if(ue&&Me.label<ue[2]){Me.label=ue[2],Me.ops.push(Yt);break}ue[2]&&Me.ops.pop(),Me.trys.pop();continue}Yt=fe.call(Pe,Me)}catch(Vt){Yt=[6,Vt],he=0}finally{ce=ue=0}if(5&Yt[0])throw Yt[1];return{value:Yt[0]?Yt[1]:void 0,done:!0}}([St,Ht])}}}function ge(){for(var Pe=0,fe=0,ce=arguments.length;fe<ce;fe++)Pe+=arguments[fe].length;var he=Array(Pe),ue=0;for(fe=0;fe<ce;fe++)for(var le=arguments[fe],Me=0,Ge=le.length;Me<Ge;Me++,ue++)he[ue]=le[Me];return he}var ke=function(){function Pe(){}return Pe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Pe.setAttributes=function(fe,ce){for(var he=0,ue=ce;he<ue.length;he++){var le=ue[he],Me=le[0],Ge=le[1];fe.setAttribute(Me,Ge)}},Pe.createRect=function(fe,ce,he){var ue=document.createElementNS("http://www.w3.org/2000/svg","rect");return ue.setAttribute("width",fe.toString()),ue.setAttribute("height",ce.toString()),he&&Pe.setAttributes(ue,he),ue},Pe.createLine=function(fe,ce,he,ue,le){var Me=document.createElementNS("http://www.w3.org/2000/svg","line");return Me.setAttribute("x1",fe.toString()),Me.setAttribute("y1",ce.toString()),Me.setAttribute("x2",he.toString()),Me.setAttribute("y2",ue.toString()),le&&Pe.setAttributes(Me,le),Me},Pe.createPolygon=function(fe,ce){var he=document.createElementNS("http://www.w3.org/2000/svg","polygon");return he.setAttribute("points",fe),ce&&Pe.setAttributes(he,ce),he},Pe.createCircle=function(fe,ce){var he=document.createElementNS("http://www.w3.org/2000/svg","circle");return he.setAttribute("cx",(fe/2).toString()),he.setAttribute("cy",(fe/2).toString()),he.setAttribute("r",fe.toString()),ce&&Pe.setAttributes(he,ce),he},Pe.createEllipse=function(fe,ce,he){var ue=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ue.setAttribute("cx",(fe/2).toString()),ue.setAttribute("cy",(ce/2).toString()),ue.setAttribute("rx",(fe/2).toString()),ue.setAttribute("ry",(ce/2).toString()),he&&Pe.setAttributes(ue,he),ue},Pe.createGroup=function(fe){var ce=document.createElementNS("http://www.w3.org/2000/svg","g");return fe&&Pe.setAttributes(ce,fe),ce},Pe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Pe.createMarker=function(fe,ce,he,ue,le,Me,Ge){var St=document.createElementNS("http://www.w3.org/2000/svg","marker");return Pe.setAttributes(St,[["id",fe],["orient",ce],["markerWidth",he.toString()],["markerHeight",ue.toString()],["refX",le.toString()],["refY",Me.toString()]]),St.appendChild(Ge),St},Pe.createText=function(fe){var ce=document.createElementNS("http://www.w3.org/2000/svg","text");return ce.setAttribute("x","0"),ce.setAttribute("y","0"),fe&&Pe.setAttributes(ce,fe),ce},Pe.createTSpan=function(fe,ce){var he=document.createElementNS("http://www.w3.org/2000/svg","tspan");return he.textContent=fe,ce&&Pe.setAttributes(he,ce),he},Pe.createImage=function(fe){var ce=document.createElementNS("http://www.w3.org/2000/svg","image");return fe&&Pe.setAttributes(ce,fe),ce},Pe.createPoint=function(fe,ce){var he=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return he.x=fe,he.y=ce,he},Pe.createPath=function(fe,ce){var he=document.createElementNS("http://www.w3.org/2000/svg","path");return he.setAttribute("d",fe),ce&&Pe.setAttributes(he,ce),he},Pe}(),Ee=function(){function Pe(){}return Pe.addKey=function(fe){Pe.key=fe},Object.defineProperty(Pe,"isLicensed",{get:function(){return!!Pe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Pe.key)},enumerable:!1,configurable:!0}),Pe}(),xe=function(){function Pe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Pe.prototype.rasterize=function(fe,ce,he){var ue=this;return new Promise(function(le){var Me=he!==void 0?he:document.createElement("canvas");fe===null&&(ue.markersOnly=!0,ue.naturalSize=!1);var Ge=document.createElementNS("http://www.w3.org/2000/svg","svg");Ge.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ge.setAttribute("width",ce.width.baseVal.valueAsString),Ge.setAttribute("height",ce.height.baseVal.valueAsString),Ge.setAttribute("viewBox","0 0 "+ce.viewBox.baseVal.width.toString()+" "+ce.viewBox.baseVal.height.toString()),Ge.innerHTML=ce.innerHTML,ue.naturalSize===!0?(Ge.width.baseVal.value=fe.naturalWidth,Ge.height.baseVal.value=fe.naturalHeight):ue.width!==void 0&&ue.height!==void 0&&(Ge.width.baseVal.value=ue.width,Ge.height.baseVal.value=ue.height),Me.width=Ge.width.baseVal.value,Me.height=Ge.height.baseVal.value;var St=Ge.outerHTML,Ht=Me.getContext("2d");ue.markersOnly!==!0&&Ht.drawImage(fe,0,0,Me.width,Me.height);var Yt=window.URL,Vt=new Image(Me.width,Me.height);Vt.setAttribute("crossOrigin","anonymous");var sn=new Blob([St],{type:"image/svg+xml"}),it=Yt.createObjectURL(sn);Vt.onload=function(){Ht.drawImage(Vt,0,0),Yt.revokeObjectURL(it);var Mt=Me.toDataURL(ue.imageType,ue.imageQuality);le(Mt)},Vt.src=it})},Pe}(),me=function(){},De=function(){function Pe(fe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+fe+"_"}return Object.defineProperty(Pe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.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(Pe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Pe.prototype.addClass=function(fe){return this.styleSheet===void 0&&this.addStyleSheet(),fe.name=""+this.classNamePrefix+fe.localName,this.classes.push(fe),this.styleSheet.sheet.insertRule("."+fe.name+" {"+fe.style+"}",this.styleSheet.sheet.cssRules.length),fe},Pe.prototype.addRule=function(fe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(fe),this.styleSheet.sheet.insertRule(fe.selector+" {"+fe.style+"}",this.styleSheet.sheet.cssRules.length)},Pe.prototype.addStyleSheet=function(){var fe;this.styleSheet=document.createElement("style"),((fe=this.styleSheetRoot)!==null&&fe!==void 0?fe:document.head).appendChild(this.styleSheet),this.addRule(new ot("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ot("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new ot("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Ne("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Ne("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},Pe.prototype.removeStyleSheet=function(){var fe;this.styleSheet&&(((fe=this.styleSheetRoot)!==null&&fe!==void 0?fe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Pe}(),ot=function(Pe,fe){this.selector=Pe,this.style=fe},Ne=function(Pe,fe){this.localName=Pe,this.style=fe},mt=function(){function Pe(fe,ce,he,ue,le){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=fe,this.displayMode=ce,this.markerItems=he,this.uiStyleSettings=ue,this.styles=le,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Pe.prototype.show=function(fe){var ce=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=fe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var he=document.createElement("div");he.className=this.toolbarBlockStyleClass.name,he.style.whiteSpace="nowrap",this.uiContainer.appendChild(he),this.addActionButton(he,'<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(he,'<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(he,'<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(he,'<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(he,'<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(he,'<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(he,'<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(he,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(le){var Me=document.createElement("div");Me.className=""+ce.toolbarButtonStyleClass.name,Me.setAttribute("data-type-name",le.typeName),Me.innerHTML=le.icon,Me.addEventListener("click",function(){ce.markerToolbarButtonClicked(Me,le)}),ce.buttons.push(Me),ce.markerButtons.push(Me)}),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 ue=document.createElement("div");ue.className=this.toolbarBlockStyleClass.name,ue.style.whiteSpace="nowrap",ue.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ue),this.addActionButton(ue,'<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(ue,'<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()},Pe.prototype.addButtonClickListener=function(fe){this.buttonClickListeners.push(fe)},Pe.prototype.removeButtonClickListener=function(fe){this.buttonClickListeners.indexOf(fe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(fe),1)},Pe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Pe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var fe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ce=0;ce<this.markerButtons.length;ce++)ce<fe||ce===fe&&this.markerButtons.length-1===fe?this.markerButtonBlock.appendChild(this.markerButtons[ce]):(ce===fe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ce]))}},Pe.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")},Pe.prototype.resetButtonStyles=function(){var fe=this;this.buttons.forEach(function(ce){ce.className=ce.className.replace(fe.uiStyleSettings.toolbarButtonStyleColorsClassName?fe.uiStyleSettings.toolbarButtonStyleColorsClassName:fe.toolbarButtonStyleColorsClass.name,"").trim(),ce.className=ce.className.replace(fe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?fe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:fe.toolbarActiveButtonStyleColorsClass.name,"").trim(),ce.className+=" "+(fe.uiStyleSettings.toolbarButtonStyleColorsClassName?fe.uiStyleSettings.toolbarButtonStyleColorsClassName:fe.toolbarButtonStyleColorsClass.name)})},Pe.prototype.addActionButton=function(fe,ce,he){var ue=this,le=document.createElement("div");switch(le.className=""+this.toolbarButtonStyleClass.name,le.innerHTML=ce,le.setAttribute("data-action",he),le.addEventListener("click",function(){ue.actionToolbarButtonClicked(le,he)}),he){case"select":le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":le.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":le.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":le.style.fill=this.uiStyleSettings.closeButtonColor}fe.appendChild(le),this.buttons.push(le)},Pe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ne("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 Ne("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ne("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ne("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 Ne("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var fe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ne("toolbar_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.toolbarButtonStyleColorsClass=this.styles.addClass(new Ne("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ne("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ot("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new ot("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},Pe.prototype.markerToolbarButtonClicked=function(fe,ce){this.setActiveButton(fe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(he){return he("marker",ce)}),this.markerButtonOverflowBlock.style.display="none"},Pe.prototype.actionToolbarButtonClicked=function(fe,ce){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(he){return he("action",ce)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Pe.prototype.setActiveButton=function(fe){this.resetButtonStyles(),fe.className=fe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),fe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Pe.prototype.setActiveMarkerButton=function(fe){var ce=this.markerButtons.find(function(he){return he.getAttribute("data-type-name")===fe});ce&&this.setActiveButton(ce)},Pe.prototype.setCurrentMarker=function(fe){var ce=this;this.currentMarker=fe,this.buttons.filter(function(he){return/delete|notes/.test(he.getAttribute("data-action"))}).forEach(function(he){ce.currentMarker===void 0?(he.style.fillOpacity="0.4",he.style.pointerEvents="none"):(he.style.fillOpacity="1",he.style.pointerEvents="all")})},Pe}(),dt=function(){function Pe(fe,ce,he,ue){this.panels=[],this.panelButtons=[],this.markerjsContainer=fe,this.displayMode=ce,this.uiStyleSettings=he,this.styles=ue,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Pe.prototype.addStyles=function(){var fe;this.toolboxStyleClass=this.styles.addClass(new Ne("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 Ne("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var ce=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ne("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ne("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ne("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 Ne("toolbox-panel-row_colors",`
|
|
|
background-color: `+((fe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&fe!==void 0?fe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ne("toolbox_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.toolboxButtonStyleColorsClass=this.styles.addClass(new Ne("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ne("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new ot("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ot("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},Pe.prototype.show=function(fe){var ce;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=fe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Pe.prototype.setPanelButtons=function(fe){var ce,he,ue=this;this.panels=fe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((he=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&he!==void 0?he:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(le){var Me;le.uiStyleSettings=ue.uiStyleSettings;var Ge=document.createElement("div");Ge.className=ue.toolboxButtonStyleClass.name+" "+((Me=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Me!==void 0?Me:ue.toolboxButtonStyleColorsClass.name),Ge.innerHTML=le.icon,Ge.title=le.title,Ge.addEventListener("click",function(){ue.panelButtonClick(le)}),ue.panelButtons.push(Ge),ue.buttonRow.appendChild(Ge)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Pe.prototype.panelButtonClick=function(fe){var ce=this,he=-1;if(fe!==this.activePanel){he=this.panels.indexOf(fe),this.panelRow.innerHTML="";var ue=fe.getUi();ue.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ue),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=fe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ce.displayMode==="inline"?ce.panelRow.style.display="none":ce.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(le,Me){var Ge,St;le.className=ce.toolboxButtonStyleClass.name+" "+(Me===he?""+((Ge=ce.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ge!==void 0?Ge:ce.toolboxActiveButtonStyleColorsClass.name):""+((St=ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&St!==void 0?St:ce.toolboxButtonStyleColorsClass.name))})},Pe}(),pt=function(Pe,fe){this.title=Pe,this.icon=fe},Je=function(Pe){function fe(ce,he,ue,le){var Me=Pe.call(this,ce,le||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return Me.colors=[],Me.addTransparent=!1,Me.colorBoxes=[],Me.colors=he,Me.currentColor=ue,Me.setCurrentColor=Me.setCurrentColor.bind(Me),Me.getColorBox=Me.getColorBox.bind(Me),Me}return Le(fe,Pe),fe.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.overflow="hidden",he.style.whiteSpace="nowrap",this.colors.forEach(function(ue){var le=ce.getColorBox(ue);he.appendChild(le),ce.colorBoxes.push(le)}),he},fe.prototype.getColorBox=function(ce){var he=this,ue=this.uiStyleSettings.toolbarHeight/4,le=this.uiStyleSettings.toolbarHeight-ue,Me=document.createElement("div");Me.style.display="inline-block",Me.style.boxSizing="content-box",Me.style.width=le-2+"px",Me.style.height=le-2+"px",Me.style.padding="1px",Me.style.marginRight="2px",Me.style.marginBottom="2px",Me.style.borderWidth="2px",Me.style.borderStyle="solid",Me.style.borderRadius=(le+2)/2+"px",Me.style.borderColor=ce===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Me.addEventListener("click",function(){he.setCurrentColor(ce,Me)});var Ge=document.createElement("div");return Ge.style.display="inline-block",Ge.style.width=le-2+"px",Ge.style.height=le-2+"px",Ge.style.backgroundColor=ce,Ge.style.borderRadius=le/2+"px",ce==="transparent"&&(Ge.style.fill=this.uiStyleSettings.toolboxAccentColor,Ge.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>`),Me.appendChild(Ge),Me},fe.prototype.setCurrentColor=function(ce,he){var ue=this;this.currentColor=ce,this.colorBoxes.forEach(function(le){le.style.borderColor=le===he?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ce)},fe}(pt),Be=function(){function Pe(fe,ce,he){this._state="new",this._isSelected=!1,this._container=fe,this._overlayContainer=ce,this.globalSettings=he,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Pe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Pe.prototype.ownsTarget=function(fe){return!1},Object.defineProperty(Pe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Pe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Pe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Pe.prototype.pointerDown=function(fe,ce){},Pe.prototype.dblClick=function(fe,ce){},Pe.prototype.manipulate=function(fe){},Pe.prototype.pointerUp=function(fe){this.stateChanged()},Pe.prototype.dispose=function(){},Pe.prototype.addMarkerVisualToContainer=function(fe){this.container.childNodes.length>0?this.container.insertBefore(fe,this.container.childNodes[0]):this.container.appendChild(fe)},Pe.prototype.getState=function(){return{typeName:Pe.typeName,state:this.state,notes:this.notes}},Pe.prototype.restoreState=function(fe){this._state=fe.state,this.notes=fe.notes},Pe.prototype.scale=function(fe,ce){},Pe.prototype.colorChanged=function(fe){this.onColorChanged&&this.onColorChanged(fe),this.stateChanged()},Pe.prototype.fillColorChanged=function(fe){this.onFillColorChanged&&this.onFillColorChanged(fe),this.stateChanged()},Pe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var fe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),fe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(fe)&&this.onStateChanged(this)}},Pe.typeName="MarkerBase",Pe}(),gt=function(){function Pe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Pe.prototype.findGripByVisual=function(fe){return this.topLeft.ownsTarget(fe)?this.topLeft:this.topCenter.ownsTarget(fe)?this.topCenter:this.topRight.ownsTarget(fe)?this.topRight:this.centerLeft.ownsTarget(fe)?this.centerLeft:this.centerRight.ownsTarget(fe)?this.centerRight:this.bottomLeft.ownsTarget(fe)?this.bottomLeft:this.bottomCenter.ownsTarget(fe)?this.bottomCenter:this.bottomRight.ownsTarget(fe)?this.bottomRight:void 0},Pe}(),nn=function(){function Pe(){this.GRIP_SIZE=10,this.visual=ke.createGroup(),this.visual.appendChild(ke.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ke.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Pe.prototype.ownsTarget=function(fe){return fe===this.visual||fe===this.visual.childNodes[0]||fe===this.visual.childNodes[1]},Pe}(),at=function(){function Pe(){}return Pe.toITransformMatrix=function(fe){return{a:fe.a,b:fe.b,c:fe.c,d:fe.d,e:fe.e,f:fe.f}},Pe.toSVGMatrix=function(fe,ce){return fe.a=ce.a,fe.b=ce.b,fe.c=ce.c,fe.d=ce.d,fe.e=ce.e,fe.f=ce.f,fe},Pe}(),vt=function(Pe){function fe(ce,he,ue){var le=Pe.call(this,ce,he,ue)||this;return le.left=0,le.top=0,le.width=0,le.height=0,le.defaultSize={x:50,y:20},le.offsetX=0,le.offsetY=0,le.rotationAngle=0,le.CB_DISTANCE=10,le._suppressMarkerCreateEvent=!1,le.container.transform.baseVal.appendItem(ke.createTransform()),le.setupControlBox(),le}return Le(fe,Pe),Object.defineProperty(fe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"visual",{get:function(){return this._visual},set:function(ce){this._visual=ce;var he=ke.createTransform();this._visual.transform.baseVal.appendItem(he)},enumerable:!1,configurable:!0}),fe.prototype.ownsTarget=function(ce){return!!Pe.prototype.ownsTarget.call(this,ce)||!!(this.controlGrips.findGripByVisual(ce)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ce))},fe.prototype.pointerDown=function(ce,he){Pe.prototype.pointerDown.call(this,ce,he),this.state==="new"&&(this.left=ce.x,this.top=ce.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ue=this.unrotatePoint(ce);if(this.manipulationStartX=ue.x,this.manipulationStartY=ue.y,this.offsetX=ue.x-this.left,this.offsetY=ue.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(he),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(he)){this.activeGrip=this.rotatorGrip;var le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=le.x-this.width/2,this.top=le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Me=this.container.transform.baseVal.getItem(0);Me.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Me,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},fe.prototype.pointerUp=function(ce){var he=this.state;Pe.prototype.pointerUp.call(this,ce),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ce),this._state="select",he==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},fe.prototype.moveVisual=function(ce){this.visual.style.transform="translate("+ce.x+"px, "+ce.y+"px)"},fe.prototype.manipulate=function(ce){var he=this.unrotatePoint(ce);this.state==="creating"?this.resize(ce):this.state==="move"?(this.left=this.manipulationStartLeft+(he.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(he.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(he):this.state==="rotate"&&this.rotate(ce)},fe.prototype.resize=function(ce){var he=this.manipulationStartLeft,ue=this.manipulationStartWidth,le=this.manipulationStartTop,Me=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:he=this.manipulationStartLeft+ce.x-this.manipulationStartX,ue=this.manipulationStartWidth+this.manipulationStartLeft-he;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ue=this.manipulationStartWidth+ce.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:le=this.manipulationStartTop+ce.y-this.manipulationStartY,Me=this.manipulationStartHeight+this.manipulationStartTop-le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Me=this.manipulationStartHeight+ce.y-this.manipulationStartY}ue>=0?(this.left=he,this.width=ue):(this.left=he+ue,this.width=-ue),Me>=0?(this.top=le,this.height=Me):(this.top=le+Me,this.height=-Me),this.setSize()},fe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},fe.prototype.rotate=function(ce){if(Math.abs(ce.x-this.centerX)>.1){var he=Math.sign(ce.x-this.centerX);this.rotationAngle=180*Math.atan((ce.y-this.centerY)/(ce.x-this.centerX))/Math.PI+90*he,this.applyRotation()}},fe.prototype.applyRotation=function(){var ce=this.container.transform.baseVal.getItem(0);ce.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ce,0)},fe.prototype.rotatePoint=function(ce){if(this.rotationAngle===0)return ce;var he=this.container.getCTM(),ue=ke.createPoint(ce.x,ce.y);return{x:(ue=ue.matrixTransform(he)).x,y:ue.y}},fe.prototype.unrotatePoint=function(ce){if(this.rotationAngle===0)return ce;var he=this.container.getCTM();he=he.inverse();var ue=ke.createPoint(ce.x,ce.y);return{x:(ue=ue.matrixTransform(he)).x,y:ue.y}},fe.prototype.select=function(){Pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},fe.prototype.deselect=function(){Pe.prototype.deselect.call(this),this.controlBox.style.display="none"},fe.prototype.setupControlBox=function(){this.controlBox=ke.createGroup();var ce=ke.createTransform();ce.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ce),this.container.appendChild(this.controlBox),this.controlRect=ke.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=ke.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 gt,this.addControlGrips(),this.controlBox.style.display="none"},fe.prototype.adjustControlBox=function(){var ce=this.controlBox.transform.baseVal.getItem(0);ce.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ce,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()},fe.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()},fe.prototype.createGrip=function(){var ce=new nn;return ce.visual.transform.baseVal.appendItem(ke.createTransform()),this.controlBox.appendChild(ce.visual),ce},fe.prototype.positionGrips=function(){var ce=this.controlGrips.topLeft.GRIP_SIZE,he=-ce/2,ue=he,le=(this.width+this.CB_DISTANCE)/2-ce/2,Me=(this.height+this.CB_DISTANCE)/2-ce/2,Ge=this.height+this.CB_DISTANCE-ce/2,St=this.width+this.CB_DISTANCE-ce/2;this.positionGrip(this.controlGrips.topLeft.visual,he,ue),this.positionGrip(this.controlGrips.topCenter.visual,le,ue),this.positionGrip(this.controlGrips.topRight.visual,St,ue),this.positionGrip(this.controlGrips.centerLeft.visual,he,Me),this.positionGrip(this.controlGrips.centerRight.visual,St,Me),this.positionGrip(this.controlGrips.bottomLeft.visual,he,Ge),this.positionGrip(this.controlGrips.bottomCenter.visual,le,Ge),this.positionGrip(this.controlGrips.bottomRight.visual,St,Ge),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,le,ue-3*this.CB_DISTANCE)},fe.prototype.positionGrip=function(ce,he,ue){var le=ce.transform.baseVal.getItem(0);le.setTranslate(he,ue),ce.transform.baseVal.replaceItem(le,0)},fe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},fe.prototype.showControlBox=function(){this.controlBox.style.display=""},fe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:at.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:at.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Pe.prototype.getState.call(this))},fe.prototype.restoreState=function(ce){Pe.prototype.restoreState.call(this,ce);var he=ce;this.left=he.left,this.top=he.top,this.width=he.width,this.height=he.height,this.rotationAngle=he.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(at.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,he.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(at.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,he.containerTransformMatrix))},fe.prototype.scale=function(ce,he){Pe.prototype.scale.call(this,ce,he);var ue=this.rotatePoint({x:this.left,y:this.top}),le=this.unrotatePoint({x:ue.x*ce,y:ue.y*he});this.left=le.x,this.top=le.y,this.width=this.width*ce,this.height=this.height*he,this.adjustControlBox()},fe}(Be),Ce=function(Pe){function fe(ce,he,ue){var le=Pe.call(this,ce,he,ue)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){return!(!Pe.prototype.ownsTarget.call(this,ce)&&ce!==this.visual)},fe.prototype.createVisual=function(){this.visual=ke.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)},fe.prototype.pointerDown=function(ce,he){Pe.prototype.pointerDown.call(this,ce,he),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},fe.prototype.manipulate=function(ce){Pe.prototype.manipulate.call(this,ce)},fe.prototype.resize=function(ce){Pe.prototype.resize.call(this,ce),this.setSize()},fe.prototype.setSize=function(){Pe.prototype.setSize.call(this),ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},fe.prototype.pointerUp=function(ce){Pe.prototype.pointerUp.call(this,ce),this.setSize()},fe.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.visual&&ke.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},fe.prototype.setFillColor=function(ce){this.fillColor=ce,this.visual&&ke.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},fe.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.visual&&ke.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},fe.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.visual&&ke.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},fe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Pe.prototype.getState.call(this))},fe.prototype.restoreState=function(ce){var he=ce;this.fillColor=he.fillColor,this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.opacity=he.opacity,this.createVisual(),Pe.prototype.restoreState.call(this,ce),this.setSize()},fe.prototype.scale=function(ce,he){Pe.prototype.scale.call(this,ce,he),this.setSize()},fe.title="Rectangle marker",fe}(vt),Ae=function(Pe){function fe(ce,he,ue,le){var Me=Pe.call(this,ce,le||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Me.widths=[],Me.widthBoxes=[],Me.widths=he,Me.currentWidth=ue,Me.setCurrentWidth=Me.setCurrentWidth.bind(Me),Me}return Le(fe,Pe),fe.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",this.widths.forEach(function(ue){var le=document.createElement("div");le.style.display="flex",le.style.flexGrow="2",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=ue===ce.currentWidth?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentWidth(ue,le)}),he.appendChild(le);var Me=document.createElement("div");Me.innerText=ue.toString(),Me.style.marginRight="5px",le.appendChild(Me);var Ge=document.createElement("div");Ge.style.minHeight="20px",Ge.style.flexGrow="2",Ge.style.display="flex",Ge.style.alignItems="center";var St=document.createElement("hr");St.style.minWidth="20px",St.style.border="0px",St.style.borderTop=ue+"px solid "+ce.uiStyleSettings.toolboxColor,St.style.flexGrow="2",Ge.appendChild(St),le.appendChild(Ge),ce.widthBoxes.push(le)}),he},fe.prototype.setCurrentWidth=function(ce,he){var ue=this;this.currentWidth=ce,this.widthBoxes.forEach(function(le){le.style.borderColor=le===he?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},fe}(pt),Ye=function(Pe){function fe(ce,he,ue,le){var Me=Pe.call(this,ce,le||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return Me.styles=[],Me.styleBoxes=[],Me.styles=he,Me.currentStyle=ue,Me.setCurrentStyle=Me.setCurrentStyle.bind(Me),Me}return Le(fe,Pe),fe.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",this.styles.forEach(function(ue){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ce.styles.length-5+"%",le.style.borderColor=ue===ce.currentStyle?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentStyle(ue,le)}),he.appendChild(le);var Me=document.createElement("div");Me.style.minHeight="20px",Me.style.flexGrow="2",Me.style.overflow="hidden";var Ge=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ce.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ue!==""?'stroke-dasharray="'+ue+'"':"")+` />
|
|
|
</svg>`;Me.innerHTML=Ge,le.appendChild(Me),ce.styleBoxes.push(le)}),he},fe.prototype.setCurrentStyle=function(ce,he){var ue=this;this.currentStyle=ce,this.styleBoxes.forEach(function(le){le.style.borderColor=le===he?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},fe}(pt),Ve=function(Pe){function fe(ce,he,ue){var le=Pe.call(this,ce,he,ue)||this;return le.strokeColor=ue.defaultColor,le.strokeWidth=ue.defaultStrokeWidth,le.strokeDasharray=ue.defaultStrokeDasharray,le.strokePanel=new Je("Line color",ue.defaultColorSet,ue.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Ae("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ye("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return Le(fe,Pe),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Pe.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.typeName="FrameMarker",fe.title="Frame marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',fe}(Ce),At=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"},xt=function(Pe){function fe(ce,he,ue){var le=Pe.call(this,ce,he,ue)||this;return le.x1=0,le.y1=0,le.x2=0,le.y2=0,le.defaultLength=50,le.manipulationStartX=0,le.manipulationStartY=0,le.manipulationStartX1=0,le.manipulationStartY1=0,le.manipulationStartX2=0,le.manipulationStartY2=0,le.setupControlBox(),le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){return!!Pe.prototype.ownsTarget.call(this,ce)||!(!this.grip1.ownsTarget(ce)&&!this.grip2.ownsTarget(ce))},fe.prototype.pointerDown=function(ce,he){Pe.prototype.pointerDown.call(this,ce,he),this.manipulationStartX=ce.x,this.manipulationStartY=ce.y,this.state==="new"&&(this.x1=ce.x,this.y1=ce.y,this.x2=ce.x,this.y2=ce.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(he)?this.activeGrip=this.grip1:this.grip2.ownsTarget(he)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},fe.prototype.pointerUp=function(ce){var he=this.state;Pe.prototype.pointerUp.call(this,ce),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(ce),this._state="select",he==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},fe.prototype.adjustVisual=function(){},fe.prototype.manipulate=function(ce){this.state==="creating"?this.resize(ce):this.state==="move"?(this.x1=this.manipulationStartX1+ce.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ce.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ce.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ce.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ce)},fe.prototype.resize=function(ce){switch(this.activeGrip){case this.grip1:this.x1=ce.x,this.y1=ce.y;break;case this.grip2:case void 0:this.x2=ce.x,this.y2=ce.y}this.adjustVisual(),this.adjustControlBox()},fe.prototype.select=function(){Pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},fe.prototype.deselect=function(){Pe.prototype.deselect.call(this),this.controlBox.style.display="none"},fe.prototype.setupControlBox=function(){this.controlBox=ke.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},fe.prototype.adjustControlBox=function(){this.positionGrips()},fe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},fe.prototype.createGrip=function(){var ce=new nn;return ce.visual.transform.baseVal.appendItem(ke.createTransform()),this.controlBox.appendChild(ce.visual),ce},fe.prototype.positionGrips=function(){var ce=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ce/2,this.y1-ce/2),this.positionGrip(this.grip2.visual,this.x2-ce/2,this.y2-ce/2)},fe.prototype.positionGrip=function(ce,he,ue){var le=ce.transform.baseVal.getItem(0);le.setTranslate(he,ue),ce.transform.baseVal.replaceItem(le,0)},fe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Pe.prototype.getState.call(this))},fe.prototype.restoreState=function(ce){Pe.prototype.restoreState.call(this,ce);var he=ce;this.x1=he.x1,this.y1=he.y1,this.x2=he.x2,this.y2=he.y2},fe.prototype.scale=function(ce,he){Pe.prototype.scale.call(this,ce,he),this.x1=this.x1*ce,this.y1=this.y1*he,this.x2=this.x2*ce,this.y2=this.y2*he,this.adjustVisual(),this.adjustControlBox()},fe}(Be),Lt=function(Pe){function fe(ce,he,ue){var le=Pe.call(this,ce,he,ue)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.strokeColor=ue.defaultColor,le.strokeWidth=ue.defaultStrokeWidth,le.strokeDasharray=ue.defaultStrokeDasharray,le.strokePanel=new Je("Line color",ue.defaultColorSet,ue.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Ae("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ye("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){return!(!Pe.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorLine&&ce!==this.visibleLine)},fe.prototype.createVisual=function(){this.visual=ke.createGroup(),this.selectorLine=ke.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ke.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)},fe.prototype.pointerDown=function(ce,he){Pe.prototype.pointerDown.call(this,ce,he),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},fe.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()),ke.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ke.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ke.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},fe.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},fe.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},fe.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Pe.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){Pe.prototype.restoreState.call(this,ce);var he=ce;this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.createVisual(),this.adjustVisual()},fe.typeName="LineMarker",fe.title="Line marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',fe}(xt),nt=function(Pe){function fe(ce,he,ue,le){var Me=Pe.call(this,ce,le||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return Me.fonts=[],Me.fontBoxes=[],Me.fonts=he,Me.currentFont=ue,Me.setCurrentFont=Me.setCurrentFont.bind(Me),Me}return Le(fe,Pe),fe.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.overflow="hidden",he.style.flexGrow="2",this.fonts.forEach(function(ue){var le=document.createElement("div");le.style.display="inline-block",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ce.fonts.length-5+"%",le.style.borderColor=ue===ce.currentFont?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentFont(ue,le)}),he.appendChild(le);var Me=document.createElement("div");Me.style.display="flex",Me.style.minHeight="20px",Me.style.flexGrow="2",Me.style.fontFamily=ue,Me.style.overflow="hidden";var Ge=document.createElement("div");Ge.style.whiteSpace="nowrap",Ge.style.overflow="hidden",Ge.style.textOverflow="ellipsis",Ge.innerHTML="The quick brown fox jumps over the lazy dog",Me.appendChild(Ge),le.appendChild(Me),ce.fontBoxes.push(le)}),he},fe.prototype.setCurrentFont=function(ce,he){var ue=this;this.currentFont=ce,this.fontBoxes.forEach(function(le){le.style.borderColor=le===he?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},fe}(pt),qt=function(Pe){function fe(ce,he,ue){var le=Pe.call(this,ce,he,ue)||this;return le.color="transparent",le.padding=5,le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",le.text=le.DEFAULT_TEXT,le.isMoved=!1,le.color=ue.defaultColor,le.fontFamily=ue.defaultFontFamily,le.defaultSize={x:100,y:30},le.setColor=le.setColor.bind(le),le.setFont=le.setFont.bind(le),le.renderText=le.renderText.bind(le),le.sizeText=le.sizeText.bind(le),le.textEditDivClicked=le.textEditDivClicked.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.setSize=le.setSize.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.colorPanel=new Je("Color",ue.defaultColorSet,ue.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.fontFamilyPanel=new nt("Font",ue.defaultFontFamilies,ue.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){if(Pe.prototype.ownsTarget.call(this,ce)||ce===this.visual||ce===this.textElement||ce===this.bgRectangle)return!0;var he=!1;return this.textElement.childNodes.forEach(function(ue){ue===ce&&(he=!0)}),he},fe.prototype.createVisual=function(){this.visual=ke.createGroup(),this.bgRectangle=ke.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ke.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ke.createTransform()),this.textElement.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},fe.prototype.pointerDown=function(ce,he){Pe.prototype.pointerDown.call(this,ce,he),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},fe.prototype.renderText=function(){var ce=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(he){ce.textElement.appendChild(ke.createTSpan(he.trim()===""?" ":he.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},fe.prototype.getTextScale=function(){var ce=this.textElement.getBBox(),he=1;if(ce.width>0&&ce.height>0){var ue=(1*this.width-this.width*this.padding*2/100)/ce.width,le=(1*this.height-this.height*this.padding*2/100)/ce.height;he=Math.min(ue,le)}return he},fe.prototype.getTextPosition=function(ce){var he=this.textElement.getBBox(),ue=0,le=0;return he.width>0&&he.height>0&&(ue=(this.width-he.width*ce)/2,le=this.height/2-he.height*ce/2),{x:ue,y:le}},fe.prototype.sizeText=function(){var ce=this.textElement.getBBox(),he=this.getTextScale(),ue=this.getTextPosition(he);ue.y-=ce.y*he,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ue.x+"px, "+ue.y+"px) scale("+he+", "+he+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ue.x,ue.y),this.textElement.transform.baseVal.getItem(1).setScale(he,he))},fe.prototype.manipulate=function(ce){Pe.prototype.manipulate.call(this,ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ce.x-this.pointerDownPoint.x)>5||Math.abs(ce.y-this.pointerDownPoint.y)>5)},fe.prototype.resize=function(ce){Pe.prototype.resize.call(this,ce),this.isMoved=!0,this.setSize(),this.sizeText()},fe.prototype.setSize=function(){Pe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},fe.prototype.pointerUp=function(ce){var he=this.state;he==="creating"&&(this._suppressMarkerCreateEvent=!0),Pe.prototype.pointerUp.call(this,ce),this.setSize(),(he==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},fe.prototype.showTextEditor=function(){var ce=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(he){he.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var he=Number.parseFloat(ce.textEditor.style.fontSize);ce.textEditor.clientWidth>=Number.parseInt(ce.textEditor.style.maxWidth)&&he>.9;)he-=.1,ce.textEditor.style.fontSize=Math.max(he,.9)+"em"}),this.textEditor.addEventListener("keyup",function(he){he.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(he){if(he.clipboardData){var ue=he.clipboardData.getData("text"),le=window.getSelection();if(!le.rangeCount)return!1;le.deleteFromDocument(),le.getRangeAt(0).insertNode(document.createTextNode(ue)),he.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ce.textEditDivClicked(ce.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},fe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ce=this.getTextScale(),he=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ue=this.textElement.getBBox(),le={x:ue.width*ce,y:ue.height*ce};he.x-=le.x/2,he.y-=le.y/2,this.textEditor.style.top=he.y+"px",this.textEditor.style.left=he.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-he.x+"px",this.textEditor.style.fontSize=Math.max(16*ce,12)+"px",this.textElement.style.display="none"}},fe.prototype.textEditDivClicked=function(ce){this.text=ce.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},fe.prototype.select=function(){Pe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},fe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Pe.prototype.deselect.call(this)},fe.prototype.dblClick=function(ce,he){Pe.prototype.dblClick.call(this,ce,he),this.showTextEditor()},fe.prototype.setColor=function(ce){this.textElement&&ke.setAttributes(this.textElement,[["fill",ce]]),this.color=ce,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ce)},fe.prototype.setFont=function(ce){this.textElement&&ke.setAttributes(this.textElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},fe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},fe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Pe.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){var he=ce;this.color=he.color,this.fontFamily=he.fontFamily,this.padding=he.padding,this.text=he.text,this.createVisual(),Pe.prototype.restoreState.call(this,ce),this.setSize()},fe.prototype.scale=function(ce,he){Pe.prototype.scale.call(this,ce,he),this.setSize(),this.sizeText(),this.positionTextEditor()},fe.typeName="TextMarker",fe.title="Text marker",fe.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>',fe}(vt),zt=function(Pe){function fe(ce,he,ue){var le=Pe.call(this,ce,he,ue)||this;return le.color="transparent",le.lineWidth=3,le.drawing=!1,le.pixelRatio=1,le.color=ue.defaultColor,le.lineWidth=ue.defaultStrokeWidth,le.pixelRatio=ue.freehandPixelRatio,le.setColor=le.setColor.bind(le),le.addCanvas=le.addCanvas.bind(le),le.finishCreation=le.finishCreation.bind(le),le.setLineWidth=le.setLineWidth.bind(le),le.colorPanel=new Je("Color",ue.defaultColorSet,ue.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.lineWidthPanel=new Ae("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),le.lineWidthPanel.onWidthChanged=le.setLineWidth,le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){return!(!Pe.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.drawingImage)},fe.prototype.createVisual=function(){this.visual=ke.createGroup(),this.drawingImage=ke.createImage(),this.visual.appendChild(this.drawingImage);var ce=ke.createTransform();this.visual.transform.baseVal.appendItem(ce),this.addMarkerVisualToContainer(this.visual)},fe.prototype.pointerDown=function(ce,he){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(ce.x,ce.y),this.drawing=!0):Pe.prototype.pointerDown.call(this,ce,he)},fe.prototype.manipulate=function(ce){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ce.x,ce.y),this.canvasContext.stroke()):Pe.prototype.manipulate.call(this,ce)},fe.prototype.resize=function(ce){Pe.prototype.resize.call(this,ce),ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},fe.prototype.pointerUp=function(ce){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Pe.prototype.pointerUp.call(this,ce)},fe.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)},fe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Pe.prototype.select.call(this)},fe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Pe.prototype.deselect.call(this)},fe.prototype.finishCreation=function(){for(var ce=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),he=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ue=he[0],le=he[1],Me=he[2],Ge=he[3],St=!1,Ht=0;Ht<this.canvasElement.height;Ht++)for(var Yt=0;Yt<this.canvasElement.width;Yt++)ce.data[Ht*this.canvasElement.width*4+4*Yt+3]>0&&(St=!0,Ht<le&&(le=Ht),Yt<ue&&(ue=Yt),Ht>Ge&&(Ge=Ht),Yt>Me&&(Me=Yt));if(St){this.left=ue/this.pixelRatio,this.top=le/this.pixelRatio,this.width=(Me-ue)/this.pixelRatio,this.height=(Ge-le)/this.pixelRatio;var Vt=document.createElement("canvas");Vt.width=Me-ue,Vt.height=Ge-le,Vt.getContext("2d").putImageData(this.canvasContext.getImageData(ue,le,Me-ue,Ge-le),0,0),this.drawingImgUrl=Vt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},fe.prototype.setDrawingImage=function(){ke.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},fe.prototype.setColor=function(ce){this.color=ce,this.colorChanged(ce)},fe.prototype.setLineWidth=function(ce){this.lineWidth=ce},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({drawingImgUrl:this.drawingImgUrl},Pe.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){this.createVisual(),Pe.prototype.restoreState.call(this,ce),this.drawingImgUrl=ce.drawingImgUrl,this.setDrawingImage()},fe.prototype.scale=function(ce,he){Pe.prototype.scale.call(this,ce,he),this.setDrawingImage()},fe.typeName="FreehandMarker",fe.title="Freehand marker",fe.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>',fe}(vt),bn=function(Pe){function fe(ce,he,ue){var le=Pe.call(this,ce,ue||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return le.typeBoxes=[],le.currentType=he,le.setCurrentType=le.setCurrentType.bind(le),le}return Le(fe,Pe),fe.prototype.getUi=function(){var ce=this,he=document.createElement("div");he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2";for(var ue=function(Ge){var St="both";switch(Ge){case 0:St="both";break;case 1:St="start";break;case 2:St="end";break;case 3:St="none"}var Ht=document.createElement("div");if(Ht.style.display="flex",Ht.style.flexGrow="2",Ht.style.alignItems="center",Ht.style.justifyContent="space-between",Ht.style.padding="5px",Ht.style.borderWidth="2px",Ht.style.borderStyle="solid",Ht.style.borderColor=St===le.currentType?le.uiStyleSettings.toolboxAccentColor:"transparent",Ht.addEventListener("click",function(){ce.setCurrentType(St,Ht)}),he.appendChild(Ht),St==="both"||St==="start"){var Yt=document.createElement("div");Yt.style.display="flex",Yt.style.alignItems="center",Yt.style.minHeight="20px",Yt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,5 10,0 10,10" fill="`+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Yt.style.marginLeft="5px",Ht.appendChild(Yt)}var Vt=document.createElement("div");Vt.style.display="flex",Vt.style.alignItems="center",Vt.style.minHeight="20px",Vt.style.flexGrow="2";var sn=document.createElement("hr");if(sn.style.minWidth="20px",sn.style.border="0px",sn.style.borderTop="3px solid "+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee"),sn.style.flexGrow="2",Vt.appendChild(sn),Ht.appendChild(Vt),St==="both"||St==="end"){var it=document.createElement("div");it.style.display="flex",it.style.alignItems="center",it.style.minHeight="20px",it.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,0 10,5 0,10" fill="`+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,it.style.marginRight="5px",Ht.appendChild(it)}le.typeBoxes.push(Ht)},le=this,Me=0;Me<4;Me++)ue(Me);return he},fe.prototype.setCurrentType=function(ce,he){var ue=this;this.currentType=ce,this.typeBoxes.forEach(function(le){le.style.borderColor=le===he?ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},fe}(pt),dn=function(Pe){function fe(ce,he,ue){var le=Pe.call(this,ce,he,ue)||this;return le.arrowType="end",le.arrowBaseHeight=10,le.arrowBaseWidth=10,le.getArrowPoints=le.getArrowPoints.bind(le),le.setArrowType=le.setArrowType.bind(le),le.arrowTypePanel=new bn("Arrow type","end"),le.arrowTypePanel.onArrowTypeChanged=le.setArrowType,le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){return!(!Pe.prototype.ownsTarget.call(this,ce)&&ce!==this.arrow1&&ce!==this.arrow2)},fe.prototype.getArrowPoints=function(ce,he){var ue=this.arrowBaseWidth+2*this.strokeWidth,le=this.arrowBaseHeight+2*this.strokeWidth;return ce-ue/2+","+(he+le/2)+" "+ce+","+(he-le/2)+" "+(ce+ue/2)+","+(he+le/2)},fe.prototype.createTips=function(){this.arrow1=ke.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ke.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.arrow2)},fe.prototype.pointerDown=function(ce,he){Pe.prototype.pointerDown.call(this,ce,he),this.state==="creating"&&this.createTips()},fe.prototype.adjustVisual=function(){if(Pe.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",ke.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ke.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ce=0;Math.abs(this.x1-this.x2)>.1&&(ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var he=this.arrow1.transform.baseVal.getItem(0);he.setRotate(ce,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(he,0);var ue=this.arrow2.transform.baseVal.getItem(0);ue.setRotate(ce+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ue,0)}},fe.prototype.setArrowType=function(ce){this.arrowType=ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({arrowType:this.arrowType},Pe.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){Pe.prototype.restoreState.call(this,ce);var he=ce;this.arrowType=he.arrowType,this.createTips(),this.adjustVisual()},fe.typeName="ArrowMarker",fe.title="Arrow marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',fe}(Lt),Wn=function(Pe){function fe(ce,he,ue){var le=Pe.call(this,ce,he,ue)||this;return le.fillColor=ue.defaultFillColor,le.strokeWidth=0,le.fillPanel=new Je("Color",ue.defaultColorSet,ue.defaultFillColor),le.fillPanel.onColorChanged=le.setFillColor,le}return Le(fe,Pe),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Pe.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.typeName="CoverMarker",fe.title="Cover marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',fe}(Ce),rr=function(Pe){function fe(ce,he,ue,le){var Me=Pe.call(this,ce,le||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return Me.opacities=[],Me.opacityBoxes=[],Me.opacities=he,Me.currentOpacity=ue,Me.setCurrentOpacity=Me.setCurrentOpacity.bind(Me),Me}return Le(fe,Pe),fe.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",he.style.justifyContent="space-between",this.opacities.forEach(function(ue){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="center",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=ue===ce.currentOpacity?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentOpacity(ue,le)}),he.appendChild(le);var Me=document.createElement("div");Me.innerText=100*ue+"%",le.appendChild(Me),ce.opacityBoxes.push(le)}),he},fe.prototype.setCurrentOpacity=function(ce,he){var ue=this;this.currentOpacity=ce,this.opacityBoxes.forEach(function(le){le.style.borderColor=le===he?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},fe}(pt),ln=function(Pe){function fe(ce,he,ue){var le=Pe.call(this,ce,he,ue)||this;return le.setOpacity=le.setOpacity.bind(le),le.fillColor=ue.defaultHighlightColor,le.strokeWidth=0,le.opacity=ue.defaultHighlightOpacity,le.fillPanel=new Je("Color",ue.defaultColorSet,le.fillColor),le.fillPanel.onColorChanged=le.setFillColor,le.opacityPanel=new rr("Opacity",ue.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return Le(fe,Pe),fe.prototype.setOpacity=function(ce){this.opacity=ce,this.visual&&ke.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Pe.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.typeName="HighlightMarker",fe.title="Highlight marker",fe.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>',fe}(Wn),$e='<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>',Se='<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>',Bt=function(Pe){function fe(ce,he,ue){var le=Pe.call(this,ce,he,ue)||this;return le.bgColor="transparent",le.tipPosition={x:0,y:0},le.tipBase1Position={x:0,y:0},le.tipBase2Position={x:0,y:0},le.tipMoving=!1,le.color=ue.defaultStrokeColor,le.bgColor=ue.defaultFillColor,le.fontFamily=ue.defaultFontFamily,le.defaultSize={x:100,y:30},le.setBgColor=le.setBgColor.bind(le),le.getTipPoints=le.getTipPoints.bind(le),le.positionTip=le.positionTip.bind(le),le.setTipPoints=le.setTipPoints.bind(le),le.colorPanel=new Je("Text color",ue.defaultColorSet,le.color,$e),le.colorPanel.onColorChanged=le.setColor,le.bgColorPanel=new Je("Fill color",ue.defaultColorSet,le.bgColor,Se),le.bgColorPanel.onColorChanged=le.setBgColor,le.fontFamilyPanel=new nt("Font",ue.defaultFontFamilies,ue.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.tipGrip=new nn,le.tipGrip.visual.transform.baseVal.appendItem(ke.createTransform()),le.controlBox.appendChild(le.tipGrip.visual),le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){return Pe.prototype.ownsTarget.call(this,ce)||this.tipGrip.ownsTarget(ce)||this.tip===ce},fe.prototype.createTip=function(){ke.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ke.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},fe.prototype.pointerDown=function(ce,he){this.state==="new"&&Pe.prototype.pointerDown.call(this,ce,he),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(he)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Pe.prototype.pointerDown.call(this,ce,he)},fe.prototype.pointerUp=function(ce){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Pe.prototype.pointerUp.call(this,ce);else{var he=this.state==="creating";Pe.prototype.pointerUp.call(this,ce),this.setTipPoints(he),this.positionTip()}},fe.prototype.manipulate=function(ce){if(this.tipMoving){var he=this.unrotatePoint(ce);this.tipPosition={x:he.x-this.manipulationStartLeft,y:he.y-this.manipulationStartTop},this.positionTip()}else Pe.prototype.manipulate.call(this,ce)},fe.prototype.setBgColor=function(ce){this.bgRectangle&&this.tip&&(ke.setAttributes(this.bgRectangle,[["fill",ce]]),ke.setAttributes(this.tip,[["fill",ce]])),this.bgColor=ce,this.fillColorChanged(ce)},fe.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},fe.prototype.setTipPoints=function(ce){ce===void 0&&(ce=!1);var he=Math.min(this.height/2,15),ue=this.height/5;ce&&(this.tipPosition={x:he+ue/2,y:this.height+20});var le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?le<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ue=this.width/5,he=Math.min(this.width/2,15),this.tipBase1Position={x:he,y:0},this.tipBase2Position={x:he+ue,y:0}):(this.tipBase1Position={x:0,y:he},this.tipBase2Position={x:0,y:he+ue}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?le<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ue=this.width/5,he=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-he-ue,y:0},this.tipBase2Position={x:this.width-he,y:0}):(this.tipBase1Position={x:this.width,y:he},this.tipBase2Position={x:this.width,y:he+ue}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?le<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ue=this.width/5,he=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-he-ue,y:this.height},this.tipBase2Position={x:this.width-he,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-he-ue},this.tipBase2Position={x:this.width,y:this.height-he}):le<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ue=this.width/5,he=Math.min(this.width/2,15),this.tipBase1Position={x:he,y:this.height},this.tipBase2Position={x:he+ue,y:this.height}):(this.tipBase1Position={x:0,y:this.height-he},this.tipBase2Position={x:0,y:this.height-he-ue})},fe.prototype.resize=function(ce){Pe.prototype.resize.call(this,ce),this.positionTip()},fe.prototype.positionTip=function(){ke.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ce=this.tipGrip.visual.transform.baseVal.getItem(0);ce.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ce,0)},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),fe.prototype.select=function(){this.positionTip(),Pe.prototype.select.call(this)},fe.prototype.getState=function(){var ce=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Pe.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){var he=ce;this.bgColor=he.bgColor,this.tipPosition=he.tipPosition,Pe.prototype.restoreState.call(this,ce),this.createTip(),this.setTipPoints()},fe.prototype.scale=function(ce,he){Pe.prototype.scale.call(this,ce,he),this.tipPosition={x:this.tipPosition.x*ce,y:this.tipPosition.y*he},this.positionTip()},fe.typeName="CalloutMarker",fe.title="Callout marker",fe.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>',fe}(qt),xn=function(Pe){function fe(ce,he,ue){var le=Pe.call(this,ce,he,ue)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.strokeColor=ue.defaultColor,le.strokeWidth=ue.defaultStrokeWidth,le.strokeDasharray=ue.defaultStrokeDasharray,le.fillColor=ue.defaultFillColor,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.setOpacity=le.setOpacity.bind(le),le.createVisual=le.createVisual.bind(le),le.strokePanel=new Je("Line color",ge(ue.defaultColorSet,["transparent"]),ue.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new Je("Fill color",ge(ue.defaultColorSet,["transparent"]),le.fillColor,Se),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new Ae("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ye("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.opacityPanel=new rr("Opacity",ue.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){return!(!Pe.prototype.ownsTarget.call(this,ce)&&ce!==this.visual)},fe.prototype.createVisual=function(){this.visual=ke.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)},fe.prototype.pointerDown=function(ce,he){Pe.prototype.pointerDown.call(this,ce,he),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},fe.prototype.manipulate=function(ce){Pe.prototype.manipulate.call(this,ce)},fe.prototype.resize=function(ce){Pe.prototype.resize.call(this,ce),this.setSize()},fe.prototype.setSize=function(){Pe.prototype.setSize.call(this),ke.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},fe.prototype.pointerUp=function(ce){Pe.prototype.pointerUp.call(this,ce),this.setSize()},fe.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.visual&&ke.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},fe.prototype.setFillColor=function(ce){this.fillColor=ce,this.visual&&ke.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ce),this.stateChanged()},fe.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.visual&&ke.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},fe.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.visual&&ke.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},fe.prototype.setOpacity=function(ce){this.opacity=ce,this.visual&&ke.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Pe.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){var he=ce;this.fillColor=he.fillColor,this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.opacity=he.opacity,this.createVisual(),Pe.prototype.restoreState.call(this,ce),this.setSize()},fe.prototype.scale=function(ce,he){Pe.prototype.scale.call(this,ce,he),this.setSize()},fe.typeName="EllipseMarker",fe.title="Ellipse marker",fe.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>',fe}(vt),Xt=function(Pe){function fe(ce,he,ue){return Pe.call(this,ce,he,ue)||this}return Le(fe,Pe),Object.defineProperty(fe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),fe.prototype.ownsTarget=function(ce){return!(!Pe.prototype.ownsTarget.call(this,ce)&&ce!==this.tip1&&ce!==this.tip2)},fe.prototype.createTips=function(){this.tip1=ke.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(ke.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ke.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(ke.createTransform()),this.visual.appendChild(this.tip2)},fe.prototype.pointerDown=function(ce,he){Pe.prototype.pointerDown.call(this,ce,he),this.state==="creating"&&this.createTips()},fe.prototype.adjustVisual=function(){if(Pe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ke.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()]]),ke.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 ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),he=this.tip1.transform.baseVal.getItem(0);he.setRotate(ce,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(he,0);var ue=this.tip2.transform.baseVal.getItem(0);ue.setRotate(ce+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ue,0)}},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Pe.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){Pe.prototype.restoreState.call(this,ce),this.createTips(),this.adjustVisual()},fe.typeName="MeasurementMarker",fe.title="Measurement marker",fe.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>',fe}(Lt),ft=function(Pe){function fe(ce,he,ue){var le=Pe.call(this,ce,he,ue)||this;return le.strokePanel.colors=ue.defaultColorSet,le.fillColor="transparent",le}return Le(fe,Pe),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Pe.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.typeName="EllipseFrameMarker",fe.title="Ellipse frame marker",fe.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>',fe}(xn),yt=function(){function Pe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Pe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Pe.prototype.addUndoStep=function(fe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(fe)||(this.undoStack.push(fe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(fe)&&this.redoStack.splice(0,this.redoStack.length))},Pe.prototype.replaceLastUndoStep=function(fe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=fe)},Pe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Pe.prototype.undo=function(){if(this.undoStack.length>1){var fe=this.undoStack.pop();return fe!==void 0&&this.redoStack.push(fe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Pe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Pe}(),Gt=function(Pe){function fe(ce,he,ue){var le=Pe.call(this,ce,he,ue)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.curveX=0,le.curveY=0,le.manipulationStartCurveX=0,le.manipulationStartCurveY=0,le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.positionGrips=le.positionGrips.bind(le),le.addControlGrips=le.addControlGrips.bind(le),le.adjustVisual=le.adjustVisual.bind(le),le.setupControlBox=le.setupControlBox.bind(le),le.resize=le.resize.bind(le),le.strokeColor=ue.defaultColor,le.strokeWidth=ue.defaultStrokeWidth,le.strokeDasharray=ue.defaultStrokeDasharray,le.strokePanel=new Je("Line color",ue.defaultColorSet,ue.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Ae("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ye("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){return!(!Pe.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorCurve&&ce!==this.visibleCurve&&!this.curveGrip.ownsTarget(ce))},fe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},fe.prototype.createVisual=function(){this.visual=ke.createGroup(),this.selectorCurve=ke.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ke.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)},fe.prototype.pointerDown=function(ce,he){Pe.prototype.pointerDown.call(this,ce,he),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ce.x,this.curveY=ce.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(he)&&(this.activeGrip=this.curveGrip,this._state="resize")},fe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ke.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ke.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ke.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},fe.prototype.setupControlBox=function(){Pe.prototype.setupControlBox.call(this),this.curveControlLine1=ke.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ke.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)},fe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Pe.prototype.addControlGrips.call(this)},fe.prototype.positionGrips=function(){Pe.prototype.positionGrips.call(this);var ce=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ce/2,this.curveY-ce/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()))},fe.prototype.manipulate=function(ce){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ce.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ce.y-this.manipulationStartY),Pe.prototype.manipulate.call(this,ce)},fe.prototype.resize=function(ce){this.activeGrip===this.curveGrip&&(this.curveX=ce.x,this.curveY=ce.y),Pe.prototype.resize.call(this,ce),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},fe.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},fe.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},fe.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual()},fe.prototype.scale=function(ce,he){this.curveX=this.curveX*ce,this.curveY=this.curveY*he,Pe.prototype.scale.call(this,ce,he)},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Pe.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){Pe.prototype.restoreState.call(this,ce);var he=ce;this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.curveX=he.curveX,this.curveY=he.curveY,this.createVisual(),this.adjustVisual()},fe.typeName="CurveMarker",fe.title="Curve marker",fe.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>',fe}(xt),qn=function(Pe){function fe(ce,he,ue){var le=Pe.call(this,ce,he,ue)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.textColor="transparent",le.fontSize="1rem",le.isMoved=!1,le.captionText="Caption",le.PADDING=5,le.captionBoxWidth=0,le.captionBoxHeight=0,le.strokeColor=ue.defaultColor,le.strokeWidth=ue.defaultStrokeWidth,le.strokeDasharray=ue.defaultStrokeDasharray,le.fillColor=ue.defaultFillColor,le.textColor=ue.defaultStrokeColor,le.fontFamily=ue.defaultFontFamily,le.fontSize=ue.defaultCaptionFontSize,le.captionText=ue.defaultCaptionText,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le.sizeCaption=le.sizeCaption.bind(le),le.setCaptionText=le.setCaptionText.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.finishTextEditing=le.finishTextEditing.bind(le),le.setFont=le.setFont.bind(le),le.setTextColor=le.setTextColor.bind(le),le.strokePanel=new Je("Line color",ge(ue.defaultColorSet,["transparent"]),le.strokeColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new Je("Fill color",ge(ue.defaultColorSet,["transparent"]),le.fillColor,Se),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new Ae("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ye("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.fontFamilyPanel=new nt("Font",ue.defaultFontFamilies,ue.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.textColorPanel=new Je("Text color",ue.defaultColorSet,le.textColor,$e),le.textColorPanel.onColorChanged=le.setTextColor,le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){return!(!Pe.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.frame&&ce!==this.captionBg&&ce!==this.captionElement)},fe.prototype.createVisual=function(){this.visual=ke.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ke.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ke.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=ke.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()},fe.prototype.setCaptionText=function(ce){this.captionText=ce,this.captionElement.textContent=this.captionText,this.sizeCaption()},fe.prototype.pointerDown=function(ce,he){Pe.prototype.pointerDown.call(this,ce,he),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},fe.prototype.manipulate=function(ce){Pe.prototype.manipulate.call(this,ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ce.x-this.pointerDownPoint.x)>5||Math.abs(ce.y-this.pointerDownPoint.y)>5)},fe.prototype.resize=function(ce){Pe.prototype.resize.call(this,ce),this.setSize()},fe.prototype.sizeCaption=function(){var ce=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ce.width+2*this.PADDING,this.captionBoxHeight=ce.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ke.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')"]]),ke.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')"]])},fe.prototype.showTextEditor=function(){var ce=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(he){he.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(he){he.key==="Enter"&&ce.finishTextEditing(ce.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(he){he.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ce.finishTextEditing(ce.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ce.finishTextEditing(ce.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},fe.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"))},fe.prototype.finishTextEditing=function(ce){this.setCaptionText(ce.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},fe.prototype.setFont=function(ce){this.captionElement&&ke.setAttributes(this.captionElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},fe.prototype.setTextColor=function(ce){this.captionElement&&ke.setAttributes(this.captionElement,[["fill",ce]]),this.textColor=ce,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},fe.prototype.setSize=function(){Pe.prototype.setSize.call(this),ke.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},fe.prototype.pointerUp=function(ce){Pe.prototype.pointerUp.call(this,ce),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},fe.prototype.dblClick=function(ce,he){Pe.prototype.dblClick.call(this,ce,he),this.showTextEditor()},fe.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.frame&&ke.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},fe.prototype.setFillColor=function(ce){this.fillColor=ce,this.captionBg&&ke.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ce),this.stateChanged()},fe.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.frame&&ke.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},fe.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.frame&&ke.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=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},Pe.prototype.getState.call(this));return ce.typeName=this.typeName,ce},fe.prototype.restoreState=function(ce){var he=ce;this.fillColor=he.fillColor,this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.textColor=he.textColor,this.fontFamily=he.fontFamily,this.captionText=he.captionText,this.fontSize=he.fontSize,this.createVisual(),Pe.prototype.restoreState.call(this,ce),this.setSize()},fe.prototype.scale=function(ce,he){Pe.prototype.scale.call(this,ce,he),this.setSize()},fe.typeName="CaptionFrameMarker",fe.title="Caption frame marker",fe.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>',fe}(vt),Dn=function(){function Pe(fe,ce){ce===void 0&&(ce=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=fe,this.cancelable=ce}return Object.defineProperty(Pe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Pe.prototype.preventDefault=function(){this._defaultPrevented=!0},Pe}(),Tt=function(Pe){function fe(ce,he,ue){var le=Pe.call(this,ce,!1)||this;return le.dataUrl=he,le.state=ue,le}return Le(fe,Pe),fe}(Dn),mn=function(Pe){function fe(ce,he,ue){ue===void 0&&(ue=!1);var le=Pe.call(this,ce,ue)||this;return le.marker=he,le}return Le(fe,Pe),fe}(Dn),Vn=function(){function Pe(){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 Pe.prototype.addEventListener=function(fe,ce){this[fe].push(ce)},Pe.prototype.removeEventListener=function(fe,ce){var he=this[fe].indexOf(ce);he>-1&&this[fe].splice(he,1)},Pe}(),kn=function(){function Pe(fe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new At,this._isOpen=!1,this.undoRedoManager=new yt,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=Pe.instanceCounter++,this.styles=new De(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=fe,this.targetRoot=document.body,this.width=fe.clientWidth,this.height=fe.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(Pe.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ve,zt,dn,qt,ft,xn,ln,Bt,Xt,Wn,Lt,Gt,qn]},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ve,zt,dn,qt,xn,ln,Bt]},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ve,zt,dn,qt,ln]},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(fe){var ce=this;this._availableMarkerTypes.splice(0),fe.forEach(function(he){if(typeof he=="string"){var ue=ce.ALL_MARKER_TYPES.find(function(le){return le.typeName===he});ue!==void 0&&ce._availableMarkerTypes.push(ue)}else ce._availableMarkerTypes.push(he)})},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(fe){this._zoomLevel=fe,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(Pe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Pe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ee.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Pe.prototype.show=function(){var fe=this;this.styles.styleSheetRoot===void 0&&me.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=me.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ce){return ce(new Dn(fe))})},Pe.prototype.render=function(){return _e(this,void 0,void 0,function(){var fe;return rt(this,function(ce){switch(ce.label){case 0:return this.setCurrentMarker(),(fe=new xe).naturalSize=this.renderAtNaturalSize,fe.imageType=this.renderImageType,fe.imageQuality=this.renderImageQuality,fe.markersOnly=this.renderMarkersOnly,fe.width=this.renderWidth,fe.height=this.renderHeight,[4,fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ce.sent(),[4,fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ce.sent()]}})})},Pe.prototype.close=function(fe){var ce=this;if(fe===void 0&&(fe=!1),this.isOpen){var he=!1;fe||this.eventListeners.beforeclose.forEach(function(ue){var le=new Dn(ce,!0);ue(le),le.defaultPrevented&&(he=!0)}),he||(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(ue){return ue(new Dn(ce))}),this.detachEvents(),this._isOpen=!1)}},Pe.prototype.addMarkersToToolbar=function(){for(var fe,ce=[],he=0;he<arguments.length;he++)ce[he]=arguments[he];(fe=this._availableMarkerTypes).push.apply(fe,ce)},Pe.prototype.addRenderEventListener=function(fe){this.addEventListener("render",function(ce){fe(ce.dataUrl,ce.state)})},Pe.prototype.removeRenderEventListener=function(fe){},Pe.prototype.addCloseEventListener=function(fe){this.addEventListener("close",function(){fe()})},Pe.prototype.removeCloseEventListener=function(fe){},Pe.prototype.setupResizeObserver=function(){var fe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){fe.resize(fe.target.clientWidth,fe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return fe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Pe.prototype.onPopupTargetResize=function(){var fe=1*this.target.clientWidth/this.target.clientHeight,ce=this.editorCanvas.clientWidth/fe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*fe:this.editorCanvas.clientWidth,he=ce<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/fe;this.resize(ce,he)},Pe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Pe.prototype.resize=function(fe,ce){this._isResizing=!0;var he=fe/this.imageWidth,ue=ce/this.imageHeight;this.imageWidth=Math.round(fe),this.imageHeight=Math.round(ce),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(he,ue),this._isResizing=!1},Pe.prototype.scaleMarkers=function(fe,ce){var he,ue=this;this._currentMarker&&this._currentMarker instanceof qt?this._currentMarker.scale(fe,ce):(he=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(le){le!==ue._currentMarker&&le.scale(fe,ce)}),he!==void 0&&this.setCurrentMarker(he)},Pe.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"},Pe.prototype.setTopLeft=function(){var fe=this.editingTarget.getBoundingClientRect(),ce=this.editorCanvas.getBoundingClientRect();this.left=fe.left-ce.left,this.top=fe.top-ce.top},Pe.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)},Pe.prototype.addDefs=function(){for(var fe,ce=[],he=0;he<arguments.length;he++)ce[he]=arguments[he];this.defs=ke.createDefs(),this.addDefsToImage(),(fe=this.defs).append.apply(fe,ce)},Pe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Pe.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)},Pe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Pe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Pe.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)},Pe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Pe.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)},Pe.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 fe=document.createElement("a");fe.href="https://markerjs.com/",fe.target="_blank",fe.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>',fe.title="Powered by marker.js",fe.style.display="grid",fe.style.alignItems="center",fe.style.justifyItems="center",fe.style.padding="3px",fe.style.width="20px",fe.style.height="20px",this.logoUI.appendChild(fe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Pe.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")},Pe.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"},Pe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Pe.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 fe=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=fe+"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 mt(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 dt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Pe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Pe.prototype.removeMarker=function(fe){this.markerImage.removeChild(fe.container),this.markers.indexOf(fe)>-1&&this.markers.splice(this.markers.indexOf(fe),1),fe.dispose()},Pe.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())},Pe.prototype.toolbarButtonClicked=function(fe,ce){if(fe==="marker"&&ce!==void 0)this.createNewMarker(ce);else if(fe==="action")switch(ce){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()}},Pe.prototype.deleteSelectedMarker=function(){var fe=this;if(this._currentMarker!==void 0){var ce=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ue){var le=new mn(fe,fe._currentMarker,!0);ue(le),le.defaultPrevented&&(ce=!0)}),!ce){var he=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(ue){return ue(new mn(fe,he))})}}},Pe.prototype.clear=function(){var fe=this,ce=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Me){var Ge=new mn(fe,void 0,!0);Me(Ge),Ge.defaultPrevented&&(ce=!0)}),!ce)){this.setCurrentMarker();for(var he=function(Me){var Ge=ue.markers[Me];ue.setCurrentMarker(ue.markers[Me]),ue._currentMarker.dispose(),ue.markerImage.removeChild(ue._currentMarker.container),ue.markers.splice(ue.markers.indexOf(ue._currentMarker),1),ue.eventListeners.markerdelete.forEach(function(St){return St(new mn(fe,Ge))})},ue=this,le=this.markers.length-1;le>=0;le--)he(le);this.addUndoStep()}},Object.defineProperty(Pe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Pe.prototype.showNotesEditor=function(){var fe;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=(fe=this._currentMarker.notes)!==null&&fe!==void 0?fe:"",this.overlayContainer.appendChild(this.notesArea))},Pe.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)},Pe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Pe.prototype.addUndoStep=function(){var fe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ce=this.getState(),he=this.undoRedoManager.getLastUndoStep();if(!he||he.width===ce.width&&he.height===ce.height){var ue=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ce),ue<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(le){return le(new Dn(fe))})}else this.undoRedoManager.replaceLastUndoStep(ce),this.eventListeners.statechange.forEach(function(le){return le(new Dn(fe))})}},Pe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Pe.prototype.undoStep=function(){var fe=this,ce=this.undoRedoManager.undo();ce!==void 0&&(this.restoreState(ce),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(he){return he(new Dn(fe))}))},Pe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Pe.prototype.redoStep=function(){var fe=this,ce=this.undoRedoManager.redo();ce!==void 0&&(this.restoreState(ce),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(he){return he(new Dn(fe))}))},Pe.prototype.stepZoom=function(){var fe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=fe<this.zoomSteps.length-1?this.zoomSteps[fe+1]:this.zoomSteps[0]},Pe.prototype.panTo=function(fe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-fe.x,top:this.prevPanPoint.y-fe.y}),this.prevPanPoint=fe},Pe.prototype.startRenderAndClose=function(){return _e(this,void 0,void 0,function(){var fe,ce,he=this;return rt(this,function(ue){switch(ue.label){case 0:return[4,this.render()];case 1:return fe=ue.sent(),ce=this.getState(),this.eventListeners.render.forEach(function(le){return le(new Tt(he,fe,ce))}),this.close(!0),[2]}})})},Pe.prototype.getState=function(fe){fe===!0&&this.setCurrentMarker();var ce={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(he){return ce.markers.push(he.getState())}),ce},Pe.prototype.restoreState=function(fe){var ce=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);fe.markers.forEach(function(he){var ue=ce._availableMarkerTypes.find(function(Me){return Me.typeName===he.typeName});if(ue!==void 0){var le=ce.addNewMarker(ue);le.restoreState(he),ce.markers.push(le)}}),fe.width&&fe.height&&(fe.width!==this.imageWidth||fe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/fe.width,this.imageHeight/fe.height),this.eventListeners.restorestate.forEach(function(he){return he(new Dn(ce))})},Pe.prototype.addNewMarker=function(fe){var ce=ke.createGroup();return this.markerImage.appendChild(ce),new fe(ce,this.overlayContainer,this.settings)},Pe.prototype.createNewMarker=function(fe){var ce,he=this;(ce=typeof fe=="string"?this._availableMarkerTypes.find(function(ue){return ue.typeName===fe}):fe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ce),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(ce.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ue){return ue(new mn(he,he._currentMarker))}))},Pe.prototype.markerCreated=function(fe){var ce=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(fe),this.setCurrentMarker(fe),fe instanceof zt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(zt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(he){return he(new mn(ce,ce._currentMarker))})},Pe.prototype.colorChanged=function(fe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=fe,this.settings.defaultStrokeColor=fe)},Pe.prototype.fillColorChanged=function(fe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=fe)},Pe.prototype.markerStateChanged=function(fe){var ce=this;this.eventListeners.markerchange.forEach(function(he){return he(new mn(ce,fe))})},Pe.prototype.setCurrentMarker=function(fe){var ce=this;this._currentMarker!==fe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(he){return he(new mn(ce,ce._currentMarker))})),this._currentMarker=fe,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(he){return he(new mn(ce,ce._currentMarker))}))},Pe.prototype.onPointerDown=function(fe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||fe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ce=this.markers.find(function(he){return he.ownsTarget(fe.target)});ce!==void 0?(this.setCurrentMarker(ce),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(fe.clientX,fe.clientY),fe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:fe.clientX,y:fe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(fe.clientX,fe.clientY))},Pe.prototype.onDblClick=function(fe){if(this._isFocused||this.focus(),this.mode==="select"){var ce=this.markers.find(function(he){return he.ownsTarget(fe.target)});ce!==void 0&&ce!==this._currentMarker&&this.setCurrentMarker(ce),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(fe.clientX,fe.clientY),fe.target):this.setCurrentMarker()}},Pe.prototype.onPointerMove=function(fe){this.touchPoints!==1&&fe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||fe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(fe.clientX,fe.clientY)):this.zoomLevel>1&&this.panTo({x:fe.clientX,y:fe.clientY}))},Pe.prototype.onPointerUp=function(fe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(fe.clientX,fe.clientY)),this.isDragging=!1,this.addUndoStep()},Pe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Pe.prototype.onKeyUp=function(fe){this._currentMarker===void 0||this.notesArea!==void 0||fe.key!=="Delete"&&fe.key!=="Backspace"||this.deleteSelectedMarker()},Pe.prototype.clientToLocalCoordinates=function(fe,ce){var he=this.markerImage.getBoundingClientRect();return{x:(fe-he.left)/this.zoomLevel,y:(ce-he.top)/this.zoomLevel}},Pe.prototype.onWindowResize=function(){this.positionUI()},Pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var fe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=fe+"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()},Pe.prototype.addLicenseKey=function(fe){Ee.addKey(fe)},Pe.prototype.addEventListener=function(fe,ce){this.eventListeners.addEventListener(fe,ce)},Pe.prototype.removeEventListener=function(fe,ce){this.eventListeners.removeEventListener(fe,ce)},Pe.prototype.renderState=function(fe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(fe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Pe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Pe.prototype.focus=function(){var fe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ce){return ce(new Dn(fe))}))},Pe.prototype.blur=function(){var fe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ce){return ce(new Dn(fe))}))},Pe.instanceCounter=0,Pe}()},95860:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return at}});var ae=se(87462),Le=se(1413),_e=se(4942),rt=se(97685),ge=se(45987),ke=se(94184),Ee=se.n(ke),xe=se(67294);function me(vt){var Ce=xe.useRef();Ce.current=vt;var Ae=xe.useCallback(function(){for(var Ye,Ve=arguments.length,At=new Array(Ve),xt=0;xt<Ve;xt++)At[xt]=arguments[xt];return(Ye=Ce.current)===null||Ye===void 0?void 0:Ye.call.apply(Ye,[Ce].concat(At))},[]);return Ae}function De(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ot=De()?xe.useLayoutEffect:xe.useEffect,Ne=function(Ce,Ae){var Ye=xe.useRef(!0);ot(function(){return Ce(Ye.current)},Ae),ot(function(){return Ye.current=!1,function(){Ye.current=!0}},[])},mt=function(Ce,Ae){Ne(function(Ye){if(!Ye)return Ce()},Ae)},dt=null;function pt(vt){var Ce=xe.useRef(!1),Ae=xe.useState(vt),Ye=(0,rt.Z)(Ae,2),Ve=Ye[0],At=Ye[1];xe.useEffect(function(){return Ce.current=!1,function(){Ce.current=!0}},[]);function xt(Lt,nt){nt&&Ce.current||At(Lt)}return[Ve,xt]}function Je(vt){return vt!==void 0}function Be(vt,Ce){var Ae=Ce||{},Ye=Ae.defaultValue,Ve=Ae.value,At=Ae.onChange,xt=Ae.postState,Lt=pt(function(){return Je(Ve)?Ve:Je(Ye)?typeof Ye=="function"?Ye():Ye:typeof vt=="function"?vt():vt}),nt=(0,rt.Z)(Lt,2),qt=nt[0],zt=nt[1],bn=Ve!==void 0?Ve:qt,dn=xt?xt(bn):bn,Wn=me(At),rr=pt([bn]),ln=(0,rt.Z)(rr,2),$e=ln[0],Se=ln[1];mt(function(){var xn=$e[0];qt!==xn&&Wn(qt,xn)},[$e]),mt(function(){Je(Ve)||zt(Ve)},[Ve]);var Bt=me(function(xn,Xt){zt(xn,Xt),Se([bn],Xt)});return[dn,Bt]}var gt=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],nn=(0,xe.forwardRef)(function(vt,Ce){var Ae,Ye=vt.prefixCls,Ve=Ye===void 0?"rc-checkbox":Ye,At=vt.className,xt=vt.style,Lt=vt.checked,nt=vt.disabled,qt=vt.defaultChecked,zt=qt===void 0?!1:qt,bn=vt.type,dn=bn===void 0?"checkbox":bn,Wn=vt.title,rr=vt.onChange,ln=(0,ge.Z)(vt,gt),$e=(0,xe.useRef)(null),Se=Be(zt,{value:Lt}),Bt=(0,rt.Z)(Se,2),xn=Bt[0],Xt=Bt[1];(0,xe.useImperativeHandle)(Ce,function(){return{focus:function(){var qn;(qn=$e.current)===null||qn===void 0||qn.focus()},blur:function(){var qn;(qn=$e.current)===null||qn===void 0||qn.blur()},input:$e.current}});var ft=Ee()(Ve,At,(Ae={},(0,_e.Z)(Ae,"".concat(Ve,"-checked"),xn),(0,_e.Z)(Ae,"".concat(Ve,"-disabled"),nt),Ae)),yt=function(qn){nt||("checked"in vt||Xt(qn.target.checked),rr==null||rr({target:(0,Le.Z)((0,Le.Z)({},vt),{},{type:dn,checked:qn.target.checked}),stopPropagation:function(){qn.stopPropagation()},preventDefault:function(){qn.preventDefault()},nativeEvent:qn.nativeEvent}))};return xe.createElement("span",{className:ft,title:Wn,style:xt},xe.createElement("input",(0,ae.Z)({},ln,{className:"".concat(Ve,"-input"),ref:$e,onChange:yt,disabled:nt,checked:!!xn,type:dn})),xe.createElement("span",{className:"".concat(Ve,"-inner")}))}),at=nn},26819:function(yn,fn){"use strict";var se;var ae=typeof Symbol=="function"&&Symbol.for,Le=ae?Symbol.for("react.element"):60103,_e=ae?Symbol.for("react.portal"):60106,rt=ae?Symbol.for("react.fragment"):60107,ge=ae?Symbol.for("react.strict_mode"):60108,ke=ae?Symbol.for("react.profiler"):60114,Ee=ae?Symbol.for("react.provider"):60109,xe=ae?Symbol.for("react.context"):60110,me=ae?Symbol.for("react.async_mode"):60111,De=ae?Symbol.for("react.concurrent_mode"):60111,ot=ae?Symbol.for("react.forward_ref"):60112,Ne=ae?Symbol.for("react.suspense"):60113,mt=ae?Symbol.for("react.suspense_list"):60120,dt=ae?Symbol.for("react.memo"):60115,pt=ae?Symbol.for("react.lazy"):60116,Je=ae?Symbol.for("react.block"):60121,Be=ae?Symbol.for("react.fundamental"):60117,gt=ae?Symbol.for("react.responder"):60118,nn=ae?Symbol.for("react.scope"):60119;function at(Ce){if(typeof Ce=="object"&&Ce!==null){var Ae=Ce.$$typeof;switch(Ae){case Le:switch(Ce=Ce.type,Ce){case me:case De:case rt:case ke:case ge:case Ne:return Ce;default:switch(Ce=Ce&&Ce.$$typeof,Ce){case xe:case ot:case pt:case dt:case Ee:return Ce;default:return Ae}}case _e:return Ae}}}function vt(Ce){return at(Ce)===De}se=me,se=De,se=xe,se=Ee,se=Le,se=ot,se=rt,se=pt,se=dt,se=_e,se=ke,se=ge,se=Ne,se=function(Ce){return vt(Ce)||at(Ce)===me},se=vt,se=function(Ce){return at(Ce)===xe},se=function(Ce){return at(Ce)===Ee},se=function(Ce){return typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===Le},se=function(Ce){return at(Ce)===ot},se=function(Ce){return at(Ce)===rt},se=function(Ce){return at(Ce)===pt},fn.isMemo=function(Ce){return at(Ce)===dt},se=function(Ce){return at(Ce)===_e},se=function(Ce){return at(Ce)===ke},se=function(Ce){return at(Ce)===ge},se=function(Ce){return at(Ce)===Ne},se=function(Ce){return typeof Ce=="string"||typeof Ce=="function"||Ce===rt||Ce===De||Ce===ke||Ce===ge||Ce===Ne||Ce===mt||typeof Ce=="object"&&Ce!==null&&(Ce.$$typeof===pt||Ce.$$typeof===dt||Ce.$$typeof===Ee||Ce.$$typeof===xe||Ce.$$typeof===ot||Ce.$$typeof===Be||Ce.$$typeof===gt||Ce.$$typeof===nn||Ce.$$typeof===Je)},se=at},18459:function(yn,fn,se){"use strict";yn.exports=se(26819)},16651:function(yn,fn){"use strict";var se;var ae=Symbol.for("react.element"),Le=Symbol.for("react.portal"),_e=Symbol.for("react.fragment"),rt=Symbol.for("react.strict_mode"),ge=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),Ee=Symbol.for("react.context"),xe=Symbol.for("react.server_context"),me=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),ot=Symbol.for("react.suspense_list"),Ne=Symbol.for("react.memo"),mt=Symbol.for("react.lazy"),dt=Symbol.for("react.offscreen"),pt;pt=Symbol.for("react.module.reference");function Je(Be){if(typeof Be=="object"&&Be!==null){var gt=Be.$$typeof;switch(gt){case ae:switch(Be=Be.type,Be){case _e:case ge:case rt:case De:case ot:return Be;default:switch(Be=Be&&Be.$$typeof,Be){case xe:case Ee:case me:case mt:case Ne:case ke:return Be;default:return gt}}case Le:return gt}}}se=Ee,se=ke,se=ae,se=me,se=_e,se=mt,se=Ne,se=Le,se=ge,se=rt,se=De,se=ot,se=function(){return!1},se=function(){return!1},se=function(Be){return Je(Be)===Ee},se=function(Be){return Je(Be)===ke},se=function(Be){return typeof Be=="object"&&Be!==null&&Be.$$typeof===ae},se=function(Be){return Je(Be)===me},se=function(Be){return Je(Be)===_e},se=function(Be){return Je(Be)===mt},se=function(Be){return Je(Be)===Ne},se=function(Be){return Je(Be)===Le},se=function(Be){return Je(Be)===ge},se=function(Be){return Je(Be)===rt},se=function(Be){return Je(Be)===De},se=function(Be){return Je(Be)===ot},se=function(Be){return typeof Be=="string"||typeof Be=="function"||Be===_e||Be===ge||Be===rt||Be===De||Be===ot||Be===dt||typeof Be=="object"&&Be!==null&&(Be.$$typeof===mt||Be.$$typeof===Ne||Be.$$typeof===ke||Be.$$typeof===Ee||Be.$$typeof===me||Be.$$typeof===pt||Be.getModuleId!==void 0)},se=Je},33993:function(yn,fn,se){"use strict";se(16651)},82523:function(yn,fn){"use strict";var se;var ae=Symbol.for("react.element"),Le=Symbol.for("react.portal"),_e=Symbol.for("react.fragment"),rt=Symbol.for("react.strict_mode"),ge=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),Ee=Symbol.for("react.context"),xe=Symbol.for("react.server_context"),me=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),ot=Symbol.for("react.suspense_list"),Ne=Symbol.for("react.memo"),mt=Symbol.for("react.lazy"),dt=Symbol.for("react.offscreen"),pt;pt=Symbol.for("react.module.reference");function Je(Be){if(typeof Be=="object"&&Be!==null){var gt=Be.$$typeof;switch(gt){case ae:switch(Be=Be.type,Be){case _e:case ge:case rt:case De:case ot:return Be;default:switch(Be=Be&&Be.$$typeof,Be){case xe:case Ee:case me:case mt:case Ne:case ke:return Be;default:return gt}}case Le:return gt}}}se=Ee,se=ke,se=ae,se=me,se=_e,se=mt,se=Ne,se=Le,se=ge,se=rt,se=De,se=ot,se=function(){return!1},se=function(){return!1},se=function(Be){return Je(Be)===Ee},se=function(Be){return Je(Be)===ke},se=function(Be){return typeof Be=="object"&&Be!==null&&Be.$$typeof===ae},se=function(Be){return Je(Be)===me},se=function(Be){return Je(Be)===_e},se=function(Be){return Je(Be)===mt},se=function(Be){return Je(Be)===Ne},se=function(Be){return Je(Be)===Le},se=function(Be){return Je(Be)===ge},se=function(Be){return Je(Be)===rt},se=function(Be){return Je(Be)===De},se=function(Be){return Je(Be)===ot},se=function(Be){return typeof Be=="string"||typeof Be=="function"||Be===_e||Be===ge||Be===rt||Be===De||Be===ot||Be===dt||typeof Be=="object"&&Be!==null&&(Be.$$typeof===mt||Be.$$typeof===Ne||Be.$$typeof===ke||Be.$$typeof===Ee||Be.$$typeof===me||Be.$$typeof===pt||Be.getModuleId!==void 0)},se=Je},27183:function(yn,fn,se){"use strict";se(82523)},67656:function(yn,fn,se){"use strict";se.r(fn),se.d(fn,{BaseInput:function(){return De},default:function(){return nn}});var ae=se(87462),Le=se(1413),_e=se(4942),rt=se(71002),ge=se(94184),ke=se.n(ge),Ee=se(67294),xe=se(87887),me=function(vt){var Ce,Ae,Ye=vt.inputElement,Ve=vt.prefixCls,At=vt.prefix,xt=vt.suffix,Lt=vt.addonBefore,nt=vt.addonAfter,qt=vt.className,zt=vt.style,bn=vt.disabled,dn=vt.readOnly,Wn=vt.focused,rr=vt.triggerFocus,ln=vt.allowClear,$e=vt.value,Se=vt.handleReset,Bt=vt.hidden,xn=vt.classes,Xt=vt.classNames,ft=vt.dataAttrs,yt=vt.styles,Gt=vt.components,qn=(Gt==null?void 0:Gt.affixWrapper)||"span",Dn=(Gt==null?void 0:Gt.groupWrapper)||"span",Tt=(Gt==null?void 0:Gt.wrapper)||"span",mn=(Gt==null?void 0:Gt.groupAddon)||"span",Vn=(0,Ee.useRef)(null),kn=function(Vt){var sn;(sn=Vn.current)!==null&&sn!==void 0&&sn.contains(Vt.target)&&(rr==null||rr())},Pe=function(){var Vt;if(!ln)return null;var sn=!bn&&!dn&&$e,it="".concat(Ve,"-clear-icon"),Mt=(0,rt.Z)(ln)==="object"&&ln!==null&&ln!==void 0&&ln.clearIcon?ln.clearIcon:"\u2716";return Ee.createElement("span",{onClick:Se,onMouseDown:function($t){return $t.preventDefault()},className:ke()(it,(Vt={},(0,_e.Z)(Vt,"".concat(it,"-hidden"),!sn),(0,_e.Z)(Vt,"".concat(it,"-has-suffix"),!!xt),Vt)),role:"button",tabIndex:-1},Mt)},fe=(0,Ee.cloneElement)(Ye,{value:$e,hidden:Bt,className:ke()((Ce=Ye.props)===null||Ce===void 0?void 0:Ce.className,!(0,xe.X3)(vt)&&!(0,xe.He)(vt)&&qt)||null,style:(0,Le.Z)((0,Le.Z)({},(Ae=Ye.props)===null||Ae===void 0?void 0:Ae.style),!(0,xe.X3)(vt)&&!(0,xe.He)(vt)?zt:{})});if((0,xe.X3)(vt)){var ce,he="".concat(Ve,"-affix-wrapper"),ue=ke()(he,(ce={},(0,_e.Z)(ce,"".concat(he,"-disabled"),bn),(0,_e.Z)(ce,"".concat(he,"-focused"),Wn),(0,_e.Z)(ce,"".concat(he,"-readonly"),dn),(0,_e.Z)(ce,"".concat(he,"-input-with-clear-btn"),xt&&ln&&$e),ce),!(0,xe.He)(vt)&&qt,xn==null?void 0:xn.affixWrapper,Xt==null?void 0:Xt.affixWrapper),le=(xt||ln)&&Ee.createElement("span",{className:ke()("".concat(Ve,"-suffix"),Xt==null?void 0:Xt.suffix),style:yt==null?void 0:yt.suffix},Pe(),xt);fe=Ee.createElement(qn,(0,ae.Z)({className:ue,style:(0,Le.Z)((0,Le.Z)({},(0,xe.He)(vt)?void 0:zt),yt==null?void 0:yt.affixWrapper),hidden:!(0,xe.He)(vt)&&Bt,onClick:kn},ft==null?void 0:ft.affixWrapper,{ref:Vn}),At&&Ee.createElement("span",{className:ke()("".concat(Ve,"-prefix"),Xt==null?void 0:Xt.prefix),style:yt==null?void 0:yt.prefix},At),(0,Ee.cloneElement)(Ye,{value:$e,hidden:null}),le)}if((0,xe.He)(vt)){var Me="".concat(Ve,"-group"),Ge="".concat(Me,"-addon"),St=ke()("".concat(Ve,"-wrapper"),Me,xn==null?void 0:xn.wrapper),Ht=ke()("".concat(Ve,"-group-wrapper"),qt,xn==null?void 0:xn.group);return Ee.createElement(Dn,{className:Ht,style:zt,hidden:Bt},Ee.createElement(Tt,{className:St},Lt&&Ee.createElement(mn,{className:Ge},Lt),(0,Ee.cloneElement)(fe,{hidden:null}),nt&&Ee.createElement(mn,{className:Ge},nt)))}return fe},De=me,ot=se(74902),Ne=se(97685),mt=se(45987),dt=se(21770),pt=se(98423),Je=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],Be=(0,Ee.forwardRef)(function(at,vt){var Ce=at.autoComplete,Ae=at.onChange,Ye=at.onFocus,Ve=at.onBlur,At=at.onPressEnter,xt=at.onKeyDown,Lt=at.prefixCls,nt=Lt===void 0?"rc-input":Lt,qt=at.disabled,zt=at.htmlSize,bn=at.className,dn=at.maxLength,Wn=at.suffix,rr=at.showCount,ln=at.type,$e=ln===void 0?"text":ln,Se=at.classes,Bt=at.classNames,xn=at.styles,Xt=(0,mt.Z)(at,Je),ft=(0,dt.Z)(at.defaultValue,{value:at.value}),yt=(0,Ne.Z)(ft,2),Gt=yt[0],qn=yt[1],Dn=(0,Ee.useState)(!1),Tt=(0,Ne.Z)(Dn,2),mn=Tt[0],Vn=Tt[1],kn=(0,Ee.useRef)(null),Pe=function(Ht){kn.current&&(0,xe.nH)(kn.current,Ht)};(0,Ee.useImperativeHandle)(vt,function(){return{focus:Pe,blur:function(){var Ht;(Ht=kn.current)===null||Ht===void 0||Ht.blur()},setSelectionRange:function(Ht,Yt,Vt){var sn;(sn=kn.current)===null||sn===void 0||sn.setSelectionRange(Ht,Yt,Vt)},select:function(){var Ht;(Ht=kn.current)===null||Ht===void 0||Ht.select()},input:kn.current}}),(0,Ee.useEffect)(function(){Vn(function(St){return St&&qt?!1:St})},[qt]);var fe=function(Ht){at.value===void 0&&qn(Ht.target.value),kn.current&&(0,xe.rJ)(kn.current,Ht,Ae)},ce=function(Ht){At&&Ht.key==="Enter"&&At(Ht),xt==null||xt(Ht)},he=function(Ht){Vn(!0),Ye==null||Ye(Ht)},ue=function(Ht){Vn(!1),Ve==null||Ve(Ht)},le=function(Ht){qn(""),Pe(),kn.current&&(0,xe.rJ)(kn.current,Ht,Ae)},Me=function(){var Ht=(0,pt.Z)(at,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return Ee.createElement("input",(0,ae.Z)({autoComplete:Ce},Ht,{onChange:fe,onFocus:he,onBlur:ue,onKeyDown:ce,className:ke()(nt,(0,_e.Z)({},"".concat(nt,"-disabled"),qt),Bt==null?void 0:Bt.input),style:xn==null?void 0:xn.input,ref:kn,size:zt,type:$e}))},Ge=function(){var Ht=Number(dn)>0;if(Wn||rr){var Yt=(0,xe.D7)(Gt),Vt=(0,ot.Z)(Yt).length,sn=(0,rt.Z)(rr)==="object"?rr.formatter({value:Yt,count:Vt,maxLength:dn}):"".concat(Vt).concat(Ht?" / ".concat(dn):"");return Ee.createElement(Ee.Fragment,null,!!rr&&Ee.createElement("span",{className:ke()("".concat(nt,"-show-count-suffix"),(0,_e.Z)({},"".concat(nt,"-show-count-has-suffix"),!!Wn),Bt==null?void 0:Bt.count),style:(0,Le.Z)({},xn==null?void 0:xn.count)},sn),Wn)}return null};return Ee.createElement(De,(0,ae.Z)({},Xt,{prefixCls:nt,className:bn,inputElement:Me(),handleReset:le,value:(0,xe.D7)(Gt),focused:mn,triggerFocus:Pe,suffix:Ge(),disabled:qt,classes:Se,classNames:Bt,styles:xn}))}),gt=Be,nn=gt},87887:function(yn,fn,se){"use strict";se.d(fn,{D7:function(){return ge},He:function(){return ae},X3:function(){return Le},nH:function(){return rt},rJ:function(){return _e}});function ae(ke){return!!(ke.addonBefore||ke.addonAfter)}function Le(ke){return!!(ke.prefix||ke.suffix||ke.allowClear)}function _e(ke,Ee,xe,me){if(xe){var De=Ee;if(Ee.type==="click"){var ot=ke.cloneNode(!0);De=Object.create(Ee,{target:{value:ot},currentTarget:{value:ot}}),ot.value="",xe(De);return}if(me!==void 0){De=Object.create(Ee,{target:{value:ke},currentTarget:{value:ke}}),ke.value=me,xe(De);return}xe(De)}}function rt(ke,Ee){if(ke){ke.focus(Ee);var xe=Ee||{},me=xe.cursor;if(me){var De=ke.value.length;switch(me){case"start":ke.setSelectionRange(0,0);break;case"end":ke.setSelectionRange(De,De);break;default:ke.setSelectionRange(0,De)}}}}function ge(ke){return typeof ke=="undefined"||ke===null?"":String(ke)}},78595:function(yn,fn,se){"use strict";se.d(fn,{iz:function(){return jt},ck:function(){return qr},BW:function(){return oi},sN:function(){return qr},Wd:function(){return pn},ZP:function(){return Ze},Xl:function(){return sn}});var ae=se(87462),Le=se(4942),_e=se(1413),rt=se(74902),ge=se(97685),ke=se(45987),Ee=se(94184),xe=se.n(Ee),me=se(67294),De=se(48555);function ot(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ne=ot()?me.useLayoutEffect:me.useEffect,mt=function(et,Et){var It=me.useRef(!0);Ne(function(){return et(It.current)},Et),Ne(function(){return It.current=!1,function(){It.current=!0}},[])},dt=function(et,Et){mt(function(It){if(!It)return et()},Et)},pt=mt,Je=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Be=void 0;function gt(je,et){var Et=je.prefixCls,It=je.invalidate,Ut=je.item,Ln=je.renderItem,Nn=je.responsive,Mr=je.responsiveDisabled,Hr=je.registerSize,xr=je.itemKey,Gn=je.className,jn=je.style,$n=je.children,dr=je.display,Kr=je.order,kr=je.component,Cr=kr===void 0?"div":kr,Ir=(0,ke.Z)(je,Je),Ue=Nn&&!dr;function We(_t){Hr(xr,_t)}me.useEffect(function(){return function(){We(null)}},[]);var we=Ln&&Ut!==Be?Ln(Ut):$n,Oe;It||(Oe={opacity:Ue?0:1,height:Ue?0:Be,overflowY:Ue?"hidden":Be,order:Nn?Kr:Be,pointerEvents:Ue?"none":Be,position:Ue?"absolute":Be});var st={};Ue&&(st["aria-hidden"]=!0);var tt=me.createElement(Cr,(0,ae.Z)({className:xe()(!It&&Et,Gn),style:(0,_e.Z)((0,_e.Z)({},Oe),jn)},st,Ir,{ref:et}),we);return Nn&&(tt=me.createElement(De.Z,{onResize:function(rn){var Xe=rn.offsetWidth;We(Xe)},disabled:Mr},tt)),tt}var nn=me.forwardRef(gt);nn.displayName="Item";var at=nn;function vt(je){var et=me.useRef();et.current=je;var Et=me.useCallback(function(){for(var It,Ut=arguments.length,Ln=new Array(Ut),Nn=0;Nn<Ut;Nn++)Ln[Nn]=arguments[Nn];return(It=et.current)===null||It===void 0?void 0:It.call.apply(It,[et].concat(Ln))},[]);return Et}var Ce=se(73935),Ae=function(et){return+setTimeout(et,16)},Ye=function(et){return clearTimeout(et)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ae=function(et){return window.requestAnimationFrame(et)},Ye=function(et){return window.cancelAnimationFrame(et)});var Ve=0,At=new Map;function xt(je){At.delete(je)}var Lt=function(et){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ve+=1;var It=Ve;function Ut(Ln){if(Ln===0)xt(It),et();else{var Nn=Ae(function(){Ut(Ln-1)});At.set(It,Nn)}}return Ut(Et),It};Lt.cancel=function(je){var et=At.get(je);return xt(et),Ye(et)};var nt=Lt;function qt(je){if(typeof MessageChannel=="undefined")nt(je);else{var et=new MessageChannel;et.port1.onmessage=function(){return je()},et.port2.postMessage(void 0)}}function zt(){var je=me.useRef(null),et=function(It){je.current||(je.current=[],qt(function(){(0,Ce.unstable_batchedUpdates)(function(){je.current.forEach(function(Ut){Ut()}),je.current=null})})),je.current.push(It)};return et}function bn(je,et){var Et=me.useState(et),It=(0,ge.Z)(Et,2),Ut=It[0],Ln=It[1],Nn=vt(function(Mr){je(function(){Ln(Mr)})});return[Ut,Nn]}var dn=me.createContext(null),Wn=["component"],rr=["className"],ln=["className"],$e=function(et,Et){var It=me.useContext(dn);if(!It){var Ut=et.component,Ln=Ut===void 0?"div":Ut,Nn=(0,ke.Z)(et,Wn);return me.createElement(Ln,(0,ae.Z)({},Nn,{ref:Et}))}var Mr=It.className,Hr=(0,ke.Z)(It,rr),xr=et.className,Gn=(0,ke.Z)(et,ln);return me.createElement(dn.Provider,{value:null},me.createElement(at,(0,ae.Z)({ref:Et,className:xe()(Mr,xr)},Hr,Gn)))},Se=me.forwardRef($e);Se.displayName="RawItem";var Bt=Se,xn=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Xt="responsive",ft="invalidate";function yt(je){return"+ ".concat(je.length," ...")}function Gt(je,et){var Et=je.prefixCls,It=Et===void 0?"rc-overflow":Et,Ut=je.data,Ln=Ut===void 0?[]:Ut,Nn=je.renderItem,Mr=je.renderRawItem,Hr=je.itemKey,xr=je.itemWidth,Gn=xr===void 0?10:xr,jn=je.ssr,$n=je.style,dr=je.className,Kr=je.maxCount,kr=je.renderRest,Cr=je.renderRawRest,Ir=je.suffix,Ue=je.component,We=Ue===void 0?"div":Ue,we=je.itemComponent,Oe=je.onVisibleChange,st=(0,ke.Z)(je,xn),tt=jn==="full",_t=zt(),rn=bn(_t,null),Xe=(0,ge.Z)(rn,2),Qe=Xe[0],lt=Xe[1],ut=Qe||0,en=bn(_t,new Map),cn=(0,ge.Z)(en,2),Wt=cn[0],un=cn[1],On=bn(_t,0),ar=(0,ge.Z)(On,2),Fn=ar[0],An=ar[1],Zn=bn(_t,0),or=(0,ge.Z)(Zn,2),Tr=or[0],pr=or[1],zn=bn(_t,0),Pr=(0,ge.Z)(zn,2),Fr=Pr[0],si=Pr[1],pi=(0,me.useState)(null),hi=(0,ge.Z)(pi,2),ki=hi[0],Ni=hi[1],mi=(0,me.useState)(null),bi=(0,ge.Z)(mi,2),Yr=bi[0],ii=bi[1],xi=me.useMemo(function(){return Yr===null&&tt?Number.MAX_SAFE_INTEGER:Yr||0},[Yr,Qe]),Ii=(0,me.useState)(!1),ha=(0,ge.Z)(Ii,2),da=ha[0],ji=ha[1],Xi="".concat(It,"-item"),Ci=Math.max(Fn,Tr),gi=Kr===Xt,la=Ln.length&&gi,Ei=Kr===ft,Ur=la||typeof Kr=="number"&&Ln.length>Kr,vi=(0,me.useMemo)(function(){var zi=Ln;return la?Qe===null&&tt?zi=Ln:zi=Ln.slice(0,Math.min(Ln.length,ut/Gn)):typeof Kr=="number"&&(zi=Ln.slice(0,Kr)),zi},[Ln,Gn,Qe,Kr,la]),Ji=(0,me.useMemo)(function(){return la?Ln.slice(xi+1):Ln.slice(vi.length)},[Ln,vi,la,xi]),Zi=(0,me.useCallback)(function(zi,Yi){var pa;return typeof Hr=="function"?Hr(zi):(pa=Hr&&(zi==null?void 0:zi[Hr]))!==null&&pa!==void 0?pa:Yi},[Hr]),ua=(0,me.useCallback)(Nn||function(zi){return zi},[Nn]);function Li(zi,Yi,pa){Yr===zi&&(Yi===void 0||Yi===ki)||(ii(zi),pa||(ji(zi<Ln.length-1),Oe==null||Oe(zi)),Yi!==void 0&&Ni(Yi))}function ga(zi,Yi){lt(Yi.clientWidth)}function fa(zi,Yi){un(function(pa){var Ea=new Map(pa);return Yi===null?Ea.delete(zi):Ea.set(zi,Yi),Ea})}function sa(zi,Yi){pr(Yi),An(Tr)}function ca(zi,Yi){si(Yi)}function ba(zi){return Wt.get(Zi(vi[zi],zi))}pt(function(){if(ut&&typeof Ci=="number"&&vi){var zi=Fr,Yi=vi.length,pa=Yi-1;if(!Yi){Li(0,null);return}for(var Ea=0;Ea<Yi;Ea+=1){var Ka=ba(Ea);if(tt&&(Ka=Ka||0),Ka===void 0){Li(Ea-1,void 0,!0);break}if(zi+=Ka,pa===0&&zi<=ut||Ea===pa-1&&zi+ba(pa)<=ut){Li(pa,null);break}else if(zi+Ci>ut){Li(Ea-1,zi-Ka-Fr+Tr);break}}Ir&&ba(0)+Fr>ut&&Ni(null)}},[ut,Wt,Tr,Fr,Zi,vi]);var Ta=da&&!!Ji.length,Ca={};ki!==null&&la&&(Ca={position:"absolute",left:ki,top:0});var Ma={prefixCls:Xi,responsive:la,component:we,invalidate:Ei},Ha=Mr?function(zi,Yi){var pa=Zi(zi,Yi);return me.createElement(dn.Provider,{key:pa,value:(0,_e.Z)((0,_e.Z)({},Ma),{},{order:Yi,item:zi,itemKey:pa,registerSize:fa,display:Yi<=xi})},Mr(zi,Yi))}:function(zi,Yi){var pa=Zi(zi,Yi);return me.createElement(at,(0,ae.Z)({},Ma,{order:Yi,key:pa,item:zi,renderItem:ua,itemKey:pa,registerSize:fa,display:Yi<=xi}))},Va,$a={order:Ta?xi:Number.MAX_SAFE_INTEGER,className:"".concat(Xi,"-rest"),registerSize:sa,display:Ta};if(Cr)Cr&&(Va=me.createElement(dn.Provider,{value:(0,_e.Z)((0,_e.Z)({},Ma),$a)},Cr(Ji)));else{var Ra=kr||yt;Va=me.createElement(at,(0,ae.Z)({},Ma,$a),typeof Ra=="function"?Ra(Ji):Ra)}var xa=me.createElement(We,(0,ae.Z)({className:xe()(!Ei&&It,dr),style:$n,ref:et},st),vi.map(Ha),Ur?Va:null,Ir&&me.createElement(at,(0,ae.Z)({},Ma,{responsive:gi,responsiveDisabled:!la,order:xi,className:"".concat(Xi,"-suffix"),registerSize:ca,display:!0,style:Ca}),Ir));return gi&&(xa=me.createElement(De.Z,{onResize:ga,disabled:!la},xa)),xa}var qn=me.forwardRef(Gt);qn.displayName="Overflow",qn.Item=Bt,qn.RESPONSIVE=Xt,qn.INVALIDATE=ft;var Dn=qn,Tt=Dn,mn=se(21770),Vn=se(80334),kn=se(91881),Pe=me.createContext(null);function fe(je,et){return je===void 0?null:"".concat(je,"-").concat(et)}function ce(je){var et=me.useContext(Pe);return fe(et,je)}var he=se(56982),ue=["children","locked"],le=me.createContext(null);function Me(je,et){var Et=(0,_e.Z)({},je);return Object.keys(et).forEach(function(It){var Ut=et[It];Ut!==void 0&&(Et[It]=Ut)}),Et}function Ge(je){var et=je.children,Et=je.locked,It=(0,ke.Z)(je,ue),Ut=me.useContext(le),Ln=(0,he.Z)(function(){return Me(Ut,It)},[Ut,It],function(Nn,Mr){return!Et&&(Nn[0]!==Mr[0]||!(0,kn.Z)(Nn[1],Mr[1],!0))});return me.createElement(le.Provider,{value:Ln},et)}var St=[],Ht=me.createContext(null);function Yt(){return me.useContext(Ht)}var Vt=me.createContext(St);function sn(je){var et=me.useContext(Vt);return me.useMemo(function(){return je!==void 0?[].concat((0,rt.Z)(et),[je]):et},[et,je])}var it=me.createContext(null),Mt=me.createContext({}),Ot=Mt,$t=se(15105),bt=se(75164),_n=function(je){if(!je)return!1;if(je instanceof Element){if(je.offsetParent)return!0;if(je.getBBox){var et=je.getBBox(),Et=et.width,It=et.height;if(Et||It)return!0}if(je.getBoundingClientRect){var Ut=je.getBoundingClientRect(),Ln=Ut.width,Nn=Ut.height;if(Ln||Nn)return!0}}return!1};function ct(je){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(_n(je)){var Et=je.nodeName.toLowerCase(),It=["input","select","textarea","button"].includes(Et)||je.isContentEditable||Et==="a"&&!!je.getAttribute("href"),Ut=je.getAttribute("tabindex"),Ln=Number(Ut),Nn=null;return Ut&&!Number.isNaN(Ln)?Nn=Ln:It&&Nn===null&&(Nn=0),It&&je.disabled&&(Nn=null),Nn!==null&&(Nn>=0||et&&Nn<0)}return!1}function Dt(je){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Et=(0,rt.Z)(je.querySelectorAll("*")).filter(function(It){return ct(It,et)});return ct(je,et)&&Et.unshift(je),Et}var En=null;function wn(){En=document.activeElement}function Bn(){En=null}function Qn(){if(En)try{En.focus()}catch(je){}}function wr(je,et){if(et.keyCode===9){var Et=Dt(je),It=Et[et.shiftKey?0:Et.length-1],Ut=It===document.activeElement||je===document.activeElement;if(Ut){var Ln=Et[et.shiftKey?Et.length-1:0];Ln.focus(),et.preventDefault()}}}var br=$t.Z.LEFT,Sr=$t.Z.RIGHT,Yn=$t.Z.UP,ir=$t.Z.DOWN,Dr=$t.Z.ENTER,ti=$t.Z.ESC,Ai=$t.Z.HOME,tr=$t.Z.END,Jr=[Yn,ir,br,Sr];function kt(je,et,Et,It){var Ut,Ln,Nn,Mr,Hr="prev",xr="next",Gn="children",jn="parent";if(je==="inline"&&It===Dr)return{inlineTrigger:!0};var $n=(Ut={},(0,Le.Z)(Ut,Yn,Hr),(0,Le.Z)(Ut,ir,xr),Ut),dr=(Ln={},(0,Le.Z)(Ln,br,Et?xr:Hr),(0,Le.Z)(Ln,Sr,Et?Hr:xr),(0,Le.Z)(Ln,ir,Gn),(0,Le.Z)(Ln,Dr,Gn),Ln),Kr=(Nn={},(0,Le.Z)(Nn,Yn,Hr),(0,Le.Z)(Nn,ir,xr),(0,Le.Z)(Nn,Dr,Gn),(0,Le.Z)(Nn,ti,jn),(0,Le.Z)(Nn,br,Et?Gn:jn),(0,Le.Z)(Nn,Sr,Et?jn:Gn),Nn),kr={inline:$n,horizontal:dr,vertical:Kr,inlineSub:$n,horizontalSub:Kr,verticalSub:Kr},Cr=(Mr=kr["".concat(je).concat(et?"":"Sub")])===null||Mr===void 0?void 0:Mr[It];switch(Cr){case Hr:return{offset:-1,sibling:!0};case xr:return{offset:1,sibling:!0};case jn:return{offset:-1,sibling:!1};case Gn:return{offset:1,sibling:!1};default:return null}}function vn(je){for(var et=je;et;){if(et.getAttribute("data-menu-list"))return et;et=et.parentElement}return null}function Rn(je,et){for(var Et=je||document.activeElement;Et;){if(et.has(Et))return Et;Et=Et.parentElement}return null}function In(je,et){var Et=Dt(je,!0);return Et.filter(function(It){return et.has(It)})}function nr(je,et,Et){var It=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!je)return null;var Ut=In(je,et),Ln=Ut.length,Nn=Ut.findIndex(function(Mr){return Et===Mr});return It<0?Nn===-1?Nn=Ln-1:Nn-=1:It>0&&(Nn+=1),Nn=(Nn+Ln)%Ln,Ut[Nn]}function gr(je,et,Et,It,Ut,Ln,Nn,Mr,Hr,xr){var Gn=me.useRef(),jn=me.useRef();jn.current=et;var $n=function(){bt.Z.cancel(Gn.current)};return me.useEffect(function(){return function(){$n()}},[]),function(dr){var Kr=dr.which;if([].concat(Jr,[Dr,ti,Ai,tr]).includes(Kr)){var kr,Cr,Ir,Ue=function(){kr=new Set,Cr=new Map,Ir=new Map;var cn=Ln();return cn.forEach(function(Wt){var un=document.querySelector("[data-menu-id='".concat(fe(It,Wt),"']"));un&&(kr.add(un),Ir.set(un,Wt),Cr.set(Wt,un))}),kr};Ue();var We=Cr.get(et),we=Rn(We,kr),Oe=Ir.get(we),st=kt(je,Nn(Oe,!0).length===1,Et,Kr);if(!st&&Kr!==Ai&&Kr!==tr)return;(Jr.includes(Kr)||[Ai,tr].includes(Kr))&&dr.preventDefault();var tt=function(cn){if(cn){var Wt=cn,un=cn.querySelector("a");un!=null&&un.getAttribute("href")&&(Wt=un);var On=Ir.get(cn);Mr(On),$n(),Gn.current=(0,bt.Z)(function(){jn.current===On&&Wt.focus()})}};if([Ai,tr].includes(Kr)||st.sibling||!we){var _t;!we||je==="inline"?_t=Ut.current:_t=vn(we);var rn,Xe=In(_t,kr);Kr===Ai?rn=Xe[0]:Kr===tr?rn=Xe[Xe.length-1]:rn=nr(_t,kr,we,st.offset),tt(rn)}else if(st.inlineTrigger)Hr(Oe);else if(st.offset>0)Hr(Oe,!0),$n(),Gn.current=(0,bt.Z)(function(){Ue();var en=we.getAttribute("aria-controls"),cn=document.getElementById(en),Wt=nr(cn,kr);tt(Wt)},5);else if(st.offset<0){var Qe=Nn(Oe,!0),lt=Qe[Qe.length-2],ut=Cr.get(lt);Hr(lt,!1),tt(ut)}}xr==null||xr(dr)}}function sr(je){Promise.resolve().then(je)}var Un="__RC_UTIL_PATH_SPLIT__",qe=function(et){return et.join(Un)},wt=function(et){return et.split(Un)},Zt="rc-menu-more";function an(){var je=me.useState({}),et=(0,ge.Z)(je,2),Et=et[1],It=(0,me.useRef)(new Map),Ut=(0,me.useRef)(new Map),Ln=me.useState([]),Nn=(0,ge.Z)(Ln,2),Mr=Nn[0],Hr=Nn[1],xr=(0,me.useRef)(0),Gn=(0,me.useRef)(!1),jn=function(){Gn.current||Et({})},$n=(0,me.useCallback)(function(We,we){var Oe=qe(we);Ut.current.set(Oe,We),It.current.set(We,Oe),xr.current+=1;var st=xr.current;sr(function(){st===xr.current&&jn()})},[]),dr=(0,me.useCallback)(function(We,we){var Oe=qe(we);Ut.current.delete(Oe),It.current.delete(We)},[]),Kr=(0,me.useCallback)(function(We){Hr(We)},[]),kr=(0,me.useCallback)(function(We,we){var Oe=It.current.get(We)||"",st=wt(Oe);return we&&Mr.includes(st[0])&&st.unshift(Zt),st},[Mr]),Cr=(0,me.useCallback)(function(We,we){return We.some(function(Oe){var st=kr(Oe,!0);return st.includes(we)})},[kr]),Ir=function(){var we=(0,rt.Z)(It.current.keys());return Mr.length&&we.push(Zt),we},Ue=(0,me.useCallback)(function(We){var we="".concat(It.current.get(We)).concat(Un),Oe=new Set;return(0,rt.Z)(Ut.current.keys()).forEach(function(st){st.startsWith(we)&&Oe.add(Ut.current.get(st))}),Oe},[]);return me.useEffect(function(){return function(){Gn.current=!0}},[]),{registerPath:$n,unregisterPath:dr,refreshOverflowKeys:Kr,isSubPathKey:Cr,getKeyPath:kr,getKeys:Ir,getSubPathKeys:Ue}}function ze(je){var et=me.useRef(je);et.current=je;var Et=me.useCallback(function(){for(var It,Ut=arguments.length,Ln=new Array(Ut),Nn=0;Nn<Ut;Nn++)Ln[Nn]=arguments[Nn];return(It=et.current)===null||It===void 0?void 0:It.call.apply(It,[et].concat(Ln))},[]);return je?Et:void 0}var Ct=Math.random().toFixed(5).toString().slice(2),tn=0;function Kt(je){var et=(0,mn.Z)(je,{value:je}),Et=(0,ge.Z)(et,2),It=Et[0],Ut=Et[1];return me.useEffect(function(){tn+=1;var Ln="".concat(Ct,"-").concat(tn);Ut("rc-menu-uuid-".concat(Ln))},[]),It}var hn=se(15671),gn=se(43144),Xn=se(60136),_r=se(51630),lr=se(98423),mr=se(42550);function Or(je,et,Et,It){var Ut=me.useContext(le),Ln=Ut.activeKey,Nn=Ut.onActive,Mr=Ut.onInactive,Hr={active:Ln===je};return et||(Hr.onMouseEnter=function(xr){Et==null||Et({key:je,domEvent:xr}),Nn(je)},Hr.onMouseLeave=function(xr){It==null||It({key:je,domEvent:xr}),Mr(je)}),Hr}function Rr(je){var et=me.useContext(le),Et=et.mode,It=et.rtl,Ut=et.inlineIndent;if(Et!=="inline")return null;var Ln=je;return It?{paddingRight:Ln*Ut}:{paddingLeft:Ln*Ut}}function Zr(je){var et=je.icon,Et=je.props,It=je.children,Ut;return et===null||et===!1?null:(typeof et=="function"?Ut=me.createElement(et,(0,_e.Z)({},Et)):typeof et!="boolean"&&(Ut=et),Ut||It||null)}var Kn=["item"];function fr(je){var et=je.item,Et=(0,ke.Z)(je,Kn);return Object.defineProperty(Et,"item",{get:function(){return(0,Vn.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),et}}),Et}var Mn=["title","attribute","elementRef"],Sn=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],on=["active"],yr=function(je){(0,Xn.Z)(Et,je);var et=(0,_r.Z)(Et);function Et(){return(0,hn.Z)(this,Et),et.apply(this,arguments)}return(0,gn.Z)(Et,[{key:"render",value:function(){var Ut=this.props,Ln=Ut.title,Nn=Ut.attribute,Mr=Ut.elementRef,Hr=(0,ke.Z)(Ut,Mn),xr=(0,lr.Z)(Hr,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Vn.ZP)(!Nn,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),me.createElement(Tt.Item,(0,ae.Z)({},Nn,{title:typeof Ln=="string"?Ln:void 0},xr,{ref:Mr}))}}]),Et}(me.Component),Wr=me.forwardRef(function(je,et){var Et,It=je.style,Ut=je.className,Ln=je.eventKey,Nn=je.warnKey,Mr=je.disabled,Hr=je.itemIcon,xr=je.children,Gn=je.role,jn=je.onMouseEnter,$n=je.onMouseLeave,dr=je.onClick,Kr=je.onKeyDown,kr=je.onFocus,Cr=(0,ke.Z)(je,Sn),Ir=ce(Ln),Ue=me.useContext(le),We=Ue.prefixCls,we=Ue.onItemClick,Oe=Ue.disabled,st=Ue.overflowDisabled,tt=Ue.itemIcon,_t=Ue.selectedKeys,rn=Ue.onActive,Xe=me.useContext(Ot),Qe=Xe._internalRenderMenuItem,lt="".concat(We,"-item"),ut=me.useRef(),en=me.useRef(),cn=Oe||Mr,Wt=(0,mr.x1)(et,en),un=sn(Ln),On=function(hi){return{key:Ln,keyPath:(0,rt.Z)(un).reverse(),item:ut.current,domEvent:hi}},ar=Hr||tt,Fn=Or(Ln,cn,jn,$n),An=Fn.active,Zn=(0,ke.Z)(Fn,on),or=_t.includes(Ln),Tr=Rr(un.length),pr=function(hi){if(!cn){var ki=On(hi);dr==null||dr(fr(ki)),we(ki)}},zn=function(hi){if(Kr==null||Kr(hi),hi.which===$t.Z.ENTER){var ki=On(hi);dr==null||dr(fr(ki)),we(ki)}},Pr=function(hi){rn(Ln),kr==null||kr(hi)},Fr={};je.role==="option"&&(Fr["aria-selected"]=or);var si=me.createElement(yr,(0,ae.Z)({ref:ut,elementRef:Wt,role:Gn===null?"none":Gn||"menuitem",tabIndex:Mr?null:-1,"data-menu-id":st&&Ir?null:Ir},Cr,Zn,Fr,{component:"li","aria-disabled":Mr,style:(0,_e.Z)((0,_e.Z)({},Tr),It),className:xe()(lt,(Et={},(0,Le.Z)(Et,"".concat(lt,"-active"),An),(0,Le.Z)(Et,"".concat(lt,"-selected"),or),(0,Le.Z)(Et,"".concat(lt,"-disabled"),cn),Et),Ut),onClick:pr,onKeyDown:zn,onFocus:Pr}),xr,me.createElement(Zr,{props:(0,_e.Z)((0,_e.Z)({},je),{},{isSelected:or}),icon:ar}));return Qe&&(si=Qe(si,je,{selected:or})),si});function Lr(je,et){var Et=je.eventKey,It=Yt(),Ut=sn(Et);return me.useEffect(function(){if(It)return It.registerPath(Et,Ut),function(){It.unregisterPath(Et,Ut)}},[Ut]),It?null:me.createElement(Wr,(0,ae.Z)({},je,{ref:et}))}var qr=me.forwardRef(Lr),Cn=["className","children"],Er=function(et,Et){var It=et.className,Ut=et.children,Ln=(0,ke.Z)(et,Cn),Nn=me.useContext(le),Mr=Nn.prefixCls,Hr=Nn.mode,xr=Nn.rtl;return me.createElement("ul",(0,ae.Z)({className:xe()(Mr,xr&&"".concat(Mr,"-rtl"),"".concat(Mr,"-sub"),"".concat(Mr,"-").concat(Hr==="inline"?"inline":"vertical"),It),role:"menu"},Ln,{"data-menu-list":!0,ref:Et}),Ut)},vr=me.forwardRef(Er);vr.displayName="SubMenuList";var ta=vr,Hi=se(50344);function Pi(je,et){return(0,Hi.Z)(je).map(function(Et,It){if(me.isValidElement(Et)){var Ut,Ln,Nn=Et.key,Mr=(Ut=(Ln=Et.props)===null||Ln===void 0?void 0:Ln.eventKey)!==null&&Ut!==void 0?Ut:Nn,Hr=Mr==null;Hr&&(Mr="tmp_key-".concat([].concat((0,rt.Z)(et),[It]).join("-")));var xr={key:Mr,eventKey:Mr};return me.cloneElement(Et,xr)}return Et})}var Di=se(62709),qi={adjustX:1,adjustY:1},Ki={topLeft:{points:["bl","tl"],overflow:qi},topRight:{points:["br","tr"],overflow:qi},bottomLeft:{points:["tl","bl"],overflow:qi},bottomRight:{points:["tr","br"],overflow:qi},leftTop:{points:["tr","tl"],overflow:qi},leftBottom:{points:["br","bl"],overflow:qi},rightTop:{points:["tl","tr"],overflow:qi},rightBottom:{points:["bl","br"],overflow:qi}},di={topLeft:{points:["bl","tl"],overflow:qi},topRight:{points:["br","tr"],overflow:qi},bottomLeft:{points:["tl","bl"],overflow:qi},bottomRight:{points:["tr","br"],overflow:qi},rightTop:{points:["tr","tl"],overflow:qi},rightBottom:{points:["br","bl"],overflow:qi},leftTop:{points:["tl","tr"],overflow:qi},leftBottom:{points:["bl","br"],overflow:qi}},na=null;function aa(je,et,Et){if(et)return et;if(Et)return Et[je]||Et.other}var _i={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Mi(je){var et=je.prefixCls,Et=je.visible,It=je.children,Ut=je.popup,Ln=je.popupStyle,Nn=je.popupClassName,Mr=je.popupOffset,Hr=je.disabled,xr=je.mode,Gn=je.onVisibleChange,jn=me.useContext(le),$n=jn.getPopupContainer,dr=jn.rtl,Kr=jn.subMenuOpenDelay,kr=jn.subMenuCloseDelay,Cr=jn.builtinPlacements,Ir=jn.triggerSubMenuAction,Ue=jn.forceSubMenuRender,We=jn.rootClassName,we=jn.motion,Oe=jn.defaultMotions,st=me.useState(!1),tt=(0,ge.Z)(st,2),_t=tt[0],rn=tt[1],Xe=dr?(0,_e.Z)((0,_e.Z)({},di),Cr):(0,_e.Z)((0,_e.Z)({},Ki),Cr),Qe=_i[xr],lt=aa(xr,we,Oe),ut=me.useRef(lt);xr!=="inline"&&(ut.current=lt);var en=(0,_e.Z)((0,_e.Z)({},ut.current),{},{leavedClassName:"".concat(et,"-hidden"),removeOnLeave:!1,motionAppear:!0}),cn=me.useRef();return me.useEffect(function(){return cn.current=(0,bt.Z)(function(){rn(Et)}),function(){bt.Z.cancel(cn.current)}},[Et]),me.createElement(Di.Z,{prefixCls:et,popupClassName:xe()("".concat(et,"-popup"),(0,Le.Z)({},"".concat(et,"-rtl"),dr),Nn,We),stretch:xr==="horizontal"?"minWidth":null,getPopupContainer:$n,builtinPlacements:Xe,popupPlacement:Qe,popupVisible:_t,popup:Ut,popupStyle:Ln,popupAlign:Mr&&{offset:Mr},action:Hr?[]:[Ir],mouseEnterDelay:Kr,mouseLeaveDelay:kr,onPopupVisibleChange:Gn,forceRender:Ue,popupMotion:en,fresh:!0},It)}var Sa=se(62874);function Si(je){var et=je.id,Et=je.open,It=je.keyPath,Ut=je.children,Ln="inline",Nn=me.useContext(le),Mr=Nn.prefixCls,Hr=Nn.forceSubMenuRender,xr=Nn.motion,Gn=Nn.defaultMotions,jn=Nn.mode,$n=me.useRef(!1);$n.current=jn===Ln;var dr=me.useState(!$n.current),Kr=(0,ge.Z)(dr,2),kr=Kr[0],Cr=Kr[1],Ir=$n.current?Et:!1;me.useEffect(function(){$n.current&&Cr(!1)},[jn]);var Ue=(0,_e.Z)({},aa(Ln,xr,Gn));It.length>1&&(Ue.motionAppear=!1);var We=Ue.onVisibleChanged;return Ue.onVisibleChanged=function(we){return!$n.current&&!we&&Cr(!0),We==null?void 0:We(we)},kr?null:me.createElement(Ge,{mode:Ln,locked:!$n.current},me.createElement(Sa.Z,(0,ae.Z)({visible:Ir},Ue,{forceRender:Hr,removeOnLeave:!1,leavedClassName:"".concat(Mr,"-hidden")}),function(we){var Oe=we.className,st=we.style;return me.createElement(ta,{id:et,className:Oe,style:st},Ut)}))}var $r=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ft=["active"],Pt=function(et){var Et,It=et.style,Ut=et.className,Ln=et.title,Nn=et.eventKey,Mr=et.warnKey,Hr=et.disabled,xr=et.internalPopupClose,Gn=et.children,jn=et.itemIcon,$n=et.expandIcon,dr=et.popupClassName,Kr=et.popupOffset,kr=et.popupStyle,Cr=et.onClick,Ir=et.onMouseEnter,Ue=et.onMouseLeave,We=et.onTitleClick,we=et.onTitleMouseEnter,Oe=et.onTitleMouseLeave,st=(0,ke.Z)(et,$r),tt=ce(Nn),_t=me.useContext(le),rn=_t.prefixCls,Xe=_t.mode,Qe=_t.openKeys,lt=_t.disabled,ut=_t.overflowDisabled,en=_t.activeKey,cn=_t.selectedKeys,Wt=_t.itemIcon,un=_t.expandIcon,On=_t.onItemClick,ar=_t.onOpenChange,Fn=_t.onActive,An=me.useContext(Ot),Zn=An._internalRenderSubMenuItem,or=me.useContext(it),Tr=or.isSubPathKey,pr=sn(),zn="".concat(rn,"-submenu"),Pr=lt||Hr,Fr=me.useRef(),si=me.useRef(),pi=jn!=null?jn:Wt,hi=$n!=null?$n:un,ki=Qe.includes(Nn),Ni=!ut&&ki,mi=Tr(cn,Nn),bi=Or(Nn,Pr,we,Oe),Yr=bi.active,ii=(0,ke.Z)(bi,Ft),xi=me.useState(!1),Ii=(0,ge.Z)(xi,2),ha=Ii[0],da=Ii[1],ji=function(ca){Pr||da(ca)},Xi=function(ca){ji(!0),Ir==null||Ir({key:Nn,domEvent:ca})},Ci=function(ca){ji(!1),Ue==null||Ue({key:Nn,domEvent:ca})},gi=me.useMemo(function(){return Yr||(Xe!=="inline"?ha||Tr([en],Nn):!1)},[Xe,Yr,en,ha,Nn,Tr]),la=Rr(pr.length),Ei=function(ca){Pr||(We==null||We({key:Nn,domEvent:ca}),Xe==="inline"&&ar(Nn,!ki))},Ur=ze(function(sa){Cr==null||Cr(fr(sa)),On(sa)}),vi=function(ca){Xe!=="inline"&&ar(Nn,ca)},Ji=function(){Fn(Nn)},Zi=tt&&"".concat(tt,"-popup"),ua=me.createElement("div",(0,ae.Z)({role:"menuitem",style:la,className:"".concat(zn,"-title"),tabIndex:Pr?null:-1,ref:Fr,title:typeof Ln=="string"?Ln:null,"data-menu-id":ut&&tt?null:tt,"aria-expanded":Ni,"aria-haspopup":!0,"aria-controls":Zi,"aria-disabled":Pr,onClick:Ei,onFocus:Ji},ii),Ln,me.createElement(Zr,{icon:Xe!=="horizontal"?hi:void 0,props:(0,_e.Z)((0,_e.Z)({},et),{},{isOpen:Ni,isSubMenu:!0})},me.createElement("i",{className:"".concat(zn,"-arrow")}))),Li=me.useRef(Xe);if(Xe!=="inline"&&pr.length>1?Li.current="vertical":Li.current=Xe,!ut){var ga=Li.current;ua=me.createElement(Mi,{mode:ga,prefixCls:zn,visible:!xr&&Ni&&Xe!=="inline",popupClassName:dr,popupOffset:Kr,popupStyle:kr,popup:me.createElement(Ge,{mode:ga==="horizontal"?"vertical":ga},me.createElement(ta,{id:Zi,ref:si},Gn)),disabled:Pr,onVisibleChange:vi},ua)}var fa=me.createElement(Tt.Item,(0,ae.Z)({role:"none"},st,{component:"li",style:It,className:xe()(zn,"".concat(zn,"-").concat(Xe),Ut,(Et={},(0,Le.Z)(Et,"".concat(zn,"-open"),Ni),(0,Le.Z)(Et,"".concat(zn,"-active"),gi),(0,Le.Z)(Et,"".concat(zn,"-selected"),mi),(0,Le.Z)(Et,"".concat(zn,"-disabled"),Pr),Et)),onMouseEnter:Xi,onMouseLeave:Ci}),ua,!ut&&me.createElement(Si,{id:Zi,open:Ni,keyPath:pr},Gn));return Zn&&(fa=Zn(fa,et,{selected:mi,active:gi,open:Ni,disabled:Pr})),me.createElement(Ge,{onItemClick:Ur,mode:Xe==="horizontal"?"vertical":Xe,itemIcon:pi,expandIcon:hi},fa)};function pn(je){var et=je.eventKey,Et=je.children,It=sn(et),Ut=Pi(Et,It),Ln=Yt();me.useEffect(function(){if(Ln)return Ln.registerPath(et,It),function(){Ln.unregisterPath(et,It)}},[It]);var Nn;return Ln?Nn=Ut:Nn=me.createElement(Pt,je,Ut),me.createElement(Vt.Provider,{value:It},Nn)}var Pn=se(71002),cr=["className","title","eventKey","children"],Gr=["children"],Xr=function(et){var Et=et.className,It=et.title,Ut=et.eventKey,Ln=et.children,Nn=(0,ke.Z)(et,cr),Mr=me.useContext(le),Hr=Mr.prefixCls,xr="".concat(Hr,"-item-group");return me.createElement("li",(0,ae.Z)({role:"presentation"},Nn,{onClick:function(jn){return jn.stopPropagation()},className:xe()(xr,Et)}),me.createElement("div",{role:"presentation",className:"".concat(xr,"-title"),title:typeof It=="string"?It:void 0},It),me.createElement("ul",{role:"group",className:"".concat(xr,"-list")},Ln))};function oi(je){var et=je.children,Et=(0,ke.Z)(je,Gr),It=sn(Et.eventKey),Ut=Pi(et,It),Ln=Yt();return Ln?Ut:me.createElement(Xr,(0,lr.Z)(Et,["warnKey"]),Ut)}function jt(je){var et=je.className,Et=je.style,It=me.useContext(le),Ut=It.prefixCls,Ln=Yt();return Ln?null:me.createElement("li",{role:"separator",className:xe()("".concat(Ut,"-item-divider"),et),style:Et})}var ur=["label","children","key","type"];function li(je){return(je||[]).map(function(et,Et){if(et&&(0,Pn.Z)(et)==="object"){var It=et,Ut=It.label,Ln=It.children,Nn=It.key,Mr=It.type,Hr=(0,ke.Z)(It,ur),xr=Nn!=null?Nn:"tmp-".concat(Et);return Ln||Mr==="group"?Mr==="group"?me.createElement(oi,(0,ae.Z)({key:xr},Hr,{title:Ut}),li(Ln)):me.createElement(pn,(0,ae.Z)({key:xr},Hr,{title:Ut}),li(Ln)):Mr==="divider"?me.createElement(jt,(0,ae.Z)({key:xr},Hr)):me.createElement(qr,(0,ae.Z)({key:xr},Hr),Ut)}return null}).filter(function(et){return et})}function ci(je,et,Et){var It=je;return et&&(It=li(et)),Pi(It,Et)}var Oi=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],ra=[],hr=me.forwardRef(function(je,et){var Et,It,Ut=je,Ln=Ut.prefixCls,Nn=Ln===void 0?"rc-menu":Ln,Mr=Ut.rootClassName,Hr=Ut.style,xr=Ut.className,Gn=Ut.tabIndex,jn=Gn===void 0?0:Gn,$n=Ut.items,dr=Ut.children,Kr=Ut.direction,kr=Ut.id,Cr=Ut.mode,Ir=Cr===void 0?"vertical":Cr,Ue=Ut.inlineCollapsed,We=Ut.disabled,we=Ut.disabledOverflow,Oe=Ut.subMenuOpenDelay,st=Oe===void 0?.1:Oe,tt=Ut.subMenuCloseDelay,_t=tt===void 0?.1:tt,rn=Ut.forceSubMenuRender,Xe=Ut.defaultOpenKeys,Qe=Ut.openKeys,lt=Ut.activeKey,ut=Ut.defaultActiveFirst,en=Ut.selectable,cn=en===void 0?!0:en,Wt=Ut.multiple,un=Wt===void 0?!1:Wt,On=Ut.defaultSelectedKeys,ar=Ut.selectedKeys,Fn=Ut.onSelect,An=Ut.onDeselect,Zn=Ut.inlineIndent,or=Zn===void 0?24:Zn,Tr=Ut.motion,pr=Ut.defaultMotions,zn=Ut.triggerSubMenuAction,Pr=zn===void 0?"hover":zn,Fr=Ut.builtinPlacements,si=Ut.itemIcon,pi=Ut.expandIcon,hi=Ut.overflowedIndicator,ki=hi===void 0?"...":hi,Ni=Ut.overflowedIndicatorPopupClassName,mi=Ut.getPopupContainer,bi=Ut.onClick,Yr=Ut.onOpenChange,ii=Ut.onKeyDown,xi=Ut.openAnimation,Ii=Ut.openTransitionName,ha=Ut._internalRenderMenuItem,da=Ut._internalRenderSubMenuItem,ji=(0,ke.Z)(Ut,Oi),Xi=me.useMemo(function(){return ci(dr,$n,ra)},[dr,$n]),Ci=me.useState(!1),gi=(0,ge.Z)(Ci,2),la=gi[0],Ei=gi[1],Ur=me.useRef(),vi=Kt(kr),Ji=Kr==="rtl",Zi=(0,mn.Z)(Xe,{value:Qe,postState:function(Fa){return Fa||ra}}),ua=(0,ge.Z)(Zi,2),Li=ua[0],ga=ua[1],fa=function(Fa){var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function vo(){ga(Fa),Yr==null||Yr(Fa)}no?(0,Ce.flushSync)(vo):vo()},sa=me.useState(Li),ca=(0,ge.Z)(sa,2),ba=ca[0],Ta=ca[1],Ca=me.useRef(!1),Ma=me.useMemo(function(){return(Ir==="inline"||Ir==="vertical")&&Ue?["vertical",Ue]:[Ir,!1]},[Ir,Ue]),Ha=(0,ge.Z)(Ma,2),Va=Ha[0],$a=Ha[1],Ra=Va==="inline",xa=me.useState(Va),zi=(0,ge.Z)(xa,2),Yi=zi[0],pa=zi[1],Ea=me.useState($a),Ka=(0,ge.Z)(Ea,2),eo=Ka[0],uo=Ka[1];me.useEffect(function(){pa(Va),uo($a),Ca.current&&(Ra?ga(ba):fa(ra))},[Va,$a]);var Mo=me.useState(0),ko=(0,ge.Z)(Mo,2),to=ko[0],Pa=ko[1],fi=to>=Xi.length-1||Yi!=="horizontal"||we;me.useEffect(function(){Ra&&Ta(Li)},[Li]),me.useEffect(function(){return Ca.current=!0,function(){Ca.current=!1}},[]);var Wi=an(),Aa=Wi.registerPath,va=Wi.unregisterPath,Ga=Wi.refreshOverflowKeys,Za=Wi.isSubPathKey,To=Wi.getKeyPath,Ho=Wi.getKeys,as=Wi.getSubPathKeys,ma=me.useMemo(function(){return{registerPath:Aa,unregisterPath:va}},[Aa,va]),ni=me.useMemo(function(){return{isSubPathKey:Za}},[Za]);me.useEffect(function(){Ga(fi?ra:Xi.slice(to+1).map(function(fo){return fo.key}))},[to,fi]);var Vi=(0,mn.Z)(lt||ut&&((Et=Xi[0])===null||Et===void 0?void 0:Et.key),{value:lt}),Gi=(0,ge.Z)(Vi,2),$i=Gi[0],Ya=Gi[1],qa=ze(function(fo){Ya(fo)}),Ko=ze(function(){Ya(void 0)});(0,me.useImperativeHandle)(et,function(){return{list:Ur.current,focus:function(Fa){var no,vo=$i!=null?$i:(no=Xi.find(function(xs){return!xs.props.disabled}))===null||no===void 0?void 0:no.key;if(vo){var bo,jo,So;(bo=Ur.current)===null||bo===void 0||(jo=bo.querySelector("li[data-menu-id='".concat(fe(vi,vo),"']")))===null||jo===void 0||(So=jo.focus)===null||So===void 0||So.call(jo,Fa)}}}});var Vo=(0,mn.Z)(On||[],{value:ar,postState:function(Fa){return Array.isArray(Fa)?Fa:Fa==null?ra:[Fa]}}),us=(0,ge.Z)(Vo,2),Ba=us[0],Fo=us[1],ds=function(Fa){if(cn){var no=Fa.key,vo=Ba.includes(no),bo;un?vo?bo=Ba.filter(function(So){return So!==no}):bo=[].concat((0,rt.Z)(Ba),[no]):bo=[no],Fo(bo);var jo=(0,_e.Z)((0,_e.Z)({},Fa),{},{selectedKeys:bo});vo?An==null||An(jo):Fn==null||Fn(jo)}!un&&Li.length&&Yi!=="inline"&&fa(ra)},ul=ze(function(fo){bi==null||bi(fr(fo)),ds(fo)}),Bs=ze(function(fo,Fa){var no=Li.filter(function(bo){return bo!==fo});if(Fa)no.push(fo);else if(Yi!=="inline"){var vo=as(fo);no=no.filter(function(bo){return!vo.has(bo)})}(0,kn.Z)(Li,no,!0)||fa(no,!0)}),ms=function(Fa,no){var vo=no!=null?no:!Li.includes(Fa);Bs(Fa,vo)},Wo=gr(Yi,$i,Ji,vi,Ur,Ho,To,Ya,ms,ii);me.useEffect(function(){Ei(!0)},[]);var Ds=me.useMemo(function(){return{_internalRenderMenuItem:ha,_internalRenderSubMenuItem:da}},[ha,da]),Is=Yi!=="horizontal"||we?Xi:Xi.map(function(fo,Fa){return me.createElement(Ge,{key:fo.key,overflowDisabled:Fa>to},fo)}),Js=me.createElement(Tt,(0,ae.Z)({id:kr,ref:Ur,prefixCls:"".concat(Nn,"-overflow"),component:"ul",itemComponent:qr,className:xe()(Nn,"".concat(Nn,"-root"),"".concat(Nn,"-").concat(Yi),xr,(It={},(0,Le.Z)(It,"".concat(Nn,"-inline-collapsed"),eo),(0,Le.Z)(It,"".concat(Nn,"-rtl"),Ji),It),Mr),dir:Kr,style:Hr,role:"menu",tabIndex:jn,data:Is,renderRawItem:function(Fa){return Fa},renderRawRest:function(Fa){var no=Fa.length,vo=no?Xi.slice(-no):null;return me.createElement(pn,{eventKey:Zt,title:ki,disabled:fi,internalPopupClose:no===0,popupClassName:Ni},vo)},maxCount:Yi!=="horizontal"||we?Tt.INVALIDATE:Tt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Fa){Pa(Fa)},onKeyDown:Wo},ji));return me.createElement(Ot.Provider,{value:Ds},me.createElement(Pe.Provider,{value:vi},me.createElement(Ge,{prefixCls:Nn,rootClassName:Mr,mode:Yi,openKeys:Li,rtl:Ji,disabled:We,motion:la?Tr:null,defaultMotions:la?pr:null,activeKey:$i,onActive:qa,onInactive:Ko,selectedKeys:Ba,inlineIndent:or,subMenuOpenDelay:st,subMenuCloseDelay:_t,forceSubMenuRender:rn,builtinPlacements:Fr,triggerSubMenuAction:Pr,getPopupContainer:mi,itemIcon:si,expandIcon:pi,onItemClick:ul,onOpenChange:Bs},me.createElement(it.Provider,{value:ni},Js),me.createElement("div",{style:{display:"none"},"aria-hidden":!0},me.createElement(Ht.Provider,{value:ma},Xi)))))}),Qi=hr,Re=Qi;Re.Item=qr,Re.SubMenu=pn,Re.ItemGroup=oi,Re.Divider=jt;var Ze=Re},81626:function(yn,fn){"use strict";fn.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},66680:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Le}});var ae=se(67294);function Le(_e){var rt=ae.useRef();rt.current=_e;var ge=ae.useCallback(function(){for(var ke,Ee=arguments.length,xe=new Array(Ee),me=0;me<Ee;me++)xe[me]=arguments[me];return(ke=rt.current)===null||ke===void 0?void 0:ke.call.apply(ke,[rt].concat(xe))},[]);return ge}},21770:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return ke}});var ae=se(97685),Le=se(66680),_e=se(8410),rt=se(63896);function ge(Ee){return Ee!==void 0}function ke(Ee,xe){var me=xe||{},De=me.defaultValue,ot=me.value,Ne=me.onChange,mt=me.postState,dt=(0,rt.Z)(function(){return ge(ot)?ot:ge(De)?typeof De=="function"?De():De:typeof Ee=="function"?Ee():Ee}),pt=(0,ae.Z)(dt,2),Je=pt[0],Be=pt[1],gt=ot!==void 0?ot:Je,nn=mt?mt(gt):gt,at=(0,Le.Z)(Ne),vt=(0,rt.Z)([gt]),Ce=(0,ae.Z)(vt,2),Ae=Ce[0],Ye=Ce[1];(0,_e.o)(function(){var At=Ae[0];Je!==At&&at(Je,At)},[Ae]),(0,_e.o)(function(){ge(ot)||Be(ot)},[ot]);var Ve=(0,Le.Z)(function(At,xt){Be(At,xt),Ye([gt],xt)});return[nn,Ve]}},91881:function(yn,fn,se){"use strict";var ae=se(71002),Le=se(80334);function _e(rt,ge){var ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ee=new Set;function xe(me,De){var ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ne=Ee.has(me);if((0,Le.ZP)(!Ne,"Warning: There may be circular references"),Ne)return!1;if(me===De)return!0;if(ke&&ot>1)return!1;Ee.add(me);var mt=ot+1;if(Array.isArray(me)){if(!Array.isArray(De)||me.length!==De.length)return!1;for(var dt=0;dt<me.length;dt++)if(!xe(me[dt],De[dt],mt))return!1;return!0}if(me&&De&&(0,ae.Z)(me)==="object"&&(0,ae.Z)(De)==="object"){var pt=Object.keys(me);return pt.length!==Object.keys(De).length?!1:pt.every(function(Je){return xe(me[Je],De[Je],mt)})}return!1}return xe(rt,ge)}fn.Z=_e},98423:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Le}});var ae=se(1413);function Le(_e,rt){var ge=(0,ae.Z)({},_e);return Array.isArray(rt)&&rt.forEach(function(ke){delete ge[ke]}),ge}},64217:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return xe}});var ae=se(1413),Le=`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`,_e=`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`,rt="".concat(Le," ").concat(_e).split(/[\s\n]+/),ge="aria-",ke="data-";function Ee(me,De){return me.indexOf(De)===0}function xe(me){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ot;De===!1?ot={aria:!0,data:!0,attr:!0}:De===!0?ot={aria:!0}:ot=(0,ae.Z)({},De);var Ne={};return Object.keys(me).forEach(function(mt){(ot.aria&&(mt==="role"||Ee(mt,ge))||ot.data&&Ee(mt,ke)||ot.attr&&rt.includes(mt))&&(Ne[mt]=me[mt])}),Ne}},73299:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return Jr}});var ae=se(87462),Le=se(1413),_e=se(71002),rt=se(97685),ge=se(4942),ke=se(45987),Ee=se(67294),xe=se(73935),me=se(94184),De=se.n(me),ot=se(48555),Ne=Ee.forwardRef(function(kt,vn){var Rn=kt.height,In=kt.offsetY,nr=kt.offsetX,gr=kt.children,sr=kt.prefixCls,Un=kt.onInnerResize,qe=kt.innerProps,wt=kt.rtl,Zt=kt.extra,an={},ze={display:"flex",flexDirection:"column"};if(In!==void 0){var Ct;an={height:Rn,position:"relative",overflow:"hidden"},ze=(0,Le.Z)((0,Le.Z)({},ze),{},(Ct={transform:"translateY(".concat(In,"px)")},(0,ge.Z)(Ct,wt?"marginRight":"marginLeft",-nr),(0,ge.Z)(Ct,"position","absolute"),(0,ge.Z)(Ct,"left",0),(0,ge.Z)(Ct,"right",0),(0,ge.Z)(Ct,"top",0),Ct))}return Ee.createElement("div",{style:an},Ee.createElement(ot.Z,{onResize:function(Kt){var hn=Kt.offsetHeight;hn&&Un&&Un()}},Ee.createElement("div",(0,ae.Z)({style:ze,className:De()((0,ge.Z)({},"".concat(sr,"-holder-inner"),sr)),ref:vn},qe),gr,Zt)))});Ne.displayName="Filler";var mt=Ne,dt=function(vn){return+setTimeout(vn,16)},pt=function(vn){return clearTimeout(vn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(dt=function(vn){return window.requestAnimationFrame(vn)},pt=function(vn){return window.cancelAnimationFrame(vn)});var Je=0,Be=new Map;function gt(kt){Be.delete(kt)}var nn=function(vn){var Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Je+=1;var In=Je;function nr(gr){if(gr===0)gt(In),vn();else{var sr=dt(function(){nr(gr-1)});Be.set(In,sr)}}return nr(Rn),In};nn.cancel=function(kt){var vn=Be.get(kt);return gt(vn),pt(vn)};var at=nn;function vt(kt,vn){var Rn="touches"in kt?kt.touches[0]:kt;return Rn[vn?"pageX":"pageY"]}var Ce=Ee.forwardRef(function(kt,vn){var Rn,In=kt.prefixCls,nr=kt.rtl,gr=kt.scrollOffset,sr=kt.scrollRange,Un=kt.onStartMove,qe=kt.onStopMove,wt=kt.onScroll,Zt=kt.horizontal,an=kt.spinSize,ze=kt.containerSize,Ct=kt.style,tn=kt.thumbStyle,Kt=Ee.useState(!1),hn=(0,rt.Z)(Kt,2),gn=hn[0],Xn=hn[1],_r=Ee.useState(null),lr=(0,rt.Z)(_r,2),mr=lr[0],Or=lr[1],Rr=Ee.useState(null),Zr=(0,rt.Z)(Rr,2),Kn=Zr[0],fr=Zr[1],Mn=!nr,Sn=Ee.useRef(),on=Ee.useRef(),yr=Ee.useState(!1),Wr=(0,rt.Z)(yr,2),Lr=Wr[0],qr=Wr[1],Cn=Ee.useRef(),Er=function(){clearTimeout(Cn.current),qr(!0),Cn.current=setTimeout(function(){qr(!1)},3e3)},vr=sr-ze||0,ta=ze-an||0,Hi=vr>0,Pi=Ee.useMemo(function(){if(gr===0||vr===0)return 0;var Sa=gr/vr;return Sa*ta},[gr,vr,ta]),Di=function(Si){Si.stopPropagation(),Si.preventDefault()},qi=Ee.useRef({top:Pi,dragging:gn,pageY:mr,startTop:Kn});qi.current={top:Pi,dragging:gn,pageY:mr,startTop:Kn};var Ki=function(Si){Xn(!0),Or(vt(Si,Zt)),fr(qi.current.top),Un(),Si.stopPropagation(),Si.preventDefault()};Ee.useEffect(function(){var Sa=function(Pt){Pt.preventDefault()},Si=Sn.current,$r=on.current;return Si.addEventListener("touchstart",Sa),$r.addEventListener("touchstart",Ki),function(){Si.removeEventListener("touchstart",Sa),$r.removeEventListener("touchstart",Ki)}},[]);var di=Ee.useRef();di.current=vr;var na=Ee.useRef();na.current=ta,Ee.useEffect(function(){if(gn){var Sa,Si=function(Pt){var pn=qi.current,Pn=pn.dragging,cr=pn.pageY,Gr=pn.startTop;if(at.cancel(Sa),Pn){var Xr=vt(Pt,Zt)-cr,oi=Gr;!Mn&&Zt?oi-=Xr:oi+=Xr;var jt=di.current,ur=na.current,li=ur?oi/ur:0,ci=Math.ceil(li*jt);ci=Math.max(ci,0),ci=Math.min(ci,jt),Sa=at(function(){wt(ci,Zt)})}},$r=function(){Xn(!1),qe()};return window.addEventListener("mousemove",Si),window.addEventListener("touchmove",Si),window.addEventListener("mouseup",$r),window.addEventListener("touchend",$r),function(){window.removeEventListener("mousemove",Si),window.removeEventListener("touchmove",Si),window.removeEventListener("mouseup",$r),window.removeEventListener("touchend",$r),at.cancel(Sa)}}},[gn]),Ee.useEffect(function(){Er()},[gr]),Ee.useImperativeHandle(vn,function(){return{delayHidden:Er}});var aa="".concat(In,"-scrollbar"),_i={position:"absolute",visibility:Lr&&Hi?null:"hidden"},Mi={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Zt?(_i.height=8,_i.left=0,_i.right=0,_i.bottom=0,Mi.height="100%",Mi.width=an,Mn?Mi.left=Pi:Mi.right=Pi):(_i.width=8,_i.top=0,_i.bottom=0,Mn?_i.right=0:_i.left=0,Mi.width="100%",Mi.height=an,Mi.top=Pi),Ee.createElement("div",{ref:Sn,className:De()(aa,(Rn={},(0,ge.Z)(Rn,"".concat(aa,"-horizontal"),Zt),(0,ge.Z)(Rn,"".concat(aa,"-vertical"),!Zt),(0,ge.Z)(Rn,"".concat(aa,"-visible"),Lr),Rn)),style:(0,Le.Z)((0,Le.Z)({},_i),Ct),onMouseDown:Di,onMouseMove:Er},Ee.createElement("div",{ref:on,className:De()("".concat(aa,"-thumb"),(0,ge.Z)({},"".concat(aa,"-thumb-moving"),gn)),style:(0,Le.Z)((0,Le.Z)({},Mi),tn),onMouseDown:Ki}))}),Ae=Ce;function Ye(kt){var vn=kt.children,Rn=kt.setRef,In=Ee.useCallback(function(nr){Rn(nr)},[]);return Ee.cloneElement(vn,{ref:In})}function Ve(kt,vn,Rn,In,nr,gr,sr){var Un=sr.getKey;return kt.slice(vn,Rn+1).map(function(qe,wt){var Zt=vn+wt,an=gr(qe,Zt,{style:{width:In}}),ze=Un(qe);return Ee.createElement(Ye,{key:ze,setRef:function(tn){return nr(qe,tn)}},an)})}function At(kt){return kt instanceof HTMLElement||kt instanceof SVGElement}function xt(kt){return At(kt)?kt:kt instanceof Ee.Component?xe.findDOMNode(kt):null}var Lt=se(15671),nt=se(43144),qt=function(){function kt(){(0,Lt.Z)(this,kt),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,nt.Z)(kt,[{key:"set",value:function(Rn,In){this.maps[Rn]=In,this.id+=1}},{key:"get",value:function(Rn){return this.maps[Rn]}}]),kt}(),zt=qt;function bn(kt,vn,Rn){var In=Ee.useState(0),nr=(0,rt.Z)(In,2),gr=nr[0],sr=nr[1],Un=(0,Ee.useRef)(new Map),qe=(0,Ee.useRef)(new zt),wt=(0,Ee.useRef)();function Zt(){at.cancel(wt.current)}function an(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Zt();var tn=function(){Un.current.forEach(function(hn,gn){if(hn&&hn.offsetParent){var Xn=xt(hn),_r=Xn.offsetHeight;qe.current.get(gn)!==_r&&qe.current.set(gn,Xn.offsetHeight)}}),sr(function(hn){return hn+1})};Ct?tn():wt.current=at(tn)}function ze(Ct,tn){var Kt=kt(Ct),hn=Un.current.get(Kt);tn?(Un.current.set(Kt,tn),an()):Un.current.delete(Kt),!hn!=!tn&&(tn?vn==null||vn(Ct):Rn==null||Rn(Ct))}return(0,Ee.useEffect)(function(){return Zt},[]),[ze,an,qe.current,gr]}function dn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Wn=dn()?Ee.useLayoutEffect:Ee.useEffect,rr=function(vn,Rn){var In=Ee.useRef(!0);Wn(function(){return vn(In.current)},Rn),Wn(function(){return In.current=!1,function(){In.current=!0}},[])},ln=function(vn,Rn){rr(function(In){if(!In)return vn()},Rn)},$e=rr;function Se(kt){var vn=Ee.useRef();vn.current=kt;var Rn=Ee.useCallback(function(){for(var In,nr=arguments.length,gr=new Array(nr),sr=0;sr<nr;sr++)gr[sr]=arguments[sr];return(In=vn.current)===null||In===void 0?void 0:In.call.apply(In,[vn].concat(gr))},[]);return Rn}function Bt(kt){var vn=React.useRef(!1),Rn=React.useState(kt),In=_slicedToArray(Rn,2),nr=In[0],gr=In[1];React.useEffect(function(){return vn.current=!1,function(){vn.current=!0}},[]);function sr(Un,qe){qe&&vn.current||gr(Un)}return[nr,sr]}function xn(kt){return kt!==void 0}function Xt(kt,vn){var Rn=vn||{},In=Rn.defaultValue,nr=Rn.value,gr=Rn.onChange,sr=Rn.postState,Un=useState(function(){return xn(nr)?nr:xn(In)?typeof In=="function"?In():In:typeof kt=="function"?kt():kt}),qe=_slicedToArray(Un,2),wt=qe[0],Zt=qe[1],an=nr!==void 0?nr:wt,ze=sr?sr(an):an,Ct=useEvent(gr),tn=useState([an]),Kt=_slicedToArray(tn,2),hn=Kt[0],gn=Kt[1];useLayoutUpdateEffect(function(){var _r=hn[0];wt!==_r&&Ct(wt,_r)},[hn]),useLayoutUpdateEffect(function(){xn(nr)||Zt(nr)},[nr]);var Xn=useEvent(function(_r,lr){Zt(_r,lr),gn([an],lr)});return[ze,Xn]}var ft=se(31461);function yt(kt,vn,Rn){var In=React.useRef({});return(!("value"in In.current)||Rn(In.current.condition,vn))&&(In.current.value=kt(),In.current.condition=vn),In.current.value}function Gt(kt,vn){typeof kt=="function"?kt(vn):_typeof(kt)==="object"&&kt&&"current"in kt&&(kt.current=vn)}function qn(){for(var kt=arguments.length,vn=new Array(kt),Rn=0;Rn<kt;Rn++)vn[Rn]=arguments[Rn];var In=vn.filter(function(nr){return nr});return In.length<=1?In[0]:function(nr){vn.forEach(function(gr){Gt(gr,nr)})}}function Dn(){for(var kt=arguments.length,vn=new Array(kt),Rn=0;Rn<kt;Rn++)vn[Rn]=arguments[Rn];return useMemo(function(){return qn.apply(void 0,vn)},vn,function(In,nr){return In.length!==nr.length||In.every(function(gr,sr){return gr!==nr[sr]})})}function Tt(kt){var vn,Rn,In=isMemo(kt)?kt.type.type:kt.type;return!(typeof In=="function"&&!((vn=In.prototype)!==null&&vn!==void 0&&vn.render)||typeof kt=="function"&&!((Rn=kt.prototype)!==null&&Rn!==void 0&&Rn.render))}function mn(kt){return!isValidElement(kt)||isFragment(kt)?!1:Tt(kt)}function Vn(kt,vn,Rn,In){if(!vn.length)return Rn;var nr=_toArray(vn),gr=nr[0],sr=nr.slice(1),Un;return!kt&&typeof gr=="number"?Un=[]:Array.isArray(kt)?Un=_toConsumableArray(kt):Un=_objectSpread({},kt),In&&Rn===void 0&&sr.length===1?delete Un[gr][sr[0]]:Un[gr]=Vn(Un[gr],sr,Rn,In),Un}function kn(kt,vn,Rn){var In=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return vn.length&&In&&Rn===void 0&&!get(kt,vn.slice(0,-1))?kt:Vn(kt,vn,Rn,In)}function Pe(kt){return _typeof(kt)==="object"&&kt!==null&&Object.getPrototypeOf(kt)===Object.prototype}function fe(kt){return Array.isArray(kt)?[]:{}}var ce=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function he(){for(var kt=arguments.length,vn=new Array(kt),Rn=0;Rn<kt;Rn++)vn[Rn]=arguments[Rn];var In=fe(vn[0]);return vn.forEach(function(nr){function gr(sr,Un){var qe=new Set(Un),wt=get(nr,sr),Zt=Array.isArray(wt);if(Zt||Pe(wt)){if(!qe.has(wt)){qe.add(wt);var an=get(In,sr);Zt?In=kn(In,sr,[]):(!an||_typeof(an)!=="object")&&(In=kn(In,sr,fe(wt))),ce(wt).forEach(function(ze){gr([].concat(_toConsumableArray(sr),[ze]),qe)})}}else In=kn(In,sr,wt)}gr([])}),In}var ue={},le=[],Me=function(vn){le.push(vn)};function Ge(kt,vn){if(0)var Rn}function St(kt,vn){if(0)var Rn}function Ht(){ue={}}function Yt(kt,vn,Rn){!vn&&!ue[Rn]&&(kt(!1,Rn),ue[Rn]=!0)}function Vt(kt,vn){Yt(Ge,kt,vn)}function sn(kt,vn){Yt(St,kt,vn)}Vt.preMessage=Me,Vt.resetWarned=Ht,Vt.noteOnce=sn;var it=null,Mt=10;function Ot(kt,vn,Rn,In,nr,gr,sr,Un){var qe=Ee.useRef(),wt=Ee.useState(null),Zt=(0,rt.Z)(wt,2),an=Zt[0],ze=Zt[1];return $e(function(){if(an&&an.times<Mt){if(!kt.current){ze(function(Er){return(0,Le.Z)({},Er)});return}gr();var Ct=an.targetAlign,tn=an.originAlign,Kt=an.index,hn=an.offset,gn=kt.current.clientHeight,Xn=!1,_r=Ct,lr=null;if(gn){for(var mr=Ct||tn,Or=0,Rr=0,Zr=0,Kn=Math.min(vn.length-1,Kt),fr=0;fr<=Kn;fr+=1){var Mn=nr(vn[fr]);Rr=Or;var Sn=Rn.get(Mn);Zr=Rr+(Sn===void 0?In:Sn),Or=Zr}for(var on=mr==="top"?hn:gn-hn,yr=Kn;yr>=0;yr-=1){var Wr=nr(vn[yr]),Lr=Rn.get(Wr);if(Lr===void 0){Xn=!0;break}if(on-=Lr,on<=0)break}switch(mr){case"top":lr=Rr-hn;break;case"bottom":lr=Zr-gn+hn;break;default:{var qr=kt.current.scrollTop,Cn=qr+gn;Rr<qr?_r="top":Zr>Cn&&(_r="bottom")}}lr!==null&&sr(lr),lr!==an.lastTop&&(Xn=!0)}Xn&&ze(function(Er){return(0,Le.Z)((0,Le.Z)({},Er),{},{times:Er.times+1,targetAlign:_r,lastTop:lr})})}},[an,kt.current]),function(Ct){if(Ct==null){Un();return}if(at.cancel(qe.current),typeof Ct=="number")sr(Ct);else if(Ct&&(0,_e.Z)(Ct)==="object"){var tn,Kt=Ct.align;"index"in Ct?tn=Ct.index:tn=vn.findIndex(function(Xn){return nr(Xn)===Ct.key});var hn=Ct.offset,gn=hn===void 0?0:hn;ze({times:0,index:tn,offset:gn,originAlign:Kt})}}}function $t(kt,vn,Rn,In){var nr=Rn-kt,gr=vn-Rn,sr=Math.min(nr,gr)*2;if(In<=sr){var Un=Math.floor(In/2);return In%2?Rn+Un+1:Rn-Un}return nr>gr?Rn-(In-gr):Rn+(In-nr)}function bt(kt,vn,Rn){var In=kt.length,nr=vn.length,gr,sr;if(In===0&&nr===0)return null;In<nr?(gr=kt,sr=vn):(gr=vn,sr=kt);var Un={__EMPTY_ITEM__:!0};function qe(tn){return tn!==void 0?Rn(tn):Un}for(var wt=null,Zt=Math.abs(In-nr)!==1,an=0;an<sr.length;an+=1){var ze=qe(gr[an]),Ct=qe(sr[an]);if(ze!==Ct){wt=an,Zt=Zt||ze!==qe(sr[an+1]);break}}return wt===null?null:{index:wt,multiple:Zt}}function _n(kt,vn,Rn){var In=Ee.useState(kt),nr=(0,rt.Z)(In,2),gr=nr[0],sr=nr[1],Un=Ee.useState(null),qe=(0,rt.Z)(Un,2),wt=qe[0],Zt=qe[1];return Ee.useEffect(function(){var an=bt(gr||[],kt||[],vn);(an==null?void 0:an.index)!==void 0&&(Rn==null||Rn(an.index),Zt(kt[an.index])),sr(kt)},[kt]),[wt]}var ct=(typeof navigator=="undefined"?"undefined":(0,_e.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Dt=ct,En=function(kt,vn){var Rn=(0,Ee.useRef)(!1),In=(0,Ee.useRef)(null);function nr(){clearTimeout(In.current),Rn.current=!0,In.current=setTimeout(function(){Rn.current=!1},50)}var gr=(0,Ee.useRef)({top:kt,bottom:vn});return gr.current.top=kt,gr.current.bottom=vn,function(sr){var Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=sr<0&&gr.current.top||sr>0&&gr.current.bottom;return Un&&qe?(clearTimeout(In.current),Rn.current=!1):(!qe||Rn.current)&&nr(),!Rn.current&&qe}};function wn(kt,vn,Rn,In,nr){var gr=(0,Ee.useRef)(0),sr=(0,Ee.useRef)(null),Un=(0,Ee.useRef)(null),qe=(0,Ee.useRef)(!1),wt=En(vn,Rn);function Zt(hn,gn){at.cancel(sr.current),gr.current+=gn,Un.current=gn,!wt(gn)&&(Dt||hn.preventDefault(),sr.current=at(function(){var Xn=qe.current?10:1;nr(gr.current*Xn),gr.current=0}))}function an(hn,gn){nr(gn,!0),Dt||hn.preventDefault()}var ze=(0,Ee.useRef)(null),Ct=(0,Ee.useRef)(null);function tn(hn){if(kt){at.cancel(Ct.current),Ct.current=at(function(){ze.current=null},2);var gn=hn.deltaX,Xn=hn.deltaY,_r=hn.shiftKey,lr=gn,mr=Xn;(ze.current==="sx"||!ze.current&&_r&&Xn&&!gn)&&(lr=Xn,mr=0,ze.current="sx");var Or=Math.abs(lr),Rr=Math.abs(mr);ze.current===null&&(ze.current=In&&Or>Rr?"x":"y"),ze.current==="y"?Zt(hn,mr):an(hn,lr)}}function Kt(hn){kt&&(qe.current=hn.detail===Un.current)}return[tn,Kt]}var Bn=14/15;function Qn(kt,vn,Rn){var In=(0,Ee.useRef)(!1),nr=(0,Ee.useRef)(0),gr=(0,Ee.useRef)(null),sr=(0,Ee.useRef)(null),Un,qe=function(ze){if(In.current){var Ct=Math.ceil(ze.touches[0].pageY),tn=nr.current-Ct;nr.current=Ct,Rn(tn)&&ze.preventDefault(),clearInterval(sr.current),sr.current=setInterval(function(){tn*=Bn,(!Rn(tn,!0)||Math.abs(tn)<=.1)&&clearInterval(sr.current)},16)}},wt=function(){In.current=!1,Un()},Zt=function(ze){Un(),ze.touches.length===1&&!In.current&&(In.current=!0,nr.current=Math.ceil(ze.touches[0].pageY),gr.current=ze.target,gr.current.addEventListener("touchmove",qe),gr.current.addEventListener("touchend",wt))};Un=function(){gr.current&&(gr.current.removeEventListener("touchmove",qe),gr.current.removeEventListener("touchend",wt))},$e(function(){return kt&&vn.current.addEventListener("touchstart",Zt),function(){var an;(an=vn.current)===null||an===void 0||an.removeEventListener("touchstart",Zt),Un(),clearInterval(sr.current)}},[kt])}var wr=20;function br(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Rn=kt/vn*100;return isNaN(Rn)&&(Rn=0),Rn=Math.max(Rn,wr),Rn=Math.min(Rn,kt/2),Math.floor(Rn)}function Sr(kt,vn,Rn,In){var nr=Ee.useMemo(function(){return[new Map,[]]},[kt,Rn.id,In]),gr=(0,rt.Z)(nr,2),sr=gr[0],Un=gr[1],qe=function(Zt){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt,ze=sr.get(Zt),Ct=sr.get(an);if(ze===void 0||Ct===void 0)for(var tn=kt.length,Kt=Un.length;Kt<tn;Kt+=1){var hn,gn=kt[Kt],Xn=vn(gn);sr.set(Xn,Kt);var _r=(hn=Rn.get(Xn))!==null&&hn!==void 0?hn:In;if(Un[Kt]=(Un[Kt-1]||0)+_r,Xn===Zt&&(ze=Kt),Xn===an&&(Ct=Kt),ze!==void 0&&Ct!==void 0)break}return{top:Un[ze-1]||0,bottom:Un[Ct]}};return qe}var Yn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],ir=[],Dr={overflowY:"auto",overflowAnchor:"none"};function ti(kt,vn){var Rn=kt.prefixCls,In=Rn===void 0?"rc-virtual-list":Rn,nr=kt.className,gr=kt.height,sr=kt.itemHeight,Un=kt.fullHeight,qe=Un===void 0?!0:Un,wt=kt.style,Zt=kt.data,an=kt.children,ze=kt.itemKey,Ct=kt.virtual,tn=kt.direction,Kt=kt.scrollWidth,hn=kt.component,gn=hn===void 0?"div":hn,Xn=kt.onScroll,_r=kt.onVirtualScroll,lr=kt.onVisibleChange,mr=kt.innerProps,Or=kt.extraRender,Rr=kt.styles,Zr=(0,ke.Z)(kt,Yn),Kn=!!(Ct!==!1&&gr&&sr),fr=Kn&&Zt&&(sr*Zt.length>gr||!!Kt),Mn=tn==="rtl",Sn=De()(In,(0,ge.Z)({},"".concat(In,"-rtl"),Mn),nr),on=Zt||ir,yr=(0,Ee.useRef)(),Wr=(0,Ee.useRef)(),Lr=(0,Ee.useState)(0),qr=(0,rt.Z)(Lr,2),Cn=qr[0],Er=qr[1],vr=(0,Ee.useState)(0),ta=(0,rt.Z)(vr,2),Hi=ta[0],Pi=ta[1],Di=(0,Ee.useState)(!1),qi=(0,rt.Z)(Di,2),Ki=qi[0],di=qi[1],na=function(){di(!0)},aa=function(){di(!1)},_i=Ee.useCallback(function(ut){return typeof ze=="function"?ze(ut):ut==null?void 0:ut[ze]},[ze]),Mi={getKey:_i};function Sa(ut){Er(function(en){var cn;typeof ut=="function"?cn=ut(en):cn=ut;var Wt=Mr(cn);return yr.current.scrollTop=Wt,Wt})}var Si=(0,Ee.useRef)({start:0,end:on.length}),$r=(0,Ee.useRef)(),Ft=_n(on,_i),Pt=(0,rt.Z)(Ft,1),pn=Pt[0];$r.current=pn;var Pn=bn(_i,null,null),cr=(0,rt.Z)(Pn,4),Gr=cr[0],Xr=cr[1],oi=cr[2],jt=cr[3],ur=Ee.useMemo(function(){if(!Kn)return{scrollHeight:void 0,start:0,end:on.length-1,offset:void 0};if(!fr){var ut;return{scrollHeight:((ut=Wr.current)===null||ut===void 0?void 0:ut.offsetHeight)||0,start:0,end:on.length-1,offset:void 0}}for(var en=0,cn,Wt,un,On=on.length,ar=0;ar<On;ar+=1){var Fn=on[ar],An=_i(Fn),Zn=oi.get(An),or=en+(Zn===void 0?sr:Zn);or>=Cn&&cn===void 0&&(cn=ar,Wt=en),or>Cn+gr&&un===void 0&&(un=ar),en=or}return cn===void 0&&(cn=0,Wt=0,un=Math.ceil(gr/sr)),un===void 0&&(un=on.length-1),un=Math.min(un+1,on.length-1),{scrollHeight:en,start:cn,end:un,offset:Wt}},[fr,Kn,Cn,on,jt,gr]),li=ur.scrollHeight,ci=ur.start,Oi=ur.end,ra=ur.offset;Si.current.start=ci,Si.current.end=Oi;var hr=Ee.useState({width:0,height:gr}),Qi=(0,rt.Z)(hr,2),Re=Qi[0],Ze=Qi[1],je=function(en){Ze({width:en.width||en.offsetWidth,height:en.height||en.offsetHeight})},et=(0,Ee.useRef)(),Et=(0,Ee.useRef)(),It=Ee.useMemo(function(){return br(Re.width,Kt)},[Re.width,Kt]),Ut=Ee.useMemo(function(){return br(Re.height,li)},[Re.height,li]),Ln=li-gr,Nn=(0,Ee.useRef)(Ln);Nn.current=Ln;function Mr(ut){var en=ut;return Number.isNaN(Nn.current)||(en=Math.min(en,Nn.current)),en=Math.max(en,0),en}var Hr=Cn<=0,xr=Cn>=Ln,Gn=En(Hr,xr),jn=function(){return{x:Mn?-Hi:Hi,y:Cn}},$n=(0,Ee.useRef)(jn()),dr=Se(function(){if(_r){var ut=jn();($n.current.x!==ut.x||$n.current.y!==ut.y)&&(_r(ut),$n.current=ut)}});function Kr(ut,en){var cn=ut;en?((0,xe.flushSync)(function(){Pi(cn)}),dr()):Sa(cn)}function kr(ut){var en=ut.currentTarget.scrollTop;en!==Cn&&Sa(en),Xn==null||Xn(ut),dr()}var Cr=function(en){var cn=en,Wt=Kt-Re.width;return cn=Math.max(cn,0),cn=Math.min(cn,Wt),cn},Ir=Se(function(ut,en){en?((0,xe.flushSync)(function(){Pi(function(cn){var Wt=cn+(Mn?-ut:ut);return Cr(Wt)})}),dr()):Sa(function(cn){var Wt=cn+ut;return Wt})}),Ue=wn(Kn,Hr,xr,!!Kt,Ir),We=(0,rt.Z)(Ue,2),we=We[0],Oe=We[1];Qn(Kn,yr,function(ut,en){return Gn(ut,en)?!1:(we({preventDefault:function(){},deltaY:ut}),!0)}),$e(function(){function ut(cn){Kn&&cn.preventDefault()}var en=yr.current;return en.addEventListener("wheel",we),en.addEventListener("DOMMouseScroll",Oe),en.addEventListener("MozMousePixelScroll",ut),function(){en.removeEventListener("wheel",we),en.removeEventListener("DOMMouseScroll",Oe),en.removeEventListener("MozMousePixelScroll",ut)}},[Kn]),$e(function(){Kt&&Pi(function(ut){return Cr(ut)})},[Re.width,Kt]);var st=function(){var en,cn;(en=et.current)===null||en===void 0||en.delayHidden(),(cn=Et.current)===null||cn===void 0||cn.delayHidden()},tt=Ot(yr,on,oi,sr,_i,function(){return Xr(!0)},Sa,st);Ee.useImperativeHandle(vn,function(){return{getScrollInfo:jn,scrollTo:function(en){function cn(Wt){return Wt&&(0,_e.Z)(Wt)==="object"&&("left"in Wt||"top"in Wt)}cn(en)?(en.left!==void 0&&Pi(Cr(en.left)),tt(en.top)):tt(en)}}}),$e(function(){if(lr){var ut=on.slice(ci,Oi+1);lr(ut,on)}},[ci,Oi,on]);var _t=Sr(on,_i,oi,sr),rn=Or==null?void 0:Or({start:ci,end:Oi,virtual:fr,offsetX:Hi,offsetY:ra,rtl:Mn,getSize:_t}),Xe=Ve(on,ci,Oi,Kt,Gr,an,Mi),Qe=null;gr&&(Qe=(0,Le.Z)((0,ge.Z)({},qe?"height":"maxHeight",gr),Dr),Kn&&(Qe.overflowY="hidden",Kt&&(Qe.overflowX="hidden"),Ki&&(Qe.pointerEvents="none")));var lt={};return Mn&&(lt.dir="rtl"),Ee.createElement("div",(0,ae.Z)({style:(0,Le.Z)((0,Le.Z)({},wt),{},{position:"relative"}),className:Sn},lt,Zr),Ee.createElement(ot.Z,{onResize:je},Ee.createElement(gn,{className:"".concat(In,"-holder"),style:Qe,ref:yr,onScroll:kr,onMouseEnter:st},Ee.createElement(mt,{prefixCls:In,height:li,offsetX:Hi,offsetY:ra,scrollWidth:Kt,onInnerResize:Xr,ref:Wr,innerProps:mr,rtl:Mn,extra:rn},Xe))),fr&&li>gr&&Ee.createElement(Ae,{ref:et,prefixCls:In,scrollOffset:Cn,scrollRange:li,rtl:Mn,onScroll:Kr,onStartMove:na,onStopMove:aa,spinSize:Ut,containerSize:Re.height,style:Rr==null?void 0:Rr.verticalScrollBar,thumbStyle:Rr==null?void 0:Rr.verticalScrollBarThumb}),fr&&Kt&&Ee.createElement(Ae,{ref:Et,prefixCls:In,scrollOffset:Hi,scrollRange:Kt,rtl:Mn,onScroll:Kr,onStartMove:na,onStopMove:aa,spinSize:It,containerSize:Re.width,horizontal:!0,style:Rr==null?void 0:Rr.horizontalScrollBar,thumbStyle:Rr==null?void 0:Rr.horizontalScrollBarThumb}))}var Ai=Ee.forwardRef(ti);Ai.displayName="List";var tr=Ai,Jr=tr},66392:function(yn,fn){"use strict";var se;var ae=Symbol.for("react.element"),Le=Symbol.for("react.portal"),_e=Symbol.for("react.fragment"),rt=Symbol.for("react.strict_mode"),ge=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),Ee=Symbol.for("react.context"),xe=Symbol.for("react.server_context"),me=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),ot=Symbol.for("react.suspense_list"),Ne=Symbol.for("react.memo"),mt=Symbol.for("react.lazy"),dt=Symbol.for("react.offscreen"),pt;pt=Symbol.for("react.module.reference");function Je(Be){if(typeof Be=="object"&&Be!==null){var gt=Be.$$typeof;switch(gt){case ae:switch(Be=Be.type,Be){case _e:case ge:case rt:case De:case ot:return Be;default:switch(Be=Be&&Be.$$typeof,Be){case xe:case Ee:case me:case mt:case Ne:case ke:return Be;default:return gt}}case Le:return gt}}}se=Ee,se=ke,se=ae,se=me,se=_e,se=mt,se=Ne,se=Le,se=ge,se=rt,se=De,se=ot,se=function(){return!1},se=function(){return!1},se=function(Be){return Je(Be)===Ee},se=function(Be){return Je(Be)===ke},se=function(Be){return typeof Be=="object"&&Be!==null&&Be.$$typeof===ae},se=function(Be){return Je(Be)===me},se=function(Be){return Je(Be)===_e},se=function(Be){return Je(Be)===mt},se=function(Be){return Je(Be)===Ne},se=function(Be){return Je(Be)===Le},se=function(Be){return Je(Be)===ge},se=function(Be){return Je(Be)===rt},se=function(Be){return Je(Be)===De},se=function(Be){return Je(Be)===ot},se=function(Be){return typeof Be=="string"||typeof Be=="function"||Be===_e||Be===ge||Be===rt||Be===De||Be===ot||Be===dt||typeof Be=="object"&&Be!==null&&(Be.$$typeof===mt||Be.$$typeof===Ne||Be.$$typeof===ke||Be.$$typeof===Ee||Be.$$typeof===me||Be.$$typeof===pt||Be.getModuleId!==void 0)},se=Je},31461:function(yn,fn,se){"use strict";se(66392)},25365:function(yn){"use strict";yn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAA0VJREFUOE+V03lI01EcAPD3fjucs4nmwrXNOY/VdBoe0Tqggi5NgsLaWriWZFQEEvRHBxmL+iMo/KMg6KJSCy03mbapo1vXzCvJUstjZTM1bUzZZP6uF5M0Zwr1/nsHn/d93+/7QjBn3GhuZkm5scvRJIgODWX7sKCQT0oRGIAQorlnp+cIAAhnJghhhobvWRPjQ/rJ8eEVXIxGwcFsGBYWQUTFLrN6yCB9qpjdthA2BSGEsEd1X08NOlrPSiM4PxWJCSNL+HwfSZBMp/Mbr6+vVyyVyQm+SJYrCWea5sOmoMqm4ezu9rqSrUpFjzxBPgpoCkCEwO+3IJIgWRWVpiR5cirF40crZZGc3rkYdDgQp+advUXC9YZs2rjBQRCTwK/T6E9KaJoGJEVxyw3GtNUbt11KWSYp+AuyfRlf86baVJezc0sLb1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y0xUSlFGGGMwMhCT9P2peMS0vUEUNJjETXFS+oa7c5gkV7wuchoGl0C62g6GBA/MJHMMWVWunf6PqlZIUPOsnC3zPrV59NeR2WoA3qkocJmh1miWmxmq0h0ihx7lsHwgkHTrXAAlCGlMq3qnWlUcM2KS192p3IqhFa5AJ7dBoXKBJIN7QJCcEWPvpJDAyIhV1N81GOOIAZNJDkhmYZTdrTFUAhtrrOzUt1ujxj4C2E201JZgcZ/VNWkawOh62secBqLWufgcqCvLDs0z3+CAZIwYe9xdLVepXJScFOKWhWQOd1rVoqqDTMGnV2U85AEN2cQw5h245yd7OLo8oxt4wVyYGyQnkXUadIa6K4xARA9+HALJ8vvfsW0kKnen3JQDkptFyiUKAIUrctSaSGh56uZGIGn3ZTLJ+99dlOpz/lcFOSQxrizjSBCQboZJdYMkWxgekNxFTckgs9cTNM7IZpxqypkTriKZzoPt3xpREzYp6t7x2f8ARtZc8eay0EoAAAAASUVORK5CYII="},39057:function(yn){"use strict";yn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7svWuXJMdxJWgRmVmP7gYIgEOOtLMjUY/R7v//OfthZ85KsyNRIgg0+lFVmRkx59o1czf38HhkVjXQAFE8TVRlRvjD3Nzsur28k19/fqXArxT4lQK/UuBXCvxKgV8p8EIU6F6onV+b+ZUCv1LgVwr8SoFfKfArBX6lgHT//O15/DHpUCOZH7Xz2Ylei68w+va7+LScG/9qv+FtxDc6GcdRm++ks7bGutH1pbt2amst21AxNv15Rj959hXFjFjPaNpmUbYwppVJozcK87l5npxf75JcsYdnEqca0ZSvnk+dtaV++e+dwktjzzQsFqTjmum3oRm2ZOtZbSc8hue5j/ie/x3n1nXeSv50ygv8RJ9MY7Hn08O+1+t9nfnNG8EW5xJHZs98NmCsEANdJ/tulLP2PEiP/442nw5z6/XzYTTq6HcmObSBXkSfm/uxtrTdtLk50/A3WgSZtHX812iA3imrbDq2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JeXRCmRFLMcQEVOwgJONs7WMoRk/uRNH8p72je4x+xBEn2CjyIg2UsoN2kZ8yJsK6lIEYNv61Ol0AY0s40gKDRJ6PWhVbAfnokh/+f17oKelHNP2kwROsZoa+DDnL4JaDI+U/UejzbXSaxR/K5ygXVan6UasJJiI6AV8jKgQWdQh+P8NewCBXTkFh5dNNOoB4NwLLtSc05opxCA5sQ2qkzqjlkPGndvq4I2alefyPfrwQWLWvK26J+U4VPtymGNvr6jJCkpX+Gv4bASrciDcnqMQ62IDT82UnbIvbP3v2aDjMISHRqDvhU/jScZAIuZpF7urMIRHhxMtxaDVxkP5s6/PTemjld9JmqnoUAXdp76ZqangOGXnmbuSSwINlw66vnonq757l0gHwoTNt7cz8nd3Yz4f/0XK6vduVqt42shwKRVC5U58oEJnXL9FPjpcPhFGHaBhdxW4sOsYHZjZGul8dDeXg4eBKtw86VGhGVwicBOpT6OxwMMV/3EQg6AWKIUvH5RNolA29CDT3wmNspggFJXkNUkl1IuQKnQixEgIwkJ5MjBYF/fTCG7E6XWDeW06oJpdinfW8BEx7JYaHE0aM0JdIN1IOF8WgwFO5YnABqrkUiiFDCsnyPqU9PKWXmCwc5De9OC0XNdja1QysjHUcte17BFMJCEZ5K6RCDwN/tGnKlws/cKIg8Kj4vMASYVKjdqXExZzAh8op+/5zRwrdHv1HgGwW+UeAbBb5R4BsFvlGgpcA3YPFtR3yjwDcKfKPANwp8o8A3ClyMAv8DD8nJIGmcntAAAAAASUVORK5CYII="},96908:function(yn){"use strict";yn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6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DMyd0p8Is4oC0STt4cZs628wWBbYnBECByU2ty32e5U9kTU7JoOMIGzAVIDuVTbZOOyETtJIz2r35ytseAijkAqz3KQnAQAvf0Kb2Rm1r4Miz470qd10IuBCQ8WrjeCpvH5AZs2GqjHnj5iOmDaiABrs28DSJNizJpTcp3VYd/cKAhVIZWBTjTqR9M2fIQGDFIbLznvV9tHncq8n3XY4cs9c+P0O6vTFw+4dYHW+ONu9veFb4GIm+J/LaXmBtdsEFdgFAA8Up9wTiocZaDRgbuB3DNjNmjQGvQ74fwJl5+NYwSun8H2aBo8h54oZTxALkTR9Zd/uT1Gsoi0bHIRf3l902VNxoWm3ctqzAaaBjmYGLDsTw9gg6XeY7graRINU7FDwtiyyExzvWOA+AneF5t9UF43Rvya0MzrR74jwhAqtE1YdjrUyTrQ5JypT/LI+izkPjTQJ67DEWrh1j/oWACsm/+FryLzaOpzYAg2TFI8kFGoP8Cq+8yTvVE1Chl4PeF1gIizRKgb+rPC5FLHYM72PZRw48cuCRA48ceOTAIwceOTDB2o8MeuTAIwceOfDIgUcOPHLgkQOX4cD/Dy5hqdeaBa56AAAAAElFTkSuQmCC"},84279:function(yn,fn,se){"use strict";var ae=Object.defineProperty,Le=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Ee=(a,y,b)=>y in a?ae(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,xe=(a,y)=>{for(var b in y||(y={}))ge.call(y,b)&&Ee(a,b,y[b]);if(rt)for(var b of rt(y))ke.call(y,b)&&Ee(a,b,y[b]);return a},me=(a,y)=>Le(a,_e(y)),De=a=>typeof a=="symbol"?a:a+"",ot=(a,y)=>{var b={};for(var E in a)ge.call(a,E)&&y.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&rt)for(var E of rt(a))y.indexOf(E)<0&&ke.call(a,E)&&(b[E]=a[E]);return b};function Ne(a){return Array.isArray(a)}var mt={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 dt(){return"window"in globalThis&&"document"in globalThis}function pt(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function Je(){return typeof navigator.vibrate=="function"}function Be(){var a,y;if(!dt())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 gt(){if(!dt())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 nn(){return HTMLElement.prototype.hasOwnProperty("popover")}var at={strings:mt,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return at._locale||(at._locale=dt()?navigator.language.slice(0,5):"en-US"),at._locale},set locale(a){at._locale=a,at._numberFormatter=void 0,at.dirty=!0},get numberFormatter(){return at._numberFormatter||(at._numberFormatter=new Intl.NumberFormat(at.locale)),at._numberFormatter},merge(a,y){if(typeof a=="string"&&y)at.strings[a]=xe(xe({},at.strings[a]),y),at.dirty=!0;else for(const b of Object.keys(a))at.merge(b,a[b])},get dirty(){return at._dirty},set dirty(a){at._dirty||at._dirty===a||(at._dirty=!0,setTimeout(()=>{at._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return at._subscribers.push(a),at._subscribers.length-1},unsubscribe(a){a<0||a>=at._subscribers.length||(at._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=vt(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=vt(E);ee&&b.setAttribute("aria-label",ee)}}}};function vt(a,...y){if(a===void 0)return;let b="";const E=at.locale;at.strings[E]&&(b=at.strings[E][a]);const ee=E.slice(0,2);if(!b&&at.strings[ee]&&(b=at.strings[ee][a]),b||(b=at.strings.en[a]),!b)return;const re=/(%@|%([0-9]+)\$@)/g;let oe=re.exec(b),pe=0;for(;oe;){if(y[pe++]){const be=oe[2]?parseInt(oe[2],10)-1:pe-1;let Ie=y[be];typeof Ie=="number"&&(Ie=at.numberFormatter.format(Ie)),b=b.replace(oe[1],Ie)}oe=re.exec(b)}return b=b.replace(/%%/g,"%"),b}var Ce={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},Ae={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},Ye={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"},Ve={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"},At={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"},xt={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 Lt(a){var y,b,E,ee,re,oe;const pe=a.split("!");let ve,be,Ie,Ke=255,ht=255,Rt=255,Qt=-1;const er=pe.length>0&&pe[0].startsWith("-");er&&(pe[0]=pe[0].slice(1));for(let Qr=0;Qr<pe.length;Qr++){ve=Ke,be=ht,Ie=Rt;const Jn=(y=pe[Qr].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],Nr=Jn==null?void 0:Jn.toLowerCase(),ri=Jn&&(oe=(re=(ee=(E=(b=Ve[Nr])!=null?b:Ve[At[Jn]])!=null?E:Ae[Jn])!=null?ee:xt[Jn])!=null?re:Ce[Jn])!=null?oe:pe[Qr].trim();let zr=ri.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(zr!=null&&zr[1]&&zr[2]&&zr[3])Ke=Math.max(0,Math.min(255,Number.parseInt(zr[1],16))),ht=Math.max(0,Math.min(255,Number.parseInt(zr[2],16))),Rt=Math.max(0,Math.min(255,Number.parseInt(zr[3],16)));else if(zr=ri.match(/^#([\da-f]{3})$/i),zr!=null&&zr[1]){const Fi=Number.parseInt(zr[1][0],16),ea=Number.parseInt(zr[1][1],16),Ui=Number.parseInt(zr[1][2],16);Ke=Math.max(0,Math.min(255,Fi*16+Fi)),ht=Math.max(0,Math.min(255,ea*16+ea)),Rt=Math.max(0,Math.min(255,Ui*16+Ui))}else if(zr=ri.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),zr!=null&&zr[1]&&zr[2]&&zr[3])Ke=Math.max(0,Math.min(255,Number.parseInt(zr[1]))),ht=Math.max(0,Math.min(255,Number.parseInt(zr[2]))),Rt=Math.max(0,Math.min(255,Number.parseInt(zr[3])));else return;Qt>=0&&(Ke=(1-Qt)*Ke+Qt*ve,ht=(1-Qt)*ht+Qt*be,Rt=(1-Qt)*Rt+Qt*Ie,Qt=-1),Qr+1<pe.length&&(Qt=Math.max(0,Math.min(100,Number.parseInt(pe[++Qr])))/100)}return Qt>=0&&(Ke=Qt*Ke+(1-Qt)*ve,ht=Qt*ht+(1-Qt)*be,Rt=Qt*Rt+(1-Qt)*Ie),er&&(Ke=255-Ke,ht=255-ht,Rt=255-Rt),"#"+("00"+Math.round(Ke).toString(16)).slice(-2)+("00"+Math.round(ht).toString(16)).slice(-2)+("00"+Math.round(Rt).toString(16)).slice(-2)}function nt(a){var y,b;return a=a.trim(),(b=(y=Ye[a.toLowerCase()])!=null?y:Ye[At[a]])!=null?b:Lt(a)}function qt(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 zt(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 bn(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,re=E*2-ee;return{r:Math.round(255*zt(re,ee,y+2)),g:Math.round(255*zt(re,ee,y)),b:Math.round(255*zt(re,ee,y-2))}}function dn(a){return a<0?0:a>255?255:Math.round(a)}function Wn(a){const{r:y,g:b,b:E}=a;let ee=((1<<24)+(dn(y)<<16)+(dn(b)<<8)+dn(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 rr(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),re=Math.max(y,b,E),oe=re-ee;let pe,ve;re===ee?pe=0:y===re?pe=(b-E)/oe:b===re?pe=2+(E-y)/oe:E===re&&(pe=4+(y-b)/oe),pe=Math.min(pe*60,360),pe<0&&(pe+=360);const be=(ee+re)/2;return re===ee?ve=0:be<=.5?ve=oe/(re+ee):ve=oe/(2-re-ee),{h:pe,s:ve,l:be}}function ln(a){let y=qt(a);if(!y)return a;let{h:b,s:E,l:ee}=rr(y);return E+=.1,ee-=.1,Wn(bn({h:b,s:E,l:ee}))}var $e={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"},Se={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},Bt=[{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 xn(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 Bt)if((!y||ee.variant===y)&&(!b||ee.style===b)&&E>=ee.offset&&E<ee.offset+ee.len){const re=ee.start+E-ee.offset;return String.fromCodePoint(Se[re]||re)}return a}function Xt(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in Se)if(Se[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of Bt)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 ft(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 re=$e[ee];if(re)re.startsWith("\\")?b+=re+" ":b+=re;else{const{char:oe,variant:pe,style:ve}=Xt(ee);switch(re=oe,pe){case"double-struck":re=`\\mathbb{${re}}`;break;case"fraktur":re=`\\mathfrak{${re}}`;break;case"script":re=`\\mathscr{${re}}`;break;case"sans-serif":re=`\\mathsf{${re}}`;break;case"monospace":re=`\\mathtt{${re}}`;break;case"calligraphic":re=`\\mathcal{${re}}`;break}switch(ve){case"bold":re=`\\mathbf{${re}}`;break;case"italic":re=`\\mathit{${re}}`;break;case"bolditalic":re=`\\mathbfit{${re}}`;break}b+=re}}return b}function yt(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var Gt={},qn=xe({},$e),Dn={},Tt={},mn={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}},kn={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}},Pe={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:kn},"amsmath.sty":{package:Vn,primitive:!0},"texvc.sty":{package:mn,primitive:!1}},fe={" ":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},ce=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,he,ue;gt()?(he=new RegExp("\\p{Letter}","u"),ue=new RegExp("[0-9\\p{Letter}]","u")):(he=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,ue=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function le(a,y,b="mord",E){y!==void 0&&(Gt[a]={definitionType:"symbol",type:b,variant:E,codepoint:y},qn[y]||(qn[y]=a))}function Me(a,y,b){if(typeof a=="string"){for(let E=0;E<a.length;E++){const ee=a.charAt(E);le(ee,ee.codePointAt(0))}return}for(const[E,ee,re,oe]of a)le(E,ee,re!=null?re:y,oe!=null?oe:b)}function Ge(a,y){for(let b=a;b<=y;b++)le(String.fromCodePoint(b),b)}function St(a){var y;return(y=Tt[a])!=null?y:null}function Ht(a,y){var b,E;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ee=[];for(const oe in Dn)oe.startsWith(y)&&!Dn[oe].infix&&ee.push({match:oe,frequency:(b=Dn[oe].frequency)!=null?b:0});for(const oe in Gt)oe.startsWith(y)&&ee.push({match:oe,frequency:(E=Gt[oe].frequency)!=null?E:0});const re=y.substring(1);for(const oe of Object.keys(a.options.macros))oe.startsWith(re)&&ee.push({match:"\\"+oe,frequency:0});return ee.sort((oe,pe)=>{var ve,be;return oe.frequency===pe.frequency?oe.match.length===pe.match.length?oe.match<pe.match?-1:1:oe.match.length-pe.match.length:((ve=pe.frequency)!=null?ve:0)-((be=oe.frequency)!=null?be:0)}),ee.map(oe=>oe.match)}function Yt(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function Vt(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:Yt(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...Vt(b[E]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:Yt(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...Vt(b[E]))}return y}function sn(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 it(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const E of a)Tt[E]=b}function Mt(a,y,b){typeof a=="string"&&(a=[a]);const ee={tabular:!0,params:Vt(y),createAtom:b};for(const re of a)Tt[re]=ee}function Ot(a,y,b){var E,ee;b||(b={});const re={definitionType:"function",params:Vt(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")Dn["\\"+a]=re;else for(const oe of a)Dn["\\"+oe]=re}var $t;function bt(a){return $t||($t=ct(Pe)),a?ct(xe(xe({},$t),a)):$t}function _n(a,y){var b,E,ee,re;if(typeof a=="string"){let oe=0;const pe=a;return/(^|[^\\])#1/.test(pe)&&(oe=1),/(^|[^\\])#2/.test(pe)&&(oe=2),/(^|[^\\])#3/.test(pe)&&(oe=3),/(^|[^\\])#4/.test(pe)&&(oe=4),/(^|[^\\])#5/.test(pe)&&(oe=5),/(^|[^\\])#6/.test(pe)&&(oe=6),/(^|[^\\])#7/.test(pe)&&(oe=7),/(^|[^\\])#8/.test(pe)&&(oe=8),/(^|[^\\])#9/.test(pe)&&(oe=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(E=y==null?void 0:y.captureSelection)!=null?E:!0,args:oe,def:pe}}return xe({expand:(ee=y==null?void 0:y.expand)!=null?ee:!0,captureSelection:(re=y==null?void 0:y.captureSelection)!=null?re:!0,args:0},a)}function ct(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]=_n(E.package[ee],{expand:!E.primitive,captureSelection:E.captureSelection});else y[b]=_n(E)}return y}function Dt(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=Dn[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=Gt[a]:fe[a]&&(b={definitionType:"symbol",type:"mord",codepoint:fe[a]})}else if(y==="math"){if(b=Gt[a],!b&&a.length===1){const E=wn("math",a.codePointAt(0));return E.startsWith("\\")?me(xe({},Dt(E,"math")),{command:E}):null}}else fe[a]?b={definitionType:"symbol",type:"mord",codepoint:fe[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function En(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function wn(a,y){if(y===void 0)return"";if(a==="math"&&qn[y])return qn[y];if(a==="text"){const b=Object.keys(fe).find(E=>fe[E]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var Bn=[0,.68889,0,0,.72222],Qn=[0,.68889,0,0,.66667],wr=[0,.68889,0,0,.77778],br=[0,.68889,0,0,.61111],Sr=[.16667,.68889,0,0,.77778],Yn=[0,.68889,0,0,.55556],ir=[0,0,0,0,.25],Dr=[0,.825,0,0,2.33334],ti=[0,.9,0,0,2.33334],Ai=[0,.68889,0,0,.54028],tr=[-.03598,.46402,0,0,.5],Jr=[-.13313,.36687,0,0,1],kt=[.01354,.52239,0,0,1],vn=[.01354,.52239,0,0,1.11111],Rn=[0,.54986,0,0,1],In=[0,.69224,0,0,.5],nr=[0,.43056,0,0,1],gr=[.08198,.58198,0,0,.77778],sr=[.19444,.69224,0,0,.41667],Un=[.1808,.675,0,0,1],qe=[.19444,.69224,0,0,.83334],wt=[.13667,.63667,0,0,1],Zt=[-.064,.437,0,0,1.334],an=[.08167,.58167,0,0,.77778],ze=[0,.69224,0,0,.72222],Ct=[0,.69224,0,0,.66667],tn=[-.13313,.36687,0,0,.77778],Kt=[.06062,.54986,0,0,.77778],hn=[0,.69224,0,0,.77778],gn=[.25583,.75583,0,0,.77778],Xn=[.25142,.75726,0,0,.77778],_r=[.20576,.70576,0,0,.77778],lr=[.30274,.79383,0,0,.77778],mr=[.22958,.72958,0,0,.77778],Or=[.1808,.675,0,0,.77778],Rr=[.13667,.63667,0,0,.77778],Zr=[.13597,.63597,0,0,.77778],Kn=[.03517,.54986,0,0,.77778],fr=[0,.675,0,0,.77778],Mn=[.19444,.69224,0,0,.61111],Sn=[0,.54986,0,0,.76042],on=[0,.54986,0,0,.66667],yr=[.0391,.5391,0,0,.77778],Wr=[.03517,.54986,0,0,1.33334],Lr=[.38569,.88569,0,0,.77778],qr=[.23222,.74111,0,0,.77778],Cn=[.19444,.69224,0,0,.77778],Er=[0,.37788,0,0,.5],vr=[0,.54986,0,0,.72222],ta=[0,.69224,0,0,.83334],Hi=[.11111,.69224,0,0,.66667],Pi=[.26167,.75726,0,0,.77778],Di=[.48256,.98256,0,0,.77778],qi=[.28481,.79383,0,0,.77778],Ki=[.08167,.58167,0,0,.22222],di=[.08167,.58167,0,0,.38889],na=[0,.43056,.04028,0,.66667],aa=[.41951,.91951,0,0,.77778],_i=[.24982,.74947,0,0,.38865],Mi=[.08319,.58283,0,0,.75623],Sa=[0,.10803,0,0,.27764],Si=[0,.47534,0,0,.50181],$r=[.18906,.47534,0,0,.50181],Ft=[0,.69141,0,0,.50181],Pt=[.24982,.74947,0,0,.27764],pn=[0,.69141,0,0,.21471],Pn=[.25,.75,0,0,.44722],cr=[0,.64444,0,0,.575],Gr=[.08556,.58556,0,0,.89444],Xr=[0,.69444,0,0,.89444],oi=[0,.68611,0,0,.9],jt=[0,.68611,0,0,.86944],ur=[.25,.75,0,0,.575],li=[.25,.75,0,0,.31944],ci=[0,.69444,0,0,.63889],Oi=[0,.69444,0,0,.31944],ra=[0,.44444,0,0,.63889],hr=[0,.44444,0,0,.51111],Qi=[0,.69444,0,0,.575],Re=[.13333,.63333,0,0,.89444],Ze=[0,.44444,0,0,.31944],je=[0,.69444,0,0,.86944],et=[0,.68611,0,0,.69166],Et=[0,.68611,0,0,.83055],It=[0,.68611,0,0,.89444],Ut=[0,.69444,0,0,.60278],Ln=[.19444,.69444,0,0,.51111],Nn=[0,.69444,0,0,.83055],Mr=[-.10889,.39111,0,0,1.14999],Hr=[.19444,.69444,0,0,.575],xr=[.19444,.69444,0,0,1.14999],Gn=[.19444,.69444,0,0,.70277],jn=[.05556,.75,0,0,.575],$n=[0,.68611,0,0,.95833],dr=[.08556,.58556,0,0,.76666],Kr=[-.02639,.47361,0,0,.575],kr=[0,.44444,0,0,.89444],Cr=[0,.55556,0,0,.76666],Ir=[-.10889,.39111,0,0,.89444],Ue=[.00222,.50222,0,0,.89444],We=[.19667,.69667,0,0,.89444],we=[.08556,.58556,0,0,1.14999],Oe=[0,.69444,0,0,.70277],st=[-.02778,.47222,0,0,.575],tt=[.25,.75,0,0,.51111],_t=[-.13889,.36111,0,0,1.14999],rn=[.19444,.69444,0,0,1.02222],Xe=[.12963,.69444,0,0,.89444],Qe=[.19444,.69444,0,0,.44722],lt=[0,.64444,.13167,0,.59111],ut=[.19444,.64444,.13167,0,.59111],en=[0,.68611,.17208,0,.8961],cn=[.19444,.44444,.105,0,.53222],Wt=[0,.44444,.085,0,.82666],un=[0,.69444,.06709,0,.59111],On=[0,.69444,.12945,0,.35555],ar=[0,.69444,0,0,.94888],Fn=[0,.69444,.11472,0,.59111],An=[0,.68611,.10778,0,.88555],Zn=[0,.69444,.07939,0,.62055],or=[0,.69444,.12417,0,.30667],Tr=[0,.64444,.13556,0,.51111],pr=[.19444,.64444,.13556,0,.51111],zn=[0,.68333,.16389,0,.74333],Pr=[.19444,.43056,.08847,0,.46],Fr=[0,.43056,.07514,0,.71555],si=[0,.69444,.06646,0,.51111],pi=[0,.69444,0,0,.83129],hi=[0,.69444,.1225,0,.51111],ki=[0,.68333,.09403,0,.76666],Ni=[0,.68333,.11111,0,.76666],mi=[0,.69444,.06961,0,.51444],bi=[0,.69444,0,0,.27778],Yr=[.25,.75,0,0,.38889],ii=[0,.64444,0,0,.5],xi=[0,.69444,0,0,.77778],Ii=[0,.68333,0,0,.75],ha=[0,.68333,0,0,.77778],da=[0,.68333,0,0,.68056],ji=[0,.68333,0,0,.72222],Xi=[.25,.75,0,0,.5],Ci=[.25,.75,0,0,.27778],gi=[0,.69444,0,0,.5],la=[0,.69444,0,0,.55556],Ei=[0,.43056,0,0,.44445],Ur=[0,.43056,0,0,.5],vi=[.19444,.43056,0,0,.55556],Ji=[0,.43056,0,0,.55556],Zi=[.08333,.58333,0,0,.77778],ua=[0,.43056,0,0,.27778],Li=[0,.66786,0,0,.27778],ga=[0,.69444,0,0,.75],fa=[0,.66786,0,0,.5],sa=[0,.68333,0,0,.625],ca=[.19444,.69444,0,0,.44445],ba=[0,.69444,0,0,.72222],Ta=[.19444,.69444,0,0,.5],Ca=[.19444,.69444,0,0,1],Ma=[.011,.511,0,0,1.126],Ha=[.19444,.69444,0,0,.61111],Va=[.05556,.75,0,0,.5],$a=[0,.68333,0,0,.83334],Ra=[.0391,.5391,0,0,.66667],xa=[-.05555,.44445,0,0,.5],zi=[0,.43056,0,0,.77778],Yi=[0,.55556,0,0,.66667],pa=[-.03625,.46375,0,0,.77778],Ea=[-.01688,.48312,0,0,.77778],Ka=[.0391,.5391,0,0,1],eo=[0,.69444,0,0,.61111],uo=[-.03472,.46528,0,0,.5],Mo=[.25,.75,0,0,.44445],ko=[-.14236,.35764,0,0,1],to=[.244,.744,0,0,.412],Pa=[.19444,.69444,0,0,.88889],fi=[.12963,.69444,0,0,.77778],Wi=[.19444,.69444,0,0,.38889],Aa=[.011,.511,0,0,1.638],va=[.19444,.69444,0,0,0],Ga=[0,.44444,0,0,.575],Za=[.19444,.44444,0,0,.575],To=[0,.68611,0,0,.75555],Ho=[0,.69444,0,0,.66759],as=[0,.68611,0,0,.80555],ma=[0,.68611,.08229,0,.98229],ni=[0,.68611,0,0,.76666],Vi=[0,.44444,0,0,.58472],Gi=[.19444,.44444,0,0,.6118],$i=[.19444,.43056,0,0,.5],Ya=[0,.68333,.02778,.08334,.76278],qa=[0,.68333,.08125,.05556,.83125],Ko=[0,.43056,0,.05556,.48472],Vo=[.19444,.43056,0,.08334,.51702],us=[.25,.75,0,0,.42778],Ba=[0,.69444,0,0,.55],Fo=[0,.69444,0,0,.73334],ds=[0,.69444,0,0,.79445],ul=[0,.69444,0,0,.51945],Bs=[0,.69444,0,0,.70278],ms=[0,.69444,0,0,.76389],Wo=[.25,.75,0,0,.34306],Ds=[0,.69444,0,0,.56111],Is=[0,.69444,0,0,.25556],Js=[.19444,.45833,0,0,.56111],fo=[0,.45833,0,0,.56111],Fa=[0,.69444,0,0,.30556],no=[0,.69444,0,0,.58056],vo=[0,.69444,0,0,.67223],bo=[0,.69444,0,0,.85556],jo=[0,.69444,0,0,.55834],So=[0,.65556,.11156,0,.5],xs=[0,.69444,.08094,0,.70834],Xl=[.17014,0,0,0,.44445],Ql=[0,.69444,.0799,0,.5],vc=[0,.69444,0,0,.73752],Xc=[0,.69444,.09205,0,.5],Ks=[0,.69444,.09031,0,.77778],Ts=[0,.69444,.07816,0,.27778],yc=[0,.69444,.00316,0,.5],Jl=[.19444,.69444,0,0,.83334],_a=[.05556,.75,0,0,.83334],ka=[0,.75,0,0,.5],Zo=[.125,.08333,0,0,.27778],ts=[0,.08333,0,0,.27778],La=[0,.65556,0,0,.5],Ua=[0,.69444,0,0,.47222],Wa=[0,.69444,0,0,.66667],mo=[0,.69444,0,0,.59722],os=[0,.69444,0,0,.54167],Ws=[0,.69444,0,0,.70834],gs=[.25,.75,0,0,.28889],ql=[0,.69444,0,0,.51667],Ud=[0,.44444,0,0,.44445],Vd=[.19444,.44444,0,0,.51667],Qc=[0,.44444,0,0,.38333],Uu=[0,.44444,0,0,.51667],Jc=[0,.69444,0,0,.83334],Gd=[.35001,.85,0,0,.45834],qc=[.35001,.85,0,0,.57778],$c=[.35001,.85,0,0,.41667],Vu=[.35001,.85,0,0,.58334],bc=[0,.72222,0,0,.55556],eu=[1e-5,.6,0,0,.66667],Gu=[1e-5,.6,0,0,.77778],$l=[.25001,.75,0,0,.94445],Yd=[.306,.805,.19445,0,.47222],xc=[.30612,.805,.19445,0,.47222],Go=[.25001,.75,0,0,.83334],Pl=[.35001,.85,0,0,.47222],Yu=[.25001,.75,0,0,1.11111],Xu=[.65002,1.15,0,0,.59722],vs=[.65002,1.15,0,0,.81111],Ja=[.65002,1.15,0,0,.47222],As=[.65002,1.15,0,0,.66667],Ps=[0,.75,0,0,1],qs=[.55001,1.05,0,0,1.27778],Qu=[.862,1.36,.44445,0,.55556],tu=[.86225,1.36,.44445,0,.55556],Ol=[.55001,1.05,0,0,1.11111],nu=[.65002,1.15,0,0,.52778],ru=[.65002,1.15,0,0,.61111],Nl=[.55001,1.05,0,0,1.51112],Ju=[.95003,1.45,0,0,.73611],iu=[.95003,1.45,0,0,1.04445],$s=[.95003,1.45,0,0,.52778],wc=[.95003,1.45,0,0,.75],Sc=[0,.75,0,0,1.44445],au=[.95003,1.45,0,0,.58334],Cc=[1.25003,1.75,0,0,.79167],ou=[1.25003,1.75,0,0,1.27778],qu=[1.25003,1.75,0,0,.58334],su=[1.25003,1.75,0,0,.80556],Ec=[0,.825,0,0,1.8889],lu=[1.25003,1.75,0,0,.63889],cu=[.64502,1.155,0,0,.875],Ac=[1e-5,.6,0,0,.875],uu=[-99e-5,.601,0,0,.66667],du=[.64502,1.155,0,0,.66667],Xd=[1e-5,.9,0,0,.88889],$u=[.65002,1.15,0,0,.88889],Rl=[.90001,0,0,0,.88889],fu=[-.00499,.605,0,0,1.05556],Fl=[0,.12,0,0,.45],Ri=[0,.61111,0,0,.525],ws=[.08333,.69444,0,0,.525],ed=[-.08056,.53055,0,0,.525],Qd=[-.05556,.55556,0,0,.525],ss=[0,.43056,0,0,.525],Po=[.22222,.43056,0,0,.525],Mc=[0,0,0,0,.525],Jd={"AMS-Regular":{32:ir,65:Bn,66:Qn,67:Bn,68:Bn,69:Qn,70:br,71:wr,72:wr,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:wr,76:Qn,77:[0,.68889,0,0,.94445],78:Bn,79:Sr,80:br,81:Sr,82:Bn,83:Yn,84:Qn,85:Bn,86:Bn,87:[0,.68889,0,0,1],88:Bn,89:Bn,90:Qn,107:Yn,160:ir,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:Yn,295:Ai,710:Dr,732:ti,770:Dr,771:ti,989:an,1008:na,8245:[0,.54986,0,0,.275],8463:Ai,8487:Bn,8498:Yn,8502:Qn,8503:[0,.68889,0,0,.44445],8504:Qn,8513:[0,.68889,0,0,.63889],8592:tr,8594:tr,8602:Jr,8603:Jr,8606:kt,8608:kt,8610:vn,8611:vn,8619:Rn,8620:Rn,8621:[-.13313,.37788,0,0,1.38889],8622:Jr,8624:In,8625:In,8630:nr,8631:nr,8634:gr,8635:gr,8638:sr,8639:sr,8642:sr,8643:sr,8644:Un,8646:Un,8647:Un,8648:qe,8649:Un,8650:qe,8651:kt,8652:kt,8653:Jr,8654:Jr,8655:Jr,8666:wt,8667:wt,8669:[-.13313,.37788,0,0,1],8672:Zt,8674:Zt,8705:[0,.825,0,0,.5],8708:Yn,8709:an,8717:[0,.43056,0,0,.42917],8722:tr,8724:[.08198,.69224,0,0,.77778],8726:an,8733:hn,8736:ze,8737:ze,8738:[.03517,.52239,0,0,.72222],8739:Ki,8740:[.25142,.74111,0,0,.27778],8741:di,8742:[.25142,.74111,0,0,.5],8756:Ct,8757:Ct,8764:tn,8765:[-.13313,.37788,0,0,.77778],8769:tn,8770:pa,8774:lr,8776:Ea,8778:an,8782:Kt,8783:Kt,8785:gr,8786:gr,8787:gr,8790:hn,8791:mr,8796:[.08198,.91667,0,0,.77778],8806:gn,8807:gn,8808:Xn,8809:Xn,8812:[.25583,.75583,0,0,.5],8814:_r,8815:_r,8816:lr,8817:lr,8818:mr,8819:mr,8822:Or,8823:Or,8828:Rr,8829:Rr,8830:mr,8831:mr,8832:_r,8833:_r,8840:lr,8841:lr,8842:Zr,8843:Zr,8847:Kn,8848:Kn,8858:gr,8859:gr,8861:gr,8862:fr,8863:fr,8864:fr,8865:fr,8872:[0,.69224,0,0,.61111],8873:ze,8874:[0,.69224,0,0,.88889],8876:br,8877:br,8878:Bn,8879:Bn,8882:Kn,8883:Kn,8884:Rr,8885:Rr,8888:[0,.54986,0,0,1.11111],8890:vi,8891:Mn,8892:Mn,8901:[0,.54986,0,0,.27778],8903:an,8905:an,8906:an,8907:hn,8908:hn,8909:[-.03598,.46402,0,0,.77778],8910:Sn,8911:Sn,8912:Kn,8913:Kn,8914:on,8915:on,8916:Ct,8918:yr,8919:yr,8920:Wr,8921:Wr,8922:Lr,8923:Lr,8926:Rr,8927:Rr,8928:lr,8929:lr,8934:qr,8935:qr,8936:qr,8937:qr,8938:_r,8939:_r,8940:lr,8941:lr,8994:Cn,8995:Cn,9416:[.15559,.69224,0,0,.90222],9484:In,9488:In,9492:Er,9496:Er,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:fr,9633:fr,9650:vr,9651:vr,9654:Kn,9660:vr,9661:vr,9664:Kn,9674:Hi,9733:[.19444,.69224,0,0,.94445],10003:ta,10016:ta,10731:Hi,10846:[.19444,.75583,0,0,.61111],10877:Rr,10878:Rr,10885:gn,10886:gn,10887:Zr,10888:Zr,10889:Pi,10890:Pi,10891:Di,10892:Di,10901:Rr,10902:Rr,10933:Xn,10934:Xn,10935:Pi,10936:Pi,10937:Pi,10938:Pi,10949:gn,10950:gn,10955:qi,10956:qi,57350:Ki,57351:di,57352:an,57353:na,57356:Xn,57357:Xn,57358:aa,57359:lr,57360:lr,57361:aa,57366:Xn,57367:Xn,57368:Xn,57369:Xn,57370:Zr,57371:Zr},"Caligraphic-Regular":{32:ir,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:ir},"Fraktur-Regular":{32:ir,33:[0,.69141,0,0,.29574],34:pn,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:_i,41:_i,42:[0,.62119,0,0,.27764],43:Mi,44:Sa,45:Mi,46:Sa,47:[.24982,.74947,0,0,.50181],48:Si,49:Si,50:Si,51:$r,52:$r,53:$r,54:Ft,55:$r,56:Ft,57:$r,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:Pt,93:Pt,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:ir,8216:pn,8217:pn,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:ir,33:[0,.69444,0,0,.35],34:Ut,35:[.19444,.69444,0,0,.95833],36:jn,37:[.05556,.75,0,0,.95833],38:Xr,39:Oi,40:Pn,41:Pn,42:[0,.75,0,0,.575],43:Re,44:[.19444,.15556,0,0,.31944],45:Qc,46:[0,.15556,0,0,.31944],47:ur,48:cr,49:cr,50:cr,51:cr,52:cr,53:cr,54:cr,55:cr,56:cr,57:cr,58:Ze,59:[.19444,.44444,0,0,.31944],60:Gr,61:Ir,62:Gr,63:[0,.69444,0,0,.54305],64:Xr,65:jt,66:[0,.68611,0,0,.81805],67:Et,68:[0,.68611,0,0,.88194],69:To,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:oi,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:et,77:[0,.68611,0,0,1.09166],78:oi,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:jt,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:li,92:ur,93:li,94:Qi,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:ci,99:hr,100:ci,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:ci,105:Oi,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:Oi,109:[0,.44444,0,0,.95833],110:ra,111:Ga,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:ra,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:hr,123:ur,124:li,125:ur,126:[.35,.34444,0,0,.575],160:ir,163:[0,.69444,0,0,.86853],168:Qi,172:[0,.44444,0,0,.76666],176:je,177:Re,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Re,216:[.04861,.73472,0,0,.89444],223:mo,230:[0,.44444,0,0,.83055],247:Re,248:[.09722,.54167,0,0,.575],305:Ze,338:[0,.68611,0,0,1.16944],339:kr,567:[.19444,.44444,0,0,.35139],710:Qi,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Qi,715:Qi,728:Qi,729:Oi,730:je,732:Qi,733:Qi,915:et,916:$n,920:It,923:as,926:ni,928:oi,931:Et,933:It,934:Et,936:It,937:Et,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:Oi,8217:Oi,8220:Ut,8221:Ut,8224:Ln,8225:Ln,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:Ho,8465:Nn,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:Nn,8501:Oe,8592:Mr,8593:Hr,8594:Mr,8595:Hr,8596:Mr,8597:ur,8598:xr,8599:xr,8600:xr,8601:xr,8636:Mr,8637:Mr,8640:Mr,8641:Mr,8656:Mr,8657:Gn,8658:Mr,8659:Gn,8660:Mr,8661:[.25,.75,0,0,.70277],8704:ci,8706:[0,.69444,.06389,0,.62847],8707:ci,8709:jn,8711:$n,8712:dr,8715:dr,8722:Re,8723:Re,8725:ur,8726:ur,8727:st,8728:Kr,8729:Kr,8730:[.18,.82,0,0,.95833],8733:kr,8734:[0,.44444,0,0,1.14999],8736:ze,8739:li,8741:ur,8743:Cr,8744:Cr,8745:Cr,8746:Cr,8747:[.19444,.69444,.12778,0,.56875],8764:Ir,8768:[.19444,.69444,0,0,.31944],8771:Ue,8776:[.02444,.52444,0,0,.89444],8781:Ue,8801:Ue,8804:We,8805:We,8810:we,8811:we,8826:Gr,8827:Gr,8834:Gr,8835:Gr,8838:We,8839:We,8846:Cr,8849:We,8850:We,8851:Cr,8852:Cr,8853:Re,8854:Re,8855:Re,8856:Re,8857:Re,8866:Oe,8867:Oe,8868:Xr,8869:Xr,8900:Kr,8901:[-.02639,.47361,0,0,.31944],8902:st,8968:tt,8969:tt,8970:tt,8971:tt,8994:_t,8995:_t,9651:rn,9657:st,9661:rn,9667:st,9711:xr,9824:Xe,9825:Xe,9826:Xe,9827:Xe,9837:[0,.75,0,0,.44722],9838:Qe,9839:Qe,10216:Pn,10217:Pn,10815:oi,10927:We,10928:We,57376:va},"Main-BoldItalic":{32:ir,33:[0,.69444,.11417,0,.38611],34:Zn,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:On,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:lt,49:lt,50:lt,51:lt,52:ut,53:lt,54:lt,55:ut,56:lt,57:lt,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Fn,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:en,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:en,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:un,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:cn,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:cn,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:ir,168:[0,.69444,.11473,0,.59111],176:ar,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:Wt,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:Wt,567:[.19444,.44444,.04611,0,.385],710:un,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:On,730:ar,732:Fn,733:Fn,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:en,931:[0,.68611,.11431,0,.82666],933:An,934:[0,.68611,.05632,0,.82666],936:An,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:On,8217:On,8220:[0,.69444,.16772,0,.62055],8221:Zn},"Main-Italic":{32:ir,33:or,34:mi,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:or,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:Tr,49:Tr,50:Tr,51:Tr,52:pr,53:Tr,54:Tr,55:pr,56:Tr,57:Tr,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:hi,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:zn,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:zn,79:ki,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:zn,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:si,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:Pr,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:Pr,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:ir,168:[0,.66786,.10474,0,.51111],176:pi,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:Fr,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:Fr,710:si,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:pi,732:[0,.66786,.11585,0,.51111],733:hi,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:ki,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:zn,931:[0,.68333,.12028,0,.71555],933:Ni,934:[0,.68333,.05986,0,.71555],936:Ni,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:or,8217:or,8220:[0,.69444,.1685,0,.51444],8221:mi,8463:Ai},"Main-Regular":{32:ir,33:bi,34:gi,35:Jl,36:Va,37:_a,38:xi,39:bi,40:Yr,41:Yr,42:ka,43:Zi,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:Xi,48:ii,49:ii,50:ii,51:ii,52:ii,53:ii,54:ii,55:ii,56:ii,57:ii,58:ua,59:[.19444,.43056,0,0,.27778],60:yr,61:tn,62:yr,63:Ua,64:xi,65:Ii,66:[0,.68333,0,0,.70834],67:ji,68:[0,.68333,0,0,.76389],69:da,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:Ii,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:ha,76:sa,77:[0,.68333,0,0,.91667],78:Ii,79:ha,80:da,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:ji,85:Ii,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:Ii,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:Ci,92:Xi,93:Ci,94:gi,95:[.31,.12056,.02778,0,.5],97:Ur,98:la,99:Ei,100:la,101:Ei,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:la,105:Li,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:bi,109:[0,.43056,0,0,.83334],110:Ji,111:Ur,112:vi,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:Ji,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:Ei,123:Xi,124:Ci,125:Xi,126:[.35,.31786,0,0,.5],160:ir,163:[0,.69444,0,0,.76909],167:ca,168:fa,172:[0,.43056,0,0,.66667],176:ga,177:Zi,182:Ha,184:Xl,198:[0,.68333,0,0,.90278],215:Zi,216:[.04861,.73194,0,0,.77778],223:gi,230:[0,.43056,0,0,.72222],247:Zi,248:[.09722,.52778,0,0,.5],305:ua,338:[0,.68333,0,0,1.01389],339:zi,567:[.19444,.43056,0,0,.30556],710:gi,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:gi,715:gi,728:gi,729:Li,730:ga,732:fa,733:gi,915:sa,916:$a,920:ha,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:Ii,931:ji,933:ha,934:ji,936:ha,937:ji,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:bi,8217:bi,8220:gi,8221:gi,8224:ca,8225:ca,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:Ai,8465:ba,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:ba,8501:eo,8592:Jr,8593:Ta,8594:Jr,8595:Ta,8596:Jr,8597:Xi,8598:Ca,8599:Ca,8600:Ca,8601:Ca,8614:[.011,.511,0,0,1],8617:Ma,8618:Ma,8636:Jr,8637:Jr,8640:Jr,8641:Jr,8652:[.011,.671,0,0,1],8656:Jr,8657:Ha,8658:Jr,8659:Ha,8660:Jr,8661:[.25,.75,0,0,.61111],8704:la,8706:[0,.69444,.05556,.08334,.5309],8707:la,8709:Va,8711:$a,8712:Ra,8715:Ra,8722:Zi,8723:Zi,8725:Xi,8726:Xi,8727:uo,8728:xa,8729:xa,8730:[.2,.8,0,0,.83334],8733:zi,8734:nr,8736:ze,8739:Ci,8741:Xi,8743:Yi,8744:Yi,8745:Yi,8746:Yi,8747:[.19444,.69444,.11111,0,.41667],8764:tn,8768:[.19444,.69444,0,0,.27778],8771:pa,8773:[-.022,.589,0,0,1],8776:Ea,8781:pa,8784:[-.133,.67,0,0,.778],8801:pa,8804:Zr,8805:Zr,8810:Ka,8811:Ka,8826:yr,8827:yr,8834:yr,8835:yr,8838:Zr,8839:Zr,8846:Yi,8849:Zr,8850:Zr,8851:Yi,8852:Yi,8853:Zi,8854:Zi,8855:Zi,8856:Zi,8857:Zi,8866:eo,8867:eo,8868:xi,8869:xi,8872:[.249,.75,0,0,.867],8900:xa,8901:[-.05555,.44445,0,0,.27778],8902:uo,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:Mo,8969:Mo,8970:Mo,8971:Mo,8994:ko,8995:ko,9136:to,9137:to,9651:Pa,9657:uo,9661:Pa,9667:uo,9711:Ca,9824:fi,9825:fi,9826:fi,9827:fi,9837:[0,.75,0,0,.38889],9838:Wi,9839:Wi,10216:Yr,10217:Yr,10222:to,10223:to,10229:[.011,.511,0,0,1.609],10230:Aa,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:Aa,10815:Ii,10927:Zr,10928:Zr,57376:va},"Math-BoldItalic":{32:ir,48:Ga,49:Ga,50:Ga,51:Za,52:Za,53:Za,54:cr,55:Za,56:cr,57:Za,65:jt,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:ma,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:To,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:Ho,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:Vi,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:ir,915:[0,.68611,.15972,0,.65694],916:$n,920:[0,.68611,.03194,0,.86722],923:as,926:[0,.68611,.07458,0,.84125],928:ma,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:ni,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:Vi,960:[0,.44444,.03704,0,.68241],961:Gi,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:Gi,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:ir,48:Ur,49:Ur,50:Ur,51:$i,52:$i,53:$i,54:ii,55:$i,56:ii,57:$i,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:qa,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:Ya,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:Ko,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:ir,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:Ya,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:qa,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:Ko,960:[0,.43056,.03588,0,.57003],961:Vo,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:Vo,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:ir,33:[0,.69444,0,0,.36667],34:jo,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:Fa,40:us,41:us,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:Ba,49:Ba,50:Ba,51:Ba,52:Ba,53:Ba,54:Ba,55:Ba,56:Ba,57:Ba,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:ul,64:Fo,65:Fo,66:Fo,67:Bs,68:ds,69:[0,.69444,0,0,.64167],70:eo,71:Fo,72:ds,73:[0,.69444,0,0,.33056],74:ul,75:ms,76:no,77:[0,.69444,0,0,.97778],78:ds,79:ds,80:Bs,81:[.10556,.69444,0,0,.79445],82:Bs,83:eo,84:Fo,85:ms,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:Fo,89:[0,.69444,.0275,0,.73334],90:vo,91:Wo,93:Wo,94:Ba,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:Ds,99:[0,.45833,0,0,.48889],100:Ds,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:Ds,105:Is,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Is,109:[0,.45833,0,0,.86667],110:fo,111:[0,.45833,0,0,.55],112:Js,113:Js,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:fo,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:ir,168:Ba,176:Fo,180:Ba,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:Ba,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:Ba,729:Fa,730:Fo,732:Ba,733:Ba,915:no,916:[0,.69444,0,0,.91667],920:bo,923:vo,926:Fo,928:ds,931:ds,933:bo,934:ds,936:bo,937:ds,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Fa,8217:Fa,8220:jo,8221:jo},"SansSerif-Italic":{32:ir,33:[0,.69444,.05733,0,.31945],34:yc,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:Ts,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:Zo,45:[0,.44444,.01946,0,.33333],46:ts,47:[.25,.75,.13164,0,.5],48:So,49:So,50:So,51:So,52:So,53:So,54:So,55:So,56:So,57:So,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:Wa,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:xs,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:os,77:[0,.69444,.08094,0,.875],78:xs,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:Ql,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:ir,168:[0,.67937,.06385,0,.5],176:vc,184:Xl,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Ql,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Xc,715:gi,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:vc,732:[0,.67659,.08826,0,.5],733:Xc,915:[0,.69444,.13372,0,.54167],916:Jc,920:[0,.69444,.07555,0,.77778],923:eo,926:[0,.69444,.12816,0,.66667],928:xs,931:[0,.69444,.11983,0,.72222],933:Ks,934:[0,.69444,.04603,0,.72222],936:Ks,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:Ts,8217:Ts,8220:[0,.69444,.14205,0,.5],8221:yc},"SansSerif-Regular":{32:ir,33:[0,.69444,0,0,.31945],34:gi,35:Jl,36:Va,37:_a,38:[0,.69444,0,0,.75834],39:bi,40:Yr,41:Yr,42:ka,43:Zi,44:Zo,45:[0,.44444,0,0,.33333],46:ts,47:Xi,48:La,49:La,50:La,51:La,52:La,53:La,54:La,55:La,56:La,57:La,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:Ua,64:Wa,65:Wa,66:Wa,67:ci,68:[0,.69444,0,0,.72223],69:mo,70:[0,.69444,0,0,.56945],71:Wa,72:Ws,73:bi,74:Ua,75:[0,.69444,0,0,.69445],76:os,77:[0,.69444,0,0,.875],78:Ws,79:[0,.69444,0,0,.73611],80:ci,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:la,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:Wa,89:[0,.69444,.025,0,.66667],90:eo,91:gs,93:gs,94:gi,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:ql,99:Ud,100:ql,101:Ud,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:ql,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:Uu,111:[0,.44444,0,0,.5],112:Vd,113:Vd,114:[0,.44444,.01389,0,.34167],115:Qc,116:[0,.57143,0,0,.36111],117:Uu,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:ir,168:[0,.67937,0,0,.5],176:Wa,184:Xl,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:gi,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:gi,715:gi,728:gi,729:[0,.67937,0,0,.27778],730:Wa,732:[0,.67659,0,0,.5],733:gi,915:os,916:Jc,920:xi,923:eo,926:Wa,928:Ws,931:ba,933:xi,934:ba,936:xi,937:ba,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:bi,8217:bi,8220:gi,8221:gi},"Script-Regular":{32:ir,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:ir},"Size1-Regular":{32:ir,40:Gd,41:Gd,47:qc,91:$c,92:qc,93:$c,123:Vu,125:Vu,160:ir,710:bc,732:bc,770:bc,771:bc,8214:[-99e-5,.601,0,0,.77778],8593:eu,8595:eu,8657:Gu,8659:Gu,8719:$l,8720:$l,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:xc,8748:Yd,8749:Yd,8750:xc,8896:Go,8897:Go,8898:Go,8899:Go,8968:Pl,8969:Pl,8970:Pl,8971:Pl,9168:uu,10216:Pl,10217:Pl,10752:Yu,10753:Yu,10754:Yu,10756:Go,10758:Go},"Size2-Regular":{32:ir,40:Xu,41:Xu,47:vs,91:Ja,92:vs,93:Ja,123:As,125:As,160:ir,710:Ps,732:Ps,770:Ps,771:Ps,8719:qs,8720:qs,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:tu,8748:Qu,8749:Qu,8750:tu,8896:Ol,8897:Ol,8898:Ol,8899:Ol,8968:nu,8969:nu,8970:nu,8971:nu,10216:ru,10217:ru,10752:Nl,10753:Nl,10754:Nl,10756:Ol,10758:Ol},"Size3-Regular":{32:ir,40:Ju,41:Ju,47:iu,91:$s,92:iu,93:$s,123:wc,125:wc,160:ir,710:Sc,732:Sc,770:Sc,771:Sc,8730:[.95003,1.45,0,0,1],8968:au,8969:au,8970:au,8971:au,10216:wc,10217:wc},"Size4-Regular":{32:ir,40:Cc,41:Cc,47:ou,91:qu,92:ou,93:qu,123:su,125:su,160:ir,710:Ec,732:Ec,770:Ec,771:Ec,8730:[1.25003,1.75,0,0,1],8968:lu,8969:lu,8970:lu,8971:lu,9115:cu,9116:Ac,9117:cu,9118:cu,9119:Ac,9120:cu,9121:du,9122:uu,9123:du,9124:du,9125:uu,9126:du,9127:Xd,9128:$u,9129:Rl,9130:[0,.3,0,0,.88889],9131:Xd,9132:$u,9133:Rl,9143:[.88502,.915,0,0,1.05556],10216:su,10217:su,57344:fu,57345:fu,57680:Fl,57681:Fl,57682:Fl,57683:Fl},"Typewriter-Regular":{32:Mc,33:Ri,34:Ri,35:Ri,36:ws,37:ws,38:Ri,39:Ri,40:ws,41:ws,42:[0,.52083,0,0,.525],43:ed,44:[.13889,.125,0,0,.525],45:ed,46:[0,.125,0,0,.525],47:ws,48:Ri,49:Ri,50:Ri,51:Ri,52:Ri,53:Ri,54:Ri,55:Ri,56:Ri,57:Ri,58:ss,59:[.13889,.43056,0,0,.525],60:Qd,61:[-.19549,.41562,0,0,.525],62:Qd,63:Ri,64:Ri,65:Ri,66:Ri,67:Ri,68:Ri,69:Ri,70:Ri,71:Ri,72:Ri,73:Ri,74:Ri,75:Ri,76:Ri,77:Ri,78:Ri,79:Ri,80:Ri,81:[.13889,.61111,0,0,.525],82:Ri,83:Ri,84:Ri,85:Ri,86:Ri,87:Ri,88:Ri,89:Ri,90:Ri,91:ws,92:ws,93:ws,94:Ri,95:[.09514,0,0,0,.525],96:Ri,97:ss,98:Ri,99:ss,100:Ri,101:ss,102:Ri,103:Po,104:Ri,105:Ri,106:[.22222,.61111,0,0,.525],107:Ri,108:Ri,109:ss,110:ss,111:ss,112:Po,113:Po,114:ss,115:ss,116:[0,.55358,0,0,.525],117:ss,118:ss,119:ss,120:ss,121:Po,122:ss,123:ws,124:ws,125:ws,126:Ri,127:Ri,160:Mc,176:Ri,184:[.19445,0,0,0,.525],305:ss,567:Po,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:Ri,715:Ri,728:Ri,730:Ri,770:Ri,771:Ri,776:Ri,915:Ri,916:Ri,920:Ri,923:Ri,926:Ri,928:Ri,931:Ri,933:Ri,934:Ri,936:Ri,937:Ri,8216:Ri,8217:Ri,8242:Ri,9251:[.11111,.21944,0,0,.525]}},qd=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,_l=10,ls=.25,hu=1.2,el=.431,td={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[el,el,el],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:[ls,ls,ls],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]},pu=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],dl=5,nd={"\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 tl(a,y){a===void 0&&(a=77);const b=Jd[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 nd)a=nd[E].codePointAt(0);else if(qd.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 mu={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]},zl={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]},$d={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 ec(a){if(zl[a]){const[be,Ie,Ke]=zl[a],ht=`<span class="stretchy" style="height:${Ke}em"><svg width="100%" height="${Ke}em" viewBox="0 0 ${be} ${Ie}" preserveAspectRatio="none" ><path fill="currentcolor" d="${$d[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Ke/2)/100}em;min-width:0">${ht}</span>`}const[y,b,E,ee]=mu[a];let re,oe;const pe=E/1e3;y.length===3?(re=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],oe=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(re=["slice-1-of-2","slice-2-of-2"],oe=["xMinYMin","xMaxYMin"]):(re=["slice-1-of-1"],oe=[ee]);const ve=y.map((be,Ie)=>`<span class="${re[Ie]}" style=height:${pe}em><svg width=400em height=${pe}em viewBox="0 0 400000 ${E}" preserveAspectRatio="${oe[Ie]} slice"><path fill="currentcolor" d="${$d[be]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${pe}em;min-width:${b}em;">${ve}</span>`}function ef(a){return mu[a]?mu[a][2]/1e3:zl[a][2]}function tf(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 re=E-55296,oe=ee-56320;E=Tl(2,16)+re*Tl(2,10)+oe,b++}}y.push(E)}return y}var kc=8205,Lc=[[kc,1],[65038,2],[127995,5],[129456,4],[917536,96]],fl,tc=[127462,127487];function nc(a){var y;if(fl===void 0){fl={};for(const b of Lc)for(let E=b[0];E<=b[0]+b[1]-1;E++)fl[E]=!0}return(y=fl[a])!=null?y:!1}function nf(a){return a>=tc[0]&&a<=tc[1]}function rf(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=tf(a);let E=0;for(;E<b.length;){const ee=b[E++],re=b[E];if(re===kc){const oe=E-1;for(E+=2;b[E]===kc;)E+=2;y.push(String.fromCodePoint(...b.slice(oe,E-oe+1)))}else if(nc(re)){const oe=E-1;for(;nc(b[E]);)E+=b[E]===kc?2:1;y.push(String.fromCodePoint(...b.slice(oe,2*E-oe-1)))}else nf(ee)?(E+=1,y.push(String.fromCodePoint(...b.slice(E-2,2)))):y.push(String.fromCodePoint(ee))}return y}var af=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=rf(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 hl(a,y){var b,E,ee,re;const oe=[];let pe=a.next();if(pe&&pe!=="\\relax"){if(pe==="\\noexpand")pe=a.next(),pe&&oe.push(pe);else if(pe==="\\obeyspaces")a.obeyspaces=!0;else if(pe==="\\bgroup")oe.push("<{>");else if(pe==="\\egroup")oe.push("<}>");else if(pe==="\\string"){if(pe=a.next(),pe)if(pe.startsWith("\\"))for(const ve of pe)oe.push(ve==="\\"?"\\backslash":ve);else pe==="<{>"?oe.push("\\{"):pe==="<space>"?oe.push("~"):pe==="<}>"&&oe.push("\\}")}else if(pe==="\\csname"){for(;a.peek()==="<space>";)a.next();let ve="",be=!1,Ie=[];do{if(Ie.length===0)if(/^#[\d?@]$/.test(a.peek())){const Ke=a.get().slice(1);Ie=nl((E=(b=y==null?void 0:y(Ke))!=null?b:y==null?void 0:y("?"))!=null?E:"\\placeholder{}",y),pe=Ie[0]}else pe=a.next(),Ie=pe?[pe]:[];be=Ie.length===0,!be&&pe==="\\endcsname"&&(be=!0,Ie.shift()),be||(be=pe==="<$>"||pe==="<$$>"||pe==="<{>"||pe==="<}>"||typeof pe=="string"&&pe.length>1&&pe.startsWith("\\")),be||(ve+=Ie.shift())}while(!be);ve&&oe.push("\\"+ve),oe.push(...Ie)}else if(pe!=="\\endcsname")if(pe.length>1&&pe.startsWith("#")){const ve=pe.slice(1);oe.push(...nl((re=(ee=y==null?void 0:y(ve))!=null?ee:y==null?void 0:y("?"))!=null?re:"\\placeholder{}",y))}else oe.push(pe)}return oe}function nl(a,y=null){const b=[];let E="";for(const oe of a.toString().split(/\r?\n/)){E&&b.push(E),E=" ";const pe=oe.match(/((?:\\%)|[^%])*/);pe!==null&&b.push(pe[0])}const ee=new af(ft(b.join(""))),re=[];do re.push(...hl(ee,y));while(!ee.end());return re}function Da(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 ho(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:Da([a,...y.map(b=>`{${b}}`)])}function pl(a){return Da(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var of=class Zd{constructor(y){Zd._registry[y]=this}static createAtom(y,b,E){return Zd._registry[y].createAtom(b,Dt(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 re of sf(y)){const oe=Zd._registry[re[0].mode];ee.push(...oe.serialize(re,b))}return Da(ee)}return Da(th(y,b))}static getFont(y,b,E){return Zd._registry[y].getFont(b,E)}};of._registry={};var Ss=of;function sf(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 Lo(a,y){const b=[];let E=[],ee;for(const re of a)if(re.type!=="first"&&re.style){let oe;y==="variant"?(oe=re.style.variant,re.style.variantStyle&&re.style.variantStyle!=="up"&&(oe+="-"+re.style.variantStyle)):oe=re.style[y],oe===ee?E.push(re):(E.length>0&&b.push(E),E=[re],ee=oe)}return E.length>0&&b.push(E),b}function rd(a,y){var b;const{parent:E}=a[0],ee=E==null?void 0:E.computedStyle.color,re=[];for(const oe of sf(a)){const pe=y.defaultMode;for(const ve of Lo(oe,"color")){const be=ve[0].computedStyle,Ie=Ss._registry[ve[0].mode].serialize(ve,me(xe({},y),{defaultMode:pe==="text"?"text":"math"}));!y.skipStyles&&be.color&&be.color!=="none"&&(!E||ee!==be.color)?re.push(ho("\\textcolor",(b=be.verbatimColor)!=null?b:be.color,Da(Ie))):re.push(Da(Ie))}}return re}function eh(a,y){const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.backgroundColor;return Lo(a,"backgroundColor").map(ee=>{var re;if(ee.length>0||ee[0].type!=="box"){const oe=ee[0].computedStyle;if(oe.backgroundColor&&oe.backgroundColor!=="none"&&(!b||E!==oe.backgroundColor))return ho("\\colorbox",(re=oe.verbatimBackgroundColor)!=null?re:oe.backgroundColor,Da(rd(ee,me(xe({},y),{defaultMode:"text"}))))}return Da(rd(ee,y))})}function th(a,y){if(a.length===0)return[];const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.fontSize,ee=[];for(const re of Lo(a,"fontSize")){const oe=re[0].computedStyle.fontSize,pe=eh(re,y);pe&&(oe&&oe!=="auto"&&(!b||E!==oe)?ee.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][oe],...pe):ee.push(...pe))}return ee}function id(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 rc(a){if(a.length===0)return"ord";const y=id(a[0].type),b=id(a[a.length-1].type);return y&&y===b?y:"ord"}function ic(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 ei=class Ep{constructor(y,b){var E,ee,re,oe,pe;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:Ne(y)?this.children=y.filter(be=>be!==null):y&&y instanceof Ep&&(this.children=[y]),this.children)for(const be of this.children)be.parent=this;this.type=(E=b==null?void 0:b.type)!=null?E:"ignore",this.isSelected=(b==null?void 0:b.isSelected)===!0,b!=null&&b.caret&&(this.caret=b.caret),this.classes=(ee=b==null?void 0:b.classes)!=null?ee:"",this.isTight=(re=b==null?void 0:b.isTight)!=null?re:!1,b!=null&&b.attributes&&(this.attributes=b.attributes);let ve=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(ve=(pe=Ss.getFont((oe=b.mode)!=null?oe:"math",this,me(xe({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?pe:void 0),ve||(ve="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),Bc(this,ve)}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=ic(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=ic(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"]=ic(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"]=ic(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"]=ic(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=ln(ee)),ee&&ee!==b.backgroundColor&&(this.setStyle("background-color",ee),this.setStyle("display","inline-block"));const re=y.scalingFactor;return this.scale=re,this.skew*=re,this.italic*=re,this}toMarkup(){var y,b,E,ee;let re=(y=this.value)!=null?y:"";if(this.children)for(const Rt of this.children)re+=Rt.toMarkup();let oe="";if(this.svgBody)oe=ec(this.svgBody);else if(this.svgOverlay){oe='<span style="',oe+="display: inline-block;",oe+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,oe+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,oe+='">',oe+=re,oe+="</span>",oe+='<svg style="position:absolute;overflow:visible;',oe+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const Rt=(b=this.cssProperties)==null?void 0:b.padding;Rt?(oe+=`top:${Rt};`,oe+=`left:${Rt};`,oe+=`width:calc(100% - 2 * ${Rt} );`):oe+="top:0;left:0;width:100%;",oe+="z-index:2;",oe+='"',this.svgStyle&&(oe+=this.svgStyle),oe+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,oe+=`>${this.svgOverlay}</svg>`}let pe="";const ve=this.classes.split(" ");ve.push((E={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?E:""),this.caret==="latex"&&ve.push("ML__latex-caret"),this.isSelected&&ve.push("ML__selected");const be=ve.length===1?ve[0]:ve.filter((Rt,Qt,er)=>Rt.length>0&&er.indexOf(Rt)===Qt).join(" ");if(be.length>0&&(pe+=` class="${be}"`),this.id&&(pe+=` data-atom-id=${this.id}`),this.cssId&&(pe+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(pe+=" "+Object.keys(this.attributes).map(Rt=>`${Rt}="${this.attributes[Rt]}"`).join(" ")),this.htmlData){const Rt=this.htmlData.split(",");for(const Qt of Rt){const er=Qt.match(/([^=]+)=(.+$)/);if(er){const Qr=er[1].trim().replace(/ /g,"-");Qr&&(pe+=` data-${Qr}="${er[2]}" `)}else{const Qr=Qt.trim().replace(/ /g,"-");Qr&&(pe+=` data-${Qr} `)}}}const Ie=(ee=this.cssProperties)!=null?ee:{};this.hasExplicitWidth&&Ie.width===void 0&&(Ie.width=`${Math.ceil(this._width*100)/100}em`);const Ke=Object.keys(Ie).map(Rt=>`${Rt}:${Ie[Rt]}`);if(this.scale!==void 0&&this.scale!==1&&(re.length>0||oe.length>0)&&Ke.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const Rt=this.htmlStyle.split(";");let Qt="";for(const er of Rt){const Qr=er.match(/([^=]+):(.+$)/);if(Qr){const Jn=Qr[1].trim().replace(/ /g,"-");Jn&&(Qt+=`${Jn}:${Qr[2]};`)}}Qt&&(pe+=` style="${Qt}"`)}Ke.length>0&&(pe+=` style="${Ke.join(";")}"`);let ht="";return pe.length>0||oe.length>0?ht=`<span${pe}>${re}${oe}</span>`:ht=re,this.caret==="text"?ht+='<span class="ML__text-caret"></span>':this.caret==="math"&&(ht+='<span class="ML__caret"></span>'),ht}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 ve of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&ve in y.cssProperties||this.cssProperties&&ve in this.cssProperties)return!1}const ee=this.cssProperties?Object.keys(this.cssProperties).length:0,re=y.cssProperties?Object.keys(y.cssProperties).length:0;if(ee!==re)return!1;if(ee>0){for(const ve of Object.keys(this.cssProperties))if(this.cssProperties[ve]!==y.cssProperties[ve])return!1}const oe=this.classes.trim().replace(/\s+/g," ").split(" "),pe=y.classes.trim().replace(/\s+/g," ").split(" ");if(oe.length!==pe.length)return!1;oe.sort(),pe.sort();for(const[ve,be]of oe.entries())if(be==="vertical-separator"||be!==pe[ve])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 ad(a){if(!a||a.length===0)return[];a[0].children=ad(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=ad(a[b].children),y.push(a[b]));return y}function gu(a){return a.children&&(a.children=ad(a.children)),a}function vu(a,y){if(!a)return new ei(null,y);const b=new ei(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 ei(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 ei(E,me(xe({},y),{type:"lift"}))}function Os(a){const y=ef(a)/2,b=new ei(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function Bc(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=tl(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,re=0;for(const oe of a.children)oe.height>E&&(E=oe.height),oe.depth>ee&&(ee=oe.depth),re=Math.max(re,(b=oe.maxFontSize)!=null?b:0);a.height=E,a.depth=ee,a._width=a.children.reduce((oe,pe)=>oe+pe.width,0),a.maxFontSize=re}}function yu(a){if("individualShift"in a){const y=a.individualShift;let b=y[0];const E=[b],ee=-b.shift-b.box.depth;let re=ee;for(let oe=1;oe<y.length;oe++){const pe=y[oe],ve=-pe.shift-re-pe.box.depth,be=ve-(b.box.height+b.box.depth);re=re+ve,E.push(be),E.push(pe),b=pe}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 Dc(a){var y;const[b,E]=yu(a);if(!b)return[[],0,0];const ee=new ei(null,{classes:"pstrut"});let re=0;for(const Qt of b)if(typeof Qt!="number"){const er=Qt.box;re=Math.max(re,er.maxFontSize,er.height)}re+=2,ee.height=re,ee.setStyle("height",re,"em");const oe=[];let pe=E,ve=E,be=E,Ie=0;for(const Qt of b){if(typeof Qt=="number")be+=Qt;else{const er=Qt.box,Qr=(y=Qt.classes)!=null?y:[],Jn=new ei([ee,er],{classes:Qr.join(" "),style:Qt.style});er.setStyle("height",er.height+er.depth,"em"),er.setStyle("display","inline-block"),Jn.setStyle("top",-re-be-er.depth,"em"),Qt.marginLeft&&Jn.setStyle("margin-left",Qt.marginLeft,"em"),Qt.marginRight&&Jn.setStyle("margin-right",Qt.marginRight,"em"),oe.push(Jn),be+=er.height+er.depth,Ie=Math.max(Ie,Jn.width)}pe=Math.min(pe,be),ve=Math.max(ve,be)}oe.forEach(Qt=>{Qt.softWidth=Ie});const Ke=new ei(oe,{classes:"vlist"});if(Ke.softWidth=Ie,Ke.height=ve,Ke.setStyle("height",ve,"em"),pe>=0)return[[new ei(Ke,{classes:"vlist-r"})],ve,-pe];const ht=new ei(new ei(null),{classes:"vlist"});ht.height=-pe,ht.setStyle("height",-pe,"em");const Rt=new ei(8203,{classes:"vlist-s",maxFontSize:0});return Rt.softWidth=0,Rt.height=0,Rt.depth=0,[[new ei([Ke,Rt],{classes:"vlist-r"}),new ei(ht,{classes:"vlist-r"})],ve,-pe]}var ao=class extends ei{constructor(a,y){var b;const[E,ee,re]=Dc(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=re,this.softWidth=E.reduce((oe,pe)=>Math.max(oe,pe.width),0)}};function nh(a,y){var b,E,ee,re,oe;const pe=a.metrics,ve=new ei(y.base),be=(b=y.baseShift)!=null?b:0,Ie=(E=y.slant)!=null?E:0;let Ke=0,ht=0;y.above&&(Ke=(ee=y.aboveShift)!=null?ee:Math.max(pe.bigOpSpacing1,pe.bigOpSpacing3-y.above.depth)),y.below&&(ht=(re=y.belowShift)!=null?re:Math.max(pe.bigOpSpacing2,pe.bigOpSpacing4-y.below.height));let Rt=null;if(y.below&&y.above){const Qt=pe.bigOpSpacing5+y.below.height+y.below.depth+ht+ve.depth+be;Rt=new ao({bottom:Qt,children:[pe.bigOpSpacing5,{box:y.below,marginLeft:-Ie,classes:["ML__center"]},ht,{box:ve,classes:["ML__center"]},Ke,{box:y.above,marginLeft:Ie,classes:["ML__center"]},pe.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)Rt=new ao({top:ve.height-be,children:[pe.bigOpSpacing5,{box:y.below,marginLeft:-Ie,classes:["ML__center"]},ht,{box:ve,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const Qt=ve.depth+be;Rt=new ao({bottom:Qt,children:[{box:ve,classes:["ML__center"]},Ke,{box:y.above,marginLeft:Ie,classes:["ML__center"]},pe.bigOpSpacing5]}).wrap(a)}else{const Qt=ve.depth+be;Rt=new ao({bottom:Qt,children:[{box:ve},pe.bigOpSpacing5]}).wrap(a)}return new ei(Rt,{type:(oe=y.type)!=null?oe:"op"})}var od=7,rl=6,Ic=5,ml=4,Hl=3,cs=2,Ms=1,Yo=0,js=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(td).reduce((ee,re)=>me(xe({},ee),{[re]:td[re][E]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return Zs[[Yo,Ms,Yo,Ms,cs,Hl,cs,Hl][this.id]]}get sub(){return Zs[[Yo,Yo,Yo,Yo,cs,cs,cs,cs][this.id]]}get fracNum(){return Zs[[Yo,Ms,Yo,Ms,cs,Hl,ml,Ic][this.id]]}get fracDen(){return Zs[[Yo,Yo,Yo,Yo,cs,cs,ml,ml][this.id]]}get cramp(){return Zs[[Yo,Yo,cs,cs,ml,ml,rl,rl][this.id]]}get isTight(){return this.sizeDelta<0}},Kl={7:new js(od,0,!1),6:new js(rl,0,!0),5:new js(Ic,0,!1),4:new js(ml,0,!0),3:new js(Hl,-3,!1),2:new js(cs,-3,!0),1:new js(Ms,-4,!1),0:new js(Yo,-4,!0)},Zs=me(xe({},Kl),{displaystyle:Kl[od],textstyle:Kl[Ic],scriptstyle:Kl[Hl],scriptscriptstyle:Kl[Ms]});function ac(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:_l,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=Tl(10,y);return Math.round(a.dimension/_l*E*ee)/ee}return a.dimension*E}function sd(a,y){if(a===null)return 0;const b=ac(a)/_l;if(Number.isFinite(y)){const E=Tl(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 lf(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 Oo(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=lf(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 Us(a,y){return a==null?null:"number"in a?me(xe({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?me(xe({},a),{factor:a.factor*y}):me(xe({},a),{factor:y}):"dimension"in a?me(xe({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:Us(a.glue,y),shrink:Us(a.shrink,y),grow:Us(a.grow,y)}:a.shrink?{glue:Us(a.glue,y),shrink:Us(a.shrink,y)}:a.grow?{glue:Us(a.glue,y),grow:Us(a.grow,y)}:{glue:Us(a.glue,y)}:null}var rh={"p@":{dimension:1},"z@":{dimension:0},maxdimen:{dimension:16383.99999},hfuzz:{dimension:.1},vfuzz:{dimension:.1},overfullrule:{dimension:5},hsize:{dimension:6.5,unit:"in"},vsize:{dimension:8.9,unit:"in"},parindent:{dimension:20},maxdepth:{dimension:4},splitmaxdepth:{register:"maxdimen"},boxmaxdepth:{register:"maxdimen"},delimitershortfall:{dimension:5},nulldelimiterspace:{dimension:1.2,unit:"pt"},scriptspace:{dimension:.5},topskip:{dimension:10},splittopskip:{dimension:10},normalbaselineskip:{dimension:12},normallineskip:{dimension:1},normallineskiplimit:{dimension:0},jot:{dimension:3},doublerulesep:{dimension:2},arrayrulewidth:{dimension:.4},arraycolsep:{dimension:5},fboxsep:{dimension:3},fboxrule:{dimension:.4},"z@skip":{glue:{dimension:0},shrink:{dimension:0},grow:{dimension:0}},hideskip:{glue:{dimension:-1e3},grow:{dimension:1,unit:"fill"}},"@flushglue":{glue:{dimension:0},grow:{dimension:1,unit:"fill"}},parskip:{glue:{dimension:0},grow:{dimension:1}},abovedisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},abovedisplayshortskip:{glue:{dimension:0},grow:{dimension:3}},belowdisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},belowdisplayshortskip:{glue:{dimension:7},grow:{dimension:3},shrink:{dimension:4}},parfillskip:{glue:{dimension:0},grow:{dimension:1,unit:"fil"}},thinmuskip:{glue:{dimension:3,unit:"mu"}},medmuskip:{glue:{dimension:4,unit:"mu"},grow:{dimension:2,unit:"mu"},shrink:{dimension:4,unit:"mu"}},thickmuskip:{glue:{dimension:5,unit:"mu"},grow:{dimension:5,unit:"mu"}},smallskipamount:{glue:{dimension:3},grow:{dimension:1},shrink:{dimension:1}},medskipamount:{glue:{dimension:6},grow:{dimension:2},shrink:{dimension:3}},bigskipamount:{glue:{dimension:12},grow:{dimension:2},shrink:{dimension:4}},pretolerance:100,tolerance:200,hbadness:1e3,vbadness:1e3,linepenalty:10,hyphenpenalty:50,exhyphenpenalty:50,binoppenalty:700,relpenalty:500,clubpenalty:150,widowpenalty:150,displaywidowpenalty:50,brokenpenalty:100,predisplaypenalty:1e4,doublehyphendemerits:1e4,finalhyphendemerits:5e3,adjdemerits:1e4,tracinglostchars:1,uchyph:1,delimiterfactor:901,defaulthyphenchar:"\\-",defaultskewchar:-1,newlinechar:-1,showboxbreadth:5,showboxdepth:3,errorcontextlines:5,interdisplaylinepenalty:100,interfootnotelinepenalty:100,baselineSkip:1.2,arraystretch:1,month:new Date().getMonth()+1,day:new Date().getDate(),year:new Date().getFullYear()};function oc(){return xe({},rh)}function bu(){return{registers:oc(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:at.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:Lt,backgroundColorMap:nt,getMacro:a=>En(a,bt())}}var Na=class Ap{constructor(y,b){var E,ee,re,oe,pe,ve,be,Ie,Ke,ht,Rt,Qt,er,Qr,Jn;let Nr;y!=null&&y.parent?(this.parent=y.parent,Nr=y.parent,this.registers={}):(Nr=xe(xe({},bu()),(E=y==null?void 0:y.from)!=null?E:{}),this.registers=Nr.registers),Nr.atomIdsSettings&&(this.atomIdsSettings=xe({},Nr.atomIdsSettings)),this.renderPlaceholder=Nr.renderPlaceholder,this.isPhantom=(oe=(re=y==null?void 0:y.isPhantom)!=null?re:(ee=this.parent)==null?void 0:ee.isPhantom)!=null?oe:!1,this.letterShapeStyle=Nr.letterShapeStyle,this.minFontScale=Nr.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(ve=(pe=this.parent)==null?void 0:pe.color)!=null?ve:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(Ie=(be=this.parent)==null?void 0:be.backgroundColor)!=null?Ie:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((Ke=this.parent)==null?void 0:Ke.size)?this.size=b.fontSize:this.size=(Rt=(ht=this.parent)==null?void 0:ht.size)!=null?Rt:dl;let ri=(er=(Qt=this.parent)==null?void 0:Qt.mathstyle)!=null?er:Zs.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(Nr instanceof Ap)switch(y.mathstyle){case"cramp":ri=ri.cramp;break;case"superscript":ri=ri.sup;break;case"subscript":ri=ri.sub;break;case"numerator":ri=ri.fracNum;break;case"denominator":ri=ri.fracDen;break}switch(y.mathstyle){case"textstyle":ri=Zs.textstyle;break;case"displaystyle":ri=Zs.displaystyle;break;case"scriptstyle":ri=Zs.scriptstyle;break;case"scriptscriptstyle":ri=Zs.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=ri,this.smartFence=Nr.smartFence,this.placeholderSymbol=Nr.placeholderSymbol,this.colorMap=(Qr=Nr.colorMap)!=null?Qr:zr=>zr,this.backgroundColorMap=(Jn=Nr.backgroundColorMap)!=null?Jn:zr=>zr,this.getMacro=Nr.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===od||this.mathstyle.id===rl}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(pu[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 sd(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 re=b.evaluate(ee);if(re!==void 0)return"string"in re?{string:Number(ee).toString()+re.string}:"number"in re?{number:E*re.number}:"dimension"in re?me(xe({},re),{dimension:E*re.dimension}):"glue"in re?me(xe({},re),{glue:me(xe({},re.glue),{dimension:E*re.glue.dimension}),shrink:re.shrink?me(xe({},re.shrink),{dimension:E*re.shrink.dimension}):void 0,grow:re.grow?me(xe({},re.grow),{dimension:E*re.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:ac(E,b)/_l}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}},sc=["body","above","below","superscript","subscript"];function il(a){return typeof a=="string"&&sc.includes(a)}function Tc(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var Ar=class Gl{constructor(y){var b,E,ee,re,oe,pe;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=xe({},y.style),this.displayContainsHighlight=(re=y.displayContainsHighlight)!=null?re:!1,this.captureSelection=(oe=y.captureSelection)!=null?oe:!1,this.skipBoundary=(pe=y.skipBoundary)!=null?pe:!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 re=cf(b),oe=[];for(const ve of re){const be=ve[0].style,Ie=uf(y,ve,{style:{color:be.color,backgroundColor:be.backgroundColor,fontSize:be.fontSize}});Ie&&oe.push(Ie)}if(oe.length===0)return null;const pe=((ee=E==null?void 0:E.classes)!=null?ee:"").trim();return oe.length===1&&!pe&&!(E!=null&&E.type)?oe[0].wrap(y):new ei(oe,{classes:pe,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 Gl({type:"mord",value:y,mode:"math"}):new Gl(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=xe({},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=ud(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=Dt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?Da([ho(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?Da([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return Ss.serialize(this.body,me(xe({},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=me(xe({},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(il(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of sc)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(il(y)),il(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 Tc(this.parentBranch)?this.parentBranch[0]:-1}get col(){return Tc(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",re=xe(xe({},(b=(y=this.parent)==null?void 0:y.computedStyle)!=null?b:{}),this.style);return delete re.variant,delete re.variantStyle,ee||delete re.verbatimBackgroundColor,E||delete re.verbatimColor,re}applyStyle(y){this.isDirty=!0,this.style=xe(xe({},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(il(b)),!il(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 re of y)re.parent=this,re.parentBranch=b;this.isDirty=!0}makeFirstAtom(y){const b=new Gl({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(il(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 sc)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=Dt(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const E=new Na({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,re=this.superscript,oe=this.subscript;if(!re&&!oe)return ee;let pe=null,ve=null;const be=(E=b.isCharacterBox)!=null?E:this.isCharacterBox();let Ie=0;if(re){const er=new Na({parent:y,mathstyle:"superscript"});pe=Gl.createBox(er,re),be||(Ie=ee.height-y.metrics.supDrop*er.scalingFactor)}let Ke=0;if(oe){const er=new Na({parent:y,mathstyle:"subscript"});ve=Gl.createBox(er,oe),be||(Ke=ee.depth+y.metrics.subDrop*er.scalingFactor)}let ht;y.isDisplayStyle?ht=y.metrics.sup1:y.isCramped?ht=y.metrics.sup3:ht=y.metrics.sup2;const Rt=.5/_l/y.scalingFactor;let Qt=null;if(ve&&pe){Ie=Math.max(Ie,ht,pe.depth+.25*y.metrics.xHeight),Ke=Math.max(Ke,y.metrics.sub2);const er=y.metrics.defaultRuleThickness;if(Ie-pe.depth-(ve.height-Ke)<4*er){Ke=4*er-(Ie-pe.depth)+ve.height;const Jn=.8*y.metrics.xHeight-(Ie-pe.depth);Jn>0&&(Ie+=Jn,Ke-=Jn)}const Qr=this.isExtensibleSymbol&&ee.italic?-ee.italic:0;Qt=new ao({individualShift:[{box:ve,shift:Ke,marginLeft:Qr},{box:pe,shift:-Ie}]}).wrap(y)}else ve&&!pe?(Ke=Math.max(Ke,y.metrics.sub1,ve.height-.8*el),Qt=new ao({shift:Ke,children:[{box:ve,marginRight:Rt,marginLeft:this.isCharacterBox()?-ee.italic:0}]})):!ve&&pe&&(Ie=Math.max(Ie,ht,pe.depth+.25*el),Qt=new ao({shift:-Ie,children:[{box:pe,marginRight:Rt}]}));return new ei([ee,new ei(Qt,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const E=this.superscript?Gl.createBox(new Na({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ee=this.subscript?Gl.createBox(new Na({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!E&&!ee?b.base.wrap(y):nh(y,me(xe({},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,re,oe;const pe=(E=this.value)!=null?E:this.body,ve=(ee=b==null?void 0:b.boxType)!=null?ee:id(this.type);let be=(re=b==null?void 0:b.classes)!=null?re:"";this.mode==="text"&&(be+=" ML__text");const Ie=typeof pe=="string"||pe===void 0?new ei(pe!=null?pe:null,{type:ve,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:me(xe({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:be}):(oe=Gl.createBox(y,pe,{type:ve,classes:be}))!=null?oe:new ei(null);return y.isTight&&(Ie.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(Ie.italic=0),Ie.right=Ie.italic,this.bind(y,Ie),this.caret&&!this.superscript&&!this.subscript&&(Ie.caret=this.caret),Ie}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 cf(a){let y;const b=[];let E=[];for(const ee of a)if(!y&&!ee.style)E.push(ee);else{const re=ee.computedStyle;y&&re.color===y.color&&re.backgroundColor===y.backgroundColor&&re.fontSize===y.fontSize?E.push(ee):(E.length>0&&b.push(E),E=[ee],y=re)}return E.length>0&&b.push(E),b}function uf(a,y,b){var E,ee,re,oe,pe;if(!y||y.length===0)return null;const ve=new Na({parent:a},b.style),be=!((E=ve.atomIdsSettings)!=null&&E.groupNumbers);let Ie=[];if(y.length===1){const ht=y[0],Rt=ht.render(ve);Rt&&(be&&ht.isSelected&&Rt.selected(!0),Ie=[Rt])}else{let ht="",Rt=!0;for(const Qt of y){(ee=ve.atomIdsSettings)!=null&&ee.groupNumbers&&ht&&(Rt&&Qt.isDigit()||!Rt&&cd(Qt))&&(ve.atomIdsSettings.overrideID=ht);const er=Qt.render(ve);ve.atomIdsSettings&&(ve.atomIdsSettings.overrideID=void 0),er&&((re=ve.atomIdsSettings)!=null&&re.groupNumbers&&((Qt.isDigit()||cd(Qt))&&(!ht||Rt!==Qt.isDigit())&&(Rt=Qt.isDigit(),ht=(oe=Qt.id)!=null?oe:""),ht&&(!(Qt.isDigit()||cd(Qt))||!Qt.hasEmptyBranch("superscript")||!Qt.hasEmptyBranch("subscript"))&&(ht="")),be&&Qt.isSelected&&er.selected(!0),Ie.push(er))}}if(Ie.length===0)return null;const Ke=new ei(Ie,me(xe({isTight:ve.isTight},b),{type:(pe=b.type)!=null?pe:"lift"}));return Ke.isSelected=Ie.every(ht=>ht.isSelected),Ke.wrap(ve)}function cd(a){return a.mode==="text"}function ud(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof Ar?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var al=class Mp extends Ar{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 Mp(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:wn("text",this.value.codePointAt(0))}};function Pc(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let E=0;for(;E<b&&ih(a.ranges[E],y.ranges[E])==="equal";)E++;return E===b?"equal":"different"}}return"different"}function ih(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function Xo(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 gl(a){return typeof a=="number"&&!Number.isNaN(a)}function xu(a){return Array.isArray(a)&&a.length===2}function wu(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function ah(a,y){const b=a.at(y);let E;if(b){E=b.mode;let ee=b.parent;for(;!E&ⅇ)ee&&(E=ee.mode),ee=ee.parent}return E}function df(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,re=!1,oe=!1,pe=!1,ve=!1,be=!1,Ie=!1,Ke=!1,ht=!1,Rt=!1,Qt=!1,er=!1,Qr=!1,Jn=a[0],Nr=0;for(;Jn!=null&&Jn.type&&/^(subsup|placeholder)$/.test(Jn.type);)Nr+=1,Jn=a[Nr];return b=!Jn||Jn.type==="first",Jn&&(er=Jn.mode==="text",E=!er&&Jn.type==="mord"&&he.test(Jn.value),ee=!er&&Jn.type==="mord"&&/\d+$/.test(Jn.value),re=!er&&Jn.isFunction,oe=Jn.type==="genfrac",pe=Jn.type==="surd",ve=Jn.type==="mbin",be=Jn.type==="mrel",Ie=Jn.type==="mop"||Jn.type==="operator"||Jn.type==="extensible-symbol",Ke=Jn.type==="mpunct"||Jn.type==="minner",ht=Jn.type==="array",Rt=Jn.type==="mopen",Qt=Jn.type==="mclose"||Jn.type==="leftright",Qr=Jn.type==="space"),y.after.includes("nothing")&&b||y.after.includes("letter")&&E||y.after.includes("digit")&&ee||y.after.includes("function")&&re||y.after.includes("frac")&&oe||y.after.includes("surd")&&pe||y.after.includes("binop")&&ve||y.after.includes("relop")&&be||y.after.includes("operator")&&Ie||y.after.includes("punct")&&Ke||y.after.includes("array")&&ht||y.after.includes("openfence")&&Rt||y.after.includes("closefence")&&Qt||y.after.includes("text")&&er||y.after.includes("space")&&Qr?y.value:""}function dd(a,y,b){return b?df(a,b[y]):""}var ff={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\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 Oc(a,y){var b;let E=(b=y==null?void 0:y.format)!=null?b:"auto";return E==="auto"&&([E,a]=pf(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",ns(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function ns(a,y){var b,E,ee;if(!a)return"";let re=!1,oe;const pe=(b=y.inlineShortcuts)!=null?b:ff;if(!re&&(a.startsWith("^")||a.startsWith("_"))&&(oe=vl(a.slice(1),{inlineShortcuts:pe,noWrap:!0}),a=a[0]+"{"+oe.match+"}",a+=ns(oe.rest,y),re=!0),re||(oe=a.match(/^(sqrt|\u221A)(.*)/),oe&&(oe=vl(oe[2],{inlineShortcuts:pe,noWrap:!0}),a="\\sqrt{"+((E=oe.match)!=null?E:"\\placeholder{}")+"}",a+=ns(oe.rest,y),re=!0)),re||(oe=a.match(/^(\\cbrt|\u221B)(.*)/),oe&&(oe=vl(oe[2],{inlineShortcuts:pe,noWrap:!0}),a="\\sqrt[3]{"+((ee=oe.match)!=null?ee:"\\placeholder{}")+"}",a+=ns(oe.rest,y),re=!0)),re||(oe=a.match(/^abs(.*)/),oe&&(oe=vl(oe[1],{inlineShortcuts:pe,noWrap:!0}),a="\\left|"+oe.match+"\\right|",a+=ns(oe.rest,y),re=!0)),re||(oe=a.match(/^["”“](.*?)["”“](.*)/),oe&&(a="\\text{"+oe[1]+"}",a+=ns(oe[2],y),re=!0)),re||(oe=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),oe&&(a=hf(oe[1],pe),a+=ns(oe[2],y),re=!0)),!re&&/^([fgh])[^a-zA-Z]/.test(a)&&(oe=vl(a.slice(1),{inlineShortcuts:pe,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+oe.match+"\\right)":a[0]+oe.match,a+=ns(oe.rest,y),re=!0),re||(oe=a.match(/^([a-zA-Z]+)(.*)/),oe&&(a=hf(oe[1],pe),a+=ns(oe[2],y),re=!0)),!re)if(oe=vl(a,{inlineShortcuts:pe,noWrap:!0}),oe.match&&oe.rest[0]==="/"){const ve=vl(oe.rest.slice(1),{inlineShortcuts:pe,noWrap:!0});ve.match&&(a="\\frac{"+oe.match+"}{"+ve.match+"}"+ns(ve.rest,y)),re=!0}else oe.match&&(a=a.startsWith("(")?"\\left("+oe.match+"\\right)"+ns(oe.rest,y):oe.match+ns(oe.rest,y),re=!0);return re||(oe=a.match(/^(\s+)(.*)$/),oe&&(a=" "+ns(oe[2],y),re=!0)),a}function vl(a,y){let b="";a=a.trim();let E=a,ee=a.charAt(0),re={"(":")","{":"}","[":"]"}[ee];if(re){let oe=1,pe=1;for(;pe<a.length&&oe>0;)a[pe]===ee&&oe++,a[pe]===re&&oe--,pe++;oe===0?(y.noWrap&&ee==="("?b=ns(a.substring(1,pe-1),y):(ee==="{"&&re==="}"&&(ee="\\{",re="\\}"),b="\\left"+ee+ns(a.substring(1,pe-1),y)+"\\right"+re),E=a.slice(Math.max(0,pe))):(b=a.substring(1,pe),E="")}else{let oe=a.match(/^([a-zA-Z]+)/);if(oe){let pe=dd(null,a,y.inlineShortcuts);if(pe)return pe=pe.replace("_{#?}",""),pe=pe.replace("^{#?}",""),{match:pe,rest:a.slice(pe.length)}}if(oe=a.match(/^([a-zA-Z])/),oe)return{match:oe[1],rest:a.slice(1)};if(oe=a.match(/^(-)?\d+(\.\d*)?/),oe)return{match:oe[0],rest:a.slice(oe[0].length)};/^\\(left|right)/.test(a)||(oe=a.match(/^(\\[a-zA-Z]+)/),oe&&(E=a.slice(oe[1].length),b=oe[1]))}return{match:b,rest:E}}function hf(a,y){let b=dd(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var fd=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function yl(a){const y=a.trim();for(const b of fd)if(y.startsWith(b[0])&&y.endsWith(b[1]))return[!0,y.substring(b[0].length,y.length-b[1].length)];return[!1,a]}function pf(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=yl(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 Su="$$",oh="$$",sh=(a,y,b)=>(fd.some(E=>y.startsWith(E[0])&&y.endsWith(E[1]))||(y=`${Su} ${y} ${oh}`),y),mf=class $f{constructor(y){$f._modes[y]=this}static onPaste(y,b,E){var ee;if(!b.contentEditable&&b.userSelect==="none")return b.model.announce("plonk"),!1;if(typeof E=="string"){const oe=new DataTransfer;oe.setData("text/plain",E),E=oe}const re=new ClipboardEvent("paste",{clipboardData:E,cancelable:!0});return(ee=b.host)!=null&&ee.dispatchEvent(re)?$f._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]:Xo(E.selection),re=E.getValue(ee,b);navigator.clipboard.writeText(re).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,re=ee.selectionIsCollapsed?[0,ee.lastOffset]:Xo(ee.selection);let oe=ee.getAtoms(re);if(oe.every(pe=>pe.mode==="text"||!pe.mode))b.clipboardData.setData("text/plain",oe.filter(pe=>pe instanceof al).map(pe=>pe.value).join(""));else if(oe.every(pe=>pe.mode==="latex"))b.clipboardData.setData("text/plain",ee.getAtoms(re,{includeChildren:!0}).map(pe=>{var ve;return(ve=pe.value)!=null?ve:""}).join(""));else{let pe;oe.length===1&&oe[0].verbatimLatex!==void 0?pe=oe[0].verbatimLatex:pe=ee.getValue(re,"latex-expanded"),b.clipboardData.setData("application/x-latex",pe);try{b.clipboardData.setData("text/plain",y.options.onExport(y,pe,re))}catch(ve){}if(oe.length===1){const ve=oe[0];(ve.type==="root"||ve.type==="group")&&(oe=ve.body.filter(be=>be.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(oe.map(ve=>ve.toJson())))}catch(ve){}if((E=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&E.ComputeEngine){const ve=window.MathfieldElement.computeEngine;if(ve)try{const be=ve.jsonSerializationOptions;ve.jsonSerializationOptions={metadata:["latex"]};const Ie=ve.parse(ee.getValue(re,"latex-unstyled"));ve.jsonSerializationOptions=be;const Ke=JSON.stringify(Ie.json);Ke&&b.clipboardData.setData("application/json",Ke)}catch(be){}}}b.preventDefault()}static insert(y,b,E={}){var ee;const re=E.mode==="auto"?y.mode:(ee=E.mode)!=null?ee:y.mode;return $f._modes[re].insert(y,b,E)}onPaste(y,b){return!1}insert(y,b,E){return!1}};mf._modes={};var ya=mf,lh=[{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendSelectionBackward"},{key:"shift+[ArrowRight]",command:"extendSelectionForward"},{key:"shift+[ArrowUp]",command:"extendSelectionUpward"},{key:"shift+[ArrowDown]",command:"extendSelectionDownward"},{key:"[Backspace]",command:"deleteBackward"},{key:"alt+[Delete]",command:"deleteBackward"},{key:"[Delete]",command:"deleteForward"},{key:"alt+[Backspace]",command:"deleteForward"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"shift+alt+[ArrowLeft]",command:"extendToPreviousWord"},{key:"shift+alt+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"shift+ctrl+[ArrowLeft]",command:"extendToGroupStart"},{key:"shift+ctrl+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Home]",command:"moveToMathfieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathfieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"shift+cmd+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathfieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathfieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"shift+cmd+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",command:"moveToNextGroup"},{key:"shift+[Tab]",command:"moveToPreviousGroup"},{key:"[Escape]",ifMode:"math",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"text",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"latex",command:["complete","complete",{selectItem:"true"}]},{key:"\\",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[IntlBackslash]",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[Tab]",ifMode:"latex",command:["complete","accept-suggestion"]},{key:"[Return]",ifMode:"latex",command:"complete"},{key:"[Enter]",ifMode:"latex",command:"complete"},{key:"shift+[Escape]",ifMode:"latex",command:["complete","reject"]},{key:"[ArrowDown]",ifMode:"latex",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"latex",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deleteBackward"},{key:"[Undo]",command:"undo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"cmd+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"ctrl+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"cmd+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"ctrl+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"cmd+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+y",command:"redo"},{key:"shift+ctrl+z",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+z",command:"redo"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathfieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathfieldEnd"},{key:"shift+ctrl+b",ifPlatform:"macos",command:"extendSelectionBackward"},{key:"shift+ctrl+f",ifPlatform:"macos",command:"extendSelectionForward"},{key:"shift+ctrl+p",ifPlatform:"macos",command:"extendSelectionUpward"},{key:"shift+ctrl+n",ifPlatform:"macos",command:"extendSelectionDownward"},{key:"shift+ctrl+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"shift+ctrl+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"alt+ctrl+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"alt+ctrl+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"shift+alt+ctrl+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"shift+alt+ctrl+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deleteBackward"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteForward"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"alt+p",ifMode:"math",command:["insert","\\pi"]},{key:"alt+v",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"alt+o",ifMode:"math",command:["insert","\\emptyset"]},{key:"alt+d",ifMode:"math",command:["insert","\\differentialD"]},{key:"shift+alt+o",ifMode:"math",command:["insert","\\varnothing"]},{key:"shift+alt+d",ifMode:"math",command:["insert","\\partial"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","\\backslash"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+alt+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleContextMenu"},{key:"alt+shift+[Space]",command:"toggleVirtualKeyboard"},{key:"alt+ctrl+[ArrowUp]",command:["speak","all",{withHighlighting:!1}]},{key:"alt+ctrl+[ArrowDown]",command:["speak","selection",{withHighlighting:!1}]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["switchMode","text","",""]},{key:"shift+alt+[KeyT]",ifMode:"math",command:["switchMode","text","",""]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"text",command:["switchMode","math","",""]},{key:"shift+alt+[KeyT]",ifMode:"text",command:["switchMode","math","",""]},{key:"/",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+shift+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrack #0 \\right\\rbrack"]},{key:"ctrl+[Minus]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"moveToSubscript"},{key:"shift+alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrace #0 \\right\\rbrace"]},{key:"ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"shift+ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"shift+cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Backspace]",ifMode:"math",command:"removeRow"},{key:"cmd+[Backspace]",ifMode:"math",command:"removeRow"},{key:"alt+[Tab]",ifMode:"math",command:"addColumnAfter"},{key:"shift+alt+[Tab]",ifMode:"math",command:"addColumnBefore"},{key:"alt+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Enter]",ifMode:"math",command:"addRowBefore"},{key:"alt+[Return]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Return]",ifMode:"math",command:"addRowBefore"},{key:"shift+[Backspace]",ifMode:"math",command:"removeColumn"},{key:"alt+[Digit5]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","$\\infty"]},{key:"alt+[Digit9]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert",")"]},{key:"alt+|",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","|"]},{key:"shift+[Backquote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\~"]},{key:"[Backquote]",ifLayout:["windows.french","linux.french"],ifMode:"math",command:["insert","^2"]},{key:"[Backquote]",ifLayout:["windows.german","linux.german"],ifMode:"math",command:["insert","^"]},{key:"[IntlBackslash]",ifLayout:["apple.german"],ifMode:"math",command:["insert","^"]}],hd={"\\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 Ns(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function Rs(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 bl(a){const y=Rs(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function pd(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 md(a,y,b){if(!y)return null;const E=a.field.getBoundingClientRect(),ee=y.right-y.left,re=y.bottom-y.top,oe=Math.ceil(y.left-E.left+a.field.scrollLeft*b),pe=Math.ceil(y.top-E.top);return{left:oe,right:oe+ee,top:pe,bottom:pe+re}}function gd(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 re=gd(ee);E.left=Math.min(E.left,re.left),E.right=Math.max(E.right,re.right),E.top=Math.min(E.top,re.top),E.bottom=Math.max(E.bottom,re.bottom)}return E}function lc(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 re=a.field.querySelector(`[data-atom-id="${y.id}"]`);return ee=re?gd(re):null,a.atomBoundsCache&&(ee?a.atomBoundsCache.set(y.id,ee):a.atomBoundsCache.delete(y.id)),ee!=null?ee:null}function gf(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 re=a.field,oe=re.offsetWidth;let ve=Math.floor(re.getBoundingClientRect().width)/oe;ve=isNaN(ve)?1:ve;const be=md(a,lc(a,ee),ve);if(be){const Ie=pd(ee);if(E.has(Ie)){const Ke=E.get(Ie);E.set(Ie,{left:Math.min(Ke.left,be.left),right:Math.max(Ke.right,be.right),top:Math.min(Ke.top,be.top),bottom:Math.max(Ke.bottom,be.bottom)})}else E.set(Ie,be)}}return[...E.values()]}function vd(a,y){return a.model.selection.ranges.reduce((b,E)=>b.concat(...gf(a,E,y)),[])}function yd(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function Cu(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 vf=`@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;
|
|
|
}
|
|
|
`,ro=`.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);
|
|
|
}
|
|
|
`,yf=`#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);
|
|
|
}
|
|
|
`,ch=`/* 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;
|
|
|
}
|
|
|
`,cc=`/* 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);*/
|
|
|
}
|
|
|
`,uh=`.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));
|
|
|
}
|
|
|
`,Eu=`:host {
|
|
|
--primary-color: #5898ff;
|
|
|
--primary-color-dimmed: #c0c0f0;
|
|
|
--primary-color-dark: var(--blue-500);
|
|
|
--primary-color-light: var(--blue-100);
|
|
|
--primary-color-reverse: #ffffff;
|
|
|
--secondary-color: #ff8a65;
|
|
|
--secondary-color-dimmed: #f0d5c5;
|
|
|
--secondary-color-dark: var(--orange-500);
|
|
|
--secondary-color-light: var(--orange-100);
|
|
|
--secondary-color-reverse: #ffffff;
|
|
|
--link-color: #5898ff;
|
|
|
--link-color-dimmed: #c5c5c5;
|
|
|
--link-color-dark: #121212;
|
|
|
--link-color-light: #e2e2e2;
|
|
|
--link-color-reverse: #ffffff;
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--neutral-100: #f5f5f5;
|
|
|
--neutral-200: #eeeeee;
|
|
|
--neutral-300: #e0e0e0;
|
|
|
--neutral-400: #bdbdbd;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #757575;
|
|
|
--neutral-700: #616161;
|
|
|
--neutral-800: #424242;
|
|
|
--neutral-900: #212121;
|
|
|
--red-25: #fff8f7;
|
|
|
--red-50: #fff1ef;
|
|
|
--red-100: #ffeae6;
|
|
|
--red-200: #ffcac1;
|
|
|
--red-300: #ffa495;
|
|
|
--red-400: #ff7865;
|
|
|
--red-500: #f21c0d;
|
|
|
--red-600: #e50018;
|
|
|
--red-700: #d30024;
|
|
|
--red-800: #bd002c;
|
|
|
--red-900: #a1002f;
|
|
|
--orange-25: #fffbf8;
|
|
|
--orange-50: #fff7f1;
|
|
|
--orange-100: #fff3ea;
|
|
|
--orange-200: #ffe1c9;
|
|
|
--orange-300: #ffcca2;
|
|
|
--orange-400: #ffb677;
|
|
|
--orange-500: #fe9310;
|
|
|
--orange-600: #f58700;
|
|
|
--orange-700: #ea7c00;
|
|
|
--orange-800: #dc6d00;
|
|
|
--orange-900: #ca5b00;
|
|
|
--brown-25: #fff8ef;
|
|
|
--brown-50: #fff1df;
|
|
|
--brown-100: #ffe9ce;
|
|
|
--brown-200: #ebcca6;
|
|
|
--brown-300: #cdaf8a;
|
|
|
--brown-400: #af936f;
|
|
|
--brown-500: #856a47;
|
|
|
--brown-600: #7f5e34;
|
|
|
--brown-700: #78511f;
|
|
|
--brown-800: #6e4200;
|
|
|
--brown-900: #593200;
|
|
|
--yellow-25: #fffdf9;
|
|
|
--yellow-50: #fffcf2;
|
|
|
--yellow-100: #fffaec;
|
|
|
--yellow-200: #fff2ce;
|
|
|
--yellow-300: #ffe8ab;
|
|
|
--yellow-400: #ffdf85;
|
|
|
--yellow-500: #ffcf33;
|
|
|
--yellow-600: #f1c000;
|
|
|
--yellow-700: #dfb200;
|
|
|
--yellow-800: #c9a000;
|
|
|
--yellow-900: #ad8a00;
|
|
|
--lime-25: #f4ffee;
|
|
|
--lime-50: #e9ffdd;
|
|
|
--lime-100: #ddffca;
|
|
|
--lime-200: #a8fb6f;
|
|
|
--lime-300: #94e659;
|
|
|
--lime-400: #80d142;
|
|
|
--lime-500: #63b215;
|
|
|
--lime-600: #45a000;
|
|
|
--lime-700: #268e00;
|
|
|
--lime-800: #007417;
|
|
|
--lime-900: #005321;
|
|
|
--green-25: #f5fff5;
|
|
|
--green-50: #ebffea;
|
|
|
--green-100: #e0ffdf;
|
|
|
--green-200: #a7ffa7;
|
|
|
--green-300: #5afa65;
|
|
|
--green-400: #45e953;
|
|
|
--green-500: #17cf36;
|
|
|
--green-600: #00b944;
|
|
|
--green-700: #00a34a;
|
|
|
--green-800: #008749;
|
|
|
--green-900: #00653e;
|
|
|
--teal-25: #f3ffff;
|
|
|
--teal-50: #e6fffe;
|
|
|
--teal-100: #d9fffe;
|
|
|
--teal-200: #8dfffe;
|
|
|
--teal-300: #57f4f4;
|
|
|
--teal-400: #43e5e5;
|
|
|
--teal-500: #17cfcf;
|
|
|
--teal-600: #00c2c0;
|
|
|
--teal-700: #00b5b1;
|
|
|
--teal-800: #00a49e;
|
|
|
--teal-900: #009087;
|
|
|
--cyan-25: #f7fcff;
|
|
|
--cyan-50: #eff8ff;
|
|
|
--cyan-100: #e7f5ff;
|
|
|
--cyan-200: #c2e6ff;
|
|
|
--cyan-300: #95d5ff;
|
|
|
--cyan-400: #61c4ff;
|
|
|
--cyan-500: #13a7ec;
|
|
|
--cyan-600: #069eda;
|
|
|
--cyan-700: #0095c9;
|
|
|
--cyan-800: #0088b2;
|
|
|
--cyan-900: #0a7897;
|
|
|
--blue-25: #f7faff;
|
|
|
--blue-50: #eef5ff;
|
|
|
--blue-100: #e5f1ff;
|
|
|
--blue-200: #bfdbff;
|
|
|
--blue-300: #92c2ff;
|
|
|
--blue-400: #63a8ff;
|
|
|
--blue-500: #0d80f2;
|
|
|
--blue-600: #0077db;
|
|
|
--blue-700: #006dc4;
|
|
|
--blue-800: #0060a7;
|
|
|
--blue-900: #005086;
|
|
|
--indigo-25: #f8f7ff;
|
|
|
--indigo-50: #f1efff;
|
|
|
--indigo-100: #eae7ff;
|
|
|
--indigo-200: #ccc3ff;
|
|
|
--indigo-300: #ac99ff;
|
|
|
--indigo-400: #916aff;
|
|
|
--indigo-500: #63c;
|
|
|
--indigo-600: #5a21b2;
|
|
|
--indigo-700: #4e0b99;
|
|
|
--indigo-800: #3b0071;
|
|
|
--indigo-900: #220040;
|
|
|
--purple-25: #fbf7ff;
|
|
|
--purple-50: #f8f0ff;
|
|
|
--purple-100: #f4e8ff;
|
|
|
--purple-200: #e4c4ff;
|
|
|
--purple-300: #d49aff;
|
|
|
--purple-400: #c36aff;
|
|
|
--purple-500: #a219e6;
|
|
|
--purple-600: #9000c4;
|
|
|
--purple-700: #7c009f;
|
|
|
--purple-800: #600073;
|
|
|
--purple-900: #3d0043;
|
|
|
--magenta-25: #fff8fb;
|
|
|
--magenta-50: #fff2f6;
|
|
|
--magenta-100: #ffebf2;
|
|
|
--magenta-200: #ffcddf;
|
|
|
--magenta-300: #ffa8cb;
|
|
|
--magenta-400: #ff7fb7;
|
|
|
--magenta-500: #eb4799;
|
|
|
--magenta-600: #da3689;
|
|
|
--magenta-700: #c82179;
|
|
|
--magenta-800: #b00065;
|
|
|
--magenta-900: #8a004c;
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--semantic-bg-blue: var(--blue-25);
|
|
|
--semantic-bg-red: var(--red-25);
|
|
|
--semantic-bg-orange: var(--orange-25);
|
|
|
--semantic-bg-green: var(--green-25);
|
|
|
--neutral-100: #121212;
|
|
|
--neutral-200: #424242;
|
|
|
--neutral-300: #616161;
|
|
|
--neutral-400: #757575;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #bdbdbd;
|
|
|
--neutral-700: #e0e0e0;
|
|
|
--neutral-800: #eeeeee;
|
|
|
--neutral-900: #f5f5f5;
|
|
|
}
|
|
|
}
|
|
|
:host([theme='dark']) {
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--semantic-bg-blue: var(--blue-25);
|
|
|
--semantic-bg-red: var(--red-25);
|
|
|
--semantic-bg-orange: var(--orange-25);
|
|
|
--semantic-bg-green: var(--green-25);
|
|
|
--neutral-100: #121212;
|
|
|
--neutral-200: #424242;
|
|
|
--neutral-300: #616161;
|
|
|
--neutral-400: #757575;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #bdbdbd;
|
|
|
--neutral-700: #e0e0e0;
|
|
|
--neutral-800: #eeeeee;
|
|
|
--neutral-900: #f5f5f5;
|
|
|
}
|
|
|
/* @media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--label-color: #fff;
|
|
|
--active-label-color: #000;
|
|
|
--menu-bg: #525252;
|
|
|
--active-bg: #5898ff;
|
|
|
--active-bg-dimmed: #5c5c5c;
|
|
|
}
|
|
|
} */
|
|
|
:host {
|
|
|
--ui-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
|
|
|
'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
|
|
|
'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
|
--ui-font-size: 14px;
|
|
|
--ui-line-height: 1.5;
|
|
|
--ui-letter-spacing: 0.007em;
|
|
|
--mono-font-family: 'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono',
|
|
|
'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;
|
|
|
--ui-layer-1: var(--neutral-100);
|
|
|
--ui-layer-2: var(--neutral-200);
|
|
|
--ui-layer-3: var(--neutral-300);
|
|
|
--ui-layer-4: var(--neutral-400);
|
|
|
--ui-layer-5: var(--neutral-500);
|
|
|
--ui-layer-6: var(--neutral-600);
|
|
|
--ui-border-color: var(--primary-color);
|
|
|
--ui-border-radius: 4px;
|
|
|
--ui-text: var(--neutral-900);
|
|
|
--ui-text-secondary: var(--neutral-700);
|
|
|
--ui-text-placeholder: var(--neutral-500);
|
|
|
--ui-text-muted: var(--neutral-300);
|
|
|
/** A field is a UI element in which a user can type data, for
|
|
|
* example an input or textarea element.
|
|
|
*/
|
|
|
--ui-field-bg: var(--neutral-100);
|
|
|
--ui-field-bg-hover: var(--neutral-100);
|
|
|
--ui-field-bg-disabled: var(--neutral-300);
|
|
|
--ui-field-bg-invalid: var(--red-100);
|
|
|
--ui-field-bg-focus: var(--neutral-100);
|
|
|
--ui-field-border: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-hover: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-disabled: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-invalid: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-focus: 0.5px solid var(--border-color);
|
|
|
--ui-menu-bg: var(--neutral-100);
|
|
|
--ui-menu-text: var(--neutral-900);
|
|
|
--ui-menu-bg-hover: var(--neutral-200);
|
|
|
--ui-menu-text-hover: var(--neutral-900);
|
|
|
/** The \`active\` state is used for the state of menu items
|
|
|
* when they are selected.
|
|
|
*/
|
|
|
--ui-menu-bg-active: var(--primary-color);
|
|
|
--ui-menu-text-active: var(--primary-color-reverse);
|
|
|
/** The \`active-muted\` set is used for the state of
|
|
|
* submenus when they are open.
|
|
|
*/
|
|
|
--ui-menu-bg-active-muted: var(--neutral-300);
|
|
|
--ui-menu-text-active-muted: var(--neutral-900);
|
|
|
/* --ui-menu-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302),
|
|
|
0 2px 6px 2px rgba(60, 64, 67, 0.149); */
|
|
|
--ui-menu-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
|
|
|
--ui-menu-divider: 0.5px solid #c7c7c7;
|
|
|
/* var(--neutral-300); */
|
|
|
--ui-menu-z-index: 10000;
|
|
|
--page-bg: var(--neutral-100);
|
|
|
--content-bg: var(--neutral-200);
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--ui-menu-bg: var(--neutral-200);
|
|
|
}
|
|
|
}
|
|
|
:host([theme='dark']) {
|
|
|
--ui-menu-bg: var(--neutral-200);
|
|
|
}
|
|
|
/* PingFang SC is a macOS font. Microsoft Yahei is a Windows font.
|
|
|
Noto is a Linux/Android font.
|
|
|
*/
|
|
|
:lang(zh-cn),
|
|
|
:lang(zh-sg),
|
|
|
:lang(zh-my),
|
|
|
:lang(zh) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'PingFang SC', 'Hiragino Sans GB',
|
|
|
'Noto Sans CJK SC', 'Noto Sans SC', 'Noto Sans', 'Microsoft Yahei UI',
|
|
|
'Microsoft YaHei New', 'Microsoft Yahei', '\u5FAE\u8F6F\u96C5\u9ED1', SimSun, '\u5B8B\u4F53',
|
|
|
STXihei, '\u534E\u6587\u7EC6\u9ED1', sans-serif;
|
|
|
}
|
|
|
:lang(zh-tw),
|
|
|
:lang(zh-hk),
|
|
|
:lang(zh-mo) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans',
|
|
|
'Microsoft JhengHei UI', 'Microsoft JhengHei', '\u5FAE\u8EDF\u6B63\u9ED1\u9AD4', '\u65B0\u7D30\u660E\u9AD4',
|
|
|
'PMingLiU', '\u7D30\u660E\u9AD4', 'MingLiU', sans-serif;
|
|
|
}
|
|
|
:lang(ja),
|
|
|
:lang(ja-jp),
|
|
|
:lang(ja-jp-mac) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Hiragino Sans',
|
|
|
'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Noto Sans',
|
|
|
'\u6E38\u30B4\u30B7\u30C3\u30AF', '\u6E38\u30B4\u30B7\u30C3\u30AF\u4F53', YuGothic, 'Yu Gothic', '\u30E1\u30A4\u30EA\u30AA', Meiryo,
|
|
|
'\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF', 'MS PGothic', sans-serif;
|
|
|
}
|
|
|
:lang(ko),
|
|
|
:lang(ko-kr),
|
|
|
:lang(ko-kr-std) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
|
|
|
'Noto Sans', 'Malgun Gothic', '\uB9D1\uC740 \uACE0\uB515', 'Apple SD Gothic Neo',
|
|
|
'\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo', 'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
|
|
|
}
|
|
|
:lang(ko-kr-apple) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
|
|
|
'Noto Sans', 'Apple SD Gothic Neo', '\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo',
|
|
|
'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
|
|
|
}
|
|
|
:lang(zh-cn),
|
|
|
:lang(zh-sg),
|
|
|
:lang(zh-my),
|
|
|
:lang(zh),
|
|
|
:lang(zh-tw),
|
|
|
:lang(zh-hk),
|
|
|
:lang(zh-mo),
|
|
|
:lang(ja),
|
|
|
:lang(ja-jp),
|
|
|
:lang(ja-jp-mac),
|
|
|
:lang(ko),
|
|
|
:lang(ko-kr),
|
|
|
:lang(ko-kr-std),
|
|
|
:lang(ko-kr-apple) {
|
|
|
--ui-font-size: 1rem;
|
|
|
--ui-line-height: 1.7;
|
|
|
--ui-letter-spacing: 0;
|
|
|
}
|
|
|
:dir(rtl) {
|
|
|
--ui-line-height: auto;
|
|
|
--ui-letter-spacing: 0;
|
|
|
}
|
|
|
`,dh=`.ui-menu *,
|
|
|
.ui-menu ::before,
|
|
|
.ui-menu ::after {
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ui-menu {
|
|
|
display: none;
|
|
|
color-scheme: light dark;
|
|
|
-webkit-user-select: none;
|
|
|
/* Important: Safari iOS doesn't respect user-select */
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0 0 0 0);
|
|
|
--active-label-color: #fff;
|
|
|
/* ui-menu-text-active */
|
|
|
--label-color: #121212;
|
|
|
/* ui-menu-text */
|
|
|
--menu-bg: #e2e2e2;
|
|
|
/* ui-menu-background */
|
|
|
--active-bg: #5898ff;
|
|
|
/* ui-menu-background-active */
|
|
|
--active-bg-dimmed: #c5c5c5;
|
|
|
/* ui-menu-background-active-muted */
|
|
|
}
|
|
|
/** Use the :where pseudo selector to make the specificity of the
|
|
|
* selector 0, so that it can be overridden by the user.
|
|
|
*/
|
|
|
:where(.ui-menu-container) {
|
|
|
position: absolute;
|
|
|
overflow: visible;
|
|
|
width: auto;
|
|
|
height: auto;
|
|
|
z-index: 10000;
|
|
|
border-radius: 8px;
|
|
|
background: var(--ui-menu-bg);
|
|
|
box-shadow: var(--ui-menu-shadow);
|
|
|
list-style: none;
|
|
|
padding: 6px 0 6px 0;
|
|
|
margin: 0;
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
color: var(--ui-menu-text);
|
|
|
font-weight: normal;
|
|
|
font-style: normal;
|
|
|
text-shadow: none;
|
|
|
text-transform: none;
|
|
|
letter-spacing: 0;
|
|
|
outline: none;
|
|
|
opacity: 1;
|
|
|
/* The [popover] elements have a 1px solid black border. Ugh. */
|
|
|
border: none;
|
|
|
width: fit-content;
|
|
|
height: fit-content;
|
|
|
}
|
|
|
:where(.ui-menu-container > li) {
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
align-items: center;
|
|
|
padding: 1px 7px 1px 7px;
|
|
|
margin-top: 0;
|
|
|
margin-left: 6px;
|
|
|
margin-right: 6px;
|
|
|
border-radius: 4px;
|
|
|
white-space: nowrap;
|
|
|
position: relative;
|
|
|
outline: none;
|
|
|
fill: currentColor;
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
text-align: left;
|
|
|
color: inherit;
|
|
|
font-family: var(--ui-font-family);
|
|
|
font-size: var(--ui-font-size);
|
|
|
line-height: var(--ui-line-height);
|
|
|
letter-spacing: var(--ui-letter-spacing);
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label) {
|
|
|
appearance: none;
|
|
|
background: none;
|
|
|
outline: none;
|
|
|
width: 100%;
|
|
|
margin: 0;
|
|
|
padding: 1px 2px 1px 1px;
|
|
|
overflow: visible;
|
|
|
border: 1px solid transparent;
|
|
|
white-space: nowrap;
|
|
|
text-align: start;
|
|
|
}
|
|
|
:where(.ui-menu-container > li:has(.heading)) {
|
|
|
margin-top: 0.5em;
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label.heading) {
|
|
|
font-weight: bold;
|
|
|
opacity: 0.4;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.indent > .label) {
|
|
|
margin-inline-start: 12px;
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label.indent) {
|
|
|
margin-inline-start: 12px;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[role='divider']) {
|
|
|
border-bottom: 1px solid var(--ui-menu-divider);
|
|
|
border-radius: 0;
|
|
|
padding: 0;
|
|
|
margin-left: 15px;
|
|
|
margin-right: 15px;
|
|
|
padding-top: 5px;
|
|
|
margin-bottom: 5px;
|
|
|
width: calc(100% - 30px);
|
|
|
/** 100% - (margin-left + margin-right) */
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-disabled='true']) {
|
|
|
opacity: 0.5;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active) {
|
|
|
background: var(--ui-menu-bg-active);
|
|
|
background: -apple-system-control-accent;
|
|
|
color: var(--ui-menu-text-active);
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active.is-submenu-open) {
|
|
|
background: var(--ui-menu-bg-active-muted);
|
|
|
color: inherit;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-haspopup='true'] > .label) {
|
|
|
padding-inline-end: 0;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-haspopup='true'].active::after) {
|
|
|
color: var(--ui-menu-text-active);
|
|
|
}
|
|
|
/** Keyboard shortcut */
|
|
|
:where(.ui-menu-container > li > kbd) {
|
|
|
font-family: var(--ui-font-family);
|
|
|
margin-inline-start: 12px;
|
|
|
opacity: 0.4;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active > kbd) {
|
|
|
opacity: 0.85;
|
|
|
}
|
|
|
.ui-trailing-chevron {
|
|
|
display: flex;
|
|
|
margin-inline-start: 24px;
|
|
|
width: 10px;
|
|
|
height: 10px;
|
|
|
margin-bottom: 4px;
|
|
|
}
|
|
|
.ui-trailing-chevron:dir(rtl) {
|
|
|
transform: scaleX(-1);
|
|
|
}
|
|
|
.ui-checkmark {
|
|
|
display: flex;
|
|
|
margin-inline-end: -11px;
|
|
|
margin-inline-start: -4px;
|
|
|
margin-top: 2px;
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
}
|
|
|
.ui-mixedmark {
|
|
|
display: flex;
|
|
|
margin-inline-end: -11px;
|
|
|
margin-inline-start: -4px;
|
|
|
margin-top: 2px;
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
}
|
|
|
`,oo;function Wl(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=ro;break;case"mathfield":y=vf;break;case"environment-popover":y=yf;break;case"suggestion-popover":y=ch;break;case"keystroke-caption":y=cc;break;case"virtual-keyboard":y=uh;break;case"ui":y=Eu;break;case"menu":y=dh;break;default:debugger}return y}function uc(a){return oo||(oo={}),oo[a]||(oo[a]=new CSSStyleSheet,oo[a].replaceSync(Wl(a))),oo[a]}var ol;function ks(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(Wl(a))),window.document.head.appendChild(b);return}if(ol||(ol={}),((y=ol[a])!=null?y:0)!==0)ol[a]+=1;else{const b=uc(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],ol[a]=1}}function x(a){if("adoptedStyleSheets"in document&&ol!=null&&ol[a]&&(ol[a]-=1,ol[a]<=0)){const y=oo[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var z=class kp extends Ar{constructor(y){var b;super(me(xe({},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 kp(y)}toJson(){return me(xe({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const E=new Na({parent:y,mathstyle:"cramp"},this.style),ee=(b=Ar.createBox(E,this.body))!=null?b:new ei("\u25A2",{style:this.style});let re=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(re=ee.skew);let oe=Math.min(ee.height,el),pe;if(this.svgAccent)pe=Os(this.svgAccent),oe=E.metrics.bigOpSpacing1-oe;else if(this.accent){const be=new ei(this.accent,{fontFamily:"Main-Regular"});be.italic=0;const Ie=this.accent===8407?" ML__accent-vec":"";pe=new ei(new ei(be),{classes:"ML__accent-body"+Ie})}pe=new ao({shift:0,children:[{box:new ei(ee)},-oe,{box:pe,marginLeft:ee.left+2*re,classes:["ML__center"]}]});const ve=new ei(pe,{type:"lift"});return this.caret&&(ve.caret=this.caret),this.bind(E,ve.wrap(E)),this.attachSupsub(E,{base:ve})}},ne={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\lparen":"\\rparen","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},te=Object.fromEntries(Object.entries(ne).map(([a,y])=>[y,a]));function ie(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 de(a,y,b,E){var ee;const oe=new ei(ie(a),{fontFamily:"Main-Regular",isSelected:E.isSelected,classes:"ML__small-delim "+((ee=E.classes)!=null?ee:"")}).wrap(y);return b&&oe.setTop((1-y.scalingFactor)*ls),oe}function ye(a,y,b,E,ee){var re,oe;const pe=new Na({parent:E,mathstyle:"textstyle"},ee==null?void 0:ee.style),ve=new ei(ie(a),{fontFamily:`Size${y}-Regular`,isSelected:ee.isSelected,classes:((re=ee.classes)!=null?re:"")+` ML__delim-size${y}`,type:(oe=ee.type)!=null?oe:"ignore"}).wrap(pe);return b&&ve.setTop((1-pe.scalingFactor)*ls),ve}function Te(a,y,b,E,ee){var re;let oe,pe,ve,be;oe=ve=be=ie(a),pe=null;let Ie="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?ve=oe=be=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?ve=oe=be=8741:a==="\\uparrow"?ve=be=9168:a==="\\Uparrow"?ve=be=8214:a==="\\downarrow"?oe=ve=9168:a==="\\Downarrow"?oe=ve=8214:a==="\\updownarrow"?(oe=8593,ve=9168,be=8595):a==="\\Updownarrow"?(oe=8657,ve=8214,be=8659):a==="["||a==="\\lbrack"?(oe=9121,ve=9122,be=9123,Ie="Size4-Regular"):a==="]"||a==="\\rbrack"?(oe=9124,ve=9125,be=9126,Ie="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(ve=oe=9122,be=9123,Ie="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(oe=9121,ve=be=9122,Ie="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(ve=oe=9125,be=9126,Ie="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(oe=9124,ve=be=9125,Ie="Size4-Regular"):a==="("||a==="\\lparen"?(oe=9115,ve=9116,be=9117,Ie="Size4-Regular"):a===")"||a==="\\rparen"?(oe=9118,ve=9119,be=9120,Ie="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(oe=9127,pe=9128,be=9129,ve=9130,Ie="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(oe=9131,pe=9132,be=9133,ve=9130,Ie="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(oe=9127,be=9129,ve=9130,Ie="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(oe=9131,be=9133,ve=9130,Ie="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(oe=9127,be=9133,ve=9130,Ie="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(oe=9131,be=9129,ve=9130,Ie="Size4-Regular"):a==="\\surd"?(oe=57345,be=9143,ve=57344,Ie="Size4-Regular"):a==="\\ulcorner"?(oe=9484,ve=be=32):a==="\\urcorner"?(oe=9488,ve=be=32):a==="\\llcorner"?(be=9492,ve=oe=32):a==="\\lrcorner"&&(oe=9496,ve=oe=32);const Ke=tl(oe,Ie),ht=Ke.height+Ke.depth,Rt=tl(ve,Ie),Qt=Rt.height+Rt.depth,er=tl(be,Ie),Qr=er.height+er.depth;let Jn=0,Nr=1;if(pe!==null){const $o=tl(pe,Ie);Jn=$o.height+$o.depth,Nr=2}const ri=ht+Qr+Jn,zr=Math.max(0,Math.ceil((y-ri)/(Nr*Qt))),Fi=ri+zr*Nr*Qt;let ea=ls;b&&(ea=ea*E.scalingFactor);const Ui=Fi/2-ea,za=.008,io=[];io.push({box:new ei(be,{fontFamily:Ie})}),io.push(-za);const ui=new ei(ve,{fontFamily:Ie});if(pe===null)for(let $o=0;$o<zr;$o++)io.push({box:ui});else{for(let $o=0;$o<zr;$o++)io.push({box:ui});io.push(-za),io.push({box:new ei(pe,{fontFamily:Ie})}),io.push(-za);for(let $o=0;$o<zr;$o++)io.push({box:ui})}io.push(-za),io.push({box:new ei(oe,{fontFamily:Ie})});let zs="";Ie==="Size1-Regular"?zs=" delim-size1":Ie==="Size4-Regular"&&(zs=" delim-size4");const kl=new ao({bottom:Ui,children:io},{classes:zs});return new ei(kl,me(xe({},ee!=null?ee:{}),{classes:((re=ee==null?void 0:ee.classes)!=null?re:"")+" ML__delim-mult"}))}var Fe=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),He=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),Nt=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Jt=[0,1.2,1.8,2.4,3];function Hn(a,y,b,E){return a===void 0||a==="."?Ti(b,E.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),Fe.has(a)||Nt.has(a)?ye(a,y,!1,b,E):He.has(a)?Te(a,Jt[y],!1,b,E):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var Tn=[{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}],Br=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],jr=[{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 ai(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function wi(a,y,b,E){const ee={"-4":0,"-3":1,0:2}[E.mathstyle.sizeDelta];for(let re=ee;re<b.length&&b[re].type!=="stack";re++){const oe=tl(a,ai(b[re]));if(oe.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let pe=oe.height+oe.depth;if(b[re].type==="small"&&(b[re].mathstyle==="scriptscriptstyle"?pe*=Math.max(pu[Math.max(1,E.size-2)],E.minFontScale):b[re].mathstyle==="scriptstyle"&&(pe*=Math.max(pu[Math.max(1,E.size-1)],E.minFontScale))),pe>y)return b[re]}return b[b.length-1]}function Bi(a,y,b,E,ee,re){if(!y||y.length===0||y===".")return Ti(ee);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let oe;Nt.has(y)?oe=Tn:Fe.has(y)?oe=jr:oe=Br;const pe=wi(ie(y),b,oe,ee),ve=new Na({parent:ee,mathstyle:pe.mathstyle},re==null?void 0:re.style);return pe.type==="small"?de(y,ve,E,me(xe({},re),{type:a})):pe.type==="large"?ye(y,pe.size,E,ve,me(xe({},re),{type:a})):(console.assert(pe.type==="stack"),Te(y,b,E,ve,me(xe({},re),{type:a})))}function yi(a,y,b,E,ee,re){if(y===".")return Ti(ee,re==null?void 0:re.classes);const oe=ls*ee.scalingFactor,pe=901,ve=5/_l,be=Math.max(b-oe,E+oe),Ie=Math.max(be/500*pe,2*be-ve);return Bi(a,y,Ie,!0,ee,re)}function Ti(a,y){const b=new ei(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new Na({parent:a,mathstyle:"textstyle"}))}var ia=class Lp extends Ar{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 Lp(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{}"}},oa=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],Ia=["cases","dcases","rcases"],so=["align","align*","aligned","gather","gathered","split"],Uo=["array","subequations","eqnarray"];function xo(a){return Uo.concat(so).concat(Ia).concat(oa).includes(a)}function fs(a){return oa.includes(a)}function hs(a){return Ia.includes(a)}function No(a){return so.includes(a)}function ps(a,y,b){let E=0;for(const be of b)"align"in be&&(E+=1);let ee=0;const re=[];for(const be of y){let Ie=0;for(ee=Math.max(ee,Math.min(be.length,E));Ie<be.length;){const Ke=[],ht=Math.min(be.length,Ie+E);for(;Ie<ht;){const Rt=be[Ie];Rt.length===0?Ke.push([new Ar({type:"first",mode:a.mode})]):Rt[0].type!=="first"?Ke.push([new Ar({type:"first",mode:a.mode}),...Rt]):(console.assert(!Rt.slice(1).some(Qt=>Qt.type==="first")),Ke.push(Rt)),Ie+=1}re.push(Ke)}}re.length>0&&re[re.length-1].length===1&&re[re.length-1][0].length===1&&re[re.length-1][0][0].type==="first"&&re.pop();const oe=[];for(const be of re){if(be.length!==ee)for(let Ie=be.length;Ie<ee;Ie++)be.push([new Ar({type:"first",mode:a.mode}),new ia]);oe.push(be)}let pe=0,ve=0;for(const be of oe){ve=0;for(const Ie of be){for(const Ke of Ie)Ke.parent=a,Ke.parentBranch=[pe,ve];ve+=1}pe+=1}return a.isDirty=!0,oe}var wa=class Bp extends Ar{constructor(y,b,E,ee={}){var re;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=ps(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=(re=ee.minColumns)!=null?re:1}static fromJson(y){return new Bp(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=me(xe({},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(Tc(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return Tc(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(il(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,re,oe,pe;const ve=new Na({parent:y,mathstyle:this.mathstyleName},this.style),be=ve.getRegisterAsEm("arrayrulewidth"),Ie=ve.getRegisterAsEm("arraycolsep"),Ke=ve.getRegisterAsEm("doublerulesep"),ht=(E=(b=this.arraystretch)!=null?b:ve.getRegisterAsNumber("arraystretch"))!=null?E:1;let Rt=typeof this.arraycolsep=="number"?this.arraycolsep:Ie;this.colSeparationType==="small"&&(Rt=.2778*(new Na({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const Qt=ht*hu,er=.7*Qt,Qr=.3*Qt;let Jn=0;const Nr=[];let ri=0;const zr=this.array.length;for(let co=0;co<zr;++co){const Io=this.array[co];ri=Math.max(ri,Io.length);const es=new Na({parent:ve,mathstyle:this.mathstyleName},this.style);let Ll=er/es.scalingFactor,Bl=Qr/es.scalingFactor;const Dl={cells:[],height:0,depth:0,pos:0};for(const cl of Io){const e0=(ee=Ar.createBox(es,cl,{type:"ignore"}))!=null?ee:new ei(null,{type:"ignore"});Bl=Math.max(Bl,e0.depth),Ll=Math.max(Ll,e0.height),Dl.cells.push(e0)}let Il=(re=sd(this.rowGaps[co]))!=null?re:0;Il>0&&(Il+=Qr,Bl=Math.max(Bl,Il),Il=0),co<zr-1&&!fs(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Bl+=ve.getRegisterAsEm("jot")),Dl.height=Ll,Dl.depth=Bl,Jn+=Ll,Dl.pos=Jn,Jn+=Bl+Il,Nr.push(Dl)}const Fi=Jn/2+ls,ea=[];for(let co=0;co<ri;co++){const Io=[];for(const es of Nr){const Ll=es.cells[co];Ll.depth=es.depth,Ll.height=es.height,Io.push({box:Ll,shift:es.pos-Fi})}Io.length>0&&ea.push(new ao({individualShift:Io}))}const Ui=[];let za=!1,io=!1,ui=0,zs=!this.leftDelim;const{colFormat:kl}=this;for(const co of kl){if("align"in co&&ui>=ea.length)break;if("align"in co)za?Ui.push(wo(2*Rt)):(io||zs)&&Ui.push(wo(Rt)),Ui.push(new ei(ea[ui],{classes:"col-align-"+co.align})),ui++,za=!0,io=!1,zs=!1;else if("gap"in co){if(typeof co.gap=="number")Ui.push(wo(co.gap));else{const Io=Eo(y,Nr,Fi,co.gap);Io&&Ui.push(Io)}za=!1,io=!1,zs=!1}else if("separator"in co){const Io=new ei(null,{classes:"vertical-separator"});Io.height=Jn,Io.setStyle("height",Jn,"em"),Io.setStyle("border-right",`${be}em ${co.separator} currentColor`),Io.setStyle("vertical-align",-(Jn-Fi),"em");let es=0;io?es=Ke-be:za&&(es=Rt-be),Io.left=es,Ui.push(Io),za=!1,io=!0,zs=!1}}za&&!this.rightDelim&&Ui.push(wo(Rt));const Xs=new ei(Ui,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(Xs.caret=this.caret),this.bind(y,Xs);const $o=Xs.height,Hs=Xs.depth,Es=this.bind(y,new ei([this.bind(y,yi("open",(oe=this.leftDelim)!=null?oe:".",$o,Hs,ve,{isSelected:this.isSelected})),Xs,this.bind(y,yi("close",(pe=this.rightDelim)!=null?pe:".",$o,Hs,ve,{isSelected:this.isSelected}))],{type:"ord"}));return Es?(Es.setStyle("display","inline-block"),this.caret&&(Es.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:Es}))):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 re=0;re<this.array[ee].length;re++)re>0&&E.push(" & "),E.push(Ar.serialize(this.array[ee][re],y));if(ee<this.array.length-1){const re=this.rowGaps[ee];re!=null&&re.dimension?E.push(`\\\\[${re.dimension} ${(b=re.unit)!=null?b:"pt"}] `):E.push("\\\\ ")}}return this.environmentName==="lines"?E.push("}"):E.push(`\\end{${this.environmentName}}`),Da(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 re of this.array[y][b])re.parent=void 0,re.parentBranch=void 0;let ee=E;(E.length===0||E[0].type!=="first")&&(ee=[new Ar({type:"first",mode:this.mode}),...E]),this.array[y][b]=ee;for(const re of ee)re.parent=this,re.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(Co(this));this.array.splice(y,0,b);for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const re=this.array[E][ee];if(re)for(const oe of re)oe.parentBranch=[E,ee]}this.isDirty=!0}addRowAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let E=0;E<this.colCount;E++)b.push(Co(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 re=this.array[E][ee];if(re)for(const oe of re)oe.parentBranch=[E,ee]}this.isDirty=!0}removeRow(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.rowCount>y);const b=this.array.splice(y,1);for(const E of b)for(const ee of E)if(ee)for(const re of ee)re.parent=void 0,re.parentBranch=void 0;for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const re=this.array[E][ee];if(re)for(const oe of re)oe.parentBranch=[E,ee]}this.isDirty=!0}addColumnBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y,0,Co(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 re of ee)re.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,Co(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 re of ee)re.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 re of ee)re.parent=void 0,re.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 re of ee)re.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 Co(a){const y=new Ar({type:"first",mode:a.mode});y.parent=a;const b=new ia;return b.parent=a,[y,b]}function wo(a){const y=new ei(null,{classes:"arraycolsep"});return y.width=a,y}function Eo(a,y,b,E){if(!E)return null;const ee=[];for(const re of y){const oe=Ar.createBox(a,E,{type:"ignore"});oe&&(oe.depth=re.depth,oe.height=re.height,ee.push({box:oe,shift:re.pos-b}))}return new ao({individualShift:ee}).wrap(a)}var Bo=class Dp extends Ar{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 Dp(y)}toJson(){return me(xe({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(y){var b,E,ee,re;const oe=Ar.createBox(y,this.body,{type:"lift"});if(!oe)return null;const pe=y.toEm((b=this.offset)!=null?b:{dimension:0});oe.depth+=pe,oe.setStyle("display","inline-block"),oe.setStyle("position","relative"),oe.setStyle("height",Math.floor(100*oe.height+oe.depth)/100,"em"),oe.setStyle("vertical-align",-Math.floor(100*oe.height)/100,"em");const ve=new Na({parent:y},this.style),be=ve.toEm((E=this.padding)!=null?E:{register:"fboxsep"}),Ie=new ei(null,{classes:"ML__box"});Ie.height=oe.height+be,Ie.depth=oe.depth+be,Ie.setStyle("box-sizing","border-box"),Ie.setStyle("position","absolute"),Ie.setStyle("top",-be+.3,"em"),Ie.setStyle("left",0),Ie.setStyle("height",Ie.height+Ie.depth,"em"),Ie.setStyle("width","100%"),this.backgroundcolor&&Ie.setStyle("background-color",(ee=ve.toColor(this.backgroundcolor))!=null?ee:"transparent"),this.framecolor&&Ie.setStyle("border",`${ve.getRegisterAsEm("fboxrule",2)}em solid ${(re=ve.toColor(this.framecolor))!=null?re:"black"}`),this.border&&Ie.setStyle("border",this.border);const Ke=new ei([Ie,oe],{type:"lift"});return Ke.setStyle("display","inline-block"),Ke.setStyle("position","relative"),Ke.setStyle("line-height",0),Ke.height=oe.height+be+(pe>0?pe:0),Ke.depth=oe.depth+be+(pe<0?-pe:0),Ke.setStyle("padding-left",be,"em"),Ke.setStyle("padding-right",be,"em"),Ke.setStyle("height",Math.floor(100*(oe.height+oe.depth+2*be+Math.abs(pe)))/100,"em"),Ke.setStyle("margin-top",-be,"em"),Ke.setStyle("top",Math.floor(100*(oe.depth-oe.height+2*be-pe))/100,"em"),Ke.setStyle("vertical-align",Math.floor(100*(oe.depth+2*be))/100,"em"),this.caret&&(Ke.caret=this.caret),this.attachSupsub(y,{base:Ke})}_serialize(y){return y.skipStyles?Da([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},jl=class Ip extends Ar{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 Ip(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new ei(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},ys=class Tp extends Ar{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new Tp(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},Qo=class Pp extends Ar{constructor(y,b,E){super({type:"group",mode:b,style:E}),this.body=y,this.boxType=y.length>1?"ord":"ignore",this.skipBoundary=!0,this.displayContainsHighlight=!1,y&&y.length===1&&y[0].command===","&&(this.captureSelection=!0)}static fromJson(y){return new Pp(y.body,y.mode,y.style)}render(y){const b=Ar.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=Dt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},Xa=class Op extends Ar{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 Op((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"?Da(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ee]):this.variant==="mleft...mright"?Da(["\\mleft",(E=this.leftDelim)!=null?E:".",this.bodyToLatex(y),"\\mright",ee]):Da([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(y),ee])}matchingRightDelim(){var y,b;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const E=(y=this.leftDelim)!=null?y:".";return(b=ne[E])!=null?b:E}render(y){var b,E;const ee=new Na({parent:y},this.style);console.assert(this.body!==void 0);const re=new Na({parent:y,mathstyle:"textstyle"},this.style),oe=(b=Ar.createBox(ee,this.body,{type:"inner"}))!=null?b:new ei(null,{type:"inner"}),pe=oe.height/re.scalingFactor,ve=oe.depth/re.scalingFactor,be=[];if(this.leftDelim&&be.push(this.bind(re,yi("open",this.leftDelim,pe,ve,re,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),oe&&(_o(oe.children,this,ee,pe,ve),be.push(oe)),this.rightDelim){let Rt=this.containsCaret?" ML__contains-caret":"",Qt=this.rightDelim;Qt==="?"&&(ee.smartFence?(Qt=this.matchingRightDelim(),Rt+=" ML__smart-fence__close"):Qt="."),be.push(this.bind(re,yi("close",Qt,pe,ve,re,{isSelected:this.isSelected,classes:Rt+" ML__close",mode:this.mode,style:this.style})))}let Ie=this.variant==="mleft...mright";const Ke=this.leftSibling;Ke&&(!Ie&&Ke.isFunction&&(Ie=!0),!Ie&&Ke.type==="subsup"&&((E=Ke.leftSibling)!=null&&E.isFunction)&&(Ie=!0));const ht=new ei(be,{type:Ie?"close":"inner",classes:"left-right"});return ht.setStyle("margin-top",`${-oe.depth}em`),ht.setStyle("height",`${oe.height+oe.depth}em`),this.caret&&(ht.caret=this.caret),this.bind(ee,ht.wrap(ee))}};function _o(a,y,b,E,ee){if(a)for(let re=0;re<a.length;re++){const oe=a[re];oe.type==="middle"?(a[re]=y.bind(b,yi("inner",oe.value,E,ee,b,{isSelected:y.isSelected})),a[re].caret=oe.caret,a[re].isSelected=oe.isSelected,a[re].cssId=oe.cssId,a[re].htmlData=oe.htmlData,a[re].htmlStyle=oe.htmlStyle,a[re].attributes=oe.attributes,a[re].cssProperties=oe.cssProperties):oe.children&&_o(oe.children,y,b,E,ee)}}var Au=class Np extends Ar{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 Np(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=Ar.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},sl=class Rp extends Ar{constructor(){super({type:"macro-argument"})}static fromJson(y){return new Rp}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},xl=class Fp extends Ar{constructor(y,b,E=!1,ee,re){var oe;super({type:"prompt",mode:(oe=re==null?void 0:re.mode)!=null?oe:"math",style:re==null?void 0:re.style,command:"\\placeholder"}),this.body=ee,this.correctness=b,this.placeholderId=y,this.locked=E,this.captureSelection=this.locked}static fromJson(y){return new Fp(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 Na({parent:y}),E=b.getRegisterAsEm("fboxsep"),ee=E,re=E,oe=Ar.createBox(y,this.body);if(!oe)return null;oe.height||(oe.height=b.metrics.xHeight),oe.setStyle("vertical-align",-oe.height,"em"),this.correctness==="correct"?oe.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&oe.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const pe=new ei(oe,{type:"ord"});pe.setStyle("display","inline-block"),pe.setStyle("height",oe.height+oe.depth,"em"),pe.setStyle("vertical-align",-re,"em");let ve="ML__prompt ";this.locked?ve+=" ML__lockedPromptBox ":ve+=" ML__editablePromptBox ",this.correctness==="correct"?ve+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(ve+=" ML__incorrectPromptBox "),this.containsCaret&&(ve+=" ML__focusedPromptBox ");const be=new ei(null,{classes:ve,attributes:{part:"prompt"}});be.height=pe.height+re,be.depth=pe.depth+re,be.width=pe.width+2*ee,be.setStyle("box-sizing","border-box"),be.setStyle("position","absolute"),be.setStyle("height",pe.height+pe.depth+2*re,"em"),ee===0&&be.setStyle("width","100%"),ee!==0&&(be.setStyle("width",`calc(100% + ${2*ee}em)`),be.setStyle("top",E,"em"),be.setStyle("left",-ee,"em")),(!this.body||this.body.length===1)&&(be.width=3*ee,be.setStyle("width",`calc(100% + ${3*ee}em)`),be.setStyle("left",-1.5*ee,"em"));let Ie="";this.correctness==="incorrect"&&(Ie+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),Ie&&(be.svgOverlay=Ie);const Ke=new ei([be,pe],{classes:"ML__prompt-atom"});return Ke.setStyle("position","relative"),Ke.setStyle("display","inline-block"),Ke.setStyle("line-height",0),Ke.height=pe.height+re+.2,Ke.depth=pe.depth+re,Ke.left=ee,Ke.right=ee,Ke.setStyle("height",pe.height+re,"em"),Ke.setStyle("top",pe.depth-pe.height,"em"),Ke.setStyle("vertical-align",pe.depth+re,"em"),Ke.setStyle("margin-left",.5,"em"),Ke.setStyle("margin-right",.5,"em"),this.caret&&(Ke.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:Ke}))}_serialize(y){var b;const E=(b=this.bodyToLatex(y))!=null?b:"";if(y.skipPlaceholders)return E;let ee="\\placeholder";return this.placeholderId&&(ee+=`[${this.placeholderId}]`),this.correctness==="correct"?ee+="[correct]":this.correctness==="incorrect"&&(ee+="[incorrect]"),this.locked&&(ee+="[locked]"),ho(ee,E)}},Vs=class _p extends Ar{constructor(y){super({type:"subsup",style:y==null?void 0:y.style}),this.subsupPlacement="auto"}static fromJson(y){const b=new _p(y);for(const E of sc)y[E]&&b.setChildren(y[E],E);return b}render(y){var b;const E=new Na({parent:y,isPhantom:!0}),ee=this.leftSibling,re=(b=ee.render(E))!=null?b:new ei(null),oe=new ei(null);return oe.height=re.height,oe.depth=re.depth,this.attachSupsub(y,{base:oe,isCharacterBox:ee.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function Ro(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var Zl=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var E,ee,re,oe;b!=null||(b={}),this.tokens=a,this.context=y instanceof Na&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new Na({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:(re=b.parseMode)!=null?re:"math",mathstyle:(oe=b.mathstyle)!=null?oe:"displaystyle",tabular:!1}}beginContext(a){var y,b,E;const ee=this.parsingContext,re={parent:ee,mathlist:[],style:xe({},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=re}endContext(){this.parsingContext=this.parsingContext.parent}onError(a){this.errors.push(xe({before:pl(this.tokens.slice(this.index,this.index+10)),after:pl(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 xe({},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 Vs({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=Dt(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?Jo(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new ia({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 re=this.get();Ro(re)?(E+=re,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(Ro(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 re=10,oe=/\d/;if(this.match("'"))re=8,oe=/[0-7]/,a=!0;else if(this.match('"'))re=16,oe=/[\dA-F]/,a=!0;else if(this.match("x"))re=16,oe=/[\dA-Fa-f]/,a=!0;else if(this.match("`"))return ee=this.get(),ee?ee.length===2&&ee.startsWith("\\")?{number:(E?-1:1)*((y=ee.codePointAt(1))!=null?y:0),base:"alpha"}:{number:(E?-1:1)*((b=ee.codePointAt(0))!=null?b:0),base:"alpha"}:null;let pe="";for(;this.hasPattern(oe);)pe+=this.get();if(!a&&(this.match(".")||this.match(",")))for(pe+=".";this.hasPattern(oe);)pe+=this.get();const ve=a?Number.parseInt(pe,re):Number.parseFloat(pe);return Number.isNaN(ve)?null:{number:E?-ve:ve,base:re===16?"hexadecimal":re===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 re=this.peek();if(re==="-")E=!E;else if(re!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const re=this.get();return re.startsWith("\\")?b?{register:re,global:!0,factor:(E?-1:1)*b.number}:E?{register:re,global:!0,factor:-1}:{register:re,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()||!Ro(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=St(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const pe of y.params)if(pe.isOptional)b.push(this.scanOptionalArgument(pe.type));else{const ve=this.scanArgument(pe.type);ve||this.onError({code:"missing-argument",arg:a}),b.push(ve)}this.beginContext({tabular:y.tabular});const E=[],ee=[];let re=[],oe=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),oe=!0),!oe&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),oe=!0),!oe)if(this.matchColumnSeparator())re.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){re.push(this.mathlist),this.mathlist=[];let pe=null;this.skipWhitespace(),this.match("[")&&(pe=this.scanDimen(),this.skipWhitespace(),this.match("]")),ee.push(pe!=null?pe:{dimension:0}),E.push(re),re=[]}else this.mathlist.push(...this.scan(pe=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(pe)));while(!oe);return re.push(this.mathlist),re.length>0&&E.push(re),this.endContext(),y.createAtom(a,E,ee,b)}scanExpression(){const a=this.mathlist;if(this.mathlist=[],this.parseExpression()){const y=this.mathlist;return this.mathlist=a,y}return this.mathlist=a,null}scan(a){this.beginContext(),a||(a=oe=>oe==="<}>");let y="",b=null,E=[],ee=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=Dt(y,"math"),b&&(E=this.scanArguments(b)[1]),ee=this.mathlist,this.mathlist=[]):this.parseExpression();let re;return y?(console.assert(!!b),E.unshift(this.mathlist),ee&&E.unshift(ee),re=[b.createAtom({command:y,args:E,style:this.style,mode:this.parseMode})]):re=this.mathlist,this.endContext(),re}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 Qo(y,this.parseMode,this.style);return b.verbatimLatex=pl(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 Xa("",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(!Ro(a)&&!a.startsWith("\\"))return null;this.next();const y=Dt(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 ys("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new ys("\\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 ys(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 Xa(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 Ar({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new Ar({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(yt(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(re=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(re))):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(Ro(a)){const b=Ss.createAtom(this.parseMode,a,xe({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=Dt(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new ys(a)];if(b.definitionType==="symbol"){const E=xe({},this.style);b.variant&&(E.variant=b.variant),y=new Ar({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 ys(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 re=ee.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(re)b.padding={dimension:parseInt(re[1]),unit:re[2]};else{const oe=ee.match(/^\s*border\s*:\s*(.*)/);oe?b.border=oe[1]:b.backgroundcolor={string:ee}}}y=b}else a==="math"&&(this.beginContext({mode:"math"}),y=this.mathlist.concat(this.scan(b=>b==="]")),this.endContext());return y}scanSymbolOrCommand(a){var y,b,E;if(a==="\\placeholder"){const pe=this.scanOptionalArgument("string"),ve=this.scanOptionalArgument("math"),be=Ar.serialize(ve,{defaultMode:"math"});let Ie=[],Ke;!Ke&&be==="correct"?Ke="correct":!Ke&&be==="incorrect"?Ke="incorrect":be!==""&&(Ie=ve);const ht=this.scanOptionalArgument("string")==="locked",Rt=this.scanArgument("auto");let Qt;return Rt&&Array.isArray(Rt)&&Rt.length>0?Qt=Rt:Rt&&typeof Rt=="object"&&"group"in Rt?Qt=Rt.group:Qt=Ie,pe?[new xl(pe,Ke,ht,Qt!=null?Qt:Ie,{mode:this.parseMode,style:this.style})]:[new ia({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const pe=this.index,ve=this.scanLiteralGroup()||this.next();if(!ve)return null;if(this.context.registers[ve.substring(1)]){const be=this.scanArgument("string");be!==null&&(this.context.registers[ve.substring(1)]=be);const Ie=Da([a,pl(this.tokens.slice(pe,this.index))]);return[new Ar({type:"text",value:"",verbatimLatex:Ie})]}}let ee=this.scanMacro(a);if(ee)return[ee];const re=Dt(a,this.parseMode);if(!re)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(pe=>new Ar({type:"text",value:pe,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new ys(a)]);const oe=this.index;if(re.definitionType==="symbol"){const pe=xe({},this.style);re.variant&&(pe.variant=re.variant),ee=new Ar({type:re.type,command:a,style:pe,value:String.fromCodePoint(re.codepoint),mode:this.parseMode})}else{if(re.ifMode&&!re.ifMode.includes(this.parseMode))return[];const pe=this.parseMode;re.applyMode&&(this.parseMode=re.applyMode);let ve,be=[];if(re.parse?be=re.parse(this):[ve,be]=this.scanArguments(re),this.parseMode=pe,re.applyMode&&!re.applyStyle&&!re.createAtom)return yt(be[0]);if(re.infix)return this.onError({code:"too-many-infix-commands",arg:a}),null;if(typeof re.createAtom=="function")ee=re.createAtom({command:a,args:be,style:this.style,mode:this.parseMode}),ve&&(ee.body=yt(this.scanArgument(ve)));else if(typeof re.applyStyle=="function"){const Ie=xe(xe({},this.style),re.applyStyle(a,be,this.context)),Ke=this.parseMode;if(re.applyMode&&(this.parseMode=re.applyMode),ve){const ht=this.style;this.style=Ie;const Rt=this.scanArgument(ve);return this.style=ht,this.parseMode=Ke,yt(Rt)}this.style=Ie}else ee=new Ar({type:"mord",command:(b=re.command)!=null?b:a,style:xe({},this.style),value:a,mode:(E=re.applyMode)!=null?E:this.parseMode})}if(!ee)return null;if(ee instanceof Ar&&ee.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const pe=Da([a,pl(this.tokens.slice(oe,this.index))]);pe&&(ee.verbatimLatex=pe)}if(ee.verbatimLatex===null&&(ee.verbatimLatex=void 0),ee.isFunction&&this.smartFence){const pe=this.scanSmartFence();if(pe)return[ee,pe]}return[ee]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(Ro(a)){const y=Ss.createAtom(this.parseMode,a,xe({},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 al(" "," ",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,re={"?":(y=this.args)==null?void 0:y.call(this,"?")};for(let oe=1;oe<=ee;oe++){let pe=this.scanLiteralGroup();if(!pe){const ve=this.index;this.scanExpression(),pe=pl(this.tokens.slice(ve,this.index))}re[oe]=pe}return new Au(a,{expand:b.expand,captureSelection:b.captureSelection,args:E===this.index?null:pl(this.tokens.slice(E,this.index)),style:this.parsingContext.style,body:Jo(b.def,{context:this.context,parseMode:this.parseMode,args:oe=>re[oe],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var a,y,b,E;let ee=(E=(b=(y=(a=this.scanEnvironment())!=null?a:this.scanModeShift())!=null?y:this.scanModeSet())!=null?b:this.scanGroup())!=null?E:this.scanLeftRight();if(ee===null){if(this.parseSupSub()||this.parseLimits())return!0;ee=this.scanSymbolCommandOrLiteral()}return ee?(Array.isArray(ee)?this.mathlist.push(...ee):this.mathlist.push(ee),!0):!1}};function Jo(a,y){var b,E,ee,re;const oe=(b=y==null?void 0:y.args)!=null?b:void 0,pe=new Zl(nl(a,oe),y==null?void 0:y.context,{args:oe,mathstyle:(E=y==null?void 0:y.mathstyle)!=null?E:"displaystyle",parseMode:(ee=y==null?void 0:y.parseMode)!=null?ee:"math",style:(re=y==null?void 0:y.style)!=null?re:{}}),ve=[];for(;!pe.end();)ve.push(...pe.scan(()=>!1));return ve}function t0(a,y){var b;const E=new Zl(nl(a,null),y==null?void 0:y.context,{mathstyle:"displaystyle",parseMode:(b=y==null?void 0:y.parseMode)!=null?b:"math"});for(;!E.end();)E.scan();return E.errors}var n0=class zp extends Ar{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const E=yo.go(Vr.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=Jo(E),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new zp(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return me(xe({},super.toJson()),{arg:this.arg})}render(y){const b=Ar.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}};Ot(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new n0(a.command,(y=a.args[0])!=null?y:"")}});var Vr={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,re=10,oe=[];;){ee!==a?(re=10,ee=a):re--;var pe=Vr.stateMachines[y],ve=pe.transitions[b]||pe.transitions["*"];e:for(var be=0;be<ve.length;be++){var Ie=Vr.patterns.match_(ve[be].pattern,a);if(Ie){for(var Ke=ve[be].task,ht=0;ht<Ke.action_.length;ht++){var Rt;if(pe.actions[Ke.action_[ht].type_])Rt=pe.actions[Ke.action_[ht].type_](E,Ie.match_,Ke.action_[ht].option);else if(Vr.actions[Ke.action_[ht].type_])Rt=Vr.actions[Ke.action_[ht].type_](E,Ie.match_,Ke.action_[ht].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Ke.action_[ht].type_+")"];Vr.concatArray(oe,Rt)}if(b=Ke.nextState||b,a.length>0){if(Ke.revisit||(a=Ie.remainder),!Ke.toContinue)break e}else return oe}}if(re<=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=Vr.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 Vr.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return Vr.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return Vr.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return Vr.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return Vr.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return Vr.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return Vr.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return Vr.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return Vr.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return Vr.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return Vr.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return Vr.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return Vr.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 Vr.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return Vr.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return Vr.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return Vr.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 Vr.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return Vr.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return Vr.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return Vr.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return Vr.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return Vr.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return Vr.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return Vr.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=Vr.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,re,oe,pe,ve,be){var Ie=function(Jn,Nr){if(typeof Nr=="string")return Jn.indexOf(Nr)!==0?null:Nr;var ri=Jn.match(Nr);return ri?ri[0]:null},Ke=function(Jn,Nr,ri){for(var zr=0;Nr<Jn.length;){var Fi=Jn.charAt(Nr),ea=Ie(Jn.substr(Nr),ri);if(ea!==null&&zr===0)return{endMatchBegin:Nr,endMatchEnd:Nr+ea.length};if(Fi==="{")zr++;else if(Fi==="}"){if(zr===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];zr--}Nr++}return zr>0,null},ht=Ie(a,y);if(ht===null||(a=a.substr(ht.length),ht=Ie(a,b),ht===null))return null;var Rt=Ke(a,ht.length,E||ee);if(Rt===null)return null;var Qt=a.substring(0,E?Rt.endMatchEnd:Rt.endMatchBegin);if(re||oe){var er=this.findObserveGroups(a.substr(Rt.endMatchEnd),re,oe,pe,ve);if(er===null)return null;var Qr=[Qt,er.match_];return{match_:be?Qr.join(""):Qr,remainder:er.remainder}}else return{match_:Qt,remainder:a.substr(Rt.endMatchEnd)}},match_:function(a,y){var b=Vr.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return Vr.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 Vr.go(y,"text")},"{text}":function(a,y){var b=["{"];return Vr.concatArray(b,Vr.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return Vr.go(y,"tex-math")},"tex-math tight":function(a,y){return Vr.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 Vr.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 Vr.go(y,"9,9")}},createTransitions:function(a){var y,b,E,ee,re={};for(y in a)for(b in a[y])for(E=b.split("|"),a[y][b].stateArray=E,ee=0;ee<E.length;ee++)re[E[ee]]=[];for(y in a)for(b in a[y])for(E=a[y][b].stateArray||[],ee=0;ee<E.length;ee++){var oe=a[y][b];if(oe.action_){oe.action_=[].concat(oe.action_);for(var pe=0;pe<oe.action_.length;pe++)typeof oe.action_[pe]=="string"&&(oe.action_[pe]={type_:oe.action_[pe]})}else oe.action_=[];for(var ve=y.split("|"),be=0;be<ve.length;be++)if(E[ee]==="*")for(var Ie in re)re[Ie].push({pattern:ve[be],task:oe});else re[E[ee]].push({pattern:ve[be],task:oe})}return re},stateMachines:{}};Vr.stateMachines={ce:{transitions:Vr.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 Vr.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 Vr.concatArray(b,this.output(a)),Vr.concatArray(b,Vr.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var E=Vr.patterns.match_("orbital",a.o||""),ee=Vr.patterns.match_("one lowercase greek letter $",a.o||""),re=Vr.patterns.match_("one lowercase latin letter $",a.o||""),oe=Vr.patterns.match_("$one lowercase latin letter$ $",a.o||""),pe=y==="-"&&(E&&E.remainder===""||ee||re||oe);pe&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!E&&re&&(a.o="$"+a.o+"$");var ve=[];return pe?(Vr.concatArray(ve,this.output(a)),ve.push({type_:"hyphen"})):(E=Vr.patterns.match_("digits",a.d||""),b&&E&&E.remainder===""?(Vr.concatArray(ve,Vr.actions["d="](a,y)),Vr.concatArray(ve,this.output(a))):(Vr.concatArray(ve,this.output(a)),Vr.concatArray(ve,Vr.actions.bond(a,y,"-")))),ve},"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:Vr.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"&&Vr.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:Vr.go(a.a,"a"),b:Vr.go(a.b,"bd"),p:Vr.go(a.p,"pq"),o:Vr.go(a.o,"o"),q:Vr.go(a.q,"pq"),d:Vr.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ee;a.rdt==="M"?ee=Vr.go(a.rd,"tex-math"):a.rdt==="T"?ee=[{type_:"text",p1:a.rd||""}]:ee=Vr.go(a.rd);var re;a.rqt==="M"?re=Vr.go(a.rq,"tex-math"):a.rqt==="T"?re=[{type_:"text",p1:a.rq||""}]:re=Vr.go(a.rq),E={type_:"arrow",r:a.r,rd:ee,rq:re}}for(var oe in a)oe!=="parenthesisLevel"&&oe!=="beginsWithBond"&&delete a[oe];return E},"oxidation-output":function(a,y){var b=["{"];return Vr.concatArray(b,Vr.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:Vr.go(y[0]),p2:Vr.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:Vr.go(y[0]),p2:Vr.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:Vr.go(y[0]),p2:Vr.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:Vr.go(y[0]),p2:Vr.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Vr.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:Vr.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:Vr.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:Vr.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:Vr.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:Vr.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Vr.go(y[1],"pq")}}}},bd:{transitions:Vr.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:Vr.go(y[1],"bd")}}}},oxidation:{transitions:Vr.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:Vr.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:Vr.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:Vr.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:Vr.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]&&(Vr.concatArray(b,Vr.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?Vr.concatArray(b,Vr.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]),Vr.concatArray(b,Vr.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=Vr.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var E=Vr.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:Vr.go(a.d,"pu"),q:Vr.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_:"/"}),Vr.concatArray(y,ee.q))}else y=Vr.go(a.d,"pu-2");for(var re in a)delete a[re];return y}}},"pu-2":{transitions:Vr.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=Vr.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=Vr.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var E in a)delete a[E];return y}}},"pu-9,9":{transitions:Vr.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 yo={go:function(a,y){if(!a)return"";for(var b="",E=!1,ee=0;ee<a.length;ee++){var re=a[ee];typeof re=="string"?b+=re:(b+=yo._go2(re),re.type_==="1st-level escape"&&(E=!0))}return!y&&!E&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&yo.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:yo._goInner(a.a),b:yo._goInner(a.b),p:yo._goInner(a.p),o:yo._goInner(a.o),q:yo._goInner(a.q),d:yo._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 "+yo._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+yo._goInner(a.p1);break;case"bond":if(y=yo._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{"+yo._goInner(a.p1)+"}{"+yo._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ee+"}{"+ee+"}{"+ee+"}{"+ee+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+yo._goInner(a.p1)+"}{"+yo._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+yo._goInner(a.p1)+"}{"+yo._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+yo._goInner(a.p1)+"}{"+yo._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+yo._goInner(a.p1)+"}_{"+yo._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+yo._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var re={rd:yo._goInner(a.rd),rq:yo._goInner(a.rq)},oe=yo._getArrow(a.r);re.rd||re.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(oe="\\long"+oe,re.rd&&(oe="\\overset{"+re.rd+"}{"+oe+"}"),re.rq&&(a.r==="<-->"?oe="\\underset{\\lower2mu{"+re.rq+"}}{"+oe+"}":oe="\\underset{\\lower6mu{"+re.rq+"}}{"+oe+"}"),oe=" {}\\mathrel{"+oe+"}{} "):(re.rq&&(oe+="[{"+re.rq+"}]"),oe+="{"+re.rd+"}",oe=" {}\\mathrel{\\x"+oe+"}{} "):oe=" {}\\mathrel{\\long"+oe+"}{} ",y=oe;break;case"operator":y=yo._getOperator(a.kind_);break;case"1st-level escape":y=a.p1+" ";break;case"space":y=" ";break;case"entitySkip":y="~";break;case"pu-space-1":y="~";break;case"pu-space-2":y="\\mkern3mu ";break;case"1000 separator":y="\\mkern2mu ";break;case"commaDecimal":y="{,}";break;case"comma enumeration L":y="{"+a.p1+"}\\mkern6mu ";break;case"comma enumeration M":y="{"+a.p1+"}\\mkern3mu ";break;case"comma enumeration S":y="{"+a.p1+"}\\mkern1mu ";break;case"hyphen":y="\\text{-}";break;case"addition compound":y="\\,{\\cdot}\\,";break;case"electron dot":y="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":y="{\\times}";break;case"prime":y="\\prime ";break;case"cdot":y="\\cdot ";break;case"tight cdot":y="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":y="\\times ";break;case"circa":y="{\\sim}";break;case"^":y="uparrow";break;case"v":y="downarrow";break;case"ellipsis":y="\\ldots ";break;case"/":y="/";break;case" / ":y="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return y},_getArrow:function(a){switch(a){case"->":return"rightarrow";case"\u2192":return"rightarrow";case"\u27F6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"\u21CC":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(a){switch(a){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(a){switch(a){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function A1(a){}function M1(a){}var r0=class Hp extends Ar{constructor(y){super(me(xe({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new Hp(y)}toJson(){return me(xe({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new ei(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Dt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):ho(this.command,this.value)}},i0=class Kp extends Ar{constructor(y){super(me(xe({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new Kp(y)}toJson(){return me(xe({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=Hn(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=Dt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):ho(this.command,this.value)}},bd=class Wp extends Ar{constructor(y,b,E,ee){var re,oe;super({type:"enclose",command:y,style:ee.style}),this.body=b,this.backgroundcolor=ee.backgroundcolor,E.updiagonalarrow&&(E.updiagonalstrike=!1),E.box&&(E.left=!1,E.right=!1,E.bottom=!1,E.top=!1),this.notation=E,this.shadow=(re=ee.shadow)!=null?re:"none",this.strokeWidth=(oe=ee.strokeWidth)!=null?oe:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=ee.strokeStyle,this.svgStrokeStyle=ee.svgStrokeStyle,this.strokeColor=ee.strokeColor,this.borderStyle=ee.borderStyle,this.padding=ee.padding,this.captureSelection=!1}static fromJson(y){return new Wp(y.command,y.body,y.notation,y)}toJson(){return me(xe({},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=Dt(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 re="",oe="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(re+=oe+'mathbackground="'+this.backgroundcolor+'"',oe=","),this.shadow&&this.shadow!=="auto"&&(re+=oe+'shadow="'+this.shadow+'"',oe=","),this.strokeWidth||this.strokeStyle!=="solid"?(re+=oe+this.borderStyle,oe=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(re+=oe+'mathcolor="'+this.strokeColor+'"',oe=","),re&&(ee+=`[${re}]`)}return ho(ee,this.bodyToLatex(y))}render(y){const b=new Na({parent:y},this.style),E=Ar.createBox(b,this.body);if(!E)return null;const ee=im(this.borderStyle),re=b.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});E.setStyle("position","relative"),E.setStyle("display","inline-block"),E.setStyle("top",re,"em"),E.setStyle("height",E.height+E.depth,"em"),E.setStyle("width",E.width,"em");const oe=new ei(null,{classes:"ML__notation"});let pe=E.height+E.depth+2*re;const ve=E.width+2*re;let be="";if(this.notation.horizontalstrike&&(be+=this.line(3,50,97,50)),this.notation.verticalstrike&&(be+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(be+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(be+=this.line(3,3,97,97)),this.notation.updiagonalarrow){be+=this.line(re.toString(),(re+E.depth+E.height).toString(),(re+E.width).toString(),re.toString());const Qt=.03*Math.sqrt(ve*ve+pe*pe)*1,er=E.width*Qt,Qr=(E.depth+E.height)*Qt,Jn=re+E.width;let Nr=re;Nr+Qr-.4*er<0&&(Nr=.4*er-Qr),be+='<polygon points="',be+=`${Jn},${Nr} ${Jn-er-.4*Qr},${Nr+Qr-.4*er} `,be+=`${Jn-.7*er},${Nr+.7*Qr} ${Jn-er+.4*Qr},${Nr+Qr+.4*er} `,be+=`${Jn},${Nr}`,be+=`" stroke='none' fill="${this.strokeColor}"`,be+="/>"}let Ie=0;if(this.notation.phasorangle){const ht=a0(b),Rt=(E.height+E.depth+2*ht+re).toString(),Qt=(E.height+E.depth)/2;be+=this.line(re.toString(),Rt,(re+Qt+E.width).toString(),Rt),be+=this.line(re.toString(),Rt,(re+Qt).toString(),(re-ht).toString()),pe+=ht,Ie=Qt,E.left+=pe/2-re}if(this.notation.longdiv){const ht=a0(b);pe+=ht,be+=this.line(re.toString(),re.toString(),(re+E.width).toString(),re.toString());const Rt=.3;Ie=Rt+ht,E.left+=Rt+ht,E.setTop(re+ht),be+='<path d="',be+=`M ${re} ${re} a${Rt} ${(E.depth+E.height+2*ht)/2}, 0, 1, 1, 0 ${E.depth+E.height+2*ht} "`,be+=` stroke-width="${am(b)}" stroke="${this.strokeColor}" fill="none"`,be+="/>"}if(oe.width=E.width+2*re+Ie,oe.height=E.height+re,oe.depth=E.depth+re,oe.setStyle("box-sizing","border-box"),oe.setStyle("left",`calc(-${ee} / 2 )`),oe.setStyle("height",`${Math.floor(100*pe)/100}em`),oe.setStyle("top",`calc(${ee} / 2 )`),this.backgroundcolor&&oe.setStyle("background-color",this.backgroundcolor),this.notation.box&&oe.setStyle("border","1px solid red"),this.notation.actuarial&&(oe.setStyle("border-top",this.borderStyle),oe.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(oe.setStyle("border-bottom",this.borderStyle),oe.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(oe.setStyle("border-radius","8px"),oe.setStyle("border",this.borderStyle)),this.notation.circle&&(oe.setStyle("border-radius","50%"),oe.setStyle("border",this.borderStyle)),this.notation.top&&oe.setStyle("border-top",this.borderStyle),this.notation.left&&oe.setStyle("border-left",this.borderStyle),this.notation.right&&oe.setStyle("border-right",this.borderStyle),this.notation.bottom&&oe.setStyle("border-bottom",this.borderStyle),be){let ht="";this.shadow==="auto"&&(ht+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(ht+=`filter: drop-shadow(${this.shadow})`),ht+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,ht+=' stroke-linecap="round"',this.svgStrokeStyle&&(ht+=` stroke-dasharray="${this.svgStrokeStyle}"`),oe.svgStyle=ht,oe.svgOverlay=be}const Ke=new ei([oe,E]);return Ke.setStyle("position","relative"),Ke.setStyle("vertical-align",re,"em"),Ke.setStyle("height",`${Math.floor(100*(E.height+E.depth+2*re))/100}em`),Ke.setStyle("display","inline-block"),Ke.height=oe.height,Ke.depth=oe.depth,Ke.width=oe.width-2*re,Ke.left=re,Ke.right=re,this.caret&&(Ke.caret=this.caret),Ke.wrap(b)}line(y,b,E,ee){return`<line x1="${bf(y)}" y1="${bf(b)}" x2="${bf(E)}" y2="${bf(ee)}" vector-effect="non-scaling-stroke"></line>`}};function bf(a){return typeof a=="number"?`${Math.floor(100*a)/100}%`:a}function im(a){if(!a)return"1px";const y=a.match(/([0-9][a-zA-Z\%]+)/);return y===null?"1px":y[1]}function am(a){return(Math.floor(100*a.metrics.sqrtRuleThickness/a.scalingFactor)/100/10).toString()+"em"}function a0(a){const y=a.isDisplayStyle?el:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var Mu=class jp extends Ar{constructor(y,b,E){var ee,re;super(me(xe({},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=(re=E==null?void 0:E.continuousFraction)!=null?re:!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 jp(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),xe(xe({},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 Na({parent:y,mathstyle:this.mathstyleName},this.style),re=ee.metrics,oe=new Na({parent:ee,mathstyle:this.continuousFraction?"":"numerator"},this.style),pe=this.numerPrefix?new ei([new ei(this.numerPrefix),Ar.createBox(oe,this.above)],{isTight:oe.isTight,type:"ignore"}):(b=Ar.createBox(oe,this.above,{type:"ignore"}))!=null?b:new ei(null,{type:"ignore"}),ve=new Na({parent:ee,mathstyle:this.continuousFraction?"":"denominator"},this.style),be=this.denomPrefix?new ei([new ei(this.denomPrefix),Ar.createBox(ve,this.below,{type:"ignore"})]):(E=Ar.createBox(ve,this.below,{type:"ignore"}))!=null?E:new ei(null,{type:"ignore"}),Ie=this.hasBarLine?re.defaultRuleThickness:0;let Ke,ht=0,Rt;ee.isDisplayStyle?(Ke=oe.metrics.num1,ht=Ie>0?3*Ie:7*Ie,Rt=ve.metrics.denom1):(Ie>0?(Ke=oe.metrics.num2,ht=Ie):(Ke=oe.metrics.num3,ht=3*re.defaultRuleThickness),Rt=ve.metrics.denom2);const Qt=[];this.isSelected&&Qt.push("ML__selected");const er=pe.depth,Qr=be.height;let Jn;if(Ie<=0){const Ui=Ke-er-(Qr-Rt);Ui<ht&&(Ke+=(ht-Ui)/2,Rt+=(ht-Ui)/2),Jn=new ao({individualShift:[{box:pe,shift:-Ke,classes:[...Qt,"ML__center"]},{box:be,shift:Rt,classes:[...Qt,"ML__center"]}]}).wrap(ee)}else{const Ui=new ei(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Ui.softWidth=Math.max(pe.width,be.width),Ui.height=Ie/2,Ui.depth=Ie/2;const za=ls+Ie/2;Ke<ht+er+za&&(Ke=ht+er+za);const io=ls-Ie/2;Rt<ht+Qr-io&&(Rt=ht+Qr-io),Jn=new ao({individualShift:[{box:be,shift:Rt,classes:[...Qt,"ML__center"]},{box:Ui,shift:-io,classes:Qt},{box:pe,shift:-Ke,classes:[...Qt,"ML__center"]}]}).wrap(ee)}const Nr=ee.isDisplayStyle?re.delim1:re.delim2,ri=this.leftDelim?this.bind(y,Bi("open",this.leftDelim,Nr,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):Ti(ee,"open");let zr=null;this.continuousFraction?zr=new ei(null,{type:"close"}):this.rightDelim?zr=this.bind(y,Bi("close",this.rightDelim,Nr,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):zr=Ti(ee,"close");const Fi=new ei([ri,Jn,zr],{isTight:ee.isTight,type:"inner",classes:"mfrac"}),ea=this.bind(y,Fi);return this.caret&&(ea.caret=this.caret),this.attachSupsub(y,{base:ea})}},rs=class Zp extends Ar{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 Zp(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),xe({type:"latex",value:this.value},y)}get computedStyle(){return{}}render(y){const b=new ei(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}},xd=class Up extends Ar{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new rs(b)),this.skipBoundary=!1}static fromJson(y){return new Up("")}toJson(){return super.toJson()}render(y){const b=Ar.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){var b,E;return(E=(b=this.body)==null?void 0:b.map(ee=>ee.value).join(""))!=null?E:""}},fh=class Vp extends Ar{constructor(y,b){super(me(xe({},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 Vp(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 ei(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 re=(ee.height-ee.depth)/2-ls*y.scalingFactor,oe=ee.italic;ee.setTop(re);let pe=ee;if(this.superscript||this.subscript){const ve=(b=this.subsupPlacement)!=null?b:"auto";pe=ve==="over-under"||ve==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ee,baseShift:re,slant:oe}):this.attachSupsub(y,{base:ee})}return new ei(this.bind(y,pe),{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=Dt(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)),Da(E)}},Nc=class Gp extends Ar{constructor(y){const b=y.body;super(me(xe({},y),{type:"overlap",body:typeof b=="string"?[new Ar({value:b})]:b,style:y==null?void 0:y.style})),this.skipBoundary=!0,this.align=y==null?void 0:y.align,this.boxType=y==null?void 0:y.boxType}static fromJson(y){return new Gp(y)}toJson(){const y={};return this.align&&(y.align=this.align),this.boxType&&(y.boxType=this.boxType),xe(xe({},super.toJson()),y)}render(y){const b=Ar.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new ei([b,new ei(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},Gs=class Yp extends Ar{constructor(y){var b,E,ee,re;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=(re=y.paddedLabels)!=null?re:!1}static fromJson(y){return new Yp(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?Os(this.svgBody):Ar.createBox(y,this.body,{type:"ignore"});const E=new Na({parent:y,mathstyle:"scriptstyle"},this.style);let ee=null;this.svgAbove?ee=Os(this.svgAbove):this.above&&(ee=Ar.createBox(E,this.above,{type:"ignore"}));let re=null;this.svgBelow?re=Os(this.svgBelow):this.below&&(re=Ar.createBox(E,this.below,{type:"ignore"})),this.paddedBody&&(b=new ei([Ti(y,"open"),b,Ti(y,"close")],{type:"ignore"}));let oe=om(y,{base:b,above:ee,below:re,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return oe?(this.subsupPlacement==="over-under"?oe=this.attachLimits(y,{base:oe,type:oe.type}):oe=this.attachSupsub(y,{base:oe}),this.caret&&(oe.caret=this.caret),this.bind(y,oe)):null}};function om(a,y){if(!y.base)return null;if(!y.above&&!y.below){const pe=new ei(y.base,{type:y.type});return pe.setStyle("position","relative"),pe}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let E=null;const ee=y.base,re=0,oe=["ML__center"];if(y.paddedAboveBelow&&oe.push("ML__label_padding"),y.below&&y.above){const pe=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ee.depth+re;E=new ao({bottom:pe,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:oe},{box:ee,classes:["ML__center"]},b,{box:y.above,classes:oe},a.metrics.bigOpSpacing5]})}else y.below?E=new ao({top:ee.height-re,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:oe},{box:ee,classes:["ML__center"]}]}):y.above&&(E=new ao({bottom:ee.depth+re,children:[{box:ee,classes:["ML__center"]},b,{box:y.above,classes:oe},a.metrics.bigOpSpacing5]}));return new ei(E,{type:y.type})}var wd=class Xp extends Ar{constructor(y){var b,E,ee,re;super(me(xe({},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=(re=y.smashWidth)!=null?re:!1}static fromJson(y){return new Xp(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),xe(xe({},super.toJson()),y)}render(y){const b=new Na({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),Ar.createBox(b,this.body,{classes:"inner"});const E=Ar.createBox(this.isInvisible?b:y,this.body);if(!E)return null;if(this.smashWidth){const ee=new ei(null,{classes:"fix"});return new ei([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 ao({firstBaseline:[{box:E}]},{type:E.type}).wrap(y)}},Sd=class Qp extends Ar{constructor(y){var b;super(xe({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 Qp(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 ei(this.mode==="math"?null:" ");let E;if(this.width!==void 0)E=new ei(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 ei(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=Dt(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}{${Oo(this.width)}}`:`${ee}${Oo(this.width)}`}},o0=class Jp extends Ar{constructor(y){var b;super(me(xe({},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 Jp(me(xe({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Dt(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")?ho(`${E}[${this.aboveToLatex(y)}]`,ee):/^[0-9]$/.test(ee)?`${E}${ee}`:ho(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 Na({parent:y,mathstyle:"cramp"},this.style),ee=(b=Ar.createBox(E,this.body,{type:"inner"}))!=null?b:new ei(null),re=E.scalingFactor,oe=E.metrics.defaultRuleThickness/re,pe=y.isDisplayStyle?el:oe,ve=new ei(null,{classes:"ML__sqrt-line",style:this.style});ve.height=oe,ve.softWidth=ee.width;let be=re*(oe+pe/4);const Ke=Math.max(re*2*pe,ee.height+ee.depth)+be+oe,ht=new Na({parent:y},this.style),Rt=this.bind(ht,new ei(Bi("inner","\\surd",Ke,!1,ht,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!Rt)return null;const Qt=Rt.height+Rt.depth-oe;Qt>ee.height+ee.depth+be&&(be=(be+Qt-(ee.height+ee.depth))/2),Rt.setTop(Rt.height-ee.height-be);const er=this.bind(y,new ao({firstBaseline:[{box:new ei(ee)},be-2*oe,{box:ve},oe]})),Qr=Ar.createBox(new Na({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!Qr){const ri=new ei([Rt,er],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return ri.setStyle("display","inline-block"),ri.setStyle("height",ri.height+ri.depth,"em"),this.caret&&(ri.caret=this.caret),this.bind(y,ri)}const Jn=new ao({shift:-.6*(Math.max(Rt.height,er.height)-Math.max(Rt.depth,er.depth)),children:[{box:Qr}]}),Nr=new ei([new ei(Jn,{classes:"ML__sqrt-index",type:"ignore"}),Rt,er],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return Nr.height=Rt.height,Nr.depth=Rt.depth,this.caret&&(Nr.caret=this.caret),this.bind(y,Nr)}},sm=class extends ei{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 xf(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"){xf(a.parent,y);return}E>0&&b[E-1].type==="skip"?b[E-1].width+=y:b.splice(E,0,new sm(y))}var lm={ord:{op:3,bin:4,rel:5,inner:3},op:{ord:3,op:3,rel:5,inner:3},bin:{ord:4,op:4,open:4,inner:4},rel:{ord:5,op:5,open:5,inner:5},close:{op:3,bin:4,rel:5,inner:3},punct:{ord:3,op:3,rel:3,open:3,punct:3,inner:3},inner:{ord:3,op:3,bin:4,rel:5,open:3,punct:3,inner:3}},cm={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function um(a){Ed(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 Cd(a,y){if(!a.children)return a;const b=a.children;um(b);const E=y.getRegisterAsEm("thinmuskip"),ee=y.getRegisterAsEm("medmuskip"),re=y.getRegisterAsEm("thickmuskip");return Ed(b,(oe,pe)=>{var ve,be,Ie;if(!oe)return;const Ke=oe.type,ht=pe.isTight?(ve=cm[Ke])!=null?ve:null:(be=lm[Ke])!=null?be:null,Rt=(Ie=ht==null?void 0:ht[pe.type])!=null?Ie:null;Rt===3&&xf(pe,E),Rt===4&&xf(pe,ee),Rt===5&&xf(pe,re)}),a}function Ed(a,y,b=void 0){if(!a)return b;a=[...a];for(const E of a)E.type==="lift"?b=Ed(E.children,y,b):E.type==="ignore"?Ed(E.children,y):(y(b,E),Ed(E.children,y),b=E);return b}var hh=class qp extends Ar{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new Ar({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new qp(me(xe({},y),{tooltip:dc(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 me(xe({},super.toJson()),{tooltip:b})}render(y){const b=Ar.createBox(new Na,this.body);if(!b)return null;const E=new Na({parent:y,mathstyle:"displaystyle"},{fontSize:dl}),ee=gu(Cd(new ei(this.tooltip.render(E),{classes:"ML__tooltip-content"}),E)),re=new ei([ee,b],{classes:"ML__tooltip-container"});return this.caret&&(re.caret=this.caret),this.bind(y,re)}},Rc=class $p extends Ar{constructor(y,b){super(me(xe({},b),{type:"operator",isFunction:b==null?void 0:b.isFunction})),this.value=y,this.variant=b==null?void 0:b.variant,this.variantStyle=b==null?void 0:b.variantStyle,this.subsupPlacement=b==null?void 0:b.limits}static fromJson(y){return new $p(y.symbol,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.variantStyle&&(y.variantStyle=this.variantStyle),this.subsupPlacement&&(y.limits=this.subsupPlacement),this.value&&(y.symbol=this.value),y}render(y){var b;const E=new ei(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 re=(b=this.subsupPlacement)!=null?b:"auto";ee=re==="over-under"||re==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:E}):this.attachSupsub(y,{base:E})}return new ei(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=Dt(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)),Da(E)}};function dc(a){if(Ne(a))return a.map(E=>dc(E));if(typeof a=="string")return Ar.fromJson(a);a=xe({},a);for(const E of sc)a[E]&&(a[E]=dc(a[E]));a.args&&(a.args=dm(a.args)),a.array&&(a.array=dc(a.array));const y=a.type;let b;y==="accent"&&(b=z.fromJson(a)),y==="array"&&(b=wa.fromJson(a)),y==="box"&&(b=Bo.fromJson(a)),y==="chem"&&(b=n0.fromJson(a)),y==="composition"&&(b=jl.fromJson(a)),y==="delim"&&(b=r0.fromJson(a)),y==="enclose"&&(b=bd.fromJson(a)),y==="error"&&(b=ys.fromJson(a)),y==="extensible-symbol"&&(b=fh.fromJson(a)),y==="genfrac"&&(b=Mu.fromJson(a)),y==="group"&&(b=Qo.fromJson(a)),y==="latex"&&(b=rs.fromJson(a)),y==="latexgroup"&&(b=xd.fromJson(a)),y==="leftright"&&(b=Xa.fromJson(a)),y==="macro"&&(b=Au.fromJson(a)),y==="macro-argument"&&(b=sl.fromJson(a)),y==="operator"&&(b=Rc.fromJson(a)),y==="overlap"&&(b=Nc.fromJson(a)),y==="overunder"&&(b=Gs.fromJson(a)),y==="placeholder"&&(b=ia.fromJson(a)),y==="prompt"&&(b=xl.fromJson(a)),y==="phantom"&&(b=wd.fromJson(a)),y==="sizeddelim"&&(b=i0.fromJson(a)),y==="spacing"&&(b=Sd.fromJson(a)),y==="subsup"&&(b=Vs.fromJson(a)),y==="surd"&&(b=o0.fromJson(a)),y==="text"&&(b=al.fromJson(a)),y==="tooltip"&&(b=hh.fromJson(a)),b||(console.assert(!y||["first","mbin","mrel","mclose","minner","mop","mopen","mord","mpunct","root","space"].includes(y),`MathLive 0.98.5: an unexpected atom type "${y}" was encountered. Add new atom constructors to \`fromJson()\` in "atom.ts"`),b=Ar.fromJson(a));for(const E of sc)a[E]&&b.setChildren(a[E],E);return a.verbatimLatex!==void 0&&(b.verbatimLatex=a.verbatimLatex),a.subsupPlacement&&(b.subsupPlacement=a.subsupPlacement),a.explicitSubsupPlacement&&(b.explicitSubsupPlacement=!0),a.isFunction&&(b.isFunction=!0),a.isExtensibleSymbol&&(b.isExtensibleSymbol=!0),a.skipBoundary&&(b.skipBoundary=!0),a.captureSelection&&(b.captureSelection=!0),b}function dm(a){if(a&&Array.isArray(a))return a.map(y=>y==="<null>"?null:typeof y=="object"&&"group"in y?{group:y.group.map(b=>dc(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>dc(b)):y)}var s0={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML__bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},ph={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[\dA-Z ]$/,fraktur:/^[\dA-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^’‘]$/,monospace:/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/,"sans-serif":/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/},l0=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,fm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,hm=[/^[a-z]$/,/^[A-Z]$/,l0,fm],pm={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},mm=class extends Ss{constructor(){super("math")}createAtom(a,y,b){var E,ee,re,oe;if(y===null)return new Ar({type:"mord",mode:"math",command:a,value:a,style:b});const pe=window.MathfieldElement.isFunction((E=y.command)!=null?E:a);if(y.definitionType==="symbol"){const be=new Ar({type:(ee=y.type)!=null?ee:"mord",mode:"math",command:(re=y.command)!=null?re:a,value:String.fromCodePoint(y.codepoint),style:b});return pe&&(be.isFunction=!0),a.startsWith("\\")&&(be.verbatimLatex=a),be}const ve=new Ar({type:"mord",mode:"math",command:(oe=y.command)!=null?oe:a,value:a,style:b});return pe&&(ve.isFunction=!0),a.startsWith("\\")&&(ve.verbatimLatex=a),ve}serialize(a,y){const b=gm(a,me(xe({},y),{defaultMode:"math"}));return b.length===0||y.defaultMode!=="text"?b:["$ ",...b," $"]}getFont(a,y){console.assert(y.variant!==void 0);let{variant:b}=y,{variantStyle:E}=y;b==="normal"&&!E&&/[\u00A3\u0131\u0237]/.test(a.value)&&(b="main",E="italic"),b==="normal"&&!E&&a.value.length===1&&hm.forEach((pe,ve)=>{var be;pe.test(a.value)&&pm[(be=y.letterShapeStyle)!=null?be:"tex"][ve]==="it"&&(E="italic")}),E==="up"&&(E=void 0);const ee=E?b+"-"+E:b;console.assert(s0[ee]!==void 0);const[re,oe]=s0[ee];return ph[b]&&!ph[b].test(a.value)?(a.value=xn(a.value,b,E),null):(l0.test(a.value)&&(a.classes+=" lcGreek"),oe&&(a.classes+=" "+oe),re)}};function gm(a,y){const{parent:b}=a[0],E=c0(b);return Lo(a,"variant").map(ee=>{const re=c0(ee[0]);let oe="";re&&re!==E&&(oe={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[re],console.assert(oe!==void 0));const pe=Da(ee.map(ve=>ve._serialize(y)));return oe?ho(oe,pe):pe})}function c0(a){if(!a)return"";const{style:y}=a;if(y.variant===void 0)return"";let b=y.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(y.variant)&&y.variantStyle&&y.variantStyle!=="up"&&(b+="-"+y.variantStyle),b}new mm;function vm(a,y){return a.map(b=>b._serialize(y))}function ym(a,y){return Lo(a,"fontShape").map(b=>{const E=vm(b,y),{fontShape:ee}=b[0].style;let re="";return ee==="it"&&(re="\\textit"),ee==="sl"&&(re="\\textsl"),ee==="sc"&&(re="\\textsc"),ee==="n"&&(re="\\textup"),!re&&ee?`{${ho("\\fontshape",ee)}${Da(E)}}`:re?ho(re,Da(E)):Da(E)})}function bm(a,y){return Lo(a,"fontSeries").map(b=>{const E=ym(b,y),{fontSeries:ee}=b[0].style;let re="";return ee==="b"&&(re="\\textbf"),ee==="l"&&(re="\\textlf"),ee==="m"&&(re="\\textmd"),ee&&!re?`{${ho("\\fontseries",ee)}${Da(E)}}`:re?ho(re,Da(E)):Da(E)})}function xm(a,y){return Lo(a,"fontSize").map(b=>{var E,ee;const re=bm(b,y),oe=(ee=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(E=b[0].style.fontSize)!=null?E:""])!=null?ee:"";return oe?`${oe} ${Da(re)}`:Da(re)})}function wm(a,y,b){return Lo(a,"fontFamily").map(E=>{var ee,re;const oe=xm(E,y),pe=(re={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ee=E[0].style.fontFamily)!=null?ee:""])!=null?re:"";return pe?`\\${pe}{${Da(oe)}}`:E[0].style.fontFamily?`{\\fontfamily{${E[0].style.fontFamily}} ${Da(oe)}}`:b?`\\text{${Da(oe)}}`:Da(oe)})}var u0={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Sm=class extends Ss{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new al(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return wm(a,me(xe({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,E,ee,re,oe;const{fontFamily:pe}=y;if(u0[pe]?a.classes+=" "+u0[pe]:pe&&a.setStyle("font-family",pe),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 ve=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);ve&&(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=ve[1])!=null?E:""])!=null?ee:"",a.classes+=" ",a.classes+=(oe={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[(re=ve[2])!=null?re:""])!=null?oe:"")}return"Main-Regular"}};new Sm;var Cm=class extends Ss{constructor(){super("latex")}createAtom(a){return new rs(a)}serialize(a,y){return a.filter(b=>b instanceof rs&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new Cm;var Em={id:"dvorak",locale:"en",displayName:"Dvorak",virtualLayout:"dvorak",platform:"",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["x","X","\u2248","\u02DB"],KeyC:["j","J","\u2206","\xD4"],KeyD:["e","E","\xB4","\xB4"],KeyE:[".",">","\u2265","\u02D8"],KeyF:["u","U","\xA8","\xA8"],KeyG:["i","I","\u02C6","\u02C6"],KeyH:["d","D","\u2202","\xCE"],KeyI:["c","C","\xE7","\xC7"],KeyJ:["h","H","\u02D9","\xD3"],KeyK:["t","T","\u2020","\u02C7"],KeyL:["n","N","\u02DC","\u02DC"],KeyM:["m","M","\xB5","\xC2"],KeyN:["b","B","\u222B","\u0131"],KeyO:["r","R","\xAE","\u2030"],KeyP:["l","L","\xAC","\xD2"],KeyQ:["'",'"',"\xE6","\xC6"],KeyR:["p","P","\u03C0","\u220F"],KeyS:["o","O","\xF8","\xD8"],KeyT:["y","Y","\xA5","\xC1"],KeyU:["g","G","\xA9","\u02DD"],KeyV:["k","K","\u02DA","\uF8FF"],KeyW:[",","<","\u2264","\xAF"],KeyX:["q","Q","\u0153","\u0152"],KeyY:["f","F","\u0192","\xCF"],KeyZ:[";",":","\u2026","\xDA"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["[","{","\u201C","\u201D"],Equal:["]","}","\u2018","\u2019"],BracketLeft:["/","?","\xF7","\xBF"],BracketRight:["=","+","\u2260","\xB1"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:["s","S","\xDF","\xCD"],Quote:["-","_","\u2013","\u2014"],Backquote:["`","~","`","`"],Comma:["w","W","\u2211","\u201E"],Period:["v","V","\u221A","\u25CA"],Slash:["z","Z","\u03A9","\xB8"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},mh={id:"apple.en-intl",displayName:"English (international)",virtualLayout:"qwerty",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u0131"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\xCE"],KeyE:["e","E","\xB4","\xB4"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\u02DD"],KeyH:["h","H","\u02D9","\xD3"],KeyI:["i","I","\u02C6","\u02C6"],KeyJ:["j","J","\u2206","\xD4"],KeyK:["k","K","\u02DA","\uF8FF"],KeyL:["l","L","\xAC","\xD2"],KeyM:["m","M","\xB5","\xC2"],KeyN:["n","N","\u02DC","\u02DC"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE","\u2030"],KeyS:["s","S","\xDF","\xCD"],KeyT:["t","T","\u2020","\u02C7"],KeyU:["u","U","\xA8","\xA8"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\u02DB"],KeyY:["y","Y","\xA5","\xC1"],KeyZ:["z","Z","\u03A9","\xB8"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["-","_","\u2013","\u2014"],Equal:["=","+","\u2260","\xB1"],BracketLeft:["[","{","\u201C","\u201D"],BracketRight:["]","}","\u2018","\u2019"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:[";",":","\u2026","\xDA"],Quote:["'",'"',"\xE6","\xC6"],Backquote:["`","\u02DC","`","`"],Comma:[",","<","\u2264","\xAF"],Period:[".",">","\u2265","\u02D8"],Slash:["/","?","\xF7","\xBF"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},d0={id:"windows.en-intl",displayName:"English (international)",platform:"windows",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","\xE1","\xC1"],KeyB:["b","B","",""],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\xE9","\xC9"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","\xED","\xCD"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","\xF8","\xD8"],KeyM:["m","M","\xB5",""],KeyN:["n","N","\xF1","\xD1"],KeyO:["o","O","\xF3","\xD3"],KeyP:["p","P","\xF6","\xD6"],KeyQ:["q","Q","\xE4","\xC4"],KeyR:["r","R","\xAE",""],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\xFE","\xDE"],KeyU:["u","U","\xFA","\xDA"],KeyV:["v","V","",""],KeyW:["w","W","\xE5","\xC5"],KeyX:["x","X","",""],KeyY:["y","Y","\xFC","\xDC"],KeyZ:["z","Z","\xE6","\xC6"],Digit1:["1","!","\xA1","\xB9"],Digit2:["2","@","\xB2",""],Digit3:["3","#","\xB3",""],Digit4:["4","$","\xA4","\xA3"],Digit5:["5","%","\u20AC",""],Digit6:["6","^","\xBC",""],Digit7:["7","&","\xBD",""],Digit8:["8","*","\xBE",""],Digit9:["9","(","\u2018",""],Digit0:["0",")","\u2019",""],Space:[" "," ","",""],Minus:["-","_","\xA5",""],Equal:["=","+","\xD7","\xF7"],BracketLeft:["[","{","\xAB",""],BracketRight:["]","}","\xBB",""],Backslash:["\\","|","\xAC","\xA6"],Semicolon:[";",":","\xB6","\xB0"],Quote:["'",'"',"\xB4","\xA8"],Backquote:["`","~","",""],Comma:[",","<","\xE7","\xC7"],Period:[".",">","",""],Slash:["/","?","\xBF",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}},f0={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},Am={id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","\u2021","\u03A9"],KeyB:["b","B","\xDF","\u222B"],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\xEA","\xCA"],KeyF:["f","F","\u0192","\xB7"],KeyG:["g","G","\uFB01","\uFB02"],KeyH:["h","H","\xCC","\xCE"],KeyI:["i","I","\xEE","\xEF"],KeyJ:["j","J","\xCF","\xCD"],KeyK:["k","K","\xC8","\xCB"],KeyL:["l","L","\xAC","|"],KeyM:[",","?","\u221E","\xBF"],KeyN:["n","N","~","\u0131"],KeyO:["o","O","\u0153","\u0152"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xAE","\u201A"],KeyS:["s","S","\xD2","\u2211"],KeyT:["t","T","\u2020","\u2122"],KeyU:["u","U","\xBA","\xAA"],KeyV:["v","V","\u25CA","\u221A"],KeyW:["z","Z","\xC2","\xC5"],KeyX:["x","X","\u2248","\u2044"],KeyY:["y","Y","\xDA","\u0178"],KeyZ:["w","W","\u2039","\u203A"],Digit1:["&","1","\uF8FF","\xB4"],Digit2:["\xE9","2","\xEB","\u201E"],Digit3:['"',"3","\u201C","\u201D"],Digit4:["'","4","\u2018","\u2019"],Digit5:["(","5","{","["],Digit6:["\xA7","6","\xB6","\xE5"],Digit7:["\xE8","7","\xAB","\xBB"],Digit8:["!","8","\xA1","\xDB"],Digit9:["\xE7","9","\xC7","\xC1"],Digit0:["\xE0","0","\xF8","\xD8"],Space:[" "," "," "," "],Minus:[")","\xB0","}","]"],Equal:["-","_","\u2014","\u2013"],BracketLeft:["^","\xA8","\xF4","\xD4"],BracketRight:["$","*","\u20AC","\xA5"],Backslash:["`","\xA3","@","#"],Semicolon:["m","M","\xB5","\xD3"],Quote:["\xF9","%","\xD9","\u2030"],Backquote:["<",">","\u2264","\u2265"],Comma:[";",".","\u2026","\u2022"],Period:[":","/","\xF7","\\"],Slash:["=","+","\u2260","\xB1"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","\u2022","\u0178"],NumpadEqual:["=","=","=","="]}},Mm={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:["<",">","",""]}},km={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:["=","=","=","="]}},Bm={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:["<",">","|",""]}},Dm={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:["<",">","",""]}},Pm={id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["z","Z","\xAB","<"],Digit1:["1","!","|","\xA1"],Digit2:["2",'"',"@","\u215B"],Digit3:["3","\xB7","#","\xA3"],Digit4:["4","$","~","$"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["'","?","\\","\xBF"],Equal:["\xA1","\xBF","\u0303","~"],BracketLeft:["\u0300","\u0302","[","\u030A"],BracketRight:["+","*","]","\u0304"],Backslash:["\xE7","\xC7","}","\u0306"],Semicolon:["\xF1","\xD1","~","\u030B"],Quote:["\u0301","\u0308","{","{"],Backquote:["\xBA","\xAA","\\","\\"],Comma:[",",";","\u2500","\xD7"],Period:[".",":","\xB7","\xF7"],Slash:["-","_","\u0323","\u0307"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}};function h0(a){const y=a.split("+"),b={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:y.pop()};return y.includes("shift")&&(b.shift=!0),y.includes("alt")&&(b.alt=!0),y.includes("ctrl")&&(b.ctrl=!0),y.includes("cmd")&&(b.cmd=!0),y.includes("win")&&(b.win=!0),y.includes("meta")&&(b.meta=!0),b}function ku(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]"},Ad=[],Md;function gh(){switch(Be()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function Fs(a){(!a.platform||a.platform===gh())&&Ad.push(a)}function Nm(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,re]of Object.entries(y.mapping)){if(re[0]===a)return E.key=`[${ee}]`,E;if(re[1]===a)return E.shift=!0,E.key=`[${ee}]`,E;if(re[2]===a)return E.alt=!0,E.key=`[${ee}]`,E;if(re[3]===a)return E.shift=!0,E.alt=!0,E.key=`[${ee}]`,E}return E.key=(b=Om[a])!=null?b:"",E}function Rm(a){if(a.code)return a;const y=Object.entries(kd().mapping);let b=!1,E=!1,ee="";for(let re=0;re<4;re++){for(const[oe,pe]of y)if(pe[re]===a.key){ee=oe,re===3?(b=!0,E=!0):re===2?b=!0:re===1&&(E=!0);break}if(ee)break}return new KeyboardEvent(a.type,me(xe({},a),{altKey:b,shiftKey:E,code:ee}))}function Fm(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 Ad)((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);Ad.sort((ee,re)=>re.score-ee.score)}function _m(a){Md=Ad.find(y=>a.startsWith(y.locale))}function kd(){return Md!=null?Md:Ad[0]}function zm(){switch(gh()){case"apple":return mh;case"windows":return d0;case"linux":return f0}return mh}switch(gh()){case"apple":Fs(mh),Fs(Am),Fs(Im),Fs(Lm);break;case"windows":Fs(d0),Fs(Mm),Fs(Tm),Fs(Bm);break;case"linux":Fs(f0),Fs(km),Fs(Pm),Fs(Dm);break}Fs(Em);function vh(a){var y;const b=/macos|ios/.test(Be()),E=a.split("+");let ee="";for(const re of E)ee&&(ee+=b?"\u2009":'<span class="ML__shortcut-join">+</span>'),re.startsWith("[Key")?ee+=re.slice(4,5):re.startsWith("Key")?ee+=re.slice(3,4):re.startsWith("[Digit")?ee+=re.slice(6,7):re.startsWith("Digit")?ee+=re.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"}[re.toLowerCase()])!=null?y:re.toUpperCase();return ee}function wf(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 Fc(a){const y={alt:!1,control:!1,shift:!1,meta:!1};return(a instanceof MouseEvent||a instanceof PointerEvent||a instanceof TouchEvent||a instanceof KeyboardEvent)&&(a.altKey&&(y.alt=!0),a.ctrlKey&&(y.control=!0),a.metaKey&&(y.meta=!0),a.shiftKey&&(y.shift=!0)),y}function Hm(a,y){return!a&&y||a&&!y?!1:!a||!y?!0:a.alt===y.alt&&a.control===y.control&&a.shift===y.shift&&a.meta===y.meta}var Km=new Set(["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"]);function Sf(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:Km.has(a.code)}function Cf(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var wl=class Yl{static get scrim(){return Yl._scrim||(Yl._scrim=new Yl),Yl._scrim}static open(y){Yl.scrim.open(y)}static close(){Yl.scrim.close()}static get state(){return Yl.scrim.state}static get element(){return Yl.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=Cf();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 re=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${re+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:re}=this;re.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),re.remove(),document.body.style.overflow=(y=this.savedOverflow)!=null?y:"",document.body.style.marginRight=(b=this.savedMarginRight)!=null?b:"",Cf()!==this.savedActiveElement&&((ee=(E=this.savedActiveElement)==null?void 0:E.focus)==null||ee.call(E)),re.innerHTML="",this.state="closed"}handleEvent(y){this.lightDismiss&&(y.target===this._element&&y.type==="click"?(this.close(),y.preventDefault(),y.stopPropagation()):y.target===document&&(y.type==="touchmove"||y.type==="scroll")&&(this.close(),y.preventDefault(),y.stopPropagation()))}};function Wm(a,y,b){let E=null,ee=null,re=!1,oe=!1,pe=!1;const ve=new AbortController,be=ve.signal;return a.addEventListener("keydown",Ie=>{if(re||Ie.key==="Process"||Ie.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(Ie.code)){E=null;return}E=Ie,ee=null,b.onKeystroke(Ie)?a.textContent="":E=null},{capture:!0,signal:be}),a.addEventListener("keypress",Ie=>{re||(E&&ee&&b.onKeystroke(E),ee=Ie)},{capture:!0,signal:be}),a.addEventListener("compositionstart",Ie=>{a.textContent="",re=!0,b.onCompositionStart(Ie.data)},{capture:!0,signal:be}),a.addEventListener("compositionupdate",Ie=>{re&&b.onCompositionUpdate(Ie.data)},{capture:!0,signal:be}),a.addEventListener("compositionend",Ie=>{a.textContent="",re&&(re=!1,b.onCompositionEnd(Ie.data))},{capture:!0,signal:be}),a.addEventListener("beforeinput",Ie=>Ie.stopImmediatePropagation(),{signal:be}),a.addEventListener("input",Ie=>{var Ke;if(!re&&(a.textContent="",Ie.inputType!=="insertCompositionText")){if(Ie.inputType==="insertFromPaste"){Ie.preventDefault(),Ie.stopPropagation();return}b.onInput((Ke=Ie.data)!=null?Ke:""),Ie.preventDefault(),Ie.stopPropagation()}},{signal:be}),a.addEventListener("paste",Ie=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(Ie)||Ie.preventDefault(),Ie.stopImmediatePropagation()},{signal:be}),a.addEventListener("cut",Ie=>b.onCut(Ie),{capture:!0,signal:be}),a.addEventListener("copy",Ie=>b.onCopy(Ie),{capture:!0,signal:be}),a.addEventListener("blur",Ie=>{var Ke,ht;if(((ht=(Ke=Ie.relatedTarget)==null?void 0:Ke._mathfield)==null?void 0:ht.element)===y){a.focus({preventScroll:!0}),Ie.preventDefault(),Ie.stopPropagation();return}const Rt=wl.state;if(Rt==="open"||Rt==="opening"){Ie.preventDefault(),Ie.stopPropagation();return}if(Ie.relatedTarget===Ie.target.getRootNode().host){Ie.preventDefault(),Ie.stopPropagation();return}pe||oe||(pe=!0,E=null,ee=null,b.onBlur(),pe=!1)},{capture:!0,signal:be}),a.addEventListener("focus",Ie=>{pe||oe||(oe=!0,b.onFocus(),oe=!1)},{capture:!0,signal:be}),{dispose:()=>ve.abort(),cancelComposition:()=>{re&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!oe&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>Cf()===a,setAriaLabel:Ie=>a.setAttribute("aria-label",Ie),setValue:Ie=>{var Ke;a.textContent=Ie,a.style.left="-1000px",(Ke=window.getSelection())==null||Ke.selectAllChildren(a)},moveTo:(Ie,Ke)=>{a.style.top=`${Ke}px`,a.style.left=`${Ie}px`}}}function Lu(a){var y;if(!a||!Sf(a))return"";let b;return a.key==="Unidentified"&&a.target&&(b=a.target.value),b=(y=b!=null?b:a.key)!=null?y:a.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(b)&&(b=""),b}function p0(a){a=Rm(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(dt()){const y=Be(),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=ku(h0(p0(b))),ee=ku({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(Be()),cmd:!1,win:!1});for(let re=a.length-1;re>=0;re--)if((a[re].key===E||a[re].key===ee)&&(!a[re].ifMode||a[re].ifMode===y))return a[re].command;return""}function m0(a){let y=a;return Ne(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function Um(a,y){let b=[];if(typeof y=="string"){const re=hd[y];Ne(re)?b=re.slice():re&&b.push(re)}const E=m0(y),ee=new RegExp("^"+E.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const re of a)ee.test(m0(re.command))&&b.push(re.key);return b.map(vh)}function Vm(a,y){if(a.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(a.ifPlatform))throw new Error(`Unexpected platform "${a.ifPlatform}" for keybinding ${a.key}`);if(a.ifLayout!==void 0&&(y.score===0||!a.ifLayout.includes(y.id)))return;const b=h0(a.key);let E=a.ifPlatform;if(b.cmd){if(E&&E!=="macos"&&E!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+E+`"
|
|
|
"cmd" modifier can only be used with macOS or iOS platform.`);E||(E=Be()==="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 me(xe({},a),{key:ku(b)});const ee=Nm(b.key,y);if(!ee)return me(xe({},a),{key:ku(b)});if(ee.shift&&b.shift||ee.alt&&b.alt)throw new Error(`The keybinding ${a.key} (${yh(a.command)}) is conflicting with the key combination ${ku(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,me(xe({},a),{key:ku(ee)})}function yh(a){if(Array.isArray(a)){const y=[...a];return y.shift()+"("+y.map(b=>typeof b=="string"?`"${b}"`:b.toString()).join(", ")+")"}return a}function Gm(a,y){const b=[],E=[];for(const ee of a)try{const re=Vm(ee,y);if(!re)continue;const oe=E.find(pe=>pe.key===re.key&&pe.ifMode===re.ifMode);if(oe)throw new Error(`Ambiguous key binding ${ee.key} (${yh(ee.command)}) matches ${oe.key} (${yh(oe.command)}) with the ${y.displayName} keyboard layout`);E.push(re)}catch(re){re instanceof Error&&b.push(re.message)}return[E,b]}var Ym=class extends ya{constructor(){super("latex")}createAtom(a){return new rs(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"}),Ao(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(Xo(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 re=[];for(const ve of y)ce.test(ve)&&re.push(new rs(ve));let oe=a.at(a.position);if(oe instanceof xd&&(oe=oe.lastChild),!(oe.parent instanceof xd)){const ve=new xd("");oe.parent.addChildAfter(ve,oe),oe=ve.firstChild}const pe=oe.parent.addChildrenAfter(re,oe);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(pe)):pe&&(a.position=a.offsetOf(pe))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function Xm(a){return a.atoms.find(y=>y.type==="latexgroup")}function Ld(a){var y,b;const E=a.atoms.find(ee=>ee.type==="latexgroup");return E?(b=(y=E.body)==null?void 0:y.filter(ee=>ee.type==="latex"))!=null?b:[]:[]}function g0(a,y){var b;let E=0,ee=!1;const re=Number.isFinite(y==null?void 0:y.before)?(b=y==null?void 0:y.before)!=null?b:0:a.lastOffset;for(;E<=re&&!ee;){const ve=a.at(E);ee=ve instanceof rs&&ve.isSuggestion,ee||E++}if(!ee)return[void 0,void 0];let oe=E,pe=!1;for(;oe<=re&&!pe;){const ve=a.at(oe);pe=!(ve instanceof rs&&ve.isSuggestion),pe||oe++}return[E-1,oe-1]}new Ym;function Ef(a){const y=Ld(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 Bd(a,y){var b;const{model:E}=a;Ef(a);for(const Ie of Ld(E))Ie.isError=!1;if(!E.selectionIsCollapsed||a.options.popoverPolicy==="off"){Du(a);return}const ee=[];let re=E.at(E.position);for(;re&&re instanceof rs&&/^[a-zA-Z\*]$/.test(re.value);)re=re.leftSibling;if(re&&re instanceof rs&&re.value==="\\")for(ee.push(re),re=re.rightSibling;re&&re instanceof rs&&/^[a-zA-Z\*]$/.test(re.value);)ee.push(re),re=re.rightSibling;const oe=ee.map(Ie=>Ie.value).join(""),pe=Ht(a,oe);if(pe.length===0){if(/^\\[a-zA-Z\*]+$/.test(oe))for(const Ie of ee)Ie.isError=!0;Du(a);return}const ve=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=ve<0?pe.length-1:ve%pe.length;const be=pe[a.suggestionIndex];if(be!==oe){const Ie=ee[ee.length-1];Ie.parent.addChildrenAfter([...be.slice(oe.length-be.length)].map(Ke=>new rs(Ke,{isSuggestion:!0})),Ie),_c(a,{interactive:!0})}Jm(a,pe)}function v0(a){const[y,b]=g0(a,{before:a.position});if(y===void 0||b===void 0)return!1;let E=!1;return a.getAtoms([y,b]).forEach(ee=>{ee.isSuggestion&&(ee.isSuggestion=!1,E=!0)}),E}function Bu(a,y="accept",b){var E,ee;Du(a);const re=Xm(a.model);if(!re)return!1;if(y==="accept-suggestion"||y==="accept-all"){const be=Ld(a.model).filter(Ie=>Ie.isSuggestion);if(be.length!==0){for(const Ie of be)Ie.isSuggestion=!1;a.model.position=a.model.offsetOf(be[be.length-1])}if(y==="accept-suggestion")return be.length!==0}const pe=Ld(a.model).filter(be=>!be.isSuggestion).map(be=>be.value).join(""),ve=re.leftSibling;return re.parent.removeChild(re),a.model.position=a.model.offsetOf(ve),a.switchMode((E=b==null?void 0:b.mode)!=null?E:"math"),y==="reject"||(ya.insert(a.model,pe,{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 Af(a){var y;let b=document.getElementById(a);return b?b.dataset.refcount=Number(Number.parseInt((y=b.dataset.refcount)!=null?y:"0")+1).toString():(b=document.createElement("div"),b.setAttribute("aria-hidden","true"),b.dataset.refcount="1",b.id=a,document.body.append(b)),b}function bh(a){var y;const b=document.getElementById(a);if(!b)return;const E=Number.parseInt((y=b.getAttribute("data-refcount"))!=null?y:"0");E<=1?b.remove():b.dataset.refcount=Number(E-1).toString()}function Qm(a,y){const b=new Na({from:a.context}),E=new Ar({mode:"math",type:"root",body:Jo(y,{context:b})}),ee=gu(Cd(new ei(E.render(b),{classes:"ML__base"}),b));return vu(ee,{classes:"ML__latex"}).toMarkup()}function Jm(a,y){var b;if(y.length===0){Du(a);return}let E="";for(const[re,oe]of y.entries()){const pe=oe,ve=Qm(a,oe),be=Um(a.keybindings,pe).join("<br>");E+=`<li role="button" data-command="${pe}" ${re===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${pe}</span><span class="ML__popover__command">${ve}</span>`,be&&(E+=`<span class="ML__popover__keybinding">${be}</span>`),E+="</li>"}const ee=qm(a,`<ul>${E}</ul>`);xh()&&((b=ee.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var re;ee&&!xh()&&(ee.classList.add("is-visible"),Mf(a),(re=ee.querySelector(".ML__popover__current"))==null||re.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function xh(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function Mf(a,y){var b;if(!a.element||a.element.mathfield!==a||!xh())return;if(((b=a.model.at(a.model.position))==null?void 0:b.type)!=="latex"){Du(a);return}if(y!=null&&y.deferred){setTimeout(()=>Mf(a),32);return}const E=bl(a.field);if(!E)return;const ee=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,re=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,oe=window.innerWidth-document.documentElement.clientWidth,pe=window.innerHeight-document.documentElement.clientHeight,ve=window.mathVirtualKeyboard.boundingRect.height,be=document.getElementById("mathlive-suggestion-popover");E.x+be.offsetWidth/2>re-oe?be.style.left=`${re-be.offsetWidth-oe}px`:E.x-be.offsetWidth/2<0?be.style.left="0":be.style.left=`${E.x-be.offsetWidth/2}px`;const Ie=E.y-E.height;ee-pe-ve-E.y<Ie?(be.classList.add("ML__popover--reverse-direction"),be.classList.remove("top-tip"),be.classList.add("bottom-tip"),be.style.top=`${E.y-E.height-be.offsetHeight-15}px`):(be.classList.remove("ML__popover--reverse-direction"),be.classList.add("top-tip"),be.classList.remove("bottom-tip"),be.style.top=`${E.y+15}px`)}function Du(a){a.suggestionIndex=0;const y=document.getElementById("mathlive-suggestion-popover");y&&(y.classList.remove("is-visible"),y.innerHTML="")}function qm(a,y){let b=document.getElementById("mathlive-suggestion-popover");return b||(b=Af("mathlive-suggestion-popover"),ks("suggestion-popover"),ks("core"),b.addEventListener("pointerdown",E=>E.preventDefault()),b.addEventListener("click",E=>{let ee=E.target;for(;ee&&!ee.dataset.command;)ee=ee.parentElement;ee&&(Bu(a,"reject"),ya.insert(a.model,ee.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),a.dirty=!0,a.focus())})),b.innerHTML=window.MathfieldElement.createHTML(y),b}function $m(){document.getElementById("mathlive-suggestion-popover")&&(bh("mathlive-suggestion-popover"),x("suggestion-popover"),x("core"))}function eg(){const a=String(new Error().stack).replace(/^Error.*\n/,"").split(`
|
|
|
`);if(a.length===0)return console.error(`Can't use relative paths to specify assets location because the sourcefile location could not be determined (unexpected stack trace format "${new Error().stack}").`),"";let y=a[1],b=y.match(/http.*\.ts[\?:]/);return b&&(y=a[2]),b=y.match(/(https?:.*):[0-9]+:[0-9]+/),b||(b=y.match(/at (.*(\.ts))[\?:]/),b||(b=y.match(/at (.*(\.mjs|\.js))[\?:]/))),b?b[1]:(console.error(a),console.error(`Can't use relative paths to specify assets location because the source file location could not be determined (unexpected location "${y}").`),"")}var kf=null,y0,b0,wh=((b0=(y0=globalThis==null?void 0:globalThis.document)==null?void 0:y0.currentScript)==null?void 0:b0.src)||eg();function x0(a){return gc(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(kf===null)try{const y=yield fetch(wh,{method:"HEAD"});y.status===200&&(kf=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${wh}")`)}return new URL(a,kf!=null?kf:wh).href})}function tg(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var _s="not-loaded";function ng(){return gc(this,null,function*(){return _s="not-loaded",Lf()})}function Lf(){return gc(this,null,function*(){var a;if(_s!=="not-loaded")return;if(_s="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){_s="ready";return}if(document.body.classList.remove("ML__fonts-did-not-load"),"fonts"in document){const b=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Typewriter","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"],E=Array.from(document.fonts).map(oe=>oe.family);if(b.every(oe=>E.includes(oe))){_s="ready";return}if(!window.MathfieldElement.fontsDirectory){_s="not-loaded";return}const ee=yield x0(window.MathfieldElement.fontsDirectory);if(!ee){document.body.classList.add("ML__fonts-did-not-load"),_s="error";return}const re=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(oe=>tg(oe[0].replace(/-[a-zA-Z]+$/,""),`${ee}/${oe[0]}`,oe[1]));try{(yield Promise.all(re.map(pe=>{try{return pe.load()}catch(ve){}}))).forEach(pe=>document.fonts.add(pe)),_s="ready";return}catch(oe){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ee}"`,{cause:oe}),document.body.classList.add("ML__fonts-did-not-load")}_s="error"}})}function rg(a){let y=0;for(let b=0;b<a.length;b++)y=y*31+a.charCodeAt(b),y=y|0;return Math.abs(y)}function Ao(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{Ns(a)&&a.dirty&&(a.atomBoundsCache=new Map,_c(a,y),a.atomBoundsCache=void 0)})))}function ig(a,y){var b;y=y!=null?y:{};const E=new Na({from:me(xe({},a.context),{atomIdsSettings:{seed:y.forHighlighting?rg(Ar.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 vu(Cd(ee,E),{classes:a.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function w0(a,y){const{model:b}=a;b.root.caret=void 0,b.root.isSelected=!1,b.root.containsCaret=!0;for(const ee of b.atoms)ee.caret=void 0,ee.isSelected=!1,ee.containsCaret=!1;if(b.selectionIsCollapsed){const ee=b.at(b.position);ee.caret=a.model.mode;let re=ee.parent;for(;re;)re.containsCaret=!0,re=re.parent}else{const ee=b.getAtoms(b.selection,{includeChildren:!0});for(const re of ee)re.isSelected=!0}return ig(a,y).toMarkup()}function _c(a,y){if(!Ns(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(),re=E.classList.contains("ML__focused");re&&!ee?E.classList.remove("ML__focused"):!re&&ee&&E.classList.add("ML__focused");let oe=w0(a,y);const pe=a.element.querySelector("[part=menu-toggle]");if(pe&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?pe.style.display="none":pe.style.display=""),a.model.atoms.length<=1){const ve=a.options.contentPlaceholder;ve&&(oe+=`<span part=placeholder class="ML__content-placeholder">${qo(ve)}</span>`)}E.innerHTML=window.MathfieldElement.createHTML(oe),Bf(a,y.interactive),a.dirty=!1}function Bf(a,y){const b=a.field;if(!b)return;for(const pe of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))pe.remove();!(y!=null&&y)&&_s!=="error"&&_s!=="ready"&&setTimeout(()=>{_s==="ready"?Bf(a):setTimeout(()=>Bf(a),128)},32);const E=a.model,ee=b.offsetWidth,re=b.getBoundingClientRect().width;let oe=Math.floor(re)/ee;if(oe=isNaN(oe)?1:oe,E.selectionIsCollapsed){Mf(a,{deferred:!0});let pe=E.at(E.position);for(;pe&&pe.type!=="prompt"&&!(pe.containsCaret&&pe.displayContainsHighlight);)pe=pe.parent;if(pe!=null&&pe.containsCaret&&pe.displayContainsHighlight){const ve=md(a,lc(a,pe),oe);if(ve){ve.left/=oe,ve.right/=oe,ve.top/=oe,ve.bottom/=oe;const be=document.createElement("div");be.classList.add("ML__contains-highlight"),be.style.position="absolute",be.style.left=`${ve.left+1}px`,be.style.top=`${Math.ceil(ve.top)}px`,be.style.width=`${Math.ceil(ve.right-ve.left)}px`,be.style.height=`${Math.ceil(ve.bottom-ve.top)}px`,b.insertBefore(be,b.childNodes[0])}}return}for(const pe of ag(vd(a,{excludeAtomsWithBackground:!0}))){pe.left/=oe,pe.right/=oe,pe.top/=oe,pe.bottom/=oe;const ve=document.createElement("div");ve.classList.add("ML__selection"),ve.style.position="absolute",ve.style.left=`${pe.left}px`,ve.style.top=`${pe.top}px`,ve.style.width=`${Math.ceil(pe.right-pe.left)}px`,ve.style.height=`${Math.ceil(pe.bottom-pe.top-1)}px`,b.insertBefore(ve,b.childNodes[0])}}function ag(a){let y=[];for(const b of a){let E=!1;for(const ee of y)if(b.left===ee.left&&b.right===ee.right&&b.top===ee.top&&b.bottom===ee.bottom){E=!0;break}E||y.push(b)}a=y,y=[];for(const b of a){let E=0;for(const ee of a)if(b.left>=ee.left&&b.right<=ee.right&&b.top>=ee.top&&b.bottom<=ee.bottom&&(E+=1,E>1))break;E===1&&y.push(b)}return y}var S0=3,Sl;function Ls(a,y){y=xe({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Sl||(Sl={});for(const b of Object.keys(a))console.assert(!Sl[b],"Selector already defined: ",b),Sl[b]=me(xe({},y),{fn:a[b]})}function Sh(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return Sh(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),Sl[y]}function Iu(a){var y;return(y=Sh(a))==null?void 0:y.target}function og(a,y){var b;if(!y)return!1;let E,ee=[],re=!1,oe=!1;Ne(y)?(E=y[0],ee=y.slice(1)):E=y,E=E.replace(/-\w/g,be=>be[1].toUpperCase());const pe=Sl[E],ve=pe==null?void 0:pe.target;if(ve==="model"){if(!a.isSelectionEditable&&(pe!=null&&pe.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(E)&&(E!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(E)),/^complete/.test(E)||Ef(a),Sl[E].fn(a.model,...ee),Bd(a),oe=!0,re=!0}else if(ve==="virtual-keyboard")oe=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,re=!0;else if(Sl[E]){if(!a.isSelectionEditable&&(pe!=null&&pe.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(E)&&a.flushInlineShortcutBuffer(),oe=Sl[E].fn(a,...ee),re=!0}else throw new Error(`Unknown command "${E}"`);return ve!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||pe!=null&&pe.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),pe!=null&&pe.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),oe&&Ao(a),re}function sg(a,y){var b;if(!a)return!1;a.focus(),vp.keypressVibration&&Je()&&navigator.vibrate(S0);const E=Sh(y);window.MathfieldElement.playSound((b=E==null?void 0:E.audioFeedback)!=null?b:"keypress");const ee=a.executeCommand(y);return a.scrollIntoView(),ee}Ls({performWithFeedback:(a,y)=>sg(a,y)});function lg(a){return Bd(a,{atIndex:a.suggestionIndex+1}),!1}function cg(a){return Bd(a,{atIndex:a.suggestionIndex-1}),!1}Ls({complete:Bu},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),Ls({nextSuggestion:lg,previousSuggestion:cg},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Df="mathlive#virtual-keyboard-message";function Ch(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Df}var ug=class em{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new em),this._singleton}set alphabeticLayout(y){this.sendMessage("update-setting",{alphabeticLayout:y})}set layouts(y){this.sendMessage("update-setting",{layouts:y})}get normalizedLayouts(){return[]}set editToolbar(y){this.sendMessage("update-setting",{editToolbar:y})}set actionKeycap(y){this.sendMessage("update-setting",{actionKeycap:y})}set shiftKeycap(y){this.sendMessage("update-setting",{shiftKeycap:y})}set backspaceKeycap(y){this.sendMessage("update-setting",{backspaceKeycap:y})}set tabKeycap(y){this.sendMessage("update-setting",{tabKeycap:y})}set container(y){throw new Error("Container inside an iframe cannot be changed")}show(y){this.sendMessage("show",y)}hide(y){this.sendMessage("hide",y)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(y){y?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(y){return this.sendMessage("execute-command",{command:y}),!0}updateToolbar(y){this.sendMessage("update-toolbar",y)}update(y){this.sendMessage("update-setting",y)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(y,b,E){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,E){this.listeners[y]&&this.listeners[y].delete(b)}handleEvent(y){if(Ch(y)){if(!yd(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;Iu(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(xe({type:Df,action:y},b),this.targetOrigin)}},C0={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"\u2264"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"\u2265"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"αβγ",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"<i>φ</i>",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"<i>ς</i>",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"<i>ϵ</i>",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"<i>ρ</i>",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"<i>τ</i>",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"<i>υ</i>",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"<i>θ</i>",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"<i>ι</i>",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"<i>ο</i>",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"<i>π</i>",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"<i>α</i>",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"<i>σ</i>",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"<i>δ</i>",class:"MLK__tex hide-shift",insert:"\\delta",aside:"delta",shift:"\\Delta"},{latex:"\\phi",class:"MLK__tex hide-shift",insert:"\\phi",aside:"phi",shift:"\\Phi"},{label:"<i>γ</i>",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"<i>η</i>",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"<i>ξ</i>",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"<i>κ</i>",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"<i>λ</i>",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"<i>ζ</i>",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"<i>χ</i>",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"<i>ψ</i>",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"<i>ω</i>",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"<i>β</i>",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"<i>ν</i>",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"<i>μ</i>",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"<i>ε</i>",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"<i>ϑ</i>",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"<i>ϰ</i>",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"<i>ϖ</i>",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"<i>ϱ</i>",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"∞\u2260\u2208",labelClass:"MLK__tex",tooltip:"keyboard.tooltip.symbols",rows:[[{latex:"\\sin",shift:"\\sin^{-1}",variants:[{class:"small",latex:"\\sinh"},{class:"small",latex:"\\sin^{-1}"},{class:"small",latex:"\\arsinh"}]},"\\ln",{latex:"\\mathrm{abs}",insert:"\\mathrm{abs}\\left(#0\\right)"},{latex:"\\rarr",shift:"\\rArr",variants:[{latex:"\\implies",aside:"implies"},{latex:"\\to",aside:"to"},"\\dashv",{latex:"\\roundimplies",aside:"round implies"}]},{latex:"\\exists",variants:["\\nexists"],shift:"\\nexists"},{latex:"\\in",shift:"\\notin",variants:["\\notin","\\owns"]},"\\cup",{latex:"\\overrightarrow{#@}",shift:"\\overleftarrow{#@}",variants:["\\overleftarrow{#@}","\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"]},{class:"small",latex:"\\lim_{#?}",shift:"\\lim_{x\\to\\infty}",variants:[{class:"small",latex:"\\liminf_{#?}"},{class:"small",latex:"\\limsup_{#?}"}]},"\\exponentialE"],[{latex:"\\cos",shift:"\\cos^{-1}",variants:[{class:"small",latex:"\\cosh"},{class:"small",latex:"\\cos^{-1}"},{class:"small",latex:"\\arcosh"}]},{latex:"\\log",shift:"\\log_{10}",variants:["\\log_{#0}","\\log_{10}"]},"\\left\\vert#0\\right\\vert",{latex:"\\larr",shift:"\\lArr",variants:[{latex:"\\impliedby",aside:"implied by"},{latex:"\\gets",aside:"gets"},"\\lArr","\\vdash",{latex:"\\models",aside:"models"}]},{latex:"\\forall",shift:"\\lnot",variants:[{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"}]},{latex:"\\ni",shift:"\\not\\owns"},"\\cap",{latex:"\\overline{#@}",shift:"\\underline{#@}",variants:["\\overbrace{#@}","\\overlinesegment{#@}","\\overleftrightarrow{#@}","\\overrightarrow{#@}","\\overleftarrow{#@}","\\overgroup{#@}","\\underbrace{#@}","\\underlinesegment{#@}","\\underleftrightarrow{#@}","\\underrightarrow{#@}","\\underleftarrow{#@}","\\undergroup{#@}"]},{class:"hide-shift",latex:"\\int",shift:"\\iint",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\smallint",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\intop","\\iiint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\ointctrclockwise","\\intctrclockwise"]},{latex:"\\pi",shift:"\\tau",variants:["\\tau"]}],[{latex:"\\tan",shift:"\\tan^{-1}",variants:[{class:"small",latex:"\\tanh"},{class:"small",latex:"\\tan^{-1}"},{class:"small",latex:"\\artanh"},{class:"small",latex:"\\arctan"},{class:"small",latex:"\\arctg"},{class:"small",latex:"\\tg"}]},{latex:"\\exp",insert:"\\exp\\left(#0\\right)",variants:["\\exponentialE^{#0}"]},"\\left\\Vert#0\\right\\Vert",{latex:"\\lrArr",shift:"\\leftrightarrow",variants:[{latex:"\\iff",aside:"if and only if"},"\\leftrightarrow","\\leftrightarrows","\\Leftrightarrow",{latex:"^\\biconditional",aside:"biconditional"}]},{latex:"\\vert",shift:"!"},{latex:"#@^{\\complement}",aside:"complement",variants:[{latex:"\\setminus",aside:"set minus"},{latex:"\\smallsetminus",aside:"small set minus"}]},{latex:"\\subset",shift:"\\subseteq",variants:["\\subset","\\subseteq","\\subsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsubseteq","\\supset","\\supseteq","\\supsetneq","\\supsetneqq","\\nsupset","\\nsupseteq"]},{latex:"#@^{\\prime}",shift:"#@^{\\doubleprime}",variants:["#@^{\\doubleprime}","#@\\degree"]},{latex:"\\mathrm{d}",shift:"\\partial",variants:["\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{latex:"\\infty",variants:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"]}],[{label:"[shift]",width:2},{class:"box",latex:",",shift:";",variants:[";","?"]},{class:"box",latex:"\\colon",shift:"\\Colon",variants:[{latex:"\\Colon",aside:"such that",class:"box"},{latex:":",aside:"ratio",class:"box"},{latex:"\\vdots",aside:"",class:"box"},{latex:"\\ddots",aside:"",class:"box"},{latex:"\\ldotp",aside:"low dot",class:"box"},{latex:"\\cdotp",aside:"center dot",class:"box"},{latex:"\\ldots",aside:"low ellipsis",class:"box"},{latex:"\\cdots",aside:"center ellipsis",class:"box"},{latex:"\\therefore",aside:"therefore",class:"box"},{latex:"\\because",aside:"because",class:"box"}]},{class:"box",latex:"\\cdot",aside:"centered dot",shift:"\\ast",variants:["\\circ","\\bigcirc","\\bullet","\\odot","\\oslash","\\circledcirc","\\ast","\\star","\\times","\\doteq","\\doteqdot"]},"[separator]","[left]","[right]",{label:"[backspace]",width:1,class:"action hide-shift"},{label:"[action]",width:1}]]},compact:{label:"compact",rows:[["[+]","[-]","[*]","[/]","[=]","[.]","[(]","[)]","\\sqrt{#0}","#@^{#?}"],["[1]","[2]","[3]","[4]","[5]","[6]","[7]","[8]","[9]","[0]"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]},minimalist:{label:"minimalist",layers:[{style:`
|
|
|
.minimalist-backdrop {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
}
|
|
|
.minimalist-container {
|
|
|
--keycap-height: 40px;
|
|
|
--keycap-max-width: 53px;
|
|
|
--keycap-small-font-size: 12px;
|
|
|
background: var(--keyboard-background);
|
|
|
padding: 20px;
|
|
|
border-top-left-radius: 8px;
|
|
|
border-top-right-radius: 8px;
|
|
|
border: 1px solid var(--keyboard-border);
|
|
|
box-shadow: 0 0 32px rgb(0 0 0 / 30%);
|
|
|
}
|
|
|
`,backdrop:"minimalist-backdrop",container:"minimalist-container",rows:[["+","-","\\times",{latex:"\\frac{#@}{#0}",class:"small"},"=","[.]","(",")",{latex:"\\sqrt{#0}",class:"small"},{latex:"#@^{#?}",class:"small"}],["1","2","3","4","5","6","7","8","9","0"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]}]},"numeric-only":{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",id:"numeric-only",rows:[["7","8","9","[separator]",{label:"[backspace]",width:2}],["4","5","6","[separator]","[separator]","[separator]"],["1","2","3","[separator]","[separator]","[separator]"],["0",{label:"[.]",variants:[]},"-","[separator]","[left]","[right]"]]}},If={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"}]},Dd;function E0(a,y){var b,E,ee;const re=fc.singleton;if(!re)return;const oe=Tu(a),pe=(E=(b=re.getKeycap(oe==null?void 0:oe.id))==null?void 0:b.variants)!=null?E:"";if(typeof pe=="string"&&!A0(pe)||Array.isArray(pe)&&pe.length===0){y==null||y();return}const ve={};let be="";for(const er of fg(pe)){const Qr=k0(er),Jn=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);ve[Jn]=Qr;const[Nr,ri]=Tf(Qr);be+=`<div id=${Jn} class="item ${ri}">${Nr}</div>`}const Ie=document.createElement("div");Ie.setAttribute("aria-hidden","true"),Ie.className="MLK__variant-panel",Ie.style.height="auto";const Ke=Object.keys(ve).length;let ht=5;Ke===1?ht=1:Ke===2||Ke===4?ht=2:Ke===3||Ke===5||Ke===6?ht=3:Ke>=7&&Ke<14&&(ht=4),Ie.style.width=`calc(var(--variant-keycap-length) * ${ht} + 12px)`,Ie.innerHTML=vp.createHTML(be),wl.open({root:(ee=re==null?void 0:re.container)==null?void 0:ee.querySelector(".ML__keyboard"),child:Ie}),Dd=new AbortController;const{signal:Rt}=Dd,Qt=a==null?void 0:a.getBoundingClientRect();if(Qt){Qt.top-Ie.clientHeight<0&&(Ie.style.width="auto",Ke<=6?Ie.style.height="56px":Ke<=12?Ie.style.height="108px":Ke<=18?Ie.style.height="205px":Ie.classList.add("compact"));const er=Math.max(0,Math.min(window.innerWidth-Ie.offsetWidth,(Qt.left+Qt.right-Ie.offsetWidth)/2)),Qr=Qt.top-Ie.clientHeight+5;Ie.style.transform=`translate(${er}px, ${Qr}px)`,Ie.classList.add("is-visible"),requestAnimationFrame(()=>{Ie.addEventListener("pointerup",Jn=>{const Nr=Tu(Jn.target);!(Nr!=null&&Nr.id)||!ve[Nr.id]||(Eh(ve[Nr.id]),Id(),y==null||y(),Jn.preventDefault())},{capture:!0,passive:!1,signal:Rt}),Ie.addEventListener("pointerenter",Jn=>{const Nr=Tu(Jn.target);!(Nr!=null&&Nr.id)||!ve[Nr.id]||Nr.classList.add("is-active")},{capture:!0,signal:Rt}),Ie.addEventListener("pointerleave",Jn=>{const Nr=Tu(Jn.target);!(Nr!=null&&Nr.id)||!ve[Nr.id]||Nr.classList.remove("is-active")},{capture:!0,signal:Rt}),window.addEventListener("pointercancel",()=>{Id(),y==null||y()},{signal:Rt}),window.addEventListener("pointerup",()=>{Id(),y==null||y()},{signal:Rt})})}}function Id(){Dd==null||Dd.abort(),Dd=null,wl.state==="open"&&wl.close()}function dg(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(Ve))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+Ve[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(Ye))y.push({class:"swatch-button",label:'<span style="background:'+Ye[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function A0(a){return If[a]!==void 0}function fg(a){var y;return typeof a!="string"?a:(If[a]||(If[a]=(y=dg(a))!=null?y:[]),If[a])}function hg(a){return typeof a=="string"?a:Object.entries(a).map(([y,b])=>`${y}:${b} !important`).join(";")}function pg(a){return Object.keys(a).map(y=>`${y} {${hg(a[y])}}`).join("")}function Td(a){if(!a)return"";const y=new Na,b=new Ar({mode:"math",type:"root",body:Jo(a,{context:y,args:ee=>ee==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),E=gu(Cd(new ei(b.render(y),{classes:"ML__base"}),y));return vu(E,{classes:"ML__latex"}).toMarkup()}function Pd(a){var y;if(Array.isArray(a))return a.map(E=>Pd(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=>k0(ee)))),(y=b.id)!=null||(b.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[b]}function mg(){var a,y;let E=window.mathVirtualKeyboard.alphabeticLayout;if(E==="auto"){const pe=kd();pe&&(E=pe.virtualLayout),(!E||E==="auto")&&(E=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[at.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~"]},re=(y=ee[E])!=null?y:ee.qwerty,oe=E==="azerty"?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"\xE9"},variants:"2"},{label:"3",shift:{latex:"\xF9"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"\xE8"},variants:"7"},{label:"8",shift:{latex:"\xEA"},variants:"8"},{label:"9",shift:{latex:"\xE7"},variants:"9"},{label:"0",shift:{latex:"\xE0"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const pe of re){const ve=[];for(const be of pe)/[a-z]/.test(be)?ve.push({label:be,class:"hide-shift",shift:{label:be.toUpperCase()},variants:A0(be)?be:void 0}):be==="~"?E!=="dvorak"?ve.push("[backspace]"):ve.push({label:"[backspace]",width:1}):be==="^"?ve.push("[shift]"):be===" "&&ve.push("[separator-5]");oe.push(ve)}return oe.push(["[-]","[+]","[=]",{label:" ",width:1.5},{label:",",shift:";",variants:".",class:"hide-shift"},"[.]","[left]","[right]",{label:"[action]",width:1.5}]),{label:"abc",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.alphabetic",layers:Pd({rows:oe})}}function M0(a){if(a==="alphabetic")return mg();if(typeof a=="string")return console.assert(C0[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),M0(C0[a]);let y;if("rows"in a&&Array.isArray(a.rows)){console.assert(!("layers"in a||"markup"in a),'MathLive 0.98.5: when providing a "rows" property, "layers" and "markup" are ignored');const ee=a,{rows:re}=ee,oe=ot(ee,["rows"]);y=me(xe({},oe),{layers:Pd({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ee=a,{markup:re}=ee,oe=ot(ee,["markup"]);y=me(xe({},oe),{layers:Pd(a.markup)})}else y=xe({},a),"layers"in a?y.layers=Pd(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 re of ee.rows.flat()){Pu(re)&&(b=!0);const oe=re.command;typeof oe=="string"&&["undo","redo","cut","copy","paste"].includes(oe)&&(E=!0)}return(!("displayShiftedKeycaps"in a)||a.displayShiftedKeycaps===void 0)&&(y.displayShiftedKeycaps=b),(!("displayEditToolbar"in a)||a.displayEditToolbar===void 0)&&(y.displayEditToolbar=!E),y}function gg(a,y){var b,E;let ee='<div class="left">';if(a.normalizedLayouts.length>1)for(const[re,oe]of a.normalizedLayouts.entries()){const pe=oe,ve=[re===y?"selected":"layer-switch"];pe.tooltip&&ve.push("MLK__tooltip"),pe.labelClass&&ve.push(...pe.labelClass.split(" ")),ee+=`<div class="${ve.join(" ")}"`,pe.tooltip&&(ee+=" data-tooltip='"+((b=vt(pe.tooltip))!=null?b:pe.tooltip)+"' "),re!==y&&(ee+=`data-layer="${pe.layers[0].id}"`),ee+=`>${(E=pe.label)!=null?E:"untitled"}</div>`}return ee+="</div>",ee}function vg(a,y){let b="";if(a.editToolbar==="none")return"";const ee=[];y.selectionIsCollapsed?ee.push("undo","redo","pasteFromClipboard"):ee.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const re={undo:`<div class='action ${y.canUndo===!1?"disabled":""}'
|
|
|
data-command='"undo"'
|
|
|
data-tooltip='${vt("tooltip.undo")}'>
|
|
|
<svg><use xlink:href='#svg-undo' /></svg>
|
|
|
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
|
|
|
data-command='"redo"'
|
|
|
data-tooltip='${vt("tooltip.redo")}'>
|
|
|
<svg><use xlink:href='#svg-redo' /></svg>
|
|
|
</div>`,cutToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"cutToClipboard"'
|
|
|
data-tooltip='${vt("tooltip.cut to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-cut' /></svg>
|
|
|
</div>
|
|
|
`,copyToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"copyToClipboard"'
|
|
|
data-tooltip='${vt("tooltip.copy to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-copy' /></svg>
|
|
|
</div>
|
|
|
`,pasteFromClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"pasteFromClipboard"'
|
|
|
data-tooltip='${vt("tooltip.paste from clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-paste' /></svg>
|
|
|
</div>
|
|
|
`};return b+=ee.map(oe=>re[oe]).join(""),b}function yg(a){for(const y of a)bg(y)}function bg(a){const y=fc.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]=Tf(b);a.innerHTML=window.MathfieldElement.createHTML(E)}}function xg(){ks("virtual-keyboard"),ks("core"),Lf()}function wg(){x("core"),x("virtual-keyboard")}var Sg=`<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|
|
|
|
|
<symbol id="svg-delete-backward" viewBox="0 0 576 512">
|
|
|
<path d="M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-shift" viewBox="0 0 384 512">
|
|
|
<path d="M2.438 252.3C7.391 264.2 19.06 272 32 272h80v160c0 26.51 21.49 48 48 48h64C250.5 480 272 458.5 272 432v-160H352c12.94 0 24.61-7.797 29.56-19.75c4.953-11.97 2.219-25.72-6.938-34.88l-160-176C208.4 35.13 200.2 32 192 32S175.6 35.13 169.4 41.38l-160 176C.2188 226.5-2.516 240.3 2.438 252.3zM192 86.63L313.4 224H224v208H160V224H70.63L192 86.63z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-commit" viewBox="0 0 512 512">
|
|
|
<path d="M135 432.1l-128-128C2.344 300.3 0 294.2 0 288s2.344-12.28 7.031-16.97l128-128c9.375-9.375 24.56-9.375 33.94 0s9.375 24.56 0 33.94L81.94 264H464v-208C464 42.75 474.8 32 488 32S512 42.75 512 56V288c0 13.25-10.75 24-24 24H81.94l87.03 87.03c9.375 9.375 9.375 24.56 0 33.94S144.4 442.3 135 432.1z"/>
|
|
|
</symbol>
|
|
|
|
|
|
|
|
|
<symbol id="circle-plus" viewBox="0 0 512 512"><path d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344c0 13.3 10.7 24 24 24s24-10.7 24-24V280h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V168c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H168c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"/></symbol>
|
|
|
|
|
|
<symbol id="svg-command" viewBox="0 0 640 512">
|
|
|
<path d="M34.495 36.465l211.051 211.05c4.686 4.686 4.686 12.284 0 16.971L34.495 475.535c-4.686 4.686-12.284 4.686-16.97 0l-7.071-7.07c-4.686-4.686-4.686-12.284 0-16.971L205.947 256 10.454 60.506c-4.686-4.686-4.686-12.284 0-16.971l7.071-7.07c4.686-4.687 12.284-4.687 16.97 0zM640 468v-10c0-6.627-5.373-12-12-12H300c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h328c6.627 0 12-5.373 12-12z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-undo" viewBox="0 0 512 512">
|
|
|
<path d="M20 8h10c6.627 0 12 5.373 12 12v110.625C85.196 57.047 165.239 7.715 256.793 8.001 393.18 8.428 504.213 120.009 504 256.396 503.786 393.181 392.834 504 256 504c-63.926 0-122.202-24.187-166.178-63.908-5.113-4.618-5.354-12.561-.482-17.433l7.069-7.069c4.503-4.503 11.749-4.714 16.482-.454C150.782 449.238 200.935 470 256 470c117.744 0 214-95.331 214-214 0-117.744-95.331-214-214-214-82.862 0-154.737 47.077-190.289 116H180c6.627 0 12 5.373 12 12v10c0 6.627-5.373 12-12 12H20c-6.627 0-12-5.373-12-12V20c0-6.627 5.373-12 12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-redo" viewBox="0 0 512 512">
|
|
|
<path d="M492 8h-10c-6.627 0-12 5.373-12 12v110.625C426.804 57.047 346.761 7.715 255.207 8.001 118.82 8.428 7.787 120.009 8 256.396 8.214 393.181 119.166 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-7.069-7.069c-4.503-4.503-11.749-4.714-16.482-.454C361.218 449.238 311.065 470 256 470c-117.744 0-214-95.331-214-214 0-117.744 95.331-214 214-214 82.862 0 154.737 47.077 190.289 116H332c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h160c6.627 0 12-5.373 12-12V20c0-6.627-5.373-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-left" viewBox="0 0 320 512">
|
|
|
<path d="M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-right" viewBox="0 0 320 512">
|
|
|
<path d="M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-tab" viewBox="0 0 448 512">
|
|
|
<path d="M32 217.1c0-8.8 7.2-16 16-16h144v-93.9c0-7.1 8.6-10.7 13.6-5.7l143.5 143.1c6.3 6.3 6.3 16.4 0 22.7L205.6 410.4c-5 5-13.6 1.5-13.6-5.7v-93.9H48c-8.8 0-16-7.2-16-16v-77.7m-32 0v77.7c0 26.5 21.5 48 48 48h112v61.9c0 35.5 43 53.5 68.2 28.3l143.6-143c18.8-18.8 18.8-49.2 0-68L228.2 78.9c-25.1-25.1-68.2-7.3-68.2 28.3v61.9H48c-26.5 0-48 21.6-48 48zM436 64h-8c-6.6 0-12 5.4-12 12v360c0 6.6 5.4 12 12 12h8c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-paste" viewBox="0 0 512 512"><path d="M160 32c11.6 0 21.3 8.2 23.5 19.2C185 58.6 191.6 64 199.2 64H208c8.8 0 16 7.2 16 16V96H96V80c0-8.8 7.2-16 16-16h8.8c7.6 0 14.2-5.4 15.7-12.8C138.7 40.2 148.4 32 160 32zM64 64h2.7C65 69 64 74.4 64 80V96c0 17.7 14.3 32 32 32H224c17.7 0 32-14.3 32-32V80c0-5.6-1-11-2.7-16H256c17.7 0 32 14.3 32 32h32c0-35.3-28.7-64-64-64H210.6c-9-18.9-28.3-32-50.6-32s-41.6 13.1-50.6 32H64C28.7 32 0 60.7 0 96V384c0 35.3 28.7 64 64 64H192V416H64c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM288 480c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32h96v56c0 22.1 17.9 40 40 40h56V448c0 17.7-14.3 32-32 32H288zM416 165.3L474.7 224H424c-4.4 0-8-3.6-8-8V165.3zM448 512c35.3 0 64-28.7 64-64V235.9c0-12.7-5.1-24.9-14.1-33.9l-59.9-59.9c-9-9-21.2-14.1-33.9-14.1H288c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H448z"/></symbol>
|
|
|
<symbol id="svg-cut" viewBox="0 0 512 512"><path d="M485.6 444.2L333.6 314.9C326.9 309.2 326.1 299.1 331.8 292.4C337.5 285.6 347.6 284.8 354.4 290.5L506.4 419.8C513.1 425.5 513.9 435.6 508.2 442.4C502.5 449.1 492.4 449.9 485.6 444.2zM485.7 67.76C492.5 62.07 502.5 62.94 508.2 69.69C513.9 76.45 513.1 86.55 506.3 92.24L208.5 343.1C218.3 359.7 224 379.2 224 400C224 461.9 173.9 512 112 512C50.14 512 0 461.9 0 400C0 338.1 50.14 288 112 288C141.5 288 168.4 299.4 188.4 318.1L262.2 256L188.4 193.9C168.4 212.6 141.5 224 112 224C50.14 224 0 173.9 0 112C0 50.14 50.14 0 112 0C173.9 0 224 50.14 224 112C224 132.8 218.3 152.3 208.5 168.9L287 235.1L485.7 67.76zM32 112C32 156.2 67.82 192 112 192C156.2 192 192 156.2 192 112C192 67.82 156.2 32 112 32C67.82 32 32 67.82 32 112zM112 480C156.2 480 192 444.2 192 400C192 355.8 156.2 320 112 320C67.82 320 32 355.8 32 400C32 444.2 67.82 480 112 480z"/></symbol>
|
|
|
<symbol id="svg-copy" viewBox="0 0 512 512"><path d="M272 416C263.2 416 256 423.2 256 432V448c0 17.67-14.33 32-32 32H64c-17.67 0-32-14.33-32-32V192c0-17.67 14.33-32 32-32h112C184.8 160 192 152.8 192 144C192 135.2 184.8 128 176 128H63.99c-35.35 0-64 28.65-64 64l.0098 256C0 483.3 28.65 512 64 512h160c35.35 0 64-28.65 64-64v-16C288 423.2 280.8 416 272 416zM502.6 86.63l-77.25-77.25C419.4 3.371 411.2 0 402.7 0H288C252.7 0 224 28.65 224 64v256c0 35.35 28.65 64 64 64h160c35.35 0 64-28.65 64-64V109.3C512 100.8 508.6 92.63 502.6 86.63zM416 45.25L466.7 96H416V45.25zM480 320c0 17.67-14.33 32-32 32h-160c-17.67 0-32-14.33-32-32V64c0-17.67 14.33-32 32-32h96l.0026 64c0 17.67 14.33 32 32 32H480V320z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-right" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-left" viewBox="0 0 512 512"><path d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-trash" viewBox="0 0 448 512">
|
|
|
<path d="M336 64l-33.6-44.8C293.3 7.1 279.1 0 264 0h-80c-15.1 0-29.3 7.1-38.4 19.2L112 64H24C10.7 64 0 74.7 0 88v2c0 3.3 2.7 6 6 6h26v368c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V96h26c3.3 0 6-2.7 6-6v-2c0-13.3-10.7-24-24-24h-88zM184 32h80c5 0 9.8 2.4 12.8 6.4L296 64H152l19.2-25.6c3-4 7.8-6.4 12.8-6.4zm200 432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V96h320v368zm-176-44V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm-80 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm160 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-keyboard-down" viewBox="0 0 576 512"><path d="M64 48c-8.8 0-16 7.2-16 16V240c0 8.8 7.2 16 16 16H512c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64zM0 64C0 28.7 28.7 0 64 0H512c35.3 0 64 28.7 64 64V240c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM159 359c9.4-9.4 24.6-9.4 33.9 0l95 95 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L305 505c-4.5 4.5-10.6 7-17 7s-12.5-2.5-17-7L159 393c-9.4-9.4-9.4-24.6 0-33.9zm1-167c0-8.8 7.2-16 16-16H400c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V192zM120 88h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H120c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H200c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H280c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H360c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H440c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16z"/></symbol>
|
|
|
</svg>`;function Cg(a){a.resetKeycapRegistry(),xg();const y=document.createElement("div");y.className="ML__keyboard";const b=document.createElement("div");b.className="MLK__plate",b.innerHTML=window.MathfieldElement.createHTML(Sg+a.normalizedLayouts.map((oe,pe)=>Eg(a,oe,pe)).join(""));const E=document.createElement("div");E.className="MLK__backdrop",E.appendChild(b),y.appendChild(E),y.addEventListener("pointerdown",Mg,{passive:!1});const ee=y.querySelectorAll(".ML__edit-toolbar");if(ee)for(const oe of ee)oe.addEventListener("click",pe=>{var ve,be;let Ie=pe.target,Ke="";for(;Ie&&!Ke;)Ke=(ve=Ie==null?void 0:Ie.getAttribute("data-command"))!=null?ve:"",Ie=(be=Ie==null?void 0:Ie.parentElement)!=null?be:null;Ke&&a.executeCommand(JSON.parse(Ke))});yg(y.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const re=y.querySelectorAll(".MLK__layer");console.assert(re.length>0,"No virtual keyboards available");for(const oe of re)oe.addEventListener("pointerdown",pe=>pe.preventDefault());return a.currentLayer=a.latentLayer,y}function Eg(a,y,b){const E=[];if(!("layers"in y))return"";for(const ee of y.layers)E.push(`<div tabindex="-1" class="MLK__layer" id="${ee.id}">`),(a.normalizedLayouts.length>1||y.displayEditToolbar)&&(E.push("<div class='MLK__toolbar' role='toolbar'>"),E.push(gg(a,b)),y.displayEditToolbar&&E.push('<div class="ML__edit-toolbar right"></div>'),E.push("</div>")),E.push(Ag(a,ee)),E.push("</div>");return E.join("")}function Ag(a,y){if(typeof y=="string")return y;let b="";if(typeof y.style=="string"?b+=`<style>${y.style}</style>`:typeof y.style=="object"&&(b+=`<style>${pg(y.style)}</style>`),y.backdrop&&(b+=`<div class='${y.backdrop}'>`),y.container&&(b+=`<div class='${y.container}'>`),y.rows){b+="<div class=MLK__rows>";for(const E of y.rows){b+="<div dir='ltr' class=MLK__row>";for(const ee of E)if(ee){const re=a.registerKeycap(ee),[oe,pe]=Tf(ee);/(^|\s)separator/.test(pe)?b+=`<div class="${pe}"`:b+=`<div tabindex="-1" id="${re}" class="${pe}"`,ee.tooltip&&(b+=` data-tooltip="${ee.tooltip}"`),b+=`>${oe}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function Tf(a,y={shifted:!1}){var b,E,ee,re,oe,pe,ve;let be="",Ie=(b=a.class)!=null?b:"";if(y.shifted&&Pu(a)&&(Ie+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?be=Td(a.shift):typeof a.shift=="object"&&(be=a.shift.label?a.shift.label:(E=Td(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?E:""),typeof a.shift=="object"&&(Ie=(re=(ee=a.shift.class)!=null?ee:a.class)!=null?re:"");else{if(be=a.label?a.label:(oe=Td(a.latex||a.insert||"")||a.key)!=null?oe:"",a.shift){let Ke;typeof a.shift=="string"?Ke=Td(a.shift):a.shift.label?Ke=a.shift.label:Ke=(pe=Td(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?pe:"",be+=`<span class="MLK__shift">${Ke}</span>`}a.aside&&(be+=`<aside>${a.aside}</aside>`)}return a.layer&&!/layer-switch/.test(Ie)&&(Ie+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(Ie)||(Ie+=" MLK__keycap"),!/\bw[0-9]+\b/.test(Ie)&&a.width&&(Ie+=(ve={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?ve:""),[be,Ie||"MLK__keycap"]}var zc={"[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 k0(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!zc[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&zc[a.label]&&(b=me(xe(xe({},zc[a.label]),a),{label:zc[a.label].label})),"key"in a&&a.key&&zc[a.key]&&(b=me(xe(xe({},zc[a.key]),a),{key:zc[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var Od;function Mg(a){var y;if(a.button!==0)return;const b=fc.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=Tu(a.target);if(!(ee!=null&&ee.id))return;const re=b.getKeycap(ee.id);if(!re)return;console.assert(a.type==="pointerdown");const oe=new AbortController,pe=oe.signal;ee.classList.add("is-pressed"),ee.addEventListener("pointerenter",Pf(oe),{capture:!0,signal:pe}),ee.addEventListener("pointerleave",Pf(oe),{capture:!0,signal:pe}),ee.addEventListener("pointercancel",Pf(oe),{signal:pe}),ee.addEventListener("pointerup",Pf(oe),{signal:pe}),Pu(re)&&(ee.classList.add("is-active"),b.shiftPressCount++),re.variants&&(Od&&clearTimeout(Od),Od=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),E0(ee,()=>{oe.abort(),ee==null||ee.classList.remove("is-active")}))},300)),a.preventDefault()}function Pf(a){return y=>{const b=Tu(y.target);if(!(b!=null&&b.id))return;const E=fc.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"),Pu(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"),Pu(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted));return}if(y.type==="pointerup"){Od&&clearTimeout(Od),Pu(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"}]):Eh(ee.shift):Eh(ee),E.shiftPressCount===1&&!y.shiftKey&&(E.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function Eh(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=fc.singleton)==null||y.executeCommand(b)}function kg(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 Tu(a){if(!a)return;let y=a;for(;y&&!kg(y);)y=y.parentElement;return y!=null?y:void 0}function Pu(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var fc=class tm{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var y,b,E;this.targetOrigin=window.origin,this.originValidator="none",this._alphabeticLayout="auto",this._layouts=Object.freeze(["default"]),this._editToolbar="default",this._container=(b=(y=window.document)==null?void 0:y.body)!=null?b:null,this._visible=!1,this._rebuilding=!1,this.observer=new ResizeObserver(ee=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(E=window.top)==null||E.addEventListener("message",this)}catch(ee){window.addEventListener("message",this)}document.body.addEventListener("focusin",ee=>{const re=ee.target;re!=null&&re.isConnected&&setTimeout(()=>{const oe=L0();oe&&!oe.readOnly&&oe.mathVirtualKeyboardPolicy==="auto"&&pt()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ee=>{ee.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{L0()||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=>M0(ee))}get normalizedLayouts(){return this._normalizedLayouts||this.updateNormalizedLayouts(this._layouts),this._normalizedLayouts}get editToolbar(){return this._editToolbar}set editToolbar(y){this._editToolbar=y,this.rebuild()}get container(){return this._container}set container(y){this._container=y,this.rebuild()}static get singleton(){if(this._singleton===void 0)try{this._singleton=new tm}catch(y){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(y,b,E){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,E){this.listeners[y]&&this.listeners[y].delete(b)}get element(){return this._element}set element(y){var b;this._element!==y&&((b=this._element)==null||b.remove(),this._element=y)}get visible(){return this._visible}set visible(y){y?this.show():this.hide()}get boundingRect(){var y;if(!this._visible)return new DOMRect;const b=(y=this._element)==null?void 0:y.getElementsByClassName("MLK__plate")[0];return b?b.getBoundingClientRect():new DOMRect}adjustBoundingRect(){var y,b;const E=this.boundingRect.height;if(this.container===document.body){(y=this._element)==null||y.style.setProperty("--_keyboard-height",`calc(${E}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const ee=E-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${ee}px)`:`${ee}px`}else(b=this._element)==null||b.style.setProperty("--_keyboard-height",`${E}px`)}rebuild(){if(this._rebuilding||!this._element)return;this._rebuilding=!0;const y=this.currentLayer;requestAnimationFrame(()=>{this._rebuilding=!1,this._element&&(this._element.remove(),this._element=void 0),this.visible&&(this.buildAndAttachElement(),this.currentLayer=y,this.render(),this.adjustBoundingRect(),this._element.classList.add("is-visible"))})}render(){if(!this._element)return;const y=this.getLayer(this.currentLayer);this._element.classList.toggle("backdrop-is-transparent",!!(y&&(y.backdrop||y.container)));const b=this._element.querySelectorAll(".MLK__layer.is-visible .MLK__keycap, .MLK__layer.is-visible .action, .fnbutton, .MLK__layer.is-visible .bigfnbutton, .MLK__layer.is-visible .shift");if(b)for(const E of b){const ee=this.getKeycap(E.id);if(ee){const[re,oe]=Tf(ee,{shifted:this.isShifted});E.innerHTML=window.MathfieldElement.createHTML(re),E.className=oe}}}show(y){var b;if(this._visible)return;const E=this.container;if(E&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const ee=this._element.getElementsByClassName("MLK__plate")[0];if(ee&&this.observer.observe(ee),E===window.document.body){const re=E.style.paddingBottom;this.originalContainerBottomPadding=re;const oe=ee.offsetHeight-1;E.style.paddingBottom=re?`calc(${re} + ${oe}px)`:`${oe}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),(b=this._element)==null||b.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.currentLayer=this.latentLayer}this._visible=!0,y!=null&&y.animate?requestAnimationFrame(()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",()=>{var ee;return(ee=this._element)==null?void 0:ee.classList.remove("animate")},{once:!0}),this._element.classList.add("is-visible"),this.stateChanged())}):(this._element.classList.add("is-visible"),this.stateChanged())}}hide(y){var b;const E=this.container;if(E&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const ee=this._element.getElementsByClassName("MLK__plate")[0];ee&&this.observer.unobserve(ee),window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("keydown",this,{capture:!0}),window.removeEventListener("keyup",this,{capture:!0}),window.removeEventListener("contextmenu",this,{capture:!0}),Id(),wg(),(b=this._element)==null||b.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(E.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var y,b;return(b=(y=this.element)==null?void 0:y.offsetHeight)!=null?b:0}buildAndAttachElement(){var y;console.assert(!this.element),this.element=Cg(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",b=>{b.shiftKey||((b.ctrlKey||b.button===2)&&E0(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(Ch(y)){if(!yd(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,re=Iu(ee);if(window.top!==void 0&&re!=="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:xe({type:Df,action:y},b)}));return}if(E)E.postMessage(xe({type:Df,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 re of ee)this.dispatchEvent(new KeyboardEvent("keydown",{key:re,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:re,bubbles:!0}))}}stateWillChange(y){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:y},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(y){const b=this._element;if(!b)return;b.classList.toggle("is-math-mode",y.mode==="math"),b.classList.toggle("is-text-mode",y.mode==="text"),b.classList.toggle("can-undo",y.canUndo),b.classList.toggle("can-redo",y.canRedo),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-paste",!0);const E=b.querySelectorAll(".ML__edit-toolbar");if(E)for(const ee of E)ee.innerHTML=vg(this,y)}update(y){this._style=y.style,this.updateToolbar(y)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(y){let b,E=[],ee=Iu(y);return Ne(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ee=Iu(y)),E=y.slice(1)):b=y,b=b.replace(/-\w/g,re=>re[1].toUpperCase()),ee==="virtual-keyboard"?Sl[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 L0(){var a,y;let b=Cf(),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(dt()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=fc.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>ug.singleton,configurable:!0});function Of(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const E=a.scriptDepth;if(Ne(E))y.scriptDepth=[E[0],E[1]];else if(typeof E=="number")y.scriptDepth=[E,E];else if(typeof E=="string"){const[re,oe]=E.split(",").map(pe=>parseInt(pe.trim()));y.scriptDepth=[re,oe]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let ee=a.mathVirtualKeyboardPolicy.toLowerCase();if(ee==="sandboxed"){if(window!==window.top){const re=fc.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>re})}ee="manual"}y.mathVirtualKeyboardPolicy=ee;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?at.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=ct(a.macros);break;default:Ne(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=xe({},a[b]):y[b]=a[b]}return y}function Hc(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:Ne(a[ee])?E[ee]=[...a[ee]]:typeof a[ee]=="object"&&!(a[ee]instanceof Element)&&ee!=="computeEngine"?E[ee]=xe({},a[ee]):E[ee]=a[ee];return typeof y=="string"?E[y]:E}function Nf(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:Lt,backgroundColorMap:nt,letterShapeStyle:at.locale.startsWith("fr")?"french":"tex",minFontScale:0,smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,isImplicitFunction:a=>["\\sin","\\cos","\\tan","\\arcsin","\\arccos","\\arctan","\\arcsec","\\arccsc","\\arsinh","\\arcosh","\\artanh","\\arcsech","\\arccsch","\\arg","\\ch","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\sec","\\sinh","\\sh","\\tanh","\\tg","\\th","\\lg","\\lb","\\log","\\ln"].includes(a),mathModeSpace:"",placeholderSymbol:"\u25A2",contentPlaceholder:"",popoverPolicy:"auto",environmentPopoverPolicy:"off",keybindings:lh,inlineShortcuts:ff,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:sh,value:""}}function B0(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function hc(a,y){!a||!y||(Ne(a)?a.forEach(b=>hc(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),hc(a.body,y),hc(a.above,y),hc(a.below,y),hc(a.subscript,y),hc(a.superscript,y)))}function Ah(a,y,b,E){function ee(oe,pe){for(const ve of re)if(ve.style[oe]!==pe)return!1;return!0}if(y=a.normalizeRange(y),y[0]===y[1])return!1;const re=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=dl),b.variant&&ee("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ee("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const oe of re)oe.applyStyle(b);return!0}function Lg(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 jl(y,{mode:b.mode});ee.caret=E,b.parent.addChildAfter(ee,b),a.position+=1}}function Bg(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}it(["math","displaymath"],Ys),it("center",Ys),Ot("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 wa("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),Mt("array","{columns:colspec}",(a,y,b,E)=>new wa(a,Mh(y),b,{columns:E[0],mathstyleName:"textstyle"})),Mt(["equation","equation*","subequations"],"",(a,y,b)=>new wa(a,Mh(y),b,{columns:[{align:"c"}]})),Mt(["multline","multline*"],"",Ys),Mt(["align","align*","aligned","eqnarray"],"",Ys),Mt("split","",Ys),Mt(["gather","gathered"],"",Ys),Mt(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",Ys),Mt(["smallmatrix","smallmatrix*"],"[columns:colspec]",Ys),Mt(["cases","dcases","rcases"],"",Ys);function Dg(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function Mh(a,y=1){return Dg(a)?Array(y).fill([[new Ar({type:"first"}),new ia]]):a.map(b=>b.length===0?[[new Ar({type:"first"})]]:b.map(E=>E.length===0?[new Ar({type:"first"})]:(E[0].type!=="first"&&E.unshift(new Ar({type:"first"})),E)))}function Ys(a,y=[[[]]],b=[],E=[]){switch(y=Mh(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new wa(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new wa(a,y,b,{mathstyleName:"textstyle"});case"center":return new wa(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new wa(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new wa(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new wa(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new wa(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:Kc(E[0])});case"bmatrix":case"bmatrix*":return new wa(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Kc(E[0])});case"Bmatrix":case"Bmatrix*":return new wa(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Kc(E[0])});case"vmatrix":case"vmatrix*":return new wa(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Kc(E[0])});case"Vmatrix":case"Vmatrix*":return new wa(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Kc(E[0])});case"matrix":case"matrix*":return new wa(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Kc(E==null?void 0:E[0])});case"smallmatrix":case"smallmatrix*":return new wa(a,y,b,{mathstyleName:"scriptstyle",columns:Kc(E==null?void 0:E[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new wa(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 wa(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new wa(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ee=0;for(const pe of y)ee=Math.max(ee,pe.length);const re=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let oe=2;for(;oe<ee;)re.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),oe+=2;return re.push({gap:0}),new wa(a,y,b,{arraycolsep:0,columns:re,minColumns:2})}}return new wa(a,y,b,{mathstyleName:"textstyle"})}function Kc(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 Ig(a,y){let b=a.at(a.position);for(;b&&!(b.parent instanceof wa);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof wa)){const E=a.at(a.position);if(b=E,!b.parent.parent){let ee=a.extractAtoms([a.position,a.lastOffset]),re=a.extractAtoms([0,a.position]);re.length===0&&(re=_f()),ee.length===0&&(ee=_f());let oe;return y.endsWith("column")?(oe=Ys("split",[[re,ee]]),a.root=oe,Wc(oe,0,0)?jc(a,oe,0,0):Wc(oe,0,1)?jc(a,oe,0,1):a.position=a.offsetOf(E)):(oe=Ys("lines",[[re],[ee]]),a.root=oe,Wc(oe,0,0)?jc(a,oe,0,0):Wc(oe,1,0)?jc(a,oe,1,0):a.position=a.offsetOf(E)),[void 0,[0,0]]}if(b.parent instanceof Xa){const ee=b.parent;let re=a.extractAtoms([a.position,a.offsetOf(ee.lastChild)]),oe=a.extractAtoms([a.offsetOf(ee.firstChild),a.position]);oe.length===0&&(oe=_f()),re.length===0&&(re=_f());let pe="pmatrix";const ve=ee.leftDelim,be=ee.rightDelim;ve==="("&&(be===")"||be==="?")?pe="pmatrix":(ve==="["||ve==="\\lbrack")&&(be==="]"||be==="\\rbrack"||be==="?")?pe="bmatrix":ve==="\\vert"&&be==="\\vert"?pe="vmatrix":ve==="\\Vert"&&be==="\\Vert"?pe="Vmatrix":(ve==="{"||ve==="\\lbrace")&&(be==="."||be==="?")&&(pe="cases");const Ie=Ys(pe,y.endsWith("column")?[[oe,re]]:[[oe],[re]]);return ee.parent.addChildBefore(Ie,ee),ee.parent.removeChild(ee),Wc(Ie,0,0)?jc(a,Ie,0,0):y.endsWith("column")?Wc(Ie,0,1)?jc(a,Ie,0,1):a.position=a.offsetOf(b):Wc(Ie,1,0)?jc(a,Ie,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof wa?[b.parent,b.parentBranch]:[void 0,[0,0]]}function Wc(a,y,b){const E=a.getCell(y,b);return!E||E.length!==2?!1:E[1].type==="placeholder"}function Tg(a,y,b,E){const ee=y.getCell(b,E);return ee?[a.offsetOf(ee[0]),a.offsetOf(ee[ee.length-1])]:-1}function jc(a,y,b,E){const ee=Tg(a,y,b,E);typeof ee!="number"&&a.setSelection(ee)}function Rf(a,y,b,E,ee){const re=y.getCell(b,E);re&&a.setPositionHandlingPlaceholder(a.offsetOf(re[ee==="start"?0:re.length-1]))}function Ff(a,y){const[b,[E,ee]]=Ig(a,y);if(b)switch(y){case"after row":b.addRowAfter(E),Rf(a,b,E+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ee),Rf(a,b,E,ee+1,"end");break;case"before row":b.addRowBefore(E),Rf(a,b,E,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ee),Rf(a,b,E,ee,"start");break}}function D0(a){return a.contentWillChange({inputType:"insertText"})?(Ff(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Pg(a){return a.contentWillChange({inputType:"insertText"})?(Ff(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function I0(a){return a.contentWillChange({inputType:"insertText"})?(Ff(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Og(a){return a.contentWillChange({inputType:"insertText"})?(Ff(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),re=ee.type==="array"?ee:a.parentEnvironment;return re.environmentName=y,re.leftDelim=b,re.rightDelim=E,a.contentDidChange({}),!0}function P0(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof wa);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof wa){const E=b.parent,ee=b.parentBranch;let re;switch(y){case"row":if(E.rowCount>1){E.removeRow(ee[0]);const oe=E.getCell(Math.max(0,ee[0]-1),ee[1]);re=a.offsetOf(oe[oe.length-1])}break;case"column":if(E.colCount>E.minColumns){E.removeColumn(ee[1]);const oe=E.getCell(ee[0],Math.max(0,ee[1]-1));re=a.offsetOf(oe[oe.length-1])}break}re&&a.setPositionHandlingPlaceholder(re)}}function Ng(a){return a.contentWillChange({inputType:"deleteContent"})?(P0(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function Rg(a){return a.contentWillChange({inputType:"deleteContent"})?(P0(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}Ls({addRowAfter:D0,addColumnAfter:I0,addRowBefore:Pg,addColumnBefore:Og,removeRow:Ng,removeColumn:Rg,setEnvironment:T0},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function _f(){return[new ia]}var O0=class nm{constructor(y){this.recording=!1,this.model=y,this.reset()}reset(){this.stack=[],this.index=-1,this.lastOp=""}startRecording(){this.recording=!0}stopRecording(){this.recording=!1}canUndo(){return this.index-1>=0}canRedo(){return this.stack.length-1>this.index}stopCoalescing(y){y&&this.index>=0&&(this.stack[this.index].selection=y),this.lastOp=""}undo(){return this.canUndo()?(this.model.setState(this.stack[this.index-1],{silenceNotifications:!1,type:"undo"}),this.index-=1,this.lastOp="",!0):!1}redo(){return this.canRedo()?(this.index+=1,this.model.setState(this.stack[this.index],{silenceNotifications:!1,type:"redo"}),this.lastOp="",!0):!1}pop(){this.canUndo()&&(this.stack.splice(this.index,this.stack.length-this.index),this.index-=1)}snapshot(y){return this.recording?(y&&y===this.lastOp&&this.pop(),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push(this.model.getState()),this.index+=1,this.stack.length>nm.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=y!=null?y:"",!0):!1}};O0.maximumDepth=1e3;var Fg=O0;function kh(a,y,b){if(a.at(y).mode!=="text")return y;const E=b==="backward"?-1:1;let ee;if(ue.test(a.at(y).value)){let re=y,oe;do oe=a.at(re).mode==="text"&&ue.test(a.at(re).value),re+=E;while(a.at(re)&&oe);ee=a.at(re)?re-2*E:re-E}else if(/\s/.test(a.at(y).value)){let re=y;for(;a.at(re)&&a.at(re).mode==="text"&&/\s/.test(a.at(re).value);)re+=E;if(!a.at(re))ee=re-E;else{let oe=!0;do oe=a.at(re).mode==="text"&&!/\s/.test(a.at(re).value),re+=E;while(a.at(re)&&oe);ee=a.at(re)?re-2*E:re-E}}else{let re=y;for(;a.at(re)&&a.at(re).mode==="text"&&!/\s/.test(a.at(re).value);)re+=E;ee=a.at(re)?re:re-E;let oe=!0;for(;a.at(re)&&oe;)oe=a.at(re).mode==="text"&&/\s/.test(a.at(re).value),oe&&(ee=re),re+=E;ee=a.at(re)?re-2*E:re-E}return ee-(E>0?0:1)}function Ou(a,y,b){var E,ee,re,oe,pe,ve,be;const Ie=a.position;(E=b==null?void 0:b.extend)!=null&&E||a.collapseSelection(y);let Ke=a.at(a.position);if(y==="forward"&&(Ke.type==="subsup"?(Ke=Ke.rightSibling,Ke||(Ke=a.at(a.position+1))):Ke=a.at(a.position+1)),!Ke)return a.announce("plonk"),!1;let ht=a.offsetOf(Ke);if(Ke instanceof al)ht=kh(a,ht,y);else if(Ke instanceof rs)if(Ke.isSuggestion)for(console.assert(y==="forward");Ke&&Ke instanceof rs;)Ke.isSuggestion=!1,ht=a.offsetOf(Ke),Ke=Ke.rightSibling;else if(y==="forward"){if(Ke=Ke.rightSibling,!Ke||!(Ke instanceof rs))return a.announce("plonk"),!1;for(;Ke&&Ke instanceof rs&&/[a-zA-Z\*]/.test(Ke.value);)ht=a.offsetOf(Ke),Ke=Ke.rightSibling}else{if(Ke=Ke.leftSibling,!Ke||!(Ke instanceof rs))return a.announce("plonk"),!1;for(;Ke&&Ke instanceof rs&&/[a-zA-Z\*]/.test(Ke.value);)ht=a.offsetOf(Ke),Ke=Ke.leftSibling}else if(y==="forward"&&Ke.type==="mopen"){let Rt=0;do Ke.type==="mopen"?Rt+=1:Ke.type==="mclose"&&(Rt-=1),Ke=Ke.rightSibling;while(!Ke.isLastSibling&&Rt!==0);ht=a.offsetOf(Ke.leftSibling)}else if(y==="backward"&&Ke.type==="mclose"){let Rt=0;do Ke.type==="mopen"?Rt+=1:Ke.type==="mclose"&&(Rt-=1),Ke=Ke.leftSibling;while(!Ke.isFirstSibling&&Rt!==0);ht=a.offsetOf(Ke)}else if(y==="backward")if(Ke.type==="first")for(;ht>0&&Ke.type==="first";)ht-=1,Ke=a.at(ht);else{const Rt=Ke.type;Ke.type==="subsup"&&(ht=a.offsetOf(a.at(ht).leftSibling)),ht-=1;let Qt=(ee=a.at(ht))==null?void 0:ee.type;for(;ht>=0&&Qt===Rt;)((re=a.at(ht))==null?void 0:re.type)==="subsup"?ht=a.offsetOf(a.at(ht).leftSibling):ht-=1,Qt=a.at(ht).type}else{const{type:Rt}=Ke;let Qt=(oe=a.at(ht))==null?void 0:oe.type;const{lastOffset:er}=a;for(;ht<=er&&(Qt===Rt||Qt==="subsup");){for(;((pe=a.at(ht).rightSibling)==null?void 0:pe.type)==="subsup";)ht=a.offsetOf(a.at(ht).rightSibling);ht+=1,Qt=(ve=a.at(ht))==null?void 0:ve.type}ht-=1}if((be=b==null?void 0:b.extend)!=null&&be){if(!a.setSelection(a.anchor,ht))return a.announce("plonk"),!1}else{if(ht===a.position)return a.announce("plonk"),!1;a.position=ht}return a.announce("move",Ie),a.mathfield.stopCoalescingUndo(),!0}function Cl(a,y,b){var E,ee;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[pe,ve]=g0(a);pe!==void 0&&ve!==void 0&&a.deleteAtoms([pe,ve])}if(y==="upward")return zg(a,b);if(y==="downward")return Hg(a,b);if(b.extend){let pe=zf(a,a.position,y);pe<0&&(pe=0),pe>a.lastOffset&&(pe=a.lastOffset);const ve=a.setSelection(a.anchor,pe);return a.mathfield.stopCoalescingUndo(),ve}if(a.selectionIsPlaceholder){a.collapseSelection(y);const pe=Cl(a,y);return a.mathfield.stopCoalescingUndo(),pe}let re=a.position;const oe=re;if(a.collapseSelection(y)?(re=a.position,N0(a,re)||(re=zf(a,re,y))):re=zf(a,re,y),re<0||re>a.lastOffset){let pe=!0;return a.silenceNotifications||(pe=(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),pe&&a.announce("plonk"),pe}return a.setPositionHandlingPlaceholder(re),a.mathfield.stopCoalescingUndo(),a.announce("move",oe),!0}function zf(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||N0(a,y)?y:zf(a,y,b)}function N0(a,y){var b;const E=a.at(y);let ee=E.parent;for(;ee&&!ee.inCaptureSelection;)ee=ee.parent;return!(ee!=null&&ee.inCaptureSelection||(b=E.parent)!=null&&b.skipBoundary&&(!E.isFirstSibling&&E.isLastSibling||E.type==="first")||a.mathfield.hasEditablePrompts&&!E.parentPrompt)}function _g(a,y,b){let E=1/0,ee=0;for(;ee<y.length;ee++){const re=Cu(a.getHTMLElement(y[ee])).right,oe=Math.abs(b-re);if(oe<=E)E=oe;else break}return y[ee-1]}function Hf(a,y,b,E,ee){const re=a.mathfield.hasEditablePrompts,oe=re?b.filter(be=>be.type==="prompt"&&!be.captureSelection):b,pe=Cu(a.mathfield.getHTMLElement(y)).right,ve=a.offsetOf(_g(a.mathfield,oe,pe))-(re?1:0);if(E){const[be,Ie]=a.selection.ranges[0];let Ke;ve<(ee==="up"?be:Ie)?Ke={ranges:[[ve,Ie]],direction:"backward"}:Ke={ranges:[[be,ve]],direction:"forward"},a.setSelection(Ke)}else a.setPositionHandlingPlaceholder(ve);a.announce(`move ${ee}`)}function zg(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("backward");const re=()=>{var ve,be;let Ie=!0;return a.silenceNotifications||(Ie=(be=(ve=a.mathfield.host)==null?void 0:ve.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?be:!0),a.announce(Ie?"plonk":"line"),Ie},oe=a.at(a.position);let pe=oe;for(;pe&&pe.parentBranch!=="below"&&!(Array.isArray(pe.parentBranch)&&pe.parent instanceof wa);)pe=pe.parent;if(Array.isArray(pe==null?void 0:pe.parentBranch)&&pe.parent instanceof wa){const ve=pe.parent;if(pe.parentBranch[0]<1)return re();const be=pe.parentBranch[0]-1,Ie=ve.array[be][pe.parentBranch[1]];if(!Ie.some(ht=>ht.type==="prompt"&&!ht.captureSelection)&&a.mathfield.hasEditablePrompts)return re();Hf(a,oe,Ie,ee,"up")}else if(pe){const ve=(E=pe.parent.branch("above"))!=null?E:pe.parent.createBranch("above");if(!ve.some(Ie=>Ie.type==="prompt"&&Ie.placeholderId)&&a.mathfield.hasEditablePrompts)return re();Hf(a,oe,ve,ee,"up")}else return re();return a.mathfield.stopCoalescingUndo(),!0}function Hg(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("forward");const re=()=>{var ve,be;let Ie=!0;return a.silenceNotifications||(Ie=(be=(ve=a.mathfield.host)==null?void 0:ve.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?be:!0),a.announce(Ie?"plonk":"line"),Ie},oe=a.at(a.position);let pe=oe;for(;pe&&pe.parentBranch!=="above"&&!(Array.isArray(pe.parentBranch)&&pe.parent instanceof wa);)pe=pe.parent;if(Array.isArray(pe==null?void 0:pe.parentBranch)&&pe.parent instanceof wa){const ve=pe.parent;if(pe.parentBranch[0]+1>ve.array.length-1)return re();const be=pe.parentBranch[0]+1,Ie=ve.array[be][pe.parentBranch[1]];if(!Ie.some(ht=>ht.type==="prompt"&&!ht.captureSelection)&&a.mathfield.hasEditablePrompts)return re();Hf(a,oe,Ie,ee,"down")}else if(pe){const ve=(E=pe.parent.branch("below"))!=null?E:pe.parent.createBranch("below");if(!ve.some(Ie=>Ie.type==="prompt")&&a.mathfield.hasEditablePrompts)return re();Hf(a,oe,ve,ee,"down")}else return re();return!0}function R0(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 Kg(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!1):E=!0,b=b.parent;return E?y:0}function Wg(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!0):E=!1,b=b.parent;return E?y:0}function F0(a){var y;if(a.collapseSelection(),Kg(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 Vs({style:b.computedStyle}),b),b=b.rightSibling),b.createBranch("superscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.superscript[0]))),!0}function _0(a){var y;if(a.collapseSelection(),Wg(a)>=a.mathfield.options.scriptDepth[0])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=a.at(a.position+1))==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new Vs({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 jg(){function a(ve){const be=[],Ie=[];return[...ve.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((ht,Rt)=>{const Qt=E(ht);Qt===0?be.push(ht):Ie.push({documentOrder:Rt,tabIndex:Qt,node:ht})}),Ie.sort((ht,Rt)=>ht.tabIndex===Rt.tabIndex?ht.documentOrder-Rt.documentOrder:ht.tabIndex-Rt.tabIndex).map(ht=>ht.node).concat(be)}function y(ve){return!(!b(ve)||ee(ve)||E(ve)<0)}function b(ve){return!(ve.disabled||ve.type==="hidden"&&ve.tagName.toUpperCase()==="INPUT"||pe(ve))}function E(ve){var be;const Ie=Number.parseInt((be=ve.getAttribute("tabindex"))!=null?be:"NaN",10);return Number.isNaN(Ie)?ve.contentEditable==="true"||(ve.nodeName==="AUDIO"||ve.nodeName==="VIDEO")&&ve.getAttribute("tabindex")===null?0:ve.tabIndex:Ie}function ee(ve){return ve.tagName.toUpperCase()==="INPUT"&&ve.type==="radio"&&!oe(ve)}function re(ve,be){for(const Ie of ve)if(Ie.checked&&Ie.form===be)return Ie;return null}function oe(ve){var be;if(!ve.name)return!0;const Ke=((be=ve.form)!=null?be:ve.ownerDocument).querySelectorAll('input[type="radio"][name="'+ve.name+'"]'),ht=re(Ke,ve.form);return!ht||ht===ve}function pe(ve){if(!dt()||ve===document.activeElement||ve.contains(document.activeElement))return!1;if(getComputedStyle(ve).visibility==="hidden")return!0;const be=ve.getBoundingClientRect();if(be.width===0||be.height===0)return!0;for(;ve;){if(getComputedStyle(ve).display==="none")return!0;ve=ve.parentElement}return!1}return dt()?a(document.body):[]}function bs(a,y,b="forward"){const E=a.position;if(Array.isArray(y)){const ee=a.offsetOf(y[0]),re=a.offsetOf(y[y.length-1]);return b==="forward"?a.setSelection(ee,re):a.setSelection(re,ee),a.announce("move",E),a.mathfield.stopCoalescingUndo(),!0}return b==="forward"?bs(a,[y.leftSibling,y]):bs(a,[y,y.leftSibling])}function ll(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 Kf(a,y,b=!0){var E,ee;const re=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&Cl(a,y);let oe;const pe=a.at(a.anchor).parentPrompt;pe?y==="forward"?oe=a.offsetOf(pe)+1:oe=a.offsetOf(pe.leftSibling):oe=Math.max(a.position+re,0);const ve=Lh(a,oe,y);if(!ve||y==="forward"&&a.offsetOf(ve)<oe||y==="backward"&&a.offsetOf(ve)>oe){if(!b||!((ee=(E=a.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))==null||ee))return a.announce("plonk"),!1;const Ie=jg();if(!document.activeElement||Ie.length<=1)return a.announce("plonk"),!1;let Ke=Ie.indexOf(document.activeElement)+re;return Ke<0&&(Ke=Ie.length-1),Ke>=Ie.length&&(Ke=0),Ie[Ke].focus(),a.mathfield.stopCoalescingUndo(),!0}return ll(a,ve),!0}function Lh(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)}Ls({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 re;if(typeof ee=="string"&&(re=y[ee]),!re){const pe=b.subsupPlacement?_0(a):F0(a);return a.mathfield.stopCoalescingUndo(),pe}E.branch(re)||E.createBranch(re);const oe=a.setSelection(a.getBranchRange(a.offsetOf(E),re));return a.mathfield.stopCoalescingUndo(),oe},moveBeforeParent:a=>{const{parent:y}=a.at(a.position);return y?(a.position=a.offsetOf(y),a.mathfield.stopCoalescingUndo(),!0):(a.announce("plonk"),!1)},moveAfterParent:a=>R0(a),moveToNextChar:a=>Cl(a,"forward"),moveToPreviousChar:a=>Cl(a,"backward"),moveUp:a=>Cl(a,"upward"),moveDown:a=>Cl(a,"downward"),moveToNextWord:a=>Ou(a,"forward"),moveToPreviousWord:a=>Ou(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 Kf(a,"forward");const re=a.at(a.position);if(re.mode==="text"){if(a.selectionIsCollapsed){let ht=re;for(;ht&&ht.mode==="text";)ht=ht.leftSibling;let Rt=re;for(;((y=Rt.rightSibling)==null?void 0:y.mode)==="text";)Rt=Rt.rightSibling;if(ht&&Rt)return bs(a,[ht,Rt])}if(re.rightSibling.mode==="text"){let ht=re;for(;ht&&ht.mode==="text";)ht=ht.rightSibling;return ht?(ll(a,(b=ht.leftSibling)!=null?b:ht),a.mathfield.switchMode("math"),!0):ll(a,a.lastOffset)}}const pe=a.at(a.anchor).parentPrompt,ve=pe?a.offsetOf(pe)+1:Math.max(a.position+1,0),be=Lh(a,ve,"forward");if(be)return ll(a,be);const Ie=z0(a,re,ht=>ht.type==="leftright"||ht.type==="text","forward");if(Ie){if(Ie.mode==="text"){let ht=Ie;for(;ht&&ht.mode==="text";)ht=ht.rightSibling;return bs(a,[(E=Ie.leftSibling)!=null?E:Ie,(ee=ht.leftSibling)!=null?ee:ht])}return bs(a,Ie)}const Ke=re.parent;if(Ke){if(Ke.type==="leftright"||Ke.type==="surd")return bs(a,Ke);if(re.parentBranch==="superscript"&&Ke.subscript)return bs(a,Ke.subscript);if(re.parentBranch==="above"&&Ke.below)return bs(a,Ke.below);if(re.parentBranch==="superscript"||re.parentBranch==="subscript")return ll(a,Ke);if(re.parentBranch==="above"||re.parentBranch==="below")return bs(a,Ke)}return ll(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return Kf(a,"backward");let b=a.at(a.position);const E=b.mode;if(E==="text"){if(a.selectionIsCollapsed){let pe=b;for(;pe&&pe.mode==="text";)pe=pe.leftSibling;let ve=b;for(;((y=ve.rightSibling)==null?void 0:y.mode)==="text";)ve=ve.rightSibling;if(pe&&ve)return bs(a,[pe,ve])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?ll(a,b):ll(a,0)}const ee=a.at(a.anchor).parentPrompt,re=ee?a.offsetOf(ee.leftSibling):Math.max(a.position-1,0),oe=Lh(a,re,"backward");if(oe)return ll(a,oe);if(E==="math"){const pe=z0(a,b,be=>be.type==="leftright"||be.type==="text","backward");if(pe){if(pe.mode==="text"){let be=pe;for(;be&&be.mode==="text";)be=be.leftSibling;return bs(a,[pe,be])}return bs(a,pe)}const ve=b.parent;if(ve){if(ve.type==="leftright"||ve.type==="surd")return bs(a,ve);if(b.parentBranch==="subscript"&&ve.superscript)return bs(a,ve.superscript);if(b.parentBranch==="below"&&ve.above)return bs(a,ve.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return ll(a,ve);if(b.parentBranch==="above"||b.parentBranch==="below")return bs(a,ve)}return ll(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:F0,moveToSubscript:_0},{target:"model",changeSelection:!0}),Ls({moveToNextPlaceholder:a=>Kf(a,"forward"),moveToPreviousPlaceholder:a=>Kf(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function z0(a,y,b,E){if(E==="forward"){let re=y.rightSibling;for(;re&&!b(re);)re=re.rightSibling;return re}let ee=y.leftSibling;for(;ee&&!b(ee);)ee=ee.leftSibling;return ee}function Wf(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1,re="";for(;!ee;){const oe=a.at(E);ee=y===0||oe===void 0||oe.type==="first"||oe.mode!=="math"||!(oe.type&&/mord|mpunct|operator/.test(oe.type)||oe.type==="mop"&&/[a-zA-Z ]+/.test(oe.value))||!oe.hasEmptyBranch("superscript")||!oe.hasEmptyBranch("subscript")||typeof b=="function"&&!b(oe),ee||(oe.mode="text",oe.command=oe.value,oe.verbatimLatex=void 0,re+=oe.value),E-=1,y-=1}a.contentDidChange({data:re,inputType:"insertText"})}function Zc(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1;const re=[];for(;!ee;){const oe=a.at(E);ee=y===0||!oe||oe.type==="first"||oe.isFirstSibling||oe.mode!=="text"||oe.value===" "||typeof b=="function"&&!b(oe),ee||(re.push(Ar.serialize([oe],{defaultMode:"math"})),oe.mode="math"),E-=1,y-=1}Bh(a),a.contentDidChange({data:Da(re),inputType:"insertText"})}function Bh(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 Zg(a){let y="",b=a.position,E=!1;for(;!E;){const ee=a.at(b);E=!(ee&&(ee.mode==="text"||ee.mode==="math"&&ee.type&&/mord|mpunct/.test(ee.type))),E||(y=ee.value+y),b-=1}return y}function Ug(a,y,b){const{model:E}=a;if(E.mode==="latex"||!E.at(E.position).isLastSibling||!b||!Sf(b))return!1;const ee=Lu(b);if(!E.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ee));const re=Zg(E)+ee;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ee))return!0;if(/[\^_]/.test(ee))return/(^|\s)[a-zA-Z][^_]$/.test(re)&&Zc(E,1),!0;const oe={")":"(","}":"{","]":"["}[ee],{parent:pe}=E.at(E.position);if(oe&&pe instanceof Xa&&pe.leftDelim===oe)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(re))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(ee))return!0;if(/(^|[^a-zA-Z'’])[a-zA-Z] $/.test(re))return Zc(E,1),!1;if(/\D\.[^\d\s]$/.test(re)){Zc(E,1);const ve=E.at(E.position);return ve.value="\u22C5",ve.style.variant="normal",ve.command="\\cdot",ve.verbatimLatex=void 0,E.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(re)||/\.\d$/.test(re)||/\([\d+\-.]$/.test(re))return Zc(E,1),!0;if(/\([a-z][,;]$/.test(re))return Zc(E,2),!0;if(/[\d+\-=><*|]$/.test(ee))return Bh(E),!0}else{if(y==="[Space]")return Wf(E,void 0,oe=>/[a-z][:,;.]$/.test(oe.value)),!0;if(/[a-zA-Z]{3,}$/.test(re)&&!/(dxd|abc|xyz|uvw)$/.test(re))return Wf(E,void 0,oe=>/[a-zA-Z]/.test(oe.value)),!0;if(/(^|\W)(if)$/i.test(re))return Wf(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(re)&&!/(αβγ)$/.test(re))return Wf(E,void 0,oe=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(oe.value)),!0;if(ee==="?"||ee==="."&&!/[\d-+]\.$/.test(re))return!0}return!1}function Vg(a,y){if(!a.isSelectionEditable||!a.keystrokeCaptionVisible)return;const b=H0(),E=a.element.getBoundingClientRect();b.style.left=`${E.left}px`,b.style.top=`${E.top-64}px`,b.innerHTML=window.MathfieldElement.createHTML("<span>"+(vh(y)||y)+"</span>"+b.innerHTML),b.style.visibility="visible",setTimeout(()=>{b.childNodes.length>0&&b.childNodes[b.childNodes.length-1].remove(),b.childNodes.length===0&&(b.style.visibility="hidden")},3e3)}function Gg(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=H0();y.innerHTML=""}else{const y=Af("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function H0(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(ks("keystroke-caption"),ks("core"),Af("mathlive-keystroke-caption-panel"))}function Yg(){document.getElementById("mathlive-keystroke-caption-panel")&&(bh("mathlive-keystroke-caption-panel"),x("core"),x("keystroke-caption"))}function K0(a,y){var b,E,ee;const{model:re}=a,oe=p0(y);if(y.isTrusted){Fm(y);const Rt=kd();a.keyboardLayout!==Rt.id&&(a.keyboardLayout=Rt.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Vg(a,oe),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let pe,ve="",be;const Ie=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(re.mode==="math")if(oe==="[Backspace]")Ie.pop();else if(!Sf(y))a.flushInlineShortcutBuffer();else{const Rt=Lu(y),Qt=[...(E=(b=Ie[Ie.length-1])==null?void 0:b.keystrokes)!=null?E:[],Rt];Ie.push({state:re.getState(),keystrokes:Qt,leftSiblings:Xg(a)});let er=0,Qr="";for(;!pe&&er<Qt.length;)be=Ie.length-(Qt.length-er),Qr=Qt.slice(er).join(""),pe=dd(Ie[be].leftSiblings,Qr,a.options.inlineShortcuts),!pe&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(Qr)&&(pe=a.options.onInlineShortcut(a,Qr)),er+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(pe?a.switchMode("math"):Ug(a,oe,y)&&(a.switchMode({math:"text",text:"math"}[re.mode]),ve=""))}if(!pe){if(ve||(ve=Zm(a.keybindings,re.mode,y)),!ve&&(oe==="[Enter]"||oe==="[Return]")){let Rt=!1;return re.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(Rt=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),Rt||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),re.contentDidChange({inputType:"insertLineBreak"})),Rt}if((!ve||oe==="[Space]")&&re.mode==="math"){if(oe==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return ya.insert(re,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),ve="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const Rt=re.at(re.position+1),Qt=re.at(re.position-1);if((Rt==null?void 0:Rt.mode)==="text"||(Qt==null?void 0:Qt.mode)==="text")return ya.insert(re," ",{mode:"text"}),a.snapshot("insert-space"),a.dirty=!0,a.scrollIntoView(),!1}(ee=re.at(re.position))!=null&&ee.isDigit()&&window.MathfieldElement.decimalSeparator===","&&Lu(y)===","&&(ve="insertDecimalSeparator")}}if(!pe&&!ve){if(re.mathfield.smartFence){if(Ih(re,Lu(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:Rt}=re.at(re.position);if(Rt instanceof Xa&&Rt.rightDelim==="?"&&re.at(re.position).isLastSibling&&/^[)}\]|]$/.test(oe))return a.snapshot(),Rt.isDirty=!0,Rt.rightDelim=oe,re.position+=1,re.selectionDidChange(),re.contentDidChange({data:Lu(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!re.selectionIsCollapsed){const Qt=Lu(y);if(Qt==="("||Qt==="{"||Qt==="["){const er={"(":"(","{":"\\lbrace","[":"\\lbrack"}[Qt],Qr={"(":")","{":"\\rbrace","[":"\\rbrack"}[Qt],[Jn,Nr]=Xo(re.selection);return a.snapshot(),re.position=Nr,ya.insert(re,Qr,{format:"latex"}),re.position=Jn,ya.insert(re,er,{format:"latex"}),re.setSelection(Jn+1,Nr+1),re.contentDidChange({data:Qt,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const Ke=re.at(Math.max(re.position,re.anchor)),{parent:ht}=Ke;if(ve==="moveAfterParent"&&(ht==null?void 0:ht.type)==="leftright"&&Ke.isLastSibling&&a.options.smartFence&&Ih(re,".",a.defaultStyle)&&(ve="",Ao(a)),a.keyboardDelegate.cancelComposition(),ve)a.executeCommand(ve);else if(pe){const Rt=a.effectiveStyle;re.setState(Ie[be].state);const Qt=Ie[Ie.length-1].keystrokes;for(const er of Qt)ya.insert(re,er,{silenceNotifications:!0,style:Rt});a.snapshot("insert-shortcut"),re.setState(Ie[be].state),re.deferNotifications({content:!0,selection:!0,data:pe,type:"insertText"},()=>(ya.insert(re,pe,{format:"latex",style:Rt}),Bh(a.model),pe.endsWith(" ")&&(a.switchMode("text"),ya.insert(re," ",{style:Rt,mode:"text"})),a.snapshot(),re.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,re.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function Dh(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=rf(y);const re=window.mathVirtualKeyboard;if(re!=null&&re.isShifted&&(ee=typeof ee=="string"?ee.toUpperCase():ee.map(ve=>ve.toUpperCase())),b.simulateKeystroke){let ve=!0;for(const be of ee)K0(a,new KeyboardEvent("keypress",{key:be}))&&(ve=!1);if(ve)return}const oe=E.at(E.position),pe=xe(xe({},oe.computedStyle),a.defaultStyle);if(E.selectionIsCollapsed||(E.deleteAtoms(Xo(E.selection)),a.snapshot("delete")),E.mode==="latex")E.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{Ef(a);for(const ve of ee)ya.insert(E,ve);a.snapshot("insert-latex"),Bd(a)});else if(E.mode==="text"){for(const ve of ee)ya.insert(E,ve,{style:pe});a.snapshot("insert-text")}else if(E.mode==="math")for(const ve of ee)Qg(a,ve,pe,oe);a.dirty=!0,a.scrollIntoView()}function Xg(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 Qg(a,y,b,E){const ee=a.model;let re={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[y];if(y===" "&&a.options.mathModeSpace&&(re=["insert",a.options.mathModeSpace]),re){a.executeCommand(re);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){Jg(ee),ya.insert(ee,y,{style:b}),a.snapshot(),R0(ee),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const oe=a.adoptStyle==="left"?E:E.parent?E.rightSibling:null;(oe==null?void 0:oe.type)==="mord"&&/[a-zA-Z0-9]/.test(oe.value)&&(b=xe({},b),oe.style.variant&&(b.variant=oe.style.variant),oe.style.variantStyle&&(b.variantStyle=oe.style.variantStyle))}ya.insert(ee,y,{style:b}),a.snapshot(`insert-${ee.at(ee.position).type}`)}function Jg(a){a.selectionIsCollapsed||(a.deleteAtoms(Xo(a.selection)),a.mathfield.snapshot("delete"))}function Ih(a,y,b){if(!y||a.mode!=="math")return!1;const E=a.at(a.position),{parent:ee}=E,re={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[y];if(!re)return!1;const oe=te[re],pe=ne[re];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[ve,be]=Xo(a.selection),Ie=a.extractAtoms([ve,be]),Ke=ee.addChildrenAfter([new Xa("left...right",Ie,{leftDelim:re,rightDelim:pe})],a.at(ve));return a.setSelection(a.offsetOf(Ke.firstChild),a.offsetOf(Ke.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:re,inputType:"insertText"}),!0}if(re==="|"){const ve=ee instanceof Xa?ee.leftDelim+ee.rightDelim:"";if(ve==="\\lbrace\\rbrace"||ve==="\\{\\}"||ve==="\\lbrace?")return a.mathfield.snapshot(),ya.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:re,inputType:"insertText"}),!0}if(pe){if(ee instanceof Xa&&ee.firstChild===E&&(ee.leftDelim==="?"||ee.leftDelim==="."))return ee.leftDelim=re,ee.isDirty=!0,a.mathfield.snapshot(),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(!(ee instanceof Xa)){let Ke=E;for(;Ke&&!(Ke.type==="mclose"&&Ke.value===pe);)Ke=Ke.rightSibling;if(Ke){a.mathfield.snapshot();const ht=a.extractAtoms([a.offsetOf(E),a.offsetOf(Ke)]);return ht.pop(),ee.addChildrenAfter([new Xa("left...right",ht,{leftDelim:re,rightDelim:pe})],E),a.position=a.offsetOf(ee.firstChild)+1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const ve=a.offsetOf(E.lastSibling);let be;for(be=a.position;be<=ve;be++){const Ke=a.at(be);if(Ke instanceof Xa&&(Ke.leftDelim==="?"||Ke.leftDelim===".")&&W0(re,Ke.rightDelim))break}const Ie=a.at(be);if(be<=ve&&Ie instanceof Xa){Ie.leftDelim=re,a.mathfield.snapshot();let Ke=a.extractAtoms([a.position,be-1]);return Ke=Ke.filter(ht=>ht.type!=="first"),Ie.addChildren(Ke,Ie.parentBranch),a.position+=1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ee instanceof Xa&&(ee.leftDelim==="?"||ee.leftDelim===".")&&W0(re,ee.rightDelim)){ee.isDirty=!0,ee.leftDelim=re,a.mathfield.snapshot();const Ke=a.extractAtoms([a.offsetOf(E.firstSibling),a.position]);for(const ht of Ke)ee.parent.addChildBefore(ht,ee);return a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ee instanceof Xa&&ee.leftDelim==="|")){if(a.mathfield.snapshot(),ya.insert(a,`\\left${re}\\right?`,{format:"latex",style:b}),E.lastSibling.type!=="first"){const Ke=a.offsetOf(E.lastSibling),ht=a.extractAtoms([a.position,Ke]);a.at(a.position).body=ht,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(oe){let ve=E;for(;ve;){if(ve.type==="mopen"&&ve.value===oe){a.mathfield.snapshot();const Rt=ve.leftSibling,Qt=a.extractAtoms([a.offsetOf(ve.leftSibling),a.offsetOf(E)]);Qt.shift();const er=new Xa("left...right",Qt,{leftDelim:oe,rightDelim:re});return ee.addChildrenAfter([er],Rt),a.position=a.offsetOf(er),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}ve=ve.leftSibling}if(ee instanceof Xa&&E.isLastSibling&&Th(ee.leftDelim,re))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=re,a.position+=1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const be=a.offsetOf(E.firstSibling);let Ie;for(Ie=a.position;Ie>=be;Ie--){const Rt=a.at(Ie);if(Rt instanceof Xa&&(Rt.rightDelim==="?"||Rt.rightDelim===".")&&Th(Rt.leftDelim,re))break}const Ke=a.at(Ie);if(Ie>=be&&Ke instanceof Xa)return a.mathfield.snapshot(),Ke.rightDelim=re,Ke.addChildren(a.extractAtoms([Ie,a.position]),Ke.parentBranch),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ee instanceof Xa&&(ee.rightDelim==="?"||ee.rightDelim===".")&&Th(ee.leftDelim,re))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=re,ee.parent.addChildren(a.extractAtoms([a.position,a.offsetOf(E.lastSibling)]),ee.parentBranch),a.position=a.offsetOf(ee),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const ht=ee.parent;return ht instanceof Xa&&(ht.rightDelim==="?"||ht.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(ht),Ih(a,re,b)):!1}return!1}function Th(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):ne[a]===y:!0}function W0(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):te[y]===a:!0}Ls({undo:a=>(a.undo(),!0),redo:a=>(a.redo(),!0),scrollIntoView:a=>(a.scrollIntoView(),!0),scrollToStart:a=>(a.field.scroll(0,0),!0),scrollToEnd:a=>{const y=a.field.getBoundingClientRect();return a.field.scroll(y.left-window.scrollX,0),!0},toggleKeystrokeCaption:Gg,toggleContextMenu:a=>{const y=a.toggleContextMenu();return y||a.model.announce("plonk"),y},plonk:a=>(a.model.announce("plonk"),!0),switchMode:(a,y,b,E)=>(a.switchMode(y,b,E),!0),insert:(a,y,b)=>a.insert(y,b),typedText:(a,y,b)=>(Dh(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),re=0;for(;E.includes(ee)&&re<100;){if(re===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),re++}return a.insert(`\\placeholder[${y!=null?y:ee}]{}`,b),!0}}),Ls({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"}),Ls({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})&&(Bd(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),Ao(a))):a.model.announce("plonk"),a.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function qg(a,y){a.flushInlineShortcutBuffer(),a.stopCoalescingUndo();const b=Ph(a,y),{model:E}=a;return E.selectionIsCollapsed?(a.defaultStyle.fontSeries&&b.fontSeries===a.defaultStyle.fontSeries&&(b.fontSeries="auto"),b.fontShape&&b.fontShape===a.defaultStyle.fontShape&&(b.fontShape="auto"),b.color&&b.color===a.defaultStyle.color&&(b.color="none"),b.backgroundColor&&b.backgroundColor===a.defaultStyle.backgroundColor&&(b.backgroundColor="none"),b.fontSize&&b.fontSize===a.defaultStyle.fontSize&&(b.fontSize="auto"),a.defaultStyle=xe(xe({},a.defaultStyle),b)):a.model.deferNotifications({content:!0,type:"insertText"},()=>{E.selection.ranges.forEach(ee=>Ah(E,ee,b,{operation:"toggle"})),a.snapshot("style-change")}),!0}Ls({applyStyle:qg},{target:"mathfield",canUndo:!0,changeContent:!0});function Ph(a,y){var b,E,ee,re,oe,pe,ve,be,Ie,Ke;const ht={};if(typeof y.color=="string"){const Qt=(E=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?E:"none";Qt!==y.color&&(ht.verbatimColor=(ee=y.verbatimColor)!=null?ee:y.color),ht.color=Qt}if(typeof y.backgroundColor=="string"){const Qt=(oe=a.backgroundColorMap((re=y.backgroundColor)!=null?re:y.verbatimBackgroundColor))!=null?oe:"none";Qt!==y.backgroundColor&&(ht.verbatimBackgroundColor=(pe=y.verbatimBackgroundColor)!=null?pe:y.backgroundColor),ht.backgroundColor=Qt}typeof y.fontFamily=="string"&&(ht.fontFamily=y.fontFamily),typeof y.series=="string"&&(ht.fontSeries=y.series),typeof y.fontSeries=="string"&&(ht.fontSeries=y.fontSeries.toLowerCase()),ht.fontSeries&&(ht.fontSeries=(ve={bold:"b",medium:"m",normal:"m"}[ht.fontSeries])!=null?ve:ht.fontSeries),typeof y.shape=="string"&&(ht.fontShape=y.shape),typeof y.fontShape=="string"&&(ht.fontShape=y.fontShape.toLowerCase()),ht.fontShape&&(ht.fontShape=(be={italic:"it",up:"n",upright:"n",normal:"n"}[ht.fontShape])!=null?be:ht.fontShape),y.variant&&(ht.variant=y.variant.toLowerCase()),y.variantStyle&&(ht.variantStyle=y.variantStyle.toLowerCase());const Rt=(Ie=y.size)!=null?Ie:y.fontSize;return typeof Rt=="number"?ht.fontSize=Math.max(1,Math.min(10,Rt)):typeof Rt=="string"&&(ht.fontSize=(Ke={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[Rt.toLowerCase()])!=null?Ke:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[Rt]),ht}function Oh(a){let[y,b]=Xo(a.selection);if(y=j0(a,y,"backward"),b=j0(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 j0(a,y,b){var E,ee,re;let oe=a.at(y);if(!oe)return y;const pe=b==="forward"?1:-1;if(oe.mode==="text"){for(;oe&&!(oe.mode!=="text"||!ue.test(oe.value));)y+=pe,oe=a.at(y);return b==="backward"?y-1:y}if(oe.mode==="latex"){if(/[a-zA-Z\*]/.test(oe.value))if(b==="backward")for(;oe&&oe.mode==="latex"&&oe.value!=="\\"&&/[a-zA-Z]/.test(oe.value);)y+=pe,oe=a.at(y);else for(;oe&&oe.mode==="latex"&&/[a-zA-Z\*]/.test(oe.value);)y+=pe,oe=a.at(y);else if(oe.value==="{"){if(b==="forward"){for(;oe&&oe.mode==="latex"&&oe.value!=="}";)y+=pe,oe=a.at(y);return y}return y-1}else if(oe.value==="}"){if(b==="backward"){for(;oe&&oe.mode==="latex"&&oe.value!=="{";)y+=pe,oe=a.at(y);return y-1}return y}return y-1}if(oe.mode==="math"){if(oe.isDigit()){for(;(E=a.at(y+pe))!=null&&E.isDigit();)y+=pe;return b==="backward"?y-1:y}if(oe.style.variant||oe.style.variantStyle){let ve=(ee=a.at(y))==null?void 0:ee.style;for(;ve&&ve.variant===oe.style.variant&&ve.variantStyle===oe.style.variantStyle;)ve=(re=a.at(y+pe))==null?void 0:re.style,y+=pe;return b==="backward"?y-1:y}return y}return y}Ls({selectGroup:a=>{const y=Oh(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>Cl(a,"forward",{extend:!0}),extendSelectionBackward:a=>Cl(a,"backward",{extend:!0}),extendToNextWord:a=>Ou(a,"forward",{extend:!0}),extendToPreviousWord:a=>Ou(a,"backward",{extend:!0}),extendSelectionUpward:a=>Cl(a,"upward",{extend:!0}),extendSelectionDownward:a=>Cl(a,"downward",{extend:!0}),extendToNextBoundary:a=>Ou(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>Ou(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 Uc=null,Nd=0,jf=class Qs{static start(y,b,E,ee){var re;Qs.element=y,(re=Qs.controller)==null||re.abort(),Qs.controller=new AbortController;const oe={signal:Qs.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",E,oe),y.addEventListener("pointerup",ee,oe),y.addEventListener("pointercancel",ee,oe),Nh(b)&&(Qs.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",E,oe),window.addEventListener("blur",ee,oe),window.addEventListener("mouseup",ee,oe))}static stop(){var y;(y=Qs.controller)==null||y.abort(),Qs.controller=void 0,typeof Qs.pointerId=="number"&&(Qs.element.releasePointerCapture(Qs.pointerId),Qs.pointerId=void 0)}};function Nh(a){return a!==null&&globalThis.PointerEvent!==void 0&&a instanceof PointerEvent}function Z0(a,y){var b;if(y.buttons>1)return;a.atomBoundsCache=new Map;const E=a;let ee,re=!1,oe=!1,pe="none",ve=!1,be=!1;const Ie=y.clientX,Ke=y.clientY,ht=Date.now(),Rt=E.field,Qt=setInterval(()=>{ve?Rt.scroll({top:0,left:Rt.scrollLeft-16}):be&&Rt.scroll({top:0,left:Rt.scrollLeft+16})},32);function er(){jf.stop(),re=!1,clearInterval(Qt),a.element.classList.remove("tracking"),y&&y.preventDefault()}function Qr(Nr){if(!E.hasFocus()){er();return}const ri=Nr.clientX,zr=Nr.clientY,Fi=Nh(Nr)&&Nr.pointerType==="touch"?20:5;if(Date.now()<ht+500&&Math.abs(Ie-ri)<Fi&&Math.abs(Ke-zr)<Fi){Nr.preventDefault(),Nr.stopPropagation();return}const ea=Rt.getBoundingClientRect();be=ri>ea.right,ve=ri<ea.left;let Ui=ee;Nh(Nr)&&(Nr.isPrimary||(Ui=Rd(E,Nr.clientX,Nr.clientY,{bias:0})));const za=Rd(E,ri,zr,{bias:ri<=Ie?ri===Ie?0:-1:1});Ui>=0&&za>=0&&(E.model.extendSelectionTo(Ui,za),Ao(a)),oe&&Oh(E.model)}Uc&&Math.abs(Uc.x-Ie)<5&&Math.abs(Uc.y-Ke)<5&&Date.now()<Uc.time+500?(Nd+=1,Uc.time=ht):(Uc={x:Ie,y:Ke,time:ht},Nd=1);const Jn=Rt.getBoundingClientRect();if(Ie>=Jn.left&&Ie<=Jn.right&&Ke>=Jn.top&&Ke<=Jn.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ee=Rd(a,Ie,Ke,{bias:0}),ee>=0){if(a.element.classList.add("tracking"),y.shiftKey){const Nr=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ee),v0(a.model)||Nr?pe="all":pe="selection"}else a.model.at(ee).type==="placeholder"?(a.model.setSelection(ee-1,ee),pe="selection"):((b=a.model.at(ee).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(ee,ee+1),pe="selection"):(a.model.position=ee,v0(a.model)?pe="all":pe="selection");a.defaultStyle={},y.detail===3||Nd>2?(er(),(y.detail===3||Nd===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},pe="all")):re||(re=!0,jf.start(Rt,y,Qr,er),(y.detail===2||Nd===2)&&(oe=!0,Oh(a.model),pe="all"))}a.hasFocus()||(pe="none",a.focus({preventScroll:!0}))}else Uc=null;a.stopCoalescingUndo(),pe!=="none"&&(a.model.selectionIsCollapsed&&(pe="all"),Ao(a)),y.preventDefault()}function $g(a,y,b){if(a>=b.left&&a<=b.right&&y>=b.top&&y<=b.bottom)return 0;const E=a-(b.left+b.right)/2,ee=y-(b.top+b.bottom)/2;return E*E+ee*ee}function U0(a,y,b,E,ee){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const re=lc(a,b);if(!re)return[1/0,null];let oe=[1/0,null];if(b.hasChildren&&!b.captureSelection&&E>=re.left&&E<=re.right)for(const pe of b.children){const ve=U0(a,y,pe,E,ee);ve[0]<=oe[0]&&(oe=ve)}return oe[1]||(oe=[$g(E,ee,re),b]),y.set(b.id,oe),oe}function ev(a,y,b){const[,E]=U0(a,new Map,a.model.root,y,b);return E}function Rd(a,y,b,E){var ee;const re=a.field.querySelector(".ML__latex").getBoundingClientRect();if(!re)return 0;if(y>re.right||b>re.bottom+8)return a.model.lastOffset;if(y<re.left||b<re.top-8)return 0;E=E!=null?E:{},E.bias=(ee=E.bias)!=null?ee:0;let oe=ev(a,y,b);const pe=[];let ve=oe;for(;ve;)pe.unshift(ve),ve=ve.parent;for(const Ie of pe)if(Ie.captureSelection){oe=Ie;break}let be=a.model.offsetOf(oe);if(be<0)return-1;if(oe.leftSibling)if(E.bias===0&&oe.type!=="placeholder"){const Ie=lc(a,oe);Ie&&y<(Ie.left+Ie.right)/2&&(be=a.model.offsetOf(oe.leftSibling))}else E.bias<0&&(be=a.model.offsetOf(oe.leftSibling));return be}var tv=class extends ya{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 re=JSON.parse(ee);if(re&&Array.isArray(re)){a.snapshot();const oe=dc(re),{model:pe}=a;pe.selectionIsCollapsed||pe.deleteAtoms(Xo(pe.selection));const ve=pe.at(pe.position);if(ve.parent instanceof wa){console.assert(ve.parentBranch!==void 0);const be=[];let Ie=[];oe[0].type==="first"&&oe.shift(),oe[oe.length-1].type==="first"&&oe.pop();for(const Qt of oe)Qt.type==="first"&&Ie.length>0?(be.push(Ie),Ie=[Qt]):Ie.push(Qt);Ie.length>0&&be.push(Ie);let Ke=Number(ve.parentBranch[0]),ht=Number(ve.parentBranch[1]);const Rt=ve.parent.maxColumns;for(;ve.parent.colCount-ht<be.length&&ve.parent.colCount<Rt;)ve.parent.addColumn();ve.parent.addChildrenAfter(be[0],ve);for(let Qt=1;Qt<be.length;Qt++)ht++,ht>=Rt&&(ht=0,ve.parent.addRowAfter(Ke),Ke++),ve.parent.setCell(Ke,ht,be[Qt])}else ve.parent.addChildrenAfter(oe.filter(be=>be.type!=="first"),ve);return pe.position=pe.offsetOf(oe[oe.length-1]),pe.contentDidChange({inputType:"insertFromPaste"}),Ao(a),!0}}catch(re){}if(ee=typeof y!="string"?y.getData("application/json"):"",ee&&window.MathfieldElement.computeEngine)try{const re=JSON.parse(ee);if(typeof re=="object"&&"latex"in re&&re.latex&&(b=re.latex),!b){const oe=window.MathfieldElement.computeEngine.box(re);oe&&!oe.has("Error")&&(b=oe.latex)}b||(E="latex")}catch(re){}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 re;return[re,b]=yl(b),E==="auto"&&re&&(E="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:E})&&(a.startRecording(),a.snapshot("paste"),Ao(a)),a.startRecording(),!0}return!1}insert(a,y,b){var E,ee;const re=typeof y=="string"?y:(ee=(E=window.MathfieldElement.computeEngine)==null?void 0:E.box(y).latex)!=null?ee:"";if(!b.silenceNotifications&&!a.contentWillChange({data:re,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:oe}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const pe=a.silenceNotifications;a.silenceNotifications=!0;const ve={"?":"\\placeholder{}","@":"\\placeholder{}"};ve[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Xo(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward"),!a.at(a.position).isLastSibling&&a.at(a.position+1).type==="placeholder"?a.deleteAtoms([a.position,a.position+1]):a.at(a.position).type==="placeholder"&&a.deleteAtoms([a.position-1,a.position]);let be=-1;ve[0]?ve["@"]=ve[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(be=rv(a),be>=0&&(ve["@"]=a.getValue(be,a.position,"latex"))),ve[0]||(ve[0]=ve["?"]);let Ie=!1;const Ke=ri=>(Ie=!0,ve[ri]);let[ht,Rt]=V0(a,y,Ke,b);if(!Rt)return!1;const Qt=Rt.length===1&&Rt[0].type==="genfrac";Qt&&be>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(ve["@"]=ve["?"],Ie=!1,[ht,Rt]=V0(a,y,Ke,b)):be>=0&&a.deleteAtoms([be,a.position]);const{parent:er}=a.at(a.position),Qr=er.hasEmptyBranch("body");if(Qt&&ht!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&er instanceof Xa&&er.leftDelim==="("&&Qr){const ri=er.parent,zr=er.parentBranch;ri.removeChild(er),ri.setChildren(Rt,zr)}const Jn=a.at(a.position);Jn.parent.addChildrenAfter(Rt,Jn),ht==="latex"&&typeof y=="string"&&(er==null?void 0:er.type)==="root"&&Qr&&!Ie&&(er.verbatimLatex=y),a.silenceNotifications=pe;const Nr=Rt[Rt.length-1];if(b.selectionMode==="placeholder"){const ri=Rt.flatMap(zr=>[zr,...zr.children]).find(zr=>zr.type==="placeholder");if(ri){const zr=a.offsetOf(ri);a.setSelection(zr-1,zr),a.announce("move")}else Nr&&(a.position=a.offsetOf(Nr))}else b.selectionMode==="before"||(b.selectionMode==="after"?Nr&&(a.position=a.offsetOf(Nr)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(Nr)));return a.contentDidChange({data:re,inputType:"insertText"}),a.silenceNotifications=oe,!0}};function V0(a,y,b,E){var ee;let re,oe=[];if(typeof y!="string"||E.format==="math-json"){const pe=window.MathfieldElement.computeEngine;if(!pe)return["math-json",[]];[re,y]=["latex",pe.box(y).latex],oe=Jo(y,{context:a.mathfield.context})}else typeof y=="string"&&E.format==="ascii-math"?([re,y]=Oc(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),oe=Jo(y,{context:a.mathfield.context}),re!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Zf(oe)):(E.format==="auto"||(ee=E.format)!=null&&ee.startsWith("latex"))&&(E.format==="auto"&&([re,y]=Oc(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),E.format==="latex"&&([,y]=yl(y)),oe=Jo(y,{context:a.mathfield.context,args:b}),E.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Zf(oe));return hc(oe,E.style),[re!=null?re:"latex",oe]}function nv(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof Xa&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function Zf(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof Xa&&b.leftDelim==="("){let E=0,ee=0,re=0;for(let oe=0;b.body[oe];oe++)b.body[oe].type==="genfrac"&&(E++,ee=oe),re++;re===0&&E===1&&(a[y]=b.body[ee])}}for(const y of a){for(const b of y.branches)if(!y.hasEmptyBranch(b)){Zf(y.branch(b));const E=nv(y.branch(b));E&&y.setChildren(E,b)}if(y instanceof wa)for(const b of y.cells)Zf(b)}}}function rv(a){let y=a.at(a.position);if(y.mode==="text"){for(;!y.isFirstSibling&&y.mode==="text";)y=y.leftSibling;return a.offsetOf(y)}const b=y;let E=!1;if(y.type==="mclose"){const ee=te[y.value];for(;!y.isFirstSibling&&!(y.type==="mopen"&&y.value===ee);)y=y.leftSibling;y.isFirstSibling||(y=y.leftSibling),E=!0}else y.type==="leftright"&&(y=y.leftSibling,E=!0);if(E)for(;!y.isFirstSibling&&(y.isFunction||G0(y));)y=y.leftSibling;else{const ee=[];for(;!y.isFirstSibling&&(G0(y)||ee.length>0);)y.type==="mclose"&&ee.unshift(y.value),y.type==="mopen"&&ee.length>0&&y.value===te[ee[0]]&&ee.shift(),y=y.leftSibling}return b===y?-1:a.offsetOf(y)}function G0(a){return a.isDigit()?!0:a.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(a.type)?!a.isExtensibleSymbol:!1}new tv;var iv=class extends ya{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"),Ao(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(Xo(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 re=av(y,a.mathfield.context);if(hc(re,b.style),!re)return!1;const oe=a.at(a.position),pe=oe.parent.addChildrenAfter(re,oe);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(pe)):pe&&(a.position=a.offsetOf(pe))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function av(a,y){return a=a.replace(/\\/g,"\\textbackslash "),a=a.replace(/#/g,"\\#"),a=a.replace(/\$/g,"\\$"),a=a.replace(/%/g,"\\%"),a=a.replace(/&/g,"\\&"),a=a.replace(/_/g,"\\_"),a=a.replace(/{/g,"\\textbraceleft "),a=a.replace(/}/g,"\\textbraceright "),a=a.replace(/lbrace/g,"\\textbraceleft "),a=a.replace(/rbrace/g,"\\textbraceright "),a=a.replace(/\^/g,"\\textasciicircum "),a=a.replace(/~/g,"\\textasciitilde "),a=a.replace(/£/g,"\\textsterling "),Jo(a,{context:y,parseMode:"text"})}new iv;function El(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var po=4,Cs=20,zo=2*(Cs+po),Uf=(a,y)=>`
|
|
|
<line x1="${a+Cs}" y1="${y+Cs}"
|
|
|
x2="${a>y?a+Cs:7*Cs+10*po}"
|
|
|
y2="${a<y?y+Cs:7*Cs+10*po}"/>
|
|
|
<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>`,Y0=(a,y)=>`
|
|
|
<line x1="${a+Cs}" y1="${y+Cs}"
|
|
|
x2="${a>y?a+Cs:7*Cs+10*po}"
|
|
|
y2="${a<y?y+Cs:7*Cs+10*po}"/>
|
|
|
<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>`,Vf=(a,y,b)=>`
|
|
|
<svg id="arrow" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<g transform="rotate(${b})" transform-origin="20 20">
|
|
|
<path class="font" d="m17.7,7.23h4.6c.52,0,.94.42.94.94v13.82c0,.52.42.94.94.94h3.39c.83,0,1.25,1.01.66,1.6l-7.56,7.56c-.37.37-.96.37-1.32,0l-7.56-7.56c-.59-.59-.17-1.6.66-1.6h3.39c.52,0,.94-.42.94-.94v-13.82c0-.52.42-.94.94-.94Z"/>
|
|
|
</g>
|
|
|
</svg>`,ov=`
|
|
|
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
viewBox=
|
|
|
"-2 -2 ${8*Cs+10*po+5} ${8*Cs+10*po+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${zo+po}"
|
|
|
height="${3*zo}"
|
|
|
width="${zo}"
|
|
|
rx="${zo/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${zo+po}"
|
|
|
y="0"
|
|
|
height="${zo}"
|
|
|
width="${3*zo}"
|
|
|
rx="${zo/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${Vf(2*(po+zo),2*po+3*zo,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${Vf(2*(po+zo),2*po+zo,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${Vf(2*po+3*zo,2*(po+zo),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${Vf(2*po+zo,2*(po+zo),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${Uf(2*po+zo,po)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${Y0(2*po+2*zo,po)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${Uf(2*po+3*zo,po)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${Uf(po,2*po+zo)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${Y0(po,2*po+2*zo)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${Uf(po,2*po+3*zo)}
|
|
|
</g>
|
|
|
</svg>`,sv=a=>`
|
|
|
<svg id="matrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","matrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/></svg>`,lv=a=>`
|
|
|
<svg id="pmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","pmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-3.96,4.6-3.96,11.4,0,16"/>
|
|
|
<path class="cls-2" d="m22,4c3.96,4.6,3.96,11.4,0,16"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/></svg>`,X0=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>`,cv=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>`,uv=a=>`
|
|
|
<svg id="vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","vmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
<line class="cls-2" x1="4" y1="4" x2="4" y2="20"/>
|
|
|
<line class="cls-2" x1="24" y1="4" x2="24" y2="20"/>
|
|
|
</svg>`,dv=a=>`
|
|
|
<svg id="Vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="-3.5 -3 35 30"
|
|
|
data-command='["setEnvironment","Vmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
<line class="cls-2" x1="6" y1="4" x2="6" y2="20"/>
|
|
|
<line class="cls-2" x1="22" y1="4" x2="22" y2="20"/>
|
|
|
<line class="cls-2" x1="2" y1="4" x2="2" y2="20"/>
|
|
|
<line class="cls-2" x1="26" y1="4" x2="26" y2="20"/>
|
|
|
</svg>`,fv=a=>`
|
|
|
<svg id="cases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","cases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m10,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<circle cx="13" cy="8" r="1"/>
|
|
|
<circle cx="13" cy="16" r="1"/>
|
|
|
<circle cx="21" cy="8" r="1"/>
|
|
|
<circle cx="21" cy="16" r="1"/>
|
|
|
</svg>`,hv=a=>`
|
|
|
<svg id="rcases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","rcases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m18,20c1.1,0,2-.9,2-2v-3c0-1.66.9-3,2-3-1.1,0-2-1.34-2-3v-3c0-1.1-.9-2-2-2"/>
|
|
|
<circle cx="15" cy="8" r="1"/>
|
|
|
<circle cx="15" cy="16" r="1"/>
|
|
|
<circle cx="7" cy="8" r="1"/>
|
|
|
<circle cx="7" cy="16" r="1"/>
|
|
|
</svg>`,Rh={matrix:sv,pmatrix:lv,bmatrix:cv,Bmatrix:X0,vmatrix:uv,Vmatrix:dv},Fh={cases:fv,rcases:hv,Bmatrix:X0};function pv(a){var y,b;const E=(y=a.model.parentEnvironment)==null?void 0:y.array;if(!E)return;let ee=0;E.forEach(Qt=>{(!ee||Qt.length>ee)&&(ee=Qt.length)});let re=document.getElementById("mathlive-environment-popover");re||(re=Af("mathlive-environment-popover"),ks("environment-popover"),ks("core"),re.setAttribute("aria-hidden","true"));let oe;const pe=re.querySelector(".MLEP__environment-controls");pe?oe=pe:(oe=document.createElement("div"),re.innerHTML="",re.appendChild(oe)),oe.className="MLEP__environment-controls",oe.style.display="flex",oe.style.width="100%",oe.style.height="100%",oe.style.boxSizing="border-box",oe.innerHTML=ov;let ve=[],be="";const Ie=a.model.parentEnvironment.environmentName;if(fs(Ie)){const Qt=gv(Ie);be=Rh[Qt]("active");const er=Rh,{[Qt]:Qr}=er,Jn=ot(er,[De(Qt)]);ve=Object.values(Jn).map(Nr=>Nr("inactive"))}else if(hs(Ie)){const Qt=vv(Ie);be=Fh[Qt]("active");const er=Fh,{[Qt]:Qr}=er,Jn=ot(er,[De(Qt)]);ve=Object.values(Jn).map(Nr=>Nr("inactive"))}else No(Ie)&&(be=Rh.matrix("active"),ve=Object.values(Fh).map(Qt=>Qt("inactive")));const Ke=document.createElement("div");Ke.className="MLEP__environment-delimiter-controls",Ke.style.display="flex",Ke.style.flexDirection="column",Ke.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${be}
|
|
|
${ve.join("")}
|
|
|
</div>`,be&&oe.appendChild(Ke),oe.querySelectorAll("[data-command]").forEach(Qt=>{const er=Qt.dataset.command;let Qr=er;try{Qr=JSON.parse(er)}catch(Jn){}Qt.addEventListener("mousedown",Jn=>Jn.preventDefault()),Qr&&Qt.addEventListener("click",()=>a.executeCommand(Qr))});const Rt=(b=a.field)==null?void 0:b.getBoundingClientRect();Rt&&(re.style.top=`${window.scrollY+(Rt.top-re.clientHeight-15)}px`,re.style.left=`${Rt.left+20}px`,re.classList.add("is-visible"))}function _h(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function mv(){document.getElementById("mathlive-environment-popover")&&(bh("mathlive-environment-popover"),x("environment-popover"),x("core"))}function Gf(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&xo(b.environmentName)){const E=a.options.environmentPopoverPolicy;y=E==="auto"||E==="on"}}y?pv(a):_h()}function gv(a){return a.replace("*","")}function vv(a){return a==="dcases"?"cases":a}function Q0(a){const y=getComputedStyle(a).direction;return y==="ltr"||y==="rtl"?y:"ltr"}function J0(a,y,b){return y==="left"||y==="leading"&&b==="ltr"||y==="trailing"&&b==="rtl"?a.left:a.right}function zh(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="rtl"||b==="end"&&E==="ltr"||b==="top"||b==="right"?Math.max(0,a-y):a}function yv(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="ltr"||b==="end"&&E==="rtl"||b==="top"||b==="right"?a:a-y}function bv(a,y){var b,E,ee;const re=(b=Q0(a))!=null?b:"ltr";a.style.position="fixed",a.style.left="",a.style.top="",a.style.right="",a.style.bottom="",a.style.height="",a.style.width="";const oe=a.getBoundingClientRect(),pe=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let ve=Math.min(pe,(E=y.height)!=null?E:oe.height),be=zh(y.location.y,ve,y.verticalPos,re);be+ve>window.innerHeight-8&&(y.alternateLocation?(be=zh(y.alternateLocation.y,ve,y.verticalPos,re),be+ve>window.innerHeight-8&&(be=void 0)):be=void 0),Number.isFinite(be)||(be=Math.max(8,window.innerHeight-8-ve),8+ve>window.innerHeight-8&&(a.style.bottom="8px")),ve=Math.min(be+ve,window.innerHeight-8)-be;const Ie=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let Ke=Math.min(Ie,(ee=y.width)!=null?ee:oe.width),ht=zh(y.location.x,Ke,y.horizontalPos,re);ht+Ke>window.innerWidth-8&&(y.alternateLocation?(ht=yv(y.alternateLocation.x,Ke,y.verticalPos,re),ht+Ke>window.innerWidth-8&&(ht=void 0)):ht=void 0),Number.isFinite(ht)||(ht=Math.max(8,window.innerWidth-8-Ke),8+Ke>window.innerWidth-8&&(a.style.right="8px")),Ke=Math.min(ht+Ke,window.innerWidth-8)-ht,re==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-ht-Ke).toString()}px`:a.style.left=`${Math.ceil(ht).toString()}px`,a.style.top=`${Math.ceil(be).toString()}px`,ve!==oe.height&&(a.style.height=`${Math.ceil(ve).toString()}px`),Ke!==oe.width&&(a.style.width=`${Math.ceil(Ke).toString()}px`)}function xv(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function Nu(a){return"submenu"in a}function Al(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function Hh(a){return"type"in a&&a.type==="divider"}function Kh(a){return"type"in a&&a.type==="heading"}var q0={};function Wh(a){let y=q0[a];if(!y){let b;switch(a){case"checkmark":b=`<span aria-hidden="true" class="ui-checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z"></path></svg>
|
|
|
</span>`;break;case"trailing-chevron":b='<span aria-hidden="true" class="ui-trailing-chevron"><svg focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg></span>';break;case"mixedmark":b='<span aria-hidden="true" class="ui-mixedmark"><svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 512 512"><path fill="currentColor" d="M0 256c0-13.3 10.7-24 24-24H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24z"/></svg></span>'}if(b){const E=document.createElement("template");E.innerHTML=b,q0[a]=E,y=E}}if(y){if("content"in y)return y.content.cloneNode(!0);const b=document.createElement("svg");return b.innerHTML=y.innerHTML,b}}var $0=80,ep=class{constructor(a,y){this._element=null;var b;this.parentMenu=y,this._declaration=a,Nu(a)?(this.type="submenu",this.submenu=new tp(a.submenu,{parentMenu:y,submenuClass:a.submenuClass,columnCount:a.columnCount})):this.type=(b=a.type)!=null?b:"command",this.hasCheck=Al(a)&&a.checked!==void 0}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var a,y;(a=this._abortController)==null||a.abort(),this._abortController=void 0,(y=this._element)==null||y.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var a;return(a=this._label)!=null?a:""}set label(a){a===void 0&&(a=""),a!==this._label&&(this._label=a,this.dirty=!0)}get visible(){return this._visible}set visible(a){a!==this._visible&&(this._visible=a,this.dirty=!0)}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this.element&&(a?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(a){this._checked=a,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(a){a!==this._tooltip&&(this._tooltip=a,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(a){a!==this._ariaLabel&&(this._ariaLabel=a,this.dirty=!0)}get active(){var a,y;return(y=(a=this.element)==null?void 0:a.classList.contains("active"))!=null?y:!1}set active(a){this.element&&this.element.classList.toggle("active",a)}updateState(a){var y,b,E;const ee=this._declaration;if(Hh(ee)){this.enabled=!1,this.checked=!1;return}Kh(ee)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Al(ee)&&(this.checked=Al(ee)&&((y=Ru(ee.checked,a))!=null?y:!1)),(Al(ee)||Nu(ee))&&(this.enabled=(b=Ru(ee.enabled,a))!=null?b:!0,this.visible=(E=Ru(ee.visible,a))!=null?E:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(Al(ee)||Kh(ee)||Nu(ee))&&(this.label=Ru(ee.label,a),this.tooltip=Ru(ee.tooltip,a),this.ariaLabel=Ru(ee.ariaLabel,a)),this._element&&this.updateElement()}set dirty(a){console.assert(a===!0),a&&this.parentMenu&&(this.parentMenu.dirty=!0)}updateElement(){if(!this.visible||!this.element)return;const a=this.element;a.textContent="",this.enabled?a.removeAttribute("aria-disabled"):a.setAttribute("aria-disabled","true"),this.checked===!0?(a.setAttribute("aria-checked","true"),a.append(Wh("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(Wh("mixedmark"))):a.removeAttribute("aria-checked"),this.ariaLabel&&a.setAttribute("aria-label",this.ariaLabel);const y=document.createElement("span");if(y.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&y.classList.add("heading"),y.innerHTML=this.label,a.append(y),this._tooltip&&a.setAttribute("data-tooltip",this._tooltip),Al(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=vh(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Wh("trailing-chevron"))}get element(){if(this._element)return this._element;if(Hh(this._declaration)){const b=document.createElement("li");return b.setAttribute("part","menu-divider"),b.setAttribute("role","divider"),this._element=b,b}const a=document.createElement("li");this._element=a,(Al(this._declaration)||Kh(this._declaration)||Nu(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(!Al(this._declaration))return;const a=new CustomEvent("menu-select",{cancelable:!0,bubbles:!0,detail:{modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data}});this.parentMenu.dispatchEvent(a)&&typeof this._declaration.onMenuSelect=="function"&&this._declaration.onMenuSelect({modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data})}handleEvent(a){var y;if(!(!this.visible||!this.enabled)){if(a.type==="click"){this.rootMenu.state==="modal"&&this.select(),a.stopPropagation(),a.preventDefault();return}if(a.type==="pointerenter"){const b=a;this.rootMenu.cancelDelayedOperation(),this.parentMenu.isSubmenuOpen&&((y=this.parentMenu.activeMenuItem)!=null&&y.movingTowardSubmenu(b))?this.rootMenu.scheduleOperation(()=>{this.parentMenu.activeMenuItem=this,this.openSubmenu()}):(this.parentMenu.activeMenuItem=this,this.openSubmenu({withDelay:!0}));return}if(a.type==="pointerleave"){this.rootMenu.activeSubmenu===this.parentMenu&&(this.parentMenu.activeMenuItem=null);return}if(a.type==="pointerup"){this.rootMenu.state!=="modal"&&this.select(),a.stopPropagation(),a.preventDefault();return}}}select(){if(this.rootMenu.cancelDelayedOperation(),this.type==="submenu"){this.openSubmenu();return}this.active=!1,setTimeout(()=>{this.active=!0,setTimeout(()=>{this.rootMenu.hide(),this.dispatchSelect()},$0)},$0)}openSubmenu(a){var y;if(this.type!=="submenu"||!this.element)return;if((y=a==null?void 0:a.withDelay)!=null&&y){this.rootMenu.scheduleOperation(()=>this.openSubmenu());return}const b=this.element.getBoundingClientRect(),E=Q0(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:J0(b,"trailing",E),y:b.top-4},alternateLocation:{x:J0(b,"leading",E),y:b.top-4}})}movingTowardSubmenu(a){if(!this.element||this.type!=="submenu")return!1;const y=this.rootMenu.lastMoveEvent;if(!y)return!1;const b=a.timeStamp-y.timeStamp;if(b>500)return!1;const E=a.clientX-y.clientX;if(wv(E,y.clientY-a.clientY,b)<=.2)return!1;let re="right";if(this.submenu.element){const oe=this.submenu.element.getBoundingClientRect(),pe=this.element.getBoundingClientRect();oe.left<pe.left+pe.width/2&&(re="left")}return re==="right"?E>0:E<0}};function wv(a,y,b){return Math.hypot(a,y)/b}function Ru(a,y){return a===void 0||typeof a!="function"?a:(y!=null||(y={alt:!1,control:!1,shift:!1,meta:!1}),a(y))}var tp=class Zu{constructor(y,b){this._element=null,this._activeMenuItem=null,this._dirty=!0;var E,ee;this.parentMenu=(E=b==null?void 0:b.parentMenu)!=null?E:null,this._submenuClass=b==null?void 0:b.submenuClass,this.columnCount=(ee=b==null?void 0:b.columnCount)!=null?ee:1,this.isSubmenuOpen=!1,this.menuItems=y}get children(){return this._menuItems}set menuItems(y){const b=this.parentMenu;this.dispose(),this.parentMenu=b,y=[...y],this._menuItems=y.map(E=>E.onCreate?E.onCreate(E,this):new ep(E,this)),this.hasCheck=void 0,this.dirty=!0}dispose(){var y;this.hide(),this._element&&this._element.remove(),this._abortController&&this._abortController.abort(),(y=this._menuItems)==null||y.forEach(b=>b.dispose()),this._menuItems=[],this._activeMenuItem=null,this.parentMenu=null}handleEvent(y){if(y.type==="wheel"&&this._element){const b=y;this._element.scrollBy(0,b.deltaY),y.stopPropagation()}}dispatchEvent(y){return this.rootMenu.dispatchEvent(y)}get rootMenu(){return this.parentMenu.rootMenu}updateState(y){var b,E,ee;this._menuItems.forEach(be=>be.updateState(y));const re=this.hasCheck;this.hasCheck=this._menuItems.some(be=>be.visible&&be.hasCheck),this.hasCheck!==re&&this._menuItems.forEach(be=>be.updateState(y));let oe,pe=0;for(const be of this._menuItems)be.type==="heading"?(oe&&pe===0&&(oe.visible=!1),oe=be,pe=0):be.type==="divider"&&oe?(oe.visible=pe>0,oe=void 0,pe=0):oe&&be.visible&&(pe+=1);oe&&(oe.visible=pe>0);let ve=!0;for(const be of this._menuItems)be.type==="divider"?(be.visible=!ve,ve=!0):be.visible&&(ve=!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,re;if(this.rootMenu.cancelDelayedOperation(),y!==this._activeMenuItem){if(this.activeMenuItem){const oe=this.activeMenuItem;oe.active=!1,(b=oe.submenu)==null||b.hide()}if(!((E=y==null?void 0:y.visible)==null||E)){this._activeMenuItem=null;return}this._activeMenuItem=y,y&&(y.active=!0)}y?(ee=y.element)==null||ee.focus({preventScroll:!0}):(re=this._element)==null||re.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),re=1;for(;ee>=b&&ee<=E;){ee+=y>0?1:-1;const oe=this._menuItems[ee];if(!oe)break;if(oe.visible&&oe.enabled){if(re===Math.abs(y))return this._menuItems[ee];re+=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 Zu._collator||(Zu._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),Zu._collator}findMenuItem(y){var b;this.updateIfDirty();const E=this._menuItems.filter(pe=>pe.type!=="divider"&&pe.visible&&pe.enabled);if(E.length===0)return null;const ee=Math.max(...E.map(pe=>pe.label.length))-y.length;if(ee<0)return null;let re=null,oe=0;for(;oe<ee&&!re;)re=(b=E.find(pe=>Zu.collator.compare(y,pe.label.substring(oe,y.length))===0))!=null?b:null,oe++;return re}show(y){return!this.visible||!y.container?!1:(this.updateElement(),y.container.appendChild(this.element),nn()&&(this.element.popover="manual",this.element.showPopover()),y.location&&bv(this.element,{location:y.location,alternateLocation:y.alternateLocation,verticalPos:"bottom",horizontalPos:"start"}),this.element.focus({preventScroll:!0}),this.parentMenu&&(this.parentMenu.openSubmenu=this),!0)}hide(){var y,b,E,ee,re;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),nn()&&((y=this._element)!=null&&y.popover)&&this.element.hidePopover(),(E=(b=this.parentMenu)==null?void 0:b.element)==null||E.focus(),(re=(ee=this._element)==null?void 0:ee.parentNode)==null||re.removeChild(this._element)}set openSubmenu(y){var b,E,ee,re;const oe=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((E=this.activeMenuItem.element)==null||E.setAttribute("aria-expanded",oe.toString())),(re=(ee=this.activeMenuItem)==null?void 0:ee.element)==null||re.classList.toggle("is-submenu-open",oe),this.isSubmenuOpen=oe}},np=class rm extends tp{constructor(y,b){var E;super(y),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(E=b==null?void 0:b.host)!=null?E:null,this.isDynamic=y.some(rp),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(y){Hm(this._modifiers,y)||(this._modifiers=y,this.dirty=!0)}get activeSubmenu(){let y=this;for(;y.isSubmenuOpen;)y=y.activeMenuItem.submenu;return y}set dirty(y){this._updating||(console.assert(y===!0),this._dirty!==y&&(this._dirty=!0,y&&setTimeout(()=>{this.updateState(this.modifiers),this.updateElement()})))}updateState(y){this._updating=!0,this.modifiers=y!=null?y:this.modifiers,super.updateState(this.modifiers),this._updating=!1}handleKeyupEvent(y){this.isDynamic&&(this.modifiers=Fc(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,E,ee;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=Fc(y));let re=!0;const oe=this.activeSubmenu,pe=oe.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":pe==null||pe.select(Fc(y));break;case"ArrowRight":if((pe==null?void 0:pe.type)==="submenu")pe.select(Fc(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!pe)oe.activeMenuItem=oe.firstMenuItem;else{const ve=(b=oe.getMenuItemColumn(pe))!=null?b:-1;if(ve>=0&&ve<((E=oe.columnCount)!=null?E:1)-1){const be=oe.nextMenuItem(1);be&&(oe.activeMenuItem=be)}}break;case"ArrowLeft":if(oe===this.rootMenu)pe||(oe.activeMenuItem=oe.firstMenuItem);else if((pe&&(ee=oe.getMenuItemColumn(pe))!=null?ee:-1)<=0||!pe){oe.hide();const be=oe.parentMenu.activeMenuItem;if(be){const{element:Ie}=be;Ie==null||Ie.focus(),Ie==null||Ie.classList.remove("is-submenu-open")}}else{const be=oe.nextMenuItem(-1);be&&(oe.activeMenuItem=be)}break;case"ArrowDown":oe.activeMenuItem=oe.nextMenuItem(oe.columnCount);break;case"ArrowUp":oe.activeMenuItem=oe.nextMenuItem(-oe.columnCount);break;case"Home":case"PageUp":oe.activeMenuItem=oe.firstMenuItem;break;case"End":case"PageDown":oe.activeMenuItem=oe.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const ve=oe.findMenuItem(this.typingBuffer);ve&&(oe.activeMenuItem=ve),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(Sf(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const ve=oe.findMenuItem(this.typingBuffer);ve&&(oe.activeMenuItem=ve),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else re=!1}re&&(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 wl.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),wl.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),wl.state==="open"&&wl.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(me(xe({},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,wl.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(y){this.cancelDelayedOperation();const b=rm.SUBMENU_DELAY;if(b<=0){y();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,y()},b)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};np.SUBMENU_DELAY=120;var Sv=np;function rp(a){return Hh(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(Al(a)||Nu(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||Al(a)&&typeof a.checked=="function"?!0:Nu(a)?a.submenu.some(rp):!1}var Yf=class{};Yf.DELAY=300,Yf.MAX_DISTANCE=10;function Cv(a){return new Promise((y,b)=>{const E=wf(a);E||y(!1);let ee=E;const re=setTimeout(()=>{oe.abort(),y(xv(ee,E)<Yf.MAX_DISTANCE)},Yf.DELAY),oe=new AbortController,pe=oe.signal;for(const ve of["pointermove","pointerup","pointercancel"])window.addEventListener(ve,be=>{if(be.type==="pointerup"||be.type==="pointercancel")clearTimeout(re),oe.abort(),y(!1);else if(be.type==="pointermove"){const Ie=wf(be);Ie&&(ee=Ie)}},{passive:!0,signal:pe})})}function ip(a,y,b){return gc(this,null,function*(){if(a.type==="contextmenu"){const E=a;if(b.show({target:y,location:wf(E),modifiers:Fc(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:Fc(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=wf(a);if(yield Cv(a))return b.state!=="closed"?!1:(b.show({target:y,location:ee}),!0)}return!1})}var ap={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};Ot(Object.keys(ap),"{body:auto}",{createAtom:a=>new z(me(xe({},a),{body:yt(a.args[0]),accentChar:ap[a.command.slice(1)]}))}),Ot(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=sn(yt(a.args[0]));return new z(me(xe({},a),{body:yt(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),Ot(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new z(me(xe({},a),{body:yt(a.args[0]),svgAccent:"overarc"}))}),Ot(["underarc","underparen"],"{body:auto}",{createAtom:a=>new Gs(me(xe({},a),{body:yt(a.args[0]),svgBelow:"underarc"}))}),Ot("utilde","{body:auto}",{createAtom:a=>{const y=yt(a.args[0]),b=sn(y),E="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new Gs(me(xe({},a),{body:y,svgBelow:E,boxType:rc(y)}))}}),Ot("^","{:string}",{createAtom:a=>{var y;return new Ar(me(xe({},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:"^"}))}}),Ot("`","{:string}",{createAtom:a=>{var y;return new Ar(me(xe({},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:"`"}))}}),Ot("'","{:string}",{createAtom:a=>{var y;return new Ar(me(xe({},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:"'"}))}}),Ot('"',"{:string}",{createAtom:a=>{var y,b;return new Ar(me(xe({},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]:'"'}))}}),Ot(".","{:string}",{createAtom:a=>{var y,b;return new Ar(me(xe({},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]:"."}))}}),Ot("=","{:string}",{createAtom:a=>{var y,b;return new Ar(me(xe({},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]:"="}))}}),Ot("~","{:string}",{createAtom:a=>{var y;return new Ar(me(xe({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"}))}}),Ot("c","{:string}",{createAtom:a=>{var y;return new Ar(me(xe({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),Ot("enclose","{notation:string}[style:string]{body:auto}",{createAtom:a=>{var y,b;const E=a.args,ee={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(y=a.style)!=null?y:{}};if(E[1]){const oe=E[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const pe of oe){const ve=pe.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(ve)ee.strokeWidth=ve[1],ee.strokeStyle=ve[2],ee.strokeColor=ve[3];else{const be=pe.match(/\s*([a-z]*)\s*=\s*"(.*)"/);be&&(be[1]==="mathbackground"?ee.backgroundcolor=be[2]:be[1]==="mathcolor"?ee.strokeColor=be[2]:be[1]==="padding"?ee.padding=be[2]:be[1]==="shadow"&&(ee.shadow=be[2]))}}ee.strokeStyle==="dashed"?ee.svgStrokeStyle="5,5":ee.strokeStyle==="dotted"&&(ee.svgStrokeStyle="1,5")}ee.borderStyle=`${ee.strokeWidth} ${ee.strokeStyle} ${ee.strokeColor}`;const re={};return((b=E[0])!=null?b:"").split(/[, ]/).filter(oe=>oe.length>0).forEach(oe=>{re[oe.toLowerCase()]=!0}),new bd(a.command,yt(E[2]),re,ee)}}),Ot("cancel","{body:auto}",{createAtom:a=>{var y;return new bd(a.command,yt(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:{}})}}),Ot("bcancel","{body:auto}",{createAtom:a=>{var y;return new bd(a.command,yt(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:{}})}}),Ot("xcancel","{body:auto}",{createAtom:a=>{var y;return new bd(a.command,yt(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:{}})}}),Ot(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new Gs(me(xe({},a),{body:yt((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),Ot("overbrace","{:auto}",{createAtom:a=>new Gs(me(xe({},a),{body:yt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),Ot(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new Gs(me(xe({},a),{body:yt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),Ot(["underbrace"],"{:auto}",{createAtom:a=>new Gs(me(xe({},a),{body:yt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),Ot(["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,re;return new Gs(me(xe({},a),{svgBody:a.command.slice(1),above:((b=yt((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:yt((E=a.args)==null?void 0:E[1]),below:(re=yt((ee=a.args)==null?void 0:ee[0]))!=null?re: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)}`}),Ot(["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 Rc(a.command.slice(1),me(xe({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),Ot(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new Rc({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],me(xe({},a),{limits:"over-under",variant:"main"}))}),Ot(["lim","mod"],"",{ifMode:"math",createAtom:a=>new Rc(a.command.slice(1),me(xe({},a),{limits:"over-under",variant:"main"}))}),Ot(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new Rc(a.command.slice(1),me(xe({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),Ot(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new Ar(me(xe({},a),{body:yt(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 ei("\xB0",{style:me(xe({},a.style),{variant:"normal",variantStyle:"up"})});return new ei([b,ee],{type:"inner",isSelected:a.isSelected,caret:E})}}),Ot("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new o0(me(xe({},a),{body:yt(a.args[1]),index:a.args[0]?yt(a.args[0]):void 0}))}),Ot(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=xe({},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 Mu(E[0]?yt(E[0]):[new ia],E[1]?yt(E[1]):[new ia],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}`:ho(a.command,b,E)}}),Ot(["brace","brack"],"",{infix:!0,createAtom:a=>new Mu(yt(a.args[0]),yt(a.args[1]),me(xe({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>Da([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),Ot(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const E=a.args;return a.command==="\\choose"&&(y="(",b=")"),new Mu(yt(E[0]),yt(E[1]),me(xe({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>Da([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),Ot(["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 Mu(yt(E[0]),yt(E[1]),me(xe({},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)}`}),Ot("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new Mu(yt(a.args[0]),yt(a.args[1]),me(xe({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),Ot(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:a=>new fh({coprod:"\u2210",bigvee:"\u22C1",bigwedge:"\u22C0",biguplus:"\u2A04",bigcap:"\u22C2",bigcup:"\u22C3",intop:"\u222B",prod:"\u220F",sum:"\u2211",bigotimes:"\u2A02",bigoplus:"\u2A01",bigodot:"\u2A00",bigsqcup:"\u2A06",smallint:"\u222B"}[a.command.slice(1)],me(xe({},a),{limits:"auto",variant:"main"}))}),Ot("smallint","",{ifMode:"math",createAtom:a=>new Rc("\u222B",me(xe({},a),{limits:"adjacent",variant:"main"}))});var op={int:"\u222B",iint:"\u222C",iiint:"\u222D",oint:"\u222E",oiint:"\u222F",oiiint:"\u2230",intclockwise:"\u2231",varointclockwise:"\u2232",ointctrclockwise:"\u2233",intctrclockwise:"\u2A11",sqcup:"\u2294",sqcap:"\u2293",uplus:"\u228E",wr:"\u2240",amalg:"\u2A3F",Cap:"\u22D2",Cup:"\u22D3",doublecap:"\u22D2",doublecup:"\u22D3"};Ot(Object.keys(op),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=op[y.slice(1)];return new fh(b,me(xe({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),Ot(["Re","Im"],"",{ifMode:"math",createAtom:a=>new Rc({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],me(xe({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),Ot("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new r0(me(xe({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),Ot("the","{:value}",{createAtom:a=>new Ar(me(xe({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const E=new Na({parent:y},a.style);let ee="";a.isSelected&&(ee+=" ML__selected");const re=E.evaluate(a.args[0]);return new ei(((b=Oo(re))!=null?b:"").split("").map(oe=>new ei(oe,{type:"ord",classes:ee,mode:a.mode,isSelected:a.isSelected,style:xe({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=Oo(a.args[0]))!=null?y:"\\relax"}`}}),Ot("mathtip","{:auto}{:math}",{createAtom:a=>new hh(me(xe({},a),{body:yt(a.args[0]),tooltip:yt(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Ar.serialize([a.tooltip],me(xe({},y),{defaultMode:"math"}))}}`}),Ot("texttip","{:auto}{:text}",{createAtom:a=>new hh(me(xe({},a),{body:yt(a.args[0]),tooltip:yt(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Ar.serialize([a.tooltip],me(xe({},y),{defaultMode:"text"}))}}`}),Ot("error","{:math}",{createAtom:a=>new Ar(me(xe({},a),{body:yt(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),Ot("ensuremath","{:math}",{createAtom:a=>new Ar(me(xe({},a),{body:yt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(me(xe({},y),{defaultMode:"math"}))}}`}),Ot("color","{:value}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=Oo(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),Ot("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=Oo(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),Ot("boxed","{content:math}",{createAtom:a=>new Bo(me(xe({},a),{body:yt(a.args[0]),framecolor:{string:"black"}}))}),Ot("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimBackgroundColor:(E=Oo(y[0]))!=null?E:void 0,backgroundColor:b.toBackgroundColor((ee=y[0])!=null?ee:{string:"yellow"})}}}),Ot("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new Bo(me(xe({},a),{body:yt(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(me(xe({},y),{defaultMode:"text"})):ho(a.command,(b=Oo(a.framecolor))!=null?b:"",(E=Oo(a.backgroundcolor))!=null?E:"",a.bodyToLatex(me(xe({},y),{defaultMode:"text"})))}}),Ot("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],E=yt(a.args[1]);return b?new Bo(me(xe({},a),{body:E,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new Bo(me(xe({},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 re=[];a.padding&&re.push((b=Oo(a.padding))!=null?b:""),a.border&&re.push(`border: ${a.border}`),a.backgroundcolor&&re.push((E=Oo(a.backgroundcolor))!=null?E:""),ee+=`[${re.join(",")}]`}return ho(ee,a.bodyToLatex(y))}}),Ot(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new Ar(me(xe({},a),{body:yt(a.args[0])})),render:(a,y)=>{const b=new Na({parent:y,mathstyle:a.command.slice(1)},a.style),E=Ar.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):`{${Da([a.command,a.bodyToLatex(y)])}}`}),Ot(["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]})}),Ot("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),Ot("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),Ot("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),Ot("selectfont","",{ifMode:"text",applyStyle:()=>({})}),Ot("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),Ot(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new Ar(me(xe({},a),{body:yt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),Ot("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),Ot("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),Ot("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),Ot("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),Ot("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),Ot("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),Ot("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),Ot("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),Ot("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),Ot("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),Ot("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),Ot("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),Ot("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),Ot("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),Ot("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),Ot("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),Ot("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),Ot("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),Ot("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),Ot("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),Ot("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),Ot("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),Ot("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),Ot("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),Ot("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),Ot("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),Ot("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),Ot(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),Ot(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),Ot("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),Ot("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),Ot("mbox","{:text}",{ifMode:"math",createAtom:a=>new Ar(me(xe({},a),{type:"mord",body:yt(a.args[0]),mode:"math"})),serialize:(a,y)=>ho("\\mbox",a.bodyToLatex(me(xe({},y),{defaultMode:"text"})))}),Ot("text","{:text}",{ifMode:"math",applyMode:"text"}),Ot(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new Ar(me(xe({},a),{body:yt(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:""})}}),Ot(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new Ar(me(xe({},a),{body:yt(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}}),Ot("htmlData","{data:string}{content:auto}",{createAtom:a=>new Ar(me(xe({},a),{body:yt(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}}),Ot(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new Ar(me(xe({},a),{body:yt(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}}),Ot("em","{:rest}",{createAtom:a=>new Ar(me(xe({},a),{body:yt(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"})}),Ot("emph","{:auto}",{createAtom:a=>new Ar(me(xe({},a),{body:yt(a.args[1])})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\emph{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__emph",boxType:"lift"})});var sp={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}};Ot(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new i0(me(xe({},a),{delim:(y=a.args[0])!=null?y:".",size:sp[a.command].size,delimType:sp[a.command].mclass}))}}),Ot(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new Sd(me(xe({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),Ot(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new Sd(me(xe({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),Ot("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new Ar(a),render:(a,y)=>{let b=0;const E=y.mathstyle.id;(E===Ic||E===ml)&&(b=1),(E===Hl||E===cs)&&(b=2),(E===Ms||E===Yo)&&(b=3);const ee=yt(a.args[b]);return Ar.createBox(y,ee)},serialize:(a,y)=>`\\mathchoice{${Ar.serialize(a.args[0],y)}}{${Ar.serialize(a.args[1],y)}}{${Ar.serialize(a.args[2],y)}}{${Ar.serialize(a.args[3],y)}}`}),Ot("mathop","{:auto}",{createAtom:a=>new Ar(me(xe({},a),{type:"mop",body:yt(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let E=Ar.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 ei(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[ho(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)),Da(b)}}),Ot(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new Ar(me(xe({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:yt(a.args[0])}))}),Ot(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=yt(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 Ar(me(xe({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let E=Ar.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 ei(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[ho(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)),Da(b)}}),Ot(["char","unicode"],"{charcode:value}",{createAtom:a=>new Ar(me(xe({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${Oo((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)}}),Ot("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new Ar(a),render:(a,y)=>{var b,E,ee;const re=new Na({parent:y,mathstyle:"textstyle"},a.style),oe=re.toEm((b=a.args[0])!=null?b:{dimension:0}),pe=re.toEm((E=a.args[1])!=null?E:{dimension:10}),ve=re.toEm((ee=a.args[2])!=null?ee:{dimension:10}),be=new ei(null,{classes:"rule",type:"ord"});return be.width=pe,be.height=ve+oe,be.depth=-oe,be.setStyle("border-right-width",pe,"em"),be.setStyle("border-top-width",ve,"em"),be.setStyle("border-color",a.style.color),be.setStyle("vertical-align",oe,"em"),a.isSelected&&be.setStyle("opacity","50%"),a.bind(re,be),a.caret&&(be.caret=a.caret),be.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${Oo(a.args[0])}]`:""}{${Oo(a.args[1])}}{${Oo(a.args[2])}}`}),Ot(["overline","underline"],"{:auto}",{createAtom:a=>new Ar(me(xe({},a),{body:yt(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),E=new Na({parent:y,mathstyle:"cramp"},a.style),ee=Ar.createBox(E,a.body);if(!ee)return null;const re=E.metrics.defaultRuleThickness/E.scalingFactor,oe=new ei(null,{classes:b+"-line"});oe.height=re,oe.maxFontSize=re*1.125*E.scalingFactor;let pe;return b==="overline"?pe=new ao({shift:0,children:[{box:ee},3*re,{box:oe},re]}):pe=new ao({top:ee.height,children:[re,{box:oe},3*re,{box:ee}]}),a.caret&&(pe.caret=a.caret),new ei(pe,{classes:b,type:"ignore"})}}),Ot("overset","{:auto}{base:auto}",{createAtom:a=>{const y=yt(a.args[1]);return new Gs(me(xe({},a),{above:yt(a.args[0]),body:y,skipBoundary:!1,boxType:rc(y)}))},serialize:(a,y)=>ho(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),Ot("underset","{:auto}{base:auto}",{createAtom:a=>{const y=yt(a.args[1]);return new Gs(me(xe({},a),{below:yt(a.args[0]),body:y,skipBoundary:!1,boxType:rc(y)}))},serialize:(a,y)=>ho(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),Ot("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=yt(a.args[2]);return new Gs(me(xe({},a),{above:yt(a.args[0]),below:yt(a.args[1]),body:y,skipBoundary:!1,boxType:rc(y)}))},serialize:(a,y)=>ho(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),Ot(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new Gs(me(xe({},a),{body:yt(a.args[2]),above:yt(a.args[1]),below:yt(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>ho(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),Ot("smash","[:string]{:auto}",{createAtom:a=>{var y,b,E,ee;return new wd(me(xe({},a),{body:yt(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}))}}),Ot(["vphantom"],"{:auto}",{createAtom:a=>new wd(me(xe({},a),{body:yt(a.args[0]),isInvisible:!0,smashWidth:!0}))}),Ot(["hphantom"],"{:auto}",{createAtom:a=>new wd(me(xe({},a),{body:yt(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),Ot(["phantom"],"{:auto}",{createAtom:a=>new wd(me(xe({},a),{body:yt(a.args[0]),isInvisible:!0}))}),Ot("not","{:math}",{createAtom:a=>{const y=yt(a.args[0]);return y.length===0?new Ar(me(xe({},a),{type:"mrel",value:"\uE020"})):new Ar(me(xe({},a),{body:[new Nc(me(xe({},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{${Ar.serialize(b.group,y)}}`:`\\not${Ar.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":rc(yt(a.args[0])),ee=Ar.createBox(y,a.body,{type:E});return a.caret&&(ee.caret=a.caret),a.bind(y,ee)}}),Ot(["ne","neq"],"",{createAtom:a=>new Ar(me(xe({},a),{type:"mrel",body:[new Nc(me(xe({},a),{body:"\uE020",align:"right",boxType:"rel"})),new Ar(me(xe({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),Ot("rlap","{:auto}",{createAtom:a=>new Nc(me(xe({},a),{body:yt(a.args[0]),align:"right"}))}),Ot("llap","{:auto}",{createAtom:a=>new Nc(me(xe({},a),{body:yt(a.args[0]),align:"left"}))}),Ot("mathrlap","{:math}",{createAtom:a=>new Nc(me(xe({},a),{body:yt(a.args[0]),align:"left"}))}),Ot("mathllap","{:math}",{createAtom:a=>new Nc(me(xe({},a),{body:yt(a.args[0]),align:"left"}))}),Ot("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new Bo(me(xe({},a),{body:yt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return ho("\\raisebox",(b=Oo(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),Ot("raise","{:value}{:auto}",{createAtom:a=>{var y;return new Bo(me(xe({},a),{body:yt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return ho("\\raise",(b=Oo(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),Ot("lower","{:value}{:auto}",{createAtom:a=>{var y;return new Bo(me(xe({},a),{body:yt(a.args[1]),padding:{dimension:0},offset:(y=Us(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,E;return ho("\\lower",(E=Oo(Us((b=a.offset)!=null?b:{dimension:0},-1)))!=null?E:"0pt",a.bodyToLatex(y))}}),Me("0123456789/@.?!"),Ge(65,90),Ge(97,122),Me([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Me([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Me([["\\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]]),Me([["\\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"),Me([["\\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"]]),Me([["\\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"]]),Me([["\\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"),Me([["+",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"),Me([["\\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"),Me([["\\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]]),Me([["=",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"),Me([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Me([["\\wp",8472],["\\aleph",8501]]),Me([["\\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"),Me([["\\ ",160],["~",160]],"space"),Ot(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new Sd(a)}),Ot("space","",{createAtom:a=>new Sd(a)}),Me([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Me([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Me([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var lp="<mo>⁡</mo>",Xf="<mo>⁢</mo>";function Qf(a){return a.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function lo(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Ev(a,y,b){var E,ee,re,oe,pe,ve,be,Ie,Ke,ht,Rt;let Qt=!1;y=y!=null?y:a.atoms.length;let er="",Qr="",Jn=a.atoms[a.index];const Nr=(ee=(E=Jn.style)==null?void 0:E.variant)!=null?ee:"",ri=(oe=(re=Jn.style)==null?void 0:re.variantStyle)!=null?oe:"";let zr="";if(Nr||ri){const ea=xn(Jn.value,(pe=Jn.style)==null?void 0:pe.variant,(ve=Jn.style)==null?void 0:ve.variantStyle);if(ea!==Jn.value)return a.index+=1,er=`<mi${lo(Jn.id,b)}>${ea}</mi>`,Ul(er,a,b)||(a.mathML+=er,a.lastType="mi"),!0;zr=(be={upnormal:"normal",boldnormal:"bold",italicmain:"italic",bolditalicmain:"bold-italic","updouble-struck":"double-struck","double-struck":"double-struck",boldfraktur:"bold-fraktur",calligraphic:"script",upcalligraphic:"script",script:"script",boldscript:"bold-script",boldcalligraphic:"bold-script",fraktur:"fraktur","upsans-serif":"sans-serif","boldsans-serif":"bold-sans-serif","italicsans-serif":"sans-serif-italic","bolditalicsans-serif":"sans-serif-bold-italic",monospace:"monospace"}[ri+Nr])!=null?be:"",zr=` mathvariant="${zr}"`}const Fi={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(Jn.command==="!")return a.index+=1,er="<mo>!</mo>",Ul(er,a,b)||(a.mathML+=er,a.lastType="mo"),!0;if(Fi[Jn.command]){a.index+=1;let ea=`<mi${lo(Jn.id,b)}${zr}>${Fi[Jn.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(ea=Xf+ea),Ul(ea,a,b)||(a.mathML+=ea,a.lastType="mi"),!0}if(Jn.command==="\\operatorname")Qr=Fu(Jn.body),a.index+=1;else if(Nr||ri)for(;a.index<y&&(Jn.type==="mord"||Jn.type==="macro")&&!Jn.isDigit()&&Nr===((Ke=(Ie=Jn.style)==null?void 0:Ie.variant)!=null?Ke:"")&&ri===((Rt=(ht=Jn.style)==null?void 0:ht.variantStyle)!=null?Rt:"");)Qr+=Fu([Jn]),a.index+=1,Jn=a.atoms[a.index];else(Jn.type==="mord"||Jn.type==="macro")&&!Jn.isDigit()&&(Qr+=Fu([Jn]),a.index+=1);if(Qr.length>0){Qt=!0,er=`<mi${zr}>${Qr}</mi>`;const ea=a.lastType;er.endsWith(">f</mi>")||er.endsWith(">g</mi>")?(er+=lp,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(er)?"mo":"mi",Ul(er,a,b)||((ea==="mi"||ea==="mn"||ea==="mtext"||ea==="fence")&&(er=Xf+er),a.mathML+=er)}return Qt}function Av(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function Mv(a){let y=-1,b=a.index,E=!1,ee=!1;for(;b<a.atoms.length&&!E&&!ee;){const re=a.atoms[b];E=!re.isDigit(),ee=!E&&re.superscript!==void 0,b++}return ee&&(y=b-1),y}function Ul(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 re=y.lastType;y.lastType="";const oe=Qa(ee.superscript,b);y.lastType="";const pe=Qa(ee.subscript,b);if(y.lastType=re,!oe&&!pe)return!1;let ve="";return oe&&pe?ve=`<msubsup>${a}${pe}${oe}</msubsup>`:oe?ve=`<msup>${a}${oe}</msup>`:pe&&(ve=`<msub>${a}${pe}</msub>`),y.mathML+=ve,y.lastType="",!0}function kv(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 ${lo(a.atoms[E].id,b)}>${ee}</mtext>`,a.lastType="mtext",!0):!1}function Lv(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="",re=Mv(a);for(re>=0&&re<y&&(y=re);a.index<y&&a.atoms[a.index].isDigit();)ee+=a.atoms[a.index].asDigit(),a.index+=1;return ee.length<=0?!1:(ee="<mn"+lo(a.atoms[E].id,b)+">"+ee+"</mn>",re<0&&Av(a)&&(re=a.index,a.index+=1),Ul(ee,a,b)||(a.mathML+=ee,a.lastType="mn"),!0)}function Bv(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",re="";if(a.index<y&&a.atoms[a.index].type==="mopen"){let oe=!1,pe=0;const ve=a.index;let be=-1,Ie=ve+1;for(;Ie<y&&!oe;)a.atoms[Ie].type==="mopen"?pe+=1:a.atoms[Ie].type==="mclose"&&(pe-=1),pe===-1&&(oe=!0,be=Ie),Ie+=1;oe&&(ee="<mrow>",ee+=Vc(a.atoms[ve],b),ee+=Qa(a.atoms,b,ve+1,be),ee+=Vc(a.atoms[be],b),ee+="</mrow>",a.index=be+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=Xf),Ul(ee,a,b)&&(E=!0,a.lastType="",ee=""),re="fence")}return ee.length>0&&(E=!0,a.mathML+=ee,a.lastType=re),E}function Dv(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",re="";const oe=a.atoms[a.index];if(!oe)return!1;const pe={"\\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(pe[oe.command]){a.index+=1;const ve=`<mo${lo(oe.id,b)}>${pe[oe.command]}</mo>`;return Ul(ve,a,b)||(a.mathML+=ve,a.lastType="mo"),!0}if(a.index<y&&(oe.type==="mbin"||oe.type==="mrel"))ee+=jh(a.atoms[a.index],b),a.index+=1,re="mo";else if(a.index<y&&(oe.type==="mop"||oe.type==="operator"||oe.type==="extensible-symbol")){if(oe.subsupPlacement==="over-under"&&(oe.superscript||oe.subscript)){const ve=Vc(oe,b);return oe.superscript&&oe.subscript?(ee+="<munderover>"+ve,ee+=Qa(oe.subscript,b),ee+=Qa(oe.superscript,b),ee+="</munderover>"):oe.superscript?(ee+="<mover>"+ve,ee+=Qa(oe.superscript,b),ee+="</mover>"):oe.subscript&&(ee+="<munder>"+ve,ee+=Qa(oe.subscript,b),ee+="</munder>"),a.mathML+=ee,a.lastType="mo",a.index+=1,!0}{const ve=a.atoms[a.index],be=ve.value==="\\operatorname",Ie=be?'<mi class="MathML-Unit"'+lo(ve.id,b)+">"+Fu(ve.value)+"</mi>":Vc(ve,b);ee+=Ie,!be&&!/^<mo>(.*)<\/mo>$/.test(Ie)?(ee+=lp,re="applyfunction"):re=be?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ee)&&(ee=Xf+ee),a.index+=1}return ee.length>0&&(E=!0,Ul(ee,a,b)||(a.mathML+=ee,a.lastType=re)),E}function Qa(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 Ar)ee.mathML=jh(a,y);else if(Array.isArray(a)){ee.atoms=a;let re=0;for(E=E||(a?a.length:0);ee.index<E;)if(kv(ee,E,y)||Lv(ee,E,y)||Ev(ee,E,y)||Dv(ee,E,y)||Bv(ee,E,y))re+=1;else if(ee.index<E){let oe=jh(ee.atoms[ee.index],y);ee.lastType==="mn"&&oe.length>0&&ee.atoms[ee.index].type==="genfrac"&&(oe="<mo>⁤</mo>"+oe),ee.atoms[ee.index].type==="genfrac"?ee.lastType="mfrac":ee.lastType="",ee.index+=1,Ul(oe,ee,y)?re+=1:oe.length>0&&(ee.mathML+=oe,re+=1)}re>1&&(ee.mathML="<mrow>"+ee.mathML+"</mrow>")}return ee.mathML}function Vc(a,y){let b="";const E=Fu(a.value);return E&&(b="<mo"+lo(a.id,y)+">"+E+"</mo>"),b}function Fu(a){if(!a)return"";if(typeof a=="string")return Qf(a);if(!Array.isArray(a)&&typeof a.body=="string")return Qf(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return Qf(y)}function jh(a,y){var b,E,ee,re,oe,pe,ve,be,Ie,Ke,ht,Rt,Qt,er,Qr,Jn,Nr,ri,zr,Fi,ea,Ui;if(a.mode==="text")return`<mi${lo(a.id,y)}>${a.value}</mi>`;const za={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"},io={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let ui="",zs="",kl,Xs,$o,Hs,Es,co;const{command:Io}=a;if(a.command==="\\error")return`<merror${lo(a.id,y)}>${Qa(a.body,y)}</merror>`;const es={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Ll={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(a.type){case"first":break;case"group":case"root":ui=Qa(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(ui+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(ui+="<mo>"+(es[a.leftDelim]||a.leftDelim)+"</mo>")),ui+="<mtable",a.colFormat){for(ui+=' columnalign="',$o=0;$o<a.colFormat.length;$o++)a.colFormat[$o].align&&(ui+={l:"left",c:"center",r:"right"}[a.colFormat[$o].align]+" ");ui+='"'}for(ui+=">",Xs=0;Xs<a.array.length;Xs++){for(ui+="<mtr>",kl=0;kl<a.array[Xs].length;kl++)ui+="<mtd>"+Qa(a.array[Xs][kl],y)+"</mtd>";ui+="</mtr>"}ui+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(ui+="<mo>"+(es[a.leftDelim]||a.rightDelim)+"</mo>"),ui+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(ui+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(ui+="<mo"+lo(a.id,y)+">"+(es[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(ui+="<mfrac>",ui+=Qa(a.above,y)||"<mi> </mi>",ui+=Qa(a.below,y)||"<mi> </mi>",ui+="</mfrac>"):(ui+="<mtable"+lo(a.id,y)+">",ui+="<mtr>"+Qa(a.above,y)+"</mtr>",ui+="<mtr>"+Qa(a.below,y)+"</mtr>",ui+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(ui+="<mo"+lo(a.id,y)+">"+(es[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(ui+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(ui+="<msqrt"+lo(a.id,y)+">",ui+=Qa(a.body,y),ui+="</msqrt>"):(ui+="<mroot"+lo(a.id,y)+">",ui+=Qa(a.body,y),ui+=Qa(a.above,y),ui+="</mroot>");break;case"leftright":const Bl=a,Dl=Bl.leftDelim;ui="<mrow>",Dl&&Dl!=="."&&(ui+=`<mo${lo(a.id,y)}>${(b=es[Dl])!=null?b:Dl}</mo>`),a.body&&(ui+=Qa(a.body,y));const Il=Bl.matchingRightDelim();Il&&Il!=="."&&(ui+=`<mo${lo(a.id,y)}>${(E=es[Il])!=null?E:Il}</mo>`),ui+="</mrow>";break;case"sizeddelim":case"delim":ui+=`<mo${lo(a.id,y)}>${es[a.value]||a.value}</mo>`;break;case"accent":ui+='<mover accent="true"'+lo(a.id,y)+">",ui+=Qa(a.body,y),ui+="<mo>"+(Ll[Io]||a.accent)+"</mo>",ui+="</mover>";break;case"line":case"overlap":break;case"overunder":Es=a.above,Hs=a.below,(a.svgAbove||Es)&&(a.svgBelow||Hs)?co=a.body:Es&&Es.length>0?(co=a.body,(re=(ee=a.body)==null?void 0:ee[0])!=null&&re.below?(Hs=a.body[0].below,co=a.body[0].body):((pe=(oe=a.body)==null?void 0:oe[0])==null?void 0:pe.type)==="first"&&((be=(ve=a.body)==null?void 0:ve[1])!=null&&be.below)&&(Hs=a.body[1].below,co=a.body[1].body)):Hs&&Hs.length>0&&(co=a.body,(Ke=(Ie=a.body)==null?void 0:Ie[0])!=null&&Ke.above?(Es=a.body[0].above,co=a.body[0].body):((Rt=(ht=a.body)==null?void 0:ht[0])==null?void 0:Rt.type)==="first"&&((er=(Qt=a.body)==null?void 0:Qt[1])!=null&&er.above)&&(Es=a.body[1].overscript,co=a.body[1].body)),(a.svgAbove||Es)&&(a.svgBelow||Hs)?(ui+=`<munderover ${lo(a.id,y)}>`,ui+=(Qr=za[a.svgBody])!=null?Qr:Qa(co,y),ui+=(Jn=za[a.svgBelow])!=null?Jn:Qa(Hs,y),ui+=(Nr=za[a.svgAbove])!=null?Nr:Qa(Es,y),ui+="</munderover>"):a.svgAbove||Es?(ui+=`<mover ${lo(a.id,y)}>`+((ri=za[a.svgBody])!=null?ri:Qa(co,y)),ui+=(zr=za[a.svgAbove])!=null?zr:Qa(Es,y),ui+="</mover>"):(a.svgBelow||Hs)&&(ui+=`<munder ${lo(a.id,y)}>`+((Fi=za[a.svgBody])!=null?Fi:Qa(co,y)),ui+=(ea=za[a.svgBelow])!=null?ea:Qa(Hs,y),ui+="</munder>");break;case"placeholder":ui+="?";break;case"mord":{ui=typeof a.value=="string"?a.value:Io,Io==="\\char"?ui="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":ui.length>0&&ui.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?ui="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?ui=a.value.charAt(0):(console.error("Did not expect this"),ui=""));const cl=/\d/.test(ui)?"mn":"mi";ui=`<${cl}${lo(a.id,y)}>${Qf(ui)}</${cl}>`;break}case"mbin":case"mrel":case"minner":ui=Vc(a,y);break;case"mpunct":ui='<mo separator="true"'+lo(a.id,y)+">"+Io+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(ui="<mo"+lo(a.id,y)+">",ui+=Io==="\\operatorname"?a.body:Io||a.body,ui+="</mo>");break;case"box":ui='<menclose notation="box"',a.backgroundcolor&&(ui+=' mathbackground="'+a.backgroundcolor+'"'),ui+=lo(a.id,y)+">"+Qa(a.body,y)+"</menclose>";break;case"spacing":ui+='<mspace width="'+((Ui=io[Io])!=null?Ui:0)+'em"/>';break;case"enclose":ui='<menclose notation="';for(const cl in a.notation)Object.prototype.hasOwnProperty.call(a.notation,cl)&&a.notation[cl]&&(ui+=zs+cl,zs=" ");ui+=lo(a.id,y)+'">'+Qa(a.body,y)+"</menclose>";break;case"prompt":ui='<menclose notation="roundexbox""">'+Qa(a.body,y)+"</menclose>";break;case"space":ui+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":ui+=Vc(a,y);break;case"mclose":ui+=Vc(a,y);break;case"macro":{const cl=a.command+Fu(a.macroArgs);cl&&(ui+=`<mo ${lo(a.id,y)}>${cl}</mo>`)}break;case"latexgroup":ui+=Qa(a.body,y);break;case"latex":ui+="<mtext"+lo(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":ui+=Qa(a.body,y);break;case"text":ui+=`<mtext ${lo(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${lo(a.id,y)} displaystyle="true">${Qa(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${lo(a.id,y)} displaystyle="false">${Qa(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return ui}var _u={"\\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"},Zh={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 Iv(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function Fd(a){let y=0;if(Ne(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Tv(a){if(Ne(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function cp(a){let y="";if(Ne(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Pv(a){return a?a.map(y=>y.value).join(""):""}function Oa(a,y){var b,E,ee,re,oe;function pe(Ie){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(Ie)?` <say-as interpret-as="character">${Ie}</say-as>`:/[A-Z]/.test(Ie)?`capital <say-as interpret-as="character">${Ie.toLowerCase()}</say-as>`:Ie:/[a-z]/.test(Ie)?" '"+Ie.toUpperCase()+"'":/[A-Z]/.test(Ie)?" 'capital "+Ie.toUpperCase()+"'":Ie}function ve(Ie){return"<emphasis>"+Ie+"</emphasis>"}if(!y)return"";let be="";if(Ne(y)){let Ie=!1,Ke=!1;for(let ht=0;ht<y.length;ht++)y[ht].type!=="first"&&(y[ht].mode!=="text"&&(Ke=!1),ht<y.length-2&&y[ht].type==="mopen"&&y[ht+2].type==="mclose"&&y[ht+1].type==="mord"?(be+=" of ",be+=ve(Oa(a,y[ht+1])),ht+=2):y[ht].mode==="text"?Ke?be+=(b=y[ht].value)!=null?b:" ":(Ke=!0,be+=Oa("text",y[ht])):y[ht].isDigit()?Ie?be+=y[ht].asDigit():(Ie=!0,be+=Oa(a,y[ht])):(Ie=!1,be+=Oa(a,y[ht])))}else if(y.mode==="text")y.id&&a==="math"&&(be+='<mark name="'+y.id.toString()+'"/>'),be+=y.value;else{y.id&&a==="math"&&(be+='<mark name="'+y.id.toString()+'"/>');let Ie="",Ke="",ht="",Rt=!1;const{command:Qt}=y;switch(Qt){case"\\vec":return"vector "+Oa(a,y.body);case"\\acute":return Oa(a,y.body)+" acute";case"\\grave":return Oa(a,y.body)+" grave";case"\\dot":return"dot over"+Oa(a,y.body);case"\\ddot":return"double dot over"+Oa(a,y.body);case"\\mathring":return"ring over"+Oa(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+Oa(a,y.body);case"\\bar":return Oa(a,y.body)+" bar";case"\\breve":return Oa(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Oa(a,y.body);case"\\hat":case"\\widehat":return"hat over"+Oa(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Oa(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+Oa(a,y.body)}switch(y.type){case"prompt":const er=y.body.length>1?'start input . <break time="500ms"/> '+Oa(a,y.body)+'. <break time="500ms"/> end input':"blank";be+=' <break time="300ms"/> '+er+'. <break time="700ms"/>'+((E=y.correctness)!=null?E:"")+' . <break time="700ms"/> ';break;case"array":const Qr=y.array,Jn=y.environmentName;if(Object.keys(Zh).includes(Jn)){be+=` begin ${Zh[Jn]} `;for(let zr=0;zr<Qr.length;zr++){zr>0&&(be+=","),be+=` row ${zr+1} `;for(let Fi=0;Fi<Qr[zr].length;Fi++)Fi>0&&(be+=","),be+=` column ${Fi+1}: `,be+=Oa("math",Qr[zr][Fi])}be+=` end ${Zh[Jn]} `}break;case"group":Qt==="\\ne"?be+=" not equal ":(Qt==="\\not"&&(be+=" not "),be+=Oa("math",y.body));break;case"root":be+=Oa("math",y.body);break;case"genfrac":if(Ie=Oa("math",y.above),Ke=Oa("math",y.below),Fd(y.above)&&Fd(y.below)){const Fi={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[cp(y.above)+"/"+cp(y.below)];Fi?be=Fi:be+=Ie+" over "+Ke}else be+=' the fraction <break time="150ms"/>'+Ie+' over <break time="150ms"/>'+Ke+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(ht=Oa("math",y.body),y.hasEmptyBranch("above"))be+=Fd(y.body)?" the square root of "+ht+" , ":' the square root of <break time="200ms"/>'+ht+'. <break time="200ms"/> End square root';else{let zr=Oa("math",y.above);zr=zr.trim();const Fi=zr.replace(/<mark([^/]*)\/>/g,"");Fi==="3"?be+=' the cube root of <break time="200ms"/>'+ht+'. <break time="200ms"/> End cube root':Fi==="n"?be+=' the nth root of <break time="200ms"/>'+ht+'. <break time="200ms"/> End root':be+=' the root with index: <break time="200ms"/>'+zr+', of <break time="200ms"/>'+ht+'. <break time="200ms"/> End root'}break;case"leftright":{const zr=y;be+=(ee=zr.leftDelim?_u[zr.leftDelim]:void 0)!=null?ee:zr.leftDelim,be+=Oa("math",y.body),be+=(re=zr.rightDelim?_u[zr.rightDelim]:void 0)!=null?re:zr.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const Nr=Qt.replace(/^\\/g,""),ri=bt()[Nr];ri&&(ri!=null&&ri.expand?be+=Oa("math",y.body):be+=`${Nr} `);break;case"placeholder":be+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(Qt==="\\mathbin"||Qt==="\\mathrel"||Qt==="\\mathopen"||Qt==="\\mathclose"||Qt==="\\mathpunct"||Qt==="\\mathord"||Qt==="\\mathinner"){be=Oa(a,y.body);break}let zr=y.isDigit()?y.asDigit():y.value,Fi=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(Fi=y.value,zr=Fi),a==="text")be+=zr;else{if(y.type==="mbin"&&(be+='<break time="150ms"/>'),zr){const ea=_u[zr]||(Fi?_u[Fi.trim()]:"");if(ea)be+=" "+ea;else{const Ui=Fi?Iv(Fi.trim()):"";be+=Ui||pe(zr)}}else be+=Oa("math",y.body);y.type==="mbin"&&(be+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const zr=y.command;if(zr==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Fi=Oa("math",y.superscript);Fi=Fi.trim();let ea=Oa("math",y.subscript);ea=ea.trim(),be+=' the summation from <break time="200ms"/>'+ea+'<break time="200ms"/> to <break time="200ms"/>'+Fi+'<break time="200ms"/> of <break time="150ms"/>',Rt=!0}else if(y.hasEmptyBranch("subscript"))be+=" the summation of";else{let Fi=Oa("math",y.subscript);Fi=Fi.trim(),be+=' the summation from <break time="200ms"/>'+Fi+'<break time="200ms"/> of <break time="150ms"/>',Rt=!0}else if(zr==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Fi=Oa("math",y.superscript);Fi=Fi.trim();let ea=Oa("math",y.subscript);ea=ea.trim(),be+=' the product from <break time="200ms"/>'+ea+'<break time="200ms"/> to <break time="200ms"/>'+Fi+'<break time="200ms"/> of <break time="150ms"/>',Rt=!0}else if(y.hasEmptyBranch("subscript"))be+=" the product of ";else{let Fi=Oa("math",y.subscript);Fi=Fi.trim(),be+=' the product from <break time="200ms"/>'+Fi+'<break time="200ms"/> of <break time="150ms"/>',Rt=!0}else if(zr==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Fi=Oa("math",y.superscript);Fi=Fi.trim();let ea=Oa("math",y.subscript);ea=ea.trim(),be+=' the integral from <break time="200ms"/>'+ve(ea)+'<break time="200ms"/> to <break time="200ms"/>'+ve(Fi)+' <break time="200ms"/> of ',Rt=!0}else be+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const Fi=(oe=_u[y.value])!=null?oe:y.command?_u[y.command]:void 0;be+=Fi||" "+y.value}else y.command&&(y.command==="\\mathop"?be+=Oa("math",y.body):y.command==="\\operatorname"?be+=Pv(y.body):be+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":ht=Oa("math",y.body),be+=" crossed out "+ht+". End crossed out.";break;case"space":case"spacing":break}if(!Rt&&!y.hasEmptyBranch("superscript")){let er=Oa(a,y.superscript);er=er.trim();const Qr=er.replace(/<[^>]*>/g,"");if(Fd(y.superscript)){if(a==="math"){const Jn=Tv(y.superscript);Jn&&(be+='<mark name="'+Jn+'"/>')}Qr==="\u2032"?be+=" prime ":Qr==="2"?be+=" squared ":Qr==="3"?be+=" cubed ":Number.isNaN(Number.parseInt(Qr))?be+=" to the "+er+"; ":be+=' to the <say-as interpret-as="ordinal">'+Qr+"</say-as> power; "}else Number.isNaN(Number.parseInt(Qr))?be+=" raised to the "+er+"; ":be+=' raised to the <say-as interpret-as="ordinal">'+Qr+"</say-as> power; "}if(!Rt&&!y.hasEmptyBranch("subscript")){let er=Oa("math",y.subscript);er=er.trim(),be+=Fd(y.subscript)?" sub "+er:" subscript "+er+". End subscript. "}}return be}function zu(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ee=Qa(a);if(ee){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=me(xe({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=me(xe({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=me(xe({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const re=(b=window.SRE)!=null?b:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&re.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let oe="";try{oe=re.toSpeech(ee)}catch(pe){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",pe)}return oe}return""}let E=Oa("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"&&Be()==="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 _d={"\\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"},zd={"\\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 Ov(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 Do(a){var y,b,E,ee,re,oe,pe,ve,be,Ie,Ke,ht,Rt;if(!a)return"";if(Ne(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(Do).join("");if(a[0].mode==="text"){let ri=0,zr="";for(;((y=a[ri])==null?void 0:y.mode)==="text";)zr+=a[ri].body?Do(a[ri].body):a[ri].value,ri++;return`"${zr}" ${Do(a.slice(ri))}`}let Jn=0;const Nr=[];for(;a[Jn]&&a[Jn].mode==="math";){let ri="";for(;a[Jn]&&a[Jn].type==="mord"&&/\d/.test(a[Jn].value);)ri+=a[Jn++].value;ri?Nr.push(ri):Nr.push(Do(a[Jn++]))}return Nr.push(Do(a.slice(Jn))),Ov(Nr)}if(a.mode==="text")return`"${a.value}"`;let Qt="";const{command:er}=a;let Qr;if(er==="\\placeholder")return`(${Do(a.body)})`;switch(a.type){case"accent":const Jn={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[er];Qt=`${Jn!=null?Jn:""} ${Do(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(Ui=>Ui.value).join("");case"group":case"root":Qt=(b=_d[er])!=null?b:Do(a.body);break;case"genfrac":{const Ui=a;(Ui.leftDelim||Ui.rightDelim)&&(Qt=Ui.leftDelim==="."||!Ui.leftDelim?"{:":Ui.leftDelim),Ui.hasBarLine?(Qt+="(",Qt+=Do(Ui.above),Qt+=")/(",Qt+=Do(Ui.below),Qt+=")"):(Qt+="("+Do(Ui.above)+"),",Qt+="("+Do(Ui.below)+")"),(Ui.leftDelim||Ui.rightDelim)&&(Qt+=Ui.rightDelim==="."||!Ui.rightDelim?"{:":Ui.rightDelim)}break;case"surd":Qt+=a.hasEmptyBranch("above")?"sqrt("+Do(a.body)+")":"root("+Do(a.above)+")("+Do(a.body)+")";break;case"latex":Qt=a.value;break;case"leftright":{const Ui=a,za=Ui.leftDelim;Qt+=za==="."||!za?"{:":za,Qt+=Do(Ui.body);const io=Ui.matchingRightDelim();Qt+=io==="."||!io?":}":io}break;case"sizeddelim":case"delim":Qt=a.value;break;case"overlap":break;case"overunder":break;case"mord":Qt=(ee=(E=_d[er])!=null?E:er)!=null?ee:typeof a.value=="string"?a.value:"",Qt.startsWith("\\")&&(Qt+=" "),Qr=er?er.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,Qr?Qt=String.fromCodePoint(Number.parseInt("0x"+Qr[1])):Qt.length>0&&Qt.startsWith("\\")&&(Qt=typeof a.value=="string"?a.value.charAt(0):a.command),Qt=Nv(Qt,a.style);break;case"mbin":case"mrel":case"minner":Qt=(oe=(re=_d[er])!=null?re:zd[er])!=null?oe:a.value;break;case"mopen":case"mclose":Qt=a.value;break;case"mpunct":Qt=(pe=zd[er])!=null?pe:er;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(zd[er]?Qt=zd[er]:Qt=er==="\\operatorname"?Do(a.body):(ve=a.value)!=null?ve:er,Qt+=" ");break;case"array":const Nr=a.array,ri=a.environmentName,zr=(be={bmatrix:["[","]"],"bmatrix*":["[","]"]}[ri])!=null?be:["(",")"],Fi=[];for(const Ui of Nr){const za=[];for(const io of Ui)za.push(zr[0]+Do(io)+zr[1]);Fi.push(za.join(","))}const ea=(Ie={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[ri])!=null?Ie:["(",")"];Qt=ea[0]+Fi.join(",")+ea[1];break;case"box":break;case"spacing":Qt=(Ke=_d[er])!=null?Ke:" ";break;case"enclose":Qt="("+Do(a.body)+")";break;case"space":Qt=" ";break;case"subsup":Qt="";break;case"macro":Qt=(Rt=(ht=_d[er])!=null?ht:zd[er])!=null?Rt:Do(a.body);break}if(!a.hasEmptyBranch("subscript")){Qt+="_";const Jn=Do(a.subscript);Qt+=Jn.length!==1?`(${Jn})`:Jn}if(!a.hasEmptyBranch("superscript")){Qt+="^";const Jn=Do(a.superscript);Qt+=Jn.length!==1?`(${Jn})`:Jn}return Qt}function Nv(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 qo(a,y){var b,E;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ee=new Na({from:me(xe({},bu()),{renderPlaceholder:()=>new ei(160,{maxFontSize:1}),letterShapeStyle:(E=y==null?void 0:y.letterShapeStyle)!=null?E:"tex"}),mathstyle:y.mathstyle}),oe=new Ar({mode:"math",type:"root",body:Jo(a,{context:ee,parseMode:"math",mathstyle:y.mathstyle})}).render(ee);return oe?(gu(Cd(oe,ee)),vu(oe,{classes:"ML__latex"}).toMarkup()):""}function k1(a){return t0(a,{context:bu()})}function Rv(a,y={}){return Qa(Jo(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function Fv(a){const y=Jo(a,{parseMode:"math",mathstyle:"displaystyle"});return zu(y)}var Jf;function _v(a){var y,b;if(!Jf){const E=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;E?Jf=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=Jf==null?void 0:Jf.box(a).latex)!=null?b:""}function L1(a,y="math"){return Do(new Ar({type:"root",body:Jo(a,{parseMode:y})}))}function B1(a){return Oc(a,{format:"ascii-math"})[1]}function Uh(a){if(typeof a=="string"){const y=zv(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?Kv(a):"a"in a?up(a):a}function Hu(a){return a<0?0:a>255?255:Math.round(a)}function zv(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 Vh(a){const[y,b,E]=[a.L,a.C,a.H],ee=E*Math.PI/180,re={L:y,a:b*Math.cos(ee),b:b*Math.sin(ee)};return a.alpha!==void 0&&(re.alpha=a.alpha),re}function Hv(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.sqrt(b*b+E*E),oe=Math.atan2(E,b)*180/Math.PI,pe={L:y,C:ee,H:oe};return a.alpha!==void 0&&(pe.alpha=a.alpha),pe}function Gh(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.pow(.9999999984505198*y+.39633779217376786*b+.2158037580607588*E,3),re=Math.pow(1.00000000888176*y-.10556134232365635*b-.0638541747717059*E,3),oe=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*E,3),pe=4.076741661347994*ee-3.307711590408193*re+.230969928729428*oe,ve=-1.2684380040921763*ee+2.6097574006633715*re-.3413193963102197*oe,be=-.004196086541837188*ee-.7034186144594493*re+1.7076147009309444*oe,Ie=Ke=>{const ht=Math.abs(Ke);return ht<=.0031308?Ke*12.92:(Math.sign(Ke)||1)*(1.055*Math.pow(ht,1/2.4)-.055)};return[Ie(pe),Ie(ve),Ie(be)]}function Yh(a){const[y,b,E]=a;return y>=0&&y<=1&&b>=0&&b<=1&&E>=0&&E<=1}function Xh(a,y){let[b,E,ee]=a;return b=Hu(b*255),E=Hu(E*255),ee=Hu(ee*255),y!==void 0?{r:b,g:E,b:ee,alpha:y}:{r:b,g:E,b:ee}}function up(a){let[y,b,E]=Gh(a);if(Yh([y,b,E]))return Xh([y,b,E],a.alpha);const ee=Hv(a);if(ee.C=0,[y,b,E]=Gh(Vh(ee)),!Yh([y,b,E]))return Xh([y,b,E],a.alpha);let re=0,oe=a.L,pe=(re+oe)/2;ee.C=pe;const ve=.36/Math.pow(2,12);for(;oe-re>ve;)pe=(re+oe)/2,ee.C=pe,[y,b,E]=Gh(Vh(ee)),Yh([y,b,E])?re=pe:oe=pe;return Xh([y,b,E],a.alpha)}function Kv(a){return up(Vh(a))}function dp(a,y){const b=Uh(a),E=Uh(y),ee=.56,re=.57,oe=.62,pe=.65,ve=.022,be=1.414,Ie=.1,Ke=5e-4,ht=1.14,Rt=.027,Qt=1.14,er=.027;function Qr(Ui){return Ui>=ve?Ui:Ui+Tl(ve-Ui,be)}function Jn(Ui){return(Ui<0?-1:1)*Math.pow(Math.abs(Ui),2.4)}const Nr=Qr(Jn(E.r/255)*.2126729+Jn(E.g/255)*.7151522+Jn(E.b/255)*.072175),ri=Qr(Jn(b.r/255)*.2126729+Jn(b.g/255)*.7151522+Jn(b.b/255)*.072175);let zr,Fi,ea;return Math.abs(ri-Nr)<Ke?Fi=0:ri>Nr?(zr=Tl(ri,ee)-Tl(Nr,re),Fi=zr*ht):(zr=Tl(ri,pe)-Tl(Nr,oe),Fi=zr*Qt),Math.abs(Fi)<Ie?ea=0:Fi>0?ea=Fi-er:ea=Fi+Rt,ea*100}function fp(a,y,b){b!=null||(b="#fff"),y!=null||(y="#000");const E=dp(a,b),ee=dp(a,y);return Math.abs(E)>Math.abs(ee)?b:y}function Wv(a){const y=Uh(a);let b=((1<<24)+(Hu(y.r)<<16)+(Hu(y.g)<<8)+Hu(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 go(a){const y=hp(a);let b="";for(const E of y){if(typeof E.value!="string")return"";b+=E.value}return b}function hp(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function jv(a,y){const b=hp(a);if(b.length!==1)return!1;const E=ph[y];return E?!!E.test(b[0].value):!1}function Zv(a,y){return go(a).length>0}function Uv(a){return[Qh(a,"double-struck","mathbb","tooltip.blackboard"),Qh(a,"fraktur","mathfrak","tooltip.fraktur"),Qh(a,"calligraphic","mathcal","tooltip.caligraphic"),Jh(a,"up","mathrm","tooltip.roman-upright"),Jh(a,"bold","mathbf","tooltip.bold"),Jh(a,"italic","mathit","tooltip.italic")]}function Vv(a){return[{label:()=>qo(`\\vec{${go(a)}}`),visible:()=>go(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>qo(`\\overrightarrow{${go(a)}}`),visible:()=>go(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>qo(`\\overleftarrow{${go(a)}}`),visible:()=>go(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>qo(`\\dot{${go(a)}}`),visible:()=>go(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>qo(`\\ddot{${go(a)}}`),visible:()=>go(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>qo(`\\bar{${go(a)}}`),visible:()=>go(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>qo(`\\overline{${go(a)}}`),visible:()=>go(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>qo(`\\overgroup{${go(a)}}`),visible:()=>go(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>qo(`\\overbrace{${go(a)}}`),visible:()=>go(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>qo(`\\underline{${go(a)}}`),visible:()=>go(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>qo(`\\undergroup{${go(a)}}`),visible:()=>go(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>qo(`\\underbrace{${go(a)}}`),visible:()=>go(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Gv(a){return[{label:()=>qo(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>qo(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>qo(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Yv(a){const y=[];for(const b of Object.keys(Ye))y.push({class:(Wv(fp(Ye[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Ye[b]} "></span>`,ariaLabel:()=>{var E;return(E=vt(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 Xv(a){const y=[];for(const b of Object.keys(Ve))y.push({class:(fp(Ve[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Ve[b]} "></span>`,ariaLabel:()=>{var E;return(E=vt(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 Qv=class extends ep{constructor(a,y,b,E){super(a,y),this.row=b,this.col=E}set active(a){const y=this.parentMenu.children;if(a)for(const b of y)b.element.classList.toggle("active",b.row<=this.row&&b.col<=this.col);else for(const b of y)b.element.classList.remove("active")}};function Jv(a){const y=[];for(let b=1;b<=5;b++)for(let E=1;E<=5;E++)y.push({onCreate:(ee,re)=>new Qv(ee,re,b,E),label:"\u2610",tooltip:()=>vt("tooltip.row-by-col",b,E),data:{row:b,col:E},onMenuSelect:()=>{a.insert(`\\begin{pmatrix}${Array(b).fill(Array(E).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return y}function qv(a){return[{label:()=>vt("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>Gc(a)},{label:()=>vt("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>Gc(a)},{label:()=>vt("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>Gc(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,E]=e1(a);return b<y.maxColumns}},{label:()=>vt("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>Gc(a)},{type:"divider"},{label:()=>vt("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>Gc(a)},{label:()=>vt("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>Gc(a)},{type:"divider"},{label:()=>vt("menu.borders"),visible:()=>($v(a)||Gc(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>Hd(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>Hd(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>Hd(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>Hd(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>Hd(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>vt("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:Jv(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>vt("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>vt("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{Bu(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>vt("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{Bu(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>vt("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>vt("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:Uv(a),submenuClass:"variant-submenu"},{label:()=>vt("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Xv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>vt("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Yv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>vt("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Vv(a),submenuClass:"variant-submenu"},{label:()=>vt("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&go(a).length>0,submenu:Gv(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>vt("menu.evaluate"),id:"ce-evaluate",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const y=t1(a);if(!y){a.model.announce("plonk");return}a.model.selectionIsCollapsed?(a.model.position=a.model.lastOffset,a.insert(`=${y}`,{insertionMode:"insertAfter",selectionMode:"item"})):a.insert(y,{insertionMode:"replaceSelection",selectionMode:"item"})}},{label:()=>vt("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?vt("menu.solve-for",qo(b)):vt("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(re=>{var oe;return(oe=re.simplify().latex)!=null?oe:""});if(!ee){a.model.announce("plonk");return}a.insert(`${E}=${ee.length===1?ee[0]:"\\left\\lbrace"+(ee==null?void 0:ee.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>vt("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>vt("menu.copy"),id:"copy",submenu:[{label:()=>vt("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>ya.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>vt("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>ya.copyToClipboard(a,"ascii-math")},{label:()=>vt("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>ya.copyToClipboard(a,"math-ml")}]},{label:()=>vt("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>vt("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function Gc(a){var y;return!!((y=a.model.parentEnvironment)!=null&&y.array)}function $v(a){return a.model.at(a.model.position).type==="array"}function e1(a){var y;const b=(y=a.model.parentEnvironment)==null?void 0:y.array;return b?[b.length,b.reduce((E,ee)=>Math.max(E,ee.length),0)]:[0,0]}function Hd(a,y){Ef(a),a.flushInlineShortcutBuffer(),T0(a.model,y),Ao(a)}function t1(a){var y,b;let E;if(a.model.selectionIsCollapsed?E=(y=window.MathfieldElement.computeEngine)==null?void 0:y.parse(a.getValue(),{canonical:!1}):E=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection),{canonical:!1}),!E)return"";let ee=E.evaluate();return ee.isSame(E)&&(ee=E.N()),ee.latex}function Qh(a,y,b,E){return{label:()=>qo(`\\${b}{${go(a)}}`),tooltip:()=>{var ee;return(ee=vt(E))!=null?ee:E},visible:()=>jv(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 Jh(a,y,b,E){return{label:()=>qo(`\\${b}{${go(a)}}`),tooltip:()=>{var ee;return(ee=vt(E))!=null?ee:E},visible:()=>Zv(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 Ku(a,y){return a+zu(y)}Ls({speak:(a,y,b)=>n1(a,y,b)},{target:"mathfield"});function n1(a,y,b){var E,ee;b=b!=null?b:{withHighlighting:!1};const{model:re}=a;function oe(Ie){let Ke=null;switch(Ie){case"all":Ke=re.root;break;case"selection":Ke=re.getAtoms(re.selection);break;case"left":{Ke=re.getAtoms(re.offsetOf(re.at(re.position).leftSibling),re.position);break}case"right":{Ke=re.getAtoms(re.position,re.offsetOf(re.at(re.position).rightSibling));break}case"group":Ke=re.getAtoms(re.getSiblingsRange(re.position));break;case"parent":{const{parent:ht}=re.at(re.position);ht!=null&&ht.parent?Ke=ht:Ke=re.root;break}default:Ke=re.root}return Ke}function pe(Ie){let Ke="";switch(Ie){case"all":console.log("Internal failure: speak all failed");break;case"selection":Ke="no selection";break;case"left":Ke="at start";break;case"right":Ke="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Ke="no parent";break;default:console.log('unknown speak_ param value: "'+Ie+'"');break}return Ke}const ve=oe(y);if(ve===null)return(ee=(E=window.MathfieldElement).speakHook)==null||ee.call(E,pe(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const be=zu(ve);return dt()&&b.withHighlighting?(mc().readAloudMathfield=a,_c(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,be)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(be),!1}function r1(a){var y,b;if(!dt()){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,(re,oe)=>{if(re)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${re}`);else if(oe!=null&&oe.AudioStream){const pe=new Uint8Array(oe.AudioStream),ve=new Blob([pe.buffer],{type:"audio/mpeg"}),be=URL.createObjectURL(ve);new Audio(be).play().catch(Ke=>console.log(Ke))}else console.log("polly.synthesizeSpeech():",oe)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function pp(a){var y;let b;if(a.parent.type==="prompt")a.parentBranch==="body"&&(b="prompt");else if(a.parentBranch==="body")b=a.type&&(y={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[a.type])!=null?y:"parent";else if(a.parent.type==="genfrac"){if(a.parentBranch==="above")return"numerator";if(a.parentBranch==="below")return"denominator"}else a.parent.type==="surd"?a.parentBranch==="above"&&(b="index"):a.parentBranch==="superscript"?b="superscript":a.parentBranch==="subscript"&&(b="subscript");return b||console.log("unknown relationship"),b!=null?b:"parent"}function i1(a,y,b,E){let ee="";if(y==="plonk")window.MathfieldElement.playSound("plonk"),a.flushInlineShortcutBuffer();else if(y==="delete")ee=Ku("deleted: ",E);else if(y==="focus"||y.includes("move"))ee=a1(a.model,b)+(a.model.selectionIsCollapsed?"":"selected: ")+o1(a.model);else if(y==="replacement")ee=Ku("",a.model.at(a.model.position));else if(y==="line"){const re=Ku("",a.model.root);a.keyboardDelegate.setAriaLabel(re)}else ee=E?Ku(y+" ",E):y;if(ee){const re=a.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";a.ariaLiveText.textContent=ee+re}}function a1(a,y){if(Number.isNaN(y))return"";const b=a.at(y);if(!b||b.treeDepth<=a.at(a.position).treeDepth)return"";let E="",ee=b.parent;const re=a.at(a.position).parent;for(;ee!==a.root&&ee!==re;)E+=`out of ${pp(ee)};`,ee=ee.parent;return E}function o1(a){if(!a.selectionIsCollapsed)return Ku("",a.getAtoms(a.selection));let y="";const b=a.at(a.position),E=pp(b);return b.isFirstSibling&&(y=(E?"start of "+E:"unknown")+": "),b.isLastSibling?b.isFirstSibling||(y+=E?"end of "+E:"unknown"):y+=Ku("",b),y}var s1=class{constructor(a,y,b){this.mathfield=a,this.mode=y,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=b}dispose(){this.mathfield=void 0}getState(){const a={ranges:[...this._selection.ranges]};return this.selection.direction&&this.selection.direction!=="none"&&(a.direction=this.selection.direction),{content:this.root.toJson(),selection:a,mode:this.mode}}setState(a,y){var b;const E=this.silenceNotifications;this.silenceNotifications=(b=y==null?void 0:y.silenceNotifications)!=null?b:!0;let ee={};if((y==null?void 0:y.type)==="undo"&&(ee={inputType:"historyUndo"}),(y==null?void 0:y.type)==="redo"&&(ee={inputType:"historyRedo"}),this.contentWillChange(ee)){const re=this.silenceNotifications;this.silenceNotifications=!0,this.mode=a.mode,this.root=dc(a.content),this.selection=a.selection,this.silenceNotifications=re,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 re=this.normalizeSelection(a,y);if(re===void 0)throw new TypeError("Invalid selection");if(re.ranges.length===1&&re.ranges[0][0]===re.ranges[0][1]){const Ie=re.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(Ie))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((E=this.at(Ie-1))!=null&&E.parentPrompt){this._anchor=this.normalizeOffset(Ie-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ee=this.at(Ie+1))!=null&&ee.parentPrompt){this._anchor=this.normalizeOffset(Ie+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=Ie,this._position=Ie,this._selection=re;return}const oe=Xo(re);re.direction==="backward"?[this._position,this._anchor]=oe:[this._anchor,this._position]=oe;const pe=this.at(oe[0]+1),ve=this.at(oe[1]),be=Ar.commonAncestor(pe,ve);(be==null?void 0:be.type)==="array"&&pe.parent===be&&ve.parent===be?this._selection={ranges:[oe],direction:re.direction}:this._selection={ranges:[oe],direction:re.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 rs&&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(wu(a)){if(E=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((be,Ie)=>[...be,...this.getAtoms(Ie,E)],[]);a=a.ranges[0]}let ee,re;if(gl(a)){if(ee=a,!gl(y))return[];re=y}else[ee,re]=a,E=y!=null?y:{};if(!Number.isFinite(ee))return[];E.includeChildren===void 0&&(E.includeChildren=!1),ee<0&&(ee=this.lastOffset-ee+1),re<0&&(re=this.lastOffset-re+1);const oe=Math.min(ee,re)+1,pe=Math.max(ee,re);if(!E.includeChildren&&oe===1&&pe===this.lastOffset)return[this.root];let ve=[];for(let be=oe;be<=pe;be++){const Ie=this.atoms[be];mp(this,Ie,oe,pe)&&ve.push(Ie)}return E.includeChildren||(ve=ve.filter(be=>{let Ie=!1,{parent:Ke}=be;for(;Ke&&!Ie;)Ie=mp(this,Ke,oe,pe),Ke=Ke.parent;return!Ie})),ve}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 re=y;re<=ee;re++)if(E=this.atoms[re],a(E))return E;for(let re=0;re<y;re++)if(E=this.atoms[re],a(E))return E;return}for(let re=y;re>=0;re--)if(E=this.atoms[re],a(E))return E;for(let re=ee;re>y;re--)if(E=this.atoms[re],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 Ar({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 Ar.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 Qa(a);if(b==="spoken")return zu(a);if(b==="spoken-text"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ee=zu(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=zu(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}return b==="ascii-math"?Do(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(gl(a)&&gl(y)?(E=[this.normalizeRange([a,y])],ee=b):xu(a)?(E=[this.normalizeRange(a)],ee=y):wu(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 re=this.getValue({ranges:E},"latex-unstyled");try{const oe=window.MathfieldElement.computeEngine.parse(re);return JSON.stringify(oe.json)}catch(oe){return JSON.stringify(["Error",`'${oe.toString()}'`])}}if(ee.startsWith("latex")){const re={expandMacro:ee==="latex-expanded",skipStyles:ee==="latex-unstyled",skipPlaceholders:ee==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return Da(E.map(oe=>Ar.serialize(this.getAtoms(oe),re)))}return E.map(re=>this.getAtoms(re).map(oe=>this.atomToString(oe,ee)).join("")).join("")}extendSelectionTo(a,y){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{const b=this.normalizeRange([a,y]);let[E,ee]=b,{parent:re}=this.at(ee);if(re&&(re.type==="genfrac"||re.type==="subsup"))for(;re!==this.root&&qh(this,re,[E,ee]);)ee=this.offsetOf(re),re=re.parent;for(re=this.at(E).parent;re!==this.root&&qh(this,re,[E,ee]);)E=this.offsetOf(re.leftSibling),re=re.parent;if(re=this.at(ee).parent,(re==null?void 0:re.type)==="genfrac")for(;re!==this.root&&qh(this,re,[E,ee]);)ee=this.offsetOf(re),console.assert(ee>=0),re=re.parent;this._position=this.normalizeOffset(y),this._selection={ranges:[[E,ee]],direction:"none"}})}announce(a,y,b=[]){var E,ee;((ee=(E=this.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("announce",{detail:{command:a,previousPosition:y,atoms:b},cancelable:!0,bubbles:!0,composed:!0})))!=null?ee:!0)&&i1(this.mathfield,a,y,b)}deferNotifications(a,y){const b=this._selection,E=this._anchor,ee=this._position,re=this.silenceNotifications;this.silenceNotifications=!0;const oe=this.root.changeCounter;y();const pe=this.root.changeCounter!==oe,ve=E!==this._anchor||ee!==this._position||Pc(this._selection,b)==="different";return this.silenceNotifications=re,a.content&&pe&&this.contentDidChange({inputType:a.type}),a.selection&&ve&&this.selectionDidChange(),pe||ve}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(gl(a)){const ee=this.normalizeOffset(a);if(gl(y)){const re=this.normalizeOffset(y);E=ee<=re?{ranges:[[ee,re]],direction:"none"}:{ranges:[[re,ee]],direction:"backward"}}else E={ranges:[[ee,ee]],direction:"none"}}else if(xu(a)){const ee=this.normalizeOffset(a[0]),re=this.normalizeOffset(a[1]);E=ee<=re?{ranges:[[ee,re]],direction:"none"}:{ranges:[[re,ee]],direction:"backward"}}else wu(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(El(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",me(xe({},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(El(this.mathfield)),this.silenceNotifications))return;const a=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=a}};function mp(a,y,b,E){const ee=a.offsetOf(y);if(ee<b||ee>E)return!1;if(!y.hasChildren)return!0;const re=a.offsetOf(y.firstChild);if(re>=b&&re<=E){const oe=a.offsetOf(y.lastChild);if(oe>=b&&oe<=E)return!0}return!1}function qh(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[E,ee]=b,re=a.offsetOf(y.firstChild),oe=a.offsetOf(y.lastChild);return re>=E&&re<=ee&&oe>=re&&oe<=ee}function Kd(a,y,b,E){var ee,re,oe,pe,ve,be;const Ie=b.parent;if(Ie&&b instanceof Xa){const Ke=!E&&y==="forward"||E==="body"&&y==="backward";let ht=Ke?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return Ke?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(Ie.addChildrenAfter(b.removeBranch("body"),b),Ie.removeChild(b),ht--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(Ie.addChildrenAfter(b.removeBranch("body"),b),Ie.removeChild(b),ht--),a.position=ht,!0}if(Ie&&b.type==="surd"){if(y==="forward"&&!E||y==="backward"&&E==="body"){const Ke=b.leftSibling;b.hasChildren&&Ie.addChildrenAfter(b.removeBranch("body"),b),Ie.removeChild(b),a.position=a.offsetOf(Ke)}else y==="forward"&&E==="body"?a.position=a.offsetOf(b):!E&&y==="backward"?b.hasChildren?a.position=a.offsetOf(b.lastChild):(a.position=Math.max(0,a.offsetOf(b)-1),Ie.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(Ie&&(b.type==="box"||b.type==="enclose")){const Ke=E&&y==="backward"||!E&&y==="forward"?b.leftSibling:b.lastChild;return Ie.addChildrenAfter(b.removeBranch("body"),b),Ie.removeChild(b),a.position=a.offsetOf(Ke),!0}if(b.type==="genfrac"||b.type==="overunder"){if(!E)return b.type==="overunder"&&b.hasEmptyBranch("body")||b.type==="genfrac"&&b.hasEmptyBranch("below")&&b.hasEmptyBranch("above")?!1:(a.position=a.offsetOf(y==="forward"?b.firstChild:b.lastChild),!0);const Ke=Wd.fractionNavigationOrder==="numerator-denominator"?"above":"below",ht=Ke==="above"?"below":"above";if(Ie&&(y==="forward"&&E===Ke||y==="backward"&&E===ht)){const Rt=b.removeBranch(Ke),Qt=b.removeBranch(ht);return Ie.addChildrenAfter([...Rt,...Qt],b),Ie.removeChild(b),a.position=a.offsetOf(Rt.length>0?Rt[Rt.length-1]:Qt[0]),!0}return y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b),!0}if(b.isExtensibleSymbol||b.type==="subsup"){if(!E&&y==="forward")return!1;if(!E){if(b.subscript||b.superscript){const Ke=y==="forward"?(oe=(ee=b.superscript)==null?void 0:ee[0])!=null?oe:(re=b.subscript)==null?void 0:re[0]:(be=(pe=b.subscript)==null?void 0:pe[0].lastSibling)!=null?be:(ve=b.superscript)==null?void 0:ve[0].lastSibling;return Ke&&(a.position=a.offsetOf(Ke)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const Ke=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=Ke,!0}if(E==="superscript")if(y==="backward"){const Ke=a.offsetOf(b.firstChild)-1;console.assert(Ke>=0),a.position=Ke}else b.subscript?a.position=a.offsetOf(b.subscript[0]):a.position=a.offsetOf(b);else E==="subscript"&&(y==="backward"&&b.superscript?a.position=a.offsetOf(b.superscript[0].lastSibling):y==="backward"?a.position=a.offsetOf(b.firstChild)-1:a.position=a.offsetOf(b));if(E&&b.hasEmptyBranch(E)&&(b.removeBranch(E),b.type==="subsup"&&!b.subscript&&!b.superscript)){const Ke=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=Ke}return!0}if((Ie==null?void 0:Ie.type)==="genfrac"&&!E&&b.type!=="first"){let Ke=a.offsetOf(b.leftSibling);return Ie.removeChild(b),Ie.hasEmptyBranch("above")&&Ie.hasEmptyBranch("below")?(Ke=a.offsetOf(Ie.leftSibling),Ie.parent.removeChild(Ie),a.announce("delete",void 0,[Ie]),a.position=Ke,!0):(a.announce("delete",void 0,[b]),a.position=Ke,!0)}if(y==="backward"&&((Ie==null?void 0:Ie.command)==="\\ln"||(Ie==null?void 0:Ie.command)==="\\log")&&b.parentBranch!=="body"){const Ke=a.offsetOf(Ie.leftSibling);return Ie.parent.removeChild(Ie),a.announce("delete",void 0,[Ie]),a.position=Ke,!0}return!1}function l1(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentBackward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentBackward"},()=>{let y=a.at(a.position);if(!(y&&Kd(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(Kd(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])}}):Ml(a,Xo(a.selection),"deleteContentBackward")}function c1(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&&Kd(a,"forward",E))return;if(E){if(a.at(a.position).isLastSibling&&Kd(a,"forward",E.parent,E.parentBranch))return}else{if(E=a.at(a.position),E.isLastSibling&&Kd(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])}):Ml(a,Xo(a.selection),"deleteContentForward")}function Ml(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 re=E[E.length-1].parent.lastChild;let oe=E[0];oe.type==="first"&&(oe=oe.rightSibling);const pe=E[E.length-1];if(oe===ee&&pe===re){const ve=E[0].parent;ve.parent&&ve.type!=="prompt"&&(y=[a.offsetOf(ve.leftSibling),a.offsetOf(ve)])}if(E.length===1&&E[0].type==="placeholder"&&E[0].parent.type==="genfrac"){const ve=E[0].parent,be=E[0].parentBranch==="below"?"above":"below",Ie=a.offsetOf(ve.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var Ke,ht;const Rt=ve.removeBranch(be);if(Rt.length===1&&Rt[0].type==="placeholder")(ht=ve.parent)==null||ht.removeChild(ve),a.position=Math.max(0,Ie);else{const Qt=ve.parent.addChildrenAfter(Rt,ve);(Ke=ve.parent)==null||Ke.removeChild(ve),a.position=a.offsetOf(Qt)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}Ls({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&Ml(a,[0,-1],"deleteContent"),deleteForward:a=>c1(a),deleteBackward:a=>l1(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&Ml(a,[a.anchor,kh(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&Ml(a,[a.anchor,kh(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&Ml(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&Ml(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&Ml(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&Ml(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var u1=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${vt("tooltip.toggle virtual keyboard")}"><path d="M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm16 336c0 8.823-7.177 16-16 16H48c-8.823 0-16-7.177-16-16V112c0-8.823 7.177-16 16-16h480c8.823 0 16 7.177 16 16v288zM168 268v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-336 80v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm384 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zM120 188v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-96 152v-8c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"/></svg>`,d1=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${vt("tooltip.menu")}"><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>`,f1=class{constructor(a,y){this.focusBlurInProgress=!1;var b,E,ee;this.options=xe(me(xe({},Nf()),{macros:bt(),registers:oc()}),Of(y)),this.eventController=new AbortController;const re=this.eventController.signal;y.eventSink&&(this.host=y.eventSink),this.element=a,a.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left",this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let oe=(E=(b=y.value)!=null?b:this.element.textContent)!=null?E:"";oe=oe.trim();const pe=B0(this.options),ve=new Ar({type:"root",mode:pe,body:Jo(oe,{context:this.context})});this.model=new s1(this,pe,ve),this.undoManager=new Fg(this.model);const be=[];if(be.push("<span contenteditable=true aria-multiline=false part=keyboard-sink class=ML__keyboard-sink autocapitalize=off autocomplete=off autocorrect=off spellcheck=false inputmode=none tabindex=0></span>"),be.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),be.push("<span part=content class=ML__content>"),be.push(w0(this)),be.push("</span>"),window.mathVirtualKeyboard&&(be.push(`<div part=virtual-keyboard-toggle class=ML__virtual-keyboard-toggle role=button ${this.hasEditableContent?"":'style="display:none;"'} data-l10n-tooltip="tooltip.toggle virtual keyboard">`),be.push(u1),be.push("</div>")),be.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),be.push(d1),be.push("</div>"),be.push("</span>"),be.push("<span class=ML__sr-only>"),be.push("<span role=status aria-live=assertive aria-atomic=true></span>"),be.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(be.join("")),!this.element.children){console.error("%cMathLive 0.98.5: Something went wrong and the mathfield could not be created.%c\nIf you are using Vue, this may be because you are using the runtime-only build of Vue. Make sure to include `runtimeCompiler: true` in your Vue configuration. There may a warning from Vue in the log above.","color:red;font-family:system-ui;font-size:1.2rem;font-weight:bold","color:inherit;font-family:system-ui;font-size:inherit;font-weight:inherit");return}this._l10Subscription=at.subscribe(()=>at.update(this.element)),at.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Ke=>Ke.stopImmediatePropagation(),{capture:!1,signal:re}),this.field.addEventListener("wheel",this,{passive:!1,signal:re}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:re}):this.field.addEventListener("mousedown",this,{signal:re}),(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(El(this)))},{signal:re}),this._menu=new Sv(qv(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:re});const Ie=this.element.querySelector("[part=menu-toggle]");Ie==null||Ie.addEventListener("pointerdown",Ke=>{if(Ke.currentTarget!==Ie||this._menu.state!=="closed")return;this.element.classList.add("tracking");const ht=Ie.getBoundingClientRect();this._menu.modifiers=Fc(Ke),this._menu.show({target:Ie,location:{x:ht.left,y:ht.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Ke.preventDefault(),Ke.stopPropagation()},{signal:re}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(Ie.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=Wm(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:re}),document.addEventListener("scroll",this,{signal:re}),this.resizeObserver=new ResizeObserver(()=>Ao(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:re}),Md&&!at.locale.startsWith(Md.locale)&&_m(at.locale),_s!=="ready"&&document.fonts.ready.then(()=>Bf(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(El(this)),Gf(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,_h())}showMenu(a){var y,b;const E=(b=(y=a==null?void 0:a.location)!=null?y:bl(this.field))!=null?b:void 0,ee=a==null?void 0:a.modifiers,re=this.element.querySelector("[part=container]");return this._menu.show({target:re,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:Lt(a)}}get backgroundColorMap(){return a=>{var y,b,E,ee,re,oe;return(oe=(re=(b=(y=this.options).backgroundColorMap)==null?void 0:b.call(y,a))!=null?re:(ee=(E=this.options).colorMap)==null?void 0:ee.call(E,a))!=null?oe:nt(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=Ar.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=xe({},a[0].style);for(const b of a)for(const[E,ee]of Object.entries(b.style))y[E]!==ee&&delete y[E];return y}queryStyle(a){const y=Ph(this,a);"verbatimColor"in y&&delete y.verbatimColor,"verbatimBackgroundColor"in y&&delete y.verbatimBackgroundColor;const b=Object.keys(y).length;if(b===0)return"all";if(b>1){for(const ve of Object.keys(y)){const be=this.queryStyle({[ve]:y[ve]});if(be==="none")return"none";if(be==="some")return"some"}return"all"}const E=Object.keys(y)[0],ee=y[E];if(this.model.selectionIsCollapsed)return this.effectiveStyle[E]===ee?"all":"none";const re=this.model.getAtoms(this.model.selection,{includeChildren:!0});let oe=re.length;if(oe===0)return"none";let pe=0;for(const ve of re){if(ve.type==="first"){oe-=1;continue}ve.style[E]===ee&&(pe+=1)}return pe===0?"none":pe===oe?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,E]=Gm(this.options.keybindings,(a=kd())!=null?a:zm());return((y=kd())==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=xe(xe({},this.options),Of(a)),this._keybindings=void 0,this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let b=this.options.defaultMode;b==="inline-math"&&(b="math"),((y=this.model.root.firstChild)==null?void 0:y.mode)!==b&&(this.model.root.firstChild.mode=b),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const E=Ar.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==E)&&ya.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)&&Ao(this)}getOptions(a){return Hc(this.options,a)}getOption(a){return Hc(this.options,a)}handleEvent(a){return gc(this,null,function*(){var y;if(Ns(this)){if(Ch(a)){if(!yd(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(Iu(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"&&Z0(this,a);break;case"pointerdown":this.userSelect!=="none"&&(Z0(this,a),a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&jf.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&jf.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&Gf(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Ns(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Ns(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!Ns(this))return;at.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,Yg(),$m(),mv()}flushInlineShortcutBuffer(a){if(a!=null||(a={defer:!1}),!a.defer){this.inlineShortcutBuffer=[],clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=0;return}this.options.inlineShortcutTimeout>0&&(clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=setTimeout(()=>this.flushInlineShortcutBuffer(),this.options.inlineShortcutTimeout))}executeCommand(a){return Iu(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(El(this))),!1):og(this,a)}get errors(){return t0(this.model.getValue(),{context:this.context})}getValue(a,y,b){return this.model.getValue(a,y,b)}setValue(a,y){var b;y=y!=null?y:{mode:"math"},y.insertionMode===void 0&&(y.insertionMode="replaceAll"),(y.format===void 0||y.format==="auto")&&(y.format="latex"),(y.mode===void 0||y.mode==="auto")&&(y.mode=(b=ah(this.model,this.model.position))!=null?b:"math");const E=this.undoManager.canUndo();ya.insert(this.model,a,y)&&(Ao(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&&_c(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=bl(this.field);else{const E=vd(this);if(E.length>0){let ee=-1/0,re=-1/0;for(const oe of E)oe.right>ee&&(ee=oe.right),oe.top<re&&(re=oe.top);b={x:ee+y.left-this.field.scrollLeft,y:re+y.top-this.field.scrollTop,height:0}}}if(this.host&&b){const E=this.host.getBoundingClientRect(),ee=b.y;let re=this.host.scrollTop;ee<E.top?re=ee-E.top+this.host.scrollTop:ee>E.bottom&&(re=ee-E.bottom+this.host.scrollTop+b.height),this.host.scroll({top:re,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&&Je()&&navigator.vibrate(S0),window.MathfieldElement.playSound("keypress")),a==="\\\\"?D0(this.model):a==="&"?I0(this.model):this.model.selectionIsCollapsed?ya.insert(this.model,a,xe({style:this.model.at(this.model.position).computedStyle},y)):ya.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),Ao(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 re=this.model.mode,{model:oe}=this;oe.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let pe=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const ve=Jo(y,{context:this.context,parseMode:a});oe.collapseSelection("forward");const be=oe.at(oe.position);oe.position=oe.offsetOf(be.parent.addChildrenAfter(ve,be)),pe=!0}if(this.model.mode=a,a==="latex"){let ve=oe.selectionIsCollapsed;Bu(this,"accept");let be,Ie=oe.at(oe.position);if(ve)be="\\";else{const ht=Xo(oe.selection);be=this.model.getValue(ht,"latex");const Rt=this.model.extractAtoms(ht);Rt.length===1&&Rt[0].type==="placeholder"&&(be=y,ve=!0),Ie=oe.at(ht[0])}const Ke=new xd(be);Ie.parent.addChildAfter(Ke,Ie),ve?oe.position=oe.offsetOf(Ke.lastChild):oe.setSelection(oe.offsetOf(Ke.firstChild),oe.offsetOf(Ke.lastChild))}else Ld(oe).forEach(ve=>{ve.isError=!1});if(b){const ve=Jo(b,{context:this.context,parseMode:re});oe.collapseSelection("forward");const be=oe.at(oe.position);oe.position=oe.offsetOf(be.parent.addChildrenAfter(ve,be)),pe=!0}return Ao(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),pe}),this.model.mode=a,window.mathVirtualKeyboard.update(El(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};xu(y)?ee.range=y:(y.operation==="toggle"&&(ee.operation="toggle"),ee.range=y.range,ee.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const re=Ph(this,a),oe=(E=ee.operation)!=null?E:"set";if(ee.range===void 0&&this.model.selectionIsCollapsed){if(oe==="set"){this.defaultStyle=xe(xe({},this.defaultStyle),re);return}const pe=xe({},this.defaultStyle);for(const ve of Object.keys(re))pe[ve]===re[ve]?(ve==="color"&&delete pe.verbatimColor,ve==="backgroundColor"&&delete pe.verbatimBackgroundColor,delete pe[ve]):pe[ve]=re[ve];this.defaultStyle=pe;return}this.model.deferNotifications({content:!ee.silenceNotifications,type:"insertText"},()=>{if(ee.range===void 0)for(const pe of this.model.selection.ranges)Ah(this.model,pe,re,{operation:oe});else Ah(this.model,ee.range,re,{operation:oe})}),Ao(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=bl(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=Rd(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),Ao(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,me(xe({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),Ao(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),Ao(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(El(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(El(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(El(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:B0(this.options);this.model.mode!==ee&&(this.model.mode==="latex"?(Bu(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(El(this)),Gf(this)}onContentWillChange(a){var y,b,E;return(E=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",me(xe({},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(),_c(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="",Du(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})),Ao(this),this.focusBlurInProgress=!1,_h();const E=new AbortController,ee=E.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{Ns(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ee})},{once:!0,signal:ee}),setTimeout(()=>E.abort(),100)}onInput(a){Dh(this,a)}onKeystroke(a){return K0(this,a)}onCompositionStart(a){this.model.deleteAtoms(Xo(this.model.selection));const y=bl(this.field);y&&requestAnimationFrame(()=>{_c(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Lg(this.model,a),Ao(this)}onCompositionEnd(a){Bg(this.model),Dh(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),ya.onCopy(this,a),Ml(this.model,Xo(this.model.selection),"deleteByCut"),this.snapshot("cut"),Ao(this))}onCopy(a){ya.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=ya.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(),Mf(this),Gf(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=>En(b,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function gp(a){if(a&&(a.classList.remove("ML__highlight"),a.children))for(const y of a.children)gp(y)}function $h(a,y){var b;a&&(!y||((b=a.dataset)==null?void 0:b.atomId)===y?(a.classList.add("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&$h(E)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&$h(E,y)})))}function h1(a,y){var b;if(!dt())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"]};mc().readAloudElement=a,E.synthesizeSpeech(ee,(re,oe)=>{if(re){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${re}`);return}if(!(oe!=null&&oe.AudioStream)){console.log("polly.synthesizeSpeech():",oe);return}const pe=new TextDecoder("utf-8").decode(new Uint8Array(oe.AudioStream));mc().readAloudMarks=pe.split(`
|
|
|
`).map(ve=>ve?JSON.parse(ve):{}),mc().readAloudTokens=[];for(const ve of mc().readAloudMarks)ve.value&&mc().readAloudTokens.push(ve.value);mc().readAloudCurrentMark="",ee.OutputFormat="mp3",ee.SpeechMarkTypes=[],E.synthesizeSpeech(ee,(ve,be)=>{if(ve){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${ve}`);return}if(!(be!=null&&be.AudioStream))return;const Ie=new Uint8Array(be.AudioStream),Ke=new Blob([Ie.buffer],{type:"audio/mpeg"}),ht=URL.createObjectURL(Ke),Rt=mc();Rt.readAloudAudio?Rt.readAloudAudio.pause():(Rt.readAloudAudio=new Audio,Rt.readAloudAudio.addEventListener("ended",()=>{const Qt=Rt.readAloudMathfield;Rt.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Qt?(_c(Qt),Rt.readAloudElement=null,Rt.readAloudMathfield=null,Rt.readAloudTokens=[],Rt.readAloudMarks=[],Rt.readAloudCurrentMark=""):gp(Rt.readAloudElement)}),Rt.readAloudAudio.addEventListener("timeupdate",()=>{let Qt="";const er=Rt.readAloudAudio.currentTime*1e3+100;for(const Qr of Rt.readAloudMarks)Qr.time<er&&(Qt=Qr.value);Rt.readAloudCurrentMark!==Qt&&(Rt.readAloudCurrentToken=Qt,Qt&&Qt===Rt.readAloudFinalToken?Rt.readAloudAudio.pause():(Rt.readAloudCurrentMark=Qt,$h(Rt.readAloudElement,Rt.readAloudCurrentMark)))})),Rt.readAloudAudio.src=ht,Rt.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Rt.readAloudAudio.play()})})}dt()||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 ja=new WeakMap,p1=.5,pc={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 = ..."},is=class Yc extends HTMLElement{static get formAssociated(){return Wu()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(y){y!==this._fontsDirectory&&(this._fontsDirectory=y,ng())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(y){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(y){this._soundsDirectory=y,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(y){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(y){var b,E,ee;this.audioBuffers={},y===null?this._keypressSound={spacebar:null,return:null,delete:null,default:null}:typeof y=="string"?this._keypressSound={spacebar:y,return:y,delete:y,default:y}:typeof y=="object"&&"default"in y&&(this._keypressSound={spacebar:(b=y.spacebar)!=null?b:y.default,return:(E=y.return)!=null?E:y.default,delete:(ee=y.delete)!=null?ee:y.default,default:y.default})}static get plonkSound(){return this._plonkSound}static set plonkSound(y){this.audioBuffers={},this._plonkSound=y}static get audioContext(){return this._audioContext||(this._audioContext=new AudioContext),this._audioContext}static get speechEngine(){return this._speechEngine}static set speechEngine(y){this._speechEngine=y}static get speechEngineRate(){return this._speechEngineRate}static set speechEngineRate(y){this._speechEngineRate=y}static get speechEngineVoice(){return this._speechEngineVoice}static set speechEngineVoice(y){this._speechEngineVoice=y}static get textToSpeechMarkup(){return this._textToSpeechMarkup}static set textToSpeechMarkup(y){this._textToSpeechMarkup=y}static get textToSpeechRules(){return this._textToSpeechRules}static set textToSpeechRules(y){this._textToSpeechRules=y}static get textToSpeechRulesOptions(){return this._textToSpeechRulesOptions}static set textToSpeechRulesOptions(y){this._textToSpeechRulesOptions=y}static get locale(){return at.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),at.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 at.strings}static set strings(y){at.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 gc(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 re=yield(yield fetch(yield x0(`${E}/${b}`))).arrayBuffer(),oe=yield this.audioContext.decodeAudioData(re);this.audioBuffers[y]=oe}catch(ee){}})}static playSound(y){return gc(this,null,function*(){if((this.audioContext.state==="suspended"||this.audioContext.state==="interrupted")&&(yield this.audioContext.resume()),this.audioBuffers[y]||(yield this.loadSound(y)),!this.audioBuffers[y])return;const b=this.audioContext.createBufferSource();b.buffer=this.audioBuffers[y];const E=this.audioContext.createGain();E.gain.value=p1,b.connect(E).connect(this.audioContext.destination),b.start()})}constructor(y){if(super(),y){const b=[];for(const E of Object.keys(y))if(pc[E])if(pc[E].startsWith("mf."))if(pc[E].startsWith(`mf.${E}`))b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${pc[E]}`);else{const ee=pc[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 ${pc[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(Wu()&&(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=[uc("core"),uc("mathfield"),uc("mathfield-element"),uc("ui"),uc("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>"+Wl("core")+Wl("mathfield")+Wl("mathfield-element")+Wl("ui")+Wl("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=Yc.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?Hc(this._mathfield.options,y):ja.has(this)?xe({},Hc(xe(xe({},Nf()),Of(ja.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?Hc(this._mathfield.options,y):ja.has(this)?Hc(xe(xe({},Nf()),Of(ja.get(this).options)),y):null}reflectAttributes(){const y=Nf(),b=this._getOptions();Object.keys(Yc.optionsAttributes).forEach(E=>{const ee=Vl(E);Yc.optionsAttributes[E]==="on/off"?y[ee]!==b[ee]?this.setAttribute(E,b[ee]?"on":"off"):this.removeAttribute(E):y[ee]!==b[ee]&&(Yc.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(ja.has(this)){const b=xe(xe({},ja.get(this).options),y);ja.set(this,me(xe({},ja.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else ja.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))pc[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${pc[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,re;if(this._mathfield)return this._mathfield.model.getValue(y,b,E);if(ja.has(this)){let oe,pe,ve;if(wu(y)?([oe,pe]=y.ranges[0],ve=b):xu(y)?([oe,pe]=y,ve=b):gl(y)&&gl(b)?(oe=y,pe=b,ve=E):(oe=0,pe=-1,ve=y),(ve===void 0||ve==="latex")&&oe===0&&pe===-1)return(re=(ee=ja.get(this).value)!=null?ee:this.textContent)!=null?re:""}return""}setValue(y,b){if(this._mathfield&&y!==void 0){b!=null||(b={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(y,b);return}if(ja.has(this)){const ee=ja.get(this).options;ja.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ee,menuItems:void 0});return}const E=jd(this);ja.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?Rd(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=lc(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,re;wl.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"&&((re=this._mathfield)==null||re.blur()))}connectedCallback(){var y,b,E,ee;const re=window.getComputedStyle(this),oe=this.shadowRoot,pe=re.userSelect!=="none";if(pe)oe.host.addEventListener("pointerdown",this,!0);else{const Ie=oe.querySelector("span");Ie.style.pointerEvents="none"}oe.host.addEventListener("focus",this,!0),oe.host.addEventListener("blur",this,!0),Wu()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),pe&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const ve=oe.querySelector("slot:not([name])");if(ve)try{this._style=ve.assignedElements().filter(Ie=>Ie.tagName.toLowerCase()==="style").map(Ie=>Ie.textContent).join("")}catch(Ie){console.error(Ie)}if(this._style){const Ie=document.createElement("style");Ie.textContent=this._style,oe.appendChild(Ie)}let be="";if(this.hasAttribute("value")?be=this.getAttribute("value"):be=(y=ve==null?void 0:ve.assignedNodes().map(Ie=>Ie.nodeType===3?Ie.textContent:"").join("").trim())!=null?y:"",this._mathfield=new f1(oe.querySelector(":host > span"),me(xe({},(E=(b=ja.get(this))==null?void 0:b.options)!=null?E:jd(this)),{eventSink:this,value:be})),!ja.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const Ie of Object.keys(Yc.optionsAttributes))this.upgradeProperty(Vl(Ie))}if(!((ee=this._mathfield)!=null&&ee.model)){this._mathfield=null;return}if(ja.has(this)){const Ie=this._mathfield,Ke=ja.get(this),ht=Ke.menuItems;Ie.model.deferNotifications({content:!1,selection:!1},()=>{const Rt=Ke.value;Rt!==void 0&&Ie.setValue(Rt),Ie.model.selection=Ke.selection,ja.delete(this)}),ht&&(this.menuItems=ht)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),Lf()}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=Hc(this._mathfield.options,Object.keys(Yc.optionsAttributes).map(ee=>Vl(ee)));ja.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":Ao(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",""),Wu()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(Wu()?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"),Wu()?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:me(xe({},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=ja.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}ja.has(this)?ja.set(this,me(xe({},ja.get(this)),{menuItems:y})):ja.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:jd(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:ja.has(this)?ja.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,Ao(this._mathfield);return}if(ja.has(this)){ja.set(this,me(xe({},ja.get(this)),{selection:y}));return}ja.set(this,{value:void 0,selection:y,options:jd(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:ja.has(this)?ja.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,Ao(this._mathfield)),ja.has(this)){ja.set(this,me(xe({},ja.get(this)),{selection:{ranges:[[y,y]]}}));return}ja.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:jd(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}};is.version="0.98.5",is._fontsDirectory="./fonts",is._soundsDirectory="./sounds",is.keypressVibration=!0,is._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},is._plonkSound="plonk.wav",is.audioBuffers={},is.createHTML=a=>a,is._speechEngineRate="100%",is._speechEngineVoice="Joanna",is._textToSpeechMarkup="",is._textToSpeechRules="mathlive",is._textToSpeechRulesOptions={},is.speakHook=r1,is.readAloudHook=h1,is._decimalSeparator=".",is.fractionNavigationOrder="numerator-denominator",is._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 Wd=is;function Vl(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function jd(a){const y={readOnly:!1},b=Wd.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[Vl(E)]=!0:b[E]==="on/off"?ee==="on"?y[Vl(E)]=!0:ee==="off"?y[Vl(E)]=!1:y[Vl(E)]=void 0:b[E]==="number"?y[Vl(E)]=Number.parseFloat(ee!=null?ee:"0"):y[Vl(E)]=ee}}),y}function Wu(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var vp=Wd,yp,bp,xp,wp;if(dt()&&!((yp=window.customElements)!=null&&yp.get("math-field"))){(xp=window[bp=Symbol.for("io.cortexjs.mathlive")])!=null||(window[bp]={});const a=window[Symbol.for("io.cortexjs.mathlive")];a.version="0.98.5",window.MathfieldElement=Wd,(wp=window.customElements)==null||wp.define("math-field",Wd)}function m1(a,y,b){let E=b,ee=0;const re=a.length;for(;E<y.length;){const oe=y[E];if(ee<=0&&y.slice(E,E+re)===a)return E;oe==="\\"?E++:oe==="{"?ee++:oe==="}"&&ee--,E++}return-1}function qf(a,y,b,E,ee="latex"){const re=[];for(const oe of a)if(oe.type==="text"){const pe=oe.data;let ve=!0,be=0,Ie;Ie=pe.indexOf(y),Ie!==-1&&(be=Ie,be>0&&re.push({type:"text",data:pe.slice(0,be)}),ve=!1);let Ke=!1;for(;!Ke;){if(ve){if(Ie=pe.indexOf(y,be),Ie===-1){Ke=!0;break}be!==Ie&&re.push({type:"text",data:pe.slice(be,Ie)}),be=Ie}else{if(Ie=m1(b,pe,be+y.length),Ie===-1){Ke=!0;break}let ht=pe.slice(be+y.length,Ie);ee==="ascii-math"&&([,ht]=Oc(ht,{format:"ascii-math"})),re.push({type:"math",data:ht,rawData:pe.slice(be,Ie+b.length),mathstyle:E}),be=Ie+b.length}ve=!ve}be<pe.length&&re.push({type:"text",data:pe.slice(be)})}else re.push(oe);return re}function Sp(a,y,b){let E=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ee,re])=>{E=qf(E,ee,re,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ee,re])=>{E=qf(E,ee,re,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ee,re])=>{E=qf(E,ee,re,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ee,re])=>{E=qf(E,ee,re,"displaystyle","ascii-math")}),E}function g1(a,y){const b=document.createElement("span");b.setAttribute("translate","no");try{const E="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+y.renderToMathML(a)+"</math>";b.innerHTML=window.MathfieldElement.createHTML(E)}catch(E){console.error(`MathLive 0.98.5: Could not convert "${a}"' to MathML with ${E}`),b.textContent=a}return b.className="ML__sr-only",b}function v1(a,y,b,E){try{const ee=y.renderToMarkup(a,{mathstyle:b,format:"html"}),re=document.createElement("span");return re.dataset.latex=a,re.style.display=b==="displaystyle"?"flex":"inline-flex",re.setAttribute("aria-hidden","true"),re.setAttribute("translate","no"),re.innerHTML=window.MathfieldElement.createHTML(ee),re}catch(ee){if(console.error("Could not parse'"+a+"' with ",ee),E)return document.createTextNode(a)}return null}function ju(a,y,b,E){var ee;const re=v1(a,b,y||"textstyle",E),oe=(ee=b.renderAccessibleContent)!=null?ee:"";if(re&&/\b(mathml|speakable-text)\b/i.test(oe)){const pe=document.createElement("span");if(/\bmathml\b/i.test(oe)&&b.renderToMathML&&pe.append(g1(a,b)),/\bspeakable-text\b/i.test(oe)&&b.renderToSpeakableText){const ve=document.createElement("span");ve.setAttribute("translate","no");const be=b.renderToSpeakableText(a);ve.innerHTML=window.MathfieldElement.createHTML(be),ve.className="ML__sr-only",pe.append(ve)}return pe.append(re),pe}return re}function y1(a,y){var b,E,ee;let re=null;if((b=y.TeX)!=null&&b.processEnvironments&&/^\s*\\begin/.test(a)){re=document.createDocumentFragment();const oe=ju(a,"",y,!0);oe&&re.appendChild(oe)}else{if(!a.trim())return null;const oe=Sp(a,(E=y.TeX)==null?void 0:E.delimiters,(ee=y.asciiMath)==null?void 0:ee.delimiters);if(oe.length===1&&oe[0].type==="text")return null;re=document.createDocumentFragment();for(const pe of oe)if(pe.type==="text")re.appendChild(document.createTextNode(pe.data));else{const ve=ju(pe.data,pe.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);ve&&re.appendChild(ve)}}return re}function Cp(a,y){var b,E,ee,re,oe,pe,ve,be,Ie,Ke,ht,Rt,Qt,er,Qr,Jn;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Nr=(b=a.childNodes[0].textContent)!=null?b:"";if((E=y.TeX)!=null&&E.processEnvironments&&/^\s*\\begin/.test(Nr)){a.textContent="";const zr=ju(Nr,"",y,!0);zr&&a.append(zr);return}const ri=Sp(Nr,(ee=y.TeX)==null?void 0:ee.delimiters,(re=y.asciiMath)==null?void 0:re.delimiters);if(ri.length===1&&ri[0].type==="math"){a.textContent="";const zr=ju(ri[0].data,ri[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);zr&&a.append(zr);return}if(ri.length===1&&ri[0].type==="text")return}for(let Nr=a.childNodes.length-1;Nr>=0;Nr--){const ri=a.childNodes[Nr];if(ri.nodeType===3){const zr=y1((oe=ri.textContent)!=null?oe:"",y);zr&&(Nr+=zr.childNodes.length-1,ri.replaceWith(zr))}else if(ri.nodeType===1){const zr=ri,Fi=ri.nodeName.toLowerCase();if(Fi==="script"){const ea=ri;let Ui;if((pe=y.processScriptTypePattern)!=null&&pe.test(ea.type))Ui=(ve=ea.textContent)!=null?ve:"";else if((be=y.processMathJSONScriptTypePattern)!=null&&be.test(ea.type))try{Ui=(Ke=y.serializeToLatex)==null?void 0:Ke.call(y,JSON.parse((Ie=ea.textContent)!=null?Ie:""))}catch(za){console.error(za)}if(Ui){let za="textstyle";for(const ui of ea.type.split(";")){const[zs,kl]=ui.toLowerCase().split("=");zs.trim()==="mode"&&(za=kl.trim()==="display"?"displaystyle":"textstyle")}const io=ju(Ui,za,y,!0);io&&ea.parentNode.replaceChild(io,ea)}}else if(((Rt=(ht=y.processClassPattern)==null?void 0:ht.test(zr.className))!=null?Rt:!1)||!((er=(Qt=y.skipTags)==null?void 0:Qt.includes(Fi))!=null&&er||(Jn=(Qr=y.ignoreClassPattern)==null?void 0:Qr.test(zr.className))!=null&&Jn))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Ui=a.textContent;a.textContent="";const za=ju(Ui!=null?Ui:"","displaystyle",y,!0);za&&a.append(za)}else Cp(zr,y)}}}var b1={skipTags:["math-field","noscript","style","textarea","pre","code","annotation","annotation-xml"],processScriptType:"math/tex",processMathJSONScriptType:"math/json",ignoreClass:"tex2jax_ignore",processClass:"tex2jax_process",renderAccessibleContent:"mathml",asciiMath:{delimiters:{inline:[["`","`"]]}},TeX:{processEnvironments:!0,delimiters:{inline:[["\\(","\\)"]],display:[["$$","$$"],["\\[","\\]"]]}}};function x1(a,y){var b,E,ee,re;try{const oe=xe(xe({},b1),y);oe.ignoreClassPattern=new RegExp((b=oe.ignoreClass)!=null?b:""),oe.processClassPattern=new RegExp((E=oe.processClass)!=null?E:""),oe.processScriptTypePattern=new RegExp((ee=oe.processScriptType)!=null?ee:""),oe.processMathJSONScriptTypePattern=new RegExp((re=oe.processMathJSONScriptType)!=null?re:""),Lf(),ks("core"),Cp(a,oe)}catch(oe){oe instanceof Error?console.error("renderMathInElement(): "+oe.message):console.error("renderMathInElement(): Could not render math for element",a)}}function w1(a,y){const b=fc.singleton;return b?(b.show(),Id(),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}Ls({switchKeyboardLayer:w1,toggleVirtualKeyboard:S1,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function mc(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function D1(){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 I1(a){E1(document.body,a)}function C1(a){if(typeof a=="string"){const y=document.getElementById(a);if(y===null)throw new Error(`The element with ID "${a}" could not be found.`);return y}return typeof a=="string"?null:a}function E1(a,y){var b,E,ee,re;const oe=C1(a);if(!oe)return;const pe=y!=null?y:{};(b=pe.renderToMarkup)!=null||(pe.renderToMarkup=qo),(E=pe.renderToMathML)!=null||(pe.renderToMathML=Rv),(ee=pe.renderToSpeakableText)!=null||(pe.renderToSpeakableText=Fv),(re=pe.serializeToLatex)!=null||(pe.serializeToLatex=_v),x1(oe,pe)}var T1={mathlive:"0.98.5"}},17423:function(yn,fn,se){"use strict";se.d(fn,{Z:function(){return xe}});const ae=me=>typeof me=="object"&&me!=null&&me.nodeType===1,Le=(me,De)=>(!De||me!=="hidden")&&me!=="visible"&&me!=="clip",_e=(me,De)=>{if(me.clientHeight<me.scrollHeight||me.clientWidth<me.scrollWidth){const ot=getComputedStyle(me,null);return Le(ot.overflowY,De)||Le(ot.overflowX,De)||(Ne=>{const mt=(dt=>{if(!dt.ownerDocument||!dt.ownerDocument.defaultView)return null;try{return dt.ownerDocument.defaultView.frameElement}catch(pt){return null}})(Ne);return!!mt&&(mt.clientHeight<Ne.scrollHeight||mt.clientWidth<Ne.scrollWidth)})(me)}return!1},rt=(me,De,ot,Ne,mt,dt,pt,Je)=>dt<me&&pt>De||dt>me&&pt<De?0:dt<=me&&Je<=ot||pt>=De&&Je>=ot?dt-me-Ne:pt>De&&Je<ot||dt<me&&Je>ot?pt-De+mt:0,ge=me=>{const De=me.parentElement;return De==null?me.getRootNode().host||null:De},ke=(me,De)=>{var ot,Ne,mt,dt;if(typeof document=="undefined")return[];const{scrollMode:pt,block:Je,inline:Be,boundary:gt,skipOverflowHiddenElements:nn}=De,at=typeof gt=="function"?gt:Xt=>Xt!==gt;if(!ae(me))throw new TypeError("Invalid target");const vt=document.scrollingElement||document.documentElement,Ce=[];let Ae=me;for(;ae(Ae)&&at(Ae);){if(Ae=ge(Ae),Ae===vt){Ce.push(Ae);break}Ae!=null&&Ae===document.body&&_e(Ae)&&!_e(document.documentElement)||Ae!=null&&_e(Ae,nn)&&Ce.push(Ae)}const Ye=(Ne=(ot=window.visualViewport)==null?void 0:ot.width)!=null?Ne:innerWidth,Ve=(dt=(mt=window.visualViewport)==null?void 0:mt.height)!=null?dt:innerHeight,{scrollX:At,scrollY:xt}=window,{height:Lt,width:nt,top:qt,right:zt,bottom:bn,left:dn}=me.getBoundingClientRect(),{top:Wn,right:rr,bottom:ln,left:$e}=(Xt=>{const ft=window.getComputedStyle(Xt);return{top:parseFloat(ft.scrollMarginTop)||0,right:parseFloat(ft.scrollMarginRight)||0,bottom:parseFloat(ft.scrollMarginBottom)||0,left:parseFloat(ft.scrollMarginLeft)||0}})(me);let Se=Je==="start"||Je==="nearest"?qt-Wn:Je==="end"?bn+ln:qt+Lt/2-Wn+ln,Bt=Be==="center"?dn+nt/2-$e+rr:Be==="end"?zt+rr:dn-$e;const xn=[];for(let Xt=0;Xt<Ce.length;Xt++){const ft=Ce[Xt],{height:yt,width:Gt,top:qn,right:Dn,bottom:Tt,left:mn}=ft.getBoundingClientRect();if(pt==="if-needed"&&qt>=0&&dn>=0&&bn<=Ve&&zt<=Ye&&qt>=qn&&bn<=Tt&&dn>=mn&&zt<=Dn)return xn;const Vn=getComputedStyle(ft),kn=parseInt(Vn.borderLeftWidth,10),Pe=parseInt(Vn.borderTopWidth,10),fe=parseInt(Vn.borderRightWidth,10),ce=parseInt(Vn.borderBottomWidth,10);let he=0,ue=0;const le="offsetWidth"in ft?ft.offsetWidth-ft.clientWidth-kn-fe:0,Me="offsetHeight"in ft?ft.offsetHeight-ft.clientHeight-Pe-ce:0,Ge="offsetWidth"in ft?ft.offsetWidth===0?0:Gt/ft.offsetWidth:0,St="offsetHeight"in ft?ft.offsetHeight===0?0:yt/ft.offsetHeight:0;if(vt===ft)he=Je==="start"?Se:Je==="end"?Se-Ve:Je==="nearest"?rt(xt,xt+Ve,Ve,Pe,ce,xt+Se,xt+Se+Lt,Lt):Se-Ve/2,ue=Be==="start"?Bt:Be==="center"?Bt-Ye/2:Be==="end"?Bt-Ye:rt(At,At+Ye,Ye,kn,fe,At+Bt,At+Bt+nt,nt),he=Math.max(0,he+xt),ue=Math.max(0,ue+At);else{he=Je==="start"?Se-qn-Pe:Je==="end"?Se-Tt+ce+Me:Je==="nearest"?rt(qn,Tt,yt,Pe,ce+Me,Se,Se+Lt,Lt):Se-(qn+yt/2)+Me/2,ue=Be==="start"?Bt-mn-kn:Be==="center"?Bt-(mn+Gt/2)+le/2:Be==="end"?Bt-Dn+fe+le:rt(mn,Dn,Gt,kn,fe+le,Bt,Bt+nt,nt);const{scrollLeft:Ht,scrollTop:Yt}=ft;he=St===0?0:Math.max(0,Math.min(Yt+he/St,ft.scrollHeight-yt/St+Me)),ue=Ge===0?0:Math.max(0,Math.min(Ht+ue/Ge,ft.scrollWidth-Gt/Ge+le)),Se+=Yt-he,Bt+=Ht-ue}xn.push({el:ft,top:he,left:ue})}return xn},Ee=me=>me===!1?{block:"end",inline:"nearest"}:(De=>De===Object(De)&&Object.keys(De).length!==0)(me)?me:{block:"start",inline:"nearest"};function xe(me,De){if(!me.isConnected||!(mt=>{let dt=mt;for(;dt&&dt.parentNode;){if(dt.parentNode===document)return!0;dt=dt.parentNode instanceof ShadowRoot?dt.parentNode.host:dt.parentNode}return!1})(me))return;const ot=(mt=>{const dt=window.getComputedStyle(mt);return{top:parseFloat(dt.scrollMarginTop)||0,right:parseFloat(dt.scrollMarginRight)||0,bottom:parseFloat(dt.scrollMarginBottom)||0,left:parseFloat(dt.scrollMarginLeft)||0}})(me);if((mt=>typeof mt=="object"&&typeof mt.behavior=="function")(De))return De.behavior(ke(me,De));const Ne=typeof De=="boolean"||De==null?void 0:De.behavior;for(const{el:mt,top:dt,left:pt}of ke(me,Ee(De))){const Je=dt-ot.top+ot.bottom,Be=pt-ot.left+ot.right;mt.scroll({top:Je,left:Be,behavior:Ne})}}}}]);
|
|
|
}()); |