You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__virtualSpaces__Lists__Ho...

1106 lines
687 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[3747],{66543:function(){"use strict"},59598:function(){"use strict"},21697:function(Dt,Rt){"use strict";Rt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},11081: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 Dt={},Rt="5.0",fe={},oe=null,nt=!1,Me=!1,je=null,me=!1,ge=null,Oe=null,He=0;He<arguments.length;He++){var xe=arguments[He];if(xe!==null)switch(typeof xe){case"number":Rt=xe.toFixed(1);break;case"string":xe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Rt=xe:je=xe;break;case"object":typeof xe.is3D!="undefined"?oe=xe:fe=xe;break;case"boolean":nt=xe,Me=!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},fe.material_id!==void 0&&!Me&&(nt=!0)),je!==null&&fe.id===void 0&&(fe.id=je);var he="",et="",ve=!1,st=null,Ne=null,De=null,Be=!1,Ae=null,tt=null,rt=null,at=null,ze=null;fe.height!==void 0&&(fe.height=Math.round(fe.height)),fe.width!==void 0&&(fe.width=Math.round(fe.width));var Ge=function(Ee){return parseFloat(Ee)>4?parseFloat(Ee):5};Dt.setHTML5Codebase=function(Ee,Xe){Oe=Ee,qe(Ee,Xe)},Dt.setJavaCodebase=Dt.setJavaCodebaseVersion=Dt.isCompiledInstalled=Dt.setPreCompiledScriptPath=Dt.setPreCompiledResourcePath=function(){},Dt.setHTML5CodebaseVersion=function(Ee,Xe){var Je=parseFloat(Ee);if(Je!==NaN&&Je<5){console.log("The GeoGebra HTML5 codebase version "+Je+" is deprecated. Using version latest instead.");return}ge=Ee,de(Ee,Xe)},Dt.getHTML5CodebaseVersion=function(){return Ne},Dt.getParameters=function(){return fe},Dt.setFontsCSSURL=function(Ee){at=Ee},Dt.setGiacJSURL=function(Ee){},Dt.setJNLPFile=function(Ee){he=Ee},Dt.setJNLPBaseDir=function(Ee){},Dt.inject=function(){function Ee(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Xe="auto",Je=fe.id,Nt,ot=!1,Et=0;Et<arguments.length;Et++){var Re=arguments[Et];typeof Re=="string"?(Re=Re.toLowerCase(),Re.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Xe=Re:Je=arguments[Et]):typeof Re=="boolean"?ot=Re:Re instanceof HTMLElement&&(Nt=Re)}dt();function dt(){if(!me){setTimeout(dt,200);return}Xe=wt(Xe);var yt=Nt||document.getElementById(Je);if(!yt){console.log("possibly bug on ajax loading? ");return}if(Dt.removeExistingApplet(yt,!1),fe.width===void 0&&yt.clientWidth&&(fe.width=yt.clientWidth),fe.height===void 0&&yt.clientHeight&&(fe.height=yt.clientHeight),!(fe.width&&fe.height)&&Xe==="html5"&&(delete fe.width,delete fe.height),st=Xe,Xe==="screenshot")we(yt,fe);else{var ae=!1;fe.hasOwnProperty("playButton")&&fe.playButton||fe.hasOwnProperty("clickToLoad")&&fe.clickToLoad?ae=!0:fe.hasOwnProperty("playButtonAutoDecide")&&fe.playButtonAutoDecide&&(ae=(!Ke()||Ee())&&Ze()),ae?(st="screenshot",xt(yt,fe,ot,Xe)):Ie(yt,fe,ot)}}};function Ke(){try{return window.self!==window.top}catch(Ee){return!0}}function Ze(){return fe.hasOwnProperty("screenshotGenerator")&&fe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Dt.getViews=function(){return oe},Dt.isJavaInstalled=function(){return!1};var Ct=function(Ee){var Xe=function(Et){var Re=JSON.parse(Et),dt=function(te){return te.type=="G"||te.type=="E"},yt=Re.elements?Re.elements.filter(dt)[0]:Re;if(!yt||!yt.url){Je();return}fe.fileName=yt.url,We(yt.settings||{}),oe.is3D=!0;var ae="https://www.geogebra.org/images/";Dt.setPreviewImage(Ae||yt.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),Ee()},Je=function(){fe.onError&&fe.onError(),Lt("Error: Fetching material (id "+fe.material_id+") failed.",fe)},Nt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",ot="/materials/"+fe.material_id+"?scope=basic";Te("https://"+Nt+"/api/proxy.php?path="+encodeURIComponent(ot),Xe,Je)};function We(Ee){var Xe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Je){Ee[Je]=!!Ee[Je]}),Xe.forEach(function(Je){fe[Je]===void 0&&Ee[Je]!==void 0&&(fe[Je]=Ee[Je])}),fe.showToolBarHelp===void 0&&(fe.showToolBarHelp=fe.showToolBar)}function Te(Ee,Xe,Je){var Nt=new XMLHttpRequest;Nt.open("GET",Ee),Nt.onload=function(){Xe(Nt.responseText)},Nt.onerror=Je,Nt.send()}Dt.isHTML5Installed=function(){return!0},Dt.getLoadedAppletType=function(){return st},Dt.setPreviewImage=function(Ee,Xe,Je){Ae=Ee,tt=Xe,rt=Je},Dt.removeExistingApplet=function(Ee,Xe){var Je;typeof Ee=="string"&&(Ee=document.getElementById(Ee)),st=null;var Nt=null;for(Je=0;Je<Ee.childNodes.length;Je++){var ot=Ee.childNodes[Je],Et=ot.className;Et==="applet_screenshot"?Xe?(ot.style.display="block",st="screenshot"):ot.style.display="none":Et!=="applet_scaler prerender"&&(Ee.removeChild(ot),Nt=Et&&Et.indexOf("appletParameters")!=-1?ot.id:null,Je--)}var Re=fe.id!==void 0?fe.id:Nt,dt=window[Re];dt&&typeof dt.getBase64=="function"&&(dt.remove(),window[Re]=null)},Dt.refreshHitPoints=function(){if(Ge(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ee=Dt.getAppletObject();return Ee&&typeof Ee.recalculateEnvironments=="function"?(Ee.recalculateEnvironments(),!0):!1},Dt.startAnimation=function(){var Ee=Dt.getAppletObject();return Ee&&typeof Ee.startAnimation=="function"?(Ee.startAnimation(),!0):!1},Dt.stopAnimation=function(){var Ee=Dt.getAppletObject();return Ee&&typeof Ee.stopAnimation=="function"?(Ee.stopAnimation(),!0):!1},Dt.getAppletObject=function(){var Ee=fe.id!==void 0?fe.id:"ggbApplet";return window[Ee]},Dt.resize=function(){};var $e=function(Ee,Xe,Je){var Nt=document.createElement("param");Nt.setAttribute("name",Xe),Nt.setAttribute("value",Je),Ee.appendChild(Nt)},Se=function(Ee){return Ee&&Ee!=="false"},Ie=function(Ee,Xe,Je){Ge(Ne)<=4.2&&(Je=!0);var Nt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ne||ggbHTML5LoadedCodebaseIsWebSimple&&!Be)&&(Nt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var ot=document.createElement("div");ot.classList.add("appletParameters","notranslate");var Et=Xe.width,Re=Xe.height;if(Xe.disableAutoScale=Xe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Xe.disableAutoScale,Xe.width!==void 0)if(Ge(Ne)<=4.4)Se(Xe.showToolBar)&&(Xe.height-=7),Se(Xe.showAlgebraInput)&&(Xe.height-=37),Xe.width<605&&Se(Xe.showToolBar)&&(Xe.width=605,Et=605);else{var dt=100;(Se(Xe.showToolBar)||Se(Xe.showMenuBar))&&(Xe.hasOwnProperty("customToolBar")&&(Xe.customToolbar=Xe.customToolBar),dt=Se(Xe.showMenuBar)?245:155),Et<dt&&(Xe.width=dt,Et=dt)}ot.style.border="none",ot.style.display="inline-block";for(var yt in Xe)Xe.hasOwnProperty(yt)&&yt!=="appletOnLoad"&&ot.setAttribute("data-param-"+yt,Xe[yt]);at&&ot.setAttribute("data-param-fontscssurl",at),Dt.resize=function(){GGBAppletUtils.responsiveResize(Ee,Xe)},window.addEventListener("resize",function(Gt){Dt.resize()});var ae=typeof Xe.appletOnLoad=="function"?Xe.appletOnLoad:function(){};if(!Je&&Xe.width!==void 0){Xe.hasOwnProperty("showSplash")||ot.setAttribute("data-param-showSplash","false");var te=Ee.querySelector(".applet_scaler.prerender"),z=te!==null;if(z)var ie=te.querySelector(".ggb_preview");else{var ie=_t(Et,Re,Xe.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=Et+"px",te.style.height=Re+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),Ge(Ne)>=5?(Xe.appletOnLoad=function(Gt){var It=Ee.querySelector(".ggb_preview");It&&It.parentNode.removeChild(It),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(Gt)},z||te.appendChild(ie)):ot.appendChild(ie),te.appendChild(ot),z||Ee.appendChild(te),setTimeout(function(){Dt.resize()},1)}else{var le=document.createElement("div");le.className="applet_scaler",le.style.position="relative",le.style.display="block",le.appendChild(ot),Ee.appendChild(le),Xe.appletOnLoad=function(Gt){Dt.resize(),ae(Gt)}}function ne(Gt,It){It&&typeof It.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Gt,It.appletOnLoad):renderGGBElement(Gt),Lt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",It)}function ye(Gt,It){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Gt,params:It}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(tn){ne(tn.article,tn.params)}),html5AppletsToProcess=null)},Ge(Ne)<5&&(Gt.className+=" geogebraweb")):ne(Gt,It)}if(Nt){scriptLoadStarted=!0;for(var Ue=0;Ue<ot.childNodes.length;Ue++){var At=ot.childNodes[Ue].tagName;At==="TABLE"&&(ot.removeChild(ot.childNodes[Ue]),Ue--)}if(ggbHTML5LoadedScript!==null){var mt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');mt!=null&&mt.parentNode.removeChild(mt)}var ft=document.createElement("script"),bt=function(){ye(ot,Xe)};ft.src=et+De,ggbHTML5LoadedCodebaseIsWebSimple=Be,ggbHTML5LoadedCodebaseVersion=Ne,ggbHTML5LoadedScript=ft.src,Lt("GeoGebra HTML5 codebase loaded: '"+et+"'.",Xe),!Oe&&(!ge||ge=="5.0")?(Be?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),bt()):et.requirejs?__webpack_require__.e(981).then(function(){var Gt=[__webpack_require__(60981)];bt.apply(null,Gt)}.bind(this)).catch(__webpack_require__.oe):(ft.onload=bt,Ee.appendChild(ft))}else ye(ot,Xe);Xe.height=Re,Xe.width=Et},we=function(Ee,Xe,Je){var Nt=_t(Xe.width,Xe.height,Xe.borderColor,Je),ot=document.createElement("div");ot.style.position="relative",ot.style.display="block",ot.style.width=Xe.width+"px",ot.style.height=Xe.height+"px",ot.className="applet_screenshot applet_scaler"+(Je?" applet_screenshot_play":""),ot.appendChild(Nt);var Et=GGBAppletUtils.getScale(Xe,Ee,Je);Je?(Ee.appendChild(lt()),window.GGBT_wsf_view||(Ee.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ot,"66%"),Ee.appendChild(ot),Et!==1&&!isNaN(Et)&&(GGBAppletUtils.scaleElement(ot,Et),ot.style.width=Xe.width+"px",ot.style.height=Xe.height+"px",ot.parentNode.style.width=Xe.width*Et+"px",ot.parentNode.style.height=Xe.height*Et+"px"),Dt.resize=function(){Fe(Ee,Nt,ot,Je)},window.addEventListener("resize",function(Re){Dt.resize()}),Dt.resize()};function Fe(Ee,Xe,Je,Nt){if(Ee.contains(Xe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ee)}var ot=GGBAppletUtils.getScale(fe,Ee,Nt);Je.parentNode!==null&&(!isNaN(ot)&&ot!==1?(GGBAppletUtils.scaleElement(Je,ot),Je.parentNode.style.width=fe.width*ot+"px",Je.parentNode.style.height=fe.height*ot+"px"):(GGBAppletUtils.scaleElement(Je,1),Je.parentNode.style.width=fe.width+"px",Je.parentNode.style.height=fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ee),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Dt.onExitFullscreen=function(Ee,Xe){Xe.appendChild(Ee)};var xt=function(Ee,Xe,Je,Nt){we(Ee,Xe,!0);for(var ot=function(){var dt=[];for(Re=0;Re<Ee.childNodes.length;Re++)dt.push(Ee.childNodes[Re]);if(window.GGBT_wsf_view){var yt=window.GGBT_wsf_view.renderFullScreen(Ee,Xe.id),ae=document.getElementById("fullscreencontainer"),te=jQuery(Ee).find(".fullscreencontent");te.length>0?(yt.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):Ie(yt,Xe,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else st=Nt,Ie(Ee,Xe,!1);if(!window.GGBT_wsf_view)for(Re=0;Re<dt.length;Re++)Ee.removeChild(dt[Re])},Et=Ee.getElementsByClassName("ggb_preview_play"),Re=0;Re<Et.length;Re++)Et[Re].addEventListener("click",ot,!1),Et[Re].addEventListener("ontouchstart",ot,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ee),Ze()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},lt=function(){var Ee=document.createElement("div");if(Ee.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Xe='.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");}',Je=document.createElement("style");Je.styleSheet?Je.styleSheet.cssText=Xe:Je.appendChild(document.createTextNode(Xe)),document.getElementsByTagName("head")[0].appendChild(Je)}return Ee},_t=function(Ee,Xe,Je,Nt){var ot=document.createElement("div");ot.className="ggb_preview",ot.style.position="absolute",ot.style.zIndex="90",ot.style.width=Ee-2+"px",ot.style.height=Xe-2+"px",ot.style.top="0px",ot.style.left="0px",ot.style.overflow="hidden",ot.style.backgroundColor="white";var Et="lightgrey";Je!==void 0&&(Je==="none"?Et="transparent":Et=Je),ot.style.border="1px solid "+Et;var Re=document.createElement("img");if(Re.style.position="relative",Re.style.zIndex="1000",Re.style.top="-1px",Re.style.left="-1px",Ae!==null&&Re.setAttribute("src",Ae),Re.style.opacity=.7,tt!==null){var dt,yt,ae;if(!Nt){dt=document.createElement("img"),dt.style.position="absolute",dt.style.zIndex="1001",dt.style.opacity=1,Re.style.opacity=.3,yt=360,yt>Ee/4*3&&(yt=Ee/4*3),ae=yt/5.8,dt.setAttribute("src",tt),dt.setAttribute("width",yt),dt.setAttribute("height",ae);var te=(Ee-yt)/2,z=(Xe-ae)/2;dt.style.left=te+"px",dt.style.top=z+"px",ot.appendChild(dt)}}return ot.appendChild(Re),ot},wt=function(Ee){return Ee=Ee.toLowerCase(),Ee==="html5"||Ee==="screenshot"?Ee:"html5"},pe=["web","webSimple","web3d","tablet","tablet3d","phone"],de=function(Ee,Xe){if(Ne=Ee,Xe){qe(Ne,!0);return}var Je=!nt;if(Je){var Nt=Ge(Ne);!isNaN(Nt)&&Nt<4.4&&(Je=!1)}var ot,Et;window.location.protocol.substr(0,4)==="http"?ot=window.location.protocol:ot="http:";var Re=Ne.indexOf("//");Re>0?Et=Ne:Re===0?Et=ot+Ne:Et="https://www.geogebra.org/apps/5.2.814.0/";for(var dt in pe)if(Ne.slice(pe[dt].length*-1)===pe[dt]||Ne.slice((pe[dt].length+1)*-1)===pe[dt]+"/"){qe(Et,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Je&&!oe.is3D&&!oe.AV&&!oe.SV&&!oe.CV&&!oe.EV2&&!oe.CP&&!oe.PC&&!oe.DA&&!oe.FI&&!oe.PV&&!Se(fe.showToolBar)&&!Se(fe.showMenuBar)&&!Se(fe.showAlgebraInput)&&!Se(fe.enableRightClick)&&(!fe.appName||fe.appName=="classic")?Et+="webSimple/":Et+="web3d/",qe(Et,!1)},qe=function(Ee,Xe){if(Ee.requirejs){et=Ee;return}Ee.slice(-1)!=="/"&&(Ee+="/"),et=Ee,Xe===null&&(Xe=Ee.indexOf("http")===-1),ve=Xe,De="web.nocache.js",Be=!1;var Je=et.split("/");Je.length>1&&(!Xe&&Je[Je.length-2]==="webSimple"?(De="webSimple.nocache.js",Be=!0):pe.indexOf(Je[Je.length-2])>=0&&(De=Je[Je.length-2]+".nocache.js")),Je=Ee.split("/"),Ne=Je[Je.length-3],Ne.substr(0,4)==="test"?Ne=Ne.substr(4,1)+"."+Ne.substr(5,1):(Ne.substr(0,3)==="war"||Ne.substr(0,4)==="beta")&&(Ne="5.0");var Nt=parseFloat(Ne);Nt!==NaN&&Nt<5&&Ee.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Nt+" is deprecated. Using version latest instead."),de("5.0",Xe))},Lt=function(Ee,Xe){window.console&&window.console.log&&(!Xe||typeof Xe.showLogging=="undefined"||Xe.showLogging&&Xe.showLogging!=="false")&&console.log(Ee)};fe.material_id!==void 0?Ct(ct):ct();function ct(){var Ee=Rt;ge!==null?Ee=ge:parseFloat(Ee)<5&&(Ee="5.0"),de(Ee,!1),Oe!==null&&qe(Oe,ve),me=!0}return Dt},GGBAppletUtils=function(){"use strict";function Dt(){return window.GGBT_wsf_edit!==void 0}function Rt(me,ge){ge!=1?(me.style.transformOrigin="0% 0% 0px",me.style.webkitTransformOrigin="0% 0% 0px",me.style.transform="scale("+ge+","+ge+")",me.style.webkitTransform="scale("+ge+","+ge+")",me.style.maxWidth="initial",me.querySelector(".ggb_preview")!==null&&(me.querySelector(".ggb_preview").style.maxWidth="initial"),me.querySelectorAll(".ggb_preview img")[0]!==void 0&&(me.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),me.querySelectorAll(".ggb_preview img")[1]!==void 0&&(me.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(me.style.transform="none",me.style.webkitTransform="none")}function fe(me,ge,Oe,He,xe,he){var et=null;if(he!=null&&he!="")for(var ve=me.parentNode;ve!=null;)if((" "+ve.className+" ").indexOf(" "+he+" ")>-1){et=ve;break}else ve=ve.parentNode;var st=0,Ne=0,De=0,Be=0,Ae=0,tt=0,rt=0;if(et)st=et.offsetWidth,Ne=Math.max(He?et.offsetWidth:0,et.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(st=Math.min(window.innerWidth,document.documentElement.clientWidth),Ne=Math.min(window.innerHeight,document.documentElement.clientHeight),De=st):(st=window.innerWidth,Ne=window.innerHeight,De=window.innerWidth),me){var at=me.getBoundingClientRect();at.left>0&&at.left<=st&&(xe===void 0||!xe)&&(document.dir==="rtl"?(Ae=st-at.width-at.left,tt=De<=480?10:30):(tt=at.left,Ae=De<=480?10:30),Be=tt+Ae)}if(me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ze=me.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Be=40,rt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Be=0,rt=40)}}return me&&((Oe===void 0||!Oe)&&ge>0&&ge+Be<st?st=ge:st-=Be,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Oe===void 0||!Oe)&&(Ne-=rt)),{width:st,height:Ne}}function oe(me,ge,Oe,He,xe){if(me.isScreenshoGenerator)return 1;var he=He!==void 0&&He,et=me.noScaleMargin!=null&&me.noScaleMargin,ve=function(ze){return ze&&ze!=="false"},st=ve(me.autoHeight),Ne=fe(ge,me.width,Oe,st,he&&window.GGBT_wsf_view||et,xe),De=parseInt(Ne.width),Be=me.width,Ae=me.height;if(Be===void 0){var tt=ge.querySelector(".appletParameters");tt&&(Be=tt.offsetWidth,Ae=tt.offsetHeight)}var rt=De/Be,at=he?1:Ne.height/Ae;return Oe!==void 0&&!Oe&&(rt=Math.min(1,rt),at=Math.min(1,at)),Math.min(rt,at)}function nt(me,ge,Oe){var He=1,xe,he=!1;if(me.hasOwnProperty("allowUpscale")&&(he=me.allowUpscale),me.hasOwnProperty("scale")&&(He=parseFloat(me.scale),(isNaN(He)||He===null||He===0)&&(He=1),He>1&&(he=!0)),ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(he=!0),!(me.hasOwnProperty("disableAutoScale")&&me.disableAutoScale))xe=oe(me,ge,he,Oe,me.scaleContainerClass);else return He;return he&&(!me.hasOwnProperty("scale")||He===1)?xe:Math.min(He,xe)}function Me(me){var ge=Math.min(window.innerWidth,document.documentElement.clientWidth),Oe=Math.min(window.innerHeight,document.documentElement.clientHeight),He=me.getBoundingClientRect(),xe=(ge-He.width)/2,he=(Oe-He.height)/2;he<0&&(he=0),me.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(xe<40?me.style.left="40px":me.style.left=xe+"px",me.style.top=he+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(he<40?me.style.top="40px":me.style.top=he+"px",me.style.left=xe+"px")}function je(me,ge){var Oe=me.querySelector(".appletParameters");if(Oe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ge.id!==Oe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(me)}if(Oe.parentElement&&/fullscreen/.test(Oe.parentElement.className))return;var He=nt(ge,me);Dt()&&Oe.setAttribute("data-param-scale",He);for(var xe=null,he=0;he<me.childNodes.length;he++)if(me.childNodes[he].className!==void 0&&me.childNodes[he].className.match(/^applet_scaler/)){xe=me.childNodes[he];break}if(xe!==null&&xe.querySelector(".noscale")!==null)return;var et=ge.id!==void 0?ge.id:"ggbApplet",ve=window[et];(ve==null||!ve.recalculateEnvironments)&&xe!==null&&!xe.className.match(/fullscreen/)&&(xe.parentNode.style.transform="",!isNaN(He)&&He!==1?(xe.parentNode.style.width=ge.width*He+"px",xe.parentNode.style.height=ge.height*He+"px",Rt(xe,He)):(Rt(xe,1),xe.parentNode.style.width=ge.width+"px",xe.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Me(me),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Oe).parents(".content-added-content"))}}return{responsiveResize:je,isFlexibleWorksheetEditor:Dt,positionCenter:Me,getScale:nt,scaleElement:Rt}}();__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 Dt=n.location.search;return Dt.indexOf(J)!=-1||Dt.indexOf(K)!=-1}function q(Dt,Rt){}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(Dt){var Rt=s[L].bindings;s[L].bindings=function(){for(var fe=Rt?Rt():{},oe=Dt[webModule.__softPermutationId],nt=O;nt<oe.length;nt++){var Me=oe[nt];fe[Me[O]]=Me[P]}return fe}};var t;function u(){return v(),t}function v(){if(!t){var Dt=o.createElement(Q);if(Dt.id=L,Dt.style.cssText=R+S,Dt.tabIndex=-1,o.body.appendChild(Dt),t=Dt.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Rt=document.compatMode==U?V:W;t.write(Rt+X),t.close()}}}function w(Dt){function Rt(oe){function nt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Me=nt();if(Me){oe();return}function je(){if(!Me){if(!nt())return;Me=!0,oe(),o.removeEventListener&&o.removeEventListener(Z,je,!1),me&&clearInterval(me)}}o.addEventListener&&o.addEventListener(Z,je,!1);var me=setInterval(function(){je()},$)}function fe(oe){var nt=u(),Me=nt.body,je=nt.createElement(_);je.language=ab,je.crossOrigin=W,je.src=oe,webModule.__errFn&&(je.onerror=function(){webModule.__errFn(L,new Error(bb+oe))}),Me.appendChild(je)}Rt(function(){fe(Dt)})}webModule.__startLoadingFragment=function(Dt){return C(Dt)},webModule.__installRunAsyncCode=function(Dt){var Rt=u(),fe=Rt.body,oe=Rt.createElement(_);oe.language=ab,oe.text=Dt,fe.appendChild(oe),fe.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(Dt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Dt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Dt){var Rt=c[Dt];return Rt==null?null:Rt},r=d,webModule.__errFn=e}function B(){function Dt(me){var ge=me.lastIndexOf(rb);ge==-1&&(ge=me.length);var Oe=me.indexOf(sb);Oe==-1&&(Oe=me.length);var He=me.lastIndexOf(tb,Math.min(Oe,ge));return He>=O?me.substring(O,He+P):W}function Rt(me){if(!me.match(/^\w+:\/\//)){var ge=o.createElement(ub);ge.src=me+vb,me=Dt(ge.src)}return me}function fe(){var me=__gwt_getMetaProperty(wb);return me!=null?me:W}function oe(){for(var me=o.getElementsByTagName(_),ge=O;ge<me.length;++ge)if(me[ge].src.indexOf(xb)!=-1)return Dt(me[ge].src);return W}function nt(){var me=o.getElementsByTagName(yb);return me.length>O?me[me.length-P].href:W}function Me(){var me=o.location;return me.href==me.protocol+zb+me.host+me.pathname+me.search+me.hash}var je=fe();return je==W&&(je=oe()),je==W&&(je=nt()),je==W&&Me()&&(je=Dt(o.location.href)),je=Rt(je),je}function C(Dt){return Dt.match(/^\//)||Dt.match(/^[a-zA-Z]+:\/\//)?Dt:webModule.__moduleBase+Dt}function D(){var Dt=[],Rt=O,fe=[],oe=[];function nt(me){var ge=oe[me](),Oe=fe[me];if(ge in Oe)return ge;var He=[];for(var xe in Oe)He[Oe[xe]]=xe;throw r&&r(me,He,ge),null}if(__gwt_isKnownPropertyValue=function(me,ge){return ge in fe[me]},webModule.__getPropMap=function(){var me={};for(var ge in fe)fe.hasOwnProperty(ge)&&(me[ge]=nt(ge));return me},webModule.__computePropValue=nt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Me;try{Me=Cb;var je=Me.indexOf(Db);je!=-1&&(Rt=parseInt(Me.substring(je+P),$),Me=Me.substring(O,je))}catch(me){}return webModule.__softPermutationId=Rt,C(Me+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/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})()},67303:function(Dt,Rt,fe){"use strict";fe.d(Rt,{Ax:function(){return je},Ds:function(){return me},KI:function(){return Oe},SI:function(){return Me},f1:function(){return nt}});var oe=fe(90524);function nt(He){let xe=!0;if(He.length>0){for(let he=0;he<He.length;he++)if(He[he].compile_success==0||!He[he].compile_success){xe=!1;break}}else xe=!1;return xe}function Me(He,xe=""){let he=[];for(let et=0;et<He.length;et++){let ve=He[et],st=xe?`${xe}/${ve.name}`:`${ve.name}`;he.push({title:ve.name,type:ve.type,isLeaf:ve.type!=="tree",key:st})}return he}function je(He,xe,he){for(let et=0;et<He.length;et++){let ve=He[et];if(ve.key===xe){ve.children=he;break}ve.children&&je(ve.children,xe,he)}return He}function me(He,xe,he){let et;return function(){let ve=this,st=arguments,Ne=function(){et=null,he||He.apply(ve,st)},De=he&&!et;clearTimeout(et),et=setTimeout(Ne,xe),De&&He.apply(ve,st)}}const ge=!0,Oe=oe.Z.API_SERVER},6077:function(Dt,Rt,fe){"use strict";fe.d(Rt,{Z:function(){return et}});var oe=fe(59301),nt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Me=fe(92310),je=fe.n(Me),me=fe(29787),ge=fe(2859),Oe=fe(82093),He=fe(49661),xe=(ve,st,Ne)=>new Promise((De,Be)=>{var Ae=at=>{try{rt(Ne.next(at))}catch(ze){Be(ze)}},tt=at=>{try{rt(Ne.throw(at))}catch(ze){Be(ze)}},rt=at=>at.done?De(at.value):Promise.resolve(at.value).then(Ae,tt);rt((Ne=Ne.apply(ve,st)).next())}),et=({data:ve,className:st,fullWidth:Ne,style:De={},onClose:Be,onOk:Ae,showFullTools:tt,noAssociationId:rt})=>{const at=(0,oe.useRef)(null),ze=(0,oe.useRef)(null),Ge=(0,oe.useRef)(null),Ke=(0,oe.useRef)(null),[Ze,Ct]=(0,oe.useState)(!1),[We,Te]=(0,oe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,oe.useEffect)(()=>(Ge.current||(Ge.current=document.createElement("style"),document.head.appendChild(Ge.current)),ve!=null&&ve.visible?(document.body.setAttribute("data-custom","y-hidden"),Ge.current.innerHTML=" html { overflow-y: hidden; }",ve!=null&&ve.src&&$e()):(document.body.removeAttribute("data-custom"),Ge.current&&(document.head.removeChild(Ge.current),Ge.current=null)),()=>{document.body.removeAttribute("data-custom"),Ge.current&&(document.head.removeChild(Ge.current),Ge.current=null)}),[ve==null?void 0:ve.visible]);const $e=()=>xe(void 0,null,function*(){Ct(!0),Te("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Fe=yield(0,He.ZJ)(ve==null?void 0:ve.src);at.current.src="",at.current.src=Fe,at.current.onload=function(){we()},Ct(!1),Te("")}),Se=Fe=>xe(void 0,null,function*(){Ct(!0),Te("\u6B63\u5728\u4FDD\u5B58\u4E2D");const xt=yield(0,Oe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ve.title,file:Fe.dataUrl}});xt!=null&&xt.id&&!rt?(yield(0,Oe.ZP)(`/api/attachments/${ve.id}/add_subitem.json`,{method:"post",body:{subitem_id:xt==null?void 0:xt.id,settings:JSON.stringify(Fe.state)}})).status===0&&Ae():xt!=null&&xt.id&&Ae(xt),Ct(!1),Te("")}),Ie=()=>{const Fe=document.querySelector('a[href="https://markerjs.com/"]');Fe&&Fe.parentNode&&(Fe.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(lt=>{const _t=document.querySelector(lt.name);_t&&_t.setAttribute("title",lt.title)})},we=()=>{ze.current=new ge.hP(at.current),ze.current.targetRoot=Ke.current,ze.current.addEventListener("render",Se),ze.current.addEventListener("beforeclose",Be),tt&&(ze.current.availableMarkerTypes=ze.current.ALL_MARKER_TYPES,ze.current.uiStyleSettings.redoButtonVisible=!0,ze.current.uiStyleSettings.notesButtonVisible=!0,ze.current.uiStyleSettings.zoomButtonVisible=!0,ze.current.uiStyleSettings.zoomOutButtonVisible=!0,ze.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ze.current.uiStyleSettings,ze.current.show(),ve!=null&&ve.snapshotData&&ze.current.restoreState(ve.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ie()},300)};return oe.createElement(oe.Fragment,null,(ve==null?void 0:ve.visible)&&oe.createElement(me.Z,{spinning:Ze,tip:We,style:{position:"absolute",width:"100vw"}},oe.createElement("div",{ref:Ke,className:je()(nt.imageDimensions,st,Ne?nt.fullWidth:""),style:De},oe.createElement("img",{className:nt.img,ref:at}))))}},88615:function(Dt,Rt,fe){"use strict";var oe=fe(59301),nt=fe(77019),Me=fe(5269),je=fe(20554),me=fe(99571),ge=fe(38394),Oe=fe(21697),He=fe(48136),xe=fe(59301);const he=(0,oe.forwardRef)(({callback:et,showSaveButton:ve,value:st=""},Ne)=>{const De=(0,oe.useRef)(),Be=[{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 "}]}]}],Ae=[{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}`}]}]}],tt=ze=>{De.current.setValue(De.current.getValue()+" "+ze.value+" ")},rt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:xe.createElement(nt.Z,{className:Oe.Z.lists,gutter:[10,10]},Be.map((ze,Ge)=>xe.createElement(Me.Z,{flex:"110px",className:Oe.Z.item},xe.createElement("div",null,xe.createElement(ge.Z,{value:`$$${ze.value}$$`}),ze.name),xe.createElement("div",{className:Oe.Z.children},ze.children.map((Ke,Ze)=>xe.createElement("div",{key:Ze},xe.createElement("h1",null,Ke.name),xe.createElement(nt.Z,{gutter:[10,10]},Ke.data.map((Ct,We)=>xe.createElement(Me.Z,{key:We,onClick:()=>tt(Ct),className:Oe.Z.diamond},xe.createElement(ge.Z,{value:"`$$"+Ct.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:xe.createElement(nt.Z,{className:Oe.Z.lists,gutter:[10,10]},Ae.map((ze,Ge)=>xe.createElement(Me.Z,{flex:"110px",className:Oe.Z.item},xe.createElement("div",null,xe.createElement(ge.Z,{value:"`$$"+ze.value+"$$`"}),ze.name),xe.createElement("div",{className:Oe.Z.children},ze.children.map((Ke,Ze)=>xe.createElement("div",{key:Ze},Ke.name&&xe.createElement("h1",null,Ke.name),xe.createElement(nt.Z,{gutter:[10,10]},Ke.data.map((Ct,We)=>xe.createElement(Me.Z,{key:We,onClick:()=>tt(Ct),className:Oe.Z.diamond},xe.createElement(ge.Z,{value:"`$$"+Ct.value+"$$`"}))))))))))}],at=()=>{var ze=document.createElement("div");ze.innerHTML=De.current.getValue();var Ge=ze.innerText;return et&&et(Ge),Ge};return(0,oe.useImperativeHandle)(Ne,()=>({getData:at})),xe.createElement("div",{className:Oe.Z.mathWrap},xe.createElement(je.default,{defaultActiveKey:"1",items:rt}),xe.createElement("math-field",{locale:"zh_cn",className:Oe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:De,style:{width:800,marginTop:30,fontSize:18}},st||""),ve&&xe.createElement("div",{className:Oe.Z.button},xe.createElement(me.ZP,{size:"large",onClick:at,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Rt.Z=he},57884:function(Dt,Rt,fe){"use strict";var oe=fe(59301),nt=fe(93314),Me=fe(99571),je=Object.defineProperty,me=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,he=(Ne,De,Be)=>De in Ne?je(Ne,De,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ne[De]=Be,et=(Ne,De)=>{for(var Be in De||(De={}))He.call(De,Be)&&he(Ne,Be,De[Be]);if(Oe)for(var Be of Oe(De))xe.call(De,Be)&&he(Ne,Be,De[Be]);return Ne},ve=(Ne,De)=>me(Ne,ge(De));const st=({img:Ne,buttonProps:De={},styles:Be={},customText:Ae,ButtonText:tt,ButtonClick:rt,Buttonclass:at,ButtonTwo:ze,imgStyles:Ge,loading:Ke=!1,className:Ze=""})=>oe.createElement("section",{className:`tc animated fadeIn ${Ze}`,style:et({color:"#999",margin:"100px auto",visibility:Ke?"hidden":"visible"},Be)},oe.createElement("img",{src:Ne||nt,style:ve(et({},Ge),{pointerEvents:"none",userSelect:"none"})}),oe.createElement("p",{className:"mt20 font14"},Ae||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),tt&&oe.createElement(Me.ZP,et({className:at,onClick:rt},De),tt),ze&&ze);Rt.Z=st},41550:function(Dt,Rt,fe){"use strict";fe.d(Rt,{Z:function(){return at}});var oe=fe(59301),nt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Me=fe(99571),je=fe(70557),me=fe(51124),ge=fe(25399),Oe=fe(49661),He=fe(72664),xe=fe(57884),he=fe(90524),et=fe(14794),ve=fe(59301),st=Object.defineProperty,Ne=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Ae=(ze,Ge,Ke)=>Ge in ze?st(ze,Ge,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):ze[Ge]=Ke,tt=(ze,Ge)=>{for(var Ke in Ge||(Ge={}))De.call(Ge,Ke)&&Ae(ze,Ke,Ge[Ke]);if(Ne)for(var Ke of Ne(Ge))Be.call(Ge,Ke)&&Ae(ze,Ke,Ge[Ke]);return ze},rt=(ze,Ge,Ke)=>new Promise((Ze,Ct)=>{var We=Se=>{try{$e(Ke.next(Se))}catch(Ie){Ct(Ie)}},Te=Se=>{try{$e(Ke.throw(Se))}catch(Ie){Ct(Ie)}},$e=Se=>Se.done?Ze(Se.value):Promise.resolve(Se.value).then(We,Te);$e((Ke=Ke.apply(ze,Ge)).next())}),at=({editOffice:ze="view",data:Ge,issaver:Ke,onSaver:Ze,theme:Ct,type:We,filename:Te,monacoEditor:$e,className:Se,style:Ie,close:we,onClose:Fe,hasMask:xt,disabledDownload:lt,onImgDimensions:_t,showNodata:wt,recordInfo:pe})=>{const[de,qe]=(0,oe.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Lt,ct]=(0,oe.useState)(""),[Ee,Xe]=(0,oe.useState)(),Je=window.ENV==="build"?"/react/build":"",Nt=location.host.startsWith("localhost")?he.Z.PROXY_SERVER:he.Z.API_SERVER,Et=10*(1024*1024),Re=(0,oe.useRef)();Ge!=null&&Ge.startsWith("/api")&&We!=="txt"&&(Ge=he.Z.API_SERVER+Ge);const dt=ie=>ie.substring(ie.lastIndexOf("/")+1).split(".").pop();Te&&$e&&($e.filename=Te),(0,oe.useEffect)(()=>{var ie,le;const ne=(le=(ie=document.cookie)==null?void 0:ie.replace(/\s/g,""))==null?void 0:le.split(";");ne==null||ne.map(ye=>{let Ue=ye.split("=");Ue[0]==="_educoder_session"&&ct(Ue[1])})},[]),(0,oe.useEffect)(()=>{We==="office"&&(Ge.indexOf("bigfilescdn.")>-1||Ge.indexOf("bigfiles1")>-1?Xe({url:Ge,fileType:dt(Ge),model:Ge.indexOf("model=edit")?"edit":"view"}):ae())},[We,Ge]);function yt(ie){return rt(this,null,function*(){ie.data.type==="pdfdata"&&(Ze(ie.data.data),window.removeEventListener("message",yt,!1)),console.log("mess---:",ie.data)})}const ae=()=>rt(void 0,null,function*(){console.log("data:",Ge);let ie=Ge;Ge.startsWith("http")||(ie=location.origin+ie);let le=new URL(ie).pathname.split("/").pop();const ne=yield(0,He.gJ)({attachment_id:le});ne.url=Nt+ne.url,Xe(ne)}),te=()=>{if(Ge.startsWith("http")||Ge.startsWith("blob:")){z();return}(0,Oe.Sv)(Te||"educoder",Ge,Te)},z=()=>{pe&&(0,et.fc)({id:pe==null?void 0:pe.id,watch_type:1,course_id:pe==null?void 0:pe.course_id}),(0,Oe.Nd)(Te||"educoder",decodeURIComponent(Ge))};return ve.createElement("div",{style:tt({},Ie||{}),className:`${xt&&nt.bgBlack} ${We?nt.wrp:"hide"}`},we&&ve.createElement("div",{className:nt.close,ref:Re},!!_t&&ve.createElement(ge.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Re.current},ve.createElement("span",{onClick:()=>{Fe(),_t()}},ve.createElement("i",{className:"icon-yulanpizhu"}))),!lt&&ve.createElement(ge.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Re.current},ve.createElement("span",{onClick:z},ve.createElement("i",{className:"icon-quxiaozhiding"}))),Ke&&ve.createElement(ge.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Re.current},ve.createElement("span",{className:"",onClick:()=>{const ie=document.getElementById("pdfiframe");window.addEventListener("message",yt,!1),setTimeout(()=>{ie.contentWindow.postMessage("getData","*")},300)}},ve.createElement("i",{className:"icon-baocun"}))),ve.createElement(ge.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Re.current},ve.createElement("span",{className:"",onClick:()=>{Fe()}},ve.createElement("i",{className:"icon-guanbi1"})))),ve.createElement("div",{className:`${nt[Se]} ${Se} ${nt.monaco} ${We==="txt"?"show":"hide"}`},We==="txt"&&ve.createElement(ve.Fragment,null,ve.createElement(me.ZP,tt({},$e)))),We==="audio"&&ve.createElement("audio",{src:`${(Ge==null?void 0:Ge.indexOf("http://"))>-1||(Ge==null?void 0:Ge.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ge}`,autoPlay:!0}),We==="video"&&ve.createElement(ve.Fragment,null,(Ge==null?void 0:Ge.indexOf("http"))>-1?ve.createElement("video",{controls:!0,src:`${Ge}`,autoPlay:!0}):ve.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ge}`,autoPlay:!0})),We==="office"&&Ee&&ve.createElement("iframe",{src:`${Je}/office.html?key=${Ee.key}&url=${btoa(Ee.url)}&callbackUrl=${Nt+(Ee.callbackUrl||"")}&fileType=${Ee.fileType}&title=${Ee.title||""}&model=${ze}&officeServer=${he.Z.ONLYOFFICE}&disabledDownload=${!!lt}`}),We==="html"&&ve.createElement("iframe",{src:Ge+"&disposition=inline"}),We==="pdf"&&ve.createElement("iframe",{id:"pdfiframe",src:`${Je}/js/pdfview/index.html?filename=${Te||"educoder.pdf"}&url=${encodeURIComponent(Ge)}&disabledDownload=${!!lt}&model=${ze}`}),We==="image"&&ve.createElement("img",{src:`${(Ge==null?void 0:Ge.indexOf("http://"))>-1||(Ge==null?void 0:Ge.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ge}`}),(We==="other"||We==="download")&&ve.createElement(ve.Fragment,null,wt?ve.createElement(xe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ve.createElement(Me.ZP,{icon:ve.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:lt},"\u4E0B\u8F7D")}):ve.createElement(Me.ZP,{type:"primary",size:"middle",onClick:te,disabled:lt},ve.createElement(je.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),We==="flowChart"&&ve.createElement("div",{className:"embed"},ve.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Ge||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},38394:function(Dt,Rt,fe){"use strict";fe.d(Rt,{z:function(){return $e},Z:function(){return Se}});var oe=fe(59301),nt=fe(88831),Me=fe(90290),je=fe(64018),me=fe(68535),ge=fe(90524),Oe=fe(49661),He=fe(15342),xe=fe(77736),he=fe(99571),et=fe(1012),ve=fe(41550),st=fe(59301),De=({html:Ie})=>{const we=(0,oe.useRef)(null),Fe=(0,oe.useRef)(null),xt=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 56px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,oe.useEffect)(()=>{const lt=we.current.attachShadow({mode:"open"});Fe.current=document.createElement("div"),Fe.current.className="markdown-body",Fe.current.innerHTML=Ie,lt.appendChild(Fe.current);const _t=document.createElement("style");return _t.textContent=xt,lt.appendChild(_t),()=>{lt.innerHTML=""}},[]),(0,oe.useEffect)(()=>{Fe.current&&(Fe.current.innerHTML=Ie)},[Ie]),st.createElement("div",{ref:we})};function Be(Ie){const we=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],Fe=new RegExp(`\\b(${we.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Ie.replace(Fe,"").trim()}var Ae={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},tt=Object.defineProperty,rt=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Ge=(Ie,we,Fe)=>we in Ie?tt(Ie,we,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):Ie[we]=Fe,Ke=(Ie,we)=>{for(var Fe in we||(we={}))at.call(we,Fe)&&Ge(Ie,Fe,we[Fe]);if(rt)for(var Fe of rt(we))ze.call(we,Fe)&&Ge(Ie,Fe,we[Fe]);return Ie};const Ze="@\u2581\u2581@",Ct="@\u2581@",We=/<pre[^>]*>/g;function Te(Ie){let we=document.createElement("div");return we.innerHTML=Ie,we.childNodes.length===0?"":we.childNodes[0].nodeValue}const $e=(Ie,we)=>{Ie=Ie||"";const Fe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,xt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,lt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,_t=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return we?Ie.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Fe,(wt,pe,de,qe,Lt,ct,Ee)=>{const Xe=pe||qe||ct,Je=de||Lt||Ee||"?";return ge.Z.API_SERVER+"/api/attachments/"+Xe+Je+"&t="+(0,Oe.Jn)(Xe,Date.now())+(wt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ie=Ie.replace(_t,(wt,pe,de,qe,Lt,ct,Ee)=>{const Xe=pe||qe||ct,Je=de||Lt||Ee||"?";return ge.Z.API_SERVER+"/attachments/download/"+Xe+Je+"&t="+(0,Oe.Jn)(Xe,Date.now())+(wt.indexOf(")")>-1?")":"&")}).replace(Fe,(wt,pe,de,qe,Lt,ct,Ee)=>{const Xe=pe||qe||ct,Je=de||Lt||Ee||"?";return ge.Z.API_SERVER+"/api/attachments/"+Xe+Je+"&t="+(0,Oe.Jn)(Xe,Date.now())+(wt.indexOf(")")>-1?")":"&")}).replace(xt,(wt,pe,de,qe,Lt)=>{const ct=pe||qe,Ee=de||Lt||"";return'"'+ge.Z.API_SERVER+"/api/attachments/"+ct+Ee+ct+Ee+"&t="+(0,Oe.Jn)(ct,Date.now())}).replace(lt,(wt,pe,de,qe,Lt)=>{const ct=pe||qe,Ee=de||Lt||"";return"("+ge.Z.API_SERVER+"/files/uploads/"+ct+Ee+ct+Ee+"&t="+(0,Oe.Jn)(ct,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),Ie)};var Se=({value:Ie="",edit:we=!1,className:Fe,showTextOnly:xt,showLines:lt,style:_t={},stylesPrev:wt={},highlightKeywords:pe,showProgramFill:de,isProgramFill:qe,disabledFill:Lt=!1,programFillValue:ct,openEditor:Ee=()=>{},onFillChange:Xe=ot=>{},onFillBlur:Je=()=>{},onFillFocus:Nt=()=>{}})=>{let ot=Be(String(Ie||""));const Et=(0,oe.useRef)(),Re=(0,oe.useRef)(),[dt,yt]=(0,oe.useState)(""),[ae,te]=(0,oe.useState)("office"),[z,ie]=(0,oe.useState)([]),le=(0,oe.useRef)("a"+(0,et.Z)()),ne={},ye=it=>/<style[\s\S]*?>/i.test(it||""),Ue=(it,fn,Ht)=>{const Kt=document.createElement(it===Ct?"input":"textarea");Kt.style.width="100%",Kt.style.height=it===Ct?"40px":"151px",Kt.rows=5,Kt.spellcheck=!1,Kt.name="edu-program-fill",Kt.placeholder="\u8BF7\u8F93\u5165",Kt.dataset.id=fn;const un=Object.keys(ne).length;return ne[un]=Kt,`<span class="edu-program-fill-wrap ${it===Ct?"":"show"}" style="width:${it===Ct?"600px":"100%"}" title=${Ht||""}><span>${Kt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function At(it){return it=it.replace(/!\[.*?\]\(.*?\)/g,""),it=it.replace(/\[.*?\]\(.*?\)/g,""),it=it.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),it=it.replace(/<embed.*?>/g,""),it=it.replace(/<img.*?>/g,""),it=it.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),it=it.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),it=it.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),it=it.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),it}const mt=it=>!xt&&ye(ot)?it:it.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(fn,Ht){let Kt=Ht.replace(/(\n|\r)/g,"").split("}"),un=[];return Kt.map(Nn=>{Nn!=""&&un.push(`.${le.current} ${Nn}`)}),`<style>${un.join("}")}</style>`}),ft=(0,oe.useMemo)(()=>{try{const Kt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,un=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Nn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,dn=/\(\/attachments\/download\//g;ot=ot.replace(dn,"("+ge.Z.API_SERVER+"/attachments/download/").replace(Kt,"("+ge.Z.API_SERVER+"/api/attachments/").replace(un,'"'+ge.Z.API_SERVER+"/api/attachments/").replace(Nn,'"'+ge.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),Et.current.style.display="none"}catch(Kt){}if(de){let Kt=-1;return ot=ot.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(un,Nn,dn){var kn;return++Kt,Ue(un,Kt,(kn=ct==null?void 0:ct[Kt])==null?void 0:kn.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${mt(ot||"")}</pre>`}let it=mt(ot);it=(0,Me.ZP)(it);const fn=(0,Me.ez)();ot.match(/\[TOC\]/)&&(it=it.replace("<p>[TOC]</p>",(0,Me.Qv)()),(0,Me.Iy)()),it=it.replace(/(__special_katext_id_\d+__)/g,(Kt,un)=>{const{type:Nn,expression:dn}=fn[un];return(0,He.renderToString)(Te(dn)||"",{displayMode:Nn==="block",throwOnError:!1,output:"html"})}),it=it.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Me.AL)();const Ht=document.createElement("div");if(Ht.innerHTML=it,xt)return Ht.innerText;if(pe){const Kt=pe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return tn(Ht,Kt),Ht.innerHTML}return setTimeout(()=>vn(),500),Ht.innerHTML},[ot,pe]);(0,oe.useEffect)(()=>{nn.current&&nn.current.querySelectorAll(["input","textarea"]).forEach(fn=>{fn.oninput=bt,fn.onblur=Gt,fn.onfocus=It})},[z]),(0,oe.useEffect)(()=>{var it,fn,Ht,Kt,un;if(ct!=null&&ct.length)try{const Nn=nn.current.querySelectorAll(".edu-program-fill-score"),dn=nn.current.querySelectorAll('[name="edu-program-fill"]');for(const[kn,tr]of dn.entries())tr.value=((it=ct==null?void 0:ct[kn])==null?void 0:it.value)||"",((fn=ct==null?void 0:ct[kn])==null?void 0:fn.type)==="warning"?tr.className="program-fill-warning":((Ht=ct==null?void 0:ct[kn])==null?void 0:Ht.type)==="success"?tr.className="program-fill-success":tr.className="";for(const[kn,tr]of Nn.entries())tr.innerHTML=(Kt=ct==null?void 0:ct[kn])!=null&&Kt.score?`${(un=ct==null?void 0:ct[kn])==null?void 0:un.score}\u5206`:"";ie(ct)}catch(Nn){console.log(Nn,"error")}},[ct]);const bt=it=>{z[it.target.dataset.id]=z[it.target.dataset.id]||{},z[it.target.dataset.id].value=it.target.value,ie([...z]),Xe(z,it.target.dataset.id)},Gt=it=>{z[it.target.dataset.id]=z[it.target.dataset.id]||{},z[it.target.dataset.id].value=it.target.value,ie([...z]),Je(z,it.target.dataset.id)},It=it=>{z[it.target.dataset.id]=z[it.target.dataset.id]||{},z[it.target.dataset.id].value=it.target.value,ie([...z]),Nt(z,it.target.dataset.id)};function tn(it,fn){return it.childNodes.forEach(Ht=>{var Kt;if(Ht.childNodes.length>0)tn(Ht,fn);else if(Ht.nodeName!=="IMG")if(Ht.innerHTML)Ht.innerHTML=(Kt=Ht.innerHTML)==null?void 0:Kt.replace(new RegExp(fn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const un=document.createElement("span");un.innerHTML=Ht.textContent.replace(new RegExp(fn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Ht.replaceWith(un)}})}const nn=(0,oe.useRef)();Me.jb.WebkitLineClamp=lt,lt&&(_t=Ke(Ke({},_t),Me.jb));function St(it){let fn=it.target;if(fn.tagName.toUpperCase()==="A"){let Ht=fn.getAttribute("href");if(Ht.indexOf("office")>-1)it.preventDefault(),yt(Ht),te("office");else if(Ht.indexOf("application/pdf")>-1)it.preventDefault(),yt(Ht),te("pdf");else if(Ht.indexOf("text/html")>-1)it.preventDefault(),yt(Ht),te("html");else if(Ht.startsWith("#")){it.preventDefault();let Kt=document.getElementById(Ht.replace("#",""));Kt&&Kt.scrollIntoView(!0)}}}const vn=()=>{var it;const fn=(it=nn.current)==null?void 0:it.querySelectorAll("video");fn==null||fn.forEach(Ht=>{if(Ht.oncontextmenu=()=>!1,Ht.src.indexOf(".m3u8")>-1&&!Ht.canPlayType("application/vnd.apple.mpegurl")){if(me.ZP.isSupported()){var Kt=new me.ZP;Kt.loadSource(Ht.src),Kt.attachMedia(Ht)}}})};(0,oe.useEffect)(()=>{if(nn.current&&ft&&ft.match(We)&&window.PR.prettyPrint(),nn.current)return nn.current.addEventListener("click",St),()=>{var it;(it=nn.current)==null||it.removeEventListener("click",St),(0,Me.AL)(),(0,Me.Iy)()}},[ft,nn.current,St]);const Zt=it=>{it.target.nodeName==="IMG"&&it.target.className.indexOf("draw-flowchart")>-1?(Et.current.style.zIndex=1,Et.current.style.display="flex",Et.current.style.width=it.target.clientWidth+"px",Et.current.style.height=it.target.clientHeight+"px",Et.current.style.top=it.target.offsetTop+"px",Et.current.style.left=it.target.offsetLeft+"px",it.target.id&&(Re.current=it.target.id)):Et.current.style.display="none"},qt=()=>{Et.current.style.display="none"};return(0,oe.useEffect)(()=>{var it;const fn=Ht=>{Ht.preventDefault(),Ht.clipboardData.setData("text",window.getSelection().toString())};return(it=nn.current)==null||it.addEventListener("copy",fn),()=>{var Ht;(Ht=nn.current)==null||Ht.removeEventListener("copy",fn)}},[nn.current]),oe.createElement("div",{style:{position:"relative"},onMouseLeave:qt},xt&&oe.createElement("div",{ref:nn,className:`${Ae.mdBody} `},ft),!xt&&!ye(ft)&&oe.createElement("div",{ref:nn,style:Ke({},_t),onMouseOver:Zt,className:`${Fe||""} ${Lt?"disabled-fill":""} markdown-body ${Ae.mdBody} ${le.current}`,dangerouslySetInnerHTML:{__html:ft}}),!xt&&ye(ft)&&oe.createElement(De,{html:ft}),oe.createElement("div",{ref:Et,className:`${Ae.button} ${we?"":Ae.previewFlowChart}`},oe.createElement(xe.Z,null,oe.createElement(he.ZP,{onClick:()=>{we?Ee(Re.current):(yt(Re.current),te("flowChart"))}},we?"\u7F16\u8F91":"\u9884\u89C8"))),oe.createElement(ve.Z,{close:!0,data:dt,type:dt!=null&&dt.length?ae:"",style:Ke({},wt),onClose:()=>yt("")}))}},44905:function(Dt,Rt,fe){"use strict";fe.d(Rt,{h:function(){return ze}});var oe=fe(59301),nt=fe(82326),Me=fe(28284),je=fe(99571),me=fe(89780),ge=fe.n(me),Oe=fe(66543),He=fe(59598),xe=Object.defineProperty,he=Object.defineProperties,et=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,De=(Ge,Ke,Ze)=>Ke in Ge?xe(Ge,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Ge[Ke]=Ze,Be=(Ge,Ke)=>{for(var Ze in Ke||(Ke={}))st.call(Ke,Ze)&&De(Ge,Ze,Ke[Ze]);if(ve)for(var Ze of ve(Ke))Ne.call(Ke,Ze)&&De(Ge,Ze,Ke[Ze]);return Ge},Ae=(Ge,Ke)=>he(Ge,et(Ke));const tt=nt.default.Option,rt={labelCol:{span:4},wrapperCol:{span:20}},at={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Rt.Z=({callback:Ge,onCancel:Ke})=>{const[Ze,Ct]=(0,oe.useState)("python");function We($e){Ct(at[$e][1])}function Te($e){Ge($e)}return oe.createElement(Me.default,Ae(Be({},rt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Te,style:{width:500}}),oe.createElement(Me.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},oe.createElement(nt.default,{getPopupContainer:$e=>$e.parentNode,onChange:We},Object.keys(at).map($e=>oe.createElement(tt,{key:$e,value:$e},at[$e][0])))),oe.createElement(Me.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},oe.createElement(ze,{mode:Ze})),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(je.ZP,{type:"ghost",onClick:Ke},"\u53D6\u6D88")))};function ze({value:Ge,onChange:Ke,mode:Ze,options:Ct={}}){const We=(0,oe.useRef)(),[Te,$e]=(0,oe.useState)();return(0,oe.useEffect)(()=>{if(Te){let Se=function(Ie){const we=Ie.getValue();Ke&&Ke(we)};return Te.on("change",Se),()=>{Te.off("change",Se)}}},[Te,Ke]),(0,oe.useEffect)(()=>{Te&&Te.setOption("mode",Ze)},[Te,Ze]),(0,oe.useEffect)(()=>{Te&&(Ge!==Te.getValue()||Ge==="")&&setTimeout(()=>{Te.setValue(Ge||"")},300)},[Te,Ge]),(0,oe.useEffect)(()=>{if(We.current&&!Te){const Se=ge().fromTextArea(We.current,Be({mode:Ze,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ct));$e(Se)}},[We.current,Te]),oe.createElement("div",{className:"my-codemirror-container"},oe.createElement("textarea",{ref:We}))}},2978:function(Dt,Rt,fe){"use strict";fe.d(Rt,{Z:function(){return Ot}});var oe=fe(59301),nt=fe(76560),Me=fe(89780),je=fe.n(Me),me=fe(76374),ge=fe(66543),Oe=fe(6313),He=fe(25717),xe=fe(99498),he=fe(25419),et=fe(67549),ve=fe(38394),st=({value:ut="",className:gt,showTextOnly:Yt,showLines:cn,style:rn={}})=>{const Sn=(0,oe.useMemo)(()=>"",[ut]);return oe.createElement(oe.Fragment,null,oe.createElement("div",{dangerouslySetInnerHTML:{__html:Sn}}))},Ne=Object.defineProperty,De=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,at=(ut,gt,Yt)=>gt in ut?Ne(ut,gt,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):ut[gt]=Yt,ze=(ut,gt)=>{for(var Yt in gt||(gt={}))tt.call(gt,Yt)&&at(ut,Yt,gt[Yt]);if(Ae)for(var Yt of Ae(gt))rt.call(gt,Yt)&&at(ut,Yt,gt[Yt]);return ut},Ge=(ut,gt)=>De(ut,Be(gt));let Ke=[{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\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",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 Ze({onActionCallback:ut,title:gt,icon:Yt,actionName:cn,className:rn="",children:Sn}){function Bn(){ut(cn)}return oe.createElement("a",{title:gt,className:rn,onClick:Bn},oe.createElement("i",{className:`${Yt}`}),Sn)}var Ct=({watch:ut,showNullButton:gt,showNullProgramButton:Yt,onActionCallback:cn,fullScreen:rn,insertTemp:Sn,hidetoolBar:Bn,extraUse:Dn})=>{const wn=[...Ke,{title:`${ut?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ut?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return oe.createElement("ul",{className:"markdown-toolbar-container"},!Bn&&wn.map((En,Bt)=>oe.createElement("li",{key:Bt},En.actionName?oe.createElement(Ze,Ge(ze({},En),{onActionCallback:cn})):oe.createElement("span",{className:"v-line"}))),gt?oe.createElement("li",null,oe.createElement(Ze,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:cn},oe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Yt?oe.createElement(oe.Fragment,null,oe.createElement("li",null,oe.createElement(Ze,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:cn},oe.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),oe.createElement("li",null,oe.createElement(Ze,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:cn},oe.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Sn&&oe.createElement("li",null,oe.createElement(Ze,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Sn}`,onActionCallback:cn},oe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Dn&&oe.createElement("li",null,Dn),oe.createElement("li",{className:"btn-full-screen"},oe.createElement(Ze,{icon:`${rn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:rn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:cn})))},We=fe(75790),Te=fe(28284),$e=fe(37568),Se=fe(99571),Ie=Object.defineProperty,we=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,wt=(ut,gt,Yt)=>gt in ut?Ie(ut,gt,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):ut[gt]=Yt,pe=(ut,gt)=>{for(var Yt in gt||(gt={}))lt.call(gt,Yt)&&wt(ut,Yt,gt[Yt]);if(xt)for(var Yt of xt(gt))_t.call(gt,Yt)&&wt(ut,Yt,gt[Yt]);return ut},de=(ut,gt)=>we(ut,Fe(gt));const qe={labelCol:{span:4},wrapperCol:{span:20}};var Lt=({callback:ut,onCancel:gt})=>{function Yt(cn){ut(cn)}return oe.createElement(Te.default,de(pe({},qe),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Yt,style:{width:500}}),oe.createElement(Te.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},oe.createElement($e.default,null)),oe.createElement(Te.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},oe.createElement($e.default,null)),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(Se.ZP,{type:"ghost",onClick:gt},"\u53D6\u6D88")))},ct=fe(44905),Ee=fe(45596),Xe=fe(62957),Je=fe(77019),Nt=fe(6077),ot=fe(59301),Et=({callback:ut,onCancel:gt})=>{const Yt=document.createElement("canvas"),cn=Yt.getContext("2d");Yt.width=1e3,Yt.height=800,cn.fillStyle="#ffffff",cn.fillRect(0,0,Yt.width,Yt.height);const rn=Yt.toDataURL("image/png");return ot.createElement(Xe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},ot.createElement(Je.Z,{style:{height:"100vh"}},ot.createElement(Nt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:rn,visible:!0,title:String(Date.now())},onOk:Sn=>{ut({src:Sn.url})},onClose:gt})))},Re=fe(30641),dt=fe(5269),yt=fe(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=fe(59301),ie=(0,oe.forwardRef)(({onCancel:ut,editImgId:gt,callback:Yt},cn)=>{let rn=(0,oe.useRef)(),Sn=(0,oe.useRef)(),Bn=(0,oe.useRef)(),Dn=(0,oe.useRef)(!1);const wn=(0,oe.useRef)(!1);console.log("ref:",cn);const[En,Bt]=(0,oe.useState)(0),[Qe,Wt]=(0,oe.useState)("100vh");return(0,oe.useEffect)(()=>{Bt(1)},[]),(0,oe.useImperativeHandle)(cn,()=>({setHeight:Wt})),te.createElement("div",{ref:wn,className:"body-overflow-initial"},te.createElement(Re.Z,{width:"100vw",height:Qe,footer:null,closable:!0,placement:"bottom",open:!!En,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(gn=>{Yt({src:`/api/attachments/${gn}`,id:gn})})},title:te.createElement(Je.Z,{align:"middle"},te.createElement(dt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(dt.Z,{onClick:()=>{Wt(Qe==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(dt.Z,{onClick:()=>{window.saveDrawData(gn=>{if(gn===null){yt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}yt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Yt({src:`/api/attachments/${gn}`,id:gn,disabledClose:!0})})}},te.createElement(Se.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${gt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Sn})))}),le=fe(90524),ne=fe(47889),ye=fe(71051);const Ue=ne.ZP.Group,At={margin:"0 8px"};var mt=({callback:ut,onCancel:gt})=>{function Yt(cn){ut(cn)}return oe.createElement(Te.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Yt},oe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},oe.createElement("span",{style:At},"\u5355\u5143\u683C\u6570\uFF1A"),oe.createElement("span",{style:At},"\u884C\u6570"),oe.createElement(Te.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},oe.createElement(ye.Z,null)),oe.createElement("span",{style:At},"\u5217\u6570"),oe.createElement(Te.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},oe.createElement(ye.Z,null))),oe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},oe.createElement("span",{style:At},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),oe.createElement(Te.default.Item,{name:"align"},oe.createElement(Ue,null,oe.createElement(ne.ZP,{value:"default"},oe.createElement("i",{className:"fa fa-align-justify"})),oe.createElement(ne.ZP,{value:"left"},oe.createElement("i",{className:"fa fa-align-left"})),oe.createElement(ne.ZP,{value:"center"},oe.createElement("i",{className:"fa fa-align-center"})),oe.createElement(ne.ZP,{value:"right"},oe.createElement("i",{className:"fa fa-align-right"}))))),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(Se.ZP,{type:"ghost",onClick:gt},"\u53D6\u6D88")))},ft=fe(71411),bt=fe(11081),Gt=fe.n(bt),tn=(0,oe.forwardRef)(({use3d:ut,width:gt,height:Yt,callback:cn,showSaveButton:rn},Sn)=>{const Bn=(0,oe.useRef)(),Dn=(0,oe.useRef)(),[wn,En]=(0,oe.useState)(!1),Bt=(0,oe.useRef)({id:Bn,appName:"graphing",width:gt||1e3,height:Yt||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)(()=>{Dn.current=new(Gt())(Bt.current,!0),window.onload=function(){Dn.current.inject("applet_container")}},[]);const Qe=()=>{var Wt=window.ggbApplet.getPNGBase64(1,!0,72);return cn&&cn(Wt),Wt};return(0,oe.useEffect)(()=>{Bt.current.appName=wn?"3D":"graphing",Dn.current.inject("applet_container")},[wn]),(0,oe.useEffect)(()=>{En(ut)},[ut]),(0,oe.useImperativeHandle)(Sn,()=>({getImgData:Qe})),oe.createElement(oe.Fragment,null,oe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Bn}),oe.createElement(Je.Z,{align:"middle"},oe.createElement(dt.Z,{flex:1},oe.createElement(ft.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:wn,onChange:Wt=>En(Wt)})),oe.createElement(dt.Z,null,oe.createElement(Se.ZP,{size:"large",onClick:Qe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),nn=fe(88615);const St="link",vn="upload-image",Zt="add-flowchart",qt="draw-image",it="add-flowchart",fn="code-block",Ht="add-table",Kt="------------",un={default:Kt,left:`:${Kt}`,center:`:${Kt}:`,right:`${Kt}:`};var Nn=fe(17904),dn=fe(49661);function kn(){}let tr=0;const Un=1e4,Nr="\u2581",Mr="@\u2581\u2581@",dr="@\u2581@",Xn=`
**\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`,hn=["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 jn(ut){return/^\d+$/.test(ut)?`${ut}px`:ut}const Mn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",nr={[Mn+"-B"]:"bold",[Mn+"-I"]:"italic"},kt={[St]:"\u6DFB\u52A0\u94FE\u63A5",[fn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[vn]:"\u6DFB\u52A0\u56FE\u7247",[qt]:"\u6DFB\u52A0\u753B\u56FE",[Zt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ht]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ot=({defaultValue:ut="",onChange:gt,width:Yt="100%",height:cn=400,miniToolbar:rn=!1,isFocus:Sn=!1,watch:Bn,insertTemp:Dn,mode:wn="markdown",id:En="markdown-editor-id",showResizeBar:Bt=!1,noStorage:Qe=!1,showNullButton:Wt=!1,showNullProgramButton:gn=!1,hidetoolBar:An=!1,fullScreen:ke=!1,onBlur:Le,onCMBeforeChange:Pt,onFullScreen:ht,className:_e="",disablePaste:pt=!1,disabled:Jt=!1,disabledFill:ln=!1,placeholder:pn="",values:zt="",extraUse:Qt})=>{const[Pe,Tn]=(0,oe.useState)(null),[en,Cn]=(0,oe.useState)(ut),[yn,Pn]=(0,oe.useState)(Bn),[Wn,mr]=(0,oe.useState)(ke),[Gn,In]=(0,oe.useState)(""),[ur,zn]=(0,oe.useState)(0),[gr,_r]=(0,oe.useState)(cn),[fr,yr]=(0,oe.useState)(!1),[Dr,br]=(0,oe.useState)(0),[or,Br]=(0,oe.useState)(0),ar=(0,oe.useRef)(),hr=(0,oe.useRef)(),xr=(0,oe.useRef)(),kr=(0,oe.useRef)(),pr=(0,oe.useRef)(),rr=(0,oe.useRef)(),$n=(0,nt.useDispatch)();(0,oe.useEffect)(()=>{const jt=window.scrollY||window.pageYOffset;Cn(zt),Pe==null||Pe.setValue(zt),window.scrollTo(0,jt)},[zt]),(0,oe.useEffect)(()=>{ht==null||ht(Wn)},[Wn]),(0,oe.useEffect)(()=>{if(ar.current){let jt=function(Xt,$t){var Hn;if(pt){$t.preventDefault();return}const Kn=$t.clipboardData;if(Kn){const Sr=Kn.types.toString(),Qn=Kn.items;if(Sr==="Files"||Kn.types.indexOf("Files")>-1){if($t.preventDefault(),wn=="stex")return;try{let sr=Qn[1];((Hn=Qn[0])==null?void 0:Hn.kind)==="file"&&(sr=Qn[0]);const Pr=sr.getAsFile(),Gr=Pr.name.split(".").pop();(0,Ee.I)(Pr,wr=>{var Yr,Lr,di;wr.id?((Yr=Pr==null?void 0:Pr.type)==null?void 0:Yr.indexOf("image"))>-1?Tt.replaceSelection(`<img width="100%" src="/api/attachments/${wr.id}?type=${wr.content_type})" alt="" />`):((Lr=Pr==null?void 0:Pr.type)==null?void 0:Lr.indexOf("video"))>-1?Tt.replaceSelection(`<video width="100%" controls src="/api/attachments/${wr.id}"></video>`):((di=Pr==null?void 0:Pr.type)==null?void 0:di.indexOf("pdf"))>-1?Tt.replaceSelection(`<a href="/api/attachments/${wr.id}?type=${Pr.type}&disposition=inline" target="_blank">${Pr.name}</a>`):hn.includes(Gr)?Tt.replaceSelection(`<a href="/api/attachments/${wr.id}?type=office&disposition=inline" target="_blank">${Pr.name}</a>`):Tt.replaceSelection(`[${Pr.name}](/api/attachments/${wr.id}?type=${wr.content_type})`):(wr==null?void 0:wr.status)===401&&(document.location.href="/user/login")})}catch(sr){yt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Tt=je().fromTextArea(ar.current,{mode:wn,lineNumbers:!rn,lineWrapping:!0,value:ut,autoCloseTags:!0,autoCloseBrackets:!0});return Tt.on("keyup",function(Xt,$t){$t.keyCode===8&&(Xt.getValue()==""?Tt.setOption("placeholder",pn):Tt.setOption("placeholder",null))}),Tt.on("keydown",function(Xt,$t){if($t.keyCode===8){var Hn=Zr(Xt);Hn&&$t.preventDefault()}}),Sn&&Tt.focus(),Tt.on("paste",jt),Jt&&Tt.on("beforeChange",function(Xt,$t){($t.origin==="paste"||$t.origin==="+input")&&$t.cancel()}),Tn(Tt),()=>{Tt.off("paste",jt)}}},[]);const Tr=(0,oe.useCallback)(()=>{if(hr.current)try{}catch(jt){console.log(jt,"---- to set md editor body height")}},[gr,hr,Wn]);(0,oe.useEffect)(()=>{function jt(){let Tt=new me.Z(Xt=>{for(let $t of Xt)($t.target.offsetHeight>0||$t.target.offsetWidth>0)&&(Tr(),Pe.setSize("100%","100%"),Pe.refresh())});return Tt.observe(ar.current.parentElement),Tt}if(Pe){const Tt=jt();return()=>{var Xt,$t;(Xt=ar.current)!=null&&Xt.parentElement&&Tt.unobserve(($t=ar.current)==null?void 0:$t.parentElement)}}},[Pe,Tr]),(0,oe.useEffect)(()=>{if(Pe){let jt=[];for(const[Tt,Xt]of Object.entries(nr)){let $t={[Tt]:()=>{jr(Xt)}};jt.push($t),Pe.addKeyMap($t)}return()=>{for(let Tt of jt)Pe.removeKeyMap(Tt)}}},[Pe]),(0,oe.useEffect)(()=>{ke!==Wn&&mr(ke)},[ke]),(0,Nn.Z)(()=>{if(!Qe&&ur>0){let jt=new Date().getTime(),Tt=window.sessionStorage.getItem(En);jt>=ur+Un&&(!Tt||Tt!==en)&&(window.sessionStorage.setItem(En,en),yr(!0))}},Un),(0,oe.useEffect)(()=>{Pn(Bn)},[Pe,Bn]),(0,oe.useEffect)(()=>{Pe&&Sn&&Pe.focus()},[Pe,Sn]),(0,oe.useEffect)(()=>{if(yn&&Pe){let jt=function(Xt){let $t=Xt.target;if(kr.current){let Hn=$t.scrollTop/$t.scrollHeight;kr.current.scrollTop=kr.current.scrollHeight*Hn}};const Tt=Pe.getScrollerElement();return Tt.addEventListener("scroll",jt),()=>{Tt.removeEventListener("scroll",jt)}}},[Pe,yn]),(0,oe.useEffect)(()=>{if(Pe&&Pt){let jt=function(Tt,Xt){Pt(Tt,Xt)};return Pe.on("beforeChange",jt),()=>{Pe.off("beforeChange",jt)}}},[Pe,Pt]),(0,oe.useEffect)(()=>{if(Pe&&Le){let jt=function(){Le(Pe.getValue())};return Pe.on("blur",jt),()=>{Pe.off("blur",jt)}}},[Pe,Le]);function Zr(jt,Tt){var Xt=jt.getDoc(),$t=Xt.getCursor(),Hn=Xt.getLine($t.line),Kn=Hn.charAt($t.ch-1),Sr=Hn.lastIndexOf("@\u2581@",$t.ch),Qn=Hn.lastIndexOf("@\u2581\u2581@",$t.ch),sr=Sr>Qn?Sr:Qn,Pr=Sr>Qn?3:4;if(Mr.indexOf(Kn)===-1)return null;if(console.log("change1:",Tt,jt,Hn,$t,sr,Sr,Qn,Kn),sr>=0&&$t.ch-sr<5){var Gr=sr+Pr;return Xt.replaceRange("",{line:$t.line,ch:sr},{line:$t.line,ch:Gr}),{line:$t.line,ch:Gr}}return null}(0,oe.useEffect)(()=>{if(Pe){let jt=function(Tt,Xt){const $t=Tt.getValue();Cn($t),zn(new Date().getTime()),Tt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),gt&&(gn?gt($t,Ft($t)):gt($t))};return Pe.on("change",jt),()=>{Pe.off("change",jt)}}},[Pe,gt]),(0,oe.useEffect)(()=>{if(Pe)if(ut==null)Pe.setValue(""),Cn("");else{const jt=window.scrollY||window.pageYOffset;ut!==Pe.getValue()&&(Pe.setValue(ut),Cn(ut),Pe.setCursor(Jt?1:Pe.lineCount(),0),window.scrollTo(0,jt))}},[Pe,ut]);const jr=(0,oe.useCallback)(jt=>{const Tt=Pe.getCursor(),Xt=Pe.getSelection();let $t=Xt.split(`
`);switch(jt){case"bold":return Pe.replaceSelection("**"+Xt+"**"),Xt===""&&Pe.setCursor(Tt.line,Tt.ch+2),Pe.focus();case"italic":return Pe.replaceSelection("*"+Xt+"*"),Xt===""&&Pe.setCursor(Tt.line,Tt.ch+1),Pe.focus();case"code":return Pe.replaceSelection("`"+Xt+"`"),Xt===""&&Pe.setCursor(Tt.line,Tt.ch+1),Pe.focus();case"inline-latex":return(0,dn.Ye)($n)?void 0:(In("inline-latex"),Pe.focus());case"latex":return Pe.replaceSelection("```latex\n"+Xt+"\n```"),Pe.setCursor(Tt.line+1,Xt.length+1),Pe.focus();case"line-break":return Pe.replaceSelection(`<br/>
`),Pe.focus();case"list-ul":return Xt===""?Pe.replaceSelection("- "+Xt):Pe.replaceSelection($t.map(Hn=>Hn===""?"":`- ${Hn}`).join(`
`)),Pe.focus();case"list-ol":return Xt===""?Pe.replaceSelection("1. "+Xt):Pe.replaceSelection($t.map((Hn,Kn)=>Hn===""?"":`${Kn+1}. ${Hn}`).join(`
`)),Pe.focus();case"add-null-ch":return Xt===""&&Pe.setCursor(Tt.line,Tt.ch),Pe.replaceSelection(Nr),Pe.focus();case"add-signal":return Xt===""&&Pe.setCursor(Tt.line,Tt.ch),Pe.replaceSelection(dr),Pe.focus();case"add-multiple":return Xt===""&&Pe.setCursor(Tt.line,Tt.ch),Pe.replaceSelection(Mr),Pe.focus();case"inster-template-1":return Xt===""&&Pe.setCursor(Tt.line,Tt.ch),Pe.replaceSelection(Xn),Pe.focus();case"eraser":return Pe.setValue(""),Pe.focus();case"trigger-watch":return Pn(!yn),Pe.focus();case"trigger-full-screen":return mr(!Wn),Pe.focus();case St:In(St);return;case fn:In(fn);return;case vn:In(vn);return;case qt:In(qt);return;case"maths-latex":if((0,dn.Ye)($n))return;In("maths-latex");return;case Zt:pr.current="",sessionStorage.removeItem("file_id"),In(Zt);return;case Ht:In(Ht);return;default:throw new Error}},[Pe,yn,Wn]),ir=(0,oe.useCallback)((jt,Tt)=>{var Xt,$t,Hn,Kn,Sr,Qn;jt!=null&&jt.disabledClose||In("");const{src:sr,alt:Pr,id:Gr}=jt||{};switch(Gn){case St:const{title:zi,link:Oi}=jt;return Pe.replaceSelection(`[${zi}](${Oi})`),Pe.focus();case fn:const{language:xi,content:mi}=jt;return Pe.replaceSelection(["```"+xi,mi,"```"].join(`
`)),Pe.focus();case"maths-latex":for(var wr=atob(jt),Yr=new Uint8Array(wr.length),Lr=0;Lr<wr.length;Lr++)Yr[Lr]=wr.charCodeAt(Lr);var di=new Blob([Yr],{type:"image/png"});(0,Ee.I)(di,fi=>{fi.id?Pe.replaceSelection(`![,](/api/attachments/${fi.id}?type=${fi.content_type})`):(fi==null?void 0:fi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,dn.Ye)($n))return;Pe.replaceSelection("`$$"+jt+"$$`");break;case it:if(!Gr)return;Pe.getValue().indexOf(sr)===-1?Pe.replaceSelection(`<center><img id="${Gr}" width="80%" src="${sr}" class="draw-flowchart" alt="${Pr||""}" /></center>`):document.getElementById(Gr).src=le.Z.API_SERVER+sr+"?t="+Date.now();break;case vn:case qt:const Er=Tt,wi=(Hn=($t=(Xt=Er==null?void 0:Er.name)==null?void 0:Xt.split("."))==null?void 0:$t.pop)==null?void 0:Hn.call($t);return((Kn=Er==null?void 0:Er.type)==null?void 0:Kn.indexOf("image"))>-1||!(Er!=null&&Er.type)?Er!=null&&Er.align||Er!=null&&Er.width?Pe.replaceSelection(`<p style="text-align:${Er.align||"initial"}"><img width="${Er.width?Er.width+"%":"initial"}" src="${sr}" alt="${Pr||""}" /></p>`):Pe.replaceSelection(`<img width="100%" src="${sr}" alt="${Pr||""}" />`):((Sr=Er==null?void 0:Er.type)==null?void 0:Sr.indexOf("video"))>-1?Pe.replaceSelection(`<video width="100%" controls src="${sr}"></video>`):((Qn=Er==null?void 0:Er.type)==null?void 0:Qn.indexOf("pdf"))>-1?Pe.replaceSelection(`<a href="${sr}?type=${Er.type}&disposition=inline" target="_blank">${Er.name}</a>`):hn.includes(wi)?Pe.replaceSelection(`<a href="${sr}?type=office&disposition=inline" target="_blank">${Er.name}</a>`):Pe.replaceSelection(`[${Er.name}](${sr})`),Pe.focus();case Ht:const{row:eo,col:Xr,align:_i}=jt;let Xi=`
`;for(let fi=0;fi<eo;fi++){let ao=[],Fi=[];for(let Ir=0;Ir<Xr;Ir++)fi===1&&Fi.push(un[_i]),ao.push(" ");fi===1&&(Xi+=`| ${Fi.join(" | ")} |
`),Xi+=`| ${ao.join(Xr===1?"":" | ")} |
`}return Pe.replaceSelection(Xi+`
`),Pe.focus();default:throw new Error}},[Pe,Gn]),ai=(0,oe.useMemo)(()=>{switch(Gn){case St:return oe.createElement(Lt,{callback:ir,onCancel:cr});case fn:return oe.createElement(ct.Z,{callback:ir,onCancel:cr});case vn:return oe.createElement(Ee.Z,{callback:ir,onCancel:cr});case Zt:return oe.createElement(ie,{editImgId:pr.current,callback:ir,onCancel:cr});case Ht:return oe.createElement(mt,{callback:ir,onCancel:cr});case"maths-latex":return oe.createElement(tn,{showSaveButton:!0,callback:ir});case"inline-latex":return oe.createElement(nn.Z,{showSaveButton:!0,callback:ir});default:return null}},[Gn]);function cr(){In("")}(0,oe.useEffect)(()=>{if(xr.current){let jt=function(Sr){Hn=!0,Kn=Sr.pageY},Tt=function(){Hn=!1},Xt=function(Sr){if(Hn){let Qn=Sr.pageY-Kn;Qn<0&&(Qn=0),Qn>300&&(Qn=300);let sr=cn+Qn+"px";_r(sr)}},$t=xr.current,Hn=!1,Kn=0;return $t.addEventListener("mousedown",jt),document.addEventListener("mousemove",Xt),document.addEventListener("mouseup",Tt),()=>{$t.removeEventListener("mousedown",jt),document.removeEventListener("mousemove",Xt),document.removeEventListener("mouseup",Tt)}}},[Pe,xr]),(0,oe.useEffect)(()=>{_r(cn)},[cn]);const si=jn(Yt),ti=jn(gr),Or={width:si,height:ti},Vn=(0,oe.useMemo)(()=>{if(ur){let jt=new Date(ur),Tt=jt.getHours(),Xt=jt.getMinutes(),$t=jt.getSeconds();return Tt=Tt<10?"0"+Tt:Tt,Xt=Xt<10?"0"+Xt:Xt,$t=$t<10?"0"+$t:$t,`${Tt}:${Xt}:${$t}`}return 0},[ur]),Ft=jt=>{const Tt=[];if(gn){let Xt=-1;jt=jt.replace(/(@▁▁@|@▁@)/g,function($t,Hn,Kn){Tt.push({multiLine:$t!==dr})})}return Tt};function Vt(){window.sessionStorage.removeItem(En),yr(!1),zn(0)}function bn(){yr(!1),zn(0),Pe.setValue(window.sessionStorage.getItem(En))}(0,oe.useEffect)(()=>{kt[Gn]&&Gn!==qt&&Gn!==Zt&&setTimeout(()=>{const jt=document.getElementsByClassName("markdown-popup-form")[0],Tt=window.innerWidth/2-jt.offsetWidth/2,Xt=window.innerHeight/2-jt.offsetHeight/2;br(Tt),Br(Xt)},0)},[Gn]);const on=jt=>{jt.preventDefault();const Tt=jt.clientX-Dr,Xt=jt.clientY-or;document.body.onmousemove=$t=>{let Hn=$t.clientX-Tt,Kn=$t.clientY-Xt;const Sr=document.getElementsByClassName("markdown-popup-form")[0],Qn=window.innerWidth-Sr.offsetWidth,sr=window.innerHeight-Sr.offsetHeight;Hn=Math.max(0,Math.min(Hn,Qn)),Kn=Math.max(0,Math.min(Kn,sr)),Fn($t.clientX,$t.clientY,Tt,Xt)&&(br(Hn),Br(Kn))},document.body.onmouseup=function(){document.body.onmousemove=null}},Fn=(jt,Tt,Xt,$t)=>{const Hn=document.body.clientHeight,Kn=document.body.clientWidth;return jt<20&&Xt>jt||jt>Kn-20&&Xt<jt||Tt<20&&$t>Tt||Tt>Hn-20&&$t<Tt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:"markdown-editor-wrapper",ref:hr},oe.createElement("div",{className:`markdown-editor-container ${_e} ${yn?"on-preview":""} ${rn?"mini":""} ${Wn?"full-screen":""}`,style:Or},oe.createElement(Ct,{insertTemp:Dn,watch:yn,fullScreen:Wn,showNullButton:Wt,showNullProgramButton:gn,onActionCallback:jr,hidetoolBar:An,extraUse:Qt}),oe.createElement("div",{className:"markdown-editor-body"},oe.createElement("div",{className:"codemirror-container"},oe.createElement("textarea",{ref:ar,placeholder:pn})),yn?oe.createElement("div",{ref:kr,className:"preview-container"},wn==="stex"&&oe.createElement(st,{value:en}),wn!=="stex"&&oe.createElement(ve.Z,{edit:!0,disabledFill:ln,showProgramFill:gn,value:en,openEditor:jt=>{var Tt;pr.current=jt,(Tt=rr.current)==null||Tt.setHeight("100vh"),setTimeout(()=>{In("add-flowchart")},150)}})):null))),Bt?oe.createElement("a",{ref:xr,className:"editor-resize"}):null,Gn===qt&&oe.createElement(Et,{callback:ir,onCancel:cr}),Gn===Zt&&oe.createElement(ie,{ref:rr,editImgId:pr.current,callback:ir,onCancel:cr}),oe.createElement(We.Z,null,kt[Gn]&&Gn!==qt&&Gn!==Zt?oe.createElement(Xe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Dr,top:or},title:oe.createElement("div",{style:{cursor:"move"},onMouseDown:on},kt[Gn]),open:!0,onCancel:cr,footer:null,destroyOnClose:!0,width:Gn===Zt?"1200px":null,height:Gn===Zt?"80vh":null,className:"markdown-popup-form"},ai):null))}},45596:function(Dt,Rt,fe){"use strict";fe.d(Rt,{Z:function(){return Ke},I:function(){return Ct}});var oe=fe(28284),nt=fe(6767),Me=fe(37568),je=fe(77736),me=fe(71051),ge=fe(47889),Oe=fe(99571),He=fe(67303),xe=fe(59301),he=fe(59301),et=Object.defineProperty,ve=Object.defineProperties,st=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Ae=(We,Te,$e)=>Te in We?et(We,Te,{enumerable:!0,configurable:!0,writable:!0,value:$e}):We[Te]=$e,tt=(We,Te)=>{for(var $e in Te||(Te={}))De.call(Te,$e)&&Ae(We,$e,Te[$e]);if(Ne)for(var $e of Ne(Te))Be.call(Te,$e)&&Ae(We,$e,Te[$e]);return We},rt=(We,Te)=>ve(We,st(Te));const{useForm:at}=oe.default,ze={width:280,marginRight:10},Ge={labelCol:{span:5},wrapperCol:{span:19}};var Ke=({callback:We,onCancel:Te})=>{const[$e]=at();let Se=(0,xe.useRef)();function Ie(xt){Se.current.width=$e.getFieldValue("width"),Se.current.align=$e.getFieldValue("align"),We(xt,Se.current)}function we(xt,lt){if(xt.status===-1){nt.ZP.error(xt.message);return}$e.setFieldsValue({src:`/api/attachments/${xt.id}`,type:lt.type})}function Fe(xt){let lt=xt.target.files[0];Se.current=lt,Ct(lt,we)}return he.createElement(oe.default,rt(tt({form:$e},Ge),{className:"upload-image-panel",onFinish:Ie,style:{width:470,overflow:"hidden"}}),he.createElement(oe.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},he.createElement("div",{className:"flex-container"},he.createElement(oe.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},he.createElement(Me.default,{style:ze})),he.createElement(Ze,{onFileChange:Fe}))),he.createElement(oe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},he.createElement(Me.default,{style:{width:264}})),he.createElement(oe.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},he.createElement(je.Z,null,he.createElement(oe.default.Item,{name:"width",style:{margin:0}},he.createElement(me.Z,{style:{width:264}})),he.createElement("span",{className:"ml8"},"%"))),he.createElement(oe.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},he.createElement(ge.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"}]})),he.createElement("aside",null,he.createElement(oe.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},he.createElement(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),he.createElement(Oe.ZP,{type:"default",onClick:Te},"\u53D6\u6D88"))))};function Ze({onFileChange:We}){return he.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",he.createElement("input",{type:"file",onChange:We}))}function Ct(We,Te){if(!We)throw new String("\u6CA1\u6709\u6587\u4EF6");let $e=new FormData;$e.append("editormd-image-file",We),$e.append("file_param_name","editormd-image-file"),$e.append("byxhr","true");var Se=new window.XMLHttpRequest;Se.withCredentials=!0,Se.addEventListener("load",function(Ie){Te(JSON.parse(Ie.target.responseText),We)},!1),Se.addEventListener("error",function(Ie){console.error(Ie)},!1),Se.open("POST",`${He.KI}/api/attachments.json`),Se.send($e)}},75790:function(Dt,Rt,fe){"use strict";fe.d(Rt,{Z:function(){return Me}});var oe=fe(59301),nt=fe(4676);class Me extends oe.Component{constructor(me){super(me);const ge=window.document;this.node=ge.createElement("div"),ge.body.appendChild(this.node)}render(){const{children:me}=this.props;return(0,nt.createPortal)(me,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},51124:function(Dt,Rt,fe){"use strict";fe.d(Rt,{SV:function(){return Et},ZP:function(){return ot}});var oe=fe(59301),nt=fe(76374);const Me={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},je={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},me={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},ge={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},Oe={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var He=fe(53184),xe=fe.n(He),he=(Re,dt,yt)=>new Promise((ae,te)=>{var z=ne=>{try{le(yt.next(ne))}catch(ye){te(ye)}},ie=ne=>{try{le(yt.throw(ne))}catch(ye){te(ye)}},le=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(z,ie);le((yt=yt.apply(Re,dt)).next())});const et={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},ve=(Re,dt,yt,ae)=>{const te=dt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:yt.lineNumber,endColumn:yt.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(ie=>({label:ie,kind:Re.languages.CompletionItemKind.Text,insertText:ie,range:ae}))},st=(Re,dt,yt,ae)=>{Re.languages.registerCompletionItemProvider(dt,{provideCompletionItems(te,z){const ie=te.getWordUntilPosition(z),le={startLineNumber:z.lineNumber,endLineNumber:z.lineNumber,startColumn:ie.startColumn,endColumn:ie.endColumn},ne=te.getLineContent(z.lineNumber).substring(ie.startColumn-2,ie.endColumn);return{suggestions:[...ve(Re,te,z,le),...yt.map(Ue=>({label:Ue,kind:Re.languages.CompletionItemKind.Keyword,documentation:Ue,insertText:Ue,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:le})),...ae.map(Ue=>({label:Ue.label,kind:Re.languages.CompletionItemKind.Snippet,documentation:Ue.content,insertText:ne.startsWith("#")?Ue.content.replace(/#/,""):Ue.content,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:le}))]}}})};var Ne=Re=>{et.languages.forEach(dt=>{Re.languages.registerDocumentFormattingEditProvider(dt,{provideDocumentFormattingEdits(yt){return he(this,null,function*(){const ae=xe()(yt.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:yt.getFullModelRange(),text:ae}]})}})}),st(Re,"java",je.keywords,je.quickKey),st(Re,"cpp",me.keywords,me.quickKey),st(Re,"c",Me.keywords,[]),st(Re,"python",ge.keywords,ge.quickKey),st(Re,"scala",Oe.keywords,Oe.quickKey)};const De="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Be=Object.defineProperty,Ae=(Re,dt,yt)=>dt in Re?Be(Re,dt,{enumerable:!0,configurable:!0,writable:!0,value:yt}):Re[dt]=yt,tt=(Re,dt,yt)=>Ae(Re,typeof dt!="symbol"?dt+"":dt,yt);const rt=class Il{constructor(dt,yt,ae){this.placeholder=dt,this.editor=yt,this.monaco=ae,yt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Il.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};tt(rt,"ID","editor.widget.placeholderHint");var ze=rt,Ge=fe(96236),Ke=fe(6767),Ze=fe(25399),Ct=fe(89392),We=fe(33796),Te=fe(56102),$e=Object.defineProperty,Se=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,lt=(Re,dt,yt)=>dt in Re?$e(Re,dt,{enumerable:!0,configurable:!0,writable:!0,value:yt}):Re[dt]=yt,_t=(Re,dt)=>{for(var yt in dt||(dt={}))Fe.call(dt,yt)&&lt(Re,yt,dt[yt]);if(we)for(var yt of we(dt))xt.call(dt,yt)&&lt(Re,yt,dt[yt]);return Re},wt=(Re,dt)=>Se(Re,Ie(dt)),pe=(Re,dt)=>{var yt={};for(var ae in Re)Fe.call(Re,ae)&&dt.indexOf(ae)<0&&(yt[ae]=Re[ae]);if(Re!=null&&we)for(var ae of we(Re))dt.indexOf(ae)<0&&xt.call(Re,ae)&&(yt[ae]=Re[ae]);return yt},de=(Re,dt,yt)=>new Promise((ae,te)=>{var z=ne=>{try{le(yt.next(ne))}catch(ye){te(ye)}},ie=ne=>{try{le(yt.throw(ne))}catch(ye){te(ye)}},le=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(z,ie);le((yt=yt.apply(Re,dt)).next())});function qe(Re){return/^\d+$/.test(Re)?`${Re}px`:Re}function Lt(){}let ct=!1;const Ee={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Xe(Re=[]){let dt=Re;if(Array.isArray(Re)){for(let yt=0;yt<Re.length;yt++){let ae=Ee[Re[yt]];if(ae)return ae}return dt[0]}return Ee[dt]||dt}let Je=null;const Nt=()=>de(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Re){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Re)}});var ot=Re=>{var dt=Re,{width:yt="100%",height:ae="100%",value:te,language:z="javascript",style:ie={},options:le={},overrideServices:ne={},theme:ye="vs-dark",onEditBlur:Ue,isCopy:At=!1,onSave:mt,autoHeight:ft=!1,forbidCopy:bt=!1,onChange:Gt=Lt,editorDidMount:It=Lt,onFocus:tn=Lt,onBreakPoint:nn=Lt,breakPointValue:St=[],filename:vn="educoder.txt",errorLine:Zt,errorContent:qt="",highlightLine:it,openBreakPoint:fn=!1,placeholder:Ht="",showMiniMap:Kt=!0}=dt,un=pe(dt,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Nn=(0,oe.useRef)(),dn=(0,oe.useRef)({}),kn=(0,oe.useRef)(),tr=(0,oe.useRef)(),Un=(0,oe.useRef)([]),Nr=(0,oe.useRef)(!1),Mr=(0,oe.useRef)(),dr=(0,oe.useRef)(),Xn=(0,oe.useRef)(!1),[hn,jn]=(0,oe.useState)(!1);function Jn(){let Bt;return Nn.current&&(Bt=new nt.Z(Qe=>{for(let Wt of Qe)(Wt.target.offsetHeight>0||Wt.target.offsetWidth>0)&&dn.current.instance.layout()}),Bt.observe(Nn.current)),Bt}function Mn(){Ke.ZP.warning({content:decodeURIComponent(De),key:"monaco-editor-tip"})}const nr=()=>{let Bt=dn.current.instance;if(te!=null&&Bt&&hn){const Qe=Bt.getModel();Qe&&te!==Qe.getValue()&&(ct=!0,Qe.setValue(te),Bt.layout(),ct=!1)}};(0,oe.useEffect)(()=>{const Bt=We.Z.subscribe("formatDocument",Qe=>{var Wt;let gn=dn.current.instance;(Wt=gn==null?void 0:gn.getAction)==null||Wt.call(gn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Qe=>{Gt(Qe)},Bt},[]),(0,oe.useEffect)(()=>{var Bt;let Qe=dn.current.instance;tr.current&&clearTimeout(tr.current),tr.current=setTimeout(()=>{nr()},500),te&&(te!=null&&te.length)&&((Bt=Qe==null?void 0:Qe.updateOptions)==null||Bt.call(Qe,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,hn,dn.current]),(0,oe.useEffect)(()=>{if(Zt&&dn.current&&dn.current.instance){let Qe=dn.current.instance;Qe.changeViewZones(function(Wt){var gn=document.createElement("div");gn.style.padding="10px 20px",gn.style.width="calc(100% - 20px)",gn.className="my-error-line-wrp",gn.innerHTML=qt,Wt.addZone({afterLineNumber:Zt||11,heightInLines:3,domNode:gn})});var Bt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Qe.addOverlayWidget(Bt),Qe.revealPositionInCenter({lineNumber:20,column:1})}},[Zt,dn.current,hn]);const kt=(Bt="",Qe)=>{if(!Bt||Bt.trim()==="")return!0;const gn=dn.current.instance.getModel().getLineTokens(Qe);let An=!1;for(let ke=0;ke<2;ke++)gn.getStandardTokenType(ke)===1&&(An=!0);return An};(0,oe.useEffect)(()=>{var Bt;const Qe=(Bt=dn.current)==null?void 0:Bt.instance;if(Qe&&hn&&bt){const Wt=Qe.onDidBlurEditorWidget(()=>{Xn.current=!1}),gn=Qe.onDidFocusEditorText(()=>{Xn.current=!0});return()=>{Wt.dispose(),gn.dispose()}}},[dn.current,hn,bt]),(0,oe.useEffect)(()=>{var Bt;if((Bt=dn.current)!=null&&Bt.instance&&hn&&fn){let Qe=dn.current.instance,Wt=Qe.getModel();if(!Wt)return;(()=>{var zt;let Qt=[],Pe=[];const Tn=Wt.getAllDecorations();for(let Cn of Tn)Cn.options.className==="highlighted-line"&&(Qt.push((zt=Cn==null?void 0:Cn.range)==null?void 0:zt.startLineNumber),Pe.push(Cn==null?void 0:Cn.id));if(it===Qt[0])return;Wt.deltaDecorations(Pe,[]);const en=Wt.getLineCount();it&&it<=en&&(Qe.deltaDecorations([],[{range:new Je.Range(it,1,it,Wt.getLineMaxColumn(it)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Qe.revealLineInCenter(it))})();const An=(zt=!1)=>{var Qt;let Pe=[],Tn=[];const en=Wt.getAllDecorations();for(let Cn of en)Cn.options.linesDecorationsClassName==="breakpoints-select"&&(Pe.push((Qt=Cn==null?void 0:Cn.range)==null?void 0:Qt.startLineNumber),Tn.push(Cn==null?void 0:Cn.id));if(zt)return{lines:Pe,ids:Tn};nn(Pe)},ke=zt=>de(void 0,null,function*(){let Qt={range:new Je.Range(zt,1,zt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Wt.deltaDecorations([],[Qt]),An()}),Le=zt=>de(void 0,null,function*(){let Qt=[];const Pe=Qe.getLineDecorations(zt);for(let Tn of Pe)Tn.options.linesDecorationsClassName==="breakpoints-select"&&Qt.push(Tn.id);yield Wt.deltaDecorations(Qt,[]),An()}),Pt=zt=>{let Qt=Qe.getLineDecorations(zt);for(let Pe of Qt)if(Pe.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ct.isEqual)(St,An(!0).lines)){Wt.deltaDecorations(An(!0).ids,[]);const zt=St.map(Qt=>({range:new Je.Range(Qt,1,Qt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Wt.deltaDecorations([],zt)}const ht=Qe.onDidChangeModelContent(zt=>{let Qt=Qe.getPosition();if(Qt){let Pe=Qt.lineNumber;clearTimeout(dr.current),dr.current=setTimeout(()=>{kt(Wt.getLineContent(Pe),Pe)?Le(Pe):Pt(Pe)?(Le(Pe),ke(Pe)):An()},100)}}),_e=Qe.onMouseDown(zt=>{var Qt,Pe,Tn;if(zt.target.detail&&((Tn=(Pe=(Qt=zt.target)==null?void 0:Qt.element)==null?void 0:Pe.className)!=null&&Tn.includes("line-numbers"))){let en=zt.target.position.lineNumber;if(kt(Wt.getLineContent(en),en))return;Pt(en)?Le(en):ke(en)}}),pt=zt=>{let Qt={range:new Je.Range(zt,1,zt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Un.current=Qe.deltaDecorations(Un.current,[Qt])},Jt=()=>{Un.current=Qe.deltaDecorations(Un.current,[])},ln=Qe.onMouseMove(zt=>{var Qt,Pe,Tn;if(Jt(),zt.target.detail&&((Tn=(Pe=(Qt=zt.target)==null?void 0:Qt.element)==null?void 0:Pe.className)!=null&&Tn.includes("line-numbers"))){let en=zt.target.position.lineNumber;if(kt(Wt.getLineContent(en),en))return;pt(en)}}),pn=Qe.onMouseLeave(()=>{Jt()});return()=>{ht.dispose(),_e.dispose(),ln.dispose(),pn.dispose()}}},[dn.current,hn,St,it,fn,z]),(0,oe.useEffect)(()=>{var Bt;(Bt=dn.current)!=null&&Bt.instance&&fn&&dn.current.instance.setPosition({lineNumber:0,column:0})},[it]);function Ot(){let Bt=dn.current.instance;if(Bt){const Qe=Bt.getSelection(),Wt=dn.current.pastePos||{},gn=new Je.Range(Wt.startLineNumber||Qe.endLineNumber,Wt.startColumn||Qe.endColumn,Wt.endLineNumber||Qe.endLineNumber,Wt.endColumn||Qe.endColumn);setTimeout(()=>{Bt.executeEdits("",[{range:gn,text:""}])},300)}}function ut(Bt){(window.navigator.platform.match("Mac")?Bt.metaKey:Bt.ctrlKey)&&Bt.keyCode==83&&(Bt.preventDefault(),mt())}const gt=()=>{if(ft&&dn.current.instance){const Bt=dn.current.instance.getContentHeight();wn(Bt<ae?ae:Bt)}else wn(ae)};function Yt(Bt){var Qe=document.createEvent("MouseEvents");Qe.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Bt.dispatchEvent(Qe)}const cn=Bt=>{if(!Xn.current)return;const{keyCode:Qe,ctrlKey:Wt,metaKey:gn,target:An,type:ke}=Bt;return(ke==="paste"||(Qe===67||Qe===86)&&(gn||Wt))&&An.nodeName==="TEXTAREA"&&(Mn(),Bt.preventDefault()),!1};function rn(Bt,Qe){var Wt=window.URL||window.webkitURL||window,gn=new Blob([Qe]),An=document.createElementNS("http://www.w3.org/1999/xhtml","a");An.href=Wt.createObjectURL(gn),An.download=Bt,Yt(An)}(0,oe.useEffect)(()=>{gt()},[gt]),(0,oe.useEffect)(()=>{Nn.current&&!hn&&Promise.all([fe.e(8909),fe.e(5028)]).then(fe.bind(fe,71448)).then(Bt=>{try{Je=Bt,dn.current.instance=Je.editor.create(Nn.current,{value:te,language:Xe(z),theme:ye,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Kt||!1}},ne);const Qe=dn.current.instance;let An=[...Ge.BH._menuItems].find(ht=>ht[0]._debugName=="EditorContext")[1],ke=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Le=(ht,_e)=>{var pt,Jt;let ln=ht._first;do _e.includes((Jt=(pt=ln.element)==null?void 0:pt.command)==null?void 0:Jt.id)&&ht._remove(ln);while(ln=ln.next)};if(It(Qe,Je),setTimeout(()=>{gt(),dn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{rn(vn||"educoder.txt",Qe.getValue())}})},500),dn.current.subscription=Qe.onDidChangeModelContent(ht=>{Nr.current?clearTimeout(Mr.current):(gt(),Gt(Qe.getValue(),ht)),Mr.current=setTimeout(()=>{Nr.current=!1},500)}),window.Monaco||Ne(Je,Xe(z)),bt&&(Le(An,ke),Nn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",cn),window.removeEventListener("paste",cn),window.addEventListener("keydown",cn),window.addEventListener("paste",cn)),window.Monaco=Je,Ue&&Qe.onDidBlurEditorWidget(()=>{Ue(Qe.getValue())}),tn&&Qe.onDidFocusEditorText(()=>{bt&&Nt(),tn(Qe.getValue())}),bt){Nt();try{Qe.onDidPaste(ht=>{const _e=Qe.getSelection(),pt=dn.current.pastePos||{},Jt=new Je.Range(pt.startLineNumber||_e.endLineNumber,pt.startColumn||_e.endColumn,pt.endLineNumber||_e.endLineNumber,pt.endColumn||_e.endColumn);Qe.executeEdits("",[{range:ht.range,text:""}])})}catch(ht){}}let Pt=Jn();return Ht&&typeof Ht=="string"&&new ze(Ht,Qe,Je),jn(!0),()=>{const ht=dn.current.instance;ht.dispose();const _e=ht.getModel();_e&&_e.dispose(),dn.current.subscription&&dn.current.subscription.dispose(),Pt.unobserve(Nn.current)}}catch(Qe){}})},[]),(0,oe.useEffect)(()=>{if(dn.current.instance&&hn)return document.addEventListener("keydown",ut,!1),()=>{document.removeEventListener("keydown",ut)}},[mt,hn]),(0,oe.useEffect)(()=>{let Bt=dn.current.instance;if(Bt&&hn){let Qe=Xe(z);Je.editor.setModelLanguage(Bt.getModel(),Qe)}},[z,hn]),(0,oe.useEffect)(()=>{dn.current.instance&&hn&&Je.editor.setTheme(ye)},[ye,hn]),(0,oe.useEffect)(()=>{let Bt=dn.current.instance;kn.current=le,Bt&&hn&&(Bt.updateOptions(_t({},le)),setTimeout(()=>{Bt.getModel().updateOptions(_t({},le))},200))},[JSON.stringify(le),hn]),(0,oe.useEffect)(()=>{let Bt=dn.current.instance;Bt&&hn&&Bt.layout()},[yt,ae,hn]);const[Sn,Bn]=(0,oe.useState)(qe(yt)),[Dn,wn]=(0,oe.useState)(qe(ae)),En=wt(_t({},ie),{width:Sn,height:Dn,position:"relative"});return oe.createElement("div",{className:"my-monaco-editor",ref:Nn,style:En},At&&oe.createElement(Te.CopyToClipboard,{text:te,onCopy:()=>Ke.ZP.success("\u590D\u5236\u6210\u529F")},oe.createElement(Ze.Z,{title:"\u590D\u5236\u4EE3\u7801"},oe.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},oe.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Et({width:Re="100%",height:dt="100%",original:yt,modified:ae,language:te,options:z={}}){const ie=(0,oe.useRef)(),[le,ne]=(0,oe.useState)(null);function ye(ft){let bt;return ie.current&&(bt=new nt.Z(Gt=>{for(let It of Gt)(It.target.offsetHeight>0||It.target.offsetWidth>0)&&ft.layout()}),bt.observe(ie.current)),bt}(0,oe.useEffect)(()=>(ie.current&&Promise.all([fe.e(8909),fe.e(9404)]).then(fe.bind(fe,2550)).then(ft=>{Je=ft;const bt=Je.editor.createDiffEditor(ie.current,wt(_t({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},z),{wordWrap:!0}));ne(bt);let Gt=ye(bt);return()=>{bt.dispose();const It=bt.getModel();It&&It.dispose(),Gt.unobserve(ie.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,oe.useEffect)(()=>{le&&le.setModel({original:Je.editor.createModel(yt,te),modified:Je.editor.createModel(ae,te)})},[yt,ae,te,le]);const Ue=qe(Re),At=qe(dt),mt={width:Ue,height:At};return oe.createElement("div",{className:"my-diff-editor",ref:ie,style:mt})}},929:function(Dt,Rt,fe){"use strict";fe.d(Rt,{Z:function(){return ve}});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"},nt=fe(29787),Me=fe(25399),je=fe(60242),me=fe(92310),ge=fe.n(me),Oe=fe(49661),He=fe(57884),xe=fe(34055),he=fe(59301),ve=({className:st,dataSource:Ne=[],col:De=4,right:Be,bottom:Ae=23,precision:tt=0,wrapWidth:rt=1200,trackEventItems:at,loading:ze,onRemove:Ge=()=>{},isCurrent:Ke=!0,showProgress:Ze=!1,showAlias:Ct=!1})=>{const We=Math.floor((rt-(De-1)*Be)/De),Te=[{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"}];return he.createElement(nt.Z,{spinning:ze},he.createElement("div",{className:ge()(oe.list,st)},!!(Ne!=null&&Ne.length)&&(Ne==null?void 0:Ne.map(($e,Se)=>{var Ie,we,Fe,xt,lt,_t;const{name:wt,id:pe,identifier:de,featured:qe,school_name:Lt,image_url:ct,excellent:Ee,is_plan:Xe}=$e;return he.createElement("div",{key:pe,className:Ke&&Ze?oe.wrapisCurrent:oe.wrap,style:{width:We,marginRight:(1+Se)%De===0?0:Be+tt,marginBottom:Ae}},he.createElement("a",{className:oe.li,onClick:Je=>{Je.preventDefault(),Je.stopPropagation(),at&&(0,Oe.L9)([at]),(0,Oe.xg)(`/paths/${de}`)}},he.createElement("div",{className:oe.img},he.createElement("img",{className:oe.cover,src:`${ct}`}),Ke&&(0,xe.bg)()&&($e==null?void 0:$e.studying)&&he.createElement("div",{className:`${oe.movebq} user-path-items`,onClick:Je=>{Je.stopPropagation(),Ge($e)}},he.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),he.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Ie=$e==null?void 0:$e.subject_tags)==null?void 0:Ie.map((Je,Nt)=>{var ot,Et;if(Nt===0){const dt=(ot=Te.find(yt=>yt.name==Je))==null?void 0:ot.swimg;return he.createElement("img",{className:oe.sign,src:dt,style:{left:"-4px"}})}const Re=(Et=Te.find(dt=>dt.name==Je))==null?void 0:Et.ptimg;return he.createElement("img",{className:oe.sign,src:Re,style:{left:`${48+52*(Nt-1)+2*Nt}px`}})}),he.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},($e==null?void 0:$e.excellent)&&he.createElement("div",{className:oe.bq},"\u5F00\u653E\u8BFE\u7A0B"))),he.createElement("div",{className:oe.name},he.createElement(Me.Z,{title:Ct&&($e!=null&&$e.excellent_alias_name)?he.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${wt}`,he.createElement("br",null),he.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${$e==null?void 0:$e.excellent_alias_name}`)):wt},he.createElement("span",{className:oe.e},Ct&&($e==null?void 0:$e.excellent_alias_name)||wt))),Ke&&Ze&&((we=$e==null?void 0:$e.progress)==null?void 0:we.all_score)!=0&&he.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},he.createElement(je.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Fe=$e==null?void 0:$e.progress)==null?void 0:Fe.my_score)/((xt=$e==null?void 0:$e.progress)==null?void 0:xt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(lt=$e==null?void 0:$e.progress)==null?void 0:lt.my_score,"/",(_t=$e==null?void 0:$e.progress)==null?void 0:_t.all_score),(!Ke||!Ze)&&he.createElement(Me.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Lt}`},he.createElement("div",{className:oe.unit},he.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Lt)),(!Ke||!Ze)&&he.createElement("div",{className:oe.tags},he.createElement("div",null,he.createElement(Me.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),he.createElement("span",null,$e.stages_count))),he.createElement(Me.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),he.createElement("span",null,$e.members_count)))))))})),!Ne.length&&he.createElement(He.Z,null)))}},71360:function(Dt,Rt,fe){"use strict";fe.d(Rt,{jL:function(){return me},w9:function(){return qe},QD:function(){return Zt},cQ:function(){return lt.Z},op:function(){return Gt},O5:function(){return nr},_b:function(){return un},t7:function(){return tt},Gi:function(){return Nt},YG:function(){return Xe},qp:function(){return et},vr:function(){return fn},qE:function(){return nn},Je:function(){return ze},wb:function(){return xt},cq:function(){return ae},tp:function(){return Ne}});var oe=fe(59301),nt={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"},Me="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/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuh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83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",me=({dataSource:kt=[],img:Ot,imgWidth:ut=346,title:gt,sunTitle:Yt,bannerExtraContent:cn})=>oe.createElement("div",{className:nt.banner},oe.createElement("div",{className:nt.content},oe.createElement("aside",null,oe.createElement("p",null,oe.createElement("b",null,gt),oe.createElement("span",null,Yt)),kt.length>0&&oe.createElement("div",{className:nt.btns},kt.map((rn,Sn)=>oe.createElement("div",{key:Sn,onClick:rn.click},rn.name,rn.sign?oe.createElement("img",{src:Me,width:39}):null))),cn),Ot&&oe.createElement("img",{style:{marginTop:33,marginRight:38},src:Ot,width:ut}))),ge={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"},Oe=fe(92310),He=fe.n(Oe),xe=fe(89392),et=({dataSource:kt=[],value:Ot,onChange:ut,onTitleChange:gt,className:Yt,title:cn,titleWidth:rn=41,style:Sn={},fontColor:Bn="#6A7283",showCount:Dn})=>{const[wn,En]=(0,oe.useState)(0),[Bt,Qe]=(0,oe.useState)(!1),Wt=(0,oe.useRef)(null),gn=(0,oe.useRef)(null);return(0,oe.useEffect)(()=>{var An;kt.length!==0&&(((An=Wt==null?void 0:Wt.current)==null?void 0:An.clientHeight)>97?En(1):En(0)),kt.length===0&&En(0),Qe(!1)},[kt]),oe.createElement("div",{className:He()(ge.row,Yt),style:Sn},oe.createElement("div",{onClick:(0,xe.throttle)(()=>gt==null?void 0:gt(),2e3),style:{width:rn,marginTop:Bt?12:4},className:`${ge.title} ${gt?"current":""}`},cn),oe.createElement("div",{className:Bt?`${ge.tagsWrap} ${ge.tagsBorderWrap}`:ge.tagsWrap},oe.createElement("div",{className:ge.bar,ref:gn,style:wn>0?{height:wn===1?97:"auto",overflow:wn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},oe.createElement("div",{className:ge.tag,ref:Wt},kt==null?void 0:kt.map(An=>oe.createElement("span",{onClick:()=>ut(An.id),key:An.id,style:{color:Bn},className:Ot===An.id?ge.active:""},oe.createElement("span",{title:An.name,className:ge.name},An.name),!!Dn&&oe.createElement("span",{className:ge.num},An.count))))),!!wn&&oe.createElement(oe.Fragment,null,wn===1?oe.createElement("div",{onClick:()=>{var An;En(2),((An=Wt==null?void 0:Wt.current)==null?void 0:An.clientHeight)>245?Qe(!0):Qe(!1)},className:ge.action},"\u5C55\u5F00",oe.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):oe.createElement("div",{onClick:()=>{gn.current.scrollTop=0,En(1),Qe(!1)},className:ge.action},"\u6536\u8D77",oe.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ve={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=({dataSource:kt=[],value:Ot,onChange:ut,className:gt,style:Yt={}})=>oe.createElement("div",{style:Yt,className:He()(ve.tabs,gt)},kt.map(cn=>oe.createElement("span",{onClick:()=>ut(cn.id),className:Ot===cn.id?ve.active:"",key:cn.id},cn.name))),De={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"},Be=fe(37568),tt=({dataSource:kt=[],value:Ot="",onChange:ut,onInputChange:gt=()=>{},className:Yt,style:cn={},placeholder:rn,allowClear:Sn=!1})=>{var Bn;const[Dn,wn]=(0,oe.useState)(""),[En,Bt]=(0,oe.useState)("");(0,oe.useEffect)(()=>{var gn;let An=Ot;(gn=JSON.stringify(Ot))!=null&&gn.includes("{")&&(wn(Ot.id),An=Ot.value||"");try{Bt(decodeURIComponent(An||""))}catch(ke){Bt(decodeURIComponent(An||""))}},[Ot]);const Qe=()=>{ut(encodeURIComponent(En),Dn||null)},Wt=gn=>{gn!==Dn&&(wn(gn),ut(encodeURIComponent(En),gn))};return oe.createElement("div",{className:He()(De.input,Yt),style:cn},!!kt.length&&oe.createElement("div",{className:De.dropdown},oe.createElement("div",{className:De.text},(Bn=kt.find(gn=>gn.id===Dn))==null?void 0:Bn.name,oe.createElement("i",{className:"iconfont icon-zhankai4"}),oe.createElement("b",{className:De.b1}),oe.createElement("b",{className:De.b2})),oe.createElement("div",{className:De.menu},kt.map((gn,An)=>oe.createElement("div",{key:An,onClick:()=>Wt(gn.id)},gn.name)))),oe.createElement(Be.default,{onPressEnter:Qe,value:En,onChange:gn=>{Bt(gn.target.value),gt(encodeURIComponent(gn.target.value),Dn||null)},placeholder:rn,variant:"borderless",allowClear:Sn,onClear:()=>ut("",Dn||null)}),oe.createElement("i",{onClick:Qe,className:"iconfont icon-sousuo9 font14 current"}))},rt={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"},ze=({value:kt,onChange:Ot,className:ut,total:gt,pageSize:Yt,style:cn={}})=>{const rn=kt<2,Sn=kt>=Math.ceil(gt/Yt);return gt<=Yt?oe.createElement(oe.Fragment,null):oe.createElement("div",{className:He()(rt.quickPager,ut),style:cn},oe.createElement("div",{onClick:()=>{rn||Ot(kt-1,"prev")},className:rn?rt.disabled:""},"\u4E0A\u4E00\u9875"),oe.createElement("div",{onClick:()=>{Sn||Ot(kt+1,"next")},className:Sn?rt.disabled:""},"\u4E0B\u4E00\u9875"))},Ge={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"},Ke=fe(29787),Ze=fe(25399),Ct=fe(58018),We=fe(90524),Te=fe(49661),$e=fe(96908),Se=fe(57177),Ie=fe(81378),we=fe(57884),xt=({className:kt,dataSource:Ot=[],col:ut=4,right:gt,bottom:Yt=23,precision:cn=0,wrapWidth:rn=1200,trackEventItems:Sn,loading:Bn})=>{const Dn=Math.floor((rn-(ut-1)*gt)/ut);return oe.createElement(Ke.Z,{spinning:Bn},oe.createElement("div",{className:He()(Ge.list,kt)},!!Ot.length&&Ot.map((wn,En)=>{const{name:Bt,id:Qe,identifier:Wt,power:gn,cover_image_id:An,pic:ke}=wn;return oe.createElement("div",{className:Ge.wrap,key:Qe,style:{width:Dn,marginRight:(1+En)%ut===0?0:gt+cn,marginBottom:Yt}},oe.createElement("a",{target:"_blank",href:`/shixuns/${Wt}/challenges`,className:Ge.li,onClick:Le=>{Le.preventDefault(),Sn&&(0,Te.L9)([Sn]),gn&&(0,Te.xg)(`/shixuns/${Wt}/challenges`)}},oe.createElement("div",{className:Ge.img},oe.createElement("img",{className:Ge.cover,src:`${ke}`}),wn.is_jupyter&&oe.createElement("img",{className:Ge.sign,src:$e}),wn.is_jupyter_lab&&oe.createElement("img",{className:Ge.sign,src:Se}),wn.is_unity_3d&&oe.createElement("img",{className:Ge.sign,src:Ie})),oe.createElement("div",{className:Ge.name},oe.createElement(Ze.Z,{title:Bt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},oe.createElement("span",{className:Ge.e},Bt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),oe.createElement("div",{className:Ge.tags},oe.createElement(Ze.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),oe.createElement("span",null,wn.challenges_count))),!!wn.myshixuns_count&&oe.createElement(Ze.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,wn.myshixuns_count))),oe.createElement(Ze.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},oe.createElement("span",null,oe.createElement("span",null,wn.level))),oe.createElement("div",{className:Ge.rate},oe.createElement(Ct.Z,{allowHalf:!0,disabled:!0,defaultValue:wn.score_info}),oe.createElement("span",null,"\xA0",wn.score_info?`${wn.score_info}\u5206`:"5\u5206")))),!gn&&oe.createElement("div",{className:Ge.lockWrap},oe.createElement("img",{src:`${We.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")))}),!Ot.length&&oe.createElement(we.Z,null)))},lt=fe(929),_t={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"},wt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxz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sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",pe=fe(59301),qe=({className:kt,dataSource:Ot=[],col:ut=4,right:gt,bottom:Yt=23,precision:cn=0,wrapWidth:rn=1200,trackEventItems:Sn,loading:Bn,handleVery:Dn=()=>!0})=>{const wn=Math.floor((rn-(ut-1)*gt)/ut);return pe.createElement(Ke.Z,{spinning:Bn},pe.createElement("div",{className:He()(_t.list,kt)},!!Ot.length&&Ot.map((En,Bt)=>{const{subject_identifier:Qe,id:Wt,identifier:gn,power:An}=En,ke=En.is_public!=0&&En.is_public;return pe.createElement("div",{className:_t.wrap,key:Wt,style:{width:wn,marginRight:(1+Bt)%ut===0?0:gt+cn,marginBottom:Yt}},pe.createElement("a",{className:_t.li,onClick:Le=>{Le.preventDefault(),Dn(En==null?void 0:En.first_category_url)&&(Sn&&(0,Te.L9)([Sn]),(0,Te.xg)(En.first_category_url))}},pe.createElement("div",{className:_t.top},pe.createElement(Ze.Z,{title:En.name},pe.createElement("div",{className:_t.name},En.name)),pe.createElement("img",{className:_t.img,src:We.Z.IMG_SERVER+"/images/"+En.avatar_url}),pe.createElement("div",{className:_t.text,title:En.creator},En.creator),Qe&&pe.createElement("div",{className:_t.btns},pe.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),pe.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ke&&pe.createElement("div",{className:_t.sign},"\u516C\u5F00")),pe.createElement("div",{className:_t.bottom},En.visits>0&&pe.createElement(Ze.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},pe.createElement("span",null,pe.createElement("i",{className:"iconfont icon-liulanyan"}),pe.createElement("span",null,En.visits))),En.course_members_count>0&&pe.createElement(Ze.Z,{title:"\u6210\u5458",placement:"bottom"},pe.createElement("span",null,pe.createElement("i",{className:"iconfont icon-chengyuan"}),En.course_members_count)),En.tasks_count>0&&pe.createElement(Ze.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},pe.createElement("span",null,pe.createElement("i",{className:"iconfont icon-zuoye"}),En.tasks_count)),En.is_end?pe.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):pe.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!En.is_accessible&&pe.createElement("div",{className:_t.lockWrap},pe.createElement("img",{src:`${We.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),pe.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ot.length&&pe.createElement(we.Z,null)))},Lt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},ct=fe(76560),Xe=({dataSource:kt=[],value:Ot,onChange:ut,className:gt,style:Yt={},tabBarExtraContent:cn})=>oe.createElement("div",{className:He()(Lt.tabs,gt),style:Yt},oe.createElement("div",{className:Lt.tabsWrap},kt.map((rn,Sn)=>!(rn!=null&&rn.hide)&&oe.createElement("aside",{className:Lt.tab,onClick:()=>{ut(rn.id),rn.link&&ct.history.push(rn.link)},key:Sn},oe.createElement("div",{className:Ot===rn.id?Lt.active:""},rn.name),(rn==null?void 0:rn.resetCount)==null&&(rn==null?void 0:rn.total)!==void 0&&oe.createElement("span",null,"\uFF08",rn==null?void 0:rn.total,"\uFF09"),(rn==null?void 0:rn.resetCount)!==void 0&&(rn==null?void 0:rn.total)!==void 0&&oe.createElement(Ze.Z,{title:(rn==null?void 0:rn.tip)!=null?rn==null?void 0:rn.tip:""},oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",oe.createElement("span",{style:{color:"#000"}},rn==null?void 0:rn.resetCount),"/",oe.createElement("span",null,rn==null?void 0:rn.total),"\uFF09"))))),oe.createElement("div",{className:Lt.tabBar},cn)),Nt=({className:kt,style:Ot={},children:ut})=>oe.createElement("div",{className:He()(kt),style:Ot},ut),ot={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"},Et=fe(75727),Re=fe(93041);const dt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ae=({sortValue:kt,dropValue:Ot,className:ut,onSort:gt,onDrop:Yt,dataSource:cn=dt})=>{var rn;return oe.createElement("div",{className:He()(ot.orderWrap,ut)},oe.createElement(Et.Z,{dropdownRender:()=>oe.createElement(Re.default,null,cn.map((Sn,Bn)=>oe.createElement(Re.default.Item,{key:Bn,onClick:()=>Yt(Sn.id)},Sn.name)))},oe.createElement("span",{className:ot.orderTextWrap},(rn=cn.find(Sn=>Ot===Sn.id))==null?void 0:rn.name)),oe.createElement("span",{className:ot.orderIconWrap},oe.createElement("span",{className:ot.orderAsc},oe.createElement("i",{className:kt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ot.cursorPointer} ${ot.active}`:`iconfont icon-sanjiaoxing-up font12 ${ot.cursorPointer}`,onClick:()=>gt(kt==="asc"?"desc":"asc")})),oe.createElement("span",{className:ot.orderDesc},oe.createElement("i",{className:kt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ot.cursorPointer} ${ot.active}`:`iconfont icon-sanjiaoxing-down font12 ${ot.cursorPointer}`,onClick:()=>gt(kt==="asc"?"desc":"asc")}))))},te={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"},z=fe(99571),ie=Object.defineProperty,le=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,Ue=(kt,Ot,ut)=>Ot in kt?ie(kt,Ot,{enumerable:!0,configurable:!0,writable:!0,value:ut}):kt[Ot]=ut,At=(kt,Ot)=>{for(var ut in Ot||(Ot={}))ne.call(Ot,ut)&&Ue(kt,ut,Ot[ut]);if(le)for(var ut of le(Ot))ye.call(Ot,ut)&&Ue(kt,ut,Ot[ut]);return kt},mt=(kt,Ot)=>{var ut={};for(var gt in kt)ne.call(kt,gt)&&Ot.indexOf(gt)<0&&(ut[gt]=kt[gt]);if(kt!=null&&le)for(var gt of le(kt))Ot.indexOf(gt)<0&&ye.call(kt,gt)&&(ut[gt]=kt[gt]);return ut},ft=(kt,Ot,ut)=>new Promise((gt,Yt)=>{var cn=Bn=>{try{Sn(ut.next(Bn))}catch(Dn){Yt(Dn)}},rn=Bn=>{try{Sn(ut.throw(Bn))}catch(Dn){Yt(Dn)}},Sn=Bn=>Bn.done?gt(Bn.value):Promise.resolve(Bn.value).then(cn,rn);Sn((ut=ut.apply(kt,Ot)).next())}),Gt=kt=>{var Ot=kt,{className:ut,style:gt,children:Yt,loading:cn=!1,openLoading:rn,onClick:Sn=()=>{},size:Bn="middle",shape:Dn="round"}=Ot,wn=mt(Ot,["className","style","children","loading","openLoading","onClick","size","shape"]);const[En,Bt]=(0,oe.useState)(!1);return oe.createElement(z.ZP,At({onClick:(0,xe.throttle)(Qe=>ft(void 0,null,function*(){rn&&Bt(!0);try{yield Sn(Qe)}catch(Wt){console.log("error",Wt)}rn&&Bt(!1)}),2e3,{leading:!0,trailing:!1}),className:He()(te.btn,te[`${Bn}-${Dn}`],ut),style:gt,size:Bn,shape:Dn,loading:En||cn},wn),Yt)},It={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"},nn=({className:kt,style:Ot,children:ut=null,onClick:gt,title:Yt})=>oe.createElement("div",{className:He()(It.head,kt),style:Ot},oe.createElement("span",{className:"primary-hover",onClick:gt},oe.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),oe.createElement("b",{title:Yt},Yt),oe.createElement("div",{className:It.node},ut)),St={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"},Zt=({confirmShow:kt=!0,confirmTitle:Ot,confirmClick:ut,cancelShow:gt=!0,cancelTitle:Yt,cancelClick:cn,className:rn,style:Sn,confirmLoading:Bn=!1})=>oe.createElement("div",{className:He()(St.btns,rn),style:Sn},kt&&oe.createElement(z.ZP,{loading:Bn,onClick:ut,type:"primary",className:St.confirm},Ot),gt&&oe.createElement(z.ZP,{onClick:cn,className:St.cancel},Yt)),qt={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"},fn=({className:kt,style:Ot={},LeftContent:ut,children:gt,RightContent:Yt})=>oe.createElement("div",{className:He()(qt.fixedBottom,kt),style:Ot},oe.createElement("div",{className:qt.wrap},oe.createElement("div",{className:qt.left},ut),oe.createElement("div",{className:qt.center},gt),oe.createElement("div",{className:qt.right},Yt))),Ht={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"},un=({className:kt,style:Ot={},dataSource:ut=[]})=>oe.createElement("div",{className:He()(Ht.crumbs,kt),style:Ot},ut.map((gt,Yt)=>Yt<ut.length-1?oe.createElement(oe.Fragment,{key:Yt},gt.path||gt.onClick?oe.createElement("span",{className:Ht.hover,onClick:gt!=null&&gt.onClick?gt.onClick:()=>ct.history.push(gt.path)},gt.name):oe.createElement("span",null,gt.name),oe.createElement("span",null,"\xA0",">","\xA0")):oe.createElement("span",{key:Yt,style:{color:"#5F6368"}},gt.name))),Nn=fe(11938),dn=Object.defineProperty,kn=Object.defineProperties,tr=Object.getOwnPropertyDescriptors,Un=Object.getOwnPropertySymbols,Nr=Object.prototype.hasOwnProperty,Mr=Object.prototype.propertyIsEnumerable,dr=(kt,Ot,ut)=>Ot in kt?dn(kt,Ot,{enumerable:!0,configurable:!0,writable:!0,value:ut}):kt[Ot]=ut,Xn=(kt,Ot)=>{for(var ut in Ot||(Ot={}))Nr.call(Ot,ut)&&dr(kt,ut,Ot[ut]);if(Un)for(var ut of Un(Ot))Mr.call(Ot,ut)&&dr(kt,ut,Ot[ut]);return kt},hn=(kt,Ot)=>kn(kt,tr(Ot)),jn=(kt,Ot)=>{var ut={};for(var gt in kt)Nr.call(kt,gt)&&Ot.indexOf(gt)<0&&(ut[gt]=kt[gt]);if(kt!=null&&Un)for(var gt of Un(kt))Ot.indexOf(gt)<0&&Mr.call(kt,gt)&&(ut[gt]=kt[gt]);return ut};const{Countdown:Jn}=Nn.default;var nr=kt=>{var Ot=kt,{onChange:ut}=Ot,gt=jn(Ot,["onChange"]);const[Yt,cn]=(0,oe.useState)(null);(0,oe.useEffect)(()=>{typeof Yt=="number"&&Yt>=0&&ut(Yt)},[Yt]);const rn=Sn=>{const Bn=Math.floor(Sn/1e3);cn(Bn)};return oe.createElement(Jn,hn(Xn({},gt),{onChange:rn}))}},17904:function(Dt,Rt,fe){"use strict";fe.d(Rt,{Z:function(){return nt}});var oe=fe(59301);function nt(Me,je){const me=(0,oe.useRef)();(0,oe.useEffect)(()=>{me.current=Me}),(0,oe.useEffect)(()=>{function ge(){me.current()}if(je!==null){let Oe=setInterval(ge,je);return()=>clearInterval(Oe)}},[je])}},375:function(Dt,Rt,fe){"use strict";fe.r(Rt),fe.d(Rt,{default:function(){return Ze}});var oe=fe(59301),nt=fe(76560),Me=fe(28284),je=fe(37568),me=fe(38394),ge={flex_box_center:"flex_box_center___mN1SM",flex_space_between:"flex_space_between____sOaR",flex_box_vertical_center:"flex_box_vertical_center___EVXyH",flex_box_center_end:"flex_box_center_end___nkeyi",flex_box_column:"flex_box_column___Sx9kn",wrap:"wrap___PN7w0",head:"head___oRcox",btns:"btns___gs5ce",confirm:"confirm___a86Xk",cancel:"cancel___DXA9D"},Oe=fe(82093),He=fe(71360),xe=fe(2978),he=fe(34055),et=fe(57884),ve=fe(59301),st=Object.defineProperty,Ne=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,rt=(Ct,We,Te)=>We in Ct?st(Ct,We,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Ct[We]=Te,at=(Ct,We)=>{for(var Te in We||(We={}))Ae.call(We,Te)&&rt(Ct,Te,We[Te]);if(Be)for(var Te of Be(We))tt.call(We,Te)&&rt(Ct,Te,We[Te]);return Ct},ze=(Ct,We)=>Ne(Ct,De(We)),Ge=(Ct,We,Te)=>new Promise(($e,Se)=>{var Ie=xt=>{try{Fe(Te.next(xt))}catch(lt){Se(lt)}},we=xt=>{try{Fe(Te.throw(xt))}catch(lt){Se(lt)}},Fe=xt=>xt.done?$e(xt.value):Promise.resolve(xt.value).then(Ie,we);Fe((Te=Te.apply(Ct,We)).next())});const Ke=({globalSetting:Ct,dispatch:We,virtualSpaces:Te})=>{const[$e]=Me.default.useForm(),[Se,Ie]=(0,oe.useState)({}),[we,Fe]=(0,oe.useState)(!1),[xt,lt]=(0,oe.useState)(!1),[_t,wt]=(0,oe.useState)(""),{virtualSpacesDetails:pe}=Te,de=(0,nt.useParams)();(0,oe.useEffect)(()=>{qe()},[window.localStorage.getItem("vtrsModuleId")]);const qe=()=>Ge(void 0,null,function*(){lt(!0);const Ee=yield(0,Oe.ZP)(`/api/virtual_classrooms/${de.virtual_spacesId}/show_description.json`,{method:"get",params:{virtual_module_id:window.localStorage.getItem("vtrsModuleId")}});if((Ee==null?void 0:Ee.status)!==-1){const Xe={description:(Ee==null?void 0:Ee.description)||"",desc_title:(Ee==null?void 0:Ee.desc_title)||""};wt(Ee==null?void 0:Ee.id),Ie(Xe),$e.setFieldsValue(Xe)}lt(!1)}),Lt=Ee=>Ge(void 0,null,function*(){const Xe=yield(0,Oe.ZP)(`/api/virtual_classrooms/${de.virtual_spacesId}/update_description/${_t}.json`,{method:"put",body:ze(at({},Ee),{virtual_module_id:window.localStorage.getItem("vtrsModuleId")})});(Xe==null?void 0:Xe.status)!==-1&&(Fe(!1),qe())}),ct=(pe==null?void 0:pe.is_creator)||(0,he.Ny)();return ve.createElement("section",{className:ge.wrap},!we&&ve.createElement(oe.Fragment,null,ve.createElement("div",{className:ge.head},ve.createElement("b",null,Se==null?void 0:Se.desc_title),ct&&ve.createElement("span",{onClick:()=>Fe(!0)},ve.createElement("i",{className:"iconfont icon-bianji7 font14 mr5"}),"\u7F16\u8F91")),ve.createElement("div",null,Se!=null&&Se.description?ve.createElement(me.Z,{value:Se==null?void 0:Se.description}):ve.createElement(et.Z,null))),we&&ve.createElement(oe.Fragment,null,ve.createElement(Me.default,{form:$e,scrollToFirstError:!0,className:"mt30",layout:"vertical",onFinish:Lt},ve.createElement(Me.default.Item,{name:"desc_title",label:"\u6807\u9898",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"},{max:60,message:"\u53EA\u80FD\u8F93\u516560\u4E2A\u5B57\u7B26"}]},ve.createElement(je.default,{maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),ve.createElement(Me.default.Item,{name:"description",label:"\u5185\u5BB9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"},{max:65e3,message:"\u53EA\u80FD\u8F93\u516565000\u4E2A\u5B57\u7B26"}]},ve.createElement(xe.Z,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u5927\u9650\u5236\u4E3A65000\u4E2A\u5B57\u7B26",watch:!0,defaultValue:Se==null?void 0:Se.description}))),ve.createElement(He.QD,{confirmTitle:"\u4FDD\u5B58",confirmClick:()=>$e.submit(),cancelClick:()=>{Fe(!1),$e.setFieldsValue(at({},Se))},cancelTitle:"\u53D6\u6D88",className:"mb25"})))};var Ze=(0,nt.connect)(({virtualSpaces:Ct,globalSetting:We})=>({globalSetting:We,virtualSpaces:Ct}))(Ke)},90290:function(Dt,Rt,fe){"use strict";fe.d(Rt,{AL:function(){return ze},Iy:function(){return et},Qv:function(){return Ne},ez:function(){return at},jb:function(){return ve}});var oe=fe(32834),nt=fe.n(oe),Me=fe(11690),je=fe.n(Me);let me=1;function ge(We,Te){const $e=We.match(/^(\s+)(?:```)/);if($e===null)return Te;const Se=$e[1];return Te.split(`
`).map(Ie=>{const we=Ie.match(/^\s+/);if(we===null)return Ie;const[Fe]=we;return Fe.length>=Se.length?Ie.slice(Se.length):Ie}).join(`
`)}let Oe=[],He=["<ul>"];const xe=new(nt()).Renderer,he=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function et(){Oe.length=0,He=["<ul>"]}const ve={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function st(We,Te,$e,Se){if(Te>=We.length||We[Te].level<=$e)return Te;var Ie=We[Te];Se.push("<li><a href='#"+me+Ie.anchor+"'>"+Ie.text+"</a>"),Te++;var we=[];return Te=st(We,Te,Ie.level,we),we.length>0&&(Se.push("<ul>"),we.forEach(function(Fe){Se.push(Fe)}),Se.push("</ul>")),Se.push("</li>"),Te=st(We,Te,$e,Se),Te}function Ne(){return st(Oe,0,0,He),He.push("</ul>"),He.join("")}const De={heading(We){const Te=he.exec(We);if(me+=1,Te)return{type:"heading",raw:Te[0],depth:Te[1].length,text:Te[2]}},fences(We){const Te=this.rules.block.fences.exec(We);if(Te){const $e=Te[0];let Se=ge($e,Te[3]||"");const Ie=Te[2]?Te[2].trim():Te[2];if(["latex","katex","math"].indexOf(Ie)>=0){const we=tt(),Fe=Se;Se=we,rt[we]={type:"block",expression:Fe}}return{type:"code",raw:$e,lang:Ie,text:Se}}}},Be=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Ae=0;const tt=()=>`__special_katext_id_${Ae++}__`;let rt={};function at(){return rt}function ze(){Ae=0,rt={}}function Ge(We){return We=We.replace(Be,(Te,$e)=>{const Se=tt();return rt[Se]={type:"inline",expression:$e},Se}),We}const Ke=xe.listitem;xe.listitem=function(We){return Ke(Ge(We))};const Ze=xe.paragraph;xe.paragraph=function(We){return Ze(Ge(We))};const Ct=xe.tablecell;xe.tablecell=function(We,Te){return Ct(Ge(We),Te)},xe.code=function(We,Te,$e){const Se=(Te||"").match(/\S*/)[0];return Se?["latex","katex","math"].indexOf(Se)>=0?`<p class='editormd-tex'>${We}</p>`:`<pre class="prettyprint linenums"><code class="language-${Te}">${$e?We:(0,Me.escape)(We,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+($e?We:(0,Me.escape)(We,!0))+"</code></pre>"},xe.heading=function(We,Te,$e){let Se=this.options.headerPrefix+$e.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Oe.push({anchor:Se,level:Te,text:We}),"<h"+Te+' id="'+me+Se+'">'+We+"</h"+Te+">"},nt().setOptions({silent:!0,gfm:!0,pedantic:!1}),nt().use({tokenizer:De,renderer:xe}),Rt.ZP=nt()},99498:function(Dt,Rt,fe){(function(oe){oe(fe(89780))})(function(oe){oe.defineOption("placeholder","",function(He,xe,he){var et=he&&he!=oe.Init;if(xe&&!et)He.on("blur",me),He.on("change",ge),He.on("swapDoc",ge),oe.on(He.getInputField(),"compositionupdate",He.state.placeholderCompose=function(){je(He)}),ge(He);else if(!xe&&et){He.off("blur",me),He.off("change",ge),He.off("swapDoc",ge),oe.off(He.getInputField(),"compositionupdate",He.state.placeholderCompose),nt(He);var ve=He.getWrapperElement();ve.className=ve.className.replace(" CodeMirror-empty","")}xe&&!He.hasFocus()&&me(He)});function nt(He){He.state.placeholder&&(He.state.placeholder.parentNode.removeChild(He.state.placeholder),He.state.placeholder=null)}function Me(He){nt(He);var xe=He.state.placeholder=document.createElement("pre");xe.style.cssText="height: 0; overflow: visible",xe.style.direction=He.getOption("direction"),xe.className="CodeMirror-placeholder CodeMirror-line-like";var he=He.getOption("placeholder");typeof he=="string"&&(he=document.createTextNode(he)),xe.appendChild(he),He.display.lineSpace.insertBefore(xe,He.display.lineSpace.firstChild)}function je(He){setTimeout(function(){var xe=!1,he=He.getInputField();he.nodeName=="TEXTAREA"?xe=!he.value:He.lineCount()==1&&(xe=!/[^\u200b]/.test(he.querySelector(".CodeMirror-line").textContent)),xe?Me(He):nt(He)},20)}function me(He){Oe(He)&&Me(He)}function ge(He){var xe=He.getWrapperElement(),he=Oe(He);xe.className=xe.className.replace(" CodeMirror-empty","")+(he?" CodeMirror-empty":""),he?Me(He):nt(He)}function Oe(He){return He.lineCount()===1&&He.getLine(0)===""}})},25717:function(Dt,Rt,fe){(function(oe){oe(fe(89780))})(function(oe){var nt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Me=oe.Pos;oe.defineOption("autoCloseBrackets",!1,function(De,Be,Ae){Ae&&Ae!=oe.Init&&(De.removeKeyMap(me),De.state.closeBrackets=null),Be&&(ge(je(Be,"pairs")),De.state.closeBrackets=Be,De.addKeyMap(me))});function je(De,Be){return Be=="pairs"&&typeof De=="string"?De:typeof De=="object"&&De[Be]!=null?De[Be]:nt[Be]}var me={Backspace:xe,Enter:he};function ge(De){for(var Be=0;Be<De.length;Be++){var Ae=De.charAt(Be),tt="'"+Ae+"'";me[tt]||(me[tt]=Oe(Ae))}}ge(nt.pairs+"`");function Oe(De){return function(Be){return ve(Be,De)}}function He(De){var Be=De.state.closeBrackets;if(!Be||Be.override)return Be;var Ae=De.getModeAt(De.getCursor());return Ae.closeBrackets||Be}function xe(De){var Be=He(De);if(!Be||De.getOption("disableInput"))return oe.Pass;for(var Ae=je(Be,"pairs"),tt=De.listSelections(),rt=0;rt<tt.length;rt++){if(!tt[rt].empty())return oe.Pass;var at=st(De,tt[rt].head);if(!at||Ae.indexOf(at)%2!=0)return oe.Pass}for(var rt=tt.length-1;rt>=0;rt--){var ze=tt[rt].head;De.replaceRange("",Me(ze.line,ze.ch-1),Me(ze.line,ze.ch+1),"+delete")}}function he(De){var Be=He(De),Ae=Be&&je(Be,"explode");if(!Ae||De.getOption("disableInput"))return oe.Pass;for(var tt=De.listSelections(),rt=0;rt<tt.length;rt++){if(!tt[rt].empty())return oe.Pass;var at=st(De,tt[rt].head);if(!at||Ae.indexOf(at)%2!=0)return oe.Pass}De.operation(function(){var ze=De.lineSeparator()||`
`;De.replaceSelection(ze+ze,null),De.execCommand("goCharLeft"),tt=De.listSelections();for(var Ge=0;Ge<tt.length;Ge++){var Ke=tt[Ge].head.line;De.indentLine(Ke,null,!0),De.indentLine(Ke+1,null,!0)}})}function et(De){var Be=oe.cmpPos(De.anchor,De.head)>0;return{anchor:new Me(De.anchor.line,De.anchor.ch+(Be?-1:1)),head:new Me(De.head.line,De.head.ch+(Be?1:-1))}}function ve(De,Be){var Ae=He(De);if(!Ae||De.getOption("disableInput"))return oe.Pass;var tt=je(Ae,"pairs"),rt=tt.indexOf(Be);if(rt==-1)return oe.Pass;for(var at=je(Ae,"closeBefore"),ze=je(Ae,"triples"),Ge=tt.charAt(rt+1)==Be,Ke=De.listSelections(),Ze=rt%2==0,Ct,We=0;We<Ke.length;We++){var Te=Ke[We],$e=Te.head,Se,Ie=De.getRange($e,Me($e.line,$e.ch+1));if(Ze&&!Te.empty())Se="surround";else if((Ge||!Ze)&&Ie==Be)Ge&&Ne(De,$e)?Se="both":ze.indexOf(Be)>=0&&De.getRange($e,Me($e.line,$e.ch+3))==Be+Be+Be?Se="skipThree":Se="skip";else if(Ge&&$e.ch>1&&ze.indexOf(Be)>=0&&De.getRange(Me($e.line,$e.ch-2),$e)==Be+Be){if($e.ch>2&&/\bstring/.test(De.getTokenTypeAt(Me($e.line,$e.ch-2))))return oe.Pass;Se="addFour"}else if(Ge){var we=$e.ch==0?" ":De.getRange(Me($e.line,$e.ch-1),$e);if(!oe.isWordChar(Ie)&&we!=Be&&!oe.isWordChar(we))Se="both";else return oe.Pass}else if(Ze&&(Ie.length===0||/\s/.test(Ie)||at.indexOf(Ie)>-1))Se="both";else return oe.Pass;if(!Ct)Ct=Se;else if(Ct!=Se)return oe.Pass}var Fe=rt%2?tt.charAt(rt-1):Be,xt=rt%2?Be:tt.charAt(rt+1);De.operation(function(){if(Ct=="skip")De.execCommand("goCharRight");else if(Ct=="skipThree")for(var lt=0;lt<3;lt++)De.execCommand("goCharRight");else if(Ct=="surround"){for(var _t=De.getSelections(),lt=0;lt<_t.length;lt++)_t[lt]=Fe+_t[lt]+xt;De.replaceSelections(_t,"around"),_t=De.listSelections().slice();for(var lt=0;lt<_t.length;lt++)_t[lt]=et(_t[lt]);De.setSelections(_t)}else Ct=="both"?(De.replaceSelection(Fe+xt,null),De.triggerElectric(Fe+xt),De.execCommand("goCharLeft")):Ct=="addFour"&&(De.replaceSelection(Fe+Fe+Fe+Fe,"before"),De.execCommand("goCharRight"))})}function st(De,Be){var Ae=De.getRange(Me(Be.line,Be.ch-1),Me(Be.line,Be.ch+1));return Ae.length==2?Ae:null}function Ne(De,Be){var Ae=De.getTokenAt(Me(Be.line,Be.ch+1));return/\bstring/.test(Ae.type)&&Ae.start==Be.ch&&(Be.ch==0||!/\bstring/.test(De.getTokenTypeAt(Be)))}})},6313:function(Dt,Rt,fe){(function(oe){oe(fe(89780),fe(52730))})(function(oe){oe.defineOption("autoCloseTags",!1,function(xe,he,et){if(et!=oe.Init&&et&&xe.removeKeyMap("autoCloseTags"),!!he){var ve={name:"autoCloseTags"};(typeof he!="object"||he.whenClosing!==!1)&&(ve["'/'"]=function(st){return ge(st)}),(typeof he!="object"||he.whenOpening!==!1)&&(ve["'>'"]=function(st){return je(st)}),xe.addKeyMap(ve)}});var nt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Me=["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 je(xe){if(xe.getOption("disableInput"))return oe.Pass;for(var he=xe.listSelections(),et=[],ve=xe.getOption("autoCloseTags"),st=0;st<he.length;st++){if(!he[st].empty())return oe.Pass;var Ne=he[st].head,De=xe.getTokenAt(Ne),Be=oe.innerMode(xe.getMode(),De.state),Ae=Be.state,tt=Be.mode.xmlCurrentTag&&Be.mode.xmlCurrentTag(Ae),rt=tt&&tt.name;if(!rt)return oe.Pass;var at=Be.mode.configuration=="html",ze=typeof ve=="object"&&ve.dontCloseTags||at&&nt,Ge=typeof ve=="object"&&ve.indentTags||at&&Me;De.end>Ne.ch&&(rt=rt.slice(0,rt.length-De.end+Ne.ch));var Ke=rt.toLowerCase();if(!rt||De.type=="string"&&(De.end!=Ne.ch||!/[\"\']/.test(De.string.charAt(De.string.length-1))||De.string.length==1)||De.type=="tag"&&tt.close||De.string.indexOf("/")==Ne.ch-De.start-1||ze&&Oe(ze,Ke)>-1||He(xe,Be.mode.xmlCurrentContext&&Be.mode.xmlCurrentContext(Ae)||[],rt,Ne,!0))return oe.Pass;var Ze=typeof ve=="object"&&ve.emptyTags;if(Ze&&Oe(Ze,rt)>-1){et[st]={text:"/>",newPos:oe.Pos(Ne.line,Ne.ch+2)};continue}var Ct=Ge&&Oe(Ge,Ke)>-1;et[st]={indent:Ct,text:">"+(Ct?`
`:"")+"</"+rt+">",newPos:Ct?oe.Pos(Ne.line+1,0):oe.Pos(Ne.line,Ne.ch+1)}}for(var We=typeof ve=="object"&&ve.dontIndentOnAutoClose,st=he.length-1;st>=0;st--){var Te=et[st];xe.replaceRange(Te.text,he[st].head,he[st].anchor,"+insert");var $e=xe.listSelections().slice(0);$e[st]={head:Te.newPos,anchor:Te.newPos},xe.setSelections($e),!We&&Te.indent&&(xe.indentLine(Te.newPos.line,null,!0),xe.indentLine(Te.newPos.line+1,null,!0))}}function me(xe,he){for(var et=xe.listSelections(),ve=[],st=he?"/":"</",Ne=xe.getOption("autoCloseTags"),De=typeof Ne=="object"&&Ne.dontIndentOnSlash,Be=0;Be<et.length;Be++){if(!et[Be].empty())return oe.Pass;var Ae=et[Be].head,tt=xe.getTokenAt(Ae),rt=oe.innerMode(xe.getMode(),tt.state),at=rt.state;if(he&&(tt.type=="string"||tt.string.charAt(0)!="<"||tt.start!=Ae.ch-1))return oe.Pass;var ze,Ge=rt.mode.name!="xml"&&xe.getMode().name=="htmlmixed";if(Ge&&rt.mode.name=="javascript")ze=st+"script";else if(Ge&&rt.mode.name=="css")ze=st+"style";else{var Ke=rt.mode.xmlCurrentContext&&rt.mode.xmlCurrentContext(at);if(!Ke||Ke.length&&He(xe,Ke,Ke[Ke.length-1],Ae))return oe.Pass;ze=st+Ke[Ke.length-1]}xe.getLine(Ae.line).charAt(tt.end)!=">"&&(ze+=">"),ve[Be]=ze}if(xe.replaceSelections(ve),et=xe.listSelections(),!De)for(var Be=0;Be<et.length;Be++)(Be==et.length-1||et[Be].head.line<et[Be+1].head.line)&&xe.indentLine(et[Be].head.line)}function ge(xe){return xe.getOption("disableInput")?oe.Pass:me(xe,!0)}oe.commands.closeTag=function(xe){return me(xe)};function Oe(xe,he){if(xe.indexOf)return xe.indexOf(he);for(var et=0,ve=xe.length;et<ve;++et)if(xe[et]==he)return et;return-1}function He(xe,he,et,ve,st){if(!oe.scanForClosingTag)return!1;var Ne=Math.min(xe.lastLine()+1,ve.line+500),De=oe.scanForClosingTag(xe,ve,null,Ne);if(!De||De.tag!=et)return!1;for(var Be=st?1:0,Ae=he.length-1;Ae>=0&&he[Ae]==et;Ae--)++Be;ve=De.to;for(var Ae=1;Ae<Be;Ae++){var tt=oe.scanForClosingTag(xe,ve,null,Ne);if(!tt||tt.tag!=et)return!1;ve=tt.to}return!0}})},52730:function(Dt,Rt,fe){(function(oe){oe(fe(89780))})(function(oe){"use strict";var nt=oe.Pos;function Me(Ae,tt){return Ae.line-tt.line||Ae.ch-tt.ch}var je="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",me=je+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ge=new RegExp("<(/?)(["+je+"]["+me+"]*)","g");function Oe(Ae,tt,rt,at){this.line=tt,this.ch=rt,this.cm=Ae,this.text=Ae.getLine(tt),this.min=at?Math.max(at.from,Ae.firstLine()):Ae.firstLine(),this.max=at?Math.min(at.to-1,Ae.lastLine()):Ae.lastLine()}function He(Ae,tt){var rt=Ae.cm.getTokenTypeAt(nt(Ae.line,tt));return rt&&/\btag\b/.test(rt)}function xe(Ae){if(!(Ae.line>=Ae.max))return Ae.ch=0,Ae.text=Ae.cm.getLine(++Ae.line),!0}function he(Ae){if(!(Ae.line<=Ae.min))return Ae.text=Ae.cm.getLine(--Ae.line),Ae.ch=Ae.text.length,!0}function et(Ae){for(;;){var tt=Ae.text.indexOf(">",Ae.ch);if(tt==-1){if(xe(Ae))continue;return}if(!He(Ae,tt+1)){Ae.ch=tt+1;continue}var rt=Ae.text.lastIndexOf("/",tt),at=rt>-1&&!/\S/.test(Ae.text.slice(rt+1,tt));return Ae.ch=tt+1,at?"selfClose":"regular"}}function ve(Ae){for(;;){var tt=Ae.ch?Ae.text.lastIndexOf("<",Ae.ch-1):-1;if(tt==-1){if(he(Ae))continue;return}if(!He(Ae,tt+1)){Ae.ch=tt;continue}ge.lastIndex=tt,Ae.ch=tt;var rt=ge.exec(Ae.text);if(rt&&rt.index==tt)return rt}}function st(Ae){for(;;){ge.lastIndex=Ae.ch;var tt=ge.exec(Ae.text);if(!tt){if(xe(Ae))continue;return}if(!He(Ae,tt.index+1)){Ae.ch=tt.index+1;continue}return Ae.ch=tt.index+tt[0].length,tt}}function Ne(Ae){for(;;){var tt=Ae.ch?Ae.text.lastIndexOf(">",Ae.ch-1):-1;if(tt==-1){if(he(Ae))continue;return}if(!He(Ae,tt+1)){Ae.ch=tt;continue}var rt=Ae.text.lastIndexOf("/",tt),at=rt>-1&&!/\S/.test(Ae.text.slice(rt+1,tt));return Ae.ch=tt+1,at?"selfClose":"regular"}}function De(Ae,tt){for(var rt=[];;){var at=st(Ae),ze,Ge=Ae.line,Ke=Ae.ch-(at?at[0].length:0);if(!at||!(ze=et(Ae)))return;if(ze!="selfClose")if(at[1]){for(var Ze=rt.length-1;Ze>=0;--Ze)if(rt[Ze]==at[2]){rt.length=Ze;break}if(Ze<0&&(!tt||tt==at[2]))return{tag:at[2],from:nt(Ge,Ke),to:nt(Ae.line,Ae.ch)}}else rt.push(at[2])}}function Be(Ae,tt){for(var rt=[];;){var at=Ne(Ae);if(!at)return;if(at=="selfClose"){ve(Ae);continue}var ze=Ae.line,Ge=Ae.ch,Ke=ve(Ae);if(!Ke)return;if(Ke[1])rt.push(Ke[2]);else{for(var Ze=rt.length-1;Ze>=0;--Ze)if(rt[Ze]==Ke[2]){rt.length=Ze;break}if(Ze<0&&(!tt||tt==Ke[2]))return{tag:Ke[2],from:nt(Ae.line,Ae.ch),to:nt(ze,Ge)}}}}oe.registerHelper("fold","xml",function(Ae,tt){for(var rt=new Oe(Ae,tt.line,0);;){var at=st(rt);if(!at||rt.line!=tt.line)return;var ze=et(rt);if(!ze)return;if(!at[1]&&ze!="selfClose"){var Ge=nt(rt.line,rt.ch),Ke=De(rt,at[2]);return Ke&&Me(Ke.from,Ge)>0?{from:Ge,to:Ke.from}:null}}}),oe.findMatchingTag=function(Ae,tt,rt){var at=new Oe(Ae,tt.line,tt.ch,rt);if(!(at.text.indexOf(">")==-1&&at.text.indexOf("<")==-1)){var ze=et(at),Ge=ze&&nt(at.line,at.ch),Ke=ze&&ve(at);if(!(!ze||!Ke||Me(at,tt)>0)){var Ze={from:nt(at.line,at.ch),to:Ge,tag:Ke[2]};return ze=="selfClose"?{open:Ze,close:null,at:"open"}:Ke[1]?{open:Be(at,Ke[2]),close:Ze,at:"close"}:(at=new Oe(Ae,Ge.line,Ge.ch,rt),{open:Ze,close:De(at,Ke[2]),at:"open"})}}},oe.findEnclosingTag=function(Ae,tt,rt,at){for(var ze=new Oe(Ae,tt.line,tt.ch,rt);;){var Ge=Be(ze,at);if(!Ge)break;var Ke=new Oe(Ae,tt.line,tt.ch,rt),Ze=De(Ke,Ge.tag);if(Ze)return{open:Ge,close:Ze}}},oe.scanForClosingTag=function(Ae,tt,rt,at){var ze=new Oe(Ae,tt.line,tt.ch,at?{from:0,to:at}:null);return De(ze,rt)}})},89780:function(Dt){(function(Rt,fe){Dt.exports=fe()})(this,function(){"use strict";var Rt=navigator.userAgent,fe=navigator.platform,oe=/gecko\/\d/i.test(Rt),nt=/MSIE \d/.test(Rt),Me=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Rt),je=/Edge\/(\d+)/.exec(Rt),me=nt||Me||je,ge=me&&(nt?document.documentMode||6:+(je||Me)[1]),Oe=!je&&/WebKit\//.test(Rt),He=Oe&&/Qt\/\d+\.\d+/.test(Rt),xe=!je&&/Chrome\//.test(Rt),he=/Opera\//.test(Rt),et=/Apple Computer/.test(navigator.vendor),ve=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Rt),st=/PhantomJS/.test(Rt),Ne=!je&&/AppleWebKit/.test(Rt)&&/Mobile\/\w+/.test(Rt),De=/Android/.test(Rt),Be=Ne||De||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Rt),Ae=Ne||/Mac/.test(fe),tt=/\bCrOS\b/.test(Rt),rt=/win/i.test(fe),at=he&&Rt.match(/Version\/(\d*\.\d*)/);at&&(at=Number(at[1])),at&&at>=15&&(he=!1,Oe=!0);var ze=Ae&&(He||he&&(at==null||at<12.11)),Ge=oe||me&&ge>=9;function Ke(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ze=function(a,y){var x=a.className,b=Ke(y).exec(x);if(b){var E=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(E?b[1]+E:"")}};function Ct(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function We(a,y){return Ct(a).appendChild(y)}function Te(a,y,x,b){var E=document.createElement(a);if(x&&(E.className=x),b&&(E.style.cssText=b),typeof y=="string")E.appendChild(document.createTextNode(y));else if(y)for(var ee=0;ee<y.length;++ee)E.appendChild(y[ee]);return E}function $e(a,y,x,b){var E=Te(a,y,x,b);return E.setAttribute("role","presentation"),E}var Se;document.createRange?Se=function(a,y,x,b){var E=document.createRange();return E.setEnd(b||a,x),E.setStart(a,y),E}:Se=function(a,y,x){var b=document.body.createTextRange();try{b.moveToElementText(a.parentNode)}catch(E){return b}return b.collapse(!0),b.moveEnd("character",x),b.moveStart("character",y),b};function Ie(a,y){if(y.nodeType==3&&(y=y.parentNode),a.contains)return a.contains(y);do if(y.nodeType==11&&(y=y.host),y==a)return!0;while(y=y.parentNode)}function we(){var a;try{a=document.activeElement}catch(y){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Fe(a,y){var x=a.className;Ke(y).test(x)||(a.className+=(x?" ":"")+y)}function xt(a,y){for(var x=a.split(" "),b=0;b<x.length;b++)x[b]&&!Ke(x[b]).test(y)&&(y+=" "+x[b]);return y}var lt=function(a){a.select()};Ne?lt=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:me&&(lt=function(a){try{a.select()}catch(y){}});function _t(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function wt(a,y,x){y||(y={});for(var b in a)a.hasOwnProperty(b)&&(x!==!1||!y.hasOwnProperty(b))&&(y[b]=a[b]);return y}function pe(a,y,x,b,E){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var ee=b||0,re=E||0;;){var se=a.indexOf(" ",ee);if(se<0||se>=y)return re+(y-ee);re+=se-ee,re+=x-re%x,ee=se+1}}var de=function(){this.id=null,this.f=null,this.time=0,this.handler=_t(this.onTimeout,this)};de.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},de.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=x)};function qe(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var Lt=50,ct={toString:function(){return"CodeMirror.Pass"}},Ee={scroll:!1},Xe={origin:"*mouse"},Je={origin:"+move"};function Nt(a,y,x){for(var b=0,E=0;;){var ee=a.indexOf(" ",b);ee==-1&&(ee=a.length);var re=ee-b;if(ee==a.length||E+re>=y)return b+Math.min(re,y-E);if(E+=ee-b,E+=x-E%x,b=ee+1,E>=y)return b}}var ot=[""];function Et(a){for(;ot.length<=a;)ot.push(Re(ot)+" ");return ot[a]}function Re(a){return a[a.length-1]}function dt(a,y){for(var x=[],b=0;b<a.length;b++)x[b]=y(a[b],b);return x}function yt(a,y,x){for(var b=0,E=x(y);b<a.length&&x(a[b])<=E;)b++;a.splice(b,0,y)}function ae(){}function te(a,y){var x;return Object.create?x=Object.create(a):(ae.prototype=a,x=new ae),y&&wt(y,x),x}var z=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ie(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||z.test(a))}function le(a,y){return y?y.source.indexOf("\\w")>-1&&ie(a)?!0:y.test(a):ie(a)}function ne(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var ye=/[\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 Ue(a){return a.charCodeAt(0)>=768&&ye.test(a)}function At(a,y,x){for(;(x<0?y>0:y<a.length)&&Ue(a.charAt(y));)y+=x;return y}function mt(a,y,x){for(var b=y>x?-1:1;;){if(y==x)return y;var E=(y+x)/2,ee=b<0?Math.ceil(E):Math.floor(E);if(ee==y)return a(ee)?y:x;a(ee)?x=ee:y=ee+b}}function ft(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,ee=0;ee<a.length;++ee){var re=a[ee];(re.from<x&&re.to>y||y==x&&re.to==y)&&(b(Math.max(re.from,y),Math.min(re.to,x),re.level==1?"rtl":"ltr",ee),E=!0)}E||b(y,x,"ltr")}var bt=null;function Gt(a,y,x){var b;bt=null;for(var E=0;E<a.length;++E){var ee=a[E];if(ee.from<y&&ee.to>y)return E;ee.to==y&&(ee.from!=ee.to&&x=="before"?b=E:bt=E),ee.from==y&&(ee.from!=ee.to&&x!="before"?b=E:bt=E)}return b!=null?b:bt}var It=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(ce){return ce<=247?a.charAt(ce):1424<=ce&&ce<=1524?"R":1536<=ce&&ce<=1785?y.charAt(ce-1536):1774<=ce&&ce<=2220?"r":8192<=ce&&ce<=8203?"w":ce==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,ee=/[LRr]/,re=/[Lb1n]/,se=/[1n]/;function ue(ce,be,Ce){this.level=ce,this.from=be,this.to=Ce}return function(ce,be){var Ce=be=="ltr"?"L":"R";if(ce.length==0||be=="ltr"&&!b.test(ce))return!1;for(var Ye=ce.length,Ve=[],vt=0;vt<Ye;++vt)Ve.push(x(ce.charCodeAt(vt)));for(var Mt=0,Ut=Ce;Mt<Ye;++Mt){var an=Ve[Mt];an=="m"?Ve[Mt]=Ut:Ut=an}for(var mn=0,sn=Ce;mn<Ye;++mn){var xn=Ve[mn];xn=="1"&&sn=="r"?Ve[mn]="n":ee.test(xn)&&(sn=xn,xn=="r"&&(Ve[mn]="R"))}for(var On=1,Ln=Ve[0];On<Ye-1;++On){var er=Ve[On];er=="+"&&Ln=="1"&&Ve[On+1]=="1"?Ve[On]="1":er==","&&Ln==Ve[On+1]&&(Ln=="1"||Ln=="n")&&(Ve[On]=Ln),Ln=er}for(var Rr=0;Rr<Ye;++Rr){var ii=Ve[Rr];if(ii==",")Ve[Rr]="N";else if(ii=="%"){var Wr=void 0;for(Wr=Rr+1;Wr<Ye&&Ve[Wr]=="%";++Wr);for(var Pi=Rr&&Ve[Rr-1]=="!"||Wr<Ye&&Ve[Wr]=="1"?"1":"N",Ei=Rr;Ei<Wr;++Ei)Ve[Ei]=Pi;Rr=Wr-1}}for(var Qr=0,Ai=Ce;Qr<Ye;++Qr){var ci=Ve[Qr];Ai=="L"&&ci=="1"?Ve[Qr]="L":ee.test(ci)&&(Ai=ci)}for(var ei=0;ei<Ye;++ei)if(E.test(Ve[ei])){var qr=void 0;for(qr=ei+1;qr<Ye&&E.test(Ve[qr]);++qr);for(var zr=(ei?Ve[ei-1]:Ce)=="L",Di=(qr<Ye?Ve[qr]:Ce)=="L",Vo=zr==Di?zr?"L":"R":Ce,bo=ei;bo<qr;++bo)Ve[bo]=Vo;ei=qr-1}for(var vi=[],$i,oi=0;oi<Ye;)if(re.test(Ve[oi])){var bs=oi;for(++oi;oi<Ye&&re.test(Ve[oi]);++oi);vi.push(new ue(0,bs,oi))}else{var oo=oi,Lo=vi.length,Mo=be=="rtl"?1:0;for(++oi;oi<Ye&&Ve[oi]!="L";++oi);for(var bi=oo;bi<oi;)if(se.test(Ve[bi])){oo<bi&&(vi.splice(Lo,0,new ue(1,oo,bi)),Lo+=Mo);var Uo=bi;for(++bi;bi<oi&&se.test(Ve[bi]);++bi);vi.splice(Lo,0,new ue(2,Uo,bi)),Lo+=Mo,oo=bi}else++bi;oo<oi&&vi.splice(Lo,0,new ue(1,oo,oi))}return be=="ltr"&&(vi[0].level==1&&($i=ce.match(/^\s+/))&&(vi[0].from=$i[0].length,vi.unshift(new ue(0,0,$i[0].length))),Re(vi).level==1&&($i=ce.match(/\s+$/))&&(Re(vi).to-=$i[0].length,vi.push(new ue(0,Ye-$i[0].length,Ye)))),be=="rtl"?vi.reverse():vi}}();function tn(a,y){var x=a.order;return x==null&&(x=a.order=It(a.text,y)),x}var nn=[],St=function(a,y,x){if(a.addEventListener)a.addEventListener(y,x,!1);else if(a.attachEvent)a.attachEvent("on"+y,x);else{var b=a._handlers||(a._handlers={});b[y]=(b[y]||nn).concat(x)}};function vn(a,y){return a._handlers&&a._handlers[y]||nn}function Zt(a,y,x){if(a.removeEventListener)a.removeEventListener(y,x,!1);else if(a.detachEvent)a.detachEvent("on"+y,x);else{var b=a._handlers,E=b&&b[y];if(E){var ee=qe(E,x);ee>-1&&(b[y]=E.slice(0,ee).concat(E.slice(ee+1)))}}}function qt(a,y){var x=vn(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),E=0;E<x.length;++E)x[E].apply(null,b)}function it(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),qt(a,x||y.type,a,y),dn(y)||y.codemirrorIgnore}function fn(a){var y=a._handlers&&a._handlers.cursorActivity;if(y)for(var x=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),b=0;b<y.length;++b)qe(x,y[b])==-1&&x.push(y[b])}function Ht(a,y){return vn(a,y).length>0}function Kt(a){a.prototype.on=function(y,x){St(this,y,x)},a.prototype.off=function(y,x){Zt(this,y,x)}}function un(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Nn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function dn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function kn(a){un(a),Nn(a)}function tr(a){return a.target||a.srcElement}function Un(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Ae&&a.ctrlKey&&y==1&&(y=3),y}var Nr=function(){if(me&&ge<9)return!1;var a=Te("div");return"draggable"in a||"dragDrop"in a}(),Mr;function dr(a){if(Mr==null){var y=Te("span","\u200B");We(a,Te("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Mr=y.offsetWidth<=1&&y.offsetHeight>2&&!(me&&ge<8))}var x=Mr?Te("span","\u200B"):Te("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Xn;function hn(a){if(Xn!=null)return Xn;var y=We(a,document.createTextNode("A\u062EA")),x=Se(y,0,1).getBoundingClientRect(),b=Se(y,1,2).getBoundingClientRect();return Ct(a),!x||x.left==x.right?!1:Xn=b.right-x.right<3}var jn=`
b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var E=a.indexOf(`
`,y);E==-1&&(E=a.length);var ee=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),re=ee.indexOf("\r");re!=-1?(x.push(ee.slice(0,re)),y+=re+1):(x.push(ee),y=E+1)}return x}:function(a){return a.split(/\r\n?|\n/)},Jn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(x){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},Mn=function(){var a=Te("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),nr=null;function kt(a){if(nr!=null)return nr;var y=We(a,Te("span","x")),x=y.getBoundingClientRect(),b=Se(y,0,1).getBoundingClientRect();return nr=Math.abs(x.left-b.left)>1}var Ot={},ut={};function gt(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Ot[a]=y}function Yt(a,y){ut[a]=y}function cn(a){if(typeof a=="string"&&ut.hasOwnProperty(a))a=ut[a];else if(a&&typeof a.name=="string"&&ut.hasOwnProperty(a.name)){var y=ut[a.name];typeof y=="string"&&(y={name:y}),a=te(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return cn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return cn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function rn(a,y){y=cn(y);var x=Ot[y.name];if(!x)return rn(a,"text/plain");var b=x(a,y);if(Sn.hasOwnProperty(y.name)){var E=Sn[y.name];for(var ee in E)E.hasOwnProperty(ee)&&(b.hasOwnProperty(ee)&&(b["_"+ee]=b[ee]),b[ee]=E[ee])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var re in y.modeProps)b[re]=y.modeProps[re];return b}var Sn={};function Bn(a,y){var x=Sn.hasOwnProperty(a)?Sn[a]:Sn[a]={};wt(y,x)}function Dn(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var x={};for(var b in y){var E=y[b];E instanceof Array&&(E=E.concat([])),x[b]=E}return x}function wn(a,y){for(var x;a.innerMode&&(x=a.innerMode(y),!(!x||x.mode==a));)y=x.state,a=x.mode;return x||{mode:a,state:y}}function En(a,y,x){return a.startState?a.startState(y,x):!0}var Bt=function(a,y,x){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};Bt.prototype.eol=function(){return this.pos>=this.string.length},Bt.prototype.sol=function(){return this.pos==this.lineStart},Bt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Bt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Bt.prototype.eat=function(a){var y=this.string.charAt(this.pos),x;if(typeof a=="string"?x=y==a:x=y&&(a.test?a.test(y):a(y)),x)return++this.pos,y},Bt.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},Bt.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Bt.prototype.skipToEnd=function(){this.pos=this.string.length},Bt.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},Bt.prototype.backUp=function(a){this.pos-=a},Bt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=pe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?pe(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.indentation=function(){return pe(this.string,null,this.tabSize)-(this.lineStart?pe(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.match=function(a,y,x){if(typeof a=="string"){var b=function(re){return x?re.toLowerCase():re},E=this.string.substr(this.pos,a.length);if(b(E)==b(a))return y!==!1&&(this.pos+=a.length),!0}else{var ee=this.string.slice(this.pos).match(a);return ee&&ee.index>0?null:(ee&&y!==!1&&(this.pos+=ee[0].length),ee)}},Bt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Bt.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},Bt.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},Bt.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Qe(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var b=0;;++b){var E=x.children[b],ee=E.chunkSize();if(y<ee){x=E;break}y-=ee}return x.lines[y]}function Wt(a,y,x){var b=[],E=y.line;return a.iter(y.line,x.line+1,function(ee){var re=ee.text;E==x.line&&(re=re.slice(0,x.ch)),E==y.line&&(re=re.slice(y.ch)),b.push(re),++E}),b}function gn(a,y,x){var b=[];return a.iter(y,x,function(E){b.push(E.text)}),b}function An(a,y){var x=y-a.height;if(x)for(var b=a;b;b=b.parent)b.height+=x}function ke(a){if(a.parent==null)return null;for(var y=a.parent,x=qe(y.lines,a),b=y.parent;b;y=b,b=b.parent)for(var E=0;b.children[E]!=y;++E)x+=b.children[E].chunkSize();return x+y.first}function Le(a,y){var x=a.first;e:do{for(var b=0;b<a.children.length;++b){var E=a.children[b],ee=E.height;if(y<ee){a=E;continue e}y-=ee,x+=E.chunkSize()}return x}while(!a.lines);for(var re=0;re<a.lines.length;++re){var se=a.lines[re],ue=se.height;if(y<ue)break;y-=ue}return x+re}function Pt(a,y){return y>=a.first&&y<a.first+a.size}function ht(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function _e(a,y,x){if(x===void 0&&(x=null),!(this instanceof _e))return new _e(a,y,x);this.line=a,this.ch=y,this.sticky=x}function pt(a,y){return a.line-y.line||a.ch-y.ch}function Jt(a,y){return a.sticky==y.sticky&&pt(a,y)==0}function ln(a){return _e(a.line,a.ch)}function pn(a,y){return pt(a,y)<0?y:a}function zt(a,y){return pt(a,y)<0?a:y}function Qt(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function Pe(a,y){if(y.line<a.first)return _e(a.first,0);var x=a.first+a.size-1;return y.line>x?_e(x,Qe(a,x).text.length):Tn(y,Qe(a,y.line).text.length)}function Tn(a,y){var x=a.ch;return x==null||x>y?_e(a.line,y):x<0?_e(a.line,0):a}function en(a,y){for(var x=[],b=0;b<y.length;b++)x[b]=Pe(a,y[b]);return x}var Cn=function(a,y){this.state=a,this.lookAhead=y},yn=function(a,y,x,b){this.state=y,this.doc=a,this.line=x,this.maxLookAhead=b||0,this.baseTokens=null,this.baseTokenPos=1};yn.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},yn.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var y=this.baseTokens[this.baseTokenPos+1];return{type:y&&y.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},yn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yn.fromSaved=function(a,y,x){return y instanceof Cn?new yn(a,Dn(a.mode,y.state),x,y.lookAhead):new yn(a,Dn(a.mode,y),x)},yn.prototype.save=function(a){var y=a!==!1?Dn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Cn(y,this.maxLookAhead):y};function Pn(a,y,x,b){var E=[a.state.modeGen],ee={};fr(a,y.text,a.doc.mode,x,function(ce,be){return E.push(ce,be)},ee,b);for(var re=x.state,se=function(ce){x.baseTokens=E;var be=a.state.overlays[ce],Ce=1,Ye=0;x.state=!0,fr(a,y.text,be.mode,x,function(Ve,vt){for(var Mt=Ce;Ye<Ve;){var Ut=E[Ce];Ut>Ve&&E.splice(Ce,1,Ve,E[Ce+1],Ut),Ce+=2,Ye=Math.min(Ve,Ut)}if(vt)if(be.opaque)E.splice(Mt,Ce-Mt,Ve,"overlay "+vt),Ce=Mt+2;else for(;Mt<Ce;Mt+=2){var an=E[Mt+1];E[Mt+1]=(an?an+" ":"")+"overlay "+vt}},ee),x.state=re,x.baseTokens=null,x.baseTokenPos=1},ue=0;ue<a.state.overlays.length;++ue)se(ue);return{styles:E,classes:ee.bgClass||ee.textClass?ee:null}}function Wn(a,y,x){if(!y.styles||y.styles[0]!=a.state.modeGen){var b=mr(a,ke(y)),E=y.text.length>a.options.maxHighlightLength&&Dn(a.doc.mode,b.state),ee=Pn(a,y,b);E&&(b.state=E),y.stateAfter=b.save(!E),y.styles=ee.styles,ee.classes?y.styleClasses=ee.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function mr(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new yn(b,!0,y);var ee=yr(a,y,x),re=ee>b.first&&Qe(b,ee-1).stateAfter,se=re?yn.fromSaved(b,re,ee):new yn(b,En(b.mode),ee);return b.iter(ee,y,function(ue){Gn(a,ue.text,se);var ce=se.line;ue.stateAfter=ce==y-1||ce%5==0||ce>=E.viewFrom&&ce<E.viewTo?se.save():null,se.nextLine()}),x&&(b.modeFrontier=se.line),se}function Gn(a,y,x,b){var E=a.doc.mode,ee=new Bt(y,a.options.tabSize,x);for(ee.start=ee.pos=b||0,y==""&&In(E,x.state);!ee.eol();)ur(E,ee,x.state),ee.start=ee.pos}function In(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var x=wn(a,y);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function ur(a,y,x,b){for(var E=0;E<10;E++){b&&(b[0]=wn(a,x).mode);var ee=a.token(y,x);if(y.pos>y.start)return ee}throw new Error("Mode "+a.name+" failed to advance stream.")}var zn=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function gr(a,y,x,b){var E=a.doc,ee=E.mode,re;y=Pe(E,y);var se=Qe(E,y.line),ue=mr(a,y.line,x),ce=new Bt(se.text,a.options.tabSize,ue),be;for(b&&(be=[]);(b||ce.pos<y.ch)&&!ce.eol();)ce.start=ce.pos,re=ur(ee,ce,ue.state),b&&be.push(new zn(ce,re,Dn(E.mode,ue.state)));return b?be:new zn(ce,re,ue.state)}function _r(a,y){if(a)for(;;){var x=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!x)break;a=a.slice(0,x.index)+a.slice(x.index+x[0].length);var b=x[1]?"bgClass":"textClass";y[b]==null?y[b]=x[2]:new RegExp("(?:^|\\s)"+x[2]+"(?:$|\\s)").test(y[b])||(y[b]+=" "+x[2])}return a}function fr(a,y,x,b,E,ee,re){var se=x.flattenSpans;se==null&&(se=a.options.flattenSpans);var ue=0,ce=null,be=new Bt(y,a.options.tabSize,b),Ce,Ye=a.options.addModeClass&&[null];for(y==""&&_r(In(x,b.state),ee);!be.eol();){if(be.pos>a.options.maxHighlightLength?(se=!1,re&&Gn(a,y,b,be.pos),be.pos=y.length,Ce=null):Ce=_r(ur(x,be,b.state,Ye),ee),Ye){var Ve=Ye[0].name;Ve&&(Ce="m-"+(Ce?Ve+" "+Ce:Ve))}if(!se||ce!=Ce){for(;ue<be.start;)ue=Math.min(be.start,ue+5e3),E(ue,ce);ce=Ce}be.start=be.pos}for(;ue<be.pos;){var vt=Math.min(be.pos,ue+5e3);E(vt,ce),ue=vt}}function yr(a,y,x){for(var b,E,ee=a.doc,re=x?-1:y-(a.doc.mode.innerMode?1e3:100),se=y;se>re;--se){if(se<=ee.first)return ee.first;var ue=Qe(ee,se-1),ce=ue.stateAfter;if(ce&&(!x||se+(ce instanceof Cn?ce.lookAhead:0)<=ee.modeFrontier))return se;var be=pe(ue.text,null,a.options.tabSize);(E==null||b>be)&&(E=se-1,b=be)}return E}function Dr(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontier<y-10)){for(var x=a.first,b=y-1;b>x;b--){var E=Qe(a,b).stateAfter;if(E&&(!(E instanceof Cn)||b+E.lookAhead<y)){x=b+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var br=!1,or=!1;function Br(){br=!0}function ar(){or=!0}function hr(a,y,x){this.marker=a,this.from=y,this.to=x}function xr(a,y){if(a)for(var x=0;x<a.length;++x){var b=a[x];if(b.marker==y)return b}}function kr(a,y){for(var x,b=0;b<a.length;++b)a[b]!=y&&(x||(x=[])).push(a[b]);return x}function pr(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function rr(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var ee=a[E],re=ee.marker,se=ee.from==null||(re.inclusiveLeft?ee.from<=y:ee.from<y);if(se||ee.from==y&&re.type=="bookmark"&&(!x||!ee.marker.insertLeft)){var ue=ee.to==null||(re.inclusiveRight?ee.to>=y:ee.to>y);(b||(b=[])).push(new hr(re,ee.from,ue?null:ee.to))}}return b}function $n(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var ee=a[E],re=ee.marker,se=ee.to==null||(re.inclusiveRight?ee.to>=y:ee.to>y);if(se||ee.from==y&&re.type=="bookmark"&&(!x||ee.marker.insertLeft)){var ue=ee.from==null||(re.inclusiveLeft?ee.from<=y:ee.from<y);(b||(b=[])).push(new hr(re,ue?null:ee.from-y,ee.to==null?null:ee.to-y))}}return b}function Tr(a,y){if(y.full)return null;var x=Pt(a,y.from.line)&&Qe(a,y.from.line).markedSpans,b=Pt(a,y.to.line)&&Qe(a,y.to.line).markedSpans;if(!x&&!b)return null;var E=y.from.ch,ee=y.to.ch,re=pt(y.from,y.to)==0,se=rr(x,E,re),ue=$n(b,ee,re),ce=y.text.length==1,be=Re(y.text).length+(ce?E:0);if(se)for(var Ce=0;Ce<se.length;++Ce){var Ye=se[Ce];if(Ye.to==null){var Ve=xr(ue,Ye.marker);Ve?ce&&(Ye.to=Ve.to==null?null:Ve.to+be):Ye.to=E}}if(ue)for(var vt=0;vt<ue.length;++vt){var Mt=ue[vt];if(Mt.to!=null&&(Mt.to+=be),Mt.from==null){var Ut=xr(se,Mt.marker);Ut||(Mt.from=be,ce&&(se||(se=[])).push(Mt))}else Mt.from+=be,ce&&(se||(se=[])).push(Mt)}se&&(se=Zr(se)),ue&&ue!=se&&(ue=Zr(ue));var an=[se];if(!ce){var mn=y.text.length-2,sn;if(mn>0&&se)for(var xn=0;xn<se.length;++xn)se[xn].to==null&&(sn||(sn=[])).push(new hr(se[xn].marker,null,null));for(var On=0;On<mn;++On)an.push(sn);an.push(ue)}return an}function Zr(a){for(var y=0;y<a.length;++y){var x=a[y];x.from!=null&&x.from==x.to&&x.marker.clearWhenEmpty!==!1&&a.splice(y--,1)}return a.length?a:null}function jr(a,y,x){var b=null;if(a.iter(y.line,x.line+1,function(Ve){if(Ve.markedSpans)for(var vt=0;vt<Ve.markedSpans.length;++vt){var Mt=Ve.markedSpans[vt].marker;Mt.readOnly&&(!b||qe(b,Mt)==-1)&&(b||(b=[])).push(Mt)}}),!b)return null;for(var E=[{from:y,to:x}],ee=0;ee<b.length;++ee)for(var re=b[ee],se=re.find(0),ue=0;ue<E.length;++ue){var ce=E[ue];if(!(pt(ce.to,se.from)<0||pt(ce.from,se.to)>0)){var be=[ue,1],Ce=pt(ce.from,se.from),Ye=pt(ce.to,se.to);(Ce<0||!re.inclusiveLeft&&!Ce)&&be.push({from:ce.from,to:se.from}),(Ye>0||!re.inclusiveRight&&!Ye)&&be.push({from:se.to,to:ce.to}),E.splice.apply(E,be),ue+=be.length-3}}return E}function ir(a){var y=a.markedSpans;if(y){for(var x=0;x<y.length;++x)y[x].marker.detachLine(a);a.markedSpans=null}}function ai(a,y){if(y){for(var x=0;x<y.length;++x)y[x].marker.attachLine(a);a.markedSpans=y}}function cr(a){return a.inclusiveLeft?-1:0}function si(a){return a.inclusiveRight?1:0}function ti(a,y){var x=a.lines.length-y.lines.length;if(x!=0)return x;var b=a.find(),E=y.find(),ee=pt(b.from,E.from)||cr(a)-cr(y);if(ee)return-ee;var re=pt(b.to,E.to)||si(a)-si(y);return re||y.id-a.id}function Or(a,y){var x=or&&a.markedSpans,b;if(x)for(var E=void 0,ee=0;ee<x.length;++ee)E=x[ee],E.marker.collapsed&&(y?E.from:E.to)==null&&(!b||ti(b,E.marker)<0)&&(b=E.marker);return b}function Vn(a){return Or(a,!0)}function Ft(a){return Or(a,!1)}function Vt(a,y){var x=or&&a.markedSpans,b;if(x)for(var E=0;E<x.length;++E){var ee=x[E];ee.marker.collapsed&&(ee.from==null||ee.from<y)&&(ee.to==null||ee.to>y)&&(!b||ti(b,ee.marker)<0)&&(b=ee.marker)}return b}function bn(a,y,x,b,E){var ee=Qe(a,y),re=or&&ee.markedSpans;if(re)for(var se=0;se<re.length;++se){var ue=re[se];if(ue.marker.collapsed){var ce=ue.marker.find(0),be=pt(ce.from,x)||cr(ue.marker)-cr(E),Ce=pt(ce.to,b)||si(ue.marker)-si(E);if(!(be>=0&&Ce<=0||be<=0&&Ce>=0)&&(be<=0&&(ue.marker.inclusiveRight&&E.inclusiveLeft?pt(ce.to,x)>=0:pt(ce.to,x)>0)||be>=0&&(ue.marker.inclusiveRight&&E.inclusiveLeft?pt(ce.from,b)<=0:pt(ce.from,b)<0)))return!0}}}function on(a){for(var y;y=Vn(a);)a=y.find(-1,!0).line;return a}function Fn(a){for(var y;y=Ft(a);)a=y.find(1,!0).line;return a}function jt(a){for(var y,x;y=Ft(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function Tt(a,y){var x=Qe(a,y),b=on(x);return x==b?y:ke(b)}function Xt(a,y){if(y>a.lastLine())return y;var x=Qe(a,y),b;if(!$t(a,x))return y;for(;b=Ft(x);)x=b.find(1,!0).line;return ke(x)+1}function $t(a,y){var x=or&&y.markedSpans;if(x){for(var b=void 0,E=0;E<x.length;++E)if(b=x[E],!!b.marker.collapsed){if(b.from==null)return!0;if(!b.marker.widgetNode&&b.from==0&&b.marker.inclusiveLeft&&Hn(a,y,b))return!0}}}function Hn(a,y,x){if(x.to==null){var b=x.marker.find(1,!0);return Hn(a,b.line,xr(b.line.markedSpans,x.marker))}if(x.marker.inclusiveRight&&x.to==y.text.length)return!0;for(var E=void 0,ee=0;ee<y.markedSpans.length;++ee)if(E=y.markedSpans[ee],E.marker.collapsed&&!E.marker.widgetNode&&E.from==x.to&&(E.to==null||E.to!=x.from)&&(E.marker.inclusiveLeft||x.marker.inclusiveRight)&&Hn(a,y,E))return!0}function Kn(a){a=on(a);for(var y=0,x=a.parent,b=0;b<x.lines.length;++b){var E=x.lines[b];if(E==a)break;y+=E.height}for(var ee=x.parent;ee;x=ee,ee=x.parent)for(var re=0;re<ee.children.length;++re){var se=ee.children[re];if(se==x)break;y+=se.height}return y}function Sr(a){if(a.height==0)return 0;for(var y=a.text.length,x,b=a;x=Vn(b);){var E=x.find(0,!0);b=E.from.line,y+=E.from.ch-E.to.ch}for(b=a;x=Ft(b);){var ee=x.find(0,!0);y-=b.text.length-ee.from.ch,b=ee.to.line,y+=b.text.length-ee.to.ch}return y}function Qn(a){var y=a.display,x=a.doc;y.maxLine=Qe(x,x.first),y.maxLineLength=Sr(y.maxLine),y.maxLineChanged=!0,x.iter(function(b){var E=Sr(b);E>y.maxLineLength&&(y.maxLineLength=E,y.maxLine=b)})}var sr=function(a,y,x){this.text=a,ai(this,y),this.height=x?x(this):1};sr.prototype.lineNo=function(){return ke(this)},Kt(sr);function Pr(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),ir(a),ai(a,x);var E=b?b(a):1;E!=a.height&&An(a,E)}function Gr(a){a.parent=null,ir(a)}var wr={},Yr={};function Lr(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Yr:wr;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function di(a,y){var x=$e("span",null,null,Oe?"padding-right: .1px":null),b={pre:$e("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var E=0;E<=(y.rest?y.rest.length:0);E++){var ee=E?y.rest[E-1]:y.line,re=void 0;b.pos=0,b.addToken=Oi,hn(a.display.measure)&&(re=tn(ee,a.doc.direction))&&(b.addToken=mi(b.addToken,re)),b.map=[];var se=y!=a.display.externalMeasured&&ke(ee);wi(ee,b,Wn(a,ee,se)),ee.styleClasses&&(ee.styleClasses.bgClass&&(b.bgClass=xt(ee.styleClasses.bgClass,b.bgClass||"")),ee.styleClasses.textClass&&(b.textClass=xt(ee.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(dr(a.display.measure))),E==0?(y.measure.map=b.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(b.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(Oe){var ue=b.content.lastChild;(/\bcm-tab\b/.test(ue.className)||ue.querySelector&&ue.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return qt(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=xt(b.pre.className,b.textClass||"")),b}function zi(a){var y=Te("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Oi(a,y,x,b,E,ee,re){if(y){var se=a.splitSpaces?xi(y,a.trailingSpace):y,ue=a.cm.state.specialChars,ce=!1,be;if(!ue.test(y))a.col+=y.length,be=document.createTextNode(se),a.map.push(a.pos,a.pos+y.length,be),me&&ge<9&&(ce=!0),a.pos+=y.length;else{be=document.createDocumentFragment();for(var Ce=0;;){ue.lastIndex=Ce;var Ye=ue.exec(y),Ve=Ye?Ye.index-Ce:y.length-Ce;if(Ve){var vt=document.createTextNode(se.slice(Ce,Ce+Ve));me&&ge<9?be.appendChild(Te("span",[vt])):be.appendChild(vt),a.map.push(a.pos,a.pos+Ve,vt),a.col+=Ve,a.pos+=Ve}if(!Ye)break;Ce+=Ve+1;var Mt=void 0;if(Ye[0]==" "){var Ut=a.cm.options.tabSize,an=Ut-a.col%Ut;Mt=be.appendChild(Te("span",Et(an),"cm-tab")),Mt.setAttribute("role","presentation"),Mt.setAttribute("cm-text"," "),a.col+=an}else Ye[0]=="\r"||Ye[0]==`
`?(Mt=be.appendChild(Te("span",Ye[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Mt.setAttribute("cm-text",Ye[0]),a.col+=1):(Mt=a.cm.options.specialCharPlaceholder(Ye[0]),Mt.setAttribute("cm-text",Ye[0]),me&&ge<9?be.appendChild(Te("span",[Mt])):be.appendChild(Mt),a.col+=1);a.map.push(a.pos,a.pos+1,Mt),a.pos++}}if(a.trailingSpace=se.charCodeAt(y.length-1)==32,x||b||E||ce||ee||re){var mn=x||"";b&&(mn+=b),E&&(mn+=E);var sn=Te("span",[be],mn,ee);if(re)for(var xn in re)re.hasOwnProperty(xn)&&xn!="style"&&xn!="class"&&sn.setAttribute(xn,re[xn]);return a.content.appendChild(sn)}a.content.appendChild(be)}}function xi(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;E<a.length;E++){var ee=a.charAt(E);ee==" "&&x&&(E==a.length-1||a.charCodeAt(E+1)==32)&&(ee="\xA0"),b+=ee,x=ee==" "}return b}function mi(a,y){return function(x,b,E,ee,re,se,ue){E=E?E+" cm-force-border":"cm-force-border";for(var ce=x.pos,be=ce+b.length;;){for(var Ce=void 0,Ye=0;Ye<y.length&&(Ce=y[Ye],!(Ce.to>ce&&Ce.from<=ce));Ye++);if(Ce.to>=be)return a(x,b,E,ee,re,se,ue);a(x,b.slice(0,Ce.to-ce),E,ee,null,se,ue),ee=null,b=b.slice(Ce.to-ce),ce=Ce.to}}}function Er(a,y,x,b){var E=!b&&x.widgetNode;E&&a.map.push(a.pos,a.pos+y,E),!b&&a.cm.display.input.needsContentAttribute&&(E||(E=a.content.appendChild(document.createElement("span"))),E.setAttribute("cm-marker",x.id)),E&&(a.cm.display.input.setUneditable(E),a.content.appendChild(E)),a.pos+=y,a.trailingSpace=!1}function wi(a,y,x){var b=a.markedSpans,E=a.text,ee=0;if(!b){for(var re=1;re<x.length;re+=2)y.addToken(y,E.slice(ee,ee=x[re]),Lr(x[re+1],y.cm.options));return}for(var se=E.length,ue=0,ce=1,be="",Ce,Ye,Ve=0,vt,Mt,Ut,an,mn;;){if(Ve==ue){vt=Mt=Ut=Ye="",mn=null,an=null,Ve=1/0;for(var sn=[],xn=void 0,On=0;On<b.length;++On){var Ln=b[On],er=Ln.marker;if(er.type=="bookmark"&&Ln.from==ue&&er.widgetNode)sn.push(er);else if(Ln.from<=ue&&(Ln.to==null||Ln.to>ue||er.collapsed&&Ln.to==ue&&Ln.from==ue)){if(Ln.to!=null&&Ln.to!=ue&&Ve>Ln.to&&(Ve=Ln.to,Mt=""),er.className&&(vt+=" "+er.className),er.css&&(Ye=(Ye?Ye+";":"")+er.css),er.startStyle&&Ln.from==ue&&(Ut+=" "+er.startStyle),er.endStyle&&Ln.to==Ve&&(xn||(xn=[])).push(er.endStyle,Ln.to),er.title&&((mn||(mn={})).title=er.title),er.attributes)for(var Rr in er.attributes)(mn||(mn={}))[Rr]=er.attributes[Rr];er.collapsed&&(!an||ti(an.marker,er)<0)&&(an=Ln)}else Ln.from>ue&&Ve>Ln.from&&(Ve=Ln.from)}if(xn)for(var ii=0;ii<xn.length;ii+=2)xn[ii+1]==Ve&&(Mt+=" "+xn[ii]);if(!an||an.from==ue)for(var Wr=0;Wr<sn.length;++Wr)Er(y,0,sn[Wr]);if(an&&(an.from||0)==ue){if(Er(y,(an.to==null?se+1:an.to)-ue,an.marker,an.from==null),an.to==null)return;an.to==ue&&(an=!1)}}if(ue>=se)break;for(var Pi=Math.min(se,Ve);;){if(be){var Ei=ue+be.length;if(!an){var Qr=Ei>Pi?be.slice(0,Pi-ue):be;y.addToken(y,Qr,Ce?Ce+vt:vt,Ut,ue+Qr.length==Ve?Mt:"",Ye,mn)}if(Ei>=Pi){be=be.slice(Pi-ue),ue=Pi;break}ue=Ei,Ut=""}be=E.slice(ee,ee=x[ce++]),Ce=Lr(x[ce++],y.cm.options)}}}function eo(a,y,x){this.line=y,this.rest=jt(y),this.size=this.rest?ke(Re(this.rest))-x+1:1,this.node=this.text=null,this.hidden=$t(a,y)}function Xr(a,y,x){for(var b=[],E,ee=y;ee<x;ee=E){var re=new eo(a.doc,Qe(a.doc,ee),ee);E=ee+re.size,b.push(re)}return b}var _i=null;function Xi(a){_i?_i.ops.push(a):a.ownsGroup=_i={ops:[a],delayedCallbacks:[]}}function fi(a){var y=a.delayedCallbacks,x=0;do{for(;x<y.length;x++)y[x].call(null);for(var b=0;b<a.ops.length;b++){var E=a.ops[b];if(E.cursorActivityHandlers)for(;E.cursorActivityCalled<E.cursorActivityHandlers.length;)E.cursorActivityHandlers[E.cursorActivityCalled++].call(null,E.cm)}}while(x<y.length)}function ao(a,y){var x=a.ownsGroup;if(x)try{fi(x)}finally{_i=null,y(x)}}var Fi=null;function Ir(a,y){var x=vn(a,y);if(x.length){var b=Array.prototype.slice.call(arguments,2),E;_i?E=_i.delayedCallbacks:Fi?E=Fi:(E=Fi=[],setTimeout(to,0));for(var ee=function(se){E.push(function(){return x[se].apply(null,b)})},re=0;re<x.length;++re)ee(re)}}function to(){var a=Fi;Fi=null;for(var y=0;y<a.length;++y)a[y]()}function so(a,y,x,b){for(var E=0;E<y.changes.length;E++){var ee=y.changes[E];ee=="text"?lo(a,y):ee=="gutter"?Yn(a,y,x,b):ee=="class"?Rn(a,y):ee=="widget"&&_n(a,y,b)}y.changes=null}function Zi(a){return a.node==a.text&&(a.node=Te("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),me&&ge<8&&(a.node.style.zIndex=2)),a.node}function Jr(a,y){var x=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(x&&(x+=" CodeMirror-linebackground"),y.background)x?y.background.className=x:(y.background.parentNode.removeChild(y.background),y.background=null);else if(x){var b=Zi(y);y.background=b.insertBefore(Te("div",null,x),b.firstChild),a.display.input.setUneditable(y.background)}}function xo(a,y){var x=a.display.externalMeasured;return x&&x.line==y.line?(a.display.externalMeasured=null,y.measure=x.measure,x.built):di(a,y)}function lo(a,y){var x=y.text.className,b=xo(a,y);y.text==y.node&&(y.node=b.pre),y.text.parentNode.replaceChild(b.pre,y.text),y.text=b.pre,b.bgClass!=y.bgClass||b.textClass!=y.textClass?(y.bgClass=b.bgClass,y.textClass=b.textClass,Rn(a,y)):x&&(y.text.className=x)}function Rn(a,y){Jr(a,y),y.line.wrapClass?Zi(y).className=y.line.wrapClass:y.node!=y.text&&(y.node.className="");var x=y.textClass?y.textClass+" "+(y.line.textClass||""):y.line.textClass;y.text.className=x||""}function Yn(a,y,x,b){if(y.gutter&&(y.node.removeChild(y.gutter),y.gutter=null),y.gutterBackground&&(y.node.removeChild(y.gutterBackground),y.gutterBackground=null),y.line.gutterClass){var E=Zi(y);y.gutterBackground=Te("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px; width: "+b.gutterTotalWidth+"px"),a.display.input.setUneditable(y.gutterBackground),E.insertBefore(y.gutterBackground,y.text)}var ee=y.line.gutterMarkers;if(a.options.lineNumbers||ee){var re=Zi(y),se=y.gutter=Te("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px");if(a.display.input.setUneditable(se),re.insertBefore(se,y.text),y.line.gutterClass&&(se.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!ee||!ee["CodeMirror-linenumbers"])&&(y.lineNumber=se.appendChild(Te("div",ht(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+b.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),ee)for(var ue=0;ue<a.display.gutterSpecs.length;++ue){var ce=a.display.gutterSpecs[ue].className,be=ee.hasOwnProperty(ce)&&ee[ce];be&&se.appendChild(Te("div",[be],"CodeMirror-gutter-elt","left: "+b.gutterLeft[ce]+"px; width: "+b.gutterWidth[ce]+"px"))}}}function _n(a,y,x){y.alignable&&(y.alignable=null);for(var b=Ke("CodeMirror-linewidget"),E=y.node.firstChild,ee=void 0;E;E=ee)ee=E.nextSibling,b.test(E.className)&&y.node.removeChild(E);vr(a,y,x)}function Zn(a,y,x,b){var E=xo(a,y);return y.text=y.node=E.pre,E.bgClass&&(y.bgClass=E.bgClass),E.textClass&&(y.textClass=E.textClass),Rn(a,y),Yn(a,y,x,b),vr(a,y,b),y.node}function vr(a,y,x){if(Fr(a,y.line,y,x,!0),y.rest)for(var b=0;b<y.rest.length;b++)Fr(a,y.rest[b],y,x,!1)}function Fr(a,y,x,b,E){if(y.widgets)for(var ee=Zi(x),re=0,se=y.widgets;re<se.length;++re){var ue=se[re],ce=Te("div",[ue.node],"CodeMirror-linewidget"+(ue.className?" "+ue.className:""));ue.handleMouseEvents||ce.setAttribute("cm-ignore-events","true"),ji(ue,ce,x,b),a.display.input.setUneditable(ce),E&&ue.above?ee.insertBefore(ce,x.gutter||x.text):ee.appendChild(ce),Ir(ue,"redraw")}}function ji(a,y,x,b){if(a.noHScroll){(x.alignable||(x.alignable=[])).push(y);var E=b.wrapperWidth;y.style.left=b.fixedPos+"px",a.coverGutter||(E-=b.gutterTotalWidth,y.style.paddingLeft=b.gutterTotalWidth+"px"),y.style.width=E+"px"}a.coverGutter&&(y.style.zIndex=5,y.style.position="relative",a.noHScroll||(y.style.marginLeft=-b.gutterTotalWidth+"px"))}function gi(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!Ie(document.body,a.node)){var x="position: relative;";a.coverGutter&&(x+="margin-left: -"+y.display.gutters.offsetWidth+"px;"),a.noHScroll&&(x+="width: "+y.display.wrapper.clientWidth+"px;"),We(y.display.measure,Te("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function li(a,y){for(var x=tr(y);x!=a.wrapper;x=x.parentNode)if(!x||x.nodeType==1&&x.getAttribute("cm-ignore-events")=="true"||x.parentNode==a.sizer&&x!=a.mover)return!0}function Vr(a){return a.lineSpace.offsetTop}function Ii(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Ji(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=We(a.measure,Te("pre","x","CodeMirror-line-like")),x=window.getComputedStyle?window.getComputedStyle(y):y.currentStyle,b={left:parseInt(x.paddingLeft),right:parseInt(x.paddingRight)};return!isNaN(b.left)&&!isNaN(b.right)&&(a.cachedPaddingH=b),b}function Li(a){return Lt-a.display.nativeBarWidth}function Qi(a){return a.display.scroller.clientWidth-Li(a)-a.display.barWidth}function no(a){return a.display.scroller.clientHeight-Li(a)-a.display.barHeight}function Gi(a,y,x){var b=a.options.lineWrapping,E=b&&Qi(a);if(!y.measure.heights||b&&y.measure.width!=E){var ee=y.measure.heights=[];if(b){y.measure.width=E;for(var re=y.text.firstChild.getClientRects(),se=0;se<re.length-1;se++){var ue=re[se],ce=re[se+1];Math.abs(ue.bottom-ce.bottom)>2&&ee.push((ue.bottom+ce.top)/2-x.top)}}ee.push(x.bottom-x.top)}}function Bo(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;b<a.rest.length;b++)if(a.rest[b]==y)return{map:a.measure.maps[b],cache:a.measure.caches[b]};for(var E=0;E<a.rest.length;E++)if(ke(a.rest[E])>x)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function Ga(a,y){y=on(y);var x=ke(y),b=a.display.externalMeasured=new eo(a.doc,y,x);b.lineN=x;var E=b.built=di(a,b);return b.text=E.pre,We(a.display.lineMeasure,E.pre),b}function ya(a,y,x,b){return Hi(a,uo(a,y),x,b)}function qi(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[So(a,y)];var x=a.display.externalMeasured;if(x&&y>=x.lineN&&y<x.lineN+x.size)return x}function uo(a,y){var x=ke(y),b=qi(a,x);b&&!b.text?b=null:b&&b.changes&&(so(a,b,x,co(a)),a.curOp.forceUpdate=!0),b||(b=Ga(a,y));var E=Bo(b,y,x);return{line:y,view:b,rect:null,map:E.map,cache:E.cache,before:E.before,hasHeights:!1}}function Hi(a,y,x,b,E){y.before&&(x=-1);var ee=x+(b||""),re;return y.cache.hasOwnProperty(ee)?re=y.cache[ee]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Gi(a,y.view,y.rect),y.hasHeights=!0),re=wa(a,y,x,b),re.bogus||(y.cache[ee]=re)),{left:re.left,right:re.right,top:E?re.rtop:re.top,bottom:E?re.rbottom:re.bottom}}var ba={left:0,right:0,top:0,bottom:0};function xa(a,y,x){for(var b,E,ee,re,se,ue,ce=0;ce<a.length;ce+=3)if(se=a[ce],ue=a[ce+1],y<se?(E=0,ee=1,re="left"):y<ue?(E=y-se,ee=E+1):(ce==a.length-3||y==ue&&a[ce+3]>y)&&(ee=ue-se,E=ee-1,y>=ue&&(re="right")),E!=null){if(b=a[ce+2],se==ue&&x==(b.insertLeft?"left":"right")&&(re=x),x=="left"&&E==0)for(;ce&&a[ce-2]==a[ce-3]&&a[ce-1].insertLeft;)b=a[(ce-=3)+2],re="left";if(x=="right"&&E==ue-se)for(;ce<a.length-3&&a[ce+3]==a[ce+4]&&!a[ce+5].insertLeft;)b=a[(ce+=3)+2],re="right";break}return{node:b,start:E,end:ee,collapse:re,coverStart:se,coverEnd:ue}}function Va(a,y){var x=ba;if(y=="left")for(var b=0;b<a.length&&(x=a[b]).left==x.right;b++);else for(var E=a.length-1;E>=0&&(x=a[E]).left==x.right;E--);return x}function wa(a,y,x,b){var E=xa(y.map,x,b),ee=E.node,re=E.start,se=E.end,ue=E.collapse,ce;if(ee.nodeType==3){for(var be=0;be<4;be++){for(;re&&Ue(y.line.text.charAt(E.coverStart+re));)--re;for(;E.coverStart+se<E.coverEnd&&Ue(y.line.text.charAt(E.coverStart+se));)++se;if(me&&ge<9&&re==0&&se==E.coverEnd-E.coverStart?ce=ee.parentNode.getBoundingClientRect():ce=Va(Se(ee,re,se).getClientRects(),b),ce.left||ce.right||re==0)break;se=re,re=re-1,ue="right"}me&&ge<11&&(ce=Ua(a.display.measure,ce))}else{re>0&&(ue=b="right");var Ce;a.options.lineWrapping&&(Ce=ee.getClientRects()).length>1?ce=Ce[b=="right"?Ce.length-1:0]:ce=ee.getBoundingClientRect()}if(me&&ge<9&&!re&&(!ce||!ce.left&&!ce.right)){var Ye=ee.parentNode.getClientRects()[0];Ye?ce={left:Ye.left,right:Ye.left+Ui(a.display),top:Ye.top,bottom:Ye.bottom}:ce=ba}for(var Ve=ce.top-y.rect.top,vt=ce.bottom-y.rect.top,Mt=(Ve+vt)/2,Ut=y.view.measure.heights,an=0;an<Ut.length-1&&!(Mt<Ut[an]);an++);var mn=an?Ut[an-1]:0,sn=Ut[an],xn={left:(ue=="right"?ce.right:ce.left)-y.rect.left,right:(ue=="left"?ce.left:ce.right)-y.rect.left,top:mn,bottom:sn};return!ce.left&&!ce.right&&(xn.bogus=!0),a.options.singleCursorHeightPerLine||(xn.rtop=Ve,xn.rbottom=vt),xn}function Ua(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!kt(a))return y;var x=screen.logicalXDPI/screen.deviceXDPI,b=screen.logicalYDPI/screen.deviceYDPI;return{left:y.left*x,right:y.right*x,top:y.top*b,bottom:y.bottom*b}}function Ko(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var y=0;y<a.rest.length;y++)a.measure.caches[y]={}}function Yo(a){a.display.externalMeasure=null,Ct(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)Ko(a.display.view[y])}function wo(a){Yo(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Xo(){return xe&&De?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ca(){return xe&&De?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Jo(a){var y=0;if(a.widgets)for(var x=0;x<a.widgets.length;++x)a.widgets[x].above&&(y+=gi(a.widgets[x]));return y}function To(a,y,x,b,E){if(!E){var ee=Jo(y);x.top+=ee,x.bottom+=ee}if(b=="line")return x;b||(b="local");var re=Kn(y);if(b=="local"?re+=Vr(a.display):re-=a.display.viewOffset,b=="page"||b=="window"){var se=a.display.lineSpace.getBoundingClientRect();re+=se.top+(b=="window"?0:Ca());var ue=se.left+(b=="window"?0:Xo());x.left+=ue,x.right+=ue}return x.top+=re,x.bottom+=re,x}function Sa(a,y,x){if(x=="div")return y;var b=y.left,E=y.top;if(x=="page")b-=Xo(),E-=Ca();else if(x=="local"||!x){var ee=a.display.sizer.getBoundingClientRect();b+=ee.left,E+=ee.top}var re=a.display.lineSpace.getBoundingClientRect();return{left:b-re.left,top:E-re.top}}function Po(a,y,x,b,E){return b||(b=Qe(a.doc,y.line)),To(a,b,ya(a,b,y.ch,E),x)}function Ci(a,y,x,b,E,ee){b=b||Qe(a.doc,y.line),E||(E=uo(a,b));function re(vt,Mt){var Ut=Hi(a,E,vt,Mt?"right":"left",ee);return Mt?Ut.left=Ut.right:Ut.right=Ut.left,To(a,b,Ut,x)}var se=tn(b,a.doc.direction),ue=y.ch,ce=y.sticky;if(ue>=b.text.length?(ue=b.text.length,ce="before"):ue<=0&&(ue=0,ce="after"),!se)return re(ce=="before"?ue-1:ue,ce=="before");function be(vt,Mt,Ut){var an=se[Mt],mn=an.level==1;return re(Ut?vt-1:vt,mn!=Ut)}var Ce=Gt(se,ue,ce),Ye=bt,Ve=be(ue,Ce,ce=="before");return Ye!=null&&(Ve.other=be(ue,Ye,ce!="before")),Ve}function lr(a,y){var x=0;y=Pe(a.doc,y),a.options.lineWrapping||(x=Ui(a.display)*y.ch);var b=Qe(a.doc,y.line),E=Kn(b)+Vr(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function qn(a,y,x,b,E){var ee=_e(a,y,x);return ee.xRel=E,b&&(ee.outside=b),ee}function ui(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return qn(b.first,0,null,-1,-1);var E=Le(b,x),ee=b.first+b.size-1;if(E>ee)return qn(b.first+b.size-1,Qe(b,ee).text.length,null,1,1);y<0&&(y=0);for(var re=Qe(b,E);;){var se=Vi(a,re,E,y,x),ue=Vt(re,se.ch+(se.xRel>0||se.outside>0?1:0));if(!ue)return se;var ce=ue.find(1);if(ce.line==E)return ce;re=Qe(b,E=ce.line)}}function hi(a,y,x,b){b-=Jo(y);var E=y.text.length,ee=mt(function(re){return Hi(a,x,re-1).bottom<=b},E,0);return E=mt(function(re){return Hi(a,x,re).top>b},ee,E),{begin:ee,end:E}}function Ur(a,y,x,b){x||(x=uo(a,y));var E=To(a,y,Hi(a,x,b),"line").top;return hi(a,y,x,E)}function $r(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Vi(a,y,x,b,E){E-=Kn(y);var ee=uo(a,y),re=Jo(y),se=0,ue=y.text.length,ce=!0,be=tn(y,a.doc.direction);if(be){var Ce=(a.options.lineWrapping?ro:Wi)(a,y,x,ee,be,b,E);ce=Ce.level!=1,se=ce?Ce.from:Ce.to-1,ue=ce?Ce.to:Ce.from-1}var Ye=null,Ve=null,vt=mt(function(On){var Ln=Hi(a,ee,On);return Ln.top+=re,Ln.bottom+=re,$r(Ln,b,E,!1)?(Ln.top<=E&&Ln.left<=b&&(Ye=On,Ve=Ln),!0):!1},se,ue),Mt,Ut,an=!1;if(Ve){var mn=b-Ve.left<Ve.right-b,sn=mn==ce;vt=Ye+(sn?0:1),Ut=sn?"after":"before",Mt=mn?Ve.left:Ve.right}else{!ce&&(vt==ue||vt==se)&&vt++,Ut=vt==0?"after":vt==y.text.length?"before":Hi(a,ee,vt-(ce?1:0)).bottom+re<=E==ce?"after":"before";var xn=Ci(a,_e(x,vt,Ut),"line",y,ee);Mt=xn.left,an=E<xn.top?-1:E>=xn.bottom?1:0}return vt=At(y.text,vt,1),qn(x,vt,Ut,an,b-Mt)}function Wi(a,y,x,b,E,ee,re){var se=mt(function(Ce){var Ye=E[Ce],Ve=Ye.level!=1;return $r(Ci(a,_e(x,Ve?Ye.to:Ye.from,Ve?"before":"after"),"line",y,b),ee,re,!0)},0,E.length-1),ue=E[se];if(se>0){var ce=ue.level!=1,be=Ci(a,_e(x,ce?ue.from:ue.to,ce?"after":"before"),"line",y,b);$r(be,ee,re,!0)&&be.top>re&&(ue=E[se-1])}return ue}function ro(a,y,x,b,E,ee,re){var se=hi(a,y,b,re),ue=se.begin,ce=se.end;/\s/.test(y.text.charAt(ce-1))&&ce--;for(var be=null,Ce=null,Ye=0;Ye<E.length;Ye++){var Ve=E[Ye];if(!(Ve.from>=ce||Ve.to<=ue)){var vt=Ve.level!=1,Mt=Hi(a,b,vt?Math.min(ce,Ve.to)-1:Math.max(ue,Ve.from)).right,Ut=Mt<ee?ee-Mt+1e9:Mt-ee;(!be||Ce>Ut)&&(be=Ve,Ce=Ut)}}return be||(be=E[E.length-1]),be.from<ue&&(be={from:ue,to:be.to,level:be.level}),be.to>ce&&(be={from:be.from,to:ce,level:be.level}),be}var Mi;function Bi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Mi==null){Mi=Te("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)Mi.appendChild(document.createTextNode("x")),Mi.appendChild(Te("br"));Mi.appendChild(document.createTextNode("x"))}We(a.measure,Mi);var x=Mi.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),Ct(a.measure),x||1}function Ui(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=Te("span","xxxxxxxxxx"),x=Te("pre",[y],"CodeMirror-line-like");We(a.measure,x);var b=y.getBoundingClientRect(),E=(b.right-b.left)/10;return E>2&&(a.cachedCharWidth=E),E||10}function co(a){for(var y=a.display,x={},b={},E=y.gutters.clientLeft,ee=y.gutters.firstChild,re=0;ee;ee=ee.nextSibling,++re){var se=a.display.gutterSpecs[re].className;x[se]=ee.offsetLeft+ee.clientLeft+E,b[se]=ee.clientWidth}return{fixedPos:Ka(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function Ka(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function ws(a){var y=Bi(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Ui(a.display)-3);return function(E){if($t(a.doc,E))return 0;var ee=0;if(E.widgets)for(var re=0;re<E.widgets.length;re++)E.widgets[re].height&&(ee+=E.widgets[re].height);return x?ee+(Math.ceil(E.text.length/b)||1)*y:ee+y}}function Ya(a){var y=a.doc,x=ws(a);y.iter(function(b){var E=x(b);E!=b.height&&An(b,E)})}function Co(a,y,x,b){var E=a.display;if(!x&&tr(y).getAttribute("cm-not-content")=="true")return null;var ee,re,se=E.lineSpace.getBoundingClientRect();try{ee=y.clientX-se.left,re=y.clientY-se.top}catch(Ce){return null}var ue=ui(a,ee,re),ce;if(b&&ue.xRel>0&&(ce=Qe(a.doc,ue.line).text).length==ue.ch){var be=pe(ce,ce.length,a.options.tabSize)-ce.length;ue=_e(ue.line,Math.max(0,Math.round((ee-Ji(a.display).left)/Ui(a.display))-be))}return ue}function So(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;b<x.length;b++)if(y-=x[b].size,y<0)return b}function Si(a,y,x,b){y==null&&(y=a.doc.first),x==null&&(x=a.doc.first+a.doc.size),b||(b=0);var E=a.display;if(b&&x<E.viewTo&&(E.updateLineNumbers==null||E.updateLineNumbers>y)&&(E.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=E.viewTo)or&&Tt(a.doc,y)<E.viewTo&&ho(a);else if(x<=E.viewFrom)or&&Xt(a.doc,x+b)>E.viewFrom?ho(a):(E.viewFrom+=b,E.viewTo+=b);else if(y<=E.viewFrom&&x>=E.viewTo)ho(a);else if(y<=E.viewFrom){var ee=ka(a,x,x+b,1);ee?(E.view=E.view.slice(ee.index),E.viewFrom=ee.lineN,E.viewTo+=b):ho(a)}else if(x>=E.viewTo){var re=ka(a,y,y,-1);re?(E.view=E.view.slice(0,re.index),E.viewTo=re.lineN):ho(a)}else{var se=ka(a,y,y,-1),ue=ka(a,x,x+b,1);se&&ue?(E.view=E.view.slice(0,se.index).concat(Xr(a,se.lineN,ue.lineN)).concat(E.view.slice(ue.index)),E.viewTo+=b):ho(a)}var ce=E.externalMeasured;ce&&(x<ce.lineN?ce.lineN+=b:y<ce.lineN+ce.size&&(E.externalMeasured=null))}function fo(a,y,x){a.curOp.viewChanged=!0;var b=a.display,E=a.display.externalMeasured;if(E&&y>=E.lineN&&y<E.lineN+E.size&&(b.externalMeasured=null),!(y<b.viewFrom||y>=b.viewTo)){var ee=b.view[So(a,y)];if(ee.node!=null){var re=ee.changes||(ee.changes=[]);qe(re,x)==-1&&re.push(x)}}}function ho(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function ka(a,y,x,b){var E=So(a,y),ee,re=a.display.view;if(!or||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var se=a.display.viewFrom,ue=0;ue<E;ue++)se+=re[ue].size;if(se!=y){if(b>0){if(E==re.length-1)return null;ee=se+re[E].size-y,E++}else ee=se-y;y+=ee,x+=ee}for(;Tt(a.doc,x)!=x;){if(E==(b<0?0:re.length-1))return null;x+=b*re[E-(b<0?1:0)].size,E+=b}return{index:E,lineN:x}}function Hl(a,y,x){var b=a.display,E=b.view;E.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=Xr(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=Xr(a,y,b.viewFrom).concat(b.view):b.viewFrom<y&&(b.view=b.view.slice(So(a,y))),b.viewFrom=y,b.viewTo<x?b.view=b.view.concat(Xr(a,b.viewTo,x)):b.viewTo>x&&(b.view=b.view.slice(0,So(a,x)))),b.viewTo=x}function Cs(a){for(var y=a.display.view,x=0,b=0;b<y.length;b++){var E=y[b];!E.hidden&&(!E.node||E.changes)&&++x}return x}function Qo(a){a.display.input.showSelection(a.display.input.prepareSelection())}function Ss(a,y){y===void 0&&(y=!0);for(var x=a.doc,b={},E=b.cursors=document.createDocumentFragment(),ee=b.selection=document.createDocumentFragment(),re=0;re<x.sel.ranges.length;re++)if(!(!y&&re==x.sel.primIndex)){var se=x.sel.ranges[re];if(!(se.from().line>=a.display.viewTo||se.to().line<a.display.viewFrom)){var ue=se.empty();(ue||a.options.showCursorWhenSelecting)&&ks(a,se.head,E),ue||Wl(a,se,ee)}}return b}function ks(a,y,x){var b=Ci(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),E=x.appendChild(Te("div","\xA0","CodeMirror-cursor"));if(E.style.left=b.left+"px",E.style.top=b.top+"px",E.style.height=Math.max(0,b.bottom-b.top)*a.options.cursorHeight+"px",b.other){var ee=x.appendChild(Te("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ee.style.display="",ee.style.left=b.other.left+"px",ee.style.top=b.other.top+"px",ee.style.height=(b.other.bottom-b.other.top)*.85+"px"}}function Ea(a,y){return a.top-y.top||a.left-y.left}function Wl(a,y,x){var b=a.display,E=a.doc,ee=document.createDocumentFragment(),re=Ji(a.display),se=re.left,ue=Math.max(b.sizerWidth,Qi(a)-b.sizer.offsetLeft)-re.right,ce=E.direction=="ltr";function be(sn,xn,On,Ln){xn<0&&(xn=0),xn=Math.round(xn),Ln=Math.round(Ln),ee.appendChild(Te("div",null,"CodeMirror-selected","position: absolute; left: "+sn+`px;
top: `+xn+"px; width: "+(On==null?ue-sn:On)+`px;
height: `+(Ln-xn)+"px"))}function Ce(sn,xn,On){var Ln=Qe(E,sn),er=Ln.text.length,Rr,ii;function Wr(Qr,Ai){return Po(a,_e(sn,Qr),"div",Ln,Ai)}function Pi(Qr,Ai,ci){var ei=Ur(a,Ln,null,Qr),qr=Ai=="ltr"==(ci=="after")?"left":"right",zr=ci=="after"?ei.begin:ei.end-(/\s/.test(Ln.text.charAt(ei.end-1))?2:1);return Wr(zr,qr)[qr]}var Ei=tn(Ln,E.direction);return ft(Ei,xn||0,On==null?er:On,function(Qr,Ai,ci,ei){var qr=ci=="ltr",zr=Wr(Qr,qr?"left":"right"),Di=Wr(Ai-1,qr?"right":"left"),Vo=xn==null&&Qr==0,bo=On==null&&Ai==er,vi=ei==0,$i=!Ei||ei==Ei.length-1;if(Di.top-zr.top<=3){var oi=(ce?Vo:bo)&&vi,bs=(ce?bo:Vo)&&$i,oo=oi?se:(qr?zr:Di).left,Lo=bs?ue:(qr?Di:zr).right;be(oo,zr.top,Lo-oo,zr.bottom)}else{var Mo,bi,Uo,xs;qr?(Mo=ce&&Vo&&vi?se:zr.left,bi=ce?ue:Pi(Qr,ci,"before"),Uo=ce?se:Pi(Ai,ci,"after"),xs=ce&&bo&&$i?ue:Di.right):(Mo=ce?Pi(Qr,ci,"before"):se,bi=!ce&&Vo&&vi?ue:zr.right,Uo=!ce&&bo&&$i?se:Di.left,xs=ce?Pi(Ai,ci,"after"):ue),be(Mo,zr.top,bi-Mo,zr.bottom),zr.bottom<Di.top&&be(se,zr.bottom,null,Di.top),be(Uo,Di.top,xs-Uo,Di.bottom)}(!Rr||Ea(zr,Rr)<0)&&(Rr=zr),Ea(Di,Rr)<0&&(Rr=Di),(!ii||Ea(zr,ii)<0)&&(ii=zr),Ea(Di,ii)<0&&(ii=Di)}),{start:Rr,end:ii}}var Ye=y.from(),Ve=y.to();if(Ye.line==Ve.line)Ce(Ye.line,Ye.ch,Ve.ch);else{var vt=Qe(E,Ye.line),Mt=Qe(E,Ve.line),Ut=on(vt)==on(Mt),an=Ce(Ye.line,Ye.ch,Ut?vt.text.length+1:null).end,mn=Ce(Ve.line,Ut?0:null,Ve.ch).start;Ut&&(an.top<mn.top-2?(be(an.right,an.top,null,an.bottom),be(se,mn.top,mn.left,mn.bottom)):be(an.right,an.top,mn.left-an.right,an.bottom)),an.bottom<mn.top&&be(se,an.bottom,null,mn.top)}x.appendChild(ee)}function Xa(a){if(a.state.focused){var y=a.display;clearInterval(y.blinker);var x=!0;y.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?y.blinker=setInterval(function(){a.hasFocus()||Fo(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Es(a){a.state.focused||(a.display.input.focus(),Ja(a))}function As(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Fo(a))},100)}function Ja(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(qt(a,"focus",a,y),a.state.focused=!0,Fe(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Oe&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Xa(a))}function Fo(a,y){a.state.delayingBlurEvent||(a.state.focused&&(qt(a,"blur",a,y),a.state.focused=!1,Ze(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Aa(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b<y.view.length;b++){var E=y.view[b],ee=a.options.lineWrapping,re=void 0,se=0;if(!E.hidden){if(me&&ge<8){var ue=E.node.offsetTop+E.node.offsetHeight;re=ue-x,x=ue}else{var ce=E.node.getBoundingClientRect();re=ce.bottom-ce.top,!ee&&E.text.firstChild&&(se=E.text.firstChild.getBoundingClientRect().right-ce.left-1)}var be=E.line.height-re;if((be>.005||be<-.005)&&(An(E.line,re),Ds(E.line),E.rest))for(var Ce=0;Ce<E.rest.length;Ce++)Ds(E.rest[Ce]);if(se>a.display.sizerWidth){var Ye=Math.ceil(se/Ui(a.display));Ye>a.display.maxLineLength&&(a.display.maxLineLength=Ye,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Ds(a){if(a.widgets)for(var y=0;y<a.widgets.length;++y){var x=a.widgets[y],b=x.node.parentNode;b&&(x.height=b.offsetHeight)}}function Da(a,y,x){var b=x&&x.top!=null?Math.max(0,x.top):a.scroller.scrollTop;b=Math.floor(b-Vr(a));var E=x&&x.bottom!=null?x.bottom:b+a.wrapper.clientHeight,ee=Le(y,b),re=Le(y,E);if(x&&x.ensure){var se=x.ensure.from.line,ue=x.ensure.to.line;se<ee?(ee=se,re=Le(y,Kn(Qe(y,se))+a.wrapper.clientHeight)):Math.min(ue,y.lastLine())>=re&&(ee=Le(y,Kn(Qe(y,ue))-a.wrapper.clientHeight),re=ue)}return{from:ee,to:Math.max(re,ee+1)}}function zl(a,y){if(!it(a,"scrollCursorIntoView")){var x=a.display,b=x.sizer.getBoundingClientRect(),E=null;if(y.top+b.top<0?E=!0:y.bottom+b.top>(window.innerHeight||document.documentElement.clientHeight)&&(E=!1),E!=null&&!st){var ee=Te("div","\u200B",null,`position: absolute;
top: `+(y.top-x.viewOffset-Vr(a.display))+`px;
height: `+(y.bottom-y.top+Li(a)+x.barHeight)+`px;
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(ee),ee.scrollIntoView(E),a.display.lineSpace.removeChild(ee)}}}function Zl(a,y,x,b){b==null&&(b=0);var E;!a.options.lineWrapping&&y==x&&(y=y.ch?_e(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?_e(y.line,y.ch+1,"before"):y);for(var ee=0;ee<5;ee++){var re=!1,se=Ci(a,y),ue=!x||x==y?se:Ci(a,x);E={left:Math.min(se.left,ue.left),top:Math.min(se.top,ue.top)-b,right:Math.max(se.left,ue.left),bottom:Math.max(se.bottom,ue.bottom)+b};var ce=Qa(a,E),be=a.doc.scrollTop,Ce=a.doc.scrollLeft;if(ce.scrollTop!=null&&($o(a,ce.scrollTop),Math.abs(a.doc.scrollTop-be)>1&&(re=!0)),ce.scrollLeft!=null&&(ko(a,ce.scrollLeft),Math.abs(a.doc.scrollLeft-Ce)>1&&(re=!0)),!re)break}return E}function jl(a,y){var x=Qa(a,y);x.scrollTop!=null&&$o(a,x.scrollTop),x.scrollLeft!=null&&ko(a,x.scrollLeft)}function Qa(a,y){var x=a.display,b=Bi(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,ee=no(a),re={};y.bottom-y.top>ee&&(y.bottom=y.top+ee);var se=a.doc.height+Ii(x),ue=y.top<b,ce=y.bottom>se-b;if(y.top<E)re.scrollTop=ue?0:y.top;else if(y.bottom>E+ee){var be=Math.min(y.top,(ce?se:y.bottom)-ee);be!=E&&(re.scrollTop=be)}var Ce=a.options.fixedGutter?0:x.gutters.offsetWidth,Ye=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-Ce,Ve=Qi(a)-x.gutters.offsetWidth,vt=y.right-y.left>Ve;return vt&&(y.right=y.left+Ve),y.left<10?re.scrollLeft=0:y.left<Ye?re.scrollLeft=Math.max(0,y.left+Ce-(vt?0:10)):y.right>Ve+Ye-3&&(re.scrollLeft=y.right+(vt?0:10)-Ve),re}function qa(a,y){y!=null&&(La(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Ro(a){La(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function qo(a,y,x){(y!=null||x!=null)&&La(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function Gl(a,y){La(a),a.curOp.scrollToPos=y}function La(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=lr(a,y.from),b=lr(a,y.to);Ls(a,x,b,y.margin)}}function Ls(a,y,x,b){var E=Qa(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});qo(a,E.scrollLeft,E.scrollTop)}function $o(a,y){Math.abs(a.doc.scrollTop-y)<2||(oe||es(a,{top:y}),Ms(a,y,!0),oe&&es(a),na(a,100))}function Ms(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function ko(a,y,x,b){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!b)&&(a.doc.scrollLeft=y,Rs(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function ea(a){var y=a.display,x=y.gutters.offsetWidth,b=Math.round(a.doc.height+Ii(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+Li(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Eo=function(a,y,x){this.cm=x;var b=this.vert=Te("div",[Te("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=Te("div",[Te("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,a(b),a(E),St(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),St(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,me&&ge<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Eo.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var E=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+E)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var ee=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+ee)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},Eo.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Eo.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Eo.prototype.zeroWidthHack=function(){var a=Ae&&!ve?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new de,this.disableVert=new de},Eo.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var E=a.getBoundingClientRect(),ee=x=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);ee!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},Eo.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var ta=function(){};ta.prototype.update=function(){return{bottom:0,right:0}},ta.prototype.setScrollLeft=function(){},ta.prototype.setScrollTop=function(){},ta.prototype.clear=function(){};function No(a,y){y||(y=ea(a));var x=a.display.barWidth,b=a.display.barHeight;Bs(a,y);for(var E=0;E<4&&x!=a.display.barWidth||b!=a.display.barHeight;E++)x!=a.display.barWidth&&a.options.lineWrapping&&Aa(a),Bs(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function Bs(a,y){var x=a.display,b=x.scrollbars.update(y);x.sizer.style.paddingRight=(x.barWidth=b.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=b.bottom)+"px",x.heightForcer.style.borderBottom=b.bottom+"px solid transparent",b.right&&b.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=b.bottom+"px",x.scrollbarFiller.style.width=b.right+"px"):x.scrollbarFiller.style.display="",b.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=b.bottom+"px",x.gutterFiller.style.width=y.gutterWidth+"px"):x.gutterFiller.style.display=""}var Ts={native:Eo,null:ta};function Ps(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Ze(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Ts[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),St(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,x){x=="horizontal"?ko(a,y):$o(a,y)},a),a.display.scrollbars.addClass&&Fe(a.display.wrapper,a.display.scrollbars.addClass)}var Vl=0;function Ao(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.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:++Vl},Xi(a.curOp)}function Do(a){var y=a.curOp;y&&ao(y,function(x){for(var b=0;b<x.ops.length;b++)x.ops[b].cm.curOp=null;Ul(x)})}function Ul(a){for(var y=a.ops,x=0;x<y.length;x++)Kl(y[x]);for(var b=0;b<y.length;b++)Yl(y[b]);for(var E=0;E<y.length;E++)Xl(y[E]);for(var ee=0;ee<y.length;ee++)Jl(y[ee]);for(var re=0;re<y.length;re++)Ql(y[re])}function Kl(a){var y=a.cm,x=y.display;$l(y),a.updateMaxLine&&Qn(y),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<x.viewFrom||a.scrollToPos.to.line>=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Ma(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Yl(a){a.updatedDisplay=a.mustUpdate&&$a(a.cm,a.update)}function Xl(a){var y=a.cm,x=y.display;a.updatedDisplay&&Aa(y),a.barMeasure=ea(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=ya(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+Li(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-Qi(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Jl(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&ko(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var x=a.focus&&a.focus==we();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,x),(a.updatedDisplay||a.startHeight!=y.doc.height)&&No(y,a.barMeasure),a.updatedDisplay&&ns(y,a.barMeasure),a.selectionChanged&&Xa(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),x&&Es(a.cm)}function Ql(a){var y=a.cm,x=y.display,b=y.doc;if(a.updatedDisplay&&Fs(y,a.update),x.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(x.wheelStartX=x.wheelStartY=null),a.scrollTop!=null&&Ms(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&ko(y,a.scrollLeft,!0,!0),a.scrollToPos){var E=Zl(y,Pe(b,a.scrollToPos.from),Pe(b,a.scrollToPos.to),a.scrollToPos.margin);zl(y,E)}var ee=a.maybeHiddenMarkers,re=a.maybeUnhiddenMarkers;if(ee)for(var se=0;se<ee.length;++se)ee[se].lines.length||qt(ee[se],"hide");if(re)for(var ue=0;ue<re.length;++ue)re[ue].lines.length&&qt(re[ue],"unhide");x.wrapper.offsetHeight&&(b.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&qt(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function Ti(a,y){if(a.curOp)return y();Ao(a);try{return y()}finally{Do(a)}}function ni(a,y){return function(){if(a.curOp)return y.apply(a,arguments);Ao(a);try{return y.apply(a,arguments)}finally{Do(a)}}}function yi(a){return function(){if(this.curOp)return a.apply(this,arguments);Ao(this);try{return a.apply(this,arguments)}finally{Do(this)}}}function ri(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);Ao(y);try{return a.apply(this,arguments)}finally{Do(y)}}}function na(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,_t(ql,a))}function ql(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,b=mr(a,y.highlightFrontier),E=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(ee){if(b.line>=a.display.viewFrom){var re=ee.styles,se=ee.text.length>a.options.maxHighlightLength?Dn(y.mode,b.state):null,ue=Pn(a,ee,b,!0);se&&(b.state=se),ee.styles=ue.styles;var ce=ee.styleClasses,be=ue.classes;be?ee.styleClasses=be:ce&&(ee.styleClasses=null);for(var Ce=!re||re.length!=ee.styles.length||ce!=be&&(!ce||!be||ce.bgClass!=be.bgClass||ce.textClass!=be.textClass),Ye=0;!Ce&&Ye<re.length;++Ye)Ce=re[Ye]!=ee.styles[Ye];Ce&&E.push(b.line),ee.stateAfter=b.save(),b.nextLine()}else ee.text.length<=a.options.maxHighlightLength&&Gn(a,ee.text,b),ee.stateAfter=b.line%5==0?b.save():null,b.nextLine();if(+new Date>x)return na(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),E.length&&Ti(a,function(){for(var ee=0;ee<E.length;ee++)fo(a,E[ee],"text")})}}var Ma=function(a,y,x){var b=a.display;this.viewport=y,this.visible=Da(b,a.doc,y),this.editorIsHidden=!b.wrapper.offsetWidth,this.wrapperHeight=b.wrapper.clientHeight,this.wrapperWidth=b.wrapper.clientWidth,this.oldDisplayWidth=Qi(a),this.force=x,this.dims=co(a),this.events=[]};Ma.prototype.signal=function(a,y){Ht(a,y)&&this.events.push(arguments)},Ma.prototype.finish=function(){for(var a=0;a<this.events.length;a++)qt.apply(null,this.events[a])};function $l(a){var y=a.display;!y.scrollbarsClipped&&y.scroller.offsetWidth&&(y.nativeBarWidth=y.scroller.offsetWidth-y.scroller.clientWidth,y.heightForcer.style.height=Li(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=Li(a)+"px",y.scrollbarsClipped=!0)}function eu(a){if(a.hasFocus())return null;var y=we();if(!y||!Ie(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&Ie(a.display.lineDiv,b.anchorNode)&&(x.anchorNode=b.anchorNode,x.anchorOffset=b.anchorOffset,x.focusNode=b.focusNode,x.focusOffset=b.focusOffset)}return x}function tu(a){if(!(!a||!a.activeElt||a.activeElt==we())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Ie(document.body,a.anchorNode)&&Ie(document.body,a.focusNode))){var y=window.getSelection(),x=document.createRange();x.setEnd(a.anchorNode,a.anchorOffset),x.collapse(!1),y.removeAllRanges(),y.addRange(x),y.extend(a.focusNode,a.focusOffset)}}function $a(a,y){var x=a.display,b=a.doc;if(y.editorIsHidden)return ho(a),!1;if(!y.force&&y.visible.from>=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&Cs(a)==0)return!1;Ns(a)&&(ho(a),y.dims=co(a));var E=b.first+b.size,ee=Math.max(y.visible.from-a.options.viewportMargin,b.first),re=Math.min(E,y.visible.to+a.options.viewportMargin);x.viewFrom<ee&&ee-x.viewFrom<20&&(ee=Math.max(b.first,x.viewFrom)),x.viewTo>re&&x.viewTo-re<20&&(re=Math.min(E,x.viewTo)),or&&(ee=Tt(a.doc,ee),re=Xt(a.doc,re));var se=ee!=x.viewFrom||re!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;Hl(a,ee,re),x.viewOffset=Kn(Qe(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var ue=Cs(a);if(!se&&ue==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var ce=eu(a);return ue>4&&(x.lineDiv.style.display="none"),nu(a,x.updateLineNumbers,y.dims),ue>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,tu(ce),Ct(x.cursorDiv),Ct(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,se&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,na(a,400)),x.updateLineNumbers=null,!0}function Fs(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==Qi(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Ii(a.display)-no(a),x.top)}),y.visible=Da(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Da(a.display,a.doc,x));if(!$a(a,y))break;Aa(a);var E=ea(a);Qo(a),No(a,E),ns(a,E),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function es(a,y){var x=new Ma(a,y);if($a(a,x)){Aa(a),Fs(a,x);var b=ea(a);Qo(a),No(a,b),ns(a,b),x.finish()}}function nu(a,y,x){var b=a.display,E=a.options.lineNumbers,ee=b.lineDiv,re=ee.firstChild;function se(vt){var Mt=vt.nextSibling;return Oe&&Ae&&a.display.currentWheelTarget==vt?vt.style.display="none":vt.parentNode.removeChild(vt),Mt}for(var ue=b.view,ce=b.viewFrom,be=0;be<ue.length;be++){var Ce=ue[be];if(!Ce.hidden)if(!Ce.node||Ce.node.parentNode!=ee){var Ye=Zn(a,Ce,ce,x);ee.insertBefore(Ye,re)}else{for(;re!=Ce.node;)re=se(re);var Ve=E&&y!=null&&y<=ce&&Ce.lineNumber;Ce.changes&&(qe(Ce.changes,"gutter")>-1&&(Ve=!1),so(a,Ce,ce,x)),Ve&&(Ct(Ce.lineNumber),Ce.lineNumber.appendChild(document.createTextNode(ht(a.options,ce)))),re=Ce.node.nextSibling}ce+=Ce.size}for(;re;)re=se(re)}function ts(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function ns(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+Li(a)+"px"}function Rs(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Ka(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,ee=b+"px",re=0;re<x.length;re++)if(!x[re].hidden){a.options.fixedGutter&&(x[re].gutter&&(x[re].gutter.style.left=ee),x[re].gutterBackground&&(x[re].gutterBackground.style.left=ee));var se=x[re].alignable;if(se)for(var ue=0;ue<se.length;ue++)se[ue].style.left=ee}a.options.fixedGutter&&(y.gutters.style.left=b+E+"px")}}function Ns(a){if(!a.options.lineNumbers)return!1;var y=a.doc,x=ht(a.options,y.first+y.size-1),b=a.display;if(x.length!=b.lineNumChars){var E=b.measure.appendChild(Te("div",[Te("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ee=E.firstChild.offsetWidth,re=E.offsetWidth-ee;return b.lineGutter.style.width="",b.lineNumInnerWidth=Math.max(ee,b.lineGutter.offsetWidth-re)+1,b.lineNumWidth=b.lineNumInnerWidth+re,b.lineNumChars=b.lineNumInnerWidth?x.length:-1,b.lineGutter.style.width=b.lineNumWidth+"px",ts(a.display),!0}return!1}function rs(a,y){for(var x=[],b=!1,E=0;E<a.length;E++){var ee=a[E],re=null;if(typeof ee!="string"&&(re=ee.style,ee=ee.className),ee=="CodeMirror-linenumbers")if(y)b=!0;else continue;x.push({className:ee,style:re})}return y&&!b&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function Os(a){var y=a.gutters,x=a.gutterSpecs;Ct(y),a.lineGutter=null;for(var b=0;b<x.length;++b){var E=x[b],ee=E.className,re=E.style,se=y.appendChild(Te("div",null,"CodeMirror-gutter "+ee));re&&(se.style.cssText=re),ee=="CodeMirror-linenumbers"&&(a.lineGutter=se,se.style.width=(a.lineNumWidth||1)+"px")}y.style.display=x.length?"":"none",ts(a)}function ra(a){Os(a.display),Si(a),Rs(a)}function ru(a,y,x,b){var E=this;this.input=x,E.scrollbarFiller=Te("div",null,"CodeMirror-scrollbar-filler"),E.scrollbarFiller.setAttribute("cm-not-content","true"),E.gutterFiller=Te("div",null,"CodeMirror-gutter-filler"),E.gutterFiller.setAttribute("cm-not-content","true"),E.lineDiv=$e("div",null,"CodeMirror-code"),E.selectionDiv=Te("div",null,null,"position: relative; z-index: 1"),E.cursorDiv=Te("div",null,"CodeMirror-cursors"),E.measure=Te("div",null,"CodeMirror-measure"),E.lineMeasure=Te("div",null,"CodeMirror-measure"),E.lineSpace=$e("div",[E.measure,E.lineMeasure,E.selectionDiv,E.cursorDiv,E.lineDiv],null,"position: relative; outline: none");var ee=$e("div",[E.lineSpace],"CodeMirror-lines");E.mover=Te("div",[ee],null,"position: relative"),E.sizer=Te("div",[E.mover],"CodeMirror-sizer"),E.sizerWidth=null,E.heightForcer=Te("div",null,null,"position: absolute; height: "+Lt+"px; width: 1px;"),E.gutters=Te("div",null,"CodeMirror-gutters"),E.lineGutter=null,E.scroller=Te("div",[E.sizer,E.heightForcer,E.gutters],"CodeMirror-scroll"),E.scroller.setAttribute("tabIndex","-1"),E.wrapper=Te("div",[E.scrollbarFiller,E.gutterFiller,E.scroller],"CodeMirror"),me&&ge<8&&(E.gutters.style.zIndex=-1,E.scroller.style.paddingRight=0),!Oe&&!(oe&&Be)&&(E.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(E.wrapper):a(E.wrapper)),E.viewFrom=E.viewTo=y.first,E.reportedViewFrom=E.reportedViewTo=y.first,E.view=[],E.renderedView=null,E.externalMeasured=null,E.viewOffset=0,E.lastWrapHeight=E.lastWrapWidth=0,E.updateLineNumbers=null,E.nativeBarWidth=E.barHeight=E.barWidth=0,E.scrollbarsClipped=!1,E.lineNumWidth=E.lineNumInnerWidth=E.lineNumChars=null,E.alignWidgets=!1,E.cachedCharWidth=E.cachedTextHeight=E.cachedPaddingH=null,E.maxLine=null,E.maxLineLength=0,E.maxLineChanged=!1,E.wheelDX=E.wheelDY=E.wheelStartX=E.wheelStartY=null,E.shift=!1,E.selForContextMenu=null,E.activeTouch=null,E.gutterSpecs=rs(b.gutters,b.lineNumbers),Os(E),x.init(E)}var Ba=0,Ri=null;me?Ri=-.53:oe?Ri=15:xe?Ri=-.7:et&&(Ri=-1/3);function _s(a){var y=a.wheelDeltaX,x=a.wheelDeltaY;return y==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(y=a.detail),x==null&&a.detail&&a.axis==a.VERTICAL_AXIS?x=a.detail:x==null&&(x=a.wheelDelta),{x:y,y:x}}function iu(a){var y=_s(a);return y.x*=Ri,y.y*=Ri,y}function Is(a,y){var x=_s(y),b=x.x,E=x.y,ee=a.display,re=ee.scroller,se=re.scrollWidth>re.clientWidth,ue=re.scrollHeight>re.clientHeight;if(b&&se||E&&ue){if(E&&Ae&&Oe){e:for(var ce=y.target,be=ee.view;ce!=re;ce=ce.parentNode)for(var Ce=0;Ce<be.length;Ce++)if(be[Ce].node==ce){a.display.currentWheelTarget=ce;break e}}if(b&&!oe&&!he&&Ri!=null){E&&ue&&$o(a,Math.max(0,re.scrollTop+E*Ri)),ko(a,Math.max(0,re.scrollLeft+b*Ri)),(!E||E&&ue)&&un(y),ee.wheelStartX=null;return}if(E&&Ri!=null){var Ye=E*Ri,Ve=a.doc.scrollTop,vt=Ve+ee.wrapper.clientHeight;Ye<0?Ve=Math.max(0,Ve+Ye-50):vt=Math.min(a.doc.height,vt+Ye+50),es(a,{top:Ve,bottom:vt})}Ba<20&&(ee.wheelStartX==null?(ee.wheelStartX=re.scrollLeft,ee.wheelStartY=re.scrollTop,ee.wheelDX=b,ee.wheelDY=E,setTimeout(function(){if(ee.wheelStartX!=null){var Mt=re.scrollLeft-ee.wheelStartX,Ut=re.scrollTop-ee.wheelStartY,an=Ut&&ee.wheelDY&&Ut/ee.wheelDY||Mt&&ee.wheelDX&&Mt/ee.wheelDX;ee.wheelStartX=ee.wheelStartY=null,an&&(Ri=(Ri*Ba+an)/(Ba+1),++Ba)}},200)):(ee.wheelDX+=b,ee.wheelDY+=E))}}var Ni=function(a,y){this.ranges=a,this.primIndex=y};Ni.prototype.primary=function(){return this.ranges[this.primIndex]},Ni.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var y=0;y<this.ranges.length;y++){var x=this.ranges[y],b=a.ranges[y];if(!Jt(x.anchor,b.anchor)||!Jt(x.head,b.head))return!1}return!0},Ni.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new Cr(ln(this.ranges[y].anchor),ln(this.ranges[y].head));return new Ni(a,this.primIndex)},Ni.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Ni.prototype.contains=function(a,y){y||(y=a);for(var x=0;x<this.ranges.length;x++){var b=this.ranges[x];if(pt(y,b.from())>=0&&pt(a,b.to())<=0)return x}return-1};var Cr=function(a,y){this.anchor=a,this.head=y};Cr.prototype.from=function(){return zt(this.anchor,this.head)},Cr.prototype.to=function(){return pn(this.anchor,this.head)},Cr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ki(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(Ye,Ve){return pt(Ye.from(),Ve.from())}),x=qe(y,E);for(var ee=1;ee<y.length;ee++){var re=y[ee],se=y[ee-1],ue=pt(se.to(),re.from());if(b&&!re.empty()?ue>0:ue>=0){var ce=zt(se.from(),re.from()),be=pn(se.to(),re.to()),Ce=se.empty()?re.from()==re.head:se.from()==se.head;ee<=x&&--x,y.splice(--ee,2,new Cr(Ce?be:ce,Ce?ce:be))}}return new Ni(y,x)}function po(a,y){return new Ni([new Cr(a,y||a)],0)}function vo(a){return a.text?_e(a.from.line+a.text.length-1,Re(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Hs(a,y){if(pt(a,y.from)<0)return a;if(pt(a,y.to)<=0)return vo(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=vo(y).ch-y.to.ch),_e(x,b)}function is(a,y){for(var x=[],b=0;b<a.sel.ranges.length;b++){var E=a.sel.ranges[b];x.push(new Cr(Hs(E.anchor,y),Hs(E.head,y)))}return Ki(a.cm,x,a.sel.primIndex)}function Ws(a,y,x){return a.line==y.line?_e(x.line,a.ch-y.ch+x.ch):_e(x.line+(a.line-y.line),a.ch)}function ou(a,y,x){for(var b=[],E=_e(a.first,0),ee=E,re=0;re<y.length;re++){var se=y[re],ue=Ws(se.from,E,ee),ce=Ws(vo(se),E,ee);if(E=se.to,ee=ce,x=="around"){var be=a.sel.ranges[re],Ce=pt(be.head,be.anchor)<0;b[re]=new Cr(Ce?ce:ue,Ce?ue:ce)}else b[re]=new Cr(ue,ue)}return new Ni(b,a.sel.primIndex)}function os(a){a.doc.mode=rn(a.options,a.doc.modeOption),ia(a)}function ia(a){a.doc.iter(function(y){y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,na(a,100),a.state.modeGen++,a.curOp&&Si(a)}function zs(a,y){return y.from.ch==0&&y.to.ch==0&&Re(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function as(a,y,x,b){function E(mn){return x?x[mn]:null}function ee(mn,sn,xn){Pr(mn,sn,xn,b),Ir(mn,"change",mn,y)}function re(mn,sn){for(var xn=[],On=mn;On<sn;++On)xn.push(new sr(ce[On],E(On),b));return xn}var se=y.from,ue=y.to,ce=y.text,be=Qe(a,se.line),Ce=Qe(a,ue.line),Ye=Re(ce),Ve=E(ce.length-1),vt=ue.line-se.line;if(y.full)a.insert(0,re(0,ce.length)),a.remove(ce.length,a.size-ce.length);else if(zs(a,y)){var Mt=re(0,ce.length-1);ee(Ce,Ce.text,Ve),vt&&a.remove(se.line,vt),Mt.length&&a.insert(se.line,Mt)}else if(be==Ce)if(ce.length==1)ee(be,be.text.slice(0,se.ch)+Ye+be.text.slice(ue.ch),Ve);else{var Ut=re(1,ce.length-1);Ut.push(new sr(Ye+be.text.slice(ue.ch),Ve,b)),ee(be,be.text.slice(0,se.ch)+ce[0],E(0)),a.insert(se.line+1,Ut)}else if(ce.length==1)ee(be,be.text.slice(0,se.ch)+ce[0]+Ce.text.slice(ue.ch),E(0)),a.remove(se.line+1,vt);else{ee(be,be.text.slice(0,se.ch)+ce[0],E(0)),ee(Ce,Ye+Ce.text.slice(ue.ch),Ve);var an=re(1,ce.length-1);vt>1&&a.remove(se.line+1,vt-1),a.insert(se.line+1,an)}Ir(a,"change",a,y)}function mo(a,y,x){function b(E,ee,re){if(E.linked)for(var se=0;se<E.linked.length;++se){var ue=E.linked[se];if(ue.doc!=ee){var ce=re&&ue.sharedHist;x&&!ce||(y(ue.doc,ce),b(ue.doc,E,ce))}}}b(a,null,!0)}function Zs(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Ya(a),os(a),js(a),a.options.lineWrapping||Qn(a),a.options.mode=y.modeOption,Si(a)}function js(a){(a.doc.direction=="rtl"?Fe:Ze)(a.display.lineDiv,"CodeMirror-rtl")}function au(a){Ti(a,function(){js(a),Si(a)})}function Ta(a){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=a||1}function ss(a,y){var x={from:ln(y.from),to:vo(y),text:Wt(a,y.from,y.to)};return Us(a,x,y.from.line,y.to.line+1),mo(a,function(b){return Us(b,x,y.from.line,y.to.line+1)},!0),x}function Gs(a){for(;a.length;){var y=Re(a);if(y.ranges)a.pop();else break}}function su(a,y){if(y)return Gs(a.done),Re(a.done);if(a.done.length&&!Re(a.done).ranges)return Re(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Re(a.done)}function Vs(a,y,x,b){var E=a.history;E.undone.length=0;var ee=+new Date,re,se;if((E.lastOp==b||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>ee-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(re=su(E,E.lastOp==b)))se=Re(re.changes),pt(y.from,y.to)==0&&pt(y.from,se.to)==0?se.to=vo(y):re.changes.push(ss(a,y));else{var ue=Re(E.done);for((!ue||!ue.ranges)&&Pa(a.sel,E.done),re={changes:[ss(a,y)],generation:E.generation},E.done.push(re);E.done.length>E.undoDepth;)E.done.shift(),E.done[0].ranges||E.done.shift()}E.done.push(x),E.generation=++E.maxGeneration,E.lastModTime=E.lastSelTime=ee,E.lastOp=E.lastSelOp=b,E.lastOrigin=E.lastSelOrigin=y.origin,se||qt(a,"historyAdded")}function lu(a,y,x,b){var E=y.charAt(0);return E=="*"||E=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function uu(a,y,x,b){var E=a.history,ee=b&&b.origin;x==E.lastSelOp||ee&&E.lastSelOrigin==ee&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==ee||lu(a,ee,Re(E.done),y))?E.done[E.done.length-1]=y:Pa(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=ee,E.lastSelOp=x,b&&b.clearRedo!==!1&&Gs(E.undone)}function Pa(a,y){var x=Re(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Us(a,y,x,b){var E=y["spans_"+a.id],ee=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(re){re.markedSpans&&((E||(E=y["spans_"+a.id]={}))[ee]=re.markedSpans),++ee})}function cu(a){if(!a)return null;for(var y,x=0;x<a.length;++x)a[x].marker.explicitlyCleared?y||(y=a.slice(0,x)):y&&y.push(a[x]);return y?y.length?y:null:a}function du(a,y){var x=y["spans_"+a.id];if(!x)return null;for(var b=[],E=0;E<y.text.length;++E)b.push(cu(x[E]));return b}function Ks(a,y){var x=du(a,y),b=Tr(a,y);if(!x)return b;if(!b)return x;for(var E=0;E<x.length;++E){var ee=x[E],re=b[E];if(ee&&re)e:for(var se=0;se<re.length;++se){for(var ue=re[se],ce=0;ce<ee.length;++ce)if(ee[ce].marker==ue.marker)continue e;ee.push(ue)}else re&&(x[E]=re)}return x}function Oo(a,y,x){for(var b=[],E=0;E<a.length;++E){var ee=a[E];if(ee.ranges){b.push(x?Ni.prototype.deepCopy.call(ee):ee);continue}var re=ee.changes,se=[];b.push({changes:se});for(var ue=0;ue<re.length;++ue){var ce=re[ue],be=void 0;if(se.push({from:ce.from,to:ce.to,text:ce.text}),y)for(var Ce in ce)(be=Ce.match(/^spans_(\d+)$/))&&qe(y,Number(be[1]))>-1&&(Re(se)[Ce]=ce[Ce],delete ce[Ce])}}return b}function ls(a,y,x,b){if(b){var E=a.anchor;if(x){var ee=pt(y,E)<0;ee!=pt(x,E)<0?(E=y,y=x):ee!=pt(y,x)<0&&(y=x)}return new Cr(E,y)}else return new Cr(x||y,y)}function Fa(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),pi(a,new Ni([ls(a.sel.primary(),y,x,E)],0),b)}function Ys(a,y,x){for(var b=[],E=a.cm&&(a.cm.display.shift||a.extend),ee=0;ee<a.sel.ranges.length;ee++)b[ee]=ls(a.sel.ranges[ee],y[ee],null,E);var re=Ki(a.cm,b,a.sel.primIndex);pi(a,re,x)}function us(a,y,x,b){var E=a.sel.ranges.slice(0);E[y]=x,pi(a,Ki(a.cm,E,a.sel.primIndex),b)}function Xs(a,y,x,b){pi(a,po(y,x),b)}function fu(a,y,x){var b={ranges:y.ranges,update:function(E){this.ranges=[];for(var ee=0;ee<E.length;ee++)this.ranges[ee]=new Cr(Pe(a,E[ee].anchor),Pe(a,E[ee].head))},origin:x&&x.origin};return qt(a,"beforeSelectionChange",a,b),a.cm&&qt(a.cm,"beforeSelectionChange",a.cm,b),b.ranges!=y.ranges?Ki(a.cm,b.ranges,b.ranges.length-1):y}function Js(a,y,x){var b=a.history.done,E=Re(b);E&&E.ranges?(b[b.length-1]=y,Ra(a,y,x)):pi(a,y,x)}function pi(a,y,x){Ra(a,y,x),uu(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function Ra(a,y,x){(Ht(a,"beforeSelectionChange")||a.cm&&Ht(a.cm,"beforeSelectionChange"))&&(y=fu(a,y,x));var b=x&&x.bias||(pt(y.primary().head,a.sel.primary().head)<0?-1:1);Qs(a,$s(a,y,b,!0)),!(x&&x.scroll===!1)&&a.cm&&Ro(a.cm)}function Qs(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,fn(a.cm)),Ir(a,"cursorActivity",a))}function qs(a){Qs(a,$s(a,a.sel,null,!1))}function $s(a,y,x,b){for(var E,ee=0;ee<y.ranges.length;ee++){var re=y.ranges[ee],se=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[ee],ue=Na(a,re.anchor,se&&se.anchor,x,b),ce=Na(a,re.head,se&&se.head,x,b);(E||ue!=re.anchor||ce!=re.head)&&(E||(E=y.ranges.slice(0,ee)),E[ee]=new Cr(ue,ce))}return E?Ki(a.cm,E,y.primIndex):y}function _o(a,y,x,b,E){var ee=Qe(a,y.line);if(ee.markedSpans)for(var re=0;re<ee.markedSpans.length;++re){var se=ee.markedSpans[re],ue=se.marker,ce="selectLeft"in ue?!ue.selectLeft:ue.inclusiveLeft,be="selectRight"in ue?!ue.selectRight:ue.inclusiveRight;if((se.from==null||(ce?se.from<=y.ch:se.from<y.ch))&&(se.to==null||(be?se.to>=y.ch:se.to>y.ch))){if(E&&(qt(ue,"beforeCursorEnter"),ue.explicitlyCleared))if(ee.markedSpans){--re;continue}else break;if(!ue.atomic)continue;if(x){var Ce=ue.find(b<0?1:-1),Ye=void 0;if((b<0?be:ce)&&(Ce=el(a,Ce,-b,Ce&&Ce.line==y.line?ee:null)),Ce&&Ce.line==y.line&&(Ye=pt(Ce,x))&&(b<0?Ye<0:Ye>0))return _o(a,Ce,y,b,E)}var Ve=ue.find(b<0?-1:1);return(b<0?ce:be)&&(Ve=el(a,Ve,b,Ve.line==y.line?ee:null)),Ve?_o(a,Ve,y,b,E):null}}return y}function Na(a,y,x,b,E){var ee=b||1,re=_o(a,y,x,ee,E)||!E&&_o(a,y,x,ee,!0)||_o(a,y,x,-ee,E)||!E&&_o(a,y,x,-ee,!0);return re||(a.cantEdit=!0,_e(a.first,0))}function el(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Pe(a,_e(y.line-1)):null:x>0&&y.ch==(b||Qe(a,y.line)).text.length?y.line<a.first+a.size-1?_e(y.line+1,0):null:new _e(y.line,y.ch+x)}function tl(a){a.setSelection(_e(a.firstLine(),0),_e(a.lastLine()),Ee)}function nl(a,y,x){var b={canceled:!1,from:y.from,to:y.to,text:y.text,origin:y.origin,cancel:function(){return b.canceled=!0}};return x&&(b.update=function(E,ee,re,se){E&&(b.from=Pe(a,E)),ee&&(b.to=Pe(a,ee)),re&&(b.text=re),se!==void 0&&(b.origin=se)}),qt(a,"beforeChange",a,b),a.cm&&qt(a.cm,"beforeChange",a.cm,b),b.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:b.from,to:b.to,text:b.text,origin:b.origin}}function Io(a,y,x){if(a.cm){if(!a.cm.curOp)return ni(a.cm,Io)(a,y,x);if(a.cm.state.suppressEdits)return}if(!((Ht(a,"beforeChange")||a.cm&&Ht(a.cm,"beforeChange"))&&(y=nl(a,y,!0),!y))){var b=br&&!x&&jr(a,y.from,y.to);if(b)for(var E=b.length-1;E>=0;--E)rl(a,{from:b[E].from,to:b[E].to,text:E?[""]:y.text,origin:y.origin});else rl(a,y)}}function rl(a,y){if(!(y.text.length==1&&y.text[0]==""&&pt(y.from,y.to)==0)){var x=is(a,y);Vs(a,y,x,a.cm?a.cm.curOp.id:NaN),oa(a,y,x,Tr(a,y));var b=[];mo(a,function(E,ee){!ee&&qe(b,E.history)==-1&&(sl(E.history,y),b.push(E.history)),oa(E,y,null,Tr(E,y))})}}function Oa(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,ee,re=a.sel,se=y=="undo"?E.done:E.undone,ue=y=="undo"?E.undone:E.done,ce=0;ce<se.length&&(ee=se[ce],!(x?ee.ranges&&!ee.equals(a.sel):!ee.ranges));ce++);if(ce!=se.length){for(E.lastOrigin=E.lastSelOrigin=null;;)if(ee=se.pop(),ee.ranges){if(Pa(ee,ue),x&&!ee.equals(a.sel)){pi(a,ee,{clearRedo:!1});return}re=ee}else if(b){se.push(ee);return}else break;var be=[];Pa(re,ue),ue.push({changes:be,generation:E.generation}),E.generation=ee.generation||++E.maxGeneration;for(var Ce=Ht(a,"beforeChange")||a.cm&&Ht(a.cm,"beforeChange"),Ye=function(Mt){var Ut=ee.changes[Mt];if(Ut.origin=y,Ce&&!nl(a,Ut,!1))return se.length=0,{};be.push(ss(a,Ut));var an=Mt?is(a,Ut):Re(se);oa(a,Ut,an,Ks(a,Ut)),!Mt&&a.cm&&a.cm.scrollIntoView({from:Ut.from,to:vo(Ut)});var mn=[];mo(a,function(sn,xn){!xn&&qe(mn,sn.history)==-1&&(sl(sn.history,Ut),mn.push(sn.history)),oa(sn,Ut,null,Ks(sn,Ut))})},Ve=ee.changes.length-1;Ve>=0;--Ve){var vt=Ye(Ve);if(vt)return vt.v}}}}function il(a,y){if(y!=0&&(a.first+=y,a.sel=new Ni(dt(a.sel.ranges,function(E){return new Cr(_e(E.anchor.line+y,E.anchor.ch),_e(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){Si(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;b<x.viewTo;b++)fo(a.cm,b,"gutter")}}function oa(a,y,x,b){if(a.cm&&!a.cm.curOp)return ni(a.cm,oa)(a,y,x,b);if(y.to.line<a.first){il(a,y.text.length-1-(y.to.line-y.from.line));return}if(!(y.from.line>a.lastLine())){if(y.from.line<a.first){var E=y.text.length-1-(a.first-y.from.line);il(a,E),y={from:_e(a.first,0),to:_e(y.to.line+E,y.to.ch),text:[Re(y.text)],origin:y.origin}}var ee=a.lastLine();y.to.line>ee&&(y={from:y.from,to:_e(ee,Qe(a,ee).text.length),text:[y.text[0]],origin:y.origin}),y.removed=Wt(a,y.from,y.to),x||(x=is(a,y)),a.cm?hu(a.cm,y,b):as(a,y,b),Ra(a,x,Ee),a.cantEdit&&Na(a,_e(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,E=a.display,ee=y.from,re=y.to,se=!1,ue=ee.line;a.options.lineWrapping||(ue=ke(on(Qe(b,ee.line))),b.iter(ue,re.line+1,function(Ve){if(Ve==E.maxLine)return se=!0,!0})),b.sel.contains(y.from,y.to)>-1&&fn(a),as(b,y,x,ws(a)),a.options.lineWrapping||(b.iter(ue,ee.line+y.text.length,function(Ve){var vt=Sr(Ve);vt>E.maxLineLength&&(E.maxLine=Ve,E.maxLineLength=vt,E.maxLineChanged=!0,se=!1)}),se&&(a.curOp.updateMaxLine=!0)),Dr(b,ee.line),na(a,400);var ce=y.text.length-(re.line-ee.line)-1;y.full?Si(a):ee.line==re.line&&y.text.length==1&&!zs(a.doc,y)?fo(a,ee.line,"text"):Si(a,ee.line,re.line+1,ce);var be=Ht(a,"changes"),Ce=Ht(a,"change");if(Ce||be){var Ye={from:ee,to:re,text:y.text,removed:y.removed,origin:y.origin};Ce&&Ir(a,"change",a,Ye),be&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Ye)}a.display.selForContextMenu=null}function Ho(a,y,x,b,E){var ee;b||(b=x),pt(b,x)<0&&(ee=[b,x],x=ee[0],b=ee[1]),typeof y=="string"&&(y=a.splitLines(y)),Io(a,{from:x,to:b,text:y,origin:E})}function ol(a,y,x,b){x<a.line?a.line+=b:y<a.line&&(a.line=y,a.ch=0)}function al(a,y,x,b){for(var E=0;E<a.length;++E){var ee=a[E],re=!0;if(ee.ranges){ee.copied||(ee=a[E]=ee.deepCopy(),ee.copied=!0);for(var se=0;se<ee.ranges.length;se++)ol(ee.ranges[se].anchor,y,x,b),ol(ee.ranges[se].head,y,x,b);continue}for(var ue=0;ue<ee.changes.length;++ue){var ce=ee.changes[ue];if(x<ce.from.line)ce.from=_e(ce.from.line+b,ce.from.ch),ce.to=_e(ce.to.line+b,ce.to.ch);else if(y<=ce.to.line){re=!1;break}}re||(a.splice(0,E+1),E=0)}}function sl(a,y){var x=y.from.line,b=y.to.line,E=y.text.length-(b-x)-1;al(a.done,x,b,E),al(a.undone,x,b,E)}function aa(a,y,x,b){var E=y,ee=y;return typeof y=="number"?ee=Qe(a,Qt(a,y)):E=ke(y),E==null?null:(b(ee,E)&&a.cm&&fo(a.cm,E,x),ee)}function sa(a){this.lines=a,this.parent=null;for(var y=0,x=0;x<a.length;++x)a[x].parent=this,y+=a[x].height;this.height=y}sa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var x=a,b=a+y;x<b;++x){var E=this.lines[x];this.height-=E.height,Gr(E),Ir(E,"delete")}this.lines.splice(a,y)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,y,x){this.height+=x,this.lines=this.lines.slice(0,a).concat(y).concat(this.lines.slice(a));for(var b=0;b<y.length;++b)y[b].parent=this},iterN:function(a,y,x){for(var b=a+y;a<b;++a)if(x(this.lines[a]))return!0}};function la(a){this.children=a;for(var y=0,x=0,b=0;b<a.length;++b){var E=a[b];y+=E.chunkSize(),x+=E.height,E.parent=this}this.size=y,this.height=x,this.parent=null}la.prototype={chunkSize:function(){return this.size},removeInner:function(a,y){this.size-=y;for(var x=0;x<this.children.length;++x){var b=this.children[x],E=b.chunkSize();if(a<E){var ee=Math.min(y,E-a),re=b.height;if(b.removeInner(a,ee),this.height-=re-b.height,E==ee&&(this.children.splice(x--,1),b.parent=null),(y-=ee)==0)break;a=0}else a-=E}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof sa))){var se=[];this.collapse(se),this.children=[new sa(se)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y<this.children.length;++y)this.children[y].collapse(a)},insertInner:function(a,y,x){this.size+=y.length,this.height+=x;for(var b=0;b<this.children.length;++b){var E=this.children[b],ee=E.chunkSize();if(a<=ee){if(E.insertInner(a,y,x),E.lines&&E.lines.length>50){for(var re=E.lines.length%25+25,se=re;se<E.lines.length;){var ue=new sa(E.lines.slice(se,se+=25));E.height-=ue.height,this.children.splice(++b,0,ue),ue.parent=this}E.lines=E.lines.slice(0,re),this.maybeSpill()}break}a-=ee}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),x=new la(y);if(a.parent){a.size-=x.size,a.height-=x.height;var E=qe(a.parent.children,a);a.parent.children.splice(E+1,0,x)}else{var b=new la(a.children);b.parent=a,a.children=[b,x],a=b}x.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;b<this.children.length;++b){var E=this.children[b],ee=E.chunkSize();if(a<ee){var re=Math.min(y,ee-a);if(E.iterN(a,re,x))return!0;if((y-=re)==0)break;a=0}else a-=ee}}};var ua=function(a,y,x){if(x)for(var b in x)x.hasOwnProperty(b)&&(this[b]=x[b]);this.doc=a,this.node=y};ua.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,x=this.line,b=ke(x);if(!(b==null||!y)){for(var E=0;E<y.length;++E)y[E]==this&&y.splice(E--,1);y.length||(x.widgets=null);var ee=gi(this);An(x,Math.max(0,x.height-ee)),a&&(Ti(a,function(){ll(a,x,-ee),fo(a,b,"widget")}),Ir(a,"lineWidgetCleared",a,this,b))}},ua.prototype.changed=function(){var a=this,y=this.height,x=this.doc.cm,b=this.line;this.height=null;var E=gi(this)-y;E&&($t(this.doc,b)||An(b,b.height+E),x&&Ti(x,function(){x.curOp.forceUpdate=!0,ll(x,b,E),Ir(x,"lineWidgetChanged",x,a,ke(b))}))},Kt(ua);function ll(a,y,x){Kn(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&qa(a,x)}function pu(a,y,x,b){var E=new ua(a,x,b),ee=a.cm;return ee&&E.noHScroll&&(ee.display.alignWidgets=!0),aa(a,y,"widget",function(re){var se=re.widgets||(re.widgets=[]);if(E.insertAt==null?se.push(E):se.splice(Math.min(se.length-1,Math.max(0,E.insertAt)),0,E),E.line=re,ee&&!$t(a,re)){var ue=Kn(re)<a.scrollTop;An(re,re.height+gi(E)),ue&&qa(ee,E.height),ee.curOp.forceUpdate=!0}return!0}),ee&&Ir(ee,"lineWidgetAdded",ee,E,typeof y=="number"?y:ke(y)),E}var ul=0,go=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++ul};go.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&Ao(a),Ht(this,"clear")){var x=this.find();x&&Ir(this,"clear",x.from,x.to)}for(var b=null,E=null,ee=0;ee<this.lines.length;++ee){var re=this.lines[ee],se=xr(re.markedSpans,this);a&&!this.collapsed?fo(a,ke(re),"text"):a&&(se.to!=null&&(E=ke(re)),se.from!=null&&(b=ke(re))),re.markedSpans=kr(re.markedSpans,se),se.from==null&&this.collapsed&&!$t(this.doc,re)&&a&&An(re,Bi(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var ue=0;ue<this.lines.length;++ue){var ce=on(this.lines[ue]),be=Sr(ce);be>a.display.maxLineLength&&(a.display.maxLine=ce,a.display.maxLineLength=be,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&Si(a,b,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&qs(a.doc)),a&&Ir(a,"markerCleared",a,this,b,E),y&&Do(a),this.parent&&this.parent.clear()}},go.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,E=0;E<this.lines.length;++E){var ee=this.lines[E],re=xr(ee.markedSpans,this);if(re.from!=null&&(x=_e(y?ee:ke(ee),re.from),a==-1))return x;if(re.to!=null&&(b=_e(y?ee:ke(ee),re.to),a==1))return b}return x&&{from:x,to:b}},go.prototype.changed=function(){var a=this,y=this.find(-1,!0),x=this,b=this.doc.cm;!y||!b||Ti(b,function(){var E=y.line,ee=ke(y.line),re=qi(b,ee);if(re&&(Ko(re),b.curOp.selectionChanged=b.curOp.forceUpdate=!0),b.curOp.updateMaxLine=!0,!$t(x.doc,E)&&x.height!=null){var se=x.height;x.height=null;var ue=gi(x)-se;ue&&An(E,E.height+ue)}Ir(b,"markerChanged",b,a)})},go.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||qe(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},go.prototype.detachLine=function(a){if(this.lines.splice(qe(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Kt(go);function Wo(a,y,x,b,E){if(b&&b.shared)return vu(a,y,x,b,E);if(a.cm&&!a.cm.curOp)return ni(a.cm,Wo)(a,y,x,b,E);var ee=new go(a,E),re=pt(y,x);if(b&&wt(b,ee,!1),re>0||re==0&&ee.clearWhenEmpty!==!1)return ee;if(ee.replacedWith&&(ee.collapsed=!0,ee.widgetNode=$e("span",[ee.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||ee.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(ee.widgetNode.insertLeft=!0)),ee.collapsed){if(bn(a,y.line,y,x,ee)||y.line!=x.line&&bn(a,x.line,y,x,ee))throw new Error("Inserting collapsed marker partially overlapping an existing one");ar()}ee.addToHistory&&Vs(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var se=y.line,ue=a.cm,ce;if(a.iter(se,x.line+1,function(Ce){ue&&ee.collapsed&&!ue.options.lineWrapping&&on(Ce)==ue.display.maxLine&&(ce=!0),ee.collapsed&&se!=y.line&&An(Ce,0),pr(Ce,new hr(ee,se==y.line?y.ch:null,se==x.line?x.ch:null)),++se}),ee.collapsed&&a.iter(y.line,x.line+1,function(Ce){$t(a,Ce)&&An(Ce,0)}),ee.clearOnEnter&&St(ee,"beforeCursorEnter",function(){return ee.clear()}),ee.readOnly&&(Br(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ee.collapsed&&(ee.id=++ul,ee.atomic=!0),ue){if(ce&&(ue.curOp.updateMaxLine=!0),ee.collapsed)Si(ue,y.line,x.line+1);else if(ee.className||ee.startStyle||ee.endStyle||ee.css||ee.attributes||ee.title)for(var be=y.line;be<=x.line;be++)fo(ue,be,"text");ee.atomic&&qs(ue.doc),Ir(ue,"markerAdded",ue,ee)}return ee}var ca=function(a,y){this.markers=a,this.primary=y;for(var x=0;x<a.length;++x)a[x].parent=this};ca.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Ir(this,"clear")}},ca.prototype.find=function(a,y){return this.primary.find(a,y)},Kt(ca);function vu(a,y,x,b,E){b=wt(b),b.shared=!1;var ee=[Wo(a,y,x,b,E)],re=ee[0],se=b.widgetNode;return mo(a,function(ue){se&&(b.widgetNode=se.cloneNode(!0)),ee.push(Wo(ue,Pe(ue,y),Pe(ue,x),b,E));for(var ce=0;ce<ue.linked.length;++ce)if(ue.linked[ce].isParent)return;re=Re(ee)}),new ca(ee,re)}function cl(a){return a.findMarks(_e(a.first,0),a.clipPos(_e(a.lastLine())),function(y){return y.parent})}function mu(a,y){for(var x=0;x<y.length;x++){var b=y[x],E=b.find(),ee=a.clipPos(E.from),re=a.clipPos(E.to);if(pt(ee,re)){var se=Wo(a,ee,re,b.primary,b.primary.type);b.markers.push(se),se.parent=b}}}function gu(a){for(var y=function(b){var E=a[b],ee=[E.primary.doc];mo(E.primary.doc,function(ue){return ee.push(ue)});for(var re=0;re<E.markers.length;re++){var se=E.markers[re];qe(ee,se.doc)==-1&&(se.parent=null,E.markers.splice(re--,1))}},x=0;x<a.length;x++)y(x)}var yu=0,ki=function(a,y,x,b,E){if(!(this instanceof ki))return new ki(a,y,x,b,E);x==null&&(x=0),la.call(this,[new sa([new sr("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var ee=_e(x,0);this.sel=po(ee),this.history=new Ta(null),this.id=++yu,this.modeOption=y,this.lineSep=b,this.direction=E=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),as(this,{from:ee,to:ee,text:a}),pi(this,po(ee),Ee)};ki.prototype=te(la.prototype,{constructor:ki,iter:function(a,y,x){x?this.iterN(a-this.first,y-a,x):this.iterN(this.first,this.first+this.size,a)},insert:function(a,y){for(var x=0,b=0;b<y.length;++b)x+=y[b].height;this.insertInner(a-this.first,y,x)},remove:function(a,y){this.removeInner(a-this.first,y)},getValue:function(a){var y=gn(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:ri(function(a){var y=_e(this.first,0),x=this.first+this.size-1;Io(this,{from:y,to:_e(x,Qe(this,x).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&qo(this.cm,0,0),pi(this,po(y),Ee)}),replaceRange:function(a,y,x,b){y=Pe(this,y),x=x?Pe(this,x):y,Ho(this,a,y,x,b)},getRange:function(a,y,x){var b=Wt(this,Pe(this,a),Pe(this,y));return x===!1?b:b.join(x||this.lineSeparator())},getLine:function(a){var y=this.getLineHandle(a);return y&&y.text},getLineHandle:function(a){if(Pt(this,a))return Qe(this,a)},getLineNumber:function(a){return ke(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Qe(this,a)),on(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Pe(this,a)},getCursor:function(a){var y=this.sel.primary(),x;return a==null||a=="head"?x=y.head:a=="anchor"?x=y.anchor:a=="end"||a=="to"||a===!1?x=y.to():x=y.from(),x},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ri(function(a,y,x){Xs(this,Pe(this,typeof a=="number"?_e(a,y||0):a),null,x)}),setSelection:ri(function(a,y,x){Xs(this,Pe(this,a),Pe(this,y||a),x)}),extendSelection:ri(function(a,y,x){Fa(this,Pe(this,a),y&&Pe(this,y),x)}),extendSelections:ri(function(a,y){Ys(this,en(this,a),y)}),extendSelectionsBy:ri(function(a,y){var x=dt(this.sel.ranges,a);Ys(this,en(this,x),y)}),setSelections:ri(function(a,y,x){if(a.length){for(var b=[],E=0;E<a.length;E++)b[E]=new Cr(Pe(this,a[E].anchor),Pe(this,a[E].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),pi(this,Ki(this.cm,b,y),x)}}),addSelection:ri(function(a,y,x){var b=this.sel.ranges.slice(0);b.push(new Cr(Pe(this,a),Pe(this,y||a))),pi(this,Ki(this.cm,b,b.length-1),x)}),getSelection:function(a){for(var y=this.sel.ranges,x,b=0;b<y.length;b++){var E=Wt(this,y[b].from(),y[b].to());x=x?x.concat(E):E}return a===!1?x:x.join(a||this.lineSeparator())},getSelections:function(a){for(var y=[],x=this.sel.ranges,b=0;b<x.length;b++){var E=Wt(this,x[b].from(),x[b].to());a!==!1&&(E=E.join(a||this.lineSeparator())),y[b]=E}return y},replaceSelection:function(a,y,x){for(var b=[],E=0;E<this.sel.ranges.length;E++)b[E]=a;this.replaceSelections(b,y,x||"+input")},replaceSelections:ri(function(a,y,x){for(var b=[],E=this.sel,ee=0;ee<E.ranges.length;ee++){var re=E.ranges[ee];b[ee]={from:re.from(),to:re.to(),text:this.splitLines(a[ee]),origin:x}}for(var se=y&&y!="end"&&ou(this,b,y),ue=b.length-1;ue>=0;ue--)Io(this,b[ue]);se?Js(this,se):this.cm&&Ro(this.cm)}),undo:ri(function(){Oa(this,"undo")}),redo:ri(function(){Oa(this,"redo")}),undoSelection:ri(function(){Oa(this,"undo",!0)}),redoSelection:ri(function(){Oa(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b<a.done.length;b++)a.done[b].ranges||++y;for(var E=0;E<a.undone.length;E++)a.undone[E].ranges||++x;return{undo:y,redo:x}},clearHistory:function(){var a=this;this.history=new Ta(this.history.maxGeneration),mo(this,function(y){return y.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:Oo(this.history.done),undone:Oo(this.history.undone)}},setHistory:function(a){var y=this.history=new Ta(this.history.maxGeneration);y.done=Oo(a.done.slice(0),null,!0),y.undone=Oo(a.undone.slice(0),null,!0)},setGutterMarker:ri(function(a,y,x){return aa(this,a,"gutter",function(b){var E=b.gutterMarkers||(b.gutterMarkers={});return E[y]=x,!x&&ne(E)&&(b.gutterMarkers=null),!0})}),clearGutter:ri(function(a){var y=this;this.iter(function(x){x.gutterMarkers&&x.gutterMarkers[a]&&aa(y,x,"gutter",function(){return x.gutterMarkers[a]=null,ne(x.gutterMarkers)&&(x.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!Pt(this,a)||(y=a,a=Qe(this,a),!a))return null}else if(y=ke(a),y==null)return null;return{line:y,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:ri(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var E=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!b[E])b[E]=x;else{if(Ke(x).test(b[E]))return!1;b[E]+=" "+x}return!0})}),removeLineClass:ri(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var E=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",ee=b[E];if(ee)if(x==null)b[E]=null;else{var re=ee.match(Ke(x));if(!re)return!1;var se=re.index+re[0].length;b[E]=ee.slice(0,re.index)+(!re.index||se==ee.length?"":" ")+ee.slice(se)||null}else return!1;return!0})}),addLineWidget:ri(function(a,y,x){return pu(this,a,y,x)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,x){return Wo(this,Pe(this,a),Pe(this,y),x,x&&x.type||"range")},setBookmark:function(a,y){var x={replacedWith:y&&(y.nodeType==null?y.widget:y),insertLeft:y&&y.insertLeft,clearWhenEmpty:!1,shared:y&&y.shared,handleMouseEvents:y&&y.handleMouseEvents};return a=Pe(this,a),Wo(this,a,a,x,"bookmark")},findMarksAt:function(a){a=Pe(this,a);var y=[],x=Qe(this,a.line).markedSpans;if(x)for(var b=0;b<x.length;++b){var E=x[b];(E.from==null||E.from<=a.ch)&&(E.to==null||E.to>=a.ch)&&y.push(E.marker.parent||E.marker)}return y},findMarks:function(a,y,x){a=Pe(this,a),y=Pe(this,y);var b=[],E=a.line;return this.iter(a.line,y.line+1,function(ee){var re=ee.markedSpans;if(re)for(var se=0;se<re.length;se++){var ue=re[se];!(ue.to!=null&&E==a.line&&a.ch>=ue.to||ue.from==null&&E!=a.line||ue.from!=null&&E==y.line&&ue.from>=y.ch)&&(!x||x(ue.marker))&&b.push(ue.marker.parent||ue.marker)}++E}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;b<x.length;++b)x[b].from!=null&&a.push(x[b].marker)}),a},posFromIndex:function(a){var y,x=this.first,b=this.lineSeparator().length;return this.iter(function(E){var ee=E.text.length+b;if(ee>a)return y=a,!0;a-=ee,++x}),Pe(this,_e(x,y))},indexFromPos:function(a){a=Pe(this,a);var y=a.ch;if(a.line<this.first||a.ch<0)return 0;var x=this.lineSeparator().length;return this.iter(this.first,a.line,function(b){y+=b.text.length+x}),y},copy:function(a){var y=new ki(gn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return y.scrollTop=this.scrollTop,y.scrollLeft=this.scrollLeft,y.sel=this.sel,y.extend=!1,a&&(y.history.undoDepth=this.history.undoDepth,y.setHistory(this.getHistory())),y},linkedDoc:function(a){a||(a={});var y=this.first,x=this.first+this.size;a.from!=null&&a.from>y&&(y=a.from),a.to!=null&&a.to<x&&(x=a.to);var b=new ki(gn(this,y,x),a.mode||this.modeOption,y,this.lineSep,this.direction);return a.sharedHist&&(b.history=this.history),(this.linked||(this.linked=[])).push({doc:b,sharedHist:a.sharedHist}),b.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],mu(b,cl(this)),b},unlinkDoc:function(a){if(a instanceof Hr&&(a=a.doc),this.linked)for(var y=0;y<this.linked.length;++y){var x=this.linked[y];if(x.doc==a){this.linked.splice(y,1),a.unlinkDoc(this),gu(cl(this));break}}if(a.history==this.history){var b=[a.id];mo(a,function(E){return b.push(E.id)},!0),a.history=new Ta(null),a.history.done=Oo(this.history.done,b),a.history.undone=Oo(this.history.undone,b)}},iterLinkedDocs:function(a){mo(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):jn(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ri(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(y){return y.order=null}),this.cm&&au(this.cm))})}),ki.prototype.eachLine=ki.prototype.iter;var dl=0;function bu(a){var y=this;if(fl(y),!(it(y,a)||li(y.display,a))){un(a),me&&(dl=+new Date);var x=Co(y,a,!0),b=a.dataTransfer.files;if(!(!x||y.isReadOnly()))if(b&&b.length&&window.FileReader&&window.File)for(var E=b.length,ee=Array(E),re=0,se=function(){++re==E&&ni(y,function(){x=Pe(y.doc,x);var Ve={from:x,to:x,text:y.doc.splitLines(ee.filter(function(vt){return vt!=null}).join(y.doc.lineSeparator())),origin:"paste"};Io(y.doc,Ve),Js(y.doc,po(Pe(y.doc,x),Pe(y.doc,vo(Ve))))})()},ue=function(Ve,vt){if(y.options.allowDropFileTypes&&qe(y.options.allowDropFileTypes,Ve.type)==-1){se();return}var Mt=new FileReader;Mt.onerror=function(){return se()},Mt.onload=function(){var Ut=Mt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ut)){se();return}ee[vt]=Ut,se()},Mt.readAsText(Ve)},ce=0;ce<b.length;ce++)ue(b[ce],ce);else{if(y.state.draggingText&&y.doc.sel.contains(x)>-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var be=a.dataTransfer.getData("Text");if(be){var Ce;if(y.state.draggingText&&!y.state.draggingText.copy&&(Ce=y.listSelections()),Ra(y.doc,po(x,x)),Ce)for(var Ye=0;Ye<Ce.length;++Ye)Ho(y.doc,"",Ce[Ye].anchor,Ce[Ye].head,"drag");y.replaceSelection(be,"around","paste"),y.display.input.focus()}}catch(Ve){}}}}function xu(a,y){if(me&&(!a.state.draggingText||+new Date-dl<100)){kn(y);return}if(!(it(a,y)||li(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!et)){var x=Te("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",he&&(x.width=x.height=1,a.display.wrapper.appendChild(x),x._top=x.offsetTop),y.dataTransfer.setDragImage(x,0,0),he&&x.parentNode.removeChild(x)}}function wu(a,y){var x=Co(a,y);if(x){var b=document.createDocumentFragment();ks(a,x,b),a.display.dragCursor||(a.display.dragCursor=Te("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),We(a.display.dragCursor,b)}}function fl(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function hl(a){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),x=[],b=0;b<y.length;b++){var E=y[b].CodeMirror;E&&x.push(E)}x.length&&x[0].operation(function(){for(var ee=0;ee<x.length;ee++)a(x[ee])})}}var pl=!1;function Cu(){pl||(Su(),pl=!0)}function Su(){var a;St(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,hl(ku)},100))}),St(window,"blur",function(){return hl(Fo)})}function ku(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var yo={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"},da=0;da<10;da++)yo[da+48]=yo[da+96]=String(da);for(var _a=65;_a<=90;_a++)yo[_a]=String.fromCharCode(_a);for(var fa=1;fa<=12;fa++)yo[fa+111]=yo[fa+63235]="F"+fa;var io={};io.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"},io.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"},io.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"},io.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"]},io.default=Ae?io.macDefault:io.pcDefault;function Eu(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,b,E,ee,re=0;re<y.length-1;re++){var se=y[re];if(/^(cmd|meta|m)$/i.test(se))ee=!0;else if(/^a(lt)?$/i.test(se))x=!0;else if(/^(c|ctrl|control)$/i.test(se))b=!0;else if(/^s(hift)?$/i.test(se))E=!0;else throw new Error("Unrecognized modifier name: "+se)}return x&&(a="Alt-"+a),b&&(a="Ctrl-"+a),ee&&(a="Cmd-"+a),E&&(a="Shift-"+a),a}function Au(a){var y={};for(var x in a)if(a.hasOwnProperty(x)){var b=a[x];if(/^(name|fallthrough|(de|at)tach)$/.test(x))continue;if(b=="..."){delete a[x];continue}for(var E=dt(x.split(" "),Eu),ee=0;ee<E.length;ee++){var re=void 0,se=void 0;ee==E.length-1?(se=E.join(" "),re=b):(se=E.slice(0,ee+1).join(" "),re="...");var ue=y[se];if(!ue)y[se]=re;else if(ue!=re)throw new Error("Inconsistent bindings for "+se)}delete a[x]}for(var ce in y)a[ce]=y[ce];return a}function zo(a,y,x,b){y=Ia(y);var E=y.call?y.call(a,b):y[a];if(E===!1)return"nothing";if(E==="...")return"multi";if(E!=null&&x(E))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return zo(a,y.fallthrough,x,b);for(var ee=0;ee<y.fallthrough.length;ee++){var re=zo(a,y.fallthrough[ee],x,b);if(re)return re}}}function vl(a){var y=typeof a=="string"?a:yo[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function ml(a,y,x){var b=a;return y.altKey&&b!="Alt"&&(a="Alt-"+a),(ze?y.metaKey:y.ctrlKey)&&b!="Ctrl"&&(a="Ctrl-"+a),(ze?y.ctrlKey:y.metaKey)&&b!="Mod"&&(a="Cmd-"+a),!x&&y.shiftKey&&b!="Shift"&&(a="Shift-"+a),a}function gl(a,y){if(he&&a.keyCode==34&&a.char)return!1;var x=yo[a.keyCode];return x==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(x=a.code),ml(x,a,y))}function Ia(a){return typeof a=="string"?io[a]:a}function Zo(a,y){for(var x=a.doc.sel.ranges,b=[],E=0;E<x.length;E++){for(var ee=y(x[E]);b.length&&pt(ee.from,Re(b).to)<=0;){var re=b.pop();if(pt(re.from,ee.from)<0){ee.from=re.from;break}}b.push(ee)}Ti(a,function(){for(var se=b.length-1;se>=0;se--)Ho(a.doc,"",b[se].from,b[se].to,"+delete");Ro(a)})}function cs(a,y,x){var b=At(a.text,y+x,x);return b<0||b>a.text.length?null:b}function ds(a,y,x){var b=cs(a,y.ch,x);return b==null?null:new _e(y.line,b,x<0?"after":"before")}function fs(a,y,x,b,E){if(a){y.doc.direction=="rtl"&&(E=-E);var ee=tn(x,y.doc.direction);if(ee){var re=E<0?Re(ee):ee[0],se=E<0==(re.level==1),ue=se?"after":"before",ce;if(re.level>0||y.doc.direction=="rtl"){var be=uo(y,x);ce=E<0?x.text.length-1:0;var Ce=Hi(y,be,ce).top;ce=mt(function(Ye){return Hi(y,be,Ye).top==Ce},E<0==(re.level==1)?re.from:re.to-1,ce),ue=="before"&&(ce=cs(x,ce,1))}else ce=E<0?re.to:re.from;return new _e(b,ce,ue)}}return new _e(b,E<0?x.text.length:0,E<0?"before":"after")}function Du(a,y,x,b){var E=tn(y,a.doc.direction);if(!E)return ds(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var ee=Gt(E,x.ch,x.sticky),re=E[ee];if(a.doc.direction=="ltr"&&re.level%2==0&&(b>0?re.to>x.ch:re.from<x.ch))return ds(y,x,b);var se=function(an,mn){return cs(y,an instanceof _e?an.ch:an,mn)},ue,ce=function(an){return a.options.lineWrapping?(ue=ue||uo(a,y),Ur(a,y,ue,an)):{begin:0,end:y.text.length}},be=ce(x.sticky=="before"?se(x,-1):x.ch);if(a.doc.direction=="rtl"||re.level==1){var Ce=re.level==1==b<0,Ye=se(x,Ce?1:-1);if(Ye!=null&&(Ce?Ye<=re.to&&Ye<=be.end:Ye>=re.from&&Ye>=be.begin)){var Ve=Ce?"before":"after";return new _e(x.line,Ye,Ve)}}var vt=function(an,mn,sn){for(var xn=function(Rr,ii){return ii?new _e(x.line,se(Rr,1),"before"):new _e(x.line,Rr,"after")};an>=0&&an<E.length;an+=mn){var On=E[an],Ln=mn>0==(On.level!=1),er=Ln?sn.begin:se(sn.end,-1);if(On.from<=er&&er<On.to||(er=Ln?On.from:se(On.to,-1),sn.begin<=er&&er<sn.end))return xn(er,Ln)}},Mt=vt(ee+b,b,be);if(Mt)return Mt;var Ut=b>0?be.end:se(be.begin,-1);return Ut!=null&&!(b>0&&Ut==y.text.length)&&(Mt=vt(b>0?0:E.length-1,b,ce(Ut)),Mt)?Mt:null}var ha={selectAll:tl,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Ee)},killLine:function(a){return Zo(a,function(y){if(y.empty()){var x=Qe(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line<a.lastLine()?{from:y.head,to:_e(y.head.line+1,0)}:{from:y.head,to:_e(y.head.line,x)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return Zo(a,function(y){return{from:_e(y.from().line,0),to:Pe(a.doc,_e(y.to().line+1,0))}})},delLineLeft:function(a){return Zo(a,function(y){return{from:_e(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return Zo(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return{from:b,to:y.from()}})},delWrappedLineRight:function(a){return Zo(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div");return{from:y.from(),to:b}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(_e(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(_e(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(y){return yl(a,y.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(y){return bl(a,y.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(y){return Lu(a,y.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div")},Je)},goLineLeft:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:0,top:x},"div")},Je)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return b.ch<a.getLine(b.line).search(/\S/)?bl(a,y.head):b},Je)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var y=[],x=a.listSelections(),b=a.options.tabSize,E=0;E<x.length;E++){var ee=x[E].from(),re=pe(a.getLine(ee.line),ee.ch,b);y.push(Et(b-re%b))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Ti(a,function(){for(var y=a.listSelections(),x=[],b=0;b<y.length;b++)if(y[b].empty()){var E=y[b].head,ee=Qe(a.doc,E.line).text;if(ee){if(E.ch==ee.length&&(E=new _e(E.line,E.ch-1)),E.ch>0)E=new _e(E.line,E.ch+1),a.replaceRange(ee.charAt(E.ch-1)+ee.charAt(E.ch-2),_e(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var re=Qe(a.doc,E.line-1).text;re&&(E=new _e(E.line,1),a.replaceRange(ee.charAt(0)+a.doc.lineSeparator()+re.charAt(re.length-1),_e(E.line-1,re.length-1),E,"+transpose"))}}x.push(new Cr(E,E))}a.setSelections(x)})},newlineAndIndent:function(a){return Ti(a,function(){for(var y=a.listSelections(),x=y.length-1;x>=0;x--)a.replaceRange(a.doc.lineSeparator(),y[x].anchor,y[x].head,"+input");y=a.listSelections();for(var b=0;b<y.length;b++)a.indentLine(y[b].from().line,null,!0);Ro(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function yl(a,y){var x=Qe(a.doc,y),b=on(x);return b!=x&&(y=ke(b)),fs(!0,a,b,y,1)}function Lu(a,y){var x=Qe(a.doc,y),b=Fn(x);return b!=x&&(y=ke(b)),fs(!0,a,x,y,-1)}function bl(a,y){var x=yl(a,y.line),b=Qe(a.doc,x.line),E=tn(b,a.doc.direction);if(!E||E[0].level==0){var ee=Math.max(x.ch,b.text.search(/\S/)),re=y.line==x.line&&y.ch<=ee&&y.ch;return _e(x.line,re?0:ee,x.sticky)}return x}function Ha(a,y,x){if(typeof y=="string"&&(y=ha[y],!y))return!1;a.display.input.ensurePolled();var b=a.display.shift,E=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),x&&(a.display.shift=!1),E=y(a)!=ct}finally{a.display.shift=b,a.state.suppressEdits=!1}return E}function Mu(a,y,x){for(var b=0;b<a.state.keyMaps.length;b++){var E=zo(y,a.state.keyMaps[b],x,a);if(E)return E}return a.options.extraKeys&&zo(y,a.options.extraKeys,x,a)||zo(y,a.options.keyMap,x,a)}var Bu=new de;function pa(a,y,x,b){var E=a.state.keySeq;if(E){if(vl(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:Bu.set(50,function(){a.state.keySeq==E&&(a.state.keySeq=null,a.display.input.reset())}),xl(a,E+" "+y,x,b))return!0}return xl(a,y,x,b)}function xl(a,y,x,b){var E=Mu(a,y,b);return E=="multi"&&(a.state.keySeq=y),E=="handled"&&Ir(a,"keyHandled",a,y,x),(E=="handled"||E=="multi")&&(un(x),Xa(a)),!!E}function wl(a,y){var x=gl(y,!0);return x?y.shiftKey&&!a.state.keySeq?pa(a,"Shift-"+x,y,function(b){return Ha(a,b,!0)})||pa(a,x,y,function(b){if(typeof b=="string"?/^go[A-Z]/.test(b):b.motion)return Ha(a,b)}):pa(a,x,y,function(b){return Ha(a,b)}):!1}function Tu(a,y,x){return pa(a,"'"+x+"'",y,function(b){return Ha(a,b,!0)})}var hs=null;function Cl(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=we(),!it(y,a))){me&&ge<11&&a.keyCode==27&&(a.returnValue=!1);var x=a.keyCode;y.display.shift=x==16||a.shiftKey;var b=wl(y,a);he&&(hs=b?x:null,!b&&x==88&&!Mn&&(Ae?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),oe&&!Ae&&!b&&x==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Pu(y)}}function Pu(a){var y=a.display.lineDiv;Fe(y,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(Ze(y,"CodeMirror-crosshair"),Zt(document,"keyup",x),Zt(document,"mouseover",x))}St(document,"keyup",x),St(document,"mouseover",x)}function Sl(a){a.keyCode==16&&(this.doc.sel.shift=!1),it(this,a)}function kl(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(li(y.display,a)||it(y,a)||a.ctrlKey&&!a.altKey||Ae&&a.metaKey)){var x=a.keyCode,b=a.charCode;if(he&&x==hs){hs=null,un(a);return}if(!(he&&(!a.which||a.which<10)&&wl(y,a))){var E=String.fromCharCode(b==null?x:b);E!="\b"&&(Tu(y,a,E)||y.display.input.onKeyPress(a))}}}var Fu=400,ps=function(a,y,x){this.time=a,this.pos=y,this.button=x};ps.prototype.compare=function(a,y,x){return this.time+Fu>a&&pt(y,this.pos)==0&&x==this.button};var va,ma;function Ru(a,y){var x=+new Date;return ma&&ma.compare(x,a,y)?(va=ma=null,"triple"):va&&va.compare(x,a,y)?(ma=new ps(x,a,y),va=null,"double"):(va=new ps(x,a,y),ma=null,"single")}function El(a){var y=this,x=y.display;if(!(it(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,li(x,a)){Oe||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!vs(y,a)){var b=Co(y,a),E=Un(a),ee=b?Ru(b,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Nu(y,E,b,ee,a))&&(E==1?b?_u(y,b,ee,a):tr(a)==x.scroller&&un(a):E==2?(b&&Fa(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(Ge?y.display.input.onContextMenu(a):As(y)))}}}function Nu(a,y,x,b,E){var ee="Click";return b=="double"?ee="Double"+ee:b=="triple"&&(ee="Triple"+ee),ee=(y==1?"Left":y==2?"Middle":"Right")+ee,pa(a,ml(ee,E),E,function(re){if(typeof re=="string"&&(re=ha[re]),!re)return!1;var se=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),se=re(a,x)!=ct}finally{a.state.suppressEdits=!1}return se})}function Ou(a,y,x){var b=a.getOption("configureMouse"),E=b?b(a,y,x):{};if(E.unit==null){var ee=tt?x.shiftKey&&x.metaKey:x.altKey;E.unit=ee?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(E.extend==null||a.doc.extend)&&(E.extend=a.doc.extend||x.shiftKey),E.addNew==null&&(E.addNew=Ae?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(Ae?x.altKey:x.ctrlKey)),E}function _u(a,y,x,b){me?setTimeout(_t(Es,a),0):a.curOp.focus=we();var E=Ou(a,x,b),ee=a.doc.sel,re;a.options.dragDrop&&Nr&&!a.isReadOnly()&&x=="single"&&(re=ee.contains(y))>-1&&(pt((re=ee.ranges[re]).from(),y)<0||y.xRel>0)&&(pt(re.to(),y)>0||y.xRel<0)?Iu(a,b,y,E):Hu(a,b,y,E)}function Iu(a,y,x,b){var E=a.display,ee=!1,re=ni(a,function(ce){Oe&&(E.scroller.draggable=!1),a.state.draggingText=!1,Zt(E.wrapper.ownerDocument,"mouseup",re),Zt(E.wrapper.ownerDocument,"mousemove",se),Zt(E.scroller,"dragstart",ue),Zt(E.scroller,"drop",re),ee||(un(ce),b.addNew||Fa(a.doc,x,null,null,b.extend),Oe&&!et||me&&ge==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),se=function(ce){ee=ee||Math.abs(y.clientX-ce.clientX)+Math.abs(y.clientY-ce.clientY)>=10},ue=function(){return ee=!0};Oe&&(E.scroller.draggable=!0),a.state.draggingText=re,re.copy=!b.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),St(E.wrapper.ownerDocument,"mouseup",re),St(E.wrapper.ownerDocument,"mousemove",se),St(E.scroller,"dragstart",ue),St(E.scroller,"drop",re),As(a),setTimeout(function(){return E.input.focus()},20)}function Al(a,y,x){if(x=="char")return new Cr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Cr(_e(y.line,0),Pe(a.doc,_e(y.line+1,0)));var b=x(a,y);return new Cr(b.from,b.to)}function Hu(a,y,x,b){var E=a.display,ee=a.doc;un(y);var re,se,ue=ee.sel,ce=ue.ranges;if(b.addNew&&!b.extend?(se=ee.sel.contains(x),se>-1?re=ce[se]:re=new Cr(x,x)):(re=ee.sel.primary(),se=ee.sel.primIndex),b.unit=="rectangle")b.addNew||(re=new Cr(x,x)),x=Co(a,y,!0,!0),se=-1;else{var be=Al(a,x,b.unit);b.extend?re=ls(re,be.anchor,be.head,b.extend):re=be}b.addNew?se==-1?(se=ce.length,pi(ee,Ki(a,ce.concat([re]),se),{scroll:!1,origin:"*mouse"})):ce.length>1&&ce[se].empty()&&b.unit=="char"&&!b.extend?(pi(ee,Ki(a,ce.slice(0,se).concat(ce.slice(se+1)),0),{scroll:!1,origin:"*mouse"}),ue=ee.sel):us(ee,se,re,Xe):(se=0,pi(ee,new Ni([re],0),Xe),ue=ee.sel);var Ce=x;function Ye(sn){if(pt(Ce,sn)!=0)if(Ce=sn,b.unit=="rectangle"){for(var xn=[],On=a.options.tabSize,Ln=pe(Qe(ee,x.line).text,x.ch,On),er=pe(Qe(ee,sn.line).text,sn.ch,On),Rr=Math.min(Ln,er),ii=Math.max(Ln,er),Wr=Math.min(x.line,sn.line),Pi=Math.min(a.lastLine(),Math.max(x.line,sn.line));Wr<=Pi;Wr++){var Ei=Qe(ee,Wr).text,Qr=Nt(Ei,Rr,On);Rr==ii?xn.push(new Cr(_e(Wr,Qr),_e(Wr,Qr))):Ei.length>Qr&&xn.push(new Cr(_e(Wr,Qr),_e(Wr,Nt(Ei,ii,On))))}xn.length||xn.push(new Cr(x,x)),pi(ee,Ki(a,ue.ranges.slice(0,se).concat(xn),se),{origin:"*mouse",scroll:!1}),a.scrollIntoView(sn)}else{var Ai=re,ci=Al(a,sn,b.unit),ei=Ai.anchor,qr;pt(ci.anchor,ei)>0?(qr=ci.head,ei=zt(Ai.from(),ci.anchor)):(qr=ci.anchor,ei=pn(Ai.to(),ci.head));var zr=ue.ranges.slice(0);zr[se]=Wu(a,new Cr(Pe(ee,ei),qr)),pi(ee,Ki(a,zr,se),Xe)}}var Ve=E.wrapper.getBoundingClientRect(),vt=0;function Mt(sn){var xn=++vt,On=Co(a,sn,!0,b.unit=="rectangle");if(On)if(pt(On,Ce)!=0){a.curOp.focus=we(),Ye(On);var Ln=Da(E,ee);(On.line>=Ln.to||On.line<Ln.from)&&setTimeout(ni(a,function(){vt==xn&&Mt(sn)}),150)}else{var er=sn.clientY<Ve.top?-20:sn.clientY>Ve.bottom?20:0;er&&setTimeout(ni(a,function(){vt==xn&&(E.scroller.scrollTop+=er,Mt(sn))}),50)}}function Ut(sn){a.state.selectingText=!1,vt=1/0,sn&&(un(sn),E.input.focus()),Zt(E.wrapper.ownerDocument,"mousemove",an),Zt(E.wrapper.ownerDocument,"mouseup",mn),ee.history.lastSelOrigin=null}var an=ni(a,function(sn){sn.buttons===0||!Un(sn)?Ut(sn):Mt(sn)}),mn=ni(a,Ut);a.state.selectingText=mn,St(E.wrapper.ownerDocument,"mousemove",an),St(E.wrapper.ownerDocument,"mouseup",mn)}function Wu(a,y){var x=y.anchor,b=y.head,E=Qe(a.doc,x.line);if(pt(x,b)==0&&x.sticky==b.sticky)return y;var ee=tn(E);if(!ee)return y;var re=Gt(ee,x.ch,x.sticky),se=ee[re];if(se.from!=x.ch&&se.to!=x.ch)return y;var ue=re+(se.from==x.ch==(se.level!=1)?0:1);if(ue==0||ue==ee.length)return y;var ce;if(b.line!=x.line)ce=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var be=Gt(ee,b.ch,b.sticky),Ce=be-re||(b.ch-x.ch)*(se.level==1?-1:1);be==ue-1||be==ue?ce=Ce<0:ce=Ce>0}var Ye=ee[ue+(ce?-1:0)],Ve=ce==(Ye.level==1),vt=Ve?Ye.from:Ye.to,Mt=Ve?"after":"before";return x.ch==vt&&x.sticky==Mt?y:new Cr(new _e(x.line,vt,Mt),b)}function Dl(a,y,x,b){var E,ee;if(y.touches)E=y.touches[0].clientX,ee=y.touches[0].clientY;else try{E=y.clientX,ee=y.clientY}catch(Ye){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&un(y);var re=a.display,se=re.lineDiv.getBoundingClientRect();if(ee>se.bottom||!Ht(a,x))return dn(y);ee-=se.top-re.viewOffset;for(var ue=0;ue<a.display.gutterSpecs.length;++ue){var ce=re.gutters.childNodes[ue];if(ce&&ce.getBoundingClientRect().right>=E){var be=Le(a.doc,ee),Ce=a.display.gutterSpecs[ue];return qt(a,x,a,be,Ce.className,y),dn(y)}}}function vs(a,y){return Dl(a,y,"gutterClick",!0)}function Ll(a,y){li(a.display,y)||zu(a,y)||it(a,y,"contextmenu")||Ge||a.display.input.onContextMenu(y)}function zu(a,y){return Ht(a,"gutterContextMenu")?Dl(a,y,"gutterContextMenu",!1):!1}function Ml(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),wo(a)}var jo={toString:function(){return"CodeMirror.Init"}},Bl={},Wa={};function Zu(a){var y=a.optionHandlers;function x(b,E,ee,re){a.defaults[b]=E,ee&&(y[b]=re?function(se,ue,ce){ce!=jo&&ee(se,ue,ce)}:ee)}a.defineOption=x,a.Init=jo,x("value","",function(b,E){return b.setValue(E)},!0),x("mode",null,function(b,E){b.doc.modeOption=E,os(b)},!0),x("indentUnit",2,os,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){ia(b),wo(b),Si(b)},!0),x("lineSeparator",null,function(b,E){if(b.doc.lineSep=E,!!E){var ee=[],re=b.doc.first;b.doc.iter(function(ue){for(var ce=0;;){var be=ue.text.indexOf(E,ce);if(be==-1)break;ce=be+E.length,ee.push(_e(re,be))}re++});for(var se=ee.length-1;se>=0;se--)Ho(b.doc,E,ee[se],_e(ee[se].line,ee[se].ch+E.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,E,ee){b.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),ee!=jo&&b.refresh()}),x("specialCharPlaceholder",zi,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Be?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,E){return b.getInputField().spellcheck=E},!0),x("autocorrect",!1,function(b,E){return b.getInputField().autocorrect=E},!0),x("autocapitalize",!1,function(b,E){return b.getInputField().autocapitalize=E},!0),x("rtlMoveVisually",!rt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Ml(b),ra(b)},!0),x("keyMap","default",function(b,E,ee){var re=Ia(E),se=ee!=jo&&Ia(ee);se&&se.detach&&se.detach(b,re),re.attach&&re.attach(b,se||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Gu,!0),x("gutters",[],function(b,E){b.display.gutterSpecs=rs(E,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,E){b.display.gutters.style.left=E?Ka(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return No(b)},!0),x("scrollbarStyle","native",function(b){Ps(b),No(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,E){b.display.gutterSpecs=rs(b.options.gutters,E),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Qo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,E){E=="nocursor"&&(Fo(b),b.display.input.blur()),b.display.input.readOnlyChanged(E)}),x("screenReaderLabel",null,function(b,E){E=E===""?null:E,b.display.input.screenReaderLabelChanged(E)}),x("disableInput",!1,function(b,E){E||b.display.input.reset()},!0),x("dragDrop",!0,ju),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Qo,!0),x("singleCursorHeightPerLine",!0,Qo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,E){return b.doc.history.undoDepth=E}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,ia,!0),x("moveInputWithCursor",!0,function(b,E){E||b.display.input.resetPosition()}),x("tabindex",null,function(b,E){return b.display.input.getField().tabIndex=E||""}),x("autofocus",null),x("direction","ltr",function(b,E){return b.doc.setDirection(E)},!0),x("phrases",null)}function ju(a,y,x){var b=x&&x!=jo;if(!y!=!b){var E=a.display.dragFunctions,ee=y?St:Zt;ee(a.display.scroller,"dragstart",E.start),ee(a.display.scroller,"dragenter",E.enter),ee(a.display.scroller,"dragover",E.over),ee(a.display.scroller,"dragleave",E.leave),ee(a.display.scroller,"drop",E.drop)}}function Gu(a){a.options.lineWrapping?(Fe(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ze(a.display.wrapper,"CodeMirror-wrap"),Qn(a)),Ya(a),Si(a),wo(a),setTimeout(function(){return No(a)},100)}function Hr(a,y){var x=this;if(!(this instanceof Hr))return new Hr(a,y);this.options=y=y?wt(y):{},wt(Bl,y,!1);var b=y.value;typeof b=="string"?b=new ki(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var E=new Hr.inputStyles[y.inputStyle](this),ee=this.display=new ru(a,b,E,y);ee.wrapper.CodeMirror=this,Ml(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ps(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 de,keySeq:null,specialChars:null},y.autofocus&&!Be&&ee.input.focus(),me&&ge<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),Cu(),Ao(this),this.curOp.forceUpdate=!0,Zs(this,b),y.autofocus&&!Be||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ja(x)},20):Fo(this);for(var re in Wa)Wa.hasOwnProperty(re)&&Wa[re](this,y[re],jo);Ns(this),y.finishInit&&y.finishInit(this);for(var se=0;se<ms.length;++se)ms[se](this);Do(this),Oe&&y.lineWrapping&&getComputedStyle(ee.lineDiv).textRendering=="optimizelegibility"&&(ee.lineDiv.style.textRendering="auto")}Hr.defaults=Bl,Hr.optionHandlers=Wa;function Vu(a){var y=a.display;St(y.scroller,"mousedown",ni(a,El)),me&&ge<11?St(y.scroller,"dblclick",ni(a,function(ue){if(!it(a,ue)){var ce=Co(a,ue);if(!(!ce||vs(a,ue)||li(a.display,ue))){un(ue);var be=a.findWordAt(ce);Fa(a.doc,be.anchor,be.head)}}})):St(y.scroller,"dblclick",function(ue){return it(a,ue)||un(ue)}),St(y.scroller,"contextmenu",function(ue){return Ll(a,ue)}),St(y.input.getField(),"contextmenu",function(ue){y.scroller.contains(ue.target)||Ll(a,ue)});var x,b={end:0};function E(){y.activeTouch&&(x=setTimeout(function(){return y.activeTouch=null},1e3),b=y.activeTouch,b.end=+new Date)}function ee(ue){if(ue.touches.length!=1)return!1;var ce=ue.touches[0];return ce.radiusX<=1&&ce.radiusY<=1}function re(ue,ce){if(ce.left==null)return!0;var be=ce.left-ue.left,Ce=ce.top-ue.top;return be*be+Ce*Ce>20*20}St(y.scroller,"touchstart",function(ue){if(!it(a,ue)&&!ee(ue)&&!vs(a,ue)){y.input.ensurePolled(),clearTimeout(x);var ce=+new Date;y.activeTouch={start:ce,moved:!1,prev:ce-b.end<=300?b:null},ue.touches.length==1&&(y.activeTouch.left=ue.touches[0].pageX,y.activeTouch.top=ue.touches[0].pageY)}}),St(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),St(y.scroller,"touchend",function(ue){var ce=y.activeTouch;if(ce&&!li(y,ue)&&ce.left!=null&&!ce.moved&&new Date-ce.start<300){var be=a.coordsChar(y.activeTouch,"page"),Ce;!ce.prev||re(ce,ce.prev)?Ce=new Cr(be,be):!ce.prev.prev||re(ce,ce.prev.prev)?Ce=a.findWordAt(be):Ce=new Cr(_e(be.line,0),Pe(a.doc,_e(be.line+1,0))),a.setSelection(Ce.anchor,Ce.head),a.focus(),un(ue)}E()}),St(y.scroller,"touchcancel",E),St(y.scroller,"scroll",function(){y.scroller.clientHeight&&($o(a,y.scroller.scrollTop),ko(a,y.scroller.scrollLeft,!0),qt(a,"scroll",a))}),St(y.scroller,"mousewheel",function(ue){return Is(a,ue)}),St(y.scroller,"DOMMouseScroll",function(ue){return Is(a,ue)}),St(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(ue){it(a,ue)||kn(ue)},over:function(ue){it(a,ue)||(wu(a,ue),kn(ue))},start:function(ue){return xu(a,ue)},drop:ni(a,bu),leave:function(ue){it(a,ue)||fl(a)}};var se=y.input.getField();St(se,"keyup",function(ue){return Sl.call(a,ue)}),St(se,"keydown",ni(a,Cl)),St(se,"keypress",ni(a,kl)),St(se,"focus",function(ue){return Ja(a,ue)}),St(se,"blur",function(ue){return Fo(a,ue)})}var ms=[];Hr.defineInitHook=function(a){return ms.push(a)};function ga(a,y,x,b){var E=a.doc,ee;x==null&&(x="add"),x=="smart"&&(E.mode.indent?ee=mr(a,y).state:x="prev");var re=a.options.tabSize,se=Qe(E,y),ue=pe(se.text,null,re);se.stateAfter&&(se.stateAfter=null);var ce=se.text.match(/^\s*/)[0],be;if(!b&&!/\S/.test(se.text))be=0,x="not";else if(x=="smart"&&(be=E.mode.indent(ee,se.text.slice(ce.length),se.text),be==ct||be>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?be=pe(Qe(E,y-1).text,null,re):be=0:x=="add"?be=ue+a.options.indentUnit:x=="subtract"?be=ue-a.options.indentUnit:typeof x=="number"&&(be=ue+x),be=Math.max(0,be);var Ce="",Ye=0;if(a.options.indentWithTabs)for(var Ve=Math.floor(be/re);Ve;--Ve)Ye+=re,Ce+=" ";if(Ye<be&&(Ce+=Et(be-Ye)),Ce!=ce)return Ho(E,Ce,_e(y,0),_e(y,ce.length),"+input"),se.stateAfter=null,!0;for(var vt=0;vt<E.sel.ranges.length;vt++){var Mt=E.sel.ranges[vt];if(Mt.head.line==y&&Mt.head.ch<ce.length){var Ut=_e(y,ce.length);us(E,vt,new Cr(Ut,Ut));break}}}var Yi=null;function za(a){Yi=a}function gs(a,y,x,b,E){var ee=a.doc;a.display.shift=!1,b||(b=ee.sel);var re=+new Date-200,se=E=="paste"||a.state.pasteIncoming>re,ue=jn(y),ce=null;if(se&&b.ranges.length>1)if(Yi&&Yi.text.join(`
`)==y){if(b.ranges.length%Yi.text.length==0){ce=[];for(var be=0;be<Yi.text.length;be++)ce.push(ee.splitLines(Yi.text[be]))}}else ue.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(ce=dt(ue,function(an){return[an]}));for(var Ce=a.curOp.updateInput,Ye=b.ranges.length-1;Ye>=0;Ye--){var Ve=b.ranges[Ye],vt=Ve.from(),Mt=Ve.to();Ve.empty()&&(x&&x>0?vt=_e(vt.line,vt.ch-x):a.state.overwrite&&!se?Mt=_e(Mt.line,Math.min(Qe(ee,Mt.line).text.length,Mt.ch+Re(ue).length)):se&&Yi&&Yi.lineWise&&Yi.text.join(`
`)==ue.join(`
`)&&(vt=Mt=_e(vt.line,0)));var Ut={from:vt,to:Mt,text:ce?ce[Ye%ce.length]:ue,origin:E||(se?"paste":a.state.cutIncoming>re?"cut":"+input")};Io(a.doc,Ut),Ir(a,"inputRead",a,Ut)}y&&!se&&Pl(a,y),Ro(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Ce),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Tl(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&Ti(y,function(){return gs(y,x,0,null,"paste")}),!0}function Pl(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var E=x.ranges[b];if(!(E.head.ch>100||b&&x.ranges[b-1].head.line==E.head.line)){var ee=a.getModeAt(E.head),re=!1;if(ee.electricChars){for(var se=0;se<ee.electricChars.length;se++)if(y.indexOf(ee.electricChars.charAt(se))>-1){re=ga(a,E.head.line,"smart");break}}else ee.electricInput&&ee.electricInput.test(Qe(a.doc,E.head.line).text.slice(0,E.head.ch))&&(re=ga(a,E.head.line,"smart"));re&&Ir(a,"electricInput",a,E.head.line)}}}function Fl(a){for(var y=[],x=[],b=0;b<a.doc.sel.ranges.length;b++){var E=a.doc.sel.ranges[b].head.line,ee={anchor:_e(E,0),head:_e(E+1,0)};x.push(ee),y.push(a.getRange(ee.anchor,ee.head))}return{text:y,ranges:x}}function Rl(a,y,x,b){a.setAttribute("autocorrect",x?"":"off"),a.setAttribute("autocapitalize",b?"":"off"),a.setAttribute("spellcheck",!!y)}function Nl(){var a=Te("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=Te("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Oe?a.style.width="1000px":a.setAttribute("wrap","off"),Ne&&(a.style.border="1px solid black"),Rl(a),y}function Uu(a){var y=a.optionHandlers,x=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(b,E){var ee=this.options,re=ee[b];ee[b]==E&&b!="mode"||(ee[b]=E,y.hasOwnProperty(b)&&ni(this,y[b])(this,E,re),qt(this,"optionChange",this,b))},getOption:function(b){return this.options[b]},getDoc:function(){return this.doc},addKeyMap:function(b,E){this.state.keyMaps[E?"push":"unshift"](Ia(b))},removeKeyMap:function(b){for(var E=this.state.keyMaps,ee=0;ee<E.length;++ee)if(E[ee]==b||E[ee].name==b)return E.splice(ee,1),!0},addOverlay:yi(function(b,E){var ee=b.token?b:a.getMode(this.options,b);if(ee.startState)throw new Error("Overlays may not be stateful.");yt(this.state.overlays,{mode:ee,modeSpec:b,opaque:E&&E.opaque,priority:E&&E.priority||0},function(re){return re.priority}),this.state.modeGen++,Si(this)}),removeOverlay:yi(function(b){for(var E=this.state.overlays,ee=0;ee<E.length;++ee){var re=E[ee].modeSpec;if(re==b||typeof b=="string"&&re.name==b){E.splice(ee,1),this.state.modeGen++,Si(this);return}}}),indentLine:yi(function(b,E,ee){typeof E!="string"&&typeof E!="number"&&(E==null?E=this.options.smartIndent?"smart":"prev":E=E?"add":"subtract"),Pt(this.doc,b)&&ga(this,b,E,ee)}),indentSelection:yi(function(b){for(var E=this.doc.sel.ranges,ee=-1,re=0;re<E.length;re++){var se=E[re];if(se.empty())se.head.line>ee&&(ga(this,se.head.line,b,!0),ee=se.head.line,re==this.doc.sel.primIndex&&Ro(this));else{var ue=se.from(),ce=se.to(),be=Math.max(ee,ue.line);ee=Math.min(this.lastLine(),ce.line-(ce.ch?0:1))+1;for(var Ce=be;Ce<ee;++Ce)ga(this,Ce,b);var Ye=this.doc.sel.ranges;ue.ch==0&&E.length==Ye.length&&Ye[re].from().ch>0&&us(this.doc,re,new Cr(ue,Ye[re].to()),Ee)}}}),getTokenAt:function(b,E){return gr(this,b,E)},getLineTokens:function(b,E){return gr(this,_e(b),E,!0)},getTokenTypeAt:function(b){b=Pe(this.doc,b);var E=Wn(this,Qe(this.doc,b.line)),ee=0,re=(E.length-1)/2,se=b.ch,ue;if(se==0)ue=E[2];else for(;;){var ce=ee+re>>1;if((ce?E[ce*2-1]:0)>=se)re=ce;else if(E[ce*2+1]<se)ee=ce+1;else{ue=E[ce*2+2];break}}var be=ue?ue.indexOf("overlay "):-1;return be<0?ue:be==0?null:ue.slice(0,be-1)},getModeAt:function(b){var E=this.doc.mode;return E.innerMode?a.innerMode(E,this.getTokenAt(b).state).mode:E},getHelper:function(b,E){return this.getHelpers(b,E)[0]},getHelpers:function(b,E){var ee=[];if(!x.hasOwnProperty(E))return ee;var re=x[E],se=this.getModeAt(b);if(typeof se[E]=="string")re[se[E]]&&ee.push(re[se[E]]);else if(se[E])for(var ue=0;ue<se[E].length;ue++){var ce=re[se[E][ue]];ce&&ee.push(ce)}else se.helperType&&re[se.helperType]?ee.push(re[se.helperType]):re[se.name]&&ee.push(re[se.name]);for(var be=0;be<re._global.length;be++){var Ce=re._global[be];Ce.pred(se,this)&&qe(ee,Ce.val)==-1&&ee.push(Ce.val)}return ee},getStateAfter:function(b,E){var ee=this.doc;return b=Qt(ee,b==null?ee.first+ee.size-1:b),mr(this,b+1,E).state},cursorCoords:function(b,E){var ee,re=this.doc.sel.primary();return b==null?ee=re.head:typeof b=="object"?ee=Pe(this.doc,b):ee=b?re.from():re.to(),Ci(this,ee,E||"page")},charCoords:function(b,E){return Po(this,Pe(this.doc,b),E||"page")},coordsChar:function(b,E){return b=Sa(this,b,E||"page"),ui(this,b.left,b.top)},lineAtHeight:function(b,E){return b=Sa(this,{top:b,left:0},E||"page").top,Le(this.doc,b+this.display.viewOffset)},heightAtLine:function(b,E,ee){var re=!1,se;if(typeof b=="number"){var ue=this.doc.first+this.doc.size-1;b<this.doc.first?b=this.doc.first:b>ue&&(b=ue,re=!0),se=Qe(this.doc,b)}else se=b;return To(this,se,{top:0,left:0},E||"page",ee||re).top+(re?this.doc.height-Kn(se):0)},defaultTextHeight:function(){return Bi(this.display)},defaultCharWidth:function(){return Ui(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,E,ee,re,se){var ue=this.display;b=Ci(this,Pe(this.doc,b));var ce=b.bottom,be=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),ue.sizer.appendChild(E),re=="over")ce=b.top;else if(re=="above"||re=="near"){var Ce=Math.max(ue.wrapper.clientHeight,this.doc.height),Ye=Math.max(ue.sizer.clientWidth,ue.lineSpace.clientWidth);(re=="above"||b.bottom+E.offsetHeight>Ce)&&b.top>E.offsetHeight?ce=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=Ce&&(ce=b.bottom),be+E.offsetWidth>Ye&&(be=Ye-E.offsetWidth)}E.style.top=ce+"px",E.style.left=E.style.right="",se=="right"?(be=ue.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(se=="left"?be=0:se=="middle"&&(be=(ue.sizer.clientWidth-E.offsetWidth)/2),E.style.left=be+"px"),ee&&jl(this,{left:be,top:ce,right:be+E.offsetWidth,bottom:ce+E.offsetHeight})},triggerOnKeyDown:yi(Cl),triggerOnKeyPress:yi(kl),triggerOnKeyUp:Sl,triggerOnMouseDown:yi(El),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:yi(function(b){Pl(this,b)}),findPosH:function(b,E,ee,re){var se=1;E<0&&(se=-1,E=-E);for(var ue=Pe(this.doc,b),ce=0;ce<E&&(ue=ys(this.doc,ue,se,ee,re),!ue.hitSide);++ce);return ue},moveH:yi(function(b,E){var ee=this;this.extendSelectionsBy(function(re){return ee.display.shift||ee.doc.extend||re.empty()?ys(ee.doc,re.head,b,E,ee.options.rtlMoveVisually):b<0?re.from():re.to()},Je)}),deleteH:yi(function(b,E){var ee=this.doc.sel,re=this.doc;ee.somethingSelected()?re.replaceSelection("",null,"+delete"):Zo(this,function(se){var ue=ys(re,se.head,b,E,!1);return b<0?{from:ue,to:se.head}:{from:se.head,to:ue}})}),findPosV:function(b,E,ee,re){var se=1,ue=re;E<0&&(se=-1,E=-E);for(var ce=Pe(this.doc,b),be=0;be<E;++be){var Ce=Ci(this,ce,"div");if(ue==null?ue=Ce.left:Ce.left=ue,ce=Ol(this,Ce,se,ee),ce.hitSide)break}return ce},moveV:yi(function(b,E){var ee=this,re=this.doc,se=[],ue=!this.display.shift&&!re.extend&&re.sel.somethingSelected();if(re.extendSelectionsBy(function(be){if(ue)return b<0?be.from():be.to();var Ce=Ci(ee,be.head,"div");be.goalColumn!=null&&(Ce.left=be.goalColumn),se.push(Ce.left);var Ye=Ol(ee,Ce,b,E);return E=="page"&&be==re.sel.primary()&&qa(ee,Po(ee,Ye,"div").top-Ce.top),Ye},Je),se.length)for(var ce=0;ce<re.sel.ranges.length;ce++)re.sel.ranges[ce].goalColumn=se[ce]}),findWordAt:function(b){var E=this.doc,ee=Qe(E,b.line).text,re=b.ch,se=b.ch;if(ee){var ue=this.getHelper(b,"wordChars");(b.sticky=="before"||se==ee.length)&&re?--re:++se;for(var ce=ee.charAt(re),be=le(ce,ue)?function(Ce){return le(Ce,ue)}:/\s/.test(ce)?function(Ce){return/\s/.test(Ce)}:function(Ce){return!/\s/.test(Ce)&&!le(Ce)};re>0&&be(ee.charAt(re-1));)--re;for(;se<ee.length&&be(ee.charAt(se));)++se}return new Cr(_e(b.line,re),_e(b.line,se))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Fe(this.display.cursorDiv,"CodeMirror-overwrite"):Ze(this.display.cursorDiv,"CodeMirror-overwrite"),qt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==we()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:yi(function(b,E){qo(this,b,E)}),getScrollInfo:function(){var b=this.display.scroller;return{left:b.scrollLeft,top:b.scrollTop,height:b.scrollHeight-Li(this)-this.display.barHeight,width:b.scrollWidth-Li(this)-this.display.barWidth,clientHeight:no(this),clientWidth:Qi(this)}},scrollIntoView:yi(function(b,E){b==null?(b={from:this.doc.sel.primary().head,to:null},E==null&&(E=this.options.cursorScrollMargin)):typeof b=="number"?b={from:_e(b,0),to:null}:b.from==null&&(b={from:b,to:null}),b.to||(b.to=b.from),b.margin=E||0,b.from.line!=null?Gl(this,b):Ls(this,b.from,b.to,b.margin)}),setSize:yi(function(b,E){var ee=this,re=function(ue){return typeof ue=="number"||/^\d+$/.test(String(ue))?ue+"px":ue};b!=null&&(this.display.wrapper.style.width=re(b)),E!=null&&(this.display.wrapper.style.height=re(E)),this.options.lineWrapping&&Yo(this);var se=this.display.viewFrom;this.doc.iter(se,this.display.viewTo,function(ue){if(ue.widgets){for(var ce=0;ce<ue.widgets.length;ce++)if(ue.widgets[ce].noHScroll){fo(ee,se,"widget");break}}++se}),this.curOp.forceUpdate=!0,qt(this,"refresh",this)}),operation:function(b){return Ti(this,b)},startOperation:function(){return Ao(this)},endOperation:function(){return Do(this)},refresh:yi(function(){var b=this.display.cachedTextHeight;Si(this),this.curOp.forceUpdate=!0,wo(this),qo(this,this.doc.scrollLeft,this.doc.scrollTop),ts(this.display),(b==null||Math.abs(b-Bi(this.display))>.5||this.options.lineWrapping)&&Ya(this),qt(this,"refresh",this)}),swapDoc:yi(function(b){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),Zs(this,b),wo(this),this.display.input.reset(),qo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Ir(this,"swapDoc",this,E),E}),phrase:function(b){var E=this.options.phrases;return E&&Object.prototype.hasOwnProperty.call(E,b)?E[b]:b},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}},Kt(a),a.registerHelper=function(b,E,ee){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][E]=ee},a.registerGlobalHelper=function(b,E,ee,re){a.registerHelper(b,E,re),x[b]._global.push({pred:ee,val:re})}}function ys(a,y,x,b,E){var ee=y,re=x,se=Qe(a,y.line),ue=E&&a.direction=="rtl"?-x:x;function ce(){var mn=y.line+ue;return mn<a.first||mn>=a.first+a.size?!1:(y=new _e(mn,y.ch,y.sticky),se=Qe(a,mn))}function be(mn){var sn;if(b=="codepoint"){var xn=se.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(xn)?sn=null:sn=new _e(y.line,Math.max(0,Math.min(se.text.length,y.ch+x*(xn>=55296&&xn<56320?2:1))),-x)}else E?sn=Du(a.cm,se,y,x):sn=ds(se,y,x);if(sn==null)if(!mn&&ce())y=fs(E,a.cm,se,y.line,ue);else return!1;else y=sn;return!0}if(b=="char"||b=="codepoint")be();else if(b=="column")be(!0);else if(b=="word"||b=="group")for(var Ce=null,Ye=b=="group",Ve=a.cm&&a.cm.getHelper(y,"wordChars"),vt=!0;!(x<0&&!be(!vt));vt=!1){var Mt=se.text.charAt(y.ch)||`
`,Ut=le(Mt,Ve)?"w":Ye&&Mt==`
`?"n":!Ye||/\s/.test(Mt)?null:"p";if(Ye&&!vt&&!Ut&&(Ut="s"),Ce&&Ce!=Ut){x<0&&(x=1,be(),y.sticky="after");break}if(Ut&&(Ce=Ut),x>0&&!be(!vt))break}var an=Na(a,y,ee,re,!0);return Jt(ee,an)&&(an.hitSide=!0),an}function Ol(a,y,x,b){var E=a.doc,ee=y.left,re;if(b=="page"){var se=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ue=Math.max(se-.5*Bi(a.display),3);re=(x>0?y.bottom:y.top)+x*ue}else b=="line"&&(re=x>0?y.bottom+3:y.top-3);for(var ce;ce=ui(a,ee,re),!!ce.outside;){if(x<0?re<=0:re>=E.height){ce.hitSide=!0;break}re+=x*5}return ce}var Ar=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new de,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ar.prototype.init=function(a){var y=this,x=this,b=x.cm,E=x.div=a.lineDiv;Rl(E,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function ee(se){for(var ue=se.target;ue;ue=ue.parentNode){if(ue==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ue.className))break}return!1}St(E,"paste",function(se){!ee(se)||it(b,se)||Tl(se,b)||ge<=11&&setTimeout(ni(b,function(){return y.updateFromDOM()}),20)}),St(E,"compositionstart",function(se){y.composing={data:se.data,done:!1}}),St(E,"compositionupdate",function(se){y.composing||(y.composing={data:se.data,done:!1})}),St(E,"compositionend",function(se){y.composing&&(se.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),St(E,"touchstart",function(){return x.forceCompositionEnd()}),St(E,"input",function(){y.composing||y.readFromDOMSoon()});function re(se){if(!(!ee(se)||it(b,se))){if(b.somethingSelected())za({lineWise:!1,text:b.getSelections()}),se.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var ue=Fl(b);za({lineWise:!0,text:ue.text}),se.type=="cut"&&b.operation(function(){b.setSelections(ue.ranges,0,Ee),b.replaceSelection("",null,"cut")})}else return;if(se.clipboardData){se.clipboardData.clearData();var ce=Yi.text.join(`
`);if(se.clipboardData.setData("Text",ce),se.clipboardData.getData("Text")==ce){se.preventDefault();return}}var be=Nl(),Ce=be.firstChild;b.display.lineSpace.insertBefore(be,b.display.lineSpace.firstChild),Ce.value=Yi.text.join(`
`);var Ye=document.activeElement;lt(Ce),setTimeout(function(){b.display.lineSpace.removeChild(be),Ye.focus(),Ye==E&&x.showPrimarySelection()},50)}}St(E,"copy",re),St(E,"cut",re)},Ar.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Ar.prototype.prepareSelection=function(){var a=Ss(this.cm,!1);return a.focus=document.activeElement==this.div,a},Ar.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Ar.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ar.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),E=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||E.line<y.display.viewFrom){a.removeAllRanges();return}var ee=Za(y,a.anchorNode,a.anchorOffset),re=Za(y,a.focusNode,a.focusOffset);if(!(ee&&!ee.bad&&re&&!re.bad&&pt(zt(ee,re),b)==0&&pt(pn(ee,re),E)==0)){var se=y.display.view,ue=b.line>=y.display.viewFrom&&_l(y,b)||{node:se[0].measure.map[2],offset:0},ce=E.line<y.display.viewTo&&_l(y,E);if(!ce){var be=se[se.length-1].measure,Ce=be.maps?be.maps[be.maps.length-1]:be.map;ce={node:Ce[Ce.length-1],offset:Ce[Ce.length-2]-Ce[Ce.length-3]}}if(!ue||!ce){a.removeAllRanges();return}var Ye=a.rangeCount&&a.getRangeAt(0),Ve;try{Ve=Se(ue.node,ue.offset,ce.offset,ce.node)}catch(vt){}Ve&&(!oe&&y.state.focused?(a.collapse(ue.node,ue.offset),Ve.collapsed||(a.removeAllRanges(),a.addRange(Ve))):(a.removeAllRanges(),a.addRange(Ve)),Ye&&a.anchorNode==null?a.addRange(Ye):oe&&this.startGracePeriod()),this.rememberSelection()}},Ar.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},Ar.prototype.showMultipleSelections=function(a){We(this.cm.display.cursorDiv,a.cursors),We(this.cm.display.selectionDiv,a.selection)},Ar.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Ar.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return Ie(this.div,y)},Ar.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ar.prototype.blur=function(){this.div.blur()},Ar.prototype.getField=function(){return this.div},Ar.prototype.supportsTouch=function(){return!0},Ar.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():Ti(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function y(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,y))}this.polling.set(this.cm.options.pollInterval,y)},Ar.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Ar.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(De&&xe&&this.cm.display.gutterSpecs.length&&Ku(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=Za(y,a.anchorNode,a.anchorOffset),b=Za(y,a.focusNode,a.focusOffset);x&&b&&Ti(y,function(){pi(y.doc,po(x,b),Ee),(x.bad||b.bad)&&(y.curOp.selectionChanged=!0)})}}},Ar.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,y=a.display,x=a.doc.sel.primary(),b=x.from(),E=x.to();if(b.ch==0&&b.line>a.firstLine()&&(b=_e(b.line-1,Qe(a.doc,b.line-1).length)),E.ch==Qe(a.doc,E.line).text.length&&E.line<a.lastLine()&&(E=_e(E.line+1,0)),b.line<y.viewFrom||E.line>y.viewTo-1)return!1;var ee,re,se;b.line==y.viewFrom||(ee=So(a,b.line))==0?(re=ke(y.view[0].line),se=y.view[0].node):(re=ke(y.view[ee].line),se=y.view[ee-1].node.nextSibling);var ue=So(a,E.line),ce,be;if(ue==y.view.length-1?(ce=y.viewTo-1,be=y.lineDiv.lastChild):(ce=ke(y.view[ue+1].line)-1,be=y.view[ue+1].node.previousSibling),!se)return!1;for(var Ce=a.doc.splitLines(Yu(a,se,be,re,ce)),Ye=Wt(a.doc,_e(re,0),_e(ce,Qe(a.doc,ce).text.length));Ce.length>1&&Ye.length>1;)if(Re(Ce)==Re(Ye))Ce.pop(),Ye.pop(),ce--;else if(Ce[0]==Ye[0])Ce.shift(),Ye.shift(),re++;else break;for(var Ve=0,vt=0,Mt=Ce[0],Ut=Ye[0],an=Math.min(Mt.length,Ut.length);Ve<an&&Mt.charCodeAt(Ve)==Ut.charCodeAt(Ve);)++Ve;for(var mn=Re(Ce),sn=Re(Ye),xn=Math.min(mn.length-(Ce.length==1?Ve:0),sn.length-(Ye.length==1?Ve:0));vt<xn&&mn.charCodeAt(mn.length-vt-1)==sn.charCodeAt(sn.length-vt-1);)++vt;if(Ce.length==1&&Ye.length==1&&re==b.line)for(;Ve&&Ve>b.ch&&mn.charCodeAt(mn.length-vt-1)==sn.charCodeAt(sn.length-vt-1);)Ve--,vt++;Ce[Ce.length-1]=mn.slice(0,mn.length-vt).replace(/^\u200b+/,""),Ce[0]=Ce[0].slice(Ve).replace(/\u200b+$/,"");var On=_e(re,Ve),Ln=_e(ce,Ye.length?Re(Ye).length-vt:0);if(Ce.length>1||Ce[0]||pt(On,Ln))return Ho(a.doc,Ce,On,Ln,"+input"),!0},Ar.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ar.prototype.reset=function(){this.forceCompositionEnd()},Ar.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ar.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Ar.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Ti(this.cm,function(){return Si(a.cm)})},Ar.prototype.setUneditable=function(a){a.contentEditable="false"},Ar.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||ni(this.cm,gs)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Ar.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Ar.prototype.onContextMenu=function(){},Ar.prototype.resetPosition=function(){},Ar.prototype.needsContentAttribute=!0;function _l(a,y){var x=qi(a,y.line);if(!x||x.hidden)return null;var b=Qe(a.doc,y.line),E=Bo(x,b,y.line),ee=tn(b,a.doc.direction),re="left";if(ee){var se=Gt(ee,y.ch);re=se%2?"right":"left"}var ue=xa(E.map,y.ch,re);return ue.offset=ue.collapse=="right"?ue.end:ue.start,ue}function Ku(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function Go(a,y){return y&&(a.bad=!0),a}function Yu(a,y,x,b,E){var ee="",re=!1,se=a.doc.lineSeparator(),ue=!1;function ce(Ve){return function(vt){return vt.id==Ve}}function be(){re&&(ee+=se,ue&&(ee+=se),re=ue=!1)}function Ce(Ve){Ve&&(be(),ee+=Ve)}function Ye(Ve){if(Ve.nodeType==1){var vt=Ve.getAttribute("cm-text");if(vt){Ce(vt);return}var Mt=Ve.getAttribute("cm-marker"),Ut;if(Mt){var an=a.findMarks(_e(b,0),_e(E+1,0),ce(+Mt));an.length&&(Ut=an[0].find(0))&&Ce(Wt(a.doc,Ut.from,Ut.to).join(se));return}if(Ve.getAttribute("contenteditable")=="false")return;var mn=/^(pre|div|p|li|table|br)$/i.test(Ve.nodeName);if(!/^br$/i.test(Ve.nodeName)&&Ve.textContent.length==0)return;mn&&be();for(var sn=0;sn<Ve.childNodes.length;sn++)Ye(Ve.childNodes[sn]);/^(pre|p)$/i.test(Ve.nodeName)&&(ue=!0),mn&&(re=!0)}else Ve.nodeType==3&&Ce(Ve.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ye(y),y!=x;)y=y.nextSibling,ue=!1;return ee}function Za(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return Go(a.clipPos(_e(a.display.viewTo-1)),!0);y=null,x=0}else for(b=y;;b=b.parentNode){if(!b||b==a.display.lineDiv)return null;if(b.parentNode&&b.parentNode==a.display.lineDiv)break}for(var E=0;E<a.display.view.length;E++){var ee=a.display.view[E];if(ee.node==b)return Xu(ee,y,x)}}function Xu(a,y,x){var b=a.text.firstChild,E=!1;if(!y||!Ie(b,y))return Go(_e(ke(a.line),0),!0);if(y==b&&(E=!0,y=b.childNodes[x],x=0,!y)){var ee=a.rest?Re(a.rest):a.line;return Go(_e(ke(ee),ee.text.length),E)}var re=y.nodeType==3?y:null,se=y;for(!re&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(re=y.firstChild,x&&(x=re.nodeValue.length));se.parentNode!=b;)se=se.parentNode;var ue=a.measure,ce=ue.maps;function be(Ut,an,mn){for(var sn=-1;sn<(ce?ce.length:0);sn++)for(var xn=sn<0?ue.map:ce[sn],On=0;On<xn.length;On+=3){var Ln=xn[On+2];if(Ln==Ut||Ln==an){var er=ke(sn<0?a.line:a.rest[sn]),Rr=xn[On]+mn;return(mn<0||Ln!=Ut)&&(Rr=xn[On+(mn?1:0)]),_e(er,Rr)}}}var Ce=be(re,se,x);if(Ce)return Go(Ce,E);for(var Ye=se.nextSibling,Ve=re?re.nodeValue.length-x:0;Ye;Ye=Ye.nextSibling){if(Ce=be(Ye,Ye.firstChild,0),Ce)return Go(_e(Ce.line,Ce.ch-Ve),E);Ve+=Ye.textContent.length}for(var vt=se.previousSibling,Mt=x;vt;vt=vt.previousSibling){if(Ce=be(vt,vt.firstChild,-1),Ce)return Go(_e(Ce.line,Ce.ch+Mt),E);Mt+=vt.textContent.length}}var Kr=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new de,this.hasSelection=!1,this.composing=null};Kr.prototype.init=function(a){var y=this,x=this,b=this.cm;this.createField(a);var E=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),Ne&&(E.style.width="0px"),St(E,"input",function(){me&&ge>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),St(E,"paste",function(re){it(b,re)||Tl(re,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function ee(re){if(!it(b,re)){if(b.somethingSelected())za({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var se=Fl(b);za({lineWise:!0,text:se.text}),re.type=="cut"?b.setSelections(se.ranges,null,Ee):(x.prevInput="",E.value=se.text.join(`
`),lt(E))}else return;re.type=="cut"&&(b.state.cutIncoming=+new Date)}}St(E,"cut",ee),St(E,"copy",ee),St(a.scroller,"paste",function(re){if(!(li(a,re)||it(b,re))){if(!E.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var se=new Event("paste");se.clipboardData=re.clipboardData,E.dispatchEvent(se)}}),St(a.lineSpace,"selectstart",function(re){li(a,re)||un(re)}),St(E,"compositionstart",function(){var re=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:re,range:b.markText(re,b.getCursor("to"),{className:"CodeMirror-composing"})}}),St(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Kr.prototype.createField=function(a){this.wrapper=Nl(),this.textarea=this.wrapper.firstChild},Kr.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Kr.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=Ss(a);if(a.options.moveInputWithCursor){var E=Ci(a,x.sel.primary().head,"div"),ee=y.wrapper.getBoundingClientRect(),re=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+re.top-ee.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+re.left-ee.left))}return b},Kr.prototype.showSelection=function(a){var y=this.cm,x=y.display;We(x.cursorDiv,a.cursors),We(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Kr.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&lt(this.textarea),me&&ge>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",me&&ge>=9&&(this.hasSelection=null))}},Kr.prototype.getField=function(){return this.textarea},Kr.prototype.supportsTouch=function(){return!1},Kr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Be||we()!=this.textarea))try{this.textarea.focus()}catch(a){}},Kr.prototype.blur=function(){this.textarea.blur()},Kr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Kr.prototype.receivedFocus=function(){this.slowPoll()},Kr.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Kr.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var b=y.poll();!b&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},Kr.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||Jn(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var E=x.value;if(E==b&&!y.somethingSelected())return!1;if(me&&ge>=9&&this.hasSelection===E||Ae&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ee=E.charCodeAt(0);if(ee==8203&&!b&&(b="\u200B"),ee==8666)return this.reset(),this.cm.execCommand("undo")}for(var re=0,se=Math.min(b.length,E.length);re<se&&b.charCodeAt(re)==E.charCodeAt(re);)++re;return Ti(y,function(){gs(y,E.slice(re),b.length-re,null,a.composing?"*compose":null),E.length>1e3||E.indexOf(`
`)>-1?x.value=a.prevInput="":a.prevInput=E,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Kr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Kr.prototype.onKeyPress=function(){me&&ge>=9&&(this.hasSelection=null),this.fastPoll()},Kr.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ee=Co(x,a),re=b.scroller.scrollTop;if(!ee||he)return;var se=x.options.resetSelectionOnContextMenu;se&&x.doc.sel.contains(ee)==-1&&ni(x,pi)(x.doc,po(ee),Ee);var ue=E.style.cssText,ce=y.wrapper.style.cssText,be=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-be.top-5)+"px; left: "+(a.clientX-be.left-5)+`px;
z-index: 1000; background: `+(me?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ce;Oe&&(Ce=window.scrollY),b.input.focus(),Oe&&window.scrollTo(null,Ce),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=Ve,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Ye(){if(E.selectionStart!=null){var Mt=x.somethingSelected(),Ut="\u200B"+(Mt?E.value:"");E.value="\u21DA",E.value=Ut,y.prevInput=Mt?"":"\u200B",E.selectionStart=1,E.selectionEnd=Ut.length,b.selForContextMenu=x.doc.sel}}function Ve(){if(y.contextMenuPending==Ve&&(y.contextMenuPending=!1,y.wrapper.style.cssText=ce,E.style.cssText=ue,me&&ge<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=re),E.selectionStart!=null)){(!me||me&&ge<9)&&Ye();var Mt=0,Ut=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?ni(x,tl)(x):Mt++<10?b.detectingSelectAll=setTimeout(Ut,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Ut,200)}}if(me&&ge>=9&&Ye(),Ge){kn(a);var vt=function(){Zt(window,"mouseup",vt),setTimeout(Ve,20)};St(window,"mouseup",vt)}else setTimeout(Ve,50)},Kr.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Kr.prototype.setUneditable=function(){},Kr.prototype.needsContentAttribute=!1;function Ju(a,y){if(y=y?wt(y):{},y.value=a.value,!y.tabindex&&a.tabIndex&&(y.tabindex=a.tabIndex),!y.placeholder&&a.placeholder&&(y.placeholder=a.placeholder),y.autofocus==null){var x=we();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=se.getValue()}var E;if(a.form&&(St(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var ee=a.form;E=ee.submit;try{var re=ee.submit=function(){b(),ee.submit=E,ee.submit(),ee.submit=re}}catch(ue){}}y.finishInit=function(ue){ue.save=b,ue.getTextArea=function(){return a},ue.toTextArea=function(){ue.toTextArea=isNaN,b(),a.parentNode.removeChild(ue.getWrapperElement()),a.style.display="",a.form&&(Zt(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var se=Hr(function(ue){return a.parentNode.insertBefore(ue,a.nextSibling)},y);return se}function Qu(a){a.off=Zt,a.on=St,a.wheelEventPixels=iu,a.Doc=ki,a.splitLines=jn,a.countColumn=pe,a.findColumn=Nt,a.isWordChar=ie,a.Pass=ct,a.signal=qt,a.Line=sr,a.changeEnd=vo,a.scrollbarModel=Ts,a.Pos=_e,a.cmpPos=pt,a.modes=Ot,a.mimeModes=ut,a.resolveMode=cn,a.getMode=rn,a.modeExtensions=Sn,a.extendMode=Bn,a.copyState=Dn,a.startState=En,a.innerMode=wn,a.commands=ha,a.keyMap=io,a.keyName=gl,a.isModifierKey=vl,a.lookupKey=zo,a.normalizeKeyMap=Au,a.StringStream=Bt,a.SharedTextMarker=ca,a.TextMarker=go,a.LineWidget=ua,a.e_preventDefault=un,a.e_stopPropagation=Nn,a.e_stop=kn,a.addClass=Fe,a.contains=Ie,a.rmClass=Ze,a.keyNames=yo}Zu(Hr),Uu(Hr);var qu="iter insert remove copy getEditor constructor".split(" ");for(var ja in ki.prototype)ki.prototype.hasOwnProperty(ja)&&qe(qu,ja)<0&&(Hr.prototype[ja]=function(a){return function(){return a.apply(this.doc,arguments)}}(ki.prototype[ja]));return Kt(ki),Hr.inputStyles={textarea:Kr,contenteditable:Ar},Hr.defineMode=function(a){!Hr.defaults.mode&&a!="null"&&(Hr.defaults.mode=a),gt.apply(this,arguments)},Hr.defineMIME=Yt,Hr.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Hr.defineMIME("text/plain","null"),Hr.defineExtension=function(a,y){Hr.prototype[a]=y},Hr.defineDocExtension=function(a,y){ki.prototype[a]=y},Hr.fromTextArea=Ju,Qu(Hr),Hr.version="5.58.2",Hr})},25419:function(Dt,Rt,fe){(function(oe){oe(fe(89780),fe(15525),fe(98101))})(function(oe){"use strict";oe.defineMode("markdown",function(nt,Me){var je=oe.getMode(nt,"text/html"),me=je.name=="null";function ge(pe){if(oe.findModeByName){var de=oe.findModeByName(pe);de&&(pe=de.mime||de.mimes[0])}var qe=oe.getMode(nt,pe);return qe.name=="null"?null:qe}Me.highlightFormatting===void 0&&(Me.highlightFormatting=!1),Me.maxBlockquoteDepth===void 0&&(Me.maxBlockquoteDepth=0),Me.taskLists===void 0&&(Me.taskLists=!1),Me.strikethrough===void 0&&(Me.strikethrough=!1),Me.emoji===void 0&&(Me.emoji=!1),Me.fencedCodeBlockHighlighting===void 0&&(Me.fencedCodeBlockHighlighting=!0),Me.fencedCodeBlockDefaultMode===void 0&&(Me.fencedCodeBlockDefaultMode="text/plain"),Me.xml===void 0&&(Me.xml=!0),Me.tokenTypeOverrides===void 0&&(Me.tokenTypeOverrides={});var Oe={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 He in Oe)Oe.hasOwnProperty(He)&&Me.tokenTypeOverrides[He]&&(Oe[He]=Me.tokenTypeOverrides[He]);var xe=/^([*\-_])(?:\s*\1){2,}\s*$/,he=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,et=/^\[(x| )\](?=\s)/i,ve=Me.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,st=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ne=/^[^#!\[\]*_\\<>` "'(~:]+/,De=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Be=/^\s*\[[^\]]+?\]:.*$/,Ae=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,tt=" ";function rt(pe,de,qe){return de.f=de.inline=qe,qe(pe,de)}function at(pe,de,qe){return de.f=de.block=qe,qe(pe,de)}function ze(pe){return!pe||!/\S/.test(pe.string)}function Ge(pe){if(pe.linkTitle=!1,pe.linkHref=!1,pe.linkText=!1,pe.em=!1,pe.strong=!1,pe.strikethrough=!1,pe.quote=0,pe.indentedCode=!1,pe.f==Ze){var de=me;if(!de){var qe=oe.innerMode(je,pe.htmlState);de=qe.mode.name=="xml"&&qe.state.tagStart===null&&!qe.state.context&&qe.state.tokenize.isInText}de&&(pe.f=$e,pe.block=Ke,pe.htmlState=null)}return pe.trailingSpace=0,pe.trailingSpaceNewLine=!1,pe.prevLine=pe.thisLine,pe.thisLine={stream:null},null}function Ke(pe,de){var qe=pe.column()===de.indentation,Lt=ze(de.prevLine.stream),ct=de.indentedCode,Ee=de.prevLine.hr,Xe=de.list!==!1,Je=(de.listStack[de.listStack.length-1]||0)+3;de.indentedCode=!1;var Nt=de.indentation;if(de.indentationDiff===null&&(de.indentationDiff=de.indentation,Xe)){for(de.list=null;Nt<de.listStack[de.listStack.length-1];)de.listStack.pop(),de.listStack.length?de.indentation=de.listStack[de.listStack.length-1]:de.list=!1;de.list!==!1&&(de.indentationDiff=Nt-de.listStack[de.listStack.length-1])}var ot=!Lt&&!Ee&&!de.prevLine.header&&(!Xe||!ct)&&!de.prevLine.fencedCodeEnd,Et=(de.list===!1||Ee||Lt)&&de.indentation<=Je&&pe.match(xe),Re=null;if(de.indentationDiff>=4&&(ct||de.prevLine.fencedCodeEnd||de.prevLine.header||Lt))return pe.skipToEnd(),de.indentedCode=!0,Oe.code;if(pe.eatSpace())return null;if(qe&&de.indentation<=Je&&(Re=pe.match(ve))&&Re[1].length<=6)return de.quote=0,de.header=Re[1].length,de.thisLine.header=!0,Me.highlightFormatting&&(de.formatting="header"),de.f=de.inline,We(de);if(de.indentation<=Je&&pe.eat(">"))return de.quote=qe?1:de.quote+1,Me.highlightFormatting&&(de.formatting="quote"),pe.eatSpace(),We(de);if(!Et&&!de.setext&&qe&&de.indentation<=Je&&(Re=pe.match(he))){var dt=Re[1]?"ol":"ul";return de.indentation=Nt+pe.current().length,de.list=!0,de.quote=0,de.listStack.push(de.indentation),de.em=!1,de.strong=!1,de.code=!1,de.strikethrough=!1,Me.taskLists&&pe.match(et,!1)&&(de.taskList=!0),de.f=de.inline,Me.highlightFormatting&&(de.formatting=["list","list-"+dt]),We(de)}else{if(qe&&de.indentation<=Je&&(Re=pe.match(De,!0)))return de.quote=0,de.fencedEndRE=new RegExp(Re[1]+"+ *$"),de.localMode=Me.fencedCodeBlockHighlighting&&ge(Re[2]||Me.fencedCodeBlockDefaultMode),de.localMode&&(de.localState=oe.startState(de.localMode)),de.f=de.block=Ct,Me.highlightFormatting&&(de.formatting="code-block"),de.code=-1,We(de);if(de.setext||(!ot||!Xe)&&!de.quote&&de.list===!1&&!de.code&&!Et&&!Be.test(pe.string)&&(Re=pe.lookAhead(1))&&(Re=Re.match(st)))return de.setext?(de.header=de.setext,de.setext=0,pe.skipToEnd(),Me.highlightFormatting&&(de.formatting="header")):(de.header=Re[0].charAt(0)=="="?1:2,de.setext=de.header),de.thisLine.header=!0,de.f=de.inline,We(de);if(Et)return pe.skipToEnd(),de.hr=!0,de.thisLine.hr=!0,Oe.hr;if(pe.peek()==="[")return rt(pe,de,xt)}return rt(pe,de,de.inline)}function Ze(pe,de){var qe=je.token(pe,de.htmlState);if(!me){var Lt=oe.innerMode(je,de.htmlState);(Lt.mode.name=="xml"&&Lt.state.tagStart===null&&!Lt.state.context&&Lt.state.tokenize.isInText||de.md_inside&&pe.current().indexOf(">")>-1)&&(de.f=$e,de.block=Ke,de.htmlState=null)}return qe}function Ct(pe,de){var qe=de.listStack[de.listStack.length-1]||0,Lt=de.indentation<qe,ct=qe+3;if(de.fencedEndRE&&de.indentation<=ct&&(Lt||pe.match(de.fencedEndRE))){Me.highlightFormatting&&(de.formatting="code-block");var Ee;return Lt||(Ee=We(de)),de.localMode=de.localState=null,de.block=Ke,de.f=$e,de.fencedEndRE=null,de.code=0,de.thisLine.fencedCodeEnd=!0,Lt?at(pe,de,de.block):Ee}else return de.localMode?de.localMode.token(pe,de.localState):(pe.skipToEnd(),Oe.code)}function We(pe){var de=[];if(pe.formatting){de.push(Oe.formatting),typeof pe.formatting=="string"&&(pe.formatting=[pe.formatting]);for(var qe=0;qe<pe.formatting.length;qe++)de.push(Oe.formatting+"-"+pe.formatting[qe]),pe.formatting[qe]==="header"&&de.push(Oe.formatting+"-"+pe.formatting[qe]+"-"+pe.header),pe.formatting[qe]==="quote"&&(!Me.maxBlockquoteDepth||Me.maxBlockquoteDepth>=pe.quote?de.push(Oe.formatting+"-"+pe.formatting[qe]+"-"+pe.quote):de.push("error"))}if(pe.taskOpen)return de.push("meta"),de.length?de.join(" "):null;if(pe.taskClosed)return de.push("property"),de.length?de.join(" "):null;if(pe.linkHref?de.push(Oe.linkHref,"url"):(pe.strong&&de.push(Oe.strong),pe.em&&de.push(Oe.em),pe.strikethrough&&de.push(Oe.strikethrough),pe.emoji&&de.push(Oe.emoji),pe.linkText&&de.push(Oe.linkText),pe.code&&de.push(Oe.code),pe.image&&de.push(Oe.image),pe.imageAltText&&de.push(Oe.imageAltText,"link"),pe.imageMarker&&de.push(Oe.imageMarker)),pe.header&&de.push(Oe.header,Oe.header+"-"+pe.header),pe.quote&&(de.push(Oe.quote),!Me.maxBlockquoteDepth||Me.maxBlockquoteDepth>=pe.quote?de.push(Oe.quote+"-"+pe.quote):de.push(Oe.quote+"-"+Me.maxBlockquoteDepth)),pe.list!==!1){var Lt=(pe.listStack.length-1)%3;Lt?Lt===1?de.push(Oe.list2):de.push(Oe.list3):de.push(Oe.list1)}return pe.trailingSpaceNewLine?de.push("trailing-space-new-line"):pe.trailingSpace&&de.push("trailing-space-"+(pe.trailingSpace%2?"a":"b")),de.length?de.join(" "):null}function Te(pe,de){if(pe.match(Ne,!0))return We(de)}function $e(pe,de){var qe=de.text(pe,de);if(typeof qe!="undefined")return qe;if(de.list)return de.list=null,We(de);if(de.taskList){var Lt=pe.match(et,!0)[1]===" ";return Lt?de.taskOpen=!0:de.taskClosed=!0,Me.highlightFormatting&&(de.formatting="task"),de.taskList=!1,We(de)}if(de.taskOpen=!1,de.taskClosed=!1,de.header&&pe.match(/^#+$/,!0))return Me.highlightFormatting&&(de.formatting="header"),We(de);var ct=pe.next();if(de.linkTitle){de.linkTitle=!1;var Ee=ct;ct==="("&&(Ee=")"),Ee=(Ee+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Xe="^\\s*(?:[^"+Ee+"\\\\]+|\\\\\\\\|\\\\.)"+Ee;if(pe.match(new RegExp(Xe),!0))return Oe.linkHref}if(ct==="`"){var Je=de.formatting;Me.highlightFormatting&&(de.formatting="code"),pe.eatWhile("`");var Nt=pe.current().length;if(de.code==0&&(!de.quote||Nt==1))return de.code=Nt,We(de);if(Nt==de.code){var ot=We(de);return de.code=0,ot}else return de.formatting=Je,We(de)}else if(de.code)return We(de);if(ct==="\\"&&(pe.next(),Me.highlightFormatting)){var Et=We(de),Re=Oe.formatting+"-escape";return Et?Et+" "+Re:Re}if(ct==="!"&&pe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return de.imageMarker=!0,de.image=!0,Me.highlightFormatting&&(de.formatting="image"),We(de);if(ct==="["&&de.imageMarker&&pe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return de.imageMarker=!1,de.imageAltText=!0,Me.highlightFormatting&&(de.formatting="image"),We(de);if(ct==="]"&&de.imageAltText){Me.highlightFormatting&&(de.formatting="image");var Et=We(de);return de.imageAltText=!1,de.image=!1,de.inline=de.f=Ie,Et}if(ct==="["&&!de.image)return de.linkText&&pe.match(/^.*?\]/)||(de.linkText=!0,Me.highlightFormatting&&(de.formatting="link")),We(de);if(ct==="]"&&de.linkText){Me.highlightFormatting&&(de.formatting="link");var Et=We(de);return de.linkText=!1,de.inline=de.f=pe.match(/\(.*?\)| ?\[.*?\]/,!1)?Ie:$e,Et}if(ct==="<"&&pe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){de.f=de.inline=Se,Me.highlightFormatting&&(de.formatting="link");var Et=We(de);return Et?Et+=" ":Et="",Et+Oe.linkInline}if(ct==="<"&&pe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){de.f=de.inline=Se,Me.highlightFormatting&&(de.formatting="link");var Et=We(de);return Et?Et+=" ":Et="",Et+Oe.linkEmail}if(Me.xml&&ct==="<"&&pe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var dt=pe.string.indexOf(">",pe.pos);if(dt!=-1){var yt=pe.string.substring(pe.start,dt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(yt)&&(de.md_inside=!0)}return pe.backUp(1),de.htmlState=oe.startState(je),at(pe,de,Ze)}if(Me.xml&&ct==="<"&&pe.match(/^\/\w*?>/))return de.md_inside=!1,"tag";if(ct==="*"||ct==="_"){for(var ae=1,te=pe.pos==1?" ":pe.string.charAt(pe.pos-2);ae<3&&pe.eat(ct);)ae++;var z=pe.peek()||" ",ie=!/\s/.test(z)&&(!Ae.test(z)||/\s/.test(te)||Ae.test(te)),le=!/\s/.test(te)&&(!Ae.test(te)||/\s/.test(z)||Ae.test(z)),ne=null,ye=null;if(ae%2&&(!de.em&&ie&&(ct==="*"||!le||Ae.test(te))?ne=!0:de.em==ct&&le&&(ct==="*"||!ie||Ae.test(z))&&(ne=!1)),ae>1&&(!de.strong&&ie&&(ct==="*"||!le||Ae.test(te))?ye=!0:de.strong==ct&&le&&(ct==="*"||!ie||Ae.test(z))&&(ye=!1)),ye!=null||ne!=null){Me.highlightFormatting&&(de.formatting=ne==null?"strong":ye==null?"em":"strong em"),ne===!0&&(de.em=ct),ye===!0&&(de.strong=ct);var ot=We(de);return ne===!1&&(de.em=!1),ye===!1&&(de.strong=!1),ot}}else if(ct===" "&&(pe.eat("*")||pe.eat("_"))){if(pe.peek()===" ")return We(de);pe.backUp(1)}if(Me.strikethrough){if(ct==="~"&&pe.eatWhile(ct)){if(de.strikethrough){Me.highlightFormatting&&(de.formatting="strikethrough");var ot=We(de);return de.strikethrough=!1,ot}else if(pe.match(/^[^\s]/,!1))return de.strikethrough=!0,Me.highlightFormatting&&(de.formatting="strikethrough"),We(de)}else if(ct===" "&&pe.match(/^~~/,!0)){if(pe.peek()===" ")return We(de);pe.backUp(2)}}if(Me.emoji&&ct===":"&&pe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){de.emoji=!0,Me.highlightFormatting&&(de.formatting="emoji");var Ue=We(de);return de.emoji=!1,Ue}return ct===" "&&(pe.match(/^ +$/,!1)?de.trailingSpace++:de.trailingSpace&&(de.trailingSpaceNewLine=!0)),We(de)}function Se(pe,de){var qe=pe.next();if(qe===">"){de.f=de.inline=$e,Me.highlightFormatting&&(de.formatting="link");var Lt=We(de);return Lt?Lt+=" ":Lt="",Lt+Oe.linkInline}return pe.match(/^[^>]+/,!0),Oe.linkInline}function Ie(pe,de){if(pe.eatSpace())return null;var qe=pe.next();return qe==="("||qe==="["?(de.f=de.inline=Fe(qe==="("?")":"]"),Me.highlightFormatting&&(de.formatting="link-string"),de.linkHref=!0,We(de)):"error"}var we={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Fe(pe){return function(de,qe){var Lt=de.next();if(Lt===pe){qe.f=qe.inline=$e,Me.highlightFormatting&&(qe.formatting="link-string");var ct=We(qe);return qe.linkHref=!1,ct}return de.match(we[pe]),qe.linkHref=!0,We(qe)}}function xt(pe,de){return pe.match(/^([^\]\\]|\\.)*\]:/,!1)?(de.f=lt,pe.next(),Me.highlightFormatting&&(de.formatting="link"),de.linkText=!0,We(de)):rt(pe,de,$e)}function lt(pe,de){if(pe.match(/^\]:/,!0)){de.f=de.inline=_t,Me.highlightFormatting&&(de.formatting="link");var qe=We(de);return de.linkText=!1,qe}return pe.match(/^([^\]\\]|\\.)+/,!0),Oe.linkText}function _t(pe,de){return pe.eatSpace()?null:(pe.match(/^[^\s]+/,!0),pe.peek()===void 0?de.linkTitle=!0:pe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),de.f=de.inline=$e,Oe.linkHref+" url")}var wt={startState:function(){return{f:Ke,prevLine:{stream:null},thisLine:{stream:null},block:Ke,htmlState:null,indentation:0,inline:$e,text:Te,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(pe){return{f:pe.f,prevLine:pe.prevLine,thisLine:pe.thisLine,block:pe.block,htmlState:pe.htmlState&&oe.copyState(je,pe.htmlState),indentation:pe.indentation,localMode:pe.localMode,localState:pe.localMode?oe.copyState(pe.localMode,pe.localState):null,inline:pe.inline,text:pe.text,formatting:!1,linkText:pe.linkText,linkTitle:pe.linkTitle,linkHref:pe.linkHref,code:pe.code,em:pe.em,strong:pe.strong,strikethrough:pe.strikethrough,emoji:pe.emoji,header:pe.header,setext:pe.setext,hr:pe.hr,taskList:pe.taskList,list:pe.list,listStack:pe.listStack.slice(0),quote:pe.quote,indentedCode:pe.indentedCode,trailingSpace:pe.trailingSpace,trailingSpaceNewLine:pe.trailingSpaceNewLine,md_inside:pe.md_inside,fencedEndRE:pe.fencedEndRE}},token:function(pe,de){if(de.formatting=!1,pe!=de.thisLine.stream){if(de.header=0,de.hr=!1,pe.match(/^\s*$/,!0))return Ge(de),null;if(de.prevLine=de.thisLine,de.thisLine={stream:pe},de.taskList=!1,de.trailingSpace=0,de.trailingSpaceNewLine=!1,!de.localState&&(de.f=de.block,de.f!=Ze)){var qe=pe.match(/^\s*/,!0)[0].replace(/\t/g,tt).length;if(de.indentation=qe,de.indentationDiff=null,qe>0)return null}}return de.f(pe,de)},innerMode:function(pe){return pe.block==Ze?{state:pe.htmlState,mode:je}:pe.localState?{state:pe.localState,mode:pe.localMode}:{state:pe,mode:wt}},indent:function(pe,de,qe){return pe.block==Ze&&je.indent?je.indent(pe.htmlState,de,qe):pe.localState&&pe.localMode.indent?pe.localMode.indent(pe.localState,de,qe):oe.Pass},blankLine:Ge,getType:We,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return wt},"xml"),oe.defineMIME("text/markdown","markdown"),oe.defineMIME("text/x-markdown","markdown")})},98101:function(Dt,Rt,fe){(function(oe){oe(fe(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 nt=0;nt<oe.modeInfo.length;nt++){var Me=oe.modeInfo[nt];Me.mimes&&(Me.mime=Me.mimes[0])}oe.findModeByMIME=function(je){je=je.toLowerCase();for(var me=0;me<oe.modeInfo.length;me++){var ge=oe.modeInfo[me];if(ge.mime==je)return ge;if(ge.mimes){for(var Oe=0;Oe<ge.mimes.length;Oe++)if(ge.mimes[Oe]==je)return ge}}if(/\+xml$/.test(je))return oe.findModeByMIME("application/xml");if(/\+json$/.test(je))return oe.findModeByMIME("application/json")},oe.findModeByExtension=function(je){je=je.toLowerCase();for(var me=0;me<oe.modeInfo.length;me++){var ge=oe.modeInfo[me];if(ge.ext){for(var Oe=0;Oe<ge.ext.length;Oe++)if(ge.ext[Oe]==je)return ge}}},oe.findModeByFileName=function(je){for(var me=0;me<oe.modeInfo.length;me++){var ge=oe.modeInfo[me];if(ge.file&&ge.file.test(je))return ge}var Oe=je.lastIndexOf("."),He=Oe>-1&&je.substring(Oe+1,je.length);if(He)return oe.findModeByExtension(He)},oe.findModeByName=function(je){je=je.toLowerCase();for(var me=0;me<oe.modeInfo.length;me++){var ge=oe.modeInfo[me];if(ge.name.toLowerCase()==je)return ge;if(ge.alias){for(var Oe=0;Oe<ge.alias.length;Oe++)if(ge.alias[Oe].toLowerCase()==je)return ge}}}})},67549:function(Dt,Rt,fe){(function(oe){oe(fe(89780))})(function(oe){"use strict";oe.defineMode("stex",function(nt,Me){"use strict";function je(Ne,De){Ne.cmdState.push(De)}function me(Ne){return Ne.cmdState.length>0?Ne.cmdState[Ne.cmdState.length-1]:null}function ge(Ne){var De=Ne.cmdState.pop();De&&De.closeBracket()}function Oe(Ne){for(var De=Ne.cmdState,Be=De.length-1;Be>=0;Be--){var Ae=De[Be];if(Ae.name!="DEFAULT")return Ae}return{styleIdentifier:function(){return null}}}function He(Ne,De,Be){return function(){this.name=Ne,this.bracketNo=0,this.style=De,this.styles=Be,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var xe={};xe.importmodule=He("importmodule","tag",["string","builtin"]),xe.documentclass=He("documentclass","tag",["","atom"]),xe.usepackage=He("usepackage","tag",["atom"]),xe.begin=He("begin","tag",["atom"]),xe.end=He("end","tag",["atom"]),xe.label=He("label","tag",["atom"]),xe.ref=He("ref","tag",["atom"]),xe.eqref=He("eqref","tag",["atom"]),xe.cite=He("cite","tag",["atom"]),xe.bibitem=He("bibitem","tag",["atom"]),xe.Bibitem=He("Bibitem","tag",["atom"]),xe.RBibitem=He("RBibitem","tag",["atom"]),xe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function he(Ne,De){Ne.f=De}function et(Ne,De){var Be;if(Ne.match(/^\\[a-zA-Z@]+/)){var Ae=Ne.current().slice(1);return Be=xe.hasOwnProperty(Ae)?xe[Ae]:xe.DEFAULT,Be=new Be,je(De,Be),he(De,st),Be.style}if(Ne.match(/^\\[$&%#{}_]/)||Ne.match(/^\\[,;!\/\\]/))return"tag";if(Ne.match("\\["))return he(De,function(rt,at){return ve(rt,at,"\\]")}),"keyword";if(Ne.match("\\("))return he(De,function(rt,at){return ve(rt,at,"\\)")}),"keyword";if(Ne.match("$$"))return he(De,function(rt,at){return ve(rt,at,"$$")}),"keyword";if(Ne.match("$"))return he(De,function(rt,at){return ve(rt,at,"$")}),"keyword";var tt=Ne.next();if(tt=="%")return Ne.skipToEnd(),"comment";if(tt=="}"||tt=="]"){if(Be=me(De),Be)Be.closeBracket(tt),he(De,st);else return"error";return"bracket"}else return tt=="{"||tt=="["?(Be=xe.DEFAULT,Be=new Be,je(De,Be),"bracket"):/\d/.test(tt)?(Ne.eatWhile(/[\w.%]/),"atom"):(Ne.eatWhile(/[\w\-_]/),Be=Oe(De),Be.name=="begin"&&(Be.argument=Ne.current()),Be.styleIdentifier())}function ve(Ne,De,Be){if(Ne.eatSpace())return null;if(Be&&Ne.match(Be))return he(De,et),"keyword";if(Ne.match(/^\\[a-zA-Z@]+/))return"tag";if(Ne.match(/^[a-zA-Z]+/))return"variable-2";if(Ne.match(/^\\[$&%#{}_]/)||Ne.match(/^\\[,;!\/]/)||Ne.match(/^[\^_&]/))return"tag";if(Ne.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ne.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ae=Ne.next();return Ae=="{"||Ae=="}"||Ae=="["||Ae=="]"||Ae=="("||Ae==")"?"bracket":Ae=="%"?(Ne.skipToEnd(),"comment"):"error"}function st(Ne,De){var Be=Ne.peek(),Ae;return Be=="{"||Be=="["?(Ae=me(De),Ae.openBracket(Be),Ne.eat(Be),he(De,et),"bracket"):/[ \t\r]/.test(Be)?(Ne.eat(Be),null):(he(De,et),ge(De),et(Ne,De))}return{startState:function(){var Ne=Me.inMathMode?function(De,Be){return ve(De,Be)}:et;return{cmdState:[],f:Ne}},copyState:function(Ne){return{cmdState:Ne.cmdState.slice(),f:Ne.f}},token:function(Ne,De){return De.f(Ne,De)},blankLine:function(Ne){Ne.f=et,Ne.cmdState.length=0},lineComment:"%"}}),oe.defineMIME("text/x-stex","stex"),oe.defineMIME("text/x-latex","stex")})},15525:function(Dt,Rt,fe){(function(oe){oe(fe(89780))})(function(oe){"use strict";var nt={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},Me={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};oe.defineMode("xml",function(je,me){var ge=je.indentUnit,Oe={},He=me.htmlMode?nt:Me;for(var xe in He)Oe[xe]=He[xe];for(var xe in me)Oe[xe]=me[xe];var he,et;function ve(Se,Ie){function we(lt){return Ie.tokenize=lt,lt(Se,Ie)}var Fe=Se.next();if(Fe=="<")return Se.eat("!")?Se.eat("[")?Se.match("CDATA[")?we(De("atom","]]>")):null:Se.match("--")?we(De("comment","-->")):Se.match("DOCTYPE",!0,!0)?(Se.eatWhile(/[\w\._\-]/),we(Be(1))):null:Se.eat("?")?(Se.eatWhile(/[\w\._\-]/),Ie.tokenize=De("meta","?>"),"meta"):(he=Se.eat("/")?"closeTag":"openTag",Ie.tokenize=st,"tag bracket");if(Fe=="&"){var xt;return Se.eat("#")?Se.eat("x")?xt=Se.eatWhile(/[a-fA-F\d]/)&&Se.eat(";"):xt=Se.eatWhile(/[\d]/)&&Se.eat(";"):xt=Se.eatWhile(/[\w\.\-:]/)&&Se.eat(";"),xt?"atom":"error"}else return Se.eatWhile(/[^&<]/),null}ve.isInText=!0;function st(Se,Ie){var we=Se.next();if(we==">"||we=="/"&&Se.eat(">"))return Ie.tokenize=ve,he=we==">"?"endTag":"selfcloseTag","tag bracket";if(we=="=")return he="equals",null;if(we=="<"){Ie.tokenize=ve,Ie.state=at,Ie.tagName=Ie.tagStart=null;var Fe=Ie.tokenize(Se,Ie);return Fe?Fe+" tag error":"tag error"}else return/[\'\"]/.test(we)?(Ie.tokenize=Ne(we),Ie.stringStartCol=Se.column(),Ie.tokenize(Se,Ie)):(Se.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ne(Se){var Ie=function(we,Fe){for(;!we.eol();)if(we.next()==Se){Fe.tokenize=st;break}return"string"};return Ie.isInAttribute=!0,Ie}function De(Se,Ie){return function(we,Fe){for(;!we.eol();){if(we.match(Ie)){Fe.tokenize=ve;break}we.next()}return Se}}function Be(Se){return function(Ie,we){for(var Fe;(Fe=Ie.next())!=null;){if(Fe=="<")return we.tokenize=Be(Se+1),we.tokenize(Ie,we);if(Fe==">")if(Se==1){we.tokenize=ve;break}else return we.tokenize=Be(Se-1),we.tokenize(Ie,we)}return"meta"}}function Ae(Se,Ie,we){this.prev=Se.context,this.tagName=Ie,this.indent=Se.indented,this.startOfLine=we,(Oe.doNotIndent.hasOwnProperty(Ie)||Se.context&&Se.context.noIndent)&&(this.noIndent=!0)}function tt(Se){Se.context&&(Se.context=Se.context.prev)}function rt(Se,Ie){for(var we;;){if(!Se.context||(we=Se.context.tagName,!Oe.contextGrabbers.hasOwnProperty(we)||!Oe.contextGrabbers[we].hasOwnProperty(Ie)))return;tt(Se)}}function at(Se,Ie,we){return Se=="openTag"?(we.tagStart=Ie.column(),ze):Se=="closeTag"?Ge:at}function ze(Se,Ie,we){return Se=="word"?(we.tagName=Ie.current(),et="tag",Ct):Oe.allowMissingTagName&&Se=="endTag"?(et="tag bracket",Ct(Se,Ie,we)):(et="error",ze)}function Ge(Se,Ie,we){if(Se=="word"){var Fe=Ie.current();return we.context&&we.context.tagName!=Fe&&Oe.implicitlyClosed.hasOwnProperty(we.context.tagName)&&tt(we),we.context&&we.context.tagName==Fe||Oe.matchClosing===!1?(et="tag",Ke):(et="tag error",Ze)}else return Oe.allowMissingTagName&&Se=="endTag"?(et="tag bracket",Ke(Se,Ie,we)):(et="error",Ze)}function Ke(Se,Ie,we){return Se!="endTag"?(et="error",Ke):(tt(we),at)}function Ze(Se,Ie,we){return et="error",Ke(Se,Ie,we)}function Ct(Se,Ie,we){if(Se=="word")return et="attribute",We;if(Se=="endTag"||Se=="selfcloseTag"){var Fe=we.tagName,xt=we.tagStart;return we.tagName=we.tagStart=null,Se=="selfcloseTag"||Oe.autoSelfClosers.hasOwnProperty(Fe)?rt(we,Fe):(rt(we,Fe),we.context=new Ae(we,Fe,xt==we.indented)),at}return et="error",Ct}function We(Se,Ie,we){return Se=="equals"?Te:(Oe.allowMissing||(et="error"),Ct(Se,Ie,we))}function Te(Se,Ie,we){return Se=="string"?$e:Se=="word"&&Oe.allowUnquoted?(et="string",Ct):(et="error",Ct(Se,Ie,we))}function $e(Se,Ie,we){return Se=="string"?$e:Ct(Se,Ie,we)}return{startState:function(Se){var Ie={tokenize:ve,state:at,indented:Se||0,tagName:null,tagStart:null,context:null};return Se!=null&&(Ie.baseIndent=Se),Ie},token:function(Se,Ie){if(!Ie.tagName&&Se.sol()&&(Ie.indented=Se.indentation()),Se.eatSpace())return null;he=null;var we=Ie.tokenize(Se,Ie);return(we||he)&&we!="comment"&&(et=null,Ie.state=Ie.state(he||we,Se,Ie),et&&(we=et=="error"?we+" error":et)),we},indent:function(Se,Ie,we){var Fe=Se.context;if(Se.tokenize.isInAttribute)return Se.tagStart==Se.indented?Se.stringStartCol+1:Se.indented+ge;if(Fe&&Fe.noIndent)return oe.Pass;if(Se.tokenize!=st&&Se.tokenize!=ve)return we?we.match(/^(\s*)/)[0].length:0;if(Se.tagName)return Oe.multilineTagIndentPastTag!==!1?Se.tagStart+Se.tagName.length+2:Se.tagStart+ge*(Oe.multilineTagIndentFactor||1);if(Oe.alignCDATA&&/<!\[CDATA\[/.test(Ie))return 0;var xt=Ie&&/^<(\/)?([\w_:\.-]*)/.exec(Ie);if(xt&&xt[1])for(;Fe;)if(Fe.tagName==xt[2]){Fe=Fe.prev;break}else if(Oe.implicitlyClosed.hasOwnProperty(Fe.tagName))Fe=Fe.prev;else break;else if(xt)for(;Fe;){var lt=Oe.contextGrabbers[Fe.tagName];if(lt&&lt.hasOwnProperty(xt[2]))Fe=Fe.prev;else break}for(;Fe&&Fe.prev&&!Fe.startOfLine;)Fe=Fe.prev;return Fe?Fe.indent+ge:Se.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Oe.htmlMode?"html":"xml",helperType:Oe.htmlMode?"html":"xml",skipAttribute:function(Se){Se.state==Te&&(Se.state=Ct)},xmlCurrentTag:function(Se){return Se.tagName?{name:Se.tagName,close:Se.type=="closeTag"}:null},xmlCurrentContext:function(Se){for(var Ie=[],we=Se.context;we;we=we.prev)we.tagName&&Ie.push(we.tagName);return Ie.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(Dt,Rt,fe){"use strict";fe.d(Rt,{hP:function(){return yt}});var oe=function(ae,te){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,ie){z.__proto__=ie}||function(z,ie){for(var le in ie)Object.prototype.hasOwnProperty.call(ie,le)&&(z[le]=ie[le])})(ae,te)};function nt(ae,te){function z(){this.constructor=ae}oe(ae,te),ae.prototype=te===null?Object.create(te):(z.prototype=te.prototype,new z)}function Me(ae,te,z,ie){return new(z||(z=Promise))(function(le,ne){function ye(mt){try{At(ie.next(mt))}catch(ft){ne(ft)}}function Ue(mt){try{At(ie.throw(mt))}catch(ft){ne(ft)}}function At(mt){var ft;mt.done?le(mt.value):(ft=mt.value,ft instanceof z?ft:new z(function(bt){bt(ft)})).then(ye,Ue)}At((ie=ie.apply(ae,te||[])).next())})}function je(ae,te){var z,ie,le,ne,ye={label:0,sent:function(){if(1&le[0])throw le[1];return le[1]},trys:[],ops:[]};return ne={next:Ue(0),throw:Ue(1),return:Ue(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function Ue(At){return function(mt){return function(ft){if(z)throw new TypeError("Generator is already executing.");for(;ye;)try{if(z=1,ie&&(le=2&ft[0]?ie.return:ft[0]?ie.throw||((le=ie.return)&&le.call(ie),0):ie.next)&&!(le=le.call(ie,ft[1])).done)return le;switch(ie=0,le&&(ft=[2&ft[0],le.value]),ft[0]){case 0:case 1:le=ft;break;case 4:return ye.label++,{value:ft[1],done:!1};case 5:ye.label++,ie=ft[1],ft=[0];continue;case 7:ft=ye.ops.pop(),ye.trys.pop();continue;default:if(le=ye.trys,!((le=le.length>0&&le[le.length-1])||ft[0]!==6&&ft[0]!==2)){ye=0;continue}if(ft[0]===3&&(!le||ft[1]>le[0]&&ft[1]<le[3])){ye.label=ft[1];break}if(ft[0]===6&&ye.label<le[1]){ye.label=le[1],le=ft;break}if(le&&ye.label<le[2]){ye.label=le[2],ye.ops.push(ft);break}le[2]&&ye.ops.pop(),ye.trys.pop();continue}ft=te.call(ae,ye)}catch(bt){ft=[6,bt],ie=0}finally{z=le=0}if(5&ft[0])throw ft[1];return{value:ft[0]?ft[1]:void 0,done:!0}}([At,mt])}}}function me(){for(var ae=0,te=0,z=arguments.length;te<z;te++)ae+=arguments[te].length;var ie=Array(ae),le=0;for(te=0;te<z;te++)for(var ne=arguments[te],ye=0,Ue=ne.length;ye<Ue;ye++,le++)ie[le]=ne[ye];return ie}var ge=function(){function ae(){}return ae.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ae.setAttributes=function(te,z){for(var ie=0,le=z;ie<le.length;ie++){var ne=le[ie],ye=ne[0],Ue=ne[1];te.setAttribute(ye,Ue)}},ae.createRect=function(te,z,ie){var le=document.createElementNS("http://www.w3.org/2000/svg","rect");return le.setAttribute("width",te.toString()),le.setAttribute("height",z.toString()),ie&&ae.setAttributes(le,ie),le},ae.createLine=function(te,z,ie,le,ne){var ye=document.createElementNS("http://www.w3.org/2000/svg","line");return ye.setAttribute("x1",te.toString()),ye.setAttribute("y1",z.toString()),ye.setAttribute("x2",ie.toString()),ye.setAttribute("y2",le.toString()),ne&&ae.setAttributes(ye,ne),ye},ae.createPolygon=function(te,z){var ie=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ie.setAttribute("points",te),z&&ae.setAttributes(ie,z),ie},ae.createCircle=function(te,z){var ie=document.createElementNS("http://www.w3.org/2000/svg","circle");return ie.setAttribute("cx",(te/2).toString()),ie.setAttribute("cy",(te/2).toString()),ie.setAttribute("r",te.toString()),z&&ae.setAttributes(ie,z),ie},ae.createEllipse=function(te,z,ie){var le=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return le.setAttribute("cx",(te/2).toString()),le.setAttribute("cy",(z/2).toString()),le.setAttribute("rx",(te/2).toString()),le.setAttribute("ry",(z/2).toString()),ie&&ae.setAttributes(le,ie),le},ae.createGroup=function(te){var z=document.createElementNS("http://www.w3.org/2000/svg","g");return te&&ae.setAttributes(z,te),z},ae.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ae.createMarker=function(te,z,ie,le,ne,ye,Ue){var At=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(At,[["id",te],["orient",z],["markerWidth",ie.toString()],["markerHeight",le.toString()],["refX",ne.toString()],["refY",ye.toString()]]),At.appendChild(Ue),At},ae.createText=function(te){var z=document.createElementNS("http://www.w3.org/2000/svg","text");return z.setAttribute("x","0"),z.setAttribute("y","0"),te&&ae.setAttributes(z,te),z},ae.createTSpan=function(te,z){var ie=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ie.textContent=te,z&&ae.setAttributes(ie,z),ie},ae.createImage=function(te){var z=document.createElementNS("http://www.w3.org/2000/svg","image");return te&&ae.setAttributes(z,te),z},ae.createPoint=function(te,z){var ie=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ie.x=te,ie.y=z,ie},ae.createPath=function(te,z){var ie=document.createElementNS("http://www.w3.org/2000/svg","path");return ie.setAttribute("d",te),z&&ae.setAttributes(ie,z),ie},ae}(),Oe=function(){function ae(){}return ae.addKey=function(te){ae.key=te},Object.defineProperty(ae,"isLicensed",{get:function(){return!!ae.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ae.key)},enumerable:!1,configurable:!0}),ae}(),He=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(te,z,ie){var le=this;return new Promise(function(ne){var ye=ie!==void 0?ie:document.createElement("canvas");te===null&&(le.markersOnly=!0,le.naturalSize=!1);var Ue=document.createElementNS("http://www.w3.org/2000/svg","svg");Ue.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ue.setAttribute("width",z.width.baseVal.valueAsString),Ue.setAttribute("height",z.height.baseVal.valueAsString),Ue.setAttribute("viewBox","0 0 "+z.viewBox.baseVal.width.toString()+" "+z.viewBox.baseVal.height.toString()),Ue.innerHTML=z.innerHTML,le.naturalSize===!0?(Ue.width.baseVal.value=te.naturalWidth,Ue.height.baseVal.value=te.naturalHeight):le.width!==void 0&&le.height!==void 0&&(Ue.width.baseVal.value=le.width,Ue.height.baseVal.value=le.height),ye.width=Ue.width.baseVal.value,ye.height=Ue.height.baseVal.value;var At=Ue.outerHTML,mt=ye.getContext("2d");le.markersOnly!==!0&&mt.drawImage(te,0,0,ye.width,ye.height);var ft=window.URL,bt=new Image(ye.width,ye.height);bt.setAttribute("crossOrigin","anonymous");var Gt=new Blob([At],{type:"image/svg+xml"}),It=ft.createObjectURL(Gt);bt.onload=function(){mt.drawImage(bt,0,0),ft.revokeObjectURL(It);var tn=ye.toDataURL(le.imageType,le.imageQuality);ne(tn)},bt.src=It})},ae}(),xe=function(){},he=function(){function ae(te){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+te+"_"}return Object.defineProperty(ae.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ae.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(ae.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ae.prototype.addClass=function(te){return this.styleSheet===void 0&&this.addStyleSheet(),te.name=""+this.classNamePrefix+te.localName,this.classes.push(te),this.styleSheet.sheet.insertRule("."+te.name+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length),te},ae.prototype.addRule=function(te){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(te),this.styleSheet.sheet.insertRule(te.selector+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length)},ae.prototype.addStyleSheet=function(){var te;this.styleSheet=document.createElement("style"),((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).appendChild(this.styleSheet),this.addRule(new et("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new et("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new et("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new ve("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new ve("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ae.prototype.removeStyleSheet=function(){var te;this.styleSheet&&(((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ae}(),et=function(ae,te){this.selector=ae,this.style=te},ve=function(ae,te){this.localName=ae,this.style=te},st=function(){function ae(te,z,ie,le,ne){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=te,this.displayMode=z,this.markerItems=ie,this.uiStyleSettings=le,this.styles=ne,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ae.prototype.show=function(te){var z=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ie=document.createElement("div");ie.className=this.toolbarBlockStyleClass.name,ie.style.whiteSpace="nowrap",this.uiContainer.appendChild(ie),this.addActionButton(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ne){var ye=document.createElement("div");ye.className=""+z.toolbarButtonStyleClass.name,ye.setAttribute("data-type-name",ne.typeName),ye.innerHTML=ne.icon,ye.addEventListener("click",function(){z.markerToolbarButtonClicked(ye,ne)}),z.buttons.push(ye),z.markerButtons.push(ye)}),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 le=document.createElement("div");le.className=this.toolbarBlockStyleClass.name,le.style.whiteSpace="nowrap",le.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(le),this.addActionButton(le,'<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(le,'<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()},ae.prototype.addButtonClickListener=function(te){this.buttonClickListeners.push(te)},ae.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var te=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var z=0;z<this.markerButtons.length;z++)z<te||z===te&&this.markerButtons.length-1===te?this.markerButtonBlock.appendChild(this.markerButtons[z]):(z===te&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[z]))}},ae.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")},ae.prototype.resetButtonStyles=function(){var te=this;this.buttons.forEach(function(z){z.className=z.className.replace(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name,"").trim(),z.className=z.className.replace(te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:te.toolbarActiveButtonStyleColorsClass.name,"").trim(),z.className+=" "+(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name)})},ae.prototype.addActionButton=function(te,z,ie){var le=this,ne=document.createElement("div");switch(ne.className=""+this.toolbarButtonStyleClass.name,ne.innerHTML=z,ne.setAttribute("data-action",ie),ne.addEventListener("click",function(){le.actionToolbarButtonClicked(ne,ie)}),ie){case"select":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ne.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ne.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ne.style.fill=this.uiStyleSettings.closeButtonColor}te.appendChild(ne),this.buttons.push(ne)},ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ve("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new ve("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ve("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ve("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new ve("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ve("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
padding: `+te+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ve("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ve("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new et("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new et("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},ae.prototype.markerToolbarButtonClicked=function(te,z){this.setActiveButton(te),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ie){return ie("marker",z)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(te,z){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ie){return ie("action",z)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(te){this.resetButtonStyles(),te.className=te.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),te.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(te){var z=this.markerButtons.find(function(ie){return ie.getAttribute("data-type-name")===te});z&&this.setActiveButton(z)},ae.prototype.setCurrentMarker=function(te){var z=this;this.currentMarker=te,this.buttons.filter(function(ie){return/delete|notes/.test(ie.getAttribute("data-action"))}).forEach(function(ie){z.currentMarker===void 0?(ie.style.fillOpacity="0.4",ie.style.pointerEvents="none"):(ie.style.fillOpacity="1",ie.style.pointerEvents="all")})},ae}(),Ne=function(){function ae(te,z,ie,le){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=z,this.uiStyleSettings=ie,this.styles=le,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new ve("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new ve("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var z=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ve("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ve("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ve("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new ve("toolbox-panel-row_colors",`
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ve("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px;
padding: `+z+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ve("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ve("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new et("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new et("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ae.prototype.show=function(te){var z;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((z=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&z!==void 0?z:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(te){var z,ie,le=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((z=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&z!==void 0?z:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ie=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ie!==void 0?ie:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var ye;ne.uiStyleSettings=le.uiStyleSettings;var Ue=document.createElement("div");Ue.className=le.toolboxButtonStyleClass.name+" "+((ye=le.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ye!==void 0?ye:le.toolboxButtonStyleColorsClass.name),Ue.innerHTML=ne.icon,Ue.title=ne.title,Ue.addEventListener("click",function(){le.panelButtonClick(ne)}),le.panelButtons.push(Ue),le.buttonRow.appendChild(Ue)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(te){var z=this,ie=-1;if(te!==this.activePanel){ie=this.panels.indexOf(te),this.panelRow.innerHTML="";var le=te.getUi();le.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(le),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=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){z.displayMode==="inline"?z.panelRow.style.display="none":z.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ne,ye){var Ue,At;ne.className=z.toolboxButtonStyleClass.name+" "+(ye===ie?""+((Ue=z.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ue!==void 0?Ue:z.toolboxActiveButtonStyleColorsClass.name):""+((At=z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&At!==void 0?At:z.toolboxButtonStyleColorsClass.name))})},ae}(),De=function(ae,te){this.title=ae,this.icon=te},Be=function(ae){function te(z,ie,le,ne){var ye=ae.call(this,z,ne||'<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 ye.colors=[],ye.addTransparent=!1,ye.colorBoxes=[],ye.colors=ie,ye.currentColor=le,ye.setCurrentColor=ye.setCurrentColor.bind(ye),ye.getColorBox=ye.getColorBox.bind(ye),ye}return nt(te,ae),te.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.whiteSpace="nowrap",this.colors.forEach(function(le){var ne=z.getColorBox(le);ie.appendChild(ne),z.colorBoxes.push(ne)}),ie},te.prototype.getColorBox=function(z){var ie=this,le=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-le,ye=document.createElement("div");ye.style.display="inline-block",ye.style.boxSizing="content-box",ye.style.width=ne-2+"px",ye.style.height=ne-2+"px",ye.style.padding="1px",ye.style.marginRight="2px",ye.style.marginBottom="2px",ye.style.borderWidth="2px",ye.style.borderStyle="solid",ye.style.borderRadius=(ne+2)/2+"px",ye.style.borderColor=z===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ye.addEventListener("click",function(){ie.setCurrentColor(z,ye)});var Ue=document.createElement("div");return Ue.style.display="inline-block",Ue.style.width=ne-2+"px",Ue.style.height=ne-2+"px",Ue.style.backgroundColor=z,Ue.style.borderRadius=ne/2+"px",z==="transparent"&&(Ue.style.fill=this.uiStyleSettings.toolboxAccentColor,Ue.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>`),ye.appendChild(Ue),ye},te.prototype.setCurrentColor=function(z,ie){var le=this;this.currentColor=z,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?le.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(z)},te}(De),Ae=function(){function ae(te,z,ie){this._state="new",this._isSelected=!1,this._container=te,this._overlayContainer=z,this.globalSettings=ie,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(te){return!1},Object.defineProperty(ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ae.prototype.pointerDown=function(te,z){},ae.prototype.dblClick=function(te,z){},ae.prototype.manipulate=function(te){},ae.prototype.pointerUp=function(te){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(te){this.container.childNodes.length>0?this.container.insertBefore(te,this.container.childNodes[0]):this.container.appendChild(te)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(te){this._state=te.state,this.notes=te.notes},ae.prototype.scale=function(te,z){},ae.prototype.colorChanged=function(te){this.onColorChanged&&this.onColorChanged(te),this.stateChanged()},ae.prototype.fillColorChanged=function(te){this.onFillColorChanged&&this.onFillColorChanged(te),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var te=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),te.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(te)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),tt=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(te){return this.topLeft.ownsTarget(te)?this.topLeft:this.topCenter.ownsTarget(te)?this.topCenter:this.topRight.ownsTarget(te)?this.topRight:this.centerLeft.ownsTarget(te)?this.centerLeft:this.centerRight.ownsTarget(te)?this.centerRight:this.bottomLeft.ownsTarget(te)?this.bottomLeft:this.bottomCenter.ownsTarget(te)?this.bottomCenter:this.bottomRight.ownsTarget(te)?this.bottomRight:void 0},ae}(),rt=function(){function ae(){this.GRIP_SIZE=10,this.visual=ge.createGroup(),this.visual.appendChild(ge.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ge.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},ae}(),at=function(){function ae(){}return ae.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},ae.toSVGMatrix=function(te,z){return te.a=z.a,te.b=z.b,te.c=z.c,te.d=z.d,te.e=z.e,te.f=z.f,te},ae}(),ze=function(ae){function te(z,ie,le){var ne=ae.call(this,z,ie,le)||this;return ne.left=0,ne.top=0,ne.width=0,ne.height=0,ne.defaultSize={x:50,y:20},ne.offsetX=0,ne.offsetY=0,ne.rotationAngle=0,ne.CB_DISTANCE=10,ne._suppressMarkerCreateEvent=!1,ne.container.transform.baseVal.appendItem(ge.createTransform()),ne.setupControlBox(),ne}return nt(te,ae),Object.defineProperty(te.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"visual",{get:function(){return this._visual},set:function(z){this._visual=z;var ie=ge.createTransform();this._visual.transform.baseVal.appendItem(ie)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(z){return!!ae.prototype.ownsTarget.call(this,z)||!!(this.controlGrips.findGripByVisual(z)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(z))},te.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.state==="new"&&(this.left=z.x,this.top=z.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var le=this.unrotatePoint(z);if(this.manipulationStartX=le.x,this.manipulationStartY=le.y,this.offsetX=le.x-this.left,this.offsetY=le.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ie),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ie)){this.activeGrip=this.rotatorGrip;var ne=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ne.x-this.width/2,this.top=ne.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ye=this.container.transform.baseVal.getItem(0);ye.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ye,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(z){var ie=this.state;ae.prototype.pointerUp.call(this,z),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(z),this._state="select",ie==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(z){this.visual.style.transform="translate("+z.x+"px, "+z.y+"px)"},te.prototype.manipulate=function(z){var ie=this.unrotatePoint(z);this.state==="creating"?this.resize(z):this.state==="move"?(this.left=this.manipulationStartLeft+(ie.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ie.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ie):this.state==="rotate"&&this.rotate(z)},te.prototype.resize=function(z){var ie=this.manipulationStartLeft,le=this.manipulationStartWidth,ne=this.manipulationStartTop,ye=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ie=this.manipulationStartLeft+z.x-this.manipulationStartX,le=this.manipulationStartWidth+this.manipulationStartLeft-ie;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:le=this.manipulationStartWidth+z.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ne=this.manipulationStartTop+z.y-this.manipulationStartY,ye=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ye=this.manipulationStartHeight+z.y-this.manipulationStartY}le>=0?(this.left=ie,this.width=le):(this.left=ie+le,this.width=-le),ye>=0?(this.top=ne,this.height=ye):(this.top=ne+ye,this.height=-ye),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(z){if(Math.abs(z.x-this.centerX)>.1){var ie=Math.sign(z.x-this.centerX);this.rotationAngle=180*Math.atan((z.y-this.centerY)/(z.x-this.centerX))/Math.PI+90*ie,this.applyRotation()}},te.prototype.applyRotation=function(){var z=this.container.transform.baseVal.getItem(0);z.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(z,0)},te.prototype.rotatePoint=function(z){if(this.rotationAngle===0)return z;var ie=this.container.getCTM(),le=ge.createPoint(z.x,z.y);return{x:(le=le.matrixTransform(ie)).x,y:le.y}},te.prototype.unrotatePoint=function(z){if(this.rotationAngle===0)return z;var ie=this.container.getCTM();ie=ie.inverse();var le=ge.createPoint(z.x,z.y);return{x:(le=le.matrixTransform(ie)).x,y:le.y}},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=ge.createGroup();var z=ge.createTransform();z.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(z),this.container.appendChild(this.controlBox),this.controlRect=ge.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=ge.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 tt,this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){var z=this.controlBox.transform.baseVal.getItem(0);z.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(z,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()},te.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()},te.prototype.createGrip=function(){var z=new rt;return z.visual.transform.baseVal.appendItem(ge.createTransform()),this.controlBox.appendChild(z.visual),z},te.prototype.positionGrips=function(){var z=this.controlGrips.topLeft.GRIP_SIZE,ie=-z/2,le=ie,ne=(this.width+this.CB_DISTANCE)/2-z/2,ye=(this.height+this.CB_DISTANCE)/2-z/2,Ue=this.height+this.CB_DISTANCE-z/2,At=this.width+this.CB_DISTANCE-z/2;this.positionGrip(this.controlGrips.topLeft.visual,ie,le),this.positionGrip(this.controlGrips.topCenter.visual,ne,le),this.positionGrip(this.controlGrips.topRight.visual,At,le),this.positionGrip(this.controlGrips.centerLeft.visual,ie,ye),this.positionGrip(this.controlGrips.centerRight.visual,At,ye),this.positionGrip(this.controlGrips.bottomLeft.visual,ie,Ue),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,Ue),this.positionGrip(this.controlGrips.bottomRight.visual,At,Ue),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,le-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(z,ie,le){var ne=z.transform.baseVal.getItem(0);ne.setTranslate(ie,le),z.transform.baseVal.replaceItem(ne,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:at.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:at.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},te.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var ie=z;this.left=ie.left,this.top=ie.top,this.width=ie.width,this.height=ie.height,this.rotationAngle=ie.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(at.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ie.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(at.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ie.containerTransformMatrix))},te.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie);var le=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:le.x*z,y:le.y*ie});this.left=ne.x,this.top=ne.y,this.width=this.width*z,this.height=this.height*ie,this.adjustControlBox()},te}(Ae),Ge=function(ae){function te(z,ie,le){var ne=ae.call(this,z,ie,le)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne}return nt(te,ae),te.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual)},te.prototype.createVisual=function(){this.visual=ge.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)},te.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},te.prototype.manipulate=function(z){ae.prototype.manipulate.call(this,z)},te.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.setSize()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(z){ae.prototype.pointerUp.call(this,z),this.setSize()},te.prototype.setStrokeColor=function(z){this.strokeColor=z,this.visual&&ge.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(z),this.stateChanged()},te.prototype.setFillColor=function(z){this.fillColor=z,this.visual&&ge.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.visual&&ge.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.visual&&ge.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},te.prototype.restoreState=function(z){var ie=z;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.opacity=ie.opacity,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},te.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.setSize()},te.title="Rectangle marker",te}(ze),Ke=function(ae){function te(z,ie,le,ne){var ye=ae.call(this,z,ne||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ye.widths=[],ye.widthBoxes=[],ye.widths=ie,ye.currentWidth=le,ye.setCurrentWidth=ye.setCurrentWidth.bind(ye),ye}return nt(te,ae),te.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",this.widths.forEach(function(le){var ne=document.createElement("div");ne.style.display="flex",ne.style.flexGrow="2",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=le===z.currentWidth?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentWidth(le,ne)}),ie.appendChild(ne);var ye=document.createElement("div");ye.innerText=le.toString(),ye.style.marginRight="5px",ne.appendChild(ye);var Ue=document.createElement("div");Ue.style.minHeight="20px",Ue.style.flexGrow="2",Ue.style.display="flex",Ue.style.alignItems="center";var At=document.createElement("hr");At.style.minWidth="20px",At.style.border="0px",At.style.borderTop=le+"px solid "+z.uiStyleSettings.toolboxColor,At.style.flexGrow="2",Ue.appendChild(At),ne.appendChild(Ue),z.widthBoxes.push(ne)}),ie},te.prototype.setCurrentWidth=function(z,ie){var le=this;this.currentWidth=z,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?le.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(De),Ze=function(ae){function te(z,ie,le,ne){var ye=ae.call(this,z,ne||'<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 ye.styles=[],ye.styleBoxes=[],ye.styles=ie,ye.currentStyle=le,ye.setCurrentStyle=ye.setCurrentStyle.bind(ye),ye}return nt(te,ae),te.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",this.styles.forEach(function(le){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/z.styles.length-5+"%",ne.style.borderColor=le===z.currentStyle?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentStyle(le,ne)}),ie.appendChild(ne);var ye=document.createElement("div");ye.style.minHeight="20px",ye.style.flexGrow="2",ye.style.overflow="hidden";var Ue=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+z.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(le!==""?'stroke-dasharray="'+le+'"':"")+` />
</svg>`;ye.innerHTML=Ue,ne.appendChild(ye),z.styleBoxes.push(ne)}),ie},te.prototype.setCurrentStyle=function(z,ie){var le=this;this.currentStyle=z,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?le.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(De),Ct=function(ae){function te(z,ie,le){var ne=ae.call(this,z,ie,le)||this;return ne.strokeColor=le.defaultColor,ne.strokeWidth=le.defaultStrokeWidth,ne.strokeDasharray=le.defaultStrokeDasharray,ne.strokePanel=new Be("Line color",le.defaultColorSet,le.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Ke("Line width",le.defaultStrokeWidths,le.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ze("Line style",le.defaultStrokeDasharrays,le.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return nt(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=te.typeName,z},te.typeName="FrameMarker",te.title="Frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',te}(Ge),We=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"},Te=function(ae){function te(z,ie,le){var ne=ae.call(this,z,ie,le)||this;return ne.x1=0,ne.y1=0,ne.x2=0,ne.y2=0,ne.defaultLength=50,ne.manipulationStartX=0,ne.manipulationStartY=0,ne.manipulationStartX1=0,ne.manipulationStartY1=0,ne.manipulationStartX2=0,ne.manipulationStartY2=0,ne.setupControlBox(),ne}return nt(te,ae),te.prototype.ownsTarget=function(z){return!!ae.prototype.ownsTarget.call(this,z)||!(!this.grip1.ownsTarget(z)&&!this.grip2.ownsTarget(z))},te.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.manipulationStartX=z.x,this.manipulationStartY=z.y,this.state==="new"&&(this.x1=z.x,this.y1=z.y,this.x2=z.x,this.y2=z.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(ie)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ie)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(z){var ie=this.state;ae.prototype.pointerUp.call(this,z),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(z),this._state="select",ie==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(z){this.state==="creating"?this.resize(z):this.state==="move"?(this.x1=this.manipulationStartX1+z.x-this.manipulationStartX,this.y1=this.manipulationStartY1+z.y-this.manipulationStartY,this.x2=this.manipulationStartX2+z.x-this.manipulationStartX,this.y2=this.manipulationStartY2+z.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(z)},te.prototype.resize=function(z){switch(this.activeGrip){case this.grip1:this.x1=z.x,this.y1=z.y;break;case this.grip2:case void 0:this.x2=z.x,this.y2=z.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=ge.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){this.positionGrips()},te.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},te.prototype.createGrip=function(){var z=new rt;return z.visual.transform.baseVal.appendItem(ge.createTransform()),this.controlBox.appendChild(z.visual),z},te.prototype.positionGrips=function(){var z=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-z/2,this.y1-z/2),this.positionGrip(this.grip2.visual,this.x2-z/2,this.y2-z/2)},te.prototype.positionGrip=function(z,ie,le){var ne=z.transform.baseVal.getItem(0);ne.setTranslate(ie,le),z.transform.baseVal.replaceItem(ne,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},te.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var ie=z;this.x1=ie.x1,this.y1=ie.y1,this.x2=ie.x2,this.y2=ie.y2},te.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.x1=this.x1*z,this.y1=this.y1*ie,this.x2=this.x2*z,this.y2=this.y2*ie,this.adjustVisual(),this.adjustControlBox()},te}(Ae),$e=function(ae){function te(z,ie,le){var ne=ae.call(this,z,ie,le)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.strokeColor=le.defaultColor,ne.strokeWidth=le.defaultStrokeWidth,ne.strokeDasharray=le.defaultStrokeDasharray,ne.strokePanel=new Be("Line color",le.defaultColorSet,le.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Ke("Line width",le.defaultStrokeWidths,le.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ze("Line style",le.defaultStrokeDasharrays,le.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return nt(te,ae),te.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.selectorLine&&z!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=ge.createGroup(),this.selectorLine=ge.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ge.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)},te.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},te.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()),ge.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ge.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ge.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setStrokeColor=function(z){this.strokeColor=z,this.adjustVisual(),this.colorChanged(z)},te.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.adjustVisual()},te.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return z.typeName=te.typeName,z},te.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var ie=z;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.createVisual(),this.adjustVisual()},te.typeName="LineMarker",te.title="Line marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',te}(Te),Se=function(ae){function te(z,ie,le,ne){var ye=ae.call(this,z,ne||'<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 ye.fonts=[],ye.fontBoxes=[],ye.fonts=ie,ye.currentFont=le,ye.setCurrentFont=ye.setCurrentFont.bind(ye),ye}return nt(te,ae),te.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.flexGrow="2",this.fonts.forEach(function(le){var ne=document.createElement("div");ne.style.display="inline-block",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/z.fonts.length-5+"%",ne.style.borderColor=le===z.currentFont?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentFont(le,ne)}),ie.appendChild(ne);var ye=document.createElement("div");ye.style.display="flex",ye.style.minHeight="20px",ye.style.flexGrow="2",ye.style.fontFamily=le,ye.style.overflow="hidden";var Ue=document.createElement("div");Ue.style.whiteSpace="nowrap",Ue.style.overflow="hidden",Ue.style.textOverflow="ellipsis",Ue.innerHTML="The quick brown fox jumps over the lazy dog",ye.appendChild(Ue),ne.appendChild(ye),z.fontBoxes.push(ne)}),ie},te.prototype.setCurrentFont=function(z,ie){var le=this;this.currentFont=z,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?le.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(De),Ie=function(ae){function te(z,ie,le){var ne=ae.call(this,z,ie,le)||this;return ne.color="transparent",ne.padding=5,ne.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ne.text=ne.DEFAULT_TEXT,ne.isMoved=!1,ne.color=le.defaultColor,ne.fontFamily=le.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setColor=ne.setColor.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.renderText=ne.renderText.bind(ne),ne.sizeText=ne.sizeText.bind(ne),ne.textEditDivClicked=ne.textEditDivClicked.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.setSize=ne.setSize.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.colorPanel=new Be("Color",le.defaultColorSet,le.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Se("Font",le.defaultFontFamilies,le.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return nt(te,ae),te.prototype.ownsTarget=function(z){if(ae.prototype.ownsTarget.call(this,z)||z===this.visual||z===this.textElement||z===this.bgRectangle)return!0;var ie=!1;return this.textElement.childNodes.forEach(function(le){le===z&&(ie=!0)}),ie},te.prototype.createVisual=function(){this.visual=ge.createGroup(),this.bgRectangle=ge.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ge.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ge.createTransform()),this.textElement.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},te.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.isMoved=!1,this.pointerDownPoint=z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},te.prototype.renderText=function(){var z=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(ie){z.textElement.appendChild(ge.createTSpan(ie.trim()===""?" ":ie.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var z=this.textElement.getBBox(),ie=1;if(z.width>0&&z.height>0){var le=(1*this.width-this.width*this.padding*2/100)/z.width,ne=(1*this.height-this.height*this.padding*2/100)/z.height;ie=Math.min(le,ne)}return ie},te.prototype.getTextPosition=function(z){var ie=this.textElement.getBBox(),le=0,ne=0;return ie.width>0&&ie.height>0&&(le=(this.width-ie.width*z)/2,ne=this.height/2-ie.height*z/2),{x:le,y:ne}},te.prototype.sizeText=function(){var z=this.textElement.getBBox(),ie=this.getTextScale(),le=this.getTextPosition(ie);le.y-=z.y*ie,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+le.x+"px, "+le.y+"px) scale("+ie+", "+ie+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(le.x,le.y),this.textElement.transform.baseVal.getItem(1).setScale(ie,ie))},te.prototype.manipulate=function(z){ae.prototype.manipulate.call(this,z),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(z.x-this.pointerDownPoint.x)>5||Math.abs(z.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ge.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(z){var ie=this.state;ie==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,z),this.setSize(),(ie==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var z=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(ie){ie.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ie=Number.parseFloat(z.textEditor.style.fontSize);z.textEditor.clientWidth>=Number.parseInt(z.textEditor.style.maxWidth)&&ie>.9;)ie-=.1,z.textEditor.style.fontSize=Math.max(ie,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ie){ie.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ie){if(ie.clipboardData){var le=ie.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(le)),ie.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){z.textEditDivClicked(z.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var z=this.getTextScale(),ie=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),le=this.textElement.getBBox(),ne={x:le.width*z,y:le.height*z};ie.x-=ne.x/2,ie.y-=ne.y/2,this.textEditor.style.top=ie.y+"px",this.textEditor.style.left=ie.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ie.x+"px",this.textEditor.style.fontSize=Math.max(16*z,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(z){this.text=z.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},te.prototype.dblClick=function(z,ie){ae.prototype.dblClick.call(this,z,ie),this.showTextEditor()},te.prototype.setColor=function(z){this.textElement&&ge.setAttributes(this.textElement,[["fill",z]]),this.color=z,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(z)},te.prototype.setFont=function(z){this.textElement&&ge.setAttributes(this.textElement,[["font-family",z]]),this.fontFamily=z,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},te.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},te.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var z=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return z.typeName=te.typeName,z},te.prototype.restoreState=function(z){var ie=z;this.color=ie.color,this.fontFamily=ie.fontFamily,this.padding=ie.padding,this.text=ie.text,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},te.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.setSize(),this.sizeText(),this.positionTextEditor()},te.typeName="TextMarker",te.title="Text marker",te.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>',te}(ze),we=function(ae){function te(z,ie,le){var ne=ae.call(this,z,ie,le)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=le.defaultColor,ne.lineWidth=le.defaultStrokeWidth,ne.pixelRatio=le.freehandPixelRatio,ne.setColor=ne.setColor.bind(ne),ne.addCanvas=ne.addCanvas.bind(ne),ne.finishCreation=ne.finishCreation.bind(ne),ne.setLineWidth=ne.setLineWidth.bind(ne),ne.colorPanel=new Be("Color",le.defaultColorSet,le.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new Ke("Line width",le.defaultStrokeWidths,le.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return nt(te,ae),te.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=ge.createGroup(),this.drawingImage=ge.createImage(),this.visual.appendChild(this.drawingImage);var z=ge.createTransform();this.visual.transform.baseVal.appendItem(z),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(z,ie){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(z.x,z.y),this.drawing=!0):ae.prototype.pointerDown.call(this,z,ie)},te.prototype.manipulate=function(z){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(z.x,z.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,z)},te.prototype.resize=function(z){ae.prototype.resize.call(this,z),ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ge.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(z){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,z)},te.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)},te.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var z=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ie=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],le=ie[0],ne=ie[1],ye=ie[2],Ue=ie[3],At=!1,mt=0;mt<this.canvasElement.height;mt++)for(var ft=0;ft<this.canvasElement.width;ft++)z.data[mt*this.canvasElement.width*4+4*ft+3]>0&&(At=!0,mt<ne&&(ne=mt),ft<le&&(le=ft),mt>Ue&&(Ue=mt),ft>ye&&(ye=ft));if(At){this.left=le/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(ye-le)/this.pixelRatio,this.height=(Ue-ne)/this.pixelRatio;var bt=document.createElement("canvas");bt.width=ye-le,bt.height=Ue-ne,bt.getContext("2d").putImageData(this.canvasContext.getImageData(le,ne,ye-le,Ue-ne),0,0),this.drawingImgUrl=bt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){ge.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ge.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},te.prototype.setColor=function(z){this.color=z,this.colorChanged(z)},te.prototype.setLineWidth=function(z){this.lineWidth=z},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var z=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return z.typeName=te.typeName,z},te.prototype.restoreState=function(z){this.createVisual(),ae.prototype.restoreState.call(this,z),this.drawingImgUrl=z.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.setDrawingImage()},te.typeName="FreehandMarker",te.title="Freehand marker",te.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>',te}(ze),Fe=function(ae){function te(z,ie,le){var ne=ae.call(this,z,le||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ne.typeBoxes=[],ne.currentType=ie,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return nt(te,ae),te.prototype.getUi=function(){var z=this,ie=document.createElement("div");ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2";for(var le=function(Ue){var At="both";switch(Ue){case 0:At="both";break;case 1:At="start";break;case 2:At="end";break;case 3:At="none"}var mt=document.createElement("div");if(mt.style.display="flex",mt.style.flexGrow="2",mt.style.alignItems="center",mt.style.justifyContent="space-between",mt.style.padding="5px",mt.style.borderWidth="2px",mt.style.borderStyle="solid",mt.style.borderColor=At===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",mt.addEventListener("click",function(){z.setCurrentType(At,mt)}),ie.appendChild(mt),At==="both"||At==="start"){var ft=document.createElement("div");ft.style.display="flex",ft.style.alignItems="center",ft.style.minHeight="20px",ft.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="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,ft.style.marginLeft="5px",mt.appendChild(ft)}var bt=document.createElement("div");bt.style.display="flex",bt.style.alignItems="center",bt.style.minHeight="20px",bt.style.flexGrow="2";var Gt=document.createElement("hr");if(Gt.style.minWidth="20px",Gt.style.border="0px",Gt.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),Gt.style.flexGrow="2",bt.appendChild(Gt),mt.appendChild(bt),At==="both"||At==="end"){var It=document.createElement("div");It.style.display="flex",It.style.alignItems="center",It.style.minHeight="20px",It.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,It.style.marginRight="5px",mt.appendChild(It)}ne.typeBoxes.push(mt)},ne=this,ye=0;ye<4;ye++)le(ye);return ie},te.prototype.setCurrentType=function(z,ie){var le=this;this.currentType=z,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(De),xt=function(ae){function te(z,ie,le){var ne=ae.call(this,z,ie,le)||this;return ne.arrowType="end",ne.arrowBaseHeight=10,ne.arrowBaseWidth=10,ne.getArrowPoints=ne.getArrowPoints.bind(ne),ne.setArrowType=ne.setArrowType.bind(ne),ne.arrowTypePanel=new Fe("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return nt(te,ae),te.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.arrow1&&z!==this.arrow2)},te.prototype.getArrowPoints=function(z,ie){var le=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return z-le/2+","+(ie+ne/2)+" "+z+","+(ie-ne/2)+" "+(z+le/2)+","+(ie+ne/2)},te.prototype.createTips=function(){this.arrow1=ge.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ge.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.arrow2)},te.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(ae.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",ge.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ge.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var z=0;Math.abs(this.x1-this.x2)>.1&&(z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ie=this.arrow1.transform.baseVal.getItem(0);ie.setRotate(z,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ie,0);var le=this.arrow2.transform.baseVal.getItem(0);le.setRotate(z+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(le,0)}},te.prototype.setArrowType=function(z){this.arrowType=z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var z=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return z.typeName=te.typeName,z},te.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var ie=z;this.arrowType=ie.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',te}($e),lt=function(ae){function te(z,ie,le){var ne=ae.call(this,z,ie,le)||this;return ne.fillColor=le.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new Be("Color",le.defaultColorSet,le.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return nt(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=te.typeName,z},te.typeName="CoverMarker",te.title="Cover marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',te}(Ge),_t=function(ae){function te(z,ie,le,ne){var ye=ae.call(this,z,ne||'<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 ye.opacities=[],ye.opacityBoxes=[],ye.opacities=ie,ye.currentOpacity=le,ye.setCurrentOpacity=ye.setCurrentOpacity.bind(ye),ye}return nt(te,ae),te.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",ie.style.justifyContent="space-between",this.opacities.forEach(function(le){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="center",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=le===z.currentOpacity?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentOpacity(le,ne)}),ie.appendChild(ne);var ye=document.createElement("div");ye.innerText=100*le+"%",ne.appendChild(ye),z.opacityBoxes.push(ne)}),ie},te.prototype.setCurrentOpacity=function(z,ie){var le=this;this.currentOpacity=z,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?le.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(De),wt=function(ae){function te(z,ie,le){var ne=ae.call(this,z,ie,le)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=le.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=le.defaultHighlightOpacity,ne.fillPanel=new Be("Color",le.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new _t("Opacity",le.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return nt(te,ae),te.prototype.setOpacity=function(z){this.opacity=z,this.visual&&ge.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=te.typeName,z},te.typeName="HighlightMarker",te.title="Highlight marker",te.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>',te}(lt),pe='<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>',de='<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>',qe=function(ae){function te(z,ie,le){var ne=ae.call(this,z,ie,le)||this;return ne.bgColor="transparent",ne.tipPosition={x:0,y:0},ne.tipBase1Position={x:0,y:0},ne.tipBase2Position={x:0,y:0},ne.tipMoving=!1,ne.color=le.defaultStrokeColor,ne.bgColor=le.defaultFillColor,ne.fontFamily=le.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setBgColor=ne.setBgColor.bind(ne),ne.getTipPoints=ne.getTipPoints.bind(ne),ne.positionTip=ne.positionTip.bind(ne),ne.setTipPoints=ne.setTipPoints.bind(ne),ne.colorPanel=new Be("Text color",le.defaultColorSet,ne.color,pe),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Be("Fill color",le.defaultColorSet,ne.bgColor,de),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Se("Font",le.defaultFontFamilies,le.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new rt,ne.tipGrip.visual.transform.baseVal.appendItem(ge.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return nt(te,ae),te.prototype.ownsTarget=function(z){return ae.prototype.ownsTarget.call(this,z)||this.tipGrip.ownsTarget(z)||this.tip===z},te.prototype.createTip=function(){ge.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ge.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},te.prototype.pointerDown=function(z,ie){this.state==="new"&&ae.prototype.pointerDown.call(this,z,ie),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ie)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,z,ie)},te.prototype.pointerUp=function(z){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,z);else{var ie=this.state==="creating";ae.prototype.pointerUp.call(this,z),this.setTipPoints(ie),this.positionTip()}},te.prototype.manipulate=function(z){if(this.tipMoving){var ie=this.unrotatePoint(z);this.tipPosition={x:ie.x-this.manipulationStartLeft,y:ie.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,z)},te.prototype.setBgColor=function(z){this.bgRectangle&&this.tip&&(ge.setAttributes(this.bgRectangle,[["fill",z]]),ge.setAttributes(this.tip,[["fill",z]])),this.bgColor=z,this.fillColorChanged(z)},te.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},te.prototype.setTipPoints=function(z){z===void 0&&(z=!1);var ie=Math.min(this.height/2,15),le=this.height/5;z&&(this.tipPosition={x:ie+le/2,y:this.height+20});var ne=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(le=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:ie,y:0},this.tipBase2Position={x:ie+le,y:0}):(this.tipBase1Position={x:0,y:ie},this.tipBase2Position={x:0,y:ie+le}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(le=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ie-le,y:0},this.tipBase2Position={x:this.width-ie,y:0}):(this.tipBase1Position={x:this.width,y:ie},this.tipBase2Position={x:this.width,y:ie+le}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ne<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(le=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ie-le,y:this.height},this.tipBase2Position={x:this.width-ie,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ie-le},this.tipBase2Position={x:this.width,y:this.height-ie}):ne<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(le=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:ie,y:this.height},this.tipBase2Position={x:ie+le,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ie},this.tipBase2Position={x:0,y:this.height-ie-le})},te.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.positionTip()},te.prototype.positionTip=function(){ge.setAttributes(this.tip,[["points",this.getTipPoints()]]);var z=this.tipGrip.visual.transform.baseVal.getItem(0);z.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(z,0)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.select=function(){this.positionTip(),ae.prototype.select.call(this)},te.prototype.getState=function(){var z=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ae.prototype.getState.call(this));return z.typeName=te.typeName,z},te.prototype.restoreState=function(z){var ie=z;this.bgColor=ie.bgColor,this.tipPosition=ie.tipPosition,ae.prototype.restoreState.call(this,z),this.createTip(),this.setTipPoints()},te.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.tipPosition={x:this.tipPosition.x*z,y:this.tipPosition.y*ie},this.positionTip()},te.typeName="CalloutMarker",te.title="Callout marker",te.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>',te}(Ie),Lt=function(ae){function te(z,ie,le){var ne=ae.call(this,z,ie,le)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.strokeColor=le.defaultColor,ne.strokeWidth=le.defaultStrokeWidth,ne.strokeDasharray=le.defaultStrokeDasharray,ne.fillColor=le.defaultFillColor,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.setOpacity=ne.setOpacity.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.strokePanel=new Be("Line color",me(le.defaultColorSet,["transparent"]),le.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Be("Fill color",me(le.defaultColorSet,["transparent"]),ne.fillColor,de),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new Ke("Line width",le.defaultStrokeWidths,le.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ze("Line style",le.defaultStrokeDasharrays,le.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.opacityPanel=new _t("Opacity",le.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return nt(te,ae),te.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual)},te.prototype.createVisual=function(){this.visual=ge.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)},te.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},te.prototype.manipulate=function(z){ae.prototype.manipulate.call(this,z)},te.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.setSize()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),ge.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},te.prototype.pointerUp=function(z){ae.prototype.pointerUp.call(this,z),this.setSize()},te.prototype.setStrokeColor=function(z){this.strokeColor=z,this.visual&&ge.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(z),this.stateChanged()},te.prototype.setFillColor=function(z){this.fillColor=z,this.visual&&ge.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(z),this.stateChanged()},te.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.visual&&ge.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.visual&&ge.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(z){this.opacity=z,this.visual&&ge.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var z=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this));return z.typeName=te.typeName,z},te.prototype.restoreState=function(z){var ie=z;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.opacity=ie.opacity,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},te.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.setSize()},te.typeName="EllipseMarker",te.title="Ellipse marker",te.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>',te}(ze),ct=function(ae){function te(z,ie,le){return ae.call(this,z,ie,le)||this}return nt(te,ae),Object.defineProperty(te.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.tip1&&z!==this.tip2)},te.prototype.createTips=function(){this.tip1=ge.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(ge.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ge.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(ge.createTransform()),this.visual.appendChild(this.tip2)},te.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ge.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()]]),ge.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 z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ie=this.tip1.transform.baseVal.getItem(0);ie.setRotate(z,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ie,0);var le=this.tip2.transform.baseVal.getItem(0);le.setRotate(z+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(le,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=te.typeName,z},te.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z),this.createTips(),this.adjustVisual()},te.typeName="MeasurementMarker",te.title="Measurement marker",te.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>',te}($e),Ee=function(ae){function te(z,ie,le){var ne=ae.call(this,z,ie,le)||this;return ne.strokePanel.colors=le.defaultColorSet,ne.fillColor="transparent",ne}return nt(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=te.typeName,z},te.typeName="EllipseFrameMarker",te.title="Ellipse frame marker",te.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>',te}(Lt),Xe=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(te){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(te)||(this.undoStack.push(te),JSON.stringify(this.lastRedoStep)!==JSON.stringify(te)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(te){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=te)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var te=this.undoStack.pop();return te!==void 0&&this.redoStack.push(te),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),Je=function(ae){function te(z,ie,le){var ne=ae.call(this,z,ie,le)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.curveX=0,ne.curveY=0,ne.manipulationStartCurveX=0,ne.manipulationStartCurveY=0,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.positionGrips=ne.positionGrips.bind(ne),ne.addControlGrips=ne.addControlGrips.bind(ne),ne.adjustVisual=ne.adjustVisual.bind(ne),ne.setupControlBox=ne.setupControlBox.bind(ne),ne.resize=ne.resize.bind(ne),ne.strokeColor=le.defaultColor,ne.strokeWidth=le.defaultStrokeWidth,ne.strokeDasharray=le.defaultStrokeDasharray,ne.strokePanel=new Be("Line color",le.defaultColorSet,le.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Ke("Line width",le.defaultStrokeWidths,le.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ze("Line style",le.defaultStrokeDasharrays,le.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return nt(te,ae),te.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.selectorCurve&&z!==this.visibleCurve&&!this.curveGrip.ownsTarget(z))},te.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},te.prototype.createVisual=function(){this.visual=ge.createGroup(),this.selectorCurve=ge.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ge.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)},te.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=z.x,this.curveY=z.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ie)&&(this.activeGrip=this.curveGrip,this._state="resize")},te.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ge.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ge.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ge.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=ge.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ge.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)},te.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var z=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-z/2,this.curveY-z/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()))},te.prototype.manipulate=function(z){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+z.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+z.y-this.manipulationStartY),ae.prototype.manipulate.call(this,z)},te.prototype.resize=function(z){this.activeGrip===this.curveGrip&&(this.curveX=z.x,this.curveY=z.y),ae.prototype.resize.call(this,z),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},te.prototype.setStrokeColor=function(z){this.strokeColor=z,this.adjustVisual(),this.colorChanged(z)},te.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.adjustVisual()},te.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.adjustVisual()},te.prototype.scale=function(z,ie){this.curveX=this.curveX*z,this.curveY=this.curveY*ie,ae.prototype.scale.call(this,z,ie)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return z.typeName=te.typeName,z},te.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var ie=z;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.curveX=ie.curveX,this.curveY=ie.curveY,this.createVisual(),this.adjustVisual()},te.typeName="CurveMarker",te.title="Curve marker",te.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>',te}(Te),Nt=function(ae){function te(z,ie,le){var ne=ae.call(this,z,ie,le)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.textColor="transparent",ne.fontSize="1rem",ne.isMoved=!1,ne.captionText="Caption",ne.PADDING=5,ne.captionBoxWidth=0,ne.captionBoxHeight=0,ne.strokeColor=le.defaultColor,ne.strokeWidth=le.defaultStrokeWidth,ne.strokeDasharray=le.defaultStrokeDasharray,ne.fillColor=le.defaultFillColor,ne.textColor=le.defaultStrokeColor,ne.fontFamily=le.defaultFontFamily,ne.fontSize=le.defaultCaptionFontSize,ne.captionText=le.defaultCaptionText,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.sizeCaption=ne.sizeCaption.bind(ne),ne.setCaptionText=ne.setCaptionText.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.finishTextEditing=ne.finishTextEditing.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.setTextColor=ne.setTextColor.bind(ne),ne.strokePanel=new Be("Line color",me(le.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Be("Fill color",me(le.defaultColorSet,["transparent"]),ne.fillColor,de),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new Ke("Line width",le.defaultStrokeWidths,le.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ze("Line style",le.defaultStrokeDasharrays,le.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new Se("Font",le.defaultFontFamilies,le.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new Be("Text color",le.defaultColorSet,ne.textColor,pe),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return nt(te,ae),te.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.frame&&z!==this.captionBg&&z!==this.captionElement)},te.prototype.createVisual=function(){this.visual=ge.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ge.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ge.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=ge.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()},te.prototype.setCaptionText=function(z){this.captionText=z,this.captionElement.textContent=this.captionText,this.sizeCaption()},te.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.isMoved=!1,this.pointerDownPoint=z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},te.prototype.manipulate=function(z){ae.prototype.manipulate.call(this,z),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(z.x-this.pointerDownPoint.x)>5||Math.abs(z.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.setSize()},te.prototype.sizeCaption=function(){var z=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=z.width+2*this.PADDING,this.captionBoxHeight=z.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ge.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')"]]),ge.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')"]])},te.prototype.showTextEditor=function(){var z=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(ie){ie.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ie){ie.key==="Enter"&&z.finishTextEditing(z.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ie){ie.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){z.finishTextEditing(z.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){z.finishTextEditing(z.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},te.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"))},te.prototype.finishTextEditing=function(z){this.setCaptionText(z.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},te.prototype.setFont=function(z){this.captionElement&&ge.setAttributes(this.captionElement,[["font-family",z]]),this.fontFamily=z,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},te.prototype.setTextColor=function(z){this.captionElement&&ge.setAttributes(this.captionElement,[["fill",z]]),this.textColor=z,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),ge.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(z){ae.prototype.pointerUp.call(this,z),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.dblClick=function(z,ie){ae.prototype.dblClick.call(this,z,ie),this.showTextEditor()},te.prototype.setStrokeColor=function(z){this.strokeColor=z,this.frame&&ge.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(z),this.stateChanged()},te.prototype.setFillColor=function(z){this.fillColor=z,this.captionBg&&ge.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(z),this.stateChanged()},te.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.frame&&ge.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.frame&&ge.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var z=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},ae.prototype.getState.call(this));return z.typeName=this.typeName,z},te.prototype.restoreState=function(z){var ie=z;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.textColor=ie.textColor,this.fontFamily=ie.fontFamily,this.captionText=ie.captionText,this.fontSize=ie.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},te.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.setSize()},te.typeName="CaptionFrameMarker",te.title="Caption frame marker",te.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>',te}(ze),ot=function(){function ae(te,z){z===void 0&&(z=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=z}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),Et=function(ae){function te(z,ie,le){var ne=ae.call(this,z,!1)||this;return ne.dataUrl=ie,ne.state=le,ne}return nt(te,ae),te}(ot),Re=function(ae){function te(z,ie,le){le===void 0&&(le=!1);var ne=ae.call(this,z,le)||this;return ne.marker=ie,ne}return nt(te,ae),te}(ot),dt=function(){function ae(){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 ae.prototype.addEventListener=function(te,z){this[te].push(z)},ae.prototype.removeEventListener=function(te,z){var ie=this[te].indexOf(z);ie>-1&&this[te].splice(ie,1)},ae}(),yt=function(){function ae(te){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new We,this._isOpen=!1,this.undoRedoManager=new Xe,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 dt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new he(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=te,this.targetRoot=document.body,this.width=te.clientWidth,this.height=te.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(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ct,we,xt,Ie,Ee,Lt,wt,qe,ct,lt,$e,Je,Nt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ct,we,xt,Ie,Lt,wt,qe]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ct,we,xt,Ie,wt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var z=this;this._availableMarkerTypes.splice(0),te.forEach(function(ie){if(typeof ie=="string"){var le=z.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===ie});le!==void 0&&z._availableMarkerTypes.push(le)}else z._availableMarkerTypes.push(ie)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(te){this._zoomLevel=te,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(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Oe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&xe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=xe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(z){return z(new ot(te))})},ae.prototype.render=function(){return Me(this,void 0,void 0,function(){var te;return je(this,function(z){switch(z.label){case 0:return this.setCurrentMarker(),(te=new He).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return z.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,z.sent()]}})})},ae.prototype.close=function(te){var z=this;if(te===void 0&&(te=!1),this.isOpen){var ie=!1;te||this.eventListeners.beforeclose.forEach(function(le){var ne=new ot(z,!0);le(ne),ne.defaultPrevented&&(ie=!0)}),ie||(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(le){return le(new ot(z))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var te,z=[],ie=0;ie<arguments.length;ie++)z[ie]=arguments[ie];(te=this._availableMarkerTypes).push.apply(te,z)},ae.prototype.addRenderEventListener=function(te){this.addEventListener("render",function(z){te(z.dataUrl,z.state)})},ae.prototype.removeRenderEventListener=function(te){},ae.prototype.addCloseEventListener=function(te){this.addEventListener("close",function(){te()})},ae.prototype.removeCloseEventListener=function(te){},ae.prototype.setupResizeObserver=function(){var te=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){te.resize(te.target.clientWidth,te.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return te.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ae.prototype.onPopupTargetResize=function(){var te=1*this.target.clientWidth/this.target.clientHeight,z=this.editorCanvas.clientWidth/te>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,ie=z<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/te;this.resize(z,ie)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(te,z){this._isResizing=!0;var ie=te/this.imageWidth,le=z/this.imageHeight;this.imageWidth=Math.round(te),this.imageHeight=Math.round(z),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(ie,le),this._isResizing=!1},ae.prototype.scaleMarkers=function(te,z){var ie,le=this;this._currentMarker&&this._currentMarker instanceof Ie?this._currentMarker.scale(te,z):(ie=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ne){ne!==le._currentMarker&&ne.scale(te,z)}),ie!==void 0&&this.setCurrentMarker(ie)},ae.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"},ae.prototype.setTopLeft=function(){var te=this.editingTarget.getBoundingClientRect(),z=this.editorCanvas.getBoundingClientRect();this.left=te.left-z.left,this.top=te.top-z.top},ae.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)},ae.prototype.addDefs=function(){for(var te,z=[],ie=0;ie<arguments.length;ie++)z[ie]=arguments[ie];this.defs=ge.createDefs(),this.addDefsToImage(),(te=this.defs).append.apply(te,z)},ae.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ae.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)},ae.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ae.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ae.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)},ae.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ae.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)},ae.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 te=document.createElement("a");te.href="https://markerjs.com/",te.target="_blank",te.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>',te.title="Powered by marker.js",te.style.display="grid",te.style.alignItems="center",te.style.justifyItems="center",te.style.padding="3px",te.style.width="20px",te.style.height="20px",this.logoUI.appendChild(te),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.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")},ae.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"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.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 te=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=te+"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 st(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 Ne(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ae.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ae.prototype.removeMarker=function(te){this.markerImage.removeChild(te.container),this.markers.indexOf(te)>-1&&this.markers.splice(this.markers.indexOf(te),1),te.dispose()},ae.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())},ae.prototype.toolbarButtonClicked=function(te,z){if(te==="marker"&&z!==void 0)this.createNewMarker(z);else if(te==="action")switch(z){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()}},ae.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var z=!1;if(this.eventListeners.markerbeforedelete.forEach(function(le){var ne=new Re(te,te._currentMarker,!0);le(ne),ne.defaultPrevented&&(z=!0)}),!z){var ie=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(le){return le(new Re(te,ie))})}}},ae.prototype.clear=function(){var te=this,z=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ye){var Ue=new Re(te,void 0,!0);ye(Ue),Ue.defaultPrevented&&(z=!0)}),!z)){this.setCurrentMarker();for(var ie=function(ye){var Ue=le.markers[ye];le.setCurrentMarker(le.markers[ye]),le._currentMarker.dispose(),le.markerImage.removeChild(le._currentMarker.container),le.markers.splice(le.markers.indexOf(le._currentMarker),1),le.eventListeners.markerdelete.forEach(function(At){return At(new Re(te,Ue))})},le=this,ne=this.markers.length-1;ne>=0;ne--)ie(ne);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var te;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=(te=this._currentMarker.notes)!==null&&te!==void 0?te:"",this.overlayContainer.appendChild(this.notesArea))},ae.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)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var z=this.getState(),ie=this.undoRedoManager.getLastUndoStep();if(!ie||ie.width===z.width&&ie.height===z.height){var le=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(z),le<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ne){return ne(new ot(te))})}else this.undoRedoManager.replaceLastUndoStep(z),this.eventListeners.statechange.forEach(function(ne){return ne(new ot(te))})}},ae.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ae.prototype.undoStep=function(){var te=this,z=this.undoRedoManager.undo();z!==void 0&&(this.restoreState(z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ie){return ie(new ot(te))}))},ae.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ae.prototype.redoStep=function(){var te=this,z=this.undoRedoManager.redo();z!==void 0&&(this.restoreState(z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ie){return ie(new ot(te))}))},ae.prototype.stepZoom=function(){var te=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=te<this.zoomSteps.length-1?this.zoomSteps[te+1]:this.zoomSteps[0]},ae.prototype.panTo=function(te){this.contentDiv.scrollBy({left:this.prevPanPoint.x-te.x,top:this.prevPanPoint.y-te.y}),this.prevPanPoint=te},ae.prototype.startRenderAndClose=function(){return Me(this,void 0,void 0,function(){var te,z,ie=this;return je(this,function(le){switch(le.label){case 0:return[4,this.render()];case 1:return te=le.sent(),z=this.getState(),this.eventListeners.render.forEach(function(ne){return ne(new Et(ie,te,z))}),this.close(!0),[2]}})})},ae.prototype.getState=function(te){te===!0&&this.setCurrentMarker();var z={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ie){return z.markers.push(ie.getState())}),z},ae.prototype.restoreState=function(te){var z=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);te.markers.forEach(function(ie){var le=z._availableMarkerTypes.find(function(ye){return ye.typeName===ie.typeName});if(le!==void 0){var ne=z.addNewMarker(le);ne.restoreState(ie),z.markers.push(ne)}}),te.width&&te.height&&(te.width!==this.imageWidth||te.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/te.width,this.imageHeight/te.height),this.eventListeners.restorestate.forEach(function(ie){return ie(new ot(z))})},ae.prototype.addNewMarker=function(te){var z=ge.createGroup();return this.markerImage.appendChild(z),new te(z,this.overlayContainer,this.settings)},ae.prototype.createNewMarker=function(te){var z,ie=this;(z=typeof te=="string"?this._availableMarkerTypes.find(function(le){return le.typeName===te}):te)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(z),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(z.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(le){return le(new Re(ie,ie._currentMarker))}))},ae.prototype.markerCreated=function(te){var z=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(te),this.setCurrentMarker(te),te instanceof we&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(we):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ie){return ie(new Re(z,z._currentMarker))})},ae.prototype.colorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=te,this.settings.defaultStrokeColor=te)},ae.prototype.fillColorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=te)},ae.prototype.markerStateChanged=function(te){var z=this;this.eventListeners.markerchange.forEach(function(ie){return ie(new Re(z,te))})},ae.prototype.setCurrentMarker=function(te){var z=this;this._currentMarker!==te&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ie){return ie(new Re(z,z._currentMarker))})),this._currentMarker=te,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(ie){return ie(new Re(z,z._currentMarker))}))},ae.prototype.onPointerDown=function(te){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||te.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var z=this.markers.find(function(ie){return ie.ownsTarget(te.target)});z!==void 0?(this.setCurrentMarker(z),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:te.clientX,y:te.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY))},ae.prototype.onDblClick=function(te){if(this._isFocused||this.focus(),this.mode==="select"){var z=this.markers.find(function(ie){return ie.ownsTarget(te.target)});z!==void 0&&z!==this._currentMarker&&this.setCurrentMarker(z),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target):this.setCurrentMarker()}},ae.prototype.onPointerMove=function(te){this.touchPoints!==1&&te.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||te.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(te.clientX,te.clientY)):this.zoomLevel>1&&this.panTo({x:te.clientX,y:te.clientY}))},ae.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(te,z){var ie=this.markerImage.getBoundingClientRect();return{x:(te-ie.left)/this.zoomLevel,y:(z-ie.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"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()},ae.prototype.addLicenseKey=function(te){Oe.addKey(te)},ae.prototype.addEventListener=function(te,z){this.eventListeners.addEventListener(te,z)},ae.prototype.removeEventListener=function(te,z){this.eventListeners.removeEventListener(te,z)},ae.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(z){return z(new ot(te))}))},ae.prototype.blur=function(){var te=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(z){return z(new ot(te))}))},ae.instanceCounter=0,ae}()},66042:function(Dt,Rt,fe){"use strict";fe.d(Rt,{Z:function(){return Ie}});var oe=fe(27247),nt=fe(11913),Me=fe(43403),je=fe(34280),me=fe(59301),ge=me.createContext(null),Oe=me.createContext({}),He=ge,xe=fe(74430),he=fe(32855),et=fe(92310),ve=fe.n(et),st=fe(77900),Ne=fe(10228),De=fe(26112),Be=fe(43079),Ae=fe(8654),tt=["prefixCls","className","containerRef"],rt=function(Fe){var xt=Fe.prefixCls,lt=Fe.className,_t=Fe.containerRef,wt=(0,Be.Z)(Fe,tt),pe=me.useContext(Oe),de=pe.panel,qe=(0,Ae.x1)(de,_t);return me.createElement("div",(0,he.Z)({className:ve()("".concat(xt,"-content"),lt),role:"dialog",ref:qe},(0,De.Z)(Fe,{aria:!0}),{"aria-modal":"true"},wt))},at=rt,ze=fe(48736);function Ge(we){return typeof we=="string"&&String(Number(we))===we?((0,ze.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(we)):we}function Ke(we){warning(!("wrapperClassName"in we),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!we.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ze={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ct(we,Fe){var xt,lt,_t,wt=we.prefixCls,pe=we.open,de=we.placement,qe=we.inline,Lt=we.push,ct=we.forceRender,Ee=we.autoFocus,Xe=we.keyboard,Je=we.classNames,Nt=we.rootClassName,ot=we.rootStyle,Et=we.zIndex,Re=we.className,dt=we.id,yt=we.style,ae=we.motion,te=we.width,z=we.height,ie=we.children,le=we.mask,ne=we.maskClosable,ye=we.maskMotion,Ue=we.maskClassName,At=we.maskStyle,mt=we.afterOpenChange,ft=we.onClose,bt=we.onMouseEnter,Gt=we.onMouseOver,It=we.onMouseLeave,tn=we.onClick,nn=we.onKeyDown,St=we.onKeyUp,vn=we.styles,Zt=we.drawerRender,qt=me.useRef(),it=me.useRef(),fn=me.useRef();me.useImperativeHandle(Fe,function(){return qt.current});var Ht=function(nr){var kt=nr.keyCode,Ot=nr.shiftKey;switch(kt){case Ne.Z.TAB:{if(kt===Ne.Z.TAB){if(!Ot&&document.activeElement===fn.current){var ut;(ut=it.current)===null||ut===void 0||ut.focus({preventScroll:!0})}else if(Ot&&document.activeElement===it.current){var gt;(gt=fn.current)===null||gt===void 0||gt.focus({preventScroll:!0})}}break}case Ne.Z.ESC:{ft&&Xe&&(nr.stopPropagation(),ft(nr));break}}};me.useEffect(function(){if(pe&&Ee){var Mn;(Mn=qt.current)===null||Mn===void 0||Mn.focus({preventScroll:!0})}},[pe]);var Kt=me.useState(!1),un=(0,nt.Z)(Kt,2),Nn=un[0],dn=un[1],kn=me.useContext(He),tr;typeof Lt=="boolean"?tr=Lt?{}:{distance:0}:tr=Lt||{};var Un=(xt=(lt=(_t=tr)===null||_t===void 0?void 0:_t.distance)!==null&&lt!==void 0?lt:kn==null?void 0:kn.pushDistance)!==null&&xt!==void 0?xt:180,Nr=me.useMemo(function(){return{pushDistance:Un,push:function(){dn(!0)},pull:function(){dn(!1)}}},[Un]);me.useEffect(function(){if(pe){var Mn;kn==null||(Mn=kn.push)===null||Mn===void 0||Mn.call(kn)}else{var nr;kn==null||(nr=kn.pull)===null||nr===void 0||nr.call(kn)}},[pe]),me.useEffect(function(){return function(){var Mn;kn==null||(Mn=kn.pull)===null||Mn===void 0||Mn.call(kn)}},[]);var Mr=le&&me.createElement(st.default,(0,he.Z)({key:"mask"},ye,{visible:pe}),function(Mn,nr){var kt=Mn.className,Ot=Mn.style;return me.createElement("div",{className:ve()("".concat(wt,"-mask"),kt,Je==null?void 0:Je.mask,Ue),style:(0,oe.Z)((0,oe.Z)((0,oe.Z)({},Ot),At),vn==null?void 0:vn.mask),onClick:ne&&pe?ft:void 0,ref:nr})}),dr=typeof ae=="function"?ae(de):ae,Xn={};if(Nn&&Un)switch(de){case"top":Xn.transform="translateY(".concat(Un,"px)");break;case"bottom":Xn.transform="translateY(".concat(-Un,"px)");break;case"left":Xn.transform="translateX(".concat(Un,"px)");break;default:Xn.transform="translateX(".concat(-Un,"px)");break}de==="left"||de==="right"?Xn.width=Ge(te):Xn.height=Ge(z);var hn={onMouseEnter:bt,onMouseOver:Gt,onMouseLeave:It,onClick:tn,onKeyDown:nn,onKeyUp:St},jn=me.createElement(st.default,(0,he.Z)({key:"panel"},dr,{visible:pe,forceRender:ct,onVisibleChanged:function(nr){mt==null||mt(nr)},removeOnLeave:!1,leavedClassName:"".concat(wt,"-content-wrapper-hidden")}),function(Mn,nr){var kt=Mn.className,Ot=Mn.style,ut=me.createElement(at,(0,he.Z)({id:dt,containerRef:nr,prefixCls:wt,className:ve()(Re,Je==null?void 0:Je.content),style:(0,oe.Z)((0,oe.Z)({},yt),vn==null?void 0:vn.content)},(0,De.Z)(we,{aria:!0}),hn),ie);return me.createElement("div",(0,he.Z)({className:ve()("".concat(wt,"-content-wrapper"),Je==null?void 0:Je.wrapper,kt),style:(0,oe.Z)((0,oe.Z)((0,oe.Z)({},Xn),Ot),vn==null?void 0:vn.wrapper)},(0,De.Z)(we,{data:!0})),Zt?Zt(ut):ut)}),Jn=(0,oe.Z)({},ot);return Et&&(Jn.zIndex=Et),me.createElement(He.Provider,{value:Nr},me.createElement("div",{className:ve()(wt,"".concat(wt,"-").concat(de),Nt,(0,xe.Z)((0,xe.Z)({},"".concat(wt,"-open"),pe),"".concat(wt,"-inline"),qe)),style:Jn,tabIndex:-1,ref:qt,onKeyDown:Ht},Mr,me.createElement("div",{tabIndex:0,ref:it,style:Ze,"aria-hidden":"true","data-sentinel":"start"}),jn,me.createElement("div",{tabIndex:0,ref:fn,style:Ze,"aria-hidden":"true","data-sentinel":"end"})))}var We=me.forwardRef(Ct),Te=We,$e=function(Fe){var xt=Fe.open,lt=xt===void 0?!1:xt,_t=Fe.prefixCls,wt=_t===void 0?"rc-drawer":_t,pe=Fe.placement,de=pe===void 0?"right":pe,qe=Fe.autoFocus,Lt=qe===void 0?!0:qe,ct=Fe.keyboard,Ee=ct===void 0?!0:ct,Xe=Fe.width,Je=Xe===void 0?378:Xe,Nt=Fe.mask,ot=Nt===void 0?!0:Nt,Et=Fe.maskClosable,Re=Et===void 0?!0:Et,dt=Fe.getContainer,yt=Fe.forceRender,ae=Fe.afterOpenChange,te=Fe.destroyOnClose,z=Fe.onMouseEnter,ie=Fe.onMouseOver,le=Fe.onMouseLeave,ne=Fe.onClick,ye=Fe.onKeyDown,Ue=Fe.onKeyUp,At=Fe.panelRef,mt=me.useState(!1),ft=(0,nt.Z)(mt,2),bt=ft[0],Gt=ft[1],It=me.useState(!1),tn=(0,nt.Z)(It,2),nn=tn[0],St=tn[1];(0,je.Z)(function(){St(!0)},[]);var vn=nn?lt:!1,Zt=me.useRef(),qt=me.useRef();(0,je.Z)(function(){vn&&(qt.current=document.activeElement)},[vn]);var it=function(Nn){var dn;if(Gt(Nn),ae==null||ae(Nn),!Nn&&qt.current&&!((dn=Zt.current)!==null&&dn!==void 0&&dn.contains(qt.current))){var kn;(kn=qt.current)===null||kn===void 0||kn.focus({preventScroll:!0})}},fn=me.useMemo(function(){return{panel:At}},[At]);if(!yt&&!bt&&!vn&&te)return null;var Ht={onMouseEnter:z,onMouseOver:ie,onMouseLeave:le,onClick:ne,onKeyDown:ye,onKeyUp:Ue},Kt=(0,oe.Z)((0,oe.Z)({},Fe),{},{open:vn,prefixCls:wt,placement:de,autoFocus:Lt,keyboard:Ee,width:Je,mask:ot,maskClosable:Re,inline:dt===!1,afterOpenChange:it,ref:Zt},Ht);return me.createElement(Oe.Provider,{value:fn},me.createElement(Me.Z,{open:vn||yt||bt,autoDestroy:!1,getContainer:dt,autoLock:ot&&(vn||bt)},me.createElement(Te,Kt)))},Se=$e,Ie=Se},25930:function(Dt,Rt,fe){"use strict";fe.d(Rt,{Cd:function(){return $e}});var oe=fe(32855),nt=fe(27247),Me=fe(43079),je=fe(59301),me=fe(92310),ge=fe.n(me),Oe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},He=function(){var we=(0,je.useRef)([]),Fe=(0,je.useRef)(null);return(0,je.useEffect)(function(){var xt=Date.now(),lt=!1;we.current.forEach(function(_t){if(_t){lt=!0;var wt=_t.style;wt.transitionDuration=".3s, .3s, .3s, .06s",Fe.current&&xt-Fe.current<100&&(wt.transitionDuration="0s, 0s")}}),lt&&(Fe.current=Date.now())}),we.current},xe=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],he=function(we){var Fe=(0,nt.Z)((0,nt.Z)({},Oe),we),xt=Fe.className,lt=Fe.percent,_t=Fe.prefixCls,wt=Fe.strokeColor,pe=Fe.strokeLinecap,de=Fe.strokeWidth,qe=Fe.style,Lt=Fe.trailColor,ct=Fe.trailWidth,Ee=Fe.transition,Xe=(0,Me.Z)(Fe,xe);delete Xe.gapPosition;var Je=Array.isArray(lt)?lt:[lt],Nt=Array.isArray(wt)?wt:[wt],ot=He(),Et=de/2,Re=100-de/2,dt="M ".concat(pe==="round"?Et:0,",").concat(Et,`
L `).concat(pe==="round"?Re:100,",").concat(Et),yt="0 0 100 ".concat(de),ae=0;return je.createElement("svg",(0,oe.Z)({className:ge()("".concat(_t,"-line"),xt),viewBox:yt,preserveAspectRatio:"none",style:qe},Xe),je.createElement("path",{className:"".concat(_t,"-line-trail"),d:dt,strokeLinecap:pe,stroke:Lt,strokeWidth:ct||de,fillOpacity:"0"}),Je.map(function(te,z){var ie=1;switch(pe){case"round":ie=1-de/100;break;case"square":ie=1-de/2/100;break;default:ie=1;break}var le={strokeDasharray:"".concat(te*ie,"px, 100px"),strokeDashoffset:"-".concat(ae,"px"),transition:Ee||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ne=Nt[z]||Nt[Nt.length-1];return ae+=te,je.createElement("path",{key:z,className:"".concat(_t,"-line-path"),d:dt,strokeLinecap:pe,stroke:ne,strokeWidth:de,fillOpacity:"0",ref:function(Ue){ot[z]=Ue},style:le})}))},et=he,ve=fe(34666),st=fe(11913),Ne=fe(47273),De=0,Be=(0,Ne.Z)();function Ae(){var Ie;return Be?(Ie=De,De+=1):Ie="TEST_OR_SSR",Ie}var tt=function(Ie){var we=je.useState(),Fe=(0,st.Z)(we,2),xt=Fe[0],lt=Fe[1];return je.useEffect(function(){lt("rc_progress_".concat(Ae()))},[]),Ie||xt},rt=function(we){var Fe=we.bg,xt=we.children;return je.createElement("div",{style:{width:"100%",height:"100%",background:Fe}},xt)};function at(Ie,we){return Object.keys(Ie).map(function(Fe){var xt=parseFloat(Fe),lt="".concat(Math.floor(xt*we),"%");return"".concat(Ie[Fe]," ").concat(lt)})}var ze=je.forwardRef(function(Ie,we){var Fe=Ie.prefixCls,xt=Ie.color,lt=Ie.gradientId,_t=Ie.radius,wt=Ie.style,pe=Ie.ptg,de=Ie.strokeLinecap,qe=Ie.strokeWidth,Lt=Ie.size,ct=Ie.gapDegree,Ee=xt&&(0,ve.Z)(xt)==="object",Xe=Ee?"#FFF":void 0,Je=Lt/2,Nt=je.createElement("circle",{className:"".concat(Fe,"-circle-path"),r:_t,cx:Je,cy:Je,stroke:Xe,strokeLinecap:de,strokeWidth:qe,opacity:pe===0?0:1,style:wt,ref:we});if(!Ee)return Nt;var ot="".concat(lt,"-conic"),Et=ct?"".concat(180+ct/2,"deg"):"0deg",Re=at(xt,(360-ct)/360),dt=at(xt,1),yt="conic-gradient(from ".concat(Et,", ").concat(Re.join(", "),")"),ae="linear-gradient(to ".concat(ct?"bottom":"top",", ").concat(dt.join(", "),")");return je.createElement(je.Fragment,null,je.createElement("mask",{id:ot},Nt),je.createElement("foreignObject",{x:0,y:0,width:Lt,height:Lt,mask:"url(#".concat(ot,")")},je.createElement(rt,{bg:ae},je.createElement(rt,{bg:yt}))))}),Ge=ze,Ke=100,Ze=function(we,Fe,xt,lt,_t,wt,pe,de,qe,Lt){var ct=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ee=xt/100*360*((360-wt)/360),Xe=wt===0?0:{bottom:0,top:180,left:90,right:-90}[pe],Je=(100-lt)/100*Fe;qe==="round"&&lt!==100&&(Je+=Lt/2,Je>=Fe&&(Je=Fe-.01));var Nt=Ke/2;return{stroke:typeof de=="string"?de:void 0,strokeDasharray:"".concat(Fe,"px ").concat(we),strokeDashoffset:Je+ct,transform:"rotate(".concat(_t+Ee+Xe,"deg)"),transformOrigin:"".concat(Nt,"px ").concat(Nt,"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}},Ct=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function We(Ie){var we=Ie!=null?Ie:[];return Array.isArray(we)?we:[we]}var Te=function(we){var Fe=(0,nt.Z)((0,nt.Z)({},Oe),we),xt=Fe.id,lt=Fe.prefixCls,_t=Fe.steps,wt=Fe.strokeWidth,pe=Fe.trailWidth,de=Fe.gapDegree,qe=de===void 0?0:de,Lt=Fe.gapPosition,ct=Fe.trailColor,Ee=Fe.strokeLinecap,Xe=Fe.style,Je=Fe.className,Nt=Fe.strokeColor,ot=Fe.percent,Et=(0,Me.Z)(Fe,Ct),Re=Ke/2,dt=tt(xt),yt="".concat(dt,"-gradient"),ae=Re-wt/2,te=Math.PI*2*ae,z=qe>0?90+qe/2:-90,ie=te*((360-qe)/360),le=(0,ve.Z)(_t)==="object"?_t:{count:_t,gap:2},ne=le.count,ye=le.gap,Ue=We(ot),At=We(Nt),mt=At.find(function(St){return St&&(0,ve.Z)(St)==="object"}),ft=mt&&(0,ve.Z)(mt)==="object",bt=ft?"butt":Ee,Gt=Ze(te,ie,0,100,z,qe,Lt,ct,bt,wt),It=He(),tn=function(){var vn=0;return Ue.map(function(Zt,qt){var it=At[qt]||At[At.length-1],fn=Ze(te,ie,vn,Zt,z,qe,Lt,it,bt,wt);return vn+=Zt,je.createElement(Ge,{key:qt,color:it,ptg:Zt,radius:ae,prefixCls:lt,gradientId:yt,style:fn,strokeLinecap:bt,strokeWidth:wt,gapDegree:qe,ref:function(Kt){It[qt]=Kt},size:Ke})}).reverse()},nn=function(){var vn=Math.round(ne*(Ue[0]/100)),Zt=100/ne,qt=0;return new Array(ne).fill(null).map(function(it,fn){var Ht=fn<=vn-1?At[0]:ct,Kt=Ht&&(0,ve.Z)(Ht)==="object"?"url(#".concat(yt,")"):void 0,un=Ze(te,ie,qt,Zt,z,qe,Lt,Ht,"butt",wt,ye);return qt+=(ie-un.strokeDashoffset+ye)*100/ie,je.createElement("circle",{key:fn,className:"".concat(lt,"-circle-path"),r:ae,cx:Re,cy:Re,stroke:Kt,strokeWidth:wt,opacity:1,style:un,ref:function(dn){It[fn]=dn}})})};return je.createElement("svg",(0,oe.Z)({className:ge()("".concat(lt,"-circle"),Je),viewBox:"0 0 ".concat(Ke," ").concat(Ke),style:Xe,id:xt,role:"presentation"},Et),!ne&&je.createElement("circle",{className:"".concat(lt,"-circle-trail"),r:ae,cx:Re,cy:Re,stroke:ct,strokeLinecap:bt,strokeWidth:pe||wt,style:Gt}),ne?nn():tn())},$e=Te,Se={Line:et,Circle:$e}},738:function(Dt,Rt,fe){"use strict";fe.d(Rt,{Z:function(){return at}});var oe=fe(32855),nt=fe(74430),Me=fe(11913),je=fe(43079),me=fe(92310),ge=fe.n(me),Oe=fe(18929),He=fe(10228),xe=fe(26112),he=fe(59301);function et(ze,Ge){var Ke=ze.disabled,Ze=ze.prefixCls,Ct=ze.character,We=ze.characterRender,Te=ze.index,$e=ze.count,Se=ze.value,Ie=ze.allowHalf,we=ze.focused,Fe=ze.onHover,xt=ze.onClick,lt=function(Ee){Fe(Ee,Te)},_t=function(Ee){xt(Ee,Te)},wt=function(Ee){Ee.keyCode===He.Z.ENTER&&xt(Ee,Te)},pe=Te+1,de=new Set([Ze]);Se===0&&Te===0&&we?de.add("".concat(Ze,"-focused")):Ie&&Se+.5>=pe&&Se<pe?(de.add("".concat(Ze,"-half")),de.add("".concat(Ze,"-active")),we&&de.add("".concat(Ze,"-focused"))):(pe<=Se?de.add("".concat(Ze,"-full")):de.add("".concat(Ze,"-zero")),pe===Se&&we&&de.add("".concat(Ze,"-focused")));var qe=typeof Ct=="function"?Ct(ze):Ct,Lt=he.createElement("li",{className:ge()(Array.from(de)),ref:Ge},he.createElement("div",{onClick:Ke?null:_t,onKeyDown:Ke?null:wt,onMouseMove:Ke?null:lt,role:"radio","aria-checked":Se>Te?"true":"false","aria-posinset":Te+1,"aria-setsize":$e,tabIndex:Ke?-1:0},he.createElement("div",{className:"".concat(Ze,"-first")},qe),he.createElement("div",{className:"".concat(Ze,"-second")},qe)));return We&&(Lt=We(Lt,ze)),Lt}var ve=he.forwardRef(et);function st(){var ze=he.useRef({});function Ge(Ze){return ze.current[Ze]}function Ke(Ze){return function(Ct){ze.current[Ze]=Ct}}return[Ge,Ke]}function Ne(ze){var Ge=ze.pageXOffset,Ke="scrollLeft";if(typeof Ge!="number"){var Ze=ze.document;Ge=Ze.documentElement[Ke],typeof Ge!="number"&&(Ge=Ze.body[Ke])}return Ge}function De(ze){var Ge,Ke,Ze=ze.ownerDocument,Ct=Ze.body,We=Ze&&Ze.documentElement,Te=ze.getBoundingClientRect();return Ge=Te.left,Ke=Te.top,Ge-=We.clientLeft||Ct.clientLeft||0,Ke-=We.clientTop||Ct.clientTop||0,{left:Ge,top:Ke}}function Be(ze){var Ge=De(ze),Ke=ze.ownerDocument,Ze=Ke.defaultView||Ke.parentWindow;return Ge.left+=Ne(Ze),Ge.left}var Ae=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function tt(ze,Ge){var Ke=ze.prefixCls,Ze=Ke===void 0?"rc-rate":Ke,Ct=ze.className,We=ze.defaultValue,Te=ze.value,$e=ze.count,Se=$e===void 0?5:$e,Ie=ze.allowHalf,we=Ie===void 0?!1:Ie,Fe=ze.allowClear,xt=Fe===void 0?!0:Fe,lt=ze.keyboard,_t=lt===void 0?!0:lt,wt=ze.character,pe=wt===void 0?"\u2605":wt,de=ze.characterRender,qe=ze.disabled,Lt=ze.direction,ct=Lt===void 0?"ltr":Lt,Ee=ze.tabIndex,Xe=Ee===void 0?0:Ee,Je=ze.autoFocus,Nt=ze.onHoverChange,ot=ze.onChange,Et=ze.onFocus,Re=ze.onBlur,dt=ze.onKeyDown,yt=ze.onMouseLeave,ae=(0,je.Z)(ze,Ae),te=st(),z=(0,Me.Z)(te,2),ie=z[0],le=z[1],ne=he.useRef(null),ye=function(){if(!qe){var hn;(hn=ne.current)===null||hn===void 0||hn.focus()}};he.useImperativeHandle(Ge,function(){return{focus:ye,blur:function(){if(!qe){var hn;(hn=ne.current)===null||hn===void 0||hn.blur()}}}});var Ue=(0,Oe.Z)(We||0,{value:Te}),At=(0,Me.Z)(Ue,2),mt=At[0],ft=At[1],bt=(0,Oe.Z)(null),Gt=(0,Me.Z)(bt,2),It=Gt[0],tn=Gt[1],nn=function(hn,jn){var Jn=ct==="rtl",Mn=hn+1;if(we){var nr=ie(hn),kt=Be(nr),Ot=nr.clientWidth;(Jn&&jn-kt>Ot/2||!Jn&&jn-kt<Ot/2)&&(Mn-=.5)}return Mn},St=function(hn){ft(hn),ot==null||ot(hn)},vn=he.useState(!1),Zt=(0,Me.Z)(vn,2),qt=Zt[0],it=Zt[1],fn=function(){it(!0),Et==null||Et()},Ht=function(){it(!1),Re==null||Re()},Kt=he.useState(null),un=(0,Me.Z)(Kt,2),Nn=un[0],dn=un[1],kn=function(hn,jn){var Jn=nn(jn,hn.pageX);Jn!==It&&(dn(Jn),tn(null)),Nt==null||Nt(Jn)},tr=function(hn){qe||(dn(null),tn(null),Nt==null||Nt(void 0)),hn&&(yt==null||yt(hn))},Un=function(hn,jn){var Jn=nn(jn,hn.pageX),Mn=!1;xt&&(Mn=Jn===mt),tr(),St(Mn?0:Jn),tn(Mn?Jn:null)},Nr=function(hn){var jn=hn.keyCode,Jn=ct==="rtl",Mn=we?.5:1;_t&&(jn===He.Z.RIGHT&&mt<Se&&!Jn?(St(mt+Mn),hn.preventDefault()):jn===He.Z.LEFT&&mt>0&&!Jn||jn===He.Z.RIGHT&&mt>0&&Jn?(St(mt-Mn),hn.preventDefault()):jn===He.Z.LEFT&&mt<Se&&Jn&&(St(mt+Mn),hn.preventDefault())),dt==null||dt(hn)};he.useEffect(function(){Je&&!qe&&ye()},[]);var Mr=new Array(Se).fill(0).map(function(Xn,hn){return he.createElement(ve,{ref:le(hn),index:hn,count:Se,disabled:qe,prefixCls:"".concat(Ze,"-star"),allowHalf:we,value:Nn===null?mt:Nn,onClick:Un,onHover:kn,key:Xn||hn,character:pe,characterRender:de,focused:qt})}),dr=ge()(Ze,Ct,(0,nt.Z)((0,nt.Z)({},"".concat(Ze,"-disabled"),qe),"".concat(Ze,"-rtl"),ct==="rtl"));return he.createElement("ul",(0,oe.Z)({className:dr,onMouseLeave:tr,tabIndex:qe?-1:Xe,onFocus:qe?null:fn,onBlur:qe?null:Ht,onKeyDown:qe?null:Nr,ref:ne},(0,xe.Z)(ae,{aria:!0,data:!0,attr:!0})),Mr)}var rt=he.forwardRef(tt),at=rt},6551:function(Dt,Rt,fe){"use strict";fe.d(Rt,{ZP:function(){return Oe}});var oe=fe(11913),nt=fe(59301),Me=fe(47273),je=0,me=(0,Me.Z)();function ge(){var He;return me?(He=je,je+=1):He="TEST_OR_SSR",He}function Oe(He){var xe=nt.useState(),he=(0,oe.Z)(xe,2),et=he[0],ve=he[1];return nt.useEffect(function(){ve("rc_select_".concat(ge()))},[]),He||et}},37463:function(Dt,Rt,fe){"use strict";fe.d(Rt,{Ac:function(){return it},Xo:function(){return Ht},Wx:function(){return un},ZP:function(){return An},lk:function(){return at}});var oe=fe(32855),nt=fe(3300),Me=fe(74430),je=fe(27247),me=fe(11913),ge=fe(43079),Oe=fe(34666),He=fe(18929),xe=fe(48736),he=fe(59301),et=fe(92310),ve=fe.n(et),st=fe(34280),Ne=fe(49658),De=fe(8654),Be=function(Le){var Pt=Le.className,ht=Le.customizeIcon,_e=Le.customizeIconProps,pt=Le.children,Jt=Le.onMouseDown,ln=Le.onClick,pn=typeof ht=="function"?ht(_e):ht;return he.createElement("span",{className:Pt,onMouseDown:function(Qt){Qt.preventDefault(),Jt==null||Jt(Qt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ln,"aria-hidden":!0},pn!==void 0?pn:he.createElement("span",{className:ve()(Pt.split(/\s+/).map(function(zt){return"".concat(zt,"-icon")}))},pt))},Ae=Be,tt=function(Le,Pt,ht,_e,pt){var Jt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ln=arguments.length>6?arguments[6]:void 0,pn=arguments.length>7?arguments[7]:void 0,zt=he.useMemo(function(){if((0,Oe.Z)(_e)==="object")return _e.clearIcon;if(pt)return pt},[_e,pt]),Qt=he.useMemo(function(){return!!(!Jt&&_e&&(ht.length||ln)&&!(pn==="combobox"&&ln===""))},[_e,Jt,ht.length,ln,pn]);return{allowClear:Qt,clearIcon:he.createElement(Ae,{className:"".concat(Le,"-clear"),onMouseDown:Pt,customizeIcon:zt},"\xD7")}},rt=he.createContext(null);function at(){return he.useContext(rt)}function ze(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Le=he.useState(!1),Pt=(0,me.Z)(Le,2),ht=Pt[0],_e=Pt[1],pt=he.useRef(null),Jt=function(){window.clearTimeout(pt.current)};he.useEffect(function(){return Jt},[]);var ln=function(zt,Qt){Jt(),pt.current=window.setTimeout(function(){_e(zt),Qt&&Qt()},ke)};return[ht,ln,Jt]}function Ge(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Le=he.useRef(null),Pt=he.useRef(null);he.useEffect(function(){return function(){window.clearTimeout(Pt.current)}},[]);function ht(_e){(_e||Le.current===null)&&(Le.current=_e),window.clearTimeout(Pt.current),Pt.current=window.setTimeout(function(){Le.current=null},ke)}return[function(){return Le.current},ht]}function Ke(ke,Le,Pt,ht){var _e=he.useRef(null);_e.current={open:Le,triggerOpen:Pt,customizedTrigger:ht},he.useEffect(function(){function pt(Jt){var ln;if(!((ln=_e.current)!==null&&ln!==void 0&&ln.customizedTrigger)){var pn=Jt.target;pn.shadowRoot&&Jt.composed&&(pn=Jt.composedPath()[0]||pn),_e.current.open&&ke().filter(function(zt){return zt}).every(function(zt){return!zt.contains(pn)&&zt!==pn})&&_e.current.triggerOpen(!1)}}return window.addEventListener("mousedown",pt),function(){return window.removeEventListener("mousedown",pt)}},[])}var Ze=fe(10228);function Ct(ke){return ke&&![Ze.Z.ESC,Ze.Z.SHIFT,Ze.Z.BACKSPACE,Ze.Z.TAB,Ze.Z.WIN_KEY,Ze.Z.ALT,Ze.Z.META,Ze.Z.WIN_KEY_RIGHT,Ze.Z.CTRL,Ze.Z.SEMICOLON,Ze.Z.EQUALS,Ze.Z.CAPS_LOCK,Ze.Z.CONTEXT_MENU,Ze.Z.F1,Ze.Z.F2,Ze.Z.F3,Ze.Z.F4,Ze.Z.F5,Ze.Z.F6,Ze.Z.F7,Ze.Z.F8,Ze.Z.F9,Ze.Z.F10,Ze.Z.F11,Ze.Z.F12].includes(ke)}var We=fe(26112),Te=fe(11780);function $e(ke,Le,Pt){var ht=(0,je.Z)((0,je.Z)({},ke),Pt?Le:{});return Object.keys(Le).forEach(function(_e){var pt=Le[_e];typeof pt=="function"&&(ht[_e]=function(){for(var Jt,ln=arguments.length,pn=new Array(ln),zt=0;zt<ln;zt++)pn[zt]=arguments[zt];return pt.apply(void 0,pn),(Jt=ke[_e])===null||Jt===void 0?void 0:Jt.call.apply(Jt,[ke].concat(pn))})}),ht}var Se=$e,Ie=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],we=function(Le,Pt){var ht=Le.prefixCls,_e=Le.id,pt=Le.inputElement,Jt=Le.autoFocus,ln=Le.autoComplete,pn=Le.editable,zt=Le.activeDescendantId,Qt=Le.value,Pe=Le.open,Tn=Le.attrs,en=(0,ge.Z)(Le,Ie),Cn=pt||he.createElement("input",null),yn=Cn,Pn=yn.ref,Wn=yn.props;return(0,xe.Kp)(!("maxLength"in Cn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Cn=he.cloneElement(Cn,(0,je.Z)((0,je.Z)((0,je.Z)({type:"search"},Se(en,Wn,!0)),{},{id:_e,ref:(0,De.sQ)(Pt,Pn),autoComplete:ln||"off",autoFocus:Jt,className:ve()("".concat(ht,"-selection-search-input"),Wn==null?void 0:Wn.className),role:"combobox","aria-expanded":Pe||!1,"aria-haspopup":"listbox","aria-owns":"".concat(_e,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(_e,"_list"),"aria-activedescendant":Pe?zt:void 0},Tn),{},{value:pn?Qt:"",readOnly:!pn,unselectable:pn?null:"on",style:(0,je.Z)((0,je.Z)({},Wn.style),{},{opacity:pn?null:0})})),Cn},Fe=he.forwardRef(we),xt=Fe;function lt(ke){return Array.isArray(ke)?ke:ke!==void 0?[ke]:[]}var _t=typeof window!="undefined"&&window.document&&window.document.documentElement,wt=_t;function pe(ke){return ke!=null}function de(ke){return!ke&&ke!==0}function qe(ke){return["string","number"].includes((0,Oe.Z)(ke))}function Lt(ke){var Le=void 0;return ke&&(qe(ke.title)?Le=ke.title.toString():qe(ke.label)&&(Le=ke.label.toString())),Le}function ct(ke,Le){wt?he.useLayoutEffect(ke,Le):he.useEffect(ke,Le)}function Ee(ke){var Le;return(Le=ke.key)!==null&&Le!==void 0?Le:ke.value}var Xe=function(Le){Le.preventDefault(),Le.stopPropagation()},Je=function(Le){var Pt=Le.id,ht=Le.prefixCls,_e=Le.values,pt=Le.open,Jt=Le.searchValue,ln=Le.autoClearSearchValue,pn=Le.inputRef,zt=Le.placeholder,Qt=Le.disabled,Pe=Le.mode,Tn=Le.showSearch,en=Le.autoFocus,Cn=Le.autoComplete,yn=Le.activeDescendantId,Pn=Le.tabIndex,Wn=Le.removeIcon,mr=Le.maxTagCount,Gn=Le.maxTagTextLength,In=Le.maxTagPlaceholder,ur=In===void 0?function(bn){return"+ ".concat(bn.length," ...")}:In,zn=Le.tagRender,gr=Le.onToggleOpen,_r=Le.onRemove,fr=Le.onInputChange,yr=Le.onInputPaste,Dr=Le.onInputKeyDown,br=Le.onInputMouseDown,or=Le.onInputCompositionStart,Br=Le.onInputCompositionEnd,ar=Le.onInputBlur,hr=he.useRef(null),xr=(0,he.useState)(0),kr=(0,me.Z)(xr,2),pr=kr[0],rr=kr[1],$n=(0,he.useState)(!1),Tr=(0,me.Z)($n,2),Zr=Tr[0],jr=Tr[1],ir="".concat(ht,"-selection"),ai=pt||Pe==="multiple"&&ln===!1||Pe==="tags"?Jt:"",cr=Pe==="tags"||Pe==="multiple"&&ln===!1||Tn&&(pt||Zr);ct(function(){rr(hr.current.scrollWidth)},[ai]);var si=function(on,Fn,jt,Tt,Xt){return he.createElement("span",{title:Lt(on),className:ve()("".concat(ir,"-item"),(0,Me.Z)({},"".concat(ir,"-item-disabled"),jt))},he.createElement("span",{className:"".concat(ir,"-item-content")},Fn),Tt&&he.createElement(Ae,{className:"".concat(ir,"-item-remove"),onMouseDown:Xe,onClick:Xt,customizeIcon:Wn},"\xD7"))},ti=function(on,Fn,jt,Tt,Xt,$t){var Hn=function(Sr){Xe(Sr),gr(!pt)};return he.createElement("span",{onMouseDown:Hn},zn({label:Fn,value:on,disabled:jt,closable:Tt,onClose:Xt,isMaxTag:!!$t}))},Or=function(on){var Fn=on.disabled,jt=on.label,Tt=on.value,Xt=!Qt&&!Fn,$t=jt;if(typeof Gn=="number"&&(typeof jt=="string"||typeof jt=="number")){var Hn=String($t);Hn.length>Gn&&($t="".concat(Hn.slice(0,Gn),"..."))}var Kn=function(Qn){Qn&&Qn.stopPropagation(),_r(on)};return typeof zn=="function"?ti(Tt,$t,Fn,Xt,Kn):si(on,$t,Fn,Xt,Kn)},Vn=function(on){if(!_e.length)return null;var Fn=typeof ur=="function"?ur(on):ur;return typeof zn=="function"?ti(void 0,Fn,!1,!1,void 0,!0):si({title:Fn},Fn,!1)},Ft=he.createElement("div",{className:"".concat(ir,"-search"),style:{width:pr},onFocus:function(){jr(!0)},onBlur:function(){jr(!1)}},he.createElement(xt,{ref:pn,open:pt,prefixCls:ht,id:Pt,inputElement:null,disabled:Qt,autoFocus:en,autoComplete:Cn,editable:cr,activeDescendantId:yn,value:ai,onKeyDown:Dr,onMouseDown:br,onChange:fr,onPaste:yr,onCompositionStart:or,onCompositionEnd:Br,onBlur:ar,tabIndex:Pn,attrs:(0,We.Z)(Le,!0)}),he.createElement("span",{ref:hr,className:"".concat(ir,"-search-mirror"),"aria-hidden":!0},ai,"\xA0")),Vt=he.createElement(Te.Z,{prefixCls:"".concat(ir,"-overflow"),data:_e,renderItem:Or,renderRest:Vn,suffix:Ft,itemKey:Ee,maxCount:mr});return he.createElement("span",{className:"".concat(ir,"-wrap")},Vt,!_e.length&&!ai&&he.createElement("span",{className:"".concat(ir,"-placeholder")},zt))},Nt=Je,ot=function(Le){var Pt=Le.inputElement,ht=Le.prefixCls,_e=Le.id,pt=Le.inputRef,Jt=Le.disabled,ln=Le.autoFocus,pn=Le.autoComplete,zt=Le.activeDescendantId,Qt=Le.mode,Pe=Le.open,Tn=Le.values,en=Le.placeholder,Cn=Le.tabIndex,yn=Le.showSearch,Pn=Le.searchValue,Wn=Le.activeValue,mr=Le.maxLength,Gn=Le.onInputKeyDown,In=Le.onInputMouseDown,ur=Le.onInputChange,zn=Le.onInputPaste,gr=Le.onInputCompositionStart,_r=Le.onInputCompositionEnd,fr=Le.onInputBlur,yr=Le.title,Dr=he.useState(!1),br=(0,me.Z)(Dr,2),or=br[0],Br=br[1],ar=Qt==="combobox",hr=ar||yn,xr=Tn[0],kr=Pn||"";ar&&Wn&&!or&&(kr=Wn),he.useEffect(function(){ar&&Br(!1)},[ar,Wn]);var pr=Qt!=="combobox"&&!Pe&&!yn?!1:!!kr,rr=yr===void 0?Lt(xr):yr,$n=he.useMemo(function(){return xr?null:he.createElement("span",{className:"".concat(ht,"-selection-placeholder"),style:pr?{visibility:"hidden"}:void 0},en)},[xr,pr,en,ht]);return he.createElement("span",{className:"".concat(ht,"-selection-wrap")},he.createElement("span",{className:"".concat(ht,"-selection-search")},he.createElement(xt,{ref:pt,prefixCls:ht,id:_e,open:Pe,inputElement:Pt,disabled:Jt,autoFocus:ln,autoComplete:pn,editable:hr,activeDescendantId:zt,value:kr,onKeyDown:Gn,onMouseDown:In,onChange:function(Zr){Br(!0),ur(Zr)},onPaste:zn,onCompositionStart:gr,onCompositionEnd:_r,onBlur:fr,tabIndex:Cn,attrs:(0,We.Z)(Le,!0),maxLength:ar?mr:void 0})),!ar&&xr?he.createElement("span",{className:"".concat(ht,"-selection-item"),title:rr,style:pr?{visibility:"hidden"}:void 0},xr.label):null,$n)},Et=ot,Re=function(Le,Pt){var ht=(0,he.useRef)(null),_e=(0,he.useRef)(!1),pt=Le.prefixCls,Jt=Le.open,ln=Le.mode,pn=Le.showSearch,zt=Le.tokenWithEnter,Qt=Le.disabled,Pe=Le.prefix,Tn=Le.autoClearSearchValue,en=Le.onSearch,Cn=Le.onSearchSubmit,yn=Le.onToggleOpen,Pn=Le.onInputKeyDown,Wn=Le.onInputBlur,mr=Le.domRef;he.useImperativeHandle(Pt,function(){return{focus:function(rr){ht.current.focus(rr)},blur:function(){ht.current.blur()}}});var Gn=Ge(0),In=(0,me.Z)(Gn,2),ur=In[0],zn=In[1],gr=function(rr){var $n=rr.which,Tr=ht.current instanceof HTMLTextAreaElement;!Tr&&Jt&&($n===Ze.Z.UP||$n===Ze.Z.DOWN)&&rr.preventDefault(),Pn&&Pn(rr),$n===Ze.Z.ENTER&&ln==="tags"&&!_e.current&&!Jt&&(Cn==null||Cn(rr.target.value)),!(Tr&&!Jt&&~[Ze.Z.UP,Ze.Z.DOWN,Ze.Z.LEFT,Ze.Z.RIGHT].indexOf($n))&&Ct($n)&&yn(!0)},_r=function(){zn(!0)},fr=(0,he.useRef)(null),yr=function(rr){en(rr,!0,_e.current)!==!1&&yn(!0)},Dr=function(){_e.current=!0},br=function(rr){_e.current=!1,ln!=="combobox"&&yr(rr.target.value)},or=function(rr){var $n=rr.target.value;if(zt&&fr.current&&/[\r\n]/.test(fr.current)){var Tr=fr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");$n=$n.replace(Tr,fr.current)}fr.current=null,yr($n)},Br=function(rr){var $n=rr.clipboardData,Tr=$n==null?void 0:$n.getData("text");fr.current=Tr||""},ar=function(rr){var $n=rr.target;if($n!==ht.current){var Tr=document.body.style.msTouchAction!==void 0;Tr?setTimeout(function(){ht.current.focus()}):ht.current.focus()}},hr=function(rr){var $n=ur();rr.target!==ht.current&&!$n&&!(ln==="combobox"&&Qt)&&rr.preventDefault(),(ln!=="combobox"&&(!pn||!$n)||!Jt)&&(Jt&&Tn!==!1&&en("",!0,!1),yn())},xr={inputRef:ht,onInputKeyDown:gr,onInputMouseDown:_r,onInputChange:or,onInputPaste:Br,onInputCompositionStart:Dr,onInputCompositionEnd:br,onInputBlur:Wn},kr=ln==="multiple"||ln==="tags"?he.createElement(Nt,(0,oe.Z)({},Le,xr)):he.createElement(Et,(0,oe.Z)({},Le,xr));return he.createElement("div",{ref:mr,className:"".concat(pt,"-selector"),onClick:ar,onMouseDown:hr},Pe&&he.createElement("div",{className:"".concat(pt,"-prefix")},Pe),kr)},dt=he.forwardRef(Re),yt=dt,ae=fe(65030),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],z=function(Le){var Pt=Le===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Pt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Pt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Pt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Pt,adjustY:1},htmlRegion:"scroll"}}},ie=function(Le,Pt){var ht=Le.prefixCls,_e=Le.disabled,pt=Le.visible,Jt=Le.children,ln=Le.popupElement,pn=Le.animation,zt=Le.transitionName,Qt=Le.dropdownStyle,Pe=Le.dropdownClassName,Tn=Le.direction,en=Tn===void 0?"ltr":Tn,Cn=Le.placement,yn=Le.builtinPlacements,Pn=Le.dropdownMatchSelectWidth,Wn=Le.dropdownRender,mr=Le.dropdownAlign,Gn=Le.getPopupContainer,In=Le.empty,ur=Le.getTriggerDOMNode,zn=Le.onPopupVisibleChange,gr=Le.onPopupMouseEnter,_r=(0,ge.Z)(Le,te),fr="".concat(ht,"-dropdown"),yr=ln;Wn&&(yr=Wn(ln));var Dr=he.useMemo(function(){return yn||z(Pn)},[yn,Pn]),br=pn?"".concat(fr,"-").concat(pn):zt,or=typeof Pn=="number",Br=he.useMemo(function(){return or?null:Pn===!1?"minWidth":"width"},[Pn,or]),ar=Qt;or&&(ar=(0,je.Z)((0,je.Z)({},ar),{},{width:Pn}));var hr=he.useRef(null);return he.useImperativeHandle(Pt,function(){return{getPopupElement:function(){var kr;return(kr=hr.current)===null||kr===void 0?void 0:kr.popupElement}}}),he.createElement(ae.Z,(0,oe.Z)({},_r,{showAction:zn?["click"]:[],hideAction:zn?["click"]:[],popupPlacement:Cn||(en==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Dr,prefixCls:fr,popupTransitionName:br,popup:he.createElement("div",{onMouseEnter:gr},yr),ref:hr,stretch:Br,popupAlign:mr,popupVisible:pt,getPopupContainer:Gn,popupClassName:ve()(Pe,(0,Me.Z)({},"".concat(fr,"-empty"),In)),popupStyle:ar,getTriggerDOMNode:ur,onPopupVisibleChange:zn}),Jt)},le=he.forwardRef(ie),ne=le,ye=fe(40954);function Ue(ke,Le){var Pt=ke.key,ht;return"value"in ke&&(ht=ke.value),Pt!=null?Pt:ht!==void 0?ht:"rc-index-key-".concat(Le)}function At(ke){return typeof ke!="undefined"&&!Number.isNaN(ke)}function mt(ke,Le){var Pt=ke||{},ht=Pt.label,_e=Pt.value,pt=Pt.options,Jt=Pt.groupLabel,ln=ht||(Le?"children":"label");return{label:ln,value:_e||"value",options:pt||"options",groupLabel:Jt||ln}}function ft(ke){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pt=Le.fieldNames,ht=Le.childrenAsData,_e=[],pt=mt(Pt,!1),Jt=pt.label,ln=pt.value,pn=pt.options,zt=pt.groupLabel;function Qt(Pe,Tn){Array.isArray(Pe)&&Pe.forEach(function(en){if(Tn||!(pn in en)){var Cn=en[ln];_e.push({key:Ue(en,_e.length),groupOption:Tn,data:en,label:en[Jt],value:Cn})}else{var yn=en[zt];yn===void 0&&ht&&(yn=en.label),_e.push({key:Ue(en,_e.length),group:!0,data:en,label:yn}),Qt(en[pn],!0)}})}return Qt(ke,!1),_e}function bt(ke){var Le=(0,je.Z)({},ke);return"props"in Le||Object.defineProperty(Le,"props",{get:function(){return(0,xe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Le}}),Le}var Gt=function(Le,Pt,ht){if(!Pt||!Pt.length)return null;var _e=!1,pt=function ln(pn,zt){var Qt=(0,ye.Z)(zt),Pe=Qt[0],Tn=Qt.slice(1);if(!Pe)return[pn];var en=pn.split(Pe);return _e=_e||en.length>1,en.reduce(function(Cn,yn){return[].concat((0,nt.Z)(Cn),(0,nt.Z)(ln(yn,Tn)))},[]).filter(Boolean)},Jt=pt(Le,Pt);return _e?typeof ht!="undefined"?Jt.slice(0,ht):Jt:null},It=he.createContext(null),tn=It;function nn(ke){var Le=ke.visible,Pt=ke.values;if(!Le)return null;var ht=50;return he.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Pt.slice(0,ht).map(function(_e){var pt=_e.label,Jt=_e.value;return["number","string"].includes((0,Oe.Z)(pt))?pt:Jt}).join(", ")),Pt.length>ht?", ...":null)}var St=["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","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],vn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Zt=function(Le){return Le==="tags"||Le==="multiple"},qt=he.forwardRef(function(ke,Le){var Pt,ht=ke.id,_e=ke.prefixCls,pt=ke.className,Jt=ke.showSearch,ln=ke.tagRender,pn=ke.direction,zt=ke.omitDomProps,Qt=ke.displayValues,Pe=ke.onDisplayValuesChange,Tn=ke.emptyOptions,en=ke.notFoundContent,Cn=en===void 0?"Not Found":en,yn=ke.onClear,Pn=ke.mode,Wn=ke.disabled,mr=ke.loading,Gn=ke.getInputElement,In=ke.getRawInputElement,ur=ke.open,zn=ke.defaultOpen,gr=ke.onDropdownVisibleChange,_r=ke.activeValue,fr=ke.onActiveValueChange,yr=ke.activeDescendantId,Dr=ke.searchValue,br=ke.autoClearSearchValue,or=ke.onSearch,Br=ke.onSearchSplit,ar=ke.tokenSeparators,hr=ke.allowClear,xr=ke.prefix,kr=ke.suffixIcon,pr=ke.clearIcon,rr=ke.OptionList,$n=ke.animation,Tr=ke.transitionName,Zr=ke.dropdownStyle,jr=ke.dropdownClassName,ir=ke.dropdownMatchSelectWidth,ai=ke.dropdownRender,cr=ke.dropdownAlign,si=ke.placement,ti=ke.builtinPlacements,Or=ke.getPopupContainer,Vn=ke.showAction,Ft=Vn===void 0?[]:Vn,Vt=ke.onFocus,bn=ke.onBlur,on=ke.onKeyUp,Fn=ke.onKeyDown,jt=ke.onMouseDown,Tt=(0,ge.Z)(ke,St),Xt=Zt(Pn),$t=(Jt!==void 0?Jt:Xt)||Pn==="combobox",Hn=(0,je.Z)({},Tt);vn.forEach(function(lr){delete Hn[lr]}),zt==null||zt.forEach(function(lr){delete Hn[lr]});var Kn=he.useState(!1),Sr=(0,me.Z)(Kn,2),Qn=Sr[0],sr=Sr[1];he.useEffect(function(){sr((0,Ne.Z)())},[]);var Pr=he.useRef(null),Gr=he.useRef(null),wr=he.useRef(null),Yr=he.useRef(null),Lr=he.useRef(null),di=he.useRef(!1),zi=ze(),Oi=(0,me.Z)(zi,3),xi=Oi[0],mi=Oi[1],Er=Oi[2];he.useImperativeHandle(Le,function(){var lr,qn;return{focus:(lr=Yr.current)===null||lr===void 0?void 0:lr.focus,blur:(qn=Yr.current)===null||qn===void 0?void 0:qn.blur,scrollTo:function(hi){var Ur;return(Ur=Lr.current)===null||Ur===void 0?void 0:Ur.scrollTo(hi)},nativeElement:Pr.current||Gr.current}});var wi=he.useMemo(function(){var lr;if(Pn!=="combobox")return Dr;var qn=(lr=Qt[0])===null||lr===void 0?void 0:lr.value;return typeof qn=="string"||typeof qn=="number"?String(qn):""},[Dr,Pn,Qt]),eo=Pn==="combobox"&&typeof Gn=="function"&&Gn()||null,Xr=typeof In=="function"&&In(),_i=(0,De.x1)(Gr,Xr==null||(Pt=Xr.props)===null||Pt===void 0?void 0:Pt.ref),Xi=he.useState(!1),fi=(0,me.Z)(Xi,2),ao=fi[0],Fi=fi[1];(0,st.Z)(function(){Fi(!0)},[]);var Ir=(0,He.Z)(!1,{defaultValue:zn,value:ur}),to=(0,me.Z)(Ir,2),so=to[0],Zi=to[1],Jr=ao?so:!1,xo=!Cn&&Tn;(Wn||xo&&Jr&&Pn==="combobox")&&(Jr=!1);var lo=xo?!1:Jr,Rn=he.useCallback(function(lr){var qn=lr!==void 0?lr:!Jr;Wn||(Zi(qn),Jr!==qn&&(gr==null||gr(qn)))},[Wn,Jr,Zi,gr]),Yn=he.useMemo(function(){return(ar||[]).some(function(lr){return[`
`,`\r
`].includes(lr)})},[ar]),_n=he.useContext(tn)||{},Zn=_n.maxCount,vr=_n.rawValues,Fr=function(qn,ui,hi){if(!(Xt&&At(Zn)&&(vr==null?void 0:vr.size)>=Zn)){var Ur=!0,$r=qn;fr==null||fr(null);var Vi=Gt(qn,ar,At(Zn)?Zn-vr.size:void 0),Wi=hi?null:Vi;return Pn!=="combobox"&&Wi&&($r="",Br==null||Br(Wi),Rn(!1),Ur=!1),or&&wi!==$r&&or($r,{source:ui?"typing":"effect"}),Ur}},ji=function(qn){!qn||!qn.trim()||or(qn,{source:"submit"})};he.useEffect(function(){!Jr&&!Xt&&Pn!=="combobox"&&Fr("",!1,!1)},[Jr]),he.useEffect(function(){so&&Wn&&Zi(!1),Wn&&!di.current&&mi(!1)},[Wn]);var gi=Ge(),li=(0,me.Z)(gi,2),Vr=li[0],Ii=li[1],Ji=he.useRef(!1),Li=function(qn){var ui=Vr(),hi=qn.key,Ur=hi==="Enter";if(Ur&&(Pn!=="combobox"&&qn.preventDefault(),Jr||Rn(!0)),Ii(!!wi),hi==="Backspace"&&!ui&&Xt&&!wi&&Qt.length){for(var $r=(0,nt.Z)(Qt),Vi=null,Wi=$r.length-1;Wi>=0;Wi-=1){var ro=$r[Wi];if(!ro.disabled){$r.splice(Wi,1),Vi=ro;break}}Vi&&Pe($r,{type:"remove",values:[Vi]})}for(var Mi=arguments.length,Bi=new Array(Mi>1?Mi-1:0),Ui=1;Ui<Mi;Ui++)Bi[Ui-1]=arguments[Ui];if(Jr&&(!Ur||!Ji.current)){var co;Ur&&(Ji.current=!0),(co=Lr.current)===null||co===void 0||co.onKeyDown.apply(co,[qn].concat(Bi))}Fn==null||Fn.apply(void 0,[qn].concat(Bi))},Qi=function(qn){for(var ui=arguments.length,hi=new Array(ui>1?ui-1:0),Ur=1;Ur<ui;Ur++)hi[Ur-1]=arguments[Ur];if(Jr){var $r;($r=Lr.current)===null||$r===void 0||$r.onKeyUp.apply($r,[qn].concat(hi))}qn.key==="Enter"&&(Ji.current=!1),on==null||on.apply(void 0,[qn].concat(hi))},no=function(qn){var ui=Qt.filter(function(hi){return hi!==qn});Pe(ui,{type:"remove",values:[qn]})},Gi=function(){Ji.current=!1},Bo=he.useRef(!1),Ga=function(){mi(!0),Wn||(Vt&&!Bo.current&&Vt.apply(void 0,arguments),Ft.includes("focus")&&Rn(!0)),Bo.current=!0},ya=function(){di.current=!0,mi(!1,function(){Bo.current=!1,di.current=!1,Rn(!1)}),!Wn&&(wi&&(Pn==="tags"?or(wi,{source:"submit"}):Pn==="multiple"&&or("",{source:"blur"})),bn&&bn.apply(void 0,arguments))},qi=[];he.useEffect(function(){return function(){qi.forEach(function(lr){return clearTimeout(lr)}),qi.splice(0,qi.length)}},[]);var uo=function(qn){var ui,hi=qn.target,Ur=(ui=wr.current)===null||ui===void 0?void 0:ui.getPopupElement();if(Ur&&Ur.contains(hi)){var $r=setTimeout(function(){var Mi=qi.indexOf($r);if(Mi!==-1&&qi.splice(Mi,1),Er(),!Qn&&!Ur.contains(document.activeElement)){var Bi;(Bi=Yr.current)===null||Bi===void 0||Bi.focus()}});qi.push($r)}for(var Vi=arguments.length,Wi=new Array(Vi>1?Vi-1:0),ro=1;ro<Vi;ro++)Wi[ro-1]=arguments[ro];jt==null||jt.apply(void 0,[qn].concat(Wi))},Hi=he.useState({}),ba=(0,me.Z)(Hi,2),xa=ba[1];function Va(){xa({})}var wa;Xr&&(wa=function(qn){Rn(qn)}),Ke(function(){var lr;return[Pr.current,(lr=wr.current)===null||lr===void 0?void 0:lr.getPopupElement()]},lo,Rn,!!Xr);var Ua=he.useMemo(function(){return(0,je.Z)((0,je.Z)({},ke),{},{notFoundContent:Cn,open:Jr,triggerOpen:lo,id:ht,showSearch:$t,multiple:Xt,toggleOpen:Rn})},[ke,Cn,lo,Jr,ht,$t,Xt,Rn]),Ko=!!kr||mr,Yo;Ko&&(Yo=he.createElement(Ae,{className:ve()("".concat(_e,"-arrow"),(0,Me.Z)({},"".concat(_e,"-arrow-loading"),mr)),customizeIcon:kr,customizeIconProps:{loading:mr,searchValue:wi,open:Jr,focused:xi,showSearch:$t}}));var wo=function(){var qn;yn==null||yn(),(qn=Yr.current)===null||qn===void 0||qn.focus(),Pe([],{type:"clear",values:Qt}),Fr("",!1,!1)},Xo=tt(_e,wo,Qt,hr,pr,Wn,wi,Pn),Ca=Xo.allowClear,Jo=Xo.clearIcon,To=he.createElement(rr,{ref:Lr}),Sa=ve()(_e,pt,(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat(_e,"-focused"),xi),"".concat(_e,"-multiple"),Xt),"".concat(_e,"-single"),!Xt),"".concat(_e,"-allow-clear"),hr),"".concat(_e,"-show-arrow"),Ko),"".concat(_e,"-disabled"),Wn),"".concat(_e,"-loading"),mr),"".concat(_e,"-open"),Jr),"".concat(_e,"-customize-input"),eo),"".concat(_e,"-show-search"),$t)),Po=he.createElement(ne,{ref:wr,disabled:Wn,prefixCls:_e,visible:lo,popupElement:To,animation:$n,transitionName:Tr,dropdownStyle:Zr,dropdownClassName:jr,direction:pn,dropdownMatchSelectWidth:ir,dropdownRender:ai,dropdownAlign:cr,placement:si,builtinPlacements:ti,getPopupContainer:Or,empty:Tn,getTriggerDOMNode:function(qn){return Gr.current||qn},onPopupVisibleChange:wa,onPopupMouseEnter:Va},Xr?he.cloneElement(Xr,{ref:_i}):he.createElement(yt,(0,oe.Z)({},ke,{domRef:Gr,prefixCls:_e,inputElement:eo,ref:Yr,id:ht,prefix:xr,showSearch:$t,autoClearSearchValue:br,mode:Pn,activeDescendantId:yr,tagRender:ln,values:Qt,open:Jr,onToggleOpen:Rn,activeValue:_r,searchValue:wi,onSearch:Fr,onSearchSubmit:ji,onRemove:no,tokenWithEnter:Yn,onInputBlur:Gi}))),Ci;return Xr?Ci=Po:Ci=he.createElement("div",(0,oe.Z)({className:Sa},Hn,{ref:Pr,onMouseDown:uo,onKeyDown:Li,onKeyUp:Qi,onFocus:Ga,onBlur:ya}),he.createElement(nn,{visible:xi&&!Jr,values:Qt}),Po,Yo,Ca&&Jo),he.createElement(rt.Provider,{value:Ua},Ci)}),it=qt,fn=function(){return null};fn.isSelectOptGroup=!0;var Ht=fn,Kt=function(){return null};Kt.isSelectOption=!0;var un=Kt,Nn=fe(80547),dn=fe(2738),kn=fe(6790);function tr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Un=["disabled","title","children","style","className"];function Nr(ke){return typeof ke=="string"||typeof ke=="number"}var Mr=function(Le,Pt){var ht=at(),_e=ht.prefixCls,pt=ht.id,Jt=ht.open,ln=ht.multiple,pn=ht.mode,zt=ht.searchValue,Qt=ht.toggleOpen,Pe=ht.notFoundContent,Tn=ht.onPopupScroll,en=he.useContext(tn),Cn=en.maxCount,yn=en.flattenOptions,Pn=en.onActiveValue,Wn=en.defaultActiveFirstOption,mr=en.onSelect,Gn=en.menuItemSelectedIcon,In=en.rawValues,ur=en.fieldNames,zn=en.virtual,gr=en.direction,_r=en.listHeight,fr=en.listItemHeight,yr=en.optionRender,Dr="".concat(_e,"-item"),br=(0,Nn.Z)(function(){return yn},[Jt,yn],function(Vn,Ft){return Ft[0]&&Vn[1]!==Ft[1]}),or=he.useRef(null),Br=he.useMemo(function(){return ln&&At(Cn)&&(In==null?void 0:In.size)>=Cn},[ln,Cn,In==null?void 0:In.size]),ar=function(Ft){Ft.preventDefault()},hr=function(Ft){var Vt;(Vt=or.current)===null||Vt===void 0||Vt.scrollTo(typeof Ft=="number"?{index:Ft}:Ft)},xr=he.useCallback(function(Vn){return pn==="combobox"?!1:In.has(Vn)},[pn,(0,nt.Z)(In).toString(),In.size]),kr=function(Ft){for(var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,bn=br.length,on=0;on<bn;on+=1){var Fn=(Ft+on*Vt+bn)%bn,jt=br[Fn]||{},Tt=jt.group,Xt=jt.data;if(!Tt&&!(Xt!=null&&Xt.disabled)&&(xr(Xt.value)||!Br))return Fn}return-1},pr=he.useState(function(){return kr(0)}),rr=(0,me.Z)(pr,2),$n=rr[0],Tr=rr[1],Zr=function(Ft){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Tr(Ft);var bn={source:Vt?"keyboard":"mouse"},on=br[Ft];if(!on){Pn(null,-1,bn);return}Pn(on.value,Ft,bn)};(0,he.useEffect)(function(){Zr(Wn!==!1?kr(0):-1)},[br.length,zt]);var jr=he.useCallback(function(Vn){return pn==="combobox"?String(Vn).toLowerCase()===zt.toLowerCase():In.has(Vn)},[pn,zt,(0,nt.Z)(In).toString(),In.size]);(0,he.useEffect)(function(){var Vn=setTimeout(function(){if(!ln&&Jt&&In.size===1){var Vt=Array.from(In)[0],bn=br.findIndex(function(on){var Fn=on.data;return zt?String(Fn.value).startsWith(zt):Fn.value===Vt});bn!==-1&&(Zr(bn),hr(bn))}});if(Jt){var Ft;(Ft=or.current)===null||Ft===void 0||Ft.scrollTo(void 0)}return function(){return clearTimeout(Vn)}},[Jt,zt]);var ir=function(Ft){Ft!==void 0&&mr(Ft,{selected:!In.has(Ft)}),ln||Qt(!1)};if(he.useImperativeHandle(Pt,function(){return{onKeyDown:function(Ft){var Vt=Ft.which,bn=Ft.ctrlKey;switch(Vt){case Ze.Z.N:case Ze.Z.P:case Ze.Z.UP:case Ze.Z.DOWN:{var on=0;if(Vt===Ze.Z.UP?on=-1:Vt===Ze.Z.DOWN?on=1:tr()&&bn&&(Vt===Ze.Z.N?on=1:Vt===Ze.Z.P&&(on=-1)),on!==0){var Fn=kr($n+on,on);hr(Fn),Zr(Fn,!0)}break}case Ze.Z.TAB:case Ze.Z.ENTER:{var jt,Tt=br[$n];Tt&&!(Tt!=null&&(jt=Tt.data)!==null&&jt!==void 0&&jt.disabled)&&!Br?ir(Tt.value):ir(void 0),Jt&&Ft.preventDefault();break}case Ze.Z.ESC:Qt(!1),Jt&&Ft.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ft){hr(Ft)}}}),br.length===0)return he.createElement("div",{role:"listbox",id:"".concat(pt,"_list"),className:"".concat(Dr,"-empty"),onMouseDown:ar},Pe);var ai=Object.keys(ur).map(function(Vn){return ur[Vn]}),cr=function(Ft){return Ft.label};function si(Vn,Ft){var Vt=Vn.group;return{role:Vt?"presentation":"option",id:"".concat(pt,"_list_").concat(Ft)}}var ti=function(Ft){var Vt=br[Ft];if(!Vt)return null;var bn=Vt.data||{},on=bn.value,Fn=Vt.group,jt=(0,We.Z)(bn,!0),Tt=cr(Vt);return Vt?he.createElement("div",(0,oe.Z)({"aria-label":typeof Tt=="string"&&!Fn?Tt:null},jt,{key:Ft},si(Vt,Ft),{"aria-selected":jr(on)}),on):null},Or={role:"listbox",id:"".concat(pt,"_list")};return he.createElement(he.Fragment,null,zn&&he.createElement("div",(0,oe.Z)({},Or,{style:{height:0,width:0,overflow:"hidden"}}),ti($n-1),ti($n),ti($n+1)),he.createElement(kn.Z,{itemKey:"key",ref:or,data:br,height:_r,itemHeight:fr,fullHeight:!1,onMouseDown:ar,onScroll:Tn,virtual:zn,direction:gr,innerProps:zn?null:Or},function(Vn,Ft){var Vt=Vn.group,bn=Vn.groupOption,on=Vn.data,Fn=Vn.label,jt=Vn.value,Tt=on.key;if(Vt){var Xt,$t=(Xt=on.title)!==null&&Xt!==void 0?Xt:Nr(Fn)?Fn.toString():void 0;return he.createElement("div",{className:ve()(Dr,"".concat(Dr,"-group"),on.className),title:$t},Fn!==void 0?Fn:Tt)}var Hn=on.disabled,Kn=on.title,Sr=on.children,Qn=on.style,sr=on.className,Pr=(0,ge.Z)(on,Un),Gr=(0,dn.Z)(Pr,ai),wr=xr(jt),Yr=Hn||!wr&&Br,Lr="".concat(Dr,"-option"),di=ve()(Dr,Lr,sr,(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat(Lr,"-grouped"),bn),"".concat(Lr,"-active"),$n===Ft&&!Yr),"".concat(Lr,"-disabled"),Yr),"".concat(Lr,"-selected"),wr)),zi=cr(Vn),Oi=!Gn||typeof Gn=="function"||wr,xi=typeof zi=="number"?zi:zi||jt,mi=Nr(xi)?xi.toString():void 0;return Kn!==void 0&&(mi=Kn),he.createElement("div",(0,oe.Z)({},(0,We.Z)(Gr),zn?{}:si(Vn,Ft),{"aria-selected":jr(jt),className:di,title:mi,onMouseMove:function(){$n===Ft||Yr||Zr(Ft)},onClick:function(){Yr||ir(jt)},style:Qn}),he.createElement("div",{className:"".concat(Lr,"-content")},typeof yr=="function"?yr(Vn,{index:Ft}):xi),he.isValidElement(Gn)||wr,Oi&&he.createElement(Ae,{className:"".concat(Dr,"-option-state"),customizeIcon:Gn,customizeIconProps:{value:jt,disabled:Yr,isSelected:wr}},wr?"\u2713":null))}))},dr=he.forwardRef(Mr),Xn=dr,hn=function(ke,Le){var Pt=he.useRef({values:new Map,options:new Map}),ht=he.useMemo(function(){var pt=Pt.current,Jt=pt.values,ln=pt.options,pn=ke.map(function(Pe){if(Pe.label===void 0){var Tn;return(0,je.Z)((0,je.Z)({},Pe),{},{label:(Tn=Jt.get(Pe.value))===null||Tn===void 0?void 0:Tn.label})}return Pe}),zt=new Map,Qt=new Map;return pn.forEach(function(Pe){zt.set(Pe.value,Pe),Qt.set(Pe.value,Le.get(Pe.value)||ln.get(Pe.value))}),Pt.current.values=zt,Pt.current.options=Qt,pn},[ke,Le]),_e=he.useCallback(function(pt){return Le.get(pt)||Pt.current.options.get(pt)},[Le]);return[ht,_e]};function jn(ke,Le){return lt(ke).join("").toUpperCase().includes(Le)}var Jn=function(ke,Le,Pt,ht,_e){return he.useMemo(function(){if(!Pt||ht===!1)return ke;var pt=Le.options,Jt=Le.label,ln=Le.value,pn=[],zt=typeof ht=="function",Qt=Pt.toUpperCase(),Pe=zt?ht:function(en,Cn){return _e?jn(Cn[_e],Qt):Cn[pt]?jn(Cn[Jt!=="children"?Jt:"label"],Qt):jn(Cn[ln],Qt)},Tn=zt?function(en){return bt(en)}:function(en){return en};return ke.forEach(function(en){if(en[pt]){var Cn=Pe(Pt,Tn(en));if(Cn)pn.push(en);else{var yn=en[pt].filter(function(Pn){return Pe(Pt,Tn(Pn))});yn.length&&pn.push((0,je.Z)((0,je.Z)({},en),{},(0,Me.Z)({},pt,yn)))}return}Pe(Pt,Tn(en))&&pn.push(en)}),pn},[ke,ht,_e,Pt,Le])},Mn=fe(6551),nr=fe(11592),kt=["children","value"],Ot=["children"];function ut(ke){var Le=ke,Pt=Le.key,ht=Le.props,_e=ht.children,pt=ht.value,Jt=(0,ge.Z)(ht,kt);return(0,je.Z)({key:Pt,value:pt!==void 0?pt:Pt,children:_e},Jt)}function gt(ke){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,nr.Z)(ke).map(function(Pt,ht){if(!he.isValidElement(Pt)||!Pt.type)return null;var _e=Pt,pt=_e.type.isSelectOptGroup,Jt=_e.key,ln=_e.props,pn=ln.children,zt=(0,ge.Z)(ln,Ot);return Le||!pt?ut(Pt):(0,je.Z)((0,je.Z)({key:"__RC_SELECT_GRP__".concat(Jt===null?ht:Jt,"__"),label:Jt},zt),{},{options:gt(pn)})}).filter(function(Pt){return Pt})}var Yt=function(Le,Pt,ht,_e,pt){return he.useMemo(function(){var Jt=Le,ln=!Le;ln&&(Jt=gt(Pt));var pn=new Map,zt=new Map,Qt=function(en,Cn,yn){yn&&typeof yn=="string"&&en.set(Cn[yn],Cn)},Pe=function Tn(en){for(var Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yn=0;yn<en.length;yn+=1){var Pn=en[yn];!Pn[ht.options]||Cn?(pn.set(Pn[ht.value],Pn),Qt(zt,Pn,ht.label),Qt(zt,Pn,_e),Qt(zt,Pn,pt)):Tn(Pn[ht.options],!0)}};return Pe(Jt),{options:Jt,valueOptions:pn,labelOptions:zt}},[Le,Pt,ht,_e,pt])},cn=Yt;function rn(ke){var Le=he.useRef();Le.current=ke;var Pt=he.useCallback(function(){return Le.current.apply(Le,arguments)},[]);return Pt}function Sn(ke){var Le=ke.mode,Pt=ke.options,ht=ke.children,_e=ke.backfill,pt=ke.allowClear,Jt=ke.placeholder,ln=ke.getInputElement,pn=ke.showSearch,zt=ke.onSearch,Qt=ke.defaultOpen,Pe=ke.autoFocus,Tn=ke.labelInValue,en=ke.value,Cn=ke.inputValue,yn=ke.optionLabelProp,Pn=isMultiple(Le),Wn=pn!==void 0?pn:Pn||Le==="combobox",mr=Pt||convertChildrenToData(ht);if(warning(Le!=="tags"||mr.every(function(zn){return!zn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Le==="tags"||Le==="combobox"){var Gn=mr.some(function(zn){return zn.options?zn.options.some(function(gr){return typeof("value"in gr?gr.value:gr.key)=="number"}):typeof("value"in zn?zn.value:zn.key)=="number"});warning(!Gn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Le!=="combobox"||!yn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Le==="combobox"||!_e,"`backfill` only works with `combobox` mode."),warning(Le==="combobox"||!ln,"`getInputElement` only work with `combobox` mode."),noteOnce(Le!=="combobox"||!ln||!pt||!Jt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),zt&&!Wn&&Le!=="combobox"&&Le!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Qt||Pe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),en!=null){var In=toArray(en);warning(!Tn||In.every(function(zn){return _typeof(zn)==="object"&&("key"in zn||"value"in zn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Pn||Array.isArray(en),"`value` should be array when `mode` is `multiple` or `tags`")}if(ht){var ur=null;toNodeArray(ht).some(function(zn){if(!React.isValidElement(zn)||!zn.type)return!1;var gr=zn,_r=gr.type;if(_r.isSelectOption)return!1;if(_r.isSelectOptGroup){var fr=toNodeArray(zn.props.children).every(function(yr){return!React.isValidElement(yr)||!zn.type||yr.type.isSelectOption?!0:(ur=yr.type,!1)});return!fr}return ur=_r,!0}),ur&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ur.displayName||ur.name||ur,"`.")),warning(Cn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Bn(ke,Le){if(ke){var Pt=function ht(_e){for(var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Jt=0;Jt<_e.length;Jt++){var ln=_e[Jt];if(ln[Le==null?void 0:Le.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!pt&&Array.isArray(ln[Le==null?void 0:Le.options])&&ht(ln[Le==null?void 0:Le.options],!0))break}};Pt(ke)}}var Dn=null,wn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],En=["inputValue"];function Bt(ke){return!ke||(0,Oe.Z)(ke)!=="object"}var Qe=he.forwardRef(function(ke,Le){var Pt=ke.id,ht=ke.mode,_e=ke.prefixCls,pt=_e===void 0?"rc-select":_e,Jt=ke.backfill,ln=ke.fieldNames,pn=ke.inputValue,zt=ke.searchValue,Qt=ke.onSearch,Pe=ke.autoClearSearchValue,Tn=Pe===void 0?!0:Pe,en=ke.onSelect,Cn=ke.onDeselect,yn=ke.dropdownMatchSelectWidth,Pn=yn===void 0?!0:yn,Wn=ke.filterOption,mr=ke.filterSort,Gn=ke.optionFilterProp,In=ke.optionLabelProp,ur=ke.options,zn=ke.optionRender,gr=ke.children,_r=ke.defaultActiveFirstOption,fr=ke.menuItemSelectedIcon,yr=ke.virtual,Dr=ke.direction,br=ke.listHeight,or=br===void 0?200:br,Br=ke.listItemHeight,ar=Br===void 0?20:Br,hr=ke.labelRender,xr=ke.value,kr=ke.defaultValue,pr=ke.labelInValue,rr=ke.onChange,$n=ke.maxCount,Tr=(0,ge.Z)(ke,wn),Zr=(0,Mn.ZP)(Pt),jr=Zt(ht),ir=!!(!ur&&gr),ai=he.useMemo(function(){return Wn===void 0&&ht==="combobox"?!1:Wn},[Wn,ht]),cr=he.useMemo(function(){return mt(ln,ir)},[JSON.stringify(ln),ir]),si=(0,He.Z)("",{value:zt!==void 0?zt:pn,postState:function(Yn){return Yn||""}}),ti=(0,me.Z)(si,2),Or=ti[0],Vn=ti[1],Ft=cn(ur,gr,cr,Gn,In),Vt=Ft.valueOptions,bn=Ft.labelOptions,on=Ft.options,Fn=he.useCallback(function(Rn){var Yn=lt(Rn);return Yn.map(function(_n){var Zn,vr,Fr,ji,gi;if(Bt(_n))Zn=_n;else{var li;Fr=_n.key,vr=_n.label,Zn=(li=_n.value)!==null&&li!==void 0?li:Fr}var Vr=Vt.get(Zn);if(Vr){var Ii;if(vr===void 0&&(vr=Vr==null?void 0:Vr[In||cr.label]),Fr===void 0&&(Fr=(Ii=Vr==null?void 0:Vr.key)!==null&&Ii!==void 0?Ii:Zn),ji=Vr==null?void 0:Vr.disabled,gi=Vr==null?void 0:Vr.title,0)var Ji}return{label:vr,value:Zn,key:Fr,disabled:ji,title:gi}})},[cr,In,Vt]),jt=(0,He.Z)(kr,{value:xr}),Tt=(0,me.Z)(jt,2),Xt=Tt[0],$t=Tt[1],Hn=he.useMemo(function(){var Rn,Yn=jr&&Xt===null?[]:Xt,_n=Fn(Yn);return ht==="combobox"&&de((Rn=_n[0])===null||Rn===void 0?void 0:Rn.value)?[]:_n},[Xt,Fn,ht,jr]),Kn=hn(Hn,Vt),Sr=(0,me.Z)(Kn,2),Qn=Sr[0],sr=Sr[1],Pr=he.useMemo(function(){if(!ht&&Qn.length===1){var Rn=Qn[0];if(Rn.value===null&&(Rn.label===null||Rn.label===void 0))return[]}return Qn.map(function(Yn){var _n;return(0,je.Z)((0,je.Z)({},Yn),{},{label:(_n=typeof hr=="function"?hr(Yn):Yn.label)!==null&&_n!==void 0?_n:Yn.value})})},[ht,Qn,hr]),Gr=he.useMemo(function(){return new Set(Qn.map(function(Rn){return Rn.value}))},[Qn]);he.useEffect(function(){if(ht==="combobox"){var Rn,Yn=(Rn=Qn[0])===null||Rn===void 0?void 0:Rn.value;Vn(pe(Yn)?String(Yn):"")}},[Qn]);var wr=rn(function(Rn,Yn){var _n=Yn!=null?Yn:Rn;return(0,Me.Z)((0,Me.Z)({},cr.value,Rn),cr.label,_n)}),Yr=he.useMemo(function(){if(ht!=="tags")return on;var Rn=(0,nt.Z)(on),Yn=function(Zn){return Vt.has(Zn)};return(0,nt.Z)(Qn).sort(function(_n,Zn){return _n.value<Zn.value?-1:1}).forEach(function(_n){var Zn=_n.value;Yn(Zn)||Rn.push(wr(Zn,_n.label))}),Rn},[wr,on,Vt,Qn,ht]),Lr=Jn(Yr,cr,Or,ai,Gn),di=he.useMemo(function(){return ht!=="tags"||!Or||Lr.some(function(Rn){return Rn[Gn||"value"]===Or})||Lr.some(function(Rn){return Rn[cr.value]===Or})?Lr:[wr(Or)].concat((0,nt.Z)(Lr))},[wr,Gn,ht,Lr,Or,cr]),zi=function Rn(Yn){var _n=(0,nt.Z)(Yn).sort(function(Zn,vr){return mr(Zn,vr,{searchValue:Or})});return _n.map(function(Zn){return Array.isArray(Zn.options)?(0,je.Z)((0,je.Z)({},Zn),{},{options:Zn.options.length>0?Rn(Zn.options):Zn.options}):Zn})},Oi=he.useMemo(function(){return mr?zi(di):di},[di,mr,Or]),xi=he.useMemo(function(){return ft(Oi,{fieldNames:cr,childrenAsData:ir})},[Oi,cr,ir]),mi=function(Yn){var _n=Fn(Yn);if($t(_n),rr&&(_n.length!==Qn.length||_n.some(function(Fr,ji){var gi;return((gi=Qn[ji])===null||gi===void 0?void 0:gi.value)!==(Fr==null?void 0:Fr.value)}))){var Zn=pr?_n:_n.map(function(Fr){return Fr.value}),vr=_n.map(function(Fr){return bt(sr(Fr.value))});rr(jr?Zn:Zn[0],jr?vr:vr[0])}},Er=he.useState(null),wi=(0,me.Z)(Er,2),eo=wi[0],Xr=wi[1],_i=he.useState(0),Xi=(0,me.Z)(_i,2),fi=Xi[0],ao=Xi[1],Fi=_r!==void 0?_r:ht!=="combobox",Ir=he.useCallback(function(Rn,Yn){var _n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Zn=_n.source,vr=Zn===void 0?"keyboard":Zn;ao(Yn),Jt&&ht==="combobox"&&Rn!==null&&vr==="keyboard"&&Xr(String(Rn))},[Jt,ht]),to=function(Yn,_n,Zn){var vr=function(){var no,Gi=sr(Yn);return[pr?{label:Gi==null?void 0:Gi[cr.label],value:Yn,key:(no=Gi==null?void 0:Gi.key)!==null&&no!==void 0?no:Yn}:Yn,bt(Gi)]};if(_n&&en){var Fr=vr(),ji=(0,me.Z)(Fr,2),gi=ji[0],li=ji[1];en(gi,li)}else if(!_n&&Cn&&Zn!=="clear"){var Vr=vr(),Ii=(0,me.Z)(Vr,2),Ji=Ii[0],Li=Ii[1];Cn(Ji,Li)}},so=rn(function(Rn,Yn){var _n,Zn=jr?Yn.selected:!0;Zn?_n=jr?[].concat((0,nt.Z)(Qn),[Rn]):[Rn]:_n=Qn.filter(function(vr){return vr.value!==Rn}),mi(_n),to(Rn,Zn),ht==="combobox"?Xr(""):(!Zt||Tn)&&(Vn(""),Xr(""))}),Zi=function(Yn,_n){mi(Yn);var Zn=_n.type,vr=_n.values;(Zn==="remove"||Zn==="clear")&&vr.forEach(function(Fr){to(Fr.value,!1,Zn)})},Jr=function(Yn,_n){if(Vn(Yn),Xr(null),_n.source==="submit"){var Zn=(Yn||"").trim();if(Zn){var vr=Array.from(new Set([].concat((0,nt.Z)(Gr),[Zn])));mi(vr),to(Zn,!0),Vn("")}return}_n.source!=="blur"&&(ht==="combobox"&&mi(Yn),Qt==null||Qt(Yn))},xo=function(Yn){var _n=Yn;ht!=="tags"&&(_n=Yn.map(function(vr){var Fr=bn.get(vr);return Fr==null?void 0:Fr.value}).filter(function(vr){return vr!==void 0}));var Zn=Array.from(new Set([].concat((0,nt.Z)(Gr),(0,nt.Z)(_n))));mi(Zn),Zn.forEach(function(vr){to(vr,!0)})},lo=he.useMemo(function(){var Rn=yr!==!1&&Pn!==!1;return(0,je.Z)((0,je.Z)({},Ft),{},{flattenOptions:xi,onActiveValue:Ir,defaultActiveFirstOption:Fi,onSelect:so,menuItemSelectedIcon:fr,rawValues:Gr,fieldNames:cr,virtual:Rn,direction:Dr,listHeight:or,listItemHeight:ar,childrenAsData:ir,maxCount:$n,optionRender:zn})},[$n,Ft,xi,Ir,Fi,so,fr,Gr,cr,yr,Pn,Dr,or,ar,ir,zn]);return he.createElement(tn.Provider,{value:lo},he.createElement(it,(0,oe.Z)({},Tr,{id:Zr,prefixCls:pt,ref:Le,omitDomProps:En,mode:ht,displayValues:Pr,onDisplayValuesChange:Zi,direction:Dr,searchValue:Or,onSearch:Jr,autoClearSearchValue:Tn,onSearchSplit:xo,dropdownMatchSelectWidth:Pn,OptionList:Xn,emptyOptions:!xi.length,activeValue:eo,activeDescendantId:"".concat(Zr,"_list_").concat(fi)})))}),Wt=Qe;Wt.Option=un,Wt.OptGroup=Ht;var gn=Wt,An=gn},63158:function(Dt,Rt,fe){"use strict";var oe=fe(32855),nt=fe(74430),Me=fe(11913),je=fe(43079),me=fe(59301),ge=fe(92310),Oe=fe.n(ge),He=fe(18929),xe=fe(10228),he=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],et=me.forwardRef(function(ve,st){var Ne,De=ve.prefixCls,Be=De===void 0?"rc-switch":De,Ae=ve.className,tt=ve.checked,rt=ve.defaultChecked,at=ve.disabled,ze=ve.loadingIcon,Ge=ve.checkedChildren,Ke=ve.unCheckedChildren,Ze=ve.onClick,Ct=ve.onChange,We=ve.onKeyDown,Te=(0,je.Z)(ve,he),$e=(0,He.Z)(!1,{value:tt,defaultValue:rt}),Se=(0,Me.Z)($e,2),Ie=Se[0],we=Se[1];function Fe(wt,pe){var de=Ie;return at||(de=wt,we(de),Ct==null||Ct(de,pe)),de}function xt(wt){wt.which===xe.Z.LEFT?Fe(!1,wt):wt.which===xe.Z.RIGHT&&Fe(!0,wt),We==null||We(wt)}function lt(wt){var pe=Fe(!Ie,wt);Ze==null||Ze(pe,wt)}var _t=Oe()(Be,Ae,(Ne={},(0,nt.Z)(Ne,"".concat(Be,"-checked"),Ie),(0,nt.Z)(Ne,"".concat(Be,"-disabled"),at),Ne));return me.createElement("button",(0,oe.Z)({},Te,{type:"button",role:"switch","aria-checked":Ie,disabled:at,className:_t,ref:st,onKeyDown:xt,onClick:lt}),ze,me.createElement("span",{className:"".concat(Be,"-inner")},me.createElement("span",{className:"".concat(Be,"-inner-checked")},Ge),me.createElement("span",{className:"".concat(Be,"-inner-unchecked")},Ke)))});et.displayName="Switch",Rt.Z=et},22711:function(Dt,Rt,fe){"use strict";fe.r(Rt),fe.d(Rt,{ResizableTextArea:function(){return Se},default:function(){return xt}});var oe=fe(32855),nt=fe(74430),Me=fe(27247),je=fe(3300),me=fe(11913),ge=fe(43079),Oe=fe(92310),He=fe.n(Oe),xe=fe(36901),he=fe(66003),et=fe(30292),ve=fe(18929),st=fe(59301),Ne=fe(34666),De=fe(29301),Be=fe(34280),Ae=fe(16089),tt=`
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;
`,rt=["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"],at={},ze;function Ge(lt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,wt=lt.getAttribute("id")||lt.getAttribute("data-reactid")||lt.getAttribute("name");if(_t&&at[wt])return at[wt];var pe=window.getComputedStyle(lt),de=pe.getPropertyValue("box-sizing")||pe.getPropertyValue("-moz-box-sizing")||pe.getPropertyValue("-webkit-box-sizing"),qe=parseFloat(pe.getPropertyValue("padding-bottom"))+parseFloat(pe.getPropertyValue("padding-top")),Lt=parseFloat(pe.getPropertyValue("border-bottom-width"))+parseFloat(pe.getPropertyValue("border-top-width")),ct=rt.map(function(Xe){return"".concat(Xe,":").concat(pe.getPropertyValue(Xe))}).join(";"),Ee={sizingStyle:ct,paddingSize:qe,borderSize:Lt,boxSizing:de};return _t&&wt&&(at[wt]=Ee),Ee}function Ke(lt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,pe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ze||(ze=document.createElement("textarea"),ze.setAttribute("tab-index","-1"),ze.setAttribute("aria-hidden","true"),ze.setAttribute("name","hiddenTextarea"),document.body.appendChild(ze)),lt.getAttribute("wrap")?ze.setAttribute("wrap",lt.getAttribute("wrap")):ze.removeAttribute("wrap");var de=Ge(lt,_t),qe=de.paddingSize,Lt=de.borderSize,ct=de.boxSizing,Ee=de.sizingStyle;ze.setAttribute("style","".concat(Ee,";").concat(tt)),ze.value=lt.value||lt.placeholder||"";var Xe=void 0,Je=void 0,Nt,ot=ze.scrollHeight;if(ct==="border-box"?ot+=Lt:ct==="content-box"&&(ot-=qe),wt!==null||pe!==null){ze.value=" ";var Et=ze.scrollHeight-qe;wt!==null&&(Xe=Et*wt,ct==="border-box"&&(Xe=Xe+qe+Lt),ot=Math.max(Xe,ot)),pe!==null&&(Je=Et*pe,ct==="border-box"&&(Je=Je+qe+Lt),Nt=ot>Je?"":"hidden",ot=Math.min(Je,ot))}var Re={height:ot,overflowY:Nt,resize:"none"};return Xe&&(Re.minHeight=Xe),Je&&(Re.maxHeight=Je),Re}var Ze=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ct=0,We=1,Te=2,$e=st.forwardRef(function(lt,_t){var wt=lt,pe=wt.prefixCls,de=wt.defaultValue,qe=wt.value,Lt=wt.autoSize,ct=wt.onResize,Ee=wt.className,Xe=wt.style,Je=wt.disabled,Nt=wt.onChange,ot=wt.onInternalAutoSize,Et=(0,ge.Z)(wt,Ze),Re=(0,ve.Z)(de,{value:qe,postState:function(un){return un!=null?un:""}}),dt=(0,me.Z)(Re,2),yt=dt[0],ae=dt[1],te=function(un){ae(un.target.value),Nt==null||Nt(un)},z=st.useRef();st.useImperativeHandle(_t,function(){return{textArea:z.current}});var ie=st.useMemo(function(){return Lt&&(0,Ne.Z)(Lt)==="object"?[Lt.minRows,Lt.maxRows]:[]},[Lt]),le=(0,me.Z)(ie,2),ne=le[0],ye=le[1],Ue=!!Lt,At=function(){try{if(document.activeElement===z.current){var un=z.current,Nn=un.selectionStart,dn=un.selectionEnd,kn=un.scrollTop;z.current.setSelectionRange(Nn,dn),z.current.scrollTop=kn}}catch(tr){}},mt=st.useState(Te),ft=(0,me.Z)(mt,2),bt=ft[0],Gt=ft[1],It=st.useState(),tn=(0,me.Z)(It,2),nn=tn[0],St=tn[1],vn=function(){Gt(Ct)};(0,Be.Z)(function(){Ue&&vn()},[qe,ne,ye,Ue]),(0,Be.Z)(function(){if(bt===Ct)Gt(We);else if(bt===We){var Kt=Ke(z.current,!1,ne,ye);Gt(Te),St(Kt)}else At()},[bt]);var Zt=st.useRef(),qt=function(){Ae.Z.cancel(Zt.current)},it=function(un){bt===Te&&(ct==null||ct(un),Lt&&(qt(),Zt.current=(0,Ae.Z)(function(){vn()})))};st.useEffect(function(){return qt},[]);var fn=Ue?nn:null,Ht=(0,Me.Z)((0,Me.Z)({},Xe),fn);return(bt===Ct||bt===We)&&(Ht.overflowY="hidden",Ht.overflowX="hidden"),st.createElement(De.Z,{onResize:it,disabled:!(Lt||ct)},st.createElement("textarea",(0,oe.Z)({},Et,{ref:z,style:Ht,className:He()(pe,Ee,(0,nt.Z)({},"".concat(pe,"-disabled"),Je)),disabled:Je,value:yt,onChange:te})))}),Se=$e,Ie=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],we=st.forwardRef(function(lt,_t){var wt,pe=lt.defaultValue,de=lt.value,qe=lt.onFocus,Lt=lt.onBlur,ct=lt.onChange,Ee=lt.allowClear,Xe=lt.maxLength,Je=lt.onCompositionStart,Nt=lt.onCompositionEnd,ot=lt.suffix,Et=lt.prefixCls,Re=Et===void 0?"rc-textarea":Et,dt=lt.showCount,yt=lt.count,ae=lt.className,te=lt.style,z=lt.disabled,ie=lt.hidden,le=lt.classNames,ne=lt.styles,ye=lt.onResize,Ue=lt.onClear,At=lt.onPressEnter,mt=lt.readOnly,ft=lt.autoSize,bt=lt.onKeyDown,Gt=(0,ge.Z)(lt,Ie),It=(0,ve.Z)(pe,{value:de,defaultValue:pe}),tn=(0,me.Z)(It,2),nn=tn[0],St=tn[1],vn=nn==null?"":String(nn),Zt=st.useState(!1),qt=(0,me.Z)(Zt,2),it=qt[0],fn=qt[1],Ht=st.useRef(!1),Kt=st.useState(null),un=(0,me.Z)(Kt,2),Nn=un[0],dn=un[1],kn=(0,st.useRef)(null),tr=(0,st.useRef)(null),Un=function(){var Wt;return(Wt=tr.current)===null||Wt===void 0?void 0:Wt.textArea},Nr=function(){Un().focus()};(0,st.useImperativeHandle)(_t,function(){var Qe;return{resizableTextArea:tr.current,focus:Nr,blur:function(){Un().blur()},nativeElement:((Qe=kn.current)===null||Qe===void 0?void 0:Qe.nativeElement)||Un()}}),(0,st.useEffect)(function(){fn(function(Qe){return!z&&Qe})},[z]);var Mr=st.useState(null),dr=(0,me.Z)(Mr,2),Xn=dr[0],hn=dr[1];st.useEffect(function(){if(Xn){var Qe;(Qe=Un()).setSelectionRange.apply(Qe,(0,je.Z)(Xn))}},[Xn]);var jn=(0,he.Z)(yt,dt),Jn=(wt=jn.max)!==null&&wt!==void 0?wt:Xe,Mn=Number(Jn)>0,nr=jn.strategy(vn),kt=!!Jn&&nr>Jn,Ot=function(Wt,gn){var An=gn;!Ht.current&&jn.exceedFormatter&&jn.max&&jn.strategy(gn)>jn.max&&(An=jn.exceedFormatter(gn,{max:jn.max}),gn!==An&&hn([Un().selectionStart||0,Un().selectionEnd||0])),St(An),(0,et.rJ)(Wt.currentTarget,Wt,ct,An)},ut=function(Wt){Ht.current=!0,Je==null||Je(Wt)},gt=function(Wt){Ht.current=!1,Ot(Wt,Wt.currentTarget.value),Nt==null||Nt(Wt)},Yt=function(Wt){Ot(Wt,Wt.target.value)},cn=function(Wt){Wt.key==="Enter"&&At&&At(Wt),bt==null||bt(Wt)},rn=function(Wt){fn(!0),qe==null||qe(Wt)},Sn=function(Wt){fn(!1),Lt==null||Lt(Wt)},Bn=function(Wt){St(""),Nr(),(0,et.rJ)(Un(),Wt,ct)},Dn=ot,wn;jn.show&&(jn.showFormatter?wn=jn.showFormatter({value:vn,count:nr,maxLength:Jn}):wn="".concat(nr).concat(Mn?" / ".concat(Jn):""),Dn=st.createElement(st.Fragment,null,Dn,st.createElement("span",{className:He()("".concat(Re,"-data-count"),le==null?void 0:le.count),style:ne==null?void 0:ne.count},wn)));var En=function(Wt){var gn;ye==null||ye(Wt),(gn=Un())!==null&&gn!==void 0&&gn.style.height&&dn(!0)},Bt=!ft&&!dt&&!Ee;return st.createElement(xe.BaseInput,{ref:kn,value:vn,allowClear:Ee,handleReset:Bn,suffix:Dn,prefixCls:Re,classNames:(0,Me.Z)((0,Me.Z)({},le),{},{affixWrapper:He()(le==null?void 0:le.affixWrapper,(0,nt.Z)((0,nt.Z)({},"".concat(Re,"-show-count"),dt),"".concat(Re,"-textarea-allow-clear"),Ee))}),disabled:z,focused:it,className:He()(ae,kt&&"".concat(Re,"-out-of-range")),style:(0,Me.Z)((0,Me.Z)({},te),Nn&&!Bt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof wn=="string"?wn:void 0}},hidden:ie,readOnly:mt,onClear:Ue},st.createElement(Se,(0,oe.Z)({},Gt,{autoSize:ft,maxLength:Xe,onKeyDown:cn,onChange:Yt,onFocus:rn,onBlur:Sn,onCompositionStart:ut,onCompositionEnd:gt,className:He()(le==null?void 0:le.textarea),style:(0,Me.Z)((0,Me.Z)({},ne==null?void 0:ne.textarea),{},{resize:te==null?void 0:te.resize}),disabled:z,prefixCls:Re,onResize:En,ref:tr,readOnly:mt})))}),Fe=we,xt=Fe},6790:function(Dt,Rt,fe){"use strict";fe.d(Rt,{Z:function(){return yt}});var oe=fe(32855),nt=fe(34666),Me=fe(27247),je=fe(74430),me=fe(11913),ge=fe(43079),Oe=fe(92310),He=fe.n(Oe),xe=fe(29301),he=fe(70425),et=fe(34280),ve=fe(59301),st=fe(4676),Ne=ve.forwardRef(function(ae,te){var z=ae.height,ie=ae.offsetY,le=ae.offsetX,ne=ae.children,ye=ae.prefixCls,Ue=ae.onInnerResize,At=ae.innerProps,mt=ae.rtl,ft=ae.extra,bt={},Gt={display:"flex",flexDirection:"column"};return ie!==void 0&&(bt={height:z,position:"relative",overflow:"hidden"},Gt=(0,Me.Z)((0,Me.Z)({},Gt),{},(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({transform:"translateY(".concat(ie,"px)")},mt?"marginRight":"marginLeft",-le),"position","absolute"),"left",0),"right",0),"top",0))),ve.createElement("div",{style:bt},ve.createElement(xe.Z,{onResize:function(tn){var nn=tn.offsetHeight;nn&&Ue&&Ue()}},ve.createElement("div",(0,oe.Z)({style:Gt,className:He()((0,je.Z)({},"".concat(ye,"-holder-inner"),ye)),ref:te},At),ne,ft)))});Ne.displayName="Filler";var De=Ne;function Be(ae){var te=ae.children,z=ae.setRef,ie=ve.useCallback(function(le){z(le)},[]);return ve.cloneElement(te,{ref:ie})}function Ae(ae,te,z,ie,le,ne,ye,Ue){var At=Ue.getKey;return ae.slice(te,z+1).map(function(mt,ft){var bt=te+ft,Gt=ye(mt,bt,{style:{width:ie},offsetX:le}),It=At(mt);return ve.createElement(Be,{key:It,setRef:function(nn){return ne(mt,nn)}},Gt)})}function tt(ae,te,z,ie){var le=z-ae,ne=te-z,ye=Math.min(le,ne)*2;if(ie<=ye){var Ue=Math.floor(ie/2);return ie%2?z+Ue+1:z-Ue}return le>ne?z-(ie-ne):z+(ie-le)}function rt(ae,te,z){var ie=ae.length,le=te.length,ne,ye;if(ie===0&&le===0)return null;ie<le?(ne=ae,ye=te):(ne=te,ye=ae);var Ue={__EMPTY_ITEM__:!0};function At(tn){return tn!==void 0?z(tn):Ue}for(var mt=null,ft=Math.abs(ie-le)!==1,bt=0;bt<ye.length;bt+=1){var Gt=At(ne[bt]),It=At(ye[bt]);if(Gt!==It){mt=bt,ft=ft||Gt!==At(ye[bt+1]);break}}return mt===null?null:{index:mt,multiple:ft}}function at(ae,te,z){var ie=ve.useState(ae),le=(0,me.Z)(ie,2),ne=le[0],ye=le[1],Ue=ve.useState(null),At=(0,me.Z)(Ue,2),mt=At[0],ft=At[1];return ve.useEffect(function(){var bt=rt(ne||[],ae||[],te);(bt==null?void 0:bt.index)!==void 0&&(z==null||z(bt.index),ft(ae[bt.index])),ye(ae)},[ae]),[mt]}var ze=fe(16089),Ge=(typeof navigator=="undefined"?"undefined":(0,nt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ke=Ge,Ze=function(ae,te,z,ie){var le=(0,ve.useRef)(!1),ne=(0,ve.useRef)(null);function ye(){clearTimeout(ne.current),le.current=!0,ne.current=setTimeout(function(){le.current=!1},50)}var Ue=(0,ve.useRef)({top:ae,bottom:te,left:z,right:ie});return Ue.current.top=ae,Ue.current.bottom=te,Ue.current.left=z,Ue.current.right=ie,function(At,mt){var ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,bt=At?mt<0&&Ue.current.left||mt>0&&Ue.current.right:mt<0&&Ue.current.top||mt>0&&Ue.current.bottom;return ft&&bt?(clearTimeout(ne.current),le.current=!1):(!bt||le.current)&&ye(),!le.current&&bt}};function Ct(ae,te,z,ie,le,ne,ye){var Ue=(0,ve.useRef)(0),At=(0,ve.useRef)(null),mt=(0,ve.useRef)(null),ft=(0,ve.useRef)(!1),bt=Ze(te,z,ie,le);function Gt(Zt,qt){if(ze.Z.cancel(At.current),!bt(!1,qt)){var it=Zt;if(!it._virtualHandled)it._virtualHandled=!0;else return;Ue.current+=qt,mt.current=qt,Ke||it.preventDefault(),At.current=(0,ze.Z)(function(){var fn=ft.current?10:1;ye(Ue.current*fn,!1),Ue.current=0})}}function It(Zt,qt){ye(qt,!0),Ke||Zt.preventDefault()}var tn=(0,ve.useRef)(null),nn=(0,ve.useRef)(null);function St(Zt){if(ae){ze.Z.cancel(nn.current),nn.current=(0,ze.Z)(function(){tn.current=null},2);var qt=Zt.deltaX,it=Zt.deltaY,fn=Zt.shiftKey,Ht=qt,Kt=it;(tn.current==="sx"||!tn.current&&fn&&it&&!qt)&&(Ht=it,Kt=0,tn.current="sx");var un=Math.abs(Ht),Nn=Math.abs(Kt);tn.current===null&&(tn.current=ne&&un>Nn?"x":"y"),tn.current==="y"?Gt(Zt,Kt):It(Zt,Ht)}}function vn(Zt){ae&&(ft.current=Zt.detail===mt.current)}return[St,vn]}function We(ae,te,z,ie){var le=ve.useMemo(function(){return[new Map,[]]},[ae,z.id,ie]),ne=(0,me.Z)(le,2),ye=ne[0],Ue=ne[1],At=function(ft){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ft,Gt=ye.get(ft),It=ye.get(bt);if(Gt===void 0||It===void 0)for(var tn=ae.length,nn=Ue.length;nn<tn;nn+=1){var St,vn=ae[nn],Zt=te(vn);ye.set(Zt,nn);var qt=(St=z.get(Zt))!==null&&St!==void 0?St:ie;if(Ue[nn]=(Ue[nn-1]||0)+qt,Zt===ft&&(Gt=nn),Zt===bt&&(It=nn),Gt!==void 0&&It!==void 0)break}return{top:Ue[Gt-1]||0,bottom:Ue[It]}};return At}var Te=fe(33377),$e=fe(93912),Se=function(){function ae(){(0,Te.Z)(this,ae),(0,je.Z)(this,"maps",void 0),(0,je.Z)(this,"id",0),(0,je.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,$e.Z)(ae,[{key:"set",value:function(z,ie){this.diffRecords.set(z,this.maps[z]),this.maps[z]=ie,this.id+=1}},{key:"get",value:function(z){return this.maps[z]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ae}(),Ie=Se;function we(ae){var te=parseFloat(ae);return isNaN(te)?0:te}function Fe(ae,te,z){var ie=ve.useState(0),le=(0,me.Z)(ie,2),ne=le[0],ye=le[1],Ue=(0,ve.useRef)(new Map),At=(0,ve.useRef)(new Ie),mt=(0,ve.useRef)(0);function ft(){mt.current+=1}function bt(){var It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ft();var tn=function(){var vn=!1;Ue.current.forEach(function(Zt,qt){if(Zt&&Zt.offsetParent){var it=Zt.offsetHeight,fn=getComputedStyle(Zt),Ht=fn.marginTop,Kt=fn.marginBottom,un=we(Ht),Nn=we(Kt),dn=it+un+Nn;At.current.get(qt)!==dn&&(At.current.set(qt,dn),vn=!0)}}),vn&&ye(function(Zt){return Zt+1})};if(It)tn();else{mt.current+=1;var nn=mt.current;Promise.resolve().then(function(){nn===mt.current&&tn()})}}function Gt(It,tn){var nn=ae(It),St=Ue.current.get(nn);tn?(Ue.current.set(nn,tn),bt()):Ue.current.delete(nn),!St!=!tn&&(tn?te==null||te(It):z==null||z(It))}return(0,ve.useEffect)(function(){return ft},[]),[Gt,bt,At.current,ne]}var xt=14/15;function lt(ae,te,z){var ie=(0,ve.useRef)(!1),le=(0,ve.useRef)(0),ne=(0,ve.useRef)(0),ye=(0,ve.useRef)(null),Ue=(0,ve.useRef)(null),At,mt=function(It){if(ie.current){var tn=Math.ceil(It.touches[0].pageX),nn=Math.ceil(It.touches[0].pageY),St=le.current-tn,vn=ne.current-nn,Zt=Math.abs(St)>Math.abs(vn);Zt?le.current=tn:ne.current=nn;var qt=z(Zt,Zt?St:vn,!1,It);qt&&It.preventDefault(),clearInterval(Ue.current),qt&&(Ue.current=setInterval(function(){Zt?St*=xt:vn*=xt;var it=Math.floor(Zt?St:vn);(!z(Zt,it,!0)||Math.abs(it)<=.1)&&clearInterval(Ue.current)},16))}},ft=function(){ie.current=!1,At()},bt=function(It){At(),It.touches.length===1&&!ie.current&&(ie.current=!0,le.current=Math.ceil(It.touches[0].pageX),ne.current=Math.ceil(It.touches[0].pageY),ye.current=It.target,ye.current.addEventListener("touchmove",mt,{passive:!1}),ye.current.addEventListener("touchend",ft,{passive:!0}))};At=function(){ye.current&&(ye.current.removeEventListener("touchmove",mt),ye.current.removeEventListener("touchend",ft))},(0,et.Z)(function(){return ae&&te.current.addEventListener("touchstart",bt,{passive:!0}),function(){var Gt;(Gt=te.current)===null||Gt===void 0||Gt.removeEventListener("touchstart",bt),At(),clearInterval(Ue.current)}},[ae])}function _t(ae){return Math.floor(Math.pow(ae,.5))}function wt(ae,te){var z="touches"in ae?ae.touches[0]:ae;return z[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function pe(ae,te,z){ve.useEffect(function(){var ie=te.current;if(ae&&ie){var le=!1,ne,ye,Ue=function(){ze.Z.cancel(ne)},At=function Gt(){Ue(),ne=(0,ze.Z)(function(){z(ye),Gt()})},mt=function(It){if(!(It.target.draggable||It.button!==0)){var tn=It;tn._virtualHandled||(tn._virtualHandled=!0,le=!0)}},ft=function(){le=!1,Ue()},bt=function(It){if(le){var tn=wt(It,!1),nn=ie.getBoundingClientRect(),St=nn.top,vn=nn.bottom;if(tn<=St){var Zt=St-tn;ye=-_t(Zt),At()}else if(tn>=vn){var qt=tn-vn;ye=_t(qt),At()}else Ue()}};return ie.addEventListener("mousedown",mt),ie.ownerDocument.addEventListener("mouseup",ft),ie.ownerDocument.addEventListener("mousemove",bt),function(){ie.removeEventListener("mousedown",mt),ie.ownerDocument.removeEventListener("mouseup",ft),ie.ownerDocument.removeEventListener("mousemove",bt),Ue()}}},[ae])}var de=10;function qe(ae,te,z,ie,le,ne,ye,Ue){var At=ve.useRef(),mt=ve.useState(null),ft=(0,me.Z)(mt,2),bt=ft[0],Gt=ft[1];return(0,et.Z)(function(){if(bt&&bt.times<de){if(!ae.current){Gt(function(jn){return(0,Me.Z)({},jn)});return}ne();var It=bt.targetAlign,tn=bt.originAlign,nn=bt.index,St=bt.offset,vn=ae.current.clientHeight,Zt=!1,qt=It,it=null;if(vn){for(var fn=It||tn,Ht=0,Kt=0,un=0,Nn=Math.min(te.length-1,nn),dn=0;dn<=Nn;dn+=1){var kn=le(te[dn]);Kt=Ht;var tr=z.get(kn);un=Kt+(tr===void 0?ie:tr),Ht=un}for(var Un=fn==="top"?St:vn-St,Nr=Nn;Nr>=0;Nr-=1){var Mr=le(te[Nr]),dr=z.get(Mr);if(dr===void 0){Zt=!0;break}if(Un-=dr,Un<=0)break}switch(fn){case"top":it=Kt-St;break;case"bottom":it=un-vn+St;break;default:{var Xn=ae.current.scrollTop,hn=Xn+vn;Kt<Xn?qt="top":un>hn&&(qt="bottom")}}it!==null&&ye(it),it!==bt.lastTop&&(Zt=!0)}Zt&&Gt((0,Me.Z)((0,Me.Z)({},bt),{},{times:bt.times+1,targetAlign:qt,lastTop:it}))}},[bt,ae.current]),function(It){if(It==null){Ue();return}if(ze.Z.cancel(At.current),typeof It=="number")ye(It);else if(It&&(0,nt.Z)(It)==="object"){var tn,nn=It.align;"index"in It?tn=It.index:tn=te.findIndex(function(Zt){return le(Zt)===It.key});var St=It.offset,vn=St===void 0?0:St;Gt({times:0,index:tn,offset:vn,originAlign:nn})}}}var Lt=ve.forwardRef(function(ae,te){var z=ae.prefixCls,ie=ae.rtl,le=ae.scrollOffset,ne=ae.scrollRange,ye=ae.onStartMove,Ue=ae.onStopMove,At=ae.onScroll,mt=ae.horizontal,ft=ae.spinSize,bt=ae.containerSize,Gt=ae.style,It=ae.thumbStyle,tn=ae.showScrollBar,nn=ve.useState(!1),St=(0,me.Z)(nn,2),vn=St[0],Zt=St[1],qt=ve.useState(null),it=(0,me.Z)(qt,2),fn=it[0],Ht=it[1],Kt=ve.useState(null),un=(0,me.Z)(Kt,2),Nn=un[0],dn=un[1],kn=!ie,tr=ve.useRef(),Un=ve.useRef(),Nr=ve.useState(tn),Mr=(0,me.Z)(Nr,2),dr=Mr[0],Xn=Mr[1],hn=ve.useRef(),jn=function(){tn===!0||tn===!1||(clearTimeout(hn.current),Xn(!0),hn.current=setTimeout(function(){Xn(!1)},3e3))},Jn=ne-bt||0,Mn=bt-ft||0,nr=ve.useMemo(function(){if(le===0||Jn===0)return 0;var Bn=le/Jn;return Bn*Mn},[le,Jn,Mn]),kt=function(Dn){Dn.stopPropagation(),Dn.preventDefault()},Ot=ve.useRef({top:nr,dragging:vn,pageY:fn,startTop:Nn});Ot.current={top:nr,dragging:vn,pageY:fn,startTop:Nn};var ut=function(Dn){Zt(!0),Ht(wt(Dn,mt)),dn(Ot.current.top),ye(),Dn.stopPropagation(),Dn.preventDefault()};ve.useEffect(function(){var Bn=function(Bt){Bt.preventDefault()},Dn=tr.current,wn=Un.current;return Dn.addEventListener("touchstart",Bn,{passive:!1}),wn.addEventListener("touchstart",ut,{passive:!1}),function(){Dn.removeEventListener("touchstart",Bn),wn.removeEventListener("touchstart",ut)}},[]);var gt=ve.useRef();gt.current=Jn;var Yt=ve.useRef();Yt.current=Mn,ve.useEffect(function(){if(vn){var Bn,Dn=function(Bt){var Qe=Ot.current,Wt=Qe.dragging,gn=Qe.pageY,An=Qe.startTop;ze.Z.cancel(Bn);var ke=tr.current.getBoundingClientRect(),Le=bt/(mt?ke.width:ke.height);if(Wt){var Pt=(wt(Bt,mt)-gn)*Le,ht=An;!kn&&mt?ht-=Pt:ht+=Pt;var _e=gt.current,pt=Yt.current,Jt=pt?ht/pt:0,ln=Math.ceil(Jt*_e);ln=Math.max(ln,0),ln=Math.min(ln,_e),Bn=(0,ze.Z)(function(){At(ln,mt)})}},wn=function(){Zt(!1),Ue()};return window.addEventListener("mousemove",Dn,{passive:!0}),window.addEventListener("touchmove",Dn,{passive:!0}),window.addEventListener("mouseup",wn,{passive:!0}),window.addEventListener("touchend",wn,{passive:!0}),function(){window.removeEventListener("mousemove",Dn),window.removeEventListener("touchmove",Dn),window.removeEventListener("mouseup",wn),window.removeEventListener("touchend",wn),ze.Z.cancel(Bn)}}},[vn]),ve.useEffect(function(){return jn(),function(){clearTimeout(hn.current)}},[le]),ve.useImperativeHandle(te,function(){return{delayHidden:jn}});var cn="".concat(z,"-scrollbar"),rn={position:"absolute",visibility:dr?null:"hidden"},Sn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return mt?(Object.assign(rn,{height:8,left:0,right:0,bottom:0}),Object.assign(Sn,(0,je.Z)({height:"100%",width:ft},kn?"left":"right",nr))):(Object.assign(rn,(0,je.Z)({width:8,top:0,bottom:0},kn?"right":"left",0)),Object.assign(Sn,{width:"100%",height:ft,top:nr})),ve.createElement("div",{ref:tr,className:He()(cn,(0,je.Z)((0,je.Z)((0,je.Z)({},"".concat(cn,"-horizontal"),mt),"".concat(cn,"-vertical"),!mt),"".concat(cn,"-visible"),dr)),style:(0,Me.Z)((0,Me.Z)({},rn),Gt),onMouseDown:kt,onMouseMove:jn},ve.createElement("div",{ref:Un,className:He()("".concat(cn,"-thumb"),(0,je.Z)({},"".concat(cn,"-thumb-moving"),vn)),style:(0,Me.Z)((0,Me.Z)({},Sn),It),onMouseDown:ut}))}),ct=Lt,Ee=20;function Xe(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,z=ae/te*ae;return isNaN(z)&&(z=0),z=Math.max(z,Ee),Math.floor(z)}var Je=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Nt=[],ot={overflowY:"auto",overflowAnchor:"none"};function Et(ae,te){var z=ae.prefixCls,ie=z===void 0?"rc-virtual-list":z,le=ae.className,ne=ae.height,ye=ae.itemHeight,Ue=ae.fullHeight,At=Ue===void 0?!0:Ue,mt=ae.style,ft=ae.data,bt=ae.children,Gt=ae.itemKey,It=ae.virtual,tn=ae.direction,nn=ae.scrollWidth,St=ae.component,vn=St===void 0?"div":St,Zt=ae.onScroll,qt=ae.onVirtualScroll,it=ae.onVisibleChange,fn=ae.innerProps,Ht=ae.extraRender,Kt=ae.styles,un=ae.showScrollBar,Nn=un===void 0?"optional":un,dn=(0,ge.Z)(ae,Je),kn=ve.useCallback(function(Ft){return typeof Gt=="function"?Gt(Ft):Ft==null?void 0:Ft[Gt]},[Gt]),tr=Fe(kn,null,null),Un=(0,me.Z)(tr,4),Nr=Un[0],Mr=Un[1],dr=Un[2],Xn=Un[3],hn=!!(It!==!1&&ne&&ye),jn=ve.useMemo(function(){return Object.values(dr.maps).reduce(function(Ft,Vt){return Ft+Vt},0)},[dr.id,dr.maps]),Jn=hn&&ft&&(Math.max(ye*ft.length,jn)>ne||!!nn),Mn=tn==="rtl",nr=He()(ie,(0,je.Z)({},"".concat(ie,"-rtl"),Mn),le),kt=ft||Nt,Ot=(0,ve.useRef)(),ut=(0,ve.useRef)(),gt=(0,ve.useRef)(),Yt=(0,ve.useState)(0),cn=(0,me.Z)(Yt,2),rn=cn[0],Sn=cn[1],Bn=(0,ve.useState)(0),Dn=(0,me.Z)(Bn,2),wn=Dn[0],En=Dn[1],Bt=(0,ve.useState)(!1),Qe=(0,me.Z)(Bt,2),Wt=Qe[0],gn=Qe[1],An=function(){gn(!0)},ke=function(){gn(!1)},Le={getKey:kn};function Pt(Ft){Sn(function(Vt){var bn;typeof Ft=="function"?bn=Ft(Vt):bn=Ft;var on=_r(bn);return Ot.current.scrollTop=on,on})}var ht=(0,ve.useRef)({start:0,end:kt.length}),_e=(0,ve.useRef)(),pt=at(kt,kn),Jt=(0,me.Z)(pt,1),ln=Jt[0];_e.current=ln;var pn=ve.useMemo(function(){if(!hn)return{scrollHeight:void 0,start:0,end:kt.length-1,offset:void 0};if(!Jn){var Ft;return{scrollHeight:((Ft=ut.current)===null||Ft===void 0?void 0:Ft.offsetHeight)||0,start:0,end:kt.length-1,offset:void 0}}for(var Vt=0,bn,on,Fn,jt=kt.length,Tt=0;Tt<jt;Tt+=1){var Xt=kt[Tt],$t=kn(Xt),Hn=dr.get($t),Kn=Vt+(Hn===void 0?ye:Hn);Kn>=rn&&bn===void 0&&(bn=Tt,on=Vt),Kn>rn+ne&&Fn===void 0&&(Fn=Tt),Vt=Kn}return bn===void 0&&(bn=0,on=0,Fn=Math.ceil(ne/ye)),Fn===void 0&&(Fn=kt.length-1),Fn=Math.min(Fn+1,kt.length-1),{scrollHeight:Vt,start:bn,end:Fn,offset:on}},[Jn,hn,rn,kt,Xn,ne]),zt=pn.scrollHeight,Qt=pn.start,Pe=pn.end,Tn=pn.offset;ht.current.start=Qt,ht.current.end=Pe,ve.useLayoutEffect(function(){var Ft=dr.getRecord();if(Ft.size===1){var Vt=Array.from(Ft.keys())[0],bn=Ft.get(Vt),on=kt[Qt];if(on&&bn===void 0){var Fn=kn(on);if(Fn===Vt){var jt=dr.get(Vt),Tt=jt-ye;Pt(function(Xt){return Xt+Tt})}}}dr.resetRecord()},[zt]);var en=ve.useState({width:0,height:ne}),Cn=(0,me.Z)(en,2),yn=Cn[0],Pn=Cn[1],Wn=function(Vt){Pn({width:Vt.offsetWidth,height:Vt.offsetHeight})},mr=(0,ve.useRef)(),Gn=(0,ve.useRef)(),In=ve.useMemo(function(){return Xe(yn.width,nn)},[yn.width,nn]),ur=ve.useMemo(function(){return Xe(yn.height,zt)},[yn.height,zt]),zn=zt-ne,gr=(0,ve.useRef)(zn);gr.current=zn;function _r(Ft){var Vt=Ft;return Number.isNaN(gr.current)||(Vt=Math.min(Vt,gr.current)),Vt=Math.max(Vt,0),Vt}var fr=rn<=0,yr=rn>=zn,Dr=wn<=0,br=wn>=nn,or=Ze(fr,yr,Dr,br),Br=function(){return{x:Mn?-wn:wn,y:rn}},ar=(0,ve.useRef)(Br()),hr=(0,he.zX)(function(Ft){if(qt){var Vt=(0,Me.Z)((0,Me.Z)({},Br()),Ft);(ar.current.x!==Vt.x||ar.current.y!==Vt.y)&&(qt(Vt),ar.current=Vt)}});function xr(Ft,Vt){var bn=Ft;Vt?((0,st.flushSync)(function(){En(bn)}),hr()):Pt(bn)}function kr(Ft){var Vt=Ft.currentTarget.scrollTop;Vt!==rn&&Pt(Vt),Zt==null||Zt(Ft),hr()}var pr=function(Vt){var bn=Vt,on=nn?nn-yn.width:0;return bn=Math.max(bn,0),bn=Math.min(bn,on),bn},rr=(0,he.zX)(function(Ft,Vt){Vt?((0,st.flushSync)(function(){En(function(bn){var on=bn+(Mn?-Ft:Ft);return pr(on)})}),hr()):Pt(function(bn){var on=bn+Ft;return on})}),$n=Ct(hn,fr,yr,Dr,br,!!nn,rr),Tr=(0,me.Z)($n,2),Zr=Tr[0],jr=Tr[1];lt(hn,Ot,function(Ft,Vt,bn,on){var Fn=on;return or(Ft,Vt,bn)?!1:!Fn||!Fn._virtualHandled?(Fn&&(Fn._virtualHandled=!0),Zr({preventDefault:function(){},deltaX:Ft?Vt:0,deltaY:Ft?0:Vt}),!0):!1}),pe(Jn,Ot,function(Ft){Pt(function(Vt){return Vt+Ft})}),(0,et.Z)(function(){function Ft(bn){var on=fr&&bn.detail<0,Fn=yr&&bn.detail>0;hn&&!on&&!Fn&&bn.preventDefault()}var Vt=Ot.current;return Vt.addEventListener("wheel",Zr,{passive:!1}),Vt.addEventListener("DOMMouseScroll",jr,{passive:!0}),Vt.addEventListener("MozMousePixelScroll",Ft,{passive:!1}),function(){Vt.removeEventListener("wheel",Zr),Vt.removeEventListener("DOMMouseScroll",jr),Vt.removeEventListener("MozMousePixelScroll",Ft)}},[hn,fr,yr]),(0,et.Z)(function(){if(nn){var Ft=pr(wn);En(Ft),hr({x:Ft})}},[yn.width,nn]);var ir=function(){var Vt,bn;(Vt=mr.current)===null||Vt===void 0||Vt.delayHidden(),(bn=Gn.current)===null||bn===void 0||bn.delayHidden()},ai=qe(Ot,kt,dr,ye,kn,function(){return Mr(!0)},Pt,ir);ve.useImperativeHandle(te,function(){return{nativeElement:gt.current,getScrollInfo:Br,scrollTo:function(Vt){function bn(on){return on&&(0,nt.Z)(on)==="object"&&("left"in on||"top"in on)}bn(Vt)?(Vt.left!==void 0&&En(pr(Vt.left)),ai(Vt.top)):ai(Vt)}}}),(0,et.Z)(function(){if(it){var Ft=kt.slice(Qt,Pe+1);it(Ft,kt)}},[Qt,Pe,kt]);var cr=We(kt,kn,dr,ye),si=Ht==null?void 0:Ht({start:Qt,end:Pe,virtual:Jn,offsetX:wn,offsetY:Tn,rtl:Mn,getSize:cr}),ti=Ae(kt,Qt,Pe,nn,wn,Nr,bt,Le),Or=null;ne&&(Or=(0,Me.Z)((0,je.Z)({},At?"height":"maxHeight",ne),ot),hn&&(Or.overflowY="hidden",nn&&(Or.overflowX="hidden"),Wt&&(Or.pointerEvents="none")));var Vn={};return Mn&&(Vn.dir="rtl"),ve.createElement("div",(0,oe.Z)({ref:gt,style:(0,Me.Z)((0,Me.Z)({},mt),{},{position:"relative"}),className:nr},Vn,dn),ve.createElement(xe.Z,{onResize:Wn},ve.createElement(vn,{className:"".concat(ie,"-holder"),style:Or,ref:Ot,onScroll:kr,onMouseEnter:ir},ve.createElement(De,{prefixCls:ie,height:zt,offsetX:wn,offsetY:Tn,scrollWidth:nn,onInnerResize:Mr,ref:ut,innerProps:fn,rtl:Mn,extra:si},ti))),Jn&&zt>ne&&ve.createElement(ct,{ref:mr,prefixCls:ie,scrollOffset:rn,scrollRange:zt,rtl:Mn,onScroll:xr,onStartMove:An,onStopMove:ke,spinSize:ur,containerSize:yn.height,style:Kt==null?void 0:Kt.verticalScrollBar,thumbStyle:Kt==null?void 0:Kt.verticalScrollBarThumb,showScrollBar:Nn}),Jn&&nn>yn.width&&ve.createElement(ct,{ref:Gn,prefixCls:ie,scrollOffset:wn,scrollRange:nn,rtl:Mn,onScroll:xr,onStartMove:An,onStopMove:ke,spinSize:In,containerSize:yn.width,horizontal:!0,style:Kt==null?void 0:Kt.horizontalScrollBar,thumbStyle:Kt==null?void 0:Kt.horizontalScrollBarThumb,showScrollBar:Nn}))}var Re=ve.forwardRef(Et);Re.displayName="List";var dt=Re,yt=dt},93314:function(Dt){"use strict";Dt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBES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fFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(Dt,Rt,fe){"use strict";fe.d(Rt,{Z:function(){return He}});const oe=xe=>typeof xe=="object"&&xe!=null&&xe.nodeType===1,nt=(xe,he)=>(!he||xe!=="hidden")&&xe!=="visible"&&xe!=="clip",Me=(xe,he)=>{if(xe.clientHeight<xe.scrollHeight||xe.clientWidth<xe.scrollWidth){const et=getComputedStyle(xe,null);return nt(et.overflowY,he)||nt(et.overflowX,he)||(ve=>{const st=(Ne=>{if(!Ne.ownerDocument||!Ne.ownerDocument.defaultView)return null;try{return Ne.ownerDocument.defaultView.frameElement}catch(De){return null}})(ve);return!!st&&(st.clientHeight<ve.scrollHeight||st.clientWidth<ve.scrollWidth)})(xe)}return!1},je=(xe,he,et,ve,st,Ne,De,Be)=>Ne<xe&&De>he||Ne>xe&&De<he?0:Ne<=xe&&Be<=et||De>=he&&Be>=et?Ne-xe-ve:De>he&&Be<et||Ne<xe&&Be>et?De-he+st:0,me=xe=>{const he=xe.parentElement;return he==null?xe.getRootNode().host||null:he},ge=(xe,he)=>{var et,ve,st,Ne;if(typeof document=="undefined")return[];const{scrollMode:De,block:Be,inline:Ae,boundary:tt,skipOverflowHiddenElements:rt}=he,at=typeof tt=="function"?tt:ct=>ct!==tt;if(!oe(xe))throw new TypeError("Invalid target");const ze=document.scrollingElement||document.documentElement,Ge=[];let Ke=xe;for(;oe(Ke)&&at(Ke);){if(Ke=me(Ke),Ke===ze){Ge.push(Ke);break}Ke!=null&&Ke===document.body&&Me(Ke)&&!Me(document.documentElement)||Ke!=null&&Me(Ke,rt)&&Ge.push(Ke)}const Ze=(ve=(et=window.visualViewport)==null?void 0:et.width)!=null?ve:innerWidth,Ct=(Ne=(st=window.visualViewport)==null?void 0:st.height)!=null?Ne:innerHeight,{scrollX:We,scrollY:Te}=window,{height:$e,width:Se,top:Ie,right:we,bottom:Fe,left:xt}=xe.getBoundingClientRect(),{top:lt,right:_t,bottom:wt,left:pe}=(ct=>{const Ee=window.getComputedStyle(ct);return{top:parseFloat(Ee.scrollMarginTop)||0,right:parseFloat(Ee.scrollMarginRight)||0,bottom:parseFloat(Ee.scrollMarginBottom)||0,left:parseFloat(Ee.scrollMarginLeft)||0}})(xe);let de=Be==="start"||Be==="nearest"?Ie-lt:Be==="end"?Fe+wt:Ie+$e/2-lt+wt,qe=Ae==="center"?xt+Se/2-pe+_t:Ae==="end"?we+_t:xt-pe;const Lt=[];for(let ct=0;ct<Ge.length;ct++){const Ee=Ge[ct],{height:Xe,width:Je,top:Nt,right:ot,bottom:Et,left:Re}=Ee.getBoundingClientRect();if(De==="if-needed"&&Ie>=0&&xt>=0&&Fe<=Ct&&we<=Ze&&(Ee===ze&&!Me(Ee)||Ie>=Nt&&Fe<=Et&&xt>=Re&&we<=ot))return Lt;const dt=getComputedStyle(Ee),yt=parseInt(dt.borderLeftWidth,10),ae=parseInt(dt.borderTopWidth,10),te=parseInt(dt.borderRightWidth,10),z=parseInt(dt.borderBottomWidth,10);let ie=0,le=0;const ne="offsetWidth"in Ee?Ee.offsetWidth-Ee.clientWidth-yt-te:0,ye="offsetHeight"in Ee?Ee.offsetHeight-Ee.clientHeight-ae-z:0,Ue="offsetWidth"in Ee?Ee.offsetWidth===0?0:Je/Ee.offsetWidth:0,At="offsetHeight"in Ee?Ee.offsetHeight===0?0:Xe/Ee.offsetHeight:0;if(ze===Ee)ie=Be==="start"?de:Be==="end"?de-Ct:Be==="nearest"?je(Te,Te+Ct,Ct,ae,z,Te+de,Te+de+$e,$e):de-Ct/2,le=Ae==="start"?qe:Ae==="center"?qe-Ze/2:Ae==="end"?qe-Ze:je(We,We+Ze,Ze,yt,te,We+qe,We+qe+Se,Se),ie=Math.max(0,ie+Te),le=Math.max(0,le+We);else{ie=Be==="start"?de-Nt-ae:Be==="end"?de-Et+z+ye:Be==="nearest"?je(Nt,Et,Xe,ae,z+ye,de,de+$e,$e):de-(Nt+Xe/2)+ye/2,le=Ae==="start"?qe-Re-yt:Ae==="center"?qe-(Re+Je/2)+ne/2:Ae==="end"?qe-ot+te+ne:je(Re,ot,Je,yt,te+ne,qe,qe+Se,Se);const{scrollLeft:mt,scrollTop:ft}=Ee;ie=At===0?0:Math.max(0,Math.min(ft+ie/At,Ee.scrollHeight-Xe/At+ye)),le=Ue===0?0:Math.max(0,Math.min(mt+le/Ue,Ee.scrollWidth-Je/Ue+ne)),de+=ft-ie,qe+=mt-le}Lt.push({el:Ee,top:ie,left:le})}return Lt},Oe=xe=>xe===!1?{block:"end",inline:"nearest"}:(he=>he===Object(he)&&Object.keys(he).length!==0)(xe)?xe:{block:"start",inline:"nearest"};function He(xe,he){if(!xe.isConnected||!(st=>{let Ne=st;for(;Ne&&Ne.parentNode;){if(Ne.parentNode===document)return!0;Ne=Ne.parentNode instanceof ShadowRoot?Ne.parentNode.host:Ne.parentNode}return!1})(xe))return;const et=(st=>{const Ne=window.getComputedStyle(st);return{top:parseFloat(Ne.scrollMarginTop)||0,right:parseFloat(Ne.scrollMarginRight)||0,bottom:parseFloat(Ne.scrollMarginBottom)||0,left:parseFloat(Ne.scrollMarginLeft)||0}})(xe);if((st=>typeof st=="object"&&typeof st.behavior=="function")(he))return he.behavior(ge(xe,he));const ve=typeof he=="boolean"||he==null?void 0:he.behavior;for(const{el:st,top:Ne,left:De}of ge(xe,Oe(he))){const Be=Ne-et.top+et.bottom,Ae=De-et.left+et.right;st.scroll({top:Be,left:Ae,behavior:ve})}}}}]);