|
|
!(function(){var Qs=Math.pow;var Hl=(mn,un,le)=>new Promise((oe,Oe)=>{var Ne=Te=>{try{we(le.next(Te))}catch(Fe){Oe(Fe)}},dt=Te=>{try{we(le.throw(Te))}catch(Fe){Oe(Fe)}},we=Te=>Te.done?oe(Te.value):Promise.resolve(Te.value).then(Ne,dt);we((le=le.apply(mn,un)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[28580],{40001:function(mn,un,le){"use strict";le.d(un,{Z:function(){return be}});var oe=le(60499),Oe=le(59301),Ne={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"},dt=Ne,we=le(85221),Te=function(_e,ft){return Oe.createElement(we.Z,(0,oe.Z)({},_e,{ref:ft,icon:dt}))},Fe=Oe.forwardRef(Te),be=Fe},26227:function(mn,un,le){"use strict";le.d(un,{Z:function(){return be}});var oe=le(60499),Oe=le(59301),Ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},dt=Ne,we=le(85221),Te=function(_e,ft){return Oe.createElement(we.Z,(0,oe.Z)({},_e,{ref:ft,icon:dt}))},Fe=Oe.forwardRef(Te),be=Fe},49198:function(mn,un,le){"use strict";le.d(un,{Z:function(){return be}});var oe=le(60499),Oe=le(59301),Ne={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"},dt=Ne,we=le(85221),Te=function(_e,ft){return Oe.createElement(we.Z,(0,oe.Z)({},_e,{ref:ft,icon:dt}))},Fe=Oe.forwardRef(Te),be=Fe},84105:function(mn,un,le){"use strict";le.d(un,{Z:function(){return be}});var oe=le(60499),Oe=le(59301),Ne={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"},dt=Ne,we=le(85221),Te=function(_e,ft){return Oe.createElement(we.Z,(0,oe.Z)({},_e,{ref:ft,icon:dt}))},Fe=Oe.forwardRef(Te),be=Fe},41464:function(mn,un,le){"use strict";le.d(un,{Z:function(){return be}});var oe=le(60499),Oe=le(59301),Ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},dt=Ne,we=le(85221),Te=function(_e,ft){return Oe.createElement(we.Z,(0,oe.Z)({},_e,{ref:ft,icon:dt}))},Fe=Oe.forwardRef(Te),be=Fe},18785:function(mn,un,le){"use strict";le.d(un,{Z:function(){return be}});var oe=le(60499),Oe=le(59301),Ne={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"},dt=Ne,we=le(85221),Te=function(_e,ft){return Oe.createElement(we.Z,(0,oe.Z)({},_e,{ref:ft,icon:dt}))},Fe=Oe.forwardRef(Te),be=Fe},73331:function(mn,un,le){"use strict";le.d(un,{Z:function(){return be}});var oe=le(60499),Oe=le(59301),Ne={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"},dt=Ne,we=le(85221),Te=function(_e,ft){return Oe.createElement(we.Z,(0,oe.Z)({},_e,{ref:ft,icon:dt}))},Fe=Oe.forwardRef(Te),be=Fe},15277:function(mn,un,le){"use strict";le.d(un,{Z:function(){return be}});var oe=le(60499),Oe=le(59301),Ne={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"},dt=Ne,we=le(85221),Te=function(_e,ft){return Oe.createElement(we.Z,(0,oe.Z)({},_e,{ref:ft,icon:dt}))},Fe=Oe.forwardRef(Te),be=Fe},33853:function(mn,un,le){"use strict";le.d(un,{Z:function(){return be}});var oe=le(60499),Oe=le(59301),Ne={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"},dt=Ne,we=le(85221),Te=function(_e,ft){return Oe.createElement(we.Z,(0,oe.Z)({},_e,{ref:ft,icon:dt}))},Fe=Oe.forwardRef(Te),be=Fe},62772:function(mn,un,le){"use strict";le.d(un,{Z:function(){return be}});var oe=le(60499),Oe=le(59301),Ne={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"},dt=Ne,we=le(85221),Te=function(_e,ft){return Oe.createElement(we.Z,(0,oe.Z)({},_e,{ref:ft,icon:dt}))},Fe=Oe.forwardRef(Te),be=Fe},61485:function(mn,un,le){"use strict";le.d(un,{Z:function(){return be}});var oe=le(60499),Oe=le(59301),Ne={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"},dt=Ne,we=le(85221),Te=function(_e,ft){return Oe.createElement(we.Z,(0,oe.Z)({},_e,{ref:ft,icon:dt}))},Fe=Oe.forwardRef(Te),be=Fe},38819:function(mn,un,le){"use strict";le.d(un,{Z:function(){return be}});var oe=le(60499),Oe=le(59301),Ne={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"},dt=Ne,we=le(85221),Te=function(_e,ft){return Oe.createElement(we.Z,(0,oe.Z)({},_e,{ref:ft,icon:dt}))},Fe=Oe.forwardRef(Te),be=Fe},47472:function(mn,un,le){"use strict";le.d(un,{Z:function(){return be}});var oe=le(60499),Oe=le(59301),Ne={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"},dt=Ne,we=le(85221),Te=function(_e,ft){return Oe.createElement(we.Z,(0,oe.Z)({},_e,{ref:ft,icon:dt}))},Fe=Oe.forwardRef(Te),be=Fe},87395:function(mn,un,le){"use strict";le.d(un,{Z:function(){return be}});var oe=le(60499),Oe=le(59301),Ne={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"},dt=Ne,we=le(85221),Te=function(_e,ft){return Oe.createElement(we.Z,(0,oe.Z)({},_e,{ref:ft,icon:dt}))},Fe=Oe.forwardRef(Te),be=Fe},22054:function(){"use strict"},68305:function(){"use strict"},2375:function(mn,un){"use strict";un.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},44267:function(mn,un){"use strict";un.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},55114:function(mn,un){"use strict";un.Z={flex_box_center:"flex_box_center___cFjD5",flex_space_between:"flex_space_between___WX1ma",flex_box_vertical_center:"flex_box_vertical_center___iyMsP",flex_box_center_end:"flex_box_center_end___LFV4U",flex_box_column:"flex_box_column___GujFO",Onerow:"Onerow___QKU3O",MultiLine:"MultiLine___ZOVUQ",LessonsList:"LessonsList___lfvK6",LessonsListItem:"LessonsListItem___Opl7o",LessonsListItemImg:"LessonsListItemImg___rvVXp",imgUpLoad:"imgUpLoad___wax6e"}},75354: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 mn={},un="5.0",le={},oe=null,Oe=!1,Ne=!1,dt=null,we=!1,Te=null,Fe=null,be=0;be<arguments.length;be++){var Ce=arguments[be];if(Ce!==null)switch(typeof Ce){case"number":un=Ce.toFixed(1);break;case"string":Ce.match(new RegExp("^[0-9]\\.[0-9]+$"))?un=Ce:dt=Ce;break;case"object":typeof Ce.is3D!="undefined"?oe=Ce:le=Ce;break;case"boolean":Oe=Ce,Ne=!0;break}}oe===null&&(oe={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},le.material_id!==void 0&&!Ne&&(Oe=!0)),dt!==null&&le.id===void 0&&(le.id=dt);var _e="",ft="",Ie=!1,Ge=null,wt=null,ut=null,yt=!1,lt=null,ht=null,Vt=null,ot=null,gt=null;le.height!==void 0&&(le.height=Math.round(le.height)),le.width!==void 0&&(le.width=Math.round(le.width));var Ve=function(Qe){return parseFloat(Qe)>4?parseFloat(Qe):5};mn.setHTML5Codebase=function(Qe,$e){Fe=Qe,Xe(Qe,$e)},mn.setJavaCodebase=mn.setJavaCodebaseVersion=mn.isCompiledInstalled=mn.setPreCompiledScriptPath=mn.setPreCompiledResourcePath=function(){},mn.setHTML5CodebaseVersion=function(Qe,$e){var Mt=parseFloat(Qe);if(Mt!==NaN&&Mt<5){console.log("The GeoGebra HTML5 codebase version "+Mt+" is deprecated. Using version latest instead.");return}Te=Qe,xe(Qe,$e)},mn.getHTML5CodebaseVersion=function(){return wt},mn.getParameters=function(){return le},mn.setFontsCSSURL=function(Qe){ot=Qe},mn.setGiacJSURL=function(Qe){},mn.setJNLPFile=function(Qe){_e=Qe},mn.setJNLPBaseDir=function(Qe){},mn.inject=function(){function Qe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var $e="auto",Mt=le.id,wn,cn=!1,dn=0;dn<arguments.length;dn++){var nn=arguments[dn];typeof nn=="string"?(nn=nn.toLowerCase(),nn.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?$e=nn:Mt=arguments[dn]):typeof nn=="boolean"?cn=nn:nn instanceof HTMLElement&&(wn=nn)}Jt();function Jt(){if(!we){setTimeout(Jt,200);return}$e=Ht($e);var Bt=wn||document.getElementById(Mt);if(!Bt){console.log("possibly bug on ajax loading? ");return}if(mn.removeExistingApplet(Bt,!1),le.width===void 0&&Bt.clientWidth&&(le.width=Bt.clientWidth),le.height===void 0&&Bt.clientHeight&&(le.height=Bt.clientHeight),!(le.width&&le.height)&&$e==="html5"&&(delete le.width,delete le.height),Ge=$e,$e==="screenshot")nt(Bt,le);else{var ge=!1;le.hasOwnProperty("playButton")&&le.playButton||le.hasOwnProperty("clickToLoad")&&le.clickToLoad?ge=!0:le.hasOwnProperty("playButtonAutoDecide")&&le.playButtonAutoDecide&&(ge=(!Me()||Qe())&&Ue()),ge?(Ge="screenshot",ln(Bt,le,cn,$e)):Tt(Bt,le,cn)}}};function Me(){try{return window.self!==window.top}catch(Qe){return!0}}function Ue(){return le.hasOwnProperty("screenshotGenerator")&&le.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}mn.getViews=function(){return oe},mn.isJavaInstalled=function(){return!1};var tt=function(Qe){var $e=function(dn){var nn=JSON.parse(dn),Jt=function(ue){return ue.type=="G"||ue.type=="E"},Bt=nn.elements?nn.elements.filter(Jt)[0]:nn;if(!Bt||!Bt.url){Mt();return}le.fileName=Bt.url,mt(Bt.settings||{}),oe.is3D=!0;var ge="https://www.geogebra.org/images/";mn.setPreviewImage(lt||Bt.previewUrl,ge+"GeoGebra_loading.png",ge+"applet_play.png"),Qe()},Mt=function(){le.onError&&le.onError(),_t("Error: Fetching material (id "+le.material_id+") failed.",le)},wn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",cn="/materials/"+le.material_id+"?scope=basic";Je("https://"+wn+"/api/proxy.php?path="+encodeURIComponent(cn),$e,Mt)};function mt(Qe){var $e=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Mt){Qe[Mt]=!!Qe[Mt]}),$e.forEach(function(Mt){le[Mt]===void 0&&Qe[Mt]!==void 0&&(le[Mt]=Qe[Mt])}),le.showToolBarHelp===void 0&&(le.showToolBarHelp=le.showToolBar)}function Je(Qe,$e,Mt){var wn=new XMLHttpRequest;wn.open("GET",Qe),wn.onload=function(){$e(wn.responseText)},wn.onerror=Mt,wn.send()}mn.isHTML5Installed=function(){return!0},mn.getLoadedAppletType=function(){return Ge},mn.setPreviewImage=function(Qe,$e,Mt){lt=Qe,ht=$e,Vt=Mt},mn.removeExistingApplet=function(Qe,$e){var Mt;typeof Qe=="string"&&(Qe=document.getElementById(Qe)),Ge=null;var wn=null;for(Mt=0;Mt<Qe.childNodes.length;Mt++){var cn=Qe.childNodes[Mt],dn=cn.className;dn==="applet_screenshot"?$e?(cn.style.display="block",Ge="screenshot"):cn.style.display="none":dn!=="applet_scaler prerender"&&(Qe.removeChild(cn),wn=dn&&dn.indexOf("appletParameters")!=-1?cn.id:null,Mt--)}var nn=le.id!==void 0?le.id:wn,Jt=window[nn];Jt&&typeof Jt.getBase64=="function"&&(Jt.remove(),window[nn]=null)},mn.refreshHitPoints=function(){if(Ve(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Qe=mn.getAppletObject();return Qe&&typeof Qe.recalculateEnvironments=="function"?(Qe.recalculateEnvironments(),!0):!1},mn.startAnimation=function(){var Qe=mn.getAppletObject();return Qe&&typeof Qe.startAnimation=="function"?(Qe.startAnimation(),!0):!1},mn.stopAnimation=function(){var Qe=mn.getAppletObject();return Qe&&typeof Qe.stopAnimation=="function"?(Qe.stopAnimation(),!0):!1},mn.getAppletObject=function(){var Qe=le.id!==void 0?le.id:"ggbApplet";return window[Qe]},mn.resize=function(){};var kt=function(Qe,$e,Mt){var wn=document.createElement("param");wn.setAttribute("name",$e),wn.setAttribute("value",Mt),Qe.appendChild(wn)},st=function(Qe){return Qe&&Qe!=="false"},Tt=function(Qe,$e,Mt){Ve(wt)<=4.2&&(Mt=!0);var wn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==wt||ggbHTML5LoadedCodebaseIsWebSimple&&!yt)&&(wn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var cn=document.createElement("div");cn.classList.add("appletParameters","notranslate");var dn=$e.width,nn=$e.height;if($e.disableAutoScale=$e.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():$e.disableAutoScale,$e.width!==void 0)if(Ve(wt)<=4.4)st($e.showToolBar)&&($e.height-=7),st($e.showAlgebraInput)&&($e.height-=37),$e.width<605&&st($e.showToolBar)&&($e.width=605,dn=605);else{var Jt=100;(st($e.showToolBar)||st($e.showMenuBar))&&($e.hasOwnProperty("customToolBar")&&($e.customToolbar=$e.customToolBar),Jt=st($e.showMenuBar)?245:155),dn<Jt&&($e.width=Jt,dn=Jt)}cn.style.border="none",cn.style.display="inline-block";for(var Bt in $e)$e.hasOwnProperty(Bt)&&Bt!=="appletOnLoad"&&cn.setAttribute("data-param-"+Bt,$e[Bt]);ot&&cn.setAttribute("data-param-fontscssurl",ot),mn.resize=function(){GGBAppletUtils.responsiveResize(Qe,$e)},window.addEventListener("resize",function(Ye){mn.resize()});var ge=typeof $e.appletOnLoad=="function"?$e.appletOnLoad:function(){};if(!Mt&&$e.width!==void 0){$e.hasOwnProperty("showSplash")||cn.setAttribute("data-param-showSplash","false");var ue=Qe.querySelector(".applet_scaler.prerender"),se=ue!==null;if(se)var he=ue.querySelector(".ggb_preview");else{var he=en(dn,nn,$e.borderColor,!1);ue=document.createElement("div"),ue.className="applet_scaler",ue.style.position="relative",ue.style.display="block",ue.style.width=dn+"px",ue.style.height=nn+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ue,"66%"),Ve(wt)>=5?($e.appletOnLoad=function(Ye){var Pt=Qe.querySelector(".ggb_preview");Pt&&Pt.parentNode.removeChild(Pt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ue),window.GGBT_wsf_view&&$(window).trigger("resize"),ge(Ye)},se||ue.appendChild(he)):cn.appendChild(he),ue.appendChild(cn),se||Qe.appendChild(ue),setTimeout(function(){mn.resize()},1)}else{var fe=document.createElement("div");fe.className="applet_scaler",fe.style.position="relative",fe.style.display="block",fe.appendChild(cn),Qe.appendChild(fe),$e.appletOnLoad=function(Ye){mn.resize(),ge(Ye)}}function ce(Ye,Pt){Pt&&typeof Pt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ye,Pt.appletOnLoad):renderGGBElement(Ye),_t("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Pt)}function Ae(Ye,Pt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ye,params:Pt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(hn){ce(hn.article,hn.params)}),html5AppletsToProcess=null)},Ve(wt)<5&&(Ye.className+=" geogebraweb")):ce(Ye,Pt)}if(wn){scriptLoadStarted=!0;for(var rt=0;rt<cn.childNodes.length;rt++){var Le=cn.childNodes[rt].tagName;Le==="TABLE"&&(cn.removeChild(cn.childNodes[rt]),rt--)}if(ggbHTML5LoadedScript!==null){var Ke=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ke!=null&&Ke.parentNode.removeChild(Ke)}var Lt=document.createElement("script"),xt=function(){Ae(cn,$e)};Lt.src=ft+ut,ggbHTML5LoadedCodebaseIsWebSimple=yt,ggbHTML5LoadedCodebaseVersion=wt,ggbHTML5LoadedScript=Lt.src,_t("GeoGebra HTML5 codebase loaded: '"+ft+"'.",$e),!Fe&&(!Te||Te=="5.0")?(yt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),xt()):ft.requirejs?__webpack_require__.e(49111).then(function(){var Ye=[__webpack_require__(49111)];xt.apply(null,Ye)}.bind(this)).catch(__webpack_require__.oe):(Lt.onload=xt,Qe.appendChild(Lt))}else Ae(cn,$e);$e.height=nn,$e.width=dn},nt=function(Qe,$e,Mt){var wn=en($e.width,$e.height,$e.borderColor,Mt),cn=document.createElement("div");cn.style.position="relative",cn.style.display="block",cn.style.width=$e.width+"px",cn.style.height=$e.height+"px",cn.className="applet_screenshot applet_scaler"+(Mt?" applet_screenshot_play":""),cn.appendChild(wn);var dn=GGBAppletUtils.getScale($e,Qe,Mt);Mt?(Qe.appendChild(tn()),window.GGBT_wsf_view||(Qe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(cn,"66%"),Qe.appendChild(cn),dn!==1&&!isNaN(dn)&&(GGBAppletUtils.scaleElement(cn,dn),cn.style.width=$e.width+"px",cn.style.height=$e.height+"px",cn.parentNode.style.width=$e.width*dn+"px",cn.parentNode.style.height=$e.height*dn+"px"),mn.resize=function(){Yt(Qe,wn,cn,Mt)},window.addEventListener("resize",function(nn){mn.resize()}),mn.resize()};function Yt(Qe,$e,Mt,wn){if(Qe.contains($e)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Qe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Qe)}var cn=GGBAppletUtils.getScale(le,Qe,wn);Mt.parentNode!==null&&(!isNaN(cn)&&cn!==1?(GGBAppletUtils.scaleElement(Mt,cn),Mt.parentNode.style.width=le.width*cn+"px",Mt.parentNode.style.height=le.height*cn+"px"):(GGBAppletUtils.scaleElement(Mt,1),Mt.parentNode.style.width=le.width+"px",Mt.parentNode.style.height=le.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Qe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}mn.onExitFullscreen=function(Qe,$e){$e.appendChild(Qe)};var ln=function(Qe,$e,Mt,wn){nt(Qe,$e,!0);for(var cn=function(){var Jt=[];for(nn=0;nn<Qe.childNodes.length;nn++)Jt.push(Qe.childNodes[nn]);if(window.GGBT_wsf_view){var Bt=window.GGBT_wsf_view.renderFullScreen(Qe,$e.id),ge=document.getElementById("fullscreencontainer"),ue=jQuery(Qe).find(".fullscreencontent");ue.length>0?(Bt.remove(),ue.attr("id","fullscreencontent").show(),jQuery(ge).append(ue),window.dispatchEvent(new Event("resize"))):Tt(Bt,$e,!1),window.GGBT_wsf_view.launchFullScreen(ge)}else Ge=wn,Tt(Qe,$e,!1);if(!window.GGBT_wsf_view)for(nn=0;nn<Jt.length;nn++)Qe.removeChild(Jt[nn])},dn=Qe.getElementsByClassName("ggb_preview_play"),nn=0;nn<dn.length;nn++)dn[nn].addEventListener("click",cn,!1),dn[nn].addEventListener("ontouchstart",cn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Qe),Ue()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},tn=function(){var Qe=document.createElement("div");if(Qe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var $e='.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");}',Mt=document.createElement("style");Mt.styleSheet?Mt.styleSheet.cssText=$e:Mt.appendChild(document.createTextNode($e)),document.getElementsByTagName("head")[0].appendChild(Mt)}return Qe},en=function(Qe,$e,Mt,wn){var cn=document.createElement("div");cn.className="ggb_preview",cn.style.position="absolute",cn.style.zIndex="90",cn.style.width=Qe-2+"px",cn.style.height=$e-2+"px",cn.style.top="0px",cn.style.left="0px",cn.style.overflow="hidden",cn.style.backgroundColor="white";var dn="lightgrey";Mt!==void 0&&(Mt==="none"?dn="transparent":dn=Mt),cn.style.border="1px solid "+dn;var nn=document.createElement("img");if(nn.style.position="relative",nn.style.zIndex="1000",nn.style.top="-1px",nn.style.left="-1px",lt!==null&&nn.setAttribute("src",lt),nn.style.opacity=.7,ht!==null){var Jt,Bt,ge;if(!wn){Jt=document.createElement("img"),Jt.style.position="absolute",Jt.style.zIndex="1001",Jt.style.opacity=1,nn.style.opacity=.3,Bt=360,Bt>Qe/4*3&&(Bt=Qe/4*3),ge=Bt/5.8,Jt.setAttribute("src",ht),Jt.setAttribute("width",Bt),Jt.setAttribute("height",ge);var ue=(Qe-Bt)/2,se=($e-ge)/2;Jt.style.left=ue+"px",Jt.style.top=se+"px",cn.appendChild(Jt)}}return cn.appendChild(nn),cn},Ht=function(Qe){return Qe=Qe.toLowerCase(),Qe==="html5"||Qe==="screenshot"?Qe:"html5"},je=["web","webSimple","web3d","tablet","tablet3d","phone"],xe=function(Qe,$e){if(wt=Qe,$e){Xe(wt,!0);return}var Mt=!Oe;if(Mt){var wn=Ve(wt);!isNaN(wn)&&wn<4.4&&(Mt=!1)}var cn,dn;window.location.protocol.substr(0,4)==="http"?cn=window.location.protocol:cn="http:";var nn=wt.indexOf("//");nn>0?dn=wt:nn===0?dn=cn+wt:dn="https://www.geogebra.org/apps/5.2.814.0/";for(var Jt in je)if(wt.slice(je[Jt].length*-1)===je[Jt]||wt.slice((je[Jt].length+1)*-1)===je[Jt]+"/"){Xe(dn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Mt&&!oe.is3D&&!oe.AV&&!oe.SV&&!oe.CV&&!oe.EV2&&!oe.CP&&!oe.PC&&!oe.DA&&!oe.FI&&!oe.PV&&!st(le.showToolBar)&&!st(le.showMenuBar)&&!st(le.showAlgebraInput)&&!st(le.enableRightClick)&&(!le.appName||le.appName=="classic")?dn+="webSimple/":dn+="web3d/",Xe(dn,!1)},Xe=function(Qe,$e){if(Qe.requirejs){ft=Qe;return}Qe.slice(-1)!=="/"&&(Qe+="/"),ft=Qe,$e===null&&($e=Qe.indexOf("http")===-1),Ie=$e,ut="web.nocache.js",yt=!1;var Mt=ft.split("/");Mt.length>1&&(!$e&&Mt[Mt.length-2]==="webSimple"?(ut="webSimple.nocache.js",yt=!0):je.indexOf(Mt[Mt.length-2])>=0&&(ut=Mt[Mt.length-2]+".nocache.js")),Mt=Qe.split("/"),wt=Mt[Mt.length-3],wt.substr(0,4)==="test"?wt=wt.substr(4,1)+"."+wt.substr(5,1):(wt.substr(0,3)==="war"||wt.substr(0,4)==="beta")&&(wt="5.0");var wn=parseFloat(wt);wn!==NaN&&wn<5&&Qe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+wn+" is deprecated. Using version latest instead."),xe("5.0",$e))},_t=function(Qe,$e){window.console&&window.console.log&&(!$e||typeof $e.showLogging=="undefined"||$e.showLogging&&$e.showLogging!=="false")&&console.log(Qe)};le.material_id!==void 0?tt(St):St();function St(){var Qe=un;Te!==null?Qe=Te:parseFloat(Qe)<5&&(Qe="5.0"),xe(Qe,!1),Fe!==null&&Xe(Fe,Ie),we=!0}return mn},GGBAppletUtils=function(){"use strict";function mn(){return window.GGBT_wsf_edit!==void 0}function un(we,Te){Te!=1?(we.style.transformOrigin="0% 0% 0px",we.style.webkitTransformOrigin="0% 0% 0px",we.style.transform="scale("+Te+","+Te+")",we.style.webkitTransform="scale("+Te+","+Te+")",we.style.maxWidth="initial",we.querySelector(".ggb_preview")!==null&&(we.querySelector(".ggb_preview").style.maxWidth="initial"),we.querySelectorAll(".ggb_preview img")[0]!==void 0&&(we.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),we.querySelectorAll(".ggb_preview img")[1]!==void 0&&(we.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(we.style.transform="none",we.style.webkitTransform="none")}function le(we,Te,Fe,be,Ce,_e){var ft=null;if(_e!=null&&_e!="")for(var Ie=we.parentNode;Ie!=null;)if((" "+Ie.className+" ").indexOf(" "+_e+" ")>-1){ft=Ie;break}else Ie=Ie.parentNode;var Ge=0,wt=0,ut=0,yt=0,lt=0,ht=0,Vt=0;if(ft)Ge=ft.offsetWidth,wt=Math.max(be?ft.offsetWidth:0,ft.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ge=Math.min(window.innerWidth,document.documentElement.clientWidth),wt=Math.min(window.innerHeight,document.documentElement.clientHeight),ut=Ge):(Ge=window.innerWidth,wt=window.innerHeight,ut=window.innerWidth),we){var ot=we.getBoundingClientRect();ot.left>0&&ot.left<=Ge&&(Ce===void 0||!Ce)&&(document.dir==="rtl"?(lt=Ge-ot.width-ot.left,ht=ut<=480?10:30):(ht=ot.left,lt=ut<=480?10:30),yt=ht+lt)}if(we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var gt=we.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(yt=40,Vt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(yt=0,Vt=40)}}return we&&((Fe===void 0||!Fe)&&Te>0&&Te+yt<Ge?Ge=Te:Ge-=yt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Fe===void 0||!Fe)&&(wt-=Vt)),{width:Ge,height:wt}}function oe(we,Te,Fe,be,Ce){if(we.isScreenshoGenerator)return 1;var _e=be!==void 0&&be,ft=we.noScaleMargin!=null&&we.noScaleMargin,Ie=function(gt){return gt&>!=="false"},Ge=Ie(we.autoHeight),wt=le(Te,we.width,Fe,Ge,_e&&window.GGBT_wsf_view||ft,Ce),ut=parseInt(wt.width),yt=we.width,lt=we.height;if(yt===void 0){var ht=Te.querySelector(".appletParameters");ht&&(yt=ht.offsetWidth,lt=ht.offsetHeight)}var Vt=ut/yt,ot=_e?1:wt.height/lt;return Fe!==void 0&&!Fe&&(Vt=Math.min(1,Vt),ot=Math.min(1,ot)),Math.min(Vt,ot)}function Oe(we,Te,Fe){var be=1,Ce,_e=!1;if(we.hasOwnProperty("allowUpscale")&&(_e=we.allowUpscale),we.hasOwnProperty("scale")&&(be=parseFloat(we.scale),(isNaN(be)||be===null||be===0)&&(be=1),be>1&&(_e=!0)),Te&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(_e=!0),!(we.hasOwnProperty("disableAutoScale")&&we.disableAutoScale))Ce=oe(we,Te,_e,Fe,we.scaleContainerClass);else return be;return _e&&(!we.hasOwnProperty("scale")||be===1)?Ce:Math.min(be,Ce)}function Ne(we){var Te=Math.min(window.innerWidth,document.documentElement.clientWidth),Fe=Math.min(window.innerHeight,document.documentElement.clientHeight),be=we.getBoundingClientRect(),Ce=(Te-be.width)/2,_e=(Fe-be.height)/2;_e<0&&(_e=0),we.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ce<40?we.style.left="40px":we.style.left=Ce+"px",we.style.top=_e+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(_e<40?we.style.top="40px":we.style.top=_e+"px",we.style.left=Ce+"px")}function dt(we,Te){var Fe=we.querySelector(".appletParameters");if(Fe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Te.id!==Fe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(we)}if(Fe.parentElement&&/fullscreen/.test(Fe.parentElement.className))return;var be=Oe(Te,we);mn()&&Fe.setAttribute("data-param-scale",be);for(var Ce=null,_e=0;_e<we.childNodes.length;_e++)if(we.childNodes[_e].className!==void 0&&we.childNodes[_e].className.match(/^applet_scaler/)){Ce=we.childNodes[_e];break}if(Ce!==null&&Ce.querySelector(".noscale")!==null)return;var ft=Te.id!==void 0?Te.id:"ggbApplet",Ie=window[ft];(Ie==null||!Ie.recalculateEnvironments)&&Ce!==null&&!Ce.className.match(/fullscreen/)&&(Ce.parentNode.style.transform="",!isNaN(be)&&be!==1?(Ce.parentNode.style.width=Te.width*be+"px",Ce.parentNode.style.height=Te.height*be+"px",un(Ce,be)):(un(Ce,1),Ce.parentNode.style.width=Te.width+"px",Ce.parentNode.style.height=Te.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ne(we),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Fe).parents(".content-added-content"))}}return{responsiveResize:dt,isFlexibleWorksheetEditor:mn,positionCenter:Ne,getScale:Oe,scaleElement:un}}();__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 mn=n.location.search;return mn.indexOf(J)!=-1||mn.indexOf(K)!=-1}function q(mn,un){}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(mn){var un=s[L].bindings;s[L].bindings=function(){for(var le=un?un():{},oe=mn[webModule.__softPermutationId],Oe=O;Oe<oe.length;Oe++){var Ne=oe[Oe];le[Ne[O]]=Ne[P]}return le}};var t;function u(){return v(),t}function v(){if(!t){var mn=o.createElement(Q);if(mn.id=L,mn.style.cssText=R+S,mn.tabIndex=-1,o.body.appendChild(mn),t=mn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var un=document.compatMode==U?V:W;t.write(un+X),t.close()}}}function w(mn){function un(oe){function Oe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ne=Oe();if(Ne){oe();return}function dt(){if(!Ne){if(!Oe())return;Ne=!0,oe(),o.removeEventListener&&o.removeEventListener(Z,dt,!1),we&&clearInterval(we)}}o.addEventListener&&o.addEventListener(Z,dt,!1);var we=setInterval(function(){dt()},$)}function le(oe){var Oe=u(),Ne=Oe.body,dt=Oe.createElement(_);dt.language=ab,dt.crossOrigin=W,dt.src=oe,webModule.__errFn&&(dt.onerror=function(){webModule.__errFn(L,new Error(bb+oe))}),Ne.appendChild(dt)}un(function(){le(mn)})}webModule.__startLoadingFragment=function(mn){return C(mn)},webModule.__installRunAsyncCode=function(mn){var un=u(),le=un.body,oe=un.createElement(_);oe.language=ab,oe.text=mn,le.appendChild(oe),le.removeChild(oe)};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(mn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(mn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(mn){var un=c[mn];return un==null?null:un},r=d,webModule.__errFn=e}function B(){function mn(we){var Te=we.lastIndexOf(rb);Te==-1&&(Te=we.length);var Fe=we.indexOf(sb);Fe==-1&&(Fe=we.length);var be=we.lastIndexOf(tb,Math.min(Fe,Te));return be>=O?we.substring(O,be+P):W}function un(we){if(!we.match(/^\w+:\/\//)){var Te=o.createElement(ub);Te.src=we+vb,we=mn(Te.src)}return we}function le(){var we=__gwt_getMetaProperty(wb);return we!=null?we:W}function oe(){for(var we=o.getElementsByTagName(_),Te=O;Te<we.length;++Te)if(we[Te].src.indexOf(xb)!=-1)return mn(we[Te].src);return W}function Oe(){var we=o.getElementsByTagName(yb);return we.length>O?we[we.length-P].href:W}function Ne(){var we=o.location;return we.href==we.protocol+zb+we.host+we.pathname+we.search+we.hash}var dt=le();return dt==W&&(dt=oe()),dt==W&&(dt=Oe()),dt==W&&Ne()&&(dt=mn(o.location.href)),dt=un(dt),dt}function C(mn){return mn.match(/^\//)||mn.match(/^[a-zA-Z]+:\/\//)?mn:webModule.__moduleBase+mn}function D(){var mn=[],un=O,le=[],oe=[];function Oe(we){var Te=oe[we](),Fe=le[we];if(Te in Fe)return Te;var be=[];for(var Ce in Fe)be[Fe[Ce]]=Ce;throw r&&r(we,be,Te),null}if(__gwt_isKnownPropertyValue=function(we,Te){return Te in le[we]},webModule.__getPropMap=function(){var we={};for(var Te in le)le.hasOwnProperty(Te)&&(we[Te]=Oe(Te));return we},webModule.__computePropValue=Oe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ne;try{Ne=Cb;var dt=Ne.indexOf(Db);dt!=-1&&(un=parseInt(Ne.substring(dt+P),$),Ne=Ne.substring(O,dt))}catch(we){}return webModule.__softPermutationId=un,C(Ne+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})()},32546:function(mn,un,le){"use strict";le.d(un,{Ax:function(){return dt},Ds:function(){return we},KI:function(){return Fe},SI:function(){return Ne},f1:function(){return Oe}});var oe=le(42684);function Oe(be){let Ce=!0;if(be.length>0){for(let _e=0;_e<be.length;_e++)if(be[_e].compile_success==0||!be[_e].compile_success){Ce=!1;break}}else Ce=!1;return Ce}function Ne(be,Ce=""){let _e=[];for(let ft=0;ft<be.length;ft++){let Ie=be[ft],Ge=Ce?`${Ce}/${Ie.name}`:`${Ie.name}`;_e.push({title:Ie.name,type:Ie.type,isLeaf:Ie.type!=="tree",key:Ge})}return _e}function dt(be,Ce,_e){for(let ft=0;ft<be.length;ft++){let Ie=be[ft];if(Ie.key===Ce){Ie.children=_e;break}Ie.children&&dt(Ie.children,Ce,_e)}return be}function we(be,Ce,_e){let ft;return function(){let Ie=this,Ge=arguments,wt=function(){ft=null,_e||be.apply(Ie,Ge)},ut=_e&&!ft;clearTimeout(ft),ft=setTimeout(wt,Ce),ut&&be.apply(Ie,Ge)}}const Te=!0,Fe=oe.Z.API_SERVER},18997:function(mn,un,le){"use strict";le.d(un,{Z:function(){return ft}});var oe=le(59301),Oe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ne=le(92310),dt=le.n(Ne),we=le(71418),Te=le(2859),Fe=le(58661),be=le(85333),Ce=(Ie,Ge,wt)=>new Promise((ut,yt)=>{var lt=ot=>{try{Vt(wt.next(ot))}catch(gt){yt(gt)}},ht=ot=>{try{Vt(wt.throw(ot))}catch(gt){yt(gt)}},Vt=ot=>ot.done?ut(ot.value):Promise.resolve(ot.value).then(lt,ht);Vt((wt=wt.apply(Ie,Ge)).next())}),ft=({data:Ie,className:Ge,fullWidth:wt,style:ut={},onClose:yt,onOk:lt,showFullTools:ht,noAssociationId:Vt})=>{const ot=(0,oe.useRef)(null),gt=(0,oe.useRef)(null),Ve=(0,oe.useRef)(null),Me=(0,oe.useRef)(null),[Ue,tt]=(0,oe.useState)(!1),[mt,Je]=(0,oe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,oe.useEffect)(()=>{Ve.current||(Ve.current=document.createElement("style"),document.head.appendChild(Ve.current)),Ie!=null&&Ie.visible?(document.body.setAttribute("data-custom","y-hidden"),Ve.current.innerHTML=" html { overflow-y: hidden; }",Ie!=null&&Ie.src&&kt()):(document.body.removeAttribute("data-custom"),Ve.current&&(document.head.removeChild(Ve.current),Ve.current=null))},[Ie==null?void 0:Ie.visible]);const kt=()=>Ce(void 0,null,function*(){tt(!0),Je("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ln=yield(0,be.ZJ)(Ie==null?void 0:Ie.src);ot.current.src="",ot.current.src=ln,ot.current.onload=function(){Yt()},tt(!1),Je("")}),st=()=>{document.body.removeAttribute("data-custom"),Ve.current.innerHTML=" ",yt()},Tt=ln=>Ce(void 0,null,function*(){tt(!0),Je("\u6B63\u5728\u4FDD\u5B58\u4E2D");const tn=yield(0,Fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ie.title,file:ln.dataUrl}});tn!=null&&tn.id&&!Vt?(yield(0,Fe.ZP)(`/api/attachments/${Ie.id}/add_subitem.json`,{method:"post",body:{subitem_id:tn==null?void 0:tn.id,settings:JSON.stringify(ln.state)}})).status===0&<():tn!=null&&tn.id&<(tn),document.body.removeAttribute("data-custom"),Ve.current.innerHTML=" ",tt(!1),Je("")}),nt=()=>{const ln=document.querySelector('a[href="https://markerjs.com/"]');ln&&ln.parentNode&&(ln.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(en=>{const Ht=document.querySelector(en.name);Ht&&Ht.setAttribute("title",en.title)})},Yt=()=>{gt.current=new Te.hP(ot.current),gt.current.targetRoot=Me.current,gt.current.addEventListener("render",Tt),gt.current.addEventListener("beforeclose",st),ht&&(gt.current.availableMarkerTypes=gt.current.ALL_MARKER_TYPES,gt.current.uiStyleSettings.redoButtonVisible=!0,gt.current.uiStyleSettings.notesButtonVisible=!0,gt.current.uiStyleSettings.zoomButtonVisible=!0,gt.current.uiStyleSettings.zoomOutButtonVisible=!0,gt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=gt.current.uiStyleSettings,gt.current.show(),Ie!=null&&Ie.snapshotData&>.current.restoreState(Ie.snapshotData),setTimeout(()=>{window.scrollTo(0,0),nt()},300)};return oe.createElement(oe.Fragment,null,(Ie==null?void 0:Ie.visible)&&oe.createElement(we.Z,{spinning:Ue,tip:mt,style:{position:"absolute"}},oe.createElement("div",{ref:Me,className:dt()(Oe.imageDimensions,Ge,wt?Oe.fullWidth:""),style:ut},oe.createElement("img",{className:Oe.img,ref:ot}))))}},80802:function(mn,un,le){"use strict";var oe=le(59301),Oe=le(95237),Ne=le(43604),dt=le(99313),we=le(3113),Te=le(58997),Fe=le(2375),be=le(48136),Ce=le(59301);const _e=(0,oe.forwardRef)(({callback:ft,showSaveButton:Ie,value:Ge=""},wt)=>{const ut=(0,oe.useRef)(),yt=[{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 "}]}]}],lt=[{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}`}]}]}],ht=gt=>{ut.current.setValue(ut.current.getValue()+" "+gt.value+" ")},Vt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ce.createElement(Oe.Z,{className:Fe.Z.lists,gutter:[10,10]},yt.map((gt,Ve)=>Ce.createElement(Ne.Z,{flex:"110px",className:Fe.Z.item},Ce.createElement("div",null,Ce.createElement(Te.Z,{value:`$$${gt.value}$$`}),gt.name),Ce.createElement("div",{className:Fe.Z.children},gt.children.map((Me,Ue)=>Ce.createElement("div",{key:Ue},Ce.createElement("h1",null,Me.name),Ce.createElement(Oe.Z,{gutter:[10,10]},Me.data.map((tt,mt)=>Ce.createElement(Ne.Z,{key:mt,onClick:()=>ht(tt),className:Fe.Z.diamond},Ce.createElement(Te.Z,{value:"`$$"+tt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ce.createElement(Oe.Z,{className:Fe.Z.lists,gutter:[10,10]},lt.map((gt,Ve)=>Ce.createElement(Ne.Z,{flex:"110px",className:Fe.Z.item},Ce.createElement("div",null,Ce.createElement(Te.Z,{value:"`$$"+gt.value+"$$`"}),gt.name),Ce.createElement("div",{className:Fe.Z.children},gt.children.map((Me,Ue)=>Ce.createElement("div",{key:Ue},Me.name&&Ce.createElement("h1",null,Me.name),Ce.createElement(Oe.Z,{gutter:[10,10]},Me.data.map((tt,mt)=>Ce.createElement(Ne.Z,{key:mt,onClick:()=>ht(tt),className:Fe.Z.diamond},Ce.createElement(Te.Z,{value:"`$$"+tt.value+"$$`"}))))))))))}],ot=()=>{var gt=document.createElement("div");gt.innerHTML=ut.current.getValue();var Ve=gt.innerText;return ft&&ft(Ve),Ve};return(0,oe.useImperativeHandle)(wt,()=>({getData:ot})),Ce.createElement("div",{className:Fe.Z.mathWrap},Ce.createElement(dt.default,{defaultActiveKey:"1",items:Vt}),Ce.createElement("math-field",{locale:"zh_cn",className:Fe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ut,style:{width:800,marginTop:30,fontSize:18}},Ge||""),Ie&&Ce.createElement("div",{className:Fe.Z.button},Ce.createElement(we.ZP,{size:"large",onClick:ot,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});un.Z=_e},34051:function(mn,un,le){"use strict";le.d(un,{h:function(){return ut},x:function(){return yt}});var oe=le(74972),Oe=le(44267),Ne=le(58997),dt=le(59301),we=Object.defineProperty,Te=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,ft=(lt,ht,Vt)=>ht in lt?we(lt,ht,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):lt[ht]=Vt,Ie=(lt,ht)=>{for(var Vt in ht||(ht={}))Ce.call(ht,Vt)&&ft(lt,Vt,ht[Vt]);if(be)for(var Vt of be(ht))_e.call(ht,Vt)&&ft(lt,Vt,ht[Vt]);return lt},Ge=(lt,ht)=>Te(lt,Fe(ht)),wt=(lt,ht)=>{var Vt={};for(var ot in lt)Ce.call(lt,ot)&&ht.indexOf(ot)<0&&(Vt[ot]=lt[ot]);if(lt!=null&&be)for(var ot of be(lt))ht.indexOf(ot)<0&&_e.call(lt,ot)&&(Vt[ot]=lt[ot]);return Vt};const ut=lt=>{var ht=lt,{value:Vt,onChange:ot,scrollId:gt}=ht,Ve=wt(ht,["value","onChange","scrollId"]);return dt.createElement("div",{id:gt||""},dt.createElement(oe.Z,Ge(Ie({},Ve),{defaultValue:Vt,onChange:(Me,Ue)=>{Ue!=null&&Ue.length?ot(Me,Ue):ot(Me)}})))},yt=({value:lt,onChange:ht,placeholder:Vt,height:ot=140,isEdit:gt,miniToolbar:Ve,watch:Me=!0})=>gt?dt.createElement(oe.Z,{watch:Me,isFocus:!0,height:ot||void 0,placeholder:Vt,defaultValue:lt,onChange:ht,miniToolbar:Ve}):dt.createElement("div",{style:{cursor:"pointer"}},lt?dt.createElement(Ne.Z,{className:Oe.Z.inputBorder,value:lt}):dt.createElement("div",{className:`${Oe.Z.inputBorder} ${Oe.Z.placeholder} inputBorderError`},Vt))},67824:function(mn,un,le){"use strict";le.d(un,{h:function(){return gt}});var oe=le(59301),Oe=le(57809),Ne=le(78241),dt=le(3113),we=le(89780),Te=le.n(we),Fe=le(22054),be=le(68305),Ce=Object.defineProperty,_e=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,ut=(Ve,Me,Ue)=>Me in Ve?Ce(Ve,Me,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):Ve[Me]=Ue,yt=(Ve,Me)=>{for(var Ue in Me||(Me={}))Ge.call(Me,Ue)&&ut(Ve,Ue,Me[Ue]);if(Ie)for(var Ue of Ie(Me))wt.call(Me,Ue)&&ut(Ve,Ue,Me[Ue]);return Ve},lt=(Ve,Me)=>_e(Ve,ft(Me));const ht=Oe.default.Option,Vt={labelCol:{span:4},wrapperCol:{span:20}},ot={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"]};un.Z=({callback:Ve,onCancel:Me})=>{const[Ue,tt]=(0,oe.useState)("python");function mt(kt){tt(ot[kt][1])}function Je(kt){Ve(kt)}return oe.createElement(Ne.default,lt(yt({},Vt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Je,style:{width:500}}),oe.createElement(Ne.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},oe.createElement(Oe.default,{getPopupContainer:kt=>kt.parentNode,onChange:mt},Object.keys(ot).map(kt=>oe.createElement(ht,{key:kt,value:kt},ot[kt][0])))),oe.createElement(Ne.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},oe.createElement(gt,{mode:Ue})),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(dt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(dt.ZP,{type:"ghost",onClick:Me},"\u53D6\u6D88")))};function gt({value:Ve,onChange:Me,mode:Ue,options:tt={}}){const mt=(0,oe.useRef)(),[Je,kt]=(0,oe.useState)();return(0,oe.useEffect)(()=>{if(Je){let st=function(Tt){const nt=Tt.getValue();Me&&Me(nt)};return Je.on("change",st),()=>{Je.off("change",st)}}},[Je,Me]),(0,oe.useEffect)(()=>{Je&&Je.setOption("mode",Ue)},[Je,Ue]),(0,oe.useEffect)(()=>{Je&&(Ve!==Je.getValue()||Ve==="")&&setTimeout(()=>{Je.setValue(Ve||"")},300)},[Je,Ve]),(0,oe.useEffect)(()=>{if(mt.current&&!Je){const st=Te().fromTextArea(mt.current,yt({mode:Ue,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},tt));kt(st)}},[mt.current,Je]),oe.createElement("div",{className:"my-codemirror-container"},oe.createElement("textarea",{ref:mt}))}},74972:function(mn,un,le){"use strict";le.d(un,{Z:function(){return Qr}});var oe=le(59301),Oe=le(89780),Ne=le.n(Oe),dt=le(76374),we=le(22054),Te=le(6313),Fe=le(25717),be=le(99498),Ce=le(25419),_e=le(67549),ft=le(58997),Ie=({value:$n="",className:Xn,showTextOnly:Kn,showLines:Gn,style:Tr={}})=>{const bt=(0,oe.useMemo)(()=>"",[$n]);return oe.createElement(oe.Fragment,null,oe.createElement("div",{dangerouslySetInnerHTML:{__html:bt}}))},Ge=le(59301),wt=Object.defineProperty,ut=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,ot=($n,Xn,Kn)=>Xn in $n?wt($n,Xn,{enumerable:!0,configurable:!0,writable:!0,value:Kn}):$n[Xn]=Kn,gt=($n,Xn)=>{for(var Kn in Xn||(Xn={}))ht.call(Xn,Kn)&&ot($n,Kn,Xn[Kn]);if(lt)for(var Kn of lt(Xn))Vt.call(Xn,Kn)&&ot($n,Kn,Xn[Kn]);return $n},Ve=($n,Xn)=>ut($n,yt(Xn));let Me=[{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 Ue({onActionCallback:$n,title:Xn,icon:Kn,actionName:Gn,className:Tr="",children:bt}){function ke(){$n(Gn)}return Ge.createElement("a",{title:Xn,className:Tr,onClick:ke},Ge.createElement("i",{className:`${Kn}`}),bt)}var tt=({watch:$n,showNullButton:Xn,showNullProgramButton:Kn,onActionCallback:Gn,fullScreen:Tr,insertTemp:bt,hidetoolBar:ke,extraUse:ze})=>{const Re=[...Me,{title:`${$n?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${$n?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ge.createElement("ul",{className:"markdown-toolbar-container"},!ke&&Re.map((Pe,it)=>Ge.createElement("li",{key:it},Pe.actionName?Ge.createElement(Ue,Ve(gt({},Pe),{onActionCallback:Gn})):Ge.createElement("span",{className:"v-line"}))),Xn?Ge.createElement("li",null,Ge.createElement(Ue,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Gn},Ge.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Kn?Ge.createElement(Ge.Fragment,null,Ge.createElement("li",null,Ge.createElement(Ue,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Gn},Ge.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ge.createElement("li",null,Ge.createElement(Ue,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Gn},Ge.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,bt&&Ge.createElement("li",null,Ge.createElement(Ue,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${bt}`,onActionCallback:Gn},Ge.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ze&&Ge.createElement("li",null,ze),Ge.createElement("li",{className:"btn-full-screen"},Ge.createElement(Ue,{icon:`${Tr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Tr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Gn})))},mt=le(62488),Je=le(78241),kt=le(92832),st=le(3113),Tt=Object.defineProperty,nt=Object.defineProperties,Yt=Object.getOwnPropertyDescriptors,ln=Object.getOwnPropertySymbols,tn=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,Ht=($n,Xn,Kn)=>Xn in $n?Tt($n,Xn,{enumerable:!0,configurable:!0,writable:!0,value:Kn}):$n[Xn]=Kn,je=($n,Xn)=>{for(var Kn in Xn||(Xn={}))tn.call(Xn,Kn)&&Ht($n,Kn,Xn[Kn]);if(ln)for(var Kn of ln(Xn))en.call(Xn,Kn)&&Ht($n,Kn,Xn[Kn]);return $n},xe=($n,Xn)=>nt($n,Yt(Xn));const Xe={labelCol:{span:4},wrapperCol:{span:20}};var _t=({callback:$n,onCancel:Xn})=>{function Kn(Gn){$n(Gn)}return oe.createElement(Je.default,xe(je({},Xe),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Kn,style:{width:500}}),oe.createElement(Je.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},oe.createElement(kt.default,null)),oe.createElement(Je.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},oe.createElement(kt.default,null)),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(st.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(st.ZP,{type:"ghost",onClick:Xn},"\u53D6\u6D88")))},St=le(67824),Qe=le(22477),$e=le(43418),Mt=le(95237),wn=le(18997),cn=le(59301),dn=({callback:$n,onCancel:Xn})=>{const Kn=document.createElement("canvas"),Gn=Kn.getContext("2d");Kn.width=1e3,Kn.height=800,Gn.fillStyle="#ffffff",Gn.fillRect(0,0,Kn.width,Kn.height);const Tr=Kn.toDataURL("image/png");return cn.createElement($e.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},cn.createElement(Mt.Z,{style:{height:"100vh"}},cn.createElement(wn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Tr,visible:!0,title:String(Date.now())},onOk:bt=>{$n({src:bt.url})},onClose:Xn})))},nn=le(43428),Jt=le(43604),Bt=le(8591),ge={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ue=le(59301),he=(0,oe.forwardRef)(({onCancel:$n,editImgId:Xn,callback:Kn},Gn)=>{let Tr=(0,oe.useRef)(),bt=(0,oe.useRef)(),ke=(0,oe.useRef)(),ze=(0,oe.useRef)(!1);const Re=(0,oe.useRef)(!1);console.log("ref:",Gn);const[Pe,it]=(0,oe.useState)(0),[vt,Ut]=(0,oe.useState)("100vh");return(0,oe.useEffect)(()=>{it(1);try{indexedDB.databases().then(Ft=>{Ft.forEach(on=>indexedDB.deleteDatabase(on.name))})}catch(Ft){}},[]),(0,oe.useImperativeHandle)(Gn,()=>({setHeight:Ut})),ue.createElement("div",{ref:Re,className:"body-overflow-initial"},ue.createElement(nn.Z,{width:"100vw",height:vt,footer:null,closable:!0,placement:"bottom",open:!!Pe,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ge.drawerWrap}`,onClose:()=>{window.saveDrawData(Ft=>{Kn({src:`/api/attachments/${Ft}`,id:Ft})})},title:ue.createElement(Mt.Z,{align:"middle"},ue.createElement(Jt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ue.createElement(Jt.Z,{onClick:()=>{Ut(vt==="60px"?"100vh":"60px")}},ue.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ue.createElement(Jt.Z,{onClick:()=>{window.saveDrawData(Ft=>{if(Ft===null){Bt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Bt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Kn({src:`/api/attachments/${Ft}`,id:Ft,disabledClose:!0})})}},ue.createElement(st.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ue.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${Xn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:bt})))}),fe=le(42684),ce=le(5112),Ae=le(5871);const rt=ce.ZP.Group,Le={margin:"0 8px"};var Ke=({callback:$n,onCancel:Xn})=>{function Kn(Gn){$n(Gn)}return oe.createElement(Je.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Kn},oe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},oe.createElement("span",{style:Le},"\u5355\u5143\u683C\u6570\uFF1A"),oe.createElement("span",{style:Le},"\u884C\u6570"),oe.createElement(Je.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},oe.createElement(Ae.Z,null)),oe.createElement("span",{style:Le},"\u5217\u6570"),oe.createElement(Je.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},oe.createElement(Ae.Z,null))),oe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},oe.createElement("span",{style:Le},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),oe.createElement(Je.default.Item,{name:"align"},oe.createElement(rt,null,oe.createElement(ce.ZP,{value:"default"},oe.createElement("i",{className:"fa fa-align-justify"})),oe.createElement(ce.ZP,{value:"left"},oe.createElement("i",{className:"fa fa-align-left"})),oe.createElement(ce.ZP,{value:"center"},oe.createElement("i",{className:"fa fa-align-center"})),oe.createElement(ce.ZP,{value:"right"},oe.createElement("i",{className:"fa fa-align-right"}))))),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(st.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(st.ZP,{type:"ghost",onClick:Xn},"\u53D6\u6D88")))},Lt=le(78673),xt=le(75354),Ye=le.n(xt),hn=(0,oe.forwardRef)(({use3d:$n,width:Xn,height:Kn,callback:Gn,showSaveButton:Tr},bt)=>{const ke=(0,oe.useRef)(),ze=(0,oe.useRef)(),[Re,Pe]=(0,oe.useState)(!1),it=(0,oe.useRef)({id:ke,appName:"graphing",width:Xn||1e3,height:Kn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,oe.useEffect)(()=>{ze.current=new(Ye())(it.current,!0),window.onload=function(){ze.current.inject("applet_container")}},[]);const vt=()=>{var Ut=window.ggbApplet.getPNGBase64(1,!0,72);return Gn&&Gn(Ut),Ut};return(0,oe.useEffect)(()=>{it.current.appName=Re?"3D":"graphing",ze.current.inject("applet_container")},[Re]),(0,oe.useEffect)(()=>{Pe($n)},[$n]),(0,oe.useImperativeHandle)(bt,()=>({getImgData:vt})),oe.createElement(oe.Fragment,null,oe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ke}),oe.createElement(Mt.Z,{align:"middle"},oe.createElement(Jt.Z,{flex:1},oe.createElement(Lt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Re,onChange:Ut=>Pe(Ut)})),oe.createElement(Jt.Z,null,oe.createElement(st.ZP,{size:"large",onClick:vt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),at=le(80802),Xt=le(1012);const fn="link",et="upload-image",De="add-flowchart",qe="draw-image",Ot="add-flowchart",Gt="code-block",an="add-table",Mn="------------",Dn={default:Mn,left:`:${Mn}`,center:`:${Mn}:`,right:`${Mn}:`};var Ln=le(8204),Un=($n,Xn,Kn)=>new Promise((Gn,Tr)=>{var bt=Re=>{try{ze(Kn.next(Re))}catch(Pe){Tr(Pe)}},ke=Re=>{try{ze(Kn.throw(Re))}catch(Pe){Tr(Pe)}},ze=Re=>Re.done?Gn(Re.value):Promise.resolve(Re.value).then(bt,ke);ze((Kn=Kn.apply($n,Xn)).next())});function Wn(){}let On=0;const Hn=1e4,Dr="\u2581",Pr="@\u2581\u2581@",fr="@\u2581@",Jn=`
|
|
|
**\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`,Fr=["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 Tn($n){return/^\d+$/.test($n)?`${$n}px`:$n}const Yr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",nr={[Yr+"-B"]:"bold",[Yr+"-I"]:"italic"},$r={[fn]:"\u6DFB\u52A0\u94FE\u63A5",[Gt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[et]:"\u6DFB\u52A0\u56FE\u7247",[qe]:"\u6DFB\u52A0\u753B\u56FE",[De]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[an]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Qr=({defaultValue:$n="",onChange:Xn,width:Kn="100%",height:Gn=400,miniToolbar:Tr=!1,isFocus:bt=!1,watch:ke,insertTemp:ze,mode:Re="markdown",id:Pe="markdown-editor-id",showResizeBar:it=!1,noStorage:vt=!1,showNullButton:Ut=!1,showNullProgramButton:Ft=!1,hidetoolBar:on=!1,fullScreen:Cn=!1,onBlur:Bn,onCMBeforeChange:An,onFullScreen:Wt,className:bn="",disablePaste:pt=!1,disabled:It=!1,disabledFill:Kt=!1,placeholder:Nt="",values:gn="",extraUse:Zt,onAddBlank:pn})=>{const[He,At]=(0,oe.useState)(null),[Dt,Qt]=(0,oe.useState)($n),[jt,qt]=(0,oe.useState)(ke),[$t,En]=(0,oe.useState)(Cn),[In,zn]=(0,oe.useState)(""),[er,mr]=(0,oe.useState)(0),[wr,cr]=(0,oe.useState)(Gn),[Zn,Ar]=(0,oe.useState)(!1),pr=(0,oe.useRef)((0,Xt.Z)()),Or=(0,oe.useRef)(!1),ur=(0,oe.useRef)(),[or,_r]=(0,oe.useState)(0),[Sr,Jr]=(0,oe.useState)(0),si=(0,oe.useRef)(),br=(0,oe.useRef)(),Nn=(0,oe.useRef)(),Rn=(0,oe.useRef)(),kr=(0,oe.useRef)(),yr=(0,oe.useRef)(),Hr=()=>Un(void 0,null,function*(){var dr;const sr=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:pr.current}});(dr=sr==null?void 0:sr.attachments)!=null&&dr.length&&(console.log("cm:",He,si),sr.attachments.map(ar=>{ar.content_type.indexOf("image")>-1?He.replaceSelection(``):ar.content_type.indexOf("video")>-1?He.replaceSelection(`<video width="100%" controls src="${fe.Z.API_SERVER}/api/attachments/${data.id}"></video>`):ar.content_type.indexOf("pdf")>-1?He.replaceSelection(`<a href="${fe.Z.API_SERVER}/api/attachments/${ar.id}?type=${ar.content_type}&disposition=inline" target="_blank">${ar.name}</a>`):He.replaceSelection(`[${ar.name}](${fe.Z.API_SERVER}/api/attachments/${ar.id}?type=${ar.content_type})`)}))});(0,oe.useEffect)(()=>{const dr=window.scrollY||window.pageYOffset;Qt(gn),He==null||He.setValue(gn),window.scrollTo(0,dr)},[gn]),(0,oe.useEffect)(()=>{Wt==null||Wt($t)},[$t]),(0,oe.useEffect)(()=>{if(si.current){let dr=function(ar,Br){var gi;if(pt){Br.preventDefault();return}const Di=Br.clipboardData;if(Di){const Ii=Di.types.toString(),ki=Di.items;if(Ii==="Files"||Di.types.indexOf("Files")>-1){if(Br.preventDefault(),Re=="stex")return;try{let wi=ki[1];((gi=ki[0])==null?void 0:gi.kind)==="file"&&(wi=ki[0]);const Pi=wi.getAsFile(),Gi=Pi.name.split(".").pop();(0,Qe.I)(Pi,Hi=>{var oa,li,fi;Hi.id?((oa=Pi==null?void 0:Pi.type)==null?void 0:oa.indexOf("image"))>-1?sr.replaceSelection(`<img width="100%" src="/api/attachments/${Hi.id}?type=${Hi.content_type})" alt="" />`):((li=Pi==null?void 0:Pi.type)==null?void 0:li.indexOf("video"))>-1?sr.replaceSelection(`<video width="100%" controls src="/api/attachments/${Hi.id}"></video>`):((fi=Pi==null?void 0:Pi.type)==null?void 0:fi.indexOf("pdf"))>-1?sr.replaceSelection(`<a href="/api/attachments/${Hi.id}?type=${Pi.type}&disposition=inline" target="_blank">${Pi.name}</a>`):Fr.includes(Gi)?sr.replaceSelection(`<a href="/api/attachments/${Hi.id}?type=office&disposition=inline" target="_blank">${Pi.name}</a>`):sr.replaceSelection(`[${Pi.name}](/api/attachments/${Hi.id}?type=${Hi.content_type})`):(Hi==null?void 0:Hi.status)===401&&(Bt.ZP.warning((Hi==null?void 0:Hi.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(wi){Bt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const sr=Ne().fromTextArea(si.current,{mode:Re,lineNumbers:!Tr,lineWrapping:!0,value:$n,autoCloseTags:!Ft,autoCloseBrackets:!0});return sr.on("keyup",function(ar,Br){Br.keyCode===8&&(ar.getValue()==""?sr.setOption("placeholder",Nt):sr.setOption("placeholder",null))}),sr.on("keydown",function(ar,Br){if(Br.keyCode===8){var gi=Gr(ar);gi&&Br.preventDefault()}}),bt&&sr.focus(),sr.on("paste",dr),sr.on("dragleave",function(ar,Br){br.current.classList.remove("mouse-hover-md")}),It&&sr.on("beforeChange",function(ar,Br){(Br.origin==="paste"||Br.origin==="+input")&&Br.cancel()}),At(sr),()=>{sr.off("paste",dr)}}},[]);const jr=(0,oe.useCallback)(()=>{if(br.current)try{}catch(dr){console.log(dr,"---- to set md editor body height")}},[wr,br,$t]);(0,oe.useEffect)(()=>{function dr(){let sr=new dt.Z(ar=>{for(let Br of ar)(Br.target.offsetHeight>0||Br.target.offsetWidth>0)&&(jr(),He.setSize("100%","100%"),He.refresh())});return sr.observe(si.current.parentElement),sr}if(He){const sr=dr();return()=>{var ar,Br;(ar=si.current)!=null&&ar.parentElement&&sr.unobserve((Br=si.current)==null?void 0:Br.parentElement)}}},[He,jr]),(0,oe.useEffect)(()=>{if(He){let dr=[];for(const[sr,ar]of Object.entries(nr)){let Br={[sr]:()=>{Cr(ar)}};dr.push(Br),He.addKeyMap(Br)}return ur.current=setInterval(()=>{Or.current&&Hr()},4e3),()=>{clearInterval(ur.current);for(let sr of dr)He.removeKeyMap(sr)}}},[He]),(0,oe.useEffect)(()=>{Cn!==$t&&En(Cn)},[Cn]),(0,Ln.Z)(()=>{if(!vt&&er>0){let dr=new Date().getTime(),sr=window.sessionStorage.getItem(Pe);dr>=er+Hn&&(!sr||sr!==Dt)&&(window.sessionStorage.setItem(Pe,Dt),Ar(!0))}},Hn),(0,oe.useEffect)(()=>{qt(ke)},[He,ke]),(0,oe.useEffect)(()=>{He&&bt&&He.focus()},[He,bt]),(0,oe.useEffect)(()=>{if(jt&&He){let dr=function(ar){let Br=ar.target;if(Rn.current){let gi=Br.scrollTop/Br.scrollHeight;Rn.current.scrollTop=Rn.current.scrollHeight*gi}};const sr=He.getScrollerElement();return sr.addEventListener("scroll",dr),()=>{sr.removeEventListener("scroll",dr)}}},[He,jt]),(0,oe.useEffect)(()=>{if(He&&An){let dr=function(sr,ar){An(sr,ar)};return He.on("beforeChange",dr),()=>{He.off("beforeChange",dr)}}},[He,An]),(0,oe.useEffect)(()=>{if(He&&Bn){let dr=function(){Bn(He.getValue())};return He.on("blur",dr),()=>{He.off("blur",dr)}}},[He,Bn]);function Gr(dr,sr){var ar=dr.getDoc(),Br=ar.getCursor(),gi=ar.getLine(Br.line),Di=gi.charAt(Br.ch-1),Ii=gi.lastIndexOf("@\u2581@",Br.ch),ki=gi.lastIndexOf("@\u2581\u2581@",Br.ch),wi=Ii>ki?Ii:ki,Pi=Ii>ki?3:4;if(Pr.indexOf(Di)===-1)return null;if(console.log("change1:",sr,dr,gi,Br,wi,Ii,ki,Di),wi>=0&&Br.ch-wi<5){var Gi=wi+Pi;return ar.replaceRange("",{line:Br.line,ch:wi},{line:Br.line,ch:Gi}),{line:Br.line,ch:Gi}}return null}(0,oe.useEffect)(()=>{if(He){let dr=function(sr,ar){const Br=sr.getValue();Qt(Br),mr(new Date().getTime()),sr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Xn&&(Ft?Xn(Br,Ei(Br)):Xn(Br))};return He.on("change",dr),()=>{He.off("change",dr)}}},[He,Xn]),(0,oe.useEffect)(()=>{if(He)if($n==null)He.setValue(""),Qt("");else{const dr=window.scrollY||window.pageYOffset;$n!==He.getValue()&&(He.setValue($n),Qt($n),He.setCursor(It?1:He.lineCount(),0),window.scrollTo(0,dr))}},[He,$n]);const Cr=(0,oe.useCallback)(dr=>{const sr=He.getCursor(),ar=He.getSelection();let Br=ar.split(`
|
|
|
`);switch(dr){case"bold":return He.replaceSelection("**"+ar+"**"),ar===""&&He.setCursor(sr.line,sr.ch+2),He.focus();case"italic":return He.replaceSelection("*"+ar+"*"),ar===""&&He.setCursor(sr.line,sr.ch+1),He.focus();case"code":return He.replaceSelection("`"+ar+"`"),ar===""&&He.setCursor(sr.line,sr.ch+1),He.focus();case"inline-latex":return zn("inline-latex"),He.focus();case"latex":return He.replaceSelection("```latex\n"+ar+"\n```"),He.setCursor(sr.line+1,ar.length+1),He.focus();case"line-break":return He.replaceSelection(`<br/>
|
|
|
`),He.focus();case"list-ul":return ar===""?He.replaceSelection("- "+ar):He.replaceSelection(Br.map(gi=>gi===""?"":`- ${gi}`).join(`
|
|
|
`)),He.focus();case"list-ol":return ar===""?He.replaceSelection("1. "+ar):He.replaceSelection(Br.map((gi,Di)=>gi===""?"":`${Di+1}. ${gi}`).join(`
|
|
|
`)),He.focus();case"add-null-ch":pn==null||pn();return;case"add-signal":return ar===""&&He.setCursor(sr.line,sr.ch),He.replaceSelection(fr),He.focus();case"add-multiple":return ar===""&&He.setCursor(sr.line,sr.ch),He.replaceSelection(Pr),He.focus();case"inster-template-1":return ar===""&&He.setCursor(sr.line,sr.ch),He.replaceSelection(Jn),He.focus();case"eraser":return He.setValue(""),He.focus();case"trigger-watch":return qt(!jt),He.focus();case"trigger-full-screen":return En(!$t),He.focus();case fn:zn(fn);return;case Gt:zn(Gt);return;case et:zn(et);return;case qe:zn(qe);return;case"maths-latex":zn("maths-latex");return;case De:kr.current="",sessionStorage.removeItem("file_id"),zn(De);return;case an:zn(an);return;default:throw new Error}},[He,jt,$t]),Kr=(0,oe.useCallback)((dr,sr)=>{var ar,Br,gi,Di,Ii,ki;zn("");const{src:wi,alt:Pi,id:Gi}=dr||{};switch(In){case fn:const{title:Ri,link:sn}=dr;return He.replaceSelection(`[${Ri}](${sn})`),He.focus();case Gt:const{language:rn,content:vn}=dr;return He.replaceSelection(["```"+rn,vn,"```"].join(`
|
|
|
`)),He.focus();case"maths-latex":for(var Hi=atob(dr),oa=new Uint8Array(Hi.length),li=0;li<Hi.length;li++)oa[li]=Hi.charCodeAt(li);var fi=new Blob([oa],{type:"image/png"});(0,Qe.I)(fi,Rr=>{Rr.id?He.replaceSelection(``):(Rr==null?void 0:Rr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":He.replaceSelection("`$$"+dr+"$$`");break;case Ot:if(!Gi)return;He.focus(),He.getValue().indexOf(wi)===-1?He.replaceSelection(`<center><img id="${Gi}" width="80%" src="${wi}" class="draw-flowchart" alt="${Pi||""}" /></center>`):document.getElementById(Gi).src=fe.Z.API_SERVER+wi+"?t="+Date.now();try{setTimeout(()=>{Bn(He.getValue())},100)}catch(Rr){}break;case et:case qe:const Fn=sr,_n=(gi=(Br=(ar=Fn==null?void 0:Fn.name)==null?void 0:ar.split("."))==null?void 0:Br.pop)==null?void 0:gi.call(Br);return((Di=Fn==null?void 0:Fn.type)==null?void 0:Di.indexOf("image"))>-1||!(Fn!=null&&Fn.type)?Fn!=null&&Fn.align||Fn!=null&&Fn.width?He.replaceSelection(`<p style="text-align:${Fn.align||"initial"}"><img width="${Fn.width?Fn.width+"%":"initial"}" src="${wi}" alt="${Pi||""}" /></p>`):He.replaceSelection(`<img width="100%" src="${wi}" alt="${Pi||""}" />`):((Ii=Fn==null?void 0:Fn.type)==null?void 0:Ii.indexOf("video"))>-1?He.replaceSelection(`<video width="100%" controls src="${wi}"></video>`):((ki=Fn==null?void 0:Fn.type)==null?void 0:ki.indexOf("pdf"))>-1?He.replaceSelection(`<a href="${wi}?type=${Fn.type}&disposition=inline" target="_blank">${Fn.name}</a>`):Fr.includes(_n)?He.replaceSelection(`<a href="${wi}?type=office&disposition=inline" target="_blank">${Fn.name}</a>`):He.replaceSelection(`[${Fn.name}](${wi})`),He.focus();case an:const{row:tr,col:xn,align:jn}=dr;let gr=`
|
|
|
`;for(let Rr=0;Rr<tr;Rr++){let Wr=[],qn=[];for(let ti=0;ti<xn;ti++)Rr===1&&qn.push(Dn[jn]),Wr.push(" ");Rr===1&&(gr+=`| ${qn.join(" | ")} |
|
|
|
`),gr+=`| ${Wr.join(xn===1?"":" | ")} |
|
|
|
`}return He.replaceSelection(gr+`
|
|
|
`),He.focus();default:throw new Error}},[He,In]),yi=(0,oe.useMemo)(()=>{switch(In){case fn:return oe.createElement(_t,{callback:Kr,onCancel:ir});case Gt:return oe.createElement(St.Z,{callback:Kr,onCancel:ir});case et:return oe.createElement(Qe.Z,{callback:Kr,onCancel:ir});case De:return oe.createElement(he,{editImgId:kr.current,callback:Kr,onCancel:ir});case an:return oe.createElement(Ke,{callback:Kr,onCancel:ir});case"maths-latex":return oe.createElement(hn,{showSaveButton:!0,callback:Kr});case"inline-latex":return oe.createElement(at.Z,{showSaveButton:!0,callback:Kr});default:return null}},[In]);function ir(){zn("")}(0,oe.useEffect)(()=>{if(Nn.current){let dr=function(Ii){gi=!0,Di=Ii.pageY},sr=function(){gi=!1},ar=function(Ii){if(gi){let ki=Ii.pageY-Di;ki<0&&(ki=0),ki>300&&(ki=300);let wi=Gn+ki+"px";cr(wi)}},Br=Nn.current,gi=!1,Di=0;return Br.addEventListener("mousedown",dr),document.addEventListener("mousemove",ar),document.addEventListener("mouseup",sr),()=>{Br.removeEventListener("mousedown",dr),document.removeEventListener("mousemove",ar),document.removeEventListener("mouseup",sr)}}},[He,Nn]),(0,oe.useEffect)(()=>{cr(Gn)},[Gn]);const hr=Tn(Kn),Vr=Tn(wr),qr={width:hr,height:Vr},xi=(0,oe.useMemo)(()=>{if(er){let dr=new Date(er),sr=dr.getHours(),ar=dr.getMinutes(),Br=dr.getSeconds();return sr=sr<10?"0"+sr:sr,ar=ar<10?"0"+ar:ar,Br=Br<10?"0"+Br:Br,`${sr}:${ar}:${Br}`}return 0},[er]),Ei=dr=>{const sr=[];if(Ft){let ar=-1;dr=dr.replace(/(@▁▁@|@▁@)/g,function(Br,gi,Di){sr.push({multiLine:Br!==fr})})}return sr};function vi(){window.sessionStorage.removeItem(Pe),Ar(!1),mr(0)}function ci(){Ar(!1),mr(0),He.setValue(window.sessionStorage.getItem(Pe))}(0,oe.useEffect)(()=>{$r[In]&&In!==qe&&In!==De&&setTimeout(()=>{const dr=document.getElementsByClassName("markdown-popup-form")[0],sr=window.innerWidth/2-dr.offsetWidth/2,ar=window.innerHeight/2-dr.offsetHeight/2;_r(sr),Jr(ar)},0)},[In]);const Ai=dr=>{dr.preventDefault();const sr=dr.clientX-or,ar=dr.clientY-Sr;document.body.onmousemove=Br=>{let gi=Br.clientX-sr,Di=Br.clientY-ar;const Ii=document.getElementsByClassName("markdown-popup-form")[0],ki=window.innerWidth-Ii.offsetWidth,wi=window.innerHeight-Ii.offsetHeight;gi=Math.max(0,Math.min(gi,ki)),Di=Math.max(0,Math.min(Di,wi)),Li(Br.clientX,Br.clientY,sr,ar)&&(_r(gi),Jr(Di))},document.body.onmouseup=function(){document.body.onmousemove=null}},Li=(dr,sr,ar,Br)=>{const gi=document.body.clientHeight,Di=document.body.clientWidth;return dr<20&&ar>dr||dr>Di-20&&ar<dr||sr<20&&Br>sr||sr>gi-20&&Br<sr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:"markdown-editor-wrapper",ref:br},oe.createElement("div",{className:`markdown-editor-container ${bn} ${jt?"on-preview":""} ${Tr?"mini":""} ${$t?"full-screen":""}`,style:qr},oe.createElement(tt,{insertTemp:ze,watch:jt,fullScreen:$t,showNullButton:Ut,showNullProgramButton:Ft,onActionCallback:Cr,hidetoolBar:on,extraUse:Zt}),oe.createElement("div",{className:"markdown-editor-body"},oe.createElement("div",{className:"codemirror-container"},oe.createElement("textarea",{ref:si,placeholder:Nt})),jt?oe.createElement("div",{ref:Rn,className:"preview-container"},Re==="stex"&&oe.createElement(Ie,{value:Dt}),Re!=="stex"&&oe.createElement(ft.Z,{edit:!0,disabledFill:Kt,showProgramFill:Ft,value:Dt,openEditor:dr=>{var sr;kr.current=dr,(sr=yr.current)==null||sr.setHeight("100vh"),setTimeout(()=>{zn("add-flowchart")},150)}})):null))),it?oe.createElement("a",{ref:Nn,className:"editor-resize"}):null,In===qe&&oe.createElement(dn,{callback:Kr,onCancel:ir}),In===De&&oe.createElement(he,{ref:yr,editImgId:kr.current,callback:Kr,onCancel:ir}),oe.createElement(mt.Z,null,$r[In]&&In!==qe&&In!==De?oe.createElement($e.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:or,top:Sr},title:oe.createElement("div",{style:{cursor:"move"},onMouseDown:Ai},$r[In]),open:!0,onCancel:ir,footer:null,destroyOnClose:!0,width:In===De?"1200px":null,height:In===De?"80vh":null,className:"markdown-popup-form"},yi):null))}},22477:function(mn,un,le){"use strict";le.d(un,{Z:function(){return Ue},I:function(){return mt}});var oe=le(78241),Oe=le(8591),Ne=le(92832),dt=le(81327),we=le(5871),Te=le(5112),Fe=le(3113),be=le(32546),Ce=le(59301),_e=le(36466),ft=le(59301),Ie=Object.defineProperty,Ge=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,ut=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,ht=(Je,kt,st)=>kt in Je?Ie(Je,kt,{enumerable:!0,configurable:!0,writable:!0,value:st}):Je[kt]=st,Vt=(Je,kt)=>{for(var st in kt||(kt={}))yt.call(kt,st)&&ht(Je,st,kt[st]);if(ut)for(var st of ut(kt))lt.call(kt,st)&&ht(Je,st,kt[st]);return Je},ot=(Je,kt)=>Ge(Je,wt(kt));const{useForm:gt}=oe.default,Ve={width:280,marginRight:10},Me={labelCol:{span:5},wrapperCol:{span:19}};var Ue=({callback:Je,onCancel:kt})=>{const[st]=gt();let Tt=(0,Ce.useRef)();function nt(tn){Tt.current.width=st.getFieldValue("width"),Tt.current.align=st.getFieldValue("align"),Je(tn,Tt.current)}function Yt(tn,en){if(tn.status===-1){Oe.ZP.error(tn.message);return}st.setFieldsValue({src:`/api/attachments/${tn.id}`,type:en.type})}function ln(tn){let en=tn.target.files[0];Tt.current=en,mt(en,Yt)}return ft.createElement(oe.default,ot(Vt({form:st},Me),{className:"upload-image-panel",onFinish:nt,style:{width:470,overflow:"hidden"}}),ft.createElement(oe.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ft.createElement("div",{className:"flex-container"},ft.createElement(oe.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ft.createElement(Ne.default,{style:Ve})),ft.createElement(tt,{onFileChange:ln}))),ft.createElement(oe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ft.createElement(Ne.default,{style:{width:264}})),ft.createElement(oe.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ft.createElement(dt.Z,null,ft.createElement(oe.default.Item,{name:"width",style:{margin:0}},ft.createElement(we.Z,{style:{width:264}})),ft.createElement("span",{className:"ml8"},"%"))),ft.createElement(oe.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ft.createElement(Te.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"}]})),ft.createElement("aside",null,ft.createElement(oe.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ft.createElement(Fe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ft.createElement(Fe.ZP,{type:"default",onClick:kt},"\u53D6\u6D88"))))};function tt({onFileChange:Je}){return ft.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ft.createElement("input",{type:"file",onChange:Je}))}function mt(Je,kt){if(!Je)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,_e.bg)())throw Oe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let st=new FormData;st.append("editormd-image-file",Je),st.append("file_param_name","editormd-image-file"),st.append("byxhr","true");var Tt=new window.XMLHttpRequest;Tt.withCredentials=!0,Tt.addEventListener("load",function(nt){kt(JSON.parse(nt.target.responseText),Je)},!1),Tt.addEventListener("error",function(nt){console.error(nt)},!1),Tt.open("POST",`${be.KI}/api/attachments.json`),Tt.send(st)}},62488:function(mn,un,le){"use strict";le.d(un,{Z:function(){return Ne}});var oe=le(59301),Oe=le(4676);class Ne extends oe.Component{constructor(we){super(we);const Te=window.document;this.node=Te.createElement("div"),Te.body.appendChild(this.node)}render(){const{children:we}=this.props;return(0,Oe.createPortal)(we,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},88276:function(mn,un,le){"use strict";le.d(un,{i:function(){return Me},Z:function(){return tt}});var oe={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"},Oe=le(71418),Ne=le(6848),dt=le(93948),we=le(92310),Te=le.n(we),Fe=le(85333),be=le(61648),Ce=le(36466),_e=le(79005),ft=le(20345),Ie=le(47027),Ge=le(31081),wt=le(75309),ut=le(71979),yt=le(47558),lt=le(42922),ht=le(66832),Vt=le(96593),ot=le(19664),gt=le(91833),Ve=le(59301);const Me=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:_e,swimg:ft},{name:"101\u8BA1\u5212",ptimg:Ie,swimg:Ge},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:wt,swimg:ut},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:yt,swimg:lt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:ht,swimg:Vt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:ot,swimg:gt}];var tt=({className:mt,dataSource:Je=[],col:kt=4,right:st,bottom:Tt=23,precision:nt=0,wrapWidth:Yt=1200,trackEventItems:ln,loading:tn,onRemove:en=()=>{},isCurrent:Ht=!0,showAlias:je=!1,showProgress:xe=!1})=>{const Xe=Math.floor((Yt-(kt-1)*st)/kt),_t=[{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(St=>(window.ENV==="build"&&(St.ptimg=`/react/build${St.ptimg}`,St.swimg=`/react/build${St.swimg}`),St));return Ve.createElement(Oe.Z,{spinning:tn},Ve.createElement("div",{className:Te()(oe.list,mt)},!!(Je!=null&&Je.length)&&(Je==null?void 0:Je.map((St,Qe)=>{var $e,Mt,wn,cn,dn,nn;const{name:Jt,id:Bt,identifier:ge,featured:ue,school_name:se,image_url:he,excellent:fe,is_plan:ce}=St;return Ve.createElement("div",{key:Bt,className:Ht&&xe?oe.wrapisCurrent:oe.wrap,style:{width:Xe,marginRight:(1+Qe)%kt===0?0:st+nt,marginBottom:Tt}},Ve.createElement("a",{className:oe.li,onClick:Ae=>{Ae.preventDefault(),Ae.stopPropagation(),ln&&(0,Fe.L9)([ln]),(0,Fe.xg)(`/paths/${ge}`)}},Ve.createElement("div",{className:oe.img},Ve.createElement("img",{className:oe.cover,src:`${he}`}),Ht&&(0,Ce.bg)()&&(St==null?void 0:St.studying)&&Ve.createElement("div",{className:`${oe.movebq} user-path-items`,onClick:Ae=>{Ae.stopPropagation(),en(St)}},Ve.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Ve.createElement("span",{className:"c-red"},"\u79FB\u9664")),($e=St==null?void 0:St.subject_tags)==null?void 0:$e.map((Ae,rt)=>{var Le,Ke;if(rt===0){const xt=(Le=_t.find(Ye=>Ye.name==Ae))==null?void 0:Le.swimg;return Ve.createElement("img",{className:oe.sign,src:xt,style:{left:"-4px"}})}const Lt=(Ke=_t.find(xt=>xt.name==Ae))==null?void 0:Ke.ptimg;return Ve.createElement("img",{className:oe.sign,src:Lt,style:{left:`${48+52*(rt-1)+2*rt}px`}})}),Ve.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(St==null?void 0:St.excellent)&&Ve.createElement("div",{className:oe.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Ve.createElement("div",{className:oe.name},Ve.createElement(Ne.Z,{title:je&&(St!=null&&St.excellent_alias_name)?Ve.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Jt}`,Ve.createElement("br",null),Ve.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${St==null?void 0:St.excellent_alias_name}`)):Jt},Ve.createElement("span",{className:oe.e},je&&(St==null?void 0:St.excellent_alias_name)||Jt))),Ht&&xe&&((Mt=St==null?void 0:St.progress)==null?void 0:Mt.all_score)!=0&&Ve.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ve.createElement(dt.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((wn=St==null?void 0:St.progress)==null?void 0:wn.my_score)/((cn=St==null?void 0:St.progress)==null?void 0:cn.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(dn=St==null?void 0:St.progress)==null?void 0:dn.my_score,"/",(nn=St==null?void 0:St.progress)==null?void 0:nn.all_score),(!Ht||!xe)&&Ve.createElement("div",{className:oe.tags},Ve.createElement("div",null,Ve.createElement(Ne.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ve.createElement("span",null,Ve.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ve.createElement("span",null,St.stages_count))),Ve.createElement(Ne.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ve.createElement("span",null,Ve.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ve.createElement("span",null,St.members_count)))))))})),!Je.length&&Ve.createElement(be.Z,null)))}},92090:function(mn,un,le){"use strict";le.d(un,{Z:function(){return Te}});var oe=le(59301),Oe={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"},Ne=le(92310),dt=le.n(Ne),Te=({dataSource:Fe=[],value:be,onChange:Ce,className:_e,style:ft={}})=>oe.createElement("div",{style:ft,className:dt()(Oe.tabs,_e)},Fe.map(Ie=>oe.createElement("span",{onClick:()=>Ce(Ie.id),className:be===Ie.id?Oe.active:"",key:Ie.id},Ie.name)))},93351:function(mn,un,le){"use strict";le.d(un,{jL:function(){return we},w9:function(){return Yr},vv:function(){return Tr},dN:function(){return $n},QD:function(){return ur},cQ:function(){return ce.Z},vg:function(){return fr},Oz:function(){return Un},op:function(){return wr},O5:function(){return qr},_b:function(){return br},t7:function(){return kt},tT:function(){return nt},Gi:function(){return Bn},YG:function(){return Re},Ed:function(){return on},kT:function(){return vt},qp:function(){return lt},Um:function(){return Me},K3:function(){return ot},vr:function(){return Sr},qE:function(){return Ar},Je:function(){return tn},wb:function(){return cn},rC:function(){return fe},lB:function(){return Jt},cq:function(){return Kt},kO:function(){return pn},tp:function(){return Ue.Z},Si:function(){return vi},k8:function(){return Ri},Du:function(){return gi}});var oe=le(59301),Oe={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"},Ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66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caeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",we=({dataSource:sn=[],img:rn,imgWidth:vn=346,title:Fn,sunTitle:_n,bannerExtraContent:tr})=>oe.createElement("div",{className:Oe.banner},oe.createElement("div",{className:Oe.content},oe.createElement("aside",null,oe.createElement("p",null,oe.createElement("b",null,Fn),oe.createElement("span",null,_n)),sn.length>0&&oe.createElement("div",{className:Oe.btns},sn.map((xn,jn)=>oe.createElement("div",{key:jn,onClick:xn.click},xn.name,xn.sign?oe.createElement("img",{src:Ne,width:39}):null))),tr),rn&&oe.createElement("img",{style:{marginTop:33,marginRight:38},src:rn,width:vn}))),Te={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"},Fe=le(92310),be=le.n(Fe),Ce=le(78267),_e=Object.defineProperty,ft=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,wt=(sn,rn,vn)=>rn in sn?_e(sn,rn,{enumerable:!0,configurable:!0,writable:!0,value:vn}):sn[rn]=vn,ut=(sn,rn)=>{for(var vn in rn||(rn={}))Ie.call(rn,vn)&&wt(sn,vn,rn[vn]);if(ft)for(var vn of ft(rn))Ge.call(rn,vn)&&wt(sn,vn,rn[vn]);return sn},lt=({dataSource:sn=[],value:rn,onChange:vn,onTitleChange:Fn,className:_n,title:tr,titleWidth:xn=41,style:jn={},fontColor:gr="#6A7283",showCount:Rr,classNameActive:Wr,styleItem:qn={}})=>{const[ti,di]=(0,oe.useState)(0),[ai,Er]=(0,oe.useState)(!1),Ur=(0,oe.useRef)(null),bi=(0,oe.useRef)(null);return(0,oe.useEffect)(()=>{var pi;sn.length!==0&&(((pi=Ur==null?void 0:Ur.current)==null?void 0:pi.clientHeight)>97?di(1):di(0)),sn.length===0&&di(0),Er(!1)},[sn]),oe.createElement("div",{className:be()(Te.row,_n),style:jn},oe.createElement("div",{onClick:(0,Ce.throttle)(()=>Fn==null?void 0:Fn(),2e3),style:{width:xn,marginTop:ai?12:4},className:`${Te.title} ${Fn?"current":""}`},tr),oe.createElement("div",{className:ai?`${Te.tagsWrap} ${Te.tagsBorderWrap}`:Te.tagsWrap},oe.createElement("div",{className:Te.bar,ref:bi,style:ti>0?{height:ti===1?97:"auto",overflow:ti===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},oe.createElement("div",{className:Te.tag,ref:Ur},sn==null?void 0:sn.map(pi=>oe.createElement("span",{onClick:()=>vn(pi.id),key:pi.id,style:ut(ut({color:gr},qn),(pi==null?void 0:pi.style)||{}),className:rn===pi.id?be()(Wr||Te.active,pi.classNameActive):""},oe.createElement("span",{title:pi.name,className:Te.name},pi.name),!!Rr&&oe.createElement("span",{className:Te.num},pi.count))))),!!ti&&oe.createElement(oe.Fragment,null,ti===1?oe.createElement("div",{onClick:()=>{var pi;di(2),((pi=Ur==null?void 0:Ur.current)==null?void 0:pi.clientHeight)>245?Er(!0):Er(!1)},className:Te.action},"\u5C55\u5F00",oe.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):oe.createElement("div",{onClick:()=>{bi.current.scrollTop=0,di(1),Er(!1)},className:Te.action},"\u6536\u8D77",oe.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ht={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"},ot=({dataSource:sn=[],value:rn,onChange:vn,onTitleChange:Fn,className:_n,title:tr,titleWidth:xn=41,style:jn={},fontColor:gr="#6A7283",showCount:Rr,expand:Wr=!0})=>{const[qn,ti]=(0,oe.useState)(0),[di,ai]=(0,oe.useState)(!1),Er=(0,oe.useRef)(null),Ur=(0,oe.useRef)(null),[bi,pi]=(0,oe.useState)(Wr);return oe.createElement("div",{className:be()(ht.row,_n),style:jn},oe.createElement("div",{className:"flex item-center justify-between"},oe.createElement("div",{onClick:(0,Ce.throttle)(()=>Fn==null?void 0:Fn(),2e3),style:{width:xn,marginTop:di?12:4},className:`${ht.title} ${Fn?"current":""}`},tr),oe.createElement("i",{className:`iconfont ${bi?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:bi?8:10},onClick:()=>pi(!bi)})),bi&&oe.createElement("div",{className:di?`${ht.tagsWrap} ${ht.tagsBorderWrap}`:ht.tagsWrap},oe.createElement("div",{className:ht.fenge}),oe.createElement("div",{className:ht.bar,ref:Ur},oe.createElement("div",{className:ht.tag,ref:Er},sn==null?void 0:sn.map(Si=>oe.createElement("span",{onClick:()=>vn(Si.id),key:Si.id,style:{color:gr},className:rn===Si.id?ht.active:""},oe.createElement("span",{title:Si.name,className:ht.name},Si.name),!!Rr&&oe.createElement("span",{className:ht.num},Si.count)))))))},gt={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"},Me=({dataSource:sn=[],value:rn,onChange:vn,onTitleChange:Fn,className:_n,title:tr,titleWidth:xn=41,style:jn={},fontColor:gr="#fff",showCount:Rr,expand:Wr=!0})=>{const[qn,ti]=(0,oe.useState)(0),[di,ai]=(0,oe.useState)(!1),Er=(0,oe.useRef)(null),Ur=(0,oe.useRef)(null),[bi,pi]=(0,oe.useState)(Wr);return oe.createElement("div",{className:be()(gt.row,_n),style:jn},oe.createElement("div",{className:"flex item-center justify-between"},oe.createElement("div",{onClick:(0,Ce.throttle)(()=>Fn==null?void 0:Fn(),2e3),style:{width:xn},className:`${gt.title} ${Fn?"current":""}`},tr),oe.createElement("i",{className:`iconfont ${bi?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:bi?"#00DDC7":"#037F74",fontSize:bi?10:12},onClick:()=>pi(!bi)})),bi&&oe.createElement("div",{className:di?`${gt.tagsWrap} ${gt.tagsBorderWrap}`:gt.tagsWrap},oe.createElement("div",{className:gt.bar,ref:Ur},oe.createElement("div",{className:gt.tag,ref:Er},sn==null?void 0:sn.map(Si=>oe.createElement("span",{onClick:()=>vn(Si.id),key:Si.id,style:{color:gr},className:rn===Si.id?gt.active:""},oe.createElement("span",{title:Si.name,className:gt.name},Si.name),!!Rr&&oe.createElement("span",{className:gt.num},Si.count)))))))},Ue=le(92090),tt={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"},mt=le(92832),kt=({dataSource:sn=[],value:rn="",onChange:vn,onInputChange:Fn=()=>{},className:_n,style:tr={},placeholder:xn,allowClear:jn=!1})=>{var gr;const[Rr,Wr]=(0,oe.useState)(""),[qn,ti]=(0,oe.useState)("");(0,oe.useEffect)(()=>{var Er;let Ur=rn;(Er=JSON.stringify(rn))!=null&&Er.includes("{")&&(Wr(rn.id),Ur=rn.value||"");try{ti(decodeURIComponent(Ur||""))}catch(bi){ti(decodeURIComponent(Ur||""))}},[rn]);const di=()=>{vn(encodeURIComponent(qn),Rr||null)},ai=Er=>{Er!==Rr&&(Wr(Er),vn(encodeURIComponent(qn),Er))};return oe.createElement("div",{className:be()(tt.input,_n),style:tr},!!sn.length&&oe.createElement("div",{className:tt.dropdown},oe.createElement("div",{className:tt.text},(gr=sn.find(Er=>Er.id===Rr))==null?void 0:gr.name,oe.createElement("i",{className:"iconfont icon-zhankai4"}),oe.createElement("b",{className:tt.b1}),oe.createElement("b",{className:tt.b2})),oe.createElement("div",{className:tt.menu},sn.map((Er,Ur)=>oe.createElement("div",{key:Ur,onClick:()=>ai(Er.id)},Er.name)))),oe.createElement(mt.default,{onPressEnter:di,value:qn,onChange:Er=>{ti(Er.target.value),Fn(encodeURIComponent(Er.target.value),Rr||null)},bordered:!1,placeholder:xn}),oe.createElement("i",{onClick:di,className:"iconfont icon-sousuo9 font14 pl10 current"}))},st={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"},nt=({dataSource:sn=[],value:rn="",onChange:vn,onInputChange:Fn=()=>{},className:_n,style:tr={},placeholder:xn,allowClear:jn=!1})=>{var gr;const[Rr,Wr]=(0,oe.useState)(""),[qn,ti]=(0,oe.useState)("");(0,oe.useEffect)(()=>{var Er;let Ur=rn;(Er=JSON.stringify(rn))!=null&&Er.includes("{")&&(Wr(rn.id),Ur=rn.value||"");try{ti(decodeURIComponent(Ur||""))}catch(bi){ti(decodeURIComponent(Ur||""))}},[rn]);const di=()=>{vn(encodeURIComponent(qn),Rr||null)},ai=Er=>{Er!==Rr&&(Wr(Er),vn(encodeURIComponent(qn),Er))};return oe.createElement("div",{className:be()(st.input,_n),style:tr},!!sn.length&&oe.createElement("div",{className:st.dropdown},oe.createElement("div",{className:st.text},(gr=sn.find(Er=>Er.id===Rr))==null?void 0:gr.name,oe.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),oe.createElement("div",{className:st.menu},sn.map((Er,Ur)=>oe.createElement("div",{key:Ur,onClick:()=>ai(Er.id)},Er.name)))),oe.createElement(mt.default,{onPressEnter:di,value:qn,onChange:Er=>{ti(Er.target.value),Fn(encodeURIComponent(Er.target.value),Rr||null)},bordered:!1,placeholder:xn}),oe.createElement("i",{onClick:di,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Yt={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"},tn=({value:sn,onChange:rn,className:vn,total:Fn,pageSize:_n,style:tr={}})=>{const xn=sn<2,jn=sn>=Math.ceil(Fn/_n);return Fn<=_n?oe.createElement(oe.Fragment,null):oe.createElement("div",{className:be()(Yt.quickPager,vn),style:tr},oe.createElement("div",{onClick:()=>{xn||rn(sn-1,"prev")},className:xn?Yt.disabled:""},"\u4E0A\u4E00\u9875"),oe.createElement("div",{onClick:()=>{jn||rn(sn+1,"next")},className:jn?Yt.disabled:""},"\u4E0B\u4E00\u9875"))},en={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"},Ht=le(71418),je=le(6848),xe=le(13570),Xe=le(42684),_t=le(85333),St=le(96908),Qe=le(57177),$e=le(81378),Mt=le(61648),cn=({className:sn,dataSource:rn=[],col:vn=4,right:Fn,bottom:_n=23,precision:tr=0,wrapWidth:xn=1200,trackEventItems:jn,loading:gr})=>{const Rr=Math.floor((xn-(vn-1)*Fn)/vn);return oe.createElement(Ht.Z,{spinning:gr},oe.createElement("div",{className:be()(en.list,sn)},!!rn.length&&rn.map((Wr,qn)=>{const{name:ti,id:di,identifier:ai,power:Er,cover_image_id:Ur,pic:bi}=Wr;return oe.createElement("div",{className:en.wrap,key:di,style:{width:Rr,marginRight:(1+qn)%vn===0?0:Fn+tr,marginBottom:_n}},oe.createElement("a",{target:"_blank",href:`/shixuns/${ai}/challenges`,className:en.li,onClick:pi=>{pi.preventDefault(),jn&&(0,_t.L9)([jn]),Er&&(0,_t.xg)(`/shixuns/${ai}/challenges`)}},oe.createElement("div",{className:en.img},oe.createElement("img",{className:en.cover,src:`${bi}`}),Wr.is_jupyter&&oe.createElement("img",{className:en.sign,src:St}),Wr.is_jupyter_lab&&oe.createElement("img",{className:en.sign,src:Qe}),Wr.is_unity_3d&&oe.createElement("img",{className:en.sign,src:$e})),oe.createElement("div",{className:en.name},oe.createElement(je.Z,{title:ti||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},oe.createElement("span",{className:en.e},ti||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),oe.createElement("div",{className:en.tags},oe.createElement(je.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),oe.createElement("span",null,Wr.challenges_count))),!!Wr.myshixuns_count&&oe.createElement(je.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),oe.createElement("span",null,Wr.myshixuns_count))),oe.createElement(je.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},oe.createElement("span",null,oe.createElement("span",null,Wr.level))),oe.createElement("div",{className:en.rate},oe.createElement(xe.Z,{allowHalf:!0,disabled:!0,defaultValue:Wr.score_info}),oe.createElement("span",null,"\xA0",Wr.score_info?`${Wr.score_info}\u5206`:"5\u5206")))),!Er&&oe.createElement("div",{className:en.lockWrap},oe.createElement("img",{src:`${Xe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),oe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!rn.length&&oe.createElement(Mt.Z,null)))},dn={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"},Jt=({className:sn,dataSource:rn=[],col:vn=4,right:Fn,bottom:_n=23,precision:tr=0,wrapWidth:xn=1200,wrapClassName:jn,trackEventItems:gr,loading:Rr})=>{const Wr=Math.floor((xn-(vn-1)*Fn)/vn);return oe.createElement(Ht.Z,{spinning:Rr},oe.createElement("div",{className:be()(dn.list,sn)},!!rn.length&&rn.map((qn,ti)=>{const{name:di,id:ai,identifier:Er,power:Ur,cover_image_id:bi,pic:pi}=qn;return oe.createElement("div",{className:be()(dn.wrap,jn),key:ai,style:{width:Wr,marginRight:(1+ti)%vn===0?0:Fn+tr,marginBottom:_n}},oe.createElement("a",{target:"_blank",href:`/shixuns/${Er}/challenges`,className:dn.li,onClick:Si=>{Si.preventDefault(),gr&&(0,_t.L9)([gr]),Ur&&(0,_t.xg)(`/shixuns/${Er}/challenges`)}},oe.createElement("img",{src:le(47621),className:dn.titleBg}),oe.createElement("div",{className:dn.name},oe.createElement(je.Z,{title:di||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},oe.createElement("span",{className:dn.e},di||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),oe.createElement("div",{style:{padding:"14px",paddingBottom:0}},oe.createElement("div",{className:dn.img},oe.createElement("img",{className:dn.cover,src:bi?`${Xe.Z.API_SERVER}/api/attachments/${bi}`:`${Xe.Z.IMG_SERVER+pi}`}),qn.is_jupyter&&oe.createElement("div",{className:dn.bq},"Jupyter"),qn.is_jupyter_lab&&oe.createElement("div",{className:dn.bq},"JupyterLab"),qn.is_unity_3d&&oe.createElement("div",{className:dn.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),oe.createElement("div",{className:"mt20 flex item-center justify-between"},oe.createElement("div",null,oe.createElement("span",{className:dn.text},"\u5B66\u4E60\u4EBA\u6570"),oe.createElement("span",{className:dn.value},qn.myshixuns_count)),oe.createElement("div",null,oe.createElement("span",{className:dn.text},"\u56F0\u96BE\u7B49\u7EA7"),oe.createElement("span",{className:dn.value},qn.level))),oe.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},oe.createElement("div",null,oe.createElement("span",{className:dn.text},"\u5173\u5361\u6570"),oe.createElement("span",{className:dn.value},qn.challenges_count)),oe.createElement("div",{className:dn.rate},oe.createElement(xe.Z,{allowHalf:!0,disabled:!0,defaultValue:qn.score_info}),oe.createElement("span",{className:dn.value,style:{color:"#FF9C00"}},"\xA0",qn.score_info?`${qn.score_info}\u5206`:"5\u5206"))))),!Ur&&oe.createElement("div",{className:dn.lockWrap},oe.createElement("img",{src:`${Xe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),oe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!rn.length&&oe.createElement(Mt.Z,null)))},Bt={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"},ge="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5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XJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",fe=({className:sn,dataSource:rn=[],col:vn=4,right:Fn,bottom:_n=23,precision:tr=0,wrapWidth:xn=1200,trackEventItems:jn,loading:gr,wrapClassName:Rr,imgClassName:Wr})=>{const qn=Math.floor((xn-(vn-1)*Fn)/vn);return oe.createElement(Ht.Z,{spinning:gr},oe.createElement("div",{className:be()(Bt.list,sn)},!!rn.length&&rn.map((ti,di)=>{const{name:ai,id:Er,identifier:Ur,power:bi,cover_image_id:pi,pic:Si}=ti;return oe.createElement("div",{className:be()(Bt.wrap,Rr),key:Er,style:{width:qn,marginRight:(1+di)%vn===0?0:Fn+tr,marginBottom:_n}},oe.createElement("a",{target:"_blank",href:`/shixuns/${Ur}/challenges`,className:Bt.li,onClick:pa=>{pa.preventDefault(),jn&&(0,_t.L9)([jn]),bi&&(0,_t.xg)(`/shixuns/${Ur}/challenges`)}},oe.createElement("div",{className:be()(Bt.img,Wr)},oe.createElement("img",{className:Bt.cover,src:pi?`${Xe.Z.API_SERVER}/api/attachments/${pi}`:`${Xe.Z.IMG_SERVER+Si}`}),ti.is_jupyter&&oe.createElement("img",{className:Bt.sign,src:ge}),ti.is_jupyter_lab&&oe.createElement("img",{className:Bt.sign,src:ue}),ti.is_unity_3d&&oe.createElement("img",{className:Bt.sign,src:se})),oe.createElement("div",{className:Bt.name},oe.createElement(je.Z,{title:ai||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},oe.createElement("span",{className:Bt.e},ai||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),oe.createElement("div",{className:Bt.tags},oe.createElement(je.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),oe.createElement("span",null,ti.challenges_count))),!!ti.myshixuns_count&&oe.createElement(je.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),oe.createElement("span",null,ti.myshixuns_count))),oe.createElement(je.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},oe.createElement("span",null,oe.createElement("span",null,ti.level))),oe.createElement("div",{className:Bt.rate},oe.createElement(xe.Z,{allowHalf:!0,disabled:!0,defaultValue:ti.score_info}),oe.createElement("span",null,"\xA0",ti.score_info?`${ti.score_info}\u5206`:"5\u5206")))),!bi&&oe.createElement("div",{className:Bt.lockWrap},oe.createElement("img",{src:`${Xe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),oe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!rn.length&&oe.createElement(Mt.Z,null)))},ce=le(88276),Ae={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"},rt=le(79005),Le=le(20345),Ke=le(47027),Lt=le(31081),xt=le(75309),Ye=le(71979),Pt=le(47558),hn=le(42922),at=le(66832),Xt=le(96593),fn=le(19664),et=le(91833),De=Object.defineProperty,qe=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable,an=(sn,rn,vn)=>rn in sn?De(sn,rn,{enumerable:!0,configurable:!0,writable:!0,value:vn}):sn[rn]=vn,Mn=(sn,rn)=>{for(var vn in rn||(rn={}))Ot.call(rn,vn)&&an(sn,vn,rn[vn]);if(qe)for(var vn of qe(rn))Gt.call(rn,vn)&&an(sn,vn,rn[vn]);return sn};const Dn=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:rt,swimg:Le},{name:"101\u8BA1\u5212",ptimg:Ke,swimg:Lt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:xt,swimg:Ye},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Pt,swimg:hn},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:at,swimg:Xt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:fn,swimg:et}];var Un=({className:sn,dataSource:rn=[],col:vn=4,right:Fn,bottom:_n=23,precision:tr=0,wrapWidth:xn=1200,trackEventItems:jn,loading:gr,wrapClassName:Rr,imgClassName:Wr,isArrow:qn=!1,imgStyle:ti={}})=>{const di=Math.floor((xn-(vn-1)*Fn)/vn),[ai,Er]=(0,oe.useState)(),[Ur,bi]=(0,oe.useState)(),pi=pa=>Er(pa),Si=()=>Er(-1);return oe.createElement(Ht.Z,{spinning:gr},oe.createElement("div",{className:be()(Ae.list,sn)},!!(rn!=null&&rn.length)&&(rn==null?void 0:rn.map((pa,Aa)=>{var Ha;const{name:Pa,id:Po,identifier:Ua,featured:ba,school_name:Xi,image_url:Ka,excellent:so,is_plan:lo}=pa;return oe.createElement("div",{key:Po,className:be()(Ae.wrap,Rr),style:{width:di,marginRight:(1+Aa)%vn===0?0:Fn+tr,marginBottom:_n}},oe.createElement("a",{target:"_blank",href:`/paths/${Ua}`,className:Ae.li,onClick:co=>{co.preventDefault(),jn&&(0,_t.L9)([jn]),(0,_t.xg)(`/paths/${Ua}`)}},oe.createElement("img",{src:le(39057),className:Ae.titleBg}),oe.createElement("div",{className:Ae.name},oe.createElement(je.Z,{title:Pa},oe.createElement("span",{className:Ae.e,style:{color:qn&&ai===Aa?"#145DFF":"#000000"},onMouseEnter:()=>{pi(Aa)},onMouseLeave:Si},Pa))),oe.createElement("div",{style:{padding:"14px",paddingBottom:0}},oe.createElement("div",{className:be()(Ae.img,Wr)},oe.createElement("img",{className:Ae.cover,style:Mn({},ti),src:`${Xe.Z.IMG_SERVER+Ka}`}),(Ha=pa==null?void 0:pa.subject_tags)==null?void 0:Ha.map((co,Wa)=>{var xa,wa;if(Wa===0){const uo=(xa=Dn.find(Ho=>Ho.name==co))==null?void 0:xa.swimg;return oe.createElement("img",{className:Ae.sign,src:uo,style:{left:"-4px"}})}const Ki=(wa=Dn.find(uo=>uo.name==co))==null?void 0:wa.ptimg;return oe.createElement("img",{className:Ae.sign,src:Ki,style:{left:`${48+52*(Wa-1)+2*Wa}px`}})}),oe.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(pa==null?void 0:pa.excellent)&&oe.createElement("div",{className:Ae.bq},"\u5F00\u653E\u8BFE\u7A0B"))),oe.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},oe.createElement("div",null,oe.createElement("span",{className:Ae.text},"\u7AE0\u8282\u6570"),oe.createElement("span",{className:Ae.value},pa.stages_count)),oe.createElement("div",null,oe.createElement("span",{className:Ae.text},"\u5B66\u4E60\u4EBA\u6570"),oe.createElement("span",{className:Ae.value},pa.members_count))))))})),!rn.length&&oe.createElement(Mt.Z,null)))},Wn={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"},On=le(36466),Hn=le(59301);const Dr=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:rt,swimg:Le},{name:"101\u8BA1\u5212",ptimg:Ke,swimg:Lt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:xt,swimg:Ye},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Pt,swimg:hn},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:at,swimg:Xt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:fn,swimg:et}];var fr=({className:sn,dataSource:rn=[],col:vn=4,right:Fn,bottom:_n=23,precision:tr=0,wrapWidth:xn=1200,trackEventItems:jn,loading:gr,onRemove:Rr=()=>{},isCurrent:Wr=!0,showAlias:qn=!1,wrapClassName:ti,imgClassName:di})=>{const ai=Math.floor((xn-(vn-1)*Fn)/vn),Er=[{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(Ur=>(window.ENV==="build"&&(Ur.ptimg=`/react/build${Ur.ptimg}`,Ur.swimg=`/react/build${Ur.swimg}`),Ur));return Hn.createElement(Ht.Z,{spinning:gr},Hn.createElement("div",{className:be()(Wn.list,sn)},!!(rn!=null&&rn.length)&&(rn==null?void 0:rn.map((Ur,bi)=>{var pi;const{name:Si,id:pa,identifier:Aa,featured:Ha,school_name:Pa,image_url:Po,excellent:Ua,is_plan:ba}=Ur;return Hn.createElement("div",{key:pa,className:be()(Wn.wrap,ti),style:{width:ai,marginRight:(1+bi)%vn===0?0:Fn+tr,marginBottom:_n}},Hn.createElement("a",{className:Wn.li,onClick:Xi=>{Xi.preventDefault(),Xi.stopPropagation(),jn&&(0,_t.L9)([jn]),(0,_t.xg)(`/paths/${Aa}`)}},Hn.createElement("div",{className:be()(Wn.img,di)},Hn.createElement("img",{className:Wn.cover,src:`${Xe.Z.IMG_SERVER+Po}`}),Wr&&(0,On.bg)()&&(Ur==null?void 0:Ur.studying)&&Hn.createElement("div",{className:`${Wn.movebq} user-path-items`,onClick:Xi=>{Xi.stopPropagation(),Rr(Ur)}},Hn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Hn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(pi=Ur==null?void 0:Ur.subject_tags)==null?void 0:pi.map((Xi,Ka)=>{var so,lo;if(Ka===0){const Wa=(so=Er.find(xa=>xa.name==Xi))==null?void 0:so.swimg;return Hn.createElement("img",{className:Wn.sign,src:Wa,style:{left:"-4px"}})}const co=(lo=Er.find(Wa=>Wa.name==Xi))==null?void 0:lo.ptimg;return Hn.createElement("img",{className:Wn.sign,src:co,style:{left:`${48+52*(Ka-1)+2*Ka}px`}})}),Hn.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},(Ur==null?void 0:Ur.excellent)&&Hn.createElement("div",{className:Wn.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Hn.createElement("div",{className:Wn.name},Hn.createElement(je.Z,{title:qn&&(Ur!=null&&Ur.excellent_alias_name)?Hn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Si}`,Hn.createElement("br",null),Hn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ur==null?void 0:Ur.excellent_alias_name}`)):Si},Hn.createElement("span",{className:Wn.e},qn&&(Ur==null?void 0:Ur.excellent_alias_name)||Si))),Hn.createElement("div",{className:Wn.tags},Hn.createElement("div",null,Hn.createElement(je.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Hn.createElement("span",null,Hn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Hn.createElement("span",null,Ur.stages_count))),Hn.createElement(je.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Hn.createElement("span",null,Hn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Hn.createElement("span",null,Ur.members_count)))))))})),!rn.length&&Hn.createElement(Mt.Z,null)))},Jn={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"},Fr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8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hOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Tn=le(59301),Yr=({className:sn,dataSource:rn=[],col:vn=4,right:Fn,bottom:_n=23,precision:tr=0,wrapWidth:xn=1200,trackEventItems:jn,loading:gr})=>{const Rr=Math.floor((xn-(vn-1)*Fn)/vn);return Tn.createElement(Ht.Z,{spinning:gr},Tn.createElement("div",{className:be()(Jn.list,sn)},!!rn.length&&rn.map((Wr,qn)=>{const{subject_identifier:ti,id:di,identifier:ai,power:Er}=Wr,Ur=Wr.is_public!=0&&Wr.is_public;return Tn.createElement("div",{className:Jn.wrap,key:di,style:{width:Rr,marginRight:(1+qn)%vn===0?0:Fn+tr,marginBottom:_n}},Tn.createElement("a",{className:Jn.li,onClick:bi=>{bi.preventDefault(),jn&&(0,_t.L9)([jn]),(0,_t.xg)(Wr.first_category_url)}},Tn.createElement("div",{className:Jn.top},Tn.createElement(je.Z,{title:Wr.name},Tn.createElement("div",{className:Jn.name},Wr.name)),Tn.createElement("img",{className:Jn.img,src:Xe.Z.IMG_SERVER+"/images/"+Wr.avatar_url}),Tn.createElement("div",{className:Jn.text,title:Wr.creator},Wr.creator),ti&&Tn.createElement("div",{className:Jn.btns},Tn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Tn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ur&&Tn.createElement("div",{className:Jn.sign},"\u516C\u5F00")),Tn.createElement("div",{className:Jn.bottom},Wr.visits>0&&Tn.createElement(je.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Tn.createElement("span",null,Tn.createElement("i",{className:"iconfont icon-liulanyan"}),Tn.createElement("span",null,Wr.visits))),Wr.course_members_count>0&&Tn.createElement(je.Z,{title:"\u6210\u5458",placement:"bottom"},Tn.createElement("span",null,Tn.createElement("i",{className:"iconfont icon-chengyuan"}),Wr.course_members_count)),Wr.tasks_count>0&&Tn.createElement(je.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Tn.createElement("span",null,Tn.createElement("i",{className:"iconfont icon-zuoye"}),Wr.tasks_count)),Wr.is_end?Tn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Tn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Wr.is_accessible&&Tn.createElement("div",{className:Jn.lockWrap},Tn.createElement("img",{src:`${Xe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Tn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!rn.length&&Tn.createElement(Mt.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"},$r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXN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ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",$n=({className:sn,dataSource:rn=[],col:vn=4,right:Fn,bottom:_n=23,precision:tr=0,wrapWidth:xn=1200,wrapClassName:jn,trackEventItems:gr,loading:Rr})=>{const Wr=Math.floor((xn-(vn-1)*Fn)/vn);return oe.createElement(Ht.Z,{spinning:Rr},oe.createElement("div",{className:be()(nr.list,sn)},!!rn.length&&rn.map((qn,ti)=>{const{subject_identifier:di,id:ai,identifier:Er,power:Ur}=qn,bi=qn.is_public!=0&&qn.is_public;return oe.createElement("div",{className:be()(`${nr.wrap} ${qn.is_accessible?"":nr.warpStyle}`,jn),key:ai,style:{width:Wr,marginRight:(1+ti)%vn===0?0:Fn+tr,marginBottom:_n}},oe.createElement("a",{className:nr.li,onClick:pi=>{pi.preventDefault(),gr&&(0,_t.L9)([gr]),(0,_t.xg)(qn.first_category_url)}},oe.createElement("div",{className:nr.creator},oe.createElement("img",{className:nr.img,src:Xe.Z.IMG_SERVER+"/images/"+qn.avatar_url}),oe.createElement("div",{className:nr.text,title:qn.creator},qn.creator)),oe.createElement("div",{className:nr.top},oe.createElement(je.Z,{title:qn.name},oe.createElement("div",{className:nr.name},qn.name)),bi&&oe.createElement("div",{className:nr.sign},"\u516C\u5F00")),oe.createElement("div",{className:nr.middle},oe.createElement("div",{className:nr.row,style:{marginBottom:6}},oe.createElement("div",null,oe.createElement("span",{className:nr.text},"\u8BBF\u95EE\u91CF"),oe.createElement("span",{className:nr.value},(qn==null?void 0:qn.visits)||0)),oe.createElement("div",null,oe.createElement("span",{className:nr.text},"\u6210\u5458"),oe.createElement("span",{className:nr.value},(qn==null?void 0:qn.course_members_count)||0))),oe.createElement("div",{className:nr.row},oe.createElement("div",null,oe.createElement("span",{className:nr.text,style:{width:42}},"\u4F5C",oe.createElement("span",{style:{marginLeft:14}},"\u4E1A")),oe.createElement("span",{className:nr.value},(qn==null?void 0:qn.tasks_count)||0)),oe.createElement("div",null,oe.createElement("span",{className:nr.text},"\u72B6\u6001"),qn.is_end?oe.createElement("span",{className:nr.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):oe.createElement("span",{className:nr.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),di&&oe.createElement("div",{className:nr.btns},oe.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),oe.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!qn.is_accessible&&oe.createElement("div",{className:nr.lockWrap},oe.createElement("img",{src:`${Xe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),oe.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!rn.length&&oe.createElement(Mt.Z,null)))},Xn={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"},Kn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRL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SLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Tr=({className:sn,dataSource:rn=[],col:vn=4,right:Fn,bottom:_n=23,precision:tr=0,wrapWidth:xn=1200,wrapClassName:jn,trackEventItems:gr,loading:Rr})=>{const Wr=Math.floor((xn-(vn-1)*Fn)/vn);return oe.createElement(Ht.Z,{spinning:Rr},oe.createElement("div",{className:be()(Xn.list,sn)},!!rn.length&&rn.map((qn,ti)=>{const{subject_identifier:di,id:ai,identifier:Er,power:Ur}=qn,bi=qn.is_public!=0&&qn.is_public;return oe.createElement("div",{className:be()(`${Xn.wrap} ${qn.is_accessible?"":Xn.warpStyle}`,jn),key:ai,style:{width:Wr,marginRight:(1+ti)%vn===0?0:Fn+tr,marginBottom:_n}},oe.createElement("a",{className:Xn.li,onClick:pi=>{pi.preventDefault(),gr&&(0,_t.L9)([gr]),(0,_t.xg)(qn.first_category_url)}},oe.createElement("div",{className:Xn.creator},oe.createElement("img",{className:Xn.img,src:Xe.Z.IMG_SERVER+"/images/"+qn.avatar_url}),oe.createElement("div",{className:Xn.text,title:qn.creator},qn.creator)),oe.createElement("div",{className:Xn.top},oe.createElement(je.Z,{title:qn.name},oe.createElement("div",{className:Xn.name},qn.name)),bi&&oe.createElement("div",{className:Xn.sign})),oe.createElement("div",{className:Xn.middle},oe.createElement("div",{className:Xn.row,style:{marginBottom:6}},oe.createElement("div",null,oe.createElement("span",{className:Xn.text},"\u8BBF\u95EE\u91CF"),oe.createElement("span",{className:Xn.value},(qn==null?void 0:qn.visits)||0)),oe.createElement("div",null,oe.createElement("span",{className:Xn.text},"\u6210\u5458"),oe.createElement("span",{className:Xn.value},(qn==null?void 0:qn.course_members_count)||0))),oe.createElement("div",{className:Xn.row},oe.createElement("div",null,oe.createElement("span",{className:Xn.text,style:{width:42}},"\u4F5C",oe.createElement("span",{style:{marginLeft:14}},"\u4E1A")),oe.createElement("span",{className:Xn.value},(qn==null?void 0:qn.tasks_count)||0)),oe.createElement("div",null,oe.createElement("span",{className:Xn.text},"\u72B6\u6001"),qn.is_end?oe.createElement("span",{className:Xn.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):oe.createElement("span",{className:Xn.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),di&&oe.createElement("div",{className:Xn.btns},oe.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),oe.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!qn.is_accessible&&oe.createElement("div",{className:Xn.lockWrap},oe.createElement("img",{src:`${Xe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),oe.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!rn.length&&oe.createElement(Mt.Z,null)))},bt={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"},ke=le(44225),Re=({dataSource:sn=[],value:rn,onChange:vn,className:Fn,style:_n={},tabBarExtraContent:tr})=>oe.createElement("div",{className:be()(bt.tabs,Fn),style:_n},oe.createElement("div",{className:bt.tabsWrap},sn.map((xn,jn)=>oe.createElement("aside",{className:bt.tab,onClick:()=>{vn(xn.id),xn.link&&ke.history.push(xn.link)},key:jn},oe.createElement("div",{className:rn===xn.id?bt.active:""},xn.name),(xn==null?void 0:xn.resetCount)==null&&(xn==null?void 0:xn.total)!==void 0&&oe.createElement("span",null,"\uFF08",xn==null?void 0:xn.total,"\uFF09"),(xn==null?void 0:xn.resetCount)!==void 0&&(xn==null?void 0:xn.total)!==void 0&&oe.createElement(je.Z,{title:(xn==null?void 0:xn.tip)!=null?xn==null?void 0:xn.tip:""},oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",oe.createElement("span",{style:{color:"#000"}},xn==null?void 0:xn.resetCount),"/",oe.createElement("span",null,xn==null?void 0:xn.total),"\uFF09"))))),oe.createElement("div",{className:bt.tabBar},tr)),Pe={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"},vt=({dataSource:sn=[],value:rn,onChange:vn,className:Fn,style:_n={},tabBarExtraContent:tr})=>oe.createElement("div",{className:be()(Pe.tabs,Fn),style:_n},oe.createElement("div",{className:Pe.tabsWrap},sn.map((xn,jn)=>oe.createElement("aside",{className:Pe.tab,onClick:()=>{vn(xn.id),xn.link&&ke.history.push(xn.link)},key:jn},oe.createElement("div",{className:rn===xn.id?Pe.active:""},xn.name),(xn==null?void 0:xn.resetCount)==null&&(xn==null?void 0:xn.total)!==void 0&&oe.createElement("span",null,"\uFF08",xn==null?void 0:xn.total,"\uFF09"),(xn==null?void 0:xn.resetCount)!==void 0&&(xn==null?void 0:xn.total)!==void 0&&oe.createElement(je.Z,{title:(xn==null?void 0:xn.tip)!=null?xn==null?void 0:xn.tip:""},oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",oe.createElement("span",{style:{color:"#000"}},xn==null?void 0:xn.resetCount),"/",oe.createElement("span",null,xn==null?void 0:xn.total),"\uFF09"))))),oe.createElement("div",{className:Pe.tabBar},tr)),Ut={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"},on=({dataSource:sn=[],value:rn,onChange:vn,className:Fn,style:_n={},tabBarExtraContent:tr})=>oe.createElement("div",{className:be()(Ut.tabs,Fn),style:_n},oe.createElement("div",{className:Ut.tabsWrap},sn.map((xn,jn)=>oe.createElement("aside",{className:`${Ut.tab} ${rn===xn.id?Ut.active:""}`,onClick:()=>{vn(xn.id),xn.link&&ke.history.push(xn.link)},key:jn},oe.createElement("div",null,xn.name),(xn==null?void 0:xn.resetCount)==null&&(xn==null?void 0:xn.total)!==void 0&&oe.createElement("span",null,"\uFF08",xn==null?void 0:xn.total,"\uFF09"),(xn==null?void 0:xn.resetCount)!==void 0&&(xn==null?void 0:xn.total)!==void 0&&oe.createElement(je.Z,{title:(xn==null?void 0:xn.tip)!=null?xn==null?void 0:xn.tip:""},oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",oe.createElement("span",{style:{color:"#000"}},xn==null?void 0:xn.resetCount),"/",oe.createElement("span",null,xn==null?void 0:xn.total),"\uFF09"))))),oe.createElement("div",{className:Ut.tabBar},tr)),Bn=({className:sn,style:rn={},children:vn})=>oe.createElement("div",{className:be()(sn),style:rn},vn),An={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"},Wt=le(38854),bn=le(20834);const pt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Kt=({sortValue:sn,dropValue:rn,className:vn,onSort:Fn,onDrop:_n,dataSource:tr=pt})=>{var xn;return oe.createElement("div",{className:be()(An.orderWrap,vn)},oe.createElement(Wt.Z,{dropdownRender:()=>oe.createElement(bn.default,null,tr.map((jn,gr)=>oe.createElement(bn.default.Item,{key:gr,onClick:()=>_n(jn.id)},jn.name)))},oe.createElement("span",{className:An.orderTextWrap},(xn=tr.find(jn=>rn===jn.id))==null?void 0:xn.name)),oe.createElement("span",{className:An.orderIconWrap},oe.createElement("span",{className:An.orderAsc},oe.createElement("i",{className:sn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${An.cursorPointer} ${An.active}`:`iconfont icon-sanjiaoxing-up font12 ${An.cursorPointer}`,onClick:()=>Fn(sn==="asc"?"desc":"asc")})),oe.createElement("span",{className:An.orderDesc},oe.createElement("i",{className:sn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${An.cursorPointer} ${An.active}`:`iconfont icon-sanjiaoxing-down font12 ${An.cursorPointer}`,onClick:()=>Fn(sn==="asc"?"desc":"asc")}))))},Nt={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 gn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var pn=({sortValue:sn,dropValue:rn,className:vn,onSort:Fn,onDrop:_n,dataSource:tr=gn})=>{var xn;return oe.createElement("div",{className:be()(Nt.orderWrap,vn)},oe.createElement(Wt.Z,{dropdownRender:()=>oe.createElement(bn.default,null,tr.map((jn,gr)=>oe.createElement(bn.default.Item,{key:gr,onClick:()=>_n(jn.id)},jn.name)))},oe.createElement("span",{className:Nt.orderTextWrap},(xn=tr.find(jn=>rn===jn.id))==null?void 0:xn.name)),oe.createElement("span",{className:Nt.orderIconWrap},oe.createElement("span",{className:Nt.orderAsc},oe.createElement("i",{className:sn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Nt.cursorPointer} ${Nt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Nt.cursorPointer}`,onClick:()=>Fn(sn==="asc"?"desc":"asc")})),oe.createElement("span",{className:Nt.orderDesc},oe.createElement("i",{className:sn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Nt.cursorPointer} ${Nt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Nt.cursorPointer}`,onClick:()=>Fn(sn==="asc"?"desc":"asc")}))))},He={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"},At=le(3113),Dt=le(66911),Qt=Object.defineProperty,jt=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,En=(sn,rn,vn)=>rn in sn?Qt(sn,rn,{enumerable:!0,configurable:!0,writable:!0,value:vn}):sn[rn]=vn,In=(sn,rn)=>{for(var vn in rn||(rn={}))qt.call(rn,vn)&&En(sn,vn,rn[vn]);if(jt)for(var vn of jt(rn))$t.call(rn,vn)&&En(sn,vn,rn[vn]);return sn},zn=(sn,rn)=>{var vn={};for(var Fn in sn)qt.call(sn,Fn)&&rn.indexOf(Fn)<0&&(vn[Fn]=sn[Fn]);if(sn!=null&&jt)for(var Fn of jt(sn))rn.indexOf(Fn)<0&&$t.call(sn,Fn)&&(vn[Fn]=sn[Fn]);return vn},er=(sn,rn,vn)=>new Promise((Fn,_n)=>{var tr=gr=>{try{jn(vn.next(gr))}catch(Rr){_n(Rr)}},xn=gr=>{try{jn(vn.throw(gr))}catch(Rr){_n(Rr)}},jn=gr=>gr.done?Fn(gr.value):Promise.resolve(gr.value).then(tr,xn);jn((vn=vn.apply(sn,rn)).next())}),wr=sn=>{var rn=sn,{className:vn,style:Fn,children:_n,loading:tr=!1,openLoading:xn,onClick:jn=()=>{},size:gr="middle",shape:Rr="round",theme:Wr}=rn,qn=zn(rn,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[ti,di]=(0,oe.useState)(!1),ai=(0,oe.useMemo)(()=>{switch(Wr){case Dt.Fy.THEMEONE:return He.ThemeOne;case Dt.Fy.DEFAULT:default:return He.btn}},[Wr]);return oe.createElement(At.ZP,In({onClick:(0,Ce.throttle)(Er=>er(void 0,null,function*(){xn&&di(!0);try{yield jn(Er)}catch(Ur){console.log("error",Ur)}xn&&di(!1)}),2e3,{leading:!0,trailing:!1}),className:be()(ai,He[`${gr}-${Rr}`],vn),style:Fn,size:gr,shape:Rr,loading:ti||tr},qn),_n)},cr={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"},Ar=({className:sn,style:rn,children:vn=null,onClick:Fn,title:_n})=>oe.createElement("div",{className:be()(cr.head,sn),style:rn},oe.createElement("span",{className:"primary-hover",onClick:Fn},oe.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),oe.createElement("b",{title:_n},_n),oe.createElement("div",{className:cr.node},vn)),pr={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"},ur=({confirmShow:sn=!0,confirmTitle:rn,confirmClick:vn,cancelShow:Fn=!0,cancelTitle:_n,cancelClick:tr,className:xn,style:jn,confirmLoading:gr=!1})=>oe.createElement("div",{className:be()(pr.btns,xn),style:jn},sn&&oe.createElement(At.ZP,{loading:gr,onClick:vn,type:"primary",className:pr.confirm},rn),Fn&&oe.createElement(At.ZP,{onClick:tr,className:pr.cancel},_n)),or={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"},Sr=({className:sn,style:rn={},LeftContent:vn,children:Fn,RightContent:_n})=>oe.createElement("div",{className:be()(or.fixedBottom,sn),style:rn},oe.createElement("div",{className:or.wrap},oe.createElement("div",{className:or.left},vn),oe.createElement("div",{className:or.center},Fn),oe.createElement("div",{className:or.right},_n))),Jr={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"},br=({className:sn,style:rn={},dataSource:vn=[]})=>oe.createElement("div",{className:be()(Jr.crumbs,sn),style:rn},vn.map((Fn,_n)=>_n<vn.length-1?oe.createElement(oe.Fragment,{key:_n},Fn.path||Fn.onClick?oe.createElement("span",{className:Jr.hover,onClick:Fn!=null&&Fn.onClick?Fn.onClick:()=>ke.history.push(Fn.path)},Fn.name):oe.createElement("span",null,Fn.name),oe.createElement("span",null,"\xA0",">","\xA0")):oe.createElement("span",{key:_n,style:{color:"#5F6368"}},Fn.name))),Nn=le(31797),Rn=Object.defineProperty,kr=Object.defineProperties,yr=Object.getOwnPropertyDescriptors,Hr=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Gr=Object.prototype.propertyIsEnumerable,Cr=(sn,rn,vn)=>rn in sn?Rn(sn,rn,{enumerable:!0,configurable:!0,writable:!0,value:vn}):sn[rn]=vn,Kr=(sn,rn)=>{for(var vn in rn||(rn={}))jr.call(rn,vn)&&Cr(sn,vn,rn[vn]);if(Hr)for(var vn of Hr(rn))Gr.call(rn,vn)&&Cr(sn,vn,rn[vn]);return sn},yi=(sn,rn)=>kr(sn,yr(rn)),ir=(sn,rn)=>{var vn={};for(var Fn in sn)jr.call(sn,Fn)&&rn.indexOf(Fn)<0&&(vn[Fn]=sn[Fn]);if(sn!=null&&Hr)for(var Fn of Hr(sn))rn.indexOf(Fn)<0&&Gr.call(sn,Fn)&&(vn[Fn]=sn[Fn]);return vn};const{Countdown:hr}=Nn.default;var qr=sn=>{var rn=sn,{onChange:vn}=rn,Fn=ir(rn,["onChange"]);const[_n,tr]=(0,oe.useState)(null);(0,oe.useEffect)(()=>{typeof _n=="number"&&_n>=0&&vn(_n)},[_n]);const xn=jn=>{const gr=Math.floor(jn/1e3);tr(gr)};return oe.createElement(hr,yi(Kr({},Fn),{onChange:xn}))},xi={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},vi=({DataProps:sn,className:rn,style:vn={}})=>{var Fn;return oe.createElement("div",{className:be()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",xi.ClassRoomItem,rn),style:vn,onClick:()=>{(0,_t.xg)(sn==null?void 0:sn.first_category_url)}},oe.createElement("div",{className:"flex flex-col item-center"},oe.createElement("img",{src:`${(Fn=Xe.Z)==null?void 0:Fn.IMG_SERVER}/images/${sn==null?void 0:sn.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(sn==null?void 0:sn.subject_identifier)&&oe.createElement("div",{className:"mt-40px"},oe.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),oe.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),oe.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},oe.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(sn!=null&&sn.is_public)&&oe.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"),oe.createElement("span",{className:be()("text-16px font-medium",xi.TitleDom)},sn==null?void 0:sn.name)),oe.createElement("div",{className:"c-grey-333 font-medium"},sn==null?void 0:sn.creator),oe.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",sn==null?void 0:sn.course_members_count),oe.createElement("div",{className:"c-grey-333 flex item-center justify-between"},oe.createElement("div",null,"\u4F5C\u4E1A\uFF1A",sn==null?void 0:sn.tasks_count),sn!=null&&sn.is_end?oe.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):oe.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},ci=Object.defineProperty,Ai=Object.getOwnPropertySymbols,Li=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable,sr=(sn,rn,vn)=>rn in sn?ci(sn,rn,{enumerable:!0,configurable:!0,writable:!0,value:vn}):sn[rn]=vn,ar=(sn,rn)=>{for(var vn in rn||(rn={}))Li.call(rn,vn)&&sr(sn,vn,rn[vn]);if(Ai)for(var vn of Ai(rn))dr.call(rn,vn)&&sr(sn,vn,rn[vn]);return sn},gi=({DataProps:sn=[],selectValue:rn,onChange:vn,className:Fn,style:_n={},extra:tr,classNameItem:xn,styleItem:jn={},barHidden:gr})=>{const[Rr,Wr]=(0,oe.useState)();return(0,oe.useEffect)(()=>{Wr(Array.isArray(rn)?rn:[rn])},[rn]),oe.createElement("div",{className:be()("flex px-20px py-10px gap-40px",Fn),style:ar({borderBottom:"1px solid #D3F0FF"},_n)},sn==null?void 0:sn.map(qn=>oe.createElement("div",{key:qn==null?void 0:qn.id,className:be()("flex item-center justify-center current c-grey-333 text-16 relative",xn,qn==null?void 0:qn.className),style:ar(ar({color:Rr!=null&&Rr.includes(qn==null?void 0:qn.id)?"#1890FF":"",minWidth:88},jn),(qn==null?void 0:qn.style)||{}),onClick:ti=>{vn==null||vn({domEvent:ti,item:qn}),qn!=null&&qn.link&&ke.history.push(qn==null?void 0:qn.link)}},qn==null?void 0:qn.name,!gr&&(Rr==null?void 0:Rr.includes(qn==null?void 0:qn.id))&&oe.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),oe.createElement("div",{className:"ml-auto"},tr))},Di=Object.defineProperty,Ii=Object.defineProperties,ki=Object.getOwnPropertyDescriptors,wi=Object.getOwnPropertySymbols,Pi=Object.prototype.hasOwnProperty,Gi=Object.prototype.propertyIsEnumerable,Hi=(sn,rn,vn)=>rn in sn?Di(sn,rn,{enumerable:!0,configurable:!0,writable:!0,value:vn}):sn[rn]=vn,oa=(sn,rn)=>{for(var vn in rn||(rn={}))Pi.call(rn,vn)&&Hi(sn,vn,rn[vn]);if(wi)for(var vn of wi(rn))Gi.call(rn,vn)&&Hi(sn,vn,rn[vn]);return sn},li=(sn,rn)=>Ii(sn,ki(rn)),Ri=({value:sn,onChange:rn,onInputChange:vn,className:Fn,style:_n={},InputProps:tr})=>{const[xn,jn]=(0,oe.useState)(sn);return oe.createElement("div",{className:be()("flex item-center rounded-full px-10px py-2px",Fn),style:oa({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},_n)},oe.createElement(mt.default,li(oa({bordered:!1},tr),{onChange:gr=>{jn(gr.target.value),vn==null||vn(encodeURIComponent(gr.target.value))},onPressEnter:gr=>{rn==null||rn({domEvent:gr,item:{value:xn}})}})),oe.createElement("img",{className:"h-22px current",src:le(25365),height:22,onClick:gr=>{rn==null||rn({domEvent:gr,item:{value:xn}})}}))}},8204:function(mn,un,le){"use strict";le.d(un,{Z:function(){return Oe}});var oe=le(59301);function Oe(Ne,dt){const we=(0,oe.useRef)();(0,oe.useEffect)(()=>{we.current=Ne}),(0,oe.useEffect)(()=>{function Te(){we.current()}if(dt!==null){let Fe=setInterval(Te,dt);return()=>clearInterval(Fe)}},[dt])}},681:function(mn,un,le){"use strict";var oe=le(59301),Oe=le(8591),Ne=le(54580),dt=le(43418),we=le(71418),Te=le(78241),Fe=le(92832),be=le(57809),Ce=le(95237),_e=le(43604),ft=le(55114),Ie=le(42684),Ge=le(19248),wt=le(34051),ut=le(93351),yt=le(58661),lt=Object.defineProperty,ht=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,gt=(mt,Je,kt)=>Je in mt?lt(mt,Je,{enumerable:!0,configurable:!0,writable:!0,value:kt}):mt[Je]=kt,Ve=(mt,Je)=>{for(var kt in Je||(Je={}))Vt.call(Je,kt)&>(mt,kt,Je[kt]);if(ht)for(var kt of ht(Je))ot.call(Je,kt)&>(mt,kt,Je[kt]);return mt},Me=(mt,Je)=>{var kt={};for(var st in mt)Vt.call(mt,st)&&Je.indexOf(st)<0&&(kt[st]=mt[st]);if(mt!=null&&ht)for(var st of ht(mt))Je.indexOf(st)<0&&ot.call(mt,st)&&(kt[st]=mt[st]);return kt},Ue=(mt,Je,kt)=>new Promise((st,Tt)=>{var nt=tn=>{try{ln(kt.next(tn))}catch(en){Tt(en)}},Yt=tn=>{try{ln(kt.throw(tn))}catch(en){Tt(en)}},ln=tn=>tn.done?st(tn.value):Promise.resolve(tn.value).then(nt,Yt);ln((kt=kt.apply(mt,Je)).next())});const tt=mt=>{var Je=mt,{handleFinish:kt,form:st,dispatch:Tt}=Je,nt=Me(Je,["handleFinish","form","dispatch"]),Yt,ln;const[tn,en]=(0,oe.useState)([]),[Ht,je]=(0,oe.useState)([]),xe=(0,oe.useRef)(null),Xe=(0,oe.useRef)(1),[_t,St]=(0,oe.useState)(!1),[Qe,$e]=(0,oe.useState)(!1),[Mt,wn]=(0,oe.useState)([]),cn={fileList:tn,maxCount:1,accept:"image/*",withCredentials:!0,beforeUpload:Bt=>{const ge=Bt.size/1024/1024;return ge>2||ge==0?(Oe.ZP.error(`${Bt.name} \u56FE\u7247\u65E0\u6CD5\u4E0A\u4F20\u3002${ge==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u56FE\u7247\u5927\u5C0F\u9650\u5236(2MB)"}`),Ne.default.LIST_IGNORE):!0},onRemove:Bt=>{en([])},onChange:Bt=>{var ge,ue,se;st.setFieldsValue({cover_id:""}),["uploading","done","removed"].includes(Bt.file.status)&&(en(Bt.fileList),st.setFieldsValue({cover_id:(se=(ue=(ge=Bt.fileList)==null?void 0:ge[0])==null?void 0:ue.response)==null?void 0:se.id}))},action:`${Ie.Z.API_SERVER}/api/attachments.json`},dn=()=>{var Bt,ge;return oe.createElement("div",{className:ft.Z.imgUpLoad},oe.createElement("img",{src:Ie.Z.API_SERVER+"/api/attachments/"+((ge=(Bt=tn==null?void 0:tn[0])==null?void 0:Bt.response)==null?void 0:ge.id),alt:"avatar",style:{width:"100%"}}),oe.createElement("div",null,oe.createElement(Ge.Z,{onClick:()=>{en([]),st.setFieldsValue({cover_id:""})},style:{fontSize:"16px",color:"red"}})))},nn=()=>Ue(void 0,null,function*(){var Bt,ge;St(!0);const ue=yield(0,yt.ZP)("/api/schools/search.json",{method:"get",params:{display_aliases:!0,per_page:9999}});wn(ue==null?void 0:ue.schools),je(ue==null?void 0:ue.schools),st.setFieldsValue({school_id:((ge=(Bt=ue==null?void 0:ue.schools)==null?void 0:Bt.find(se=>se.id==parseInt(st.getFieldValue("school_id"))))==null?void 0:ge.name)||st.getFieldValue("school_id")}),St(!1)}),Jt=(Bt,ge=500)=>{$e(!0),clearTimeout(xe.current),xe.current=setTimeout(()=>Ue(void 0,null,function*(){Xe.current+=1;const ue=Xe.current,se=yield Tt({type:"account/getSchoolOption",payload:{display_aliases:!0,keyword:Bt}});se.status===0&&Xe.current===ue&&(wn(se==null?void 0:se.schools),$e(!1))}),ge)};return(0,oe.useEffect)(()=>{nt.open?(st.getFieldValue("cover_id")&&st.getFieldValue("cover")&&en([{response:st.getFieldValue("cover")}]),nn()):en([])},[nt.open]),oe.createElement(dt.default,Ve({},nt),oe.createElement(we.Z,{spinning:_t},oe.createElement(Te.default,{form:st,size:"large",initialValues:{},layout:"vertical",onFinish:Bt=>{kt(Bt)}},oe.createElement(Te.default.Item,{htmlFor:null,name:"name",label:"\u597D\u8BFE\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u597D\u8BFE\u540D\u79F0"}]},oe.createElement(Fe.default,{placeholder:"\u8BF7\u8F93\u5165\u597D\u8BFE\u540D\u79F0",maxLength:60,showCount:!0})),oe.createElement(Te.default.Item,{htmlFor:null,name:"creator",label:"\u521B\u5EFA\u8005",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u521B\u5EFA\u8005"}]},oe.createElement(Fe.default,{placeholder:"\u8BF7\u8F93\u5165\u521B\u5EFA\u8005",maxLength:60,showCount:!0})),oe.createElement(Te.default.Item,{htmlFor:null,name:"school_id",label:"\u6240\u5C5E\u5355\u4F4D"},oe.createElement(be.default,{showSearch:!0,filterOption:!1,onSearch:Bt=>{Jt(Bt)},loading:Qe,size:"large",style:{width:"100%"}},Mt.map(Bt=>oe.createElement(be.default.Option,{value:Bt.id,key:Bt.id},Bt.name)))),oe.createElement(Te.default.Item,{htmlFor:null,name:"desc",label:"\u7B80\u4ECB",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u597D\u8BFE\u7B80\u4ECB"}]},oe.createElement(wt.h,{placeholder:"\u8BF7\u8F93\u5165\u597D\u8BFE\u7B80\u4ECB",scrollId:"",watch:!0,height:192})),oe.createElement(Te.default.Item,{name:"cover_id",label:"\u5C01\u9762\u56FE\u7247",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u597D\u8BFE\u56FE\u7247"}]},oe.createElement("div",{className:ft.Z.upload},(ln=(Yt=tn==null?void 0:tn[0])==null?void 0:Yt.response)!=null&&ln.id?dn():oe.createElement(Ne.default,Ve({},cn),oe.createElement(Ce.Z,{wrap:!1,align:"middle"},oe.createElement(ut.op,{style:{borderRadius:"2px"},icon:oe.createElement("i",{className:"iconfont icon-shangchuan3"})},"\u56FE\u7247\u4E0A\u4F20"),oe.createElement(_e.Z,{style:{marginLeft:"16px",color:"#5F6367"},onClick:Bt=>{Bt.preventDefault(),Bt.stopPropagation()}},"\u8BF7\u9009\u62E9jpg\u3001png\u683C\u5F0F\uFF0C\u5EFA\u8BAE\u5C3A\u5BF8282*212\u50CF\u7D20"))))),oe.createElement(Te.default.Item,{htmlFor:null,name:"lesson_url",label:"\u8BFE\u7A0B\u94FE\u63A5",rules:[{type:"url",message:"\u8D44\u6E90\u94FE\u63A5\u683C\u5F0F\u4E0D\u6B63\u786E"}]},oe.createElement(Fe.default,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u94FE\u63A5",maxLength:150})))))};un.Z=tt},56762:function(mn,un,le){"use strict";le.d(un,{Z:function(){return Oe}});var oe=le(59301);function Oe(){const[,Ne]=oe.useReducer(dt=>dt+1,0);return Ne}},19080:function(mn,un,le){"use strict";le.d(un,{F:function(){return we},Z:function(){return dt}});var oe=le(92310),Oe=le.n(oe);const Ne=null;function dt(Te,Fe,be){return Oe()({[`${Te}-status-success`]:Fe==="success",[`${Te}-status-warning`]:Fe==="warning",[`${Te}-status-error`]:Fe==="error",[`${Te}-status-validating`]:Fe==="validating",[`${Te}-has-feedback`]:be})}const we=(Te,Fe)=>Fe||Te},93891:function(mn,un,le){"use strict";var oe=le(59301),Oe=le(36355),Ne=le(64165);const dt=we=>{const{componentName:Te}=we,{getPrefixCls:Fe}=(0,oe.useContext)(Oe.E_),be=Fe("empty");switch(Te){case"Table":case"List":return oe.createElement(Ne.Z,{image:Ne.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return oe.createElement(Ne.Z,{image:Ne.Z.PRESENTED_IMAGE_SIMPLE,className:`${be}-small`});default:return oe.createElement(Ne.Z,null)}};un.Z=dt},43428:function(mn,un,le){"use strict";le.d(un,{Z:function(){return nn}});var oe=le(92310),Oe=le.n(oe),Ne=le(85899),dt=le(72190),we=le(43403),Te=le(34280),Fe=le(59301),be=Fe.createContext(null),Ce=Fe.createContext({}),_e=be,ft=le(18642),Ie=le(60499),Ge=le(77900),wt=le(10228),ut=le(26112),yt=le(70425),lt=function(Bt){var ge=Bt.prefixCls,ue=Bt.className,se=Bt.style,he=Bt.children,fe=Bt.containerRef,ce=Bt.id,Ae=Bt.onMouseEnter,rt=Bt.onMouseOver,Le=Bt.onMouseLeave,Ke=Bt.onClick,Lt=Bt.onKeyDown,xt=Bt.onKeyUp,Ye={onMouseEnter:Ae,onMouseOver:rt,onMouseLeave:Le,onClick:Ke,onKeyDown:Lt,onKeyUp:xt},Pt=Fe.useContext(Ce),hn=Pt.panel,at=(0,yt.useComposeRef)(hn,fe);return Fe.createElement(Fe.Fragment,null,Fe.createElement("div",(0,Ie.Z)({id:ce,className:Oe()("".concat(ge,"-content"),ue),style:(0,Ne.Z)({},se),"aria-modal":"true",role:"dialog",ref:at},Ye),he))},ht=lt,Vt=le(48736);function ot(Jt){return typeof Jt=="string"&&String(Number(Jt))===Jt?((0,Vt.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Jt)):Jt}function gt(Jt){warning(!("wrapperClassName"in Jt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Jt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ve={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Me(Jt,Bt){var ge,ue,se,he,fe=Jt.prefixCls,ce=Jt.open,Ae=Jt.placement,rt=Jt.inline,Le=Jt.push,Ke=Jt.forceRender,Lt=Jt.autoFocus,xt=Jt.keyboard,Ye=Jt.rootClassName,Pt=Jt.rootStyle,hn=Jt.zIndex,at=Jt.className,Xt=Jt.id,fn=Jt.style,et=Jt.motion,De=Jt.width,qe=Jt.height,Ot=Jt.children,Gt=Jt.contentWrapperStyle,an=Jt.mask,Mn=Jt.maskClosable,Dn=Jt.maskMotion,Ln=Jt.maskClassName,Un=Jt.maskStyle,Wn=Jt.afterOpenChange,On=Jt.onClose,Hn=Jt.onMouseEnter,Dr=Jt.onMouseOver,Pr=Jt.onMouseLeave,fr=Jt.onClick,Jn=Jt.onKeyDown,Fr=Jt.onKeyUp,Tn=Fe.useRef(),Ir=Fe.useRef(),Yr=Fe.useRef();Fe.useImperativeHandle(Bt,function(){return Tn.current});var nr=function(Ft){var on=Ft.keyCode,Cn=Ft.shiftKey;switch(on){case wt.Z.TAB:{if(on===wt.Z.TAB){if(!Cn&&document.activeElement===Yr.current){var Bn;(Bn=Ir.current)===null||Bn===void 0||Bn.focus({preventScroll:!0})}else if(Cn&&document.activeElement===Ir.current){var An;(An=Yr.current)===null||An===void 0||An.focus({preventScroll:!0})}}break}case wt.Z.ESC:{On&&xt&&(Ft.stopPropagation(),On(Ft));break}}};Fe.useEffect(function(){if(ce&&Lt){var Ut;(Ut=Tn.current)===null||Ut===void 0||Ut.focus({preventScroll:!0})}},[ce]);var $r=Fe.useState(!1),Qr=(0,dt.Z)($r,2),$n=Qr[0],Xn=Qr[1],Kn=Fe.useContext(_e),Gn;Le===!1?Gn={distance:0}:Le===!0?Gn={}:Gn=Le||{};var Tr=(ge=(ue=(se=Gn)===null||se===void 0?void 0:se.distance)!==null&&ue!==void 0?ue:Kn==null?void 0:Kn.pushDistance)!==null&&ge!==void 0?ge:180,bt=Fe.useMemo(function(){return{pushDistance:Tr,push:function(){Xn(!0)},pull:function(){Xn(!1)}}},[Tr]);Fe.useEffect(function(){if(ce){var Ut;Kn==null||(Ut=Kn.push)===null||Ut===void 0||Ut.call(Kn)}else{var Ft;Kn==null||(Ft=Kn.pull)===null||Ft===void 0||Ft.call(Kn)}},[ce]),Fe.useEffect(function(){return function(){var Ut;Kn==null||(Ut=Kn.pull)===null||Ut===void 0||Ut.call(Kn)}},[]);var ke=an&&Fe.createElement(Ge.default,(0,Ie.Z)({key:"mask"},Dn,{visible:ce}),function(Ut,Ft){var on=Ut.className,Cn=Ut.style;return Fe.createElement("div",{className:Oe()("".concat(fe,"-mask"),on,Ln),style:(0,Ne.Z)((0,Ne.Z)({},Cn),Un),onClick:Mn&&ce?On:void 0,ref:Ft})}),ze=typeof et=="function"?et(Ae):et,Re={};if($n&&Tr)switch(Ae){case"top":Re.transform="translateY(".concat(Tr,"px)");break;case"bottom":Re.transform="translateY(".concat(-Tr,"px)");break;case"left":Re.transform="translateX(".concat(Tr,"px)");break;default:Re.transform="translateX(".concat(-Tr,"px)");break}Ae==="left"||Ae==="right"?Re.width=ot(De):Re.height=ot(qe);var Pe={onMouseEnter:Hn,onMouseOver:Dr,onMouseLeave:Pr,onClick:fr,onKeyDown:Jn,onKeyUp:Fr},it=Fe.createElement(Ge.default,(0,Ie.Z)({key:"panel"},ze,{visible:ce,forceRender:Ke,onVisibleChanged:function(Ft){Wn==null||Wn(Ft)},removeOnLeave:!1,leavedClassName:"".concat(fe,"-content-wrapper-hidden")}),function(Ut,Ft){var on=Ut.className,Cn=Ut.style;return Fe.createElement("div",(0,Ie.Z)({className:Oe()("".concat(fe,"-content-wrapper"),on),style:(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},Re),Cn),Gt)},(0,ut.Z)(Jt,{data:!0})),Fe.createElement(ht,(0,Ie.Z)({id:Xt,containerRef:Ft,prefixCls:fe,className:at,style:fn},Pe),Ot))}),vt=(0,Ne.Z)({},Pt);return hn&&(vt.zIndex=hn),Fe.createElement(_e.Provider,{value:bt},Fe.createElement("div",{className:Oe()(fe,"".concat(fe,"-").concat(Ae),Ye,(he={},(0,ft.Z)(he,"".concat(fe,"-open"),ce),(0,ft.Z)(he,"".concat(fe,"-inline"),rt),he)),style:vt,tabIndex:-1,ref:Tn,onKeyDown:nr},ke,Fe.createElement("div",{tabIndex:0,ref:Ir,style:Ve,"aria-hidden":"true","data-sentinel":"start"}),it,Fe.createElement("div",{tabIndex:0,ref:Yr,style:Ve,"aria-hidden":"true","data-sentinel":"end"})))}var Ue=Fe.forwardRef(Me),tt=Ue,mt=function(Bt){var ge=Bt.open,ue=ge===void 0?!1:ge,se=Bt.prefixCls,he=se===void 0?"rc-drawer":se,fe=Bt.placement,ce=fe===void 0?"right":fe,Ae=Bt.autoFocus,rt=Ae===void 0?!0:Ae,Le=Bt.keyboard,Ke=Le===void 0?!0:Le,Lt=Bt.width,xt=Lt===void 0?378:Lt,Ye=Bt.mask,Pt=Ye===void 0?!0:Ye,hn=Bt.maskClosable,at=hn===void 0?!0:hn,Xt=Bt.getContainer,fn=Bt.forceRender,et=Bt.afterOpenChange,De=Bt.destroyOnClose,qe=Bt.onMouseEnter,Ot=Bt.onMouseOver,Gt=Bt.onMouseLeave,an=Bt.onClick,Mn=Bt.onKeyDown,Dn=Bt.onKeyUp,Ln=Bt.panelRef,Un=Fe.useState(!1),Wn=(0,dt.Z)(Un,2),On=Wn[0],Hn=Wn[1],Dr=Fe.useState(!1),Pr=(0,dt.Z)(Dr,2),fr=Pr[0],Jn=Pr[1];(0,Te.Z)(function(){Jn(!0)},[]);var Fr=fr?ue:!1,Tn=Fe.useRef(),Ir=Fe.useRef();(0,Te.Z)(function(){Fr&&(Ir.current=document.activeElement)},[Fr]);var Yr=function(Xn){var Kn;if(Hn(Xn),et==null||et(Xn),!Xn&&Ir.current&&!((Kn=Tn.current)!==null&&Kn!==void 0&&Kn.contains(Ir.current))){var Gn;(Gn=Ir.current)===null||Gn===void 0||Gn.focus({preventScroll:!0})}},nr=Fe.useMemo(function(){return{panel:Ln}},[Ln]);if(!fn&&!On&&!Fr&&De)return null;var $r={onMouseEnter:qe,onMouseOver:Ot,onMouseLeave:Gt,onClick:an,onKeyDown:Mn,onKeyUp:Dn},Qr=(0,Ne.Z)((0,Ne.Z)({},Bt),{},{open:Fr,prefixCls:he,placement:ce,autoFocus:rt,keyboard:Ke,width:xt,mask:Pt,maskClosable:at,inline:Xt===!1,afterOpenChange:Yr,ref:Tn},$r);return Fe.createElement(Ce.Provider,{value:nr},Fe.createElement(we.Z,{open:Fr||fn||On,autoDestroy:!1,getContainer:Xt,autoLock:Pt&&(Fr||On)},Fe.createElement(tt,Qr)))},Je=mt,kt=Je,st=le(62892),Tt=le(36355),nt=le(32441),Yt=le(47729),tn=Jt=>{const{prefixCls:Bt,title:ge,footer:ue,extra:se,closeIcon:he,closable:fe,onClose:ce,headerStyle:Ae,drawerStyle:rt,bodyStyle:Le,footerStyle:Ke,children:Lt}=Jt,xt=Fe.useCallback(Xt=>Fe.createElement("button",{type:"button",onClick:ce,"aria-label":"Close",className:`${Bt}-close`},Xt),[ce]),[Ye,Pt]=(0,Yt.Z)(fe,he,xt,void 0,!0),hn=Fe.useMemo(()=>!ge&&!Ye?null:Fe.createElement("div",{style:Ae,className:Oe()(`${Bt}-header`,{[`${Bt}-header-close-only`]:Ye&&!ge&&!se})},Fe.createElement("div",{className:`${Bt}-header-title`},Pt,ge&&Fe.createElement("div",{className:`${Bt}-title`},ge)),se&&Fe.createElement("div",{className:`${Bt}-extra`},se)),[Ye,Pt,se,Ae,Bt,ge]),at=Fe.useMemo(()=>{if(!ue)return null;const Xt=`${Bt}-footer`;return Fe.createElement("div",{className:Xt,style:Ke},ue)},[ue,Ke,Bt]);return Fe.createElement("div",{className:`${Bt}-wrapper-body`,style:rt},hn,Fe.createElement("div",{className:`${Bt}-body`,style:Le},Lt),at)},en=le(33234),Ht=le(83116),je=le(37613),Xe=Jt=>{const{componentCls:Bt,motionDurationSlow:ge}=Jt,ue={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${ge}`}}};return{[Bt]:{[`${Bt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${ge}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Bt}-panel-motion`]:{"&-left":[ue,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[ue,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[ue,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[ue,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const _t=Jt=>{const{componentCls:Bt,zIndexPopup:ge,colorBgMask:ue,colorBgElevated:se,motionDurationSlow:he,motionDurationMid:fe,padding:ce,paddingLG:Ae,fontSizeLG:rt,lineHeightLG:Le,lineWidth:Ke,lineType:Lt,colorSplit:xt,marginSM:Ye,colorIcon:Pt,colorIconHover:hn,colorText:at,fontWeightStrong:Xt,footerPaddingBlock:fn,footerPaddingInline:et}=Jt,De=`${Bt}-content-wrapper`;return{[Bt]:{position:"fixed",inset:0,zIndex:ge,pointerEvents:"none","&-pure":{position:"relative",background:se,[`&${Bt}-left`]:{boxShadow:Jt.boxShadowDrawerLeft},[`&${Bt}-right`]:{boxShadow:Jt.boxShadowDrawerRight},[`&${Bt}-top`]:{boxShadow:Jt.boxShadowDrawerUp},[`&${Bt}-bottom`]:{boxShadow:Jt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Bt}-mask`]:{position:"absolute",inset:0,zIndex:ge,background:ue,pointerEvents:"auto"},[De]:{position:"absolute",zIndex:ge,maxWidth:"100vw",transition:`all ${he}`,"&-hidden":{display:"none"}},[`&-left > ${De}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Jt.boxShadowDrawerLeft},[`&-right > ${De}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Jt.boxShadowDrawerRight},[`&-top > ${De}`]:{top:0,insetInline:0,boxShadow:Jt.boxShadowDrawerUp},[`&-bottom > ${De}`]:{bottom:0,insetInline:0,boxShadow:Jt.boxShadowDrawerDown},[`${Bt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:se,pointerEvents:"auto"},[`${Bt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Bt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${ce}px ${Ae}px`,fontSize:rt,lineHeight:Le,borderBottom:`${Ke}px ${Lt} ${xt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Bt}-extra`]:{flex:"none"},[`${Bt}-close`]:{display:"inline-block",marginInlineEnd:Ye,color:Pt,fontWeight:Xt,fontSize:rt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${fe}`,textRendering:"auto","&:focus, &:hover":{color:hn,textDecoration:"none"}},[`${Bt}-title`]:{flex:1,margin:0,color:at,fontWeight:Jt.fontWeightStrong,fontSize:rt,lineHeight:Le},[`${Bt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Ae,overflow:"auto"},[`${Bt}-footer`]:{flexShrink:0,padding:`${fn}px ${et}px`,borderTop:`${Ke}px ${Lt} ${xt}`},"&-rtl":{direction:"rtl"}}}};var St=(0,Ht.Z)("Drawer",Jt=>{const Bt=(0,je.TS)(Jt,{});return[_t(Bt),Xe(Bt)]},Jt=>({zIndexPopup:Jt.zIndexPopupBase,footerPaddingBlock:Jt.paddingXS,footerPaddingInline:Jt.padding})),Qe=le(11575),$e=function(Jt,Bt){var ge={};for(var ue in Jt)Object.prototype.hasOwnProperty.call(Jt,ue)&&Bt.indexOf(ue)<0&&(ge[ue]=Jt[ue]);if(Jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ue=Object.getOwnPropertySymbols(Jt);se<ue.length;se++)Bt.indexOf(ue[se])<0&&Object.prototype.propertyIsEnumerable.call(Jt,ue[se])&&(ge[ue[se]]=Jt[ue[se]]);return ge};const Mt=null,wn={distance:180},cn=Jt=>{var Bt;const{rootClassName:ge,width:ue,height:se,size:he="default",mask:fe=!0,push:ce=wn,open:Ae,afterOpenChange:rt,onClose:Le,prefixCls:Ke,getContainer:Lt,style:xt,className:Ye,visible:Pt,afterVisibleChange:hn}=Jt,at=$e(Jt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Xt,getPrefixCls:fn,direction:et,drawer:De}=Fe.useContext(Tt.E_),qe=fn("drawer",Ke),[Ot,Gt]=St(qe),an=Lt===void 0&&Xt?()=>Xt(document.body):Lt,Mn=Oe()({"no-mask":!fe,[`${qe}-rtl`]:et==="rtl"},ge,Gt),Dn=Fe.useMemo(()=>ue!=null?ue:he==="large"?736:378,[ue,he]),Ln=Fe.useMemo(()=>se!=null?se:he==="large"?736:378,[se,he]),Un={motionName:(0,st.m)(qe,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Wn=Hn=>({motionName:(0,st.m)(qe,`panel-motion-${Hn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),On=(0,Qe.H)();return Ot(Fe.createElement(en.BR,null,Fe.createElement(nt.Ux,{status:!0,override:!0},Fe.createElement(kt,Object.assign({prefixCls:qe,onClose:Le,maskMotion:Un,motion:Wn},at,{open:Ae!=null?Ae:Pt,mask:fe,push:ce,width:Dn,height:Ln,style:Object.assign(Object.assign({},De==null?void 0:De.style),xt),className:Oe()(De==null?void 0:De.className,Ye),rootClassName:Mn,getContainer:an,afterOpenChange:rt!=null?rt:hn,panelRef:On}),Fe.createElement(tn,Object.assign({prefixCls:qe},at,{onClose:Le}))))))},dn=Jt=>{const{prefixCls:Bt,style:ge,className:ue,placement:se="right"}=Jt,he=$e(Jt,["prefixCls","style","className","placement"]),{getPrefixCls:fe}=Fe.useContext(Tt.E_),ce=fe("drawer",Bt),[Ae,rt]=St(ce),Le=Oe()(ce,`${ce}-pure`,`${ce}-${se}`,rt,ue);return Ae(Fe.createElement("div",{className:Le,style:ge},Fe.createElement(tn,Object.assign({prefixCls:ce},he))))};cn._InternalPanelDoNotUseOrYouWillBeFired=dn;var nn=cn},91857:function(mn,un,le){"use strict";var oe=le(59301),Oe=le(38819),Ne=le(92310),dt=le.n(Ne),we=le(31561),Te=le(70425),Fe=le(18929),be=le(2738),Ce=le(79676),_e=le(53487),ft=le(92343),Ie=le(36355),Ge=le(20834),wt=le(40875),ut=le(70305),yt=le(47211);const lt=null,ht=Ve=>{const{menu:Me,arrow:Ue,prefixCls:tt,children:mt,trigger:Je,disabled:kt,dropdownRender:st,getPopupContainer:Tt,overlayClassName:nt,rootClassName:Yt,open:ln,onOpenChange:tn,visible:en,onVisibleChange:Ht,mouseEnterDelay:je=.15,mouseLeaveDelay:xe=.1,autoAdjustOverflow:Xe=!0,placement:_t="",overlay:St,transitionName:Qe}=Ve,{getPopupContainer:$e,getPrefixCls:Mt,direction:wn}=oe.useContext(Ie.E_),cn=oe.useMemo(()=>{const Ye=Mt();return Qe!==void 0?Qe:_t.includes("top")?`${Ye}-slide-down`:`${Ye}-slide-up`},[Mt,_t,Qe]),dn=oe.useMemo(()=>_t?_t.includes("Center")?_t.slice(0,_t.indexOf("Center")):_t:wn==="rtl"?"bottomRight":"bottomLeft",[_t,wn]),nn=Mt("dropdown",tt),[Jt,Bt]=(0,yt.Z)(nn),[,ge]=(0,ut.Z)(),ue=oe.Children.only(mt),se=(0,ft.Tm)(ue,{className:dt()(`${nn}-trigger`,{[`${nn}-rtl`]:wn==="rtl"},ue.props.className),disabled:kt}),he=kt?[]:Je;let fe;he&&he.includes("contextMenu")&&(fe=!0);const[ce,Ae]=(0,Fe.Z)(!1,{value:ln!=null?ln:en}),rt=(0,Te.useEvent)(Ye=>{tn==null||tn(Ye),Ht==null||Ht(Ye),Ae(Ye)}),Le=dt()(nt,Yt,Bt,{[`${nn}-rtl`]:wn==="rtl"}),Ke=(0,Ce.Z)({arrowPointAtCenter:typeof Ue=="object"&&Ue.pointAtCenter,autoAdjustOverflow:Xe,offset:ge.marginXXS,arrowWidth:Ue?ge.sizePopupArrow:0,borderRadius:ge.borderRadius}),Lt=oe.useCallback(()=>{Ae(!1)},[]),xt=()=>{let Ye;return Me!=null&&Me.items?Ye=oe.createElement(Ge.default,Object.assign({},Me)):typeof St=="function"?Ye=St():Ye=St,st&&(Ye=st(Ye)),Ye=oe.Children.only(typeof Ye=="string"?oe.createElement("span",null,Ye):Ye),oe.createElement(wt.J,{prefixCls:`${nn}-menu`,expandIcon:oe.createElement("span",{className:`${nn}-menu-submenu-arrow`},oe.createElement(Oe.Z,{className:`${nn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Lt,validator:Pt=>{let{mode:hn}=Pt}},Ye)};return Jt(oe.createElement(we.Z,Object.assign({alignPoint:fe},(0,be.Z)(Ve,["rootClassName"]),{mouseEnterDelay:je,mouseLeaveDelay:xe,visible:ce,builtinPlacements:Ke,arrow:!!Ue,overlayClassName:Le,prefixCls:nn,getPopupContainer:Tt||$e,transitionName:cn,trigger:he,overlay:xt,placement:dn,onVisibleChange:rt}),se))};function Vt(Ve){return Object.assign(Object.assign({},Ve),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ot=(0,_e.Z)(ht,"dropdown",Ve=>Ve,Vt),gt=Ve=>oe.createElement(ot,Object.assign({},Ve),oe.createElement("span",null));ht._InternalPanelDoNotUseOrYouWillBeFired=gt,un.Z=ht},38854:function(mn,un,le){"use strict";le.d(un,{Z:function(){return ut}});var oe=le(91857),Oe=le(92310),Ne=le.n(Oe),dt=le(59301),we=le(18785),Te=le(3113),Fe=le(36355),be=le(81327),Ce=le(33234),_e=le(47211),ft=function(yt,lt){var ht={};for(var Vt in yt)Object.prototype.hasOwnProperty.call(yt,Vt)&<.indexOf(Vt)<0&&(ht[Vt]=yt[Vt]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Vt=Object.getOwnPropertySymbols(yt);ot<Vt.length;ot++)lt.indexOf(Vt[ot])<0&&Object.prototype.propertyIsEnumerable.call(yt,Vt[ot])&&(ht[Vt[ot]]=yt[Vt[ot]]);return ht};const Ie=yt=>{const{getPopupContainer:lt,getPrefixCls:ht,direction:Vt}=dt.useContext(Fe.E_),{prefixCls:ot,type:gt="default",danger:Ve,disabled:Me,loading:Ue,onClick:tt,htmlType:mt,children:Je,className:kt,menu:st,arrow:Tt,autoFocus:nt,overlay:Yt,trigger:ln,align:tn,open:en,onOpenChange:Ht,placement:je,getPopupContainer:xe,href:Xe,icon:_t=dt.createElement(we.Z,null),title:St,buttonsRender:Qe=xt=>xt,mouseEnterDelay:$e,mouseLeaveDelay:Mt,overlayClassName:wn,overlayStyle:cn,destroyPopupOnHide:dn,dropdownRender:nn}=yt,Jt=ft(yt,["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"]),Bt=ht("dropdown",ot),ge=`${Bt}-button`,[ue,se]=(0,_e.Z)(Bt),he={menu:st,arrow:Tt,autoFocus:nt,align:tn,disabled:Me,trigger:Me?[]:ln,onOpenChange:Ht,getPopupContainer:xe||lt,mouseEnterDelay:$e,mouseLeaveDelay:Mt,overlayClassName:wn,overlayStyle:cn,destroyPopupOnHide:dn,dropdownRender:nn},{compactSize:fe,compactItemClassnames:ce}=(0,Ce.ri)(Bt,Vt),Ae=Ne()(ge,ce,kt,se);"overlay"in yt&&(he.overlay=Yt),"open"in yt&&(he.open=en),"placement"in yt?he.placement=je:he.placement=Vt==="rtl"?"bottomLeft":"bottomRight";const rt=dt.createElement(Te.ZP,{type:gt,danger:Ve,disabled:Me,loading:Ue,onClick:tt,htmlType:mt,href:Xe,title:St},Je),Le=dt.createElement(Te.ZP,{type:gt,danger:Ve,icon:_t}),[Ke,Lt]=Qe([rt,Le]);return ue(dt.createElement(be.Z.Compact,Object.assign({className:Ae,size:fe,block:!0},Jt),Ke,dt.createElement(oe.Z,Object.assign({},he),Lt)))};Ie.__ANT_BUTTON=!0;var Ge=Ie;const wt=oe.Z;wt.Button=Ge;var ut=wt},47211:function(mn,un,le){"use strict";le.d(un,{Z:function(){return ft}});var oe=le(17313),Oe=le(13826),Ne=le(92899),dt=le(29878),we=le(19447),Te=le(83116),Fe=le(37613),Ce=Ie=>{const{componentCls:Ge,menuCls:wt,colorError:ut,colorTextLightSolid:yt}=Ie,lt=`${wt}-item`;return{[`${Ge}, ${Ge}-menu-submenu`]:{[`${wt} ${lt}`]:{[`&${lt}-danger:not(${lt}-disabled)`]:{color:ut,"&:hover":{color:yt,backgroundColor:ut}}}}}};const _e=Ie=>{const{componentCls:Ge,menuCls:wt,zIndexPopup:ut,dropdownArrowDistance:yt,sizePopupArrow:lt,antCls:ht,iconCls:Vt,motionDurationMid:ot,dropdownPaddingVertical:gt,fontSize:Ve,dropdownEdgeChildPadding:Me,colorTextDisabled:Ue,fontSizeIcon:tt,controlPaddingHorizontal:mt,colorBgElevated:Je}=Ie;return[{[Ge]:Object.assign(Object.assign({},(0,oe.Wf)(Ie)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ut,display:"block","&::before":{position:"absolute",insetBlock:-yt+lt/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${ht}-btn`]:{[`& > ${Vt}-down, & > ${ht}-btn-icon > ${Vt}-down`]:{fontSize:tt}},[`${Ge}-wrap`]:{position:"relative",[`${ht}-btn > ${Vt}-down`]:{fontSize:tt},[`${Vt}-down::before`]:{transition:`transform ${ot}`}},[`${Ge}-wrap-open`]:{[`${Vt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${ht}-slide-down-enter${ht}-slide-down-enter-active${Ge}-placement-bottomLeft,
|
|
|
&${ht}-slide-down-appear${ht}-slide-down-appear-active${Ge}-placement-bottomLeft,
|
|
|
&${ht}-slide-down-enter${ht}-slide-down-enter-active${Ge}-placement-bottom,
|
|
|
&${ht}-slide-down-appear${ht}-slide-down-appear-active${Ge}-placement-bottom,
|
|
|
&${ht}-slide-down-enter${ht}-slide-down-enter-active${Ge}-placement-bottomRight,
|
|
|
&${ht}-slide-down-appear${ht}-slide-down-appear-active${Ge}-placement-bottomRight`]:{animationName:Oe.fJ},[`&${ht}-slide-up-enter${ht}-slide-up-enter-active${Ge}-placement-topLeft,
|
|
|
&${ht}-slide-up-appear${ht}-slide-up-appear-active${Ge}-placement-topLeft,
|
|
|
&${ht}-slide-up-enter${ht}-slide-up-enter-active${Ge}-placement-top,
|
|
|
&${ht}-slide-up-appear${ht}-slide-up-appear-active${Ge}-placement-top,
|
|
|
&${ht}-slide-up-enter${ht}-slide-up-enter-active${Ge}-placement-topRight,
|
|
|
&${ht}-slide-up-appear${ht}-slide-up-appear-active${Ge}-placement-topRight`]:{animationName:Oe.Qt},[`&${ht}-slide-down-leave${ht}-slide-down-leave-active${Ge}-placement-bottomLeft,
|
|
|
&${ht}-slide-down-leave${ht}-slide-down-leave-active${Ge}-placement-bottom,
|
|
|
&${ht}-slide-down-leave${ht}-slide-down-leave-active${Ge}-placement-bottomRight`]:{animationName:Oe.Uw},[`&${ht}-slide-up-leave${ht}-slide-up-leave-active${Ge}-placement-topLeft,
|
|
|
&${ht}-slide-up-leave${ht}-slide-up-leave-active${Ge}-placement-top,
|
|
|
&${ht}-slide-up-leave${ht}-slide-up-leave-active${Ge}-placement-topRight`]:{animationName:Oe.ly}})},(0,we.ZP)(Ie,{colorBg:Je,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ge} ${wt}`]:{position:"relative",margin:0},[`${wt}-submenu-popup`]:{position:"absolute",zIndex:ut,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ge}, ${Ge}-menu-submenu`]:{[wt]:Object.assign(Object.assign({padding:Me,listStyleType:"none",backgroundColor:Je,backgroundClip:"padding-box",borderRadius:Ie.borderRadiusLG,outline:"none",boxShadow:Ie.boxShadowSecondary},(0,oe.Qy)(Ie)),{[`${wt}-item-group-title`]:{padding:`${gt}px ${mt}px`,color:Ie.colorTextDescription,transition:`all ${ot}`},[`${wt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${wt}-item-icon`]:{minWidth:Ve,marginInlineEnd:Ie.marginXS,fontSize:Ie.fontSizeSM},[`${wt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ot}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${wt}-item, ${wt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${gt}px ${mt}px`,color:Ie.colorText,fontWeight:"normal",fontSize:Ve,lineHeight:Ie.lineHeight,cursor:"pointer",transition:`all ${ot}`,borderRadius:Ie.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ie.controlItemBgHover}},(0,oe.Qy)(Ie)),{"&-selected":{color:Ie.colorPrimary,backgroundColor:Ie.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ie.controlItemBgActiveHover}},"&-disabled":{color:Ue,cursor:"not-allowed","&:hover":{color:Ue,backgroundColor:Je,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ie.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ie.colorSplit},[`${Ge}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ie.paddingXS,[`${Ge}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ie.colorTextDescription,fontSize:tt,fontStyle:"normal"}}}),[`${wt}-item-group-list`]:{margin:`0 ${Ie.marginXS}px`,padding:0,listStyle:"none"},[`${wt}-submenu-title`]:{paddingInlineEnd:mt+Ie.fontSizeSM},[`${wt}-submenu-vertical`]:{position:"relative"},[`${wt}-submenu${wt}-submenu-disabled ${Ge}-menu-submenu-title`]:{[`&, ${Ge}-menu-submenu-arrow-icon`]:{color:Ue,backgroundColor:Je,cursor:"not-allowed"}},[`${wt}-submenu-selected ${Ge}-menu-submenu-title`]:{color:Ie.colorPrimary}})}},[(0,Oe.oN)(Ie,"slide-up"),(0,Oe.oN)(Ie,"slide-down"),(0,Ne.Fm)(Ie,"move-up"),(0,Ne.Fm)(Ie,"move-down"),(0,dt._y)(Ie,"zoom-big")]]};var ft=(0,Te.Z)("Dropdown",(Ie,Ge)=>{let{rootPrefixCls:wt}=Ge;const{marginXXS:ut,sizePopupArrow:yt,controlHeight:lt,fontSize:ht,lineHeight:Vt,paddingXXS:ot,componentCls:gt,borderRadiusLG:Ve}=Ie,Me=(lt-ht*Vt)/2,{dropdownArrowOffset:Ue}=(0,we.fS)({contentRadius:Ve}),tt=(0,Fe.TS)(Ie,{menuCls:`${gt}-menu`,rootPrefixCls:wt,dropdownArrowDistance:yt/2+ut,dropdownArrowOffset:Ue,dropdownPaddingVertical:Me,dropdownEdgeChildPadding:ot});return[_e(tt),Ce(tt)]},Ie=>({zIndexPopup:Ie.zIndexPopupBase+50}))},64165:function(mn,un,le){"use strict";le.d(un,{Z:function(){return ot}});var oe=le(92310),Oe=le.n(oe),Ne=le(59301),dt=le(36355),we=le(9763),Te=le(64993),Fe=le(70305),Ce=()=>{const[,gt]=(0,Fe.Z)(),Me=new Te.C(gt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Ne.createElement("svg",{style:Me,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Ne.createElement("g",{fill:"none",fillRule:"evenodd"},Ne.createElement("g",{transform:"translate(24 31.67)"},Ne.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Ne.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"}),Ne.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)"}),Ne.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"}),Ne.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"})),Ne.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"}),Ne.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Ne.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Ne.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ft=()=>{const[,gt]=(0,Fe.Z)(),{colorFill:Ve,colorFillTertiary:Me,colorFillQuaternary:Ue,colorBgContainer:tt}=gt,{borderColor:mt,shadowColor:Je,contentColor:kt}=(0,Ne.useMemo)(()=>({borderColor:new Te.C(Ve).onBackground(tt).toHexShortString(),shadowColor:new Te.C(Me).onBackground(tt).toHexShortString(),contentColor:new Te.C(Ue).onBackground(tt).toHexShortString()}),[Ve,Me,Ue,tt]);return Ne.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Ne.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Ne.createElement("ellipse",{fill:Je,cx:"32",cy:"33",rx:"32",ry:"7"}),Ne.createElement("g",{fillRule:"nonzero",stroke:mt},Ne.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"}),Ne.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:kt}))))},Ie=le(83116),Ge=le(37613);const wt=gt=>{const{componentCls:Ve,margin:Me,marginXS:Ue,marginXL:tt,fontSize:mt,lineHeight:Je}=gt;return{[Ve]:{marginInline:Ue,fontSize:mt,lineHeight:Je,textAlign:"center",[`${Ve}-image`]:{height:gt.emptyImgHeight,marginBottom:Ue,opacity:gt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ve}-description`]:{color:gt.colorText},[`${Ve}-footer`]:{marginTop:Me},"&-normal":{marginBlock:tt,color:gt.colorTextDisabled,[`${Ve}-description`]:{color:gt.colorTextDisabled},[`${Ve}-image`]:{height:gt.emptyImgHeightMD}},"&-small":{marginBlock:Ue,color:gt.colorTextDisabled,[`${Ve}-image`]:{height:gt.emptyImgHeightSM}}}}};var ut=(0,Ie.Z)("Empty",gt=>{const{componentCls:Ve,controlHeightLG:Me}=gt,Ue=(0,Ge.TS)(gt,{emptyImgCls:`${Ve}-img`,emptyImgHeight:Me*2.5,emptyImgHeightMD:Me,emptyImgHeightSM:Me*.875});return[wt(Ue)]}),yt=function(gt,Ve){var Me={};for(var Ue in gt)Object.prototype.hasOwnProperty.call(gt,Ue)&&Ve.indexOf(Ue)<0&&(Me[Ue]=gt[Ue]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ue=Object.getOwnPropertySymbols(gt);tt<Ue.length;tt++)Ve.indexOf(Ue[tt])<0&&Object.prototype.propertyIsEnumerable.call(gt,Ue[tt])&&(Me[Ue[tt]]=gt[Ue[tt]]);return Me};const lt=Ne.createElement(Ce,null),ht=Ne.createElement(ft,null),Vt=gt=>{var{className:Ve,rootClassName:Me,prefixCls:Ue,image:tt=lt,description:mt,children:Je,imageStyle:kt,style:st}=gt,Tt=yt(gt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:nt,direction:Yt,empty:ln}=Ne.useContext(dt.E_),tn=nt("empty",Ue),[en,Ht]=ut(tn),[je]=(0,we.Z)("Empty"),xe=typeof mt!="undefined"?mt:je==null?void 0:je.description,Xe=typeof xe=="string"?xe:"empty";let _t=null;return typeof tt=="string"?_t=Ne.createElement("img",{alt:Xe,src:tt}):_t=tt,en(Ne.createElement("div",Object.assign({className:Oe()(Ht,tn,ln==null?void 0:ln.className,{[`${tn}-normal`]:tt===ht,[`${tn}-rtl`]:Yt==="rtl"},Ve,Me),style:Object.assign(Object.assign({},ln==null?void 0:ln.style),st)},Tt),Ne.createElement("div",{className:`${tn}-image`,style:kt},_t),xe&&Ne.createElement("div",{className:`${tn}-description`},xe),Je&&Ne.createElement("div",{className:`${tn}-footer`},Je)))};Vt.PRESENTED_IMAGE_DEFAULT=lt,Vt.PRESENTED_IMAGE_SIMPLE=ht;var ot=Vt},78241:function(mn,un,le){"use strict";le.d(un,{default:function(){return Tr}});var oe=le(77654),Oe=le(92310),Ne=le.n(Oe),dt=le(77900),we=le(59301),Te=le(62892),Fe=le(32441);function be(bt){const[ke,ze]=we.useState(bt);return we.useEffect(()=>{const Re=setTimeout(()=>{ze(bt)},bt.length?0:10);return()=>{clearTimeout(Re)}},[bt]),ke}var Ce=le(17313),_e=le(29878),ft=le(8378),Ie=le(37613),Ge=le(83116),ut=bt=>{const{componentCls:ke}=bt,ze=`${ke}-show-help`,Re=`${ke}-show-help-item`;return{[ze]:{transition:`opacity ${bt.motionDurationSlow} ${bt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Re]:{overflow:"hidden",transition:`height ${bt.motionDurationSlow} ${bt.motionEaseInOut},
|
|
|
opacity ${bt.motionDurationSlow} ${bt.motionEaseInOut},
|
|
|
transform ${bt.motionDurationSlow} ${bt.motionEaseInOut} !important`,[`&${Re}-appear, &${Re}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Re}-leave-active`]:{transform:"translateY(-5px)"}}}}};const yt=bt=>({legend:{display:"block",width:"100%",marginBottom:bt.marginLG,padding:0,color:bt.colorTextDescription,fontSize:bt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${bt.lineWidth}px ${bt.lineType} ${bt.colorBorder}`},label:{fontSize:bt.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 ${bt.controlOutlineWidth}px ${bt.controlOutline}`},output:{display:"block",paddingTop:15,color:bt.colorText,fontSize:bt.fontSize,lineHeight:bt.lineHeight}}),lt=(bt,ke)=>{const{formItemCls:ze}=bt;return{[ze]:{[`${ze}-label > label`]:{height:ke},[`${ze}-control-input`]:{minHeight:ke}}}},ht=bt=>{const{componentCls:ke}=bt;return{[bt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ce.Wf)(bt)),yt(bt)),{[`${ke}-text`]:{display:"inline-block",paddingInlineEnd:bt.paddingSM},"&-small":Object.assign({},lt(bt,bt.controlHeightSM)),"&-large":Object.assign({},lt(bt,bt.controlHeightLG))})}},Vt=bt=>{const{formItemCls:ke,iconCls:ze,componentCls:Re,rootPrefixCls:Pe,labelRequiredMarkColor:it,labelColor:vt,labelFontSize:Ut,labelHeight:Ft,labelColonMarginInlineStart:on,labelColonMarginInlineEnd:Cn,itemMarginBottom:Bn}=bt;return{[ke]:Object.assign(Object.assign({},(0,Ce.Wf)(bt)),{marginBottom:Bn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Pe}-row`]:{display:"none"},"&-has-warning":{[`${ke}-split`]:{color:bt.colorError}},"&-has-error":{[`${ke}-split`]:{color:bt.colorWarning}},[`${ke}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${bt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Ft,color:vt,fontSize:Ut,[`> ${ze}`]:{fontSize:bt.fontSize,verticalAlign:"top"},[`&${ke}-required:not(${ke}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:bt.marginXXS,color:it,fontSize:bt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Re}-hide-required-mark &`]:{display:"none"}},[`${ke}-optional`]:{display:"inline-block",marginInlineStart:bt.marginXXS,color:bt.colorTextDescription,[`${Re}-hide-required-mark &`]:{display:"none"}},[`${ke}-tooltip`]:{color:bt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:bt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:on,marginInlineEnd:Cn},[`&${ke}-no-colon::after`]:{content:'"\\a0"'}}},[`${ke}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Pe}-col-'"]):not([class*="' ${Pe}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:bt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ke]:{"&-explain, &-extra":{clear:"both",color:bt.colorTextDescription,fontSize:bt.fontSize,lineHeight:bt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:bt.controlHeightSM,transition:`color ${bt.motionDurationMid} ${bt.motionEaseOut}`},"&-explain":{"&-error":{color:bt.colorError},"&-warning":{color:bt.colorWarning}}},[`&-with-help ${ke}-explain`]:{height:"auto",opacity:1},[`${ke}-feedback-icon`]:{fontSize:bt.fontSize,textAlign:"center",visibility:"visible",animationName:_e.kr,animationDuration:bt.motionDurationMid,animationTimingFunction:bt.motionEaseOutBack,pointerEvents:"none","&-success":{color:bt.colorSuccess},"&-error":{color:bt.colorError},"&-warning":{color:bt.colorWarning},"&-validating":{color:bt.colorPrimary}}})}},ot=bt=>{const{componentCls:ke,formItemCls:ze}=bt;return{[`${ke}-horizontal`]:{[`${ze}-label`]:{flexGrow:0},[`${ze}-control`]:{flex:"1 1 0",minWidth:0},[`${ze}-label[class$='-24'], ${ze}-label[class*='-24 ']`]:{[`& + ${ze}-control`]:{minWidth:"unset"}}}}},gt=bt=>{const{componentCls:ke,formItemCls:ze}=bt;return{[`${ke}-inline`]:{display:"flex",flexWrap:"wrap",[ze]:{flex:"none",marginInlineEnd:bt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${ze}-label,
|
|
|
> ${ze}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${ze}-label`]:{flex:"none"},[`${ke}-text`]:{display:"inline-block"},[`${ze}-has-feedback`]:{display:"inline-block"}}}}},Ve=bt=>({padding:bt.verticalLabelPadding,margin:bt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Me=bt=>{const{componentCls:ke,formItemCls:ze,rootPrefixCls:Re}=bt;return{[`${ze} ${ze}-label`]:Ve(bt),[ke]:{[ze]:{flexWrap:"wrap",[`${ze}-label, ${ze}-control`]:{[`&:not([class*=" ${Re}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ue=bt=>{const{componentCls:ke,formItemCls:ze,rootPrefixCls:Re}=bt;return{[`${ke}-vertical`]:{[ze]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${ke}-item-control`]:{width:"100%"}}},[`${ke}-vertical ${ze}-label,
|
|
|
.${Re}-col-24${ze}-label,
|
|
|
.${Re}-col-xl-24${ze}-label`]:Ve(bt),[`@media (max-width: ${bt.screenXSMax}px)`]:[Me(bt),{[ke]:{[`.${Re}-col-xs-24${ze}-label`]:Ve(bt)}}],[`@media (max-width: ${bt.screenSMMax}px)`]:{[ke]:{[`.${Re}-col-sm-24${ze}-label`]:Ve(bt)}},[`@media (max-width: ${bt.screenMDMax}px)`]:{[ke]:{[`.${Re}-col-md-24${ze}-label`]:Ve(bt)}},[`@media (max-width: ${bt.screenLGMax}px)`]:{[ke]:{[`.${Re}-col-lg-24${ze}-label`]:Ve(bt)}}}},tt=(bt,ke)=>(0,Ie.TS)(bt,{formItemCls:`${bt.componentCls}-item`,rootPrefixCls:ke});var mt=(0,Ge.Z)("Form",(bt,ke)=>{let{rootPrefixCls:ze}=ke;const Re=tt(bt,ze);return[ht(Re),Vt(Re),ut(Re),ot(Re),gt(Re),Ue(Re),(0,ft.Z)(Re),_e.kr]},bt=>({labelRequiredMarkColor:bt.colorError,labelColor:bt.colorTextHeading,labelFontSize:bt.fontSize,labelHeight:bt.controlHeight,labelColonMarginInlineStart:bt.marginXXS/2,labelColonMarginInlineEnd:bt.marginXS,itemMarginBottom:bt.marginLG,verticalLabelPadding:`0 0 ${bt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Je=[];function kt(bt,ke,ze){let Re=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof bt=="string"?bt:`${ke}-${Re}`,error:bt,errorStatus:ze}}var Tt=bt=>{let{help:ke,helpStatus:ze,errors:Re=Je,warnings:Pe=Je,className:it,fieldId:vt,onVisibleChanged:Ut}=bt;const{prefixCls:Ft}=we.useContext(Fe.Rk),on=`${Ft}-item-explain`,[,Cn]=mt(Ft),Bn=(0,we.useMemo)(()=>(0,Te.Z)(Ft),[Ft]),An=be(Re),Wt=be(Pe),bn=we.useMemo(()=>ke!=null?[kt(ke,"help",ze)]:[].concat((0,oe.Z)(An.map((It,Kt)=>kt(It,"error","error",Kt))),(0,oe.Z)(Wt.map((It,Kt)=>kt(It,"warning","warning",Kt)))),[ke,ze,An,Wt]),pt={};return vt&&(pt.id=`${vt}_help`),we.createElement(dt.default,{motionDeadline:Bn.motionDeadline,motionName:`${Ft}-show-help`,visible:!!bn.length,onVisibleChanged:Ut},It=>{const{className:Kt,style:Nt}=It;return we.createElement("div",Object.assign({},pt,{className:Ne()(on,Kt,it,Cn),style:Nt,role:"alert"}),we.createElement(dt.CSSMotionList,Object.assign({keys:bn},(0,Te.Z)(Ft),{motionName:`${Ft}-show-help-item`,component:!1}),gn=>{const{key:Zt,error:pn,errorStatus:He,className:At,style:Dt}=gn;return we.createElement("div",{key:Zt,className:Ne()(At,{[`${on}-${He}`]:He}),style:Dt},pn)}))})},nt=le(95013),Yt=le(36355),ln=le(1684),tn=le(52946),en=le(19716),Ht=le(16722);const je=["parentNode"],xe="form_item";function Xe(bt){return bt===void 0||bt===!1?[]:Array.isArray(bt)?bt:[bt]}function _t(bt,ke){if(!bt.length)return;const ze=bt.join("_");return ke?`${ke}_${ze}`:je.includes(ze)?`${xe}_${ze}`:ze}function St(bt,ke,ze,Re,Pe,it){let vt=Re;return it!==void 0?vt=it:ze.validating?vt="validating":bt.length?vt="error":ke.length?vt="warning":(ze.touched||Pe&&ze.validated)&&(vt="success"),vt}function Qe(bt){return Xe(bt).join("_")}function $e(bt){const[ke]=(0,nt.useForm)(),ze=we.useRef({}),Re=we.useMemo(()=>bt!=null?bt:Object.assign(Object.assign({},ke),{__INTERNAL__:{itemRef:Pe=>it=>{const vt=Qe(Pe);it?ze.current[vt]=it:delete ze.current[vt]}},scrollToField:function(Pe){let it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const vt=Xe(Pe),Ut=_t(vt,Re.__INTERNAL__.name),Ft=Ut?document.getElementById(Ut):null;Ft&&(0,Ht.Z)(Ft,Object.assign({scrollMode:"if-needed",block:"nearest"},it))},getFieldInstance:Pe=>{const it=Qe(Pe);return ze.current[it]}}),[bt,ke]);return[Re]}var Mt=le(28726),wn=function(bt,ke){var ze={};for(var Re in bt)Object.prototype.hasOwnProperty.call(bt,Re)&&ke.indexOf(Re)<0&&(ze[Re]=bt[Re]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Re=Object.getOwnPropertySymbols(bt);Pe<Re.length;Pe++)ke.indexOf(Re[Pe])<0&&Object.prototype.propertyIsEnumerable.call(bt,Re[Pe])&&(ze[Re[Pe]]=bt[Re[Pe]]);return ze};const cn=(bt,ke)=>{const ze=we.useContext(ln.Z),{getPrefixCls:Re,direction:Pe,form:it}=we.useContext(Yt.E_),{prefixCls:vt,className:Ut,rootClassName:Ft,size:on,disabled:Cn=ze,form:Bn,colon:An,labelAlign:Wt,labelWrap:bn,labelCol:pt,wrapperCol:It,hideRequiredMark:Kt,layout:Nt="horizontal",scrollToFirstError:gn,requiredMark:Zt,onFinishFailed:pn,name:He,style:At,feedbackIcons:Dt}=bt,Qt=wn(bt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),jt=(0,en.Z)(on),qt=we.useContext(Mt.Z),$t=(0,we.useMemo)(()=>Zt!==void 0?Zt:it&&it.requiredMark!==void 0?it.requiredMark:!Kt,[Kt,Zt,it]),En=An!=null?An:it==null?void 0:it.colon,In=Re("form",vt),[zn,er]=mt(In),mr=Ne()(In,`${In}-${Nt}`,{[`${In}-hide-required-mark`]:$t===!1,[`${In}-rtl`]:Pe==="rtl",[`${In}-${jt}`]:jt},er,it==null?void 0:it.className,Ut,Ft),[wr]=$e(Bn),{__INTERNAL__:cr}=wr;cr.name=He;const Zn=(0,we.useMemo)(()=>({name:He,labelAlign:Wt,labelCol:pt,labelWrap:bn,wrapperCol:It,vertical:Nt==="vertical",colon:En,requiredMark:$t,itemRef:cr.itemRef,form:wr,feedbackIcons:Dt}),[He,Wt,pt,It,Nt,En,$t,wr,Dt]);we.useImperativeHandle(ke,()=>wr);const Ar=(Or,ur)=>{if(Or){let or={block:"nearest"};typeof Or=="object"&&(or=Or),wr.scrollToField(ur,or)}},pr=Or=>{if(pn==null||pn(Or),Or.errorFields.length){const ur=Or.errorFields[0].name;if(gn!==void 0){Ar(gn,ur);return}it&&it.scrollToFirstError!==void 0&&Ar(it.scrollToFirstError,ur)}};return zn(we.createElement(ln.n,{disabled:Cn},we.createElement(tn.q,{size:jt},we.createElement(Fe.RV,Object.assign({},{validateMessages:qt}),we.createElement(Fe.q3.Provider,{value:Zn},we.createElement(nt.default,Object.assign({id:He},Qt,{name:He,onFinishFailed:pr,form:wr,style:Object.assign(Object.assign({},it==null?void 0:it.style),At),className:mr})))))))};var nn=we.forwardRef(cn),Jt=le(41799),Bt=le(8654),ge=le(92343),ue=le(11592);function se(bt){if(typeof bt=="function")return bt;const ke=(0,ue.Z)(bt);return ke.length<=1?ke[0]:ke}const he=()=>{const{status:bt,errors:ke=[],warnings:ze=[]}=(0,we.useContext)(Fe.aM);return{status:bt,errors:ke,warnings:ze}};he.Context=Fe.aM;var fe=he,ce=le(16089);function Ae(bt){const[ke,ze]=we.useState(bt),Re=(0,we.useRef)(null),Pe=(0,we.useRef)([]),it=(0,we.useRef)(!1);we.useEffect(()=>(it.current=!1,()=>{it.current=!0,ce.Z.cancel(Re.current),Re.current=null}),[]);function vt(Ut){it.current||(Re.current===null&&(Pe.current=[],Re.current=(0,ce.Z)(()=>{Re.current=null,ze(Ft=>{let on=Ft;return Pe.current.forEach(Cn=>{on=Cn(on)}),on})})),Pe.current.push(Ut))}return[ke,vt]}function rt(){const{itemRef:bt}=we.useContext(Fe.q3),ke=we.useRef({});function ze(Re,Pe){const it=Pe&&typeof Pe=="object"&&Pe.ref,vt=Re.join("_");return(ke.current.name!==vt||ke.current.originRef!==it)&&(ke.current.name=vt,ke.current.originRef=it,ke.current.ref=(0,Bt.sQ)(bt(Re),it)),ke.current.ref}return ze}var Le=le(29194),Ke=le(34280),Lt=le(2738),xt=le(27382),Ye=le(37028);const Pt=bt=>{const{formItemCls:ke}=bt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ke}-control`]:{display:"flex"}}}};var hn=(0,Ge.b)(["Form","item-item"],(bt,ke)=>{let{rootPrefixCls:ze}=ke;const Re=tt(bt,ze);return[Pt(Re)]}),Xt=bt=>{const{prefixCls:ke,status:ze,wrapperCol:Re,children:Pe,errors:it,warnings:vt,_internalItemRender:Ut,extra:Ft,help:on,fieldId:Cn,marginBottom:Bn,onErrorVisibleChanged:An}=bt,Wt=`${ke}-item`,bn=we.useContext(Fe.q3),pt=Re||bn.wrapperCol||{},It=Ne()(`${Wt}-control`,pt.className),Kt=we.useMemo(()=>Object.assign({},bn),[bn]);delete Kt.labelCol,delete Kt.wrapperCol;const Nt=we.createElement("div",{className:`${Wt}-control-input`},we.createElement("div",{className:`${Wt}-control-input-content`},Pe)),gn=we.useMemo(()=>({prefixCls:ke,status:ze}),[ke,ze]),Zt=Bn!==null||it.length||vt.length?we.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},we.createElement(Fe.Rk.Provider,{value:gn},we.createElement(Tt,{fieldId:Cn,errors:it,warnings:vt,help:on,helpStatus:ze,className:`${Wt}-explain-connected`,onVisibleChanged:An})),!!Bn&&we.createElement("div",{style:{width:0,height:Bn}})):null,pn={};Cn&&(pn.id=`${Cn}_extra`);const He=Ft?we.createElement("div",Object.assign({},pn,{className:`${Wt}-extra`}),Ft):null,At=Ut&&Ut.mark==="pro_table_render"&&Ut.render?Ut.render(bt,{input:Nt,errorList:Zt,extra:He}):we.createElement(we.Fragment,null,Nt,Zt,He);return we.createElement(Fe.q3.Provider,{value:Kt},we.createElement(Ye.Z,Object.assign({},pt,{className:It}),At),we.createElement(hn,{prefixCls:ke}))},fn=le(61485),et=le(31724),De=le(9763),qe=le(6848),Ot=function(bt,ke){var ze={};for(var Re in bt)Object.prototype.hasOwnProperty.call(bt,Re)&&ke.indexOf(Re)<0&&(ze[Re]=bt[Re]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Re=Object.getOwnPropertySymbols(bt);Pe<Re.length;Pe++)ke.indexOf(Re[Pe])<0&&Object.prototype.propertyIsEnumerable.call(bt,Re[Pe])&&(ze[Re[Pe]]=bt[Re[Pe]]);return ze};function Gt(bt){return bt?typeof bt=="object"&&!we.isValidElement(bt)?bt:{title:bt}:null}var Mn=bt=>{let{prefixCls:ke,label:ze,htmlFor:Re,labelCol:Pe,labelAlign:it,colon:vt,required:Ut,requiredMark:Ft,tooltip:on}=bt;var Cn;const[Bn]=(0,De.Z)("Form"),{vertical:An,labelAlign:Wt,labelCol:bn,labelWrap:pt,colon:It}=we.useContext(Fe.q3);if(!ze)return null;const Kt=Pe||bn||{},Nt=it||Wt,gn=`${ke}-item-label`,Zt=Ne()(gn,Nt==="left"&&`${gn}-left`,Kt.className,{[`${gn}-wrap`]:!!pt});let pn=ze;const He=vt===!0||It!==!1&&vt!==!1;He&&!An&&typeof ze=="string"&&ze.trim()!==""&&(pn=ze.replace(/[:|:]\s*$/,""));const Dt=Gt(on);if(Dt){const{icon:$t=we.createElement(fn.Z,null)}=Dt,En=Ot(Dt,["icon"]),In=we.createElement(qe.Z,Object.assign({},En),we.cloneElement($t,{className:`${ke}-item-tooltip`,title:""}));pn=we.createElement(we.Fragment,null,pn,In)}const Qt=Ft==="optional",jt=typeof Ft=="function";jt?pn=Ft(pn,{required:!!Ut}):Qt&&!Ut&&(pn=we.createElement(we.Fragment,null,pn,we.createElement("span",{className:`${ke}-item-optional`,title:""},(Bn==null?void 0:Bn.optional)||((Cn=et.Z.Form)===null||Cn===void 0?void 0:Cn.optional))));const qt=Ne()({[`${ke}-item-required`]:Ut,[`${ke}-item-required-mark-optional`]:Qt||jt,[`${ke}-item-no-colon`]:!He});return we.createElement(Ye.Z,Object.assign({},Kt,{className:Zt}),we.createElement("label",{htmlFor:Re,className:qt,title:typeof ze=="string"?ze:""},pn))},Dn=le(29679),Ln=le(19248),Un=le(96512),Wn=le(58617);const On={success:Dn.Z,warning:Un.Z,error:Ln.Z,validating:Wn.Z};function Hn(bt){let{children:ke,errors:ze,warnings:Re,hasFeedback:Pe,validateStatus:it,prefixCls:vt,meta:Ut,noStyle:Ft}=bt;const on=`${vt}-item`,{feedbackIcons:Cn}=we.useContext(Fe.q3),Bn=St(ze,Re,Ut,null,!!Pe,it),{isFormItemInput:An,status:Wt}=we.useContext(Fe.aM),bn=we.useMemo(()=>{var pt;let It;if(Pe){const gn=Pe!==!0&&Pe.icons||Cn,Zt=Bn&&((pt=gn==null?void 0:gn({status:Bn,errors:ze,warnings:Re}))===null||pt===void 0?void 0:pt[Bn]),pn=Bn&&On[Bn];It=Zt!==!1&&pn?we.createElement("span",{className:Ne()(`${on}-feedback-icon`,`${on}-feedback-icon-${Bn}`)},Zt||we.createElement(pn,null)):null}let Kt=!0,Nt=Bn||"";return Ft&&(Kt=An,Nt=(Bn!=null?Bn:Wt)||""),{status:Nt,errors:ze,warnings:Re,hasFeedback:!!Pe,feedbackIcon:It,isFormItemInput:Kt}},[Bn,Pe,Ft,An,Wt]);return we.createElement(Fe.aM.Provider,{value:bn},ke)}var Dr=function(bt,ke){var ze={};for(var Re in bt)Object.prototype.hasOwnProperty.call(bt,Re)&&ke.indexOf(Re)<0&&(ze[Re]=bt[Re]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Re=Object.getOwnPropertySymbols(bt);Pe<Re.length;Pe++)ke.indexOf(Re[Pe])<0&&Object.prototype.propertyIsEnumerable.call(bt,Re[Pe])&&(ze[Re[Pe]]=bt[Re[Pe]]);return ze};function Pr(bt){const{prefixCls:ke,className:ze,rootClassName:Re,style:Pe,help:it,errors:vt,warnings:Ut,validateStatus:Ft,meta:on,hasFeedback:Cn,hidden:Bn,children:An,fieldId:Wt,required:bn,isRequired:pt,onSubItemMetaChange:It}=bt,Kt=Dr(bt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Nt=`${ke}-item`,{requiredMark:gn}=we.useContext(Fe.q3),Zt=we.useRef(null),pn=be(vt),He=be(Ut),At=it!=null,Dt=!!(At||vt.length||Ut.length),Qt=!!Zt.current&&(0,Le.Z)(Zt.current),[jt,qt]=we.useState(null);(0,Ke.Z)(()=>{if(Dt&&Zt.current){const er=getComputedStyle(Zt.current);qt(parseInt(er.marginBottom,10))}},[Dt,Qt]);const $t=er=>{er||qt(null)},In=function(){let er=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const mr=er?pn:on.errors,wr=er?He:on.warnings;return St(mr,wr,on,"",!!Cn,Ft)}(),zn=Ne()(Nt,ze,Re,{[`${Nt}-with-help`]:At||pn.length||He.length,[`${Nt}-has-feedback`]:In&&Cn,[`${Nt}-has-success`]:In==="success",[`${Nt}-has-warning`]:In==="warning",[`${Nt}-has-error`]:In==="error",[`${Nt}-is-validating`]:In==="validating",[`${Nt}-hidden`]:Bn});return we.createElement("div",{className:zn,style:Pe,ref:Zt},we.createElement(xt.Z,Object.assign({className:`${Nt}-row`},(0,Lt.Z)(Kt,["_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"])),we.createElement(Mn,Object.assign({htmlFor:Wt},bt,{requiredMark:gn,required:bn!=null?bn:pt,prefixCls:ke})),we.createElement(Xt,Object.assign({},bt,on,{errors:pn,warnings:He,prefixCls:ke,status:In,help:it,marginBottom:jt,onErrorVisibleChanged:$t}),we.createElement(Fe.qI.Provider,{value:It},we.createElement(Hn,{prefixCls:ke,meta:on,errors:on.errors,warnings:on.warnings,hasFeedback:Cn,validateStatus:In},An)))),!!jt&&we.createElement("div",{className:`${Nt}-margin-offset`,style:{marginBottom:-jt}}))}const fr="__SPLIT__",Jn=null,Fr=we.memo(bt=>{let{children:ke}=bt;return ke},(bt,ke)=>bt.value===ke.value&&bt.update===ke.update&&bt.childProps.length===ke.childProps.length&&bt.childProps.every((ze,Re)=>ze===ke.childProps[Re]));function Tn(bt){return bt!=null}function Ir(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Yr(bt){const{name:ke,noStyle:ze,className:Re,dependencies:Pe,prefixCls:it,shouldUpdate:vt,rules:Ut,children:Ft,required:on,label:Cn,messageVariables:Bn,trigger:An="onChange",validateTrigger:Wt,hidden:bn,help:pt}=bt,{getPrefixCls:It}=we.useContext(Yt.E_),{name:Kt}=we.useContext(Fe.q3),Nt=se(Ft),gn=typeof Nt=="function",Zt=we.useContext(Fe.qI),{validateTrigger:pn}=we.useContext(nt.FieldContext),He=Wt!==void 0?Wt:pn,At=Tn(ke),Dt=It("form",it),[Qt,jt]=mt(Dt),qt=we.useContext(nt.ListContext),$t=we.useRef(),[En,In]=Ae({}),[zn,er]=(0,Jt.Z)(()=>Ir()),mr=ur=>{const or=qt==null?void 0:qt.getKey(ur.name);if(er(ur.destroy?Ir():ur,!0),ze&&pt!==!1&&Zt){let _r=ur.name;if(ur.destroy)_r=$t.current||_r;else if(or!==void 0){const[Sr,Jr]=or;_r=[Sr].concat((0,oe.Z)(Jr)),$t.current=_r}Zt(ur,_r)}},wr=(ur,or)=>{In(_r=>{const Sr=Object.assign({},_r),si=[].concat((0,oe.Z)(ur.name.slice(0,-1)),(0,oe.Z)(or)).join(fr);return ur.destroy?delete Sr[si]:Sr[si]=ur,Sr})},[cr,Zn]=we.useMemo(()=>{const ur=(0,oe.Z)(zn.errors),or=(0,oe.Z)(zn.warnings);return Object.values(En).forEach(_r=>{ur.push.apply(ur,(0,oe.Z)(_r.errors||[])),or.push.apply(or,(0,oe.Z)(_r.warnings||[]))}),[ur,or]},[En,zn.errors,zn.warnings]),Ar=rt();function pr(ur,or,_r){return ze&&!bn?we.createElement(Hn,{prefixCls:Dt,hasFeedback:bt.hasFeedback,validateStatus:bt.validateStatus,meta:zn,errors:cr,warnings:Zn,noStyle:!0},ur):we.createElement(Pr,Object.assign({key:"row"},bt,{className:Ne()(Re,jt),prefixCls:Dt,fieldId:or,isRequired:_r,errors:cr,warnings:Zn,meta:zn,onSubItemMetaChange:wr}),ur)}if(!At&&!gn&&!Pe)return Qt(pr(Nt));let Or={};return typeof Cn=="string"?Or.label=Cn:ke&&(Or.label=String(ke)),Bn&&(Or=Object.assign(Object.assign({},Or),Bn)),Qt(we.createElement(nt.Field,Object.assign({},bt,{messageVariables:Or,trigger:An,validateTrigger:He,onMetaChange:mr}),(ur,or,_r)=>{const Sr=Xe(ke).length&&or?or.name:[],Jr=_t(Sr,Kt),si=on!==void 0?on:!!(Ut&&Ut.some(Rn=>{if(Rn&&typeof Rn=="object"&&Rn.required&&!Rn.warningOnly)return!0;if(typeof Rn=="function"){const kr=Rn(_r);return kr&&kr.required&&!kr.warningOnly}return!1})),br=Object.assign({},ur);let Nn=null;if(Array.isArray(Nt)&&At)Nn=Nt;else if(!(gn&&(!(vt||Pe)||At))){if(!(Pe&&!gn&&!At))if((0,ge.l$)(Nt)){const Rn=Object.assign(Object.assign({},Nt.props),br);if(Rn.id||(Rn.id=Jr),pt||cr.length>0||Zn.length>0||bt.extra){const Hr=[];(pt||cr.length>0)&&Hr.push(`${Jr}_help`),bt.extra&&Hr.push(`${Jr}_extra`),Rn["aria-describedby"]=Hr.join(" ")}cr.length>0&&(Rn["aria-invalid"]="true"),si&&(Rn["aria-required"]="true"),(0,Bt.Yr)(Nt)&&(Rn.ref=Ar(Sr,Nt)),new Set([].concat((0,oe.Z)(Xe(An)),(0,oe.Z)(Xe(He)))).forEach(Hr=>{Rn[Hr]=function(){for(var jr,Gr,Cr,Kr,yi,ir=arguments.length,hr=new Array(ir),Vr=0;Vr<ir;Vr++)hr[Vr]=arguments[Vr];(Cr=br[Hr])===null||Cr===void 0||(jr=Cr).call.apply(jr,[br].concat(hr)),(yi=(Kr=Nt.props)[Hr])===null||yi===void 0||(Gr=yi).call.apply(Gr,[Kr].concat(hr))}});const yr=[Rn["aria-required"],Rn["aria-invalid"],Rn["aria-describedby"]];Nn=we.createElement(Fr,{value:br[bt.valuePropName||"value"],update:Nt,childProps:yr},(0,ge.Tm)(Nt,Rn))}else gn&&(vt||Pe)&&!At?Nn=Nt(_r):Nn=Nt}return pr(Nn,Jr,si)}))}const nr=Yr;nr.useStatus=fe;var $r=nr,Qr=function(bt,ke){var ze={};for(var Re in bt)Object.prototype.hasOwnProperty.call(bt,Re)&&ke.indexOf(Re)<0&&(ze[Re]=bt[Re]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Re=Object.getOwnPropertySymbols(bt);Pe<Re.length;Pe++)ke.indexOf(Re[Pe])<0&&Object.prototype.propertyIsEnumerable.call(bt,Re[Pe])&&(ze[Re[Pe]]=bt[Re[Pe]]);return ze},Xn=bt=>{var{prefixCls:ke,children:ze}=bt,Re=Qr(bt,["prefixCls","children"]);const{getPrefixCls:Pe}=we.useContext(Yt.E_),it=Pe("form",ke),vt=we.useMemo(()=>({prefixCls:it,status:"error"}),[it]);return we.createElement(nt.List,Object.assign({},Re),(Ut,Ft,on)=>we.createElement(Fe.Rk.Provider,{value:vt},ze(Ut.map(Cn=>Object.assign(Object.assign({},Cn),{fieldKey:Cn.key})),Ft,{errors:on.errors,warnings:on.warnings})))};function Kn(){const{form:bt}=(0,we.useContext)(Fe.q3);return bt}const Gn=nn;Gn.Item=$r,Gn.List=Xn,Gn.ErrorList=Tt,Gn.useForm=$e,Gn.useFormInstance=Kn,Gn.useWatch=nt.useWatch,Gn.Provider=Fe.RV,Gn.create=()=>{};var Tr=Gn},8628:function(mn,un,le){"use strict";var oe=le(59301),Oe=le(34280),Ne=le(56762),dt=le(69507);function we(){let Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Fe=(0,oe.useRef)({}),be=(0,Ne.Z)(),Ce=(0,dt.ZP)();return(0,Oe.Z)(()=>{const _e=Ce.subscribe(ft=>{Fe.current=ft,Te&&be()});return()=>Ce.unsubscribe(_e)},[]),Fe.current}un.Z=we},5871:function(mn,un,le){"use strict";le.d(un,{Z:function(){return fn}});var oe=le(84105),Oe=le(87395),Ne=le(92310),dt=le.n(Ne),we=le(60499),Te=le(18642),Fe=le(43749),be=le(72190),Ce=le(42244),_e=le(38705),ft=le(17212);function Ie(){return typeof BigInt=="function"}function Ge(et){return!et&&et!==0&&!Number.isNaN(et)||!String(et).trim()}function wt(et){var De=et.trim(),qe=De.startsWith("-");qe&&(De=De.slice(1)),De=De.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),De.startsWith(".")&&(De="0".concat(De));var Ot=De||"0",Gt=Ot.split("."),an=Gt[0]||"0",Mn=Gt[1]||"0";an==="0"&&Mn==="0"&&(qe=!1);var Dn=qe?"-":"";return{negative:qe,negativeStr:Dn,trimStr:Ot,integerStr:an,decimalStr:Mn,fullStr:"".concat(Dn).concat(Ot)}}function ut(et){var De=String(et);return!Number.isNaN(Number(De))&&De.includes("e")}function yt(et){var De=String(et);if(ut(et)){var qe=Number(De.slice(De.indexOf("e-")+2)),Ot=De.match(/\.(\d+)/);return Ot!=null&&Ot[1]&&(qe+=Ot[1].length),qe}return De.includes(".")&&ht(De)?De.length-De.indexOf(".")-1:0}function lt(et){var De=String(et);if(ut(et)){if(et>Number.MAX_SAFE_INTEGER)return String(Ie()?BigInt(et).toString():Number.MAX_SAFE_INTEGER);if(et<Number.MIN_SAFE_INTEGER)return String(Ie()?BigInt(et).toString():Number.MIN_SAFE_INTEGER);De=et.toFixed(yt(De))}return wt(De).fullStr}function ht(et){return typeof et=="number"?!Number.isNaN(et):et?/^\s*-?\d+(\.\d+)?\s*$/.test(et)||/^\s*-?\d+\.\s*$/.test(et)||/^\s*-?\.\d+\s*$/.test(et):!1}var Vt=function(){function et(De){if((0,_e.Z)(this,et),(0,Te.Z)(this,"origin",""),(0,Te.Z)(this,"negative",void 0),(0,Te.Z)(this,"integer",void 0),(0,Te.Z)(this,"decimal",void 0),(0,Te.Z)(this,"decimalLen",void 0),(0,Te.Z)(this,"empty",void 0),(0,Te.Z)(this,"nan",void 0),Ge(De)){this.empty=!0;return}if(this.origin=String(De),De==="-"||Number.isNaN(De)){this.nan=!0;return}var qe=De;if(ut(qe)&&(qe=Number(qe)),qe=typeof qe=="string"?qe:lt(qe),ht(qe)){var Ot=wt(qe);this.negative=Ot.negative;var Gt=Ot.trimStr.split(".");this.integer=BigInt(Gt[0]);var an=Gt[1]||"0";this.decimal=BigInt(an),this.decimalLen=an.length}else this.nan=!0}return(0,ft.Z)(et,[{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(qe){var Ot="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(qe,"0"));return BigInt(Ot)}},{key:"negate",value:function(){var qe=new et(this.toString());return qe.negative=!qe.negative,qe}},{key:"cal",value:function(qe,Ot,Gt){var an=Math.max(this.getDecimalStr().length,qe.getDecimalStr().length),Mn=this.alignDecimal(an),Dn=qe.alignDecimal(an),Ln=Ot(Mn,Dn).toString(),Un=Gt(an),Wn=wt(Ln),On=Wn.negativeStr,Hn=Wn.trimStr,Dr="".concat(On).concat(Hn.padStart(Un+1,"0"));return new et("".concat(Dr.slice(0,-Un),".").concat(Dr.slice(-Un)))}},{key:"add",value:function(qe){if(this.isInvalidate())return new et(qe);var Ot=new et(qe);return Ot.isInvalidate()?this:this.cal(Ot,function(Gt,an){return Gt+an},function(Gt){return Gt})}},{key:"multi",value:function(qe){var Ot=new et(qe);return this.isInvalidate()||Ot.isInvalidate()?new et(NaN):this.cal(Ot,function(Gt,an){return Gt*an},function(Gt){return Gt*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(qe){return this.toString()===(qe==null?void 0:qe.toString())}},{key:"lessEquals",value:function(qe){return this.add(qe.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return qe?this.isInvalidate()?"":wt("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),et}(),ot=function(){function et(De){if((0,_e.Z)(this,et),(0,Te.Z)(this,"origin",""),(0,Te.Z)(this,"number",void 0),(0,Te.Z)(this,"empty",void 0),Ge(De)){this.empty=!0;return}this.origin=String(De),this.number=Number(De)}return(0,ft.Z)(et,[{key:"negate",value:function(){return new et(-this.toNumber())}},{key:"add",value:function(qe){if(this.isInvalidate())return new et(qe);var Ot=Number(qe);if(Number.isNaN(Ot))return this;var Gt=this.number+Ot;if(Gt>Number.MAX_SAFE_INTEGER)return new et(Number.MAX_SAFE_INTEGER);if(Gt<Number.MIN_SAFE_INTEGER)return new et(Number.MIN_SAFE_INTEGER);var an=Math.max(yt(this.number),yt(Ot));return new et(Gt.toFixed(an))}},{key:"multi",value:function(qe){var Ot=Number(qe);if(this.isInvalidate()||Number.isNaN(Ot))return new et(NaN);var Gt=this.number*Ot;if(Gt>Number.MAX_SAFE_INTEGER)return new et(Number.MAX_SAFE_INTEGER);if(Gt<Number.MIN_SAFE_INTEGER)return new et(Number.MIN_SAFE_INTEGER);var an=Math.max(yt(this.number),yt(Ot));return new et(Gt.toFixed(an))}},{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(qe){return this.toNumber()===(qe==null?void 0:qe.toNumber())}},{key:"lessEquals",value:function(qe){return this.add(qe.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return qe?this.isInvalidate()?"":lt(this.number):this.origin}}]),et}();function gt(et){return Ie()?new Vt(et):new ot(et)}function Ve(et,De,qe){var Ot=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(et==="")return"";var Gt=wt(et),an=Gt.negativeStr,Mn=Gt.integerStr,Dn=Gt.decimalStr,Ln="".concat(De).concat(Dn),Un="".concat(an).concat(Mn);if(qe>=0){var Wn=Number(Dn[qe]);if(Wn>=5&&!Ot){var On=gt(et).add("".concat(an,"0.").concat("0".repeat(qe)).concat(10-Wn));return Ve(On.toString(),De,qe,Ot)}return qe===0?Un:"".concat(Un).concat(De).concat(Dn.padEnd(qe,"0").slice(0,qe))}return Ln===".0"?Un:"".concat(Un).concat(Ln)}var Me=gt,Ue=le(93681),tt=le(34280),mt=le(8654),Je=le(59301),kt=le(48736);function st(et,De){var qe=(0,Je.useRef)(null);function Ot(){try{var an=et.selectionStart,Mn=et.selectionEnd,Dn=et.value,Ln=Dn.substring(0,an),Un=Dn.substring(Mn);qe.current={start:an,end:Mn,value:Dn,beforeTxt:Ln,afterTxt:Un}}catch(Wn){}}function Gt(){if(et&&qe.current&&De)try{var an=et.value,Mn=qe.current,Dn=Mn.beforeTxt,Ln=Mn.afterTxt,Un=Mn.start,Wn=an.length;if(an.endsWith(Ln))Wn=an.length-qe.current.afterTxt.length;else if(an.startsWith(Dn))Wn=Dn.length;else{var On=Dn[Un-1],Hn=an.indexOf(On,Un-1);Hn!==-1&&(Wn=Hn+1)}et.setSelectionRange(Wn,Wn)}catch(Dr){(0,kt.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Dr.message))}}return[Ot,Gt]}var Tt=le(49658),nt=function(){var De=(0,Je.useState)(!1),qe=(0,be.Z)(De,2),Ot=qe[0],Gt=qe[1];return(0,tt.Z)(function(){Gt((0,Tt.Z)())},[]),Ot},Yt=nt,ln=le(16089),tn=200,en=600;function Ht(et){var De=et.prefixCls,qe=et.upNode,Ot=et.downNode,Gt=et.upDisabled,an=et.downDisabled,Mn=et.onStep,Dn=Je.useRef(),Ln=Je.useRef([]),Un=Je.useRef();Un.current=Mn;var Wn=function(){clearTimeout(Dn.current)},On=function(Ir,Yr){Ir.preventDefault(),Wn(),Un.current(Yr);function nr(){Un.current(Yr),Dn.current=setTimeout(nr,tn)}Dn.current=setTimeout(nr,en)};Je.useEffect(function(){return function(){Wn(),Ln.current.forEach(function(Tn){return ln.Z.cancel(Tn)})}},[]);var Hn=Yt();if(Hn)return null;var Dr="".concat(De,"-handler"),Pr=dt()(Dr,"".concat(Dr,"-up"),(0,Te.Z)({},"".concat(Dr,"-up-disabled"),Gt)),fr=dt()(Dr,"".concat(Dr,"-down"),(0,Te.Z)({},"".concat(Dr,"-down-disabled"),an)),Jn=function(){return Ln.current.push((0,ln.Z)(Wn))},Fr={unselectable:"on",role:"button",onMouseUp:Jn,onMouseLeave:Jn};return Je.createElement("div",{className:"".concat(Dr,"-wrap")},Je.createElement("span",(0,we.Z)({},Fr,{onMouseDown:function(Ir){On(Ir,!0)},"aria-label":"Increase Value","aria-disabled":Gt,className:Pr}),qe||Je.createElement("span",{unselectable:"on",className:"".concat(De,"-handler-up-inner")})),Je.createElement("span",(0,we.Z)({},Fr,{onMouseDown:function(Ir){On(Ir,!1)},"aria-label":"Decrease Value","aria-disabled":an,className:fr}),Ot||Je.createElement("span",{unselectable:"on",className:"".concat(De,"-handler-down-inner")})))}function je(et){var De=typeof et=="number"?lt(et):wt(et).fullStr,qe=De.includes(".");return qe?wt(De.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:et+"0"}var xe=le(5643),Xe=function(){var et=(0,Je.useRef)(0),De=function(){ln.Z.cancel(et.current)};return(0,Je.useEffect)(function(){return De},[]),function(qe){De(),et.current=(0,ln.Z)(function(){qe()})}},_t=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],St=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Qe=function(De,qe){return De||qe.isEmpty()?qe.toString():qe.toNumber()},$e=function(De){var qe=Me(De);return qe.isInvalidate()?null:qe},Mt=Je.forwardRef(function(et,De){var qe,Ot=et.prefixCls,Gt=Ot===void 0?"rc-input-number":Ot,an=et.className,Mn=et.style,Dn=et.min,Ln=et.max,Un=et.step,Wn=Un===void 0?1:Un,On=et.defaultValue,Hn=et.value,Dr=et.disabled,Pr=et.readOnly,fr=et.upHandler,Jn=et.downHandler,Fr=et.keyboard,Tn=et.controls,Ir=Tn===void 0?!0:Tn,Yr=et.classNames,nr=et.stringMode,$r=et.parser,Qr=et.formatter,$n=et.precision,Xn=et.decimalSeparator,Kn=et.onChange,Gn=et.onInput,Tr=et.onPressEnter,bt=et.onStep,ke=(0,Ce.Z)(et,_t),ze="".concat(Gt,"-input"),Re=Je.useRef(null),Pe=Je.useState(!1),it=(0,be.Z)(Pe,2),vt=it[0],Ut=it[1],Ft=Je.useRef(!1),on=Je.useRef(!1),Cn=Je.useRef(!1),Bn=Je.useState(function(){return Me(Hn!=null?Hn:On)}),An=(0,be.Z)(Bn,2),Wt=An[0],bn=An[1];function pt(Nn){Hn===void 0&&bn(Nn)}var It=Je.useCallback(function(Nn,Rn){if(!Rn)return $n>=0?$n:Math.max(yt(Nn),yt(Wn))},[$n,Wn]),Kt=Je.useCallback(function(Nn){var Rn=String(Nn);if($r)return $r(Rn);var kr=Rn;return Xn&&(kr=kr.replace(Xn,".")),kr.replace(/[^\w.-]+/g,"")},[$r,Xn]),Nt=Je.useRef(""),gn=Je.useCallback(function(Nn,Rn){if(Qr)return Qr(Nn,{userTyping:Rn,input:String(Nt.current)});var kr=typeof Nn=="number"?lt(Nn):Nn;if(!Rn){var yr=It(kr,Rn);if(ht(kr)&&(Xn||yr>=0)){var Hr=Xn||".";kr=Ve(kr,Hr,yr)}}return kr},[Qr,It,Xn]),Zt=Je.useState(function(){var Nn=On!=null?On:Hn;return Wt.isInvalidate()&&["string","number"].includes((0,Fe.Z)(Nn))?Number.isNaN(Nn)?"":Nn:gn(Wt.toString(),!1)}),pn=(0,be.Z)(Zt,2),He=pn[0],At=pn[1];Nt.current=He;function Dt(Nn,Rn){At(gn(Nn.isInvalidate()?Nn.toString(!1):Nn.toString(!Rn),Rn))}var Qt=Je.useMemo(function(){return $e(Ln)},[Ln,$n]),jt=Je.useMemo(function(){return $e(Dn)},[Dn,$n]),qt=Je.useMemo(function(){return!Qt||!Wt||Wt.isInvalidate()?!1:Qt.lessEquals(Wt)},[Qt,Wt]),$t=Je.useMemo(function(){return!jt||!Wt||Wt.isInvalidate()?!1:Wt.lessEquals(jt)},[jt,Wt]),En=st(Re.current,vt),In=(0,be.Z)(En,2),zn=In[0],er=In[1],mr=function(Rn){return Qt&&!Rn.lessEquals(Qt)?Qt:jt&&!jt.lessEquals(Rn)?jt:null},wr=function(Rn){return!mr(Rn)},cr=function(Rn,kr){var yr=Rn,Hr=wr(yr)||yr.isEmpty();if(!yr.isEmpty()&&!kr&&(yr=mr(yr)||yr,Hr=!0),!Pr&&!Dr&&Hr){var jr=yr.toString(),Gr=It(jr,kr);return Gr>=0&&(yr=Me(Ve(jr,".",Gr)),wr(yr)||(yr=Me(Ve(jr,".",Gr,!0)))),yr.equals(Wt)||(pt(yr),Kn==null||Kn(yr.isEmpty()?null:Qe(nr,yr)),Hn===void 0&&Dt(yr,kr)),yr}return Wt},Zn=Xe(),Ar=function Nn(Rn){if(zn(),Nt.current=Rn,At(Rn),!on.current){var kr=Kt(Rn),yr=Me(kr);yr.isNaN()||cr(yr,!0)}Gn==null||Gn(Rn),Zn(function(){var Hr=Rn;$r||(Hr=Rn.replace(/。/g,".")),Hr!==Rn&&Nn(Hr)})},pr=function(){on.current=!0},Or=function(){on.current=!1,Ar(Re.current.value)},ur=function(Rn){Ar(Rn.target.value)},or=function(Rn){var kr;if(!(Rn&&qt||!Rn&&$t)){Ft.current=!1;var yr=Me(Cn.current?je(Wn):Wn);Rn||(yr=yr.negate());var Hr=(Wt||Me(0)).add(yr.toString()),jr=cr(Hr,!1);bt==null||bt(Qe(nr,jr),{offset:Cn.current?je(Wn):Wn,type:Rn?"up":"down"}),(kr=Re.current)===null||kr===void 0||kr.focus()}},_r=function(Rn){var kr=Me(Kt(He)),yr=kr;kr.isNaN()?yr=cr(Wt,Rn):yr=cr(kr,Rn),Hn!==void 0?Dt(Wt,!1):yr.isNaN()||Dt(yr,!1)},Sr=function(){Ft.current=!0},Jr=function(Rn){var kr=Rn.key,yr=Rn.shiftKey;Ft.current=!0,Cn.current=yr,kr==="Enter"&&(on.current||(Ft.current=!1),_r(!1),Tr==null||Tr(Rn)),Fr!==!1&&!on.current&&["Up","ArrowUp","Down","ArrowDown"].includes(kr)&&(or(kr==="Up"||kr==="ArrowUp"),Rn.preventDefault())},si=function(){Ft.current=!1,Cn.current=!1},br=function(){_r(!1),Ut(!1),Ft.current=!1};return(0,tt.o)(function(){Wt.isInvalidate()||Dt(Wt,!1)},[$n]),(0,tt.o)(function(){var Nn=Me(Hn);bn(Nn);var Rn=Me(Kt(He));(!Nn.equals(Rn)||!Ft.current||Qr)&&Dt(Nn,Ft.current)},[Hn]),(0,tt.o)(function(){Qr&&er()},[He]),Je.createElement("div",{className:dt()(Gt,Yr==null?void 0:Yr.input,an,(qe={},(0,Te.Z)(qe,"".concat(Gt,"-focused"),vt),(0,Te.Z)(qe,"".concat(Gt,"-disabled"),Dr),(0,Te.Z)(qe,"".concat(Gt,"-readonly"),Pr),(0,Te.Z)(qe,"".concat(Gt,"-not-a-number"),Wt.isNaN()),(0,Te.Z)(qe,"".concat(Gt,"-out-of-range"),!Wt.isInvalidate()&&!wr(Wt)),qe)),style:Mn,onFocus:function(){Ut(!0)},onBlur:br,onKeyDown:Jr,onKeyUp:si,onCompositionStart:pr,onCompositionEnd:Or,onBeforeInput:Sr},Ir&&Je.createElement(Ht,{prefixCls:Gt,upNode:fr,downNode:Jn,upDisabled:qt,downDisabled:$t,onStep:or}),Je.createElement("div",{className:"".concat(ze,"-wrap")},Je.createElement("input",(0,we.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Dn,"aria-valuemax":Ln,"aria-valuenow":Wt.isInvalidate()?null:Wt.toString(),step:Wn},ke,{ref:(0,mt.sQ)(Re,De),className:ze,value:He,onChange:ur,disabled:Dr,readOnly:Pr}))))}),wn=Je.forwardRef(function(et,De){var qe=et.disabled,Ot=et.style,Gt=et.prefixCls,an=et.value,Mn=et.prefix,Dn=et.suffix,Ln=et.addonBefore,Un=et.addonAfter,Wn=et.classes,On=et.className,Hn=et.classNames,Dr=(0,Ce.Z)(et,St),Pr=Je.useRef(null),fr=function(Fr){Pr.current&&(0,xe.nH)(Pr.current,Fr)};return Je.createElement(Ue.BaseInput,{inputElement:Je.createElement(Mt,(0,we.Z)({prefixCls:Gt,disabled:qe,classNames:Hn,ref:(0,mt.sQ)(Pr,De)},Dr)),className:On,triggerFocus:fr,prefixCls:Gt,value:an,disabled:qe,style:Ot,prefix:Mn,suffix:Dn,addonAfter:Un,addonBefore:Ln,classes:Wn,classNames:Hn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});wn.displayName="InputNumber";var cn=wn,dn=cn,nn=le(19080),Jt=le(36355),Bt=le(92736),ge=le(1684),ue=le(19716),se=le(32441),he=le(33234),fe=le(9937),ce=le(17313),Ae=le(74207),rt=le(83116),Le=le(37613);const Ke=(et,De)=>{let{componentCls:qe,borderRadiusSM:Ot,borderRadiusLG:Gt}=et;const an=De==="lg"?Gt:Ot;return{[`&-${De}`]:{[`${qe}-handler-wrap`]:{borderStartEndRadius:an,borderEndEndRadius:an},[`${qe}-handler-up`]:{borderStartEndRadius:an},[`${qe}-handler-down`]:{borderEndEndRadius:an}}}},Lt=et=>{const{componentCls:De,lineWidth:qe,lineType:Ot,colorBorder:Gt,borderRadius:an,fontSizeLG:Mn,controlHeightLG:Dn,controlHeightSM:Ln,colorError:Un,paddingInlineSM:Wn,colorTextDescription:On,motionDurationMid:Hn,handleHoverColor:Dr,paddingInline:Pr,paddingBlock:fr,handleBg:Jn,handleActiveBg:Fr,colorTextDisabled:Tn,borderRadiusSM:Ir,borderRadiusLG:Yr,controlWidth:nr,handleVisible:$r,handleBorderColor:Qr}=et;return[{[De]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ce.Wf)(et)),(0,fe.ik)(et)),(0,fe.bi)(et,De)),{display:"inline-block",width:nr,margin:0,padding:0,border:`${qe}px ${Ot} ${Gt}`,borderRadius:an,"&-rtl":{direction:"rtl",[`${De}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Mn,borderRadius:Yr,[`input${De}-input`]:{height:Dn-2*qe}},"&-sm":{padding:0,borderRadius:Ir,[`input${De}-input`]:{height:Ln-2*qe,padding:`0 ${Wn}px`}},"&:hover":Object.assign({},(0,fe.pU)(et)),"&-focused":Object.assign({},(0,fe.M1)(et)),"&-out-of-range":{[`${De}-input-wrap`]:{input:{color:Un}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,ce.Wf)(et)),(0,fe.s7)(et)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${De}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${De}-group-addon`]:{borderRadius:Yr,fontSize:et.fontSizeLG}},"&-sm":{[`${De}-group-addon`]:{borderRadius:Ir}},[`${De}-wrapper-disabled > ${De}-group-addon`]:Object.assign({},(0,fe.Xy)(et))}}),[`&-disabled ${De}-input`]:{cursor:"not-allowed"},[De]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,ce.Wf)(et)),{width:"100%",padding:`${fr}px ${Pr}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:an,outline:0,transition:`all ${Hn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,fe.nz)(et.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[De]:Object.assign(Object.assign(Object.assign({[`&:hover ${De}-handler-wrap, &-focused ${De}-handler-wrap`]:{opacity:1},[`${De}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:et.handleWidth,height:"100%",background:Jn,borderStartStartRadius:0,borderStartEndRadius:an,borderEndEndRadius:an,borderEndStartRadius:0,opacity:$r===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Hn} linear ${Hn}`,[`${De}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${De}-handler-up-inner,
|
|
|
${De}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:et.handleFontSize}}},[`${De}-handler`]:{height:"50%",overflow:"hidden",color:On,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${qe}px ${Ot} ${Qr}`,transition:`all ${Hn} linear`,"&:active":{background:Fr},"&:hover":{height:"60%",[`
|
|
|
${De}-handler-up-inner,
|
|
|
${De}-handler-down-inner
|
|
|
`]:{color:Dr}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,ce.Ro)()),{color:On,transition:`all ${Hn} linear`,userSelect:"none"})},[`${De}-handler-up`]:{borderStartEndRadius:an},[`${De}-handler-down`]:{borderBlockStart:`${qe}px ${Ot} ${Qr}`,borderEndEndRadius:an}},Ke(et,"lg")),Ke(et,"sm")),{"&-disabled, &-readonly":{[`${De}-handler-wrap`]:{display:"none"},[`${De}-input`]:{color:"inherit"}},[`
|
|
|
${De}-handler-up-disabled,
|
|
|
${De}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${De}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${De}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:Tn}})},{[`${De}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${De}-handler-down`]:{borderBlockStartWidth:0}}}]},xt=et=>{const{componentCls:De,paddingBlock:qe,paddingInline:Ot,inputAffixPadding:Gt,controlWidth:an,borderRadiusLG:Mn,borderRadiusSM:Dn}=et;return{[`${De}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,fe.ik)(et)),(0,fe.bi)(et,`${De}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:an,padding:0,paddingInlineStart:Ot,"&-lg":{borderRadius:Mn},"&-sm":{borderRadius:Dn},[`&:not(${De}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,fe.pU)(et)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${De}-disabled`]:{background:"transparent"},[`> div${De}`]:{width:"100%",border:"none",outline:"none",[`&${De}-focused`]:{boxShadow:"none !important"}},[`input${De}-input`]:{padding:`${qe}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${De}-handler-wrap`]:{zIndex:2},[De]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Gt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Ot,marginInlineStart:Gt}}})}};var Ye=(0,rt.Z)("InputNumber",et=>{const De=(0,Le.TS)(et,(0,fe.e5)(et));return[Lt(De),xt(De),(0,Ae.c)(De)]},et=>Object.assign(Object.assign({},(0,fe.TM)(et)),{controlWidth:90,handleWidth:et.controlHeightSM-et.lineWidth*2,handleFontSize:et.fontSize/2,handleVisible:"auto",handleActiveBg:et.colorFillAlter,handleBg:et.colorBgContainer,handleHoverColor:et.colorPrimary,handleBorderColor:et.colorBorder})),Pt=function(et,De){var qe={};for(var Ot in et)Object.prototype.hasOwnProperty.call(et,Ot)&&De.indexOf(Ot)<0&&(qe[Ot]=et[Ot]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Ot=Object.getOwnPropertySymbols(et);Gt<Ot.length;Gt++)De.indexOf(Ot[Gt])<0&&Object.prototype.propertyIsEnumerable.call(et,Ot[Gt])&&(qe[Ot[Gt]]=et[Ot[Gt]]);return qe};const hn=Je.forwardRef((et,De)=>{const{getPrefixCls:qe,direction:Ot}=Je.useContext(Jt.E_),Gt=Je.useRef(null);Je.useImperativeHandle(De,()=>Gt.current);const{className:an,rootClassName:Mn,size:Dn,disabled:Ln,prefixCls:Un,addonBefore:Wn,addonAfter:On,prefix:Hn,bordered:Dr=!0,readOnly:Pr,status:fr,controls:Jn}=et,Fr=Pt(et,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Tn=qe("input-number",Un),[Ir,Yr]=Ye(Tn),{compactSize:nr,compactItemClassnames:$r}=(0,he.ri)(Tn,Ot);let Qr=Je.createElement(Oe.Z,{className:`${Tn}-handler-up-inner`}),$n=Je.createElement(oe.Z,{className:`${Tn}-handler-down-inner`});const Xn=typeof Jn=="boolean"?Jn:void 0;typeof Jn=="object"&&(Qr=typeof Jn.upIcon=="undefined"?Qr:Je.createElement("span",{className:`${Tn}-handler-up-inner`},Jn.upIcon),$n=typeof Jn.downIcon=="undefined"?$n:Je.createElement("span",{className:`${Tn}-handler-down-inner`},Jn.downIcon));const{hasFeedback:Kn,status:Gn,isFormItemInput:Tr,feedbackIcon:bt}=Je.useContext(se.aM),ke=(0,nn.F)(Gn,fr),ze=(0,ue.Z)(Ft=>{var on;return(on=Dn!=null?Dn:nr)!==null&&on!==void 0?on:Ft}),Re=Je.useContext(ge.Z),Pe=Ln!=null?Ln:Re,it=dt()({[`${Tn}-lg`]:ze==="large",[`${Tn}-sm`]:ze==="small",[`${Tn}-rtl`]:Ot==="rtl",[`${Tn}-borderless`]:!Dr,[`${Tn}-in-form-item`]:Tr},(0,nn.Z)(Tn,ke),$r,Yr),vt=`${Tn}-group`,Ut=Je.createElement(dn,Object.assign({ref:Gt,disabled:Pe,className:dt()(an,Mn),upHandler:Qr,downHandler:$n,prefixCls:Tn,readOnly:Pr,controls:Xn,prefix:Hn,suffix:Kn&&bt,addonAfter:On&&Je.createElement(he.BR,null,Je.createElement(se.Ux,{override:!0,status:!0},On)),addonBefore:Wn&&Je.createElement(he.BR,null,Je.createElement(se.Ux,{override:!0,status:!0},Wn)),classNames:{input:it},classes:{affixWrapper:dt()((0,nn.Z)(`${Tn}-affix-wrapper`,ke,Kn),{[`${Tn}-affix-wrapper-sm`]:ze==="small",[`${Tn}-affix-wrapper-lg`]:ze==="large",[`${Tn}-affix-wrapper-rtl`]:Ot==="rtl",[`${Tn}-affix-wrapper-borderless`]:!Dr},Yr),wrapper:dt()({[`${vt}-rtl`]:Ot==="rtl",[`${Tn}-wrapper-disabled`]:Pe},Yr),group:dt()({[`${Tn}-group-wrapper-sm`]:ze==="small",[`${Tn}-group-wrapper-lg`]:ze==="large",[`${Tn}-group-wrapper-rtl`]:Ot==="rtl"},(0,nn.Z)(`${Tn}-group-wrapper`,ke,Kn),Yr)}},Fr));return Ir(Ut)}),at=hn,Xt=et=>Je.createElement(Bt.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Je.createElement(hn,Object.assign({},et)));at._InternalPanelDoNotUseOrYouWillBeFired=Xt;var fn=at},9432:function(mn,un,le){"use strict";le.d(un,{Z:function(){return Vt},n:function(){return lt}});var oe=le(19248),Oe=le(92310),Ne=le.n(Oe),dt=le(93681),we=le(8654),Te=le(59301),Fe=le(19080),be=le(36355),Ce=le(1684),_e=le(19716),ft=le(32441),Ie=le(33234),Ge=le(59412),wt=le(9937);function ut(ot){return!!(ot.prefix||ot.suffix||ot.allowClear)}var yt=function(ot,gt){var Ve={};for(var Me in ot)Object.prototype.hasOwnProperty.call(ot,Me)&>.indexOf(Me)<0&&(Ve[Me]=ot[Me]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Me=Object.getOwnPropertySymbols(ot);Ue<Me.length;Ue++)gt.indexOf(Me[Ue])<0&&Object.prototype.propertyIsEnumerable.call(ot,Me[Ue])&&(Ve[Me[Ue]]=ot[Me[Ue]]);return Ve};function lt(ot,gt){if(!ot)return;ot.focus(gt);const{cursor:Ve}=gt||{};if(Ve){const Me=ot.value.length;switch(Ve){case"start":ot.setSelectionRange(0,0);break;case"end":ot.setSelectionRange(Me,Me);break;default:ot.setSelectionRange(0,Me);break}}}var Vt=(0,Te.forwardRef)((ot,gt)=>{var Ve;const{prefixCls:Me,bordered:Ue=!0,status:tt,size:mt,disabled:Je,onBlur:kt,onFocus:st,suffix:Tt,allowClear:nt,addonAfter:Yt,addonBefore:ln,className:tn,style:en,styles:Ht,rootClassName:je,onChange:xe,classNames:Xe}=ot,_t=yt(ot,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:St,direction:Qe,input:$e}=Te.useContext(be.E_),Mt=St("input",Me),wn=(0,Te.useRef)(null),[cn,dn]=(0,wt.ZP)(Mt),{compactSize:nn,compactItemClassnames:Jt}=(0,Ie.ri)(Mt,Qe),Bt=(0,_e.Z)(hn=>{var at;return(at=mt!=null?mt:nn)!==null&&at!==void 0?at:hn}),ge=Te.useContext(Ce.Z),ue=Je!=null?Je:ge,{status:se,hasFeedback:he,feedbackIcon:fe}=(0,Te.useContext)(ft.aM),ce=(0,Fe.F)(se,tt),Ae=ut(ot)||!!he,rt=(0,Te.useRef)(Ae);(0,Te.useEffect)(()=>{var hn;Ae&&rt.current,rt.current=Ae},[Ae]);const Le=(0,Ge.Z)(wn,!0),Ke=hn=>{Le(),kt==null||kt(hn)},Lt=hn=>{Le(),st==null||st(hn)},xt=hn=>{Le(),xe==null||xe(hn)},Ye=(he||Tt)&&Te.createElement(Te.Fragment,null,Tt,he&&fe);let Pt;return typeof nt=="object"&&(nt!=null&&nt.clearIcon)?Pt=nt:nt&&(Pt={clearIcon:Te.createElement(oe.Z,null)}),cn(Te.createElement(dt.default,Object.assign({ref:(0,we.sQ)(gt,wn),prefixCls:Mt,autoComplete:$e==null?void 0:$e.autoComplete},_t,{disabled:ue,onBlur:Ke,onFocus:Lt,style:Object.assign(Object.assign({},$e==null?void 0:$e.style),en),styles:Object.assign(Object.assign({},$e==null?void 0:$e.styles),Ht),suffix:Ye,allowClear:Pt,className:Ne()(tn,je,Jt,$e==null?void 0:$e.className),onChange:xt,addonAfter:Yt&&Te.createElement(Ie.BR,null,Te.createElement(ft.Ux,{override:!0,status:!0},Yt)),addonBefore:ln&&Te.createElement(Ie.BR,null,Te.createElement(ft.Ux,{override:!0,status:!0},ln)),classNames:Object.assign(Object.assign(Object.assign({},Xe),$e==null?void 0:$e.classNames),{input:Ne()({[`${Mt}-sm`]:Bt==="small",[`${Mt}-lg`]:Bt==="large",[`${Mt}-rtl`]:Qe==="rtl",[`${Mt}-borderless`]:!Ue},!Ae&&(0,Fe.Z)(Mt,ce),Xe==null?void 0:Xe.input,(Ve=$e==null?void 0:$e.classNames)===null||Ve===void 0?void 0:Ve.input,dn)}),classes:{affixWrapper:Ne()({[`${Mt}-affix-wrapper-sm`]:Bt==="small",[`${Mt}-affix-wrapper-lg`]:Bt==="large",[`${Mt}-affix-wrapper-rtl`]:Qe==="rtl",[`${Mt}-affix-wrapper-borderless`]:!Ue},(0,Fe.Z)(`${Mt}-affix-wrapper`,ce,he),dn),wrapper:Ne()({[`${Mt}-group-rtl`]:Qe==="rtl"},dn),group:Ne()({[`${Mt}-group-wrapper-sm`]:Bt==="small",[`${Mt}-group-wrapper-lg`]:Bt==="large",[`${Mt}-group-wrapper-rtl`]:Qe==="rtl",[`${Mt}-group-wrapper-disabled`]:ue},(0,Fe.Z)(`${Mt}-group-wrapper`,ce,he),dn)}})))})},1643:function(mn,un,le){"use strict";var oe=le(19248),Oe=le(92310),Ne=le.n(Oe),dt=le(9296),we=le(59301),Te=le(19080),Fe=le(36355),be=le(1684),Ce=le(19716),_e=le(32441),ft=le(9432),Ie=le(9937),Ge=function(ut,yt){var lt={};for(var ht in ut)Object.prototype.hasOwnProperty.call(ut,ht)&&yt.indexOf(ht)<0&&(lt[ht]=ut[ht]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,ht=Object.getOwnPropertySymbols(ut);Vt<ht.length;Vt++)yt.indexOf(ht[Vt])<0&&Object.prototype.propertyIsEnumerable.call(ut,ht[Vt])&&(lt[ht[Vt]]=ut[ht[Vt]]);return lt};const wt=(0,we.forwardRef)((ut,yt)=>{const{prefixCls:lt,bordered:ht=!0,size:Vt,disabled:ot,status:gt,allowClear:Ve,showCount:Me,classNames:Ue,rootClassName:tt,className:mt}=ut,Je=Ge(ut,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:kt,direction:st}=we.useContext(Fe.E_),Tt=(0,Ce.Z)(Vt),nt=we.useContext(be.Z),Yt=ot!=null?ot:nt,{status:ln,hasFeedback:tn,feedbackIcon:en}=we.useContext(_e.aM),Ht=(0,Te.F)(ln,gt),je=we.useRef(null);we.useImperativeHandle(yt,()=>{var Qe;return{resizableTextArea:(Qe=je.current)===null||Qe===void 0?void 0:Qe.resizableTextArea,focus:$e=>{var Mt,wn;(0,ft.n)((wn=(Mt=je.current)===null||Mt===void 0?void 0:Mt.resizableTextArea)===null||wn===void 0?void 0:wn.textArea,$e)},blur:()=>{var $e;return($e=je.current)===null||$e===void 0?void 0:$e.blur()}}});const xe=kt("input",lt);let Xe;typeof Ve=="object"&&(Ve!=null&&Ve.clearIcon)?Xe=Ve:Ve&&(Xe={clearIcon:we.createElement(oe.Z,null)});const[_t,St]=(0,Ie.ZP)(xe);return _t(we.createElement(dt.default,Object.assign({},Je,{disabled:Yt,allowClear:Xe,className:Ne()(mt,tt),classes:{affixWrapper:Ne()(`${xe}-textarea-affix-wrapper`,{[`${xe}-affix-wrapper-rtl`]:st==="rtl",[`${xe}-affix-wrapper-borderless`]:!ht,[`${xe}-affix-wrapper-sm`]:Tt==="small",[`${xe}-affix-wrapper-lg`]:Tt==="large",[`${xe}-textarea-show-count`]:Me},(0,Te.Z)(`${xe}-affix-wrapper`,Ht),St)},classNames:Object.assign(Object.assign({},Ue),{textarea:Ne()({[`${xe}-borderless`]:!ht,[`${xe}-sm`]:Tt==="small",[`${xe}-lg`]:Tt==="large"},(0,Te.Z)(xe,Ht),St,Ue==null?void 0:Ue.textarea)}),prefixCls:xe,suffix:tn&&we.createElement("span",{className:`${xe}-textarea-suffix`},en),showCount:Me,ref:je})))});un.Z=wt},59412:function(mn,un,le){"use strict";le.d(un,{Z:function(){return Oe}});var oe=le(59301);function Oe(Ne,dt){const we=(0,oe.useRef)([]),Te=()=>{we.current.push(setTimeout(()=>{var Fe,be,Ce,_e;!((Fe=Ne.current)===null||Fe===void 0)&&Fe.input&&((be=Ne.current)===null||be===void 0?void 0:be.input.getAttribute("type"))==="password"&&(!((Ce=Ne.current)===null||Ce===void 0)&&Ce.input.hasAttribute("value"))&&((_e=Ne.current)===null||_e===void 0||_e.input.removeAttribute("value"))}))};return(0,oe.useEffect)(()=>(dt&&Te(),()=>we.current.forEach(Fe=>{Fe&&clearTimeout(Fe)})),[]),Te}},92832:function(mn,un,le){"use strict";le.d(un,{default:function(){return Tt}});var oe=le(92310),Oe=le.n(oe),Ne=le(59301),dt=le(36355),we=le(32441),Te=le(9937),be=nt=>{const{getPrefixCls:Yt,direction:ln}=(0,Ne.useContext)(dt.E_),{prefixCls:tn,className:en}=nt,Ht=Yt("input-group",tn),je=Yt("input"),[xe,Xe]=(0,Te.ZP)(je),_t=Oe()(Ht,{[`${Ht}-lg`]:nt.size==="large",[`${Ht}-sm`]:nt.size==="small",[`${Ht}-compact`]:nt.compact,[`${Ht}-rtl`]:ln==="rtl"},Xe,en),St=(0,Ne.useContext)(we.aM),Qe=(0,Ne.useMemo)(()=>Object.assign(Object.assign({},St),{isFormItemInput:!1}),[St]);return xe(Ne.createElement("span",{className:_t,style:nt.style,onMouseEnter:nt.onMouseEnter,onMouseLeave:nt.onMouseLeave,onFocus:nt.onFocus,onBlur:nt.onBlur},Ne.createElement(we.aM.Provider,{value:Qe},nt.children)))},Ce=le(9432),_e=le(73331),ft=le(15277),Ie=le(2738),Ge=le(8654),wt=le(59412),ut=function(nt,Yt){var ln={};for(var tn in nt)Object.prototype.hasOwnProperty.call(nt,tn)&&Yt.indexOf(tn)<0&&(ln[tn]=nt[tn]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var en=0,tn=Object.getOwnPropertySymbols(nt);en<tn.length;en++)Yt.indexOf(tn[en])<0&&Object.prototype.propertyIsEnumerable.call(nt,tn[en])&&(ln[tn[en]]=nt[tn[en]]);return ln};const yt=nt=>nt?Ne.createElement(ft.Z,null):Ne.createElement(_e.Z,null),lt={click:"onClick",hover:"onMouseOver"};var Vt=Ne.forwardRef((nt,Yt)=>{const{visibilityToggle:ln=!0}=nt,tn=typeof ln=="object"&&ln.visible!==void 0,[en,Ht]=(0,Ne.useState)(()=>tn?ln.visible:!1),je=(0,Ne.useRef)(null);Ne.useEffect(()=>{tn&&Ht(ln.visible)},[tn,ln]);const xe=(0,wt.Z)(je),Xe=()=>{const{disabled:ue}=nt;ue||(en&&xe(),Ht(se=>{var he;const fe=!se;return typeof ln=="object"&&((he=ln.onVisibleChange)===null||he===void 0||he.call(ln,fe)),fe}))},_t=ue=>{const{action:se="click",iconRender:he=yt}=nt,fe=lt[se]||"",ce=he(en),Ae={[fe]:Xe,className:`${ue}-icon`,key:"passwordIcon",onMouseDown:rt=>{rt.preventDefault()},onMouseUp:rt=>{rt.preventDefault()}};return Ne.cloneElement(Ne.isValidElement(ce)?ce:Ne.createElement("span",null,ce),Ae)},{className:St,prefixCls:Qe,inputPrefixCls:$e,size:Mt}=nt,wn=ut(nt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:cn}=Ne.useContext(dt.E_),dn=cn("input",$e),nn=cn("input-password",Qe),Jt=ln&&_t(nn),Bt=Oe()(nn,St,{[`${nn}-${Mt}`]:!!Mt}),ge=Object.assign(Object.assign({},(0,Ie.Z)(wn,["suffix","iconRender","visibilityToggle"])),{type:en?"text":"password",className:Bt,prefixCls:dn,suffix:Jt});return Mt&&(ge.size=Mt),Ne.createElement(Ce.Z,Object.assign({ref:(0,Ge.sQ)(Yt,je)},ge))}),ot=le(47472),gt=le(92343),Ve=le(3113),Me=le(19716),Ue=le(33234),tt=function(nt,Yt){var ln={};for(var tn in nt)Object.prototype.hasOwnProperty.call(nt,tn)&&Yt.indexOf(tn)<0&&(ln[tn]=nt[tn]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var en=0,tn=Object.getOwnPropertySymbols(nt);en<tn.length;en++)Yt.indexOf(tn[en])<0&&Object.prototype.propertyIsEnumerable.call(nt,tn[en])&&(ln[tn[en]]=nt[tn[en]]);return ln},Je=Ne.forwardRef((nt,Yt)=>{const{prefixCls:ln,inputPrefixCls:tn,className:en,size:Ht,suffix:je,enterButton:xe=!1,addonAfter:Xe,loading:_t,disabled:St,onSearch:Qe,onChange:$e,onCompositionStart:Mt,onCompositionEnd:wn}=nt,cn=tt(nt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:dn,direction:nn}=Ne.useContext(dt.E_),Jt=Ne.useRef(!1),Bt=dn("input-search",ln),ge=dn("input",tn),{compactSize:ue}=(0,Ue.ri)(Bt,nn),se=(0,Me.Z)(Xt=>{var fn;return(fn=Ht!=null?Ht:ue)!==null&&fn!==void 0?fn:Xt}),he=Ne.useRef(null),fe=Xt=>{Xt&&Xt.target&&Xt.type==="click"&&Qe&&Qe(Xt.target.value,Xt,{source:"clear"}),$e&&$e(Xt)},ce=Xt=>{var fn;document.activeElement===((fn=he.current)===null||fn===void 0?void 0:fn.input)&&Xt.preventDefault()},Ae=Xt=>{var fn,et;Qe&&Qe((et=(fn=he.current)===null||fn===void 0?void 0:fn.input)===null||et===void 0?void 0:et.value,Xt,{source:"input"})},rt=Xt=>{Jt.current||_t||Ae(Xt)},Le=typeof xe=="boolean"?Ne.createElement(ot.Z,null):null,Ke=`${Bt}-button`;let Lt;const xt=xe||{},Ye=xt.type&&xt.type.__ANT_BUTTON===!0;Ye||xt.type==="button"?Lt=(0,gt.Tm)(xt,Object.assign({onMouseDown:ce,onClick:Xt=>{var fn,et;(et=(fn=xt==null?void 0:xt.props)===null||fn===void 0?void 0:fn.onClick)===null||et===void 0||et.call(fn,Xt),Ae(Xt)},key:"enterButton"},Ye?{className:Ke,size:se}:{})):Lt=Ne.createElement(Ve.ZP,{className:Ke,type:xe?"primary":void 0,size:se,disabled:St,key:"enterButton",onMouseDown:ce,onClick:Ae,loading:_t,icon:Le},xe),Xe&&(Lt=[Lt,(0,gt.Tm)(Xe,{key:"addonAfter"})]);const Pt=Oe()(Bt,{[`${Bt}-rtl`]:nn==="rtl",[`${Bt}-${se}`]:!!se,[`${Bt}-with-button`]:!!xe},en),hn=Xt=>{Jt.current=!0,Mt==null||Mt(Xt)},at=Xt=>{Jt.current=!1,wn==null||wn(Xt)};return Ne.createElement(Ce.Z,Object.assign({ref:(0,Ge.sQ)(he,Yt),onPressEnter:rt},cn,{size:se,onCompositionStart:hn,onCompositionEnd:at,prefixCls:ge,addonAfter:Lt,suffix:je,onChange:fe,className:Pt,disabled:St}))}),kt=le(1643);const st=Ce.Z;st.Group=be,st.Search=Je,st.TextArea=kt.Z,st.Password=Vt;var Tt=st},9937:function(mn,un,le){"use strict";le.d(un,{M1:function(){return Fe},TM:function(){return gt},Xy:function(){return be},bi:function(){return ft},e5:function(){return ot},ik:function(){return Ie},nz:function(){return we},pU:function(){return Te},s7:function(){return Ge},x0:function(){return _e}});var oe=le(17313),Oe=le(74207),Ne=le(37613),dt=le(83116);const we=Ve=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Ve,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Te=Ve=>({borderColor:Ve.hoverBorderColor}),Fe=Ve=>({borderColor:Ve.activeBorderColor,boxShadow:Ve.activeShadow,outline:0}),be=Ve=>({color:Ve.colorTextDisabled,backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Te((0,Ne.TS)(Ve,{hoverBorderColor:Ve.colorBorder})))}),Ce=Ve=>{const{paddingBlockLG:Me,fontSizeLG:Ue,lineHeightLG:tt,borderRadiusLG:mt,paddingInlineLG:Je}=Ve;return{padding:`${Me}px ${Je}px`,fontSize:Ue,lineHeight:tt,borderRadius:mt}},_e=Ve=>({padding:`${Ve.paddingBlockSM}px ${Ve.paddingInlineSM}px`,borderRadius:Ve.borderRadiusSM}),ft=(Ve,Me)=>{const{componentCls:Ue,colorError:tt,colorWarning:mt,errorActiveShadow:Je,warningActiveShadow:kt,colorErrorBorderHover:st,colorWarningBorderHover:Tt}=Ve;return{[`&-status-error:not(${Me}-disabled):not(${Me}-borderless)${Me}`]:{borderColor:tt,"&:hover":{borderColor:st},"&:focus, &-focused":Object.assign({},Fe((0,Ne.TS)(Ve,{activeBorderColor:tt,activeShadow:Je}))),[`${Ue}-prefix, ${Ue}-suffix`]:{color:tt}},[`&-status-warning:not(${Me}-disabled):not(${Me}-borderless)${Me}`]:{borderColor:mt,"&:hover":{borderColor:Tt},"&:focus, &-focused":Object.assign({},Fe((0,Ne.TS)(Ve,{activeBorderColor:mt,activeShadow:kt}))),[`${Ue}-prefix, ${Ue}-suffix`]:{color:mt}}}},Ie=Ve=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ve.paddingBlock}px ${Ve.paddingInline}px`,color:Ve.colorText,fontSize:Ve.fontSize,lineHeight:Ve.lineHeight,backgroundColor:Ve.colorBgContainer,backgroundImage:"none",borderWidth:Ve.lineWidth,borderStyle:Ve.lineType,borderColor:Ve.colorBorder,borderRadius:Ve.borderRadius,transition:`all ${Ve.motionDurationMid}`},we(Ve.colorTextPlaceholder)),{"&:hover":Object.assign({},Te(Ve)),"&:focus, &-focused":Object.assign({},Fe(Ve)),"&-disabled, &[disabled]":Object.assign({},be(Ve)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Ve.controlHeight,lineHeight:Ve.lineHeight,verticalAlign:"bottom",transition:`all ${Ve.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Ce(Ve)),"&-sm":Object.assign({},_e(Ve)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Ge=Ve=>{const{componentCls:Me,antCls:Ue}=Ve;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:Ve.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Me}, &-lg > ${Me}-group-addon`]:Object.assign({},Ce(Ve)),[`&-sm ${Me}, &-sm > ${Me}-group-addon`]:Object.assign({},_e(Ve)),[`&-lg ${Ue}-select-single ${Ue}-select-selector`]:{height:Ve.controlHeightLG},[`&-sm ${Ue}-select-single ${Ue}-select-selector`]:{height:Ve.controlHeightSM},[`> ${Me}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Me}-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 ${Ve.paddingInline}px`,color:Ve.colorText,fontWeight:"normal",fontSize:Ve.fontSize,textAlign:"center",backgroundColor:Ve.colorFillAlter,border:`${Ve.lineWidth}px ${Ve.lineType} ${Ve.colorBorder}`,borderRadius:Ve.borderRadius,transition:`all ${Ve.motionDurationSlow}`,lineHeight:1,[`${Ue}-select`]:{margin:`-${Ve.paddingBlock+1}px -${Ve.paddingInline}px`,[`&${Ue}-select-single:not(${Ue}-select-customize-input)`]:{[`${Ue}-select-selector`]:{backgroundColor:"inherit",border:`${Ve.lineWidth}px ${Ve.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Ue}-select-selector`]:{color:Ve.colorPrimary}}},[`${Ue}-cascader-picker`]:{margin:`-9px -${Ve.paddingInline}px`,backgroundColor:"transparent",[`${Ue}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Me}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Me}-search-with-button &`]:{zIndex:0}}},[`> ${Me}:first-child, ${Me}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ue}-select ${Ue}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Me}-affix-wrapper`]:{[`&:not(:first-child) ${Me}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Me}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Me}:last-child, ${Me}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Ue}-select ${Ue}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Me}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Me}-search &`]:{borderStartStartRadius:Ve.borderRadius,borderEndStartRadius:Ve.borderRadius}},[`&:not(:first-child), ${Me}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Me}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,oe.dF)()),{[`${Me}-group-addon, ${Me}-group-wrap, > ${Me}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Ve.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${Me}-affix-wrapper,
|
|
|
& > ${Me}-number-affix-wrapper,
|
|
|
& > ${Ue}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Ve.lineWidth,borderInlineEndWidth:Ve.lineWidth},[`${Me}`]:{float:"none"},[`& > ${Ue}-select > ${Ue}-select-selector,
|
|
|
& > ${Ue}-select-auto-complete ${Me},
|
|
|
& > ${Ue}-cascader-picker ${Me},
|
|
|
& > ${Me}-group-wrapper ${Me}`]:{borderInlineEndWidth:Ve.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Ue}-select-focused`]:{zIndex:1},[`& > ${Ue}-select > ${Ue}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${Ue}-select:first-child > ${Ue}-select-selector,
|
|
|
& > ${Ue}-select-auto-complete:first-child ${Me},
|
|
|
& > ${Ue}-cascader-picker:first-child ${Me}`]:{borderStartStartRadius:Ve.borderRadius,borderEndStartRadius:Ve.borderRadius},[`& > *:last-child,
|
|
|
& > ${Ue}-select:last-child > ${Ue}-select-selector,
|
|
|
& > ${Ue}-cascader-picker:last-child ${Me},
|
|
|
& > ${Ue}-cascader-picker-focused:last-child ${Me}`]:{borderInlineEndWidth:Ve.lineWidth,borderStartEndRadius:Ve.borderRadius,borderEndEndRadius:Ve.borderRadius},[`& > ${Ue}-select-auto-complete ${Me}`]:{verticalAlign:"top"},[`${Me}-group-wrapper + ${Me}-group-wrapper`]:{marginInlineStart:-Ve.lineWidth,[`${Me}-affix-wrapper`]:{borderRadius:0}},[`${Me}-group-wrapper:not(:last-child)`]:{[`&${Me}-search > ${Me}-group`]:{[`& > ${Me}-group-addon > ${Me}-search-button`]:{borderRadius:0},[`& > ${Me}`]:{borderStartStartRadius:Ve.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ve.borderRadius}}}})}},wt=Ve=>{const{componentCls:Me,controlHeightSM:Ue,lineWidth:tt}=Ve,Je=(Ue-tt*2-16)/2;return{[Me]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,oe.Wf)(Ve)),Ie(Ve)),ft(Ve,Me)),{'&[type="color"]':{height:Ve.controlHeight,[`&${Me}-lg`]:{height:Ve.controlHeightLG},[`&${Me}-sm`]:{height:Ue,paddingTop:Je,paddingBottom:Je}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ut=Ve=>{const{componentCls:Me}=Ve;return{[`${Me}-clear-icon`]:{margin:0,color:Ve.colorTextQuaternary,fontSize:Ve.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Ve.motionDurationSlow}`,"&:hover":{color:Ve.colorTextTertiary},"&:active":{color:Ve.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ve.inputAffixPadding}px`}}}},yt=Ve=>{const{componentCls:Me,inputAffixPadding:Ue,colorTextDescription:tt,motionDurationSlow:mt,colorIcon:Je,colorIconHover:kt,iconCls:st}=Ve;return{[`${Me}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ie(Ve)),{display:"inline-flex",[`&:not(${Me}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Te(Ve)),{zIndex:1,[`${Me}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${Me}[disabled]`]:{background:"transparent"}},[`> input${Me}`]:{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"'},[`${Me}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Ve.paddingXS}},"&-show-count-suffix":{color:tt},"&-show-count-has-suffix":{marginInlineEnd:Ve.paddingXXS},"&-prefix":{marginInlineEnd:Ue},"&-suffix":{marginInlineStart:Ue}}}),ut(Ve)),{[`${st}${Me}-password-icon`]:{color:Je,cursor:"pointer",transition:`all ${mt}`,"&:hover":{color:kt}}}),ft(Ve,`${Me}-affix-wrapper`))}},lt=Ve=>{const{componentCls:Me,colorError:Ue,colorWarning:tt,borderRadiusLG:mt,borderRadiusSM:Je}=Ve;return{[`${Me}-group`]:Object.assign(Object.assign(Object.assign({},(0,oe.Wf)(Ve)),Ge(Ve)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Me}-group-addon`]:{borderRadius:mt,fontSize:Ve.fontSizeLG}},"&-sm":{[`${Me}-group-addon`]:{borderRadius:Je}},"&-status-error":{[`${Me}-group-addon`]:{color:Ue,borderColor:Ue}},"&-status-warning":{[`${Me}-group-addon`]:{color:tt,borderColor:tt}},"&-disabled":{[`${Me}-group-addon`]:Object.assign({},be(Ve))},[`&:not(${Me}-compact-first-item):not(${Me}-compact-last-item)${Me}-compact-item`]:{[`${Me}, ${Me}-group-addon`]:{borderRadius:0}},[`&:not(${Me}-compact-last-item)${Me}-compact-first-item`]:{[`${Me}, ${Me}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Me}-compact-first-item)${Me}-compact-last-item`]:{[`${Me}, ${Me}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},ht=Ve=>{const{componentCls:Me,antCls:Ue}=Ve,tt=`${Me}-search`;return{[tt]:{[`${Me}`]:{"&:hover, &:focus":{borderColor:Ve.colorPrimaryHover,[`+ ${Me}-group-addon ${tt}-button:not(${Ue}-btn-primary)`]:{borderInlineStartColor:Ve.colorPrimaryHover}}},[`${Me}-affix-wrapper`]:{borderRadius:0},[`${Me}-lg`]:{lineHeight:Ve.lineHeightLG-2e-4},[`> ${Me}-group`]:{[`> ${Me}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${tt}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Ve.borderRadius,borderEndEndRadius:Ve.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${tt}-button:not(${Ue}-btn-primary)`]:{color:Ve.colorTextDescription,"&:hover":{color:Ve.colorPrimaryHover},"&:active":{color:Ve.colorPrimaryActive},[`&${Ue}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${tt}-button`]:{height:Ve.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${tt}-button`]:{height:Ve.controlHeightLG},[`&-small ${tt}-button`]:{height:Ve.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Me}-compact-item`]:{[`&:not(${Me}-compact-last-item)`]:{[`${Me}-group-addon`]:{[`${Me}-search-button`]:{marginInlineEnd:-Ve.lineWidth,borderRadius:0}}},[`&:not(${Me}-compact-first-item)`]:{[`${Me},${Me}-affix-wrapper`]:{borderRadius:0}},[`> ${Me}-group-addon ${Me}-search-button,
|
|
|
> ${Me},
|
|
|
${Me}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Me}-affix-wrapper-focused`]:{zIndex:2}}}}},Vt=Ve=>{const{componentCls:Me,paddingLG:Ue}=Ve,tt=`${Me}-textarea`;return{[tt]:{position:"relative","&-show-count":{[`> ${Me}`]:{height:"100%"},[`${Me}-data-count`]:{position:"absolute",bottom:-Ve.fontSize*Ve.lineHeight,insetInlineEnd:0,color:Ve.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Me}`]:{paddingInlineEnd:Ue}},[`&-affix-wrapper${tt}-has-feedback`]:{[`${Me}`]:{paddingInlineEnd:Ue}},[`&-affix-wrapper${Me}-affix-wrapper`]:{padding:0,[`> textarea${Me}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Me}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Me}-clear-icon`]:{position:"absolute",insetInlineEnd:Ve.paddingXS,insetBlockStart:Ve.paddingXS},[`${tt}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ve.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function ot(Ve){return(0,Ne.TS)(Ve,{inputAffixPadding:Ve.paddingXXS})}const gt=Ve=>{const{controlHeight:Me,fontSize:Ue,lineHeight:tt,lineWidth:mt,controlHeightSM:Je,controlHeightLG:kt,fontSizeLG:st,lineHeightLG:Tt,paddingSM:nt,controlPaddingHorizontalSM:Yt,controlPaddingHorizontal:ln,colorFillAlter:tn,colorPrimaryHover:en,controlOutlineWidth:Ht,controlOutline:je,colorErrorOutline:xe,colorWarningOutline:Xe}=Ve;return{paddingBlock:Math.max(Math.round((Me-Ue*tt)/2*10)/10-mt,3),paddingBlockSM:Math.max(Math.round((Je-Ue*tt)/2*10)/10-mt,0),paddingBlockLG:Math.ceil((kt-st*Tt)/2*10)/10-mt,paddingInline:nt-mt,paddingInlineSM:Yt-mt,paddingInlineLG:ln-mt,addonBg:tn,activeBorderColor:en,hoverBorderColor:en,activeShadow:`0 0 0 ${Ht}px ${je}`,errorActiveShadow:`0 0 0 ${Ht}px ${xe}`,warningActiveShadow:`0 0 0 ${Ht}px ${Xe}`}};un.ZP=(0,dt.Z)("Input",Ve=>{const Me=(0,Ne.TS)(Ve,ot(Ve));return[wt(Me),Vt(Me),yt(Me),lt(Me),ht(Me),(0,Oe.c)(Me)]},gt)},45818:function(mn,un,le){"use strict";le.d(un,{D:function(){return ot},Z:function(){return Me}});var oe=le(60499),Oe=le(59301),Ne={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"},dt=Ne,we=le(85221),Te=function(tt,mt){return Oe.createElement(we.Z,(0,oe.Z)({},tt,{ref:mt,icon:dt}))},Fe=Oe.forwardRef(Te),be=Fe,Ce=le(33853),_e=le(38819),ft=le(92310),Ie=le.n(ft),Ge=le(2738),ut=Ue=>!isNaN(parseFloat(Ue))&&isFinite(Ue),yt=le(36355),lt=le(84966),ht=function(Ue,tt){var mt={};for(var Je in Ue)Object.prototype.hasOwnProperty.call(Ue,Je)&&tt.indexOf(Je)<0&&(mt[Je]=Ue[Je]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Je=Object.getOwnPropertySymbols(Ue);kt<Je.length;kt++)tt.indexOf(Je[kt])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Je[kt])&&(mt[Je[kt]]=Ue[Je[kt]]);return mt};const Vt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ot=Oe.createContext({}),gt=(()=>{let Ue=0;return function(){let tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ue+=1,`${tt}${Ue}`}})();var Me=Oe.forwardRef((Ue,tt)=>{const{prefixCls:mt,className:Je,trigger:kt,children:st,defaultCollapsed:Tt=!1,theme:nt="dark",style:Yt={},collapsible:ln=!1,reverseArrow:tn=!1,width:en=200,collapsedWidth:Ht=80,zeroWidthTriggerStyle:je,breakpoint:xe,onCollapse:Xe,onBreakpoint:_t}=Ue,St=ht(Ue,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Qe}=(0,Oe.useContext)(lt.Gs),[$e,Mt]=(0,Oe.useState)("collapsed"in Ue?Ue.collapsed:Tt),[wn,cn]=(0,Oe.useState)(!1);(0,Oe.useEffect)(()=>{"collapsed"in Ue&&Mt(Ue.collapsed)},[Ue.collapsed]);const dn=(se,he)=>{"collapsed"in Ue||Mt(se),Xe==null||Xe(se,he)},nn=(0,Oe.useRef)();nn.current=se=>{cn(se.matches),_t==null||_t(se.matches),$e!==se.matches&&dn(se.matches,"responsive")},(0,Oe.useEffect)(()=>{function se(fe){return nn.current(fe)}let he;if(typeof window!="undefined"){const{matchMedia:fe}=window;if(fe&&xe&&xe in Vt){he=fe(`(max-width: ${Vt[xe]})`);try{he.addEventListener("change",se)}catch(ce){he.addListener(se)}se(he)}}return()=>{try{he==null||he.removeEventListener("change",se)}catch(fe){he==null||he.removeListener(se)}}},[xe]),(0,Oe.useEffect)(()=>{const se=gt("ant-sider-");return Qe.addSider(se),()=>Qe.removeSider(se)},[]);const Jt=()=>{dn(!$e,"clickTrigger")},{getPrefixCls:Bt}=(0,Oe.useContext)(yt.E_),ge=()=>{const se=Bt("layout-sider",mt),he=(0,Ge.Z)(St,["collapsed"]),fe=$e?Ht:en,ce=ut(fe)?`${fe}px`:String(fe),Ae=parseFloat(String(Ht||0))===0?Oe.createElement("span",{onClick:Jt,className:Ie()(`${se}-zero-width-trigger`,`${se}-zero-width-trigger-${tn?"right":"left"}`),style:je},kt||Oe.createElement(be,null)):null,Ke={expanded:tn?Oe.createElement(_e.Z,null):Oe.createElement(Ce.Z,null),collapsed:tn?Oe.createElement(Ce.Z,null):Oe.createElement(_e.Z,null)}[$e?"collapsed":"expanded"],Lt=kt!==null?Ae||Oe.createElement("div",{className:`${se}-trigger`,onClick:Jt,style:{width:ce}},kt||Ke):null,xt=Object.assign(Object.assign({},Yt),{flex:`0 0 ${ce}`,maxWidth:ce,minWidth:ce,width:ce}),Ye=Ie()(se,`${se}-${nt}`,{[`${se}-collapsed`]:!!$e,[`${se}-has-trigger`]:ln&&kt!==null&&!Ae,[`${se}-below`]:!!wn,[`${se}-zero-width`]:parseFloat(ce)===0},Je);return Oe.createElement("aside",Object.assign({className:Ye},he,{style:xt,ref:tt}),Oe.createElement("div",{className:`${se}-children`},st),ln||wn&&Ae?Lt:null)},ue=Oe.useMemo(()=>({siderCollapsed:$e}),[$e]);return Oe.createElement(ot.Provider,{value:ue},ge())})},84966:function(mn,un,le){"use strict";le.d(un,{VY:function(){return ot},$_:function(){return Vt},h4:function(){return ht},Gs:function(){return Ge},ZP:function(){return gt}});var oe=le(77654),Oe=le(92310),Ne=le.n(Oe),dt=le(2738),we=le(59301),Te=le(36355),Fe=le(83116),Ce=Ve=>{const{componentCls:Me,bodyBg:Ue,lightSiderBg:tt,lightTriggerBg:mt,lightTriggerColor:Je}=Ve;return{[`${Me}-sider-light`]:{background:tt,[`${Me}-sider-trigger`]:{color:Je,background:mt},[`${Me}-sider-zero-width-trigger`]:{color:Je,background:mt,border:`1px solid ${Ue}`,borderInlineStart:0}}}};const _e=Ve=>{const{antCls:Me,componentCls:Ue,colorText:tt,triggerColor:mt,footerBg:Je,triggerBg:kt,headerHeight:st,headerPadding:Tt,headerColor:nt,footerPadding:Yt,triggerHeight:ln,zeroTriggerHeight:tn,zeroTriggerWidth:en,motionDurationMid:Ht,motionDurationSlow:je,fontSize:xe,borderRadius:Xe,bodyBg:_t,headerBg:St,siderBg:Qe}=Ve;return{[Ue]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:_t,"&, *":{boxSizing:"border-box"},[`&${Ue}-has-sider`]:{flexDirection:"row",[`> ${Ue}, > ${Ue}-content`]:{width:0}},[`${Ue}-header, &${Ue}-footer`]:{flex:"0 0 auto"},[`${Ue}-sider`]:{position:"relative",minWidth:0,background:Qe,transition:`all ${Ht}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Me}-menu${Me}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ln},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ln,color:mt,lineHeight:`${ln}px`,textAlign:"center",background:kt,cursor:"pointer",transition:`all ${Ht}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:st,insetInlineEnd:-en,zIndex:1,width:en,height:tn,color:mt,fontSize:Ve.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Qe,borderStartStartRadius:0,borderStartEndRadius:Xe,borderEndEndRadius:Xe,borderEndStartRadius:0,cursor:"pointer",transition:`background ${je} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${je}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-en,borderStartStartRadius:Xe,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Xe}}}}},Ce(Ve)),{"&-rtl":{direction:"rtl"}}),[`${Ue}-header`]:{height:st,padding:Tt,color:nt,lineHeight:`${st}px`,background:St,[`${Me}-menu`]:{lineHeight:"inherit"}},[`${Ue}-footer`]:{padding:Yt,color:tt,fontSize:xe,background:Je},[`${Ue}-content`]:{flex:"auto",minHeight:0}}};var ft=(0,Fe.Z)("Layout",Ve=>[_e(Ve)],Ve=>{const{colorBgLayout:Me,controlHeight:Ue,controlHeightLG:tt,colorText:mt,controlHeightSM:Je,marginXXS:kt,colorTextLightSolid:st,colorBgContainer:Tt}=Ve,nt=tt*1.25;return{colorBgHeader:"#001529",colorBgBody:Me,colorBgTrigger:"#002140",bodyBg:Me,headerBg:"#001529",headerHeight:Ue*2,headerPadding:`0 ${nt}px`,headerColor:mt,footerPadding:`${Je}px ${nt}px`,footerBg:Me,siderBg:"#001529",triggerHeight:tt+kt*2,triggerBg:"#002140",triggerColor:st,zeroTriggerWidth:tt,zeroTriggerHeight:tt,lightSiderBg:Tt,lightTriggerBg:Tt,lightTriggerColor:mt}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ie=function(Ve,Me){var Ue={};for(var tt in Ve)Object.prototype.hasOwnProperty.call(Ve,tt)&&Me.indexOf(tt)<0&&(Ue[tt]=Ve[tt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,tt=Object.getOwnPropertySymbols(Ve);mt<tt.length;mt++)Me.indexOf(tt[mt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,tt[mt])&&(Ue[tt[mt]]=Ve[tt[mt]]);return Ue};const Ge=we.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function wt(Ve){let{suffixCls:Me,tagName:Ue,displayName:tt}=Ve;return mt=>we.forwardRef((kt,st)=>we.createElement(mt,Object.assign({ref:st,suffixCls:Me,tagName:Ue},kt)))}const ut=we.forwardRef((Ve,Me)=>{const{prefixCls:Ue,suffixCls:tt,className:mt,tagName:Je}=Ve,kt=Ie(Ve,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:st}=we.useContext(Te.E_),Tt=st("layout",Ue),[nt,Yt]=ft(Tt),ln=tt?`${Tt}-${tt}`:Tt;return nt(we.createElement(Je,Object.assign({className:Ne()(Ue||ln,mt,Yt),ref:Me},kt)))}),yt=we.forwardRef((Ve,Me)=>{const{direction:Ue}=we.useContext(Te.E_),[tt,mt]=we.useState([]),{prefixCls:Je,className:kt,rootClassName:st,children:Tt,hasSider:nt,tagName:Yt,style:ln}=Ve,tn=Ie(Ve,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),en=(0,dt.Z)(tn,["suffixCls"]),{getPrefixCls:Ht,layout:je}=we.useContext(Te.E_),xe=Ht("layout",Je),[Xe,_t]=ft(xe),St=Ne()(xe,{[`${xe}-has-sider`]:typeof nt=="boolean"?nt:tt.length>0,[`${xe}-rtl`]:Ue==="rtl"},je==null?void 0:je.className,kt,st,_t),Qe=we.useMemo(()=>({siderHook:{addSider:$e=>{mt(Mt=>[].concat((0,oe.Z)(Mt),[$e]))},removeSider:$e=>{mt(Mt=>Mt.filter(wn=>wn!==$e))}}}),[]);return Xe(we.createElement(Ge.Provider,{value:Qe},we.createElement(Yt,Object.assign({ref:Me,className:St,style:Object.assign(Object.assign({},je==null?void 0:je.style),ln)},en),Tt)))}),lt=wt({tagName:"div",displayName:"Layout"})(yt),ht=wt({suffixCls:"header",tagName:"header",displayName:"Header"})(ut),Vt=wt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ut),ot=wt({suffixCls:"content",tagName:"main",displayName:"Content"})(ut);var gt=lt},40875:function(mn,un,le){"use strict";le.d(un,{J:function(){return Te}});var oe=le(59301),Oe=le(33234),Ne=le(70425),dt=function(Fe,be){var Ce={};for(var _e in Fe)Object.prototype.hasOwnProperty.call(Fe,_e)&&be.indexOf(_e)<0&&(Ce[_e]=Fe[_e]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,_e=Object.getOwnPropertySymbols(Fe);ft<_e.length;ft++)be.indexOf(_e[ft])<0&&Object.prototype.propertyIsEnumerable.call(Fe,_e[ft])&&(Ce[_e[ft]]=Fe[_e[ft]]);return Ce};const we=oe.createContext(null),Te=oe.forwardRef((Fe,be)=>{const{children:Ce}=Fe,_e=dt(Fe,["children"]),ft=oe.useContext(we),Ie=oe.useMemo(()=>Object.assign(Object.assign({},ft),_e),[ft,_e.prefixCls,_e.mode,_e.selectable]);return oe.createElement(we.Provider,{value:Ie},oe.createElement(Oe.BR,null,(0,Ne.supportNodeRef)(Ce)?oe.cloneElement(Ce,{ref:be}):Ce))});un.Z=we},20834:function(mn,un,le){"use strict";le.d(un,{default:function(){return ue}});var oe=le(15285),Oe=le(59301),Ne=le(45818),dt=le(92310),we=le.n(dt),Te=le(36355),Fe=function(se,he){var fe={};for(var ce in se)Object.prototype.hasOwnProperty.call(se,ce)&&he.indexOf(ce)<0&&(fe[ce]=se[ce]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ce=Object.getOwnPropertySymbols(se);Ae<ce.length;Ae++)he.indexOf(ce[Ae])<0&&Object.prototype.propertyIsEnumerable.call(se,ce[Ae])&&(fe[ce[Ae]]=se[ce[Ae]]);return fe},Ce=se=>{const{prefixCls:he,className:fe,dashed:ce}=se,Ae=Fe(se,["prefixCls","className","dashed"]),{getPrefixCls:rt}=Oe.useContext(Te.E_),Le=rt("menu",he),Ke=we()({[`${Le}-item-divider-dashed`]:!!ce},fe);return Oe.createElement(oe.iz,Object.assign({className:Ke},Ae))},_e=le(11592),ft=le(2738),Ie=le(6848),Ge=le(92343),ut=(0,Oe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),lt=se=>{var he;const{className:fe,children:ce,icon:Ae,title:rt,danger:Le}=se,{prefixCls:Ke,firstLevel:Lt,direction:xt,disableMenuItemTitleTooltip:Ye,inlineCollapsed:Pt}=Oe.useContext(ut),hn=qe=>{const Ot=Oe.createElement("span",{className:`${Ke}-title-content`},ce);return(!Ae||(0,Ge.l$)(ce)&&ce.type==="span")&&ce&&qe&&Lt&&typeof ce=="string"?Oe.createElement("div",{className:`${Ke}-inline-collapsed-noicon`},ce.charAt(0)):Ot},{siderCollapsed:at}=Oe.useContext(Ne.D);let Xt=rt;typeof rt=="undefined"?Xt=Lt?ce:"":rt===!1&&(Xt="");const fn={title:Xt};!at&&!Pt&&(fn.title=null,fn.open=!1);const et=(0,_e.Z)(ce).length;let De=Oe.createElement(oe.ck,Object.assign({},(0,ft.Z)(se,["title","icon","danger"]),{className:we()({[`${Ke}-item-danger`]:Le,[`${Ke}-item-only-child`]:(Ae?et+1:et)===1},fe),title:typeof rt=="string"?rt:void 0}),(0,Ge.Tm)(Ae,{className:we()((0,Ge.l$)(Ae)?(he=Ae.props)===null||he===void 0?void 0:he.className:"",`${Ke}-item-icon`)}),hn(Pt));return Ye||(De=Oe.createElement(Ie.Z,Object.assign({},fn,{placement:xt==="rtl"?"left":"right",overlayClassName:`${Ke}-inline-collapsed-tooltip`}),De)),De},Vt=se=>{var he;const{popupClassName:fe,icon:ce,title:Ae,theme:rt}=se,Le=Oe.useContext(ut),{prefixCls:Ke,inlineCollapsed:Lt,theme:xt}=Le,Ye=(0,oe.Xl)();let Pt;if(!ce)Pt=Lt&&!Ye.length&&Ae&&typeof Ae=="string"?Oe.createElement("div",{className:`${Ke}-inline-collapsed-noicon`},Ae.charAt(0)):Oe.createElement("span",{className:`${Ke}-title-content`},Ae);else{const at=(0,Ge.l$)(Ae)&&Ae.type==="span";Pt=Oe.createElement(Oe.Fragment,null,(0,Ge.Tm)(ce,{className:we()((0,Ge.l$)(ce)?(he=ce.props)===null||he===void 0?void 0:he.className:"",`${Ke}-item-icon`)}),at?Ae:Oe.createElement("span",{className:`${Ke}-title-content`},Ae))}const hn=Oe.useMemo(()=>Object.assign(Object.assign({},Le),{firstLevel:!1}),[Le]);return Oe.createElement(ut.Provider,{value:hn},Oe.createElement(oe.Wd,Object.assign({},(0,ft.Z)(se,["icon"]),{title:Pt,popupClassName:we()(Ke,fe,`${Ke}-${rt||xt}`)})))},ot=le(18785),gt=le(70425),Ve=le(62892),Me=le(40875),Ue=function(se,he){var fe={};for(var ce in se)Object.prototype.hasOwnProperty.call(se,ce)&&he.indexOf(ce)<0&&(fe[ce]=se[ce]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ce=Object.getOwnPropertySymbols(se);Ae<ce.length;Ae++)he.indexOf(ce[Ae])<0&&Object.prototype.propertyIsEnumerable.call(se,ce[Ae])&&(fe[ce[Ae]]=se[ce[Ae]]);return fe};function tt(se){return(se||[]).map((he,fe)=>{if(he&&typeof he=="object"){const ce=he,{label:Ae,children:rt,key:Le,type:Ke}=ce,Lt=Ue(ce,["label","children","key","type"]),xt=Le!=null?Le:`tmp-${fe}`;return rt||Ke==="group"?Ke==="group"?Oe.createElement(oe.BW,Object.assign({key:xt},Lt,{title:Ae}),tt(rt)):Oe.createElement(Vt,Object.assign({key:xt},Lt,{title:Ae}),tt(rt)):Ke==="divider"?Oe.createElement(Ce,Object.assign({key:xt},Lt)):Oe.createElement(lt,Object.assign({key:xt},Lt),Ae)}return null}).filter(he=>he)}function mt(se){return Oe.useMemo(()=>se&&tt(se),[se])}var Je=le(64993),kt=le(17313),st=le(8378),Tt=le(13826),nt=le(29878),Yt=le(83116),ln=le(37613),en=se=>{const{componentCls:he,motionDurationSlow:fe,horizontalLineHeight:ce,colorSplit:Ae,lineWidth:rt,lineType:Le,itemPaddingInline:Ke}=se;return{[`${he}-horizontal`]:{lineHeight:ce,border:0,borderBottom:`${rt}px ${Le} ${Ae}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${he}-item, ${he}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ke},[`> ${he}-item:hover,
|
|
|
> ${he}-item-active,
|
|
|
> ${he}-submenu ${he}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${he}-item, ${he}-submenu-title`]:{transition:[`border-color ${fe}`,`background ${fe}`].join(",")},[`${he}-submenu-arrow`]:{display:"none"}}}},je=se=>{let{componentCls:he,menuArrowOffset:fe}=se;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(-${fe})`},"&::after":{transform:`rotate(45deg) translateY(${fe})`}}}}};const xe=se=>Object.assign({},(0,kt.oN)(se));var _t=(se,he)=>{const{componentCls:fe,itemColor:ce,itemSelectedColor:Ae,groupTitleColor:rt,itemBg:Le,subMenuItemBg:Ke,itemSelectedBg:Lt,activeBarHeight:xt,activeBarWidth:Ye,activeBarBorderWidth:Pt,motionDurationSlow:hn,motionEaseInOut:at,motionEaseOut:Xt,itemPaddingInline:fn,motionDurationMid:et,itemHoverColor:De,lineType:qe,colorSplit:Ot,itemDisabledColor:Gt,dangerItemColor:an,dangerItemHoverColor:Mn,dangerItemSelectedColor:Dn,dangerItemActiveBg:Ln,dangerItemSelectedBg:Un,itemHoverBg:Wn,itemActiveBg:On,menuSubMenuBg:Hn,horizontalItemSelectedColor:Dr,horizontalItemSelectedBg:Pr,horizontalItemBorderRadius:fr,horizontalItemHoverBg:Jn,popupBg:Fr}=se;return{[`${fe}-${he}, ${fe}-${he} > ${fe}`]:{color:ce,background:Le,[`&${fe}-root:focus-visible`]:Object.assign({},xe(se)),[`${fe}-item-group-title`]:{color:rt},[`${fe}-submenu-selected`]:{[`> ${fe}-submenu-title`]:{color:Ae}},[`${fe}-item-disabled, ${fe}-submenu-disabled`]:{color:`${Gt} !important`},[`${fe}-item:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{[`&:hover, > ${fe}-submenu-title:hover`]:{color:De}},[`&:not(${fe}-horizontal)`]:{[`${fe}-item:not(${fe}-item-selected)`]:{"&:hover":{backgroundColor:Wn},"&:active":{backgroundColor:On}},[`${fe}-submenu-title`]:{"&:hover":{backgroundColor:Wn},"&:active":{backgroundColor:On}}},[`${fe}-item-danger`]:{color:an,[`&${fe}-item:hover`]:{[`&:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{color:Mn}},[`&${fe}-item:active`]:{background:Ln}},[`${fe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${fe}-item-selected`]:{color:Ae,[`&${fe}-item-danger`]:{color:Dn},"a, a:hover":{color:"inherit"}},[`& ${fe}-item-selected`]:{backgroundColor:Lt,[`&${fe}-item-danger`]:{backgroundColor:Un}},[`${fe}-item, ${fe}-submenu-title`]:{[`&:not(${fe}-item-disabled):focus-visible`]:Object.assign({},xe(se))},[`&${fe}-submenu > ${fe}`]:{backgroundColor:Hn},[`&${fe}-popup > ${fe}`]:{backgroundColor:Fr},[`&${fe}-horizontal`]:Object.assign(Object.assign({},he==="dark"?{borderBottom:0}:{}),{[`> ${fe}-item, > ${fe}-submenu`]:{top:Pt,marginTop:-Pt,marginBottom:0,borderRadius:fr,"&::after":{position:"absolute",insetInline:fn,bottom:0,borderBottom:`${xt}px solid transparent`,transition:`border-color ${hn} ${at}`,content:'""'},"&:hover, &-active, &-open":{background:Jn,"&::after":{borderBottomWidth:xt,borderBottomColor:Dr}},"&-selected":{color:Dr,backgroundColor:Pr,"&:hover":{backgroundColor:Pr},"&::after":{borderBottomWidth:xt,borderBottomColor:Dr}}}}),[`&${fe}-root`]:{[`&${fe}-inline, &${fe}-vertical`]:{borderInlineEnd:`${Pt}px ${qe} ${Ot}`}},[`&${fe}-inline`]:{[`${fe}-sub${fe}-inline`]:{background:Ke},[`${fe}-item, ${fe}-submenu-title`]:Pt&&Ye?{width:`calc(100% + ${Pt}px)`}:{},[`${fe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ye}px solid ${Ae}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${et} ${Xt}`,`opacity ${et} ${Xt}`].join(","),content:'""'},[`&${fe}-item-danger`]:{"&::after":{borderInlineEndColor:Dn}}},[`${fe}-selected, ${fe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${et} ${at}`,`opacity ${et} ${at}`].join(",")}}}}}};const St=se=>{const{componentCls:he,itemHeight:fe,itemMarginInline:ce,padding:Ae,menuArrowSize:rt,marginXS:Le,itemMarginBlock:Ke}=se,Lt=Ae+rt+Le;return{[`${he}-item`]:{position:"relative",overflow:"hidden"},[`${he}-item, ${he}-submenu-title`]:{height:fe,lineHeight:`${fe}px`,paddingInline:Ae,overflow:"hidden",textOverflow:"ellipsis",marginInline:ce,marginBlock:Ke,width:`calc(100% - ${ce*2}px)`},[`> ${he}-item,
|
|
|
> ${he}-submenu > ${he}-submenu-title`]:{height:fe,lineHeight:`${fe}px`},[`${he}-item-group-list ${he}-submenu-title,
|
|
|
${he}-submenu-title`]:{paddingInlineEnd:Lt}}};var $e=se=>{const{componentCls:he,iconCls:fe,itemHeight:ce,colorTextLightSolid:Ae,dropdownWidth:rt,controlHeightLG:Le,motionDurationMid:Ke,motionEaseOut:Lt,paddingXL:xt,itemMarginInline:Ye,fontSizeLG:Pt,motionDurationSlow:hn,paddingXS:at,boxShadowSecondary:Xt,collapsedWidth:fn,collapsedIconSize:et}=se,De={height:ce,lineHeight:`${ce}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[he]:{"&-inline, &-vertical":Object.assign({[`&${he}-root`]:{boxShadow:"none"}},St(se))},[`${he}-submenu-popup`]:{[`${he}-vertical`]:Object.assign(Object.assign({},St(se)),{boxShadow:Xt})}},{[`${he}-submenu-popup ${he}-vertical${he}-sub`]:{minWidth:rt,maxHeight:`calc(100vh - ${Le*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 ${hn}`,`background ${hn}`,`padding ${Ke} ${Lt}`].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`]:De,[`& ${he}-item-group-title`]:{paddingInlineStart:xt}},[`${he}-item`]:De}},{[`${he}-inline-collapsed`]:{width:fn,[`&${he}-root`]:{[`${he}-item, ${he}-submenu ${he}-submenu-title`]:{[`> ${he}-inline-collapsed-noicon`]:{fontSize:Pt,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% - ${Pt/2}px - ${Ye}px)`,textOverflow:"clip",[`
|
|
|
${he}-submenu-arrow,
|
|
|
${he}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${he}-item-icon, ${fe}`]:{margin:0,fontSize:et,lineHeight:`${ce}px`,"+ span":{display:"inline-block",opacity:0}}},[`${he}-item-icon, ${fe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${he}-item-icon, ${fe}`]:{display:"none"},"a, a:hover":{color:Ae}},[`${he}-item-group-title`]:Object.assign(Object.assign({},kt.vS),{paddingInline:at})}}]};const Mt=se=>{const{componentCls:he,motionDurationSlow:fe,motionDurationMid:ce,motionEaseInOut:Ae,motionEaseOut:rt,iconCls:Le,iconSize:Ke,iconMarginInlineEnd:Lt}=se;return{[`${he}-item, ${he}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${fe}`,`background ${fe}`,`padding ${fe} ${Ae}`].join(","),[`${he}-item-icon, ${Le}`]:{minWidth:Ke,fontSize:Ke,transition:[`font-size ${ce} ${rt}`,`margin ${fe} ${Ae}`,`color ${fe}`].join(","),"+ span":{marginInlineStart:Lt,opacity:1,transition:[`opacity ${fe} ${Ae}`,`margin ${fe}`,`color ${fe}`].join(",")}},[`${he}-item-icon`]:Object.assign({},(0,kt.Ro)()),[`&${he}-item-only-child`]:{[`> ${Le}, > ${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"}}}},wn=se=>{const{componentCls:he,motionDurationSlow:fe,motionEaseInOut:ce,borderRadius:Ae,menuArrowSize:rt,menuArrowOffset:Le}=se;return{[`${he}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:se.margin,width:rt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${fe} ${ce}, opacity ${fe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:rt*.6,height:rt*.15,backgroundColor:"currentcolor",borderRadius:Ae,transition:[`background ${fe} ${ce}`,`transform ${fe} ${ce}`,`top ${fe} ${ce}`,`color ${fe} ${ce}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Le})`},"&::after":{transform:`rotate(-45deg) translateY(${Le})`}}}}},cn=se=>{const{antCls:he,componentCls:fe,fontSize:ce,motionDurationSlow:Ae,motionDurationMid:rt,motionEaseInOut:Le,paddingXS:Ke,padding:Lt,colorSplit:xt,lineWidth:Ye,zIndexPopup:Pt,borderRadiusLG:hn,subMenuItemBorderRadius:at,menuArrowSize:Xt,menuArrowOffset:fn,lineType:et,menuPanelMaskInset:De,groupTitleLineHeight:qe,groupTitleFontSize:Ot}=se;return[{"":{[`${fe}`]:Object.assign(Object.assign({},(0,kt.dF)()),{"&-hidden":{display:"none"}})},[`${fe}-submenu-hidden`]:{display:"none"}},{[fe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,kt.Wf)(se)),(0,kt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ce,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ae} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${fe}-item`]:{flex:"none"}},[`${fe}-item, ${fe}-submenu, ${fe}-submenu-title`]:{borderRadius:se.itemBorderRadius},[`${fe}-item-group-title`]:{padding:`${Ke}px ${Lt}px`,fontSize:Ot,lineHeight:qe,transition:`all ${Ae}`},[`&-horizontal ${fe}-submenu`]:{transition:[`border-color ${Ae} ${Le}`,`background ${Ae} ${Le}`].join(",")},[`${fe}-submenu, ${fe}-submenu-inline`]:{transition:[`border-color ${Ae} ${Le}`,`background ${Ae} ${Le}`,`padding ${rt} ${Le}`].join(",")},[`${fe}-submenu ${fe}-sub`]:{cursor:"initial",transition:[`background ${Ae} ${Le}`,`padding ${Ae} ${Le}`].join(",")},[`${fe}-title-content`]:{transition:`color ${Ae}`},[`${fe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${fe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:xt,borderStyle:et,borderWidth:0,borderTopWidth:Ye,marginBlock:Ye,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Mt(se)),{[`${fe}-item-group`]:{[`${fe}-item-group-list`]:{margin:0,padding:0,[`${fe}-item, ${fe}-submenu-title`]:{paddingInline:`${ce*2}px ${Lt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Pt,borderRadius:hn,boxShadow:"none",transformOrigin:"0 0",[`&${fe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${De}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:De},"\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:se.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:se.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:se.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:se.paddingXS},[`> ${fe}`]:Object.assign(Object.assign(Object.assign({borderRadius:hn},Mt(se)),wn(se)),{[`${fe}-item, ${fe}-submenu > ${fe}-submenu-title`]:{borderRadius:at},[`${fe}-submenu-title::after`]:{transition:`transform ${Ae} ${Le}`}})}}),wn(se)),{[`&-inline-collapsed ${fe}-submenu-arrow,
|
|
|
&-inline ${fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${fn})`},"&::after":{transform:`rotate(45deg) translateX(-${fn})`}},[`${fe}-submenu-open${fe}-submenu-inline > ${fe}-submenu-title > ${fe}-submenu-arrow`]:{transform:`translateY(-${Xt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${fn})`},"&::before":{transform:`rotate(45deg) translateX(${fn})`}}})},{[`${he}-layout-header`]:{[fe]:{lineHeight:"inherit"}}}]};var dn=(se,he)=>(0,Yt.Z)("Menu",ce=>{if(he===!1)return[];const{colorBgElevated:Ae,colorPrimary:rt,colorTextLightSolid:Le,controlHeightLG:Ke,fontSize:Lt,darkItemColor:xt,darkDangerItemColor:Ye,darkItemBg:Pt,darkSubMenuItemBg:hn,darkItemSelectedColor:at,darkItemSelectedBg:Xt,darkDangerItemSelectedBg:fn,darkItemHoverBg:et,darkGroupTitleColor:De,darkItemHoverColor:qe,darkItemDisabledColor:Ot,darkDangerItemHoverColor:Gt,darkDangerItemSelectedColor:an,darkDangerItemActiveBg:Mn}=ce,Dn=Lt/7*5,Ln=(0,ln.TS)(ce,{menuArrowSize:Dn,menuHorizontalHeight:Ke*1.15,menuArrowOffset:`${Dn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ae}),Un=(0,ln.TS)(Ln,{itemColor:xt,itemHoverColor:qe,groupTitleColor:De,itemSelectedColor:at,itemBg:Pt,popupBg:Pt,subMenuItemBg:hn,itemActiveBg:"transparent",itemSelectedBg:Xt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:et,itemDisabledColor:Ot,dangerItemColor:Ye,dangerItemHoverColor:Gt,dangerItemSelectedColor:an,dangerItemActiveBg:Mn,dangerItemSelectedBg:fn,menuSubMenuBg:hn,horizontalItemSelectedColor:Le,horizontalItemSelectedBg:rt});return[cn(Ln),en(Ln),$e(Ln),_t(Ln,"light"),_t(Un,"dark"),je(Ln),(0,st.Z)(Ln),(0,Tt.oN)(Ln,"slide-up"),(0,Tt.oN)(Ln,"slide-down"),(0,nt._y)(Ln,"zoom-big")]},ce=>{const{colorPrimary:Ae,colorError:rt,colorTextDisabled:Le,colorErrorBg:Ke,colorText:Lt,colorTextDescription:xt,colorBgContainer:Ye,colorFillAlter:Pt,colorFillContent:hn,lineWidth:at,lineWidthBold:Xt,controlItemBgActive:fn,colorBgTextHover:et,controlHeightLG:De,lineHeight:qe,colorBgElevated:Ot,marginXXS:Gt,padding:an,fontSize:Mn,controlHeightSM:Dn,fontSizeLG:Ln,colorTextLightSolid:Un,colorErrorHover:Wn}=ce,On=new Je.C(Un).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ce.zIndexPopupBase+50,radiusItem:ce.borderRadiusLG,itemBorderRadius:ce.borderRadiusLG,radiusSubMenuItem:ce.borderRadiusSM,subMenuItemBorderRadius:ce.borderRadiusSM,colorItemText:Lt,itemColor:Lt,colorItemTextHover:Lt,itemHoverColor:Lt,colorItemTextHoverHorizontal:Ae,horizontalItemHoverColor:Ae,colorGroupTitle:xt,groupTitleColor:xt,colorItemTextSelected:Ae,itemSelectedColor:Ae,colorItemTextSelectedHorizontal:Ae,horizontalItemSelectedColor:Ae,colorItemBg:Ye,itemBg:Ye,colorItemBgHover:et,itemHoverBg:et,colorItemBgActive:hn,itemActiveBg:fn,colorSubItemBg:Pt,subMenuItemBg:Pt,colorItemBgSelected:fn,itemSelectedBg:fn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Xt,activeBarHeight:Xt,colorActiveBarBorderSize:at,activeBarBorderWidth:at,colorItemTextDisabled:Le,itemDisabledColor:Le,colorDangerItemText:rt,dangerItemColor:rt,colorDangerItemTextHover:rt,dangerItemHoverColor:rt,colorDangerItemTextSelected:rt,dangerItemSelectedColor:rt,colorDangerItemBgActive:Ke,dangerItemActiveBg:Ke,colorDangerItemBgSelected:Ke,dangerItemSelectedBg:Ke,itemMarginInline:ce.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:De,groupTitleLineHeight:qe,collapsedWidth:De*2,popupBg:Ot,itemMarginBlock:Gt,itemPaddingInline:an,horizontalLineHeight:`${De*1.15}px`,iconSize:Mn,iconMarginInlineEnd:Dn-Mn,collapsedIconSize:Ln,groupTitleFontSize:Mn,darkItemDisabledColor:new Je.C(Un).setAlpha(.25).toRgbString(),darkItemColor:On,darkDangerItemColor:rt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Un,darkItemSelectedBg:Ae,darkDangerItemSelectedBg:rt,darkItemHoverBg:"transparent",darkGroupTitleColor:On,darkItemHoverColor:Un,darkDangerItemHoverColor:Wn,darkDangerItemSelectedColor:Un,darkDangerItemActiveBg:rt}},{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"]]})(se),nn=function(se,he){var fe={};for(var ce in se)Object.prototype.hasOwnProperty.call(se,ce)&&he.indexOf(ce)<0&&(fe[ce]=se[ce]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ce=Object.getOwnPropertySymbols(se);Ae<ce.length;Ae++)he.indexOf(ce[Ae])<0&&Object.prototype.propertyIsEnumerable.call(se,ce[Ae])&&(fe[ce[Ae]]=se[ce[Ae]]);return fe},Bt=(0,Oe.forwardRef)((se,he)=>{var fe,ce;const Ae=Oe.useContext(Me.Z),rt=Ae||{},{getPrefixCls:Le,getPopupContainer:Ke,direction:Lt,menu:xt}=Oe.useContext(Te.E_),Ye=Le(),{prefixCls:Pt,className:hn,style:at,theme:Xt="light",expandIcon:fn,_internalDisableMenuItemTitleTooltip:et,inlineCollapsed:De,siderCollapsed:qe,items:Ot,children:Gt,rootClassName:an,mode:Mn,selectable:Dn,onClick:Ln,overflowedIndicatorPopupClassName:Un}=se,Wn=nn(se,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),On=(0,ft.Z)(Wn,["collapsedWidth"]),Hn=mt(Ot)||Gt;(fe=rt.validator)===null||fe===void 0||fe.call(rt,{mode:Mn});const Dr=(0,gt.useEvent)(function(){var $n;Ln==null||Ln.apply(void 0,arguments),($n=rt.onClick)===null||$n===void 0||$n.call(rt)}),Pr=rt.mode||Mn,fr=Dn!=null?Dn:rt.selectable,Jn=Oe.useMemo(()=>qe!==void 0?qe:De,[De,qe]),Fr={horizontal:{motionName:`${Ye}-slide-up`},inline:(0,Ve.Z)(Ye),other:{motionName:`${Ye}-zoom-big`}},Tn=Le("menu",Pt||rt.prefixCls),[Ir,Yr]=dn(Tn,!Ae),nr=we()(`${Tn}-${Xt}`,xt==null?void 0:xt.className,hn);let $r;if(typeof fn=="function")$r=fn;else if(fn===null||fn===!1)$r=null;else if(rt.expandIcon===null||rt.expandIcon===!1)$r=null;else{const $n=fn!=null?fn:rt.expandIcon;$r=(0,Ge.Tm)($n,{className:we()(`${Tn}-submenu-expand-icon`,(0,Ge.l$)($n)?(ce=$n.props)===null||ce===void 0?void 0:ce.className:"")})}const Qr=Oe.useMemo(()=>({prefixCls:Tn,inlineCollapsed:Jn||!1,direction:Lt,firstLevel:!0,theme:Xt,mode:Pr,disableMenuItemTitleTooltip:et}),[Tn,Jn,Lt,et,Xt]);return Ir(Oe.createElement(Me.Z.Provider,{value:null},Oe.createElement(ut.Provider,{value:Qr},Oe.createElement(oe.ZP,Object.assign({getPopupContainer:Ke,overflowedIndicator:Oe.createElement(ot.Z,null),overflowedIndicatorPopupClassName:we()(Tn,`${Tn}-${Xt}`,Un),mode:Pr,selectable:fr,onClick:Dr},On,{inlineCollapsed:Jn,style:Object.assign(Object.assign({},xt==null?void 0:xt.style),at),className:nr,prefixCls:Tn,direction:Lt,defaultMotions:Fr,expandIcon:$r,ref:he,rootClassName:we()(an,Yr)}),Hn))))});const ge=(0,Oe.forwardRef)((se,he)=>{const fe=(0,Oe.useRef)(null),ce=Oe.useContext(Ne.D);return(0,Oe.useImperativeHandle)(he,()=>({menu:fe.current,focus:Ae=>{var rt;(rt=fe.current)===null||rt===void 0||rt.focus(Ae)}})),Oe.createElement(Bt,Object.assign({ref:fe},se,ce))});ge.Item=lt,ge.SubMenu=Vt,ge.Divider=Ce,ge.ItemGroup=oe.BW;var ue=ge},58421:function(mn,un,le){"use strict";le.d(un,{Z:function(){return rt}});var oe=le(60499),Oe=le(59301),Ne={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"},dt=Ne,we=le(85221),Te=function(Ke,Lt){return Oe.createElement(we.Z,(0,oe.Z)({},Ke,{ref:Lt,icon:dt}))},Fe=Oe.forwardRef(Te),be=Fe,Ce=le(49198),_e=le(33853),ft=le(38819),Ie=le(92310),Ge=le.n(Ie),wt=le(18642),ut=le(85899),yt=le(38705),lt=le(17212),ht=le(39153),Vt=le(55401),ot=le(26112),gt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Ve=gt,Me=le(91735),Ue=function(Le){(0,ht.Z)(Lt,Le);var Ke=(0,Vt.Z)(Lt);function Lt(){var xt;(0,yt.Z)(this,Lt);for(var Ye=arguments.length,Pt=new Array(Ye),hn=0;hn<Ye;hn++)Pt[hn]=arguments[hn];return xt=Ke.call.apply(Ke,[this].concat(Pt)),xt.state={goInputText:""},xt.getValidValue=function(){var at=xt.state.goInputText;return!at||Number.isNaN(at)?void 0:Number(at)},xt.buildOptionText=function(at){return"".concat(at," ").concat(xt.props.locale.items_per_page)},xt.changeSize=function(at){xt.props.changeSize(Number(at))},xt.handleChange=function(at){xt.setState({goInputText:at.target.value})},xt.handleBlur=function(at){var Xt=xt.props,fn=Xt.goButton,et=Xt.quickGo,De=Xt.rootPrefixCls,qe=xt.state.goInputText;fn||qe===""||(xt.setState({goInputText:""}),!(at.relatedTarget&&(at.relatedTarget.className.indexOf("".concat(De,"-item-link"))>=0||at.relatedTarget.className.indexOf("".concat(De,"-item"))>=0))&&et(xt.getValidValue()))},xt.go=function(at){var Xt=xt.state.goInputText;Xt!==""&&(at.keyCode===Ve.ENTER||at.type==="click")&&(xt.setState({goInputText:""}),xt.props.quickGo(xt.getValidValue()))},xt}return(0,lt.Z)(Lt,[{key:"getPageSizeOptions",value:function(){var Ye=this.props,Pt=Ye.pageSize,hn=Ye.pageSizeOptions;return hn.some(function(at){return at.toString()===Pt.toString()})?hn:hn.concat([Pt.toString()]).sort(function(at,Xt){var fn=Number.isNaN(Number(at))?0:Number(at),et=Number.isNaN(Number(Xt))?0:Number(Xt);return fn-et})}},{key:"render",value:function(){var Ye=this,Pt=this.props,hn=Pt.pageSize,at=Pt.locale,Xt=Pt.rootPrefixCls,fn=Pt.changeSize,et=Pt.quickGo,De=Pt.goButton,qe=Pt.selectComponentClass,Ot=Pt.buildOptionText,Gt=Pt.selectPrefixCls,an=Pt.disabled,Mn=this.state.goInputText,Dn="".concat(Xt,"-options"),Ln=qe,Un=null,Wn=null,On=null;if(!fn&&!et)return null;var Hn=this.getPageSizeOptions();if(fn&&Ln){var Dr=Hn.map(function(Pr,fr){return Oe.createElement(Ln.Option,{key:fr,value:Pr.toString()},(Ot||Ye.buildOptionText)(Pr))});Un=Oe.createElement(Ln,{disabled:an,prefixCls:Gt,showSearch:!1,className:"".concat(Dn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(hn||Hn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(fr){return fr.parentNode},"aria-label":at.page_size,defaultOpen:!1},Dr)}return et&&(De&&(On=typeof De=="boolean"?Oe.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:an,className:"".concat(Dn,"-quick-jumper-button")},at.jump_to_confirm):Oe.createElement("span",{onClick:this.go,onKeyUp:this.go},De)),Wn=Oe.createElement("div",{className:"".concat(Dn,"-quick-jumper")},at.jump_to,Oe.createElement("input",{disabled:an,type:"text",value:Mn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":at.page}),at.page,On)),Oe.createElement("li",{className:"".concat(Dn)},Un,Wn)}}]),Lt}(Oe.Component);Ue.defaultProps={pageSizeOptions:["10","20","50","100"]};var tt=Ue,mt=function(Ke){var Lt,xt=Ke.rootPrefixCls,Ye=Ke.page,Pt=Ke.active,hn=Ke.className,at=Ke.showTitle,Xt=Ke.onClick,fn=Ke.onKeyPress,et=Ke.itemRender,De="".concat(xt,"-item"),qe=Ge()(De,"".concat(De,"-").concat(Ye),(Lt={},(0,wt.Z)(Lt,"".concat(De,"-active"),Pt),(0,wt.Z)(Lt,"".concat(De,"-disabled"),!Ye),(0,wt.Z)(Lt,Ke.className,hn),Lt)),Ot=function(){Xt(Ye)},Gt=function(Dn){fn(Dn,Xt,Ye)},an=et(Ye,"page",Oe.createElement("a",{rel:"nofollow"},Ye));return an?Oe.createElement("li",{title:at?Ye.toString():null,className:qe,onClick:Ot,onKeyPress:Gt,tabIndex:0},an):null},Je=mt;function kt(){}function st(Le){var Ke=Number(Le);return typeof Ke=="number"&&!Number.isNaN(Ke)&&isFinite(Ke)&&Math.floor(Ke)===Ke}var Tt=function(Ke,Lt,xt){return xt};function nt(Le,Ke,Lt){var xt=typeof Le=="undefined"?Ke.pageSize:Le;return Math.floor((Lt.total-1)/xt)+1}var Yt=function(Le){(0,ht.Z)(Lt,Le);var Ke=(0,Vt.Z)(Lt);function Lt(xt){var Ye;(0,yt.Z)(this,Lt),Ye=Ke.call(this,xt),Ye.paginationNode=Oe.createRef(),Ye.getJumpPrevPage=function(){return Math.max(1,Ye.state.current-(Ye.props.showLessItems?3:5))},Ye.getJumpNextPage=function(){return Math.min(nt(void 0,Ye.state,Ye.props),Ye.state.current+(Ye.props.showLessItems?3:5))},Ye.getItemIcon=function(fn,et){var De=Ye.props.prefixCls,qe=fn||Oe.createElement("button",{type:"button","aria-label":et,className:"".concat(De,"-item-link")});return typeof fn=="function"&&(qe=Oe.createElement(fn,(0,ut.Z)({},Ye.props))),qe},Ye.isValid=function(fn){var et=Ye.props.total;return st(fn)&&fn!==Ye.state.current&&st(et)&&et>0},Ye.shouldDisplayQuickJumper=function(){var fn=Ye.props,et=fn.showQuickJumper,De=fn.total,qe=Ye.state.pageSize;return De<=qe?!1:et},Ye.handleKeyDown=function(fn){(fn.keyCode===Ve.ARROW_UP||fn.keyCode===Ve.ARROW_DOWN)&&fn.preventDefault()},Ye.handleKeyUp=function(fn){var et=Ye.getValidValue(fn),De=Ye.state.currentInputValue;et!==De&&Ye.setState({currentInputValue:et}),fn.keyCode===Ve.ENTER?Ye.handleChange(et):fn.keyCode===Ve.ARROW_UP?Ye.handleChange(et-1):fn.keyCode===Ve.ARROW_DOWN&&Ye.handleChange(et+1)},Ye.handleBlur=function(fn){var et=Ye.getValidValue(fn);Ye.handleChange(et)},Ye.changePageSize=function(fn){var et=Ye.state.current,De=nt(fn,Ye.state,Ye.props);et=et>De?De:et,De===0&&(et=Ye.state.current),typeof fn=="number"&&("pageSize"in Ye.props||Ye.setState({pageSize:fn}),"current"in Ye.props||Ye.setState({current:et,currentInputValue:et})),Ye.props.onShowSizeChange(et,fn),"onChange"in Ye.props&&Ye.props.onChange&&Ye.props.onChange(et,fn)},Ye.handleChange=function(fn){var et=Ye.props,De=et.disabled,qe=et.onChange,Ot=Ye.state,Gt=Ot.pageSize,an=Ot.current,Mn=Ot.currentInputValue;if(Ye.isValid(fn)&&!De){var Dn=nt(void 0,Ye.state,Ye.props),Ln=fn;return fn>Dn?Ln=Dn:fn<1&&(Ln=1),"current"in Ye.props||Ye.setState({current:Ln}),Ln!==Mn&&Ye.setState({currentInputValue:Ln}),qe(Ln,Gt),Ln}return an},Ye.prev=function(){Ye.hasPrev()&&Ye.handleChange(Ye.state.current-1)},Ye.next=function(){Ye.hasNext()&&Ye.handleChange(Ye.state.current+1)},Ye.jumpPrev=function(){Ye.handleChange(Ye.getJumpPrevPage())},Ye.jumpNext=function(){Ye.handleChange(Ye.getJumpNextPage())},Ye.hasPrev=function(){return Ye.state.current>1},Ye.hasNext=function(){return Ye.state.current<nt(void 0,Ye.state,Ye.props)},Ye.runIfEnter=function(fn,et){if(fn.key==="Enter"||fn.charCode===13){for(var De=arguments.length,qe=new Array(De>2?De-2:0),Ot=2;Ot<De;Ot++)qe[Ot-2]=arguments[Ot];et.apply(void 0,qe)}},Ye.runIfEnterPrev=function(fn){Ye.runIfEnter(fn,Ye.prev)},Ye.runIfEnterNext=function(fn){Ye.runIfEnter(fn,Ye.next)},Ye.runIfEnterJumpPrev=function(fn){Ye.runIfEnter(fn,Ye.jumpPrev)},Ye.runIfEnterJumpNext=function(fn){Ye.runIfEnter(fn,Ye.jumpNext)},Ye.handleGoTO=function(fn){(fn.keyCode===Ve.ENTER||fn.type==="click")&&Ye.handleChange(Ye.state.currentInputValue)},Ye.renderPrev=function(fn){var et=Ye.props,De=et.prevIcon,qe=et.itemRender,Ot=qe(fn,"prev",Ye.getItemIcon(De,"prev page")),Gt=!Ye.hasPrev();return(0,Oe.isValidElement)(Ot)?(0,Oe.cloneElement)(Ot,{disabled:Gt}):Ot},Ye.renderNext=function(fn){var et=Ye.props,De=et.nextIcon,qe=et.itemRender,Ot=qe(fn,"next",Ye.getItemIcon(De,"next page")),Gt=!Ye.hasNext();return(0,Oe.isValidElement)(Ot)?(0,Oe.cloneElement)(Ot,{disabled:Gt}):Ot};var Pt=xt.onChange!==kt,hn="current"in xt;hn&&!Pt&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var at=xt.defaultCurrent;"current"in xt&&(at=xt.current);var Xt=xt.defaultPageSize;return"pageSize"in xt&&(Xt=xt.pageSize),at=Math.min(at,nt(Xt,void 0,xt)),Ye.state={current:at,currentInputValue:at,pageSize:Xt},Ye}return(0,lt.Z)(Lt,[{key:"componentDidUpdate",value:function(Ye,Pt){var hn=this.props.prefixCls;if(Pt.current!==this.state.current&&this.paginationNode.current){var at=this.paginationNode.current.querySelector(".".concat(hn,"-item-").concat(Pt.current));if(at&&document.activeElement===at){var Xt;at==null||(Xt=at.blur)===null||Xt===void 0||Xt.call(at)}}}},{key:"getValidValue",value:function(Ye){var Pt=Ye.target.value,hn=nt(void 0,this.state,this.props),at=this.state.currentInputValue,Xt;return Pt===""?Xt=Pt:Number.isNaN(Number(Pt))?Xt=at:Pt>=hn?Xt=hn:Xt=Number(Pt),Xt}},{key:"getShowSizeChanger",value:function(){var Ye=this.props,Pt=Ye.showSizeChanger,hn=Ye.total,at=Ye.totalBoundaryShowSizeChanger;return typeof Pt!="undefined"?Pt:hn>at}},{key:"render",value:function(){var Ye=this.props,Pt=Ye.prefixCls,hn=Ye.className,at=Ye.style,Xt=Ye.disabled,fn=Ye.hideOnSinglePage,et=Ye.total,De=Ye.locale,qe=Ye.showQuickJumper,Ot=Ye.showLessItems,Gt=Ye.showTitle,an=Ye.showTotal,Mn=Ye.simple,Dn=Ye.itemRender,Ln=Ye.showPrevNextJumpers,Un=Ye.jumpPrevIcon,Wn=Ye.jumpNextIcon,On=Ye.selectComponentClass,Hn=Ye.selectPrefixCls,Dr=Ye.pageSizeOptions,Pr=this.state,fr=Pr.current,Jn=Pr.pageSize,Fr=Pr.currentInputValue;if(fn===!0&&et<=Jn)return null;var Tn=nt(void 0,this.state,this.props),Ir=[],Yr=null,nr=null,$r=null,Qr=null,$n=null,Xn=qe&&qe.goButton,Kn=Ot?1:2,Gn=fr-1>0?fr-1:0,Tr=fr+1<Tn?fr+1:Tn,bt=(0,ot.Z)(this.props,{aria:!0,data:!0}),ke=an&&Oe.createElement("li",{className:"".concat(Pt,"-total-text")},an(et,[et===0?0:(fr-1)*Jn+1,fr*Jn>et?et:fr*Jn]));if(Mn){Xn&&(typeof Xn=="boolean"?$n=Oe.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},De.jump_to_confirm):$n=Oe.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Xn),$n=Oe.createElement("li",{title:Gt?"".concat(De.jump_to).concat(fr,"/").concat(Tn):null,className:"".concat(Pt,"-simple-pager")},$n));var ze=this.renderPrev(Gn);return Oe.createElement("ul",(0,oe.Z)({className:Ge()(Pt,"".concat(Pt,"-simple"),(0,wt.Z)({},"".concat(Pt,"-disabled"),Xt),hn),style:at,ref:this.paginationNode},bt),ke,ze?Oe.createElement("li",{title:Gt?De.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ge()("".concat(Pt,"-prev"),(0,wt.Z)({},"".concat(Pt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},ze):null,Oe.createElement("li",{title:Gt?"".concat(fr,"/").concat(Tn):null,className:"".concat(Pt,"-simple-pager")},Oe.createElement("input",{type:"text",value:Fr,disabled:Xt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Oe.createElement("span",{className:"".concat(Pt,"-slash")},"/"),Tn),Oe.createElement("li",{title:Gt?De.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ge()("".concat(Pt,"-next"),(0,wt.Z)({},"".concat(Pt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Tr)),$n)}if(Tn<=3+Kn*2){var Re={locale:De,rootPrefixCls:Pt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Gt,itemRender:Dn};Tn||Ir.push(Oe.createElement(Je,(0,oe.Z)({},Re,{key:"noPager",page:1,className:"".concat(Pt,"-item-disabled")})));for(var Pe=1;Pe<=Tn;Pe+=1){var it=fr===Pe;Ir.push(Oe.createElement(Je,(0,oe.Z)({},Re,{key:Pe,page:Pe,active:it})))}}else{var vt=Ot?De.prev_3:De.prev_5,Ut=Ot?De.next_3:De.next_5,Ft=Dn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Un,"prev page")),on=Dn(this.getJumpNextPage(),"jump-next",this.getItemIcon(Wn,"next page"));Ln&&(Yr=Ft?Oe.createElement("li",{title:Gt?vt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ge()("".concat(Pt,"-jump-prev"),(0,wt.Z)({},"".concat(Pt,"-jump-prev-custom-icon"),!!Un))},Ft):null,nr=on?Oe.createElement("li",{title:Gt?Ut:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ge()("".concat(Pt,"-jump-next"),(0,wt.Z)({},"".concat(Pt,"-jump-next-custom-icon"),!!Wn))},on):null),Qr=Oe.createElement(Je,{locale:De,last:!0,rootPrefixCls:Pt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Tn,page:Tn,active:!1,showTitle:Gt,itemRender:Dn}),$r=Oe.createElement(Je,{locale:De,rootPrefixCls:Pt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Gt,itemRender:Dn});var Cn=Math.max(1,fr-Kn),Bn=Math.min(fr+Kn,Tn);fr-1<=Kn&&(Bn=1+Kn*2),Tn-fr<=Kn&&(Cn=Tn-Kn*2);for(var An=Cn;An<=Bn;An+=1){var Wt=fr===An;Ir.push(Oe.createElement(Je,{locale:De,rootPrefixCls:Pt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:An,page:An,active:Wt,showTitle:Gt,itemRender:Dn}))}fr-1>=Kn*2&&fr!==3&&(Ir[0]=(0,Oe.cloneElement)(Ir[0],{className:"".concat(Pt,"-item-after-jump-prev")}),Ir.unshift(Yr)),Tn-fr>=Kn*2&&fr!==Tn-2&&(Ir[Ir.length-1]=(0,Oe.cloneElement)(Ir[Ir.length-1],{className:"".concat(Pt,"-item-before-jump-next")}),Ir.push(nr)),Cn!==1&&Ir.unshift($r),Bn!==Tn&&Ir.push(Qr)}var bn=!this.hasPrev()||!Tn,pt=!this.hasNext()||!Tn,It=this.renderPrev(Gn),Kt=this.renderNext(Tr);return Oe.createElement("ul",(0,oe.Z)({className:Ge()(Pt,hn,(0,wt.Z)({},"".concat(Pt,"-disabled"),Xt)),style:at,ref:this.paginationNode},bt),ke,It?Oe.createElement("li",{title:Gt?De.prev_page:null,onClick:this.prev,tabIndex:bn?null:0,onKeyPress:this.runIfEnterPrev,className:Ge()("".concat(Pt,"-prev"),(0,wt.Z)({},"".concat(Pt,"-disabled"),bn)),"aria-disabled":bn},It):null,Ir,Kt?Oe.createElement("li",{title:Gt?De.next_page:null,onClick:this.next,tabIndex:pt?null:0,onKeyPress:this.runIfEnterNext,className:Ge()("".concat(Pt,"-next"),(0,wt.Z)({},"".concat(Pt,"-disabled"),pt)),"aria-disabled":pt},Kt):null,Oe.createElement(tt,{disabled:Xt,locale:De,rootPrefixCls:Pt,selectComponentClass:On,selectPrefixCls:Hn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:fr,pageSize:Jn,pageSizeOptions:Dr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Xn}))}}],[{key:"getDerivedStateFromProps",value:function(Ye,Pt){var hn={};if("current"in Ye&&(hn.current=Ye.current,Ye.current!==Pt.current&&(hn.currentInputValue=hn.current)),"pageSize"in Ye&&Ye.pageSize!==Pt.pageSize){var at=Pt.current,Xt=nt(Ye.pageSize,Pt,Ye);at=at>Xt?Xt:at,"current"in Ye||(hn.current=at,hn.currentInputValue=at),hn.pageSize=Ye.pageSize}return hn}}]),Lt}(Oe.Component);Yt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:kt,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:kt,locale:Me.Z,style:{},itemRender:Tt,totalBoundaryShowSizeChanger:50};var ln=Yt,tn=le(22075),en=le(36355),Ht=le(19716),je=le(8628),xe=le(9763),Xe=le(57809);const _t=Le=>Oe.createElement(Xe.default,Object.assign({},Le,{showSearch:!0,size:"small"})),St=Le=>Oe.createElement(Xe.default,Object.assign({},Le,{showSearch:!0,size:"middle"}));_t.Option=Xe.default.Option,St.Option=Xe.default.Option;var Qe=le(9937),$e=le(17313),Mt=le(83116),wn=le(37613);const cn=Le=>{const{componentCls:Ke}=Le;return{[`${Ke}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Ke}-item-link`]:{color:Le.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Ke}-item-link`]:{color:Le.colorTextDisabled,cursor:"not-allowed"}}},[`&${Ke}-disabled`]:{cursor:"not-allowed",[`${Ke}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Le.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Le.colorBorder,backgroundColor:Le.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Le.itemActiveBgDisabled},a:{color:Le.itemActiveColorDisabled}}},[`${Ke}-item-link`]:{color:Le.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Ke}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Ke}-simple-pager`]:{color:Le.colorTextDisabled},[`${Ke}-jump-prev, ${Ke}-jump-next`]:{[`${Ke}-item-link-icon`]:{opacity:0},[`${Ke}-item-ellipsis`]:{opacity:1}}},[`&${Ke}-simple`]:{[`${Ke}-prev, ${Ke}-next`]:{[`&${Ke}-disabled ${Ke}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},dn=Le=>{const{componentCls:Ke}=Le;return{[`&${Ke}-mini ${Ke}-total-text, &${Ke}-mini ${Ke}-simple-pager`]:{height:Le.itemSizeSM,lineHeight:`${Le.itemSizeSM}px`},[`&${Ke}-mini ${Ke}-item`]:{minWidth:Le.itemSizeSM,height:Le.itemSizeSM,margin:0,lineHeight:`${Le.itemSizeSM-2}px`},[`&${Ke}-mini:not(${Ke}-disabled) ${Ke}-item:not(${Ke}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Le.colorBgTextHover},"&:active":{backgroundColor:Le.colorBgTextActive}},[`&${Ke}-mini ${Ke}-prev, &${Ke}-mini ${Ke}-next`]:{minWidth:Le.itemSizeSM,height:Le.itemSizeSM,margin:0,lineHeight:`${Le.itemSizeSM}px`},[`&${Ke}-mini:not(${Ke}-disabled)`]:{[`${Ke}-prev, ${Ke}-next`]:{[`&:hover ${Ke}-item-link`]:{backgroundColor:Le.colorBgTextHover},[`&:active ${Ke}-item-link`]:{backgroundColor:Le.colorBgTextActive},[`&${Ke}-disabled:hover ${Ke}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Ke}-mini ${Ke}-prev ${Ke}-item-link,
|
|
|
&${Ke}-mini ${Ke}-next ${Ke}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Le.itemSizeSM,lineHeight:`${Le.itemSizeSM}px`}},[`&${Ke}-mini ${Ke}-jump-prev, &${Ke}-mini ${Ke}-jump-next`]:{height:Le.itemSizeSM,marginInlineEnd:0,lineHeight:`${Le.itemSizeSM}px`},[`&${Ke}-mini ${Ke}-options`]:{marginInlineStart:Le.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Le.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Le.itemSizeSM,lineHeight:`${Le.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Qe.x0)(Le)),{width:Le.paginationMiniQuickJumperInputWidth,height:Le.controlHeightSM})}}}},nn=Le=>{const{componentCls:Ke}=Le;return{[`
|
|
|
&${Ke}-simple ${Ke}-prev,
|
|
|
&${Ke}-simple ${Ke}-next
|
|
|
`]:{height:Le.itemSizeSM,lineHeight:`${Le.itemSizeSM}px`,verticalAlign:"top",[`${Ke}-item-link`]:{height:Le.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Le.colorBgTextHover},"&:active":{backgroundColor:Le.colorBgTextActive},"&::after":{height:Le.itemSizeSM,lineHeight:`${Le.itemSizeSM}px`}}},[`&${Ke}-simple ${Ke}-simple-pager`]:{display:"inline-block",height:Le.itemSizeSM,marginInlineEnd:Le.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Le.marginXS,padding:`0 ${Le.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Le.itemInputBg,border:`${Le.lineWidth}px ${Le.lineType} ${Le.colorBorder}`,borderRadius:Le.borderRadius,outline:"none",transition:`border-color ${Le.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Le.colorPrimary},"&:focus":{borderColor:Le.colorPrimaryHover,boxShadow:`${Le.inputOutlineOffset}px 0 ${Le.controlOutlineWidth}px ${Le.controlOutline}`},"&[disabled]":{color:Le.colorTextDisabled,backgroundColor:Le.colorBgContainerDisabled,borderColor:Le.colorBorder,cursor:"not-allowed"}}}}},Jt=Le=>{const{componentCls:Ke}=Le;return{[`${Ke}-jump-prev, ${Ke}-jump-next`]:{outline:0,[`${Ke}-item-container`]:{position:"relative",[`${Ke}-item-link-icon`]:{color:Le.colorPrimary,fontSize:Le.fontSizeSM,opacity:0,transition:`all ${Le.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Ke}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Le.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Le.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Le.paginationEllipsisTextIndent,opacity:1,transition:`all ${Le.motionDurationMid}`}},"&:hover":{[`${Ke}-item-link-icon`]:{opacity:1},[`${Ke}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Ke}-prev,
|
|
|
${Ke}-jump-prev,
|
|
|
${Ke}-jump-next
|
|
|
`]:{marginInlineEnd:Le.marginXS},[`
|
|
|
${Ke}-prev,
|
|
|
${Ke}-next,
|
|
|
${Ke}-jump-prev,
|
|
|
${Ke}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Le.itemSize,height:Le.itemSize,color:Le.colorText,fontFamily:Le.fontFamily,lineHeight:`${Le.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Le.borderRadius,cursor:"pointer",transition:`all ${Le.motionDurationMid}`},[`${Ke}-prev, ${Ke}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Le.colorText,cursor:"pointer",userSelect:"none"},[`${Ke}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Le.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Le.lineWidth}px ${Le.lineType} transparent`,borderRadius:Le.borderRadius,outline:"none",transition:`all ${Le.motionDurationMid}`},[`&:hover ${Ke}-item-link`]:{backgroundColor:Le.colorBgTextHover},[`&:active ${Ke}-item-link`]:{backgroundColor:Le.colorBgTextActive},[`&${Ke}-disabled:hover`]:{[`${Ke}-item-link`]:{backgroundColor:"transparent"}}},[`${Ke}-slash`]:{marginInlineEnd:Le.paginationSlashMarginInlineEnd,marginInlineStart:Le.paginationSlashMarginInlineStart},[`${Ke}-options`]:{display:"inline-block",marginInlineStart:Le.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Le.controlHeight,marginInlineStart:Le.marginXS,lineHeight:`${Le.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Qe.ik)(Le)),{width:Le.controlHeightLG*1.25,height:Le.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Le.marginXS,marginInlineEnd:Le.marginXS})}}}},Bt=Le=>{const{componentCls:Ke}=Le;return{[`${Ke}-item`]:{display:"inline-block",minWidth:Le.itemSize,height:Le.itemSize,marginInlineEnd:Le.marginXS,fontFamily:Le.fontFamily,lineHeight:`${Le.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Le.lineWidth}px ${Le.lineType} transparent`,borderRadius:Le.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Le.paginationItemPaddingInline}px`,color:Le.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Ke}-item-active)`]:{"&:hover":{transition:`all ${Le.motionDurationMid}`,backgroundColor:Le.colorBgTextHover},"&:active":{backgroundColor:Le.colorBgTextActive}},"&-active":{fontWeight:Le.fontWeightStrong,backgroundColor:Le.itemActiveBg,borderColor:Le.colorPrimary,a:{color:Le.colorPrimary},"&:hover":{borderColor:Le.colorPrimaryHover},"&:hover a":{color:Le.colorPrimaryHover}}}}},ge=Le=>{const{componentCls:Ke}=Le;return{[Ke]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,$e.Wf)(Le)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Ke}-total-text`]:{display:"inline-block",height:Le.itemSize,marginInlineEnd:Le.marginXS,lineHeight:`${Le.itemSize-2}px`,verticalAlign:"middle"}}),Bt(Le)),Jt(Le)),nn(Le)),dn(Le)),cn(Le)),{[`@media only screen and (max-width: ${Le.screenLG}px)`]:{[`${Ke}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Le.screenSM}px)`]:{[`${Ke}-options`]:{display:"none"}}}),[`&${Le.componentCls}-rtl`]:{direction:"rtl"}}},ue=Le=>{const{componentCls:Ke}=Le;return{[`${Ke}${Ke}-disabled:not(${Ke}-mini)`]:{"&, &:hover":{[`${Ke}-item-link`]:{borderColor:Le.colorBorder}},"&:focus-visible":{[`${Ke}-item-link`]:{borderColor:Le.colorBorder}},[`${Ke}-item, ${Ke}-item-link`]:{backgroundColor:Le.colorBgContainerDisabled,borderColor:Le.colorBorder,[`&:hover:not(${Ke}-item-active)`]:{backgroundColor:Le.colorBgContainerDisabled,borderColor:Le.colorBorder,a:{color:Le.colorTextDisabled}},[`&${Ke}-item-active`]:{backgroundColor:Le.itemActiveBgDisabled}},[`${Ke}-prev, ${Ke}-next`]:{"&:hover button":{backgroundColor:Le.colorBgContainerDisabled,borderColor:Le.colorBorder,color:Le.colorTextDisabled},[`${Ke}-item-link`]:{backgroundColor:Le.colorBgContainerDisabled,borderColor:Le.colorBorder}}},[`${Ke}:not(${Ke}-mini)`]:{[`${Ke}-prev, ${Ke}-next`]:{"&:hover button":{borderColor:Le.colorPrimaryHover,backgroundColor:Le.itemBg},[`${Ke}-item-link`]:{backgroundColor:Le.itemLinkBg,borderColor:Le.colorBorder},[`&:hover ${Ke}-item-link`]:{borderColor:Le.colorPrimary,backgroundColor:Le.itemBg,color:Le.colorPrimary},[`&${Ke}-disabled`]:{[`${Ke}-item-link`]:{borderColor:Le.colorBorder,color:Le.colorTextDisabled}}},[`${Ke}-item`]:{backgroundColor:Le.itemBg,border:`${Le.lineWidth}px ${Le.lineType} ${Le.colorBorder}`,[`&:hover:not(${Ke}-item-active)`]:{borderColor:Le.colorPrimary,backgroundColor:Le.itemBg,a:{color:Le.colorPrimary}},"&-active":{borderColor:Le.colorPrimary}}}}},se=Le=>{const{componentCls:Ke}=Le;return{[`${Ke}:not(${Ke}-disabled)`]:{[`${Ke}-item`]:Object.assign({},(0,$e.Qy)(Le)),[`${Ke}-jump-prev, ${Ke}-jump-next`]:{"&:focus-visible":Object.assign({[`${Ke}-item-link-icon`]:{opacity:1},[`${Ke}-item-ellipsis`]:{opacity:0}},(0,$e.oN)(Le))},[`${Ke}-prev, ${Ke}-next`]:{[`&:focus-visible ${Ke}-item-link`]:Object.assign({},(0,$e.oN)(Le))}}}};var he=(0,Mt.Z)("Pagination",Le=>{const Ke=(0,wn.TS)(Le,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Le.marginXXS/2,paginationMiniQuickJumperInputWidth:Le.controlHeightLG*1.1,paginationItemPaddingInline:Le.marginXXS*1.5,paginationEllipsisLetterSpacing:Le.marginXXS/2,paginationSlashMarginInlineStart:Le.marginXXS,paginationSlashMarginInlineEnd:Le.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Qe.e5)(Le),(0,Qe.TM)(Le));return[ge(Ke),se(Ke),Le.wireframe&&ue(Ke)]},Le=>({itemBg:Le.colorBgContainer,itemSize:Le.controlHeight,itemSizeSM:Le.controlHeightSM,itemActiveBg:Le.colorBgContainer,itemLinkBg:Le.colorBgContainer,itemActiveColorDisabled:Le.colorTextDisabled,itemActiveBgDisabled:Le.controlItemBgActiveDisabled,itemInputBg:Le.colorBgContainer,miniOptionsSizeChangerTop:0})),fe=function(Le,Ke){var Lt={};for(var xt in Le)Object.prototype.hasOwnProperty.call(Le,xt)&&Ke.indexOf(xt)<0&&(Lt[xt]=Le[xt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,xt=Object.getOwnPropertySymbols(Le);Ye<xt.length;Ye++)Ke.indexOf(xt[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Le,xt[Ye])&&(Lt[xt[Ye]]=Le[xt[Ye]]);return Lt},Ae=Le=>{const{prefixCls:Ke,selectPrefixCls:Lt,className:xt,rootClassName:Ye,style:Pt,size:hn,locale:at,selectComponentClass:Xt,responsive:fn,showSizeChanger:et}=Le,De=fe(Le,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:qe}=(0,je.Z)(fn),{getPrefixCls:Ot,direction:Gt,pagination:an={}}=Oe.useContext(en.E_),Mn=Ot("pagination",Ke),[Dn,Ln]=he(Mn),Un=et!=null?et:an.showSizeChanger,Wn=Oe.useMemo(()=>{const Tn=Oe.createElement("span",{className:`${Mn}-item-ellipsis`},"\u2022\u2022\u2022"),Ir=Oe.createElement("button",{className:`${Mn}-item-link`,type:"button",tabIndex:-1},Gt==="rtl"?Oe.createElement(ft.Z,null):Oe.createElement(_e.Z,null)),Yr=Oe.createElement("button",{className:`${Mn}-item-link`,type:"button",tabIndex:-1},Gt==="rtl"?Oe.createElement(_e.Z,null):Oe.createElement(ft.Z,null)),nr=Oe.createElement("a",{className:`${Mn}-item-link`},Oe.createElement("div",{className:`${Mn}-item-container`},Gt==="rtl"?Oe.createElement(Ce.Z,{className:`${Mn}-item-link-icon`}):Oe.createElement(be,{className:`${Mn}-item-link-icon`}),Tn)),$r=Oe.createElement("a",{className:`${Mn}-item-link`},Oe.createElement("div",{className:`${Mn}-item-container`},Gt==="rtl"?Oe.createElement(be,{className:`${Mn}-item-link-icon`}):Oe.createElement(Ce.Z,{className:`${Mn}-item-link-icon`}),Tn));return{prevIcon:Ir,nextIcon:Yr,jumpPrevIcon:nr,jumpNextIcon:$r}},[Gt,Mn]),[On]=(0,xe.Z)("Pagination",tn.Z),Hn=Object.assign(Object.assign({},On),at),Dr=(0,Ht.Z)(hn),Pr=Dr==="small"||!!(qe&&!Dr&&fn),fr=Ot("select",Lt),Jn=Ge()({[`${Mn}-mini`]:Pr,[`${Mn}-rtl`]:Gt==="rtl"},an==null?void 0:an.className,xt,Ye,Ln),Fr=Object.assign(Object.assign({},an==null?void 0:an.style),Pt);return Dn(Oe.createElement(ln,Object.assign({},Wn,De,{style:Fr,prefixCls:Mn,selectPrefixCls:fr,className:Jn,selectComponentClass:Xt||(Pr?_t:St),locale:Hn,showSizeChanger:Un})))},rt=Ae},93948:function(mn,un,le){"use strict";le.d(un,{Z:function(){return et}});var oe=le(59301),Oe=le(29679),Ne=le(40001),dt=le(19248),we=le(99267),Te=le(92310),Fe=le.n(Te),be=le(2738),Ce=le(36355),_e=le(60499),ft=le(85899),Ie=le(42244),Ge={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},wt=function(){var qe=(0,oe.useRef)([]),Ot=(0,oe.useRef)(null);return(0,oe.useEffect)(function(){var Gt=Date.now(),an=!1;qe.current.forEach(function(Mn){if(Mn){an=!0;var Dn=Mn.style;Dn.transitionDuration=".3s, .3s, .3s, .06s",Ot.current&&Gt-Ot.current<100&&(Dn.transitionDuration="0s, 0s")}}),an&&(Ot.current=Date.now())}),qe.current},ut=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],yt=function(qe){var Ot=(0,ft.Z)((0,ft.Z)({},Ge),qe),Gt=Ot.className,an=Ot.percent,Mn=Ot.prefixCls,Dn=Ot.strokeColor,Ln=Ot.strokeLinecap,Un=Ot.strokeWidth,Wn=Ot.style,On=Ot.trailColor,Hn=Ot.trailWidth,Dr=Ot.transition,Pr=(0,Ie.Z)(Ot,ut);delete Pr.gapPosition;var fr=Array.isArray(an)?an:[an],Jn=Array.isArray(Dn)?Dn:[Dn],Fr=wt(),Tn=Un/2,Ir=100-Un/2,Yr="M ".concat(Ln==="round"?Tn:0,",").concat(Tn,`
|
|
|
L `).concat(Ln==="round"?Ir:100,",").concat(Tn),nr="0 0 100 ".concat(Un),$r=0;return oe.createElement("svg",(0,_e.Z)({className:Fe()("".concat(Mn,"-line"),Gt),viewBox:nr,preserveAspectRatio:"none",style:Wn},Pr),oe.createElement("path",{className:"".concat(Mn,"-line-trail"),d:Yr,strokeLinecap:Ln,stroke:On,strokeWidth:Hn||Un,fillOpacity:"0"}),fr.map(function(Qr,$n){var Xn=1;switch(Ln){case"round":Xn=1-Un/100;break;case"square":Xn=1-Un/2/100;break;default:Xn=1;break}var Kn={strokeDasharray:"".concat(Qr*Xn,"px, 100px"),strokeDashoffset:"-".concat($r,"px"),transition:Dr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Gn=Jn[$n]||Jn[Jn.length-1];return $r+=Qr,oe.createElement("path",{key:$n,className:"".concat(Mn,"-line-path"),d:Yr,strokeLinecap:Ln,stroke:Gn,strokeWidth:Un,fillOpacity:"0",ref:function(bt){Fr[$n]=bt},style:Kn})}))},lt=yt,ht=le(43749),Vt=le(72190),ot=le(47273),gt=0,Ve=(0,ot.Z)();function Me(){var De;return Ve?(De=gt,gt+=1):De="TEST_OR_SSR",De}var Ue=function(De){var qe=oe.useState(),Ot=(0,Vt.Z)(qe,2),Gt=Ot[0],an=Ot[1];return oe.useEffect(function(){an("rc_progress_".concat(Me()))},[]),De||Gt},tt=function(qe){var Ot=qe.bg,Gt=qe.children;return oe.createElement("div",{style:{width:"100%",height:"100%",background:Ot}},Gt)};function mt(De,qe){return Object.keys(De).map(function(Ot){var Gt=parseFloat(Ot),an="".concat(Math.floor(Gt*qe),"%");return"".concat(De[Ot]," ").concat(an)})}var Je=oe.forwardRef(function(De,qe){var Ot=De.prefixCls,Gt=De.color,an=De.gradientId,Mn=De.radius,Dn=De.style,Ln=De.ptg,Un=De.strokeLinecap,Wn=De.strokeWidth,On=De.size,Hn=De.gapDegree,Dr=Gt&&(0,ht.Z)(Gt)==="object",Pr=Dr?"#FFF":void 0,fr=On/2,Jn=oe.createElement("circle",{className:"".concat(Ot,"-circle-path"),r:Mn,cx:fr,cy:fr,stroke:Pr,strokeLinecap:Un,strokeWidth:Wn,opacity:Ln===0?0:1,style:Dn,ref:qe});if(!Dr)return Jn;var Fr="".concat(an,"-conic"),Tn=Hn?"".concat(180+Hn/2,"deg"):"0deg",Ir=mt(Gt,(360-Hn)/360),Yr=mt(Gt,1),nr="conic-gradient(from ".concat(Tn,", ").concat(Ir.join(", "),")"),$r="linear-gradient(to ".concat(Hn?"bottom":"top",", ").concat(Yr.join(", "),")");return oe.createElement(oe.Fragment,null,oe.createElement("mask",{id:Fr},Jn),oe.createElement("foreignObject",{x:0,y:0,width:On,height:On,mask:"url(#".concat(Fr,")")},oe.createElement(tt,{bg:$r},oe.createElement(tt,{bg:nr}))))}),kt=Je,st=100,Tt=function(qe,Ot,Gt,an,Mn,Dn,Ln,Un,Wn,On){var Hn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Dr=Gt/100*360*((360-Dn)/360),Pr=Dn===0?0:{bottom:0,top:180,left:90,right:-90}[Ln],fr=(100-an)/100*Ot;Wn==="round"&&an!==100&&(fr+=On/2,fr>=Ot&&(fr=Ot-.01));var Jn=st/2;return{stroke:typeof Un=="string"?Un:void 0,strokeDasharray:"".concat(Ot,"px ").concat(qe),strokeDashoffset:fr+Hn,transform:"rotate(".concat(Mn+Dr+Pr,"deg)"),transformOrigin:"".concat(Jn,"px ").concat(Jn,"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}},nt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Yt(De){var qe=De!=null?De:[];return Array.isArray(qe)?qe:[qe]}var ln=function(qe){var Ot=(0,ft.Z)((0,ft.Z)({},Ge),qe),Gt=Ot.id,an=Ot.prefixCls,Mn=Ot.steps,Dn=Ot.strokeWidth,Ln=Ot.trailWidth,Un=Ot.gapDegree,Wn=Un===void 0?0:Un,On=Ot.gapPosition,Hn=Ot.trailColor,Dr=Ot.strokeLinecap,Pr=Ot.style,fr=Ot.className,Jn=Ot.strokeColor,Fr=Ot.percent,Tn=(0,Ie.Z)(Ot,nt),Ir=st/2,Yr=Ue(Gt),nr="".concat(Yr,"-gradient"),$r=Ir-Dn/2,Qr=Math.PI*2*$r,$n=Wn>0?90+Wn/2:-90,Xn=Qr*((360-Wn)/360),Kn=(0,ht.Z)(Mn)==="object"?Mn:{count:Mn,space:2},Gn=Kn.count,Tr=Kn.space,bt=Yt(Fr),ke=Yt(Jn),ze=ke.find(function(on){return on&&(0,ht.Z)(on)==="object"}),Re=ze&&(0,ht.Z)(ze)==="object",Pe=Re?"butt":Dr,it=Tt(Qr,Xn,0,100,$n,Wn,On,Hn,Pe,Dn),vt=wt(),Ut=function(){var Cn=0;return bt.map(function(Bn,An){var Wt=ke[An]||ke[ke.length-1],bn=Tt(Qr,Xn,Cn,Bn,$n,Wn,On,Wt,Pe,Dn);return Cn+=Bn,oe.createElement(kt,{key:An,color:Wt,ptg:Bn,radius:$r,prefixCls:an,gradientId:nr,style:bn,strokeLinecap:Pe,strokeWidth:Dn,gapDegree:Wn,ref:function(It){vt[An]=It},size:st})}).reverse()},Ft=function(){var Cn=Math.round(Gn*(bt[0]/100)),Bn=100/Gn,An=0;return new Array(Gn).fill(null).map(function(Wt,bn){var pt=bn<=Cn-1?ke[0]:Hn,It=pt&&(0,ht.Z)(pt)==="object"?"url(#".concat(nr,")"):void 0,Kt=Tt(Qr,Xn,An,Bn,$n,Wn,On,pt,"butt",Dn,Tr);return An+=(Xn-Kt.strokeDashoffset+Tr)*100/Xn,oe.createElement("circle",{key:bn,className:"".concat(an,"-circle-path"),r:$r,cx:Ir,cy:Ir,stroke:It,strokeWidth:Dn,opacity:1,style:Kt,ref:function(gn){vt[bn]=gn}})})};return oe.createElement("svg",(0,_e.Z)({className:Fe()("".concat(an,"-circle"),fr),viewBox:"0 0 ".concat(st," ").concat(st),style:Pr,id:Gt,role:"presentation"},Tn),!Gn&&oe.createElement("circle",{className:"".concat(an,"-circle-trail"),r:$r,cx:Ir,cy:Ir,stroke:Hn,strokeLinecap:Pe,strokeWidth:Ln||Dn,style:it}),Gn?Ft():Ut())},tn=ln,en={Line:lt,Circle:tn},Ht=le(6848),je=le(30071);function xe(De){return!De||De<0?0:De>100?100:De}function Xe(De){let{success:qe,successPercent:Ot}=De,Gt=Ot;return qe&&"progress"in qe&&(Gt=qe.progress),qe&&"percent"in qe&&(Gt=qe.percent),Gt}const _t=De=>{let{percent:qe,success:Ot,successPercent:Gt}=De;const an=xe(Xe({success:Ot,successPercent:Gt}));return[an,xe(xe(qe)-an)]},St=De=>{let{success:qe={},strokeColor:Ot}=De;const{strokeColor:Gt}=qe;return[Gt||je.presetPrimaryColors.green,Ot||null]},Qe=(De,qe,Ot)=>{var Gt,an,Mn,Dn;let Ln=-1,Un=-1;if(qe==="step"){const Wn=Ot.steps,On=Ot.strokeWidth;typeof De=="string"||typeof De=="undefined"?(Ln=De==="small"?2:14,Un=On!=null?On:8):typeof De=="number"?[Ln,Un]=[De,De]:[Ln=14,Un=8]=De,Ln*=Wn}else if(qe==="line"){const Wn=Ot==null?void 0:Ot.strokeWidth;typeof De=="string"||typeof De=="undefined"?Un=Wn||(De==="small"?6:8):typeof De=="number"?[Ln,Un]=[De,De]:[Ln=-1,Un=8]=De}else(qe==="circle"||qe==="dashboard")&&(typeof De=="string"||typeof De=="undefined"?[Ln,Un]=De==="small"?[60,60]:[120,120]:typeof De=="number"?[Ln,Un]=[De,De]:(Ln=(an=(Gt=De[0])!==null&&Gt!==void 0?Gt:De[1])!==null&&an!==void 0?an:120,Un=(Dn=(Mn=De[0])!==null&&Mn!==void 0?Mn:De[1])!==null&&Dn!==void 0?Dn:120));return[Ln,Un]},$e=3,Mt=De=>$e/De*100;var cn=De=>{const{prefixCls:qe,trailColor:Ot=null,strokeLinecap:Gt="round",gapPosition:an,gapDegree:Mn,width:Dn=120,type:Ln,children:Un,success:Wn,size:On=Dn}=De,[Hn,Dr]=Qe(On,"circle");let{strokeWidth:Pr}=De;Pr===void 0&&(Pr=Math.max(Mt(Hn),6));const fr={width:Hn,height:Dr,fontSize:Hn*.15+6},Jn=oe.useMemo(()=>{if(Mn||Mn===0)return Mn;if(Ln==="dashboard")return 75},[Mn,Ln]),Fr=an||Ln==="dashboard"&&"bottom"||void 0,Tn=Object.prototype.toString.call(De.strokeColor)==="[object Object]",Ir=St({success:Wn,strokeColor:De.strokeColor}),Yr=Fe()(`${qe}-inner`,{[`${qe}-circle-gradient`]:Tn}),nr=oe.createElement(tn,{percent:_t(De),strokeWidth:Pr,trailWidth:Pr,strokeColor:Ir,strokeLinecap:Gt,trailColor:Ot,prefixCls:qe,gapDegree:Jn,gapPosition:Fr});return oe.createElement("div",{className:Yr,style:fr},Hn<=20?oe.createElement(Ht.Z,{title:Un},oe.createElement("span",null,nr)):oe.createElement(oe.Fragment,null,nr,Un))},dn=function(De,qe){var Ot={};for(var Gt in De)Object.prototype.hasOwnProperty.call(De,Gt)&&qe.indexOf(Gt)<0&&(Ot[Gt]=De[Gt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var an=0,Gt=Object.getOwnPropertySymbols(De);an<Gt.length;an++)qe.indexOf(Gt[an])<0&&Object.prototype.propertyIsEnumerable.call(De,Gt[an])&&(Ot[Gt[an]]=De[Gt[an]]);return Ot};const nn=De=>{let qe=[];return Object.keys(De).forEach(Ot=>{const Gt=parseFloat(Ot.replace(/%/g,""));isNaN(Gt)||qe.push({key:Gt,value:De[Ot]})}),qe=qe.sort((Ot,Gt)=>Ot.key-Gt.key),qe.map(Ot=>{let{key:Gt,value:an}=Ot;return`${an} ${Gt}%`}).join(", ")},Jt=(De,qe)=>{const{from:Ot=je.presetPrimaryColors.blue,to:Gt=je.presetPrimaryColors.blue,direction:an=qe==="rtl"?"to left":"to right"}=De,Mn=dn(De,["from","to","direction"]);if(Object.keys(Mn).length!==0){const Dn=nn(Mn);return{backgroundImage:`linear-gradient(${an}, ${Dn})`}}return{backgroundImage:`linear-gradient(${an}, ${Ot}, ${Gt})`}};var ge=De=>{const{prefixCls:qe,direction:Ot,percent:Gt,size:an,strokeWidth:Mn,strokeColor:Dn,strokeLinecap:Ln="round",children:Un,trailColor:Wn=null,success:On}=De,Hn=Dn&&typeof Dn!="string"?Jt(Dn,Ot):{backgroundColor:Dn},Dr=Ln==="square"||Ln==="butt"?0:void 0,Pr={backgroundColor:Wn||void 0,borderRadius:Dr},fr=an!=null?an:[-1,Mn||(an==="small"?6:8)],[Jn,Fr]=Qe(fr,"line",{strokeWidth:Mn}),Tn=Object.assign({width:`${xe(Gt)}%`,height:Fr,borderRadius:Dr},Hn),Ir=Xe(De),Yr={width:`${xe(Ir)}%`,height:Fr,borderRadius:Dr,backgroundColor:On==null?void 0:On.strokeColor},nr={width:Jn<0?"100%":Jn,height:Fr};return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:`${qe}-outer`,style:nr},oe.createElement("div",{className:`${qe}-inner`,style:Pr},oe.createElement("div",{className:`${qe}-bg`,style:Tn}),Ir!==void 0?oe.createElement("div",{className:`${qe}-success-bg`,style:Yr}):null)),Un)},se=De=>{const{size:qe,steps:Ot,percent:Gt=0,strokeWidth:an=8,strokeColor:Mn,trailColor:Dn=null,prefixCls:Ln,children:Un}=De,Wn=Math.round(Ot*(Gt/100)),On=qe==="small"?2:14,Hn=qe!=null?qe:[On,an],[Dr,Pr]=Qe(Hn,"step",{steps:Ot,strokeWidth:an}),fr=Dr/Ot,Jn=new Array(Ot);for(let Fr=0;Fr<Ot;Fr++){const Tn=Array.isArray(Mn)?Mn[Fr]:Mn;Jn[Fr]=oe.createElement("div",{key:Fr,className:Fe()(`${Ln}-steps-item`,{[`${Ln}-steps-item-active`]:Fr<=Wn-1}),style:{backgroundColor:Fr<=Wn-1?Tn:Dn,width:fr,height:Pr}})}return oe.createElement("div",{className:`${Ln}-steps-outer`},Jn,Un)},he=le(36237),fe=le(17313),ce=le(83116),Ae=le(37613);const rt=De=>{const qe=De?"100%":"-100%";return new he.Keyframes(`antProgress${De?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${qe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${qe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Le=De=>{const{componentCls:qe,iconCls:Ot}=De;return{[qe]:Object.assign(Object.assign({},(0,fe.Wf)(De)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:De.fontSize,marginInlineEnd:De.marginXS,marginBottom:De.marginXS},[`${qe}-outer`]:{display:"inline-block",width:"100%"},[`&${qe}-show-info`]:{[`${qe}-outer`]:{marginInlineEnd:`calc(-2em - ${De.marginXS}px)`,paddingInlineEnd:`calc(2em + ${De.paddingXS}px)`}},[`${qe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:De.remainingColor,borderRadius:De.lineBorderRadius},[`${qe}-inner:not(${qe}-circle-gradient)`]:{[`${qe}-circle-path`]:{stroke:De.defaultColor}},[`${qe}-success-bg, ${qe}-bg`]:{position:"relative",backgroundColor:De.defaultColor,borderRadius:De.lineBorderRadius,transition:`all ${De.motionDurationSlow} ${De.motionEaseInOutCirc}`},[`${qe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:De.colorSuccess},[`${qe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:De.marginXS,color:De.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ot]:{fontSize:De.fontSize}},[`&${qe}-status-active`]:{[`${qe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:De.colorBgContainer,borderRadius:De.lineBorderRadius,opacity:0,animationName:rt(),animationDuration:De.progressActiveMotionDuration,animationTimingFunction:De.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${qe}-rtl${qe}-status-active`]:{[`${qe}-bg::before`]:{animationName:rt(!0)}},[`&${qe}-status-exception`]:{[`${qe}-bg`]:{backgroundColor:De.colorError},[`${qe}-text`]:{color:De.colorError}},[`&${qe}-status-exception ${qe}-inner:not(${qe}-circle-gradient)`]:{[`${qe}-circle-path`]:{stroke:De.colorError}},[`&${qe}-status-success`]:{[`${qe}-bg`]:{backgroundColor:De.colorSuccess},[`${qe}-text`]:{color:De.colorSuccess}},[`&${qe}-status-success ${qe}-inner:not(${qe}-circle-gradient)`]:{[`${qe}-circle-path`]:{stroke:De.colorSuccess}}})}},Ke=De=>{const{componentCls:qe,iconCls:Ot}=De;return{[qe]:{[`${qe}-circle-trail`]:{stroke:De.remainingColor},[`&${qe}-circle ${qe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${qe}-circle ${qe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:De.circleTextColor,fontSize:De.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ot]:{fontSize:`${De.fontSize/De.fontSizeSM}em`}},[`${qe}-circle&-status-exception`]:{[`${qe}-text`]:{color:De.colorError}},[`${qe}-circle&-status-success`]:{[`${qe}-text`]:{color:De.colorSuccess}}},[`${qe}-inline-circle`]:{lineHeight:1,[`${qe}-inner`]:{verticalAlign:"bottom"}}}},Lt=De=>{const{componentCls:qe}=De;return{[qe]:{[`${qe}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:De.progressStepMinWidth,marginInlineEnd:De.progressStepMarginInlineEnd,backgroundColor:De.remainingColor,transition:`all ${De.motionDurationSlow}`,"&-active":{backgroundColor:De.defaultColor}}}}}},xt=De=>{const{componentCls:qe,iconCls:Ot}=De;return{[qe]:{[`${qe}-small&-line, ${qe}-small&-line ${qe}-text ${Ot}`]:{fontSize:De.fontSizeSM}}}};var Ye=(0,ce.Z)("Progress",De=>{const qe=De.marginXXS/2,Ot=(0,Ae.TS)(De,{progressStepMarginInlineEnd:qe,progressStepMinWidth:qe,progressActiveMotionDuration:"2.4s"});return[Le(Ot),Ke(Ot),Lt(Ot),xt(Ot)]},De=>({circleTextColor:De.colorText,defaultColor:De.colorInfo,remainingColor:De.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Pt=function(De,qe){var Ot={};for(var Gt in De)Object.prototype.hasOwnProperty.call(De,Gt)&&qe.indexOf(Gt)<0&&(Ot[Gt]=De[Gt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var an=0,Gt=Object.getOwnPropertySymbols(De);an<Gt.length;an++)qe.indexOf(Gt[an])<0&&Object.prototype.propertyIsEnumerable.call(De,Gt[an])&&(Ot[Gt[an]]=De[Gt[an]]);return Ot};const hn=null,at=["normal","exception","active","success"];var fn=oe.forwardRef((De,qe)=>{const{prefixCls:Ot,className:Gt,rootClassName:an,steps:Mn,strokeColor:Dn,percent:Ln=0,size:Un="default",showInfo:Wn=!0,type:On="line",status:Hn,format:Dr,style:Pr}=De,fr=Pt(De,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Jn=oe.useMemo(()=>{var bt,ke;const ze=Xe(De);return parseInt(ze!==void 0?(bt=ze!=null?ze:0)===null||bt===void 0?void 0:bt.toString():(ke=Ln!=null?Ln:0)===null||ke===void 0?void 0:ke.toString(),10)},[Ln,De.success,De.successPercent]),Fr=oe.useMemo(()=>!at.includes(Hn)&&Jn>=100?"success":Hn||"normal",[Hn,Jn]),{getPrefixCls:Tn,direction:Ir,progress:Yr}=oe.useContext(Ce.E_),nr=Tn("progress",Ot),[$r,Qr]=Ye(nr),$n=oe.useMemo(()=>{if(!Wn)return null;const bt=Xe(De);let ke;const ze=Dr||(Pe=>`${Pe}%`),Re=On==="line";return Dr||Fr!=="exception"&&Fr!=="success"?ke=ze(xe(Ln),xe(bt)):Fr==="exception"?ke=Re?oe.createElement(dt.Z,null):oe.createElement(we.Z,null):Fr==="success"&&(ke=Re?oe.createElement(Oe.Z,null):oe.createElement(Ne.Z,null)),oe.createElement("span",{className:`${nr}-text`,title:typeof ke=="string"?ke:void 0},ke)},[Wn,Ln,Jn,Fr,On,nr,Dr]),Xn=Array.isArray(Dn)?Dn[0]:Dn,Kn=typeof Dn=="string"||Array.isArray(Dn)?Dn:void 0;let Gn;On==="line"?Gn=Mn?oe.createElement(se,Object.assign({},De,{strokeColor:Kn,prefixCls:nr,steps:Mn}),$n):oe.createElement(ge,Object.assign({},De,{strokeColor:Xn,prefixCls:nr,direction:Ir}),$n):(On==="circle"||On==="dashboard")&&(Gn=oe.createElement(cn,Object.assign({},De,{strokeColor:Xn,prefixCls:nr,progressStatus:Fr}),$n));const Tr=Fe()(nr,`${nr}-status-${Fr}`,`${nr}-${On==="dashboard"&&"circle"||Mn&&"steps"||On}`,{[`${nr}-inline-circle`]:On==="circle"&&Qe(Un,"circle")[0]<=20,[`${nr}-show-info`]:Wn,[`${nr}-${Un}`]:typeof Un=="string",[`${nr}-rtl`]:Ir==="rtl"},Yr==null?void 0:Yr.className,Gt,an,Qr);return $r(oe.createElement("div",Object.assign({ref:qe,style:Object.assign(Object.assign({},Yr==null?void 0:Yr.style),Pr),className:Tr,role:"progressbar","aria-valuenow":Jn},(0,be.Z)(fr,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Gn))}),et=fn},5112:function(mn,un,le){"use strict";le.d(un,{ZP:function(){return je}});var oe=le(92310),Oe=le.n(oe),Ne=le(18929),dt=le(26112),we=le(59301),Te=le(36355),Fe=le(19716);const be=we.createContext(null),Ce=be.Provider;var _e=be;const ft=we.createContext(null),Ie=ft.Provider;var Ge=le(5630),wt=le(8654),ut=le(1684),yt=le(32441),lt=le(17313),ht=le(83116),Vt=le(37613);const ot=xe=>{const{componentCls:Xe,antCls:_t}=xe,St=`${Xe}-group`;return{[St]:Object.assign(Object.assign({},(0,lt.Wf)(xe)),{display:"inline-block",fontSize:0,[`&${St}-rtl`]:{direction:"rtl"},[`${_t}-badge ${_t}-badge-count`]:{zIndex:1},[`> ${_t}-badge:not(:first-child) > ${_t}-button-wrapper`]:{borderInlineStart:"none"}})}},gt=xe=>{const{componentCls:Xe,wrapperMarginInlineEnd:_t,colorPrimary:St,radioSize:Qe,motionDurationSlow:$e,motionDurationMid:Mt,motionEaseInOutCirc:wn,colorBgContainer:cn,colorBorder:dn,lineWidth:nn,dotSize:Jt,colorBgContainerDisabled:Bt,colorTextDisabled:ge,paddingXS:ue,dotColorDisabled:se,lineType:he,radioDotDisabledSize:fe,wireframe:ce,colorWhite:Ae}=xe,rt=`${Xe}-inner`;return{[`${Xe}-wrapper`]:Object.assign(Object.assign({},(0,lt.Wf)(xe)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:_t,cursor:"pointer",[`&${Xe}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:xe.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Xe}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${nn}px ${he} ${St}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Xe]:Object.assign(Object.assign({},(0,lt.Wf)(xe)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Xe}-wrapper:hover &,
|
|
|
&:hover ${rt}`]:{borderColor:St},[`${Xe}-input:focus-visible + ${rt}`]:Object.assign({},(0,lt.oN)(xe)),[`${Xe}:hover::after, ${Xe}-wrapper:hover &::after`]:{visibility:"visible"},[`${Xe}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Qe,height:Qe,marginBlockStart:Qe/-2,marginInlineStart:Qe/-2,backgroundColor:ce?St:Ae,borderBlockStart:0,borderInlineStart:0,borderRadius:Qe,transform:"scale(0)",opacity:0,transition:`all ${$e} ${wn}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Qe,height:Qe,backgroundColor:cn,borderColor:dn,borderStyle:"solid",borderWidth:nn,borderRadius:"50%",transition:`all ${Mt}`},[`${Xe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Xe}-checked`]:{[rt]:{borderColor:St,backgroundColor:ce?cn:St,"&::after":{transform:`scale(${Jt/Qe})`,opacity:1,transition:`all ${$e} ${wn}`}}},[`${Xe}-disabled`]:{cursor:"not-allowed",[rt]:{backgroundColor:Bt,borderColor:dn,cursor:"not-allowed","&::after":{backgroundColor:se}},[`${Xe}-input`]:{cursor:"not-allowed"},[`${Xe}-disabled + span`]:{color:ge,cursor:"not-allowed"},[`&${Xe}-checked`]:{[rt]:{"&::after":{transform:`scale(${fe/Qe})`}}}},[`span${Xe} + *`]:{paddingInlineStart:ue,paddingInlineEnd:ue}})}},Ve=xe=>{const{buttonColor:Xe,controlHeight:_t,componentCls:St,lineWidth:Qe,lineType:$e,colorBorder:Mt,motionDurationSlow:wn,motionDurationMid:cn,buttonPaddingInline:dn,fontSize:nn,buttonBg:Jt,fontSizeLG:Bt,controlHeightLG:ge,controlHeightSM:ue,paddingXS:se,borderRadius:he,borderRadiusSM:fe,borderRadiusLG:ce,buttonCheckedBg:Ae,buttonSolidCheckedColor:rt,colorTextDisabled:Le,colorBgContainerDisabled:Ke,buttonCheckedBgDisabled:Lt,buttonCheckedColorDisabled:xt,colorPrimary:Ye,colorPrimaryHover:Pt,colorPrimaryActive:hn,buttonSolidCheckedBg:at,buttonSolidCheckedHoverBg:Xt,buttonSolidCheckedActiveBg:fn}=xe;return{[`${St}-button-wrapper`]:{position:"relative",display:"inline-block",height:_t,margin:0,paddingInline:dn,paddingBlock:0,color:Xe,fontSize:nn,lineHeight:`${_t-Qe*2}px`,background:Jt,border:`${Qe}px ${$e} ${Mt}`,borderBlockStartWidth:Qe+.02,borderInlineStartWidth:0,borderInlineEndWidth:Qe,cursor:"pointer",transition:[`color ${cn}`,`background ${cn}`,`box-shadow ${cn}`].join(","),a:{color:Xe},[`> ${St}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-Qe,insetInlineStart:-Qe,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Qe,paddingInline:0,backgroundColor:Mt,transition:`background-color ${wn}`,content:'""'}},"&:first-child":{borderInlineStart:`${Qe}px ${$e} ${Mt}`,borderStartStartRadius:he,borderEndStartRadius:he},"&:last-child":{borderStartEndRadius:he,borderEndEndRadius:he},"&:first-child:last-child":{borderRadius:he},[`${St}-group-large &`]:{height:ge,fontSize:Bt,lineHeight:`${ge-Qe*2}px`,"&:first-child":{borderStartStartRadius:ce,borderEndStartRadius:ce},"&:last-child":{borderStartEndRadius:ce,borderEndEndRadius:ce}},[`${St}-group-small &`]:{height:ue,paddingInline:se-Qe,paddingBlock:0,lineHeight:`${ue-Qe*2}px`,"&:first-child":{borderStartStartRadius:fe,borderEndStartRadius:fe},"&:last-child":{borderStartEndRadius:fe,borderEndEndRadius:fe}},"&:hover":{position:"relative",color:Ye},"&:has(:focus-visible)":Object.assign({},(0,lt.oN)(xe)),[`${St}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${St}-button-wrapper-disabled)`]:{zIndex:1,color:Ye,background:Ae,borderColor:Ye,"&::before":{backgroundColor:Ye},"&:first-child":{borderColor:Ye},"&:hover":{color:Pt,borderColor:Pt,"&::before":{backgroundColor:Pt}},"&:active":{color:hn,borderColor:hn,"&::before":{backgroundColor:hn}}},[`${St}-group-solid &-checked:not(${St}-button-wrapper-disabled)`]:{color:rt,background:at,borderColor:at,"&:hover":{color:rt,background:Xt,borderColor:Xt},"&:active":{color:rt,background:fn,borderColor:fn}},"&-disabled":{color:Le,backgroundColor:Ke,borderColor:Mt,cursor:"not-allowed","&:first-child, &:hover":{color:Le,backgroundColor:Ke,borderColor:Mt}},[`&-disabled${St}-button-wrapper-checked`]:{color:xt,backgroundColor:Lt,borderColor:Mt,boxShadow:"none"}}}},Me=xe=>xe-4*2;var Ue=(0,ht.Z)("Radio",xe=>{const{controlOutline:Xe,controlOutlineWidth:_t,radioSize:St}=xe,Qe=`0 0 0 ${_t}px ${Xe}`,$e=Qe,Mt=Me(St),wn=(0,Vt.TS)(xe,{radioDotDisabledSize:Mt,radioFocusShadow:Qe,radioButtonFocusShadow:$e});return[ot(wn),gt(wn),Ve(wn)]},xe=>{const{wireframe:Xe,padding:_t,marginXS:St,lineWidth:Qe,fontSizeLG:$e,colorText:Mt,colorBgContainer:wn,colorTextDisabled:cn,controlItemBgActiveDisabled:dn,colorTextLightSolid:nn,colorPrimary:Jt,colorPrimaryHover:Bt,colorPrimaryActive:ge}=xe,ue=4,se=$e,he=Xe?Me(se):se-(ue+Qe)*2;return{radioSize:se,dotSize:he,dotColorDisabled:cn,buttonSolidCheckedColor:nn,buttonSolidCheckedBg:Jt,buttonSolidCheckedHoverBg:Bt,buttonSolidCheckedActiveBg:ge,buttonBg:wn,buttonCheckedBg:wn,buttonColor:Mt,buttonCheckedBgDisabled:dn,buttonCheckedColorDisabled:cn,buttonPaddingInline:_t-Qe,wrapperMarginInlineEnd:St}}),tt=le(14088),mt=le(4572),Je=function(xe,Xe){var _t={};for(var St in xe)Object.prototype.hasOwnProperty.call(xe,St)&&Xe.indexOf(St)<0&&(_t[St]=xe[St]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,St=Object.getOwnPropertySymbols(xe);Qe<St.length;Qe++)Xe.indexOf(St[Qe])<0&&Object.prototype.propertyIsEnumerable.call(xe,St[Qe])&&(_t[St[Qe]]=xe[St[Qe]]);return _t};const kt=(xe,Xe)=>{var _t,St;const Qe=we.useContext(_e),$e=we.useContext(ft),{getPrefixCls:Mt,direction:wn,radio:cn}=we.useContext(Te.E_),dn=we.useRef(null),nn=(0,wt.sQ)(Xe,dn),{isFormItemInput:Jt}=we.useContext(yt.aM),Bt=hn=>{var at,Xt;(at=xe.onChange)===null||at===void 0||at.call(xe,hn),(Xt=Qe==null?void 0:Qe.onChange)===null||Xt===void 0||Xt.call(Qe,hn)},{prefixCls:ge,className:ue,rootClassName:se,children:he,style:fe}=xe,ce=Je(xe,["prefixCls","className","rootClassName","children","style"]),Ae=Mt("radio",ge),rt=((Qe==null?void 0:Qe.optionType)||$e)==="button",Le=rt?`${Ae}-button`:Ae,[Ke,Lt]=Ue(Ae),xt=Object.assign({},ce),Ye=we.useContext(ut.Z);Qe&&(xt.name=Qe.name,xt.onChange=Bt,xt.checked=xe.value===Qe.value,xt.disabled=(_t=xt.disabled)!==null&&_t!==void 0?_t:Qe.disabled),xt.disabled=(St=xt.disabled)!==null&&St!==void 0?St:Ye;const Pt=Oe()(`${Le}-wrapper`,{[`${Le}-wrapper-checked`]:xt.checked,[`${Le}-wrapper-disabled`]:xt.disabled,[`${Le}-wrapper-rtl`]:wn==="rtl",[`${Le}-wrapper-in-form-item`]:Jt},cn==null?void 0:cn.className,ue,se,Lt);return Ke(we.createElement(tt.Z,{component:"Radio",disabled:xt.disabled},we.createElement("label",{className:Pt,style:Object.assign(Object.assign({},cn==null?void 0:cn.style),fe),onMouseEnter:xe.onMouseEnter,onMouseLeave:xe.onMouseLeave},we.createElement(Ge.Z,Object.assign({},xt,{className:Oe()(xt.className,!rt&&mt.A),type:"radio",prefixCls:Le,ref:nn})),he!==void 0?we.createElement("span",null,he):null)))};var Tt=we.forwardRef(kt);const nt=we.forwardRef((xe,Xe)=>{const{getPrefixCls:_t,direction:St}=we.useContext(Te.E_),[Qe,$e]=(0,Ne.Z)(xe.defaultValue,{value:xe.value}),Mt=at=>{const Xt=Qe,fn=at.target.value;"value"in xe||$e(fn);const{onChange:et}=xe;et&&fn!==Xt&&et(at)},{prefixCls:wn,className:cn,rootClassName:dn,options:nn,buttonStyle:Jt="outline",disabled:Bt,children:ge,size:ue,style:se,id:he,onMouseEnter:fe,onMouseLeave:ce,onFocus:Ae,onBlur:rt}=xe,Le=_t("radio",wn),Ke=`${Le}-group`,[Lt,xt]=Ue(Le);let Ye=ge;nn&&nn.length>0&&(Ye=nn.map(at=>typeof at=="string"||typeof at=="number"?we.createElement(Tt,{key:at.toString(),prefixCls:Le,disabled:Bt,value:at,checked:Qe===at},at):we.createElement(Tt,{key:`radio-group-value-options-${at.value}`,prefixCls:Le,disabled:at.disabled||Bt,value:at.value,checked:Qe===at.value,title:at.title,style:at.style},at.label)));const Pt=(0,Fe.Z)(ue),hn=Oe()(Ke,`${Ke}-${Jt}`,{[`${Ke}-${Pt}`]:Pt,[`${Ke}-rtl`]:St==="rtl"},cn,dn,xt);return Lt(we.createElement("div",Object.assign({},(0,dt.Z)(xe,{aria:!0,data:!0}),{className:hn,style:se,onMouseEnter:fe,onMouseLeave:ce,onFocus:Ae,onBlur:rt,id:he,ref:Xe}),we.createElement(Ce,{value:{onChange:Mt,value:Qe,disabled:xe.disabled,name:xe.name,optionType:xe.optionType}},Ye)))});var Yt=we.memo(nt),ln=function(xe,Xe){var _t={};for(var St in xe)Object.prototype.hasOwnProperty.call(xe,St)&&Xe.indexOf(St)<0&&(_t[St]=xe[St]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,St=Object.getOwnPropertySymbols(xe);Qe<St.length;Qe++)Xe.indexOf(St[Qe])<0&&Object.prototype.propertyIsEnumerable.call(xe,St[Qe])&&(_t[St[Qe]]=xe[St[Qe]]);return _t};const tn=(xe,Xe)=>{const{getPrefixCls:_t}=we.useContext(Te.E_),{prefixCls:St}=xe,Qe=ln(xe,["prefixCls"]),$e=_t("radio",St);return we.createElement(Ie,{value:"button"},we.createElement(Tt,Object.assign({prefixCls:$e},Qe,{type:"radio",ref:Xe})))};var en=we.forwardRef(tn);const Ht=Tt;Ht.Button=en,Ht.Group=Yt,Ht.__ANT_RADIO=!0;var je=Ht},13570:function(mn,un,le){"use strict";le.d(un,{Z:function(){return xe}});var oe=le(60499),Oe=le(59301),Ne={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"},dt=Ne,we=le(85221),Te=function(_t,St){return Oe.createElement(we.Z,(0,oe.Z)({},_t,{ref:St,icon:dt}))},Fe=Oe.forwardRef(Te),be=Fe,Ce=le(92310),_e=le.n(Ce),ft=le(18642),Ie=le(72190),Ge=le(42244),wt=le(18929),ut=le(10228),yt=le(26112);function lt(Xe,_t){var St=Xe.disabled,Qe=Xe.prefixCls,$e=Xe.character,Mt=Xe.characterRender,wn=Xe.index,cn=Xe.count,dn=Xe.value,nn=Xe.allowHalf,Jt=Xe.focused,Bt=Xe.onHover,ge=Xe.onClick,ue=function(Ke){Bt(Ke,wn)},se=function(Ke){ge(Ke,wn)},he=function(Ke){Ke.keyCode===ut.Z.ENTER&&ge(Ke,wn)},fe=wn+1,ce=new Set([Qe]);dn===0&&wn===0&&Jt?ce.add("".concat(Qe,"-focused")):nn&&dn+.5>=fe&&dn<fe?(ce.add("".concat(Qe,"-half")),ce.add("".concat(Qe,"-active")),Jt&&ce.add("".concat(Qe,"-focused"))):(fe<=dn?ce.add("".concat(Qe,"-full")):ce.add("".concat(Qe,"-zero")),fe===dn&&Jt&&ce.add("".concat(Qe,"-focused")));var Ae=typeof $e=="function"?$e(Xe):$e,rt=Oe.createElement("li",{className:_e()(Array.from(ce)),ref:_t},Oe.createElement("div",{onClick:St?null:se,onKeyDown:St?null:he,onMouseMove:St?null:ue,role:"radio","aria-checked":dn>wn?"true":"false","aria-posinset":wn+1,"aria-setsize":cn,tabIndex:St?-1:0},Oe.createElement("div",{className:"".concat(Qe,"-first")},Ae),Oe.createElement("div",{className:"".concat(Qe,"-second")},Ae)));return Mt&&(rt=Mt(rt,Xe)),rt}var ht=Oe.forwardRef(lt);function Vt(){var Xe=Oe.useRef({});function _t(Qe){return Xe.current[Qe]}function St(Qe){return function($e){Xe.current[Qe]=$e}}return[_t,St]}function ot(Xe){var _t=Xe.pageXOffset,St="scrollLeft";if(typeof _t!="number"){var Qe=Xe.document;_t=Qe.documentElement[St],typeof _t!="number"&&(_t=Qe.body[St])}return _t}function gt(Xe){var _t,St,Qe=Xe.ownerDocument,$e=Qe.body,Mt=Qe&&Qe.documentElement,wn=Xe.getBoundingClientRect();return _t=wn.left,St=wn.top,_t-=Mt.clientLeft||$e.clientLeft||0,St-=Mt.clientTop||$e.clientTop||0,{left:_t,top:St}}function Ve(Xe){var _t=gt(Xe),St=Xe.ownerDocument,Qe=St.defaultView||St.parentWindow;return _t.left+=ot(Qe),_t.left}var Me=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ue(Xe,_t){var St,Qe=Xe.prefixCls,$e=Qe===void 0?"rc-rate":Qe,Mt=Xe.className,wn=Xe.defaultValue,cn=Xe.value,dn=Xe.count,nn=dn===void 0?5:dn,Jt=Xe.allowHalf,Bt=Jt===void 0?!1:Jt,ge=Xe.allowClear,ue=ge===void 0?!0:ge,se=Xe.character,he=se===void 0?"\u2605":se,fe=Xe.characterRender,ce=Xe.disabled,Ae=Xe.direction,rt=Ae===void 0?"ltr":Ae,Le=Xe.tabIndex,Ke=Le===void 0?0:Le,Lt=Xe.autoFocus,xt=Xe.onHoverChange,Ye=Xe.onChange,Pt=Xe.onFocus,hn=Xe.onBlur,at=Xe.onKeyDown,Xt=Xe.onMouseLeave,fn=(0,Ge.Z)(Xe,Me),et=Vt(),De=(0,Ie.Z)(et,2),qe=De[0],Ot=De[1],Gt=Oe.useRef(null),an=function(){if(!ce){var Pe;(Pe=Gt.current)===null||Pe===void 0||Pe.focus()}};Oe.useImperativeHandle(_t,function(){return{focus:an,blur:function(){if(!ce){var Pe;(Pe=Gt.current)===null||Pe===void 0||Pe.blur()}}}});var Mn=(0,wt.Z)(wn||0,{value:cn}),Dn=(0,Ie.Z)(Mn,2),Ln=Dn[0],Un=Dn[1],Wn=(0,wt.Z)(null),On=(0,Ie.Z)(Wn,2),Hn=On[0],Dr=On[1],Pr=function(Pe,it){var vt=rt==="rtl",Ut=Pe+1;if(Bt){var Ft=qe(Pe),on=Ve(Ft),Cn=Ft.clientWidth;(vt&&it-on>Cn/2||!vt&&it-on<Cn/2)&&(Ut-=.5)}return Ut},fr=function(Pe){Un(Pe),Ye==null||Ye(Pe)},Jn=Oe.useState(!1),Fr=(0,Ie.Z)(Jn,2),Tn=Fr[0],Ir=Fr[1],Yr=function(){Ir(!0),Pt==null||Pt()},nr=function(){Ir(!1),hn==null||hn()},$r=Oe.useState(null),Qr=(0,Ie.Z)($r,2),$n=Qr[0],Xn=Qr[1],Kn=function(Pe,it){var vt=Pr(it,Pe.pageX);vt!==Hn&&(Xn(vt),Dr(null)),xt==null||xt(vt)},Gn=function(Pe){ce||(Xn(null),Dr(null),xt==null||xt(void 0)),Pe&&(Xt==null||Xt(Pe))},Tr=function(Pe,it){var vt=Pr(it,Pe.pageX),Ut=!1;ue&&(Ut=vt===Ln),Gn(),fr(Ut?0:vt),Dr(Ut?vt:null)},bt=function(Pe){var it=Pe.keyCode,vt=rt==="rtl",Ut=Ln;it===ut.Z.RIGHT&&Ut<nn&&!vt?(Bt?Ut+=.5:Ut+=1,fr(Ut),Pe.preventDefault()):it===ut.Z.LEFT&&Ut>0&&!vt||it===ut.Z.RIGHT&&Ut>0&&vt?(Bt?Ut-=.5:Ut-=1,fr(Ut),Pe.preventDefault()):it===ut.Z.LEFT&&Ut<nn&&vt&&(Bt?Ut+=.5:Ut+=1,fr(Ut),Pe.preventDefault()),at==null||at(Pe)};Oe.useEffect(function(){Lt&&!ce&&an()},[]);var ke=new Array(nn).fill(0).map(function(Re,Pe){return Oe.createElement(ht,{ref:Ot(Pe),index:Pe,count:nn,disabled:ce,prefixCls:"".concat($e,"-star"),allowHalf:Bt,value:$n===null?Ln:$n,onClick:Tr,onHover:Kn,key:Re||Pe,character:he,characterRender:fe,focused:Tn})}),ze=_e()($e,Mt,(St={},(0,ft.Z)(St,"".concat($e,"-disabled"),ce),(0,ft.Z)(St,"".concat($e,"-rtl"),rt==="rtl"),St));return Oe.createElement("ul",(0,oe.Z)({className:ze,onMouseLeave:Gn,tabIndex:ce?-1:Ke,onFocus:ce?null:Yr,onBlur:ce?null:nr,onKeyDown:ce?null:bt,ref:Gt,role:"radiogroup"},(0,yt.Z)(fn,{aria:!0,data:!0,attr:!0})),ke)}var tt=Oe.forwardRef(Ue),mt=tt,Je=le(36355),kt=le(6848),st=le(17313),Tt=le(83116),nt=le(37613);const Yt=Xe=>{const{componentCls:_t}=Xe;return{[`${_t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Xe.marginXS},"> div":{transition:`all ${Xe.motionDurationMid}, outline 0s`,"&:hover":{transform:Xe.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Xe.lineWidth}px dashed ${Xe.starColor}`,transform:Xe.starHoverScale}},"&-first, &-second":{color:Xe.starBg,transition:`all ${Xe.motionDurationMid}`,userSelect:"none",[Xe.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${_t}-star-first, &-half ${_t}-star-second`]:{opacity:1},[`&-half ${_t}-star-first, &-full ${_t}-star-second`]:{color:"inherit"}}}},ln=Xe=>({[`&-rtl${Xe.componentCls}`]:{direction:"rtl"}}),tn=Xe=>{const{componentCls:_t}=Xe;return{[_t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,st.Wf)(Xe)),{display:"inline-block",margin:0,padding:0,color:Xe.starColor,fontSize:Xe.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${_t} ${_t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Yt(Xe)),{[`+ ${_t}-text`]:{display:"inline-block",marginInlineStart:Xe.marginXS,fontSize:Xe.fontSize}}),ln(Xe))}};var en=(0,Tt.Z)("Rate",Xe=>{const _t=(0,nt.TS)(Xe,{});return[tn(_t)]},Xe=>({starColor:Xe.yellow6,starSize:Xe.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Xe.colorFillContent})),Ht=function(Xe,_t){var St={};for(var Qe in Xe)Object.prototype.hasOwnProperty.call(Xe,Qe)&&_t.indexOf(Qe)<0&&(St[Qe]=Xe[Qe]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Qe=Object.getOwnPropertySymbols(Xe);$e<Qe.length;$e++)_t.indexOf(Qe[$e])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Qe[$e])&&(St[Qe[$e]]=Xe[Qe[$e]]);return St},xe=Oe.forwardRef((Xe,_t)=>{const{prefixCls:St,className:Qe,rootClassName:$e,style:Mt,tooltips:wn,character:cn=Oe.createElement(be,null)}=Xe,dn=Ht(Xe,["prefixCls","className","rootClassName","style","tooltips","character"]),nn=(ce,Ae)=>{let{index:rt}=Ae;return wn?Oe.createElement(kt.Z,{title:wn[rt]},ce):ce},{getPrefixCls:Jt,direction:Bt,rate:ge}=Oe.useContext(Je.E_),ue=Jt("rate",St),[se,he]=en(ue),fe=Object.assign(Object.assign({},ge==null?void 0:ge.style),Mt);return se(Oe.createElement(mt,Object.assign({ref:_t,character:cn,characterRender:nn},dn,{className:_e()(Qe,$e,he,ge==null?void 0:ge.className),style:fe,prefixCls:ue,direction:Bt})))})},57809:function(mn,un,le){"use strict";var oe=le(92310),Oe=le.n(oe),Ne=le(77861),dt=le(2738),we=le(59301),Te=le(53487),Fe=le(62892),be=le(19080),Ce=le(36355),_e=le(1684),ft=le(93891),Ie=le(19716),Ge=le(32441),wt=le(33234),ut=le(14154),yt=le(58582),lt=le(84443),ht=le(66339),Vt=function(Ue,tt){var mt={};for(var Je in Ue)Object.prototype.hasOwnProperty.call(Ue,Je)&&tt.indexOf(Je)<0&&(mt[Je]=Ue[Je]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Je=Object.getOwnPropertySymbols(Ue);kt<Je.length;kt++)tt.indexOf(Je[kt])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Je[kt])&&(mt[Je[kt]]=Ue[Je[kt]]);return mt};const ot="SECRET_COMBOBOX_MODE_DO_NOT_USE",gt=(Ue,tt)=>{var mt,{prefixCls:Je,bordered:kt=!0,className:st,rootClassName:Tt,getPopupContainer:nt,popupClassName:Yt,dropdownClassName:ln,listHeight:tn=256,placement:en,listItemHeight:Ht=24,size:je,disabled:xe,notFoundContent:Xe,status:_t,builtinPlacements:St,dropdownMatchSelectWidth:Qe,popupMatchSelectWidth:$e,direction:Mt,style:wn,allowClear:cn}=Ue,dn=Vt(Ue,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:nn,getPrefixCls:Jt,renderEmpty:Bt,direction:ge,virtual:ue,popupMatchSelectWidth:se,popupOverflow:he,select:fe}=we.useContext(Ce.E_),ce=Jt("select",Je),Ae=Jt(),rt=Mt!=null?Mt:ge,{compactSize:Le,compactItemClassnames:Ke}=(0,wt.ri)(ce,rt),[Lt,xt]=(0,ut.Z)(ce),Ye=we.useMemo(()=>{const{mode:Fr}=dn;if(Fr!=="combobox")return Fr===ot?"combobox":Fr},[dn.mode]),Pt=Ye==="multiple"||Ye==="tags",hn=(0,lt.Z)(dn.suffixIcon,dn.showArrow),at=(mt=$e!=null?$e:Qe)!==null&&mt!==void 0?mt:se,{status:Xt,hasFeedback:fn,isFormItemInput:et,feedbackIcon:De}=we.useContext(Ge.aM),qe=(0,be.F)(Xt,_t);let Ot;Xe!==void 0?Ot=Xe:Ye==="combobox"?Ot=null:Ot=(Bt==null?void 0:Bt("Select"))||we.createElement(ft.Z,{componentName:"Select"});const{suffixIcon:Gt,itemIcon:an,removeIcon:Mn,clearIcon:Dn}=(0,ht.Z)(Object.assign(Object.assign({},dn),{multiple:Pt,hasFeedback:fn,feedbackIcon:De,showSuffixIcon:hn,prefixCls:ce,showArrow:dn.showArrow,componentName:"Select"})),Ln=cn===!0?{clearIcon:Dn}:cn,Un=(0,dt.Z)(dn,["suffixIcon","itemIcon"]),Wn=Oe()(Yt||ln,{[`${ce}-dropdown-${rt}`]:rt==="rtl"},Tt,xt),On=(0,Ie.Z)(Fr=>{var Tn;return(Tn=je!=null?je:Le)!==null&&Tn!==void 0?Tn:Fr}),Hn=we.useContext(_e.Z),Dr=xe!=null?xe:Hn,Pr=Oe()({[`${ce}-lg`]:On==="large",[`${ce}-sm`]:On==="small",[`${ce}-rtl`]:rt==="rtl",[`${ce}-borderless`]:!kt,[`${ce}-in-form-item`]:et},(0,be.Z)(ce,qe,fn),Ke,fe==null?void 0:fe.className,st,Tt,xt),fr=we.useMemo(()=>en!==void 0?en:rt==="rtl"?"bottomRight":"bottomLeft",[en,rt]),Jn=(0,yt.Z)(St,he);return Lt(we.createElement(Ne.ZP,Object.assign({ref:tt,virtual:ue,showSearch:fe==null?void 0:fe.showSearch},Un,{style:Object.assign(Object.assign({},fe==null?void 0:fe.style),wn),dropdownMatchSelectWidth:at,builtinPlacements:Jn,transitionName:(0,Fe.m)(Ae,"slide-up",dn.transitionName),listHeight:tn,listItemHeight:Ht,mode:Ye,prefixCls:ce,placement:fr,direction:rt,suffixIcon:Gt,menuItemSelectedIcon:an,removeIcon:Mn,allowClear:Ln,notFoundContent:Ot,className:Pr,getPopupContainer:nt||nn,dropdownClassName:Wn,disabled:Dr})))},Ve=we.forwardRef(gt),Me=(0,Te.Z)(Ve);Ve.SECRET_COMBOBOX_MODE_DO_NOT_USE=ot,Ve.Option=Ne.Wx,Ve.OptGroup=Ne.Xo,Ve._InternalPanelDoNotUseOrYouWillBeFired=Me,un.default=Ve},14154:function(mn,un,le){"use strict";le.d(un,{Z:function(){return Ve}});var oe=le(17313),Oe=le(74207),Ne=le(37613),dt=le(83116),we=le(13826),Te=le(92899);const Fe=Me=>{const{optionHeight:Ue,optionFontSize:tt,optionLineHeight:mt,optionPadding:Je}=Me;return{position:"relative",display:"block",minHeight:Ue,padding:Je,color:Me.colorText,fontWeight:"normal",fontSize:tt,lineHeight:mt,boxSizing:"border-box"}};var Ce=Me=>{const{antCls:Ue,componentCls:tt}=Me,mt=`${tt}-item`,Je=`&${Ue}-slide-up-enter${Ue}-slide-up-enter-active`,kt=`&${Ue}-slide-up-appear${Ue}-slide-up-appear-active`,st=`&${Ue}-slide-up-leave${Ue}-slide-up-leave-active`,Tt=`${tt}-dropdown-placement-`;return[{[`${tt}-dropdown`]:Object.assign(Object.assign({},(0,oe.Wf)(Me)),{position:"absolute",top:-9999,zIndex:Me.zIndexPopup,boxSizing:"border-box",padding:Me.paddingXXS,overflow:"hidden",fontSize:Me.fontSize,fontVariant:"initial",backgroundColor:Me.colorBgElevated,borderRadius:Me.borderRadiusLG,outline:"none",boxShadow:Me.boxShadowSecondary,[`
|
|
|
${Je}${Tt}bottomLeft,
|
|
|
${kt}${Tt}bottomLeft
|
|
|
`]:{animationName:we.fJ},[`
|
|
|
${Je}${Tt}topLeft,
|
|
|
${kt}${Tt}topLeft,
|
|
|
${Je}${Tt}topRight,
|
|
|
${kt}${Tt}topRight
|
|
|
`]:{animationName:we.Qt},[`${st}${Tt}bottomLeft`]:{animationName:we.Uw},[`
|
|
|
${st}${Tt}topLeft,
|
|
|
${st}${Tt}topRight
|
|
|
`]:{animationName:we.ly},"&-hidden":{display:"none"},[`${mt}`]:Object.assign(Object.assign({},Fe(Me)),{cursor:"pointer",transition:`background ${Me.motionDurationSlow} ease`,borderRadius:Me.borderRadiusSM,"&-group":{color:Me.colorTextDescription,fontSize:Me.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},oe.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${mt}-option-disabled)`]:{backgroundColor:Me.optionActiveBg},[`&-selected:not(${mt}-option-disabled)`]:{color:Me.optionSelectedColor,fontWeight:Me.optionSelectedFontWeight,backgroundColor:Me.optionSelectedBg,[`${mt}-option-state`]:{color:Me.colorPrimary}},"&-disabled":{[`&${mt}-option-selected`]:{backgroundColor:Me.colorBgContainerDisabled},color:Me.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Me.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,we.oN)(Me,"slide-up"),(0,we.oN)(Me,"slide-down"),(0,Te.Fm)(Me,"move-up"),(0,Te.Fm)(Me,"move-down")]};const _e=2,ft=Me=>{let{controlHeightSM:Ue,controlHeight:tt,lineWidth:mt}=Me;const Je=(tt-Ue)/2-mt,kt=Math.ceil(Je/2);return[Je,kt]};function Ie(Me,Ue){const{componentCls:tt,iconCls:mt}=Me,Je=`${tt}-selection-overflow`,kt=Me.multipleSelectItemHeight,[st]=ft(Me),Tt=Ue?`${tt}-${Ue}`:"";return{[`${tt}-multiple${Tt}`]:{fontSize:Me.fontSize,[Je]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${tt}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${st-_e}px ${_e*2}px`,borderRadius:Me.borderRadius,[`${tt}-show-search&`]:{cursor:"text"},[`${tt}-disabled&`]:{background:Me.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${_e}px 0`,lineHeight:`${kt}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${tt}-show-arrow ${tt}-selector,
|
|
|
&${tt}-allow-clear ${tt}-selector
|
|
|
`]:{paddingInlineEnd:Me.fontSizeIcon+Me.controlPaddingHorizontal},[`${tt}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:kt,marginTop:_e,marginBottom:_e,lineHeight:`${kt-Me.lineWidth*2}px`,background:Me.multipleItemBg,border:`${Me.lineWidth}px ${Me.lineType} ${Me.multipleItemBorderColor}`,borderRadius:Me.borderRadiusSM,cursor:"default",transition:`font-size ${Me.motionDurationSlow}, line-height ${Me.motionDurationSlow}, height ${Me.motionDurationSlow}`,userSelect:"none",marginInlineEnd:_e*2,paddingInlineStart:Me.paddingXS,paddingInlineEnd:Me.paddingXS/2,[`${tt}-disabled&`]:{color:Me.multipleItemColorDisabled,borderColor:Me.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Me.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,oe.Ro)()),{display:"inline-flex",alignItems:"center",color:Me.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${mt}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Me.colorIconHover}})},[`${Je}-item + ${Je}-item`]:{[`${tt}-selection-search`]:{marginInlineStart:0}},[`${tt}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Me.inputPaddingHorizontalBase-st,"\n &-input,\n &-mirror\n ":{height:kt,fontFamily:Me.fontFamily,lineHeight:`${kt}px`,transition:`all ${Me.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${tt}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Me.inputPaddingHorizontalBase,insetInlineEnd:Me.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Me.motionDurationSlow}`}}}}var wt=Me=>{const{componentCls:Ue}=Me,tt=(0,Ne.TS)(Me,{controlHeight:Me.controlHeightSM,multipleSelectItemHeight:Me.controlHeightXS,borderRadius:Me.borderRadiusSM,borderRadiusSM:Me.borderRadiusXS}),mt=(0,Ne.TS)(Me,{fontSize:Me.fontSizeLG,controlHeight:Me.controlHeightLG,multipleSelectItemHeight:Me.multipleItemHeightLG,borderRadius:Me.borderRadiusLG,borderRadiusSM:Me.borderRadius}),[,Je]=ft(Me);return[Ie(Me),Ie(tt,"sm"),{[`${Ue}-multiple${Ue}-sm`]:{[`${Ue}-selection-placeholder`]:{insetInline:Me.controlPaddingHorizontalSM-Me.lineWidth},[`${Ue}-selection-search`]:{marginInlineStart:Je}}},Ie(mt,"lg")]};function ut(Me,Ue){const{componentCls:tt,inputPaddingHorizontalBase:mt,borderRadius:Je}=Me,kt=Me.controlHeight-Me.lineWidth*2,st=Math.ceil(Me.fontSize*1.25),Tt=Ue?`${tt}-${Ue}`:"";return{[`${tt}-single${Tt}`]:{fontSize:Me.fontSize,[`${tt}-selector`]:Object.assign(Object.assign({},(0,oe.Wf)(Me)),{display:"flex",borderRadius:Je,[`${tt}-selection-search`]:{position:"absolute",top:0,insetInlineStart:mt,insetInlineEnd:mt,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${tt}-selection-item,
|
|
|
${tt}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${kt}px`,transition:`all ${Me.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${kt}px`}},[`${tt}-selection-item`]:{position:"relative",userSelect:"none"},[`${tt}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${tt}-selection-item:after`,`${tt}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${tt}-show-arrow ${tt}-selection-item,
|
|
|
&${tt}-show-arrow ${tt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:st},[`&${tt}-open ${tt}-selection-item`]:{color:Me.colorTextPlaceholder},[`&:not(${tt}-customize-input)`]:{[`${tt}-selector`]:{width:"100%",height:Me.controlHeight,padding:`0 ${mt}px`,[`${tt}-selection-search-input`]:{height:kt},"&:after":{lineHeight:`${kt}px`}}},[`&${tt}-customize-input`]:{[`${tt}-selector`]:{"&:after":{display:"none"},[`${tt}-selection-search`]:{position:"static",width:"100%"},[`${tt}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${mt}px`,"&:after":{display:"none"}}}}}}}function yt(Me){const{componentCls:Ue}=Me,tt=Me.controlPaddingHorizontalSM-Me.lineWidth;return[ut(Me),ut((0,Ne.TS)(Me,{controlHeight:Me.controlHeightSM,borderRadius:Me.borderRadiusSM}),"sm"),{[`${Ue}-single${Ue}-sm`]:{[`&:not(${Ue}-customize-input)`]:{[`${Ue}-selection-search`]:{insetInlineStart:tt,insetInlineEnd:tt},[`${Ue}-selector`]:{padding:`0 ${tt}px`},[`&${Ue}-show-arrow ${Ue}-selection-search`]:{insetInlineEnd:tt+Me.fontSize*1.5},[`
|
|
|
&${Ue}-show-arrow ${Ue}-selection-item,
|
|
|
&${Ue}-show-arrow ${Ue}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Me.fontSize*1.5}}}},ut((0,Ne.TS)(Me,{controlHeight:Me.singleItemHeightLG,fontSize:Me.fontSizeLG,borderRadius:Me.borderRadiusLG}),"lg")]}const lt=Me=>{const{componentCls:Ue,selectorBg:tt}=Me;return{position:"relative",backgroundColor:tt,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,transition:`all ${Me.motionDurationMid} ${Me.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ue}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ue}-disabled&`]:{color:Me.colorTextDisabled,background:Me.colorBgContainerDisabled,cursor:"not-allowed",[`${Ue}-multiple&`]:{background:Me.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},ht=function(Me,Ue){let tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:mt,borderHoverColor:Je,outlineColor:kt,antCls:st}=Ue,Tt=tt?{[`${mt}-selector`]:{borderColor:Je}}:{};return{[Me]:{[`&:not(${mt}-disabled):not(${mt}-customize-input):not(${st}-pagination-size-changer)`]:Object.assign(Object.assign({},Tt),{[`${mt}-focused& ${mt}-selector`]:{borderColor:Je,boxShadow:`0 0 0 ${Ue.controlOutlineWidth}px ${kt}`,outline:0},[`&:hover ${mt}-selector`]:{borderColor:Je}})}}},Vt=Me=>{const{componentCls:Ue}=Me;return{[`${Ue}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ot=Me=>{const{componentCls:Ue,inputPaddingHorizontalBase:tt,iconCls:mt}=Me;return{[Ue]:Object.assign(Object.assign({},(0,oe.Wf)(Me)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ue}-customize-input) ${Ue}-selector`]:Object.assign(Object.assign({},lt(Me)),Vt(Me)),[`${Ue}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},oe.vS),[`${Ue}-selection-placeholder`]:Object.assign(Object.assign({},oe.vS),{flex:1,color:Me.colorTextPlaceholder,pointerEvents:"none"}),[`${Ue}-arrow`]:Object.assign(Object.assign({},(0,oe.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:tt,height:Me.fontSizeIcon,marginTop:-Me.fontSizeIcon/2,color:Me.colorTextQuaternary,fontSize:Me.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[mt]:{verticalAlign:"top",transition:`transform ${Me.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ue}-suffix)`]:{pointerEvents:"auto"}},[`${Ue}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ue}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:tt,zIndex:1,display:"inline-block",width:Me.fontSizeIcon,height:Me.fontSizeIcon,marginTop:-Me.fontSizeIcon/2,color:Me.colorTextQuaternary,fontSize:Me.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Me.clearBg,cursor:"pointer",opacity:0,transition:`color ${Me.motionDurationMid} ease, opacity ${Me.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Me.colorTextTertiary}},"&:hover":{[`${Ue}-clear`]:{opacity:1}}}),[`${Ue}-has-feedback`]:{[`${Ue}-clear`]:{insetInlineEnd:tt+Me.fontSize+Me.paddingXS}}}},gt=Me=>{const{componentCls:Ue}=Me;return[{[Ue]:{[`&-borderless ${Ue}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ue}-in-form-item`]:{width:"100%"}}},ot(Me),yt(Me),wt(Me),Ce(Me),{[`${Ue}-rtl`]:{direction:"rtl"}},ht(Ue,(0,Ne.TS)(Me,{borderHoverColor:Me.colorPrimaryHover,outlineColor:Me.controlOutline})),ht(`${Ue}-status-error`,(0,Ne.TS)(Me,{borderHoverColor:Me.colorErrorHover,outlineColor:Me.colorErrorOutline}),!0),ht(`${Ue}-status-warning`,(0,Ne.TS)(Me,{borderHoverColor:Me.colorWarningHover,outlineColor:Me.colorWarningOutline}),!0),(0,Oe.c)(Me,{borderElCls:`${Ue}-selector`,focusElCls:`${Ue}-focused`})]};var Ve=(0,dt.Z)("Select",(Me,Ue)=>{let{rootPrefixCls:tt}=Ue;const mt=(0,Ne.TS)(Me,{rootPrefixCls:tt,inputPaddingHorizontalBase:Me.paddingSM-1,multipleSelectItemHeight:Me.multipleItemHeight});return[gt(mt)]},Me=>{const{fontSize:Ue,lineHeight:tt,controlHeight:mt,controlPaddingHorizontal:Je,zIndexPopupBase:kt,colorText:st,fontWeightStrong:Tt,controlItemBgActive:nt,controlItemBgHover:Yt,colorBgContainer:ln,colorFillSecondary:tn,controlHeightLG:en,controlHeightSM:Ht,colorBgContainerDisabled:je,colorTextDisabled:xe}=Me;return{zIndexPopup:kt+50,optionSelectedColor:st,optionSelectedFontWeight:Tt,optionSelectedBg:nt,optionActiveBg:Yt,optionPadding:`${(mt-Ue*tt)/2}px ${Je}px`,optionFontSize:Ue,optionLineHeight:tt,optionHeight:mt,selectorBg:ln,clearBg:ln,singleItemHeightLG:en,multipleItemBg:tn,multipleItemBorderColor:"transparent",multipleItemHeight:Ht,multipleItemHeightLG:mt,multipleSelectorBgDisabled:je,multipleItemColorDisabled:xe,multipleItemBorderColorDisabled:"transparent"}})},58582:function(mn,un,le){"use strict";le.d(un,{Z:function(){return Oe}});const oe=Ne=>{const we={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ne==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},we),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},we),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},we),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},we),{points:["br","tr"],offset:[0,-4]})}};function Oe(Ne,dt){return Ne||oe(dt)}},84443:function(mn,un,le){"use strict";le.d(un,{Z:function(){return oe}});function oe(Oe,Ne){return Ne!==void 0?Ne:Oe!==null}},66339:function(mn,un,le){"use strict";le.d(un,{Z:function(){return be}});var oe=le(40001),Oe=le(19248),Ne=le(99267),dt=le(84105),we=le(58617),Te=le(47472),Fe=le(59301);function be(Ce){let{suffixIcon:_e,clearIcon:ft,menuItemSelectedIcon:Ie,removeIcon:Ge,loading:wt,multiple:ut,hasFeedback:yt,prefixCls:lt,showSuffixIcon:ht,feedbackIcon:Vt,showArrow:ot,componentName:gt}=Ce;const Ve=ft!=null?ft:Fe.createElement(Oe.Z,null),Me=Je=>_e===null&&!yt&&!ot?null:Fe.createElement(Fe.Fragment,null,ht!==!1&&Je,yt&&Vt);let Ue=null;if(_e!==void 0)Ue=Me(_e);else if(wt)Ue=Me(Fe.createElement(we.Z,{spin:!0}));else{const Je=`${lt}-suffix`;Ue=kt=>{let{open:st,showSearch:Tt}=kt;return Me(st&&Tt?Fe.createElement(Te.Z,{className:Je}):Fe.createElement(dt.Z,{className:Je}))}}let tt=null;Ie!==void 0?tt=Ie:ut?tt=Fe.createElement(oe.Z,null):tt=null;let mt=null;return Ge!==void 0?mt=Ge:mt=Fe.createElement(Ne.Z,null),{clearIcon:Ve,suffixIcon:Ue,itemIcon:tt,removeIcon:mt}}},61621:function(mn,un,le){"use strict";le.d(un,{Z:function(){return he}});var oe=le(92310),Oe=le.n(oe),Ne=le(59301),dt=le(36355),we=le(2738),Fe=fe=>{const{prefixCls:ce,className:Ae,style:rt,size:Le,shape:Ke}=fe,Lt=Oe()({[`${ce}-lg`]:Le==="large",[`${ce}-sm`]:Le==="small"}),xt=Oe()({[`${ce}-circle`]:Ke==="circle",[`${ce}-square`]:Ke==="square",[`${ce}-round`]:Ke==="round"}),Ye=Ne.useMemo(()=>typeof Le=="number"?{width:Le,height:Le,lineHeight:`${Le}px`}:{},[Le]);return Ne.createElement("span",{className:Oe()(ce,Lt,xt,Ae),style:Object.assign(Object.assign({},Ye),rt)})},be=le(36237),Ce=le(83116),_e=le(37613);const ft=new be.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ie=fe=>({height:fe,lineHeight:`${fe}px`}),Ge=fe=>Object.assign({width:fe},Ie(fe)),wt=fe=>({background:fe.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ft,animationDuration:fe.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ut=fe=>Object.assign({width:fe*5,minWidth:fe*5},Ie(fe)),yt=fe=>{const{skeletonAvatarCls:ce,gradientFromColor:Ae,controlHeight:rt,controlHeightLG:Le,controlHeightSM:Ke}=fe;return{[`${ce}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ae},Ge(rt)),[`${ce}${ce}-circle`]:{borderRadius:"50%"},[`${ce}${ce}-lg`]:Object.assign({},Ge(Le)),[`${ce}${ce}-sm`]:Object.assign({},Ge(Ke))}},lt=fe=>{const{controlHeight:ce,borderRadiusSM:Ae,skeletonInputCls:rt,controlHeightLG:Le,controlHeightSM:Ke,gradientFromColor:Lt}=fe;return{[`${rt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Lt,borderRadius:Ae},ut(ce)),[`${rt}-lg`]:Object.assign({},ut(Le)),[`${rt}-sm`]:Object.assign({},ut(Ke))}},ht=fe=>Object.assign({width:fe},Ie(fe)),Vt=fe=>{const{skeletonImageCls:ce,imageSizeBase:Ae,gradientFromColor:rt,borderRadiusSM:Le}=fe;return{[`${ce}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:rt,borderRadius:Le},ht(Ae*2)),{[`${ce}-path`]:{fill:"#bfbfbf"},[`${ce}-svg`]:Object.assign(Object.assign({},ht(Ae)),{maxWidth:Ae*4,maxHeight:Ae*4}),[`${ce}-svg${ce}-svg-circle`]:{borderRadius:"50%"}}),[`${ce}${ce}-circle`]:{borderRadius:"50%"}}},ot=(fe,ce,Ae)=>{const{skeletonButtonCls:rt}=fe;return{[`${Ae}${rt}-circle`]:{width:ce,minWidth:ce,borderRadius:"50%"},[`${Ae}${rt}-round`]:{borderRadius:ce}}},gt=fe=>Object.assign({width:fe*2,minWidth:fe*2},Ie(fe)),Ve=fe=>{const{borderRadiusSM:ce,skeletonButtonCls:Ae,controlHeight:rt,controlHeightLG:Le,controlHeightSM:Ke,gradientFromColor:Lt}=fe;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Ae}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Lt,borderRadius:ce,width:rt*2,minWidth:rt*2},gt(rt))},ot(fe,rt,Ae)),{[`${Ae}-lg`]:Object.assign({},gt(Le))}),ot(fe,Le,`${Ae}-lg`)),{[`${Ae}-sm`]:Object.assign({},gt(Ke))}),ot(fe,Ke,`${Ae}-sm`))},Me=fe=>{const{componentCls:ce,skeletonAvatarCls:Ae,skeletonTitleCls:rt,skeletonParagraphCls:Le,skeletonButtonCls:Ke,skeletonInputCls:Lt,skeletonImageCls:xt,controlHeight:Ye,controlHeightLG:Pt,controlHeightSM:hn,gradientFromColor:at,padding:Xt,marginSM:fn,borderRadius:et,titleHeight:De,blockRadius:qe,paragraphLiHeight:Ot,controlHeightXS:Gt,paragraphMarginTop:an}=fe;return{[`${ce}`]:{display:"table",width:"100%",[`${ce}-header`]:{display:"table-cell",paddingInlineEnd:Xt,verticalAlign:"top",[`${Ae}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:at},Ge(Ye)),[`${Ae}-circle`]:{borderRadius:"50%"},[`${Ae}-lg`]:Object.assign({},Ge(Pt)),[`${Ae}-sm`]:Object.assign({},Ge(hn))},[`${ce}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${rt}`]:{width:"100%",height:De,background:at,borderRadius:qe,[`+ ${Le}`]:{marginBlockStart:hn}},[`${Le}`]:{padding:0,"> li":{width:"100%",height:Ot,listStyle:"none",background:at,borderRadius:qe,"+ li":{marginBlockStart:Gt}}},[`${Le}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${ce}-content`]:{[`${rt}, ${Le} > li`]:{borderRadius:et}}},[`${ce}-with-avatar ${ce}-content`]:{[`${rt}`]:{marginBlockStart:fn,[`+ ${Le}`]:{marginBlockStart:an}}},[`${ce}${ce}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ve(fe)),yt(fe)),lt(fe)),Vt(fe)),[`${ce}${ce}-block`]:{width:"100%",[`${Ke}`]:{width:"100%"},[`${Lt}`]:{width:"100%"}},[`${ce}${ce}-active`]:{[`
|
|
|
${rt},
|
|
|
${Le} > li,
|
|
|
${Ae},
|
|
|
${Ke},
|
|
|
${Lt},
|
|
|
${xt}
|
|
|
`]:Object.assign({},wt(fe))}}};var Ue=(0,Ce.Z)("Skeleton",fe=>{const{componentCls:ce}=fe,Ae=(0,_e.TS)(fe,{skeletonAvatarCls:`${ce}-avatar`,skeletonTitleCls:`${ce}-title`,skeletonParagraphCls:`${ce}-paragraph`,skeletonButtonCls:`${ce}-button`,skeletonInputCls:`${ce}-input`,skeletonImageCls:`${ce}-image`,imageSizeBase:fe.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${fe.gradientFromColor} 25%, ${fe.gradientToColor} 37%, ${fe.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Me(Ae)]},fe=>{const{colorFillContent:ce,colorFill:Ae}=fe,rt=ce,Le=Ae;return{color:rt,colorGradientEnd:Le,gradientFromColor:rt,gradientToColor:Le,titleHeight:fe.controlHeight/2,blockRadius:fe.borderRadiusSM,paragraphMarginTop:fe.marginLG+fe.marginXXS,paragraphLiHeight:fe.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),mt=fe=>{const{prefixCls:ce,className:Ae,rootClassName:rt,active:Le,shape:Ke="circle",size:Lt="default"}=fe,{getPrefixCls:xt}=Ne.useContext(dt.E_),Ye=xt("skeleton",ce),[Pt,hn]=Ue(Ye),at=(0,we.Z)(fe,["prefixCls","className"]),Xt=Oe()(Ye,`${Ye}-element`,{[`${Ye}-active`]:Le},Ae,rt,hn);return Pt(Ne.createElement("div",{className:Xt},Ne.createElement(Fe,Object.assign({prefixCls:`${Ye}-avatar`,shape:Ke,size:Lt},at))))},kt=fe=>{const{prefixCls:ce,className:Ae,rootClassName:rt,active:Le,block:Ke=!1,size:Lt="default"}=fe,{getPrefixCls:xt}=Ne.useContext(dt.E_),Ye=xt("skeleton",ce),[Pt,hn]=Ue(Ye),at=(0,we.Z)(fe,["prefixCls"]),Xt=Oe()(Ye,`${Ye}-element`,{[`${Ye}-active`]:Le,[`${Ye}-block`]:Ke},Ae,rt,hn);return Pt(Ne.createElement("div",{className:Xt},Ne.createElement(Fe,Object.assign({prefixCls:`${Ye}-button`,size:Lt},at))))};const st="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 nt=fe=>{const{prefixCls:ce,className:Ae,rootClassName:rt,style:Le,active:Ke}=fe,{getPrefixCls:Lt}=Ne.useContext(dt.E_),xt=Lt("skeleton",ce),[Ye,Pt]=Ue(xt),hn=Oe()(xt,`${xt}-element`,{[`${xt}-active`]:Ke},Ae,rt,Pt);return Ye(Ne.createElement("div",{className:hn},Ne.createElement("div",{className:Oe()(`${xt}-image`,Ae),style:Le},Ne.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${xt}-image-svg`},Ne.createElement("path",{d:st,className:`${xt}-image-path`})))))},ln=fe=>{const{prefixCls:ce,className:Ae,rootClassName:rt,active:Le,block:Ke,size:Lt="default"}=fe,{getPrefixCls:xt}=Ne.useContext(dt.E_),Ye=xt("skeleton",ce),[Pt,hn]=Ue(Ye),at=(0,we.Z)(fe,["prefixCls"]),Xt=Oe()(Ye,`${Ye}-element`,{[`${Ye}-active`]:Le,[`${Ye}-block`]:Ke},Ae,rt,hn);return Pt(Ne.createElement("div",{className:Xt},Ne.createElement(Fe,Object.assign({prefixCls:`${Ye}-input`,size:Lt},at))))},tn=le(60499),en={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"},Ht=en,je=le(85221),xe=function(ce,Ae){return Ne.createElement(je.Z,(0,tn.Z)({},ce,{ref:Ae,icon:Ht}))},Xe=Ne.forwardRef(xe),_t=Xe,Qe=fe=>{const{prefixCls:ce,className:Ae,rootClassName:rt,style:Le,active:Ke,children:Lt}=fe,{getPrefixCls:xt}=Ne.useContext(dt.E_),Ye=xt("skeleton",ce),[Pt,hn]=Ue(Ye),at=Oe()(Ye,`${Ye}-element`,{[`${Ye}-active`]:Ke},hn,Ae,rt),Xt=Lt!=null?Lt:Ne.createElement(_t,null);return Pt(Ne.createElement("div",{className:at},Ne.createElement("div",{className:Oe()(`${Ye}-image`,Ae),style:Le},Xt)))},$e=le(77654),wn=fe=>{const ce=xt=>{const{width:Ye,rows:Pt=2}=fe;if(Array.isArray(Ye))return Ye[xt];if(Pt-1===xt)return Ye},{prefixCls:Ae,className:rt,style:Le,rows:Ke}=fe,Lt=(0,$e.Z)(Array(Ke)).map((xt,Ye)=>Ne.createElement("li",{key:Ye,style:{width:ce(Ye)}}));return Ne.createElement("ul",{className:Oe()(Ae,rt),style:Le},Lt)},dn=fe=>{let{prefixCls:ce,className:Ae,width:rt,style:Le}=fe;return Ne.createElement("h3",{className:Oe()(ce,Ae),style:Object.assign({width:rt},Le)})};function nn(fe){return fe&&typeof fe=="object"?fe:{}}function Jt(fe,ce){return fe&&!ce?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Bt(fe,ce){return!fe&&ce?{width:"38%"}:fe&&ce?{width:"50%"}:{}}function ge(fe,ce){const Ae={};return(!fe||!ce)&&(Ae.width="61%"),!fe&&ce?Ae.rows=3:Ae.rows=2,Ae}const ue=fe=>{const{prefixCls:ce,loading:Ae,className:rt,rootClassName:Le,style:Ke,children:Lt,avatar:xt=!1,title:Ye=!0,paragraph:Pt=!0,active:hn,round:at}=fe,{getPrefixCls:Xt,direction:fn,skeleton:et}=Ne.useContext(dt.E_),De=Xt("skeleton",ce),[qe,Ot]=Ue(De);if(Ae||!("loading"in fe)){const Gt=!!xt,an=!!Ye,Mn=!!Pt;let Dn;if(Gt){const Wn=Object.assign(Object.assign({prefixCls:`${De}-avatar`},Jt(an,Mn)),nn(xt));Dn=Ne.createElement("div",{className:`${De}-header`},Ne.createElement(Fe,Object.assign({},Wn)))}let Ln;if(an||Mn){let Wn;if(an){const Hn=Object.assign(Object.assign({prefixCls:`${De}-title`},Bt(Gt,Mn)),nn(Ye));Wn=Ne.createElement(dn,Object.assign({},Hn))}let On;if(Mn){const Hn=Object.assign(Object.assign({prefixCls:`${De}-paragraph`},ge(Gt,an)),nn(Pt));On=Ne.createElement(wn,Object.assign({},Hn))}Ln=Ne.createElement("div",{className:`${De}-content`},Wn,On)}const Un=Oe()(De,{[`${De}-with-avatar`]:Gt,[`${De}-active`]:hn,[`${De}-rtl`]:fn==="rtl",[`${De}-round`]:at},et==null?void 0:et.className,rt,Le,Ot);return qe(Ne.createElement("div",{className:Un,style:Object.assign(Object.assign({},et==null?void 0:et.style),Ke)},Dn,Ln))}return typeof Lt!="undefined"?Lt:null};ue.Button=kt,ue.Avatar=mt,ue.Input=ln,ue.Image=nt,ue.Node=Qe;var se=ue,he=se},31797:function(mn,un,le){"use strict";le.d(un,{default:function(){return Ue}});var oe=le(59301),Oe=le(56762),Ne=le(92343),dt=le(92310),we=le.n(dt),Te=le(36355),Fe=le(61621),Ce=tt=>{const{value:mt,formatter:Je,precision:kt,decimalSeparator:st,groupSeparator:Tt="",prefixCls:nt}=tt;let Yt;if(typeof Je=="function")Yt=Je(mt);else{const ln=String(mt),tn=ln.match(/^(-?)(\d*)(\.(\d+))?$/);if(!tn||ln==="-")Yt=ln;else{const en=tn[1];let Ht=tn[2]||"0",je=tn[4]||"";Ht=Ht.replace(/\B(?=(\d{3})+(?!\d))/g,Tt),typeof kt=="number"&&(je=je.padEnd(kt,"0").slice(0,kt>0?kt:0)),je&&(je=`${st}${je}`),Yt=[oe.createElement("span",{key:"int",className:`${nt}-content-value-int`},en,Ht),je&&oe.createElement("span",{key:"decimal",className:`${nt}-content-value-decimal`},je)]}}return oe.createElement("span",{className:`${nt}-content-value`},Yt)},_e=le(17313),ft=le(83116),Ie=le(37613);const Ge=tt=>{const{componentCls:mt,marginXXS:Je,padding:kt,colorTextDescription:st,titleFontSize:Tt,colorTextHeading:nt,contentFontSize:Yt,fontFamily:ln}=tt;return{[`${mt}`]:Object.assign(Object.assign({},(0,_e.Wf)(tt)),{[`${mt}-title`]:{marginBottom:Je,color:st,fontSize:Tt},[`${mt}-skeleton`]:{paddingTop:kt},[`${mt}-content`]:{color:nt,fontSize:Yt,fontFamily:ln,[`${mt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${mt}-content-prefix, ${mt}-content-suffix`]:{display:"inline-block"},[`${mt}-content-prefix`]:{marginInlineEnd:Je},[`${mt}-content-suffix`]:{marginInlineStart:Je}}})}};var wt=(0,ft.Z)("Statistic",tt=>{const mt=(0,Ie.TS)(tt,{});return[Ge(mt)]},tt=>{const{fontSizeHeading3:mt,fontSize:Je}=tt;return{titleFontSize:Je,contentFontSize:mt}}),yt=tt=>{const{prefixCls:mt,className:Je,rootClassName:kt,style:st,valueStyle:Tt,value:nt=0,title:Yt,valueRender:ln,prefix:tn,suffix:en,loading:Ht=!1,onMouseEnter:je,onMouseLeave:xe,decimalSeparator:Xe=".",groupSeparator:_t=","}=tt,{getPrefixCls:St,direction:Qe,statistic:$e}=oe.useContext(Te.E_),Mt=St("statistic",mt),[wn,cn]=wt(Mt),dn=oe.createElement(Ce,Object.assign({decimalSeparator:Xe,groupSeparator:_t,prefixCls:Mt},tt,{value:nt})),nn=we()(Mt,{[`${Mt}-rtl`]:Qe==="rtl"},$e==null?void 0:$e.className,Je,kt,cn);return wn(oe.createElement("div",{className:nn,style:Object.assign(Object.assign({},$e==null?void 0:$e.style),st),onMouseEnter:je,onMouseLeave:xe},Yt&&oe.createElement("div",{className:`${Mt}-title`},Yt),oe.createElement(Fe.Z,{paragraph:!1,loading:Ht,className:`${Mt}-skeleton`},oe.createElement("div",{style:Tt,className:`${Mt}-content`},tn&&oe.createElement("span",{className:`${Mt}-content-prefix`},tn),ln?ln(dn):dn,en&&oe.createElement("span",{className:`${Mt}-content-suffix`},en)))))};const lt=[["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 ht(tt,mt){let Je=tt;const kt=/\[[^\]]*]/g,st=(mt.match(kt)||[]).map(ln=>ln.slice(1,-1)),Tt=mt.replace(kt,"[]"),nt=lt.reduce((ln,tn)=>{let[en,Ht]=tn;if(ln.includes(en)){const je=Math.floor(Je/Ht);return Je-=je*Ht,ln.replace(new RegExp(`${en}+`,"g"),xe=>{const Xe=xe.length;return je.toString().padStart(Xe,"0")})}return ln},Tt);let Yt=0;return nt.replace(kt,()=>{const ln=st[Yt];return Yt+=1,ln})}function Vt(tt,mt){const{format:Je=""}=mt,kt=new Date(tt).getTime(),st=Date.now(),Tt=Math.max(kt-st,0);return ht(Tt,Je)}const ot=1e3/30;function gt(tt){return new Date(tt).getTime()}const Ve=tt=>{const{value:mt,format:Je="HH:mm:ss",onChange:kt,onFinish:st}=tt,Tt=(0,Oe.Z)(),nt=oe.useRef(null),Yt=()=>{st==null||st(),nt.current&&(clearInterval(nt.current),nt.current=null)},ln=()=>{const Ht=gt(mt);Ht>=Date.now()&&(nt.current=setInterval(()=>{Tt(),kt==null||kt(Ht-Date.now()),Ht<Date.now()&&Yt()},ot))};oe.useEffect(()=>(ln(),()=>{nt.current&&(clearInterval(nt.current),nt.current=null)}),[mt]);const tn=(Ht,je)=>Vt(Ht,Object.assign(Object.assign({},je),{format:Je})),en=Ht=>(0,Ne.Tm)(Ht,{title:void 0});return oe.createElement(yt,Object.assign({},tt,{valueRender:en,formatter:tn}))};var Me=oe.memo(Ve);yt.Countdown=Me;var Ue=yt},8378:function(mn,un){"use strict";const le=oe=>({[oe.componentCls]:{[`${oe.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${oe.motionDurationMid} ${oe.motionEaseInOut},
|
|
|
opacity ${oe.motionDurationMid} ${oe.motionEaseInOut} !important`}},[`${oe.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${oe.motionDurationMid} ${oe.motionEaseInOut},
|
|
|
opacity ${oe.motionDurationMid} ${oe.motionEaseInOut} !important`}}});un.Z=le},92899:function(mn,un,le){"use strict";le.d(un,{Fm:function(){return Ie}});var oe=le(36237),Oe=le(95406);const Ne=new oe.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),dt=new oe.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),we=new oe.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Te=new oe.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Fe=new oe.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),be=new oe.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ce=new oe.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_e=new oe.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ft={"move-up":{inKeyframes:Ce,outKeyframes:_e},"move-down":{inKeyframes:Ne,outKeyframes:dt},"move-left":{inKeyframes:we,outKeyframes:Te},"move-right":{inKeyframes:Fe,outKeyframes:be}},Ie=(Ge,wt)=>{const{antCls:ut}=Ge,yt=`${ut}-${wt}`,{inKeyframes:lt,outKeyframes:ht}=ft[wt];return[(0,Oe.R)(yt,lt,ht,Ge.motionDurationMid),{[`
|
|
|
${yt}-enter,
|
|
|
${yt}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:Ge.motionEaseOutCirc},[`${yt}-leave`]:{animationTimingFunction:Ge.motionEaseInOutCirc}}]}},13826:function(mn,un,le){"use strict";le.d(un,{Qt:function(){return we},Uw:function(){return dt},fJ:function(){return Ne},ly:function(){return Te},oN:function(){return Ie}});var oe=le(36237),Oe=le(95406);const Ne=new oe.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),dt=new oe.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),we=new oe.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Te=new oe.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Fe=new oe.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),be=new oe.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ce=new oe.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),_e=new oe.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ft={"slide-up":{inKeyframes:Ne,outKeyframes:dt},"slide-down":{inKeyframes:we,outKeyframes:Te},"slide-left":{inKeyframes:Fe,outKeyframes:be},"slide-right":{inKeyframes:Ce,outKeyframes:_e}},Ie=(Ge,wt)=>{const{antCls:ut}=Ge,yt=`${ut}-${wt}`,{inKeyframes:lt,outKeyframes:ht}=ft[wt];return[(0,Oe.R)(yt,lt,ht,Ge.motionDurationMid),{[`
|
|
|
${yt}-enter,
|
|
|
${yt}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:Ge.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${yt}-leave`]:{animationTimingFunction:Ge.motionEaseInQuint}}]}},78673:function(mn,un,le){"use strict";le.d(un,{Z:function(){return Tt}});var oe=le(58617),Oe=le(92310),Ne=le.n(Oe),dt=le(60499),we=le(18642),Te=le(72190),Fe=le(42244),be=le(59301),Ce=le(18929),_e=le(10228),ft=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ie=be.forwardRef(function(nt,Yt){var ln,tn=nt.prefixCls,en=tn===void 0?"rc-switch":tn,Ht=nt.className,je=nt.checked,xe=nt.defaultChecked,Xe=nt.disabled,_t=nt.loadingIcon,St=nt.checkedChildren,Qe=nt.unCheckedChildren,$e=nt.onClick,Mt=nt.onChange,wn=nt.onKeyDown,cn=(0,Fe.Z)(nt,ft),dn=(0,Ce.Z)(!1,{value:je,defaultValue:xe}),nn=(0,Te.Z)(dn,2),Jt=nn[0],Bt=nn[1];function ge(fe,ce){var Ae=Jt;return Xe||(Ae=fe,Bt(Ae),Mt==null||Mt(Ae,ce)),Ae}function ue(fe){fe.which===_e.Z.LEFT?ge(!1,fe):fe.which===_e.Z.RIGHT&&ge(!0,fe),wn==null||wn(fe)}function se(fe){var ce=ge(!Jt,fe);$e==null||$e(ce,fe)}var he=Ne()(en,Ht,(ln={},(0,we.Z)(ln,"".concat(en,"-checked"),Jt),(0,we.Z)(ln,"".concat(en,"-disabled"),Xe),ln));return be.createElement("button",(0,dt.Z)({},cn,{type:"button",role:"switch","aria-checked":Jt,disabled:Xe,className:he,ref:Yt,onKeyDown:ue,onClick:se}),_t,be.createElement("span",{className:"".concat(en,"-inner")},be.createElement("span",{className:"".concat(en,"-inner-checked")},St),be.createElement("span",{className:"".concat(en,"-inner-unchecked")},Qe)))});Ie.displayName="Switch";var Ge=Ie,wt=le(14088),ut=le(36355),yt=le(1684),lt=le(19716),ht=le(64993),Vt=le(17313),ot=le(83116),gt=le(37613);const Ve=nt=>{const{componentCls:Yt,trackHeightSM:ln,trackPadding:tn,trackMinWidthSM:en,innerMinMarginSM:Ht,innerMaxMarginSM:je,handleSizeSM:xe}=nt,Xe=`${Yt}-inner`;return{[Yt]:{[`&${Yt}-small`]:{minWidth:en,height:ln,lineHeight:`${ln}px`,[`${Yt}-inner`]:{paddingInlineStart:je,paddingInlineEnd:Ht,[`${Xe}-checked`]:{marginInlineStart:`calc(-100% + ${xe+tn*2}px - ${je*2}px)`,marginInlineEnd:`calc(100% - ${xe+tn*2}px + ${je*2}px)`},[`${Xe}-unchecked`]:{marginTop:-ln,marginInlineStart:0,marginInlineEnd:0}},[`${Yt}-handle`]:{width:xe,height:xe},[`${Yt}-loading-icon`]:{top:(xe-nt.switchLoadingIconSize)/2,fontSize:nt.switchLoadingIconSize},[`&${Yt}-checked`]:{[`${Yt}-inner`]:{paddingInlineStart:Ht,paddingInlineEnd:je,[`${Xe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Xe}-unchecked`]:{marginInlineStart:`calc(100% - ${xe+tn*2}px + ${je*2}px)`,marginInlineEnd:`calc(-100% + ${xe+tn*2}px - ${je*2}px)`}},[`${Yt}-handle`]:{insetInlineStart:`calc(100% - ${xe+tn}px)`}},[`&:not(${Yt}-disabled):active`]:{[`&:not(${Yt}-checked) ${Xe}`]:{[`${Xe}-unchecked`]:{marginInlineStart:nt.marginXXS/2,marginInlineEnd:-nt.marginXXS/2}},[`&${Yt}-checked ${Xe}`]:{[`${Xe}-checked`]:{marginInlineStart:-nt.marginXXS/2,marginInlineEnd:nt.marginXXS/2}}}}}}},Me=nt=>{const{componentCls:Yt,handleSize:ln}=nt;return{[Yt]:{[`${Yt}-loading-icon${nt.iconCls}`]:{position:"relative",top:(ln-nt.fontSize)/2,color:nt.switchLoadingIconColor,verticalAlign:"top"},[`&${Yt}-checked ${Yt}-loading-icon`]:{color:nt.switchColor}}}},Ue=nt=>{const{componentCls:Yt,motion:ln,trackPadding:tn,handleBg:en,handleShadow:Ht,handleSize:je}=nt,xe=`${Yt}-handle`;return{[Yt]:{[xe]:{position:"absolute",top:tn,insetInlineStart:tn,width:je,height:je,transition:`all ${nt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:en,borderRadius:je/2,boxShadow:Ht,transition:`all ${nt.switchDuration} ease-in-out`,content:'""'}},[`&${Yt}-checked ${xe}`]:{insetInlineStart:`calc(100% - ${je+tn}px)`},[`&:not(${Yt}-disabled):active`]:ln?{[`${xe}::before`]:{insetInlineEnd:nt.switchHandleActiveInset,insetInlineStart:0},[`&${Yt}-checked ${xe}::before`]:{insetInlineEnd:0,insetInlineStart:nt.switchHandleActiveInset}}:{}}}},tt=nt=>{const{componentCls:Yt,trackHeight:ln,trackPadding:tn,innerMinMargin:en,innerMaxMargin:Ht,handleSize:je}=nt,xe=`${Yt}-inner`;return{[Yt]:{[xe]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ht,paddingInlineEnd:en,transition:`padding-inline-start ${nt.switchDuration} ease-in-out, padding-inline-end ${nt.switchDuration} ease-in-out`,[`${xe}-checked, ${xe}-unchecked`]:{display:"block",color:nt.colorTextLightSolid,fontSize:nt.fontSizeSM,transition:`margin-inline-start ${nt.switchDuration} ease-in-out, margin-inline-end ${nt.switchDuration} ease-in-out`,pointerEvents:"none"},[`${xe}-checked`]:{marginInlineStart:`calc(-100% + ${je+tn*2}px - ${Ht*2}px)`,marginInlineEnd:`calc(100% - ${je+tn*2}px + ${Ht*2}px)`},[`${xe}-unchecked`]:{marginTop:-ln,marginInlineStart:0,marginInlineEnd:0}},[`&${Yt}-checked ${xe}`]:{paddingInlineStart:en,paddingInlineEnd:Ht,[`${xe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${xe}-unchecked`]:{marginInlineStart:`calc(100% - ${je+tn*2}px + ${Ht*2}px)`,marginInlineEnd:`calc(-100% + ${je+tn*2}px - ${Ht*2}px)`}},[`&:not(${Yt}-disabled):active`]:{[`&:not(${Yt}-checked) ${xe}`]:{[`${xe}-unchecked`]:{marginInlineStart:tn*2,marginInlineEnd:-tn*2}},[`&${Yt}-checked ${xe}`]:{[`${xe}-checked`]:{marginInlineStart:-tn*2,marginInlineEnd:tn*2}}}}}},mt=nt=>{const{componentCls:Yt,trackHeight:ln,trackMinWidth:tn}=nt;return{[Yt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Vt.Wf)(nt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:tn,height:ln,lineHeight:`${ln}px`,verticalAlign:"middle",background:nt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${nt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Yt}-disabled)`]:{background:nt.colorTextTertiary}}),(0,Vt.Qy)(nt)),{[`&${Yt}-checked`]:{background:nt.switchColor,[`&:hover:not(${Yt}-disabled)`]:{background:nt.colorPrimaryHover}},[`&${Yt}-loading, &${Yt}-disabled`]:{cursor:"not-allowed",opacity:nt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Yt}-rtl`]:{direction:"rtl"}})}};var Je=(0,ot.Z)("Switch",nt=>{const Yt=(0,gt.TS)(nt,{switchDuration:nt.motionDurationMid,switchColor:nt.colorPrimary,switchDisabledOpacity:nt.opacityLoading,switchLoadingIconSize:nt.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${nt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[mt(Yt),tt(Yt),Ue(Yt),Me(Yt),Ve(Yt)]},nt=>{const{fontSize:Yt,lineHeight:ln,controlHeight:tn,colorWhite:en}=nt,Ht=Yt*ln,je=tn/2,xe=2,Xe=Ht-xe*2,_t=je-xe*2;return{trackHeight:Ht,trackHeightSM:je,trackMinWidth:Xe*2+xe*4,trackMinWidthSM:_t*2+xe*2,trackPadding:xe,handleBg:en,handleSize:Xe,handleSizeSM:_t,handleShadow:`0 2px 4px 0 ${new ht.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Xe/2,innerMaxMargin:Xe+xe+xe*2,innerMinMarginSM:_t/2,innerMaxMarginSM:_t+xe+xe*2}}),kt=function(nt,Yt){var ln={};for(var tn in nt)Object.prototype.hasOwnProperty.call(nt,tn)&&Yt.indexOf(tn)<0&&(ln[tn]=nt[tn]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var en=0,tn=Object.getOwnPropertySymbols(nt);en<tn.length;en++)Yt.indexOf(tn[en])<0&&Object.prototype.propertyIsEnumerable.call(nt,tn[en])&&(ln[tn[en]]=nt[tn[en]]);return ln};const st=be.forwardRef((nt,Yt)=>{const{prefixCls:ln,size:tn,disabled:en,loading:Ht,className:je,rootClassName:xe,style:Xe}=nt,_t=kt(nt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:St,direction:Qe,switch:$e}=be.useContext(ut.E_),Mt=be.useContext(yt.Z),wn=(en!=null?en:Mt)||Ht,cn=St("switch",ln),dn=be.createElement("div",{className:`${cn}-handle`},Ht&&be.createElement(oe.Z,{className:`${cn}-loading-icon`})),[nn,Jt]=Je(cn),Bt=(0,lt.Z)(tn),ge=Ne()($e==null?void 0:$e.className,{[`${cn}-small`]:Bt==="small",[`${cn}-loading`]:Ht,[`${cn}-rtl`]:Qe==="rtl"},je,xe,Jt),ue=Object.assign(Object.assign({},$e==null?void 0:$e.style),Xe);return nn(be.createElement(wt.Z,{component:"Switch"},be.createElement(Ge,Object.assign({},_t,{prefixCls:cn,className:ge,style:ue,disabled:wn,ref:Yt,loadingIcon:dn}))))});st.__ANT_SWITCH=!0;var Tt=st},99313:function(mn,un,le){"use strict";le.d(un,{default:function(){return bt}});var oe=le(99267),Oe=le(18785),Ne=le(62772),dt=le(92310),we=le.n(dt),Te=le(60499),Fe=le(18642),be=le(85899),Ce=le(72190),_e=le(43749),ft=le(42244),Ie=le(59301),Ge=le(49658),wt=le(18929),ut=le(77900),yt=(0,Ie.createContext)(null),lt=Ie.forwardRef(function(ke,ze){var Re=ke.prefixCls,Pe=ke.className,it=ke.style,vt=ke.id,Ut=ke.active,Ft=ke.tabKey,on=ke.children;return Ie.createElement("div",{id:vt&&"".concat(vt,"-panel-").concat(Ft),role:"tabpanel",tabIndex:Ut?0:-1,"aria-labelledby":vt&&"".concat(vt,"-tab-").concat(Ft),"aria-hidden":!Ut,style:it,className:we()(Re,Ut&&"".concat(Re,"-active"),Pe),ref:ze},on)}),ht=lt,Vt=["key","forceRender","style","className"];function ot(ke){var ze=ke.id,Re=ke.activeKey,Pe=ke.animated,it=ke.tabPosition,vt=ke.destroyInactiveTabPane,Ut=Ie.useContext(yt),Ft=Ut.prefixCls,on=Ut.tabs,Cn=Pe.tabPane,Bn="".concat(Ft,"-tabpane");return Ie.createElement("div",{className:we()("".concat(Ft,"-content-holder"))},Ie.createElement("div",{className:we()("".concat(Ft,"-content"),"".concat(Ft,"-content-").concat(it),(0,Fe.Z)({},"".concat(Ft,"-content-animated"),Cn))},on.map(function(An){var Wt=An.key,bn=An.forceRender,pt=An.style,It=An.className,Kt=(0,ft.Z)(An,Vt),Nt=Wt===Re;return Ie.createElement(ut.default,(0,Te.Z)({key:Wt,visible:Nt,forceRender:bn,removeOnLeave:!!vt,leavedClassName:"".concat(Bn,"-hidden")},Pe.tabPaneMotion),function(gn,Zt){var pn=gn.style,He=gn.className;return Ie.createElement(ht,(0,Te.Z)({},Kt,{prefixCls:Bn,id:ze,tabKey:Wt,animated:Cn,active:Nt,style:(0,be.Z)((0,be.Z)({},pt),pn),className:we()(It,He),ref:Zt}))})})))}var gt=le(77654),Ve=le(29301),Me=le(6089),Ue=le(8654),tt={width:0,height:0,left:0,top:0};function mt(ke,ze,Re){return(0,Ie.useMemo)(function(){for(var Pe,it=new Map,vt=ze.get((Pe=ke[0])===null||Pe===void 0?void 0:Pe.key)||tt,Ut=vt.left+vt.width,Ft=0;Ft<ke.length;Ft+=1){var on=ke[Ft].key,Cn=ze.get(on);if(!Cn){var Bn;Cn=ze.get((Bn=ke[Ft-1])===null||Bn===void 0?void 0:Bn.key)||tt}var An=it.get(on)||(0,be.Z)({},Cn);An.right=Ut-An.left-An.width,it.set(on,An)}return it},[ke.map(function(Pe){return Pe.key}).join("_"),ze,Re])}function Je(ke,ze){var Re=Ie.useRef(ke),Pe=Ie.useState({}),it=(0,Ce.Z)(Pe,2),vt=it[1];function Ut(Ft){var on=typeof Ft=="function"?Ft(Re.current):Ft;on!==Re.current&&ze(on,Re.current),Re.current=on,vt({})}return[Re.current,Ut]}var kt=.1,st=.01,Tt=20,nt=Math.pow(.995,Tt);function Yt(ke,ze){var Re=(0,Ie.useState)(),Pe=(0,Ce.Z)(Re,2),it=Pe[0],vt=Pe[1],Ut=(0,Ie.useState)(0),Ft=(0,Ce.Z)(Ut,2),on=Ft[0],Cn=Ft[1],Bn=(0,Ie.useState)(0),An=(0,Ce.Z)(Bn,2),Wt=An[0],bn=An[1],pt=(0,Ie.useState)(),It=(0,Ce.Z)(pt,2),Kt=It[0],Nt=It[1],gn=(0,Ie.useRef)();function Zt(jt){var qt=jt.touches[0],$t=qt.screenX,En=qt.screenY;vt({x:$t,y:En}),window.clearInterval(gn.current)}function pn(jt){if(it){jt.preventDefault();var qt=jt.touches[0],$t=qt.screenX,En=qt.screenY;vt({x:$t,y:En});var In=$t-it.x,zn=En-it.y;ze(In,zn);var er=Date.now();Cn(er),bn(er-on),Nt({x:In,y:zn})}}function He(){if(it&&(vt(null),Nt(null),Kt)){var jt=Kt.x/Wt,qt=Kt.y/Wt,$t=Math.abs(jt),En=Math.abs(qt);if(Math.max($t,En)<kt)return;var In=jt,zn=qt;gn.current=window.setInterval(function(){if(Math.abs(In)<st&&Math.abs(zn)<st){window.clearInterval(gn.current);return}In*=nt,zn*=nt,ze(In*Tt,zn*Tt)},Tt)}}var At=(0,Ie.useRef)();function Dt(jt){var qt=jt.deltaX,$t=jt.deltaY,En=0,In=Math.abs(qt),zn=Math.abs($t);In===zn?En=At.current==="x"?qt:$t:In>zn?(En=qt,At.current="x"):(En=$t,At.current="y"),ze(-En,-En)&&jt.preventDefault()}var Qt=(0,Ie.useRef)(null);Qt.current={onTouchStart:Zt,onTouchMove:pn,onTouchEnd:He,onWheel:Dt},Ie.useEffect(function(){function jt(In){Qt.current.onTouchStart(In)}function qt(In){Qt.current.onTouchMove(In)}function $t(In){Qt.current.onTouchEnd(In)}function En(In){Qt.current.onWheel(In)}return document.addEventListener("touchmove",qt,{passive:!1}),document.addEventListener("touchend",$t,{passive:!1}),ke.current.addEventListener("touchstart",jt,{passive:!1}),ke.current.addEventListener("wheel",En),function(){document.removeEventListener("touchmove",qt),document.removeEventListener("touchend",$t)}},[])}var ln=le(34280);function tn(ke){var ze=(0,Ie.useState)(0),Re=(0,Ce.Z)(ze,2),Pe=Re[0],it=Re[1],vt=(0,Ie.useRef)(0),Ut=(0,Ie.useRef)();return Ut.current=ke,(0,ln.o)(function(){var Ft;(Ft=Ut.current)===null||Ft===void 0||Ft.call(Ut)},[Pe]),function(){vt.current===Pe&&(vt.current+=1,it(vt.current))}}function en(ke){var ze=(0,Ie.useRef)([]),Re=(0,Ie.useState)({}),Pe=(0,Ce.Z)(Re,2),it=Pe[1],vt=(0,Ie.useRef)(typeof ke=="function"?ke():ke),Ut=tn(function(){var on=vt.current;ze.current.forEach(function(Cn){on=Cn(on)}),ze.current=[],vt.current=on,it({})});function Ft(on){ze.current.push(on),Ut()}return[vt.current,Ft]}var Ht={width:0,height:0,left:0,top:0,right:0};function je(ke,ze,Re,Pe,it,vt,Ut){var Ft=Ut.tabs,on=Ut.tabPosition,Cn=Ut.rtl,Bn,An,Wt;return["top","bottom"].includes(on)?(Bn="width",An=Cn?"right":"left",Wt=Math.abs(Re)):(Bn="height",An="top",Wt=-Re),(0,Ie.useMemo)(function(){if(!Ft.length)return[0,0];for(var bn=Ft.length,pt=bn,It=0;It<bn;It+=1){var Kt=ke.get(Ft[It].key)||Ht;if(Kt[An]+Kt[Bn]>Wt+ze){pt=It-1;break}}for(var Nt=0,gn=bn-1;gn>=0;gn-=1){var Zt=ke.get(Ft[gn].key)||Ht;if(Zt[An]<Wt){Nt=gn+1;break}}return Nt>=pt?[0,0]:[Nt,pt]},[ke,ze,Pe,it,vt,Wt,on,Ft.map(function(bn){return bn.key}).join("_"),Cn])}function xe(ke){var ze;return ke instanceof Map?(ze={},ke.forEach(function(Re,Pe){ze[Pe]=Re})):ze=ke,JSON.stringify(ze)}var Xe="TABS_DQ";function _t(ke){return String(ke).replace(/"/g,Xe)}function St(ke,ze,Re,Pe){return!(!Re||Pe||ke===!1||ke===void 0&&(ze===!1||ze===null))}function Qe(ke,ze){var Re=ke.prefixCls,Pe=ke.editable,it=ke.locale,vt=ke.style;return!Pe||Pe.showAdd===!1?null:Ie.createElement("button",{ref:ze,type:"button",className:"".concat(Re,"-nav-add"),style:vt,"aria-label":(it==null?void 0:it.addAriaLabel)||"Add tab",onClick:function(Ft){Pe.onEdit("add",{event:Ft})}},Pe.addIcon||"+")}var $e=Ie.forwardRef(Qe),Mt=Ie.forwardRef(function(ke,ze){var Re=ke.position,Pe=ke.prefixCls,it=ke.extra;if(!it)return null;var vt,Ut={};return(0,_e.Z)(it)==="object"&&!Ie.isValidElement(it)?Ut=it:Ut.right=it,Re==="right"&&(vt=Ut.right),Re==="left"&&(vt=Ut.left),vt?Ie.createElement("div",{className:"".concat(Pe,"-extra-content"),ref:ze},vt):null}),wn=Mt,cn=le(31561),dn=le(15285),nn=le(10228);function Jt(ke,ze){var Re=ke.prefixCls,Pe=ke.id,it=ke.tabs,vt=ke.locale,Ut=ke.mobile,Ft=ke.moreIcon,on=Ft===void 0?"More":Ft,Cn=ke.moreTransitionName,Bn=ke.style,An=ke.className,Wt=ke.editable,bn=ke.tabBarGutter,pt=ke.rtl,It=ke.removeAriaLabel,Kt=ke.onTabClick,Nt=ke.getPopupContainer,gn=ke.popupClassName,Zt=(0,Ie.useState)(!1),pn=(0,Ce.Z)(Zt,2),He=pn[0],At=pn[1],Dt=(0,Ie.useState)(null),Qt=(0,Ce.Z)(Dt,2),jt=Qt[0],qt=Qt[1],$t="".concat(Pe,"-more-popup"),En="".concat(Re,"-dropdown"),In=jt!==null?"".concat($t,"-").concat(jt):null,zn=vt==null?void 0:vt.dropdownAriaLabel;function er(Or,ur){Or.preventDefault(),Or.stopPropagation(),Wt.onEdit("remove",{key:ur,event:Or})}var mr=Ie.createElement(dn.ZP,{onClick:function(ur){var or=ur.key,_r=ur.domEvent;Kt(or,_r),At(!1)},prefixCls:"".concat(En,"-menu"),id:$t,tabIndex:-1,role:"listbox","aria-activedescendant":In,selectedKeys:[jt],"aria-label":zn!==void 0?zn:"expanded dropdown"},it.map(function(Or){var ur=Or.closable,or=Or.disabled,_r=Or.closeIcon,Sr=Or.key,Jr=Or.label,si=St(ur,_r,Wt,or);return Ie.createElement(dn.sN,{key:Sr,id:"".concat($t,"-").concat(Sr),role:"option","aria-controls":Pe&&"".concat(Pe,"-panel-").concat(Sr),disabled:or},Ie.createElement("span",null,Jr),si&&Ie.createElement("button",{type:"button","aria-label":It||"remove",tabIndex:0,className:"".concat(En,"-menu-item-remove"),onClick:function(Nn){Nn.stopPropagation(),er(Nn,Sr)}},_r||Wt.removeIcon||"\xD7"))}));function wr(Or){for(var ur=it.filter(function(si){return!si.disabled}),or=ur.findIndex(function(si){return si.key===jt})||0,_r=ur.length,Sr=0;Sr<_r;Sr+=1){or=(or+Or+_r)%_r;var Jr=ur[or];if(!Jr.disabled){qt(Jr.key);return}}}function cr(Or){var ur=Or.which;if(!He){[nn.Z.DOWN,nn.Z.SPACE,nn.Z.ENTER].includes(ur)&&(At(!0),Or.preventDefault());return}switch(ur){case nn.Z.UP:wr(-1),Or.preventDefault();break;case nn.Z.DOWN:wr(1),Or.preventDefault();break;case nn.Z.ESC:At(!1);break;case nn.Z.SPACE:case nn.Z.ENTER:jt!==null&&Kt(jt,Or);break}}(0,Ie.useEffect)(function(){var Or=document.getElementById(In);Or&&Or.scrollIntoView&&Or.scrollIntoView(!1)},[jt]),(0,Ie.useEffect)(function(){He||qt(null)},[He]);var Zn=(0,Fe.Z)({},pt?"marginRight":"marginLeft",bn);it.length||(Zn.visibility="hidden",Zn.order=1);var Ar=we()((0,Fe.Z)({},"".concat(En,"-rtl"),pt)),pr=Ut?null:Ie.createElement(cn.Z,{prefixCls:En,overlay:mr,trigger:["hover"],visible:it.length?He:!1,transitionName:Cn,onVisibleChange:At,overlayClassName:we()(Ar,gn),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Nt},Ie.createElement("button",{type:"button",className:"".concat(Re,"-nav-more"),style:Zn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":$t,id:"".concat(Pe,"-more"),"aria-expanded":He,onKeyDown:cr},on));return Ie.createElement("div",{className:we()("".concat(Re,"-nav-operations"),An),style:Bn,ref:ze},pr,Ie.createElement($e,{prefixCls:Re,locale:vt,editable:Wt}))}var Bt=Ie.memo(Ie.forwardRef(Jt),function(ke,ze){return ze.tabMoving});function ge(ke){var ze,Re=ke.prefixCls,Pe=ke.id,it=ke.active,vt=ke.tab,Ut=vt.key,Ft=vt.label,on=vt.disabled,Cn=vt.closeIcon,Bn=ke.closable,An=ke.renderWrapper,Wt=ke.removeAriaLabel,bn=ke.editable,pt=ke.onClick,It=ke.onFocus,Kt=ke.style,Nt="".concat(Re,"-tab"),gn=St(Bn,Cn,bn,on);function Zt(At){on||pt(At)}function pn(At){At.preventDefault(),At.stopPropagation(),bn.onEdit("remove",{key:Ut,event:At})}var He=Ie.createElement("div",{key:Ut,"data-node-key":_t(Ut),className:we()(Nt,(ze={},(0,Fe.Z)(ze,"".concat(Nt,"-with-remove"),gn),(0,Fe.Z)(ze,"".concat(Nt,"-active"),it),(0,Fe.Z)(ze,"".concat(Nt,"-disabled"),on),ze)),style:Kt,onClick:Zt},Ie.createElement("div",{role:"tab","aria-selected":it,id:Pe&&"".concat(Pe,"-tab-").concat(Ut),className:"".concat(Nt,"-btn"),"aria-controls":Pe&&"".concat(Pe,"-panel-").concat(Ut),"aria-disabled":on,tabIndex:on?null:0,onClick:function(Dt){Dt.stopPropagation(),Zt(Dt)},onKeyDown:function(Dt){[nn.Z.SPACE,nn.Z.ENTER].includes(Dt.which)&&(Dt.preventDefault(),Zt(Dt))},onFocus:It},Ft),gn&&Ie.createElement("button",{type:"button","aria-label":Wt||"remove",tabIndex:0,className:"".concat(Nt,"-remove"),onClick:function(Dt){Dt.stopPropagation(),pn(Dt)}},Cn||bn.removeIcon||"\xD7"));return An?An(He):He}var ue=ge,se=le(16089),he=function(ze){var Re=ze.activeTabOffset,Pe=ze.horizontal,it=ze.rtl,vt=ze.indicatorSize,Ut=(0,Ie.useState)(),Ft=(0,Ce.Z)(Ut,2),on=Ft[0],Cn=Ft[1],Bn=(0,Ie.useRef)(),An=function(pt){return typeof vt=="function"?vt(pt):typeof vt=="number"?vt:pt};function Wt(){se.Z.cancel(Bn.current)}return(0,Ie.useEffect)(function(){var bn={};return Re&&(Pe?(it?(bn.right=Re.right+Re.width/2,bn.transform="translateX(50%)"):(bn.left=Re.left+Re.width/2,bn.transform="translateX(-50%)"),bn.width=An(Re.width)):(bn.top=Re.top+Re.height/2,bn.transform="translateY(-50%)",bn.height=An(Re.height))),Wt(),Bn.current=(0,se.Z)(function(){Cn(bn)}),Wt},[Re,Pe,it,vt]),{style:on}},fe=he,ce=function(ze){var Re=ze.current||{},Pe=Re.offsetWidth,it=Pe===void 0?0:Pe,vt=Re.offsetHeight,Ut=vt===void 0?0:vt;return[it,Ut]},Ae=function(ze,Re){return ze[Re?0:1]};function rt(ke,ze){var Re,Pe=Ie.useContext(yt),it=Pe.prefixCls,vt=Pe.tabs,Ut=ke.className,Ft=ke.style,on=ke.id,Cn=ke.animated,Bn=ke.activeKey,An=ke.rtl,Wt=ke.extra,bn=ke.editable,pt=ke.locale,It=ke.tabPosition,Kt=ke.tabBarGutter,Nt=ke.children,gn=ke.onTabClick,Zt=ke.onTabScroll,pn=ke.indicatorSize,He=(0,Ie.useRef)(),At=(0,Ie.useRef)(),Dt=(0,Ie.useRef)(),Qt=(0,Ie.useRef)(),jt=(0,Ie.useRef)(),qt=(0,Ie.useRef)(),$t=(0,Ie.useRef)(),En=It==="top"||It==="bottom",In=Je(0,function(ai,Er){En&&Zt&&Zt({direction:ai>Er?"left":"right"})}),zn=(0,Ce.Z)(In,2),er=zn[0],mr=zn[1],wr=Je(0,function(ai,Er){!En&&Zt&&Zt({direction:ai>Er?"top":"bottom"})}),cr=(0,Ce.Z)(wr,2),Zn=cr[0],Ar=cr[1],pr=(0,Ie.useState)([0,0]),Or=(0,Ce.Z)(pr,2),ur=Or[0],or=Or[1],_r=(0,Ie.useState)([0,0]),Sr=(0,Ce.Z)(_r,2),Jr=Sr[0],si=Sr[1],br=(0,Ie.useState)([0,0]),Nn=(0,Ce.Z)(br,2),Rn=Nn[0],kr=Nn[1],yr=(0,Ie.useState)([0,0]),Hr=(0,Ce.Z)(yr,2),jr=Hr[0],Gr=Hr[1],Cr=en(new Map),Kr=(0,Ce.Z)(Cr,2),yi=Kr[0],ir=Kr[1],hr=mt(vt,yi,Jr[0]),Vr=Ae(ur,En),qr=Ae(Jr,En),xi=Ae(Rn,En),Ei=Ae(jr,En),vi=Vr<qr+xi,ci=vi?Vr-Ei:Vr-xi,Ai="".concat(it,"-nav-operations-hidden"),Li=0,dr=0;En&&An?(Li=0,dr=Math.max(0,qr-ci)):(Li=Math.min(0,ci-qr),dr=0);function sr(ai){return ai<Li?Li:ai>dr?dr:ai}var ar=(0,Ie.useRef)(),Br=(0,Ie.useState)(),gi=(0,Ce.Z)(Br,2),Di=gi[0],Ii=gi[1];function ki(){Ii(Date.now())}function wi(){window.clearTimeout(ar.current)}Yt(Qt,function(ai,Er){function Ur(bi,pi){bi(function(Si){var pa=sr(Si+pi);return pa})}return vi?(En?Ur(mr,ai):Ur(Ar,Er),wi(),ki(),!0):!1}),(0,Ie.useEffect)(function(){return wi(),Di&&(ar.current=window.setTimeout(function(){Ii(0)},100)),wi},[Di]);var Pi=je(hr,ci,En?er:Zn,qr,xi,Ei,(0,be.Z)((0,be.Z)({},ke),{},{tabs:vt})),Gi=(0,Ce.Z)(Pi,2),Hi=Gi[0],oa=Gi[1],li=(0,Me.Z)(function(){var ai=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bn,Er=hr.get(ai)||{width:0,height:0,left:0,right:0,top:0};if(En){var Ur=er;An?Er.right<er?Ur=Er.right:Er.right+Er.width>er+ci&&(Ur=Er.right+Er.width-ci):Er.left<-er?Ur=-Er.left:Er.left+Er.width>-er+ci&&(Ur=-(Er.left+Er.width-ci)),Ar(0),mr(sr(Ur))}else{var bi=Zn;Er.top<-Zn?bi=-Er.top:Er.top+Er.height>-Zn+ci&&(bi=-(Er.top+Er.height-ci)),mr(0),Ar(sr(bi))}}),fi={};It==="top"||It==="bottom"?fi[An?"marginRight":"marginLeft"]=Kt:fi.marginTop=Kt;var Ri=vt.map(function(ai,Er){var Ur=ai.key;return Ie.createElement(ue,{id:on,prefixCls:it,key:Ur,tab:ai,style:Er===0?void 0:fi,closable:ai.closable,editable:bn,active:Ur===Bn,renderWrapper:Nt,removeAriaLabel:pt==null?void 0:pt.removeAriaLabel,onClick:function(pi){gn(Ur,pi)},onFocus:function(){li(Ur),ki(),Qt.current&&(An||(Qt.current.scrollLeft=0),Qt.current.scrollTop=0)}})}),sn=function(){return ir(function(){var Er=new Map;return vt.forEach(function(Ur){var bi,pi=Ur.key,Si=(bi=jt.current)===null||bi===void 0?void 0:bi.querySelector('[data-node-key="'.concat(_t(pi),'"]'));Si&&Er.set(pi,{width:Si.offsetWidth,height:Si.offsetHeight,left:Si.offsetLeft,top:Si.offsetTop})}),Er})};(0,Ie.useEffect)(function(){sn()},[vt.map(function(ai){return ai.key}).join("_")]);var rn=tn(function(){var ai=ce(He),Er=ce(At),Ur=ce(Dt);or([ai[0]-Er[0]-Ur[0],ai[1]-Er[1]-Ur[1]]);var bi=ce($t);kr(bi);var pi=ce(qt);Gr(pi);var Si=ce(jt);si([Si[0]-bi[0],Si[1]-bi[1]]),sn()}),vn=vt.slice(0,Hi),Fn=vt.slice(oa+1),_n=[].concat((0,gt.Z)(vn),(0,gt.Z)(Fn)),tr=hr.get(Bn),xn=fe({activeTabOffset:tr,horizontal:En,rtl:An,indicatorSize:pn}),jn=xn.style;(0,Ie.useEffect)(function(){li()},[Bn,Li,dr,xe(tr),xe(hr),En]),(0,Ie.useEffect)(function(){rn()},[An]);var gr=!!_n.length,Rr="".concat(it,"-nav-wrap"),Wr,qn,ti,di;return En?An?(qn=er>0,Wr=er!==dr):(Wr=er<0,qn=er!==Li):(ti=Zn<0,di=Zn!==Li),Ie.createElement(Ve.Z,{onResize:rn},Ie.createElement("div",{ref:(0,Ue.x1)(ze,He),role:"tablist",className:we()("".concat(it,"-nav"),Ut),style:Ft,onKeyDown:function(){ki()}},Ie.createElement(wn,{ref:At,position:"left",extra:Wt,prefixCls:it}),Ie.createElement(Ve.Z,{onResize:rn},Ie.createElement("div",{className:we()(Rr,(Re={},(0,Fe.Z)(Re,"".concat(Rr,"-ping-left"),Wr),(0,Fe.Z)(Re,"".concat(Rr,"-ping-right"),qn),(0,Fe.Z)(Re,"".concat(Rr,"-ping-top"),ti),(0,Fe.Z)(Re,"".concat(Rr,"-ping-bottom"),di),Re)),ref:Qt},Ie.createElement(Ve.Z,{onResize:rn},Ie.createElement("div",{ref:jt,className:"".concat(it,"-nav-list"),style:{transform:"translate(".concat(er,"px, ").concat(Zn,"px)"),transition:Di?"none":void 0}},Ri,Ie.createElement($e,{ref:$t,prefixCls:it,locale:pt,editable:bn,style:(0,be.Z)((0,be.Z)({},Ri.length===0?void 0:fi),{},{visibility:gr?"hidden":null})}),Ie.createElement("div",{className:we()("".concat(it,"-ink-bar"),(0,Fe.Z)({},"".concat(it,"-ink-bar-animated"),Cn.inkBar)),style:jn}))))),Ie.createElement(Bt,(0,Te.Z)({},ke,{removeAriaLabel:pt==null?void 0:pt.removeAriaLabel,ref:qt,prefixCls:it,tabs:_n,className:!gr&&Ai,tabMoving:!!Di})),Ie.createElement(wn,{ref:Dt,position:"right",extra:Wt,prefixCls:it})))}var Le=Ie.forwardRef(rt),Ke=["renderTabBar"],Lt=["label","key"];function xt(ke){var ze=ke.renderTabBar,Re=(0,ft.Z)(ke,Ke),Pe=Ie.useContext(yt),it=Pe.tabs;if(ze){var vt=(0,be.Z)((0,be.Z)({},Re),{},{panes:it.map(function(Ut){var Ft=Ut.label,on=Ut.key,Cn=(0,ft.Z)(Ut,Lt);return Ie.createElement(ht,(0,Te.Z)({tab:Ft,key:on,tabKey:on},Cn))})});return ze(vt,Le)}return Ie.createElement(Le,Re)}var Ye=le(48736);function Pt(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},ze;return ke===!1?ze={inkBar:!1,tabPane:!1}:ke===!0?ze={inkBar:!0,tabPane:!1}:ze=(0,be.Z)({inkBar:!0},(0,_e.Z)(ke)==="object"?ke:{}),ze.tabPaneMotion&&ze.tabPane===void 0&&(ze.tabPane=!0),!ze.tabPaneMotion&&ze.tabPane&&(ze.tabPane=!1),ze}var hn=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],at=0;function Xt(ke,ze){var Re,Pe=ke.id,it=ke.prefixCls,vt=it===void 0?"rc-tabs":it,Ut=ke.className,Ft=ke.items,on=ke.direction,Cn=ke.activeKey,Bn=ke.defaultActiveKey,An=ke.editable,Wt=ke.animated,bn=ke.tabPosition,pt=bn===void 0?"top":bn,It=ke.tabBarGutter,Kt=ke.tabBarStyle,Nt=ke.tabBarExtraContent,gn=ke.locale,Zt=ke.moreIcon,pn=ke.moreTransitionName,He=ke.destroyInactiveTabPane,At=ke.renderTabBar,Dt=ke.onChange,Qt=ke.onTabClick,jt=ke.onTabScroll,qt=ke.getPopupContainer,$t=ke.popupClassName,En=ke.indicatorSize,In=(0,ft.Z)(ke,hn),zn=Ie.useMemo(function(){return(Ft||[]).filter(function(Gr){return Gr&&(0,_e.Z)(Gr)==="object"&&"key"in Gr})},[Ft]),er=on==="rtl",mr=Pt(Wt),wr=(0,Ie.useState)(!1),cr=(0,Ce.Z)(wr,2),Zn=cr[0],Ar=cr[1];(0,Ie.useEffect)(function(){Ar((0,Ge.Z)())},[]);var pr=(0,wt.Z)(function(){var Gr;return(Gr=zn[0])===null||Gr===void 0?void 0:Gr.key},{value:Cn,defaultValue:Bn}),Or=(0,Ce.Z)(pr,2),ur=Or[0],or=Or[1],_r=(0,Ie.useState)(function(){return zn.findIndex(function(Gr){return Gr.key===ur})}),Sr=(0,Ce.Z)(_r,2),Jr=Sr[0],si=Sr[1];(0,Ie.useEffect)(function(){var Gr=zn.findIndex(function(Kr){return Kr.key===ur});if(Gr===-1){var Cr;Gr=Math.max(0,Math.min(Jr,zn.length-1)),or((Cr=zn[Gr])===null||Cr===void 0?void 0:Cr.key)}si(Gr)},[zn.map(function(Gr){return Gr.key}).join("_"),ur,Jr]);var br=(0,wt.Z)(null,{value:Pe}),Nn=(0,Ce.Z)(br,2),Rn=Nn[0],kr=Nn[1];(0,Ie.useEffect)(function(){Pe||(kr("rc-tabs-".concat(at)),at+=1)},[]);function yr(Gr,Cr){Qt==null||Qt(Gr,Cr);var Kr=Gr!==ur;or(Gr),Kr&&(Dt==null||Dt(Gr))}var Hr={id:Rn,activeKey:ur,animated:mr,tabPosition:pt,rtl:er,mobile:Zn},jr=(0,be.Z)((0,be.Z)({},Hr),{},{editable:An,locale:gn,moreIcon:Zt,moreTransitionName:pn,tabBarGutter:It,onTabClick:yr,onTabScroll:jt,extra:Nt,style:Kt,panes:null,getPopupContainer:qt,popupClassName:$t,indicatorSize:En});return Ie.createElement(yt.Provider,{value:{tabs:zn,prefixCls:vt}},Ie.createElement("div",(0,Te.Z)({ref:ze,id:Pe,className:we()(vt,"".concat(vt,"-").concat(pt),(Re={},(0,Fe.Z)(Re,"".concat(vt,"-mobile"),Zn),(0,Fe.Z)(Re,"".concat(vt,"-editable"),An),(0,Fe.Z)(Re,"".concat(vt,"-rtl"),er),Re),Ut)},In),Ie.createElement(xt,(0,Te.Z)({},jr,{renderTabBar:At})),Ie.createElement(ot,(0,Te.Z)({destroyInactiveTabPane:He},Hr,{animated:mr}))))}var fn=Ie.forwardRef(Xt),et=fn,De=et,qe=le(36355),Ot=le(19716),an=()=>null,Mn=le(62892);const Dn={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Ln(ke){let ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Re;return ze===!1?Re={inkBar:!1,tabPane:!1}:ze===!0?Re={inkBar:!0,tabPane:!0}:Re=Object.assign({inkBar:!0},typeof ze=="object"?ze:{}),Re.tabPane&&(Re.tabPaneMotion=Object.assign(Object.assign({},Dn),{motionName:(0,Mn.m)(ke,"switch")})),Re}var Un=le(11592),Wn=function(ke,ze){var Re={};for(var Pe in ke)Object.prototype.hasOwnProperty.call(ke,Pe)&&ze.indexOf(Pe)<0&&(Re[Pe]=ke[Pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Pe=Object.getOwnPropertySymbols(ke);it<Pe.length;it++)ze.indexOf(Pe[it])<0&&Object.prototype.propertyIsEnumerable.call(ke,Pe[it])&&(Re[Pe[it]]=ke[Pe[it]]);return Re};function On(ke){return ke.filter(ze=>ze)}function Hn(ke,ze){if(ke)return ke;const Re=(0,Un.Z)(ze).map(Pe=>{if(Ie.isValidElement(Pe)){const{key:it,props:vt}=Pe,Ut=vt||{},{tab:Ft}=Ut,on=Wn(Ut,["tab"]);return Object.assign(Object.assign({key:String(it)},on),{label:Ft})}return null});return On(Re)}var Dr=le(17313),Pr=le(83116),fr=le(37613),Jn=le(13826),Tn=ke=>{const{componentCls:ze,motionDurationSlow:Re}=ke;return[{[ze]:{[`${ze}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Re}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Re}`}}}}},[(0,Jn.oN)(ke,"slide-up"),(0,Jn.oN)(ke,"slide-down")]]};const Ir=ke=>{const{componentCls:ze,tabsCardPadding:Re,cardBg:Pe,cardGutter:it,colorBorderSecondary:vt,itemSelectedColor:Ut}=ke;return{[`${ze}-card`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{[`${ze}-tab`]:{margin:0,padding:Re,background:Pe,border:`${ke.lineWidth}px ${ke.lineType} ${vt}`,transition:`all ${ke.motionDurationSlow} ${ke.motionEaseInOut}`},[`${ze}-tab-active`]:{color:Ut,background:ke.colorBgContainer},[`${ze}-ink-bar`]:{visibility:"hidden"}},[`&${ze}-top, &${ze}-bottom`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{[`${ze}-tab + ${ze}-tab`]:{marginLeft:{_skip_check_:!0,value:`${it}px`}}}},[`&${ze}-top`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{[`${ze}-tab`]:{borderRadius:`${ke.borderRadiusLG}px ${ke.borderRadiusLG}px 0 0`},[`${ze}-tab-active`]:{borderBottomColor:ke.colorBgContainer}}},[`&${ze}-bottom`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{[`${ze}-tab`]:{borderRadius:`0 0 ${ke.borderRadiusLG}px ${ke.borderRadiusLG}px`},[`${ze}-tab-active`]:{borderTopColor:ke.colorBgContainer}}},[`&${ze}-left, &${ze}-right`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{[`${ze}-tab + ${ze}-tab`]:{marginTop:`${it}px`}}},[`&${ze}-left`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{[`${ze}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ke.borderRadiusLG}px 0 0 ${ke.borderRadiusLG}px`}},[`${ze}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:ke.colorBgContainer}}}},[`&${ze}-right`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{[`${ze}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ke.borderRadiusLG}px ${ke.borderRadiusLG}px 0`}},[`${ze}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:ke.colorBgContainer}}}}}}},Yr=ke=>{const{componentCls:ze,itemHoverColor:Re,dropdownEdgeChildVerticalPadding:Pe}=ke;return{[`${ze}-dropdown`]:Object.assign(Object.assign({},(0,Dr.Wf)(ke)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ke.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${ze}-dropdown-menu`]:{maxHeight:ke.tabsDropdownHeight,margin:0,padding:`${Pe}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:ke.colorBgContainer,backgroundClip:"padding-box",borderRadius:ke.borderRadiusLG,outline:"none",boxShadow:ke.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Dr.vS),{display:"flex",alignItems:"center",minWidth:ke.tabsDropdownWidth,margin:0,padding:`${ke.paddingXXS}px ${ke.paddingSM}px`,color:ke.colorText,fontWeight:"normal",fontSize:ke.fontSize,lineHeight:ke.lineHeight,cursor:"pointer",transition:`all ${ke.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:ke.marginSM},color:ke.colorTextDescription,fontSize:ke.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Re}},"&:hover":{background:ke.controlItemBgHover},"&-disabled":{"&, &:hover":{color:ke.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},nr=ke=>{const{componentCls:ze,margin:Re,colorBorderSecondary:Pe,horizontalMargin:it,verticalItemPadding:vt,verticalItemMargin:Ut}=ke;return{[`${ze}-top, ${ze}-bottom`]:{flexDirection:"column",[`> ${ze}-nav, > div > ${ze}-nav`]:{margin:it,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ke.lineWidth}px ${ke.lineType} ${Pe}`,content:"''"},[`${ze}-ink-bar`]:{height:ke.lineWidthBold,"&-animated":{transition:`width ${ke.motionDurationSlow}, left ${ke.motionDurationSlow},
|
|
|
right ${ke.motionDurationSlow}`}},[`${ze}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:ke.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:ke.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:ke.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:`${Re}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:ke.controlHeight*1.25,[`${ze}-tab`]:{padding:vt,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:ke.controlHeight},"&::before":{top:0,boxShadow:ke.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:ke.boxShadowTabsOverflowBottom},[`&${ze}-nav-wrap-ping-top::before`]:{opacity:1},[`&${ze}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${ze}-ink-bar`]:{width:ke.lineWidthBold,"&-animated":{transition:`height ${ke.motionDurationSlow}, top ${ke.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:`-${ke.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${ke.lineWidth}px ${ke.lineType} ${ke.colorBorder}`},[`> ${ze}-content > ${ze}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:ke.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:-ke.lineWidth},borderRight:{_skip_check_:!0,value:`${ke.lineWidth}px ${ke.lineType} ${ke.colorBorder}`},[`> ${ze}-content > ${ze}-tabpane`]:{paddingRight:{_skip_check_:!0,value:ke.paddingLG}}}}}},$r=ke=>{const{componentCls:ze,cardPaddingSM:Re,cardPaddingLG:Pe,horizontalItemPaddingSM:it,horizontalItemPaddingLG:vt}=ke;return{[ze]:{"&-small":{[`> ${ze}-nav`]:{[`${ze}-tab`]:{padding:it,fontSize:ke.titleFontSizeSM}}},"&-large":{[`> ${ze}-nav`]:{[`${ze}-tab`]:{padding:vt,fontSize:ke.titleFontSizeLG}}}},[`${ze}-card`]:{[`&${ze}-small`]:{[`> ${ze}-nav`]:{[`${ze}-tab`]:{padding:Re}},[`&${ze}-bottom`]:{[`> ${ze}-nav ${ze}-tab`]:{borderRadius:`0 0 ${ke.borderRadius}px ${ke.borderRadius}px`}},[`&${ze}-top`]:{[`> ${ze}-nav ${ze}-tab`]:{borderRadius:`${ke.borderRadius}px ${ke.borderRadius}px 0 0`}},[`&${ze}-right`]:{[`> ${ze}-nav ${ze}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ke.borderRadius}px ${ke.borderRadius}px 0`}}},[`&${ze}-left`]:{[`> ${ze}-nav ${ze}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ke.borderRadius}px 0 0 ${ke.borderRadius}px`}}}},[`&${ze}-large`]:{[`> ${ze}-nav`]:{[`${ze}-tab`]:{padding:Pe}}}}}},Qr=ke=>{const{componentCls:ze,itemActiveColor:Re,itemHoverColor:Pe,iconCls:it,tabsHorizontalItemMargin:vt,horizontalItemPadding:Ut,itemSelectedColor:Ft,itemColor:on}=ke,Cn=`${ze}-tab`;return{[Cn]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Ut,fontSize:ke.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:on,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Re}},(0,Dr.Qy)(ke)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-ke.marginXXS},marginLeft:{_skip_check_:!0,value:ke.marginXS},color:ke.colorTextDescription,fontSize:ke.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${ke.motionDurationSlow}`,"&:hover":{color:ke.colorTextHeading}},"&:hover":{color:Pe},[`&${Cn}-active ${Cn}-btn`]:{color:Ft,textShadow:ke.tabsActiveTextShadow},[`&${Cn}-disabled`]:{color:ke.colorTextDisabled,cursor:"not-allowed"},[`&${Cn}-disabled ${Cn}-btn, &${Cn}-disabled ${ze}-remove`]:{"&:focus, &:active":{color:ke.colorTextDisabled}},[`& ${Cn}-remove ${it}`]:{margin:0},[it]:{marginRight:{_skip_check_:!0,value:ke.marginSM}}},[`${Cn} + ${Cn}`]:{margin:{_skip_check_:!0,value:vt}}}},$n=ke=>{const{componentCls:ze,tabsHorizontalItemMarginRTL:Re,iconCls:Pe,cardGutter:it}=ke;return{[`${ze}-rtl`]:{direction:"rtl",[`${ze}-nav`]:{[`${ze}-tab`]:{margin:{_skip_check_:!0,value:Re},[`${ze}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Pe]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${ke.marginSM}px`}},[`${ze}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${ke.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${ke.marginXXS}px`},[Pe]:{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:it},marginLeft:{_skip_check_:!0,value:0}}}}},[`${ze}-dropdown-rtl`]:{direction:"rtl"},[`${ze}-menu-item`]:{[`${ze}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Xn=ke=>{const{componentCls:ze,tabsCardPadding:Re,cardHeight:Pe,cardGutter:it,itemHoverColor:vt,itemActiveColor:Ut,colorBorderSecondary:Ft}=ke;return{[ze]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Dr.Wf)(ke)),{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 ${ke.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${ze}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${ke.motionDurationSlow}`},[`${ze}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${ze}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${ze}-nav-more`]:{position:"relative",padding:Re,background:"transparent",border:0,color:ke.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:ke.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${ze}-nav-add`]:Object.assign({minWidth:Pe,marginLeft:{_skip_check_:!0,value:it},padding:`0 ${ke.paddingXS}px`,background:"transparent",border:`${ke.lineWidth}px ${ke.lineType} ${Ft}`,borderRadius:`${ke.borderRadiusLG}px ${ke.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:ke.colorText,transition:`all ${ke.motionDurationSlow} ${ke.motionEaseInOut}`,"&:hover":{color:vt},"&:active, &:focus:not(:focus-visible)":{color:Ut}},(0,Dr.Qy)(ke))},[`${ze}-extra-content`]:{flex:"none"},[`${ze}-ink-bar`]:{position:"absolute",background:ke.inkBarColor,pointerEvents:"none"}}),Qr(ke)),{[`${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 Kn=(0,Pr.Z)("Tabs",ke=>{const ze=(0,fr.TS)(ke,{tabsCardPadding:ke.cardPadding||`${(ke.cardHeight-Math.round(ke.fontSize*ke.lineHeight))/2-ke.lineWidth}px ${ke.padding}px`,dropdownEdgeChildVerticalPadding:ke.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ke.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${ke.horizontalItemGutter}px`});return[$r(ze),$n(ze),nr(ze),Yr(ze),Ir(ze),Xn(ze),Tn(ze)]},ke=>{const ze=ke.controlHeightLG;return{zIndexPopup:ke.zIndexPopupBase+50,cardBg:ke.colorFillAlter,cardHeight:ze,cardPadding:"",cardPaddingSM:`${ke.paddingXXS*1.5}px ${ke.padding}px`,cardPaddingLG:`${ke.paddingXS}px ${ke.padding}px ${ke.paddingXXS*1.5}px`,titleFontSize:ke.fontSize,titleFontSizeLG:ke.fontSizeLG,titleFontSizeSM:ke.fontSize,inkBarColor:ke.colorPrimary,horizontalMargin:`0 0 ${ke.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${ke.paddingSM}px 0`,horizontalItemPaddingSM:`${ke.paddingXS}px 0`,horizontalItemPaddingLG:`${ke.padding}px 0`,verticalItemPadding:`${ke.paddingXS}px ${ke.paddingLG}px`,verticalItemMargin:`${ke.margin}px 0 0 0`,itemColor:ke.colorText,itemSelectedColor:ke.colorPrimary,itemHoverColor:ke.colorPrimaryHover,itemActiveColor:ke.colorPrimaryActive,cardGutter:ke.marginXXS/2}}),Gn=function(ke,ze){var Re={};for(var Pe in ke)Object.prototype.hasOwnProperty.call(ke,Pe)&&ze.indexOf(Pe)<0&&(Re[Pe]=ke[Pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Pe=Object.getOwnPropertySymbols(ke);it<Pe.length;it++)ze.indexOf(Pe[it])<0&&Object.prototype.propertyIsEnumerable.call(ke,Pe[it])&&(Re[Pe[it]]=ke[Pe[it]]);return Re};const Tr=ke=>{const{type:ze,className:Re,rootClassName:Pe,size:it,onEdit:vt,hideAdd:Ut,centered:Ft,addIcon:on,popupClassName:Cn,children:Bn,items:An,animated:Wt,style:bn,indicatorSize:pt}=ke,It=Gn(ke,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Kt,moreIcon:Nt=Ie.createElement(Oe.Z,null)}=It,{direction:gn,tabs:Zt,getPrefixCls:pn,getPopupContainer:He}=Ie.useContext(qe.E_),At=pn("tabs",Kt),[Dt,Qt]=Kn(At);let jt;ze==="editable-card"&&(jt={onEdit:(er,mr)=>{let{key:wr,event:cr}=mr;vt==null||vt(er==="add"?cr:wr,er)},removeIcon:Ie.createElement(oe.Z,null),addIcon:on||Ie.createElement(Ne.Z,null),showAdd:Ut!==!0});const qt=pn(),$t=Hn(An,Bn),En=Ln(At,Wt),In=(0,Ot.Z)(it),zn=Object.assign(Object.assign({},Zt==null?void 0:Zt.style),bn);return Dt(Ie.createElement(De,Object.assign({direction:gn,getPopupContainer:He,moreTransitionName:`${qt}-slide-up`},It,{items:$t,className:we()({[`${At}-${In}`]:In,[`${At}-card`]:["card","editable-card"].includes(ze),[`${At}-editable-card`]:ze==="editable-card",[`${At}-centered`]:Ft},Zt==null?void 0:Zt.className,Re,Pe,Qt),popupClassName:we()(Cn,Qt),style:zn,editable:jt,moreIcon:Nt,prefixCls:At,animated:En,indicatorSize:pt!=null?pt:Zt==null?void 0:Zt.indicatorSize})))};Tr.TabPane=an;var bt=Tr},54580:function(mn,un,le){"use strict";le.d(un,{default:function(){return bn}});var oe=le(59301),Oe=le(77654),Ne=le(92310),dt=le.n(Ne),we=le(60499),Te=le(38705),Fe=le(17212),be=le(39153),Ce=le(55401),_e=le(18642),ft=le(42244),Ie=le(73001),Ge=le(43749),wt=le(11576),ut=le(26112);function yt(pt,It){var Kt="cannot ".concat(pt.method," ").concat(pt.action," ").concat(It.status,"'"),Nt=new Error(Kt);return Nt.status=It.status,Nt.method=pt.method,Nt.url=pt.action,Nt}function lt(pt){var It=pt.responseText||pt.response;if(!It)return It;try{return JSON.parse(It)}catch(Kt){return It}}function ht(pt){var It=new XMLHttpRequest;pt.onProgress&&It.upload&&(It.upload.onprogress=function(Zt){Zt.total>0&&(Zt.percent=Zt.loaded/Zt.total*100),pt.onProgress(Zt)});var Kt=new FormData;pt.data&&Object.keys(pt.data).forEach(function(gn){var Zt=pt.data[gn];if(Array.isArray(Zt)){Zt.forEach(function(pn){Kt.append("".concat(gn,"[]"),pn)});return}Kt.append(gn,Zt)}),pt.file instanceof Blob?Kt.append(pt.filename,pt.file,pt.file.name):Kt.append(pt.filename,pt.file),It.onerror=function(Zt){pt.onError(Zt)},It.onload=function(){return It.status<200||It.status>=300?pt.onError(yt(pt,It),lt(It)):pt.onSuccess(lt(It),It)},It.open(pt.method,pt.action,!0),pt.withCredentials&&"withCredentials"in It&&(It.withCredentials=!0);var Nt=pt.headers||{};return Nt["X-Requested-With"]!==null&&It.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Nt).forEach(function(gn){Nt[gn]!==null&&It.setRequestHeader(gn,Nt[gn])}),It.send(Kt),{abort:function(){It.abort()}}}var Vt=+new Date,ot=0;function gt(){return"rc-upload-".concat(Vt,"-").concat(++ot)}var Ve=le(48736),Me=function(pt,It){if(pt&&It){var Kt=Array.isArray(It)?It:It.split(","),Nt=pt.name||"",gn=pt.type||"",Zt=gn.replace(/\/.*$/,"");return Kt.some(function(pn){var He=pn.trim();if(/^\*(\/\*)?$/.test(pn))return!0;if(He.charAt(0)==="."){var At=Nt.toLowerCase(),Dt=He.toLowerCase(),Qt=[Dt];return(Dt===".jpg"||Dt===".jpeg")&&(Qt=[".jpg",".jpeg"]),Qt.some(function(jt){return At.endsWith(jt)})}return/\/\*$/.test(He)?Zt===He.replace(/\/.*$/,""):gn===He?!0:/^\w+$/.test(He)?((0,Ve.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(He,"'.Skip for check.")),!0):!1})}return!0};function Ue(pt,It){var Kt=pt.createReader(),Nt=[];function gn(){Kt.readEntries(function(Zt){var pn=Array.prototype.slice.apply(Zt);Nt=Nt.concat(pn);var He=!pn.length;He?It(Nt):gn()})}gn()}var tt=function(It,Kt,Nt){var gn=function Zt(pn,He){pn&&(pn.path=He||"",pn.isFile?pn.file(function(At){Nt(At)&&(pn.fullPath&&!At.webkitRelativePath&&(Object.defineProperties(At,{webkitRelativePath:{writable:!0}}),At.webkitRelativePath=pn.fullPath.replace(/^\//,""),Object.defineProperties(At,{webkitRelativePath:{writable:!1}})),Kt([At]))}):pn.isDirectory&&Ue(pn,function(At){At.forEach(function(Dt){Zt(Dt,"".concat(He).concat(pn.name,"/"))})}))};It.forEach(function(Zt){gn(Zt.webkitGetAsEntry())})},mt=tt,Je=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],kt=function(pt){(0,be.Z)(Kt,pt);var It=(0,Ce.Z)(Kt);function Kt(){var Nt;(0,Te.Z)(this,Kt);for(var gn=arguments.length,Zt=new Array(gn),pn=0;pn<gn;pn++)Zt[pn]=arguments[pn];return Nt=It.call.apply(It,[this].concat(Zt)),Nt.state={uid:gt()},Nt.reqs={},Nt.fileInput=void 0,Nt._isMounted=void 0,Nt.onChange=function(He){var At=Nt.props,Dt=At.accept,Qt=At.directory,jt=He.target.files,qt=(0,Oe.Z)(jt).filter(function($t){return!Qt||Me($t,Dt)});Nt.uploadFiles(qt),Nt.reset()},Nt.onClick=function(He){var At=Nt.fileInput;if(At){var Dt=He.target,Qt=Nt.props.onClick;if(Dt&&Dt.tagName==="BUTTON"){var jt=At.parentNode;jt.focus(),Dt.blur()}At.click(),Qt&&Qt(He)}},Nt.onKeyDown=function(He){He.key==="Enter"&&Nt.onClick(He)},Nt.onFileDrop=function(He){var At=Nt.props.multiple;if(He.preventDefault(),He.type!=="dragover")if(Nt.props.directory)mt(Array.prototype.slice.call(He.dataTransfer.items),Nt.uploadFiles,function(Qt){return Me(Qt,Nt.props.accept)});else{var Dt=(0,Oe.Z)(He.dataTransfer.files).filter(function(Qt){return Me(Qt,Nt.props.accept)});At===!1&&(Dt=Dt.slice(0,1)),Nt.uploadFiles(Dt)}},Nt.uploadFiles=function(He){var At=(0,Oe.Z)(He),Dt=At.map(function(Qt){return Qt.uid=gt(),Nt.processFile(Qt,At)});Promise.all(Dt).then(function(Qt){var jt=Nt.props.onBatchStart;jt==null||jt(Qt.map(function(qt){var $t=qt.origin,En=qt.parsedFile;return{file:$t,parsedFile:En}})),Qt.filter(function(qt){return qt.parsedFile!==null}).forEach(function(qt){Nt.post(qt)})})},Nt.processFile=function(){var He=(0,wt.Z)((0,Ie.Z)().mark(function At(Dt,Qt){var jt,qt,$t,En,In,zn,er,mr,wr;return(0,Ie.Z)().wrap(function(Zn){for(;;)switch(Zn.prev=Zn.next){case 0:if(jt=Nt.props.beforeUpload,qt=Dt,!jt){Zn.next=14;break}return Zn.prev=3,Zn.next=6,jt(Dt,Qt);case 6:qt=Zn.sent,Zn.next=12;break;case 9:Zn.prev=9,Zn.t0=Zn.catch(3),qt=!1;case 12:if(qt!==!1){Zn.next=14;break}return Zn.abrupt("return",{origin:Dt,parsedFile:null,action:null,data:null});case 14:if($t=Nt.props.action,typeof $t!="function"){Zn.next=21;break}return Zn.next=18,$t(Dt);case 18:En=Zn.sent,Zn.next=22;break;case 21:En=$t;case 22:if(In=Nt.props.data,typeof In!="function"){Zn.next=29;break}return Zn.next=26,In(Dt);case 26:zn=Zn.sent,Zn.next=30;break;case 29:zn=In;case 30:return er=((0,Ge.Z)(qt)==="object"||typeof qt=="string")&&qt?qt:Dt,er instanceof File?mr=er:mr=new File([er],Dt.name,{type:Dt.type}),wr=mr,wr.uid=Dt.uid,Zn.abrupt("return",{origin:Dt,data:zn,parsedFile:wr,action:En});case 35:case"end":return Zn.stop()}},At,null,[[3,9]])}));return function(At,Dt){return He.apply(this,arguments)}}(),Nt.saveFileInput=function(He){Nt.fileInput=He},Nt}return(0,Fe.Z)(Kt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(gn){var Zt=this,pn=gn.data,He=gn.origin,At=gn.action,Dt=gn.parsedFile;if(this._isMounted){var Qt=this.props,jt=Qt.onStart,qt=Qt.customRequest,$t=Qt.name,En=Qt.headers,In=Qt.withCredentials,zn=Qt.method,er=He.uid,mr=qt||ht,wr={action:At,filename:$t,data:pn,file:Dt,headers:En,withCredentials:In,method:zn||"post",onProgress:function(Zn){var Ar=Zt.props.onProgress;Ar==null||Ar(Zn,Dt)},onSuccess:function(Zn,Ar){var pr=Zt.props.onSuccess;pr==null||pr(Zn,Dt,Ar),delete Zt.reqs[er]},onError:function(Zn,Ar){var pr=Zt.props.onError;pr==null||pr(Zn,Ar,Dt),delete Zt.reqs[er]}};jt(He),this.reqs[er]=mr(wr)}}},{key:"reset",value:function(){this.setState({uid:gt()})}},{key:"abort",value:function(gn){var Zt=this.reqs;if(gn){var pn=gn.uid?gn.uid:gn;Zt[pn]&&Zt[pn].abort&&Zt[pn].abort(),delete Zt[pn]}else Object.keys(Zt).forEach(function(He){Zt[He]&&Zt[He].abort&&Zt[He].abort(),delete Zt[He]})}},{key:"render",value:function(){var gn=this.props,Zt=gn.component,pn=gn.prefixCls,He=gn.className,At=gn.disabled,Dt=gn.id,Qt=gn.style,jt=gn.multiple,qt=gn.accept,$t=gn.capture,En=gn.children,In=gn.directory,zn=gn.openFileDialogOnClick,er=gn.onMouseEnter,mr=gn.onMouseLeave,wr=(0,ft.Z)(gn,Je),cr=dt()((0,_e.Z)((0,_e.Z)((0,_e.Z)({},pn,!0),"".concat(pn,"-disabled"),At),He,He)),Zn=In?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Ar=At?{}:{onClick:zn?this.onClick:function(){},onKeyDown:zn?this.onKeyDown:function(){},onMouseEnter:er,onMouseLeave:mr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return oe.createElement(Zt,(0,we.Z)({},Ar,{className:cr,role:"button",style:Qt}),oe.createElement("input",(0,we.Z)({},(0,ut.Z)(wr,{aria:!0,data:!0}),{id:Dt,disabled:At,type:"file",ref:this.saveFileInput,onClick:function(Or){return Or.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:qt},Zn,{multiple:jt,onChange:this.onChange},$t!=null?{capture:$t}:{})),En)}}]),Kt}(oe.Component),st=kt;function Tt(){}var nt=function(pt){(0,be.Z)(Kt,pt);var It=(0,Ce.Z)(Kt);function Kt(){var Nt;(0,Te.Z)(this,Kt);for(var gn=arguments.length,Zt=new Array(gn),pn=0;pn<gn;pn++)Zt[pn]=arguments[pn];return Nt=It.call.apply(It,[this].concat(Zt)),Nt.uploader=void 0,Nt.saveUploader=function(He){Nt.uploader=He},Nt}return(0,Fe.Z)(Kt,[{key:"abort",value:function(gn){this.uploader.abort(gn)}},{key:"render",value:function(){return oe.createElement(st,(0,we.Z)({},this.props,{ref:this.saveUploader}))}}]),Kt}(oe.Component);nt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Tt,onError:Tt,onSuccess:Tt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Yt=nt,ln=Yt,tn=le(18929),en=le(4676),Ht=le(36355),je=le(1684),xe=le(9763),Xe=le(31724),_t={icon:function(It,Kt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Kt}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:It}}]}},name:"file",theme:"twotone"},St=_t,Qe=le(85221),$e=function(It,Kt){return oe.createElement(Qe.Z,(0,we.Z)({},It,{ref:Kt,icon:St}))},Mt=oe.forwardRef($e),wn=Mt,cn=le(58617),dn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},nn=dn,Jt=function(It,Kt){return oe.createElement(Qe.Z,(0,we.Z)({},It,{ref:Kt,icon:nn}))},Bt=oe.forwardRef(Jt),ge=Bt,ue={icon:function(It,Kt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:It}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Kt}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Kt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Kt}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:It}}]}},name:"picture",theme:"twotone"},se=ue,he=function(It,Kt){return oe.createElement(Qe.Z,(0,we.Z)({},It,{ref:Kt,icon:se}))},fe=oe.forwardRef(he),ce=fe,Ae=le(77900),rt=le(56762),Le=le(62892),Ke=le(92343),Lt=le(3113);function xt(pt){return Object.assign(Object.assign({},pt),{lastModified:pt.lastModified,lastModifiedDate:pt.lastModifiedDate,name:pt.name,size:pt.size,type:pt.type,uid:pt.uid,percent:0,originFileObj:pt})}function Ye(pt,It){const Kt=(0,Oe.Z)(It),Nt=Kt.findIndex(gn=>{let{uid:Zt}=gn;return Zt===pt.uid});return Nt===-1?Kt.push(pt):Kt[Nt]=pt,Kt}function Pt(pt,It){const Kt=pt.uid!==void 0?"uid":"name";return It.filter(Nt=>Nt[Kt]===pt[Kt])[0]}function hn(pt,It){const Kt=pt.uid!==void 0?"uid":"name",Nt=It.filter(gn=>gn[Kt]!==pt[Kt]);return Nt.length===It.length?null:Nt}const at=function(){const It=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Nt=It[It.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Nt)||[""])[0]},Xt=pt=>pt.indexOf("image/")===0,fn=pt=>{if(pt.type&&!pt.thumbUrl)return Xt(pt.type);const It=pt.thumbUrl||pt.url||"",Kt=at(It);return/^data:image\//.test(It)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Kt)?!0:!(/^data:/.test(It)||Kt)},et=200;function De(pt){return new Promise(It=>{if(!pt.type||!Xt(pt.type)){It("");return}const Kt=document.createElement("canvas");Kt.width=et,Kt.height=et,Kt.style.cssText=`position: fixed; left: 0; top: 0; width: ${et}px; height: ${et}px; z-index: 9999; display: none;`,document.body.appendChild(Kt);const Nt=Kt.getContext("2d"),gn=new Image;if(gn.onload=()=>{const{width:Zt,height:pn}=gn;let He=et,At=et,Dt=0,Qt=0;Zt>pn?(At=pn*(et/Zt),Qt=-(At-He)/2):(He=Zt*(et/pn),Dt=-(He-At)/2),Nt.drawImage(gn,Dt,Qt,He,At);const jt=Kt.toDataURL();document.body.removeChild(Kt),window.URL.revokeObjectURL(gn.src),It(jt)},gn.crossOrigin="anonymous",pt.type.startsWith("image/svg+xml")){const Zt=new FileReader;Zt.onload=()=>{Zt.result&&(gn.src=Zt.result)},Zt.readAsDataURL(pt)}else if(pt.type.startsWith("image/gif")){const Zt=new FileReader;Zt.onload=()=>{Zt.result&&It(Zt.result)},Zt.readAsDataURL(pt)}else gn.src=window.URL.createObjectURL(pt)})}var qe=le(26227),Ot=le(41464),Gt=le(15277),an=le(93948),Mn=le(6848),Ln=oe.forwardRef((pt,It)=>{let{prefixCls:Kt,className:Nt,style:gn,locale:Zt,listType:pn,file:He,items:At,progress:Dt,iconRender:Qt,actionIconRender:jt,itemRender:qt,isImgUrl:$t,showPreviewIcon:En,showRemoveIcon:In,showDownloadIcon:zn,previewIcon:er,removeIcon:mr,downloadIcon:wr,onPreview:cr,onDownload:Zn,onClose:Ar}=pt;var pr,Or;const{status:ur}=He,[or,_r]=oe.useState(ur);oe.useEffect(()=>{ur!=="removed"&&_r(ur)},[ur]);const[Sr,Jr]=oe.useState(!1);oe.useEffect(()=>{const Ei=setTimeout(()=>{Jr(!0)},300);return()=>{clearTimeout(Ei)}},[]);const si=Qt(He);let br=oe.createElement("div",{className:`${Kt}-icon`},si);if(pn==="picture"||pn==="picture-card"||pn==="picture-circle")if(or==="uploading"||!He.thumbUrl&&!He.url){const Ei=dt()(`${Kt}-list-item-thumbnail`,{[`${Kt}-list-item-file`]:or!=="uploading"});br=oe.createElement("div",{className:Ei},si)}else{const Ei=$t!=null&&$t(He)?oe.createElement("img",{src:He.thumbUrl||He.url,alt:He.name,className:`${Kt}-list-item-image`,crossOrigin:He.crossOrigin}):si,vi=dt()(`${Kt}-list-item-thumbnail`,{[`${Kt}-list-item-file`]:$t&&!$t(He)});br=oe.createElement("a",{className:vi,onClick:ci=>cr(He,ci),href:He.url||He.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Ei)}const Nn=dt()(`${Kt}-list-item`,`${Kt}-list-item-${or}`),Rn=typeof He.linkProps=="string"?JSON.parse(He.linkProps):He.linkProps,kr=In?jt((typeof mr=="function"?mr(He):mr)||oe.createElement(qe.Z,null),()=>Ar(He),Kt,Zt.removeFile):null,yr=zn&&or==="done"?jt((typeof wr=="function"?wr(He):wr)||oe.createElement(Ot.Z,null),()=>Zn(He),Kt,Zt.downloadFile):null,Hr=pn!=="picture-card"&&pn!=="picture-circle"&&oe.createElement("span",{key:"download-delete",className:dt()(`${Kt}-list-item-actions`,{picture:pn==="picture"})},yr,kr),jr=dt()(`${Kt}-list-item-name`),Gr=He.url?[oe.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:jr,title:He.name},Rn,{href:He.url,onClick:Ei=>cr(He,Ei)}),He.name),Hr]:[oe.createElement("span",{key:"view",className:jr,onClick:Ei=>cr(He,Ei),title:He.name},He.name),Hr],Cr={pointerEvents:"none",opacity:.5},Kr=En?oe.createElement("a",{href:He.url||He.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:He.url||He.thumbUrl?void 0:Cr,onClick:Ei=>cr(He,Ei),title:Zt.previewFile},typeof er=="function"?er(He):er||oe.createElement(Gt.Z,null)):null,yi=(pn==="picture-card"||pn==="picture-circle")&&or!=="uploading"&&oe.createElement("span",{className:`${Kt}-list-item-actions`},Kr,or==="done"&&yr,kr),{getPrefixCls:ir}=oe.useContext(Ht.E_),hr=ir(),Vr=oe.createElement("div",{className:Nn},br,Gr,yi,Sr&&oe.createElement(Ae.default,{motionName:`${hr}-fade`,visible:or==="uploading",motionDeadline:2e3},Ei=>{let{className:vi}=Ei;const ci="percent"in He?oe.createElement(an.Z,Object.assign({},Dt,{type:"line",percent:He.percent,"aria-label":He["aria-label"],"aria-labelledby":He["aria-labelledby"]})):null;return oe.createElement("div",{className:dt()(`${Kt}-list-item-progress`,vi)},ci)})),qr=He.response&&typeof He.response=="string"?He.response:((pr=He.error)===null||pr===void 0?void 0:pr.statusText)||((Or=He.error)===null||Or===void 0?void 0:Or.message)||Zt.uploadError,xi=or==="error"?oe.createElement(Mn.Z,{title:qr,getPopupContainer:Ei=>Ei.parentNode},Vr):Vr;return oe.createElement("div",{className:dt()(`${Kt}-list-item-container`,Nt),style:gn,ref:It},qt?qt(xi,He,At,{download:Zn.bind(null,He),preview:cr.bind(null,He),remove:Ar.bind(null,He)}):xi)});const Un=(pt,It)=>{const{listType:Kt="text",previewFile:Nt=De,onPreview:gn,onDownload:Zt,onRemove:pn,locale:He,iconRender:At,isImageUrl:Dt=fn,prefixCls:Qt,items:jt=[],showPreviewIcon:qt=!0,showRemoveIcon:$t=!0,showDownloadIcon:En=!1,removeIcon:In,previewIcon:zn,downloadIcon:er,progress:mr={size:[-1,2],showInfo:!1},appendAction:wr,appendActionVisible:cr=!0,itemRender:Zn,disabled:Ar}=pt,pr=(0,rt.Z)(),[Or,ur]=oe.useState(!1);oe.useEffect(()=>{Kt!=="picture"&&Kt!=="picture-card"&&Kt!=="picture-circle"||(jt||[]).forEach(Cr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Cr.originFileObj instanceof File||Cr.originFileObj instanceof Blob)||Cr.thumbUrl!==void 0||(Cr.thumbUrl="",Nt&&Nt(Cr.originFileObj).then(Kr=>{Cr.thumbUrl=Kr||"",pr()}))})},[Kt,jt,Nt]),oe.useEffect(()=>{ur(!0)},[]);const or=(Cr,Kr)=>{if(gn)return Kr==null||Kr.preventDefault(),gn(Cr)},_r=Cr=>{typeof Zt=="function"?Zt(Cr):Cr.url&&window.open(Cr.url)},Sr=Cr=>{pn==null||pn(Cr)},Jr=Cr=>{if(At)return At(Cr,Kt);const Kr=Cr.status==="uploading",yi=Dt&&Dt(Cr)?oe.createElement(ce,null):oe.createElement(wn,null);let ir=Kr?oe.createElement(cn.Z,null):oe.createElement(ge,null);return Kt==="picture"?ir=Kr?oe.createElement(cn.Z,null):yi:(Kt==="picture-card"||Kt==="picture-circle")&&(ir=Kr?He.uploading:yi),ir},si=(Cr,Kr,yi,ir)=>{const hr={type:"text",size:"small",title:ir,onClick:Vr=>{Kr(),(0,Ke.l$)(Cr)&&Cr.props.onClick&&Cr.props.onClick(Vr)},className:`${yi}-list-item-action`,disabled:Ar};if((0,Ke.l$)(Cr)){const Vr=(0,Ke.Tm)(Cr,Object.assign(Object.assign({},Cr.props),{onClick:()=>{}}));return oe.createElement(Lt.ZP,Object.assign({},hr,{icon:Vr}))}return oe.createElement(Lt.ZP,Object.assign({},hr),oe.createElement("span",null,Cr))};oe.useImperativeHandle(It,()=>({handlePreview:or,handleDownload:_r}));const{getPrefixCls:br}=oe.useContext(Ht.E_),Nn=br("upload",Qt),Rn=br(),kr=dt()(`${Nn}-list`,`${Nn}-list-${Kt}`),yr=(0,Oe.Z)(jt.map(Cr=>({key:Cr.uid,file:Cr})));let jr={motionDeadline:2e3,motionName:`${Nn}-${Kt==="picture-card"||Kt==="picture-circle"?"animate-inline":"animate"}`,keys:yr,motionAppear:Or};const Gr=oe.useMemo(()=>{const Cr=Object.assign({},(0,Le.Z)(Rn));return delete Cr.onAppearEnd,delete Cr.onEnterEnd,delete Cr.onLeaveEnd,Cr},[Rn]);return Kt!=="picture-card"&&Kt!=="picture-circle"&&(jr=Object.assign(Object.assign({},Gr),jr)),oe.createElement("div",{className:kr},oe.createElement(Ae.CSSMotionList,Object.assign({},jr,{component:!1}),Cr=>{let{key:Kr,file:yi,className:ir,style:hr}=Cr;return oe.createElement(Ln,{key:Kr,locale:He,prefixCls:Nn,className:ir,style:hr,file:yi,items:jt,progress:mr,listType:Kt,isImgUrl:Dt,showPreviewIcon:qt,showRemoveIcon:$t,showDownloadIcon:En,removeIcon:In,previewIcon:zn,downloadIcon:er,iconRender:Jr,actionIconRender:si,itemRender:Zn,onPreview:or,onDownload:_r,onClose:Sr})}),wr&&oe.createElement(Ae.default,Object.assign({},jr,{visible:cr,forceRender:!0}),Cr=>{let{className:Kr,style:yi}=Cr;return(0,Ke.Tm)(wr,ir=>({className:dt()(ir.className,Kr),style:Object.assign(Object.assign(Object.assign({},yi),{pointerEvents:Kr?"none":void 0}),ir.style)}))}))};var On=oe.forwardRef(Un),Hn=le(17313),Dr=le(8378),Pr=le(83116),fr=le(37613),Fr=pt=>{const{componentCls:It,iconCls:Kt}=pt;return{[`${It}-wrapper`]:{[`${It}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:pt.colorFillAlter,border:`${pt.lineWidth}px dashed ${pt.colorBorder}`,borderRadius:pt.borderRadiusLG,cursor:"pointer",transition:`border-color ${pt.motionDurationSlow}`,[It]:{padding:`${pt.padding}px 0`},[`${It}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${It}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${It}-disabled):hover`]:{borderColor:pt.colorPrimaryHover},[`p${It}-drag-icon`]:{marginBottom:pt.margin,[Kt]:{color:pt.colorPrimary,fontSize:pt.uploadThumbnailSize}},[`p${It}-text`]:{margin:`0 0 ${pt.marginXXS}px`,color:pt.colorTextHeading,fontSize:pt.fontSizeLG},[`p${It}-hint`]:{color:pt.colorTextDescription,fontSize:pt.fontSize},[`&${It}-disabled`]:{cursor:"not-allowed",[`p${It}-drag-icon ${Kt},
|
|
|
p${It}-text,
|
|
|
p${It}-hint
|
|
|
`]:{color:pt.colorTextDisabled}}}}}},Ir=pt=>{const{componentCls:It,antCls:Kt,iconCls:Nt,fontSize:gn,lineHeight:Zt}=pt,pn=`${It}-list-item`,He=`${pn}-actions`,At=`${pn}-action`,Dt=Math.round(gn*Zt);return{[`${It}-wrapper`]:{[`${It}-list`]:Object.assign(Object.assign({},(0,Hn.dF)()),{lineHeight:pt.lineHeight,[pn]:{position:"relative",height:pt.lineHeight*gn,marginTop:pt.marginXS,fontSize:gn,display:"flex",alignItems:"center",transition:`background-color ${pt.motionDurationSlow}`,"&:hover":{backgroundColor:pt.controlItemBgHover},[`${pn}-name`]:Object.assign(Object.assign({},Hn.vS),{padding:`0 ${pt.paddingXS}px`,lineHeight:Zt,flex:"auto",transition:`all ${pt.motionDurationSlow}`}),[He]:{[At]:{opacity:0},[`${At}${Kt}-btn-sm`]:{height:Dt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${At}:focus-visible,
|
|
|
&.picture ${At}
|
|
|
`]:{opacity:1},[Nt]:{color:pt.actionsColor,transition:`all ${pt.motionDurationSlow}`},[`&:hover ${Nt}`]:{color:pt.colorText}},[`${It}-icon ${Nt}`]:{color:pt.colorTextDescription,fontSize:gn},[`${pn}-progress`]:{position:"absolute",bottom:-pt.uploadProgressOffset,width:"100%",paddingInlineStart:gn+pt.paddingXS,fontSize:gn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${pn}:hover ${At}`]:{opacity:1,color:pt.colorText},[`${pn}-error`]:{color:pt.colorError,[`${pn}-name, ${It}-icon ${Nt}`]:{color:pt.colorError},[He]:{[`${Nt}, ${Nt}:hover`]:{color:pt.colorError},[At]:{opacity:1}}},[`${It}-list-item-container`]:{transition:`opacity ${pt.motionDurationSlow}, height ${pt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Yr=le(36237),nr=le(1950);const $r=new Yr.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Qr=new Yr.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Xn=pt=>{const{componentCls:It}=pt,Kt=`${It}-animate-inline`;return[{[`${It}-wrapper`]:{[`${Kt}-appear, ${Kt}-enter, ${Kt}-leave`]:{animationDuration:pt.motionDurationSlow,animationTimingFunction:pt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Kt}-appear, ${Kt}-enter`]:{animationName:$r},[`${Kt}-leave`]:{animationName:Qr}}},{[`${It}-wrapper`]:(0,nr.J$)(pt)},$r,Qr]},Kn=le(30071),Gn=le(64993);const Tr=pt=>{const{componentCls:It,iconCls:Kt,uploadThumbnailSize:Nt,uploadProgressOffset:gn}=pt,Zt=`${It}-list`,pn=`${Zt}-item`;return{[`${It}-wrapper`]:{[`
|
|
|
${Zt}${Zt}-picture,
|
|
|
${Zt}${Zt}-picture-card,
|
|
|
${Zt}${Zt}-picture-circle
|
|
|
`]:{[pn]:{position:"relative",height:Nt+pt.lineWidth*2+pt.paddingXS*2,padding:pt.paddingXS,border:`${pt.lineWidth}px ${pt.lineType} ${pt.colorBorder}`,borderRadius:pt.borderRadiusLG,"&:hover":{background:"transparent"},[`${pn}-thumbnail`]:Object.assign(Object.assign({},Hn.vS),{width:Nt,height:Nt,lineHeight:`${Nt+pt.paddingSM}px`,textAlign:"center",flex:"none",[Kt]:{fontSize:pt.fontSizeHeading2,color:pt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${pn}-progress`]:{bottom:gn,width:`calc(100% - ${pt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Nt+pt.paddingXS}},[`${pn}-error`]:{borderColor:pt.colorError,[`${pn}-thumbnail ${Kt}`]:{[`svg path[fill='${Kn.blue[0]}']`]:{fill:pt.colorErrorBg},[`svg path[fill='${Kn.blue.primary}']`]:{fill:pt.colorError}}},[`${pn}-uploading`]:{borderStyle:"dashed",[`${pn}-name`]:{marginBottom:gn}}},[`${Zt}${Zt}-picture-circle ${pn}`]:{[`&, &::before, ${pn}-thumbnail`]:{borderRadius:"50%"}}}}},bt=pt=>{const{componentCls:It,iconCls:Kt,fontSizeLG:Nt,colorTextLightSolid:gn}=pt,Zt=`${It}-list`,pn=`${Zt}-item`,He=pt.uploadPicCardSize;return{[`
|
|
|
${It}-wrapper${It}-picture-card-wrapper,
|
|
|
${It}-wrapper${It}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,Hn.dF)()),{display:"inline-block",width:"100%",[`${It}${It}-select`]:{width:He,height:He,marginInlineEnd:pt.marginXS,marginBottom:pt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:pt.colorFillAlter,border:`${pt.lineWidth}px dashed ${pt.colorBorder}`,borderRadius:pt.borderRadiusLG,cursor:"pointer",transition:`border-color ${pt.motionDurationSlow}`,[`> ${It}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${It}-disabled):hover`]:{borderColor:pt.colorPrimary}},[`${Zt}${Zt}-picture-card, ${Zt}${Zt}-picture-circle`]:{[`${Zt}-item-container`]:{display:"inline-block",width:He,height:He,marginBlock:`0 ${pt.marginXS}px`,marginInline:`0 ${pt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[pn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${pt.paddingXS*2}px)`,height:`calc(100% - ${pt.paddingXS*2}px)`,backgroundColor:pt.colorBgMask,opacity:0,transition:`all ${pt.motionDurationSlow}`,content:'" "'}},[`${pn}:hover`]:{[`&::before, ${pn}-actions`]:{opacity:1}},[`${pn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${pt.motionDurationSlow}`,[`${Kt}-eye, ${Kt}-download, ${Kt}-delete`]:{zIndex:10,width:Nt,margin:`0 ${pt.marginXXS}px`,fontSize:Nt,cursor:"pointer",transition:`all ${pt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${pn}-actions, ${pn}-actions:hover`]:{[`${Kt}-eye, ${Kt}-download, ${Kt}-delete`]:{color:new Gn.C(gn).setAlpha(.65).toRgbString(),"&:hover":{color:gn}}},[`${pn}-thumbnail, ${pn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${pn}-name`]:{display:"none",textAlign:"center"},[`${pn}-file + ${pn}-name`]:{position:"absolute",bottom:pt.margin,display:"block",width:`calc(100% - ${pt.paddingXS*2}px)`},[`${pn}-uploading`]:{[`&${pn}`]:{backgroundColor:pt.colorFillAlter},[`&::before, ${Kt}-eye, ${Kt}-download, ${Kt}-delete`]:{display:"none"}},[`${pn}-progress`]:{bottom:pt.marginXL,width:`calc(100% - ${pt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${It}-wrapper${It}-picture-circle-wrapper`]:{[`${It}${It}-select`]:{borderRadius:"50%"}}}};var ze=pt=>{const{componentCls:It}=pt;return{[`${It}-rtl`]:{direction:"rtl"}}};const Re=pt=>{const{componentCls:It,colorTextDisabled:Kt}=pt;return{[`${It}-wrapper`]:Object.assign(Object.assign({},(0,Hn.Wf)(pt)),{[It]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${It}-select`]:{display:"inline-block"},[`${It}-disabled`]:{color:Kt,cursor:"not-allowed"}})}};var Pe=(0,Pr.Z)("Upload",pt=>{const{fontSizeHeading3:It,fontSize:Kt,lineHeight:Nt,lineWidth:gn,controlHeightLG:Zt}=pt,pn=Math.round(Kt*Nt),He=(0,fr.TS)(pt,{uploadThumbnailSize:It*2,uploadProgressOffset:pn/2+gn,uploadPicCardSize:Zt*2.55});return[Re(He),Fr(He),Tr(He),bt(He),Ir(He),Xn(He),ze(He),(0,Dr.Z)(He)]},pt=>({actionsColor:pt.colorTextDescription})),it=function(pt,It,Kt,Nt){function gn(Zt){return Zt instanceof Kt?Zt:new Kt(function(pn){pn(Zt)})}return new(Kt||(Kt=Promise))(function(Zt,pn){function He(Qt){try{Dt(Nt.next(Qt))}catch(jt){pn(jt)}}function At(Qt){try{Dt(Nt.throw(Qt))}catch(jt){pn(jt)}}function Dt(Qt){Qt.done?Zt(Qt.value):gn(Qt.value).then(He,At)}Dt((Nt=Nt.apply(pt,It||[])).next())})};const vt=`__LIST_IGNORE_${Date.now()}__`,Ut=(pt,It)=>{const{fileList:Kt,defaultFileList:Nt,onRemove:gn,showUploadList:Zt=!0,listType:pn="text",onPreview:He,onDownload:At,onChange:Dt,onDrop:Qt,previewFile:jt,disabled:qt,locale:$t,iconRender:En,isImageUrl:In,progress:zn,prefixCls:er,className:mr,type:wr="select",children:cr,style:Zn,itemRender:Ar,maxCount:pr,data:Or={},multiple:ur=!1,action:or="",accept:_r="",supportServerRender:Sr=!0,rootClassName:Jr}=pt,si=oe.useContext(je.Z),br=qt!=null?qt:si,[Nn,Rn]=(0,tn.Z)(Nt||[],{value:Kt,postState:li=>li!=null?li:[]}),[kr,yr]=oe.useState("drop"),Hr=oe.useRef(null);oe.useMemo(()=>{const li=Date.now();(Kt||[]).forEach((fi,Ri)=>{!fi.uid&&!Object.isFrozen(fi)&&(fi.uid=`__AUTO__${li}_${Ri}__`)})},[Kt]);const jr=(li,fi,Ri)=>{let sn=(0,Oe.Z)(fi),rn=!1;pr===1?sn=sn.slice(-1):pr&&(rn=sn.length>pr,sn=sn.slice(0,pr)),(0,en.flushSync)(()=>{Rn(sn)});const vn={file:li,fileList:sn};Ri&&(vn.event=Ri),(!rn||sn.some(Fn=>Fn.uid===li.uid))&&(0,en.flushSync)(()=>{Dt==null||Dt(vn)})},Gr=(li,fi)=>it(void 0,void 0,void 0,function*(){const{beforeUpload:Ri,transformFile:sn}=pt;let rn=li;if(Ri){const vn=yield Ri(li,fi);if(vn===!1)return!1;if(delete li[vt],vn===vt)return Object.defineProperty(li,vt,{value:!0,configurable:!0}),!1;typeof vn=="object"&&vn&&(rn=vn)}return sn&&(rn=yield sn(rn)),rn}),Cr=li=>{const fi=li.filter(rn=>!rn.file[vt]);if(!fi.length)return;const Ri=fi.map(rn=>xt(rn.file));let sn=(0,Oe.Z)(Nn);Ri.forEach(rn=>{sn=Ye(rn,sn)}),Ri.forEach((rn,vn)=>{let Fn=rn;if(fi[vn].parsedFile)rn.status="uploading";else{const{originFileObj:_n}=rn;let tr;try{tr=new File([_n],_n.name,{type:_n.type})}catch(xn){tr=new Blob([_n],{type:_n.type}),tr.name=_n.name,tr.lastModifiedDate=new Date,tr.lastModified=new Date().getTime()}tr.uid=rn.uid,Fn=tr}jr(Fn,sn)})},Kr=(li,fi,Ri)=>{try{typeof li=="string"&&(li=JSON.parse(li))}catch(vn){}if(!Pt(fi,Nn))return;const sn=xt(fi);sn.status="done",sn.percent=100,sn.response=li,sn.xhr=Ri;const rn=Ye(sn,Nn);jr(sn,rn)},yi=(li,fi)=>{if(!Pt(fi,Nn))return;const Ri=xt(fi);Ri.status="uploading",Ri.percent=li.percent;const sn=Ye(Ri,Nn);jr(Ri,sn,li)},ir=(li,fi,Ri)=>{if(!Pt(Ri,Nn))return;const sn=xt(Ri);sn.error=li,sn.response=fi,sn.status="error";const rn=Ye(sn,Nn);jr(sn,rn)},hr=li=>{let fi;Promise.resolve(typeof gn=="function"?gn(li):gn).then(Ri=>{var sn;if(Ri===!1)return;const rn=hn(li,Nn);rn&&(fi=Object.assign(Object.assign({},li),{status:"removed"}),Nn==null||Nn.forEach(vn=>{const Fn=fi.uid!==void 0?"uid":"name";vn[Fn]===fi[Fn]&&!Object.isFrozen(vn)&&(vn.status="removed")}),(sn=Hr.current)===null||sn===void 0||sn.abort(fi),jr(fi,rn))})},Vr=li=>{yr(li.type),li.type==="drop"&&(Qt==null||Qt(li))};oe.useImperativeHandle(It,()=>({onBatchStart:Cr,onSuccess:Kr,onProgress:yi,onError:ir,fileList:Nn,upload:Hr.current}));const{getPrefixCls:qr,direction:xi,upload:Ei}=oe.useContext(Ht.E_),vi=qr("upload",er),ci=Object.assign(Object.assign({onBatchStart:Cr,onError:ir,onProgress:yi,onSuccess:Kr},pt),{data:Or,multiple:ur,action:or,accept:_r,supportServerRender:Sr,prefixCls:vi,disabled:br,beforeUpload:Gr,onChange:void 0});delete ci.className,delete ci.style,(!cr||br)&&delete ci.id;const[Ai,Li]=Pe(vi),[dr]=(0,xe.Z)("Upload",Xe.Z.Upload),{showRemoveIcon:sr,showPreviewIcon:ar,showDownloadIcon:Br,removeIcon:gi,previewIcon:Di,downloadIcon:Ii}=typeof Zt=="boolean"?{}:Zt,ki=(li,fi)=>Zt?oe.createElement(On,{prefixCls:vi,listType:pn,items:Nn,previewFile:jt,onPreview:He,onDownload:At,onRemove:hr,showRemoveIcon:!br&&sr,showPreviewIcon:ar,showDownloadIcon:Br,removeIcon:gi,previewIcon:Di,downloadIcon:Ii,iconRender:En,locale:Object.assign(Object.assign({},dr),$t),isImageUrl:In,progress:zn,appendAction:li,appendActionVisible:fi,itemRender:Ar,disabled:br}):li,wi=dt()(`${vi}-wrapper`,mr,Jr,Li,Ei==null?void 0:Ei.className,{[`${vi}-rtl`]:xi==="rtl",[`${vi}-picture-card-wrapper`]:pn==="picture-card",[`${vi}-picture-circle-wrapper`]:pn==="picture-circle"}),Pi=Object.assign(Object.assign({},Ei==null?void 0:Ei.style),Zn);if(wr==="drag"){const li=dt()(Li,vi,`${vi}-drag`,{[`${vi}-drag-uploading`]:Nn.some(fi=>fi.status==="uploading"),[`${vi}-drag-hover`]:kr==="dragover",[`${vi}-disabled`]:br,[`${vi}-rtl`]:xi==="rtl"});return Ai(oe.createElement("span",{className:wi},oe.createElement("div",{className:li,style:Pi,onDrop:Vr,onDragOver:Vr,onDragLeave:Vr},oe.createElement(ln,Object.assign({},ci,{ref:Hr,className:`${vi}-btn`}),oe.createElement("div",{className:`${vi}-drag-container`},cr))),ki()))}const Gi=dt()(vi,`${vi}-select`,{[`${vi}-disabled`]:br}),oa=(li=>oe.createElement("div",{className:Gi,style:li},oe.createElement(ln,Object.assign({},ci,{ref:Hr}))))(cr?void 0:{display:"none"});return Ai(pn==="picture-card"||pn==="picture-circle"?oe.createElement("span",{className:wi},ki(oa,!!cr)):oe.createElement("span",{className:wi},oa,ki()))};var on=oe.forwardRef(Ut),Cn=function(pt,It){var Kt={};for(var Nt in pt)Object.prototype.hasOwnProperty.call(pt,Nt)&&It.indexOf(Nt)<0&&(Kt[Nt]=pt[Nt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gn=0,Nt=Object.getOwnPropertySymbols(pt);gn<Nt.length;gn++)It.indexOf(Nt[gn])<0&&Object.prototype.propertyIsEnumerable.call(pt,Nt[gn])&&(Kt[Nt[gn]]=pt[Nt[gn]]);return Kt},An=oe.forwardRef((pt,It)=>{var{style:Kt,height:Nt}=pt,gn=Cn(pt,["style","height"]);return oe.createElement(on,Object.assign({ref:It},gn,{type:"drag",style:Object.assign(Object.assign({},Kt),{height:Nt})}))});const Wt=on;Wt.Dragger=An,Wt.LIST_IGNORE=vt;var bn=Wt},99498:function(mn,un,le){(function(oe){oe(le(89780))})(function(oe){oe.defineOption("placeholder","",function(be,Ce,_e){var ft=_e&&_e!=oe.Init;if(Ce&&!ft)be.on("blur",we),be.on("change",Te),be.on("swapDoc",Te),oe.on(be.getInputField(),"compositionupdate",be.state.placeholderCompose=function(){dt(be)}),Te(be);else if(!Ce&&ft){be.off("blur",we),be.off("change",Te),be.off("swapDoc",Te),oe.off(be.getInputField(),"compositionupdate",be.state.placeholderCompose),Oe(be);var Ie=be.getWrapperElement();Ie.className=Ie.className.replace(" CodeMirror-empty","")}Ce&&!be.hasFocus()&&we(be)});function Oe(be){be.state.placeholder&&(be.state.placeholder.parentNode.removeChild(be.state.placeholder),be.state.placeholder=null)}function Ne(be){Oe(be);var Ce=be.state.placeholder=document.createElement("pre");Ce.style.cssText="height: 0; overflow: visible",Ce.style.direction=be.getOption("direction"),Ce.className="CodeMirror-placeholder CodeMirror-line-like";var _e=be.getOption("placeholder");typeof _e=="string"&&(_e=document.createTextNode(_e)),Ce.appendChild(_e),be.display.lineSpace.insertBefore(Ce,be.display.lineSpace.firstChild)}function dt(be){setTimeout(function(){var Ce=!1,_e=be.getInputField();_e.nodeName=="TEXTAREA"?Ce=!_e.value:be.lineCount()==1&&(Ce=!/[^\u200b]/.test(_e.querySelector(".CodeMirror-line").textContent)),Ce?Ne(be):Oe(be)},20)}function we(be){Fe(be)&&Ne(be)}function Te(be){var Ce=be.getWrapperElement(),_e=Fe(be);Ce.className=Ce.className.replace(" CodeMirror-empty","")+(_e?" CodeMirror-empty":""),_e?Ne(be):Oe(be)}function Fe(be){return be.lineCount()===1&&be.getLine(0)===""}})},25717:function(mn,un,le){(function(oe){oe(le(89780))})(function(oe){var Oe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Ne=oe.Pos;oe.defineOption("autoCloseBrackets",!1,function(ut,yt,lt){lt&<!=oe.Init&&(ut.removeKeyMap(we),ut.state.closeBrackets=null),yt&&(Te(dt(yt,"pairs")),ut.state.closeBrackets=yt,ut.addKeyMap(we))});function dt(ut,yt){return yt=="pairs"&&typeof ut=="string"?ut:typeof ut=="object"&&ut[yt]!=null?ut[yt]:Oe[yt]}var we={Backspace:Ce,Enter:_e};function Te(ut){for(var yt=0;yt<ut.length;yt++){var lt=ut.charAt(yt),ht="'"+lt+"'";we[ht]||(we[ht]=Fe(lt))}}Te(Oe.pairs+"`");function Fe(ut){return function(yt){return Ie(yt,ut)}}function be(ut){var yt=ut.state.closeBrackets;if(!yt||yt.override)return yt;var lt=ut.getModeAt(ut.getCursor());return lt.closeBrackets||yt}function Ce(ut){var yt=be(ut);if(!yt||ut.getOption("disableInput"))return oe.Pass;for(var lt=dt(yt,"pairs"),ht=ut.listSelections(),Vt=0;Vt<ht.length;Vt++){if(!ht[Vt].empty())return oe.Pass;var ot=Ge(ut,ht[Vt].head);if(!ot||lt.indexOf(ot)%2!=0)return oe.Pass}for(var Vt=ht.length-1;Vt>=0;Vt--){var gt=ht[Vt].head;ut.replaceRange("",Ne(gt.line,gt.ch-1),Ne(gt.line,gt.ch+1),"+delete")}}function _e(ut){var yt=be(ut),lt=yt&&dt(yt,"explode");if(!lt||ut.getOption("disableInput"))return oe.Pass;for(var ht=ut.listSelections(),Vt=0;Vt<ht.length;Vt++){if(!ht[Vt].empty())return oe.Pass;var ot=Ge(ut,ht[Vt].head);if(!ot||lt.indexOf(ot)%2!=0)return oe.Pass}ut.operation(function(){var gt=ut.lineSeparator()||`
|
|
|
`;ut.replaceSelection(gt+gt,null),ut.execCommand("goCharLeft"),ht=ut.listSelections();for(var Ve=0;Ve<ht.length;Ve++){var Me=ht[Ve].head.line;ut.indentLine(Me,null,!0),ut.indentLine(Me+1,null,!0)}})}function ft(ut){var yt=oe.cmpPos(ut.anchor,ut.head)>0;return{anchor:new Ne(ut.anchor.line,ut.anchor.ch+(yt?-1:1)),head:new Ne(ut.head.line,ut.head.ch+(yt?1:-1))}}function Ie(ut,yt){var lt=be(ut);if(!lt||ut.getOption("disableInput"))return oe.Pass;var ht=dt(lt,"pairs"),Vt=ht.indexOf(yt);if(Vt==-1)return oe.Pass;for(var ot=dt(lt,"closeBefore"),gt=dt(lt,"triples"),Ve=ht.charAt(Vt+1)==yt,Me=ut.listSelections(),Ue=Vt%2==0,tt,mt=0;mt<Me.length;mt++){var Je=Me[mt],kt=Je.head,st,Tt=ut.getRange(kt,Ne(kt.line,kt.ch+1));if(Ue&&!Je.empty())st="surround";else if((Ve||!Ue)&&Tt==yt)Ve&&wt(ut,kt)?st="both":gt.indexOf(yt)>=0&&ut.getRange(kt,Ne(kt.line,kt.ch+3))==yt+yt+yt?st="skipThree":st="skip";else if(Ve&&kt.ch>1&>.indexOf(yt)>=0&&ut.getRange(Ne(kt.line,kt.ch-2),kt)==yt+yt){if(kt.ch>2&&/\bstring/.test(ut.getTokenTypeAt(Ne(kt.line,kt.ch-2))))return oe.Pass;st="addFour"}else if(Ve){var nt=kt.ch==0?" ":ut.getRange(Ne(kt.line,kt.ch-1),kt);if(!oe.isWordChar(Tt)&&nt!=yt&&!oe.isWordChar(nt))st="both";else return oe.Pass}else if(Ue&&(Tt.length===0||/\s/.test(Tt)||ot.indexOf(Tt)>-1))st="both";else return oe.Pass;if(!tt)tt=st;else if(tt!=st)return oe.Pass}var Yt=Vt%2?ht.charAt(Vt-1):yt,ln=Vt%2?yt:ht.charAt(Vt+1);ut.operation(function(){if(tt=="skip")ut.execCommand("goCharRight");else if(tt=="skipThree")for(var tn=0;tn<3;tn++)ut.execCommand("goCharRight");else if(tt=="surround"){for(var en=ut.getSelections(),tn=0;tn<en.length;tn++)en[tn]=Yt+en[tn]+ln;ut.replaceSelections(en,"around"),en=ut.listSelections().slice();for(var tn=0;tn<en.length;tn++)en[tn]=ft(en[tn]);ut.setSelections(en)}else tt=="both"?(ut.replaceSelection(Yt+ln,null),ut.triggerElectric(Yt+ln),ut.execCommand("goCharLeft")):tt=="addFour"&&(ut.replaceSelection(Yt+Yt+Yt+Yt,"before"),ut.execCommand("goCharRight"))})}function Ge(ut,yt){var lt=ut.getRange(Ne(yt.line,yt.ch-1),Ne(yt.line,yt.ch+1));return lt.length==2?lt:null}function wt(ut,yt){var lt=ut.getTokenAt(Ne(yt.line,yt.ch+1));return/\bstring/.test(lt.type)&<.start==yt.ch&&(yt.ch==0||!/\bstring/.test(ut.getTokenTypeAt(yt)))}})},6313:function(mn,un,le){(function(oe){oe(le(89780),le(32855))})(function(oe){oe.defineOption("autoCloseTags",!1,function(Ce,_e,ft){if(ft!=oe.Init&&ft&&Ce.removeKeyMap("autoCloseTags"),!!_e){var Ie={name:"autoCloseTags"};(typeof _e!="object"||_e.whenClosing!==!1)&&(Ie["'/'"]=function(Ge){return Te(Ge)}),(typeof _e!="object"||_e.whenOpening!==!1)&&(Ie["'>'"]=function(Ge){return dt(Ge)}),Ce.addKeyMap(Ie)}});var Oe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Ne=["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 dt(Ce){if(Ce.getOption("disableInput"))return oe.Pass;for(var _e=Ce.listSelections(),ft=[],Ie=Ce.getOption("autoCloseTags"),Ge=0;Ge<_e.length;Ge++){if(!_e[Ge].empty())return oe.Pass;var wt=_e[Ge].head,ut=Ce.getTokenAt(wt),yt=oe.innerMode(Ce.getMode(),ut.state),lt=yt.state,ht=yt.mode.xmlCurrentTag&&yt.mode.xmlCurrentTag(lt),Vt=ht&&ht.name;if(!Vt)return oe.Pass;var ot=yt.mode.configuration=="html",gt=typeof Ie=="object"&&Ie.dontCloseTags||ot&&Oe,Ve=typeof Ie=="object"&&Ie.indentTags||ot&&Ne;ut.end>wt.ch&&(Vt=Vt.slice(0,Vt.length-ut.end+wt.ch));var Me=Vt.toLowerCase();if(!Vt||ut.type=="string"&&(ut.end!=wt.ch||!/[\"\']/.test(ut.string.charAt(ut.string.length-1))||ut.string.length==1)||ut.type=="tag"&&ht.close||ut.string.indexOf("/")==wt.ch-ut.start-1||gt&&Fe(gt,Me)>-1||be(Ce,yt.mode.xmlCurrentContext&&yt.mode.xmlCurrentContext(lt)||[],Vt,wt,!0))return oe.Pass;var Ue=typeof Ie=="object"&&Ie.emptyTags;if(Ue&&Fe(Ue,Vt)>-1){ft[Ge]={text:"/>",newPos:oe.Pos(wt.line,wt.ch+2)};continue}var tt=Ve&&Fe(Ve,Me)>-1;ft[Ge]={indent:tt,text:">"+(tt?`
|
|
|
|
|
|
`:"")+"</"+Vt+">",newPos:tt?oe.Pos(wt.line+1,0):oe.Pos(wt.line,wt.ch+1)}}for(var mt=typeof Ie=="object"&&Ie.dontIndentOnAutoClose,Ge=_e.length-1;Ge>=0;Ge--){var Je=ft[Ge];Ce.replaceRange(Je.text,_e[Ge].head,_e[Ge].anchor,"+insert");var kt=Ce.listSelections().slice(0);kt[Ge]={head:Je.newPos,anchor:Je.newPos},Ce.setSelections(kt),!mt&&Je.indent&&(Ce.indentLine(Je.newPos.line,null,!0),Ce.indentLine(Je.newPos.line+1,null,!0))}}function we(Ce,_e){for(var ft=Ce.listSelections(),Ie=[],Ge=_e?"/":"</",wt=Ce.getOption("autoCloseTags"),ut=typeof wt=="object"&&wt.dontIndentOnSlash,yt=0;yt<ft.length;yt++){if(!ft[yt].empty())return oe.Pass;var lt=ft[yt].head,ht=Ce.getTokenAt(lt),Vt=oe.innerMode(Ce.getMode(),ht.state),ot=Vt.state;if(_e&&(ht.type=="string"||ht.string.charAt(0)!="<"||ht.start!=lt.ch-1))return oe.Pass;var gt,Ve=Vt.mode.name!="xml"&&Ce.getMode().name=="htmlmixed";if(Ve&&Vt.mode.name=="javascript")gt=Ge+"script";else if(Ve&&Vt.mode.name=="css")gt=Ge+"style";else{var Me=Vt.mode.xmlCurrentContext&&Vt.mode.xmlCurrentContext(ot);if(!Me||Me.length&&be(Ce,Me,Me[Me.length-1],lt))return oe.Pass;gt=Ge+Me[Me.length-1]}Ce.getLine(lt.line).charAt(ht.end)!=">"&&(gt+=">"),Ie[yt]=gt}if(Ce.replaceSelections(Ie),ft=Ce.listSelections(),!ut)for(var yt=0;yt<ft.length;yt++)(yt==ft.length-1||ft[yt].head.line<ft[yt+1].head.line)&&Ce.indentLine(ft[yt].head.line)}function Te(Ce){return Ce.getOption("disableInput")?oe.Pass:we(Ce,!0)}oe.commands.closeTag=function(Ce){return we(Ce)};function Fe(Ce,_e){if(Ce.indexOf)return Ce.indexOf(_e);for(var ft=0,Ie=Ce.length;ft<Ie;++ft)if(Ce[ft]==_e)return ft;return-1}function be(Ce,_e,ft,Ie,Ge){if(!oe.scanForClosingTag)return!1;var wt=Math.min(Ce.lastLine()+1,Ie.line+500),ut=oe.scanForClosingTag(Ce,Ie,null,wt);if(!ut||ut.tag!=ft)return!1;for(var yt=Ge?1:0,lt=_e.length-1;lt>=0&&_e[lt]==ft;lt--)++yt;Ie=ut.to;for(var lt=1;lt<yt;lt++){var ht=oe.scanForClosingTag(Ce,Ie,null,wt);if(!ht||ht.tag!=ft)return!1;Ie=ht.to}return!0}})},32855:function(mn,un,le){(function(oe){oe(le(89780))})(function(oe){"use strict";var Oe=oe.Pos;function Ne(lt,ht){return lt.line-ht.line||lt.ch-ht.ch}var dt="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",we=dt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Te=new RegExp("<(/?)(["+dt+"]["+we+"]*)","g");function Fe(lt,ht,Vt,ot){this.line=ht,this.ch=Vt,this.cm=lt,this.text=lt.getLine(ht),this.min=ot?Math.max(ot.from,lt.firstLine()):lt.firstLine(),this.max=ot?Math.min(ot.to-1,lt.lastLine()):lt.lastLine()}function be(lt,ht){var Vt=lt.cm.getTokenTypeAt(Oe(lt.line,ht));return Vt&&/\btag\b/.test(Vt)}function Ce(lt){if(!(lt.line>=lt.max))return lt.ch=0,lt.text=lt.cm.getLine(++lt.line),!0}function _e(lt){if(!(lt.line<=lt.min))return lt.text=lt.cm.getLine(--lt.line),lt.ch=lt.text.length,!0}function ft(lt){for(;;){var ht=lt.text.indexOf(">",lt.ch);if(ht==-1){if(Ce(lt))continue;return}if(!be(lt,ht+1)){lt.ch=ht+1;continue}var Vt=lt.text.lastIndexOf("/",ht),ot=Vt>-1&&!/\S/.test(lt.text.slice(Vt+1,ht));return lt.ch=ht+1,ot?"selfClose":"regular"}}function Ie(lt){for(;;){var ht=lt.ch?lt.text.lastIndexOf("<",lt.ch-1):-1;if(ht==-1){if(_e(lt))continue;return}if(!be(lt,ht+1)){lt.ch=ht;continue}Te.lastIndex=ht,lt.ch=ht;var Vt=Te.exec(lt.text);if(Vt&&Vt.index==ht)return Vt}}function Ge(lt){for(;;){Te.lastIndex=lt.ch;var ht=Te.exec(lt.text);if(!ht){if(Ce(lt))continue;return}if(!be(lt,ht.index+1)){lt.ch=ht.index+1;continue}return lt.ch=ht.index+ht[0].length,ht}}function wt(lt){for(;;){var ht=lt.ch?lt.text.lastIndexOf(">",lt.ch-1):-1;if(ht==-1){if(_e(lt))continue;return}if(!be(lt,ht+1)){lt.ch=ht;continue}var Vt=lt.text.lastIndexOf("/",ht),ot=Vt>-1&&!/\S/.test(lt.text.slice(Vt+1,ht));return lt.ch=ht+1,ot?"selfClose":"regular"}}function ut(lt,ht){for(var Vt=[];;){var ot=Ge(lt),gt,Ve=lt.line,Me=lt.ch-(ot?ot[0].length:0);if(!ot||!(gt=ft(lt)))return;if(gt!="selfClose")if(ot[1]){for(var Ue=Vt.length-1;Ue>=0;--Ue)if(Vt[Ue]==ot[2]){Vt.length=Ue;break}if(Ue<0&&(!ht||ht==ot[2]))return{tag:ot[2],from:Oe(Ve,Me),to:Oe(lt.line,lt.ch)}}else Vt.push(ot[2])}}function yt(lt,ht){for(var Vt=[];;){var ot=wt(lt);if(!ot)return;if(ot=="selfClose"){Ie(lt);continue}var gt=lt.line,Ve=lt.ch,Me=Ie(lt);if(!Me)return;if(Me[1])Vt.push(Me[2]);else{for(var Ue=Vt.length-1;Ue>=0;--Ue)if(Vt[Ue]==Me[2]){Vt.length=Ue;break}if(Ue<0&&(!ht||ht==Me[2]))return{tag:Me[2],from:Oe(lt.line,lt.ch),to:Oe(gt,Ve)}}}}oe.registerHelper("fold","xml",function(lt,ht){for(var Vt=new Fe(lt,ht.line,0);;){var ot=Ge(Vt);if(!ot||Vt.line!=ht.line)return;var gt=ft(Vt);if(!gt)return;if(!ot[1]&>!="selfClose"){var Ve=Oe(Vt.line,Vt.ch),Me=ut(Vt,ot[2]);return Me&&Ne(Me.from,Ve)>0?{from:Ve,to:Me.from}:null}}}),oe.findMatchingTag=function(lt,ht,Vt){var ot=new Fe(lt,ht.line,ht.ch,Vt);if(!(ot.text.indexOf(">")==-1&&ot.text.indexOf("<")==-1)){var gt=ft(ot),Ve=gt&&Oe(ot.line,ot.ch),Me=gt&&Ie(ot);if(!(!gt||!Me||Ne(ot,ht)>0)){var Ue={from:Oe(ot.line,ot.ch),to:Ve,tag:Me[2]};return gt=="selfClose"?{open:Ue,close:null,at:"open"}:Me[1]?{open:yt(ot,Me[2]),close:Ue,at:"close"}:(ot=new Fe(lt,Ve.line,Ve.ch,Vt),{open:Ue,close:ut(ot,Me[2]),at:"open"})}}},oe.findEnclosingTag=function(lt,ht,Vt,ot){for(var gt=new Fe(lt,ht.line,ht.ch,Vt);;){var Ve=yt(gt,ot);if(!Ve)break;var Me=new Fe(lt,ht.line,ht.ch,Vt),Ue=ut(Me,Ve.tag);if(Ue)return{open:Ve,close:Ue}}},oe.scanForClosingTag=function(lt,ht,Vt,ot){var gt=new Fe(lt,ht.line,ht.ch,ot?{from:0,to:ot}:null);return ut(gt,Vt)}})},89780:function(mn){(function(un,le){mn.exports=le()})(this,function(){"use strict";var un=navigator.userAgent,le=navigator.platform,oe=/gecko\/\d/i.test(un),Oe=/MSIE \d/.test(un),Ne=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(un),dt=/Edge\/(\d+)/.exec(un),we=Oe||Ne||dt,Te=we&&(Oe?document.documentMode||6:+(dt||Ne)[1]),Fe=!dt&&/WebKit\//.test(un),be=Fe&&/Qt\/\d+\.\d+/.test(un),Ce=!dt&&/Chrome\//.test(un),_e=/Opera\//.test(un),ft=/Apple Computer/.test(navigator.vendor),Ie=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(un),Ge=/PhantomJS/.test(un),wt=!dt&&/AppleWebKit/.test(un)&&/Mobile\/\w+/.test(un),ut=/Android/.test(un),yt=wt||ut||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(un),lt=wt||/Mac/.test(le),ht=/\bCrOS\b/.test(un),Vt=/win/i.test(le),ot=_e&&un.match(/Version\/(\d*\.\d*)/);ot&&(ot=Number(ot[1])),ot&&ot>=15&&(_e=!1,Fe=!0);var gt=lt&&(be||_e&&(ot==null||ot<12.11)),Ve=oe||we&&Te>=9;function Me(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var Ue=function(x,z){var ne=x.className,te=Me(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 tt(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function mt(x,z){return tt(x).appendChild(z)}function Je(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 kt(x,z,ne,te){var ie=Je(x,z,ne,te);return ie.setAttribute("role","presentation"),ie}var st;document.createRange?st=function(x,z,ne,te){var ie=document.createRange();return ie.setEnd(te||x,ne),ie.setStart(x,z),ie}:st=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 Tt(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 nt(){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 Yt(x,z){var ne=x.className;Me(z).test(ne)||(x.className+=(ne?" ":"")+z)}function ln(x,z){for(var ne=x.split(" "),te=0;te<ne.length;te++)ne[te]&&!Me(ne[te]).test(z)&&(z+=" "+ne[te]);return z}var tn=function(x){x.select()};wt?tn=function(x){x.selectionStart=0,x.selectionEnd=x.value.length}:we&&(tn=function(x){try{x.select()}catch(z){}});function en(x){var z=Array.prototype.slice.call(arguments,1);return function(){return x.apply(null,z)}}function Ht(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 je(x,z,ne,te,ie){z==null&&(z=x.search(/[^\s\u00a0]/),z==-1&&(z=x.length));for(var de=te||0,ve=ie||0;;){var Ee=x.indexOf(" ",de);if(Ee<0||Ee>=z)return ve+(z-de);ve+=Ee-de,ve+=ne-ve%ne,de=Ee+1}}var xe=function(){this.id=null,this.f=null,this.time=0,this.handler=en(this.onTimeout,this)};xe.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},xe.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 Xe(x,z){for(var ne=0;ne<x.length;++ne)if(x[ne]==z)return ne;return-1}var _t=50,St={toString:function(){return"CodeMirror.Pass"}},Qe={scroll:!1},$e={origin:"*mouse"},Mt={origin:"+move"};function wn(x,z,ne){for(var te=0,ie=0;;){var de=x.indexOf(" ",te);de==-1&&(de=x.length);var ve=de-te;if(de==x.length||ie+ve>=z)return te+Math.min(ve,z-ie);if(ie+=de-te,ie+=ne-ie%ne,te=de+1,ie>=z)return te}}var cn=[""];function dn(x){for(;cn.length<=x;)cn.push(nn(cn)+" ");return cn[x]}function nn(x){return x[x.length-1]}function Jt(x,z){for(var ne=[],te=0;te<x.length;te++)ne[te]=z(x[te],te);return ne}function Bt(x,z,ne){for(var te=0,ie=ne(z);te<x.length&&ne(x[te])<=ie;)te++;x.splice(te,0,z)}function ge(){}function ue(x,z){var ne;return Object.create?ne=Object.create(x):(ge.prototype=x,ne=new ge),z&&Ht(z,ne),ne}var se=/[\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()||se.test(x))}function fe(x,z){return z?z.source.indexOf("\\w")>-1&&he(x)?!0:z.test(x):he(x)}function ce(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var Ae=/[\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 rt(x){return x.charCodeAt(0)>=768&&Ae.test(x)}function Le(x,z,ne){for(;(ne<0?z>0:z<x.length)&&rt(x.charAt(z));)z+=ne;return z}function Ke(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 Lt(x,z,ne,te){if(!x)return te(z,ne,"ltr",0);for(var ie=!1,de=0;de<x.length;++de){var ve=x[de];(ve.from<ne&&ve.to>z||z==ne&&ve.to==z)&&(te(Math.max(ve.from,z),Math.min(ve.to,ne),ve.level==1?"rtl":"ltr",de),ie=!0)}ie||te(z,ne,"ltr")}var xt=null;function Ye(x,z,ne){var te;xt=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:xt=ie),de.from==z&&(de.from!=de.to&&ne!="before"?te=ie:xt=ie)}return te!=null?te:xt}var Pt=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(We){return We<=247?x.charAt(We):1424<=We&&We<=1524?"R":1536<=We&&We<=1785?z.charAt(We-1536):1774<=We&&We<=2220?"r":8192<=We&&We<=8203?"w":We==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ie=/[stwN]/,de=/[LRr]/,ve=/[Lb1n]/,Ee=/[1n]/;function Be(We,Ct,zt){this.level=We,this.from=Ct,this.to=zt}return function(We,Ct){var zt=Ct=="ltr"?"L":"R";if(We.length==0||Ct=="ltr"&&!te.test(We))return!1;for(var Sn=We.length,yn=[],Yn=0;Yn<Sn;++Yn)yn.push(ne(We.charCodeAt(Yn)));for(var lr=0,Nr=zt;lr<Sn;++lr){var Xr=yn[lr];Xr=="m"?yn[lr]=Nr:Nr=Xr}for(var ei=0,Zr=zt;ei<Sn;++ei){var ni=yn[ei];ni=="1"&&Zr=="r"?yn[ei]="n":de.test(ni)&&(Zr=ni,ni=="r"&&(yn[ei]="R"))}for(var hi=1,mi=yn[0];hi<Sn-1;++hi){var Oi=yn[hi];Oi=="+"&&mi=="1"&&yn[hi+1]=="1"?yn[hi]="1":Oi==","&&mi==yn[hi+1]&&(mi=="1"||mi=="n")&&(yn[hi]=mi),mi=Oi}for(var ra=0;ra<Sn;++ra){var Va=yn[ra];if(Va==",")yn[ra]="N";else if(Va=="%"){var ha=void 0;for(ha=ra+1;ha<Sn&&yn[ha]=="%";++ha);for(var yo=ra&&yn[ra-1]=="!"||ha<Sn&&yn[ha]=="1"?"1":"N",bo=ra;bo<ha;++bo)yn[bo]=yo;ra=ha-1}}for(var Da=0,xo=zt;Da<Sn;++Da){var Mi=yn[Da];xo=="L"&&Mi=="1"?yn[Da]="L":de.test(Mi)&&(xo=Mi)}for(var ga=0;ga<Sn;++ga)if(ie.test(yn[ga])){var fa=void 0;for(fa=ga+1;fa<Sn&&ie.test(yn[fa]);++fa);for(var va=(ga?yn[ga-1]:zt)=="L",Ca=(fa<Sn?yn[fa]:zt)=="L",fl=va==Ca?va?"L":"R":zt,Eo=ga;Eo<fa;++Eo)yn[Eo]=fl;ga=fa-1}for(var qa=[],Vi,_a=0;_a<Sn;)if(ve.test(yn[_a])){var au=_a;for(++_a;_a<Sn&&ve.test(yn[_a]);++_a);qa.push(new Be(0,au,_a))}else{var xs=_a,_s=qa.length,es=Ct=="rtl"?1:0;for(++_a;_a<Sn&&yn[_a]!="L";++_a);for(var Ia=xs;Ia<_a;)if(Ee.test(yn[Ia])){xs<Ia&&(qa.splice(_s,0,new Be(1,xs,Ia)),_s+=es);var pl=Ia;for(++Ia;Ia<_a&&Ee.test(yn[Ia]);++Ia);qa.splice(_s,0,new Be(2,pl,Ia)),_s+=es,xs=Ia}else++Ia;xs<_a&&qa.splice(_s,0,new Be(1,xs,_a))}return Ct=="ltr"&&(qa[0].level==1&&(Vi=We.match(/^\s+/))&&(qa[0].from=Vi[0].length,qa.unshift(new Be(0,0,Vi[0].length))),nn(qa).level==1&&(Vi=We.match(/\s+$/))&&(nn(qa).to-=Vi[0].length,qa.push(new Be(0,Sn-Vi[0].length,Sn)))),Ct=="rtl"?qa.reverse():qa}}();function hn(x,z){var ne=x.order;return ne==null&&(ne=x.order=Pt(x.text,z)),ne}var at=[],Xt=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]||at).concat(ne)}};function fn(x,z){return x._handlers&&x._handlers[z]||at}function et(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=Xe(ie,ne);de>-1&&(te[z]=ie.slice(0,de).concat(ie.slice(de+1)))}}}function De(x,z){var ne=fn(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 qe(x,z,ne){return typeof z=="string"&&(z={type:z,preventDefault:function(){this.defaultPrevented=!0}}),De(x,ne||z.type,x,z),Ln(z)||z.codemirrorIgnore}function Ot(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)Xe(ne,z[te])==-1&&ne.push(z[te])}function Gt(x,z){return fn(x,z).length>0}function an(x){x.prototype.on=function(z,ne){Xt(this,z,ne)},x.prototype.off=function(z,ne){et(this,z,ne)}}function Mn(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function Dn(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function Ln(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function Un(x){Mn(x),Dn(x)}function Wn(x){return x.target||x.srcElement}function On(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),lt&&x.ctrlKey&&z==1&&(z=3),z}var Hn=function(){if(we&&Te<9)return!1;var x=Je("div");return"draggable"in x||"dragDrop"in x}(),Dr;function Pr(x){if(Dr==null){var z=Je("span","\u200B");mt(x,Je("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(Dr=z.offsetWidth<=1&&z.offsetHeight>2&&!(we&&Te<8))}var ne=Dr?Je("span","\u200B"):Je("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var fr;function Jn(x){if(fr!=null)return fr;var z=mt(x,document.createTextNode("A\u062EA")),ne=st(z,0,1).getBoundingClientRect(),te=st(z,1,2).getBoundingClientRect();return tt(x),!ne||ne.left==ne.right?!1:fr=te.right-ne.right<3}var Fr=`
|
|
|
|
|
|
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),ve=de.indexOf("\r");ve!=-1?(ne.push(de.slice(0,ve)),z+=ve+1):(ne.push(de),z=ie+1)}return ne}:function(x){return x.split(/\r\n?|\n/)},Tn=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},Ir=function(){var x=Je("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),Yr=null;function nr(x){if(Yr!=null)return Yr;var z=mt(x,Je("span","x")),ne=z.getBoundingClientRect(),te=st(z,0,1).getBoundingClientRect();return Yr=Math.abs(ne.left-te.left)>1}var $r={},Qr={};function $n(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),$r[x]=z}function Xn(x,z){Qr[x]=z}function Kn(x){if(typeof x=="string"&&Qr.hasOwnProperty(x))x=Qr[x];else if(x&&typeof x.name=="string"&&Qr.hasOwnProperty(x.name)){var z=Qr[x.name];typeof z=="string"&&(z={name:z}),x=ue(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return Kn("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return Kn("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function Gn(x,z){z=Kn(z);var ne=$r[z.name];if(!ne)return Gn(x,"text/plain");var te=ne(x,z);if(Tr.hasOwnProperty(z.name)){var ie=Tr[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 ve in z.modeProps)te[ve]=z.modeProps[ve];return te}var Tr={};function bt(x,z){var ne=Tr.hasOwnProperty(x)?Tr[x]:Tr[x]={};Ht(z,ne)}function ke(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 ze(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 Re(x,z,ne){return x.startState?x.startState(z,ne):!0}var Pe=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};Pe.prototype.eol=function(){return this.pos>=this.string.length},Pe.prototype.sol=function(){return this.pos==this.lineStart},Pe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Pe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Pe.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},Pe.prototype.eatWhile=function(x){for(var z=this.pos;this.eat(x););return this.pos>z},Pe.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},Pe.prototype.skipToEnd=function(){this.pos=this.string.length},Pe.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},Pe.prototype.backUp=function(x){this.pos-=x},Pe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=je(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?je(this.string,this.lineStart,this.tabSize):0)},Pe.prototype.indentation=function(){return je(this.string,null,this.tabSize)-(this.lineStart?je(this.string,this.lineStart,this.tabSize):0)},Pe.prototype.match=function(x,z,ne){if(typeof x=="string"){var te=function(ve){return ne?ve.toLowerCase():ve},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)}},Pe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Pe.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},Pe.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},Pe.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function it(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 vt(x,z,ne){var te=[],ie=z.line;return x.iter(z.line,ne.line+1,function(de){var ve=de.text;ie==ne.line&&(ve=ve.slice(0,ne.ch)),ie==z.line&&(ve=ve.slice(z.ch)),te.push(ve),++ie}),te}function Ut(x,z,ne){var te=[];return x.iter(z,ne,function(ie){te.push(ie.text)}),te}function Ft(x,z){var ne=z-x.height;if(ne)for(var te=x;te;te=te.parent)te.height+=ne}function on(x){if(x.parent==null)return null;for(var z=x.parent,ne=Xe(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 Cn(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 ve=0;ve<x.lines.length;++ve){var Ee=x.lines[ve],Be=Ee.height;if(z<Be)break;z-=Be}return ne+ve}function Bn(x,z){return z>=x.first&&z<x.first+x.size}function An(x,z){return String(x.lineNumberFormatter(z+x.firstLineNumber))}function Wt(x,z,ne){if(ne===void 0&&(ne=null),!(this instanceof Wt))return new Wt(x,z,ne);this.line=x,this.ch=z,this.sticky=ne}function bn(x,z){return x.line-z.line||x.ch-z.ch}function pt(x,z){return x.sticky==z.sticky&&bn(x,z)==0}function It(x){return Wt(x.line,x.ch)}function Kt(x,z){return bn(x,z)<0?z:x}function Nt(x,z){return bn(x,z)<0?x:z}function gn(x,z){return Math.max(x.first,Math.min(z,x.first+x.size-1))}function Zt(x,z){if(z.line<x.first)return Wt(x.first,0);var ne=x.first+x.size-1;return z.line>ne?Wt(ne,it(x,ne).text.length):pn(z,it(x,z.line).text.length)}function pn(x,z){var ne=x.ch;return ne==null||ne>z?Wt(x.line,z):ne<0?Wt(x.line,0):x}function He(x,z){for(var ne=[],te=0;te<z.length;te++)ne[te]=Zt(x,z[te]);return ne}var At=function(x,z){this.state=x,this.lookAhead=z},Dt=function(x,z,ne,te){this.state=z,this.doc=x,this.line=ne,this.maxLookAhead=te||0,this.baseTokens=null,this.baseTokenPos=1};Dt.prototype.lookAhead=function(x){var z=this.doc.getLine(this.line+x);return z!=null&&x>this.maxLookAhead&&(this.maxLookAhead=x),z},Dt.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}},Dt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Dt.fromSaved=function(x,z,ne){return z instanceof At?new Dt(x,ke(x.mode,z.state),ne,z.lookAhead):new Dt(x,ke(x.mode,z),ne)},Dt.prototype.save=function(x){var z=x!==!1?ke(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new At(z,this.maxLookAhead):z};function Qt(x,z,ne,te){var ie=[x.state.modeGen],de={};wr(x,z.text,x.doc.mode,ne,function(We,Ct){return ie.push(We,Ct)},de,te);for(var ve=ne.state,Ee=function(We){ne.baseTokens=ie;var Ct=x.state.overlays[We],zt=1,Sn=0;ne.state=!0,wr(x,z.text,Ct.mode,ne,function(yn,Yn){for(var lr=zt;Sn<yn;){var Nr=ie[zt];Nr>yn&&ie.splice(zt,1,yn,ie[zt+1],Nr),zt+=2,Sn=Math.min(yn,Nr)}if(Yn)if(Ct.opaque)ie.splice(lr,zt-lr,yn,"overlay "+Yn),zt=lr+2;else for(;lr<zt;lr+=2){var Xr=ie[lr+1];ie[lr+1]=(Xr?Xr+" ":"")+"overlay "+Yn}},de),ne.state=ve,ne.baseTokens=null,ne.baseTokenPos=1},Be=0;Be<x.state.overlays.length;++Be)Ee(Be);return{styles:ie,classes:de.bgClass||de.textClass?de:null}}function jt(x,z,ne){if(!z.styles||z.styles[0]!=x.state.modeGen){var te=qt(x,on(z)),ie=z.text.length>x.options.maxHighlightLength&&ke(x.doc.mode,te.state),de=Qt(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 qt(x,z,ne){var te=x.doc,ie=x.display;if(!te.mode.startState)return new Dt(te,!0,z);var de=cr(x,z,ne),ve=de>te.first&&it(te,de-1).stateAfter,Ee=ve?Dt.fromSaved(te,ve,de):new Dt(te,Re(te.mode),de);return te.iter(de,z,function(Be){$t(x,Be.text,Ee);var We=Ee.line;Be.stateAfter=We==z-1||We%5==0||We>=ie.viewFrom&&We<ie.viewTo?Ee.save():null,Ee.nextLine()}),ne&&(te.modeFrontier=Ee.line),Ee}function $t(x,z,ne,te){var ie=x.doc.mode,de=new Pe(z,x.options.tabSize,ne);for(de.start=de.pos=te||0,z==""&&En(ie,ne.state);!de.eol();)In(ie,de,ne.state),de.start=de.pos}function En(x,z){if(x.blankLine)return x.blankLine(z);if(x.innerMode){var ne=ze(x,z);if(ne.mode.blankLine)return ne.mode.blankLine(ne.state)}}function In(x,z,ne,te){for(var ie=0;ie<10;ie++){te&&(te[0]=ze(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 zn=function(x,z,ne){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=ne};function er(x,z,ne,te){var ie=x.doc,de=ie.mode,ve;z=Zt(ie,z);var Ee=it(ie,z.line),Be=qt(x,z.line,ne),We=new Pe(Ee.text,x.options.tabSize,Be),Ct;for(te&&(Ct=[]);(te||We.pos<z.ch)&&!We.eol();)We.start=We.pos,ve=In(de,We,Be.state),te&&Ct.push(new zn(We,ve,ke(ie.mode,Be.state)));return te?Ct:new zn(We,ve,Be.state)}function mr(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 wr(x,z,ne,te,ie,de,ve){var Ee=ne.flattenSpans;Ee==null&&(Ee=x.options.flattenSpans);var Be=0,We=null,Ct=new Pe(z,x.options.tabSize,te),zt,Sn=x.options.addModeClass&&[null];for(z==""&&mr(En(ne,te.state),de);!Ct.eol();){if(Ct.pos>x.options.maxHighlightLength?(Ee=!1,ve&&$t(x,z,te,Ct.pos),Ct.pos=z.length,zt=null):zt=mr(In(ne,Ct,te.state,Sn),de),Sn){var yn=Sn[0].name;yn&&(zt="m-"+(zt?yn+" "+zt:yn))}if(!Ee||We!=zt){for(;Be<Ct.start;)Be=Math.min(Ct.start,Be+5e3),ie(Be,We);We=zt}Ct.start=Ct.pos}for(;Be<Ct.pos;){var Yn=Math.min(Ct.pos,Be+5e3);ie(Yn,We),Be=Yn}}function cr(x,z,ne){for(var te,ie,de=x.doc,ve=ne?-1:z-(x.doc.mode.innerMode?1e3:100),Ee=z;Ee>ve;--Ee){if(Ee<=de.first)return de.first;var Be=it(de,Ee-1),We=Be.stateAfter;if(We&&(!ne||Ee+(We instanceof At?We.lookAhead:0)<=de.modeFrontier))return Ee;var Ct=je(Be.text,null,x.options.tabSize);(ie==null||te>Ct)&&(ie=Ee-1,te=Ct)}return ie}function Zn(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=it(x,te).stateAfter;if(ie&&(!(ie instanceof At)||te+ie.lookAhead<z)){ne=te+1;break}}x.highlightFrontier=Math.min(x.highlightFrontier,ne)}}var Ar=!1,pr=!1;function Or(){Ar=!0}function ur(){pr=!0}function or(x,z,ne){this.marker=x,this.from=z,this.to=ne}function _r(x,z){if(x)for(var ne=0;ne<x.length;++ne){var te=x[ne];if(te.marker==z)return te}}function Sr(x,z){for(var ne,te=0;te<x.length;++te)x[te]!=z&&(ne||(ne=[])).push(x[te]);return ne}function Jr(x,z){x.markedSpans=x.markedSpans?x.markedSpans.concat([z]):[z],z.marker.attachLine(x)}function si(x,z,ne){var te;if(x)for(var ie=0;ie<x.length;++ie){var de=x[ie],ve=de.marker,Ee=de.from==null||(ve.inclusiveLeft?de.from<=z:de.from<z);if(Ee||de.from==z&&ve.type=="bookmark"&&(!ne||!de.marker.insertLeft)){var Be=de.to==null||(ve.inclusiveRight?de.to>=z:de.to>z);(te||(te=[])).push(new or(ve,de.from,Be?null:de.to))}}return te}function br(x,z,ne){var te;if(x)for(var ie=0;ie<x.length;++ie){var de=x[ie],ve=de.marker,Ee=de.to==null||(ve.inclusiveRight?de.to>=z:de.to>z);if(Ee||de.from==z&&ve.type=="bookmark"&&(!ne||de.marker.insertLeft)){var Be=de.from==null||(ve.inclusiveLeft?de.from<=z:de.from<z);(te||(te=[])).push(new or(ve,Be?null:de.from-z,de.to==null?null:de.to-z))}}return te}function Nn(x,z){if(z.full)return null;var ne=Bn(x,z.from.line)&&it(x,z.from.line).markedSpans,te=Bn(x,z.to.line)&&it(x,z.to.line).markedSpans;if(!ne&&!te)return null;var ie=z.from.ch,de=z.to.ch,ve=bn(z.from,z.to)==0,Ee=si(ne,ie,ve),Be=br(te,de,ve),We=z.text.length==1,Ct=nn(z.text).length+(We?ie:0);if(Ee)for(var zt=0;zt<Ee.length;++zt){var Sn=Ee[zt];if(Sn.to==null){var yn=_r(Be,Sn.marker);yn?We&&(Sn.to=yn.to==null?null:yn.to+Ct):Sn.to=ie}}if(Be)for(var Yn=0;Yn<Be.length;++Yn){var lr=Be[Yn];if(lr.to!=null&&(lr.to+=Ct),lr.from==null){var Nr=_r(Ee,lr.marker);Nr||(lr.from=Ct,We&&(Ee||(Ee=[])).push(lr))}else lr.from+=Ct,We&&(Ee||(Ee=[])).push(lr)}Ee&&(Ee=Rn(Ee)),Be&&Be!=Ee&&(Be=Rn(Be));var Xr=[Ee];if(!We){var ei=z.text.length-2,Zr;if(ei>0&&Ee)for(var ni=0;ni<Ee.length;++ni)Ee[ni].to==null&&(Zr||(Zr=[])).push(new or(Ee[ni].marker,null,null));for(var hi=0;hi<ei;++hi)Xr.push(Zr);Xr.push(Be)}return Xr}function Rn(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 kr(x,z,ne){var te=null;if(x.iter(z.line,ne.line+1,function(yn){if(yn.markedSpans)for(var Yn=0;Yn<yn.markedSpans.length;++Yn){var lr=yn.markedSpans[Yn].marker;lr.readOnly&&(!te||Xe(te,lr)==-1)&&(te||(te=[])).push(lr)}}),!te)return null;for(var ie=[{from:z,to:ne}],de=0;de<te.length;++de)for(var ve=te[de],Ee=ve.find(0),Be=0;Be<ie.length;++Be){var We=ie[Be];if(!(bn(We.to,Ee.from)<0||bn(We.from,Ee.to)>0)){var Ct=[Be,1],zt=bn(We.from,Ee.from),Sn=bn(We.to,Ee.to);(zt<0||!ve.inclusiveLeft&&!zt)&&Ct.push({from:We.from,to:Ee.from}),(Sn>0||!ve.inclusiveRight&&!Sn)&&Ct.push({from:Ee.to,to:We.to}),ie.splice.apply(ie,Ct),Be+=Ct.length-3}}return ie}function yr(x){var z=x.markedSpans;if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.detachLine(x);x.markedSpans=null}}function Hr(x,z){if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.attachLine(x);x.markedSpans=z}}function jr(x){return x.inclusiveLeft?-1:0}function Gr(x){return x.inclusiveRight?1:0}function Cr(x,z){var ne=x.lines.length-z.lines.length;if(ne!=0)return ne;var te=x.find(),ie=z.find(),de=bn(te.from,ie.from)||jr(x)-jr(z);if(de)return-de;var ve=bn(te.to,ie.to)||Gr(x)-Gr(z);return ve||z.id-x.id}function Kr(x,z){var ne=pr&&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||Cr(te,ie.marker)<0)&&(te=ie.marker);return te}function yi(x){return Kr(x,!0)}function ir(x){return Kr(x,!1)}function hr(x,z){var ne=pr&&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||Cr(te,de.marker)<0)&&(te=de.marker)}return te}function Vr(x,z,ne,te,ie){var de=it(x,z),ve=pr&&de.markedSpans;if(ve)for(var Ee=0;Ee<ve.length;++Ee){var Be=ve[Ee];if(Be.marker.collapsed){var We=Be.marker.find(0),Ct=bn(We.from,ne)||jr(Be.marker)-jr(ie),zt=bn(We.to,te)||Gr(Be.marker)-Gr(ie);if(!(Ct>=0&&zt<=0||Ct<=0&&zt>=0)&&(Ct<=0&&(Be.marker.inclusiveRight&&ie.inclusiveLeft?bn(We.to,ne)>=0:bn(We.to,ne)>0)||Ct>=0&&(Be.marker.inclusiveRight&&ie.inclusiveLeft?bn(We.from,te)<=0:bn(We.from,te)<0)))return!0}}}function qr(x){for(var z;z=yi(x);)x=z.find(-1,!0).line;return x}function xi(x){for(var z;z=ir(x);)x=z.find(1,!0).line;return x}function Ei(x){for(var z,ne;z=ir(x);)x=z.find(1,!0).line,(ne||(ne=[])).push(x);return ne}function vi(x,z){var ne=it(x,z),te=qr(ne);return ne==te?z:on(te)}function ci(x,z){if(z>x.lastLine())return z;var ne=it(x,z),te;if(!Ai(x,ne))return z;for(;te=ir(ne);)ne=te.find(1,!0).line;return on(ne)+1}function Ai(x,z){var ne=pr&&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&&Li(x,z,te))return!0}}}function Li(x,z,ne){if(ne.to==null){var te=ne.marker.find(1,!0);return Li(x,te.line,_r(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)&&Li(x,z,ie))return!0}function dr(x){x=qr(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 ve=0;ve<de.children.length;++ve){var Ee=de.children[ve];if(Ee==ne)break;z+=Ee.height}return z}function sr(x){if(x.height==0)return 0;for(var z=x.text.length,ne,te=x;ne=yi(te);){var ie=ne.find(0,!0);te=ie.from.line,z+=ie.from.ch-ie.to.ch}for(te=x;ne=ir(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 ar(x){var z=x.display,ne=x.doc;z.maxLine=it(ne,ne.first),z.maxLineLength=sr(z.maxLine),z.maxLineChanged=!0,ne.iter(function(te){var ie=sr(te);ie>z.maxLineLength&&(z.maxLineLength=ie,z.maxLine=te)})}var Br=function(x,z,ne){this.text=x,Hr(this,z),this.height=ne?ne(this):1};Br.prototype.lineNo=function(){return on(this)},an(Br);function gi(x,z,ne,te){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),yr(x),Hr(x,ne);var ie=te?te(x):1;ie!=x.height&&Ft(x,ie)}function Di(x){x.parent=null,yr(x)}var Ii={},ki={};function wi(x,z){if(!x||/^\s*$/.test(x))return null;var ne=z.addModeClass?ki:Ii;return ne[x]||(ne[x]=x.replace(/\S+/g,"cm-$&"))}function Pi(x,z){var ne=kt("span",null,null,Fe?"padding-right: .1px":null),te={pre:kt("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,ve=void 0;te.pos=0,te.addToken=Hi,Jn(x.display.measure)&&(ve=hn(de,x.doc.direction))&&(te.addToken=li(te.addToken,ve)),te.map=[];var Ee=z!=x.display.externalMeasured&&on(de);Ri(de,te,jt(x,de,Ee)),de.styleClasses&&(de.styleClasses.bgClass&&(te.bgClass=ln(de.styleClasses.bgClass,te.bgClass||"")),de.styleClasses.textClass&&(te.textClass=ln(de.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(Pr(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(Fe){var Be=te.content.lastChild;(/\bcm-tab\b/.test(Be.className)||Be.querySelector&&Be.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return De(x,"renderLine",x,z.line,te.pre),te.pre.className&&(te.textClass=ln(te.pre.className,te.textClass||"")),te}function Gi(x){var z=Je("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function Hi(x,z,ne,te,ie,de,ve){if(z){var Ee=x.splitSpaces?oa(z,x.trailingSpace):z,Be=x.cm.state.specialChars,We=!1,Ct;if(!Be.test(z))x.col+=z.length,Ct=document.createTextNode(Ee),x.map.push(x.pos,x.pos+z.length,Ct),we&&Te<9&&(We=!0),x.pos+=z.length;else{Ct=document.createDocumentFragment();for(var zt=0;;){Be.lastIndex=zt;var Sn=Be.exec(z),yn=Sn?Sn.index-zt:z.length-zt;if(yn){var Yn=document.createTextNode(Ee.slice(zt,zt+yn));we&&Te<9?Ct.appendChild(Je("span",[Yn])):Ct.appendChild(Yn),x.map.push(x.pos,x.pos+yn,Yn),x.col+=yn,x.pos+=yn}if(!Sn)break;zt+=yn+1;var lr=void 0;if(Sn[0]==" "){var Nr=x.cm.options.tabSize,Xr=Nr-x.col%Nr;lr=Ct.appendChild(Je("span",dn(Xr),"cm-tab")),lr.setAttribute("role","presentation"),lr.setAttribute("cm-text"," "),x.col+=Xr}else Sn[0]=="\r"||Sn[0]==`
|
|
|
`?(lr=Ct.appendChild(Je("span",Sn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),lr.setAttribute("cm-text",Sn[0]),x.col+=1):(lr=x.cm.options.specialCharPlaceholder(Sn[0]),lr.setAttribute("cm-text",Sn[0]),we&&Te<9?Ct.appendChild(Je("span",[lr])):Ct.appendChild(lr),x.col+=1);x.map.push(x.pos,x.pos+1,lr),x.pos++}}if(x.trailingSpace=Ee.charCodeAt(z.length-1)==32,ne||te||ie||We||de||ve){var ei=ne||"";te&&(ei+=te),ie&&(ei+=ie);var Zr=Je("span",[Ct],ei,de);if(ve)for(var ni in ve)ve.hasOwnProperty(ni)&&ni!="style"&&ni!="class"&&Zr.setAttribute(ni,ve[ni]);return x.content.appendChild(Zr)}x.content.appendChild(Ct)}}function oa(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 li(x,z){return function(ne,te,ie,de,ve,Ee,Be){ie=ie?ie+" cm-force-border":"cm-force-border";for(var We=ne.pos,Ct=We+te.length;;){for(var zt=void 0,Sn=0;Sn<z.length&&(zt=z[Sn],!(zt.to>We&&zt.from<=We));Sn++);if(zt.to>=Ct)return x(ne,te,ie,de,ve,Ee,Be);x(ne,te.slice(0,zt.to-We),ie,de,null,Ee,Be),de=null,te=te.slice(zt.to-We),We=zt.to}}}function fi(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 Ri(x,z,ne){var te=x.markedSpans,ie=x.text,de=0;if(!te){for(var ve=1;ve<ne.length;ve+=2)z.addToken(z,ie.slice(de,de=ne[ve]),wi(ne[ve+1],z.cm.options));return}for(var Ee=ie.length,Be=0,We=1,Ct="",zt,Sn,yn=0,Yn,lr,Nr,Xr,ei;;){if(yn==Be){Yn=lr=Nr=Sn="",ei=null,Xr=null,yn=1/0;for(var Zr=[],ni=void 0,hi=0;hi<te.length;++hi){var mi=te[hi],Oi=mi.marker;if(Oi.type=="bookmark"&&mi.from==Be&&Oi.widgetNode)Zr.push(Oi);else if(mi.from<=Be&&(mi.to==null||mi.to>Be||Oi.collapsed&&mi.to==Be&&mi.from==Be)){if(mi.to!=null&&mi.to!=Be&&yn>mi.to&&(yn=mi.to,lr=""),Oi.className&&(Yn+=" "+Oi.className),Oi.css&&(Sn=(Sn?Sn+";":"")+Oi.css),Oi.startStyle&&mi.from==Be&&(Nr+=" "+Oi.startStyle),Oi.endStyle&&mi.to==yn&&(ni||(ni=[])).push(Oi.endStyle,mi.to),Oi.title&&((ei||(ei={})).title=Oi.title),Oi.attributes)for(var ra in Oi.attributes)(ei||(ei={}))[ra]=Oi.attributes[ra];Oi.collapsed&&(!Xr||Cr(Xr.marker,Oi)<0)&&(Xr=mi)}else mi.from>Be&&yn>mi.from&&(yn=mi.from)}if(ni)for(var Va=0;Va<ni.length;Va+=2)ni[Va+1]==yn&&(lr+=" "+ni[Va]);if(!Xr||Xr.from==Be)for(var ha=0;ha<Zr.length;++ha)fi(z,0,Zr[ha]);if(Xr&&(Xr.from||0)==Be){if(fi(z,(Xr.to==null?Ee+1:Xr.to)-Be,Xr.marker,Xr.from==null),Xr.to==null)return;Xr.to==Be&&(Xr=!1)}}if(Be>=Ee)break;for(var yo=Math.min(Ee,yn);;){if(Ct){var bo=Be+Ct.length;if(!Xr){var Da=bo>yo?Ct.slice(0,yo-Be):Ct;z.addToken(z,Da,zt?zt+Yn:Yn,Nr,Be+Da.length==yn?lr:"",Sn,ei)}if(bo>=yo){Ct=Ct.slice(yo-Be),Be=yo;break}Be=bo,Nr=""}Ct=ie.slice(de,de=ne[We++]),zt=wi(ne[We++],z.cm.options)}}}function sn(x,z,ne){this.line=z,this.rest=Ei(z),this.size=this.rest?on(nn(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=Ai(x,z)}function rn(x,z,ne){for(var te=[],ie,de=z;de<ne;de=ie){var ve=new sn(x.doc,it(x.doc,de),de);ie=de+ve.size,te.push(ve)}return te}var vn=null;function Fn(x){vn?vn.ops.push(x):x.ownsGroup=vn={ops:[x],delayedCallbacks:[]}}function _n(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 tr(x,z){var ne=x.ownsGroup;if(ne)try{_n(ne)}finally{vn=null,z(ne)}}var xn=null;function jn(x,z){var ne=fn(x,z);if(ne.length){var te=Array.prototype.slice.call(arguments,2),ie;vn?ie=vn.delayedCallbacks:xn?ie=xn:(ie=xn=[],setTimeout(gr,0));for(var de=function(Ee){ie.push(function(){return ne[Ee].apply(null,te)})},ve=0;ve<ne.length;++ve)de(ve)}}function gr(){var x=xn;xn=null;for(var z=0;z<x.length;++z)x[z]()}function Rr(x,z,ne,te){for(var ie=0;ie<z.changes.length;ie++){var de=z.changes[ie];de=="text"?di(x,z):de=="gutter"?Er(x,z,ne,te):de=="class"?ai(x,z):de=="widget"&&Ur(x,z,te)}z.changes=null}function Wr(x){return x.node==x.text&&(x.node=Je("div",null,null,"position: relative"),x.text.parentNode&&x.text.parentNode.replaceChild(x.node,x.text),x.node.appendChild(x.text),we&&Te<8&&(x.node.style.zIndex=2)),x.node}function qn(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=Wr(z);z.background=te.insertBefore(Je("div",null,ne),te.firstChild),x.display.input.setUneditable(z.background)}}function ti(x,z){var ne=x.display.externalMeasured;return ne&&ne.line==z.line?(x.display.externalMeasured=null,z.measure=ne.measure,ne.built):Pi(x,z)}function di(x,z){var ne=z.text.className,te=ti(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,ai(x,z)):ne&&(z.text.className=ne)}function ai(x,z){qn(x,z),z.line.wrapClass?Wr(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 Er(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=Wr(z);z.gutterBackground=Je("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 ve=Wr(z),Ee=z.gutter=Je("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px");if(x.display.input.setUneditable(Ee),ve.insertBefore(Ee,z.text),z.line.gutterClass&&(Ee.className+=" "+z.line.gutterClass),x.options.lineNumbers&&(!de||!de["CodeMirror-linenumbers"])&&(z.lineNumber=Ee.appendChild(Je("div",An(x.options,ne),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+te.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px"))),de)for(var Be=0;Be<x.display.gutterSpecs.length;++Be){var We=x.display.gutterSpecs[Be].className,Ct=de.hasOwnProperty(We)&&de[We];Ct&&Ee.appendChild(Je("div",[Ct],"CodeMirror-gutter-elt","left: "+te.gutterLeft[We]+"px; width: "+te.gutterWidth[We]+"px"))}}}function Ur(x,z,ne){z.alignable&&(z.alignable=null);for(var te=Me("CodeMirror-linewidget"),ie=z.node.firstChild,de=void 0;ie;ie=de)de=ie.nextSibling,te.test(ie.className)&&z.node.removeChild(ie);pi(x,z,ne)}function bi(x,z,ne,te){var ie=ti(x,z);return z.text=z.node=ie.pre,ie.bgClass&&(z.bgClass=ie.bgClass),ie.textClass&&(z.textClass=ie.textClass),ai(x,z),Er(x,z,ne,te),pi(x,z,te),z.node}function pi(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=Wr(ne),ve=0,Ee=z.widgets;ve<Ee.length;++ve){var Be=Ee[ve],We=Je("div",[Be.node],"CodeMirror-linewidget"+(Be.className?" "+Be.className:""));Be.handleMouseEvents||We.setAttribute("cm-ignore-events","true"),pa(Be,We,ne,te),x.display.input.setUneditable(We),ie&&Be.above?de.insertBefore(We,ne.gutter||ne.text):de.appendChild(We),jn(Be,"redraw")}}function pa(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 Aa(x){if(x.height!=null)return x.height;var z=x.doc.cm;if(!z)return 0;if(!Tt(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;"),mt(z.display.measure,Je("div",[x.node],null,ne))}return x.height=x.node.parentNode.offsetHeight}function Ha(x,z){for(var ne=Wn(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 Pa(x){return x.lineSpace.offsetTop}function Po(x){return x.mover.offsetHeight-x.lineSpace.offsetHeight}function Ua(x){if(x.cachedPaddingH)return x.cachedPaddingH;var z=mt(x.measure,Je("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 ba(x){return _t-x.display.nativeBarWidth}function Xi(x){return x.display.scroller.clientWidth-ba(x)-x.display.barWidth}function Ka(x){return x.display.scroller.clientHeight-ba(x)-x.display.barHeight}function so(x,z,ne){var te=x.options.lineWrapping,ie=te&&Xi(x);if(!z.measure.heights||te&&z.measure.width!=ie){var de=z.measure.heights=[];if(te){z.measure.width=ie;for(var ve=z.text.firstChild.getClientRects(),Ee=0;Ee<ve.length-1;Ee++){var Be=ve[Ee],We=ve[Ee+1];Math.abs(Be.bottom-We.bottom)>2&&de.push((Be.bottom+We.top)/2-ne.top)}}de.push(ne.bottom-ne.top)}}function lo(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(on(x.rest[ie])>ne)return{map:x.measure.maps[ie],cache:x.measure.caches[ie],before:!0}}function co(x,z){z=qr(z);var ne=on(z),te=x.display.externalMeasured=new sn(x.doc,z,ne);te.lineN=ne;var ie=te.built=Pi(x,te);return te.text=ie.pre,mt(x.display.lineMeasure,ie.pre),te}function Wa(x,z,ne,te){return Ki(x,wa(x,z),ne,te)}function xa(x,z){if(z>=x.display.viewFrom&&z<x.display.viewTo)return x.display.view[wo(x,z)];var ne=x.display.externalMeasured;if(ne&&z>=ne.lineN&&z<ne.lineN+ne.size)return ne}function wa(x,z){var ne=on(z),te=xa(x,ne);te&&!te.text?te=null:te&&te.changes&&(Rr(x,te,ne,Zi(x)),x.curOp.forceUpdate=!0),te||(te=co(x,z));var ie=lo(te,z,ne);return{line:z,view:te,rect:null,map:ie.map,cache:ie.cache,before:ie.before,hasHeights:!1}}function Ki(x,z,ne,te,ie){z.before&&(ne=-1);var de=ne+(te||""),ve;return z.cache.hasOwnProperty(de)?ve=z.cache[de]:(z.rect||(z.rect=z.view.text.getBoundingClientRect()),z.hasHeights||(so(x,z.view,z.rect),z.hasHeights=!0),ve=Ni(x,z,ne,te),ve.bogus||(z.cache[de]=ve)),{left:ve.left,right:ve.right,top:ie?ve.rtop:ve.top,bottom:ie?ve.rbottom:ve.bottom}}var uo={left:0,right:0,top:0,bottom:0};function Ho(x,z,ne){for(var te,ie,de,ve,Ee,Be,We=0;We<x.length;We+=3)if(Ee=x[We],Be=x[We+1],z<Ee?(ie=0,de=1,ve="left"):z<Be?(ie=z-Ee,de=ie+1):(We==x.length-3||z==Be&&x[We+3]>z)&&(de=Be-Ee,ie=de-1,z>=Be&&(ve="right")),ie!=null){if(te=x[We+2],Ee==Be&&ne==(te.insertLeft?"left":"right")&&(ve=ne),ne=="left"&&ie==0)for(;We&&x[We-2]==x[We-3]&&x[We-1].insertLeft;)te=x[(We-=3)+2],ve="left";if(ne=="right"&&ie==Be-Ee)for(;We<x.length-3&&x[We+3]==x[We+4]&&!x[We+5].insertLeft;)te=x[(We+=3)+2],ve="right";break}return{node:te,start:ie,end:de,collapse:ve,coverStart:Ee,coverEnd:Be}}function To(x,z){var ne=uo;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 Ni(x,z,ne,te){var ie=Ho(z.map,ne,te),de=ie.node,ve=ie.start,Ee=ie.end,Be=ie.collapse,We;if(de.nodeType==3){for(var Ct=0;Ct<4;Ct++){for(;ve&&rt(z.line.text.charAt(ie.coverStart+ve));)--ve;for(;ie.coverStart+Ee<ie.coverEnd&&rt(z.line.text.charAt(ie.coverStart+Ee));)++Ee;if(we&&Te<9&&ve==0&&Ee==ie.coverEnd-ie.coverStart?We=de.parentNode.getBoundingClientRect():We=To(st(de,ve,Ee).getClientRects(),te),We.left||We.right||ve==0)break;Ee=ve,ve=ve-1,Be="right"}we&&Te<11&&(We=Bi(x.display.measure,We))}else{ve>0&&(Be=te="right");var zt;x.options.lineWrapping&&(zt=de.getClientRects()).length>1?We=zt[te=="right"?zt.length-1:0]:We=de.getBoundingClientRect()}if(we&&Te<9&&!ve&&(!We||!We.left&&!We.right)){var Sn=de.parentNode.getClientRects()[0];Sn?We={left:Sn.left,right:Sn.left+Wi(x.display),top:Sn.top,bottom:Sn.bottom}:We=uo}for(var yn=We.top-z.rect.top,Yn=We.bottom-z.rect.top,lr=(yn+Yn)/2,Nr=z.view.measure.heights,Xr=0;Xr<Nr.length-1&&!(lr<Nr[Xr]);Xr++);var ei=Xr?Nr[Xr-1]:0,Zr=Nr[Xr],ni={left:(Be=="right"?We.right:We.left)-z.rect.left,right:(Be=="left"?We.left:We.right)-z.rect.left,top:ei,bottom:Zr};return!We.left&&!We.right&&(ni.bogus=!0),x.options.singleCursorHeightPerLine||(ni.rtop=yn,ni.rbottom=Yn),ni}function Bi(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 Qi(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 Ta(x){x.display.externalMeasure=null,tt(x.display.lineMeasure);for(var z=0;z<x.display.view.length;z++)Qi(x.display.view[z])}function ea(x){Ta(x),x.display.cachedCharWidth=x.display.cachedTextHeight=x.display.cachedPaddingH=null,x.options.lineWrapping||(x.display.maxLineChanged=!0),x.display.lineNumChars=null}function ja(){return Ce&&ut?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ga(){return Ce&&ut?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ho(x){var z=0;if(x.widgets)for(var ne=0;ne<x.widgets.length;++ne)x.widgets[ne].above&&(z+=Aa(x.widgets[ne]));return z}function Za(x,z,ne,te,ie){if(!ie){var de=ho(z);ne.top+=de,ne.bottom+=de}if(te=="line")return ne;te||(te="local");var ve=dr(z);if(te=="local"?ve+=Pa(x.display):ve-=x.display.viewOffset,te=="page"||te=="window"){var Ee=x.display.lineSpace.getBoundingClientRect();ve+=Ee.top+(te=="window"?0:Ga());var Be=Ee.left+(te=="window"?0:ja());ne.left+=Be,ne.right+=Be}return ne.top+=ve,ne.bottom+=ve,ne}function go(x,z,ne){if(ne=="div")return z;var te=z.left,ie=z.top;if(ne=="page")te-=ja(),ie-=Ga();else if(ne=="local"||!ne){var de=x.display.sizer.getBoundingClientRect();te+=de.left,ie+=de.top}var ve=x.display.lineSpace.getBoundingClientRect();return{left:te-ve.left,top:ie-ve.top}}function vo(x,z,ne,te,ie){return te||(te=it(x.doc,z.line)),Za(x,te,Wa(x,te,z.ch,ie),ne)}function Oa(x,z,ne,te,ie,de){te=te||it(x.doc,z.line),ie||(ie=wa(x,te));function ve(Yn,lr){var Nr=Ki(x,ie,Yn,lr?"right":"left",de);return lr?Nr.left=Nr.right:Nr.right=Nr.left,Za(x,te,Nr,ne)}var Ee=hn(te,x.doc.direction),Be=z.ch,We=z.sticky;if(Be>=te.text.length?(Be=te.text.length,We="before"):Be<=0&&(Be=0,We="after"),!Ee)return ve(We=="before"?Be-1:Be,We=="before");function Ct(Yn,lr,Nr){var Xr=Ee[lr],ei=Xr.level==1;return ve(Nr?Yn-1:Yn,ei!=Nr)}var zt=Ye(Ee,Be,We),Sn=xt,yn=Ct(Be,zt,We=="before");return Sn!=null&&(yn.other=Ct(Be,Sn,We!="before")),yn}function bl(x,z){var ne=0;z=Zt(x.doc,z),x.options.lineWrapping||(ne=Wi(x.display)*z.ch);var te=it(x.doc,z.line),ie=dr(te)+Pa(x.display);return{left:ne,right:ne,top:ie,bottom:ie+te.height}}function Xo(x,z,ne,te,ie){var de=Wt(x,z,ne);return de.xRel=ie,te&&(de.outside=te),de}function Js(x,z,ne){var te=x.doc;if(ne+=x.display.viewOffset,ne<0)return Xo(te.first,0,null,-1,-1);var ie=Cn(te,ne),de=te.first+te.size-1;if(ie>de)return Xo(te.first+te.size-1,it(te,de).text.length,null,1,1);z<0&&(z=0);for(var ve=it(te,ie);;){var Ee=Mc(x,ve,ie,z,ne),Be=hr(ve,Ee.ch+(Ee.xRel>0||Ee.outside>0?1:0));if(!Be)return Ee;var We=Be.find(1);if(We.line==ie)return We;ve=it(te,ie=We.line)}}function Kl(x,z,ne,te){te-=ho(z);var ie=z.text.length,de=Ke(function(ve){return Ki(x,ne,ve-1).bottom<=te},ie,0);return ie=Ke(function(ve){return Ki(x,ne,ve).top>te},de,ie),{begin:de,end:ie}}function Wl(x,z,ne,te){ne||(ne=wa(x,z));var ie=Za(x,z,Ki(x,ne,te),"line").top;return Kl(x,z,ne,ie)}function Cs(x,z,ne,te){return x.bottom<=ne?!1:x.top>ne?!0:(te?x.left:x.right)>z}function Mc(x,z,ne,te,ie){ie-=dr(z);var de=wa(x,z),ve=ho(z),Ee=0,Be=z.text.length,We=!0,Ct=hn(z,x.doc.direction);if(Ct){var zt=(x.options.lineWrapping?xl:as)(x,z,ne,de,Ct,te,ie);We=zt.level!=1,Ee=We?zt.from:zt.to-1,Be=We?zt.to:zt.from-1}var Sn=null,yn=null,Yn=Ke(function(hi){var mi=Ki(x,de,hi);return mi.top+=ve,mi.bottom+=ve,Cs(mi,te,ie,!1)?(mi.top<=ie&&mi.left<=te&&(Sn=hi,yn=mi),!0):!1},Ee,Be),lr,Nr,Xr=!1;if(yn){var ei=te-yn.left<yn.right-te,Zr=ei==We;Yn=Sn+(Zr?0:1),Nr=Zr?"after":"before",lr=ei?yn.left:yn.right}else{!We&&(Yn==Be||Yn==Ee)&&Yn++,Nr=Yn==0?"after":Yn==z.text.length?"before":Ki(x,de,Yn-(We?1:0)).bottom+ve<=ie==We?"after":"before";var ni=Oa(x,Wt(ne,Yn,Nr),"line",z,de);lr=ni.left,Xr=ie<ni.top?-1:ie>=ni.bottom?1:0}return Yn=Le(z.text,Yn,1),Xo(ne,Yn,Nr,Xr,te-lr)}function as(x,z,ne,te,ie,de,ve){var Ee=Ke(function(zt){var Sn=ie[zt],yn=Sn.level!=1;return Cs(Oa(x,Wt(ne,yn?Sn.to:Sn.from,yn?"before":"after"),"line",z,te),de,ve,!0)},0,ie.length-1),Be=ie[Ee];if(Ee>0){var We=Be.level!=1,Ct=Oa(x,Wt(ne,We?Be.from:Be.to,We?"after":"before"),"line",z,te);Cs(Ct,de,ve,!0)&&Ct.top>ve&&(Be=ie[Ee-1])}return Be}function xl(x,z,ne,te,ie,de,ve){var Ee=Kl(x,z,te,ve),Be=Ee.begin,We=Ee.end;/\s/.test(z.text.charAt(We-1))&&We--;for(var Ct=null,zt=null,Sn=0;Sn<ie.length;Sn++){var yn=ie[Sn];if(!(yn.from>=We||yn.to<=Be)){var Yn=yn.level!=1,lr=Ki(x,te,Yn?Math.min(We,yn.to)-1:Math.max(Be,yn.from)).right,Nr=lr<de?de-lr+1e9:lr-de;(!Ct||zt>Nr)&&(Ct=yn,zt=Nr)}}return Ct||(Ct=ie[ie.length-1]),Ct.from<Be&&(Ct={from:Be,to:Ct.to,level:Ct.level}),Ct.to>We&&(Ct={from:Ct.from,to:We,level:Ct.level}),Ct}var Qo;function os(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(Qo==null){Qo=Je("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)Qo.appendChild(document.createTextNode("x")),Qo.appendChild(Je("br"));Qo.appendChild(document.createTextNode("x"))}mt(x.measure,Qo);var ne=Qo.offsetHeight/50;return ne>3&&(x.cachedTextHeight=ne),tt(x.measure),ne||1}function Wi(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=Je("span","xxxxxxxxxx"),ne=Je("pre",[z],"CodeMirror-line-like");mt(x.measure,ne);var te=z.getBoundingClientRect(),ie=(te.right-te.left)/10;return ie>2&&(x.cachedCharWidth=ie),ie||10}function Zi(x){for(var z=x.display,ne={},te={},ie=z.gutters.clientLeft,de=z.gutters.firstChild,ve=0;de;de=de.nextSibling,++ve){var Ee=x.display.gutterSpecs[ve].className;ne[Ee]=de.offsetLeft+de.clientLeft+ie,te[Ee]=de.clientWidth}return{fixedPos:Ji(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:z.wrapper.clientWidth}}function Ji(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function ro(x){var z=os(x.display),ne=x.options.lineWrapping,te=ne&&Math.max(5,x.display.scroller.clientWidth/Wi(x.display)-3);return function(ie){if(Ai(x.doc,ie))return 0;var de=0;if(ie.widgets)for(var ve=0;ve<ie.widgets.length;ve++)ie.widgets[ve].height&&(de+=ie.widgets[ve].height);return ne?de+(Math.ceil(ie.text.length/te)||1)*z:de+z}}function Ra(x){var z=x.doc,ne=ro(x);z.iter(function(te){var ie=ne(te);ie!=te.height&&Ft(te,ie)})}function Ao(x,z,ne,te){var ie=x.display;if(!ne&&Wn(z).getAttribute("cm-not-content")=="true")return null;var de,ve,Ee=ie.lineSpace.getBoundingClientRect();try{de=z.clientX-Ee.left,ve=z.clientY-Ee.top}catch(zt){return null}var Be=Js(x,de,ve),We;if(te&&Be.xRel>0&&(We=it(x.doc,Be.line).text).length==Be.ch){var Ct=je(We,We.length,x.options.tabSize)-We.length;Be=Wt(Be.line,Math.max(0,Math.round((de-Ua(x.display).left)/Wi(x.display))-Ct))}return Be}function wo(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 Ya(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)pr&&vi(x.doc,z)<ie.viewTo&&Ro(x);else if(ne<=ie.viewFrom)pr&&ci(x.doc,ne+te)>ie.viewFrom?Ro(x):(ie.viewFrom+=te,ie.viewTo+=te);else if(z<=ie.viewFrom&&ne>=ie.viewTo)Ro(x);else if(z<=ie.viewFrom){var de=ko(x,ne,ne+te,1);de?(ie.view=ie.view.slice(de.index),ie.viewFrom=de.lineN,ie.viewTo+=te):Ro(x)}else if(ne>=ie.viewTo){var ve=ko(x,z,z,-1);ve?(ie.view=ie.view.slice(0,ve.index),ie.viewTo=ve.lineN):Ro(x)}else{var Ee=ko(x,z,z,-1),Be=ko(x,ne,ne+te,1);Ee&&Be?(ie.view=ie.view.slice(0,Ee.index).concat(rn(x,Ee.lineN,Be.lineN)).concat(ie.view.slice(Be.index)),ie.viewTo+=te):Ro(x)}var We=ie.externalMeasured;We&&(ne<We.lineN?We.lineN+=te:z<We.lineN+We.size&&(ie.externalMeasured=null))}function Oo(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[wo(x,z)];if(de.node!=null){var ve=de.changes||(de.changes=[]);Xe(ve,ne)==-1&&ve.push(ne)}}}function Ro(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function ko(x,z,ne,te){var ie=wo(x,z),de,ve=x.display.view;if(!pr||ne==x.doc.first+x.doc.size)return{index:ie,lineN:ne};for(var Ee=x.display.viewFrom,Be=0;Be<ie;Be++)Ee+=ve[Be].size;if(Ee!=z){if(te>0){if(ie==ve.length-1)return null;de=Ee+ve[ie].size-z,ie++}else de=Ee-z;z+=de,ne+=de}for(;vi(x.doc,ne)!=ne;){if(ie==(te<0?0:ve.length-1))return null;ne+=te*ve[ie-(te<0?1:0)].size,ie+=te}return{index:ie,lineN:ne}}function ss(x,z,ne){var te=x.display,ie=te.view;ie.length==0||z>=te.viewTo||ne<=te.viewFrom?(te.view=rn(x,z,ne),te.viewFrom=z):(te.viewFrom>z?te.view=rn(x,z,te.viewFrom).concat(te.view):te.viewFrom<z&&(te.view=te.view.slice(wo(x,z))),te.viewFrom=z,te.viewTo<ne?te.view=te.view.concat(rn(x,te.viewTo,ne)):te.viewTo>ne&&(te.view=te.view.slice(0,wo(x,ne)))),te.viewTo=ne}function jl(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 wl(x){x.display.input.showSelection(x.display.input.prepareSelection())}function Mu(x,z){z===void 0&&(z=!0);for(var ne=x.doc,te={},ie=te.cursors=document.createDocumentFragment(),de=te.selection=document.createDocumentFragment(),ve=0;ve<ne.sel.ranges.length;ve++)if(!(!z&&ve==ne.sel.primIndex)){var Ee=ne.sel.ranges[ve];if(!(Ee.from().line>=x.display.viewTo||Ee.to().line<x.display.viewFrom)){var Be=Ee.empty();(Be||x.options.showCursorWhenSelecting)&&Au(x,Ee.head,ie),Be||Rd(x,Ee,de)}}return te}function Au(x,z,ne){var te=Oa(x,z,"div",null,null,!x.options.singleCursorHeightPerLine),ie=ne.appendChild(Je("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(Je("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 Zl(x,z){return x.top-z.top||x.left-z.left}function Rd(x,z,ne){var te=x.display,ie=x.doc,de=document.createDocumentFragment(),ve=Ua(x.display),Ee=ve.left,Be=Math.max(te.sizerWidth,Xi(x)-te.sizer.offsetLeft)-ve.right,We=ie.direction=="ltr";function Ct(Zr,ni,hi,mi){ni<0&&(ni=0),ni=Math.round(ni),mi=Math.round(mi),de.appendChild(Je("div",null,"CodeMirror-selected","position: absolute; left: "+Zr+`px;
|
|
|
top: `+ni+"px; width: "+(hi==null?Be-Zr:hi)+`px;
|
|
|
height: `+(mi-ni)+"px"))}function zt(Zr,ni,hi){var mi=it(ie,Zr),Oi=mi.text.length,ra,Va;function ha(Da,xo){return vo(x,Wt(Zr,Da),"div",mi,xo)}function yo(Da,xo,Mi){var ga=Wl(x,mi,null,Da),fa=xo=="ltr"==(Mi=="after")?"left":"right",va=Mi=="after"?ga.begin:ga.end-(/\s/.test(mi.text.charAt(ga.end-1))?2:1);return ha(va,fa)[fa]}var bo=hn(mi,ie.direction);return Lt(bo,ni||0,hi==null?Oi:hi,function(Da,xo,Mi,ga){var fa=Mi=="ltr",va=ha(Da,fa?"left":"right"),Ca=ha(xo-1,fa?"right":"left"),fl=ni==null&&Da==0,Eo=hi==null&&xo==Oi,qa=ga==0,Vi=!bo||ga==bo.length-1;if(Ca.top-va.top<=3){var _a=(We?fl:Eo)&&qa,au=(We?Eo:fl)&&Vi,xs=_a?Ee:(fa?va:Ca).left,_s=au?Be:(fa?Ca:va).right;Ct(xs,va.top,_s-xs,va.bottom)}else{var es,Ia,pl,$a;fa?(es=We&&fl&&qa?Ee:va.left,Ia=We?Be:yo(Da,Mi,"before"),pl=We?Ee:yo(xo,Mi,"after"),$a=We&&Eo&&Vi?Be:Ca.right):(es=We?yo(Da,Mi,"before"):Ee,Ia=!We&&fl&&qa?Be:va.right,pl=!We&&Eo&&Vi?Ee:Ca.left,$a=We?yo(xo,Mi,"after"):Be),Ct(es,va.top,Ia-es,va.bottom),va.bottom<Ca.top&&Ct(Ee,va.bottom,null,Ca.top),Ct(pl,Ca.top,$a-pl,Ca.bottom)}(!ra||Zl(va,ra)<0)&&(ra=va),Zl(Ca,ra)<0&&(ra=Ca),(!Va||Zl(va,Va)<0)&&(Va=va),Zl(Ca,Va)<0&&(Va=Ca)}),{start:ra,end:Va}}var Sn=z.from(),yn=z.to();if(Sn.line==yn.line)zt(Sn.line,Sn.ch,yn.ch);else{var Yn=it(ie,Sn.line),lr=it(ie,yn.line),Nr=qr(Yn)==qr(lr),Xr=zt(Sn.line,Sn.ch,Nr?Yn.text.length+1:null).end,ei=zt(yn.line,Nr?0:null,yn.ch).start;Nr&&(Xr.top<ei.top-2?(Ct(Xr.right,Xr.top,null,Xr.bottom),Ct(Ee,ei.top,ei.left,ei.bottom)):Ct(Xr.right,Xr.top,ei.left-Xr.right,Xr.bottom)),Xr.bottom<ei.top&&Ct(Ee,Xr.bottom,null,ei.top)}ne.appendChild(de)}function Ac(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()||qs(x),z.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function Sl(x){x.state.focused||(x.display.input.focus(),kc(x))}function ku(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,qs(x))},100)}function kc(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(De(x,"focus",x,z),x.state.focused=!0,Yt(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),Fe&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),Ac(x))}function qs(x,z){x.state.delayingBlurEvent||(x.state.focused&&(De(x,"blur",x,z),x.state.focused=!1,Ue(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function Vl(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,ve=void 0,Ee=0;if(!ie.hidden){if(we&&Te<8){var Be=ie.node.offsetTop+ie.node.offsetHeight;ve=Be-ne,ne=Be}else{var We=ie.node.getBoundingClientRect();ve=We.bottom-We.top,!de&&ie.text.firstChild&&(Ee=ie.text.firstChild.getBoundingClientRect().right-We.left-1)}var Ct=ie.line.height-ve;if((Ct>.005||Ct<-.005)&&(Ft(ie.line,ve),Bu(ie.line),ie.rest))for(var zt=0;zt<ie.rest.length;zt++)Bu(ie.rest[zt]);if(Ee>x.display.sizerWidth){var Sn=Math.ceil(Ee/Wi(x.display));Sn>x.display.maxLineLength&&(x.display.maxLineLength=Sn,x.display.maxLine=ie.line,x.display.maxLineChanged=!0)}}}}function Bu(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 Na(x,z,ne){var te=ne&&ne.top!=null?Math.max(0,ne.top):x.scroller.scrollTop;te=Math.floor(te-Pa(x));var ie=ne&&ne.bottom!=null?ne.bottom:te+x.wrapper.clientHeight,de=Cn(z,te),ve=Cn(z,ie);if(ne&&ne.ensure){var Ee=ne.ensure.from.line,Be=ne.ensure.to.line;Ee<de?(de=Ee,ve=Cn(z,dr(it(z,Ee))+x.wrapper.clientHeight)):Math.min(Be,z.lastLine())>=ve&&(de=Cn(z,dr(it(z,Be))-x.wrapper.clientHeight),ve=Be)}return{from:de,to:Math.max(ve,de+1)}}function ls(x,z){if(!qe(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&&!Ge){var de=Je("div","\u200B",null,`position: absolute;
|
|
|
top: `+(z.top-ne.viewOffset-Pa(x.display))+`px;
|
|
|
height: `+(z.bottom-z.top+ba(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 Es(x,z,ne,te){te==null&&(te=0);var ie;!x.options.lineWrapping&&z==ne&&(z=z.ch?Wt(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,ne=z.sticky=="before"?Wt(z.line,z.ch+1,"before"):z);for(var de=0;de<5;de++){var ve=!1,Ee=Oa(x,z),Be=!ne||ne==z?Ee:Oa(x,ne);ie={left:Math.min(Ee.left,Be.left),top:Math.min(Ee.top,Be.top)-te,right:Math.max(Ee.left,Be.left),bottom:Math.max(Ee.bottom,Be.bottom)+te};var We=Ul(x,ie),Ct=x.doc.scrollTop,zt=x.doc.scrollLeft;if(We.scrollTop!=null&&(Ms(x,We.scrollTop),Math.abs(x.doc.scrollTop-Ct)>1&&(ve=!0)),We.scrollLeft!=null&&(As(x,We.scrollLeft),Math.abs(x.doc.scrollLeft-zt)>1&&(ve=!0)),!ve)break}return ie}function Nd(x,z){var ne=Ul(x,z);ne.scrollTop!=null&&Ms(x,ne.scrollTop),ne.scrollLeft!=null&&As(x,ne.scrollLeft)}function Ul(x,z){var ne=x.display,te=os(x.display);z.top<0&&(z.top=0);var ie=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ne.scroller.scrollTop,de=Ka(x),ve={};z.bottom-z.top>de&&(z.bottom=z.top+de);var Ee=x.doc.height+Po(ne),Be=z.top<te,We=z.bottom>Ee-te;if(z.top<ie)ve.scrollTop=Be?0:z.top;else if(z.bottom>ie+de){var Ct=Math.min(z.top,(We?Ee:z.bottom)-de);Ct!=ie&&(ve.scrollTop=Ct)}var zt=x.options.fixedGutter?0:ne.gutters.offsetWidth,Sn=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ne.scroller.scrollLeft-zt,yn=Xi(x)-ne.gutters.offsetWidth,Yn=z.right-z.left>yn;return Yn&&(z.right=z.left+yn),z.left<10?ve.scrollLeft=0:z.left<Sn?ve.scrollLeft=Math.max(0,z.left+zt-(Yn?0:10)):z.right>yn+Sn-3&&(ve.scrollLeft=z.right+(Yn?0:10)-yn),ve}function Bc(x,z){z!=null&&(Gl(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function $s(x){Gl(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function el(x,z,ne){(z!=null||ne!=null)&&Gl(x),z!=null&&(x.curOp.scrollLeft=z),ne!=null&&(x.curOp.scrollTop=ne)}function Fd(x,z){Gl(x),x.curOp.scrollToPos=z}function Gl(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var ne=bl(x,z.from),te=bl(x,z.to);Lu(x,ne,te,z.margin)}}function Lu(x,z,ne,te){var ie=Ul(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});el(x,ie.scrollLeft,ie.scrollTop)}function Ms(x,z){Math.abs(x.doc.scrollTop-z)<2||(oe||Ic(x,{top:z}),Du(x,z,!0),oe&&Ic(x),nl(x,100))}function Du(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 As(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,Nu(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function tl(x){var z=x.display,ne=z.gutters.offsetWidth,te=Math.round(x.doc.height+Po(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+ba(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ne}}var cs=function(x,z,ne){this.cm=ne;var te=this.vert=Je("div",[Je("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ie=this.horiz=Je("div",[Je("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ie.tabIndex=-1,x(te),x(ie),Xt(te,"scroll",function(){te.clientHeight&&z(te.scrollTop,"vertical")}),Xt(ie,"scroll",function(){ie.clientWidth&&z(ie.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,we&&Te<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};cs.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}},cs.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},cs.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},cs.prototype.zeroWidthHack=function(){var x=lt&&!Ie?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new xe,this.disableVert=new xe},cs.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)},cs.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 ks(x,z){z||(z=tl(x));var ne=x.display.barWidth,te=x.display.barHeight;Lc(x,z);for(var ie=0;ie<4&&ne!=x.display.barWidth||te!=x.display.barHeight;ie++)ne!=x.display.barWidth&&x.options.lineWrapping&&Vl(x),Lc(x,tl(x)),ne=x.display.barWidth,te=x.display.barHeight}function Lc(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 Iu={native:cs,null:So};function Pu(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&Ue(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new Iu[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),Xt(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"?As(x,z):Ms(x,z)},x),x.display.scrollbars.addClass&&Yt(x.display.wrapper,x.display.scrollbars.addClass)}var _d=0;function Bs(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:++_d},Fn(x.curOp)}function us(x){var z=x.curOp;z&&tr(z,function(ne){for(var te=0;te<ne.ops.length;te++)ne.ops[te].cm.curOp=null;zd(ne)})}function zd(x){for(var z=x.ops,ne=0;ne<z.length;ne++)Hd(z[ne]);for(var te=0;te<z.length;te++)Kd(z[te]);for(var ie=0;ie<z.length;ie++)Wd(z[ie]);for(var de=0;de<z.length;de++)jd(z[de]);for(var ve=0;ve<z.length;ve++)Zd(z[ve])}function Hd(x){var z=x.cm,ne=z.display;Ou(z),x.updateMaxLine&&ar(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 Yl(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function Kd(x){x.updatedDisplay=x.mustUpdate&&Dc(x.cm,x.update)}function Wd(x){var z=x.cm,ne=z.display;x.updatedDisplay&&Vl(z),x.barMeasure=tl(z),ne.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=Wa(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+ba(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+x.adjustWidthTo-Xi(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ne.input.prepareSelection())}function jd(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft<z.doc.scrollLeft&&As(z,Math.min(z.display.scroller.scrollLeft,x.maxScrollLeft),!0),z.display.maxLineChanged=!1);var ne=x.focus&&x.focus==nt();x.preparedSelection&&z.display.input.showSelection(x.preparedSelection,ne),(x.updatedDisplay||x.startHeight!=z.doc.height)&&ks(z,x.barMeasure),x.updatedDisplay&&Tc(z,x.barMeasure),x.selectionChanged&&Ac(z),z.state.focused&&x.updateInput&&z.display.input.reset(x.typing),ne&&Sl(x.cm)}function Zd(x){var z=x.cm,ne=z.display,te=z.doc;if(x.updatedDisplay&&Ru(z,x.update),ne.wheelStartX!=null&&(x.scrollTop!=null||x.scrollLeft!=null||x.scrollToPos)&&(ne.wheelStartX=ne.wheelStartY=null),x.scrollTop!=null&&Du(z,x.scrollTop,x.forceScroll),x.scrollLeft!=null&&As(z,x.scrollLeft,!0,!0),x.scrollToPos){var ie=Es(z,Zt(te,x.scrollToPos.from),Zt(te,x.scrollToPos.to),x.scrollToPos.margin);ls(z,ie)}var de=x.maybeHiddenMarkers,ve=x.maybeUnhiddenMarkers;if(de)for(var Ee=0;Ee<de.length;++Ee)de[Ee].lines.length||De(de[Ee],"hide");if(ve)for(var Be=0;Be<ve.length;++Be)ve[Be].lines.length&&De(ve[Be],"unhide");ne.wrapper.offsetHeight&&(te.scrollTop=z.display.scroller.scrollTop),x.changeObjs&&De(z,"changes",z,x.changeObjs),x.update&&x.update.finish()}function ma(x,z){if(x.curOp)return z();Bs(x);try{return z()}finally{us(x)}}function ka(x,z){return function(){if(x.curOp)return z.apply(x,arguments);Bs(x);try{return z.apply(x,arguments)}finally{us(x)}}}function da(x){return function(){if(this.curOp)return x.apply(this,arguments);Bs(this);try{return x.apply(this,arguments)}finally{us(this)}}}function Fa(x){return function(){var z=this.cm;if(!z||z.curOp)return x.apply(this,arguments);Bs(z);try{return x.apply(this,arguments)}finally{us(z)}}}function nl(x,z){x.doc.highlightFrontier<x.display.viewTo&&x.state.highlight.set(z,en(Tu,x))}function Tu(x){var z=x.doc;if(!(z.highlightFrontier>=x.display.viewTo)){var ne=+new Date+x.options.workTime,te=qt(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 ve=de.styles,Ee=de.text.length>x.options.maxHighlightLength?ke(z.mode,te.state):null,Be=Qt(x,de,te,!0);Ee&&(te.state=Ee),de.styles=Be.styles;var We=de.styleClasses,Ct=Be.classes;Ct?de.styleClasses=Ct:We&&(de.styleClasses=null);for(var zt=!ve||ve.length!=de.styles.length||We!=Ct&&(!We||!Ct||We.bgClass!=Ct.bgClass||We.textClass!=Ct.textClass),Sn=0;!zt&&Sn<ve.length;++Sn)zt=ve[Sn]!=de.styles[Sn];zt&&ie.push(te.line),de.stateAfter=te.save(),te.nextLine()}else de.text.length<=x.options.maxHighlightLength&&$t(x,de.text,te),de.stateAfter=te.line%5==0?te.save():null,te.nextLine();if(+new Date>ne)return nl(x,x.options.workDelay),!0}),z.highlightFrontier=te.line,z.modeFrontier=Math.max(z.modeFrontier,te.line),ie.length&&ma(x,function(){for(var de=0;de<ie.length;de++)Oo(x,ie[de],"text")})}}var Yl=function(x,z,ne){var te=x.display;this.viewport=z,this.visible=Na(te,x.doc,z),this.editorIsHidden=!te.wrapper.offsetWidth,this.wrapperHeight=te.wrapper.clientHeight,this.wrapperWidth=te.wrapper.clientWidth,this.oldDisplayWidth=Xi(x),this.force=ne,this.dims=Zi(x),this.events=[]};Yl.prototype.signal=function(x,z){Gt(x,z)&&this.events.push(arguments)},Yl.prototype.finish=function(){for(var x=0;x<this.events.length;x++)De.apply(null,this.events[x])};function Ou(x){var z=x.display;!z.scrollbarsClipped&&z.scroller.offsetWidth&&(z.nativeBarWidth=z.scroller.offsetWidth-z.scroller.clientWidth,z.heightForcer.style.height=ba(x)+"px",z.sizer.style.marginBottom=-z.nativeBarWidth+"px",z.sizer.style.borderRightWidth=ba(x)+"px",z.scrollbarsClipped=!0)}function Vd(x){if(x.hasFocus())return null;var z=nt();if(!z||!Tt(x.display.lineDiv,z))return null;var ne={activeElt:z};if(window.getSelection){var te=window.getSelection();te.anchorNode&&te.extend&&Tt(x.display.lineDiv,te.anchorNode)&&(ne.anchorNode=te.anchorNode,ne.anchorOffset=te.anchorOffset,ne.focusNode=te.focusNode,ne.focusOffset=te.focusOffset)}return ne}function Ud(x){if(!(!x||!x.activeElt||x.activeElt==nt())&&(x.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(x.activeElt.nodeName)&&x.anchorNode&&Tt(document.body,x.anchorNode)&&Tt(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 Dc(x,z){var ne=x.display,te=x.doc;if(z.editorIsHidden)return Ro(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&&jl(x)==0)return!1;Xl(x)&&(Ro(x),z.dims=Zi(x));var ie=te.first+te.size,de=Math.max(z.visible.from-x.options.viewportMargin,te.first),ve=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>ve&&ne.viewTo-ve<20&&(ve=Math.min(ie,ne.viewTo)),pr&&(de=vi(x.doc,de),ve=ci(x.doc,ve));var Ee=de!=ne.viewFrom||ve!=ne.viewTo||ne.lastWrapHeight!=z.wrapperHeight||ne.lastWrapWidth!=z.wrapperWidth;ss(x,de,ve),ne.viewOffset=dr(it(x.doc,ne.viewFrom)),x.display.mover.style.top=ne.viewOffset+"px";var Be=jl(x);if(!Ee&&Be==0&&!z.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var We=Vd(x);return Be>4&&(ne.lineDiv.style.display="none"),Gd(x,ne.updateLineNumbers,z.dims),Be>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,Ud(We),tt(ne.cursorDiv),tt(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,Ee&&(ne.lastWrapHeight=z.wrapperHeight,ne.lastWrapWidth=z.wrapperWidth,nl(x,400)),ne.updateLineNumbers=null,!0}function Ru(x,z){for(var ne=z.viewport,te=!0;;te=!1){if(!te||!x.options.lineWrapping||z.oldDisplayWidth==Xi(x)){if(ne&&ne.top!=null&&(ne={top:Math.min(x.doc.height+Po(x.display)-Ka(x),ne.top)}),z.visible=Na(x.display,x.doc,ne),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else te&&(z.visible=Na(x.display,x.doc,ne));if(!Dc(x,z))break;Vl(x);var ie=tl(x);wl(x),ks(x,ie),Tc(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 Ic(x,z){var ne=new Yl(x,z);if(Dc(x,ne)){Vl(x),Ru(x,ne);var te=tl(x);wl(x),ks(x,te),Tc(x,te),ne.finish()}}function Gd(x,z,ne){var te=x.display,ie=x.options.lineNumbers,de=te.lineDiv,ve=de.firstChild;function Ee(Yn){var lr=Yn.nextSibling;return Fe&<&&x.display.currentWheelTarget==Yn?Yn.style.display="none":Yn.parentNode.removeChild(Yn),lr}for(var Be=te.view,We=te.viewFrom,Ct=0;Ct<Be.length;Ct++){var zt=Be[Ct];if(!zt.hidden)if(!zt.node||zt.node.parentNode!=de){var Sn=bi(x,zt,We,ne);de.insertBefore(Sn,ve)}else{for(;ve!=zt.node;)ve=Ee(ve);var yn=ie&&z!=null&&z<=We&&zt.lineNumber;zt.changes&&(Xe(zt.changes,"gutter")>-1&&(yn=!1),Rr(x,zt,We,ne)),yn&&(tt(zt.lineNumber),zt.lineNumber.appendChild(document.createTextNode(An(x.options,We)))),ve=zt.node.nextSibling}We+=zt.size}for(;ve;)ve=Ee(ve)}function Pc(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function Tc(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+ba(x)+"px"}function Nu(x){var z=x.display,ne=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var te=Ji(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ie=z.gutters.offsetWidth,de=te+"px",ve=0;ve<ne.length;ve++)if(!ne[ve].hidden){x.options.fixedGutter&&(ne[ve].gutter&&(ne[ve].gutter.style.left=de),ne[ve].gutterBackground&&(ne[ve].gutterBackground.style.left=de));var Ee=ne[ve].alignable;if(Ee)for(var Be=0;Be<Ee.length;Be++)Ee[Be].style.left=de}x.options.fixedGutter&&(z.gutters.style.left=te+ie+"px")}}function Xl(x){if(!x.options.lineNumbers)return!1;var z=x.doc,ne=An(x.options,z.first+z.size-1),te=x.display;if(ne.length!=te.lineNumChars){var ie=te.measure.appendChild(Je("div",[Je("div",ne)],"CodeMirror-linenumber CodeMirror-gutter-elt")),de=ie.firstChild.offsetWidth,ve=ie.offsetWidth-de;return te.lineGutter.style.width="",te.lineNumInnerWidth=Math.max(de,te.lineGutter.offsetWidth-ve)+1,te.lineNumWidth=te.lineNumInnerWidth+ve,te.lineNumChars=te.lineNumInnerWidth?ne.length:-1,te.lineGutter.style.width=te.lineNumWidth+"px",Pc(x.display),!0}return!1}function Oc(x,z){for(var ne=[],te=!1,ie=0;ie<x.length;ie++){var de=x[ie],ve=null;if(typeof de!="string"&&(ve=de.style,de=de.className),de=="CodeMirror-linenumbers")if(z)te=!0;else continue;ne.push({className:de,style:ve})}return z&&!te&&ne.push({className:"CodeMirror-linenumbers",style:null}),ne}function Fu(x){var z=x.gutters,ne=x.gutterSpecs;tt(z),x.lineGutter=null;for(var te=0;te<ne.length;++te){var ie=ne[te],de=ie.className,ve=ie.style,Ee=z.appendChild(Je("div",null,"CodeMirror-gutter "+de));ve&&(Ee.style.cssText=ve),de=="CodeMirror-linenumbers"&&(x.lineGutter=Ee,Ee.style.width=(x.lineNumWidth||1)+"px")}z.style.display=ne.length?"":"none",Pc(x)}function Cl(x){Fu(x.display),Ya(x),Nu(x)}function Yd(x,z,ne,te){var ie=this;this.input=ne,ie.scrollbarFiller=Je("div",null,"CodeMirror-scrollbar-filler"),ie.scrollbarFiller.setAttribute("cm-not-content","true"),ie.gutterFiller=Je("div",null,"CodeMirror-gutter-filler"),ie.gutterFiller.setAttribute("cm-not-content","true"),ie.lineDiv=kt("div",null,"CodeMirror-code"),ie.selectionDiv=Je("div",null,null,"position: relative; z-index: 1"),ie.cursorDiv=Je("div",null,"CodeMirror-cursors"),ie.measure=Je("div",null,"CodeMirror-measure"),ie.lineMeasure=Je("div",null,"CodeMirror-measure"),ie.lineSpace=kt("div",[ie.measure,ie.lineMeasure,ie.selectionDiv,ie.cursorDiv,ie.lineDiv],null,"position: relative; outline: none");var de=kt("div",[ie.lineSpace],"CodeMirror-lines");ie.mover=Je("div",[de],null,"position: relative"),ie.sizer=Je("div",[ie.mover],"CodeMirror-sizer"),ie.sizerWidth=null,ie.heightForcer=Je("div",null,null,"position: absolute; height: "+_t+"px; width: 1px;"),ie.gutters=Je("div",null,"CodeMirror-gutters"),ie.lineGutter=null,ie.scroller=Je("div",[ie.sizer,ie.heightForcer,ie.gutters],"CodeMirror-scroll"),ie.scroller.setAttribute("tabIndex","-1"),ie.wrapper=Je("div",[ie.scrollbarFiller,ie.gutterFiller,ie.scroller],"CodeMirror"),we&&Te<8&&(ie.gutters.style.zIndex=-1,ie.scroller.style.paddingRight=0),!Fe&&!(oe&&yt)&&(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=Oc(te.gutters,te.lineNumbers),Fu(ie),ne.init(ie)}var Ql=0,Xa=null;we?Xa=-.53:oe?Xa=15:Ce?Xa=-.7:ft&&(Xa=-1/3);function rl(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 _u(x){var z=rl(x);return z.x*=Xa,z.y*=Xa,z}function zu(x,z){var ne=rl(z),te=ne.x,ie=ne.y,de=x.display,ve=de.scroller,Ee=ve.scrollWidth>ve.clientWidth,Be=ve.scrollHeight>ve.clientHeight;if(te&&Ee||ie&&Be){if(ie&<&&Fe){e:for(var We=z.target,Ct=de.view;We!=ve;We=We.parentNode)for(var zt=0;zt<Ct.length;zt++)if(Ct[zt].node==We){x.display.currentWheelTarget=We;break e}}if(te&&!oe&&!_e&&Xa!=null){ie&&Be&&Ms(x,Math.max(0,ve.scrollTop+ie*Xa)),As(x,Math.max(0,ve.scrollLeft+te*Xa)),(!ie||ie&&Be)&&Mn(z),de.wheelStartX=null;return}if(ie&&Xa!=null){var Sn=ie*Xa,yn=x.doc.scrollTop,Yn=yn+de.wrapper.clientHeight;Sn<0?yn=Math.max(0,yn+Sn-50):Yn=Math.min(x.doc.height,Yn+Sn+50),Ic(x,{top:yn,bottom:Yn})}Ql<20&&(de.wheelStartX==null?(de.wheelStartX=ve.scrollLeft,de.wheelStartY=ve.scrollTop,de.wheelDX=te,de.wheelDY=ie,setTimeout(function(){if(de.wheelStartX!=null){var lr=ve.scrollLeft-de.wheelStartX,Nr=ve.scrollTop-de.wheelStartY,Xr=Nr&&de.wheelDY&&Nr/de.wheelDY||lr&&de.wheelDX&&lr/de.wheelDX;de.wheelStartX=de.wheelStartY=null,Xr&&(Xa=(Xa*Ql+Xr)/(Ql+1),++Ql)}},200)):(de.wheelDX+=te,de.wheelDY+=ie))}}var Co=function(x,z){this.ranges=x,this.primIndex=z};Co.prototype.primary=function(){return this.ranges[this.primIndex]},Co.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(!pt(ne.anchor,te.anchor)||!pt(ne.head,te.head))return!1}return!0},Co.prototype.deepCopy=function(){for(var x=[],z=0;z<this.ranges.length;z++)x[z]=new Yi(It(this.ranges[z].anchor),It(this.ranges[z].head));return new Co(x,this.primIndex)},Co.prototype.somethingSelected=function(){for(var x=0;x<this.ranges.length;x++)if(!this.ranges[x].empty())return!0;return!1},Co.prototype.contains=function(x,z){z||(z=x);for(var ne=0;ne<this.ranges.length;ne++){var te=this.ranges[ne];if(bn(z,te.from())>=0&&bn(x,te.to())<=0)return ne}return-1};var Yi=function(x,z){this.anchor=x,this.head=z};Yi.prototype.from=function(){return Nt(this.anchor,this.head)},Yi.prototype.to=function(){return Kt(this.anchor,this.head)},Yi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function No(x,z,ne){var te=x&&x.options.selectionsMayTouch,ie=z[ne];z.sort(function(Sn,yn){return bn(Sn.from(),yn.from())}),ne=Xe(z,ie);for(var de=1;de<z.length;de++){var ve=z[de],Ee=z[de-1],Be=bn(Ee.to(),ve.from());if(te&&!ve.empty()?Be>0:Be>=0){var We=Nt(Ee.from(),ve.from()),Ct=Kt(Ee.to(),ve.to()),zt=Ee.empty()?ve.from()==ve.head:Ee.from()==Ee.head;de<=ne&&--ne,z.splice(--de,2,new Yi(zt?Ct:We,zt?We:Ct))}}return new Co(z,ne)}function Ko(x,z){return new Co([new Yi(x,z||x)],0)}function ds(x){return x.text?Wt(x.from.line+x.text.length-1,nn(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function Hu(x,z){if(bn(x,z.from)<0)return x;if(bn(x,z.to)<=0)return ds(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+=ds(z).ch-z.to.ch),Wt(ne,te)}function Rc(x,z){for(var ne=[],te=0;te<x.sel.ranges.length;te++){var ie=x.sel.ranges[te];ne.push(new Yi(Hu(ie.anchor,z),Hu(ie.head,z)))}return No(x.cm,ne,x.sel.primIndex)}function il(x,z,ne){return x.line==z.line?Wt(ne.line,x.ch-z.ch+ne.ch):Wt(ne.line+(x.line-z.line),x.ch)}function Nc(x,z,ne){for(var te=[],ie=Wt(x.first,0),de=ie,ve=0;ve<z.length;ve++){var Ee=z[ve],Be=il(Ee.from,ie,de),We=il(ds(Ee),ie,de);if(ie=Ee.to,de=We,ne=="around"){var Ct=x.sel.ranges[ve],zt=bn(Ct.head,Ct.anchor)<0;te[ve]=new Yi(zt?We:Be,zt?Be:We)}else te[ve]=new Yi(Be,Be)}return new Co(te,x.sel.primIndex)}function Fc(x){x.doc.mode=Gn(x.options,x.doc.modeOption),al(x)}function al(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,nl(x,100),x.state.modeGen++,x.curOp&&Ya(x)}function Ku(x,z){return z.from.ch==0&&z.to.ch==0&&nn(z.text)==""&&(!x.cm||x.cm.options.wholeLineUpdateBefore)}function _c(x,z,ne,te){function ie(ei){return ne?ne[ei]:null}function de(ei,Zr,ni){gi(ei,Zr,ni,te),jn(ei,"change",ei,z)}function ve(ei,Zr){for(var ni=[],hi=ei;hi<Zr;++hi)ni.push(new Br(We[hi],ie(hi),te));return ni}var Ee=z.from,Be=z.to,We=z.text,Ct=it(x,Ee.line),zt=it(x,Be.line),Sn=nn(We),yn=ie(We.length-1),Yn=Be.line-Ee.line;if(z.full)x.insert(0,ve(0,We.length)),x.remove(We.length,x.size-We.length);else if(Ku(x,z)){var lr=ve(0,We.length-1);de(zt,zt.text,yn),Yn&&x.remove(Ee.line,Yn),lr.length&&x.insert(Ee.line,lr)}else if(Ct==zt)if(We.length==1)de(Ct,Ct.text.slice(0,Ee.ch)+Sn+Ct.text.slice(Be.ch),yn);else{var Nr=ve(1,We.length-1);Nr.push(new Br(Sn+Ct.text.slice(Be.ch),yn,te)),de(Ct,Ct.text.slice(0,Ee.ch)+We[0],ie(0)),x.insert(Ee.line+1,Nr)}else if(We.length==1)de(Ct,Ct.text.slice(0,Ee.ch)+We[0]+zt.text.slice(Be.ch),ie(0)),x.remove(Ee.line+1,Yn);else{de(Ct,Ct.text.slice(0,Ee.ch)+We[0],ie(0)),de(zt,Sn+zt.text.slice(Be.ch),yn);var Xr=ve(1,We.length-1);Yn>1&&x.remove(Ee.line+1,Yn-1),x.insert(Ee.line+1,Xr)}jn(x,"change",x,z)}function hs(x,z,ne){function te(ie,de,ve){if(ie.linked)for(var Ee=0;Ee<ie.linked.length;++Ee){var Be=ie.linked[Ee];if(Be.doc!=de){var We=ve&&Be.sharedHist;ne&&!We||(z(Be.doc,We),te(Be.doc,ie,We))}}}te(x,null,!0)}function Jl(x,z){if(z.cm)throw new Error("This document is already in use.");x.doc=z,z.cm=x,Ra(x),Fc(x),ql(x),x.options.lineWrapping||ar(x),x.options.mode=z.modeOption,Ya(x)}function ql(x){(x.doc.direction=="rtl"?Yt:Ue)(x.display.lineDiv,"CodeMirror-rtl")}function zc(x){ma(x,function(){ql(x),Ya(x)})}function $l(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 Hc(x,z){var ne={from:It(z.from),to:ds(z),text:vt(x,z.from,z.to)};return Zc(x,ne,z.from.line,z.to.line+1),hs(x,function(te){return Zc(te,ne,z.from.line,z.to.line+1)},!0),ne}function Wu(x){for(;x.length;){var z=nn(x);if(z.ranges)x.pop();else break}}function Kc(x,z){if(z)return Wu(x.done),nn(x.done);if(x.done.length&&!nn(x.done).ranges)return nn(x.done);if(x.done.length>1&&!x.done[x.done.length-2].ranges)return x.done.pop(),nn(x.done)}function ec(x,z,ne,te){var ie=x.history;ie.undone.length=0;var de=+new Date,ve,Ee;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)=="*"))&&(ve=Kc(ie,ie.lastOp==te)))Ee=nn(ve.changes),bn(z.from,z.to)==0&&bn(z.from,Ee.to)==0?Ee.to=ds(z):ve.changes.push(Hc(x,z));else{var Be=nn(ie.done);for((!Be||!Be.ranges)&&tc(x.sel,ie.done),ve={changes:[Hc(x,z)],generation:ie.generation},ie.done.push(ve);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,Ee||De(x,"historyAdded")}function Wc(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 jc(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||Wc(x,de,nn(ie.done),z))?ie.done[ie.done.length-1]=z:tc(z,ie.done),ie.lastSelTime=+new Date,ie.lastSelOrigin=de,ie.lastSelOp=ne,te&&te.clearRedo!==!1&&Wu(ie.undone)}function tc(x,z){var ne=nn(z);ne&&ne.ranges&&ne.equals(x)||z.push(x)}function Zc(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(ve){ve.markedSpans&&((ie||(ie=z["spans_"+x.id]={}))[de]=ve.markedSpans),++de})}function Vc(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(Vc(ne[ie]));return te}function ju(x,z){var ne=Xd(x,z),te=Nn(x,z);if(!ne)return te;if(!te)return ne;for(var ie=0;ie<ne.length;++ie){var de=ne[ie],ve=te[ie];if(de&&ve)e:for(var Ee=0;Ee<ve.length;++Ee){for(var Be=ve[Ee],We=0;We<de.length;++We)if(de[We].marker==Be.marker)continue e;de.push(Be)}else ve&&(ne[ie]=ve)}return ne}function ol(x,z,ne){for(var te=[],ie=0;ie<x.length;++ie){var de=x[ie];if(de.ranges){te.push(ne?Co.prototype.deepCopy.call(de):de);continue}var ve=de.changes,Ee=[];te.push({changes:Ee});for(var Be=0;Be<ve.length;++Be){var We=ve[Be],Ct=void 0;if(Ee.push({from:We.from,to:We.to,text:We.text}),z)for(var zt in We)(Ct=zt.match(/^spans_(\d+)$/))&&Xe(z,Number(Ct[1]))>-1&&(nn(Ee)[zt]=We[zt],delete We[zt])}}return te}function Uc(x,z,ne,te){if(te){var ie=x.anchor;if(ne){var de=bn(z,ie)<0;de!=bn(ne,ie)<0?(ie=z,z=ne):de!=bn(z,ne)<0&&(z=ne)}return new Yi(ie,z)}else return new Yi(ne||z,z)}function sl(x,z,ne,te,ie){ie==null&&(ie=x.cm&&(x.cm.display.shift||x.extend)),Ba(x,new Co([Uc(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]=Uc(x.sel.ranges[de],z[de],null,ie);var ve=No(x.cm,te,x.sel.primIndex);Ba(x,ve,ne)}function Bo(x,z,ne,te){var ie=x.sel.ranges.slice(0);ie[z]=ne,Ba(x,No(x.cm,ie,x.sel.primIndex),te)}function Zu(x,z,ne,te){Ba(x,Ko(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 Yi(Zt(x,ie[de].anchor),Zt(x,ie[de].head))},origin:ne&&ne.origin};return De(x,"beforeSelectionChange",x,te),x.cm&&De(x.cm,"beforeSelectionChange",x.cm,te),te.ranges!=z.ranges?No(x.cm,te.ranges,te.ranges.length-1):z}function fo(x,z,ne){var te=x.history.done,ie=nn(te);ie&&ie.ranges?(te[te.length-1]=z,nc(x,z,ne)):Ba(x,z,ne)}function Ba(x,z,ne){nc(x,z,ne),jc(x,x.sel,x.cm?x.cm.curOp.id:NaN,ne)}function nc(x,z,ne){(Gt(x,"beforeSelectionChange")||x.cm&&Gt(x.cm,"beforeSelectionChange"))&&(z=Qd(x,z,ne));var te=ne&&ne.bias||(bn(z.primary().head,x.sel.primary().head)<0?-1:1);Jd(x,ll(x,z,te,!0)),!(ne&&ne.scroll===!1)&&x.cm&&$s(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,Ot(x.cm)),jn(x,"cursorActivity",x))}function qd(x){Jd(x,ll(x,x.sel,null,!1))}function ll(x,z,ne,te){for(var ie,de=0;de<z.ranges.length;de++){var ve=z.ranges[de],Ee=z.ranges.length==x.sel.ranges.length&&x.sel.ranges[de],Be=Gc(x,ve.anchor,Ee&&Ee.anchor,ne,te),We=Gc(x,ve.head,Ee&&Ee.head,ne,te);(ie||Be!=ve.anchor||We!=ve.head)&&(ie||(ie=z.ranges.slice(0,de)),ie[de]=new Yi(Be,We))}return ie?No(x.cm,ie,z.primIndex):z}function po(x,z,ne,te,ie){var de=it(x,z.line);if(de.markedSpans)for(var ve=0;ve<de.markedSpans.length;++ve){var Ee=de.markedSpans[ve],Be=Ee.marker,We="selectLeft"in Be?!Be.selectLeft:Be.inclusiveLeft,Ct="selectRight"in Be?!Be.selectRight:Be.inclusiveRight;if((Ee.from==null||(We?Ee.from<=z.ch:Ee.from<z.ch))&&(Ee.to==null||(Ct?Ee.to>=z.ch:Ee.to>z.ch))){if(ie&&(De(Be,"beforeCursorEnter"),Be.explicitlyCleared))if(de.markedSpans){--ve;continue}else break;if(!Be.atomic)continue;if(ne){var zt=Be.find(te<0?1:-1),Sn=void 0;if((te<0?Ct:We)&&(zt=fs(x,zt,-te,zt&&zt.line==z.line?de:null)),zt&&zt.line==z.line&&(Sn=bn(zt,ne))&&(te<0?Sn<0:Sn>0))return po(x,zt,z,te,ie)}var yn=Be.find(te<0?-1:1);return(te<0?We:Ct)&&(yn=fs(x,yn,te,yn.line==z.line?de:null)),yn?po(x,yn,z,te,ie):null}}return z}function Gc(x,z,ne,te,ie){var de=te||1,ve=po(x,z,ne,de,ie)||!ie&&po(x,z,ne,de,!0)||po(x,z,ne,-de,ie)||!ie&&po(x,z,ne,-de,!0);return ve||(x.cantEdit=!0,Wt(x.first,0))}function fs(x,z,ne,te){return ne<0&&z.ch==0?z.line>x.first?Zt(x,Wt(z.line-1)):null:ne>0&&z.ch==(te||it(x,z.line)).text.length?z.line<x.first+x.size-1?Wt(z.line+1,0):null:new Wt(z.line,z.ch+ne)}function Vu(x){x.setSelection(Wt(x.firstLine(),0),Wt(x.lastLine()),Qe)}function Yc(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,ve,Ee){ie&&(te.from=Zt(x,ie)),de&&(te.to=Zt(x,de)),ve&&(te.text=ve),Ee!==void 0&&(te.origin=Ee)}),De(x,"beforeChange",x,te),x.cm&&De(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 Ls(x,z,ne){if(x.cm){if(!x.cm.curOp)return ka(x.cm,Ls)(x,z,ne);if(x.cm.state.suppressEdits)return}if(!((Gt(x,"beforeChange")||x.cm&&Gt(x.cm,"beforeChange"))&&(z=Yc(x,z,!0),!z))){var te=Ar&&!ne&&kr(x,z.from,z.to);if(te)for(var ie=te.length-1;ie>=0;--ie)Uu(x,{from:te[ie].from,to:te[ie].to,text:ie?[""]:z.text,origin:z.origin});else Uu(x,z)}}function Uu(x,z){if(!(z.text.length==1&&z.text[0]==""&&bn(z.from,z.to)==0)){var ne=Rc(x,z);ec(x,z,ne,x.cm?x.cm.curOp.id:NaN),cl(x,z,ne,Nn(x,z));var te=[];hs(x,function(ie,de){!de&&Xe(te,ie.history)==-1&&(rc(ie.history,z),te.push(ie.history)),cl(ie,z,null,Nn(ie,z))})}}function ps(x,z,ne){var te=x.cm&&x.cm.state.suppressEdits;if(!(te&&!ne)){for(var ie=x.history,de,ve=x.sel,Ee=z=="undo"?ie.done:ie.undone,Be=z=="undo"?ie.undone:ie.done,We=0;We<Ee.length&&(de=Ee[We],!(ne?de.ranges&&!de.equals(x.sel):!de.ranges));We++);if(We!=Ee.length){for(ie.lastOrigin=ie.lastSelOrigin=null;;)if(de=Ee.pop(),de.ranges){if(tc(de,Be),ne&&!de.equals(x.sel)){Ba(x,de,{clearRedo:!1});return}ve=de}else if(te){Ee.push(de);return}else break;var Ct=[];tc(ve,Be),Be.push({changes:Ct,generation:ie.generation}),ie.generation=de.generation||++ie.maxGeneration;for(var zt=Gt(x,"beforeChange")||x.cm&&Gt(x.cm,"beforeChange"),Sn=function(lr){var Nr=de.changes[lr];if(Nr.origin=z,zt&&!Yc(x,Nr,!1))return Ee.length=0,{};Ct.push(Hc(x,Nr));var Xr=lr?Rc(x,Nr):nn(Ee);cl(x,Nr,Xr,ju(x,Nr)),!lr&&x.cm&&x.cm.scrollIntoView({from:Nr.from,to:ds(Nr)});var ei=[];hs(x,function(Zr,ni){!ni&&Xe(ei,Zr.history)==-1&&(rc(Zr.history,Nr),ei.push(Zr.history)),cl(Zr,Nr,null,ju(Zr,Nr))})},yn=de.changes.length-1;yn>=0;--yn){var Yn=Sn(yn);if(Yn)return Yn.v}}}}function Xc(x,z){if(z!=0&&(x.first+=z,x.sel=new Co(Jt(x.sel.ranges,function(ie){return new Yi(Wt(ie.anchor.line+z,ie.anchor.ch),Wt(ie.head.line+z,ie.head.ch))}),x.sel.primIndex),x.cm)){Ya(x.cm,x.first,x.first-z,z);for(var ne=x.cm.display,te=ne.viewFrom;te<ne.viewTo;te++)Oo(x.cm,te,"gutter")}}function cl(x,z,ne,te){if(x.cm&&!x.cm.curOp)return ka(x.cm,cl)(x,z,ne,te);if(z.to.line<x.first){Xc(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);Xc(x,ie),z={from:Wt(x.first,0),to:Wt(z.to.line+ie,z.to.ch),text:[nn(z.text)],origin:z.origin}}var de=x.lastLine();z.to.line>de&&(z={from:z.from,to:Wt(de,it(x,de).text.length),text:[z.text[0]],origin:z.origin}),z.removed=vt(x,z.from,z.to),ne||(ne=Rc(x,z)),x.cm?$d(x.cm,z,te):_c(x,z,te),nc(x,ne,Qe),x.cantEdit&&Gc(x,Wt(x.firstLine(),0))&&(x.cantEdit=!1)}}function $d(x,z,ne){var te=x.doc,ie=x.display,de=z.from,ve=z.to,Ee=!1,Be=de.line;x.options.lineWrapping||(Be=on(qr(it(te,de.line))),te.iter(Be,ve.line+1,function(yn){if(yn==ie.maxLine)return Ee=!0,!0})),te.sel.contains(z.from,z.to)>-1&&Ot(x),_c(te,z,ne,ro(x)),x.options.lineWrapping||(te.iter(Be,de.line+z.text.length,function(yn){var Yn=sr(yn);Yn>ie.maxLineLength&&(ie.maxLine=yn,ie.maxLineLength=Yn,ie.maxLineChanged=!0,Ee=!1)}),Ee&&(x.curOp.updateMaxLine=!0)),Zn(te,de.line),nl(x,400);var We=z.text.length-(ve.line-de.line)-1;z.full?Ya(x):de.line==ve.line&&z.text.length==1&&!Ku(x.doc,z)?Oo(x,de.line,"text"):Ya(x,de.line,ve.line+1,We);var Ct=Gt(x,"changes"),zt=Gt(x,"change");if(zt||Ct){var Sn={from:de,to:ve,text:z.text,removed:z.removed,origin:z.origin};zt&&jn(x,"change",x,Sn),Ct&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(Sn)}x.display.selForContextMenu=null}function El(x,z,ne,te,ie){var de;te||(te=ne),bn(te,ne)<0&&(de=[te,ne],ne=de[0],te=de[1]),typeof z=="string"&&(z=x.splitLines(z)),Ls(x,{from:ne,to:te,text:z,origin:ie})}function eh(x,z,ne,te){ne<x.line?x.line+=te:z<x.line&&(x.line=z,x.ch=0)}function th(x,z,ne,te){for(var ie=0;ie<x.length;++ie){var de=x[ie],ve=!0;if(de.ranges){de.copied||(de=x[ie]=de.deepCopy(),de.copied=!0);for(var Ee=0;Ee<de.ranges.length;Ee++)eh(de.ranges[Ee].anchor,z,ne,te),eh(de.ranges[Ee].head,z,ne,te);continue}for(var Be=0;Be<de.changes.length;++Be){var We=de.changes[Be];if(ne<We.from.line)We.from=Wt(We.from.line+te,We.from.ch),We.to=Wt(We.to.line+te,We.to.ch);else if(z<=We.to.line){ve=!1;break}}ve||(x.splice(0,ie+1),ie=0)}}function rc(x,z){var ne=z.from.line,te=z.to.line,ie=z.text.length-(te-ne)-1;th(x.done,ne,te,ie),th(x.undone,ne,te,ie)}function ic(x,z,ne,te){var ie=z,de=z;return typeof z=="number"?de=it(x,gn(x,z)):ie=on(z),ie==null?null:(te(de,ie)&&x.cm&&Oo(x.cm,ie,ne),de)}function Ds(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}Ds.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,Di(ie),jn(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 Ml(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}Ml.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),ve=te.height;if(te.removeInner(x,de),this.height-=ve-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 Ds))){var Ee=[];this.collapse(Ee),this.children=[new Ds(Ee)],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 ve=ie.lines.length%25+25,Ee=ve;Ee<ie.lines.length;){var Be=new Ds(ie.lines.slice(Ee,Ee+=25));ie.height-=Be.height,this.children.splice(++te,0,Be),Be.parent=this}ie.lines=ie.lines.slice(0,ve),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 Ml(z);if(x.parent){x.size-=ne.size,x.height-=ne.height;var ie=Xe(x.parent.children,x);x.parent.children.splice(ie+1,0,ne)}else{var te=new Ml(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 ve=Math.min(z,de-x);if(ie.iterN(x,ve,ne))return!0;if((z-=ve)==0)break;x=0}else x-=de}}};var Al=function(x,z,ne){if(ne)for(var te in ne)ne.hasOwnProperty(te)&&(this[te]=ne[te]);this.doc=x,this.node=z};Al.prototype.clear=function(){var x=this.doc.cm,z=this.line.widgets,ne=this.line,te=on(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=Aa(this);Ft(ne,Math.max(0,ne.height-de)),x&&(ma(x,function(){nh(x,ne,-de),Oo(x,te,"widget")}),jn(x,"lineWidgetCleared",x,this,te))}},Al.prototype.changed=function(){var x=this,z=this.height,ne=this.doc.cm,te=this.line;this.height=null;var ie=Aa(this)-z;ie&&(Ai(this.doc,te)||Ft(te,te.height+ie),ne&&ma(ne,function(){ne.curOp.forceUpdate=!0,nh(ne,te,ie),jn(ne,"lineWidgetChanged",ne,x,on(te))}))},an(Al);function nh(x,z,ne){dr(z)<(x.curOp&&x.curOp.scrollTop||x.doc.scrollTop)&&Bc(x,ne)}function rh(x,z,ne,te){var ie=new Al(x,ne,te),de=x.cm;return de&&ie.noHScroll&&(de.display.alignWidgets=!0),ic(x,z,"widget",function(ve){var Ee=ve.widgets||(ve.widgets=[]);if(ie.insertAt==null?Ee.push(ie):Ee.splice(Math.min(Ee.length-1,Math.max(0,ie.insertAt)),0,ie),ie.line=ve,de&&!Ai(x,ve)){var Be=dr(ve)<x.scrollTop;Ft(ve,ve.height+Aa(ie)),Be&&Bc(de,ie.height),de.curOp.forceUpdate=!0}return!0}),de&&jn(de,"lineWidgetAdded",de,ie,typeof z=="number"?z:on(z)),ie}var ih=0,Is=function(x,z){this.lines=[],this.type=z,this.doc=x,this.id=++ih};Is.prototype.clear=function(){if(!this.explicitlyCleared){var x=this.doc.cm,z=x&&!x.curOp;if(z&&Bs(x),Gt(this,"clear")){var ne=this.find();ne&&jn(this,"clear",ne.from,ne.to)}for(var te=null,ie=null,de=0;de<this.lines.length;++de){var ve=this.lines[de],Ee=_r(ve.markedSpans,this);x&&!this.collapsed?Oo(x,on(ve),"text"):x&&(Ee.to!=null&&(ie=on(ve)),Ee.from!=null&&(te=on(ve))),ve.markedSpans=Sr(ve.markedSpans,Ee),Ee.from==null&&this.collapsed&&!Ai(this.doc,ve)&&x&&Ft(ve,os(x.display))}if(x&&this.collapsed&&!x.options.lineWrapping)for(var Be=0;Be<this.lines.length;++Be){var We=qr(this.lines[Be]),Ct=sr(We);Ct>x.display.maxLineLength&&(x.display.maxLine=We,x.display.maxLineLength=Ct,x.display.maxLineChanged=!0)}te!=null&&x&&this.collapsed&&Ya(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&&jn(x,"markerCleared",x,this,te,ie),z&&us(x),this.parent&&this.parent.clear()}},Is.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],ve=_r(de.markedSpans,this);if(ve.from!=null&&(ne=Wt(z?de:on(de),ve.from),x==-1))return ne;if(ve.to!=null&&(te=Wt(z?de:on(de),ve.to),x==1))return te}return ne&&{from:ne,to:te}},Is.prototype.changed=function(){var x=this,z=this.find(-1,!0),ne=this,te=this.doc.cm;!z||!te||ma(te,function(){var ie=z.line,de=on(z.line),ve=xa(te,de);if(ve&&(Qi(ve),te.curOp.selectionChanged=te.curOp.forceUpdate=!0),te.curOp.updateMaxLine=!0,!Ai(ne.doc,ie)&&ne.height!=null){var Ee=ne.height;ne.height=null;var Be=Aa(ne)-Ee;Be&&Ft(ie,ie.height+Be)}jn(te,"markerChanged",te,x)})},Is.prototype.attachLine=function(x){if(!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(!z.maybeHiddenMarkers||Xe(z.maybeHiddenMarkers,this)==-1)&&(z.maybeUnhiddenMarkers||(z.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(x)},Is.prototype.detachLine=function(x){if(this.lines.splice(Xe(this.lines,x),1),!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(z.maybeHiddenMarkers||(z.maybeHiddenMarkers=[])).push(this)}},an(Is);function ms(x,z,ne,te,ie){if(te&&te.shared)return sa(x,z,ne,te,ie);if(x.cm&&!x.cm.curOp)return ka(x.cm,ms)(x,z,ne,te,ie);var de=new Is(x,ie),ve=bn(z,ne);if(te&&Ht(te,de,!1),ve>0||ve==0&&de.clearWhenEmpty!==!1)return de;if(de.replacedWith&&(de.collapsed=!0,de.widgetNode=kt("span",[de.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||de.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(de.widgetNode.insertLeft=!0)),de.collapsed){if(Vr(x,z.line,z,ne,de)||z.line!=ne.line&&Vr(x,ne.line,z,ne,de))throw new Error("Inserting collapsed marker partially overlapping an existing one");ur()}de.addToHistory&&ec(x,{from:z,to:ne,origin:"markText"},x.sel,NaN);var Ee=z.line,Be=x.cm,We;if(x.iter(Ee,ne.line+1,function(zt){Be&&de.collapsed&&!Be.options.lineWrapping&&qr(zt)==Be.display.maxLine&&(We=!0),de.collapsed&&Ee!=z.line&&Ft(zt,0),Jr(zt,new or(de,Ee==z.line?z.ch:null,Ee==ne.line?ne.ch:null)),++Ee}),de.collapsed&&x.iter(z.line,ne.line+1,function(zt){Ai(x,zt)&&Ft(zt,0)}),de.clearOnEnter&&Xt(de,"beforeCursorEnter",function(){return de.clear()}),de.readOnly&&(Or(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),de.collapsed&&(de.id=++ih,de.atomic=!0),Be){if(We&&(Be.curOp.updateMaxLine=!0),de.collapsed)Ya(Be,z.line,ne.line+1);else if(de.className||de.startStyle||de.endStyle||de.css||de.attributes||de.title)for(var Ct=z.line;Ct<=ne.line;Ct++)Oo(Be,Ct,"text");de.atomic&&qd(Be.doc),jn(Be,"markerAdded",Be,de)}return de}var Ti=function(x,z){this.markers=x,this.primary=z;for(var ne=0;ne<x.length;++ne)x[ne].parent=this};Ti.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var x=0;x<this.markers.length;++x)this.markers[x].clear();jn(this,"clear")}},Ti.prototype.find=function(x,z){return this.primary.find(x,z)},an(Ti);function sa(x,z,ne,te,ie){te=Ht(te),te.shared=!1;var de=[ms(x,z,ne,te,ie)],ve=de[0],Ee=te.widgetNode;return hs(x,function(Be){Ee&&(te.widgetNode=Ee.cloneNode(!0)),de.push(ms(Be,Zt(Be,z),Zt(Be,ne),te,ie));for(var We=0;We<Be.linked.length;++We)if(Be.linked[We].isParent)return;ve=nn(de)}),new Ti(de,ve)}function Ps(x){return x.findMarks(Wt(x.first,0),x.clipPos(Wt(x.lastLine())),function(z){return z.parent})}function ah(x,z){for(var ne=0;ne<z.length;ne++){var te=z[ne],ie=te.find(),de=x.clipPos(ie.from),ve=x.clipPos(ie.to);if(bn(de,ve)){var Ee=ms(x,de,ve,te.primary,te.primary.type);te.markers.push(Ee),Ee.parent=te}}}function Lo(x){for(var z=function(te){var ie=x[te],de=[ie.primary.doc];hs(ie.primary.doc,function(Be){return de.push(Be)});for(var ve=0;ve<ie.markers.length;ve++){var Ee=ie.markers[ve];Xe(de,Ee.doc)==-1&&(Ee.parent=null,ie.markers.splice(ve--,1))}},ne=0;ne<x.length;ne++)z(ne)}var oh=0,Sa=function(x,z,ne,te,ie){if(!(this instanceof Sa))return new Sa(x,z,ne,te,ie);ne==null&&(ne=0),Ml.call(this,[new Ds([new Br("",null)])]),this.first=ne,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ne;var de=Wt(ne,0);this.sel=Ko(de),this.history=new $l(null),this.id=++oh,this.modeOption=z,this.lineSep=te,this.direction=ie=="rtl"?"rtl":"ltr",this.extend=!1,typeof x=="string"&&(x=this.splitLines(x)),_c(this,{from:de,to:de,text:x}),Ba(this,Ko(de),Qe)};Sa.prototype=ue(Ml.prototype,{constructor:Sa,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=Ut(this,this.first,this.first+this.size);return x===!1?z:z.join(x||this.lineSeparator())},setValue:Fa(function(x){var z=Wt(this.first,0),ne=this.first+this.size-1;Ls(this,{from:z,to:Wt(ne,it(this,ne).text.length),text:this.splitLines(x),origin:"setValue",full:!0},!0),this.cm&&el(this.cm,0,0),Ba(this,Ko(z),Qe)}),replaceRange:function(x,z,ne,te){z=Zt(this,z),ne=ne?Zt(this,ne):z,El(this,x,z,ne,te)},getRange:function(x,z,ne){var te=vt(this,Zt(this,x),Zt(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(Bn(this,x))return it(this,x)},getLineNumber:function(x){return on(x)},getLineHandleVisualStart:function(x){return typeof x=="number"&&(x=it(this,x)),qr(x)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(x){return Zt(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:Fa(function(x,z,ne){Zu(this,Zt(this,typeof x=="number"?Wt(x,z||0):x),null,ne)}),setSelection:Fa(function(x,z,ne){Zu(this,Zt(this,x),Zt(this,z||x),ne)}),extendSelection:Fa(function(x,z,ne){sl(this,Zt(this,x),z&&Zt(this,z),ne)}),extendSelections:Fa(function(x,z){ri(this,He(this,x),z)}),extendSelectionsBy:Fa(function(x,z){var ne=Jt(this.sel.ranges,x);ri(this,He(this,ne),z)}),setSelections:Fa(function(x,z,ne){if(x.length){for(var te=[],ie=0;ie<x.length;ie++)te[ie]=new Yi(Zt(this,x[ie].anchor),Zt(this,x[ie].head));z==null&&(z=Math.min(x.length-1,this.sel.primIndex)),Ba(this,No(this.cm,te,z),ne)}}),addSelection:Fa(function(x,z,ne){var te=this.sel.ranges.slice(0);te.push(new Yi(Zt(this,x),Zt(this,z||x))),Ba(this,No(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=vt(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=vt(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:Fa(function(x,z,ne){for(var te=[],ie=this.sel,de=0;de<ie.ranges.length;de++){var ve=ie.ranges[de];te[de]={from:ve.from(),to:ve.to(),text:this.splitLines(x[de]),origin:ne}}for(var Ee=z&&z!="end"&&Nc(this,te,z),Be=te.length-1;Be>=0;Be--)Ls(this,te[Be]);Ee?fo(this,Ee):this.cm&&$s(this.cm)}),undo:Fa(function(){ps(this,"undo")}),redo:Fa(function(){ps(this,"redo")}),undoSelection:Fa(function(){ps(this,"undo",!0)}),redoSelection:Fa(function(){ps(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 $l(this.history.maxGeneration),hs(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:ol(this.history.done),undone:ol(this.history.undone)}},setHistory:function(x){var z=this.history=new $l(this.history.maxGeneration);z.done=ol(x.done.slice(0),null,!0),z.undone=ol(x.undone.slice(0),null,!0)},setGutterMarker:Fa(function(x,z,ne){return ic(this,x,"gutter",function(te){var ie=te.gutterMarkers||(te.gutterMarkers={});return ie[z]=ne,!ne&&ce(ie)&&(te.gutterMarkers=null),!0})}),clearGutter:Fa(function(x){var z=this;this.iter(function(ne){ne.gutterMarkers&&ne.gutterMarkers[x]&&ic(z,ne,"gutter",function(){return ne.gutterMarkers[x]=null,ce(ne.gutterMarkers)&&(ne.gutterMarkers=null),!0})})}),lineInfo:function(x){var z;if(typeof x=="number"){if(!Bn(this,x)||(z=x,x=it(this,x),!x))return null}else if(z=on(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:Fa(function(x,z,ne){return ic(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(Me(ne).test(te[ie]))return!1;te[ie]+=" "+ne}return!0})}),removeLineClass:Fa(function(x,z,ne){return ic(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 ve=de.match(Me(ne));if(!ve)return!1;var Ee=ve.index+ve[0].length;te[ie]=de.slice(0,ve.index)+(!ve.index||Ee==de.length?"":" ")+de.slice(Ee)||null}else return!1;return!0})}),addLineWidget:Fa(function(x,z,ne){return rh(this,x,z,ne)}),removeLineWidget:function(x){x.clear()},markText:function(x,z,ne){return ms(this,Zt(this,x),Zt(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=Zt(this,x),ms(this,x,x,ne,"bookmark")},findMarksAt:function(x){x=Zt(this,x);var z=[],ne=it(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=Zt(this,x),z=Zt(this,z);var te=[],ie=x.line;return this.iter(x.line,z.line+1,function(de){var ve=de.markedSpans;if(ve)for(var Ee=0;Ee<ve.length;Ee++){var Be=ve[Ee];!(Be.to!=null&&ie==x.line&&x.ch>=Be.to||Be.from==null&&ie!=x.line||Be.from!=null&&ie==z.line&&Be.from>=z.ch)&&(!ne||ne(Be.marker))&&te.push(Be.marker.parent||Be.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}),Zt(this,Wt(ne,z))},indexFromPos:function(x){x=Zt(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 Sa(Ut(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 Sa(Ut(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}],ah(te,Ps(this)),te},unlinkDoc:function(x){if(x instanceof Ci&&(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),Lo(Ps(this));break}}if(x.history==this.history){var te=[x.id];hs(x,function(ie){return te.push(ie.id)},!0),x.history=new $l(null),x.history.done=ol(this.history.done,te),x.history.undone=ol(this.history.undone,te)}},iterLinkedDocs:function(x){hs(this,x)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(x){return this.lineSep?x.split(this.lineSep):Fr(x)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Fa(function(x){x!="rtl"&&(x="ltr"),x!=this.direction&&(this.direction=x,this.iter(function(z){return z.order=null}),this.cm&&zc(this.cm))})}),Sa.prototype.eachLine=Sa.prototype.iter;var Gu=0;function $h(x){var z=this;if(kl(z),!(qe(z,x)||Ha(z.display,x))){Mn(x),we&&(Gu=+new Date);var ne=Ao(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),ve=0,Ee=function(){++ve==ie&&ka(z,function(){ne=Zt(z.doc,ne);var yn={from:ne,to:ne,text:z.doc.splitLines(de.filter(function(Yn){return Yn!=null}).join(z.doc.lineSeparator())),origin:"paste"};Ls(z.doc,yn),fo(z.doc,Ko(Zt(z.doc,ne),Zt(z.doc,ds(yn))))})()},Be=function(yn,Yn){if(z.options.allowDropFileTypes&&Xe(z.options.allowDropFileTypes,yn.type)==-1){Ee();return}var lr=new FileReader;lr.onerror=function(){return Ee()},lr.onload=function(){var Nr=lr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Nr)){Ee();return}de[Yn]=Nr,Ee()},lr.readAsText(yn)},We=0;We<te.length;We++)Be(te[We],We);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 Ct=x.dataTransfer.getData("Text");if(Ct){var zt;if(z.state.draggingText&&!z.state.draggingText.copy&&(zt=z.listSelections()),nc(z.doc,Ko(ne,ne)),zt)for(var Sn=0;Sn<zt.length;++Sn)El(z.doc,"",zt[Sn].anchor,zt[Sn].head,"drag");z.replaceSelection(Ct,"around","paste"),z.display.input.focus()}}catch(yn){}}}}function ef(x,z){if(we&&(!x.state.draggingText||+new Date-Gu<100)){Un(z);return}if(!(qe(x,z)||Ha(x.display,z))&&(z.dataTransfer.setData("Text",x.getSelection()),z.dataTransfer.effectAllowed="copyMove",z.dataTransfer.setDragImage&&!ft)){var ne=Je("img",null,null,"position: fixed; left: 0; top: 0;");ne.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",_e&&(ne.width=ne.height=1,x.display.wrapper.appendChild(ne),ne._top=ne.offsetTop),z.dataTransfer.setDragImage(ne,0,0),_e&&ne.parentNode.removeChild(ne)}}function Yu(x,z){var ne=Ao(x,z);if(ne){var te=document.createDocumentFragment();Au(x,ne,te),x.display.dragCursor||(x.display.dragCursor=Je("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv)),mt(x.display.dragCursor,te)}}function kl(x){x.display.dragCursor&&(x.display.lineSpace.removeChild(x.display.dragCursor),x.display.dragCursor=null)}function Bl(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 Mr=!1;function Xu(){Mr||(Qc(),Mr=!0)}function Qc(){var x;Xt(window,"resize",function(){x==null&&(x=setTimeout(function(){x=null,Bl(Jc)},100))}),Xt(window,"blur",function(){return Bl(qs)})}function Jc(x){var z=x.display;z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.scrollbarsClipped=!1,x.setSize()}for(var Wo={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"},ac=0;ac<10;ac++)Wo[ac+48]=Wo[ac+96]=String(ac);for(var qc=65;qc<=90;qc++)Wo[qc]=String.fromCharCode(qc);for(var oc=1;oc<=12;oc++)Wo[oc+111]=Wo[oc+63235]="F"+oc;var ta={};ta.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"},ta.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"},ta.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"},ta.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"]},ta.default=lt?ta.macDefault:ta.pcDefault;function tf(x){var z=x.split(/-(?!$)/);x=z[z.length-1];for(var ne,te,ie,de,ve=0;ve<z.length-1;ve++){var Ee=z[ve];if(/^(cmd|meta|m)$/i.test(Ee))de=!0;else if(/^a(lt)?$/i.test(Ee))ne=!0;else if(/^(c|ctrl|control)$/i.test(Ee))te=!0;else if(/^s(hift)?$/i.test(Ee))ie=!0;else throw new Error("Unrecognized modifier name: "+Ee)}return ne&&(x="Alt-"+x),te&&(x="Ctrl-"+x),de&&(x="Cmd-"+x),ie&&(x="Shift-"+x),x}function Qu(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=Jt(ne.split(" "),tf),de=0;de<ie.length;de++){var ve=void 0,Ee=void 0;de==ie.length-1?(Ee=ie.join(" "),ve=te):(Ee=ie.slice(0,de+1).join(" "),ve="...");var Be=z[Ee];if(!Be)z[Ee]=ve;else if(Be!=ve)throw new Error("Inconsistent bindings for "+Ee)}delete x[ne]}for(var We in z)x[We]=z[We];return x}function gs(x,z,ne,te){z=mo(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 gs(x,z.fallthrough,ne,te);for(var de=0;de<z.fallthrough.length;de++){var ve=gs(x,z.fallthrough[de],ne,te);if(ve)return ve}}}function sc(x){var z=typeof x=="string"?x:Wo[x.keyCode];return z=="Ctrl"||z=="Alt"||z=="Shift"||z=="Mod"}function Ts(x,z,ne){var te=x;return z.altKey&&te!="Alt"&&(x="Alt-"+x),(gt?z.metaKey:z.ctrlKey)&&te!="Ctrl"&&(x="Ctrl-"+x),(gt?z.ctrlKey:z.metaKey)&&te!="Mod"&&(x="Cmd-"+x),!ne&&z.shiftKey&&te!="Shift"&&(x="Shift-"+x),x}function ul(x,z){if(_e&&x.keyCode==34&&x.char)return!1;var ne=Wo[x.keyCode];return ne==null||x.altGraphKey?!1:(x.keyCode==3&&x.code&&(ne=x.code),Ts(ne,x,z))}function mo(x){return typeof x=="string"?ta[x]:x}function Fo(x,z){for(var ne=x.doc.sel.ranges,te=[],ie=0;ie<ne.length;ie++){for(var de=z(ne[ie]);te.length&&bn(de.from,nn(te).to)<=0;){var ve=te.pop();if(bn(ve.from,de.from)<0){de.from=ve.from;break}}te.push(de)}ma(x,function(){for(var Ee=te.length-1;Ee>=0;Ee--)El(x.doc,"",te[Ee].from,te[Ee].to,"+delete");$s(x)})}function Qa(x,z,ne){var te=Le(x.text,z+ne,ne);return te<0||te>x.text.length?null:te}function Jo(x,z,ne){var te=Qa(x,z.ch,ne);return te==null?null:new Wt(z.line,te,ne<0?"after":"before")}function dl(x,z,ne,te,ie){if(x){z.doc.direction=="rtl"&&(ie=-ie);var de=hn(ne,z.doc.direction);if(de){var ve=ie<0?nn(de):de[0],Ee=ie<0==(ve.level==1),Be=Ee?"after":"before",We;if(ve.level>0||z.doc.direction=="rtl"){var Ct=wa(z,ne);We=ie<0?ne.text.length-1:0;var zt=Ki(z,Ct,We).top;We=Ke(function(Sn){return Ki(z,Ct,Sn).top==zt},ie<0==(ve.level==1)?ve.from:ve.to-1,We),Be=="before"&&(We=Qa(ne,We,1))}else We=ie<0?ve.to:ve.from;return new Wt(te,We,Be)}}return new Wt(te,ie<0?ne.text.length:0,ie<0?"before":"after")}function qo(x,z,ne,te){var ie=hn(z,x.doc.direction);if(!ie)return Jo(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=Ye(ie,ne.ch,ne.sticky),ve=ie[de];if(x.doc.direction=="ltr"&&ve.level%2==0&&(te>0?ve.to>ne.ch:ve.from<ne.ch))return Jo(z,ne,te);var Ee=function(Xr,ei){return Qa(z,Xr instanceof Wt?Xr.ch:Xr,ei)},Be,We=function(Xr){return x.options.lineWrapping?(Be=Be||wa(x,z),Wl(x,z,Be,Xr)):{begin:0,end:z.text.length}},Ct=We(ne.sticky=="before"?Ee(ne,-1):ne.ch);if(x.doc.direction=="rtl"||ve.level==1){var zt=ve.level==1==te<0,Sn=Ee(ne,zt?1:-1);if(Sn!=null&&(zt?Sn<=ve.to&&Sn<=Ct.end:Sn>=ve.from&&Sn>=Ct.begin)){var yn=zt?"before":"after";return new Wt(ne.line,Sn,yn)}}var Yn=function(Xr,ei,Zr){for(var ni=function(ra,Va){return Va?new Wt(ne.line,Ee(ra,1),"before"):new Wt(ne.line,ra,"after")};Xr>=0&&Xr<ie.length;Xr+=ei){var hi=ie[Xr],mi=ei>0==(hi.level!=1),Oi=mi?Zr.begin:Ee(Zr.end,-1);if(hi.from<=Oi&&Oi<hi.to||(Oi=mi?hi.from:Ee(hi.to,-1),Zr.begin<=Oi&&Oi<Zr.end))return ni(Oi,mi)}},lr=Yn(de+te,te,Ct);if(lr)return lr;var Nr=te>0?Ct.end:Ee(Ct.begin,-1);return Nr!=null&&!(te>0&&Nr==z.text.length)&&(lr=Yn(te>0?0:ie.length-1,te,We(Nr)),lr)?lr:null}var Ll={selectAll:Vu,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),Qe)},killLine:function(x){return Fo(x,function(z){if(z.empty()){var ne=it(x.doc,z.head.line).text.length;return z.head.ch==ne&&z.head.line<x.lastLine()?{from:z.head,to:Wt(z.head.line+1,0)}:{from:z.head,to:Wt(z.head.line,ne)}}else return{from:z.from(),to:z.to()}})},deleteLine:function(x){return Fo(x,function(z){return{from:Wt(z.from().line,0),to:Zt(x.doc,Wt(z.to().line+1,0))}})},delLineLeft:function(x){return Fo(x,function(z){return{from:Wt(z.from().line,0),to:z.from()}})},delWrappedLineLeft:function(x){return Fo(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 Fo(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(Wt(x.firstLine(),0))},goDocEnd:function(x){return x.extendSelection(Wt(x.lastLine()))},goLineStart:function(x){return x.extendSelectionsBy(function(z){return Ju(x,z.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(x){return x.extendSelectionsBy(function(z){return sh(x,z.head)},{origin:"+move",bias:1})},goLineEnd:function(x){return x.extendSelectionsBy(function(z){return qu(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")},Mt)},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")},Mt)},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/)?sh(x,z.head):te},Mt)},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(),ve=je(x.getLine(de.line),de.ch,te);z.push(dn(te-ve%te))}x.replaceSelections(z)},defaultTab:function(x){x.somethingSelected()?x.indentSelection("add"):x.execCommand("insertTab")},transposeChars:function(x){return ma(x,function(){for(var z=x.listSelections(),ne=[],te=0;te<z.length;te++)if(z[te].empty()){var ie=z[te].head,de=it(x.doc,ie.line).text;if(de){if(ie.ch==de.length&&(ie=new Wt(ie.line,ie.ch-1)),ie.ch>0)ie=new Wt(ie.line,ie.ch+1),x.replaceRange(de.charAt(ie.ch-1)+de.charAt(ie.ch-2),Wt(ie.line,ie.ch-2),ie,"+transpose");else if(ie.line>x.doc.first){var ve=it(x.doc,ie.line-1).text;ve&&(ie=new Wt(ie.line,1),x.replaceRange(de.charAt(0)+x.doc.lineSeparator()+ve.charAt(ve.length-1),Wt(ie.line-1,ve.length-1),ie,"+transpose"))}}ne.push(new Yi(ie,ie))}x.setSelections(ne)})},newlineAndIndent:function(x){return ma(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);$s(x)})},openLine:function(x){return x.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(x){return x.toggleOverwrite()}};function Ju(x,z){var ne=it(x.doc,z),te=qr(ne);return te!=ne&&(z=on(te)),dl(!0,x,te,z,1)}function qu(x,z){var ne=it(x.doc,z),te=xi(ne);return te!=ne&&(z=on(te)),dl(!0,x,ne,z,-1)}function sh(x,z){var ne=Ju(x,z.line),te=it(x.doc,ne.line),ie=hn(te,x.doc.direction);if(!ie||ie[0].level==0){var de=Math.max(ne.ch,te.text.search(/\S/)),ve=z.line==ne.line&&z.ch<=de&&z.ch;return Wt(ne.line,ve?0:de,ne.sticky)}return ne}function La(x,z,ne){if(typeof z=="string"&&(z=Ll[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)!=St}finally{x.display.shift=te,x.state.suppressEdits=!1}return ie}function $o(x,z,ne){for(var te=0;te<x.state.keyMaps.length;te++){var ie=gs(z,x.state.keyMaps[te],ne,x);if(ie)return ie}return x.options.extraKeys&&gs(z,x.options.extraKeys,ne,x)||gs(z,x.options.keyMap,ne,x)}var nf=new xe;function Dl(x,z,ne,te){var ie=x.state.keySeq;if(ie){if(sc(z))return"handled";if(/\'$/.test(z)?x.state.keySeq=null:nf.set(50,function(){x.state.keySeq==ie&&(x.state.keySeq=null,x.display.input.reset())}),$c(x,ie+" "+z,ne,te))return!0}return $c(x,z,ne,te)}function $c(x,z,ne,te){var ie=$o(x,z,te);return ie=="multi"&&(x.state.keySeq=z),ie=="handled"&&jn(x,"keyHandled",x,z,ne),(ie=="handled"||ie=="multi")&&(Mn(ne),Ac(x)),!!ie}function _i(x,z){var ne=ul(z,!0);return ne?z.shiftKey&&!x.state.keySeq?Dl(x,"Shift-"+ne,z,function(te){return La(x,te,!0)})||Dl(x,ne,z,function(te){if(typeof te=="string"?/^go[A-Z]/.test(te):te.motion)return La(x,te)}):Dl(x,ne,z,function(te){return La(x,te)}):!1}function Il(x,z,ne){return Dl(x,"'"+ne+"'",z,function(te){return La(x,te,!0)})}var vs=null;function lc(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&(z.curOp.focus=nt(),!qe(z,x))){we&&Te<11&&x.keyCode==27&&(x.returnValue=!1);var ne=x.keyCode;z.display.shift=ne==16||x.shiftKey;var te=_i(z,x);_e&&(vs=te?ne:null,!te&&ne==88&&!Ir&&(lt?x.metaKey:x.ctrlKey)&&z.replaceSelection("",null,"cut")),oe&&!lt&&!te&&ne==46&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut"),ne==18&&!/\bCodeMirror-crosshair\b/.test(z.display.lineDiv.className)&&Vn(z)}}function Vn(x){var z=x.display.lineDiv;Yt(z,"CodeMirror-crosshair");function ne(te){(te.keyCode==18||!te.altKey)&&(Ue(z,"CodeMirror-crosshair"),et(document,"keyup",ne),et(document,"mouseover",ne))}Xt(document,"keyup",ne),Xt(document,"mouseover",ne)}function lh(x){x.keyCode==16&&(this.doc.sel.shift=!1),qe(this,x)}function ch(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&!(Ha(z.display,x)||qe(z,x)||x.ctrlKey&&!x.altKey||lt&&x.metaKey)){var ne=x.keyCode,te=x.charCode;if(_e&&ne==vs){vs=null,Mn(x);return}if(!(_e&&(!x.which||x.which<10)&&_i(z,x))){var ie=String.fromCharCode(te==null?ne:te);ie!="\b"&&(Il(z,x,ie)||z.display.input.onKeyPress(x))}}}var $u=400,ed=function(x,z,ne){this.time=x,this.pos=z,this.button=ne};ed.prototype.compare=function(x,z,ne){return this.time+$u>x&&bn(z,this.pos)==0&&ne==this.button};var ys,cc;function rf(x,z){var ne=+new Date;return cc&&cc.compare(ne,x,z)?(ys=cc=null,"triple"):ys&&ys.compare(ne,x,z)?(cc=new ed(ne,x,z),ys=null,"double"):(ys=new ed(ne,x,z),cc=null,"single")}function Ja(x){var z=this,ne=z.display;if(!(qe(z,x)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=x.shiftKey,Ha(ne,x)){Fe||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!io(z,x)){var te=Ao(z,x),ie=On(x),de=te?rf(te,ie):"single";window.focus(),ie==1&&z.state.selectingText&&z.state.selectingText(x),!(te&&Os(z,ie,te,de,x))&&(ie==1?te?tu(z,te,de,x):Wn(x)==ne.scroller&&Mn(x):ie==2?(te&&sl(z.doc,te),setTimeout(function(){return ne.input.focus()},20)):ie==3&&(Ve?z.display.input.onContextMenu(x):ku(z)))}}}function Os(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,Dl(x,Ts(de,ie),ie,function(ve){if(typeof ve=="string"&&(ve=Ll[ve]),!ve)return!1;var Ee=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),Ee=ve(x,ne)!=St}finally{x.state.suppressEdits=!1}return Ee})}function eu(x,z,ne){var te=x.getOption("configureMouse"),ie=te?te(x,z,ne):{};if(ie.unit==null){var de=ht?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=lt?ne.metaKey:ne.ctrlKey),ie.moveOnDrag==null&&(ie.moveOnDrag=!(lt?ne.altKey:ne.ctrlKey)),ie}function tu(x,z,ne,te){we?setTimeout(en(Sl,x),0):x.curOp.focus=nt();var ie=eu(x,ne,te),de=x.doc.sel,ve;x.options.dragDrop&&Hn&&!x.isReadOnly()&&ne=="single"&&(ve=de.contains(z))>-1&&(bn((ve=de.ranges[ve]).from(),z)<0||z.xRel>0)&&(bn(ve.to(),z)>0||z.xRel<0)?af(x,te,z,ie):td(x,te,z,ie)}function af(x,z,ne,te){var ie=x.display,de=!1,ve=ka(x,function(We){Fe&&(ie.scroller.draggable=!1),x.state.draggingText=!1,et(ie.wrapper.ownerDocument,"mouseup",ve),et(ie.wrapper.ownerDocument,"mousemove",Ee),et(ie.scroller,"dragstart",Be),et(ie.scroller,"drop",ve),de||(Mn(We),te.addNew||sl(x.doc,ne,null,null,te.extend),Fe&&!ft||we&&Te==9?setTimeout(function(){ie.wrapper.ownerDocument.body.focus({preventScroll:!0}),ie.input.focus()},20):ie.input.focus())}),Ee=function(We){de=de||Math.abs(z.clientX-We.clientX)+Math.abs(z.clientY-We.clientY)>=10},Be=function(){return de=!0};Fe&&(ie.scroller.draggable=!0),x.state.draggingText=ve,ve.copy=!te.moveOnDrag,ie.scroller.dragDrop&&ie.scroller.dragDrop(),Xt(ie.wrapper.ownerDocument,"mouseup",ve),Xt(ie.wrapper.ownerDocument,"mousemove",Ee),Xt(ie.scroller,"dragstart",Be),Xt(ie.scroller,"drop",ve),ku(x),setTimeout(function(){return ie.input.focus()},20)}function uh(x,z,ne){if(ne=="char")return new Yi(z,z);if(ne=="word")return x.findWordAt(z);if(ne=="line")return new Yi(Wt(z.line,0),Zt(x.doc,Wt(z.line+1,0)));var te=ne(x,z);return new Yi(te.from,te.to)}function td(x,z,ne,te){var ie=x.display,de=x.doc;Mn(z);var ve,Ee,Be=de.sel,We=Be.ranges;if(te.addNew&&!te.extend?(Ee=de.sel.contains(ne),Ee>-1?ve=We[Ee]:ve=new Yi(ne,ne)):(ve=de.sel.primary(),Ee=de.sel.primIndex),te.unit=="rectangle")te.addNew||(ve=new Yi(ne,ne)),ne=Ao(x,z,!0,!0),Ee=-1;else{var Ct=uh(x,ne,te.unit);te.extend?ve=Uc(ve,Ct.anchor,Ct.head,te.extend):ve=Ct}te.addNew?Ee==-1?(Ee=We.length,Ba(de,No(x,We.concat([ve]),Ee),{scroll:!1,origin:"*mouse"})):We.length>1&&We[Ee].empty()&&te.unit=="char"&&!te.extend?(Ba(de,No(x,We.slice(0,Ee).concat(We.slice(Ee+1)),0),{scroll:!1,origin:"*mouse"}),Be=de.sel):Bo(de,Ee,ve,$e):(Ee=0,Ba(de,new Co([ve],0),$e),Be=de.sel);var zt=ne;function Sn(Zr){if(bn(zt,Zr)!=0)if(zt=Zr,te.unit=="rectangle"){for(var ni=[],hi=x.options.tabSize,mi=je(it(de,ne.line).text,ne.ch,hi),Oi=je(it(de,Zr.line).text,Zr.ch,hi),ra=Math.min(mi,Oi),Va=Math.max(mi,Oi),ha=Math.min(ne.line,Zr.line),yo=Math.min(x.lastLine(),Math.max(ne.line,Zr.line));ha<=yo;ha++){var bo=it(de,ha).text,Da=wn(bo,ra,hi);ra==Va?ni.push(new Yi(Wt(ha,Da),Wt(ha,Da))):bo.length>Da&&ni.push(new Yi(Wt(ha,Da),Wt(ha,wn(bo,Va,hi))))}ni.length||ni.push(new Yi(ne,ne)),Ba(de,No(x,Be.ranges.slice(0,Ee).concat(ni),Ee),{origin:"*mouse",scroll:!1}),x.scrollIntoView(Zr)}else{var xo=ve,Mi=uh(x,Zr,te.unit),ga=xo.anchor,fa;bn(Mi.anchor,ga)>0?(fa=Mi.head,ga=Nt(xo.from(),Mi.anchor)):(fa=Mi.anchor,ga=Kt(xo.to(),Mi.head));var va=Be.ranges.slice(0);va[Ee]=dh(x,new Yi(Zt(de,ga),fa)),Ba(de,No(x,va,Ee),$e)}}var yn=ie.wrapper.getBoundingClientRect(),Yn=0;function lr(Zr){var ni=++Yn,hi=Ao(x,Zr,!0,te.unit=="rectangle");if(hi)if(bn(hi,zt)!=0){x.curOp.focus=nt(),Sn(hi);var mi=Na(ie,de);(hi.line>=mi.to||hi.line<mi.from)&&setTimeout(ka(x,function(){Yn==ni&&lr(Zr)}),150)}else{var Oi=Zr.clientY<yn.top?-20:Zr.clientY>yn.bottom?20:0;Oi&&setTimeout(ka(x,function(){Yn==ni&&(ie.scroller.scrollTop+=Oi,lr(Zr))}),50)}}function Nr(Zr){x.state.selectingText=!1,Yn=1/0,Zr&&(Mn(Zr),ie.input.focus()),et(ie.wrapper.ownerDocument,"mousemove",Xr),et(ie.wrapper.ownerDocument,"mouseup",ei),de.history.lastSelOrigin=null}var Xr=ka(x,function(Zr){Zr.buttons===0||!On(Zr)?Nr(Zr):lr(Zr)}),ei=ka(x,Nr);x.state.selectingText=ei,Xt(ie.wrapper.ownerDocument,"mousemove",Xr),Xt(ie.wrapper.ownerDocument,"mouseup",ei)}function dh(x,z){var ne=z.anchor,te=z.head,ie=it(x.doc,ne.line);if(bn(ne,te)==0&&ne.sticky==te.sticky)return z;var de=hn(ie);if(!de)return z;var ve=Ye(de,ne.ch,ne.sticky),Ee=de[ve];if(Ee.from!=ne.ch&&Ee.to!=ne.ch)return z;var Be=ve+(Ee.from==ne.ch==(Ee.level!=1)?0:1);if(Be==0||Be==de.length)return z;var We;if(te.line!=ne.line)We=(te.line-ne.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var Ct=Ye(de,te.ch,te.sticky),zt=Ct-ve||(te.ch-ne.ch)*(Ee.level==1?-1:1);Ct==Be-1||Ct==Be?We=zt<0:We=zt>0}var Sn=de[Be+(We?-1:0)],yn=We==(Sn.level==1),Yn=yn?Sn.from:Sn.to,lr=yn?"after":"before";return ne.ch==Yn&&ne.sticky==lr?z:new Yi(new Wt(ne.line,Yn,lr),te)}function uc(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(Sn){return!1}if(ie>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;te&&Mn(z);var ve=x.display,Ee=ve.lineDiv.getBoundingClientRect();if(de>Ee.bottom||!Gt(x,ne))return Ln(z);de-=Ee.top-ve.viewOffset;for(var Be=0;Be<x.display.gutterSpecs.length;++Be){var We=ve.gutters.childNodes[Be];if(We&&We.getBoundingClientRect().right>=ie){var Ct=Cn(x.doc,de),zt=x.display.gutterSpecs[Be];return De(x,ne,x,Ct,zt.className,z),Ln(z)}}}function io(x,z){return uc(x,z,"gutterClick",!0)}function Rs(x,z){Ha(x.display,z)||hh(x,z)||qe(x,z,"contextmenu")||Ve||x.display.input.onContextMenu(z)}function hh(x,z){return Gt(x,"gutterContextMenu")?uc(x,z,"gutterContextMenu",!1):!1}function nd(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ea(x)}var Ns={toString:function(){return"CodeMirror.Init"}},fh={},nu={};function of(x){var z=x.optionHandlers;function ne(te,ie,de,ve){x.defaults[te]=ie,de&&(z[te]=ve?function(Ee,Be,We){We!=Ns&&de(Ee,Be,We)}:de)}x.defineOption=ne,x.Init=Ns,ne("value","",function(te,ie){return te.setValue(ie)},!0),ne("mode",null,function(te,ie){te.doc.modeOption=ie,Fc(te)},!0),ne("indentUnit",2,Fc,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){al(te),ea(te),Ya(te)},!0),ne("lineSeparator",null,function(te,ie){if(te.doc.lineSep=ie,!!ie){var de=[],ve=te.doc.first;te.doc.iter(function(Be){for(var We=0;;){var Ct=Be.text.indexOf(ie,We);if(Ct==-1)break;We=Ct+ie.length,de.push(Wt(ve,Ct))}ve++});for(var Ee=de.length-1;Ee>=0;Ee--)El(te.doc,ie,de[Ee],Wt(de[Ee].line,de[Ee].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!=Ns&&te.refresh()}),ne("specialCharPlaceholder",Gi,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",yt?"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",!Vt),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){nd(te),Cl(te)},!0),ne("keyMap","default",function(te,ie,de){var ve=mo(ie),Ee=de!=Ns&&mo(de);Ee&&Ee.detach&&Ee.detach(te,ve),ve.attach&&ve.attach(te,Ee||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,ph,!0),ne("gutters",[],function(te,ie){te.display.gutterSpecs=Oc(ie,te.options.lineNumbers),Cl(te)},!0),ne("fixedGutter",!0,function(te,ie){te.display.gutters.style.left=ie?Ji(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return ks(te)},!0),ne("scrollbarStyle","native",function(te){Pu(te),ks(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=Oc(te.options.gutters,ie),Cl(te)},!0),ne("firstLineNumber",1,Cl,!0),ne("lineNumberFormatter",function(te){return te},Cl,!0),ne("showCursorWhenSelecting",!1,wl,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ie){ie=="nocursor"&&(qs(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,sf),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,wl,!0),ne("singleCursorHeightPerLine",!0,wl,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,al,!0),ne("addModeClass",!1,al,!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,al,!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 sf(x,z,ne){var te=ne&&ne!=Ns;if(!z!=!te){var ie=x.display.dragFunctions,de=z?Xt:et;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 ph(x){x.options.lineWrapping?(Yt(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(Ue(x.display.wrapper,"CodeMirror-wrap"),ar(x)),Ra(x),Ya(x),ea(x),setTimeout(function(){return ks(x)},100)}function Ci(x,z){var ne=this;if(!(this instanceof Ci))return new Ci(x,z);this.options=z=z?Ht(z):{},Ht(fh,z,!1);var te=z.value;typeof te=="string"?te=new Sa(te,z.mode,null,z.lineSeparator,z.direction):z.mode&&(te.modeOption=z.mode),this.doc=te;var ie=new Ci.inputStyles[z.inputStyle](this),de=this.display=new Yd(x,te,ie,z);de.wrapper.CodeMirror=this,nd(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Pu(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 xe,keySeq:null,specialChars:null},z.autofocus&&!yt&&de.input.focus(),we&&Te<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),lf(this),Xu(),Bs(this),this.curOp.forceUpdate=!0,Jl(this,te),z.autofocus&&!yt||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&kc(ne)},20):qs(this);for(var ve in nu)nu.hasOwnProperty(ve)&&nu[ve](this,z[ve],Ns);Xl(this),z.finishInit&&z.finishInit(this);for(var Ee=0;Ee<rd.length;++Ee)rd[Ee](this);us(this),Fe&&z.lineWrapping&&getComputedStyle(de.lineDiv).textRendering=="optimizelegibility"&&(de.lineDiv.style.textRendering="auto")}Ci.defaults=fh,Ci.optionHandlers=nu;function lf(x){var z=x.display;Xt(z.scroller,"mousedown",ka(x,Ja)),we&&Te<11?Xt(z.scroller,"dblclick",ka(x,function(Be){if(!qe(x,Be)){var We=Ao(x,Be);if(!(!We||io(x,Be)||Ha(x.display,Be))){Mn(Be);var Ct=x.findWordAt(We);sl(x.doc,Ct.anchor,Ct.head)}}})):Xt(z.scroller,"dblclick",function(Be){return qe(x,Be)||Mn(Be)}),Xt(z.scroller,"contextmenu",function(Be){return Rs(x,Be)}),Xt(z.input.getField(),"contextmenu",function(Be){z.scroller.contains(Be.target)||Rs(x,Be)});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(Be){if(Be.touches.length!=1)return!1;var We=Be.touches[0];return We.radiusX<=1&&We.radiusY<=1}function ve(Be,We){if(We.left==null)return!0;var Ct=We.left-Be.left,zt=We.top-Be.top;return Ct*Ct+zt*zt>20*20}Xt(z.scroller,"touchstart",function(Be){if(!qe(x,Be)&&!de(Be)&&!io(x,Be)){z.input.ensurePolled(),clearTimeout(ne);var We=+new Date;z.activeTouch={start:We,moved:!1,prev:We-te.end<=300?te:null},Be.touches.length==1&&(z.activeTouch.left=Be.touches[0].pageX,z.activeTouch.top=Be.touches[0].pageY)}}),Xt(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),Xt(z.scroller,"touchend",function(Be){var We=z.activeTouch;if(We&&!Ha(z,Be)&&We.left!=null&&!We.moved&&new Date-We.start<300){var Ct=x.coordsChar(z.activeTouch,"page"),zt;!We.prev||ve(We,We.prev)?zt=new Yi(Ct,Ct):!We.prev.prev||ve(We,We.prev.prev)?zt=x.findWordAt(Ct):zt=new Yi(Wt(Ct.line,0),Zt(x.doc,Wt(Ct.line+1,0))),x.setSelection(zt.anchor,zt.head),x.focus(),Mn(Be)}ie()}),Xt(z.scroller,"touchcancel",ie),Xt(z.scroller,"scroll",function(){z.scroller.clientHeight&&(Ms(x,z.scroller.scrollTop),As(x,z.scroller.scrollLeft,!0),De(x,"scroll",x))}),Xt(z.scroller,"mousewheel",function(Be){return zu(x,Be)}),Xt(z.scroller,"DOMMouseScroll",function(Be){return zu(x,Be)}),Xt(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(Be){qe(x,Be)||Un(Be)},over:function(Be){qe(x,Be)||(Yu(x,Be),Un(Be))},start:function(Be){return ef(x,Be)},drop:ka(x,$h),leave:function(Be){qe(x,Be)||kl(x)}};var Ee=z.input.getField();Xt(Ee,"keyup",function(Be){return lh.call(x,Be)}),Xt(Ee,"keydown",ka(x,lc)),Xt(Ee,"keypress",ka(x,ch)),Xt(Ee,"focus",function(Be){return kc(x,Be)}),Xt(Ee,"blur",function(Be){return qs(x,Be)})}var rd=[];Ci.defineInitHook=function(x){return rd.push(x)};function jo(x,z,ne,te){var ie=x.doc,de;ne==null&&(ne="add"),ne=="smart"&&(ie.mode.indent?de=qt(x,z).state:ne="prev");var ve=x.options.tabSize,Ee=it(ie,z),Be=je(Ee.text,null,ve);Ee.stateAfter&&(Ee.stateAfter=null);var We=Ee.text.match(/^\s*/)[0],Ct;if(!te&&!/\S/.test(Ee.text))Ct=0,ne="not";else if(ne=="smart"&&(Ct=ie.mode.indent(de,Ee.text.slice(We.length),Ee.text),Ct==St||Ct>150)){if(!te)return;ne="prev"}ne=="prev"?z>ie.first?Ct=je(it(ie,z-1).text,null,ve):Ct=0:ne=="add"?Ct=Be+x.options.indentUnit:ne=="subtract"?Ct=Be-x.options.indentUnit:typeof ne=="number"&&(Ct=Be+ne),Ct=Math.max(0,Ct);var zt="",Sn=0;if(x.options.indentWithTabs)for(var yn=Math.floor(Ct/ve);yn;--yn)Sn+=ve,zt+=" ";if(Sn<Ct&&(zt+=dn(Ct-Sn)),zt!=We)return El(ie,zt,Wt(z,0),Wt(z,We.length),"+input"),Ee.stateAfter=null,!0;for(var Yn=0;Yn<ie.sel.ranges.length;Yn++){var lr=ie.sel.ranges[Yn];if(lr.head.line==z&&lr.head.ch<We.length){var Nr=Wt(z,We.length);Bo(ie,Yn,new Yi(Nr,Nr));break}}}var Zo=null;function Fs(x){Zo=x}function id(x,z,ne,te,ie){var de=x.doc;x.display.shift=!1,te||(te=de.sel);var ve=+new Date-200,Ee=ie=="paste"||x.state.pasteIncoming>ve,Be=Fr(z),We=null;if(Ee&&te.ranges.length>1)if(Zo&&Zo.text.join(`
|
|
|
`)==z){if(te.ranges.length%Zo.text.length==0){We=[];for(var Ct=0;Ct<Zo.text.length;Ct++)We.push(de.splitLines(Zo.text[Ct]))}}else Be.length==te.ranges.length&&x.options.pasteLinesPerSelection&&(We=Jt(Be,function(Xr){return[Xr]}));for(var zt=x.curOp.updateInput,Sn=te.ranges.length-1;Sn>=0;Sn--){var yn=te.ranges[Sn],Yn=yn.from(),lr=yn.to();yn.empty()&&(ne&&ne>0?Yn=Wt(Yn.line,Yn.ch-ne):x.state.overwrite&&!Ee?lr=Wt(lr.line,Math.min(it(de,lr.line).text.length,lr.ch+nn(Be).length)):Ee&&Zo&&Zo.lineWise&&Zo.text.join(`
|
|
|
`)==Be.join(`
|
|
|
`)&&(Yn=lr=Wt(Yn.line,0)));var Nr={from:Yn,to:lr,text:We?We[Sn%We.length]:Be,origin:ie||(Ee?"paste":x.state.cutIncoming>ve?"cut":"+input")};Ls(x.doc,Nr),jn(x,"inputRead",x,Nr)}z&&!Ee&&od(x,z),$s(x),x.curOp.updateInput<2&&(x.curOp.updateInput=zt),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function ad(x,z){var ne=x.clipboardData&&x.clipboardData.getData("Text");if(ne)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&ma(z,function(){return id(z,ne,0,null,"paste")}),!0}function od(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),ve=!1;if(de.electricChars){for(var Ee=0;Ee<de.electricChars.length;Ee++)if(z.indexOf(de.electricChars.charAt(Ee))>-1){ve=jo(x,ie.head.line,"smart");break}}else de.electricInput&&de.electricInput.test(it(x.doc,ie.head.line).text.slice(0,ie.head.ch))&&(ve=jo(x,ie.head.line,"smart"));ve&&jn(x,"electricInput",x,ie.head.line)}}}function Pl(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:Wt(ie,0),head:Wt(ie+1,0)};ne.push(de),z.push(x.getRange(de.anchor,de.head))}return{text:z,ranges:ne}}function mh(x,z,ne,te){x.setAttribute("autocorrect",ne?"":"off"),x.setAttribute("autocapitalize",te?"":"off"),x.setAttribute("spellcheck",!!z)}function sd(){var x=Je("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),z=Je("div",[x],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Fe?x.style.width="1000px":x.setAttribute("wrap","off"),wt&&(x.style.border="1px solid black"),mh(x),z}function ld(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,ve=de[te];de[te]==ie&&te!="mode"||(de[te]=ie,z.hasOwnProperty(te)&&ka(this,z[te])(this,ie,ve),De(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"](mo(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:da(function(te,ie){var de=te.token?te:x.getMode(this.options,te);if(de.startState)throw new Error("Overlays may not be stateful.");Bt(this.state.overlays,{mode:de,modeSpec:te,opaque:ie&&ie.opaque,priority:ie&&ie.priority||0},function(ve){return ve.priority}),this.state.modeGen++,Ya(this)}),removeOverlay:da(function(te){for(var ie=this.state.overlays,de=0;de<ie.length;++de){var ve=ie[de].modeSpec;if(ve==te||typeof te=="string"&&ve.name==te){ie.splice(de,1),this.state.modeGen++,Ya(this);return}}}),indentLine:da(function(te,ie,de){typeof ie!="string"&&typeof ie!="number"&&(ie==null?ie=this.options.smartIndent?"smart":"prev":ie=ie?"add":"subtract"),Bn(this.doc,te)&&jo(this,te,ie,de)}),indentSelection:da(function(te){for(var ie=this.doc.sel.ranges,de=-1,ve=0;ve<ie.length;ve++){var Ee=ie[ve];if(Ee.empty())Ee.head.line>de&&(jo(this,Ee.head.line,te,!0),de=Ee.head.line,ve==this.doc.sel.primIndex&&$s(this));else{var Be=Ee.from(),We=Ee.to(),Ct=Math.max(de,Be.line);de=Math.min(this.lastLine(),We.line-(We.ch?0:1))+1;for(var zt=Ct;zt<de;++zt)jo(this,zt,te);var Sn=this.doc.sel.ranges;Be.ch==0&&ie.length==Sn.length&&Sn[ve].from().ch>0&&Bo(this.doc,ve,new Yi(Be,Sn[ve].to()),Qe)}}}),getTokenAt:function(te,ie){return er(this,te,ie)},getLineTokens:function(te,ie){return er(this,Wt(te),ie,!0)},getTokenTypeAt:function(te){te=Zt(this.doc,te);var ie=jt(this,it(this.doc,te.line)),de=0,ve=(ie.length-1)/2,Ee=te.ch,Be;if(Ee==0)Be=ie[2];else for(;;){var We=de+ve>>1;if((We?ie[We*2-1]:0)>=Ee)ve=We;else if(ie[We*2+1]<Ee)de=We+1;else{Be=ie[We*2+2];break}}var Ct=Be?Be.indexOf("overlay "):-1;return Ct<0?Be:Ct==0?null:Be.slice(0,Ct-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 ve=ne[ie],Ee=this.getModeAt(te);if(typeof Ee[ie]=="string")ve[Ee[ie]]&&de.push(ve[Ee[ie]]);else if(Ee[ie])for(var Be=0;Be<Ee[ie].length;Be++){var We=ve[Ee[ie][Be]];We&&de.push(We)}else Ee.helperType&&ve[Ee.helperType]?de.push(ve[Ee.helperType]):ve[Ee.name]&&de.push(ve[Ee.name]);for(var Ct=0;Ct<ve._global.length;Ct++){var zt=ve._global[Ct];zt.pred(Ee,this)&&Xe(de,zt.val)==-1&&de.push(zt.val)}return de},getStateAfter:function(te,ie){var de=this.doc;return te=gn(de,te==null?de.first+de.size-1:te),qt(this,te+1,ie).state},cursorCoords:function(te,ie){var de,ve=this.doc.sel.primary();return te==null?de=ve.head:typeof te=="object"?de=Zt(this.doc,te):de=te?ve.from():ve.to(),Oa(this,de,ie||"page")},charCoords:function(te,ie){return vo(this,Zt(this.doc,te),ie||"page")},coordsChar:function(te,ie){return te=go(this,te,ie||"page"),Js(this,te.left,te.top)},lineAtHeight:function(te,ie){return te=go(this,{top:te,left:0},ie||"page").top,Cn(this.doc,te+this.display.viewOffset)},heightAtLine:function(te,ie,de){var ve=!1,Ee;if(typeof te=="number"){var Be=this.doc.first+this.doc.size-1;te<this.doc.first?te=this.doc.first:te>Be&&(te=Be,ve=!0),Ee=it(this.doc,te)}else Ee=te;return Za(this,Ee,{top:0,left:0},ie||"page",de||ve).top+(ve?this.doc.height-dr(Ee):0)},defaultTextHeight:function(){return os(this.display)},defaultCharWidth:function(){return Wi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ie,de,ve,Ee){var Be=this.display;te=Oa(this,Zt(this.doc,te));var We=te.bottom,Ct=te.left;if(ie.style.position="absolute",ie.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ie),Be.sizer.appendChild(ie),ve=="over")We=te.top;else if(ve=="above"||ve=="near"){var zt=Math.max(Be.wrapper.clientHeight,this.doc.height),Sn=Math.max(Be.sizer.clientWidth,Be.lineSpace.clientWidth);(ve=="above"||te.bottom+ie.offsetHeight>zt)&&te.top>ie.offsetHeight?We=te.top-ie.offsetHeight:te.bottom+ie.offsetHeight<=zt&&(We=te.bottom),Ct+ie.offsetWidth>Sn&&(Ct=Sn-ie.offsetWidth)}ie.style.top=We+"px",ie.style.left=ie.style.right="",Ee=="right"?(Ct=Be.sizer.clientWidth-ie.offsetWidth,ie.style.right="0px"):(Ee=="left"?Ct=0:Ee=="middle"&&(Ct=(Be.sizer.clientWidth-ie.offsetWidth)/2),ie.style.left=Ct+"px"),de&&Nd(this,{left:Ct,top:We,right:Ct+ie.offsetWidth,bottom:We+ie.offsetHeight})},triggerOnKeyDown:da(lc),triggerOnKeyPress:da(ch),triggerOnKeyUp:lh,triggerOnMouseDown:da(Ja),execCommand:function(te){if(Ll.hasOwnProperty(te))return Ll[te].call(null,this)},triggerElectric:da(function(te){od(this,te)}),findPosH:function(te,ie,de,ve){var Ee=1;ie<0&&(Ee=-1,ie=-ie);for(var Be=Zt(this.doc,te),We=0;We<ie&&(Be=ru(this.doc,Be,Ee,de,ve),!Be.hitSide);++We);return Be},moveH:da(function(te,ie){var de=this;this.extendSelectionsBy(function(ve){return de.display.shift||de.doc.extend||ve.empty()?ru(de.doc,ve.head,te,ie,de.options.rtlMoveVisually):te<0?ve.from():ve.to()},Mt)}),deleteH:da(function(te,ie){var de=this.doc.sel,ve=this.doc;de.somethingSelected()?ve.replaceSelection("",null,"+delete"):Fo(this,function(Ee){var Be=ru(ve,Ee.head,te,ie,!1);return te<0?{from:Be,to:Ee.head}:{from:Ee.head,to:Be}})}),findPosV:function(te,ie,de,ve){var Ee=1,Be=ve;ie<0&&(Ee=-1,ie=-ie);for(var We=Zt(this.doc,te),Ct=0;Ct<ie;++Ct){var zt=Oa(this,We,"div");if(Be==null?Be=zt.left:zt.left=Be,We=gh(this,zt,Ee,de),We.hitSide)break}return We},moveV:da(function(te,ie){var de=this,ve=this.doc,Ee=[],Be=!this.display.shift&&!ve.extend&&ve.sel.somethingSelected();if(ve.extendSelectionsBy(function(Ct){if(Be)return te<0?Ct.from():Ct.to();var zt=Oa(de,Ct.head,"div");Ct.goalColumn!=null&&(zt.left=Ct.goalColumn),Ee.push(zt.left);var Sn=gh(de,zt,te,ie);return ie=="page"&&Ct==ve.sel.primary()&&Bc(de,vo(de,Sn,"div").top-zt.top),Sn},Mt),Ee.length)for(var We=0;We<ve.sel.ranges.length;We++)ve.sel.ranges[We].goalColumn=Ee[We]}),findWordAt:function(te){var ie=this.doc,de=it(ie,te.line).text,ve=te.ch,Ee=te.ch;if(de){var Be=this.getHelper(te,"wordChars");(te.sticky=="before"||Ee==de.length)&&ve?--ve:++Ee;for(var We=de.charAt(ve),Ct=fe(We,Be)?function(zt){return fe(zt,Be)}:/\s/.test(We)?function(zt){return/\s/.test(zt)}:function(zt){return!/\s/.test(zt)&&!fe(zt)};ve>0&&Ct(de.charAt(ve-1));)--ve;for(;Ee<de.length&&Ct(de.charAt(Ee));)++Ee}return new Yi(Wt(te.line,ve),Wt(te.line,Ee))},toggleOverwrite:function(te){te!=null&&te==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Yt(this.display.cursorDiv,"CodeMirror-overwrite"):Ue(this.display.cursorDiv,"CodeMirror-overwrite"),De(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==nt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:da(function(te,ie){el(this,te,ie)}),getScrollInfo:function(){var te=this.display.scroller;return{left:te.scrollLeft,top:te.scrollTop,height:te.scrollHeight-ba(this)-this.display.barHeight,width:te.scrollWidth-ba(this)-this.display.barWidth,clientHeight:Ka(this),clientWidth:Xi(this)}},scrollIntoView:da(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:Wt(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?Fd(this,te):Lu(this,te.from,te.to,te.margin)}),setSize:da(function(te,ie){var de=this,ve=function(Be){return typeof Be=="number"||/^\d+$/.test(String(Be))?Be+"px":Be};te!=null&&(this.display.wrapper.style.width=ve(te)),ie!=null&&(this.display.wrapper.style.height=ve(ie)),this.options.lineWrapping&&Ta(this);var Ee=this.display.viewFrom;this.doc.iter(Ee,this.display.viewTo,function(Be){if(Be.widgets){for(var We=0;We<Be.widgets.length;We++)if(Be.widgets[We].noHScroll){Oo(de,Ee,"widget");break}}++Ee}),this.curOp.forceUpdate=!0,De(this,"refresh",this)}),operation:function(te){return ma(this,te)},startOperation:function(){return Bs(this)},endOperation:function(){return us(this)},refresh:da(function(){var te=this.display.cachedTextHeight;Ya(this),this.curOp.forceUpdate=!0,ea(this),el(this,this.doc.scrollLeft,this.doc.scrollTop),Pc(this.display),(te==null||Math.abs(te-os(this.display))>.5||this.options.lineWrapping)&&Ra(this),De(this,"refresh",this)}),swapDoc:da(function(te){var ie=this.doc;return ie.cm=null,this.state.selectingText&&this.state.selectingText(),Jl(this,te),ea(this),this.display.input.reset(),el(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,jn(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}},an(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,ve){x.registerHelper(te,ie,ve),ne[te]._global.push({pred:de,val:ve})}}function ru(x,z,ne,te,ie){var de=z,ve=ne,Ee=it(x,z.line),Be=ie&&x.direction=="rtl"?-ne:ne;function We(){var ei=z.line+Be;return ei<x.first||ei>=x.first+x.size?!1:(z=new Wt(ei,z.ch,z.sticky),Ee=it(x,ei))}function Ct(ei){var Zr;if(te=="codepoint"){var ni=Ee.text.charCodeAt(z.ch+(te>0?0:-1));isNaN(ni)?Zr=null:Zr=new Wt(z.line,Math.max(0,Math.min(Ee.text.length,z.ch+ne*(ni>=55296&&ni<56320?2:1))),-ne)}else ie?Zr=qo(x.cm,Ee,z,ne):Zr=Jo(Ee,z,ne);if(Zr==null)if(!ei&&We())z=dl(ie,x.cm,Ee,z.line,Be);else return!1;else z=Zr;return!0}if(te=="char"||te=="codepoint")Ct();else if(te=="column")Ct(!0);else if(te=="word"||te=="group")for(var zt=null,Sn=te=="group",yn=x.cm&&x.cm.getHelper(z,"wordChars"),Yn=!0;!(ne<0&&!Ct(!Yn));Yn=!1){var lr=Ee.text.charAt(z.ch)||`
|
|
|
`,Nr=fe(lr,yn)?"w":Sn&&lr==`
|
|
|
`?"n":!Sn||/\s/.test(lr)?null:"p";if(Sn&&!Yn&&!Nr&&(Nr="s"),zt&&zt!=Nr){ne<0&&(ne=1,Ct(),z.sticky="after");break}if(Nr&&(zt=Nr),ne>0&&!Ct(!Yn))break}var Xr=Gc(x,z,de,ve,!0);return pt(de,Xr)&&(Xr.hitSide=!0),Xr}function gh(x,z,ne,te){var ie=x.doc,de=z.left,ve;if(te=="page"){var Ee=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Be=Math.max(Ee-.5*os(x.display),3);ve=(ne>0?z.bottom:z.top)+ne*Be}else te=="line"&&(ve=ne>0?z.bottom+3:z.top-3);for(var We;We=Js(x,de,ve),!!We.outside;){if(ne<0?ve<=0:ve>=ie.height){We.hitSide=!0;break}ve+=ne*5}return We}var qi=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new xe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};qi.prototype.init=function(x){var z=this,ne=this,te=ne.cm,ie=ne.div=x.lineDiv;mh(ie,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function de(Ee){for(var Be=Ee.target;Be;Be=Be.parentNode){if(Be==ie)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Be.className))break}return!1}Xt(ie,"paste",function(Ee){!de(Ee)||qe(te,Ee)||ad(Ee,te)||Te<=11&&setTimeout(ka(te,function(){return z.updateFromDOM()}),20)}),Xt(ie,"compositionstart",function(Ee){z.composing={data:Ee.data,done:!1}}),Xt(ie,"compositionupdate",function(Ee){z.composing||(z.composing={data:Ee.data,done:!1})}),Xt(ie,"compositionend",function(Ee){z.composing&&(Ee.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),Xt(ie,"touchstart",function(){return ne.forceCompositionEnd()}),Xt(ie,"input",function(){z.composing||z.readFromDOMSoon()});function ve(Ee){if(!(!de(Ee)||qe(te,Ee))){if(te.somethingSelected())Fs({lineWise:!1,text:te.getSelections()}),Ee.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var Be=Pl(te);Fs({lineWise:!0,text:Be.text}),Ee.type=="cut"&&te.operation(function(){te.setSelections(Be.ranges,0,Qe),te.replaceSelection("",null,"cut")})}else return;if(Ee.clipboardData){Ee.clipboardData.clearData();var We=Zo.text.join(`
|
|
|
`);if(Ee.clipboardData.setData("Text",We),Ee.clipboardData.getData("Text")==We){Ee.preventDefault();return}}var Ct=sd(),zt=Ct.firstChild;te.display.lineSpace.insertBefore(Ct,te.display.lineSpace.firstChild),zt.value=Zo.text.join(`
|
|
|
`);var Sn=document.activeElement;tn(zt),setTimeout(function(){te.display.lineSpace.removeChild(Ct),Sn.focus(),Sn==ie&&ne.showPrimarySelection()},50)}}Xt(ie,"copy",ve),Xt(ie,"cut",ve)},qi.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},qi.prototype.prepareSelection=function(){var x=Mu(this.cm,!1);return x.focus=document.activeElement==this.div,x},qi.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},qi.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},qi.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=iu(z,x.anchorNode,x.anchorOffset),ve=iu(z,x.focusNode,x.focusOffset);if(!(de&&!de.bad&&ve&&!ve.bad&&bn(Nt(de,ve),te)==0&&bn(Kt(de,ve),ie)==0)){var Ee=z.display.view,Be=te.line>=z.display.viewFrom&&vh(z,te)||{node:Ee[0].measure.map[2],offset:0},We=ie.line<z.display.viewTo&&vh(z,ie);if(!We){var Ct=Ee[Ee.length-1].measure,zt=Ct.maps?Ct.maps[Ct.maps.length-1]:Ct.map;We={node:zt[zt.length-1],offset:zt[zt.length-2]-zt[zt.length-3]}}if(!Be||!We){x.removeAllRanges();return}var Sn=x.rangeCount&&x.getRangeAt(0),yn;try{yn=st(Be.node,Be.offset,We.offset,We.node)}catch(Yn){}yn&&(!oe&&z.state.focused?(x.collapse(Be.node,Be.offset),yn.collapsed||(x.removeAllRanges(),x.addRange(yn))):(x.removeAllRanges(),x.addRange(yn)),Sn&&x.anchorNode==null?x.addRange(Sn):oe&&this.startGracePeriod()),this.rememberSelection()}},qi.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)},qi.prototype.showMultipleSelections=function(x){mt(this.cm.display.cursorDiv,x.cursors),mt(this.cm.display.selectionDiv,x.selection)},qi.prototype.rememberSelection=function(){var x=this.getSelection();this.lastAnchorNode=x.anchorNode,this.lastAnchorOffset=x.anchorOffset,this.lastFocusNode=x.focusNode,this.lastFocusOffset=x.focusOffset},qi.prototype.selectionInEditor=function(){var x=this.getSelection();if(!x.rangeCount)return!1;var z=x.getRangeAt(0).commonAncestorContainer;return Tt(this.div,z)},qi.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},qi.prototype.blur=function(){this.div.blur()},qi.prototype.getField=function(){return this.div},qi.prototype.supportsTouch=function(){return!0},qi.prototype.receivedFocus=function(){var x=this;this.selectionInEditor()?this.pollSelection():ma(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)},qi.prototype.selectionChanged=function(){var x=this.getSelection();return x.anchorNode!=this.lastAnchorNode||x.anchorOffset!=this.lastAnchorOffset||x.focusNode!=this.lastFocusNode||x.focusOffset!=this.lastFocusOffset},qi.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var x=this.getSelection(),z=this.cm;if(ut&&Ce&&this.cm.display.gutterSpecs.length&&cf(x.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ne=iu(z,x.anchorNode,x.anchorOffset),te=iu(z,x.focusNode,x.focusOffset);ne&&te&&ma(z,function(){Ba(z.doc,Ko(ne,te),Qe),(ne.bad||te.bad)&&(z.curOp.selectionChanged=!0)})}}},qi.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=Wt(te.line-1,it(x.doc,te.line-1).length)),ie.ch==it(x.doc,ie.line).text.length&&ie.line<x.lastLine()&&(ie=Wt(ie.line+1,0)),te.line<z.viewFrom||ie.line>z.viewTo-1)return!1;var de,ve,Ee;te.line==z.viewFrom||(de=wo(x,te.line))==0?(ve=on(z.view[0].line),Ee=z.view[0].node):(ve=on(z.view[de].line),Ee=z.view[de-1].node.nextSibling);var Be=wo(x,ie.line),We,Ct;if(Be==z.view.length-1?(We=z.viewTo-1,Ct=z.lineDiv.lastChild):(We=on(z.view[Be+1].line)-1,Ct=z.view[Be+1].node.previousSibling),!Ee)return!1;for(var zt=x.doc.splitLines(uf(x,Ee,Ct,ve,We)),Sn=vt(x.doc,Wt(ve,0),Wt(We,it(x.doc,We).text.length));zt.length>1&&Sn.length>1;)if(nn(zt)==nn(Sn))zt.pop(),Sn.pop(),We--;else if(zt[0]==Sn[0])zt.shift(),Sn.shift(),ve++;else break;for(var yn=0,Yn=0,lr=zt[0],Nr=Sn[0],Xr=Math.min(lr.length,Nr.length);yn<Xr&&lr.charCodeAt(yn)==Nr.charCodeAt(yn);)++yn;for(var ei=nn(zt),Zr=nn(Sn),ni=Math.min(ei.length-(zt.length==1?yn:0),Zr.length-(Sn.length==1?yn:0));Yn<ni&&ei.charCodeAt(ei.length-Yn-1)==Zr.charCodeAt(Zr.length-Yn-1);)++Yn;if(zt.length==1&&Sn.length==1&&ve==te.line)for(;yn&&yn>te.ch&&ei.charCodeAt(ei.length-Yn-1)==Zr.charCodeAt(Zr.length-Yn-1);)yn--,Yn++;zt[zt.length-1]=ei.slice(0,ei.length-Yn).replace(/^\u200b+/,""),zt[0]=zt[0].slice(yn).replace(/\u200b+$/,"");var hi=Wt(ve,yn),mi=Wt(We,Sn.length?nn(Sn).length-Yn:0);if(zt.length>1||zt[0]||bn(hi,mi))return El(x.doc,zt,hi,mi,"+input"),!0},qi.prototype.ensurePolled=function(){this.forceCompositionEnd()},qi.prototype.reset=function(){this.forceCompositionEnd()},qi.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},qi.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))},qi.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&ma(this.cm,function(){return Ya(x.cm)})},qi.prototype.setUneditable=function(x){x.contentEditable="false"},qi.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||ka(this.cm,id)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},qi.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},qi.prototype.onContextMenu=function(){},qi.prototype.resetPosition=function(){},qi.prototype.needsContentAttribute=!0;function vh(x,z){var ne=xa(x,z.line);if(!ne||ne.hidden)return null;var te=it(x.doc,z.line),ie=lo(ne,te,z.line),de=hn(te,x.doc.direction),ve="left";if(de){var Ee=Ye(de,z.ch);ve=Ee%2?"right":"left"}var Be=Ho(ie.map,z.ch,ve);return Be.offset=Be.collapse=="right"?Be.end:Be.start,Be}function cf(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function Tl(x,z){return z&&(x.bad=!0),x}function uf(x,z,ne,te,ie){var de="",ve=!1,Ee=x.doc.lineSeparator(),Be=!1;function We(yn){return function(Yn){return Yn.id==yn}}function Ct(){ve&&(de+=Ee,Be&&(de+=Ee),ve=Be=!1)}function zt(yn){yn&&(Ct(),de+=yn)}function Sn(yn){if(yn.nodeType==1){var Yn=yn.getAttribute("cm-text");if(Yn){zt(Yn);return}var lr=yn.getAttribute("cm-marker"),Nr;if(lr){var Xr=x.findMarks(Wt(te,0),Wt(ie+1,0),We(+lr));Xr.length&&(Nr=Xr[0].find(0))&&zt(vt(x.doc,Nr.from,Nr.to).join(Ee));return}if(yn.getAttribute("contenteditable")=="false")return;var ei=/^(pre|div|p|li|table|br)$/i.test(yn.nodeName);if(!/^br$/i.test(yn.nodeName)&&yn.textContent.length==0)return;ei&&Ct();for(var Zr=0;Zr<yn.childNodes.length;Zr++)Sn(yn.childNodes[Zr]);/^(pre|p)$/i.test(yn.nodeName)&&(Be=!0),ei&&(ve=!0)}else yn.nodeType==3&&zt(yn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Sn(z),z!=ne;)z=z.nextSibling,Be=!1;return de}function iu(x,z,ne){var te;if(z==x.display.lineDiv){if(te=x.display.lineDiv.childNodes[ne],!te)return Tl(x.clipPos(Wt(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 df(de,z,ne)}}function df(x,z,ne){var te=x.text.firstChild,ie=!1;if(!z||!Tt(te,z))return Tl(Wt(on(x.line),0),!0);if(z==te&&(ie=!0,z=te.childNodes[ne],ne=0,!z)){var de=x.rest?nn(x.rest):x.line;return Tl(Wt(on(de),de.text.length),ie)}var ve=z.nodeType==3?z:null,Ee=z;for(!ve&&z.childNodes.length==1&&z.firstChild.nodeType==3&&(ve=z.firstChild,ne&&(ne=ve.nodeValue.length));Ee.parentNode!=te;)Ee=Ee.parentNode;var Be=x.measure,We=Be.maps;function Ct(Nr,Xr,ei){for(var Zr=-1;Zr<(We?We.length:0);Zr++)for(var ni=Zr<0?Be.map:We[Zr],hi=0;hi<ni.length;hi+=3){var mi=ni[hi+2];if(mi==Nr||mi==Xr){var Oi=on(Zr<0?x.line:x.rest[Zr]),ra=ni[hi]+ei;return(ei<0||mi!=Nr)&&(ra=ni[hi+(ei?1:0)]),Wt(Oi,ra)}}}var zt=Ct(ve,Ee,ne);if(zt)return Tl(zt,ie);for(var Sn=Ee.nextSibling,yn=ve?ve.nodeValue.length-ne:0;Sn;Sn=Sn.nextSibling){if(zt=Ct(Sn,Sn.firstChild,0),zt)return Tl(Wt(zt.line,zt.ch-yn),ie);yn+=Sn.textContent.length}for(var Yn=Ee.previousSibling,lr=ne;Yn;Yn=Yn.previousSibling){if(zt=Ct(Yn,Yn.firstChild,-1),zt)return Tl(Wt(zt.line,zt.ch+lr),ie);lr+=Yn.textContent.length}}var na=function(x){this.cm=x,this.prevInput="",this.pollingFast=!1,this.polling=new xe,this.hasSelection=!1,this.composing=null};na.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),wt&&(ie.style.width="0px"),Xt(ie,"input",function(){we&&Te>=9&&z.hasSelection&&(z.hasSelection=null),ne.poll()}),Xt(ie,"paste",function(ve){qe(te,ve)||ad(ve,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function de(ve){if(!qe(te,ve)){if(te.somethingSelected())Fs({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var Ee=Pl(te);Fs({lineWise:!0,text:Ee.text}),ve.type=="cut"?te.setSelections(Ee.ranges,null,Qe):(ne.prevInput="",ie.value=Ee.text.join(`
|
|
|
`),tn(ie))}else return;ve.type=="cut"&&(te.state.cutIncoming=+new Date)}}Xt(ie,"cut",de),Xt(ie,"copy",de),Xt(x.scroller,"paste",function(ve){if(!(Ha(x,ve)||qe(te,ve))){if(!ie.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var Ee=new Event("paste");Ee.clipboardData=ve.clipboardData,ie.dispatchEvent(Ee)}}),Xt(x.lineSpace,"selectstart",function(ve){Ha(x,ve)||Mn(ve)}),Xt(ie,"compositionstart",function(){var ve=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:ve,range:te.markText(ve,te.getCursor("to"),{className:"CodeMirror-composing"})}}),Xt(ie,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},na.prototype.createField=function(x){this.wrapper=sd(),this.textarea=this.wrapper.firstChild},na.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},na.prototype.prepareSelection=function(){var x=this.cm,z=x.display,ne=x.doc,te=Mu(x);if(x.options.moveInputWithCursor){var ie=Oa(x,ne.sel.primary().head,"div"),de=z.wrapper.getBoundingClientRect(),ve=z.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ie.top+ve.top-de.top)),te.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ie.left+ve.left-de.left))}return te},na.prototype.showSelection=function(x){var z=this.cm,ne=z.display;mt(ne.cursorDiv,x.cursors),mt(ne.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},na.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&&tn(this.textarea),we&&Te>=9&&(this.hasSelection=ne)}else x||(this.prevInput=this.textarea.value="",we&&Te>=9&&(this.hasSelection=null))}},na.prototype.getField=function(){return this.textarea},na.prototype.supportsTouch=function(){return!1},na.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!yt||nt()!=this.textarea))try{this.textarea.focus()}catch(x){}},na.prototype.blur=function(){this.textarea.blur()},na.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},na.prototype.receivedFocus=function(){this.slowPoll()},na.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},na.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)},na.prototype.poll=function(){var x=this,z=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!z.state.focused||Tn(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(we&&Te>=9&&this.hasSelection===ie||lt&&/[\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 ve=0,Ee=Math.min(te.length,ie.length);ve<Ee&&te.charCodeAt(ve)==ie.charCodeAt(ve);)++ve;return ma(z,function(){id(z,ie.slice(ve),te.length-ve,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},na.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},na.prototype.onKeyPress=function(){we&&Te>=9&&(this.hasSelection=null),this.fastPoll()},na.prototype.onContextMenu=function(x){var z=this,ne=z.cm,te=ne.display,ie=z.textarea;z.contextMenuPending&&z.contextMenuPending();var de=Ao(ne,x),ve=te.scroller.scrollTop;if(!de||_e)return;var Ee=ne.options.resetSelectionOnContextMenu;Ee&&ne.doc.sel.contains(de)==-1&&ka(ne,Ba)(ne.doc,Ko(de),Qe);var Be=ie.style.cssText,We=z.wrapper.style.cssText,Ct=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",ie.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(x.clientY-Ct.top-5)+"px; left: "+(x.clientX-Ct.left-5)+`px;
|
|
|
z-index: 1000; background: `+(we?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var zt;Fe&&(zt=window.scrollY),te.input.focus(),Fe&&window.scrollTo(null,zt),te.input.reset(),ne.somethingSelected()||(ie.value=z.prevInput=" "),z.contextMenuPending=yn,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function Sn(){if(ie.selectionStart!=null){var lr=ne.somethingSelected(),Nr="\u200B"+(lr?ie.value:"");ie.value="\u21DA",ie.value=Nr,z.prevInput=lr?"":"\u200B",ie.selectionStart=1,ie.selectionEnd=Nr.length,te.selForContextMenu=ne.doc.sel}}function yn(){if(z.contextMenuPending==yn&&(z.contextMenuPending=!1,z.wrapper.style.cssText=We,ie.style.cssText=Be,we&&Te<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=ve),ie.selectionStart!=null)){(!we||we&&Te<9)&&Sn();var lr=0,Nr=function(){te.selForContextMenu==ne.doc.sel&&ie.selectionStart==0&&ie.selectionEnd>0&&z.prevInput=="\u200B"?ka(ne,Vu)(ne):lr++<10?te.detectingSelectAll=setTimeout(Nr,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(Nr,200)}}if(we&&Te>=9&&Sn(),Ve){Un(x);var Yn=function(){et(window,"mouseup",Yn),setTimeout(yn,20)};Xt(window,"mouseup",Yn)}else setTimeout(yn,50)},na.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},na.prototype.setUneditable=function(){},na.prototype.needsContentAttribute=!1;function hl(x,z){if(z=z?Ht(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=nt();z.autofocus=ne==x||x.getAttribute("autofocus")!=null&&ne==document.body}function te(){x.value=Ee.getValue()}var ie;if(x.form&&(Xt(x.form,"submit",te),!z.leaveSubmitMethodAlone)){var de=x.form;ie=de.submit;try{var ve=de.submit=function(){te(),de.submit=ie,de.submit(),de.submit=ve}}catch(Be){}}z.finishInit=function(Be){Be.save=te,Be.getTextArea=function(){return x},Be.toTextArea=function(){Be.toTextArea=isNaN,te(),x.parentNode.removeChild(Be.getWrapperElement()),x.style.display="",x.form&&(et(x.form,"submit",te),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ie))}},x.style.display="none";var Ee=Ci(function(Be){return x.parentNode.insertBefore(Be,x.nextSibling)},z);return Ee}function Ol(x){x.off=et,x.on=Xt,x.wheelEventPixels=_u,x.Doc=Sa,x.splitLines=Fr,x.countColumn=je,x.findColumn=wn,x.isWordChar=he,x.Pass=St,x.signal=De,x.Line=Br,x.changeEnd=ds,x.scrollbarModel=Iu,x.Pos=Wt,x.cmpPos=bn,x.modes=$r,x.mimeModes=Qr,x.resolveMode=Kn,x.getMode=Gn,x.modeExtensions=Tr,x.extendMode=bt,x.copyState=ke,x.startState=Re,x.innerMode=ze,x.commands=Ll,x.keyMap=ta,x.keyName=ul,x.isModifierKey=sc,x.lookupKey=gs,x.normalizeKeyMap=Qu,x.StringStream=Pe,x.SharedTextMarker=Ti,x.TextMarker=Is,x.LineWidget=Al,x.e_preventDefault=Mn,x.e_stopPropagation=Dn,x.e_stop=Un,x.addClass=Yt,x.contains=Tt,x.rmClass=Ue,x.keyNames=Wo}of(Ci),ld(Ci);var bs="iter insert remove copy getEditor constructor".split(" ");for(var _o in Sa.prototype)Sa.prototype.hasOwnProperty(_o)&&Xe(bs,_o)<0&&(Ci.prototype[_o]=function(x){return function(){return x.apply(this.doc,arguments)}}(Sa.prototype[_o]));return an(Sa),Ci.inputStyles={textarea:na,contenteditable:qi},Ci.defineMode=function(x){!Ci.defaults.mode&&x!="null"&&(Ci.defaults.mode=x),$n.apply(this,arguments)},Ci.defineMIME=Xn,Ci.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),Ci.defineMIME("text/plain","null"),Ci.defineExtension=function(x,z){Ci.prototype[x]=z},Ci.defineDocExtension=function(x,z){Sa.prototype[x]=z},Ci.fromTextArea=hl,Ol(Ci),Ci.version="5.58.2",Ci})},25419:function(mn,un,le){(function(oe){oe(le(89780),le(15525),le(98101))})(function(oe){"use strict";oe.defineMode("markdown",function(Oe,Ne){var dt=oe.getMode(Oe,"text/html"),we=dt.name=="null";function Te(je){if(oe.findModeByName){var xe=oe.findModeByName(je);xe&&(je=xe.mime||xe.mimes[0])}var Xe=oe.getMode(Oe,je);return Xe.name=="null"?null:Xe}Ne.highlightFormatting===void 0&&(Ne.highlightFormatting=!1),Ne.maxBlockquoteDepth===void 0&&(Ne.maxBlockquoteDepth=0),Ne.taskLists===void 0&&(Ne.taskLists=!1),Ne.strikethrough===void 0&&(Ne.strikethrough=!1),Ne.emoji===void 0&&(Ne.emoji=!1),Ne.fencedCodeBlockHighlighting===void 0&&(Ne.fencedCodeBlockHighlighting=!0),Ne.fencedCodeBlockDefaultMode===void 0&&(Ne.fencedCodeBlockDefaultMode="text/plain"),Ne.xml===void 0&&(Ne.xml=!0),Ne.tokenTypeOverrides===void 0&&(Ne.tokenTypeOverrides={});var Fe={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 be in Fe)Fe.hasOwnProperty(be)&&Ne.tokenTypeOverrides[be]&&(Fe[be]=Ne.tokenTypeOverrides[be]);var Ce=/^([*\-_])(?:\s*\1){2,}\s*$/,_e=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ft=/^\[(x| )\](?=\s)/i,Ie=Ne.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ge=/^ {0,3}(?:\={1,}|-{2,})\s*$/,wt=/^[^#!\[\]*_\\<>` "'(~:]+/,ut=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,yt=/^\s*\[[^\]]+?\]:.*$/,lt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,ht=" ";function Vt(je,xe,Xe){return xe.f=xe.inline=Xe,Xe(je,xe)}function ot(je,xe,Xe){return xe.f=xe.block=Xe,Xe(je,xe)}function gt(je){return!je||!/\S/.test(je.string)}function Ve(je){if(je.linkTitle=!1,je.linkHref=!1,je.linkText=!1,je.em=!1,je.strong=!1,je.strikethrough=!1,je.quote=0,je.indentedCode=!1,je.f==Ue){var xe=we;if(!xe){var Xe=oe.innerMode(dt,je.htmlState);xe=Xe.mode.name=="xml"&&Xe.state.tagStart===null&&!Xe.state.context&&Xe.state.tokenize.isInText}xe&&(je.f=kt,je.block=Me,je.htmlState=null)}return je.trailingSpace=0,je.trailingSpaceNewLine=!1,je.prevLine=je.thisLine,je.thisLine={stream:null},null}function Me(je,xe){var Xe=je.column()===xe.indentation,_t=gt(xe.prevLine.stream),St=xe.indentedCode,Qe=xe.prevLine.hr,$e=xe.list!==!1,Mt=(xe.listStack[xe.listStack.length-1]||0)+3;xe.indentedCode=!1;var wn=xe.indentation;if(xe.indentationDiff===null&&(xe.indentationDiff=xe.indentation,$e)){for(xe.list=null;wn<xe.listStack[xe.listStack.length-1];)xe.listStack.pop(),xe.listStack.length?xe.indentation=xe.listStack[xe.listStack.length-1]:xe.list=!1;xe.list!==!1&&(xe.indentationDiff=wn-xe.listStack[xe.listStack.length-1])}var cn=!_t&&!Qe&&!xe.prevLine.header&&(!$e||!St)&&!xe.prevLine.fencedCodeEnd,dn=(xe.list===!1||Qe||_t)&&xe.indentation<=Mt&&je.match(Ce),nn=null;if(xe.indentationDiff>=4&&(St||xe.prevLine.fencedCodeEnd||xe.prevLine.header||_t))return je.skipToEnd(),xe.indentedCode=!0,Fe.code;if(je.eatSpace())return null;if(Xe&&xe.indentation<=Mt&&(nn=je.match(Ie))&&nn[1].length<=6)return xe.quote=0,xe.header=nn[1].length,xe.thisLine.header=!0,Ne.highlightFormatting&&(xe.formatting="header"),xe.f=xe.inline,mt(xe);if(xe.indentation<=Mt&&je.eat(">"))return xe.quote=Xe?1:xe.quote+1,Ne.highlightFormatting&&(xe.formatting="quote"),je.eatSpace(),mt(xe);if(!dn&&!xe.setext&&Xe&&xe.indentation<=Mt&&(nn=je.match(_e))){var Jt=nn[1]?"ol":"ul";return xe.indentation=wn+je.current().length,xe.list=!0,xe.quote=0,xe.listStack.push(xe.indentation),xe.em=!1,xe.strong=!1,xe.code=!1,xe.strikethrough=!1,Ne.taskLists&&je.match(ft,!1)&&(xe.taskList=!0),xe.f=xe.inline,Ne.highlightFormatting&&(xe.formatting=["list","list-"+Jt]),mt(xe)}else{if(Xe&&xe.indentation<=Mt&&(nn=je.match(ut,!0)))return xe.quote=0,xe.fencedEndRE=new RegExp(nn[1]+"+ *$"),xe.localMode=Ne.fencedCodeBlockHighlighting&&Te(nn[2]||Ne.fencedCodeBlockDefaultMode),xe.localMode&&(xe.localState=oe.startState(xe.localMode)),xe.f=xe.block=tt,Ne.highlightFormatting&&(xe.formatting="code-block"),xe.code=-1,mt(xe);if(xe.setext||(!cn||!$e)&&!xe.quote&&xe.list===!1&&!xe.code&&!dn&&!yt.test(je.string)&&(nn=je.lookAhead(1))&&(nn=nn.match(Ge)))return xe.setext?(xe.header=xe.setext,xe.setext=0,je.skipToEnd(),Ne.highlightFormatting&&(xe.formatting="header")):(xe.header=nn[0].charAt(0)=="="?1:2,xe.setext=xe.header),xe.thisLine.header=!0,xe.f=xe.inline,mt(xe);if(dn)return je.skipToEnd(),xe.hr=!0,xe.thisLine.hr=!0,Fe.hr;if(je.peek()==="[")return Vt(je,xe,ln)}return Vt(je,xe,xe.inline)}function Ue(je,xe){var Xe=dt.token(je,xe.htmlState);if(!we){var _t=oe.innerMode(dt,xe.htmlState);(_t.mode.name=="xml"&&_t.state.tagStart===null&&!_t.state.context&&_t.state.tokenize.isInText||xe.md_inside&&je.current().indexOf(">")>-1)&&(xe.f=kt,xe.block=Me,xe.htmlState=null)}return Xe}function tt(je,xe){var Xe=xe.listStack[xe.listStack.length-1]||0,_t=xe.indentation<Xe,St=Xe+3;if(xe.fencedEndRE&&xe.indentation<=St&&(_t||je.match(xe.fencedEndRE))){Ne.highlightFormatting&&(xe.formatting="code-block");var Qe;return _t||(Qe=mt(xe)),xe.localMode=xe.localState=null,xe.block=Me,xe.f=kt,xe.fencedEndRE=null,xe.code=0,xe.thisLine.fencedCodeEnd=!0,_t?ot(je,xe,xe.block):Qe}else return xe.localMode?xe.localMode.token(je,xe.localState):(je.skipToEnd(),Fe.code)}function mt(je){var xe=[];if(je.formatting){xe.push(Fe.formatting),typeof je.formatting=="string"&&(je.formatting=[je.formatting]);for(var Xe=0;Xe<je.formatting.length;Xe++)xe.push(Fe.formatting+"-"+je.formatting[Xe]),je.formatting[Xe]==="header"&&xe.push(Fe.formatting+"-"+je.formatting[Xe]+"-"+je.header),je.formatting[Xe]==="quote"&&(!Ne.maxBlockquoteDepth||Ne.maxBlockquoteDepth>=je.quote?xe.push(Fe.formatting+"-"+je.formatting[Xe]+"-"+je.quote):xe.push("error"))}if(je.taskOpen)return xe.push("meta"),xe.length?xe.join(" "):null;if(je.taskClosed)return xe.push("property"),xe.length?xe.join(" "):null;if(je.linkHref?xe.push(Fe.linkHref,"url"):(je.strong&&xe.push(Fe.strong),je.em&&xe.push(Fe.em),je.strikethrough&&xe.push(Fe.strikethrough),je.emoji&&xe.push(Fe.emoji),je.linkText&&xe.push(Fe.linkText),je.code&&xe.push(Fe.code),je.image&&xe.push(Fe.image),je.imageAltText&&xe.push(Fe.imageAltText,"link"),je.imageMarker&&xe.push(Fe.imageMarker)),je.header&&xe.push(Fe.header,Fe.header+"-"+je.header),je.quote&&(xe.push(Fe.quote),!Ne.maxBlockquoteDepth||Ne.maxBlockquoteDepth>=je.quote?xe.push(Fe.quote+"-"+je.quote):xe.push(Fe.quote+"-"+Ne.maxBlockquoteDepth)),je.list!==!1){var _t=(je.listStack.length-1)%3;_t?_t===1?xe.push(Fe.list2):xe.push(Fe.list3):xe.push(Fe.list1)}return je.trailingSpaceNewLine?xe.push("trailing-space-new-line"):je.trailingSpace&&xe.push("trailing-space-"+(je.trailingSpace%2?"a":"b")),xe.length?xe.join(" "):null}function Je(je,xe){if(je.match(wt,!0))return mt(xe)}function kt(je,xe){var Xe=xe.text(je,xe);if(typeof Xe!="undefined")return Xe;if(xe.list)return xe.list=null,mt(xe);if(xe.taskList){var _t=je.match(ft,!0)[1]===" ";return _t?xe.taskOpen=!0:xe.taskClosed=!0,Ne.highlightFormatting&&(xe.formatting="task"),xe.taskList=!1,mt(xe)}if(xe.taskOpen=!1,xe.taskClosed=!1,xe.header&&je.match(/^#+$/,!0))return Ne.highlightFormatting&&(xe.formatting="header"),mt(xe);var St=je.next();if(xe.linkTitle){xe.linkTitle=!1;var Qe=St;St==="("&&(Qe=")"),Qe=(Qe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var $e="^\\s*(?:[^"+Qe+"\\\\]+|\\\\\\\\|\\\\.)"+Qe;if(je.match(new RegExp($e),!0))return Fe.linkHref}if(St==="`"){var Mt=xe.formatting;Ne.highlightFormatting&&(xe.formatting="code"),je.eatWhile("`");var wn=je.current().length;if(xe.code==0&&(!xe.quote||wn==1))return xe.code=wn,mt(xe);if(wn==xe.code){var cn=mt(xe);return xe.code=0,cn}else return xe.formatting=Mt,mt(xe)}else if(xe.code)return mt(xe);if(St==="\\"&&(je.next(),Ne.highlightFormatting)){var dn=mt(xe),nn=Fe.formatting+"-escape";return dn?dn+" "+nn:nn}if(St==="!"&&je.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return xe.imageMarker=!0,xe.image=!0,Ne.highlightFormatting&&(xe.formatting="image"),mt(xe);if(St==="["&&xe.imageMarker&&je.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return xe.imageMarker=!1,xe.imageAltText=!0,Ne.highlightFormatting&&(xe.formatting="image"),mt(xe);if(St==="]"&&xe.imageAltText){Ne.highlightFormatting&&(xe.formatting="image");var dn=mt(xe);return xe.imageAltText=!1,xe.image=!1,xe.inline=xe.f=Tt,dn}if(St==="["&&!xe.image)return xe.linkText&&je.match(/^.*?\]/)||(xe.linkText=!0,Ne.highlightFormatting&&(xe.formatting="link")),mt(xe);if(St==="]"&&xe.linkText){Ne.highlightFormatting&&(xe.formatting="link");var dn=mt(xe);return xe.linkText=!1,xe.inline=xe.f=je.match(/\(.*?\)| ?\[.*?\]/,!1)?Tt:kt,dn}if(St==="<"&&je.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){xe.f=xe.inline=st,Ne.highlightFormatting&&(xe.formatting="link");var dn=mt(xe);return dn?dn+=" ":dn="",dn+Fe.linkInline}if(St==="<"&&je.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){xe.f=xe.inline=st,Ne.highlightFormatting&&(xe.formatting="link");var dn=mt(xe);return dn?dn+=" ":dn="",dn+Fe.linkEmail}if(Ne.xml&&St==="<"&&je.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Jt=je.string.indexOf(">",je.pos);if(Jt!=-1){var Bt=je.string.substring(je.start,Jt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Bt)&&(xe.md_inside=!0)}return je.backUp(1),xe.htmlState=oe.startState(dt),ot(je,xe,Ue)}if(Ne.xml&&St==="<"&&je.match(/^\/\w*?>/))return xe.md_inside=!1,"tag";if(St==="*"||St==="_"){for(var ge=1,ue=je.pos==1?" ":je.string.charAt(je.pos-2);ge<3&&je.eat(St);)ge++;var se=je.peek()||" ",he=!/\s/.test(se)&&(!lt.test(se)||/\s/.test(ue)||lt.test(ue)),fe=!/\s/.test(ue)&&(!lt.test(ue)||/\s/.test(se)||lt.test(se)),ce=null,Ae=null;if(ge%2&&(!xe.em&&he&&(St==="*"||!fe||lt.test(ue))?ce=!0:xe.em==St&&fe&&(St==="*"||!he||lt.test(se))&&(ce=!1)),ge>1&&(!xe.strong&&he&&(St==="*"||!fe||lt.test(ue))?Ae=!0:xe.strong==St&&fe&&(St==="*"||!he||lt.test(se))&&(Ae=!1)),Ae!=null||ce!=null){Ne.highlightFormatting&&(xe.formatting=ce==null?"strong":Ae==null?"em":"strong em"),ce===!0&&(xe.em=St),Ae===!0&&(xe.strong=St);var cn=mt(xe);return ce===!1&&(xe.em=!1),Ae===!1&&(xe.strong=!1),cn}}else if(St===" "&&(je.eat("*")||je.eat("_"))){if(je.peek()===" ")return mt(xe);je.backUp(1)}if(Ne.strikethrough){if(St==="~"&&je.eatWhile(St)){if(xe.strikethrough){Ne.highlightFormatting&&(xe.formatting="strikethrough");var cn=mt(xe);return xe.strikethrough=!1,cn}else if(je.match(/^[^\s]/,!1))return xe.strikethrough=!0,Ne.highlightFormatting&&(xe.formatting="strikethrough"),mt(xe)}else if(St===" "&&je.match(/^~~/,!0)){if(je.peek()===" ")return mt(xe);je.backUp(2)}}if(Ne.emoji&&St===":"&&je.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){xe.emoji=!0,Ne.highlightFormatting&&(xe.formatting="emoji");var rt=mt(xe);return xe.emoji=!1,rt}return St===" "&&(je.match(/^ +$/,!1)?xe.trailingSpace++:xe.trailingSpace&&(xe.trailingSpaceNewLine=!0)),mt(xe)}function st(je,xe){var Xe=je.next();if(Xe===">"){xe.f=xe.inline=kt,Ne.highlightFormatting&&(xe.formatting="link");var _t=mt(xe);return _t?_t+=" ":_t="",_t+Fe.linkInline}return je.match(/^[^>]+/,!0),Fe.linkInline}function Tt(je,xe){if(je.eatSpace())return null;var Xe=je.next();return Xe==="("||Xe==="["?(xe.f=xe.inline=Yt(Xe==="("?")":"]"),Ne.highlightFormatting&&(xe.formatting="link-string"),xe.linkHref=!0,mt(xe)):"error"}var nt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Yt(je){return function(xe,Xe){var _t=xe.next();if(_t===je){Xe.f=Xe.inline=kt,Ne.highlightFormatting&&(Xe.formatting="link-string");var St=mt(Xe);return Xe.linkHref=!1,St}return xe.match(nt[je]),Xe.linkHref=!0,mt(Xe)}}function ln(je,xe){return je.match(/^([^\]\\]|\\.)*\]:/,!1)?(xe.f=tn,je.next(),Ne.highlightFormatting&&(xe.formatting="link"),xe.linkText=!0,mt(xe)):Vt(je,xe,kt)}function tn(je,xe){if(je.match(/^\]:/,!0)){xe.f=xe.inline=en,Ne.highlightFormatting&&(xe.formatting="link");var Xe=mt(xe);return xe.linkText=!1,Xe}return je.match(/^([^\]\\]|\\.)+/,!0),Fe.linkText}function en(je,xe){return je.eatSpace()?null:(je.match(/^[^\s]+/,!0),je.peek()===void 0?xe.linkTitle=!0:je.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),xe.f=xe.inline=kt,Fe.linkHref+" url")}var Ht={startState:function(){return{f:Me,prevLine:{stream:null},thisLine:{stream:null},block:Me,htmlState:null,indentation:0,inline:kt,text:Je,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(je){return{f:je.f,prevLine:je.prevLine,thisLine:je.thisLine,block:je.block,htmlState:je.htmlState&&oe.copyState(dt,je.htmlState),indentation:je.indentation,localMode:je.localMode,localState:je.localMode?oe.copyState(je.localMode,je.localState):null,inline:je.inline,text:je.text,formatting:!1,linkText:je.linkText,linkTitle:je.linkTitle,linkHref:je.linkHref,code:je.code,em:je.em,strong:je.strong,strikethrough:je.strikethrough,emoji:je.emoji,header:je.header,setext:je.setext,hr:je.hr,taskList:je.taskList,list:je.list,listStack:je.listStack.slice(0),quote:je.quote,indentedCode:je.indentedCode,trailingSpace:je.trailingSpace,trailingSpaceNewLine:je.trailingSpaceNewLine,md_inside:je.md_inside,fencedEndRE:je.fencedEndRE}},token:function(je,xe){if(xe.formatting=!1,je!=xe.thisLine.stream){if(xe.header=0,xe.hr=!1,je.match(/^\s*$/,!0))return Ve(xe),null;if(xe.prevLine=xe.thisLine,xe.thisLine={stream:je},xe.taskList=!1,xe.trailingSpace=0,xe.trailingSpaceNewLine=!1,!xe.localState&&(xe.f=xe.block,xe.f!=Ue)){var Xe=je.match(/^\s*/,!0)[0].replace(/\t/g,ht).length;if(xe.indentation=Xe,xe.indentationDiff=null,Xe>0)return null}}return xe.f(je,xe)},innerMode:function(je){return je.block==Ue?{state:je.htmlState,mode:dt}:je.localState?{state:je.localState,mode:je.localMode}:{state:je,mode:Ht}},indent:function(je,xe,Xe){return je.block==Ue&&dt.indent?dt.indent(je.htmlState,xe,Xe):je.localState&&je.localMode.indent?je.localMode.indent(je.localState,xe,Xe):oe.Pass},blankLine:Ve,getType:mt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ht},"xml"),oe.defineMIME("text/markdown","markdown"),oe.defineMIME("text/x-markdown","markdown")})},98101:function(mn,un,le){(function(oe){oe(le(89780))})(function(oe){"use strict";oe.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 Oe=0;Oe<oe.modeInfo.length;Oe++){var Ne=oe.modeInfo[Oe];Ne.mimes&&(Ne.mime=Ne.mimes[0])}oe.findModeByMIME=function(dt){dt=dt.toLowerCase();for(var we=0;we<oe.modeInfo.length;we++){var Te=oe.modeInfo[we];if(Te.mime==dt)return Te;if(Te.mimes){for(var Fe=0;Fe<Te.mimes.length;Fe++)if(Te.mimes[Fe]==dt)return Te}}if(/\+xml$/.test(dt))return oe.findModeByMIME("application/xml");if(/\+json$/.test(dt))return oe.findModeByMIME("application/json")},oe.findModeByExtension=function(dt){dt=dt.toLowerCase();for(var we=0;we<oe.modeInfo.length;we++){var Te=oe.modeInfo[we];if(Te.ext){for(var Fe=0;Fe<Te.ext.length;Fe++)if(Te.ext[Fe]==dt)return Te}}},oe.findModeByFileName=function(dt){for(var we=0;we<oe.modeInfo.length;we++){var Te=oe.modeInfo[we];if(Te.file&&Te.file.test(dt))return Te}var Fe=dt.lastIndexOf("."),be=Fe>-1&&dt.substring(Fe+1,dt.length);if(be)return oe.findModeByExtension(be)},oe.findModeByName=function(dt){dt=dt.toLowerCase();for(var we=0;we<oe.modeInfo.length;we++){var Te=oe.modeInfo[we];if(Te.name.toLowerCase()==dt)return Te;if(Te.alias){for(var Fe=0;Fe<Te.alias.length;Fe++)if(Te.alias[Fe].toLowerCase()==dt)return Te}}}})},67549:function(mn,un,le){(function(oe){oe(le(89780))})(function(oe){"use strict";oe.defineMode("stex",function(Oe,Ne){"use strict";function dt(wt,ut){wt.cmdState.push(ut)}function we(wt){return wt.cmdState.length>0?wt.cmdState[wt.cmdState.length-1]:null}function Te(wt){var ut=wt.cmdState.pop();ut&&ut.closeBracket()}function Fe(wt){for(var ut=wt.cmdState,yt=ut.length-1;yt>=0;yt--){var lt=ut[yt];if(lt.name!="DEFAULT")return lt}return{styleIdentifier:function(){return null}}}function be(wt,ut,yt){return function(){this.name=wt,this.bracketNo=0,this.style=ut,this.styles=yt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ce={};Ce.importmodule=be("importmodule","tag",["string","builtin"]),Ce.documentclass=be("documentclass","tag",["","atom"]),Ce.usepackage=be("usepackage","tag",["atom"]),Ce.begin=be("begin","tag",["atom"]),Ce.end=be("end","tag",["atom"]),Ce.label=be("label","tag",["atom"]),Ce.ref=be("ref","tag",["atom"]),Ce.eqref=be("eqref","tag",["atom"]),Ce.cite=be("cite","tag",["atom"]),Ce.bibitem=be("bibitem","tag",["atom"]),Ce.Bibitem=be("Bibitem","tag",["atom"]),Ce.RBibitem=be("RBibitem","tag",["atom"]),Ce.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function _e(wt,ut){wt.f=ut}function ft(wt,ut){var yt;if(wt.match(/^\\[a-zA-Z@]+/)){var lt=wt.current().slice(1);return yt=Ce.hasOwnProperty(lt)?Ce[lt]:Ce.DEFAULT,yt=new yt,dt(ut,yt),_e(ut,Ge),yt.style}if(wt.match(/^\\[$&%#{}_]/)||wt.match(/^\\[,;!\/\\]/))return"tag";if(wt.match("\\["))return _e(ut,function(Vt,ot){return Ie(Vt,ot,"\\]")}),"keyword";if(wt.match("\\("))return _e(ut,function(Vt,ot){return Ie(Vt,ot,"\\)")}),"keyword";if(wt.match("$$"))return _e(ut,function(Vt,ot){return Ie(Vt,ot,"$$")}),"keyword";if(wt.match("$"))return _e(ut,function(Vt,ot){return Ie(Vt,ot,"$")}),"keyword";var ht=wt.next();if(ht=="%")return wt.skipToEnd(),"comment";if(ht=="}"||ht=="]"){if(yt=we(ut),yt)yt.closeBracket(ht),_e(ut,Ge);else return"error";return"bracket"}else return ht=="{"||ht=="["?(yt=Ce.DEFAULT,yt=new yt,dt(ut,yt),"bracket"):/\d/.test(ht)?(wt.eatWhile(/[\w.%]/),"atom"):(wt.eatWhile(/[\w\-_]/),yt=Fe(ut),yt.name=="begin"&&(yt.argument=wt.current()),yt.styleIdentifier())}function Ie(wt,ut,yt){if(wt.eatSpace())return null;if(yt&&wt.match(yt))return _e(ut,ft),"keyword";if(wt.match(/^\\[a-zA-Z@]+/))return"tag";if(wt.match(/^[a-zA-Z]+/))return"variable-2";if(wt.match(/^\\[$&%#{}_]/)||wt.match(/^\\[,;!\/]/)||wt.match(/^[\^_&]/))return"tag";if(wt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(wt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var lt=wt.next();return lt=="{"||lt=="}"||lt=="["||lt=="]"||lt=="("||lt==")"?"bracket":lt=="%"?(wt.skipToEnd(),"comment"):"error"}function Ge(wt,ut){var yt=wt.peek(),lt;return yt=="{"||yt=="["?(lt=we(ut),lt.openBracket(yt),wt.eat(yt),_e(ut,ft),"bracket"):/[ \t\r]/.test(yt)?(wt.eat(yt),null):(_e(ut,ft),Te(ut),ft(wt,ut))}return{startState:function(){var wt=Ne.inMathMode?function(ut,yt){return Ie(ut,yt)}:ft;return{cmdState:[],f:wt}},copyState:function(wt){return{cmdState:wt.cmdState.slice(),f:wt.f}},token:function(wt,ut){return ut.f(wt,ut)},blankLine:function(wt){wt.f=ft,wt.cmdState.length=0},lineComment:"%"}}),oe.defineMIME("text/x-stex","stex"),oe.defineMIME("text/x-latex","stex")})},15525:function(mn,un,le){(function(oe){oe(le(89780))})(function(oe){"use strict";var Oe={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},Ne={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};oe.defineMode("xml",function(dt,we){var Te=dt.indentUnit,Fe={},be=we.htmlMode?Oe:Ne;for(var Ce in be)Fe[Ce]=be[Ce];for(var Ce in we)Fe[Ce]=we[Ce];var _e,ft;function Ie(st,Tt){function nt(tn){return Tt.tokenize=tn,tn(st,Tt)}var Yt=st.next();if(Yt=="<")return st.eat("!")?st.eat("[")?st.match("CDATA[")?nt(ut("atom","]]>")):null:st.match("--")?nt(ut("comment","-->")):st.match("DOCTYPE",!0,!0)?(st.eatWhile(/[\w\._\-]/),nt(yt(1))):null:st.eat("?")?(st.eatWhile(/[\w\._\-]/),Tt.tokenize=ut("meta","?>"),"meta"):(_e=st.eat("/")?"closeTag":"openTag",Tt.tokenize=Ge,"tag bracket");if(Yt=="&"){var ln;return st.eat("#")?st.eat("x")?ln=st.eatWhile(/[a-fA-F\d]/)&&st.eat(";"):ln=st.eatWhile(/[\d]/)&&st.eat(";"):ln=st.eatWhile(/[\w\.\-:]/)&&st.eat(";"),ln?"atom":"error"}else return st.eatWhile(/[^&<]/),null}Ie.isInText=!0;function Ge(st,Tt){var nt=st.next();if(nt==">"||nt=="/"&&st.eat(">"))return Tt.tokenize=Ie,_e=nt==">"?"endTag":"selfcloseTag","tag bracket";if(nt=="=")return _e="equals",null;if(nt=="<"){Tt.tokenize=Ie,Tt.state=ot,Tt.tagName=Tt.tagStart=null;var Yt=Tt.tokenize(st,Tt);return Yt?Yt+" tag error":"tag error"}else return/[\'\"]/.test(nt)?(Tt.tokenize=wt(nt),Tt.stringStartCol=st.column(),Tt.tokenize(st,Tt)):(st.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function wt(st){var Tt=function(nt,Yt){for(;!nt.eol();)if(nt.next()==st){Yt.tokenize=Ge;break}return"string"};return Tt.isInAttribute=!0,Tt}function ut(st,Tt){return function(nt,Yt){for(;!nt.eol();){if(nt.match(Tt)){Yt.tokenize=Ie;break}nt.next()}return st}}function yt(st){return function(Tt,nt){for(var Yt;(Yt=Tt.next())!=null;){if(Yt=="<")return nt.tokenize=yt(st+1),nt.tokenize(Tt,nt);if(Yt==">")if(st==1){nt.tokenize=Ie;break}else return nt.tokenize=yt(st-1),nt.tokenize(Tt,nt)}return"meta"}}function lt(st,Tt,nt){this.prev=st.context,this.tagName=Tt,this.indent=st.indented,this.startOfLine=nt,(Fe.doNotIndent.hasOwnProperty(Tt)||st.context&&st.context.noIndent)&&(this.noIndent=!0)}function ht(st){st.context&&(st.context=st.context.prev)}function Vt(st,Tt){for(var nt;;){if(!st.context||(nt=st.context.tagName,!Fe.contextGrabbers.hasOwnProperty(nt)||!Fe.contextGrabbers[nt].hasOwnProperty(Tt)))return;ht(st)}}function ot(st,Tt,nt){return st=="openTag"?(nt.tagStart=Tt.column(),gt):st=="closeTag"?Ve:ot}function gt(st,Tt,nt){return st=="word"?(nt.tagName=Tt.current(),ft="tag",tt):Fe.allowMissingTagName&&st=="endTag"?(ft="tag bracket",tt(st,Tt,nt)):(ft="error",gt)}function Ve(st,Tt,nt){if(st=="word"){var Yt=Tt.current();return nt.context&&nt.context.tagName!=Yt&&Fe.implicitlyClosed.hasOwnProperty(nt.context.tagName)&&ht(nt),nt.context&&nt.context.tagName==Yt||Fe.matchClosing===!1?(ft="tag",Me):(ft="tag error",Ue)}else return Fe.allowMissingTagName&&st=="endTag"?(ft="tag bracket",Me(st,Tt,nt)):(ft="error",Ue)}function Me(st,Tt,nt){return st!="endTag"?(ft="error",Me):(ht(nt),ot)}function Ue(st,Tt,nt){return ft="error",Me(st,Tt,nt)}function tt(st,Tt,nt){if(st=="word")return ft="attribute",mt;if(st=="endTag"||st=="selfcloseTag"){var Yt=nt.tagName,ln=nt.tagStart;return nt.tagName=nt.tagStart=null,st=="selfcloseTag"||Fe.autoSelfClosers.hasOwnProperty(Yt)?Vt(nt,Yt):(Vt(nt,Yt),nt.context=new lt(nt,Yt,ln==nt.indented)),ot}return ft="error",tt}function mt(st,Tt,nt){return st=="equals"?Je:(Fe.allowMissing||(ft="error"),tt(st,Tt,nt))}function Je(st,Tt,nt){return st=="string"?kt:st=="word"&&Fe.allowUnquoted?(ft="string",tt):(ft="error",tt(st,Tt,nt))}function kt(st,Tt,nt){return st=="string"?kt:tt(st,Tt,nt)}return{startState:function(st){var Tt={tokenize:Ie,state:ot,indented:st||0,tagName:null,tagStart:null,context:null};return st!=null&&(Tt.baseIndent=st),Tt},token:function(st,Tt){if(!Tt.tagName&&st.sol()&&(Tt.indented=st.indentation()),st.eatSpace())return null;_e=null;var nt=Tt.tokenize(st,Tt);return(nt||_e)&&nt!="comment"&&(ft=null,Tt.state=Tt.state(_e||nt,st,Tt),ft&&(nt=ft=="error"?nt+" error":ft)),nt},indent:function(st,Tt,nt){var Yt=st.context;if(st.tokenize.isInAttribute)return st.tagStart==st.indented?st.stringStartCol+1:st.indented+Te;if(Yt&&Yt.noIndent)return oe.Pass;if(st.tokenize!=Ge&&st.tokenize!=Ie)return nt?nt.match(/^(\s*)/)[0].length:0;if(st.tagName)return Fe.multilineTagIndentPastTag!==!1?st.tagStart+st.tagName.length+2:st.tagStart+Te*(Fe.multilineTagIndentFactor||1);if(Fe.alignCDATA&&/<!\[CDATA\[/.test(Tt))return 0;var ln=Tt&&/^<(\/)?([\w_:\.-]*)/.exec(Tt);if(ln&&ln[1])for(;Yt;)if(Yt.tagName==ln[2]){Yt=Yt.prev;break}else if(Fe.implicitlyClosed.hasOwnProperty(Yt.tagName))Yt=Yt.prev;else break;else if(ln)for(;Yt;){var tn=Fe.contextGrabbers[Yt.tagName];if(tn&&tn.hasOwnProperty(ln[2]))Yt=Yt.prev;else break}for(;Yt&&Yt.prev&&!Yt.startOfLine;)Yt=Yt.prev;return Yt?Yt.indent+Te:st.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Fe.htmlMode?"html":"xml",helperType:Fe.htmlMode?"html":"xml",skipAttribute:function(st){st.state==Je&&(st.state=tt)},xmlCurrentTag:function(st){return st.tagName?{name:st.tagName,close:st.type=="closeTag"}:null},xmlCurrentContext:function(st){for(var Tt=[],nt=st.context;nt;nt=nt.prev)nt.tagName&&Tt.push(nt.tagName);return Tt.reverse()}}}),oe.defineMIME("text/xml","xml"),oe.defineMIME("application/xml","xml"),oe.mimeModes.hasOwnProperty("text/html")||oe.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(mn,un,le){"use strict";le.d(un,{hP:function(){return Bt}});var oe=function(ge,ue){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,he){se.__proto__=he}||function(se,he){for(var fe in he)Object.prototype.hasOwnProperty.call(he,fe)&&(se[fe]=he[fe])})(ge,ue)};function Oe(ge,ue){function se(){this.constructor=ge}oe(ge,ue),ge.prototype=ue===null?Object.create(ue):(se.prototype=ue.prototype,new se)}function Ne(ge,ue,se,he){return new(se||(se=Promise))(function(fe,ce){function Ae(Ke){try{Le(he.next(Ke))}catch(Lt){ce(Lt)}}function rt(Ke){try{Le(he.throw(Ke))}catch(Lt){ce(Lt)}}function Le(Ke){var Lt;Ke.done?fe(Ke.value):(Lt=Ke.value,Lt instanceof se?Lt:new se(function(xt){xt(Lt)})).then(Ae,rt)}Le((he=he.apply(ge,ue||[])).next())})}function dt(ge,ue){var se,he,fe,ce,Ae={label:0,sent:function(){if(1&fe[0])throw fe[1];return fe[1]},trys:[],ops:[]};return ce={next:rt(0),throw:rt(1),return:rt(2)},typeof Symbol=="function"&&(ce[Symbol.iterator]=function(){return this}),ce;function rt(Le){return function(Ke){return function(Lt){if(se)throw new TypeError("Generator is already executing.");for(;Ae;)try{if(se=1,he&&(fe=2&Lt[0]?he.return:Lt[0]?he.throw||((fe=he.return)&&fe.call(he),0):he.next)&&!(fe=fe.call(he,Lt[1])).done)return fe;switch(he=0,fe&&(Lt=[2&Lt[0],fe.value]),Lt[0]){case 0:case 1:fe=Lt;break;case 4:return Ae.label++,{value:Lt[1],done:!1};case 5:Ae.label++,he=Lt[1],Lt=[0];continue;case 7:Lt=Ae.ops.pop(),Ae.trys.pop();continue;default:if(fe=Ae.trys,!((fe=fe.length>0&&fe[fe.length-1])||Lt[0]!==6&&Lt[0]!==2)){Ae=0;continue}if(Lt[0]===3&&(!fe||Lt[1]>fe[0]&&Lt[1]<fe[3])){Ae.label=Lt[1];break}if(Lt[0]===6&&Ae.label<fe[1]){Ae.label=fe[1],fe=Lt;break}if(fe&&Ae.label<fe[2]){Ae.label=fe[2],Ae.ops.push(Lt);break}fe[2]&&Ae.ops.pop(),Ae.trys.pop();continue}Lt=ue.call(ge,Ae)}catch(xt){Lt=[6,xt],he=0}finally{se=fe=0}if(5&Lt[0])throw Lt[1];return{value:Lt[0]?Lt[1]:void 0,done:!0}}([Le,Ke])}}}function we(){for(var ge=0,ue=0,se=arguments.length;ue<se;ue++)ge+=arguments[ue].length;var he=Array(ge),fe=0;for(ue=0;ue<se;ue++)for(var ce=arguments[ue],Ae=0,rt=ce.length;Ae<rt;Ae++,fe++)he[fe]=ce[Ae];return he}var Te=function(){function ge(){}return ge.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ge.setAttributes=function(ue,se){for(var he=0,fe=se;he<fe.length;he++){var ce=fe[he],Ae=ce[0],rt=ce[1];ue.setAttribute(Ae,rt)}},ge.createRect=function(ue,se,he){var fe=document.createElementNS("http://www.w3.org/2000/svg","rect");return fe.setAttribute("width",ue.toString()),fe.setAttribute("height",se.toString()),he&&ge.setAttributes(fe,he),fe},ge.createLine=function(ue,se,he,fe,ce){var Ae=document.createElementNS("http://www.w3.org/2000/svg","line");return Ae.setAttribute("x1",ue.toString()),Ae.setAttribute("y1",se.toString()),Ae.setAttribute("x2",he.toString()),Ae.setAttribute("y2",fe.toString()),ce&&ge.setAttributes(Ae,ce),Ae},ge.createPolygon=function(ue,se){var he=document.createElementNS("http://www.w3.org/2000/svg","polygon");return he.setAttribute("points",ue),se&&ge.setAttributes(he,se),he},ge.createCircle=function(ue,se){var he=document.createElementNS("http://www.w3.org/2000/svg","circle");return he.setAttribute("cx",(ue/2).toString()),he.setAttribute("cy",(ue/2).toString()),he.setAttribute("r",ue.toString()),se&&ge.setAttributes(he,se),he},ge.createEllipse=function(ue,se,he){var fe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return fe.setAttribute("cx",(ue/2).toString()),fe.setAttribute("cy",(se/2).toString()),fe.setAttribute("rx",(ue/2).toString()),fe.setAttribute("ry",(se/2).toString()),he&&ge.setAttributes(fe,he),fe},ge.createGroup=function(ue){var se=document.createElementNS("http://www.w3.org/2000/svg","g");return ue&&ge.setAttributes(se,ue),se},ge.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ge.createMarker=function(ue,se,he,fe,ce,Ae,rt){var Le=document.createElementNS("http://www.w3.org/2000/svg","marker");return ge.setAttributes(Le,[["id",ue],["orient",se],["markerWidth",he.toString()],["markerHeight",fe.toString()],["refX",ce.toString()],["refY",Ae.toString()]]),Le.appendChild(rt),Le},ge.createText=function(ue){var se=document.createElementNS("http://www.w3.org/2000/svg","text");return se.setAttribute("x","0"),se.setAttribute("y","0"),ue&&ge.setAttributes(se,ue),se},ge.createTSpan=function(ue,se){var he=document.createElementNS("http://www.w3.org/2000/svg","tspan");return he.textContent=ue,se&&ge.setAttributes(he,se),he},ge.createImage=function(ue){var se=document.createElementNS("http://www.w3.org/2000/svg","image");return ue&&ge.setAttributes(se,ue),se},ge.createPoint=function(ue,se){var he=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return he.x=ue,he.y=se,he},ge.createPath=function(ue,se){var he=document.createElementNS("http://www.w3.org/2000/svg","path");return he.setAttribute("d",ue),se&&ge.setAttributes(he,se),he},ge}(),Fe=function(){function ge(){}return ge.addKey=function(ue){ge.key=ue},Object.defineProperty(ge,"isLicensed",{get:function(){return!!ge.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ge.key)},enumerable:!1,configurable:!0}),ge}(),be=function(){function ge(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ge.prototype.rasterize=function(ue,se,he){var fe=this;return new Promise(function(ce){var Ae=he!==void 0?he:document.createElement("canvas");ue===null&&(fe.markersOnly=!0,fe.naturalSize=!1);var rt=document.createElementNS("http://www.w3.org/2000/svg","svg");rt.setAttribute("xmlns","http://www.w3.org/2000/svg"),rt.setAttribute("width",se.width.baseVal.valueAsString),rt.setAttribute("height",se.height.baseVal.valueAsString),rt.setAttribute("viewBox","0 0 "+se.viewBox.baseVal.width.toString()+" "+se.viewBox.baseVal.height.toString()),rt.innerHTML=se.innerHTML,fe.naturalSize===!0?(rt.width.baseVal.value=ue.naturalWidth,rt.height.baseVal.value=ue.naturalHeight):fe.width!==void 0&&fe.height!==void 0&&(rt.width.baseVal.value=fe.width,rt.height.baseVal.value=fe.height),Ae.width=rt.width.baseVal.value,Ae.height=rt.height.baseVal.value;var Le=rt.outerHTML,Ke=Ae.getContext("2d");fe.markersOnly!==!0&&Ke.drawImage(ue,0,0,Ae.width,Ae.height);var Lt=window.URL,xt=new Image(Ae.width,Ae.height);xt.setAttribute("crossOrigin","anonymous");var Ye=new Blob([Le],{type:"image/svg+xml"}),Pt=Lt.createObjectURL(Ye);xt.onload=function(){Ke.drawImage(xt,0,0),Lt.revokeObjectURL(Pt);var hn=Ae.toDataURL(fe.imageType,fe.imageQuality);ce(hn)},xt.src=Pt})},ge}(),Ce=function(){},_e=function(){function ge(ue){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ue+"_"}return Object.defineProperty(ge.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ge.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(ge.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ge.prototype.addClass=function(ue){return this.styleSheet===void 0&&this.addStyleSheet(),ue.name=""+this.classNamePrefix+ue.localName,this.classes.push(ue),this.styleSheet.sheet.insertRule("."+ue.name+" {"+ue.style+"}",this.styleSheet.sheet.cssRules.length),ue},ge.prototype.addRule=function(ue){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ue),this.styleSheet.sheet.insertRule(ue.selector+" {"+ue.style+"}",this.styleSheet.sheet.cssRules.length)},ge.prototype.addStyleSheet=function(){var ue;this.styleSheet=document.createElement("style"),((ue=this.styleSheetRoot)!==null&&ue!==void 0?ue:document.head).appendChild(this.styleSheet),this.addRule(new ft("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ft("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new ft("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Ie("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Ie("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},ge.prototype.removeStyleSheet=function(){var ue;this.styleSheet&&(((ue=this.styleSheetRoot)!==null&&ue!==void 0?ue:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ge}(),ft=function(ge,ue){this.selector=ge,this.style=ue},Ie=function(ge,ue){this.localName=ge,this.style=ue},Ge=function(){function ge(ue,se,he,fe,ce){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ue,this.displayMode=se,this.markerItems=he,this.uiStyleSettings=fe,this.styles=ce,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ge.prototype.show=function(ue){var se=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ue,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(ce){var Ae=document.createElement("div");Ae.className=""+se.toolbarButtonStyleClass.name,Ae.setAttribute("data-type-name",ce.typeName),Ae.innerHTML=ce.icon,Ae.addEventListener("click",function(){se.markerToolbarButtonClicked(Ae,ce)}),se.buttons.push(Ae),se.markerButtons.push(Ae)}),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 fe=document.createElement("div");fe.className=this.toolbarBlockStyleClass.name,fe.style.whiteSpace="nowrap",fe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(fe),this.addActionButton(fe,'<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(fe,'<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()},ge.prototype.addButtonClickListener=function(ue){this.buttonClickListeners.push(ue)},ge.prototype.removeButtonClickListener=function(ue){this.buttonClickListeners.indexOf(ue)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ue),1)},ge.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ge.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ue=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var se=0;se<this.markerButtons.length;se++)se<ue||se===ue&&this.markerButtons.length-1===ue?this.markerButtonBlock.appendChild(this.markerButtons[se]):(se===ue&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[se]))}},ge.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")},ge.prototype.resetButtonStyles=function(){var ue=this;this.buttons.forEach(function(se){se.className=se.className.replace(ue.uiStyleSettings.toolbarButtonStyleColorsClassName?ue.uiStyleSettings.toolbarButtonStyleColorsClassName:ue.toolbarButtonStyleColorsClass.name,"").trim(),se.className=se.className.replace(ue.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ue.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ue.toolbarActiveButtonStyleColorsClass.name,"").trim(),se.className+=" "+(ue.uiStyleSettings.toolbarButtonStyleColorsClassName?ue.uiStyleSettings.toolbarButtonStyleColorsClassName:ue.toolbarButtonStyleColorsClass.name)})},ge.prototype.addActionButton=function(ue,se,he){var fe=this,ce=document.createElement("div");switch(ce.className=""+this.toolbarButtonStyleClass.name,ce.innerHTML=se,ce.setAttribute("data-action",he),ce.addEventListener("click",function(){fe.actionToolbarButtonClicked(ce,he)}),he){case"select":ce.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ce.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ce.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ce.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ce.style.fill=this.uiStyleSettings.closeButtonColor}ue.appendChild(ce),this.buttons.push(ce)},ge.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ie("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 Ie("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ie("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ie("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 Ie("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var ue=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ie("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ue)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ue)+`px;
|
|
|
padding: `+ue+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Ie("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ie("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ft("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new ft("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},ge.prototype.markerToolbarButtonClicked=function(ue,se){this.setActiveButton(ue),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(he){return he("marker",se)}),this.markerButtonOverflowBlock.style.display="none"},ge.prototype.actionToolbarButtonClicked=function(ue,se){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(he){return he("action",se)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ge.prototype.setActiveButton=function(ue){this.resetButtonStyles(),ue.className=ue.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ue.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ge.prototype.setActiveMarkerButton=function(ue){var se=this.markerButtons.find(function(he){return he.getAttribute("data-type-name")===ue});se&&this.setActiveButton(se)},ge.prototype.setCurrentMarker=function(ue){var se=this;this.currentMarker=ue,this.buttons.filter(function(he){return/delete|notes/.test(he.getAttribute("data-action"))}).forEach(function(he){se.currentMarker===void 0?(he.style.fillOpacity="0.4",he.style.pointerEvents="none"):(he.style.fillOpacity="1",he.style.pointerEvents="all")})},ge}(),wt=function(){function ge(ue,se,he,fe){this.panels=[],this.panelButtons=[],this.markerjsContainer=ue,this.displayMode=se,this.uiStyleSettings=he,this.styles=fe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ge.prototype.addStyles=function(){var ue;this.toolboxStyleClass=this.styles.addClass(new Ie("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 Ie("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var se=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ie("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ie("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ie("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 Ie("toolbox-panel-row_colors",`
|
|
|
background-color: `+((ue=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ue!==void 0?ue:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ie("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*se)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*se)+`px;
|
|
|
padding: `+se+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ie("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ie("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new ft("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ft("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},ge.prototype.show=function(ue){var se;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ue,this.uiContainer.className=this.toolboxStyleClass.name+" "+((se=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&se!==void 0?se:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ge.prototype.setPanelButtons=function(ue){var se,he,fe=this;this.panels=ue,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((se=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&se!==void 0?se: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(ce){var Ae;ce.uiStyleSettings=fe.uiStyleSettings;var rt=document.createElement("div");rt.className=fe.toolboxButtonStyleClass.name+" "+((Ae=fe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ae!==void 0?Ae:fe.toolboxButtonStyleColorsClass.name),rt.innerHTML=ce.icon,rt.title=ce.title,rt.addEventListener("click",function(){fe.panelButtonClick(ce)}),fe.panelButtons.push(rt),fe.buttonRow.appendChild(rt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ge.prototype.panelButtonClick=function(ue){var se=this,he=-1;if(ue!==this.activePanel){he=this.panels.indexOf(ue),this.panelRow.innerHTML="";var fe=ue.getUi();fe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(fe),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=ue}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){se.displayMode==="inline"?se.panelRow.style.display="none":se.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ce,Ae){var rt,Le;ce.className=se.toolboxButtonStyleClass.name+" "+(Ae===he?""+((rt=se.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&rt!==void 0?rt:se.toolboxActiveButtonStyleColorsClass.name):""+((Le=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Le!==void 0?Le:se.toolboxButtonStyleColorsClass.name))})},ge}(),ut=function(ge,ue){this.title=ge,this.icon=ue},yt=function(ge){function ue(se,he,fe,ce){var Ae=ge.call(this,se,ce||'<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 Ae.colors=[],Ae.addTransparent=!1,Ae.colorBoxes=[],Ae.colors=he,Ae.currentColor=fe,Ae.setCurrentColor=Ae.setCurrentColor.bind(Ae),Ae.getColorBox=Ae.getColorBox.bind(Ae),Ae}return Oe(ue,ge),ue.prototype.getUi=function(){var se=this,he=document.createElement("div");return he.style.overflow="hidden",he.style.whiteSpace="nowrap",this.colors.forEach(function(fe){var ce=se.getColorBox(fe);he.appendChild(ce),se.colorBoxes.push(ce)}),he},ue.prototype.getColorBox=function(se){var he=this,fe=this.uiStyleSettings.toolbarHeight/4,ce=this.uiStyleSettings.toolbarHeight-fe,Ae=document.createElement("div");Ae.style.display="inline-block",Ae.style.boxSizing="content-box",Ae.style.width=ce-2+"px",Ae.style.height=ce-2+"px",Ae.style.padding="1px",Ae.style.marginRight="2px",Ae.style.marginBottom="2px",Ae.style.borderWidth="2px",Ae.style.borderStyle="solid",Ae.style.borderRadius=(ce+2)/2+"px",Ae.style.borderColor=se===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ae.addEventListener("click",function(){he.setCurrentColor(se,Ae)});var rt=document.createElement("div");return rt.style.display="inline-block",rt.style.width=ce-2+"px",rt.style.height=ce-2+"px",rt.style.backgroundColor=se,rt.style.borderRadius=ce/2+"px",se==="transparent"&&(rt.style.fill=this.uiStyleSettings.toolboxAccentColor,rt.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>`),Ae.appendChild(rt),Ae},ue.prototype.setCurrentColor=function(se,he){var fe=this;this.currentColor=se,this.colorBoxes.forEach(function(ce){ce.style.borderColor=ce===he?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(se)},ue}(ut),lt=function(){function ge(ue,se,he){this._state="new",this._isSelected=!1,this._container=ue,this._overlayContainer=se,this.globalSettings=he,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ge.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ge.prototype.ownsTarget=function(ue){return!1},Object.defineProperty(ge.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ge.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ge.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ge.prototype.pointerDown=function(ue,se){},ge.prototype.dblClick=function(ue,se){},ge.prototype.manipulate=function(ue){},ge.prototype.pointerUp=function(ue){this.stateChanged()},ge.prototype.dispose=function(){},ge.prototype.addMarkerVisualToContainer=function(ue){this.container.childNodes.length>0?this.container.insertBefore(ue,this.container.childNodes[0]):this.container.appendChild(ue)},ge.prototype.getState=function(){return{typeName:ge.typeName,state:this.state,notes:this.notes}},ge.prototype.restoreState=function(ue){this._state=ue.state,this.notes=ue.notes},ge.prototype.scale=function(ue,se){},ge.prototype.colorChanged=function(ue){this.onColorChanged&&this.onColorChanged(ue),this.stateChanged()},ge.prototype.fillColorChanged=function(ue){this.onFillColorChanged&&this.onFillColorChanged(ue),this.stateChanged()},ge.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ue=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ue.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ue)&&this.onStateChanged(this)}},ge.typeName="MarkerBase",ge}(),ht=function(){function ge(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ge.prototype.findGripByVisual=function(ue){return this.topLeft.ownsTarget(ue)?this.topLeft:this.topCenter.ownsTarget(ue)?this.topCenter:this.topRight.ownsTarget(ue)?this.topRight:this.centerLeft.ownsTarget(ue)?this.centerLeft:this.centerRight.ownsTarget(ue)?this.centerRight:this.bottomLeft.ownsTarget(ue)?this.bottomLeft:this.bottomCenter.ownsTarget(ue)?this.bottomCenter:this.bottomRight.ownsTarget(ue)?this.bottomRight:void 0},ge}(),Vt=function(){function ge(){this.GRIP_SIZE=10,this.visual=Te.createGroup(),this.visual.appendChild(Te.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Te.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ge.prototype.ownsTarget=function(ue){return ue===this.visual||ue===this.visual.childNodes[0]||ue===this.visual.childNodes[1]},ge}(),ot=function(){function ge(){}return ge.toITransformMatrix=function(ue){return{a:ue.a,b:ue.b,c:ue.c,d:ue.d,e:ue.e,f:ue.f}},ge.toSVGMatrix=function(ue,se){return ue.a=se.a,ue.b=se.b,ue.c=se.c,ue.d=se.d,ue.e=se.e,ue.f=se.f,ue},ge}(),gt=function(ge){function ue(se,he,fe){var ce=ge.call(this,se,he,fe)||this;return ce.left=0,ce.top=0,ce.width=0,ce.height=0,ce.defaultSize={x:50,y:20},ce.offsetX=0,ce.offsetY=0,ce.rotationAngle=0,ce.CB_DISTANCE=10,ce._suppressMarkerCreateEvent=!1,ce.container.transform.baseVal.appendItem(Te.createTransform()),ce.setupControlBox(),ce}return Oe(ue,ge),Object.defineProperty(ue.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"visual",{get:function(){return this._visual},set:function(se){this._visual=se;var he=Te.createTransform();this._visual.transform.baseVal.appendItem(he)},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(se){return!!ge.prototype.ownsTarget.call(this,se)||!!(this.controlGrips.findGripByVisual(se)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(se))},ue.prototype.pointerDown=function(se,he){ge.prototype.pointerDown.call(this,se,he),this.state==="new"&&(this.left=se.x,this.top=se.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var fe=this.unrotatePoint(se);if(this.manipulationStartX=fe.x,this.manipulationStartY=fe.y,this.offsetX=fe.x-this.left,this.offsetY=fe.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 ce=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ce.x-this.width/2,this.top=ce.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ae=this.container.transform.baseVal.getItem(0);Ae.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ae,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ue.prototype.pointerUp=function(se){var he=this.state;ge.prototype.pointerUp.call(this,se),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(se),this._state="select",he==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ue.prototype.moveVisual=function(se){this.visual.style.transform="translate("+se.x+"px, "+se.y+"px)"},ue.prototype.manipulate=function(se){var he=this.unrotatePoint(se);this.state==="creating"?this.resize(se):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(se)},ue.prototype.resize=function(se){var he=this.manipulationStartLeft,fe=this.manipulationStartWidth,ce=this.manipulationStartTop,Ae=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:he=this.manipulationStartLeft+se.x-this.manipulationStartX,fe=this.manipulationStartWidth+this.manipulationStartLeft-he;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:fe=this.manipulationStartWidth+se.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ce=this.manipulationStartTop+se.y-this.manipulationStartY,Ae=this.manipulationStartHeight+this.manipulationStartTop-ce;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ae=this.manipulationStartHeight+se.y-this.manipulationStartY}fe>=0?(this.left=he,this.width=fe):(this.left=he+fe,this.width=-fe),Ae>=0?(this.top=ce,this.height=Ae):(this.top=ce+Ae,this.height=-Ae),this.setSize()},ue.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ue.prototype.rotate=function(se){if(Math.abs(se.x-this.centerX)>.1){var he=Math.sign(se.x-this.centerX);this.rotationAngle=180*Math.atan((se.y-this.centerY)/(se.x-this.centerX))/Math.PI+90*he,this.applyRotation()}},ue.prototype.applyRotation=function(){var se=this.container.transform.baseVal.getItem(0);se.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(se,0)},ue.prototype.rotatePoint=function(se){if(this.rotationAngle===0)return se;var he=this.container.getCTM(),fe=Te.createPoint(se.x,se.y);return{x:(fe=fe.matrixTransform(he)).x,y:fe.y}},ue.prototype.unrotatePoint=function(se){if(this.rotationAngle===0)return se;var he=this.container.getCTM();he=he.inverse();var fe=Te.createPoint(se.x,se.y);return{x:(fe=fe.matrixTransform(he)).x,y:fe.y}},ue.prototype.select=function(){ge.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){ge.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=Te.createGroup();var se=Te.createTransform();se.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(se),this.container.appendChild(this.controlBox),this.controlRect=Te.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=Te.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 ht,this.addControlGrips(),this.controlBox.style.display="none"},ue.prototype.adjustControlBox=function(){var se=this.controlBox.transform.baseVal.getItem(0);se.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(se,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()},ue.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()},ue.prototype.createGrip=function(){var se=new Vt;return se.visual.transform.baseVal.appendItem(Te.createTransform()),this.controlBox.appendChild(se.visual),se},ue.prototype.positionGrips=function(){var se=this.controlGrips.topLeft.GRIP_SIZE,he=-se/2,fe=he,ce=(this.width+this.CB_DISTANCE)/2-se/2,Ae=(this.height+this.CB_DISTANCE)/2-se/2,rt=this.height+this.CB_DISTANCE-se/2,Le=this.width+this.CB_DISTANCE-se/2;this.positionGrip(this.controlGrips.topLeft.visual,he,fe),this.positionGrip(this.controlGrips.topCenter.visual,ce,fe),this.positionGrip(this.controlGrips.topRight.visual,Le,fe),this.positionGrip(this.controlGrips.centerLeft.visual,he,Ae),this.positionGrip(this.controlGrips.centerRight.visual,Le,Ae),this.positionGrip(this.controlGrips.bottomLeft.visual,he,rt),this.positionGrip(this.controlGrips.bottomCenter.visual,ce,rt),this.positionGrip(this.controlGrips.bottomRight.visual,Le,rt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ce,fe-3*this.CB_DISTANCE)},ue.prototype.positionGrip=function(se,he,fe){var ce=se.transform.baseVal.getItem(0);ce.setTranslate(he,fe),se.transform.baseVal.replaceItem(ce,0)},ue.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ue.prototype.showControlBox=function(){this.controlBox.style.display=""},ue.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ot.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ot.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ge.prototype.getState.call(this))},ue.prototype.restoreState=function(se){ge.prototype.restoreState.call(this,se);var he=se;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(ot.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,he.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ot.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,he.containerTransformMatrix))},ue.prototype.scale=function(se,he){ge.prototype.scale.call(this,se,he);var fe=this.rotatePoint({x:this.left,y:this.top}),ce=this.unrotatePoint({x:fe.x*se,y:fe.y*he});this.left=ce.x,this.top=ce.y,this.width=this.width*se,this.height=this.height*he,this.adjustControlBox()},ue}(lt),Ve=function(ge){function ue(se,he,fe){var ce=ge.call(this,se,he,fe)||this;return ce.fillColor="transparent",ce.strokeColor="transparent",ce.strokeWidth=0,ce.strokeDasharray="",ce.opacity=1,ce.setStrokeColor=ce.setStrokeColor.bind(ce),ce.setFillColor=ce.setFillColor.bind(ce),ce.setStrokeWidth=ce.setStrokeWidth.bind(ce),ce.setStrokeDasharray=ce.setStrokeDasharray.bind(ce),ce.createVisual=ce.createVisual.bind(ce),ce}return Oe(ue,ge),ue.prototype.ownsTarget=function(se){return!(!ge.prototype.ownsTarget.call(this,se)&&se!==this.visual)},ue.prototype.createVisual=function(){this.visual=Te.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)},ue.prototype.pointerDown=function(se,he){ge.prototype.pointerDown.call(this,se,he),this.state==="new"&&(this.createVisual(),this.moveVisual(se),this._state="creating")},ue.prototype.manipulate=function(se){ge.prototype.manipulate.call(this,se)},ue.prototype.resize=function(se){ge.prototype.resize.call(this,se),this.setSize()},ue.prototype.setSize=function(){ge.prototype.setSize.call(this),Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(se){ge.prototype.pointerUp.call(this,se),this.setSize()},ue.prototype.setStrokeColor=function(se){this.strokeColor=se,this.visual&&Te.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(se),this.stateChanged()},ue.prototype.setFillColor=function(se){this.fillColor=se,this.visual&&Te.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ue.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.visual&&Te.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,this.visual&&Te.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ue.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ge.prototype.getState.call(this))},ue.prototype.restoreState=function(se){var he=se;this.fillColor=he.fillColor,this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.opacity=he.opacity,this.createVisual(),ge.prototype.restoreState.call(this,se),this.setSize()},ue.prototype.scale=function(se,he){ge.prototype.scale.call(this,se,he),this.setSize()},ue.title="Rectangle marker",ue}(gt),Me=function(ge){function ue(se,he,fe,ce){var Ae=ge.call(this,se,ce||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ae.widths=[],Ae.widthBoxes=[],Ae.widths=he,Ae.currentWidth=fe,Ae.setCurrentWidth=Ae.setCurrentWidth.bind(Ae),Ae}return Oe(ue,ge),ue.prototype.getUi=function(){var se=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",this.widths.forEach(function(fe){var ce=document.createElement("div");ce.style.display="flex",ce.style.flexGrow="2",ce.style.alignItems="center",ce.style.justifyContent="space-between",ce.style.padding="5px",ce.style.borderWidth="2px",ce.style.borderStyle="solid",ce.style.borderColor=fe===se.currentWidth?se.uiStyleSettings.toolboxAccentColor:"transparent",ce.addEventListener("click",function(){se.setCurrentWidth(fe,ce)}),he.appendChild(ce);var Ae=document.createElement("div");Ae.innerText=fe.toString(),Ae.style.marginRight="5px",ce.appendChild(Ae);var rt=document.createElement("div");rt.style.minHeight="20px",rt.style.flexGrow="2",rt.style.display="flex",rt.style.alignItems="center";var Le=document.createElement("hr");Le.style.minWidth="20px",Le.style.border="0px",Le.style.borderTop=fe+"px solid "+se.uiStyleSettings.toolboxColor,Le.style.flexGrow="2",rt.appendChild(Le),ce.appendChild(rt),se.widthBoxes.push(ce)}),he},ue.prototype.setCurrentWidth=function(se,he){var fe=this;this.currentWidth=se,this.widthBoxes.forEach(function(ce){ce.style.borderColor=ce===he?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ue}(ut),Ue=function(ge){function ue(se,he,fe,ce){var Ae=ge.call(this,se,ce||'<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 Ae.styles=[],Ae.styleBoxes=[],Ae.styles=he,Ae.currentStyle=fe,Ae.setCurrentStyle=Ae.setCurrentStyle.bind(Ae),Ae}return Oe(ue,ge),ue.prototype.getUi=function(){var se=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",this.styles.forEach(function(fe){var ce=document.createElement("div");ce.style.display="flex",ce.style.alignItems="center",ce.style.justifyContent="space-between",ce.style.padding="5px",ce.style.borderWidth="2px",ce.style.borderStyle="solid",ce.style.overflow="hidden",ce.style.maxWidth=100/se.styles.length-5+"%",ce.style.borderColor=fe===se.currentStyle?se.uiStyleSettings.toolboxAccentColor:"transparent",ce.addEventListener("click",function(){se.setCurrentStyle(fe,ce)}),he.appendChild(ce);var Ae=document.createElement("div");Ae.style.minHeight="20px",Ae.style.flexGrow="2",Ae.style.overflow="hidden";var rt=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+se.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(fe!==""?'stroke-dasharray="'+fe+'"':"")+` />
|
|
|
</svg>`;Ae.innerHTML=rt,ce.appendChild(Ae),se.styleBoxes.push(ce)}),he},ue.prototype.setCurrentStyle=function(se,he){var fe=this;this.currentStyle=se,this.styleBoxes.forEach(function(ce){ce.style.borderColor=ce===he?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ue}(ut),tt=function(ge){function ue(se,he,fe){var ce=ge.call(this,se,he,fe)||this;return ce.strokeColor=fe.defaultColor,ce.strokeWidth=fe.defaultStrokeWidth,ce.strokeDasharray=fe.defaultStrokeDasharray,ce.strokePanel=new yt("Line color",fe.defaultColorSet,fe.defaultColor),ce.strokePanel.onColorChanged=ce.setStrokeColor,ce.strokeWidthPanel=new Me("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),ce.strokeWidthPanel.onWidthChanged=ce.setStrokeWidth,ce.strokeStylePanel=new Ue("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),ce.strokeStylePanel.onStyleChanged=ce.setStrokeDasharray,ce}return Oe(ue,ge),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=ge.prototype.getState.call(this);return se.typeName=ue.typeName,se},ue.typeName="FrameMarker",ue.title="Frame marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ue}(Ve),mt=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"},Je=function(ge){function ue(se,he,fe){var ce=ge.call(this,se,he,fe)||this;return ce.x1=0,ce.y1=0,ce.x2=0,ce.y2=0,ce.defaultLength=50,ce.manipulationStartX=0,ce.manipulationStartY=0,ce.manipulationStartX1=0,ce.manipulationStartY1=0,ce.manipulationStartX2=0,ce.manipulationStartY2=0,ce.setupControlBox(),ce}return Oe(ue,ge),ue.prototype.ownsTarget=function(se){return!!ge.prototype.ownsTarget.call(this,se)||!(!this.grip1.ownsTarget(se)&&!this.grip2.ownsTarget(se))},ue.prototype.pointerDown=function(se,he){ge.prototype.pointerDown.call(this,se,he),this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.state==="new"&&(this.x1=se.x,this.y1=se.y,this.x2=se.x,this.y2=se.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")},ue.prototype.pointerUp=function(se){var he=this.state;ge.prototype.pointerUp.call(this,se),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(se),this._state="select",he==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ue.prototype.adjustVisual=function(){},ue.prototype.manipulate=function(se){this.state==="creating"?this.resize(se):this.state==="move"?(this.x1=this.manipulationStartX1+se.x-this.manipulationStartX,this.y1=this.manipulationStartY1+se.y-this.manipulationStartY,this.x2=this.manipulationStartX2+se.x-this.manipulationStartX,this.y2=this.manipulationStartY2+se.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(se)},ue.prototype.resize=function(se){switch(this.activeGrip){case this.grip1:this.x1=se.x,this.y1=se.y;break;case this.grip2:case void 0:this.x2=se.x,this.y2=se.y}this.adjustVisual(),this.adjustControlBox()},ue.prototype.select=function(){ge.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){ge.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=Te.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ue.prototype.adjustControlBox=function(){this.positionGrips()},ue.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ue.prototype.createGrip=function(){var se=new Vt;return se.visual.transform.baseVal.appendItem(Te.createTransform()),this.controlBox.appendChild(se.visual),se},ue.prototype.positionGrips=function(){var se=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-se/2,this.y1-se/2),this.positionGrip(this.grip2.visual,this.x2-se/2,this.y2-se/2)},ue.prototype.positionGrip=function(se,he,fe){var ce=se.transform.baseVal.getItem(0);ce.setTranslate(he,fe),se.transform.baseVal.replaceItem(ce,0)},ue.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ge.prototype.getState.call(this))},ue.prototype.restoreState=function(se){ge.prototype.restoreState.call(this,se);var he=se;this.x1=he.x1,this.y1=he.y1,this.x2=he.x2,this.y2=he.y2},ue.prototype.scale=function(se,he){ge.prototype.scale.call(this,se,he),this.x1=this.x1*se,this.y1=this.y1*he,this.x2=this.x2*se,this.y2=this.y2*he,this.adjustVisual(),this.adjustControlBox()},ue}(lt),kt=function(ge){function ue(se,he,fe){var ce=ge.call(this,se,he,fe)||this;return ce.strokeColor="transparent",ce.strokeWidth=0,ce.strokeDasharray="",ce.setStrokeColor=ce.setStrokeColor.bind(ce),ce.setStrokeWidth=ce.setStrokeWidth.bind(ce),ce.setStrokeDasharray=ce.setStrokeDasharray.bind(ce),ce.strokeColor=fe.defaultColor,ce.strokeWidth=fe.defaultStrokeWidth,ce.strokeDasharray=fe.defaultStrokeDasharray,ce.strokePanel=new yt("Line color",fe.defaultColorSet,fe.defaultColor),ce.strokePanel.onColorChanged=ce.setStrokeColor,ce.strokeWidthPanel=new Me("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),ce.strokeWidthPanel.onWidthChanged=ce.setStrokeWidth,ce.strokeStylePanel=new Ue("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),ce.strokeStylePanel.onStyleChanged=ce.setStrokeDasharray,ce}return Oe(ue,ge),ue.prototype.ownsTarget=function(se){return!(!ge.prototype.ownsTarget.call(this,se)&&se!==this.visual&&se!==this.selectorLine&&se!==this.visibleLine)},ue.prototype.createVisual=function(){this.visual=Te.createGroup(),this.selectorLine=Te.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Te.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)},ue.prototype.pointerDown=function(se,he){ge.prototype.pointerDown.call(this,se,he),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ue.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()),Te.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Te.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Te.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ue.prototype.setStrokeColor=function(se){this.strokeColor=se,this.adjustVisual(),this.colorChanged(se)},ue.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ge.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){ge.prototype.restoreState.call(this,se);var he=se;this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.createVisual(),this.adjustVisual()},ue.typeName="LineMarker",ue.title="Line marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ue}(Je),st=function(ge){function ue(se,he,fe,ce){var Ae=ge.call(this,se,ce||'<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 Ae.fonts=[],Ae.fontBoxes=[],Ae.fonts=he,Ae.currentFont=fe,Ae.setCurrentFont=Ae.setCurrentFont.bind(Ae),Ae}return Oe(ue,ge),ue.prototype.getUi=function(){var se=this,he=document.createElement("div");return he.style.overflow="hidden",he.style.flexGrow="2",this.fonts.forEach(function(fe){var ce=document.createElement("div");ce.style.display="inline-block",ce.style.alignItems="center",ce.style.justifyContent="space-between",ce.style.padding="5px",ce.style.borderWidth="2px",ce.style.borderStyle="solid",ce.style.overflow="hidden",ce.style.maxWidth=100/se.fonts.length-5+"%",ce.style.borderColor=fe===se.currentFont?se.uiStyleSettings.toolboxAccentColor:"transparent",ce.addEventListener("click",function(){se.setCurrentFont(fe,ce)}),he.appendChild(ce);var Ae=document.createElement("div");Ae.style.display="flex",Ae.style.minHeight="20px",Ae.style.flexGrow="2",Ae.style.fontFamily=fe,Ae.style.overflow="hidden";var rt=document.createElement("div");rt.style.whiteSpace="nowrap",rt.style.overflow="hidden",rt.style.textOverflow="ellipsis",rt.innerHTML="The quick brown fox jumps over the lazy dog",Ae.appendChild(rt),ce.appendChild(Ae),se.fontBoxes.push(ce)}),he},ue.prototype.setCurrentFont=function(se,he){var fe=this;this.currentFont=se,this.fontBoxes.forEach(function(ce){ce.style.borderColor=ce===he?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ue}(ut),Tt=function(ge){function ue(se,he,fe){var ce=ge.call(this,se,he,fe)||this;return ce.color="transparent",ce.padding=5,ce.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ce.text=ce.DEFAULT_TEXT,ce.isMoved=!1,ce.color=fe.defaultColor,ce.fontFamily=fe.defaultFontFamily,ce.defaultSize={x:100,y:30},ce.setColor=ce.setColor.bind(ce),ce.setFont=ce.setFont.bind(ce),ce.renderText=ce.renderText.bind(ce),ce.sizeText=ce.sizeText.bind(ce),ce.textEditDivClicked=ce.textEditDivClicked.bind(ce),ce.showTextEditor=ce.showTextEditor.bind(ce),ce.setSize=ce.setSize.bind(ce),ce.positionTextEditor=ce.positionTextEditor.bind(ce),ce.colorPanel=new yt("Color",fe.defaultColorSet,fe.defaultColor),ce.colorPanel.onColorChanged=ce.setColor,ce.fontFamilyPanel=new st("Font",fe.defaultFontFamilies,fe.defaultFontFamily),ce.fontFamilyPanel.onFontChanged=ce.setFont,ce}return Oe(ue,ge),ue.prototype.ownsTarget=function(se){if(ge.prototype.ownsTarget.call(this,se)||se===this.visual||se===this.textElement||se===this.bgRectangle)return!0;var he=!1;return this.textElement.childNodes.forEach(function(fe){fe===se&&(he=!0)}),he},ue.prototype.createVisual=function(){this.visual=Te.createGroup(),this.bgRectangle=Te.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Te.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Te.createTransform()),this.textElement.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ue.prototype.pointerDown=function(se,he){ge.prototype.pointerDown.call(this,se,he),this.isMoved=!1,this.pointerDownPoint=se,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(se),this._state="creating")},ue.prototype.renderText=function(){var se=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){se.textElement.appendChild(Te.createTSpan(he.trim()===""?" ":he.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ue.prototype.getTextScale=function(){var se=this.textElement.getBBox(),he=1;if(se.width>0&&se.height>0){var fe=(1*this.width-this.width*this.padding*2/100)/se.width,ce=(1*this.height-this.height*this.padding*2/100)/se.height;he=Math.min(fe,ce)}return he},ue.prototype.getTextPosition=function(se){var he=this.textElement.getBBox(),fe=0,ce=0;return he.width>0&&he.height>0&&(fe=(this.width-he.width*se)/2,ce=this.height/2-he.height*se/2),{x:fe,y:ce}},ue.prototype.sizeText=function(){var se=this.textElement.getBBox(),he=this.getTextScale(),fe=this.getTextPosition(he);fe.y-=se.y*he,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+fe.x+"px, "+fe.y+"px) scale("+he+", "+he+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(fe.x,fe.y),this.textElement.transform.baseVal.getItem(1).setScale(he,he))},ue.prototype.manipulate=function(se){ge.prototype.manipulate.call(this,se),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(se.x-this.pointerDownPoint.x)>5||Math.abs(se.y-this.pointerDownPoint.y)>5)},ue.prototype.resize=function(se){ge.prototype.resize.call(this,se),this.isMoved=!0,this.setSize(),this.sizeText()},ue.prototype.setSize=function(){ge.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Te.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ue.prototype.pointerUp=function(se){var he=this.state;he==="creating"&&(this._suppressMarkerCreateEvent=!0),ge.prototype.pointerUp.call(this,se),this.setSize(),(he==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.showTextEditor=function(){var se=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(se.textEditor.style.fontSize);se.textEditor.clientWidth>=Number.parseInt(se.textEditor.style.maxWidth)&&he>.9;)he-=.1,se.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 fe=he.clipboardData.getData("text"),ce=window.getSelection();if(!ce.rangeCount)return!1;ce.deleteFromDocument(),ce.getRangeAt(0).insertNode(document.createTextNode(fe)),he.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){se.textEditDivClicked(se.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ue.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var se=this.getTextScale(),he=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),fe=this.textElement.getBBox(),ce={x:fe.width*se,y:fe.height*se};he.x-=ce.x/2,he.y-=ce.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*se,12)+"px",this.textElement.style.display="none"}},ue.prototype.textEditDivClicked=function(se){this.text=se.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ue.prototype.select=function(){ge.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ue.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ge.prototype.deselect.call(this)},ue.prototype.dblClick=function(se,he){ge.prototype.dblClick.call(this,se,he),this.showTextEditor()},ue.prototype.setColor=function(se){this.textElement&&Te.setAttributes(this.textElement,[["fill",se]]),this.color=se,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(se)},ue.prototype.setFont=function(se){this.textElement&&Te.setAttributes(this.textElement,[["font-family",se]]),this.fontFamily=se,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ue.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ue.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ge.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){var he=se;this.color=he.color,this.fontFamily=he.fontFamily,this.padding=he.padding,this.text=he.text,this.createVisual(),ge.prototype.restoreState.call(this,se),this.setSize()},ue.prototype.scale=function(se,he){ge.prototype.scale.call(this,se,he),this.setSize(),this.sizeText(),this.positionTextEditor()},ue.typeName="TextMarker",ue.title="Text marker",ue.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>',ue}(gt),nt=function(ge){function ue(se,he,fe){var ce=ge.call(this,se,he,fe)||this;return ce.color="transparent",ce.lineWidth=3,ce.drawing=!1,ce.pixelRatio=1,ce.color=fe.defaultColor,ce.lineWidth=fe.defaultStrokeWidth,ce.pixelRatio=fe.freehandPixelRatio,ce.setColor=ce.setColor.bind(ce),ce.addCanvas=ce.addCanvas.bind(ce),ce.finishCreation=ce.finishCreation.bind(ce),ce.setLineWidth=ce.setLineWidth.bind(ce),ce.colorPanel=new yt("Color",fe.defaultColorSet,fe.defaultColor),ce.colorPanel.onColorChanged=ce.setColor,ce.lineWidthPanel=new Me("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),ce.lineWidthPanel.onWidthChanged=ce.setLineWidth,ce}return Oe(ue,ge),ue.prototype.ownsTarget=function(se){return!(!ge.prototype.ownsTarget.call(this,se)&&se!==this.visual&&se!==this.drawingImage)},ue.prototype.createVisual=function(){this.visual=Te.createGroup(),this.drawingImage=Te.createImage(),this.visual.appendChild(this.drawingImage);var se=Te.createTransform();this.visual.transform.baseVal.appendItem(se),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(se,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(se.x,se.y),this.drawing=!0):ge.prototype.pointerDown.call(this,se,he)},ue.prototype.manipulate=function(se){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(se.x,se.y),this.canvasContext.stroke()):ge.prototype.manipulate.call(this,se)},ue.prototype.resize=function(se){ge.prototype.resize.call(this,se),Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Te.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(se){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ge.prototype.pointerUp.call(this,se)},ue.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)},ue.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ge.prototype.select.call(this)},ue.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ge.prototype.deselect.call(this)},ue.prototype.finishCreation=function(){for(var se=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),he=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],fe=he[0],ce=he[1],Ae=he[2],rt=he[3],Le=!1,Ke=0;Ke<this.canvasElement.height;Ke++)for(var Lt=0;Lt<this.canvasElement.width;Lt++)se.data[Ke*this.canvasElement.width*4+4*Lt+3]>0&&(Le=!0,Ke<ce&&(ce=Ke),Lt<fe&&(fe=Lt),Ke>rt&&(rt=Ke),Lt>Ae&&(Ae=Lt));if(Le){this.left=fe/this.pixelRatio,this.top=ce/this.pixelRatio,this.width=(Ae-fe)/this.pixelRatio,this.height=(rt-ce)/this.pixelRatio;var xt=document.createElement("canvas");xt.width=Ae-fe,xt.height=rt-ce,xt.getContext("2d").putImageData(this.canvasContext.getImageData(fe,ce,Ae-fe,rt-ce),0,0),this.drawingImgUrl=xt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ue.prototype.setDrawingImage=function(){Te.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Te.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ue.prototype.setColor=function(se){this.color=se,this.colorChanged(se)},ue.prototype.setLineWidth=function(se){this.lineWidth=se},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=Object.assign({drawingImgUrl:this.drawingImgUrl},ge.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){this.createVisual(),ge.prototype.restoreState.call(this,se),this.drawingImgUrl=se.drawingImgUrl,this.setDrawingImage()},ue.prototype.scale=function(se,he){ge.prototype.scale.call(this,se,he),this.setDrawingImage()},ue.typeName="FreehandMarker",ue.title="Freehand marker",ue.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>',ue}(gt),Yt=function(ge){function ue(se,he,fe){var ce=ge.call(this,se,fe||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ce.typeBoxes=[],ce.currentType=he,ce.setCurrentType=ce.setCurrentType.bind(ce),ce}return Oe(ue,ge),ue.prototype.getUi=function(){var se=this,he=document.createElement("div");he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2";for(var fe=function(rt){var Le="both";switch(rt){case 0:Le="both";break;case 1:Le="start";break;case 2:Le="end";break;case 3:Le="none"}var Ke=document.createElement("div");if(Ke.style.display="flex",Ke.style.flexGrow="2",Ke.style.alignItems="center",Ke.style.justifyContent="space-between",Ke.style.padding="5px",Ke.style.borderWidth="2px",Ke.style.borderStyle="solid",Ke.style.borderColor=Le===ce.currentType?ce.uiStyleSettings.toolboxAccentColor:"transparent",Ke.addEventListener("click",function(){se.setCurrentType(Le,Ke)}),he.appendChild(Ke),Le==="both"||Le==="start"){var Lt=document.createElement("div");Lt.style.display="flex",Lt.style.alignItems="center",Lt.style.minHeight="20px",Lt.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="`+(ce.uiStyleSettings!==void 0?ce.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Lt.style.marginLeft="5px",Ke.appendChild(Lt)}var xt=document.createElement("div");xt.style.display="flex",xt.style.alignItems="center",xt.style.minHeight="20px",xt.style.flexGrow="2";var Ye=document.createElement("hr");if(Ye.style.minWidth="20px",Ye.style.border="0px",Ye.style.borderTop="3px solid "+(ce.uiStyleSettings!==void 0?ce.uiStyleSettings.toolboxColor:"#eeeeee"),Ye.style.flexGrow="2",xt.appendChild(Ye),Ke.appendChild(xt),Le==="both"||Le==="end"){var Pt=document.createElement("div");Pt.style.display="flex",Pt.style.alignItems="center",Pt.style.minHeight="20px",Pt.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="`+(ce.uiStyleSettings!==void 0?ce.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Pt.style.marginRight="5px",Ke.appendChild(Pt)}ce.typeBoxes.push(Ke)},ce=this,Ae=0;Ae<4;Ae++)fe(Ae);return he},ue.prototype.setCurrentType=function(se,he){var fe=this;this.currentType=se,this.typeBoxes.forEach(function(ce){ce.style.borderColor=ce===he?fe.uiStyleSettings!==void 0?fe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ue}(ut),ln=function(ge){function ue(se,he,fe){var ce=ge.call(this,se,he,fe)||this;return ce.arrowType="end",ce.arrowBaseHeight=10,ce.arrowBaseWidth=10,ce.getArrowPoints=ce.getArrowPoints.bind(ce),ce.setArrowType=ce.setArrowType.bind(ce),ce.arrowTypePanel=new Yt("Arrow type","end"),ce.arrowTypePanel.onArrowTypeChanged=ce.setArrowType,ce}return Oe(ue,ge),ue.prototype.ownsTarget=function(se){return!(!ge.prototype.ownsTarget.call(this,se)&&se!==this.arrow1&&se!==this.arrow2)},ue.prototype.getArrowPoints=function(se,he){var fe=this.arrowBaseWidth+2*this.strokeWidth,ce=this.arrowBaseHeight+2*this.strokeWidth;return se-fe/2+","+(he+ce/2)+" "+se+","+(he-ce/2)+" "+(se+fe/2)+","+(he+ce/2)},ue.prototype.createTips=function(){this.arrow1=Te.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Te.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.arrow2)},ue.prototype.pointerDown=function(se,he){ge.prototype.pointerDown.call(this,se,he),this.state==="creating"&&this.createTips()},ue.prototype.adjustVisual=function(){if(ge.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",Te.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Te.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var se=0;Math.abs(this.x1-this.x2)>.1&&(se=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(se,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(he,0);var fe=this.arrow2.transform.baseVal.getItem(0);fe.setRotate(se+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(fe,0)}},ue.prototype.setArrowType=function(se){this.arrowType=se,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=Object.assign({arrowType:this.arrowType},ge.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){ge.prototype.restoreState.call(this,se);var he=se;this.arrowType=he.arrowType,this.createTips(),this.adjustVisual()},ue.typeName="ArrowMarker",ue.title="Arrow marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ue}(kt),tn=function(ge){function ue(se,he,fe){var ce=ge.call(this,se,he,fe)||this;return ce.fillColor=fe.defaultFillColor,ce.strokeWidth=0,ce.fillPanel=new yt("Color",fe.defaultColorSet,fe.defaultFillColor),ce.fillPanel.onColorChanged=ce.setFillColor,ce}return Oe(ue,ge),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=ge.prototype.getState.call(this);return se.typeName=ue.typeName,se},ue.typeName="CoverMarker",ue.title="Cover marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ue}(Ve),en=function(ge){function ue(se,he,fe,ce){var Ae=ge.call(this,se,ce||'<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 Ae.opacities=[],Ae.opacityBoxes=[],Ae.opacities=he,Ae.currentOpacity=fe,Ae.setCurrentOpacity=Ae.setCurrentOpacity.bind(Ae),Ae}return Oe(ue,ge),ue.prototype.getUi=function(){var se=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(fe){var ce=document.createElement("div");ce.style.display="flex",ce.style.alignItems="center",ce.style.justifyContent="center",ce.style.padding="5px",ce.style.borderWidth="2px",ce.style.borderStyle="solid",ce.style.borderColor=fe===se.currentOpacity?se.uiStyleSettings.toolboxAccentColor:"transparent",ce.addEventListener("click",function(){se.setCurrentOpacity(fe,ce)}),he.appendChild(ce);var Ae=document.createElement("div");Ae.innerText=100*fe+"%",ce.appendChild(Ae),se.opacityBoxes.push(ce)}),he},ue.prototype.setCurrentOpacity=function(se,he){var fe=this;this.currentOpacity=se,this.opacityBoxes.forEach(function(ce){ce.style.borderColor=ce===he?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ue}(ut),Ht=function(ge){function ue(se,he,fe){var ce=ge.call(this,se,he,fe)||this;return ce.setOpacity=ce.setOpacity.bind(ce),ce.fillColor=fe.defaultHighlightColor,ce.strokeWidth=0,ce.opacity=fe.defaultHighlightOpacity,ce.fillPanel=new yt("Color",fe.defaultColorSet,ce.fillColor),ce.fillPanel.onColorChanged=ce.setFillColor,ce.opacityPanel=new en("Opacity",fe.defaultOpacitySteps,ce.opacity),ce.opacityPanel.onOpacityChanged=ce.setOpacity,ce}return Oe(ue,ge),ue.prototype.setOpacity=function(se){this.opacity=se,this.visual&&Te.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=ge.prototype.getState.call(this);return se.typeName=ue.typeName,se},ue.typeName="HighlightMarker",ue.title="Highlight marker",ue.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>',ue}(tn),je='<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>',xe='<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>',Xe=function(ge){function ue(se,he,fe){var ce=ge.call(this,se,he,fe)||this;return ce.bgColor="transparent",ce.tipPosition={x:0,y:0},ce.tipBase1Position={x:0,y:0},ce.tipBase2Position={x:0,y:0},ce.tipMoving=!1,ce.color=fe.defaultStrokeColor,ce.bgColor=fe.defaultFillColor,ce.fontFamily=fe.defaultFontFamily,ce.defaultSize={x:100,y:30},ce.setBgColor=ce.setBgColor.bind(ce),ce.getTipPoints=ce.getTipPoints.bind(ce),ce.positionTip=ce.positionTip.bind(ce),ce.setTipPoints=ce.setTipPoints.bind(ce),ce.colorPanel=new yt("Text color",fe.defaultColorSet,ce.color,je),ce.colorPanel.onColorChanged=ce.setColor,ce.bgColorPanel=new yt("Fill color",fe.defaultColorSet,ce.bgColor,xe),ce.bgColorPanel.onColorChanged=ce.setBgColor,ce.fontFamilyPanel=new st("Font",fe.defaultFontFamilies,fe.defaultFontFamily),ce.fontFamilyPanel.onFontChanged=ce.setFont,ce.tipGrip=new Vt,ce.tipGrip.visual.transform.baseVal.appendItem(Te.createTransform()),ce.controlBox.appendChild(ce.tipGrip.visual),ce}return Oe(ue,ge),ue.prototype.ownsTarget=function(se){return ge.prototype.ownsTarget.call(this,se)||this.tipGrip.ownsTarget(se)||this.tip===se},ue.prototype.createTip=function(){Te.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Te.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ue.prototype.pointerDown=function(se,he){this.state==="new"&&ge.prototype.pointerDown.call(this,se,he),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(he)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ge.prototype.pointerDown.call(this,se,he)},ue.prototype.pointerUp=function(se){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ge.prototype.pointerUp.call(this,se);else{var he=this.state==="creating";ge.prototype.pointerUp.call(this,se),this.setTipPoints(he),this.positionTip()}},ue.prototype.manipulate=function(se){if(this.tipMoving){var he=this.unrotatePoint(se);this.tipPosition={x:he.x-this.manipulationStartLeft,y:he.y-this.manipulationStartTop},this.positionTip()}else ge.prototype.manipulate.call(this,se)},ue.prototype.setBgColor=function(se){this.bgRectangle&&this.tip&&(Te.setAttributes(this.bgRectangle,[["fill",se]]),Te.setAttributes(this.tip,[["fill",se]])),this.bgColor=se,this.fillColorChanged(se)},ue.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},ue.prototype.setTipPoints=function(se){se===void 0&&(se=!1);var he=Math.min(this.height/2,15),fe=this.height/5;se&&(this.tipPosition={x:he+fe/2,y:this.height+20});var ce=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ce<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(fe=this.width/5,he=Math.min(this.width/2,15),this.tipBase1Position={x:he,y:0},this.tipBase2Position={x:he+fe,y:0}):(this.tipBase1Position={x:0,y:he},this.tipBase2Position={x:0,y:he+fe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ce<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(fe=this.width/5,he=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-he-fe,y:0},this.tipBase2Position={x:this.width-he,y:0}):(this.tipBase1Position={x:this.width,y:he},this.tipBase2Position={x:this.width,y:he+fe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ce<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(fe=this.width/5,he=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-he-fe,y:this.height},this.tipBase2Position={x:this.width-he,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-he-fe},this.tipBase2Position={x:this.width,y:this.height-he}):ce<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(fe=this.width/5,he=Math.min(this.width/2,15),this.tipBase1Position={x:he,y:this.height},this.tipBase2Position={x:he+fe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-he},this.tipBase2Position={x:0,y:this.height-he-fe})},ue.prototype.resize=function(se){ge.prototype.resize.call(this,se),this.positionTip()},ue.prototype.positionTip=function(){Te.setAttributes(this.tip,[["points",this.getTipPoints()]]);var se=this.tipGrip.visual.transform.baseVal.getItem(0);se.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(se,0)},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ue.prototype.select=function(){this.positionTip(),ge.prototype.select.call(this)},ue.prototype.getState=function(){var se=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ge.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){var he=se;this.bgColor=he.bgColor,this.tipPosition=he.tipPosition,ge.prototype.restoreState.call(this,se),this.createTip(),this.setTipPoints()},ue.prototype.scale=function(se,he){ge.prototype.scale.call(this,se,he),this.tipPosition={x:this.tipPosition.x*se,y:this.tipPosition.y*he},this.positionTip()},ue.typeName="CalloutMarker",ue.title="Callout marker",ue.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>',ue}(Tt),_t=function(ge){function ue(se,he,fe){var ce=ge.call(this,se,he,fe)||this;return ce.fillColor="transparent",ce.strokeColor="transparent",ce.strokeWidth=0,ce.strokeDasharray="",ce.opacity=1,ce.strokeColor=fe.defaultColor,ce.strokeWidth=fe.defaultStrokeWidth,ce.strokeDasharray=fe.defaultStrokeDasharray,ce.fillColor=fe.defaultFillColor,ce.setStrokeColor=ce.setStrokeColor.bind(ce),ce.setFillColor=ce.setFillColor.bind(ce),ce.setStrokeWidth=ce.setStrokeWidth.bind(ce),ce.setStrokeDasharray=ce.setStrokeDasharray.bind(ce),ce.setOpacity=ce.setOpacity.bind(ce),ce.createVisual=ce.createVisual.bind(ce),ce.strokePanel=new yt("Line color",we(fe.defaultColorSet,["transparent"]),fe.defaultColor),ce.strokePanel.onColorChanged=ce.setStrokeColor,ce.fillPanel=new yt("Fill color",we(fe.defaultColorSet,["transparent"]),ce.fillColor,xe),ce.fillPanel.onColorChanged=ce.setFillColor,ce.strokeWidthPanel=new Me("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),ce.strokeWidthPanel.onWidthChanged=ce.setStrokeWidth,ce.strokeStylePanel=new Ue("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),ce.strokeStylePanel.onStyleChanged=ce.setStrokeDasharray,ce.opacityPanel=new en("Opacity",fe.defaultOpacitySteps,ce.opacity),ce.opacityPanel.onOpacityChanged=ce.setOpacity,ce}return Oe(ue,ge),ue.prototype.ownsTarget=function(se){return!(!ge.prototype.ownsTarget.call(this,se)&&se!==this.visual)},ue.prototype.createVisual=function(){this.visual=Te.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)},ue.prototype.pointerDown=function(se,he){ge.prototype.pointerDown.call(this,se,he),this.state==="new"&&(this.createVisual(),this.moveVisual(se),this._state="creating")},ue.prototype.manipulate=function(se){ge.prototype.manipulate.call(this,se)},ue.prototype.resize=function(se){ge.prototype.resize.call(this,se),this.setSize()},ue.prototype.setSize=function(){ge.prototype.setSize.call(this),Te.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ue.prototype.pointerUp=function(se){ge.prototype.pointerUp.call(this,se),this.setSize()},ue.prototype.setStrokeColor=function(se){this.strokeColor=se,this.visual&&Te.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(se),this.stateChanged()},ue.prototype.setFillColor=function(se){this.fillColor=se,this.visual&&Te.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(se),this.stateChanged()},ue.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.visual&&Te.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,this.visual&&Te.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ue.prototype.setOpacity=function(se){this.opacity=se,this.visual&&Te.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ge.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){var he=se;this.fillColor=he.fillColor,this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.opacity=he.opacity,this.createVisual(),ge.prototype.restoreState.call(this,se),this.setSize()},ue.prototype.scale=function(se,he){ge.prototype.scale.call(this,se,he),this.setSize()},ue.typeName="EllipseMarker",ue.title="Ellipse marker",ue.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>',ue}(gt),St=function(ge){function ue(se,he,fe){return ge.call(this,se,he,fe)||this}return Oe(ue,ge),Object.defineProperty(ue.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(se){return!(!ge.prototype.ownsTarget.call(this,se)&&se!==this.tip1&&se!==this.tip2)},ue.prototype.createTips=function(){this.tip1=Te.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(Te.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Te.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(Te.createTransform()),this.visual.appendChild(this.tip2)},ue.prototype.pointerDown=function(se,he){ge.prototype.pointerDown.call(this,se,he),this.state==="creating"&&this.createTips()},ue.prototype.adjustVisual=function(){if(ge.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Te.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()]]),Te.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 se=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(se,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(he,0);var fe=this.tip2.transform.baseVal.getItem(0);fe.setRotate(se+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(fe,0)}},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=ge.prototype.getState.call(this);return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){ge.prototype.restoreState.call(this,se),this.createTips(),this.adjustVisual()},ue.typeName="MeasurementMarker",ue.title="Measurement marker",ue.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>',ue}(kt),Qe=function(ge){function ue(se,he,fe){var ce=ge.call(this,se,he,fe)||this;return ce.strokePanel.colors=fe.defaultColorSet,ce.fillColor="transparent",ce}return Oe(ue,ge),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=ge.prototype.getState.call(this);return se.typeName=ue.typeName,se},ue.typeName="EllipseFrameMarker",ue.title="Ellipse frame marker",ue.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>',ue}(_t),$e=function(){function ge(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ge.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ge.prototype.addUndoStep=function(ue){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ue)||(this.undoStack.push(ue),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ue)&&this.redoStack.splice(0,this.redoStack.length))},ge.prototype.replaceLastUndoStep=function(ue){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ue)},ge.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ge.prototype.undo=function(){if(this.undoStack.length>1){var ue=this.undoStack.pop();return ue!==void 0&&this.redoStack.push(ue),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ge.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ge}(),Mt=function(ge){function ue(se,he,fe){var ce=ge.call(this,se,he,fe)||this;return ce.strokeColor="transparent",ce.strokeWidth=0,ce.strokeDasharray="",ce.curveX=0,ce.curveY=0,ce.manipulationStartCurveX=0,ce.manipulationStartCurveY=0,ce.setStrokeColor=ce.setStrokeColor.bind(ce),ce.setStrokeWidth=ce.setStrokeWidth.bind(ce),ce.setStrokeDasharray=ce.setStrokeDasharray.bind(ce),ce.positionGrips=ce.positionGrips.bind(ce),ce.addControlGrips=ce.addControlGrips.bind(ce),ce.adjustVisual=ce.adjustVisual.bind(ce),ce.setupControlBox=ce.setupControlBox.bind(ce),ce.resize=ce.resize.bind(ce),ce.strokeColor=fe.defaultColor,ce.strokeWidth=fe.defaultStrokeWidth,ce.strokeDasharray=fe.defaultStrokeDasharray,ce.strokePanel=new yt("Line color",fe.defaultColorSet,fe.defaultColor),ce.strokePanel.onColorChanged=ce.setStrokeColor,ce.strokeWidthPanel=new Me("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),ce.strokeWidthPanel.onWidthChanged=ce.setStrokeWidth,ce.strokeStylePanel=new Ue("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),ce.strokeStylePanel.onStyleChanged=ce.setStrokeDasharray,ce}return Oe(ue,ge),ue.prototype.ownsTarget=function(se){return!(!ge.prototype.ownsTarget.call(this,se)&&se!==this.visual&&se!==this.selectorCurve&&se!==this.visibleCurve&&!this.curveGrip.ownsTarget(se))},ue.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ue.prototype.createVisual=function(){this.visual=Te.createGroup(),this.selectorCurve=Te.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Te.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)},ue.prototype.pointerDown=function(se,he){ge.prototype.pointerDown.call(this,se,he),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=se.x,this.curveY=se.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(he)&&(this.activeGrip=this.curveGrip,this._state="resize")},ue.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Te.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Te.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Te.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ue.prototype.setupControlBox=function(){ge.prototype.setupControlBox.call(this),this.curveControlLine1=Te.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Te.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)},ue.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ge.prototype.addControlGrips.call(this)},ue.prototype.positionGrips=function(){ge.prototype.positionGrips.call(this);var se=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-se/2,this.curveY-se/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()))},ue.prototype.manipulate=function(se){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+se.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+se.y-this.manipulationStartY),ge.prototype.manipulate.call(this,se)},ue.prototype.resize=function(se){this.activeGrip===this.curveGrip&&(this.curveX=se.x,this.curveY=se.y),ge.prototype.resize.call(this,se),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ue.prototype.setStrokeColor=function(se){this.strokeColor=se,this.adjustVisual(),this.colorChanged(se)},ue.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,this.adjustVisual()},ue.prototype.scale=function(se,he){this.curveX=this.curveX*se,this.curveY=this.curveY*he,ge.prototype.scale.call(this,se,he)},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ge.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){ge.prototype.restoreState.call(this,se);var he=se;this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.curveX=he.curveX,this.curveY=he.curveY,this.createVisual(),this.adjustVisual()},ue.typeName="CurveMarker",ue.title="Curve marker",ue.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>',ue}(Je),wn=function(ge){function ue(se,he,fe){var ce=ge.call(this,se,he,fe)||this;return ce.fillColor="transparent",ce.strokeColor="transparent",ce.strokeWidth=0,ce.strokeDasharray="",ce.textColor="transparent",ce.fontSize="1rem",ce.isMoved=!1,ce.captionText="Caption",ce.PADDING=5,ce.captionBoxWidth=0,ce.captionBoxHeight=0,ce.strokeColor=fe.defaultColor,ce.strokeWidth=fe.defaultStrokeWidth,ce.strokeDasharray=fe.defaultStrokeDasharray,ce.fillColor=fe.defaultFillColor,ce.textColor=fe.defaultStrokeColor,ce.fontFamily=fe.defaultFontFamily,ce.fontSize=fe.defaultCaptionFontSize,ce.captionText=fe.defaultCaptionText,ce.setStrokeColor=ce.setStrokeColor.bind(ce),ce.setFillColor=ce.setFillColor.bind(ce),ce.setStrokeWidth=ce.setStrokeWidth.bind(ce),ce.setStrokeDasharray=ce.setStrokeDasharray.bind(ce),ce.createVisual=ce.createVisual.bind(ce),ce.sizeCaption=ce.sizeCaption.bind(ce),ce.setCaptionText=ce.setCaptionText.bind(ce),ce.showTextEditor=ce.showTextEditor.bind(ce),ce.positionTextEditor=ce.positionTextEditor.bind(ce),ce.finishTextEditing=ce.finishTextEditing.bind(ce),ce.setFont=ce.setFont.bind(ce),ce.setTextColor=ce.setTextColor.bind(ce),ce.strokePanel=new yt("Line color",we(fe.defaultColorSet,["transparent"]),ce.strokeColor),ce.strokePanel.onColorChanged=ce.setStrokeColor,ce.fillPanel=new yt("Fill color",we(fe.defaultColorSet,["transparent"]),ce.fillColor,xe),ce.fillPanel.onColorChanged=ce.setFillColor,ce.strokeWidthPanel=new Me("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),ce.strokeWidthPanel.onWidthChanged=ce.setStrokeWidth,ce.strokeStylePanel=new Ue("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),ce.strokeStylePanel.onStyleChanged=ce.setStrokeDasharray,ce.fontFamilyPanel=new st("Font",fe.defaultFontFamilies,fe.defaultFontFamily),ce.fontFamilyPanel.onFontChanged=ce.setFont,ce.textColorPanel=new yt("Text color",fe.defaultColorSet,ce.textColor,je),ce.textColorPanel.onColorChanged=ce.setTextColor,ce}return Oe(ue,ge),ue.prototype.ownsTarget=function(se){return!(!ge.prototype.ownsTarget.call(this,se)&&se!==this.visual&&se!==this.frame&&se!==this.captionBg&&se!==this.captionElement)},ue.prototype.createVisual=function(){this.visual=Te.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Te.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Te.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=Te.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()},ue.prototype.setCaptionText=function(se){this.captionText=se,this.captionElement.textContent=this.captionText,this.sizeCaption()},ue.prototype.pointerDown=function(se,he){ge.prototype.pointerDown.call(this,se,he),this.isMoved=!1,this.pointerDownPoint=se,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(se),this._state="creating")},ue.prototype.manipulate=function(se){ge.prototype.manipulate.call(this,se),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(se.x-this.pointerDownPoint.x)>5||Math.abs(se.y-this.pointerDownPoint.y)>5)},ue.prototype.resize=function(se){ge.prototype.resize.call(this,se),this.setSize()},ue.prototype.sizeCaption=function(){var se=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=se.width+2*this.PADDING,this.captionBoxHeight=se.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Te.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')"]]),Te.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')"]])},ue.prototype.showTextEditor=function(){var se=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"&&se.finishTextEditing(se.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(he){he.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){se.finishTextEditing(se.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){se.finishTextEditing(se.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ue.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"))},ue.prototype.finishTextEditing=function(se){this.setCaptionText(se.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ue.prototype.setFont=function(se){this.captionElement&&Te.setAttributes(this.captionElement,[["font-family",se]]),this.fontFamily=se,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ue.prototype.setTextColor=function(se){this.captionElement&&Te.setAttributes(this.captionElement,[["fill",se]]),this.textColor=se,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ue.prototype.setSize=function(){ge.prototype.setSize.call(this),Te.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ue.prototype.pointerUp=function(se){ge.prototype.pointerUp.call(this,se),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.dblClick=function(se,he){ge.prototype.dblClick.call(this,se,he),this.showTextEditor()},ue.prototype.setStrokeColor=function(se){this.strokeColor=se,this.frame&&Te.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(se),this.stateChanged()},ue.prototype.setFillColor=function(se){this.fillColor=se,this.captionBg&&Te.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(se),this.stateChanged()},ue.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.frame&&Te.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,this.frame&&Te.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=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},ge.prototype.getState.call(this));return se.typeName=this.typeName,se},ue.prototype.restoreState=function(se){var he=se;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(),ge.prototype.restoreState.call(this,se),this.setSize()},ue.prototype.scale=function(se,he){ge.prototype.scale.call(this,se,he),this.setSize()},ue.typeName="CaptionFrameMarker",ue.title="Caption frame marker",ue.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>',ue}(gt),cn=function(){function ge(ue,se){se===void 0&&(se=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ue,this.cancelable=se}return Object.defineProperty(ge.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ge.prototype.preventDefault=function(){this._defaultPrevented=!0},ge}(),dn=function(ge){function ue(se,he,fe){var ce=ge.call(this,se,!1)||this;return ce.dataUrl=he,ce.state=fe,ce}return Oe(ue,ge),ue}(cn),nn=function(ge){function ue(se,he,fe){fe===void 0&&(fe=!1);var ce=ge.call(this,se,fe)||this;return ce.marker=he,ce}return Oe(ue,ge),ue}(cn),Jt=function(){function ge(){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 ge.prototype.addEventListener=function(ue,se){this[ue].push(se)},ge.prototype.removeEventListener=function(ue,se){var he=this[ue].indexOf(se);he>-1&&this[ue].splice(he,1)},ge}(),Bt=function(){function ge(ue){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new mt,this._isOpen=!1,this.undoRedoManager=new $e,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 Jt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ge.instanceCounter++,this.styles=new _e(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ue,this.targetRoot=document.body,this.width=ue.clientWidth,this.height=ue.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(ge.prototype,"ALL_MARKER_TYPES",{get:function(){return[tt,nt,ln,Tt,Qe,_t,Ht,Xe,St,tn,kt,Mt,wn]},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[tt,nt,ln,Tt,_t,Ht,Xe]},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"BASIC_MARKER_TYPES",{get:function(){return[tt,nt,ln,Tt,Ht]},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ue){var se=this;this._availableMarkerTypes.splice(0),ue.forEach(function(he){if(typeof he=="string"){var fe=se.ALL_MARKER_TYPES.find(function(ce){return ce.typeName===he});fe!==void 0&&se._availableMarkerTypes.push(fe)}else se._availableMarkerTypes.push(he)})},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ue){this._zoomLevel=ue,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(ge.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ge.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Fe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ge.prototype.show=function(){var ue=this;this.styles.styleSheetRoot===void 0&&Ce.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ce.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(se){return se(new cn(ue))})},ge.prototype.render=function(){return Ne(this,void 0,void 0,function(){var ue;return dt(this,function(se){switch(se.label){case 0:return this.setCurrentMarker(),(ue=new be).naturalSize=this.renderAtNaturalSize,ue.imageType=this.renderImageType,ue.imageQuality=this.renderImageQuality,ue.markersOnly=this.renderMarkersOnly,ue.width=this.renderWidth,ue.height=this.renderHeight,[4,ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return se.sent(),[4,ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,se.sent()]}})})},ge.prototype.close=function(ue){var se=this;if(ue===void 0&&(ue=!1),this.isOpen){var he=!1;ue||this.eventListeners.beforeclose.forEach(function(fe){var ce=new cn(se,!0);fe(ce),ce.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(fe){return fe(new cn(se))}),this.detachEvents(),this._isOpen=!1)}},ge.prototype.addMarkersToToolbar=function(){for(var ue,se=[],he=0;he<arguments.length;he++)se[he]=arguments[he];(ue=this._availableMarkerTypes).push.apply(ue,se)},ge.prototype.addRenderEventListener=function(ue){this.addEventListener("render",function(se){ue(se.dataUrl,se.state)})},ge.prototype.removeRenderEventListener=function(ue){},ge.prototype.addCloseEventListener=function(ue){this.addEventListener("close",function(){ue()})},ge.prototype.removeCloseEventListener=function(ue){},ge.prototype.setupResizeObserver=function(){var ue=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ue.resize(ue.target.clientWidth,ue.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ue.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ge.prototype.onPopupTargetResize=function(){var ue=1*this.target.clientWidth/this.target.clientHeight,se=this.editorCanvas.clientWidth/ue>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ue:this.editorCanvas.clientWidth,he=se<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ue;this.resize(se,he)},ge.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ge.prototype.resize=function(ue,se){this._isResizing=!0;var he=ue/this.imageWidth,fe=se/this.imageHeight;this.imageWidth=Math.round(ue),this.imageHeight=Math.round(se),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,fe),this._isResizing=!1},ge.prototype.scaleMarkers=function(ue,se){var he,fe=this;this._currentMarker&&this._currentMarker instanceof Tt?this._currentMarker.scale(ue,se):(he=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ce){ce!==fe._currentMarker&&ce.scale(ue,se)}),he!==void 0&&this.setCurrentMarker(he)},ge.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"},ge.prototype.setTopLeft=function(){var ue=this.editingTarget.getBoundingClientRect(),se=this.editorCanvas.getBoundingClientRect();this.left=ue.left-se.left,this.top=ue.top-se.top},ge.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)},ge.prototype.addDefs=function(){for(var ue,se=[],he=0;he<arguments.length;he++)se[he]=arguments[he];this.defs=Te.createDefs(),this.addDefsToImage(),(ue=this.defs).append.apply(ue,se)},ge.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ge.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)},ge.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ge.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ge.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)},ge.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ge.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)},ge.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 ue=document.createElement("a");ue.href="https://markerjs.com/",ue.target="_blank",ue.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>',ue.title="Powered by marker.js",ue.style.display="grid",ue.style.alignItems="center",ue.style.justifyItems="center",ue.style.padding="3px",ue.style.width="20px",ue.style.height="20px",this.logoUI.appendChild(ue),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ge.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")},ge.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"},ge.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ge.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 ue=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=ue+"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 Ge(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 wt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ge.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ge.prototype.removeMarker=function(ue){this.markerImage.removeChild(ue.container),this.markers.indexOf(ue)>-1&&this.markers.splice(this.markers.indexOf(ue),1),ue.dispose()},ge.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())},ge.prototype.toolbarButtonClicked=function(ue,se){if(ue==="marker"&&se!==void 0)this.createNewMarker(se);else if(ue==="action")switch(se){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()}},ge.prototype.deleteSelectedMarker=function(){var ue=this;if(this._currentMarker!==void 0){var se=!1;if(this.eventListeners.markerbeforedelete.forEach(function(fe){var ce=new nn(ue,ue._currentMarker,!0);fe(ce),ce.defaultPrevented&&(se=!0)}),!se){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(fe){return fe(new nn(ue,he))})}}},ge.prototype.clear=function(){var ue=this,se=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ae){var rt=new nn(ue,void 0,!0);Ae(rt),rt.defaultPrevented&&(se=!0)}),!se)){this.setCurrentMarker();for(var he=function(Ae){var rt=fe.markers[Ae];fe.setCurrentMarker(fe.markers[Ae]),fe._currentMarker.dispose(),fe.markerImage.removeChild(fe._currentMarker.container),fe.markers.splice(fe.markers.indexOf(fe._currentMarker),1),fe.eventListeners.markerdelete.forEach(function(Le){return Le(new nn(ue,rt))})},fe=this,ce=this.markers.length-1;ce>=0;ce--)he(ce);this.addUndoStep()}},Object.defineProperty(ge.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ge.prototype.showNotesEditor=function(){var ue;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=(ue=this._currentMarker.notes)!==null&&ue!==void 0?ue:"",this.overlayContainer.appendChild(this.notesArea))},ge.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)},ge.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ge.prototype.addUndoStep=function(){var ue=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var se=this.getState(),he=this.undoRedoManager.getLastUndoStep();if(!he||he.width===se.width&&he.height===se.height){var fe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(se),fe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ce){return ce(new cn(ue))})}else this.undoRedoManager.replaceLastUndoStep(se),this.eventListeners.statechange.forEach(function(ce){return ce(new cn(ue))})}},ge.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ge.prototype.undoStep=function(){var ue=this,se=this.undoRedoManager.undo();se!==void 0&&(this.restoreState(se),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(he){return he(new cn(ue))}))},ge.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ge.prototype.redoStep=function(){var ue=this,se=this.undoRedoManager.redo();se!==void 0&&(this.restoreState(se),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(he){return he(new cn(ue))}))},ge.prototype.stepZoom=function(){var ue=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ue<this.zoomSteps.length-1?this.zoomSteps[ue+1]:this.zoomSteps[0]},ge.prototype.panTo=function(ue){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ue.x,top:this.prevPanPoint.y-ue.y}),this.prevPanPoint=ue},ge.prototype.startRenderAndClose=function(){return Ne(this,void 0,void 0,function(){var ue,se,he=this;return dt(this,function(fe){switch(fe.label){case 0:return[4,this.render()];case 1:return ue=fe.sent(),se=this.getState(),this.eventListeners.render.forEach(function(ce){return ce(new dn(he,ue,se))}),this.close(!0),[2]}})})},ge.prototype.getState=function(ue){ue===!0&&this.setCurrentMarker();var se={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(he){return se.markers.push(he.getState())}),se},ge.prototype.restoreState=function(ue){var se=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ue.markers.forEach(function(he){var fe=se._availableMarkerTypes.find(function(Ae){return Ae.typeName===he.typeName});if(fe!==void 0){var ce=se.addNewMarker(fe);ce.restoreState(he),se.markers.push(ce)}}),ue.width&&ue.height&&(ue.width!==this.imageWidth||ue.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ue.width,this.imageHeight/ue.height),this.eventListeners.restorestate.forEach(function(he){return he(new cn(se))})},ge.prototype.addNewMarker=function(ue){var se=Te.createGroup();return this.markerImage.appendChild(se),new ue(se,this.overlayContainer,this.settings)},ge.prototype.createNewMarker=function(ue){var se,he=this;(se=typeof ue=="string"?this._availableMarkerTypes.find(function(fe){return fe.typeName===ue}):ue)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(se),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(se.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(fe){return fe(new nn(he,he._currentMarker))}))},ge.prototype.markerCreated=function(ue){var se=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ue),this.setCurrentMarker(ue),ue instanceof nt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(nt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(he){return he(new nn(se,se._currentMarker))})},ge.prototype.colorChanged=function(ue){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ue,this.settings.defaultStrokeColor=ue)},ge.prototype.fillColorChanged=function(ue){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ue)},ge.prototype.markerStateChanged=function(ue){var se=this;this.eventListeners.markerchange.forEach(function(he){return he(new nn(se,ue))})},ge.prototype.setCurrentMarker=function(ue){var se=this;this._currentMarker!==ue&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(he){return he(new nn(se,se._currentMarker))})),this._currentMarker=ue,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 nn(se,se._currentMarker))}))},ge.prototype.onPointerDown=function(ue){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ue.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var se=this.markers.find(function(he){return he.ownsTarget(ue.target)});se!==void 0?(this.setCurrentMarker(se),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ue.clientX,ue.clientY),ue.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ue.clientX,y:ue.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ue.clientX,ue.clientY))},ge.prototype.onDblClick=function(ue){if(this._isFocused||this.focus(),this.mode==="select"){var se=this.markers.find(function(he){return he.ownsTarget(ue.target)});se!==void 0&&se!==this._currentMarker&&this.setCurrentMarker(se),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ue.clientX,ue.clientY),ue.target):this.setCurrentMarker()}},ge.prototype.onPointerMove=function(ue){this.touchPoints!==1&&ue.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ue.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ue.clientX,ue.clientY)):this.zoomLevel>1&&this.panTo({x:ue.clientX,y:ue.clientY}))},ge.prototype.onPointerUp=function(ue){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ue.clientX,ue.clientY)),this.isDragging=!1,this.addUndoStep()},ge.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ge.prototype.onKeyUp=function(ue){this._currentMarker===void 0||this.notesArea!==void 0||ue.key!=="Delete"&&ue.key!=="Backspace"||this.deleteSelectedMarker()},ge.prototype.clientToLocalCoordinates=function(ue,se){var he=this.markerImage.getBoundingClientRect();return{x:(ue-he.left)/this.zoomLevel,y:(se-he.top)/this.zoomLevel}},ge.prototype.onWindowResize=function(){this.positionUI()},ge.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ue=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ue+"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()},ge.prototype.addLicenseKey=function(ue){Fe.addKey(ue)},ge.prototype.addEventListener=function(ue,se){this.eventListeners.addEventListener(ue,se)},ge.prototype.removeEventListener=function(ue,se){this.eventListeners.removeEventListener(ue,se)},ge.prototype.renderState=function(ue){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ue),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ge.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ge.prototype.focus=function(){var ue=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(se){return se(new cn(ue))}))},ge.prototype.blur=function(){var ue=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(se){return se(new cn(ue))}))},ge.instanceCounter=0,ge}()},5630:function(mn,un,le){"use strict";var oe=le(60499),Oe=le(85899),Ne=le(18642),dt=le(72190),we=le(42244),Te=le(92310),Fe=le.n(Te),be=le(18929),Ce=le(59301),_e=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],ft=(0,Ce.forwardRef)(function(Ie,Ge){var wt,ut=Ie.prefixCls,yt=ut===void 0?"rc-checkbox":ut,lt=Ie.className,ht=Ie.style,Vt=Ie.checked,ot=Ie.disabled,gt=Ie.defaultChecked,Ve=gt===void 0?!1:gt,Me=Ie.type,Ue=Me===void 0?"checkbox":Me,tt=Ie.title,mt=Ie.onChange,Je=(0,we.Z)(Ie,_e),kt=(0,Ce.useRef)(null),st=(0,be.Z)(Ve,{value:Vt}),Tt=(0,dt.Z)(st,2),nt=Tt[0],Yt=Tt[1];(0,Ce.useImperativeHandle)(Ge,function(){return{focus:function(){var Ht;(Ht=kt.current)===null||Ht===void 0||Ht.focus()},blur:function(){var Ht;(Ht=kt.current)===null||Ht===void 0||Ht.blur()},input:kt.current}});var ln=Fe()(yt,lt,(wt={},(0,Ne.Z)(wt,"".concat(yt,"-checked"),nt),(0,Ne.Z)(wt,"".concat(yt,"-disabled"),ot),wt)),tn=function(Ht){ot||("checked"in Ie||Yt(Ht.target.checked),mt==null||mt({target:(0,Oe.Z)((0,Oe.Z)({},Ie),{},{type:Ue,checked:Ht.target.checked}),stopPropagation:function(){Ht.stopPropagation()},preventDefault:function(){Ht.preventDefault()},nativeEvent:Ht.nativeEvent}))};return Ce.createElement("span",{className:ln,title:tt,style:ht},Ce.createElement("input",(0,oe.Z)({},Je,{className:"".concat(yt,"-input"),ref:kt,onChange:tn,disabled:ot,checked:!!nt,type:Ue})),Ce.createElement("span",{className:"".concat(yt,"-inner")}))});un.Z=ft},31561:function(mn,un,le){"use strict";le.d(un,{Z:function(){return Ue}});var oe=le(60499),Oe=le(18642),Ne=le(72190),dt=le(42244),we=le(35593),Te=le(92310),Fe=le.n(Te),be=le(8654),Ce=le(59301),_e=le(10228),ft=le(16089),Ie=_e.Z.ESC,Ge=_e.Z.TAB;function wt(tt){var mt=tt.visible,Je=tt.triggerRef,kt=tt.onVisibleChange,st=tt.autoFocus,Tt=tt.overlayRef,nt=Ce.useRef(!1),Yt=function(){if(mt){var Ht,je;(Ht=Je.current)===null||Ht===void 0||(je=Ht.focus)===null||je===void 0||je.call(Ht),kt==null||kt(!1)}},ln=function(){var Ht;return(Ht=Tt.current)!==null&&Ht!==void 0&&Ht.focus?(Tt.current.focus(),nt.current=!0,!0):!1},tn=function(Ht){switch(Ht.keyCode){case Ie:Yt();break;case Ge:{var je=!1;nt.current||(je=ln()),je?Ht.preventDefault():Yt();break}}};Ce.useEffect(function(){return mt?(window.addEventListener("keydown",tn),st&&(0,ft.Z)(ln,3),function(){window.removeEventListener("keydown",tn),nt.current=!1}):function(){nt.current=!1}},[mt])}var ut=(0,Ce.forwardRef)(function(tt,mt){var Je=tt.overlay,kt=tt.arrow,st=tt.prefixCls,Tt=(0,Ce.useMemo)(function(){var Yt;return typeof Je=="function"?Yt=Je():Yt=Je,Yt},[Je]),nt=(0,be.sQ)(mt,Tt==null?void 0:Tt.ref);return Ce.createElement(Ce.Fragment,null,kt&&Ce.createElement("div",{className:"".concat(st,"-arrow")}),Ce.cloneElement(Tt,{ref:(0,be.Yr)(Tt)?nt:void 0}))}),yt=ut,lt={adjustX:1,adjustY:1},ht=[0,0],Vt={topLeft:{points:["bl","tl"],overflow:lt,offset:[0,-4],targetOffset:ht},top:{points:["bc","tc"],overflow:lt,offset:[0,-4],targetOffset:ht},topRight:{points:["br","tr"],overflow:lt,offset:[0,-4],targetOffset:ht},bottomLeft:{points:["tl","bl"],overflow:lt,offset:[0,4],targetOffset:ht},bottom:{points:["tc","bc"],overflow:lt,offset:[0,4],targetOffset:ht},bottomRight:{points:["tr","br"],overflow:lt,offset:[0,4],targetOffset:ht}},ot=Vt,gt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ve(tt,mt){var Je,kt=tt.arrow,st=kt===void 0?!1:kt,Tt=tt.prefixCls,nt=Tt===void 0?"rc-dropdown":Tt,Yt=tt.transitionName,ln=tt.animation,tn=tt.align,en=tt.placement,Ht=en===void 0?"bottomLeft":en,je=tt.placements,xe=je===void 0?ot:je,Xe=tt.getPopupContainer,_t=tt.showAction,St=tt.hideAction,Qe=tt.overlayClassName,$e=tt.overlayStyle,Mt=tt.visible,wn=tt.trigger,cn=wn===void 0?["hover"]:wn,dn=tt.autoFocus,nn=tt.overlay,Jt=tt.children,Bt=tt.onVisibleChange,ge=(0,dt.Z)(tt,gt),ue=Ce.useState(),se=(0,Ne.Z)(ue,2),he=se[0],fe=se[1],ce="visible"in tt?Mt:he,Ae=Ce.useRef(null),rt=Ce.useRef(null),Le=Ce.useRef(null);Ce.useImperativeHandle(mt,function(){return Ae.current});var Ke=function(et){fe(et),Bt==null||Bt(et)};wt({visible:ce,triggerRef:Le,onVisibleChange:Ke,autoFocus:dn,overlayRef:rt});var Lt=function(et){var De=tt.onOverlayClick;fe(!1),De&&De(et)},xt=function(){return Ce.createElement(yt,{ref:rt,overlay:nn,prefixCls:nt,arrow:st})},Ye=function(){return typeof nn=="function"?xt:xt()},Pt=function(){var et=tt.minOverlayWidthMatchTrigger,De=tt.alignPoint;return"minOverlayWidthMatchTrigger"in tt?et:!De},hn=function(){var et=tt.openClassName;return et!==void 0?et:"".concat(nt,"-open")},at=Ce.cloneElement(Jt,{className:Fe()((Je=Jt.props)===null||Je===void 0?void 0:Je.className,ce&&hn()),ref:(0,be.Yr)(Jt)?(0,be.sQ)(Le,Jt.ref):void 0}),Xt=St;return!Xt&&cn.indexOf("contextMenu")!==-1&&(Xt=["click"]),Ce.createElement(we.Z,(0,oe.Z)({builtinPlacements:xe},ge,{prefixCls:nt,ref:Ae,popupClassName:Fe()(Qe,(0,Oe.Z)({},"".concat(nt,"-show-arrow"),st)),popupStyle:$e,action:cn,showAction:_t,hideAction:Xt,popupPlacement:Ht,popupAlign:tn,popupTransitionName:Yt,popupAnimation:ln,popupVisible:ce,stretch:Pt()?"minWidth":"",popup:Ye(),onPopupVisibleChange:Ke,onPopupClick:Lt,getPopupContainer:Xe}),at)}var Me=Ce.forwardRef(Ve),Ue=Me},93681:function(mn,un,le){"use strict";le.r(un),le.d(un,{BaseInput:function(){return _e},default:function(){return Vt}});var oe=le(60499),Oe=le(85899),Ne=le(18642),dt=le(43749),we=le(92310),Te=le.n(we),Fe=le(59301),be=le(5643),Ce=function(gt){var Ve,Me,Ue=gt.inputElement,tt=gt.prefixCls,mt=gt.prefix,Je=gt.suffix,kt=gt.addonBefore,st=gt.addonAfter,Tt=gt.className,nt=gt.style,Yt=gt.disabled,ln=gt.readOnly,tn=gt.focused,en=gt.triggerFocus,Ht=gt.allowClear,je=gt.value,xe=gt.handleReset,Xe=gt.hidden,_t=gt.classes,St=gt.classNames,Qe=gt.dataAttrs,$e=gt.styles,Mt=gt.components,wn=(Mt==null?void 0:Mt.affixWrapper)||"span",cn=(Mt==null?void 0:Mt.groupWrapper)||"span",dn=(Mt==null?void 0:Mt.wrapper)||"span",nn=(Mt==null?void 0:Mt.groupAddon)||"span",Jt=(0,Fe.useRef)(null),Bt=function(xt){var Ye;(Ye=Jt.current)!==null&&Ye!==void 0&&Ye.contains(xt.target)&&(en==null||en())},ge=function(){var xt;if(!Ht)return null;var Ye=!Yt&&!ln&&je,Pt="".concat(tt,"-clear-icon"),hn=(0,dt.Z)(Ht)==="object"&&Ht!==null&&Ht!==void 0&&Ht.clearIcon?Ht.clearIcon:"\u2716";return Fe.createElement("span",{onClick:xe,onMouseDown:function(Xt){return Xt.preventDefault()},className:Te()(Pt,(xt={},(0,Ne.Z)(xt,"".concat(Pt,"-hidden"),!Ye),(0,Ne.Z)(xt,"".concat(Pt,"-has-suffix"),!!Je),xt)),role:"button",tabIndex:-1},hn)},ue=(0,Fe.cloneElement)(Ue,{value:je,hidden:Xe,className:Te()((Ve=Ue.props)===null||Ve===void 0?void 0:Ve.className,!(0,be.X3)(gt)&&!(0,be.He)(gt)&&Tt)||null,style:(0,Oe.Z)((0,Oe.Z)({},(Me=Ue.props)===null||Me===void 0?void 0:Me.style),!(0,be.X3)(gt)&&!(0,be.He)(gt)?nt:{})});if((0,be.X3)(gt)){var se,he="".concat(tt,"-affix-wrapper"),fe=Te()(he,(se={},(0,Ne.Z)(se,"".concat(he,"-disabled"),Yt),(0,Ne.Z)(se,"".concat(he,"-focused"),tn),(0,Ne.Z)(se,"".concat(he,"-readonly"),ln),(0,Ne.Z)(se,"".concat(he,"-input-with-clear-btn"),Je&&Ht&&je),se),!(0,be.He)(gt)&&Tt,_t==null?void 0:_t.affixWrapper,St==null?void 0:St.affixWrapper),ce=(Je||Ht)&&Fe.createElement("span",{className:Te()("".concat(tt,"-suffix"),St==null?void 0:St.suffix),style:$e==null?void 0:$e.suffix},ge(),Je);ue=Fe.createElement(wn,(0,oe.Z)({className:fe,style:(0,Oe.Z)((0,Oe.Z)({},(0,be.He)(gt)?void 0:nt),$e==null?void 0:$e.affixWrapper),hidden:!(0,be.He)(gt)&&Xe,onClick:Bt},Qe==null?void 0:Qe.affixWrapper,{ref:Jt}),mt&&Fe.createElement("span",{className:Te()("".concat(tt,"-prefix"),St==null?void 0:St.prefix),style:$e==null?void 0:$e.prefix},mt),(0,Fe.cloneElement)(Ue,{value:je,hidden:null}),ce)}if((0,be.He)(gt)){var Ae="".concat(tt,"-group"),rt="".concat(Ae,"-addon"),Le=Te()("".concat(tt,"-wrapper"),Ae,_t==null?void 0:_t.wrapper),Ke=Te()("".concat(tt,"-group-wrapper"),Tt,_t==null?void 0:_t.group);return Fe.createElement(cn,{className:Ke,style:nt,hidden:Xe},Fe.createElement(dn,{className:Le},kt&&Fe.createElement(nn,{className:rt},kt),(0,Fe.cloneElement)(ue,{hidden:null}),st&&Fe.createElement(nn,{className:rt},st)))}return ue},_e=Ce,ft=le(77654),Ie=le(72190),Ge=le(42244),wt=le(18929),ut=le(2738),yt=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],lt=(0,Fe.forwardRef)(function(ot,gt){var Ve=ot.autoComplete,Me=ot.onChange,Ue=ot.onFocus,tt=ot.onBlur,mt=ot.onPressEnter,Je=ot.onKeyDown,kt=ot.prefixCls,st=kt===void 0?"rc-input":kt,Tt=ot.disabled,nt=ot.htmlSize,Yt=ot.className,ln=ot.maxLength,tn=ot.suffix,en=ot.showCount,Ht=ot.type,je=Ht===void 0?"text":Ht,xe=ot.classes,Xe=ot.classNames,_t=ot.styles,St=(0,Ge.Z)(ot,yt),Qe=(0,wt.Z)(ot.defaultValue,{value:ot.value}),$e=(0,Ie.Z)(Qe,2),Mt=$e[0],wn=$e[1],cn=(0,Fe.useState)(!1),dn=(0,Ie.Z)(cn,2),nn=dn[0],Jt=dn[1],Bt=(0,Fe.useRef)(null),ge=function(Ke){Bt.current&&(0,be.nH)(Bt.current,Ke)};(0,Fe.useImperativeHandle)(gt,function(){return{focus:ge,blur:function(){var Ke;(Ke=Bt.current)===null||Ke===void 0||Ke.blur()},setSelectionRange:function(Ke,Lt,xt){var Ye;(Ye=Bt.current)===null||Ye===void 0||Ye.setSelectionRange(Ke,Lt,xt)},select:function(){var Ke;(Ke=Bt.current)===null||Ke===void 0||Ke.select()},input:Bt.current}}),(0,Fe.useEffect)(function(){Jt(function(Le){return Le&&Tt?!1:Le})},[Tt]);var ue=function(Ke){ot.value===void 0&&wn(Ke.target.value),Bt.current&&(0,be.rJ)(Bt.current,Ke,Me)},se=function(Ke){mt&&Ke.key==="Enter"&&mt(Ke),Je==null||Je(Ke)},he=function(Ke){Jt(!0),Ue==null||Ue(Ke)},fe=function(Ke){Jt(!1),tt==null||tt(Ke)},ce=function(Ke){wn(""),ge(),Bt.current&&(0,be.rJ)(Bt.current,Ke,Me)},Ae=function(){var Ke=(0,ut.Z)(ot,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return Fe.createElement("input",(0,oe.Z)({autoComplete:Ve},Ke,{onChange:ue,onFocus:he,onBlur:fe,onKeyDown:se,className:Te()(st,(0,Ne.Z)({},"".concat(st,"-disabled"),Tt),Xe==null?void 0:Xe.input),style:_t==null?void 0:_t.input,ref:Bt,size:nt,type:je}))},rt=function(){var Ke=Number(ln)>0;if(tn||en){var Lt=(0,be.D7)(Mt),xt=(0,ft.Z)(Lt).length,Ye=(0,dt.Z)(en)==="object"?en.formatter({value:Lt,count:xt,maxLength:ln}):"".concat(xt).concat(Ke?" / ".concat(ln):"");return Fe.createElement(Fe.Fragment,null,!!en&&Fe.createElement("span",{className:Te()("".concat(st,"-show-count-suffix"),(0,Ne.Z)({},"".concat(st,"-show-count-has-suffix"),!!tn),Xe==null?void 0:Xe.count),style:(0,Oe.Z)({},_t==null?void 0:_t.count)},Ye),tn)}return null};return Fe.createElement(_e,(0,oe.Z)({},St,{prefixCls:st,className:Yt,inputElement:Ae(),handleReset:ce,value:(0,be.D7)(Mt),focused:nn,triggerFocus:ge,suffix:rt(),disabled:Tt,classes:xe,classNames:Xe,styles:_t}))}),ht=lt,Vt=ht},5643:function(mn,un,le){"use strict";le.d(un,{D7:function(){return we},He:function(){return oe},X3:function(){return Oe},nH:function(){return dt},rJ:function(){return Ne}});function oe(Te){return!!(Te.addonBefore||Te.addonAfter)}function Oe(Te){return!!(Te.prefix||Te.suffix||Te.allowClear)}function Ne(Te,Fe,be,Ce){if(be){var _e=Fe;if(Fe.type==="click"){var ft=Te.cloneNode(!0);_e=Object.create(Fe,{target:{value:ft},currentTarget:{value:ft}}),ft.value="",be(_e);return}if(Ce!==void 0){_e=Object.create(Fe,{target:{value:Te},currentTarget:{value:Te}}),Te.value=Ce,be(_e);return}be(_e)}}function dt(Te,Fe){if(Te){Te.focus(Fe);var be=Fe||{},Ce=be.cursor;if(Ce){var _e=Te.value.length;switch(Ce){case"start":Te.setSelectionRange(0,0);break;case"end":Te.setSelectionRange(_e,_e);break;default:Te.setSelectionRange(0,_e)}}}}function we(Te){return typeof Te=="undefined"||Te===null?"":String(Te)}},15285:function(mn,un,le){"use strict";le.d(un,{iz:function(){return An},ck:function(){return fr},BW:function(){return Bn},sN:function(){return fr},Wd:function(){return vt},ZP:function(){return pn},Xl:function(){return Je}});var oe=le(60499),Oe=le(18642),Ne=le(85899),dt=le(77654),we=le(72190),Te=le(42244),Fe=le(92310),be=le.n(Fe),Ce=le(83836),_e=le(18929),ft=le(13697),Ie=le(48736),Ge=le(59301),wt=le(4676),ut=Ge.createContext(null);function yt(He,At){return He===void 0?null:"".concat(He,"-").concat(At)}function lt(He){var At=Ge.useContext(ut);return yt(At,He)}var ht=le(80547),Vt=["children","locked"],ot=Ge.createContext(null);function gt(He,At){var Dt=(0,Ne.Z)({},He);return Object.keys(At).forEach(function(Qt){var jt=At[Qt];jt!==void 0&&(Dt[Qt]=jt)}),Dt}function Ve(He){var At=He.children,Dt=He.locked,Qt=(0,Te.Z)(He,Vt),jt=Ge.useContext(ot),qt=(0,ht.Z)(function(){return gt(jt,Qt)},[jt,Qt],function($t,En){return!Dt&&($t[0]!==En[0]||!(0,ft.Z)($t[1],En[1],!0))});return Ge.createElement(ot.Provider,{value:qt},At)}var Me=[],Ue=Ge.createContext(null);function tt(){return Ge.useContext(Ue)}var mt=Ge.createContext(Me);function Je(He){var At=Ge.useContext(mt);return Ge.useMemo(function(){return He!==void 0?[].concat((0,dt.Z)(At),[He]):At},[At,He])}var kt=Ge.createContext(null),st=Ge.createContext({}),Tt=st,nt=le(29194);function Yt(He){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,nt.Z)(He)){var Dt=He.nodeName.toLowerCase(),Qt=["input","select","textarea","button"].includes(Dt)||He.isContentEditable||Dt==="a"&&!!He.getAttribute("href"),jt=He.getAttribute("tabindex"),qt=Number(jt),$t=null;return jt&&!Number.isNaN(qt)?$t=qt:Qt&&$t===null&&($t=0),Qt&&He.disabled&&($t=null),$t!==null&&($t>=0||At&&$t<0)}return!1}function ln(He){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Dt=(0,dt.Z)(He.querySelectorAll("*")).filter(function(Qt){return Yt(Qt,At)});return Yt(He,At)&&Dt.unshift(He),Dt}var tn=null;function en(){tn=document.activeElement}function Ht(){tn=null}function je(){if(tn)try{tn.focus()}catch(He){}}function xe(He,At){if(At.keyCode===9){var Dt=ln(He),Qt=Dt[At.shiftKey?0:Dt.length-1],jt=Qt===document.activeElement||He===document.activeElement;if(jt){var qt=Dt[At.shiftKey?Dt.length-1:0];qt.focus(),At.preventDefault()}}}var Xe=le(10228),_t=le(16089),St=Xe.Z.LEFT,Qe=Xe.Z.RIGHT,$e=Xe.Z.UP,Mt=Xe.Z.DOWN,wn=Xe.Z.ENTER,cn=Xe.Z.ESC,dn=Xe.Z.HOME,nn=Xe.Z.END,Jt=[$e,Mt,St,Qe];function Bt(He,At,Dt,Qt){var jt,qt,$t,En,In="prev",zn="next",er="children",mr="parent";if(He==="inline"&&Qt===wn)return{inlineTrigger:!0};var wr=(jt={},(0,Oe.Z)(jt,$e,In),(0,Oe.Z)(jt,Mt,zn),jt),cr=(qt={},(0,Oe.Z)(qt,St,Dt?zn:In),(0,Oe.Z)(qt,Qe,Dt?In:zn),(0,Oe.Z)(qt,Mt,er),(0,Oe.Z)(qt,wn,er),qt),Zn=($t={},(0,Oe.Z)($t,$e,In),(0,Oe.Z)($t,Mt,zn),(0,Oe.Z)($t,wn,er),(0,Oe.Z)($t,cn,mr),(0,Oe.Z)($t,St,Dt?er:mr),(0,Oe.Z)($t,Qe,Dt?mr:er),$t),Ar={inline:wr,horizontal:cr,vertical:Zn,inlineSub:wr,horizontalSub:Zn,verticalSub:Zn},pr=(En=Ar["".concat(He).concat(At?"":"Sub")])===null||En===void 0?void 0:En[Qt];switch(pr){case In:return{offset:-1,sibling:!0};case zn:return{offset:1,sibling:!0};case mr:return{offset:-1,sibling:!1};case er:return{offset:1,sibling:!1};default:return null}}function ge(He){for(var At=He;At;){if(At.getAttribute("data-menu-list"))return At;At=At.parentElement}return null}function ue(He,At){for(var Dt=He||document.activeElement;Dt;){if(At.has(Dt))return Dt;Dt=Dt.parentElement}return null}function se(He,At){var Dt=ln(He,!0);return Dt.filter(function(Qt){return At.has(Qt)})}function he(He,At,Dt){var Qt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!He)return null;var jt=se(He,At),qt=jt.length,$t=jt.findIndex(function(En){return Dt===En});return Qt<0?$t===-1?$t=qt-1:$t-=1:Qt>0&&($t+=1),$t=($t+qt)%qt,jt[$t]}var fe=function(At,Dt){var Qt=new Set,jt=new Map,qt=new Map;return At.forEach(function($t){var En=document.querySelector("[data-menu-id='".concat(yt(Dt,$t),"']"));En&&(Qt.add(En),qt.set(En,$t),jt.set($t,En))}),{elements:Qt,key2element:jt,element2key:qt}};function ce(He,At,Dt,Qt,jt,qt,$t,En,In,zn){var er=Ge.useRef(),mr=Ge.useRef();mr.current=At;var wr=function(){_t.Z.cancel(er.current)};return Ge.useEffect(function(){return function(){wr()}},[]),function(cr){var Zn=cr.which;if([].concat(Jt,[wn,cn,dn,nn]).includes(Zn)){var Ar=qt(),pr=fe(Ar,Qt),Or=pr,ur=Or.elements,or=Or.key2element,_r=Or.element2key,Sr=or.get(At),Jr=ue(Sr,ur),si=_r.get(Jr),br=Bt(He,$t(si,!0).length===1,Dt,Zn);if(!br&&Zn!==dn&&Zn!==nn)return;(Jt.includes(Zn)||[dn,nn].includes(Zn))&&cr.preventDefault();var Nn=function(Kr){if(Kr){var yi=Kr,ir=Kr.querySelector("a");ir!=null&&ir.getAttribute("href")&&(yi=ir);var hr=_r.get(Kr);En(hr),wr(),er.current=(0,_t.Z)(function(){mr.current===hr&&yi.focus()})}};if([dn,nn].includes(Zn)||br.sibling||!Jr){var Rn;!Jr||He==="inline"?Rn=jt.current:Rn=ge(Jr);var kr,yr=se(Rn,ur);Zn===dn?kr=yr[0]:Zn===nn?kr=yr[yr.length-1]:kr=he(Rn,ur,Jr,br.offset),Nn(kr)}else if(br.inlineTrigger)In(si);else if(br.offset>0)In(si,!0),wr(),er.current=(0,_t.Z)(function(){pr=fe(Ar,Qt);var Cr=Jr.getAttribute("aria-controls"),Kr=document.getElementById(Cr),yi=he(Kr,pr.elements);Nn(yi)},5);else if(br.offset<0){var Hr=$t(si,!0),jr=Hr[Hr.length-2],Gr=or.get(jr);In(jr,!1),Nn(Gr)}}zn==null||zn(cr)}}function Ae(He){Promise.resolve().then(He)}var rt="__RC_UTIL_PATH_SPLIT__",Le=function(At){return At.join(rt)},Ke=function(At){return At.split(rt)},Lt="rc-menu-more";function xt(){var He=Ge.useState({}),At=(0,we.Z)(He,2),Dt=At[1],Qt=(0,Ge.useRef)(new Map),jt=(0,Ge.useRef)(new Map),qt=Ge.useState([]),$t=(0,we.Z)(qt,2),En=$t[0],In=$t[1],zn=(0,Ge.useRef)(0),er=(0,Ge.useRef)(!1),mr=function(){er.current||Dt({})},wr=(0,Ge.useCallback)(function(or,_r){var Sr=Le(_r);jt.current.set(Sr,or),Qt.current.set(or,Sr),zn.current+=1;var Jr=zn.current;Ae(function(){Jr===zn.current&&mr()})},[]),cr=(0,Ge.useCallback)(function(or,_r){var Sr=Le(_r);jt.current.delete(Sr),Qt.current.delete(or)},[]),Zn=(0,Ge.useCallback)(function(or){In(or)},[]),Ar=(0,Ge.useCallback)(function(or,_r){var Sr=Qt.current.get(or)||"",Jr=Ke(Sr);return _r&&En.includes(Jr[0])&&Jr.unshift(Lt),Jr},[En]),pr=(0,Ge.useCallback)(function(or,_r){return or.some(function(Sr){var Jr=Ar(Sr,!0);return Jr.includes(_r)})},[Ar]),Or=function(){var _r=(0,dt.Z)(Qt.current.keys());return En.length&&_r.push(Lt),_r},ur=(0,Ge.useCallback)(function(or){var _r="".concat(Qt.current.get(or)).concat(rt),Sr=new Set;return(0,dt.Z)(jt.current.keys()).forEach(function(Jr){Jr.startsWith(_r)&&Sr.add(jt.current.get(Jr))}),Sr},[]);return Ge.useEffect(function(){return function(){er.current=!0}},[]),{registerPath:wr,unregisterPath:cr,refreshOverflowKeys:Zn,isSubPathKey:pr,getKeyPath:Ar,getKeys:Or,getSubPathKeys:ur}}function Ye(He){var At=Ge.useRef(He);At.current=He;var Dt=Ge.useCallback(function(){for(var Qt,jt=arguments.length,qt=new Array(jt),$t=0;$t<jt;$t++)qt[$t]=arguments[$t];return(Qt=At.current)===null||Qt===void 0?void 0:Qt.call.apply(Qt,[At].concat(qt))},[]);return He?Dt:void 0}var Pt=Math.random().toFixed(5).toString().slice(2),hn=0;function at(He){var At=(0,_e.Z)(He,{value:He}),Dt=(0,we.Z)(At,2),Qt=Dt[0],jt=Dt[1];return Ge.useEffect(function(){hn+=1;var qt="".concat(Pt,"-").concat(hn);jt("rc-menu-uuid-".concat(qt))},[]),Qt}var Xt=le(38705),fn=le(17212),et=le(39153),De=le(55401),qe=le(2738),Ot=le(8654);function Gt(He,At,Dt,Qt){var jt=Ge.useContext(ot),qt=jt.activeKey,$t=jt.onActive,En=jt.onInactive,In={active:qt===He};return At||(In.onMouseEnter=function(zn){Dt==null||Dt({key:He,domEvent:zn}),$t(He)},In.onMouseLeave=function(zn){Qt==null||Qt({key:He,domEvent:zn}),En(He)}),In}function an(He){var At=Ge.useContext(ot),Dt=At.mode,Qt=At.rtl,jt=At.inlineIndent;if(Dt!=="inline")return null;var qt=He;return Qt?{paddingRight:qt*jt}:{paddingLeft:qt*jt}}function Mn(He){var At=He.icon,Dt=He.props,Qt=He.children,jt;return At===null||At===!1?null:(typeof At=="function"?jt=Ge.createElement(At,(0,Ne.Z)({},Dt)):typeof At!="boolean"&&(jt=At),jt||Qt||null)}var Dn=["item"];function Ln(He){var At=He.item,Dt=(0,Te.Z)(He,Dn);return Object.defineProperty(Dt,"item",{get:function(){return(0,Ie.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),At}}),Dt}var Un=["title","attribute","elementRef"],Wn=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],On=["active"],Hn=function(He){(0,et.Z)(Dt,He);var At=(0,De.Z)(Dt);function Dt(){return(0,Xt.Z)(this,Dt),At.apply(this,arguments)}return(0,fn.Z)(Dt,[{key:"render",value:function(){var jt=this.props,qt=jt.title,$t=jt.attribute,En=jt.elementRef,In=(0,Te.Z)(jt,Un),zn=(0,qe.Z)(In,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Ie.ZP)(!$t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),Ge.createElement(Ce.Z.Item,(0,oe.Z)({},$t,{title:typeof qt=="string"?qt:void 0},zn,{ref:En}))}}]),Dt}(Ge.Component),Dr=Ge.forwardRef(function(He,At){var Dt,Qt=He.style,jt=He.className,qt=He.eventKey,$t=He.warnKey,En=He.disabled,In=He.itemIcon,zn=He.children,er=He.role,mr=He.onMouseEnter,wr=He.onMouseLeave,cr=He.onClick,Zn=He.onKeyDown,Ar=He.onFocus,pr=(0,Te.Z)(He,Wn),Or=lt(qt),ur=Ge.useContext(ot),or=ur.prefixCls,_r=ur.onItemClick,Sr=ur.disabled,Jr=ur.overflowDisabled,si=ur.itemIcon,br=ur.selectedKeys,Nn=ur.onActive,Rn=Ge.useContext(Tt),kr=Rn._internalRenderMenuItem,yr="".concat(or,"-item"),Hr=Ge.useRef(),jr=Ge.useRef(),Gr=Sr||En,Cr=(0,Ot.x1)(At,jr),Kr=Je(qt),yi=function(ar){return{key:qt,keyPath:(0,dt.Z)(Kr).reverse(),item:Hr.current,domEvent:ar}},ir=In||si,hr=Gt(qt,Gr,mr,wr),Vr=hr.active,qr=(0,Te.Z)(hr,On),xi=br.includes(qt),Ei=an(Kr.length),vi=function(ar){if(!Gr){var Br=yi(ar);cr==null||cr(Ln(Br)),_r(Br)}},ci=function(ar){if(Zn==null||Zn(ar),ar.which===Xe.Z.ENTER){var Br=yi(ar);cr==null||cr(Ln(Br)),_r(Br)}},Ai=function(ar){Nn(qt),Ar==null||Ar(ar)},Li={};He.role==="option"&&(Li["aria-selected"]=xi);var dr=Ge.createElement(Hn,(0,oe.Z)({ref:Hr,elementRef:Cr,role:er===null?"none":er||"menuitem",tabIndex:En?null:-1,"data-menu-id":Jr&&Or?null:Or},pr,qr,Li,{component:"li","aria-disabled":En,style:(0,Ne.Z)((0,Ne.Z)({},Ei),Qt),className:be()(yr,(Dt={},(0,Oe.Z)(Dt,"".concat(yr,"-active"),Vr),(0,Oe.Z)(Dt,"".concat(yr,"-selected"),xi),(0,Oe.Z)(Dt,"".concat(yr,"-disabled"),Gr),Dt),jt),onClick:vi,onKeyDown:ci,onFocus:Ai}),zn,Ge.createElement(Mn,{props:(0,Ne.Z)((0,Ne.Z)({},He),{},{isSelected:xi}),icon:ir}));return kr&&(dr=kr(dr,He,{selected:xi})),dr});function Pr(He,At){var Dt=He.eventKey,Qt=tt(),jt=Je(Dt);return Ge.useEffect(function(){if(Qt)return Qt.registerPath(Dt,jt),function(){Qt.unregisterPath(Dt,jt)}},[jt]),Qt?null:Ge.createElement(Dr,(0,oe.Z)({},He,{ref:At}))}var fr=Ge.forwardRef(Pr),Jn=["className","children"],Fr=function(At,Dt){var Qt=At.className,jt=At.children,qt=(0,Te.Z)(At,Jn),$t=Ge.useContext(ot),En=$t.prefixCls,In=$t.mode,zn=$t.rtl;return Ge.createElement("ul",(0,oe.Z)({className:be()(En,zn&&"".concat(En,"-rtl"),"".concat(En,"-sub"),"".concat(En,"-").concat(In==="inline"?"inline":"vertical"),Qt),role:"menu"},qt,{"data-menu-list":!0,ref:Dt}),jt)},Tn=Ge.forwardRef(Fr);Tn.displayName="SubMenuList";var Ir=Tn,Yr=le(11592);function nr(He,At){return(0,Yr.Z)(He).map(function(Dt,Qt){if(Ge.isValidElement(Dt)){var jt,qt,$t=Dt.key,En=(jt=(qt=Dt.props)===null||qt===void 0?void 0:qt.eventKey)!==null&&jt!==void 0?jt:$t,In=En==null;In&&(En="tmp_key-".concat([].concat((0,dt.Z)(At),[Qt]).join("-")));var zn={key:En,eventKey:En};return Ge.cloneElement(Dt,zn)}return Dt})}var $r=le(35593),Qr={adjustX:1,adjustY:1},$n={topLeft:{points:["bl","tl"],overflow:Qr},topRight:{points:["br","tr"],overflow:Qr},bottomLeft:{points:["tl","bl"],overflow:Qr},bottomRight:{points:["tr","br"],overflow:Qr},leftTop:{points:["tr","tl"],overflow:Qr},leftBottom:{points:["br","bl"],overflow:Qr},rightTop:{points:["tl","tr"],overflow:Qr},rightBottom:{points:["bl","br"],overflow:Qr}},Xn={topLeft:{points:["bl","tl"],overflow:Qr},topRight:{points:["br","tr"],overflow:Qr},bottomLeft:{points:["tl","bl"],overflow:Qr},bottomRight:{points:["tr","br"],overflow:Qr},rightTop:{points:["tr","tl"],overflow:Qr},rightBottom:{points:["br","bl"],overflow:Qr},leftTop:{points:["tl","tr"],overflow:Qr},leftBottom:{points:["bl","br"],overflow:Qr}},Kn=null;function Gn(He,At,Dt){if(At)return At;if(Dt)return Dt[He]||Dt.other}var Tr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function bt(He){var At=He.prefixCls,Dt=He.visible,Qt=He.children,jt=He.popup,qt=He.popupStyle,$t=He.popupClassName,En=He.popupOffset,In=He.disabled,zn=He.mode,er=He.onVisibleChange,mr=Ge.useContext(ot),wr=mr.getPopupContainer,cr=mr.rtl,Zn=mr.subMenuOpenDelay,Ar=mr.subMenuCloseDelay,pr=mr.builtinPlacements,Or=mr.triggerSubMenuAction,ur=mr.forceSubMenuRender,or=mr.rootClassName,_r=mr.motion,Sr=mr.defaultMotions,Jr=Ge.useState(!1),si=(0,we.Z)(Jr,2),br=si[0],Nn=si[1],Rn=cr?(0,Ne.Z)((0,Ne.Z)({},Xn),pr):(0,Ne.Z)((0,Ne.Z)({},$n),pr),kr=Tr[zn],yr=Gn(zn,_r,Sr),Hr=Ge.useRef(yr);zn!=="inline"&&(Hr.current=yr);var jr=(0,Ne.Z)((0,Ne.Z)({},Hr.current),{},{leavedClassName:"".concat(At,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Gr=Ge.useRef();return Ge.useEffect(function(){return Gr.current=(0,_t.Z)(function(){Nn(Dt)}),function(){_t.Z.cancel(Gr.current)}},[Dt]),Ge.createElement($r.Z,{prefixCls:At,popupClassName:be()("".concat(At,"-popup"),(0,Oe.Z)({},"".concat(At,"-rtl"),cr),$t,or),stretch:zn==="horizontal"?"minWidth":null,getPopupContainer:wr,builtinPlacements:Rn,popupPlacement:kr,popupVisible:br,popup:jt,popupStyle:qt,popupAlign:En&&{offset:En},action:In?[]:[Or],mouseEnterDelay:Zn,mouseLeaveDelay:Ar,onPopupVisibleChange:er,forceRender:ur,popupMotion:jr,fresh:!0},Qt)}var ke=le(77900);function ze(He){var At=He.id,Dt=He.open,Qt=He.keyPath,jt=He.children,qt="inline",$t=Ge.useContext(ot),En=$t.prefixCls,In=$t.forceSubMenuRender,zn=$t.motion,er=$t.defaultMotions,mr=$t.mode,wr=Ge.useRef(!1);wr.current=mr===qt;var cr=Ge.useState(!wr.current),Zn=(0,we.Z)(cr,2),Ar=Zn[0],pr=Zn[1],Or=wr.current?Dt:!1;Ge.useEffect(function(){wr.current&&pr(!1)},[mr]);var ur=(0,Ne.Z)({},Gn(qt,zn,er));Qt.length>1&&(ur.motionAppear=!1);var or=ur.onVisibleChanged;return ur.onVisibleChanged=function(_r){return!wr.current&&!_r&&pr(!0),or==null?void 0:or(_r)},Ar?null:Ge.createElement(Ve,{mode:qt,locked:!wr.current},Ge.createElement(ke.default,(0,oe.Z)({visible:Or},ur,{forceRender:In,removeOnLeave:!1,leavedClassName:"".concat(En,"-hidden")}),function(_r){var Sr=_r.className,Jr=_r.style;return Ge.createElement(Ir,{id:At,className:Sr,style:Jr},jt)}))}var Re=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Pe=["active"],it=function(At){var Dt,Qt=At.style,jt=At.className,qt=At.title,$t=At.eventKey,En=At.warnKey,In=At.disabled,zn=At.internalPopupClose,er=At.children,mr=At.itemIcon,wr=At.expandIcon,cr=At.popupClassName,Zn=At.popupOffset,Ar=At.popupStyle,pr=At.onClick,Or=At.onMouseEnter,ur=At.onMouseLeave,or=At.onTitleClick,_r=At.onTitleMouseEnter,Sr=At.onTitleMouseLeave,Jr=(0,Te.Z)(At,Re),si=lt($t),br=Ge.useContext(ot),Nn=br.prefixCls,Rn=br.mode,kr=br.openKeys,yr=br.disabled,Hr=br.overflowDisabled,jr=br.activeKey,Gr=br.selectedKeys,Cr=br.itemIcon,Kr=br.expandIcon,yi=br.onItemClick,ir=br.onOpenChange,hr=br.onActive,Vr=Ge.useContext(Tt),qr=Vr._internalRenderSubMenuItem,xi=Ge.useContext(kt),Ei=xi.isSubPathKey,vi=Je(),ci="".concat(Nn,"-submenu"),Ai=yr||In,Li=Ge.useRef(),dr=Ge.useRef(),sr=mr!=null?mr:Cr,ar=wr!=null?wr:Kr,Br=kr.includes($t),gi=!Hr&&Br,Di=Ei(Gr,$t),Ii=Gt($t,Ai,_r,Sr),ki=Ii.active,wi=(0,Te.Z)(Ii,Pe),Pi=Ge.useState(!1),Gi=(0,we.Z)(Pi,2),Hi=Gi[0],oa=Gi[1],li=function(ti){Ai||oa(ti)},fi=function(ti){li(!0),Or==null||Or({key:$t,domEvent:ti})},Ri=function(ti){li(!1),ur==null||ur({key:$t,domEvent:ti})},sn=Ge.useMemo(function(){return ki||(Rn!=="inline"?Hi||Ei([jr],$t):!1)},[Rn,ki,jr,Hi,$t,Ei]),rn=an(vi.length),vn=function(ti){Ai||(or==null||or({key:$t,domEvent:ti}),Rn==="inline"&&ir($t,!Br))},Fn=Ye(function(qn){pr==null||pr(Ln(qn)),yi(qn)}),_n=function(ti){Rn!=="inline"&&ir($t,ti)},tr=function(){hr($t)},xn=si&&"".concat(si,"-popup"),jn=Ge.createElement("div",(0,oe.Z)({role:"menuitem",style:rn,className:"".concat(ci,"-title"),tabIndex:Ai?null:-1,ref:Li,title:typeof qt=="string"?qt:null,"data-menu-id":Hr&&si?null:si,"aria-expanded":gi,"aria-haspopup":!0,"aria-controls":xn,"aria-disabled":Ai,onClick:vn,onFocus:tr},wi),qt,Ge.createElement(Mn,{icon:Rn!=="horizontal"?ar:void 0,props:(0,Ne.Z)((0,Ne.Z)({},At),{},{isOpen:gi,isSubMenu:!0})},Ge.createElement("i",{className:"".concat(ci,"-arrow")}))),gr=Ge.useRef(Rn);if(Rn!=="inline"&&vi.length>1?gr.current="vertical":gr.current=Rn,!Hr){var Rr=gr.current;jn=Ge.createElement(bt,{mode:Rr,prefixCls:ci,visible:!zn&&gi&&Rn!=="inline",popupClassName:cr,popupOffset:Zn,popupStyle:Ar,popup:Ge.createElement(Ve,{mode:Rr==="horizontal"?"vertical":Rr},Ge.createElement(Ir,{id:xn,ref:dr},er)),disabled:Ai,onVisibleChange:_n},jn)}var Wr=Ge.createElement(Ce.Z.Item,(0,oe.Z)({role:"none"},Jr,{component:"li",style:Qt,className:be()(ci,"".concat(ci,"-").concat(Rn),jt,(Dt={},(0,Oe.Z)(Dt,"".concat(ci,"-open"),gi),(0,Oe.Z)(Dt,"".concat(ci,"-active"),sn),(0,Oe.Z)(Dt,"".concat(ci,"-selected"),Di),(0,Oe.Z)(Dt,"".concat(ci,"-disabled"),Ai),Dt)),onMouseEnter:fi,onMouseLeave:Ri}),jn,!Hr&&Ge.createElement(ze,{id:xn,open:gi,keyPath:vi},er));return qr&&(Wr=qr(Wr,At,{selected:Di,active:sn,open:gi,disabled:Ai})),Ge.createElement(Ve,{onItemClick:Fn,mode:Rn==="horizontal"?"vertical":Rn,itemIcon:sr,expandIcon:ar},Wr)};function vt(He){var At=He.eventKey,Dt=He.children,Qt=Je(At),jt=nr(Dt,Qt),qt=tt();Ge.useEffect(function(){if(qt)return qt.registerPath(At,Qt),function(){qt.unregisterPath(At,Qt)}},[Qt]);var $t;return qt?$t=jt:$t=Ge.createElement(it,He,jt),Ge.createElement(mt.Provider,{value:Qt},$t)}var Ut=le(43749),Ft=["className","title","eventKey","children"],on=["children"],Cn=function(At){var Dt=At.className,Qt=At.title,jt=At.eventKey,qt=At.children,$t=(0,Te.Z)(At,Ft),En=Ge.useContext(ot),In=En.prefixCls,zn="".concat(In,"-item-group");return Ge.createElement("li",(0,oe.Z)({role:"presentation"},$t,{onClick:function(mr){return mr.stopPropagation()},className:be()(zn,Dt)}),Ge.createElement("div",{role:"presentation",className:"".concat(zn,"-title"),title:typeof Qt=="string"?Qt:void 0},Qt),Ge.createElement("ul",{role:"group",className:"".concat(zn,"-list")},qt))};function Bn(He){var At=He.children,Dt=(0,Te.Z)(He,on),Qt=Je(Dt.eventKey),jt=nr(At,Qt),qt=tt();return qt?jt:Ge.createElement(Cn,(0,qe.Z)(Dt,["warnKey"]),jt)}function An(He){var At=He.className,Dt=He.style,Qt=Ge.useContext(ot),jt=Qt.prefixCls,qt=tt();return qt?null:Ge.createElement("li",{role:"separator",className:be()("".concat(jt,"-item-divider"),At),style:Dt})}var Wt=["label","children","key","type"];function bn(He){return(He||[]).map(function(At,Dt){if(At&&(0,Ut.Z)(At)==="object"){var Qt=At,jt=Qt.label,qt=Qt.children,$t=Qt.key,En=Qt.type,In=(0,Te.Z)(Qt,Wt),zn=$t!=null?$t:"tmp-".concat(Dt);return qt||En==="group"?En==="group"?Ge.createElement(Bn,(0,oe.Z)({key:zn},In,{title:jt}),bn(qt)):Ge.createElement(vt,(0,oe.Z)({key:zn},In,{title:jt}),bn(qt)):En==="divider"?Ge.createElement(An,(0,oe.Z)({key:zn},In)):Ge.createElement(fr,(0,oe.Z)({key:zn},In),jt)}return null}).filter(function(At){return At})}function pt(He,At,Dt){var Qt=He;return At&&(Qt=bn(At)),nr(Qt,Dt)}var It=["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"],Kt=[],Nt=Ge.forwardRef(function(He,At){var Dt,Qt,jt=He,qt=jt.prefixCls,$t=qt===void 0?"rc-menu":qt,En=jt.rootClassName,In=jt.style,zn=jt.className,er=jt.tabIndex,mr=er===void 0?0:er,wr=jt.items,cr=jt.children,Zn=jt.direction,Ar=jt.id,pr=jt.mode,Or=pr===void 0?"vertical":pr,ur=jt.inlineCollapsed,or=jt.disabled,_r=jt.disabledOverflow,Sr=jt.subMenuOpenDelay,Jr=Sr===void 0?.1:Sr,si=jt.subMenuCloseDelay,br=si===void 0?.1:si,Nn=jt.forceSubMenuRender,Rn=jt.defaultOpenKeys,kr=jt.openKeys,yr=jt.activeKey,Hr=jt.defaultActiveFirst,jr=jt.selectable,Gr=jr===void 0?!0:jr,Cr=jt.multiple,Kr=Cr===void 0?!1:Cr,yi=jt.defaultSelectedKeys,ir=jt.selectedKeys,hr=jt.onSelect,Vr=jt.onDeselect,qr=jt.inlineIndent,xi=qr===void 0?24:qr,Ei=jt.motion,vi=jt.defaultMotions,ci=jt.triggerSubMenuAction,Ai=ci===void 0?"hover":ci,Li=jt.builtinPlacements,dr=jt.itemIcon,sr=jt.expandIcon,ar=jt.overflowedIndicator,Br=ar===void 0?"...":ar,gi=jt.overflowedIndicatorPopupClassName,Di=jt.getPopupContainer,Ii=jt.onClick,ki=jt.onOpenChange,wi=jt.onKeyDown,Pi=jt.openAnimation,Gi=jt.openTransitionName,Hi=jt._internalRenderMenuItem,oa=jt._internalRenderSubMenuItem,li=(0,Te.Z)(jt,It),fi=Ge.useMemo(function(){return pt(cr,wr,Kt)},[cr,wr]),Ri=Ge.useState(!1),sn=(0,we.Z)(Ri,2),rn=sn[0],vn=sn[1],Fn=Ge.useRef(),_n=at(Ar),tr=Zn==="rtl",xn=(0,_e.Z)(Rn,{value:kr,postState:function(Zi){return Zi||Kt}}),jn=(0,we.Z)(xn,2),gr=jn[0],Rr=jn[1],Wr=function(Zi){var Ji=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function ro(){Rr(Zi),ki==null||ki(Zi)}Ji?(0,wt.flushSync)(ro):ro()},qn=Ge.useState(gr),ti=(0,we.Z)(qn,2),di=ti[0],ai=ti[1],Er=Ge.useRef(!1),Ur=Ge.useMemo(function(){return(Or==="inline"||Or==="vertical")&&ur?["vertical",ur]:[Or,!1]},[Or,ur]),bi=(0,we.Z)(Ur,2),pi=bi[0],Si=bi[1],pa=pi==="inline",Aa=Ge.useState(pi),Ha=(0,we.Z)(Aa,2),Pa=Ha[0],Po=Ha[1],Ua=Ge.useState(Si),ba=(0,we.Z)(Ua,2),Xi=ba[0],Ka=ba[1];Ge.useEffect(function(){Po(pi),Ka(Si),Er.current&&(pa?Rr(di):Wr(Kt))},[pi,Si]);var so=Ge.useState(0),lo=(0,we.Z)(so,2),co=lo[0],Wa=lo[1],xa=co>=fi.length-1||Pa!=="horizontal"||_r;Ge.useEffect(function(){pa&&ai(gr)},[gr]),Ge.useEffect(function(){return Er.current=!0,function(){Er.current=!1}},[]);var wa=xt(),Ki=wa.registerPath,uo=wa.unregisterPath,Ho=wa.refreshOverflowKeys,To=wa.isSubPathKey,Ni=wa.getKeyPath,Bi=wa.getKeys,Qi=wa.getSubPathKeys,Ta=Ge.useMemo(function(){return{registerPath:Ki,unregisterPath:uo}},[Ki,uo]),ea=Ge.useMemo(function(){return{isSubPathKey:To}},[To]);Ge.useEffect(function(){Ho(xa?Kt:fi.slice(co+1).map(function(Wi){return Wi.key}))},[co,xa]);var ja=(0,_e.Z)(yr||Hr&&((Dt=fi[0])===null||Dt===void 0?void 0:Dt.key),{value:yr}),Ga=(0,we.Z)(ja,2),ho=Ga[0],Za=Ga[1],go=Ye(function(Wi){Za(Wi)}),vo=Ye(function(){Za(void 0)});(0,Ge.useImperativeHandle)(At,function(){return{list:Fn.current,focus:function(Zi){var Ji,ro=Bi(),Ra=fe(ro,_n),Ao=Ra.elements,wo=Ra.key2element,Ya=Ra.element2key,Oo=se(Fn.current,Ao),Ro=ho!=null?ho:Oo[0]?Ya.get(Oo[0]):(Ji=fi.find(function(jl){return!jl.props.disabled}))===null||Ji===void 0?void 0:Ji.key,ko=wo.get(Ro);if(Ro&&ko){var ss;ko==null||(ss=ko.focus)===null||ss===void 0||ss.call(ko,Zi)}}}});var Oa=(0,_e.Z)(yi||[],{value:ir,postState:function(Zi){return Array.isArray(Zi)?Zi:Zi==null?Kt:[Zi]}}),bl=(0,we.Z)(Oa,2),Xo=bl[0],Js=bl[1],Kl=function(Zi){if(Gr){var Ji=Zi.key,ro=Xo.includes(Ji),Ra;Kr?ro?Ra=Xo.filter(function(wo){return wo!==Ji}):Ra=[].concat((0,dt.Z)(Xo),[Ji]):Ra=[Ji],Js(Ra);var Ao=(0,Ne.Z)((0,Ne.Z)({},Zi),{},{selectedKeys:Ra});ro?Vr==null||Vr(Ao):hr==null||hr(Ao)}!Kr&&gr.length&&Pa!=="inline"&&Wr(Kt)},Wl=Ye(function(Wi){Ii==null||Ii(Ln(Wi)),Kl(Wi)}),Cs=Ye(function(Wi,Zi){var Ji=gr.filter(function(Ra){return Ra!==Wi});if(Zi)Ji.push(Wi);else if(Pa!=="inline"){var ro=Qi(Wi);Ji=Ji.filter(function(Ra){return!ro.has(Ra)})}(0,ft.Z)(gr,Ji,!0)||Wr(Ji,!0)}),Mc=function(Zi,Ji){var ro=Ji!=null?Ji:!gr.includes(Zi);Cs(Zi,ro)},as=ce(Pa,ho,tr,_n,Fn,Bi,Ni,Za,Mc,wi);Ge.useEffect(function(){vn(!0)},[]);var xl=Ge.useMemo(function(){return{_internalRenderMenuItem:Hi,_internalRenderSubMenuItem:oa}},[Hi,oa]),Qo=Pa!=="horizontal"||_r?fi:fi.map(function(Wi,Zi){return Ge.createElement(Ve,{key:Wi.key,overflowDisabled:Zi>co},Wi)}),os=Ge.createElement(Ce.Z,(0,oe.Z)({id:Ar,ref:Fn,prefixCls:"".concat($t,"-overflow"),component:"ul",itemComponent:fr,className:be()($t,"".concat($t,"-root"),"".concat($t,"-").concat(Pa),zn,(Qt={},(0,Oe.Z)(Qt,"".concat($t,"-inline-collapsed"),Xi),(0,Oe.Z)(Qt,"".concat($t,"-rtl"),tr),Qt),En),dir:Zn,style:In,role:"menu",tabIndex:mr,data:Qo,renderRawItem:function(Zi){return Zi},renderRawRest:function(Zi){var Ji=Zi.length,ro=Ji?fi.slice(-Ji):null;return Ge.createElement(vt,{eventKey:Lt,title:Br,disabled:xa,internalPopupClose:Ji===0,popupClassName:gi},ro)},maxCount:Pa!=="horizontal"||_r?Ce.Z.INVALIDATE:Ce.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Zi){Wa(Zi)},onKeyDown:as},li));return Ge.createElement(Tt.Provider,{value:xl},Ge.createElement(ut.Provider,{value:_n},Ge.createElement(Ve,{prefixCls:$t,rootClassName:En,mode:Pa,openKeys:gr,rtl:tr,disabled:or,motion:rn?Ei:null,defaultMotions:rn?vi:null,activeKey:ho,onActive:go,onInactive:vo,selectedKeys:Xo,inlineIndent:xi,subMenuOpenDelay:Jr,subMenuCloseDelay:br,forceSubMenuRender:Nn,builtinPlacements:Li,triggerSubMenuAction:Ai,getPopupContainer:Di,itemIcon:dr,expandIcon:sr,onItemClick:Wl,onOpenChange:Cs},Ge.createElement(kt.Provider,{value:ea},os),Ge.createElement("div",{style:{display:"none"},"aria-hidden":!0},Ge.createElement(Ue.Provider,{value:Ta},fi)))))}),gn=Nt,Zt=gn;Zt.Item=fr,Zt.SubMenu=vt,Zt.ItemGroup=Bn,Zt.Divider=An;var pn=Zt},83836:function(mn,un,le){"use strict";le.d(un,{Z:function(){return en}});var oe=le(60499),Oe=le(85899),Ne=le(72190),dt=le(42244),we=le(59301),Te=le(92310),Fe=le.n(Te),be=le(29301),Ce=le(34280),_e=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ft=void 0;function Ie(Ht,je){var xe=Ht.prefixCls,Xe=Ht.invalidate,_t=Ht.item,St=Ht.renderItem,Qe=Ht.responsive,$e=Ht.responsiveDisabled,Mt=Ht.registerSize,wn=Ht.itemKey,cn=Ht.className,dn=Ht.style,nn=Ht.children,Jt=Ht.display,Bt=Ht.order,ge=Ht.component,ue=ge===void 0?"div":ge,se=(0,dt.Z)(Ht,_e),he=Qe&&!Jt;function fe(Ke){Mt(wn,Ke)}we.useEffect(function(){return function(){fe(null)}},[]);var ce=St&&_t!==ft?St(_t,{index:Bt}):nn,Ae;Xe||(Ae={opacity:he?0:1,height:he?0:ft,overflowY:he?"hidden":ft,order:Qe?Bt:ft,pointerEvents:he?"none":ft,position:he?"absolute":ft});var rt={};he&&(rt["aria-hidden"]=!0);var Le=we.createElement(ue,(0,oe.Z)({className:Fe()(!Xe&&xe,cn),style:(0,Oe.Z)((0,Oe.Z)({},Ae),dn)},rt,se,{ref:je}),ce);return Qe&&(Le=we.createElement(be.Z,{onResize:function(Lt){var xt=Lt.offsetWidth;fe(xt)},disabled:$e},Le)),Le}var Ge=we.forwardRef(Ie);Ge.displayName="Item";var wt=Ge,ut=le(6089),yt=le(4676),lt=le(16089);function ht(Ht){if(typeof MessageChannel=="undefined")(0,lt.Z)(Ht);else{var je=new MessageChannel;je.port1.onmessage=function(){return Ht()},je.port2.postMessage(void 0)}}function Vt(){var Ht=we.useRef(null),je=function(Xe){Ht.current||(Ht.current=[],ht(function(){(0,yt.unstable_batchedUpdates)(function(){Ht.current.forEach(function(_t){_t()}),Ht.current=null})})),Ht.current.push(Xe)};return je}function ot(Ht,je){var xe=we.useState(je),Xe=(0,Ne.Z)(xe,2),_t=Xe[0],St=Xe[1],Qe=(0,ut.Z)(function($e){Ht(function(){St($e)})});return[_t,Qe]}var gt=we.createContext(null),Ve=["component"],Me=["className"],Ue=["className"],tt=function(je,xe){var Xe=we.useContext(gt);if(!Xe){var _t=je.component,St=_t===void 0?"div":_t,Qe=(0,dt.Z)(je,Ve);return we.createElement(St,(0,oe.Z)({},Qe,{ref:xe}))}var $e=Xe.className,Mt=(0,dt.Z)(Xe,Me),wn=je.className,cn=(0,dt.Z)(je,Ue);return we.createElement(gt.Provider,{value:null},we.createElement(wt,(0,oe.Z)({ref:xe,className:Fe()($e,wn)},Mt,cn)))},mt=we.forwardRef(tt);mt.displayName="RawItem";var Je=mt,kt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],st="responsive",Tt="invalidate";function nt(Ht){return"+ ".concat(Ht.length," ...")}function Yt(Ht,je){var xe=Ht.prefixCls,Xe=xe===void 0?"rc-overflow":xe,_t=Ht.data,St=_t===void 0?[]:_t,Qe=Ht.renderItem,$e=Ht.renderRawItem,Mt=Ht.itemKey,wn=Ht.itemWidth,cn=wn===void 0?10:wn,dn=Ht.ssr,nn=Ht.style,Jt=Ht.className,Bt=Ht.maxCount,ge=Ht.renderRest,ue=Ht.renderRawRest,se=Ht.prefix,he=Ht.suffix,fe=Ht.component,ce=fe===void 0?"div":fe,Ae=Ht.itemComponent,rt=Ht.onVisibleChange,Le=(0,dt.Z)(Ht,kt),Ke=dn==="full",Lt=Vt(),xt=ot(Lt,null),Ye=(0,Ne.Z)(xt,2),Pt=Ye[0],hn=Ye[1],at=Pt||0,Xt=ot(Lt,new Map),fn=(0,Ne.Z)(Xt,2),et=fn[0],De=fn[1],qe=ot(Lt,0),Ot=(0,Ne.Z)(qe,2),Gt=Ot[0],an=Ot[1],Mn=ot(Lt,0),Dn=(0,Ne.Z)(Mn,2),Ln=Dn[0],Un=Dn[1],Wn=ot(Lt,0),On=(0,Ne.Z)(Wn,2),Hn=On[0],Dr=On[1],Pr=ot(Lt,0),fr=(0,Ne.Z)(Pr,2),Jn=fr[0],Fr=fr[1],Tn=(0,we.useState)(null),Ir=(0,Ne.Z)(Tn,2),Yr=Ir[0],nr=Ir[1],$r=(0,we.useState)(null),Qr=(0,Ne.Z)($r,2),$n=Qr[0],Xn=Qr[1],Kn=we.useMemo(function(){return $n===null&&Ke?Number.MAX_SAFE_INTEGER:$n||0},[$n,Pt]),Gn=(0,we.useState)(!1),Tr=(0,Ne.Z)(Gn,2),bt=Tr[0],ke=Tr[1],ze="".concat(Xe,"-item"),Re=Math.max(Gt,Ln),Pe=Bt===st,it=St.length&&Pe,vt=Bt===Tt,Ut=it||typeof Bt=="number"&&St.length>Bt,Ft=(0,we.useMemo)(function(){var qt=St;return it?Pt===null&&Ke?qt=St:qt=St.slice(0,Math.min(St.length,at/cn)):typeof Bt=="number"&&(qt=St.slice(0,Bt)),qt},[St,cn,Pt,Bt,it]),on=(0,we.useMemo)(function(){return it?St.slice(Kn+1):St.slice(Ft.length)},[St,Ft,it,Kn]),Cn=(0,we.useCallback)(function(qt,$t){var En;return typeof Mt=="function"?Mt(qt):(En=Mt&&(qt==null?void 0:qt[Mt]))!==null&&En!==void 0?En:$t},[Mt]),Bn=(0,we.useCallback)(Qe||function(qt){return qt},[Qe]);function An(qt,$t,En){$n===qt&&($t===void 0||$t===Yr)||(Xn(qt),En||(ke(qt<St.length-1),rt==null||rt(qt)),$t!==void 0&&nr($t))}function Wt(qt,$t){hn($t.clientWidth)}function bn(qt,$t){De(function(En){var In=new Map(En);return $t===null?In.delete(qt):In.set(qt,$t),In})}function pt(qt,$t){Un($t),an(Ln)}function It(qt,$t){Dr($t)}function Kt(qt,$t){Fr($t)}function Nt(qt){return et.get(Cn(Ft[qt],qt))}(0,Ce.Z)(function(){if(at&&typeof Re=="number"&&Ft){var qt=Hn+Jn,$t=Ft.length,En=$t-1;if(!$t){An(0,null);return}for(var In=0;In<$t;In+=1){var zn=Nt(In);if(Ke&&(zn=zn||0),zn===void 0){An(In-1,void 0,!0);break}if(qt+=zn,En===0&&qt<=at||In===En-1&&qt+Nt(En)<=at){An(En,null);break}else if(qt+Re>at){An(In-1,qt-zn-Jn+Ln);break}}he&&Nt(0)+Jn>at&&nr(null)}},[at,et,Ln,Hn,Jn,Cn,Ft]);var gn=bt&&!!on.length,Zt={};Yr!==null&&it&&(Zt={position:"absolute",left:Yr,top:0});var pn={prefixCls:ze,responsive:it,component:Ae,invalidate:vt},He=$e?function(qt,$t){var En=Cn(qt,$t);return we.createElement(gt.Provider,{key:En,value:(0,Oe.Z)((0,Oe.Z)({},pn),{},{order:$t,item:qt,itemKey:En,registerSize:bn,display:$t<=Kn})},$e(qt,$t))}:function(qt,$t){var En=Cn(qt,$t);return we.createElement(wt,(0,oe.Z)({},pn,{order:$t,key:En,item:qt,renderItem:Bn,itemKey:En,registerSize:bn,display:$t<=Kn}))},At={order:gn?Kn:Number.MAX_SAFE_INTEGER,className:"".concat(ze,"-rest"),registerSize:pt,display:gn},Dt=ge||nt,Qt=ue?we.createElement(gt.Provider,{value:(0,Oe.Z)((0,Oe.Z)({},pn),At)},ue(on)):we.createElement(wt,(0,oe.Z)({},pn,At),typeof Dt=="function"?Dt(on):Dt),jt=we.createElement(ce,(0,oe.Z)({className:Fe()(!vt&&Xe,Jt),style:nn,ref:je},Le),se&&we.createElement(wt,(0,oe.Z)({},pn,{responsive:Pe,responsiveDisabled:!it,order:-1,className:"".concat(ze,"-prefix"),registerSize:It,display:!0}),se),Ft.map(He),Ut?Qt:null,he&&we.createElement(wt,(0,oe.Z)({},pn,{responsive:Pe,responsiveDisabled:!it,order:Kn,className:"".concat(ze,"-suffix"),registerSize:Kt,display:!0,style:Zt}),he));return Pe?we.createElement(be.Z,{onResize:Wt,disabled:!it},jt):jt}var ln=we.forwardRef(Yt);ln.displayName="Overflow",ln.Item=Je,ln.RESPONSIVE=st,ln.INVALIDATE=Tt;var tn=ln,en=tn},91735:function(mn,un){"use strict";un.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"}},17115:function(mn,un,le){"use strict";le.d(un,{ZP:function(){return Fe}});var oe=le(72190),Oe=le(59301),Ne=le(47273),dt=0,we=(0,Ne.Z)();function Te(){var be;return we?(be=dt,dt+=1):be="TEST_OR_SSR",be}function Fe(be){var Ce=Oe.useState(),_e=(0,oe.Z)(Ce,2),ft=_e[0],Ie=_e[1];return Oe.useEffect(function(){Ie("rc_select_".concat(Te()))},[]),be||ft}},77861:function(mn,un,le){"use strict";le.d(un,{Ac:function(){return Pt},Xo:function(){return Ln},Wx:function(){return Wn},ZP:function(){return ze},lk:function(){return gt}});var oe=le(60499),Oe=le(77654),Ne=le(18642),dt=le(85899),we=le(72190),Te=le(42244),Fe=le(43749),be=le(18929),Ce=le(48736),_e=le(59301),ft=le(92310),Ie=le.n(ft),Ge=le(34280),wt=le(49658),ut=le(10228),yt=le(8654),lt=function(Pe){var it=Pe.className,vt=Pe.customizeIcon,Ut=Pe.customizeIconProps,Ft=Pe.onMouseDown,on=Pe.onClick,Cn=Pe.children,Bn;return typeof vt=="function"?Bn=vt(Ut):Bn=vt,_e.createElement("span",{className:it,onMouseDown:function(Wt){Wt.preventDefault(),Ft&&Ft(Wt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:on,"aria-hidden":!0},Bn!==void 0?Bn:_e.createElement("span",{className:Ie()(it.split(/\s+/).map(function(An){return"".concat(An,"-icon")}))},Cn))},ht=lt;function Vt(Re,Pe,it,vt,Ut){var Ft=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,on=arguments.length>6?arguments[6]:void 0,Cn=arguments.length>7?arguments[7]:void 0,Bn=_e.useMemo(function(){if((0,Fe.Z)(vt)==="object")return vt.clearIcon;if(Ut)return Ut},[vt,Ut]),An=_e.useMemo(function(){return!!(!Ft&&vt&&(it.length||on)&&!(Cn==="combobox"&&on===""))},[vt,Ft,it.length,on,Cn]);return{allowClear:An,clearIcon:_e.createElement(ht,{className:"".concat(Re,"-clear"),onMouseDown:Pe,customizeIcon:Bn},"\xD7")}}var ot=_e.createContext(null);function gt(){return _e.useContext(ot)}function Ve(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Pe=_e.useState(!1),it=(0,we.Z)(Pe,2),vt=it[0],Ut=it[1],Ft=_e.useRef(null),on=function(){window.clearTimeout(Ft.current)};_e.useEffect(function(){return on},[]);var Cn=function(An,Wt){on(),Ft.current=window.setTimeout(function(){Ut(An),Wt&&Wt()},Re)};return[vt,Cn,on]}function Me(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Pe=_e.useRef(null),it=_e.useRef(null);_e.useEffect(function(){return function(){window.clearTimeout(it.current)}},[]);function vt(Ut){(Ut||Pe.current===null)&&(Pe.current=Ut),window.clearTimeout(it.current),it.current=window.setTimeout(function(){Pe.current=null},Re)}return[function(){return Pe.current},vt]}function Ue(Re,Pe,it,vt){var Ut=_e.useRef(null);Ut.current={open:Pe,triggerOpen:it,customizedTrigger:vt},_e.useEffect(function(){function Ft(on){var Cn;if(!((Cn=Ut.current)!==null&&Cn!==void 0&&Cn.customizedTrigger)){var Bn=on.target;Bn.shadowRoot&&on.composed&&(Bn=on.composedPath()[0]||Bn),Ut.current.open&&Re().filter(function(An){return An}).every(function(An){return!An.contains(Bn)&&An!==Bn})&&Ut.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ft),function(){return window.removeEventListener("mousedown",Ft)}},[])}var tt=le(26112),mt=le(83836),Je=function(Pe,it){var vt,Ut,Ft=Pe.prefixCls,on=Pe.id,Cn=Pe.inputElement,Bn=Pe.disabled,An=Pe.tabIndex,Wt=Pe.autoFocus,bn=Pe.autoComplete,pt=Pe.editable,It=Pe.activeDescendantId,Kt=Pe.value,Nt=Pe.maxLength,gn=Pe.onKeyDown,Zt=Pe.onMouseDown,pn=Pe.onChange,He=Pe.onPaste,At=Pe.onCompositionStart,Dt=Pe.onCompositionEnd,Qt=Pe.open,jt=Pe.attrs,qt=Cn||_e.createElement("input",null),$t=qt,En=$t.ref,In=$t.props,zn=In.onKeyDown,er=In.onChange,mr=In.onMouseDown,wr=In.onCompositionStart,cr=In.onCompositionEnd,Zn=In.style;return(0,Ce.Kp)(!("maxLength"in qt.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),qt=_e.cloneElement(qt,(0,dt.Z)((0,dt.Z)((0,dt.Z)({type:"search"},In),{},{id:on,ref:(0,yt.sQ)(it,En),disabled:Bn,tabIndex:An,autoComplete:bn||"off",autoFocus:Wt,className:Ie()("".concat(Ft,"-selection-search-input"),(vt=qt)===null||vt===void 0||(Ut=vt.props)===null||Ut===void 0?void 0:Ut.className),role:"combobox","aria-label":"Search","aria-expanded":Qt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(on,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(on,"_list"),"aria-activedescendant":Qt?It:void 0},jt),{},{value:pt?Kt:"",maxLength:Nt,readOnly:!pt,unselectable:pt?null:"on",style:(0,dt.Z)((0,dt.Z)({},Zn),{},{opacity:pt?null:0}),onKeyDown:function(pr){gn(pr),zn&&zn(pr)},onMouseDown:function(pr){Zt(pr),mr&&mr(pr)},onChange:function(pr){pn(pr),er&&er(pr)},onCompositionStart:function(pr){At(pr),wr&&wr(pr)},onCompositionEnd:function(pr){Dt(pr),cr&&cr(pr)},onPaste:He})),qt},kt=_e.forwardRef(Je);kt.displayName="Input";var st=kt;function Tt(Re){return Array.isArray(Re)?Re:Re!==void 0?[Re]:[]}var nt=typeof window!="undefined"&&window.document&&window.document.documentElement,Yt=nt;function ln(Re){return Re!=null}function tn(Re){return!Re&&Re!==0}function en(Re){return["string","number"].includes((0,Fe.Z)(Re))}function Ht(Re){var Pe=void 0;return Re&&(en(Re.title)?Pe=Re.title.toString():en(Re.label)&&(Pe=Re.label.toString())),Pe}function je(Re,Pe){Yt?_e.useLayoutEffect(Re,Pe):_e.useEffect(Re,Pe)}function xe(Re){var Pe;return(Pe=Re.key)!==null&&Pe!==void 0?Pe:Re.value}var Xe=function(Pe){Pe.preventDefault(),Pe.stopPropagation()},_t=function(Pe){var it=Pe.id,vt=Pe.prefixCls,Ut=Pe.values,Ft=Pe.open,on=Pe.searchValue,Cn=Pe.autoClearSearchValue,Bn=Pe.inputRef,An=Pe.placeholder,Wt=Pe.disabled,bn=Pe.mode,pt=Pe.showSearch,It=Pe.autoFocus,Kt=Pe.autoComplete,Nt=Pe.activeDescendantId,gn=Pe.tabIndex,Zt=Pe.removeIcon,pn=Pe.maxTagCount,He=Pe.maxTagTextLength,At=Pe.maxTagPlaceholder,Dt=At===void 0?function(jr){return"+ ".concat(jr.length," ...")}:At,Qt=Pe.tagRender,jt=Pe.onToggleOpen,qt=Pe.onRemove,$t=Pe.onInputChange,En=Pe.onInputPaste,In=Pe.onInputKeyDown,zn=Pe.onInputMouseDown,er=Pe.onInputCompositionStart,mr=Pe.onInputCompositionEnd,wr=_e.useRef(null),cr=(0,_e.useState)(0),Zn=(0,we.Z)(cr,2),Ar=Zn[0],pr=Zn[1],Or=(0,_e.useState)(!1),ur=(0,we.Z)(Or,2),or=ur[0],_r=ur[1],Sr="".concat(vt,"-selection"),Jr=Ft||bn==="multiple"&&Cn===!1||bn==="tags"?on:"",si=bn==="tags"||bn==="multiple"&&Cn===!1||pt&&(Ft||or);je(function(){pr(wr.current.scrollWidth)},[Jr]);function br(jr,Gr,Cr,Kr,yi){return _e.createElement("span",{className:Ie()("".concat(Sr,"-item"),(0,Ne.Z)({},"".concat(Sr,"-item-disabled"),Cr)),title:Ht(jr)},_e.createElement("span",{className:"".concat(Sr,"-item-content")},Gr),Kr&&_e.createElement(ht,{className:"".concat(Sr,"-item-remove"),onMouseDown:Xe,onClick:yi,customizeIcon:Zt},"\xD7"))}function Nn(jr,Gr,Cr,Kr,yi){var ir=function(Vr){Xe(Vr),jt(!Ft)};return _e.createElement("span",{onMouseDown:ir},Qt({label:Gr,value:jr,disabled:Cr,closable:Kr,onClose:yi}))}function Rn(jr){var Gr=jr.disabled,Cr=jr.label,Kr=jr.value,yi=!Wt&&!Gr,ir=Cr;if(typeof He=="number"&&(typeof Cr=="string"||typeof Cr=="number")){var hr=String(ir);hr.length>He&&(ir="".concat(hr.slice(0,He),"..."))}var Vr=function(xi){xi&&xi.stopPropagation(),qt(jr)};return typeof Qt=="function"?Nn(Kr,ir,Gr,yi,Vr):br(jr,ir,Gr,yi,Vr)}function kr(jr){var Gr=typeof Dt=="function"?Dt(jr):Dt;return br({title:Gr},Gr,!1)}var yr=_e.createElement("div",{className:"".concat(Sr,"-search"),style:{width:Ar},onFocus:function(){_r(!0)},onBlur:function(){_r(!1)}},_e.createElement(st,{ref:Bn,open:Ft,prefixCls:vt,id:it,inputElement:null,disabled:Wt,autoFocus:It,autoComplete:Kt,editable:si,activeDescendantId:Nt,value:Jr,onKeyDown:In,onMouseDown:zn,onChange:$t,onPaste:En,onCompositionStart:er,onCompositionEnd:mr,tabIndex:gn,attrs:(0,tt.Z)(Pe,!0)}),_e.createElement("span",{ref:wr,className:"".concat(Sr,"-search-mirror"),"aria-hidden":!0},Jr,"\xA0")),Hr=_e.createElement(mt.Z,{prefixCls:"".concat(Sr,"-overflow"),data:Ut,renderItem:Rn,renderRest:kr,suffix:yr,itemKey:xe,maxCount:pn});return _e.createElement(_e.Fragment,null,Hr,!Ut.length&&!Jr&&_e.createElement("span",{className:"".concat(Sr,"-placeholder")},An))},St=_t,Qe=function(Pe){var it=Pe.inputElement,vt=Pe.prefixCls,Ut=Pe.id,Ft=Pe.inputRef,on=Pe.disabled,Cn=Pe.autoFocus,Bn=Pe.autoComplete,An=Pe.activeDescendantId,Wt=Pe.mode,bn=Pe.open,pt=Pe.values,It=Pe.placeholder,Kt=Pe.tabIndex,Nt=Pe.showSearch,gn=Pe.searchValue,Zt=Pe.activeValue,pn=Pe.maxLength,He=Pe.onInputKeyDown,At=Pe.onInputMouseDown,Dt=Pe.onInputChange,Qt=Pe.onInputPaste,jt=Pe.onInputCompositionStart,qt=Pe.onInputCompositionEnd,$t=Pe.title,En=_e.useState(!1),In=(0,we.Z)(En,2),zn=In[0],er=In[1],mr=Wt==="combobox",wr=mr||Nt,cr=pt[0],Zn=gn||"";mr&&Zt&&!zn&&(Zn=Zt),_e.useEffect(function(){mr&&er(!1)},[mr,Zt]);var Ar=Wt!=="combobox"&&!bn&&!Nt?!1:!!Zn,pr=$t===void 0?Ht(cr):$t,Or=function(){if(cr)return null;var or=Ar?{visibility:"hidden"}:void 0;return _e.createElement("span",{className:"".concat(vt,"-selection-placeholder"),style:or},It)};return _e.createElement(_e.Fragment,null,_e.createElement("span",{className:"".concat(vt,"-selection-search")},_e.createElement(st,{ref:Ft,prefixCls:vt,id:Ut,open:bn,inputElement:it,disabled:on,autoFocus:Cn,autoComplete:Bn,editable:wr,activeDescendantId:An,value:Zn,onKeyDown:He,onMouseDown:At,onChange:function(or){er(!0),Dt(or)},onPaste:Qt,onCompositionStart:jt,onCompositionEnd:qt,tabIndex:Kt,attrs:(0,tt.Z)(Pe,!0),maxLength:mr?pn:void 0})),!mr&&cr?_e.createElement("span",{className:"".concat(vt,"-selection-item"),title:pr,style:Ar?{visibility:"hidden"}:void 0},cr.label):null,Or())},$e=Qe;function Mt(Re){return![ut.Z.ESC,ut.Z.SHIFT,ut.Z.BACKSPACE,ut.Z.TAB,ut.Z.WIN_KEY,ut.Z.ALT,ut.Z.META,ut.Z.WIN_KEY_RIGHT,ut.Z.CTRL,ut.Z.SEMICOLON,ut.Z.EQUALS,ut.Z.CAPS_LOCK,ut.Z.CONTEXT_MENU,ut.Z.F1,ut.Z.F2,ut.Z.F3,ut.Z.F4,ut.Z.F5,ut.Z.F6,ut.Z.F7,ut.Z.F8,ut.Z.F9,ut.Z.F10,ut.Z.F11,ut.Z.F12].includes(Re)}var wn=function(Pe,it){var vt=(0,_e.useRef)(null),Ut=(0,_e.useRef)(!1),Ft=Pe.prefixCls,on=Pe.open,Cn=Pe.mode,Bn=Pe.showSearch,An=Pe.tokenWithEnter,Wt=Pe.autoClearSearchValue,bn=Pe.onSearch,pt=Pe.onSearchSubmit,It=Pe.onToggleOpen,Kt=Pe.onInputKeyDown,Nt=Pe.domRef;_e.useImperativeHandle(it,function(){return{focus:function(){vt.current.focus()},blur:function(){vt.current.blur()}}});var gn=Me(0),Zt=(0,we.Z)(gn,2),pn=Zt[0],He=Zt[1],At=function(Zn){var Ar=Zn.which;(Ar===ut.Z.UP||Ar===ut.Z.DOWN)&&Zn.preventDefault(),Kt&&Kt(Zn),Ar===ut.Z.ENTER&&Cn==="tags"&&!Ut.current&&!on&&(pt==null||pt(Zn.target.value)),Mt(Ar)&&It(!0)},Dt=function(){He(!0)},Qt=(0,_e.useRef)(null),jt=function(Zn){bn(Zn,!0,Ut.current)!==!1&&It(!0)},qt=function(){Ut.current=!0},$t=function(Zn){Ut.current=!1,Cn!=="combobox"&&jt(Zn.target.value)},En=function(Zn){var Ar=Zn.target.value;if(An&&Qt.current&&/[\r\n]/.test(Qt.current)){var pr=Qt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ar=Ar.replace(pr,Qt.current)}Qt.current=null,jt(Ar)},In=function(Zn){var Ar=Zn.clipboardData,pr=Ar.getData("text");Qt.current=pr},zn=function(Zn){var Ar=Zn.target;if(Ar!==vt.current){var pr=document.body.style.msTouchAction!==void 0;pr?setTimeout(function(){vt.current.focus()}):vt.current.focus()}},er=function(Zn){var Ar=pn();Zn.target!==vt.current&&!Ar&&Cn!=="combobox"&&Zn.preventDefault(),(Cn!=="combobox"&&(!Bn||!Ar)||!on)&&(on&&Wt!==!1&&bn("",!0,!1),It())},mr={inputRef:vt,onInputKeyDown:At,onInputMouseDown:Dt,onInputChange:En,onInputPaste:In,onInputCompositionStart:qt,onInputCompositionEnd:$t},wr=Cn==="multiple"||Cn==="tags"?_e.createElement(St,(0,oe.Z)({},Pe,mr)):_e.createElement($e,(0,oe.Z)({},Pe,mr));return _e.createElement("div",{ref:Nt,className:"".concat(Ft,"-selector"),onClick:zn,onMouseDown:er},wr)},cn=_e.forwardRef(wn);cn.displayName="Selector";var dn=cn,nn=le(35593),Jt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Bt=function(Pe){var it=Pe===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:it,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:it,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:it,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:it,adjustY:1},htmlRegion:"scroll"}}},ge=function(Pe,it){var vt=Pe.prefixCls,Ut=Pe.disabled,Ft=Pe.visible,on=Pe.children,Cn=Pe.popupElement,Bn=Pe.animation,An=Pe.transitionName,Wt=Pe.dropdownStyle,bn=Pe.dropdownClassName,pt=Pe.direction,It=pt===void 0?"ltr":pt,Kt=Pe.placement,Nt=Pe.builtinPlacements,gn=Pe.dropdownMatchSelectWidth,Zt=Pe.dropdownRender,pn=Pe.dropdownAlign,He=Pe.getPopupContainer,At=Pe.empty,Dt=Pe.getTriggerDOMNode,Qt=Pe.onPopupVisibleChange,jt=Pe.onPopupMouseEnter,qt=(0,Te.Z)(Pe,Jt),$t="".concat(vt,"-dropdown"),En=Cn;Zt&&(En=Zt(Cn));var In=_e.useMemo(function(){return Nt||Bt(gn)},[Nt,gn]),zn=Bn?"".concat($t,"-").concat(Bn):An,er=typeof gn=="number",mr=_e.useMemo(function(){return er?null:gn===!1?"minWidth":"width"},[gn,er]),wr=Wt;er&&(wr=(0,dt.Z)((0,dt.Z)({},wr),{},{width:gn}));var cr=_e.useRef(null);return _e.useImperativeHandle(it,function(){return{getPopupElement:function(){return cr.current}}}),_e.createElement(nn.Z,(0,oe.Z)({},qt,{showAction:Qt?["click"]:[],hideAction:Qt?["click"]:[],popupPlacement:Kt||(It==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:In,prefixCls:$t,popupTransitionName:zn,popup:_e.createElement("div",{ref:cr,onMouseEnter:jt},En),stretch:mr,popupAlign:pn,popupVisible:Ft,getPopupContainer:He,popupClassName:Ie()(bn,(0,Ne.Z)({},"".concat($t,"-empty"),At)),popupStyle:wr,getTriggerDOMNode:Dt,onPopupVisibleChange:Qt}),on)},ue=_e.forwardRef(ge);ue.displayName="SelectTrigger";var se=ue,he=le(48745);function fe(Re,Pe){var it=Re.key,vt;return"value"in Re&&(vt=Re.value),it!=null?it:vt!==void 0?vt:"rc-index-key-".concat(Pe)}function ce(Re,Pe){var it=Re||{},vt=it.label,Ut=it.value,Ft=it.options,on=it.groupLabel,Cn=vt||(Pe?"children":"label");return{label:Cn,value:Ut||"value",options:Ft||"options",groupLabel:on||Cn}}function Ae(Re){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},it=Pe.fieldNames,vt=Pe.childrenAsData,Ut=[],Ft=ce(it,!1),on=Ft.label,Cn=Ft.value,Bn=Ft.options,An=Ft.groupLabel;function Wt(bn,pt){bn.forEach(function(It){if(pt||!(Bn in It)){var Kt=It[Cn];Ut.push({key:fe(It,Ut.length),groupOption:pt,data:It,label:It[on],value:Kt})}else{var Nt=It[An];Nt===void 0&&vt&&(Nt=It.label),Ut.push({key:fe(It,Ut.length),group:!0,data:It,label:Nt}),Wt(It[Bn],!0)}})}return Wt(Re,!1),Ut}function rt(Re){var Pe=(0,dt.Z)({},Re);return"props"in Pe||Object.defineProperty(Pe,"props",{get:function(){return(0,Ce.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Pe}}),Pe}function Le(Re,Pe){if(!Pe||!Pe.length)return null;var it=!1;function vt(Ft,on){var Cn=(0,he.Z)(on),Bn=Cn[0],An=Cn.slice(1);if(!Bn)return[Ft];var Wt=Ft.split(Bn);return it=it||Wt.length>1,Wt.reduce(function(bn,pt){return[].concat((0,Oe.Z)(bn),(0,Oe.Z)(vt(pt,An)))},[]).filter(function(bn){return bn})}var Ut=vt(Re,Pe);return it?Ut:null}var Ke=["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"],Lt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function xt(Re){return Re==="tags"||Re==="multiple"}var Ye=_e.forwardRef(function(Re,Pe){var it,vt,Ut=Re.id,Ft=Re.prefixCls,on=Re.className,Cn=Re.showSearch,Bn=Re.tagRender,An=Re.direction,Wt=Re.omitDomProps,bn=Re.displayValues,pt=Re.onDisplayValuesChange,It=Re.emptyOptions,Kt=Re.notFoundContent,Nt=Kt===void 0?"Not Found":Kt,gn=Re.onClear,Zt=Re.mode,pn=Re.disabled,He=Re.loading,At=Re.getInputElement,Dt=Re.getRawInputElement,Qt=Re.open,jt=Re.defaultOpen,qt=Re.onDropdownVisibleChange,$t=Re.activeValue,En=Re.onActiveValueChange,In=Re.activeDescendantId,zn=Re.searchValue,er=Re.autoClearSearchValue,mr=Re.onSearch,wr=Re.onSearchSplit,cr=Re.tokenSeparators,Zn=Re.allowClear,Ar=Re.suffixIcon,pr=Re.clearIcon,Or=Re.OptionList,ur=Re.animation,or=Re.transitionName,_r=Re.dropdownStyle,Sr=Re.dropdownClassName,Jr=Re.dropdownMatchSelectWidth,si=Re.dropdownRender,br=Re.dropdownAlign,Nn=Re.placement,Rn=Re.builtinPlacements,kr=Re.getPopupContainer,yr=Re.showAction,Hr=yr===void 0?[]:yr,jr=Re.onFocus,Gr=Re.onBlur,Cr=Re.onKeyUp,Kr=Re.onKeyDown,yi=Re.onMouseDown,ir=(0,Te.Z)(Re,Ke),hr=xt(Zt),Vr=(Cn!==void 0?Cn:hr)||Zt==="combobox",qr=(0,dt.Z)({},ir);Lt.forEach(function(Ni){delete qr[Ni]}),Wt==null||Wt.forEach(function(Ni){delete qr[Ni]});var xi=_e.useState(!1),Ei=(0,we.Z)(xi,2),vi=Ei[0],ci=Ei[1];_e.useEffect(function(){ci((0,wt.Z)())},[]);var Ai=_e.useRef(null),Li=_e.useRef(null),dr=_e.useRef(null),sr=_e.useRef(null),ar=_e.useRef(null),Br=Ve(),gi=(0,we.Z)(Br,3),Di=gi[0],Ii=gi[1],ki=gi[2];_e.useImperativeHandle(Pe,function(){var Ni,Bi;return{focus:(Ni=sr.current)===null||Ni===void 0?void 0:Ni.focus,blur:(Bi=sr.current)===null||Bi===void 0?void 0:Bi.blur,scrollTo:function(Ta){var ea;return(ea=ar.current)===null||ea===void 0?void 0:ea.scrollTo(Ta)}}});var wi=_e.useMemo(function(){var Ni;if(Zt!=="combobox")return zn;var Bi=(Ni=bn[0])===null||Ni===void 0?void 0:Ni.value;return typeof Bi=="string"||typeof Bi=="number"?String(Bi):""},[zn,Zt,bn]),Pi=Zt==="combobox"&&typeof At=="function"&&At()||null,Gi=typeof Dt=="function"&&Dt(),Hi=(0,yt.x1)(Li,Gi==null||(it=Gi.props)===null||it===void 0?void 0:it.ref),oa=_e.useState(!1),li=(0,we.Z)(oa,2),fi=li[0],Ri=li[1];(0,Ge.Z)(function(){Ri(!0)},[]);var sn=(0,be.Z)(!1,{defaultValue:jt,value:Qt}),rn=(0,we.Z)(sn,2),vn=rn[0],Fn=rn[1],_n=fi?vn:!1,tr=!Nt&&It;(pn||tr&&_n&&Zt==="combobox")&&(_n=!1);var xn=tr?!1:_n,jn=_e.useCallback(function(Ni){var Bi=Ni!==void 0?Ni:!_n;pn||(Fn(Bi),_n!==Bi&&(qt==null||qt(Bi)))},[pn,_n,Fn,qt]),gr=_e.useMemo(function(){return(cr||[]).some(function(Ni){return[`
|
|
|
`,`\r
|
|
|
`].includes(Ni)})},[cr]),Rr=function(Bi,Qi,Ta){var ea=!0,ja=Bi;En==null||En(null);var Ga=Ta?null:Le(Bi,cr);return Zt!=="combobox"&&Ga&&(ja="",wr==null||wr(Ga),jn(!1),ea=!1),mr&&wi!==ja&&mr(ja,{source:Qi?"typing":"effect"}),ea},Wr=function(Bi){!Bi||!Bi.trim()||mr(Bi,{source:"submit"})};_e.useEffect(function(){!_n&&!hr&&Zt!=="combobox"&&Rr("",!1,!1)},[_n]),_e.useEffect(function(){vn&&pn&&Fn(!1),pn&&Ii(!1)},[pn]);var qn=Me(),ti=(0,we.Z)(qn,2),di=ti[0],ai=ti[1],Er=function(Bi){var Qi=di(),Ta=Bi.which;if(Ta===ut.Z.ENTER&&(Zt!=="combobox"&&Bi.preventDefault(),_n||jn(!0)),ai(!!wi),Ta===ut.Z.BACKSPACE&&!Qi&&hr&&!wi&&bn.length){for(var ea=(0,Oe.Z)(bn),ja=null,Ga=ea.length-1;Ga>=0;Ga-=1){var ho=ea[Ga];if(!ho.disabled){ea.splice(Ga,1),ja=ho;break}}ja&&pt(ea,{type:"remove",values:[ja]})}for(var Za=arguments.length,go=new Array(Za>1?Za-1:0),vo=1;vo<Za;vo++)go[vo-1]=arguments[vo];if(_n&&ar.current){var Oa;(Oa=ar.current).onKeyDown.apply(Oa,[Bi].concat(go))}Kr==null||Kr.apply(void 0,[Bi].concat(go))},Ur=function(Bi){for(var Qi=arguments.length,Ta=new Array(Qi>1?Qi-1:0),ea=1;ea<Qi;ea++)Ta[ea-1]=arguments[ea];if(_n&&ar.current){var ja;(ja=ar.current).onKeyUp.apply(ja,[Bi].concat(Ta))}Cr==null||Cr.apply(void 0,[Bi].concat(Ta))},bi=function(Bi){var Qi=bn.filter(function(Ta){return Ta!==Bi});pt(Qi,{type:"remove",values:[Bi]})},pi=_e.useRef(!1),Si=function(){Ii(!0),pn||(jr&&!pi.current&&jr.apply(void 0,arguments),Hr.includes("focus")&&jn(!0)),pi.current=!0},pa=function(){Ii(!1,function(){pi.current=!1,jn(!1)}),!pn&&(wi&&(Zt==="tags"?mr(wi,{source:"submit"}):Zt==="multiple"&&mr("",{source:"blur"})),Gr&&Gr.apply(void 0,arguments))},Aa=[];_e.useEffect(function(){return function(){Aa.forEach(function(Ni){return clearTimeout(Ni)}),Aa.splice(0,Aa.length)}},[]);var Ha=function(Bi){var Qi,Ta=Bi.target,ea=(Qi=dr.current)===null||Qi===void 0?void 0:Qi.getPopupElement();if(ea&&ea.contains(Ta)){var ja=setTimeout(function(){var go=Aa.indexOf(ja);if(go!==-1&&Aa.splice(go,1),ki(),!vi&&!ea.contains(document.activeElement)){var vo;(vo=sr.current)===null||vo===void 0||vo.focus()}});Aa.push(ja)}for(var Ga=arguments.length,ho=new Array(Ga>1?Ga-1:0),Za=1;Za<Ga;Za++)ho[Za-1]=arguments[Za];yi==null||yi.apply(void 0,[Bi].concat(ho))},Pa=_e.useState({}),Po=(0,we.Z)(Pa,2),Ua=Po[1];function ba(){Ua({})}var Xi;Gi&&(Xi=function(Bi){jn(Bi)}),Ue(function(){var Ni;return[Ai.current,(Ni=dr.current)===null||Ni===void 0?void 0:Ni.getPopupElement()]},xn,jn,!!Gi);var Ka=_e.useMemo(function(){return(0,dt.Z)((0,dt.Z)({},Re),{},{notFoundContent:Nt,open:_n,triggerOpen:xn,id:Ut,showSearch:Vr,multiple:hr,toggleOpen:jn})},[Re,Nt,xn,_n,Ut,Vr,hr,jn]),so=!!Ar||He,lo;so&&(lo=_e.createElement(ht,{className:Ie()("".concat(Ft,"-arrow"),(0,Ne.Z)({},"".concat(Ft,"-arrow-loading"),He)),customizeIcon:Ar,customizeIconProps:{loading:He,searchValue:wi,open:_n,focused:Di,showSearch:Vr}}));var co=function(){var Bi;gn==null||gn(),(Bi=sr.current)===null||Bi===void 0||Bi.focus(),pt([],{type:"clear",values:bn}),Rr("",!1,!1)},Wa=Vt(Ft,co,bn,Zn,pr,pn,wi,Zt),xa=Wa.allowClear,wa=Wa.clearIcon,Ki=_e.createElement(Or,{ref:ar}),uo=Ie()(Ft,on,(vt={},(0,Ne.Z)(vt,"".concat(Ft,"-focused"),Di),(0,Ne.Z)(vt,"".concat(Ft,"-multiple"),hr),(0,Ne.Z)(vt,"".concat(Ft,"-single"),!hr),(0,Ne.Z)(vt,"".concat(Ft,"-allow-clear"),Zn),(0,Ne.Z)(vt,"".concat(Ft,"-show-arrow"),so),(0,Ne.Z)(vt,"".concat(Ft,"-disabled"),pn),(0,Ne.Z)(vt,"".concat(Ft,"-loading"),He),(0,Ne.Z)(vt,"".concat(Ft,"-open"),_n),(0,Ne.Z)(vt,"".concat(Ft,"-customize-input"),Pi),(0,Ne.Z)(vt,"".concat(Ft,"-show-search"),Vr),vt)),Ho=_e.createElement(se,{ref:dr,disabled:pn,prefixCls:Ft,visible:xn,popupElement:Ki,animation:ur,transitionName:or,dropdownStyle:_r,dropdownClassName:Sr,direction:An,dropdownMatchSelectWidth:Jr,dropdownRender:si,dropdownAlign:br,placement:Nn,builtinPlacements:Rn,getPopupContainer:kr,empty:It,getTriggerDOMNode:function(){return Li.current},onPopupVisibleChange:Xi,onPopupMouseEnter:ba},Gi?_e.cloneElement(Gi,{ref:Hi}):_e.createElement(dn,(0,oe.Z)({},Re,{domRef:Li,prefixCls:Ft,inputElement:Pi,ref:sr,id:Ut,showSearch:Vr,autoClearSearchValue:er,mode:Zt,activeDescendantId:In,tagRender:Bn,values:bn,open:_n,onToggleOpen:jn,activeValue:$t,searchValue:wi,onSearch:Rr,onSearchSubmit:Wr,onRemove:bi,tokenWithEnter:gr}))),To;return Gi?To=Ho:To=_e.createElement("div",(0,oe.Z)({className:uo},qr,{ref:Ai,onMouseDown:Ha,onKeyDown:Er,onKeyUp:Ur,onFocus:Si,onBlur:pa}),Di&&!_n&&_e.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(bn.map(function(Ni){var Bi=Ni.label,Qi=Ni.value;return["number","string"].includes((0,Fe.Z)(Bi))?Bi:Qi}).join(", "))),Ho,lo,xa&&wa),_e.createElement(ot.Provider,{value:Ka},To)}),Pt=Ye,hn=function(Re,Pe){var it=_e.useRef({values:new Map,options:new Map}),vt=_e.useMemo(function(){var Ft=it.current,on=Ft.values,Cn=Ft.options,Bn=Re.map(function(bn){if(bn.label===void 0){var pt;return(0,dt.Z)((0,dt.Z)({},bn),{},{label:(pt=on.get(bn.value))===null||pt===void 0?void 0:pt.label})}return bn}),An=new Map,Wt=new Map;return Bn.forEach(function(bn){An.set(bn.value,bn),Wt.set(bn.value,Pe.get(bn.value)||Cn.get(bn.value))}),it.current.values=An,it.current.options=Wt,Bn},[Re,Pe]),Ut=_e.useCallback(function(Ft){return Pe.get(Ft)||it.current.options.get(Ft)},[Pe]);return[vt,Ut]};function at(Re,Pe){return Tt(Re).join("").toUpperCase().includes(Pe)}var Xt=function(Re,Pe,it,vt,Ut){return _e.useMemo(function(){if(!it||vt===!1)return Re;var Ft=Pe.options,on=Pe.label,Cn=Pe.value,Bn=[],An=typeof vt=="function",Wt=it.toUpperCase(),bn=An?vt:function(It,Kt){return Ut?at(Kt[Ut],Wt):Kt[Ft]?at(Kt[on!=="children"?on:"label"],Wt):at(Kt[Cn],Wt)},pt=An?function(It){return rt(It)}:function(It){return It};return Re.forEach(function(It){if(It[Ft]){var Kt=bn(it,pt(It));if(Kt)Bn.push(It);else{var Nt=It[Ft].filter(function(gn){return bn(it,pt(gn))});Nt.length&&Bn.push((0,dt.Z)((0,dt.Z)({},It),{},(0,Ne.Z)({},Ft,Nt)))}return}bn(it,pt(It))&&Bn.push(It)}),Bn},[Re,vt,Ut,it,Pe])},fn=le(17115),et=le(11592),De=["children","value"],qe=["children"];function Ot(Re){var Pe=Re,it=Pe.key,vt=Pe.props,Ut=vt.children,Ft=vt.value,on=(0,Te.Z)(vt,De);return(0,dt.Z)({key:it,value:Ft!==void 0?Ft:it,children:Ut},on)}function Gt(Re){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,et.Z)(Re).map(function(it,vt){if(!_e.isValidElement(it)||!it.type)return null;var Ut=it,Ft=Ut.type.isSelectOptGroup,on=Ut.key,Cn=Ut.props,Bn=Cn.children,An=(0,Te.Z)(Cn,qe);return Pe||!Ft?Ot(it):(0,dt.Z)((0,dt.Z)({key:"__RC_SELECT_GRP__".concat(on===null?vt:on,"__"),label:on},An),{},{options:Gt(Bn)})}).filter(function(it){return it})}function an(Re,Pe,it,vt,Ut){return _e.useMemo(function(){var Ft=Re,on=!Re;on&&(Ft=Gt(Pe));var Cn=new Map,Bn=new Map,An=function(pt,It,Kt){Kt&&typeof Kt=="string"&&pt.set(It[Kt],It)};function Wt(bn){for(var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,It=0;It<bn.length;It+=1){var Kt=bn[It];!Kt[it.options]||pt?(Cn.set(Kt[it.value],Kt),An(Bn,Kt,it.label),An(Bn,Kt,vt),An(Bn,Kt,Ut)):Wt(Kt[it.options],!0)}}return Wt(Ft),{options:Ft,valueOptions:Cn,labelOptions:Bn}},[Re,Pe,it,vt,Ut])}function Mn(Re){var Pe=_e.useRef();Pe.current=Re;var it=_e.useCallback(function(){return Pe.current.apply(Pe,arguments)},[]);return it}var Dn=function(){return null};Dn.isSelectOptGroup=!0;var Ln=Dn,Un=function(){return null};Un.isSelectOption=!0;var Wn=Un,On=le(80547),Hn=le(2738),Dr=le(48911),Pr=_e.createContext(null),fr=Pr;function Jn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Fr=["disabled","title","children","style","className"];function Tn(Re){return typeof Re=="string"||typeof Re=="number"}var Ir=function(Pe,it){var vt=gt(),Ut=vt.prefixCls,Ft=vt.id,on=vt.open,Cn=vt.multiple,Bn=vt.mode,An=vt.searchValue,Wt=vt.toggleOpen,bn=vt.notFoundContent,pt=vt.onPopupScroll,It=_e.useContext(fr),Kt=It.flattenOptions,Nt=It.onActiveValue,gn=It.defaultActiveFirstOption,Zt=It.onSelect,pn=It.menuItemSelectedIcon,He=It.rawValues,At=It.fieldNames,Dt=It.virtual,Qt=It.direction,jt=It.listHeight,qt=It.listItemHeight,$t="".concat(Ut,"-item"),En=(0,On.Z)(function(){return Kt},[on,Kt],function(br,Nn){return Nn[0]&&br[1]!==Nn[1]}),In=_e.useRef(null),zn=function(Nn){Nn.preventDefault()},er=function(Nn){In.current&&In.current.scrollTo(typeof Nn=="number"?{index:Nn}:Nn)},mr=function(Nn){for(var Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,kr=En.length,yr=0;yr<kr;yr+=1){var Hr=(Nn+yr*Rn+kr)%kr,jr=En[Hr],Gr=jr.group,Cr=jr.data;if(!Gr&&!Cr.disabled)return Hr}return-1},wr=_e.useState(function(){return mr(0)}),cr=(0,we.Z)(wr,2),Zn=cr[0],Ar=cr[1],pr=function(Nn){var Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ar(Nn);var kr={source:Rn?"keyboard":"mouse"},yr=En[Nn];if(!yr){Nt(null,-1,kr);return}Nt(yr.value,Nn,kr)};(0,_e.useEffect)(function(){pr(gn!==!1?mr(0):-1)},[En.length,An]);var Or=_e.useCallback(function(br){return He.has(br)&&Bn!=="combobox"},[Bn,(0,Oe.Z)(He).toString(),He.size]);(0,_e.useEffect)(function(){var br=setTimeout(function(){if(!Cn&&on&&He.size===1){var Rn=Array.from(He)[0],kr=En.findIndex(function(yr){var Hr=yr.data;return Hr.value===Rn});kr!==-1&&(pr(kr),er(kr))}});if(on){var Nn;(Nn=In.current)===null||Nn===void 0||Nn.scrollTo(void 0)}return function(){return clearTimeout(br)}},[on,An,Kt.length]);var ur=function(Nn){Nn!==void 0&&Zt(Nn,{selected:!He.has(Nn)}),Cn||Wt(!1)};if(_e.useImperativeHandle(it,function(){return{onKeyDown:function(Nn){var Rn=Nn.which,kr=Nn.ctrlKey;switch(Rn){case ut.Z.N:case ut.Z.P:case ut.Z.UP:case ut.Z.DOWN:{var yr=0;if(Rn===ut.Z.UP?yr=-1:Rn===ut.Z.DOWN?yr=1:Jn()&&kr&&(Rn===ut.Z.N?yr=1:Rn===ut.Z.P&&(yr=-1)),yr!==0){var Hr=mr(Zn+yr,yr);er(Hr),pr(Hr,!0)}break}case ut.Z.ENTER:{var jr=En[Zn];jr&&!jr.data.disabled?ur(jr.value):ur(void 0),on&&Nn.preventDefault();break}case ut.Z.ESC:Wt(!1),on&&Nn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Nn){er(Nn)}}}),En.length===0)return _e.createElement("div",{role:"listbox",id:"".concat(Ft,"_list"),className:"".concat($t,"-empty"),onMouseDown:zn},bn);var or=Object.keys(At).map(function(br){return At[br]}),_r=function(Nn){return Nn.label};function Sr(br,Nn){var Rn=br.group;return{role:Rn?"presentation":"option",id:"".concat(Ft,"_list_").concat(Nn)}}var Jr=function(Nn){var Rn=En[Nn];if(!Rn)return null;var kr=Rn.data||{},yr=kr.value,Hr=Rn.group,jr=(0,tt.Z)(kr,!0),Gr=_r(Rn);return Rn?_e.createElement("div",(0,oe.Z)({"aria-label":typeof Gr=="string"&&!Hr?Gr:null},jr,{key:Nn},Sr(Rn,Nn),{"aria-selected":Or(yr)}),yr):null},si={role:"listbox",id:"".concat(Ft,"_list")};return _e.createElement(_e.Fragment,null,Dt&&_e.createElement("div",(0,oe.Z)({},si,{style:{height:0,width:0,overflow:"hidden"}}),Jr(Zn-1),Jr(Zn),Jr(Zn+1)),_e.createElement(Dr.Z,{itemKey:"key",ref:In,data:En,height:jt,itemHeight:qt,fullHeight:!1,onMouseDown:zn,onScroll:pt,virtual:Dt,direction:Qt,innerProps:Dt?null:si},function(br,Nn){var Rn,kr=br.group,yr=br.groupOption,Hr=br.data,jr=br.label,Gr=br.value,Cr=Hr.key;if(kr){var Kr,yi=(Kr=Hr.title)!==null&&Kr!==void 0?Kr:Tn(jr)?jr.toString():void 0;return _e.createElement("div",{className:Ie()($t,"".concat($t,"-group")),title:yi},jr!==void 0?jr:Cr)}var ir=Hr.disabled,hr=Hr.title,Vr=Hr.children,qr=Hr.style,xi=Hr.className,Ei=(0,Te.Z)(Hr,Fr),vi=(0,Hn.Z)(Ei,or),ci=Or(Gr),Ai="".concat($t,"-option"),Li=Ie()($t,Ai,xi,(Rn={},(0,Ne.Z)(Rn,"".concat(Ai,"-grouped"),yr),(0,Ne.Z)(Rn,"".concat(Ai,"-active"),Zn===Nn&&!ir),(0,Ne.Z)(Rn,"".concat(Ai,"-disabled"),ir),(0,Ne.Z)(Rn,"".concat(Ai,"-selected"),ci),Rn)),dr=_r(br),sr=!pn||typeof pn=="function"||ci,ar=typeof dr=="number"?dr:dr||Gr,Br=Tn(ar)?ar.toString():void 0;return hr!==void 0&&(Br=hr),_e.createElement("div",(0,oe.Z)({},(0,tt.Z)(vi),Dt?{}:Sr(br,Nn),{"aria-selected":ci,className:Li,title:Br,onMouseMove:function(){Zn===Nn||ir||pr(Nn)},onClick:function(){ir||ur(Gr)},style:qr}),_e.createElement("div",{className:"".concat(Ai,"-content")},ar),_e.isValidElement(pn)||ci,sr&&_e.createElement(ht,{className:"".concat($t,"-option-state"),customizeIcon:pn,customizeIconProps:{isSelected:ci}},ci?"\u2713":null))}))},Yr=_e.forwardRef(Ir);Yr.displayName="OptionList";var nr=Yr;function $r(Re){var Pe=Re.mode,it=Re.options,vt=Re.children,Ut=Re.backfill,Ft=Re.allowClear,on=Re.placeholder,Cn=Re.getInputElement,Bn=Re.showSearch,An=Re.onSearch,Wt=Re.defaultOpen,bn=Re.autoFocus,pt=Re.labelInValue,It=Re.value,Kt=Re.inputValue,Nt=Re.optionLabelProp,gn=isMultiple(Pe),Zt=Bn!==void 0?Bn:gn||Pe==="combobox",pn=it||convertChildrenToData(vt);if(warning(Pe!=="tags"||pn.every(function(Qt){return!Qt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Pe==="tags"||Pe==="combobox"){var He=pn.some(function(Qt){return Qt.options?Qt.options.some(function(jt){return typeof("value"in jt?jt.value:jt.key)=="number"}):typeof("value"in Qt?Qt.value:Qt.key)=="number"});warning(!He,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Pe!=="combobox"||!Nt,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Pe==="combobox"||!Ut,"`backfill` only works with `combobox` mode."),warning(Pe==="combobox"||!Cn,"`getInputElement` only work with `combobox` mode."),noteOnce(Pe!=="combobox"||!Cn||!Ft||!on,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),An&&!Zt&&Pe!=="combobox"&&Pe!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Wt||bn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),It!=null){var At=toArray(It);warning(!pt||At.every(function(Qt){return _typeof(Qt)==="object"&&("key"in Qt||"value"in Qt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!gn||Array.isArray(It),"`value` should be array when `mode` is `multiple` or `tags`")}if(vt){var Dt=null;toNodeArray(vt).some(function(Qt){if(!React.isValidElement(Qt)||!Qt.type)return!1;var jt=Qt,qt=jt.type;if(qt.isSelectOption)return!1;if(qt.isSelectOptGroup){var $t=toNodeArray(Qt.props.children).every(function(En){return!React.isValidElement(En)||!Qt.type||En.type.isSelectOption?!0:(Dt=En.type,!1)});return!$t}return Dt=qt,!0}),Dt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Dt.displayName||Dt.name||Dt,"`.")),warning(Kt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Qr(Re,Pe){if(Re){var it=function vt(Ut){for(var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=0;on<Ut.length;on++){var Cn=Ut[on];if(Cn[Pe==null?void 0:Pe.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Ft&&Array.isArray(Cn[Pe==null?void 0:Pe.options])&&vt(Cn[Pe==null?void 0:Pe.options],!0))break}};it(Re)}}var $n=null,Xn=["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"],Kn=["inputValue"];function Gn(Re){return!Re||(0,Fe.Z)(Re)!=="object"}var Tr=_e.forwardRef(function(Re,Pe){var it=Re.id,vt=Re.mode,Ut=Re.prefixCls,Ft=Ut===void 0?"rc-select":Ut,on=Re.backfill,Cn=Re.fieldNames,Bn=Re.inputValue,An=Re.searchValue,Wt=Re.onSearch,bn=Re.autoClearSearchValue,pt=bn===void 0?!0:bn,It=Re.onSelect,Kt=Re.onDeselect,Nt=Re.dropdownMatchSelectWidth,gn=Nt===void 0?!0:Nt,Zt=Re.filterOption,pn=Re.filterSort,He=Re.optionFilterProp,At=Re.optionLabelProp,Dt=Re.options,Qt=Re.children,jt=Re.defaultActiveFirstOption,qt=Re.menuItemSelectedIcon,$t=Re.virtual,En=Re.direction,In=Re.listHeight,zn=In===void 0?200:In,er=Re.listItemHeight,mr=er===void 0?20:er,wr=Re.value,cr=Re.defaultValue,Zn=Re.labelInValue,Ar=Re.onChange,pr=(0,Te.Z)(Re,Xn),Or=(0,fn.ZP)(it),ur=xt(vt),or=!!(!Dt&&Qt),_r=_e.useMemo(function(){return Zt===void 0&&vt==="combobox"?!1:Zt},[Zt,vt]),Sr=_e.useMemo(function(){return ce(Cn,or)},[JSON.stringify(Cn),or]),Jr=(0,be.Z)("",{value:An!==void 0?An:Bn,postState:function(tr){return tr||""}}),si=(0,we.Z)(Jr,2),br=si[0],Nn=si[1],Rn=an(Dt,Qt,Sr,He,At),kr=Rn.valueOptions,yr=Rn.labelOptions,Hr=Rn.options,jr=_e.useCallback(function(_n){var tr=Tt(_n);return tr.map(function(xn){var jn,gr,Rr,Wr,qn;if(Gn(xn))jn=xn;else{var ti;Rr=xn.key,gr=xn.label,jn=(ti=xn.value)!==null&&ti!==void 0?ti:Rr}var di=kr.get(jn);if(di){var ai;if(gr===void 0&&(gr=di==null?void 0:di[At||Sr.label]),Rr===void 0&&(Rr=(ai=di==null?void 0:di.key)!==null&&ai!==void 0?ai:jn),Wr=di==null?void 0:di.disabled,qn=di==null?void 0:di.title,0)var Er}return{label:gr,value:jn,key:Rr,disabled:Wr,title:qn}})},[Sr,At,kr]),Gr=(0,be.Z)(cr,{value:wr}),Cr=(0,we.Z)(Gr,2),Kr=Cr[0],yi=Cr[1],ir=_e.useMemo(function(){var _n,tr=jr(Kr);return vt==="combobox"&&tn((_n=tr[0])===null||_n===void 0?void 0:_n.value)?[]:tr},[Kr,jr,vt]),hr=hn(ir,kr),Vr=(0,we.Z)(hr,2),qr=Vr[0],xi=Vr[1],Ei=_e.useMemo(function(){if(!vt&&qr.length===1){var _n=qr[0];if(_n.value===null&&(_n.label===null||_n.label===void 0))return[]}return qr.map(function(tr){var xn;return(0,dt.Z)((0,dt.Z)({},tr),{},{label:(xn=tr.label)!==null&&xn!==void 0?xn:tr.value})})},[vt,qr]),vi=_e.useMemo(function(){return new Set(qr.map(function(_n){return _n.value}))},[qr]);_e.useEffect(function(){if(vt==="combobox"){var _n,tr=(_n=qr[0])===null||_n===void 0?void 0:_n.value;Nn(ln(tr)?String(tr):"")}},[qr]);var ci=Mn(function(_n,tr){var xn,jn=tr!=null?tr:_n;return xn={},(0,Ne.Z)(xn,Sr.value,_n),(0,Ne.Z)(xn,Sr.label,jn),xn}),Ai=_e.useMemo(function(){if(vt!=="tags")return Hr;var _n=(0,Oe.Z)(Hr),tr=function(jn){return kr.has(jn)};return(0,Oe.Z)(qr).sort(function(xn,jn){return xn.value<jn.value?-1:1}).forEach(function(xn){var jn=xn.value;tr(jn)||_n.push(ci(jn,xn.label))}),_n},[ci,Hr,kr,qr,vt]),Li=Xt(Ai,Sr,br,_r,He),dr=_e.useMemo(function(){return vt!=="tags"||!br||Li.some(function(_n){return _n[He||"value"]===br})||Li.some(function(_n){return _n[Sr.value]===br})?Li:[ci(br)].concat((0,Oe.Z)(Li))},[ci,He,vt,Li,br,Sr]),sr=_e.useMemo(function(){return pn?(0,Oe.Z)(dr).sort(function(_n,tr){return pn(_n,tr)}):dr},[dr,pn]),ar=_e.useMemo(function(){return Ae(sr,{fieldNames:Sr,childrenAsData:or})},[sr,Sr,or]),Br=function(tr){var xn=jr(tr);if(yi(xn),Ar&&(xn.length!==qr.length||xn.some(function(Rr,Wr){var qn;return((qn=qr[Wr])===null||qn===void 0?void 0:qn.value)!==(Rr==null?void 0:Rr.value)}))){var jn=Zn?xn:xn.map(function(Rr){return Rr.value}),gr=xn.map(function(Rr){return rt(xi(Rr.value))});Ar(ur?jn:jn[0],ur?gr:gr[0])}},gi=_e.useState(null),Di=(0,we.Z)(gi,2),Ii=Di[0],ki=Di[1],wi=_e.useState(0),Pi=(0,we.Z)(wi,2),Gi=Pi[0],Hi=Pi[1],oa=jt!==void 0?jt:vt!=="combobox",li=_e.useCallback(function(_n,tr){var xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},jn=xn.source,gr=jn===void 0?"keyboard":jn;Hi(tr),on&&vt==="combobox"&&_n!==null&&gr==="keyboard"&&ki(String(_n))},[on,vt]),fi=function(tr,xn,jn){var gr=function(){var pi,Si=xi(tr);return[Zn?{label:Si==null?void 0:Si[Sr.label],value:tr,key:(pi=Si==null?void 0:Si.key)!==null&&pi!==void 0?pi:tr}:tr,rt(Si)]};if(xn&&It){var Rr=gr(),Wr=(0,we.Z)(Rr,2),qn=Wr[0],ti=Wr[1];It(qn,ti)}else if(!xn&&Kt&&jn!=="clear"){var di=gr(),ai=(0,we.Z)(di,2),Er=ai[0],Ur=ai[1];Kt(Er,Ur)}},Ri=Mn(function(_n,tr){var xn,jn=ur?tr.selected:!0;jn?xn=ur?[].concat((0,Oe.Z)(qr),[_n]):[_n]:xn=qr.filter(function(gr){return gr.value!==_n}),Br(xn),fi(_n,jn),vt==="combobox"?ki(""):(!xt||pt)&&(Nn(""),ki(""))}),sn=function(tr,xn){Br(tr);var jn=xn.type,gr=xn.values;(jn==="remove"||jn==="clear")&&gr.forEach(function(Rr){fi(Rr.value,!1,jn)})},rn=function(tr,xn){if(Nn(tr),ki(null),xn.source==="submit"){var jn=(tr||"").trim();if(jn){var gr=Array.from(new Set([].concat((0,Oe.Z)(vi),[jn])));Br(gr),fi(jn,!0),Nn("")}return}xn.source!=="blur"&&(vt==="combobox"&&Br(tr),Wt==null||Wt(tr))},vn=function(tr){var xn=tr;vt!=="tags"&&(xn=tr.map(function(gr){var Rr=yr.get(gr);return Rr==null?void 0:Rr.value}).filter(function(gr){return gr!==void 0}));var jn=Array.from(new Set([].concat((0,Oe.Z)(vi),(0,Oe.Z)(xn))));Br(jn),jn.forEach(function(gr){fi(gr,!0)})},Fn=_e.useMemo(function(){var _n=$t!==!1&&gn!==!1;return(0,dt.Z)((0,dt.Z)({},Rn),{},{flattenOptions:ar,onActiveValue:li,defaultActiveFirstOption:oa,onSelect:Ri,menuItemSelectedIcon:qt,rawValues:vi,fieldNames:Sr,virtual:_n,direction:En,listHeight:zn,listItemHeight:mr,childrenAsData:or})},[Rn,ar,li,oa,Ri,qt,vi,Sr,$t,gn,zn,mr,or]);return _e.createElement(fr.Provider,{value:Fn},_e.createElement(Pt,(0,oe.Z)({},pr,{id:Or,prefixCls:Ft,ref:Pe,omitDomProps:Kn,mode:vt,displayValues:Ei,onDisplayValuesChange:sn,direction:En,searchValue:br,onSearch:rn,autoClearSearchValue:pt,onSearchSplit:vn,dropdownMatchSelectWidth:gn,OptionList:nr,emptyOptions:!ar.length,activeValue:Ii,activeDescendantId:"".concat(Or,"_list_").concat(Gi)})))}),bt=Tr;bt.Option=Wn,bt.OptGroup=Ln;var ke=bt,ze=ke},9296:function(mn,un,le){"use strict";le.r(un),le.d(un,{ResizableTextArea:function(){return kt},default:function(){return tn}});var oe=le(60499),Oe=le(85899),Ne=le(18642),dt=le(43749),we=le(72190),Te=le(42244),Fe=le(77654),be=le(92310),Ce=le.n(be),_e=le(93681),ft=le(5643),Ie=le(18929),Ge=le(59301),wt=le(29301),ut=le(34280),yt=le(16089),lt=`
|
|
|
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;
|
|
|
`,ht=["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"],Vt={},ot;function gt(en){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,je=en.getAttribute("id")||en.getAttribute("data-reactid")||en.getAttribute("name");if(Ht&&Vt[je])return Vt[je];var xe=window.getComputedStyle(en),Xe=xe.getPropertyValue("box-sizing")||xe.getPropertyValue("-moz-box-sizing")||xe.getPropertyValue("-webkit-box-sizing"),_t=parseFloat(xe.getPropertyValue("padding-bottom"))+parseFloat(xe.getPropertyValue("padding-top")),St=parseFloat(xe.getPropertyValue("border-bottom-width"))+parseFloat(xe.getPropertyValue("border-top-width")),Qe=ht.map(function(Mt){return"".concat(Mt,":").concat(xe.getPropertyValue(Mt))}).join(";"),$e={sizingStyle:Qe,paddingSize:_t,borderSize:St,boxSizing:Xe};return Ht&&je&&(Vt[je]=$e),$e}function Ve(en){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ot||(ot=document.createElement("textarea"),ot.setAttribute("tab-index","-1"),ot.setAttribute("aria-hidden","true"),document.body.appendChild(ot)),en.getAttribute("wrap")?ot.setAttribute("wrap",en.getAttribute("wrap")):ot.removeAttribute("wrap");var Xe=gt(en,Ht),_t=Xe.paddingSize,St=Xe.borderSize,Qe=Xe.boxSizing,$e=Xe.sizingStyle;ot.setAttribute("style","".concat($e,";").concat(lt)),ot.value=en.value||en.placeholder||"";var Mt=void 0,wn=void 0,cn,dn=ot.scrollHeight;if(Qe==="border-box"?dn+=St:Qe==="content-box"&&(dn-=_t),je!==null||xe!==null){ot.value=" ";var nn=ot.scrollHeight-_t;je!==null&&(Mt=nn*je,Qe==="border-box"&&(Mt=Mt+_t+St),dn=Math.max(Mt,dn)),xe!==null&&(wn=nn*xe,Qe==="border-box"&&(wn=wn+_t+St),cn=dn>wn?"":"hidden",dn=Math.min(wn,dn))}var Jt={height:dn,overflowY:cn,resize:"none"};return Mt&&(Jt.minHeight=Mt),wn&&(Jt.maxHeight=wn),Jt}var Me=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ue=0,tt=1,mt=2,Je=Ge.forwardRef(function(en,Ht){var je=en,xe=je.prefixCls,Xe=je.onPressEnter,_t=je.defaultValue,St=je.value,Qe=je.autoSize,$e=je.onResize,Mt=je.className,wn=je.style,cn=je.disabled,dn=je.onChange,nn=je.onInternalAutoSize,Jt=(0,Te.Z)(je,Me),Bt=(0,Ie.Z)(_t,{value:St,postState:function(Ln){return Ln!=null?Ln:""}}),ge=(0,we.Z)(Bt,2),ue=ge[0],se=ge[1],he=function(Ln){se(Ln.target.value),dn==null||dn(Ln)},fe=Ge.useRef();Ge.useImperativeHandle(Ht,function(){return{textArea:fe.current}});var ce=Ge.useMemo(function(){return Qe&&(0,dt.Z)(Qe)==="object"?[Qe.minRows,Qe.maxRows]:[]},[Qe]),Ae=(0,we.Z)(ce,2),rt=Ae[0],Le=Ae[1],Ke=!!Qe,Lt=function(){try{if(document.activeElement===fe.current){var Ln=fe.current,Un=Ln.selectionStart,Wn=Ln.selectionEnd,On=Ln.scrollTop;fe.current.setSelectionRange(Un,Wn),fe.current.scrollTop=On}}catch(Hn){}},xt=Ge.useState(mt),Ye=(0,we.Z)(xt,2),Pt=Ye[0],hn=Ye[1],at=Ge.useState(),Xt=(0,we.Z)(at,2),fn=Xt[0],et=Xt[1],De=function(){hn(Ue)};(0,ut.Z)(function(){Ke&&De()},[St,rt,Le,Ke]),(0,ut.Z)(function(){if(Pt===Ue)hn(tt);else if(Pt===tt){var Dn=Ve(fe.current,!1,rt,Le);hn(mt),et(Dn)}else Lt()},[Pt]);var qe=Ge.useRef(),Ot=function(){yt.Z.cancel(qe.current)},Gt=function(Ln){Pt===mt&&($e==null||$e(Ln),Qe&&(Ot(),qe.current=(0,yt.Z)(function(){De()})))};Ge.useEffect(function(){return Ot},[]);var an=Ke?fn:null,Mn=(0,Oe.Z)((0,Oe.Z)({},wn),an);return(Pt===Ue||Pt===tt)&&(Mn.overflowY="hidden",Mn.overflowX="hidden"),Ge.createElement(wt.Z,{onResize:Gt,disabled:!(Qe||$e)},Ge.createElement("textarea",(0,oe.Z)({},Jt,{ref:fe,style:Mn,className:Ce()(xe,Mt,(0,Ne.Z)({},"".concat(xe,"-disabled"),cn)),disabled:cn,value:ue,onChange:he})))}),kt=Je,st=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Tt(en,Ht){return(0,Fe.Z)(en||"").slice(0,Ht).join("")}function nt(en,Ht,je,xe){var Xe=je;return en?Xe=Tt(je,xe):(0,Fe.Z)(Ht||"").length<je.length&&(0,Fe.Z)(je||"").length>xe&&(Xe=Ht),Xe}var Yt=Ge.forwardRef(function(en,Ht){var je,xe=en.defaultValue,Xe=en.value,_t=en.onFocus,St=en.onBlur,Qe=en.onChange,$e=en.allowClear,Mt=en.maxLength,wn=en.onCompositionStart,cn=en.onCompositionEnd,dn=en.suffix,nn=en.prefixCls,Jt=nn===void 0?"rc-textarea":nn,Bt=en.classes,ge=en.showCount,ue=en.className,se=en.style,he=en.disabled,fe=en.hidden,ce=en.classNames,Ae=en.styles,rt=en.onResize,Le=(0,Te.Z)(en,st),Ke=(0,Ie.Z)(xe,{value:Xe,defaultValue:xe}),Lt=(0,we.Z)(Ke,2),xt=Lt[0],Ye=Lt[1],Pt=(0,Ge.useRef)(null),hn=Ge.useState(!1),at=(0,we.Z)(hn,2),Xt=at[0],fn=at[1],et=Ge.useState(!1),De=(0,we.Z)(et,2),qe=De[0],Ot=De[1],Gt=Ge.useRef(),an=Ge.useRef(0),Mn=Ge.useState(null),Dn=(0,we.Z)(Mn,2),Ln=Dn[0],Un=Dn[1],Wn=function(){var Gn;(Gn=Pt.current)===null||Gn===void 0||Gn.textArea.focus()};(0,Ge.useImperativeHandle)(Ht,function(){return{resizableTextArea:Pt.current,focus:Wn,blur:function(){var Gn;(Gn=Pt.current)===null||Gn===void 0||Gn.textArea.blur()}}}),(0,Ge.useEffect)(function(){fn(function(Kn){return!he&&Kn})},[he]);var On=Number(Mt)>0,Hn=function(Gn){Ot(!0),Gt.current=xt,an.current=Gn.currentTarget.selectionStart,wn==null||wn(Gn)},Dr=function(Gn){Ot(!1);var Tr=Gn.currentTarget.value;if(On){var bt,ke=an.current>=Mt+1||an.current===((bt=Gt.current)===null||bt===void 0?void 0:bt.length);Tr=nt(ke,Gt.current,Tr,Mt)}Tr!==xt&&(Ye(Tr),(0,ft.rJ)(Gn.currentTarget,Gn,Qe,Tr)),cn==null||cn(Gn)},Pr=function(Gn){var Tr=Gn.target.value;if(!qe&&On){var bt=Gn.target.selectionStart>=Mt+1||Gn.target.selectionStart===Tr.length||!Gn.target.selectionStart;Tr=nt(bt,xt,Tr,Mt)}Ye(Tr),(0,ft.rJ)(Gn.currentTarget,Gn,Qe,Tr)},fr=function(Gn){var Tr=Le.onPressEnter,bt=Le.onKeyDown;Gn.key==="Enter"&&Tr&&Tr(Gn),bt==null||bt(Gn)},Jn=function(Gn){fn(!0),_t==null||_t(Gn)},Fr=function(Gn){fn(!1),St==null||St(Gn)},Tn=function(Gn){var Tr;Ye(""),Wn(),(0,ft.rJ)((Tr=Pt.current)===null||Tr===void 0?void 0:Tr.textArea,Gn,Qe)},Ir=(0,ft.D7)(xt);!qe&&On&&Xe==null&&(Ir=Tt(Ir,Mt));var Yr=dn,nr;if(ge){var $r=(0,Fe.Z)(Ir).length;(0,dt.Z)(ge)==="object"?nr=ge.formatter({value:Ir,count:$r,maxLength:Mt}):nr="".concat($r).concat(On?" / ".concat(Mt):""),Yr=Ge.createElement(Ge.Fragment,null,Yr,Ge.createElement("span",{className:Ce()("".concat(Jt,"-data-count"),ce==null?void 0:ce.count),style:Ae==null?void 0:Ae.count},nr))}var Qr=function(Gn){var Tr;rt==null||rt(Gn),(Tr=Pt.current)!==null&&Tr!==void 0&&Tr.textArea.style.height&&Un(!0)},$n=!Le.autoSize&&!ge&&!$e,Xn=Ge.createElement(_e.BaseInput,{value:Ir,allowClear:$e,handleReset:Tn,suffix:Yr,prefixCls:Jt,classes:{affixWrapper:Ce()(Bt==null?void 0:Bt.affixWrapper,(je={},(0,Ne.Z)(je,"".concat(Jt,"-show-count"),ge),(0,Ne.Z)(je,"".concat(Jt,"-textarea-allow-clear"),$e),je))},disabled:he,focused:Xt,className:ue,style:(0,Oe.Z)((0,Oe.Z)({},se),Ln&&!$n?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof nr=="string"?nr:void 0}},hidden:fe,inputElement:Ge.createElement(kt,(0,oe.Z)({},Le,{onKeyDown:fr,onChange:Pr,onFocus:Jn,onBlur:Fr,onCompositionStart:Hn,onCompositionEnd:Dr,className:ce==null?void 0:ce.textarea,style:(0,Oe.Z)((0,Oe.Z)({},Ae==null?void 0:Ae.textarea),{},{resize:se==null?void 0:se.resize}),disabled:he,prefixCls:Jt,onResize:Qr,ref:Pt}))});return Xn}),ln=Yt,tn=ln},48911:function(mn,un,le){"use strict";le.d(un,{Z:function(){return Bt}});var oe=le(60499),Oe=le(43749),Ne=le(85899),dt=le(18642),we=le(72190),Te=le(42244),Fe=le(92310),be=le.n(Fe),Ce=le(29301),_e=le(70425),ft=le(34280),Ie=le(59301),Ge=le(4676),wt=Ie.forwardRef(function(ge,ue){var se=ge.height,he=ge.offsetY,fe=ge.offsetX,ce=ge.children,Ae=ge.prefixCls,rt=ge.onInnerResize,Le=ge.innerProps,Ke=ge.rtl,Lt=ge.extra,xt={},Ye={display:"flex",flexDirection:"column"};return he!==void 0&&(xt={height:se,position:"relative",overflow:"hidden"},Ye=(0,Ne.Z)((0,Ne.Z)({},Ye),{},(0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)({transform:"translateY(".concat(he,"px)")},Ke?"marginRight":"marginLeft",-fe),"position","absolute"),"left",0),"right",0),"top",0))),Ie.createElement("div",{style:xt},Ie.createElement(Ce.Z,{onResize:function(hn){var at=hn.offsetHeight;at&&rt&&rt()}},Ie.createElement("div",(0,oe.Z)({style:Ye,className:be()((0,dt.Z)({},"".concat(Ae,"-holder-inner"),Ae)),ref:ue},Le),ce,Lt)))});wt.displayName="Filler";var ut=wt;function yt(ge){var ue=ge.children,se=ge.setRef,he=Ie.useCallback(function(fe){se(fe)},[]);return Ie.cloneElement(ue,{ref:he})}function lt(ge,ue,se,he,fe,ce,Ae,rt){var Le=rt.getKey;return ge.slice(ue,se+1).map(function(Ke,Lt){var xt=ue+Lt,Ye=Ae(Ke,xt,{style:{width:he},offsetX:fe}),Pt=Le(Ke);return Ie.createElement(yt,{key:Pt,setRef:function(at){return ce(Ke,at)}},Ye)})}function ht(ge,ue,se,he){var fe=se-ge,ce=ue-se,Ae=Math.min(fe,ce)*2;if(he<=Ae){var rt=Math.floor(he/2);return he%2?se+rt+1:se-rt}return fe>ce?se-(he-ce):se+(he-fe)}function Vt(ge,ue,se){var he=ge.length,fe=ue.length,ce,Ae;if(he===0&&fe===0)return null;he<fe?(ce=ge,Ae=ue):(ce=ue,Ae=ge);var rt={__EMPTY_ITEM__:!0};function Le(hn){return hn!==void 0?se(hn):rt}for(var Ke=null,Lt=Math.abs(he-fe)!==1,xt=0;xt<Ae.length;xt+=1){var Ye=Le(ce[xt]),Pt=Le(Ae[xt]);if(Ye!==Pt){Ke=xt,Lt=Lt||Ye!==Le(Ae[xt+1]);break}}return Ke===null?null:{index:Ke,multiple:Lt}}function ot(ge,ue,se){var he=Ie.useState(ge),fe=(0,we.Z)(he,2),ce=fe[0],Ae=fe[1],rt=Ie.useState(null),Le=(0,we.Z)(rt,2),Ke=Le[0],Lt=Le[1];return Ie.useEffect(function(){var xt=Vt(ce||[],ge||[],ue);(xt==null?void 0:xt.index)!==void 0&&(se==null||se(xt.index),Lt(ge[xt.index])),Ae(ge)},[ge]),[Ke]}var gt=le(16089),Ve=(typeof navigator=="undefined"?"undefined":(0,Oe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Me=Ve,Ue=function(ge,ue,se,he){var fe=(0,Ie.useRef)(!1),ce=(0,Ie.useRef)(null);function Ae(){clearTimeout(ce.current),fe.current=!0,ce.current=setTimeout(function(){fe.current=!1},50)}var rt=(0,Ie.useRef)({top:ge,bottom:ue,left:se,right:he});return rt.current.top=ge,rt.current.bottom=ue,rt.current.left=se,rt.current.right=he,function(Le,Ke){var Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xt=Le?Ke<0&&rt.current.left||Ke>0&&rt.current.right:Ke<0&&rt.current.top||Ke>0&&rt.current.bottom;return Lt&&xt?(clearTimeout(ce.current),fe.current=!1):(!xt||fe.current)&&Ae(),!fe.current&&xt}};function tt(ge,ue,se,he,fe,ce,Ae){var rt=(0,Ie.useRef)(0),Le=(0,Ie.useRef)(null),Ke=(0,Ie.useRef)(null),Lt=(0,Ie.useRef)(!1),xt=Ue(ue,se,he,fe);function Ye(et,De){if(gt.Z.cancel(Le.current),!xt(!1,De)){var qe=et;if(!qe._virtualHandled)qe._virtualHandled=!0;else return;rt.current+=De,Ke.current=De,Me||qe.preventDefault(),Le.current=(0,gt.Z)(function(){var Ot=Lt.current?10:1;Ae(rt.current*Ot,!1),rt.current=0})}}function Pt(et,De){Ae(De,!0),Me||et.preventDefault()}var hn=(0,Ie.useRef)(null),at=(0,Ie.useRef)(null);function Xt(et){if(ge){gt.Z.cancel(at.current),at.current=(0,gt.Z)(function(){hn.current=null},2);var De=et.deltaX,qe=et.deltaY,Ot=et.shiftKey,Gt=De,an=qe;(hn.current==="sx"||!hn.current&&Ot&&qe&&!De)&&(Gt=qe,an=0,hn.current="sx");var Mn=Math.abs(Gt),Dn=Math.abs(an);hn.current===null&&(hn.current=ce&&Mn>Dn?"x":"y"),hn.current==="y"?Ye(et,an):Pt(et,Gt)}}function fn(et){ge&&(Lt.current=et.detail===Ke.current)}return[Xt,fn]}function mt(ge,ue,se,he){var fe=Ie.useMemo(function(){return[new Map,[]]},[ge,se.id,he]),ce=(0,we.Z)(fe,2),Ae=ce[0],rt=ce[1],Le=function(Lt){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Lt,Ye=Ae.get(Lt),Pt=Ae.get(xt);if(Ye===void 0||Pt===void 0)for(var hn=ge.length,at=rt.length;at<hn;at+=1){var Xt,fn=ge[at],et=ue(fn);Ae.set(et,at);var De=(Xt=se.get(et))!==null&&Xt!==void 0?Xt:he;if(rt[at]=(rt[at-1]||0)+De,et===Lt&&(Ye=at),et===xt&&(Pt=at),Ye!==void 0&&Pt!==void 0)break}return{top:rt[Ye-1]||0,bottom:rt[Pt]}};return Le}var Je=le(38705),kt=le(17212),st=function(){function ge(){(0,Je.Z)(this,ge),(0,dt.Z)(this,"maps",void 0),(0,dt.Z)(this,"id",0),(0,dt.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,kt.Z)(ge,[{key:"set",value:function(se,he){this.diffRecords.set(se,this.maps[se]),this.maps[se]=he,this.id+=1}},{key:"get",value:function(se){return this.maps[se]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ge}(),Tt=st;function nt(ge){var ue=parseFloat(ge);return isNaN(ue)?0:ue}function Yt(ge,ue,se){var he=Ie.useState(0),fe=(0,we.Z)(he,2),ce=fe[0],Ae=fe[1],rt=(0,Ie.useRef)(new Map),Le=(0,Ie.useRef)(new Tt),Ke=(0,Ie.useRef)(0);function Lt(){Ke.current+=1}function xt(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Lt();var hn=function(){var fn=!1;rt.current.forEach(function(et,De){if(et&&et.offsetParent){var qe=et.offsetHeight,Ot=getComputedStyle(et),Gt=Ot.marginTop,an=Ot.marginBottom,Mn=nt(Gt),Dn=nt(an),Ln=qe+Mn+Dn;Le.current.get(De)!==Ln&&(Le.current.set(De,Ln),fn=!0)}}),fn&&Ae(function(et){return et+1})};if(Pt)hn();else{Ke.current+=1;var at=Ke.current;Promise.resolve().then(function(){at===Ke.current&&hn()})}}function Ye(Pt,hn){var at=ge(Pt),Xt=rt.current.get(at);hn?(rt.current.set(at,hn),xt()):rt.current.delete(at),!Xt!=!hn&&(hn?ue==null||ue(Pt):se==null||se(Pt))}return(0,Ie.useEffect)(function(){return Lt},[]),[Ye,xt,Le.current,ce]}var ln=14/15;function tn(ge,ue,se){var he=(0,Ie.useRef)(!1),fe=(0,Ie.useRef)(0),ce=(0,Ie.useRef)(0),Ae=(0,Ie.useRef)(null),rt=(0,Ie.useRef)(null),Le,Ke=function(Pt){if(he.current){var hn=Math.ceil(Pt.touches[0].pageX),at=Math.ceil(Pt.touches[0].pageY),Xt=fe.current-hn,fn=ce.current-at,et=Math.abs(Xt)>Math.abs(fn);et?fe.current=hn:ce.current=at;var De=se(et,et?Xt:fn,!1,Pt);De&&Pt.preventDefault(),clearInterval(rt.current),De&&(rt.current=setInterval(function(){et?Xt*=ln:fn*=ln;var qe=Math.floor(et?Xt:fn);(!se(et,qe,!0)||Math.abs(qe)<=.1)&&clearInterval(rt.current)},16))}},Lt=function(){he.current=!1,Le()},xt=function(Pt){Le(),Pt.touches.length===1&&!he.current&&(he.current=!0,fe.current=Math.ceil(Pt.touches[0].pageX),ce.current=Math.ceil(Pt.touches[0].pageY),Ae.current=Pt.target,Ae.current.addEventListener("touchmove",Ke,{passive:!1}),Ae.current.addEventListener("touchend",Lt,{passive:!0}))};Le=function(){Ae.current&&(Ae.current.removeEventListener("touchmove",Ke),Ae.current.removeEventListener("touchend",Lt))},(0,ft.Z)(function(){return ge&&ue.current.addEventListener("touchstart",xt,{passive:!0}),function(){var Ye;(Ye=ue.current)===null||Ye===void 0||Ye.removeEventListener("touchstart",xt),Le(),clearInterval(rt.current)}},[ge])}function en(ge){return Math.floor(Math.pow(ge,.5))}function Ht(ge,ue){var se="touches"in ge?ge.touches[0]:ge;return se[ue?"pageX":"pageY"]-window[ue?"scrollX":"scrollY"]}function je(ge,ue,se){Ie.useEffect(function(){var he=ue.current;if(ge&&he){var fe=!1,ce,Ae,rt=function(){gt.Z.cancel(ce)},Le=function Ye(){rt(),ce=(0,gt.Z)(function(){se(Ae),Ye()})},Ke=function(){fe=!1,rt()},Lt=function(Pt){if(!(Pt.target.draggable||Pt.button!==0)){var hn=Pt;hn._virtualHandled||(hn._virtualHandled=!0,fe=!0)}},xt=function(Pt){if(fe){var hn=Ht(Pt,!1),at=he.getBoundingClientRect(),Xt=at.top,fn=at.bottom;if(hn<=Xt){var et=Xt-hn;Ae=-en(et),Le()}else if(hn>=fn){var De=hn-fn;Ae=en(De),Le()}else rt()}};return he.addEventListener("mousedown",Lt),he.ownerDocument.addEventListener("mouseup",Ke),he.ownerDocument.addEventListener("mousemove",xt),he.ownerDocument.addEventListener("dragend",Ke),function(){he.removeEventListener("mousedown",Lt),he.ownerDocument.removeEventListener("mouseup",Ke),he.ownerDocument.removeEventListener("mousemove",xt),he.ownerDocument.removeEventListener("dragend",Ke),rt()}}},[ge])}var xe=10;function Xe(ge,ue,se,he,fe,ce,Ae,rt){var Le=Ie.useRef(),Ke=Ie.useState(null),Lt=(0,we.Z)(Ke,2),xt=Lt[0],Ye=Lt[1];return(0,ft.Z)(function(){if(xt&&xt.times<xe){if(!ge.current){Ye(function(Fr){return(0,Ne.Z)({},Fr)});return}ce();var Pt=xt.targetAlign,hn=xt.originAlign,at=xt.index,Xt=xt.offset,fn=ge.current.clientHeight,et=!1,De=Pt,qe=null;if(fn){for(var Ot=Pt||hn,Gt=0,an=0,Mn=0,Dn=Math.min(ue.length-1,at),Ln=0;Ln<=Dn;Ln+=1){var Un=fe(ue[Ln]);an=Gt;var Wn=se.get(Un);Mn=an+(Wn===void 0?he:Wn),Gt=Mn}for(var On=Ot==="top"?Xt:fn-Xt,Hn=Dn;Hn>=0;Hn-=1){var Dr=fe(ue[Hn]),Pr=se.get(Dr);if(Pr===void 0){et=!0;break}if(On-=Pr,On<=0)break}switch(Ot){case"top":qe=an-Xt;break;case"bottom":qe=Mn-fn+Xt;break;default:{var fr=ge.current.scrollTop,Jn=fr+fn;an<fr?De="top":Mn>Jn&&(De="bottom")}}qe!==null&&Ae(qe),qe!==xt.lastTop&&(et=!0)}et&&Ye((0,Ne.Z)((0,Ne.Z)({},xt),{},{times:xt.times+1,targetAlign:De,lastTop:qe}))}},[xt,ge.current]),function(Pt){if(Pt==null){rt();return}if(gt.Z.cancel(Le.current),typeof Pt=="number")Ae(Pt);else if(Pt&&(0,Oe.Z)(Pt)==="object"){var hn,at=Pt.align;"index"in Pt?hn=Pt.index:hn=ue.findIndex(function(et){return fe(et)===Pt.key});var Xt=Pt.offset,fn=Xt===void 0?0:Xt;Ye({times:0,index:hn,offset:fn,originAlign:at})}}}var _t=Ie.forwardRef(function(ge,ue){var se=ge.prefixCls,he=ge.rtl,fe=ge.scrollOffset,ce=ge.scrollRange,Ae=ge.onStartMove,rt=ge.onStopMove,Le=ge.onScroll,Ke=ge.horizontal,Lt=ge.spinSize,xt=ge.containerSize,Ye=ge.style,Pt=ge.thumbStyle,hn=ge.showScrollBar,at=Ie.useState(!1),Xt=(0,we.Z)(at,2),fn=Xt[0],et=Xt[1],De=Ie.useState(null),qe=(0,we.Z)(De,2),Ot=qe[0],Gt=qe[1],an=Ie.useState(null),Mn=(0,we.Z)(an,2),Dn=Mn[0],Ln=Mn[1],Un=!he,Wn=Ie.useRef(),On=Ie.useRef(),Hn=Ie.useState(hn),Dr=(0,we.Z)(Hn,2),Pr=Dr[0],fr=Dr[1],Jn=Ie.useRef(),Fr=function(){hn===!0||hn===!1||(clearTimeout(Jn.current),fr(!0),Jn.current=setTimeout(function(){fr(!1)},3e3))},Tn=ce-xt||0,Ir=xt-Lt||0,Yr=Ie.useMemo(function(){if(fe===0||Tn===0)return 0;var bt=fe/Tn;return bt*Ir},[fe,Tn,Ir]),nr=function(ke){ke.stopPropagation(),ke.preventDefault()},$r=Ie.useRef({top:Yr,dragging:fn,pageY:Ot,startTop:Dn});$r.current={top:Yr,dragging:fn,pageY:Ot,startTop:Dn};var Qr=function(ke){et(!0),Gt(Ht(ke,Ke)),Ln($r.current.top),Ae(),ke.stopPropagation(),ke.preventDefault()};Ie.useEffect(function(){var bt=function(Pe){Pe.preventDefault()},ke=Wn.current,ze=On.current;return ke.addEventListener("touchstart",bt,{passive:!1}),ze.addEventListener("touchstart",Qr,{passive:!1}),function(){ke.removeEventListener("touchstart",bt),ze.removeEventListener("touchstart",Qr)}},[]);var $n=Ie.useRef();$n.current=Tn;var Xn=Ie.useRef();Xn.current=Ir,Ie.useEffect(function(){if(fn){var bt,ke=function(Pe){var it=$r.current,vt=it.dragging,Ut=it.pageY,Ft=it.startTop;gt.Z.cancel(bt);var on=Wn.current.getBoundingClientRect(),Cn=xt/(Ke?on.width:on.height);if(vt){var Bn=(Ht(Pe,Ke)-Ut)*Cn,An=Ft;!Un&&Ke?An-=Bn:An+=Bn;var Wt=$n.current,bn=Xn.current,pt=bn?An/bn:0,It=Math.ceil(pt*Wt);It=Math.max(It,0),It=Math.min(It,Wt),bt=(0,gt.Z)(function(){Le(It,Ke)})}},ze=function(){et(!1),rt()};return window.addEventListener("mousemove",ke,{passive:!0}),window.addEventListener("touchmove",ke,{passive:!0}),window.addEventListener("mouseup",ze,{passive:!0}),window.addEventListener("touchend",ze,{passive:!0}),function(){window.removeEventListener("mousemove",ke),window.removeEventListener("touchmove",ke),window.removeEventListener("mouseup",ze),window.removeEventListener("touchend",ze),gt.Z.cancel(bt)}}},[fn]),Ie.useEffect(function(){return Fr(),function(){clearTimeout(Jn.current)}},[fe]),Ie.useImperativeHandle(ue,function(){return{delayHidden:Fr}});var Kn="".concat(se,"-scrollbar"),Gn={position:"absolute",visibility:Pr?null:"hidden"},Tr={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ke?(Object.assign(Gn,{height:8,left:0,right:0,bottom:0}),Object.assign(Tr,(0,dt.Z)({height:"100%",width:Lt},Un?"left":"right",Yr))):(Object.assign(Gn,(0,dt.Z)({width:8,top:0,bottom:0},Un?"right":"left",0)),Object.assign(Tr,{width:"100%",height:Lt,top:Yr})),Ie.createElement("div",{ref:Wn,className:be()(Kn,(0,dt.Z)((0,dt.Z)((0,dt.Z)({},"".concat(Kn,"-horizontal"),Ke),"".concat(Kn,"-vertical"),!Ke),"".concat(Kn,"-visible"),Pr)),style:(0,Ne.Z)((0,Ne.Z)({},Gn),Ye),onMouseDown:nr,onMouseMove:Fr},Ie.createElement("div",{ref:On,className:be()("".concat(Kn,"-thumb"),(0,dt.Z)({},"".concat(Kn,"-thumb-moving"),fn)),style:(0,Ne.Z)((0,Ne.Z)({},Tr),Pt),onMouseDown:Qr}))}),St=_t,Qe=20;function $e(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,se=ge/ue*ge;return isNaN(se)&&(se=0),se=Math.max(se,Qe),Math.floor(se)}var Mt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],wn=[],cn={overflowY:"auto",overflowAnchor:"none"};function dn(ge,ue){var se=ge.prefixCls,he=se===void 0?"rc-virtual-list":se,fe=ge.className,ce=ge.height,Ae=ge.itemHeight,rt=ge.fullHeight,Le=rt===void 0?!0:rt,Ke=ge.style,Lt=ge.data,xt=ge.children,Ye=ge.itemKey,Pt=ge.virtual,hn=ge.direction,at=ge.scrollWidth,Xt=ge.component,fn=Xt===void 0?"div":Xt,et=ge.onScroll,De=ge.onVirtualScroll,qe=ge.onVisibleChange,Ot=ge.innerProps,Gt=ge.extraRender,an=ge.styles,Mn=ge.showScrollBar,Dn=Mn===void 0?"optional":Mn,Ln=(0,Te.Z)(ge,Mt),Un=Ie.useCallback(function(ir){return typeof Ye=="function"?Ye(ir):ir==null?void 0:ir[Ye]},[Ye]),Wn=Yt(Un,null,null),On=(0,we.Z)(Wn,4),Hn=On[0],Dr=On[1],Pr=On[2],fr=On[3],Jn=!!(Pt!==!1&&ce&&Ae),Fr=Ie.useMemo(function(){return Object.values(Pr.maps).reduce(function(ir,hr){return ir+hr},0)},[Pr.id,Pr.maps]),Tn=Jn&&Lt&&(Math.max(Ae*Lt.length,Fr)>ce||!!at),Ir=hn==="rtl",Yr=be()(he,(0,dt.Z)({},"".concat(he,"-rtl"),Ir),fe),nr=Lt||wn,$r=(0,Ie.useRef)(),Qr=(0,Ie.useRef)(),$n=(0,Ie.useRef)(),Xn=(0,Ie.useState)(0),Kn=(0,we.Z)(Xn,2),Gn=Kn[0],Tr=Kn[1],bt=(0,Ie.useState)(0),ke=(0,we.Z)(bt,2),ze=ke[0],Re=ke[1],Pe=(0,Ie.useState)(!1),it=(0,we.Z)(Pe,2),vt=it[0],Ut=it[1],Ft=function(){Ut(!0)},on=function(){Ut(!1)},Cn={getKey:Un};function Bn(ir){Tr(function(hr){var Vr;typeof ir=="function"?Vr=ir(hr):Vr=ir;var qr=mr(Vr);return $r.current.scrollTop=qr,qr})}var An=(0,Ie.useRef)({start:0,end:nr.length}),Wt=(0,Ie.useRef)(),bn=ot(nr,Un),pt=(0,we.Z)(bn,1),It=pt[0];Wt.current=It;var Kt=Ie.useMemo(function(){if(!Jn)return{scrollHeight:void 0,start:0,end:nr.length-1,offset:void 0};if(!Tn){var ir;return{scrollHeight:((ir=Qr.current)===null||ir===void 0?void 0:ir.offsetHeight)||0,start:0,end:nr.length-1,offset:void 0}}for(var hr=0,Vr,qr,xi,Ei=nr.length,vi=0;vi<Ei;vi+=1){var ci=nr[vi],Ai=Un(ci),Li=Pr.get(Ai),dr=hr+(Li===void 0?Ae:Li);dr>=Gn&&Vr===void 0&&(Vr=vi,qr=hr),dr>Gn+ce&&xi===void 0&&(xi=vi),hr=dr}return Vr===void 0&&(Vr=0,qr=0,xi=Math.ceil(ce/Ae)),xi===void 0&&(xi=nr.length-1),xi=Math.min(xi+1,nr.length-1),{scrollHeight:hr,start:Vr,end:xi,offset:qr}},[Tn,Jn,Gn,nr,fr,ce]),Nt=Kt.scrollHeight,gn=Kt.start,Zt=Kt.end,pn=Kt.offset;An.current.start=gn,An.current.end=Zt,Ie.useLayoutEffect(function(){var ir=Pr.getRecord();if(ir.size===1){var hr=Array.from(ir.keys())[0],Vr=ir.get(hr),qr=nr[gn];if(qr&&Vr===void 0){var xi=Un(qr);if(xi===hr){var Ei=Pr.get(hr),vi=Ei-Ae;Bn(function(ci){return ci+vi})}}}Pr.resetRecord()},[Nt]);var He=Ie.useState({width:0,height:ce}),At=(0,we.Z)(He,2),Dt=At[0],Qt=At[1],jt=function(hr){Qt({width:hr.offsetWidth,height:hr.offsetHeight})},qt=(0,Ie.useRef)(),$t=(0,Ie.useRef)(),En=Ie.useMemo(function(){return $e(Dt.width,at)},[Dt.width,at]),In=Ie.useMemo(function(){return $e(Dt.height,Nt)},[Dt.height,Nt]),zn=Nt-ce,er=(0,Ie.useRef)(zn);er.current=zn;function mr(ir){var hr=ir;return Number.isNaN(er.current)||(hr=Math.min(hr,er.current)),hr=Math.max(hr,0),hr}var wr=Gn<=0,cr=Gn>=zn,Zn=ze<=0,Ar=ze>=at,pr=Ue(wr,cr,Zn,Ar),Or=function(){return{x:Ir?-ze:ze,y:Gn}},ur=(0,Ie.useRef)(Or()),or=(0,_e.useEvent)(function(ir){if(De){var hr=(0,Ne.Z)((0,Ne.Z)({},Or()),ir);(ur.current.x!==hr.x||ur.current.y!==hr.y)&&(De(hr),ur.current=hr)}});function _r(ir,hr){var Vr=ir;hr?((0,Ge.flushSync)(function(){Re(Vr)}),or()):Bn(Vr)}function Sr(ir){var hr=ir.currentTarget.scrollTop;hr!==Gn&&Bn(hr),et==null||et(ir),or()}var Jr=function(hr){var Vr=hr,qr=at?at-Dt.width:0;return Vr=Math.max(Vr,0),Vr=Math.min(Vr,qr),Vr},si=(0,_e.useEvent)(function(ir,hr){hr?((0,Ge.flushSync)(function(){Re(function(Vr){var qr=Vr+(Ir?-ir:ir);return Jr(qr)})}),or()):Bn(function(Vr){var qr=Vr+ir;return qr})}),br=tt(Jn,wr,cr,Zn,Ar,!!at,si),Nn=(0,we.Z)(br,2),Rn=Nn[0],kr=Nn[1];tn(Jn,$r,function(ir,hr,Vr,qr){var xi=qr;return pr(ir,hr,Vr)?!1:!xi||!xi._virtualHandled?(xi&&(xi._virtualHandled=!0),Rn({preventDefault:function(){},deltaX:ir?hr:0,deltaY:ir?0:hr}),!0):!1}),je(Tn,$r,function(ir){Bn(function(hr){return hr+ir})}),(0,ft.Z)(function(){function ir(Vr){var qr=wr&&Vr.detail<0,xi=cr&&Vr.detail>0;Jn&&!qr&&!xi&&Vr.preventDefault()}var hr=$r.current;return hr.addEventListener("wheel",Rn,{passive:!1}),hr.addEventListener("DOMMouseScroll",kr,{passive:!0}),hr.addEventListener("MozMousePixelScroll",ir,{passive:!1}),function(){hr.removeEventListener("wheel",Rn),hr.removeEventListener("DOMMouseScroll",kr),hr.removeEventListener("MozMousePixelScroll",ir)}},[Jn,wr,cr]),(0,ft.Z)(function(){if(at){var ir=Jr(ze);Re(ir),or({x:ir})}},[Dt.width,at]);var yr=function(){var hr,Vr;(hr=qt.current)===null||hr===void 0||hr.delayHidden(),(Vr=$t.current)===null||Vr===void 0||Vr.delayHidden()},Hr=Xe($r,nr,Pr,Ae,Un,function(){return Dr(!0)},Bn,yr);Ie.useImperativeHandle(ue,function(){return{nativeElement:$n.current,getScrollInfo:Or,scrollTo:function(hr){function Vr(qr){return qr&&(0,Oe.Z)(qr)==="object"&&("left"in qr||"top"in qr)}Vr(hr)?(hr.left!==void 0&&Re(Jr(hr.left)),Hr(hr.top)):Hr(hr)}}}),(0,ft.Z)(function(){if(qe){var ir=nr.slice(gn,Zt+1);qe(ir,nr)}},[gn,Zt,nr]);var jr=mt(nr,Un,Pr,Ae),Gr=Gt==null?void 0:Gt({start:gn,end:Zt,virtual:Tn,offsetX:ze,offsetY:pn,rtl:Ir,getSize:jr}),Cr=lt(nr,gn,Zt,at,ze,Hn,xt,Cn),Kr=null;ce&&(Kr=(0,Ne.Z)((0,dt.Z)({},Le?"height":"maxHeight",ce),cn),Jn&&(Kr.overflowY="hidden",at&&(Kr.overflowX="hidden"),vt&&(Kr.pointerEvents="none")));var yi={};return Ir&&(yi.dir="rtl"),Ie.createElement("div",(0,oe.Z)({ref:$n,style:(0,Ne.Z)((0,Ne.Z)({},Ke),{},{position:"relative"}),className:Yr},yi,Ln),Ie.createElement(Ce.Z,{onResize:jt},Ie.createElement(fn,{className:"".concat(he,"-holder"),style:Kr,ref:$r,onScroll:Sr,onMouseEnter:yr},Ie.createElement(ut,{prefixCls:he,height:Nt,offsetX:ze,offsetY:pn,scrollWidth:at,onInnerResize:Dr,ref:Qr,innerProps:Ot,rtl:Ir,extra:Gr},Cr))),Tn&&Nt>ce&&Ie.createElement(St,{ref:qt,prefixCls:he,scrollOffset:Gn,scrollRange:Nt,rtl:Ir,onScroll:_r,onStartMove:Ft,onStopMove:on,spinSize:In,containerSize:Dt.height,style:an==null?void 0:an.verticalScrollBar,thumbStyle:an==null?void 0:an.verticalScrollBarThumb,showScrollBar:Dn}),Tn&&at>Dt.width&&Ie.createElement(St,{ref:$t,prefixCls:he,scrollOffset:ze,scrollRange:at,rtl:Ir,onScroll:_r,onStartMove:Ft,onStopMove:on,spinSize:En,containerSize:Dt.width,horizontal:!0,style:an==null?void 0:an.horizontalScrollBar,thumbStyle:an==null?void 0:an.horizontalScrollBarThumb,showScrollBar:Dn}))}var nn=Ie.forwardRef(dn);nn.displayName="List";var Jt=nn,Bt=Jt},25365:function(mn){"use strict";mn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAA0VJREFUOE+V03lI01EcAPD3fjucs4nmwrXNOY/VdBoe0Tqggi5NgsLaWriWZFQEEvRHBxmL+iMo/KMg6KJSCy03mbapo1vXzCvJUstjZTM1bUzZZP6uF5M0Zwr1/nsHn/d93+/7QjBn3GhuZkm5scvRJIgODWX7sKCQT0oRGIAQorlnp+cIAAhnJghhhobvWRPjQ/rJ8eEVXIxGwcFsGBYWQUTFLrN6yCB9qpjdthA2BSGEsEd1X08NOlrPSiM4PxWJCSNL+HwfSZBMp/Mbr6+vVyyVyQm+SJYrCWea5sOmoMqm4ezu9rqSrUpFjzxBPgpoCkCEwO+3IJIgWRWVpiR5cirF40crZZGc3rkYdDgQp+advUXC9YZs2rjBQRCTwK/T6E9KaJoGJEVxyw3GtNUbt11KWSYp+AuyfRlf86baVJezc0sLb1HIxGxg9mEIIaiurVXgJOiUq6WbV8KVRMD+s45hbftL082DWk0TQohaKJn+9bb3H6Ntr16hvfvU6TExMe4A6G2Xc4+ttqIkL1fXBAAIuGVORMje3BpvNRrxM8fz0xfHxY0F7Hd/HVSYjKVtGpWqI4THc2ELhIRhTHjzXlHax4Z6++3i4iwIIRkAIYQY9+9cfxHKFyVtz8ho9/l8NIbN4mgaQAYDfHI4hRf152TxAsHhK9ev3for2f6F1sZn6w0VFvMuVY43WZHYi08SOKJIP4AYTBbW7XAKCgs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FOKWhWQOd1rVoqqDTMGnV2U85AEN2cQw5h245yd7OLo8oxt4wVyYGyQnkXUadIa6K4xARA9+HALJ8vvfsW0kKnen3JQDkptFyiUKAIUrctSaSGh56uZGIGn3ZTLJ+99dlOpz/lcFOSQxrizjSBCQboZJdYMkWxgekNxFTckgs9cTNM7IZpxqypkTriKZzoPt3xpREzYp6t7x2f8ARtZc8eay0EoAAAAASUVORK5CYII="},39057:function(mn){"use strict";mn.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/A3WgSZtHX812iA3imrbDq2kZxfoWVOo8hxGPXf0yDygP+eR8F3vtqdjrGTHsNN/0Pbo4z2Xadi0fcqZaSOeBTpMX/9KvDPZHnCu9V3vc2r7zvZYW6dyL4T2WE83nQgYlpy73MQwZqdz52czyKns8jTUeR06uR0FBkGdkhW04VN7Rr7TRcIE85cl75X/ZC5Pj3R9YPs+t7GDPp22u+uE7k9iLy6E3m176TbkV/OJ5GddHLYgczkPcyhGE/F277YpHLmd10XvDsFFpH1oiB9KQjQYu1aYJcKdnYvLKiA/M5UFDdWbr6LvIy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bP3v2aDjMISHRqDvhU/jScZAIuZpF7urMIRHhxMtxaDVxkP5s6/PTemjld9JmqnoUAXdp76ZqangOGXnmbuSSwINlw66vnonq757l0gHwoTNt7cz8nd3Yz4f/0XK6vduVqt42shwKRVC5U58oEJnXL9FPjpcPhFGHaBhdxW4sOsYHZjZGul8dDeXg4eBKtw86VGhGVwicBOpT6OxwMMV/3EQg6AWKIUvH5RNolA29CDT3wmNspggFJXkNUkl1IuQKnQixEgIwkJ5MjBYF/fTCG7E6XWDeW06oJpdinfW8BEx7JYaHE0aM0JdIN1IOF8WgwFO5YnABqrkUiiFDCsnyPqU9PKWXmCwc5De9OC0XNdja1QysjHUcte17BFMJCEZ5K6RCDwN/tGnKlws/cKIg8Kj4vMASYVKjdqXExZzAh8op+/5zRwrdHv1HgGwW+UeAbBb5R4BsFvlGgpcA3YPFtR3yjwDcKfKPANwp8o8A3ClyMAv8DD8nJIGmcntAAAAAASUVORK5CYII="},96908:function(mn){"use strict";mn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK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YvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},47621:function(mn){"use strict";mn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7tvXlzJzmSJQaSeWcd3TOzvT270mpN0ppM3/+raDWS6TJp/9jpObq6rqw8SZkDcI+HB3ccwR+zsruZZlUkI3A4HH48OByIq/T475EDjxx45MAjBx458MiBRw5ciANXF2rnsZlHDjxy4JEDjxx45MAjBx45kK7+l/96ezfigyCPq6vyX0p3SX4MK0yZev8Wpl18YQVu73z8djFU5zRUpyvlCYv+yUTS+2N2yksu4s09NuE0me7ch6Xv3B81WmSt/JNX/F6ba9rVNpgYaWTAA26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74fwJl5+NYwSun8H2aBo8h54oZTxALkTR9Zd/uT1Gsoi0bHIRf3l902VNxoWm3ctqzAaaBjmYGLDsTw9gg6XeY7graRINU7FDwtiyyExzvWOA+AneF5t9UF43Rvya0MzrR74jwhAqtE1YdjrUyTrQ5JypT/LI+izkPjTQJ67DEWrh1j/oWACsm/+FryLzaOpzYAg2TFI8kFGoP8Cq+8yTvVE1Chl4PeF1gIizRKgb+rPC5FLHYM72PZRw48cuCRA48ceOTAIwceOTDB2o8MeuTAIwceOfDIgUcOPHLgkQOX4cD/Dy5hqdeaBa56AAAAAElFTkSuQmCC"},48136:function(mn,un,le){"use strict";var oe=Object.defineProperty,Oe=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,Fe=(a,y,b)=>y in a?oe(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,be=(a,y)=>{for(var b in y||(y={}))we.call(y,b)&&Fe(a,b,y[b]);if(dt)for(var b of dt(y))Te.call(y,b)&&Fe(a,b,y[b]);return a},Ce=(a,y)=>Oe(a,Ne(y)),_e=a=>typeof a=="symbol"?a:a+"",ft=(a,y)=>{var b={};for(var E in a)we.call(a,E)&&y.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&dt)for(var E of dt(a))y.indexOf(E)<0&&Te.call(a,E)&&(b[E]=a[E]);return b};function Ie(a){return Array.isArray(a)}var Ge={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 wt(){return"window"in globalThis&&"document"in globalThis}function ut(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function yt(){return typeof navigator.vibrate=="function"}function lt(){var a,y;if(!wt())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 ht(){if(!wt())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 Vt(){return HTMLElement.prototype.hasOwnProperty("popover")}var ot={strings:Ge,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return ot._locale||(ot._locale=wt()?navigator.language.slice(0,5):"en-US"),ot._locale},set locale(a){ot._locale=a,ot._numberFormatter=void 0,ot.dirty=!0},get numberFormatter(){return ot._numberFormatter||(ot._numberFormatter=new Intl.NumberFormat(ot.locale)),ot._numberFormatter},merge(a,y){if(typeof a=="string"&&y)ot.strings[a]=be(be({},ot.strings[a]),y),ot.dirty=!0;else for(const b of Object.keys(a))ot.merge(b,a[b])},get dirty(){return ot._dirty},set dirty(a){ot._dirty||ot._dirty===a||(ot._dirty=!0,setTimeout(()=>{ot._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return ot._subscribers.push(a),ot._subscribers.length-1},unsubscribe(a){a<0||a>=ot._subscribers.length||(ot._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=gt(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=gt(E);ee&&b.setAttribute("aria-label",ee)}}}};function gt(a,...y){if(a===void 0)return;let b="";const E=ot.locale;ot.strings[E]&&(b=ot.strings[E][a]);const ee=E.slice(0,2);if(!b&&ot.strings[ee]&&(b=ot.strings[ee][a]),b||(b=ot.strings.en[a]),!b)return;const re=/(%@|%([0-9]+)\$@)/g;let ae=re.exec(b),pe=0;for(;ae;){if(y[pe++]){const ye=ae[2]?parseInt(ae[2],10)-1:pe-1;let Se=y[ye];typeof Se=="number"&&(Se=ot.numberFormatter.format(Se)),b=b.replace(ae[1],Se)}ae=re.exec(b)}return b=b.replace(/%%/g,"%"),b}var Ve={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},Me={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},Ue={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"},tt={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"},mt={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"},Je={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 kt(a){var y,b,E,ee,re,ae;const pe=a.split("!");let me,ye,Se,Ze=255,ct=255,Et=255,Rt=-1;const Pn=pe.length>0&&pe[0].startsWith("-");Pn&&(pe[0]=pe[0].slice(1));for(let xr=0;xr<pe.length;xr++){me=Ze,ye=ct,Se=Et;const kn=(y=pe[xr].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],Qn=kn==null?void 0:kn.toLowerCase(),Lr=kn&&(ae=(re=(ee=(E=(b=tt[Qn])!=null?b:tt[mt[kn]])!=null?E:Me[kn])!=null?ee:Je[kn])!=null?re:Ve[kn])!=null?ae:pe[xr].trim();let rr=Lr.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(rr!=null&&rr[1]&&rr[2]&&rr[3])Ze=Math.max(0,Math.min(255,Number.parseInt(rr[1],16))),ct=Math.max(0,Math.min(255,Number.parseInt(rr[2],16))),Et=Math.max(0,Math.min(255,Number.parseInt(rr[3],16)));else if(rr=Lr.match(/^#([\da-f]{3})$/i),rr!=null&&rr[1]){const ii=Number.parseInt(rr[1][0],16),ui=Number.parseInt(rr[1][1],16),oi=Number.parseInt(rr[1][2],16);Ze=Math.max(0,Math.min(255,ii*16+ii)),ct=Math.max(0,Math.min(255,ui*16+ui)),Et=Math.max(0,Math.min(255,oi*16+oi))}else if(rr=Lr.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),rr!=null&&rr[1]&&rr[2]&&rr[3])Ze=Math.max(0,Math.min(255,Number.parseInt(rr[1]))),ct=Math.max(0,Math.min(255,Number.parseInt(rr[2]))),Et=Math.max(0,Math.min(255,Number.parseInt(rr[3])));else return;Rt>=0&&(Ze=(1-Rt)*Ze+Rt*me,ct=(1-Rt)*ct+Rt*ye,Et=(1-Rt)*Et+Rt*Se,Rt=-1),xr+1<pe.length&&(Rt=Math.max(0,Math.min(100,Number.parseInt(pe[++xr])))/100)}return Rt>=0&&(Ze=Rt*Ze+(1-Rt)*me,ct=Rt*ct+(1-Rt)*ye,Et=Rt*Et+(1-Rt)*Se),Pn&&(Ze=255-Ze,ct=255-ct,Et=255-Et),"#"+("00"+Math.round(Ze).toString(16)).slice(-2)+("00"+Math.round(ct).toString(16)).slice(-2)+("00"+Math.round(Et).toString(16)).slice(-2)}function st(a){var y,b;return a=a.trim(),(b=(y=Ue[a.toLowerCase()])!=null?y:Ue[mt[a]])!=null?b:kt(a)}function Tt(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 nt(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 Yt(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*nt(re,ee,y+2)),g:Math.round(255*nt(re,ee,y)),b:Math.round(255*nt(re,ee,y-2))}}function ln(a){return a<0?0:a>255?255:Math.round(a)}function tn(a){const{r:y,g:b,b:E}=a;let ee=((1<<24)+(ln(y)<<16)+(ln(b)<<8)+ln(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 en(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),ae=re-ee;let pe,me;re===ee?pe=0:y===re?pe=(b-E)/ae:b===re?pe=2+(E-y)/ae:E===re&&(pe=4+(y-b)/ae),pe=Math.min(pe*60,360),pe<0&&(pe+=360);const ye=(ee+re)/2;return re===ee?me=0:ye<=.5?me=ae/(re+ee):me=ae/(2-re-ee),{h:pe,s:me,l:ye}}function Ht(a){let y=Tt(a);if(!y)return a;let{h:b,s:E,l:ee}=en(y);return E+=.1,ee-=.1,tn(Yt({h:b,s:E,l:ee}))}var je={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"},xe={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},Xe=[{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 _t(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 Xe)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(xe[re]||re)}return a}function St(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in xe)if(xe[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of Xe)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 Qe(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=je[ee];if(re)re.startsWith("\\")?b+=re+" ":b+=re;else{const{char:ae,variant:pe,style:me}=St(ee);switch(re=ae,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(me){case"bold":re=`\\mathbf{${re}}`;break;case"italic":re=`\\mathit{${re}}`;break;case"bolditalic":re=`\\mathbfit{${re}}`;break}b+=re}}return b}function $e(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var Mt={},wn=be({},je),cn={},dn={},nn={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}"},Jt={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}},Bt={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}},ge={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:Bt},"amsmath.sty":{package:Jt,primitive:!0},"texvc.sty":{package:nn,primitive:!1}},ue={" ":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},se=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,he,fe;ht()?(he=new RegExp("\\p{Letter}","u"),fe=new RegExp("[0-9\\p{Letter}]","u")):(he=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,fe=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function ce(a,y,b="mord",E){y!==void 0&&(Mt[a]={definitionType:"symbol",type:b,variant:E,codepoint:y},wn[y]||(wn[y]=a))}function Ae(a,y,b){if(typeof a=="string"){for(let E=0;E<a.length;E++){const ee=a.charAt(E);ce(ee,ee.codePointAt(0))}return}for(const[E,ee,re,ae]of a)ce(E,ee,re!=null?re:y,ae!=null?ae:b)}function rt(a,y){for(let b=a;b<=y;b++)ce(String.fromCodePoint(b),b)}function Le(a){var y;return(y=dn[a])!=null?y:null}function Ke(a,y){var b,E;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ee=[];for(const ae in cn)ae.startsWith(y)&&!cn[ae].infix&&ee.push({match:ae,frequency:(b=cn[ae].frequency)!=null?b:0});for(const ae in Mt)ae.startsWith(y)&&ee.push({match:ae,frequency:(E=Mt[ae].frequency)!=null?E:0});const re=y.substring(1);for(const ae of Object.keys(a.options.macros))ae.startsWith(re)&&ee.push({match:"\\"+ae,frequency:0});return ee.sort((ae,pe)=>{var me,ye;return ae.frequency===pe.frequency?ae.match.length===pe.match.length?ae.match<pe.match?-1:1:ae.match.length-pe.match.length:((me=pe.frequency)!=null?me:0)-((ye=ae.frequency)!=null?ye:0)}),ee.map(ae=>ae.match)}function Lt(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function xt(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:Lt(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...xt(b[E]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:Lt(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...xt(b[E]))}return y}function Ye(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 Pt(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const E of a)dn[E]=b}function hn(a,y,b){typeof a=="string"&&(a=[a]);const ee={tabular:!0,params:xt(y),createAtom:b};for(const re of a)dn[re]=ee}function at(a,y,b){var E,ee;b||(b={});const re={definitionType:"function",params:xt(y),ifMode:b.ifMode,isFunction:(E=b.isFunction)!=null?E:!1,applyMode:b.applyMode,infix:(ee=b.infix)!=null?ee:!1,parse:b.parse,createAtom:b.createAtom,applyStyle:b.applyStyle,serialize:b.serialize,render:b.render};if(typeof a=="string")cn["\\"+a]=re;else for(const ae of a)cn["\\"+ae]=re}var Xt;function fn(a){return Xt||(Xt=De(ge)),a?De(be(be({},Xt),a)):Xt}function et(a,y){var b,E,ee,re;if(typeof a=="string"){let ae=0;const pe=a;return/(^|[^\\])#1/.test(pe)&&(ae=1),/(^|[^\\])#2/.test(pe)&&(ae=2),/(^|[^\\])#3/.test(pe)&&(ae=3),/(^|[^\\])#4/.test(pe)&&(ae=4),/(^|[^\\])#5/.test(pe)&&(ae=5),/(^|[^\\])#6/.test(pe)&&(ae=6),/(^|[^\\])#7/.test(pe)&&(ae=7),/(^|[^\\])#8/.test(pe)&&(ae=8),/(^|[^\\])#9/.test(pe)&&(ae=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(E=y==null?void 0:y.captureSelection)!=null?E:!0,args:ae,def:pe}}return be({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 De(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]=et(E.package[ee],{expand:!E.primitive,captureSelection:E.captureSelection});else y[b]=et(E)}return y}function qe(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=cn[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=Mt[a]:ue[a]&&(b={definitionType:"symbol",type:"mord",codepoint:ue[a]})}else if(y==="math"){if(b=Mt[a],!b&&a.length===1){const E=Gt("math",a.codePointAt(0));return E.startsWith("\\")?Ce(be({},qe(E,"math")),{command:E}):null}}else ue[a]?b={definitionType:"symbol",type:"mord",codepoint:ue[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function Ot(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function Gt(a,y){if(y===void 0)return"";if(a==="math"&&wn[y])return wn[y];if(a==="text"){const b=Object.keys(ue).find(E=>ue[E]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var an=[0,.68889,0,0,.72222],Mn=[0,.68889,0,0,.66667],Dn=[0,.68889,0,0,.77778],Ln=[0,.68889,0,0,.61111],Un=[.16667,.68889,0,0,.77778],Wn=[0,.68889,0,0,.55556],On=[0,0,0,0,.25],Hn=[0,.825,0,0,2.33334],Dr=[0,.9,0,0,2.33334],Pr=[0,.68889,0,0,.54028],fr=[-.03598,.46402,0,0,.5],Jn=[-.13313,.36687,0,0,1],Fr=[.01354,.52239,0,0,1],Tn=[.01354,.52239,0,0,1.11111],Ir=[0,.54986,0,0,1],Yr=[0,.69224,0,0,.5],nr=[0,.43056,0,0,1],$r=[.08198,.58198,0,0,.77778],Qr=[.19444,.69224,0,0,.41667],$n=[.1808,.675,0,0,1],Xn=[.19444,.69224,0,0,.83334],Kn=[.13667,.63667,0,0,1],Gn=[-.064,.437,0,0,1.334],Tr=[.08167,.58167,0,0,.77778],bt=[0,.69224,0,0,.72222],ke=[0,.69224,0,0,.66667],ze=[-.13313,.36687,0,0,.77778],Re=[.06062,.54986,0,0,.77778],Pe=[0,.69224,0,0,.77778],it=[.25583,.75583,0,0,.77778],vt=[.25142,.75726,0,0,.77778],Ut=[.20576,.70576,0,0,.77778],Ft=[.30274,.79383,0,0,.77778],on=[.22958,.72958,0,0,.77778],Cn=[.1808,.675,0,0,.77778],Bn=[.13667,.63667,0,0,.77778],An=[.13597,.63597,0,0,.77778],Wt=[.03517,.54986,0,0,.77778],bn=[0,.675,0,0,.77778],pt=[.19444,.69224,0,0,.61111],It=[0,.54986,0,0,.76042],Kt=[0,.54986,0,0,.66667],Nt=[.0391,.5391,0,0,.77778],gn=[.03517,.54986,0,0,1.33334],Zt=[.38569,.88569,0,0,.77778],pn=[.23222,.74111,0,0,.77778],He=[.19444,.69224,0,0,.77778],At=[0,.37788,0,0,.5],Dt=[0,.54986,0,0,.72222],Qt=[0,.69224,0,0,.83334],jt=[.11111,.69224,0,0,.66667],qt=[.26167,.75726,0,0,.77778],$t=[.48256,.98256,0,0,.77778],En=[.28481,.79383,0,0,.77778],In=[.08167,.58167,0,0,.22222],zn=[.08167,.58167,0,0,.38889],er=[0,.43056,.04028,0,.66667],mr=[.41951,.91951,0,0,.77778],wr=[.24982,.74947,0,0,.38865],cr=[.08319,.58283,0,0,.75623],Zn=[0,.10803,0,0,.27764],Ar=[0,.47534,0,0,.50181],pr=[.18906,.47534,0,0,.50181],Or=[0,.69141,0,0,.50181],ur=[.24982,.74947,0,0,.27764],or=[0,.69141,0,0,.21471],_r=[.25,.75,0,0,.44722],Sr=[0,.64444,0,0,.575],Jr=[.08556,.58556,0,0,.89444],si=[0,.69444,0,0,.89444],br=[0,.68611,0,0,.9],Nn=[0,.68611,0,0,.86944],Rn=[.25,.75,0,0,.575],kr=[.25,.75,0,0,.31944],yr=[0,.69444,0,0,.63889],Hr=[0,.69444,0,0,.31944],jr=[0,.44444,0,0,.63889],Gr=[0,.44444,0,0,.51111],Cr=[0,.69444,0,0,.575],Kr=[.13333,.63333,0,0,.89444],yi=[0,.44444,0,0,.31944],ir=[0,.69444,0,0,.86944],hr=[0,.68611,0,0,.69166],Vr=[0,.68611,0,0,.83055],qr=[0,.68611,0,0,.89444],xi=[0,.69444,0,0,.60278],Ei=[.19444,.69444,0,0,.51111],vi=[0,.69444,0,0,.83055],ci=[-.10889,.39111,0,0,1.14999],Ai=[.19444,.69444,0,0,.575],Li=[.19444,.69444,0,0,1.14999],dr=[.19444,.69444,0,0,.70277],sr=[.05556,.75,0,0,.575],ar=[0,.68611,0,0,.95833],Br=[.08556,.58556,0,0,.76666],gi=[-.02639,.47361,0,0,.575],Di=[0,.44444,0,0,.89444],Ii=[0,.55556,0,0,.76666],ki=[-.10889,.39111,0,0,.89444],wi=[.00222,.50222,0,0,.89444],Pi=[.19667,.69667,0,0,.89444],Gi=[.08556,.58556,0,0,1.14999],Hi=[0,.69444,0,0,.70277],oa=[-.02778,.47222,0,0,.575],li=[.25,.75,0,0,.51111],fi=[-.13889,.36111,0,0,1.14999],Ri=[.19444,.69444,0,0,1.02222],sn=[.12963,.69444,0,0,.89444],rn=[.19444,.69444,0,0,.44722],vn=[0,.64444,.13167,0,.59111],Fn=[.19444,.64444,.13167,0,.59111],_n=[0,.68611,.17208,0,.8961],tr=[.19444,.44444,.105,0,.53222],xn=[0,.44444,.085,0,.82666],jn=[0,.69444,.06709,0,.59111],gr=[0,.69444,.12945,0,.35555],Rr=[0,.69444,0,0,.94888],Wr=[0,.69444,.11472,0,.59111],qn=[0,.68611,.10778,0,.88555],ti=[0,.69444,.07939,0,.62055],di=[0,.69444,.12417,0,.30667],ai=[0,.64444,.13556,0,.51111],Er=[.19444,.64444,.13556,0,.51111],Ur=[0,.68333,.16389,0,.74333],bi=[.19444,.43056,.08847,0,.46],pi=[0,.43056,.07514,0,.71555],Si=[0,.69444,.06646,0,.51111],pa=[0,.69444,0,0,.83129],Aa=[0,.69444,.1225,0,.51111],Ha=[0,.68333,.09403,0,.76666],Pa=[0,.68333,.11111,0,.76666],Po=[0,.69444,.06961,0,.51444],Ua=[0,.69444,0,0,.27778],ba=[.25,.75,0,0,.38889],Xi=[0,.64444,0,0,.5],Ka=[0,.69444,0,0,.77778],so=[0,.68333,0,0,.75],lo=[0,.68333,0,0,.77778],co=[0,.68333,0,0,.68056],Wa=[0,.68333,0,0,.72222],xa=[.25,.75,0,0,.5],wa=[.25,.75,0,0,.27778],Ki=[0,.69444,0,0,.5],uo=[0,.69444,0,0,.55556],Ho=[0,.43056,0,0,.44445],To=[0,.43056,0,0,.5],Ni=[.19444,.43056,0,0,.55556],Bi=[0,.43056,0,0,.55556],Qi=[.08333,.58333,0,0,.77778],Ta=[0,.43056,0,0,.27778],ea=[0,.66786,0,0,.27778],ja=[0,.69444,0,0,.75],Ga=[0,.66786,0,0,.5],ho=[0,.68333,0,0,.625],Za=[.19444,.69444,0,0,.44445],go=[0,.69444,0,0,.72222],vo=[.19444,.69444,0,0,.5],Oa=[.19444,.69444,0,0,1],bl=[.011,.511,0,0,1.126],Xo=[.19444,.69444,0,0,.61111],Js=[.05556,.75,0,0,.5],Kl=[0,.68333,0,0,.83334],Wl=[.0391,.5391,0,0,.66667],Cs=[-.05555,.44445,0,0,.5],Mc=[0,.43056,0,0,.77778],as=[0,.55556,0,0,.66667],xl=[-.03625,.46375,0,0,.77778],Qo=[-.01688,.48312,0,0,.77778],os=[.0391,.5391,0,0,1],Wi=[0,.69444,0,0,.61111],Zi=[-.03472,.46528,0,0,.5],Ji=[.25,.75,0,0,.44445],ro=[-.14236,.35764,0,0,1],Ra=[.244,.744,0,0,.412],Ao=[.19444,.69444,0,0,.88889],wo=[.12963,.69444,0,0,.77778],Ya=[.19444,.69444,0,0,.38889],Oo=[.011,.511,0,0,1.638],Ro=[.19444,.69444,0,0,0],ko=[0,.44444,0,0,.575],ss=[.19444,.44444,0,0,.575],jl=[0,.68611,0,0,.75555],wl=[0,.69444,0,0,.66759],Mu=[0,.68611,0,0,.80555],Au=[0,.68611,.08229,0,.98229],Zl=[0,.68611,0,0,.76666],Rd=[0,.44444,0,0,.58472],Ac=[.19444,.44444,0,0,.6118],Sl=[.19444,.43056,0,0,.5],ku=[0,.68333,.02778,.08334,.76278],kc=[0,.68333,.08125,.05556,.83125],qs=[0,.43056,0,.05556,.48472],Vl=[.19444,.43056,0,.08334,.51702],Bu=[.25,.75,0,0,.42778],Na=[0,.69444,0,0,.55],ls=[0,.69444,0,0,.73334],Es=[0,.69444,0,0,.79445],Nd=[0,.69444,0,0,.51945],Ul=[0,.69444,0,0,.70278],Bc=[0,.69444,0,0,.76389],$s=[.25,.75,0,0,.34306],el=[0,.69444,0,0,.56111],Fd=[0,.69444,0,0,.25556],Gl=[.19444,.45833,0,0,.56111],Lu=[0,.45833,0,0,.56111],Ms=[0,.69444,0,0,.30556],Du=[0,.69444,0,0,.58056],As=[0,.69444,0,0,.67223],tl=[0,.69444,0,0,.85556],cs=[0,.69444,0,0,.55834],So=[0,.65556,.11156,0,.5],ks=[0,.69444,.08094,0,.70834],Lc=[.17014,0,0,0,.44445],Iu=[0,.69444,.0799,0,.5],Pu=[0,.69444,0,0,.73752],_d=[0,.69444,.09205,0,.5],Bs=[0,.69444,.09031,0,.77778],us=[0,.69444,.07816,0,.27778],zd=[0,.69444,.00316,0,.5],Hd=[.19444,.69444,0,0,.83334],Kd=[.05556,.75,0,0,.83334],Wd=[0,.75,0,0,.5],jd=[.125,.08333,0,0,.27778],Zd=[0,.08333,0,0,.27778],ma=[0,.65556,0,0,.5],ka=[0,.69444,0,0,.47222],da=[0,.69444,0,0,.66667],Fa=[0,.69444,0,0,.59722],nl=[0,.69444,0,0,.54167],Tu=[0,.69444,0,0,.70834],Yl=[.25,.75,0,0,.28889],Ou=[0,.69444,0,0,.51667],Vd=[0,.44444,0,0,.44445],Ud=[.19444,.44444,0,0,.51667],Dc=[0,.44444,0,0,.38333],Ru=[0,.44444,0,0,.51667],Ic=[0,.69444,0,0,.83334],Gd=[.35001,.85,0,0,.45834],Pc=[.35001,.85,0,0,.57778],Tc=[.35001,.85,0,0,.41667],Nu=[.35001,.85,0,0,.58334],Xl=[0,.72222,0,0,.55556],Oc=[1e-5,.6,0,0,.66667],Fu=[1e-5,.6,0,0,.77778],Cl=[.25001,.75,0,0,.94445],Yd=[.306,.805,.19445,0,.47222],Ql=[.30612,.805,.19445,0,.47222],Xa=[.25001,.75,0,0,.83334],rl=[.35001,.85,0,0,.47222],_u=[.25001,.75,0,0,1.11111],zu=[.65002,1.15,0,0,.59722],Co=[.65002,1.15,0,0,.81111],Yi=[.65002,1.15,0,0,.47222],No=[.65002,1.15,0,0,.66667],Ko=[0,.75,0,0,1],ds=[.55001,1.05,0,0,1.27778],Hu=[.862,1.36,.44445,0,.55556],Rc=[.86225,1.36,.44445,0,.55556],il=[.55001,1.05,0,0,1.11111],Nc=[.65002,1.15,0,0,.52778],Fc=[.65002,1.15,0,0,.61111],al=[.55001,1.05,0,0,1.51112],Ku=[.95003,1.45,0,0,.73611],_c=[.95003,1.45,0,0,1.04445],hs=[.95003,1.45,0,0,.52778],Jl=[.95003,1.45,0,0,.75],ql=[0,.75,0,0,1.44445],zc=[.95003,1.45,0,0,.58334],$l=[1.25003,1.75,0,0,.79167],Hc=[1.25003,1.75,0,0,1.27778],Wu=[1.25003,1.75,0,0,.58334],Kc=[1.25003,1.75,0,0,.80556],ec=[0,.825,0,0,1.8889],Wc=[1.25003,1.75,0,0,.63889],jc=[.64502,1.155,0,0,.875],tc=[1e-5,.6,0,0,.875],Zc=[-99e-5,.601,0,0,.66667],Vc=[.64502,1.155,0,0,.66667],Xd=[1e-5,.9,0,0,.88889],ju=[.65002,1.15,0,0,.88889],ol=[.90001,0,0,0,.88889],Uc=[-.00499,.605,0,0,1.05556],sl=[0,.12,0,0,.45],ri=[0,.61111,0,0,.525],Bo=[.08333,.69444,0,0,.525],Zu=[-.08056,.53055,0,0,.525],Qd=[-.05556,.55556,0,0,.525],fo=[0,.43056,0,0,.525],Ba=[.22222,.43056,0,0,.525],nc=[0,0,0,0,.525],Jd={"AMS-Regular":{32:On,65:an,66:Mn,67:an,68:an,69:Mn,70:Ln,71:Dn,72:Dn,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:Dn,76:Mn,77:[0,.68889,0,0,.94445],78:an,79:Un,80:Ln,81:Un,82:an,83:Wn,84:Mn,85:an,86:an,87:[0,.68889,0,0,1],88:an,89:an,90:Mn,107:Wn,160:On,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:Wn,295:Pr,710:Hn,732:Dr,770:Hn,771:Dr,989:Tr,1008:er,8245:[0,.54986,0,0,.275],8463:Pr,8487:an,8498:Wn,8502:Mn,8503:[0,.68889,0,0,.44445],8504:Mn,8513:[0,.68889,0,0,.63889],8592:fr,8594:fr,8602:Jn,8603:Jn,8606:Fr,8608:Fr,8610:Tn,8611:Tn,8619:Ir,8620:Ir,8621:[-.13313,.37788,0,0,1.38889],8622:Jn,8624:Yr,8625:Yr,8630:nr,8631:nr,8634:$r,8635:$r,8638:Qr,8639:Qr,8642:Qr,8643:Qr,8644:$n,8646:$n,8647:$n,8648:Xn,8649:$n,8650:Xn,8651:Fr,8652:Fr,8653:Jn,8654:Jn,8655:Jn,8666:Kn,8667:Kn,8669:[-.13313,.37788,0,0,1],8672:Gn,8674:Gn,8705:[0,.825,0,0,.5],8708:Wn,8709:Tr,8717:[0,.43056,0,0,.42917],8722:fr,8724:[.08198,.69224,0,0,.77778],8726:Tr,8733:Pe,8736:bt,8737:bt,8738:[.03517,.52239,0,0,.72222],8739:In,8740:[.25142,.74111,0,0,.27778],8741:zn,8742:[.25142,.74111,0,0,.5],8756:ke,8757:ke,8764:ze,8765:[-.13313,.37788,0,0,.77778],8769:ze,8770:xl,8774:Ft,8776:Qo,8778:Tr,8782:Re,8783:Re,8785:$r,8786:$r,8787:$r,8790:Pe,8791:on,8796:[.08198,.91667,0,0,.77778],8806:it,8807:it,8808:vt,8809:vt,8812:[.25583,.75583,0,0,.5],8814:Ut,8815:Ut,8816:Ft,8817:Ft,8818:on,8819:on,8822:Cn,8823:Cn,8828:Bn,8829:Bn,8830:on,8831:on,8832:Ut,8833:Ut,8840:Ft,8841:Ft,8842:An,8843:An,8847:Wt,8848:Wt,8858:$r,8859:$r,8861:$r,8862:bn,8863:bn,8864:bn,8865:bn,8872:[0,.69224,0,0,.61111],8873:bt,8874:[0,.69224,0,0,.88889],8876:Ln,8877:Ln,8878:an,8879:an,8882:Wt,8883:Wt,8884:Bn,8885:Bn,8888:[0,.54986,0,0,1.11111],8890:Ni,8891:pt,8892:pt,8901:[0,.54986,0,0,.27778],8903:Tr,8905:Tr,8906:Tr,8907:Pe,8908:Pe,8909:[-.03598,.46402,0,0,.77778],8910:It,8911:It,8912:Wt,8913:Wt,8914:Kt,8915:Kt,8916:ke,8918:Nt,8919:Nt,8920:gn,8921:gn,8922:Zt,8923:Zt,8926:Bn,8927:Bn,8928:Ft,8929:Ft,8934:pn,8935:pn,8936:pn,8937:pn,8938:Ut,8939:Ut,8940:Ft,8941:Ft,8994:He,8995:He,9416:[.15559,.69224,0,0,.90222],9484:Yr,9488:Yr,9492:At,9496:At,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:bn,9633:bn,9650:Dt,9651:Dt,9654:Wt,9660:Dt,9661:Dt,9664:Wt,9674:jt,9733:[.19444,.69224,0,0,.94445],10003:Qt,10016:Qt,10731:jt,10846:[.19444,.75583,0,0,.61111],10877:Bn,10878:Bn,10885:it,10886:it,10887:An,10888:An,10889:qt,10890:qt,10891:$t,10892:$t,10901:Bn,10902:Bn,10933:vt,10934:vt,10935:qt,10936:qt,10937:qt,10938:qt,10949:it,10950:it,10955:En,10956:En,57350:In,57351:zn,57352:Tr,57353:er,57356:vt,57357:vt,57358:mr,57359:Ft,57360:Ft,57361:mr,57366:vt,57367:vt,57368:vt,57369:vt,57370:An,57371:An},"Caligraphic-Regular":{32:On,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:On},"Fraktur-Regular":{32:On,33:[0,.69141,0,0,.29574],34:or,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:wr,41:wr,42:[0,.62119,0,0,.27764],43:cr,44:Zn,45:cr,46:Zn,47:[.24982,.74947,0,0,.50181],48:Ar,49:Ar,50:Ar,51:pr,52:pr,53:pr,54:Or,55:pr,56:Or,57:pr,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:ur,93:ur,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:On,8216:or,8217:or,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:On,33:[0,.69444,0,0,.35],34:xi,35:[.19444,.69444,0,0,.95833],36:sr,37:[.05556,.75,0,0,.95833],38:si,39:Hr,40:_r,41:_r,42:[0,.75,0,0,.575],43:Kr,44:[.19444,.15556,0,0,.31944],45:Dc,46:[0,.15556,0,0,.31944],47:Rn,48:Sr,49:Sr,50:Sr,51:Sr,52:Sr,53:Sr,54:Sr,55:Sr,56:Sr,57:Sr,58:yi,59:[.19444,.44444,0,0,.31944],60:Jr,61:ki,62:Jr,63:[0,.69444,0,0,.54305],64:si,65:Nn,66:[0,.68611,0,0,.81805],67:Vr,68:[0,.68611,0,0,.88194],69:jl,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:br,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:hr,77:[0,.68611,0,0,1.09166],78:br,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:Nn,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:kr,92:Rn,93:kr,94:Cr,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:yr,99:Gr,100:yr,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:yr,105:Hr,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:Hr,109:[0,.44444,0,0,.95833],110:jr,111:ko,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:jr,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:Gr,123:Rn,124:kr,125:Rn,126:[.35,.34444,0,0,.575],160:On,163:[0,.69444,0,0,.86853],168:Cr,172:[0,.44444,0,0,.76666],176:ir,177:Kr,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Kr,216:[.04861,.73472,0,0,.89444],223:Fa,230:[0,.44444,0,0,.83055],247:Kr,248:[.09722,.54167,0,0,.575],305:yi,338:[0,.68611,0,0,1.16944],339:Di,567:[.19444,.44444,0,0,.35139],710:Cr,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Cr,715:Cr,728:Cr,729:Hr,730:ir,732:Cr,733:Cr,915:hr,916:ar,920:qr,923:Mu,926:Zl,928:br,931:Vr,933:qr,934:Vr,936:qr,937:Vr,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:Hr,8217:Hr,8220:xi,8221:xi,8224:Ei,8225:Ei,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:wl,8465:vi,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:vi,8501:Hi,8592:ci,8593:Ai,8594:ci,8595:Ai,8596:ci,8597:Rn,8598:Li,8599:Li,8600:Li,8601:Li,8636:ci,8637:ci,8640:ci,8641:ci,8656:ci,8657:dr,8658:ci,8659:dr,8660:ci,8661:[.25,.75,0,0,.70277],8704:yr,8706:[0,.69444,.06389,0,.62847],8707:yr,8709:sr,8711:ar,8712:Br,8715:Br,8722:Kr,8723:Kr,8725:Rn,8726:Rn,8727:oa,8728:gi,8729:gi,8730:[.18,.82,0,0,.95833],8733:Di,8734:[0,.44444,0,0,1.14999],8736:bt,8739:kr,8741:Rn,8743:Ii,8744:Ii,8745:Ii,8746:Ii,8747:[.19444,.69444,.12778,0,.56875],8764:ki,8768:[.19444,.69444,0,0,.31944],8771:wi,8776:[.02444,.52444,0,0,.89444],8781:wi,8801:wi,8804:Pi,8805:Pi,8810:Gi,8811:Gi,8826:Jr,8827:Jr,8834:Jr,8835:Jr,8838:Pi,8839:Pi,8846:Ii,8849:Pi,8850:Pi,8851:Ii,8852:Ii,8853:Kr,8854:Kr,8855:Kr,8856:Kr,8857:Kr,8866:Hi,8867:Hi,8868:si,8869:si,8900:gi,8901:[-.02639,.47361,0,0,.31944],8902:oa,8968:li,8969:li,8970:li,8971:li,8994:fi,8995:fi,9651:Ri,9657:oa,9661:Ri,9667:oa,9711:Li,9824:sn,9825:sn,9826:sn,9827:sn,9837:[0,.75,0,0,.44722],9838:rn,9839:rn,10216:_r,10217:_r,10815:br,10927:Pi,10928:Pi,57376:Ro},"Main-BoldItalic":{32:On,33:[0,.69444,.11417,0,.38611],34:ti,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:gr,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:vn,49:vn,50:vn,51:vn,52:Fn,53:vn,54:vn,55:Fn,56:vn,57:vn,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Wr,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:_n,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:_n,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:jn,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:tr,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:tr,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:On,168:[0,.69444,.11473,0,.59111],176:Rr,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:xn,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:xn,567:[.19444,.44444,.04611,0,.385],710:jn,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:gr,730:Rr,732:Wr,733:Wr,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:_n,931:[0,.68611,.11431,0,.82666],933:qn,934:[0,.68611,.05632,0,.82666],936:qn,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:gr,8217:gr,8220:[0,.69444,.16772,0,.62055],8221:ti},"Main-Italic":{32:On,33:di,34:Po,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:di,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:ai,49:ai,50:ai,51:ai,52:Er,53:ai,54:ai,55:Er,56:ai,57:ai,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:Aa,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:Ur,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:Ur,79:Ha,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:Ur,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:bi,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:bi,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:On,168:[0,.66786,.10474,0,.51111],176:pa,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:pi,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:pi,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:pa,732:[0,.66786,.11585,0,.51111],733:Aa,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:Ha,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:Ur,931:[0,.68333,.12028,0,.71555],933:Pa,934:[0,.68333,.05986,0,.71555],936:Pa,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:di,8217:di,8220:[0,.69444,.1685,0,.51444],8221:Po,8463:Pr},"Main-Regular":{32:On,33:Ua,34:Ki,35:Hd,36:Js,37:Kd,38:Ka,39:Ua,40:ba,41:ba,42:Wd,43:Qi,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:xa,48:Xi,49:Xi,50:Xi,51:Xi,52:Xi,53:Xi,54:Xi,55:Xi,56:Xi,57:Xi,58:Ta,59:[.19444,.43056,0,0,.27778],60:Nt,61:ze,62:Nt,63:ka,64:Ka,65:so,66:[0,.68333,0,0,.70834],67:Wa,68:[0,.68333,0,0,.76389],69:co,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:so,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:lo,76:ho,77:[0,.68333,0,0,.91667],78:so,79:lo,80:co,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:Wa,85:so,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:so,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:wa,92:xa,93:wa,94:Ki,95:[.31,.12056,.02778,0,.5],97:To,98:uo,99:Ho,100:uo,101:Ho,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:uo,105:ea,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:Ua,109:[0,.43056,0,0,.83334],110:Bi,111:To,112:Ni,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:Bi,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:Ho,123:xa,124:wa,125:xa,126:[.35,.31786,0,0,.5],160:On,163:[0,.69444,0,0,.76909],167:Za,168:Ga,172:[0,.43056,0,0,.66667],176:ja,177:Qi,182:Xo,184:Lc,198:[0,.68333,0,0,.90278],215:Qi,216:[.04861,.73194,0,0,.77778],223:Ki,230:[0,.43056,0,0,.72222],247:Qi,248:[.09722,.52778,0,0,.5],305:Ta,338:[0,.68333,0,0,1.01389],339:Mc,567:[.19444,.43056,0,0,.30556],710:Ki,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:Ki,715:Ki,728:Ki,729:ea,730:ja,732:Ga,733:Ki,915:ho,916:Kl,920:lo,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:so,931:Wa,933:lo,934:Wa,936:lo,937:Wa,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:Ua,8217:Ua,8220:Ki,8221:Ki,8224:Za,8225:Za,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:Pr,8465:go,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:go,8501:Wi,8592:Jn,8593:vo,8594:Jn,8595:vo,8596:Jn,8597:xa,8598:Oa,8599:Oa,8600:Oa,8601:Oa,8614:[.011,.511,0,0,1],8617:bl,8618:bl,8636:Jn,8637:Jn,8640:Jn,8641:Jn,8652:[.011,.671,0,0,1],8656:Jn,8657:Xo,8658:Jn,8659:Xo,8660:Jn,8661:[.25,.75,0,0,.61111],8704:uo,8706:[0,.69444,.05556,.08334,.5309],8707:uo,8709:Js,8711:Kl,8712:Wl,8715:Wl,8722:Qi,8723:Qi,8725:xa,8726:xa,8727:Zi,8728:Cs,8729:Cs,8730:[.2,.8,0,0,.83334],8733:Mc,8734:nr,8736:bt,8739:wa,8741:xa,8743:as,8744:as,8745:as,8746:as,8747:[.19444,.69444,.11111,0,.41667],8764:ze,8768:[.19444,.69444,0,0,.27778],8771:xl,8773:[-.022,.589,0,0,1],8776:Qo,8781:xl,8784:[-.133,.67,0,0,.778],8801:xl,8804:An,8805:An,8810:os,8811:os,8826:Nt,8827:Nt,8834:Nt,8835:Nt,8838:An,8839:An,8846:as,8849:An,8850:An,8851:as,8852:as,8853:Qi,8854:Qi,8855:Qi,8856:Qi,8857:Qi,8866:Wi,8867:Wi,8868:Ka,8869:Ka,8872:[.249,.75,0,0,.867],8900:Cs,8901:[-.05555,.44445,0,0,.27778],8902:Zi,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:Ji,8969:Ji,8970:Ji,8971:Ji,8994:ro,8995:ro,9136:Ra,9137:Ra,9651:Ao,9657:Zi,9661:Ao,9667:Zi,9711:Oa,9824:wo,9825:wo,9826:wo,9827:wo,9837:[0,.75,0,0,.38889],9838:Ya,9839:Ya,10216:ba,10217:ba,10222:Ra,10223:Ra,10229:[.011,.511,0,0,1.609],10230:Oo,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:Oo,10815:so,10927:An,10928:An,57376:Ro},"Math-BoldItalic":{32:On,48:ko,49:ko,50:ko,51:ss,52:ss,53:ss,54:Sr,55:ss,56:Sr,57:ss,65:Nn,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:Au,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:jl,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:wl,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:Rd,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:On,915:[0,.68611,.15972,0,.65694],916:ar,920:[0,.68611,.03194,0,.86722],923:Mu,926:[0,.68611,.07458,0,.84125],928:Au,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:Zl,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:Rd,960:[0,.44444,.03704,0,.68241],961:Ac,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:Ac,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:On,48:To,49:To,50:To,51:Sl,52:Sl,53:Sl,54:Xi,55:Sl,56:Xi,57:Sl,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:kc,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:ku,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:qs,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:On,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:ku,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:kc,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:qs,960:[0,.43056,.03588,0,.57003],961:Vl,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:Vl,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:On,33:[0,.69444,0,0,.36667],34:cs,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:Ms,40:Bu,41:Bu,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:Na,49:Na,50:Na,51:Na,52:Na,53:Na,54:Na,55:Na,56:Na,57:Na,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:Nd,64:ls,65:ls,66:ls,67:Ul,68:Es,69:[0,.69444,0,0,.64167],70:Wi,71:ls,72:Es,73:[0,.69444,0,0,.33056],74:Nd,75:Bc,76:Du,77:[0,.69444,0,0,.97778],78:Es,79:Es,80:Ul,81:[.10556,.69444,0,0,.79445],82:Ul,83:Wi,84:ls,85:Bc,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:ls,89:[0,.69444,.0275,0,.73334],90:As,91:$s,93:$s,94:Na,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:el,99:[0,.45833,0,0,.48889],100:el,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:el,105:Fd,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Fd,109:[0,.45833,0,0,.86667],110:Lu,111:[0,.45833,0,0,.55],112:Gl,113:Gl,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:Lu,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:On,168:Na,176:ls,180:Na,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:Na,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:Na,729:Ms,730:ls,732:Na,733:Na,915:Du,916:[0,.69444,0,0,.91667],920:tl,923:As,926:ls,928:Es,931:Es,933:tl,934:Es,936:tl,937:Es,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Ms,8217:Ms,8220:cs,8221:cs},"SansSerif-Italic":{32:On,33:[0,.69444,.05733,0,.31945],34:zd,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:us,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:jd,45:[0,.44444,.01946,0,.33333],46:Zd,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:da,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:ks,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:nl,77:[0,.69444,.08094,0,.875],78:ks,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:Iu,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:On,168:[0,.67937,.06385,0,.5],176:Pu,184:Lc,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Iu,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:_d,715:Ki,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:Pu,732:[0,.67659,.08826,0,.5],733:_d,915:[0,.69444,.13372,0,.54167],916:Ic,920:[0,.69444,.07555,0,.77778],923:Wi,926:[0,.69444,.12816,0,.66667],928:ks,931:[0,.69444,.11983,0,.72222],933:Bs,934:[0,.69444,.04603,0,.72222],936:Bs,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:us,8217:us,8220:[0,.69444,.14205,0,.5],8221:zd},"SansSerif-Regular":{32:On,33:[0,.69444,0,0,.31945],34:Ki,35:Hd,36:Js,37:Kd,38:[0,.69444,0,0,.75834],39:Ua,40:ba,41:ba,42:Wd,43:Qi,44:jd,45:[0,.44444,0,0,.33333],46:Zd,47:xa,48:ma,49:ma,50:ma,51:ma,52:ma,53:ma,54:ma,55:ma,56:ma,57:ma,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:ka,64:da,65:da,66:da,67:yr,68:[0,.69444,0,0,.72223],69:Fa,70:[0,.69444,0,0,.56945],71:da,72:Tu,73:Ua,74:ka,75:[0,.69444,0,0,.69445],76:nl,77:[0,.69444,0,0,.875],78:Tu,79:[0,.69444,0,0,.73611],80:yr,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:uo,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:da,89:[0,.69444,.025,0,.66667],90:Wi,91:Yl,93:Yl,94:Ki,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:Ou,99:Vd,100:Ou,101:Vd,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:Ou,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:Ru,111:[0,.44444,0,0,.5],112:Ud,113:Ud,114:[0,.44444,.01389,0,.34167],115:Dc,116:[0,.57143,0,0,.36111],117:Ru,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:On,168:[0,.67937,0,0,.5],176:da,184:Lc,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:Ki,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:Ki,715:Ki,728:Ki,729:[0,.67937,0,0,.27778],730:da,732:[0,.67659,0,0,.5],733:Ki,915:nl,916:Ic,920:Ka,923:Wi,926:da,928:Tu,931:go,933:Ka,934:go,936:Ka,937:go,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:Ua,8217:Ua,8220:Ki,8221:Ki},"Script-Regular":{32:On,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:On},"Size1-Regular":{32:On,40:Gd,41:Gd,47:Pc,91:Tc,92:Pc,93:Tc,123:Nu,125:Nu,160:On,710:Xl,732:Xl,770:Xl,771:Xl,8214:[-99e-5,.601,0,0,.77778],8593:Oc,8595:Oc,8657:Fu,8659:Fu,8719:Cl,8720:Cl,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:Ql,8748:Yd,8749:Yd,8750:Ql,8896:Xa,8897:Xa,8898:Xa,8899:Xa,8968:rl,8969:rl,8970:rl,8971:rl,9168:Zc,10216:rl,10217:rl,10752:_u,10753:_u,10754:_u,10756:Xa,10758:Xa},"Size2-Regular":{32:On,40:zu,41:zu,47:Co,91:Yi,92:Co,93:Yi,123:No,125:No,160:On,710:Ko,732:Ko,770:Ko,771:Ko,8719:ds,8720:ds,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:Rc,8748:Hu,8749:Hu,8750:Rc,8896:il,8897:il,8898:il,8899:il,8968:Nc,8969:Nc,8970:Nc,8971:Nc,10216:Fc,10217:Fc,10752:al,10753:al,10754:al,10756:il,10758:il},"Size3-Regular":{32:On,40:Ku,41:Ku,47:_c,91:hs,92:_c,93:hs,123:Jl,125:Jl,160:On,710:ql,732:ql,770:ql,771:ql,8730:[.95003,1.45,0,0,1],8968:zc,8969:zc,8970:zc,8971:zc,10216:Jl,10217:Jl},"Size4-Regular":{32:On,40:$l,41:$l,47:Hc,91:Wu,92:Hc,93:Wu,123:Kc,125:Kc,160:On,710:ec,732:ec,770:ec,771:ec,8730:[1.25003,1.75,0,0,1],8968:Wc,8969:Wc,8970:Wc,8971:Wc,9115:jc,9116:tc,9117:jc,9118:jc,9119:tc,9120:jc,9121:Vc,9122:Zc,9123:Vc,9124:Vc,9125:Zc,9126:Vc,9127:Xd,9128:ju,9129:ol,9130:[0,.3,0,0,.88889],9131:Xd,9132:ju,9133:ol,9143:[.88502,.915,0,0,1.05556],10216:Kc,10217:Kc,57344:Uc,57345:Uc,57680:sl,57681:sl,57682:sl,57683:sl},"Typewriter-Regular":{32:nc,33:ri,34:ri,35:ri,36:Bo,37:Bo,38:ri,39:ri,40:Bo,41:Bo,42:[0,.52083,0,0,.525],43:Zu,44:[.13889,.125,0,0,.525],45:Zu,46:[0,.125,0,0,.525],47:Bo,48:ri,49:ri,50:ri,51:ri,52:ri,53:ri,54:ri,55:ri,56:ri,57:ri,58:fo,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:Bo,92:Bo,93:Bo,94:ri,95:[.09514,0,0,0,.525],96:ri,97:fo,98:ri,99:fo,100:ri,101:fo,102:ri,103:Ba,104:ri,105:ri,106:[.22222,.61111,0,0,.525],107:ri,108:ri,109:fo,110:fo,111:fo,112:Ba,113:Ba,114:fo,115:fo,116:[0,.55358,0,0,.525],117:fo,118:fo,119:fo,120:fo,121:Ba,122:fo,123:Bo,124:Bo,125:Bo,126:ri,127:ri,160:nc,176:ri,184:[.19445,0,0,0,.525],305:fo,567:Ba,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]/,ll=10,po=.25,Gc=1.2,fs=.431,Vu={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[fs,fs,fs],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:[po,po,po],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]},Yc=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ls=5,Uu={"\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 ps(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 Uu)a=Uu[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 Xc={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]},cl={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 El(a){if(cl[a]){const[ye,Se,Ze]=cl[a],ct=`<span class="stretchy" style="height:${Ze}em"><svg width="100%" height="${Ze}em" viewBox="0 0 ${ye} ${Se}" preserveAspectRatio="none" ><path fill="currentcolor" d="${$d[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Ze/2)/100}em;min-width:0">${ct}</span>`}const[y,b,E,ee]=Xc[a];let re,ae;const pe=E/1e3;y.length===3?(re=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],ae=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(re=["slice-1-of-2","slice-2-of-2"],ae=["xMinYMin","xMaxYMin"]):(re=["slice-1-of-1"],ae=[ee]);const me=y.map((ye,Se)=>`<span class="${re[Se]}" style=height:${pe}em><svg width=400em height=${pe}em viewBox="0 0 400000 ${E}" preserveAspectRatio="${ae[Se]} slice"><path fill="currentcolor" d="${$d[ye]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${pe}em;min-width:${b}em;">${me}</span>`}function eh(a){return Xc[a]?Xc[a][2]/1e3:cl[a][2]}function th(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,ae=ee-56320;E=Qs(2,16)+re*Qs(2,10)+ae,b++}}y.push(E)}return y}var rc=8205,ic=[[rc,1],[65038,2],[127995,5],[129456,4],[917536,96]],Ds,Ml=[127462,127487];function Al(a){var y;if(Ds===void 0){Ds={};for(const b of ic)for(let E=b[0];E<=b[0]+b[1]-1;E++)Ds[E]=!0}return(y=Ds[a])!=null?y:!1}function nh(a){return a>=Ml[0]&&a<=Ml[1]}function rh(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=th(a);let E=0;for(;E<b.length;){const ee=b[E++],re=b[E];if(re===rc){const ae=E-1;for(E+=2;b[E]===rc;)E+=2;y.push(String.fromCodePoint(...b.slice(ae,E-ae+1)))}else if(Al(re)){const ae=E-1;for(;Al(b[E]);)E+=b[E]===rc?2:1;y.push(String.fromCodePoint(...b.slice(ae,2*E-ae-1)))}else nh(ee)?(E+=1,y.push(String.fromCodePoint(...b.slice(E-2,2)))):y.push(String.fromCodePoint(ee))}return y}var ih=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=rh(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 Is(a,y){var b,E,ee,re;const ae=[];let pe=a.next();if(pe&&pe!=="\\relax"){if(pe==="\\noexpand")pe=a.next(),pe&&ae.push(pe);else if(pe==="\\obeyspaces")a.obeyspaces=!0;else if(pe==="\\bgroup")ae.push("<{>");else if(pe==="\\egroup")ae.push("<}>");else if(pe==="\\string"){if(pe=a.next(),pe)if(pe.startsWith("\\"))for(const me of pe)ae.push(me==="\\"?"\\backslash":me);else pe==="<{>"?ae.push("\\{"):pe==="<space>"?ae.push("~"):pe==="<}>"&&ae.push("\\}")}else if(pe==="\\csname"){for(;a.peek()==="<space>";)a.next();let me="",ye=!1,Se=[];do{if(Se.length===0)if(/^#[\d?@]$/.test(a.peek())){const Ze=a.get().slice(1);Se=ms((E=(b=y==null?void 0:y(Ze))!=null?b:y==null?void 0:y("?"))!=null?E:"\\placeholder{}",y),pe=Se[0]}else pe=a.next(),Se=pe?[pe]:[];ye=Se.length===0,!ye&&pe==="\\endcsname"&&(ye=!0,Se.shift()),ye||(ye=pe==="<$>"||pe==="<$$>"||pe==="<{>"||pe==="<}>"||typeof pe=="string"&&pe.length>1&&pe.startsWith("\\")),ye||(me+=Se.shift())}while(!ye);me&&ae.push("\\"+me),ae.push(...Se)}else if(pe!=="\\endcsname")if(pe.length>1&&pe.startsWith("#")){const me=pe.slice(1);ae.push(...ms((re=(ee=y==null?void 0:y(me))!=null?ee:y==null?void 0:y("?"))!=null?re:"\\placeholder{}",y))}else ae.push(pe)}return ae}function ms(a,y=null){const b=[];let E="";for(const ae of a.toString().split(/\r?\n/)){E&&b.push(E),E=" ";const pe=ae.match(/((?:\\%)|[^%])*/);pe!==null&&b.push(pe[0])}const ee=new ih(Qe(b.join(""))),re=[];do re.push(...Is(ee,y));while(!ee.end());return re}function Ti(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 sa(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:Ti([a,...y.map(b=>`{${b}}`)])}function Ps(a){return Ti(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var ah=class Od{constructor(y){Od._registry[y]=this}static createAtom(y,b,E){return Od._registry[y].createAtom(b,qe(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 oh(y)){const ae=Od._registry[re[0].mode];ee.push(...ae.serialize(re,b))}return Ti(ee)}return Ti(ef(y,b))}static getFont(y,b,E){return Od._registry[y].getFont(b,E)}};ah._registry={};var Lo=ah;function oh(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 Sa(a,y){const b=[];let E=[],ee;for(const re of a)if(re.type!=="first"&&re.style){let ae;y==="variant"?(ae=re.style.variant,re.style.variantStyle&&re.style.variantStyle!=="up"&&(ae+="-"+re.style.variantStyle)):ae=re.style[y],ae===ee?E.push(re):(E.length>0&&b.push(E),E=[re],ee=ae)}return E.length>0&&b.push(E),b}function Gu(a,y){var b;const{parent:E}=a[0],ee=E==null?void 0:E.computedStyle.color,re=[];for(const ae of oh(a)){const pe=y.defaultMode;for(const me of Sa(ae,"color")){const ye=me[0].computedStyle,Se=Lo._registry[me[0].mode].serialize(me,Ce(be({},y),{defaultMode:pe==="text"?"text":"math"}));!y.skipStyles&&ye.color&&ye.color!=="none"&&(!E||ee!==ye.color)?re.push(sa("\\textcolor",(b=ye.verbatimColor)!=null?b:ye.color,Ti(Se))):re.push(Ti(Se))}}return re}function $h(a,y){const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.backgroundColor;return Sa(a,"backgroundColor").map(ee=>{var re;if(ee.length>0||ee[0].type!=="box"){const ae=ee[0].computedStyle;if(ae.backgroundColor&&ae.backgroundColor!=="none"&&(!b||E!==ae.backgroundColor))return sa("\\colorbox",(re=ae.verbatimBackgroundColor)!=null?re:ae.backgroundColor,Ti(Gu(ee,Ce(be({},y),{defaultMode:"text"}))))}return Ti(Gu(ee,y))})}function ef(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 Sa(a,"fontSize")){const ae=re[0].computedStyle.fontSize,pe=$h(re,y);pe&&(ae&&ae!=="auto"&&(!b||E!==ae)?ee.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][ae],...pe):ee.push(...pe))}return ee}function Yu(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 kl(a){if(a.length===0)return"ord";const y=Yu(a[0].type),b=Yu(a[a.length-1].type);return y&&y===b?y:"ord"}function Bl(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 Mr=class Ep{constructor(y,b){var E,ee,re,ae,pe;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:Ie(y)?this.children=y.filter(ye=>ye!==null):y&&y instanceof Ep&&(this.children=[y]),this.children)for(const ye of this.children)ye.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 me=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(me=(pe=Lo.getFont((ae=b.mode)!=null?ae:"math",this,Ce(be({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?pe:void 0),me||(me="Main-Regular"),this._height=0,this._depth=0,this._width=0,this.hasExplicitWidth=!1,this.skew=0,this.italic=0,this.maxFontSize=0,this.scale=1,(b==null?void 0:b.maxFontSize)!==void 0&&(this.maxFontSize=b.maxFontSize),ac(this,me)}set atomID(y){y===void 0||y.length===0||(this.id=y)}selected(y){if(this.isSelected!==y&&(this.isSelected=y,this.children))for(const b of this.children)b.selected(y)}setStyle(y,b,E){if(b===void 0)return;const ee=Bl(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=Bl(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"]=Bl(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"]=Bl(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"]=Bl(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=Ht(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 Et of this.children)re+=Et.toMarkup();let ae="";if(this.svgBody)ae=El(this.svgBody);else if(this.svgOverlay){ae='<span style="',ae+="display: inline-block;",ae+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,ae+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,ae+='">',ae+=re,ae+="</span>",ae+='<svg style="position:absolute;overflow:visible;',ae+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const Et=(b=this.cssProperties)==null?void 0:b.padding;Et?(ae+=`top:${Et};`,ae+=`left:${Et};`,ae+=`width:calc(100% - 2 * ${Et} );`):ae+="top:0;left:0;width:100%;",ae+="z-index:2;",ae+='"',this.svgStyle&&(ae+=this.svgStyle),ae+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,ae+=`>${this.svgOverlay}</svg>`}let pe="";const me=this.classes.split(" ");me.push((E={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?E:""),this.caret==="latex"&&me.push("ML__latex-caret"),this.isSelected&&me.push("ML__selected");const ye=me.length===1?me[0]:me.filter((Et,Rt,Pn)=>Et.length>0&&Pn.indexOf(Et)===Rt).join(" ");if(ye.length>0&&(pe+=` class="${ye}"`),this.id&&(pe+=` data-atom-id=${this.id}`),this.cssId&&(pe+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(pe+=" "+Object.keys(this.attributes).map(Et=>`${Et}="${this.attributes[Et]}"`).join(" ")),this.htmlData){const Et=this.htmlData.split(",");for(const Rt of Et){const Pn=Rt.match(/([^=]+)=(.+$)/);if(Pn){const xr=Pn[1].trim().replace(/ /g,"-");xr&&(pe+=` data-${xr}="${Pn[2]}" `)}else{const xr=Rt.trim().replace(/ /g,"-");xr&&(pe+=` data-${xr} `)}}}const Se=(ee=this.cssProperties)!=null?ee:{};this.hasExplicitWidth&&Se.width===void 0&&(Se.width=`${Math.ceil(this._width*100)/100}em`);const Ze=Object.keys(Se).map(Et=>`${Et}:${Se[Et]}`);if(this.scale!==void 0&&this.scale!==1&&(re.length>0||ae.length>0)&&Ze.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const Et=this.htmlStyle.split(";");let Rt="";for(const Pn of Et){const xr=Pn.match(/([^=]+):(.+$)/);if(xr){const kn=xr[1].trim().replace(/ /g,"-");kn&&(Rt+=`${kn}:${xr[2]};`)}}Rt&&(pe+=` style="${Rt}"`)}Ze.length>0&&(pe+=` style="${Ze.join(";")}"`);let ct="";return pe.length>0||ae.length>0?ct=`<span${pe}>${re}${ae}</span>`:ct=re,this.caret==="text"?ct+='<span class="ML__text-caret"></span>':this.caret==="math"&&(ct+='<span class="ML__caret"></span>'),ct}tryCoalesceWith(y){if(this.svgBody||!this.value||y.svgBody||!y.value)return!1;const b=this.children&&this.children.length>0,E=y.children&&y.children.length>0;if(b||E)return!1;if(y.cssProperties||this.cssProperties){for(const me of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&me in y.cssProperties||this.cssProperties&&me in this.cssProperties)return!1}const ee=this.cssProperties?Object.keys(this.cssProperties).length:0,re=y.cssProperties?Object.keys(y.cssProperties).length:0;if(ee!==re)return!1;if(ee>0){for(const me of Object.keys(this.cssProperties))if(this.cssProperties[me]!==y.cssProperties[me])return!1}const ae=this.classes.trim().replace(/\s+/g," ").split(" "),pe=y.classes.trim().replace(/\s+/g," ").split(" ");if(ae.length!==pe.length)return!1;ae.sort(),pe.sort();for(const[me,ye]of ae.entries())if(ye==="vertical-separator"||ye!==pe[me])return!1;return this.value+=y.value,this.height=Math.max(this.height,y.height),this.depth=Math.max(this.depth,y.depth),this._width=this._width+y._width,this.maxFontSize=Math.max(this.maxFontSize,y.maxFontSize),this.italic=y.italic,!0}};function Xu(a){if(!a||a.length===0)return[];a[0].children=Xu(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=Xu(a[b].children),y.push(a[b]));return y}function Qc(a){return a.children&&(a.children=Xu(a.children)),a}function Jc(a,y){if(!a)return new Mr(null,y);const b=new Mr(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 Mr(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 Mr(E,Ce(be({},y),{type:"lift"}))}function Wo(a){const y=eh(a)/2,b=new Mr(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function ac(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=ps(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 ae of a.children)ae.height>E&&(E=ae.height),ae.depth>ee&&(ee=ae.depth),re=Math.max(re,(b=ae.maxFontSize)!=null?b:0);a.height=E,a.depth=ee,a._width=a.children.reduce((ae,pe)=>ae+pe.width,0),a.maxFontSize=re}}function qc(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 ae=1;ae<y.length;ae++){const pe=y[ae],me=-pe.shift-re-pe.box.depth,ye=me-(b.box.height+b.box.depth);re=re+me,E.push(ye),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 oc(a){var y;const[b,E]=qc(a);if(!b)return[[],0,0];const ee=new Mr(null,{classes:"pstrut"});let re=0;for(const Rt of b)if(typeof Rt!="number"){const Pn=Rt.box;re=Math.max(re,Pn.maxFontSize,Pn.height)}re+=2,ee.height=re,ee.setStyle("height",re,"em");const ae=[];let pe=E,me=E,ye=E,Se=0;for(const Rt of b){if(typeof Rt=="number")ye+=Rt;else{const Pn=Rt.box,xr=(y=Rt.classes)!=null?y:[],kn=new Mr([ee,Pn],{classes:xr.join(" "),style:Rt.style});Pn.setStyle("height",Pn.height+Pn.depth,"em"),Pn.setStyle("display","inline-block"),kn.setStyle("top",-re-ye-Pn.depth,"em"),Rt.marginLeft&&kn.setStyle("margin-left",Rt.marginLeft,"em"),Rt.marginRight&&kn.setStyle("margin-right",Rt.marginRight,"em"),ae.push(kn),ye+=Pn.height+Pn.depth,Se=Math.max(Se,kn.width)}pe=Math.min(pe,ye),me=Math.max(me,ye)}ae.forEach(Rt=>{Rt.softWidth=Se});const Ze=new Mr(ae,{classes:"vlist"});if(Ze.softWidth=Se,Ze.height=me,Ze.setStyle("height",me,"em"),pe>=0)return[[new Mr(Ze,{classes:"vlist-r"})],me,-pe];const ct=new Mr(new Mr(null),{classes:"vlist"});ct.height=-pe,ct.setStyle("height",-pe,"em");const Et=new Mr(8203,{classes:"vlist-s",maxFontSize:0});return Et.softWidth=0,Et.height=0,Et.depth=0,[[new Mr([Ze,Et],{classes:"vlist-r"}),new Mr(ct,{classes:"vlist-r"})],me,-pe]}var ta=class extends Mr{constructor(a,y){var b;const[E,ee,re]=oc(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((ae,pe)=>Math.max(ae,pe.width),0)}};function tf(a,y){var b,E,ee,re,ae;const pe=a.metrics,me=new Mr(y.base),ye=(b=y.baseShift)!=null?b:0,Se=(E=y.slant)!=null?E:0;let Ze=0,ct=0;y.above&&(Ze=(ee=y.aboveShift)!=null?ee:Math.max(pe.bigOpSpacing1,pe.bigOpSpacing3-y.above.depth)),y.below&&(ct=(re=y.belowShift)!=null?re:Math.max(pe.bigOpSpacing2,pe.bigOpSpacing4-y.below.height));let Et=null;if(y.below&&y.above){const Rt=pe.bigOpSpacing5+y.below.height+y.below.depth+ct+me.depth+ye;Et=new ta({bottom:Rt,children:[pe.bigOpSpacing5,{box:y.below,marginLeft:-Se,classes:["ML__center"]},ct,{box:me,classes:["ML__center"]},Ze,{box:y.above,marginLeft:Se,classes:["ML__center"]},pe.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)Et=new ta({top:me.height-ye,children:[pe.bigOpSpacing5,{box:y.below,marginLeft:-Se,classes:["ML__center"]},ct,{box:me,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const Rt=me.depth+ye;Et=new ta({bottom:Rt,children:[{box:me,classes:["ML__center"]},Ze,{box:y.above,marginLeft:Se,classes:["ML__center"]},pe.bigOpSpacing5]}).wrap(a)}else{const Rt=me.depth+ye;Et=new ta({bottom:Rt,children:[{box:me},pe.bigOpSpacing5]}).wrap(a)}return new Mr(Et,{type:(ae=y.type)!=null?ae:"op"})}var Qu=7,gs=6,sc=5,Ts=4,ul=3,mo=2,Fo=1,Qa=0,Jo=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(Vu).reduce((ee,re)=>Ce(be({},ee),{[re]:Vu[re][E]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return qo[[Qa,Fo,Qa,Fo,mo,ul,mo,ul][this.id]]}get sub(){return qo[[Qa,Qa,Qa,Qa,mo,mo,mo,mo][this.id]]}get fracNum(){return qo[[Qa,Fo,Qa,Fo,mo,ul,Ts,sc][this.id]]}get fracDen(){return qo[[Qa,Qa,Qa,Qa,mo,mo,Ts,Ts][this.id]]}get cramp(){return qo[[Qa,Qa,mo,mo,Ts,Ts,gs,gs][this.id]]}get isTight(){return this.sizeDelta<0}},dl={7:new Jo(Qu,0,!1),6:new Jo(gs,0,!0),5:new Jo(sc,0,!1),4:new Jo(Ts,0,!0),3:new Jo(ul,-3,!1),2:new Jo(mo,-3,!0),1:new Jo(Fo,-4,!1),0:new Jo(Qa,-4,!0)},qo=Ce(be({},dl),{displaystyle:dl[Qu],textstyle:dl[sc],scriptstyle:dl[ul],scriptscriptstyle:dl[Fo]});function Ll(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:ll,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=Qs(10,y);return Math.round(a.dimension/ll*E*ee)/ee}return a.dimension*E}function Ju(a,y){if(a===null)return 0;const b=Ll(a)/ll;if(Number.isFinite(y)){const E=Qs(10,y);return Math.round(b*E)/E}return b}function qu(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function sh(a){let y=qu(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${qu(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${qu(a.shrink)}`),y}function La(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=sh(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 $o(a,y){return a==null?null:"number"in a?Ce(be({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?Ce(be({},a),{factor:a.factor*y}):Ce(be({},a),{factor:y}):"dimension"in a?Ce(be({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:$o(a.glue,y),shrink:$o(a.shrink,y),grow:$o(a.grow,y)}:a.shrink?{glue:$o(a.glue,y),shrink:$o(a.shrink,y)}:a.grow?{glue:$o(a.glue,y),grow:$o(a.grow,y)}:{glue:$o(a.glue,y)}:null}var nf={"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 Dl(){return be({},nf)}function $c(){return{registers:Dl(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:ot.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:kt,backgroundColorMap:st,getMacro:a=>Ot(a,fn())}}var _i=class Mp{constructor(y,b){var E,ee,re,ae,pe,me,ye,Se,Ze,ct,Et,Rt,Pn,xr,kn;let Qn;y!=null&&y.parent?(this.parent=y.parent,Qn=y.parent,this.registers={}):(Qn=be(be({},$c()),(E=y==null?void 0:y.from)!=null?E:{}),this.registers=Qn.registers),Qn.atomIdsSettings&&(this.atomIdsSettings=be({},Qn.atomIdsSettings)),this.renderPlaceholder=Qn.renderPlaceholder,this.isPhantom=(ae=(re=y==null?void 0:y.isPhantom)!=null?re:(ee=this.parent)==null?void 0:ee.isPhantom)!=null?ae:!1,this.letterShapeStyle=Qn.letterShapeStyle,this.minFontScale=Qn.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(me=(pe=this.parent)==null?void 0:pe.color)!=null?me:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(Se=(ye=this.parent)==null?void 0:ye.backgroundColor)!=null?Se:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((Ze=this.parent)==null?void 0:Ze.size)?this.size=b.fontSize:this.size=(Et=(ct=this.parent)==null?void 0:ct.size)!=null?Et:Ls;let Lr=(Pn=(Rt=this.parent)==null?void 0:Rt.mathstyle)!=null?Pn:qo.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(Qn instanceof Mp)switch(y.mathstyle){case"cramp":Lr=Lr.cramp;break;case"superscript":Lr=Lr.sup;break;case"subscript":Lr=Lr.sub;break;case"numerator":Lr=Lr.fracNum;break;case"denominator":Lr=Lr.fracDen;break}switch(y.mathstyle){case"textstyle":Lr=qo.textstyle;break;case"displaystyle":Lr=qo.displaystyle;break;case"scriptstyle":Lr=qo.scriptstyle;break;case"scriptscriptstyle":Lr=qo.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Lr,this.smartFence=Qn.smartFence,this.placeholderSymbol=Qn.placeholderSymbol,this.colorMap=(xr=Qn.colorMap)!=null?xr:rr=>rr,this.backgroundColorMap=(kn=Qn.backgroundColorMap)!=null?kn:rr=>rr,this.getMacro=Qn.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===Qu||this.mathstyle.id===gs}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(Yc[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 Ju(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?Ce(be({},re),{dimension:E*re.dimension}):"glue"in re?Ce(be({},re),{glue:Ce(be({},re.glue),{dimension:E*re.glue.dimension}),shrink:re.shrink?Ce(be({},re.shrink),{dimension:E*re.shrink.dimension}):void 0,grow:re.grow?Ce(be({},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:Ll(E,b)/ll}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}},Il=["body","above","below","superscript","subscript"];function vs(a){return typeof a=="string"&&Il.includes(a)}function lc(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var Vn=class vl{constructor(y){var b,E,ee,re,ae,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=be({},y.style),this.displayContainsHighlight=(re=y.displayContainsHighlight)!=null?re:!1,this.captureSelection=(ae=y.captureSelection)!=null?ae:!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=lh(b),ae=[];for(const me of re){const ye=me[0].style,Se=ch(y,me,{style:{color:ye.color,backgroundColor:ye.backgroundColor,fontSize:ye.fontSize}});Se&&ae.push(Se)}if(ae.length===0)return null;const pe=((ee=E==null?void 0:E.classes)!=null?ee:"").trim();return ae.length===1&&!pe&&!(E!=null&&E.type)?ae[0].wrap(y):new Mr(ae,{classes:pe,type:E==null?void 0:E.type}).wrap(y)}static serialize(y,b){return Lo.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 vl({type:"mord",value:y,mode:"math"}):new vl(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=be({},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=ed(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=qe(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?Ti([sa(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?Ti([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return Lo.serialize(this.body,Ce(be({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return Lo.serialize(this.above,y)}belowToLatex(y){return Lo.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=Ce(be({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const E=Lo.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=Lo.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(vs(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of Il)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(vs(y)),vs(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 lc(this.parentBranch)?this.parentBranch[0]:-1}get col(){return lc(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=be(be({},(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=be(be({},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(vs(b)),!vs(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 vl({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(vs(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 Il)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=qe(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const E=new _i({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,ae=this.subscript;if(!re&&!ae)return ee;let pe=null,me=null;const ye=(E=b.isCharacterBox)!=null?E:this.isCharacterBox();let Se=0;if(re){const Pn=new _i({parent:y,mathstyle:"superscript"});pe=vl.createBox(Pn,re),ye||(Se=ee.height-y.metrics.supDrop*Pn.scalingFactor)}let Ze=0;if(ae){const Pn=new _i({parent:y,mathstyle:"subscript"});me=vl.createBox(Pn,ae),ye||(Ze=ee.depth+y.metrics.subDrop*Pn.scalingFactor)}let ct;y.isDisplayStyle?ct=y.metrics.sup1:y.isCramped?ct=y.metrics.sup3:ct=y.metrics.sup2;const Et=.5/ll/y.scalingFactor;let Rt=null;if(me&&pe){Se=Math.max(Se,ct,pe.depth+.25*y.metrics.xHeight),Ze=Math.max(Ze,y.metrics.sub2);const Pn=y.metrics.defaultRuleThickness;if(Se-pe.depth-(me.height-Ze)<4*Pn){Ze=4*Pn-(Se-pe.depth)+me.height;const kn=.8*y.metrics.xHeight-(Se-pe.depth);kn>0&&(Se+=kn,Ze-=kn)}const xr=this.isExtensibleSymbol&&ee.italic?-ee.italic:0;Rt=new ta({individualShift:[{box:me,shift:Ze,marginLeft:xr},{box:pe,shift:-Se}]}).wrap(y)}else me&&!pe?(Ze=Math.max(Ze,y.metrics.sub1,me.height-.8*fs),Rt=new ta({shift:Ze,children:[{box:me,marginRight:Et,marginLeft:this.isCharacterBox()?-ee.italic:0}]})):!me&&pe&&(Se=Math.max(Se,ct,pe.depth+.25*fs),Rt=new ta({shift:-Se,children:[{box:pe,marginRight:Et}]}));return new Mr([ee,new Mr(Rt,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const E=this.superscript?vl.createBox(new _i({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ee=this.subscript?vl.createBox(new _i({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!E&&!ee?b.base.wrap(y):tf(y,Ce(be({},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,ae;const pe=(E=this.value)!=null?E:this.body,me=(ee=b==null?void 0:b.boxType)!=null?ee:Yu(this.type);let ye=(re=b==null?void 0:b.classes)!=null?re:"";this.mode==="text"&&(ye+=" ML__text");const Se=typeof pe=="string"||pe===void 0?new Mr(pe!=null?pe:null,{type:me,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:Ce(be({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:ye}):(ae=vl.createBox(y,pe,{type:me,classes:ye}))!=null?ae:new Mr(null);return y.isTight&&(Se.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(Se.italic=0),Se.right=Se.italic,this.bind(y,Se),this.caret&&!this.superscript&&!this.subscript&&(Se.caret=this.caret),Se}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 lh(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 ch(a,y,b){var E,ee,re,ae,pe;if(!y||y.length===0)return null;const me=new _i({parent:a},b.style),ye=!((E=me.atomIdsSettings)!=null&&E.groupNumbers);let Se=[];if(y.length===1){const ct=y[0],Et=ct.render(me);Et&&(ye&&ct.isSelected&&Et.selected(!0),Se=[Et])}else{let ct="",Et=!0;for(const Rt of y){(ee=me.atomIdsSettings)!=null&&ee.groupNumbers&&ct&&(Et&&Rt.isDigit()||!Et&&$u(Rt))&&(me.atomIdsSettings.overrideID=ct);const Pn=Rt.render(me);me.atomIdsSettings&&(me.atomIdsSettings.overrideID=void 0),Pn&&((re=me.atomIdsSettings)!=null&&re.groupNumbers&&((Rt.isDigit()||$u(Rt))&&(!ct||Et!==Rt.isDigit())&&(Et=Rt.isDigit(),ct=(ae=Rt.id)!=null?ae:""),ct&&(!(Rt.isDigit()||$u(Rt))||!Rt.hasEmptyBranch("superscript")||!Rt.hasEmptyBranch("subscript"))&&(ct="")),ye&&Rt.isSelected&&Pn.selected(!0),Se.push(Pn))}}if(Se.length===0)return null;const Ze=new Mr(Se,Ce(be({isTight:me.isTight},b),{type:(pe=b.type)!=null?pe:"lift"}));return Ze.isSelected=Se.every(ct=>ct.isSelected),Ze.wrap(me)}function $u(a){return a.mode==="text"}function ed(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof Vn?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var ys=class Ap extends Vn{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 Ap(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:Gt("text",this.value.codePointAt(0))}};function cc(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let E=0;for(;E<b&&rf(a.ranges[E],y.ranges[E])==="equal";)E++;return E===b?"equal":"different"}}return"different"}function rf(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function Ja(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 Os(a){return typeof a=="number"&&!Number.isNaN(a)}function eu(a){return Array.isArray(a)&&a.length===2}function tu(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function af(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 uh(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,ae=!1,pe=!1,me=!1,ye=!1,Se=!1,Ze=!1,ct=!1,Et=!1,Rt=!1,Pn=!1,xr=!1,kn=a[0],Qn=0;for(;kn!=null&&kn.type&&/^(subsup|placeholder)$/.test(kn.type);)Qn+=1,kn=a[Qn];return b=!kn||kn.type==="first",kn&&(Pn=kn.mode==="text",E=!Pn&&kn.type==="mord"&&he.test(kn.value),ee=!Pn&&kn.type==="mord"&&/\d+$/.test(kn.value),re=!Pn&&kn.isFunction,ae=kn.type==="genfrac",pe=kn.type==="surd",me=kn.type==="mbin",ye=kn.type==="mrel",Se=kn.type==="mop"||kn.type==="operator"||kn.type==="extensible-symbol",Ze=kn.type==="mpunct"||kn.type==="minner",ct=kn.type==="array",Et=kn.type==="mopen",Rt=kn.type==="mclose"||kn.type==="leftright",xr=kn.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")&&ae||y.after.includes("surd")&&pe||y.after.includes("binop")&&me||y.after.includes("relop")&&ye||y.after.includes("operator")&&Se||y.after.includes("punct")&&Ze||y.after.includes("array")&&ct||y.after.includes("openfence")&&Et||y.after.includes("closefence")&&Rt||y.after.includes("text")&&Pn||y.after.includes("space")&&xr?y.value:""}function td(a,y,b){return b?uh(a,b[y]):""}var dh={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\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 uc(a,y){var b;let E=(b=y==null?void 0:y.format)!=null?b:"auto";return E==="auto"&&([E,a]=fh(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",io(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function io(a,y){var b,E,ee;if(!a)return"";let re=!1,ae;const pe=(b=y.inlineShortcuts)!=null?b:dh;if(!re&&(a.startsWith("^")||a.startsWith("_"))&&(ae=Rs(a.slice(1),{inlineShortcuts:pe,noWrap:!0}),a=a[0]+"{"+ae.match+"}",a+=io(ae.rest,y),re=!0),re||(ae=a.match(/^(sqrt|\u221A)(.*)/),ae&&(ae=Rs(ae[2],{inlineShortcuts:pe,noWrap:!0}),a="\\sqrt{"+((E=ae.match)!=null?E:"\\placeholder{}")+"}",a+=io(ae.rest,y),re=!0)),re||(ae=a.match(/^(\\cbrt|\u221B)(.*)/),ae&&(ae=Rs(ae[2],{inlineShortcuts:pe,noWrap:!0}),a="\\sqrt[3]{"+((ee=ae.match)!=null?ee:"\\placeholder{}")+"}",a+=io(ae.rest,y),re=!0)),re||(ae=a.match(/^abs(.*)/),ae&&(ae=Rs(ae[1],{inlineShortcuts:pe,noWrap:!0}),a="\\left|"+ae.match+"\\right|",a+=io(ae.rest,y),re=!0)),re||(ae=a.match(/^["”“](.*?)["”“](.*)/),ae&&(a="\\text{"+ae[1]+"}",a+=io(ae[2],y),re=!0)),re||(ae=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),ae&&(a=hh(ae[1],pe),a+=io(ae[2],y),re=!0)),!re&&/^([fgh])[^a-zA-Z]/.test(a)&&(ae=Rs(a.slice(1),{inlineShortcuts:pe,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+ae.match+"\\right)":a[0]+ae.match,a+=io(ae.rest,y),re=!0),re||(ae=a.match(/^([a-zA-Z]+)(.*)/),ae&&(a=hh(ae[1],pe),a+=io(ae[2],y),re=!0)),!re)if(ae=Rs(a,{inlineShortcuts:pe,noWrap:!0}),ae.match&&ae.rest[0]==="/"){const me=Rs(ae.rest.slice(1),{inlineShortcuts:pe,noWrap:!0});me.match&&(a="\\frac{"+ae.match+"}{"+me.match+"}"+io(me.rest,y)),re=!0}else ae.match&&(a=a.startsWith("(")?"\\left("+ae.match+"\\right)"+io(ae.rest,y):ae.match+io(ae.rest,y),re=!0);return re||(ae=a.match(/^(\s+)(.*)$/),ae&&(a=" "+io(ae[2],y),re=!0)),a}function Rs(a,y){let b="";a=a.trim();let E=a,ee=a.charAt(0),re={"(":")","{":"}","[":"]"}[ee];if(re){let ae=1,pe=1;for(;pe<a.length&&ae>0;)a[pe]===ee&&ae++,a[pe]===re&&ae--,pe++;ae===0?(y.noWrap&&ee==="("?b=io(a.substring(1,pe-1),y):(ee==="{"&&re==="}"&&(ee="\\{",re="\\}"),b="\\left"+ee+io(a.substring(1,pe-1),y)+"\\right"+re),E=a.slice(Math.max(0,pe))):(b=a.substring(1,pe),E="")}else{let ae=a.match(/^([a-zA-Z]+)/);if(ae){let pe=td(null,a,y.inlineShortcuts);if(pe)return pe=pe.replace("_{#?}",""),pe=pe.replace("^{#?}",""),{match:pe,rest:a.slice(pe.length)}}if(ae=a.match(/^([a-zA-Z])/),ae)return{match:ae[1],rest:a.slice(1)};if(ae=a.match(/^(-)?\d+(\.\d*)?/),ae)return{match:ae[0],rest:a.slice(ae[0].length)};/^\\(left|right)/.test(a)||(ae=a.match(/^(\\[a-zA-Z]+)/),ae&&(E=a.slice(ae[1].length),b=ae[1]))}return{match:b,rest:E}}function hh(a,y){let b=td(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var nd=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function Ns(a){const y=a.trim();for(const b of nd)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 fh(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=Ns(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 nu="$$",of="$$",sf=(a,y,b)=>(nd.some(E=>y.startsWith(E[0])&&y.endsWith(E[1]))||(y=`${nu} ${y} ${of}`),y),ph=class qh{constructor(y){qh._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 ae=new DataTransfer;ae.setData("text/plain",E),E=ae}const re=new ClipboardEvent("paste",{clipboardData:E,cancelable:!0});return(ee=b.host)!=null&&ee.dispatchEvent(re)?qh._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]:Ja(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]:Ja(ee.selection);let ae=ee.getAtoms(re);if(ae.every(pe=>pe.mode==="text"||!pe.mode))b.clipboardData.setData("text/plain",ae.filter(pe=>pe instanceof ys).map(pe=>pe.value).join(""));else if(ae.every(pe=>pe.mode==="latex"))b.clipboardData.setData("text/plain",ee.getAtoms(re,{includeChildren:!0}).map(pe=>{var me;return(me=pe.value)!=null?me:""}).join(""));else{let pe;ae.length===1&&ae[0].verbatimLatex!==void 0?pe=ae[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(me){}if(ae.length===1){const me=ae[0];(me.type==="root"||me.type==="group")&&(ae=me.body.filter(ye=>ye.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(ae.map(me=>me.toJson())))}catch(me){}if((E=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&E.ComputeEngine){const me=window.MathfieldElement.computeEngine;if(me)try{const ye=me.jsonSerializationOptions;me.jsonSerializationOptions={metadata:["latex"]};const Se=me.parse(ee.getValue(re,"latex-unstyled"));me.jsonSerializationOptions=ye;const Ze=JSON.stringify(Se.json);Ze&&b.clipboardData.setData("application/json",Ze)}catch(ye){}}}b.preventDefault()}static insert(y,b,E={}){var ee;const re=E.mode==="auto"?y.mode:(ee=E.mode)!=null?ee:y.mode;return qh._modes[re].insert(y,b,E)}onPaste(y,b){return!1}insert(y,b,E){return!1}};ph._modes={};var Ci=ph,lf=[{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","^"]}],rd={"\\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 jo(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function Zo(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 Fs(a){const y=Zo(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function id(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 ad(a,y,b){if(!y)return null;const E=a.field.getBoundingClientRect(),ee=y.right-y.left,re=y.bottom-y.top,ae=Math.ceil(y.left-E.left+a.field.scrollLeft*b),pe=Math.ceil(y.top-E.top);return{left:ae,right:ae+ee,top:pe,bottom:pe+re}}function od(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=od(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 Pl(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?od(re):null,a.atomBoundsCache&&(ee?a.atomBoundsCache.set(y.id,ee):a.atomBoundsCache.delete(y.id)),ee!=null?ee:null}function mh(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,ae=re.offsetWidth;let me=Math.floor(re.getBoundingClientRect().width)/ae;me=isNaN(me)?1:me;const ye=ad(a,Pl(a,ee),me);if(ye){const Se=id(ee);if(E.has(Se)){const Ze=E.get(Se);E.set(Se,{left:Math.min(Ze.left,ye.left),right:Math.max(Ze.right,ye.right),top:Math.min(Ze.top,ye.top),bottom:Math.max(Ze.bottom,ye.bottom)})}else E.set(Se,ye)}}return[...E.values()]}function sd(a,y){return a.model.selection.ranges.reduce((b,E)=>b.concat(...mh(a,E,y)),[])}function ld(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function ru(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 gh=`@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;
|
|
|
}
|
|
|
`,qi=`.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);
|
|
|
}
|
|
|
`,vh=`#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);
|
|
|
}
|
|
|
`,cf=`/* 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;
|
|
|
}
|
|
|
`,Tl=`/* 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);*/
|
|
|
}
|
|
|
`,uf=`.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));
|
|
|
}
|
|
|
`,iu=`: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;
|
|
|
}
|
|
|
`,df=`.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;
|
|
|
}
|
|
|
`,na;function hl(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=qi;break;case"mathfield":y=gh;break;case"environment-popover":y=vh;break;case"suggestion-popover":y=cf;break;case"keystroke-caption":y=Tl;break;case"virtual-keyboard":y=uf;break;case"ui":y=iu;break;case"menu":y=df;break;default:debugger}return y}function Ol(a){return na||(na={}),na[a]||(na[a]=new CSSStyleSheet,na[a].replaceSync(hl(a))),na[a]}var bs;function _o(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(hl(a))),window.document.head.appendChild(b);return}if(bs||(bs={}),((y=bs[a])!=null?y:0)!==0)bs[a]+=1;else{const b=Ol(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],bs[a]=1}}function x(a){if("adoptedStyleSheets"in document&&bs!=null&&bs[a]&&(bs[a]-=1,bs[a]<=0)){const y=na[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var z=class kp extends Vn{constructor(y){var b;super(Ce(be({},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 Ce(be({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const E=new _i({parent:y,mathstyle:"cramp"},this.style),ee=(b=Vn.createBox(E,this.body))!=null?b:new Mr("\u25A2",{style:this.style});let re=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(re=ee.skew);let ae=Math.min(ee.height,fs),pe;if(this.svgAccent)pe=Wo(this.svgAccent),ae=E.metrics.bigOpSpacing1-ae;else if(this.accent){const ye=new Mr(this.accent,{fontFamily:"Main-Regular"});ye.italic=0;const Se=this.accent===8407?" ML__accent-vec":"";pe=new Mr(new Mr(ye),{classes:"ML__accent-body"+Se})}pe=new ta({shift:0,children:[{box:new Mr(ee)},-ae,{box:pe,marginLeft:ee.left+2*re,classes:["ML__center"]}]});const me=new Mr(pe,{type:"lift"});return this.caret&&(me.caret=this.caret),this.bind(E,me.wrap(E)),this.attachSupsub(E,{base:me})}},ne={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\lparen":"\\rparen","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},te=Object.fromEntries(Object.entries(ne).map(([a,y])=>[y,a]));function 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 ae=new Mr(ie(a),{fontFamily:"Main-Regular",isSelected:E.isSelected,classes:"ML__small-delim "+((ee=E.classes)!=null?ee:"")}).wrap(y);return b&&ae.setTop((1-y.scalingFactor)*po),ae}function ve(a,y,b,E,ee){var re,ae;const pe=new _i({parent:E,mathstyle:"textstyle"},ee==null?void 0:ee.style),me=new Mr(ie(a),{fontFamily:`Size${y}-Regular`,isSelected:ee.isSelected,classes:((re=ee.classes)!=null?re:"")+` ML__delim-size${y}`,type:(ae=ee.type)!=null?ae:"ignore"}).wrap(pe);return b&&me.setTop((1-pe.scalingFactor)*po),me}function Ee(a,y,b,E,ee){var re;let ae,pe,me,ye;ae=me=ye=ie(a),pe=null;let Se="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?me=ae=ye=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?me=ae=ye=8741:a==="\\uparrow"?me=ye=9168:a==="\\Uparrow"?me=ye=8214:a==="\\downarrow"?ae=me=9168:a==="\\Downarrow"?ae=me=8214:a==="\\updownarrow"?(ae=8593,me=9168,ye=8595):a==="\\Updownarrow"?(ae=8657,me=8214,ye=8659):a==="["||a==="\\lbrack"?(ae=9121,me=9122,ye=9123,Se="Size4-Regular"):a==="]"||a==="\\rbrack"?(ae=9124,me=9125,ye=9126,Se="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(me=ae=9122,ye=9123,Se="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(ae=9121,me=ye=9122,Se="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(me=ae=9125,ye=9126,Se="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(ae=9124,me=ye=9125,Se="Size4-Regular"):a==="("||a==="\\lparen"?(ae=9115,me=9116,ye=9117,Se="Size4-Regular"):a===")"||a==="\\rparen"?(ae=9118,me=9119,ye=9120,Se="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(ae=9127,pe=9128,ye=9129,me=9130,Se="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(ae=9131,pe=9132,ye=9133,me=9130,Se="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(ae=9127,ye=9129,me=9130,Se="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(ae=9131,ye=9133,me=9130,Se="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(ae=9127,ye=9133,me=9130,Se="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(ae=9131,ye=9129,me=9130,Se="Size4-Regular"):a==="\\surd"?(ae=57345,ye=9143,me=57344,Se="Size4-Regular"):a==="\\ulcorner"?(ae=9484,me=ye=32):a==="\\urcorner"?(ae=9488,me=ye=32):a==="\\llcorner"?(ye=9492,me=ae=32):a==="\\lrcorner"&&(ae=9496,me=ae=32);const Ze=ps(ae,Se),ct=Ze.height+Ze.depth,Et=ps(me,Se),Rt=Et.height+Et.depth,Pn=ps(ye,Se),xr=Pn.height+Pn.depth;let kn=0,Qn=1;if(pe!==null){const to=ps(pe,Se);kn=to.height+to.depth,Qn=2}const Lr=ct+xr+kn,rr=Math.max(0,Math.ceil((y-Lr)/(Qn*Rt))),ii=Lr+rr*Qn*Rt;let ui=po;b&&(ui=ui*E.scalingFactor);const oi=ii/2-ui,zi=.008,$i=[];$i.push({box:new Mr(ye,{fontFamily:Se})}),$i.push(-zi);const zr=new Mr(me,{fontFamily:Se});if(pe===null)for(let to=0;to<rr;to++)$i.push({box:zr});else{for(let to=0;to<rr;to++)$i.push({box:zr});$i.push(-zi),$i.push({box:new Mr(pe,{fontFamily:Se})}),$i.push(-zi);for(let to=0;to<rr;to++)$i.push({box:zr})}$i.push(-zi),$i.push({box:new Mr(ae,{fontFamily:Se})});let Go="";Se==="Size1-Regular"?Go=" delim-size1":Se==="Size4-Regular"&&(Go=" delim-size4");const Vs=new ta({bottom:oi,children:$i},{classes:Go});return new Mr(Vs,Ce(be({},ee!=null?ee:{}),{classes:((re=ee==null?void 0:ee.classes)!=null?re:"")+" ML__delim-mult"}))}var Be=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),We=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),Ct=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),zt=[0,1.2,1.8,2.4,3];function Sn(a,y,b,E){return a===void 0||a==="."?ni(b,E.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),Be.has(a)||Ct.has(a)?ve(a,y,!1,b,E):We.has(a)?Ee(a,zt[y],!1,b,E):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var yn=[{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}],Yn=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],lr=[{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 Nr(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function Xr(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 ae=ps(a,Nr(b[re]));if(ae.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let pe=ae.height+ae.depth;if(b[re].type==="small"&&(b[re].mathstyle==="scriptscriptstyle"?pe*=Math.max(Yc[Math.max(1,E.size-2)],E.minFontScale):b[re].mathstyle==="scriptstyle"&&(pe*=Math.max(Yc[Math.max(1,E.size-1)],E.minFontScale))),pe>y)return b[re]}return b[b.length-1]}function ei(a,y,b,E,ee,re){if(!y||y.length===0||y===".")return ni(ee);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let ae;Ct.has(y)?ae=yn:Be.has(y)?ae=lr:ae=Yn;const pe=Xr(ie(y),b,ae,ee),me=new _i({parent:ee,mathstyle:pe.mathstyle},re==null?void 0:re.style);return pe.type==="small"?de(y,me,E,Ce(be({},re),{type:a})):pe.type==="large"?ve(y,pe.size,E,me,Ce(be({},re),{type:a})):(console.assert(pe.type==="stack"),Ee(y,b,E,me,Ce(be({},re),{type:a})))}function Zr(a,y,b,E,ee,re){if(y===".")return ni(ee,re==null?void 0:re.classes);const ae=po*ee.scalingFactor,pe=901,me=5/ll,ye=Math.max(b-ae,E+ae),Se=Math.max(ye/500*pe,2*ye-me);return ei(a,y,Se,!0,ee,re)}function ni(a,y){const b=new Mr(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new _i({parent:a,mathstyle:"textstyle"}))}var hi=class Bp extends Vn{constructor(y){var b;super({type:"placeholder",command:"\\placeholder",mode:(b=y==null?void 0:y.mode)!=null?b:"math",style:y==null?void 0:y.style}),this.captureSelection=!0}static fromJson(y){return new Bp(y)}toJson(){return super.toJson()}render(y){let b;return this.value=y.placeholderSymbol,typeof y.renderPlaceholder=="function"?b=y.renderPlaceholder(y):b=this.createBox(y),this.caret&&(b.classes+=" ML__placeholder-selected"),b}_serialize(y){return y.skipPlaceholders?"":"\\placeholder{}"}},mi=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],Oi=["cases","dcases","rcases"],ra=["align","align*","aligned","gather","gathered","split"],Va=["array","subequations","eqnarray"];function ha(a){return Va.concat(ra).concat(Oi).concat(mi).includes(a)}function yo(a){return mi.includes(a)}function bo(a){return Oi.includes(a)}function Da(a){return ra.includes(a)}function xo(a,y,b){let E=0;for(const ye of b)"align"in ye&&(E+=1);let ee=0;const re=[];for(const ye of y){let Se=0;for(ee=Math.max(ee,Math.min(ye.length,E));Se<ye.length;){const Ze=[],ct=Math.min(ye.length,Se+E);for(;Se<ct;){const Et=ye[Se];Et.length===0?Ze.push([new Vn({type:"first",mode:a.mode})]):Et[0].type!=="first"?Ze.push([new Vn({type:"first",mode:a.mode}),...Et]):(console.assert(!Et.slice(1).some(Rt=>Rt.type==="first")),Ze.push(Et)),Se+=1}re.push(Ze)}}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 ae=[];for(const ye of re){if(ye.length!==ee)for(let Se=ye.length;Se<ee;Se++)ye.push([new Vn({type:"first",mode:a.mode}),new hi]);ae.push(ye)}let pe=0,me=0;for(const ye of ae){me=0;for(const Se of ye){for(const Ze of Se)Ze.parent=a,Ze.parentBranch=[pe,me];me+=1}pe+=1}return a.isDirty=!0,ae}var Mi=class Lp extends Vn{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=xo(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 Lp(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=Ce(be({},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(lc(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return lc(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(vs(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,ae,pe;const me=new _i({parent:y,mathstyle:this.mathstyleName},this.style),ye=me.getRegisterAsEm("arrayrulewidth"),Se=me.getRegisterAsEm("arraycolsep"),Ze=me.getRegisterAsEm("doublerulesep"),ct=(E=(b=this.arraystretch)!=null?b:me.getRegisterAsNumber("arraystretch"))!=null?E:1;let Et=typeof this.arraycolsep=="number"?this.arraycolsep:Se;this.colSeparationType==="small"&&(Et=.2778*(new _i({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const Rt=ct*Gc,Pn=.7*Rt,xr=.3*Rt;let kn=0;const Qn=[];let Lr=0;const rr=this.array.length;for(let aa=0;aa<rr;++aa){const Ma=this.array[aa];Lr=Math.max(Lr,Ma.length);const no=new _i({parent:me,mathstyle:this.mathstyleName},this.style);let Us=Pn/no.scalingFactor,Gs=xr/no.scalingFactor;const Ys={cells:[],height:0,depth:0,pos:0};for(const Ss of Ma){const e0=(ee=Vn.createBox(no,Ss,{type:"ignore"}))!=null?ee:new Mr(null,{type:"ignore"});Gs=Math.max(Gs,e0.depth),Us=Math.max(Us,e0.height),Ys.cells.push(e0)}let Xs=(re=Ju(this.rowGaps[aa]))!=null?re:0;Xs>0&&(Xs+=xr,Gs=Math.max(Gs,Xs),Xs=0),aa<rr-1&&!yo(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Gs+=me.getRegisterAsEm("jot")),Ys.height=Us,Ys.depth=Gs,kn+=Us,Ys.pos=kn,kn+=Gs+Xs,Qn.push(Ys)}const ii=kn/2+po,ui=[];for(let aa=0;aa<Lr;aa++){const Ma=[];for(const no of Qn){const Us=no.cells[aa];Us.depth=no.depth,Us.height=no.height,Ma.push({box:Us,shift:no.pos-ii})}Ma.length>0&&ui.push(new ta({individualShift:Ma}))}const oi=[];let zi=!1,$i=!1,zr=0,Go=!this.leftDelim;const{colFormat:Vs}=this;for(const aa of Vs){if("align"in aa&&zr>=ui.length)break;if("align"in aa)zi?oi.push(fa(2*Et)):($i||Go)&&oi.push(fa(Et)),oi.push(new Mr(ui[zr],{classes:"col-align-"+aa.align})),zr++,zi=!0,$i=!1,Go=!1;else if("gap"in aa){if(typeof aa.gap=="number")oi.push(fa(aa.gap));else{const Ma=va(y,Qn,ii,aa.gap);Ma&&oi.push(Ma)}zi=!1,$i=!1,Go=!1}else if("separator"in aa){const Ma=new Mr(null,{classes:"vertical-separator"});Ma.height=kn,Ma.setStyle("height",kn,"em"),Ma.setStyle("border-right",`${ye}em ${aa.separator} currentColor`),Ma.setStyle("vertical-align",-(kn-ii),"em");let no=0;$i?no=Ze-ye:zi&&(no=Et-ye),Ma.left=no,oi.push(Ma),zi=!1,$i=!0,Go=!1}}zi&&!this.rightDelim&&oi.push(fa(Et));const rs=new Mr(oi,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(rs.caret=this.caret),this.bind(y,rs);const to=rs.height,Yo=rs.depth,Io=this.bind(y,new Mr([this.bind(y,Zr("open",(ae=this.leftDelim)!=null?ae:".",to,Yo,me,{isSelected:this.isSelected})),rs,this.bind(y,Zr("close",(pe=this.rightDelim)!=null?pe:".",to,Yo,me,{isSelected:this.isSelected}))],{type:"ord"}));return Io?(Io.setStyle("display","inline-block"),this.caret&&(Io.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:Io}))):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(Vn.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}}`),Ti(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 Vn({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(ga(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 ae of re)ae.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(ga(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 ae of re)ae.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 ae of re)ae.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,ga(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,ga(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 ga(a){const y=new Vn({type:"first",mode:a.mode});y.parent=a;const b=new hi;return b.parent=a,[y,b]}function fa(a){const y=new Mr(null,{classes:"arraycolsep"});return y.width=a,y}function va(a,y,b,E){if(!E)return null;const ee=[];for(const re of y){const ae=Vn.createBox(a,E,{type:"ignore"});ae&&(ae.depth=re.depth,ae.height=re.height,ee.push({box:ae,shift:re.pos-b}))}return new ta({individualShift:ee}).wrap(a)}var Ca=class Dp extends Vn{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 Ce(be({},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 ae=Vn.createBox(y,this.body,{type:"lift"});if(!ae)return null;const pe=y.toEm((b=this.offset)!=null?b:{dimension:0});ae.depth+=pe,ae.setStyle("display","inline-block"),ae.setStyle("position","relative"),ae.setStyle("height",Math.floor(100*ae.height+ae.depth)/100,"em"),ae.setStyle("vertical-align",-Math.floor(100*ae.height)/100,"em");const me=new _i({parent:y},this.style),ye=me.toEm((E=this.padding)!=null?E:{register:"fboxsep"}),Se=new Mr(null,{classes:"ML__box"});Se.height=ae.height+ye,Se.depth=ae.depth+ye,Se.setStyle("box-sizing","border-box"),Se.setStyle("position","absolute"),Se.setStyle("top",-ye+.3,"em"),Se.setStyle("left",0),Se.setStyle("height",Se.height+Se.depth,"em"),Se.setStyle("width","100%"),this.backgroundcolor&&Se.setStyle("background-color",(ee=me.toColor(this.backgroundcolor))!=null?ee:"transparent"),this.framecolor&&Se.setStyle("border",`${me.getRegisterAsEm("fboxrule",2)}em solid ${(re=me.toColor(this.framecolor))!=null?re:"black"}`),this.border&&Se.setStyle("border",this.border);const Ze=new Mr([Se,ae],{type:"lift"});return Ze.setStyle("display","inline-block"),Ze.setStyle("position","relative"),Ze.setStyle("line-height",0),Ze.height=ae.height+ye+(pe>0?pe:0),Ze.depth=ae.depth+ye+(pe<0?-pe:0),Ze.setStyle("padding-left",ye,"em"),Ze.setStyle("padding-right",ye,"em"),Ze.setStyle("height",Math.floor(100*(ae.height+ae.depth+2*ye+Math.abs(pe)))/100,"em"),Ze.setStyle("margin-top",-ye,"em"),Ze.setStyle("top",Math.floor(100*(ae.depth-ae.height+2*ye-pe))/100,"em"),Ze.setStyle("vertical-align",Math.floor(100*(ae.depth+2*ye))/100,"em"),this.caret&&(Ze.caret=this.caret),this.attachSupsub(y,{base:Ze})}_serialize(y){return y.skipStyles?Ti([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},fl=class Ip extends Vn{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 Mr(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},Eo=class Pp extends Vn{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new Pp(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},qa=class Tp extends Vn{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 Tp(y.body,y.mode,y.style)}render(y){const b=Vn.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=qe(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},Vi=class Op extends Vn{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"?Ti(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ee]):this.variant==="mleft...mright"?Ti(["\\mleft",(E=this.leftDelim)!=null?E:".",this.bodyToLatex(y),"\\mright",ee]):Ti([!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 _i({parent:y},this.style);console.assert(this.body!==void 0);const re=new _i({parent:y,mathstyle:"textstyle"},this.style),ae=(b=Vn.createBox(ee,this.body,{type:"inner"}))!=null?b:new Mr(null,{type:"inner"}),pe=ae.height/re.scalingFactor,me=ae.depth/re.scalingFactor,ye=[];if(this.leftDelim&&ye.push(this.bind(re,Zr("open",this.leftDelim,pe,me,re,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),ae&&(_a(ae.children,this,ee,pe,me),ye.push(ae)),this.rightDelim){let Et=this.containsCaret?" ML__contains-caret":"",Rt=this.rightDelim;Rt==="?"&&(ee.smartFence?(Rt=this.matchingRightDelim(),Et+=" ML__smart-fence__close"):Rt="."),ye.push(this.bind(re,Zr("close",Rt,pe,me,re,{isSelected:this.isSelected,classes:Et+" ML__close",mode:this.mode,style:this.style})))}let Se=this.variant==="mleft...mright";const Ze=this.leftSibling;Ze&&(!Se&&Ze.isFunction&&(Se=!0),!Se&&Ze.type==="subsup"&&((E=Ze.leftSibling)!=null&&E.isFunction)&&(Se=!0));const ct=new Mr(ye,{type:Se?"close":"inner",classes:"left-right"});return ct.setStyle("margin-top",`${-ae.depth}em`),ct.setStyle("height",`${ae.height+ae.depth}em`),this.caret&&(ct.caret=this.caret),this.bind(ee,ct.wrap(ee))}};function _a(a,y,b,E,ee){if(a)for(let re=0;re<a.length;re++){const ae=a[re];ae.type==="middle"?(a[re]=y.bind(b,Zr("inner",ae.value,E,ee,b,{isSelected:y.isSelected})),a[re].caret=ae.caret,a[re].isSelected=ae.isSelected,a[re].cssId=ae.cssId,a[re].htmlData=ae.htmlData,a[re].htmlStyle=ae.htmlStyle,a[re].attributes=ae.attributes,a[re].cssProperties=ae.cssProperties):ae.children&&_a(ae.children,y,b,E,ee)}}var au=class Rp extends Vn{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 Rp(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=Vn.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},xs=class Np extends Vn{constructor(){super({type:"macro-argument"})}static fromJson(y){return new Np}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},_s=class Fp extends Vn{constructor(y,b,E=!1,ee,re){var ae;super({type:"prompt",mode:(ae=re==null?void 0:re.mode)!=null?ae:"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 _i({parent:y}),E=b.getRegisterAsEm("fboxsep"),ee=E,re=E,ae=Vn.createBox(y,this.body);if(!ae)return null;ae.height||(ae.height=b.metrics.xHeight),ae.setStyle("vertical-align",-ae.height,"em"),this.correctness==="correct"?ae.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&ae.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const pe=new Mr(ae,{type:"ord"});pe.setStyle("display","inline-block"),pe.setStyle("height",ae.height+ae.depth,"em"),pe.setStyle("vertical-align",-re,"em");let me="ML__prompt ";this.locked?me+=" ML__lockedPromptBox ":me+=" ML__editablePromptBox ",this.correctness==="correct"?me+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(me+=" ML__incorrectPromptBox "),this.containsCaret&&(me+=" ML__focusedPromptBox ");const ye=new Mr(null,{classes:me,attributes:{part:"prompt"}});ye.height=pe.height+re,ye.depth=pe.depth+re,ye.width=pe.width+2*ee,ye.setStyle("box-sizing","border-box"),ye.setStyle("position","absolute"),ye.setStyle("height",pe.height+pe.depth+2*re,"em"),ee===0&&ye.setStyle("width","100%"),ee!==0&&(ye.setStyle("width",`calc(100% + ${2*ee}em)`),ye.setStyle("top",E,"em"),ye.setStyle("left",-ee,"em")),(!this.body||this.body.length===1)&&(ye.width=3*ee,ye.setStyle("width",`calc(100% + ${3*ee}em)`),ye.setStyle("left",-1.5*ee,"em"));let Se="";this.correctness==="incorrect"&&(Se+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),Se&&(ye.svgOverlay=Se);const Ze=new Mr([ye,pe],{classes:"ML__prompt-atom"});return Ze.setStyle("position","relative"),Ze.setStyle("display","inline-block"),Ze.setStyle("line-height",0),Ze.height=pe.height+re+.2,Ze.depth=pe.depth+re,Ze.left=ee,Ze.right=ee,Ze.setStyle("height",pe.height+re,"em"),Ze.setStyle("top",pe.depth-pe.height,"em"),Ze.setStyle("vertical-align",pe.depth+re,"em"),Ze.setStyle("margin-left",.5,"em"),Ze.setStyle("margin-right",.5,"em"),this.caret&&(Ze.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:Ze}))}_serialize(y){var b;const E=(b=this.bodyToLatex(y))!=null?b:"";if(y.skipPlaceholders)return E;let ee="\\placeholder";return this.placeholderId&&(ee+=`[${this.placeholderId}]`),this.correctness==="correct"?ee+="[correct]":this.correctness==="incorrect"&&(ee+="[incorrect]"),this.locked&&(ee+="[locked]"),sa(ee,E)}},es=class _p extends Vn{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 Il)y[E]&&b.setChildren(y[E],E);return b}render(y){var b;const E=new _i({parent:y,isPhantom:!0}),ee=this.leftSibling,re=(b=ee.render(E))!=null?b:new Mr(null),ae=new Mr(null);return ae.height=re.height,ae.depth=re.depth,this.attachSupsub(y,{base:ae,isCharacterBox:ee.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function Ia(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var pl=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var E,ee,re,ae;b!=null||(b={}),this.tokens=a,this.context=y instanceof _i&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new _i({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:(ae=b.mathstyle)!=null?ae:"displaystyle",tabular:!1}}beginContext(a){var y,b,E;const ee=this.parsingContext,re={parent:ee,mathlist:[],style:be({},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(be({before:Ps(this.tokens.slice(this.index,this.index+10)),after:Ps(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 be({},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 es({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=qe(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?$a(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new hi({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();Ia(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(Ia(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,ae=/\d/;if(this.match("'"))re=8,ae=/[0-7]/,a=!0;else if(this.match('"'))re=16,ae=/[\dA-F]/,a=!0;else if(this.match("x"))re=16,ae=/[\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(ae);)pe+=this.get();if(!a&&(this.match(".")||this.match(",")))for(pe+=".";this.hasPattern(ae);)pe+=this.get();const me=a?Number.parseInt(pe,re):Number.parseFloat(pe);return Number.isNaN(me)?null:{number:E?-me:me,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()||!Ia(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=Le(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 me=this.scanArgument(pe.type);me||this.onError({code:"missing-argument",arg:a}),b.push(me)}this.beginContext({tabular:y.tabular});const E=[],ee=[];let re=[],ae=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),ae=!0),!ae&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),ae=!0),!ae)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(!ae);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=ae=>ae==="<}>");let y="",b=null,E=[],ee=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=qe(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 qa(y,this.parseMode,this.style);return b.verbatimLatex=Ps(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 Vi("",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(!Ia(a)&&!a.startsWith("\\"))return null;this.next();const y=qe(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 Eo("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new Eo("\\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 Eo(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 Vi(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 Vn({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new Vn({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren($e(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(Ia(a)){const b=Lo.createAtom(this.parseMode,a,be({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=qe(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new Eo(a)];if(b.definitionType==="symbol"){const E=be({},this.style);b.variant&&(E.variant=b.variant),y=new Vn({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 Eo(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 ae=ee.match(/^\s*border\s*:\s*(.*)/);ae?b.border=ae[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"),me=this.scanOptionalArgument("math"),ye=Vn.serialize(me,{defaultMode:"math"});let Se=[],Ze;!Ze&&ye==="correct"?Ze="correct":!Ze&&ye==="incorrect"?Ze="incorrect":ye!==""&&(Se=me);const ct=this.scanOptionalArgument("string")==="locked",Et=this.scanArgument("auto");let Rt;return Et&&Array.isArray(Et)&&Et.length>0?Rt=Et:Et&&typeof Et=="object"&&"group"in Et?Rt=Et.group:Rt=Se,pe?[new _s(pe,Ze,ct,Rt!=null?Rt:Se,{mode:this.parseMode,style:this.style})]:[new hi({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const pe=this.index,me=this.scanLiteralGroup()||this.next();if(!me)return null;if(this.context.registers[me.substring(1)]){const ye=this.scanArgument("string");ye!==null&&(this.context.registers[me.substring(1)]=ye);const Se=Ti([a,Ps(this.tokens.slice(pe,this.index))]);return[new Vn({type:"text",value:"",verbatimLatex:Se})]}}let ee=this.scanMacro(a);if(ee)return[ee];const re=qe(a,this.parseMode);if(!re)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(pe=>new Vn({type:"text",value:pe,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new Eo(a)]);const ae=this.index;if(re.definitionType==="symbol"){const pe=be({},this.style);re.variant&&(pe.variant=re.variant),ee=new Vn({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 me,ye=[];if(re.parse?ye=re.parse(this):[me,ye]=this.scanArguments(re),this.parseMode=pe,re.applyMode&&!re.applyStyle&&!re.createAtom)return $e(ye[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:ye,style:this.style,mode:this.parseMode}),me&&(ee.body=$e(this.scanArgument(me)));else if(typeof re.applyStyle=="function"){const Se=be(be({},this.style),re.applyStyle(a,ye,this.context)),Ze=this.parseMode;if(re.applyMode&&(this.parseMode=re.applyMode),me){const ct=this.style;this.style=Se;const Et=this.scanArgument(me);return this.style=ct,this.parseMode=Ze,$e(Et)}this.style=Se}else ee=new Vn({type:"mord",command:(b=re.command)!=null?b:a,style:be({},this.style),value:a,mode:(E=re.applyMode)!=null?E:this.parseMode})}if(!ee)return null;if(ee instanceof Vn&&ee.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const pe=Ti([a,Ps(this.tokens.slice(ae,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(Ia(a)){const y=Lo.createAtom(this.parseMode,a,be({},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 ys(" "," ",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 ae=1;ae<=ee;ae++){let pe=this.scanLiteralGroup();if(!pe){const me=this.index;this.scanExpression(),pe=Ps(this.tokens.slice(me,this.index))}re[ae]=pe}return new au(a,{expand:b.expand,captureSelection:b.captureSelection,args:E===this.index?null:Ps(this.tokens.slice(E,this.index)),style:this.parsingContext.style,body:$a(b.def,{context:this.context,parseMode:this.parseMode,args:ae=>re[ae],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 $a(a,y){var b,E,ee,re;const ae=(b=y==null?void 0:y.args)!=null?b:void 0,pe=new pl(ms(a,ae),y==null?void 0:y.context,{args:ae,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:{}}),me=[];for(;!pe.end();)me.push(...pe.scan(()=>!1));return me}function t0(a,y){var b;const E=new pl(ms(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 Vn{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const E=ua.go(vr.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=$a(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 Ce(be({},super.toJson()),{arg:this.arg})}render(y){const b=Vn.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}};at(["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,ae=[];;){ee!==a?(re=10,ee=a):re--;var pe=vr.stateMachines[y],me=pe.transitions[b]||pe.transitions["*"];e:for(var ye=0;ye<me.length;ye++){var Se=vr.patterns.match_(me[ye].pattern,a);if(Se){for(var Ze=me[ye].task,ct=0;ct<Ze.action_.length;ct++){var Et;if(pe.actions[Ze.action_[ct].type_])Et=pe.actions[Ze.action_[ct].type_](E,Se.match_,Ze.action_[ct].option);else if(vr.actions[Ze.action_[ct].type_])Et=vr.actions[Ze.action_[ct].type_](E,Se.match_,Ze.action_[ct].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Ze.action_[ct].type_+")"];vr.concatArray(ae,Et)}if(b=Ze.nextState||b,a.length>0){if(Ze.revisit||(a=Se.remainder),!Ze.toContinue)break e}else return ae}}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,ae,pe,me,ye){var Se=function(kn,Qn){if(typeof Qn=="string")return kn.indexOf(Qn)!==0?null:Qn;var Lr=kn.match(Qn);return Lr?Lr[0]:null},Ze=function(kn,Qn,Lr){for(var rr=0;Qn<kn.length;){var ii=kn.charAt(Qn),ui=Se(kn.substr(Qn),Lr);if(ui!==null&&rr===0)return{endMatchBegin:Qn,endMatchEnd:Qn+ui.length};if(ii==="{")rr++;else if(ii==="}"){if(rr===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];rr--}Qn++}return rr>0,null},ct=Se(a,y);if(ct===null||(a=a.substr(ct.length),ct=Se(a,b),ct===null))return null;var Et=Ze(a,ct.length,E||ee);if(Et===null)return null;var Rt=a.substring(0,E?Et.endMatchEnd:Et.endMatchBegin);if(re||ae){var Pn=this.findObserveGroups(a.substr(Et.endMatchEnd),re,ae,pe,me);if(Pn===null)return null;var xr=[Rt,Pn.match_];return{match_:ye?xr.join(""):xr,remainder:Pn.remainder}}else return{match_:Rt,remainder:a.substr(Et.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 ae=a[y][b];if(ae.action_){ae.action_=[].concat(ae.action_);for(var pe=0;pe<ae.action_.length;pe++)typeof ae.action_[pe]=="string"&&(ae.action_[pe]={type_:ae.action_[pe]})}else ae.action_=[];for(var me=y.split("|"),ye=0;ye<me.length;ye++)if(E[ee]==="*")for(var Se in re)re[Se].push({pattern:me[ye],task:ae});else re[E[ee]].push({pattern:me[ye],task:ae})}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||""),ae=vr.patterns.match_("$one lowercase latin letter$ $",a.o||""),pe=y==="-"&&(E&&E.remainder===""||ee||re||ae);pe&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!E&&re&&(a.o="$"+a.o+"$");var me=[];return pe?(vr.concatArray(me,this.output(a)),me.push({type_:"hyphen"})):(E=vr.patterns.match_("digits",a.d||""),b&&E&&E.remainder===""?(vr.concatArray(me,vr.actions["d="](a,y)),vr.concatArray(me,this.output(a))):(vr.concatArray(me,this.output(a)),vr.concatArray(me,vr.actions.bond(a,y,"-")))),me},"a to o":function(a){a.o=a.a,a.a=void 0},"sb=true":function(a){a.sb=!0},"sb=false":function(a){a.sb=!1},"beginsWithBond=true":function(a){a.beginsWithBond=!0},"beginsWithBond=false":function(a){a.beginsWithBond=!1},"parenthesisLevel++":function(a){a.parenthesisLevel++},"parenthesisLevel--":function(a){a.parenthesisLevel--},"state of aggregation":function(a,y){return{type_:"state of aggregation",p1: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 ae in a)ae!=="parenthesisLevel"&&ae!=="beginsWithBond"&&delete a[ae];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 ua={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+=ua._go2(re),re.type_==="1st-level escape"&&(E=!0))}return!y&&!E&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&ua.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:ua._goInner(a.a),b:ua._goInner(a.b),p:ua._goInner(a.p),o:ua._goInner(a.o),q:ua._goInner(a.q),d:ua._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 "+ua._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+ua._goInner(a.p1);break;case"bond":if(y=ua._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{"+ua._goInner(a.p1)+"}{"+ua._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ee+"}{"+ee+"}{"+ee+"}{"+ee+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+ua._goInner(a.p1)+"}{"+ua._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+ua._goInner(a.p1)+"}{"+ua._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+ua._goInner(a.p1)+"}{"+ua._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+ua._goInner(a.p1)+"}_{"+ua._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+ua._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var re={rd:ua._goInner(a.rd),rq:ua._goInner(a.rq)},ae=ua._getArrow(a.r);re.rd||re.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(ae="\\long"+ae,re.rd&&(ae="\\overset{"+re.rd+"}{"+ae+"}"),re.rq&&(a.r==="<-->"?ae="\\underset{\\lower2mu{"+re.rq+"}}{"+ae+"}":ae="\\underset{\\lower6mu{"+re.rq+"}}{"+ae+"}"),ae=" {}\\mathrel{"+ae+"}{} "):(re.rq&&(ae+="[{"+re.rq+"}]"),ae+="{"+re.rd+"}",ae=" {}\\mathrel{\\x"+ae+"}{} "):ae=" {}\\mathrel{\\long"+ae+"}{} ",y=ae;break;case"operator":y=ua._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 M1(a){}function A1(a){}var r0=class Hp extends Vn{constructor(y){super(Ce(be({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new Hp(y)}toJson(){return Ce(be({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new Mr(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=qe(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):sa(this.command,this.value)}},i0=class Kp extends Vn{constructor(y){super(Ce(be({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new Kp(y)}toJson(){return Ce(be({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=Sn(this.value,this.size,y,{classes:{open:"mopen",close:"mclose"}[this.delimType],type:this.delimType,isSelected:this.isSelected});return b?(b=this.bind(y,b),this.caret&&(b.caret=this.caret),b):null}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=qe(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):sa(this.command,this.value)}},cd=class Wp extends Vn{constructor(y,b,E,ee){var re,ae;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=(ae=ee.strokeWidth)!=null?ae:"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 Ce(be({},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=qe(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="",ae="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(re+=ae+'mathbackground="'+this.backgroundcolor+'"',ae=","),this.shadow&&this.shadow!=="auto"&&(re+=ae+'shadow="'+this.shadow+'"',ae=","),this.strokeWidth||this.strokeStyle!=="solid"?(re+=ae+this.borderStyle,ae=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(re+=ae+'mathcolor="'+this.strokeColor+'"',ae=","),re&&(ee+=`[${re}]`)}return sa(ee,this.bodyToLatex(y))}render(y){const b=new _i({parent:y},this.style),E=Vn.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 ae=new Mr(null,{classes:"ML__notation"});let pe=E.height+E.depth+2*re;const me=E.width+2*re;let ye="";if(this.notation.horizontalstrike&&(ye+=this.line(3,50,97,50)),this.notation.verticalstrike&&(ye+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(ye+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(ye+=this.line(3,3,97,97)),this.notation.updiagonalarrow){ye+=this.line(re.toString(),(re+E.depth+E.height).toString(),(re+E.width).toString(),re.toString());const Rt=.03*Math.sqrt(me*me+pe*pe)*1,Pn=E.width*Rt,xr=(E.depth+E.height)*Rt,kn=re+E.width;let Qn=re;Qn+xr-.4*Pn<0&&(Qn=.4*Pn-xr),ye+='<polygon points="',ye+=`${kn},${Qn} ${kn-Pn-.4*xr},${Qn+xr-.4*Pn} `,ye+=`${kn-.7*Pn},${Qn+.7*xr} ${kn-Pn+.4*xr},${Qn+xr+.4*Pn} `,ye+=`${kn},${Qn}`,ye+=`" stroke='none' fill="${this.strokeColor}"`,ye+="/>"}let Se=0;if(this.notation.phasorangle){const ct=a0(b),Et=(E.height+E.depth+2*ct+re).toString(),Rt=(E.height+E.depth)/2;ye+=this.line(re.toString(),Et,(re+Rt+E.width).toString(),Et),ye+=this.line(re.toString(),Et,(re+Rt).toString(),(re-ct).toString()),pe+=ct,Se=Rt,E.left+=pe/2-re}if(this.notation.longdiv){const ct=a0(b);pe+=ct,ye+=this.line(re.toString(),re.toString(),(re+E.width).toString(),re.toString());const Et=.3;Se=Et+ct,E.left+=Et+ct,E.setTop(re+ct),ye+='<path d="',ye+=`M ${re} ${re} a${Et} ${(E.depth+E.height+2*ct)/2}, 0, 1, 1, 0 ${E.depth+E.height+2*ct} "`,ye+=` stroke-width="${am(b)}" stroke="${this.strokeColor}" fill="none"`,ye+="/>"}if(ae.width=E.width+2*re+Se,ae.height=E.height+re,ae.depth=E.depth+re,ae.setStyle("box-sizing","border-box"),ae.setStyle("left",`calc(-${ee} / 2 )`),ae.setStyle("height",`${Math.floor(100*pe)/100}em`),ae.setStyle("top",`calc(${ee} / 2 )`),this.backgroundcolor&&ae.setStyle("background-color",this.backgroundcolor),this.notation.box&&ae.setStyle("border","1px solid red"),this.notation.actuarial&&(ae.setStyle("border-top",this.borderStyle),ae.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(ae.setStyle("border-bottom",this.borderStyle),ae.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(ae.setStyle("border-radius","8px"),ae.setStyle("border",this.borderStyle)),this.notation.circle&&(ae.setStyle("border-radius","50%"),ae.setStyle("border",this.borderStyle)),this.notation.top&&ae.setStyle("border-top",this.borderStyle),this.notation.left&&ae.setStyle("border-left",this.borderStyle),this.notation.right&&ae.setStyle("border-right",this.borderStyle),this.notation.bottom&&ae.setStyle("border-bottom",this.borderStyle),ye){let ct="";this.shadow==="auto"&&(ct+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(ct+=`filter: drop-shadow(${this.shadow})`),ct+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,ct+=' stroke-linecap="round"',this.svgStrokeStyle&&(ct+=` stroke-dasharray="${this.svgStrokeStyle}"`),ae.svgStyle=ct,ae.svgOverlay=ye}const Ze=new Mr([ae,E]);return Ze.setStyle("position","relative"),Ze.setStyle("vertical-align",re,"em"),Ze.setStyle("height",`${Math.floor(100*(E.height+E.depth+2*re))/100}em`),Ze.setStyle("display","inline-block"),Ze.height=ae.height,Ze.depth=ae.depth,Ze.width=ae.width-2*re,Ze.left=re,Ze.right=re,this.caret&&(Ze.caret=this.caret),Ze.wrap(b)}line(y,b,E,ee){return`<line x1="${yh(y)}" y1="${yh(b)}" x2="${yh(E)}" y2="${yh(ee)}" vector-effect="non-scaling-stroke"></line>`}};function yh(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?fs:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var ou=class jp extends Vn{constructor(y,b,E){var ee,re;super(Ce(be({},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),be(be({},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 _i({parent:y,mathstyle:this.mathstyleName},this.style),re=ee.metrics,ae=new _i({parent:ee,mathstyle:this.continuousFraction?"":"numerator"},this.style),pe=this.numerPrefix?new Mr([new Mr(this.numerPrefix),Vn.createBox(ae,this.above)],{isTight:ae.isTight,type:"ignore"}):(b=Vn.createBox(ae,this.above,{type:"ignore"}))!=null?b:new Mr(null,{type:"ignore"}),me=new _i({parent:ee,mathstyle:this.continuousFraction?"":"denominator"},this.style),ye=this.denomPrefix?new Mr([new Mr(this.denomPrefix),Vn.createBox(me,this.below,{type:"ignore"})]):(E=Vn.createBox(me,this.below,{type:"ignore"}))!=null?E:new Mr(null,{type:"ignore"}),Se=this.hasBarLine?re.defaultRuleThickness:0;let Ze,ct=0,Et;ee.isDisplayStyle?(Ze=ae.metrics.num1,ct=Se>0?3*Se:7*Se,Et=me.metrics.denom1):(Se>0?(Ze=ae.metrics.num2,ct=Se):(Ze=ae.metrics.num3,ct=3*re.defaultRuleThickness),Et=me.metrics.denom2);const Rt=[];this.isSelected&&Rt.push("ML__selected");const Pn=pe.depth,xr=ye.height;let kn;if(Se<=0){const oi=Ze-Pn-(xr-Et);oi<ct&&(Ze+=(ct-oi)/2,Et+=(ct-oi)/2),kn=new ta({individualShift:[{box:pe,shift:-Ze,classes:[...Rt,"ML__center"]},{box:ye,shift:Et,classes:[...Rt,"ML__center"]}]}).wrap(ee)}else{const oi=new Mr(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});oi.softWidth=Math.max(pe.width,ye.width),oi.height=Se/2,oi.depth=Se/2;const zi=po+Se/2;Ze<ct+Pn+zi&&(Ze=ct+Pn+zi);const $i=po-Se/2;Et<ct+xr-$i&&(Et=ct+xr-$i),kn=new ta({individualShift:[{box:ye,shift:Et,classes:[...Rt,"ML__center"]},{box:oi,shift:-$i,classes:Rt},{box:pe,shift:-Ze,classes:[...Rt,"ML__center"]}]}).wrap(ee)}const Qn=ee.isDisplayStyle?re.delim1:re.delim2,Lr=this.leftDelim?this.bind(y,ei("open",this.leftDelim,Qn,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):ni(ee,"open");let rr=null;this.continuousFraction?rr=new Mr(null,{type:"close"}):this.rightDelim?rr=this.bind(y,ei("close",this.rightDelim,Qn,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):rr=ni(ee,"close");const ii=new Mr([Lr,kn,rr],{isTight:ee.isTight,type:"inner",classes:"mfrac"}),ui=this.bind(y,ii);return this.caret&&(ui.caret=this.caret),this.attachSupsub(y,{base:ui})}},ao=class Zp extends Vn{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),be({type:"latex",value:this.value},y)}get computedStyle(){return{}}render(y){const b=new Mr(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}},ud=class Vp extends Vn{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new ao(b)),this.skipBoundary=!1}static fromJson(y){return new Vp("")}toJson(){return super.toJson()}render(y){const b=Vn.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:""}},hf=class Up extends Vn{constructor(y,b){super(Ce(be({},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 Up(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 Mr(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-po*y.scalingFactor,ae=ee.italic;ee.setTop(re);let pe=ee;if(this.superscript||this.subscript){const me=(b=this.subsupPlacement)!=null?b:"auto";pe=me==="over-under"||me==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ee,baseShift:re,slant:ae}):this.attachSupsub(y,{base:ee})}return new Mr(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=qe(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)),Ti(E)}},dc=class Gp extends Vn{constructor(y){const b=y.body;super(Ce(be({},y),{type:"overlap",body:typeof b=="string"?[new Vn({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),be(be({},super.toJson()),y)}render(y){const b=Vn.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new Mr([b,new Mr(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},ts=class Yp extends Vn{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?Wo(this.svgBody):Vn.createBox(y,this.body,{type:"ignore"});const E=new _i({parent:y,mathstyle:"scriptstyle"},this.style);let ee=null;this.svgAbove?ee=Wo(this.svgAbove):this.above&&(ee=Vn.createBox(E,this.above,{type:"ignore"}));let re=null;this.svgBelow?re=Wo(this.svgBelow):this.below&&(re=Vn.createBox(E,this.below,{type:"ignore"})),this.paddedBody&&(b=new Mr([ni(y,"open"),b,ni(y,"close")],{type:"ignore"}));let ae=om(y,{base:b,above:ee,below:re,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return ae?(this.subsupPlacement==="over-under"?ae=this.attachLimits(y,{base:ae,type:ae.type}):ae=this.attachSupsub(y,{base:ae}),this.caret&&(ae.caret=this.caret),this.bind(y,ae)):null}};function om(a,y){if(!y.base)return null;if(!y.above&&!y.below){const pe=new Mr(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,ae=["ML__center"];if(y.paddedAboveBelow&&ae.push("ML__label_padding"),y.below&&y.above){const pe=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ee.depth+re;E=new ta({bottom:pe,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:ae},{box:ee,classes:["ML__center"]},b,{box:y.above,classes:ae},a.metrics.bigOpSpacing5]})}else y.below?E=new ta({top:ee.height-re,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:ae},{box:ee,classes:["ML__center"]}]}):y.above&&(E=new ta({bottom:ee.depth+re,children:[{box:ee,classes:["ML__center"]},b,{box:y.above,classes:ae},a.metrics.bigOpSpacing5]}));return new Mr(E,{type:y.type})}var dd=class Xp extends Vn{constructor(y){var b,E,ee,re;super(Ce(be({},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),be(be({},super.toJson()),y)}render(y){const b=new _i({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),Vn.createBox(b,this.body,{classes:"inner"});const E=Vn.createBox(this.isInvisible?b:y,this.body);if(!E)return null;if(this.smashWidth){const ee=new Mr(null,{classes:"fix"});return new Mr([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 ta({firstBaseline:[{box:E}]},{type:E.type}).wrap(y)}},hd=class Qp extends Vn{constructor(y){var b;super(be({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 Mr(this.mode==="math"?null:" ");let E;if(this.width!==void 0)E=new Mr(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 Mr(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=qe(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}{${La(this.width)}}`:`${ee}${La(this.width)}`}},o0=class Jp extends Vn{constructor(y){var b;super(Ce(be({},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(Ce(be({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=qe(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")?sa(`${E}[${this.aboveToLatex(y)}]`,ee):/^[0-9]$/.test(ee)?`${E}${ee}`:sa(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 _i({parent:y,mathstyle:"cramp"},this.style),ee=(b=Vn.createBox(E,this.body,{type:"inner"}))!=null?b:new Mr(null),re=E.scalingFactor,ae=E.metrics.defaultRuleThickness/re,pe=y.isDisplayStyle?fs:ae,me=new Mr(null,{classes:"ML__sqrt-line",style:this.style});me.height=ae,me.softWidth=ee.width;let ye=re*(ae+pe/4);const Ze=Math.max(re*2*pe,ee.height+ee.depth)+ye+ae,ct=new _i({parent:y},this.style),Et=this.bind(ct,new Mr(ei("inner","\\surd",Ze,!1,ct,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!Et)return null;const Rt=Et.height+Et.depth-ae;Rt>ee.height+ee.depth+ye&&(ye=(ye+Rt-(ee.height+ee.depth))/2),Et.setTop(Et.height-ee.height-ye);const Pn=this.bind(y,new ta({firstBaseline:[{box:new Mr(ee)},ye-2*ae,{box:me},ae]})),xr=Vn.createBox(new _i({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!xr){const Lr=new Mr([Et,Pn],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Lr.setStyle("display","inline-block"),Lr.setStyle("height",Lr.height+Lr.depth,"em"),this.caret&&(Lr.caret=this.caret),this.bind(y,Lr)}const kn=new ta({shift:-.6*(Math.max(Et.height,Pn.height)-Math.max(Et.depth,Pn.depth)),children:[{box:xr}]}),Qn=new Mr([new Mr(kn,{classes:"ML__sqrt-index",type:"ignore"}),Et,Pn],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return Qn.height=Et.height,Qn.depth=Et.depth,this.caret&&(Qn.caret=this.caret),this.bind(y,Qn)}},sm=class extends Mr{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 bh(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"){bh(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){pd(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 fd(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 pd(b,(ae,pe)=>{var me,ye,Se;if(!ae)return;const Ze=ae.type,ct=pe.isTight?(me=cm[Ze])!=null?me:null:(ye=lm[Ze])!=null?ye:null,Et=(Se=ct==null?void 0:ct[pe.type])!=null?Se:null;Et===3&&bh(pe,E),Et===4&&bh(pe,ee),Et===5&&bh(pe,re)}),a}function pd(a,y,b=void 0){if(!a)return b;a=[...a];for(const E of a)E.type==="lift"?b=pd(E.children,y,b):E.type==="ignore"?pd(E.children,y):(y(b,E),pd(E.children,y),b=E);return b}var ff=class qp extends Vn{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new Vn({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new qp(Ce(be({},y),{tooltip:Rl(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 Ce(be({},super.toJson()),{tooltip:b})}render(y){const b=Vn.createBox(new _i,this.body);if(!b)return null;const E=new _i({parent:y,mathstyle:"displaystyle"},{fontSize:Ls}),ee=Qc(fd(new Mr(this.tooltip.render(E),{classes:"ML__tooltip-content"}),E)),re=new Mr([ee,b],{classes:"ML__tooltip-container"});return this.caret&&(re.caret=this.caret),this.bind(y,re)}},hc=class $p extends Vn{constructor(y,b){super(Ce(be({},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 Mr(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 Mr(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=qe(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)),Ti(E)}};function Rl(a){if(Ie(a))return a.map(E=>Rl(E));if(typeof a=="string")return Vn.fromJson(a);a=be({},a);for(const E of Il)a[E]&&(a[E]=Rl(a[E]));a.args&&(a.args=dm(a.args)),a.array&&(a.array=Rl(a.array));const y=a.type;let b;y==="accent"&&(b=z.fromJson(a)),y==="array"&&(b=Mi.fromJson(a)),y==="box"&&(b=Ca.fromJson(a)),y==="chem"&&(b=n0.fromJson(a)),y==="composition"&&(b=fl.fromJson(a)),y==="delim"&&(b=r0.fromJson(a)),y==="enclose"&&(b=cd.fromJson(a)),y==="error"&&(b=Eo.fromJson(a)),y==="extensible-symbol"&&(b=hf.fromJson(a)),y==="genfrac"&&(b=ou.fromJson(a)),y==="group"&&(b=qa.fromJson(a)),y==="latex"&&(b=ao.fromJson(a)),y==="latexgroup"&&(b=ud.fromJson(a)),y==="leftright"&&(b=Vi.fromJson(a)),y==="macro"&&(b=au.fromJson(a)),y==="macro-argument"&&(b=xs.fromJson(a)),y==="operator"&&(b=hc.fromJson(a)),y==="overlap"&&(b=dc.fromJson(a)),y==="overunder"&&(b=ts.fromJson(a)),y==="placeholder"&&(b=hi.fromJson(a)),y==="prompt"&&(b=_s.fromJson(a)),y==="phantom"&&(b=dd.fromJson(a)),y==="sizeddelim"&&(b=i0.fromJson(a)),y==="spacing"&&(b=hd.fromJson(a)),y==="subsup"&&(b=es.fromJson(a)),y==="surd"&&(b=o0.fromJson(a)),y==="text"&&(b=ys.fromJson(a)),y==="tooltip"&&(b=ff.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=Vn.fromJson(a));for(const E of Il)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=>Rl(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>Rl(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"]},pf={"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]$/,hm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,fm=[/^[a-z]$/,/^[A-Z]$/,l0,hm],pm={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},mm=class extends Lo{constructor(){super("math")}createAtom(a,y,b){var E,ee,re,ae;if(y===null)return new Vn({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 ye=new Vn({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&&(ye.isFunction=!0),a.startsWith("\\")&&(ye.verbatimLatex=a),ye}const me=new Vn({type:"mord",mode:"math",command:(ae=y.command)!=null?ae:a,value:a,style:b});return pe&&(me.isFunction=!0),a.startsWith("\\")&&(me.verbatimLatex=a),me}serialize(a,y){const b=gm(a,Ce(be({},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&&fm.forEach((pe,me)=>{var ye;pe.test(a.value)&&pm[(ye=y.letterShapeStyle)!=null?ye:"tex"][me]==="it"&&(E="italic")}),E==="up"&&(E=void 0);const ee=E?b+"-"+E:b;console.assert(s0[ee]!==void 0);const[re,ae]=s0[ee];return pf[b]&&!pf[b].test(a.value)?(a.value=_t(a.value,b,E),null):(l0.test(a.value)&&(a.classes+=" lcGreek"),ae&&(a.classes+=" "+ae),re)}};function gm(a,y){const{parent:b}=a[0],E=c0(b);return Sa(a,"variant").map(ee=>{const re=c0(ee[0]);let ae="";re&&re!==E&&(ae={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(ae!==void 0));const pe=Ti(ee.map(me=>me._serialize(y)));return ae?sa(ae,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 Sa(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?`{${sa("\\fontshape",ee)}${Ti(E)}}`:re?sa(re,Ti(E)):Ti(E)})}function bm(a,y){return Sa(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?`{${sa("\\fontseries",ee)}${Ti(E)}}`:re?sa(re,Ti(E)):Ti(E)})}function xm(a,y){return Sa(a,"fontSize").map(b=>{var E,ee;const re=bm(b,y),ae=(ee=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(E=b[0].style.fontSize)!=null?E:""])!=null?ee:"";return ae?`${ae} ${Ti(re)}`:Ti(re)})}function wm(a,y,b){return Sa(a,"fontFamily").map(E=>{var ee,re;const ae=xm(E,y),pe=(re={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ee=E[0].style.fontFamily)!=null?ee:""])!=null?re:"";return pe?`\\${pe}{${Ti(ae)}}`:E[0].style.fontFamily?`{\\fontfamily{${E[0].style.fontFamily}} ${Ti(ae)}}`:b?`\\text{${Ti(ae)}}`:Ti(ae)})}var u0={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Sm=class extends Lo{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new ys(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return wm(a,Ce(be({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,E,ee,re,ae;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 me=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);me&&(a.classes+=" ",a.classes+=(ee={ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[(E=me[1])!=null?E:""])!=null?ee:"",a.classes+=" ",a.classes+=(ae={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=me[2])!=null?re:""])!=null?ae:"")}return"Main-Regular"}};new Sm;var Cm=class extends Lo{constructor(){super("latex")}createAtom(a){return new ao(a)}serialize(a,y){return a.filter(b=>b instanceof ao&&!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:["","=","","="]}},mf={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:["\\","|","",""]}},h0={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},Mm={id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","\u2021","\u03A9"],KeyB:["b","B","\xDF","\u222B"],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\xEA","\xCA"],KeyF:["f","F","\u0192","\xB7"],KeyG:["g","G","\uFB01","\uFB02"],KeyH:["h","H","\xCC","\xCE"],KeyI:["i","I","\xEE","\xEF"],KeyJ:["j","J","\xCF","\xCD"],KeyK:["k","K","\xC8","\xCB"],KeyL:["l","L","\xAC","|"],KeyM:[",","?","\u221E","\xBF"],KeyN:["n","N","~","\u0131"],KeyO:["o","O","\u0153","\u0152"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xAE","\u201A"],KeyS:["s","S","\xD2","\u2211"],KeyT:["t","T","\u2020","\u2122"],KeyU:["u","U","\xBA","\xAA"],KeyV:["v","V","\u25CA","\u221A"],KeyW:["z","Z","\xC2","\xC5"],KeyX:["x","X","\u2248","\u2044"],KeyY:["y","Y","\xDA","\u0178"],KeyZ:["w","W","\u2039","\u203A"],Digit1:["&","1","\uF8FF","\xB4"],Digit2:["\xE9","2","\xEB","\u201E"],Digit3:['"',"3","\u201C","\u201D"],Digit4:["'","4","\u2018","\u2019"],Digit5:["(","5","{","["],Digit6:["\xA7","6","\xB6","\xE5"],Digit7:["\xE8","7","\xAB","\xBB"],Digit8:["!","8","\xA1","\xDB"],Digit9:["\xE7","9","\xC7","\xC1"],Digit0:["\xE0","0","\xF8","\xD8"],Space:[" "," "," "," "],Minus:[")","\xB0","}","]"],Equal:["-","_","\u2014","\u2013"],BracketLeft:["^","\xA8","\xF4","\xD4"],BracketRight:["$","*","\u20AC","\xA5"],Backslash:["`","\xA3","@","#"],Semicolon:["m","M","\xB5","\xD3"],Quote:["\xF9","%","\xD9","\u2030"],Backquote:["<",">","\u2264","\u2265"],Comma:[";",".","\u2026","\u2022"],Period:[":","/","\xF7","\\"],Slash:["=","+","\u2260","\xB1"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","\u2022","\u0178"],NumpadEqual:["=","=","=","="]}},Am={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"]}},Bm={id:"apple.german",locale:"de",displayName:"German",virtualLayout:"qwertz",platform:"apple",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u2039"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\u2122"],KeyE:["e","E","\u20AC","\u2030"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\xCC"],KeyH:["h","H","\xAA","\xD3"],KeyI:["i","I","\u2044","\xDB"],KeyJ:["j","J","\xBA","\u0131"],KeyK:["k","K","\u2206","\u02C6"],KeyL:["l","L","@","\uFB02"],KeyM:["m","M","\xB5","\u02D8"],KeyN:["n","N","~","\u203A"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\xAB","\xBB"],KeyR:["r","R","\xAE","\xB8"],KeyS:["s","S","\u201A","\xCD"],KeyT:["t","T","\u2020","\u02DD"],KeyU:["u","U","\xA8","\xC1"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\xD9"],KeyY:["z","Z","\u03A9","\u02C7"],KeyZ:["y","Y","\xA5","\u2021"],Digit1:["1","!","\xA1","\xAC"],Digit2:["2",'"',"\u201C","\u201D"],Digit3:["3","\xA7","\xB6","#"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","[","\uFB01"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","\u02DC"],Digit9:["9",")","}","\xB7"],Digit0:["0","=","\u2260","\xAF"],Space:[" "," "," "," "],Minus:["\xDF","?","\xBF","\u02D9"],Equal:["\xB4","`","'","\u02DA"],BracketLeft:["\xFC","\xDC","\u2022","\xB0"],BracketRight:["+","*","\xB1","\uF8FF"],Backslash:["#","'","\u2018","\u2019"],Semicolon:["\xF6","\xD6","\u0153","\u0152"],Quote:["\xE4","\xC4","\xE6","\xC6"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u221E","\u02DB"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","\xB0","\u201E","\u201C"],NumpadEqual:["=","=","=","="]}},Lm={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"]}},Pm={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:["<",">","",""]}},Tm={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 f0(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 su(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]"},md=[],gd;function gf(){switch(lt()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function Vo(a){(!a.platform||a.platform===gf())&&md.push(a)}function Rm(a,y){var b;const E={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!a)return E;for(const[ee,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 Nm(a){if(a.code)return a;const y=Object.entries(vd().mapping);let b=!1,E=!1,ee="";for(let re=0;re<4;re++){for(const[ae,pe]of y)if(pe[re]===a.key){ee=ae,re===3?(b=!0,E=!0):re===2?b=!0:re===1&&(E=!0);break}if(ee)break}return new KeyboardEvent(a.type,Ce(be({},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 md)((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);md.sort((ee,re)=>re.score-ee.score)}function _m(a){gd=md.find(y=>a.startsWith(y.locale))}function vd(){return gd!=null?gd:md[0]}function zm(){switch(gf()){case"apple":return mf;case"windows":return d0;case"linux":return h0}return mf}switch(gf()){case"apple":Vo(mf),Vo(Mm),Vo(Im),Vo(Bm);break;case"windows":Vo(d0),Vo(Am),Vo(Pm),Vo(Lm);break;case"linux":Vo(h0),Vo(km),Vo(Tm),Vo(Dm);break}Vo(Em);function vf(a){var y;const b=/macos|ios/.test(lt()),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 xh(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 wh(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:Km.has(a.code)}function Sh(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var zs=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=Sh();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:"",Sh()!==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,ae=!1,pe=!1;const me=new AbortController,ye=me.signal;return a.addEventListener("keydown",Se=>{if(re||Se.key==="Process"||Se.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(Se.code)){E=null;return}E=Se,ee=null,b.onKeystroke(Se)?a.textContent="":E=null},{capture:!0,signal:ye}),a.addEventListener("keypress",Se=>{re||(E&&ee&&b.onKeystroke(E),ee=Se)},{capture:!0,signal:ye}),a.addEventListener("compositionstart",Se=>{a.textContent="",re=!0,b.onCompositionStart(Se.data)},{capture:!0,signal:ye}),a.addEventListener("compositionupdate",Se=>{re&&b.onCompositionUpdate(Se.data)},{capture:!0,signal:ye}),a.addEventListener("compositionend",Se=>{a.textContent="",re&&(re=!1,b.onCompositionEnd(Se.data))},{capture:!0,signal:ye}),a.addEventListener("beforeinput",Se=>Se.stopImmediatePropagation(),{signal:ye}),a.addEventListener("input",Se=>{var Ze;if(!re&&(a.textContent="",Se.inputType!=="insertCompositionText")){if(Se.inputType==="insertFromPaste"){Se.preventDefault(),Se.stopPropagation();return}b.onInput((Ze=Se.data)!=null?Ze:""),Se.preventDefault(),Se.stopPropagation()}},{signal:ye}),a.addEventListener("paste",Se=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(Se)||Se.preventDefault(),Se.stopImmediatePropagation()},{signal:ye}),a.addEventListener("cut",Se=>b.onCut(Se),{capture:!0,signal:ye}),a.addEventListener("copy",Se=>b.onCopy(Se),{capture:!0,signal:ye}),a.addEventListener("blur",Se=>{var Ze,ct;if(((ct=(Ze=Se.relatedTarget)==null?void 0:Ze._mathfield)==null?void 0:ct.element)===y){a.focus({preventScroll:!0}),Se.preventDefault(),Se.stopPropagation();return}const Et=zs.state;if(Et==="open"||Et==="opening"){Se.preventDefault(),Se.stopPropagation();return}if(Se.relatedTarget===Se.target.getRootNode().host){Se.preventDefault(),Se.stopPropagation();return}pe||ae||(pe=!0,E=null,ee=null,b.onBlur(),pe=!1)},{capture:!0,signal:ye}),a.addEventListener("focus",Se=>{pe||ae||(ae=!0,b.onFocus(),ae=!1)},{capture:!0,signal:ye}),{dispose:()=>me.abort(),cancelComposition:()=>{re&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!ae&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>Sh()===a,setAriaLabel:Se=>a.setAttribute("aria-label",Se),setValue:Se=>{var Ze;a.textContent=Se,a.style.left="-1000px",(Ze=window.getSelection())==null||Ze.selectAllChildren(a)},moveTo:(Se,Ze)=>{a.style.top=`${Ze}px`,a.style.left=`${Se}px`}}}function lu(a){var y;if(!a||!wh(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=Nm(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(wt()){const y=lt(),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=su(f0(p0(b))),ee=su({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(lt()),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 Ie(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function Vm(a,y){let b=[];if(typeof y=="string"){const re=rd[y];Ie(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(vf)}function Um(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=f0(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=lt()==="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 Ce(be({},a),{key:su(b)});const ee=Rm(b.key,y);if(!ee)return Ce(be({},a),{key:su(b)});if(ee.shift&&b.shift||ee.alt&&b.alt)throw new Error(`The keybinding ${a.key} (${yf(a.command)}) is conflicting with the key combination ${su(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,Ce(be({},a),{key:su(ee)})}function yf(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=Um(ee,y);if(!re)continue;const ae=E.find(pe=>pe.key===re.key&&pe.ifMode===re.ifMode);if(ae)throw new Error(`Ambiguous key binding ${ee.key} (${yf(ee.command)}) matches ${ae.key} (${yf(ae.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 Ci{constructor(){super("latex")}createAtom(a){return new ao(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"}),ya(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(Ja(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 me of y)se.test(me)&&re.push(new ao(me));let ae=a.at(a.position);if(ae instanceof ud&&(ae=ae.lastChild),!(ae.parent instanceof ud)){const me=new ud("");ae.parent.addChildAfter(me,ae),ae=me.firstChild}const pe=ae.parent.addChildrenAfter(re,ae);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 yd(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 me=a.at(E);ee=me instanceof ao&&me.isSuggestion,ee||E++}if(!ee)return[void 0,void 0];let ae=E,pe=!1;for(;ae<=re&&!pe;){const me=a.at(ae);pe=!(me instanceof ao&&me.isSuggestion),pe||ae++}return[E-1,ae-1]}new Ym;function Ch(a){const y=yd(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;Ch(a);for(const Se of yd(E))Se.isError=!1;if(!E.selectionIsCollapsed||a.options.popoverPolicy==="off"){uu(a);return}const ee=[];let re=E.at(E.position);for(;re&&re instanceof ao&&/^[a-zA-Z\*]$/.test(re.value);)re=re.leftSibling;if(re&&re instanceof ao&&re.value==="\\")for(ee.push(re),re=re.rightSibling;re&&re instanceof ao&&/^[a-zA-Z\*]$/.test(re.value);)ee.push(re),re=re.rightSibling;const ae=ee.map(Se=>Se.value).join(""),pe=Ke(a,ae);if(pe.length===0){if(/^\\[a-zA-Z\*]+$/.test(ae))for(const Se of ee)Se.isError=!0;uu(a);return}const me=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=me<0?pe.length-1:me%pe.length;const ye=pe[a.suggestionIndex];if(ye!==ae){const Se=ee[ee.length-1];Se.parent.addChildrenAfter([...ye.slice(ae.length-ye.length)].map(Ze=>new ao(Ze,{isSuggestion:!0})),Se),pc(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 cu(a,y="accept",b){var E,ee;uu(a);const re=Xm(a.model);if(!re)return!1;if(y==="accept-suggestion"||y==="accept-all"){const ye=yd(a.model).filter(Se=>Se.isSuggestion);if(ye.length!==0){for(const Se of ye)Se.isSuggestion=!1;a.model.position=a.model.offsetOf(ye[ye.length-1])}if(y==="accept-suggestion")return ye.length!==0}const pe=yd(a.model).filter(ye=>!ye.isSuggestion).map(ye=>ye.value).join(""),me=re.leftSibling;return re.parent.removeChild(re),a.model.position=a.model.offsetOf(me),a.switchMode((E=b==null?void 0:b.mode)!=null?E:"math"),y==="reject"||(Ci.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 Eh(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 bf(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 _i({from:a.context}),E=new Vn({mode:"math",type:"root",body:$a(y,{context:b})}),ee=Qc(fd(new Mr(E.render(b),{classes:"ML__base"}),b));return Jc(ee,{classes:"ML__latex"}).toMarkup()}function Jm(a,y){var b;if(y.length===0){uu(a);return}let E="";for(const[re,ae]of y.entries()){const pe=ae,me=Qm(a,ae),ye=Vm(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">${me}</span>`,ye&&(E+=`<span class="ML__popover__keybinding">${ye}</span>`),E+="</li>"}const ee=qm(a,`<ul>${E}</ul>`);xf()&&((b=ee.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var re;ee&&!xf()&&(ee.classList.add("is-visible"),Mh(a),(re=ee.querySelector(".ML__popover__current"))==null||re.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function xf(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function Mh(a,y){var b;if(!a.element||a.element.mathfield!==a||!xf())return;if(((b=a.model.at(a.model.position))==null?void 0:b.type)!=="latex"){uu(a);return}if(y!=null&&y.deferred){setTimeout(()=>Mh(a),32);return}const E=Fs(a.field);if(!E)return;const ee=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,re=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,ae=window.innerWidth-document.documentElement.clientWidth,pe=window.innerHeight-document.documentElement.clientHeight,me=window.mathVirtualKeyboard.boundingRect.height,ye=document.getElementById("mathlive-suggestion-popover");E.x+ye.offsetWidth/2>re-ae?ye.style.left=`${re-ye.offsetWidth-ae}px`:E.x-ye.offsetWidth/2<0?ye.style.left="0":ye.style.left=`${E.x-ye.offsetWidth/2}px`;const Se=E.y-E.height;ee-pe-me-E.y<Se?(ye.classList.add("ML__popover--reverse-direction"),ye.classList.remove("top-tip"),ye.classList.add("bottom-tip"),ye.style.top=`${E.y-E.height-ye.offsetHeight-15}px`):(ye.classList.remove("ML__popover--reverse-direction"),ye.classList.add("top-tip"),ye.classList.remove("bottom-tip"),ye.style.top=`${E.y+15}px`)}function uu(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=Eh("mathlive-suggestion-popover"),_o("suggestion-popover"),_o("core"),b.addEventListener("pointerdown",E=>E.preventDefault()),b.addEventListener("click",E=>{let ee=E.target;for(;ee&&!ee.dataset.command;)ee=ee.parentElement;ee&&(cu(a,"reject"),Ci.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")&&(bf("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 Ah=null,y0,b0,wf=((b0=(y0=globalThis==null?void 0:globalThis.document)==null?void 0:y0.currentScript)==null?void 0:b0.src)||eg();function x0(a){return Hl(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(Ah===null)try{const y=yield fetch(wf,{method:"HEAD"});y.status===200&&(Ah=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${wf}")`)}return new URL(a,Ah!=null?Ah:wf).href})}function tg(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var Uo="not-loaded";function ng(){return Hl(this,null,function*(){return Uo="not-loaded",kh()})}function kh(){return Hl(this,null,function*(){var a;if(Uo!=="not-loaded")return;if(Uo="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){Uo="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(ae=>ae.family);if(b.every(ae=>E.includes(ae))){Uo="ready";return}if(!window.MathfieldElement.fontsDirectory){Uo="not-loaded";return}const ee=yield x0(window.MathfieldElement.fontsDirectory);if(!ee){document.body.classList.add("ML__fonts-did-not-load"),Uo="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(ae=>tg(ae[0].replace(/-[a-zA-Z]+$/,""),`${ee}/${ae[0]}`,ae[1]));try{(yield Promise.all(re.map(pe=>{try{return pe.load()}catch(me){}}))).forEach(pe=>document.fonts.add(pe)),Uo="ready";return}catch(ae){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ee}"`,{cause:ae}),document.body.classList.add("ML__fonts-did-not-load")}Uo="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 ya(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{jo(a)&&a.dirty&&(a.atomBoundsCache=new Map,pc(a,y),a.atomBoundsCache=void 0)})))}function ig(a,y){var b;y=y!=null?y:{};const E=new _i({from:Ce(be({},a.context),{atomIdsSettings:{seed:y.forHighlighting?rg(Vn.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 Jc(fd(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 pc(a,y){if(!jo(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 ae=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 me=a.options.contentPlaceholder;me&&(ae+=`<span part=placeholder class="ML__content-placeholder">${eo(me)}</span>`)}E.innerHTML=window.MathfieldElement.createHTML(ae),Bh(a,y.interactive),a.dirty=!1}function Bh(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)&&Uo!=="error"&&Uo!=="ready"&&setTimeout(()=>{Uo==="ready"?Bh(a):setTimeout(()=>Bh(a),128)},32);const E=a.model,ee=b.offsetWidth,re=b.getBoundingClientRect().width;let ae=Math.floor(re)/ee;if(ae=isNaN(ae)?1:ae,E.selectionIsCollapsed){Mh(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 me=ad(a,Pl(a,pe),ae);if(me){me.left/=ae,me.right/=ae,me.top/=ae,me.bottom/=ae;const ye=document.createElement("div");ye.classList.add("ML__contains-highlight"),ye.style.position="absolute",ye.style.left=`${me.left+1}px`,ye.style.top=`${Math.ceil(me.top)}px`,ye.style.width=`${Math.ceil(me.right-me.left)}px`,ye.style.height=`${Math.ceil(me.bottom-me.top)}px`,b.insertBefore(ye,b.childNodes[0])}}return}for(const pe of ag(sd(a,{excludeAtomsWithBackground:!0}))){pe.left/=ae,pe.right/=ae,pe.top/=ae,pe.bottom/=ae;const me=document.createElement("div");me.classList.add("ML__selection"),me.style.position="absolute",me.style.left=`${pe.left}px`,me.style.top=`${pe.top}px`,me.style.width=`${Math.ceil(pe.right-pe.left)}px`,me.style.height=`${Math.ceil(pe.bottom-pe.top-1)}px`,b.insertBefore(me,b.childNodes[0])}}function ag(a){let y=[];for(const b of a){let E=!1;for(const ee of y)if(b.left===ee.left&&b.right===ee.right&&b.top===ee.top&&b.bottom===ee.bottom){E=!0;break}E||y.push(b)}a=y,y=[];for(const b of a){let E=0;for(const ee of a)if(b.left>=ee.left&&b.right<=ee.right&&b.top>=ee.top&&b.bottom<=ee.bottom&&(E+=1,E>1))break;E===1&&y.push(b)}return y}var S0=3,Hs;function zo(a,y){y=be({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Hs||(Hs={});for(const b of Object.keys(a))console.assert(!Hs[b],"Selector already defined: ",b),Hs[b]=Ce(be({},y),{fn:a[b]})}function Sf(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return Sf(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),Hs[y]}function du(a){var y;return(y=Sf(a))==null?void 0:y.target}function og(a,y){var b;if(!y)return!1;let E,ee=[],re=!1,ae=!1;Ie(y)?(E=y[0],ee=y.slice(1)):E=y,E=E.replace(/-\w/g,ye=>ye[1].toUpperCase());const pe=Hs[E],me=pe==null?void 0:pe.target;if(me==="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)||Ch(a),Hs[E].fn(a.model,...ee),bd(a),ae=!0,re=!0}else if(me==="virtual-keyboard")ae=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,re=!0;else if(Hs[E]){if(!a.isSelectionEditable&&(pe!=null&&pe.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(E)&&a.flushInlineShortcutBuffer(),ae=Hs[E].fn(a,...ee),re=!0}else throw new Error(`Unknown command "${E}"`);return me!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||pe!=null&&pe.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),pe!=null&&pe.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),ae&&ya(a),re}function sg(a,y){var b;if(!a)return!1;a.focus(),vp.keypressVibration&&yt()&&navigator.vibrate(S0);const E=Sf(y);window.MathfieldElement.playSound((b=E==null?void 0:E.audioFeedback)!=null?b:"keypress");const ee=a.executeCommand(y);return a.scrollIntoView(),ee}zo({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}zo({complete:cu},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),zo({nextSuggestion:lg,previousSuggestion:cg},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Lh="mathlive#virtual-keyboard-message";function Cf(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Lh}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(Cf(y)){if(!ld(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;du(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(be({type:Lh,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]"]]}},Dh={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"}]},xd;function E0(a,y){var b,E,ee;const re=Nl.singleton;if(!re)return;const ae=hu(a),pe=(E=(b=re.getKeycap(ae==null?void 0:ae.id))==null?void 0:b.variants)!=null?E:"";if(typeof pe=="string"&&!M0(pe)||Array.isArray(pe)&&pe.length===0){y==null||y();return}const me={};let ye="";for(const Pn of hg(pe)){const xr=k0(Pn),kn=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);me[kn]=xr;const[Qn,Lr]=Ih(xr);ye+=`<div id=${kn} class="item ${Lr}">${Qn}</div>`}const Se=document.createElement("div");Se.setAttribute("aria-hidden","true"),Se.className="MLK__variant-panel",Se.style.height="auto";const Ze=Object.keys(me).length;let ct=5;Ze===1?ct=1:Ze===2||Ze===4?ct=2:Ze===3||Ze===5||Ze===6?ct=3:Ze>=7&&Ze<14&&(ct=4),Se.style.width=`calc(var(--variant-keycap-length) * ${ct} + 12px)`,Se.innerHTML=vp.createHTML(ye),zs.open({root:(ee=re==null?void 0:re.container)==null?void 0:ee.querySelector(".ML__keyboard"),child:Se}),xd=new AbortController;const{signal:Et}=xd,Rt=a==null?void 0:a.getBoundingClientRect();if(Rt){Rt.top-Se.clientHeight<0&&(Se.style.width="auto",Ze<=6?Se.style.height="56px":Ze<=12?Se.style.height="108px":Ze<=18?Se.style.height="205px":Se.classList.add("compact"));const Pn=Math.max(0,Math.min(window.innerWidth-Se.offsetWidth,(Rt.left+Rt.right-Se.offsetWidth)/2)),xr=Rt.top-Se.clientHeight+5;Se.style.transform=`translate(${Pn}px, ${xr}px)`,Se.classList.add("is-visible"),requestAnimationFrame(()=>{Se.addEventListener("pointerup",kn=>{const Qn=hu(kn.target);!(Qn!=null&&Qn.id)||!me[Qn.id]||(Ef(me[Qn.id]),wd(),y==null||y(),kn.preventDefault())},{capture:!0,passive:!1,signal:Et}),Se.addEventListener("pointerenter",kn=>{const Qn=hu(kn.target);!(Qn!=null&&Qn.id)||!me[Qn.id]||Qn.classList.add("is-active")},{capture:!0,signal:Et}),Se.addEventListener("pointerleave",kn=>{const Qn=hu(kn.target);!(Qn!=null&&Qn.id)||!me[Qn.id]||Qn.classList.remove("is-active")},{capture:!0,signal:Et}),window.addEventListener("pointercancel",()=>{wd(),y==null||y()},{signal:Et}),window.addEventListener("pointerup",()=>{wd(),y==null||y()},{signal:Et})})}}function wd(){xd==null||xd.abort(),xd=null,zs.state==="open"&&zs.close()}function dg(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(tt))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+tt[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(Ue))y.push({class:"swatch-button",label:'<span style="background:'+Ue[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function M0(a){return Dh[a]!==void 0}function hg(a){var y;return typeof a!="string"?a:(Dh[a]||(Dh[a]=(y=dg(a))!=null?y:[]),Dh[a])}function fg(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} {${fg(a[y])}}`).join("")}function Sd(a){if(!a)return"";const y=new _i,b=new Vn({mode:"math",type:"root",body:$a(a,{context:y,args:ee=>ee==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),E=Qc(fd(new Mr(b.render(y),{classes:"ML__base"}),y));return Jc(E,{classes:"ML__latex"}).toMarkup()}function Cd(a){var y;if(Array.isArray(a))return a.map(E=>Cd(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=vd();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"}[ot.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,ae=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 me=[];for(const ye of pe)/[a-z]/.test(ye)?me.push({label:ye,class:"hide-shift",shift:{label:ye.toUpperCase()},variants:M0(ye)?ye:void 0}):ye==="~"?E!=="dvorak"?me.push("[backspace]"):me.push({label:"[backspace]",width:1}):ye==="^"?me.push("[shift]"):ye===" "&&me.push("[separator-5]");ae.push(me)}return ae.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:Cd({rows:ae})}}function A0(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}"`),A0(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,ae=ft(ee,["rows"]);y=Ce(be({},ae),{layers:Cd({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ee=a,{markup:re}=ee,ae=ft(ee,["markup"]);y=Ce(be({},ae),{layers:Cd(a.markup)})}else y=be({},a),"layers"in a?y.layers=Cd(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()){fu(re)&&(b=!0);const ae=re.command;typeof ae=="string"&&["undo","redo","cut","copy","paste"].includes(ae)&&(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,ae]of a.normalizedLayouts.entries()){const pe=ae,me=[re===y?"selected":"layer-switch"];pe.tooltip&&me.push("MLK__tooltip"),pe.labelClass&&me.push(...pe.labelClass.split(" ")),ee+=`<div class="${me.join(" ")}"`,pe.tooltip&&(ee+=" data-tooltip='"+((b=gt(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='${gt("tooltip.undo")}'>
|
|
|
<svg><use xlink:href='#svg-undo' /></svg>
|
|
|
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
|
|
|
data-command='"redo"'
|
|
|
data-tooltip='${gt("tooltip.redo")}'>
|
|
|
<svg><use xlink:href='#svg-redo' /></svg>
|
|
|
</div>`,cutToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"cutToClipboard"'
|
|
|
data-tooltip='${gt("tooltip.cut to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-cut' /></svg>
|
|
|
</div>
|
|
|
`,copyToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"copyToClipboard"'
|
|
|
data-tooltip='${gt("tooltip.copy to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-copy' /></svg>
|
|
|
</div>
|
|
|
`,pasteFromClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"pasteFromClipboard"'
|
|
|
data-tooltip='${gt("tooltip.paste from clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-paste' /></svg>
|
|
|
</div>
|
|
|
`};return b+=ee.map(ae=>re[ae]).join(""),b}function yg(a){for(const y of a)bg(y)}function bg(a){const y=Nl.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]=Ih(b);a.innerHTML=window.MathfieldElement.createHTML(E)}}function xg(){_o("virtual-keyboard"),_o("core"),kh()}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((ae,pe)=>Eg(a,ae,pe)).join(""));const E=document.createElement("div");E.className="MLK__backdrop",E.appendChild(b),y.appendChild(E),y.addEventListener("pointerdown",Ag,{passive:!1});const ee=y.querySelectorAll(".ML__edit-toolbar");if(ee)for(const ae of ee)ae.addEventListener("click",pe=>{var me,ye;let Se=pe.target,Ze="";for(;Se&&!Ze;)Ze=(me=Se==null?void 0:Se.getAttribute("data-command"))!=null?me:"",Se=(ye=Se==null?void 0:Se.parentElement)!=null?ye:null;Ze&&a.executeCommand(JSON.parse(Ze))});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 ae of re)ae.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(Mg(a,ee)),E.push("</div>");return E.join("")}function Mg(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),[ae,pe]=Ih(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+=`>${ae}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function Ih(a,y={shifted:!1}){var b,E,ee,re,ae,pe,me;let ye="",Se=(b=a.class)!=null?b:"";if(y.shifted&&fu(a)&&(Se+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?ye=Sd(a.shift):typeof a.shift=="object"&&(ye=a.shift.label?a.shift.label:(E=Sd(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?E:""),typeof a.shift=="object"&&(Se=(re=(ee=a.shift.class)!=null?ee:a.class)!=null?re:"");else{if(ye=a.label?a.label:(ae=Sd(a.latex||a.insert||"")||a.key)!=null?ae:"",a.shift){let Ze;typeof a.shift=="string"?Ze=Sd(a.shift):a.shift.label?Ze=a.shift.label:Ze=(pe=Sd(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?pe:"",ye+=`<span class="MLK__shift">${Ze}</span>`}a.aside&&(ye+=`<aside>${a.aside}</aside>`)}return a.layer&&!/layer-switch/.test(Se)&&(Se+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(Se)||(Se+=" MLK__keycap"),!/\bw[0-9]+\b/.test(Se)&&a.width&&(Se+=(me={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?me:""),[ye,Se||"MLK__keycap"]}var mc={"[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="[,]"),!mc[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&mc[a.label]&&(b=Ce(be(be({},mc[a.label]),a),{label:mc[a.label].label})),"key"in a&&a.key&&mc[a.key]&&(b=Ce(be(be({},mc[a.key]),a),{key:mc[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=be(be({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=be(be({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=be(be({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=be(be({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var Ed;function Ag(a){var y;if(a.button!==0)return;const b=Nl.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=hu(a.target);if(!(ee!=null&&ee.id))return;const re=b.getKeycap(ee.id);if(!re)return;console.assert(a.type==="pointerdown");const ae=new AbortController,pe=ae.signal;ee.classList.add("is-pressed"),ee.addEventListener("pointerenter",Ph(ae),{capture:!0,signal:pe}),ee.addEventListener("pointerleave",Ph(ae),{capture:!0,signal:pe}),ee.addEventListener("pointercancel",Ph(ae),{signal:pe}),ee.addEventListener("pointerup",Ph(ae),{signal:pe}),fu(re)&&(ee.classList.add("is-active"),b.shiftPressCount++),re.variants&&(Ed&&clearTimeout(Ed),Ed=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,()=>{ae.abort(),ee==null||ee.classList.remove("is-active")}))},300)),a.preventDefault()}function Ph(a){return y=>{const b=hu(y.target);if(!(b!=null&&b.id))return;const E=Nl.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"),fu(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"),fu(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted));return}if(y.type==="pointerup"){Ed&&clearTimeout(Ed),fu(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"}]):Ef(ee.shift):Ef(ee),E.shiftPressCount===1&&!y.shiftKey&&(E.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function Ef(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=Nl.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 hu(a){if(!a)return;let y=a;for(;y&&!kg(y);)y=y.parentElement;return y!=null?y:void 0}function fu(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var Nl=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 ae=B0();ae&&!ae.readOnly&&ae.mathVirtualKeyboardPolicy==="auto"&&ut()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ee=>{ee.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{B0()||this.hide()},300)})}get currentLayer(){var y,b,E;return(E=(b=(y=this._element)==null?void 0:y.querySelector(".MLK__layer.is-visible"))==null?void 0:b.id)!=null?E:""}set currentLayer(y){var b;if(!this._element){this.latentLayer=y;return}let E=y?this._element.querySelector(`#${y}.MLK__layer`):null;E||(E=this._element.querySelector(".MLK__layer")),E&&((b=this._element.querySelector(".MLK__layer.is-visible"))==null||b.classList.remove("is-visible"),E.classList.add("is-visible")),this.render()}get shiftPressCount(){return this._shiftPressCount}set shiftPressCount(y){var b;this._shiftPressCount=y>2||y<0?0:y,(b=this._element)==null||b.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.render()}get isShifted(){return this._shiftPressCount>0}resetKeycapRegistry(){this.keycapRegistry={}}registerKeycap(y){const b="ML__k"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);return this.keycapRegistry[b]=y,b}getKeycap(y){return y?this.keycapRegistry[y]:void 0}getLayer(y){const b=this.normalizedLayouts;for(const E of b)for(const ee of E.layers)if(ee.id===y)return ee}get alphabeticLayout(){return this._alphabeticLayout}set alphabeticLayout(y){this._alphabeticLayout=y,this.rebuild()}get actionKeycap(){return this._actionKeycap}set actionKeycap(y){this._actionKeycap=typeof y=="string"?{label:y}:y}get shiftKeycap(){return this._shiftKeycap}set shiftKeycap(y){this._shiftKeycap=typeof y=="string"?{label:y}:y}get backspaceKeycap(){return this._backspaceKeycap}set backspaceKeycap(y){this._backspaceKeycap=typeof y=="string"?{label:y}:y}get tabKeycap(){return this._tabKeycap}set tabKeycap(y){this._tabKeycap=typeof y=="string"?{label:y}:y}get layouts(){return this._layouts}set layouts(y){this.updateNormalizedLayouts(y),this.rebuild()}updateNormalizedLayouts(y){const b=Array.isArray(y)?[...y]:[y],E=b.findIndex(ee=>ee==="default");E>=0&&b.splice(E,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(b),this._normalizedLayouts=b.map(ee=>A0(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,ae]=Ih(ee,{shifted:this.isShifted});E.innerHTML=window.MathfieldElement.createHTML(re),E.className=ae}}}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 ae=ee.offsetHeight-1;E.style.paddingBottom=re?`calc(${re} + ${ae}px)`:`${ae}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}),wd(),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(Cf(y)){if(!ld(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=du(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:be({type:Lh,action:y},b)}));return}if(E)E.postMessage(be({type:Lh,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=du(y);return Ie(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ee=du(y)),E=y.slice(1)):b=y,b=b.replace(/-\w/g,re=>re[1].toUpperCase()),ee==="virtual-keyboard"?Hs[b].fn(void 0,...E):(this.sendMessage("execute-command",{command:y}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function B0(){var a,y;let b=Sh(),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(wt()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=Nl.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>ug.singleton,configurable:!0});function Th(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const E=a.scriptDepth;if(Ie(E))y.scriptDepth=[E[0],E[1]];else if(typeof E=="number")y.scriptDepth=[E,E];else if(typeof E=="string"){const[re,ae]=E.split(",").map(pe=>parseInt(pe.trim()));y.scriptDepth=[re,ae]}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=Nl.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>re})}ee="manual"}y.mathVirtualKeyboardPolicy=ee;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?ot.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=De(a.macros);break;default:Ie(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=be({},a[b]):y[b]=a[b]}return y}function gc(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:Ie(a[ee])?E[ee]=[...a[ee]]:typeof a[ee]=="object"&&!(a[ee]instanceof Element)&&ee!=="computeEngine"?E[ee]=be({},a[ee]):E[ee]=a[ee];return typeof y=="string"?E[y]:E}function Oh(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:kt,backgroundColorMap:st,letterShapeStyle:ot.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:lf,inlineShortcuts:dh,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:sf,value:""}}function L0(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function Fl(a,y){!a||!y||(Ie(a)?a.forEach(b=>Fl(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),Fl(a.body,y),Fl(a.above,y),Fl(a.below,y),Fl(a.subscript,y),Fl(a.superscript,y)))}function Mf(a,y,b,E){function ee(ae,pe){for(const me of re)if(me.style[ae]!==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=Ls),b.variant&&ee("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ee("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const ae of re)ae.applyStyle(b);return!0}function Bg(a,y){const b=a.at(a.position);if(b.type==="composition")b.value=y;else{const{caret:E}=b;b.caret=void 0;const ee=new fl(y,{mode:b.mode});ee.caret=E,b.parent.addChildAfter(ee,b),a.position+=1}}function Lg(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}Pt(["math","displaymath"],ns),Pt("center",ns),at("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 Mi("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),hn("array","{columns:colspec}",(a,y,b,E)=>new Mi(a,Af(y),b,{columns:E[0],mathstyleName:"textstyle"})),hn(["equation","equation*","subequations"],"",(a,y,b)=>new Mi(a,Af(y),b,{columns:[{align:"c"}]})),hn(["multline","multline*"],"",ns),hn(["align","align*","aligned","eqnarray"],"",ns),hn("split","",ns),hn(["gather","gathered"],"",ns),hn(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",ns),hn(["smallmatrix","smallmatrix*"],"[columns:colspec]",ns),hn(["cases","dcases","rcases"],"",ns);function Dg(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function Af(a,y=1){return Dg(a)?Array(y).fill([[new Vn({type:"first"}),new hi]]):a.map(b=>b.length===0?[[new Vn({type:"first"})]]:b.map(E=>E.length===0?[new Vn({type:"first"})]:(E[0].type!=="first"&&E.unshift(new Vn({type:"first"})),E)))}function ns(a,y=[[[]]],b=[],E=[]){switch(y=Af(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new Mi(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new Mi(a,y,b,{mathstyleName:"textstyle"});case"center":return new Mi(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new Mi(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new Mi(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new Mi(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new Mi(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:vc(E[0])});case"bmatrix":case"bmatrix*":return new Mi(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:vc(E[0])});case"Bmatrix":case"Bmatrix*":return new Mi(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:vc(E[0])});case"vmatrix":case"vmatrix*":return new Mi(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:vc(E[0])});case"Vmatrix":case"Vmatrix*":return new Mi(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:vc(E[0])});case"matrix":case"matrix*":return new Mi(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:vc(E==null?void 0:E[0])});case"smallmatrix":case"smallmatrix*":return new Mi(a,y,b,{mathstyleName:"scriptstyle",columns:vc(E==null?void 0:E[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new Mi(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 Mi(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new Mi(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 ae=2;for(;ae<ee;)re.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),ae+=2;return re.push({gap:0}),new Mi(a,y,b,{arraycolsep:0,columns:re,minColumns:2})}}return new Mi(a,y,b,{mathstyleName:"textstyle"})}function vc(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 Mi);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof Mi)){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=Fh()),ee.length===0&&(ee=Fh());let ae;return y.endsWith("column")?(ae=ns("split",[[re,ee]]),a.root=ae,yc(ae,0,0)?bc(a,ae,0,0):yc(ae,0,1)?bc(a,ae,0,1):a.position=a.offsetOf(E)):(ae=ns("lines",[[re],[ee]]),a.root=ae,yc(ae,0,0)?bc(a,ae,0,0):yc(ae,1,0)?bc(a,ae,1,0):a.position=a.offsetOf(E)),[void 0,[0,0]]}if(b.parent instanceof Vi){const ee=b.parent;let re=a.extractAtoms([a.position,a.offsetOf(ee.lastChild)]),ae=a.extractAtoms([a.offsetOf(ee.firstChild),a.position]);ae.length===0&&(ae=Fh()),re.length===0&&(re=Fh());let pe="pmatrix";const me=ee.leftDelim,ye=ee.rightDelim;me==="("&&(ye===")"||ye==="?")?pe="pmatrix":(me==="["||me==="\\lbrack")&&(ye==="]"||ye==="\\rbrack"||ye==="?")?pe="bmatrix":me==="\\vert"&&ye==="\\vert"?pe="vmatrix":me==="\\Vert"&&ye==="\\Vert"?pe="Vmatrix":(me==="{"||me==="\\lbrace")&&(ye==="."||ye==="?")&&(pe="cases");const Se=ns(pe,y.endsWith("column")?[[ae,re]]:[[ae],[re]]);return ee.parent.addChildBefore(Se,ee),ee.parent.removeChild(ee),yc(Se,0,0)?bc(a,Se,0,0):y.endsWith("column")?yc(Se,0,1)?bc(a,Se,0,1):a.position=a.offsetOf(b):yc(Se,1,0)?bc(a,Se,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof Mi?[b.parent,b.parentBranch]:[void 0,[0,0]]}function yc(a,y,b){const E=a.getCell(y,b);return!E||E.length!==2?!1:E[1].type==="placeholder"}function Pg(a,y,b,E){const ee=y.getCell(b,E);return ee?[a.offsetOf(ee[0]),a.offsetOf(ee[ee.length-1])]:-1}function bc(a,y,b,E){const ee=Pg(a,y,b,E);typeof ee!="number"&&a.setSelection(ee)}function Rh(a,y,b,E,ee){const re=y.getCell(b,E);re&&a.setPositionHandlingPlaceholder(a.offsetOf(re[ee==="start"?0:re.length-1]))}function Nh(a,y){const[b,[E,ee]]=Ig(a,y);if(b)switch(y){case"after row":b.addRowAfter(E),Rh(a,b,E+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ee),Rh(a,b,E,ee+1,"end");break;case"before row":b.addRowBefore(E),Rh(a,b,E,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ee),Rh(a,b,E,ee,"start");break}}function D0(a){return a.contentWillChange({inputType:"insertText"})?(Nh(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Tg(a){return a.contentWillChange({inputType:"insertText"})?(Nh(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function I0(a){return a.contentWillChange({inputType:"insertText"})?(Nh(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Og(a){return a.contentWillChange({inputType:"insertText"})?(Nh(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function P0(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 T0(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof Mi);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof Mi){const E=b.parent,ee=b.parentBranch;let re;switch(y){case"row":if(E.rowCount>1){E.removeRow(ee[0]);const ae=E.getCell(Math.max(0,ee[0]-1),ee[1]);re=a.offsetOf(ae[ae.length-1])}break;case"column":if(E.colCount>E.minColumns){E.removeColumn(ee[1]);const ae=E.getCell(ee[0],Math.max(0,ee[1]-1));re=a.offsetOf(ae[ae.length-1])}break}re&&a.setPositionHandlingPlaceholder(re)}}function Rg(a){return a.contentWillChange({inputType:"deleteContent"})?(T0(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function Ng(a){return a.contentWillChange({inputType:"deleteContent"})?(T0(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}zo({addRowAfter:D0,addColumnAfter:I0,addRowBefore:Tg,addColumnBefore:Og,removeRow:Rg,removeColumn:Ng,setEnvironment:P0},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Fh(){return[new hi]}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 kf(a,y,b){if(a.at(y).mode!=="text")return y;const E=b==="backward"?-1:1;let ee;if(fe.test(a.at(y).value)){let re=y,ae;do ae=a.at(re).mode==="text"&&fe.test(a.at(re).value),re+=E;while(a.at(re)&&ae);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 ae=!0;do ae=a.at(re).mode==="text"&&!/\s/.test(a.at(re).value),re+=E;while(a.at(re)&&ae);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 ae=!0;for(;a.at(re)&&ae;)ae=a.at(re).mode==="text"&&/\s/.test(a.at(re).value),ae&&(ee=re),re+=E;ee=a.at(re)?re-2*E:re-E}return ee-(E>0?0:1)}function pu(a,y,b){var E,ee,re,ae,pe,me,ye;const Se=a.position;(E=b==null?void 0:b.extend)!=null&&E||a.collapseSelection(y);let Ze=a.at(a.position);if(y==="forward"&&(Ze.type==="subsup"?(Ze=Ze.rightSibling,Ze||(Ze=a.at(a.position+1))):Ze=a.at(a.position+1)),!Ze)return a.announce("plonk"),!1;let ct=a.offsetOf(Ze);if(Ze instanceof ys)ct=kf(a,ct,y);else if(Ze instanceof ao)if(Ze.isSuggestion)for(console.assert(y==="forward");Ze&&Ze instanceof ao;)Ze.isSuggestion=!1,ct=a.offsetOf(Ze),Ze=Ze.rightSibling;else if(y==="forward"){if(Ze=Ze.rightSibling,!Ze||!(Ze instanceof ao))return a.announce("plonk"),!1;for(;Ze&&Ze instanceof ao&&/[a-zA-Z\*]/.test(Ze.value);)ct=a.offsetOf(Ze),Ze=Ze.rightSibling}else{if(Ze=Ze.leftSibling,!Ze||!(Ze instanceof ao))return a.announce("plonk"),!1;for(;Ze&&Ze instanceof ao&&/[a-zA-Z\*]/.test(Ze.value);)ct=a.offsetOf(Ze),Ze=Ze.leftSibling}else if(y==="forward"&&Ze.type==="mopen"){let Et=0;do Ze.type==="mopen"?Et+=1:Ze.type==="mclose"&&(Et-=1),Ze=Ze.rightSibling;while(!Ze.isLastSibling&&Et!==0);ct=a.offsetOf(Ze.leftSibling)}else if(y==="backward"&&Ze.type==="mclose"){let Et=0;do Ze.type==="mopen"?Et+=1:Ze.type==="mclose"&&(Et-=1),Ze=Ze.leftSibling;while(!Ze.isFirstSibling&&Et!==0);ct=a.offsetOf(Ze)}else if(y==="backward")if(Ze.type==="first")for(;ct>0&&Ze.type==="first";)ct-=1,Ze=a.at(ct);else{const Et=Ze.type;Ze.type==="subsup"&&(ct=a.offsetOf(a.at(ct).leftSibling)),ct-=1;let Rt=(ee=a.at(ct))==null?void 0:ee.type;for(;ct>=0&&Rt===Et;)((re=a.at(ct))==null?void 0:re.type)==="subsup"?ct=a.offsetOf(a.at(ct).leftSibling):ct-=1,Rt=a.at(ct).type}else{const{type:Et}=Ze;let Rt=(ae=a.at(ct))==null?void 0:ae.type;const{lastOffset:Pn}=a;for(;ct<=Pn&&(Rt===Et||Rt==="subsup");){for(;((pe=a.at(ct).rightSibling)==null?void 0:pe.type)==="subsup";)ct=a.offsetOf(a.at(ct).rightSibling);ct+=1,Rt=(me=a.at(ct))==null?void 0:me.type}ct-=1}if((ye=b==null?void 0:b.extend)!=null&&ye){if(!a.setSelection(a.anchor,ct))return a.announce("plonk"),!1}else{if(ct===a.position)return a.announce("plonk"),!1;a.position=ct}return a.announce("move",Se),a.mathfield.stopCoalescingUndo(),!0}function Ks(a,y,b){var E,ee;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[pe,me]=g0(a);pe!==void 0&&me!==void 0&&a.deleteAtoms([pe,me])}if(y==="upward")return zg(a,b);if(y==="downward")return Hg(a,b);if(b.extend){let pe=_h(a,a.position,y);pe<0&&(pe=0),pe>a.lastOffset&&(pe=a.lastOffset);const me=a.setSelection(a.anchor,pe);return a.mathfield.stopCoalescingUndo(),me}if(a.selectionIsPlaceholder){a.collapseSelection(y);const pe=Ks(a,y);return a.mathfield.stopCoalescingUndo(),pe}let re=a.position;const ae=re;if(a.collapseSelection(y)?(re=a.position,R0(a,re)||(re=_h(a,re,y))):re=_h(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",ae),!0}function _h(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||R0(a,y)?y:_h(a,y,b)}function R0(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=ru(a.getHTMLElement(y[ee])).right,ae=Math.abs(b-re);if(ae<=E)E=ae;else break}return y[ee-1]}function zh(a,y,b,E,ee){const re=a.mathfield.hasEditablePrompts,ae=re?b.filter(ye=>ye.type==="prompt"&&!ye.captureSelection):b,pe=ru(a.mathfield.getHTMLElement(y)).right,me=a.offsetOf(_g(a.mathfield,ae,pe))-(re?1:0);if(E){const[ye,Se]=a.selection.ranges[0];let Ze;me<(ee==="up"?ye:Se)?Ze={ranges:[[me,Se]],direction:"backward"}:Ze={ranges:[[ye,me]],direction:"forward"},a.setSelection(Ze)}else a.setPositionHandlingPlaceholder(me);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 me,ye;let Se=!0;return a.silenceNotifications||(Se=(ye=(me=a.mathfield.host)==null?void 0:me.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?ye:!0),a.announce(Se?"plonk":"line"),Se},ae=a.at(a.position);let pe=ae;for(;pe&&pe.parentBranch!=="below"&&!(Array.isArray(pe.parentBranch)&&pe.parent instanceof Mi);)pe=pe.parent;if(Array.isArray(pe==null?void 0:pe.parentBranch)&&pe.parent instanceof Mi){const me=pe.parent;if(pe.parentBranch[0]<1)return re();const ye=pe.parentBranch[0]-1,Se=me.array[ye][pe.parentBranch[1]];if(!Se.some(ct=>ct.type==="prompt"&&!ct.captureSelection)&&a.mathfield.hasEditablePrompts)return re();zh(a,ae,Se,ee,"up")}else if(pe){const me=(E=pe.parent.branch("above"))!=null?E:pe.parent.createBranch("above");if(!me.some(Se=>Se.type==="prompt"&&Se.placeholderId)&&a.mathfield.hasEditablePrompts)return re();zh(a,ae,me,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 me,ye;let Se=!0;return a.silenceNotifications||(Se=(ye=(me=a.mathfield.host)==null?void 0:me.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?ye:!0),a.announce(Se?"plonk":"line"),Se},ae=a.at(a.position);let pe=ae;for(;pe&&pe.parentBranch!=="above"&&!(Array.isArray(pe.parentBranch)&&pe.parent instanceof Mi);)pe=pe.parent;if(Array.isArray(pe==null?void 0:pe.parentBranch)&&pe.parent instanceof Mi){const me=pe.parent;if(pe.parentBranch[0]+1>me.array.length-1)return re();const ye=pe.parentBranch[0]+1,Se=me.array[ye][pe.parentBranch[1]];if(!Se.some(ct=>ct.type==="prompt"&&!ct.captureSelection)&&a.mathfield.hasEditablePrompts)return re();zh(a,ae,Se,ee,"down")}else if(pe){const me=(E=pe.parent.branch("below"))!=null?E:pe.parent.createBranch("below");if(!me.some(Se=>Se.type==="prompt")&&a.mathfield.hasEditablePrompts)return re();zh(a,ae,me,ee,"down")}else return re();return!0}function N0(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 es({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 es({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(me){const ye=[],Se=[];return[...me.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((ct,Et)=>{const Rt=E(ct);Rt===0?ye.push(ct):Se.push({documentOrder:Et,tabIndex:Rt,node:ct})}),Se.sort((ct,Et)=>ct.tabIndex===Et.tabIndex?ct.documentOrder-Et.documentOrder:ct.tabIndex-Et.tabIndex).map(ct=>ct.node).concat(ye)}function y(me){return!(!b(me)||ee(me)||E(me)<0)}function b(me){return!(me.disabled||me.type==="hidden"&&me.tagName.toUpperCase()==="INPUT"||pe(me))}function E(me){var ye;const Se=Number.parseInt((ye=me.getAttribute("tabindex"))!=null?ye:"NaN",10);return Number.isNaN(Se)?me.contentEditable==="true"||(me.nodeName==="AUDIO"||me.nodeName==="VIDEO")&&me.getAttribute("tabindex")===null?0:me.tabIndex:Se}function ee(me){return me.tagName.toUpperCase()==="INPUT"&&me.type==="radio"&&!ae(me)}function re(me,ye){for(const Se of me)if(Se.checked&&Se.form===ye)return Se;return null}function ae(me){var ye;if(!me.name)return!0;const Ze=((ye=me.form)!=null?ye:me.ownerDocument).querySelectorAll('input[type="radio"][name="'+me.name+'"]'),ct=re(Ze,me.form);return!ct||ct===me}function pe(me){if(!wt()||me===document.activeElement||me.contains(document.activeElement))return!1;if(getComputedStyle(me).visibility==="hidden")return!0;const ye=me.getBoundingClientRect();if(ye.width===0||ye.height===0)return!0;for(;me;){if(getComputedStyle(me).display==="none")return!0;me=me.parentElement}return!1}return wt()?a(document.body):[]}function Mo(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"?Mo(a,[y.leftSibling,y]):Mo(a,[y,y.leftSibling])}function ws(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 Hh(a,y,b=!0){var E,ee;const re=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&Ks(a,y);let ae;const pe=a.at(a.anchor).parentPrompt;pe?y==="forward"?ae=a.offsetOf(pe)+1:ae=a.offsetOf(pe.leftSibling):ae=Math.max(a.position+re,0);const me=Bf(a,ae,y);if(!me||y==="forward"&&a.offsetOf(me)<ae||y==="backward"&&a.offsetOf(me)>ae){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 Se=jg();if(!document.activeElement||Se.length<=1)return a.announce("plonk"),!1;let Ze=Se.indexOf(document.activeElement)+re;return Ze<0&&(Ze=Se.length-1),Ze>=Se.length&&(Ze=0),Se[Ze].focus(),a.mathfield.stopCoalescingUndo(),!0}return ws(a,me),!0}function Bf(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)}zo({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 ae=a.setSelection(a.getBranchRange(a.offsetOf(E),re));return a.mathfield.stopCoalescingUndo(),ae},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=>N0(a),moveToNextChar:a=>Ks(a,"forward"),moveToPreviousChar:a=>Ks(a,"backward"),moveUp:a=>Ks(a,"upward"),moveDown:a=>Ks(a,"downward"),moveToNextWord:a=>pu(a,"forward"),moveToPreviousWord:a=>pu(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 Hh(a,"forward");const re=a.at(a.position);if(re.mode==="text"){if(a.selectionIsCollapsed){let ct=re;for(;ct&&ct.mode==="text";)ct=ct.leftSibling;let Et=re;for(;((y=Et.rightSibling)==null?void 0:y.mode)==="text";)Et=Et.rightSibling;if(ct&&Et)return Mo(a,[ct,Et])}if(re.rightSibling.mode==="text"){let ct=re;for(;ct&&ct.mode==="text";)ct=ct.rightSibling;return ct?(ws(a,(b=ct.leftSibling)!=null?b:ct),a.mathfield.switchMode("math"),!0):ws(a,a.lastOffset)}}const pe=a.at(a.anchor).parentPrompt,me=pe?a.offsetOf(pe)+1:Math.max(a.position+1,0),ye=Bf(a,me,"forward");if(ye)return ws(a,ye);const Se=z0(a,re,ct=>ct.type==="leftright"||ct.type==="text","forward");if(Se){if(Se.mode==="text"){let ct=Se;for(;ct&&ct.mode==="text";)ct=ct.rightSibling;return Mo(a,[(E=Se.leftSibling)!=null?E:Se,(ee=ct.leftSibling)!=null?ee:ct])}return Mo(a,Se)}const Ze=re.parent;if(Ze){if(Ze.type==="leftright"||Ze.type==="surd")return Mo(a,Ze);if(re.parentBranch==="superscript"&&Ze.subscript)return Mo(a,Ze.subscript);if(re.parentBranch==="above"&&Ze.below)return Mo(a,Ze.below);if(re.parentBranch==="superscript"||re.parentBranch==="subscript")return ws(a,Ze);if(re.parentBranch==="above"||re.parentBranch==="below")return Mo(a,Ze)}return ws(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return Hh(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 me=b;for(;((y=me.rightSibling)==null?void 0:y.mode)==="text";)me=me.rightSibling;if(pe&&me)return Mo(a,[pe,me])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?ws(a,b):ws(a,0)}const ee=a.at(a.anchor).parentPrompt,re=ee?a.offsetOf(ee.leftSibling):Math.max(a.position-1,0),ae=Bf(a,re,"backward");if(ae)return ws(a,ae);if(E==="math"){const pe=z0(a,b,ye=>ye.type==="leftright"||ye.type==="text","backward");if(pe){if(pe.mode==="text"){let ye=pe;for(;ye&&ye.mode==="text";)ye=ye.leftSibling;return Mo(a,[pe,ye])}return Mo(a,pe)}const me=b.parent;if(me){if(me.type==="leftright"||me.type==="surd")return Mo(a,me);if(b.parentBranch==="subscript"&&me.superscript)return Mo(a,me.superscript);if(b.parentBranch==="below"&&me.above)return Mo(a,me.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return ws(a,me);if(b.parentBranch==="above"||b.parentBranch==="below")return Mo(a,me)}return ws(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}),zo({moveToNextPlaceholder:a=>Hh(a,"forward"),moveToPreviousPlaceholder:a=>Hh(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 Kh(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 ae=a.at(E);ee=y===0||ae===void 0||ae.type==="first"||ae.mode!=="math"||!(ae.type&&/mord|mpunct|operator/.test(ae.type)||ae.type==="mop"&&/[a-zA-Z ]+/.test(ae.value))||!ae.hasEmptyBranch("superscript")||!ae.hasEmptyBranch("subscript")||typeof b=="function"&&!b(ae),ee||(ae.mode="text",ae.command=ae.value,ae.verbatimLatex=void 0,re+=ae.value),E-=1,y-=1}a.contentDidChange({data:re,inputType:"insertText"})}function xc(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 ae=a.at(E);ee=y===0||!ae||ae.type==="first"||ae.isFirstSibling||ae.mode!=="text"||ae.value===" "||typeof b=="function"&&!b(ae),ee||(re.push(Vn.serialize([ae],{defaultMode:"math"})),ae.mode="math"),E-=1,y-=1}Lf(a),a.contentDidChange({data:Ti(re),inputType:"insertText"})}function Lf(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 Vg(a,y,b){const{model:E}=a;if(E.mode==="latex"||!E.at(E.position).isLastSibling||!b||!wh(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)&&xc(E,1),!0;const ae={")":"(","}":"{","]":"["}[ee],{parent:pe}=E.at(E.position);if(ae&&pe instanceof Vi&&pe.leftDelim===ae)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 xc(E,1),!1;if(/\D\.[^\d\s]$/.test(re)){xc(E,1);const me=E.at(E.position);return me.value="\u22C5",me.style.variant="normal",me.command="\\cdot",me.verbatimLatex=void 0,E.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(re)||/\.\d$/.test(re)||/\([\d+\-.]$/.test(re))return xc(E,1),!0;if(/\([a-z][,;]$/.test(re))return xc(E,2),!0;if(/[\d+\-=><*|]$/.test(ee))return Lf(E),!0}else{if(y==="[Space]")return Kh(E,void 0,ae=>/[a-z][:,;.]$/.test(ae.value)),!0;if(/[a-zA-Z]{3,}$/.test(re)&&!/(dxd|abc|xyz|uvw)$/.test(re))return Kh(E,void 0,ae=>/[a-zA-Z]/.test(ae.value)),!0;if(/(^|\W)(if)$/i.test(re))return Kh(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 Kh(E,void 0,ae=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(ae.value)),!0;if(ee==="?"||ee==="."&&!/[\d-+]\.$/.test(re))return!0}return!1}function Ug(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>"+(vf(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=Eh("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function H0(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(_o("keystroke-caption"),_o("core"),Eh("mathlive-keystroke-caption-panel"))}function Yg(){document.getElementById("mathlive-keystroke-caption-panel")&&(bf("mathlive-keystroke-caption-panel"),x("core"),x("keystroke-caption"))}function K0(a,y){var b,E,ee;const{model:re}=a,ae=p0(y);if(y.isTrusted){Fm(y);const Et=vd();a.keyboardLayout!==Et.id&&(a.keyboardLayout=Et.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Ug(a,ae),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let pe,me="",ye;const Se=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(re.mode==="math")if(ae==="[Backspace]")Se.pop();else if(!wh(y))a.flushInlineShortcutBuffer();else{const Et=lu(y),Rt=[...(E=(b=Se[Se.length-1])==null?void 0:b.keystrokes)!=null?E:[],Et];Se.push({state:re.getState(),keystrokes:Rt,leftSiblings:Xg(a)});let Pn=0,xr="";for(;!pe&&Pn<Rt.length;)ye=Se.length-(Rt.length-Pn),xr=Rt.slice(Pn).join(""),pe=td(Se[ye].leftSiblings,xr,a.options.inlineShortcuts),!pe&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(xr)&&(pe=a.options.onInlineShortcut(a,xr)),Pn+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(pe?a.switchMode("math"):Vg(a,ae,y)&&(a.switchMode({math:"text",text:"math"}[re.mode]),me=""))}if(!pe){if(me||(me=Zm(a.keybindings,re.mode,y)),!me&&(ae==="[Enter]"||ae==="[Return]")){let Et=!1;return re.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(Et=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),Et||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),re.contentDidChange({inputType:"insertLineBreak"})),Et}if((!me||ae==="[Space]")&&re.mode==="math"){if(ae==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return Ci.insert(re,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),me="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const Et=re.at(re.position+1),Rt=re.at(re.position-1);if((Et==null?void 0:Et.mode)==="text"||(Rt==null?void 0:Rt.mode)==="text")return Ci.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)===","&&(me="insertDecimalSeparator")}}if(!pe&&!me){if(re.mathfield.smartFence){if(If(re,lu(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:Et}=re.at(re.position);if(Et instanceof Vi&&Et.rightDelim==="?"&&re.at(re.position).isLastSibling&&/^[)}\]|]$/.test(ae))return a.snapshot(),Et.isDirty=!0,Et.rightDelim=ae,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 Rt=lu(y);if(Rt==="("||Rt==="{"||Rt==="["){const Pn={"(":"(","{":"\\lbrace","[":"\\lbrack"}[Rt],xr={"(":")","{":"\\rbrace","[":"\\rbrack"}[Rt],[kn,Qn]=Ja(re.selection);return a.snapshot(),re.position=Qn,Ci.insert(re,xr,{format:"latex"}),re.position=kn,Ci.insert(re,Pn,{format:"latex"}),re.setSelection(kn+1,Qn+1),re.contentDidChange({data:Rt,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const Ze=re.at(Math.max(re.position,re.anchor)),{parent:ct}=Ze;if(me==="moveAfterParent"&&(ct==null?void 0:ct.type)==="leftright"&&Ze.isLastSibling&&a.options.smartFence&&If(re,".",a.defaultStyle)&&(me="",ya(a)),a.keyboardDelegate.cancelComposition(),me)a.executeCommand(me);else if(pe){const Et=a.effectiveStyle;re.setState(Se[ye].state);const Rt=Se[Se.length-1].keystrokes;for(const Pn of Rt)Ci.insert(re,Pn,{silenceNotifications:!0,style:Et});a.snapshot("insert-shortcut"),re.setState(Se[ye].state),re.deferNotifications({content:!0,selection:!0,data:pe,type:"insertText"},()=>(Ci.insert(re,pe,{format:"latex",style:Et}),Lf(a.model),pe.endsWith(" ")&&(a.switchMode("text"),Ci.insert(re," ",{style:Et,mode:"text"})),a.snapshot(),re.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,re.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function Df(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=rh(y);const re=window.mathVirtualKeyboard;if(re!=null&&re.isShifted&&(ee=typeof ee=="string"?ee.toUpperCase():ee.map(me=>me.toUpperCase())),b.simulateKeystroke){let me=!0;for(const ye of ee)K0(a,new KeyboardEvent("keypress",{key:ye}))&&(me=!1);if(me)return}const ae=E.at(E.position),pe=be(be({},ae.computedStyle),a.defaultStyle);if(E.selectionIsCollapsed||(E.deleteAtoms(Ja(E.selection)),a.snapshot("delete")),E.mode==="latex")E.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{Ch(a);for(const me of ee)Ci.insert(E,me);a.snapshot("insert-latex"),bd(a)});else if(E.mode==="text"){for(const me of ee)Ci.insert(E,me,{style:pe});a.snapshot("insert-text")}else if(E.mode==="math")for(const me of ee)Qg(a,me,pe,ae);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),Ci.insert(ee,y,{style:b}),a.snapshot(),N0(ee),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const ae=a.adoptStyle==="left"?E:E.parent?E.rightSibling:null;(ae==null?void 0:ae.type)==="mord"&&/[a-zA-Z0-9]/.test(ae.value)&&(b=be({},b),ae.style.variant&&(b.variant=ae.style.variant),ae.style.variantStyle&&(b.variantStyle=ae.style.variantStyle))}Ci.insert(ee,y,{style:b}),a.snapshot(`insert-${ee.at(ee.position).type}`)}function Jg(a){a.selectionIsCollapsed||(a.deleteAtoms(Ja(a.selection)),a.mathfield.snapshot("delete"))}function If(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 ae=te[re],pe=ne[re];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[me,ye]=Ja(a.selection),Se=a.extractAtoms([me,ye]),Ze=ee.addChildrenAfter([new Vi("left...right",Se,{leftDelim:re,rightDelim:pe})],a.at(me));return a.setSelection(a.offsetOf(Ze.firstChild),a.offsetOf(Ze.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:re,inputType:"insertText"}),!0}if(re==="|"){const me=ee instanceof Vi?ee.leftDelim+ee.rightDelim:"";if(me==="\\lbrace\\rbrace"||me==="\\{\\}"||me==="\\lbrace?")return a.mathfield.snapshot(),Ci.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 Vi&&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 Vi)){let Ze=E;for(;Ze&&!(Ze.type==="mclose"&&Ze.value===pe);)Ze=Ze.rightSibling;if(Ze){a.mathfield.snapshot();const ct=a.extractAtoms([a.offsetOf(E),a.offsetOf(Ze)]);return ct.pop(),ee.addChildrenAfter([new Vi("left...right",ct,{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 me=a.offsetOf(E.lastSibling);let ye;for(ye=a.position;ye<=me;ye++){const Ze=a.at(ye);if(Ze instanceof Vi&&(Ze.leftDelim==="?"||Ze.leftDelim===".")&&W0(re,Ze.rightDelim))break}const Se=a.at(ye);if(ye<=me&&Se instanceof Vi){Se.leftDelim=re,a.mathfield.snapshot();let Ze=a.extractAtoms([a.position,ye-1]);return Ze=Ze.filter(ct=>ct.type!=="first"),Se.addChildren(Ze,Se.parentBranch),a.position+=1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ee instanceof Vi&&(ee.leftDelim==="?"||ee.leftDelim===".")&&W0(re,ee.rightDelim)){ee.isDirty=!0,ee.leftDelim=re,a.mathfield.snapshot();const Ze=a.extractAtoms([a.offsetOf(E.firstSibling),a.position]);for(const ct of Ze)ee.parent.addChildBefore(ct,ee);return a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ee instanceof Vi&&ee.leftDelim==="|")){if(a.mathfield.snapshot(),Ci.insert(a,`\\left${re}\\right?`,{format:"latex",style:b}),E.lastSibling.type!=="first"){const Ze=a.offsetOf(E.lastSibling),ct=a.extractAtoms([a.position,Ze]);a.at(a.position).body=ct,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(ae){let me=E;for(;me;){if(me.type==="mopen"&&me.value===ae){a.mathfield.snapshot();const Et=me.leftSibling,Rt=a.extractAtoms([a.offsetOf(me.leftSibling),a.offsetOf(E)]);Rt.shift();const Pn=new Vi("left...right",Rt,{leftDelim:ae,rightDelim:re});return ee.addChildrenAfter([Pn],Et),a.position=a.offsetOf(Pn),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}me=me.leftSibling}if(ee instanceof Vi&&E.isLastSibling&&Pf(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 ye=a.offsetOf(E.firstSibling);let Se;for(Se=a.position;Se>=ye;Se--){const Et=a.at(Se);if(Et instanceof Vi&&(Et.rightDelim==="?"||Et.rightDelim===".")&&Pf(Et.leftDelim,re))break}const Ze=a.at(Se);if(Se>=ye&&Ze instanceof Vi)return a.mathfield.snapshot(),Ze.rightDelim=re,Ze.addChildren(a.extractAtoms([Se,a.position]),Ze.parentBranch),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ee instanceof Vi&&(ee.rightDelim==="?"||ee.rightDelim===".")&&Pf(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 ct=ee.parent;return ct instanceof Vi&&(ct.rightDelim==="?"||ct.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(ct),If(a,re,b)):!1}return!1}function Pf(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}zo({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)=>(Df(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}}),zo({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"}),zo({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"}),ya(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=Tf(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=be(be({},a.defaultStyle),b)):a.model.deferNotifications({content:!0,type:"insertText"},()=>{E.selection.ranges.forEach(ee=>Mf(E,ee,b,{operation:"toggle"})),a.snapshot("style-change")}),!0}zo({applyStyle:qg},{target:"mathfield",canUndo:!0,changeContent:!0});function Tf(a,y){var b,E,ee,re,ae,pe,me,ye,Se,Ze;const ct={};if(typeof y.color=="string"){const Rt=(E=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?E:"none";Rt!==y.color&&(ct.verbatimColor=(ee=y.verbatimColor)!=null?ee:y.color),ct.color=Rt}if(typeof y.backgroundColor=="string"){const Rt=(ae=a.backgroundColorMap((re=y.backgroundColor)!=null?re:y.verbatimBackgroundColor))!=null?ae:"none";Rt!==y.backgroundColor&&(ct.verbatimBackgroundColor=(pe=y.verbatimBackgroundColor)!=null?pe:y.backgroundColor),ct.backgroundColor=Rt}typeof y.fontFamily=="string"&&(ct.fontFamily=y.fontFamily),typeof y.series=="string"&&(ct.fontSeries=y.series),typeof y.fontSeries=="string"&&(ct.fontSeries=y.fontSeries.toLowerCase()),ct.fontSeries&&(ct.fontSeries=(me={bold:"b",medium:"m",normal:"m"}[ct.fontSeries])!=null?me:ct.fontSeries),typeof y.shape=="string"&&(ct.fontShape=y.shape),typeof y.fontShape=="string"&&(ct.fontShape=y.fontShape.toLowerCase()),ct.fontShape&&(ct.fontShape=(ye={italic:"it",up:"n",upright:"n",normal:"n"}[ct.fontShape])!=null?ye:ct.fontShape),y.variant&&(ct.variant=y.variant.toLowerCase()),y.variantStyle&&(ct.variantStyle=y.variantStyle.toLowerCase());const Et=(Se=y.size)!=null?Se:y.fontSize;return typeof Et=="number"?ct.fontSize=Math.max(1,Math.min(10,Et)):typeof Et=="string"&&(ct.fontSize=(Ze={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[Et.toLowerCase()])!=null?Ze:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[Et]),ct}function Of(a){let[y,b]=Ja(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 ae=a.at(y);if(!ae)return y;const pe=b==="forward"?1:-1;if(ae.mode==="text"){for(;ae&&!(ae.mode!=="text"||!fe.test(ae.value));)y+=pe,ae=a.at(y);return b==="backward"?y-1:y}if(ae.mode==="latex"){if(/[a-zA-Z\*]/.test(ae.value))if(b==="backward")for(;ae&&ae.mode==="latex"&&ae.value!=="\\"&&/[a-zA-Z]/.test(ae.value);)y+=pe,ae=a.at(y);else for(;ae&&ae.mode==="latex"&&/[a-zA-Z\*]/.test(ae.value);)y+=pe,ae=a.at(y);else if(ae.value==="{"){if(b==="forward"){for(;ae&&ae.mode==="latex"&&ae.value!=="}";)y+=pe,ae=a.at(y);return y}return y-1}else if(ae.value==="}"){if(b==="backward"){for(;ae&&ae.mode==="latex"&&ae.value!=="{";)y+=pe,ae=a.at(y);return y-1}return y}return y-1}if(ae.mode==="math"){if(ae.isDigit()){for(;(E=a.at(y+pe))!=null&&E.isDigit();)y+=pe;return b==="backward"?y-1:y}if(ae.style.variant||ae.style.variantStyle){let me=(ee=a.at(y))==null?void 0:ee.style;for(;me&&me.variant===ae.style.variant&&me.variantStyle===ae.style.variantStyle;)me=(re=a.at(y+pe))==null?void 0:re.style,y+=pe;return b==="backward"?y-1:y}return y}return y}zo({selectGroup:a=>{const y=Of(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>Ks(a,"forward",{extend:!0}),extendSelectionBackward:a=>Ks(a,"backward",{extend:!0}),extendToNextWord:a=>pu(a,"forward",{extend:!0}),extendToPreviousWord:a=>pu(a,"backward",{extend:!0}),extendSelectionUpward:a=>Ks(a,"upward",{extend:!0}),extendSelectionDownward:a=>Ks(a,"downward",{extend:!0}),extendToNextBoundary:a=>pu(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>pu(a,"backward",{extend:!0}),extendToGroupStart:a=>{const y=a.setSelection(a.anchor,a.offsetOf(a.at(a.position).firstSibling));return y||a.announce("plonk"),y},extendToGroupEnd:a=>{const y=a.setSelection(a.anchor,a.offsetOf(a.at(a.position).lastSibling));return y||a.announce("plonk"),y},extendToMathFieldStart:a=>{const y=a.setSelection(a.anchor,0);return y||a.announce("plonk"),y},extendToMathFieldEnd:a=>{const y=a.setSelection(a.anchor,a.lastOffset);return y||a.announce("plonk"),y}},{target:"model",changeSelection:!0});var wc=null,Md=0,Wh=class is{static start(y,b,E,ee){var re;is.element=y,(re=is.controller)==null||re.abort(),is.controller=new AbortController;const ae={signal:is.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",E,ae),y.addEventListener("pointerup",ee,ae),y.addEventListener("pointercancel",ee,ae),Rf(b)&&(is.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",E,ae),window.addEventListener("blur",ee,ae),window.addEventListener("mouseup",ee,ae))}static stop(){var y;(y=is.controller)==null||y.abort(),is.controller=void 0,typeof is.pointerId=="number"&&(is.element.releasePointerCapture(is.pointerId),is.pointerId=void 0)}};function Rf(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,ae=!1,pe="none",me=!1,ye=!1;const Se=y.clientX,Ze=y.clientY,ct=Date.now(),Et=E.field,Rt=setInterval(()=>{me?Et.scroll({top:0,left:Et.scrollLeft-16}):ye&&Et.scroll({top:0,left:Et.scrollLeft+16})},32);function Pn(){Wh.stop(),re=!1,clearInterval(Rt),a.element.classList.remove("tracking"),y&&y.preventDefault()}function xr(Qn){if(!E.hasFocus()){Pn();return}const Lr=Qn.clientX,rr=Qn.clientY,ii=Rf(Qn)&&Qn.pointerType==="touch"?20:5;if(Date.now()<ct+500&&Math.abs(Se-Lr)<ii&&Math.abs(Ze-rr)<ii){Qn.preventDefault(),Qn.stopPropagation();return}const ui=Et.getBoundingClientRect();ye=Lr>ui.right,me=Lr<ui.left;let oi=ee;Rf(Qn)&&(Qn.isPrimary||(oi=Ad(E,Qn.clientX,Qn.clientY,{bias:0})));const zi=Ad(E,Lr,rr,{bias:Lr<=Se?Lr===Se?0:-1:1});oi>=0&&zi>=0&&(E.model.extendSelectionTo(oi,zi),ya(a)),ae&&Of(E.model)}wc&&Math.abs(wc.x-Se)<5&&Math.abs(wc.y-Ze)<5&&Date.now()<wc.time+500?(Md+=1,wc.time=ct):(wc={x:Se,y:Ze,time:ct},Md=1);const kn=Et.getBoundingClientRect();if(Se>=kn.left&&Se<=kn.right&&Ze>=kn.top&&Ze<=kn.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ee=Ad(a,Se,Ze,{bias:0}),ee>=0){if(a.element.classList.add("tracking"),y.shiftKey){const Qn=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ee),v0(a.model)||Qn?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||Md>2?(Pn(),(y.detail===3||Md===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},pe="all")):re||(re=!0,Wh.start(Et,y,xr,Pn),(y.detail===2||Md===2)&&(ae=!0,Of(a.model),pe="all"))}a.hasFocus()||(pe="none",a.focus({preventScroll:!0}))}else wc=null;a.stopCoalescingUndo(),pe!=="none"&&(a.model.selectionIsCollapsed&&(pe="all"),ya(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 V0(a,y,b,E,ee){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const re=Pl(a,b);if(!re)return[1/0,null];let ae=[1/0,null];if(b.hasChildren&&!b.captureSelection&&E>=re.left&&E<=re.right)for(const pe of b.children){const me=V0(a,y,pe,E,ee);me[0]<=ae[0]&&(ae=me)}return ae[1]||(ae=[$g(E,ee,re),b]),y.set(b.id,ae),ae}function ev(a,y,b){const[,E]=V0(a,new Map,a.model.root,y,b);return E}function Ad(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 ae=ev(a,y,b);const pe=[];let me=ae;for(;me;)pe.unshift(me),me=me.parent;for(const Se of pe)if(Se.captureSelection){ae=Se;break}let ye=a.model.offsetOf(ae);if(ye<0)return-1;if(ae.leftSibling)if(E.bias===0&&ae.type!=="placeholder"){const Se=Pl(a,ae);Se&&y<(Se.left+Se.right)/2&&(ye=a.model.offsetOf(ae.leftSibling))}else E.bias<0&&(ye=a.model.offsetOf(ae.leftSibling));return ye}var tv=class extends Ci{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 ae=Rl(re),{model:pe}=a;pe.selectionIsCollapsed||pe.deleteAtoms(Ja(pe.selection));const me=pe.at(pe.position);if(me.parent instanceof Mi){console.assert(me.parentBranch!==void 0);const ye=[];let Se=[];ae[0].type==="first"&&ae.shift(),ae[ae.length-1].type==="first"&&ae.pop();for(const Rt of ae)Rt.type==="first"&&Se.length>0?(ye.push(Se),Se=[Rt]):Se.push(Rt);Se.length>0&&ye.push(Se);let Ze=Number(me.parentBranch[0]),ct=Number(me.parentBranch[1]);const Et=me.parent.maxColumns;for(;me.parent.colCount-ct<ye.length&&me.parent.colCount<Et;)me.parent.addColumn();me.parent.addChildrenAfter(ye[0],me);for(let Rt=1;Rt<ye.length;Rt++)ct++,ct>=Et&&(ct=0,me.parent.addRowAfter(Ze),Ze++),me.parent.setCell(Ze,ct,ye[Rt])}else me.parent.addChildrenAfter(ae.filter(ye=>ye.type!=="first"),me);return pe.position=pe.offsetOf(ae[ae.length-1]),pe.contentDidChange({inputType:"insertFromPaste"}),ya(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 ae=window.MathfieldElement.computeEngine.box(re);ae&&!ae.has("Error")&&(b=ae.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]=Ns(b),E==="auto"&&re&&(E="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:E})&&(a.startRecording(),a.snapshot("paste"),ya(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:ae}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const pe=a.silenceNotifications;a.silenceNotifications=!0;const me={"?":"\\placeholder{}","@":"\\placeholder{}"};me[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Ja(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 ye=-1;me[0]?me["@"]=me[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(ye=rv(a),ye>=0&&(me["@"]=a.getValue(ye,a.position,"latex"))),me[0]||(me[0]=me["?"]);let Se=!1;const Ze=Lr=>(Se=!0,me[Lr]);let[ct,Et]=U0(a,y,Ze,b);if(!Et)return!1;const Rt=Et.length===1&&Et[0].type==="genfrac";Rt&&ye>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(me["@"]=me["?"],Se=!1,[ct,Et]=U0(a,y,Ze,b)):ye>=0&&a.deleteAtoms([ye,a.position]);const{parent:Pn}=a.at(a.position),xr=Pn.hasEmptyBranch("body");if(Rt&&ct!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Pn instanceof Vi&&Pn.leftDelim==="("&&xr){const Lr=Pn.parent,rr=Pn.parentBranch;Lr.removeChild(Pn),Lr.setChildren(Et,rr)}const kn=a.at(a.position);kn.parent.addChildrenAfter(Et,kn),ct==="latex"&&typeof y=="string"&&(Pn==null?void 0:Pn.type)==="root"&&xr&&!Se&&(Pn.verbatimLatex=y),a.silenceNotifications=pe;const Qn=Et[Et.length-1];if(b.selectionMode==="placeholder"){const Lr=Et.flatMap(rr=>[rr,...rr.children]).find(rr=>rr.type==="placeholder");if(Lr){const rr=a.offsetOf(Lr);a.setSelection(rr-1,rr),a.announce("move")}else Qn&&(a.position=a.offsetOf(Qn))}else b.selectionMode==="before"||(b.selectionMode==="after"?Qn&&(a.position=a.offsetOf(Qn)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(Qn)));return a.contentDidChange({data:re,inputType:"insertText"}),a.silenceNotifications=ae,!0}};function U0(a,y,b,E){var ee;let re,ae=[];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],ae=$a(y,{context:a.mathfield.context})}else typeof y=="string"&&E.format==="ascii-math"?([re,y]=uc(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),ae=$a(y,{context:a.mathfield.context}),re!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&jh(ae)):(E.format==="auto"||(ee=E.format)!=null&&ee.startsWith("latex"))&&(E.format==="auto"&&([re,y]=uc(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),E.format==="latex"&&([,y]=Ns(y)),ae=$a(y,{context:a.mathfield.context,args:b}),E.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&jh(ae));return Fl(ae,E.style),[re!=null?re:"latex",ae]}function nv(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof Vi&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function jh(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof Vi&&b.leftDelim==="("){let E=0,ee=0,re=0;for(let ae=0;b.body[ae];ae++)b.body[ae].type==="genfrac"&&(E++,ee=ae),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)){jh(y.branch(b));const E=nv(y.branch(b));E&&y.setChildren(E,b)}if(y instanceof Mi)for(const b of y.cells)jh(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 Ci{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"),ya(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(Ja(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(Fl(re,b.style),!re)return!1;const ae=a.at(a.position),pe=ae.parent.addChildrenAfter(re,ae);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 "),$a(a,{context:y,parseMode:"text"})}new iv;function Ws(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var la=4,Do=20,za=2*(Do+la),Zh=(a,y)=>`
|
|
|
<line x1="${a+Do}" y1="${y+Do}"
|
|
|
x2="${a>y?a+Do:7*Do+10*la}"
|
|
|
y2="${a<y?y+Do:7*Do+10*la}"/>
|
|
|
<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+Do}" y1="${y+Do}"
|
|
|
x2="${a>y?a+Do:7*Do+10*la}"
|
|
|
y2="${a<y?y+Do:7*Do+10*la}"/>
|
|
|
<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>`,Vh=(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*Do+10*la+5} ${8*Do+10*la+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${za+la}"
|
|
|
height="${3*za}"
|
|
|
width="${za}"
|
|
|
rx="${za/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${za+la}"
|
|
|
y="0"
|
|
|
height="${za}"
|
|
|
width="${3*za}"
|
|
|
rx="${za/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${Vh(2*(la+za),2*la+3*za,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${Vh(2*(la+za),2*la+za,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${Vh(2*la+3*za,2*(la+za),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${Vh(2*la+za,2*(la+za),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${Zh(2*la+za,la)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${Y0(2*la+2*za,la)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${Zh(2*la+3*za,la)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${Zh(la,2*la+za)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${Y0(la,2*la+2*za)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${Zh(la,2*la+3*za)}
|
|
|
</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>`,hv=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>`,fv=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>`,Nf={matrix:sv,pmatrix:lv,bmatrix:cv,Bmatrix:X0,vmatrix:uv,Vmatrix:dv},Ff={cases:hv,rcases:fv,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(Rt=>{(!ee||Rt.length>ee)&&(ee=Rt.length)});let re=document.getElementById("mathlive-environment-popover");re||(re=Eh("mathlive-environment-popover"),_o("environment-popover"),_o("core"),re.setAttribute("aria-hidden","true"));let ae;const pe=re.querySelector(".MLEP__environment-controls");pe?ae=pe:(ae=document.createElement("div"),re.innerHTML="",re.appendChild(ae)),ae.className="MLEP__environment-controls",ae.style.display="flex",ae.style.width="100%",ae.style.height="100%",ae.style.boxSizing="border-box",ae.innerHTML=ov;let me=[],ye="";const Se=a.model.parentEnvironment.environmentName;if(yo(Se)){const Rt=gv(Se);ye=Nf[Rt]("active");const Pn=Nf,{[Rt]:xr}=Pn,kn=ft(Pn,[_e(Rt)]);me=Object.values(kn).map(Qn=>Qn("inactive"))}else if(bo(Se)){const Rt=vv(Se);ye=Ff[Rt]("active");const Pn=Ff,{[Rt]:xr}=Pn,kn=ft(Pn,[_e(Rt)]);me=Object.values(kn).map(Qn=>Qn("inactive"))}else Da(Se)&&(ye=Nf.matrix("active"),me=Object.values(Ff).map(Rt=>Rt("inactive")));const Ze=document.createElement("div");Ze.className="MLEP__environment-delimiter-controls",Ze.style.display="flex",Ze.style.flexDirection="column",Ze.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${ye}
|
|
|
${me.join("")}
|
|
|
</div>`,ye&&ae.appendChild(Ze),ae.querySelectorAll("[data-command]").forEach(Rt=>{const Pn=Rt.dataset.command;let xr=Pn;try{xr=JSON.parse(Pn)}catch(kn){}Rt.addEventListener("mousedown",kn=>kn.preventDefault()),xr&&Rt.addEventListener("click",()=>a.executeCommand(xr))});const Et=(b=a.field)==null?void 0:b.getBoundingClientRect();Et&&(re.style.top=`${window.scrollY+(Et.top-re.clientHeight-15)}px`,re.style.left=`${Et.left+20}px`,re.classList.add("is-visible"))}function _f(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function mv(){document.getElementById("mathlive-environment-popover")&&(bf("mathlive-environment-popover"),x("environment-popover"),x("core"))}function Uh(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&ha(b.environmentName)){const E=a.options.environmentPopoverPolicy;y=E==="auto"||E==="on"}}y?pv(a):_f()}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 zf(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 ae=a.getBoundingClientRect(),pe=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let me=Math.min(pe,(E=y.height)!=null?E:ae.height),ye=zf(y.location.y,me,y.verticalPos,re);ye+me>window.innerHeight-8&&(y.alternateLocation?(ye=zf(y.alternateLocation.y,me,y.verticalPos,re),ye+me>window.innerHeight-8&&(ye=void 0)):ye=void 0),Number.isFinite(ye)||(ye=Math.max(8,window.innerHeight-8-me),8+me>window.innerHeight-8&&(a.style.bottom="8px")),me=Math.min(ye+me,window.innerHeight-8)-ye;const Se=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let Ze=Math.min(Se,(ee=y.width)!=null?ee:ae.width),ct=zf(y.location.x,Ze,y.horizontalPos,re);ct+Ze>window.innerWidth-8&&(y.alternateLocation?(ct=yv(y.alternateLocation.x,Ze,y.verticalPos,re),ct+Ze>window.innerWidth-8&&(ct=void 0)):ct=void 0),Number.isFinite(ct)||(ct=Math.max(8,window.innerWidth-8-Ze),8+Ze>window.innerWidth-8&&(a.style.right="8px")),Ze=Math.min(ct+Ze,window.innerWidth-8)-ct,re==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-ct-Ze).toString()}px`:a.style.left=`${Math.ceil(ct).toString()}px`,a.style.top=`${Math.ceil(ye).toString()}px`,me!==ae.height&&(a.style.height=`${Math.ceil(me).toString()}px`),Ze!==ae.width&&(a.style.width=`${Math.ceil(Ze).toString()}px`)}function xv(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function mu(a){return"submenu"in a}function js(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function Hf(a){return"type"in a&&a.type==="divider"}function Kf(a){return"type"in a&&a.type==="heading"}var q0={};function Wf(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,mu(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=js(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(Hf(ee)){this.enabled=!1,this.checked=!1;return}Kf(ee)&&(this.enabled=!1,this.checked=!1,this.visible=!0),js(ee)&&(this.checked=js(ee)&&((y=gu(ee.checked,a))!=null?y:!1)),(js(ee)||mu(ee))&&(this.enabled=(b=gu(ee.enabled,a))!=null?b:!0,this.visible=(E=gu(ee.visible,a))!=null?E:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(js(ee)||Kf(ee)||mu(ee))&&(this.label=gu(ee.label,a),this.tooltip=gu(ee.tooltip,a),this.ariaLabel=gu(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(Wf("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(Wf("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),js(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=vf(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Wf("trailing-chevron"))}get element(){if(this._element)return this._element;if(Hf(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,(js(this._declaration)||Kf(this._declaration)||mu(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(!js(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 ae=this.submenu.element.getBoundingClientRect(),pe=this.element.getBoundingClientRect();ae.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 gu(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 Eu{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(ye=>ye.updateState(y));const re=this.hasCheck;this.hasCheck=this._menuItems.some(ye=>ye.visible&&ye.hasCheck),this.hasCheck!==re&&this._menuItems.forEach(ye=>ye.updateState(y));let ae,pe=0;for(const ye of this._menuItems)ye.type==="heading"?(ae&&pe===0&&(ae.visible=!1),ae=ye,pe=0):ye.type==="divider"&&ae?(ae.visible=pe>0,ae=void 0,pe=0):ae&&ye.visible&&(pe+=1);ae&&(ae.visible=pe>0);let me=!0;for(const ye of this._menuItems)ye.type==="divider"?(ye.visible=!me,me=!0):ye.visible&&(me=!1);(b=this.activeMenuItem)!=null&&b.visible||(this.activeMenuItem=null),!((E=this.activeMenuItem)!=null&&E.enabled)&&((ee=this.activeMenuItem)==null?void 0:ee.type)==="submenu"&&this._activeMenuItem.submenu.hide(),this._dirty=!1}get enabled(){return this.updateIfDirty(),this._menuItems.some(y=>y.type!=="divider"&&y.visible&&y.enabled)}get visible(){return this.updateIfDirty(),this._menuItems.some(y=>y.type!=="divider"&&y.visible)}set dirty(y){console.assert(y===!0),this._dirty!==y&&y&&this.parentMenu&&(this._dirty=!0,this.parentMenu.dirty=!0)}updateIfDirty(){this._dirty&&this.updateState(this.rootMenu.modifiers)}updateElement(){var y;if(this._element){this._element.textContent="";for(const{element:b,visible:E}of this._menuItems)b&&E&&this._element.append(b);(y=this._element.querySelector("li:first-of-type"))==null||y.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const y=document.createElement("menu");y.setAttribute("role","menu"),y.setAttribute("tabindex","-1"),y.setAttribute("aria-orientation","vertical"),y.setAttribute("part","ui-menu-container"),this._submenuClass&&y.classList.add(this._submenuClass),y.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const b=this._abortController.signal;return y.addEventListener("focus",this,{signal:b}),y.addEventListener("wheel",this,{passive:!0,signal:b}),this._element=y,this.updateElement(),y}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(y){var b,E,ee,re;if(this.rootMenu.cancelDelayedOperation(),y!==this._activeMenuItem){if(this.activeMenuItem){const ae=this.activeMenuItem;ae.active=!1,(b=ae.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 ae=this._menuItems[ee];if(!ae)break;if(ae.visible&&ae.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 Eu._collator||(Eu._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),Eu._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,ae=0;for(;ae<ee&&!re;)re=(b=E.find(pe=>Eu.collator.compare(y,pe.label.substring(ae,y.length))===0))!=null?b:null,ae++;return re}show(y){return!this.visible||!y.container?!1:(this.updateElement(),y.container.appendChild(this.element),Vt()&&(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),Vt()&&((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 ae=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((E=this.activeMenuItem.element)==null||E.setAttribute("aria-expanded",ae.toString())),(re=(ee=this.activeMenuItem)==null?void 0:ee.element)==null||re.classList.toggle("is-submenu-open",ae),this.isSubmenuOpen=ae}},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 ae=this.activeSubmenu,pe=ae.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)ae.activeMenuItem=ae.firstMenuItem;else{const me=(b=ae.getMenuItemColumn(pe))!=null?b:-1;if(me>=0&&me<((E=ae.columnCount)!=null?E:1)-1){const ye=ae.nextMenuItem(1);ye&&(ae.activeMenuItem=ye)}}break;case"ArrowLeft":if(ae===this.rootMenu)pe||(ae.activeMenuItem=ae.firstMenuItem);else if((pe&&(ee=ae.getMenuItemColumn(pe))!=null?ee:-1)<=0||!pe){ae.hide();const ye=ae.parentMenu.activeMenuItem;if(ye){const{element:Se}=ye;Se==null||Se.focus(),Se==null||Se.classList.remove("is-submenu-open")}}else{const ye=ae.nextMenuItem(-1);ye&&(ae.activeMenuItem=ye)}break;case"ArrowDown":ae.activeMenuItem=ae.nextMenuItem(ae.columnCount);break;case"ArrowUp":ae.activeMenuItem=ae.nextMenuItem(-ae.columnCount);break;case"Home":case"PageUp":ae.activeMenuItem=ae.firstMenuItem;break;case"End":case"PageDown":ae.activeMenuItem=ae.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const me=ae.findMenuItem(this.typingBuffer);me&&(ae.activeMenuItem=me),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(wh(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const me=ae.findMenuItem(this.typingBuffer);me&&(ae.activeMenuItem=me),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 zs.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),zs.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),zs.state==="open"&&zs.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(Ce(be({},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,zs.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 Hf(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(js(a)||mu(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||js(a)&&typeof a.checked=="function"?!0:mu(a)?a.submenu.some(rp):!1}var Gh=class{};Gh.DELAY=300,Gh.MAX_DISTANCE=10;function Cv(a){return new Promise((y,b)=>{const E=xh(a);E||y(!1);let ee=E;const re=setTimeout(()=>{ae.abort(),y(xv(ee,E)<Gh.MAX_DISTANCE)},Gh.DELAY),ae=new AbortController,pe=ae.signal;for(const me of["pointermove","pointerup","pointercancel"])window.addEventListener(me,ye=>{if(ye.type==="pointerup"||ye.type==="pointercancel")clearTimeout(re),ae.abort(),y(!1);else if(ye.type==="pointermove"){const Se=xh(ye);Se&&(ee=Se)}},{passive:!0,signal:pe})})}function ip(a,y,b){return Hl(this,null,function*(){if(a.type==="contextmenu"){const E=a;if(b.show({target:y,location:xh(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=xh(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};at(Object.keys(ap),"{body:auto}",{createAtom:a=>new z(Ce(be({},a),{body:$e(a.args[0]),accentChar:ap[a.command.slice(1)]}))}),at(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=Ye($e(a.args[0]));return new z(Ce(be({},a),{body:$e(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),at(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new z(Ce(be({},a),{body:$e(a.args[0]),svgAccent:"overarc"}))}),at(["underarc","underparen"],"{body:auto}",{createAtom:a=>new ts(Ce(be({},a),{body:$e(a.args[0]),svgBelow:"underarc"}))}),at("utilde","{body:auto}",{createAtom:a=>{const y=$e(a.args[0]),b=Ye(y),E="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new ts(Ce(be({},a),{body:y,svgBelow:E,boxType:kl(y)}))}}),at("^","{:string}",{createAtom:a=>{var y;return new Vn(Ce(be({},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:"^"}))}}),at("`","{:string}",{createAtom:a=>{var y;return new Vn(Ce(be({},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:"`"}))}}),at("'","{:string}",{createAtom:a=>{var y;return new Vn(Ce(be({},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:"'"}))}}),at('"',"{:string}",{createAtom:a=>{var y,b;return new Vn(Ce(be({},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]:'"'}))}}),at(".","{:string}",{createAtom:a=>{var y,b;return new Vn(Ce(be({},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]:"."}))}}),at("=","{:string}",{createAtom:a=>{var y,b;return new Vn(Ce(be({},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]:"="}))}}),at("~","{:string}",{createAtom:a=>{var y;return new Vn(Ce(be({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"}))}}),at("c","{:string}",{createAtom:a=>{var y;return new Vn(Ce(be({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),at("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 ae=E[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const pe of ae){const me=pe.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(me)ee.strokeWidth=me[1],ee.strokeStyle=me[2],ee.strokeColor=me[3];else{const ye=pe.match(/\s*([a-z]*)\s*=\s*"(.*)"/);ye&&(ye[1]==="mathbackground"?ee.backgroundcolor=ye[2]:ye[1]==="mathcolor"?ee.strokeColor=ye[2]:ye[1]==="padding"?ee.padding=ye[2]:ye[1]==="shadow"&&(ee.shadow=ye[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(ae=>ae.length>0).forEach(ae=>{re[ae.toLowerCase()]=!0}),new cd(a.command,$e(E[2]),re,ee)}}),at("cancel","{body:auto}",{createAtom:a=>{var y;return new cd(a.command,$e(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:{}})}}),at("bcancel","{body:auto}",{createAtom:a=>{var y;return new cd(a.command,$e(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:{}})}}),at("xcancel","{body:auto}",{createAtom:a=>{var y;return new cd(a.command,$e(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:{}})}}),at(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new ts(Ce(be({},a),{body:$e((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),at("overbrace","{:auto}",{createAtom:a=>new ts(Ce(be({},a),{body:$e(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),at(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new ts(Ce(be({},a),{body:$e(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),at(["underbrace"],"{:auto}",{createAtom:a=>new ts(Ce(be({},a),{body:$e(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),at(["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 ts(Ce(be({},a),{svgBody:a.command.slice(1),above:((b=$e((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:$e((E=a.args)==null?void 0:E[1]),below:(re=$e((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)}`}),at(["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 hc(a.command.slice(1),Ce(be({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),at(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new hc({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],Ce(be({},a),{limits:"over-under",variant:"main"}))}),at(["lim","mod"],"",{ifMode:"math",createAtom:a=>new hc(a.command.slice(1),Ce(be({},a),{limits:"over-under",variant:"main"}))}),at(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new hc(a.command.slice(1),Ce(be({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),at(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new Vn(Ce(be({},a),{body:$e(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 Mr("\xB0",{style:Ce(be({},a.style),{variant:"normal",variantStyle:"up"})});return new Mr([b,ee],{type:"inner",isSelected:a.isSelected,caret:E})}}),at("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new o0(Ce(be({},a),{body:$e(a.args[1]),index:a.args[0]?$e(a.args[0]):void 0}))}),at(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=be({},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 ou(E[0]?$e(E[0]):[new hi],E[1]?$e(E[1]):[new hi],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}`:sa(a.command,b,E)}}),at(["brace","brack"],"",{infix:!0,createAtom:a=>new ou($e(a.args[0]),$e(a.args[1]),Ce(be({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>Ti([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),at(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const E=a.args;return a.command==="\\choose"&&(y="(",b=")"),new ou($e(E[0]),$e(E[1]),Ce(be({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>Ti([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),at(["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 ou($e(E[0]),$e(E[1]),Ce(be({},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)}`}),at("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new ou($e(a.args[0]),$e(a.args[1]),Ce(be({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),at(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:a=>new hf({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)],Ce(be({},a),{limits:"auto",variant:"main"}))}),at("smallint","",{ifMode:"math",createAtom:a=>new hc("\u222B",Ce(be({},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"};at(Object.keys(op),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=op[y.slice(1)];return new hf(b,Ce(be({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),at(["Re","Im"],"",{ifMode:"math",createAtom:a=>new hc({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],Ce(be({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),at("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new r0(Ce(be({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),at("the","{:value}",{createAtom:a=>new Vn(Ce(be({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const E=new _i({parent:y},a.style);let ee="";a.isSelected&&(ee+=" ML__selected");const re=E.evaluate(a.args[0]);return new Mr(((b=La(re))!=null?b:"").split("").map(ae=>new Mr(ae,{type:"ord",classes:ee,mode:a.mode,isSelected:a.isSelected,style:be({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=La(a.args[0]))!=null?y:"\\relax"}`}}),at("mathtip","{:auto}{:math}",{createAtom:a=>new ff(Ce(be({},a),{body:$e(a.args[0]),tooltip:$e(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Vn.serialize([a.tooltip],Ce(be({},y),{defaultMode:"math"}))}}`}),at("texttip","{:auto}{:text}",{createAtom:a=>new ff(Ce(be({},a),{body:$e(a.args[0]),tooltip:$e(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Vn.serialize([a.tooltip],Ce(be({},y),{defaultMode:"text"}))}}`}),at("error","{:math}",{createAtom:a=>new Vn(Ce(be({},a),{body:$e(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),at("ensuremath","{:math}",{createAtom:a=>new Vn(Ce(be({},a),{body:$e(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(Ce(be({},y),{defaultMode:"math"}))}}`}),at("color","{:value}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=La(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),at("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=La(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),at("boxed","{content:math}",{createAtom:a=>new Ca(Ce(be({},a),{body:$e(a.args[0]),framecolor:{string:"black"}}))}),at("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimBackgroundColor:(E=La(y[0]))!=null?E:void 0,backgroundColor:b.toBackgroundColor((ee=y[0])!=null?ee:{string:"yellow"})}}}),at("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new Ca(Ce(be({},a),{body:$e(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(Ce(be({},y),{defaultMode:"text"})):sa(a.command,(b=La(a.framecolor))!=null?b:"",(E=La(a.backgroundcolor))!=null?E:"",a.bodyToLatex(Ce(be({},y),{defaultMode:"text"})))}}),at("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],E=$e(a.args[1]);return b?new Ca(Ce(be({},a),{body:E,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new Ca(Ce(be({},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=La(a.padding))!=null?b:""),a.border&&re.push(`border: ${a.border}`),a.backgroundcolor&&re.push((E=La(a.backgroundcolor))!=null?E:""),ee+=`[${re.join(",")}]`}return sa(ee,a.bodyToLatex(y))}}),at(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new Vn(Ce(be({},a),{body:$e(a.args[0])})),render:(a,y)=>{const b=new _i({parent:y,mathstyle:a.command.slice(1)},a.style),E=Vn.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):`{${Ti([a.command,a.bodyToLatex(y)])}}`}),at(["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]})}),at("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),at("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),at("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),at("selectfont","",{ifMode:"text",applyStyle:()=>({})}),at("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),at(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new Vn(Ce(be({},a),{body:$e(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),at("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),at("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),at("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),at("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),at("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),at("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),at("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),at("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),at("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),at("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),at("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),at("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),at("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),at("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),at("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),at("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),at("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),at("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),at("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),at("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),at("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),at("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),at("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),at("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),at("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),at("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),at("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),at(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),at(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),at("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),at("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),at("mbox","{:text}",{ifMode:"math",createAtom:a=>new Vn(Ce(be({},a),{type:"mord",body:$e(a.args[0]),mode:"math"})),serialize:(a,y)=>sa("\\mbox",a.bodyToLatex(Ce(be({},y),{defaultMode:"text"})))}),at("text","{:text}",{ifMode:"math",applyMode:"text"}),at(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new Vn(Ce(be({},a),{body:$e(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:""})}}),at(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new Vn(Ce(be({},a),{body:$e(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}}),at("htmlData","{data:string}{content:auto}",{createAtom:a=>new Vn(Ce(be({},a),{body:$e(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}}),at(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new Vn(Ce(be({},a),{body:$e(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}}),at("em","{:rest}",{createAtom:a=>new Vn(Ce(be({},a),{body:$e(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"})}),at("emph","{:auto}",{createAtom:a=>new Vn(Ce(be({},a),{body:$e(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}};at(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new i0(Ce(be({},a),{delim:(y=a.args[0])!=null?y:".",size:sp[a.command].size,delimType:sp[a.command].mclass}))}}),at(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new hd(Ce(be({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),at(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new hd(Ce(be({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),at("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new Vn(a),render:(a,y)=>{let b=0;const E=y.mathstyle.id;(E===sc||E===Ts)&&(b=1),(E===ul||E===mo)&&(b=2),(E===Fo||E===Qa)&&(b=3);const ee=$e(a.args[b]);return Vn.createBox(y,ee)},serialize:(a,y)=>`\\mathchoice{${Vn.serialize(a.args[0],y)}}{${Vn.serialize(a.args[1],y)}}{${Vn.serialize(a.args[2],y)}}{${Vn.serialize(a.args[3],y)}}`}),at("mathop","{:auto}",{createAtom:a=>new Vn(Ce(be({},a),{type:"mop",body:$e(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let E=Vn.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 Mr(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[sa(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)),Ti(b)}}),at(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new Vn(Ce(be({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:$e(a.args[0])}))}),at(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=$e(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 Vn(Ce(be({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let E=Vn.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 Mr(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[sa(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)),Ti(b)}}),at(["char","unicode"],"{charcode:value}",{createAtom:a=>new Vn(Ce(be({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${La((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)}}),at("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new Vn(a),render:(a,y)=>{var b,E,ee;const re=new _i({parent:y,mathstyle:"textstyle"},a.style),ae=re.toEm((b=a.args[0])!=null?b:{dimension:0}),pe=re.toEm((E=a.args[1])!=null?E:{dimension:10}),me=re.toEm((ee=a.args[2])!=null?ee:{dimension:10}),ye=new Mr(null,{classes:"rule",type:"ord"});return ye.width=pe,ye.height=me+ae,ye.depth=-ae,ye.setStyle("border-right-width",pe,"em"),ye.setStyle("border-top-width",me,"em"),ye.setStyle("border-color",a.style.color),ye.setStyle("vertical-align",ae,"em"),a.isSelected&&ye.setStyle("opacity","50%"),a.bind(re,ye),a.caret&&(ye.caret=a.caret),ye.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${La(a.args[0])}]`:""}{${La(a.args[1])}}{${La(a.args[2])}}`}),at(["overline","underline"],"{:auto}",{createAtom:a=>new Vn(Ce(be({},a),{body:$e(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),E=new _i({parent:y,mathstyle:"cramp"},a.style),ee=Vn.createBox(E,a.body);if(!ee)return null;const re=E.metrics.defaultRuleThickness/E.scalingFactor,ae=new Mr(null,{classes:b+"-line"});ae.height=re,ae.maxFontSize=re*1.125*E.scalingFactor;let pe;return b==="overline"?pe=new ta({shift:0,children:[{box:ee},3*re,{box:ae},re]}):pe=new ta({top:ee.height,children:[re,{box:ae},3*re,{box:ee}]}),a.caret&&(pe.caret=a.caret),new Mr(pe,{classes:b,type:"ignore"})}}),at("overset","{:auto}{base:auto}",{createAtom:a=>{const y=$e(a.args[1]);return new ts(Ce(be({},a),{above:$e(a.args[0]),body:y,skipBoundary:!1,boxType:kl(y)}))},serialize:(a,y)=>sa(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),at("underset","{:auto}{base:auto}",{createAtom:a=>{const y=$e(a.args[1]);return new ts(Ce(be({},a),{below:$e(a.args[0]),body:y,skipBoundary:!1,boxType:kl(y)}))},serialize:(a,y)=>sa(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),at("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=$e(a.args[2]);return new ts(Ce(be({},a),{above:$e(a.args[0]),below:$e(a.args[1]),body:y,skipBoundary:!1,boxType:kl(y)}))},serialize:(a,y)=>sa(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),at(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new ts(Ce(be({},a),{body:$e(a.args[2]),above:$e(a.args[1]),below:$e(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>sa(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),at("smash","[:string]{:auto}",{createAtom:a=>{var y,b,E,ee;return new dd(Ce(be({},a),{body:$e(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}))}}),at(["vphantom"],"{:auto}",{createAtom:a=>new dd(Ce(be({},a),{body:$e(a.args[0]),isInvisible:!0,smashWidth:!0}))}),at(["hphantom"],"{:auto}",{createAtom:a=>new dd(Ce(be({},a),{body:$e(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),at(["phantom"],"{:auto}",{createAtom:a=>new dd(Ce(be({},a),{body:$e(a.args[0]),isInvisible:!0}))}),at("not","{:math}",{createAtom:a=>{const y=$e(a.args[0]);return y.length===0?new Vn(Ce(be({},a),{type:"mrel",value:"\uE020"})):new Vn(Ce(be({},a),{body:[new dc(Ce(be({},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{${Vn.serialize(b.group,y)}}`:`\\not${Vn.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":kl($e(a.args[0])),ee=Vn.createBox(y,a.body,{type:E});return a.caret&&(ee.caret=a.caret),a.bind(y,ee)}}),at(["ne","neq"],"",{createAtom:a=>new Vn(Ce(be({},a),{type:"mrel",body:[new dc(Ce(be({},a),{body:"\uE020",align:"right",boxType:"rel"})),new Vn(Ce(be({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),at("rlap","{:auto}",{createAtom:a=>new dc(Ce(be({},a),{body:$e(a.args[0]),align:"right"}))}),at("llap","{:auto}",{createAtom:a=>new dc(Ce(be({},a),{body:$e(a.args[0]),align:"left"}))}),at("mathrlap","{:math}",{createAtom:a=>new dc(Ce(be({},a),{body:$e(a.args[0]),align:"left"}))}),at("mathllap","{:math}",{createAtom:a=>new dc(Ce(be({},a),{body:$e(a.args[0]),align:"left"}))}),at("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new Ca(Ce(be({},a),{body:$e(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return sa("\\raisebox",(b=La(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),at("raise","{:value}{:auto}",{createAtom:a=>{var y;return new Ca(Ce(be({},a),{body:$e(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return sa("\\raise",(b=La(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),at("lower","{:value}{:auto}",{createAtom:a=>{var y;return new Ca(Ce(be({},a),{body:$e(a.args[1]),padding:{dimension:0},offset:(y=$o(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,E;return sa("\\lower",(E=La($o((b=a.offset)!=null?b:{dimension:0},-1)))!=null?E:"0pt",a.bodyToLatex(y))}}),Ae("0123456789/@.?!"),rt(65,90),rt(97,122),Ae([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Ae([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Ae([["\\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]]),Ae([["\\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"),Ae([["\\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"]]),Ae([["\\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"]]),Ae([["\\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"),Ae([["+",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"),Ae([["\\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"),Ae([["\\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]]),Ae([["=",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"),Ae([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Ae([["\\wp",8472],["\\aleph",8501]]),Ae([["\\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"),Ae([["\\ ",160],["~",160]],"space"),at(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new hd(a)}),at("space","",{createAtom:a=>new hd(a)}),Ae([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Ae([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Ae([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var lp="<mo>⁡</mo>",Yh="<mo>⁢</mo>";function Xh(a){return a.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function ia(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Ev(a,y,b){var E,ee,re,ae,pe,me,ye,Se,Ze,ct,Et;let Rt=!1;y=y!=null?y:a.atoms.length;let Pn="",xr="",kn=a.atoms[a.index];const Qn=(ee=(E=kn.style)==null?void 0:E.variant)!=null?ee:"",Lr=(ae=(re=kn.style)==null?void 0:re.variantStyle)!=null?ae:"";let rr="";if(Qn||Lr){const ui=_t(kn.value,(pe=kn.style)==null?void 0:pe.variant,(me=kn.style)==null?void 0:me.variantStyle);if(ui!==kn.value)return a.index+=1,Pn=`<mi${ia(kn.id,b)}>${ui}</mi>`,ml(Pn,a,b)||(a.mathML+=Pn,a.lastType="mi"),!0;rr=(ye={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"}[Lr+Qn])!=null?ye:"",rr=` mathvariant="${rr}"`}const ii={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(kn.command==="!")return a.index+=1,Pn="<mo>!</mo>",ml(Pn,a,b)||(a.mathML+=Pn,a.lastType="mo"),!0;if(ii[kn.command]){a.index+=1;let ui=`<mi${ia(kn.id,b)}${rr}>${ii[kn.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(ui=Yh+ui),ml(ui,a,b)||(a.mathML+=ui,a.lastType="mi"),!0}if(kn.command==="\\operatorname")xr=vu(kn.body),a.index+=1;else if(Qn||Lr)for(;a.index<y&&(kn.type==="mord"||kn.type==="macro")&&!kn.isDigit()&&Qn===((Ze=(Se=kn.style)==null?void 0:Se.variant)!=null?Ze:"")&&Lr===((Et=(ct=kn.style)==null?void 0:ct.variantStyle)!=null?Et:"");)xr+=vu([kn]),a.index+=1,kn=a.atoms[a.index];else(kn.type==="mord"||kn.type==="macro")&&!kn.isDigit()&&(xr+=vu([kn]),a.index+=1);if(xr.length>0){Rt=!0,Pn=`<mi${rr}>${xr}</mi>`;const ui=a.lastType;Pn.endsWith(">f</mi>")||Pn.endsWith(">g</mi>")?(Pn+=lp,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(Pn)?"mo":"mi",ml(Pn,a,b)||((ui==="mi"||ui==="mn"||ui==="mtext"||ui==="fence")&&(Pn=Yh+Pn),a.mathML+=Pn)}return Rt}function Mv(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function Av(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 ml(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 ae=Ui(ee.superscript,b);y.lastType="";const pe=Ui(ee.subscript,b);if(y.lastType=re,!ae&&!pe)return!1;let me="";return ae&&pe?me=`<msubsup>${a}${pe}${ae}</msubsup>`:ae?me=`<msup>${a}${ae}</msup>`:pe&&(me=`<msub>${a}${pe}</msub>`),y.mathML+=me,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 ${ia(a.atoms[E].id,b)}>${ee}</mtext>`,a.lastType="mtext",!0):!1}function Bv(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="",re=Av(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"+ia(a.atoms[E].id,b)+">"+ee+"</mn>",re<0&&Mv(a)&&(re=a.index,a.index+=1),ml(ee,a,b)||(a.mathML+=ee,a.lastType="mn"),!0)}function Lv(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 ae=!1,pe=0;const me=a.index;let ye=-1,Se=me+1;for(;Se<y&&!ae;)a.atoms[Se].type==="mopen"?pe+=1:a.atoms[Se].type==="mclose"&&(pe-=1),pe===-1&&(ae=!0,ye=Se),Se+=1;ae&&(ee="<mrow>",ee+=Sc(a.atoms[me],b),ee+=Ui(a.atoms,b,me+1,ye),ee+=Sc(a.atoms[ye],b),ee+="</mrow>",a.index=ye+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=Yh),ml(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 ae=a.atoms[a.index];if(!ae)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[ae.command]){a.index+=1;const me=`<mo${ia(ae.id,b)}>${pe[ae.command]}</mo>`;return ml(me,a,b)||(a.mathML+=me,a.lastType="mo"),!0}if(a.index<y&&(ae.type==="mbin"||ae.type==="mrel"))ee+=jf(a.atoms[a.index],b),a.index+=1,re="mo";else if(a.index<y&&(ae.type==="mop"||ae.type==="operator"||ae.type==="extensible-symbol")){if(ae.subsupPlacement==="over-under"&&(ae.superscript||ae.subscript)){const me=Sc(ae,b);return ae.superscript&&ae.subscript?(ee+="<munderover>"+me,ee+=Ui(ae.subscript,b),ee+=Ui(ae.superscript,b),ee+="</munderover>"):ae.superscript?(ee+="<mover>"+me,ee+=Ui(ae.superscript,b),ee+="</mover>"):ae.subscript&&(ee+="<munder>"+me,ee+=Ui(ae.subscript,b),ee+="</munder>"),a.mathML+=ee,a.lastType="mo",a.index+=1,!0}{const me=a.atoms[a.index],ye=me.value==="\\operatorname",Se=ye?'<mi class="MathML-Unit"'+ia(me.id,b)+">"+vu(me.value)+"</mi>":Sc(me,b);ee+=Se,!ye&&!/^<mo>(.*)<\/mo>$/.test(Se)?(ee+=lp,re="applyfunction"):re=ye?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ee)&&(ee=Yh+ee),a.index+=1}return ee.length>0&&(E=!0,ml(ee,a,b)||(a.mathML+=ee,a.lastType=re)),E}function Ui(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 Vn)ee.mathML=jf(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)||Bv(ee,E,y)||Ev(ee,E,y)||Dv(ee,E,y)||Lv(ee,E,y))re+=1;else if(ee.index<E){let ae=jf(ee.atoms[ee.index],y);ee.lastType==="mn"&&ae.length>0&&ee.atoms[ee.index].type==="genfrac"&&(ae="<mo>⁤</mo>"+ae),ee.atoms[ee.index].type==="genfrac"?ee.lastType="mfrac":ee.lastType="",ee.index+=1,ml(ae,ee,y)?re+=1:ae.length>0&&(ee.mathML+=ae,re+=1)}re>1&&(ee.mathML="<mrow>"+ee.mathML+"</mrow>")}return ee.mathML}function Sc(a,y){let b="";const E=vu(a.value);return E&&(b="<mo"+ia(a.id,y)+">"+E+"</mo>"),b}function vu(a){if(!a)return"";if(typeof a=="string")return Xh(a);if(!Array.isArray(a)&&typeof a.body=="string")return Xh(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return Xh(y)}function jf(a,y){var b,E,ee,re,ae,pe,me,ye,Se,Ze,ct,Et,Rt,Pn,xr,kn,Qn,Lr,rr,ii,ui,oi;if(a.mode==="text")return`<mi${ia(a.id,y)}>${a.value}</mi>`;const zi={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"},$i={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let zr="",Go="",Vs,rs,to,Yo,Io,aa;const{command:Ma}=a;if(a.command==="\\error")return`<merror${ia(a.id,y)}>${Ui(a.body,y)}</merror>`;const no={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Us={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(a.type){case"first":break;case"group":case"root":zr=Ui(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(zr+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(zr+="<mo>"+(no[a.leftDelim]||a.leftDelim)+"</mo>")),zr+="<mtable",a.colFormat){for(zr+=' columnalign="',to=0;to<a.colFormat.length;to++)a.colFormat[to].align&&(zr+={l:"left",c:"center",r:"right"}[a.colFormat[to].align]+" ");zr+='"'}for(zr+=">",rs=0;rs<a.array.length;rs++){for(zr+="<mtr>",Vs=0;Vs<a.array[rs].length;Vs++)zr+="<mtd>"+Ui(a.array[rs][Vs],y)+"</mtd>";zr+="</mtr>"}zr+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(zr+="<mo>"+(no[a.leftDelim]||a.rightDelim)+"</mo>"),zr+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(zr+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(zr+="<mo"+ia(a.id,y)+">"+(no[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(zr+="<mfrac>",zr+=Ui(a.above,y)||"<mi> </mi>",zr+=Ui(a.below,y)||"<mi> </mi>",zr+="</mfrac>"):(zr+="<mtable"+ia(a.id,y)+">",zr+="<mtr>"+Ui(a.above,y)+"</mtr>",zr+="<mtr>"+Ui(a.below,y)+"</mtr>",zr+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(zr+="<mo"+ia(a.id,y)+">"+(no[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(zr+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(zr+="<msqrt"+ia(a.id,y)+">",zr+=Ui(a.body,y),zr+="</msqrt>"):(zr+="<mroot"+ia(a.id,y)+">",zr+=Ui(a.body,y),zr+=Ui(a.above,y),zr+="</mroot>");break;case"leftright":const Gs=a,Ys=Gs.leftDelim;zr="<mrow>",Ys&&Ys!=="."&&(zr+=`<mo${ia(a.id,y)}>${(b=no[Ys])!=null?b:Ys}</mo>`),a.body&&(zr+=Ui(a.body,y));const Xs=Gs.matchingRightDelim();Xs&&Xs!=="."&&(zr+=`<mo${ia(a.id,y)}>${(E=no[Xs])!=null?E:Xs}</mo>`),zr+="</mrow>";break;case"sizeddelim":case"delim":zr+=`<mo${ia(a.id,y)}>${no[a.value]||a.value}</mo>`;break;case"accent":zr+='<mover accent="true"'+ia(a.id,y)+">",zr+=Ui(a.body,y),zr+="<mo>"+(Us[Ma]||a.accent)+"</mo>",zr+="</mover>";break;case"line":case"overlap":break;case"overunder":Io=a.above,Yo=a.below,(a.svgAbove||Io)&&(a.svgBelow||Yo)?aa=a.body:Io&&Io.length>0?(aa=a.body,(re=(ee=a.body)==null?void 0:ee[0])!=null&&re.below?(Yo=a.body[0].below,aa=a.body[0].body):((pe=(ae=a.body)==null?void 0:ae[0])==null?void 0:pe.type)==="first"&&((ye=(me=a.body)==null?void 0:me[1])!=null&&ye.below)&&(Yo=a.body[1].below,aa=a.body[1].body)):Yo&&Yo.length>0&&(aa=a.body,(Ze=(Se=a.body)==null?void 0:Se[0])!=null&&Ze.above?(Io=a.body[0].above,aa=a.body[0].body):((Et=(ct=a.body)==null?void 0:ct[0])==null?void 0:Et.type)==="first"&&((Pn=(Rt=a.body)==null?void 0:Rt[1])!=null&&Pn.above)&&(Io=a.body[1].overscript,aa=a.body[1].body)),(a.svgAbove||Io)&&(a.svgBelow||Yo)?(zr+=`<munderover ${ia(a.id,y)}>`,zr+=(xr=zi[a.svgBody])!=null?xr:Ui(aa,y),zr+=(kn=zi[a.svgBelow])!=null?kn:Ui(Yo,y),zr+=(Qn=zi[a.svgAbove])!=null?Qn:Ui(Io,y),zr+="</munderover>"):a.svgAbove||Io?(zr+=`<mover ${ia(a.id,y)}>`+((Lr=zi[a.svgBody])!=null?Lr:Ui(aa,y)),zr+=(rr=zi[a.svgAbove])!=null?rr:Ui(Io,y),zr+="</mover>"):(a.svgBelow||Yo)&&(zr+=`<munder ${ia(a.id,y)}>`+((ii=zi[a.svgBody])!=null?ii:Ui(aa,y)),zr+=(ui=zi[a.svgBelow])!=null?ui:Ui(Yo,y),zr+="</munder>");break;case"placeholder":zr+="?";break;case"mord":{zr=typeof a.value=="string"?a.value:Ma,Ma==="\\char"?zr="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":zr.length>0&&zr.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?zr="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?zr=a.value.charAt(0):(console.error("Did not expect this"),zr=""));const Ss=/\d/.test(zr)?"mn":"mi";zr=`<${Ss}${ia(a.id,y)}>${Xh(zr)}</${Ss}>`;break}case"mbin":case"mrel":case"minner":zr=Sc(a,y);break;case"mpunct":zr='<mo separator="true"'+ia(a.id,y)+">"+Ma+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(zr="<mo"+ia(a.id,y)+">",zr+=Ma==="\\operatorname"?a.body:Ma||a.body,zr+="</mo>");break;case"box":zr='<menclose notation="box"',a.backgroundcolor&&(zr+=' mathbackground="'+a.backgroundcolor+'"'),zr+=ia(a.id,y)+">"+Ui(a.body,y)+"</menclose>";break;case"spacing":zr+='<mspace width="'+((oi=$i[Ma])!=null?oi:0)+'em"/>';break;case"enclose":zr='<menclose notation="';for(const Ss in a.notation)Object.prototype.hasOwnProperty.call(a.notation,Ss)&&a.notation[Ss]&&(zr+=Go+Ss,Go=" ");zr+=ia(a.id,y)+'">'+Ui(a.body,y)+"</menclose>";break;case"prompt":zr='<menclose notation="roundexbox""">'+Ui(a.body,y)+"</menclose>";break;case"space":zr+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":zr+=Sc(a,y);break;case"mclose":zr+=Sc(a,y);break;case"macro":{const Ss=a.command+vu(a.macroArgs);Ss&&(zr+=`<mo ${ia(a.id,y)}>${Ss}</mo>`)}break;case"latexgroup":zr+=Ui(a.body,y);break;case"latex":zr+="<mtext"+ia(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":zr+=Ui(a.body,y);break;case"text":zr+=`<mtext ${ia(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${ia(a.id,y)} displaystyle="true">${Ui(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${ia(a.id,y)} displaystyle="false">${Ui(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return zr}var yu={"\\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"},Zf={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 kd(a){let y=0;if(Ie(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Pv(a){if(Ie(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function cp(a){let y="";if(Ie(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Tv(a){return a?a.map(y=>y.value).join(""):""}function Fi(a,y){var b,E,ee,re,ae;function pe(Se){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(Se)?` <say-as interpret-as="character">${Se}</say-as>`:/[A-Z]/.test(Se)?`capital <say-as interpret-as="character">${Se.toLowerCase()}</say-as>`:Se:/[a-z]/.test(Se)?" '"+Se.toUpperCase()+"'":/[A-Z]/.test(Se)?" 'capital "+Se.toUpperCase()+"'":Se}function me(Se){return"<emphasis>"+Se+"</emphasis>"}if(!y)return"";let ye="";if(Ie(y)){let Se=!1,Ze=!1;for(let ct=0;ct<y.length;ct++)y[ct].type!=="first"&&(y[ct].mode!=="text"&&(Ze=!1),ct<y.length-2&&y[ct].type==="mopen"&&y[ct+2].type==="mclose"&&y[ct+1].type==="mord"?(ye+=" of ",ye+=me(Fi(a,y[ct+1])),ct+=2):y[ct].mode==="text"?Ze?ye+=(b=y[ct].value)!=null?b:" ":(Ze=!0,ye+=Fi("text",y[ct])):y[ct].isDigit()?Se?ye+=y[ct].asDigit():(Se=!0,ye+=Fi(a,y[ct])):(Se=!1,ye+=Fi(a,y[ct])))}else if(y.mode==="text")y.id&&a==="math"&&(ye+='<mark name="'+y.id.toString()+'"/>'),ye+=y.value;else{y.id&&a==="math"&&(ye+='<mark name="'+y.id.toString()+'"/>');let Se="",Ze="",ct="",Et=!1;const{command:Rt}=y;switch(Rt){case"\\vec":return"vector "+Fi(a,y.body);case"\\acute":return Fi(a,y.body)+" acute";case"\\grave":return Fi(a,y.body)+" grave";case"\\dot":return"dot over"+Fi(a,y.body);case"\\ddot":return"double dot over"+Fi(a,y.body);case"\\mathring":return"ring over"+Fi(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+Fi(a,y.body);case"\\bar":return Fi(a,y.body)+" bar";case"\\breve":return Fi(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Fi(a,y.body);case"\\hat":case"\\widehat":return"hat over"+Fi(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Fi(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+Fi(a,y.body)}switch(y.type){case"prompt":const Pn=y.body.length>1?'start input . <break time="500ms"/> '+Fi(a,y.body)+'. <break time="500ms"/> end input':"blank";ye+=' <break time="300ms"/> '+Pn+'. <break time="700ms"/>'+((E=y.correctness)!=null?E:"")+' . <break time="700ms"/> ';break;case"array":const xr=y.array,kn=y.environmentName;if(Object.keys(Zf).includes(kn)){ye+=` begin ${Zf[kn]} `;for(let rr=0;rr<xr.length;rr++){rr>0&&(ye+=","),ye+=` row ${rr+1} `;for(let ii=0;ii<xr[rr].length;ii++)ii>0&&(ye+=","),ye+=` column ${ii+1}: `,ye+=Fi("math",xr[rr][ii])}ye+=` end ${Zf[kn]} `}break;case"group":Rt==="\\ne"?ye+=" not equal ":(Rt==="\\not"&&(ye+=" not "),ye+=Fi("math",y.body));break;case"root":ye+=Fi("math",y.body);break;case"genfrac":if(Se=Fi("math",y.above),Ze=Fi("math",y.below),kd(y.above)&&kd(y.below)){const ii={"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)];ii?ye=ii:ye+=Se+" over "+Ze}else ye+=' the fraction <break time="150ms"/>'+Se+' over <break time="150ms"/>'+Ze+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(ct=Fi("math",y.body),y.hasEmptyBranch("above"))ye+=kd(y.body)?" the square root of "+ct+" , ":' the square root of <break time="200ms"/>'+ct+'. <break time="200ms"/> End square root';else{let rr=Fi("math",y.above);rr=rr.trim();const ii=rr.replace(/<mark([^/]*)\/>/g,"");ii==="3"?ye+=' the cube root of <break time="200ms"/>'+ct+'. <break time="200ms"/> End cube root':ii==="n"?ye+=' the nth root of <break time="200ms"/>'+ct+'. <break time="200ms"/> End root':ye+=' the root with index: <break time="200ms"/>'+rr+', of <break time="200ms"/>'+ct+'. <break time="200ms"/> End root'}break;case"leftright":{const rr=y;ye+=(ee=rr.leftDelim?yu[rr.leftDelim]:void 0)!=null?ee:rr.leftDelim,ye+=Fi("math",y.body),ye+=(re=rr.rightDelim?yu[rr.rightDelim]:void 0)!=null?re:rr.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const Qn=Rt.replace(/^\\/g,""),Lr=fn()[Qn];Lr&&(Lr!=null&&Lr.expand?ye+=Fi("math",y.body):ye+=`${Qn} `);break;case"placeholder":ye+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(Rt==="\\mathbin"||Rt==="\\mathrel"||Rt==="\\mathopen"||Rt==="\\mathclose"||Rt==="\\mathpunct"||Rt==="\\mathord"||Rt==="\\mathinner"){ye=Fi(a,y.body);break}let rr=y.isDigit()?y.asDigit():y.value,ii=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(ii=y.value,rr=ii),a==="text")ye+=rr;else{if(y.type==="mbin"&&(ye+='<break time="150ms"/>'),rr){const ui=yu[rr]||(ii?yu[ii.trim()]:"");if(ui)ye+=" "+ui;else{const oi=ii?Iv(ii.trim()):"";ye+=oi||pe(rr)}}else ye+=Fi("math",y.body);y.type==="mbin"&&(ye+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const rr=y.command;if(rr==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let ii=Fi("math",y.superscript);ii=ii.trim();let ui=Fi("math",y.subscript);ui=ui.trim(),ye+=' the summation from <break time="200ms"/>'+ui+'<break time="200ms"/> to <break time="200ms"/>'+ii+'<break time="200ms"/> of <break time="150ms"/>',Et=!0}else if(y.hasEmptyBranch("subscript"))ye+=" the summation of";else{let ii=Fi("math",y.subscript);ii=ii.trim(),ye+=' the summation from <break time="200ms"/>'+ii+'<break time="200ms"/> of <break time="150ms"/>',Et=!0}else if(rr==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let ii=Fi("math",y.superscript);ii=ii.trim();let ui=Fi("math",y.subscript);ui=ui.trim(),ye+=' the product from <break time="200ms"/>'+ui+'<break time="200ms"/> to <break time="200ms"/>'+ii+'<break time="200ms"/> of <break time="150ms"/>',Et=!0}else if(y.hasEmptyBranch("subscript"))ye+=" the product of ";else{let ii=Fi("math",y.subscript);ii=ii.trim(),ye+=' the product from <break time="200ms"/>'+ii+'<break time="200ms"/> of <break time="150ms"/>',Et=!0}else if(rr==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let ii=Fi("math",y.superscript);ii=ii.trim();let ui=Fi("math",y.subscript);ui=ui.trim(),ye+=' the integral from <break time="200ms"/>'+me(ui)+'<break time="200ms"/> to <break time="200ms"/>'+me(ii)+' <break time="200ms"/> of ',Et=!0}else ye+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const ii=(ae=yu[y.value])!=null?ae:y.command?yu[y.command]:void 0;ye+=ii||" "+y.value}else y.command&&(y.command==="\\mathop"?ye+=Fi("math",y.body):y.command==="\\operatorname"?ye+=Tv(y.body):ye+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":ct=Fi("math",y.body),ye+=" crossed out "+ct+". End crossed out.";break;case"space":case"spacing":break}if(!Et&&!y.hasEmptyBranch("superscript")){let Pn=Fi(a,y.superscript);Pn=Pn.trim();const xr=Pn.replace(/<[^>]*>/g,"");if(kd(y.superscript)){if(a==="math"){const kn=Pv(y.superscript);kn&&(ye+='<mark name="'+kn+'"/>')}xr==="\u2032"?ye+=" prime ":xr==="2"?ye+=" squared ":xr==="3"?ye+=" cubed ":Number.isNaN(Number.parseInt(xr))?ye+=" to the "+Pn+"; ":ye+=' to the <say-as interpret-as="ordinal">'+xr+"</say-as> power; "}else Number.isNaN(Number.parseInt(xr))?ye+=" raised to the "+Pn+"; ":ye+=' raised to the <say-as interpret-as="ordinal">'+xr+"</say-as> power; "}if(!Et&&!y.hasEmptyBranch("subscript")){let Pn=Fi("math",y.subscript);Pn=Pn.trim(),ye+=kd(y.subscript)?" sub "+Pn:" subscript "+Pn+". End subscript. "}}return ye}function bu(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ee=Ui(a);if(ee){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=Ce(be({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=Ce(be({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=Ce(be({},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 ae="";try{ae=re.toSpeech(ee)}catch(pe){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",pe)}return ae}return""}let E=Fi("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"&<()==="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 Bd={"\\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"},Ld={"\\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 Ea(a){var y,b,E,ee,re,ae,pe,me,ye,Se,Ze,ct,Et;if(!a)return"";if(Ie(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(Ea).join("");if(a[0].mode==="text"){let Lr=0,rr="";for(;((y=a[Lr])==null?void 0:y.mode)==="text";)rr+=a[Lr].body?Ea(a[Lr].body):a[Lr].value,Lr++;return`"${rr}" ${Ea(a.slice(Lr))}`}let kn=0;const Qn=[];for(;a[kn]&&a[kn].mode==="math";){let Lr="";for(;a[kn]&&a[kn].type==="mord"&&/\d/.test(a[kn].value);)Lr+=a[kn++].value;Lr?Qn.push(Lr):Qn.push(Ea(a[kn++]))}return Qn.push(Ea(a.slice(kn))),Ov(Qn)}if(a.mode==="text")return`"${a.value}"`;let Rt="";const{command:Pn}=a;let xr;if(Pn==="\\placeholder")return`(${Ea(a.body)})`;switch(a.type){case"accent":const kn={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Pn];Rt=`${kn!=null?kn:""} ${Ea(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(oi=>oi.value).join("");case"group":case"root":Rt=(b=Bd[Pn])!=null?b:Ea(a.body);break;case"genfrac":{const oi=a;(oi.leftDelim||oi.rightDelim)&&(Rt=oi.leftDelim==="."||!oi.leftDelim?"{:":oi.leftDelim),oi.hasBarLine?(Rt+="(",Rt+=Ea(oi.above),Rt+=")/(",Rt+=Ea(oi.below),Rt+=")"):(Rt+="("+Ea(oi.above)+"),",Rt+="("+Ea(oi.below)+")"),(oi.leftDelim||oi.rightDelim)&&(Rt+=oi.rightDelim==="."||!oi.rightDelim?"{:":oi.rightDelim)}break;case"surd":Rt+=a.hasEmptyBranch("above")?"sqrt("+Ea(a.body)+")":"root("+Ea(a.above)+")("+Ea(a.body)+")";break;case"latex":Rt=a.value;break;case"leftright":{const oi=a,zi=oi.leftDelim;Rt+=zi==="."||!zi?"{:":zi,Rt+=Ea(oi.body);const $i=oi.matchingRightDelim();Rt+=$i==="."||!$i?":}":$i}break;case"sizeddelim":case"delim":Rt=a.value;break;case"overlap":break;case"overunder":break;case"mord":Rt=(ee=(E=Bd[Pn])!=null?E:Pn)!=null?ee:typeof a.value=="string"?a.value:"",Rt.startsWith("\\")&&(Rt+=" "),xr=Pn?Pn.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,xr?Rt=String.fromCodePoint(Number.parseInt("0x"+xr[1])):Rt.length>0&&Rt.startsWith("\\")&&(Rt=typeof a.value=="string"?a.value.charAt(0):a.command),Rt=Rv(Rt,a.style);break;case"mbin":case"mrel":case"minner":Rt=(ae=(re=Bd[Pn])!=null?re:Ld[Pn])!=null?ae:a.value;break;case"mopen":case"mclose":Rt=a.value;break;case"mpunct":Rt=(pe=Ld[Pn])!=null?pe:Pn;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(Ld[Pn]?Rt=Ld[Pn]:Rt=Pn==="\\operatorname"?Ea(a.body):(me=a.value)!=null?me:Pn,Rt+=" ");break;case"array":const Qn=a.array,Lr=a.environmentName,rr=(ye={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Lr])!=null?ye:["(",")"],ii=[];for(const oi of Qn){const zi=[];for(const $i of oi)zi.push(rr[0]+Ea($i)+rr[1]);ii.push(zi.join(","))}const ui=(Se={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Lr])!=null?Se:["(",")"];Rt=ui[0]+ii.join(",")+ui[1];break;case"box":break;case"spacing":Rt=(Ze=Bd[Pn])!=null?Ze:" ";break;case"enclose":Rt="("+Ea(a.body)+")";break;case"space":Rt=" ";break;case"subsup":Rt="";break;case"macro":Rt=(Et=(ct=Bd[Pn])!=null?ct:Ld[Pn])!=null?Et:Ea(a.body);break}if(!a.hasEmptyBranch("subscript")){Rt+="_";const kn=Ea(a.subscript);Rt+=kn.length!==1?`(${kn})`:kn}if(!a.hasEmptyBranch("superscript")){Rt+="^";const kn=Ea(a.superscript);Rt+=kn.length!==1?`(${kn})`:kn}return Rt}function Rv(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 eo(a,y){var b,E;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ee=new _i({from:Ce(be({},$c()),{renderPlaceholder:()=>new Mr(160,{maxFontSize:1}),letterShapeStyle:(E=y==null?void 0:y.letterShapeStyle)!=null?E:"tex"}),mathstyle:y.mathstyle}),ae=new Vn({mode:"math",type:"root",body:$a(a,{context:ee,parseMode:"math",mathstyle:y.mathstyle})}).render(ee);return ae?(Qc(fd(ae,ee)),Jc(ae,{classes:"ML__latex"}).toMarkup()):""}function k1(a){return t0(a,{context:$c()})}function Nv(a,y={}){return Ui($a(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function Fv(a){const y=$a(a,{parseMode:"math",mathstyle:"displaystyle"});return bu(y)}var Qh;function _v(a){var y,b;if(!Qh){const E=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;E?Qh=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=Qh==null?void 0:Qh.box(a).latex)!=null?b:""}function B1(a,y="math"){return Ea(new Vn({type:"root",body:$a(a,{parseMode:y})}))}function L1(a){return uc(a,{format:"ascii-math"})[1]}function Vf(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 xu(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 Uf(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),ae=Math.atan2(E,b)*180/Math.PI,pe={L:y,C:ee,H:ae};return a.alpha!==void 0&&(pe.alpha=a.alpha),pe}function Gf(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),ae=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*E,3),pe=4.076741661347994*ee-3.307711590408193*re+.230969928729428*ae,me=-1.2684380040921763*ee+2.6097574006633715*re-.3413193963102197*ae,ye=-.004196086541837188*ee-.7034186144594493*re+1.7076147009309444*ae,Se=Ze=>{const ct=Math.abs(Ze);return ct<=.0031308?Ze*12.92:(Math.sign(Ze)||1)*(1.055*Math.pow(ct,1/2.4)-.055)};return[Se(pe),Se(me),Se(ye)]}function Yf(a){const[y,b,E]=a;return y>=0&&y<=1&&b>=0&&b<=1&&E>=0&&E<=1}function Xf(a,y){let[b,E,ee]=a;return b=xu(b*255),E=xu(E*255),ee=xu(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]=Gf(a);if(Yf([y,b,E]))return Xf([y,b,E],a.alpha);const ee=Hv(a);if(ee.C=0,[y,b,E]=Gf(Uf(ee)),!Yf([y,b,E]))return Xf([y,b,E],a.alpha);let re=0,ae=a.L,pe=(re+ae)/2;ee.C=pe;const me=.36/Math.pow(2,12);for(;ae-re>me;)pe=(re+ae)/2,ee.C=pe,[y,b,E]=Gf(Uf(ee)),Yf([y,b,E])?re=pe:ae=pe;return Xf([y,b,E],a.alpha)}function Kv(a){return up(Uf(a))}function dp(a,y){const b=Vf(a),E=Vf(y),ee=.56,re=.57,ae=.62,pe=.65,me=.022,ye=1.414,Se=.1,Ze=5e-4,ct=1.14,Et=.027,Rt=1.14,Pn=.027;function xr(oi){return oi>=me?oi:oi+Qs(me-oi,ye)}function kn(oi){return(oi<0?-1:1)*Math.pow(Math.abs(oi),2.4)}const Qn=xr(kn(E.r/255)*.2126729+kn(E.g/255)*.7151522+kn(E.b/255)*.072175),Lr=xr(kn(b.r/255)*.2126729+kn(b.g/255)*.7151522+kn(b.b/255)*.072175);let rr,ii,ui;return Math.abs(Lr-Qn)<Ze?ii=0:Lr>Qn?(rr=Qs(Lr,ee)-Qs(Qn,re),ii=rr*ct):(rr=Qs(Lr,pe)-Qs(Qn,ae),ii=rr*Rt),Math.abs(ii)<Se?ui=0:ii>0?ui=ii-Pn:ui=ii+Et,ui*100}function hp(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=Vf(a);let b=((1<<24)+(xu(y.r)<<16)+(xu(y.g)<<8)+xu(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 ca(a){const y=fp(a);let b="";for(const E of y){if(typeof E.value!="string")return"";b+=E.value}return b}function fp(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function jv(a,y){const b=fp(a);if(b.length!==1)return!1;const E=pf[y];return E?!!E.test(b[0].value):!1}function Zv(a,y){return ca(a).length>0}function Vv(a){return[Qf(a,"double-struck","mathbb","tooltip.blackboard"),Qf(a,"fraktur","mathfrak","tooltip.fraktur"),Qf(a,"calligraphic","mathcal","tooltip.caligraphic"),Jf(a,"up","mathrm","tooltip.roman-upright"),Jf(a,"bold","mathbf","tooltip.bold"),Jf(a,"italic","mathit","tooltip.italic")]}function Uv(a){return[{label:()=>eo(`\\vec{${ca(a)}}`),visible:()=>ca(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>eo(`\\overrightarrow{${ca(a)}}`),visible:()=>ca(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>eo(`\\overleftarrow{${ca(a)}}`),visible:()=>ca(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>eo(`\\dot{${ca(a)}}`),visible:()=>ca(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>eo(`\\ddot{${ca(a)}}`),visible:()=>ca(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>eo(`\\bar{${ca(a)}}`),visible:()=>ca(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>eo(`\\overline{${ca(a)}}`),visible:()=>ca(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>eo(`\\overgroup{${ca(a)}}`),visible:()=>ca(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>eo(`\\overbrace{${ca(a)}}`),visible:()=>ca(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>eo(`\\underline{${ca(a)}}`),visible:()=>ca(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>eo(`\\undergroup{${ca(a)}}`),visible:()=>ca(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>eo(`\\underbrace{${ca(a)}}`),visible:()=>ca(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Gv(a){return[{label:()=>eo(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>eo(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>eo(`\\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(Ue))y.push({class:(Wv(hp(Ue[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Ue[b]} "></span>`,ariaLabel:()=>{var E;return(E=gt(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(tt))y.push({class:(hp(tt[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${tt[b]} "></span>`,ariaLabel:()=>{var E;return(E=gt(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:()=>gt("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:()=>gt("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>Cc(a)},{label:()=>gt("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>Cc(a)},{label:()=>gt("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>Cc(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,E]=e1(a);return b<y.maxColumns}},{label:()=>gt("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>Cc(a)},{type:"divider"},{label:()=>gt("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>Cc(a)},{label:()=>gt("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>Cc(a)},{type:"divider"},{label:()=>gt("menu.borders"),visible:()=>($v(a)||Cc(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>Dd(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>Dd(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>Dd(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>Dd(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>Dd(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>gt("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:Jv(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>gt("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>gt("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{cu(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>gt("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{cu(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>gt("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>gt("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:Vv(a),submenuClass:"variant-submenu"},{label:()=>gt("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Xv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>gt("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Yv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>gt("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Uv(a),submenuClass:"variant-submenu"},{label:()=>gt("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&ca(a).length>0,submenu:Gv(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>gt("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:()=>gt("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?gt("menu.solve-for",eo(b)):gt("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 ae;return(ae=re.simplify().latex)!=null?ae:""});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:()=>gt("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>gt("menu.copy"),id:"copy",submenu:[{label:()=>gt("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>Ci.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>gt("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>Ci.copyToClipboard(a,"ascii-math")},{label:()=>gt("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>Ci.copyToClipboard(a,"math-ml")}]},{label:()=>gt("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>gt("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function Cc(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 Dd(a,y){Ch(a),a.flushInlineShortcutBuffer(),P0(a.model,y),ya(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 Qf(a,y,b,E){return{label:()=>eo(`\\${b}{${ca(a)}}`),tooltip:()=>{var ee;return(ee=gt(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 Jf(a,y,b,E){return{label:()=>eo(`\\${b}{${ca(a)}}`),tooltip:()=>{var ee;return(ee=gt(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 wu(a,y){return a+bu(y)}zo({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 ae(Se){let Ze=null;switch(Se){case"all":Ze=re.root;break;case"selection":Ze=re.getAtoms(re.selection);break;case"left":{Ze=re.getAtoms(re.offsetOf(re.at(re.position).leftSibling),re.position);break}case"right":{Ze=re.getAtoms(re.position,re.offsetOf(re.at(re.position).rightSibling));break}case"group":Ze=re.getAtoms(re.getSiblingsRange(re.position));break;case"parent":{const{parent:ct}=re.at(re.position);ct!=null&&ct.parent?Ze=ct:Ze=re.root;break}default:Ze=re.root}return Ze}function pe(Se){let Ze="";switch(Se){case"all":console.log("Internal failure: speak all failed");break;case"selection":Ze="no selection";break;case"left":Ze="at start";break;case"right":Ze="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Ze="no parent";break;default:console.log('unknown speak_ param value: "'+Se+'"');break}return Ze}const me=ae(y);if(me===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 ye=bu(me);return wt()&&b.withHighlighting?(zl().readAloudMathfield=a,pc(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,ye)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(ye),!1}function r1(a){var y,b;if(!wt()){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,ae)=>{if(re)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${re}`);else if(ae!=null&&ae.AudioStream){const pe=new Uint8Array(ae.AudioStream),me=new Blob([pe.buffer],{type:"audio/mpeg"}),ye=URL.createObjectURL(me);new Audio(ye).play().catch(Ze=>console.log(Ze))}else console.log("polly.synthesizeSpeech():",ae)})}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=wu("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=wu("",a.model.at(a.model.position));else if(y==="line"){const re=wu("",a.model.root);a.keyboardDelegate.setAriaLabel(re)}else ee=E?wu(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 wu("",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+=wu("",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=Rl(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 Se=re.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(Se))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((E=this.at(Se-1))!=null&&E.parentPrompt){this._anchor=this.normalizeOffset(Se-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ee=this.at(Se+1))!=null&&ee.parentPrompt){this._anchor=this.normalizeOffset(Se+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=Se,this._position=Se,this._selection=re;return}const ae=Ja(re);re.direction==="backward"?[this._position,this._anchor]=ae:[this._anchor,this._position]=ae;const pe=this.at(ae[0]+1),me=this.at(ae[1]),ye=Vn.commonAncestor(pe,me);(ye==null?void 0:ye.type)==="array"&&pe.parent===ye&&me.parent===ye?this._selection={ranges:[ae],direction:re.direction}:this._selection={ranges:[ae],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 ao&&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(tu(a)){if(E=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((ye,Se)=>[...ye,...this.getAtoms(Se,E)],[]);a=a.ranges[0]}let ee,re;if(Os(a)){if(ee=a,!Os(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 ae=Math.min(ee,re)+1,pe=Math.max(ee,re);if(!E.includeChildren&&ae===1&&pe===this.lastOffset)return[this.root];let me=[];for(let ye=ae;ye<=pe;ye++){const Se=this.atoms[ye];mp(this,Se,ae,pe)&&me.push(Se)}return E.includeChildren||(me=me.filter(ye=>{let Se=!1,{parent:Ze}=ye;for(;Ze&&!Se;)Se=mp(this,Ze,ae,pe),Ze=Ze.parent;return!Se})),me}getAllAtoms(a=0){const y=[],b=this.lastOffset;for(let E=a;E<=b;E++)y.push(this.atoms[E]);for(let E=0;E<a;E++)y.push(this.atoms[E]);return y}findAtom(a,y=0,b="forward"){let E;const ee=this.lastOffset;if(b==="forward"){for(let 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 Vn({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 Vn.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 Ui(a);if(b==="spoken")return bu(a);if(b==="spoken-text"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ee=bu(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=bu(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}return b==="ascii-math"?Ea(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(Os(a)&&Os(y)?(E=[this.normalizeRange([a,y])],ee=b):eu(a)?(E=[this.normalizeRange(a)],ee=y):tu(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 ae=window.MathfieldElement.computeEngine.parse(re);return JSON.stringify(ae.json)}catch(ae){return JSON.stringify(["Error",`'${ae.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 Ti(E.map(ae=>Vn.serialize(this.getAtoms(ae),re)))}return E.map(re=>this.getAtoms(re).map(ae=>this.atomToString(ae,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&&qf(this,re,[E,ee]);)ee=this.offsetOf(re),re=re.parent;for(re=this.at(E).parent;re!==this.root&&qf(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&&qf(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 ae=this.root.changeCounter;y();const pe=this.root.changeCounter!==ae,me=E!==this._anchor||ee!==this._position||cc(this._selection,b)==="different";return this.silenceNotifications=re,a.content&&pe&&this.contentDidChange({inputType:a.type}),a.selection&&me&&this.selectionDidChange(),pe||me}normalizeOffset(a){return a>0?a=Math.min(a,this.lastOffset):a<0&&(a=this.lastOffset+a+1),a}normalizeRange(a){let[y,b]=a;return y=this.normalizeOffset(y),b=this.normalizeOffset(b),y<b?[y,b]:[b,y]}normalizeSelection(a,y){var b;let E;if(Os(a)){const ee=this.normalizeOffset(a);if(Os(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(eu(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 tu(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(Ws(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",Ce(be({},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(Ws(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 ae=a.offsetOf(y.lastChild);if(ae>=b&&ae<=E)return!0}return!1}function qf(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[E,ee]=b,re=a.offsetOf(y.firstChild),ae=a.offsetOf(y.lastChild);return re>=E&&re<=ee&&ae>=re&&ae<=ee}function Id(a,y,b,E){var ee,re,ae,pe,me,ye;const Se=b.parent;if(Se&&b instanceof Vi){const Ze=!E&&y==="forward"||E==="body"&&y==="backward";let ct=Ze?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return Ze?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(Se.addChildrenAfter(b.removeBranch("body"),b),Se.removeChild(b),ct--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(Se.addChildrenAfter(b.removeBranch("body"),b),Se.removeChild(b),ct--),a.position=ct,!0}if(Se&&b.type==="surd"){if(y==="forward"&&!E||y==="backward"&&E==="body"){const Ze=b.leftSibling;b.hasChildren&&Se.addChildrenAfter(b.removeBranch("body"),b),Se.removeChild(b),a.position=a.offsetOf(Ze)}else y==="forward"&&E==="body"?a.position=a.offsetOf(b):!E&&y==="backward"?b.hasChildren?a.position=a.offsetOf(b.lastChild):(a.position=Math.max(0,a.offsetOf(b)-1),Se.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(Se&&(b.type==="box"||b.type==="enclose")){const Ze=E&&y==="backward"||!E&&y==="forward"?b.leftSibling:b.lastChild;return Se.addChildrenAfter(b.removeBranch("body"),b),Se.removeChild(b),a.position=a.offsetOf(Ze),!0}if(b.type==="genfrac"||b.type==="overunder"){if(!E)return b.type==="overunder"&&b.hasEmptyBranch("body")||b.type==="genfrac"&&b.hasEmptyBranch("below")&&b.hasEmptyBranch("above")?!1:(a.position=a.offsetOf(y==="forward"?b.firstChild:b.lastChild),!0);const Ze=Pd.fractionNavigationOrder==="numerator-denominator"?"above":"below",ct=Ze==="above"?"below":"above";if(Se&&(y==="forward"&&E===Ze||y==="backward"&&E===ct)){const Et=b.removeBranch(Ze),Rt=b.removeBranch(ct);return Se.addChildrenAfter([...Et,...Rt],b),Se.removeChild(b),a.position=a.offsetOf(Et.length>0?Et[Et.length-1]:Rt[0]),!0}return y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b),!0}if(b.isExtensibleSymbol||b.type==="subsup"){if(!E&&y==="forward")return!1;if(!E){if(b.subscript||b.superscript){const Ze=y==="forward"?(ae=(ee=b.superscript)==null?void 0:ee[0])!=null?ae:(re=b.subscript)==null?void 0:re[0]:(ye=(pe=b.subscript)==null?void 0:pe[0].lastSibling)!=null?ye:(me=b.superscript)==null?void 0:me[0].lastSibling;return Ze&&(a.position=a.offsetOf(Ze)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const Ze=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=Ze,!0}if(E==="superscript")if(y==="backward"){const Ze=a.offsetOf(b.firstChild)-1;console.assert(Ze>=0),a.position=Ze}else b.subscript?a.position=a.offsetOf(b.subscript[0]):a.position=a.offsetOf(b);else E==="subscript"&&(y==="backward"&&b.superscript?a.position=a.offsetOf(b.superscript[0].lastSibling):y==="backward"?a.position=a.offsetOf(b.firstChild)-1:a.position=a.offsetOf(b));if(E&&b.hasEmptyBranch(E)&&(b.removeBranch(E),b.type==="subsup"&&!b.subscript&&!b.superscript)){const Ze=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=Ze}return!0}if((Se==null?void 0:Se.type)==="genfrac"&&!E&&b.type!=="first"){let Ze=a.offsetOf(b.leftSibling);return Se.removeChild(b),Se.hasEmptyBranch("above")&&Se.hasEmptyBranch("below")?(Ze=a.offsetOf(Se.leftSibling),Se.parent.removeChild(Se),a.announce("delete",void 0,[Se]),a.position=Ze,!0):(a.announce("delete",void 0,[b]),a.position=Ze,!0)}if(y==="backward"&&((Se==null?void 0:Se.command)==="\\ln"||(Se==null?void 0:Se.command)==="\\log")&&b.parentBranch!=="body"){const Ze=a.offsetOf(Se.leftSibling);return Se.parent.removeChild(Se),a.announce("delete",void 0,[Se]),a.position=Ze,!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&&Id(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(Id(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])}}):Zs(a,Ja(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&&Id(a,"forward",E))return;if(E){if(a.at(a.position).isLastSibling&&Id(a,"forward",E.parent,E.parentBranch))return}else{if(E=a.at(a.position),E.isLastSibling&&Id(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])}):Zs(a,Ja(a.selection),"deleteContentForward")}function Zs(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 ae=E[0];ae.type==="first"&&(ae=ae.rightSibling);const pe=E[E.length-1];if(ae===ee&&pe===re){const me=E[0].parent;me.parent&&me.type!=="prompt"&&(y=[a.offsetOf(me.leftSibling),a.offsetOf(me)])}if(E.length===1&&E[0].type==="placeholder"&&E[0].parent.type==="genfrac"){const me=E[0].parent,ye=E[0].parentBranch==="below"?"above":"below",Se=a.offsetOf(me.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var Ze,ct;const Et=me.removeBranch(ye);if(Et.length===1&&Et[0].type==="placeholder")(ct=me.parent)==null||ct.removeChild(me),a.position=Math.max(0,Se);else{const Rt=me.parent.addChildrenAfter(Et,me);(Ze=me.parent)==null||Ze.removeChild(me),a.position=a.offsetOf(Rt)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}zo({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&Zs(a,[0,-1],"deleteContent"),deleteForward:a=>c1(a),deleteBackward:a=>l1(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&Zs(a,[a.anchor,kf(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&Zs(a,[a.anchor,kf(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&Zs(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&Zs(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&Zs(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&Zs(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="${gt("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="${gt("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>`,h1=class{constructor(a,y){this.focusBlurInProgress=!1;var b,E,ee;this.options=be(Ce(be({},Oh()),{macros:fn(),registers:Dl()}),Th(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 ae=(E=(b=y.value)!=null?b:this.element.textContent)!=null?E:"";ae=ae.trim();const pe=L0(this.options),me=new Vn({type:"root",mode:pe,body:$a(ae,{context:this.context})});this.model=new s1(this,pe,me),this.undoManager=new Fg(this.model);const ye=[];if(ye.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>"),ye.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),ye.push("<span part=content class=ML__content>"),ye.push(w0(this)),ye.push("</span>"),window.mathVirtualKeyboard&&(ye.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">`),ye.push(u1),ye.push("</div>")),ye.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),ye.push(d1),ye.push("</div>"),ye.push("</span>"),ye.push("<span class=ML__sr-only>"),ye.push("<span role=status aria-live=assertive aria-atomic=true></span>"),ye.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(ye.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=ot.subscribe(()=>ot.update(this.element)),ot.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Ze=>Ze.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(Ws(this)))},{signal:re}),this._menu=new Sv(qv(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:re});const Se=this.element.querySelector("[part=menu-toggle]");Se==null||Se.addEventListener("pointerdown",Ze=>{if(Ze.currentTarget!==Se||this._menu.state!=="closed")return;this.element.classList.add("tracking");const ct=Se.getBoundingClientRect();this._menu.modifiers=fc(Ze),this._menu.show({target:Se,location:{x:ct.left,y:ct.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Ze.preventDefault(),Ze.stopPropagation()},{signal:re}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(Se.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(()=>ya(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:re}),gd&&!ot.locale.startsWith(gd.locale)&&_m(ot.locale),Uo!=="ready"&&document.fonts.ready.then(()=>Bh(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(Ws(this)),Uh(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,_f())}showMenu(a){var y,b;const E=(b=(y=a==null?void 0:a.location)!=null?y:Fs(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:kt(a)}}get backgroundColorMap(){return a=>{var y,b,E,ee,re,ae;return(ae=(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?ae:st(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=Vn.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=be({},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=Tf(this,a);"verbatimColor"in y&&delete y.verbatimColor,"verbatimBackgroundColor"in y&&delete y.verbatimBackgroundColor;const b=Object.keys(y).length;if(b===0)return"all";if(b>1){for(const me of Object.keys(y)){const ye=this.queryStyle({[me]:y[me]});if(ye==="none")return"none";if(ye==="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 ae=re.length;if(ae===0)return"none";let pe=0;for(const me of re){if(me.type==="first"){ae-=1;continue}me.style[E]===ee&&(pe+=1)}return pe===0?"none":pe===ae?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,E]=Gm(this.options.keybindings,(a=vd())!=null?a:zm());return((y=vd())==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=be(be({},this.options),Th(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=Vn.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==E)&&Ci.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)&&ya(this)}getOptions(a){return gc(this.options,a)}getOption(a){return gc(this.options,a)}handleEvent(a){return Hl(this,null,function*(){var y;if(jo(this)){if(Cf(a)){if(!ld(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(du(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))&&Wh.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&Wh.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&Uh(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>jo(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>jo(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!jo(this))return;ot.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 du(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(Ws(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=af(this.model,this.model.position))!=null?b:"math");const E=this.undoManager.canUndo();Ci.insert(this.model,a,y)&&(ya(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&&pc(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=Fs(this.field);else{const E=sd(this);if(E.length>0){let ee=-1/0,re=-1/0;for(const ae of E)ae.right>ee&&(ee=ae.right),ae.top<re&&(re=ae.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&&yt()&&navigator.vibrate(S0),window.MathfieldElement.playSound("keypress")),a==="\\\\"?D0(this.model):a==="&"?I0(this.model):this.model.selectionIsCollapsed?Ci.insert(this.model,a,be({style:this.model.at(this.model.position).computedStyle},y)):Ci.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),ya(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:ae}=this;ae.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let pe=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const me=$a(y,{context:this.context,parseMode:a});ae.collapseSelection("forward");const ye=ae.at(ae.position);ae.position=ae.offsetOf(ye.parent.addChildrenAfter(me,ye)),pe=!0}if(this.model.mode=a,a==="latex"){let me=ae.selectionIsCollapsed;cu(this,"accept");let ye,Se=ae.at(ae.position);if(me)ye="\\";else{const ct=Ja(ae.selection);ye=this.model.getValue(ct,"latex");const Et=this.model.extractAtoms(ct);Et.length===1&&Et[0].type==="placeholder"&&(ye=y,me=!0),Se=ae.at(ct[0])}const Ze=new ud(ye);Se.parent.addChildAfter(Ze,Se),me?ae.position=ae.offsetOf(Ze.lastChild):ae.setSelection(ae.offsetOf(Ze.firstChild),ae.offsetOf(Ze.lastChild))}else yd(ae).forEach(me=>{me.isError=!1});if(b){const me=$a(b,{context:this.context,parseMode:re});ae.collapseSelection("forward");const ye=ae.at(ae.position);ae.position=ae.offsetOf(ye.parent.addChildrenAfter(me,ye)),pe=!0}return ya(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),pe}),this.model.mode=a,window.mathVirtualKeyboard.update(Ws(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};eu(y)?ee.range=y:(y.operation==="toggle"&&(ee.operation="toggle"),ee.range=y.range,ee.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const re=Tf(this,a),ae=(E=ee.operation)!=null?E:"set";if(ee.range===void 0&&this.model.selectionIsCollapsed){if(ae==="set"){this.defaultStyle=be(be({},this.defaultStyle),re);return}const pe=be({},this.defaultStyle);for(const me of Object.keys(re))pe[me]===re[me]?(me==="color"&&delete pe.verbatimColor,me==="backgroundColor"&&delete pe.verbatimBackgroundColor,delete pe[me]):pe[me]=re[me];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)Mf(this.model,pe,re,{operation:ae});else Mf(this.model,ee.range,re,{operation:ae})}),ya(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=Fs(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=Ad(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),ya(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,Ce(be({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),ya(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),ya(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(Ws(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(Ws(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(Ws(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:L0(this.options);this.model.mode!==ee&&(this.model.mode==="latex"?(cu(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(Ws(this)),Uh(this)}onContentWillChange(a){var y,b,E;return(E=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",Ce(be({},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(),pc(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="",uu(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})),ya(this),this.focusBlurInProgress=!1,_f();const E=new AbortController,ee=E.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{jo(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ee})},{once:!0,signal:ee}),setTimeout(()=>E.abort(),100)}onInput(a){Df(this,a)}onKeystroke(a){return K0(this,a)}onCompositionStart(a){this.model.deleteAtoms(Ja(this.model.selection));const y=Fs(this.field);y&&requestAnimationFrame(()=>{pc(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Bg(this.model,a),ya(this)}onCompositionEnd(a){Lg(this.model),Df(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),Ci.onCopy(this,a),Zs(this.model,Ja(this.model.selection),"deleteByCut"),this.snapshot("cut"),ya(this))}onCopy(a){Ci.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=Ci.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(),Mh(this),Uh(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=>Ot(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 $f(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&&$f(E)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&$f(E,y)})))}function f1(a,y){var b;if(!wt())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"]};zl().readAloudElement=a,E.synthesizeSpeech(ee,(re,ae)=>{if(re){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${re}`);return}if(!(ae!=null&&ae.AudioStream)){console.log("polly.synthesizeSpeech():",ae);return}const pe=new TextDecoder("utf-8").decode(new Uint8Array(ae.AudioStream));zl().readAloudMarks=pe.split(`
|
|
|
`).map(me=>me?JSON.parse(me):{}),zl().readAloudTokens=[];for(const me of zl().readAloudMarks)me.value&&zl().readAloudTokens.push(me.value);zl().readAloudCurrentMark="",ee.OutputFormat="mp3",ee.SpeechMarkTypes=[],E.synthesizeSpeech(ee,(me,ye)=>{if(me){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${me}`);return}if(!(ye!=null&&ye.AudioStream))return;const Se=new Uint8Array(ye.AudioStream),Ze=new Blob([Se.buffer],{type:"audio/mpeg"}),ct=URL.createObjectURL(Ze),Et=zl();Et.readAloudAudio?Et.readAloudAudio.pause():(Et.readAloudAudio=new Audio,Et.readAloudAudio.addEventListener("ended",()=>{const Rt=Et.readAloudMathfield;Et.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Rt?(pc(Rt),Et.readAloudElement=null,Et.readAloudMathfield=null,Et.readAloudTokens=[],Et.readAloudMarks=[],Et.readAloudCurrentMark=""):gp(Et.readAloudElement)}),Et.readAloudAudio.addEventListener("timeupdate",()=>{let Rt="";const Pn=Et.readAloudAudio.currentTime*1e3+100;for(const xr of Et.readAloudMarks)xr.time<Pn&&(Rt=xr.value);Et.readAloudCurrentMark!==Rt&&(Et.readAloudCurrentToken=Rt,Rt&&Rt===Et.readAloudFinalToken?Et.readAloudAudio.pause():(Et.readAloudCurrentMark=Rt,$f(Et.readAloudElement,Et.readAloudCurrentMark)))})),Et.readAloudAudio.src=ct,Et.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Et.readAloudAudio.play()})})}wt()||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 ji=new WeakMap,p1=.5,_l={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 = ..."},oo=class Ec extends HTMLElement{static get formAssociated(){return Su()}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 ot.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),ot.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 ot.strings}static set strings(y){ot.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 Hl(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(),ae=yield this.audioContext.decodeAudioData(re);this.audioBuffers[y]=ae}catch(ee){}})}static playSound(y){return Hl(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(_l[E])if(_l[E].startsWith("mf."))if(_l[E].startsWith(`mf.${E}`))b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${_l[E]}`);else{const ee=_l[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 ${_l[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(Su()&&(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=[Ol("core"),Ol("mathfield"),Ol("mathfield-element"),Ol("ui"),Ol("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>"+hl("core")+hl("mathfield")+hl("mathfield-element")+hl("ui")+hl("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=Ec.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?gc(this._mathfield.options,y):ji.has(this)?be({},gc(be(be({},Oh()),Th(ji.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?gc(this._mathfield.options,y):ji.has(this)?gc(be(be({},Oh()),Th(ji.get(this).options)),y):null}reflectAttributes(){const y=Oh(),b=this._getOptions();Object.keys(Ec.optionsAttributes).forEach(E=>{const ee=gl(E);Ec.optionsAttributes[E]==="on/off"?y[ee]!==b[ee]?this.setAttribute(E,b[ee]?"on":"off"):this.removeAttribute(E):y[ee]!==b[ee]&&(Ec.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(ji.has(this)){const b=be(be({},ji.get(this).options),y);ji.set(this,Ce(be({},ji.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else ji.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))_l[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${_l[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(ji.has(this)){let ae,pe,me;if(tu(y)?([ae,pe]=y.ranges[0],me=b):eu(y)?([ae,pe]=y,me=b):Os(y)&&Os(b)?(ae=y,pe=b,me=E):(ae=0,pe=-1,me=y),(me===void 0||me==="latex")&&ae===0&&pe===-1)return(re=(ee=ji.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(ji.has(this)){const ee=ji.get(this).options;ji.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ee,menuItems:void 0});return}const E=Td(this);ji.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?Ad(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=Pl(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;zs.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),ae=this.shadowRoot,pe=re.userSelect!=="none";if(pe)ae.host.addEventListener("pointerdown",this,!0);else{const Se=ae.querySelector("span");Se.style.pointerEvents="none"}ae.host.addEventListener("focus",this,!0),ae.host.addEventListener("blur",this,!0),Su()||(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 me=ae.querySelector("slot:not([name])");if(me)try{this._style=me.assignedElements().filter(Se=>Se.tagName.toLowerCase()==="style").map(Se=>Se.textContent).join("")}catch(Se){console.error(Se)}if(this._style){const Se=document.createElement("style");Se.textContent=this._style,ae.appendChild(Se)}let ye="";if(this.hasAttribute("value")?ye=this.getAttribute("value"):ye=(y=me==null?void 0:me.assignedNodes().map(Se=>Se.nodeType===3?Se.textContent:"").join("").trim())!=null?y:"",this._mathfield=new h1(ae.querySelector(":host > span"),Ce(be({},(E=(b=ji.get(this))==null?void 0:b.options)!=null?E:Td(this)),{eventSink:this,value:ye})),!ji.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const Se of Object.keys(Ec.optionsAttributes))this.upgradeProperty(gl(Se))}if(!((ee=this._mathfield)!=null&&ee.model)){this._mathfield=null;return}if(ji.has(this)){const Se=this._mathfield,Ze=ji.get(this),ct=Ze.menuItems;Se.model.deferNotifications({content:!1,selection:!1},()=>{const Et=Ze.value;Et!==void 0&&Se.setValue(Et),Se.model.selection=Ze.selection,ji.delete(this)}),ct&&(this.menuItems=ct)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),kh()}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=gc(this._mathfield.options,Object.keys(Ec.optionsAttributes).map(ee=>gl(ee)));ji.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":ya(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",""),Su()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(Su()?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"),Su()?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:Ce(be({},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=ji.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}ji.has(this)?ji.set(this,Ce(be({},ji.get(this)),{menuItems:y})):ji.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:Td(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:ji.has(this)?ji.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,ya(this._mathfield);return}if(ji.has(this)){ji.set(this,Ce(be({},ji.get(this)),{selection:y}));return}ji.set(this,{value:void 0,selection:y,options:Td(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:ji.has(this)?ji.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,ya(this._mathfield)),ji.has(this)){ji.set(this,Ce(be({},ji.get(this)),{selection:{ranges:[[y,y]]}}));return}ji.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:Td(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}};oo.version="0.98.5",oo._fontsDirectory="./fonts",oo._soundsDirectory="./sounds",oo.keypressVibration=!0,oo._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},oo._plonkSound="plonk.wav",oo.audioBuffers={},oo.createHTML=a=>a,oo._speechEngineRate="100%",oo._speechEngineVoice="Joanna",oo._textToSpeechMarkup="",oo._textToSpeechRules="mathlive",oo._textToSpeechRulesOptions={},oo.speakHook=r1,oo.readAloudHook=f1,oo._decimalSeparator=".",oo.fractionNavigationOrder="numerator-denominator",oo._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 Pd=oo;function gl(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function Td(a){const y={readOnly:!1},b=Pd.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[gl(E)]=!0:b[E]==="on/off"?ee==="on"?y[gl(E)]=!0:ee==="off"?y[gl(E)]=!1:y[gl(E)]=void 0:b[E]==="number"?y[gl(E)]=Number.parseFloat(ee!=null?ee:"0"):y[gl(E)]=ee}}),y}function Su(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var vp=Pd,yp,bp,xp,wp;if(wt()&&!((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=Pd,(wp=window.customElements)==null||wp.define("math-field",Pd)}function m1(a,y,b){let E=b,ee=0;const re=a.length;for(;E<y.length;){const ae=y[E];if(ee<=0&&y.slice(E,E+re)===a)return E;ae==="\\"?E++:ae==="{"?ee++:ae==="}"&&ee--,E++}return-1}function Jh(a,y,b,E,ee="latex"){const re=[];for(const ae of a)if(ae.type==="text"){const pe=ae.data;let me=!0,ye=0,Se;Se=pe.indexOf(y),Se!==-1&&(ye=Se,ye>0&&re.push({type:"text",data:pe.slice(0,ye)}),me=!1);let Ze=!1;for(;!Ze;){if(me){if(Se=pe.indexOf(y,ye),Se===-1){Ze=!0;break}ye!==Se&&re.push({type:"text",data:pe.slice(ye,Se)}),ye=Se}else{if(Se=m1(b,pe,ye+y.length),Se===-1){Ze=!0;break}let ct=pe.slice(ye+y.length,Se);ee==="ascii-math"&&([,ct]=uc(ct,{format:"ascii-math"})),re.push({type:"math",data:ct,rawData:pe.slice(ye,Se+b.length),mathstyle:E}),ye=Se+b.length}me=!me}ye<pe.length&&re.push({type:"text",data:pe.slice(ye)})}else re.push(ae);return re}function Sp(a,y,b){let E=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ee,re])=>{E=Jh(E,ee,re,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ee,re])=>{E=Jh(E,ee,re,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ee,re])=>{E=Jh(E,ee,re,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ee,re])=>{E=Jh(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 Cu(a,y,b,E){var ee;const re=v1(a,b,y||"textstyle",E),ae=(ee=b.renderAccessibleContent)!=null?ee:"";if(re&&/\b(mathml|speakable-text)\b/i.test(ae)){const pe=document.createElement("span");if(/\bmathml\b/i.test(ae)&&b.renderToMathML&&pe.append(g1(a,b)),/\bspeakable-text\b/i.test(ae)&&b.renderToSpeakableText){const me=document.createElement("span");me.setAttribute("translate","no");const ye=b.renderToSpeakableText(a);me.innerHTML=window.MathfieldElement.createHTML(ye),me.className="ML__sr-only",pe.append(me)}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 ae=Cu(a,"",y,!0);ae&&re.appendChild(ae)}else{if(!a.trim())return null;const ae=Sp(a,(E=y.TeX)==null?void 0:E.delimiters,(ee=y.asciiMath)==null?void 0:ee.delimiters);if(ae.length===1&&ae[0].type==="text")return null;re=document.createDocumentFragment();for(const pe of ae)if(pe.type==="text")re.appendChild(document.createTextNode(pe.data));else{const me=Cu(pe.data,pe.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);me&&re.appendChild(me)}}return re}function Cp(a,y){var b,E,ee,re,ae,pe,me,ye,Se,Ze,ct,Et,Rt,Pn,xr,kn;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Qn=(b=a.childNodes[0].textContent)!=null?b:"";if((E=y.TeX)!=null&&E.processEnvironments&&/^\s*\\begin/.test(Qn)){a.textContent="";const rr=Cu(Qn,"",y,!0);rr&&a.append(rr);return}const Lr=Sp(Qn,(ee=y.TeX)==null?void 0:ee.delimiters,(re=y.asciiMath)==null?void 0:re.delimiters);if(Lr.length===1&&Lr[0].type==="math"){a.textContent="";const rr=Cu(Lr[0].data,Lr[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);rr&&a.append(rr);return}if(Lr.length===1&&Lr[0].type==="text")return}for(let Qn=a.childNodes.length-1;Qn>=0;Qn--){const Lr=a.childNodes[Qn];if(Lr.nodeType===3){const rr=y1((ae=Lr.textContent)!=null?ae:"",y);rr&&(Qn+=rr.childNodes.length-1,Lr.replaceWith(rr))}else if(Lr.nodeType===1){const rr=Lr,ii=Lr.nodeName.toLowerCase();if(ii==="script"){const ui=Lr;let oi;if((pe=y.processScriptTypePattern)!=null&&pe.test(ui.type))oi=(me=ui.textContent)!=null?me:"";else if((ye=y.processMathJSONScriptTypePattern)!=null&&ye.test(ui.type))try{oi=(Ze=y.serializeToLatex)==null?void 0:Ze.call(y,JSON.parse((Se=ui.textContent)!=null?Se:""))}catch(zi){console.error(zi)}if(oi){let zi="textstyle";for(const zr of ui.type.split(";")){const[Go,Vs]=zr.toLowerCase().split("=");Go.trim()==="mode"&&(zi=Vs.trim()==="display"?"displaystyle":"textstyle")}const $i=Cu(oi,zi,y,!0);$i&&ui.parentNode.replaceChild($i,ui)}}else if(((Et=(ct=y.processClassPattern)==null?void 0:ct.test(rr.className))!=null?Et:!1)||!((Pn=(Rt=y.skipTags)==null?void 0:Rt.includes(ii))!=null&&Pn||(kn=(xr=y.ignoreClassPattern)==null?void 0:xr.test(rr.className))!=null&&kn))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const oi=a.textContent;a.textContent="";const zi=Cu(oi!=null?oi:"","displaystyle",y,!0);zi&&a.append(zi)}else Cp(rr,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 ae=be(be({},b1),y);ae.ignoreClassPattern=new RegExp((b=ae.ignoreClass)!=null?b:""),ae.processClassPattern=new RegExp((E=ae.processClass)!=null?E:""),ae.processScriptTypePattern=new RegExp((ee=ae.processScriptType)!=null?ee:""),ae.processMathJSONScriptTypePattern=new RegExp((re=ae.processMathJSONScriptType)!=null?re:""),kh(),_o("core"),Cp(a,ae)}catch(ae){ae instanceof Error?console.error("renderMathInElement(): "+ae.message):console.error("renderMathInElement(): Could not render math for element",a)}}function w1(a,y){const b=Nl.singleton;return b?(b.show(),wd(),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}zo({switchKeyboardLayer:w1,toggleVirtualKeyboard:S1,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function zl(){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 ae=C1(a);if(!ae)return;const pe=y!=null?y:{};(b=pe.renderToMarkup)!=null||(pe.renderToMarkup=eo),(E=pe.renderToMathML)!=null||(pe.renderToMathML=Nv),(ee=pe.renderToSpeakableText)!=null||(pe.renderToSpeakableText=Fv),(re=pe.serializeToLatex)!=null||(pe.serializeToLatex=_v),x1(ae,pe)}var P1={mathlive:"0.98.5"}},16722:function(mn,un,le){"use strict";le.d(un,{Z:function(){return be}});const oe=Ce=>typeof Ce=="object"&&Ce!=null&&Ce.nodeType===1,Oe=(Ce,_e)=>(!_e||Ce!=="hidden")&&Ce!=="visible"&&Ce!=="clip",Ne=(Ce,_e)=>{if(Ce.clientHeight<Ce.scrollHeight||Ce.clientWidth<Ce.scrollWidth){const ft=getComputedStyle(Ce,null);return Oe(ft.overflowY,_e)||Oe(ft.overflowX,_e)||(Ie=>{const Ge=(wt=>{if(!wt.ownerDocument||!wt.ownerDocument.defaultView)return null;try{return wt.ownerDocument.defaultView.frameElement}catch(ut){return null}})(Ie);return!!Ge&&(Ge.clientHeight<Ie.scrollHeight||Ge.clientWidth<Ie.scrollWidth)})(Ce)}return!1},dt=(Ce,_e,ft,Ie,Ge,wt,ut,yt)=>wt<Ce&&ut>_e||wt>Ce&&ut<_e?0:wt<=Ce&&yt<=ft||ut>=_e&&yt>=ft?wt-Ce-Ie:ut>_e&&yt<ft||wt<Ce&&yt>ft?ut-_e+Ge:0,we=Ce=>{const _e=Ce.parentElement;return _e==null?Ce.getRootNode().host||null:_e},Te=(Ce,_e)=>{var ft,Ie,Ge,wt;if(typeof document=="undefined")return[];const{scrollMode:ut,block:yt,inline:lt,boundary:ht,skipOverflowHiddenElements:Vt}=_e,ot=typeof ht=="function"?ht:St=>St!==ht;if(!oe(Ce))throw new TypeError("Invalid target");const gt=document.scrollingElement||document.documentElement,Ve=[];let Me=Ce;for(;oe(Me)&&ot(Me);){if(Me=we(Me),Me===gt){Ve.push(Me);break}Me!=null&&Me===document.body&&Ne(Me)&&!Ne(document.documentElement)||Me!=null&&Ne(Me,Vt)&&Ve.push(Me)}const Ue=(Ie=(ft=window.visualViewport)==null?void 0:ft.width)!=null?Ie:innerWidth,tt=(wt=(Ge=window.visualViewport)==null?void 0:Ge.height)!=null?wt:innerHeight,{scrollX:mt,scrollY:Je}=window,{height:kt,width:st,top:Tt,right:nt,bottom:Yt,left:ln}=Ce.getBoundingClientRect(),{top:tn,right:en,bottom:Ht,left:je}=(St=>{const Qe=window.getComputedStyle(St);return{top:parseFloat(Qe.scrollMarginTop)||0,right:parseFloat(Qe.scrollMarginRight)||0,bottom:parseFloat(Qe.scrollMarginBottom)||0,left:parseFloat(Qe.scrollMarginLeft)||0}})(Ce);let xe=yt==="start"||yt==="nearest"?Tt-tn:yt==="end"?Yt+Ht:Tt+kt/2-tn+Ht,Xe=lt==="center"?ln+st/2-je+en:lt==="end"?nt+en:ln-je;const _t=[];for(let St=0;St<Ve.length;St++){const Qe=Ve[St],{height:$e,width:Mt,top:wn,right:cn,bottom:dn,left:nn}=Qe.getBoundingClientRect();if(ut==="if-needed"&&Tt>=0&&ln>=0&&Yt<=tt&&nt<=Ue&&(Qe===gt&&!Ne(Qe)||Tt>=wn&&Yt<=dn&&ln>=nn&&nt<=cn))return _t;const Jt=getComputedStyle(Qe),Bt=parseInt(Jt.borderLeftWidth,10),ge=parseInt(Jt.borderTopWidth,10),ue=parseInt(Jt.borderRightWidth,10),se=parseInt(Jt.borderBottomWidth,10);let he=0,fe=0;const ce="offsetWidth"in Qe?Qe.offsetWidth-Qe.clientWidth-Bt-ue:0,Ae="offsetHeight"in Qe?Qe.offsetHeight-Qe.clientHeight-ge-se:0,rt="offsetWidth"in Qe?Qe.offsetWidth===0?0:Mt/Qe.offsetWidth:0,Le="offsetHeight"in Qe?Qe.offsetHeight===0?0:$e/Qe.offsetHeight:0;if(gt===Qe)he=yt==="start"?xe:yt==="end"?xe-tt:yt==="nearest"?dt(Je,Je+tt,tt,ge,se,Je+xe,Je+xe+kt,kt):xe-tt/2,fe=lt==="start"?Xe:lt==="center"?Xe-Ue/2:lt==="end"?Xe-Ue:dt(mt,mt+Ue,Ue,Bt,ue,mt+Xe,mt+Xe+st,st),he=Math.max(0,he+Je),fe=Math.max(0,fe+mt);else{he=yt==="start"?xe-wn-ge:yt==="end"?xe-dn+se+Ae:yt==="nearest"?dt(wn,dn,$e,ge,se+Ae,xe,xe+kt,kt):xe-(wn+$e/2)+Ae/2,fe=lt==="start"?Xe-nn-Bt:lt==="center"?Xe-(nn+Mt/2)+ce/2:lt==="end"?Xe-cn+ue+ce:dt(nn,cn,Mt,Bt,ue+ce,Xe,Xe+st,st);const{scrollLeft:Ke,scrollTop:Lt}=Qe;he=Le===0?0:Math.max(0,Math.min(Lt+he/Le,Qe.scrollHeight-$e/Le+Ae)),fe=rt===0?0:Math.max(0,Math.min(Ke+fe/rt,Qe.scrollWidth-Mt/rt+ce)),xe+=Lt-he,Xe+=Ke-fe}_t.push({el:Qe,top:he,left:fe})}return _t},Fe=Ce=>Ce===!1?{block:"end",inline:"nearest"}:(_e=>_e===Object(_e)&&Object.keys(_e).length!==0)(Ce)?Ce:{block:"start",inline:"nearest"};function be(Ce,_e){if(!Ce.isConnected||!(Ge=>{let wt=Ge;for(;wt&&wt.parentNode;){if(wt.parentNode===document)return!0;wt=wt.parentNode instanceof ShadowRoot?wt.parentNode.host:wt.parentNode}return!1})(Ce))return;const ft=(Ge=>{const wt=window.getComputedStyle(Ge);return{top:parseFloat(wt.scrollMarginTop)||0,right:parseFloat(wt.scrollMarginRight)||0,bottom:parseFloat(wt.scrollMarginBottom)||0,left:parseFloat(wt.scrollMarginLeft)||0}})(Ce);if((Ge=>typeof Ge=="object"&&typeof Ge.behavior=="function")(_e))return _e.behavior(Te(Ce,_e));const Ie=typeof _e=="boolean"||_e==null?void 0:_e.behavior;for(const{el:Ge,top:wt,left:ut}of Te(Ce,Fe(_e))){const yt=wt-ft.top+ft.bottom,lt=ut-ft.left+ft.right;Ge.scroll({top:yt,left:lt,behavior:Ie})}}}}]);
|
|
|
}()); |